@gobing-ai/spur 0.3.26 → 0.3.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/config/rules/recommended-pre-check.yaml +1 -0
  2. package/config/rules/strict/runtime-boundaries.yaml +23 -16
  3. package/config/rules/ui/ui-import-boundary.yaml +7 -4
  4. package/config/tasks/section-matrix.yaml +7 -7
  5. package/config/templates/AGENTS.md +6 -6
  6. package/config/workflows/task-pipeline.yaml +18 -1
  7. package/package.json +9 -9
  8. package/spur.js +2417 -674
  9. package/web/_astro/BoardApp.Bk3T0o6s.js +1 -0
  10. package/web/_astro/BoardApp.BwAdAgK9.js +179 -0
  11. package/web/_astro/{TaskDetail.Dsk9DnGY.js → TaskDetail.L36slEqE.js} +1 -1
  12. package/web/_astro/{arc.Biv8k-OR.js → arc.CO-I_PZe.js} +1 -1
  13. package/web/_astro/{architectureDiagram-3BPJPVTR.BrtW5Sn7.js → architectureDiagram-3BPJPVTR.Si-A1Ncl.js} +1 -1
  14. package/web/_astro/{blockDiagram-GPEHLZMM.CTpFZJhW.js → blockDiagram-GPEHLZMM.CeNy_ta6.js} +1 -1
  15. package/web/_astro/{c4Diagram-AAUBKEIU._ZJj9H0G.js → c4Diagram-AAUBKEIU.BgN_scEU.js} +1 -1
  16. package/web/_astro/channel.CYdGnFHM.js +1 -0
  17. package/web/_astro/{chunk-2J33WTMH.DD9mDiEM.js → chunk-2J33WTMH.C3oDtmdi.js} +1 -1
  18. package/web/_astro/{chunk-4BX2VUAB.ENDQu3TH.js → chunk-4BX2VUAB.Bv8Fxh4H.js} +1 -1
  19. package/web/_astro/{chunk-55IACEB6.DLpJf8Xp.js → chunk-55IACEB6.BT-TqtV6.js} +1 -1
  20. package/web/_astro/{chunk-727SXJPM.BR6vsvIV.js → chunk-727SXJPM.DkGMsI0B.js} +1 -1
  21. package/web/_astro/{chunk-AQP2D5EJ.DGOBzXM6.js → chunk-AQP2D5EJ.B_-SqGnF.js} +1 -1
  22. package/web/_astro/{chunk-FMBD7UC4.DrghnRtZ.js → chunk-FMBD7UC4.DwR3skMv.js} +1 -1
  23. package/web/_astro/{chunk-ND2GUHAM.BqIqI3oO.js → chunk-ND2GUHAM.BaTQutFl.js} +1 -1
  24. package/web/_astro/{chunk-QZHKN3VN.CJ2RJt0K.js → chunk-QZHKN3VN.BJMSqqJp.js} +1 -1
  25. package/web/_astro/{classDiagram-4FO5ZUOK.Qu1p6crX.js → classDiagram-4FO5ZUOK.SaqCNUPF.js} +1 -1
  26. package/web/_astro/{classDiagram-v2-Q7XG4LA2.Qu1p6crX.js → classDiagram-v2-Q7XG4LA2.SaqCNUPF.js} +1 -1
  27. package/web/_astro/{cose-bilkent-S5V4N54A.7VrRetJ0.js → cose-bilkent-S5V4N54A.BkmjA_E2.js} +1 -1
  28. package/web/_astro/{dagre-BM42HDAG.r4lTyJXQ.js → dagre-BM42HDAG.CNUvWhrX.js} +1 -1
  29. package/web/_astro/{diagram-2AECGRRQ.DahExuaR.js → diagram-2AECGRRQ.C68Cg9uE.js} +1 -1
  30. package/web/_astro/{diagram-5GNKFQAL.B-dSm3op.js → diagram-5GNKFQAL.DbHkPLEn.js} +1 -1
  31. package/web/_astro/{diagram-KO2AKTUF.CQGlKa6a.js → diagram-KO2AKTUF.Dt0EdErs.js} +1 -1
  32. package/web/_astro/{diagram-LMA3HP47.CJ6nomD-.js → diagram-LMA3HP47.Bixs6mnm.js} +1 -1
  33. package/web/_astro/{diagram-OG6HWLK6.ijGl68sM.js → diagram-OG6HWLK6.B4KBI6KT.js} +1 -1
  34. package/web/_astro/{erDiagram-TEJ5UH35.DBAe2Iin.js → erDiagram-TEJ5UH35.C_4i9Xvx.js} +1 -1
  35. package/web/_astro/{flowDiagram-I6XJVG4X.z3iXF6Ku.js → flowDiagram-I6XJVG4X.CfGFczAY.js} +1 -1
  36. package/web/_astro/{ganttDiagram-6RSMTGT7.DP2ouiRt.js → ganttDiagram-6RSMTGT7.C2AIvtmg.js} +1 -1
  37. package/web/_astro/{gitGraphDiagram-PVQCEYII.DizVfgVG.js → gitGraphDiagram-PVQCEYII.HlXuGqQg.js} +1 -1
  38. package/web/_astro/index.D5Wqk2Tw.css +1 -0
  39. package/web/_astro/{infoDiagram-5YYISTIA.BPTTgL0f.js → infoDiagram-5YYISTIA.BWQJsJ4Z.js} +1 -1
  40. package/web/_astro/{ishikawaDiagram-YF4QCWOH.CXdMa4-b.js → ishikawaDiagram-YF4QCWOH.CCHgIHik.js} +1 -1
  41. package/web/_astro/{journeyDiagram-JHISSGLW.ChSKZ-1j.js → journeyDiagram-JHISSGLW.D9M6YwOJ.js} +1 -1
  42. package/web/_astro/{kanban-definition-UN3LZRKU.DUUlW-km.js → kanban-definition-UN3LZRKU.K20D-a1_.js} +1 -1
  43. package/web/_astro/{linear.AzHrSiEQ.js → linear.DeP5Qsol.js} +1 -1
  44. package/web/_astro/{mermaid.core.BajX78G7.js → mermaid.core.ClzxNMPU.js} +4 -4
  45. package/web/_astro/{mindmap-definition-RKZ34NQL.BmdUHcac.js → mindmap-definition-RKZ34NQL.CGn9RUNj.js} +1 -1
  46. package/web/_astro/{pieDiagram-4H26LBE5.Dh59Ur2v.js → pieDiagram-4H26LBE5.CoA92Csb.js} +1 -1
  47. package/web/_astro/{quadrantDiagram-W4KKPZXB.D2qYQmFj.js → quadrantDiagram-W4KKPZXB.CJ_UPjM1.js} +1 -1
  48. package/web/_astro/{requirementDiagram-4Y6WPE33.DW5nnrHl.js → requirementDiagram-4Y6WPE33.KkEPNNUU.js} +1 -1
  49. package/web/_astro/{sankeyDiagram-5OEKKPKP.CMl1PJrk.js → sankeyDiagram-5OEKKPKP.CoCWbQgh.js} +1 -1
  50. package/web/_astro/{sequenceDiagram-3UESZ5HK.U5dq1PA0.js → sequenceDiagram-3UESZ5HK.DUFpV3EP.js} +1 -1
  51. package/web/_astro/{stateDiagram-AJRCARHV.zrt55DVx.js → stateDiagram-AJRCARHV.CgWX0_9m.js} +1 -1
  52. package/web/_astro/{stateDiagram-v2-BHNVJYJU.CKBGQ0dG.js → stateDiagram-v2-BHNVJYJU.BKUXeGSf.js} +1 -1
  53. package/web/_astro/{timeline-definition-PNZ67QCA.CKAlx9rU.js → timeline-definition-PNZ67QCA.CXayAguY.js} +1 -1
  54. package/web/_astro/{vennDiagram-CIIHVFJN.Bgt1eF06.js → vennDiagram-CIIHVFJN.DPak_Elh.js} +1 -1
  55. package/web/_astro/{wardley-L42UT6IY.BF02aioC.js → wardley-L42UT6IY.t3ZlDKd0.js} +1 -1
  56. package/web/_astro/{wardleyDiagram-YWT4CUSO.C94wxcnJ.js → wardleyDiagram-YWT4CUSO.CwPSVASQ.js} +1 -1
  57. package/web/_astro/{xychartDiagram-2RQKCTM6.BwK7SRoW.js → xychartDiagram-2RQKCTM6.CJfrQgpF.js} +1 -1
  58. package/web/index.html +2 -2
  59. package/web/_astro/BoardApp.DH9wI8y7.js +0 -179
  60. package/web/_astro/BoardApp.DZiwQCP7.js +0 -1
  61. package/web/_astro/channel.Ih1_8SAH.js +0 -1
  62. package/web/_astro/index.D3Y4Q0mx.css +0 -1
@@ -0,0 +1,179 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_astro/mermaid.core.ClzxNMPU.js","_astro/index.A0eX93qW.js","_astro/TaskDetail.L36slEqE.js"])))=>i.map(i=>d[i]);
2
+ import{r as g,a as ZA,g as du,R as We,c as KA}from"./index.A0eX93qW.js";var dl={exports:{}},Ti={};var sb;function XA(){if(sb)return Ti;sb=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 Ti.Fragment=t,Ti.jsx=n,Ti.jsxs=n,Ti}var ob;function QA(){return ob||(ob=1,dl.exports=XA()),dl.exports}var p=QA();var Ky=e=>{throw TypeError(e)},JA=(e,t,n)=>t.has(e)||Ky("Cannot "+n),pl=(e,t,n)=>(JA(e,t,"read from private field"),n?n.call(e):t.get(e)),e_=(e,t,n)=>t.has(e)?Ky("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ub="popstate";function t_(e={}){function t(r,a){let{pathname:i,search:s,hash:o}=r.location;return as("",{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:hr(a)}return r_(t,n,null,e)}function Je(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Pt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function n_(){return Math.random().toString(36).substring(2,10)}function lb(e,t){return{usr:e.state,key:e.key,idx:t}}function as(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?qr(t):t,state:n,key:t&&t.key||r||n_()}}function hr({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 qr(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 r_(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,s=a.history,o="POP",u=null,l=c();l==null&&(l=0,s.replaceState({...s.state,idx:l},""));function c(){return(s.state||{idx:null}).idx}function d(){o="POP";let E=c(),T=E==null?null:E-l;l=E,u&&u({action:o,location:y.location,delta:T})}function f(E,T){o="PUSH";let v=as(y.location,E,T);l=c()+1;let x=lb(v,l),I=y.createHref(v);try{s.pushState(x,"",I)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;a.location.assign(I)}i&&u&&u({action:o,location:y.location,delta:1})}function m(E,T){o="REPLACE";let v=as(y.location,E,T);l=c();let x=lb(v,l),I=y.createHref(v);s.replaceState(x,"",I),i&&u&&u({action:o,location:y.location,delta:0})}function b(E){return Xy(E)}let y={get action(){return o},get location(){return e(a,s)},listen(E){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(ub,d),u=E,()=>{a.removeEventListener(ub,d),u=null}},createHref(E){return t(a,E)},createURL:b,encodeLocation(E){let T=b(E);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:f,replace:m,go(E){return s.go(E)}};return y}function Xy(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Je(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:hr(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var Fi,cb=class{constructor(e){if(e_(this,Fi,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(pl(this,Fi).has(e))return pl(this,Fi).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){pl(this,Fi).set(e,t)}};Fi=new WeakMap;var a_=new Set(["lazy","caseSensitive","path","id","index","children"]);function i_(e){return a_.has(e)}var s_=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function o_(e){return s_.has(e)}function u_(e){return e.index===!0}function is(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(Je(i.index!==!0||!i.children,"Cannot specify children on an index route"),Je(a||!r[u],`Found a route id collision on id "${u}". Route id's must be globally unique within Data Router usages`),u_(i)){let l={...i,id:u};return r[u]=db(l,t(l)),l}else{let l={...i,id:u,children:void 0};return r[u]=db(l,t(l)),i.children&&(l.children=is(i.children,t,o,r,a)),l}})}function db(e,t){return Object.assign(e,{...t,...typeof t.lazy=="object"&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function Ur(e,t,n="/"){return Mi(e,t,n,!1)}function Mi(e,t,n,r){let a=typeof t=="string"?qr(t):t,i=Qn(a.pathname||"/",n);if(i==null)return null;let s=Qy(e);c_(s);let o=null;for(let u=0;o==null&&u<s.length;++u){let l=S_(i);o=y_(s[u],l,r)}return o}function l_(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 Qy(e,t=[],n=[],r="",a=!1){let i=(s,o,u=a,l)=>{let c={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(r)&&u)return;Je(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let d=mr([r,c.relativePath]),f=n.concat(c);s.children&&s.children.length>0&&(Je(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Qy(s.children,t,f,d,u)),!(s.path==null&&!s.index)&&t.push({path:d,score:b_(d,s.index),routesMeta:f})};return e.forEach((s,o)=>{if(s.path===""||!s.path?.includes("?"))i(s,o);else for(let u of Jy(s.path))i(s,o,!0,u)}),t}function Jy(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=Jy(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 c_(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:E_(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var d_=/^:[\w-]+$/,p_=3,f_=2,m_=1,h_=10,g_=-2,pb=e=>e==="*";function b_(e,t){let n=e.split("/"),r=n.length;return n.some(pb)&&(r+=g_),t&&(r+=f_),n.filter(a=>!pb(a)).reduce((a,i)=>a+(d_.test(i)?p_:i===""?m_:h_),r)}function E_(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 y_(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",s=[];for(let o=0;o<r.length;++o){let u=r[o],l=o===r.length-1,c=i==="/"?t:t.slice(i.length)||"/",d=Oo({path:u.relativePath,caseSensitive:u.caseSensitive,end:l},c),f=u.route;if(!d&&l&&n&&!r[r.length-1].route.index&&(d=Oo({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},c)),!d)return null;Object.assign(a,d.params),s.push({params:a,pathname:mr([i,d.pathname]),pathnameBase:__(mr([i,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(i=mr([i,d.pathnameBase]))}return s}function Oo(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=T_(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((l,{paramName:c,isOptional:d},f)=>{if(c==="*"){let b=o[f]||"";s=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const m=o[f];return d&&!m?l[c]=void 0:l[c]=(m||"").replace(/%2F/g,"/"),l},{}),pathname:i,pathnameBase:s,pattern:e}}function T_(e,t=!1,n=!0){Pt(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 S_(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Pt(!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 Qn(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 x_({basename:e,pathname:t}){return t==="/"?e:mr([e,t])}var eT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pu=e=>eT.test(e);function A_(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?qr(e):e,i;if(n)if(pu(n))i=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),Pt(!1,`Pathnames cannot have embedded double slashes - normalizing ${s} -> ${n}`)}n.startsWith("/")?i=fb(n.substring(1),"/"):i=fb(n,t)}else i=t;return{pathname:i,search:v_(r),hash:w_(a)}}function fb(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 fl(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 tT(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function fu(e){let t=tT(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function mu(e,t,n,r=!1){let a;typeof e=="string"?a=qr(e):(a={...e},Je(!a.pathname||!a.pathname.includes("?"),fl("?","pathname","search",a)),Je(!a.pathname||!a.pathname.includes("#"),fl("#","pathname","hash",a)),Je(!a.search||!a.search.includes("#"),fl("#","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=A_(a,o),l=s&&s!=="/"&&s.endsWith("/"),c=(i||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}var mr=e=>e.join("/").replace(/\/\/+/g,"/"),__=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),v_=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,w_=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Ss=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 ss(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function xs(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var nT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function rT(e,t){let n=e;if(typeof n!="string"||!eT.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(nT)try{let i=new URL(window.location.href),s=n.startsWith("//")?new URL(i.protocol+n):new URL(n),o=Qn(s.pathname,t);s.origin===i.origin&&o!=null?n=o+s.search+s.hash:a=!0}catch{Pt(!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 zr=Symbol("Uninstrumented");function N_(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=Da(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=Da(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[zr]??i,o=Da(n[a],s,(...u)=>mb(u[0]));o&&(o[zr]=s,r[a]=o)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(a=>{let i=a[zr]??a,s=Da(n.middleware,i,(...o)=>mb(o[0]));return s?(s[zr]=i,s):a})),r}function C_(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[zr]??e.navigate,a=Da(n.navigate,r,(...i)=>{let[s,o]=i;return{to:typeof s=="number"||typeof s=="string"?s:s?hr(s):".",...hb(e,o??{})}});a&&(a[zr]=r,e.navigate=a)}if(n.fetch.length>0){let r=e.fetch[zr]??e.fetch,a=Da(n.fetch,r,(...i)=>{let[s,,o,u]=i;return{href:o??".",fetcherKey:s,...hb(e,u??{})}});a&&(a[zr]=r,e.fetch=a)}return e}function Da(e,t,n){return e.length===0?null:async(...r)=>{let a=await aT(e,n(...r),()=>t(...r),e.length-1);if(a.type==="error")throw a.value;return a.value}}async function aT(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=aT(e,t,n,r-1),i=await s,Je(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 mb(e){let{request:t,context:n,params:r,unstable_pattern:a}=e;return{request:I_(t),params:{...r},unstable_pattern:a,context:k_(n)}}function hb(e,t){return{currentUrl:hr(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 I_(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function k_(e){if(D_(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var R_=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function D_(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")===R_}var iT=["POST","PUT","PATCH","DELETE"],O_=new Set(iT),L_=["GET",...iT],F_=new Set(L_),sT=new Set([301,302,303,307,308]),M_=new Set([307,308]),ml={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},P_={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Si={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},B_=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),oT="remix-router-transitions",uT=Symbol("ResetLoaderData");function U_(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";Je(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],a=e.mapRouteProperties||B_,i=a;if(e.unstable_instrumentations){let F=e.unstable_instrumentations;i=B=>({...a(B),...N_(F.map(V=>V.route).filter(Boolean),B)})}let s={},o=is(e.routes,i,void 0,s),u,l=e.basename||"/";l.startsWith("/")||(l=`/${l}`);let c=e.dataStrategy||G_,d={...e.future},f=null,m=new Set,b=null,y=null,E=null,T=e.hydrationData!=null,v=Ur(o,e.history.location,l),x=!1,I=null,D;if(v==null&&!e.patchRoutesOnNavigation){let F=qn(404,{pathname:e.history.location.pathname}),{matches:B,route:V}=Ys(o);D=!0,v=B,I={[V.id]:F}}else if(v&&!e.hydrationData&&qe(v,o,e.history.location.pathname).active&&(v=null),v)if(v.some(F=>F.route.lazy))D=!1;else if(!v.some(F=>id(F.route)))D=!0;else{let F=e.hydrationData?e.hydrationData.loaderData:null,B=e.hydrationData?e.hydrationData.errors:null;if(B){let V=v.findIndex(te=>B[te.route.id]!==void 0);D=v.slice(0,V+1).every(te=>!gc(te.route,F,B))}else D=v.every(V=>!gc(V.route,F,B))}else{D=!1,v=[];let F=qe(null,o,e.history.location.pathname);F.active&&F.matches&&(x=!0,v=F.matches)}let S,A={historyAction:e.history.action,location:e.history.location,matches:v,initialized:D,navigation:ml,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||I,fetchers:new Map,blockers:new Map},k="POP",P=null,w=!1,U,j=!1,K=new Map,X=null,G=!1,oe=!1,Q=new Set,ae=new Map,Y=0,N=-1,H=new Map,ie=new Set,R=new Map,ve=new Map,Oe=new Set,Ne=new Map,je,be=null;function ge(){if(f=e.history.listen(({action:F,location:B,delta:V})=>{if(je){je(),je=void 0;return}Pt(Ne.size===0||V!=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 te=Le({currentLocation:A.location,nextLocation:B,historyAction:F});if(te&&V!=null){let ue=new Promise(xe=>{je=xe});e.history.go(V*-1),z(te,{state:"blocked",location:B,proceed(){z(te,{state:"proceeding",proceed:void 0,reset:void 0,location:B}),ue.then(()=>e.history.go(V))},reset(){let xe=new Map(A.blockers);xe.set(te,Si),Ee({blockers:xe})}}),P?.resolve(),P=null;return}return ct(F,B)}),n){uv(t,K);let F=()=>lv(t,K);t.addEventListener("pagehide",F),X=()=>t.removeEventListener("pagehide",F)}return A.initialized||ct("POP",A.location,{initialHydration:!0}),S}function pt(){f&&f(),X&&X(),m.clear(),U&&U.abort(),A.fetchers.forEach((F,B)=>At(B)),A.blockers.forEach((F,B)=>ke(B))}function ze(F){return m.add(F),()=>m.delete(F)}function Ee(F,B={}){F.matches&&(F.matches=F.matches.map(ue=>{let xe=s[ue.route.id],Se=ue.route;return Se.element!==xe.element||Se.errorElement!==xe.errorElement||Se.hydrateFallbackElement!==xe.hydrateFallbackElement?{...ue,route:xe}:ue})),A={...A,...F};let V=[],te=[];A.fetchers.forEach((ue,xe)=>{ue.state==="idle"&&(Oe.has(xe)?V.push(xe):te.push(xe))}),Oe.forEach(ue=>{!A.fetchers.has(ue)&&!ae.has(ue)&&V.push(ue)}),[...m].forEach(ue=>ue(A,{deletedFetchers:V,newErrors:F.errors??null,viewTransitionOpts:B.viewTransitionOpts,flushSync:B.flushSync===!0})),V.forEach(ue=>At(ue)),te.forEach(ue=>A.fetchers.delete(ue))}function Me(F,B,{flushSync:V}={}){let te=A.actionData!=null&&A.navigation.formMethod!=null&&xn(A.navigation.formMethod)&&A.navigation.state==="loading"&&F.state?._isRedirect!==!0,ue;B.actionData?Object.keys(B.actionData).length>0?ue=B.actionData:ue=null:te?ue=A.actionData:ue=null;let xe=B.loaderData?vb(A.loaderData,B.loaderData,B.matches||[],B.errors):A.loaderData,Se=A.blockers;Se.size>0&&(Se=new Map(Se),Se.forEach((Ue,Re)=>Se.set(Re,Si)));let we=G?!1:Xe(F,B.matches||A.matches),me=w===!0||A.navigation.formMethod!=null&&xn(A.navigation.formMethod)&&F.state?._isRedirect!==!0;u&&(o=u,u=void 0),G||k==="POP"||(k==="PUSH"?e.history.push(F,F.state):k==="REPLACE"&&e.history.replace(F,F.state));let Ce;if(k==="POP"){let Ue=K.get(A.location.pathname);Ue&&Ue.has(F.pathname)?Ce={currentLocation:A.location,nextLocation:F}:K.has(F.pathname)&&(Ce={currentLocation:F,nextLocation:A.location})}else if(j){let Ue=K.get(A.location.pathname);Ue?Ue.add(F.pathname):(Ue=new Set([F.pathname]),K.set(A.location.pathname,Ue)),Ce={currentLocation:A.location,nextLocation:F}}Ee({...B,actionData:ue,loaderData:xe,historyAction:k,location:F,initialized:!0,navigation:ml,revalidation:"idle",restoreScrollPosition:we,preventScrollReset:me,blockers:Se},{viewTransitionOpts:Ce,flushSync:V===!0}),k="POP",w=!1,j=!1,G=!1,oe=!1,P?.resolve(),P=null,be?.resolve(),be=null}async function tt(F,B){if(P?.resolve(),P=null,typeof F=="number"){P||(P=Ib());let dt=P.promise;return e.history.go(F),dt}let V=hc(A.location,A.matches,l,F,B?.fromRouteId,B?.relative),{path:te,submission:ue,error:xe}=gb(!1,V,B),Se=A.location,we=as(A.location,te,B&&B.state);we={...we,...e.history.encodeLocation(we)};let me=B&&B.replace!=null?B.replace:void 0,Ce="PUSH";me===!0?Ce="REPLACE":me===!1||ue!=null&&xn(ue.formMethod)&&ue.formAction===A.location.pathname+A.location.search&&(Ce="REPLACE");let Ue=B&&"preventScrollReset"in B?B.preventScrollReset===!0:void 0,Re=(B&&B.flushSync)===!0,lt=Le({currentLocation:Se,nextLocation:we,historyAction:Ce});if(lt){z(lt,{state:"blocked",location:we,proceed(){z(lt,{state:"proceeding",proceed:void 0,reset:void 0,location:we}),tt(F,B)},reset(){let dt=new Map(A.blockers);dt.set(lt,Si),Ee({blockers:dt})}});return}await ct(Ce,we,{submission:ue,pendingError:xe,preventScrollReset:Ue,replace:B&&B.replace,enableViewTransition:B&&B.viewTransition,flushSync:Re,callSiteDefaultShouldRevalidate:B&&B.unstable_defaultShouldRevalidate})}function de(){be||(be=Ib()),ne(),Ee({revalidation:"loading"});let F=be.promise;return A.navigation.state==="submitting"?F:A.navigation.state==="idle"?(ct(A.historyAction,A.location,{startUninterruptedRevalidation:!0}),F):(ct(k||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation,enableViewTransition:j===!0}),F)}async function ct(F,B,V){U&&U.abort(),U=null,k=F,G=(V&&V.startUninterruptedRevalidation)===!0,Ct(A.location,A.matches),w=(V&&V.preventScrollReset)===!0,j=(V&&V.enableViewTransition)===!0;let te=u||o,ue=V&&V.overrideNavigation,xe=V?.initialHydration&&A.matches&&A.matches.length>0&&!x?A.matches:Ur(te,B,l),Se=(V&&V.flushSync)===!0;if(xe&&A.initialized&&!oe&&Q_(A.location,B)&&!(V&&V.submission&&xn(V.submission.formMethod))){Me(B,{matches:xe},{flushSync:Se});return}let we=qe(xe,te,B.pathname);if(we.active&&we.matches&&(xe=we.matches),!xe){let{error:qt,notFoundMatches:dn,route:Et}=he(B.pathname);Me(B,{matches:dn,loaderData:{},errors:{[Et.id]:qt}},{flushSync:Se});return}U=new AbortController;let me=Ia(e.history,B,U.signal,V&&V.submission),Ce=e.getContext?await e.getContext():new cb,Ue;if(V&&V.pendingError)Ue=[jr(xe).route.id,{type:"error",error:V.pendingError}];else if(V&&V.submission&&xn(V.submission.formMethod)){let qt=await yt(me,B,V.submission,xe,Ce,we.active,V&&V.initialHydration===!0,{replace:V.replace,flushSync:Se});if(qt.shortCircuited)return;if(qt.pendingActionResult){let[dn,Et]=qt.pendingActionResult;if(Un(Et)&&ss(Et.error)&&Et.error.status===404){U=null,Me(B,{matches:qt.matches,loaderData:{},errors:{[dn]:Et.error}});return}}xe=qt.matches||xe,Ue=qt.pendingActionResult,ue=hl(B,V.submission),Se=!1,we.active=!1,me=Ia(e.history,me.url,me.signal)}let{shortCircuited:Re,matches:lt,loaderData:dt,errors:Vt}=await ht(me,B,xe,Ce,we.active,ue,V&&V.submission,V&&V.fetcherSubmission,V&&V.replace,V&&V.initialHydration===!0,Se,Ue,V&&V.callSiteDefaultShouldRevalidate);Re||(U=null,Me(B,{matches:lt||xe,...wb(Ue),loaderData:dt,errors:Vt}))}async function yt(F,B,V,te,ue,xe,Se,we={}){ne();let me=sv(B,V);if(Ee({navigation:me},{flushSync:we.flushSync===!0}),xe){let Re=await _t(te,B.pathname,F.signal);if(Re.type==="aborted")return{shortCircuited:!0};if(Re.type==="error"){if(Re.partialMatches.length===0){let{matches:dt,route:Vt}=Ys(o);return{matches:dt,pendingActionResult:[Vt.id,{type:"error",error:Re.error}]}}let lt=jr(Re.partialMatches).route.id;return{matches:Re.partialMatches,pendingActionResult:[lt,{type:"error",error:Re.error}]}}else if(Re.matches)te=Re.matches;else{let{notFoundMatches:lt,error:dt,route:Vt}=he(B.pathname);return{matches:lt,pendingActionResult:[Vt.id,{type:"error",error:dt}]}}}let Ce,Ue=yo(te,B);if(!Ue.route.action&&!Ue.route.lazy)Ce={type:"error",error:qn(405,{method:F.method,pathname:B.pathname,routeId:Ue.route.id})};else{let Re=Ua(i,s,F,te,Ue,Se?[]:r,ue),lt=await Ze(F,Re,ue,null);if(Ce=lt[Ue.route.id],!Ce){for(let dt of te)if(lt[dt.route.id]){Ce=lt[dt.route.id];break}}if(F.signal.aborted)return{shortCircuited:!0}}if(ea(Ce)){let Re;return we&&we.replace!=null?Re=we.replace:Re=xb(Ce.response.headers.get("Location"),new URL(F.url),l)===A.location.pathname+A.location.search,await Ae(F,Ce,!0,{submission:V,replace:Re}),{shortCircuited:!0}}if(Un(Ce)){let Re=jr(te,Ue.route.id);return(we&&we.replace)!==!0&&(k="PUSH"),{matches:te,pendingActionResult:[Re.route.id,Ce,Ue.route.id]}}return{matches:te,pendingActionResult:[Ue.route.id,Ce]}}async function ht(F,B,V,te,ue,xe,Se,we,me,Ce,Ue,Re,lt){let dt=xe||hl(B,Se),Vt=Se||we||Cb(dt),qt=!G&&!Ce;if(ue){if(qt){let Mt=$t(Re);Ee({navigation:dt,...Mt!==void 0?{actionData:Mt}:{}},{flushSync:Ue})}let nt=await _t(V,B.pathname,F.signal);if(nt.type==="aborted")return{shortCircuited:!0};if(nt.type==="error"){if(nt.partialMatches.length===0){let{matches:Gn,route:pn}=Ys(o);return{matches:Gn,loaderData:{},errors:{[pn.id]:nt.error}}}let Mt=jr(nt.partialMatches).route.id;return{matches:nt.partialMatches,loaderData:{},errors:{[Mt]:nt.error}}}else if(nt.matches)V=nt.matches;else{let{error:Mt,notFoundMatches:Gn,route:pn}=he(B.pathname);return{matches:Gn,loaderData:{},errors:{[pn.id]:Mt}}}}let dn=u||o,{dsMatches:Et,revalidatingFetchers:Dn}=bb(F,te,i,s,e.history,A,V,Vt,B,Ce?[]:r,Ce===!0,oe,Q,Oe,R,ie,dn,l,e.patchRoutesOnNavigation!=null,Re,lt);if(N=++Y,!e.dataStrategy&&!Et.some(nt=>nt.shouldLoad)&&!Et.some(nt=>nt.route.middleware&&nt.route.middleware.length>0)&&Dn.length===0){let nt=ee();return Me(B,{matches:V,loaderData:{},errors:Re&&Un(Re[1])?{[Re[0]]:Re[1].error}:null,...wb(Re),...nt?{fetchers:new Map(A.fetchers)}:{}},{flushSync:Ue}),{shortCircuited:!0}}if(qt){let nt={};if(!ue){nt.navigation=dt;let Mt=$t(Re);Mt!==void 0&&(nt.actionData=Mt)}Dn.length>0&&(nt.fetchers=Rt(Dn)),Ee(nt,{flushSync:Ue})}Dn.forEach(nt=>{bt(nt.key),nt.controller&&ae.set(nt.key,nt.controller)});let Tn=()=>Dn.forEach(nt=>bt(nt.key));U&&U.signal.addEventListener("abort",Tn);let{loaderResults:kr,fetcherResults:Sn}=await W(Et,Dn,F,te);if(F.signal.aborted)return{shortCircuited:!0};U&&U.signal.removeEventListener("abort",Tn),Dn.forEach(nt=>ae.delete(nt.key));let Hn=Zs(kr);if(Hn)return await Ae(F,Hn.result,!0,{replace:me}),{shortCircuited:!0};if(Hn=Zs(Sn),Hn)return ie.add(Hn.key),await Ae(F,Hn.result,!0,{replace:me}),{shortCircuited:!0};let{loaderData:Ei,errors:Rr}=_b(A,V,kr,Re,Dn,Sn);Ce&&A.errors&&(Rr={...A.errors,...Rr});let ur=ee(),Tr=ye(N),Dr=ur||Tr||Dn.length>0;return{matches:V,loaderData:Ei,errors:Rr,...Dr?{fetchers:new Map(A.fetchers)}:{}}}function $t(F){if(F&&!Un(F[1]))return{[F[0]]:F[1].data};if(A.actionData)return Object.keys(A.actionData).length===0?null:A.actionData}function Rt(F){return F.forEach(B=>{let V=A.fetchers.get(B.key),te=xi(void 0,V?V.data:void 0);A.fetchers.set(B.key,te)}),new Map(A.fetchers)}async function zt(F,B,V,te){bt(F);let ue=(te&&te.flushSync)===!0,xe=u||o,Se=hc(A.location,A.matches,l,V,B,te?.relative),we=Ur(xe,Se,l),me=qe(we,xe,Se);if(me.active&&me.matches&&(we=me.matches),!we){_e(F,B,qn(404,{pathname:Se}),{flushSync:ue});return}let{path:Ce,submission:Ue,error:Re}=gb(!0,Se,te);if(Re){_e(F,B,Re,{flushSync:ue});return}let lt=e.getContext?await e.getContext():new cb,dt=(te&&te.preventScrollReset)===!0;if(Ue&&xn(Ue.formMethod)){await tn(F,B,Ce,we,lt,me.active,ue,dt,Ue,te&&te.unstable_defaultShouldRevalidate);return}R.set(F,{routeId:B,path:Ce}),await ut(F,B,Ce,we,lt,me.active,ue,dt,Ue)}async function tn(F,B,V,te,ue,xe,Se,we,me,Ce){ne(),R.delete(F);let Ue=A.fetchers.get(F);Te(F,ov(me,Ue),{flushSync:Se});let Re=new AbortController,lt=Ia(e.history,V,Re.signal,me);if(xe){let Ot=await _t(te,new URL(lt.url).pathname,lt.signal,F);if(Ot.type==="aborted")return;if(Ot.type==="error"){_e(F,B,Ot.error,{flushSync:Se});return}else if(Ot.matches)te=Ot.matches;else{_e(F,B,qn(404,{pathname:V}),{flushSync:Se});return}}let dt=yo(te,V);if(!dt.route.action&&!dt.route.lazy){let Ot=qn(405,{method:me.formMethod,pathname:V,routeId:B});_e(F,B,Ot,{flushSync:Se});return}ae.set(F,Re);let Vt=Y,qt=Ua(i,s,lt,te,dt,r,ue),dn=await Ze(lt,qt,ue,F),Et=dn[dt.route.id];if(!Et){for(let Ot of qt)if(dn[Ot.route.id]){Et=dn[Ot.route.id];break}}if(lt.signal.aborted){ae.get(F)===Re&&ae.delete(F);return}if(Oe.has(F)){if(ea(Et)||Un(Et)){Te(F,Sr(void 0));return}}else{if(ea(Et))if(ae.delete(F),N>Vt){Te(F,Sr(void 0));return}else return ie.add(F),Te(F,xi(me)),Ae(lt,Et,!1,{fetcherSubmission:me,preventScrollReset:we});if(Un(Et)){_e(F,B,Et.error);return}}let Dn=A.navigation.location||A.location,Tn=Ia(e.history,Dn,Re.signal),kr=u||o,Sn=A.navigation.state!=="idle"?Ur(kr,A.navigation.location,l):A.matches;Je(Sn,"Didn't find any matches after fetcher action");let Hn=++Y;H.set(F,Hn);let Ei=xi(me,Et.data);A.fetchers.set(F,Ei);let{dsMatches:Rr,revalidatingFetchers:ur}=bb(Tn,ue,i,s,e.history,A,Sn,me,Dn,r,!1,oe,Q,Oe,R,ie,kr,l,e.patchRoutesOnNavigation!=null,[dt.route.id,Et],Ce);ur.filter(Ot=>Ot.key!==F).forEach(Ot=>{let Aa=Ot.key,yi=A.fetchers.get(Aa),Vs=xi(void 0,yi?yi.data:void 0);A.fetchers.set(Aa,Vs),bt(Aa),Ot.controller&&ae.set(Aa,Ot.controller)}),Ee({fetchers:new Map(A.fetchers)});let Tr=()=>ur.forEach(Ot=>bt(Ot.key));Re.signal.addEventListener("abort",Tr);let{loaderResults:Dr,fetcherResults:nt}=await W(Rr,ur,Tn,ue);if(Re.signal.aborted)return;if(Re.signal.removeEventListener("abort",Tr),H.delete(F),ae.delete(F),ur.forEach(Ot=>ae.delete(Ot.key)),A.fetchers.has(F)){let Ot=Sr(Et.data);A.fetchers.set(F,Ot)}let Mt=Zs(Dr);if(Mt)return Ae(Tn,Mt.result,!1,{preventScrollReset:we});if(Mt=Zs(nt),Mt)return ie.add(Mt.key),Ae(Tn,Mt.result,!1,{preventScrollReset:we});let{loaderData:Gn,errors:pn}=_b(A,Sn,Dr,void 0,ur,nt);ye(Hn),A.navigation.state==="loading"&&Hn>N?(Je(k,"Expected pending action"),U&&U.abort(),Me(A.navigation.location,{matches:Sn,loaderData:Gn,errors:pn,fetchers:new Map(A.fetchers)})):(Ee({errors:pn,loaderData:vb(A.loaderData,Gn,Sn,pn),fetchers:new Map(A.fetchers)}),oe=!1)}async function ut(F,B,V,te,ue,xe,Se,we,me){let Ce=A.fetchers.get(F);Te(F,xi(me,Ce?Ce.data:void 0),{flushSync:Se});let Ue=new AbortController,Re=Ia(e.history,V,Ue.signal);if(xe){let Et=await _t(te,new URL(Re.url).pathname,Re.signal,F);if(Et.type==="aborted")return;if(Et.type==="error"){_e(F,B,Et.error,{flushSync:Se});return}else if(Et.matches)te=Et.matches;else{_e(F,B,qn(404,{pathname:V}),{flushSync:Se});return}}let lt=yo(te,V);ae.set(F,Ue);let dt=Y,Vt=Ua(i,s,Re,te,lt,r,ue),dn=(await Ze(Re,Vt,ue,F))[lt.route.id];if(ae.get(F)===Ue&&ae.delete(F),!Re.signal.aborted){if(Oe.has(F)){Te(F,Sr(void 0));return}if(ea(dn))if(N>dt){Te(F,Sr(void 0));return}else{ie.add(F),await Ae(Re,dn,!1,{preventScrollReset:we});return}if(Un(dn)){_e(F,B,dn.error);return}Te(F,Sr(dn.data))}}async function Ae(F,B,V,{submission:te,fetcherSubmission:ue,preventScrollReset:xe,replace:Se}={}){V||(P?.resolve(),P=null),B.response.headers.has("X-Remix-Revalidate")&&(oe=!0);let we=B.response.headers.get("Location");Je(we,"Expected a Location header on the redirect Response"),we=xb(we,new URL(F.url),l);let me=as(A.location,we,{_isRedirect:!0});if(n){let Vt=!1;if(B.response.headers.has("X-Remix-Reload-Document"))Vt=!0;else if(pu(we)){const qt=Xy(we,!0);Vt=qt.origin!==t.location.origin||Qn(qt.pathname,l)==null}if(Vt){Se?t.location.replace(we):t.location.assign(we);return}}U=null;let Ce=Se===!0||B.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ue,formAction:Re,formEncType:lt}=A.navigation;!te&&!ue&&Ue&&Re&&lt&&(te=Cb(A.navigation));let dt=te||ue;if(M_.has(B.response.status)&&dt&&xn(dt.formMethod))await ct(Ce,me,{submission:{...dt,formAction:we},preventScrollReset:xe||w,enableViewTransition:V?j:void 0});else{let Vt=hl(me,te);await ct(Ce,me,{overrideNavigation:Vt,fetcherSubmission:ue,preventScrollReset:xe||w,enableViewTransition:V?j:void 0})}}async function Ze(F,B,V,te){let ue,xe={};try{ue=await V_(c,F,B,te,V,!1)}catch(Se){return B.filter(we=>we.shouldLoad).forEach(we=>{xe[we.route.id]={type:"error",error:Se}}),xe}if(F.signal.aborted)return xe;if(!xn(F.method))for(let Se of B){if(ue[Se.route.id]?.type==="error")break;!ue.hasOwnProperty(Se.route.id)&&!A.loaderData.hasOwnProperty(Se.route.id)&&(!A.errors||!A.errors.hasOwnProperty(Se.route.id))&&Se.shouldCallHandler()&&(ue[Se.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${Se.route.id}`)})}for(let[Se,we]of Object.entries(ue))if(nv(we)){let me=we.result;xe[Se]={type:"redirect",response:K_(me,F,Se,B,l)}}else xe[Se]=await Z_(we);return xe}async function W(F,B,V,te){let ue=Ze(V,F,te,null),xe=Promise.all(B.map(async me=>{if(me.matches&&me.match&&me.request&&me.controller){let Ue=(await Ze(me.request,me.matches,te,me.key))[me.match.route.id];return{[me.key]:Ue}}else return Promise.resolve({[me.key]:{type:"error",error:qn(404,{pathname:me.path})}})})),Se=await ue,we=(await xe).reduce((me,Ce)=>Object.assign(me,Ce),{});return{loaderResults:Se,fetcherResults:we}}function ne(){oe=!0,R.forEach((F,B)=>{ae.has(B)&&Q.add(B),bt(B)})}function Te(F,B,V={}){A.fetchers.set(F,B),Ee({fetchers:new Map(A.fetchers)},{flushSync:(V&&V.flushSync)===!0})}function _e(F,B,V,te={}){let ue=jr(A.matches,B);At(F),Ee({errors:{[ue.route.id]:V},fetchers:new Map(A.fetchers)},{flushSync:(te&&te.flushSync)===!0})}function $e(F){return ve.set(F,(ve.get(F)||0)+1),Oe.has(F)&&Oe.delete(F),A.fetchers.get(F)||P_}function Ke(F,B){bt(F,B?.reason),Te(F,Sr(null))}function At(F){let B=A.fetchers.get(F);ae.has(F)&&!(B&&B.state==="loading"&&H.has(F))&&bt(F),R.delete(F),H.delete(F),ie.delete(F),Oe.delete(F),Q.delete(F),A.fetchers.delete(F)}function Tt(F){let B=(ve.get(F)||0)-1;B<=0?(ve.delete(F),Oe.add(F)):ve.set(F,B),Ee({fetchers:new Map(A.fetchers)})}function bt(F,B){let V=ae.get(F);V&&(V.abort(B),ae.delete(F))}function Dt(F){for(let B of F){let V=$e(B),te=Sr(V.data);A.fetchers.set(B,te)}}function ee(){let F=[],B=!1;for(let V of ie){let te=A.fetchers.get(V);Je(te,`Expected fetcher: ${V}`),te.state==="loading"&&(ie.delete(V),F.push(V),B=!0)}return Dt(F),B}function ye(F){let B=[];for(let[V,te]of H)if(te<F){let ue=A.fetchers.get(V);Je(ue,`Expected fetcher: ${V}`),ue.state==="loading"&&(bt(V),H.delete(V),B.push(V))}return Dt(B),B.length>0}function Fe(F,B){let V=A.blockers.get(F)||Si;return Ne.get(F)!==B&&Ne.set(F,B),V}function ke(F){A.blockers.delete(F),Ne.delete(F)}function z(F,B){let V=A.blockers.get(F)||Si;Je(V.state==="unblocked"&&B.state==="blocked"||V.state==="blocked"&&B.state==="blocked"||V.state==="blocked"&&B.state==="proceeding"||V.state==="blocked"&&B.state==="unblocked"||V.state==="proceeding"&&B.state==="unblocked",`Invalid blocker state transition: ${V.state} -> ${B.state}`);let te=new Map(A.blockers);te.set(F,B),Ee({blockers:te})}function Le({currentLocation:F,nextLocation:B,historyAction:V}){if(Ne.size===0)return;Ne.size>1&&Pt(!1,"A router only supports one blocker at a time");let te=Array.from(Ne.entries()),[ue,xe]=te[te.length-1],Se=A.blockers.get(ue);if(!(Se&&Se.state==="proceeding")&&xe({currentLocation:F,nextLocation:B,historyAction:V}))return ue}function he(F){let B=qn(404,{pathname:F}),V=u||o,{matches:te,route:ue}=Ys(V);return{notFoundMatches:te,route:ue,error:B}}function Pe(F,B,V){if(b=F,E=B,y=V||null,!T&&A.navigation===ml){T=!0;let te=Xe(A.location,A.matches);te!=null&&Ee({restoreScrollPosition:te})}return()=>{b=null,E=null,y=null}}function Ve(F,B){return y&&y(F,B.map(te=>l_(te,A.loaderData)))||F.key}function Ct(F,B){if(b&&E){let V=Ve(F,B);b[V]=E()}}function Xe(F,B){if(b){let V=Ve(F,B),te=b[V];if(typeof te=="number")return te}return null}function qe(F,B,V){if(e.patchRoutesOnNavigation)if(F){if(Object.keys(F[0].params).length>0)return{active:!0,matches:Mi(B,V,l,!0)}}else return{active:!0,matches:Mi(B,V,l,!0)||[]};return{active:!1,matches:null}}async function _t(F,B,V,te){if(!e.patchRoutesOnNavigation)return{type:"success",matches:F};let ue=F;for(;;){let xe=u==null,Se=u||o,we=s;try{await e.patchRoutesOnNavigation({signal:V,path:B,matches:ue,fetcherKey:te,patch:(Ue,Re)=>{V.aborted||Eb(Ue,Re,Se,we,i,!1)}})}catch(Ue){return{type:"error",error:Ue,partialMatches:ue}}finally{xe&&!V.aborted&&(o=[...o])}if(V.aborted)return{type:"aborted"};let me=Ur(Se,B,l),Ce=null;if(me){if(Object.keys(me[0].params).length===0)return{type:"success",matches:me};if(Ce=Mi(Se,B,l,!0),!(Ce&&ue.length<Ce.length&&nn(ue,Ce.slice(0,ue.length))))return{type:"success",matches:me}}if(Ce||(Ce=Mi(Se,B,l,!0)),!Ce||nn(ue,Ce))return{type:"success",matches:null};ue=Ce}}function nn(F,B){return F.length===B.length&&F.every((V,te)=>V.route.id===B[te].route.id)}function It(F){s={},u=is(F,i,void 0,s)}function Wt(F,B,V=!1){let te=u==null;Eb(F,B,u||o,s,i,V),te&&(o=[...o],Ee({}))}return S={get basename(){return l},get future(){return d},get state(){return A},get routes(){return o},get window(){return t},initialize:ge,subscribe:ze,enableScrollRestoration:Pe,navigate:tt,fetch:zt,revalidate:de,createHref:F=>e.history.createHref(F),encodeLocation:F=>e.history.encodeLocation(F),getFetcher:$e,resetFetcher:Ke,deleteFetcher:Tt,dispose:pt,getBlocker:Fe,deleteBlocker:ke,patchRoutes:Wt,_internalFetchControllers:ae,_internalSetRoutes:It,_internalSetStateDoNotUseOrYouWillBreakYourApp(F){Ee(F)}},e.unstable_instrumentations&&(S=C_(S,e.unstable_instrumentations.map(F=>F.router).filter(Boolean))),S}function j_(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function hc(e,t,n,r,a,i){let s,o;if(a){s=[];for(let l of t)if(s.push(l),l.route.id===a){o=l;break}}else s=t,o=t[t.length-1];let u=mu(r||".",fu(s),Qn(e.pathname,n)||e.pathname,i==="path");if(r==null&&(u.search=e.search,u.hash=e.hash),(r==null||r===""||r===".")&&o){let l=od(u.search);if(o.route.index&&!l)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!o.route.index&&l){let c=new URLSearchParams(u.search),d=c.getAll("index");c.delete("index"),d.filter(m=>m).forEach(m=>c.append("index",m));let f=c.toString();u.search=f?`?${f}`:""}}return n!=="/"&&(u.pathname=x_({basename:n,pathname:u.pathname})),hr(u)}function gb(e,t,n){if(!n||!j_(n))return{path:t};if(n.formMethod&&!iv(n.formMethod))return{path:t,error:qn(405,{method:n.formMethod})};let r=()=>({path:t,error:qn(400,{type:"invalid-body"})}),i=(n.formMethod||"get").toUpperCase(),s=mT(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!xn(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(!xn(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()}}}Je(typeof FormData=="function","FormData is not available in this environment");let o,u;if(n.formData)o=Ec(n.formData),u=n.formData;else if(n.body instanceof FormData)o=Ec(n.body),u=n.body;else if(n.body instanceof URLSearchParams)o=n.body,u=Ab(o);else if(n.body==null)o=new URLSearchParams,u=new FormData;else try{o=new URLSearchParams(n.body),u=Ab(o)}catch{return r()}let l={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(xn(l.formMethod))return{path:t,submission:l};let c=qr(t);return e&&c.search&&od(c.search)&&o.append("index",""),c.search=`?${o}`,{path:hr(c),submission:l}}function bb(e,t,n,r,a,i,s,o,u,l,c,d,f,m,b,y,E,T,v,x,I){let D=x?Un(x[1])?x[1].error:x[1].data:void 0,S=a.createURL(i.location),A=a.createURL(u),k;if(c&&i.errors){let G=Object.keys(i.errors)[0];k=s.findIndex(oe=>oe.route.id===G)}else if(x&&Un(x[1])){let G=x[0];k=s.findIndex(oe=>oe.route.id===G)-1}let P=x?x[1].statusCode:void 0,w=P&&P>=400,U={currentUrl:S,currentParams:i.matches[0]?.params||{},nextUrl:A,nextParams:s[0].params,...o,actionResult:D,actionStatus:P},j=xs(s),K=s.map((G,oe)=>{let{route:Q}=G,ae=null;if(k!=null&&oe>k?ae=!1:Q.lazy?ae=!0:id(Q)?c?ae=gc(Q,i.loaderData,i.errors):$_(i.loaderData,i.matches[oe],G)&&(ae=!0):ae=!1,ae!==null)return bc(n,r,e,j,G,l,t,ae);let Y=!1;typeof I=="boolean"?Y=I:w?Y=!1:(d||S.pathname+S.search===A.pathname+A.search||S.search!==A.search||z_(i.matches[oe],G))&&(Y=!0);let N={...U,defaultShouldRevalidate:Y},H=$i(G,N);return bc(n,r,e,j,G,l,t,H,N,I)}),X=[];return b.forEach((G,oe)=>{if(c||!s.some(ve=>ve.route.id===G.routeId)||m.has(oe))return;let Q=i.fetchers.get(oe),ae=Q&&Q.state!=="idle"&&Q.data===void 0,Y=Ur(E,G.path,T);if(!Y){if(v&&ae)return;X.push({key:oe,routeId:G.routeId,path:G.path,matches:null,match:null,request:null,controller:null});return}if(y.has(oe))return;let N=yo(Y,G.path),H=new AbortController,ie=Ia(a,G.path,H.signal),R=null;if(f.has(oe))f.delete(oe),R=Ua(n,r,ie,Y,N,l,t);else if(ae)d&&(R=Ua(n,r,ie,Y,N,l,t));else{let ve;typeof I=="boolean"?ve=I:w?ve=!1:ve=d;let Oe={...U,defaultShouldRevalidate:ve};$i(N,Oe)&&(R=Ua(n,r,ie,Y,N,l,t,Oe))}R&&X.push({key:oe,routeId:G.routeId,path:G.path,matches:R,match:N,request:ie,controller:H})}),{dsMatches:K,revalidatingFetchers:X}}function id(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function gc(e,t,n){if(e.lazy)return!0;if(!id(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 $_(e,t,n){let r=!t||n.route.id!==t.route.id,a=!e.hasOwnProperty(n.route.id);return r||a}function z_(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function $i(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function Eb(e,t,n,r,a,i){let s;if(e){let l=r[e];Je(l,`No route found to patch children into: routeId = ${e}`),l.children||(l.children=[]),s=l.children}else s=n;let o=[],u=[];if(t.forEach(l=>{let c=s.find(d=>lT(l,d));c?u.push({existingRoute:c,newRoute:l}):o.push(l)}),o.length>0){let l=is(o,a,[e||"_","patch",String(s?.length||"0")],r);s.push(...l)}if(i&&u.length>0)for(let l=0;l<u.length;l++){let{existingRoute:c,newRoute:d}=u[l],f=c,[m]=is([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 lT(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=>lT(n,a))):!1}var yb=new WeakMap,cT=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let a=n[t.id];if(Je(a,"No route found in manifest"),!a.lazy||typeof a.lazy!="object")return;let i=a.lazy[e];if(!i)return;let s=yb.get(a);s||(s={},yb.set(a,s));let o=s[e];if(o)return o;let u=(async()=>{let l=i_(e),d=a[e]!==void 0&&e!=="hasErrorBoundary";if(l)Pt(!l,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),s[e]=Promise.resolve();else if(d)Pt(!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},Tb=new WeakMap;function H_(e,t,n,r,a){let i=n[e.id];if(Je(i,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let c=Tb.get(i);if(c)return{lazyRoutePromise:c,lazyHandlerPromise:c};let d=(async()=>{Je(typeof e.lazy=="function","No lazy route function found");let f=await e.lazy(),m={};for(let b in f){let y=f[b];if(y===void 0)continue;let E=o_(b),v=i[b]!==void 0&&b!=="hasErrorBoundary";E?Pt(!E,"Route property "+b+" is not a supported property to be returned from a lazy route function. This property will be ignored."):v?Pt(!v,`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]=y}Object.assign(i,m),Object.assign(i,{...r(i),lazy:void 0})})();return Tb.set(i,d),d.catch(()=>{}),{lazyRoutePromise:d,lazyHandlerPromise:d}}let s=Object.keys(e.lazy),o=[],u;for(let c of s){if(a&&a.includes(c))continue;let d=cT({key:c,route:e,manifest:n,mapRouteProperties:r});d&&(o.push(d),c===t&&(u=d))}let l=o.length>0?Promise.all(o).then(()=>{}):void 0;return l?.catch(()=>{}),u?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:u}}async function Sb(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 G_(e){return e.matches.some(t=>t.route.middleware)?dT(e,()=>Sb(e)):Sb(e)}function dT(e,t){return W_(e,t,r=>{if(av(r))throw r;return r},ev,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(l=>l.route.id===a),0),Math.max(s.findIndex(l=>l.shouldCallHandler()),0)),u=jr(s,s[o].route.id).route.id;return Promise.resolve({[u]:{type:"error",result:r}})}}}async function W_(e,t,n,r,a){let{matches:i,request:s,params:o,context:u,unstable_pattern:l}=e,c=i.flatMap(f=>f.route.middleware?f.route.middleware.map(m=>[f.route.id,m]):[]);return await pT({request:s,params:o,context:u,unstable_pattern:l},c,t,n,r,a)}async function pT(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[l,c]=u,d,f=async()=>{if(d)throw new Error("You may only call `next()` once per middleware");try{return d={value:await pT(e,t,n,r,a,i,s+1)},d.value}catch(m){return d={value:await i(m,l,d)},d.value}};try{let m=await c(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,l,d)}}function fT(e,t,n,r,a){let i=cT({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),s=H_(r.route,xn(n.method)?"action":"loader",t,e,a);return{middleware:i,route:s.lazyRoutePromise,handler:s.lazyHandlerPromise}}function bc(e,t,n,r,a,i,s,o,u=null,l){let c=!1,d=fT(e,t,n,a,i);return{...a,_lazyPromises:d,shouldLoad:o,shouldRevalidateArgs:u,shouldCallHandler(f){return c=!0,u?typeof l=="boolean"?$i(a,{...u,defaultShouldRevalidate:l}):typeof f=="boolean"?$i(a,{...u,defaultShouldRevalidate:f}):$i(a,u):o},resolve(f){let{lazy:m,loader:b,middleware:y}=a.route,E=c||o||f&&!xn(n.method)&&(m||b),T=y&&y.length>0&&!b&&!m;return E&&(xn(n.method)||!T)?q_({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 Ua(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:fT(e,t,n,u,i),resolve:()=>Promise.resolve({type:"data",result:void 0})}:bc(e,t,n,xs(r),u,i,s,!0,o))}async function V_(e,t,n,r,a,i){n.some(l=>l._lazyPromises?.middleware)&&await Promise.all(n.map(l=>l._lazyPromises?.middleware));let s={request:t,unstable_pattern:xs(n),params:n[0].params,context:a,matches:n},u=await e({...s,fetcherKey:r,runClientMiddleware:l=>{let c=s;return dT(c,()=>l({...c,fetcherKey:r,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(n.flatMap(l=>[l._lazyPromises?.handler,l._lazyPromises?.route]))}catch{}return u}async function q_({request:e,unstable_pattern:t,match:n,lazyHandlerPromise:r,lazyRoutePromise:a,handlerOverride:i,scopedContext:s}){let o,u,l=xn(e.method),c=l?"action":"loader",d=f=>{let m,b=new Promise((T,v)=>m=v);u=()=>m(),e.signal.addEventListener("abort",u);let y=T=>typeof f!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${c}" [routeId: ${n.route.id}]`)):f({request:e,unstable_pattern:t,params:n.params,context:s},...T!==void 0?[T]:[]),E=(async()=>{try{return{type:"data",result:await(i?i(v=>y(v)):y())}}catch(T){return{type:"error",result:T}}})();return Promise.race([E,b])};try{let f=l?n.route.action:n.route.loader;if(r||a)if(f){let m,[b]=await Promise.all([d(f).catch(y=>{m=y}),r,a]);if(m!==void 0)throw m;o=b}else{await r;let m=l?n.route.action:n.route.loader;if(m)[o]=await Promise.all([d(m),a]);else if(c==="action"){let b=new URL(e.url),y=b.pathname+b.search;throw qn(405,{method:e.method,pathname:y,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 qn(404,{pathname:b})}}catch(f){return{type:"error",result:f}}finally{u&&e.signal.removeEventListener("abort",u)}return o}async function Y_(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 Z_(e){let{result:t,type:n}=e;if(sd(t)){let r;try{r=await Y_(t)}catch(a){return{type:"error",error:a}}return n==="error"?{type:"error",error:new Ss(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?Nb(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:J_(t),statusCode:ss(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:ss(t)?t.status:void 0}:Nb(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 K_(e,t,n,r,a){let i=e.headers.get("Location");if(Je(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!pu(i)){let s=r.slice(0,r.findIndex(o=>o.route.id===n)+1);i=hc(new URL(t.url),s,a,i),e.headers.set("Location",i)}return e}function xb(e,t,n){if(pu(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Qn(a.pathname,n)!=null;if(a.origin===t.origin&&i)return a.pathname+a.search+a.hash}return e}function Ia(e,t,n,r){let a=e.createURL(mT(t)).toString(),i={signal:n};if(r&&xn(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=Ec(r.formData):i.body=r.formData}return new Request(a,i)}function Ec(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Ab(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function X_(e,t,n,r=!1,a=!1){let i={},s=null,o,u=!1,l={},c=n&&Un(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(Je(!ea(m),"Cannot handle redirect results in processLoaderData"),Un(m)){let b=m.error;if(c!==void 0&&(b=c,c=void 0),s=s||{},a)s[f]=b;else{let y=jr(e,f);s[y.route.id]==null&&(s[y.route.id]=b)}r||(i[f]=uT),u||(u=!0,o=ss(m.error)?m.error.status:500),m.headers&&(l[f]=m.headers)}else i[f]=m.data,m.statusCode&&m.statusCode!==200&&!u&&(o=m.statusCode),m.headers&&(l[f]=m.headers)}),c!==void 0&&n&&(s={[n[0]]:c},n[2]&&(i[n[2]]=void 0)),{loaderData:i,errors:s,statusCode:o||200,loaderHeaders:l}}function _b(e,t,n,r,a,i){let{loaderData:s,errors:o}=X_(t,n,r);return a.filter(u=>!u.matches||u.matches.some(l=>l.shouldLoad)).forEach(u=>{let{key:l,match:c,controller:d}=u;if(d&&d.signal.aborted)return;let f=i[l];if(Je(f,"Did not find corresponding fetcher result"),Un(f)){let m=jr(e.matches,c?.route.id);o&&o[m.route.id]||(o={...o,[m.route.id]:f.error}),e.fetchers.delete(l)}else if(ea(f))Je(!1,"Unhandled fetcher revalidation redirect");else{let m=Sr(f.data);e.fetchers.set(l,m)}}),{loaderData:s,errors:o}}function vb(e,t,n,r){let a=Object.entries(t).filter(([,i])=>i!==uT).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 wb(e){return e?Un(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function jr(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 Ys(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 qn(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 Ss(e||500,s,new Error(o),!0)}function Zs(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,a]=t[n];if(ea(a))return{key:r,result:a}}}function mT(e){let t=typeof e=="string"?qr(e):e;return hr({...t,hash:""})}function Q_(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function J_(e){return new Ss(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function ev(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,n])=>typeof t=="string"&&tv(n))}function tv(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function nv(e){return sd(e.result)&&sT.has(e.result.status)}function Un(e){return e.type==="error"}function ea(e){return(e&&e.type)==="redirect"}function Nb(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function sd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function rv(e){return sT.has(e)}function av(e){return sd(e)&&rv(e.status)&&e.headers.has("Location")}function iv(e){return F_.has(e.toUpperCase())}function xn(e){return O_.has(e.toUpperCase())}function od(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function yo(e,t){let n=typeof t=="string"?qr(t).search:t.search;if(e[e.length-1].route.index&&od(n||""))return e[e.length-1];let r=tT(e);return r[r.length-1]}function Cb(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 hl(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 sv(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 xi(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 ov(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 Sr(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 uv(e,t){try{let n=e.sessionStorage.getItem(oT);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 lv(e,t){if(t.size>0){let n={};for(let[r,a]of t)n[r]=[...a];try{e.sessionStorage.setItem(oT,JSON.stringify(n))}catch(r){Pt(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function Ib(){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 da=g.createContext(null);da.displayName="DataRouter";var As=g.createContext(null);As.displayName="DataRouterState";var hT=g.createContext(!1);function cv(){return g.useContext(hT)}var ud=g.createContext({isTransitioning:!1});ud.displayName="ViewTransition";var gT=g.createContext(new Map);gT.displayName="Fetchers";var dv=g.createContext(null);dv.displayName="Await";var zn=g.createContext(null);zn.displayName="Navigation";var hu=g.createContext(null);hu.displayName="Location";var ar=g.createContext({outlet:null,matches:[],isDataRoute:!1});ar.displayName="Route";var ld=g.createContext(null);ld.displayName="RouteError";var bT="REACT_ROUTER_ERROR",pv="REDIRECT",fv="ROUTE_ERROR_RESPONSE";function mv(e){if(e.startsWith(`${bT}:${pv}:{`))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 hv(e){if(e.startsWith(`${bT}:${fv}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Ss(t.status,t.statusText,t.data)}catch{}}function gv(e,{relative:t}={}){Je(ei(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=g.useContext(zn),{hash:a,pathname:i,search:s}=_s(e,{relative:t}),o=i;return n!=="/"&&(o=i==="/"?n:mr([n,i])),r.createHref({pathname:o,search:s,hash:a})}function ei(){return g.useContext(hu)!=null}function Jn(){return Je(ei(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(hu).location}var ET="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function yT(e){g.useContext(zn).static||g.useLayoutEffect(e)}function gu(){let{isDataRoute:e}=g.useContext(ar);return e?Rv():bv()}function bv(){Je(ei(),"useNavigate() may be used only in the context of a <Router> component.");let e=g.useContext(da),{basename:t,navigator:n}=g.useContext(zn),{matches:r}=g.useContext(ar),{pathname:a}=Jn(),i=JSON.stringify(fu(r)),s=g.useRef(!1);return yT(()=>{s.current=!0}),g.useCallback((u,l={})=>{if(Pt(s.current,ET),!s.current)return;if(typeof u=="number"){n.go(u);return}let c=mu(u,JSON.parse(i),a,l.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:mr([t,c.pathname])),(l.replace?n.replace:n.push)(c,l.state,l)},[t,n,i,a,e])}var Ev=g.createContext(null);function yv(e){let t=g.useContext(ar).outlet;return g.useMemo(()=>t&&g.createElement(Ev.Provider,{value:e},t),[t,e])}function _s(e,{relative:t}={}){let{matches:n}=g.useContext(ar),{pathname:r}=Jn(),a=JSON.stringify(fu(n));return g.useMemo(()=>mu(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function Tv(e,t,n,r,a){Je(ei(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=g.useContext(zn),{matches:s}=g.useContext(ar),o=s[s.length-1],u=o?o.params:{},l=o?o.pathname:"/",c=o?o.pathnameBase:"/",d=o&&o.route;{let v=d&&d.path||"";ST(l,!d||v.endsWith("*")||v.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${v}">) 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="${v}"> to <Route path="${v==="/"?"*":`${v}/*`}">.`)}let f=Jn(),m;m=f;let b=m.pathname||"/",y=b;if(c!=="/"){let v=c.replace(/^\//,"").split("/");y="/"+b.replace(/^\//,"").split("/").slice(v.length).join("/")}let E=Ur(e,{pathname:y});return Pt(d||E!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),Pt(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.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.`),vv(E&&E.map(v=>Object.assign({},v,{params:Object.assign({},u,v.params),pathname:mr([c,i.encodeLocation?i.encodeLocation(v.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?c:mr([c,i.encodeLocation?i.encodeLocation(v.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathnameBase])})),s,n,r,a)}function Sv(){let e=kv(),t=ss(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 xv=g.createElement(Sv,null),TT=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=hv(e.digest);n&&(e=n)}let t=e!==void 0?g.createElement(ar.Provider,{value:this.props.routeContext},g.createElement(ld.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?g.createElement(Av,{error:e},t):t}};TT.contextType=hT;var gl=new WeakMap;function Av({children:e,error:t}){let{basename:n}=g.useContext(zn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=mv(t.digest);if(r){let a=gl.get(t);if(a)throw a;let i=rT(r.location,n);if(nT&&!gl.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 gl.set(t,s),s}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function _v({routeContext:e,match:t,children:n}){let r=g.useContext(da);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(ar.Provider,{value:e},n)}function vv(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 c=i.findIndex(d=>d.route.id&&s?.[d.route.id]!==void 0);Je(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,c+1))}let o=!1,u=-1;if(n)for(let c=0;c<i.length;c++){let d=i[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),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 l=n&&r?(c,d)=>{r(c,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:xs(n.matches),errorInfo:d})}:void 0;return i.reduceRight((c,d,f)=>{let m,b=!1,y=null,E=null;n&&(m=s&&d.route.id?s[d.route.id]:void 0,y=d.route.errorElement||xv,o&&(u<0&&f===0?(ST("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,E=null):u===f&&(b=!0,E=d.route.hydrateFallbackElement||null)));let T=t.concat(i.slice(0,f+1)),v=()=>{let x;return m?x=y:b?x=E:d.route.Component?x=g.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=c,g.createElement(_v,{match:d,routeContext:{outlet:c,matches:T,isDataRoute:n!=null},children:x})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?g.createElement(TT,{location:n.location,revalidation:n.revalidation,component:y,error:m,children:v(),routeContext:{outlet:null,matches:T,isDataRoute:!0},onError:l}):v()},null)}function cd(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function wv(e){let t=g.useContext(da);return Je(t,cd(e)),t}function Nv(e){let t=g.useContext(As);return Je(t,cd(e)),t}function Cv(e){let t=g.useContext(ar);return Je(t,cd(e)),t}function dd(e){let t=Cv(e),n=t.matches[t.matches.length-1];return Je(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Iv(){return dd("useRouteId")}function kv(){let e=g.useContext(ld),t=Nv("useRouteError"),n=dd("useRouteError");return e!==void 0?e:t.errors?.[n]}function Rv(){let{router:e}=wv("useNavigate"),t=dd("useNavigate"),n=g.useRef(!1);return yT(()=>{n.current=!0}),g.useCallback(async(a,i={})=>{Pt(n.current,ET),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var kb={};function ST(e,t,n){!t&&!kb[e]&&(kb[e]=!0,Pt(!1,n))}var Rb={};function Db(e,t){!e&&!Rb[t]&&(Rb[t]=!0,console.warn(t))}var Dv="useOptimistic",Ob=ZA[Dv],Ov=()=>{};function Lv(e){return Ob?Ob(e):[e,Ov]}function Fv(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Pt(!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&&Pt(!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&&Pt(!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 Mv=["HydrateFallback","hydrateFallbackElement"],Pv=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 Bv({router:e,flushSync:t,onError:n,unstable_useTransitions:r}){r=cv()||r;let[i,s]=g.useState(e.state),[o,u]=Lv(i),[l,c]=g.useState(),[d,f]=g.useState({isTransitioning:!1}),[m,b]=g.useState(),[y,E]=g.useState(),[T,v]=g.useState(),x=g.useRef(new Map),I=g.useCallback((k,{deletedFetchers:P,newErrors:w,flushSync:U,viewTransitionOpts:j})=>{w&&n&&Object.values(w).forEach(X=>n(X,{location:k.location,params:k.matches[0]?.params??{},unstable_pattern:xs(k.matches)})),k.fetchers.forEach((X,G)=>{X.data!==void 0&&x.current.set(G,X.data)}),P.forEach(X=>x.current.delete(X)),Db(U===!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 K=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(Db(j==null||K,"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."),!j||!K){t&&U?t(()=>s(k)):r===!1?s(k):g.startTransition(()=>{r===!0&&u(X=>Lb(X,k)),s(k)});return}if(t&&U){t(()=>{y&&(m?.resolve(),y.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:j.currentLocation,nextLocation:j.nextLocation})});let X=e.window.document.startViewTransition(()=>{t(()=>s(k))});X.finished.finally(()=>{t(()=>{b(void 0),E(void 0),c(void 0),f({isTransitioning:!1})})}),t(()=>E(X));return}y?(m?.resolve(),y.skipTransition(),v({state:k,currentLocation:j.currentLocation,nextLocation:j.nextLocation})):(c(k),f({isTransitioning:!0,flushSync:!1,currentLocation:j.currentLocation,nextLocation:j.nextLocation}))},[e.window,t,y,m,r,u,n]);g.useLayoutEffect(()=>e.subscribe(I),[e,I]),g.useEffect(()=>{d.isTransitioning&&!d.flushSync&&b(new Pv)},[d]),g.useEffect(()=>{if(m&&l&&e.window){let k=l,P=m.promise,w=e.window.document.startViewTransition(async()=>{r===!1?s(k):g.startTransition(()=>{r===!0&&u(U=>Lb(U,k)),s(k)}),await P});w.finished.finally(()=>{b(void 0),E(void 0),c(void 0),f({isTransitioning:!1})}),E(w)}},[l,m,e.window,r,u]),g.useEffect(()=>{m&&l&&o.location.key===l.location.key&&m.resolve()},[m,y,o.location,l]),g.useEffect(()=>{!d.isTransitioning&&T&&(c(T.state),f({isTransitioning:!0,flushSync:!1,currentLocation:T.currentLocation,nextLocation:T.nextLocation}),v(void 0))},[d.isTransitioning,T]);let D=g.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:k=>e.navigate(k),push:(k,P,w)=>e.navigate(k,{state:P,preventScrollReset:w?.preventScrollReset}),replace:(k,P,w)=>e.navigate(k,{replace:!0,state:P,preventScrollReset:w?.preventScrollReset})}),[e]),S=e.basename||"/",A=g.useMemo(()=>({router:e,navigator:D,static:!1,basename:S,onError:n}),[e,D,S,n]);return g.createElement(g.Fragment,null,g.createElement(da.Provider,{value:A},g.createElement(As.Provider,{value:o},g.createElement(gT.Provider,{value:x.current},g.createElement(ud.Provider,{value:d},g.createElement(zv,{basename:S,location:o.location,navigationType:o.historyAction,navigator:D,unstable_useTransitions:r},g.createElement(Uv,{routes:e.routes,future:e.future,state:o,onError:n})))))),null)}function Lb(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 Uv=g.memo(jv);function jv({routes:e,future:t,state:n,onError:r}){return Tv(e,void 0,n,r,t)}function Fb({to:e,replace:t,state:n,relative:r}){Je(ei(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=g.useContext(zn);Pt(!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(ar),{pathname:s}=Jn(),o=gu(),u=mu(e,fu(i),s,r==="path"),l=JSON.stringify(u);return g.useEffect(()=>{o(JSON.parse(l),{replace:t,state:n,relative:r})},[o,l,r,t,n]),null}function $v(e){return yv(e.context)}function zv({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,unstable_useTransitions:s}){Je(!ei(),"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=qr(n));let{pathname:l="/",search:c="",hash:d="",state:f=null,key:m="default"}=n,b=g.useMemo(()=>{let y=Qn(l,o);return y==null?null:{location:{pathname:y,search:c,hash:d,state:f,key:m},navigationType:r}},[o,l,c,d,f,m,r]);return Pt(b!=null,`<Router basename="${o}"> is not able to match the URL "${l}${c}${d}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:g.createElement(zn.Provider,{value:u},g.createElement(hu.Provider,{children:t,value:b}))}var To="get",So="application/x-www-form-urlencoded";function bu(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Hv(e){return bu(e)&&e.tagName.toLowerCase()==="button"}function Gv(e){return bu(e)&&e.tagName.toLowerCase()==="form"}function Wv(e){return bu(e)&&e.tagName.toLowerCase()==="input"}function Vv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function qv(e,t){return e.button===0&&(!t||t==="_self")&&!Vv(e)}function yc(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 Yv(e,t){let n=yc(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(i=>{n.append(a,i)})}),n}var Ks=null;function Zv(){if(Ks===null)try{new FormData(document.createElement("form"),0),Ks=!1}catch{Ks=!0}return Ks}var Kv=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function bl(e){return e!=null&&!Kv.has(e)?(Pt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${So}"`),null):e}function Xv(e,t){let n,r,a,i,s;if(Gv(e)){let o=e.getAttribute("action");r=o?Qn(o,t):null,n=e.getAttribute("method")||To,a=bl(e.getAttribute("enctype"))||So,i=new FormData(e)}else if(Hv(e)||Wv(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?Qn(u,t):null,n=e.getAttribute("formmethod")||o.getAttribute("method")||To,a=bl(e.getAttribute("formenctype"))||bl(o.getAttribute("enctype"))||So,i=new FormData(o,e),!Zv()){let{name:l,type:c,value:d}=e;if(c==="image"){let f=l?`${l}.`:"";i.append(`${f}x`,"0"),i.append(`${f}y`,"0")}else l&&i.append(l,d)}}else{if(bu(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=To,r=null,a=So,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 pd(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Qv(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&&Qn(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function Jv(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 ew(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 tw(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let s=await Jv(i,n);return s.links?s.links():[]}return[]}));return iw(r.flat(1).filter(ew).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function Mb(e,t,n,r,a,i){let s=(u,l)=>n[l]?u.route.id!==n[l].route.id:!0,o=(u,l)=>n[l].pathname!==u.pathname||n[l].route.path?.endsWith("*")&&n[l].params["*"]!==u.params["*"];return i==="assets"?t.filter((u,l)=>s(u,l)||o(u,l)):i==="data"?t.filter((u,l)=>{let c=r.routes[u.route.id];if(!c||!c.hasLoader)return!1;if(s(u,l)||o(u,l))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 nw(e,t,{includeHydrateFallback:n}={}){return rw(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 rw(e){return[...new Set(e)]}function aw(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function iw(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(aw(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function xT(){let e=g.useContext(da);return pd(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function sw(){let e=g.useContext(As);return pd(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var fd=g.createContext(void 0);fd.displayName="FrameworkContext";function AT(){let e=g.useContext(fd);return pd(e,"You must render this element inside a <HydratedRouter> element"),e}function ow(e,t){let n=g.useContext(fd),[r,a]=g.useState(!1),[i,s]=g.useState(!1),{onFocus:o,onBlur:u,onMouseEnter:l,onMouseLeave:c,onTouchStart:d}=t,f=g.useRef(null);g.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let y=T=>{T.forEach(v=>{s(v.isIntersecting)})},E=new IntersectionObserver(y,{threshold:.5});return f.current&&E.observe(f.current),()=>{E.disconnect()}}},[e]),g.useEffect(()=>{if(r){let y=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(y)}}},[r]);let m=()=>{a(!0)},b=()=>{a(!1),s(!1)};return n?e!=="intent"?[i,f,{}]:[i,f,{onFocus:Ai(o,m),onBlur:Ai(u,b),onMouseEnter:Ai(l,m),onMouseLeave:Ai(c,b),onTouchStart:Ai(d,m)}]:[!1,f,{}]}function Ai(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function uw({page:e,...t}){let{router:n}=xT(),r=g.useMemo(()=>Ur(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?g.createElement(cw,{page:e,matches:r,...t}):null}function lw(e){let{manifest:t,routeModules:n}=AT(),[r,a]=g.useState([]);return g.useEffect(()=>{let i=!1;return tw(e,t,n).then(s=>{i||a(s)}),()=>{i=!0}},[e,t,n]),r}function cw({page:e,matches:t,...n}){let r=Jn(),{manifest:a,routeModules:i}=AT(),{basename:s}=xT(),{loaderData:o,matches:u}=sw(),l=g.useMemo(()=>Mb(e,t,u,a,r,"data"),[e,t,u,a,r]),c=g.useMemo(()=>Mb(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,y=!1;if(t.forEach(T=>{let v=a.routes[T.route.id];!v||!v.hasLoader||(!l.some(x=>x.route.id===T.route.id)&&T.route.id in o&&i[T.route.id]?.shouldRevalidate||v.hasClientLoader?y=!0:b.add(T.route.id))}),b.size===0)return[];let E=Qv(e,s,"data");return y&&b.size>0&&E.searchParams.set("_routes",t.filter(T=>b.has(T.route.id)).map(T=>T.route.id).join(",")),[E.pathname+E.search]},[s,o,r,a,l,t,e,i]),f=g.useMemo(()=>nw(c,a),[c,a]),m=lw(c);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:y})=>g.createElement("link",{key:b,nonce:n.nonce,...y})))}function dw(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var pw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{pw&&(window.__reactRouterVersion="7.11.0")}catch{}function fw(e,t){return U_({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:t_({window:t?.window}),hydrationData:mw(),routes:e,mapRouteProperties:Fv,hydrationRouteProperties:Mv,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function mw(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:hw(e.errors)}),e}function hw(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 Ss(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 _T=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vT=g.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:s,state:o,target:u,to:l,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:f,...m},b){let{basename:y,unstable_useTransitions:E}=g.useContext(zn),T=typeof l=="string"&&_T.test(l),v=rT(l,y);l=v.to;let x=gv(l,{relative:a}),[I,D,S]=ow(r,m),A=Ew(l,{replace:s,state:o,target:u,preventScrollReset:c,relative:a,viewTransition:d,unstable_defaultShouldRevalidate:f,unstable_useTransitions:E});function k(w){t&&t(w),w.defaultPrevented||A(w)}let P=g.createElement("a",{...m,...S,href:v.absoluteURL||x,onClick:v.isExternal||i?t:k,ref:dw(b,D),target:u,"data-discover":!T&&n==="render"?"true":void 0});return I&&!T?g.createElement(g.Fragment,null,P,g.createElement(uw,{page:x})):P});vT.displayName="Link";var wT=g.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:s,viewTransition:o,children:u,...l},c){let d=_s(s,{relative:l.relative}),f=Jn(),m=g.useContext(As),{navigator:b,basename:y}=g.useContext(zn),E=m!=null&&_w(d)&&o===!0,T=b.encodeLocation?b.encodeLocation(d).pathname:d.pathname,v=f.pathname,x=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;n||(v=v.toLowerCase(),x=x?x.toLowerCase():null,T=T.toLowerCase()),x&&y&&(x=Qn(x,y)||x);const I=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let D=v===T||!a&&v.startsWith(T)&&v.charAt(I)==="/",S=x!=null&&(x===T||!a&&x.startsWith(T)&&x.charAt(T.length)==="/"),A={isActive:D,isPending:S,isTransitioning:E},k=D?t:void 0,P;typeof r=="function"?P=r(A):P=[r,D?"active":null,S?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let w=typeof i=="function"?i(A):i;return g.createElement(vT,{...l,"aria-current":k,className:P,ref:c,style:w,to:s,viewTransition:o},typeof u=="function"?u(A):u)});wT.displayName="NavLink";var gw=g.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:s=To,action:o,onSubmit:u,relative:l,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:f,...m},b)=>{let{unstable_useTransitions:y}=g.useContext(zn),E=xw(),T=Aw(o,{relative:l}),v=s.toLowerCase()==="get"?"get":"post",x=typeof o=="string"&&_T.test(o),I=D=>{if(u&&u(D),D.defaultPrevented)return;D.preventDefault();let S=D.nativeEvent.submitter,A=S?.getAttribute("formmethod")||s,k=()=>E(S||D.currentTarget,{fetcherKey:t,method:A,navigate:n,replace:a,state:i,relative:l,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:f});y&&n!==!1?g.startTransition(()=>k()):k()};return g.createElement("form",{ref:b,method:v,action:T,onSubmit:r?u:I,...m,"data-discover":!x&&e==="render"?"true":void 0})});gw.displayName="Form";function bw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function NT(e){let t=g.useContext(da);return Je(t,bw(e)),t}function Ew(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:o,unstable_useTransitions:u}={}){let l=gu(),c=Jn(),d=_s(e,{relative:i});return g.useCallback(f=>{if(qv(f,t)){f.preventDefault();let m=n!==void 0?n:hr(c)===hr(d),b=()=>l(e,{replace:m,state:r,preventScrollReset:a,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:o});u?g.startTransition(()=>b()):b()}},[c,l,d,n,r,t,e,a,i,s,o,u])}function yw(e){Pt(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(yc(e)),n=g.useRef(!1),r=Jn(),a=g.useMemo(()=>Yv(r.search,n.current?null:t.current),[r.search]),i=gu(),s=g.useCallback((o,u)=>{const l=yc(typeof o=="function"?o(new URLSearchParams(a)):o);n.current=!0,i("?"+l,u)},[i,a]);return[a,s]}var Tw=0,Sw=()=>`__${String(++Tw)}__`;function xw(){let{router:e}=NT("useSubmit"),{basename:t}=g.useContext(zn),n=Iv(),r=e.fetch,a=e.navigate;return g.useCallback(async(i,s={})=>{let{action:o,method:u,encType:l,formData:c,body:d}=Xv(i,t);if(s.navigate===!1){let f=s.fetcherKey||Sw();await r(f,n,s.action||o,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:c,body:d,formMethod:s.method||u,formEncType:s.encType||l,flushSync:s.flushSync})}else await a(s.action||o,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:c,body:d,formMethod:s.method||u,formEncType:s.encType||l,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,a,t,n])}function Aw(e,{relative:t}={}){let{basename:n}=g.useContext(zn),r=g.useContext(ar);Je(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={..._s(e||".",{relative:t})},s=Jn();if(e==null){i.search=s.search;let o=new URLSearchParams(i.search),u=o.getAll("index");if(u.some(c=>c==="")){o.delete("index"),u.filter(d=>d).forEach(d=>o.append("index",d));let c=o.toString();i.search=c?`?${c}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:mr([n,i.pathname])),hr(i)}function _w(e,{relative:t}={}){let n=g.useContext(ud);Je(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=NT("useViewTransitionState"),a=_s(e,{relative:t});if(!n.isTransitioning)return!1;let i=Qn(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Qn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Oo(a.pathname,s)!=null||Oo(a.pathname,i)!=null}function it(){return it=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},it.apply(null,arguments)}const vs=(function(e){if(e==null)return Cw;if(typeof e=="function")return Eu(e);if(typeof e=="object")return Array.isArray(e)?vw(e):ww(e);if(typeof e=="string")return Nw(e);throw new Error("Expected function, string, or object as test")});function vw(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=vs(e[n]);return Eu(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function ww(e){const t=e;return Eu(n);function n(r){const a=r;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function Nw(e){return Eu(t);function t(n){return n&&n.type===e}}function Eu(e){return t;function t(n,r,a){return!!(Iw(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function Cw(){return!0}function Iw(e){return e!==null&&typeof e=="object"&&"type"in e}const CT=[],kw=!0,Lo=!1,zi="skip";function md(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const i=vs(a),s=r?-1:1;o(e,void 0,[])();function o(u,l,c){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=CT,b,y,E;if((!t||i(u,l,c[c.length-1]||void 0))&&(m=Rw(n(u,c)),m[0]===Lo))return m;if("children"in u&&u.children){const T=u;if(T.children&&m[0]!==zi)for(y=(r?T.children.length:-1)+s,E=c.concat(T);y>-1&&y<T.children.length;){const v=T.children[y];if(b=o(v,y,E)(),b[0]===Lo)return b;y=typeof b[1]=="number"?b[1]:y+s}}return m}}}function Rw(e){return Array.isArray(e)?e:typeof e=="number"?[kw,e]:e==null?CT:[e]}function Fn(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),md(e,i,o,a);function o(u,l){const c=l[l.length-1],d=c?c.children.indexOf(u):void 0;return s(u,d,c)}}function Oa(e){return"children"in e?IT(e):"value"in e?e.value:""}function Dw(e){return e.type==="text"?e.value:"children"in e?IT(e):""}function IT(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=Dw(e.children[t]);return n.join("")}const Ow={}.hasOwnProperty;function Lw(e,t,n){const r=vs(t),a=t&&typeof t=="object"&&"cascade"in t?t.cascade:void 0,i=a??!0;return s(e);function s(o,u,l){const c=[];if(!r(o,u,l))return;if(Fw(o)){let m=-1;for(;++m<o.children.length;){const b=s(o.children[m],m,o);b&&c.push(b)}if(i&&o.children.length>0&&c.length===0)return}const d={};let f;for(f in o)Ow.call(o,f)&&(d[f]=f==="children"?c:o[f]);return d}}function Fw(e){return"children"in e&&e.children!==void 0}var Xs={exports:{}},Pb;function Mw(){return Pb||(Pb=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,l,c]=i;if(u&&c){u=parseInt(u),c=parseInt(c);const d=u<c?1:-1;(l==="-"||l===".."||l==="‥")&&(c+=d);for(let f=u;f!==c;f+=d)a.push(f)}}return a}t.default=n,e.exports=n})(Xs,Xs.exports)),Xs.exports}var Pw=Mw();const Bw=du(Pw);ot.displayName="clike";ot.aliases=[];function ot(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:/[{}[\];(),.:]/}}ir.displayName="c";ir.aliases=[];function ir(e){e.register(ot),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}pa.displayName="cpp";pa.aliases=[];function pa(e){e.register(ir),(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)}yu.displayName="arduino";yu.aliases=["ino"];function yu(e){e.register(pa),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}ws.displayName="bash";ws.aliases=["sh","shell"];function ws(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)}fa.displayName="csharp";fa.aliases=["cs","dotnet"];function fa(e){e.register(ot),(function(t){function n(N,H){return N.replace(/<<(\d+)>>/g,function(ie,R){return"(?:"+H[+R]+")"})}function r(N,H,ie){return RegExp(n(N,H),"")}function a(N,H){for(var ie=0;ie<H;ie++)N=N.replace(/<<self>>/g,function(){return"(?:"+N+")"});return N.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(N){return"\\b(?:"+N.trim().replace(/ /g,"|")+")\\b"}var o=s(i.typeDeclaration),u=RegExp(s(i.type+" "+i.typeDeclaration+" "+i.contextual+" "+i.other)),l=s(i.typeDeclaration+" "+i.contextual+" "+i.other),c=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]),y=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[l,b]),E=/\[\s*(?:,\s*)*\]/.source,T=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,E]),v=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,f,E]),x=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[v]),I=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[x,y,E]),D={keyword:u,punctuation:/[<>()?,.:[\]]/},S=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,k=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:D},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,I]),lookbehind:!0,inside:D},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[o,b]),lookbehind:!0,inside:D},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:D},{pattern:r(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[T]),lookbehind:!0,inside:D},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[I,c,m]),inside:D}],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:D},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[I,y]),inside:D,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[I]),lookbehind:!0,inside:D,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:D}}},"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,I,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(I),greedy:!0,inside:D},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 P=A+"|"+S,w=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[P]),U=a(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[w]),2),j=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,K=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,U]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[j,K]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[j]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[U]),inside:t.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var X=/:[^}\r\n]+/.source,G=a(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[w]),2),oe=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[G,X]),Q=a(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[P]),2),ae=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Q,X]);function Y(N,H){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[N]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[H,X]),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,[oe]),lookbehind:!0,greedy:!0,inside:Y(oe,G)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[ae]),lookbehind:!0,greedy:!0,inside:Y(ae,Q)}],char:{pattern:RegExp(S),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp})(e)}cn.displayName="markup";cn.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function cn(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(/&amp;/,"&"))}),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}Yr.displayName="css";Yr.aliases=[];function Yr(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)}Tu.displayName="diff";Tu.aliases=[];function Tu(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)}Su.displayName="go";Su.aliases=[];function Su(e){e.register(ot),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"]}xu.displayName="ini";xu.aliases=[];function xu(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:/=/}}ma.displayName="java";ma.aliases=[];function ma(e){e.register(ot),(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)}Au.displayName="regex";Au.aliases=[];function Au(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)}bn.displayName="javascript";bn.aliases=["js"];function bn(e){e.register(ot),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}ti.displayName="json";ti.aliases=["webmanifest"];function ti(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}_u.displayName="kotlin";_u.aliases=["kt","kts"];function _u(e){e.register(ot),(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)}vu.displayName="less";vu.aliases=[];function vu(e){e.register(Yr),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"}})}Ns.displayName="lua";Ns.aliases=[];function Ns(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:/[\[\](){},;]|\.+|:+/}}wu.displayName="makefile";wu.aliases=[];function wu(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:/[:;(){}]/}}Cs.displayName="yaml";Cs.aliases=["yml"];function Cs(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,l){l=(l||"").replace(/m/g,"")+"m";var c=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<value>>/g,function(){return u});return RegExp(c,l)}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)}Nu.displayName="markdown";Nu.aliases=["md"];function Nu(e){e.register(cn),(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(l){if(!(!l||typeof l=="string"))for(var c=0,d=l.length;c<d;c++){var f=l[c];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 y=m.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase();var E="language-"+y;b.alias?typeof b.alias=="string"?b.alias=[b.alias,E]:b.alias.push(E):b.alias=[E]}}}u(o.tokens)}),t.hooks.add("wrap",function(o){if(o.type==="code-block"){for(var u="",l=0,c=o.classes.length;l<c;l++){var d=o.classes[l],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 y=document.getElementById(b);y&&(y.innerHTML=t.highlight(y.textContent,t.languages[u],u))})}}}),RegExp(t.languages.markup.tag.pattern.source,"gi"),t.languages.md=t.languages.markdown})(e)}Cu.displayName="objectivec";Cu.aliases=["objc"];function Cu(e){e.register(ir),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}Iu.displayName="perl";Iu.aliases=[];function Iu(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)}En.displayName="markup-templating";En.aliases=[];function En(e){e.register(cn),(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 l=o.length,c;r.code.indexOf(c=n(a,l))!==-1;)++l;return o[l]=u,c}),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 l=0;l<u.length&&!(i>=s.length);l++){var c=u[l];if(typeof c=="string"||c.content&&typeof c.content=="string"){var d=s[i],f=r.tokenStack[d],m=typeof c=="string"?c:c.content,b=n(a,d),y=m.indexOf(b);if(y>-1){++i;var E=m.substring(0,y),T=new t.Token(a,t.tokenize(f,r.grammar),"language-"+a,f),v=m.substring(y+b.length),x=[];E&&x.push.apply(x,o([E])),x.push(T),v&&x.push.apply(x,o([v])),typeof c=="string"?u.splice.apply(u,[l,1].concat(x)):c.content=x}}else c.content&&o(c.content)}return u}o(r.tokens)}}})})(e)}ha.displayName="php";ha.aliases=[];function ha(e){e.register(En),(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(l){if(/<\?/.test(l.code)){var c=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(l,"php",c)}}),t.hooks.add("after-tokenize",function(l){t.languages["markup-templating"].tokenizePlaceholders(l,"php")})})(e)}Is.displayName="python";Is.aliases=["py"];function Is(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:/![sra](?=[:}]$)/,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}ku.displayName="r";ku.aliases=[];function ku(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:/[(){}\[\],;]/}}ga.displayName="ruby";ga.aliases=["rb"];function ga(e){e.register(ot),(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)}Ru.displayName="rust";Ru.aliases=[];function Ru(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)}Du.displayName="sass";Du.aliases=[];function Du(e){e.register(Yr),(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)}Ou.displayName="scss";Ou.aliases=[];function Ou(e){e.register(Yr),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}ni.displayName="sql";ni.aliases=[];function ni(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:/[;[\]()`,.]/}}Lu.displayName="swift";Lu.aliases=[];function Lu(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})}ri.displayName="typescript";ri.aliases=["ts"];function ri(e){e.register(bn),(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)}ks.displayName="basic";ks.aliases=[];function ks(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:/[,;:()]/}}Rs.displayName="vbnet";Rs.aliases=[];function Rs(e){e.register(ks),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 Ds{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ds.prototype.normal={};Ds.prototype.property={};Ds.prototype.space=void 0;function kT(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Ds(n,r,t)}function os(e){return e.toLowerCase()}class Mn{constructor(t,n){this.attribute=n,this.property=t}}Mn.prototype.attribute="";Mn.prototype.booleanish=!1;Mn.prototype.boolean=!1;Mn.prototype.commaOrSpaceSeparated=!1;Mn.prototype.commaSeparated=!1;Mn.prototype.defined=!1;Mn.prototype.mustUseProperty=!1;Mn.prototype.number=!1;Mn.prototype.overloadedBoolean=!1;Mn.prototype.property="";Mn.prototype.spaceSeparated=!1;Mn.prototype.space=void 0;let Uw=0;const Ye=ba(),Zt=ba(),Tc=ba(),ce=ba(),kt=ba(),ja=ba(),Bn=ba();function ba(){return 2**++Uw}const Sc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ye,booleanish:Zt,commaOrSpaceSeparated:Bn,commaSeparated:ja,number:ce,overloadedBoolean:Tc,spaceSeparated:kt},Symbol.toStringTag,{value:"Module"})),El=Object.keys(Sc);class hd extends Mn{constructor(t,n,r,a){let i=-1;if(super(t,n),Bb(this,"space",a),typeof r=="number")for(;++i<El.length;){const s=El[i];Bb(this,El[i],(r&Sc[s])===Sc[s])}}}hd.prototype.defined=!0;function Bb(e,t,n){n&&(e[t]=n)}function ai(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new hd(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[os(r)]=r,n[os(i.attribute)]=r}return new Ds(t,n,e.space)}const RT=ai({properties:{ariaActiveDescendant:null,ariaAtomic:Zt,ariaAutoComplete:null,ariaBusy:Zt,ariaChecked:Zt,ariaColCount:ce,ariaColIndex:ce,ariaColSpan:ce,ariaControls:kt,ariaCurrent:null,ariaDescribedBy:kt,ariaDetails:null,ariaDisabled:Zt,ariaDropEffect:kt,ariaErrorMessage:null,ariaExpanded:Zt,ariaFlowTo:kt,ariaGrabbed:Zt,ariaHasPopup:null,ariaHidden:Zt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:kt,ariaLevel:ce,ariaLive:null,ariaModal:Zt,ariaMultiLine:Zt,ariaMultiSelectable:Zt,ariaOrientation:null,ariaOwns:kt,ariaPlaceholder:null,ariaPosInSet:ce,ariaPressed:Zt,ariaReadOnly:Zt,ariaRelevant:null,ariaRequired:Zt,ariaRoleDescription:kt,ariaRowCount:ce,ariaRowIndex:ce,ariaRowSpan:ce,ariaSelected:Zt,ariaSetSize:ce,ariaSort:null,ariaValueMax:ce,ariaValueMin:ce,ariaValueNow:ce,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function DT(e,t){return t in e?e[t]:t}function OT(e,t){return DT(e,t.toLowerCase())}const jw=ai({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ja,acceptCharset:kt,accessKey:kt,action:null,allow:null,allowFullScreen:Ye,allowPaymentRequest:Ye,allowUserMedia:Ye,alt:null,as:null,async:Ye,autoCapitalize:null,autoComplete:kt,autoFocus:Ye,autoPlay:Ye,blocking:kt,capture:null,charSet:null,checked:Ye,cite:null,className:kt,cols:ce,colSpan:null,content:null,contentEditable:Zt,controls:Ye,controlsList:kt,coords:ce|ja,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ye,defer:Ye,dir:null,dirName:null,disabled:Ye,download:Tc,draggable:Zt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ye,formTarget:null,headers:kt,height:ce,hidden:Tc,high:ce,href:null,hrefLang:null,htmlFor:kt,httpEquiv:kt,id:null,imageSizes:null,imageSrcSet:null,inert:Ye,inputMode:null,integrity:null,is:null,isMap:Ye,itemId:null,itemProp:kt,itemRef:kt,itemScope:Ye,itemType:kt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ye,low:ce,manifest:null,max:null,maxLength:ce,media:null,method:null,min:null,minLength:ce,multiple:Ye,muted:Ye,name:null,nonce:null,noModule:Ye,noValidate:Ye,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:Ye,optimum:ce,pattern:null,ping:kt,placeholder:null,playsInline:Ye,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ye,referrerPolicy:null,rel:kt,required:Ye,reversed:Ye,rows:ce,rowSpan:ce,sandbox:kt,scope:null,scoped:Ye,seamless:Ye,selected:Ye,shadowRootClonable:Ye,shadowRootDelegatesFocus:Ye,shadowRootMode:null,shape:null,size:ce,sizes:null,slot:null,span:ce,spellCheck:Zt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ce,step:null,style:null,tabIndex:ce,target:null,title:null,translate:null,type:null,typeMustMatch:Ye,useMap:null,value:Zt,width:ce,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:kt,axis:null,background:null,bgColor:null,border:ce,borderColor:null,bottomMargin:ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ye,declare:Ye,event:null,face:null,frame:null,frameBorder:null,hSpace:ce,leftMargin:ce,link:null,longDesc:null,lowSrc:null,marginHeight:ce,marginWidth:ce,noResize:Ye,noHref:Ye,noShade:Ye,noWrap:Ye,object:null,profile:null,prompt:null,rev:null,rightMargin:ce,rules:null,scheme:null,scrolling:Zt,standby:null,summary:null,text:null,topMargin:ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ce,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ye,disableRemotePlayback:Ye,prefix:null,property:null,results:ce,security:null,unselectable:null},space:"html",transform:OT}),$w=ai({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:Bn,accentHeight:ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ce,amplitude:ce,arabicForm:null,ascent:ce,attributeName:null,attributeType:null,azimuth:ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ce,by:null,calcMode:null,capHeight:ce,className:kt,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:ce,diffuseConstant:ce,direction:null,display:null,dur:null,divisor:ce,dominantBaseline:null,download:Ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:ce,enableBackground:null,end:null,event:null,exponent:ce,externalResourcesRequired:null,fill:null,fillOpacity:ce,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:ja,g2:ja,glyphName:ja,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ce,horizOriginX:ce,horizOriginY:ce,id:null,ideographic:ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ce,k:ce,k1:ce,k2:ce,k3:ce,k4:ce,kernelMatrix:Bn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ce,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:ce,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:ce,overlineThickness:ce,paintOrder:null,panose1:null,path:null,pathLength:ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:kt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ce,pointsAtY:ce,pointsAtZ:ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Bn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Bn,rev:Bn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Bn,requiredFeatures:Bn,requiredFonts:Bn,requiredFormats:Bn,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:ce,specularExponent:ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ce,strikethroughThickness:ce,string:null,stroke:null,strokeDashArray:Bn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ce,strokeOpacity:ce,strokeWidth:null,style:null,surfaceScale:ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Bn,tabIndex:ce,tableValues:null,target:null,targetX:ce,targetY:ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Bn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ce,underlineThickness:ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ce,values:null,vAlphabetic:ce,vMathematical:ce,vectorEffect:null,vHanging:ce,vIdeographic:ce,version:null,vertAdvY:ce,vertOriginX:ce,vertOriginY:ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:DT}),LT=ai({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()}}),FT=ai({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:OT}),MT=ai({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),zw={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"},Hw=/[A-Z]/g,Ub=/-[a-z]/g,Gw=/^data[-\w.:]+$/i;function ii(e,t){const n=os(t);let r=t,a=Mn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Gw.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Ub,Vw);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Ub.test(i)){let s=i.replace(Hw,Ww);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=hd}return new a(r,t)}function Ww(e){return"-"+e.toLowerCase()}function Vw(e){return e.charAt(1).toUpperCase()}const Ea=kT([RT,jw,LT,FT,MT],"html"),sr=kT([RT,$w,LT,FT,MT],"svg");function xc(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 Fu(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const jb=/[#.]/g;function qw(e,t){const n=e||"",r={};let a=0,i,s;for(;a<n.length;){jb.lastIndex=a;const o=jb.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 Ac(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Mu(e){return e.join(" ").trim()}function PT(e,t,n){const r=n?Xw(n):void 0;function a(i,s,...o){let u;if(i==null){u={type:"root",children:[]};const l=s;o.unshift(l)}else{u=qw(i,t);const l=u.tagName.toLowerCase(),c=r?r.get(l):void 0;if(u.tagName=c||l,Yw(s))o.unshift(s);else for(const[d,f]of Object.entries(s))Zw(e,u.properties,d,f)}for(const l of o)_c(u.children,l);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return a}function Yw(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 Zw(e,t,n,r){const a=ii(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=Ac(r):a.commaSeparated?i=xc(r):a.commaOrSpaceSeparated?i=Ac(xc(r).join(" ")):i=$b(a,a.property,r):Array.isArray(r)?i=[...r]:i=a.property==="style"?Kw(r):String(r);if(Array.isArray(i)){const s=[];for(const o of i)s.push($b(a,a.property,o));i=s}a.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}function _c(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)_c(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?_c(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function $b(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||os(n)===os(t)))return!0}return n}function Kw(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Xw(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Qw=["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"],BT=PT(Ea,"div"),Jw=PT(sr,"g",Qw),UT=["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"],zb={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 jT(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function eN(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function tN(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Hb(e){return tN(e)||jT(e)}const Gb=document.createElement("i");function us(e){const t="&"+e+";";Gb.innerHTML=t;const n=Gb.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const nN=["","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 rN(e,t){const n={},r=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,a=[];let i=0,s=-1,o="",u,l;n.position&&("start"in n.position||"indent"in n.position?(l=n.position.indent,u=n.position.start):u=n.position);let c=(u?u.line:0)||1,d=(u?u.column:0)||1,f=b(),m;for(i--;++i<=e.length;)if(m===10&&(d=(l?l[s]:0)||1),m=e.charCodeAt(i),m===38){const T=e.charCodeAt(i+1);if(T===9||T===10||T===12||T===32||T===38||T===60||Number.isNaN(T)||r&&T===r){o+=String.fromCharCode(m),d++;continue}const v=i+1;let x=v,I=v,D;if(T===35){I=++x;const K=e.charCodeAt(I);K===88||K===120?(D="hexadecimal",I=++x):D="decimal"}else D="named";let S="",A="",k="";const P=D==="named"?Hb:D==="decimal"?jT:eN;for(I--;++I<=e.length;){const K=e.charCodeAt(I);if(!P(K))break;k+=String.fromCharCode(K),D==="named"&&UT.includes(k)&&(S=k,A=us(k))}let w=e.charCodeAt(I)===59;if(w){I++;const K=D==="named"?us(k):!1;K&&(S=k,A=K)}let U=1+I-v,j="";if(!(!w&&n.nonTerminated===!1))if(!k)D!=="named"&&y(4,U);else if(D==="named"){if(w&&!A)y(5,1);else if(S!==k&&(I=x+S.length,U=1+I-x,w=!1),!w){const K=S?1:3;if(n.attribute){const X=e.charCodeAt(I);X===61?(y(K,U),A=""):Hb(X)?A="":y(K,U)}else y(K,U)}j=A}else{w||y(2,U);let K=Number.parseInt(k,D==="hexadecimal"?16:10);if(aN(K))y(7,U),j="�";else if(K in zb)y(6,U),j=zb[K];else{let X="";iN(K)&&y(6,U),K>65535&&(K-=65536,X+=String.fromCharCode(K>>>10|55296),K=56320|K&1023),j=X+String.fromCharCode(K)}}if(j){E(),f=b(),i=I-1,d+=I-v+1,a.push(j);const K=b();K.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,j,{start:f,end:K},e.slice(v-1,I)),f=K}else k=e.slice(v-1,I),o+=k,d+=k.length,i=I-1}else m===10&&(c++,s++,d=0),Number.isNaN(m)?E():(o+=String.fromCharCode(m),d++);return a.join("");function b(){return{line:c,column:d,offset:i+((u?u.offset:0)||0)}}function y(T,v){let x;n.warning&&(x=b(),x.column+=v,x.offset+=v,n.warning.call(n.warningContext||void 0,nN[T],x,T))}function E(){o&&(a.push(o),n.text&&n.text.call(n.textContext||void 0,o,{start:f,end:b()}),o="")}}function aN(e){return e>=55296&&e<=57343||e>1114111}function iN(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 sN=0,Qs={},an={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++sN}),e.__id},clone:function e(t,n){n=n||{};var r,a;switch(an.util.type(t)){case"Object":if(a=an.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=an.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:Qs,plaintext:Qs,text:Qs,txt:Qs,extend:function(e,t){var n=an.util.clone(an.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||an.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,an.languages.DFS(an.languages,function(l,c){c===u&&l!=e&&(this[l]=i)}),i},DFS:function e(t,n,r,a){a=a||{};var i=an.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var o=t[s],u=an.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(an.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=an.tokenize(r.code,r.grammar),an.hooks.run("after-tokenize",r),Hi.stringify(an.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 oN;return xo(a,a.head,e),$T(e,a,t,a.head,0),lN(a)},hooks:{all:{},add:function(e,t){var n=an.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=an.hooks.all[e];if(!(!n||!n.length))for(var r=0,a;a=n[r++];)a(t)}},Token:Hi};function Hi(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function Wb(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 $T(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 l=o[u],c=l.inside,d=!!l.lookbehind,f=!!l.greedy,m=l.alias;if(f&&!l.pattern.global){var b=l.pattern.toString().match(/[imsuy]*$/)[0];l.pattern=RegExp(l.pattern.source,b+"g")}for(var y=l.pattern||l,E=r.next,T=a;E!==t.tail&&!(i&&T>=i.reach);T+=E.value.length,E=E.next){var v=E.value;if(t.length>e.length)return;if(!(v instanceof Hi)){var x=1,I;if(f){if(I=Wb(y,T,e,d),!I||I.index>=e.length)break;var k=I.index,D=I.index+I[0].length,S=T;for(S+=E.value.length;k>=S;)E=E.next,S+=E.value.length;if(S-=E.value.length,T=S,E.value instanceof Hi)continue;for(var A=E;A!==t.tail&&(S<D||typeof A.value=="string");A=A.next)x++,S+=A.value.length;x--,v=e.slice(T,S),I.index-=T}else if(I=Wb(y,0,v,d),!I)continue;var k=I.index,P=I[0],w=v.slice(0,k),U=v.slice(k+P.length),j=T+v.length;i&&j>i.reach&&(i.reach=j);var K=E.prev;w&&(K=xo(t,K,w),T+=w.length),uN(t,K,x);var X=new Hi(s,c?an.tokenize(P,c):P,m,P);if(E=xo(t,K,X),U&&xo(t,E,U),x>1){var G={cause:s+","+u,reach:j};$T(e,t,n,E.prev,T,G),i&&G.reach>i.reach&&(i.reach=G.reach)}}}}}}function oN(){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 xo(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 uN(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 lN(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}const zT=an;function HT(){}HT.prototype=zT;const _=new HT;_.highlight=cN;_.register=dN;_.alias=pN;_.registered=fN;_.listLanguages=mN;_.util.encode=hN;_.Token.stringify=vc;function cN(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(_.languages,r))n=_.languages[r];else throw new Error("Unknown language: `"+r+"` is not registered")}return{type:"root",children:zT.highlight.call(_,e,n,r)}}function dN(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `syntax`, got `"+e+"`");Object.hasOwn(_.languages,e.displayName)||e(_)}function pN(e,t){const n=_.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 fN(e){if(typeof e!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return Object.hasOwn(_.languages,e)}function mN(){const e=_.languages,t=[];let n;for(n in e)Object.hasOwn(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function vc(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(vc(e[a],t));return r}const n={attributes:{},classes:["token",e.type],content:vc(e.content,t),language:t,tag:"span",type:e.type};return e.alias&&n.classes.push(...typeof e.alias=="string"?[e.alias]:e.alias),_.hooks.run("wrap",n),BT(n.tag+"."+n.classes.join("."),gN(n.attributes),n.content)}function hN(e){return e}function gN(e){let t;for(t in e)Object.hasOwn(e,t)&&(e[t]=rN(e[t]));return e}_.register(ot);_.register(ir);_.register(pa);_.register(yu);_.register(ws);_.register(fa);_.register(cn);_.register(Yr);_.register(Tu);_.register(Su);_.register(xu);_.register(ma);_.register(Au);_.register(bn);_.register(ti);_.register(_u);_.register(vu);_.register(Ns);_.register(wu);_.register(Cs);_.register(Nu);_.register(Cu);_.register(Iu);_.register(En);_.register(ha);_.register(Is);_.register(ku);_.register(ga);_.register(Ru);_.register(Du);_.register(Ou);_.register(ni);_.register(Lu);_.register(ri);_.register(ks);_.register(Rs);gd.displayName="abap";gd.aliases=[];function gd(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:/[,.:()]/}}bd.displayName="abnf";bd.aliases=[];function bd(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)}Ed.displayName="actionscript";Ed.aliases=[];function Ed(e){e.register(bn),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}})}yd.displayName="ada";yd.aliases=[];function yd(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}}Td.displayName="agda";Td.aliases=[];function Td(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)}Sd.displayName="al";Sd.aliases=[];function Sd(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:/[()\[\]{}:.;,]/}}xd.displayName="antlr4";xd.aliases=["g4"];function xd(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}Ad.displayName="apacheconf";Ad.aliases=[];function Ad(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:/\^?.*\$|\^.*\$?/}}_d.displayName="apex";_d.aliases=[];function _d(e){e.register(ot),e.register(ni),(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)}vd.displayName="apl";vd.aliases=[];function vd(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"}}}wd.displayName="applescript";wd.aliases=[];function wd(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:/[{}():,¬«»《》]/}}Nd.displayName="aql";Nd.aliases=[];function Nd(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:/::|[?.:,;()[\]{}]/}}Cd.displayName="arff";Cd.aliases=[];function Cd(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:/[{},]/}}Id.displayName="armasm";Id.aliases=["arm-asm"];function Id(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}kd.displayName="arturo";kd.aliases=["art"];function kd(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)}Rd.displayName="asciidoc";Rd.aliases=["adoc"];function Rd(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(/&amp;/,"&"))}),t.languages.adoc=t.languages.asciidoc})(e)}Dd.displayName="aspnet";Dd.aliases=[];function Dd(e){e.register(fa),e.register(cn),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||{}}})}Od.displayName="asm6502";Od.aliases=[];function Od(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:/[(),:]/}}Ld.displayName="asmatmel";Ld.aliases=[];function Ld(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:/[(),:]/}}Fd.displayName="autohotkey";Fd.aliases=[];function Fd(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:/[{}[\]():,]/}}Md.displayName="autoit";Md.aliases=[];function Md(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:/[\[\]().,:]/}}Pd.displayName="avisynth";Pd.aliases=["avs"];function Pd(e){(function(t){function n(l,c){return l.replace(/<<(\d+)>>/g,function(d,f){return c[+f]})}function r(l,c,d){return RegExp(n(l,c),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)}Bd.displayName="avro-idl";Bd.aliases=["avdl"];function Bd(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"]}Ud.displayName="awk";Ud.aliases=["gawk"];function Ud(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}jd.displayName="batch";jd.aliases=[];function jd(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)}$d.displayName="bbcode";$d.aliases=["shortcode"];function $d(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}zd.displayName="bbj";zd.aliases=[];function zd(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)}Hd.displayName="bicep";Hd.aliases=[];function Hd(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}Gd.displayName="birb";Gd.aliases=[];function Gd(e){e.register(ot),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"}})}Wd.displayName="bison";Wd.aliases=[];function Wd(e){e.register(ir),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:/%[%?]|[|:;\[\]<>]/}}})}Vd.displayName="bnf";Vd.aliases=["rbnf"];function Vd(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}qd.displayName="bqn";qd.aliases=[];function qd(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:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}Yd.displayName="brainfuck";Yd.aliases=[];function Yd(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}Zd.displayName="brightscript";Zd.aliases=[];function Zd(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}Kd.displayName="bro";Kd.aliases=[];function Kd(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:/[{}[\];(),.:]/}}Xd.displayName="bsl";Xd.aliases=["oscript"];function Xd(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}Qd.displayName="cfscript";Qd.aliases=["cfc"];function Qd(e){e.register(ot),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}Jd.displayName="chaiscript";Jd.aliases=[];function Jd(e){e.register(ot),e.register(pa),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]+/}}})}ep.displayName="cil";ep.aliases=[];function ep(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]+/}}tp.displayName="cilkc";tp.aliases=["cilk-c"];function tp(e){e.register(ir),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}np.displayName="cilkcpp";np.aliases=["cilk","cilk-cpp"];function np(e){e.register(pa),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}rp.displayName="clojure";rp.aliases=[];function rp(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:/[{}\[\](),]/}}ap.displayName="cmake";ap.aliases=[];function ap(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:/[()>}]|\$[<{]/}}ip.displayName="cobol";ip.aliases=[];function ip(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:/[.:,()]/}}sp.displayName="coffeescript";sp.aliases=["coffee"];function sp(e){e.register(bn),(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}up.displayName="csp";up.aliases=[];function up(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)}lp.displayName="cooklang";lp.aliases=[];function lp(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)}cp.displayName="coq";cp.aliases=[];function cp(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)}dp.displayName="crystal";dp.aliases=[];function dp(e){e.register(ga),(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)}pp.displayName="css-extras";pp.aliases=[];function pp(e){e.register(Yr),(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)}fp.displayName="csv";fp.aliases=[];function fp(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}mp.displayName="cue";mp.aliases=[];function mp(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)}hp.displayName="cypher";hp.aliases=[];function hp(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:/[()[\]{},;.]/}}gp.displayName="d";gp.aliases=[];function gp(e){e.register(ot),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"}})}bp.displayName="dart";bp.aliases=[];function bp(e){e.register(ot),(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)}Ep.displayName="dataweave";Ep.aliases=[];function Ep(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)}yp.displayName="dax";yp.aliases=[];function yp(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:/[;\[\](){}`,.]/}}Tp.displayName="dhall";Tp.aliases=[];function Tp(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}Sp.displayName="django";Sp.aliases=["jinja2"];function Sp(e){e.register(En),(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)}xp.displayName="dns-zone-file";xp.aliases=["dns-zone"];function xp(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"]}Ap.displayName="docker";Ap.aliases=["dockerfile"];function Ap(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(l,c){return l=l.replace(/<OPT>/g,function(){return i}).replace(/<SP>/g,function(){return r}),RegExp(l,c)}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)}_p.displayName="dot";_p.aliases=["gv"];function _p(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)}vp.displayName="ebnf";vp.aliases=[];function vp(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:/[-=|*/!]/}}wp.displayName="editorconfig";wp.aliases=[];function wp(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:/^=/}}}}Np.displayName="eiffel";Np.aliases=[];function Np(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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}Cp.displayName="ejs";Cp.aliases=["eta"];function Cp(e){e.register(bn),e.register(En),(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)}Ip.displayName="elixir";Ip.aliases=[];function Ip(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}}}})}kp.displayName="elm";kp.aliases=[];function kp(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:/[{}[\]|(),.:]/}}Rp.displayName="etlua";Rp.aliases=[];function Rp(e){e.register(Ns),e.register(En),(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)}Dp.displayName="erb";Dp.aliases=[];function Dp(e){e.register(En),e.register(ga),(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)}Op.displayName="erlang";Op.aliases=[];function Op(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:/[()[\]{}:;,.#|]|<<|>>/}}Lp.displayName="excel-formula";Lp.aliases=["xls","xlsx"];function Lp(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"]}Fp.displayName="fsharp";Fp.aliases=[];function Fp(e){e.register(ot),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}})}Mp.displayName="factor";Mp.aliases=[];function Mp(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(l){return(l+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(l){return new RegExp("(^|\\s)(?:"+l.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(l){a[l].pattern=s(o[l])});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)}Pp.displayName="false";Pp.aliases=[];function Pp(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)}Bp.displayName="firestore-security-rules";Bp.aliases=[];function Bp(e){e.register(ot),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:/,/}}})}Up.displayName="flow";Up.aliases=[];function Up(e){e.register(bn),(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)}jp.displayName="fortran";jp.aliases=[];function jp(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:/\(\/|\/\)|[(),;:&]/}}$p.displayName="ftl";$p.aliases=[];function $p(e){e.register(En),(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)}zp.displayName="gml";zp.aliases=["gamemakerlanguage"];function zp(e){e.register(ot),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/})}Hp.displayName="gap";Hp.aliases=[];function Hp(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}Gp.displayName="gcode";Gp.aliases=[];function Gp(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:/[:*]/}}Wp.displayName="gdscript";Wp.aliases=[];function Wp(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:/[.:,;()[\]{}]/}}Vp.displayName="gedcom";Vp.aliases=[];function Vp(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"}}}qp.displayName="gettext";qp.aliases=["po"];function qp(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}Yp.displayName="gherkin";Yp.aliases=[];function Yp(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)}Zp.displayName="git";Zp.aliases=[];function Zp(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}}Kp.displayName="glsl";Kp.aliases=[];function Kp(e){e.register(ir),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/})}Xp.displayName="gn";Xp.aliases=["gni"];function Xp(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}Qp.displayName="linker-script";Qp.aliases=["ld"];function Qp(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"]}Jp.displayName="go-module";Jp.aliases=["go-mod"];function Jp(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:/[()[\],]/}}ef.displayName="gradle";ef.aliases=[];function ef(e){e.register(ot),(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)}tf.displayName="graphql";tf.aliases=[];function tf(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(E){return typeof E!="string"&&E.type!=="comment"&&E.type!=="scalar"}),a=0;function i(E){return r[a+E]}function s(E,T){T=T||0;for(var v=0;v<E.length;v++){var x=i(v+T);if(!x||x.type!==E[v])return!1}return!0}function o(E,T){for(var v=1,x=a;x<r.length;x++){var I=r[x],D=I.content;if(I.type==="punctuation"&&typeof D=="string"){if(E.test(D))v++;else if(T.test(D)&&(v--,v===0))return x}}return-1}function u(E,T){var v=E.alias;v?Array.isArray(v)||(E.alias=v=[v]):E.alias=v=[],v.push(T)}for(;a<r.length;){var l=r[a++];if(l.type==="keyword"&&l.content==="mutation"){var c=[];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"),c.push(f.content))}a=d+1}if(s(["punctuation","property-query"])&&i(0).content==="{"&&(a++,u(i(0),"property-mutation"),c.length>0)){var m=o(/^\{$/,/^\}$/);if(m===-1)continue;for(var b=a;b<m;b++){var y=r[b];y.type==="variable"&&c.indexOf(y.content)>=0&&u(y,"variable-input")}}}}})}nf.displayName="groovy";nf.aliases=[];function nf(e){e.register(ot),(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)}rf.displayName="textile";rf.aliases=[];function rf(e){e.register(cn),(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 l=o.inline.inside;l.bold.inside=u,l.italic.inside=u,l.inserted.inside=u,l.deleted.inside=u,l.span.inside=u;var c=o.table.inside;c.inline=u.inline,c.link=u.link,c.image=u.image,c.footnote=u.footnote,c.acronym=u.acronym,c.mark=u.mark})(e)}af.displayName="haml";af.aliases=[];function af(e){e.register(ga),(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)}sf.displayName="handlebars";sf.aliases=["hbs","mustache"];function sf(e){e.register(En),(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)}Os.displayName="haskell";Os.aliases=["hs"];function Os(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(ot),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"}})}uf.displayName="hcl";uf.aliases=[];function uf(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:/[=\[\]{}]/}}lf.displayName="hlsl";lf.aliases=[];function lf(e){e.register(ir),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/})}cf.displayName="hoon";cf.aliases=[];function cf(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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}df.displayName="hpkp";df.aliases=[];function df(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}pf.displayName="hsts";pf.aliases=[];function pf(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}ff.displayName="uri";ff.aliases=["url"];function ff(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}mf.displayName="http";mf.aliases=[];function mf(e){(function(t){function n(c){return RegExp("(^(?:"+c+"):[ ]*(?![ ]))[^]+","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(c){var d=c.replace(/^[a-z]+\//,""),f="\\w+/(?:[\\w.-]+\\+)+"+d+"(?![+\\w.-])";return"(?:"+c+"|"+f+")"}var o;for(var u in a)if(a[u]){o=o||{};var l=i[u]?s(u):u;o[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+l+/(?:(?:\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)}hf.displayName="ichigojam";hf.aliases=[];function hf(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:/[\[,;:()\]]/}}gf.displayName="icon";gf.aliases=[];function gf(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:/[\[\](){},;]/}}bf.displayName="icu-message-format";bf.aliases=[];function bf(e){(function(t){function n(u,l){return l<=0?/[]/.source:u.replace(/<SELF>/g,function(){return n(u,l-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)}Ef.displayName="idris";Ef.aliases=["idr"];function Ef(e){e.register(Os),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}yf.displayName="ignore";yf.aliases=["gitignore","hgignore","npmignore"];function yf(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)}Tf.displayName="inform7";Tf.aliases=[];function Tf(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"}}Sf.displayName="io";Sf.aliases=[];function Sf(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:/[{}[\];(),.:]/}}xf.displayName="j";xf.aliases=[];function xf(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:/[()]/}}si.displayName="javadoclike";si.aliases=[];function si(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 l=u[o];if(!l){var c={};c[o]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=t.languages.insertBefore(i,"comment",c),l=u[o]}if(l instanceof RegExp&&(l=u[o]={pattern:l}),Array.isArray(l))for(var d=0,f=l.length;d<f;d++)l[d]instanceof RegExp&&(l[d]={pattern:l[d]}),s(l[d]);else s(l)}}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)}Af.displayName="scala";Af.aliases=[];function Af(e){e.register(ma),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}_f.displayName="javadoc";_f.aliases=[];function _f(e){e.register(ma),e.register(si),e.register(cn),(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)}vf.displayName="javastacktrace";vf.aliases=[];function vf(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/}}}}wf.displayName="jexl";wf.aliases=[];function wf(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:/[{}[\](),.]/}}Nf.displayName="jolie";Nf.aliases=[];function Nf(e){e.register(ot),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]*:)/}})}Cf.displayName="jq";Cf.aliases=[];function Cf(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)}If.displayName="js-templates";If.aliases=[];function If(e){e.register(bn),(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,y){if(t.languages[b])return{pattern:RegExp("((?:"+y+")\\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,y){return"___"+y.toUpperCase()+"_"+b+"___"}function l(b,y,E){var T={code:b,grammar:y,language:E};return t.hooks.run("before-tokenize",T),T.tokens=t.tokenize(T.code,T.grammar),t.hooks.run("after-tokenize",T),T.tokens}function c(b){var y={};y["interpolation-punctuation"]=i;var E=t.tokenize(b,y);if(E.length===3){var T=[1,1];T.push.apply(T,l(E[1],t.languages.javascript,"javascript")),E.splice.apply(E,T)}return new t.Token("interpolation",E,a.alias,b)}function d(b,y,E){var T=t.tokenize(b,{interpolation:{pattern:RegExp(s),lookbehind:!0}}),v=0,x={},I=T.map(function(k){if(typeof k=="string")return k;for(var P=k.content,w;b.indexOf(w=u(v++,E))!==-1;);return x[w]=P,w}).join(""),D=l(I,y,E),S=Object.keys(x);v=0;function A(k){for(var P=0;P<k.length;P++){if(v>=S.length)return;var w=k[P];if(typeof w=="string"||typeof w.content=="string"){var U=S[v],j=typeof w=="string"?w:w.content,K=j.indexOf(U);if(K!==-1){++v;var X=j.substring(0,K),G=c(x[U]),oe=j.substring(K+U.length),Q=[];if(X&&Q.push(X),Q.push(G),oe){var ae=[oe];A(ae),Q.push.apply(Q,ae)}typeof w=="string"?(k.splice.apply(k,[P,1].concat(Q)),P+=Q.length-1):w.content=Q}}else{var Y=w.content;Array.isArray(Y)?A(Y):A([Y])}}}return A(D),new t.Token(E,D,"language-"+E,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 y(E){for(var T=0,v=E.length;T<v;T++){var x=E[T];if(typeof x!="string"){var I=x.content;if(!Array.isArray(I)){typeof I!="string"&&y([I]);continue}if(x.type==="template-string"){var D=I[1];if(I.length===3&&typeof D!="string"&&D.type==="embedded-code"){var S=m(D),A=D.alias,k=Array.isArray(A)?A[0]:A,P=t.languages[k];if(!P)continue;I[1]=d(S,P,k)}}else y(I)}}}y(b.tokens)});function m(b){return typeof b=="string"?b:Array.isArray(b)?b.map(m).join(""):m(b.content)}})(e)}kf.displayName="jsdoc";kf.aliases=[];function kf(e){e.register(si),e.register(bn),e.register(ri),(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)}Rf.displayName="n4js";Rf.aliases=["n4jsd"];function Rf(e){e.register(bn),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}Df.displayName="js-extras";Df.aliases=[];function Df(e){e.register(bn),(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,l){return RegExp(u.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),l)}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)}Of.displayName="json5";Of.aliases=[];function Of(e){e.register(ti),(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)}Lf.displayName="jsonp";Lf.aliases=[];function Lf(e){e.register(ti),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*\()/})}Ff.displayName="jsstacktrace";Ff.aliases=[];function Ff(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:/:/}}}}}}Mf.displayName="julia";Mf.aliases=[];function Mf(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|[πℯ]/}}Pf.displayName="keepalived";Pf.aliases=[];function Pf(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:/[\{\}]/}}Bf.displayName="keyman";Bf.aliases=[];function Bf(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:/[()=,]/}}Uf.displayName="kumir";Uf.aliases=["kum"];function Uf(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)}jf.displayName="kusto";jf.aliases=[];function jf(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:/[()\[\]{},;.:]/}}$f.displayName="latex";$f.aliases=["context","tex"];function $f(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)}zf.displayName="latte";zf.aliases=[];function zf(e){e.register(ot),e.register(En),e.register(ha),(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)}Ls.displayName="scheme";Ls.aliases=[];function Ls(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)}Hf.displayName="lilypond";Hf.aliases=["ly"];function Hf(e){e.register(Ls),(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)}Gf.displayName="liquid";Gf.aliases=[];function Gf(e){e.register(En),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")})}Wf.displayName="lisp";Wf.aliases=["elisp","emacs","emacs-lisp"];function Wf(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)",l=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,c={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+l+/\)/.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+l+/\)/.source),inside:c},argument:{pattern:RegExp(/(^|[\s(])/.source+a),lookbehind:!0,alias:"variable"},rest:c},f="\\S+(?:\\s+\\S+)*",m={pattern:RegExp(s+l+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:/[()]/}};c.lambda.inside.arguments=m,c.defun.inside.arguments=t.util.clone(m),c.defun.inside.arguments.inside.sublist=m,t.languages.lisp=c,t.languages.elisp=c,t.languages.emacs=c,t.languages["emacs-lisp"]=c})(e)}Vf.displayName="livescript";Vf.aliases=[];function Vf(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}qf.displayName="llvm";qf.aliases=[];function qf(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)}Yf.displayName="log";Yf.aliases=[];function Yf(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:/[\[\].,]/}}Zf.displayName="lolcode";Zf.aliases=[];function Zf(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}|…|,|!/}}Kf.displayName="magma";Kf.aliases=[];function Kf(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:/[()[\]{}<>,;.:]/}}Pu.displayName="mata";Pu.aliases=[];function Pu(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)}Xf.displayName="matlab";Xf.aliases=[];function Xf(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}|[.,;\[\](){}!]/}}Qf.displayName="maxscript";Qf.aliases=[];function Qf(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)}Jf.displayName="mel";Jf.aliases=[];function Jf(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}em.displayName="mermaid";em.aliases=[];function em(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:/[(){};]/}}tm.displayName="metafont";tm.aliases=[];function tm(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}}}nm.displayName="mizar";nm.aliases=[];function nm(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:/\(#|#\)|[,:;\[\](){}]/}}rm.displayName="mongodb";rm.aliases=[];function rm(e){e.register(bn),(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)}am.displayName="monkey";am.aliases=[];function am(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:/[.,:;()\[\]]/}}im.displayName="moonscript";im.aliases=["moon"];function im(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}sm.displayName="n1ql";sm.aliases=[];function sm(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:/[{}[\];(),:]/}}um.displayName="naniscript";um.aliases=["nani"];function um(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 l=i(u);a(l)||(u.type="bad-line",u.content=l)}})});function a(s){for(var o="[]{}",u=[],l=0;l<s.length;l++){var c=s[l],d=o.indexOf(c);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)}lm.displayName="nasm";lm.aliases=[];function lm(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:/[\[\]*+\-\/%<>=&|$!]/}}cm.displayName="neon";cm.aliases=[];function cm(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:/[,:=[\]{}()-]/}}dm.displayName="nevod";dm.aliases=[];function dm(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\-.]+/}}pm.displayName="nginx";pm.aliases=[];function pm(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)}fm.displayName="nim";fm.aliases=[];function fm(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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}mm.displayName="nix";mm.aliases=[];function mm(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}hm.displayName="nsis";hm.aliases=[];function hm(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}}}gm.displayName="ocaml";gm.aliases=[];function gm(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/}}bm.displayName="odin";bm.aliases=[];function bm(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)}Em.displayName="opencl";Em.aliases=[];function Em(e){e.register(ir),(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)}ym.displayName="openqasm";ym.aliases=["qasm"];function ym(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}Tm.displayName="oz";Tm.aliases=[];function Tm(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:/[\[\](){}.:;?]/}}Sm.displayName="parigp";Sm.aliases=[];function Sm(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:/[\[\]{}().,:;|]/}}xm.displayName="parser";xm.aliases=[];function xm(e){e.register(cn),(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)}Am.displayName="pascal";Am.aliases=["objectpascal"];function Am(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}_m.displayName="pascaligo";_m.aliases=[];function _m(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)}vm.displayName="psl";vm.aliases=[];function vm(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:/[(){}\[\];,]/}}wm.displayName="pcaxis";wm.aliases=["px"];function wm(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}Nm.displayName="peoplecode";Nm.aliases=["pcode"];function Nm(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}Cm.displayName="phpdoc";Cm.aliases=[];function Cm(e){e.register(si),e.register(ha),(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)}Im.displayName="php-extras";Im.aliases=[];function Im(e){e.register(ha),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:/::|\\/}}})}km.displayName="plant-uml";km.aliases=["plantuml"];function km(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,l=/[ox]?[\]?]?/.source,c=u+"(?:"+i+o+"|"+s+i+"(?:"+o+")?)"+l;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+c+/(?![-.<>?|\\\]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)}Rm.displayName="plsql";Rm.aliases=[];function Rm(e){e.register(ni),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"}})}Dm.displayName="powerquery";Dm.aliases=["mscript","pq"];function Dm(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}Om.displayName="powershell";Om.aliases=[];function Om(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)}Lm.displayName="processing";Lm.aliases=[];function Lm(e){e.register(ot),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"}})}Fm.displayName="prolog";Fm.aliases=[];function Fm(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:/[(){}\[\],]/}}Mm.displayName="promql";Mm.aliases=[];function Mm(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)}Pm.displayName="properties";Pm.aliases=[];function Pm(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:/[=:]/}}Bm.displayName="protobuf";Bm.aliases=[];function Bm(e){e.register(ot),(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)}Um.displayName="stylus";Um.aliases=[];function Um(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)}jm.displayName="twig";jm.aliases=[];function jm(e){e.register(En),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")})}$m.displayName="pug";$m.aliases=[];function $m(e){e.register(bn),e.register(cn),(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)}zm.displayName="puppet";zm.aliases=[];function zm(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)}Hm.displayName="pure";Hm.aliases=[];function Hm(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)}Gm.displayName="purebasic";Gm.aliases=["pbfasm"];function Gm(e){e.register(ot),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}Wm.displayName="purescript";Wm.aliases=["purs"];function Wm(e){e.register(Os),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}Vm.displayName="qsharp";Vm.aliases=["qs"];function Vm(e){e.register(ot),(function(t){function n(m,b){return m.replace(/<<(\d+)>>/g,function(y,E){return"(?:"+b[+E]+")"})}function r(m,b,y){return RegExp(n(m,b),"")}function a(m,b){for(var y=0;y<b;y++)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,l=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),c={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,[l]),lookbehind:!0,inside:c},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[l]),lookbehind:!0,inside:c}],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}qm.displayName="q";qm.aliases=[];function qm(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:/[(){}\[\];.]/}}Ym.displayName="qml";Ym.aliases=[];function Ym(e){e.register(bn),(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)}Zm.displayName="qore";Zm.aliases=[];function Zm(e){e.register(ot),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/})}Km.displayName="racket";Km.aliases=["rkt"];function Km(e){e.register(Ls),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}Xm.displayName="cshtml";Xm.aliases=["razor"];function Xm(e){e.register(fa),e.register(cn),(function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function a(v,x){for(var I=0;I<x;I++)v=v.replace(/<self>/g,function(){return"(?:"+v+")"});return v.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),l=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+i+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+u+")?"+i+"|"+s+")*"+/(?![?!\.(\[]|<(?!\/))/.source,c=/@(?![\w()])/.source+"|"+l,d="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+c+`)[^"'@]*)+["'])`,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 y=t.languages.insertBefore("csharp","string",{html:{pattern:RegExp(b),greedy:!0,inside:t.languages.cshtml}},{csharp:t.languages.extend("csharp",{})}),E={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:y},T={pattern:RegExp(/(^|[^@])/.source+l),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:E}};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:T},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:E}},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:E}},value:T,"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),t.languages.razor=t.languages.cshtml})(e)}Bu.displayName="jsx";Bu.aliases=[];function Bu(e){e.register(bn),e.register(cn),(function(t){var n=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function s(l,c){return l=l.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return a}).replace(/<SPREAD>/g,function(){return i}),RegExp(l,c)}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(l){return l?typeof l=="string"?l:typeof l.content=="string"?l.content:l.content.map(o).join(""):""},u=function(l){for(var c=[],d=0;d<l.length;d++){var f=l[d],m=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?c.length>0&&c[c.length-1].tagName===o(f.content[0].content[1])&&c.pop():f.content[f.content.length-1].content==="/>"||c.push({tagName:o(f.content[0].content[1]),openedBraces:0}):c.length>0&&f.type==="punctuation"&&f.content==="{"?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?c[c.length-1].openedBraces--:m=!0),(m||typeof f=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var b=o(f);d<l.length-1&&(typeof l[d+1]=="string"||l[d+1].type==="plain-text")&&(b+=o(l[d+1]),l.splice(d+1,1)),d>0&&(typeof l[d-1]=="string"||l[d-1].type==="plain-text")&&(b=o(l[d-1])+b,l.splice(d-1,1),d--),l[d]=new t.Token("plain-text",b,null,b)}f.content&&typeof f.content!="string"&&u(f.content)}};t.hooks.add("after-tokenize",function(l){l.language!=="jsx"&&l.language!=="tsx"||u(l.tokens)})})(e)}Qm.displayName="tsx";Qm.aliases=[];function Qm(e){e.register(Bu),e.register(ri),(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)}Jm.displayName="reason";Jm.aliases=[];function Jm(e){e.register(ot),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}eh.displayName="rego";eh.aliases=[];function eh(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:/[,;.\[\]{}()]/}}th.displayName="renpy";th.aliases=["rpy"];function th(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}nh.displayName="rescript";nh.aliases=["res"];function nh(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}rh.displayName="rest";rh.aliases=[];function rh(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}}}ah.displayName="rip";ah.aliases=[];function ah(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`'",.:;#\/\\()<>\[\]{}]*/}}ih.displayName="roboconf";ih.aliases=[];function ih(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:/[{},.;:=]/}}sh.displayName="robotframework";sh.aliases=["robot"];function sh(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,l){var c={};c["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var d in l)c[d]=l[d];return c.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},c.variable=r,c.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return u}),"im"),alias:"section",inside:c}}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}],l={pattern:RegExp(n),greedy:!0},c=/[$%@.(){}\[\];,\\]/,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:c,string:l},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"}}},y={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"},E={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},T=/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,v={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return T}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return T}),"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:c,string:l}},x={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":y,"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:c,string:l}},"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:x,"submit-statement":E,"global-statements":y,number:r,"numeric-constant":a,punctuation:c,string:l}},"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:x,"submit-statement":E,"global-statements":y,number:r,"numeric-constant":a,punctuation:c,string:l}},"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":v,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:f},step:o,keyword:x,function:d,format:m,altformat:b,"global-statements":y,number:r,"numeric-constant":a,punctuation:c,string:l}},"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:c}},"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":v,comment:u,function:d,format:m,altformat:b,"numeric-constant":a,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:l,step:o,keyword:x,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:c}})(e)}uh.displayName="shell-session";uh.aliases=["sh-session","shellsession"];function uh(e){e.register(ws),(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)}lh.displayName="smali";lh.aliases=[];function lh(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:/[{}(),;:]/}}ch.displayName="smalltalk";ch.aliases=[];function ch(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:/[.;:?\[\](){}]/}}dh.displayName="smarty";dh.aliases=[];function dh(e){e.register(En),(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)}ph.displayName="sml";ph.aliases=["smlnj"];function ph(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)}fh.displayName="solidity";fh.aliases=["sol"];function fh(e){e.register(ot),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}mh.displayName="solution-file";mh.aliases=["sln"];function mh(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)}hh.displayName="soy";hh.aliases=[];function hh(e){e.register(En),(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(l){return l===o&&(u=!1),u?!1:(l===s&&(u=!0),!0)})}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"soy")})})(e)}Uu.displayName="turtle";Uu.aliases=["trig"];function Uu(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}gh.displayName="sparql";gh.aliases=["rq"];function gh(e){e.register(Uu),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}bh.displayName="splunk-spl";bh.aliases=[];function bh(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:/[()[\],]/}}Eh.displayName="sqf";Eh.aliases=[];function Eh(e){e.register(ot),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"]}yh.displayName="squirrel";yh.aliases=[];function yh(e){e.register(ot),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"}})}Th.displayName="stan";Th.aliases=[];function Th(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)}Sh.displayName="stata";Sh.aliases=[];function Sh(e){e.register(ma),e.register(Pu),e.register(Is),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}xh.displayName="iecst";xh.aliases=[];function xh(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:/[()[\].,;]/}}Ah.displayName="supercollider";Ah.aliases=["sclang"];function Ah(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}_h.displayName="systemd";_h.aliases=[];function _h(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)}Fs.displayName="t4-templating";Fs.aliases=[];function Fs(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)}vh.displayName="t4-cs";vh.aliases=["t4"];function vh(e){e.register(fa),e.register(Fs),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}wh.displayName="t4-vb";wh.aliases=[];function wh(e){e.register(Fs),e.register(Rs),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}Nh.displayName="tap";Nh.aliases=[];function Nh(e){e.register(Cs),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"}}}Ch.displayName="tcl";Ch.aliases=[];function Ch(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:/[{}()\[\]]/}}Ih.displayName="tt2";Ih.aliases=[];function Ih(e){e.register(ot),e.register(En),(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)}kh.displayName="toml";kh.aliases=[];function kh(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)}Rh.displayName="tremor";Rh.aliases=["trickle","troy"];function Rh(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)}Dh.displayName="typoscript";Dh.aliases=["tsconfig"];function Dh(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)}Oh.displayName="unrealscript";Oh.aliases=["uc","uscript"];function Oh(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}Lh.displayName="uorazor";Lh.aliases=[];function Lh(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:/[()\[\]{}:.,]/}}Fh.displayName="v";Fh.aliases=[];function Fh(e){e.register(ot),(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)}Mh.displayName="vala";Mh.aliases=[];function Mh(e){e.register(ot),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]+$/}}})}Ph.displayName="velocity";Ph.aliases=[];function Ph(e){e.register(cn),(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)}Bh.displayName="verilog";Bh.aliases=[];function Bh(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:/[[\];(),.:]/}}Uh.displayName="vhdl";Uh.aliases=[];function Uh(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:/[{}[\];(),.:]/}}jh.displayName="vim";jh.aliases=[];function jh(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:/[{}[\](),;:]/}}$h.displayName="visual-basic";$h.aliases=["vb","vba"];function $h(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"]}zh.displayName="warpscript";zh.aliases=[];function zh(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/}}Hh.displayName="wasm";Hh.aliases=[];function Hh(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:/[()]/}}Gh.displayName="web-idl";Gh.aliases=["webidl"];function Gh(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)}Wh.displayName="wgsl";Wh.aliases=[];function Wh(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:/[@(){}[\],;<>:.]/}}Vh.displayName="wiki";Vh.aliases=[];function Vh(e){e.register(cn),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}}}})}qh.displayName="wolfram";qh.aliases=["mathematica","nb","wl"];function qh(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}Yh.displayName="wren";Yh.aliases=[];function Yh(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]+/}}}Zh.displayName="xeora";Zh.aliases=["xeoracube"];function Zh(e){e.register(cn),(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)}Kh.displayName="xml-doc";Kh.aliases=[];function Kh(e){e.register(cn),(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)}Xh.displayName="xojo";Xh.aliases=[];function Xh(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:/[.,;:()]/}}Qh.displayName="xquery";Qh.aliases=[];function Qh(e){e.register(cn),(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 l=n(o);s<a.length-1&&(typeof a[s+1]=="string"||a[s+1].type==="plain-text")&&(l+=n(a[s+1]),a.splice(s+1,1)),s>0&&(typeof a[s-1]=="string"||a[s-1].type==="plain-text")&&(l=n(a[s-1])+l,a.splice(s-1,1),s--),/^\s+$/.test(l)?a[s]=l:a[s]=new t.Token("plain-text",l,null,l)}o.content&&typeof o.content!="string"&&r(o.content)}};t.hooks.add("after-tokenize",function(a){a.language==="xquery"&&r(a.tokens)})})(e)}Jh.displayName="yang";Jh.aliases=[];function Jh(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:/[{};:]/}}eg.displayName="zig";eg.aliases=[];function eg(e){(function(t){function n(l){return function(){return l}}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(l){l.inside===null&&(l.inside=t.languages.zig)})})(e)}_.register(cn);_.register(Yr);_.register(ot);_.register(Au);_.register(bn);_.register(gd);_.register(bd);_.register(Ed);_.register(yd);_.register(Td);_.register(Sd);_.register(xd);_.register(Ad);_.register(ni);_.register(_d);_.register(vd);_.register(wd);_.register(Nd);_.register(ir);_.register(pa);_.register(yu);_.register(Cd);_.register(Id);_.register(ws);_.register(Cs);_.register(Nu);_.register(kd);_.register(Rd);_.register(fa);_.register(Dd);_.register(Od);_.register(Ld);_.register(Fd);_.register(Md);_.register(Pd);_.register(Bd);_.register(Ud);_.register(ks);_.register(jd);_.register($d);_.register(zd);_.register(Hd);_.register(Gd);_.register(Wd);_.register(Vd);_.register(qd);_.register(Yd);_.register(Zd);_.register(Kd);_.register(Xd);_.register(Qd);_.register(Jd);_.register(ep);_.register(tp);_.register(np);_.register(rp);_.register(ap);_.register(ip);_.register(sp);_.register(op);_.register(up);_.register(lp);_.register(cp);_.register(ga);_.register(dp);_.register(pp);_.register(fp);_.register(mp);_.register(hp);_.register(gp);_.register(bp);_.register(Ep);_.register(yp);_.register(Tp);_.register(Tu);_.register(En);_.register(Sp);_.register(xp);_.register(Ap);_.register(_p);_.register(vp);_.register(wp);_.register(Np);_.register(Cp);_.register(Ip);_.register(kp);_.register(Ns);_.register(Rp);_.register(Dp);_.register(Op);_.register(Lp);_.register(Fp);_.register(Mp);_.register(Pp);_.register(Bp);_.register(Up);_.register(jp);_.register($p);_.register(zp);_.register(Hp);_.register(Gp);_.register(Wp);_.register(Vp);_.register(qp);_.register(Yp);_.register(Zp);_.register(Kp);_.register(Xp);_.register(Qp);_.register(Su);_.register(Jp);_.register(ef);_.register(tf);_.register(nf);_.register(vu);_.register(Ou);_.register(rf);_.register(af);_.register(sf);_.register(Os);_.register(of);_.register(uf);_.register(lf);_.register(cf);_.register(df);_.register(pf);_.register(ti);_.register(ff);_.register(mf);_.register(hf);_.register(gf);_.register(bf);_.register(Ef);_.register(yf);_.register(Tf);_.register(xu);_.register(Sf);_.register(xf);_.register(ma);_.register(ha);_.register(si);_.register(Af);_.register(_f);_.register(vf);_.register(wf);_.register(Nf);_.register(Cf);_.register(If);_.register(ri);_.register(kf);_.register(Rf);_.register(Df);_.register(Of);_.register(Lf);_.register(Ff);_.register(Mf);_.register(Pf);_.register(Bf);_.register(_u);_.register(Uf);_.register(jf);_.register($f);_.register(zf);_.register(Ls);_.register(Hf);_.register(Gf);_.register(Wf);_.register(Vf);_.register(qf);_.register(Yf);_.register(Zf);_.register(Kf);_.register(wu);_.register(Pu);_.register(Xf);_.register(Qf);_.register(Jf);_.register(em);_.register(tm);_.register(nm);_.register(rm);_.register(am);_.register(im);_.register(sm);_.register(om);_.register(um);_.register(lm);_.register(cm);_.register(dm);_.register(pm);_.register(fm);_.register(mm);_.register(hm);_.register(Cu);_.register(gm);_.register(bm);_.register(Em);_.register(ym);_.register(Tm);_.register(Sm);_.register(xm);_.register(Am);_.register(_m);_.register(vm);_.register(wm);_.register(Nm);_.register(Iu);_.register(Cm);_.register(Im);_.register(km);_.register(Rm);_.register(Dm);_.register(Om);_.register(Lm);_.register(Fm);_.register(Mm);_.register(Pm);_.register(Bm);_.register(Um);_.register(jm);_.register($m);_.register(zm);_.register(Hm);_.register(Gm);_.register(Wm);_.register(Is);_.register(Vm);_.register(qm);_.register(Ym);_.register(Zm);_.register(ku);_.register(Km);_.register(Xm);_.register(Bu);_.register(Qm);_.register(Jm);_.register(eh);_.register(th);_.register(nh);_.register(rh);_.register(ah);_.register(ih);_.register(sh);_.register(Ru);_.register(oh);_.register(Du);_.register(uh);_.register(lh);_.register(ch);_.register(dh);_.register(ph);_.register(fh);_.register(mh);_.register(hh);_.register(Uu);_.register(gh);_.register(bh);_.register(Eh);_.register(yh);_.register(Th);_.register(Sh);_.register(xh);_.register(Ah);_.register(Lu);_.register(_h);_.register(Fs);_.register(vh);_.register(Rs);_.register(wh);_.register(Nh);_.register(Ch);_.register(Ih);_.register(kh);_.register(Rh);_.register(Dh);_.register(Oh);_.register(Lh);_.register(Fh);_.register(Mh);_.register(Ph);_.register(Bh);_.register(Uh);_.register(jh);_.register($h);_.register(zh);_.register(Hh);_.register(Gh);_.register(Wh);_.register(Vh);_.register(qh);_.register(Yh);_.register(Zh);_.register(Kh);_.register(Xh);_.register(Qh);_.register(Jh);_.register(eg);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)),Fo(o,n.prototype)}function r(a,i){var s=t.get(i);return Object.keys(s).reduce(function(o,u){var l=s[u];if(typeof l=="number")o[u]=a[l];else{for(var c=0;a[l[c]]===void 0&&c+1<l.length;)c++;o[u]=a[l[c]]}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&&Fo(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,l){var c=s[l];return"$"+(Array.isArray(c)?c.join("$"):c)}))}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 Fo(e,t){return Fo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Fo(e,t)}function Vb(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 yl(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 Vb(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)?Vb(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 bN=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){Fn(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 l,c,d=(function(D){for(var S,A=yl(D.properties.className);!(S=A()).done;){var k=S.value;if(k.slice(0,9)==="language-")return k.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,l=e.highlight(Oa(r),m),i.properties.className=(i.properties.className||[]).concat("language-"+m)}catch(D){if(!t.ignoreMissing||!/Unknown language/.test(D.message))throw D;l=r}else l=r;l.children=(c=1,function D(S){return S.reduce(function(A,k){if(k.type==="text"){var P=k.value,w=(P.match(/\n/g)||"").length;if(w===0)k.position={start:{line:c,column:1},end:{line:c,column:1}},A.push(k);else for(var U,j=P.split(`
10
+ `),K=yl(j.entries());!(U=K()).done;){var X=U.value,G=X[0],oe=X[1];A.push({type:"text",value:G===j.length-1?oe:oe+`
11
+ `,position:{start:{line:c+G,column:1},end:{line:c+G,column:1}}})}return c+=w,A}if(Object.prototype.hasOwnProperty.call(k,"children")){var Q=c;return k.children=D(k.children),A.push(k),k.position={start:{line:Q,column:1},end:{line:c,column:1}},A}return A.push(k),A},[])})(l.children),l.position=l.children.length>0?{start:{line:l.children[0].position.start.line,column:0},end:{line:l.children[l.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var b,y=(function(D){var S=/{([\d,-]+)}/,A=D.split(",").map(function(w){return w.trim()}).join();if(S.test(A)){var k=S.exec(A)[1],P=Bw(k);return function(w){return P.includes(w+1)}}return function(){return!1}})(u),E=(function(D){var S=wc(/showLineNumbers=(\d+)/i,{lines:1});if(S.test(D)){var A=S.exec(D);return Number(A.groups.lines)}return 1})(u),T=(function(D){for(var S=new Array(D),A=0;A<D;A++)S[A]={type:"element",tagName:"span",properties:{className:[]},children:[]};return S})(l.position.end.line),v=["showlinenumbers=false",'showlinenumbers="false"',"showlinenumbers={false}"],x=function(){var D,S,A=b.value,k=A[0],P=A[1];P.properties.className=["code-line"];var w=Lw(l,function(U){return U.position.start.line<=k+1&&U.position.end.line>=k+1});P.children=w.children,(u.toLowerCase().includes("showLineNumbers".toLowerCase())||t.showLineNumbers===!0||typeof t.showLineNumbers=="object"&&t.showLineNumbers.includes(d))&&!v.some(function(U){return u.toLowerCase().includes(U)})&&(P.properties.line=[(k+E).toString()],P.properties.className.push("line-number")),y(k)&&P.properties.className.push("highlight-line"),(d==="diff"||(D=d)!=null&&D.includes("diff-"))&&Oa(P).substring(0,1)==="-"?P.properties.className.push("deleted"):(d==="diff"||(S=d)!=null&&S.includes("diff-"))&&Oa(P).substring(0,1)==="+"&&P.properties.className.push("inserted")},I=yl(T.entries());!(b=I()).done;)x();T.length>0&&Oa(T[T.length-1]).trim()===""&&T.pop(),r.children=T}}}},GT=bN(_),Ao={},Nc={};function EN(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 qb(e){if(e.length===0)return Ao;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];EN(a,t)}return t}function yN(e){if(e.length===0)return Nc;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];t[a]=!0}return t}var Js={},Yb={type:"String",optional:!0};function TN(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 SN(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 Zb(e){for(var t=SN(e),n={},r=0,a=Object.keys(t);r<a.length;r++){var i=a[r],s=t[i];s&&(n[i]=TN(s))}return n}var Wa=function(){return Wa=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},Wa.apply(this,arguments)},xN={},Cc={wildcard:!0};function AN(e){return e?typeof e=="boolean"?Cc:e:xN}function _N(e,t){return function(n,r){return t(e(n),e(r))}}function vN(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 Kb(e,t){return function(n,r){return r===!0?e:t(n===!0?e:n,r)}}function _a(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=Wa({},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 l=e[o];r[o]=l(t[o],u)}}return r}}function lr(e,t){return t!==void 0?t:e}function eo(e,t){return t?e?e.concat(t):t:e}function Xb(e,t){if(!t)return e;if(!e)return t;for(var n=Wa({},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 na=vN(_a({baseSyntax:lr,modules:eo,tag:Kb(Cc,_a({wildcard:lr})),ids:lr,classNames:lr,nestingSelector:lr,namespace:Kb(Cc,_a({wildcard:lr})),combinators:eo,attributes:_a({operators:eo,caseSensitivityModifiers:eo,unknownCaseSensitivityModifiers:lr}),pseudoClasses:_a({unknown:lr,definitions:Xb}),pseudoElements:_a({unknown:lr,notation:lr,definitions:_N(function(e){return Array.isArray(e)?{NoArgument:e}:e},Xb)})})),WT={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},VT=na(WT,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),Ic=na(VT,{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"]}}}),qT=na(Ic,{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"]}}}),Mo={"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}},YT=Wa(Wa({},qT),{modules:Object.entries(Mo).filter(function(e){var t=e[1].latest;return t}).map(function(e){var t=e[0];return t})}),wN=na(YT,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),kc={css1:WT,css2:VT,css3:Ic,"selectors-3":Ic,"selectors-4":qT,latest:YT,progressive:wN};function NN(){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=kc[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 l=u[o],c=l[1],d=0,f=c;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,y=s;b<y.length;b++){var E=y[b];e.pseudoElements[E]||(e.pseudoElements[E]=[]),e.pseudoElements[E].includes(a)||e.pseudoElements[E].push(a)}else for(var T=0,v=Object.values(s);T<v.length;T++)for(var c=v[T],x=0,I=c;x<I.length;x++){var D=I[x];e.pseudoElements[D]||(e.pseudoElements[D]=[]),e.pseudoElements[D].includes(a)||e.pseudoElements[D].push(a)}}}for(var S=0,A=Object.entries(Mo);S<A.length;S++){var k=A[S],P=k[0],w=k[1];if(w.pseudoClasses&&typeof w.pseudoClasses=="object"){var s=w.pseudoClasses.definitions;if(s)for(var U=0,j=Object.values(s);U<j.length;U++)for(var c=j[U],K=0,X=c;K<X.length;K++){var G=X[K];e.pseudoClasses[G]||(e.pseudoClasses[G]=[]),e.pseudoClasses[G].includes(P)||e.pseudoClasses[G].push(P)}}if(w.pseudoElements&&typeof w.pseudoElements=="object"){var s=w.pseudoElements.definitions;if(s)if(Array.isArray(s))for(var oe=0,Q=s;oe<Q.length;oe++){var ae=Q[oe];e.pseudoElements[ae]||(e.pseudoElements[ae]=[]),e.pseudoElements[ae].includes(P)||e.pseudoElements[ae].push(P)}else for(var Y=0,N=Object.values(s);Y<N.length;Y++)for(var c=N[Y],H=0,ie=c;H<ie.length;H++){var R=ie[H];e.pseudoElements[R]||(e.pseudoElements[R]=[]),e.pseudoElements[R].includes(P)||e.pseudoElements[R].push(P)}}}return e}var Qb=NN();function _i(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function Jb(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function vi(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var CN={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},IN={'"':!0,"'":!0},Tl={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},kN=6,Sl="css-selector-parser parse error: ";function RN(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:kc[n];if(o.baseSyntax&&(o=na(kc[o.baseSyntax],o)),o.modules&&o.modules.length>0)for(var u=0,l=o.modules;u<l.length;u++){var c=l[u],d=Mo[c];d&&(o=na(d,o))}if(s&&s.length>0)for(var f=0,m=s;f<m.length;f++){var b=m[f],d=Mo[b];d&&(o=na(d,o))}var y=o.tag?[!0,!!AN(o.tag).wildcard]:[!1,!1],E=y[0],T=y[1],v=!!o.ids,x=!!o.classNames,I=!!o.nestingSelector,D=!!o.namespace,S=o.namespace&&(o.namespace===!0||o.namespace.wildcard===!0);if(D&&!E)throw new Error("".concat(Sl,"Namespaces cannot be enabled while tags are disabled."));var A=!!r,k=o.combinators?qb(o.combinators):Ao,P=o.attributes?[!0,o.attributes.operators?qb(o.attributes.operators):Ao,o.attributes.caseSensitivityModifiers?yN(o.attributes.caseSensitivityModifiers):Nc,o.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,Ao,Nc,!1],w=P[0],U=P[1],j=P[2],K=P[3],X=K||Object.keys(j).length>0,G=o.pseudoClasses?[!0,o.pseudoClasses.definitions?Zb(o.pseudoClasses.definitions):Js,o.pseudoClasses.unknown==="accept"]:[!1,Js,!1],oe=G[0],Q=G[1],ae=G[2],Y=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?Zb(Array.isArray(o.pseudoElements.definitions)?{NoArgument:o.pseudoElements.definitions}:o.pseudoElements.definitions):Js,o.pseudoElements.unknown==="accept"]:[!1,!1,!1,Js,!1],N=Y[0],H=Y[1],ie=Y[2],R=Y[3],ve=Y[4],Oe="",Ne=Oe.length,je=0,be="",ge=function(ee){return be===ee},pt=function(){return ge("*")||_i(be)},ze=function(ee){je=ee,be=Oe.charAt(je)},Ee=function(){je++,be=Oe.charAt(je)},Me=function(){var ee=be;return je++,be=Oe.charAt(je),ee};function tt(ee){var ye=Math.min(Ne-1,je),Fe=new Error("".concat(Sl).concat(ee," Pos: ").concat(ye,"."));throw Fe.position=ye,Fe.name="ParserError",Fe}function de(ee,ye){if(!ee)return tt(ye)}var ct=function(){de(je<Ne,"Unexpected end of input.")},yt=function(){return je>=Ne},ht=function(ee){de(je<Ne,'Expected "'.concat(ee,'" but end of input reached.')),de(be===ee,'Expected "'.concat(ee,'" but "').concat(be,'" found.')),je++,be=Oe.charAt(je)};function $t(ee){var ye=Rt(ee,je);if(ye)return je+=ye.length,be=Oe.charAt(je),ye}function Rt(ee,ye){var Fe=Oe.charAt(ye),ke=ee[Fe];if(ke){var z=Rt(ke.chars,ye+1);if(z)return z;if(ke.self)return ke.self}}function zt(){for(var ee=Me(),ye=1;vi(be)&&ye<kN;)ee+=Me(),ye++;return Ze(),String.fromCharCode(parseInt(ee,16))}function tn(ee){var ye="";for(ht(ee);je<Ne;){if(ge(ee))return Ee(),ye;ge("\\")?(Ee(),ge(ee)?(ye+=ee,Ee()):be===`
12
+ `||be==="\f"?Ee():be==="\r"?(Ee(),ge(`
13
+ `)&&Ee()):vi(be)?ye+=zt():(ye+=be,Ee())):(ye+=be,Ee())}return ye}function ut(){if(!_i(be))return null;for(var ee="";ge("-");)ee+=be,Ee();for(ee==="-"&&!Jb(be)&&!ge("\\")&&tt("Identifiers cannot consist of a single hyphen."),i&&ee.length>=2&&tt("Identifiers cannot start with two hyphens with strict mode on."),Tl[be]&&tt("Identifiers cannot start with hyphens followed by digits.");je<Ne;)if(Jb(be))ee+=Me();else if(ge("\\"))Ee(),ct(),vi(be)?ee+=zt():ee+=Me();else break;return ee}function Ae(){for(var ee="";je<Ne&&!ge(")");)if(ge("\\")){if(Ee(),yt()&&!i)return(ee+"\\").trim();ct(),vi(be)?ee+=zt():ee+=Me()}else ee+=Me();return ee.trim()}function Ze(){if(be===" "||be===" "||be==="\f"||be===`
14
+ `){Ee();return}be==="\r"&&Ee(),be===`
15
+ `&&Ee()}function W(){for(;CN[be];)Ee()}function ne(ee){ee===void 0&&(ee=!1),W();for(var ye=[Dt(ee)];ge(",");)Ee(),W(),ye.push(Dt(ee));return{type:"Selector",rules:ye}}function Te(){ht("["),W();var ee;if(ge("|")){de(D,"Namespaces are not enabled."),Ee();var ye=ut();de(ye,"Expected attribute name."),ee={type:"Attribute",name:ye,namespace:{type:"NoNamespace"}}}else if(ge("*")){de(D,"Namespaces are not enabled."),de(S,"Wildcard namespace is not enabled."),Ee(),ht("|");var Fe=ut();de(Fe,"Expected attribute name."),ee={type:"Attribute",name:Fe,namespace:{type:"WildcardNamespace"}}}else{var ke=ut();if(de(ke,"Expected attribute name."),ee={type:"Attribute",name:ke},ge("|")){var z=je;if(Ee(),_i(be)){de(D,"Namespaces are not enabled.");var Le=ut();de(Le,"Expected attribute name."),ee={type:"Attribute",name:Le,namespace:{type:"NamespaceName",name:ke}}}else ze(z)}}if(de(ee.name,"Expected attribute name."),W(),yt()&&!i)return ee;if(ge("]"))Ee();else{if(ee.operator=$t(U),de(ee.operator,"Expected a valid attribute selector operator."),W(),ct(),IN[be])ee.value={type:"String",value:tn(be)};else if(A&&ge("$")){Ee();var he=ut();de(he,"Expected substitute name."),ee.value={type:"Substitution",name:he}}else{var Pe=ut();de(Pe,"Expected attribute value."),ee.value={type:"String",value:Pe}}if(W(),yt()&&!i)return ee;if(!ge("]")){var Ve=ut();if(de(Ve,"Expected end of attribute selector."),ee.caseSensitivityModifier=Ve,de(X,"Attribute case sensitivity modifiers are not enabled."),de(K||j[ee.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),W(),yt()&&!i)return ee}ht("]")}return ee}function _e(){for(var ee="";Tl[be];)ee+=Me();return de(ee!=="","Formula parse error."),parseInt(ee)}var $e=function(){return ge("-")||ge("+")||Tl[be]};function Ke(){if(ge("e")||ge("o")){var ee=ut();if(ee==="even")return W(),[2,0];if(ee==="odd")return W(),[2,1]}var ye=null,Fe=1;if(ge("-")&&(Ee(),Fe=-1),$e()&&(ge("+")&&Ee(),ye=_e(),!ge("\\")&&!ge("n")))return[0,ye*Fe];ye===null&&(ye=1),ye*=Fe;var ke;if(ge("\\")?(Ee(),vi(be)?ke=zt():ke=Me()):ke=Me(),de(ke==="n",'Formula parse error: expected "n".'),W(),ge("+")||ge("-")){var z=ge("+")?1:-1;return Ee(),W(),[ye,z*_e()]}else return[ye,0]}function At(ee,ye,Fe){var ke;if(ge("(")){if(Ee(),W(),A&&ge("$")){Ee();var z=ut();de(z,"Expected substitute name."),ke={type:"Substitution",name:z}}else if(Fe.type==="String")ke={type:"String",value:Ae()},de(ke.value,"Expected ".concat(ye," argument value."));else if(Fe.type==="Selector")ke=ne(!0);else if(Fe.type==="Formula"){var Le=Ke(),he=Le[0],Pe=Le[1];if(ke={type:"Formula",a:he,b:Pe},Fe.ofSelector&&(W(),ge("o")||ge("\\"))){var Ve=ut();de(Ve==="of","Formula of selector parse error."),W(),ke={type:"FormulaOfSelector",a:he,b:Pe,selector:Dt()}}}else return tt("Invalid ".concat(ye," signature."));if(W(),yt()&&!i)return ke;ht(")")}else de(Fe.optional,"Argument is required for ".concat(ye,' "').concat(ee,'".'));return ke}function Tt(){if(ge("*"))return de(T,"Wildcard tag name is not enabled."),Ee(),{type:"WildcardTag"};if(_i(be)){de(E,"Tag names are not enabled.");var ee=ut();return de(ee,"Expected tag name."),{type:"TagName",name:ee}}else return tt("Expected tag name.")}function bt(){if(ge("*")){var ee=je;if(Ee(),!ge("|")||(Ee(),!pt()))return ze(ee),Tt();de(D,"Namespaces are not enabled."),de(S,"Wildcard namespace is not enabled.");var ye=Tt();return ye.namespace={type:"WildcardNamespace"},ye}else if(ge("|")){de(D,"Namespaces are not enabled."),Ee();var ye=Tt();return ye.namespace={type:"NoNamespace"},ye}else if(_i(be)){var Fe=ut();if(de(Fe,"Expected tag name."),!ge("|"))return de(E,"Tag names are not enabled."),{type:"TagName",name:Fe};var ee=je;if(Ee(),!pt())return ze(ee),{type:"TagName",name:Fe};de(D,"Namespaces are not enabled.");var ye=Tt();return ye.namespace={type:"NamespaceName",name:Fe},ye}else return tt("Expected tag name.")}function Dt(ee){var ye,Fe;ee===void 0&&(ee=!1);var ke={type:"Rule",items:[]};if(ee){var z=$t(k);z&&(ke.combinator=z,W())}for(;je<Ne;)if(pt())de(ke.items.length===0,"Unexpected tag/namespace start."),ke.items.push(bt());else if(ge("|")){var Le=je;if(Ee(),pt())de(ke.items.length===0,"Unexpected tag/namespace start."),ze(Le),ke.items.push(bt());else{ze(Le);break}}else if(ge(".")){de(x,"Class names are not enabled."),Ee();var he=ut();de(he,"Expected class name."),ke.items.push({type:"ClassName",name:he})}else if(ge("#")){de(v,"IDs are not enabled."),Ee();var Pe=ut();de(Pe,"Expected ID name."),ke.items.push({type:"Id",name:Pe})}else if(ge("&"))de(I,"Nesting selector is not enabled."),Ee(),ke.items.push({type:"NestingSelector"});else if(ge("["))de(w,"Attributes are not enabled."),ke.items.push(Te());else if(ge(":")){var Ve=!1,Ct=!1;Ee(),ge(":")&&(de(N,"Pseudo elements are not enabled."),de(ie,"Pseudo elements double colon notation is not enabled."),Ve=!0,Ee());var Xe=ut();if(de(Ve||Xe,"Expected pseudo-class name."),de(!Ve||Xe,"Expected pseudo-element name."),de(Xe,"Expected pseudo-class name."),!(!Ve||ve||Object.prototype.hasOwnProperty.call(R,Xe))){var qe=Qb.pseudoElements[Xe],_t='Unknown pseudo-element "'.concat(Xe,'"');qe&&qe.length>0&&(_t+=". It is defined in: ".concat(qe.join(", "))),tt(_t+".")}if(Ct=N&&(Ve||!Ve&&H&&Object.prototype.hasOwnProperty.call(R,Xe)),Ct){var nn=(ye=R[Xe])!==null&&ye!==void 0?ye:ve&&Yb,It={type:"PseudoElement",name:Xe},Wt=At(Xe,"pseudo-element",nn);Wt&&(de(Wt.type!=="Formula"&&Wt.type!=="FormulaOfSelector","Pseudo-elements cannot have formula argument."),It.argument=Wt),ke.items.push(It)}else{de(oe,"Pseudo-classes are not enabled.");var nn=(Fe=Q[Xe])!==null&&Fe!==void 0?Fe:ae&&Yb;if(!nn){var qe=Qb.pseudoClasses[Xe],_t='Unknown pseudo-class: "'.concat(Xe,'"');qe&&qe.length>0&&(_t+=". It is defined in: ".concat(qe.join(", "))),tt(_t+".")}var Wt=At(Xe,"pseudo-class",nn),F={type:"PseudoClass",name:Xe};Wt&&(F.argument=Wt),ke.items.push(F)}}else break;if(ke.items.length===0)return yt()?tt("Expected rule but end of input reached."):tt('Expected rule but "'.concat(be,'" found.'));if(W(),!yt()&&!ge(",")&&!ge(")")){var z=$t(k);W(),ke.nestedRule=Dt(),ke.nestedRule.combinator=z}return ke}return function(ee){if(typeof ee!="string")throw new Error("".concat(Sl,"Expected string input."));return Oe=ee,Ne=Oe.length,je=0,be=Oe.charAt(0),ne()}}const DN=RN({syntax:"selectors-4"});function ON(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return DN(e)}const ZT="֑-߿יִ-﷽ﹰ-ﻼ",KT="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",LN=new RegExp("^[^"+KT+"]*["+ZT+"]"),FN=new RegExp("^[^"+ZT+"]*["+KT+"]");function MN(e){const t=String(e||"");return LN.test(t)?"rtl":FN.test(t)?"ltr":"neutral"}function PN(e,t){const n=e.schema,r=e.language,a=e.direction,i=e.editableOrEditingHost;let s;if(t.type==="element"){const l=t.properties.xmlLang||t.properties.lang,c=t.properties.type||"text",d=eE(t);l!=null&&(e.language=String(l)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=sr),d==="rtl"?s=d:d==="ltr"||d!=="auto"&&t.tagName==="html"||d!=="auto"&&t.tagName==="input"&&c==="tel"?s="ltr":(d==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?s=xl(Oa(t)):t.tagName==="input"&&(c==="email"||c==="search"||c==="tel"||c==="text")?s=t.properties.value?xl(String(t.properties.value)):"ltr":Fn(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(l){if(l.type==="text")return s=xl(l.value),s?Lo:void 0;if(l!==t&&l.type==="element"&&(l.tagName==="bdi"||l.tagName==="script"||l.tagName==="style"||l.tagName==="textare"||eE(l)))return zi}}function xl(e){const t=MN(e);return t==="neutral"?void 0:t}function eE(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 BN(e,t,n){const r=ii(n,e.name),a=t.properties[r.property];let i=UN(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||Ac(i).includes(s)}return!1}function UN(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?Fu:Mu)(e)}else return String(e)}const jN=[];function $N(e,t){return(t.properties.className||jN).includes(e.name)}function zN(e,t){return t.properties.id===e.name}function HN(e,t){return e.name===t.tagName}function GN(e,t){return function(n,r){let a=tE(n,"tag");const i=tE(r??"*","range"),s=[];let o=-1;for(;++o<i.length;){const u=i[o].toLowerCase();if(!t&&u==="*")continue;let l=-1;const c=[];for(;++l<a.length;)if(e(a[l].toLowerCase(),u)){if(!t)return a[l];s.push(a[l])}else c.push(a[l]);a=c}return t?s:void 0}}const WN=GN(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 tE(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 VN={}.hasOwnProperty;function ia(e,t){const n=e.type==="element"&&VN.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const qN=/[ \t\n\f\r]/g;function Ms(e){return typeof e=="object"?e.type==="text"?nE(e.value):!1:nE(e)}function nE(e){return e.replace(qN,"")===""}const YN=new Set([9,10,12,13,32]),rE=48,ZN=57;function KN(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 l=0;for(;t<e.length&&e.charCodeAt(t)>=rE&&e.charCodeAt(t)<=ZN;)l=l*10+(e.charCodeAt(t)-rE),t++;return t===u?null:l}function o(){for(;t<e.length&&YN.has(e.charCodeAt(t));)t++}}var Al,aE;function XN(){return aE||(aE=1,Al={trueFunc:function(){return!0},falseFunc:function(){return!1}}),Al}var QN=XN();const iE=du(QN);function JN(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return iE.falseFunc;if(t===-1)return i=>i<=n;if(t===0)return i=>i===n;if(t===1)return n<0?iE.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 sE(e){return JN(KN(e))}const oE={}.hasOwnProperty;function ju(e,t){const n=t||{};function r(a,...i){let s=r.invalid;const o=r.handlers;if(a&&oE.call(a,e)){const u=String(a[e]);s=oE.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 eC=sE.default||sE,tC=ju("name",{handlers:{"any-link":nC,blank:rC,checked:aC,dir:iC,disabled:XT,empty:sC,enabled:oC,"first-child":uC,"first-of-type":lC,has:cC,is:QT,lang:pC,"last-child":fC,"last-of-type":mC,not:hC,"nth-child":gC,"nth-last-child":bC,"nth-last-of-type":EC,"nth-of-type":yC,"only-child":TC,"only-of-type":SC,optional:xC,"read-only":AC,"read-write":JT,required:eS,root:_C,scope:vC},invalid:dC,unknown:wC});function nC(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&ia(t,"href")}function gr(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function rC(e,t){return!tS(t,n);function n(r){return r.type==="element"||r.type==="text"&&!Ms(r)}}function aC(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&ia(t,"checked")):t.tagName==="option"?ia(t,"selected"):!1}function iC(e,t,n,r,a){return e.argument,e.argument.type,a.direction===e.argument.value}function XT(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")&&ia(t,"disabled")}function sC(e,t){return!tS(t,n);function n(r){return r.type==="element"||r.type==="text"}}function oC(e,t){return!XT(e,t)}function uC(e,t,n,r,a){return gr(a,e),a.elementIndex===0}function lC(e,t,n,r,a){return gr(a,e),a.typeIndex===0}function $u(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=eC(n.a+"n+"+n.b),e._cachedFn=t}return t}function cC(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 tg(i,{type:"root",children:t.children}),i.results.length>0}function dC(){}function QT(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 tg(i,t),i.results[0]===t}function pC(e,t,n,r,a){return e.argument,e.argument.type,a.language!==""&&a.language!==void 0&&WN(a.language,xc(e.argument.value)).length>0}function fC(e,t,n,r,a){return gr(a,e),!!(a.elementCount&&a.elementIndex===a.elementCount-1)}function mC(e,t,n,r,a){return gr(a,e),typeof a.typeIndex=="number"&&typeof a.typeCount=="number"&&a.typeIndex===a.typeCount-1}function hC(e,t,n,r,a){return!QT(e,t,n,r,a)}function gC(e,t,n,r,a){const i=$u(e);return gr(a,e),typeof a.elementIndex=="number"&&i(a.elementIndex)}function bC(e,t,n,r,a){const i=$u(e);return gr(a,e),!!(typeof a.elementCount=="number"&&typeof a.elementIndex=="number"&&i(a.elementCount-a.elementIndex-1))}function EC(e,t,n,r,a){const i=$u(e);return gr(a,e),typeof a.typeCount=="number"&&typeof a.typeIndex=="number"&&i(a.typeCount-1-a.typeIndex)}function yC(e,t,n,r,a){const i=$u(e);return gr(a,e),typeof a.typeIndex=="number"&&i(a.typeIndex)}function TC(e,t,n,r,a){return gr(a,e),a.elementCount===1}function SC(e,t,n,r,a){return gr(a,e),a.typeCount===1}function xC(e,t){return!eS(e,t)}function AC(e,t,n,r,a){return!JT(e,t,n,r,a)}function JT(e,t,n,r,a){return t.tagName==="input"||t.tagName==="textarea"?!ia(t,"readOnly")&&!ia(t,"disabled"):!!a.editableOrEditingHost}function eS(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&ia(t,"required")}function _C(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 vC(e,t,n,r,a){return a.scopeElements.includes(t)}function tS(e,t){const n=e.children;let r=-1;for(;++r<n.length;)if(t(n[r]))return!0;return!1}function wC(e){const t=e;throw new Error("Unknown pseudo-selector `"+t.name+"`")}function NC(e,t,n,r,a){for(const i of e.items)if(i.type==="Attribute"){if(!BN(i,t,a.schema))return!1}else if(i.type==="Id"){if(!zN(i,t))return!1}else if(i.type==="ClassName"){if(!$N(i,t))return!1}else if(i.type==="PseudoClass"){if(!tC(i,t,n,r,a))return!1}else{if(i.type==="PseudoElement")throw new Error("Invalid selector: `::"+i.name+"`");if(i.type==="TagName"&&!HN(i,t))return!1}return!0}const CC=[];function tg(e,t){t&&nS(e,[],t,void 0,void 0,t)}function _l(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function IC(e,t,n,r){const a=_o(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;)uE(o,n.children[s]);for(s=-1;++s<n.children.length;){const l=n.children[s],c=l.type==="element"?l.tagName.toUpperCase():void 0;if(e.elementIndex=u.count,e.typeIndex=c&&u.types.get(c)||0,e.elementCount=o.count,e.typeCount=c?o.types.get(c):0,"children"in l){const d=_o(a,i),f=nS(e,d,n.children[s],s,n,r);i=_o(f.generalSibling,f.adjacentSibling)}if(e.one&&e.found)break;uE(u,n.children[s])}}function kC(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(NC(o,n,r,a,e)){const u=o.nestedRule;if(u){const l=u.combinator==="+"?"adjacentSibling":u.combinator==="~"?"generalSibling":u.combinator===">"?"directChild":"descendant";_l(i,l,u)}else e.found=!0,e.results.includes(n)||e.results.push(n)}o.combinator===void 0?_l(i,"descendant",o):o.combinator==="~"&&_l(i,"generalSibling",o)}return i}function _o(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:CC}function uE(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 nS(e,t,n,r,a,i){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const o=PN(e,n);if(n.type==="element"){let u=e.rootQuery.rules;a&&a!==i&&(u=e.rootQuery.rules.filter(l=>l.combinator===void 0||l.combinator===">"&&a===i)),s=kC(e,_o(t,u),n,r,a)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&IC(e,s,n,i),o(),s}function RC(e,t,n){const r=DC(e,t);return tg(r,t||void 0),r.results}function DC(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:ON(e),schema:Ea,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const rS=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=rS(n.children))}),t),OC=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const a=RC(t,r);a&&a.length>0&&Fn(r,a,(i,s,o)=>{n(i,s,o)});return}Fn(r,(a,i,s)=>{n(a,i,s)})}}};function LC(e,t,n,r){let a,i,s;i=t,s=n,a=r,md(e,i,o,a);function o(u,l){const c=l[l.length-1],d=c?c.children.indexOf(u):void 0;return s(u,d,c)}}const FC=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),MC=(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]}},aS=(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=aS(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}}},lE=({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=FC(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},cE=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},PC=(e={})=>{const{properties:t="data",codeBlockParames:n=!0,commentStart:r="<!--",commentEnd:a="-->"}=e;return i=>{LC(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 c=s.children[0];if(c&&c.tagName==="code"&&typeof o=="number"){const d=MC(u.children,o);if(d){const f=lE(d,r,a);Object.keys(f).length>0&&(s.properties={...s.properties,"data-type":"rehyp"},c.properties=cE(c.properties,f,t))}}}let l=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)||l.type=="root")&&u&&Array.isArray(u.children)&&typeof o=="number"){const c=aS(u.children,o,"",r,a);if(c){const d=lE(c,r,a);Object.keys(d).length>0&&(s.properties=cE(s.properties,d,t))}}})}},iS=-1,zu=0,Gi=1,Po=2,ng=3,rg=4,ag=5,ig=6,sS=7,oS=8,BC=typeof self=="object"?self:globalThis,dE=(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 BC[e](t)},UC=(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 zu:case iS:return n(s,a);case Gi:{const o=n([],a);for(const u of s)o.push(r(u));return o}case Po:{const o=n({},a);for(const[u,l]of s)o[r(u)]=r(l);return o}case ng:return n(new Date(s),a);case rg:{const{source:o,flags:u}=s;return n(new RegExp(o,u),a)}case ag:{const o=n(new Map,a);for(const[u,l]of s)o.set(r(u),r(l));return o}case ig:{const o=n(new Set,a);for(const u of s)o.add(r(u));return o}case sS:{const{name:o,message:u}=s;return n(dE(o,u),a)}case oS: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(dE(i,s),a)};return r},pE=e=>UC(new Map,e)(0),va="",{toString:jC}={},{keys:$C}=Object,wi=e=>{const t=typeof e;if(t!=="object"||!e)return[zu,t];const n=jC.call(e).slice(8,-1);switch(n){case"Array":return[Gi,va];case"Object":return[Po,va];case"Date":return[ng,va];case"RegExp":return[rg,va];case"Map":return[ag,va];case"Set":return[ig,va];case"DataView":return[Gi,n]}return n.includes("Array")?[Gi,n]:n.includes("Error")?[sS,n]:[Po,n]},to=([e,t])=>e===zu&&(t==="function"||t==="symbol"),zC=(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]=wi(s);switch(o){case zu:{let c=s;switch(u){case"bigint":o=oS,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return a([iS],s)}return a([o,c],s)}case Gi:{if(u){let f=s;return u==="DataView"?f=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(f=new Uint8Array(s)),a([u,[...f]],s)}const c=[],d=a([o,c],s);for(const f of s)c.push(i(f));return d}case Po:{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 c=[],d=a([o,c],s);for(const f of $C(s))(e||!to(wi(s[f])))&&c.push([i(f),i(s[f])]);return d}case ng:return a([o,s.toISOString()],s);case rg:{const{source:c,flags:d}=s;return a([o,{source:c,flags:d}],s)}case ag:{const c=[],d=a([o,c],s);for(const[f,m]of s)(e||!(to(wi(f))||to(wi(m))))&&c.push([i(f),i(m)]);return d}case ig:{const c=[],d=a([o,c],s);for(const f of s)(e||!to(wi(f)))&&c.push(i(f));return d}}const{message:l}=s;return a([o,{name:u,message:l}],s)};return i},fE=(e,{json:t,lossy:n}={})=>{const r=[];return zC(!(t||n),!!t,new Map,r)(e),r},sa=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?pE(fE(e,t)):structuredClone(e):(e,t)=>pE(fE(e,t));function HC(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=mE(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=mE(t,o),l=u===-1?t.length+1:u+1;if(o===l)break;n.push(l)}const s=(i.line>1?n[i.line-2]:0)+i.column-1;if(s<n[i.line-1])return s}}}function mE(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 ta={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/"},uS={}.hasOwnProperty,GC=Object.prototype;function lS(e,t){const n=t||{};return sg({file:n.file||void 0,location:!1,schema:n.space==="svg"?sr:Ea,verbose:n.verbose||!1},e)}function sg(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},vo(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:cS(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),s=HC(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"},vo(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},vo(e,r,n),n}default:return n=WC(e,t),n}}function cS(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=sg(e,t[n]);r.push(a)}return r}function WC(e,t){const n=e.schema;e.schema=t.namespaceURI===ta.svg?sr:Ea;let r=-1;const a={};for(;++r<t.attrs.length;){const o=t.attrs[r],u=(o.prefix?o.prefix+":":"")+o.name;uS.call(GC,u)||(a[u]=o.value)}const s=(e.schema.space==="svg"?Jw:BT)(t.tagName,a,cS(e,t.childNodes));if(vo(e,t,s),s.tagName==="template"){const o=t,u=o.sourceCodeLocation,l=u&&u.startTag&&La(u.startTag),c=u&&u.endTag&&La(u.endTag),d=sg(e,o.content);l&&c&&e.file&&(d.position={start:l.end,end:c.start}),s.content=d}return e.schema=n,s}function vo(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=VC(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function VC(e,t,n){const r=La(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)uS.call(n.attrs,s)&&(i[ii(e.schema,s).property]=La(n.attrs[s]));n.startTag;const o=La(n.startTag),u=n.endTag?La(n.endTag):void 0,l={opening:o};u&&(l.closing=u),l.properties=i,t.data={position:l}}}return r}function La(e){const t=hE({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=hE({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function hE(e){return e.line&&e.column?e:void 0}const qC={},YC={}.hasOwnProperty,dS=ju("type",{handlers:{root:KC,element:tI,text:JC,comment:eI,doctype:QC}});function ZC(e,t){const r=(t||qC).space;return dS(e,r==="svg"?sr:Ea)}function KC(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=og(e.children,n,t),oi(e,n),n}function XC(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=og(e.children,n,t),oi(e,n),n}function QC(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return oi(e,t),t}function JC(e){const t={nodeName:"#text",value:e.value,parentNode:null};return oi(e,t),t}function eI(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return oi(e,t),t}function tI(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=sr);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&YC.call(e.properties,i)){const u=nI(r,i,e.properties[i]);u&&a.push(u)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:ta[s],childNodes:[],parentNode:null};return o.childNodes=og(e.children,o,r),oi(e,o),e.tagName==="template"&&e.content&&(o.content=XC(e.content,r)),o}function nI(e,t,n){const r=ii(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?Fu(n):Mu(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=ta[r.space]}return a}function og(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const i=dS(e[r],n);i.parentNode=t,a.push(i)}return a}function oi(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 pS=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],rI=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]),Lt="�";var C;(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"})(C||(C={}));const On={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function fS(e){return e>=55296&&e<=57343}function aI(e){return e>=56320&&e<=57343}function iI(e,t){return(e-55296)*1024+9216+t}function mS(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function hS(e){return e>=64976&&e<=65007||rI.has(e)}var Z;(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"})(Z||(Z={}));const sI=65536;class oI{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=sI,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(aI(n))return this.pos++,this._addGap(),iI(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,C.EOF;return this._err(Z.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,C.EOF;const r=this.html.charCodeAt(n);return r===C.CARRIAGE_RETURN?C.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,C.EOF;let t=this.html.charCodeAt(this.pos);return t===C.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,C.LINE_FEED):t===C.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,fS(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===C.LINE_FEED||t===C.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){mS(t)?this._err(Z.controlCharacterInInputStream):hS(t)&&this._err(Z.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var rt;(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"})(rt||(rt={}));function gS(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 uI=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),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 cI(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=lI.get(e))!==null&&t!==void 0?t:e}var ln;(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"})(ln||(ln={}));const dI=32;var Hr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Hr||(Hr={}));function Rc(e){return e>=ln.ZERO&&e<=ln.NINE}function pI(e){return e>=ln.UPPER_A&&e<=ln.UPPER_F||e>=ln.LOWER_A&&e<=ln.LOWER_F}function fI(e){return e>=ln.UPPER_A&&e<=ln.UPPER_Z||e>=ln.LOWER_A&&e<=ln.LOWER_Z||Rc(e)}function mI(e){return e===ln.EQUALS||fI(e)}var sn;(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"})(sn||(sn={}));var xr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(xr||(xr={}));class hI{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=sn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=xr.Strict}startEntity(t){this.decodeMode=t,this.state=sn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case sn.EntityStart:return t.charCodeAt(n)===ln.NUM?(this.state=sn.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=sn.NamedEntity,this.stateNamedEntity(t,n));case sn.NumericStart:return this.stateNumericStart(t,n);case sn.NumericDecimal:return this.stateNumericDecimal(t,n);case sn.NumericHex:return this.stateNumericHex(t,n);case sn.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|dI)===ln.LOWER_X?(this.state=sn.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=sn.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(Rc(a)||pI(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(Rc(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===ln.SEMI)this.consumed+=1;else if(this.decodeMode===xr.Strict)return 0;return this.emitCodePoint(cI(this.result),this.consumed),this.errors&&(t!==ln.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&Hr.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=gI(r,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===xr.Attribute&&(i===0||mI(s))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&Hr.VALUE_LENGTH)>>14,i!==0){if(s===ln.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==xr.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]&Hr.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]&~Hr.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case sn.NamedEntity:return this.result!==0&&(this.decodeMode!==xr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case sn.NumericDecimal:return this.emitNumericEntity(0,2);case sn.NumericHex:return this.emitNumericEntity(0,3);case sn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case sn.EntityStart:return 0}}}function gI(e,t,n,r){const a=(t&Hr.BRANCH_LENGTH)>>7,i=t&Hr.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,l=e[u];if(l<r)s=u+1;else if(l>r)o=u-1;else return e[u+a]}return-1}var re;(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/"})(re||(re={}));var ra;(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"})(ra||(ra={}));var Zn;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Zn||(Zn={}));var $;(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"})($||($={}));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 bI=new Map([[$.A,h.A],[$.ADDRESS,h.ADDRESS],[$.ANNOTATION_XML,h.ANNOTATION_XML],[$.APPLET,h.APPLET],[$.AREA,h.AREA],[$.ARTICLE,h.ARTICLE],[$.ASIDE,h.ASIDE],[$.B,h.B],[$.BASE,h.BASE],[$.BASEFONT,h.BASEFONT],[$.BGSOUND,h.BGSOUND],[$.BIG,h.BIG],[$.BLOCKQUOTE,h.BLOCKQUOTE],[$.BODY,h.BODY],[$.BR,h.BR],[$.BUTTON,h.BUTTON],[$.CAPTION,h.CAPTION],[$.CENTER,h.CENTER],[$.CODE,h.CODE],[$.COL,h.COL],[$.COLGROUP,h.COLGROUP],[$.DD,h.DD],[$.DESC,h.DESC],[$.DETAILS,h.DETAILS],[$.DIALOG,h.DIALOG],[$.DIR,h.DIR],[$.DIV,h.DIV],[$.DL,h.DL],[$.DT,h.DT],[$.EM,h.EM],[$.EMBED,h.EMBED],[$.FIELDSET,h.FIELDSET],[$.FIGCAPTION,h.FIGCAPTION],[$.FIGURE,h.FIGURE],[$.FONT,h.FONT],[$.FOOTER,h.FOOTER],[$.FOREIGN_OBJECT,h.FOREIGN_OBJECT],[$.FORM,h.FORM],[$.FRAME,h.FRAME],[$.FRAMESET,h.FRAMESET],[$.H1,h.H1],[$.H2,h.H2],[$.H3,h.H3],[$.H4,h.H4],[$.H5,h.H5],[$.H6,h.H6],[$.HEAD,h.HEAD],[$.HEADER,h.HEADER],[$.HGROUP,h.HGROUP],[$.HR,h.HR],[$.HTML,h.HTML],[$.I,h.I],[$.IMG,h.IMG],[$.IMAGE,h.IMAGE],[$.INPUT,h.INPUT],[$.IFRAME,h.IFRAME],[$.KEYGEN,h.KEYGEN],[$.LABEL,h.LABEL],[$.LI,h.LI],[$.LINK,h.LINK],[$.LISTING,h.LISTING],[$.MAIN,h.MAIN],[$.MALIGNMARK,h.MALIGNMARK],[$.MARQUEE,h.MARQUEE],[$.MATH,h.MATH],[$.MENU,h.MENU],[$.META,h.META],[$.MGLYPH,h.MGLYPH],[$.MI,h.MI],[$.MO,h.MO],[$.MN,h.MN],[$.MS,h.MS],[$.MTEXT,h.MTEXT],[$.NAV,h.NAV],[$.NOBR,h.NOBR],[$.NOFRAMES,h.NOFRAMES],[$.NOEMBED,h.NOEMBED],[$.NOSCRIPT,h.NOSCRIPT],[$.OBJECT,h.OBJECT],[$.OL,h.OL],[$.OPTGROUP,h.OPTGROUP],[$.OPTION,h.OPTION],[$.P,h.P],[$.PARAM,h.PARAM],[$.PLAINTEXT,h.PLAINTEXT],[$.PRE,h.PRE],[$.RB,h.RB],[$.RP,h.RP],[$.RT,h.RT],[$.RTC,h.RTC],[$.RUBY,h.RUBY],[$.S,h.S],[$.SCRIPT,h.SCRIPT],[$.SEARCH,h.SEARCH],[$.SECTION,h.SECTION],[$.SELECT,h.SELECT],[$.SOURCE,h.SOURCE],[$.SMALL,h.SMALL],[$.SPAN,h.SPAN],[$.STRIKE,h.STRIKE],[$.STRONG,h.STRONG],[$.STYLE,h.STYLE],[$.SUB,h.SUB],[$.SUMMARY,h.SUMMARY],[$.SUP,h.SUP],[$.TABLE,h.TABLE],[$.TBODY,h.TBODY],[$.TEMPLATE,h.TEMPLATE],[$.TEXTAREA,h.TEXTAREA],[$.TFOOT,h.TFOOT],[$.TD,h.TD],[$.TH,h.TH],[$.THEAD,h.THEAD],[$.TITLE,h.TITLE],[$.TR,h.TR],[$.TRACK,h.TRACK],[$.TT,h.TT],[$.U,h.U],[$.UL,h.UL],[$.SVG,h.SVG],[$.VAR,h.VAR],[$.WBR,h.WBR],[$.XMP,h.XMP]]);function ui(e){var t;return(t=bI.get(e))!==null&&t!==void 0?t:h.UNKNOWN}const se=h,EI={[re.HTML]:new Set([se.ADDRESS,se.APPLET,se.AREA,se.ARTICLE,se.ASIDE,se.BASE,se.BASEFONT,se.BGSOUND,se.BLOCKQUOTE,se.BODY,se.BR,se.BUTTON,se.CAPTION,se.CENTER,se.COL,se.COLGROUP,se.DD,se.DETAILS,se.DIR,se.DIV,se.DL,se.DT,se.EMBED,se.FIELDSET,se.FIGCAPTION,se.FIGURE,se.FOOTER,se.FORM,se.FRAME,se.FRAMESET,se.H1,se.H2,se.H3,se.H4,se.H5,se.H6,se.HEAD,se.HEADER,se.HGROUP,se.HR,se.HTML,se.IFRAME,se.IMG,se.INPUT,se.LI,se.LINK,se.LISTING,se.MAIN,se.MARQUEE,se.MENU,se.META,se.NAV,se.NOEMBED,se.NOFRAMES,se.NOSCRIPT,se.OBJECT,se.OL,se.P,se.PARAM,se.PLAINTEXT,se.PRE,se.SCRIPT,se.SECTION,se.SELECT,se.SOURCE,se.STYLE,se.SUMMARY,se.TABLE,se.TBODY,se.TD,se.TEMPLATE,se.TEXTAREA,se.TFOOT,se.TH,se.THEAD,se.TITLE,se.TR,se.TRACK,se.UL,se.WBR,se.XMP]),[re.MATHML]:new Set([se.MI,se.MO,se.MN,se.MS,se.MTEXT,se.ANNOTATION_XML]),[re.SVG]:new Set([se.TITLE,se.FOREIGN_OBJECT,se.DESC]),[re.XLINK]:new Set,[re.XML]:new Set,[re.XMLNS]:new Set},Dc=new Set([se.H1,se.H2,se.H3,se.H4,se.H5,se.H6]);$.STYLE,$.SCRIPT,$.XMP,$.IFRAME,$.NOEMBED,$.NOFRAMES,$.PLAINTEXT;var O;(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"})(O||(O={}));const Gt={DATA:O.DATA,RCDATA:O.RCDATA,RAWTEXT:O.RAWTEXT,SCRIPT_DATA:O.SCRIPT_DATA,PLAINTEXT:O.PLAINTEXT,CDATA_SECTION:O.CDATA_SECTION};function yI(e){return e>=C.DIGIT_0&&e<=C.DIGIT_9}function Pi(e){return e>=C.LATIN_CAPITAL_A&&e<=C.LATIN_CAPITAL_Z}function TI(e){return e>=C.LATIN_SMALL_A&&e<=C.LATIN_SMALL_Z}function Mr(e){return TI(e)||Pi(e)}function gE(e){return Mr(e)||yI(e)}function no(e){return e+32}function bS(e){return e===C.SPACE||e===C.LINE_FEED||e===C.TABULATION||e===C.FORM_FEED}function bE(e){return bS(e)||e===C.SOLIDUS||e===C.GREATER_THAN_SIGN}function SI(e){return e===C.NULL?Z.nullCharacterReference:e>1114111?Z.characterReferenceOutsideUnicodeRange:fS(e)?Z.surrogateCharacterReference:hS(e)?Z.noncharacterCharacterReference:mS(e)||e===C.CARRIAGE_RETURN?Z.controlCharacterReference:null}class xI{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=O.DATA,this.returnState=O.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new oI(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new hI(uI,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Z.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(Z.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=SI(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:rt.START_TAG,tagName:"",tagID:h.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:rt.END_TAG,tagName:"",tagID:h.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:rt.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:rt.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(gS(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(Z.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=ui(t.tagName),t.type===rt.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(Z.endTagWithAttributes),t.selfClosing&&this._err(Z.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 rt.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case rt.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case rt.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:rt.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=bS(t)?rt.WHITESPACE_CHARACTER:t===C.NULL?rt.NULL_CHARACTER:rt.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(rt.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=O.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?xr.Attribute:xr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===O.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===O.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===O.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case O.DATA:{this._stateData(t);break}case O.RCDATA:{this._stateRcdata(t);break}case O.RAWTEXT:{this._stateRawtext(t);break}case O.SCRIPT_DATA:{this._stateScriptData(t);break}case O.PLAINTEXT:{this._statePlaintext(t);break}case O.TAG_OPEN:{this._stateTagOpen(t);break}case O.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case O.TAG_NAME:{this._stateTagName(t);break}case O.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case O.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case O.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case O.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case O.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case O.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case O.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case O.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case O.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case O.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case O.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case O.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case O.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case O.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case O.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case O.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case O.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case O.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case O.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case O.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case O.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case O.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case O.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case O.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case O.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case O.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case O.BOGUS_COMMENT:{this._stateBogusComment(t);break}case O.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case O.COMMENT_START:{this._stateCommentStart(t);break}case O.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case O.COMMENT:{this._stateComment(t);break}case O.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case O.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case O.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case O.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case O.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case O.COMMENT_END:{this._stateCommentEnd(t);break}case O.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case O.DOCTYPE:{this._stateDoctype(t);break}case O.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case O.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case O.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case O.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case O.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case O.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case O.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case O.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case O.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case O.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case O.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case O.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case O.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case O.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case O.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case O.CDATA_SECTION:{this._stateCdataSection(t);break}case O.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case O.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case O.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case O.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case C.LESS_THAN_SIGN:{this.state=O.TAG_OPEN;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.NULL:{this._err(Z.unexpectedNullCharacter),this._emitCodePoint(t);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case C.AMPERSAND:{this._startCharacterReference();break}case C.LESS_THAN_SIGN:{this.state=O.RCDATA_LESS_THAN_SIGN;break}case C.NULL:{this._err(Z.unexpectedNullCharacter),this._emitChars(Lt);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case C.LESS_THAN_SIGN:{this.state=O.RAWTEXT_LESS_THAN_SIGN;break}case C.NULL:{this._err(Z.unexpectedNullCharacter),this._emitChars(Lt);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case C.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_LESS_THAN_SIGN;break}case C.NULL:{this._err(Z.unexpectedNullCharacter),this._emitChars(Lt);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case C.NULL:{this._err(Z.unexpectedNullCharacter),this._emitChars(Lt);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Mr(t))this._createStartTagToken(),this.state=O.TAG_NAME,this._stateTagName(t);else switch(t){case C.EXCLAMATION_MARK:{this.state=O.MARKUP_DECLARATION_OPEN;break}case C.SOLIDUS:{this.state=O.END_TAG_OPEN;break}case C.QUESTION_MARK:{this._err(Z.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=O.BOGUS_COMMENT,this._stateBogusComment(t);break}case C.EOF:{this._err(Z.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Z.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=O.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Mr(t))this._createEndTagToken(),this.state=O.TAG_NAME,this._stateTagName(t);else switch(t){case C.GREATER_THAN_SIGN:{this._err(Z.missingEndTagName),this.state=O.DATA;break}case C.EOF:{this._err(Z.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Z.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=O.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=O.BEFORE_ATTRIBUTE_NAME;break}case C.SOLIDUS:{this.state=O.SELF_CLOSING_START_TAG;break}case C.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentTagToken();break}case C.NULL:{this._err(Z.unexpectedNullCharacter),n.tagName+=Lt;break}case C.EOF:{this._err(Z.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Pi(t)?no(t):t)}}_stateRcdataLessThanSign(t){t===C.SOLIDUS?this.state=O.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=O.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Mr(t)?(this.state=O.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=O.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 C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=O.BEFORE_ATTRIBUTE_NAME,!1;case C.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=O.SELF_CLOSING_START_TAG,!1;case C.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=O.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=O.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===C.SOLIDUS?this.state=O.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=O.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Mr(t)?(this.state=O.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=O.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=O.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case C.SOLIDUS:{this.state=O.SCRIPT_DATA_END_TAG_OPEN;break}case C.EXCLAMATION_MARK:{this.state=O.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=O.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Mr(t)?(this.state=O.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=O.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=O.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===C.HYPHEN_MINUS?(this.state=O.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=O.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===C.HYPHEN_MINUS?(this.state=O.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=O.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case C.HYPHEN_MINUS:{this.state=O.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case C.NULL:{this._err(Z.unexpectedNullCharacter),this._emitChars(Lt);break}case C.EOF:{this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case C.HYPHEN_MINUS:{this.state=O.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case C.NULL:{this._err(Z.unexpectedNullCharacter),this.state=O.SCRIPT_DATA_ESCAPED,this._emitChars(Lt);break}case C.EOF:{this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=O.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case C.HYPHEN_MINUS:{this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case C.GREATER_THAN_SIGN:{this.state=O.SCRIPT_DATA,this._emitChars(">");break}case C.NULL:{this._err(Z.unexpectedNullCharacter),this.state=O.SCRIPT_DATA_ESCAPED,this._emitChars(Lt);break}case C.EOF:{this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=O.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===C.SOLIDUS?this.state=O.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Mr(t)?(this._emitChars("<"),this.state=O.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=O.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Mr(t)?(this.state=O.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=O.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=O.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(On.SCRIPT,!1)&&bE(this.preprocessor.peek(On.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<On.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=O.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case C.HYPHEN_MINUS:{this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case C.NULL:{this._err(Z.unexpectedNullCharacter),this._emitChars(Lt);break}case C.EOF:{this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case C.HYPHEN_MINUS:{this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case C.NULL:{this._err(Z.unexpectedNullCharacter),this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Lt);break}case C.EOF:{this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case C.HYPHEN_MINUS:{this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case C.GREATER_THAN_SIGN:{this.state=O.SCRIPT_DATA,this._emitChars(">");break}case C.NULL:{this._err(Z.unexpectedNullCharacter),this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Lt);break}case C.EOF:{this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===C.SOLIDUS?(this.state=O.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(On.SCRIPT,!1)&&bE(this.preprocessor.peek(On.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<On.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=O.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.SOLIDUS:case C.GREATER_THAN_SIGN:case C.EOF:{this.state=O.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case C.EQUALS_SIGN:{this._err(Z.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=O.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=O.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:case C.SOLIDUS:case C.GREATER_THAN_SIGN:case C.EOF:{this._leaveAttrName(),this.state=O.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case C.EQUALS_SIGN:{this._leaveAttrName(),this.state=O.BEFORE_ATTRIBUTE_VALUE;break}case C.QUOTATION_MARK:case C.APOSTROPHE:case C.LESS_THAN_SIGN:{this._err(Z.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case C.NULL:{this._err(Z.unexpectedNullCharacter),this.currentAttr.name+=Lt;break}default:this.currentAttr.name+=String.fromCodePoint(Pi(t)?no(t):t)}}_stateAfterAttributeName(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.SOLIDUS:{this.state=O.SELF_CLOSING_START_TAG;break}case C.EQUALS_SIGN:{this.state=O.BEFORE_ATTRIBUTE_VALUE;break}case C.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentTagToken();break}case C.EOF:{this._err(Z.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=O.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.QUOTATION_MARK:{this.state=O.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this.state=O.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(Z.missingAttributeValue),this.state=O.DATA,this.emitCurrentTagToken();break}default:this.state=O.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case C.QUOTATION_MARK:{this.state=O.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.NULL:{this._err(Z.unexpectedNullCharacter),this.currentAttr.value+=Lt;break}case C.EOF:{this._err(Z.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case C.APOSTROPHE:{this.state=O.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.NULL:{this._err(Z.unexpectedNullCharacter),this.currentAttr.value+=Lt;break}case C.EOF:{this._err(Z.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this._leaveAttrValue(),this.state=O.BEFORE_ATTRIBUTE_NAME;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=O.DATA,this.emitCurrentTagToken();break}case C.NULL:{this._err(Z.unexpectedNullCharacter),this.currentAttr.value+=Lt;break}case C.QUOTATION_MARK:case C.APOSTROPHE:case C.LESS_THAN_SIGN:case C.EQUALS_SIGN:case C.GRAVE_ACCENT:{this._err(Z.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case C.EOF:{this._err(Z.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this._leaveAttrValue(),this.state=O.BEFORE_ATTRIBUTE_NAME;break}case C.SOLIDUS:{this._leaveAttrValue(),this.state=O.SELF_CLOSING_START_TAG;break}case C.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=O.DATA,this.emitCurrentTagToken();break}case C.EOF:{this._err(Z.eofInTag),this._emitEOFToken();break}default:this._err(Z.missingWhitespaceBetweenAttributes),this.state=O.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case C.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=O.DATA,this.emitCurrentTagToken();break}case C.EOF:{this._err(Z.eofInTag),this._emitEOFToken();break}default:this._err(Z.unexpectedSolidusInTag),this.state=O.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case C.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentComment(n);break}case C.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case C.NULL:{this._err(Z.unexpectedNullCharacter),n.data+=Lt;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(On.DASH_DASH,!0)?(this._createCommentToken(On.DASH_DASH.length+1),this.state=O.COMMENT_START):this._consumeSequenceIfMatch(On.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(On.DOCTYPE.length+1),this.state=O.DOCTYPE):this._consumeSequenceIfMatch(On.CDATA_START,!0)?this.inForeignNode?this.state=O.CDATA_SECTION:(this._err(Z.cdataInHtmlContent),this._createCommentToken(On.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=O.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Z.incorrectlyOpenedComment),this._createCommentToken(2),this.state=O.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case C.HYPHEN_MINUS:{this.state=O.COMMENT_START_DASH;break}case C.GREATER_THAN_SIGN:{this._err(Z.abruptClosingOfEmptyComment),this.state=O.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=O.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case C.HYPHEN_MINUS:{this.state=O.COMMENT_END;break}case C.GREATER_THAN_SIGN:{this._err(Z.abruptClosingOfEmptyComment),this.state=O.DATA,this.emitCurrentComment(n);break}case C.EOF:{this._err(Z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=O.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case C.HYPHEN_MINUS:{this.state=O.COMMENT_END_DASH;break}case C.LESS_THAN_SIGN:{n.data+="<",this.state=O.COMMENT_LESS_THAN_SIGN;break}case C.NULL:{this._err(Z.unexpectedNullCharacter),n.data+=Lt;break}case C.EOF:{this._err(Z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case C.EXCLAMATION_MARK:{n.data+="!",this.state=O.COMMENT_LESS_THAN_SIGN_BANG;break}case C.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=O.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===C.HYPHEN_MINUS?this.state=O.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=O.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===C.HYPHEN_MINUS?this.state=O.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=O.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==C.GREATER_THAN_SIGN&&t!==C.EOF&&this._err(Z.nestedComment),this.state=O.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case C.HYPHEN_MINUS:{this.state=O.COMMENT_END;break}case C.EOF:{this._err(Z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=O.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case C.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentComment(n);break}case C.EXCLAMATION_MARK:{this.state=O.COMMENT_END_BANG;break}case C.HYPHEN_MINUS:{n.data+="-";break}case C.EOF:{this._err(Z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=O.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case C.HYPHEN_MINUS:{n.data+="--!",this.state=O.COMMENT_END_DASH;break}case C.GREATER_THAN_SIGN:{this._err(Z.incorrectlyClosedComment),this.state=O.DATA,this.emitCurrentComment(n);break}case C.EOF:{this._err(Z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=O.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=O.BEFORE_DOCTYPE_NAME;break}case C.GREATER_THAN_SIGN:{this.state=O.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case C.EOF:{this._err(Z.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Z.missingWhitespaceBeforeDoctypeName),this.state=O.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Pi(t))this._createDoctypeToken(String.fromCharCode(no(t))),this.state=O.DOCTYPE_NAME;else switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.NULL:{this._err(Z.unexpectedNullCharacter),this._createDoctypeToken(Lt),this.state=O.DOCTYPE_NAME;break}case C.GREATER_THAN_SIGN:{this._err(Z.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=O.DATA;break}case C.EOF:{this._err(Z.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=O.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=O.AFTER_DOCTYPE_NAME;break}case C.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentDoctype(n);break}case C.NULL:{this._err(Z.unexpectedNullCharacter),n.name+=Lt;break}case C.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Pi(t)?no(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(On.PUBLIC,!1)?this.state=O.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(On.SYSTEM,!1)?this.state=O.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Z.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=O.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case C.QUOTATION_MARK:{this._err(Z.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=O.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this._err(Z.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=O.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(Z.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=O.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Z.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.QUOTATION_MARK:{n.publicId="",this.state=O.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{n.publicId="",this.state=O.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(Z.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=O.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Z.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case C.QUOTATION_MARK:{this.state=O.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case C.NULL:{this._err(Z.unexpectedNullCharacter),n.publicId+=Lt;break}case C.GREATER_THAN_SIGN:{this._err(Z.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=O.DATA;break}case C.EOF:{this._err(Z.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 C.APOSTROPHE:{this.state=O.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case C.NULL:{this._err(Z.unexpectedNullCharacter),n.publicId+=Lt;break}case C.GREATER_THAN_SIGN:{this._err(Z.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=O.DATA;break}case C.EOF:{this._err(Z.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 C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=O.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case C.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentDoctype(n);break}case C.QUOTATION_MARK:{this._err(Z.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this._err(Z.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Z.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=O.DATA;break}case C.QUOTATION_MARK:{n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Z.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=O.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case C.QUOTATION_MARK:{this._err(Z.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this._err(Z.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(Z.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=O.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Z.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.QUOTATION_MARK:{n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(Z.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=O.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Z.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case C.QUOTATION_MARK:{this.state=O.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case C.NULL:{this._err(Z.unexpectedNullCharacter),n.systemId+=Lt;break}case C.GREATER_THAN_SIGN:{this._err(Z.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=O.DATA;break}case C.EOF:{this._err(Z.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 C.APOSTROPHE:{this.state=O.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case C.NULL:{this._err(Z.unexpectedNullCharacter),n.systemId+=Lt;break}case C.GREATER_THAN_SIGN:{this._err(Z.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=O.DATA;break}case C.EOF:{this._err(Z.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 C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=O.DATA;break}case C.EOF:{this._err(Z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Z.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case C.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=O.DATA;break}case C.NULL:{this._err(Z.unexpectedNullCharacter);break}case C.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case C.RIGHT_SQUARE_BRACKET:{this.state=O.CDATA_SECTION_BRACKET;break}case C.EOF:{this._err(Z.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===C.RIGHT_SQUARE_BRACKET?this.state=O.CDATA_SECTION_END:(this._emitChars("]"),this.state=O.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case C.GREATER_THAN_SIGN:{this.state=O.DATA;break}case C.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=O.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(C.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&gE(this.preprocessor.peek(1))?O.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){gE(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===C.SEMICOLON&&this._err(Z.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const ES=new Set([h.DD,h.DT,h.LI,h.OPTGROUP,h.OPTION,h.P,h.RB,h.RP,h.RT,h.RTC]),EE=new Set([...ES,h.CAPTION,h.COLGROUP,h.TBODY,h.TD,h.TFOOT,h.TH,h.THEAD,h.TR]),Bo=new Set([h.APPLET,h.CAPTION,h.HTML,h.MARQUEE,h.OBJECT,h.TABLE,h.TD,h.TEMPLATE,h.TH]),AI=new Set([...Bo,h.OL,h.UL]),_I=new Set([...Bo,h.BUTTON]),yE=new Set([h.ANNOTATION_XML,h.MI,h.MN,h.MO,h.MS,h.MTEXT]),TE=new Set([h.DESC,h.FOREIGN_OBJECT,h.TITLE]),vI=new Set([h.TR,h.TEMPLATE,h.HTML]),wI=new Set([h.TBODY,h.TFOOT,h.THEAD,h.TEMPLATE,h.HTML]),NI=new Set([h.TABLE,h.TEMPLATE,h.HTML]),CI=new Set([h.TD,h.TH]);class II{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)===re.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])!==re.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(Dc,re.HTML)}popUntilTableCellPopped(){this.popUntilPopped(CI,re.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,re.HTML)}clearBackToTableBodyContext(){this.clearBackTo(wI,re.HTML)}clearBackToTableRowContext(){this.clearBackTo(vI,re.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 re.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case re.SVG:{if(TE.has(a))return!1;break}case re.MATHML:{if(yE.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Bo)}hasInListItemScope(t){return this.hasInDynamicScope(t,AI)}hasInButtonScope(t){return this.hasInDynamicScope(t,_I)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case re.HTML:{if(Dc.has(n))return!0;if(Bo.has(n))return!1;break}case re.SVG:{if(TE.has(n))return!1;break}case re.MATHML:{if(yE.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===re.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])===re.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])===re.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&&ES.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&EE.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&EE.has(this.currentTagId);)this.pop()}}const vl=3;var fr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(fr||(fr={}));const SE={type:fr.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===fr.Marker)break;const{element:l}=u;if(this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===s){const c=this.treeAdapter.getAttrList(l);c.length===a&&r.push({idx:o,attrs:c})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<vl)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<vl)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>=vl&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(SE)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:fr.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:fr.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(SE);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===fr.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===fr.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===fr.Element&&n.element===t)}}const Pr={createDocument(){return{nodeName:"#document",mode:Zn.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};Pr.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(Pr.isTextNode(n)){n.value+=t;return}}Pr.appendChild(e,Pr.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Pr.isTextNode(r)?r.value+=t:Pr.insertBefore(e,Pr.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}}},yS="html",RI="about:legacy-compat",DI="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",TS=["+//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//"],OI=[...TS,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],LI=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),SS=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],FI=[...SS,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function xE(e,t){return t.some(n=>e.startsWith(n))}function MI(e){return e.name===yS&&e.publicId===null&&(e.systemId===null||e.systemId===RI)}function PI(e){if(e.name!==yS)return Zn.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===DI)return Zn.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),LI.has(n))return Zn.QUIRKS;let r=t===null?OI:TS;if(xE(n,r))return Zn.QUIRKS;if(r=t===null?SS:FI,xE(n,r))return Zn.LIMITED_QUIRKS}return Zn.NO_QUIRKS}const AE={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},BI="definitionurl",UI="definitionURL",jI=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])),$I=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:re.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:re.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:re.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:re.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:re.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:re.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:re.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:re.XML}],["xml:space",{prefix:"xml",name:"space",namespace:re.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:re.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:re.XMLNS}]]),zI=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])),HI=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 GI(e){const t=e.tagID;return t===h.FONT&&e.attrs.some(({name:r})=>r===ra.COLOR||r===ra.SIZE||r===ra.FACE)||HI.has(t)}function xS(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===BI){e.attrs[t].name=UI;break}}function AS(e){for(let t=0;t<e.attrs.length;t++){const n=jI.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function ug(e){for(let t=0;t<e.attrs.length;t++){const n=$I.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 WI(e){const t=zI.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=ui(e.tagName))}function VI(e,t){return t===re.MATHML&&(e===h.MI||e===h.MO||e===h.MN||e===h.MS||e===h.MTEXT)}function qI(e,t,n){if(t===re.MATHML&&e===h.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===ra.ENCODING){const a=n[r].value.toLowerCase();return a===AE.TEXT_HTML||a===AE.APPLICATION_XML}}return t===re.SVG&&(e===h.FOREIGN_OBJECT||e===h.DESC||e===h.TITLE)}function YI(e,t,n,r){return(!r||r===re.HTML)&&qI(e,t,n)||(!r||r===re.MATHML)&&VI(e,t)}const ZI="hidden",KI=8,XI=3;var M;(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"})(M||(M={}));const QI={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},_S=new Set([h.TABLE,h.TBODY,h.TFOOT,h.THEAD,h.TR]),_E={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Pr,onParseError:null};class Uo{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=M.INITIAL,this.originalInsertionMode=M.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={..._E,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new xI(this.options,this),this.activeFormattingElements=new kI(this.treeAdapter),this.fragmentContextID=r?ui(this.treeAdapter.getTagName(r)):h.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new II(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={..._E,...n};t??(t=r.treeAdapter.createElement($.TEMPLATE,re.HTML,[]));const a=r.treeAdapter.createElement("documentmock",re.HTML,[]),i=new this(r,a,t);return i.fragmentContextID===h.TEMPLATE&&i.tmplInsertionModeStack.unshift(M.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:QI,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)===re.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,re.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=M.TEXT}switchToPlaintextParsing(){this.insertionMode=M.TEXT,this.originalInsertionMode=M.IN_BODY,this.tokenizer.state=Gt.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)===$.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==re.HTML))switch(this.fragmentContextID){case h.TITLE:case h.TEXTAREA:{this.tokenizer.state=Gt.RCDATA;break}case h.STYLE:case h.XMP:case h.IFRAME:case h.NOEMBED:case h.NOFRAMES:case h.NOSCRIPT:{this.tokenizer.state=Gt.RAWTEXT;break}case h.SCRIPT:{this.tokenizer.state=Gt.SCRIPT_DATA;break}case h.PLAINTEXT:{this.tokenizer.state=Gt.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,re.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,re.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($.HTML,re.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:l,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:u,endCol:l,endOffset:c})}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===rt.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)===$.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===re.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===h.MGLYPH||t.tagID===h.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,re.HTML)}_processToken(t){switch(t.type){case rt.CHARACTER:{this.onCharacter(t);break}case rt.NULL_CHARACTER:{this.onNullCharacter(t);break}case rt.COMMENT:{this.onComment(t);break}case rt.DOCTYPE:{this.onDoctype(t);break}case rt.START_TAG:{this._processStartTag(t);break}case rt.END_TAG:{this.onEndTag(t);break}case rt.EOF:{this.onEof(t);break}case rt.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return YI(t,a,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===fr.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=M.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=M.IN_ROW;return}case h.TBODY:case h.THEAD:case h.TFOOT:{this.insertionMode=M.IN_TABLE_BODY;return}case h.CAPTION:{this.insertionMode=M.IN_CAPTION;return}case h.COLGROUP:{this.insertionMode=M.IN_COLUMN_GROUP;return}case h.TABLE:{this.insertionMode=M.IN_TABLE;return}case h.BODY:{this.insertionMode=M.IN_BODY;return}case h.FRAMESET:{this.insertionMode=M.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?M.AFTER_HEAD:M.BEFORE_HEAD;return}case h.TD:case h.TH:{if(t>0){this.insertionMode=M.IN_CELL;return}break}case h.HEAD:{if(t>0){this.insertionMode=M.IN_HEAD;return}break}}this.insertionMode=M.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=M.IN_SELECT_IN_TABLE;return}}this.insertionMode=M.IN_SELECT}_isElementCausesFosterParenting(t){return _S.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)===re.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 EI[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){CR(this,t);return}switch(this.insertionMode){case M.INITIAL:{Ni(this,t);break}case M.BEFORE_HTML:{Wi(this,t);break}case M.BEFORE_HEAD:{Vi(this,t);break}case M.IN_HEAD:{qi(this,t);break}case M.IN_HEAD_NO_SCRIPT:{Yi(this,t);break}case M.AFTER_HEAD:{Zi(this,t);break}case M.IN_BODY:case M.IN_CAPTION:case M.IN_CELL:case M.IN_TEMPLATE:{wS(this,t);break}case M.TEXT:case M.IN_SELECT:case M.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case M.IN_TABLE:case M.IN_TABLE_BODY:case M.IN_ROW:{wl(this,t);break}case M.IN_TABLE_TEXT:{DS(this,t);break}case M.IN_COLUMN_GROUP:{jo(this,t);break}case M.AFTER_BODY:{$o(this,t);break}case M.AFTER_AFTER_BODY:{wo(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){NR(this,t);return}switch(this.insertionMode){case M.INITIAL:{Ni(this,t);break}case M.BEFORE_HTML:{Wi(this,t);break}case M.BEFORE_HEAD:{Vi(this,t);break}case M.IN_HEAD:{qi(this,t);break}case M.IN_HEAD_NO_SCRIPT:{Yi(this,t);break}case M.AFTER_HEAD:{Zi(this,t);break}case M.TEXT:{this._insertCharacters(t);break}case M.IN_TABLE:case M.IN_TABLE_BODY:case M.IN_ROW:{wl(this,t);break}case M.IN_COLUMN_GROUP:{jo(this,t);break}case M.AFTER_BODY:{$o(this,t);break}case M.AFTER_AFTER_BODY:{wo(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Oc(this,t);return}switch(this.insertionMode){case M.INITIAL:case M.BEFORE_HTML:case M.BEFORE_HEAD:case M.IN_HEAD:case M.IN_HEAD_NO_SCRIPT:case M.AFTER_HEAD:case M.IN_BODY:case M.IN_TABLE:case M.IN_CAPTION:case M.IN_COLUMN_GROUP:case M.IN_TABLE_BODY:case M.IN_ROW:case M.IN_CELL:case M.IN_SELECT:case M.IN_SELECT_IN_TABLE:case M.IN_TEMPLATE:case M.IN_FRAMESET:case M.AFTER_FRAMESET:{Oc(this,t);break}case M.IN_TABLE_TEXT:{Ci(this,t);break}case M.AFTER_BODY:{ik(this,t);break}case M.AFTER_AFTER_BODY:case M.AFTER_AFTER_FRAMESET:{sk(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case M.INITIAL:{ok(this,t);break}case M.BEFORE_HEAD:case M.IN_HEAD:case M.IN_HEAD_NO_SCRIPT:case M.AFTER_HEAD:{this._err(t,Z.misplacedDoctype);break}case M.IN_TABLE_TEXT:{Ci(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Z.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?IR(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case M.INITIAL:{Ni(this,t);break}case M.BEFORE_HTML:{uk(this,t);break}case M.BEFORE_HEAD:{ck(this,t);break}case M.IN_HEAD:{or(this,t);break}case M.IN_HEAD_NO_SCRIPT:{fk(this,t);break}case M.AFTER_HEAD:{hk(this,t);break}case M.IN_BODY:{_n(this,t);break}case M.IN_TABLE:{Va(this,t);break}case M.IN_TABLE_TEXT:{Ci(this,t);break}case M.IN_CAPTION:{dR(this,t);break}case M.IN_COLUMN_GROUP:{dg(this,t);break}case M.IN_TABLE_BODY:{Wu(this,t);break}case M.IN_ROW:{Vu(this,t);break}case M.IN_CELL:{mR(this,t);break}case M.IN_SELECT:{FS(this,t);break}case M.IN_SELECT_IN_TABLE:{gR(this,t);break}case M.IN_TEMPLATE:{ER(this,t);break}case M.AFTER_BODY:{TR(this,t);break}case M.IN_FRAMESET:{SR(this,t);break}case M.AFTER_FRAMESET:{AR(this,t);break}case M.AFTER_AFTER_BODY:{vR(this,t);break}case M.AFTER_AFTER_FRAMESET:{wR(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?kR(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case M.INITIAL:{Ni(this,t);break}case M.BEFORE_HTML:{lk(this,t);break}case M.BEFORE_HEAD:{dk(this,t);break}case M.IN_HEAD:{pk(this,t);break}case M.IN_HEAD_NO_SCRIPT:{mk(this,t);break}case M.AFTER_HEAD:{gk(this,t);break}case M.IN_BODY:{Gu(this,t);break}case M.TEXT:{tR(this,t);break}case M.IN_TABLE:{ls(this,t);break}case M.IN_TABLE_TEXT:{Ci(this,t);break}case M.IN_CAPTION:{pR(this,t);break}case M.IN_COLUMN_GROUP:{fR(this,t);break}case M.IN_TABLE_BODY:{Lc(this,t);break}case M.IN_ROW:{LS(this,t);break}case M.IN_CELL:{hR(this,t);break}case M.IN_SELECT:{MS(this,t);break}case M.IN_SELECT_IN_TABLE:{bR(this,t);break}case M.IN_TEMPLATE:{yR(this,t);break}case M.AFTER_BODY:{BS(this,t);break}case M.IN_FRAMESET:{xR(this,t);break}case M.AFTER_FRAMESET:{_R(this,t);break}case M.AFTER_AFTER_BODY:{wo(this,t);break}}}onEof(t){switch(this.insertionMode){case M.INITIAL:{Ni(this,t);break}case M.BEFORE_HTML:{Wi(this,t);break}case M.BEFORE_HEAD:{Vi(this,t);break}case M.IN_HEAD:{qi(this,t);break}case M.IN_HEAD_NO_SCRIPT:{Yi(this,t);break}case M.AFTER_HEAD:{Zi(this,t);break}case M.IN_BODY:case M.IN_TABLE:case M.IN_CAPTION:case M.IN_COLUMN_GROUP:case M.IN_TABLE_BODY:case M.IN_ROW:case M.IN_CELL:case M.IN_SELECT:case M.IN_SELECT_IN_TABLE:{kS(this,t);break}case M.TEXT:{nR(this,t);break}case M.IN_TABLE_TEXT:{Ci(this,t);break}case M.IN_TEMPLATE:{PS(this,t);break}case M.AFTER_BODY:case M.IN_FRAMESET:case M.AFTER_FRAMESET:case M.AFTER_AFTER_BODY:case M.AFTER_AFTER_FRAMESET:{cg(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===C.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 M.IN_HEAD:case M.IN_HEAD_NO_SCRIPT:case M.AFTER_HEAD:case M.TEXT:case M.IN_COLUMN_GROUP:case M.IN_SELECT:case M.IN_SELECT_IN_TABLE:case M.IN_FRAMESET:case M.AFTER_FRAMESET:{this._insertCharacters(t);break}case M.IN_BODY:case M.IN_CAPTION:case M.IN_CELL:case M.IN_TEMPLATE:case M.AFTER_BODY:case M.AFTER_AFTER_BODY:case M.AFTER_AFTER_FRAMESET:{vS(this,t);break}case M.IN_TABLE:case M.IN_TABLE_BODY:case M.IN_ROW:{wl(this,t);break}case M.IN_TABLE_TEXT:{RS(this,t);break}}}}function JI(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):IS(e,t),n}function ek(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 tk(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>=XI;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=nk(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function nk(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 rk(e,t,n){const r=e.treeAdapter.getTagName(t),a=ui(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);a===h.TEMPLATE&&i===re.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function ak(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 lg(e,t){for(let n=0;n<KI;n++){const r=JI(e,t);if(!r)break;const a=ek(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const i=tk(e,a,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),s&&rk(e,s,i),ak(e,a,r)}}function Oc(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function ik(e,t){e._appendCommentNode(t,e.openElements.items[0])}function sk(e,t){e._appendCommentNode(t,e.document)}function cg(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 ok(e,t){e._setDocumentType(t);const n=t.forceQuirks?Zn.QUIRKS:PI(t);MI(t)||e._err(t,Z.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=M.BEFORE_HTML}function Ni(e,t){e._err(t,Z.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Zn.QUIRKS),e.insertionMode=M.BEFORE_HTML,e._processToken(t)}function uk(e,t){t.tagID===h.HTML?(e._insertElement(t,re.HTML),e.insertionMode=M.BEFORE_HEAD):Wi(e,t)}function lk(e,t){const n=t.tagID;(n===h.HTML||n===h.HEAD||n===h.BODY||n===h.BR)&&Wi(e,t)}function Wi(e,t){e._insertFakeRootElement(),e.insertionMode=M.BEFORE_HEAD,e._processToken(t)}function ck(e,t){switch(t.tagID){case h.HTML:{_n(e,t);break}case h.HEAD:{e._insertElement(t,re.HTML),e.headElement=e.openElements.current,e.insertionMode=M.IN_HEAD;break}default:Vi(e,t)}}function dk(e,t){const n=t.tagID;n===h.HEAD||n===h.BODY||n===h.HTML||n===h.BR?Vi(e,t):e._err(t,Z.endTagWithoutMatchingOpenElement)}function Vi(e,t){e._insertFakeElement($.HEAD,h.HEAD),e.headElement=e.openElements.current,e.insertionMode=M.IN_HEAD,e._processToken(t)}function or(e,t){switch(t.tagID){case h.HTML:{_n(e,t);break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:{e._appendElement(t,re.HTML),t.ackSelfClosing=!0;break}case h.TITLE:{e._switchToTextParsing(t,Gt.RCDATA);break}case h.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Gt.RAWTEXT):(e._insertElement(t,re.HTML),e.insertionMode=M.IN_HEAD_NO_SCRIPT);break}case h.NOFRAMES:case h.STYLE:{e._switchToTextParsing(t,Gt.RAWTEXT);break}case h.SCRIPT:{e._switchToTextParsing(t,Gt.SCRIPT_DATA);break}case h.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=M.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(M.IN_TEMPLATE);break}case h.HEAD:{e._err(t,Z.misplacedStartTagForHeadElement);break}default:qi(e,t)}}function pk(e,t){switch(t.tagID){case h.HEAD:{e.openElements.pop(),e.insertionMode=M.AFTER_HEAD;break}case h.BODY:case h.BR:case h.HTML:{qi(e,t);break}case h.TEMPLATE:{ya(e,t);break}default:e._err(t,Z.endTagWithoutMatchingOpenElement)}}function ya(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==h.TEMPLATE&&e._err(t,Z.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Z.endTagWithoutMatchingOpenElement)}function qi(e,t){e.openElements.pop(),e.insertionMode=M.AFTER_HEAD,e._processToken(t)}function fk(e,t){switch(t.tagID){case h.HTML:{_n(e,t);break}case h.BASEFONT:case h.BGSOUND:case h.HEAD:case h.LINK:case h.META:case h.NOFRAMES:case h.STYLE:{or(e,t);break}case h.NOSCRIPT:{e._err(t,Z.nestedNoscriptInHead);break}default:Yi(e,t)}}function mk(e,t){switch(t.tagID){case h.NOSCRIPT:{e.openElements.pop(),e.insertionMode=M.IN_HEAD;break}case h.BR:{Yi(e,t);break}default:e._err(t,Z.endTagWithoutMatchingOpenElement)}}function Yi(e,t){const n=t.type===rt.EOF?Z.openElementsLeftAfterEof:Z.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=M.IN_HEAD,e._processToken(t)}function hk(e,t){switch(t.tagID){case h.HTML:{_n(e,t);break}case h.BODY:{e._insertElement(t,re.HTML),e.framesetOk=!1,e.insertionMode=M.IN_BODY;break}case h.FRAMESET:{e._insertElement(t,re.HTML),e.insertionMode=M.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,Z.abandonedHeadElementChild),e.openElements.push(e.headElement,h.HEAD),or(e,t),e.openElements.remove(e.headElement);break}case h.HEAD:{e._err(t,Z.misplacedStartTagForHeadElement);break}default:Zi(e,t)}}function gk(e,t){switch(t.tagID){case h.BODY:case h.HTML:case h.BR:{Zi(e,t);break}case h.TEMPLATE:{ya(e,t);break}default:e._err(t,Z.endTagWithoutMatchingOpenElement)}}function Zi(e,t){e._insertFakeElement($.BODY,h.BODY),e.insertionMode=M.IN_BODY,Hu(e,t)}function Hu(e,t){switch(t.type){case rt.CHARACTER:{wS(e,t);break}case rt.WHITESPACE_CHARACTER:{vS(e,t);break}case rt.COMMENT:{Oc(e,t);break}case rt.START_TAG:{_n(e,t);break}case rt.END_TAG:{Gu(e,t);break}case rt.EOF:{kS(e,t);break}}}function vS(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function wS(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function bk(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Ek(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function yk(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,re.HTML),e.insertionMode=M.IN_FRAMESET)}function Tk(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,re.HTML)}function Sk(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Dc.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,re.HTML)}function xk(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,re.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Ak(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,re.HTML),n||(e.formElement=e.openElements.current))}function _k(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,re.HTML)}function vk(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,re.HTML),e.tokenizer.state=Gt.PLAINTEXT}function wk(e,t){e.openElements.hasInScope(h.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML),e.framesetOk=!1}function Nk(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName($.A);n&&(lg(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ck(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ik(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(h.NOBR)&&(lg(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,re.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function kk(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Rk(e,t){e.treeAdapter.getDocumentMode(e.document)!==Zn.QUIRKS&&e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,re.HTML),e.framesetOk=!1,e.insertionMode=M.IN_TABLE}function NS(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,re.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function CS(e){const t=gS(e,ra.TYPE);return t!=null&&t.toLowerCase()===ZI}function Dk(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,re.HTML),CS(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Ok(e,t){e._appendElement(t,re.HTML),t.ackSelfClosing=!0}function Lk(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._appendElement(t,re.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Fk(e,t){t.tagName=$.IMG,t.tagID=h.IMG,NS(e,t)}function Mk(e,t){e._insertElement(t,re.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Gt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=M.TEXT}function Pk(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Gt.RAWTEXT)}function Bk(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Gt.RAWTEXT)}function vE(e,t){e._switchToTextParsing(t,Gt.RAWTEXT)}function Uk(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===M.IN_TABLE||e.insertionMode===M.IN_CAPTION||e.insertionMode===M.IN_TABLE_BODY||e.insertionMode===M.IN_ROW||e.insertionMode===M.IN_CELL?M.IN_SELECT_IN_TABLE:M.IN_SELECT}function jk(e,t){e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML)}function $k(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,re.HTML)}function zk(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(h.RTC),e._insertElement(t,re.HTML)}function Hk(e,t){e._reconstructActiveFormattingElements(),xS(t),ug(t),t.selfClosing?e._appendElement(t,re.MATHML):e._insertElement(t,re.MATHML),t.ackSelfClosing=!0}function Gk(e,t){e._reconstructActiveFormattingElements(),AS(t),ug(t),t.selfClosing?e._appendElement(t,re.SVG):e._insertElement(t,re.SVG),t.ackSelfClosing=!0}function wE(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML)}function _n(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:{Ck(e,t);break}case h.A:{Nk(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{Sk(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:{Tk(e,t);break}case h.LI:case h.DD:case h.DT:{_k(e,t);break}case h.BR:case h.IMG:case h.WBR:case h.AREA:case h.EMBED:case h.KEYGEN:{NS(e,t);break}case h.HR:{Lk(e,t);break}case h.RB:case h.RTC:{$k(e,t);break}case h.RT:case h.RP:{zk(e,t);break}case h.PRE:case h.LISTING:{xk(e,t);break}case h.XMP:{Pk(e,t);break}case h.SVG:{Gk(e,t);break}case h.HTML:{bk(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:{or(e,t);break}case h.BODY:{Ek(e,t);break}case h.FORM:{Ak(e,t);break}case h.NOBR:{Ik(e,t);break}case h.MATH:{Hk(e,t);break}case h.TABLE:{Rk(e,t);break}case h.INPUT:{Dk(e,t);break}case h.PARAM:case h.TRACK:case h.SOURCE:{Ok(e,t);break}case h.IMAGE:{Fk(e,t);break}case h.BUTTON:{wk(e,t);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{kk(e,t);break}case h.IFRAME:{Bk(e,t);break}case h.SELECT:{Uk(e,t);break}case h.OPTION:case h.OPTGROUP:{jk(e,t);break}case h.NOEMBED:case h.NOFRAMES:{vE(e,t);break}case h.FRAMESET:{yk(e,t);break}case h.TEXTAREA:{Mk(e,t);break}case h.NOSCRIPT:{e.options.scriptingEnabled?vE(e,t):wE(e,t);break}case h.PLAINTEXT:{vk(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:wE(e,t)}}function Wk(e,t){if(e.openElements.hasInScope(h.BODY)&&(e.insertionMode=M.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Vk(e,t){e.openElements.hasInScope(h.BODY)&&(e.insertionMode=M.AFTER_BODY,BS(e,t))}function qk(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Yk(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 Zk(e){e.openElements.hasInButtonScope(h.P)||e._insertFakeElement($.P,h.P),e._closePElement()}function Kk(e){e.openElements.hasInListItemScope(h.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(h.LI),e.openElements.popUntilTagNamePopped(h.LI))}function Xk(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Qk(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Jk(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function eR(e){e._reconstructActiveFormattingElements(),e._insertFakeElement($.BR,h.BR),e.openElements.pop(),e.framesetOk=!1}function IS(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 Gu(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:{lg(e,t);break}case h.P:{Zk(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:{qk(e,t);break}case h.LI:{Kk(e);break}case h.DD:case h.DT:{Xk(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{Qk(e);break}case h.BR:{eR(e);break}case h.BODY:{Wk(e,t);break}case h.HTML:{Vk(e,t);break}case h.FORM:{Yk(e);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{Jk(e,t);break}case h.TEMPLATE:{ya(e,t);break}default:IS(e,t)}}function kS(e,t){e.tmplInsertionModeStack.length>0?PS(e,t):cg(e,t)}function tR(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 nR(e,t){e._err(t,Z.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function wl(e,t){if(e.openElements.currentTagId!==void 0&&_S.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=M.IN_TABLE_TEXT,t.type){case rt.CHARACTER:{DS(e,t);break}case rt.WHITESPACE_CHARACTER:{RS(e,t);break}}else Ps(e,t)}function rR(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,re.HTML),e.insertionMode=M.IN_CAPTION}function aR(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,re.HTML),e.insertionMode=M.IN_COLUMN_GROUP}function iR(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement($.COLGROUP,h.COLGROUP),e.insertionMode=M.IN_COLUMN_GROUP,dg(e,t)}function sR(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,re.HTML),e.insertionMode=M.IN_TABLE_BODY}function oR(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement($.TBODY,h.TBODY),e.insertionMode=M.IN_TABLE_BODY,Wu(e,t)}function uR(e,t){e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function lR(e,t){CS(t)?e._appendElement(t,re.HTML):Ps(e,t),t.ackSelfClosing=!0}function cR(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,re.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Va(e,t){switch(t.tagID){case h.TD:case h.TH:case h.TR:{oR(e,t);break}case h.STYLE:case h.SCRIPT:case h.TEMPLATE:{or(e,t);break}case h.COL:{iR(e,t);break}case h.FORM:{cR(e,t);break}case h.TABLE:{uR(e,t);break}case h.TBODY:case h.TFOOT:case h.THEAD:{sR(e,t);break}case h.INPUT:{lR(e,t);break}case h.CAPTION:{rR(e,t);break}case h.COLGROUP:{aR(e,t);break}default:Ps(e,t)}}function ls(e,t){switch(t.tagID){case h.TABLE:{e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode());break}case h.TEMPLATE:{ya(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:Ps(e,t)}}function Ps(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Hu(e,t),e.fosterParentingEnabled=n}function RS(e,t){e.pendingCharacterTokens.push(t)}function DS(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Ci(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Ps(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const OS=new Set([h.CAPTION,h.COL,h.COLGROUP,h.TBODY,h.TD,h.TFOOT,h.TH,h.THEAD,h.TR]);function dR(e,t){const n=t.tagID;OS.has(n)?e.openElements.hasInTableScope(h.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=M.IN_TABLE,Va(e,t)):_n(e,t)}function pR(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=M.IN_TABLE,n===h.TABLE&&ls(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:Gu(e,t)}}function dg(e,t){switch(t.tagID){case h.HTML:{_n(e,t);break}case h.COL:{e._appendElement(t,re.HTML),t.ackSelfClosing=!0;break}case h.TEMPLATE:{or(e,t);break}default:jo(e,t)}}function fR(e,t){switch(t.tagID){case h.COLGROUP:{e.openElements.currentTagId===h.COLGROUP&&(e.openElements.pop(),e.insertionMode=M.IN_TABLE);break}case h.TEMPLATE:{ya(e,t);break}case h.COL:break;default:jo(e,t)}}function jo(e,t){e.openElements.currentTagId===h.COLGROUP&&(e.openElements.pop(),e.insertionMode=M.IN_TABLE,e._processToken(t))}function Wu(e,t){switch(t.tagID){case h.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,re.HTML),e.insertionMode=M.IN_ROW;break}case h.TH:case h.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement($.TR,h.TR),e.insertionMode=M.IN_ROW,Vu(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=M.IN_TABLE,Va(e,t));break}default:Va(e,t)}}function Lc(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=M.IN_TABLE);break}case h.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=M.IN_TABLE,ls(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:ls(e,t)}}function Vu(e,t){switch(t.tagID){case h.TH:case h.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,re.HTML),e.insertionMode=M.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=M.IN_TABLE_BODY,Wu(e,t));break}default:Va(e,t)}}function LS(e,t){switch(t.tagID){case h.TR:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=M.IN_TABLE_BODY);break}case h.TABLE:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=M.IN_TABLE_BODY,Lc(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=M.IN_TABLE_BODY,Lc(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:ls(e,t)}}function mR(e,t){const n=t.tagID;OS.has(n)?(e.openElements.hasInTableScope(h.TD)||e.openElements.hasInTableScope(h.TH))&&(e._closeTableCell(),Vu(e,t)):_n(e,t)}function hR(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=M.IN_ROW);break}case h.TABLE:case h.TBODY:case h.TFOOT:case h.THEAD:case h.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),LS(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:break;default:Gu(e,t)}}function FS(e,t){switch(t.tagID){case h.HTML:{_n(e,t);break}case h.OPTION:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._insertElement(t,re.HTML);break}case h.OPTGROUP:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop(),e._insertElement(t,re.HTML);break}case h.HR:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop(),e._appendElement(t,re.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:{or(e,t);break}}}function MS(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:{ya(e,t);break}}}function gR(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)):FS(e,t)}function bR(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)):MS(e,t)}function ER(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:{or(e,t);break}case h.CAPTION:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:{e.tmplInsertionModeStack[0]=M.IN_TABLE,e.insertionMode=M.IN_TABLE,Va(e,t);break}case h.COL:{e.tmplInsertionModeStack[0]=M.IN_COLUMN_GROUP,e.insertionMode=M.IN_COLUMN_GROUP,dg(e,t);break}case h.TR:{e.tmplInsertionModeStack[0]=M.IN_TABLE_BODY,e.insertionMode=M.IN_TABLE_BODY,Wu(e,t);break}case h.TD:case h.TH:{e.tmplInsertionModeStack[0]=M.IN_ROW,e.insertionMode=M.IN_ROW,Vu(e,t);break}default:e.tmplInsertionModeStack[0]=M.IN_BODY,e.insertionMode=M.IN_BODY,_n(e,t)}}function yR(e,t){t.tagID===h.TEMPLATE&&ya(e,t)}function PS(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):cg(e,t)}function TR(e,t){t.tagID===h.HTML?_n(e,t):$o(e,t)}function BS(e,t){var n;if(t.tagID===h.HTML){if(e.fragmentContext||(e.insertionMode=M.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 $o(e,t)}function $o(e,t){e.insertionMode=M.IN_BODY,Hu(e,t)}function SR(e,t){switch(t.tagID){case h.HTML:{_n(e,t);break}case h.FRAMESET:{e._insertElement(t,re.HTML);break}case h.FRAME:{e._appendElement(t,re.HTML),t.ackSelfClosing=!0;break}case h.NOFRAMES:{or(e,t);break}}}function xR(e,t){t.tagID===h.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==h.FRAMESET&&(e.insertionMode=M.AFTER_FRAMESET))}function AR(e,t){switch(t.tagID){case h.HTML:{_n(e,t);break}case h.NOFRAMES:{or(e,t);break}}}function _R(e,t){t.tagID===h.HTML&&(e.insertionMode=M.AFTER_AFTER_FRAMESET)}function vR(e,t){t.tagID===h.HTML?_n(e,t):wo(e,t)}function wo(e,t){e.insertionMode=M.IN_BODY,Hu(e,t)}function wR(e,t){switch(t.tagID){case h.HTML:{_n(e,t);break}case h.NOFRAMES:{or(e,t);break}}}function NR(e,t){t.chars=Lt,e._insertCharacters(t)}function CR(e,t){e._insertCharacters(t),e.framesetOk=!1}function US(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==re.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function IR(e,t){if(GI(t))US(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===re.MATHML?xS(t):r===re.SVG&&(WI(t),AS(t)),ug(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function kR(e,t){if(t.tagID===h.P||t.tagID===h.BR){US(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)===re.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}$.AREA,$.BASE,$.BASEFONT,$.BGSOUND,$.BR,$.COL,$.EMBED,$.FRAME,$.HR,$.IMG,$.INPUT,$.KEYGEN,$.LINK,$.META,$.PARAM,$.SOURCE,$.TRACK,$.WBR;function RR(e,t){return Uo.parse(e,t)}function DR(e,t,n){typeof e=="string"&&(n=t,t=e,e=null);const r=Uo.getFragmentParser(e,n);return r.tokenizer.write(t,!0),r.getFragment()}const qu=jS("end"),br=jS("start");function jS(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 OR(e){const t=br(e),n=qu(e);if(t&&n)return{start:t,end:n}}const LR=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,FR=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),NE={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function $S(e,t){const n=WR(e),r=ju("type",{handlers:{root:MR,element:PR,text:BR,comment:HS,doctype:UR,raw:$R},unknown:zR}),a={parser:n?new Uo(NE):Uo.getFragmentParser(void 0,NE),handle(o){r(o,a)},stitches:!1,options:t||{}};r(e,a),li(a,br());const i=n?a.parser.document:a.parser.getFragment(),s=lS(i,{file:a.options.file});return a.stitches&&Fn(s,"comment",function(o,u,l){const c=o;if(c.value.stitch&&l&&u!==void 0){const d=l.children;return d[u]=c.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function zS(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function MR(e,t){zS(e.children,t)}function PR(e,t){HR(e,t),zS(e.children,t),GR(e,t)}function BR(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:rt.CHARACTER,chars:e.value,location:Bs(e)};li(t,br(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function UR(e,t){const n={type:rt.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Bs(e)};li(t,br(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function jR(e,t){t.stitches=!0;const n=VR(e);if("children"in e&&"children"in n){const r=$S({type:"root",children:e.children},t.options);n.children=r.children}HS({type:"comment",value:{stitch:n}},t)}function HS(e,t){const n=e.value,r={type:rt.COMMENT,data:n,location:Bs(e)};li(t,br(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function $R(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,GS(t,br(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(LR,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function zR(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))jR(n,t);else{let r="";throw FR.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 li(e,t){GS(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=Gt.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 GS(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 HR(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Gt.PLAINTEXT)return;li(t,br(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:ta.html;a===ta.html&&n==="svg"&&(a=ta.svg);const i=ZC({...e,children:[]},{space:a===ta.svg?"svg":"html"}),s={type:rt.START_TAG,tagName:n,tagID:ui(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:Bs(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function GR(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&pS.includes(n)||t.parser.tokenizer.state===Gt.PLAINTEXT)return;li(t,qu(e));const r={type:rt.END_TAG,tagName:n,tagID:ui(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Bs(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Gt.RCDATA||t.parser.tokenizer.state===Gt.RAWTEXT||t.parser.tokenizer.state===Gt.SCRIPT_DATA)&&(t.parser.tokenizer.state=Gt.DATA)}function WR(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Bs(e){const t=br(e)||{line:void 0,column:void 0,offset:void 0},n=qu(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 VR(e){return"children"in e?sa({...e,children:[]}):sa(e)}function WS(e){return function(t,n){return $S(t,{...e,file:n})}}function cs(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 qR=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,YR=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ZR={};function CE(e,t){return(ZR.jsx?YR:qR).test(e)}var wa={},Nl,IE;function KR(){if(IE)return Nl;IE=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
+ `,l="/",c="*",d="",f="comment",m="declaration";function b(E,T){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];T=T||{};var v=1,x=1;function I(X){var G=X.match(t);G&&(v+=G.length);var oe=X.lastIndexOf(u);x=~oe?X.length-oe:x+X.length}function D(){var X={line:v,column:x};return function(G){return G.position=new S(X),P(),G}}function S(X){this.start=X,this.end={line:v,column:x},this.source=T.source}S.prototype.content=E;function A(X){var G=new Error(T.source+":"+v+":"+x+": "+X);if(G.reason=X,G.filename=T.source,G.line=v,G.column=x,G.source=E,!T.silent)throw G}function k(X){var G=X.exec(E);if(G){var oe=G[0];return I(oe),E=E.slice(oe.length),G}}function P(){k(n)}function w(X){var G;for(X=X||[];G=U();)G!==!1&&X.push(G);return X}function U(){var X=D();if(!(l!=E.charAt(0)||c!=E.charAt(1))){for(var G=2;d!=E.charAt(G)&&(c!=E.charAt(G)||l!=E.charAt(G+1));)++G;if(G+=2,d===E.charAt(G-1))return A("End of comment missing");var oe=E.slice(2,G-2);return x+=2,I(oe),E=E.slice(G),x+=2,X({type:f,comment:oe})}}function j(){var X=D(),G=k(r);if(G){if(U(),!k(a))return A("property missing ':'");var oe=k(i),Q=X({type:m,property:y(G[0].replace(e,d)),value:oe?y(oe[0].replace(e,d)):d});return k(s),Q}}function K(){var X=[];w(X);for(var G;G=j();)G!==!1&&(X.push(G),w(X));return X}return P(),K()}function y(E){return E?E.replace(o,d):d}return Nl=b,Nl}var kE;function XR(){if(kE)return wa;kE=1;var e=wa&&wa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(wa,"__esModule",{value:!0}),wa.default=n;const t=e(KR());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:l,value:c}=u;o?a(l,c,u):c&&(i=i||{},i[l]=c)}),i}return wa}var Ii={},RE;function QR(){if(RE)return Ii;RE=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(l){return!l||n.test(l)||e.test(l)},s=function(l,c){return c.toUpperCase()},o=function(l,c){return"".concat(c,"-")},u=function(l,c){return c===void 0&&(c={}),i(l)?l:(l=l.toLowerCase(),c.reactCompat?l=l.replace(a,o):l=l.replace(r,o),l.replace(t,s))};return Ii.camelCase=u,Ii}var ki,DE;function JR(){if(DE)return ki;DE=1;var e=ki&&ki.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(XR()),n=QR();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,ki=r,ki}var eD=JR();const tD=du(eD);function Ki(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?OE(e.position):"start"in e||"end"in e?OE(e):"line"in e||"column"in e?Fc(e):""}function Fc(e){return LE(e&&e.line)+":"+LE(e&&e.column)}function OE(e){return Fc(e&&e.start)+"-"+Fc(e&&e.end)}function LE(e){return e&&typeof e=="number"?e:1}class yn 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=Ki(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}}yn.prototype.file="";yn.prototype.name="";yn.prototype.reason="";yn.prototype.message="";yn.prototype.stack="";yn.prototype.column=void 0;yn.prototype.line=void 0;yn.prototype.ancestors=void 0;yn.prototype.cause=void 0;yn.prototype.fatal=void 0;yn.prototype.place=void 0;yn.prototype.ruleId=void 0;yn.prototype.source=void 0;const pg={}.hasOwnProperty,nD=new Map,rD=/[A-Z]/g,aD=new Set(["table","tbody","thead","tfoot","tr"]),iD=new Set(["td","th"]),VS="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function sD(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=mD(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=fD(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"?sr:Ea,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=qS(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function qS(e,t,n){if(t.type==="element")return oD(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return uD(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return cD(e,t,n);if(t.type==="mdxjsEsm")return lD(e,t);if(t.type==="root")return dD(e,t,n);if(t.type==="text")return pD(e,t)}function oD(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=sr,e.schema=a),e.ancestors.push(t);const i=ZS(e,t.tagName,!1),s=hD(e,t);let o=mg(e,t);return aD.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!Ms(u):!0})),YS(e,s,i,t),fg(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function uD(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)}ds(e,t.position)}function lD(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ds(e,t.position)}function cD(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=sr,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:ZS(e,t.name,!0),s=gD(e,t),o=mg(e,t);return YS(e,s,i,t),fg(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function dD(e,t,n){const r={};return fg(r,mg(e,t)),e.create(t,e.Fragment,r,n)}function pD(e,t){return t.value}function YS(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function fg(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function fD(e,t,n){return r;function r(a,i,s,o){const l=Array.isArray(s.children)?n:t;return o?l(i,s,o):l(i,s)}}function mD(e,t){return n;function n(r,a,i,s){const o=Array.isArray(i.children),u=br(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 hD(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&pg.call(t.properties,a)){const i=bD(e,a,t.properties[a]);if(i){const[s,o]=i;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&iD.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 gD(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 ds(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 ds(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function mg(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:nD;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 l=a.get(u)||0;s=u+"-"+l,a.set(u,l+1)}}const o=qS(e,i,s);o!==void 0&&n.push(o)}return n}function bD(e,t,n){const r=ii(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Fu(n):Mu(n)),r.property==="style"){let a=typeof n=="object"?n:ED(e,String(n));return e.stylePropertyNameCase==="css"&&(a=yD(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?zw[r.property]||r.property:r.attribute,n]}}function ED(e,t){try{return tD(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new yn("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=VS+"#cannot-parse-style-attribute",a}}function ZS(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=CE(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=CE(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return pg.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);ds(e)}function ds(e,t){const n=new yn("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=VS+"#cannot-handle-mdx-estrees-without-createevaluater",n}function yD(e){const t={};let n;for(n in e)pg.call(e,n)&&(t[TD(n)]=e[n]);return t}function TD(e){let t=e.replace(rD,SD);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function SD(e){return"-"+e.toLowerCase()}const Cl={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"]},xD={};function hg(e,t){const n=xD,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return KS(e,r,a)}function KS(e,t,n){if(AD(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 FE(e.children,t,n)}return Array.isArray(e)?FE(e,t,n):""}function FE(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=KS(e[a],t,n);return r.join("")}function AD(e){return!!(e&&typeof e=="object")}function jn(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 Kn(e,t){return e.length>0?(jn(e,e.length,0,t),e):t}const ME={}.hasOwnProperty;function XS(e){const t={};let n=-1;for(;++n<e.length;)_D(t,e[n]);return t}function _D(e,t){let n;for(n in t){const a=(ME.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let s;if(i)for(s in i){ME.call(a,s)||(a[s]=[]);const o=i[s];vD(a[s],Array.isArray(o)?o:o?[o]:[])}}}function vD(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);jn(e,0,0,r)}function QS(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 nr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Cn=Zr(/[A-Za-z]/),An=Zr(/[\dA-Za-z]/),wD=Zr(/[#-'*+\--9=?A-Z^-~]/);function zo(e){return e!==null&&(e<32||e===127)}const Mc=Zr(/\d/),ND=Zr(/[\dA-Fa-f]/),CD=Zr(/[!-/:-@[-`{-~]/);function Be(e){return e!==null&&e<-2}function Nt(e){return e!==null&&(e<0||e===32)}function st(e){return e===-2||e===-1||e===32}const Yu=Zr(/\p{P}|\p{S}/u),oa=Zr(/\s/);function Zr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ci(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===37&&An(e.charCodeAt(n+1))&&An(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 mt(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(u){return st(u)?(e.enter(n),o(u)):t(u)}function o(u){return st(u)&&i++<a?(e.consume(u),o):(e.exit(n),t(u))}}const ID={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"),mt(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 Be(o)?(e.consume(o),e.exit("chunkText"),i):(e.consume(o),s)}}const RD={tokenize:DD},PE={tokenize:OD};function DD(e){const t=this,n=[];let r=0,a,i,s;return o;function o(x){if(r<n.length){const I=n[r];return t.containerState=I[1],e.attempt(I[0].continuation,u,l)(x)}return l(x)}function u(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&v();const I=t.events.length;let D=I,S;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){S=t.events[D][1].end;break}T(r);let A=I;for(;A<t.events.length;)t.events[A][1].end={...S},A++;return jn(t.events,D+1,0,t.events.slice(I)),t.events.length=A,l(x)}return o(x)}function l(x){if(r===n.length){if(!a)return f(x);if(a.currentConstruct&&a.currentConstruct.concrete)return b(x);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(PE,c,d)(x)}function c(x){return a&&v(),T(r),f(x)}function d(x){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,b(x)}function f(x){return t.containerState={},e.attempt(PE,m,b)(x)}function m(x){return r++,n.push([t.currentConstruct,t.containerState]),f(x)}function b(x){if(x===null){a&&v(),T(0),e.consume(x);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),y(x)}function y(x){if(x===null){E(e.exit("chunkFlow"),!0),T(0),e.consume(x);return}return Be(x)?(e.consume(x),E(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(x),y)}function E(x,I){const D=t.sliceStream(x);if(I&&D.push(null),x.previous=i,i&&(i.next=x),i=x,a.defineSkip(x.start),a.write(D),t.parser.lazy[x.start.line]){let S=a.events.length;for(;S--;)if(a.events[S][1].start.offset<s&&(!a.events[S][1].end||a.events[S][1].end.offset>s))return;const A=t.events.length;let k=A,P,w;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(P){w=t.events[k][1].end;break}P=!0}for(T(r),S=A;S<t.events.length;)t.events[S][1].end={...w},S++;jn(t.events,k+1,0,t.events.slice(A)),t.events.length=S}}function T(x){let I=n.length;for(;I-- >x;){const D=n[I];t.containerState=D[1],D[0].exit.call(t,e)}n.length=x}function v(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function OD(e,t,n){return mt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function qa(e){if(e===null||Nt(e)||oa(e))return 1;if(Yu(e))return 2}function Zu(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 Pc={name:"attention",resolveAll:LD,tokenize:FD};function LD(e,t){let n=-1,r,a,i,s,o,u,l,c;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};BE(d,-u),BE(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},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Kn(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=Kn(l,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",i,t]]),l=Kn(l,Zu(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Kn(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=Kn(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,jn(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function FD(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=qa(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 l=e.exit("attentionSequence"),c=qa(u),d=!c||c===2&&a||n.includes(u),f=!a||a===2&&c||n.includes(r);return l._open=!!(i===42?d:d&&(a||!f)),l._close=!!(i===42?f:f&&(c||!d)),t(u)}}function BE(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const MD={name:"autolink",tokenize:PD};function PD(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 Cn(m)?(e.consume(m),s):m===64?n(m):l(m)}function s(m){return m===43||m===45||m===46||An(m)?(r=1,o(m)):l(m)}function o(m){return m===58?(e.consume(m),r=0,u):(m===43||m===45||m===46||An(m))&&r++<32?(e.consume(m),o):(r=0,l(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||zo(m)?n(m):(e.consume(m),u)}function l(m){return m===64?(e.consume(m),c):wD(m)?(e.consume(m),l):n(m)}function c(m){return An(m)?d(m):n(m)}function d(m){return m===46?(e.consume(m),r=0,c):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||An(m))&&r++<63){const b=m===45?f:d;return e.consume(m),b}return n(m)}}const Us={partial:!0,tokenize:BD};function BD(e,t,n){return r;function r(i){return st(i)?mt(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||Be(i)?t(i):n(i)}}const JS={continuation:{tokenize:jD},exit:$D,name:"blockQuote",tokenize:UD};function UD(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 st(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function jD(e,t,n){const r=this;return a;function a(s){return st(s)?mt(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(JS,t,n)(s)}}function $D(e){e.exit("blockQuote")}const ex={name:"characterEscape",tokenize:zD};function zD(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 CD(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const tx={name:"characterReference",tokenize:HD};function HD(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"),l):(e.enter("characterReferenceValue"),i=31,s=An,c(d))}function l(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=ND,c):(e.enter("characterReferenceValue"),i=7,s=Mc,c(d))}function c(d){if(d===59&&a){const f=e.exit("characterReferenceValue");return s===An&&!us(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),c):n(d)}}const UE={partial:!0,tokenize:WD},jE={concrete:!0,name:"codeFenced",tokenize:GD};function GD(e,t,n){const r=this,a={partial:!0,tokenize:D};let i=0,s=0,o;return u;function u(S){return l(S)}function l(S){const A=r.events[r.events.length-1];return i=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,o=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(S)}function c(S){return S===o?(s++,e.consume(S),c):s<3?n(S):(e.exit("codeFencedFenceSequence"),st(S)?mt(e,d,"whitespace")(S):d(S))}function d(S){return S===null||Be(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(UE,y,I)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(S))}function f(S){return S===null||Be(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(S)):st(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),mt(e,m,"whitespace")(S)):S===96&&S===o?n(S):(e.consume(S),f)}function m(S){return S===null||Be(S)?d(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(S))}function b(S){return S===null||Be(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(S)):S===96&&S===o?n(S):(e.consume(S),b)}function y(S){return e.attempt(a,I,E)(S)}function E(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),T}function T(S){return i>0&&st(S)?mt(e,v,"linePrefix",i+1)(S):v(S)}function v(S){return S===null||Be(S)?e.check(UE,y,I)(S):(e.enter("codeFlowValue"),x(S))}function x(S){return S===null||Be(S)?(e.exit("codeFlowValue"),v(S)):(e.consume(S),x)}function I(S){return e.exit("codeFenced"),t(S)}function D(S,A,k){let P=0;return w;function w(G){return S.enter("lineEnding"),S.consume(G),S.exit("lineEnding"),U}function U(G){return S.enter("codeFencedFence"),st(G)?mt(S,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):j(G)}function j(G){return G===o?(S.enter("codeFencedFenceSequence"),K(G)):k(G)}function K(G){return G===o?(P++,S.consume(G),K):P>=s?(S.exit("codeFencedFenceSequence"),st(G)?mt(S,X,"whitespace")(G):X(G)):k(G)}function X(G){return G===null||Be(G)?(S.exit("codeFencedFence"),A(G)):k(G)}}}function WD(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 Il={name:"codeIndented",tokenize:qD},VD={partial:!0,tokenize:YD};function qD(e,t,n){const r=this;return a;function a(l){return e.enter("codeIndented"),mt(e,i,"linePrefix",5)(l)}function i(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?u(l):Be(l)?e.attempt(VD,s,u)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||Be(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function u(l){return e.exit("codeIndented"),t(l)}}function YD(e,t,n){const r=this;return a;function a(s){return r.parser.lazy[r.now().line]?n(s):Be(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):mt(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):Be(s)?a(s):n(s)}}const ZD={name:"codeText",previous:XD,resolve:KD,tokenize:QD};function KD(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 XD(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function QD(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,c(d)):Be(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("codeTextData"),l(d))}function l(d){return d===null||d===32||d===96||Be(d)?(e.exit("codeTextData"),u(d)):(e.consume(d),l)}function c(d){return d===96?(e.consume(d),a++,c):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",l(d))}}class JD{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&&Ri(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),Ri(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ri(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);Ri(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ri(this.left,n.reverse())}}}function Ri(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 nx(e){const t={};let n=-1,r,a,i,s,o,u,l;const c=new JD(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.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,e2(c,n)),n=t[n],l=!0);else if(r[1]._container){for(i=n,a=void 0;i--;)if(s=c.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(c.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={...c.get(a)[1].start},o=c.slice(a,n),o.unshift(r),c.splice(a,n-a+1,o))}}return jn(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function e2(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=[],l={};let c,d,f=-1,m=n,b=0,y=0;const E=[y];for(;m;){for(;e.get(++a)[1]!==m;);i.push(a),m._tokenizer||(c=r.sliceStream(m),m.next||c.push(null),d&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),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&&(y=f+1,E.push(y),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):E.pop(),f=E.length;f--;){const T=o.slice(E[f],E[f+1]),v=i.pop();u.push([v,v+T.length-1]),e.splice(v,2,T)}for(u.reverse(),f=-1;++f<u.length;)l[b+u[f][0]]=b+u[f][1],b+=u[f][1]-u[f][0]-1;return l}const t2={resolve:r2,tokenize:a2},n2={partial:!0,tokenize:i2};function r2(e){return nx(e),e}function a2(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):Be(o)?e.check(n2,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 i2(e,t,n){const r=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),mt(e,i,"linePrefix")}function i(s){if(s===null||Be(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 rx(e,t,n,r,a,i,s,o,u){const l=u||Number.POSITIVE_INFINITY;let c=0;return d;function d(T){return T===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(T),e.exit(i),f):T===null||T===32||T===41||zo(T)?n(T):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),y(T))}function f(T){return T===62?(e.enter(i),e.consume(T),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),m(T))}function m(T){return T===62?(e.exit("chunkString"),e.exit(o),f(T)):T===null||T===60||Be(T)?n(T):(e.consume(T),T===92?b:m)}function b(T){return T===60||T===62||T===92?(e.consume(T),m):m(T)}function y(T){return!c&&(T===null||T===41||Nt(T))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(T)):c<l&&T===40?(e.consume(T),c++,y):T===41?(e.consume(T),c--,y):T===null||T===32||T===40||zo(T)?n(T):(e.consume(T),T===92?E:y)}function E(T){return T===40||T===41||T===92?(e.consume(T),y):y(T)}}function ax(e,t,n,r,a,i){const s=this;let o=0,u;return l;function l(m){return e.enter(r),e.enter(a),e.consume(m),e.exit(a),e.enter(i),c}function c(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):Be(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||Be(m)||o++>999?(e.exit("chunkString"),c(m)):(e.consume(m),u||(u=!st(m)),m===92?f:d)}function f(m){return m===91||m===92||m===93?(e.consume(m),o++,d):d(m)}}function ix(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),l(f))}function l(f){return f===s?(e.exit(i),u(s)):f===null?n(f):Be(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),mt(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===s||f===null||Be(f)?(e.exit("chunkString"),l(f)):(e.consume(f),f===92?d:c)}function d(f){return f===s||f===92?(e.consume(f),c):c(f)}}function Xi(e,t){let n;return r;function r(a){return Be(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):st(a)?mt(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const s2={name:"definition",tokenize:u2},o2={partial:!0,tokenize:l2};function u2(e,t,n){const r=this;let a;return i;function i(m){return e.enter("definition"),s(m)}function s(m){return ax.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function o(m){return a=nr(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 Nt(m)?Xi(e,l)(m):l(m)}function l(m){return rx(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function c(m){return e.attempt(o2,d,d)(m)}function d(m){return st(m)?mt(e,f,"whitespace")(m):f(m)}function f(m){return m===null||Be(m)?(e.exit("definition"),r.parser.defined.push(a),t(m)):n(m)}}function l2(e,t,n){return r;function r(o){return Nt(o)?Xi(e,a)(o):n(o)}function a(o){return ix(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function i(o){return st(o)?mt(e,s,"whitespace")(o):s(o)}function s(o){return o===null||Be(o)?t(o):n(o)}}const c2={name:"hardBreakEscape",tokenize:d2};function d2(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return Be(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const p2={name:"headingAtx",resolve:f2,tokenize:m2};function f2(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"},jn(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function m2(e,t,n){let r=0;return a;function a(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Nt(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||Be(c)?(e.exit("atxHeading"),t(c)):st(c)?mt(e,o,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),o(c))}function l(c){return c===null||c===35||Nt(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),l)}}const h2=["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"],$E=["pre","script","style","textarea"],g2={concrete:!0,name:"htmlFlow",resolveTo:y2,tokenize:T2},b2={partial:!0,tokenize:x2},E2={partial:!0,tokenize:S2};function y2(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 T2(e,t,n){const r=this;let a,i,s,o,u;return l;function l(R){return c(R)}function c(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),d}function d(R){return R===33?(e.consume(R),f):R===47?(e.consume(R),i=!0,y):R===63?(e.consume(R),a=3,r.interrupt?t:N):Cn(R)?(e.consume(R),s=String.fromCharCode(R),E):n(R)}function f(R){return R===45?(e.consume(R),a=2,m):R===91?(e.consume(R),a=5,o=0,b):Cn(R)?(e.consume(R),a=4,r.interrupt?t:N):n(R)}function m(R){return R===45?(e.consume(R),r.interrupt?t:N):n(R)}function b(R){const ve="CDATA[";return R===ve.charCodeAt(o++)?(e.consume(R),o===ve.length?r.interrupt?t:j:b):n(R)}function y(R){return Cn(R)?(e.consume(R),s=String.fromCharCode(R),E):n(R)}function E(R){if(R===null||R===47||R===62||Nt(R)){const ve=R===47,Oe=s.toLowerCase();return!ve&&!i&&$E.includes(Oe)?(a=1,r.interrupt?t(R):j(R)):h2.includes(s.toLowerCase())?(a=6,ve?(e.consume(R),T):r.interrupt?t(R):j(R)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):i?v(R):x(R))}return R===45||An(R)?(e.consume(R),s+=String.fromCharCode(R),E):n(R)}function T(R){return R===62?(e.consume(R),r.interrupt?t:j):n(R)}function v(R){return st(R)?(e.consume(R),v):w(R)}function x(R){return R===47?(e.consume(R),w):R===58||R===95||Cn(R)?(e.consume(R),I):st(R)?(e.consume(R),x):w(R)}function I(R){return R===45||R===46||R===58||R===95||An(R)?(e.consume(R),I):D(R)}function D(R){return R===61?(e.consume(R),S):st(R)?(e.consume(R),D):x(R)}function S(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),u=R,A):st(R)?(e.consume(R),S):k(R)}function A(R){return R===u?(e.consume(R),u=null,P):R===null||Be(R)?n(R):(e.consume(R),A)}function k(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||Nt(R)?D(R):(e.consume(R),k)}function P(R){return R===47||R===62||st(R)?x(R):n(R)}function w(R){return R===62?(e.consume(R),U):n(R)}function U(R){return R===null||Be(R)?j(R):st(R)?(e.consume(R),U):n(R)}function j(R){return R===45&&a===2?(e.consume(R),oe):R===60&&a===1?(e.consume(R),Q):R===62&&a===4?(e.consume(R),H):R===63&&a===3?(e.consume(R),N):R===93&&a===5?(e.consume(R),Y):Be(R)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(b2,ie,K)(R)):R===null||Be(R)?(e.exit("htmlFlowData"),K(R)):(e.consume(R),j)}function K(R){return e.check(E2,X,ie)(R)}function X(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),G}function G(R){return R===null||Be(R)?K(R):(e.enter("htmlFlowData"),j(R))}function oe(R){return R===45?(e.consume(R),N):j(R)}function Q(R){return R===47?(e.consume(R),s="",ae):j(R)}function ae(R){if(R===62){const ve=s.toLowerCase();return $E.includes(ve)?(e.consume(R),H):j(R)}return Cn(R)&&s.length<8?(e.consume(R),s+=String.fromCharCode(R),ae):j(R)}function Y(R){return R===93?(e.consume(R),N):j(R)}function N(R){return R===62?(e.consume(R),H):R===45&&a===2?(e.consume(R),N):j(R)}function H(R){return R===null||Be(R)?(e.exit("htmlFlowData"),ie(R)):(e.consume(R),H)}function ie(R){return e.exit("htmlFlow"),t(R)}}function S2(e,t,n){const r=this;return a;function a(s){return Be(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 x2(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Us,t,n)}}const A2={name:"htmlText",tokenize:_2};function _2(e,t,n){const r=this;let a,i,s;return o;function o(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),u}function u(N){return N===33?(e.consume(N),l):N===47?(e.consume(N),D):N===63?(e.consume(N),x):Cn(N)?(e.consume(N),k):n(N)}function l(N){return N===45?(e.consume(N),c):N===91?(e.consume(N),i=0,b):Cn(N)?(e.consume(N),v):n(N)}function c(N){return N===45?(e.consume(N),m):n(N)}function d(N){return N===null?n(N):N===45?(e.consume(N),f):Be(N)?(s=d,Q(N)):(e.consume(N),d)}function f(N){return N===45?(e.consume(N),m):d(N)}function m(N){return N===62?oe(N):N===45?f(N):d(N)}function b(N){const H="CDATA[";return N===H.charCodeAt(i++)?(e.consume(N),i===H.length?y:b):n(N)}function y(N){return N===null?n(N):N===93?(e.consume(N),E):Be(N)?(s=y,Q(N)):(e.consume(N),y)}function E(N){return N===93?(e.consume(N),T):y(N)}function T(N){return N===62?oe(N):N===93?(e.consume(N),T):y(N)}function v(N){return N===null||N===62?oe(N):Be(N)?(s=v,Q(N)):(e.consume(N),v)}function x(N){return N===null?n(N):N===63?(e.consume(N),I):Be(N)?(s=x,Q(N)):(e.consume(N),x)}function I(N){return N===62?oe(N):x(N)}function D(N){return Cn(N)?(e.consume(N),S):n(N)}function S(N){return N===45||An(N)?(e.consume(N),S):A(N)}function A(N){return Be(N)?(s=A,Q(N)):st(N)?(e.consume(N),A):oe(N)}function k(N){return N===45||An(N)?(e.consume(N),k):N===47||N===62||Nt(N)?P(N):n(N)}function P(N){return N===47?(e.consume(N),oe):N===58||N===95||Cn(N)?(e.consume(N),w):Be(N)?(s=P,Q(N)):st(N)?(e.consume(N),P):oe(N)}function w(N){return N===45||N===46||N===58||N===95||An(N)?(e.consume(N),w):U(N)}function U(N){return N===61?(e.consume(N),j):Be(N)?(s=U,Q(N)):st(N)?(e.consume(N),U):P(N)}function j(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),a=N,K):Be(N)?(s=j,Q(N)):st(N)?(e.consume(N),j):(e.consume(N),X)}function K(N){return N===a?(e.consume(N),a=void 0,G):N===null?n(N):Be(N)?(s=K,Q(N)):(e.consume(N),K)}function X(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||Nt(N)?P(N):(e.consume(N),X)}function G(N){return N===47||N===62||Nt(N)?P(N):n(N)}function oe(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function Q(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),ae}function ae(N){return st(N)?mt(e,Y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):Y(N)}function Y(N){return e.enter("htmlTextData"),s(N)}}const gg={name:"labelEnd",resolveAll:C2,resolveTo:I2,tokenize:k2},v2={tokenize:R2},w2={tokenize:D2},N2={tokenize:O2};function C2(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&&jn(e,0,e.length,n),e}function I2(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}},l={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",u,t],["enter",l,t]],o=Kn(o,e.slice(i+1,i+r+3)),o=Kn(o,[["enter",c,t]]),o=Kn(o,Zu(t.parser.constructs.insideSpan.null,e.slice(i+r+4,s-3),t)),o=Kn(o,[["exit",c,t],e[s-2],e[s-1],["exit",l,t]]),o=Kn(o,e.slice(s+1)),o=Kn(o,[["exit",u,t]]),jn(e,i,e.length,o),e}function k2(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(nr(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(v2,c,s?c:d)(f):f===91?e.attempt(w2,c,s?l:d)(f):s?c(f):d(f)}function l(f){return e.attempt(N2,c,d)(f)}function c(f){return t(f)}function d(f){return i._balanced=!0,n(f)}}function R2(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 Nt(d)?Xi(e,i)(d):i(d)}function i(d){return d===41?c(d):rx(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return Nt(d)?Xi(e,u)(d):c(d)}function o(d){return n(d)}function u(d){return d===34||d===39||d===40?ix(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function l(d){return Nt(d)?Xi(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function D2(e,t,n){const r=this;return a;function a(o){return ax.call(r,e,i,s,"reference","referenceMarker","referenceString")(o)}function i(o){return r.parser.defined.includes(nr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function O2(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 L2={name:"labelStartImage",resolveAll:gg.resolveAll,tokenize:F2};function F2(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 M2={name:"labelStartLink",resolveAll:gg.resolveAll,tokenize:P2};function P2(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 kl={name:"lineEnding",tokenize:B2};function B2(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),mt(e,t,"linePrefix")}}const No={name:"thematicBreak",tokenize:U2};function U2(e,t,n){let r=0,a;return i;function i(l){return e.enter("thematicBreak"),s(l)}function s(l){return a=l,o(l)}function o(l){return l===a?(e.enter("thematicBreakSequence"),u(l)):r>=3&&(l===null||Be(l))?(e.exit("thematicBreak"),t(l)):n(l)}function u(l){return l===a?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),st(l)?mt(e,o,"whitespace")(l):o(l))}}const Ln={continuation:{tokenize:H2},exit:W2,name:"list",tokenize:z2},j2={partial:!0,tokenize:V2},$2={partial:!0,tokenize:G2};function z2(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:Mc(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(No,n,l)(m):l(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return n(m)}function u(m){return Mc(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"),l(m)):n(m)}function l(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(Us,r.interrupt?n:c,e.attempt(j2,f,d))}function c(m){return r.containerState.initialBlankLine=!0,i++,f(m)}function d(m){return st(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 H2(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Us,a,i);function a(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,mt(e,t,"listItemIndent",r.containerState.size+1)(o)}function i(o){return r.containerState.furtherBlankLines||!st(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($2,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,mt(e,e.attempt(Ln,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function G2(e,t,n){const r=this;return mt(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 W2(e){e.exit(this.containerState.type)}function V2(e,t,n){const r=this;return mt(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!st(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const zE={name:"setextUnderline",resolveTo:q2,tokenize:Y2};function q2(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 Y2(e,t,n){const r=this;let a;return i;function i(l){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),a=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===a?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),st(l)?mt(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||Be(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const Z2={tokenize:K2};function K2(e){const t=this,n=e.attempt(Us,r,e.attempt(this.parser.constructs.flowInitial,a,mt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(t2,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 X2={resolveAll:ox()},Q2=sx("string"),J2=sx("text");function sx(e){return{resolveAll:ox(e==="text"?eO: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(c){return l(c)?i(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return l(c)?(n.exit("data"),i(c)):(n.consume(c),u)}function l(c){if(c===null)return!0;const d=a[c];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 ox(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 eO(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 l=a[i];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(l===-2)u=!0,o++;else if(l!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const l={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={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const tO={42:Ln,43:Ln,45:Ln,48:Ln,49:Ln,50:Ln,51:Ln,52:Ln,53:Ln,54:Ln,55:Ln,56:Ln,57:Ln,62:JS},nO={91:s2},rO={[-2]:Il,[-1]:Il,32:Il},aO={35:p2,42:No,45:[zE,No],60:g2,61:zE,95:No,96:jE,126:jE},iO={38:tx,92:ex},sO={[-5]:kl,[-4]:kl,[-3]:kl,33:L2,38:tx,42:Pc,60:[MD,A2],91:M2,92:[c2,ex],93:gg,95:Pc,96:ZD},oO={null:[Pc,X2]},uO={null:[42,95]},lO={null:[]},cO=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:uO,contentInitial:nO,disable:lO,document:tO,flow:aO,flowInitial:rO,insideSpan:oO,string:iO,text:sO},Symbol.toStringTag,{value:"Module"}));function dO(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:A(D),check:A(S),consume:v,enter:x,exit:I,interrupt:A(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:y,events:[],now:b,parser:e,previous:null,sliceSerialize:f,sliceStream:m,write:d};let c=t.tokenize.call(l,u);return t.resolveAll&&i.push(t),l;function d(U){return s=Kn(s,U),E(),s[s.length-1]!==null?[]:(k(t,0),l.events=Zu(i,l.events,l),l.events)}function f(U,j){return fO(m(U),j)}function m(U){return pO(s,U)}function b(){const{_bufferIndex:U,_index:j,line:K,column:X,offset:G}=r;return{_bufferIndex:U,_index:j,line:K,column:X,offset:G}}function y(U){a[U.line]=U.column,w()}function E(){let U;for(;r._index<s.length;){const j=s[r._index];if(typeof j=="string")for(U=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===U&&r._bufferIndex<j.length;)T(j.charCodeAt(r._bufferIndex));else T(j)}}function T(U){c=c(U)}function v(U){Be(U)?(r.line++,r.column=1,r.offset+=U===-3?2:1,w()):U!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=U}function x(U,j){const K=j||{};return K.type=U,K.start=b(),l.events.push(["enter",K,l]),o.push(K),K}function I(U){const j=o.pop();return j.end=b(),l.events.push(["exit",j,l]),j}function D(U,j){k(U,j.from)}function S(U,j){j.restore()}function A(U,j){return K;function K(X,G,oe){let Q,ae,Y,N;return Array.isArray(X)?ie(X):"tokenize"in X?ie([X]):H(X);function H(Ne){return je;function je(be){const ge=be!==null&&Ne[be],pt=be!==null&&Ne.null,ze=[...Array.isArray(ge)?ge:ge?[ge]:[],...Array.isArray(pt)?pt:pt?[pt]:[]];return ie(ze)(be)}}function ie(Ne){return Q=Ne,ae=0,Ne.length===0?oe:R(Ne[ae])}function R(Ne){return je;function je(be){return N=P(),Y=Ne,Ne.partial||(l.currentConstruct=Ne),Ne.name&&l.parser.constructs.disable.null.includes(Ne.name)?Oe():Ne.tokenize.call(j?Object.assign(Object.create(l),j):l,u,ve,Oe)(be)}}function ve(Ne){return U(Y,N),G}function Oe(Ne){return N.restore(),++ae<Q.length?R(Q[ae]):oe}}}function k(U,j){U.resolveAll&&!i.includes(U)&&i.push(U),U.resolve&&jn(l.events,j,l.events.length-j,U.resolve(l.events.slice(j),l)),U.resolveTo&&(l.events=U.resolveTo(l.events,l))}function P(){const U=b(),j=l.previous,K=l.currentConstruct,X=l.events.length,G=Array.from(o);return{from:X,restore:oe};function oe(){r=U,l.previous=j,l.currentConstruct=K,l.events.length=X,o=G,w()}}function w(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function pO(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 fO(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 mO(e){const r={constructs:XS([cO,...(e||{}).extensions||[]]),content:a(ID),defined:[],document:a(RD),flow:a(Z2),lazy:{},string:a(Q2),text:a(J2)};return r;function a(i){return s;function s(o){return dO(r,i,o)}}}function hO(e){for(;!nx(e););return e}const HE=/[\0\t\n\r]/g;function gO(){let e=1,t="",n=!0,r;return a;function a(i,s,o){const u=[];let l,c,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(HE.lastIndex=d,l=HE.exec(i),f=l&&l.index!==void 0?l.index:i.length,m=i.charCodeAt(f),!l){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(c=Math.ceil(e/4)*4,u.push(-2);e++<c;)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 bO=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function EO(e){return e.replace(bO,yO)}function yO(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return QS(n.slice(i?2:1),i?16:10)}return us(n)||e}const ux={}.hasOwnProperty;function TO(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),SO(n)(hO(mO(n).document().write(gO()(e,t,!0))))}function SO(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i($t),autolinkProtocol:P,autolinkEmail:P,atxHeading:i(de),blockQuote:i(pt),characterEscape:P,characterReference:P,codeFenced:i(ze),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(ze,s),codeText:i(Ee,s),codeTextData:P,data:P,codeFlowValue:P,definition:i(Me),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(tt),hardBreakEscape:i(ct),hardBreakTrailing:i(ct),htmlFlow:i(yt,s),htmlFlowData:P,htmlText:i(yt,s),htmlTextData:P,image:i(ht),label:s,link:i($t),listItem:i(zt),listItemValue:f,listOrdered:i(Rt,d),listUnordered:i(Rt),paragraph:i(tn),reference:R,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(de),strong:i(ut),thematicBreak:i(Ze)},exit:{atxHeading:u(),atxHeadingSequence:D,autolink:u(),autolinkEmail:ge,autolinkProtocol:be,blockQuote:u(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:Oe,characterReferenceMarkerNumeric:Oe,characterReferenceValue:Ne,characterReference:je,codeFenced:u(E),codeFencedFence:y,codeFencedFenceInfo:m,codeFencedFenceMeta:b,codeFlowValue:w,codeIndented:u(T),codeText:u(G),codeTextData:w,data:w,definition:u(),definitionDestinationString:I,definitionLabelString:v,definitionTitleString:x,emphasis:u(),hardBreakEscape:u(j),hardBreakTrailing:u(j),htmlFlow:u(K),htmlFlowData:w,htmlText:u(X),htmlTextData:w,image:u(Q),label:Y,labelText:ae,lineEnding:U,link:u(oe),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ve,resourceDestinationString:N,resourceTitleString:H,resource:ie,setextHeading:u(k),setextHeadingLineSequence:A,setextHeadingText:S,strong:u(),thematicBreak:u()}};lx(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(W){let ne={type:"root",children:[]};const Te={stack:[ne],tokenStack:[],config:t,enter:o,exit:l,buffer:s,resume:c,data:n},_e=[];let $e=-1;for(;++$e<W.length;)if(W[$e][1].type==="listOrdered"||W[$e][1].type==="listUnordered")if(W[$e][0]==="enter")_e.push($e);else{const Ke=_e.pop();$e=a(W,Ke,$e)}for($e=-1;++$e<W.length;){const Ke=t[W[$e][0]];ux.call(Ke,W[$e][1].type)&&Ke[W[$e][1].type].call(Object.assign({sliceSerialize:W[$e][2].sliceSerialize},Te),W[$e][1])}if(Te.tokenStack.length>0){const Ke=Te.tokenStack[Te.tokenStack.length-1];(Ke[1]||GE).call(Te,void 0,Ke[0])}for(ne.position={start:Or(W.length>0?W[0][1].start:{line:1,column:1,offset:0}),end:Or(W.length>0?W[W.length-2][1].end:{line:1,column:1,offset:0})},$e=-1;++$e<t.transforms.length;)ne=t.transforms[$e](ne)||ne;return ne}function a(W,ne,Te){let _e=ne-1,$e=-1,Ke=!1,At,Tt,bt,Dt;for(;++_e<=Te;){const ee=W[_e];switch(ee[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ee[0]==="enter"?$e++:$e--,Dt=void 0;break}case"lineEndingBlank":{ee[0]==="enter"&&(At&&!Dt&&!$e&&!bt&&(bt=_e),Dt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Dt=void 0}if(!$e&&ee[0]==="enter"&&ee[1].type==="listItemPrefix"||$e===-1&&ee[0]==="exit"&&(ee[1].type==="listUnordered"||ee[1].type==="listOrdered")){if(At){let ye=_e;for(Tt=void 0;ye--;){const Fe=W[ye];if(Fe[1].type==="lineEnding"||Fe[1].type==="lineEndingBlank"){if(Fe[0]==="exit")continue;Tt&&(W[Tt][1].type="lineEndingBlank",Ke=!0),Fe[1].type="lineEnding",Tt=ye}else if(!(Fe[1].type==="linePrefix"||Fe[1].type==="blockQuotePrefix"||Fe[1].type==="blockQuotePrefixWhitespace"||Fe[1].type==="blockQuoteMarker"||Fe[1].type==="listItemIndent"))break}bt&&(!Tt||bt<Tt)&&(At._spread=!0),At.end=Object.assign({},Tt?W[Tt][1].start:ee[1].end),W.splice(Tt||_e,0,["exit",At,ee[2]]),_e++,Te++}if(ee[1].type==="listItemPrefix"){const ye={type:"listItem",_spread:!1,start:Object.assign({},ee[1].start),end:void 0};At=ye,W.splice(_e,0,["enter",ye,ee[2]]),_e++,Te++,bt=void 0,Dt=!0}}}return W[ne][1]._spread=Ke,Te}function i(W,ne){return Te;function Te(_e){o.call(this,W(_e),_e),ne&&ne.call(this,_e)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(W,ne,Te){this.stack[this.stack.length-1].children.push(W),this.stack.push(W),this.tokenStack.push([ne,Te||void 0]),W.position={start:Or(ne.start),end:void 0}}function u(W){return ne;function ne(Te){W&&W.call(this,Te),l.call(this,Te)}}function l(W,ne){const Te=this.stack.pop(),_e=this.tokenStack.pop();if(_e)_e[0].type!==W.type&&(ne?ne.call(this,W,_e[0]):(_e[1]||GE).call(this,W,_e[0]));else throw new Error("Cannot close `"+W.type+"` ("+Ki({start:W.start,end:W.end})+"): it’s not open");Te.position.end=Or(W.end)}function c(){return hg(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(W){if(this.data.expectingFirstListItemValue){const ne=this.stack[this.stack.length-2];ne.start=Number.parseInt(this.sliceSerialize(W),10),this.data.expectingFirstListItemValue=void 0}}function m(){const W=this.resume(),ne=this.stack[this.stack.length-1];ne.lang=W}function b(){const W=this.resume(),ne=this.stack[this.stack.length-1];ne.meta=W}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const W=this.resume(),ne=this.stack[this.stack.length-1];ne.value=W.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const W=this.resume(),ne=this.stack[this.stack.length-1];ne.value=W.replace(/(\r?\n|\r)$/g,"")}function v(W){const ne=this.resume(),Te=this.stack[this.stack.length-1];Te.label=ne,Te.identifier=nr(this.sliceSerialize(W)).toLowerCase()}function x(){const W=this.resume(),ne=this.stack[this.stack.length-1];ne.title=W}function I(){const W=this.resume(),ne=this.stack[this.stack.length-1];ne.url=W}function D(W){const ne=this.stack[this.stack.length-1];if(!ne.depth){const Te=this.sliceSerialize(W).length;ne.depth=Te}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function A(W){const ne=this.stack[this.stack.length-1];ne.depth=this.sliceSerialize(W).codePointAt(0)===61?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function P(W){const Te=this.stack[this.stack.length-1].children;let _e=Te[Te.length-1];(!_e||_e.type!=="text")&&(_e=Ae(),_e.position={start:Or(W.start),end:void 0},Te.push(_e)),this.stack.push(_e)}function w(W){const ne=this.stack.pop();ne.value+=this.sliceSerialize(W),ne.position.end=Or(W.end)}function U(W){const ne=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Te=ne.children[ne.children.length-1];Te.position.end=Or(W.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ne.type)&&(P.call(this,W),w.call(this,W))}function j(){this.data.atHardBreak=!0}function K(){const W=this.resume(),ne=this.stack[this.stack.length-1];ne.value=W}function X(){const W=this.resume(),ne=this.stack[this.stack.length-1];ne.value=W}function G(){const W=this.resume(),ne=this.stack[this.stack.length-1];ne.value=W}function oe(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=ne,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function Q(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=ne,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function ae(W){const ne=this.sliceSerialize(W),Te=this.stack[this.stack.length-2];Te.label=EO(ne),Te.identifier=nr(ne).toLowerCase()}function Y(){const W=this.stack[this.stack.length-1],ne=this.resume(),Te=this.stack[this.stack.length-1];if(this.data.inReference=!0,Te.type==="link"){const _e=W.children;Te.children=_e}else Te.alt=ne}function N(){const W=this.resume(),ne=this.stack[this.stack.length-1];ne.url=W}function H(){const W=this.resume(),ne=this.stack[this.stack.length-1];ne.title=W}function ie(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function ve(W){const ne=this.resume(),Te=this.stack[this.stack.length-1];Te.label=ne,Te.identifier=nr(this.sliceSerialize(W)).toLowerCase(),this.data.referenceType="full"}function Oe(W){this.data.characterReferenceType=W.type}function Ne(W){const ne=this.sliceSerialize(W),Te=this.data.characterReferenceType;let _e;Te?(_e=QS(ne,Te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_e=us(ne);const $e=this.stack[this.stack.length-1];$e.value+=_e}function je(W){const ne=this.stack.pop();ne.position.end=Or(W.end)}function be(W){w.call(this,W);const ne=this.stack[this.stack.length-1];ne.url=this.sliceSerialize(W)}function ge(W){w.call(this,W);const ne=this.stack[this.stack.length-1];ne.url="mailto:"+this.sliceSerialize(W)}function pt(){return{type:"blockquote",children:[]}}function ze(){return{type:"code",lang:null,meta:null,value:""}}function Ee(){return{type:"inlineCode",value:""}}function Me(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function tt(){return{type:"emphasis",children:[]}}function de(){return{type:"heading",depth:0,children:[]}}function ct(){return{type:"break"}}function yt(){return{type:"html",value:""}}function ht(){return{type:"image",title:null,url:"",alt:null}}function $t(){return{type:"link",title:null,url:"",children:[]}}function Rt(W){return{type:"list",ordered:W.type==="listOrdered",start:null,spread:W._spread,children:[]}}function zt(W){return{type:"listItem",spread:W._spread,checked:null,children:[]}}function tn(){return{type:"paragraph",children:[]}}function ut(){return{type:"strong",children:[]}}function Ae(){return{type:"text",value:""}}function Ze(){return{type:"thematicBreak"}}}function Or(e){return{line:e.line,column:e.column,offset:e.offset}}function lx(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?lx(e,r):xO(e,r)}}function xO(e,t){let n;for(n in t)if(ux.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 GE(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ki({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ki({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ki({start:t.start,end:t.end})+") is still open")}function AO(e){const t=this;t.parser=n;function n(r){return TO(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function _O(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 vO(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
20
+ `}]}function wO(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 NO(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function CO(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function IO(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=ci(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 l={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,l),e.applyData(t,l)}function kO(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 RO(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function cx(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 DO(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return cx(e,t);const a={src:ci(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 OO(e,t){const n={src:ci(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 LO(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 FO(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return cx(e,t);const a={href:ci(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 MO(e,t){const n={href:ci(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 PO(e,t,n){const r=e.all(t),a=n?BO(n):dx(t),i={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(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 c=r[o];(a||o!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
22
+ `}),c.type==="element"&&c.tagName==="p"&&!a?s.push(...c.children):s.push(c)}const u=r[r.length-1];u&&(a||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
23
+ `});const l={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,l),e.applyData(t,l)}function BO(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=dx(n[r])}return t}function dx(e){const t=e.spread;return t??e.children.length>1}function UO(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 jO(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $O(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function zO(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function HO(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=br(t.children[1]),u=qu(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 GO(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 l=[];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)),l.push(b)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)}function WO(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const WE=9,VE=32;function VO(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const i=[];for(;r;)i.push(qE(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(qE(t.slice(a),a>0,!1)),i.join("")}function qE(e,t,n){let r=0,a=e.length;if(t){let i=e.codePointAt(r);for(;i===WE||i===VE;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(a-1);for(;i===WE||i===VE;)a--,i=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function qO(e,t){const n={type:"text",value:VO(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function YO(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const ZO={blockquote:_O,break:vO,code:wO,delete:NO,emphasis:CO,footnoteReference:IO,heading:kO,html:RO,imageReference:DO,image:OO,inlineCode:LO,linkReference:FO,link:MO,listItem:PO,list:UO,paragraph:jO,root:$O,strong:zO,table:HO,tableCell:WO,tableRow:GO,text:qO,thematicBreak:YO,toml:ro,yaml:ro,definition:ro,footnoteDefinition:ro};function ro(){}function KO(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 XO(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function QO(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||KO,r=e.options.footnoteBackLabel||XO,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 l=e.footnoteById.get(e.footnoteOrder[u]);if(!l)continue;const c=e.all(l),d=String(l.identifier).toUpperCase(),f=ci(d.toLowerCase());let m=0;const b=[],y=e.footnoteCounts.get(d);for(;y!==void 0&&++m<=y;){b.length>0&&b.push({type:"text",value:" "});let v=typeof n=="string"?n:n(u,m);typeof v=="string"&&(v={type:"text",value:v}),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(v)?v:[v]})}const E=c[c.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const v=E.children[E.children.length-1];v&&v.type==="text"?v.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...b)}else c.push(...b);const T={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(l,T),o.push(T)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...sa(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 Bc={}.hasOwnProperty,JO={};function eL(e,t){const n=t||JO,r=new Map,a=new Map,i=new Map,s={...ZO,...n.handlers},o={all:l,applyData:nL,definitionById:r,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:s,one:u,options:n,patch:tL,wrap:aL};return Fn(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?r:a,f=String(c.identifier).toUpperCase();d.has(f)||d.set(f,c)}}),o;function u(c,d){const f=c.type,m=o.handlers[f];if(Bc.call(o.handlers,f)&&m)return m(o,c,d);if(o.options.passThrough&&o.options.passThrough.includes(f)){if("children"in c){const{children:y,...E}=c,T=sa(E);return T.children=o.all(c),T}return sa(c)}return(o.options.unknownHandler||rL)(o,c,d)}function l(c){const d=[];if("children"in c){const f=c.children;let m=-1;for(;++m<f.length;){const b=o.one(f[m],c);if(b){if(m&&f[m-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=YE(b.value)),!Array.isArray(b)&&b.type==="element")){const y=b.children[0];y&&y.type==="text"&&(y.value=YE(y.value))}Array.isArray(b)?d.push(...b):d.push(b)}}}return d}}function tL(e,t){e.position&&(t.position=OR(e))}function nL(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,sa(i)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function rL(e,t){const n=t.data||{},r="value"in t&&!(Bc.call(n,"hProperties")||Bc.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 aL(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 YE(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ZE(e,t){const n=eL(e,t),r=n.one(e,void 0),a=QO(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 iL(e,t){return e&&"run"in e?async function(n,r){const a=ZE(n,{file:r,...t});await e.run(a,r)}:function(n,r){return ZE(n,{file:r,...e||t})}}function KE(e){if(e)throw e}var Rl,XE;function sL(){if(XE)return Rl;XE=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},i=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var c=e.call(l,"constructor"),d=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!c&&!d)return!1;var f;for(f in l);return typeof f>"u"||e.call(l,f)},s=function(l,c){n&&c.name==="__proto__"?n(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},o=function(l,c){if(c==="__proto__")if(e.call(l,c)){if(r)return r(l,c).value}else return;return l[c]};return Rl=function u(){var l,c,d,f,m,b,y=arguments[0],E=1,T=arguments.length,v=!1;for(typeof y=="boolean"&&(v=y,y=arguments[1]||{},E=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});E<T;++E)if(l=arguments[E],l!=null)for(c in l)d=o(y,c),f=o(l,c),y!==f&&(v&&f&&(i(f)||(m=a(f)))?(m?(m=!1,b=d&&a(d)?d:[]):b=d&&i(d)?d:{},s(y,{name:c,newValue:u(v,b,f)})):typeof f<"u"&&s(y,{name:c,newValue:f}));return y},Rl}var oL=sL();const Dl=du(oL);function Uc(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 uL(){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,...l){const c=e[++i];let d=-1;if(u){s(u);return}for(;++d<a.length;)(l[d]===null||l[d]===void 0)&&(l[d]=a[d]);a=l,c?lL(c,o)(...l):s(null,...l)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function lL(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(l){const c=l;if(o&&n)throw c;return a(c)}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 pr={basename:cL,dirname:dL,extname:pL,join:fL,sep:"/"};function cL(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');js(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 dL(e){if(js(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 pL(e){js(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 fL(...e){let t=-1,n;for(;++t<e.length;)js(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":mL(n)}function mL(e){js(e);const t=e.codePointAt(0)===47;let n=hL(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function hL(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 js(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const gL={cwd:bL};function bL(){return"/"}function jc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function EL(e){if(typeof e=="string")e=new URL(e);else if(!jc(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 yL(e)}function yL(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 Ol=["history","path","basename","stem","extname","dirname"];class Ho{constructor(t){let n;t?jc(t)?n={path:t}:typeof t=="string"||TL(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":gL.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ol.length;){const i=Ol[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)Ol.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?pr.basename(this.path):void 0}set basename(t){Fl(t,"basename"),Ll(t,"basename"),this.path=pr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?pr.dirname(this.path):void 0}set dirname(t){QE(this.basename,"dirname"),this.path=pr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?pr.extname(this.path):void 0}set extname(t){if(Ll(t,"extname"),QE(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=pr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){jc(t)&&(t=EL(t)),Fl(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?pr.basename(this.path,this.extname):void 0}set stem(t){Fl(t,"stem"),Ll(t,"stem"),this.path=pr.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 yn(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 Ll(e,t){if(e&&e.includes(pr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+pr.sep+"`")}function Fl(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function QE(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function TL(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const SL=(function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,r),i}),xL={}.hasOwnProperty;class bg extends SL{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=uL()}copy(){const t=new bg;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Dl(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Bl("data",this.frozen),this.namespace[t]=n,this):xL.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Bl("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=ao(t),r=this.parser||this.Parser;return Ml("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ml("process",this.parser||this.Parser),Pl("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,s){const o=ao(t),u=r.parse(o);r.run(u,o,function(c,d,f){if(c||!d||!f)return l(c);const m=d,b=r.stringify(m,f);_L(b)?f.value=b:f.result=b,l(c,f)});function l(c,d){c||!d?s(c):i?i(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),Ml("processSync",this.parser||this.Parser),Pl("processSync",this.compiler||this.Compiler),this.process(t,a),e0("processSync","process",n),r;function a(i,s){n=!0,KE(i),r=s}}run(t,n,r){JE(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=ao(n);a.run(t,u,l);function l(c,d,f){const m=d||t;c?o(c):s?s(m):r(void 0,m,f)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),e0("runSync","run",r),a;function i(s,o){KE(s),a=o,r=!0}}stringify(t,n){this.freeze();const r=ao(n),a=this.compiler||this.Compiler;return Pl("stringify",a),JE(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(Bl("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(l){if(typeof l=="function")u(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[c,...d]=l;u(c,d)}else s(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function s(l){if(!("plugins"in l)&&!("settings"in l))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(l.plugins),l.settings&&(a.settings=Dl(!0,a.settings,l.settings))}function o(l){let c=-1;if(l!=null)if(Array.isArray(l))for(;++c<l.length;){const d=l[c];i(d)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function u(l,c){let d=-1,f=-1;for(;++d<r.length;)if(r[d][0]===l){f=d;break}if(f===-1)r.push([l,...c]);else if(c.length>0){let[m,...b]=c;const y=r[f][1];Uc(y)&&Uc(m)&&(m=Dl(!0,y,m)),r[f]=[l,m,...b]}}}}const px=new bg().freeze();function Ml(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Pl(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Bl(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 JE(e){if(!Uc(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function e0(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ao(e){return AL(e)?e:new Ho(e)}function AL(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function _L(e){return typeof e=="string"||vL(e)}function vL(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const wL="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",t0=[],n0={allowDangerousHtml:!0},NL=/^(https?|ircs?|mailto|xmpp)$/i,CL=[{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 IL(e){const t=kL(e),n=RL(e);return DL(t.runSync(t.parse(n),n),e)}function kL(e){const t=e.rehypePlugins||t0,n=e.remarkPlugins||t0,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...n0}:n0;return px().use(AO).use(n).use(iL,r).use(t)}function RL(e){const t=e.children||"",n=new Ho;return typeof t=="string"&&(n.value=t),n}function DL(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,i=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,u=t.urlTransform||OL;for(const c of CL)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+wL+c.id,void 0);return Fn(e,l),sD(e,{Fragment:p.Fragment,components:a,ignoreInvalidStyle:!0,jsx:p.jsx,jsxs:p.jsxs,passKeys:!0,passNode:!0});function l(c,d,f){if(c.type==="raw"&&f&&typeof d=="number")return s?f.children.splice(d,1):f.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let m;for(m in Cl)if(Object.hasOwn(Cl,m)&&Object.hasOwn(c.properties,m)){const b=c.properties[m],y=Cl[m];(y===null||y.includes(c.tagName))&&(c.properties[m]=u(String(b||""),m,c))}}if(c.type==="element"){let m=n?!n.includes(c.tagName):i?i.includes(c.tagName):!1;if(!m&&r&&typeof d=="number"&&(m=!r(c,d,f)),m&&f&&typeof d=="number")return o&&c.children?f.children.splice(d,1,...c.children):f.children.splice(d,1),d}}}function OL(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||NL.test(e.slice(0,t))?e:""}function Go(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 LL(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function FL(e,t,n){const a=vs((n||{}).ignore||[]),i=ML(t);let s=-1;for(;++s<i.length;)md(e,"text",o);function o(l,c){let d=-1,f;for(;++d<c.length;){const m=c[d],b=f?f.children:void 0;if(a(m,b?b.indexOf(m):void 0,f))return;f=m}if(f)return u(l,c)}function u(l,c){const d=c[c.length-1],f=i[s][0],m=i[s][1];let b=0;const E=d.children.indexOf(l);let T=!1,v=[];f.lastIndex=0;let x=f.exec(l.value);for(;x;){const I=x.index,D={index:x.index,input:x.input,stack:[...c,l]};let S=m(...x,D);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?f.lastIndex=I+1:(b!==I&&v.push({type:"text",value:l.value.slice(b,I)}),Array.isArray(S)?v.push(...S):S&&v.push(S),b=I+x[0].length,T=!0),!f.global)break;x=f.exec(l.value)}return T?(b<l.value.length&&v.push({type:"text",value:l.value.slice(b)}),d.children.splice(E,1,...v)):v=[l],E+v.length}}function ML(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([PL(a[0]),BL(a[1])])}return t}function PL(e){return typeof e=="string"?new RegExp(LL(e),"g"):e}function BL(e){return typeof e=="function"?e:function(){return e}}const Ul="phrasing",jl=["autolink","link","image","label"];function UL(){return{transforms:[VL],enter:{literalAutolink:$L,literalAutolinkEmail:$l,literalAutolinkHttp:$l,literalAutolinkWww:$l},exit:{literalAutolink:WL,literalAutolinkEmail:GL,literalAutolinkHttp:zL,literalAutolinkWww:HL}}}function jL(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ul,notInConstruct:jl},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ul,notInConstruct:jl},{character:":",before:"[ps]",after:"\\/",inConstruct:Ul,notInConstruct:jl}]}}function $L(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function $l(e){this.config.enter.autolinkProtocol.call(this,e)}function zL(e){this.config.exit.autolinkProtocol.call(this,e)}function HL(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 GL(e){this.config.exit.autolinkEmail.call(this,e)}function WL(e){this.exit(e)}function VL(e){FL(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,qL],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,YL]],{ignore:["link","linkReference"]})}function qL(e,t,n,r,a){let i="";if(!fx(a)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!ZL(n)))return!1;const s=KL(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 YL(e,t,n,r){return!fx(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ZL(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 KL(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=Go(e,"(");let i=Go(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 fx(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||oa(n)||Yu(n))&&(!t||n!==47)}mx.peek=i3;function XL(){this.buffer()}function QL(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function JL(){this.buffer()}function e3(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function t3(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=nr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function n3(e){this.exit(e)}function r3(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=nr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function a3(e){this.exit(e)}function i3(){return"["}function mx(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 s3(){return{enter:{gfmFootnoteCallString:XL,gfmFootnoteCall:QL,gfmFootnoteDefinitionLabelString:JL,gfmFootnoteDefinition:e3},exit:{gfmFootnoteCallString:t3,gfmFootnoteCall:n3,gfmFootnoteDefinitionLabelString:r3,gfmFootnoteDefinition:a3}}}function o3(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:mx},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,i,s){const o=i.createTracker(s);let u=o.move("[^");const l=i.enter("footnoteDefinition"),c=i.enter("label");return u+=o.move(i.safe(i.associationId(r),{before:u,after:"]"})),c(),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?hx:u3))),l(),u}}function u3(e,t,n){return t===0?e:hx(e,t,n)}function hx(e,t,n){return(n?"":" ")+e}const l3=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];gx.peek=m3;function c3(){return{canContainEols:["delete"],enter:{strikethrough:p3},exit:{strikethrough:f3}}}function d3(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:l3}],handlers:{delete:gx}}}function p3(e){this.enter({type:"delete",children:[]},e)}function f3(e){this.exit(e)}function gx(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 m3(){return"~"}function h3(e){return e.length}function g3(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||h3,i=[],s=[],o=[],u=[];let l=0,c=-1;for(;++c<e.length;){const y=[],E=[];let T=-1;for(e[c].length>l&&(l=e[c].length);++T<e[c].length;){const v=b3(e[c][T]);if(n.alignDelimiters!==!1){const x=a(v);E[T]=x,(u[T]===void 0||x>u[T])&&(u[T]=x)}y.push(v)}s[c]=y,o[c]=E}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<l;)i[d]=r0(r[d]);else{const y=r0(r);for(;++d<l;)i[d]=y}d=-1;const f=[],m=[];for(;++d<l;){const y=i[d];let E="",T="";y===99?(E=":",T=":"):y===108?E=":":y===114&&(T=":");let v=n.alignDelimiters===!1?1:Math.max(1,u[d]-E.length-T.length);const x=E+"-".repeat(v)+T;n.alignDelimiters!==!1&&(v=E.length+v+T.length,v>u[d]&&(u[d]=v),m[d]=v),f[d]=x}s.splice(1,0,f),o.splice(1,0,m),c=-1;const b=[];for(;++c<s.length;){const y=s[c],E=o[c];d=-1;const T=[];for(;++d<l;){const v=y[d]||"";let x="",I="";if(n.alignDelimiters!==!1){const D=u[d]-(E[d]||0),S=i[d];S===114?x=" ".repeat(D):S===99?D%2?(x=" ".repeat(D/2+.5),I=" ".repeat(D/2-.5)):(x=" ".repeat(D/2),I=x):I=" ".repeat(D)}n.delimiterStart!==!1&&!d&&T.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&v==="")&&(n.delimiterStart!==!1||d)&&T.push(" "),n.alignDelimiters!==!1&&T.push(x),T.push(v),n.alignDelimiters!==!1&&T.push(I),n.padding!==!1&&T.push(" "),(n.delimiterEnd!==!1||d!==l-1)&&T.push("|")}b.push(n.delimiterEnd===!1?T.join("").replace(/ +$/,""):T.join(""))}return b.join(`
31
+ `)}function b3(e){return e==null?"":String(e)}function r0(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 E3(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()),y3);return a(),s}function y3(e,t,n){return">"+(n?"":" ")+e}function T3(e,t){return a0(e,t.inConstruct,!0)&&!a0(e,t.notInConstruct,!1)}function a0(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 i0(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
32
+ `&&T3(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
33
+ `}function S3(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 x3(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 A3(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 _3(e,t,n,r){const a=A3(n),i=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(x3(e,n)){const d=n.enter("codeIndented"),f=n.indentLines(i,v3);return d(),f}const o=n.createTracker(r),u=a.repeat(Math.max(S3(i,a)+1,3)),l=n.enter("codeFenced");let c=o.move(u);if(e.lang){const d=n.enter(`codeFencedLang${s}`);c+=o.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(n.safe(e.meta,{before:c,after:`
34
+ `,encode:["`"],...o.current()})),d()}return c+=o.move(`
35
+ `),i&&(c+=o.move(i+`
36
+ `)),c+=o.move(u),l(),c}function v3(e,t,n){return(n?"":" ")+e}function Eg(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 w3(e,t,n,r){const a=Eg(n),i=a==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const u=n.createTracker(r);let l=u.move("[");return l+=u.move(n.safe(n.associationId(e),{before:l,after:"]",...u.current()})),l+=u.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(n.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(o=n.enter("destinationRaw"),l+=u.move(n.safe(e.url,{before:l,after:e.title?" ":`
37
+ `,...u.current()}))),o(),e.title&&(o=n.enter(`title${i}`),l+=u.move(" "+a),l+=u.move(n.safe(e.title,{before:l,after:a,...u.current()})),l+=u.move(a),o()),s(),l}function N3(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 ps(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Wo(e,t,n){const r=qa(e),a=qa(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}}bx.peek=C3;function bx(e,t,n,r){const a=N3(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 l=u.charCodeAt(0),c=Wo(r.before.charCodeAt(r.before.length-1),l,a);c.inside&&(u=ps(l)+u.slice(1));const d=u.charCodeAt(u.length-1),f=Wo(r.after.charCodeAt(0),d,a);f.inside&&(u=u.slice(0,-1)+ps(d));const m=s.move(a);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},o+u+m}function C3(e,t,n){return n.options.emphasis||"*"}function I3(e,t){let n=!1;return Fn(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Lo}),!!((!e.depth||e.depth<3)&&hg(e)&&(t.options.setext||n))}function k3(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(I3(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),f=n.containerPhrasing(e,{...i.current(),before:`
38
+ `,after:`
39
+ `});return d(),c(),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 l=n.containerPhrasing(e,{before:"# ",after:`
42
+ `,...i.current()});return/^[\t ]/.test(l)&&(l=ps(l.charCodeAt(0))+l.slice(1)),l=l?s+" "+l:s,n.options.closeAtx&&(l+=" "+s),u(),o(),l}Ex.peek=R3;function Ex(e){return e.value||""}function R3(){return"<"}yx.peek=D3;function yx(e,t,n,r){const a=Eg(n),i=a==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const u=n.createTracker(r);let l=u.move("![");return l+=u.move(n.safe(e.alt,{before:l,after:"]",...u.current()})),l+=u.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(n.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(o=n.enter("destinationRaw"),l+=u.move(n.safe(e.url,{before:l,after:e.title?" ":")",...u.current()}))),o(),e.title&&(o=n.enter(`title${i}`),l+=u.move(" "+a),l+=u.move(n.safe(e.title,{before:l,after:a,...u.current()})),l+=u.move(a),o()),l+=u.move(")"),s(),l}function D3(){return"!"}Tx.peek=O3;function Tx(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 l=n.safe(e.alt,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=c,i(),a==="full"||!l||l!==d?u+=o.move(d+"]"):a==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function O3(){return"!"}Sx.peek=L3;function Sx(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 l=u.index;r.charCodeAt(l)===10&&r.charCodeAt(l-1)===13&&l--,r=r.slice(0,l)+" "+r.slice(u.index+1)}}return a+r+a}function L3(){return"`"}function xx(e,t){const n=hg(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))}Ax.peek=F3;function Ax(e,t,n,r){const a=Eg(n),i=a==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,u;if(xx(e,n)){const c=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=c,d}o=n.enter("link"),u=n.enter("label");let l=s.move("[");return l+=s.move(n.containerPhrasing(e,{before:l,after:"](",...s.current()})),l+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(n.safe(e.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(u=n.enter("destinationRaw"),l+=s.move(n.safe(e.url,{before:l,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${i}`),l+=s.move(" "+a),l+=s.move(n.safe(e.title,{before:l,after:a,...s.current()})),l+=s.move(a),u()),l+=s.move(")"),o(),l}function F3(e,t,n){return xx(e,n)?"<":"["}_x.peek=M3;function _x(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 l=n.containerPhrasing(e,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=c,i(),a==="full"||!l||l!==d?u+=o.move(d+"]"):a==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function M3(){return"["}function yg(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 P3(e){const t=yg(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 B3(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 vx(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 U3(e,t,n,r){const a=n.enter("list"),i=n.bulletCurrent;let s=e.ordered?B3(n):yg(n);const o=e.ordered?s==="."?")":".":P3(n);let u=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.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),vx(n)===s&&c){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 l=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=i,a(),l}function j3(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 $3(e,t,n,r){const a=j3(n);let i=n.bulletCurrent||yg(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"),l=n.indentLines(n.containerFlow(e,o.current()),c);return u(),l;function c(d,f,m){return f?(m?"":" ".repeat(s))+d:(m?i:i+" ".repeat(s-i.length))+d}}function z3(e,t,n,r){const a=n.enter("paragraph"),i=n.enter("phrasing"),s=n.containerPhrasing(e,r);return i(),a(),s}const H3=vs(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function G3(e,t,n,r){return(e.children.some(function(s){return H3(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function W3(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}wx.peek=V3;function wx(e,t,n,r){const a=W3(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 l=u.charCodeAt(0),c=Wo(r.before.charCodeAt(r.before.length-1),l,a);c.inside&&(u=ps(l)+u.slice(1));const d=u.charCodeAt(u.length-1),f=Wo(r.after.charCodeAt(0),d,a);f.inside&&(u=u.slice(0,-1)+ps(d));const m=s.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},o+u+m}function V3(e,t,n){return n.options.strong||"*"}function q3(e,t,n,r){return n.safe(e.value,r)}function Y3(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 Z3(e,t,n){const r=(vx(n)+(n.options.ruleSpaces?" ":"")).repeat(Y3(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Nx={blockquote:E3,break:i0,code:_3,definition:w3,emphasis:bx,hardBreak:i0,heading:k3,html:Ex,image:yx,imageReference:Tx,inlineCode:Sx,link:Ax,linkReference:_x,list:U3,listItem:$3,paragraph:z3,root:G3,strong:wx,text:q3,thematicBreak:Z3};function K3(){return{enter:{table:X3,tableData:s0,tableHeader:s0,tableRow:J3},exit:{codeText:eF,table:Q3,tableData:zl,tableHeader:zl,tableRow:zl}}}function X3(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 Q3(e){this.exit(e),this.data.inTable=void 0}function J3(e){this.enter({type:"tableRow",children:[]},e)}function zl(e){this.exit(e)}function s0(e){this.enter({type:"tableCell",children:[]},e)}function eF(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,tF));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function tF(e,t){return t==="|"?t:e}function nF(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,y,E){return l(c(m,y,E),m.align)}function o(m,b,y,E){const T=d(m,y,E),v=l([T]);return v.slice(0,v.indexOf(`
44
+ `))}function u(m,b,y,E){const T=y.enter("tableCell"),v=y.enter("phrasing"),x=y.containerPhrasing(m,{...E,before:i,after:i});return v(),T(),x}function l(m,b){return g3(m,{align:b,alignDelimiters:r,padding:n,stringLength:a})}function c(m,b,y){const E=m.children;let T=-1;const v=[],x=b.enter("table");for(;++T<E.length;)v[T]=d(E[T],b,y);return x(),v}function d(m,b,y){const E=m.children;let T=-1;const v=[],x=b.enter("tableRow");for(;++T<E.length;)v[T]=u(E[T],m,b,y);return x(),v}function f(m,b,y){let E=Nx.inlineCode(m,b,y);return y.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function rF(){return{exit:{taskListCheckValueChecked:o0,taskListCheckValueUnchecked:o0,paragraph:iF}}}function aF(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:sF}}}function o0(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function iF(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 sF(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=Nx.listItem(e,t,n,{...r,...o.current()});return i&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),u;function l(c){return c+s}}function oF(){return[UL(),s3(),c3(),K3(),rF()]}function uF(e){return{extensions:[jL(),o3(e),d3(),nF(e),aF()]}}const lF={tokenize:hF,partial:!0},Cx={tokenize:gF,partial:!0},Ix={tokenize:bF,partial:!0},kx={tokenize:EF,partial:!0},cF={tokenize:yF,partial:!0},Rx={name:"wwwAutolink",tokenize:fF,previous:Ox},Dx={name:"protocolAutolink",tokenize:mF,previous:Lx},Cr={name:"emailAutolink",tokenize:pF,previous:Fx},Er={};function dF(){return{text:Er}}let Qr=48;for(;Qr<123;)Er[Qr]=Cr,Qr++,Qr===58?Qr=65:Qr===91&&(Qr=97);Er[43]=Cr;Er[45]=Cr;Er[46]=Cr;Er[95]=Cr;Er[72]=[Cr,Dx];Er[104]=[Cr,Dx];Er[87]=[Cr,Rx];Er[119]=[Cr,Rx];function pF(e,t,n){const r=this;let a,i;return s;function s(d){return!$c(d)||!Fx.call(r,r.previous)||Tg(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(d))}function o(d){return $c(d)?(e.consume(d),o):d===64?(e.consume(d),u):n(d)}function u(d){return d===46?e.check(cF,c,l)(d):d===45||d===95||An(d)?(i=!0,e.consume(d),u):c(d)}function l(d){return e.consume(d),a=!0,u}function c(d){return i&&a&&Cn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function fF(e,t,n){const r=this;return a;function a(s){return s!==87&&s!==119||!Ox.call(r,r.previous)||Tg(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(lF,e.attempt(Cx,e.attempt(Ix,i),n),n)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function mF(e,t,n){const r=this;let a="",i=!1;return s;function s(d){return(d===72||d===104)&&Lx.call(r,r.previous)&&!Tg(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(d),e.consume(d),o):n(d)}function o(d){if(Cn(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?l:(i=!0,u)):n(d)}function l(d){return d===null||zo(d)||Nt(d)||oa(d)||Yu(d)?n(d):e.attempt(Cx,e.attempt(Ix,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function hF(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 gF(e,t,n){let r,a,i;return s;function s(l){return l===46||l===95?e.check(kx,u,o)(l):l===null||Nt(l)||oa(l)||l!==45&&Yu(l)?u(l):(i=!0,e.consume(l),s)}function o(l){return l===95?r=!0:(a=r,r=void 0),e.consume(l),s}function u(l){return a||r||!i?n(l):t(l)}}function bF(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(kx,t,i)(s):s===null||Nt(s)||oa(s)?t(s):(e.consume(s),a)}function i(s){return s===41&&r++,e.consume(s),a}}function EF(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||Nt(o)||oa(o)?t(o):n(o)}function a(o){return o===null||o===40||o===91||Nt(o)||oa(o)?t(o):r(o)}function i(o){return Cn(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),r):Cn(o)?(e.consume(o),s):n(o)}}function yF(e,t,n){return r;function r(i){return e.consume(i),a}function a(i){return An(i)?n(i):t(i)}}function Ox(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Nt(e)}function Lx(e){return!Cn(e)}function Fx(e){return!(e===47||$c(e))}function $c(e){return e===43||e===45||e===46||e===95||An(e)}function Tg(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 TF={tokenize:CF,partial:!0};function SF(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:vF,continuation:{tokenize:wF},exit:NF}},text:{91:{name:"gfmFootnoteCall",tokenize:_F},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:xF,resolveTo:AF}}}}function xF(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 l=nr(r.sliceSerialize({start:s.end,end:r.now()}));return l.codePointAt(0)!==94||!i.includes(l.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function AF(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 _F(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",l)}function l(d){if(i>999||d===93&&!s||d===null||d===91||Nt(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return a.includes(nr(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Nt(d)||(s=!0),i++,e.consume(d),d===92?c:l}function c(d){return d===91||d===92||d===93?(e.consume(d),i++,l):l(d)}}function vF(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"),l}function l(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(b)}function c(b){if(s>999||b===93&&!o||b===null||b===91||Nt(b))return n(b);if(b===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return i=nr(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Nt(b)||(o=!0),s++,e.consume(b),b===92?d:c}function d(b){return b===91||b===92||b===93?(e.consume(b),s++,c):c(b)}function f(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),a.includes(i)||a.push(i),mt(e,m,"gfmFootnoteDefinitionWhitespace")):n(b)}function m(b){return t(b)}}function wF(e,t,n){return e.check(Us,t,e.attempt(TF,t,n))}function NF(e){e.exit("gfmFootnoteDefinition")}function CF(e,t,n){const r=this;return mt(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 IF(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 l=u;for(;l--;)if(s[l][0]==="exit"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._open&&s[u][1].end.offset-s[u][1].start.offset===s[l][1].end.offset-s[l][1].start.offset){s[u][1].type="strikethroughSequence",s[l][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[l][1].start),end:Object.assign({},s[u][1].end)},d={type:"strikethroughText",start:Object.assign({},s[l][1].end),end:Object.assign({},s[u][1].start)},f=[["enter",c,o],["enter",s[l][1],o],["exit",s[l][1],o],["enter",d,o]],m=o.parser.constructs.insideSpan.null;m&&jn(f,f.length,0,Zu(m,s.slice(l+1,u),o)),jn(f,f.length,0,[["exit",d,o],["enter",s[u][1],o],["exit",s[u][1],o],["exit",c,o]]),jn(s,l-1,u-l+3,f),u=l+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 l=this.previous,c=this.events;let d=0;return f;function f(b){return l===126&&c[c.length-1][1].type!=="characterEscape"?u(b):(s.enter("strikethroughSequenceTemporary"),m(b))}function m(b){const y=qa(l);if(b===126)return d>1?u(b):(s.consume(b),d++,m);if(d<2&&!n)return u(b);const E=s.exit("strikethroughSequenceTemporary"),T=qa(b);return E._open=!T||T===2&&!!y,E._close=!y||y===2&&!!T,o(b)}}}class kF{constructor(){this.map=[]}add(t,n,r){RF(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 RF(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 DF(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 OF(){return{flow:{null:{name:"table",tokenize:LF,resolveAll:FF}}}}function LF(e,t,n){const r=this;let a=0,i=0,s;return o;function o(w){let U=r.events.length-1;for(;U>-1;){const X=r.events[U][1].type;if(X==="lineEnding"||X==="linePrefix")U--;else break}const j=U>-1?r.events[U][1].type:null,K=j==="tableHead"||j==="tableRow"?S:u;return K===S&&r.parser.lazy[r.now().line]?n(w):K(w)}function u(w){return e.enter("tableHead"),e.enter("tableRow"),l(w)}function l(w){return w===124||(s=!0,i+=1),c(w)}function c(w){return w===null?n(w):Be(w)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),m):n(w):st(w)?mt(e,c,"whitespace")(w):(i+=1,s&&(s=!1,a+=1),w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(w)))}function d(w){return w===null||w===124||Nt(w)?(e.exit("data"),c(w)):(e.consume(w),w===92?f:d)}function f(w){return w===92||w===124?(e.consume(w),d):d(w)}function m(w){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(w):(e.enter("tableDelimiterRow"),s=!1,st(w)?mt(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):b(w))}function b(w){return w===45||w===58?E(w):w===124?(s=!0,e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),y):D(w)}function y(w){return st(w)?mt(e,E,"whitespace")(w):E(w)}function E(w){return w===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),T):w===45?(i+=1,T(w)):w===null||Be(w)?I(w):D(w)}function T(w){return w===45?(e.enter("tableDelimiterFiller"),v(w)):D(w)}function v(w){return w===45?(e.consume(w),v):w===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(w))}function x(w){return st(w)?mt(e,I,"whitespace")(w):I(w)}function I(w){return w===124?b(w):w===null||Be(w)?!s||a!==i?D(w):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(w)):D(w)}function D(w){return n(w)}function S(w){return e.enter("tableRow"),A(w)}function A(w){return w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),A):w===null||Be(w)?(e.exit("tableRow"),t(w)):st(w)?mt(e,A,"whitespace")(w):(e.enter("data"),k(w))}function k(w){return w===null||w===124||Nt(w)?(e.exit("data"),A(w)):(e.consume(w),w===92?P:k)}function P(w){return w===92||w===124?(e.consume(w),k):k(w)}}function FF(e,t){let n=-1,r=!0,a=0,i=[0,0,0,0],s=[0,0,0,0],o=!1,u=0,l,c,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&&(u0(f,t,u,l,c),c=void 0,u=0),l={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(n,0,[["enter",l,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,c={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(n,0,[["enter",c,t]])),a=b.type==="tableDelimiterRow"?2:c?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=io(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=io(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=io(f,t,i,a,n,d)):s[1]!==0&&(d=io(f,t,s,a,n,d)),a=0):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(s[3]=n)}for(u!==0&&u0(f,t,u,l,c),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=DF(t.events,n))}return e}function io(e,t,n,r,a,i){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(i.end=Object.assign({},ka(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const u=ka(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 l=ka(t.events,n[2]),c=ka(t.events,n[3]),d={type:o,start:Object.assign({},l),end:Object.assign({},c)};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,y=n[3]-n[2]-1;e.add(b,y,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return a!==void 0&&(i.end=Object.assign({},ka(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function u0(e,t,n,r,a){const i=[],s=ka(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 ka(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const MF={name:"tasklistCheck",tokenize:BF};function PF(){return{text:{91:MF}}}function BF(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 Nt(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 Be(u)?t(u):st(u)?e.check({tokenize:UF},t,n)(u):n(u)}}function UF(e,t,n){return mt(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function jF(e){return XS([dF(),SF(),IF(e),OF(),PF()])}const $F={};function zF(e){const t=this,n=e||$F,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(jF(n)),i.push(oF()),s.push(uF(n))}const HF=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,GF=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,WF=({legacyTitle:e=!1,tagName:t="div"}={})=>n=>{Fn(n,"blockquote",(r,a,i)=>{let s="",o="",u=!0,l=r.children.map(c=>{if(u&&c.type==="paragraph"){const d=c.children[0],f=d.type==="text"?d.value:"",m=e?GF:HF,b=f.match(m);if(b&&(u=!1,s=b[1].toLocaleLowerCase(),o=e&&b[2]||s.toLocaleUpperCase(),f.includes(`
45
+ `)&&(c.children[0]={type:"text",value:f.replace(m,"").replace(/^\n+/,"")}),!f.includes(`
46
+ `))){const y=[];c.children.forEach((E,T)=>{T!=0&&(T==1&&E.type==="break"||y.push(E))}),c.children=[...y]}}return c});s&&(r.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${s}`,dir:"auto"}},l.unshift({type:"paragraph",children:[VF(s),{type:"text",value:o.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...l]})};function VF(e){let t=qF[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 qF={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 YF(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 Mx(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?Mx(t.parentElement):null}function ZF(e){var t=n=>{var r=Mx(n.target);r&&(r.classList.add("active"),YF(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 KF=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],XF=e=>e;const QF=We.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,l=e.onScroll,c=e.onMouseOver,d=e.pluginsFilter;e.rehypeRewrite;var f=e.wrapperElement,m=f===void 0?{}:f,b=e.warpperElement,y=b===void 0?{}:b,E=e.urlTransform,T=cs(e,KF),v=We.useRef(null);g.useImperativeHandle(t,()=>it({},e,{mdp:v}),[v,e]);var x=(r||"")+" "+(a||"");ZF(v);var I=[...T.rehypePlugins||[]],D={allowElement:(k,P,w)=>T.allowElement?T.allowElement(k,P,w):/^[A-Za-z0-9]+$/.test(k.tagName)};u||I.push(WS);var S=[WF,...T.remarkPlugins||[],zF],A=it({},y,m);return p.jsx("div",it({ref:v,onScroll:l,onMouseOver:c},A,{className:x,style:s,children:p.jsx(IL,it({},D,T,{skipHtml:!u,urlTransform:E||XF,rehypePlugins:d?d("rehype",I):I,remarkPlugins:d?d("remark",S):S,children:i||""}))}))});var JF=function(t){return n=>{Fn(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=it({},r.properties,{"data-meta":String(r.data.meta)}))})}},e6=function(t){return n=>{Fn(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 t6=/[\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,n6=Object.hasOwnProperty;class r6{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let a=a6(t,n===!0);const i=a;for(;n6.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 a6(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(t6,"").replace(/ /g,"-"))}function Px(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 i6={},l0=new r6;function s6(e){const n=(e||i6).prefix||"";return function(r){l0.reset(),Fn(r,"element",function(a){Px(a)&&!a.properties.id&&(a.properties.id=n+l0.slug(Oa(a)))})}}const Bx=(function(e){if(e==null)return l6;if(typeof e=="string")return u6(e);if(typeof e=="object")return o6(e);if(typeof e=="function")return Sg(e);throw new Error("Expected function, string, or array as `test`")});function o6(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Bx(e[n]);return Sg(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function u6(e){return Sg(t);function t(n){return n.tagName===e}}function Sg(e){return t;function t(n,r,a){return!!(c6(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function l6(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function c6(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const c0={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},d6={};function p6(e){const t=e||d6;let n=t.properties;const r=t.headingProperties,a=t.behavior||"prepend",i=t.content,s=t.group,o=Bx(t.test);let u;return a==="after"||a==="before"?u=c:a==="wrap"?u=d:(u=l,n||(n={ariaHidden:"true",tabIndex:-1})),function(f){Fn(f,"element",function(m,b,y){if(Px(m)&&m.properties.id&&o(m,b,y))return Object.assign(m.properties,so(r,m)),u(m,b,y)})};function l(f){const m=d0(i||c0,f);return f.children[a==="prepend"?"unshift":"push"](Hl(f,so(n,f),m)),[zi]}function c(f,m,b){if(typeof m!="number"||!b)return;const y=d0(i||c0,f),E=Hl(f,so(n,f),y);let T=a==="before"?[E,f]:[f,E];if(s){const v=Ux(s,f);v&&!Array.isArray(v)&&v.type==="element"&&(v.children=T,T=[v])}return b.children.splice(m,1,...T),[zi,m+T.length]}function d(f){let m=f.children,b=[];return typeof i=="function"?(m=[],b=i(f)):i&&(b=xg(i)),f.children=[Hl(f,so(n,f),Array.isArray(b)?[...m,...b]:[...m,b])],[zi]}}function xg(e){return sa(e)}function Hl(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function d0(e,t){const n=Ux(e,t);return Array.isArray(n)?n:[n]}function Ux(e,t){return typeof e=="function"?e(t):xg(e)}function so(e,t){return typeof e=="function"?e(t):e?xg(e):{}}const f6=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Fn(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 l=(u.value||"").trim();if(l=l.replace(/^<!--(.*?)-->/,"$1"),l===t)return o=!0,!1;if(l===n)return o=!1,!1}return!o})}})}};var m6={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 h6(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 g6=(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=it({class:"anchor"},i.properties),i.children=[m6])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=rS(n.children);n.children.push(h6(s))}t&&t(n,r===null?void 0:r,a===null?void 0:a)},b6=[s6,p6,f6];const E6=We.forwardRef((e,t)=>{var n,r=[JF,WS,e6,...b6,[OC,{rewrite:g6((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[PC,{properties:"attr"}],...e.rehypePlugins||[],[GT,{ignoreMissing:!0}]];return p.jsx(QF,it({},e,{rehypePlugins:r,ref:t}))});function y6(e,t){return t||(t=e.slice(0)),e.raw=t,e}const T6={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"}},S6="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",x6=/-[a-z]/g,A6=/%c(?:([-+])(\d+))?/g,_6=/%x/g,v6={2:!0,1:!1,0:null},w6={};function N6(e,t){const n=t||w6,r=n.onerror,a=e instanceof Ho?e:new Ho(e),i=n.fragment?DR:RR,s=String(a),o=i(s,{sourceCodeLocationInfo:!0,onParseError:n.onerror?u:null,scriptingEnabled:!1});return lS(o,{file:a,space:n.space,verbose:n.verbose});function u(l){const c=l.code,d=C6(c),f=n[d],m=f??!0,b=typeof m=="number"?m:m?1:0;if(b){const E=T6[d],T=new yn(y(E.reason),{place:{start:{line:l.startLine,column:l.startCol,offset:l.startOffset},end:{line:l.endLine,column:l.endCol,offset:l.endOffset}},ruleId:c,source:"hast-util-from-html"});a.path&&(T.file=a.path,T.name=a.path+":"+T.name),T.fatal=v6[b],T.note=y(E.description),T.url=E.url===!1?void 0:S6+c,r(T)}function y(E){return E.replace(A6,T).replace(_6,v);function T(x,I,D){const S=(D?Number.parseInt(D,10):0)*(I==="-"?-1:1),A=s.charAt(l.startOffset+S);return k6(A)}function v(){return R6(s.charCodeAt(l.startOffset))}}}}function C6(e){return e.replace(x6,I6)}function I6(e){return e.charAt(1).toUpperCase()}function k6(e){return e==="`"?"` ` `":e}function R6(e){return"0x"+e.toString(16).toUpperCase()}function D6(e){const t=this,{emitParseErrors:n,...r}={...t.data("settings"),...e};t.parser=a;function a(i,s){return N6(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 O6=/["&'<>`]/g,L6=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,F6=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,M6=/[|\\{}()[\]^$+*?.]/g,p0=new WeakMap;function P6(e,t){if(e=e.replace(t.subset?B6(t.subset):O6,r),t.subset||t.escapeOnly)return e;return e.replace(L6,n).replace(F6,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 B6(e){let t=p0.get(e);return t||(t=U6(e),p0.set(e,t)),t}function U6(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(M6,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const j6=/[\dA-Fa-f]/;function $6(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!j6.test(String.fromCharCode(t))?r:r+";"}const z6=/\d/;function H6(e,t,n){const r="&#"+String(e);return n&&t&&!z6.test(String.fromCharCode(t))?r:r+";"}const Gl={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:"€"},G6=["cent","copy","divide","gt","lt","not","para","times"],jx={}.hasOwnProperty,zc={};let oo;for(oo in Gl)jx.call(Gl,oo)&&(zc[Gl[oo]]=oo);const W6=/[^\dA-Za-z]/;function V6(e,t,n,r){const a=String.fromCharCode(e);if(jx.call(zc,a)){const i=zc[a],s="&"+i;return n&&UT.includes(i)&&!G6.includes(i)&&(!r||t&&t!==61&&W6.test(String.fromCharCode(t)))?s:s+";"}return""}function q6(e,t,n){let r=$6(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=V6(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const i=H6(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function $a(e,t){return P6(e,Object.assign({format:q6},t))}const Y6=/^>|^->|<!--|-->|--!>|<!-$/g,Z6=[">"],K6=["<",">"];function X6(e,t,n,r){return r.settings.bogusComments?"<?"+$a(e.value,Object.assign({},r.settings.characterReferences,{subset:Z6}))+">":"<!--"+e.value.replace(Y6,a)+"-->";function a(i){return $a(i,Object.assign({},r.settings.characterReferences,{subset:K6}))}}function Q6(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}const en=zx(1),$x=zx(-1),J6=[];function zx(e){return t;function t(n,r,a){const i=n?n.children:J6;let s=(r||0)+e,o=i[s];if(!a)for(;o&&Ms(o);)s+=e,o=i[s];return o}}const e4={}.hasOwnProperty;function Hx(e){return t;function t(n,r,a){return e4.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const Ag=Hx({body:n4,caption:Wl,colgroup:Wl,dd:s4,dt:i4,head:Wl,html:t4,li:a4,optgroup:o4,option:u4,p:r4,rp:f0,rt:f0,tbody:c4,td:m0,tfoot:d4,th:m0,thead:l4,tr:p4});function Wl(e,t,n){const r=en(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Ms(r.value.charAt(0)))}function t4(e,t,n){const r=en(n,t);return!r||r.type!=="comment"}function n4(e,t,n){const r=en(n,t);return!r||r.type!=="comment"}function r4(e,t,n){const r=en(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 a4(e,t,n){const r=en(n,t);return!r||r.type==="element"&&r.tagName==="li"}function i4(e,t,n){const r=en(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function s4(e,t,n){const r=en(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function f0(e,t,n){const r=en(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function o4(e,t,n){const r=en(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function u4(e,t,n){const r=en(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function l4(e,t,n){const r=en(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function c4(e,t,n){const r=en(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function d4(e,t,n){return!en(n,t)}function p4(e,t,n){const r=en(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function m0(e,t,n){const r=en(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const f4=Hx({body:g4,colgroup:b4,head:h4,html:m4,tbody:E4});function m4(e){const t=en(e,-1);return!t||t.type!=="comment"}function h4(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 g4(e){const t=en(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Ms(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function b4(e,t,n){const r=$x(n,t),a=en(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Ag(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function E4(e,t,n){const r=$x(n,t),a=en(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Ag(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const uo={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 y4(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=sr);const l=T4(r,e.properties),c=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,c&&(s=!1),(l||!i||!f4(e,t,n))&&(o.push("<",e.tagName,l?" "+l:""),s&&(a.space==="svg"||r.settings.closeSelfClosing)&&(u=l.charAt(l.length-1),(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(c),!s&&(!i||!Ag(e,t,n))&&o.push("</"+e.tagName+">"),o.join("")}function T4(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const i=S4(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 S4(e,t,n){const r=ii(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=$a(r.attribute,Object.assign({},e.settings.characterReferences,{subset:uo.name[a][i]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Fu:Mu)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?u:(e.settings.preferUnquoted&&(o=$a(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:uo.unquoted[a][i]}))),o!==n&&(e.settings.quoteSmart&&Go(n,s)>Go(n,e.alternative)&&(s=e.alternative),o=s+$a(n,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?uo.single:uo.double)[a][i],attribute:!0}))+s),u+(o&&"="+o))}const x4=["<","&"];function Gx(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:$a(e.value,Object.assign({},r.settings.characterReferences,{subset:x4}))}function A4(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Gx(e,t,n,r)}function _4(e,t,n,r){return r.all(e)}const v4=ju("type",{invalid:w4,unknown:N4,handlers:{comment:X6,doctype:Q6,element:y4,raw:A4,root:_4,text:Gx}});function w4(e){throw new Error("Expected node, not `"+e+"`")}function N4(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const C4={},I4={},k4=[];function R4(e,t){const n=t||C4,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:D4,all:O4,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||pS,characterReferences:n.characterReferences||I4,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?sr:Ea,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function D4(e,t,n){return v4(e,t,n,this)}function O4(e){const t=[],n=e&&e.children||k4;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function L4(e){const t=this,n={...t.data("settings"),...e};t.compiler=r;function r(a){return R4(a,n)}}const F4=px().use(D6).use(L4).freeze();function M4(e,t){return it({},e,t)}var Ta=We.createContext({markdown:""}),h0;function P4(e){return e.replace(/[<&"]/g,t=>({"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;"})[t])}function B4(e){var t=e.prefixCls,n=g.useContext(Ta),r=n.markdown,a=r===void 0?"":r,i=n.highlightEnable,s=n.dispatch,o=We.createRef();if(g.useEffect(()=>{o.current&&s&&s({textareaPre:o.current})},[]),!a)return p.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">'+P4(String.raw(h0||(h0=y6(["",""])),a))+`
55
+ </code></pre>`;if(i)try{u=F4().data("settings",{fragment:!0}).use(GT,{ignoreMissing:!0}).processSync(u).toString()}catch{}return We.createElement("div",{className:"wmde-markdown-color",dangerouslySetInnerHTML:{__html:u||""}})}function Wx(e,t){return e===void 0&&(e=[]),t===void 0&&(t={}),e.forEach(n=>{n.children&&Array.isArray(n.children)?t=it({},t,Wx(n.children||[])):n.keyCommand&&n.shortcuts&&n.execute&&(t[n.shortcuts.toLocaleLowerCase()]=n)}),t}function Vx(e,t,n,r,a){t===void 0&&(t=[]);var i=Wx(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(l=>{var c=l.split("+").every(d=>/ctrlcmd/.test(d)?s.includes("ctrl")||s.includes("cmd"):s.includes(d));c&&(u=i[l])}),u&&n){e.stopPropagation(),e.preventDefault(),n.executeCommand(u,r,a,s);return}}}var Vl;function g0(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof Vl>"u"){var t=document.createElement("textarea");t.value="1",Vl=!!t.firstChild}return Vl}function za(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(g0(e)){var u=e.firstChild;if(!u)e.appendChild(o);else{for(var l=0,c=null,d=null;u&&(c===null||d===null);){var f=u.nodeValue.length;a>=l&&a<=l+f&&s.setStart(c=u,a-l),i>=l&&i<=l+f&&s.setEnd(d=u,i-l),l+=f,u=u.nextSibling}a!==i&&s.deleteContents()}}if(g0(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 kn(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=U4(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 Qi(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 qx(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 Yx(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 U4(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 hn(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 _g(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 j4={name:"bold",keyCommand:"bold",shortcuts:"ctrlcmd+b",prefix:"**",buttonProps:{"aria-label":"Add bold text (ctrl + b)",title:"Add bold text (ctrl + b)"},icon:p.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 384 512",children:p.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=kn({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);hn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},Zx={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:p.jsx("svg",{width:"13",height:"13",role:"img",viewBox:"0 0 156 156",children:p.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=kn({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=kn({text:e.text,selection:e.selection,prefix:a,suffix:i}),o=t.setSelectionRange(s);hn({api:t,selectedText:o.selectedText,selection:e.selection,prefix:a,suffix:i})}},$4={name:"code",keyCommand:"code",shortcuts:"ctrlcmd+j",prefix:"`",buttonProps:{"aria-label":"Insert code (ctrl + j)",title:"Insert code (ctrl + j)"},icon:p.jsx("svg",{width:"14",height:"14",role:"img",viewBox:"0 0 640 512",children:p.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=kn({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);hn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}else Zx.execute(e,t)}},z4={name:"comment",keyCommand:"comment",shortcuts:"ctrlcmd+/",prefix:"<!-- ",suffix:" -->",buttonProps:{"aria-label":"Insert comment (ctrl + /)",title:"Insert comment (ctrl + /)"},icon:p.jsx("svg",{height:"1em",width:"1em",viewBox:"0 0 25 25",children:p.jsxs("g",{fill:"none",fillRule:"evenodd",children:[p.jsx("polygon",{points:".769 .727 24.981 .727 24.981 24.727 .769 24.727"}),p.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"}),p.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=kn({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);hn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},Co={keyCommand:"divider"},H4={name:"fullscreen",keyCommand:"fullscreen",shortcuts:"ctrlcmd+0",value:"fullscreen",buttonProps:{"aria-label":"Toggle fullscreen (ctrl + 0)",title:"Toggle fullscreen (ctrl+ 0)"},icon:p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:p.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 G4(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var W4=(e,t)=>{var n=it({children:e,icon:p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:p.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=it({},(G4(r),r));return a.parent=n,it({},a)})),n},V4={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:p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 175 175",children:p.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=kn({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)?hn({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}),hn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},q4={name:"image",keyCommand:"image",shortcuts:"ctrlcmd+k",prefix:"![image](",suffix:")",buttonProps:{"aria-label":"Add image (ctrl + k)",title:"Add image (ctrl + k)"},icon:p.jsx("svg",{width:"13",height:"13",viewBox:"0 0 20 20",children:p.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=kn({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")?hn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(n=kn({text:e.text,selection:e.selection,prefix:"![",suffix:"]()"}),r=t.setSelectionRange(n),r.selectedText.length===0?hn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"![image",suffix:"](url)"}):hn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"![",suffix:"]()"}))}},Y4={name:"italic",keyCommand:"italic",shortcuts:"ctrlcmd+i",prefix:"*",buttonProps:{"aria-label":"Add italic text (ctrl + i)",title:"Add italic text (ctrl + i)"},icon:p.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 320 512",children:p.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=kn({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);hn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},Z4={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:p.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 520 520",children:p.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=kn({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=kn({text:e.text,selection:e.selection,prefix:"[](",suffix:")"}),r=t.setSelectionRange(n),hn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[](",suffix:")"})):r.selectedText.length===0?hn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[title",suffix:"](url)"}):hn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},vg=(e,t,n)=>{var r=kn({text:e.text,selection:e.selection,prefix:e.command.prefix}),a=t.setSelectionRange(r),i=qx(a.text,a.selection.start),s=Array(i+1).join(`
65
+ `),o=Yx(a.text,a.selection.end),u=Array(o+1).join(`
66
+ `),l=_g(a.selectedText,n),c=l.modifiedText,d=l.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(""+c),t.setSelectionRange({start:f,end:f+c.length})}else{t.replaceSelection(""+s+c+u);var b=a.selection.start+i,y=b+c.length;t.setSelectionRange({start:b,end:y})}},K4={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:p.jsx("svg",{"data-name":"unordered-list",width:"12",height:"12",viewBox:"0 0 512 512",children:p.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)=>{vg(e,t,"- ")}},X4={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:p.jsx("svg",{"data-name":"ordered-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:p.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)=>{vg(e,t,(n,r)=>r+1+". ")}},Q4={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:p.jsx("svg",{"data-name":"checked-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:p.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)=>{vg(e,t,(n,r)=>"- [ ] ")}},J4={name:"preview",keyCommand:"preview",value:"preview",shortcuts:"ctrlcmd+9",buttonProps:{"aria-label":"Preview code (ctrl + 9)",title:"Preview code (ctrl + 9)"},icon:p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[p.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"}),p.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"})}},eM={name:"edit",keyCommand:"preview",value:"edit",shortcuts:"ctrlcmd+7",buttonProps:{"aria-label":"Edit code (ctrl + 7)",title:"Edit code (ctrl + 7)"},icon:p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[p.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"}),p.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"})}},tM={name:"live",keyCommand:"preview",value:"live",shortcuts:"ctrlcmd+8",buttonProps:{"aria-label":"Live code (ctrl + 8)",title:"Live code (ctrl + 8)"},icon:p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[p.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"}),p.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"})}},nM={name:"quote",keyCommand:"quote",shortcuts:"ctrlcmd+q",prefix:"> ",buttonProps:{"aria-label":"Insert a quote (ctrl + q)",title:"Insert a quote (ctrl + q)"},icon:p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:p.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=kn({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n),a=qx(r.text,r.selection.start),i=Array(a+1).join(`
69
+ `),s=Yx(r.text,r.selection.end),o=Array(s+1).join(`
70
+ `),u=_g(r.selectedText,e.command.prefix);t.replaceSelection(""+i+u.modifiedText+o);var l=r.selection.start+a,c=l+u.modifiedText.length;t.setSelectionRange({start:l,end:c})}},rM={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:p.jsx("svg",{"data-name":"strikethrough",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:p.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=kn({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);hn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},Kx={name:"heading1",keyCommand:"heading1",shortcuts:"ctrlcmd+1",prefix:"# ",suffix:"",buttonProps:{"aria-label":"Insert Heading 1 (ctrl + 1)",title:"Insert Heading 1 (ctrl + 1)"},icon:p.jsx("div",{style:{fontSize:18,textAlign:"left"},children:"Heading 1"}),execute:(e,t)=>{di({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},aM=Kx;function di(e){var t=e.state,n=e.api,r=e.prefix,a=e.suffix,i=a===void 0?r:a,s=Qi({text:t.text,selection:t.selection}),o=n.setSelectionRange(s);hn({api:n,selectedText:o.selectedText,selection:t.selection,prefix:r,suffix:i})}it({},Kx,{icon:p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:p.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 iM={name:"heading2",keyCommand:"heading2",shortcuts:"ctrlcmd+2",prefix:"## ",suffix:"",buttonProps:{"aria-label":"Insert Heading 2 (ctrl + 2)",title:"Insert Heading 2 (ctrl + 2)"},icon:p.jsx("div",{style:{fontSize:16,textAlign:"left"},children:"Heading 2"}),execute:(e,t)=>{di({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},sM=iM,oM={name:"heading3",keyCommand:"heading3",shortcuts:"ctrlcmd+3",prefix:"### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 3 (ctrl + 3)",title:"Insert Heading 3 (ctrl + 3)"},icon:p.jsx("div",{style:{fontSize:15,textAlign:"left"},children:"Heading 3"}),execute:(e,t)=>{di({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},uM=oM,lM={name:"heading4",keyCommand:"heading4",shortcuts:"ctrlcmd+4",prefix:"#### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 4 (ctrl + 4)",title:"Insert Heading 4 (ctrl + 4)"},icon:p.jsx("div",{style:{fontSize:14,textAlign:"left"},children:"Heading 4"}),execute:(e,t)=>{di({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},cM=lM,dM={name:"heading5",keyCommand:"heading5",shortcuts:"ctrlcmd+5",prefix:"##### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 5 (ctrl + 5)",title:"Insert Heading 5 (ctrl + 5)"},icon:p.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 5"}),execute:(e,t)=>{di({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},pM=dM,fM={name:"heading6",keyCommand:"heading6",shortcuts:"ctrlcmd+6",prefix:"###### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 6 (ctrl + 6)",title:"Insert Heading 6 (ctrl + 6)"},icon:p.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 6"}),execute:(e,t)=>{di({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},mM=fM,hM={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:p.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 512 512",children:p.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=kn({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)?hn({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}),hn({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},gM={name:"help",keyCommand:"help",buttonProps:{"aria-label":"Open help",title:"Open help"},icon:p.jsx("svg",{viewBox:"0 0 16 16",width:"12px",height:"12px",children:p.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")}},bM=()=>[j4,Y4,rM,V4,W4([aM,sM,uM,cM,pM,mM],{name:"title",groupName:"title",buttonProps:{"aria-label":"Insert title",title:"Insert title"}}),Co,Z4,nM,$4,Zx,z4,q4,hM,Co,K4,X4,Q4,Co,gM],EM=()=>[eM,tM,J4,Co,H4];function Vo(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 wg{constructor(t){this.textArea=void 0,this.textArea=t}replaceSelection(t){return za(this.textArea,t),Vo(this.textArea)}setSelectionRange(t){return this.textArea.focus(),this.textArea.selectionStart=t.start,this.textArea.selectionEnd=t.end,Vo(this.textArea)}}class Ng{constructor(t){this.textArea=void 0,this.textApi=void 0,this.textArea=t,this.textApi=new wg(t)}getState(){return this.textArea?Vo(this.textArea):!1}executeCommand(t,n,r,a){t.execute&&t.execute(it({command:t},Vo(this.textArea)),this.textApi,n,r,a)}}function Io(e){e.stopPropagation(),e.preventDefault()}function b0(e,t){Io(e);var n=e.target,r=new wg(n),a={start:n.selectionStart,end:n.selectionEnd};if(a=Qi({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=Qi({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}),za(n,i+`
78
+ `+o),r.setSelectionRange({start:s.start,end:s.start+i.length})}else{var u=Qi({text:n.value,selection:{start:a.end+1,end:a.end+1}}),l=n.value.slice(u.start,u.end);r.setSelectionRange({start:a.start,end:u.end}),za(n,l+`
79
+ `+i),r.setSelectionRange({start:u.end-i.length,end:u.end})}}}function yM(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 wg(r);if(!n&&e.code&&e.code.toLowerCase()==="tab"){Io(e);var u=new Array(t+1).join(" ");if(r.selectionStart!==r.selectionEnd){var l=r.value.substring(0,r.selectionStart).split(`
81
+ `),c=r.value.substring(0,r.selectionEnd).split(`
82
+ `),d=[];c.forEach((A,k)=>{A!==l[k]&&d.push(A)});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 y=_g(f,e.shiftKey?"":u),E=y.modifiedText;e.shiftKey&&(E=E.split(`
84
+ `).map(A=>A.replace(new RegExp("^"+u),"")).join(`
85
+ `)),o.replaceSelection(E);var T=e.shiftKey?-t:t,v=e.shiftKey?-d.length*t:d.length*t;o.setSelectionRange({start:b+T,end:b+m.length+v})}else return za(r,u)}else if(e.keyCode===13&&e.code.toLowerCase()==="enter"&&(/^(-|\*)\s/.test(s)||/^\d+.\s/.test(s))&&!e.shiftKey){Io(e);var x=`
86
+ - `;return s.startsWith("*")&&(x=`
87
+ * `),(s.startsWith("- [ ]")||s.startsWith("- [X]")||s.startsWith("- [x]"))&&(x=`
88
+ - [ ] `),/^\d+.\s/.test(s)&&(x=`
89
+ `+(parseInt(s)+1)+". "),za(r,x)}else if(e.code&&e.code.toLowerCase()==="keyd"&&e.ctrlKey){Io(e);var I={start:r.selectionStart,end:r.selectionEnd},D=I;I=Qi({text:r.value,selection:I});var S=r.value.slice(I.start,I.end);o.setSelectionRange({start:I.end,end:I.end}),za(r,`
90
+ `+S),o.setSelectionRange({start:D.start,end:D.end})}else e.code&&e.code.toLowerCase()==="arrowup"&&e.altKey?b0(e,-1):e.code&&e.code.toLowerCase()==="arrowdown"&&e.altKey&&b0(e,1)}var TM=["prefixCls","onChange"],SM=["markdown","commands","fullscreen","preview","highlightEnable","extraCommands","tabSize","defaultTabEnable","autoFocusEnd","textareaWarp","dispatch"];function xM(e){var t=e.prefixCls,n=e.onChange,r=cs(e,TM),a=g.useContext(Ta),i=a.markdown,s=a.commands,o=a.fullscreen,u=a.preview,l=a.highlightEnable,c=a.extraCommands,d=a.tabSize,f=a.defaultTabEnable,m=a.autoFocusEnd,b=a.textareaWarp,y=a.dispatch;cs(a,SM);var E=We.useRef(null),T=We.useRef(),v=We.useRef({fullscreen:o,preview:u});g.useEffect(()=>{v.current={fullscreen:o,preview:u,highlightEnable:l}},[o,u,l]),g.useEffect(()=>{if(E.current&&y){var I=new Ng(E.current);T.current=I,y({textarea:E.current,commandOrchestrator:I})}},[]),g.useEffect(()=>{if(m&&E.current&&b){E.current.focus();var I=E.current.value.length;E.current.setSelectionRange(I,I),setTimeout(()=>{b&&(b.scrollTop=b.scrollHeight),E.current&&(E.current.scrollTop=E.current.scrollHeight)},0)}},[b]);var x=I=>{yM(I,d,f),Vx(I,[...s||[],...c||[]],T.current,y,v.current)};return g.useEffect(()=>(E.current&&E.current.addEventListener("keydown",x),()=>{E.current&&E.current.removeEventListener("keydown",x)}),[]),p.jsx("textarea",it({autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1},r,{ref:E,className:t+"-text-input "+(r.className?r.className:""),value:i,onChange:I=>{y&&y({markdown:I.target.value}),n&&n(I)}}))}var AM=["prefixCls","className","onScroll","renderTextarea"];function _M(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,l=s.onScroll,c=s.renderTextarea,d=cs(s,AM),f=g.useContext(Ta),m=f.markdown,b=f.scrollTop,y=f.commands,E=f.minHeight,T=f.highlightEnable,v=f.extraCommands,x=f.dispatch,I=We.useRef(null),D=We.useRef(),S=We.createRef();g.useEffect(()=>{var k={};S.current&&(k.textareaWarp=S.current||void 0,S.current.scrollTop=b||0),x&&x(it({},k))},[]),g.useEffect(()=>{if(I.current&&x){var k=new Ng(I.current);D.current=k,x({textarea:I.current,commandOrchestrator:k})}},[]);var A=n&&T?{}:{WebkitTextFillColor:"initial",overflow:"auto"};return p.jsx("div",{ref:S,className:o+"-area "+(u||""),onScroll:l,children:p.jsx("div",{className:o+"-text",style:r?{minHeight:E}:void 0,children:c?We.cloneElement(c(it({},d,{value:m,autoComplete:"off",autoCorrect:"off",spellCheck:"false",autoCapitalize:"off",className:o+"-text-input",style:{WebkitTextFillColor:"inherit",overflow:"auto"}}),{dispatch:x,onChange:d.onChange,shortcuts:Vx,useContext:{commands:y,extraCommands:v,commandOrchestrator:D.current}}),{ref:I}):p.jsxs(g.Fragment,{children:[n&&T&&p.jsx(n,{prefixCls:o}),p.jsx(xM,it({prefixCls:o},d,{style:A}))]})})})}}const vM=_M({Markdown:B4,useMinHeight:!0});function wM(e){var t=e||{},n=t.prefixCls,r=t.groupName,a=t.commands,i=t.children,s=g.useContext(Ta),o=s.barPopup,u=o===void 0?{}:o;return g.useMemo(()=>p.jsx("div",{className:n+"-toolbar-child "+(r&&u[r]?"active":""),onClick:l=>l.stopPropagation(),children:Array.isArray(a)?p.jsx(Xx,it({commands:a},e,{isChild:!0})):i}),[a,u,r,n])}function E0(e){var t=e.prefixCls,n=e.overflow,r=g.useContext(Ta),a=r.fullscreen,i=r.preview,s=r.barPopup,o=s===void 0?{}:s,u=r.components,l=r.commandOrchestrator,c=r.dispatch,d=g.useRef("");function f(m,b){if(c){var y={barPopup:it({},o)};m.keyCommand==="preview"&&(y.preview=m.value),m.keyCommand==="fullscreen"&&(y.fullscreen=!a),e.commands&&m.keyCommand==="group"?e.commands.forEach(E=>{b===E.groupName?y.barPopup[b]=!0:E.keyCommand&&(y.barPopup[E.groupName]=!1)}):(b||m.parent)&&Object.keys(y.barPopup||{}).forEach(E=>{y.barPopup[E]=!1}),Object.keys(y).length&&c(it({},y)),l&&l.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]),p.jsx("ul",{children:(e.commands||[]).map((m,b)=>{if(m.keyCommand==="divider")return p.jsx("li",it({},m.liProps,{className:t+"-toolbar-divider"}),b);if(!m.keyCommand)return p.jsx(g.Fragment,{},b);var y=a&&m.keyCommand==="fullscreen"||m.keyCommand==="preview"&&i===m.value,E=m.children&&typeof m.children=="function"?m.children({getState:()=>l.getState(),textApi:l?l.textApi:void 0,close:()=>f({},m.groupName),execute:()=>f({execute:m.execute}),dispatch:c}):void 0,T=o&&i&&i==="preview"&&!/(preview|fullscreen)/.test(m.keyCommand),v=u?.toolbar||m.render,x=v&&typeof v=="function"?v(m,!!T,f,b):null;return p.jsxs("li",it({},m.liProps,{className:y?"active":"",children:[x&&We.isValidElement(x)&&x,!x&&!m.buttonProps&&m.icon,!x&&m.buttonProps&&We.createElement("button",it({type:"button",key:b,disabled:T,"data-name":m.name},m.buttonProps,{onClick:I=>{I.stopPropagation(),f(m,m.groupName)}}),m.icon),m.children&&p.jsx(wM,{overflow:n,groupName:m.groupName,prefixCls:t,children:E,commands:Array.isArray(m.children)?m.children:void 0})]}),b)})})}function Xx(e){e===void 0&&(e={});var t=e,n=t.prefixCls,r=t.isChild,a=t.className,i=g.useContext(Ta),s=i.commands,o=i.extraCommands;return p.jsxs("div",{className:n+"-toolbar "+a,children:[p.jsx(E0,it({},e,{commands:e.commands||s||[]})),!r&&p.jsx(E0,it({},e,{commands:o||[]}))]})}function y0(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 p.jsx(Xx,{prefixCls:i,overflow:a,className:s})}var NM=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 l(d){var f,m,b;d.preventDefault();var y=d.clientY||((f=d.changedTouches[0])==null?void 0:f.clientY);i.current={height:s.current,dragY:y},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",l,{passive:!1}),(f=a.current)==null||f.addEventListener("mousedown",l)}return()=>{if(document){var m;(m=a.current)==null||m.removeEventListener("touchstart",l),document.removeEventListener("mousemove",o)}}},[]);var c=g.useMemo(()=>p.jsx("svg",{viewBox:"0 0 512 512",height:"100%",children:p.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 p.jsx("div",{className:n+"-bar",ref:a,children:c})},CM=["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 IM(e){return e===void 0&&(e={}),Object.keys(e).forEach(t=>{e[t]=!1}),e}function kM(e){var t=e.MarkdownPreview,n=e.TextArea,r=t,a=n,i=We.forwardRef((o,u)=>{var l=o||{},c=l.prefixCls,d=c===void 0?"w-md-editor":c,f=l.className,m=l.value,b=l.commands,y=b===void 0?bM():b,E=l.commandsFilter,T=l.direction,v=l.extraCommands,x=v===void 0?EM():v,I=l.height,D=I===void 0?200:I,S=l.enableScroll,A=S===void 0?!0:S,k=l.visibleDragbar,P=k===void 0?typeof o.visiableDragbar=="boolean"?o.visiableDragbar:!0:k,w=l.highlightEnable,U=w===void 0?!0:w,j=l.preview,K=j===void 0?"live":j,X=l.fullscreen,G=X===void 0?!1:X,oe=l.overflow,Q=oe===void 0?!0:oe,ae=l.previewOptions,Y=ae===void 0?{}:ae,N=l.textareaProps,H=l.maxHeight,ie=H===void 0?1200:H,R=l.minHeight,ve=R===void 0?100:R,Oe=l.autoFocus,Ne=l.autoFocusEnd,je=Ne===void 0?!1:Ne,be=l.tabSize,ge=be===void 0?2:be,pt=l.defaultTabEnable,ze=pt===void 0?!1:pt,Ee=l.onChange,Me=l.onStatistics,tt=l.onHeightChange,de=l.hideToolbar,ct=l.toolbarBottom,yt=ct===void 0?!1:ct,ht=l.components,$t=l.renderTextarea,Rt=cs(l,CM),zt=y.map(he=>E?E(he,!1):he).filter(Boolean),tn=x.map(he=>E?E(he,!0):he).filter(Boolean),ut=g.useReducer(M4,{markdown:m,preview:K,components:ht,height:D,minHeight:ve,highlightEnable:U,tabSize:ge,defaultTabEnable:ze,scrollTop:0,scrollTopPreview:0,commands:zt,extraCommands:tn,fullscreen:G,barPopup:{}}),Ae=ut[0],Ze=ut[1],W=g.useRef(null),ne=g.useRef(null),Te=g.useRef(A);g.useImperativeHandle(u,()=>it({},Ae,{container:W.current,dispatch:Ze})),g.useMemo(()=>Te.current=A,[A]),g.useEffect(()=>{var he={};W.current&&(he.container=W.current||void 0),he.markdown=m||"",he.barPopup={},Ze&&Ze(it({},Ae,he))},[]);var _e=[f,"wmde-markdown-var",T?d+"-"+T:null,d,Ae.preview?d+"-show-"+Ae.preview:null,Ae.fullscreen?d+"-fullscreen":null].filter(Boolean).join(" ").trim();g.useMemo(()=>m!==Ae.markdown&&Ze({markdown:m||""}),[m,Ae.markdown]),g.useMemo(()=>K!==Ae.preview&&Ze({preview:K}),[K]),g.useMemo(()=>ge!==Ae.tabSize&&Ze({tabSize:ge}),[ge]),g.useMemo(()=>U!==Ae.highlightEnable&&Ze({highlightEnable:U}),[U]),g.useMemo(()=>Oe!==Ae.autoFocus&&Ze({autoFocus:Oe}),[Oe]),g.useMemo(()=>je!==Ae.autoFocusEnd&&Ze({autoFocusEnd:je}),[je]),g.useMemo(()=>G!==Ae.fullscreen&&Ze({fullscreen:G}),[G]),g.useMemo(()=>D!==Ae.height&&Ze({height:D}),[D]),g.useMemo(()=>D!==Ae.height&&tt&&tt(Ae.height,D,Ae),[D,tt,Ae]),g.useMemo(()=>y!==Ae.commands&&Ze({commands:zt}),[o.commands]),g.useMemo(()=>x!==Ae.extraCommands&&Ze({extraCommands:tn}),[o.extraCommands]);var $e=g.useRef(),Ke=g.useRef("preview"),At=g.useRef(!1);g.useMemo(()=>{$e.current=Ae.textareaWarp,Ae.textareaWarp&&(Ae.textareaWarp.addEventListener("mouseover",()=>{Ke.current="text"}),Ae.textareaWarp.addEventListener("mouseleave",()=>{Ke.current="preview"}))},[Ae.textareaWarp]);var Tt=(he,Pe)=>{if(Te.current){var Ve=$e.current,Ct=ne.current?ne.current:void 0;if(At.current||(Ke.current=Pe,At.current=!0),Ve&&Ct){var Xe=(Ve.scrollHeight-Ve.offsetHeight)/(Ct.scrollHeight-Ct.offsetHeight);he.target===Ve&&Ke.current==="text"&&(Ct.scrollTop=Ve.scrollTop/Xe),he.target===Ct&&Ke.current==="preview"&&(Ve.scrollTop=Ct.scrollTop*Xe);var qe=0;Ke.current==="text"?qe=Ve.scrollTop||0:Ke.current==="preview"&&(qe=Ct.scrollTop||0),Ze({scrollTop:qe})}}},bt=d+"-preview "+(Y.className||""),Dt=he=>Tt(he,"preview"),ee=g.useMemo(()=>p.jsx("div",{ref:ne,className:bt,children:p.jsx(r,it({},Y,{onScroll:Dt,source:Ae.markdown||""}))}),[bt,Y,Ae.markdown]),ye=ht?.preview&&ht?.preview(Ae.markdown||"",Ae,Ze);ye&&We.isValidElement(ye)&&(ee=p.jsx("div",{className:bt,ref:ne,onScroll:Dt,children:ye}));var Fe=it({},Rt.style,{height:Ae.height||"100%"}),ke=()=>Ze({barPopup:it({},IM(Ae.barPopup))}),z=he=>Ze({height:he}),Le=he=>{if(Ee&&Ee(he.target.value,he,Ae),N&&N.onChange&&N.onChange(he),Ae.textarea&&Ae.textarea instanceof HTMLTextAreaElement&&Me){var Pe=new Ng(Ae.textarea),Ve=Pe.getState()||{};Me(it({},Ve,{lineCount:he.target.value.split(`
91
+ `).length,length:he.target.value.length}))}};return p.jsx(Ta.Provider,{value:it({},Ae,{dispatch:Ze}),children:p.jsxs("div",it({ref:W,className:_e},Rt,{onClick:ke,style:Fe,children:[p.jsx(y0,{hideToolbar:de,toolbarBottom:yt,prefixCls:d,overflow:Q,placement:"top"}),p.jsxs("div",{className:d+"-content",children:[/(edit|live)/.test(Ae.preview||"")&&p.jsx(a,it({className:d+"-input",prefixCls:d,autoFocus:Oe},N,{onChange:Le,renderTextarea:ht?.textarea||$t,onScroll:he=>Tt(he,"text")})),/(live|preview)/.test(Ae.preview||"")&&ee]}),P&&!Ae.fullscreen&&p.jsx(NM,{prefixCls:d,height:Ae.height,maxHeight:ie,minHeight:ve,onChange:z}),p.jsx(y0,{hideToolbar:de,toolbarBottom:yt,prefixCls:d,overflow:Q,placement:"bottom"})]}))})}),s=i;return s.Markdown=t,s.displayName="MDEditor",s}const qo=kM({MarkdownPreview:E6,TextArea:vM}),RM={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"},DM={xs:"badge-xs",sm:"badge-sm",md:"badge-md",lg:"badge-lg"};function xt({variant:e,size:t,className:n,...r}){const a=["badge",e&&RM[e],t&&DM[t],n].filter(Boolean).join(" ");return p.jsx("span",{className:a,...r})}const OM={primary:"btn-primary",ghost:"btn-ghost",error:"btn-error",outline:"btn-outline",accent:"btn-accent",warning:"btn-warning"},LM={xs:"btn-xs",sm:"btn-sm",md:"btn-md",lg:"btn-lg"};function He({variant:e,size:t,loading:n,asChild:r,className:a,disabled:i,children:s,...o}){const u=["btn",e&&OM[e],t&&LM[t],a].filter(Boolean).join(" ");if(r&&We.isValidElement(s)){const l=s,c=[u,l.props.className].filter(Boolean).join(" ");return We.cloneElement(l,{className:c})}return p.jsxs("button",{className:u,disabled:i||n,...o,children:[n&&p.jsx("span",{className:"loading loading-spinner"}),s]})}const FM={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 pi({variant:e,asChild:t,className:n,children:r,...a}){const i=["card",e&&FM[e],n].filter(Boolean).join(" ");if(t&&We.isValidElement(r)){const s=r,o=[i,s.props.className].filter(Boolean).join(" ");return We.cloneElement(s,{className:o})}return p.jsx("div",{className:i,...a,children:r})}function fi({className:e,...t}){const n=["card-body",e].filter(Boolean).join(" ");return p.jsx("div",{className:n,...t})}const MM={primary:"checkbox-primary",secondary:"checkbox-secondary",accent:"checkbox-accent",neutral:"checkbox-neutral",success:"checkbox-success",warning:"checkbox-warning",error:"checkbox-error",info:"checkbox-info"},PM={xs:"checkbox-xs",sm:"checkbox-sm",md:"checkbox-md",lg:"checkbox-lg"};function Cg({variant:e,size:t,className:n,...r}){const a=["checkbox",e&&MM[e],t&&PM[t],n].filter(Boolean).join(" ");return p.jsx("input",{type:"checkbox",className:a,...r})}const BM={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"},UM={xs:"input-xs",sm:"input-sm",md:"input-md",lg:"input-lg",xl:"input-xl"};function fs({variant:e,size:t,error:n,className:r,...a}){const i=["input",e&&BM[e],t&&UM[t],n&&"input-error",r].filter(Boolean).join(" ");return p.jsx("input",{className:i,...a})}const jM={spinner:"loading-spinner",dots:"loading-dots",ring:"loading-ring",ball:"loading-ball",bars:"loading-bars",infinity:"loading-infinity"},$M={xs:"loading-xs",sm:"loading-sm",md:"loading-md",lg:"loading-lg",xl:"loading-xl"};function Ir({variant:e="spinner",size:t,className:n,...r}){const a=["loading",jM[e],t&&$M[t],n].filter(Boolean).join(" ");return p.jsx("span",{className:a,...r})}const zM={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 Yo({variant:e,open:t,onClose:n,className:r,children:a,...i}){if(!t)return null;const s=["modal-box",e&&zM[e],r].filter(Boolean).join(" ");return p.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:p.jsx("div",{className:s,children:a})})}const HM={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"},GM={xs:"select-xs",sm:"select-sm",md:"select-md",lg:"select-lg"};function aa({variant:e,size:t,className:n,children:r,...a}){const i=["select",e&&HM[e],t&&GM[t],n].filter(Boolean).join(" ");return p.jsx("select",{className:i,...a,children:r})}const WM={top:"tooltip-top",bottom:"tooltip-bottom",left:"tooltip-left",right:"tooltip-right"};function VM({position:e,tip:t,className:n,...r}){const a=["tooltip",e&&WM[e],n].filter(Boolean).join(" ");return p.jsx("span",{className:a,"data-tip":t,...r})}const Qx="spur-board-layout",Na={sidebarWidth:240,rightPanelWidth:320,sidebarCollapsed:!1,rightPanelCollapsed:!0};function qM(){try{const e=localStorage.getItem(Qx);if(!e)return{...Na};const t=JSON.parse(e);return{sidebarWidth:typeof t.sidebarWidth=="number"?t.sidebarWidth:Na.sidebarWidth,rightPanelWidth:typeof t.rightPanelWidth=="number"?t.rightPanelWidth:Na.rightPanelWidth,sidebarCollapsed:typeof t.sidebarCollapsed=="boolean"?t.sidebarCollapsed:Na.sidebarCollapsed,rightPanelCollapsed:typeof t.rightPanelCollapsed=="boolean"?t.rightPanelCollapsed:Na.rightPanelCollapsed}}catch{return{...Na}}}function YM(e){try{localStorage.setItem(Qx,JSON.stringify(e))}catch{}}const ZM=[];function KM(e){return e[0]??{}}function Zo(e){return Array.isArray(e)?e:e==null?[]:[e]}const T0="orpc",XM="@orpc/shared",QM="1.14.4";class JM extends Error{constructor(...t){super(...t),this.name="AbortError"}}function eP(e){let t;return()=>{if(t)return t.result;const n=e();return t={result:n},n}}function tP(e){let t=Promise.resolve();return(...n)=>t=t.catch(()=>{}).then(()=>e(...n))}const nP=2,rP=`__${XM}@${QM}/otel/config__`;function Ku(){return globalThis[rP]}function Ig(e,t={},n){return Ku()?.tracer?.startSpan(e,t,n)}function ua(e,t,n={}){if(!e)return;const r=aP(t);e.recordException(r),(!n.signal?.aborted||n.signal.reason!==t)&&e.setStatus({code:nP,message:r.message})}function aP(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 Bi({name:e,context:t,...n},r){const a=Ku()?.tracer;if(!a)return r();const i=async s=>{try{return await r(s)}catch(o){throw ua(s,o,n),o}finally{s.end()}};return t?a.startActiveSpan(e,n,t,i):a.startActiveSpan(e,n,i)}async function Ya(e,t){const n=Ku();if(!e||!n)return t();const r=n.trace.setSpan(n.context.active(),e);return n.context.with(r,t)}function ms(e){return!e||typeof e!="object"?!1:"next"in e&&typeof e.next=="function"&&Symbol.asyncIterator in e&&typeof e[Symbol.asyncIterator]=="function"}const iP=Symbol.for("asyncDispose"),sP=Symbol.asyncDispose??iP;class kg{#e=!1;#t=!1;#n;#r;constructor(t,n){this.#n=n,this.#r=tP(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[sP](){this.#e=!0,this.#t||(this.#t=!0,await this.#n("dispose"))}[Symbol.asyncIterator](){return this}}function S0({name:e,...t},n){let r;return new kg(async()=>{r??=Ig(e);try{const a=await Ya(r,()=>n.next());return r?.addEvent(a.done?"completed":"yielded"),a}catch(a){throw ua(r,a,t),a}},async a=>{try{a!=="next"&&await Ya(r,()=>n.return?.())}catch(i){throw ua(r,i,t),i}finally{r?.end()}})}function oP(e){return async(t,...n)=>{try{return await t.next()}catch(r){throw await e(r,t,...n),r}}}function Hc(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 ko(e){if(e)return JSON.parse(e)}function Gc(e){return JSON.stringify(e)}function uP(e){return la(e)?Object.getPrototypeOf(e)?.constructor:null}function Gr(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||!t||!t.constructor}function la(e){return!!e&&(typeof e=="object"||typeof e=="function")}function x0(e,t){let n=e;for(const r of t){if(!la(n))return;n=n[r]}return n}const Jx=(()=>{const e=function(){};return e.prototype=Object.create(null),Object.freeze(e.prototype),e})();function A0(e,...t){return typeof e=="function"?e(...t):e}function e1(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(l=>!cP(l)))return Reflect.apply(i,s,o);let u=!0;o[0].call(s,e1(new Proxy(t,{get:(l,c,d)=>{if(u&&c==="then"){u=!1;return}return Reflect.get(l,c,d)}})))}})}})}const lP=/^\s*function\s*\(\)\s*\{\s*\[native code\]\s*\}\s*$/;function cP(e){return typeof e=="function"&&lP.test(e.toString())}function dP(e){try{return decodeURIComponent(e)}catch{return e}}const pP="@orpc/client",fP="1.14.4",Rg={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 mP(e,t){return t??Rg[e]?.status??500}function hP(e,t){return t||Rg[e]?.message||e}const t1=Symbol.for(`__${pP}@${fP}/error/ORPC_ERROR_CONSTRUCTORS__`);globalThis[t1]??=new WeakSet;const Wc=globalThis[t1];class hs extends Error{defined;code;status;data;constructor(t,...n){const r=KM(n);if(r.status!==void 0&&!gs(r.status))throw new Error("[ORPCError] Invalid error status code.");const a=hP(t,r.message);super(a,r),this.code=t,this.status=mP(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(Wc.has(this)){const n=uP(t);if(n&&Wc.has(n))return!0}return super[Symbol.hasInstance](t)}}Wc.add(hs);function gP(e){return e instanceof hs?e:new hs("INTERNAL_SERVER_ERROR",{message:"Internal server error",cause:e})}function gs(e){return e<200||e>=400}function n1(e){if(!Gr(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"&&gs(e.status)&&"message"in e&&typeof e.message=="string"}function r1(e,t={}){return new hs(e.code,{...t,...e})}class Xu extends TypeError{}class bP extends TypeError{}class bs extends Error{data;constructor(t){super(t?.message??"An error event was received",t),this.data=t?.data}}function EP(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 yP{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=EP(`${a}
95
+
96
+ `);this.options.onEvent&&this.options.onEvent(i)}}end(){if(this.incomplete)throw new bP("Event Iterator ended before complete")}}class TP extends TransformStream{constructor(){let t;super({start(n){t=new yP({onEvent:r=>{n.enqueue(r)}})},transform(n){t.feed(n)},flush(){t.end()}})}}function a1(e){if(e.includes(`
97
+ `))throw new Xu("Event's id must not contain a newline character")}function SP(e){if(e.includes(`
98
+ `))throw new Xu("Event's event must not contain a newline character")}function i1(e){if(!Number.isInteger(e)||e<0)throw new Xu("Event's retry must be a integer and >= 0")}function s1(e){if(e.includes(`
99
+ `))throw new Xu("Event's comment must not contain a newline character")}function xP(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??[])s1(n),t+=`: ${n}
101
+ `;return t}function lo(e){let t="";return t+=AP(e.comments),e.event!==void 0&&(SP(e.event),t+=`event: ${e.event}
102
+ `),e.retry!==void 0&&(i1(e.retry),t+=`retry: ${e.retry}
103
+ `),e.id!==void 0&&(a1(e.id),t+=`id: ${e.id}
104
+ `),t+=xP(e.data),t+=`
105
+ `,t}const o1=Symbol("ORPC_EVENT_SOURCE_META");function Ji(e,t){if(t.id===void 0&&t.retry===void 0&&!t.comments?.length)return e;if(t.id!==void 0&&a1(t.id),t.retry!==void 0&&i1(t.retry),t.comments!==void 0)for(const n of t.comments)s1(n);return new Proxy(e,{get(n,r,a){return r===o1?t:Reflect.get(n,r,a)}})}function Ko(e){return la(e)?Reflect.get(e,o1):void 0}function _P(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 vP(e){const t=e.match(/filename\*=(UTF-8'')?([^;]*)/i);if(t&&typeof t[2]=="string")return dP(t[2]);const n=e.match(/filename="((?:\\"|[^"])*)"/i);if(n&&typeof n[1]=="string")return n[1].replace(/\\"/g,'"')}function _0(e,t){const n={...e};for(const r in t)Array.isArray(t[r])?n[r]=[...Zo(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 v0(e,t){const n=async r=>{let a=await t.error(r);if(a!==r){const i=Ko(r);i&&la(a)&&(a=Ji(a,i))}return a};return new kg(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=Ko(a);s&&la(i)&&(i=Ji(i,s))}return{done:r,value:i}},async()=>{try{await e.return?.()}catch(r){throw await n(r)}})}function wP(e){return{...e,context:e.context??{}}}function u1(e,t={}){const n=t.path??[],r=async(...[i,s={}])=>await e.call(n,i,wP(s)),a=new Proxy(r,{get(i,s){return typeof s!="string"?Reflect.get(i,s):u1(e,{...t,path:[...n,s]})}});return e1(a)}function l1(e,t){return{...e,...t}}class Dg{"~orpc";constructor(t){if(t.route?.successStatus&&gs(t.route.successStatus))throw new Error("[ContractProcedure] Invalid successStatus.");if(Object.values(t.errorMap).some(n=>n&&n.status&&!gs(n.status)))throw new Error("[ContractProcedure] Invalid error status code.");this["~orpc"]=t}}function Vc(e){return e instanceof Dg?!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 NP(e,t={}){const r=e?.pipeThrough(new TextDecoderStream).pipeThrough(new TP)?.getReader();let a,i=!1;return new kg(async()=>{a??=Ig("consume_event_iterator_stream");try{for(;;){if(r===void 0)return{done:!0,value:void 0};const{done:s,value:o}=await Ya(a,()=>r.read());if(s){if(i)throw new JM("Stream was cancelled");return{done:!0,value:void 0}}switch(o.event){case"message":{let u=ko(o.data);return la(u)&&(u=Ji(u,o)),a?.addEvent("message"),{done:!1,value:u}}case"error":{let u=new bs({data:ko(o.data)});throw u=Ji(u,o),a?.addEvent("error"),u}case"done":{let u=ko(o.data);return la(u)&&(u=Ji(u,o)),a?.addEvent("done"),{done:!0,value:u}}default:a?.addEvent("maybe_keepalive")}}}catch(s){throw s instanceof bs||ua(a,s,t),s}},async s=>{try{s!=="next"&&(i=!0,a?.addEvent("cancelled")),await Ya(a,()=>r?.cancel())}catch(o){throw ua(a,o,t),o}finally{a?.end()}})}function CP(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,l;return new ReadableStream({start(d){l=Ig("stream_event_iterator"),i&&d.enqueue(lo({comments:[s]}))},async pull(d){try{n&&(u=setInterval(()=>{d.enqueue(lo({comments:[a]})),l?.addEvent("keepalive")},r));const f=await Ya(l,()=>e.next());if(clearInterval(u),o)return;const m=Ko(f.value);if(!f.done||f.value!==void 0||m!==void 0){const b=f.done?"done":"message";d.enqueue(lo({...m,event:b,data:Gc(f.value)})),l?.addEvent(b)}f.done&&(d.close(),l?.end())}catch(f){if(clearInterval(u),o)return;f instanceof bs?(d.enqueue(lo({...Ko(f),event:"error",data:Gc(f.data)})),l?.addEvent("error"),d.close()):(ua(l,f),d.error(f)),l?.end()}},async cancel(){try{o=!0,clearInterval(u),l?.addEvent("cancelled"),await Ya(l,()=>e.return?.())}catch(d){throw ua(l,d),d}finally{l?.end()}}}).pipeThrough(new TextEncoderStream)}function IP(e,t={}){return Bi({name:"parse_standard_body",signal:t.signal},async()=>{const n=e.headers.get("content-disposition");if(typeof n=="string"){const i=vP(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 ko(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 NP(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 kP(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??_P(e instanceof File?e.name:"blob")),e):e instanceof FormData||e instanceof URLSearchParams?e:ms(e)?(t.set("content-type","text/event-stream"),CP(e,n)):(t.set("content-type","application/json"),Gc(e))}function c1(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 RP(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 DP(e,t={}){const n=RP(e.headers),r=kP(e.body,n,t);return new Request(e.url,{signal:e.signal,method:e.method,headers:n,body:r})}function OP(e,t={}){return{body:eP(()=>IP(e,t)),status:e.status,get headers(){const n=c1(e.headers);return Object.defineProperty(this,"headers",{value:n,writable:!0}),n},set headers(n){Object.defineProperty(this,"headers",{value:n,writable:!0})}}}class d1{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 LP{constructor(t,n,r={}){this.codec=t,this.sender=n,new d1(r.plugins).init(r),this.interceptors=Zo(r.interceptors),this.clientInterceptors=Zo(r.clientInterceptors)}interceptors;clientInterceptors;call(t,n,r){return Bi({name:`${T0}.${t.join("/")}`,signal:r.signal},a=>(a?.setAttribute("rpc.system",T0),a?.setAttribute("rpc.method",t.join(".")),ms(n)&&(n=S0({name:"consume_event_iterator_input",signal:r.signal},n)),Hc(this.interceptors,{...r,path:t,input:n},async({path:i,input:s,...o})=>{const u=Ku();let l;const c=u?.trace.getActiveSpan()??a;c&&u&&(l=u?.trace.setSpan(u.context.active(),c));const d=await Bi({name:"encode_request",context:l},()=>this.codec.encode(i,s,o)),f=await Hc(this.clientInterceptors,{...o,input:s,path:i,request:d},({input:b,path:y,request:E,...T})=>Bi({name:"send_request",signal:T.signal,context:l},()=>this.sender.call(E,T,y,b))),m=await Bi({name:"decode_response",context:l},()=>this.codec.decode(f,o,i,s));return ms(m)?S0({name:"consume_event_iterator_output",signal:o.signal},m):m})))}}function w0(e){return`/${e.map(encodeURIComponent).join("/")}`}function FP(e){return typeof e.forEach=="function"?c1(e):e}function MP(e){return Object.entries(Rg).find(([,t])=>t.status===e)?.[0]??"MALFORMED_ORPC_ERROR_RESPONSE"}function PP(e,t){return{...e,...t}}function BP(e,t){return{...e,...t}}function UP(e,t){return e.path?{...e,path:`${t}${e.path}`}:e}function jP(e,t){return{...e,tags:[...t,...e.tags??[]]}}function $P(e,t){return e?`${e}${t}`:t}function zP(e,t){return e?[...e,...t]:t}function HP(e,t){let n=e;return t.prefix&&(n=UP(n,t.prefix)),t.tags?.length&&(n=jP(n,t.tags)),n}function p1(e,t){if(Vc(e))return new Dg({...e["~orpc"],errorMap:l1(t.errorMap,e["~orpc"].errorMap),route:HP(e["~orpc"].route,t)});if(typeof e!="object"||e===null)return e;const n={};for(const r in e)n[r]=p1(e[r],t);return n}class Vn extends Dg{constructor(t){super(t),this["~orpc"].prefix=t.prefix,this["~orpc"].tags=t.tags}$meta(t){return new Vn({...this["~orpc"],meta:t})}$route(t){return new Vn({...this["~orpc"],route:t})}$input(t){return new Vn({...this["~orpc"],inputSchema:t})}errors(t){return new Vn({...this["~orpc"],errorMap:l1(this["~orpc"].errorMap,t)})}meta(t){return new Vn({...this["~orpc"],meta:PP(this["~orpc"].meta,t)})}route(t){return new Vn({...this["~orpc"],route:BP(this["~orpc"].route,t)})}input(t){return new Vn({...this["~orpc"],inputSchema:t})}output(t){return new Vn({...this["~orpc"],outputSchema:t})}prefix(t){return new Vn({...this["~orpc"],prefix:$P(this["~orpc"].prefix,t)})}tag(...t){return new Vn({...this["~orpc"],tags:zP(this["~orpc"].tags,t)})}router(t){return p1(t,this["~orpc"])}}const Ht=new Vn({errorMap:{},route:{},meta:{}}),GP={defaultMethod:"POST",defaultSuccessStatus:200,defaultSuccessDescription:"OK",defaultInputStructure:"compact",defaultOutputStructure:"compact"};function co(e,t){return t===void 0?GP[e]:t}var N0;function J(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 l=s.prototype,c=Object.keys(l);for(let d=0;d<c.length;d++){const f=c[d];f in o||(o[f]=l[f].bind(o))}}const a=n?.Parent??Object;class i extends a{}Object.defineProperty(i,"name",{value:e});function s(o){var u;const l=n?.Parent?new i:this;r(l,o),(u=l._zod).deferred??(u.deferred=[]);for(const c of l._zod.deferred)c();return l}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 Ha extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class f1 extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(N0=globalThis).__zod_globalConfig??(N0.__zod_globalConfig={});const Og=globalThis.__zod_globalConfig;function vr(e){return Og}function m1(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 qc(e,t){return typeof t=="bigint"?t.toString():t}function Lg(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Fg(e){return e==null}function Mg(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function WP(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 C0=Symbol("evaluating");function vt(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==C0)return r===void 0&&(r=C0,r=n()),r},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function Sa(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Kr(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function I0(e){return JSON.stringify(e)}function VP(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const h1="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Xo(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const qP=Lg(()=>{if(Og.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Za(e){if(Xo(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Xo(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function g1(e){return Za(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const YP=new Set(["string","number","symbol"]);function Ka(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Xr(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function De(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 ZP(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const KP={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 XP(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=Kr(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 Sa(this,"shape",s),s},checks:[]});return Xr(e,i)}function QP(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=Kr(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 Sa(this,"shape",s),s},checks:[]});return Xr(e,i)}function JP(e,t){if(!Za(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=Kr(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return Sa(this,"shape",i),i}});return Xr(e,a)}function e5(e,t){if(!Za(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Kr(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return Sa(this,"shape",r),r}});return Xr(e,n)}function t5(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=Kr(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return Sa(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Xr(e,n)}function n5(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=Kr(t._zod.def,{get shape(){const o=t._zod.def.shape,u={...o};if(n)for(const l in n){if(!(l in o))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(u[l]=e?new e({type:"optional",innerType:o[l]}):o[l])}else for(const l in o)u[l]=e?new e({type:"optional",innerType:o[l]}):o[l];return Sa(this,"shape",u),u},checks:[]});return Xr(t,s)}function r5(e,t,n){const r=Kr(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 Sa(this,"shape",i),i}});return Xr(t,r)}function Fa(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 a5(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 Ma(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function po(e){return typeof e=="string"?e:e?.message}function wr(e,t,n){const r=e.message?e.message:po(e.inst?._zod.def?.error?.(e))??po(t?.error?.(e))??po(n.customError?.(e))??po(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 Pg(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Es(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const b1=(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,qc,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},E1=J("$ZodError",b1),y1=J("$ZodError",b1,{Parent:Error});function i5(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 s5(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,l=0;for(;l<o.length;){const c=o[l];l===o.length-1?(u[c]=u[c]||{_errors:[]},u[c]._errors.push(t(s))):u[c]=u[c]||{_errors:[]},u=u[c],l++}}}};return r(e),n}const Bg=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 Ha;if(s.issues.length){const o=new(a?.Err??e)(s.issues.map(u=>wr(u,i,vr())));throw h1(o,a?.callee),o}return s.value},Ug=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=>wr(u,i,vr())));throw h1(o,a?.callee),o}return s.value},Qu=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 Ha;return i.issues.length?{success:!1,error:new(e??E1)(i.issues.map(s=>wr(s,a,vr())))}:{success:!0,data:i.value}},o5=Qu(y1),Ju=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=>wr(s,a,vr())))}:{success:!0,data:i.value}},u5=Ju(y1),l5=e=>(t,n,r)=>{const a=r?{...r,direction:"backward"}:{direction:"backward"};return Bg(e)(t,n,a)},c5=e=>(t,n,r)=>Bg(e)(t,n,r),d5=e=>async(t,n,r)=>{const a=r?{...r,direction:"backward"}:{direction:"backward"};return Ug(e)(t,n,a)},p5=e=>async(t,n,r)=>Ug(e)(t,n,r),f5=e=>(t,n,r)=>{const a=r?{...r,direction:"backward"}:{direction:"backward"};return Qu(e)(t,n,a)},m5=e=>(t,n,r)=>Qu(e)(t,n,r),h5=e=>async(t,n,r)=>{const a=r?{...r,direction:"backward"}:{direction:"backward"};return Ju(e)(t,n,a)},g5=e=>async(t,n,r)=>Ju(e)(t,n,r),b5=/^[cC][0-9a-z]{6,}$/,E5=/^[0-9a-z]+$/,y5=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,T5=/^[0-9a-vA-V]{20}$/,S5=/^[A-Za-z0-9]{27}$/,x5=/^[a-zA-Z0-9_-]{21}$/,A5=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,_5=/^([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})$/,k0=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)$/,v5=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,w5="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function N5(){return new RegExp(w5,"u")}const C5=/^(?:(?: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])$/,I5=/^(([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}|:))$/,k5=/^((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])$/,R5=/^(([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])$/,D5=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,T1=/^[A-Za-z0-9_-]*$/,O5=/^https?$/,L5=/^\+[1-9]\d{6,14}$/,S1="(?:(?:\\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])))",F5=new RegExp(`^${S1}$`);function x1(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 M5(e){return new RegExp(`^${x1(e)}$`)}function P5(e){const t=x1({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(`^${S1}T(?:${r})$`)}const B5=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},U5=/^-?\d+$/,A1=/^-?\d+(?:\.\d+)?$/,j5=/^(?:true|false)$/i,$5=/^[^A-Z]*$/,z5=/^[^a-z]*$/,Pn=J("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),_1={number:"number",bigint:"bigint",object:"date"},v1=J("$ZodCheckLessThan",(e,t)=>{Pn.init(e,t);const n=_1[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})}}),w1=J("$ZodCheckGreaterThan",(e,t)=>{Pn.init(e,t);const n=_1[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})}}),H5=J("$ZodCheckMultipleOf",(e,t)=>{Pn.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):WP(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})}}),G5=J("$ZodCheckNumberFormat",(e,t)=>{Pn.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[a,i]=KP[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=U5)}),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})}}),W5=J("$ZodCheckMaxLength",(e,t)=>{var n;Pn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!Fg(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=Pg(a);r.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),V5=J("$ZodCheckMinLength",(e,t)=>{var n;Pn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!Fg(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=Pg(a);r.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),q5=J("$ZodCheckLengthEquals",(e,t)=>{var n;Pn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!Fg(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=Pg(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})}}),el=J("$ZodCheckStringFormat",(e,t)=>{var n,r;Pn.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=()=>{})}),Y5=J("$ZodCheckRegex",(e,t)=>{el.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})}}),Z5=J("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=$5),el.init(e,t)}),K5=J("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=z5),el.init(e,t)}),X5=J("$ZodCheckIncludes",(e,t)=>{Pn.init(e,t);const n=Ka(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})}}),Q5=J("$ZodCheckStartsWith",(e,t)=>{Pn.init(e,t);const n=new RegExp(`^${Ka(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})}}),J5=J("$ZodCheckEndsWith",(e,t)=>{Pn.init(e,t);const n=new RegExp(`.*${Ka(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})}}),eB=J("$ZodCheckOverwrite",(e,t)=>{Pn.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class tB{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 nB={major:4,minor:4,patch:3},Bt=J("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=nB;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 l=Fa(s),c;for(const d of o){if(d._zod.def.when){if(a5(s)||!d._zod.def.when(s))continue}else if(l)continue;const f=s.issues.length,m=d._zod.check(s);if(m instanceof Promise&&u?.async===!1)throw new Ha;if(c||m instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await m,s.issues.length!==f&&(l||(l=Fa(s,f)))});else{if(s.issues.length===f)continue;l||(l=Fa(s,f))}}return c?c.then(()=>s):s},i=(s,o,u)=>{if(Fa(s))return s.aborted=!0,s;const l=a(o,r,u);if(l instanceof Promise){if(u.async===!1)throw new Ha;return l.then(c=>e._zod.parse(c,u))}return e._zod.parse(l,u)};e._zod.run=(s,o)=>{if(o.skipChecks)return e._zod.parse(s,o);if(o.direction==="backward"){const l=e._zod.parse({value:s.value,issues:[]},{...o,skipChecks:!0});return l instanceof Promise?l.then(c=>i(c,s,o)):i(l,s,o)}const u=e._zod.parse(s,o);if(u instanceof Promise){if(o.async===!1)throw new Ha;return u.then(l=>a(l,r,o))}return a(u,r,o)}}vt(e,"~standard",()=>({validate:a=>{try{const i=o5(e,a);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return u5(e,a).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),jg=J("$ZodString",(e,t)=>{Bt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??B5(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}}),Ft=J("$ZodStringFormat",(e,t)=>{el.init(e,t),jg.init(e,t)}),rB=J("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=_5),Ft.init(e,t)}),aB=J("$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=k0(r))}else t.pattern??(t.pattern=k0());Ft.init(e,t)}),iB=J("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=v5),Ft.init(e,t)}),sB=J("$ZodURL",(e,t)=>{Ft.init(e,t),e._zod.check=n=>{try{const r=n.value.trim();if(!t.normalize&&t.protocol?.source===O5.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})}}}),oB=J("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=N5()),Ft.init(e,t)}),uB=J("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=x5),Ft.init(e,t)}),lB=J("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=b5),Ft.init(e,t)}),cB=J("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=E5),Ft.init(e,t)}),dB=J("$ZodULID",(e,t)=>{t.pattern??(t.pattern=y5),Ft.init(e,t)}),pB=J("$ZodXID",(e,t)=>{t.pattern??(t.pattern=T5),Ft.init(e,t)}),fB=J("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=S5),Ft.init(e,t)}),mB=J("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=P5(t)),Ft.init(e,t)}),hB=J("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=F5),Ft.init(e,t)}),gB=J("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=M5(t)),Ft.init(e,t)}),bB=J("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=A5),Ft.init(e,t)}),EB=J("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=C5),Ft.init(e,t),e._zod.bag.format="ipv4"}),yB=J("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=I5),Ft.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})}}}),TB=J("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=k5),Ft.init(e,t)}),SB=J("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=R5),Ft.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 N1(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const xB=J("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=D5),Ft.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{N1(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function AB(e){if(!T1.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return N1(n)}const _B=J("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=T1),Ft.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{AB(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),vB=J("$ZodE164",(e,t)=>{t.pattern??(t.pattern=L5),Ft.init(e,t)});function wB(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 NB=J("$ZodJWT",(e,t)=>{Ft.init(e,t),e._zod.check=n=>{wB(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),C1=J("$ZodNumber",(e,t)=>{Bt.init(e,t),e._zod.pattern=e._zod.bag.pattern??A1,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}}),CB=J("$ZodNumberFormat",(e,t)=>{G5.init(e,t),C1.init(e,t)}),IB=J("$ZodBoolean",(e,t)=>{Bt.init(e,t),e._zod.pattern=j5,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}}),kB=J("$ZodUnknown",(e,t)=>{Bt.init(e,t),e._zod.parse=n=>n}),RB=J("$ZodNever",(e,t)=>{Bt.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function R0(e,t,n){e.issues.length&&t.issues.push(...Ma(n,e.issues)),t.value[n]=e.value}const DB=J("$ZodArray",(e,t)=>{Bt.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(l=>R0(l,n,s))):R0(u,n,s)}return i.length?Promise.all(i).then(()=>n):n}});function Qo(e,t,n,r,a,i){const s=n in r;if(e.issues.length){if(a&&i&&!s)return;t.issues.push(...Ma(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 I1(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=ZP(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function k1(e,t,n,r,a,i){const s=[],o=a.keySet,u=a.catchall._zod,l=u.def.type,c=u.optin==="optional",d=u.optout==="optional";for(const f in t){if(f==="__proto__"||o.has(f))continue;if(l==="never"){s.push(f);continue}const m=u.run({value:t[f],issues:[]},r);m instanceof Promise?e.push(m.then(b=>Qo(b,n,f,t,c,d))):Qo(m,n,f,t,c,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 OB=J("$ZodObject",(e,t)=>{if(Bt.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=Lg(()=>I1(t));vt(e._zod,"propValues",()=>{const o=t.shape,u={};for(const l in o){const c=o[l]._zod;if(c.values){u[l]??(u[l]=new Set);for(const d of c.values)u[l].add(d)}}return u});const a=Xo,i=t.catchall;let s;e._zod.parse=(o,u)=>{s??(s=r.value);const l=o.value;if(!a(l))return o.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),o;o.value={};const c=[],d=s.shape;for(const f of s.keys){const m=d[f],b=m._zod.optin==="optional",y=m._zod.optout==="optional",E=m._zod.run({value:l[f],issues:[]},u);E instanceof Promise?c.push(E.then(T=>Qo(T,o,f,l,b,y))):Qo(E,o,f,l,b,y)}return i?k1(c,l,o,u,r.value,e):c.length?Promise.all(c).then(()=>o):o}}),LB=J("$ZodObjectJIT",(e,t)=>{OB.init(e,t);const n=e._zod.parse,r=Lg(()=>I1(t)),a=f=>{const m=new tB(["shape","payload","ctx"]),b=r.value,y=x=>{const I=I0(x);return`shape[${I}]._zod.run({ value: input[${I}], issues: [] }, ctx)`};m.write("const input = payload.value;");const E=Object.create(null);let T=0;for(const x of b.keys)E[x]=`key_${T++}`;m.write("const newResult = {};");for(const x of b.keys){const I=E[x],D=I0(x),S=f[x],A=S?._zod?.optin==="optional",k=S?._zod?.optout==="optional";m.write(`const ${I} = ${y(x)};`),A&&k?m.write(`
108
+ if (${I}.issues.length) {
109
+ if (${D} in input) {
110
+ payload.issues = payload.issues.concat(${I}.issues.map(iss => ({
111
+ ...iss,
112
+ path: iss.path ? [${D}, ...iss.path] : [${D}]
113
+ })));
114
+ }
115
+ }
116
+
117
+ if (${I}.value === undefined) {
118
+ if (${D} in input) {
119
+ newResult[${D}] = undefined;
120
+ }
121
+ } else {
122
+ newResult[${D}] = ${I}.value;
123
+ }
124
+
125
+ `):A?m.write(`
126
+ if (${I}.issues.length) {
127
+ payload.issues = payload.issues.concat(${I}.issues.map(iss => ({
128
+ ...iss,
129
+ path: iss.path ? [${D}, ...iss.path] : [${D}]
130
+ })));
131
+ }
132
+
133
+ if (${I}.value === undefined) {
134
+ if (${D} in input) {
135
+ newResult[${D}] = undefined;
136
+ }
137
+ } else {
138
+ newResult[${D}] = ${I}.value;
139
+ }
140
+
141
+ `):m.write(`
142
+ const ${I}_present = ${D} in input;
143
+ if (${I}.issues.length) {
144
+ payload.issues = payload.issues.concat(${I}.issues.map(iss => ({
145
+ ...iss,
146
+ path: iss.path ? [${D}, ...iss.path] : [${D}]
147
+ })));
148
+ }
149
+ if (!${I}_present && !${I}.issues.length) {
150
+ payload.issues.push({
151
+ code: "invalid_type",
152
+ expected: "nonoptional",
153
+ input: undefined,
154
+ path: [${D}]
155
+ });
156
+ }
157
+
158
+ if (${I}_present) {
159
+ if (${I}.value === undefined) {
160
+ newResult[${D}] = undefined;
161
+ } else {
162
+ newResult[${D}] = ${I}.value;
163
+ }
164
+ }
165
+
166
+ `)}m.write("payload.value = newResult;"),m.write("return payload;");const v=m.compile();return(x,I)=>v(f,x,I)};let i;const s=Xo,o=!Og.jitless,l=o&&qP.value,c=t.catchall;let d;e._zod.parse=(f,m)=>{d??(d=r.value);const b=f.value;return s(b)?o&&l&&m?.async===!1&&m.jitless!==!0?(i||(i=a(t.shape)),f=i(f,m),c?k1([],b,f,m,d,e):f):n(f,m):(f.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),f)}});function D0(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=>!Fa(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=>wr(s,r,vr())))}),t)}const FB=J("$ZodUnion",(e,t)=>{Bt.init(e,t),vt(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),vt(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),vt(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),vt(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=>Mg(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=>D0(o,r,e,a)):D0(s,r,e,a)}}),MB=J("$ZodIntersection",(e,t)=>{Bt.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,l])=>O0(n,u,l)):O0(n,i,s)}});function Yc(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(Za(e)&&Za(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=Yc(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=Yc(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 O0(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}),Fa(e))return e;const s=Yc(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 PB=J("$ZodRecord",(e,t)=>{Bt.init(e,t),e._zod.parse=(n,r)=>{const a=n.value;if(!Za(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 l of s)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){o.add(typeof l=="number"?l.toString():l);const c=t.keyType._zod.run({value:l,issues:[]},r);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(m=>wr(m,r,vr())),input:l,path:[l],inst:e});continue}const d=c.value,f=t.valueType._zod.run({value:a[l],issues:[]},r);f instanceof Promise?i.push(f.then(m=>{m.issues.length&&n.issues.push(...Ma(l,m.issues)),n.value[d]=m.value})):(f.issues.length&&n.issues.push(...Ma(l,f.issues)),n.value[d]=f.value)}let u;for(const l in a)o.has(l)||(u=u??[],u.push(l));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"&&A1.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=>wr(d,r,vr())),input:o,path:[o],inst:e});continue}const c=t.valueType._zod.run({value:a[o],issues:[]},r);c instanceof Promise?i.push(c.then(d=>{d.issues.length&&n.issues.push(...Ma(o,d.issues)),n.value[u.value]=d.value})):(c.issues.length&&n.issues.push(...Ma(o,c.issues)),n.value[u.value]=c.value)}}return i.length?Promise.all(i).then(()=>n):n}}),BB=J("$ZodEnum",(e,t)=>{Bt.init(e,t);const n=m1(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(a=>YP.has(typeof a)).map(a=>typeof a=="string"?Ka(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}}),UB=J("$ZodLiteral",(e,t)=>{if(Bt.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"?Ka(r):r?Ka(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}}),jB=J("$ZodTransform",(e,t)=>{Bt.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new f1(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 Ha;return n.value=a,n.fallback=!0,n}});function L0(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const R1=J("$ZodOptional",(e,t)=>{Bt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",vt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),vt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Mg(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=>L0(s,a)):L0(i,a)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),$B=J("$ZodExactOptional",(e,t)=>{R1.init(e,t),vt(e._zod,"values",()=>t.innerType._zod.values),vt(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),zB=J("$ZodNullable",(e,t)=>{Bt.init(e,t),vt(e._zod,"optin",()=>t.innerType._zod.optin),vt(e._zod,"optout",()=>t.innerType._zod.optout),vt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Mg(n.source)}|null)$`):void 0}),vt(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)}),HB=J("$ZodDefault",(e,t)=>{Bt.init(e,t),e._zod.optin="optional",vt(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=>F0(i,t)):F0(a,t)}});function F0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const GB=J("$ZodPrefault",(e,t)=>{Bt.init(e,t),e._zod.optin="optional",vt(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))}),WB=J("$ZodNonOptional",(e,t)=>{Bt.init(e,t),vt(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=>M0(i,e)):M0(a,e)}});function M0(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 VB=J("$ZodCatch",(e,t)=>{Bt.init(e,t),e._zod.optin="optional",vt(e._zod,"optout",()=>t.innerType._zod.optout),vt(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=>wr(s,r,vr()))},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=>wr(i,r,vr()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),D1=J("$ZodPipe",(e,t)=>{Bt.init(e,t),vt(e._zod,"values",()=>t.in._zod.values),vt(e._zod,"optin",()=>t.in._zod.optin),vt(e._zod,"optout",()=>t.out._zod.optout),vt(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=>fo(s,t.in,r)):fo(i,t.in,r)}const a=t.in._zod.run(n,r);return a instanceof Promise?a.then(i=>fo(i,t.out,r)):fo(a,t.out,r)}});function fo(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 qB=J("$ZodPreprocess",(e,t)=>{D1.init(e,t)}),YB=J("$ZodReadonly",(e,t)=>{Bt.init(e,t),vt(e._zod,"propValues",()=>t.innerType._zod.propValues),vt(e._zod,"values",()=>t.innerType._zod.values),vt(e._zod,"optin",()=>t.innerType?._zod?.optin),vt(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(P0):P0(a)}});function P0(e){return e.value=Object.freeze(e.value),e}const ZB=J("$ZodCustom",(e,t)=>{Pn.init(e,t),Bt.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=>B0(i,n,r,e));B0(a,n,r,e)}});function B0(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(Es(a))}}var U0;class KB{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 XB(){return new KB}(U0=globalThis).__zod_globalRegistry??(U0.__zod_globalRegistry=XB());const Ui=globalThis.__zod_globalRegistry;function QB(e,t){return new e({type:"string",...De(t)})}function JB(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...De(t)})}function j0(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...De(t)})}function e8(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...De(t)})}function t8(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...De(t)})}function n8(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...De(t)})}function r8(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...De(t)})}function a8(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...De(t)})}function i8(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...De(t)})}function s8(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...De(t)})}function o8(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...De(t)})}function u8(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...De(t)})}function l8(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...De(t)})}function c8(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...De(t)})}function d8(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...De(t)})}function p8(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...De(t)})}function f8(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...De(t)})}function m8(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...De(t)})}function h8(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...De(t)})}function g8(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...De(t)})}function b8(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...De(t)})}function E8(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...De(t)})}function y8(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...De(t)})}function T8(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...De(t)})}function S8(e,t){return new e({type:"string",format:"date",check:"string_format",...De(t)})}function x8(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...De(t)})}function A8(e,t){return new e({type:"string",format:"duration",check:"string_format",...De(t)})}function _8(e,t){return new e({type:"number",checks:[],...De(t)})}function v8(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...De(t)})}function w8(e,t){return new e({type:"boolean",...De(t)})}function N8(e){return new e({type:"unknown"})}function C8(e,t){return new e({type:"never",...De(t)})}function $0(e,t){return new v1({check:"less_than",...De(t),value:e,inclusive:!1})}function ql(e,t){return new v1({check:"less_than",...De(t),value:e,inclusive:!0})}function z0(e,t){return new w1({check:"greater_than",...De(t),value:e,inclusive:!1})}function Yl(e,t){return new w1({check:"greater_than",...De(t),value:e,inclusive:!0})}function H0(e,t){return new H5({check:"multiple_of",...De(t),value:e})}function O1(e,t){return new W5({check:"max_length",...De(t),maximum:e})}function Jo(e,t){return new V5({check:"min_length",...De(t),minimum:e})}function L1(e,t){return new q5({check:"length_equals",...De(t),length:e})}function I8(e,t){return new Y5({check:"string_format",format:"regex",...De(t),pattern:e})}function k8(e){return new Z5({check:"string_format",format:"lowercase",...De(e)})}function R8(e){return new K5({check:"string_format",format:"uppercase",...De(e)})}function D8(e,t){return new X5({check:"string_format",format:"includes",...De(t),includes:e})}function O8(e,t){return new Q5({check:"string_format",format:"starts_with",...De(t),prefix:e})}function L8(e,t){return new J5({check:"string_format",format:"ends_with",...De(t),suffix:e})}function mi(e){return new eB({check:"overwrite",tx:e})}function F8(e){return mi(t=>t.normalize(e))}function M8(){return mi(e=>e.trim())}function P8(){return mi(e=>e.toLowerCase())}function B8(){return mi(e=>e.toUpperCase())}function U8(){return mi(e=>VP(e))}function j8(e,t,n){return new e({type:"array",element:t,...De(n)})}function $8(e,t,n){return new e({type:"custom",check:"custom",fn:t,...De(n)})}function z8(e,t){const n=H8(r=>(r.addIssue=a=>{if(typeof a=="string")r.issues.push(Es(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(Es(i))}},e(r.value,r)),t);return n}function H8(e,t){const n=new Pn({check:"custom",...De(t)});return n._zod.check=e,n}function F1(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??Ui,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 Kt(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 c={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,c);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,c)}const d=e._zod.parent;d&&(s.ref||(s.ref=d),Kt(d,t,c),t.seen.get(d).isParent=!0)}const u=t.metadataRegistry.get(e);return u&&Object.assign(s.schema,u),t.io==="input"&&wn(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 M1(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 l=`#/${o}/`,c=s[1].schema.id??`__schema${e.counter++}`;return{defId:c,ref:l+c}},i=s=>{if(s[1].schema.$ref)return;const o=s[1],{ref:u,defId:l}=a(s);o.def={...o.schema},l&&(o.defId=l);const c=o.schema;for(const d in c)delete c[d];c.$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 l=e.external.registry.get(s[0])?.id;if(t!==s[0]&&l){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 P1(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 l=u.def??u.schema,c={...l},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")?(l.allOf=l.allOf??[],l.allOf.push(b)):Object.assign(l,b),Object.assign(l,c),o._zod.parent===d)for(const E in l)E==="$ref"||E==="allOf"||E in c||delete l[E];if(b.$ref&&m.def)for(const E in l)E==="$ref"||E==="allOf"||E in m.def&&JSON.stringify(l[E])===JSON.stringify(m.def[E])&&delete l[E]}const f=o._zod.parent;if(f&&f!==d){r(f);const m=e.seen.get(f);if(m?.schema.$ref&&(l.$ref=m.schema.$ref,m.def))for(const b in l)b==="$ref"||b==="allOf"||b in m.def&&JSON.stringify(l[b])===JSON.stringify(m.def[b])&&delete l[b]}e.override({zodSchema:o,jsonSchema:l,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:eu(t,"input",e.processors),output:eu(t,"output",e.processors)}},enumerable:!1,writable:!1}),o}catch{throw new Error("Error converting schema to JSON.")}}function wn(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 wn(r.element,n);if(r.type==="set")return wn(r.valueType,n);if(r.type==="lazy")return wn(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 wn(r.innerType,n);if(r.type==="intersection")return wn(r.left,n)||wn(r.right,n);if(r.type==="record"||r.type==="map")return wn(r.keyType,n)||wn(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:wn(r.in,n)||wn(r.out,n);if(r.type==="object"){for(const a in r.shape)if(wn(r.shape[a],n))return!0;return!1}if(r.type==="union"){for(const a of r.options)if(wn(a,n))return!0;return!1}if(r.type==="tuple"){for(const a of r.items)if(wn(a,n))return!0;return!!(r.rest&&wn(r.rest,n))}return!1}const G8=(e,t={})=>n=>{const r=F1({...n,processors:t});return Kt(e,r),M1(r,e),P1(r,e)},eu=(e,t,n={})=>r=>{const{libraryOptions:a,target:i}=r??{},s=F1({...a??{},target:i,io:t,processors:n});return Kt(e,s),M1(s,e),P1(s,e)},W8={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},V8=(e,t,n,r)=>{const a=n;a.type="string";const{minimum:i,maximum:s,format:o,patterns:u,contentEncoding:l}=e._zod.bag;if(typeof i=="number"&&(a.minLength=i),typeof s=="number"&&(a.maxLength=s),o&&(a.format=W8[o]??o,a.format===""&&delete a.format,o==="time"&&delete a.format),l&&(a.contentEncoding=l),u&&u.size>0){const c=[...u];c.length===1?a.pattern=c[0].source:c.length>1&&(a.allOf=[...c.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},q8=(e,t,n,r)=>{const a=n,{minimum:i,maximum:s,format:o,multipleOf:u,exclusiveMaximum:l,exclusiveMinimum:c}=e._zod.bag;typeof o=="string"&&o.includes("int")?a.type="integer":a.type="number";const d=typeof c=="number"&&c>=(i??Number.NEGATIVE_INFINITY),f=typeof l=="number"&&l<=(s??Number.POSITIVE_INFINITY),m=t.target==="draft-04"||t.target==="openapi-3.0";d?m?(a.minimum=c,a.exclusiveMinimum=!0):a.exclusiveMinimum=c:typeof i=="number"&&(a.minimum=i),f?m?(a.maximum=l,a.exclusiveMaximum=!0):a.exclusiveMaximum=l:typeof s=="number"&&(a.maximum=s),typeof u=="number"&&(a.multipleOf=u)},Y8=(e,t,n,r)=>{n.type="boolean"},Z8=(e,t,n,r)=>{n.not={}},K8=(e,t,n,r)=>{},X8=(e,t,n,r)=>{const a=e._zod.def,i=m1(a.entries);i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},Q8=(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},J8=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},eU=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},tU=(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=Kt(i.element,t,{...r,path:[...r.path,"items"]})},nU=(e,t,n,r)=>{const a=n,i=e._zod.def;a.type="object",a.properties={};const s=i.shape;for(const l in s)a.properties[l]=Kt(s[l],t,{...r,path:[...r.path,"properties",l]});const o=new Set(Object.keys(s)),u=new Set([...o].filter(l=>{const c=i.shape[l]._zod;return t.io==="input"?c.optin===void 0:c.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=Kt(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},rU=(e,t,n,r)=>{const a=e._zod.def,i=a.inclusive===!1,s=a.options.map((o,u)=>Kt(o,t,{...r,path:[...r.path,i?"oneOf":"anyOf",u]}));i?n.oneOf=s:n.anyOf=s},aU=(e,t,n,r)=>{const a=e._zod.def,i=Kt(a.left,t,{...r,path:[...r.path,"allOf",0]}),s=Kt(a.right,t,{...r,path:[...r.path,"allOf",1]}),o=l=>"allOf"in l&&Object.keys(l).length===1,u=[...o(i)?i.allOf:[i],...o(s)?s.allOf:[s]];n.allOf=u},iU=(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 c=Kt(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});a.patternProperties={};for(const d of u)a.patternProperties[d.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=Kt(i.keyType,t,{...r,path:[...r.path,"propertyNames"]})),a.additionalProperties=Kt(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const l=s._zod.values;if(l){const c=[...l].filter(d=>typeof d=="string"||typeof d=="number");c.length>0&&(a.required=c)}},sU=(e,t,n,r)=>{const a=e._zod.def,i=Kt(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"}]},oU=(e,t,n,r)=>{const a=e._zod.def;Kt(a.innerType,t,r);const i=t.seen.get(e);i.ref=a.innerType},uU=(e,t,n,r)=>{const a=e._zod.def;Kt(a.innerType,t,r);const i=t.seen.get(e);i.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},lU=(e,t,n,r)=>{const a=e._zod.def;Kt(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)))},cU=(e,t,n,r)=>{const a=e._zod.def;Kt(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},dU=(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;Kt(s,t,r);const o=t.seen.get(e);o.ref=s},pU=(e,t,n,r)=>{const a=e._zod.def;Kt(a.innerType,t,r);const i=t.seen.get(e);i.ref=a.innerType,n.readOnly=!0},B1=(e,t,n,r)=>{const a=e._zod.def;Kt(a.innerType,t,r);const i=t.seen.get(e);i.ref=a.innerType},fU=J("ZodISODateTime",(e,t)=>{mB.init(e,t),jt.init(e,t)});function mU(e){return T8(fU,e)}const hU=J("ZodISODate",(e,t)=>{hB.init(e,t),jt.init(e,t)});function gU(e){return S8(hU,e)}const bU=J("ZodISOTime",(e,t)=>{gB.init(e,t),jt.init(e,t)});function EU(e){return x8(bU,e)}const yU=J("ZodISODuration",(e,t)=>{bB.init(e,t),jt.init(e,t)});function TU(e){return A8(yU,e)}const SU=(e,t)=>{E1.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>s5(e,n)},flatten:{value:n=>i5(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,qc,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,qc,2)}},isEmpty:{get(){return e.issues.length===0}}})},er=J("ZodError",SU,{Parent:Error}),xU=Bg(er),AU=Ug(er),_U=Qu(er),vU=Ju(er),wU=l5(er),NU=c5(er),CU=d5(er),IU=p5(er),kU=f5(er),RU=m5(er),DU=h5(er),OU=g5(er),G0=new WeakMap;function $s(e,t,n){const r=Object.getPrototypeOf(e);let a=G0.get(r);if(a||(a=new Set,G0.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 Ut=J("ZodType",(e,t)=>(Bt.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:eu(e,"input"),output:eu(e,"output")}}),e.toJSONSchema=G8(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>xU(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>_U(e,n,r),e.parseAsync=async(n,r)=>AU(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>vU(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>wU(e,n,r),e.decode=(n,r)=>NU(e,n,r),e.encodeAsync=async(n,r)=>CU(e,n,r),e.decodeAsync=async(n,r)=>IU(e,n,r),e.safeEncode=(n,r)=>kU(e,n,r),e.safeDecode=(n,r)=>RU(e,n,r),e.safeEncodeAsync=async(n,r)=>DU(e,n,r),e.safeDecodeAsync=async(n,r)=>OU(e,n,r),$s(e,"ZodType",{check(...n){const r=this.def;return this.clone(Kr(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 Xr(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(v9(n,r))},superRefine(n,r){return this.check(w9(n,r))},overwrite(n){return this.check(mi(n))},optional(){return Y0(this)},exactOptional(){return p9(this)},nullable(){return Z0(this)},nullish(){return Y0(Z0(this))},nonoptional(n){return E9(this,n)},array(){return Xn(this)},or(n){return s9([this,n])},and(n){return u9(this,n)},transform(n){return K0(this,$1(n))},default(n){return h9(this,n)},prefault(n){return b9(this,n)},catch(n){return T9(this,n)},pipe(n){return K0(this,n)},readonly(){return A9(this)},describe(n){const r=this.clone();return Ui.add(r,{description:n}),r},meta(...n){if(n.length===0)return Ui.get(this);const r=this.clone();return Ui.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 Ui.get(e)?.description},configurable:!0}),e)),U1=J("_ZodString",(e,t)=>{jg.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(r,a,i)=>V8(e,r,a);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,$s(e,"_ZodString",{regex(...r){return this.check(I8(...r))},includes(...r){return this.check(D8(...r))},startsWith(...r){return this.check(O8(...r))},endsWith(...r){return this.check(L8(...r))},min(...r){return this.check(Jo(...r))},max(...r){return this.check(O1(...r))},length(...r){return this.check(L1(...r))},nonempty(...r){return this.check(Jo(1,...r))},lowercase(r){return this.check(k8(r))},uppercase(r){return this.check(R8(r))},trim(){return this.check(M8())},normalize(...r){return this.check(F8(...r))},toLowerCase(){return this.check(P8())},toUpperCase(){return this.check(B8())},slugify(){return this.check(U8())}})}),LU=J("ZodString",(e,t)=>{jg.init(e,t),U1.init(e,t),e.email=n=>e.check(JB(FU,n)),e.url=n=>e.check(a8(MU,n)),e.jwt=n=>e.check(y8(XU,n)),e.emoji=n=>e.check(i8(PU,n)),e.guid=n=>e.check(j0(W0,n)),e.uuid=n=>e.check(e8(mo,n)),e.uuidv4=n=>e.check(t8(mo,n)),e.uuidv6=n=>e.check(n8(mo,n)),e.uuidv7=n=>e.check(r8(mo,n)),e.nanoid=n=>e.check(s8(BU,n)),e.guid=n=>e.check(j0(W0,n)),e.cuid=n=>e.check(o8(UU,n)),e.cuid2=n=>e.check(u8(jU,n)),e.ulid=n=>e.check(l8($U,n)),e.base64=n=>e.check(g8(YU,n)),e.base64url=n=>e.check(b8(ZU,n)),e.xid=n=>e.check(c8(zU,n)),e.ksuid=n=>e.check(d8(HU,n)),e.ipv4=n=>e.check(p8(GU,n)),e.ipv6=n=>e.check(f8(WU,n)),e.cidrv4=n=>e.check(m8(VU,n)),e.cidrv6=n=>e.check(h8(qU,n)),e.e164=n=>e.check(E8(KU,n)),e.datetime=n=>e.check(mU(n)),e.date=n=>e.check(gU(n)),e.time=n=>e.check(EU(n)),e.duration=n=>e.check(TU(n))});function le(e){return QB(LU,e)}const jt=J("ZodStringFormat",(e,t)=>{Ft.init(e,t),U1.init(e,t)}),FU=J("ZodEmail",(e,t)=>{iB.init(e,t),jt.init(e,t)}),W0=J("ZodGUID",(e,t)=>{rB.init(e,t),jt.init(e,t)}),mo=J("ZodUUID",(e,t)=>{aB.init(e,t),jt.init(e,t)}),MU=J("ZodURL",(e,t)=>{sB.init(e,t),jt.init(e,t)}),PU=J("ZodEmoji",(e,t)=>{oB.init(e,t),jt.init(e,t)}),BU=J("ZodNanoID",(e,t)=>{uB.init(e,t),jt.init(e,t)}),UU=J("ZodCUID",(e,t)=>{lB.init(e,t),jt.init(e,t)}),jU=J("ZodCUID2",(e,t)=>{cB.init(e,t),jt.init(e,t)}),$U=J("ZodULID",(e,t)=>{dB.init(e,t),jt.init(e,t)}),zU=J("ZodXID",(e,t)=>{pB.init(e,t),jt.init(e,t)}),HU=J("ZodKSUID",(e,t)=>{fB.init(e,t),jt.init(e,t)}),GU=J("ZodIPv4",(e,t)=>{EB.init(e,t),jt.init(e,t)}),WU=J("ZodIPv6",(e,t)=>{yB.init(e,t),jt.init(e,t)}),VU=J("ZodCIDRv4",(e,t)=>{TB.init(e,t),jt.init(e,t)}),qU=J("ZodCIDRv6",(e,t)=>{SB.init(e,t),jt.init(e,t)}),YU=J("ZodBase64",(e,t)=>{xB.init(e,t),jt.init(e,t)}),ZU=J("ZodBase64URL",(e,t)=>{_B.init(e,t),jt.init(e,t)}),KU=J("ZodE164",(e,t)=>{vB.init(e,t),jt.init(e,t)}),XU=J("ZodJWT",(e,t)=>{NB.init(e,t),jt.init(e,t)}),j1=J("ZodNumber",(e,t)=>{C1.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(r,a,i)=>q8(e,r,a),$s(e,"ZodNumber",{gt(r,a){return this.check(z0(r,a))},gte(r,a){return this.check(Yl(r,a))},min(r,a){return this.check(Yl(r,a))},lt(r,a){return this.check($0(r,a))},lte(r,a){return this.check(ql(r,a))},max(r,a){return this.check(ql(r,a))},int(r){return this.check(V0(r))},safe(r){return this.check(V0(r))},positive(r){return this.check(z0(0,r))},nonnegative(r){return this.check(Yl(0,r))},negative(r){return this.check($0(0,r))},nonpositive(r){return this.check(ql(0,r))},multipleOf(r,a){return this.check(H0(r,a))},step(r,a){return this.check(H0(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 tl(e){return _8(j1,e)}const QU=J("ZodNumberFormat",(e,t)=>{CB.init(e,t),j1.init(e,t)});function V0(e){return v8(QU,e)}const JU=J("ZodBoolean",(e,t)=>{IB.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Y8(e,n,r)});function ca(e){return w8(JU,e)}const e9=J("ZodUnknown",(e,t)=>{kB.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(n,r,a)=>K8()});function Xa(){return N8(e9)}const t9=J("ZodNever",(e,t)=>{RB.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Z8(e,n,r)});function n9(e){return C8(t9,e)}const r9=J("ZodArray",(e,t)=>{DB.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(n,r,a)=>tU(e,n,r,a),e.element=t.element,$s(e,"ZodArray",{min(n,r){return this.check(Jo(n,r))},nonempty(n){return this.check(Jo(1,n))},max(n,r){return this.check(O1(n,r))},length(n,r){return this.check(L1(n,r))},unwrap(){return this.element}})});function Xn(e,t){return j8(r9,e,t)}const a9=J("ZodObject",(e,t)=>{LB.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(n,r,a)=>nU(e,n,r,a),vt(e,"shape",()=>t.shape),$s(e,"ZodObject",{keyof(){return St(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:Xa()})},loose(){return this.clone({...this._zod.def,catchall:Xa()})},strict(){return this.clone({...this._zod.def,catchall:n9()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return JP(this,n)},safeExtend(n){return e5(this,n)},merge(n){return t5(this,n)},pick(n){return XP(this,n)},omit(n){return QP(this,n)},partial(...n){return n5(z1,this,n[0])},required(...n){return r5(H1,this,n[0])}})});function Ge(e,t){const n={type:"object",shape:e??{},...De(t)};return new a9(n)}const i9=J("ZodUnion",(e,t)=>{FB.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(n,r,a)=>rU(e,n,r,a),e.options=t.options});function s9(e,t){return new i9({type:"union",options:e,...De(t)})}const o9=J("ZodIntersection",(e,t)=>{MB.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(n,r,a)=>aU(e,n,r,a)});function u9(e,t){return new o9({type:"intersection",left:e,right:t})}const q0=J("ZodRecord",(e,t)=>{PB.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(n,r,a)=>iU(e,n,r,a),e.keyType=t.keyType,e.valueType=t.valueType});function $g(e,t,n){return!t||!t._zod?new q0({type:"record",keyType:le(),valueType:e,...De(t)}):new q0({type:"record",keyType:e,valueType:t,...De(n)})}const Zc=J("ZodEnum",(e,t)=>{BB.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(r,a,i)=>X8(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 Zc({...t,checks:[],...De(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 Zc({...t,checks:[],...De(a),entries:i})}});function St(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Zc({type:"enum",entries:n,...De(t)})}const l9=J("ZodLiteral",(e,t)=>{UB.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Q8(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 Vr(e,t){return new l9({type:"literal",values:Array.isArray(e)?e:[e],...De(t)})}const c9=J("ZodTransform",(e,t)=>{jB.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(n,r,a)=>eU(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new f1(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(Es(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(Es(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 $1(e){return new c9({type:"transform",transform:e})}const z1=J("ZodOptional",(e,t)=>{R1.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(n,r,a)=>B1(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function Y0(e){return new z1({type:"optional",innerType:e})}const d9=J("ZodExactOptional",(e,t)=>{$B.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(n,r,a)=>B1(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function p9(e){return new d9({type:"optional",innerType:e})}const f9=J("ZodNullable",(e,t)=>{zB.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(n,r,a)=>sU(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function Z0(e){return new f9({type:"nullable",innerType:e})}const m9=J("ZodDefault",(e,t)=>{HB.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(n,r,a)=>uU(e,n,r,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function h9(e,t){return new m9({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():g1(t)}})}const g9=J("ZodPrefault",(e,t)=>{GB.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(n,r,a)=>lU(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function b9(e,t){return new g9({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():g1(t)}})}const H1=J("ZodNonOptional",(e,t)=>{WB.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(n,r,a)=>oU(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function E9(e,t){return new H1({type:"nonoptional",innerType:e,...De(t)})}const y9=J("ZodCatch",(e,t)=>{VB.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(n,r,a)=>cU(e,n,r,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function T9(e,t){return new y9({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const G1=J("ZodPipe",(e,t)=>{D1.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(n,r,a)=>dU(e,n,r,a),e.in=t.in,e.out=t.out});function K0(e,t){return new G1({type:"pipe",in:e,out:t})}const S9=J("ZodPreprocess",(e,t)=>{G1.init(e,t),qB.init(e,t)}),x9=J("ZodReadonly",(e,t)=>{YB.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(n,r,a)=>pU(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function A9(e){return new x9({type:"readonly",innerType:e})}const _9=J("ZodCustom",(e,t)=>{ZB.init(e,t),Ut.init(e,t),e._zod.processJSONSchema=(n,r,a)=>J8(e,n)});function v9(e,t={}){return $8(_9,e,t)}function w9(e,t){return z8(e,t)}function Zl(e,t){return new S9({type:"pipe",in:$1(e),out:t})}const xa=["backlog","todo","wip","testing","blocked","done","cancelled"],hi=["backlog","active","verifying","blocked","done","cancelled"],N9={backlog:"📋",todo:"🔲",wip:"🚧",testing:"🧪",blocked:"🚫",done:"✅",cancelled:"⛔"};function zg(e){try{return N9[V1(e)]??""}catch{return""}}const nl=["P0","P1","P2","P3"],C9=["simple","standard","complex","research","refine","plan","unit","review","docs"],W1=["task","issue","review","meta","brainstorm"],rl=["standard","feature-impl","issue","review","meta","brainstorm"],Hg=/^[A-Z][1-9]*$/,I9={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 V1(e){const t=e.trim().toLowerCase(),n=I9[t];if(n===void 0)throw new Error(`Unknown task status: ${JSON.stringify(e)} (allowed: ${xa.join(", ")})`);return n}const tu=le().min(1).refine(e=>!Number.isNaN(Date.parse(e)),{message:"must be an ISO 8601 timestamp"}),q1=le().regex(Hg,{message:"feature id must match ^[A-Z][1-9]*$ (DD-14)"}).nullable().optional(),Y1=le().regex(/^\d{4}$/,{message:"parent_wbs must be a 4-digit WBS string"}).nullable().optional();Ge({schema_version:Vr(1),name:le().min(1),description:le().optional(),status:Zl(e=>{if(typeof e=="string")try{return V1(e)}catch{}return e},St(xa)),type:St(W1).optional().default("task"),template:St(rl).optional(),profile:St(C9).optional(),feature_id:q1,parent_wbs:Y1,priority:St(nl).optional(),tags:Xn(le()).optional(),dependencies:Xn(le()).optional(),done_forced:Zl(e=>typeof e=="string"?e==="true":e,ca().optional()),done_reason:le().optional(),feature_link_declined:Zl(e=>typeof e=="string"?e==="true":e,ca().optional()),created_at:tu,updated_at:tu});Ge({schema_version:Vr(1),id:le().regex(Hg,{message:"feature id must match ^[A-Z][1-9]*$ (DD-14)"}),name:le().min(1),status:St(hi),priority:St(nl).optional(),tags:Xn(le()).optional(),created_at:tu,updated_at:tu});const k9=Ge({name:le().min(1,"name is required"),background:le().optional(),requirements:le().optional(),design:le().optional(),plan:le().optional(),acceptance_criteria:le().optional(),feature_id:q1,parent_wbs:Y1,priority:St(nl).optional(),tags:Xn(le()).optional(),template:St(rl).optional()}).strict();Xn(k9).min(1,"batch must contain at least one task");const R9=["NOT_FOUND","VALIDATION_FAILED","GUARD_DENIED","LOCK_TIMEOUT","CONFLICT","INTERNAL_ERROR"];function Xt(e){return Ge({ok:Vr(!0),data:e})}Ge({ok:Vr(!1),error:Ge({code:St(R9),message:le(),details:Xa().optional()})});Ge({nextCursor:le().optional(),hasMore:ca(),limit:tl().int().positive()});const $n=le().regex(Hg,{message:"feature id must match ^[A-Z][1-9]*$ (DD-14)"}),D9=Ge({id:$n,name:le().min(1),status:St(hi),priority:St(nl).optional(),parentId:$n.nullable().optional(),wbsCount:tl().int().nonnegative().optional()}),O9=Xt(Xn(D9)),L9=Xt(Ge({id:$n,name:le(),status:St(hi),frontmatter:$g(le(),Xa()),content:le(),filePath:le()})),F9=Ge({id:$n}),M9=Ge({name:le().min(1),parentId:$n.optional()}),P9=Xt(Ge({id:le(),filePath:le()})),B9=Ge({id:$n,toStatus:St(hi),actor:le().optional()}),U9=Xt(Ge({id:le(),status:St(hi)})),j9=Ge({id:$n,body:le(),actor:le().optional()}),$9=Xt(Ge({})),z9=St(["brainstorm","plan"]),H9=St(["claude","codex","gemini","pi","opencode","antigravity","openclaw"]),G9=Ge({id:$n,action:z9,channel:H9.optional(),skipDeps:ca().optional()}),W9=Ge({runId:le(),action:le(),status:Vr("queued")}),V9=Xt(W9),q9=Ge({id:$n,name:le().min(1)}),Y9=Xt(Ge({id:le(),filePath:le()})),Z9=Ge({id:$n,title:le().min(1)}),K9=Xt(Ge({wbs:le(),filePath:le()})),X9=Ge({id:$n,wbs:le().regex(/^\d{4}$/)}),Q9=Xt(Ge({})),Z1=St(["pull","push"]),J9=Ge({id:$n,direction:Z1}),e7=Xt(Ge({direction:Z1,affectedTasks:tl().int().nonnegative(),applied:ca(),newStatus:le().optional()})),t7={list:Ht.route({method:"GET",path:"/features",summary:"List features",tags:["feature"]}).output(O9),show:Ht.route({method:"GET",path:"/features/{id}",summary:"Show feature detail",tags:["feature"]}).input(F9).output(L9),create:Ht.route({method:"POST",path:"/features",summary:"Create a feature",tags:["feature"]}).input(M9).output(P9),transition:Ht.route({method:"PATCH",path:"/features/{id}/status",summary:"Transition feature status",tags:["feature"]}).input(B9).output(U9),refresh:Ht.route({method:"POST",path:"/features/refresh",summary:"Refresh feature index and kanban",tags:["feature"]}).output(Xt(Ge({rebuilt:tl().int().nonnegative()}))),check:Ht.route({method:"POST",path:"/features/{id}/check",summary:"Run the four-layer feature check",tags:["feature"]}).input(Ge({id:$n})).output(Xt(Ge({id:le(),status:le(),pass:ca(),findings:Xn(Ge({layer:St(["L1","L2","L3","L4"]),severity:St(["error","warning","info"]),section:le(),message:le()})),requiredSections:Xn(le()),missingSections:Xn(le())}))),body:Ht.route({method:"PATCH",path:"/features/{id}/body",summary:"Update feature body",tags:["feature"]}).input(j9).output($9),action:Ht.route({method:"POST",path:"/features/{id}/action",summary:"Run a feature workflow action",tags:["feature"]}).input(G9).output(V9),children:Ht.route({method:"POST",path:"/features/{id}/children",summary:"Create a child feature",tags:["feature"]}).input(q9).output(Y9),tasks:Ht.route({method:"POST",path:"/features/{id}/tasks",summary:"Create a task linked to feature",tags:["feature"]}).input(Z9).output(K9),link:Ht.route({method:"PATCH",path:"/features/{id}/link",summary:"Link an existing task to feature",tags:["feature"]}).input(X9).output(Q9),sync:Ht.route({method:"POST",path:"/features/{id}/sync",summary:"Sync feature status with linked tasks",tags:["feature"]}).input(J9).output(e7)},n7=Xt(Ge({eventName:le(),occurredAt:le().datetime(),actor:le().nullable().optional(),payload:$g(le(),Xa())})),r7={stream:Ht.route({method:"GET",path:"/events/planning",summary:"Stream planning events (SSE)",tags:["events"]}).output(n7)},a7=Ge({wbs:le().regex(/^\d{4}$/),name:le().min(1),status:St(xa),priority:le().optional(),featureId:le().nullable().optional(),parentWbs:le().regex(/^\d{4}$/).nullable().optional(),type:St(W1).optional(),filePath:le(),updatedAt:le().optional()}),i7=Xt(Xn(a7)),s7=Ge({folder:le().optional(),status:le().optional(),parent:le().optional()}),o7=Xt(Ge({wbs:le(),name:le(),status:St(xa),frontmatter:$g(le(),Xa()),content:le(),filePath:le()})),u7=Ge({wbs:le().regex(/^\d{4}$/)}),l7=Ge({title:le().min(1),featureId:le().optional(),parentWbs:le().regex(/^\d{4}$/).optional(),folder:le().optional(),template:St(rl).optional()}),c7=Xt(Ge({wbs:le(),filePath:le()})),d7=Ge({wbs:le().regex(/^\d{4}$/),toStatus:St(xa),actor:le().optional()}),p7=Xt(Ge({wbs:le(),status:St(xa)})),f7=Ge({wbs:le().regex(/^\d{4}$/),body:le(),actor:le().optional()}),m7=Xt(Ge({wbs:le(),filePath:le()})),h7=St(["claude","codex","gemini","pi","opencode","antigravity","openclaw"]),g7=St(["refine","plan","run","verify","decompose","evaluate"]),b7=Ge({wbs:le().regex(/^\d{4}$/),action:g7,channel:h7.optional(),skipDeps:ca().optional()}),E7=Xt(Ge({runId:le(),action:le(),status:Vr("queued")})),y7=Ge({path:le(),label:le().optional()}),T7=Xt(Xn(y7)).extend({activeFolder:le().optional()}),S7={list:Ht.route({method:"GET",path:"/tasks",summary:"List tasks",tags:["task"]}).input(s7).output(i7),folders:Ht.route({method:"GET",path:"/tasks/folders",summary:"List configured task folders",tags:["task"]}).output(T7),show:Ht.route({method:"GET",path:"/tasks/{wbs}",summary:"Show task detail",tags:["task"]}).input(u7).output(o7),create:Ht.route({method:"POST",path:"/tasks",summary:"Create a task",tags:["task"]}).input(l7).output(c7),transition:Ht.route({method:"PATCH",path:"/tasks/{wbs}/status",summary:"Transition task status",tags:["task"]}).input(d7).output(p7),body:Ht.route({method:"PATCH",path:"/tasks/{wbs}/body",summary:"Update task body",tags:["task"]}).input(f7).output(m7),action:Ht.route({method:"POST",path:"/tasks/{wbs}/actions",summary:"Run a task action",tags:["task"]}).input(b7).output(E7)},x7=Ge({status:Vr("ok"),timestamp:le(),service:Vr("spur"),version:le()}),A7={health:Ht.route({method:"GET",path:"/health",summary:"Read application health",tags:["system"]}).output(x7),task:{...S7},feature:{...t7},...r7};class _7 extends d1{initRuntimeAdapter(t){for(const n of this.plugins)n.initRuntimeAdapter?.(t)}}class v7{fetch;toFetchRequestOptions;adapterInterceptors;constructor(t){new _7(t.plugins).initRuntimeAdapter(t),this.fetch=t.fetch??globalThis.fetch.bind(globalThis),this.toFetchRequestOptions=t,this.adapterInterceptors=Zo(t.adapterInterceptors)}async call(t,n,r,a){const i=DP(t,this.toFetchRequestOptions),s=await Hc(this.adapterInterceptors,{...n,request:i,path:r,input:a,init:{redirect:"manual"}},({request:u,path:l,input:c,init:d,...f})=>this.fetch(u,d,f,l,c));return OP(s,{signal:i.signal})}}class w7{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(Gr(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((l,c)=>{!Array.isArray(o[u])&&!Gr(o[u])&&(o[u]=[]),c!==s.length-1?Array.isArray(o[u])&&!X0(l,this.maxArrayIndex)&&(n.has(o[u])?(n.delete(o[u]),o[u]=Q0(o[u])):o[u]=Kl(o[u])):Array.isArray(o[u])&&(l===""?o[u].length&&!n.has(o[u])&&(o[u]=Kl(o[u])):n.has(o[u])?(n.delete(o[u]),o[u]=Q0(o[u])):X0(l,this.maxArrayIndex)||(o[u]=Kl(o[u]))),o=o[u],u=l}),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 X0(e,t){return/^0$|^[1-9]\d*$/.test(e)&&Number(e)<=t}function Kl(e){const t=new Jx;return e.forEach((n,r)=>{t[r]=n}),t}function Q0(e){const t=new Jx;return t[""]=e.length===1?e[0]:e,t}class N7{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(Gr(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 Kc(e){return`/${e.replace(/\/{2,}/g,"/").replace(/^\/|\/$/g,"")}`}function J0(e){return e?Kc(e).match(/\/\{[^}]+\}/g)?.map(t=>({raw:t,name:t.match(/\{\+?([^}]+)\}/)[1]})):void 0}class C7{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=FP(await A0(this.headers,r,t,n));r.lastEventId!==void 0&&(a=_0(a,{"last-event-id":r.lastEventId}));const i=await A0(this.baseUrl,r,t,n),s=x0(this.contract,t);if(!Vc(s))throw new Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${t.join(".")}`);return co("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=Kc(t["~orpc"].route.path??w0(n)),u=r;const l=J0(o);if(l?.length){if(!Gr(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 l){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 c=co("defaultMethod",t["~orpc"].route.method),d=new URL(i);if(d.pathname=`${d.pathname.replace(/\/$/,"")}${o}`,c==="GET"){const f=this.serializer.serialize(u,{outputFormat:"URLSearchParams"});for(const[m,b]of f)d.searchParams.append(m,b);return{url:d,method:c,headers:s,body:void 0,signal:a.signal}}return{url:d,method:c,headers:s,body:this.serializer.serialize(u),signal:a.signal}}#t(t,n,r,a,i,s){let o=Kc(t["~orpc"].route.path??w0(n));const u=J0(o);if(!Gr(r)&&r!==void 0)throw new TypeError(`[StandardOpenapiLinkCodec] Invalid input shape for "detailed" structure at ${n.join(".")}.`);if(u?.length){if(!Gr(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 l=s;if(r?.headers!==void 0){if(!Gr(r.headers))throw new TypeError(`[StandardOpenapiLinkCodec] Invalid input.headers shape for "detailed" structure at ${n.join(".")}.`);l=_0(r.headers,s)}const c=co("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 c==="GET"?{url:d,method:c,headers:l,body:void 0,signal:a.signal}:{url:d,method:c,headers:l,body:this.serializer.serialize(r?.body),signal:a.signal}}async decode(t,n,r){const a=!gs(t.status),i=await(async()=>{let u=!1;try{const l=await t.body();return u=!0,this.serializer.deserialize(l)}catch(l){throw u?new Error("Invalid OpenAPI response format.",{cause:l}):new Error("Cannot parse response body, please check the response body and content-type.",{cause:l})}})();if(!a){const u=this.customErrorResponseBodyDecoder?.(i,t);throw u??(n1(i)?r1(i):new hs(MP(t.status),{status:t.status,data:{...t,body:i}}))}const s=x0(this.contract,r);if(!Vc(s))throw new Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${r.join(".")}`);return co("defaultOutputStructure",s["~orpc"].route.outputStructure)==="compact"?i:{status:t.status,headers:t.headers,body:i}}}class I7{constructor(t,n){this.jsonSerializer=t,this.bracketNotation=n}serialize(t,n={}){return ms(t)&&!n.outputFormat?v0(t,{value:async r=>this.#e(r,{outputFormat:"plain"}),error:async r=>new bs({data:this.#e(gP(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())):ms(t)?v0(t,{value:async n=>n,error:async n=>n instanceof bs&&n1(n.data)?r1(n.data,{cause:n}):n}):t}}class k7 extends LP{constructor(t,n,r){const a=new N7(r),i=new w7({maxBracketNotationArrayIndex:4294967294}),s=new I7(a,i),o=new C7(t,s,r);super(o,n,r)}}class R7 extends k7{constructor(t,n){const r=new v7(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 et(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 D7(e){return et(e)}function O7(e){typeof globalThis<"u"&&globalThis.dispatchEvent&&globalThis.dispatchEvent(new CustomEvent("api-error",{detail:{message:e instanceof Error?e.message:String(e)}}))}const Ar=u1(new R7(A7,{url:at(),fetch:D7,adapterInterceptors:[oP(O7)]})),yr=()=>`${at()}/features`;async function L7(e){const t=await et(new Request(yr(),{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 ey(e,t){const n=await et(new Request(`${yr()}/${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 F7(e,t,n){const r=await et(new Request(`${yr()}/${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 M7(e,t){const n=await et(new Request(`${yr()}/${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 P7(e,t){const n=await et(new Request(`${yr()}/${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 K1(e,t){const n=await et(new Request(`${yr()}/${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 B7(e,t){const n=await et(new Request(yr(),{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 U7(e,t){const n=await et(new Request(`${yr()}/${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 j7(e,t){const n=await et(new Request(`${yr()}/${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 $7(e,t){const n=await et(new Request(`${yr()}/${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 z7=(function(){const t=typeof document<"u"&&document.createElement("link").relList;return t&&t.supports&&t.supports("modulepreload")?"modulepreload":"preload"})(),H7=function(e){return"/"+e},ty={},X1=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let u=function(l){return Promise.all(l.map(c=>Promise.resolve(c).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(l=>{if(l=H7(l),l in ty)return;ty[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":z7,c||(f.as="script"),f.crossOrigin="",f.href=l,o&&f.setAttribute("nonce",o),document.head.appendChild(f),c)return new Promise((m,b)=>{f.addEventListener("load",m),f.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${l}`)))})}))}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 ny(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 G7(e){if(Array.isArray(e))return e}function W7(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,l=!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(c){l=!0,a=c}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw a}}return o}}function V7(){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 q7(e,t){return G7(e)||W7(e,t)||Y7(e,t)||V7()}function Y7(e,t){if(e){if(typeof e=="string")return ny(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)?ny(e,t):void 0}}const Q1=Object.entries,ry=Object.setPrototypeOf,Z7=Object.isFrozen,K7=Object.getPrototypeOf,X7=Object.getOwnPropertyDescriptor;let mn=Object.freeze,gn=Object.seal,Ra=Object.create,J1=typeof Reflect<"u"&&Reflect,Xc=J1.apply,Qc=J1.construct;mn||(mn=function(t){return t});gn||(gn=function(t){return t});Xc||(Xc=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)});Qc||(Qc=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 Di=Qt(Array.prototype.forEach),Q7=Qt(Array.prototype.lastIndexOf),ay=Qt(Array.prototype.pop),Ca=Qt(Array.prototype.push),J7=Qt(Array.prototype.splice),$r=Array.isArray,ji=Qt(String.prototype.toLowerCase),Xl=Qt(String.prototype.toString),iy=Qt(String.prototype.match),Oi=Qt(String.prototype.replace),sy=Qt(String.prototype.indexOf),ej=Qt(String.prototype.trim),tj=Qt(Number.prototype.toString),nj=Qt(Boolean.prototype.toString),oy=typeof BigInt>"u"?null:Qt(BigInt.prototype.toString),uy=typeof Symbol>"u"?null:Qt(Symbol.prototype.toString),on=Qt(Object.prototype.hasOwnProperty),Li=Qt(Object.prototype.toString),fn=Qt(RegExp.prototype.test),Jr=rj(TypeError);function Qt(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 Xc(e,t,r)}}function rj(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Qc(e,n)}}function ft(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ji;if(ry&&ry(e,null),!$r(t))return e;let r=t.length;for(;r--;){let a=t[r];if(typeof a=="string"){const i=n(a);i!==a&&(Z7(t)||(t[r]=i),a=i)}e[a]=!0}return e}function aj(e){for(let t=0;t<e.length;t++)on(e,t)||(e[t]=null);return e}function Nn(e){const t=Ra(null);for(const r of Q1(e)){var n=q7(r,2);const a=n[0],i=n[1];on(e,a)&&($r(i)?t[a]=aj(i):i&&typeof i=="object"&&i.constructor===Object?t[a]=Nn(i):t[a]=i)}return t}function ij(e){switch(typeof e){case"string":return e;case"number":return tj(e);case"boolean":return nj(e);case"bigint":return oy?oy(e):"0";case"symbol":return uy?uy(e):"Symbol()";case"undefined":return Li(e);case"function":case"object":{if(e===null)return Li(e);const t=e,n=dr(t,"toString");if(typeof n=="function"){const r=n(t);return typeof r=="string"?r:Li(r)}return Li(e)}default:return Li(e)}}function dr(e,t){for(;e!==null;){const r=X7(e,t);if(r){if(r.get)return Qt(r.get);if(typeof r.value=="function")return Qt(r.value)}e=K7(e)}function n(){return null}return n}function sj(e){try{return fn(e,""),!0}catch{return!1}}const ly=mn(["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"]),Ql=mn(["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"]),Jl=mn(["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"]),oj=mn(["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"]),ec=mn(["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"]),uj=mn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),cy=mn(["#text"]),dy=mn(["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"]),tc=mn(["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"]),py=mn(["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"]),ho=mn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),lj=gn(/{{[\w\W]*|^[\w\W]*}}/g),cj=gn(/<%[\w\W]*|^[\w\W]*%>/g),dj=gn(/\${[\w\W]*/g),pj=gn(/^data-[\-\w.\u00B7-\uFFFF]+$/),fj=gn(/^aria-[\-\w]+$/),fy=gn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),mj=gn(/^(?:\w+script|data):/i),hj=gn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gj=gn(/^html$/i),bj=gn(/^[a-z][.\w]*(-[.\w]+)+$/i),my=gn(/<[/\w!]/g),Ej=gn(/<[/\w]/g),yj=gn(/<\/no(script|embed|frames)/i),Tj=gn(/\/>/i),cr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Sj=function(){return typeof window>"u"?null:window},xj=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}},hy=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Lr=function(t,n,r,a){return on(t,n)&&$r(t[n])?ft(a.base?Nn(a.base):{},t[n],a.transform):r};function eA(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sj();const t=fe=>eA(fe);if(t.version="3.4.11",t.removed=[],!e||!e.document||e.document.nodeType!==cr.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,l=e.NamedNodeMap;l===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const c=e.DOMParser,d=e.trustedTypes,f=o.prototype,m=dr(f,"cloneNode"),b=dr(f,"remove"),y=dr(f,"nextSibling"),E=dr(f,"childNodes"),T=dr(f,"parentNode"),v=dr(f,"shadowRoot"),x=dr(f,"attributes"),I=s&&s.prototype?dr(s.prototype,"nodeType"):null,D=s&&s.prototype?dr(s.prototype,"nodeName"):null;if(typeof i=="function"){const fe=n.createElement("template");fe.content&&fe.content.ownerDocument&&(n=fe.content.ownerDocument)}let S,A="",k,P=!1,w=0;const U=function(){if(w>0)throw Jr('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.')},j=function(L){U(),w++;try{return S.createHTML(L)}finally{w--}},K=function(L){U(),w++;try{return S.createScriptURL(L)}finally{w--}},X=function(){return P||(k=xj(d,a),P=!0),k},G=n,oe=G.implementation,Q=G.createNodeIterator,ae=G.createDocumentFragment,Y=G.getElementsByTagName,N=r.importNode;let H=hy();t.isSupported=typeof Q1=="function"&&typeof T=="function"&&oe&&oe.createHTMLDocument!==void 0;const ie=lj,R=cj,ve=dj,Oe=pj,Ne=fj,je=mj,be=hj,ge=bj;let pt=fy,ze=null;const Ee=ft({},[...ly,...Ql,...Jl,...ec,...cy]);let Me=null;const tt=ft({},[...dy,...tc,...py,...ho]);let de=Object.seal(Ra(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}})),ct=null,yt=null;const ht=Object.seal(Ra(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let $t=!0,Rt=!0,zt=!1,tn=!0,ut=!1,Ae=!0,Ze=!1,W=!1,ne=null,Te=null,_e=!1,$e=!1,Ke=!1,At=!1,Tt=!0,bt=!1;const Dt="user-content-";let ee=!0,ye=!1,Fe={},ke=null;const z=ft({},["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 Le=null;const he=ft({},["audio","video","img","source","image","track"]);let Pe=null;const Ve=ft({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ct="http://www.w3.org/1998/Math/MathML",Xe="http://www.w3.org/2000/svg",qe="http://www.w3.org/1999/xhtml";let _t=qe,nn=!1,It=null;const Wt=ft({},[Ct,Xe,qe],Xl),F=mn(["mi","mo","mn","ms","mtext"]);let B=ft({},F);const V=mn(["annotation-xml"]);let te=ft({},V);const ue=ft({},["title","style","font","a","script"]);let xe=null;const Se=["application/xhtml+xml","text/html"],we="text/html";let me=null,Ce=null;const Ue=n.createElement("form"),Re=function(L){return L instanceof RegExp||L instanceof Function},lt=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ce&&Ce===L)return;(!L||typeof L!="object")&&(L={}),L=Nn(L),xe=Se.indexOf(L.PARSER_MEDIA_TYPE)===-1?we:L.PARSER_MEDIA_TYPE,me=xe==="application/xhtml+xml"?Xl:ji,ze=Lr(L,"ALLOWED_TAGS",Ee,{transform:me}),Me=Lr(L,"ALLOWED_ATTR",tt,{transform:me}),It=Lr(L,"ALLOWED_NAMESPACES",Wt,{transform:Xl}),Pe=Lr(L,"ADD_URI_SAFE_ATTR",Ve,{transform:me,base:Ve}),Le=Lr(L,"ADD_DATA_URI_TAGS",he,{transform:me,base:he}),ke=Lr(L,"FORBID_CONTENTS",z,{transform:me}),ct=Lr(L,"FORBID_TAGS",Nn({}),{transform:me}),yt=Lr(L,"FORBID_ATTR",Nn({}),{transform:me}),Fe=on(L,"USE_PROFILES")?L.USE_PROFILES&&typeof L.USE_PROFILES=="object"?Nn(L.USE_PROFILES):L.USE_PROFILES:!1,$t=L.ALLOW_ARIA_ATTR!==!1,Rt=L.ALLOW_DATA_ATTR!==!1,zt=L.ALLOW_UNKNOWN_PROTOCOLS||!1,tn=L.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ut=L.SAFE_FOR_TEMPLATES||!1,Ae=L.SAFE_FOR_XML!==!1,Ze=L.WHOLE_DOCUMENT||!1,$e=L.RETURN_DOM||!1,Ke=L.RETURN_DOM_FRAGMENT||!1,At=L.RETURN_TRUSTED_TYPE||!1,_e=L.FORCE_BODY||!1,Tt=L.SANITIZE_DOM!==!1,bt=L.SANITIZE_NAMED_PROPS||!1,ee=L.KEEP_CONTENT!==!1,ye=L.IN_PLACE||!1,pt=sj(L.ALLOWED_URI_REGEXP)?L.ALLOWED_URI_REGEXP:fy,_t=typeof L.NAMESPACE=="string"?L.NAMESPACE:qe,B=on(L,"MATHML_TEXT_INTEGRATION_POINTS")&&L.MATHML_TEXT_INTEGRATION_POINTS&&typeof L.MATHML_TEXT_INTEGRATION_POINTS=="object"?Nn(L.MATHML_TEXT_INTEGRATION_POINTS):ft({},F),te=on(L,"HTML_INTEGRATION_POINTS")&&L.HTML_INTEGRATION_POINTS&&typeof L.HTML_INTEGRATION_POINTS=="object"?Nn(L.HTML_INTEGRATION_POINTS):ft({},V);const q=on(L,"CUSTOM_ELEMENT_HANDLING")&&L.CUSTOM_ELEMENT_HANDLING&&typeof L.CUSTOM_ELEMENT_HANDLING=="object"?Nn(L.CUSTOM_ELEMENT_HANDLING):Ra(null);if(de=Ra(null),on(q,"tagNameCheck")&&Re(q.tagNameCheck)&&(de.tagNameCheck=q.tagNameCheck),on(q,"attributeNameCheck")&&Re(q.attributeNameCheck)&&(de.attributeNameCheck=q.attributeNameCheck),on(q,"allowCustomizedBuiltInElements")&&typeof q.allowCustomizedBuiltInElements=="boolean"&&(de.allowCustomizedBuiltInElements=q.allowCustomizedBuiltInElements),gn(de),ut&&(Rt=!1),Ke&&($e=!0),Fe&&(ze=ft({},cy),Me=Ra(null),Fe.html===!0&&(ft(ze,ly),ft(Me,dy)),Fe.svg===!0&&(ft(ze,Ql),ft(Me,tc),ft(Me,ho)),Fe.svgFilters===!0&&(ft(ze,Jl),ft(Me,tc),ft(Me,ho)),Fe.mathMl===!0&&(ft(ze,ec),ft(Me,py),ft(Me,ho))),ht.tagCheck=null,ht.attributeCheck=null,on(L,"ADD_TAGS")&&(typeof L.ADD_TAGS=="function"?ht.tagCheck=L.ADD_TAGS:$r(L.ADD_TAGS)&&(ze===Ee&&(ze=Nn(ze)),ft(ze,L.ADD_TAGS,me))),on(L,"ADD_ATTR")&&(typeof L.ADD_ATTR=="function"?ht.attributeCheck=L.ADD_ATTR:$r(L.ADD_ATTR)&&(Me===tt&&(Me=Nn(Me)),ft(Me,L.ADD_ATTR,me))),on(L,"ADD_URI_SAFE_ATTR")&&$r(L.ADD_URI_SAFE_ATTR)&&ft(Pe,L.ADD_URI_SAFE_ATTR,me),on(L,"FORBID_CONTENTS")&&$r(L.FORBID_CONTENTS)&&(ke===z&&(ke=Nn(ke)),ft(ke,L.FORBID_CONTENTS,me)),on(L,"ADD_FORBID_CONTENTS")&&$r(L.ADD_FORBID_CONTENTS)&&(ke===z&&(ke=Nn(ke)),ft(ke,L.ADD_FORBID_CONTENTS,me)),ee&&(ze["#text"]=!0),Ze&&ft(ze,["html","head","body"]),ze.table&&(ft(ze,["tbody"]),delete ct.tbody),L.TRUSTED_TYPES_POLICY){if(typeof L.TRUSTED_TYPES_POLICY.createHTML!="function")throw Jr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof L.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Jr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const pe=S;S=L.TRUSTED_TYPES_POLICY;try{A=j("")}catch(Ie){throw S=pe,Ie}}else L.TRUSTED_TYPES_POLICY===null?(S=void 0,A=""):(S===void 0&&(S=X()),S&&typeof A=="string"&&(A=j("")));mn&&mn(L),Ce=L},dt=ft({},[...Ql,...Jl,...oj]),Vt=ft({},[...ec,...uj]),qt=function(L,q,pe){return q.namespaceURI===qe?L==="svg":q.namespaceURI===Ct?L==="svg"&&(pe==="annotation-xml"||B[pe]):!!dt[L]},dn=function(L,q,pe){return q.namespaceURI===qe?L==="math":q.namespaceURI===Xe?L==="math"&&te[pe]:!!Vt[L]},Et=function(L,q,pe){return q.namespaceURI===Xe&&!te[pe]||q.namespaceURI===Ct&&!B[pe]?!1:!Vt[L]&&(ue[L]||!dt[L])},Dn=function(L){let q=T(L);(!q||!q.tagName)&&(q={namespaceURI:_t,tagName:"template"});const pe=ji(L.tagName),Ie=ji(q.tagName);return It[L.namespaceURI]?L.namespaceURI===Xe?qt(pe,q,Ie):L.namespaceURI===Ct?dn(pe,q,Ie):L.namespaceURI===qe?Et(pe,q,Ie):!!(xe==="application/xhtml+xml"&&It[L.namespaceURI]):!1},Tn=function(L){Ca(t.removed,{element:L});try{T(L).removeChild(L)}catch{if(b(L),!T(L))throw Jr("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},kr=function(L){const q=E(L);if(q){const Ie=[];Di(q,Qe=>{Ca(Ie,Qe)}),Di(Ie,Qe=>{try{b(Qe)}catch{}})}const pe=x(L);if(pe)for(let Ie=pe.length-1;Ie>=0;--Ie){const Qe=pe[Ie],gt=Qe&&Qe.name;if(typeof gt=="string")try{L.removeAttribute(gt)}catch{}}},Sn=function(L,q){try{Ca(t.removed,{attribute:q.getAttributeNode(L),from:q})}catch{Ca(t.removed,{attribute:null,from:q})}if(q.removeAttribute(L),L==="is")if($e||Ke)try{Tn(q)}catch{}else try{q.setAttribute(L,"")}catch{}},Hn=function(L){const q=x(L);if(q)for(let pe=q.length-1;pe>=0;--pe){const Ie=q[pe],Qe=Ie&&Ie.name;if(!(typeof Qe!="string"||Me[me(Qe)]))try{L.removeAttribute(Qe)}catch{}}},Ei=function(L){const q=[L];for(;q.length>0;){const pe=q.pop();(I?I(pe):pe.nodeType)===cr.element&&Hn(pe);const Qe=E(pe);if(Qe)for(let gt=Qe.length-1;gt>=0;--gt)q.push(Qe[gt])}},Rr=function(L){let q=null,pe=null;if(_e)L="<remove></remove>"+L;else{const gt=iy(L,/^[\r\n\t ]+/);pe=gt&&gt[0]}xe==="application/xhtml+xml"&&_t===qe&&(L='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+L+"</body></html>");const Ie=S?j(L):L;if(_t===qe)try{q=new c().parseFromString(Ie,xe)}catch{}if(!q||!q.documentElement){q=oe.createDocument(_t,"template",null);try{q.documentElement.innerHTML=nn?A:Ie}catch{}}const Qe=q.body||q.documentElement;return L&&pe&&Qe.insertBefore(n.createTextNode(pe),Qe.childNodes[0]||null),_t===qe?Y.call(q,Ze?"html":"body")[0]:Ze?q.documentElement:Qe},ur=function(L){return Q.call(L.ownerDocument||L,L,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Tr=function(L){return L=Oi(L,ie," "),L=Oi(L,R," "),L=Oi(L,ve," "),L},Dr=function(L){var q;L.normalize();const pe=Q.call(L.ownerDocument||L,L,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let Ie=pe.nextNode();for(;Ie;)Ie.data=Tr(Ie.data),Ie=pe.nextNode();const Qe=(q=L.querySelectorAll)===null||q===void 0?void 0:q.call(L,"template");Qe&&Di(Qe,gt=>{Mt(gt.content)&&Dr(gt.content)})},nt=function(L){const q=D?D(L):null;return typeof q!="string"||me(q)!=="form"?!1:typeof L.nodeName!="string"||typeof L.textContent!="string"||typeof L.removeChild!="function"||L.attributes!==x(L)||typeof L.removeAttribute!="function"||typeof L.setAttribute!="function"||typeof L.namespaceURI!="string"||typeof L.insertBefore!="function"||typeof L.hasChildNodes!="function"||L.nodeType!==I(L)||L.childNodes!==E(L)},Mt=function(L){if(!I||typeof L!="object"||L===null)return!1;try{return I(L)===cr.documentFragment}catch{return!1}},Gn=function(L){if(!I||typeof L!="object"||L===null)return!1;try{return typeof I(L)=="number"}catch{return!1}};function pn(fe,L,q){fe.length!==0&&Di(fe,pe=>{pe.call(t,L,q,Ce)})}const Ot=function(L,q){return!!(Ae&&L.hasChildNodes()&&!Gn(L.firstElementChild)&&fn(my,L.textContent)&&fn(my,L.innerHTML)||Ae&&L.namespaceURI===qe&&q==="style"&&Gn(L.firstElementChild)||L.nodeType===cr.processingInstruction||Ae&&L.nodeType===cr.comment&&fn(Ej,L.data))},Aa=function(L,q){if(!ct[q]&&ab(q)&&(de.tagNameCheck instanceof RegExp&&fn(de.tagNameCheck,q)||de.tagNameCheck instanceof Function&&de.tagNameCheck(q)))return!1;if(ee&&!ke[q]){const pe=T(L),Ie=E(L);if(Ie&&pe){const Qe=Ie.length;for(let gt=Qe-1;gt>=0;--gt){const rn=ye?Ie[gt]:m(Ie[gt],!0);pe.insertBefore(rn,y(L))}}}return Tn(L),!0},yi=function(L){if(pn(H.beforeSanitizeElements,L,null),nt(L))return Tn(L),!0;const q=me(D?D(L):L.nodeName);if(pn(H.uponSanitizeElement,L,{tagName:q,allowedTags:ze}),Ot(L,q))return Tn(L),!0;if(ct[q]||!(ht.tagCheck instanceof Function&&ht.tagCheck(q))&&!ze[q])return Aa(L,q);if((I?I(L):L.nodeType)===cr.element&&!Dn(L)||(q==="noscript"||q==="noembed"||q==="noframes")&&fn(yj,L.innerHTML))return Tn(L),!0;if(ut&&L.nodeType===cr.text){const Ie=Tr(L.textContent);L.textContent!==Ie&&(Ca(t.removed,{element:L.cloneNode()}),L.textContent=Ie)}return pn(H.afterSanitizeElements,L,null),!1},Vs=function(L,q,pe){if(yt[q]||Tt&&(q==="id"||q==="name")&&(pe in n||pe in Ue))return!1;const Ie=Me[q]||ht.attributeCheck instanceof Function&&ht.attributeCheck(q,L);if(!(Rt&&fn(Oe,q))){if(!($t&&fn(Ne,q))){if(Ie){if(!Pe[q]){if(!fn(pt,Oi(pe,be,""))){if(!((q==="src"||q==="xlink:href"||q==="href")&&L!=="script"&&sy(pe,"data:")===0&&Le[L])){if(!(zt&&!fn(je,Oi(pe,be,"")))){if(pe)return!1}}}}}else if(!(ab(L)&&(de.tagNameCheck instanceof RegExp&&fn(de.tagNameCheck,L)||de.tagNameCheck instanceof Function&&de.tagNameCheck(L))&&(de.attributeNameCheck instanceof RegExp&&fn(de.attributeNameCheck,q)||de.attributeNameCheck instanceof Function&&de.attributeNameCheck(q,L))||q==="is"&&de.allowCustomizedBuiltInElements&&(de.tagNameCheck instanceof RegExp&&fn(de.tagNameCheck,pe)||de.tagNameCheck instanceof Function&&de.tagNameCheck(pe))))return!1}}return!0},VA=ft({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ab=function(L){return!VA[ji(L)]&&fn(ge,L)},qA=function(L,q,pe,Ie){if(S&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!pe)switch(d.getAttributeType(L,q)){case"TrustedHTML":return j(Ie);case"TrustedScriptURL":return K(Ie)}return Ie},YA=function(L,q,pe,Ie){try{pe?L.setAttributeNS(pe,q,Ie):L.setAttribute(q,Ie),nt(L)?Tn(L):ay(t.removed)}catch{Sn(q,L)}},ib=function(L){pn(H.beforeSanitizeAttributes,L,null);const q=L.attributes;if(!q||nt(L))return;const pe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Me,forceKeepAttr:void 0};let Ie=q.length;const Qe=me(L.nodeName);for(;Ie--;){const gt=q[Ie],rn=gt.name,Yt=gt.namespaceURI,Wn=gt.value,tr=me(rn),cl=Wn;let vn=rn==="value"?cl:ej(cl);if(pe.attrName=tr,pe.attrValue=vn,pe.keepAttr=!0,pe.forceKeepAttr=void 0,pn(H.uponSanitizeAttribute,L,pe),vn=pe.attrValue,bt&&(tr==="id"||tr==="name")&&sy(vn,Dt)!==0&&(Sn(rn,L),vn=Dt+vn),Ae&&fn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,vn)){Sn(rn,L);continue}if(tr==="attributename"&&iy(vn,"href")){Sn(rn,L);continue}if(!pe.forceKeepAttr){if(!pe.keepAttr){Sn(rn,L);continue}if(!tn&&fn(Tj,vn)){Sn(rn,L);continue}if(ut&&(vn=Tr(vn)),!Vs(Qe,tr,vn)){Sn(rn,L);continue}vn=qA(Qe,tr,Yt,vn),vn!==cl&&YA(L,rn,Yt,vn)}}pn(H.afterSanitizeAttributes,L,null)},qs=function(L){let q=null;const pe=ur(L);for(pn(H.beforeSanitizeShadowDOM,L,null);q=pe.nextNode();)if(pn(H.uponSanitizeShadowNode,q,null),yi(q),ib(q),Mt(q.content)&&qs(q.content),(I?I(q):q.nodeType)===cr.element){const Qe=v(q);Mt(Qe)&&(ll(Qe),qs(Qe))}pn(H.afterSanitizeShadowDOM,L,null)},ll=function(L){const q=[{node:L,shadow:null}];for(;q.length>0;){const pe=q.pop();if(pe.shadow){qs(pe.shadow);continue}const Ie=pe.node,gt=(I?I(Ie):Ie.nodeType)===cr.element,rn=E(Ie);if(rn)for(let Yt=rn.length-1;Yt>=0;--Yt)q.push({node:rn[Yt],shadow:null});if(gt){const Yt=D?D(Ie):null;if(typeof Yt=="string"&&me(Yt)==="template"){const Wn=Ie.content;Mt(Wn)&&q.push({node:Wn,shadow:null})}}if(gt){const Yt=v(Ie);Mt(Yt)&&q.push({node:null,shadow:Yt},{node:Yt,shadow:null})}}};return t.sanitize=function(fe){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=null,pe=null,Ie=null,Qe=null;if(nn=!fe,nn&&(fe="<!-->"),typeof fe!="string"&&!Gn(fe)&&(fe=ij(fe),typeof fe!="string"))throw Jr("dirty is not a string, aborting");if(!t.isSupported)return fe;W?(ze=ne,Me=Te):lt(L),(H.uponSanitizeElement.length>0||H.uponSanitizeAttribute.length>0)&&(ze=Nn(ze)),H.uponSanitizeAttribute.length>0&&(Me=Nn(Me)),t.removed=[];const gt=ye&&typeof fe!="string"&&Gn(fe);if(gt){const Wn=D?D(fe):fe.nodeName;if(typeof Wn=="string"){const tr=me(Wn);if(!ze[tr]||ct[tr])throw Jr("root node is forbidden and cannot be sanitized in-place")}if(nt(fe))throw Jr("root node is clobbered and cannot be sanitized in-place");try{ll(fe)}catch(tr){throw kr(fe),tr}}else if(Gn(fe))q=Rr("<!---->"),pe=q.ownerDocument.importNode(fe,!0),pe.nodeType===cr.element&&pe.nodeName==="BODY"||pe.nodeName==="HTML"?q=pe:q.appendChild(pe),ll(pe);else{if(!$e&&!ut&&!Ze&&fe.indexOf("<")===-1)return S&&At?j(fe):fe;if(q=Rr(fe),!q)return $e?null:At?A:""}q&&_e&&Tn(q.firstChild);const rn=ur(gt?fe:q);try{for(;Ie=rn.nextNode();)yi(Ie),ib(Ie),Mt(Ie.content)&&qs(Ie.content)}catch(Wn){throw gt&&kr(fe),Wn}if(gt)return Di(t.removed,Wn=>{Wn.element&&Ei(Wn.element)}),ut&&Dr(fe),fe;if($e){if(ut&&Dr(q),Ke)for(Qe=ae.call(q.ownerDocument);q.firstChild;)Qe.appendChild(q.firstChild);else Qe=q;return(Me.shadowroot||Me.shadowrootmode)&&(Qe=N.call(r,Qe,!0)),Qe}let Yt=Ze?q.outerHTML:q.innerHTML;return Ze&&ze["!doctype"]&&q.ownerDocument&&q.ownerDocument.doctype&&q.ownerDocument.doctype.name&&fn(gj,q.ownerDocument.doctype.name)&&(Yt="<!DOCTYPE "+q.ownerDocument.doctype.name+`>
170
+ `+Yt),ut&&(Yt=Tr(Yt)),S&&At?j(Yt):Yt},t.setConfig=function(){let fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};lt(fe),W=!0,ne=ze,Te=Me},t.clearConfig=function(){Ce=null,W=!1,ne=null,Te=null,S=k,A=""},t.isValidAttribute=function(fe,L,q){Ce||lt({});const pe=me(fe),Ie=me(L);return Vs(pe,Ie,q)},t.addHook=function(fe,L){typeof L=="function"&&on(H,fe)&&Ca(H[fe],L)},t.removeHook=function(fe,L){if(on(H,fe)){if(L!==void 0){const q=Q7(H[fe],L);return q===-1?void 0:J7(H[fe],q,1)[0]}return ay(H[fe])}},t.removeHooks=function(fe){on(H,fe)&&(H[fe]=[])},t.removeAllHooks=function(){H=hy()},t}var Aj=eA();function _j({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 X1(async()=>{const{default:d}=await import("./mermaid.core.ClzxNMPU.js").then(f=>f.aH);return{default:d}},__vite__mapDeps([0,1]))).default;u.initialize({startOnLoad:!1,theme:"dark",securityLevel:"strict"});const l=await u.render(`mermaid-${t}`,e),c=Aj.sanitize(l.svg,{USE_PROFILES:{svg:!0,svgFilters:!0}});o||a(c)}catch{o||s(!0)}})(),()=>{o=!0}},[e,t]),g.useEffect(()=>{n.current&&(n.current.innerHTML=r??"")},[r]),i?p.jsx("pre",{children:p.jsx("code",{children:e})}):p.jsx("div",{ref:n,className:"mermaid-diagram flex justify-center","data-testid":"mermaid-diagram"})}function vj(e){return(e??"").match(/language-(\w+)/)?.[1]??null}function Jc(e){return e==null||typeof e=="boolean"?"":typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(Jc).join(""):typeof e=="object"&&"props"in e?Jc(e.props.children):""}function wj({className:e,children:t,...n}){return vj(e)==="mermaid"?p.jsx(_j,{code:Jc(t).trim()}):p.jsx("code",{className:e,...n,children:t})}function Nj({source:e}){return p.jsx(qo.Markdown,{source:e,wrapperElement:{"data-color-mode":"light"},components:{code:wj}})}function nu({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,c=getComputedStyle(u).getPropertyValue(e).trim(),d=parseFloat(c)||0;a.current={x:o.clientX,y:o.clientY,w:d},o.target.setPointerCapture(o.pointerId);const f=b=>{if(!a.current)return;const y=n==="horizontal"?b.clientX-a.current.x:b.clientY-a.current.y,E=r?-y:y,T=Math.max(0,a.current.w+E);u.style.setProperty(e,`${T}px`)},m=()=>{if(!a.current)return;const b=getComputedStyle(u).getPropertyValue(e).trim(),y=parseFloat(b)||a.current.w;t(Math.round(y)),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 p.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 gy="spur:new-task-panel-width",by=384,nc=384;function Ey({id:e,label:t,placeholder:n,value:r,mode:a,onChange:i,onModeChange:s,disabled:o}){return p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center justify-between gap-2 mb-1.5",children:[p.jsxs("label",{htmlFor:e,className:"text-xs font-semibold text-spur-text-muted uppercase tracking-wide",children:[t," ",p.jsx("span",{className:"text-spur-text-muted font-normal",children:"(optional, markdown)"})]}),p.jsxs("fieldset",{className:"flex items-center gap-1",children:[p.jsxs("legend",{className:"sr-only",children:[t," mode"]}),p.jsx(He,{type:"button",variant:a==="edit"?"primary":"ghost",size:"xs",onClick:()=>s("edit"),disabled:o,"aria-pressed":a==="edit",children:"Edit"}),p.jsx(He,{type:"button",variant:a==="preview"?"primary":"ghost",size:"xs",onClick:()=>s("preview"),disabled:o,"aria-pressed":a==="preview",children:"Preview"})]})]}),a==="edit"?p.jsx("div",{className:"min-h-40","data-testid":`${e}-editor`,children:p.jsx(qo,{value:r,onChange:u=>i(u??""),height:160,textareaProps:{id:e,placeholder:n,disabled:o,"aria-label":t},"data-color-mode":"dark"})}):p.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()?p.jsx(qo.Markdown,{source:r,"data-color-mode":"dark"}):p.jsx("p",{className:"text-xs text-spur-text-muted",children:n})})]})}function tA({open:e,onClose:t,onCreated:n,folder:r,featureId:a}){const[i,s]=g.useState(""),[o,u]=g.useState(""),[l,c]=g.useState(""),[d,f]=g.useState("edit"),[m,b]=g.useState("edit"),[y,E]=g.useState("standard"),[T,v]=g.useState(!1),[x,I]=g.useState(""),[D,S]=g.useState(!1),[A,k]=g.useState(()=>{if(typeof window>"u")return by;try{const j=Number.parseFloat(window.localStorage.getItem(gy)??"");if(Number.isFinite(j)&&j>0)return Math.max(nc,Math.min(j,window.innerWidth*.9))}catch{}return by}),P=D&&i.trim()===""?"Name is required":"";g.useEffect(()=>{document.documentElement.style.setProperty("--new-task-panel-w",`${A}px`)},[A]);const w=()=>{T||(s(""),u(""),c(""),f("edit"),b("edit"),E("standard"),I(""),S(!1),t())},U=async()=>{S(!0);const j=i.trim();if(j!==""){v(!0),I("");try{const X=(await Ar.task.create({title:j,folder:r,template:y,featureId:a})).data.wbs,G=[];if(o.trim()&&G.push(`### Background
171
+ ${o.trim()}`),l.trim()&&G.push(`### Requirements
172
+ ${l.trim()}`),G.length>0)try{await Ar.task.body({wbs:X,body:G.join(`
173
+
174
+ `)})}catch(oe){const Q=oe instanceof Error?oe.message:"Body seeding failed";typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:`Task created but body seeding failed: ${Q}`}}))}w(),n()}catch(K){const X=K instanceof Error?K.message:"Create failed";I(X),typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:X}}))}finally{v(!1)}}};return e?p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"fixed inset-0 bg-black/40 z-40",onClick:w,"aria-hidden":"true"}),p.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:A,minWidth:nc},role:"dialog","aria-label":"New Task",children:[p.jsx(nu,{targetVar:"--new-task-panel-w",onResizeEnd:j=>{const K=typeof window<"u"?window.innerWidth*.9:j,X=Math.max(nc,Math.min(j,K));k(X);try{window.localStorage.setItem(gy,String(X))}catch{}},direction:"horizontal",invert:!0}),p.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[p.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-spur-border shrink-0",children:[p.jsx("h2",{className:"text-sm font-semibold text-spur-text",children:"New Task"}),p.jsx(He,{variant:"ghost",size:"sm",className:"text-spur-text-muted",onClick:w,"aria-label":"Close",disabled:T,children:"✕"})]}),p.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[p.jsxs("div",{children:[p.jsxs("label",{htmlFor:"new-task-name",className:"text-xs font-semibold text-spur-text-muted uppercase tracking-wide block mb-1.5",children:["Name ",p.jsx("span",{className:"text-spur-error",children:"*"})]}),p.jsx(fs,{id:"new-task-name",type:"text",variant:"bordered",size:"sm",error:!!P,className:"w-full bg-spur-bg text-spur-text",placeholder:"Task name",value:i,onChange:j=>{s(j.target.value),D||S(!0)},onBlur:()=>S(!0),disabled:T}),P&&p.jsx("p",{className:"text-xs text-spur-error mt-1",children:P})]}),p.jsxs("div",{children:[p.jsx("label",{htmlFor:"new-task-template",className:"text-xs font-semibold text-spur-text-muted uppercase tracking-wide block mb-1.5",children:"Template"}),p.jsx(aa,{id:"new-task-template",variant:"bordered",size:"sm",className:"w-full bg-spur-bg text-spur-text",value:y,onChange:j=>E(j.target.value),disabled:T,children:rl.map(j=>p.jsx("option",{value:j,children:j},j))})]}),p.jsx(Ey,{id:"new-task-background",label:"Background",placeholder:"Why this task exists…",value:o,mode:d,onChange:u,onModeChange:f,disabled:T}),p.jsx(Ey,{id:"new-task-requirements",label:"Requirements",placeholder:"What must be done…",value:l,mode:m,onChange:c,onModeChange:b,disabled:T}),x&&p.jsx("div",{className:"text-xs text-spur-error bg-spur-error/10 border border-spur-error/20 rounded p-2",children:x})]}),p.jsxs("div",{className:"flex items-center justify-end gap-2 p-4 border-t border-spur-border shrink-0",children:[p.jsx(He,{variant:"ghost",size:"sm",className:"text-spur-text-muted",onClick:w,disabled:T,children:"Cancel"}),p.jsx(He,{variant:"primary",size:"sm",onClick:U,disabled:T,children:T?"Creating…":"Create Task"})]})]})]})]}):null}const Cj=5e3,Ij=()=>`${at()}/events/planning`,kj=async(e={})=>Ar.task.list(e);class nA{state={tasks:[],loading:!0,error:null,connected:!1};listeners=[];interval;eventSource;refCount=0;listFn;constructor(t=kj){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,Cj),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(Ij());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 rc=null;function Rj(){return rc||(rc=new nA),rc}function rA(e){const t=g.useRef(null);e&&!t.current&&(t.current=new nA(e));const n=t.current??Rj();return g.useEffect(()=>{e&&t.current&&t.current.setListFn(e)},[e]),{...g.useSyncExternalStore(n.subscribe,n.getState),setTasks:n.setTasks}}function Dj({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 l=a==="queued"||a==="running";if(t)return l?p.jsx("div",{className:"fixed bottom-4 right-4 z-40",children:p.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:[p.jsx("span",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"}),p.jsxs("span",{children:[s?`${s.charAt(0).toUpperCase()}${s.slice(1)}`:"Action"," (",a,")"]}),p.jsx("span",{className:"text-spur-text-muted",children:"⤢"})]})}):null;const c=a==="succeeded"?"success":a==="failed"?"error":a==="running"?"accent":"warning";return p.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:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"text-sm font-semibold text-spur-text",children:s?`${s.charAt(0).toUpperCase()}${s.slice(1)}`:"Action"}),p.jsx(xt,{variant:c,children:a})]}),p.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:"×"})]}),p.jsxs("div",{className:"text-xs text-spur-text-muted font-mono truncate",children:["ID: ",i]}),l&&p.jsxs("div",{className:"flex items-center gap-2 text-xs text-spur-text",children:[p.jsx(Ir,{className:"w-3.5 h-3.5"}),p.jsx("span",{children:a==="queued"?"Enqueued in job runner...":"Running agent slash command..."})]}),a==="succeeded"&&p.jsx("div",{className:"text-xs text-green-400 font-medium",children:"✓ Action completed successfully."}),a==="failed"&&p.jsxs("div",{className:"text-xs text-red-400 font-medium break-words",children:["✕ ",o||"Action job failed."]}),!l&&p.jsx("div",{className:"flex justify-end pt-1",children:p.jsx(He,{variant:"outline",size:"sm",onClick:n,children:"Close"})})]})}const Oj={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:[]},Fr={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"},Lj={start:!0,verify:!0,complete:!0,rework:!0,block:!0,unblock:!0,cancel:!0},Fj={start:"active",verify:"verifying",complete:"done",rework:"active",block:"blocked",unblock:"active",cancel:"cancelled"};function aA({open:e,parentId:t,onClose:n,onCreated:r}){const[a,i]=g.useState(""),[s,o]=g.useState(!1),[u,l]=g.useState(""),[c,d]=g.useState(!1),f=c&&a.trim()===""?"Name is required":"",m=()=>{i(""),d(!1),l(""),n()},b=async()=>{d(!0);const y=a.trim();if(y!==""){o(!0),l("");try{t?await K1({id:t,name:y}):await B7(y),m(),r()}catch(E){const T=E instanceof Error?E.message:"Create failed";l(T)}finally{o(!1)}}};return e?p.jsx("div",{className:"fixed inset-y-0 right-0 z-40 flex","data-new-feature-panel":!0,children:p.jsxs("div",{className:"w-96 border-l border-spur-border bg-spur-surface shadow-xl flex flex-col",children:[p.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-spur-border shrink-0",children:[p.jsx("h3",{className:"text-sm font-semibold text-spur-text",children:t?"New Child Feature":"New Feature"}),p.jsx(He,{variant:"ghost",size:"xs",onClick:m,"aria-label":"Close panel",children:"✕"})]}),p.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[t&&p.jsxs("div",{className:"text-xs text-spur-text-muted",children:["Parent: ",p.jsx("span",{className:"font-mono text-spur-accent",children:t})]}),p.jsxs("div",{children:[p.jsx("label",{htmlFor:"new-feature-name",className:"block text-xs font-medium text-spur-text mb-1",children:"Feature Name *"}),p.jsx(fs,{id:"new-feature-name",value:a,onChange:y=>{i(y.target.value),c||d(!0)},onKeyDown:y=>{y.key==="Enter"&&a.trim()&&b()},placeholder:"e.g. Authentication module",disabled:s}),f&&p.jsx("p",{className:"text-xs text-red-500 mt-1",children:f}),u&&p.jsx("p",{className:"text-xs text-red-500 mt-1",children:u})]}),p.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)."})]}),p.jsxs("div",{className:"flex items-center justify-end gap-2 px-4 py-3 border-t border-spur-border shrink-0",children:[p.jsx(He,{variant:"ghost",size:"xs",onClick:m,disabled:s,children:"Cancel"}),p.jsx(He,{variant:"primary",size:"xs",onClick:b,disabled:s||a.trim()==="",loading:s,children:"Create Feature"})]})]})}):null}function iA(e){return e?e.startsWith("feature.")||e.startsWith("queue.job."):!1}function Mj(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 Pj(e,t){return t?Mj(e)===t:!1}const ac={status:"idle"};function Bj(e,t,n){if(e.status==="idle"||!e.runId||!Pj(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 Uj=()=>`${at()}/events/planning`;function jj(e){const[t,n]=g.useState(ac);g.useEffect(()=>{e&&n(ac)},[e]);const r=g.useCallback((i,s)=>{n({status:"queued",runId:i,action:s})},[]),a=g.useCallback(()=>{n(ac)},[]);return g.useEffect(()=>{if(typeof EventSource>"u"||!t.runId)return;const i=new EventSource(Uj());return i.onmessage=s=>{try{const o=JSON.parse(s.data),u=o.eventName;if(!iA(u)||!u)return;n(l=>Bj(l,u,o.payload))}catch{}},()=>{i.close()}},[t.runId]),{progress:t,trackAction:r,clearProgress:a}}function $j({featureId:e,onClose:t,refreshKey:n=0}){const[r,a]=g.useState(null),[i,s]=g.useState(""),[o,u]=g.useState(""),[l,c]=g.useState("preview"),[d,f]=g.useState(!1),[m,b]=g.useState(!1),[y,E]=g.useState(null),[T,v]=g.useState({}),[x,I]=g.useState(!1),[D,S]=g.useState(null),[A,k]=g.useState(null),[P,w]=g.useState(!1),[U,j]=g.useState(null),[K,X]=g.useState(null),[G,oe]=g.useState(""),[Q,ae]=g.useState("claude"),[Y,N]=g.useState("push"),[H,ie]=g.useState(!1),[R,ve]=g.useState(!1),{progress:Oe,trackAction:Ne}=jj(e),[je,be]=g.useState(!1),ge=g.useRef(null),{tasks:pt}=rA(),ze=(pt??[]).filter(z=>z.featureId===e),Ee=g.useRef(0),Me=g.useCallback(()=>++Ee.current,[]),tt=g.useCallback(z=>z===Ee.current,[]),de=g.useCallback(async()=>{const z=Me(),Le=await ey(e);return tt(z)?Le:null},[e,Me,tt]),ct=g.useCallback((z,Le)=>{if(a(z),ge.current=z.id,v(z.frontmatter),Le?.body!==!1){const he=zj(z.content);s(he),u(he)}},[]),yt=g.useCallback(async z=>{const Le=await de();return Le&&(ct(Le,z),f(!1)),Le},[de,ct]),ht=g.useCallback((z,Le)=>{const he=z instanceof Error?z.message:Le;k({kind:"error",message:he}),typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:he}}))},[]),$t=g.useMemo(()=>({featureId:e,generation:n}),[e,n]);g.useEffect(()=>{const{featureId:z}=$t;if(!z){a(null),ge.current=null,s(""),u(""),c("preview"),E(null),k(null);return}ge.current!==z&&f(!0),E(null);const he=Me();(async()=>{try{const Pe=await ey(z);if(!tt(he))return;ct(Pe)}catch(Pe){if(!tt(he))return;E(Pe instanceof Error?Pe.message:"Failed to load feature")}finally{tt(he)&&f(!1)}})()},[$t,Me,tt,ct]);const Rt=async()=>{ie(!1);try{await yt({body:!1})}catch{}},zt=async()=>{ve(!1);try{await yt()}catch{}};if(y)return p.jsx("div",{className:"flex items-center justify-center h-full p-4",children:p.jsx("p",{className:"text-sm text-red-500",children:y})});if(!r)return p.jsx("div",{className:"flex items-center justify-center h-full text-spur-text-muted text-sm",children:"Select a feature to view details"});const tn=()=>{u(i),c("edit")},ut=()=>{u(i),c("preview")},Ae=async()=>{b(!0);try{await M7({id:e,body:o}),s(o),c("preview"),await yt()}catch(z){u(i),c("preview");const Le=z instanceof Error?z.message:"Save failed";typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:Le}}))}finally{b(!1)}},Ze=z=>{if(!D){if(k(null),Lj[z]){ne(z);return}if(z==="brainstorm"||z==="plan"){j(z);return}if(z==="add-child"){ve(!0);return}if(z==="add-task"){ie(!0);return}if(z==="link-task"){X(z),oe("");return}if(z==="sync-status"){j("sync-status");return}}},W=async z=>{const Le=Fj[z];if(Le){S(z),k(null);try{const he=await F7(e,Le);a(Pe=>Pe&&{...Pe,status:he}),await yt({body:!1}),k({kind:"ok",message:`${Fr[z]??z}: status is now ${he}.`})}catch(he){ht(he,"Transition failed")}finally{S(null)}}},ne=async z=>{if(z==="cancel"){w(!0);return}await W(z)},Te=async()=>{w(!1),await W("cancel")},_e=async()=>{const z=K;if(!(!z||!G.trim())){X(null),S(z),k(null);try{z==="add-child"?await K1({id:e,name:G.trim()}):z==="add-task"?await U7({id:e,title:G.trim()}):z==="link-task"&&await j7({id:e,wbs:G.trim()}),await yt({body:!1}),k({kind:"ok",message:`${Fr[z]??z} completed.`})}catch(Le){ht(Le,"Action failed")}finally{S(null)}}},$e=async()=>{if(!U)return;const z=U;j(null),S(z),k(null);try{if(z==="sync-status"){const Le=await $7({id:e,direction:Y});await yt({body:!1});const he=Le.data?.applied,Pe=Le.data?.newStatus;k({kind:"ok",message:he?`Sync applied${Pe?`: status is now ${Pe}`:""}.`:"Sync finished — no status change was needed."})}else{const Le=await P7({id:e,action:z,channel:Q});Le?.data?.runId&&(Ne(Le.data.runId,z),be(!1)),await yt({body:!1}),k({kind:"ok",message:`${Fr[z]??z} dispatched on ${Q}.`})}}catch(Le){ht(Le,"Action failed")}finally{S(null)}},Ke=z=>{if(!z)return"";try{const Le=new Date(z);return Number.isNaN(Le.getTime())?"":Le.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}},At=z=>{if(!z)return"";try{const Le=new Date(z);if(Number.isNaN(Le.getTime()))return"";const he=Date.now()-Le.getTime(),Pe=Math.floor(he/864e5);return Pe===0?"today":Pe===1?"yesterday":Pe<30?`${Pe}d ago`:Pe<365?`${Math.floor(Pe/30)}mo ago`:`${Math.floor(Pe/365)}y ago`}catch{return""}},Tt=Array.isArray(T.tags)?T.tags:[],bt=Ke(T.created_at),Dt=At(T.created_at),ee=Ke(T.updated_at),ye=At(T.updated_at),Fe=z=>{window.location.assign(`/board/tasks/${z}`)},ke=Oj[r.status]??[];return p.jsxs("div",{className:"flex flex-col h-full",children:[p.jsxs("div",{className:"flex items-start justify-between gap-3 p-3 border-b border-spur-border shrink-0",children:[p.jsxs("div",{className:"flex flex-col gap-1 overflow-hidden",children:[p.jsxs("h3",{className:"text-sm font-semibold text-spur-text truncate",children:[r.id," — ",r.name]}),p.jsxs("div",{className:"flex flex-wrap items-center gap-1","data-testid":"header-chips",children:[p.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:r.status}),typeof r.frontmatter.priority=="string"&&p.jsx("span",{className:"px-2 py-0.5 rounded-full bg-spur-accent/15 text-xs text-spur-accent",children:r.frontmatter.priority}),Tt.map(z=>p.jsx("span",{className:"px-2 py-0.5 rounded-full border border-spur-border text-xs text-spur-text-muted",children:z},z))]})]}),p.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-1 shrink-0",children:[ke.map(z=>{let Le="accent";return z==="cancel"?Le="error":(z==="add-child"||z==="add-task"||z==="link-task")&&(Le="outline"),p.jsx(He,{variant:Le,size:"xs",onClick:()=>Ze(z),disabled:D!==null,"aria-busy":D===z,"aria-label":Fr[z],children:D===z?"…":Fr[z]},z)}),t&&p.jsx(He,{variant:"ghost",size:"xs",className:"text-spur-text-muted",onClick:t,"aria-label":"Close detail",children:"✕"})]})]}),A&&p.jsx("div",{role:"status","data-testid":"action-feedback","data-kind":A.kind,className:`px-3 py-1.5 text-xs border-b border-spur-border shrink-0 ${A.kind==="error"?"bg-spur-error/10 text-spur-error":"bg-spur-success/10 text-spur-success"}`,children:A.message}),p.jsxs("div",{className:"border-b border-spur-border shrink-0",children:[p.jsxs("button",{type:"button",onClick:()=>I(z=>!z),className:"flex items-center justify-between w-full p-3 text-xs font-semibold text-spur-text-muted uppercase tracking-wide hover:text-spur-text transition-colors","aria-expanded":x,children:[p.jsx("span",{children:"Metadata"}),p.jsxs("svg",{className:`w-3 h-3 transition-transform ${x?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[p.jsx("title",{children:x?"Collapse metadata":"Expand metadata"}),p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})]})]}),x&&p.jsxs("div",{className:"px-3 pb-3 space-y-3",children:[p.jsxs("div",{children:[p.jsx("span",{className:"text-xs text-spur-text-muted block mb-1.5",children:"Status"}),p.jsx("span",{className:"text-sm text-spur-text","data-testid":"metadata-status",children:r.status})]}),(bt||ee)&&p.jsxs("div",{className:"space-y-1.5",children:[p.jsx("span",{className:"text-xs text-spur-text-muted block",children:"Dates"}),bt&&p.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[p.jsx("span",{className:"text-spur-text-muted w-14 shrink-0",children:"Created"}),p.jsx("span",{className:"text-spur-text",children:bt}),p.jsxs("span",{className:"text-spur-text-muted",children:["(",Dt,")"]})]}),ee&&p.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[p.jsx("span",{className:"text-spur-text-muted w-14 shrink-0",children:"Updated"}),p.jsx("span",{className:"text-spur-text",children:ee}),p.jsxs("span",{className:"text-spur-text-muted",children:["(",ye,")"]})]})]}),Tt.length>0&&p.jsxs("div",{children:[p.jsx("span",{className:"text-xs text-spur-text-muted block mb-1.5",children:"Tags"}),p.jsx("div",{className:"flex flex-wrap gap-1",children:Tt.map(z=>p.jsx(xt,{variant:"outline",size:"xs",className:"text-spur-text-muted",children:z},z))})]}),p.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[p.jsx("span",{className:"text-spur-text-muted w-14 shrink-0",children:"File"}),p.jsx("span",{className:"text-spur-text font-mono truncate",children:r.filePath})]}),p.jsxs("div",{children:[p.jsxs("span",{className:"text-xs text-spur-text-muted block mb-1.5",children:["Linked Tasks (",ze.length,")"]}),ze.length===0?p.jsx("span",{className:"text-xs text-spur-text-muted italic",children:"No linked tasks"}):p.jsx("div",{className:"space-y-1",children:ze.map(z=>p.jsxs("div",{className:"flex items-center gap-2 w-full text-xs",children:[p.jsx("span",{className:"shrink-0 text-[13px]",title:z.status,children:zg(z.status)}),p.jsxs("button",{type:"button",onClick:()=>Fe(z.wbs),className:"flex items-center gap-2 flex-1 min-w-0 text-left hover:underline cursor-pointer","aria-label":`Go to task ${z.wbs}: ${z.name}`,children:[p.jsx("span",{className:"font-mono text-spur-accent shrink-0",children:z.wbs}),p.jsx("span",{className:"text-spur-text truncate",children:z.name})]}),p.jsx("span",{className:"px-1.5 py-0.5 rounded-full border border-spur-border text-[10px] text-spur-text-muted shrink-0",children:z.status})]},z.wbs))})]})]})]}),p.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden p-3","data-testid":"feature-body-section",children:[p.jsxs("div",{className:"flex items-center justify-between mb-2 shrink-0",children:[p.jsx("span",{className:"text-xs font-semibold text-spur-text-muted uppercase tracking-wide",children:"Body"}),p.jsx("div",{className:"flex gap-1",children:l==="preview"?p.jsx(He,{variant:"ghost",size:"xs",onClick:tn,disabled:d,"aria-label":"Edit body",children:"Edit"}):p.jsxs(p.Fragment,{children:[p.jsx(He,{variant:"primary",size:"xs",onClick:Ae,disabled:m,"aria-label":"Save body",children:m?"Saving…":"Save"}),p.jsx(He,{variant:"ghost",size:"xs",onClick:ut,disabled:m,"aria-label":"Cancel edit",children:"Cancel"})]})})]}),d?p.jsxs("div",{className:"flex items-center gap-2 text-sm text-spur-text-muted",children:[p.jsx(Ir,{size:"xs",className:"text-spur-accent"}),"Loading body…"]}):l==="edit"?p.jsx("div",{className:"flex-1 min-h-0","data-testid":"body-editor",children:p.jsx(qo,{value:o,onChange:z=>u(z??""),height:"100%","data-color-mode":"light"})}):p.jsx("div",{className:"flex-1 overflow-y-auto","data-testid":"body-preview",children:p.jsx(Nj,{source:i})})]}),P&&p.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:z=>{z.target===z.currentTarget&&w(!1)},onKeyDown:z=>{z.key==="Escape"&&w(!1)},children:p.jsxs("div",{className:"bg-spur-surface border border-spur-border rounded-lg shadow-xl p-4 mx-4 max-w-xs w-full",children:[p.jsxs("p",{className:"text-sm text-spur-text mb-4",children:["Cancel feature ",p.jsx("strong",{children:e}),"? This marks it as cancelled and cannot be undone from the board."]}),p.jsxs("div",{className:"flex justify-end gap-2",children:[p.jsx(He,{variant:"ghost",size:"xs",onClick:()=>w(!1),children:"Keep"}),p.jsx(He,{variant:"error",size:"xs",onClick:Te,children:"Cancel feature"})]})]})}),U&&p.jsx("div",{role:"dialog","aria-modal":"true","aria-label":`Configure ${U} action`,tabIndex:-1,className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40",onClick:z=>{z.target===z.currentTarget&&j(null)},onKeyDown:z=>{z.key==="Escape"&&j(null)},children:p.jsxs("div",{className:"bg-spur-surface border border-spur-border rounded-lg shadow-xl p-4 mx-4 max-w-sm w-full",children:[U==="sync-status"?p.jsxs(p.Fragment,{children:[p.jsx("h4",{className:"text-sm font-semibold text-spur-text mb-3",children:"Sync Status — Direction"}),p.jsx("div",{className:"space-y-3",children:p.jsxs(aa,{variant:"bordered",size:"sm",className:"w-full bg-spur-bg text-spur-text",value:Y,onChange:z=>N(z.target.value),children:[p.jsx("option",{value:"push",children:"Push (feature → tasks)"}),p.jsx("option",{value:"pull",children:"Pull (tasks → feature)"})]})})]}):p.jsxs(p.Fragment,{children:[p.jsxs("h4",{className:"text-sm font-semibold text-spur-text mb-3",children:[Fr[U]," — Select Channel"]}),p.jsxs("div",{className:"space-y-3",children:[p.jsx(aa,{variant:"bordered",size:"sm",className:"w-full bg-spur-bg text-spur-text",value:Q,onChange:z=>ae(z.target.value),children:["claude","codex","gemini","pi","opencode","antigravity","openclaw"].map(z=>p.jsx("option",{value:z,children:z},z))}),p.jsxs("label",{htmlFor:"skip-deps",className:"flex items-center gap-2 cursor-pointer",children:[p.jsx(Cg,{id:"skip-deps",size:"xs",checked:!1,onChange:()=>{}}),p.jsx("span",{className:"text-xs text-spur-text",children:"Skip dependencies"})]})]})]}),p.jsxs("div",{className:"flex justify-end gap-2 mt-4",children:[p.jsx(He,{variant:"ghost",size:"xs",onClick:()=>j(null),children:"Cancel"}),p.jsx(He,{variant:"primary",size:"xs",onClick:$e,children:D===U?"Dispatching…":"Dispatch"})]})]})}),K&&p.jsx("div",{role:"dialog","aria-modal":"true","aria-label":`${Fr[K]} input`,tabIndex:-1,className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40",onClick:z=>{z.target===z.currentTarget&&X(null)},onKeyDown:z=>{z.key==="Escape"&&X(null)},children:p.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.jsx("h4",{className:"text-sm font-semibold text-spur-text mb-3",children:Fr[K]}),K==="link-task"?p.jsxs(aa,{variant:"bordered",size:"sm",className:"w-full bg-spur-bg text-spur-text",value:G,onChange:z=>oe(z.target.value),children:[p.jsx("option",{value:"",children:"— Select a task —"}),(pt??[]).filter(z=>z.featureId!==e).map(z=>p.jsxs("option",{value:z.wbs,children:[z.wbs," — ",z.name]},z.wbs))]}):p.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:G,onChange:z=>oe(z.target.value),onKeyDown:z=>{z.key==="Enter"&&G.trim()&&_e()}}),p.jsxs("div",{className:"flex justify-end gap-2 mt-4",children:[p.jsx(He,{variant:"ghost",size:"xs",onClick:()=>X(null),children:"Cancel"}),p.jsx(He,{variant:"primary",size:"xs",onClick:_e,disabled:!G.trim()||D===K,children:D===K?"…":"Create"})]})]})}),p.jsx(tA,{open:H,onClose:()=>ie(!1),onCreated:Rt,folder:["docs","tasks2"].join("/"),featureId:e}),p.jsx(aA,{open:R,parentId:e,onClose:()=>ve(!1),onCreated:zt}),p.jsx(Dj,{progress:Oe,isDismissed:je,onDismiss:()=>be(!0),onReopen:()=>be(!1)})]})}function zj(e){const t=e.match(/^---\n[\s\S]*?\n---\n/);return t?e.slice(t[0].length):e}const sA={backlog:{status:"backlog",label:"Backlog",colorClass:"text-spur-text-muted",Icon:({className:e="w-3.5 h-3.5",ariaLabel:t})=>p.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:p.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})=>p.jsx("svg",{className:`inline-block shrink-0 ${e}`,viewBox:"0 0 16 16",fill:"currentColor",role:"img","aria-label":t,children:p.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})=>p.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:[p.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"}),p.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})=>p.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:[p.jsx("path",{d:"M8 2.5l5.5 10.5H2.5L8 2.5z"}),p.jsx("path",{d:"M8 6v3"}),p.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})=>p.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:p.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})=>p.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:[p.jsx("path",{d:"M5.5 2.5h5l3 3v5l-3 3h-5l-3-3v-5l3-3z"}),p.jsx("path",{d:"M6.25 6.25l3.5 3.5M9.75 6.25l-3.5 3.5"})]})}};function oA(e){const t=sA[e.toLowerCase()];return t?t.label:`Unknown status: ${e}`}function uA({status:e,className:t}){const n=e.toLowerCase(),r=sA[n];if(r){const a=r.Icon;return p.jsx(a,{className:`${r.colorClass} ${t??"w-3.5 h-3.5"}`,ariaLabel:r.label})}return p.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":oA(e),children:p.jsx("circle",{cx:"8",cy:"8",r:"4"})})}function lA(e,t){return e.id.localeCompare(t.id)}function Hj({features:e,selectedId:t,onSelect:n}){const r=e.filter(i=>i.id.length===1).slice().sort(lA),a=Gj(e);return p.jsx("ul",{className:"py-1","data-feature-tree":!0,children:r.map(i=>p.jsx(cA,{feature:i,childrenMap:a,selectedId:t,onSelect:n,depth:0},i.id))})}function Gj(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(lA);return t}function cA({feature:e,childrenMap:t,selectedId:n,onSelect:r,depth:a}){const i=t.get(e.id),s=e.id===n,o=`${a*16}px`;return p.jsxs("li",{children:[p.jsxs("button",{type:"button",onClick:()=>r(e.id),className:`w-full flex items-center gap-1.5 px-2 py-1 text-left text-sm transition-colors hover:bg-base-300 ${s?"bg-spur-accent/10 text-spur-accent font-semibold":"text-spur-text"}`,style:{paddingLeft:`calc(0.5rem + ${o})`},children:[p.jsx(VM,{position:"right",tip:oA(e.status),className:"flex! w-4 shrink-0 items-center justify-center","data-testid":"feature-tree-status",children:p.jsx(uA,{status:e.status})}),p.jsx("span",{className:"text-xs font-mono text-spur-text-muted shrink-0",children:e.id}),p.jsx("span",{className:"flex-1 truncate",children:e.name})]}),i&&i.length>0&&p.jsx("ul",{children:i.map(u=>p.jsx(cA,{feature:u,childrenMap:t,selectedId:n,onSelect:r,depth:a+1},u.id))})]})}const Wj=()=>`${at()}/events/planning`;function Vj({className:e="w-3.5 h-3.5"}){return p.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:p.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 qj(){const[e,t]=g.useState(null),[n,r]=g.useState(null),[a,i]=g.useState(!1),[s,o]=g.useState("all"),[u,l]=g.useState(!1),[c,d]=g.useState(null),[f,m]=g.useState(0),b=g.useRef(null),y=g.useCallback(async x=>{try{const I=await L7(x);t(I),d(null)}catch(I){if(x?.aborted)return;d(I instanceof Error?I.message:String(I))}},[]);if(g.useEffect(()=>{const x=new AbortController;return y(x.signal),()=>x.abort()},[y]),g.useEffect(()=>{if(!u)return;const x=D=>{b.current&&!b.current.contains(D.target)&&l(!1)},I=D=>{D.key==="Escape"&&l(!1)};return document.addEventListener("mousedown",x),document.addEventListener("keydown",I),()=>{document.removeEventListener("mousedown",x),document.removeEventListener("keydown",I)}},[u]),g.useEffect(()=>{if(typeof EventSource>"u")return;const x=new EventSource(Wj());return x.onmessage=I=>{try{const S=JSON.parse(I.data).eventName;if(!iA(S))return;y(),n&&(S==="feature.updated"||S==="feature.transitioned"||S==="queue.job.completed")&&m(A=>A+1)}catch{}},()=>x.close()},[y,n]),c)return p.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load features: ",c]});if(e===null)return p.jsx("div",{className:"flex items-center justify-center h-full text-spur-text-muted text-sm",children:"Loading features…"});const E=()=>{i(!1),y()},v=(x=>{if(s==="all")return x;const I=s.toLowerCase(),D=new Set;for(const S of x)if(S.status.toLowerCase()===I){D.add(S.id);let A=S.id;for(;A.length>1;)A=A.slice(0,-1),D.add(A)}return x.filter(S=>D.has(S.id))})(e);return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"flex h-full overflow-hidden","data-features-shell":!0,children:[p.jsxs("div",{className:"w-72 shrink-0 border-r border-spur-border overflow-y-auto bg-base-200",children:[p.jsxs("div",{className:"px-3 py-2 border-b border-spur-border flex items-center justify-between",children:[p.jsx("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:"Features"}),p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsxs("div",{className:"relative",ref:b,children:[p.jsxs(He,{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:()=>l(x=>!x),"aria-label":"Filter features by status","aria-expanded":u,title:"Filter features by status",children:[p.jsx(Vj,{className:"w-3.5 h-3.5"}),s!=="all"&&p.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-spur-accent shrink-0","aria-hidden":"true"})]}),u&&p.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:[p.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:[p.jsx("span",{children:"Filter by Status"}),s!=="all"&&p.jsx("button",{type:"button",onClick:()=>{o("all"),l(!1)},className:"text-[10px] text-spur-accent hover:underline",children:"Reset"})]}),p.jsxs("button",{type:"button",onClick:()=>{o("all"),l(!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:[p.jsx("span",{className:"flex-1",children:"All"}),s==="all"&&p.jsx("span",{children:"✓"})]}),hi.map(x=>p.jsxs("button",{type:"button",onClick:()=>{o(x),l(!1)},className:`w-full text-left px-3 py-1.5 flex items-center gap-2 hover:bg-base-200 capitalize ${s===x?"font-semibold text-spur-accent bg-spur-accent/10":"text-spur-text"}`,children:[p.jsx(uA,{status:x}),p.jsx("span",{className:"flex-1 capitalize",children:x}),s===x&&p.jsx("span",{children:"✓"})]},x))]})]}),p.jsx(He,{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:"+"})]})]}),e.length===0?p.jsx("div",{className:"p-3 text-xs text-spur-text-muted italic",children:"No features found."}):v.length===0?p.jsxs("div",{className:"p-3 text-xs text-spur-text-muted italic",children:['No features match status filter "',s,'".']}):p.jsx(Hj,{features:v,selectedId:n,onSelect:r})]}),p.jsx("div",{className:"flex-1 overflow-y-auto",children:n?p.jsx($j,{featureId:n,refreshKey:f,onClose:()=>r(null)}):p.jsx("div",{className:"flex items-center justify-center h-full text-sm text-spur-text-muted italic",children:"Select a feature to view details"})})]}),p.jsx(aA,{open:a,parentId:"",onClose:()=>i(!1),onCreated:E})]})}const Yj={id:"features",name:"Feature Board",icon:"🏷️",route:"features",component:qj,sidebarLabel:"Features"},Zj=Object.freeze(Object.defineProperty({__proto__:null,module:Yj},Symbol.toStringTag,{value:"Module"}));var Pa=KA();const Kj=()=>`${at()}/events/planning`,ed=100;function yy(e){const t=`${at()}/events/history`,n=[],r=e.limit??ed;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 Xj={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"},Ty="text-spur-text-muted";function dA(e){return e?Xj[e]??Ty:Ty}const ic={selectedPrefixes:new Set,searchQuery:"",searchScope:"all",tierFilter:"all",timeWindow:"all",runId:""};function Qj(){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 Qa(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 c of t){const d=Jj(c);d&&o.push(d)}const u=e.catalog,l=Array.isArray(u)?e$(u):void 0;return{events:o,count:n,nextCursor:a,hasMore:s,...l?{catalog:l}:{}}}function Jj(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,l=typeof t.sequence=="number"&&Number.isFinite(t.sequence)?t.sequence:t.sequence===null?null:void 0,c={id:t.id,eventName:t.eventName,occurredAt:t.occurredAt,actor:a,...n?{prefix:n}:{},...r?{renderer:r}:{}};return i===null?{...c,payload:null,...ru(s,o,u,l)}:typeof i!="object"?null:{...c,payload:i,...ru(s,o,u,l)}}function ru(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 e$(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 t$(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=t.runId??s?.runId,u=t.entityKind??s?.entityKind,l=t.entityId??s?.entityId,c=t.sequence??s?.sequence,d=typeof o=="string"?o:o===null?null:void 0,f=typeof u=="string"?u:u===null?null:void 0,m=typeof l=="string"?l:l===null?null:void 0,b=typeof c=="number"&&Number.isFinite(c)?c:c===null?null:void 0;return{eventName:t.eventName,occurredAt:t.occurredAt,actor:a,...n?{prefix:n}:{},...r?{renderer:r}:{},payload:s,...ru(d,f,m,b)}}function sc(e){return typeof e=="object"&&e!==null?JSON.stringify(e):String(e)}const n$=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function r$(e){const t=new Date(e);if(Number.isNaN(t.getTime()))return e;const n=n$[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 Wr(e){return typeof e!="number"||!Number.isFinite(e)?null:e<1e3?`${e}ms`:`${(e/1e3).toFixed(1)}s`}function Ro(e){return e==null?"unavailable":typeof e=="string"?e.length===0?"unavailable":e:typeof e=="number"?Number.isFinite(e)?String(e):"unavailable":typeof e=="boolean"?String(e):"unavailable"}function a$(e){switch(e.split(".").pop()??""){case"enqueued":return"pending";case"completed":return"completed";case"failed":return"failed";case"retrying":return"retrying";case"executed":return"executed";case"started":return"started";case"stopped":return"stopped";case"spawned":return"spawned";case"exited":return"exited";default:return null}}function i$(e){const t=[];let n=0;for(;n<e.length;){const r=e[n]??"";if(r==='"'){let a=n+1;for(;a<e.length;){if(e[a]==="\\"){a+=2;continue}if(e[a]==='"'){a+=1;break}a+=1}const i=e.slice(n,a);let s=a;for(;s<e.length&&/\s/.test(e[s]??"");)s+=1;const u=e[s]===":"?"key":"string";t.push({id:`tok-${t.length}-${u}`,kind:u,text:i}),n=a;continue}if(r==="-"||r>="0"&&r<="9"){let a=n+1;for(;a<e.length&&/[0-9.eE+-]/.test(e[a]??"");)a+=1;t.push({id:`tok-${t.length}-number`,kind:"number",text:e.slice(n,a)}),n=a;continue}if(e.startsWith("true",n)||e.startsWith("null",n)){t.push({id:`tok-${t.length}-kw`,kind:"keyword",text:e.slice(n,n+4)}),n+=4;continue}if(e.startsWith("false",n)){t.push({id:`tok-${t.length}-kw`,kind:"keyword",text:e.slice(n,n+5)}),n+=5;continue}if("{}[]:,".includes(r)){t.push({id:`tok-${t.length}-punct`,kind:"punct",text:r}),n+=1;continue}if(/\s/.test(r)){let a=n+1;for(;a<e.length&&/\s/.test(e[a]??"");)a+=1;t.push({id:`tok-${t.length}-ws`,kind:"ws",text:e.slice(n,a)}),n=a;continue}t.push({id:`tok-${t.length}-plain`,kind:"plain",text:r}),n+=1}return t}const s$={key:"json-tok-key",string:"json-tok-string",number:"json-tok-number",keyword:"json-tok-keyword",punct:"json-tok-punct",ws:"",plain:"json-tok-plain"};function o$(e){if(!e||Object.keys(e).length===0)return null;try{const t=JSON.stringify(e,null,2);return{text:t,tokens:i$(t)}}catch{return null}}function u$(e){let t=typeof e.entityKind=="string"&&e.entityKind.length>0?e.entityKind:null,n=typeof e.entityId=="string"&&e.entityId.length>0?e.entityId:null;if((!t||!n)&&e.payload&&typeof e.payload.entity=="object"&&e.payload.entity){const r=e.payload.entity;!t&&typeof r.kind=="string"&&r.kind.length>0&&(t=r.kind),!n&&typeof r.id=="string"&&r.id.length>0&&(n=r.id)}return t&&n?`${t} : ${n}`:t||n||"unavailable"}function l$(e){const t=e.payload,n=(...c)=>{if(t)for(const d of c){const f=t[d];if(typeof f=="string"&&f.length>0)return f}},r=e.runId&&e.runId.length>0?e.runId:n("jobId","runId"),a=Ro(r),i=n("actionId","action","node","kind","type","name"),s=Ro(i),o=t?t.outcome??t.status??t.ok:void 0;let u;o!=null&&o!==""?u=Ro(o):u=a$(e.eventName)??"unavailable";const l=Wr(t?.durationMs);return{run:a,action:s,outcome:u,duration:l}}function c$(e){if(e==null||e==="")return"unavailable";if(typeof e=="number")return Number.isFinite(e)?String(e):"unavailable";if(typeof e=="string"||typeof e=="boolean")return String(e);if(typeof e=="object")try{return JSON.stringify(e)}catch{return"unavailable"}return"unavailable"}function d$(e,t,n){if(!t||Object.keys(t).length===0)return null;const r=(...y)=>{for(const E of y){const T=t[E];if(typeof T=="string"&&T.length>0)return T;if(typeof T=="number")return String(T)}},a=(...y)=>{for(const E of y){const T=t[E];if(typeof T=="number"&&Number.isFinite(T))return T}return null},i=(...y)=>{for(const E of y){const T=t[E];if(typeof T=="boolean")return String(T)}},s=t.entity,o=s&&typeof s=="object"?`${sc(s.kind)}:${sc(s.id)}`:r("entityId","wbs","ruleId","msgId","jobId"),u=r("from"),l=r("to"),c=u||l?`${u??"none"} → ${l??"none"}`:void 0,d=[],f=(y,E)=>{E!=null&&E!==""&&d.push({label:y,value:E})},m=e.startsWith("task.")||e.startsWith("feature.")?"planning":"generic";switch(n??m){case"planning":o&&f("Entity",o),c&&f("Transition",c);break;case"queue":f("Job",r("kind","type","name")),f("ID",r("jobId","id")),f("Duration",Wr(a("durationMs"))),f("Status",r("status","state")),f("Error",r("error"));break;case"scheduler":f("Job",r("name","kind")),f("Duration",Wr(a("durationMs"))),f("Error",r("error"));break;case"message":{const y=r("fromId","from","senderId"),E=r("toId","to","recipientId");y&&E?f("Route",`${y} → ${E}`):f("Route",r("route","direction","type")),f("OK",i("ok","success")),f("Subject",r("subject","topic"));break}case"process":case"agent":f("Command",r("command","cmd","agent","name")),f("Exit",r("exitCode","code")),f("Duration",Wr(a("durationMs"))),f("Op",r("op","action","event","type")),f("PID",r("pid"));break;case"rule":f("Rule",r("rule","ruleId","name")),f("Severity",r("severity")),f("Findings",r("count","findings","total"));break;case"bus":{const y=r("event","kind");y&&f("Bus event",y);break}case"api":{const y=r("method"),E=r("status");y&&E?f("HTTP",`${y} ${E}`):(f("HTTP",y),f("HTTP",E)),f("Path",r("path")),f("Error",r("error"));break}case"workflow-run":case"workflow-phase":case"workflow-transition":case"workflow-action":case"workflow-hitl":case"workflow-guard":case"workflow-custom":{f("Workflow",r("workflow","workflowName","name")),f("Run",r("runId","run","id"));const y=r("phase"),E=r("transition"),T=r("action","kind");y?f("Phase",y):E?f("Transition",E):T&&f("Action",T);break}default:for(const[y,E]of Object.entries(t)){if(d.length>=3)break;E==null||E===""||typeof E!="object"&&d.push({label:y,value:sc(E)})}break}return d.length>0?d:null}function p$(e){const t={};e.selectedPrefixes.size===1&&(t.prefix=[...e.selectedPrefixes][0]);const n=e.searchQuery.trim();if(n!==""&&e.searchScope==="name"&&(t.names=n),n!==""&&e.searchScope==="actor"&&(t.actor=n),e.runId.trim()!==""&&(t.runId=e.runId.trim()),e.timeWindow!=="all"){const r=e.timeWindow==="30s"?3e4:3e5;t.since=new Date(Date.now()-r).toISOString()}return t}function Sy(e,t,n){if(t.selectedPrefixes.size>=1){const r=e.prefix??e.eventName.split(".")[0]??e.eventName;if(!t.selectedPrefixes.has(r))return!1}if(t.tierFilter!=="all"){const r=n.get(e.eventName);if(r!==t.tierFilter&&!(t.tierFilter==="default"&&r===void 0))return!1}if(t.searchQuery.trim()!==""){const r=t.searchQuery.toLowerCase();let a=!1;if((t.searchScope==="name"||t.searchScope==="all")&&(a=a||e.eventName.toLowerCase().includes(r)),(t.searchScope==="actor"||t.searchScope==="all")&&(a=a||(e.actor?.toLowerCase().includes(r)??!1)),t.searchScope==="payload"&&e.payload&&(a=a||JSON.stringify(e.payload).toLowerCase().includes(r)),!a)return!1}if(t.timeWindow!=="all"){const r=t.timeWindow==="30s"?3e4:3e5,a=Date.now()-r,i=new Date(e.occurredAt).getTime();if(Number.isNaN(i)||i<a)return!1}return!(t.runId.trim()!==""&&e.runId!==t.runId.trim())}function f$(){const[e,t]=g.useState([]),[n,r]=g.useState([]),[a,i]=g.useState("idle"),[s,o]=g.useState(null),[u,l]=g.useState(null),[c,d]=g.useState(!1),[f,m]=g.useState(!1),[b,y]=g.useState(ic),[E,T]=g.useState(ic),[v,x]=g.useState("connecting"),{rate:I,recordEvent:D}=Qj(),S=g.useMemo(()=>{const Q=new Map;for(const ae of n)ae.tier&&Q.set(ae.name,ae.tier);return Q},[n]);g.useEffect(()=>{const Q=window.setTimeout(()=>{T(b)},250);return()=>window.clearTimeout(Q)},[b]);const A=g.useMemo(()=>p$(E),[E]),k=g.useRef(0);g.useEffect(()=>{const Q=++k.current,ae=new AbortController;return i("loading"),o(null),(async()=>{try{const Y=await et(new Request(yy({...A,limit:ed}),{signal:ae.signal}));if(!Y.ok){const ie=await Y.json().catch(()=>null),R=ie?.code;throw R==="UNKNOWN_PREFIX"||R==="MALFORMED_CURSOR"?new Error(`${R}: ${ie.error??Y.status}`):new Error(`history fetch failed: ${Y.status}`)}const N=await Y.json(),H=Qa(N);if(!H)throw new Error("history response failed schema validation");if(Q!==k.current)return;t(H.events),H.catalog&&r(H.catalog),l(H.nextCursor),d(H.hasMore),i("loaded")}catch(Y){if(ae.signal.aborted||Q!==k.current)return;o(Y instanceof Error?Y.message:String(Y)),i("error")}})(),()=>ae.abort()},[A]);const P=g.useCallback(async()=>{if(!(!c||f||u===null)){m(!0);try{const Q=await et(new Request(yy({...A,limit:ed,cursor:u})));if(!Q.ok)throw new Error(`history fetch failed: ${Q.status}`);const ae=await Q.json(),Y=Qa(ae);if(!Y)throw new Error("history response failed schema validation");t(N=>{const H=new Set(N.map(R=>R.id)),ie=Y.events.filter(R=>!H.has(R.id));return[...N,...ie]}),Y.catalog&&r(Y.catalog),l(Y.nextCursor),d(Y.hasMore)}catch(Q){o(Q instanceof Error?Q.message:String(Q))}finally{m(!1)}}},[c,f,u,A]),w=g.useRef(b);w.current=b;const U=g.useRef(S);U.current=S,g.useEffect(()=>{if(typeof EventSource>"u")return;const Q=new EventSource(Kj());return Q.onopen=()=>{x("live")},Q.onerror=()=>{x("errored")},Q.onmessage=ae=>{try{const Y=JSON.parse(ae.data),N=t$(Y);if(!N||N.eventName==="connected")return;const H=w.current,ie=U.current;if(!Sy({eventName:N.eventName,occurredAt:N.occurredAt,actor:N.actor,...N.prefix?{prefix:N.prefix}:{},payload:N.payload,...N.runId!==void 0?{runId:N.runId}:{}},H,ie))return;const R={id:`live-${N.occurredAt}-${N.eventName}`,eventName:N.eventName,occurredAt:N.occurredAt,actor:N.actor,...N.prefix?{prefix:N.prefix}:{},...N.renderer?{renderer:N.renderer}:{},payload:N.payload,...ru(N.runId,N.entityKind,N.entityId,N.sequence)};t(ve=>[R,...ve]),D()}catch{}},()=>Q.close()},[D]);const j=g.useMemo(()=>Array.from(new Set([...n.map(Q=>Q.prefix),...e.map(Q=>Q.prefix??Q.eventName.split(".")[0]??Q.eventName)])).sort(),[n,e]),K=b.selectedPrefixes.size>0||b.searchQuery.trim()!==""||b.searchScope!=="all"||b.tierFilter!=="all"||b.timeWindow!=="all"||b.runId.trim()!=="",X=g.useCallback(()=>{y(ic)},[]),G=g.useCallback(Q=>{y(ae=>{const Y=new Set(ae.selectedPrefixes);return Y.has(Q)?Y.delete(Q):Y.add(Q),{...ae,selectedPrefixes:Y}})},[]);if(a==="error")return p.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load event history: ",s]});if(a==="idle"||a==="loading")return p.jsxs("div",{className:"flex items-center justify-center h-32 text-spur-text-muted text-sm",children:[p.jsx(Ir,{size:"sm"})," Loading event history…"]});const oe=e.filter(Q=>Sy(Q,b,S));return p.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[p.jsxs("div",{className:"px-4 py-2 border-b border-spur-border bg-base-200 shrink-0 flex items-center justify-between gap-3 flex-wrap",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:"System Events"}),p.jsx("span",{className:"text-xs text-spur-text-muted",children:"newest first · live tail"})]}),p.jsx(m$,{status:v,rate:I,shown:oe.length,total:e.length,hasMore:c})]}),p.jsxs("div",{className:"px-4 py-2 border-b border-spur-border bg-base-100 shrink-0 flex flex-col gap-2",children:[p.jsxs("fieldset",{className:"flex flex-wrap items-center gap-1.5 border-0 p-0 m-0","aria-label":"Filter by prefix",children:[p.jsx("legend",{className:"sr-only",children:"Filter by prefix"}),j.map(Q=>{const ae=b.selectedPrefixes.has(Q),Y=dA(Q);return p.jsxs("button",{type:"button",role:"switch","aria-checked":ae,"aria-label":`Prefix ${Q}${ae?" (selected)":""}`,onClick:()=>G(Q),className:`px-2 py-0.5 rounded-full text-[11px] font-mono border transition-colors cursor-pointer focus:outline-none focus:ring-2 focus:ring-spur-text/40 ${ae?`${Y} border-current bg-base-200`:"text-spur-text-muted border-spur-border/40 hover:bg-base-200/60"}`,children:[Q,".*"]},Q)})]}),p.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[p.jsx(xy,{label:"Tier",value:b.tierFilter,onChange:Q=>y(ae=>({...ae,tierFilter:Q})),options:[{value:"all",label:"All"},{value:"default",label:"Default"},{value:"diagnostic",label:"Diagnostic"}]}),p.jsx(xy,{label:"Window",value:b.timeWindow,onChange:Q=>y(ae=>({...ae,timeWindow:Q})),options:[{value:"all",label:"All"},{value:"30s",label:"30s"},{value:"5m",label:"5m"}]}),p.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-[220px]",children:[p.jsxs("select",{value:b.searchScope,onChange:Q=>y(ae=>({...ae,searchScope:Q.target.value})),className:"bg-base-200 border border-spur-border rounded px-1.5 py-0.5 text-[11px] text-spur-text focus:outline-none focus:ring-2 focus:ring-spur-text/40 cursor-pointer","aria-label":"Search scope",children:[p.jsx("option",{value:"all",children:"all"}),p.jsx("option",{value:"name",children:"name"}),p.jsx("option",{value:"actor",children:"actor"}),p.jsx("option",{value:"payload",children:"payload"})]}),p.jsx(fs,{size:"sm",variant:"bordered",placeholder:"Search…",value:b.searchQuery,onChange:Q=>y(ae=>({...ae,searchQuery:Q.target.value})),className:"flex-1 min-w-[120px] input-sm","aria-label":`Search ${b.searchScope}`})]}),p.jsx(fs,{size:"sm",variant:"bordered",placeholder:"run id…",value:b.runId,onChange:Q=>y(ae=>({...ae,runId:Q.target.value})),className:"w-32 input-sm","aria-label":"Filter by run id"}),K&&p.jsx("button",{type:"button",onClick:X,className:"text-[11px] 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","aria-label":"Clear all filters",children:"Clear"}),p.jsxs("span",{"aria-live":"polite",className:"text-[11px] font-mono text-spur-text-muted whitespace-nowrap",children:[oe.length," of ",e.length]})]})]}),oe.length===0?p.jsx("div",{className:"p-4 text-sm text-spur-text-muted italic flex-1 overflow-y-auto",children:e.length===0?"No system events yet. New events from the planning bus will appear here in real time.":"No events match the active filters."}):p.jsx(g$,{rows:oe,catalog:n}),c&&p.jsx("div",{className:"px-4 py-2 border-t border-spur-border bg-base-100 shrink-0 flex justify-center",children:p.jsx("button",{type:"button",onClick:P,disabled:f,"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:f?"Loading…":"Load older"})})]})}function m$({status:e,rate:t,shown:n,total:r,hasMore:a}){const i=g.useMemo(()=>{switch(e){case"live":return"bg-success";case"connecting":return"bg-spur-text-muted";case"errored":return"bg-error"}},[e]),s=e==="live"?{animation:"spur-pulse 1.6s ease-in-out infinite"}:void 0;return p.jsxs("div",{className:"flex items-center gap-3 text-[11px] text-spur-text-muted font-mono whitespace-nowrap",children:[p.jsxs("span",{role:"status","aria-label":`SSE connection ${e}`,className:"inline-flex items-center gap-1.5",children:[p.jsx("span",{"aria-hidden":"true",className:`inline-block w-2 h-2 rounded-full ${i}`,style:s}),p.jsx("span",{className:"text-spur-text uppercase tracking-wide",children:e})]}),p.jsxs("span",{"aria-live":"polite","aria-atomic":"true",children:[t," events / 60s"]}),p.jsxs("span",{"aria-live":"polite","aria-atomic":"true",children:[n," of ",r," shown",a?" · more available":""]})]})}function h$(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 g$({rows:e,catalog:t}){const n=g.useMemo(()=>{const a=new Map;for(const i of t)i.tier&&a.set(i.name,i.tier);return a},[t]),r=h$("(max-width: 639px)");return p.jsx("section",{className:"flex-1 overflow-y-auto min-w-0","data-system-events-tab":!0,"aria-label":"System events",children:p.jsxs("table",{className:"w-full min-w-[800px] text-xs border-separate border-spacing-0 table-fixed",children:[p.jsxs("colgroup",{children:[p.jsx("col",{className:r?"w-24":"w-36"}),p.jsx("col",{className:"w-[20%]"}),!r&&p.jsx("col",{className:"w-24"}),!r&&p.jsx("col",{className:"w-32"}),!r&&p.jsx("col",{className:"w-20"}),!r&&p.jsx("col",{className:"w-20"}),!r&&p.jsx("col",{className:"w-80"}),!r&&p.jsx("col",{className:"w-32"})]}),p.jsx("thead",{className:"sticky top-0 z-10 bg-base-200",children:p.jsxs("tr",{className:"text-left text-spur-text-muted uppercase tracking-wide text-[10px]",children:[p.jsx("th",{scope:"col",className:"font-semibold px-3 py-1.5 border-b border-spur-border",children:"Time"}),p.jsx("th",{scope:"col",className:"font-semibold px-3 py-1.5 border-b border-spur-border",children:"Event"}),!r&&p.jsx("th",{scope:"col",className:"font-semibold px-3 py-1.5 border-b border-spur-border",children:"Actor"}),!r&&p.jsx("th",{scope:"col",className:"font-semibold px-3 py-1.5 border-b border-spur-border",children:"Entity"}),!r&&p.jsx("th",{scope:"col",className:"font-semibold px-3 py-1.5 border-b border-spur-border",children:"Prefix"}),!r&&p.jsx("th",{scope:"col",className:"font-semibold px-3 py-1.5 border-b border-spur-border",children:"Tier"}),!r&&p.jsx("th",{scope:"col",className:"font-semibold px-3 py-1.5 border-b border-spur-border",children:"Run"}),!r&&p.jsx("th",{scope:"col",className:"font-semibold px-3 py-1.5 border-b border-spur-border",children:"Outcome"})]})}),p.jsx("tbody",{children:e.map(a=>p.jsx(b$,{event:a,tier:n.get(a.eventName)??"default",compact:r},a.id))})]})})}const oc="system-events-payload-tooltip-pin";function b$({event:e,tier:t,compact:n}){const r=e.prefix??e.eventName.split(".")[0]??e.eventName,a=g.useMemo(()=>d$(e.eventName,e.payload,e.renderer),[e.eventName,e.payload,e.renderer]),i=dA(r),[s,o]=g.useState(!1),[u,l]=g.useState(!1),[c,d]=g.useState(!1),[f,m]=g.useState(null),b=g.useRef(null),y=g.useRef(null),E=g.useRef(0),T=g.useRef(null),v=g.useMemo(()=>l$({eventName:e.eventName,runId:e.runId,payload:e.payload}),[e.eventName,e.runId,e.payload]),{run:x,action:I,outcome:D,duration:S}=v,A=c$(e.payload?.usage),k=u$({entityKind:e.entityKind,entityId:e.entityId,payload:e.payload}),P=e.actor&&e.actor.length>0?e.actor:"unavailable",w=g.useMemo(()=>o$(e.payload),[e.payload]),U=!!(w&&(u||c)),j=g.useCallback(()=>{T.current!==null&&(clearTimeout(T.current),T.current=null)},[]),K=g.useCallback(()=>{d(!1),m(null)},[]),X=g.useCallback((Y,N)=>{if(!w)return;E.current=performance.now()+400,d(!0),l(!1),j();const H=Number.isFinite(Y)&&Y>0?Y:8,ie=Number.isFinite(N)&&N>0?N:8;m({x:H,y:ie}),window.dispatchEvent(new CustomEvent(oc,{detail:{id:e.id}}))},[e.id,w,j]),G=g.useCallback((Y,N,H)=>{const ie=Y.getBoundingClientRect(),R=N&&N>0?N:ie.left,ve=H&&H>0?H+4:ie.bottom+6;X(R,ve)},[X]);g.useEffect(()=>{const Y=N=>{N.detail?.id!==e.id&&K()};return window.addEventListener(oc,Y),()=>window.removeEventListener(oc,Y)},[e.id,K]),g.useEffect(()=>{if(!c)return;const Y=H=>{performance.now()<E.current||b.current?.contains(H.target)||y.current?.contains(H.target)||K()},N=H=>{H.key==="Escape"&&(K(),H.stopPropagation())};return document.addEventListener("pointerdown",Y,!0),document.addEventListener("keydown",N,!0),()=>{document.removeEventListener("pointerdown",Y,!0),document.removeEventListener("keydown",N,!0)}},[c,K]),g.useEffect(()=>()=>{j()},[j]);const oe=g.useCallback(()=>o(Y=>!Y),[]),Q=g.useCallback(Y=>{if(Y.key==="Escape"){if(c){K(),Y.stopPropagation();return}o(!1),Y.stopPropagation()}},[c,K]),ae=w&&U?p.jsxs("div",{ref:b,role:"tooltip","data-testid":"system-event-payload-tooltip","data-pinned":c?"true":"false",className:c?"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:c&&f?{top:f.y,left:f.x}:void 0,onMouseEnter:()=>{j(),l(!0)},onMouseLeave:()=>{c||(j(),T.current=setTimeout(()=>l(!1),150))},onPointerDown:Y=>{c&&Y.stopPropagation()},children:[p.jsxs("div",{className:"flex items-center justify-between gap-2 mb-1.5",children:[p.jsxs("div",{className:"text-[10px] text-[#8b949e] font-sans",children:["payload",c?" · select to copy · Esc / outside click to close":" · click event name or Pin to lock for copy"]}),p.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[!c&&p.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:Y=>{Y.stopPropagation(),Y.preventDefault();const N=y.current;N?G(N):X(Y.clientX,Y.clientY)},children:"Pin"}),c&&p.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:Y=>{Y.stopPropagation(),K()},children:"close"})]})]}),p.jsx("pre",{className:"font-mono text-[10px] overflow-x-auto max-h-80 overflow-y-auto whitespace-pre-wrap break-all m-0 leading-relaxed select-text","data-testid":"system-event-payload-json",children:w.tokens.map(Y=>Y.kind==="ws"?p.jsx("span",{children:Y.text},Y.id):p.jsx("span",{className:s$[Y.kind],children:Y.text},Y.id))})]}):null;return p.jsxs(p.Fragment,{children:[p.jsxs("tr",{className:"group hover:bg-base-200/60 transition-colors",style:{height:n?void 0:28},children:[p.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 font-mono text-spur-text-muted whitespace-nowrap align-middle",children:r$(e.occurredAt)}),p.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 relative align-middle min-w-0",children:p.jsxs("div",{className:"flex flex-col gap-0.5 min-w-0",children:[p.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[p.jsx("button",{type:"button","aria-expanded":s,"aria-controls":`detail-${e.id}`,"aria-label":`${s?"Collapse":"Expand"} detail for ${e.eventName}`,onClick:oe,onKeyDown:Q,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:s?"▾":"▸"}),p.jsxs("div",{className:"relative min-w-0 max-w-full",children:[p.jsx("button",{ref:y,type:"button",className:`font-mono font-semibold truncate block max-w-full text-left cursor-pointer bg-transparent border-0 p-0 ${i}`,"data-testid":"system-event-name","aria-label":`Payload for ${e.eventName}. Hover to preview; click to pin for select and copy.`,onMouseEnter:()=>{j(),l(!0)},onMouseLeave:()=>{j(),T.current=setTimeout(()=>{c||l(!1)},200)},onClick:Y=>{Y.preventDefault(),Y.stopPropagation(),w&&(c||G(Y.currentTarget,Y.clientX,Y.clientY))},onKeyDown:Y=>{if(Y.key==="Enter"||Y.key===" "){if(Y.preventDefault(),!w||c)return;G(Y.currentTarget)}},children:e.eventName}),!c&&ae]})]}),n&&p.jsxs("div",{className:"flex flex-col gap-0.5 text-[10px] text-spur-text-muted min-w-0",children:[e.actor&&p.jsxs("span",{className:"truncate",children:["by ",e.actor]}),k!=="unavailable"&&p.jsxs("span",{className:"truncate",title:k,children:["entity: ",k]}),p.jsxs("span",{className:"truncate",title:`run ${x}`,children:["run: ",x]}),I!=="unavailable"&&p.jsxs("span",{className:"truncate",title:`action ${I}`,children:["action: ",I]}),p.jsxs("span",{className:"truncate",children:["outcome: ",D,S?` · ${S}`:""]})]})]})}),!n&&p.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 text-spur-text-muted whitespace-nowrap align-middle truncate",title:P,children:P}),!n&&p.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:k,"data-testid":"system-event-entity",children:k}),!n&&p.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 font-mono align-middle",children:p.jsx("span",{className:i,children:r})}),!n&&p.jsx("td",{className:"px-3 py-1 border-b border-spur-border/40 text-spur-text-muted align-middle",children:t}),!n&&p.jsxs("td",{className:"px-3 py-1 border-b border-spur-border/40 font-mono text-[10px] text-spur-text-muted align-middle min-w-0",children:[p.jsx("div",{className:"truncate",title:x,children:x}),I!=="unavailable"&&p.jsx("div",{className:"truncate text-spur-text-muted/70",title:I,children:I})]}),!n&&p.jsxs("td",{className:"px-3 py-1 border-b border-spur-border/40 font-mono text-[10px] text-spur-text-muted align-middle whitespace-nowrap",children:[p.jsx("span",{title:D,children:D}),S&&p.jsxs("span",{className:"text-spur-text-muted/60",children:[" · ",S]})]})]}),s&&p.jsx("tr",{children:p.jsx("td",{colSpan:n?2:8,className:"px-3 py-2 border-b border-spur-border/40 bg-base-300/40",children:p.jsxs("section",{id:`detail-${e.id}`,"aria-label":`Detail for ${e.eventName}`,onKeyDown:Q,tabIndex:-1,className:"flex flex-col gap-2 text-[11px] text-spur-text max-w-full",children:[p.jsxs("div",{className:"flex flex-wrap gap-x-4 gap-y-1 font-mono text-[10px]",children:[p.jsxs("span",{children:[p.jsx("span",{className:"text-spur-text-muted",children:"run:"})," ",x]}),p.jsxs("span",{children:[p.jsx("span",{className:"text-spur-text-muted",children:"action:"})," ",I]}),p.jsxs("span",{children:[p.jsx("span",{className:"text-spur-text-muted",children:"entity:"})," ",k]}),p.jsxs("span",{children:[p.jsx("span",{className:"text-spur-text-muted",children:"sequence:"})," ",Ro(e.sequence)]}),S&&p.jsxs("span",{children:[p.jsx("span",{className:"text-spur-text-muted",children:"duration:"})," ",S]}),p.jsxs("span",{children:[p.jsx("span",{className:"text-spur-text-muted",children:"outcome:"})," ",D]}),p.jsxs("span",{children:[p.jsx("span",{className:"text-spur-text-muted",children:"usage:"})," ",A]})]}),a&&p.jsx("dl",{className:"space-y-0.5",children:a.map(Y=>p.jsxs("div",{className:"flex gap-2",children:[p.jsxs("dt",{className:"text-spur-text-muted shrink-0",children:[Y.label,":"]}),p.jsx("dd",{className:"font-mono break-all",children:Y.value})]},Y.label))}),p.jsxs("div",{className:"border-t border-spur-border/40 pt-1",children:[p.jsx("div",{className:"text-spur-text-muted text-[10px] mb-0.5",children:"payload (redacted):"}),p.jsx("pre",{className:"font-mono text-[10px] text-spur-text-muted overflow-x-auto whitespace-pre-wrap break-all",children:JSON.stringify(e.payload,null,2)})]}),p.jsx("button",{type:"button",onClick:()=>o(!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)"})]})})}),c&&ae&&typeof document<"u"?Pa.createPortal(ae,document.body):null]})}function xy({label:e,value:t,onChange:n,options:r}){return p.jsxs("fieldset",{"aria-label":e,className:"inline-flex rounded border border-spur-border/40 overflow-hidden text-[11px] border-0 p-0 m-0",children:[p.jsx("legend",{className:"sr-only",children:e}),r.map(a=>{const i=a.value===t;return p.jsxs("label",{className:`px-2 py-0.5 font-mono cursor-pointer focus-within:ring-2 focus-within:ring-spur-text/40 transition-colors ${i?"bg-spur-text/15 text-spur-text":"text-spur-text-muted hover:bg-base-200/60"}`,children:[p.jsx("input",{type:"radio",name:e,value:a.value,checked:i,onChange:()=>n(a.value),className:"sr-only"}),a.label]},a.value)})]})}const pA=at(),E$=`${pA}/jobs/stats`,Ay=`${pA}/events/history`,_y=50;function y$(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 fA(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 au(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 mA(e){switch(e){case"completed":case"executed":return"success";case"retrying":return"warning";case"failed":return"error";default:return"neutral"}}function T$(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 S$(e){const t=[],n=new Map;for(const r of e){const i=r.eventName.startsWith("queue.job.")?au(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 x$(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 A$(){const[e,t]=g.useState(null),[n,r]=g.useState(null);if(g.useEffect(()=>{const i=new AbortController;return(async()=>{try{const[s,o,u]=await Promise.all([et(new Request(E$,{signal:i.signal})),et(new Request(`${Ay}?prefix=queue&limit=${_y}`,{signal:i.signal})),et(new Request(`${Ay}?prefix=scheduler&limit=${_y}`,{signal:i.signal}))]);if(!s.ok)throw new Error(`job stats fetch failed: ${s.status}`);if(!o.ok)throw new Error(`queue history fetch failed: ${o.status}`);if(!u.ok)throw new Error(`scheduler history fetch failed: ${u.status}`);const l=y$(await s.json()),c=Qa(await o.json()),d=Qa(await u.json());if(!l)throw new Error("job stats response failed schema validation");if(!c)throw new Error("queue history response failed schema validation");if(!d)throw new Error("scheduler history response failed schema validation");const f=T$(c.events,d.events);t({stats:l.stats,events:f})}catch(s){if(i.signal.aborted)return;r(s instanceof Error?s.message:String(s))}})(),()=>i.abort()},[]),n)return p.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load jobs: ",n]});if(e===null)return p.jsxs("div",{className:"flex items-center justify-center h-32 text-spur-text-muted text-sm",children:[p.jsx(Ir,{size:"sm"})," Loading jobs…"]});const a=[["Pending",e.stats.pending,"text-spur-text"],["Processing",e.stats.processing,"text-info"],["Completed",e.stats.completed,"text-success"],["Failed",e.stats.failed,"text-error"]];return p.jsxs("div",{className:"flex flex-col h-full overflow-hidden","data-jobs-tab":!0,children:[p.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-2 p-3 border-b border-spur-border bg-base-200 shrink-0",children:a.map(([i,s,o])=>p.jsx(pi,{variant:"compact",className:"bg-base-100 border border-spur-border",children:p.jsxs(fi,{className:"p-3 gap-1",children:[p.jsx("span",{className:"text-[10px] uppercase text-spur-text-muted font-semibold",children:i}),p.jsx("span",{className:`text-xl font-semibold tabular-nums ${o}`,children:s})]})},i))}),p.jsxs("div",{className:"px-4 py-2 border-b border-spur-border bg-base-200 shrink-0",children:[p.jsx("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:"Recent Job Events"}),p.jsxs("span",{className:"ml-2 text-xs text-spur-text-muted",children:[e.events.length," event(s)"]})]}),e.events.length===0?p.jsx("div",{className:"p-4 text-sm text-spur-text-muted italic","data-jobs-empty":!0,children:"No job events yet - the queue has not processed any jobs."}):p.jsx("ul",{className:"flex-1 overflow-y-auto p-2 space-y-2",children:S$(e.events).map(i=>i.kind==="thread"?p.jsx(v$,{item:i},`thread-${i.jobId}`):p.jsx(_$,{row:i.row},i.row.id))})]})}function _$({row:e}){const t=g.useMemo(()=>au(e.eventName,e.payload),[e.eventName,e.payload]),n=fA(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?Wr(t.durationMs):null;return p.jsx("li",{children:p.jsx(pi,{variant:"compact",className:"bg-base-200 border border-spur-border",children:p.jsxs(fi,{className:"p-3 gap-1",children:[p.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[n!==null&&p.jsx(xt,{variant:mA(n),size:"xs",children:n}),p.jsx("span",{className:"text-xs font-mono text-spur-text font-semibold",children:a}),p.jsx(xt,{variant:"outline",size:"xs",children:i}),p.jsx("span",{className:"text-[10px] text-spur-text-muted ml-auto font-mono",children:e.occurredAt})]}),p.jsxs("div",{className:"flex items-center gap-3 flex-wrap text-[11px] text-spur-text-muted",children:[t.attempt!==void 0&&p.jsxs("span",{children:["attempt ",p.jsx("span",{className:"font-mono text-spur-text",children:t.attempt})]}),p.jsxs("span",{children:["duration ",p.jsx("span",{className:"font-mono text-spur-text",children:s??"unavailable"})]}),t.error!==void 0&&p.jsx("span",{className:"text-error truncate max-w-md",title:t.error,children:t.error}),!r&&t.type===void 0&&p.jsx("span",{className:"italic",children:"unknown job type"})]}),e.payload!==null&&Object.keys(e.payload).length>0&&p.jsxs("details",{className:"mt-1",children:[p.jsx("summary",{className:"text-[10px] text-spur-text-muted cursor-pointer select-none",children:"raw payload"}),p.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 v$({item:e}){const t=e.events[0],n=g.useMemo(()=>t?au(t.eventName,t.payload):null,[t]);if(!t||!n)return null;const r=fA(t.eventName),a=x$(e.events),i=n.durationMs!==void 0?Wr(n.durationMs):a!==null?Wr(a):null;return p.jsx("li",{children:p.jsx(pi,{variant:"compact",className:"bg-base-200 border border-spur-border",children:p.jsxs(fi,{className:"p-3 gap-1",children:[p.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[r!==null&&p.jsx(xt,{variant:mA(r),size:"xs",children:r}),p.jsx("span",{className:"text-xs font-mono text-spur-text font-semibold",children:e.jobId}),n.type!==void 0&&p.jsx(xt,{variant:"outline",size:"xs",children:n.type}),p.jsx("span",{className:"text-[10px] text-spur-text-muted ml-auto font-mono",children:t.occurredAt})]}),p.jsxs("div",{className:"flex items-center gap-3 flex-wrap text-[11px] text-spur-text-muted",children:[n.attempt!==void 0&&p.jsxs("span",{children:["attempt ",p.jsx("span",{className:"font-mono text-spur-text",children:n.attempt})]}),p.jsxs("span",{children:["duration ",p.jsx("span",{className:"font-mono text-spur-text",children:i??"unavailable"})]}),n.error!==void 0&&p.jsx("span",{className:"text-error truncate max-w-md",title:n.error,children:n.error}),p.jsxs("span",{className:"italic",children:[e.events.length," event(s)"]})]}),e.events.length>1&&p.jsxs("details",{className:"mt-1",children:[p.jsxs("summary",{className:"text-[10px] text-spur-text-muted cursor-pointer select-none",children:["event sequence (",e.events.length,")"]}),p.jsx("ol",{className:"mt-1 space-y-1",children:e.events.map(s=>{const o=au(s.eventName,s.payload);return p.jsxs("li",{className:"text-[10px] text-spur-text-muted flex items-center gap-2",children:[p.jsx("span",{className:"font-mono",children:s.occurredAt}),p.jsx("span",{children:s.eventName}),o.attempt!==void 0&&p.jsxs("span",{children:["attempt ",o.attempt]})]},s.id)})})]}),t.payload!==null&&Object.keys(t.payload).length>0&&p.jsxs("details",{className:"mt-1",children:[p.jsx("summary",{className:"text-[10px] text-spur-text-muted cursor-pointer select-none",children:"raw payload"}),p.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 In(e){return typeof e=="string"}function _r(e){return e===null||typeof e=="string"}function w$(e){return e===null||typeof e=="number"&&Number.isFinite(e)}function N$(e){return e===null||typeof e=="boolean"}function Gg(e){if(e===null||typeof e!="object")return null;const t=e;return!In(t.id)||!_r(t.workflowName)||!In(t.status)||!_r(t.mode)||!_r(t.agent)||!In(t.startedAt)||!_r(t.completedAt)?null:{id:t.id,workflowName:t.workflowName,status:t.status,mode:t.mode,agent:t.agent,startedAt:t.startedAt,completedAt:t.completedAt}}function C$(e){if(e===null||typeof e!="object")return null;const t=e;if(!Array.isArray(t.runs)||typeof t.count!="number")return null;const n=[];for(const r of t.runs){const a=Gg(r);a&&n.push(a)}return{runs:n,count:t.count,nextCursor:In(t.nextCursor)?t.nextCursor:null,hasMore:typeof t.hasMore=="boolean"?t.hasMore:!1}}function I$(e){if(e===null||typeof e!="object")return null;const t=e;return!In(t.phase)||!In(t.status)||!_r(t.startedAt)||!_r(t.completedAt)?null:{phase:t.phase,status:t.status,startedAt:t.startedAt,completedAt:t.completedAt}}function k$(e){if(e===null||typeof e!="object")return null;const t=e;return!In(t.from)||!In(t.to)||!_r(t.trigger)?null:{from:t.from,to:t.to,trigger:t.trigger}}function R$(e){if(e===null||typeof e!="object")return null;const t=e;return!In(t.id)||!In(t.node)||!In(t.kind)||!In(t.status)||!w$(t.durationMs)||!N$(t.ok)||!_r(t.startedAt)||!_r(t.completedAt)?null:{id:t.id,node:t.node,kind:t.kind,status:t.status,durationMs:t.durationMs,ok:t.ok,resultSummary:t.resultSummary,startedAt:t.startedAt,completedAt:t.completedAt}}function D$(e){if(e===null||typeof e!="object")return null;const t=e,n=Gg(t.run);if(!n||!Array.isArray(t.phases)||!Array.isArray(t.transitions)||!Array.isArray(t.actions))return null;const r=[];for(const s of t.phases){const o=I$(s);o&&r.push(o)}const a=[];for(const s of t.transitions){const o=k$(s);o&&a.push(o)}const i=[];for(const s of t.actions){const o=R$(s);o&&i.push(o)}return{run:n,phases:r,transitions:a,actions:i}}function O$(e){const t=Array.isArray(e)?e:e!==null&&typeof e=="object"&&Array.isArray(e.links)?e.links:null;if(!t)return null;const n=[];for(const r of t){if(r===null||typeof r!="object")continue;const a=r;!In(a.runId)||!In(a.kind)||!In(a.linkedAt)||n.push({runId:a.runId,kind:a.kind,linkedAt:a.linkedAt,run:Gg(a.run)})}return n}const L$=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function es(e){const t=new Date(e);if(Number.isNaN(t.getTime()))return e;const n=L$[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 F$(e){const t=e.toLowerCase();return t==="completed"||t==="done"||t==="succeeded"?"success":t==="failed"||t==="error"||t==="cancelled"?"error":t==="running"||t==="active"||t==="processing"?"info":t==="paused"||t==="pending"||t==="waiting"?"warning":"neutral"}function vy(e){const t=e.toLowerCase();return t==="completed"||t==="failed"||t==="skipped"||t==="cancelled"}function M$(e){const t=e.toLowerCase();return t==="failed"||t==="error"||t==="cancelled"}function P$(e){if(e==null)return null;if(typeof e=="string")return e.length>0?e:null;if(typeof e=="object"){const t=e,n=t.error??t.message??t.reason??t.summary;if(typeof n=="string"&&n.length>0)return n}return null}const B$=50;function U$(){const[e,t]=g.useState(null),[n,r]=g.useState(null),[a,i]=g.useState(null),[s,o]=g.useState(new Map);g.useEffect(()=>{const l=new AbortController;return(async()=>{try{const c=`${at()}/runs?limit=${B$}`,d=`${at()}/events/history?prefix=task&limit=50`,f=`${at()}/events/history?prefix=feature&limit=50`,[m,b,y]=await Promise.all([et(new Request(c,{signal:l.signal})),et(new Request(d,{signal:l.signal})),et(new Request(f,{signal:l.signal}))]);if(!m.ok)throw new Error(`runs fetch failed: ${m.status}`);const E=C$(await m.json());if(!E)throw new Error("runs response failed schema validation");const T=[];if(b.ok){const x=Qa(await b.json());x&&T.push(...x.events)}if(y.ok){const x=Qa(await y.json());x&&T.push(...x.events)}const v=new Map;try{const x=`${at()}/runs/by-wbs/`,I=await et(new Request(`${at()}/tasks?limit=200`,{signal:l.signal}));if(I.ok){const D=await I.json();if(D!==null&&typeof D=="object"){const S=D,A=S.items??S.tasks??S.data;if(Array.isArray(A))for(const k of A){if(k===null||typeof k!="object")continue;const P=k.wbs;if(typeof P=="string")try{const w=await et(new Request(`${x}${P}`,{signal:l.signal}));if(!w.ok)continue;const U=O$(await w.json());if(!U)continue;for(const j of U)v.set(j.runId,P)}catch{}}}}}catch{}t({runs:E.runs,hasMore:E.hasMore,nextCursor:E.nextCursor,wbsIndex:v,corpusEvents:T})}catch(c){if(l.signal.aborted)return;r(c instanceof Error?c.message:String(c))}})(),()=>l.abort()},[]);const u=g.useCallback(l=>{if(a===l){i(null);return}i(l),!s.get(l)&&(o(d=>{const f=new Map(d);return f.set(l,{detail:null,error:null,loading:!0}),f}),(async()=>{try{const d=await et(new Request(`${at()}/runs/${l}`));if(!d.ok){const b=(await d.json().catch(()=>null))?.error??`run detail fetch failed: ${d.status}`;o(y=>{const E=new Map(y);return E.set(l,{detail:null,error:typeof b=="string"?b:String(b),loading:!1}),E});return}const f=D$(await d.json());if(!f){o(m=>{const b=new Map(m);return b.set(l,{detail:null,error:"run detail failed schema validation",loading:!1}),b});return}o(m=>{const b=new Map(m);return b.set(l,{detail:f,error:null,loading:!1}),b})}catch(d){o(f=>{const m=new Map(f);return m.set(l,{detail:null,error:d instanceof Error?d.message:String(d),loading:!1}),m})}})())},[a,s]);return n?p.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load runs: ",n]}):e===null?p.jsxs("div",{className:"flex items-center justify-center h-32 text-spur-text-muted text-sm",children:[p.jsx(Ir,{size:"sm"})," Loading runs…"]}):p.jsxs("div",{className:"flex flex-col h-full overflow-hidden","data-tasks-tab":!0,children:[p.jsxs("div",{className:"px-4 py-2 border-b border-spur-border bg-base-200 shrink-0",children:[p.jsx("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:"Pipeline Runs"}),p.jsxs("span",{className:"ml-2 text-xs text-spur-text-muted",children:[e.runs.length," run(s)"]})]}),e.runs.length===0?p.jsx("div",{className:"p-4 text-sm text-spur-text-muted italic","data-tasks-empty":!0,children:"No pipeline runs yet."}):p.jsx("ul",{className:"flex-1 overflow-y-auto p-2 space-y-1",children:e.runs.map(l=>{const c=e.wbsIndex.get(l.id),d=a===l.id?s.get(l.id):void 0;return p.jsx(j$,{run:l,wbs:c,expanded:a===l.id,detailState:d,onToggle:u},l.id)})}),e.corpusEvents.length>0&&p.jsxs("div",{className:"border-t-2 border-dashed border-spur-border bg-base-300/50 shrink-0 max-h-64 overflow-y-auto","data-corpus-lane":!0,children:[p.jsxs("div",{className:"px-4 py-2 border-b border-spur-border sticky top-0 bg-base-300/90 backdrop-blur",children:[p.jsx("span",{className:"text-xs font-semibold text-spur-text-muted uppercase tracking-wide",children:"Corpus Activity"}),p.jsx(xt,{variant:"outline",size:"xs",className:"ml-2",children:"corpus-only"}),p.jsxs("span",{className:"ml-2 text-xs text-spur-text-muted",children:[e.corpusEvents.length," event(s)"]})]}),p.jsx("ul",{className:"p-2 space-y-1",children:e.corpusEvents.map(l=>p.jsx(z$,{evt:l},l.id))})]})]})}function j$({run:e,wbs:t,expanded:n,detailState:r,onToggle:a}){return p.jsx("li",{children:p.jsx(pi,{variant:"compact",className:"bg-base-200 border border-spur-border",children:p.jsxs(fi,{className:"p-2 gap-1",children:[p.jsxs("button",{type:"button",onClick:()=>a(e.id),className:"w-full text-left flex items-center gap-2 flex-wrap cursor-pointer","aria-expanded":n,children:[p.jsx("span",{className:"text-[10px] text-spur-text-muted",children:n?"▼":"▶"}),t!==void 0?p.jsx(xt,{variant:"info",size:"xs",children:t}):p.jsx(xt,{variant:"neutral",size:"xs",children:"unlinked"}),p.jsx("span",{className:"text-xs font-mono text-spur-text font-semibold",children:e.workflowName??"unknown"}),p.jsx(xt,{variant:F$(e.status),size:"xs",children:e.status}),e.mode&&p.jsx(xt,{variant:"outline",size:"xs",children:e.mode}),e.agent&&p.jsx("span",{className:"text-[10px] text-spur-text-muted",children:e.agent}),p.jsx("span",{className:"text-[10px] text-spur-text-muted ml-auto font-mono",children:es(e.startedAt)})]}),n&&r&&p.jsxs("div",{className:"mt-2 pl-4 border-l-2 border-spur-border",children:[r.loading&&p.jsxs("div",{className:"flex items-center gap-2 text-xs text-spur-text-muted py-2",children:[p.jsx(Ir,{size:"xs"})," Loading run detail…"]}),r.error&&p.jsxs("div",{className:"text-xs text-error py-2",role:"alert",children:["Failed to load run detail: ",r.error]}),r.detail&&p.jsx($$,{detail:r.detail})]})]})})})}function $$({detail:e}){const t=g.useMemo(()=>{for(let n=e.phases.length-1;n>=0;n--){const r=e.phases[n];if(r&&!vy(r.status))return n}return-1},[e.phases]);return p.jsxs("div",{className:"space-y-3",children:[e.phases.length>0&&p.jsxs("div",{children:[p.jsx("div",{className:"text-[10px] uppercase text-spur-text-muted font-semibold mb-1",children:"Phases"}),p.jsx("ol",{className:"space-y-1",children:e.phases.map((n,r)=>{const a=r===t,i=M$(n.status),s=vy(n.status);return p.jsxs("li",{className:`text-[11px] flex items-center gap-2 ${i?"text-error":a?"text-info font-semibold":s?"text-spur-text-muted":"text-spur-text"}`,children:[p.jsx("span",{className:"font-mono",children:s?i?"✗":"✓":a?"●":"○"}),p.jsx("span",{children:n.phase}),p.jsx(xt,{variant:i?"error":a?"info":s?"neutral":"warning",size:"xs",children:n.status}),n.startedAt&&p.jsx("span",{className:"text-[10px] text-spur-text-muted font-mono",children:es(n.startedAt)}),n.completedAt&&n.startedAt&&p.jsxs("span",{className:"text-[10px] text-spur-text-muted",children:["→ ",es(n.completedAt)]})]},`phase:${n.phase}`)})})]}),e.transitions.length>0&&p.jsxs("div",{children:[p.jsx("div",{className:"text-[10px] uppercase text-spur-text-muted font-semibold mb-1",children:"Transitions"}),p.jsx("div",{className:"flex items-center gap-1 flex-wrap text-[11px]",children:e.transitions.map((n,r)=>p.jsxs("span",{className:"flex items-center gap-1",children:[r>0&&p.jsx("span",{className:"text-spur-text-muted",children:"→"}),p.jsxs(xt,{variant:"outline",size:"xs",children:[n.from," → ",n.to]})]},`tr:${n.from}->${n.to}`))})]}),e.actions.length>0&&p.jsxs("div",{children:[p.jsx("div",{className:"text-[10px] uppercase text-spur-text-muted font-semibold mb-1",children:"Action Log"}),p.jsx("ul",{className:"space-y-1","data-action-log":!0,children:e.actions.map(n=>{const r=Wr(n.durationMs),a=n.ok===!1?P$(n.resultSummary):null;return p.jsxs("li",{className:"text-[11px] flex items-center gap-2 flex-wrap",children:[p.jsx("span",{className:"font-mono text-spur-text",children:n.node}),p.jsx(xt,{variant:"outline",size:"xs",children:n.kind}),p.jsx(xt,{variant:n.ok===!1?"error":n.ok===!0?"success":"neutral",size:"xs",children:n.status}),r!==null&&p.jsx("span",{className:"text-spur-text-muted font-mono",children:r}),a!==null&&p.jsx("span",{className:"text-error truncate max-w-md",title:a,children:a}),n.startedAt&&p.jsx("span",{className:"text-[10px] text-spur-text-muted font-mono ml-auto",children:es(n.startedAt)})]},n.id)})})]}),e.phases.length===0&&e.actions.length===0&&e.transitions.length===0&&p.jsx("div",{className:"text-xs text-spur-text-muted italic",children:"No phase or action detail available."})]})}function z$({evt:e}){const t=g.useMemo(()=>{if(!e.payload)return null;const n=e.payload.entity;if(n!==null&&typeof n=="object"){const a=n.id;if(typeof a=="string")return a}const r=e.payload.id??e.payload.wbs;return typeof r=="string"?r:null},[e.payload]);return p.jsxs("li",{className:"text-[11px] flex items-center gap-2 flex-wrap text-spur-text-muted",children:[p.jsx("span",{className:"font-mono text-[10px]",children:es(e.occurredAt)}),p.jsx(xt,{variant:"outline",size:"xs",children:e.eventName}),t!==null&&p.jsx("span",{className:"font-mono",children:t}),e.actor&&p.jsx("span",{className:"text-[10px]",children:e.actor})]})}const uc=new Set(["read","write","bash","grep","glob"]),H$=3e3,hA=200,wy=(e=hA,t)=>{const n=`${at()}/observability/tool-use?limit=${e}`;return t?`${n}&before=${encodeURIComponent(t)}`:n},G$=()=>`${at()}/observability/tool-use/stream`;function W$(){const[e,t]=g.useState(null),[n,r]=g.useState(null),[a,i]=g.useState(null),[s,o]=g.useState(!0),[u,l]=g.useState("off"),[c,d]=g.useState(!1),f=g.useRef(0),m=g.useCallback((x,I)=>{const D=(x.events??[]).map((S,A)=>({...S,seq:typeof S.seq=="number"?S.seq:A,_key:`${I==="append"?x.nextBefore??"p":"head"}:${S.ts}:${S.session}:${S.type}:${S.file??""}:${S.summary??""}:${S.seq??A}`}));t(S=>{if(I==="replace"||!S)return D;const A=new Set(S.map(go)),k=D.filter(P=>!A.has(go(P)));return[...S,...k]}),r({path:x.path??"",truncated:x.truncated??!1,sparseToolActivity:x.sparseToolActivity??(D.length===0||!D.some(S=>uc.has(S.type))),nextBefore:x.nextBefore??null})},[]),b=g.useCallback(async x=>{try{const I=await et(new Request(wy(),{signal:x}));if(!I.ok){let S=`tool-use fetch failed: ${I.status}`;try{const k=(await I.json()).error;k&&(S=k)}catch{}throw new Error(S)}const D=await I.json();m(D,"replace"),i(null)}catch(I){if(x.aborted)return;i(I instanceof Error?I.message:String(I))}},[m]);g.useEffect(()=>{const x=new AbortController;return b(x.signal),()=>x.abort()},[b]),g.useEffect(()=>{if(!s){l("off");return}if(typeof EventSource>"u"){l("polling");const I=new AbortController,D=setInterval(()=>{b(I.signal)},H$);return()=>{I.abort(),clearInterval(D)}}l("connecting");const x=new EventSource(G$());return x.onopen=()=>l("live"),x.onerror=()=>l("errored"),x.onmessage=I=>{try{const S=JSON.parse(I.data);if(S.type==="connected"){l("live");return}if(S.type!=="tool-use"||!S.event)return;const A=S.event;f.current-=1;const k={...A,seq:f.current,_key:`live:${f.current}:${A.ts}:${A.session}:${A.type}:${A.file??""}:${A.summary??""}`};t(P=>{const w=P??[];return w[0]&&go(w[0])===go(k)?w:[k,...w]}),r(P=>P&&{...P,sparseToolActivity:uc.has(k.type)?!1:P.sparseToolActivity})}catch{}},()=>{x.close(),l("off")}},[s,b]);const y=g.useCallback(async()=>{if(!(!n?.nextBefore||c)){d(!0);try{const x=await et(new Request(wy(hA,n.nextBefore)));if(!x.ok)throw new Error(`load more failed: ${x.status}`);const I=await x.json();m(I,"append"),r(D=>D&&{...D,nextBefore:I.nextBefore??null,truncated:I.truncated??!1})}catch(x){i(x instanceof Error?x.message:String(x))}finally{d(!1)}}},[n?.nextBefore,c,m]);if(a&&!e)return p.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load tool use: ",a]});if(e===null)return p.jsxs("div",{className:"flex items-center justify-center h-32 text-spur-text-muted text-sm",children:[p.jsx(Ir,{size:"sm"})," Loading tool use…"]});const E=e.some(x=>x.agent),T=e.some(x=>x.model),v=n?.sparseToolActivity??(e.length===0||!e.some(x=>uc.has(x.type)));return p.jsxs("div",{className:"flex flex-col h-full overflow-hidden","data-tool-using-tab":!0,children:[p.jsxs("div",{className:"px-4 py-2 border-b border-spur-border bg-base-200 shrink-0 flex items-center gap-2 flex-wrap",children:[p.jsx("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:"Tool Using"}),p.jsxs("span",{className:"text-xs text-spur-text-muted","data-event-count":!0,children:[e.length," event(s)",n?.nextBefore?" · more available":""]}),p.jsxs("label",{htmlFor:"live-toggle",className:"flex items-center gap-1.5 text-xs text-spur-text ml-2 cursor-pointer",children:[p.jsx(Cg,{id:"live-toggle",size:"xs",checked:s,onChange:x=>o(x.target.checked),"data-live-toggle":!0,"aria-label":"Live refresh"}),"Live"]}),p.jsx("span",{className:"text-[10px] text-spur-text-muted font-mono","data-sse-status":!0,children:Y$(u)}),p.jsx("span",{className:"text-[10px] text-spur-text-muted ml-auto font-mono truncate max-w-[40%]",title:n?.path??"","data-ledger-path":!0,children:n?.path?gA(n.path):""})]}),a?p.jsxs("div",{className:"px-4 py-1 text-xs text-warning",role:"status",children:["Refresh warning: ",a]}):null,e.length===0?p.jsx("div",{className:"p-4 text-sm text-spur-text-muted italic","data-empty-state":!0,children:"No tool-use events yet. File tools are logged when agent hooks write token-ledger.jsonl (requires SessionStart + supported agent PostToolUse for Read/Write/Edit)."}):p.jsxs(p.Fragment,{children:[v?p.jsxs("div",{className:"px-4 py-2 text-xs text-spur-text-muted bg-base-200/60 border-b border-spur-border",role:"status","data-sparse-banner":!0,children:["Limited recent tool activity in this window (session markers only, or no read/write rows). Hooks record tools only for supported agents after SessionStart. Ledger: ",n?.path||"—"]}):null,p.jsx("div",{className:"flex-1 overflow-auto",children:p.jsxs("table",{className:"table table-xs table-pin-rows w-full",children:[p.jsx("thead",{children:p.jsxs("tr",{className:"text-[10px] uppercase text-spur-text-muted",children:[p.jsx("th",{children:"Time"}),p.jsx("th",{children:"Type"}),p.jsx("th",{title:"File path or Bash/Grep/Glob summary",children:"Target"}),p.jsx("th",{children:"Action"}),p.jsx("th",{className:"text-right",children:"Tokens"}),p.jsx("th",{children:"Session"}),E?p.jsx("th",{children:"Agent"}):null,T?p.jsx("th",{children:"Model"}):null]})}),p.jsx("tbody",{children:e.map(x=>p.jsxs("tr",{className:"border-spur-border","data-event-seq":x.seq,children:[p.jsx("td",{className:"font-mono text-[10px] text-spur-text-muted whitespace-nowrap",children:K$(x.ts)}),p.jsx("td",{children:p.jsx(Z$,{type:x.type})}),p.jsx("td",{className:"font-mono text-[10px] text-spur-text max-w-[16rem] truncate",title:q$(x),children:V$(x)}),p.jsx("td",{className:"text-xs text-spur-text-muted",children:x.action??"—"}),p.jsx("td",{className:"font-mono text-xs whitespace-nowrap text-right",children:X$(x)}),p.jsx("td",{className:"font-mono text-[10px] text-spur-text-muted max-w-[8rem] truncate",title:x.sessionId??x.session,children:x.session}),E?p.jsx("td",{className:"text-[10px] text-spur-text-muted max-w-[6rem] truncate",children:x.agent??"—"}):null,T?p.jsx("td",{className:"text-[10px] text-spur-text-muted max-w-[8rem] truncate",children:x.model??"—"}):null]},x._key??`${x.seq}-${x.ts}`))})]})}),n?.nextBefore?p.jsx("div",{className:"px-4 py-2 border-t border-spur-border shrink-0 flex justify-center",children:p.jsx(He,{variant:"ghost",size:"xs",onClick:()=>{y()},disabled:c,"data-load-more":!0,children:c?"Loading…":"Load older events"})}):null]})]})}function go(e){return[e.ts,e.session,e.type,e.file??"",e.summary??"",e.action??"",String(e.tokens??"")].join("|")}function V$(e){return e.summary?e.summary:e.file?gA(e.file):"—"}function q$(e){return e.summary&&e.file?`${e.summary}
175
+ ${e.file}`:e.summary??e.file??""}function Y$(e){switch(e){case"live":return"sse:live";case"connecting":return"sse:connecting";case"errored":return"sse:retry";case"polling":return"poll";default:return""}}function Z$({type:e}){const t=e==="session_start"?"secondary":e==="session_end"?"ghost":e==="write"?"warning":e==="read"?"primary":e==="bash"?"accent":e==="grep"||e==="glob"?"info":"ghost";return p.jsx(xt,{variant:t,size:"xs",children:e})}function K$(e){try{const t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString(void 0,{month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}catch{return e}}function X$(e){return e.type==="session_end"&&e.totals?`r${e.totals.reads}/w${e.totals.writes}/t${Ny(e.totals.tokens)}`:e.tokens!=null&&Number.isFinite(e.tokens)?Ny(e.tokens):"—"}function Ny(e){return new Intl.NumberFormat(void 0,{maximumFractionDigits:0}).format(e)}function gA(e){const t=e.split(/[/\\]/);return t[t.length-1]||e}const lc=[{id:"system-events",label:"System Events",component:f$},{id:"jobs",label:"Jobs",component:A$},{id:"tasks",label:"Tasks",component:U$},{id:"tool-using",label:"Tool Using",component:W$}];function Q$(){const[e,t]=g.useState(lc[0]?.id??""),r=lc.find(a=>a.id===e)?.component;return p.jsxs("div",{className:"flex flex-col h-full overflow-hidden","data-observability-shell":!0,children:[p.jsx("div",{role:"tablist","aria-label":"Observability tabs",className:"flex items-center gap-1 px-2 py-1 border-b border-spur-border bg-base-200 shrink-0",children:lc.map(a=>{const i=a.id===e;return p.jsx("button",{type:"button",role:"tab","aria-selected":i,"aria-controls":`observability-tab-panel-${a.id}`,id:`observability-tab-${a.id}`,onClick:()=>t(a.id),className:`px-3 py-1 rounded text-xs font-medium transition-colors ${i?"bg-spur-accent text-white":"text-spur-text-muted hover:text-spur-text hover:bg-base-300"}`,children:a.label},a.id)})}),p.jsx("div",{role:"tabpanel",id:`observability-tab-panel-${e}`,"aria-labelledby":`observability-tab-${e}`,className:"flex-1 overflow-hidden",children:r?p.jsx(r,{}):null})]})}const J$={id:"observability",name:"Observability",icon:"🛰️",route:"observability",component:Q$,sidebarLabel:"Observability",order:0},ez=Object.freeze(Object.defineProperty({__proto__:null,module:J$},Symbol.toStringTag,{value:"Module"})),al=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function gi(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Wg(e){return"nodeType"in e}function Rn(e){var t,n;return e?gi(e)?e:Wg(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Vg(e){const{Document:t}=Rn(e);return e instanceof t}function zs(e){return gi(e)?!1:e instanceof Rn(e).HTMLElement}function bA(e){return e instanceof Rn(e).SVGElement}function bi(e){return e?gi(e)?e.document:Wg(e)?Vg(e)?e:zs(e)||bA(e)?e.ownerDocument:document:document:document}const Nr=al?g.useLayoutEffect:g.useEffect;function il(e){const t=g.useRef(e);return Nr(()=>{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 tz(){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 ys(e,t){t===void 0&&(t=[e]);const n=g.useRef(e);return Nr(()=>{n.current!==e&&(n.current=e)},t),n}function Hs(e,t){const n=g.useRef();return g.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function iu(e){const t=il(e),n=g.useRef(null),r=g.useCallback(a=>{a!==n.current&&t?.(a,n.current),n.current=a},[]);return[n,r]}function su(e){const t=g.useRef();return g.useEffect(()=>{t.current=e},[e]),t.current}let cc={};function sl(e,t){return g.useMemo(()=>{if(t)return t;const n=cc[e]==null?0:cc[e]+1;return cc[e]=n,e+"-"+n},[e,t])}function EA(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,l]of o){const c=i[u];c!=null&&(i[u]=c+e*l)}return i},{...t})}}const Ga=EA(1),ou=EA(-1);function nz(e){return"clientX"in e&&"clientY"in e}function qg(e){if(!e)return!1;const{KeyboardEvent:t}=Rn(e.target);return t&&e instanceof t}function rz(e){if(!e)return!1;const{TouchEvent:t}=Rn(e.target);return t&&e instanceof t}function uu(e){if(rz(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 nz(e)?{x:e.clientX,y:e.clientY}:null}const Ja=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[Ja.Translate.toString(e),Ja.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Cy="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function az(e){return e.matches(Cy)?e:e.querySelector(Cy)}const iz={display:"none"};function sz(e){let{id:t,value:n}=e;return We.createElement("div",{id:t,style:iz},n)}function oz(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 We.createElement("div",{id:t,style:a,role:"status","aria-live":r,"aria-atomic":!0},n)}function uz(){const[e,t]=g.useState("");return{announce:g.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const yA=g.createContext(null);function lz(e){const t=g.useContext(yA);g.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function cz(){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 dz={draggable:`
176
+ To pick up a draggable item, press the space bar.
177
+ While dragging, use the arrow keys to move the item.
178
+ Press space again to drop the item in its new position, or press escape to cancel.
179
+ `},pz={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 fz(e){let{announcements:t=pz,container:n,hiddenTextDescribedById:r,screenReaderInstructions:a=dz}=e;const{announce:i,announcement:s}=uz(),o=sl("DndLiveRegion"),[u,l]=g.useState(!1);if(g.useEffect(()=>{l(!0)},[]),lz(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 c=We.createElement(We.Fragment,null,We.createElement(sz,{id:r,value:a.draggable}),We.createElement(oz,{id:o,announcement:s}));return n?Pa.createPortal(c,n):c}var Jt;(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"})(Jt||(Jt={}));function lu(){}function Iy(e,t){return g.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function mz(){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 rr=Object.freeze({x:0,y:0});function hz(e,t){const n=uu(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 gz(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function bz(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Ez(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,l=e.width*e.height,c=s*o,d=c/(u+l-c);return Number(d.toFixed(4))}return 0}const yz=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=Ez(o,t);u>0&&a.push({id:s,data:{droppableContainer:i,value:u}})}}return a.sort(gz)};function Tz(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function TA(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:rr}function Sz(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 xz=Sz(1);function SA(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 Az(e,t,n){const r=SA(t);if(!r)return e;const{scaleX:a,scaleY:i,x:s,y:o}=r,u=e.left-s-(1-a)*parseFloat(n),l=e.top-o-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),c=a?e.width/a:e.width,d=i?e.height/i:e.height;return{width:c,height:d,top:l,right:u+c,bottom:l+d,left:u}}const _z={ignoreTransform:!1};function Gs(e,t){t===void 0&&(t=_z);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:l,transformOrigin:c}=Rn(e).getComputedStyle(e);l&&(n=Az(n,l,c))}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 ky(e){return Gs(e,{ignoreTransform:!0})}function vz(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function wz(e,t){return t===void 0&&(t=Rn(e).getComputedStyle(e)),t.position==="fixed"}function Nz(e,t){t===void 0&&(t=Rn(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 Yg(e,t){const n=[];function r(a){if(t!=null&&n.length>=t||!a)return n;if(Vg(a)&&a.scrollingElement!=null&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!zs(a)||bA(a)||n.includes(a))return n;const i=Rn(e).getComputedStyle(a);return a!==e&&Nz(a,i)&&n.push(a),wz(a,i)?n:r(a.parentNode)}return e?r(e):n}function xA(e){const[t]=Yg(e,1);return t??null}function dc(e){return!al||!e?null:gi(e)?e:Wg(e)?Vg(e)||e===bi(e).scrollingElement?window:zs(e)?e:null:null}function AA(e){return gi(e)?e.scrollX:e.scrollLeft}function _A(e){return gi(e)?e.scrollY:e.scrollTop}function td(e){return{x:AA(e),y:_A(e)}}var un;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(un||(un={}));function vA(e){return!al||!e?!1:e===document.scrollingElement}function wA(e){const t={x:0,y:0},n=vA(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 Cz={x:.2,y:.2};function Iz(e,t,n,r,a){let{top:i,left:s,right:o,bottom:u}=n;r===void 0&&(r=10),a===void 0&&(a=Cz);const{isTop:l,isBottom:c,isLeft:d,isRight:f}=wA(e),m={x:0,y:0},b={x:0,y:0},y={height:t.height*a.y,width:t.width*a.x};return!l&&i<=t.top+y.height?(m.y=un.Backward,b.y=r*Math.abs((t.top+y.height-i)/y.height)):!c&&u>=t.bottom-y.height&&(m.y=un.Forward,b.y=r*Math.abs((t.bottom-y.height-u)/y.height)),!f&&o>=t.right-y.width?(m.x=un.Forward,b.x=r*Math.abs((t.right-y.width-o)/y.width)):!d&&s<=t.left+y.width&&(m.x=un.Backward,b.x=r*Math.abs((t.left+y.width-s)/y.width)),{direction:m,speed:b}}function kz(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 NA(e){return e.reduce((t,n)=>Ga(t,td(n)),rr)}function Rz(e){return e.reduce((t,n)=>t+AA(n),0)}function Dz(e){return e.reduce((t,n)=>t+_A(n),0)}function CA(e,t){if(t===void 0&&(t=Gs),!e)return;const{top:n,left:r,bottom:a,right:i}=t(e);xA(e)&&(a<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Oz=[["x",["left","right"],Rz],["y",["top","bottom"],Dz]];class Zg{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=Yg(n),a=NA(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,s,o]of Oz)for(const u of s)Object.defineProperty(this,u,{get:()=>{const l=o(r),c=a[i]-l;return this.rect[u]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ts{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 Lz(e){const{EventTarget:t}=Rn(e);return e instanceof t?e:bi(e)}function pc(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 Yn;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Yn||(Yn={}));function Ry(e){e.preventDefault()}function Fz(e){e.stopPropagation()}var wt;(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"})(wt||(wt={}));const IA={start:[wt.Space,wt.Enter],cancel:[wt.Esc],end:[wt.Space,wt.Enter,wt.Tab]},Mz=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case wt.Right:return{...n,x:n.x+25};case wt.Left:return{...n,x:n.x-25};case wt.Down:return{...n,y:n.y+25};case wt.Up:return{...n,y:n.y-25}}};class Kg{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 ts(bi(n)),this.windowListeners=new ts(Rn(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Yn.Resize,this.handleCancel),this.windowListeners.add(Yn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Yn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&CA(r),n(rr)}handleKeyDown(t){if(qg(t)){const{active:n,context:r,options:a}=this.props,{keyboardCodes:i=IA,coordinateGetter:s=Mz,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:l}=r.current,c=l?{x:l.left,y:l.top}:rr;this.referenceCoordinates||(this.referenceCoordinates=c);const d=s(t,{active:n,context:r.current,currentCoordinates:c});if(d){const f=ou(d,c),m={x:0,y:0},{scrollableAncestors:b}=r.current;for(const y of b){const E=t.code,{isTop:T,isRight:v,isLeft:x,isBottom:I,maxScroll:D,minScroll:S}=wA(y),A=kz(y),k={x:Math.min(E===wt.Right?A.right-A.width/2:A.right,Math.max(E===wt.Right?A.left:A.left+A.width/2,d.x)),y:Math.min(E===wt.Down?A.bottom-A.height/2:A.bottom,Math.max(E===wt.Down?A.top:A.top+A.height/2,d.y))},P=E===wt.Right&&!v||E===wt.Left&&!x,w=E===wt.Down&&!I||E===wt.Up&&!T;if(P&&k.x!==d.x){const U=y.scrollLeft+f.x,j=E===wt.Right&&U<=D.x||E===wt.Left&&U>=S.x;if(j&&!f.y){y.scrollTo({left:U,behavior:o});return}j?m.x=y.scrollLeft-U:m.x=E===wt.Right?y.scrollLeft-D.x:y.scrollLeft-S.x,m.x&&y.scrollBy({left:-m.x,behavior:o});break}else if(w&&k.y!==d.y){const U=y.scrollTop+f.y,j=E===wt.Down&&U<=D.y||E===wt.Up&&U>=S.y;if(j&&!f.x){y.scrollTo({top:U,behavior:o});return}j?m.y=y.scrollTop-U:m.y=E===wt.Down?y.scrollTop-D.y:y.scrollTop-S.y,m.y&&y.scrollBy({top:-m.y,behavior:o});break}}this.handleMove(t,Ga(ou(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()}}Kg.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=IA,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 Dy(e){return!!(e&&"distance"in e)}function Oy(e){return!!(e&&"delay"in e)}class Xg{constructor(t,n,r){var a;r===void 0&&(r=Lz(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=bi(s),this.documentListeners=new ts(this.document),this.listeners=new ts(r),this.windowListeners=new ts(Rn(s)),this.initialCoordinates=(a=uu(i))!=null?a:rr,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(Yn.Resize,this.handleCancel),this.windowListeners.add(Yn.DragStart,Ry),this.windowListeners.add(Yn.VisibilityChange,this.handleCancel),this.windowListeners.add(Yn.ContextMenu,Ry),this.documentListeners.add(Yn.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Oy(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Dy(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(Yn.Click,Fz,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Yn.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=uu(t))!=null?n:rr,l=ou(a,u);if(!r&&o){if(Dy(o)){if(o.tolerance!=null&&pc(l,o.tolerance))return this.handleCancel();if(pc(l,o.distance))return this.handleStart()}if(Oy(o)&&pc(l,o.tolerance))return this.handleCancel();this.handlePending(o,l);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===wt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Pz={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Qg extends Xg{constructor(t){const{event:n}=t,r=bi(n.target);super(t,Pz,r)}}Qg.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 Bz={move:{name:"mousemove"},end:{name:"mouseup"}};var nd;(function(e){e[e.RightClick=2]="RightClick"})(nd||(nd={}));class Uz extends Xg{constructor(t){super(t,Bz,bi(t.event.target))}}Uz.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===nd.RightClick?!1:(r?.({event:n}),!0)}}];const fc={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class jz extends Xg{constructor(t){super(t,fc)}static setup(){return window.addEventListener(fc.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(fc.move.name,t)};function t(){}}}jz.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 ns;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(ns||(ns={}));var cu;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(cu||(cu={}));function $z(e){let{acceleration:t,activator:n=ns.Pointer,canScroll:r,draggingRect:a,enabled:i,interval:s=5,order:o=cu.TreeOrder,pointerCoordinates:u,scrollableAncestors:l,scrollableAncestorRects:c,delta:d,threshold:f}=e;const m=Hz({delta:d,disabled:!i}),[b,y]=tz(),E=g.useRef({x:0,y:0}),T=g.useRef({x:0,y:0}),v=g.useMemo(()=>{switch(n){case ns.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case ns.DraggableRect:return a}},[n,a,u]),x=g.useRef(null),I=g.useCallback(()=>{const S=x.current;if(!S)return;const A=E.current.x*T.current.x,k=E.current.y*T.current.y;S.scrollBy(A,k)},[]),D=g.useMemo(()=>o===cu.TreeOrder?[...l].reverse():l,[o,l]);g.useEffect(()=>{if(!i||!l.length||!v){y();return}for(const S of D){if(r?.(S)===!1)continue;const A=l.indexOf(S),k=c[A];if(!k)continue;const{direction:P,speed:w}=Iz(S,k,v,t,f);for(const U of["x","y"])m[U][P[U]]||(w[U]=0,P[U]=0);if(w.x>0||w.y>0){y(),x.current=S,b(I,s),E.current=w,T.current=P;return}}E.current={x:0,y:0},T.current={x:0,y:0},y()},[t,I,r,y,i,s,JSON.stringify(v),JSON.stringify(m),b,l,D,c,JSON.stringify(f)])}const zz={x:{[un.Backward]:!1,[un.Forward]:!1},y:{[un.Backward]:!1,[un.Forward]:!1}};function Hz(e){let{delta:t,disabled:n}=e;const r=su(t);return Hs(a=>{if(n||!r||!a)return zz;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[un.Backward]:a.x[un.Backward]||i.x===-1,[un.Forward]:a.x[un.Forward]||i.x===1},y:{[un.Backward]:a.y[un.Backward]||i.y===-1,[un.Forward]:a.y[un.Forward]||i.y===1}}},[n,t,r])}function Gz(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Hs(a=>{var i;return t==null?null:(i=r??a)!=null?i:null},[r,t])}function Wz(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 Ts;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Ts||(Ts={}));var rd;(function(e){e.Optimized="optimized"})(rd||(rd={}));const Ly=new Map;function Vz(e,t){let{dragging:n,dependencies:r,config:a}=t;const[i,s]=g.useState(null),{frequency:o,measure:u,strategy:l}=a,c=g.useRef(e),d=E(),f=ys(d),m=g.useCallback(function(T){T===void 0&&(T=[]),!f.current&&s(v=>v===null?T:v.concat(T.filter(x=>!v.includes(x))))},[f]),b=g.useRef(null),y=Hs(T=>{if(d&&!n)return Ly;if(!T||T===Ly||c.current!==e||i!=null){const v=new Map;for(let x of e){if(!x)continue;if(i&&i.length>0&&!i.includes(x.id)&&x.rect.current){v.set(x.id,x.rect.current);continue}const I=x.node.current,D=I?new Zg(u(I),I):null;x.rect.current=D,D&&v.set(x.id,D)}return v}return T},[e,i,n,d,u]);return g.useEffect(()=>{c.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:y,measureDroppableContainers:m,measuringScheduled:i!=null};function E(){switch(l){case Ts.Always:return!1;case Ts.BeforeDragging:return n;default:return!n}}}function Jg(e,t){return Hs(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function qz(e,t){return Jg(e,t)}function Yz(e){let{callback:t,disabled:n}=e;const r=il(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 ol(e){let{callback:t,disabled:n}=e;const r=il(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 Zz(e){return new Zg(Gs(e),e)}function Fy(e,t,n){t===void 0&&(t=Zz);const[r,a]=g.useState(null);function i(){a(u=>{if(!e)return null;if(e.isConnected===!1){var l;return(l=u??n)!=null?l:null}const c=t(e);return JSON.stringify(u)===JSON.stringify(c)?u:c})}const s=Yz({callback(u){if(e)for(const l of u){const{type:c,target:d}=l;if(c==="childList"&&d instanceof HTMLElement&&d.contains(e)){i();break}}}}),o=ol({callback:i});return Nr(()=>{i(),e?(o?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(o?.disconnect(),s?.disconnect())},[e]),r}function Kz(e){const t=Jg(e);return TA(e,t)}const My=[];function Xz(e){const t=g.useRef(e),n=Hs(r=>e?r&&r!==My&&e&&t.current&&e.parentNode===t.current.parentNode?r:Yg(e):My,[e]);return g.useEffect(()=>{t.current=e},[e]),n}function Qz(e){const[t,n]=g.useState(null),r=g.useRef(e),a=g.useCallback(i=>{const s=dc(i.target);s&&n(o=>o?(o.set(s,td(s)),new Map(o)):null)},[]);return g.useEffect(()=>{const i=r.current;if(e!==i){s(i);const o=e.map(u=>{const l=dc(u);return l?(l.addEventListener("scroll",a,{passive:!0}),[l,td(l)]):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 l=dc(u);l?.removeEventListener("scroll",a)})}},[a,e]),g.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,s)=>Ga(i,s),rr):NA(e):rr,[e,t])}function Py(e,t){t===void 0&&(t=[]);const n=g.useRef(null);return g.useEffect(()=>{n.current=null},t),g.useEffect(()=>{const r=e!==rr;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?ou(e,n.current):rr}function Jz(e){g.useEffect(()=>{if(!al)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 eH(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 kA(e){return g.useMemo(()=>e?vz(e):null,[e])}const By=[];function tH(e,t){t===void 0&&(t=Gs);const[n]=e,r=kA(n?Rn(n):null),[a,i]=g.useState(By);function s(){i(()=>e.length?e.map(u=>vA(u)?r:new Zg(t(u),u)):By)}const o=ol({callback:s});return Nr(()=>{o?.disconnect(),s(),e.forEach(u=>o?.observe(u))},[e]),a}function RA(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return zs(t)?t:e}function nH(e){let{measure:t}=e;const[n,r]=g.useState(null),a=g.useCallback(l=>{for(const{target:c}of l)if(zs(c)){r(d=>{const f=t(c);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),i=ol({callback:a}),s=g.useCallback(l=>{const c=RA(l);i?.disconnect(),c&&i?.observe(c),r(c?t(c):null)},[t,i]),[o,u]=iu(s);return g.useMemo(()=>({nodeRef:o,rect:n,setRef:u}),[n,o,u])}const rH=[{sensor:Qg,options:{}},{sensor:Kg,options:{}}],aH={current:{}},Do={draggable:{measure:ky},droppable:{measure:ky,strategy:Ts.WhileDragging,frequency:rd.Optimized},dragOverlay:{measure:Gs}};class rs 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 iH={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new rs,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:lu},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Do,measureDroppableContainers:lu,windowRect:null,measuringScheduled:!1},DA={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:lu,draggableNodes:new Map,over:null,measureDroppableContainers:lu},Ws=g.createContext(DA),OA=g.createContext(iH);function sH(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new rs}}}function oH(e,t){switch(t.type){case Jt.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Jt.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 Jt.DragEnd:case Jt.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Jt.RegisterDroppable:{const{element:n}=t,{id:r}=n,a=new rs(e.droppable.containers);return a.set(r,n),{...e,droppable:{...e.droppable,containers:a}}}case Jt.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 rs(e.droppable.containers);return s.set(n,{...i,disabled:a}),{...e,droppable:{...e.droppable,containers:s}}}case Jt.UnregisterDroppable:{const{id:n,key:r}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const i=new rs(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function uH(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:a}=g.useContext(Ws),i=su(r),s=su(n?.id);return g.useEffect(()=>{if(!t&&!r&&i&&s!=null){if(!qg(i)||document.activeElement===i.target)return;const o=a.get(s);if(!o)return;const{activatorNode:u,node:l}=o;if(!u.current&&!l.current)return;requestAnimationFrame(()=>{for(const c of[u.current,l.current]){if(!c)continue;const d=az(c);if(d){d.focus();break}}})}},[r,t,a,s,i]),null}function LA(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((a,i)=>i({transform:a,...r}),n):n}function lH(e){return g.useMemo(()=>({draggable:{...Do.draggable,...e?.draggable},droppable:{...Do.droppable,...e?.droppable},dragOverlay:{...Do.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function cH(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;Nr(()=>{if(!s&&!o||!t){i.current=!1;return}if(i.current||!r)return;const l=t?.node.current;if(!l||l.isConnected===!1)return;const c=n(l),d=TA(c,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=xA(l);f&&f.scrollBy({top:d.y,left:d.x})}},[t,s,o,r,n])}const ul=g.createContext({...rr,scaleX:1,scaleY:1});var Br;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Br||(Br={}));const dH=g.memo(function(t){var n,r,a,i;let{id:s,accessibility:o,autoScroll:u=!0,children:l,sensors:c=rH,collisionDetection:d=yz,measuring:f,modifiers:m,...b}=t;const y=g.useReducer(oH,void 0,sH),[E,T]=y,[v,x]=cz(),[I,D]=g.useState(Br.Uninitialized),S=I===Br.Initialized,{draggable:{active:A,nodes:k,translate:P},droppable:{containers:w}}=E,U=A!=null?k.get(A):null,j=g.useRef({initial:null,translated:null}),K=g.useMemo(()=>{var he;return A!=null?{id:A,data:(he=U?.data)!=null?he:aH,rect:j}:null},[A,U]),X=g.useRef(null),[G,oe]=g.useState(null),[Q,ae]=g.useState(null),Y=ys(b,Object.values(b)),N=sl("DndDescribedBy",s),H=g.useMemo(()=>w.getEnabled(),[w]),ie=lH(f),{droppableRects:R,measureDroppableContainers:ve,measuringScheduled:Oe}=Vz(H,{dragging:S,dependencies:[P.x,P.y],config:ie.droppable}),Ne=Gz(k,A),je=g.useMemo(()=>Q?uu(Q):null,[Q]),be=Le(),ge=qz(Ne,ie.draggable.measure);cH({activeNode:A!=null?k.get(A):null,config:be.layoutShiftCompensation,initialRect:ge,measure:ie.draggable.measure});const pt=Fy(Ne,ie.draggable.measure,ge),ze=Fy(Ne?Ne.parentElement:null),Ee=g.useRef({activatorEvent:null,active:null,activeNode:Ne,collisionRect:null,collisions:null,droppableRects:R,draggableNodes:k,draggingNode:null,draggingNodeRect:null,droppableContainers:w,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Me=w.getNodeFor((n=Ee.current.over)==null?void 0:n.id),tt=nH({measure:ie.dragOverlay.measure}),de=(r=tt.nodeRef.current)!=null?r:Ne,ct=S?(a=tt.rect)!=null?a:pt:null,yt=!!(tt.nodeRef.current&&tt.rect),ht=Kz(yt?null:pt),$t=kA(de?Rn(de):null),Rt=Xz(S?Me??Ne:null),zt=tH(Rt),tn=LA(m,{transform:{x:P.x-ht.x,y:P.y-ht.y,scaleX:1,scaleY:1},activatorEvent:Q,active:K,activeNodeRect:pt,containerNodeRect:ze,draggingNodeRect:ct,over:Ee.current.over,overlayNodeRect:tt.rect,scrollableAncestors:Rt,scrollableAncestorRects:zt,windowRect:$t}),ut=je?Ga(je,P):null,Ae=Qz(Rt),Ze=Py(Ae),W=Py(Ae,[pt]),ne=Ga(tn,Ze),Te=ct?xz(ct,tn):null,_e=K&&Te?d({active:K,collisionRect:Te,droppableRects:R,droppableContainers:H,pointerCoordinates:ut}):null,$e=bz(_e,"id"),[Ke,At]=g.useState(null),Tt=yt?tn:Ga(tn,W),bt=Tz(Tt,(i=Ke?.rect)!=null?i:null,pt),Dt=g.useRef(null),ee=g.useCallback((he,Pe)=>{let{sensor:Ve,options:Ct}=Pe;if(X.current==null)return;const Xe=k.get(X.current);if(!Xe)return;const qe=he.nativeEvent,_t=new Ve({active:X.current,activeNode:Xe,event:qe,options:Ct,context:Ee,onAbort(It){if(!k.get(It))return;const{onDragAbort:F}=Y.current,B={id:It};F?.(B),v({type:"onDragAbort",event:B})},onPending(It,Wt,F,B){if(!k.get(It))return;const{onDragPending:te}=Y.current,ue={id:It,constraint:Wt,initialCoordinates:F,offset:B};te?.(ue),v({type:"onDragPending",event:ue})},onStart(It){const Wt=X.current;if(Wt==null)return;const F=k.get(Wt);if(!F)return;const{onDragStart:B}=Y.current,V={activatorEvent:qe,active:{id:Wt,data:F.data,rect:j}};Pa.unstable_batchedUpdates(()=>{B?.(V),D(Br.Initializing),T({type:Jt.DragStart,initialCoordinates:It,active:Wt}),v({type:"onDragStart",event:V}),oe(Dt.current),ae(qe)})},onMove(It){T({type:Jt.DragMove,coordinates:It})},onEnd:nn(Jt.DragEnd),onCancel:nn(Jt.DragCancel)});Dt.current=_t;function nn(It){return async function(){const{active:F,collisions:B,over:V,scrollAdjustedTranslate:te}=Ee.current;let ue=null;if(F&&te){const{cancelDrop:xe}=Y.current;ue={activatorEvent:qe,active:F,collisions:B,delta:te,over:V},It===Jt.DragEnd&&typeof xe=="function"&&await Promise.resolve(xe(ue))&&(It=Jt.DragCancel)}X.current=null,Pa.unstable_batchedUpdates(()=>{T({type:It}),D(Br.Uninitialized),At(null),oe(null),ae(null),Dt.current=null;const xe=It===Jt.DragEnd?"onDragEnd":"onDragCancel";if(ue){const Se=Y.current[xe];Se?.(ue),v({type:xe,event:ue})}})}}},[k]),ye=g.useCallback((he,Pe)=>(Ve,Ct)=>{const Xe=Ve.nativeEvent,qe=k.get(Ct);if(X.current!==null||!qe||Xe.dndKit||Xe.defaultPrevented)return;const _t={active:qe};he(Ve,Pe.options,_t)===!0&&(Xe.dndKit={capturedBy:Pe.sensor},X.current=Ct,ee(Ve,Pe))},[k,ee]),Fe=Wz(c,ye);Jz(c),Nr(()=>{pt&&I===Br.Initializing&&D(Br.Initialized)},[pt,I]),g.useEffect(()=>{const{onDragMove:he}=Y.current,{active:Pe,activatorEvent:Ve,collisions:Ct,over:Xe}=Ee.current;if(!Pe||!Ve)return;const qe={active:Pe,activatorEvent:Ve,collisions:Ct,delta:{x:ne.x,y:ne.y},over:Xe};Pa.unstable_batchedUpdates(()=>{he?.(qe),v({type:"onDragMove",event:qe})})},[ne.x,ne.y]),g.useEffect(()=>{const{active:he,activatorEvent:Pe,collisions:Ve,droppableContainers:Ct,scrollAdjustedTranslate:Xe}=Ee.current;if(!he||X.current==null||!Pe||!Xe)return;const{onDragOver:qe}=Y.current,_t=Ct.get($e),nn=_t&&_t.rect.current?{id:_t.id,rect:_t.rect.current,data:_t.data,disabled:_t.disabled}:null,It={active:he,activatorEvent:Pe,collisions:Ve,delta:{x:Xe.x,y:Xe.y},over:nn};Pa.unstable_batchedUpdates(()=>{At(nn),qe?.(It),v({type:"onDragOver",event:It})})},[$e]),Nr(()=>{Ee.current={activatorEvent:Q,active:K,activeNode:Ne,collisionRect:Te,collisions:_e,droppableRects:R,draggableNodes:k,draggingNode:de,draggingNodeRect:ct,droppableContainers:w,over:Ke,scrollableAncestors:Rt,scrollAdjustedTranslate:ne},j.current={initial:ct,translated:Te}},[K,Ne,_e,Te,k,de,ct,R,w,Ke,Rt,ne]),$z({...be,delta:P,draggingRect:Te,pointerCoordinates:ut,scrollableAncestors:Rt,scrollableAncestorRects:zt});const ke=g.useMemo(()=>({active:K,activeNode:Ne,activeNodeRect:pt,activatorEvent:Q,collisions:_e,containerNodeRect:ze,dragOverlay:tt,draggableNodes:k,droppableContainers:w,droppableRects:R,over:Ke,measureDroppableContainers:ve,scrollableAncestors:Rt,scrollableAncestorRects:zt,measuringConfiguration:ie,measuringScheduled:Oe,windowRect:$t}),[K,Ne,pt,Q,_e,ze,tt,k,w,R,Ke,ve,Rt,zt,ie,Oe,$t]),z=g.useMemo(()=>({activatorEvent:Q,activators:Fe,active:K,activeNodeRect:pt,ariaDescribedById:{draggable:N},dispatch:T,draggableNodes:k,over:Ke,measureDroppableContainers:ve}),[Q,Fe,K,pt,T,N,k,Ke,ve]);return We.createElement(yA.Provider,{value:x},We.createElement(Ws.Provider,{value:z},We.createElement(OA.Provider,{value:ke},We.createElement(ul.Provider,{value:bt},l)),We.createElement(uH,{disabled:o?.restoreFocus===!1})),We.createElement(fz,{...o,hiddenTextDescribedById:N}));function Le(){const he=G?.autoScrollEnabled===!1,Pe=typeof u=="object"?u.enabled===!1:u===!1,Ve=S&&!he&&!Pe;return typeof u=="object"?{...u,enabled:Ve}:{enabled:Ve}}}),pH=g.createContext(null),Uy="button",fH="Draggable";function mH(e){let{id:t,data:n,disabled:r=!1,attributes:a}=e;const i=sl(fH),{activators:s,activatorEvent:o,active:u,activeNodeRect:l,ariaDescribedById:c,draggableNodes:d,over:f}=g.useContext(Ws),{role:m=Uy,roleDescription:b="draggable",tabIndex:y=0}=a??{},E=u?.id===t,T=g.useContext(E?ul:pH),[v,x]=iu(),[I,D]=iu(),S=eH(s,t),A=ys(n);Nr(()=>(d.set(t,{id:t,key:i,node:v,activatorNode:I,data:A}),()=>{const P=d.get(t);P&&P.key===i&&d.delete(t)}),[d,t]);const k=g.useMemo(()=>({role:m,tabIndex:y,"aria-disabled":r,"aria-pressed":E&&m===Uy?!0:void 0,"aria-roledescription":b,"aria-describedby":c.draggable}),[r,m,y,E,b,c.draggable]);return{active:u,activatorEvent:o,activeNodeRect:l,attributes:k,isDragging:E,listeners:r?void 0:S,node:v,over:f,setNodeRef:x,setActivatorNodeRef:D,transform:T}}function hH(){return g.useContext(OA)}const gH="Droppable",bH={timeout:25};function EH(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:a}=e;const i=sl(gH),{active:s,dispatch:o,over:u,measureDroppableContainers:l}=g.useContext(Ws),c=g.useRef({disabled:n}),d=g.useRef(!1),f=g.useRef(null),m=g.useRef(null),{disabled:b,updateMeasurementsFor:y,timeout:E}={...bH,...a},T=ys(y??r),v=g.useCallback(()=>{if(!d.current){d.current=!0;return}m.current!=null&&clearTimeout(m.current),m.current=setTimeout(()=>{l(Array.isArray(T.current)?T.current:[T.current]),m.current=null},E)},[E]),x=ol({callback:v,disabled:b||!s}),I=g.useCallback((k,P)=>{x&&(P&&(x.unobserve(P),d.current=!1),k&&x.observe(k))},[x]),[D,S]=iu(I),A=ys(t);return g.useEffect(()=>{!x||!D.current||(x.disconnect(),d.current=!1,x.observe(D.current))},[D,x]),g.useEffect(()=>(o({type:Jt.RegisterDroppable,element:{id:r,key:i,disabled:n,node:D,rect:f,data:A}}),()=>o({type:Jt.UnregisterDroppable,key:i,id:r})),[r]),g.useEffect(()=>{n!==c.current.disabled&&(o({type:Jt.SetDroppableDisabled,id:r,key:i,disabled:n}),c.current.disabled=n)},[r,i,n,o]),{active:s,rect:f,isOver:u?.id===r,node:D,over:u,setNodeRef:S}}function yH(e){let{animation:t,children:n}=e;const[r,a]=g.useState(null),[i,s]=g.useState(null),o=su(n);return!n&&!r&&o&&a(o),Nr(()=>{if(!i)return;const u=r?.key,l=r?.props.id;if(u==null||l==null){a(null);return}Promise.resolve(t(l,i)).then(()=>{a(null)})},[t,r,i]),We.createElement(We.Fragment,null,n,r?g.cloneElement(r,{ref:s}):null)}const TH={x:0,y:0,scaleX:1,scaleY:1};function SH(e){let{children:t}=e;return We.createElement(Ws.Provider,{value:DA},We.createElement(ul.Provider,{value:TH},t))}const xH={position:"fixed",touchAction:"none"},AH=e=>qg(e)?"transform 250ms ease":void 0,_H=g.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:a,children:i,className:s,rect:o,style:u,transform:l,transition:c=AH}=e;if(!o)return null;const d=a?l:{...l,scaleX:1,scaleY:1},f={...xH,width:o.width,height:o.height,top:o.top,left:o.left,transform:Ja.Transform.toString(d),transformOrigin:a&&r?hz(r,o):void 0,transition:typeof c=="function"?c(r):c,...u};return We.createElement(n,{className:s,style:f,ref:t},i)}),vH=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,l]of Object.entries(a))n.node.style.setProperty(u,l);s!=null&&s.active&&n.node.classList.remove(s.active)}},wH=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Ja.Transform.toString(t)},{transform:Ja.Transform.toString(n)}]},NH={duration:250,easing:"ease",keyframes:wH,sideEffects:vH({styles:{active:{opacity:"0"}}})};function CH(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:a}=e;return il((i,s)=>{if(t===null)return;const o=n.get(i);if(!o)return;const u=o.node.current;if(!u)return;const l=RA(s);if(!l)return;const{transform:c}=Rn(s).getComputedStyle(s),d=SA(c);if(!d)return;const f=typeof t=="function"?t:IH(t);return CA(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(l)},droppableContainers:r,measuringConfiguration:a,transform:d})})}function IH(e){const{duration:t,easing:n,sideEffects:r,keyframes:a}={...NH,...e};return i=>{let{active:s,dragOverlay:o,transform:u,...l}=i;if(!t)return;const c={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-c.x,y:u.y-c.y,...d},m=a({...l,active:s,dragOverlay:o,transform:{initial:u,final:f}}),[b]=m,y=m[m.length-1];if(JSON.stringify(b)===JSON.stringify(y))return;const E=r?.({active:s,dragOverlay:o,...l}),T=o.node.animate(m,{duration:t,easing:n,fill:"forwards"});return new Promise(v=>{T.onfinish=()=>{E?.(),v()}})}}let jy=0;function kH(e){return g.useMemo(()=>{if(e!=null)return jy++,jy},[e])}const RH=We.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:a,transition:i,modifiers:s,wrapperElement:o="div",className:u,zIndex:l=999}=e;const{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:m,draggableNodes:b,droppableContainers:y,dragOverlay:E,over:T,measuringConfiguration:v,scrollableAncestors:x,scrollableAncestorRects:I,windowRect:D}=hH(),S=g.useContext(ul),A=kH(d?.id),k=LA(s,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:m,draggingNodeRect:E.rect,over:T,overlayNodeRect:E.rect,scrollableAncestors:x,scrollableAncestorRects:I,transform:S,windowRect:D}),P=Jg(f),w=CH({config:r,draggableNodes:b,droppableContainers:y,measuringConfiguration:v}),U=P?E.setRef:void 0;return We.createElement(SH,null,We.createElement(yH,{animation:w},d&&A?We.createElement(_H,{key:A,id:d.id,ref:U,as:o,activatorEvent:c,adjustScale:t,className:u,transition:i,rect:P,style:{zIndex:l,...a},transform:k},n):null))}),DH=6e4;function OH(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 FA({task:e,onClick:t}){const{attributes:n,listeners:r,setNodeRef:a,transform:i,isDragging:s}=mH({id:e.wbs,data:{task:e}}),[o,u]=g.useState(Date.now());g.useEffect(()=>{const c=setInterval(()=>u(Date.now()),DH);return()=>clearInterval(c)},[]);const l=i?{transform:Ja.Transform.toString(i),zIndex:s?50:void 0}:void 0;return p.jsx(pi,{variant:"compact",asChild:!0,className:`bg-base-200 shadow-sm cursor-pointer hover:shadow-md transition-shadow border border-spur-border w-full text-left ${s?"opacity-30":""}`,children:p.jsx("button",{ref:a,type:"button",style:l,onClick:()=>t(e.wbs),...r,...n,"aria-roledescription":"draggable card",children:p.jsxs(fi,{className:"p-3 gap-1",children:[p.jsxs("div",{className:"flex items-center justify-between gap-2",children:[p.jsx("span",{className:"text-xs font-mono text-spur-text-muted",children:e.wbs}),e.priority&&p.jsx(xt,{variant:"outline",size:"xs",children:e.priority})]}),p.jsx("p",{className:"text-sm font-medium text-spur-text leading-snug",children:e.name}),p.jsxs("div",{className:"flex gap-1 flex-wrap items-center",children:[e.type&&e.type!=="task"&&p.jsx(xt,{variant:"outline",size:"xs",children:e.type}),e.featureId&&p.jsx(xt,{variant:"outline",size:"xs",children:e.featureId}),e.updatedAt&&p.jsx("span",{className:"text-[10px] text-spur-text-muted ml-auto",title:e.updatedAt,children:OH(e.updatedAt,o)})]})]})})})}function LH({status:e,label:t,tasks:n,onCardClick:r,sortDir:a,onSortToggle:i}){const{setNodeRef:s,isOver:o}=EH({id:e,data:{status:e}});return p.jsxs("section",{ref:s,"aria-label":`${t} column`,className:`flex flex-col flex-1 min-w-[16rem] rounded-lg border transition-colors duration-200 ${o?"bg-spur-accent/10 border-spur-accent/40 shadow-lg":"bg-spur-surface border-spur-border"}`,children:[p.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-spur-border shrink-0",children:[p.jsxs("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:[zg(e)," ",t]}),p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx(xt,{variant:"ghost",size:"sm",children:n.length}),i&&p.jsx(He,{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"?"↑":"⇅"})]})]}),p.jsxs("div",{className:"flex-1 overflow-y-auto p-2 space-y-2 min-h-[4rem]",children:[n.map(u=>p.jsx(FA,{task:u,onClick:r},u.wbs)),n.length===0&&p.jsx("div",{className:"flex items-center justify-center h-16 text-xs text-spur-text-muted italic",children:"No tasks"})]})]})}const FH=[{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 MH({filters:e,onChange:t}){const n=r=>{t(r.currentTarget.dataset.key,r.currentTarget.value||null)};return p.jsx("div",{className:"flex flex-wrap items-center gap-2 px-4 py-2 border-b border-spur-border",children:FH.map(r=>p.jsx(fs,{"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 PH=g.lazy(()=>X1(()=>import("./TaskDetail.L36slEqE.js"),__vite__mapDeps([2,1]))),$y=xa,zy="docs/tasks",Hy="spur:detail-width";function BH(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 UH({onSelectTask:e,filters:t,onFilterChange:n}){const[r,a]=g.useState({}),[i,s]=g.useState(new Set(["blocked","cancelled"])),[o,u]=g.useState(zy),[l,c]=g.useState([{path:zy,label:"Primary"}]),[d,f]=g.useState(null),[m,b]=g.useState(()=>{const H=typeof window<"u"?Math.min(1728,window.innerWidth*.8):1728;if(typeof window>"u")return H;try{const ie=Number.parseFloat(window.localStorage.getItem(Hy)??"");if(Number.isFinite(ie)&&ie>0)return Math.min(ie,window.innerWidth*.8)}catch{}return H}),y=g.useCallback(()=>Ar.task.list({folder:o}),[o]),{tasks:E,loading:T,error:v,connected:x,setTasks:I}=rA(y),[D,S]=g.useState(!1),[A,k]=g.useState(null);g.useEffect(()=>{typeof Ar.task.folders=="function"&&Ar.task.folders({}).then(H=>{const{data:ie,activeFolder:R}=H,ve=R??ie?.[0]?.path;ie&&ve!==void 0&&(c(ie),u(ve))}).catch(()=>{})},[]),g.useEffect(()=>{document.documentElement.style.setProperty("--detail-w",`${m}px`)},[m]),g.useEffect(()=>{if(!d)return;const H=ie=>{ie.key==="Escape"&&f(null)};return window.addEventListener("keydown",H),()=>window.removeEventListener("keydown",H)},[d]);const P=Jn();g.useEffect(()=>{const H=P.pathname.split("/"),ie=H.indexOf("tasks"),R=ie>=0?H[ie+1]:void 0;R&&/^\d{4}$/.test(R)&&f(R)},[P.pathname]);const w=Iy(Qg,{activationConstraint:{distance:5}}),U=Iy(Kg),j=mz(w,U),K=async()=>{try{const H=await y();I(H.data??[])}catch{}},X=BH(E,t),G=H=>{a(ie=>{const R={...ie};return ie[H]==="asc"?R[H]="desc":ie[H]==="desc"?delete R[H]:R[H]="asc",R})},oe=H=>{s(ie=>{const R=new Set(ie);return R.has(H)?R.delete(H):R.add(H),R})},Q=H=>{const ie=X.filter(ve=>ve.status===H),R=r[H]??"desc";return[...ie].sort((ve,Oe)=>{const Ne=ve.wbs.localeCompare(Oe.wbs);return R==="asc"?Ne:-Ne})},ae=H=>E.find(ie=>ie.wbs===H),Y=H=>{k(String(H.active.id))},N=H=>{k(null);const{active:ie,over:R}=H;if(!R)return;const ve=String(ie.id),Oe=String(R.id),Ne=ae(ve);if(!Ne||Ne.status===Oe)return;const je=[...E];I(be=>be.map(ge=>ge.wbs===ve?{...ge,status:Oe}:ge)),Ar.task.transition({wbs:ve,toStatus:Oe}).catch(be=>{I(je);const ge=be instanceof Error?be.message:"Transition failed";typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:ge}}))})};return T?p.jsx("div",{className:"flex items-center justify-center h-full",children:p.jsx(Ir,{size:"lg",className:"text-spur-accent"})}):v?p.jsx("div",{className:"flex items-center justify-center h-full",children:p.jsxs("div",{className:"text-center text-spur-text-muted",children:[p.jsx("p",{className:"text-lg font-semibold",children:"Failed to load tasks"}),p.jsx("p",{className:"text-sm",children:v.message})]})}):p.jsxs(dH,{sensors:j,onDragStart:Y,onDragEnd:N,children:[p.jsxs("div",{className:"flex flex-col h-full",children:[p.jsxs("div",{className:"flex items-center gap-2 px-4 pt-3 pb-1 shrink-0",children:[n&&p.jsx(MH,{filters:t??{},onChange:n}),p.jsxs("div",{className:"flex items-center gap-1.5",title:x?"Live updates active":"Polling (stream disconnected)",children:[p.jsx("span",{className:`inline-block w-2 h-2 rounded-full ${x?"bg-green-500":"bg-red-500"}`}),p.jsx("span",{className:"text-xs text-spur-text-muted",children:x?"Live":"Polling"})]}),p.jsx("span",{className:"text-xs text-spur-text-muted",children:"|"}),p.jsx(aa,{variant:"ghost",size:"xs",className:"text-xs",value:o,onChange:H=>u(H.target.value),"aria-label":"Task folder",children:l.map(H=>p.jsx("option",{value:H.path,children:H.label?`${H.label} (${H.path})`:H.path},H.path))}),p.jsx("span",{className:"text-xs text-spur-text-muted",children:"|"}),p.jsx("div",{className:"flex-1"}),$y.map(H=>p.jsxs("label",{htmlFor:`kanban-col-toggle-${H}`,className:"flex items-center gap-1 cursor-pointer",children:[p.jsx(Cg,{id:`kanban-col-toggle-${H}`,size:"xs",checked:!i.has(H),onChange:()=>oe(H)}),p.jsxs("span",{className:"text-[10px] text-spur-text-muted",children:[zg(H)," ",H]})]},H)),p.jsx("span",{className:"text-xs text-spur-text-muted",children:"|"}),p.jsx(He,{variant:"primary",size:"sm",onClick:()=>S(!0),children:"+ New Task"})]}),p.jsx("div",{className:"flex gap-3 overflow-x-auto h-full p-4",children:$y.filter(H=>!i.has(H)).map(H=>p.jsx(LH,{status:H,label:H,tasks:Q(H),onCardClick:ie=>{f(ie),e(ie)},sortDir:r[H],onSortToggle:()=>G(H)},H))}),p.jsx(tA,{open:D,onClose:()=>S(!1),onCreated:K,folder:o}),d&&p.jsxs(p.Fragment,{children:[p.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)}),p.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:[p.jsx(nu,{targetVar:"--detail-w",onResizeEnd:H=>{const ie=Math.max(576,Math.min(H,window.innerWidth*.8));b(ie);try{window.localStorage.setItem(Hy,String(ie))}catch{}},direction:"horizontal",invert:!0}),p.jsx("div",{className:"flex flex-col flex-1 overflow-hidden",children:p.jsx("div",{className:"flex-1 overflow-y-auto","data-testid":"detail-body",children:(()=>{const H=E.find(ie=>ie.wbs===d);return H?p.jsx(g.Suspense,{fallback:p.jsx("div",{className:"flex items-center justify-center h-32 text-spur-text-muted text-sm",children:"Loading detail..."}),children:p.jsx(PH,{task:H,onClose:()=>f(null),onTransition:(ie,R)=>{I(ve=>ve.map(Oe=>Oe.wbs===ie?{...Oe,status:R}:Oe)),Ar.task.transition({wbs:ie,toStatus:R}).catch(ve=>{const Oe=ve instanceof Error?ve.message:"Transition failed";typeof window<"u"&&window.dispatchEvent(new CustomEvent("api-error",{detail:{message:Oe}}))})}})}):null})()})})]})]})]}),p.jsx(RH,{dropAnimation:null,children:A?(()=>{const H=ae(A);return H?p.jsx("div",{className:"opacity-90",children:p.jsx(FA,{task:H,onClick:()=>{}})}):null})():null})]})}function jH(){const[e,t]=yw(),n=Jn(),r=gu(),a=g.useMemo(()=>{const u=n.pathname.split("/"),l=u.indexOf("tasks"),c=l>=0?u[l+1]:void 0;return c&&/^\d{4}$/.test(c)?c:e.get("selected")},[n.pathname,e]),i=g.useMemo(()=>{const u={},l=e.get("status"),c=e.get("feature"),d=e.get("parent"),f=e.get("assignee");return l&&(u.status=l),c&&(u.featureId=c),d&&(u.parentWbs=d),f&&(u.assignee=f),u},[e]);return{selected:a,filters:i,selectTask:u=>{const l=new URLSearchParams(e);l.delete("selected");const c=l.toString(),d=u?`/board/tasks/${u}`:"/board/tasks";r(`${d}${c?`?${c}`:""}`,{replace:!0})},setFilter:(u,l)=>{t(c=>{const d=new URLSearchParams(c);return l?d.set(u,l):d.delete(u),d},{replace:!0})}}}function $H(e,t){Ar.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 zH(){const{filters:e,selectTask:t,setFilter:n}=jH();return p.jsx("div",{className:"flex flex-col h-full",children:p.jsx("div",{"data-kanban-board":!0,className:"flex-1 overflow-hidden",children:p.jsx(UH,{onSelectTask:t,filters:e,onFilterChange:n})})})}const HH={id:"tasks",name:"Tasks",icon:"📋",route:"tasks",component:zH},GH=Object.freeze(Object.defineProperty({__proto__:null,module:HH,transition:$H},Symbol.toStringTag,{value:"Module"}));function WH(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}:{}})}n.push({teamId:a.teamId,name:a.name,members:i})}return n}const VH=()=>`${at()}/team/teams`,qH=5e3;function eb(){const[e,t]=g.useState([]),[n,r]=g.useState(null),a=g.useRef(!0),i=g.useCallback(async()=>{try{const s=await et(new Request(VH()));if(!s.ok)throw new Error(`teams fetch failed: ${s.status}`);const o=await s.json(),u=WH(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,qH);return()=>{a.current=!1,clearInterval(s)}},[i]),{teams:e,error:n,reload:i}}function MA(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 PA(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 ad=100;function BA(e,t){const n=[t,...e??[]];return n.length>ad&&(n.length=ad),n}const UA=()=>`${at()}/events/history?limit=${ad}`,jA=()=>`${at()}/events/planning`,YH=["agent.","message.","team.","supervisor.","process."];function ZH(e){return YH.some(t=>e.startsWith(t))}function tb(e){if(e===null||typeof e!="object")return null;const t=e;if(typeof t.eventName!="string"||typeof t.occurredAt!="string"||!ZH(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 $A(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=tb(r);a&&n.push(a)}return n}function KH(){const[e,t]=g.useState(null),[n,r]=g.useState(null),{teams:a}=eb(),i=g.useMemo(()=>MA(a),[a]),s=g.useCallback(async()=>{try{const u=await et(new Request(UA()));if(!u.ok)throw new Error(`events fetch failed: ${u.status}`);const l=$A(await u.json());if(!l)throw new Error("events response failed schema validation");t(l)}catch(u){r(u instanceof Error?u.message:String(u))}},[]);g.useEffect(()=>{s()},[s]),g.useEffect(()=>{if(typeof EventSource>"u")return;const u=new EventSource(jA());return u.onmessage=l=>{try{const c=tb(JSON.parse(l.data));c&&t(d=>BA(d,c))}catch{}},()=>u.close()},[]);const o=g.useMemo(()=>e===null?null:e.map(u=>PA(u,i)),[e,i]);return n?p.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load activity: ",n]}):o===null?p.jsx("div",{className:"p-4 text-sm text-spur-text-muted",children:"Loading activity…"}):p.jsx("div",{className:"flex flex-col h-full overflow-y-auto","data-activity-tab":!0,children:o.length===0?p.jsx("div",{className:"p-4 text-sm text-spur-text-muted italic",children:"No team activity yet."}):p.jsxs("table",{className:"w-full text-xs",children:[p.jsx("thead",{className:"sticky top-0 bg-base-200",children:p.jsxs("tr",{className:"text-left text-spur-text-muted",children:[p.jsx("th",{className:"px-3 py-1 font-medium",children:"Time"}),p.jsx("th",{className:"px-3 py-1 font-medium",children:"Event"}),p.jsx("th",{className:"px-3 py-1 font-medium",children:"Team"}),p.jsx("th",{className:"px-3 py-1 font-medium",children:"Member"}),p.jsx("th",{className:"px-3 py-1 font-medium",children:"Agent"}),p.jsx("th",{className:"px-3 py-1 font-medium",children:"Actor"})]})}),p.jsx("tbody",{children:o.map(u=>p.jsxs("tr",{className:"border-t border-spur-border","data-activity-row":u.eventName,children:[p.jsx("td",{className:"px-3 py-1 font-mono text-spur-text-muted",children:u.occurredAt}),p.jsx("td",{className:"px-3 py-1 text-spur-text",children:u.eventName}),p.jsx("td",{className:"px-3 py-1 font-mono text-spur-text-muted",children:u.teamId??"—"}),p.jsx("td",{className:"px-3 py-1 text-spur-text-muted",children:u.memberLabel??"—"}),p.jsx("td",{className:"px-3 py-1 text-spur-text-muted",children:u.agentType??"—"}),p.jsx("td",{className:"px-3 py-1 text-spur-text-muted",children:u.actor??"system"})]},u.id))})]})})}const XH=(e=50)=>`${at()}/messages?limit=${e}`,QH=()=>`${at()}/events/planning`,JH=new Set(["message.sent","message.replied"]);function Gy(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.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 eG(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:Gy(a.from,i)}:{},to:Gy(a.to,a.toId)})}return n}function tG(){const[e,t]=g.useState(null),[n,r]=g.useState(null),a=g.useCallback(async i=>{try{const s=await et(new Request(XH(),{signal:i}));if(!s.ok)throw new Error(`messages fetch failed: ${s.status}`);const o=eG(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(QH());return s.onmessage=o=>{try{const u=JSON.parse(o.data);if(u===null||typeof u!="object")return;const l=u.eventName;typeof l=="string"&&JH.has(l)&&a(i.signal)}catch{}},()=>{i.abort(),s.close()}},[a]),n?p.jsxs("div",{className:"p-4 text-sm text-error",role:"alert",children:["Failed to load messages: ",n]}):e===null?p.jsx("div",{className:"p-4 text-sm text-spur-text-muted",children:"Loading messages…"}):p.jsxs("div",{className:"flex flex-col h-full overflow-hidden","data-messages-tab":!0,children:[p.jsx("div",{className:"px-4 py-2 border-b border-spur-border bg-base-200 shrink-0",children:p.jsx("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:"Message · all teams"})}),p.jsx("ul",{className:"flex-1 overflow-y-auto p-2 space-y-1",children:e.length===0?p.jsx("li",{className:"text-sm text-spur-text-muted italic",children:"No messages yet."}):e.map(i=>{const s=i.from?[i.from.memberLabel??i.from.agentId,i.from.agentType].filter(Boolean).join(" · "):i.fromId??"system",o=[i.to.memberLabel??i.to.agentId,i.to.agentType].filter(Boolean).join(" · "),u=i.from?.teamName,l=i.to.teamName,c=i.status==="injected"?"injected":i.status==="queued"?"queued":null;return p.jsxs("li",{className:"p-2 bg-base-200 rounded text-xs",children:[p.jsxs("div",{className:"flex items-center gap-2 text-spur-text-muted",children:[p.jsxs("span",{"data-message-route":!0,className:"truncate",children:[u&&p.jsxs("span",{className:"text-[10px] opacity-70",children:[u," / "]}),p.jsx("span",{children:s}),p.jsx("span",{className:"mx-1",children:"→"}),l&&p.jsxs("span",{className:"text-[10px] opacity-70",children:[l," / "]}),p.jsx("span",{children:o})]}),c&&p.jsx("span",{className:`text-[10px] px-1 rounded ${c==="injected"?"bg-success/20 text-success":"bg-warning/20 text-warning"}`,"data-message-delivery":!0,children:c}),p.jsx("span",{className:`text-[10px] ${i.hasReply?"text-info":"text-spur-text-muted"}`,"data-message-reply-badge":!0,"data-message-reply-state":i.hasReply?"replied":"awaiting",children:i.hasReply?i.replyCount>1?`Replied (${i.replyCount})`:"Replied":"Awaiting reply"}),p.jsx("span",{className:"ml-auto font-mono text-[10px]",children:i.createdAt})]}),p.jsx("p",{className:"text-spur-text mt-1 whitespace-pre-wrap break-words",children:i.body})]},i.id)})})]})}const nG=3e3,rG=()=>`${at()}/team/processes`;function aG(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 iG(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 Wy({filters:e,onFilters:t,teamIds:n,totalCount:r,shownCount:a}){return p.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-2 text-xs","data-processes-filters":!0,children:[p.jsxs("label",{className:"flex items-center gap-1","data-processes-filter-running":!0,children:[p.jsx("input",{type:"checkbox",checked:e.runningOnly,onChange:i=>t({...e,runningOnly:i.target.checked}),"data-processes-filter-running-input":!0}),p.jsx("span",{children:"Running only"})]}),p.jsxs("label",{className:"flex items-center gap-1",children:[p.jsx("span",{children:"Source"}),p.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:[p.jsx("option",{value:"all",children:"all"}),p.jsx("option",{value:"supervisor",children:"supervisor"}),p.jsx("option",{value:"one-shot",children:"one-shot"}),p.jsx("option",{value:"other",children:"other"})]})]}),p.jsxs("label",{className:"flex items-center gap-1",children:[p.jsx("span",{children:"Team"}),p.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:[p.jsx("option",{value:"all",children:"all teams"}),p.jsx("option",{value:"unassigned",children:"unassigned"}),n.map(i=>p.jsx("option",{value:i,children:i},i))]})]}),p.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"}),p.jsxs("span",{className:"text-spur-text-muted","data-processes-filter-count":!0,children:[a,"/",r," shown"]})]})}function sG(){const[e,t]=g.useState(null),[n,r]=g.useState(null),[a,i]=g.useState({runningOnly:!1,source:"all",team:"all"}),s=g.useRef(!0),o=g.useCallback(async m=>{try{const b=await et(new Request(rG(),{signal:m}));if(!b.ok)throw new Error(`processes fetch failed: ${b.status}`);const E=await b.json();s.current&&(t({processes:E.processes??[],count:E.count??0,executions:E.executions??[],executionsCount:E.executionsCount??0}),r(null))}catch(b){if(m.aborted)return;s.current&&r(b instanceof Error?b.message:String(b))}},[]);g.useEffect(()=>{s.current=!0;let m=null;const b=()=>{m?.abort(),m=new AbortController,o(m.signal)};b();const y=setInterval(b,nG);return()=>{s.current=!1,m?.abort(),clearInterval(y)}},[o]);const u=g.useMemo(()=>e?aG(e.processes,e.executions):[],[e]),l=g.useMemo(()=>iG(u,a),[u,a]),c=g.useMemo(()=>{const m=new Set;for(const b of e?.processes??[])b.teamId&&m.add(b.teamId);for(const b of e?.executions??[])b.teamId&&m.add(b.teamId);return[...m].sort()},[e]);if(n&&(!e||u.length===0))return p.jsxs("div",{className:"p-4 text-sm text-error",role:"alert","data-processes-tab-error":!0,children:["Failed to load processes: ",n]});if(!e)return p.jsx("div",{className:"p-4","data-processes-tab-loading":!0,children:p.jsx(Ir,{size:"sm"})});if(u.length===0)return p.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"," ",p.jsx("code",{className:"font-mono",children:"spur team start"}),"."]});if(l.length===0)return p.jsxs("div",{className:"p-3 overflow-auto h-full","data-processes-tab":!0,"data-processes-tab-filtered-empty":!0,children:[p.jsx(Wy,{filters:a,onFilters:i,teamIds:c,totalCount:u.length,shownCount:0}),p.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 d=e.processes.length,f=Math.max(0,u.length-d);return p.jsxs("div",{className:"p-3 overflow-auto h-full","data-processes-tab":!0,children:[p.jsx(Wy,{filters:a,onFilters:i,teamIds:c,totalCount:u.length,shownCount:l.length}),p.jsxs("div",{className:"flex items-center gap-2 mb-2 text-xs text-spur-text-muted",children:[p.jsxs("span",{"data-processes-header":!0,children:["Process watch list (",u.length,d>0||f>0?` · ${d} supervised${f>0?` · ${f} other`:""}`:"",")"]}),p.jsx("span",{className:"italic",children:"— ProcessExecutor registry (ts-runtime)"})]}),p.jsxs("table",{className:"table table-xs",children:[p.jsx("thead",{children:p.jsxs("tr",{children:[p.jsx("th",{children:"Name"}),p.jsx("th",{children:"Source"}),p.jsx("th",{children:"Team"}),p.jsx("th",{children:"PID"}),p.jsx("th",{children:"Status"}),p.jsx("th",{children:"Started"})]})}),p.jsx("tbody",{children:l.map(m=>{const b=m.status==="running";return p.jsxs("tr",{"data-processes-row":m.key,children:[p.jsx("td",{className:"font-mono text-xs",children:m.label}),p.jsx("td",{className:"text-xs text-spur-text-muted","data-process-source":m.source,children:m.source}),p.jsx("td",{className:"font-mono text-xs text-spur-text-muted","data-process-team":m.teamId??"",children:m.teamId??"—"}),p.jsx("td",{className:"font-mono text-xs text-spur-text-muted",children:m.pid??"—"}),p.jsx("td",{children:p.jsx(xt,{variant:b?"success":"ghost",size:"xs",children:m.status})}),p.jsx("td",{className:"text-xs text-spur-text-muted",children:new Date(m.startedAt).toLocaleTimeString()})]},m.key)})})]})]})}const oG=e=>`${at()}/team/agents/${encodeURIComponent(e)}/start`,uG=e=>`${at()}/team/agents/${encodeURIComponent(e)}/stop`,lG=e=>`${at()}/team/${encodeURIComponent(e)}/up`,cG=e=>`${at()}/team/${encodeURIComponent(e)}/down`;function dG(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 Vy(e){try{return new Date(e).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return e}}function pG(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 fG(){const{teams:e,error:t,reload:n}=eb(),[r,a]=g.useState(null),[i,s]=g.useState(null),[o,u]=g.useState(!1),[l,c]=g.useState(null),[d,f]=g.useState(null),[m,b]=g.useState(null),[y,E]=g.useState(()=>Date.now()),T=g.useMemo(()=>MA(e),[e]);g.useEffect(()=>{let S=!1;return(async()=>{try{const A=await et(new Request(UA()));if(S)return;if(!A.ok)throw new Error(`events fetch failed: ${A.status}`);const k=$A(await A.json());if(S)return;if(!k)throw new Error("events response failed schema validation");a(k)}catch(A){if(S)return;s(A instanceof Error?A.message:String(A))}})(),()=>{S=!0}},[]),g.useEffect(()=>{if(typeof EventSource>"u")return;const S=new EventSource(jA());return S.onmessage=A=>{try{const k=tb(JSON.parse(A.data));k&&a(P=>BA(P,k))}catch{}},()=>S.close()},[]),g.useEffect(()=>{const S=setInterval(()=>E(Date.now()),1e3);return()=>clearInterval(S)},[]);const v=g.useMemo(()=>r===null?null:r.map(S=>PA(S,T)),[r,T]),x=g.useMemo(()=>v===null?new Map:pG(v),[v]),I=g.useCallback(async(S,A)=>{u(!0),c(null);try{const k=A?uG(S):oG(S),P=await et(new Request(k,{method:"POST"}));if(!P.ok){const w=await P.json().catch(()=>null),U=w&&typeof w=="object"&&"error"in w&&typeof w.error=="string"?w.error:`request failed (${P.status})`;c(U)}}catch(k){c(k instanceof Error?k.message:String(k))}finally{u(!1),n()}},[n]),D=g.useCallback(async(S,A)=>{u(!0),c(null);try{const k=A==="up"?lG(S):cG(S),P=await et(new Request(k,{method:"POST"}));if(!P.ok){const w=await P.json().catch(()=>null),U=w&&typeof w=="object"&&"error"in w&&typeof w.error=="string"?w.error:`request failed (${P.status})`;c(U)}}catch(k){c(k instanceof Error?k.message:String(k))}finally{u(!1),n()}},[n]);return p.jsxs("div",{className:"flex flex-col h-full overflow-y-auto","data-supervisor-tab":!0,children:[t&&e.length===0?p.jsxs("div",{className:"p-4 text-sm text-error",role:"alert","data-supervisor-tab-error":!0,children:["Failed to load teams: ",t,". Event-derived activity remains available below."]}):t&&p.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: ",t,". Showing last-known state."]}),e.length===0&&!t&&p.jsx("div",{className:"p-4 text-sm text-spur-text-muted","data-supervisor-tab-loading":!0,children:"Loading teams…"}),l&&p.jsx("div",{className:"px-3 py-1 text-xs text-error",role:"alert","data-supervisor-action-error":!0,children:l}),i&&p.jsxs("div",{className:"px-3 py-1 text-xs text-warning",role:"alert","data-supervisor-event-error":!0,children:["Activity feed error: ",i,". Live updates may be delayed."]}),p.jsx("div",{className:"p-2 space-y-2",children:e.map(S=>p.jsx(pi,{variant:"compact",className:"bg-base-200 border border-spur-border",children:p.jsxs(fi,{className:"p-3 gap-2",children:[p.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[p.jsx("span",{className:"text-sm font-semibold text-spur-text",children:S.name}),p.jsx(xt,{variant:"outline",size:"xs",children:S.teamId}),p.jsxs("span",{className:"text-[10px] text-spur-text-muted",children:[S.members.length," member(s)"]}),p.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[p.jsx(He,{type:"button",variant:"ghost",size:"xs",disabled:o,onClick:()=>{D(S.teamId,"up")},"data-supervisor-team-up":S.teamId,children:"Up"}),p.jsx(He,{type:"button",variant:"ghost",size:"xs",disabled:o,onClick:()=>b(S.teamId),"data-supervisor-team-down":S.teamId,children:"Down"})]})]}),S.members.length===0?p.jsx("div",{className:"text-xs text-spur-text-muted italic py-2","data-supervisor-empty-roster":S.teamId,children:"No members configured for this team."}):p.jsx("ul",{className:"space-y-1",children:S.members.map(A=>{const k=A.status==="running",P=`${S.teamId}:${A.id}`,w=x.get(P),U=k&&w?.startedAt?dG(y-Date.parse(w.startedAt)):"-",j=w?.lastActivity??null;return p.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":A.id,children:[p.jsx(xt,{variant:k?"success":"ghost",size:"xs",children:A.status}),p.jsx("span",{className:"font-mono text-spur-text",children:A.id}),p.jsx(xt,{variant:"outline",size:"xs",children:A.type}),p.jsxs("span",{className:"text-[10px] text-spur-text-muted font-mono","data-supervisor-uptime":A.id,children:["up ",U]}),j?p.jsxs("span",{className:"text-[10px] text-spur-text-muted","data-supervisor-last-activity":A.id,children:["last: ",Vy(j.time)," (",j.eventName,")"]}):p.jsx("span",{className:"text-[10px] text-spur-text-muted","data-supervisor-last-activity":A.id,children:"last: -"}),p.jsx(He,{type:"button",variant:k?"ghost":"primary",size:"xs",disabled:o,className:"ml-auto",onClick:()=>{k?f(A.id):I(A.id,!1)},"data-supervisor-toggle":A.id,children:k?"Stop":"Start"})]},A.id)})})]})},S.teamId))}),v!==null&&p.jsxs("section",{className:"border-t border-spur-border bg-base-300/40","aria-label":"Recent team activity","data-supervisor-activity":!0,children:[p.jsx("div",{className:"px-3 py-2 text-[10px] uppercase tracking-wide font-semibold text-spur-text-muted",children:"Recent team activity"}),v.length===0?p.jsx("div",{className:"px-3 pb-3 text-xs text-spur-text-muted italic",children:"No team activity yet."}):p.jsx("ul",{className:"px-3 pb-3 space-y-1",children:v.slice(0,20).map(S=>p.jsxs("li",{className:"flex items-center gap-2 flex-wrap text-[10px] text-spur-text-muted","data-supervisor-activity-row":S.eventName,children:[p.jsx("span",{className:"font-mono",children:Vy(S.occurredAt)}),p.jsx(xt,{variant:"outline",size:"xs",children:S.eventName}),S.teamId&&p.jsx("span",{children:S.teamId}),S.memberLabel&&p.jsx("span",{className:"font-mono",children:S.memberLabel}),S.actor&&p.jsx("span",{children:S.actor})]},S.id))})]}),p.jsxs(Yo,{open:d!==null,variant:"warning",onClose:()=>f(null),"data-stop-confirm-modal":!0,children:[p.jsx("h3",{className:"text-lg font-bold text-warning",children:"Stop member?"}),p.jsxs("p",{className:"py-3 text-sm text-spur-text",children:["Stopping ",p.jsx("span",{className:"font-mono",children:d})," will terminate its running process. Input to this member will be disabled until it is restarted."]}),p.jsxs("div",{className:"flex justify-end gap-2",children:[p.jsx(He,{type:"button",variant:"ghost",size:"sm",onClick:()=>f(null),"data-stop-confirm-cancel":!0,children:"Cancel"}),p.jsx(He,{type:"button",variant:"warning",size:"sm",disabled:o,onClick:()=>{if(!d)return;const S=d;f(null),I(S,!0)},"data-stop-confirm-confirm":!0,children:"Stop"})]})]}),p.jsxs(Yo,{open:m!==null,variant:"warning",onClose:()=>b(null),"data-down-confirm-modal":!0,children:[p.jsx("h3",{className:"text-lg font-bold text-warning",children:"Bring team down?"}),p.jsxs("p",{className:"py-3 text-sm text-spur-text",children:["This will stop all running members of ",p.jsx("span",{className:"font-mono",children:m}),"."]}),p.jsxs("div",{className:"flex justify-end gap-2",children:[p.jsx(He,{type:"button",variant:"ghost",size:"sm",onClick:()=>b(null),"data-down-confirm-cancel":!0,children:"Cancel"}),p.jsx(He,{type:"button",variant:"warning",size:"sm",disabled:o,onClick:()=>{if(!m)return;const S=m;b(null),D(S,"down")},"data-down-confirm-confirm":!0,children:"Bring Down"})]})]})]})}const Ba=1e3,mc=[1e3,2e3,4e3,8e3,15e3],mG=15e3,hG=3e3;function gG(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 bG(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}function EG(e){return e<0?mc[0]:e>=mc.length?mG:mc[e]}function yG(e,t,n){if(t.seq===void 0){const a=[...e,t];return a.length>Ba&&a.splice(0,a.length-Ba),{frames:a,lastSeq:n}}if(t.seq<=n)return{frames:e,lastSeq:n};const r=[...e,t];return r.length>Ba&&r.splice(0,r.length-Ba),{frames:r,lastSeq:t.seq}}const TG=(e,t)=>t!==void 0?`${at()}/team/processes/${encodeURIComponent(e)}/stream?sinceSeq=${t}`:`${at()}/team/processes/${encodeURIComponent(e)}/stream`,SG=e=>`${at()}/team/processes/${encodeURIComponent(e)}/stdin`,xG=()=>`${at()}/messages`,AG=()=>`${at()}/team/processes`;function _G({agentId:e}){const[t,n]=g.useState([]),[r,a]=g.useState("unknown"),[i,s]=g.useState(""),[o,u]=g.useState(null),[l,c]=g.useState(!1),d=g.useRef(-1),f=g.useRef(null),m=g.useRef(void 0),b=g.useRef(0),y=g.useRef(!0),E=g.useRef(null),T=g.useCallback(async S=>{try{const A=await et(new Request(AG(),{signal:S}));if(!A.ok)return;const k=await A.json(),P=bG(k);if(!P)return;const w=P.find(U=>U.agentId===e);w&&y.current&&a(w.status)}catch{}},[e]);g.useEffect(()=>{y.current=!0;let S=null;const A=()=>{S?.abort(),S=new AbortController,T(S.signal)};A();const k=setInterval(A,hG);return()=>{y.current=!1,S?.abort(),clearInterval(k)}},[T]);const v=g.useCallback(()=>{if(!y.current)return;const S=new EventSource(TG(e,d.current>-1?d.current:void 0));f.current=S,S.onmessage=A=>{try{const k=JSON.parse(A.data),P=gG(k);if(!P)return;n(w=>{const U=yG(w,P,d.current);return d.current=U.lastSeq,U.frames}),b.current=0,c(!0)}catch{}},S.onerror=()=>{if(S.close(),f.current=null,c(!1),!y.current)return;const A=EG(b.current);b.current+=1,m.current=setTimeout(v,A)}},[e]);g.useEffect(()=>(v(),()=>{y.current=!1,f.current?.close(),f.current=null,m.current&&clearTimeout(m.current)}),[v]),g.useEffect(()=>{E.current&&t.length>0&&(E.current.scrollTop=E.current.scrollHeight)},[t]);const x=g.useCallback(async()=>{const S=i;if(S.length===0)return;u(null);const A={stream:"meta",ts:new Date().toISOString(),line:`> ${S}`};n(k=>{const P=[...k,A];return P.length>Ba&&P.splice(0,P.length-Ba),P});try{const k=await et(new Request(SG(e),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({line:S})}));if(et(new Request(xG(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({from:"terminal",to:e,body:S})})).catch(()=>{}),!k.ok){const w=(await k.json().catch(()=>null))?.error??`stdin POST failed: ${k.status}`;u(w);return}s("")}catch(k){u(k instanceof Error?k.message:String(k))}},[e,i]),I=r==="running",D=S=>{S.key==="Enter"&&I&&(S.preventDefault(),x())};return p.jsxs("div",{className:"flex flex-col h-full overflow-hidden","data-member-terminal":e,children:[p.jsxs("div",{className:"px-4 py-2 border-b border-spur-border bg-base-200 shrink-0 flex items-center gap-2",children:[p.jsx("span",{className:"text-xs font-semibold text-spur-text uppercase tracking-wide",children:"Terminal"}),p.jsx("span",{className:"font-mono text-xs text-spur-text-muted",children:e}),p.jsx(xt,{variant:I?"success":"ghost",size:"xs","data-terminal-status":!0,children:r}),p.jsx("span",{className:"text-[10px] text-spur-text-muted","data-terminal-connected":!0,children:l?"connected":"reconnecting…"})]}),!I&&p.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."]}),p.jsx("pre",{ref:E,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?p.jsxs("span",{className:"text-spur-text-muted italic",children:["Waiting for output from ",e,"…"]}):t.map((S,A)=>p.jsx("div",{className:S.stream==="stderr"?"text-error":S.stream==="meta"?"text-spur-text-muted italic":"text-spur-text","data-stream":S.stream,children:S.line},S.seq??`meta-${A}`))}),o&&p.jsx("div",{className:"px-4 py-1 text-xs text-error border-t border-spur-border",role:"alert","data-input-error":!0,children:o}),p.jsx("div",{className:"flex items-center gap-2 px-2 py-2 border-t border-spur-border bg-base-200 shrink-0",children:p.jsx("input",{type:"text",value:i,onChange:S=>s(S.target.value),onKeyDown:D,disabled:!I,placeholder:I?"Type a line and press Enter…":"Input disabled (member not running)",className:"flex-1 input input-sm font-mono","data-terminal-input":!0})})]})}const vG=e=>`${at()}/team/agents/${encodeURIComponent(e)}/start`,wG=e=>`${at()}/team/agents/${encodeURIComponent(e)}/stop`,NG=e=>`${at()}/team/${encodeURIComponent(e)}/up`,CG=e=>`${at()}/team/${encodeURIComponent(e)}/down`,nb="spur:board:teams:lastTerminal";function IG(){try{const e=globalThis.localStorage?.getItem(nb);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 kG(e){try{globalThis.localStorage?.setItem(nb,JSON.stringify(e))}catch{}}function RG(){try{globalThis.localStorage?.removeItem(nb)}catch{}}function DG(){const{teams:e,error:t,reload:n}=eb(),[r,a]=g.useState(""),[i,s]=g.useState(""),[o,u]=g.useState(null),[l,c]=g.useState(null),[d,f]=g.useState(null),[m,b]=g.useState(!1),[y]=g.useState({done:!1});g.useEffect(()=>{if(y.done||e.length===0)return;y.done=!0;const S=IG();if(!S)return;const A=e.find(P=>P.teamId===S.teamId),k=A?.members.find(P=>P.id===S.memberId);if(!A||!k){RG();return}a(S.teamId),s(S.memberId)},[e,y]);const E=e.find(S=>S.teamId===r),T=E?.members.find(S=>S.id===i)??null;g.useEffect(()=>{i&&E&&!E.members.some(S=>S.id===i)&&s("")},[i,E]),g.useEffect(()=>{r&&i&&kG({teamId:r,memberId:i})},[r,i]);const v=g.useCallback(async(S,A)=>{b(!0);try{const k=A?wG(S):vG(S),P=await et(new Request(k,{method:"POST"}));if(!P.ok){const w=await P.json().catch(()=>null),U=w&&typeof w=="object"&&"error"in w&&typeof w.error=="string"?w.error:`request failed (${P.status})`;u(U)}}catch(k){u(k instanceof Error?k.message:String(k))}finally{b(!1),n()}},[n]),x=g.useCallback(async(S,A)=>{b(!0),u(null);try{const k=A==="up"?NG(S):CG(S),P=await et(new Request(k,{method:"POST"}));if(!P.ok){const w=await P.json().catch(()=>null),U=w&&typeof w=="object"&&"error"in w&&typeof w.error=="string"?w.error:`request failed (${P.status})`;u(U)}}catch(k){u(k instanceof Error?k.message:String(k))}finally{b(!1),n()}},[n]),I=g.useCallback(S=>{s(S)},[]);if(t&&e.length===0)return p.jsxs("div",{className:"p-4 text-sm text-error",role:"alert","data-terminal-tab-error":!0,children:["Failed to load teams: ",t]});if(e.length===0)return p.jsxs("div",{className:"p-4 text-sm text-spur-text-muted","data-terminal-tab-empty":!0,children:["No teams defined in ",p.jsx("code",{className:"font-mono",children:".spur/config.yaml"}),". Configure"," ",p.jsx("code",{className:"font-mono",children:"agent.team"})," entries to open a terminal."]});const D=T?.status==="running";return p.jsxs("div",{className:"flex flex-col h-full overflow-hidden","data-terminal-tab":!0,children:[p.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:[p.jsxs("div",{className:"flex items-center gap-2","data-terminal-focus":!0,children:[p.jsxs("label",{className:"flex items-center gap-1 text-xs",htmlFor:"terminal-team-select",children:[p.jsx("span",{className:"text-spur-text-muted",children:"Team"}),p.jsxs(aa,{id:"terminal-team-select",variant:"bordered",size:"sm",value:r,onChange:S=>{a(S.target.value),s("")},"data-terminal-team-select":!0,children:[p.jsx("option",{value:"",children:"Select team…"}),e.map(S=>p.jsx("option",{value:S.teamId,children:S.name},S.teamId))]})]}),p.jsxs("label",{className:"flex items-center gap-1 text-xs",htmlFor:"terminal-member-select",children:[p.jsx("span",{className:"text-spur-text-muted",children:"Member"}),p.jsxs(aa,{id:"terminal-member-select",variant:"bordered",size:"sm",value:i,onChange:S=>s(S.target.value),disabled:!E,"data-terminal-member-select":!0,children:[p.jsx("option",{value:"",children:"Select member…"}),E?.members.map(S=>p.jsxs("option",{value:S.id,children:[S.id," · ",S.type]},S.id))]})]}),T?.model?p.jsx("span",{className:"text-xs text-spur-text-muted font-mono","data-terminal-model":!0,children:T.model}):null,T&&p.jsxs(p.Fragment,{children:[p.jsx(xt,{variant:D?"success":"ghost",size:"xs","data-terminal-status-badge":!0,children:T.status}),p.jsx(He,{type:"button",variant:D?"warning":"primary",size:"xs",disabled:m,onClick:()=>{D?c(T.id):v(T.id,!1)},"data-terminal-toggle-btn":!0,children:D?"Stop":"Start"})]})]}),p.jsxs("div",{className:"flex items-center gap-2","data-terminal-roster":!0,children:[E?.members.map(S=>p.jsx("button",{type:"button",title:`${S.id} · ${S.type}`,onClick:()=>I(S.id),className:"cursor-pointer p-0 bg-transparent border-0","data-terminal-roster-chip":!0,children:p.jsx(xt,{variant:S.id===i?"accent":S.status==="running"?"success":"ghost",size:"xs",children:S.id})},S.id)),p.jsx("div",{className:"border-l border-spur-border mx-1 h-5","aria-hidden":"true"}),p.jsx(He,{type:"button",variant:"ghost",size:"xs",disabled:m||!E,onClick:()=>E&&x(E.teamId,"up"),"data-terminal-up-btn":!0,children:"Up"}),p.jsx(He,{type:"button",variant:"ghost",size:"xs",disabled:m||!E,onClick:()=>E&&f(E.teamId),"data-terminal-down-btn":!0,children:"Down"})]})]}),o&&p.jsx("div",{className:"px-3 py-1 text-xs text-error",role:"alert","data-terminal-tab-action-error":!0,children:o}),i&&T?p.jsx(_G,{agentId:i}):p.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."}),p.jsxs(Yo,{open:l!==null,variant:"warning",onClose:()=>c(null),"data-stop-confirm-modal":!0,children:[p.jsx("h3",{className:"text-lg font-bold text-warning",children:"Stop member?"}),p.jsxs("p",{className:"py-3 text-sm text-spur-text",children:["Stopping ",p.jsx("span",{className:"font-mono",children:l})," will terminate its running process. Input to this member will be disabled until it is restarted."]}),p.jsxs("div",{className:"flex justify-end gap-2",children:[p.jsx(He,{type:"button",variant:"ghost",size:"sm",onClick:()=>c(null),"data-stop-confirm-cancel":!0,children:"Cancel"}),p.jsx(He,{type:"button",variant:"warning",size:"sm",disabled:m,onClick:()=>{if(!l)return;const S=l;c(null),v(S,!0)},"data-stop-confirm-confirm":!0,children:"Stop"})]})]}),p.jsxs(Yo,{open:d!==null,variant:"warning",onClose:()=>f(null),"data-down-confirm-modal":!0,children:[p.jsx("h3",{className:"text-lg font-bold text-warning",children:"Bring team down?"}),p.jsxs("p",{className:"py-3 text-sm text-spur-text",children:["This will stop all running members of ",p.jsx("span",{className:"font-mono",children:d}),"."]}),p.jsxs("div",{className:"flex justify-end gap-2",children:[p.jsx(He,{type:"button",variant:"ghost",size:"sm",onClick:()=>f(null),"data-down-confirm-cancel":!0,children:"Cancel"}),p.jsx(He,{type:"button",variant:"warning",size:"sm",disabled:m,onClick:()=>{if(!d)return;const S=d;f(null),x(S,"down")},"data-down-confirm-confirm":!0,children:"Bring Down"})]})]})]})}const qy=[{id:"supervisor",label:"Supervisor",component:fG},{id:"terminal",label:"Terminal",component:DG},{id:"processes",label:"Process",component:sG},{id:"messages",label:"Message",component:tG},{id:"activity",label:"Activity",component:KH}];function OG(){const[e,t]=g.useState("supervisor"),r=qy.find(a=>a.id===e)?.component;return p.jsxs("div",{className:"flex flex-col h-full overflow-hidden","data-teams-shell":!0,children:[p.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:qy.map(a=>{const i=a.id===e;return p.jsx("button",{type:"button",role:"tab","aria-selected":i,"aria-controls":`teams-tab-panel-${a.id}`,id:`teams-tab-${a.id}`,onClick:()=>t(a.id),className:`px-3 py-1 rounded text-xs font-medium transition-colors ${i?"bg-spur-accent text-white":"text-spur-text-muted hover:text-spur-text hover:bg-base-300"}`,children:a.label},a.id)})}),p.jsx("div",{role:"tabpanel",id:`teams-tab-panel-${e}`,"aria-labelledby":`teams-tab-${e}`,className:"flex-1 overflow-hidden",children:r?p.jsx(r,{}):null})]})}const LG={id:"teams",name:"Teams",icon:"👥",route:"teams",component:OG,sidebarLabel:"Teams"},FG=Object.freeze(Object.defineProperty({__proto__:null,module:LG},Symbol.toStringTag,{value:"Module"}));function zA(e){return e===null||typeof e!="object"?null:"module"in e&&Yy(e.module)?e.module:"default"in e&&Yy(e.default)?e.default:null}function Yy(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 HA(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 MG(e){const t=[],n=e("./*/index.{ts,tsx}",{eager:!0});for(const r of Object.values(n)){const a=zA(r);a&&t.push(a)}return t.sort((r,a)=>r.id.localeCompare(a.id)),t.sort(HA),t}function PG(){try{return MG(()=>Object.assign({"./features/index.tsx":Zj,"./observability/index.tsx":ez,"./task-kanban/index.tsx":GH,"./teams/index.tsx":FG}))}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 BG(r,{readdirSync:(a,i)=>e.readdirSync(a,i),tryRequire:a=>require(a)})}function BG(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 l=t.tryRequire(u),c=zA(l);if(c){r.push(c);break}}catch{}}return r.sort(HA),r}function UG(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 jG(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 jG(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 ${bo(r)}`);t.set(r.id,bo(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 ${bo(r)}`);n.set(r.route,bo(r))}}function bo(e){return e.id}const rb=UG(PG(),{disabled:ZM}),GA=rb.modules;function $G(e){return rb.getModule(e)}const Eo=rb.defaultModule;function zG(){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:p.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=>p.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:[p.jsx("span",{className:"flex-1 break-words",children:n.message}),p.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 HG({currentName:e}){const[t,n]=g.useState(!1),[r,a]=g.useState([]),[i,s]=g.useState(null),[o,u]=g.useState(null),l=g.useRef(null);g.useEffect(()=>{if(!t)return;const d=new AbortController;return et(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=>{l.current&&!l.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 c=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 et(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 p.jsxs("div",{className:"relative min-w-0 flex-1",ref:l,children:[p.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:[p.jsx("span",{className:"font-semibold truncate",children:e}),p.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:p.jsx("path",{d:"M4 6l4 4 4-4"})})]}),t&&p.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:[p.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?p.jsx("div",{className:"px-2 py-1.5 text-xs text-spur-text-muted",children:o||"No projects registered"}):r.map(d=>p.jsxs("button",{type:"button",role:"option","aria-selected":d.current,disabled:i===d.name,onClick:()=>c(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:[p.jsxs("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[p.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"}),p.jsx("span",{className:"truncate",children:d.name})]}),i===d.name?p.jsx("span",{className:"text-[10px] text-spur-accent animate-pulse",children:"Starting..."}):d.current?p.jsx("span",{className:"text-[10px] font-semibold text-spur-accent",children:"current"}):d.running?p.jsxs("span",{className:"text-[10px] text-spur-text-muted",children:[":",d.port]}):p.jsx("span",{className:"text-[10px] text-spur-text-muted",children:"stopped"})]},d.path))]})]})}const WA="spur-theme";function GG(){try{const e=localStorage.getItem(WA);if(e==="light"||e==="dark")return e}catch{}return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function WG(e){document.documentElement.setAttribute("data-theme",e);try{localStorage.setItem(WA,e)}catch{}}function VG(e){const t=e==="dark"?"light":"dark";return WG(t),t}function qG(){const[e,t]=g.useState(GG);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(VG),[]);return p.jsx(He,{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 YG="Modules";function ZG(){const[e,t]=g.useState(YG);return g.useEffect(()=>{const n=new AbortController;return et(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 KG({direction:e}){const t=e==="expand";return p.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?p.jsx("path",{d:"M6 3l5 5-5 5"}):p.jsx("path",{d:"M10 3L5 8l5 5"})})}function Zy({collapsed:e,onToggle:t}){const n=e?"Expand sidebar":"Collapse sidebar";return p.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:p.jsx(KG,{direction:e?"expand":"collapse"})})}function XG({collapsed:e,onToggle:t,onMobileClose:n}){const r=ZG();return p.jsxs("aside",{className:"flex flex-col bg-spur-surface border-r border-spur-border overflow-hidden",children:[e?p.jsx("div",{className:"flex items-center justify-center border-b border-spur-border shrink-0 py-1",children:p.jsx(Zy,{collapsed:!0,onToggle:t})}):p.jsxs("div",{className:"flex items-center justify-between gap-1 p-3 border-b border-spur-border shrink-0",children:[p.jsx(HG,{currentName:r}),p.jsxs("div",{className:"flex items-center gap-0.5 shrink-0",children:[p.jsx(Zy,{collapsed:!1,onToggle:t}),p.jsx(qG,{}),n&&p.jsx(He,{variant:"ghost",size:"sm",className:"text-spur-text-muted md:hidden",onClick:n,"aria-label":"Close navigation",children:"✕"})]})]}),p.jsx("nav",{className:"flex-1 overflow-y-auto",children:GA.map(a=>p.jsxs(wT,{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:[p.jsx("span",{className:"text-lg",children:a.icon}),!e&&p.jsx("span",{children:a.sidebarLabel??a.name})]},a.id))})]})}function QG({children:e,mobileHeader:t}){return p.jsxs("main",{className:"flex flex-col overflow-hidden bg-spur-bg",children:[t,p.jsx("div",{className:"flex-1 overflow-auto",children:e})]})}function JG({collapsed:e,onToggle:t,onMobileClose:n,children:r,actions:a}){return p.jsxs("aside",{className:"flex flex-col bg-spur-surface border-l border-spur-border overflow-hidden",children:[n&&p.jsx("div",{className:"hidden max-md:flex items-center justify-center py-2 shrink-0",children:p.jsx("div",{className:"w-10 h-1 rounded-full bg-spur-border"})}),p.jsxs("div",{className:"flex items-center justify-between p-3 border-b border-spur-border shrink-0",children:[!e&&p.jsx("span",{className:"text-sm font-semibold text-spur-text",children:r?"Context":""}),p.jsx("div",{className:"flex items-center gap-1",children:a}),p.jsxs("div",{className:"flex items-center gap-1",children:[n&&p.jsx(He,{variant:"ghost",size:"sm",className:"text-spur-text-muted md:hidden",onClick:n,"aria-label":"Close panel",children:"✕"}),p.jsx(He,{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&&p.jsx("div",{className:"flex-1 overflow-y-auto p-3",children:r})]})}const eW=g.createContext(void 0);function tW(){const[e,t]=g.useState(()=>qM()),[n,r]=g.useState(!1),[a,i]=g.useState(!1),s=Jn(),o=(()=>{const v=s.pathname.split("/"),x=v.indexOf("board"),I=x>=0?v[x+1]:void 0;return $G(I??"")})();g.useLayoutEffect(()=>{const v=document.documentElement;v.style.setProperty("--sidebar-w",`${e.sidebarWidth}px`),v.style.setProperty("--rightpanel-w",`${e.rightPanelWidth}px`)},[e.sidebarWidth,e.rightPanelWidth]);const u=g.useCallback(v=>YM(v),[]),l=g.useCallback(()=>{t(v=>{const x={...v,sidebarCollapsed:!v.sidebarCollapsed};return u(x),x})},[u]),c=g.useCallback(()=>{t(v=>{const x={...v,rightPanelCollapsed:!v.rightPanelCollapsed};return u(x),x})},[u]),d=g.useCallback(v=>t(x=>{const I={...x,sidebarWidth:v};return u(I),I}),[u]),f=g.useCallback(v=>t(x=>{const I={...x,rightPanelWidth:v};return u(I),I}),[u]),m=g.useCallback(()=>{r(!1),i(!1)},[]),b=g.useCallback(v=>{v.key==="Escape"&&m()},[m]),y=o?.rightPanelComponent;g.useLayoutEffect(()=>{y&&e.rightPanelCollapsed&&t(v=>({...v,rightPanelCollapsed:!1}))},[y,e.rightPanelCollapsed]);const E=p.jsxs("div",{className:"mobile-bar",children:[p.jsx(He,{variant:"ghost",size:"sm",className:"text-spur-text",onClick:()=>r(!0),"aria-label":"Open navigation",children:"☰"}),p.jsx("span",{className:"text-sm font-semibold text-spur-text",children:o?.name??"Spur"}),p.jsx(He,{variant:"ghost",size:"sm",className:"text-spur-text",onClick:()=>i(!0),"aria-label":"Open panel",children:"◧"})]}),T=n||a;return p.jsxs(p.Fragment,{children:[T&&p.jsx("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:m,onKeyDown:b,"aria-hidden":"true"}),p.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:p.jsxs(eW.Provider,{value:o,children:[p.jsx(XG,{collapsed:e.sidebarCollapsed,onToggle:l,onMobileClose:m}),p.jsx(nu,{targetVar:"--sidebar-w",onResizeEnd:d}),p.jsx(QG,{mobileHeader:E,children:p.jsx($v,{})}),p.jsx(nu,{targetVar:"--rightpanel-w",onResizeEnd:f}),p.jsx(JG,{collapsed:e.rightPanelCollapsed,onToggle:c,onMobileClose:m,children:y?p.jsx(y,{}):null})]})}),p.jsx(zG,{})]})}const nW=[{path:"/board",element:p.jsx(tW,{}),children:[{index:!0,element:p.jsx(Fb,{to:Eo?Eo.route:"/board",replace:!0})},...GA.flatMap(e=>[{path:e.route,element:p.jsx(e.component,{})},{path:`${e.route}/*`,element:p.jsx(e.component,{})}])]},{path:"/",element:p.jsx(Fb,{to:Eo?`/board/${Eo.route}`:"/board",replace:!0})}];function rW(){return fw(nW)}function iW(){const[e]=g.useState(rW);return p.jsx(Bv,{router:e})}export{xt as B,Cg as C,Ir as L,qo as M,aa as S,X1 as _,iW as a,He as b,Nj as c,Ar as d,p as j,Aj as p,zg as t,rA as u};