@inkeep/agents-manage-ui 0.10.2 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/agents-manage-ui/.next/BUILD_ID +1 -1
- package/.next/standalone/agents-manage-ui/.next/app-build-manifest.json +97 -97
- package/.next/standalone/agents-manage-ui/.next/app-path-routes-manifest.json +5 -5
- package/.next/standalone/agents-manage-ui/.next/build-manifest.json +2 -2
- package/.next/standalone/agents-manage-ui/.next/prerender-manifest.json +20 -20
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/page.js +2 -2
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/api-keys/page.js +3 -3
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/api-keys/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/artifacts/[artifactComponentId]/page.js +2 -2
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/artifacts/[artifactComponentId]/page.js.nft.json +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/artifacts/[artifactComponentId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/artifacts/new/page.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/artifacts/new/page.js.nft.json +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/artifacts/new/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/artifacts/page.js +2 -2
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/artifacts/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/components/[dataComponentId]/page.js +2 -2
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/components/[dataComponentId]/page.js.nft.json +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/components/[dataComponentId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/components/new/page.js +2 -2
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/components/new/page.js.nft.json +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/components/new/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/components/page.js +2 -2
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/components/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/[credentialId]/page.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/[credentialId]/page.js.nft.json +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/[credentialId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/bearer/page.js +2 -2
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/bearer/page.js.nft.json +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/bearer/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/page.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/providers/[providerId]/page.js +2 -2
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/providers/[providerId]/page.js.nft.json +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/providers/[providerId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/providers/page.js +2 -2
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/providers/page.js.nft.json +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/new/providers/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/page.js +2 -2
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/credentials/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/graphs/[graphId]/page.js +2 -2
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/graphs/[graphId]/page.js.nft.json +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/graphs/[graphId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/graphs/new/page.js +2 -2
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/graphs/new/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/graphs/page.js +2 -2
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/graphs/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/[mcpServerId]/edit/page.js +2 -2
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/[mcpServerId]/edit/page.js.nft.json +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/[mcpServerId]/edit/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/[mcpServerId]/page.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/[mcpServerId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/new/page.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/new/page.js.nft.json +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/new/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/page.js +2 -2
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/mcp-servers/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/page.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/settings/page.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/traces/ai-calls/page.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/traces/ai-calls/page.js.nft.json +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/traces/ai-calls/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/traces/conversations/[conversationId]/page.js +2 -2
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/traces/conversations/[conversationId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/traces/page.js +3 -3
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/traces/page.js.nft.json +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/[projectId]/traces/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/page.js +2 -2
- package/.next/standalone/agents-manage-ui/.next/server/app/[tenantId]/projects/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/_not-found/page.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/_not-found.rsc +9 -9
- package/.next/standalone/agents-manage-ui/.next/server/app/api/signoz/conversations/[conversationId]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/api/signoz/route_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/page.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/app-paths-manifest.json +5 -5
- package/.next/standalone/agents-manage-ui/.next/server/chunks/1902.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/chunks/2539.js +3 -3
- package/.next/standalone/agents-manage-ui/.next/server/chunks/325.js +1 -0
- package/.next/standalone/agents-manage-ui/.next/server/chunks/3547.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/chunks/4578.js +1 -0
- package/.next/standalone/agents-manage-ui/.next/server/chunks/5112.js +1 -0
- package/.next/standalone/agents-manage-ui/.next/server/chunks/5232.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/chunks/6749.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/chunks/6957.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/chunks/{3113.js → 6996.js} +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/chunks/71.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/chunks/7293.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/chunks/8449.js +2 -2
- package/.next/standalone/agents-manage-ui/.next/server/chunks/9093.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/chunks/9122.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/chunks/{8799.js → 9224.js} +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/chunks/9719.js +1 -0
- package/.next/standalone/agents-manage-ui/.next/server/pages/404.html +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/pages/500.html +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/agents-manage-ui/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/{4261-454575adeb801448.js → 1460-b06c7068a94f9b49.js} +1 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/3302-1feb0dfcabac7fdc.js +1 -0
- package/.next/standalone/agents-manage-ui/.next/static/chunks/6045-cc88968900c3b1b7.js +1 -0
- package/.next/standalone/agents-manage-ui/.next/static/chunks/6497-a7da874c33afd560.js +1 -0
- package/.next/standalone/agents-manage-ui/.next/static/chunks/7167-21733982c8e707aa.js +1 -0
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/api-keys/page-9acbc5ff1ffc43b5.js +1 -0
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/artifacts/[artifactComponentId]/{page-5150a6de8b80c4b4.js → page-2e43c81e158562a0.js} +1 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/artifacts/new/{page-5150a6de8b80c4b4.js → page-2e43c81e158562a0.js} +1 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/artifacts/page-dd9e16945491737d.js +1 -0
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/components/[dataComponentId]/{page-664381776dad1c85.js → page-2b77c77bed9fbfcc.js} +1 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/components/new/{page-664381776dad1c85.js → page-2b77c77bed9fbfcc.js} +1 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/components/page-4d6990d637c3ba5c.js +1 -0
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/credentials/[credentialId]/page-f456c1f81a40f1c3.js +1 -0
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/credentials/new/bearer/page-d1452a13c2ee9d0d.js +1 -0
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/credentials/new/providers/[providerId]/page-77cbe12d91c9686d.js +1 -0
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/credentials/page-5bacdd5a2d356171.js +1 -0
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/graphs/{page-d0db257541c6509a.js → page-bc285c8af02e4d0d.js} +1 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/mcp-servers/[mcpServerId]/edit/{page-9a01d68fffd96a5a.js → page-47e05b780d833993.js} +1 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/mcp-servers/new/{page-c8b2486c3ad4a568.js → page-3205eb5eeafabc8d.js} +1 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/mcp-servers/page-702d5e34d6d3732d.js +1 -0
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/settings/{page-b248a0ea8649e4f3.js → page-d4ed56f83b32d76d.js} +1 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/traces/{page-dfdb58eb7760e57d.js → page-ee4741ab645e82b7.js} +1 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/{page-55e12f6eb0a99f77.js → page-220cc49bc373cc00.js} +1 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/layout-0c5129266314fc4b.js +1 -0
- package/.next/standalone/agents-manage-ui/.next/static/css/{4891c14dcbd99183.css → de01a13d5d320f2f.css} +1 -1
- package/.next/standalone/agents-manage-ui/package.json +1 -1
- package/.next/standalone/package.json +3 -4
- package/.next/standalone/packages/agents-core/package.json +3 -4
- package/package.json +4 -4
- package/src/components/form/expandable-json-editor.tsx +1 -1
- package/src/components/graph/sidepane/sidepane.tsx +1 -0
- package/.next/standalone/agents-manage-ui/.next/server/chunks/209.js +0 -1
- package/.next/standalone/agents-manage-ui/.next/server/chunks/2314.js +0 -1
- package/.next/standalone/agents-manage-ui/.next/server/chunks/4038.js +0 -1
- package/.next/standalone/agents-manage-ui/.next/server/chunks/9237.js +0 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/6497-95887fafcaf35d31.js +0 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/7167-730aff54edcfb10c.js +0 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/7885-0b12122c31695e33.js +0 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/9644-54e28306f3abe125.js +0 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/api-keys/page-6d39fab4d195c19a.js +0 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/artifacts/page-1c17260377b32c91.js +0 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/components/page-d84ad34da5dc5af8.js +0 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/credentials/[credentialId]/page-51ae865fa7c52430.js +0 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/credentials/new/bearer/page-9adfab93a442927d.js +0 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/credentials/new/providers/[providerId]/page-dda2db18ed173e31.js +0 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/credentials/page-f4c25df5d1755217.js +0 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/[tenantId]/projects/[projectId]/mcp-servers/page-a720eff492b73cb2.js +0 -1
- package/.next/standalone/agents-manage-ui/.next/static/chunks/app/layout-f0703e32230d7952.js +0 -1
- /package/.next/standalone/agents-manage-ui/.next/static/{L7WcT2fRRZif5hXZksQdA → qvGhvTmpyg4v8qRz4YoqL}/_buildManifest.js +0 -0
- /package/.next/standalone/agents-manage-ui/.next/static/{L7WcT2fRRZif5hXZksQdA → qvGhvTmpyg4v8qRz4YoqL}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
exports.id=71,exports.ids=[71],exports.modules={15:(a,b,c)=>{"use strict";c.d(b,{Ay:()=>k});let d="object"==typeof self?self:globalThis,e=a=>((a,b)=>{let c=(b,c)=>(a.set(c,b),b),e=f=>{if(a.has(f))return a.get(f);let[g,h]=b[f];switch(g){case 0:case -1:return c(h,f);case 1:{let a=c([],f);for(let b of h)a.push(e(b));return a}case 2:{let a=c({},f);for(let[b,c]of h)a[e(b)]=e(c);return a}case 3:return c(new Date(h),f);case 4:{let{source:a,flags:b}=h;return c(new RegExp(a,b),f)}case 5:{let a=c(new Map,f);for(let[b,c]of h)a.set(e(b),e(c));return a}case 6:{let a=c(new Set,f);for(let b of h)a.add(e(b));return a}case 7:{let{name:a,message:b}=h;return c(new d[a](b),f)}case 8:return c(BigInt(h),f);case"BigInt":return c(Object(BigInt(h)),f);case"ArrayBuffer":return c(new Uint8Array(h).buffer,h);case"DataView":{let{buffer:a}=new Uint8Array(h);return c(new DataView(a),h)}}return c(new d[g](h),f)};return e})(new Map,a)(0),{toString:f}={},{keys:g}=Object,h=a=>{let b=typeof a;if("object"!==b||!a)return[0,b];let c=f.call(a).slice(8,-1);switch(c){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,c]}return c.includes("Array")?[1,c]:c.includes("Error")?[7,c]:[2,c]},i=([a,b])=>0===a&&("function"===b||"symbol"===b),j=(a,{json:b,lossy:c}={})=>{let d=[];return((a,b,c,d)=>{let e=(a,b)=>{let e=d.push(a)-1;return c.set(b,e),e},f=d=>{if(c.has(d))return c.get(d);let[j,k]=h(d);switch(j){case 0:{let b=d;switch(k){case"bigint":j=8,b=d.toString();break;case"function":case"symbol":if(a)throw TypeError("unable to serialize "+k);b=null;break;case"undefined":return e([-1],d)}return e([j,b],d)}case 1:{if(k){let a=d;return"DataView"===k?a=new Uint8Array(d.buffer):"ArrayBuffer"===k&&(a=new Uint8Array(d)),e([k,[...a]],d)}let a=[],b=e([j,a],d);for(let b of d)a.push(f(b));return b}case 2:{if(k)switch(k){case"BigInt":return e([k,d.toString()],d);case"Boolean":case"Number":case"String":return e([k,d.valueOf()],d)}if(b&&"toJSON"in d)return f(d.toJSON());let c=[],l=e([j,c],d);for(let b of g(d))(a||!i(h(d[b])))&&c.push([f(b),f(d[b])]);return l}case 3:return e([j,d.toISOString()],d);case 4:{let{source:a,flags:b}=d;return e([j,{source:a,flags:b}],d)}case 5:{let b=[],c=e([j,b],d);for(let[c,e]of d)(a||!(i(h(c))||i(h(e))))&&b.push([f(c),f(e)]);return c}case 6:{let b=[],c=e([j,b],d);for(let c of d)(a||!i(h(c)))&&b.push(f(c));return c}}let{message:l}=d;return e([j,{name:k,message:l}],d)};return f})(!(b||c),!!b,new Map,d)(a),d},k="function"==typeof structuredClone?(a,b)=>b&&("json"in b||"lossy"in b)?e(j(a,b)):structuredClone(a):(a,b)=>e(j(a,b))},1245:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(89892).A)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]])},3145:(a,b,c)=>{"use strict";c.d(b,{z:()=>n});var d=c(59111),e=c(14450);let f={damping:.7,stiffness:.05,mass:1.25},g=1e3/60,h=!1;function i(a,b){let c=(0,e.useCallback)(b=>(c.current=b,a(b)),b);return c}globalThis.document?.addEventListener("mousedown",()=>{h=!0}),globalThis.document?.addEventListener("mouseup",()=>{h=!1}),globalThis.document?.addEventListener("click",()=>{h=!1});let j=new Map;function k(...a){let b={...f},c=!1;for(let d of a){if("instant"===d){c=!0;continue}"object"==typeof d&&(c=!1,b.damping=d.damping??b.damping,b.stiffness=d.stiffness??b.stiffness,b.mass=d.mass??b.mass)}let d=JSON.stringify(b);return j.has(d)||j.set(d,Object.freeze(b)),c?"instant":j.get(d)}let l=(0,e.createContext)(null),m="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function n({instance:a,children:b,resize:c,initial:f,mass:j,damping:n,stiffness:o,targetScrollTop:p,contextRef:q,...r}){let s=(0,e.useRef)(null),t=((a={})=>{let[b,c]=(0,e.useState)(!1),[d,f]=(0,e.useState)(!1!==a.initial),[j,l]=(0,e.useState)(!1),m=(0,e.useRef)(null);m.current=a;let n=(0,e.useCallback)(()=>{if(!h)return!1;let a=window.getSelection();if(!a||!a.rangeCount)return!1;let b=a.getRangeAt(0);return b.commonAncestorContainer.contains(v.current)||v.current?.contains(b.commonAncestorContainer)},[]),o=(0,e.useCallback)(a=>{q.isAtBottom=a,f(a)},[]),p=(0,e.useCallback)(a=>{q.escapedFromLock=a,c(a)},[]),q=(0,e.useMemo)(()=>{let c;return{escapedFromLock:b,isAtBottom:d,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return v.current?.scrollTop??0},set scrollTop(scrollTop){v.current&&(v.current.scrollTop=scrollTop,q.ignoreScrollToTop=v.current.scrollTop)},get targetScrollTop(){if(!v.current||!w.current)return 0;return v.current.scrollHeight-1-v.current.clientHeight},get calculatedTargetScrollTop(){if(!v.current||!w.current)return 0;let{targetScrollTop:b}=this;if(!a.targetScrollTop)return b;if(c?.targetScrollTop===b)return c.calculatedScrollTop;let d=Math.max(Math.min(a.targetScrollTop(b,{scrollElement:v.current,contentElement:w.current}),b),0);return c={targetScrollTop:b,calculatedScrollTop:d},requestAnimationFrame(()=>{c=void 0}),d},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=70}}},[]),r=(0,e.useCallback)((a={})=>{let b;"string"==typeof a&&(a={animation:a}),a.preserveScrollPosition||o(!0);let c=Date.now()+(Number(a.wait)||0),d=k(m.current,a.animation),{ignoreEscapes:e=!1}=a,f=q.calculatedTargetScrollTop;a.duration instanceof Promise?a.duration.finally(()=>{b=Date.now()}):b=c+(a.duration??0);let h=async()=>{let a=new Promise(requestAnimationFrame).then(()=>{if(!q.isAtBottom)return q.animation=void 0,!1;let{scrollTop:i}=q,j=performance.now(),l=(j-(q.lastTick??j))/g;if(q.animation||(q.animation={behavior:d,promise:a,ignoreEscapes:e}),q.animation.behavior===d&&(q.lastTick=j),n()||c>Date.now())return h();if(i<Math.min(f,q.calculatedTargetScrollTop)){if(q.animation?.behavior===d){if("instant"===d)return q.scrollTop=q.calculatedTargetScrollTop,h();q.velocity=(d.damping*q.velocity+d.stiffness*q.scrollDifference)/d.mass,q.accumulated+=q.velocity*l,q.scrollTop+=q.accumulated,q.scrollTop!==i&&(q.accumulated=0)}return h()}return b>Date.now()?(f=q.calculatedTargetScrollTop,h()):(q.animation=void 0,q.scrollTop<q.calculatedTargetScrollTop)?r({animation:k(m.current,m.current.resize),ignoreEscapes:e,duration:Math.max(0,b-Date.now())||void 0}):q.isAtBottom});return a.then(a=>(requestAnimationFrame(()=>{q.animation||(q.lastTick=void 0,q.velocity=0)}),a))};return(!0!==a.wait&&(q.animation=void 0),q.animation?.behavior===d)?q.animation.promise:h()},[o,n,q]),s=(0,e.useCallback)(()=>{p(!0),o(!1)},[p,o]),t=(0,e.useCallback)(({target:a})=>{if(a!==v.current)return;let{scrollTop:b,ignoreScrollToTop:c}=q,{lastScrollTop:d=b}=q;q.lastScrollTop=b,q.ignoreScrollToTop=void 0,c&&c>b&&(d=c),l(q.isNearBottom),setTimeout(()=>{if(q.resizeDifference||b===c)return;if(n()){p(!0),o(!1);return}let a=b>d,e=b<d;if(q.animation?.ignoreEscapes){q.scrollTop=d;return}e&&(p(!0),o(!1)),a&&p(!1),!q.escapedFromLock&&q.isNearBottom&&o(!0)},1)},[p,o,n,q]),u=(0,e.useCallback)(({target:a,deltaY:b})=>{let c=a;for(;!["scroll","auto"].includes(getComputedStyle(c).overflow);){if(!c.parentElement)return;c=c.parentElement}c===v.current&&b<0&&v.current.scrollHeight>v.current.clientHeight&&!q.animation?.ignoreEscapes&&(p(!0),o(!1))},[p,o,q]),v=i(a=>{v.current?.removeEventListener("scroll",t),v.current?.removeEventListener("wheel",u),a?.addEventListener("scroll",t,{passive:!0}),a?.addEventListener("wheel",u,{passive:!0})},[]),w=i(a=>{let b;q.resizeObserver?.disconnect(),a&&(q.resizeObserver=new ResizeObserver(([a])=>{let{height:c}=a.contentRect,d=c-(b??c);if(q.resizeDifference=d,q.scrollTop>q.targetScrollTop&&(q.scrollTop=q.targetScrollTop),l(q.isNearBottom),d>=0){let a=k(m.current,b?m.current.resize:m.current.initial);r({animation:a,wait:!0,preserveScrollPosition:!0,duration:"instant"===a?void 0:350})}else q.isNearBottom&&(p(!1),o(!0));b=c,requestAnimationFrame(()=>{setTimeout(()=>{q.resizeDifference===d&&(q.resizeDifference=0)},1)})}),q.resizeObserver?.observe(a))},[]);return{contentRef:w,scrollRef:v,scrollToBottom:r,stopScroll:s,isAtBottom:d||j,isNearBottom:j,escapedFromLock:b,state:q}})({mass:j,damping:n,stiffness:o,resize:c,initial:f,targetScrollTop:e.useCallback((a,b)=>{let c=B?.targetScrollTop??p;return c?.(a,b)??a},[p])}),{scrollRef:u,contentRef:v,scrollToBottom:w,stopScroll:x,isAtBottom:y,escapedFromLock:z,state:A}=a??t,B=(0,e.useMemo)(()=>({scrollToBottom:w,stopScroll:x,scrollRef:u,isAtBottom:y,escapedFromLock:z,contentRef:v,state:A,get targetScrollTop(){return s.current},set targetScrollTop(targetScrollTop){s.current=targetScrollTop}}),[w,y,v,u,x,z,A]);return(0,e.useImperativeHandle)(q,()=>B,[B]),m(()=>{u.current&&"visible"===getComputedStyle(u.current).overflow&&(u.current.style.overflow="auto")},[]),(0,d.jsx)(l.Provider,{value:B,children:(0,d.jsx)("div",{...r,children:"function"==typeof b?b(B):b})})}(n||(n={})).Content=function({children:a,...b}){let c=function(){let a=(0,e.useContext)(l);if(!a)throw Error("use-stick-to-bottom component context must be used within a StickToBottom component");return a}();return(0,d.jsx)("div",{ref:c.scrollRef,style:{height:"100%",width:"100%"},children:(0,d.jsx)("div",{...b,ref:c.contentRef,children:"function"==typeof a?a(c):a})})}},4216:(a,b,c)=>{"use strict";function d(a){return a.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}c.d(b,{B:()=>d})},4226:function(a,b,c){"use strict";var d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.default=function(a,b){var c=null;if(!a||"string"!=typeof a)return c;var d=(0,e.default)(a),f="function"==typeof b;return d.forEach(function(a){if("declaration"===a.type){var d=a.property,e=a.value;f?b(d,e,a):e&&((c=c||{})[d]=e)}}),c};var e=d(c(51569))},4304:(a,b,c)=>{"use strict";function d(a){let b=[],c=String(a||""),d=c.indexOf(","),e=0,f=!1;for(;!f;){-1===d&&(d=c.length,f=!0);let a=c.slice(e,d).trim();(a||!f)&&b.push(a),e=d+1,d=c.indexOf(",",e)}return b}function e(a,b){let c=b||{};return(""===a[a.length-1]?[...a,""]:a).join((c.padRight?" ":"")+","+(!1===c.padLeft?"":" ")).trim()}c.d(b,{A:()=>e,q:()=>d})},6757:(a,b,c)=>{"use strict";c.d(b,{A:()=>aH});var d=c(78198),e=c(95458),f=c(93045),g=c(83146),h=c(58751);let i="phrasing",j=["autolink","link","image","label"];function k(a){this.enter({type:"link",title:null,url:"",children:[]},a)}function l(a){this.config.enter.autolinkProtocol.call(this,a)}function m(a){this.config.exit.autolinkProtocol.call(this,a)}function n(a){this.config.exit.data.call(this,a);let b=this.stack[this.stack.length-1];(0,e.ok)("link"===b.type),b.url="http://"+this.sliceSerialize(a)}function o(a){this.config.exit.autolinkEmail.call(this,a)}function p(a){this.exit(a)}function q(a){!function(a,b,c){let d=(0,h.C)((c||{}).ignore||[]),e=function(a){let b=[];if(!Array.isArray(a))throw TypeError("Expected find and replace tuple or list of tuples");let c=!a[0]||Array.isArray(a[0])?a:[a],d=-1;for(;++d<c.length;){var e;let a=c[d];b.push(["string"==typeof(e=a[0])?RegExp(function(a){if("string"!=typeof a)throw TypeError("Expected a string");return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e,function(a){return"function"==typeof a?a:function(){return a}}(a[1])])}return b}(b),f=-1;for(;++f<e.length;)(0,g.VG)(a,"text",i);function i(a,b){let c,g=-1;for(;++g<b.length;){let a=b[g],e=c?c.children:void 0;if(d(a,e?e.indexOf(a):void 0,c))return;c=a}if(c)return function(a,b){let c=b[b.length-1],d=e[f][0],g=e[f][1],h=0,i=c.children.indexOf(a),j=!1,k=[];d.lastIndex=0;let l=d.exec(a.value);for(;l;){let c=l.index,e={index:l.index,input:l.input,stack:[...b,a]},f=g(...l,e);if("string"==typeof f&&(f=f.length>0?{type:"text",value:f}:void 0),!1===f?d.lastIndex=c+1:(h!==c&&k.push({type:"text",value:a.value.slice(h,c)}),Array.isArray(f)?k.push(...f):f&&k.push(f),h=c+l[0].length,j=!0),!d.global)break;l=d.exec(a.value)}return j?(h<a.value.length&&k.push({type:"text",value:a.value.slice(h)}),c.children.splice(i,1,...k)):k=[a],i+k.length}(a,b)}}(a,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,r],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,s]],{ignore:["link","linkReference"]})}function r(a,b,c,e,f){let g="";if(!t(f)||(/^w/i.test(b)&&(c=b+c,b="",g="http://"),!function(a){let b=a.split(".");return!(b.length<2||b[b.length-1]&&(/_/.test(b[b.length-1])||!/[a-zA-Z\d]/.test(b[b.length-1]))||b[b.length-2]&&(/_/.test(b[b.length-2])||!/[a-zA-Z\d]/.test(b[b.length-2])))}(c)))return!1;let h=function(a){let b=/[!"&'),.:;<>?\]}]+$/.exec(a);if(!b)return[a,void 0];a=a.slice(0,b.index);let c=b[0],e=c.indexOf(")"),f=(0,d.D)(a,"("),g=(0,d.D)(a,")");for(;-1!==e&&f>g;)a+=c.slice(0,e+1),e=(c=c.slice(e+1)).indexOf(")"),g++;return[a,c]}(c+e);if(!h[0])return!1;let i={type:"link",title:null,url:g+b+h[0],children:[{type:"text",value:b+h[0]}]};return h[1]?[i,{type:"text",value:h[1]}]:i}function s(a,b,c,d){return!(!t(d,!0)||/[-\d_]$/.test(c))&&{type:"link",title:null,url:"mailto:"+b+"@"+c,children:[{type:"text",value:b+"@"+c}]}}function t(a,b){let c=a.input.charCodeAt(a.index-1);return(0===a.index||(0,f.Ny)(c)||(0,f.es)(c))&&(!b||47!==c)}var u=c(4216);function v(){this.buffer()}function w(a){this.enter({type:"footnoteReference",identifier:"",label:""},a)}function x(){this.buffer()}function y(a){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},a)}function z(a){let b=this.resume(),c=this.stack[this.stack.length-1];(0,e.ok)("footnoteReference"===c.type),c.identifier=(0,u.B)(this.sliceSerialize(a)).toLowerCase(),c.label=b}function A(a){this.exit(a)}function B(a){let b=this.resume(),c=this.stack[this.stack.length-1];(0,e.ok)("footnoteDefinition"===c.type),c.identifier=(0,u.B)(this.sliceSerialize(a)).toLowerCase(),c.label=b}function C(a){this.exit(a)}function D(a,b,c,d){let e=c.createTracker(d),f=e.move("[^"),g=c.enter("footnoteReference"),h=c.enter("reference");return f+=e.move(c.safe(c.associationId(a),{after:"]",before:f})),h(),g(),f+=e.move("]")}function E(a,b,c){return 0===b?a:F(a,b,c)}function F(a,b,c){return(c?"":" ")+a}D.peek=function(){return"["};let G=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function H(a){this.enter({type:"delete",children:[]},a)}function I(a){this.exit(a)}function J(a,b,c,d){let e=c.createTracker(d),f=c.enter("strikethrough"),g=e.move("~~");return g+=c.containerPhrasing(a,{...e.current(),before:g,after:"~"}),g+=e.move("~~"),f(),g}function K(a){return a.length}function L(a){let b="string"==typeof a?a.codePointAt(0):0;return 67===b||99===b?99:76===b||108===b?108:114*(82===b||114===b)}J.peek=function(){return"~"};c(14381);var M=c(14806);c(9188);c(13895);function N(a,b,c){let d=a.value||"",e="`",f=-1;for(;RegExp("(^|[^`])"+e+"([^`]|$)").test(d);)e+="`";for(/[^ \r\n]/.test(d)&&(/^[ \r\n]/.test(d)&&/[ \r\n]$/.test(d)||/^`|`$/.test(d))&&(d=" "+d+" ");++f<c.unsafe.length;){let a,b=c.unsafe[f],e=c.compilePattern(b);if(b.atBreak)for(;a=e.exec(d);){let b=a.index;10===d.charCodeAt(b)&&13===d.charCodeAt(b-1)&&b--,d=d.slice(0,b)+" "+d.slice(a.index+1)}}return e+d+e}N.peek=function(){return"`"};(0,h.C)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let O={inlineCode:N,listItem:function(a,b,c,d){let e=function(a){let b=a.options.listItemIndent||"one";if("tab"!==b&&"one"!==b&&"mixed"!==b)throw Error("Cannot serialize items with `"+b+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return b}(c),f=c.bulletCurrent||function(a){let b=a.options.bullet||"*";if("*"!==b&&"+"!==b&&"-"!==b)throw Error("Cannot serialize items with `"+b+"` for `options.bullet`, expected `*`, `+`, or `-`");return b}(c);b&&"list"===b.type&&b.ordered&&(f=("number"==typeof b.start&&b.start>-1?b.start:1)+(!1===c.options.incrementListMarker?0:b.children.indexOf(a))+f);let g=f.length+1;("tab"===e||"mixed"===e&&(b&&"list"===b.type&&b.spread||a.spread))&&(g=4*Math.ceil(g/4));let h=c.createTracker(d);h.move(f+" ".repeat(g-f.length)),h.shift(g);let i=c.enter("listItem"),j=c.indentLines(c.containerFlow(a,h.current()),function(a,b,c){return b?(c?"":" ".repeat(g))+a:(c?f:f+" ".repeat(g-f.length))+a});return i(),j}};function P(a){let b=a._align;(0,e.ok)(b,"expected `_align` on table"),this.enter({type:"table",align:b.map(function(a){return"none"===a?null:a}),children:[]},a),this.data.inTable=!0}function Q(a){this.exit(a),this.data.inTable=void 0}function R(a){this.enter({type:"tableRow",children:[]},a)}function S(a){this.exit(a)}function T(a){this.enter({type:"tableCell",children:[]},a)}function U(a){let b=this.resume();this.data.inTable&&(b=b.replace(/\\([\\|])/g,V));let c=this.stack[this.stack.length-1];(0,e.ok)("inlineCode"===c.type),c.value=b,this.exit(a)}function V(a,b){return"|"===b?b:a}function W(a){let b=this.stack[this.stack.length-2];(0,e.ok)("listItem"===b.type),b.checked="taskListCheckValueChecked"===a.type}function X(a){let b=this.stack[this.stack.length-2];if(b&&"listItem"===b.type&&"boolean"==typeof b.checked){let a=this.stack[this.stack.length-1];(0,e.ok)("paragraph"===a.type);let c=a.children[0];if(c&&"text"===c.type){let d,e=b.children,f=-1;for(;++f<e.length;){let a=e[f];if("paragraph"===a.type){d=a;break}}d===a&&(c.value=c.value.slice(1),0===c.value.length?a.children.shift():a.position&&c.position&&"number"==typeof c.position.start.offset&&(c.position.start.column++,c.position.start.offset++,a.position.start=Object.assign({},c.position.start)))}}this.exit(a)}function Y(a,b,c,d){let e=a.children[0],f="boolean"==typeof a.checked&&e&&"paragraph"===e.type,g="["+(a.checked?"x":" ")+"] ",h=c.createTracker(d);f&&h.move(g);let i=O.listItem(a,b,c,{...d,...h.current()});return f&&(i=i.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(a){return a+g})),i}var Z=c(29022);let $={tokenize:function(a,b,c){let d=0;return function b(f){return(87===f||119===f)&&d<3?(d++,a.consume(f),b):46===f&&3===d?(a.consume(f),e):c(f)};function e(a){return null===a?c(a):b(a)}},partial:!0},_={tokenize:function(a,b,c){let d,e,g;return h;function h(b){return 46===b||95===b?a.check(ab,j,i)(b):null===b||(0,f.Ee)(b)||(0,f.Ny)(b)||45!==b&&(0,f.es)(b)?j(b):(g=!0,a.consume(b),h)}function i(b){return 95===b?d=!0:(e=d,d=void 0),a.consume(b),h}function j(a){return e||d||!g?c(a):b(a)}},partial:!0},aa={tokenize:function(a,b){let c=0,d=0;return e;function e(h){return 40===h?(c++,a.consume(h),e):41===h&&d<c?g(h):33===h||34===h||38===h||39===h||41===h||42===h||44===h||46===h||58===h||59===h||60===h||63===h||93===h||95===h||126===h?a.check(ab,b,g)(h):null===h||(0,f.Ee)(h)||(0,f.Ny)(h)?b(h):(a.consume(h),e)}function g(b){return 41===b&&d++,a.consume(b),e}},partial:!0},ab={tokenize:function(a,b,c){return d;function d(h){return 33===h||34===h||39===h||41===h||42===h||44===h||46===h||58===h||59===h||63===h||95===h||126===h?(a.consume(h),d):38===h?(a.consume(h),g):93===h?(a.consume(h),e):60===h||null===h||(0,f.Ee)(h)||(0,f.Ny)(h)?b(h):c(h)}function e(a){return null===a||40===a||91===a||(0,f.Ee)(a)||(0,f.Ny)(a)?b(a):d(a)}function g(b){return(0,f.CW)(b)?function b(e){return 59===e?(a.consume(e),d):(0,f.CW)(e)?(a.consume(e),b):c(e)}(b):c(b)}},partial:!0},ac={tokenize:function(a,b,c){return function(b){return a.consume(b),d};function d(a){return(0,f.lV)(a)?c(a):b(a)}},partial:!0},ad={name:"wwwAutolink",tokenize:function(a,b,c){let d=this;return function(b){return 87!==b&&119!==b||!ai.call(d,d.previous)||am(d.events)?c(b):(a.enter("literalAutolink"),a.enter("literalAutolinkWww"),a.check($,a.attempt(_,a.attempt(aa,e),c),c)(b))};function e(c){return a.exit("literalAutolinkWww"),a.exit("literalAutolink"),b(c)}},previous:ai},ae={name:"protocolAutolink",tokenize:function(a,b,c){let d=this,e="",g=!1;return function(b){return(72===b||104===b)&&aj.call(d,d.previous)&&!am(d.events)?(a.enter("literalAutolink"),a.enter("literalAutolinkHttp"),e+=String.fromCodePoint(b),a.consume(b),h):c(b)};function h(b){if((0,f.CW)(b)&&e.length<5)return e+=String.fromCodePoint(b),a.consume(b),h;if(58===b){let c=e.toLowerCase();if("http"===c||"https"===c)return a.consume(b),i}return c(b)}function i(b){return 47===b?(a.consume(b),g)?j:(g=!0,i):c(b)}function j(b){return null===b||(0,f.JQ)(b)||(0,f.Ee)(b)||(0,f.Ny)(b)||(0,f.es)(b)?c(b):a.attempt(_,a.attempt(aa,k),c)(b)}function k(c){return a.exit("literalAutolinkHttp"),a.exit("literalAutolink"),b(c)}},previous:aj},af={name:"emailAutolink",tokenize:function(a,b,c){let d,e,g=this;return function(b){return!al(b)||!ak.call(g,g.previous)||am(g.events)?c(b):(a.enter("literalAutolink"),a.enter("literalAutolinkEmail"),function b(d){return al(d)?(a.consume(d),b):64===d?(a.consume(d),h):c(d)}(b))};function h(b){return 46===b?a.check(ac,j,i)(b):45===b||95===b||(0,f.lV)(b)?(e=!0,a.consume(b),h):j(b)}function i(b){return a.consume(b),d=!0,h}function j(h){return e&&d&&(0,f.CW)(g.previous)?(a.exit("literalAutolinkEmail"),a.exit("literalAutolink"),b(h)):c(h)}},previous:ak},ag={},ah=48;for(;ah<123;)ag[ah]=af,58==++ah?ah=65:91===ah&&(ah=97);function ai(a){return null===a||40===a||42===a||95===a||91===a||93===a||126===a||(0,f.Ee)(a)}function aj(a){return!(0,f.CW)(a)}function ak(a){return!(47===a||al(a))}function al(a){return 43===a||45===a||46===a||95===a||(0,f.lV)(a)}function am(a){let b=a.length,c=!1;for(;b--;){let d=a[b][1];if(("labelLink"===d.type||"labelImage"===d.type)&&!d._balanced){c=!0;break}if(d._gfmAutolinkLiteralWalkedInto){c=!1;break}}return a.length>0&&!c&&(a[a.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),c}ag[43]=af,ag[45]=af,ag[46]=af,ag[95]=af,ag[72]=[af,ae],ag[104]=[af,ae],ag[87]=[af,ad],ag[119]=[af,ad];var an=c(24739),ao=c(50698);let ap={tokenize:function(a,b,c){let d=this;return(0,ao.N)(a,function(a){let e=d.events[d.events.length-1];return e&&"gfmFootnoteDefinitionIndent"===e[1].type&&4===e[2].sliceSerialize(e[1],!0).length?b(a):c(a)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function aq(a,b,c){let d,e=this,f=e.events.length,g=e.parser.gfmFootnotes||(e.parser.gfmFootnotes=[]);for(;f--;){let a=e.events[f][1];if("labelImage"===a.type){d=a;break}if("gfmFootnoteCall"===a.type||"labelLink"===a.type||"label"===a.type||"image"===a.type||"link"===a.type)break}return function(f){if(!d||!d._balanced)return c(f);let h=(0,u.B)(e.sliceSerialize({start:d.end,end:e.now()}));return 94===h.codePointAt(0)&&g.includes(h.slice(1))?(a.enter("gfmFootnoteCallLabelMarker"),a.consume(f),a.exit("gfmFootnoteCallLabelMarker"),b(f)):c(f)}}function ar(a,b){let c=a.length;for(;c--;)if("labelImage"===a[c][1].type&&"enter"===a[c][0]){a[c][1];break}a[c+1][1].type="data",a[c+3][1].type="gfmFootnoteCallLabelMarker";let d={type:"gfmFootnoteCall",start:Object.assign({},a[c+3][1].start),end:Object.assign({},a[a.length-1][1].end)},e={type:"gfmFootnoteCallMarker",start:Object.assign({},a[c+3][1].end),end:Object.assign({},a[c+3][1].end)};e.end.column++,e.end.offset++,e.end._bufferIndex++;let f={type:"gfmFootnoteCallString",start:Object.assign({},e.end),end:Object.assign({},a[a.length-1][1].start)},g={type:"chunkString",contentType:"string",start:Object.assign({},f.start),end:Object.assign({},f.end)},h=[a[c+1],a[c+2],["enter",d,b],a[c+3],a[c+4],["enter",e,b],["exit",e,b],["enter",f,b],["enter",g,b],["exit",g,b],["exit",f,b],a[a.length-2],a[a.length-1],["exit",d,b]];return a.splice(c,a.length-c+1,...h),a}function as(a,b,c){let d,e=this,g=e.parser.gfmFootnotes||(e.parser.gfmFootnotes=[]),h=0;return function(b){return a.enter("gfmFootnoteCall"),a.enter("gfmFootnoteCallLabelMarker"),a.consume(b),a.exit("gfmFootnoteCallLabelMarker"),i};function i(b){return 94!==b?c(b):(a.enter("gfmFootnoteCallMarker"),a.consume(b),a.exit("gfmFootnoteCallMarker"),a.enter("gfmFootnoteCallString"),a.enter("chunkString").contentType="string",j)}function j(i){if(h>999||93===i&&!d||null===i||91===i||(0,f.Ee)(i))return c(i);if(93===i){a.exit("chunkString");let d=a.exit("gfmFootnoteCallString");return g.includes((0,u.B)(e.sliceSerialize(d)))?(a.enter("gfmFootnoteCallLabelMarker"),a.consume(i),a.exit("gfmFootnoteCallLabelMarker"),a.exit("gfmFootnoteCall"),b):c(i)}return(0,f.Ee)(i)||(d=!0),h++,a.consume(i),92===i?k:j}function k(b){return 91===b||92===b||93===b?(a.consume(b),h++,j):j(b)}}function at(a,b,c){let d,e,g=this,h=g.parser.gfmFootnotes||(g.parser.gfmFootnotes=[]),i=0;return function(b){return a.enter("gfmFootnoteDefinition")._container=!0,a.enter("gfmFootnoteDefinitionLabel"),a.enter("gfmFootnoteDefinitionLabelMarker"),a.consume(b),a.exit("gfmFootnoteDefinitionLabelMarker"),j};function j(b){return 94===b?(a.enter("gfmFootnoteDefinitionMarker"),a.consume(b),a.exit("gfmFootnoteDefinitionMarker"),a.enter("gfmFootnoteDefinitionLabelString"),a.enter("chunkString").contentType="string",k):c(b)}function k(b){if(i>999||93===b&&!e||null===b||91===b||(0,f.Ee)(b))return c(b);if(93===b){a.exit("chunkString");let c=a.exit("gfmFootnoteDefinitionLabelString");return d=(0,u.B)(g.sliceSerialize(c)),a.enter("gfmFootnoteDefinitionLabelMarker"),a.consume(b),a.exit("gfmFootnoteDefinitionLabelMarker"),a.exit("gfmFootnoteDefinitionLabel"),m}return(0,f.Ee)(b)||(e=!0),i++,a.consume(b),92===b?l:k}function l(b){return 91===b||92===b||93===b?(a.consume(b),i++,k):k(b)}function m(b){return 58===b?(a.enter("definitionMarker"),a.consume(b),a.exit("definitionMarker"),h.includes(d)||h.push(d),(0,ao.N)(a,n,"gfmFootnoteDefinitionWhitespace")):c(b)}function n(a){return b(a)}}function au(a,b,c){return a.check(an.B,b,a.attempt(ap,b,c))}function av(a){a.exit("gfmFootnoteDefinition")}var aw=c(98534),ax=c(76094);class ay{constructor(){this.map=[]}add(a,b,c){!function(a,b,c,d){let e=0;if(0!==c||0!==d.length){for(;e<a.map.length;){if(a.map[e][0]===b){a.map[e][1]+=c,a.map[e][2].push(...d);return}e+=1}a.map.push([b,c,d])}}(this,a,b,c)}consume(a){if(this.map.sort(function(a,b){return a[0]-b[0]}),0===this.map.length)return;let b=this.map.length,c=[];for(;b>0;)b-=1,c.push(a.slice(this.map[b][0]+this.map[b][1]),this.map[b][2]),a.length=this.map[b][0];c.push(a.slice()),a.length=0;let d=c.pop();for(;d;){for(let b of d)a.push(b);d=c.pop()}this.map.length=0}}function az(a,b,c){let d,e=this,g=0,h=0;return function(a){let b=e.events.length-1;for(;b>-1;){let a=e.events[b][1].type;if("lineEnding"===a||"linePrefix"===a)b--;else break}let d=b>-1?e.events[b][1].type:null,f="tableHead"===d||"tableRow"===d?t:i;return f===t&&e.parser.lazy[e.now().line]?c(a):f(a)};function i(b){var c;return a.enter("tableHead"),a.enter("tableRow"),124===(c=b)||(d=!0,h+=1),j(c)}function j(b){return null===b?c(b):(0,f.HP)(b)?h>1?(h=0,e.interrupt=!0,a.exit("tableRow"),a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),m):c(b):(0,f.On)(b)?(0,ao.N)(a,j,"whitespace")(b):(h+=1,d&&(d=!1,g+=1),124===b)?(a.enter("tableCellDivider"),a.consume(b),a.exit("tableCellDivider"),d=!0,j):(a.enter("data"),k(b))}function k(b){return null===b||124===b||(0,f.Ee)(b)?(a.exit("data"),j(b)):(a.consume(b),92===b?l:k)}function l(b){return 92===b||124===b?(a.consume(b),k):k(b)}function m(b){return(e.interrupt=!1,e.parser.lazy[e.now().line])?c(b):(a.enter("tableDelimiterRow"),d=!1,(0,f.On)(b))?(0,ao.N)(a,n,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):n(b)}function n(b){return 45===b||58===b?p(b):124===b?(d=!0,a.enter("tableCellDivider"),a.consume(b),a.exit("tableCellDivider"),o):c(b)}function o(b){return(0,f.On)(b)?(0,ao.N)(a,p,"whitespace")(b):p(b)}function p(b){return 58===b?(h+=1,d=!0,a.enter("tableDelimiterMarker"),a.consume(b),a.exit("tableDelimiterMarker"),q):45===b?(h+=1,q(b)):null===b||(0,f.HP)(b)?s(b):c(b)}function q(b){return 45===b?(a.enter("tableDelimiterFiller"),function b(c){return 45===c?(a.consume(c),b):58===c?(d=!0,a.exit("tableDelimiterFiller"),a.enter("tableDelimiterMarker"),a.consume(c),a.exit("tableDelimiterMarker"),r):(a.exit("tableDelimiterFiller"),r(c))}(b)):c(b)}function r(b){return(0,f.On)(b)?(0,ao.N)(a,s,"whitespace")(b):s(b)}function s(e){if(124===e)return n(e);if(null===e||(0,f.HP)(e))return d&&g===h?(a.exit("tableDelimiterRow"),a.exit("tableHead"),b(e)):c(e);return c(e)}function t(b){return a.enter("tableRow"),u(b)}function u(c){return 124===c?(a.enter("tableCellDivider"),a.consume(c),a.exit("tableCellDivider"),u):null===c||(0,f.HP)(c)?(a.exit("tableRow"),b(c)):(0,f.On)(c)?(0,ao.N)(a,u,"whitespace")(c):(a.enter("data"),v(c))}function v(b){return null===b||124===b||(0,f.Ee)(b)?(a.exit("data"),u(b)):(a.consume(b),92===b?w:v)}function w(b){return 92===b||124===b?(a.consume(b),v):v(b)}}function aA(a,b){let c,d,e,f=-1,g=!0,h=0,i=[0,0,0,0],j=[0,0,0,0],k=!1,l=0,m=new ay;for(;++f<a.length;){let n=a[f],o=n[1];"enter"===n[0]?"tableHead"===o.type?(k=!1,0!==l&&(aC(m,b,l,c,d),d=void 0,l=0),c={type:"table",start:Object.assign({},o.start),end:Object.assign({},o.end)},m.add(f,0,[["enter",c,b]])):"tableRow"===o.type||"tableDelimiterRow"===o.type?(g=!0,e=void 0,i=[0,0,0,0],j=[0,f+1,0,0],k&&(k=!1,d={type:"tableBody",start:Object.assign({},o.start),end:Object.assign({},o.end)},m.add(f,0,[["enter",d,b]])),h="tableDelimiterRow"===o.type?2:d?3:1):h&&("data"===o.type||"tableDelimiterMarker"===o.type||"tableDelimiterFiller"===o.type)?(g=!1,0===j[2]&&(0!==i[1]&&(j[0]=j[1],e=aB(m,b,i,h,void 0,e),i=[0,0,0,0]),j[2]=f)):"tableCellDivider"===o.type&&(g?g=!1:(0!==i[1]&&(j[0]=j[1],e=aB(m,b,i,h,void 0,e)),j=[(i=j)[1],f,0,0])):"tableHead"===o.type?(k=!0,l=f):"tableRow"===o.type||"tableDelimiterRow"===o.type?(l=f,0!==i[1]?(j[0]=j[1],e=aB(m,b,i,h,f,e)):0!==j[1]&&(e=aB(m,b,j,h,f,e)),h=0):h&&("data"===o.type||"tableDelimiterMarker"===o.type||"tableDelimiterFiller"===o.type)&&(j[3]=f)}for(0!==l&&aC(m,b,l,c,d),m.consume(b.events),f=-1;++f<b.events.length;){let a=b.events[f];"enter"===a[0]&&"table"===a[1].type&&(a[1]._align=function(a,b){let c=!1,d=[];for(;b<a.length;){let e=a[b];if(c){if("enter"===e[0])"tableContent"===e[1].type&&d.push("tableDelimiterMarker"===a[b+1][1].type?"left":"none");else if("tableContent"===e[1].type){if("tableDelimiterMarker"===a[b-1][1].type){let a=d.length-1;d[a]="left"===d[a]?"center":"right"}}else if("tableDelimiterRow"===e[1].type)break}else"enter"===e[0]&&"tableDelimiterRow"===e[1].type&&(c=!0);b+=1}return d}(b.events,f))}return a}function aB(a,b,c,d,e,f){0!==c[0]&&(f.end=Object.assign({},aD(b.events,c[0])),a.add(c[0],0,[["exit",f,b]]));let g=aD(b.events,c[1]);if(f={type:1===d?"tableHeader":2===d?"tableDelimiter":"tableData",start:Object.assign({},g),end:Object.assign({},g)},a.add(c[1],0,[["enter",f,b]]),0!==c[2]){let e=aD(b.events,c[2]),f=aD(b.events,c[3]),g={type:"tableContent",start:Object.assign({},e),end:Object.assign({},f)};if(a.add(c[2],0,[["enter",g,b]]),2!==d){let d=b.events[c[2]],e=b.events[c[3]];if(d[1].end=Object.assign({},e[1].end),d[1].type="chunkText",d[1].contentType="text",c[3]>c[2]+1){let b=c[2]+1,d=c[3]-c[2]-1;a.add(b,d,[])}}a.add(c[3]+1,0,[["exit",g,b]])}return void 0!==e&&(f.end=Object.assign({},aD(b.events,e)),a.add(e,0,[["exit",f,b]]),f=void 0),f}function aC(a,b,c,d,e){let f=[],g=aD(b.events,c);e&&(e.end=Object.assign({},g),f.push(["exit",e,b])),d.end=Object.assign({},g),f.push(["exit",d,b]),a.add(c+1,0,f)}function aD(a,b){let c=a[b],d="enter"===c[0]?"start":"end";return c[1][d]}let aE={name:"tasklistCheck",tokenize:function(a,b,c){let d=this;return function(b){return null===d.previous&&d._gfmTasklistFirstContentOfListItem?(a.enter("taskListCheck"),a.enter("taskListCheckMarker"),a.consume(b),a.exit("taskListCheckMarker"),e):c(b)};function e(b){return(0,f.Ee)(b)?(a.enter("taskListCheckValueUnchecked"),a.consume(b),a.exit("taskListCheckValueUnchecked"),g):88===b||120===b?(a.enter("taskListCheckValueChecked"),a.consume(b),a.exit("taskListCheckValueChecked"),g):c(b)}function g(b){return 93===b?(a.enter("taskListCheckMarker"),a.consume(b),a.exit("taskListCheckMarker"),a.exit("taskListCheck"),h):c(b)}function h(d){return(0,f.HP)(d)?b(d):(0,f.On)(d)?a.check({tokenize:aF},b,c)(d):c(d)}}};function aF(a,b,c){return(0,ao.N)(a,function(a){return null===a?c(a):b(a)},"whitespace")}let aG={};function aH(a){let b,c=a||aG,d=this.data(),e=d.micromarkExtensions||(d.micromarkExtensions=[]),f=d.fromMarkdownExtensions||(d.fromMarkdownExtensions=[]),g=d.toMarkdownExtensions||(d.toMarkdownExtensions=[]);e.push((0,Z.y)([{text:ag},{document:{91:{name:"gfmFootnoteDefinition",tokenize:at,continuation:{tokenize:au},exit:av}},text:{91:{name:"gfmFootnoteCall",tokenize:as},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:aq,resolveTo:ar}}},function(a){let b=(a||{}).singleTilde,c={name:"strikethrough",tokenize:function(a,c,d){let e=this.previous,f=this.events,g=0;return function(h){return 126===e&&"characterEscape"!==f[f.length-1][1].type?d(h):(a.enter("strikethroughSequenceTemporary"),function f(h){let i=(0,M.S)(e);if(126===h)return g>1?d(h):(a.consume(h),g++,f);if(g<2&&!b)return d(h);let j=a.exit("strikethroughSequenceTemporary"),k=(0,M.S)(h);return j._open=!k||2===k&&!!i,j._close=!i||2===i&&!!k,c(h)}(h))}},resolveAll:function(a,b){let c=-1;for(;++c<a.length;)if("enter"===a[c][0]&&"strikethroughSequenceTemporary"===a[c][1].type&&a[c][1]._close){let d=c;for(;d--;)if("exit"===a[d][0]&&"strikethroughSequenceTemporary"===a[d][1].type&&a[d][1]._open&&a[c][1].end.offset-a[c][1].start.offset==a[d][1].end.offset-a[d][1].start.offset){a[c][1].type="strikethroughSequence",a[d][1].type="strikethroughSequence";let e={type:"strikethrough",start:Object.assign({},a[d][1].start),end:Object.assign({},a[c][1].end)},f={type:"strikethroughText",start:Object.assign({},a[d][1].end),end:Object.assign({},a[c][1].start)},g=[["enter",e,b],["enter",a[d][1],b],["exit",a[d][1],b],["enter",f,b]],h=b.parser.constructs.insideSpan.null;h&&(0,aw.m)(g,g.length,0,(0,ax.W)(h,a.slice(d+1,c),b)),(0,aw.m)(g,g.length,0,[["exit",f,b],["enter",a[c][1],b],["exit",a[c][1],b],["exit",e,b]]),(0,aw.m)(a,d-1,c-d+3,g),c=d+g.length-2;break}}for(c=-1;++c<a.length;)"strikethroughSequenceTemporary"===a[c][1].type&&(a[c][1].type="data");return a}};return null==b&&(b=!0),{text:{126:c},insideSpan:{null:[c]},attentionMarkers:{null:[126]}}}(c),{flow:{null:{name:"table",tokenize:az,resolveAll:aA}}},{text:{91:aE}}])),f.push([{transforms:[q],enter:{literalAutolink:k,literalAutolinkEmail:l,literalAutolinkHttp:l,literalAutolinkWww:l},exit:{literalAutolink:p,literalAutolinkEmail:o,literalAutolinkHttp:m,literalAutolinkWww:n}},{enter:{gfmFootnoteCallString:v,gfmFootnoteCall:w,gfmFootnoteDefinitionLabelString:x,gfmFootnoteDefinition:y},exit:{gfmFootnoteCallString:z,gfmFootnoteCall:A,gfmFootnoteDefinitionLabelString:B,gfmFootnoteDefinition:C}},{canContainEols:["delete"],enter:{strikethrough:H},exit:{strikethrough:I}},{enter:{table:P,tableData:T,tableHeader:T,tableRow:R},exit:{codeText:U,table:Q,tableData:S,tableHeader:S,tableRow:S}},{exit:{taskListCheckValueChecked:W,taskListCheckValueUnchecked:W,paragraph:X}}]),g.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:i,notInConstruct:j},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:i,notInConstruct:j},{character:":",before:"[ps]",after:"\\/",inConstruct:i,notInConstruct:j}]},(b=!1,c&&c.firstLineBlank&&(b=!0),{handlers:{footnoteDefinition:function(a,c,d,e){let f=d.createTracker(e),g=f.move("[^"),h=d.enter("footnoteDefinition"),i=d.enter("label");return g+=f.move(d.safe(d.associationId(a),{before:g,after:"]"})),i(),g+=f.move("]:"),a.children&&a.children.length>0&&(f.shift(4),g+=f.move((b?"\n":" ")+d.indentLines(d.containerFlow(a,f.current()),b?F:E))),h(),g},footnoteReference:D},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:G}],handlers:{delete:J}},function(a){let b=a||{},c=b.tableCellPadding,d=b.tablePipeAlign,e=b.stringLength,f=c?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(a,b,c){let d=O.inlineCode(a,b,c);return c.stack.includes("tableCell")&&(d=d.replace(/\|/g,"\\$&")),d},table:function(a,b,c,d){return h(function(a,b,c){let d=a.children,e=-1,f=[],g=b.enter("table");for(;++e<d.length;)f[e]=i(d[e],b,c);return g(),f}(a,c,d),a.align)},tableCell:g,tableRow:function(a,b,c,d){let e=h([i(a,c,d)]);return e.slice(0,e.indexOf("\n"))}}};function g(a,b,c,d){let e=c.enter("tableCell"),g=c.enter("phrasing"),h=c.containerPhrasing(a,{...d,before:f,after:f});return g(),e(),h}function h(a,b){return function(a,b){let c=b||{},d=(c.align||[]).concat(),e=c.stringLength||K,f=[],g=[],h=[],i=[],j=0,k=-1;for(;++k<a.length;){let b=[],d=[],f=-1;for(a[k].length>j&&(j=a[k].length);++f<a[k].length;){var l;let g=null==(l=a[k][f])?"":String(l);if(!1!==c.alignDelimiters){let a=e(g);d[f]=a,(void 0===i[f]||a>i[f])&&(i[f]=a)}b.push(g)}g[k]=b,h[k]=d}let m=-1;if("object"==typeof d&&"length"in d)for(;++m<j;)f[m]=L(d[m]);else{let a=L(d);for(;++m<j;)f[m]=a}m=-1;let n=[],o=[];for(;++m<j;){let a=f[m],b="",d="";99===a?(b=":",d=":"):108===a?b=":":114===a&&(d=":");let e=!1===c.alignDelimiters?1:Math.max(1,i[m]-b.length-d.length),g=b+"-".repeat(e)+d;!1!==c.alignDelimiters&&((e=b.length+e+d.length)>i[m]&&(i[m]=e),o[m]=e),n[m]=g}g.splice(1,0,n),h.splice(1,0,o),k=-1;let p=[];for(;++k<g.length;){let a=g[k],b=h[k];m=-1;let d=[];for(;++m<j;){let e=a[m]||"",g="",h="";if(!1!==c.alignDelimiters){let a=i[m]-(b[m]||0),c=f[m];114===c?g=" ".repeat(a):99===c?a%2?(g=" ".repeat(a/2+.5),h=" ".repeat(a/2-.5)):h=g=" ".repeat(a/2):h=" ".repeat(a)}!1===c.delimiterStart||m||d.push("|"),!1!==c.padding&&(!1!==c.alignDelimiters||""!==e)&&(!1!==c.delimiterStart||m)&&d.push(" "),!1!==c.alignDelimiters&&d.push(g),d.push(e),!1!==c.alignDelimiters&&d.push(h),!1!==c.padding&&d.push(" "),(!1!==c.delimiterEnd||m!==j-1)&&d.push("|")}p.push(!1===c.delimiterEnd?d.join("").replace(/ +$/,""):d.join(""))}return p.join("\n")}(a,{align:b,alignDelimiters:d,padding:c,stringLength:e})}function i(a,b,c){let d=a.children,e=-1,f=[],h=b.enter("tableRow");for(;++e<d.length;)f[e]=g(d[e],a,b,c);return h(),f}}(c),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Y}}]})}},9188:(a,b,c)=>{"use strict";c.d(b,{YR:()=>e});var d=c(83146);function e(a,b,c,e){let f,g,h;"function"==typeof b&&"function"!=typeof c?(g=void 0,h=b,f=c):(g=b,h=c,f=e),(0,d.VG)(a,g,function(a,b){let c=b[b.length-1],d=c?c.children.indexOf(a):void 0;return h(a,d,c)},f)}},9838:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.camelCase=void 0;var c=/^--[a-zA-Z0-9_-]+$/,d=/-([a-z])/g,e=/^[^-]+$/,f=/^-(webkit|moz|ms|o|khtml)-/,g=/^-(ms)-/,h=function(a,b){return b.toUpperCase()},i=function(a,b){return"".concat(b,"-")};b.camelCase=function(a,b){var j;return(void 0===b&&(b={}),!(j=a)||e.test(j)||c.test(j))?a:(a=a.toLowerCase(),(a=b.reactCompat?a.replace(g,i):a.replace(f,i)).replace(d,h))}},10154:(a,b,c)=>{"use strict";c.d(b,{H:()=>x});var d=c(4304),e=c(95458);let f=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,g=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,h={};function i(a,b){return((b||h).jsx?g:f).test(a)}var j=c(95966),k=c(64432),l=c(66474);let m={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"};var n=c(48427),o=c(96914),p=c(50737),q=c(29956);let r={}.hasOwnProperty,s=new Map,t=/[A-Z]/g,u=new Set(["table","tbody","thead","tfoot","tr"]),v=new Set(["td","th"]),w="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function x(a,b){var c,d,e,f;let g;if(!b||void 0===b.Fragment)throw TypeError("Expected `Fragment` in options");let h=b.filePath||void 0;if(b.development){if("function"!=typeof b.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");c=h,d=b.jsxDEV,g=function(a,b,e,f){let g=Array.isArray(e.children),h=(0,p.PW)(a);return d(b,e,f,g,{columnNumber:h?h.column-1:void 0,fileName:c,lineNumber:h?h.line:void 0},void 0)}}else{if("function"!=typeof b.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof b.jsxs)throw TypeError("Expected `jsxs` in production options");e=b.jsx,f=b.jsxs,g=function(a,b,c,d){let g=Array.isArray(c.children)?f:e;return d?g(b,c,d):g(b,c)}}let i={Fragment:b.Fragment,ancestors:[],components:b.components||{},create:g,elementAttributeNameCase:b.elementAttributeNameCase||"react",evaluater:b.createEvaluater?b.createEvaluater():void 0,filePath:h,ignoreInvalidStyle:b.ignoreInvalidStyle||!1,passKeys:!1!==b.passKeys,passNode:b.passNode||!1,schema:"svg"===b.space?k.JW:k.qy,stylePropertyNameCase:b.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==b.tableCellAlignToStyle},j=y(i,a,void 0);return j&&"string"!=typeof j?j:i.create(a,i.Fragment,{children:j||void 0},void 0)}function y(a,b,c){return"element"===b.type?function(a,b,c){let e=a.schema;"svg"===b.tagName.toLowerCase()&&"html"===e.space&&(a.schema=k.JW),a.ancestors.push(b);let f=C(a,b.tagName,!1),g=function(a,b){let c,e,f={};for(e in b.properties)if("children"!==e&&r.call(b.properties,e)){let g=function(a,b,c){let e=(0,l.I)(a.schema,b);if(!(null==c||"number"==typeof c&&Number.isNaN(c))){if(Array.isArray(c)&&(c=e.commaSeparated?(0,d.A)(c):(0,n.A)(c)),"style"===e.property){let b="object"==typeof c?c:function(a,b){try{return o(b,{reactCompat:!0})}catch(c){if(a.ignoreInvalidStyle)return{};let b=new q.o("Cannot parse `style` attribute",{ancestors:a.ancestors,cause:c,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw b.file=a.filePath||void 0,b.url=w+"#cannot-parse-style-attribute",b}}(a,String(c));return"css"===a.stylePropertyNameCase&&(b=function(a){let b,c={};for(b in a)r.call(a,b)&&(c[function(a){let b=a.replace(t,E);return"ms-"===b.slice(0,3)&&(b="-"+b),b}(b)]=a[b]);return c}(b)),["style",b]}return["react"===a.elementAttributeNameCase&&e.space?m[e.property]||e.property:e.attribute,c]}}(a,e,b.properties[e]);if(g){let[d,e]=g;a.tableCellAlignToStyle&&"align"===d&&"string"==typeof e&&v.has(b.tagName)?c=e:f[d]=e}}return c&&((f.style||(f.style={}))["css"===a.stylePropertyNameCase?"text-align":"textAlign"]=c),f}(a,b),h=B(a,b);return u.has(b.tagName)&&(h=h.filter(function(a){return"string"!=typeof a||!(0,j.m)(a)})),z(a,g,f,b),A(g,h),a.ancestors.pop(),a.schema=e,a.create(b,f,g,c)}(a,b,c):"mdxFlowExpression"===b.type||"mdxTextExpression"===b.type?function(a,b){if(b.data&&b.data.estree&&a.evaluater){let c=b.data.estree.body[0];return(0,e.ok)("ExpressionStatement"===c.type),a.evaluater.evaluateExpression(c.expression)}D(a,b.position)}(a,b):"mdxJsxFlowElement"===b.type||"mdxJsxTextElement"===b.type?function(a,b,c){let d=a.schema;"svg"===b.name&&"html"===d.space&&(a.schema=k.JW),a.ancestors.push(b);let f=null===b.name?a.Fragment:C(a,b.name,!0),g=function(a,b){let c={};for(let d of b.attributes)if("mdxJsxExpressionAttribute"===d.type)if(d.data&&d.data.estree&&a.evaluater){let b=d.data.estree.body[0];(0,e.ok)("ExpressionStatement"===b.type);let f=b.expression;(0,e.ok)("ObjectExpression"===f.type);let g=f.properties[0];(0,e.ok)("SpreadElement"===g.type),Object.assign(c,a.evaluater.evaluateExpression(g.argument))}else D(a,b.position);else{let f,g=d.name;if(d.value&&"object"==typeof d.value)if(d.value.data&&d.value.data.estree&&a.evaluater){let b=d.value.data.estree.body[0];(0,e.ok)("ExpressionStatement"===b.type),f=a.evaluater.evaluateExpression(b.expression)}else D(a,b.position);else f=null===d.value||d.value;c[g]=f}return c}(a,b),h=B(a,b);return z(a,g,f,b),A(g,h),a.ancestors.pop(),a.schema=d,a.create(b,f,g,c)}(a,b,c):"mdxjsEsm"===b.type?function(a,b){if(b.data&&b.data.estree&&a.evaluater)return a.evaluater.evaluateProgram(b.data.estree);D(a,b.position)}(a,b):"root"===b.type?function(a,b,c){let d={};return A(d,B(a,b)),a.create(b,a.Fragment,d,c)}(a,b,c):"text"===b.type?b.value:void 0}function z(a,b,c,d){"string"!=typeof c&&c!==a.Fragment&&a.passNode&&(b.node=d)}function A(a,b){if(b.length>0){let c=b.length>1?b:b[0];c&&(a.children=c)}}function B(a,b){let c=[],d=-1,e=a.passKeys?new Map:s;for(;++d<b.children.length;){let f,g=b.children[d];if(a.passKeys){let a="element"===g.type?g.tagName:"mdxJsxFlowElement"===g.type||"mdxJsxTextElement"===g.type?g.name:void 0;if(a){let b=e.get(a)||0;f=a+"-"+b,e.set(a,b+1)}}let h=y(a,g,f);void 0!==h&&c.push(h)}return c}function C(a,b,c){let d;if(c)if(b.includes(".")){let a,c=b.split("."),f=-1;for(;++f<c.length;){let b=i(c[f])?{type:"Identifier",name:c[f]}:{type:"Literal",value:c[f]};a=a?{type:"MemberExpression",object:a,property:b,computed:!!(f&&"Literal"===b.type),optional:!1}:b}(0,e.ok)(a,"always a result"),d=a}else d=i(b)&&!/^[a-z]/.test(b)?{type:"Identifier",name:b}:{type:"Literal",value:b};else d={type:"Literal",value:b};if("Literal"===d.type){let b=d.value;return r.call(a.components,b)?a.components[b]:b}if(a.evaluater)return a.evaluater.evaluateExpression(d);D(a)}function D(a,b){let c=new q.o("Cannot handle MDX estrees without `createEvaluater`",{ancestors:a.ancestors,place:b,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw c.file=a.filePath||void 0,c.url=w+"#cannot-handle-mdx-estrees-without-createevaluater",c}function E(a){return"-"+a.toLowerCase()}},10551:(a,b,c)=>{"use strict";c.d(b,{A:()=>am});var d={};c.r(d),c.d(d,{boolean:()=>n,booleanish:()=>o,commaOrSpaceSeparated:()=>t,commaSeparated:()=>s,number:()=>q,overloadedBoolean:()=>p,spaceSeparated:()=>r});var e=c(15),f=c(27159),g=c(4304),h=c(95458);class i{constructor(a,b,c){this.property=a,this.normal=b,c&&(this.space=c)}}function j(a,b){let c={},d={},e=-1;for(;++e<a.length;)Object.assign(c,a[e].property),Object.assign(d,a[e].normal);return new i(c,d,b)}function k(a){return a.toLowerCase()}i.prototype.property={},i.prototype.normal={},i.prototype.space=null;class l{constructor(a,b){this.property=a,this.attribute=b}}l.prototype.space=null,l.prototype.boolean=!1,l.prototype.booleanish=!1,l.prototype.overloadedBoolean=!1,l.prototype.number=!1,l.prototype.commaSeparated=!1,l.prototype.spaceSeparated=!1,l.prototype.commaOrSpaceSeparated=!1,l.prototype.mustUseProperty=!1,l.prototype.defined=!1;let m=0,n=u(),o=u(),p=u(),q=u(),r=u(),s=u(),t=u();function u(){return 2**++m}let v=Object.keys(d);class w extends l{constructor(a,b,c,e){let f=-1;if(super(a,b),function(a,b,c){c&&(a[b]=c)}(this,"space",e),"number"==typeof c)for(;++f<v.length;){let a=v[f];!function(a,b,c){c&&(a[b]=c)}(this,v[f],(c&d[a])===d[a])}}}w.prototype.defined=!0;let x={}.hasOwnProperty;function y(a){let b,c={},d={};for(b in a.properties)if(x.call(a.properties,b)){let e=a.properties[b],f=new w(b,a.transform(a.attributes||{},b),e,a.space);a.mustUseProperty&&a.mustUseProperty.includes(b)&&(f.mustUseProperty=!0),c[b]=f,d[k(b)]=b,d[k(f.attribute)]=b}return new i(c,d,a.space)}let z=y({space:"xlink",transform:(a,b)=>"xlink:"+b.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),A=y({space:"xml",transform:(a,b)=>"xml:"+b.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function B(a,b){return b in a?a[b]:b}function C(a,b){return B(a,b.toLowerCase())}let D=y({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:C,properties:{xmlns:null,xmlnsXLink:null}}),E=y({transform:(a,b)=>"role"===b?b:"aria-"+b.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:o,ariaAutoComplete:null,ariaBusy:o,ariaChecked:o,ariaColCount:q,ariaColIndex:q,ariaColSpan:q,ariaControls:r,ariaCurrent:null,ariaDescribedBy:r,ariaDetails:null,ariaDisabled:o,ariaDropEffect:r,ariaErrorMessage:null,ariaExpanded:o,ariaFlowTo:r,ariaGrabbed:o,ariaHasPopup:null,ariaHidden:o,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:r,ariaLevel:q,ariaLive:null,ariaModal:o,ariaMultiLine:o,ariaMultiSelectable:o,ariaOrientation:null,ariaOwns:r,ariaPlaceholder:null,ariaPosInSet:q,ariaPressed:o,ariaReadOnly:o,ariaRelevant:null,ariaRequired:o,ariaRoleDescription:r,ariaRowCount:q,ariaRowIndex:q,ariaRowSpan:q,ariaSelected:o,ariaSetSize:q,ariaSort:null,ariaValueMax:q,ariaValueMin:q,ariaValueNow:q,ariaValueText:null,role:null}}),F=y({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:C,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:s,acceptCharset:r,accessKey:r,action:null,allow:null,allowFullScreen:n,allowPaymentRequest:n,allowUserMedia:n,alt:null,as:null,async:n,autoCapitalize:null,autoComplete:r,autoFocus:n,autoPlay:n,blocking:r,capture:null,charSet:null,checked:n,cite:null,className:r,cols:q,colSpan:null,content:null,contentEditable:o,controls:n,controlsList:r,coords:q|s,crossOrigin:null,data:null,dateTime:null,decoding:null,default:n,defer:n,dir:null,dirName:null,disabled:n,download:p,draggable:o,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:n,formTarget:null,headers:r,height:q,hidden:n,high:q,href:null,hrefLang:null,htmlFor:r,httpEquiv:r,id:null,imageSizes:null,imageSrcSet:null,inert:n,inputMode:null,integrity:null,is:null,isMap:n,itemId:null,itemProp:r,itemRef:r,itemScope:n,itemType:r,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:n,low:q,manifest:null,max:null,maxLength:q,media:null,method:null,min:null,minLength:q,multiple:n,muted:n,name:null,nonce:null,noModule:n,noValidate:n,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:n,optimum:q,pattern:null,ping:r,placeholder:null,playsInline:n,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:n,referrerPolicy:null,rel:r,required:n,reversed:n,rows:q,rowSpan:q,sandbox:r,scope:null,scoped:n,seamless:n,selected:n,shadowRootClonable:n,shadowRootDelegatesFocus:n,shadowRootMode:null,shape:null,size:q,sizes:null,slot:null,span:q,spellCheck:o,src:null,srcDoc:null,srcLang:null,srcSet:null,start:q,step:null,style:null,tabIndex:q,target:null,title:null,translate:null,type:null,typeMustMatch:n,useMap:null,value:o,width:q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:r,axis:null,background:null,bgColor:null,border:q,borderColor:null,bottomMargin:q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:n,declare:n,event:null,face:null,frame:null,frameBorder:null,hSpace:q,leftMargin:q,link:null,longDesc:null,lowSrc:null,marginHeight:q,marginWidth:q,noResize:n,noHref:n,noShade:n,noWrap:n,object:null,profile:null,prompt:null,rev:null,rightMargin:q,rules:null,scheme:null,scrolling:o,standby:null,summary:null,text:null,topMargin:q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:n,disableRemotePlayback:n,prefix:null,property:null,results:q,security:null,unselectable:null}}),G=y({space:"svg",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"},transform:B,properties:{about:t,accentHeight:q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:q,amplitude:q,arabicForm:null,ascent:q,attributeName:null,attributeType:null,azimuth:q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:q,by:null,calcMode:null,capHeight:q,className:r,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:q,diffuseConstant:q,direction:null,display:null,dur:null,divisor:q,dominantBaseline:null,download:n,dx:null,dy:null,edgeMode:null,editable:null,elevation:q,enableBackground:null,end:null,event:null,exponent:q,externalResourcesRequired:null,fill:null,fillOpacity:q,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:s,g2:s,glyphName:s,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:q,horizOriginX:q,horizOriginY:q,id:null,ideographic:q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:q,k:q,k1:q,k2:q,k3:q,k4:q,kernelMatrix:t,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:q,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:q,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:q,overlineThickness:q,paintOrder:null,panose1:null,path:null,pathLength:q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:r,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:q,pointsAtY:q,pointsAtZ:q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:t,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:t,rev:t,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:t,requiredFeatures:t,requiredFonts:t,requiredFormats:t,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:q,specularExponent:q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:q,strikethroughThickness:q,string:null,stroke:null,strokeDashArray:t,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:q,strokeOpacity:q,strokeWidth:null,style:null,surfaceScale:q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:t,tabIndex:q,tableValues:null,target:null,targetX:q,targetY:q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:t,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:q,underlineThickness:q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:q,values:null,vAlphabetic:q,vMathematical:q,vectorEffect:null,vHanging:q,vIdeographic:q,version:null,vertAdvY:q,vertOriginX:q,vertOriginY:q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),H=j([A,z,D,E,F],"html"),I=j([A,z,D,E,G],"svg"),J=/^data[-\w.:]+$/i,K=/-[a-z]/g,L=/[A-Z]/g;function M(a){return"-"+a.toLowerCase()}function N(a){return a.charAt(1).toUpperCase()}var O=c(48427),P=c(85198),Q=c(33677);let R={}.hasOwnProperty,S=(0,Q.A)("type",{handlers:{root:function(a,b){let c={nodeName:"#document",mode:(a.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return c.childNodes=T(a.children,c,b),U(a,c),c},element:function(a,b){let c,d=b;"element"===a.type&&"svg"===a.tagName.toLowerCase()&&"html"===b.space&&(d=I);let e=[];if(a.properties){for(c in a.properties)if("children"!==c&&R.call(a.properties,c)){let b=function(a,b,c){let d=function(a,b){let c=k(b),d=b,e=l;if(c in a.normal)return a.property[a.normal[c]];if(c.length>4&&"data"===c.slice(0,4)&&J.test(b)){if("-"===b.charAt(4)){let a=b.slice(5).replace(K,N);d="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{let a=b.slice(4);if(!K.test(a)){let c=a.replace(L,M);"-"!==c.charAt(0)&&(c="-"+c),b="data"+c}}e=w}return new e(d,b)}(a,b);if(!1===c||null==c||"number"==typeof c&&Number.isNaN(c)||!c&&d.boolean)return;Array.isArray(c)&&(c=d.commaSeparated?(0,g.A)(c):(0,O.A)(c));let e={name:d.attribute,value:!0===c?"":String(c)};if(d.space&&"html"!==d.space&&"svg"!==d.space){let a=e.name.indexOf(":");a<0?e.prefix="":(e.name=e.name.slice(a+1),e.prefix=d.attribute.slice(0,a)),e.namespace=P.t[d.space]}return e}(d,c,a.properties[c]);b&&e.push(b)}}let f=d.space;(0,h.ok)(f);let i={nodeName:a.tagName,tagName:a.tagName,attrs:e,namespaceURI:P.t[f],childNodes:[],parentNode:null};return i.childNodes=T(a.children,i,d),U(a,i),"template"===a.tagName&&a.content&&(i.content=function(a,b){let c={nodeName:"#document-fragment",childNodes:[]};return c.childNodes=T(a.children,c,b),U(a,c),c}(a.content,d)),i},text:function(a){let b={nodeName:"#text",value:a.value,parentNode:null};return U(a,b),b},comment:function(a){let b={nodeName:"#comment",data:a.value,parentNode:null};return U(a,b),b},doctype:function(a){let b={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return U(a,b),b}}});function T(a,b,c){let d=-1,e=[];if(a)for(;++d<a.length;){let f=S(a[d],c);f.parentNode=b,e.push(f)}return e}function U(a,b){let c=a.position;c&&c.start&&c.end&&((0,h.ok)("number"==typeof c.start.offset),(0,h.ok)("number"==typeof c.end.offset),b.sourceCodeLocation={startLine:c.start.line,startCol:c.start.column,startOffset:c.start.offset,endLine:c.end.line,endCol:c.end.column,endOffset:c.end.offset})}var V=c(51798),W=c(49170),X=c(50737),Y=c(9188);let Z=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,$=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),_={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function aa(a,b){let c=function(a){let b="root"===a.type?a.children[0]:a;return!!(b&&("doctype"===b.type||"element"===b.type&&"html"===b.tagName.toLowerCase()))}(a),d=(0,Q.A)("type",{handlers:{root:ac,element:ad,text:ae,comment:ag,doctype:af,raw:ah},unknown:ai}),e={parser:c?new W.iX(_):W.iX.getFragmentParser(void 0,_),handle(a){d(a,e)},stitches:!1,options:b||{}};d(a,e),aj(e,(0,X.PW)());let g=c?e.parser.document:e.parser.getFragment(),h=(0,f.D)(g,{file:e.options.file});return(e.stitches&&(0,Y.YR)(h,"comment",function(a,b,c){if(a.value.stitch&&c&&void 0!==b)return c.children[b]=a.value.stitch,b}),"root"===h.type&&1===h.children.length&&h.children[0].type===a.type)?h.children[0]:h}function ab(a,b){let c=-1;if(a)for(;++c<a.length;)b.handle(a[c])}function ac(a,b){ab(a.children,b)}function ad(a,b){(function(a,b){let c=a.tagName.toLowerCase();if(b.parser.tokenizer.state===W.V_.PLAINTEXT)return;aj(b,(0,X.PW)(a));let d=b.parser.openElements.current,e="namespaceURI"in d?d.namespaceURI:P.t.html;e===P.t.html&&"svg"===c&&(e=P.t.svg);let f=S({...a,children:[]},"svg"===({space:e===P.t.svg?"svg":"html"}).space?I:H),g={type:W.ou.k.START_TAG,tagName:c,tagID:W.qy.getTagID(c),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in f?f.attrs:[],location:al(a)};b.parser.currentToken=g,b.parser._processToken(b.parser.currentToken),b.parser.tokenizer.lastStartTagName=c})(a,b),ab(a.children,b),function(a,b){let c=a.tagName.toLowerCase();if(!b.parser.tokenizer.inForeignNode&&V.b.includes(c)||b.parser.tokenizer.state===W.V_.PLAINTEXT)return;aj(b,(0,X.Y)(a));let d={type:W.ou.k.END_TAG,tagName:c,tagID:W.qy.getTagID(c),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:al(a)};b.parser.currentToken=d,b.parser._processToken(b.parser.currentToken),c===b.parser.tokenizer.lastStartTagName&&(b.parser.tokenizer.state===W.V_.RCDATA||b.parser.tokenizer.state===W.V_.RAWTEXT||b.parser.tokenizer.state===W.V_.SCRIPT_DATA)&&(b.parser.tokenizer.state=W.V_.DATA)}(a,b)}function ae(a,b){b.parser.tokenizer.state>4&&(b.parser.tokenizer.state=0);let c={type:W.ou.k.CHARACTER,chars:a.value,location:al(a)};aj(b,(0,X.PW)(a)),b.parser.currentToken=c,b.parser._processToken(b.parser.currentToken)}function af(a,b){let c={type:W.ou.k.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:al(a)};aj(b,(0,X.PW)(a)),b.parser.currentToken=c,b.parser._processToken(b.parser.currentToken)}function ag(a,b){let c=a.value,d={type:W.ou.k.COMMENT,data:c,location:al(a)};aj(b,(0,X.PW)(a)),b.parser.currentToken=d,b.parser._processToken(b.parser.currentToken)}function ah(a,b){if(b.parser.tokenizer.preprocessor.html="",b.parser.tokenizer.preprocessor.pos=-1,b.parser.tokenizer.preprocessor.lastGapPos=-2,b.parser.tokenizer.preprocessor.gapStack=[],b.parser.tokenizer.preprocessor.skipNextNewLine=!1,b.parser.tokenizer.preprocessor.lastChunkWritten=!1,b.parser.tokenizer.preprocessor.endOfChunkHit=!1,b.parser.tokenizer.preprocessor.isEol=!1,ak(b,(0,X.PW)(a)),b.parser.tokenizer.write(b.options.tagfilter?a.value.replace(Z,"<$1$2"):a.value,!1),b.parser.tokenizer._runParsingLoop(),72===b.parser.tokenizer.state||78===b.parser.tokenizer.state){b.parser.tokenizer.preprocessor.lastChunkWritten=!0;let a=b.parser.tokenizer._consume();b.parser.tokenizer._callState(a)}}function ai(a,b){if(b.options.passThrough&&b.options.passThrough.includes(a.type)){var c;b.stitches=!0;let d="children"in(c=a)?(0,e.Ay)({...c,children:[]}):(0,e.Ay)(c);"children"in a&&"children"in d&&(d.children=aa({type:"root",children:a.children},b.options).children),ag({type:"comment",value:{stitch:d}},b)}else{let b="";throw $.has(a.type)&&(b=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+a.type+"` node"+b)}}function aj(a,b){ak(a,b);let c=a.parser.tokenizer.currentCharacterToken;c&&c.location&&(c.location.endLine=a.parser.tokenizer.preprocessor.line,c.location.endCol=a.parser.tokenizer.preprocessor.col+1,c.location.endOffset=a.parser.tokenizer.preprocessor.offset+1,a.parser.currentToken=c,a.parser._processToken(a.parser.currentToken)),a.parser.tokenizer.paused=!1,a.parser.tokenizer.inLoop=!1,a.parser.tokenizer.active=!1,a.parser.tokenizer.returnState=W.V_.DATA,a.parser.tokenizer.charRefCode=-1,a.parser.tokenizer.consumedAfterSnapshot=-1,a.parser.tokenizer.currentLocation=null,a.parser.tokenizer.currentCharacterToken=null,a.parser.tokenizer.currentToken=null,a.parser.tokenizer.currentAttr={name:"",value:""}}function ak(a,b){if(b&&void 0!==b.offset){let c={startLine:b.line,startCol:b.column,startOffset:b.offset,endLine:-1,endCol:-1,endOffset:-1};a.parser.tokenizer.preprocessor.lineStartPos=-b.column+1,a.parser.tokenizer.preprocessor.droppedBufferSize=b.offset,a.parser.tokenizer.preprocessor.line=b.line,a.parser.tokenizer.currentLocation=c}}function al(a){let b=(0,X.PW)(a)||{line:void 0,column:void 0,offset:void 0},c=(0,X.Y)(a)||{line:void 0,column:void 0,offset:void 0};return{startLine:b.line,startCol:b.column,startOffset:b.offset,endLine:c.line,endCol:c.column,endOffset:c.offset}}function am(a){return function(b,c){return aa(b,{...a,file:c})}}},12320:(a,b,c)=>{"use strict";let d,e;c.d(b,{jH:()=>fP});var f=c(14450),g=c(95458),h=c(10154),i=c(98631),j=c(59111),k=c(92729),l=c(28963),m=c(59305),n=c(9188),o=c(35201);let p=[],q={allowDangerousHtml:!0},r=/^(https?|ircs?|mailto|xmpp)$/i,s=[{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 t(a){let b=a.indexOf(":"),c=a.indexOf("?"),d=a.indexOf("#"),e=a.indexOf("/");return -1===b||-1!==e&&b>e||-1!==c&&b>c||-1!==d&&b>d||r.test(a.slice(0,b))?a:""}var u=c(27159),v=c(49170),w=c(29956);let x={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `\x3c!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `\x3c!--`. Expected `--\x3e`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}},y=/-[a-z]/g,z=/%c(?:([-+])(\d+))?/g,A=/%x/g,B={2:!0,1:!1,0:null},C={};function D(a){return a.charAt(1).toUpperCase()}var E=c(58751);let F=function(a,b,c){let d=(0,E.C)(c);if(!a||!a.type||!a.children)throw Error("Expected parent node");if("number"==typeof b){if(b<0||b===1/0)throw Error("Expected positive finite number as index")}else if((b=a.children.indexOf(b))<0)throw Error("Expected child node or index");for(;++b<a.children.length;)if(d(a.children[b],b,a))return a.children[b]},G=function(a){if(null==a)return I;if("string"==typeof a){var b;return b=a,H(function(a){return a.tagName===b})}if("object"==typeof a){var c=a;let b=[],d=-1;for(;++d<c.length;)b[d]=G(c[d]);return H(function(...a){let c=-1;for(;++c<b.length;)if(b[c].apply(this,a))return!0;return!1})}if("function"==typeof a)return H(a);throw Error("Expected function, string, or array as `test`")};function H(a){return function(b,c,d){var e;return!!(null!==(e=b)&&"object"==typeof e&&"type"in e&&"tagName"in e&&a.call(this,b,"number"==typeof c?c:void 0,d||void 0))}}function I(a){return!!(a&&"object"==typeof a&&"type"in a&&"element"===a.type&&"tagName"in a&&"string"==typeof a.tagName)}let J=/\n/g,K=/[\t ]+/g,L=G("br"),M=G(function(a){return"td"===a.tagName||"th"===a.tagName}),N=G("p"),O=G("tr"),P=G(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(a){return!!(a.properties||{}).hidden},function(a){return"dialog"===a.tagName&&!(a.properties||{}).open}]),Q=G(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function R(a,b){let c,d=String(a.value),e=[],f=[],g=0;for(;g<=d.length;){J.lastIndex=g;let a=J.exec(d),c=a&&"index"in a?a.index:d.length;e.push(function(a,b,c){let d,e=[],f=0;for(;f<a.length;){K.lastIndex=f;let c=K.exec(a);d=c?c.index:a.length,f||d||!c||b||e.push(""),f!==d&&e.push(a.slice(f,d)),f=c?d+c[0].length:d}return f===d||c||e.push(""),e.join(" ")}(d.slice(g,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==g||b.breakBefore,c!==d.length||b.breakAfter)),g=c+1}let h=-1;for(;++h<e.length;)8203===e[h].charCodeAt(e[h].length-1)||h<e.length-1&&8203===e[h+1].charCodeAt(0)?(f.push(e[h]),c=void 0):e[h]?("number"==typeof c&&f.push(c),f.push(e[h]),c=0):(0===h||h===e.length-1)&&f.push(0);return f}function S(a,b){if("element"===a.type){let c=a.properties||{};switch(a.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return c.wrap?"pre-wrap":"pre";case"td":case"th":return c.noWrap?"nowrap":b.whitespace;case"textarea":return"pre-wrap"}}return b.whitespace}var T=c(25457),U=c(83146);let V={},W=[];var X=c(10551),Y=c(6757),Z=c(14381),$=c(50698),_=c(93045);let aa={tokenize:function(a,b,c){let d=this,e=d.events[d.events.length-1],f=e&&"linePrefix"===e[1].type?e[2].sliceSerialize(e[1],!0).length:0,g=0;return function(b){return a.enter("mathFlow"),a.enter("mathFlowFence"),a.enter("mathFlowFenceSequence"),function b(d){return 36===d?(a.consume(d),g++,b):g<2?c(d):(a.exit("mathFlowFenceSequence"),(0,$.N)(a,h,"whitespace")(d))}(b)};function h(b){return null===b||(0,_.HP)(b)?i(b):(a.enter("mathFlowFenceMeta"),a.enter("chunkString",{contentType:"string"}),function b(d){return null===d||(0,_.HP)(d)?(a.exit("chunkString"),a.exit("mathFlowFenceMeta"),i(d)):36===d?c(d):(a.consume(d),b)}(b))}function i(c){return(a.exit("mathFlowFence"),d.interrupt)?b(c):a.attempt(ab,j,m)(c)}function j(b){return a.attempt({tokenize:n,partial:!0},m,k)(b)}function k(b){return(f?(0,$.N)(a,l,"linePrefix",f+1):l)(b)}function l(b){return null===b?m(b):(0,_.HP)(b)?a.attempt(ab,j,m)(b):(a.enter("mathFlowValue"),function b(c){return null===c||(0,_.HP)(c)?(a.exit("mathFlowValue"),l(c)):(a.consume(c),b)}(b))}function m(c){return a.exit("mathFlow"),b(c)}function n(a,b,c){let e=0;return(0,$.N)(a,function(b){return a.enter("mathFlowFence"),a.enter("mathFlowFenceSequence"),function b(d){return 36===d?(e++,a.consume(d),b):e<g?c(d):(a.exit("mathFlowFenceSequence"),(0,$.N)(a,f,"whitespace")(d))}(b)},"linePrefix",d.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function f(d){return null===d||(0,_.HP)(d)?(a.exit("mathFlowFence"),b(d)):c(d)}}},concrete:!0,name:"mathFlow"},ab={tokenize:function(a,b,c){let d=this;return function(c){return null===c?b(c):(a.enter("lineEnding"),a.consume(c),a.exit("lineEnding"),e)};function e(a){return d.parser.lazy[d.now().line]?c(a):b(a)}},partial:!0};function ac(a){let b,c,d=a.length-4,e=3;if(("lineEnding"===a[3][1].type||"space"===a[e][1].type)&&("lineEnding"===a[d][1].type||"space"===a[d][1].type)){for(b=e;++b<d;)if("mathTextData"===a[b][1].type){a[d][1].type="mathTextPadding",a[e][1].type="mathTextPadding",e+=2,d-=2;break}}for(b=e-1,d++;++b<=d;)void 0===c?b!==d&&"lineEnding"!==a[b][1].type&&(c=b):(b===d||"lineEnding"===a[b][1].type)&&(a[c][1].type="mathTextData",b!==c+2&&(a[c][1].end=a[b-1][1].end,a.splice(c+2,b-c-2),d-=b-c-2,b=c+2),c=void 0);return a}function ad(a){return 36!==a||"characterEscape"===this.events[this.events.length-1][1].type}let ae={};function af(a){let b,c=a||ae,d=this.data(),e=d.micromarkExtensions||(d.micromarkExtensions=[]),f=d.fromMarkdownExtensions||(d.fromMarkdownExtensions=[]),h=d.toMarkdownExtensions||(d.toMarkdownExtensions=[]);e.push({flow:{36:aa},text:{36:(null==(b=(c||{}).singleDollarTextMath)&&(b=!0),{tokenize:function(a,c,d){let e,f,g=0;return function(c){return a.enter("mathText"),a.enter("mathTextSequence"),function c(e){return 36===e?(a.consume(e),g++,c):g<2&&!b?d(e):(a.exit("mathTextSequence"),h(e))}(c)};function h(b){return null===b?d(b):36===b?(f=a.enter("mathTextSequence"),e=0,function b(d){return 36===d?(a.consume(d),e++,b):e===g?(a.exit("mathTextSequence"),a.exit("mathText"),c(d)):(f.type="mathTextData",i(d))}(b)):32===b?(a.enter("space"),a.consume(b),a.exit("space"),h):(0,_.HP)(b)?(a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),h):(a.enter("mathTextData"),i(b))}function i(b){return null===b||32===b||36===b||(0,_.HP)(b)?(a.exit("mathTextData"),h(b)):(a.consume(b),i)}},resolve:ac,previous:ad,name:"mathText"})}}),f.push(function(){return{enter:{mathFlow:function(a){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},a)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(a){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},a),this.buffer()}},exit:{mathFlow:function(a){let b=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];(0,g.ok)("math"===c.type),this.exit(a),c.value=b;let d=c.data.hChildren[0];(0,g.ok)("element"===d.type),(0,g.ok)("code"===d.tagName),d.children.push({type:"text",value:b}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){let a=this.resume(),b=this.stack[this.stack.length-1];(0,g.ok)("math"===b.type),b.meta=a},mathFlowValue:a,mathText:function(a){let b=this.resume(),c=this.stack[this.stack.length-1];(0,g.ok)("inlineMath"===c.type),this.exit(a),c.value=b,c.data.hChildren.push({type:"text",value:b})},mathTextData:a}};function a(a){this.config.enter.data.call(this,a),this.config.exit.data.call(this,a)}}()),h.push(function(a){let b=(a||{}).singleDollarTextMath;return null==b&&(b=!0),c.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:b?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(a,b,c,d){let e=a.value||"",f=c.createTracker(d),g="$".repeat(Math.max((0,Z.D)(e,"$")+1,2)),h=c.enter("mathFlow"),i=f.move(g);if(a.meta){let b=c.enter("mathFlowMeta");i+=f.move(c.safe(a.meta,{after:"\n",before:i,encode:["$"],...f.current()})),b()}return i+=f.move("\n"),e&&(i+=f.move(e+"\n")),i+=f.move(g),h(),i},inlineMath:c}};function c(a,c,d){let e=a.value||"",f=1;for(!b&&f++;RegExp("(^|[^$])"+"\\$".repeat(f)+"([^$]|$)").test(e);)f++;let g="$".repeat(f);/[^ \r\n]/.test(e)&&(/^[ \r\n]/.test(e)&&/[ \r\n]$/.test(e)||/^\$|\$$/.test(e))&&(e=" "+e+" ");let h=-1;for(;++h<d.unsafe.length;){let a,b=d.unsafe[h];if(!b.atBreak)continue;let c=d.compilePattern(b);for(;a=c.exec(e);){let b=a.index;10===e.codePointAt(b)&&13===e.codePointAt(b-1)&&b--,e=e.slice(0,b)+" "+e.slice(a.index+1)}}return g+e+g}}(c))}c(43328);var ag=c(86470);let ah=a=>{let b=a.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,b,c)=>c?c.toUpperCase():b.toLowerCase());return b.charAt(0).toUpperCase()+b.slice(1)},ai=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim();var aj={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let ak=(0,f.forwardRef)(({color:a="currentColor",size:b=24,strokeWidth:c=2,absoluteStrokeWidth:d,className:e="",children:g,iconNode:h,...i},j)=>(0,f.createElement)("svg",{ref:j,...aj,width:b,height:b,stroke:a,strokeWidth:d?24*Number(c)/Number(b):c,className:ai("lucide",e),...!g&&!(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0})(i)&&{"aria-hidden":"true"},...i},[...h.map(([a,b])=>(0,f.createElement)(a,b)),...Array.isArray(g)?g:[g]])),al=(a,b)=>{let c=(0,f.forwardRef)(({className:c,...d},e)=>(0,f.createElement)(ak,{ref:e,iconNode:b,className:ai(`lucide-${ah(a).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${a}`,c),...d}));return c.displayName=ah(a),c},am=al("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),an=al("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),ao=al("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),ap=[{id:"abap",name:"ABAP",import:()=>c.e(1530).then(c.bind(c,1530))},{id:"actionscript-3",name:"ActionScript",import:()=>c.e(1331).then(c.bind(c,51331))},{id:"ada",name:"Ada",import:()=>c.e(3752).then(c.bind(c,83752))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5864)]).then(c.bind(c,25864))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(7876),c.e(5864),c.e(8742)]).then(c.bind(c,88742))},{id:"apache",name:"Apache Conf",import:()=>c.e(1618).then(c.bind(c,41618))},{id:"apex",name:"Apex",import:()=>c.e(5148).then(c.bind(c,85148))},{id:"apl",name:"APL",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(4456),c.e(8321)]).then(c.bind(c,8321))},{id:"applescript",name:"AppleScript",import:()=>c.e(7281).then(c.bind(c,77281))},{id:"ara",name:"Ara",import:()=>c.e(9594).then(c.bind(c,79594))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>c.e(413).then(c.bind(c,20413))},{id:"asm",name:"Assembly",import:()=>c.e(2949).then(c.bind(c,62949))},{id:"astro",name:"Astro",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(5237),c.e(7709),c.e(4605)]).then(c.bind(c,84605))},{id:"awk",name:"AWK",import:()=>c.e(8523).then(c.bind(c,8523))},{id:"ballerina",name:"Ballerina",import:()=>c.e(2512).then(c.bind(c,82512))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>c.e(8065).then(c.bind(c,38065))},{id:"beancount",name:"Beancount",import:()=>c.e(6171).then(c.bind(c,6171))},{id:"berry",name:"Berry",aliases:["be"],import:()=>c.e(7880).then(c.bind(c,37880))},{id:"bibtex",name:"BibTeX",import:()=>c.e(3322).then(c.bind(c,73322))},{id:"bicep",name:"Bicep",import:()=>c.e(4865).then(c.bind(c,14865))},{id:"blade",name:"Blade",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(4456),c.e(1812),c.e(1670)]).then(c.bind(c,61670))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>c.e(6567).then(c.bind(c,26567))},{id:"c",name:"C",import:()=>c.e(395).then(c.bind(c,50395))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>c.e(2529).then(c.bind(c,52529))},{id:"cairo",name:"Cairo",import:()=>Promise.all([c.e(5374),c.e(8860)]).then(c.bind(c,58860))},{id:"clarity",name:"Clarity",import:()=>c.e(7224).then(c.bind(c,7224))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>c.e(6968).then(c.bind(c,26968))},{id:"cmake",name:"CMake",import:()=>c.e(6733).then(c.bind(c,76733))},{id:"cobol",name:"COBOL",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(4456),c.e(9181)]).then(c.bind(c,19181))},{id:"codeowners",name:"CODEOWNERS",import:()=>c.e(4451).then(c.bind(c,24451))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>c.e(9480).then(c.bind(c,9480))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([c.e(7621),c.e(4484)]).then(c.bind(c,34484))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>c.e(6608).then(c.bind(c,6608))},{id:"coq",name:"Coq",import:()=>c.e(7303).then(c.bind(c,7303))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([c.e(1812),c.e(395),c.e(60)]).then(c.bind(c,20060))},{id:"crystal",name:"Crystal",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(1812),c.e(395),c.e(6903),c.e(4438)]).then(c.bind(c,64438))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>c.e(6077).then(c.bind(c,26077))},{id:"css",name:"CSS",import:()=>c.e(9349).then(c.bind(c,99349))},{id:"csv",name:"CSV",import:()=>c.e(3704).then(c.bind(c,3704))},{id:"cue",name:"CUE",import:()=>c.e(9217).then(c.bind(c,29217))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>c.e(7341).then(c.bind(c,77341))},{id:"d",name:"D",import:()=>c.e(7752).then(c.bind(c,27752))},{id:"dart",name:"Dart",import:()=>c.e(3303).then(c.bind(c,33303))},{id:"dax",name:"DAX",import:()=>c.e(5035).then(c.bind(c,15035))},{id:"desktop",name:"Desktop",import:()=>c.e(4488).then(c.bind(c,64488))},{id:"diff",name:"Diff",import:()=>c.e(1365).then(c.bind(c,91365))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>c.e(2076).then(c.bind(c,52076))},{id:"dotenv",name:"dotEnv",import:()=>c.e(5522).then(c.bind(c,85522))},{id:"dream-maker",name:"Dream Maker",import:()=>c.e(1146).then(c.bind(c,81146))},{id:"edge",name:"Edge",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(5619)]).then(c.bind(c,15619))},{id:"elixir",name:"Elixir",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5645)]).then(c.bind(c,65645))},{id:"elm",name:"Elm",import:()=>Promise.all([c.e(395),c.e(9448)]).then(c.bind(c,9448))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>c.e(8890).then(c.bind(c,98890))},{id:"erb",name:"ERB",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(4456),c.e(1812),c.e(395),c.e(6903),c.e(7709),c.e(8355),c.e(60),c.e(3967),c.e(320),c.e(5489)]).then(c.bind(c,95489))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([c.e(9375),c.e(4577)]).then(c.bind(c,24577))},{id:"fennel",name:"Fennel",import:()=>c.e(7968).then(c.bind(c,27968))},{id:"fish",name:"Fish",import:()=>c.e(4830).then(c.bind(c,74830))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>c.e(5782).then(c.bind(c,55782))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([c.e(5992),c.e(1250)]).then(c.bind(c,1250))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>c.e(5992).then(c.bind(c,25992))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([c.e(9375),c.e(5586)]).then(c.bind(c,75586))},{id:"gdresource",name:"GDResource",import:()=>c.e(7293).then(c.bind(c,7293))},{id:"gdscript",name:"GDScript",import:()=>c.e(4676).then(c.bind(c,64676))},{id:"gdshader",name:"GDShader",import:()=>c.e(1902).then(c.bind(c,79521))},{id:"genie",name:"Genie",import:()=>c.e(2400).then(c.bind(c,92400))},{id:"gherkin",name:"Gherkin",import:()=>c.e(2742).then(c.bind(c,72742))},{id:"git-commit",name:"Git Commit Message",import:()=>c.e(9598).then(c.bind(c,29598))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([c.e(6903),c.e(3001)]).then(c.bind(c,63001))},{id:"gleam",name:"Gleam",import:()=>c.e(4764).then(c.bind(c,24764))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(7531)]).then(c.bind(c,97531))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(6269)]).then(c.bind(c,16269))},{id:"glsl",name:"GLSL",import:()=>Promise.all([c.e(395),c.e(6700)]).then(c.bind(c,76700))},{id:"gnuplot",name:"Gnuplot",import:()=>c.e(81).then(c.bind(c,70081))},{id:"go",name:"Go",import:()=>c.e(1514).then(c.bind(c,41514))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([c.e(7621),c.e(5237),c.e(7709),c.e(8355),c.e(3967)]).then(c.bind(c,33967))},{id:"groovy",name:"Groovy",import:()=>c.e(8538).then(c.bind(c,38538))},{id:"hack",name:"Hack",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(1812),c.e(5867)]).then(c.bind(c,45867))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1246)]).then(c.bind(c,41246))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(8884)]).then(c.bind(c,58884))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>c.e(3880).then(c.bind(c,13880))},{id:"haxe",name:"Haxe",import:()=>c.e(8404).then(c.bind(c,78404))},{id:"hcl",name:"HashiCorp HCL",import:()=>c.e(3405).then(c.bind(c,43405))},{id:"hjson",name:"Hjson",import:()=>c.e(9378).then(c.bind(c,59378))},{id:"hlsl",name:"HLSL",import:()=>c.e(7237).then(c.bind(c,57237))},{id:"html",name:"HTML",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335)]).then(c.bind(c,81335))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(3667)]).then(c.bind(c,83667))},{id:"http",name:"HTTP",import:()=>Promise.all([c.e(7621),c.e(5237),c.e(4456),c.e(6903),c.e(7709),c.e(8355),c.e(3967),c.e(8048)]).then(c.bind(c,48048))},{id:"hxml",name:"HXML",import:()=>c.e(9547).then(c.bind(c,49547))},{id:"hy",name:"Hy",import:()=>c.e(705).then(c.bind(c,705))},{id:"imba",name:"Imba",import:()=>c.e(2149).then(c.bind(c,72149))},{id:"ini",name:"INI",aliases:["properties"],import:()=>c.e(1542).then(c.bind(c,1542))},{id:"java",name:"Java",import:()=>c.e(4456).then(c.bind(c,94456))},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>c.e(7621).then(c.bind(c,27621))},{id:"jinja",name:"Jinja",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(9839)]).then(c.bind(c,89839))},{id:"jison",name:"Jison",import:()=>Promise.all([c.e(7621),c.e(2005)]).then(c.bind(c,52005))},{id:"json",name:"JSON",import:()=>c.e(2854).then(c.bind(c,60473))},{id:"json5",name:"JSON5",import:()=>c.e(2515).then(c.bind(c,42515))},{id:"jsonc",name:"JSON with Comments",import:()=>c.e(4713).then(c.bind(c,94713))},{id:"jsonl",name:"JSON Lines",import:()=>c.e(1450).then(c.bind(c,1450))},{id:"jsonnet",name:"Jsonnet",import:()=>c.e(9567).then(c.bind(c,79567))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>c.e(6493).then(c.bind(c,86493))},{id:"jsx",name:"JSX",import:()=>c.e(8355).then(c.bind(c,68355))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([c.e(7621),c.e(1812),c.e(395),c.e(60),c.e(5374),c.e(5034),c.e(8227)]).then(c.bind(c,88227))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>c.e(4699).then(c.bind(c,34699))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>c.e(1580).then(c.bind(c,1580))},{id:"latex",name:"LaTeX",import:()=>Promise.all([c.e(5034),c.e(8584)]).then(c.bind(c,38584))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>c.e(6132).then(c.bind(c,46132))},{id:"less",name:"Less",import:()=>c.e(8275).then(c.bind(c,68275))},{id:"liquid",name:"Liquid",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(8832)]).then(c.bind(c,28832))},{id:"llvm",name:"LLVM IR",import:()=>c.e(1243).then(c.bind(c,21243))},{id:"log",name:"Log file",import:()=>c.e(402).then(c.bind(c,80402))},{id:"logo",name:"Logo",import:()=>c.e(1).then(c.bind(c,10001))},{id:"lua",name:"Lua",import:()=>Promise.all([c.e(395),c.e(1054)]).then(c.bind(c,71054))},{id:"luau",name:"Luau",import:()=>c.e(6875).then(c.bind(c,96875))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>c.e(7890).then(c.bind(c,47890))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>c.e(9375).then(c.bind(c,99375))},{id:"marko",name:"Marko",import:()=>Promise.all([c.e(9349),c.e(5237),c.e(7876),c.e(8275),c.e(8982)]).then(c.bind(c,6601))},{id:"matlab",name:"MATLAB",import:()=>c.e(8047).then(c.bind(c,18047))},{id:"mdc",name:"MDC",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(9375),c.e(258)]).then(c.bind(c,20258))},{id:"mdx",name:"MDX",import:()=>c.e(9189).then(c.bind(c,29189))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>c.e(9761).then(c.bind(c,19761))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>c.e(7021).then(c.bind(c,69402))},{id:"mojo",name:"Mojo",import:()=>c.e(7565).then(c.bind(c,27565))},{id:"move",name:"Move",import:()=>c.e(5495).then(c.bind(c,95495))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>c.e(6352).then(c.bind(c,66352))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>c.e(3523).then(c.bind(c,63523))},{id:"nginx",name:"Nginx",import:()=>Promise.all([c.e(395),c.e(7612)]).then(c.bind(c,97612))},{id:"nim",name:"Nim",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(4456),c.e(395),c.e(9375),c.e(2916)]).then(c.bind(c,72916))},{id:"nix",name:"Nix",import:()=>c.e(1513).then(c.bind(c,21513))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>c.e(5119).then(c.bind(c,85119))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>c.e(2141).then(c.bind(c,14522))},{id:"objective-cpp",name:"Objective-C++",import:()=>c.e(4133).then(c.bind(c,84133))},{id:"ocaml",name:"OCaml",import:()=>c.e(7708).then(c.bind(c,77708))},{id:"pascal",name:"Pascal",import:()=>c.e(1940).then(c.bind(c,1940))},{id:"perl",name:"Perl",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(4456),c.e(1812),c.e(6351)]).then(c.bind(c,96351))},{id:"php",name:"PHP",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(4456),c.e(1812),c.e(8212),c.e(7511)]).then(c.bind(c,78212))},{id:"plsql",name:"PL/SQL",import:()=>c.e(3536).then(c.bind(c,63536))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>c.e(1299).then(c.bind(c,21299))},{id:"polar",name:"Polar",import:()=>c.e(7056).then(c.bind(c,87056))},{id:"postcss",name:"PostCSS",import:()=>c.e(6779).then(c.bind(c,66779))},{id:"powerquery",name:"PowerQuery",import:()=>c.e(5197).then(c.bind(c,5197))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>c.e(2783).then(c.bind(c,42783))},{id:"prisma",name:"Prisma",import:()=>c.e(2292).then(c.bind(c,72292))},{id:"prolog",name:"Prolog",import:()=>c.e(3489).then(c.bind(c,33489))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>c.e(946).then(c.bind(c,40946))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(1120)]).then(c.bind(c,41120))},{id:"puppet",name:"Puppet",import:()=>c.e(98).then(c.bind(c,98))},{id:"purescript",name:"PureScript",import:()=>c.e(4207).then(c.bind(c,4207))},{id:"python",name:"Python",aliases:["py"],import:()=>c.e(5374).then(c.bind(c,35374))},{id:"qml",name:"QML",import:()=>Promise.all([c.e(7621),c.e(874)]).then(c.bind(c,50874))},{id:"qmldir",name:"QML Directory",import:()=>c.e(9855).then(c.bind(c,29855))},{id:"qss",name:"Qt Style Sheets",import:()=>c.e(4351).then(c.bind(c,14351))},{id:"r",name:"R",import:()=>c.e(5034).then(c.bind(c,85034))},{id:"racket",name:"Racket",import:()=>c.e(3794).then(c.bind(c,93794))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>c.e(2767).then(c.bind(c,32767))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(6077),c.e(7024)]).then(c.bind(c,87024))},{id:"reg",name:"Windows Registry Script",import:()=>c.e(2082).then(c.bind(c,42082))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>c.e(4271).then(c.bind(c,4271))},{id:"rel",name:"Rel",import:()=>c.e(485).then(c.bind(c,70485))},{id:"riscv",name:"RISC-V",import:()=>c.e(3697).then(c.bind(c,63697))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(4456),c.e(1812),c.e(395),c.e(6903),c.e(7709),c.e(8355),c.e(60),c.e(3967),c.e(5374),c.e(320),c.e(6575)]).then(c.bind(c,56575))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(4456),c.e(1812),c.e(395),c.e(6903),c.e(7709),c.e(8355),c.e(60),c.e(3967),c.e(320)]).then(c.bind(c,37939))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>c.e(3850).then(c.bind(c,13850))},{id:"sas",name:"SAS",import:()=>Promise.all([c.e(1812),c.e(3127)]).then(c.bind(c,53127))},{id:"sass",name:"Sass",import:()=>c.e(2510).then(c.bind(c,72510))},{id:"scala",name:"Scala",import:()=>c.e(2046).then(c.bind(c,92046))},{id:"scheme",name:"Scheme",import:()=>c.e(541).then(c.bind(c,30541))},{id:"scss",name:"SCSS",import:()=>Promise.all([c.e(9349),c.e(7876)]).then(c.bind(c,57876))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>c.e(4131).then(c.bind(c,84131))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>c.e(3155).then(c.bind(c,95536))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>c.e(6903).then(c.bind(c,36903))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([c.e(6903),c.e(2954)]).then(c.bind(c,32954))},{id:"smalltalk",name:"Smalltalk",import:()=>c.e(7411).then(c.bind(c,47411))},{id:"solidity",name:"Solidity",import:()=>c.e(819).then(c.bind(c,10819))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(3327)]).then(c.bind(c,93327))},{id:"sparql",name:"SPARQL",import:()=>c.e(6907).then(c.bind(c,56907))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>c.e(5997).then(c.bind(c,75997))},{id:"sql",name:"SQL",import:()=>c.e(1812).then(c.bind(c,81812))},{id:"ssh-config",name:"SSH Config",import:()=>c.e(1433).then(c.bind(c,91433))},{id:"stata",name:"Stata",import:()=>Promise.all([c.e(1812),c.e(5587)]).then(c.bind(c,5587))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>c.e(1686).then(c.bind(c,91686))},{id:"svelte",name:"Svelte",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(5237),c.e(1253)]).then(c.bind(c,1253))},{id:"swift",name:"Swift",import:()=>c.e(937).then(c.bind(c,53318))},{id:"system-verilog",name:"SystemVerilog",import:()=>c.e(3030).then(c.bind(c,3030))},{id:"systemd",name:"Systemd Units",import:()=>c.e(2473).then(c.bind(c,92473))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>c.e(5309).then(c.bind(c,85309))},{id:"tasl",name:"Tasl",import:()=>c.e(4364).then(c.bind(c,94364))},{id:"tcl",name:"Tcl",import:()=>c.e(5209).then(c.bind(c,45209))},{id:"templ",name:"Templ",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1514),c.e(8454)]).then(c.bind(c,8454))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>c.e(4608).then(c.bind(c,14608))},{id:"tex",name:"TeX",import:()=>Promise.all([c.e(5034),c.e(8527)]).then(c.bind(c,18527))},{id:"toml",name:"TOML",import:()=>c.e(2332).then(c.bind(c,12332))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(4456),c.e(1812),c.e(395),c.e(694)]).then(c.bind(c,60694))},{id:"tsv",name:"TSV",import:()=>c.e(3447).then(c.bind(c,13447))},{id:"tsx",name:"TSX",import:()=>c.e(7709).then(c.bind(c,17709))},{id:"turtle",name:"Turtle",import:()=>c.e(6130).then(c.bind(c,6130))},{id:"twig",name:"Twig",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(4456),c.e(1812),c.e(395),c.e(6903),c.e(7709),c.e(8355),c.e(60),c.e(3967),c.e(5374),c.e(7876),c.e(320),c.e(8212),c.e(631)]).then(c.bind(c,90631))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>c.e(5237).then(c.bind(c,45237))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>c.e(3457).then(c.bind(c,83457))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>c.e(8790).then(c.bind(c,78790))},{id:"v",name:"V",import:()=>c.e(3702).then(c.bind(c,53702))},{id:"vala",name:"Vala",import:()=>c.e(5274).then(c.bind(c,55274))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>c.e(1840).then(c.bind(c,19459))},{id:"verilog",name:"Verilog",import:()=>c.e(2518).then(c.bind(c,32518))},{id:"vhdl",name:"VHDL",import:()=>c.e(3654).then(c.bind(c,3654))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>c.e(7140).then(c.bind(c,97140))},{id:"vue",name:"Vue",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(8727)]).then(c.bind(c,18727))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(8727),c.e(5658)]).then(c.bind(c,85658))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(7876),c.e(8275),c.e(8727),c.e(1686),c.e(2153)]).then(c.bind(c,92153))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>c.e(6100).then(c.bind(c,66100))},{id:"wasm",name:"WebAssembly",import:()=>c.e(5720).then(c.bind(c,45720))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>c.e(4826).then(c.bind(c,34826))},{id:"wgsl",name:"WGSL",import:()=>c.e(7535).then(c.bind(c,67535))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>c.e(1361).then(c.bind(c,71361))},{id:"wit",name:"WebAssembly Interface Types",import:()=>c.e(7272).then(c.bind(c,37272))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>c.e(6884).then(c.bind(c,26884))},{id:"xml",name:"XML",import:()=>Promise.all([c.e(4456),c.e(9892)]).then(c.bind(c,29892))},{id:"xsl",name:"XSL",import:()=>Promise.all([c.e(4456),c.e(5517)]).then(c.bind(c,25517))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>c.e(6829).then(c.bind(c,36829))},{id:"zenscript",name:"ZenScript",import:()=>c.e(6310).then(c.bind(c,3929))},{id:"zig",name:"Zig",import:()=>c.e(1766).then(c.bind(c,21766))}],aq=Object.fromEntries(ap.map(a=>[a.id,a.import])),ar=Object.fromEntries(ap.flatMap(a=>a.aliases?.map(b=>[b,a.import])||[])),as={...aq,...ar};class at extends Error{constructor(a){super(a),this.name="ShikiError"}}function au(a,...b){return b.forEach(b=>{for(let c in b)a[c]=b[c]}),a}var av=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,aw=class{static hasCaptures(a){return null!==a&&(av.lastIndex=0,av.test(a))}static replaceCaptures(a,b,c){return a.replace(av,(a,d,e,f)=>{let g=c[parseInt(d||e,10)];if(!g)return a;{let a=b.substring(g.start,g.end);for(;"."===a[0];)a=a.substring(1);switch(f){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}})}};function ax(a,b){if(null===a&&null===b)return 0;if(!a)return -1;if(!b)return 1;let c=a.length,d=b.length;if(c===d){for(let d=0;d<c;d++){var e,f;let c=(e=a[d],e<(f=b[d])?-1:+(e>f));if(0!==c)return c}return 0}return c-d}function ay(a){return!!(/^#[0-9a-f]{6}$/i.test(a)||/^#[0-9a-f]{8}$/i.test(a)||/^#[0-9a-f]{3}$/i.test(a)||/^#[0-9a-f]{4}$/i.test(a))}function az(a){return a.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var aA=class{constructor(a){this.fn=a}cache=new Map;get(a){if(this.cache.has(a))return this.cache.get(a);let b=this.fn(a);return this.cache.set(a,b),b}},aB=class{constructor(a,b,c){this._colorMap=a,this._defaults=b,this._root=c}static createFromRawTheme(a,b){return this.createFromParsedTheme(function(a){if(!a||!a.settings||!Array.isArray(a.settings))return[];let b=a.settings,c=[],d=0;for(let a=0,e=b.length;a<e;a++){let e,f=b[a];if(!f.settings)continue;if("string"==typeof f.scope){let a=f.scope;e=(a=(a=a.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else e=Array.isArray(f.scope)?f.scope:[""];let g=-1;if("string"==typeof f.settings.fontStyle){g=0;let a=f.settings.fontStyle.split(" ");for(let b=0,c=a.length;b<c;b++)switch(a[b]){case"italic":g|=1;break;case"bold":g|=2;break;case"underline":g|=4;break;case"strikethrough":g|=8}}let h=null;"string"==typeof f.settings.foreground&&ay(f.settings.foreground)&&(h=f.settings.foreground);let i=null;"string"==typeof f.settings.background&&ay(f.settings.background)&&(i=f.settings.background);for(let b=0,f=e.length;b<f;b++){let f=e[b].trim().split(" "),j=f[f.length-1],k=null;f.length>1&&(k=f.slice(0,f.length-1)).reverse(),c[d++]=new aE(j,k,a,g,h,i)}}return c}(a),b)}static createFromParsedTheme(a,b){return function(a,b){a.sort((a,b)=>{var c,d;let e=(c=a.scope,c<(d=b.scope)?-1:+(c>d));return 0!==e||0!==(e=ax(a.parentScopes,b.parentScopes))?e:a.index-b.index});let c=0,d="#000000",e="#ffffff";for(;a.length>=1&&""===a[0].scope;){let b=a.shift();-1!==b.fontStyle&&(c=b.fontStyle),null!==b.foreground&&(d=b.foreground),null!==b.background&&(e=b.background)}let f=new aG(b),g=new aD(c,f.getId(d),f.getId(e)),h=new aJ(new aI(0,null,-1,0,0),[]);for(let b=0,c=a.length;b<c;b++){let c=a[b];h.insert(0,c.scope,c.parentScopes,c.fontStyle,f.getId(c.foreground),f.getId(c.background))}return new aB(f,g,h)}(a,b)}_cachedMatchRoot=new aA(a=>this._root.match(a));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(a){if(null===a)return this._defaults;let b=a.scopeName,c=this._cachedMatchRoot.get(b).find(b=>(function(a,b){if(0===b.length)return!0;for(let e=0;e<b.length;e++){var c,d;let f=b[e],g=!1;if(">"===f){if(e===b.length-1)return!1;f=b[++e],g=!0}for(;a&&(c=a.scopeName,!((d=f)===c||c.startsWith(d)&&"."===c[d.length]));){if(g)return!1;a=a.parent}if(!a)return!1;a=a.parent}return!0})(a.parent,b.parentScopes));return c?new aD(c.fontStyle,c.foreground,c.background):null}},aC=class a{constructor(a,b){this.parent=a,this.scopeName=b}static push(b,c){for(let d of c)b=new a(b,d);return b}static from(...b){let c=null;for(let d=0;d<b.length;d++)c=new a(c,b[d]);return c}push(b){return new a(this,b)}getSegments(){let a=this,b=[];for(;a;)b.push(a.scopeName),a=a.parent;return b.reverse(),b}toString(){return this.getSegments().join(" ")}extends(a){return this===a||null!==this.parent&&this.parent.extends(a)}getExtensionIfDefined(a){let b=[],c=this;for(;c&&c!==a;)b.push(c.scopeName),c=c.parent;return c===a?b.reverse():void 0}},aD=class{constructor(a,b,c){this.fontStyle=a,this.foregroundId=b,this.backgroundId=c}},aE=class{constructor(a,b,c,d,e,f){this.scope=a,this.parentScopes=b,this.index=c,this.fontStyle=d,this.foreground=e,this.background=f}},aF=(a=>(a[a.NotSet=-1]="NotSet",a[a.None=0]="None",a[a.Italic=1]="Italic",a[a.Bold=2]="Bold",a[a.Underline=4]="Underline",a[a.Strikethrough=8]="Strikethrough",a))(aF||{}),aG=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(a){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(a)){this._isFrozen=!0;for(let b=0,c=a.length;b<c;b++)this._color2id[a[b]]=b,this._id2color[b]=a[b]}else this._isFrozen=!1}getId(a){if(null===a)return 0;a=a.toUpperCase();let b=this._color2id[a];if(b)return b;if(this._isFrozen)throw Error(`Missing color in color map - ${a}`);return b=++this._lastColorId,this._color2id[a]=b,this._id2color[b]=a,b}getColorMap(){return this._id2color.slice(0)}},aH=Object.freeze([]),aI=class a{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(a,b,c,d,e){this.scopeDepth=a,this.parentScopes=b||aH,this.fontStyle=c,this.foreground=d,this.background=e}clone(){return new a(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(a){let b=[];for(let c=0,d=a.length;c<d;c++)b[c]=a[c].clone();return b}acceptOverwrite(a,b,c,d){this.scopeDepth>a?console.log("how did this happen?"):this.scopeDepth=a,-1!==b&&(this.fontStyle=b),0!==c&&(this.foreground=c),0!==d&&(this.background=d)}},aJ=class a{constructor(a,b=[],c={}){this._mainRule=a,this._children=c,this._rulesWithParentScopes=b}_rulesWithParentScopes;static _cmpBySpecificity(a,b){if(a.scopeDepth!==b.scopeDepth)return b.scopeDepth-a.scopeDepth;let c=0,d=0;for(;">"===a.parentScopes[c]&&c++,">"===b.parentScopes[d]&&d++,!(c>=a.parentScopes.length)&&!(d>=b.parentScopes.length);){let e=b.parentScopes[d].length-a.parentScopes[c].length;if(0!==e)return e;c++,d++}return b.parentScopes.length-a.parentScopes.length}match(b){if(""!==b){let a,c,d=b.indexOf(".");if(-1===d?(a=b,c=""):(a=b.substring(0,d),c=b.substring(d+1)),this._children.hasOwnProperty(a))return this._children[a].match(c)}let c=this._rulesWithParentScopes.concat(this._mainRule);return c.sort(a._cmpBySpecificity),c}insert(b,c,d,e,f,g){let h,i,j;if(""===c)return void this._doInsertHere(b,d,e,f,g);let k=c.indexOf(".");-1===k?(h=c,i=""):(h=c.substring(0,k),i=c.substring(k+1)),this._children.hasOwnProperty(h)?j=this._children[h]:(j=new a(this._mainRule.clone(),aI.cloneArr(this._rulesWithParentScopes)),this._children[h]=j),j.insert(b+1,i,d,e,f,g)}_doInsertHere(a,b,c,d,e){if(null===b)return void this._mainRule.acceptOverwrite(a,c,d,e);for(let f=0,g=this._rulesWithParentScopes.length;f<g;f++){let g=this._rulesWithParentScopes[f];if(0===ax(g.parentScopes,b))return void g.acceptOverwrite(a,c,d,e)}-1===c&&(c=this._mainRule.fontStyle),0===d&&(d=this._mainRule.foreground),0===e&&(e=this._mainRule.background),this._rulesWithParentScopes.push(new aI(a,b,c,d,e))}},aK=class a{static toBinaryStr(a){return a.toString(2).padStart(32,"0")}static print(b){let c=a.getLanguageId(b),d=a.getTokenType(b),e=a.getFontStyle(b);console.log({languageId:c,tokenType:d,fontStyle:e,foreground:a.getForeground(b),background:a.getBackground(b)})}static getLanguageId(a){return(255&a)>>>0}static getTokenType(a){return(768&a)>>>8}static containsBalancedBrackets(a){return(1024&a)!=0}static getFontStyle(a){return(30720&a)>>>11}static getForeground(a){return(0xff8000&a)>>>15}static getBackground(a){return(0xff000000&a)>>>24}static set(b,c,d,e,f,g,h){let i=a.getLanguageId(b),j=a.getTokenType(b),k=+!!a.containsBalancedBrackets(b),l=a.getFontStyle(b),m=a.getForeground(b),n=a.getBackground(b);return 0!==c&&(i=c),8!==d&&(j=d),null!==e&&(k=+!!e),-1!==f&&(l=f),0!==g&&(m=g),0!==h&&(n=h),(0|i|j<<8|k<<10|l<<11|m<<15|n<<24)>>>0}};function aL(a,b){var c;let d,e,f=[],g=(c=a,e=(d=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(c),{next:()=>{if(!e)return null;let a=e[0];return e=d.exec(c),a}}),h=g.next();for(;null!==h;){let a=0;if(2===h.length&&":"===h.charAt(1)){switch(h.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${h} in scope selector`)}h=g.next()}let b=j();if(f.push({matcher:b,priority:a}),","!==h)break;h=g.next()}return f;function i(){if("-"===h){h=g.next();let a=i();return b=>!!a&&!a(b)}if("("===h){h=g.next();let a=function(){let a=[],b=j();for(;b&&(a.push(b),"|"===h||","===h);){do h=g.next();while("|"===h||","===h);b=j()}return b=>a.some(a=>a(b))}();return")"===h&&(h=g.next()),a}if(aM(h)){let a=[];do a.push(h),h=g.next();while(aM(h));return c=>b(a,c)}return null}function j(){let a=[],b=i();for(;b;)a.push(b),b=i();return b=>a.every(a=>a(b))}}function aM(a){return!!a&&!!a.match(/[\w\.:]+/)}var aN=(a=>(a[a.None=0]="None",a[a.NotBeginString=1]="NotBeginString",a[a.NotEndString=2]="NotEndString",a[a.NotBeginPosition=4]="NotBeginPosition",a[a.DebugCall=8]="DebugCall",a))(aN||{});function aO(a){"function"==typeof a.dispose&&a.dispose()}var aP=class{constructor(a){this.scopeName=a}toKey(){return this.scopeName}},aQ=class{constructor(a,b){this.scopeName=a,this.ruleName=b}toKey(){return`${this.scopeName}#${this.ruleName}`}},aR=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(a){let b=a.toKey();this._seenReferenceKeys.has(b)||(this._seenReferenceKeys.add(b),this._references.push(a))}},aS=class{constructor(a,b){this.repo=a,this.initialScopeName=b,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new aP(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let a=this.Q;this.Q=[];let b=new aR;for(let c of a)!function(a,b,c,d){let e=c.lookup(a.scopeName);if(!e){if(a.scopeName===b)throw Error(`No grammar provided for <${b}>`);return}let f=c.lookup(b);a instanceof aP?aU({baseGrammar:f,selfGrammar:e},d):aT(a.ruleName,{baseGrammar:f,selfGrammar:e,repository:e.repository},d);let g=c.injections(a.scopeName);if(g)for(let a of g)d.add(new aP(a))}(c,this.initialScopeName,this.repo,b);for(let a of b.references)if(a instanceof aP){if(this.seenFullScopeRequests.has(a.scopeName))continue;this.seenFullScopeRequests.add(a.scopeName),this.Q.push(a)}else{if(this.seenFullScopeRequests.has(a.scopeName)||this.seenPartialScopeRequests.has(a.toKey()))continue;this.seenPartialScopeRequests.add(a.toKey()),this.Q.push(a)}}};function aT(a,b,c){b.repository&&b.repository[a]&&aV([b.repository[a]],b,c)}function aU(a,b){a.selfGrammar.patterns&&Array.isArray(a.selfGrammar.patterns)&&aV(a.selfGrammar.patterns,{...a,repository:a.selfGrammar.repository},b),a.selfGrammar.injections&&aV(Object.values(a.selfGrammar.injections),{...a,repository:a.selfGrammar.repository},b)}function aV(a,b,c){for(let d of a){if(c.visitedRule.has(d))continue;c.visitedRule.add(d);let a=d.repository?au({},b.repository,d.repository):b.repository;Array.isArray(d.patterns)&&aV(d.patterns,{...b,repository:a},c);let e=d.include;if(!e)continue;let f=a_(e);switch(f.kind){case 0:aU({...b,selfGrammar:b.baseGrammar},c);break;case 1:aU(b,c);break;case 2:aT(f.ruleName,{...b,repository:a},c);break;case 3:case 4:let g=f.scopeName===b.selfGrammar.scopeName?b.selfGrammar:f.scopeName===b.baseGrammar.scopeName?b.baseGrammar:void 0;if(g){let d={baseGrammar:b.baseGrammar,selfGrammar:g,repository:a};4===f.kind?aT(f.ruleName,d,c):aU(d,c)}else 4===f.kind?c.add(new aQ(f.scopeName,f.ruleName)):c.add(new aP(f.scopeName))}}}var aW=class{kind=0},aX=class{kind=1},aY=class{constructor(a){this.ruleName=a}kind=2},aZ=class{constructor(a){this.scopeName=a}kind=3},a$=class{constructor(a,b){this.scopeName=a,this.ruleName=b}kind=4};function a_(a){if("$base"===a)return new aW;if("$self"===a)return new aX;let b=a.indexOf("#");return -1===b?new aZ(a):0===b?new aY(a.substring(1)):new a$(a.substring(0,b),a.substring(b+1))}var a0=/\\(\d+)/,a1=/\\(\d+)/g;Symbol("RuleId");var a2=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(a,b,c,d){this.$location=a,this.id=b,this._name=c||null,this._nameIsCapturing=aw.hasCaptures(this._name),this._contentName=d||null,this._contentNameIsCapturing=aw.hasCaptures(this._contentName)}get debugName(){let a=this.$location?`${function a(b){let c=~b.lastIndexOf("/")||~b.lastIndexOf("\\");return 0===c?b:~c==b.length-1?a(b.substring(0,b.length-1)):b.substr(~c+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${a}`}getName(a,b){return this._nameIsCapturing&&null!==this._name&&null!==a&&null!==b?aw.replaceCaptures(this._name,a,b):this._name}getContentName(a,b){return this._contentNameIsCapturing&&null!==this._contentName?aw.replaceCaptures(this._contentName,a,b):this._contentName}},a3=class extends a2{retokenizeCapturedWithRuleId;constructor(a,b,c,d,e){super(a,b,c,d),this.retokenizeCapturedWithRuleId=e}dispose(){}collectPatterns(a,b){throw Error("Not supported!")}compile(a,b){throw Error("Not supported!")}compileAG(a,b,c,d){throw Error("Not supported!")}},a4=class extends a2{_match;captures;_cachedCompiledPatterns;constructor(a,b,c,d,e){super(a,b,c,null),this._match=new a9(d,this.id),this.captures=e,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(a,b){b.push(this._match)}compile(a,b){return this._getCachedCompiledPatterns(a).compile(a)}compileAG(a,b,c,d){return this._getCachedCompiledPatterns(a).compileAG(a,c,d)}_getCachedCompiledPatterns(a){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ba,this.collectPatterns(a,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},a5=class extends a2{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(a,b,c,d,e){super(a,b,c,d),this.patterns=e.patterns,this.hasMissingPatterns=e.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(a,b){for(let c of this.patterns)a.getRule(c).collectPatterns(a,b)}compile(a,b){return this._getCachedCompiledPatterns(a).compile(a)}compileAG(a,b,c,d){return this._getCachedCompiledPatterns(a).compileAG(a,c,d)}_getCachedCompiledPatterns(a){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ba,this.collectPatterns(a,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},a6=class extends a2{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(a,b,c,d,e,f,g,h,i,j){super(a,b,c,d),this._begin=new a9(e,this.id),this.beginCaptures=f,this._end=new a9(g||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=h,this.applyEndPatternLast=i||!1,this.patterns=j.patterns,this.hasMissingPatterns=j.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(a,b){return this._end.resolveBackReferences(a,b)}collectPatterns(a,b){b.push(this._begin)}compile(a,b){return this._getCachedCompiledPatterns(a,b).compile(a)}compileAG(a,b,c,d){return this._getCachedCompiledPatterns(a,b).compileAG(a,c,d)}_getCachedCompiledPatterns(a,b){if(!this._cachedCompiledPatterns){for(let b of(this._cachedCompiledPatterns=new ba,this.patterns))a.getRule(b).collectPatterns(a,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,b):this._cachedCompiledPatterns.setSource(0,b)),this._cachedCompiledPatterns}},a7=class extends a2{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(a,b,c,d,e,f,g,h,i){super(a,b,c,d),this._begin=new a9(e,this.id),this.beginCaptures=f,this.whileCaptures=h,this._while=new a9(g,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(a,b){return this._while.resolveBackReferences(a,b)}collectPatterns(a,b){b.push(this._begin)}compile(a,b){return this._getCachedCompiledPatterns(a).compile(a)}compileAG(a,b,c,d){return this._getCachedCompiledPatterns(a).compileAG(a,c,d)}_getCachedCompiledPatterns(a){if(!this._cachedCompiledPatterns)for(let b of(this._cachedCompiledPatterns=new ba,this.patterns))a.getRule(b).collectPatterns(a,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(a,b){return this._getCachedCompiledWhilePatterns(a,b).compile(a)}compileWhileAG(a,b,c,d){return this._getCachedCompiledWhilePatterns(a,b).compileAG(a,c,d)}_getCachedCompiledWhilePatterns(a,b){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ba,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,b||""),this._cachedCompiledWhilePatterns}},a8=class a{static createCaptureRule(a,b,c,d,e){return a.registerRule(a=>new a3(b,a,c,d,e))}static getCompiledRuleId(b,c,d){return b.id||c.registerRule(e=>{if(b.id=e,b.match)return new a4(b.$vscodeTextmateLocation,b.id,b.name,b.match,a._compileCaptures(b.captures,c,d));if(void 0===b.begin){b.repository&&(d=au({},d,b.repository));let e=b.patterns;return void 0===e&&b.include&&(e=[{include:b.include}]),new a5(b.$vscodeTextmateLocation,b.id,b.name,b.contentName,a._compilePatterns(e,c,d))}return b.while?new a7(b.$vscodeTextmateLocation,b.id,b.name,b.contentName,b.begin,a._compileCaptures(b.beginCaptures||b.captures,c,d),b.while,a._compileCaptures(b.whileCaptures||b.captures,c,d),a._compilePatterns(b.patterns,c,d)):new a6(b.$vscodeTextmateLocation,b.id,b.name,b.contentName,b.begin,a._compileCaptures(b.beginCaptures||b.captures,c,d),b.end,a._compileCaptures(b.endCaptures||b.captures,c,d),b.applyEndPatternLast,a._compilePatterns(b.patterns,c,d))}),b.id}static _compileCaptures(b,c,d){let e=[];if(b){let f=0;for(let a in b){if("$vscodeTextmateLocation"===a)continue;let b=parseInt(a,10);b>f&&(f=b)}for(let a=0;a<=f;a++)e[a]=null;for(let f in b){if("$vscodeTextmateLocation"===f)continue;let g=parseInt(f,10),h=0;b[f].patterns&&(h=a.getCompiledRuleId(b[f],c,d)),e[g]=a.createCaptureRule(c,b[f].$vscodeTextmateLocation,b[f].name,b[f].contentName,h)}}return e}static _compilePatterns(b,c,d){let e=[];if(b)for(let f=0,g=b.length;f<g;f++){let g=b[f],h=-1;if(g.include){let b=a_(g.include);switch(b.kind){case 0:case 1:h=a.getCompiledRuleId(d[g.include],c,d);break;case 2:let e=d[b.ruleName];e&&(h=a.getCompiledRuleId(e,c,d));break;case 3:case 4:let f=b.scopeName,i=4===b.kind?b.ruleName:null,j=c.getExternalGrammar(f,d);if(j)if(i){let b=j.repository[i];b&&(h=a.getCompiledRuleId(b,c,j.repository))}else h=a.getCompiledRuleId(j.repository.$self,c,j.repository)}}else h=a.getCompiledRuleId(g,c,d);if(-1!==h){let a=c.getRule(h),b=!1;if((a instanceof a5||a instanceof a6||a instanceof a7)&&a.hasMissingPatterns&&0===a.patterns.length&&(b=!0),b)continue;e.push(h)}}return{patterns:e,hasMissingPatterns:(b?b.length:0)!==e.length}}},a9=class a{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(a,b){if(a&&"string"==typeof a){let b=a.length,c=0,d=[],e=!1;for(let f=0;f<b;f++)if("\\"===a.charAt(f)&&f+1<b){let b=a.charAt(f+1);"z"===b?(d.push(a.substring(c,f)),d.push("$(?!\\n)(?<!\\n)"),c=f+2):("A"===b||"G"===b)&&(e=!0),f++}this.hasAnchor=e,0===c?this.source=a:(d.push(a.substring(c,b)),this.source=d.join(""))}else this.hasAnchor=!1,this.source=a;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=b,"string"==typeof this.source?this.hasBackReferences=a0.test(this.source):this.hasBackReferences=!1}clone(){return new a(this.source,this.ruleId)}setSource(a){this.source!==a&&(this.source=a,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(a,b){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let c=b.map(b=>a.substring(b.start,b.end));return a1.lastIndex=0,this.source.replace(a1,(a,b)=>az(c[parseInt(b,10)]||""))}_buildAnchorCache(){let a,b,c,d;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let e=[],f=[],g=[],h=[];for(a=0,b=this.source.length;a<b;a++)c=this.source.charAt(a),e[a]=c,f[a]=c,g[a]=c,h[a]=c,"\\"===c&&a+1<b&&("A"===(d=this.source.charAt(a+1))?(e[a+1]="",f[a+1]="",g[a+1]="A",h[a+1]="A"):"G"===d?(e[a+1]="",f[a+1]="G",g[a+1]="",h[a+1]="G"):(e[a+1]=d,f[a+1]=d,g[a+1]=d,h[a+1]=d),a++);return{A0_G0:e.join(""),A0_G1:f.join(""),A1_G0:g.join(""),A1_G1:h.join("")}}resolveAnchors(a,b){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(a)if(b)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return b?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ba=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(a){this._items.push(a),this._hasAnchors=this._hasAnchors||a.hasAnchor}unshift(a){this._items.unshift(a),this._hasAnchors=this._hasAnchors||a.hasAnchor}length(){return this._items.length}setSource(a,b){this._items[a].source!==b&&(this._disposeCaches(),this._items[a].setSource(b))}compile(a){if(!this._cached){let b=this._items.map(a=>a.source);this._cached=new bb(a,b,this._items.map(a=>a.ruleId))}return this._cached}compileAG(a,b,c){if(!this._hasAnchors)return this.compile(a);if(b)if(c)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(a,b,c)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(a,b,c)),this._anchorCache.A1_G0;return c?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(a,b,c)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(a,b,c)),this._anchorCache.A0_G0)}_resolveAnchors(a,b,c){return new bb(a,this._items.map(a=>a.resolveAnchors(b,c)),this._items.map(a=>a.ruleId))}},bb=class{constructor(a,b,c){this.regExps=b,this.rules=c,this.scanner=a.createOnigScanner(b)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let a=[];for(let b=0,c=this.rules.length;b<c;b++)a.push(" - "+this.rules[b]+": "+this.regExps[b]);return a.join("\n")}findNextMatchSync(a,b,c){let d=this.scanner.findNextMatchSync(a,b,c);return d?{ruleId:this.rules[d.index],captureIndices:d.captureIndices}:null}},bc=class{constructor(a,b){this.languageId=a,this.tokenType=b}},bd=class a{_defaultAttributes;_embeddedLanguagesMatcher;constructor(a,b){this._defaultAttributes=new bc(a,8),this._embeddedLanguagesMatcher=new be(Object.entries(b||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(b){return null===b?a._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(b)}static _NULL_SCOPE_METADATA=new bc(0,0);_getBasicScopeAttributes=new aA(a=>new bc(this._scopeToLanguage(a),this._toStandardTokenType(a)));_scopeToLanguage(a){return this._embeddedLanguagesMatcher.match(a)||0}_toStandardTokenType(b){let c=b.match(a.STANDARD_TOKEN_TYPE_REGEXP);if(!c)return 8;switch(c[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},be=class{values;scopesRegExp;constructor(a){if(0===a.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(a);let b=a.map(([a,b])=>az(a));b.sort(),b.reverse(),this.scopesRegExp=RegExp(`^((${b.join(")|(")}))($|\\.)`,"")}}match(a){if(!this.scopesRegExp)return;let b=a.match(this.scopesRegExp);if(b)return this.values.get(b[1])}};"undefined"!=typeof process&&process.env.VSCODE_TEXTMATE_DEBUG;var bf=class{constructor(a,b){this.stack=a,this.stoppedEarly=b}};function bg(a,b,c,d,e,f,g,h){let i=b.content.length,j=!1,k=-1;if(g){let g=function(a,b,c,d,e,f){let g=e.beginRuleCapturedEOL?0:-1,h=[];for(let b=e;b;b=b.pop()){let c=b.getRule(a);c instanceof a7&&h.push({rule:c,stack:b})}for(let n=h.pop();n;n=h.pop()){var i,j,k,l,m;let{ruleScanner:h,findOptions:o}=(i=n.rule,j=a,k=n.stack.endRule,l=c,m=d===g,{ruleScanner:i.compileWhileAG(j,k,l,m),findOptions:0}),p=h.findNextMatchSync(b,d,o);if(p){if(-2!==p.ruleId){e=n.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(f.produce(n.stack,p.captureIndices[0].start),bi(a,b,c,n.stack,f,n.rule.whileCaptures,p.captureIndices),f.produce(n.stack,p.captureIndices[0].end),g=p.captureIndices[0].end,p.captureIndices[0].end>d&&(d=p.captureIndices[0].end,c=!1))}else{e=n.stack.pop();break}}return{stack:e,linePos:d,anchorPosition:g,isFirstLine:c}}(a,b,c,d,e,f);e=g.stack,d=g.linePos,c=g.isFirstLine,k=g.anchorPosition}let l=Date.now();for(;!j;){if(0!==h&&Date.now()-l>h)return new bf(e,!0);!function(){let g=function(a,b,c,d,e,f){let g=function(a,b,c,d,e,f){let{ruleScanner:g,findOptions:h}=bh(e.getRule(a),a,e.endRule,c,d===f),i=g.findNextMatchSync(b,d,h);return i?{captureIndices:i.captureIndices,matchedRuleId:i.ruleId}:null}(a,b,c,d,e,f),h=a.getInjections();if(0===h.length)return g;let i=function(a,b,c,d,e,f,g){let h,i=Number.MAX_VALUE,j=null,k=0,l=f.contentNameScopesList.getScopeNames();for(let f=0,m=a.length;f<m;f++){let m=a[f];if(!m.matcher(l))continue;let{ruleScanner:n,findOptions:o}=bh(b.getRule(m.ruleId),b,null,d,e===g),p=n.findNextMatchSync(c,e,o);if(!p)continue;let q=p.captureIndices[0].start;if(!(q>=i)&&(i=q,j=p.captureIndices,h=p.ruleId,k=m.priority,i===e))break}return j?{priorityMatch:-1===k,captureIndices:j,matchedRuleId:h}:null}(h,a,b,c,d,e,f);if(!i)return g;if(!g)return i;let j=g.captureIndices[0].start,k=i.captureIndices[0].start;return k<j||i.priorityMatch&&k===j?i:g}(a,b,c,d,e,k);if(!g){f.produce(e,i),j=!0;return}let h=g.captureIndices,l=g.matchedRuleId,m=!!h&&h.length>0&&h[0].end>d;if(-1===l){let g=e.getRule(a);f.produce(e,h[0].start),e=e.withContentNameScopesList(e.nameScopesList),bi(a,b,c,e,f,g.endCaptures,h),f.produce(e,h[0].end);let l=e;if(e=e.parent,k=l.getAnchorPos(),!m&&l.getEnterPos()===d){e=l,f.produce(e,i),j=!0;return}}else{let g=a.getRule(l);f.produce(e,h[0].start);let n=e,o=g.getName(b.content,h),p=e.contentNameScopesList.pushAttributed(o,a);if(e=e.push(l,d,k,h[0].end===i,null,p,p),g instanceof a6){bi(a,b,c,e,f,g.beginCaptures,h),f.produce(e,h[0].end),k=h[0].end;let d=g.getContentName(b.content,h),l=p.pushAttributed(d,a);if(e=e.withContentNameScopesList(l),g.endHasBackReferences&&(e=e.withEndRule(g.getEndWithResolvedBackReferences(b.content,h))),!m&&n.hasSameRuleAs(e)){e=e.pop(),f.produce(e,i),j=!0;return}}else if(g instanceof a7){bi(a,b,c,e,f,g.beginCaptures,h),f.produce(e,h[0].end),k=h[0].end;let d=g.getContentName(b.content,h),l=p.pushAttributed(d,a);if(e=e.withContentNameScopesList(l),g.whileHasBackReferences&&(e=e.withEndRule(g.getWhileWithResolvedBackReferences(b.content,h))),!m&&n.hasSameRuleAs(e)){e=e.pop(),f.produce(e,i),j=!0;return}}else if(bi(a,b,c,e,f,g.captures,h),f.produce(e,h[0].end),e=e.pop(),!m){e=e.safePop(),f.produce(e,i),j=!0;return}}h[0].end>d&&(d=h[0].end,c=!1)}()}return new bf(e,!1)}function bh(a,b,c,d,e){return{ruleScanner:a.compileAG(b,c,d,e),findOptions:0}}function bi(a,b,c,d,e,f,g){if(0===f.length)return;let h=b.content,i=Math.min(f.length,g.length),j=[],k=g[0].end;for(let b=0;b<i;b++){let i=f[b];if(null===i)continue;let l=g[b];if(0===l.length)continue;if(l.start>k)break;for(;j.length>0&&j[j.length-1].endPos<=l.start;)e.produceFromScopes(j[j.length-1].scopes,j[j.length-1].endPos),j.pop();if(j.length>0?e.produceFromScopes(j[j.length-1].scopes,l.start):e.produce(d,l.start),i.retokenizeCapturedWithRuleId){let b=i.getName(h,g),f=d.contentNameScopesList.pushAttributed(b,a),j=i.getContentName(h,g),k=f.pushAttributed(j,a),m=d.push(i.retokenizeCapturedWithRuleId,l.start,-1,!1,null,f,k),n=a.createOnigString(h.substring(0,l.end));bg(a,n,c&&0===l.start,l.start,m,e,!1,0),aO(n);continue}let m=i.getName(h,g);if(null!==m){let b=(j.length>0?j[j.length-1].scopes:d.contentNameScopesList).pushAttributed(m,a);j.push(new bj(b,l.end))}}for(;j.length>0;)e.produceFromScopes(j[j.length-1].scopes,j[j.length-1].endPos),j.pop()}var bj=class{scopes;endPos;constructor(a,b){this.scopes=a,this.endPos=b}};function bk(a,b,c,d,e){let f=aL(b,bl),g=a8.getCompiledRuleId(c,d,e.repository);for(let c of f)a.push({debugSelector:b,matcher:c.matcher,ruleId:g,grammar:e,priority:c.priority})}function bl(a,b){if(b.length<a.length)return!1;let c=0;return a.every(a=>{for(let d=c;d<b.length;d++)if(function(a,b){if(!a)return!1;if(a===b)return!0;let c=b.length;return a.length>c&&a.substr(0,c)===b&&"."===a[c]}(b[d],a))return c=d+1,!0;return!1})}var bm=class{constructor(a,b,c,d,e,f,g,h){if(this._rootScopeName=a,this.balancedBracketSelectors=f,this._onigLib=h,this._basicScopeAttributesProvider=new bd(c,d),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=g,this._grammar=bn(b,null),this._injections=null,this._tokenTypeMatchers=[],e)for(let a of Object.keys(e))for(let b of aL(a,bl))this._tokenTypeMatchers.push({matcher:b.matcher,type:e[a]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let a of this._ruleId2desc)a&&a.dispose()}createOnigScanner(a){return this._onigLib.createOnigScanner(a)}createOnigString(a){return this._onigLib.createOnigString(a)}getMetadataForScope(a){return this._basicScopeAttributesProvider.getBasicScopeAttributes(a)}_collectInjections(){let a=[],b=this._rootScopeName,c=({lookup:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)}).lookup(b);if(c){let d=c.injections;if(d)for(let b in d)bk(a,b,d[b],this,c);let e=this._grammarRepository.injections(b);e&&e.forEach(b=>{let c=this.getExternalGrammar(b);if(c){let b=c.injectionSelector;b&&bk(a,b,c,this,c)}})}return a.sort((a,b)=>a.priority-b.priority),a}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(a){let b=++this._lastRuleId,c=a(b);return this._ruleId2desc[b]=c,c}getRule(a){return this._ruleId2desc[a]}getExternalGrammar(a,b){if(this._includedGrammars[a])return this._includedGrammars[a];if(this._grammarRepository){let c=this._grammarRepository.lookup(a);if(c)return this._includedGrammars[a]=bn(c,b&&b.$base),this._includedGrammars[a]}}tokenizeLine(a,b,c=0){let d=this._tokenize(a,b,!1,c);return{tokens:d.lineTokens.getResult(d.ruleStack,d.lineLength),ruleStack:d.ruleStack,stoppedEarly:d.stoppedEarly}}tokenizeLine2(a,b,c=0){let d=this._tokenize(a,b,!0,c);return{tokens:d.lineTokens.getBinaryResult(d.ruleStack,d.lineLength),ruleStack:d.ruleStack,stoppedEarly:d.stoppedEarly}}_tokenize(a,b,c,d){let e;if(-1===this._rootId&&(this._rootId=a8.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),b&&b!==bp.NULL)e=!1,b.reset();else{let a;e=!0;let c=this._basicScopeAttributesProvider.getDefaultAttributes(),d=this.themeProvider.getDefaults(),f=aK.set(0,c.languageId,c.tokenType,null,d.fontStyle,d.foregroundId,d.backgroundId),g=this.getRule(this._rootId).getName(null,null);a=g?bo.createRootAndLookUpScopeName(g,f,this):bo.createRoot("unknown",f),b=new bp(null,this._rootId,-1,-1,!1,null,a,a)}a+="\n";let f=this.createOnigString(a),g=f.content.length,h=new br(c,a,this._tokenTypeMatchers,this.balancedBracketSelectors),i=bg(this,f,e,0,b,h,!0,d);return aO(f),{lineLength:g,lineTokens:h,ruleStack:i.stack,stoppedEarly:i.stoppedEarly}}};function bn(a,b){return(a=function a(b){return Array.isArray(b)?function(b){let c=[];for(let d=0,e=b.length;d<e;d++)c[d]=a(b[d]);return c}(b):b instanceof RegExp?b:"object"==typeof b?function(b){let c={};for(let d in b)c[d]=a(b[d]);return c}(b):b}(a)).repository=a.repository||{},a.repository.$self={$vscodeTextmateLocation:a.$vscodeTextmateLocation,patterns:a.patterns,name:a.scopeName},a.repository.$base=b||a.repository.$self,a}var bo=class a{constructor(a,b,c){this.parent=a,this.scopePath=b,this.tokenAttributes=c}static fromExtension(b,c){let d=b,e=b?.scopePath??null;for(let b of c)d=new a(d,e=aC.push(e,b.scopeNames),b.encodedTokenAttributes);return d}static createRoot(b,c){return new a(null,new aC(null,b),c)}static createRootAndLookUpScopeName(b,c,d){let e=d.getMetadataForScope(b),f=new aC(null,b),g=d.themeProvider.themeMatch(f),h=a.mergeAttributes(c,e,g);return new a(null,f,h)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(b){return a.equals(this,b)}static equals(a,b){for(;;){if(a===b||!a&&!b)return!0;if(!a||!b||a.scopeName!==b.scopeName||a.tokenAttributes!==b.tokenAttributes)return!1;a=a.parent,b=b.parent}}static mergeAttributes(a,b,c){let d=-1,e=0,f=0;return null!==c&&(d=c.fontStyle,e=c.foregroundId,f=c.backgroundId),aK.set(a,b.languageId,b.tokenType,null,d,e,f)}pushAttributed(b,c){if(null===b)return this;if(-1===b.indexOf(" "))return a._pushAttributed(this,b,c);let d=b.split(/ /g),e=this;for(let b of d)e=a._pushAttributed(e,b,c);return e}static _pushAttributed(b,c,d){let e=d.getMetadataForScope(c),f=b.scopePath.push(c),g=d.themeProvider.themeMatch(f),h=a.mergeAttributes(b.tokenAttributes,e,g);return new a(b,f,h)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(a){let b=[],c=this;for(;c&&c!==a;)b.push({encodedTokenAttributes:c.tokenAttributes,scopeNames:c.scopePath.getExtensionIfDefined(c.parent?.scopePath??null)}),c=c.parent;return c===a?b.reverse():void 0}},bp=class a{constructor(a,b,c,d,e,f,g,h){this.parent=a,this.ruleId=b,this.beginRuleCapturedEOL=e,this.endRule=f,this.nameScopesList=g,this.contentNameScopesList=h,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=c,this._anchorPos=d}_stackElementBrand=void 0;static NULL=new a(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(b){return null!==b&&a._equals(this,b)}static _equals(a,b){return a===b||!!this._structuralEquals(a,b)&&bo.equals(a.contentNameScopesList,b.contentNameScopesList)}static _structuralEquals(a,b){for(;;){if(a===b||!a&&!b)return!0;if(!a||!b||a.depth!==b.depth||a.ruleId!==b.ruleId||a.endRule!==b.endRule)return!1;a=a.parent,b=b.parent}}clone(){return this}static _reset(a){for(;a;)a._enterPos=-1,a._anchorPos=-1,a=a.parent}reset(){a._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(b,c,d,e,f,g,h){return new a(this,b,c,d,e,f,g,h)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(a){return a.getRule(this.ruleId)}toString(){let a=[];return this._writeString(a,0),"["+a.join(",")+"]"}_writeString(a,b){return this.parent&&(b=this.parent._writeString(a,b)),a[b++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,b}withContentNameScopesList(a){return this.contentNameScopesList===a?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,a)}withEndRule(b){return this.endRule===b?this:new a(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,b,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(a){let b=this;for(;b&&b._enterPos===a._enterPos;){if(b.ruleId===a.ruleId)return!0;b=b.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(b,c){let d=bo.fromExtension(b?.nameScopesList??null,c.nameScopesList);return new a(b,c.ruleId,c.enterPos??-1,c.anchorPos??-1,c.beginRuleCapturedEOL,c.endRule,d,bo.fromExtension(d,c.contentNameScopesList))}},bq=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(a,b){this.balancedBracketScopes=a.flatMap(a=>"*"===a?(this.allowAny=!0,[]):aL(a,bl).map(a=>a.matcher)),this.unbalancedBracketScopes=b.flatMap(a=>aL(a,bl).map(a=>a.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(a){for(let b of this.unbalancedBracketScopes)if(b(a))return!1;for(let b of this.balancedBracketScopes)if(b(a))return!0;return this.allowAny}},br=class{constructor(a,b,c,d){this.balancedBracketSelectors=d,this._emitBinaryTokens=a,this._tokenTypeOverrides=c,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(a,b){this.produceFromScopes(a.contentNameScopesList,b)}produceFromScopes(a,b){if(this._lastTokenEndIndex>=b)return;if(this._emitBinaryTokens){let c=a?.tokenAttributes??0,d=!1;if(this.balancedBracketSelectors?.matchesAlways&&(d=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let b=a?.getScopeNames()??[];for(let a of this._tokenTypeOverrides)a.matcher(b)&&(c=aK.set(c,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(d=this.balancedBracketSelectors.match(b))}if(d&&(c=aK.set(c,0,8,d,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===c){this._lastTokenEndIndex=b;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(c),this._lastTokenEndIndex=b;return}let c=a?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:b,scopes:c}),this._lastTokenEndIndex=b}getResult(a,b){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===b-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(a,b),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(a,b){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===b-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(a,b),this._binaryTokens[this._binaryTokens.length-2]=0);let c=new Uint32Array(this._binaryTokens.length);for(let a=0,b=this._binaryTokens.length;a<b;a++)c[a]=this._binaryTokens[a];return c}},bs=class{constructor(a,b){this._onigLib=b,this._theme=a}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let a of this._grammars.values())a.dispose()}setTheme(a){this._theme=a}getColorMap(){return this._theme.getColorMap()}addGrammar(a,b){this._rawGrammars.set(a.scopeName,a),b&&this._injectionGrammars.set(a.scopeName,b)}lookup(a){return this._rawGrammars.get(a)}injections(a){return this._injectionGrammars.get(a)}getDefaults(){return this._theme.getDefaults()}themeMatch(a){return this._theme.match(a)}grammarForScopeName(a,b,c,d,e){if(!this._grammars.has(a)){let f=this._rawGrammars.get(a);if(!f)return null;this._grammars.set(a,new bm(a,f,b,c,d,e,this,this._onigLib))}return this._grammars.get(a)}},bt=class{_options;_syncRegistry;_ensureGrammarCache;constructor(a){this._options=a,this._syncRegistry=new bs(aB.createFromRawTheme(a.theme,a.colorMap),a.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(a,b){this._syncRegistry.setTheme(aB.createFromRawTheme(a,b))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(a,b,c){return this.loadGrammarWithConfiguration(a,b,{embeddedLanguages:c})}loadGrammarWithConfiguration(a,b,c){return this._loadGrammar(a,b,c.embeddedLanguages,c.tokenTypes,new bq(c.balancedBracketSelectors||[],c.unbalancedBracketSelectors||[]))}loadGrammar(a){return this._loadGrammar(a,0,null,null,null)}_loadGrammar(a,b,c,d,e){let f=new aS(this._syncRegistry,a);for(;f.Q.length>0;)f.Q.map(a=>this._loadSingleGrammar(a.scopeName)),f.processQueue();return this._grammarForScopeName(a,b,c,d,e)}_loadSingleGrammar(a){this._ensureGrammarCache.has(a)||(this._doLoadSingleGrammar(a),this._ensureGrammarCache.set(a,!0))}_doLoadSingleGrammar(a){let b=this._options.loadGrammar(a);if(b){let c="function"==typeof this._options.getInjections?this._options.getInjections(a):void 0;this._syncRegistry.addGrammar(b,c)}}addGrammar(a,b=[],c=0,d=null){return this._syncRegistry.addGrammar(a,b),this._grammarForScopeName(a.scopeName,c,d)}_grammarForScopeName(a,b=0,c=null,d=null,e=null){return this._syncRegistry.grammarForScopeName(a,b,c,d,e)}},bu=bp.NULL,bv=c(51798),bw=c(64432),bx=c(33677);let by=/["&'<>`]/g,bz=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bA=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,bB=/[|\\{}()[\]^$+*?.]/g,bC=new WeakMap,bD=/[\dA-Fa-f]/,bE=/\d/,bF=["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"],bG={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",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:"€"},bH=["cent","copy","divide","gt","lt","not","para","times"],bI={}.hasOwnProperty,bJ={};for(d in bG)bI.call(bG,d)&&(bJ[bG[d]]=d);let bK=/[^\dA-Za-z]/;function bL(a,b,c){let d,e=function(a,b,c){let d="&#x"+a.toString(16).toUpperCase();return c&&b&&!bD.test(String.fromCharCode(b))?d:d+";"}(a,b,c.omitOptionalSemicolons);if((c.useNamedReferences||c.useShortestReferences)&&(d=function(a,b,c,d){let e=String.fromCharCode(a);if(bI.call(bJ,e)){let a=bJ[e],f="&"+a;return c&&bF.includes(a)&&!bH.includes(a)&&(!d||b&&61!==b&&bK.test(String.fromCharCode(b)))?f:f+";"}return""}(a,b,c.omitOptionalSemicolons,c.attribute)),(c.useShortestReferences||!d)&&c.useShortestReferences){let d=function(a,b,c){let d="&#"+String(a);return c&&b&&!bE.test(String.fromCharCode(b))?d:d+";"}(a,b,c.omitOptionalSemicolons);d.length<e.length&&(e=d)}return d&&(!c.useShortestReferences||d.length<e.length)?d:e}function bM(a,b){let c;var d,e=a,f=Object.assign({format:bL},b);if(e=e.replace(f.subset?(d=f.subset,(c=bC.get(d))||(c=function(a){let b=[],c=-1;for(;++c<a.length;)b.push(a[c].replace(bB,"\\$&"));return RegExp("(?:"+b.join("|")+")","g")}(d),bC.set(d,c)),c):by,g),f.subset||f.escapeOnly)return e;return e.replace(bz,function(a,b,c){return f.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,c.charCodeAt(b+2),f)}).replace(bA,g);function g(a,b,c){return f.format(a.charCodeAt(0),c.charCodeAt(b+1),f)}}let bN=/^>|^->|<!--|-->|--!>|<!-$/g,bO=[">"],bP=["<",">"];var bQ=c(78198),bR=c(4304),bS=c(66474),bT=c(48427),bU=c(95966);let bV=bY(1),bW=bY(-1),bX=[];function bY(a){return function(b,c,d){let e=b?b.children:bX,f=(c||0)+a,g=e[f];if(!d)for(;g&&(0,bU.m)(g);)f+=a,g=e[f];return g}}let bZ={}.hasOwnProperty;function b$(a){return function(b,c,d){return bZ.call(a,b.tagName)&&a[b.tagName](b,c,d)}}let b_=b$({body:function(a,b,c){let d=bV(c,b);return!d||"comment"!==d.type},caption:b0,colgroup:b0,dd:function(a,b,c){let d=bV(c,b);return!d||"element"===d.type&&("dt"===d.tagName||"dd"===d.tagName)},dt:function(a,b,c){let d=bV(c,b);return!!(d&&"element"===d.type&&("dt"===d.tagName||"dd"===d.tagName))},head:b0,html:function(a,b,c){let d=bV(c,b);return!d||"comment"!==d.type},li:function(a,b,c){let d=bV(c,b);return!d||"element"===d.type&&"li"===d.tagName},optgroup:function(a,b,c){let d=bV(c,b);return!d||"element"===d.type&&"optgroup"===d.tagName},option:function(a,b,c){let d=bV(c,b);return!d||"element"===d.type&&("option"===d.tagName||"optgroup"===d.tagName)},p:function(a,b,c){let d=bV(c,b);return d?"element"===d.type&&("address"===d.tagName||"article"===d.tagName||"aside"===d.tagName||"blockquote"===d.tagName||"details"===d.tagName||"div"===d.tagName||"dl"===d.tagName||"fieldset"===d.tagName||"figcaption"===d.tagName||"figure"===d.tagName||"footer"===d.tagName||"form"===d.tagName||"h1"===d.tagName||"h2"===d.tagName||"h3"===d.tagName||"h4"===d.tagName||"h5"===d.tagName||"h6"===d.tagName||"header"===d.tagName||"hgroup"===d.tagName||"hr"===d.tagName||"main"===d.tagName||"menu"===d.tagName||"nav"===d.tagName||"ol"===d.tagName||"p"===d.tagName||"pre"===d.tagName||"section"===d.tagName||"table"===d.tagName||"ul"===d.tagName):!c||"element"!==c.type||"a"!==c.tagName&&"audio"!==c.tagName&&"del"!==c.tagName&&"ins"!==c.tagName&&"map"!==c.tagName&&"noscript"!==c.tagName&&"video"!==c.tagName},rp:b1,rt:b1,tbody:function(a,b,c){let d=bV(c,b);return!d||"element"===d.type&&("tbody"===d.tagName||"tfoot"===d.tagName)},td:b2,tfoot:function(a,b,c){return!bV(c,b)},th:b2,thead:function(a,b,c){let d=bV(c,b);return!!(d&&"element"===d.type&&("tbody"===d.tagName||"tfoot"===d.tagName))},tr:function(a,b,c){let d=bV(c,b);return!d||"element"===d.type&&"tr"===d.tagName}});function b0(a,b,c){let d=bV(c,b,!0);return!d||"comment"!==d.type&&!("text"===d.type&&(0,bU.m)(d.value.charAt(0)))}function b1(a,b,c){let d=bV(c,b);return!d||"element"===d.type&&("rp"===d.tagName||"rt"===d.tagName)}function b2(a,b,c){let d=bV(c,b);return!d||"element"===d.type&&("td"===d.tagName||"th"===d.tagName)}let b3=b$({body:function(a){let b=bV(a,-1,!0);return!b||"comment"!==b.type&&!("text"===b.type&&(0,bU.m)(b.value.charAt(0)))&&("element"!==b.type||"meta"!==b.tagName&&"link"!==b.tagName&&"script"!==b.tagName&&"style"!==b.tagName&&"template"!==b.tagName)},colgroup:function(a,b,c){let d=bW(c,b),e=bV(a,-1,!0);return!(c&&d&&"element"===d.type&&"colgroup"===d.tagName&&b_(d,c.children.indexOf(d),c))&&!!(e&&"element"===e.type&&"col"===e.tagName)},head:function(a){let b=new Set;for(let c of a.children)if("element"===c.type&&("base"===c.tagName||"title"===c.tagName)){if(b.has(c.tagName))return!1;b.add(c.tagName)}let c=a.children[0];return!c||"element"===c.type},html:function(a){let b=bV(a,-1);return!b||"comment"!==b.type},tbody:function(a,b,c){let d=bW(c,b),e=bV(a,-1);return!(c&&d&&"element"===d.type&&("thead"===d.tagName||"tbody"===d.tagName)&&b_(d,c.children.indexOf(d),c))&&!!(e&&"element"===e.type&&"tr"===e.tagName)}}),b4={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},b5=["<","&"];function b6(a,b,c,d){return c&&"element"===c.type&&("script"===c.tagName||"style"===c.tagName)?a.value:bM(a.value,Object.assign({},d.settings.characterReferences,{subset:b5}))}let b7=(0,bx.A)("type",{invalid:function(a){throw Error("Expected node, not `"+a+"`")},unknown:function(a){throw Error("Cannot compile unknown node `"+a.type+"`")},handlers:{comment:function(a,b,c,d){return d.settings.bogusComments?"<?"+bM(a.value,Object.assign({},d.settings.characterReferences,{subset:bO}))+">":"\x3c!--"+a.value.replace(bN,function(a){return bM(a,Object.assign({},d.settings.characterReferences,{subset:bP}))})+"--\x3e"},doctype:function(a,b,c,d){return"<!"+(d.settings.upperDoctype?"DOCTYPE":"doctype")+(d.settings.tightDoctype?"":" ")+"html>"},element:function(a,b,c,d){let e,f=d.schema,g="svg"!==f.space&&d.settings.omitOptionalTags,h="svg"===f.space?d.settings.closeEmptyElements:d.settings.voids.includes(a.tagName.toLowerCase()),i=[];"html"===f.space&&"svg"===a.tagName&&(d.schema=bw.JW);let j=function(a,b){let c,d=[],e=-1;if(b){for(c in b)if(null!==b[c]&&void 0!==b[c]){let e=function(a,b,c){let d,e=(0,bS.I)(a.schema,b),f=a.settings.allowParseErrors&&"html"===a.schema.space?0:1,g=+!a.settings.allowDangerousCharacters,h=a.quote;if(e.overloadedBoolean&&(c===e.attribute||""===c)?c=!0:(e.boolean||e.overloadedBoolean)&&("string"!=typeof c||c===e.attribute||""===c)&&(c=!!c),null==c||!1===c||"number"==typeof c&&Number.isNaN(c))return"";let i=bM(e.attribute,Object.assign({},a.settings.characterReferences,{subset:b4.name[f][g]}));return!0===c||(c=Array.isArray(c)?(e.commaSeparated?bR.A:bT.A)(c,{padLeft:!a.settings.tightCommaSeparatedLists}):String(c),a.settings.collapseEmptyAttributes&&!c)?i:(a.settings.preferUnquoted&&(d=bM(c,Object.assign({},a.settings.characterReferences,{attribute:!0,subset:b4.unquoted[f][g]}))),d!==c&&(a.settings.quoteSmart&&(0,bQ.D)(c,h)>(0,bQ.D)(c,a.alternative)&&(h=a.alternative),d=h+bM(c,Object.assign({},a.settings.characterReferences,{subset:("'"===h?b4.single:b4.double)[f][g],attribute:!0}))+h),i+(d?"="+d:d))}(a,c,b[c]);e&&d.push(e)}}for(;++e<d.length;){let b=a.settings.tightAttributes?d[e].charAt(d[e].length-1):void 0;e!==d.length-1&&'"'!==b&&"'"!==b&&(d[e]+=" ")}return d.join("")}(d,a.properties),k=d.all("html"===f.space&&"template"===a.tagName?a.content:a);return d.schema=f,k&&(h=!1),!j&&g&&b3(a,b,c)||(i.push("<",a.tagName,j?" "+j:""),h&&("svg"===f.space||d.settings.closeSelfClosing)&&(e=j.charAt(j.length-1),(!d.settings.tightSelfClosing||"/"===e||e&&'"'!==e&&"'"!==e)&&i.push(" "),i.push("/")),i.push(">")),i.push(k),h||g&&b_(a,b,c)||i.push("</"+a.tagName+">"),i.join("")},raw:function(a,b,c,d){return d.settings.allowDangerousHtml?a.value:b6(a,b,c,d)},root:function(a,b,c,d){return d.all(a)},text:b6}}),b8={},b9={},ca=[];function cb(a,b,c){return b7(a,b,c,this)}function cc(a){let b=[],c=a&&a.children||ca,d=-1;for(;++d<c.length;)b[d]=this.one(c[d],d,a);return b.join("")}function cd(a,b){let c="string"==typeof a?{}:{...a.colorReplacements},d="string"==typeof a?a:a.name;for(let[a,e]of Object.entries(b?.colorReplacements||{}))"string"==typeof e?c[a]=e:a===d&&Object.assign(c,e);return c}function ce(a,b){return a&&b?.[a?.toLowerCase()]||a}async function cf(a){return Promise.resolve("function"==typeof a?a():a).then(a=>a.default||a)}function cg(a){return!a||["plaintext","txt","text","plain"].includes(a)}function ch(a){return"ansi"===a||cg(a)}function ci(a){return"none"===a}function cj(a,b){if(!b)return a;for(let c of(a.properties||={},a.properties.class||=[],"string"==typeof a.properties.class&&(a.properties.class=a.properties.class.split(/\s+/g)),Array.isArray(a.properties.class)||(a.properties.class=[]),Array.isArray(b)?b:b.split(/\s+/g)))c&&!a.properties.class.includes(c)&&a.properties.class.push(c);return a}function ck(a,b=!1){let c=a.split(/(\r?\n)/g),d=0,e=[];for(let a=0;a<c.length;a+=2){let f=b?c[a]+(c[a+1]||""):c[a];e.push([f,d]),d+=c[a].length,d+=c[a+1]?.length||0}return e}let cl="light-dark()",cm=["color","background-color"];function cn(a){let b={};if(a.color&&(b.color=a.color),a.bgColor&&(b["background-color"]=a.bgColor),a.fontStyle){a.fontStyle&aF.Italic&&(b["font-style"]="italic"),a.fontStyle&aF.Bold&&(b["font-weight"]="bold");let c=[];a.fontStyle&aF.Underline&&c.push("underline"),a.fontStyle&aF.Strikethrough&&c.push("line-through"),c.length&&(b["text-decoration"]=c.join(" "))}return b}function co(a){return"string"==typeof a?a:Object.entries(a).map(([a,b])=>`${a}:${b}`).join(";")}let cp=new WeakMap;function cq(a,b){cp.set(a,b)}function cr(a){return cp.get(a)}class cs{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(a,b){return new cs(Object.fromEntries((Array.isArray(b)?b:[b]).map(a=>[a,bu])),a)}constructor(...a){if(2===a.length){let[b,c]=a;this.lang=c,this._stacks=b}else{let[b,c,d]=a;this.lang=c,this._stacks={[d]:b}}}getInternalStack(a=this.theme){return this._stacks[a]}getScopes(a=this.theme){var b=this._stacks[a];let c=[],d=new Set;return!function a(b){if(d.has(b))return;d.add(b);let e=b?.nameScopesList?.scopeName;e&&c.push(e),b.parent&&a(b.parent)}(b),c}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}let ct=[function(){let a=new WeakMap;function b(b){if(!a.has(b.meta)){let c=function(a){if("number"==typeof a){if(a<0||a>b.source.length)throw new at(`Invalid decoration offset: ${a}. Code length: ${b.source.length}`);return{...d.indexToPos(a),offset:a}}{let b=d.lines[a.line];if(void 0===b)throw new at(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${d.lines.length}`);let c=a.character;if(c<0&&(c=b.length+c),c<0||c>b.length)throw new at(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${b.length}`);return{...a,character:c,offset:d.posToIndex(a.line,c)}}},d=function(a){let b=ck(a,!0).map(([a])=>a);return{lines:b,indexToPos:function(c){if(c===a.length)return{line:b.length-1,character:b[b.length-1].length};let d=c,e=0;for(let a of b){if(d<a.length)break;d-=a.length,e++}return{line:e,character:d}},posToIndex:function(a,c){let d=0;for(let c=0;c<a;c++)d+=b[c].length;return d+c}}}(b.source),e=(b.options.decorations||[]).map(a=>({...a,start:c(a.start),end:c(a.end)}));(function(a){for(let b=0;b<a.length;b++){let c=a[b];if(c.start.offset>c.end.offset)throw new at(`Invalid decoration range: ${JSON.stringify(c.start)} - ${JSON.stringify(c.end)}`);for(let d=b+1;d<a.length;d++){let b=a[d],e=c.start.offset<=b.start.offset&&b.start.offset<c.end.offset,f=c.start.offset<b.end.offset&&b.end.offset<=c.end.offset,g=b.start.offset<=c.start.offset&&c.start.offset<b.end.offset,h=b.start.offset<c.end.offset&&c.end.offset<=b.end.offset;if(e||f||g||h){if(e&&f||g&&h||g&&c.start.offset===c.end.offset||f&&b.start.offset===b.end.offset)continue;throw new at(`Decorations ${JSON.stringify(c.start)} and ${JSON.stringify(b.start)} intersect.`)}}}})(e),a.set(b.meta,{decorations:e,converter:d,source:b.source})}return a.get(b.meta)}return{name:"shiki:decorations",tokens(a){if(this.options.decorations?.length){var c=a,d=b(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);let e=Array.from(d instanceof Set?d:new Set(d)).sort((a,b)=>a-b);return e.length?c.map(a=>a.flatMap(a=>{let b=e.filter(b=>a.offset<b&&b<a.offset+a.content.length).map(b=>b-a.offset).sort((a,b)=>a-b);if(!b.length)return a;let c=0,d=[];for(let e of b)e>c&&d.push({...a,content:a.content.slice(c,e),offset:a.offset+c}),c=e;return c<a.content.length&&d.push({...a,content:a.content.slice(c),offset:a.offset+c}),d})):c}},code(a){if(!this.options.decorations?.length)return;let c=b(this),d=Array.from(a.children).filter(a=>"element"===a.type&&"span"===a.tagName);if(d.length!==c.converter.lines.length)throw new at(`Number of lines in code element (${d.length}) does not match the number of lines in the source (${c.converter.lines.length}). Failed to apply decorations.`);function e(a,b,c,e){let g=d[a],h="",i=-1,j=-1;if(0===b&&(i=0),0===c&&(j=0),c===1/0&&(j=g.children.length),-1===i||-1===j)for(let a=0;a<g.children.length;a++)h+=function a(b){return"text"===b.type?b.value:"element"===b.type?b.children.map(a).join(""):""}(g.children[a]),-1===i&&h.length===b&&(i=a+1),-1===j&&h.length===c&&(j=a+1);if(-1===i)throw new at(`Failed to find start index for decoration ${JSON.stringify(e.start)}`);if(-1===j)throw new at(`Failed to find end index for decoration ${JSON.stringify(e.end)}`);let k=g.children.slice(i,j);if(e.alwaysWrap||k.length!==g.children.length)if(e.alwaysWrap||1!==k.length||"element"!==k[0].type){let a={type:"element",tagName:"span",properties:{},children:k};f(a,e,"wrapper"),g.children.splice(i,k.length,a)}else f(k[0],e,"token");else f(g,e,"line")}function f(a,b,c){let d=b.properties||{},e=b.transform||(a=>a);return a.tagName=b.tagName||"span",a.properties={...a.properties,...d,class:a.properties.class},b.properties?.class&&cj(a,b.properties.class),a=e(a,c)||a}let g=[];for(let a of c.decorations.sort((a,b)=>b.start.offset-a.start.offset||a.end.offset-b.end.offset)){let{start:b,end:c}=a;if(b.line===c.line)e(b.line,b.character,c.character,a);else if(b.line<c.line){e(b.line,b.character,1/0,a);for(let e=b.line+1;e<c.line;e++)g.unshift(()=>{var b;d[b=e]=f(d[b],a,"line")});e(c.line,0,c.character,a)}}g.forEach(a=>a())}}}()];function cu(a){let b=function(a){let b=[],c=[],d=[];for(let e of a)switch(e.enforce){case"pre":b.push(e);break;case"post":c.push(e);break;default:d.push(e)}return{pre:b,post:c,normal:d}}(a.transformers||[]);return[...b.pre,...b.normal,...b.post,...ct]}var cv=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],cw={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function cx(a){let b=a.shift();if("2"===b){let b=a.splice(0,3).map(a=>Number.parseInt(a));if(3!==b.length||b.some(a=>Number.isNaN(a)))return;return{type:"rgb",rgb:b}}if("5"===b){let b=a.shift();if(b)return{type:"table",index:Number(b)}}}var cy={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function cz(a,b,c={}){let{lang:d="text",theme:e=a.getLoadedThemes()[0]}=c;if(cg(d)||ci(e))return ck(b).map(a=>[{content:a[0],offset:a[1]}]);let{theme:f,colorMap:g}=a.setTheme(e);if("ansi"===d)return function(a,b,c){let d,e,f,g=cd(a,c),h=ck(b),i=function(a=cy){let b;function c(a){return`#${a.map(a=>Math.max(0,Math.min(a,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(d){switch(d.type){case"named":return a[d.name];case"rgb":return c(d.rgb);case"table":var e;return e=d.index,function(){if(b)return b;b=[];for(let c=0;c<cv.length;c++)b.push(a[cv[c]]);let d=[0,95,135,175,215,255];for(let a=0;a<6;a++)for(let e=0;e<6;e++)for(let f=0;f<6;f++)b.push(c([d[a],d[e],d[f]]));let e=8;for(let a=0;a<24;a++,e+=10)b.push(c([e,e,e]));return b}()[e]}}}}(Object.fromEntries(cv.map(b=>[b,a.colors?.[`terminal.ansi${b[0].toUpperCase()}${b.substring(1)}`]]))),j=(d=null,e=null,f=new Set,{parse(a){let b=[],c=0;do{let g=function(a,b){let c=a.indexOf("\x1b",b);if(-1!==c&&"["===a[c+1]){let b=a.indexOf("m",c);if(-1!==b)return{sequence:a.substring(c+2,b).split(";"),startPosition:c,position:b+1}}return{position:a.length}}(a,c),h=g.sequence?a.substring(c,g.startPosition):a.substring(c);if(h.length>0&&b.push({value:h,foreground:d,background:e,decorations:new Set(f)}),g.sequence){let a=function(a){let b=[];for(;a.length>0;){let c=a.shift();if(!c)continue;let d=Number.parseInt(c);if(!Number.isNaN(d))if(0===d)b.push({type:"resetAll"});else if(d<=9)cw[d]&&b.push({type:"setDecoration",value:cw[d]});else if(d<=29){let a=cw[d-20];a&&(b.push({type:"resetDecoration",value:a}),"dim"===a&&b.push({type:"resetDecoration",value:"bold"}))}else if(d<=37)b.push({type:"setForegroundColor",value:{type:"named",name:cv[d-30]}});else if(38===d){let c=cx(a);c&&b.push({type:"setForegroundColor",value:c})}else if(39===d)b.push({type:"resetForegroundColor"});else if(d<=47)b.push({type:"setBackgroundColor",value:{type:"named",name:cv[d-40]}});else if(48===d){let c=cx(a);c&&b.push({type:"setBackgroundColor",value:c})}else 49===d?b.push({type:"resetBackgroundColor"}):53===d?b.push({type:"setDecoration",value:"overline"}):55===d?b.push({type:"resetDecoration",value:"overline"}):d>=90&&d<=97?b.push({type:"setForegroundColor",value:{type:"named",name:cv[d-90+8]}}):d>=100&&d<=107&&b.push({type:"setBackgroundColor",value:{type:"named",name:cv[d-100+8]}})}return b}(g.sequence);for(let b of a)"resetAll"===b.type?(d=null,e=null,f.clear()):"resetForegroundColor"===b.type?d=null:"resetBackgroundColor"===b.type?e=null:"resetDecoration"===b.type&&f.delete(b.value);for(let b of a)"setForegroundColor"===b.type?d=b.value:"setBackgroundColor"===b.type?e=b.value:"setDecoration"===b.type&&f.add(b.value)}c=g.position}while(c<a.length);return b}});return h.map(b=>j.parse(b[0]).map(c=>{let d,e;c.decorations.has("reverse")?(d=c.background?i.value(c.background):a.bg,e=c.foreground?i.value(c.foreground):a.fg):(d=c.foreground?i.value(c.foreground):a.fg,e=c.background?i.value(c.background):void 0),d=ce(d,g),e=ce(e,g),c.decorations.has("dim")&&(d=function(a){let b=a.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(b)if(b[3]){let a=Math.round(Number.parseInt(b[3],16)/2).toString(16).padStart(2,"0");return`#${b[1]}${b[2]}${a}`}else if(b[2])return`#${b[1]}${b[2]}80`;else return`#${Array.from(b[1]).map(a=>`${a}${a}`).join("")}80`;let c=a.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return c?`var(${c[1]}-dim)`:a}(d));let f=aF.None;return c.decorations.has("bold")&&(f|=aF.Bold),c.decorations.has("italic")&&(f|=aF.Italic),c.decorations.has("underline")&&(f|=aF.Underline),c.decorations.has("strikethrough")&&(f|=aF.Strikethrough),{content:c.value,offset:b[1],color:d,bgColor:e,fontStyle:f}}))}(f,b,c);let h=a.getLanguage(d);if(c.grammarState){if(c.grammarState.lang!==h.name)throw new at(`Grammar state language "${c.grammarState.lang}" does not match highlight language "${h.name}"`);if(!c.grammarState.themes.includes(f.name))throw new at(`Grammar state themes "${c.grammarState.themes}" do not contain highlight theme "${f.name}"`)}var i=b,j=h,k=f,l=g,m=c;let n=cA(i,j,k,l,m),o=new cs(cA(i,j,k,l,m).stateStack,j.name,k.name);return cq(n.tokens,o),n.tokens}function cA(a,b,c,d,e){let f=cd(c,e),{tokenizeMaxLineLength:g=0,tokenizeTimeLimit:h=500}=e,i=ck(a),j=e.grammarState?function(a,b){if(!(a instanceof cs))throw new at("Invalid grammar state");return a.getInternalStack(b)}(e.grammarState,c.name)??bu:null!=e.grammarContextCode?cA(e.grammarContextCode,b,c,d,{...e,grammarState:void 0,grammarContextCode:void 0}).stateStack:bu,k=[],l=[];for(let a=0,m=i.length;a<m;a++){let m,n,[o,p]=i[a];if(""===o){k=[],l.push([]);continue}if(g>0&&o.length>=g){k=[],l.push([{content:o,offset:p,color:"",fontStyle:0}]);continue}e.includeExplanation&&(m=b.tokenizeLine(o,j,h).tokens,n=0);let q=b.tokenizeLine2(o,j,h),r=q.tokens.length/2;for(let a=0;a<r;a++){let b=q.tokens[2*a],g=a+1<r?q.tokens[2*a+2]:o.length;if(b===g)continue;let h=q.tokens[2*a+1],i=ce(d[aK.getForeground(h)],f),j=aK.getFontStyle(h),l={content:o.substring(b,g),offset:p+b,color:i,fontStyle:j};if(e.includeExplanation){let a=[];if("scopeName"!==e.includeExplanation)for(let b of c.settings){let c;switch(typeof b.scope){case"string":c=b.scope.split(/,/).map(a=>a.trim());break;case"object":c=b.scope;break;default:continue}a.push({settings:b,selectors:c.map(a=>a.split(/ /))})}l.explanation=[];let d=0;for(;b+d<g;){let b=m[n],c=o.substring(b.startIndex,b.endIndex);d+=c.length,l.explanation.push({content:c,scopes:"scopeName"===e.includeExplanation?b.scopes.map(a=>({scopeName:a})):function(a,b){let c=[];for(let d=0,e=b.length;d<e;d++){let e=b[d];c[d]={scopeName:e,themeMatches:function(a,b,c){let d=[];for(let{selectors:e,settings:f}of a)for(let a of e)if(function(a,b,c){if(!cB(a[a.length-1],b))return!1;let d=a.length-2,e=c.length-1;for(;d>=0&&e>=0;)cB(a[d],c[e])&&(d-=1),e-=1;return -1===d}(a,b,c)){d.push(f);break}return d}(a,e,b.slice(0,d))}}return c}(a,b.scopes)}),n+=1}}k.push(l)}l.push(k),k=[],j=q.ruleStack}return{tokens:l,stateStack:j}}function cB(a,b){return a===b||b.substring(0,a.length)===a&&"."===b[a.length]}function cC(a,b,c){let d=Object.entries(c.themes).filter(a=>a[1]).map(a=>({color:a[0],theme:a[1]})),e=d.map(d=>{let e=cz(a,b,{...c,theme:d.theme}),f=cr(e);return{tokens:e,state:f,theme:"string"==typeof d.theme?d.theme:d.theme.name}}),f=function(...a){let b=a.map(()=>[]),c=a.length;for(let d=0;d<a[0].length;d++){let e=a.map(a=>a[d]),f=b.map(()=>[]);b.forEach((a,b)=>a.push(f[b]));let g=e.map(()=>0),h=e.map(a=>a[0]);for(;h.every(a=>a);){let a=Math.min(...h.map(a=>a.content.length));for(let b=0;b<c;b++){let c=h[b];c.content.length===a?(f[b].push(c),g[b]+=1,h[b]=e[b][g[b]]):(f[b].push({...c,content:c.content.slice(0,a)}),h[b]={...c,content:c.content.slice(a),offset:c.offset+a})}}}return b}(...e.map(a=>a.tokens)),g=f[0].map((a,b)=>a.map((a,e)=>{let g={content:a.content,variants:{},offset:a.offset};return"includeExplanation"in c&&c.includeExplanation&&(g.explanation=a.explanation),f.forEach((a,c)=>{let{content:f,explanation:h,offset:i,...j}=a[b][e];g.variants[d[c].color]=j}),g})),h=e[0].state?new cs(Object.fromEntries(e.map(a=>[a.theme,a.state?.getInternalStack(a.theme)])),e[0].state.lang):void 0;return h&&cq(g,h),g}function cD(a,b,c){let d,e,f,g,h,i;if("themes"in c){let{defaultColor:j="light",cssVariablePrefix:k="--shiki-",colorsRendering:l="css-vars"}=c,m=Object.entries(c.themes).filter(a=>a[1]).map(a=>({color:a[0],theme:a[1]})).sort((a,b)=>a.color===j?-1:+(b.color===j));if(0===m.length)throw new at("`themes` option must not be empty");let n=cC(a,b,c);if(i=cr(n),j&&cl!==j&&!m.find(a=>a.color===j))throw new at(`\`themes\` option must contain the defaultColor key \`${j}\``);let o=m.map(b=>a.getTheme(b.theme)),p=m.map(a=>a.color);f=n.map(a=>a.map(a=>(function(a,b,c,d,e="css-vars"){let f={content:a.content,explanation:a.explanation,offset:a.offset},g=b.map(b=>cn(a.variants[b])),h=new Set(g.flatMap(a=>Object.keys(a))),i={},j=(a,d)=>{let e="color"===d?"":"background-color"===d?"-bg":`-${d}`;return c+b[a]+("color"===d?"":e)};return g.forEach((a,c)=>{for(let f of h){let h=a[f]||"inherit";if(0===c&&d&&cm.includes(f))if(d===cl&&g.length>1){let a=b.findIndex(a=>"light"===a),d=b.findIndex(a=>"dark"===a);if(-1===a||-1===d)throw new at('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let k=g[a][f]||"inherit",l=g[d][f]||"inherit";i[f]=`light-dark(${k}, ${l})`,"css-vars"===e&&(i[j(c,f)]=h)}else i[f]=h;else"css-vars"===e&&(i[j(c,f)]=h)}}),f.htmlStyle=i,f})(a,p,k,j,l))),i&&cq(f,i);let q=m.map(a=>cd(a.theme,c));e=cE(m,o,q,k,j,"fg",l),d=cE(m,o,q,k,j,"bg",l),g=`shiki-themes ${o.map(a=>a.name).join(" ")}`,h=j?void 0:[e,d].join(";")}else if("theme"in c){let h=cd(c.theme,c);f=cz(a,b,c);let j=a.getTheme(c.theme);d=ce(j.bg,h),e=ce(j.fg,h),g=j.name,i=cr(f)}else throw new at("Invalid options, either `theme` or `themes` must be provided");return{tokens:f,fg:e,bg:d,themeName:g,rootStyle:h,grammarState:i}}function cE(a,b,c,d,e,f,g){return a.map((h,i)=>{let j=ce(b[i][f],c[i])||"inherit",k=`${d+h.color}${"bg"===f?"-bg":""}:${j}`;if(0===i&&e){if(e===cl&&a.length>1){let d=a.findIndex(a=>"light"===a.color),e=a.findIndex(a=>"dark"===a.color);if(-1===d||-1===e)throw new at('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let g=ce(b[d][f],c[d])||"inherit",h=ce(b[e][f],c[e])||"inherit";return`light-dark(${g}, ${h});${k}`}return j}return"css-vars"===g?k:null}).filter(a=>!!a).join(";")}function cF(a,b,c,d={meta:{},options:c,codeToHast:(b,c)=>cF(a,b,c),codeToTokens:(b,c)=>cD(a,b,c)}){let e=b;for(let a of cu(c))e=a.preprocess?.call(d,e,c)||e;let{tokens:f,fg:g,bg:h,themeName:i,rootStyle:j,grammarState:k}=cD(a,e,c),{mergeWhitespaces:l=!0,mergeSameStyleTokens:m=!1}=c;!0===l?f=f.map(a=>{let b=[],c="",d=0;return a.forEach((e,f)=>{let g=!(e.fontStyle&&(e.fontStyle&aF.Underline||e.fontStyle&aF.Strikethrough));g&&e.content.match(/^\s+$/)&&a[f+1]?(d||(d=e.offset),c+=e.content):c?(g?b.push({...e,offset:d,content:c+e.content}):b.push({content:c,offset:d},e),d=0,c=""):b.push(e)}),b}):"never"===l&&(f=f.map(a=>a.flatMap(a=>{if(a.content.match(/^\s+$/))return a;let b=a.content.match(/^(\s*)(.*?)(\s*)$/);if(!b)return a;let[,c,d,e]=b;if(!c&&!e)return a;let f=[{...a,offset:a.offset+c.length,content:d}];return c&&f.unshift({content:c,offset:a.offset}),e&&f.push({content:e,offset:a.offset+c.length+d.length}),f}))),m&&(f=f.map(a=>{let b=[];for(let c of a){if(0===b.length){b.push({...c});continue}let a=b[b.length-1],d=co(a.htmlStyle||cn(a)),e=co(c.htmlStyle||cn(c)),f=a.fontStyle&&(a.fontStyle&aF.Underline||a.fontStyle&aF.Strikethrough),g=c.fontStyle&&(c.fontStyle&aF.Underline||c.fontStyle&aF.Strikethrough);f||g||d!==e?b.push({...c}):a.content+=c.content}return b}));let n={...d,get source(){return e}};for(let a of cu(c))f=a.tokens?.call(n,f)||f;return function(a,b,c,d=cr(a)){let e=cu(b),f=[],g={type:"root",children:[]},{structure:h="classic",tabindex:i="0"}=b,j={type:"element",tagName:"pre",properties:{class:`shiki ${b.themeName||""}`,style:b.rootStyle||`background-color:${b.bg};color:${b.fg}`,...!1!==i&&null!=i?{tabindex:i.toString()}:{},...Object.fromEntries(Array.from(Object.entries(b.meta||{})).filter(([a])=>!a.startsWith("_")))},children:[]},k={type:"element",tagName:"code",properties:{},children:f},l=[],m={...c,structure:h,addClassToHast:cj,get source(){return c.source},get tokens(){return a},get options(){return b},get root(){return g},get pre(){return j},get code(){return k},get lines(){return l}};if(a.forEach((a,b)=>{b&&("inline"===h?g.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===h&&f.push({type:"text",value:"\n"}));let c={type:"element",tagName:"span",properties:{class:"line"},children:[]},d=0;for(let f of a){let a={type:"element",tagName:"span",properties:{...f.htmlAttrs},children:[{type:"text",value:f.content}]},i=co(f.htmlStyle||cn(f));for(let g of(i&&(a.properties.style=i),e))a=g?.span?.call(m,a,b+1,d,c,f)||a;"inline"===h?g.children.push(a):"classic"===h&&c.children.push(a),d+=f.content.length}if("classic"===h){for(let a of e)c=a?.line?.call(m,c,b+1)||c;l.push(c),f.push(c)}}),"classic"===h){for(let a of e)k=a?.code?.call(m,k)||k;for(let a of(j.children.push(k),e))j=a?.pre?.call(m,j)||j;g.children.push(j)}let n=g;for(let a of e)n=a?.root?.call(m,n)||n;return d&&cq(n,d),n}(f,{...c,fg:g,bg:h,themeName:i,rootStyle:j},n,k)}let cG=function(a,b){let c=b||b8,d=c.quote||'"';if('"'!==d&&"'"!==d)throw Error("Invalid quote `"+d+"`, expected `'` or `\"`");return({one:cb,all:cc,settings:{omitOptionalTags:c.omitOptionalTags||!1,allowParseErrors:c.allowParseErrors||!1,allowDangerousCharacters:c.allowDangerousCharacters||!1,quoteSmart:c.quoteSmart||!1,preferUnquoted:c.preferUnquoted||!1,tightAttributes:c.tightAttributes||!1,upperDoctype:c.upperDoctype||!1,tightDoctype:c.tightDoctype||!1,bogusComments:c.bogusComments||!1,tightCommaSeparatedLists:c.tightCommaSeparatedLists||!1,tightSelfClosing:c.tightSelfClosing||!1,collapseEmptyAttributes:c.collapseEmptyAttributes||!1,allowDangerousHtml:c.allowDangerousHtml||!1,voids:c.voids||bv.b,characterReferences:c.characterReferences||b9,closeSelfClosing:c.closeSelfClosing||!1,closeEmptyElements:c.closeEmptyElements||!1},schema:"svg"===c.space?bw.JW:bw.qy,quote:d,alternative:'"'===d?"'":'"'}).one(Array.isArray(a)?{type:"root",children:a}:a,void 0,void 0)},cH={light:"#333333",dark:"#bbbbbb"},cI={light:"#fffffe",dark:"#1e1e1e"},cJ="__shiki_resolved";function cK(a){if(a?.[cJ])return a;let b={...a};b.tokenColors&&!b.settings&&(b.settings=b.tokenColors,delete b.tokenColors),b.type||="dark",b.colorReplacements={...b.colorReplacements},b.settings||=[];let{bg:c,fg:d}=b;if(!c||!d){let a=b.settings?b.settings.find(a=>!a.name&&!a.scope):void 0;a?.settings?.foreground&&(d=a.settings.foreground),a?.settings?.background&&(c=a.settings.background),!d&&b?.colors?.["editor.foreground"]&&(d=b.colors["editor.foreground"]),!c&&b?.colors?.["editor.background"]&&(c=b.colors["editor.background"]),d||(d="light"===b.type?cH.light:cH.dark),c||(c="light"===b.type?cI.light:cI.dark),b.fg=d,b.bg=c}b.settings[0]&&b.settings[0].settings&&!b.settings[0].scope||b.settings.unshift({settings:{foreground:b.fg,background:b.bg}});let e=0,f=new Map;function g(a){if(f.has(a))return f.get(a);e+=1;let c=`#${e.toString(16).padStart(8,"0").toLowerCase()}`;return b.colorReplacements?.[`#${c}`]?g(a):(f.set(a,c),c)}for(let a of(b.settings=b.settings.map(a=>{let c=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),d=a.settings?.background&&!a.settings.background.startsWith("#");if(!c&&!d)return a;let e={...a,settings:{...a.settings}};if(c){let c=g(a.settings.foreground);b.colorReplacements[c]=a.settings.foreground,e.settings.foreground=c}if(d){let c=g(a.settings.background);b.colorReplacements[c]=a.settings.background,e.settings.background=c}return e}),Object.keys(b.colors||{})))if(("editor.foreground"===a||"editor.background"===a||a.startsWith("terminal.ansi"))&&!b.colors[a]?.startsWith("#")){let c=g(b.colors[a]);b.colorReplacements[c]=b.colors[a],b.colors[a]=c}return Object.defineProperty(b,cJ,{enumerable:!1,writable:!1,value:!0}),b}async function cL(a){return Array.from(new Set((await Promise.all(a.filter(a=>!ch(a)).map(async a=>await cf(a).then(a=>Array.isArray(a)?a:[a])))).flat()))}async function cM(a){return(await Promise.all(a.map(async a=>ci(a)?null:cK(await cf(a))))).filter(a=>!!a)}class cN extends Error{constructor(a){super(a),this.name="ShikiError"}}class cO extends bt{constructor(a,b,c,d={}){super(a),this._resolver=a,this._themes=b,this._langs=c,this._alias=d,this._themes.map(a=>this.loadTheme(a)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(a){return"string"==typeof a?this._resolvedThemes.get(a):this.loadTheme(a)}loadTheme(a){let b=cK(a);return b.name&&(this._resolvedThemes.set(b.name,b),this._loadedThemesCache=null),b}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(a){let b=this._textmateThemeCache.get(a);b||(b=aB.createFromRawTheme(a),this._textmateThemeCache.set(a,b)),this._syncRegistry.setTheme(b)}getGrammar(a){if(this._alias[a]){let b=new Set([a]);for(;this._alias[a];){if(a=this._alias[a],b.has(a))throw new cN(`Circular alias \`${Array.from(b).join(" -> ")} -> ${a}\``);b.add(a)}}return this._resolvedGrammars.get(a)}loadLanguage(a){if(this.getGrammar(a.name))return;let b=new Set([...this._langMap.values()].filter(b=>b.embeddedLangsLazy?.includes(a.name)));this._resolver.addLanguage(a);let c={balancedBracketSelectors:a.balancedBracketSelectors||["*"],unbalancedBracketSelectors:a.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(a.scopeName,a);let d=this.loadGrammarWithConfiguration(a.scopeName,1,c);if(d.name=a.name,this._resolvedGrammars.set(a.name,d),a.aliases&&a.aliases.forEach(b=>{this._alias[b]=a.name}),this._loadedLanguagesCache=null,b.size)for(let a of b)this._resolvedGrammars.delete(a.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(a.scopeName),this._syncRegistry?._grammars?.delete(a.scopeName),this.loadLanguage(this._langMap.get(a.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(a){for(let b of a)this.resolveEmbeddedLanguages(b);let b=Array.from(this._langGraph.entries()),c=b.filter(([a,b])=>!b);if(c.length){let a=b.filter(([a,b])=>b&&b.embeddedLangs?.some(a=>c.map(([a])=>a).includes(a))).filter(a=>!c.includes(a));throw new cN(`Missing languages ${c.map(([a])=>`\`${a}\``).join(", ")}, required by ${a.map(([a])=>`\`${a}\``).join(", ")}`)}for(let[a,c]of b)this._resolver.addLanguage(c);for(let[a,c]of b)this.loadLanguage(c)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(a){if(this._langMap.set(a.name,a),this._langGraph.set(a.name,a),a.embeddedLangs)for(let b of a.embeddedLangs)this._langGraph.set(b,this._langMap.get(b))}}class cP{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(a,b){this._onigLib={createOnigScanner:b=>a.createScanner(b),createOnigString:b=>a.createString(b)},b.forEach(a=>this.addLanguage(a))}get onigLib(){return this._onigLib}getLangRegistration(a){return this._langs.get(a)}loadGrammar(a){return this._scopeToLang.get(a)}addLanguage(a){this._langs.set(a.name,a),a.aliases&&a.aliases.forEach(b=>{this._langs.set(b,a)}),this._scopeToLang.set(a.scopeName,a),a.injectTo&&a.injectTo.forEach(b=>{this._injections.get(b)||this._injections.set(b,[]),this._injections.get(b).push(a.scopeName)})}getInjections(a){let b=a.split("."),c=[];for(let a=1;a<=b.length;a++){let d=b.slice(0,a).join(".");c=[...c,...this._injections.get(d)||[]]}return c}}let cQ=0;async function cR(a){a.engine||function(a,b=3){if(!(b>3))if(1)console.trace(`[SHIKI DEPRECATE]: ${a}`);else throw Error(`[SHIKI DEPRECATE]: ${a}`)}("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[b,c,d]=await Promise.all([cM(a.themes||[]),cL(a.langs||[]),a.engine]);return function(a){let b;cQ+=1,!1!==a.warnings&&cQ>=10&&cQ%10==0&&console.warn(`[Shiki] ${cQ} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let c=!1;if(!a.engine)throw new cN("`engine` option is required for synchronous mode");let d=(a.langs||[]).flat(1),e=(a.themes||[]).flat(1).map(cK),f=new cO(new cP(a.engine,d),e,d,a.langAlias);function g(a){if("none"===a)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};j();let b=f.getTheme(a);if(!b)throw new cN(`Theme \`${a}\` not found, you may need to load it first`);return b}function h(...a){j(),f.loadLanguages(a.flat(1))}function i(...a){for(let b of(j(),a.flat(1)))f.loadTheme(b)}function j(){if(c)throw new cN("Shiki instance has been disposed")}function k(){c||(c=!0,f.dispose(),cQ-=1)}return{setTheme:function(a){j();let c=g(a);return b!==a&&(f.setTheme(c),b=a),{theme:c,colorMap:f.getColorMap()}},getTheme:g,getLanguage:function(a){j();let b=f.getGrammar("string"==typeof a?a:a.name);if(!b)throw new cN(`Language \`${a}\` not found, you may need to load it first`);return b},getLoadedThemes:function(){return j(),f.getLoadedThemes()},getLoadedLanguages:function(){return j(),f.getLoadedLanguages()},loadLanguage:async function(...a){return h(await cL(a))},loadLanguageSync:h,loadTheme:async function(...a){return j(),i(await cM(a))},loadThemeSync:i,dispose:k,[Symbol.dispose]:k}}({...a,themes:b,langs:c,engine:d})}async function cS(a){let b=await cR(a);return{getLastGrammarState:(...a)=>(function(...a){if(2===a.length)return cr(a[1]);let[b,c,d={}]=a,{lang:e="text",theme:f=b.getLoadedThemes()[0]}=d;if(cg(e)||ci(f))throw new at("Plain language does not have grammar state");if("ansi"===e)throw new at("ANSI language does not have grammar state");let{theme:g,colorMap:h}=b.setTheme(f),i=b.getLanguage(e);return new cs(cA(c,i,g,h,d).stateStack,i.name,g.name)})(b,...a),codeToTokensBase:(a,c)=>cz(b,a,c),codeToTokensWithThemes:(a,c)=>cC(b,a,c),codeToTokens:(a,c)=>cD(b,a,c),codeToHast:(a,c)=>cF(b,a,c),codeToHtml:(a,c)=>(function(a,b,c){let d={meta:{},options:c,codeToHast:(b,c)=>cF(a,b,c),codeToTokens:(b,c)=>cD(a,b,c)},e=cG(cF(a,b,c,d));for(let a of cu(c))e=a.postprocess?.call(d,e,c)||e;return e})(b,a,c),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...b,getInternalContext:()=>b}}let cT=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>c.e(2532).then(c.bind(c,32532))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>c.e(3231).then(c.bind(c,73231))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>c.e(3872).then(c.bind(c,53872))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>c.e(9441).then(c.bind(c,89441))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>c.e(6483).then(c.bind(c,66483))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>c.e(5536).then(c.bind(c,55536))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>c.e(3943).then(c.bind(c,3943))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>c.e(2981).then(c.bind(c,72981))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>c.e(6834).then(c.bind(c,56834))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>c.e(3915).then(c.bind(c,13915))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>c.e(164).then(c.bind(c,60164))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>c.e(8876).then(c.bind(c,68876))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>c.e(2618).then(c.bind(c,92618))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>c.e(2282).then(c.bind(c,2282))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>c.e(9431).then(c.bind(c,79431))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>c.e(3578).then(c.bind(c,43578))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>c.e(9754).then(c.bind(c,59754))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>c.e(8682).then(c.bind(c,68682))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>c.e(9402).then(c.bind(c,47021))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>c.e(5048).then(c.bind(c,95048))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>c.e(6962).then(c.bind(c,16962))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>c.e(3651).then(c.bind(c,13651))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>c.e(120).then(c.bind(c,30120))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>c.e(8610).then(c.bind(c,48610))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>c.e(8723).then(c.bind(c,48723))},{id:"houston",displayName:"Houston",type:"dark",import:()=>c.e(3626).then(c.bind(c,23626))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>c.e(681).then(c.bind(c,70681))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>c.e(9921).then(c.bind(c,19921))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>c.e(4435).then(c.bind(c,64435))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>c.e(2354).then(c.bind(c,92354))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>c.e(989).then(c.bind(c,50989))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>c.e(383).then(c.bind(c,40383))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>c.e(1089).then(c.bind(c,41089))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>c.e(4385).then(c.bind(c,94385))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>c.e(9942).then(c.bind(c,59942))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>c.e(9394).then(c.bind(c,69394))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>c.e(9813).then(c.bind(c,59813))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>c.e(2547).then(c.bind(c,52547))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>c.e(8482).then(c.bind(c,68482))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>c.e(3487).then(c.bind(c,23487))},{id:"nord",displayName:"Nord",type:"dark",import:()=>c.e(9423).then(c.bind(c,89423))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>c.e(4075).then(c.bind(c,54075))},{id:"one-light",displayName:"One Light",type:"light",import:()=>c.e(2135).then(c.bind(c,32135))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>c.e(180).then(c.bind(c,50180))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>c.e(406).then(c.bind(c,60406))},{id:"red",displayName:"Red",type:"dark",import:()=>c.e(3181).then(c.bind(c,73181))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>c.e(1044).then(c.bind(c,51044))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>c.e(4779).then(c.bind(c,34779))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>c.e(9150).then(c.bind(c,59150))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>c.e(5585).then(c.bind(c,15585))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>c.e(3836).then(c.bind(c,73836))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>c.e(8478).then(c.bind(c,88478))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>c.e(8270).then(c.bind(c,98270))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>c.e(870).then(c.bind(c,870))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>c.e(806).then(c.bind(c,40806))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>c.e(9775).then(c.bind(c,99775))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>c.e(7287).then(c.bind(c,37287))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>c.e(8619).then(c.bind(c,28619))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>c.e(7414).then(c.bind(c,47414))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>c.e(1646).then(c.bind(c,41646))}].map(a=>[a.id,a.import]));class cU extends Error{constructor(a){super(a),this.name="ShikiError"}}function cV(){return"undefined"!=typeof performance?performance.now():Date.now()}let cW=(a,b)=>a+(b-a%b)%b;async function cX(a){let b,c,d={};function e(a){c=a,d.HEAPU8=new Uint8Array(a),d.HEAPU32=new Uint32Array(a)}let f="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function g(a,b){return a?function(a,b,c=1024){let d=b+c,e=b;for(;a[e]&&!(e>=d);)++e;if(e-b>16&&a.buffer&&f)return f.decode(a.subarray(b,e));let g="";for(;b<e;){let c=a[b++];if(!(128&c)){g+=String.fromCharCode(c);continue}let d=63&a[b++];if((224&c)==192){g+=String.fromCharCode((31&c)<<6|d);continue}let e=63&a[b++];if((c=(240&c)==224?(15&c)<<12|d<<6|e:(7&c)<<18|d<<12|e<<6|63&a[b++])<65536)g+=String.fromCharCode(c);else{let a=c-65536;g+=String.fromCharCode(55296|a>>10,56320|1023&a)}}return g}(d.HEAPU8,a,b):""}let h={emscripten_get_now:cV,emscripten_memcpy_big:function(a,b,c){d.HEAPU8.copyWithin(a,b,b+c)},emscripten_resize_heap:function(a){let f=d.HEAPU8.length;if((a>>>=0)>0x80000000)return!1;for(let d=1;d<=4;d*=2){let g=f*(1+.2/d);if(g=Math.min(g,a+0x6000000),function(a){try{return b.grow(a-c.byteLength+65535>>>16),e(b.buffer),1}catch{}}(Math.min(0x80000000,cW(Math.max(a,g),65536))))return!0}return!1},fd_write:()=>0};async function i(){let c=await a({env:h,wasi_snapshot_preview1:h});e((b=c.memory).buffer),Object.assign(d,c),d.UTF8ToString=g}return await i(),d}var cY=Object.defineProperty,cZ=(a,b,c)=>((a,b,c)=>b in a?cY(a,b,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[b]=c)(a,"symbol"!=typeof b?b+"":b,c);let c$=null;class c_{constructor(a){cZ(this,"utf16Length"),cZ(this,"utf8Length"),cZ(this,"utf16Value"),cZ(this,"utf8Value"),cZ(this,"utf16OffsetToUtf8"),cZ(this,"utf8OffsetToUtf16");let b=a.length,c=c_._utf8ByteLength(a),d=c!==b,e=d?new Uint32Array(b+1):null;d&&(e[b]=c);let f=d?new Uint32Array(c+1):null;d&&(f[c]=b);let g=new Uint8Array(c),h=0;for(let c=0;c<b;c++){let i=a.charCodeAt(c),j=i,k=!1;if(i>=55296&&i<=56319&&c+1<b){let b=a.charCodeAt(c+1);b>=56320&&b<=57343&&(j=(i-55296<<10)+65536|b-56320,k=!0)}d&&(e[c]=h,k&&(e[c+1]=h),j<=127?f[h+0]=c:j<=2047?(f[h+0]=c,f[h+1]=c):j<=65535?(f[h+0]=c,f[h+1]=c,f[h+2]=c):(f[h+0]=c,f[h+1]=c,f[h+2]=c,f[h+3]=c)),j<=127?g[h++]=j:(j<=2047?g[h++]=192|(1984&j)>>>6:(j<=65535?g[h++]=224|(61440&j)>>>12:(g[h++]=240|(1835008&j)>>>18,g[h++]=128|(258048&j)>>>12),g[h++]=128|(4032&j)>>>6),g[h++]=128|(63&j)>>>0),k&&c++}this.utf16Length=b,this.utf8Length=c,this.utf16Value=a,this.utf8Value=g,this.utf16OffsetToUtf8=e,this.utf8OffsetToUtf16=f}static _utf8ByteLength(a){let b=0;for(let c=0,d=a.length;c<d;c++){let e=a.charCodeAt(c),f=e,g=!1;if(e>=55296&&e<=56319&&c+1<d){let b=a.charCodeAt(c+1);b>=56320&&b<=57343&&(f=(e-55296<<10)+65536|b-56320,g=!0)}f<=127?b+=1:f<=2047?b+=2:f<=65535?b+=3:b+=4,g&&c++}return b}createString(a){let b=a.omalloc(this.utf8Length);return a.HEAPU8.set(this.utf8Value,b),b}}let c0=class a{constructor(b){if(cZ(this,"id",++a.LAST_ID),cZ(this,"_onigBinding"),cZ(this,"content"),cZ(this,"utf16Length"),cZ(this,"utf8Length"),cZ(this,"utf16OffsetToUtf8"),cZ(this,"utf8OffsetToUtf16"),cZ(this,"ptr"),!c$)throw new cU("Must invoke loadWasm first.");this._onigBinding=c$,this.content=b;let c=new c_(b);this.utf16Length=c.utf16Length,this.utf8Length=c.utf8Length,this.utf16OffsetToUtf8=c.utf16OffsetToUtf8,this.utf8OffsetToUtf16=c.utf8OffsetToUtf16,this.utf8Length<1e4&&!a._sharedPtrInUse?(a._sharedPtr||(a._sharedPtr=c$.omalloc(1e4)),a._sharedPtrInUse=!0,c$.HEAPU8.set(c.utf8Value,a._sharedPtr),this.ptr=a._sharedPtr):this.ptr=c.createString(c$)}convertUtf8OffsetToUtf16(a){return this.utf8OffsetToUtf16?a<0?0:a>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[a]:a}convertUtf16OffsetToUtf8(a){return this.utf16OffsetToUtf8?a<0?0:a>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[a]:a}dispose(){this.ptr===a._sharedPtr?a._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};cZ(c0,"LAST_ID",0),cZ(c0,"_sharedPtr",0),cZ(c0,"_sharedPtrInUse",!1);class c1{constructor(a){if(cZ(this,"_onigBinding"),cZ(this,"_ptr"),!c$)throw new cU("Must invoke loadWasm first.");let b=[],c=[];for(let d=0,e=a.length;d<e;d++){let e=new c_(a[d]);b[d]=e.createString(c$),c[d]=e.utf8Length}let d=c$.omalloc(4*a.length);c$.HEAPU32.set(b,d/4);let e=c$.omalloc(4*a.length);c$.HEAPU32.set(c,e/4);let f=c$.createOnigScanner(d,e,a.length);for(let c=0,d=a.length;c<d;c++)c$.ofree(b[c]);c$.ofree(e),c$.ofree(d),0===f&&function(a){throw new cU(a.UTF8ToString(a.getLastOnigError()))}(c$),this._onigBinding=c$,this._ptr=f}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(a,b,c){let d=0;if("number"==typeof c&&(d=c),"string"==typeof a){a=new c0(a);let c=this._findNextMatchSync(a,b,!1,d);return a.dispose(),c}return this._findNextMatchSync(a,b,!1,d)}_findNextMatchSync(a,b,c,d){let e=this._onigBinding,f=e.findNextOnigScannerMatch(this._ptr,a.id,a.ptr,a.utf8Length,a.convertUtf16OffsetToUtf8(b),d);if(0===f)return null;let g=e.HEAPU32,h=f/4,i=g[h++],j=g[h++],k=[];for(let b=0;b<j;b++){let c=a.convertUtf8OffsetToUtf16(g[h++]),d=a.convertUtf8OffsetToUtf16(g[h++]);k[b]={start:c,end:d,length:d-c}}return{index:i,captureIndices:k}}}function c2(a){return b=>WebAssembly.instantiate(a,b)}async function c3(a){return a&&await (e||(e=async function(){c$=await cX(async b=>{let c=a;if("function"==typeof(c=await c)&&(c=await c(b)),"function"==typeof c&&(c=await c(b)),"function"==typeof c.instantiator)c=await c.instantiator(b);else if("function"==typeof c.default)c=await c.default(b);else{var d,e,f,g;if(void 0!==c.data&&(c=c.data),d=c,"undefined"!=typeof Response&&d instanceof Response){c="function"==typeof WebAssembly.instantiateStreaming?await (f=c,a=>WebAssembly.instantiateStreaming(f,a))(b):await (g=c,async a=>{let b=await g.arrayBuffer();return WebAssembly.instantiate(b,a)})(b)}else(e=c,"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||"undefined"!=typeof Buffer&&Buffer.isBuffer?.(e)||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&e instanceof Uint32Array||c instanceof WebAssembly.Module)?c=await c2(c)(b):"default"in c&&c.default instanceof WebAssembly.Module&&(c=await c2(c.default)(b))}return"instance"in c&&(c=c.instance),"exports"in c&&(c=c.exports),c})}())),{createScanner:a=>new c1(a.map(a=>"string"==typeof a?a:a.source)),createString:a=>new c0(a)}}let c4=function(a){let b=a.langs,c=a.themes,d=a.engine;return async function(a){function e(c){if("string"==typeof c){if(ch(c))return[];let d=b[c=a.langAlias?.[c]||c];if(!d)throw new at(`Language \`${c}\` is not included in this bundle. You may want to load it from external source.`);return d}return c}function f(a){if(ci(a))return"none";if("string"==typeof a){let b=c[a];if(!b)throw new at(`Theme \`${a}\` is not included in this bundle. You may want to load it from external source.`);return b}return a}let g=(a.themes??[]).map(a=>f(a)),h=(a.langs??[]).map(a=>e(a)),i=await cS({engine:a.engine??d(),...a,themes:g,langs:h});return{...i,loadLanguage:(...a)=>i.loadLanguage(...a.map(e)),loadTheme:(...a)=>i.loadTheme(...a.map(f)),getBundledLanguages:()=>b,getBundledThemes:()=>c}}}({langs:as,themes:cT,engine:()=>c3(c.e(9309).then(c.bind(c,79309)))});function c5(a){if(1!=[...a].length)throw Error(`Expected "${a}" to be a single code point`);return a.codePointAt(0)}let c6=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),c7=String.raw;function c8(a,b){if(null==a)throw Error(b??"Value expected");return a}let c9=c7`\[\^?`,da=`c.? | C(?:-.?)?|${c7`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${c7`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${c7`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${c7`o\{[^\}]*\}?`}|${c7`\d{1,3}`}`,db=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,dc=RegExp(c7`
|
|
1
|
+
exports.id=71,exports.ids=[71],exports.modules={15:(a,b,c)=>{"use strict";c.d(b,{Ay:()=>k});let d="object"==typeof self?self:globalThis,e=a=>((a,b)=>{let c=(b,c)=>(a.set(c,b),b),e=f=>{if(a.has(f))return a.get(f);let[g,h]=b[f];switch(g){case 0:case -1:return c(h,f);case 1:{let a=c([],f);for(let b of h)a.push(e(b));return a}case 2:{let a=c({},f);for(let[b,c]of h)a[e(b)]=e(c);return a}case 3:return c(new Date(h),f);case 4:{let{source:a,flags:b}=h;return c(new RegExp(a,b),f)}case 5:{let a=c(new Map,f);for(let[b,c]of h)a.set(e(b),e(c));return a}case 6:{let a=c(new Set,f);for(let b of h)a.add(e(b));return a}case 7:{let{name:a,message:b}=h;return c(new d[a](b),f)}case 8:return c(BigInt(h),f);case"BigInt":return c(Object(BigInt(h)),f);case"ArrayBuffer":return c(new Uint8Array(h).buffer,h);case"DataView":{let{buffer:a}=new Uint8Array(h);return c(new DataView(a),h)}}return c(new d[g](h),f)};return e})(new Map,a)(0),{toString:f}={},{keys:g}=Object,h=a=>{let b=typeof a;if("object"!==b||!a)return[0,b];let c=f.call(a).slice(8,-1);switch(c){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,c]}return c.includes("Array")?[1,c]:c.includes("Error")?[7,c]:[2,c]},i=([a,b])=>0===a&&("function"===b||"symbol"===b),j=(a,{json:b,lossy:c}={})=>{let d=[];return((a,b,c,d)=>{let e=(a,b)=>{let e=d.push(a)-1;return c.set(b,e),e},f=d=>{if(c.has(d))return c.get(d);let[j,k]=h(d);switch(j){case 0:{let b=d;switch(k){case"bigint":j=8,b=d.toString();break;case"function":case"symbol":if(a)throw TypeError("unable to serialize "+k);b=null;break;case"undefined":return e([-1],d)}return e([j,b],d)}case 1:{if(k){let a=d;return"DataView"===k?a=new Uint8Array(d.buffer):"ArrayBuffer"===k&&(a=new Uint8Array(d)),e([k,[...a]],d)}let a=[],b=e([j,a],d);for(let b of d)a.push(f(b));return b}case 2:{if(k)switch(k){case"BigInt":return e([k,d.toString()],d);case"Boolean":case"Number":case"String":return e([k,d.valueOf()],d)}if(b&&"toJSON"in d)return f(d.toJSON());let c=[],l=e([j,c],d);for(let b of g(d))(a||!i(h(d[b])))&&c.push([f(b),f(d[b])]);return l}case 3:return e([j,d.toISOString()],d);case 4:{let{source:a,flags:b}=d;return e([j,{source:a,flags:b}],d)}case 5:{let b=[],c=e([j,b],d);for(let[c,e]of d)(a||!(i(h(c))||i(h(e))))&&b.push([f(c),f(e)]);return c}case 6:{let b=[],c=e([j,b],d);for(let c of d)(a||!i(h(c)))&&b.push(f(c));return c}}let{message:l}=d;return e([j,{name:k,message:l}],d)};return f})(!(b||c),!!b,new Map,d)(a),d},k="function"==typeof structuredClone?(a,b)=>b&&("json"in b||"lossy"in b)?e(j(a,b)):structuredClone(a):(a,b)=>e(j(a,b))},1245:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(89892).A)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]])},3145:(a,b,c)=>{"use strict";c.d(b,{z:()=>n});var d=c(59111),e=c(14450);let f={damping:.7,stiffness:.05,mass:1.25},g=1e3/60,h=!1;function i(a,b){let c=(0,e.useCallback)(b=>(c.current=b,a(b)),b);return c}globalThis.document?.addEventListener("mousedown",()=>{h=!0}),globalThis.document?.addEventListener("mouseup",()=>{h=!1}),globalThis.document?.addEventListener("click",()=>{h=!1});let j=new Map;function k(...a){let b={...f},c=!1;for(let d of a){if("instant"===d){c=!0;continue}"object"==typeof d&&(c=!1,b.damping=d.damping??b.damping,b.stiffness=d.stiffness??b.stiffness,b.mass=d.mass??b.mass)}let d=JSON.stringify(b);return j.has(d)||j.set(d,Object.freeze(b)),c?"instant":j.get(d)}let l=(0,e.createContext)(null),m="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function n({instance:a,children:b,resize:c,initial:f,mass:j,damping:n,stiffness:o,targetScrollTop:p,contextRef:q,...r}){let s=(0,e.useRef)(null),t=((a={})=>{let[b,c]=(0,e.useState)(!1),[d,f]=(0,e.useState)(!1!==a.initial),[j,l]=(0,e.useState)(!1),m=(0,e.useRef)(null);m.current=a;let n=(0,e.useCallback)(()=>{if(!h)return!1;let a=window.getSelection();if(!a||!a.rangeCount)return!1;let b=a.getRangeAt(0);return b.commonAncestorContainer.contains(v.current)||v.current?.contains(b.commonAncestorContainer)},[]),o=(0,e.useCallback)(a=>{q.isAtBottom=a,f(a)},[]),p=(0,e.useCallback)(a=>{q.escapedFromLock=a,c(a)},[]),q=(0,e.useMemo)(()=>{let c;return{escapedFromLock:b,isAtBottom:d,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return v.current?.scrollTop??0},set scrollTop(scrollTop){v.current&&(v.current.scrollTop=scrollTop,q.ignoreScrollToTop=v.current.scrollTop)},get targetScrollTop(){if(!v.current||!w.current)return 0;return v.current.scrollHeight-1-v.current.clientHeight},get calculatedTargetScrollTop(){if(!v.current||!w.current)return 0;let{targetScrollTop:b}=this;if(!a.targetScrollTop)return b;if(c?.targetScrollTop===b)return c.calculatedScrollTop;let d=Math.max(Math.min(a.targetScrollTop(b,{scrollElement:v.current,contentElement:w.current}),b),0);return c={targetScrollTop:b,calculatedScrollTop:d},requestAnimationFrame(()=>{c=void 0}),d},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=70}}},[]),r=(0,e.useCallback)((a={})=>{let b;"string"==typeof a&&(a={animation:a}),a.preserveScrollPosition||o(!0);let c=Date.now()+(Number(a.wait)||0),d=k(m.current,a.animation),{ignoreEscapes:e=!1}=a,f=q.calculatedTargetScrollTop;a.duration instanceof Promise?a.duration.finally(()=>{b=Date.now()}):b=c+(a.duration??0);let h=async()=>{let a=new Promise(requestAnimationFrame).then(()=>{if(!q.isAtBottom)return q.animation=void 0,!1;let{scrollTop:i}=q,j=performance.now(),l=(j-(q.lastTick??j))/g;if(q.animation||(q.animation={behavior:d,promise:a,ignoreEscapes:e}),q.animation.behavior===d&&(q.lastTick=j),n()||c>Date.now())return h();if(i<Math.min(f,q.calculatedTargetScrollTop)){if(q.animation?.behavior===d){if("instant"===d)return q.scrollTop=q.calculatedTargetScrollTop,h();q.velocity=(d.damping*q.velocity+d.stiffness*q.scrollDifference)/d.mass,q.accumulated+=q.velocity*l,q.scrollTop+=q.accumulated,q.scrollTop!==i&&(q.accumulated=0)}return h()}return b>Date.now()?(f=q.calculatedTargetScrollTop,h()):(q.animation=void 0,q.scrollTop<q.calculatedTargetScrollTop)?r({animation:k(m.current,m.current.resize),ignoreEscapes:e,duration:Math.max(0,b-Date.now())||void 0}):q.isAtBottom});return a.then(a=>(requestAnimationFrame(()=>{q.animation||(q.lastTick=void 0,q.velocity=0)}),a))};return(!0!==a.wait&&(q.animation=void 0),q.animation?.behavior===d)?q.animation.promise:h()},[o,n,q]),s=(0,e.useCallback)(()=>{p(!0),o(!1)},[p,o]),t=(0,e.useCallback)(({target:a})=>{if(a!==v.current)return;let{scrollTop:b,ignoreScrollToTop:c}=q,{lastScrollTop:d=b}=q;q.lastScrollTop=b,q.ignoreScrollToTop=void 0,c&&c>b&&(d=c),l(q.isNearBottom),setTimeout(()=>{if(q.resizeDifference||b===c)return;if(n()){p(!0),o(!1);return}let a=b>d,e=b<d;if(q.animation?.ignoreEscapes){q.scrollTop=d;return}e&&(p(!0),o(!1)),a&&p(!1),!q.escapedFromLock&&q.isNearBottom&&o(!0)},1)},[p,o,n,q]),u=(0,e.useCallback)(({target:a,deltaY:b})=>{let c=a;for(;!["scroll","auto"].includes(getComputedStyle(c).overflow);){if(!c.parentElement)return;c=c.parentElement}c===v.current&&b<0&&v.current.scrollHeight>v.current.clientHeight&&!q.animation?.ignoreEscapes&&(p(!0),o(!1))},[p,o,q]),v=i(a=>{v.current?.removeEventListener("scroll",t),v.current?.removeEventListener("wheel",u),a?.addEventListener("scroll",t,{passive:!0}),a?.addEventListener("wheel",u,{passive:!0})},[]),w=i(a=>{let b;q.resizeObserver?.disconnect(),a&&(q.resizeObserver=new ResizeObserver(([a])=>{let{height:c}=a.contentRect,d=c-(b??c);if(q.resizeDifference=d,q.scrollTop>q.targetScrollTop&&(q.scrollTop=q.targetScrollTop),l(q.isNearBottom),d>=0){let a=k(m.current,b?m.current.resize:m.current.initial);r({animation:a,wait:!0,preserveScrollPosition:!0,duration:"instant"===a?void 0:350})}else q.isNearBottom&&(p(!1),o(!0));b=c,requestAnimationFrame(()=>{setTimeout(()=>{q.resizeDifference===d&&(q.resizeDifference=0)},1)})}),q.resizeObserver?.observe(a))},[]);return{contentRef:w,scrollRef:v,scrollToBottom:r,stopScroll:s,isAtBottom:d||j,isNearBottom:j,escapedFromLock:b,state:q}})({mass:j,damping:n,stiffness:o,resize:c,initial:f,targetScrollTop:e.useCallback((a,b)=>{let c=B?.targetScrollTop??p;return c?.(a,b)??a},[p])}),{scrollRef:u,contentRef:v,scrollToBottom:w,stopScroll:x,isAtBottom:y,escapedFromLock:z,state:A}=a??t,B=(0,e.useMemo)(()=>({scrollToBottom:w,stopScroll:x,scrollRef:u,isAtBottom:y,escapedFromLock:z,contentRef:v,state:A,get targetScrollTop(){return s.current},set targetScrollTop(targetScrollTop){s.current=targetScrollTop}}),[w,y,v,u,x,z,A]);return(0,e.useImperativeHandle)(q,()=>B,[B]),m(()=>{u.current&&"visible"===getComputedStyle(u.current).overflow&&(u.current.style.overflow="auto")},[]),(0,d.jsx)(l.Provider,{value:B,children:(0,d.jsx)("div",{...r,children:"function"==typeof b?b(B):b})})}(n||(n={})).Content=function({children:a,...b}){let c=function(){let a=(0,e.useContext)(l);if(!a)throw Error("use-stick-to-bottom component context must be used within a StickToBottom component");return a}();return(0,d.jsx)("div",{ref:c.scrollRef,style:{height:"100%",width:"100%"},children:(0,d.jsx)("div",{...b,ref:c.contentRef,children:"function"==typeof a?a(c):a})})}},4216:(a,b,c)=>{"use strict";function d(a){return a.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}c.d(b,{B:()=>d})},4226:function(a,b,c){"use strict";var d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.default=function(a,b){var c=null;if(!a||"string"!=typeof a)return c;var d=(0,e.default)(a),f="function"==typeof b;return d.forEach(function(a){if("declaration"===a.type){var d=a.property,e=a.value;f?b(d,e,a):e&&((c=c||{})[d]=e)}}),c};var e=d(c(51569))},4304:(a,b,c)=>{"use strict";function d(a){let b=[],c=String(a||""),d=c.indexOf(","),e=0,f=!1;for(;!f;){-1===d&&(d=c.length,f=!0);let a=c.slice(e,d).trim();(a||!f)&&b.push(a),e=d+1,d=c.indexOf(",",e)}return b}function e(a,b){let c=b||{};return(""===a[a.length-1]?[...a,""]:a).join((c.padRight?" ":"")+","+(!1===c.padLeft?"":" ")).trim()}c.d(b,{A:()=>e,q:()=>d})},6757:(a,b,c)=>{"use strict";c.d(b,{A:()=>aH});var d=c(78198),e=c(95458),f=c(93045),g=c(83146),h=c(58751);let i="phrasing",j=["autolink","link","image","label"];function k(a){this.enter({type:"link",title:null,url:"",children:[]},a)}function l(a){this.config.enter.autolinkProtocol.call(this,a)}function m(a){this.config.exit.autolinkProtocol.call(this,a)}function n(a){this.config.exit.data.call(this,a);let b=this.stack[this.stack.length-1];(0,e.ok)("link"===b.type),b.url="http://"+this.sliceSerialize(a)}function o(a){this.config.exit.autolinkEmail.call(this,a)}function p(a){this.exit(a)}function q(a){!function(a,b,c){let d=(0,h.C)((c||{}).ignore||[]),e=function(a){let b=[];if(!Array.isArray(a))throw TypeError("Expected find and replace tuple or list of tuples");let c=!a[0]||Array.isArray(a[0])?a:[a],d=-1;for(;++d<c.length;){var e;let a=c[d];b.push(["string"==typeof(e=a[0])?RegExp(function(a){if("string"!=typeof a)throw TypeError("Expected a string");return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e,function(a){return"function"==typeof a?a:function(){return a}}(a[1])])}return b}(b),f=-1;for(;++f<e.length;)(0,g.VG)(a,"text",i);function i(a,b){let c,g=-1;for(;++g<b.length;){let a=b[g],e=c?c.children:void 0;if(d(a,e?e.indexOf(a):void 0,c))return;c=a}if(c)return function(a,b){let c=b[b.length-1],d=e[f][0],g=e[f][1],h=0,i=c.children.indexOf(a),j=!1,k=[];d.lastIndex=0;let l=d.exec(a.value);for(;l;){let c=l.index,e={index:l.index,input:l.input,stack:[...b,a]},f=g(...l,e);if("string"==typeof f&&(f=f.length>0?{type:"text",value:f}:void 0),!1===f?d.lastIndex=c+1:(h!==c&&k.push({type:"text",value:a.value.slice(h,c)}),Array.isArray(f)?k.push(...f):f&&k.push(f),h=c+l[0].length,j=!0),!d.global)break;l=d.exec(a.value)}return j?(h<a.value.length&&k.push({type:"text",value:a.value.slice(h)}),c.children.splice(i,1,...k)):k=[a],i+k.length}(a,b)}}(a,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,r],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,s]],{ignore:["link","linkReference"]})}function r(a,b,c,e,f){let g="";if(!t(f)||(/^w/i.test(b)&&(c=b+c,b="",g="http://"),!function(a){let b=a.split(".");return!(b.length<2||b[b.length-1]&&(/_/.test(b[b.length-1])||!/[a-zA-Z\d]/.test(b[b.length-1]))||b[b.length-2]&&(/_/.test(b[b.length-2])||!/[a-zA-Z\d]/.test(b[b.length-2])))}(c)))return!1;let h=function(a){let b=/[!"&'),.:;<>?\]}]+$/.exec(a);if(!b)return[a,void 0];a=a.slice(0,b.index);let c=b[0],e=c.indexOf(")"),f=(0,d.D)(a,"("),g=(0,d.D)(a,")");for(;-1!==e&&f>g;)a+=c.slice(0,e+1),e=(c=c.slice(e+1)).indexOf(")"),g++;return[a,c]}(c+e);if(!h[0])return!1;let i={type:"link",title:null,url:g+b+h[0],children:[{type:"text",value:b+h[0]}]};return h[1]?[i,{type:"text",value:h[1]}]:i}function s(a,b,c,d){return!(!t(d,!0)||/[-\d_]$/.test(c))&&{type:"link",title:null,url:"mailto:"+b+"@"+c,children:[{type:"text",value:b+"@"+c}]}}function t(a,b){let c=a.input.charCodeAt(a.index-1);return(0===a.index||(0,f.Ny)(c)||(0,f.es)(c))&&(!b||47!==c)}var u=c(4216);function v(){this.buffer()}function w(a){this.enter({type:"footnoteReference",identifier:"",label:""},a)}function x(){this.buffer()}function y(a){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},a)}function z(a){let b=this.resume(),c=this.stack[this.stack.length-1];(0,e.ok)("footnoteReference"===c.type),c.identifier=(0,u.B)(this.sliceSerialize(a)).toLowerCase(),c.label=b}function A(a){this.exit(a)}function B(a){let b=this.resume(),c=this.stack[this.stack.length-1];(0,e.ok)("footnoteDefinition"===c.type),c.identifier=(0,u.B)(this.sliceSerialize(a)).toLowerCase(),c.label=b}function C(a){this.exit(a)}function D(a,b,c,d){let e=c.createTracker(d),f=e.move("[^"),g=c.enter("footnoteReference"),h=c.enter("reference");return f+=e.move(c.safe(c.associationId(a),{after:"]",before:f})),h(),g(),f+=e.move("]")}function E(a,b,c){return 0===b?a:F(a,b,c)}function F(a,b,c){return(c?"":" ")+a}D.peek=function(){return"["};let G=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function H(a){this.enter({type:"delete",children:[]},a)}function I(a){this.exit(a)}function J(a,b,c,d){let e=c.createTracker(d),f=c.enter("strikethrough"),g=e.move("~~");return g+=c.containerPhrasing(a,{...e.current(),before:g,after:"~"}),g+=e.move("~~"),f(),g}function K(a){return a.length}function L(a){let b="string"==typeof a?a.codePointAt(0):0;return 67===b||99===b?99:76===b||108===b?108:114*(82===b||114===b)}J.peek=function(){return"~"};c(14381);var M=c(14806);c(9188);c(13895);function N(a,b,c){let d=a.value||"",e="`",f=-1;for(;RegExp("(^|[^`])"+e+"([^`]|$)").test(d);)e+="`";for(/[^ \r\n]/.test(d)&&(/^[ \r\n]/.test(d)&&/[ \r\n]$/.test(d)||/^`|`$/.test(d))&&(d=" "+d+" ");++f<c.unsafe.length;){let a,b=c.unsafe[f],e=c.compilePattern(b);if(b.atBreak)for(;a=e.exec(d);){let b=a.index;10===d.charCodeAt(b)&&13===d.charCodeAt(b-1)&&b--,d=d.slice(0,b)+" "+d.slice(a.index+1)}}return e+d+e}N.peek=function(){return"`"};(0,h.C)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let O={inlineCode:N,listItem:function(a,b,c,d){let e=function(a){let b=a.options.listItemIndent||"one";if("tab"!==b&&"one"!==b&&"mixed"!==b)throw Error("Cannot serialize items with `"+b+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return b}(c),f=c.bulletCurrent||function(a){let b=a.options.bullet||"*";if("*"!==b&&"+"!==b&&"-"!==b)throw Error("Cannot serialize items with `"+b+"` for `options.bullet`, expected `*`, `+`, or `-`");return b}(c);b&&"list"===b.type&&b.ordered&&(f=("number"==typeof b.start&&b.start>-1?b.start:1)+(!1===c.options.incrementListMarker?0:b.children.indexOf(a))+f);let g=f.length+1;("tab"===e||"mixed"===e&&(b&&"list"===b.type&&b.spread||a.spread))&&(g=4*Math.ceil(g/4));let h=c.createTracker(d);h.move(f+" ".repeat(g-f.length)),h.shift(g);let i=c.enter("listItem"),j=c.indentLines(c.containerFlow(a,h.current()),function(a,b,c){return b?(c?"":" ".repeat(g))+a:(c?f:f+" ".repeat(g-f.length))+a});return i(),j}};function P(a){let b=a._align;(0,e.ok)(b,"expected `_align` on table"),this.enter({type:"table",align:b.map(function(a){return"none"===a?null:a}),children:[]},a),this.data.inTable=!0}function Q(a){this.exit(a),this.data.inTable=void 0}function R(a){this.enter({type:"tableRow",children:[]},a)}function S(a){this.exit(a)}function T(a){this.enter({type:"tableCell",children:[]},a)}function U(a){let b=this.resume();this.data.inTable&&(b=b.replace(/\\([\\|])/g,V));let c=this.stack[this.stack.length-1];(0,e.ok)("inlineCode"===c.type),c.value=b,this.exit(a)}function V(a,b){return"|"===b?b:a}function W(a){let b=this.stack[this.stack.length-2];(0,e.ok)("listItem"===b.type),b.checked="taskListCheckValueChecked"===a.type}function X(a){let b=this.stack[this.stack.length-2];if(b&&"listItem"===b.type&&"boolean"==typeof b.checked){let a=this.stack[this.stack.length-1];(0,e.ok)("paragraph"===a.type);let c=a.children[0];if(c&&"text"===c.type){let d,e=b.children,f=-1;for(;++f<e.length;){let a=e[f];if("paragraph"===a.type){d=a;break}}d===a&&(c.value=c.value.slice(1),0===c.value.length?a.children.shift():a.position&&c.position&&"number"==typeof c.position.start.offset&&(c.position.start.column++,c.position.start.offset++,a.position.start=Object.assign({},c.position.start)))}}this.exit(a)}function Y(a,b,c,d){let e=a.children[0],f="boolean"==typeof a.checked&&e&&"paragraph"===e.type,g="["+(a.checked?"x":" ")+"] ",h=c.createTracker(d);f&&h.move(g);let i=O.listItem(a,b,c,{...d,...h.current()});return f&&(i=i.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(a){return a+g})),i}var Z=c(29022);let $={tokenize:function(a,b,c){let d=0;return function b(f){return(87===f||119===f)&&d<3?(d++,a.consume(f),b):46===f&&3===d?(a.consume(f),e):c(f)};function e(a){return null===a?c(a):b(a)}},partial:!0},_={tokenize:function(a,b,c){let d,e,g;return h;function h(b){return 46===b||95===b?a.check(ab,j,i)(b):null===b||(0,f.Ee)(b)||(0,f.Ny)(b)||45!==b&&(0,f.es)(b)?j(b):(g=!0,a.consume(b),h)}function i(b){return 95===b?d=!0:(e=d,d=void 0),a.consume(b),h}function j(a){return e||d||!g?c(a):b(a)}},partial:!0},aa={tokenize:function(a,b){let c=0,d=0;return e;function e(h){return 40===h?(c++,a.consume(h),e):41===h&&d<c?g(h):33===h||34===h||38===h||39===h||41===h||42===h||44===h||46===h||58===h||59===h||60===h||63===h||93===h||95===h||126===h?a.check(ab,b,g)(h):null===h||(0,f.Ee)(h)||(0,f.Ny)(h)?b(h):(a.consume(h),e)}function g(b){return 41===b&&d++,a.consume(b),e}},partial:!0},ab={tokenize:function(a,b,c){return d;function d(h){return 33===h||34===h||39===h||41===h||42===h||44===h||46===h||58===h||59===h||63===h||95===h||126===h?(a.consume(h),d):38===h?(a.consume(h),g):93===h?(a.consume(h),e):60===h||null===h||(0,f.Ee)(h)||(0,f.Ny)(h)?b(h):c(h)}function e(a){return null===a||40===a||91===a||(0,f.Ee)(a)||(0,f.Ny)(a)?b(a):d(a)}function g(b){return(0,f.CW)(b)?function b(e){return 59===e?(a.consume(e),d):(0,f.CW)(e)?(a.consume(e),b):c(e)}(b):c(b)}},partial:!0},ac={tokenize:function(a,b,c){return function(b){return a.consume(b),d};function d(a){return(0,f.lV)(a)?c(a):b(a)}},partial:!0},ad={name:"wwwAutolink",tokenize:function(a,b,c){let d=this;return function(b){return 87!==b&&119!==b||!ai.call(d,d.previous)||am(d.events)?c(b):(a.enter("literalAutolink"),a.enter("literalAutolinkWww"),a.check($,a.attempt(_,a.attempt(aa,e),c),c)(b))};function e(c){return a.exit("literalAutolinkWww"),a.exit("literalAutolink"),b(c)}},previous:ai},ae={name:"protocolAutolink",tokenize:function(a,b,c){let d=this,e="",g=!1;return function(b){return(72===b||104===b)&&aj.call(d,d.previous)&&!am(d.events)?(a.enter("literalAutolink"),a.enter("literalAutolinkHttp"),e+=String.fromCodePoint(b),a.consume(b),h):c(b)};function h(b){if((0,f.CW)(b)&&e.length<5)return e+=String.fromCodePoint(b),a.consume(b),h;if(58===b){let c=e.toLowerCase();if("http"===c||"https"===c)return a.consume(b),i}return c(b)}function i(b){return 47===b?(a.consume(b),g)?j:(g=!0,i):c(b)}function j(b){return null===b||(0,f.JQ)(b)||(0,f.Ee)(b)||(0,f.Ny)(b)||(0,f.es)(b)?c(b):a.attempt(_,a.attempt(aa,k),c)(b)}function k(c){return a.exit("literalAutolinkHttp"),a.exit("literalAutolink"),b(c)}},previous:aj},af={name:"emailAutolink",tokenize:function(a,b,c){let d,e,g=this;return function(b){return!al(b)||!ak.call(g,g.previous)||am(g.events)?c(b):(a.enter("literalAutolink"),a.enter("literalAutolinkEmail"),function b(d){return al(d)?(a.consume(d),b):64===d?(a.consume(d),h):c(d)}(b))};function h(b){return 46===b?a.check(ac,j,i)(b):45===b||95===b||(0,f.lV)(b)?(e=!0,a.consume(b),h):j(b)}function i(b){return a.consume(b),d=!0,h}function j(h){return e&&d&&(0,f.CW)(g.previous)?(a.exit("literalAutolinkEmail"),a.exit("literalAutolink"),b(h)):c(h)}},previous:ak},ag={},ah=48;for(;ah<123;)ag[ah]=af,58==++ah?ah=65:91===ah&&(ah=97);function ai(a){return null===a||40===a||42===a||95===a||91===a||93===a||126===a||(0,f.Ee)(a)}function aj(a){return!(0,f.CW)(a)}function ak(a){return!(47===a||al(a))}function al(a){return 43===a||45===a||46===a||95===a||(0,f.lV)(a)}function am(a){let b=a.length,c=!1;for(;b--;){let d=a[b][1];if(("labelLink"===d.type||"labelImage"===d.type)&&!d._balanced){c=!0;break}if(d._gfmAutolinkLiteralWalkedInto){c=!1;break}}return a.length>0&&!c&&(a[a.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),c}ag[43]=af,ag[45]=af,ag[46]=af,ag[95]=af,ag[72]=[af,ae],ag[104]=[af,ae],ag[87]=[af,ad],ag[119]=[af,ad];var an=c(24739),ao=c(50698);let ap={tokenize:function(a,b,c){let d=this;return(0,ao.N)(a,function(a){let e=d.events[d.events.length-1];return e&&"gfmFootnoteDefinitionIndent"===e[1].type&&4===e[2].sliceSerialize(e[1],!0).length?b(a):c(a)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function aq(a,b,c){let d,e=this,f=e.events.length,g=e.parser.gfmFootnotes||(e.parser.gfmFootnotes=[]);for(;f--;){let a=e.events[f][1];if("labelImage"===a.type){d=a;break}if("gfmFootnoteCall"===a.type||"labelLink"===a.type||"label"===a.type||"image"===a.type||"link"===a.type)break}return function(f){if(!d||!d._balanced)return c(f);let h=(0,u.B)(e.sliceSerialize({start:d.end,end:e.now()}));return 94===h.codePointAt(0)&&g.includes(h.slice(1))?(a.enter("gfmFootnoteCallLabelMarker"),a.consume(f),a.exit("gfmFootnoteCallLabelMarker"),b(f)):c(f)}}function ar(a,b){let c=a.length;for(;c--;)if("labelImage"===a[c][1].type&&"enter"===a[c][0]){a[c][1];break}a[c+1][1].type="data",a[c+3][1].type="gfmFootnoteCallLabelMarker";let d={type:"gfmFootnoteCall",start:Object.assign({},a[c+3][1].start),end:Object.assign({},a[a.length-1][1].end)},e={type:"gfmFootnoteCallMarker",start:Object.assign({},a[c+3][1].end),end:Object.assign({},a[c+3][1].end)};e.end.column++,e.end.offset++,e.end._bufferIndex++;let f={type:"gfmFootnoteCallString",start:Object.assign({},e.end),end:Object.assign({},a[a.length-1][1].start)},g={type:"chunkString",contentType:"string",start:Object.assign({},f.start),end:Object.assign({},f.end)},h=[a[c+1],a[c+2],["enter",d,b],a[c+3],a[c+4],["enter",e,b],["exit",e,b],["enter",f,b],["enter",g,b],["exit",g,b],["exit",f,b],a[a.length-2],a[a.length-1],["exit",d,b]];return a.splice(c,a.length-c+1,...h),a}function as(a,b,c){let d,e=this,g=e.parser.gfmFootnotes||(e.parser.gfmFootnotes=[]),h=0;return function(b){return a.enter("gfmFootnoteCall"),a.enter("gfmFootnoteCallLabelMarker"),a.consume(b),a.exit("gfmFootnoteCallLabelMarker"),i};function i(b){return 94!==b?c(b):(a.enter("gfmFootnoteCallMarker"),a.consume(b),a.exit("gfmFootnoteCallMarker"),a.enter("gfmFootnoteCallString"),a.enter("chunkString").contentType="string",j)}function j(i){if(h>999||93===i&&!d||null===i||91===i||(0,f.Ee)(i))return c(i);if(93===i){a.exit("chunkString");let d=a.exit("gfmFootnoteCallString");return g.includes((0,u.B)(e.sliceSerialize(d)))?(a.enter("gfmFootnoteCallLabelMarker"),a.consume(i),a.exit("gfmFootnoteCallLabelMarker"),a.exit("gfmFootnoteCall"),b):c(i)}return(0,f.Ee)(i)||(d=!0),h++,a.consume(i),92===i?k:j}function k(b){return 91===b||92===b||93===b?(a.consume(b),h++,j):j(b)}}function at(a,b,c){let d,e,g=this,h=g.parser.gfmFootnotes||(g.parser.gfmFootnotes=[]),i=0;return function(b){return a.enter("gfmFootnoteDefinition")._container=!0,a.enter("gfmFootnoteDefinitionLabel"),a.enter("gfmFootnoteDefinitionLabelMarker"),a.consume(b),a.exit("gfmFootnoteDefinitionLabelMarker"),j};function j(b){return 94===b?(a.enter("gfmFootnoteDefinitionMarker"),a.consume(b),a.exit("gfmFootnoteDefinitionMarker"),a.enter("gfmFootnoteDefinitionLabelString"),a.enter("chunkString").contentType="string",k):c(b)}function k(b){if(i>999||93===b&&!e||null===b||91===b||(0,f.Ee)(b))return c(b);if(93===b){a.exit("chunkString");let c=a.exit("gfmFootnoteDefinitionLabelString");return d=(0,u.B)(g.sliceSerialize(c)),a.enter("gfmFootnoteDefinitionLabelMarker"),a.consume(b),a.exit("gfmFootnoteDefinitionLabelMarker"),a.exit("gfmFootnoteDefinitionLabel"),m}return(0,f.Ee)(b)||(e=!0),i++,a.consume(b),92===b?l:k}function l(b){return 91===b||92===b||93===b?(a.consume(b),i++,k):k(b)}function m(b){return 58===b?(a.enter("definitionMarker"),a.consume(b),a.exit("definitionMarker"),h.includes(d)||h.push(d),(0,ao.N)(a,n,"gfmFootnoteDefinitionWhitespace")):c(b)}function n(a){return b(a)}}function au(a,b,c){return a.check(an.B,b,a.attempt(ap,b,c))}function av(a){a.exit("gfmFootnoteDefinition")}var aw=c(98534),ax=c(76094);class ay{constructor(){this.map=[]}add(a,b,c){!function(a,b,c,d){let e=0;if(0!==c||0!==d.length){for(;e<a.map.length;){if(a.map[e][0]===b){a.map[e][1]+=c,a.map[e][2].push(...d);return}e+=1}a.map.push([b,c,d])}}(this,a,b,c)}consume(a){if(this.map.sort(function(a,b){return a[0]-b[0]}),0===this.map.length)return;let b=this.map.length,c=[];for(;b>0;)b-=1,c.push(a.slice(this.map[b][0]+this.map[b][1]),this.map[b][2]),a.length=this.map[b][0];c.push(a.slice()),a.length=0;let d=c.pop();for(;d;){for(let b of d)a.push(b);d=c.pop()}this.map.length=0}}function az(a,b,c){let d,e=this,g=0,h=0;return function(a){let b=e.events.length-1;for(;b>-1;){let a=e.events[b][1].type;if("lineEnding"===a||"linePrefix"===a)b--;else break}let d=b>-1?e.events[b][1].type:null,f="tableHead"===d||"tableRow"===d?t:i;return f===t&&e.parser.lazy[e.now().line]?c(a):f(a)};function i(b){var c;return a.enter("tableHead"),a.enter("tableRow"),124===(c=b)||(d=!0,h+=1),j(c)}function j(b){return null===b?c(b):(0,f.HP)(b)?h>1?(h=0,e.interrupt=!0,a.exit("tableRow"),a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),m):c(b):(0,f.On)(b)?(0,ao.N)(a,j,"whitespace")(b):(h+=1,d&&(d=!1,g+=1),124===b)?(a.enter("tableCellDivider"),a.consume(b),a.exit("tableCellDivider"),d=!0,j):(a.enter("data"),k(b))}function k(b){return null===b||124===b||(0,f.Ee)(b)?(a.exit("data"),j(b)):(a.consume(b),92===b?l:k)}function l(b){return 92===b||124===b?(a.consume(b),k):k(b)}function m(b){return(e.interrupt=!1,e.parser.lazy[e.now().line])?c(b):(a.enter("tableDelimiterRow"),d=!1,(0,f.On)(b))?(0,ao.N)(a,n,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):n(b)}function n(b){return 45===b||58===b?p(b):124===b?(d=!0,a.enter("tableCellDivider"),a.consume(b),a.exit("tableCellDivider"),o):c(b)}function o(b){return(0,f.On)(b)?(0,ao.N)(a,p,"whitespace")(b):p(b)}function p(b){return 58===b?(h+=1,d=!0,a.enter("tableDelimiterMarker"),a.consume(b),a.exit("tableDelimiterMarker"),q):45===b?(h+=1,q(b)):null===b||(0,f.HP)(b)?s(b):c(b)}function q(b){return 45===b?(a.enter("tableDelimiterFiller"),function b(c){return 45===c?(a.consume(c),b):58===c?(d=!0,a.exit("tableDelimiterFiller"),a.enter("tableDelimiterMarker"),a.consume(c),a.exit("tableDelimiterMarker"),r):(a.exit("tableDelimiterFiller"),r(c))}(b)):c(b)}function r(b){return(0,f.On)(b)?(0,ao.N)(a,s,"whitespace")(b):s(b)}function s(e){if(124===e)return n(e);if(null===e||(0,f.HP)(e))return d&&g===h?(a.exit("tableDelimiterRow"),a.exit("tableHead"),b(e)):c(e);return c(e)}function t(b){return a.enter("tableRow"),u(b)}function u(c){return 124===c?(a.enter("tableCellDivider"),a.consume(c),a.exit("tableCellDivider"),u):null===c||(0,f.HP)(c)?(a.exit("tableRow"),b(c)):(0,f.On)(c)?(0,ao.N)(a,u,"whitespace")(c):(a.enter("data"),v(c))}function v(b){return null===b||124===b||(0,f.Ee)(b)?(a.exit("data"),u(b)):(a.consume(b),92===b?w:v)}function w(b){return 92===b||124===b?(a.consume(b),v):v(b)}}function aA(a,b){let c,d,e,f=-1,g=!0,h=0,i=[0,0,0,0],j=[0,0,0,0],k=!1,l=0,m=new ay;for(;++f<a.length;){let n=a[f],o=n[1];"enter"===n[0]?"tableHead"===o.type?(k=!1,0!==l&&(aC(m,b,l,c,d),d=void 0,l=0),c={type:"table",start:Object.assign({},o.start),end:Object.assign({},o.end)},m.add(f,0,[["enter",c,b]])):"tableRow"===o.type||"tableDelimiterRow"===o.type?(g=!0,e=void 0,i=[0,0,0,0],j=[0,f+1,0,0],k&&(k=!1,d={type:"tableBody",start:Object.assign({},o.start),end:Object.assign({},o.end)},m.add(f,0,[["enter",d,b]])),h="tableDelimiterRow"===o.type?2:d?3:1):h&&("data"===o.type||"tableDelimiterMarker"===o.type||"tableDelimiterFiller"===o.type)?(g=!1,0===j[2]&&(0!==i[1]&&(j[0]=j[1],e=aB(m,b,i,h,void 0,e),i=[0,0,0,0]),j[2]=f)):"tableCellDivider"===o.type&&(g?g=!1:(0!==i[1]&&(j[0]=j[1],e=aB(m,b,i,h,void 0,e)),j=[(i=j)[1],f,0,0])):"tableHead"===o.type?(k=!0,l=f):"tableRow"===o.type||"tableDelimiterRow"===o.type?(l=f,0!==i[1]?(j[0]=j[1],e=aB(m,b,i,h,f,e)):0!==j[1]&&(e=aB(m,b,j,h,f,e)),h=0):h&&("data"===o.type||"tableDelimiterMarker"===o.type||"tableDelimiterFiller"===o.type)&&(j[3]=f)}for(0!==l&&aC(m,b,l,c,d),m.consume(b.events),f=-1;++f<b.events.length;){let a=b.events[f];"enter"===a[0]&&"table"===a[1].type&&(a[1]._align=function(a,b){let c=!1,d=[];for(;b<a.length;){let e=a[b];if(c){if("enter"===e[0])"tableContent"===e[1].type&&d.push("tableDelimiterMarker"===a[b+1][1].type?"left":"none");else if("tableContent"===e[1].type){if("tableDelimiterMarker"===a[b-1][1].type){let a=d.length-1;d[a]="left"===d[a]?"center":"right"}}else if("tableDelimiterRow"===e[1].type)break}else"enter"===e[0]&&"tableDelimiterRow"===e[1].type&&(c=!0);b+=1}return d}(b.events,f))}return a}function aB(a,b,c,d,e,f){0!==c[0]&&(f.end=Object.assign({},aD(b.events,c[0])),a.add(c[0],0,[["exit",f,b]]));let g=aD(b.events,c[1]);if(f={type:1===d?"tableHeader":2===d?"tableDelimiter":"tableData",start:Object.assign({},g),end:Object.assign({},g)},a.add(c[1],0,[["enter",f,b]]),0!==c[2]){let e=aD(b.events,c[2]),f=aD(b.events,c[3]),g={type:"tableContent",start:Object.assign({},e),end:Object.assign({},f)};if(a.add(c[2],0,[["enter",g,b]]),2!==d){let d=b.events[c[2]],e=b.events[c[3]];if(d[1].end=Object.assign({},e[1].end),d[1].type="chunkText",d[1].contentType="text",c[3]>c[2]+1){let b=c[2]+1,d=c[3]-c[2]-1;a.add(b,d,[])}}a.add(c[3]+1,0,[["exit",g,b]])}return void 0!==e&&(f.end=Object.assign({},aD(b.events,e)),a.add(e,0,[["exit",f,b]]),f=void 0),f}function aC(a,b,c,d,e){let f=[],g=aD(b.events,c);e&&(e.end=Object.assign({},g),f.push(["exit",e,b])),d.end=Object.assign({},g),f.push(["exit",d,b]),a.add(c+1,0,f)}function aD(a,b){let c=a[b],d="enter"===c[0]?"start":"end";return c[1][d]}let aE={name:"tasklistCheck",tokenize:function(a,b,c){let d=this;return function(b){return null===d.previous&&d._gfmTasklistFirstContentOfListItem?(a.enter("taskListCheck"),a.enter("taskListCheckMarker"),a.consume(b),a.exit("taskListCheckMarker"),e):c(b)};function e(b){return(0,f.Ee)(b)?(a.enter("taskListCheckValueUnchecked"),a.consume(b),a.exit("taskListCheckValueUnchecked"),g):88===b||120===b?(a.enter("taskListCheckValueChecked"),a.consume(b),a.exit("taskListCheckValueChecked"),g):c(b)}function g(b){return 93===b?(a.enter("taskListCheckMarker"),a.consume(b),a.exit("taskListCheckMarker"),a.exit("taskListCheck"),h):c(b)}function h(d){return(0,f.HP)(d)?b(d):(0,f.On)(d)?a.check({tokenize:aF},b,c)(d):c(d)}}};function aF(a,b,c){return(0,ao.N)(a,function(a){return null===a?c(a):b(a)},"whitespace")}let aG={};function aH(a){let b,c=a||aG,d=this.data(),e=d.micromarkExtensions||(d.micromarkExtensions=[]),f=d.fromMarkdownExtensions||(d.fromMarkdownExtensions=[]),g=d.toMarkdownExtensions||(d.toMarkdownExtensions=[]);e.push((0,Z.y)([{text:ag},{document:{91:{name:"gfmFootnoteDefinition",tokenize:at,continuation:{tokenize:au},exit:av}},text:{91:{name:"gfmFootnoteCall",tokenize:as},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:aq,resolveTo:ar}}},function(a){let b=(a||{}).singleTilde,c={name:"strikethrough",tokenize:function(a,c,d){let e=this.previous,f=this.events,g=0;return function(h){return 126===e&&"characterEscape"!==f[f.length-1][1].type?d(h):(a.enter("strikethroughSequenceTemporary"),function f(h){let i=(0,M.S)(e);if(126===h)return g>1?d(h):(a.consume(h),g++,f);if(g<2&&!b)return d(h);let j=a.exit("strikethroughSequenceTemporary"),k=(0,M.S)(h);return j._open=!k||2===k&&!!i,j._close=!i||2===i&&!!k,c(h)}(h))}},resolveAll:function(a,b){let c=-1;for(;++c<a.length;)if("enter"===a[c][0]&&"strikethroughSequenceTemporary"===a[c][1].type&&a[c][1]._close){let d=c;for(;d--;)if("exit"===a[d][0]&&"strikethroughSequenceTemporary"===a[d][1].type&&a[d][1]._open&&a[c][1].end.offset-a[c][1].start.offset==a[d][1].end.offset-a[d][1].start.offset){a[c][1].type="strikethroughSequence",a[d][1].type="strikethroughSequence";let e={type:"strikethrough",start:Object.assign({},a[d][1].start),end:Object.assign({},a[c][1].end)},f={type:"strikethroughText",start:Object.assign({},a[d][1].end),end:Object.assign({},a[c][1].start)},g=[["enter",e,b],["enter",a[d][1],b],["exit",a[d][1],b],["enter",f,b]],h=b.parser.constructs.insideSpan.null;h&&(0,aw.m)(g,g.length,0,(0,ax.W)(h,a.slice(d+1,c),b)),(0,aw.m)(g,g.length,0,[["exit",f,b],["enter",a[c][1],b],["exit",a[c][1],b],["exit",e,b]]),(0,aw.m)(a,d-1,c-d+3,g),c=d+g.length-2;break}}for(c=-1;++c<a.length;)"strikethroughSequenceTemporary"===a[c][1].type&&(a[c][1].type="data");return a}};return null==b&&(b=!0),{text:{126:c},insideSpan:{null:[c]},attentionMarkers:{null:[126]}}}(c),{flow:{null:{name:"table",tokenize:az,resolveAll:aA}}},{text:{91:aE}}])),f.push([{transforms:[q],enter:{literalAutolink:k,literalAutolinkEmail:l,literalAutolinkHttp:l,literalAutolinkWww:l},exit:{literalAutolink:p,literalAutolinkEmail:o,literalAutolinkHttp:m,literalAutolinkWww:n}},{enter:{gfmFootnoteCallString:v,gfmFootnoteCall:w,gfmFootnoteDefinitionLabelString:x,gfmFootnoteDefinition:y},exit:{gfmFootnoteCallString:z,gfmFootnoteCall:A,gfmFootnoteDefinitionLabelString:B,gfmFootnoteDefinition:C}},{canContainEols:["delete"],enter:{strikethrough:H},exit:{strikethrough:I}},{enter:{table:P,tableData:T,tableHeader:T,tableRow:R},exit:{codeText:U,table:Q,tableData:S,tableHeader:S,tableRow:S}},{exit:{taskListCheckValueChecked:W,taskListCheckValueUnchecked:W,paragraph:X}}]),g.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:i,notInConstruct:j},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:i,notInConstruct:j},{character:":",before:"[ps]",after:"\\/",inConstruct:i,notInConstruct:j}]},(b=!1,c&&c.firstLineBlank&&(b=!0),{handlers:{footnoteDefinition:function(a,c,d,e){let f=d.createTracker(e),g=f.move("[^"),h=d.enter("footnoteDefinition"),i=d.enter("label");return g+=f.move(d.safe(d.associationId(a),{before:g,after:"]"})),i(),g+=f.move("]:"),a.children&&a.children.length>0&&(f.shift(4),g+=f.move((b?"\n":" ")+d.indentLines(d.containerFlow(a,f.current()),b?F:E))),h(),g},footnoteReference:D},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:G}],handlers:{delete:J}},function(a){let b=a||{},c=b.tableCellPadding,d=b.tablePipeAlign,e=b.stringLength,f=c?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(a,b,c){let d=O.inlineCode(a,b,c);return c.stack.includes("tableCell")&&(d=d.replace(/\|/g,"\\$&")),d},table:function(a,b,c,d){return h(function(a,b,c){let d=a.children,e=-1,f=[],g=b.enter("table");for(;++e<d.length;)f[e]=i(d[e],b,c);return g(),f}(a,c,d),a.align)},tableCell:g,tableRow:function(a,b,c,d){let e=h([i(a,c,d)]);return e.slice(0,e.indexOf("\n"))}}};function g(a,b,c,d){let e=c.enter("tableCell"),g=c.enter("phrasing"),h=c.containerPhrasing(a,{...d,before:f,after:f});return g(),e(),h}function h(a,b){return function(a,b){let c=b||{},d=(c.align||[]).concat(),e=c.stringLength||K,f=[],g=[],h=[],i=[],j=0,k=-1;for(;++k<a.length;){let b=[],d=[],f=-1;for(a[k].length>j&&(j=a[k].length);++f<a[k].length;){var l;let g=null==(l=a[k][f])?"":String(l);if(!1!==c.alignDelimiters){let a=e(g);d[f]=a,(void 0===i[f]||a>i[f])&&(i[f]=a)}b.push(g)}g[k]=b,h[k]=d}let m=-1;if("object"==typeof d&&"length"in d)for(;++m<j;)f[m]=L(d[m]);else{let a=L(d);for(;++m<j;)f[m]=a}m=-1;let n=[],o=[];for(;++m<j;){let a=f[m],b="",d="";99===a?(b=":",d=":"):108===a?b=":":114===a&&(d=":");let e=!1===c.alignDelimiters?1:Math.max(1,i[m]-b.length-d.length),g=b+"-".repeat(e)+d;!1!==c.alignDelimiters&&((e=b.length+e+d.length)>i[m]&&(i[m]=e),o[m]=e),n[m]=g}g.splice(1,0,n),h.splice(1,0,o),k=-1;let p=[];for(;++k<g.length;){let a=g[k],b=h[k];m=-1;let d=[];for(;++m<j;){let e=a[m]||"",g="",h="";if(!1!==c.alignDelimiters){let a=i[m]-(b[m]||0),c=f[m];114===c?g=" ".repeat(a):99===c?a%2?(g=" ".repeat(a/2+.5),h=" ".repeat(a/2-.5)):h=g=" ".repeat(a/2):h=" ".repeat(a)}!1===c.delimiterStart||m||d.push("|"),!1!==c.padding&&(!1!==c.alignDelimiters||""!==e)&&(!1!==c.delimiterStart||m)&&d.push(" "),!1!==c.alignDelimiters&&d.push(g),d.push(e),!1!==c.alignDelimiters&&d.push(h),!1!==c.padding&&d.push(" "),(!1!==c.delimiterEnd||m!==j-1)&&d.push("|")}p.push(!1===c.delimiterEnd?d.join("").replace(/ +$/,""):d.join(""))}return p.join("\n")}(a,{align:b,alignDelimiters:d,padding:c,stringLength:e})}function i(a,b,c){let d=a.children,e=-1,f=[],h=b.enter("tableRow");for(;++e<d.length;)f[e]=g(d[e],a,b,c);return h(),f}}(c),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Y}}]})}},9188:(a,b,c)=>{"use strict";c.d(b,{YR:()=>e});var d=c(83146);function e(a,b,c,e){let f,g,h;"function"==typeof b&&"function"!=typeof c?(g=void 0,h=b,f=c):(g=b,h=c,f=e),(0,d.VG)(a,g,function(a,b){let c=b[b.length-1],d=c?c.children.indexOf(a):void 0;return h(a,d,c)},f)}},9838:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.camelCase=void 0;var c=/^--[a-zA-Z0-9_-]+$/,d=/-([a-z])/g,e=/^[^-]+$/,f=/^-(webkit|moz|ms|o|khtml)-/,g=/^-(ms)-/,h=function(a,b){return b.toUpperCase()},i=function(a,b){return"".concat(b,"-")};b.camelCase=function(a,b){var j;return(void 0===b&&(b={}),!(j=a)||e.test(j)||c.test(j))?a:(a=a.toLowerCase(),(a=b.reactCompat?a.replace(g,i):a.replace(f,i)).replace(d,h))}},10154:(a,b,c)=>{"use strict";c.d(b,{H:()=>x});var d=c(4304),e=c(95458);let f=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,g=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,h={};function i(a,b){return((b||h).jsx?g:f).test(a)}var j=c(95966),k=c(64432),l=c(66474);let m={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"};var n=c(48427),o=c(96914),p=c(50737),q=c(29956);let r={}.hasOwnProperty,s=new Map,t=/[A-Z]/g,u=new Set(["table","tbody","thead","tfoot","tr"]),v=new Set(["td","th"]),w="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function x(a,b){var c,d,e,f;let g;if(!b||void 0===b.Fragment)throw TypeError("Expected `Fragment` in options");let h=b.filePath||void 0;if(b.development){if("function"!=typeof b.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");c=h,d=b.jsxDEV,g=function(a,b,e,f){let g=Array.isArray(e.children),h=(0,p.PW)(a);return d(b,e,f,g,{columnNumber:h?h.column-1:void 0,fileName:c,lineNumber:h?h.line:void 0},void 0)}}else{if("function"!=typeof b.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof b.jsxs)throw TypeError("Expected `jsxs` in production options");e=b.jsx,f=b.jsxs,g=function(a,b,c,d){let g=Array.isArray(c.children)?f:e;return d?g(b,c,d):g(b,c)}}let i={Fragment:b.Fragment,ancestors:[],components:b.components||{},create:g,elementAttributeNameCase:b.elementAttributeNameCase||"react",evaluater:b.createEvaluater?b.createEvaluater():void 0,filePath:h,ignoreInvalidStyle:b.ignoreInvalidStyle||!1,passKeys:!1!==b.passKeys,passNode:b.passNode||!1,schema:"svg"===b.space?k.JW:k.qy,stylePropertyNameCase:b.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==b.tableCellAlignToStyle},j=y(i,a,void 0);return j&&"string"!=typeof j?j:i.create(a,i.Fragment,{children:j||void 0},void 0)}function y(a,b,c){return"element"===b.type?function(a,b,c){let e=a.schema;"svg"===b.tagName.toLowerCase()&&"html"===e.space&&(a.schema=k.JW),a.ancestors.push(b);let f=C(a,b.tagName,!1),g=function(a,b){let c,e,f={};for(e in b.properties)if("children"!==e&&r.call(b.properties,e)){let g=function(a,b,c){let e=(0,l.I)(a.schema,b);if(!(null==c||"number"==typeof c&&Number.isNaN(c))){if(Array.isArray(c)&&(c=e.commaSeparated?(0,d.A)(c):(0,n.A)(c)),"style"===e.property){let b="object"==typeof c?c:function(a,b){try{return o(b,{reactCompat:!0})}catch(c){if(a.ignoreInvalidStyle)return{};let b=new q.o("Cannot parse `style` attribute",{ancestors:a.ancestors,cause:c,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw b.file=a.filePath||void 0,b.url=w+"#cannot-parse-style-attribute",b}}(a,String(c));return"css"===a.stylePropertyNameCase&&(b=function(a){let b,c={};for(b in a)r.call(a,b)&&(c[function(a){let b=a.replace(t,E);return"ms-"===b.slice(0,3)&&(b="-"+b),b}(b)]=a[b]);return c}(b)),["style",b]}return["react"===a.elementAttributeNameCase&&e.space?m[e.property]||e.property:e.attribute,c]}}(a,e,b.properties[e]);if(g){let[d,e]=g;a.tableCellAlignToStyle&&"align"===d&&"string"==typeof e&&v.has(b.tagName)?c=e:f[d]=e}}return c&&((f.style||(f.style={}))["css"===a.stylePropertyNameCase?"text-align":"textAlign"]=c),f}(a,b),h=B(a,b);return u.has(b.tagName)&&(h=h.filter(function(a){return"string"!=typeof a||!(0,j.m)(a)})),z(a,g,f,b),A(g,h),a.ancestors.pop(),a.schema=e,a.create(b,f,g,c)}(a,b,c):"mdxFlowExpression"===b.type||"mdxTextExpression"===b.type?function(a,b){if(b.data&&b.data.estree&&a.evaluater){let c=b.data.estree.body[0];return(0,e.ok)("ExpressionStatement"===c.type),a.evaluater.evaluateExpression(c.expression)}D(a,b.position)}(a,b):"mdxJsxFlowElement"===b.type||"mdxJsxTextElement"===b.type?function(a,b,c){let d=a.schema;"svg"===b.name&&"html"===d.space&&(a.schema=k.JW),a.ancestors.push(b);let f=null===b.name?a.Fragment:C(a,b.name,!0),g=function(a,b){let c={};for(let d of b.attributes)if("mdxJsxExpressionAttribute"===d.type)if(d.data&&d.data.estree&&a.evaluater){let b=d.data.estree.body[0];(0,e.ok)("ExpressionStatement"===b.type);let f=b.expression;(0,e.ok)("ObjectExpression"===f.type);let g=f.properties[0];(0,e.ok)("SpreadElement"===g.type),Object.assign(c,a.evaluater.evaluateExpression(g.argument))}else D(a,b.position);else{let f,g=d.name;if(d.value&&"object"==typeof d.value)if(d.value.data&&d.value.data.estree&&a.evaluater){let b=d.value.data.estree.body[0];(0,e.ok)("ExpressionStatement"===b.type),f=a.evaluater.evaluateExpression(b.expression)}else D(a,b.position);else f=null===d.value||d.value;c[g]=f}return c}(a,b),h=B(a,b);return z(a,g,f,b),A(g,h),a.ancestors.pop(),a.schema=d,a.create(b,f,g,c)}(a,b,c):"mdxjsEsm"===b.type?function(a,b){if(b.data&&b.data.estree&&a.evaluater)return a.evaluater.evaluateProgram(b.data.estree);D(a,b.position)}(a,b):"root"===b.type?function(a,b,c){let d={};return A(d,B(a,b)),a.create(b,a.Fragment,d,c)}(a,b,c):"text"===b.type?b.value:void 0}function z(a,b,c,d){"string"!=typeof c&&c!==a.Fragment&&a.passNode&&(b.node=d)}function A(a,b){if(b.length>0){let c=b.length>1?b:b[0];c&&(a.children=c)}}function B(a,b){let c=[],d=-1,e=a.passKeys?new Map:s;for(;++d<b.children.length;){let f,g=b.children[d];if(a.passKeys){let a="element"===g.type?g.tagName:"mdxJsxFlowElement"===g.type||"mdxJsxTextElement"===g.type?g.name:void 0;if(a){let b=e.get(a)||0;f=a+"-"+b,e.set(a,b+1)}}let h=y(a,g,f);void 0!==h&&c.push(h)}return c}function C(a,b,c){let d;if(c)if(b.includes(".")){let a,c=b.split("."),f=-1;for(;++f<c.length;){let b=i(c[f])?{type:"Identifier",name:c[f]}:{type:"Literal",value:c[f]};a=a?{type:"MemberExpression",object:a,property:b,computed:!!(f&&"Literal"===b.type),optional:!1}:b}(0,e.ok)(a,"always a result"),d=a}else d=i(b)&&!/^[a-z]/.test(b)?{type:"Identifier",name:b}:{type:"Literal",value:b};else d={type:"Literal",value:b};if("Literal"===d.type){let b=d.value;return r.call(a.components,b)?a.components[b]:b}if(a.evaluater)return a.evaluater.evaluateExpression(d);D(a)}function D(a,b){let c=new q.o("Cannot handle MDX estrees without `createEvaluater`",{ancestors:a.ancestors,place:b,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw c.file=a.filePath||void 0,c.url=w+"#cannot-handle-mdx-estrees-without-createevaluater",c}function E(a){return"-"+a.toLowerCase()}},10551:(a,b,c)=>{"use strict";c.d(b,{A:()=>am});var d={};c.r(d),c.d(d,{boolean:()=>n,booleanish:()=>o,commaOrSpaceSeparated:()=>t,commaSeparated:()=>s,number:()=>q,overloadedBoolean:()=>p,spaceSeparated:()=>r});var e=c(15),f=c(27159),g=c(4304),h=c(95458);class i{constructor(a,b,c){this.property=a,this.normal=b,c&&(this.space=c)}}function j(a,b){let c={},d={},e=-1;for(;++e<a.length;)Object.assign(c,a[e].property),Object.assign(d,a[e].normal);return new i(c,d,b)}function k(a){return a.toLowerCase()}i.prototype.property={},i.prototype.normal={},i.prototype.space=null;class l{constructor(a,b){this.property=a,this.attribute=b}}l.prototype.space=null,l.prototype.boolean=!1,l.prototype.booleanish=!1,l.prototype.overloadedBoolean=!1,l.prototype.number=!1,l.prototype.commaSeparated=!1,l.prototype.spaceSeparated=!1,l.prototype.commaOrSpaceSeparated=!1,l.prototype.mustUseProperty=!1,l.prototype.defined=!1;let m=0,n=u(),o=u(),p=u(),q=u(),r=u(),s=u(),t=u();function u(){return 2**++m}let v=Object.keys(d);class w extends l{constructor(a,b,c,e){let f=-1;if(super(a,b),function(a,b,c){c&&(a[b]=c)}(this,"space",e),"number"==typeof c)for(;++f<v.length;){let a=v[f];!function(a,b,c){c&&(a[b]=c)}(this,v[f],(c&d[a])===d[a])}}}w.prototype.defined=!0;let x={}.hasOwnProperty;function y(a){let b,c={},d={};for(b in a.properties)if(x.call(a.properties,b)){let e=a.properties[b],f=new w(b,a.transform(a.attributes||{},b),e,a.space);a.mustUseProperty&&a.mustUseProperty.includes(b)&&(f.mustUseProperty=!0),c[b]=f,d[k(b)]=b,d[k(f.attribute)]=b}return new i(c,d,a.space)}let z=y({space:"xlink",transform:(a,b)=>"xlink:"+b.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),A=y({space:"xml",transform:(a,b)=>"xml:"+b.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function B(a,b){return b in a?a[b]:b}function C(a,b){return B(a,b.toLowerCase())}let D=y({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:C,properties:{xmlns:null,xmlnsXLink:null}}),E=y({transform:(a,b)=>"role"===b?b:"aria-"+b.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:o,ariaAutoComplete:null,ariaBusy:o,ariaChecked:o,ariaColCount:q,ariaColIndex:q,ariaColSpan:q,ariaControls:r,ariaCurrent:null,ariaDescribedBy:r,ariaDetails:null,ariaDisabled:o,ariaDropEffect:r,ariaErrorMessage:null,ariaExpanded:o,ariaFlowTo:r,ariaGrabbed:o,ariaHasPopup:null,ariaHidden:o,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:r,ariaLevel:q,ariaLive:null,ariaModal:o,ariaMultiLine:o,ariaMultiSelectable:o,ariaOrientation:null,ariaOwns:r,ariaPlaceholder:null,ariaPosInSet:q,ariaPressed:o,ariaReadOnly:o,ariaRelevant:null,ariaRequired:o,ariaRoleDescription:r,ariaRowCount:q,ariaRowIndex:q,ariaRowSpan:q,ariaSelected:o,ariaSetSize:q,ariaSort:null,ariaValueMax:q,ariaValueMin:q,ariaValueNow:q,ariaValueText:null,role:null}}),F=y({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:C,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:s,acceptCharset:r,accessKey:r,action:null,allow:null,allowFullScreen:n,allowPaymentRequest:n,allowUserMedia:n,alt:null,as:null,async:n,autoCapitalize:null,autoComplete:r,autoFocus:n,autoPlay:n,blocking:r,capture:null,charSet:null,checked:n,cite:null,className:r,cols:q,colSpan:null,content:null,contentEditable:o,controls:n,controlsList:r,coords:q|s,crossOrigin:null,data:null,dateTime:null,decoding:null,default:n,defer:n,dir:null,dirName:null,disabled:n,download:p,draggable:o,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:n,formTarget:null,headers:r,height:q,hidden:n,high:q,href:null,hrefLang:null,htmlFor:r,httpEquiv:r,id:null,imageSizes:null,imageSrcSet:null,inert:n,inputMode:null,integrity:null,is:null,isMap:n,itemId:null,itemProp:r,itemRef:r,itemScope:n,itemType:r,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:n,low:q,manifest:null,max:null,maxLength:q,media:null,method:null,min:null,minLength:q,multiple:n,muted:n,name:null,nonce:null,noModule:n,noValidate:n,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:n,optimum:q,pattern:null,ping:r,placeholder:null,playsInline:n,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:n,referrerPolicy:null,rel:r,required:n,reversed:n,rows:q,rowSpan:q,sandbox:r,scope:null,scoped:n,seamless:n,selected:n,shadowRootClonable:n,shadowRootDelegatesFocus:n,shadowRootMode:null,shape:null,size:q,sizes:null,slot:null,span:q,spellCheck:o,src:null,srcDoc:null,srcLang:null,srcSet:null,start:q,step:null,style:null,tabIndex:q,target:null,title:null,translate:null,type:null,typeMustMatch:n,useMap:null,value:o,width:q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:r,axis:null,background:null,bgColor:null,border:q,borderColor:null,bottomMargin:q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:n,declare:n,event:null,face:null,frame:null,frameBorder:null,hSpace:q,leftMargin:q,link:null,longDesc:null,lowSrc:null,marginHeight:q,marginWidth:q,noResize:n,noHref:n,noShade:n,noWrap:n,object:null,profile:null,prompt:null,rev:null,rightMargin:q,rules:null,scheme:null,scrolling:o,standby:null,summary:null,text:null,topMargin:q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:n,disableRemotePlayback:n,prefix:null,property:null,results:q,security:null,unselectable:null}}),G=y({space:"svg",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"},transform:B,properties:{about:t,accentHeight:q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:q,amplitude:q,arabicForm:null,ascent:q,attributeName:null,attributeType:null,azimuth:q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:q,by:null,calcMode:null,capHeight:q,className:r,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:q,diffuseConstant:q,direction:null,display:null,dur:null,divisor:q,dominantBaseline:null,download:n,dx:null,dy:null,edgeMode:null,editable:null,elevation:q,enableBackground:null,end:null,event:null,exponent:q,externalResourcesRequired:null,fill:null,fillOpacity:q,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:s,g2:s,glyphName:s,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:q,horizOriginX:q,horizOriginY:q,id:null,ideographic:q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:q,k:q,k1:q,k2:q,k3:q,k4:q,kernelMatrix:t,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:q,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:q,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:q,overlineThickness:q,paintOrder:null,panose1:null,path:null,pathLength:q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:r,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:q,pointsAtY:q,pointsAtZ:q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:t,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:t,rev:t,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:t,requiredFeatures:t,requiredFonts:t,requiredFormats:t,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:q,specularExponent:q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:q,strikethroughThickness:q,string:null,stroke:null,strokeDashArray:t,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:q,strokeOpacity:q,strokeWidth:null,style:null,surfaceScale:q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:t,tabIndex:q,tableValues:null,target:null,targetX:q,targetY:q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:t,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:q,underlineThickness:q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:q,values:null,vAlphabetic:q,vMathematical:q,vectorEffect:null,vHanging:q,vIdeographic:q,version:null,vertAdvY:q,vertOriginX:q,vertOriginY:q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),H=j([A,z,D,E,F],"html"),I=j([A,z,D,E,G],"svg"),J=/^data[-\w.:]+$/i,K=/-[a-z]/g,L=/[A-Z]/g;function M(a){return"-"+a.toLowerCase()}function N(a){return a.charAt(1).toUpperCase()}var O=c(48427),P=c(85198),Q=c(33677);let R={}.hasOwnProperty,S=(0,Q.A)("type",{handlers:{root:function(a,b){let c={nodeName:"#document",mode:(a.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return c.childNodes=T(a.children,c,b),U(a,c),c},element:function(a,b){let c,d=b;"element"===a.type&&"svg"===a.tagName.toLowerCase()&&"html"===b.space&&(d=I);let e=[];if(a.properties){for(c in a.properties)if("children"!==c&&R.call(a.properties,c)){let b=function(a,b,c){let d=function(a,b){let c=k(b),d=b,e=l;if(c in a.normal)return a.property[a.normal[c]];if(c.length>4&&"data"===c.slice(0,4)&&J.test(b)){if("-"===b.charAt(4)){let a=b.slice(5).replace(K,N);d="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{let a=b.slice(4);if(!K.test(a)){let c=a.replace(L,M);"-"!==c.charAt(0)&&(c="-"+c),b="data"+c}}e=w}return new e(d,b)}(a,b);if(!1===c||null==c||"number"==typeof c&&Number.isNaN(c)||!c&&d.boolean)return;Array.isArray(c)&&(c=d.commaSeparated?(0,g.A)(c):(0,O.A)(c));let e={name:d.attribute,value:!0===c?"":String(c)};if(d.space&&"html"!==d.space&&"svg"!==d.space){let a=e.name.indexOf(":");a<0?e.prefix="":(e.name=e.name.slice(a+1),e.prefix=d.attribute.slice(0,a)),e.namespace=P.t[d.space]}return e}(d,c,a.properties[c]);b&&e.push(b)}}let f=d.space;(0,h.ok)(f);let i={nodeName:a.tagName,tagName:a.tagName,attrs:e,namespaceURI:P.t[f],childNodes:[],parentNode:null};return i.childNodes=T(a.children,i,d),U(a,i),"template"===a.tagName&&a.content&&(i.content=function(a,b){let c={nodeName:"#document-fragment",childNodes:[]};return c.childNodes=T(a.children,c,b),U(a,c),c}(a.content,d)),i},text:function(a){let b={nodeName:"#text",value:a.value,parentNode:null};return U(a,b),b},comment:function(a){let b={nodeName:"#comment",data:a.value,parentNode:null};return U(a,b),b},doctype:function(a){let b={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return U(a,b),b}}});function T(a,b,c){let d=-1,e=[];if(a)for(;++d<a.length;){let f=S(a[d],c);f.parentNode=b,e.push(f)}return e}function U(a,b){let c=a.position;c&&c.start&&c.end&&((0,h.ok)("number"==typeof c.start.offset),(0,h.ok)("number"==typeof c.end.offset),b.sourceCodeLocation={startLine:c.start.line,startCol:c.start.column,startOffset:c.start.offset,endLine:c.end.line,endCol:c.end.column,endOffset:c.end.offset})}var V=c(51798),W=c(49170),X=c(50737),Y=c(9188);let Z=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,$=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),_={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function aa(a,b){let c=function(a){let b="root"===a.type?a.children[0]:a;return!!(b&&("doctype"===b.type||"element"===b.type&&"html"===b.tagName.toLowerCase()))}(a),d=(0,Q.A)("type",{handlers:{root:ac,element:ad,text:ae,comment:ag,doctype:af,raw:ah},unknown:ai}),e={parser:c?new W.iX(_):W.iX.getFragmentParser(void 0,_),handle(a){d(a,e)},stitches:!1,options:b||{}};d(a,e),aj(e,(0,X.PW)());let g=c?e.parser.document:e.parser.getFragment(),h=(0,f.D)(g,{file:e.options.file});return(e.stitches&&(0,Y.YR)(h,"comment",function(a,b,c){if(a.value.stitch&&c&&void 0!==b)return c.children[b]=a.value.stitch,b}),"root"===h.type&&1===h.children.length&&h.children[0].type===a.type)?h.children[0]:h}function ab(a,b){let c=-1;if(a)for(;++c<a.length;)b.handle(a[c])}function ac(a,b){ab(a.children,b)}function ad(a,b){(function(a,b){let c=a.tagName.toLowerCase();if(b.parser.tokenizer.state===W.V_.PLAINTEXT)return;aj(b,(0,X.PW)(a));let d=b.parser.openElements.current,e="namespaceURI"in d?d.namespaceURI:P.t.html;e===P.t.html&&"svg"===c&&(e=P.t.svg);let f=S({...a,children:[]},"svg"===({space:e===P.t.svg?"svg":"html"}).space?I:H),g={type:W.ou.k.START_TAG,tagName:c,tagID:W.qy.getTagID(c),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in f?f.attrs:[],location:al(a)};b.parser.currentToken=g,b.parser._processToken(b.parser.currentToken),b.parser.tokenizer.lastStartTagName=c})(a,b),ab(a.children,b),function(a,b){let c=a.tagName.toLowerCase();if(!b.parser.tokenizer.inForeignNode&&V.b.includes(c)||b.parser.tokenizer.state===W.V_.PLAINTEXT)return;aj(b,(0,X.Y)(a));let d={type:W.ou.k.END_TAG,tagName:c,tagID:W.qy.getTagID(c),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:al(a)};b.parser.currentToken=d,b.parser._processToken(b.parser.currentToken),c===b.parser.tokenizer.lastStartTagName&&(b.parser.tokenizer.state===W.V_.RCDATA||b.parser.tokenizer.state===W.V_.RAWTEXT||b.parser.tokenizer.state===W.V_.SCRIPT_DATA)&&(b.parser.tokenizer.state=W.V_.DATA)}(a,b)}function ae(a,b){b.parser.tokenizer.state>4&&(b.parser.tokenizer.state=0);let c={type:W.ou.k.CHARACTER,chars:a.value,location:al(a)};aj(b,(0,X.PW)(a)),b.parser.currentToken=c,b.parser._processToken(b.parser.currentToken)}function af(a,b){let c={type:W.ou.k.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:al(a)};aj(b,(0,X.PW)(a)),b.parser.currentToken=c,b.parser._processToken(b.parser.currentToken)}function ag(a,b){let c=a.value,d={type:W.ou.k.COMMENT,data:c,location:al(a)};aj(b,(0,X.PW)(a)),b.parser.currentToken=d,b.parser._processToken(b.parser.currentToken)}function ah(a,b){if(b.parser.tokenizer.preprocessor.html="",b.parser.tokenizer.preprocessor.pos=-1,b.parser.tokenizer.preprocessor.lastGapPos=-2,b.parser.tokenizer.preprocessor.gapStack=[],b.parser.tokenizer.preprocessor.skipNextNewLine=!1,b.parser.tokenizer.preprocessor.lastChunkWritten=!1,b.parser.tokenizer.preprocessor.endOfChunkHit=!1,b.parser.tokenizer.preprocessor.isEol=!1,ak(b,(0,X.PW)(a)),b.parser.tokenizer.write(b.options.tagfilter?a.value.replace(Z,"<$1$2"):a.value,!1),b.parser.tokenizer._runParsingLoop(),72===b.parser.tokenizer.state||78===b.parser.tokenizer.state){b.parser.tokenizer.preprocessor.lastChunkWritten=!0;let a=b.parser.tokenizer._consume();b.parser.tokenizer._callState(a)}}function ai(a,b){if(b.options.passThrough&&b.options.passThrough.includes(a.type)){var c;b.stitches=!0;let d="children"in(c=a)?(0,e.Ay)({...c,children:[]}):(0,e.Ay)(c);"children"in a&&"children"in d&&(d.children=aa({type:"root",children:a.children},b.options).children),ag({type:"comment",value:{stitch:d}},b)}else{let b="";throw $.has(a.type)&&(b=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+a.type+"` node"+b)}}function aj(a,b){ak(a,b);let c=a.parser.tokenizer.currentCharacterToken;c&&c.location&&(c.location.endLine=a.parser.tokenizer.preprocessor.line,c.location.endCol=a.parser.tokenizer.preprocessor.col+1,c.location.endOffset=a.parser.tokenizer.preprocessor.offset+1,a.parser.currentToken=c,a.parser._processToken(a.parser.currentToken)),a.parser.tokenizer.paused=!1,a.parser.tokenizer.inLoop=!1,a.parser.tokenizer.active=!1,a.parser.tokenizer.returnState=W.V_.DATA,a.parser.tokenizer.charRefCode=-1,a.parser.tokenizer.consumedAfterSnapshot=-1,a.parser.tokenizer.currentLocation=null,a.parser.tokenizer.currentCharacterToken=null,a.parser.tokenizer.currentToken=null,a.parser.tokenizer.currentAttr={name:"",value:""}}function ak(a,b){if(b&&void 0!==b.offset){let c={startLine:b.line,startCol:b.column,startOffset:b.offset,endLine:-1,endCol:-1,endOffset:-1};a.parser.tokenizer.preprocessor.lineStartPos=-b.column+1,a.parser.tokenizer.preprocessor.droppedBufferSize=b.offset,a.parser.tokenizer.preprocessor.line=b.line,a.parser.tokenizer.currentLocation=c}}function al(a){let b=(0,X.PW)(a)||{line:void 0,column:void 0,offset:void 0},c=(0,X.Y)(a)||{line:void 0,column:void 0,offset:void 0};return{startLine:b.line,startCol:b.column,startOffset:b.offset,endLine:c.line,endCol:c.column,endOffset:c.offset}}function am(a){return function(b,c){return aa(b,{...a,file:c})}}},12320:(a,b,c)=>{"use strict";let d,e;c.d(b,{jH:()=>fP});var f=c(14450),g=c(95458),h=c(10154),i=c(98631),j=c(59111),k=c(92729),l=c(28963),m=c(59305),n=c(9188),o=c(35201);let p=[],q={allowDangerousHtml:!0},r=/^(https?|ircs?|mailto|xmpp)$/i,s=[{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 t(a){let b=a.indexOf(":"),c=a.indexOf("?"),d=a.indexOf("#"),e=a.indexOf("/");return -1===b||-1!==e&&b>e||-1!==c&&b>c||-1!==d&&b>d||r.test(a.slice(0,b))?a:""}var u=c(27159),v=c(49170),w=c(29956);let x={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `\x3c!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `\x3c!--`. Expected `--\x3e`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}},y=/-[a-z]/g,z=/%c(?:([-+])(\d+))?/g,A=/%x/g,B={2:!0,1:!1,0:null},C={};function D(a){return a.charAt(1).toUpperCase()}var E=c(58751);let F=function(a,b,c){let d=(0,E.C)(c);if(!a||!a.type||!a.children)throw Error("Expected parent node");if("number"==typeof b){if(b<0||b===1/0)throw Error("Expected positive finite number as index")}else if((b=a.children.indexOf(b))<0)throw Error("Expected child node or index");for(;++b<a.children.length;)if(d(a.children[b],b,a))return a.children[b]},G=function(a){if(null==a)return I;if("string"==typeof a){var b;return b=a,H(function(a){return a.tagName===b})}if("object"==typeof a){var c=a;let b=[],d=-1;for(;++d<c.length;)b[d]=G(c[d]);return H(function(...a){let c=-1;for(;++c<b.length;)if(b[c].apply(this,a))return!0;return!1})}if("function"==typeof a)return H(a);throw Error("Expected function, string, or array as `test`")};function H(a){return function(b,c,d){var e;return!!(null!==(e=b)&&"object"==typeof e&&"type"in e&&"tagName"in e&&a.call(this,b,"number"==typeof c?c:void 0,d||void 0))}}function I(a){return!!(a&&"object"==typeof a&&"type"in a&&"element"===a.type&&"tagName"in a&&"string"==typeof a.tagName)}let J=/\n/g,K=/[\t ]+/g,L=G("br"),M=G(function(a){return"td"===a.tagName||"th"===a.tagName}),N=G("p"),O=G("tr"),P=G(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(a){return!!(a.properties||{}).hidden},function(a){return"dialog"===a.tagName&&!(a.properties||{}).open}]),Q=G(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function R(a,b){let c,d=String(a.value),e=[],f=[],g=0;for(;g<=d.length;){J.lastIndex=g;let a=J.exec(d),c=a&&"index"in a?a.index:d.length;e.push(function(a,b,c){let d,e=[],f=0;for(;f<a.length;){K.lastIndex=f;let c=K.exec(a);d=c?c.index:a.length,f||d||!c||b||e.push(""),f!==d&&e.push(a.slice(f,d)),f=c?d+c[0].length:d}return f===d||c||e.push(""),e.join(" ")}(d.slice(g,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==g||b.breakBefore,c!==d.length||b.breakAfter)),g=c+1}let h=-1;for(;++h<e.length;)8203===e[h].charCodeAt(e[h].length-1)||h<e.length-1&&8203===e[h+1].charCodeAt(0)?(f.push(e[h]),c=void 0):e[h]?("number"==typeof c&&f.push(c),f.push(e[h]),c=0):(0===h||h===e.length-1)&&f.push(0);return f}function S(a,b){if("element"===a.type){let c=a.properties||{};switch(a.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return c.wrap?"pre-wrap":"pre";case"td":case"th":return c.noWrap?"nowrap":b.whitespace;case"textarea":return"pre-wrap"}}return b.whitespace}var T=c(25457),U=c(83146);let V={},W=[];var X=c(10551),Y=c(6757),Z=c(14381),$=c(50698),_=c(93045);let aa={tokenize:function(a,b,c){let d=this,e=d.events[d.events.length-1],f=e&&"linePrefix"===e[1].type?e[2].sliceSerialize(e[1],!0).length:0,g=0;return function(b){return a.enter("mathFlow"),a.enter("mathFlowFence"),a.enter("mathFlowFenceSequence"),function b(d){return 36===d?(a.consume(d),g++,b):g<2?c(d):(a.exit("mathFlowFenceSequence"),(0,$.N)(a,h,"whitespace")(d))}(b)};function h(b){return null===b||(0,_.HP)(b)?i(b):(a.enter("mathFlowFenceMeta"),a.enter("chunkString",{contentType:"string"}),function b(d){return null===d||(0,_.HP)(d)?(a.exit("chunkString"),a.exit("mathFlowFenceMeta"),i(d)):36===d?c(d):(a.consume(d),b)}(b))}function i(c){return(a.exit("mathFlowFence"),d.interrupt)?b(c):a.attempt(ab,j,m)(c)}function j(b){return a.attempt({tokenize:n,partial:!0},m,k)(b)}function k(b){return(f?(0,$.N)(a,l,"linePrefix",f+1):l)(b)}function l(b){return null===b?m(b):(0,_.HP)(b)?a.attempt(ab,j,m)(b):(a.enter("mathFlowValue"),function b(c){return null===c||(0,_.HP)(c)?(a.exit("mathFlowValue"),l(c)):(a.consume(c),b)}(b))}function m(c){return a.exit("mathFlow"),b(c)}function n(a,b,c){let e=0;return(0,$.N)(a,function(b){return a.enter("mathFlowFence"),a.enter("mathFlowFenceSequence"),function b(d){return 36===d?(e++,a.consume(d),b):e<g?c(d):(a.exit("mathFlowFenceSequence"),(0,$.N)(a,f,"whitespace")(d))}(b)},"linePrefix",d.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function f(d){return null===d||(0,_.HP)(d)?(a.exit("mathFlowFence"),b(d)):c(d)}}},concrete:!0,name:"mathFlow"},ab={tokenize:function(a,b,c){let d=this;return function(c){return null===c?b(c):(a.enter("lineEnding"),a.consume(c),a.exit("lineEnding"),e)};function e(a){return d.parser.lazy[d.now().line]?c(a):b(a)}},partial:!0};function ac(a){let b,c,d=a.length-4,e=3;if(("lineEnding"===a[3][1].type||"space"===a[e][1].type)&&("lineEnding"===a[d][1].type||"space"===a[d][1].type)){for(b=e;++b<d;)if("mathTextData"===a[b][1].type){a[d][1].type="mathTextPadding",a[e][1].type="mathTextPadding",e+=2,d-=2;break}}for(b=e-1,d++;++b<=d;)void 0===c?b!==d&&"lineEnding"!==a[b][1].type&&(c=b):(b===d||"lineEnding"===a[b][1].type)&&(a[c][1].type="mathTextData",b!==c+2&&(a[c][1].end=a[b-1][1].end,a.splice(c+2,b-c-2),d-=b-c-2,b=c+2),c=void 0);return a}function ad(a){return 36!==a||"characterEscape"===this.events[this.events.length-1][1].type}let ae={};function af(a){let b,c=a||ae,d=this.data(),e=d.micromarkExtensions||(d.micromarkExtensions=[]),f=d.fromMarkdownExtensions||(d.fromMarkdownExtensions=[]),h=d.toMarkdownExtensions||(d.toMarkdownExtensions=[]);e.push({flow:{36:aa},text:{36:(null==(b=(c||{}).singleDollarTextMath)&&(b=!0),{tokenize:function(a,c,d){let e,f,g=0;return function(c){return a.enter("mathText"),a.enter("mathTextSequence"),function c(e){return 36===e?(a.consume(e),g++,c):g<2&&!b?d(e):(a.exit("mathTextSequence"),h(e))}(c)};function h(b){return null===b?d(b):36===b?(f=a.enter("mathTextSequence"),e=0,function b(d){return 36===d?(a.consume(d),e++,b):e===g?(a.exit("mathTextSequence"),a.exit("mathText"),c(d)):(f.type="mathTextData",i(d))}(b)):32===b?(a.enter("space"),a.consume(b),a.exit("space"),h):(0,_.HP)(b)?(a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),h):(a.enter("mathTextData"),i(b))}function i(b){return null===b||32===b||36===b||(0,_.HP)(b)?(a.exit("mathTextData"),h(b)):(a.consume(b),i)}},resolve:ac,previous:ad,name:"mathText"})}}),f.push(function(){return{enter:{mathFlow:function(a){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},a)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(a){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},a),this.buffer()}},exit:{mathFlow:function(a){let b=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];(0,g.ok)("math"===c.type),this.exit(a),c.value=b;let d=c.data.hChildren[0];(0,g.ok)("element"===d.type),(0,g.ok)("code"===d.tagName),d.children.push({type:"text",value:b}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){let a=this.resume(),b=this.stack[this.stack.length-1];(0,g.ok)("math"===b.type),b.meta=a},mathFlowValue:a,mathText:function(a){let b=this.resume(),c=this.stack[this.stack.length-1];(0,g.ok)("inlineMath"===c.type),this.exit(a),c.value=b,c.data.hChildren.push({type:"text",value:b})},mathTextData:a}};function a(a){this.config.enter.data.call(this,a),this.config.exit.data.call(this,a)}}()),h.push(function(a){let b=(a||{}).singleDollarTextMath;return null==b&&(b=!0),c.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:b?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(a,b,c,d){let e=a.value||"",f=c.createTracker(d),g="$".repeat(Math.max((0,Z.D)(e,"$")+1,2)),h=c.enter("mathFlow"),i=f.move(g);if(a.meta){let b=c.enter("mathFlowMeta");i+=f.move(c.safe(a.meta,{after:"\n",before:i,encode:["$"],...f.current()})),b()}return i+=f.move("\n"),e&&(i+=f.move(e+"\n")),i+=f.move(g),h(),i},inlineMath:c}};function c(a,c,d){let e=a.value||"",f=1;for(!b&&f++;RegExp("(^|[^$])"+"\\$".repeat(f)+"([^$]|$)").test(e);)f++;let g="$".repeat(f);/[^ \r\n]/.test(e)&&(/^[ \r\n]/.test(e)&&/[ \r\n]$/.test(e)||/^\$|\$$/.test(e))&&(e=" "+e+" ");let h=-1;for(;++h<d.unsafe.length;){let a,b=d.unsafe[h];if(!b.atBreak)continue;let c=d.compilePattern(b);for(;a=c.exec(e);){let b=a.index;10===e.codePointAt(b)&&13===e.codePointAt(b-1)&&b--,e=e.slice(0,b)+" "+e.slice(a.index+1)}}return g+e+g}}(c))}c(43328);var ag=c(86470);let ah=a=>{let b=a.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,b,c)=>c?c.toUpperCase():b.toLowerCase());return b.charAt(0).toUpperCase()+b.slice(1)},ai=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim();var aj={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let ak=(0,f.forwardRef)(({color:a="currentColor",size:b=24,strokeWidth:c=2,absoluteStrokeWidth:d,className:e="",children:g,iconNode:h,...i},j)=>(0,f.createElement)("svg",{ref:j,...aj,width:b,height:b,stroke:a,strokeWidth:d?24*Number(c)/Number(b):c,className:ai("lucide",e),...!g&&!(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0})(i)&&{"aria-hidden":"true"},...i},[...h.map(([a,b])=>(0,f.createElement)(a,b)),...Array.isArray(g)?g:[g]])),al=(a,b)=>{let c=(0,f.forwardRef)(({className:c,...d},e)=>(0,f.createElement)(ak,{ref:e,iconNode:b,className:ai(`lucide-${ah(a).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${a}`,c),...d}));return c.displayName=ah(a),c},am=al("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),an=al("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),ao=al("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),ap=[{id:"abap",name:"ABAP",import:()=>c.e(1530).then(c.bind(c,1530))},{id:"actionscript-3",name:"ActionScript",import:()=>c.e(1331).then(c.bind(c,51331))},{id:"ada",name:"Ada",import:()=>c.e(3752).then(c.bind(c,83752))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5864)]).then(c.bind(c,25864))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(7876),c.e(5864),c.e(8742)]).then(c.bind(c,88742))},{id:"apache",name:"Apache Conf",import:()=>c.e(1618).then(c.bind(c,41618))},{id:"apex",name:"Apex",import:()=>c.e(5148).then(c.bind(c,85148))},{id:"apl",name:"APL",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(4456),c.e(8321)]).then(c.bind(c,8321))},{id:"applescript",name:"AppleScript",import:()=>c.e(7281).then(c.bind(c,77281))},{id:"ara",name:"Ara",import:()=>c.e(9594).then(c.bind(c,79594))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>c.e(413).then(c.bind(c,20413))},{id:"asm",name:"Assembly",import:()=>c.e(2949).then(c.bind(c,62949))},{id:"astro",name:"Astro",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(5237),c.e(7709),c.e(4605)]).then(c.bind(c,84605))},{id:"awk",name:"AWK",import:()=>c.e(8523).then(c.bind(c,8523))},{id:"ballerina",name:"Ballerina",import:()=>c.e(2512).then(c.bind(c,82512))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>c.e(8065).then(c.bind(c,38065))},{id:"beancount",name:"Beancount",import:()=>c.e(6171).then(c.bind(c,6171))},{id:"berry",name:"Berry",aliases:["be"],import:()=>c.e(7880).then(c.bind(c,37880))},{id:"bibtex",name:"BibTeX",import:()=>c.e(3322).then(c.bind(c,73322))},{id:"bicep",name:"Bicep",import:()=>c.e(4865).then(c.bind(c,14865))},{id:"blade",name:"Blade",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(4456),c.e(1812),c.e(1670)]).then(c.bind(c,61670))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>c.e(6567).then(c.bind(c,26567))},{id:"c",name:"C",import:()=>c.e(395).then(c.bind(c,50395))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>c.e(2529).then(c.bind(c,52529))},{id:"cairo",name:"Cairo",import:()=>Promise.all([c.e(5374),c.e(8860)]).then(c.bind(c,58860))},{id:"clarity",name:"Clarity",import:()=>c.e(7224).then(c.bind(c,7224))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>c.e(6968).then(c.bind(c,26968))},{id:"cmake",name:"CMake",import:()=>c.e(6733).then(c.bind(c,76733))},{id:"cobol",name:"COBOL",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(4456),c.e(9181)]).then(c.bind(c,19181))},{id:"codeowners",name:"CODEOWNERS",import:()=>c.e(4451).then(c.bind(c,24451))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>c.e(9480).then(c.bind(c,9480))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([c.e(7621),c.e(4484)]).then(c.bind(c,34484))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>c.e(6608).then(c.bind(c,6608))},{id:"coq",name:"Coq",import:()=>c.e(7303).then(c.bind(c,7303))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([c.e(1812),c.e(395),c.e(60)]).then(c.bind(c,20060))},{id:"crystal",name:"Crystal",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(1812),c.e(395),c.e(6903),c.e(4438)]).then(c.bind(c,64438))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>c.e(6077).then(c.bind(c,26077))},{id:"css",name:"CSS",import:()=>c.e(9349).then(c.bind(c,99349))},{id:"csv",name:"CSV",import:()=>c.e(3704).then(c.bind(c,3704))},{id:"cue",name:"CUE",import:()=>c.e(9217).then(c.bind(c,29217))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>c.e(7341).then(c.bind(c,77341))},{id:"d",name:"D",import:()=>c.e(7752).then(c.bind(c,27752))},{id:"dart",name:"Dart",import:()=>c.e(3303).then(c.bind(c,33303))},{id:"dax",name:"DAX",import:()=>c.e(5035).then(c.bind(c,15035))},{id:"desktop",name:"Desktop",import:()=>c.e(4488).then(c.bind(c,64488))},{id:"diff",name:"Diff",import:()=>c.e(1365).then(c.bind(c,91365))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>c.e(2076).then(c.bind(c,52076))},{id:"dotenv",name:"dotEnv",import:()=>c.e(5522).then(c.bind(c,85522))},{id:"dream-maker",name:"Dream Maker",import:()=>c.e(1146).then(c.bind(c,81146))},{id:"edge",name:"Edge",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(5619)]).then(c.bind(c,15619))},{id:"elixir",name:"Elixir",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5645)]).then(c.bind(c,65645))},{id:"elm",name:"Elm",import:()=>Promise.all([c.e(395),c.e(9448)]).then(c.bind(c,9448))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>c.e(8890).then(c.bind(c,98890))},{id:"erb",name:"ERB",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(4456),c.e(1812),c.e(395),c.e(6903),c.e(7709),c.e(8355),c.e(60),c.e(3967),c.e(320),c.e(5489)]).then(c.bind(c,95489))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([c.e(9375),c.e(4577)]).then(c.bind(c,24577))},{id:"fennel",name:"Fennel",import:()=>c.e(7968).then(c.bind(c,27968))},{id:"fish",name:"Fish",import:()=>c.e(4830).then(c.bind(c,74830))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>c.e(5782).then(c.bind(c,55782))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([c.e(5992),c.e(1250)]).then(c.bind(c,1250))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>c.e(5992).then(c.bind(c,25992))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([c.e(9375),c.e(5586)]).then(c.bind(c,75586))},{id:"gdresource",name:"GDResource",import:()=>c.e(7293).then(c.bind(c,7293))},{id:"gdscript",name:"GDScript",import:()=>c.e(4676).then(c.bind(c,64676))},{id:"gdshader",name:"GDShader",import:()=>c.e(1902).then(c.bind(c,1902))},{id:"genie",name:"Genie",import:()=>c.e(2400).then(c.bind(c,92400))},{id:"gherkin",name:"Gherkin",import:()=>c.e(2742).then(c.bind(c,72742))},{id:"git-commit",name:"Git Commit Message",import:()=>c.e(9598).then(c.bind(c,29598))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([c.e(6903),c.e(3001)]).then(c.bind(c,63001))},{id:"gleam",name:"Gleam",import:()=>c.e(4764).then(c.bind(c,24764))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(7531)]).then(c.bind(c,97531))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(6269)]).then(c.bind(c,16269))},{id:"glsl",name:"GLSL",import:()=>Promise.all([c.e(395),c.e(6700)]).then(c.bind(c,76700))},{id:"gnuplot",name:"Gnuplot",import:()=>c.e(81).then(c.bind(c,70081))},{id:"go",name:"Go",import:()=>c.e(1514).then(c.bind(c,41514))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([c.e(7621),c.e(5237),c.e(7709),c.e(8355),c.e(3967)]).then(c.bind(c,33967))},{id:"groovy",name:"Groovy",import:()=>c.e(8538).then(c.bind(c,38538))},{id:"hack",name:"Hack",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(1812),c.e(5867)]).then(c.bind(c,45867))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1246)]).then(c.bind(c,41246))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(8884)]).then(c.bind(c,58884))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>c.e(3880).then(c.bind(c,13880))},{id:"haxe",name:"Haxe",import:()=>c.e(8404).then(c.bind(c,78404))},{id:"hcl",name:"HashiCorp HCL",import:()=>c.e(3405).then(c.bind(c,43405))},{id:"hjson",name:"Hjson",import:()=>c.e(9378).then(c.bind(c,59378))},{id:"hlsl",name:"HLSL",import:()=>c.e(7237).then(c.bind(c,57237))},{id:"html",name:"HTML",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335)]).then(c.bind(c,81335))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(3667)]).then(c.bind(c,83667))},{id:"http",name:"HTTP",import:()=>Promise.all([c.e(7621),c.e(5237),c.e(4456),c.e(6903),c.e(7709),c.e(8355),c.e(3967),c.e(8048)]).then(c.bind(c,48048))},{id:"hxml",name:"HXML",import:()=>c.e(9547).then(c.bind(c,49547))},{id:"hy",name:"Hy",import:()=>c.e(705).then(c.bind(c,705))},{id:"imba",name:"Imba",import:()=>c.e(2149).then(c.bind(c,72149))},{id:"ini",name:"INI",aliases:["properties"],import:()=>c.e(1542).then(c.bind(c,1542))},{id:"java",name:"Java",import:()=>c.e(4456).then(c.bind(c,94456))},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>c.e(7621).then(c.bind(c,27621))},{id:"jinja",name:"Jinja",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(9839)]).then(c.bind(c,89839))},{id:"jison",name:"Jison",import:()=>Promise.all([c.e(7621),c.e(2005)]).then(c.bind(c,52005))},{id:"json",name:"JSON",import:()=>c.e(2854).then(c.bind(c,60473))},{id:"json5",name:"JSON5",import:()=>c.e(2515).then(c.bind(c,42515))},{id:"jsonc",name:"JSON with Comments",import:()=>c.e(4713).then(c.bind(c,94713))},{id:"jsonl",name:"JSON Lines",import:()=>c.e(1450).then(c.bind(c,1450))},{id:"jsonnet",name:"Jsonnet",import:()=>c.e(9567).then(c.bind(c,79567))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>c.e(6493).then(c.bind(c,86493))},{id:"jsx",name:"JSX",import:()=>c.e(8355).then(c.bind(c,68355))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([c.e(7621),c.e(1812),c.e(395),c.e(60),c.e(5374),c.e(5034),c.e(8227)]).then(c.bind(c,88227))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>c.e(4699).then(c.bind(c,34699))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>c.e(1580).then(c.bind(c,1580))},{id:"latex",name:"LaTeX",import:()=>Promise.all([c.e(5034),c.e(8584)]).then(c.bind(c,38584))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>c.e(6132).then(c.bind(c,46132))},{id:"less",name:"Less",import:()=>c.e(8275).then(c.bind(c,68275))},{id:"liquid",name:"Liquid",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(8832)]).then(c.bind(c,28832))},{id:"llvm",name:"LLVM IR",import:()=>c.e(1243).then(c.bind(c,21243))},{id:"log",name:"Log file",import:()=>c.e(402).then(c.bind(c,80402))},{id:"logo",name:"Logo",import:()=>c.e(1).then(c.bind(c,10001))},{id:"lua",name:"Lua",import:()=>Promise.all([c.e(395),c.e(1054)]).then(c.bind(c,71054))},{id:"luau",name:"Luau",import:()=>c.e(6875).then(c.bind(c,96875))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>c.e(7890).then(c.bind(c,47890))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>c.e(9375).then(c.bind(c,99375))},{id:"marko",name:"Marko",import:()=>Promise.all([c.e(9349),c.e(5237),c.e(7876),c.e(8275),c.e(8982)]).then(c.bind(c,6601))},{id:"matlab",name:"MATLAB",import:()=>c.e(8047).then(c.bind(c,18047))},{id:"mdc",name:"MDC",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(9375),c.e(258)]).then(c.bind(c,20258))},{id:"mdx",name:"MDX",import:()=>c.e(9189).then(c.bind(c,29189))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>c.e(9761).then(c.bind(c,19761))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>c.e(7021).then(c.bind(c,69402))},{id:"mojo",name:"Mojo",import:()=>c.e(7565).then(c.bind(c,27565))},{id:"move",name:"Move",import:()=>c.e(5495).then(c.bind(c,95495))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>c.e(6352).then(c.bind(c,66352))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>c.e(3523).then(c.bind(c,63523))},{id:"nginx",name:"Nginx",import:()=>Promise.all([c.e(395),c.e(7612)]).then(c.bind(c,97612))},{id:"nim",name:"Nim",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(4456),c.e(395),c.e(9375),c.e(2916)]).then(c.bind(c,72916))},{id:"nix",name:"Nix",import:()=>c.e(1513).then(c.bind(c,21513))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>c.e(5119).then(c.bind(c,85119))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>c.e(2141).then(c.bind(c,14522))},{id:"objective-cpp",name:"Objective-C++",import:()=>c.e(4133).then(c.bind(c,84133))},{id:"ocaml",name:"OCaml",import:()=>c.e(7708).then(c.bind(c,77708))},{id:"pascal",name:"Pascal",import:()=>c.e(1940).then(c.bind(c,1940))},{id:"perl",name:"Perl",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(4456),c.e(1812),c.e(6351)]).then(c.bind(c,96351))},{id:"php",name:"PHP",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(4456),c.e(1812),c.e(8212),c.e(7511)]).then(c.bind(c,78212))},{id:"plsql",name:"PL/SQL",import:()=>c.e(3536).then(c.bind(c,63536))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>c.e(1299).then(c.bind(c,21299))},{id:"polar",name:"Polar",import:()=>c.e(7056).then(c.bind(c,87056))},{id:"postcss",name:"PostCSS",import:()=>c.e(6779).then(c.bind(c,66779))},{id:"powerquery",name:"PowerQuery",import:()=>c.e(5197).then(c.bind(c,5197))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>c.e(2783).then(c.bind(c,42783))},{id:"prisma",name:"Prisma",import:()=>c.e(2292).then(c.bind(c,72292))},{id:"prolog",name:"Prolog",import:()=>c.e(3489).then(c.bind(c,33489))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>c.e(946).then(c.bind(c,40946))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(1120)]).then(c.bind(c,41120))},{id:"puppet",name:"Puppet",import:()=>c.e(98).then(c.bind(c,98))},{id:"purescript",name:"PureScript",import:()=>c.e(4207).then(c.bind(c,4207))},{id:"python",name:"Python",aliases:["py"],import:()=>c.e(5374).then(c.bind(c,35374))},{id:"qml",name:"QML",import:()=>Promise.all([c.e(7621),c.e(874)]).then(c.bind(c,50874))},{id:"qmldir",name:"QML Directory",import:()=>c.e(9855).then(c.bind(c,29855))},{id:"qss",name:"Qt Style Sheets",import:()=>c.e(4351).then(c.bind(c,14351))},{id:"r",name:"R",import:()=>c.e(5034).then(c.bind(c,85034))},{id:"racket",name:"Racket",import:()=>c.e(3794).then(c.bind(c,93794))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>c.e(2767).then(c.bind(c,32767))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(6077),c.e(7024)]).then(c.bind(c,87024))},{id:"reg",name:"Windows Registry Script",import:()=>c.e(2082).then(c.bind(c,42082))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>c.e(4271).then(c.bind(c,4271))},{id:"rel",name:"Rel",import:()=>c.e(485).then(c.bind(c,70485))},{id:"riscv",name:"RISC-V",import:()=>c.e(3697).then(c.bind(c,63697))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(4456),c.e(1812),c.e(395),c.e(6903),c.e(7709),c.e(8355),c.e(60),c.e(3967),c.e(5374),c.e(320),c.e(6575)]).then(c.bind(c,56575))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(4456),c.e(1812),c.e(395),c.e(6903),c.e(7709),c.e(8355),c.e(60),c.e(3967),c.e(320)]).then(c.bind(c,37939))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>c.e(3850).then(c.bind(c,13850))},{id:"sas",name:"SAS",import:()=>Promise.all([c.e(1812),c.e(3127)]).then(c.bind(c,53127))},{id:"sass",name:"Sass",import:()=>c.e(2510).then(c.bind(c,72510))},{id:"scala",name:"Scala",import:()=>c.e(2046).then(c.bind(c,92046))},{id:"scheme",name:"Scheme",import:()=>c.e(541).then(c.bind(c,30541))},{id:"scss",name:"SCSS",import:()=>Promise.all([c.e(9349),c.e(7876)]).then(c.bind(c,57876))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>c.e(4131).then(c.bind(c,84131))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>c.e(3155).then(c.bind(c,95536))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>c.e(6903).then(c.bind(c,36903))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([c.e(6903),c.e(2954)]).then(c.bind(c,32954))},{id:"smalltalk",name:"Smalltalk",import:()=>c.e(7411).then(c.bind(c,47411))},{id:"solidity",name:"Solidity",import:()=>c.e(819).then(c.bind(c,10819))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(3327)]).then(c.bind(c,93327))},{id:"sparql",name:"SPARQL",import:()=>c.e(6907).then(c.bind(c,56907))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>c.e(5997).then(c.bind(c,75997))},{id:"sql",name:"SQL",import:()=>c.e(1812).then(c.bind(c,81812))},{id:"ssh-config",name:"SSH Config",import:()=>c.e(1433).then(c.bind(c,91433))},{id:"stata",name:"Stata",import:()=>Promise.all([c.e(1812),c.e(5587)]).then(c.bind(c,5587))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>c.e(1686).then(c.bind(c,91686))},{id:"svelte",name:"Svelte",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(5237),c.e(1253)]).then(c.bind(c,1253))},{id:"swift",name:"Swift",import:()=>c.e(937).then(c.bind(c,53318))},{id:"system-verilog",name:"SystemVerilog",import:()=>c.e(3030).then(c.bind(c,3030))},{id:"systemd",name:"Systemd Units",import:()=>c.e(2473).then(c.bind(c,92473))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>c.e(5309).then(c.bind(c,85309))},{id:"tasl",name:"Tasl",import:()=>c.e(4364).then(c.bind(c,94364))},{id:"tcl",name:"Tcl",import:()=>c.e(5209).then(c.bind(c,45209))},{id:"templ",name:"Templ",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1514),c.e(8454)]).then(c.bind(c,8454))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>c.e(4608).then(c.bind(c,14608))},{id:"tex",name:"TeX",import:()=>Promise.all([c.e(5034),c.e(8527)]).then(c.bind(c,18527))},{id:"toml",name:"TOML",import:()=>c.e(2332).then(c.bind(c,12332))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(4456),c.e(1812),c.e(395),c.e(694)]).then(c.bind(c,60694))},{id:"tsv",name:"TSV",import:()=>c.e(3447).then(c.bind(c,13447))},{id:"tsx",name:"TSX",import:()=>c.e(7709).then(c.bind(c,17709))},{id:"turtle",name:"Turtle",import:()=>c.e(6130).then(c.bind(c,6130))},{id:"twig",name:"Twig",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(4456),c.e(1812),c.e(395),c.e(6903),c.e(7709),c.e(8355),c.e(60),c.e(3967),c.e(5374),c.e(7876),c.e(320),c.e(8212),c.e(631)]).then(c.bind(c,90631))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>c.e(5237).then(c.bind(c,45237))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>c.e(3457).then(c.bind(c,83457))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>c.e(8790).then(c.bind(c,78790))},{id:"v",name:"V",import:()=>c.e(3702).then(c.bind(c,53702))},{id:"vala",name:"Vala",import:()=>c.e(5274).then(c.bind(c,55274))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>c.e(1840).then(c.bind(c,19459))},{id:"verilog",name:"Verilog",import:()=>c.e(2518).then(c.bind(c,32518))},{id:"vhdl",name:"VHDL",import:()=>c.e(3654).then(c.bind(c,3654))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>c.e(7140).then(c.bind(c,97140))},{id:"vue",name:"Vue",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(8727)]).then(c.bind(c,18727))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(8727),c.e(5658)]).then(c.bind(c,85658))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([c.e(7621),c.e(9349),c.e(1335),c.e(5237),c.e(7876),c.e(8275),c.e(8727),c.e(1686),c.e(2153)]).then(c.bind(c,92153))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>c.e(6100).then(c.bind(c,66100))},{id:"wasm",name:"WebAssembly",import:()=>c.e(5720).then(c.bind(c,45720))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>c.e(4826).then(c.bind(c,34826))},{id:"wgsl",name:"WGSL",import:()=>c.e(7535).then(c.bind(c,67535))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>c.e(1361).then(c.bind(c,71361))},{id:"wit",name:"WebAssembly Interface Types",import:()=>c.e(7272).then(c.bind(c,37272))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>c.e(6884).then(c.bind(c,26884))},{id:"xml",name:"XML",import:()=>Promise.all([c.e(4456),c.e(9892)]).then(c.bind(c,29892))},{id:"xsl",name:"XSL",import:()=>Promise.all([c.e(4456),c.e(5517)]).then(c.bind(c,25517))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>c.e(6829).then(c.bind(c,36829))},{id:"zenscript",name:"ZenScript",import:()=>c.e(6310).then(c.bind(c,3929))},{id:"zig",name:"Zig",import:()=>c.e(1766).then(c.bind(c,21766))}],aq=Object.fromEntries(ap.map(a=>[a.id,a.import])),ar=Object.fromEntries(ap.flatMap(a=>a.aliases?.map(b=>[b,a.import])||[])),as={...aq,...ar};class at extends Error{constructor(a){super(a),this.name="ShikiError"}}function au(a,...b){return b.forEach(b=>{for(let c in b)a[c]=b[c]}),a}var av=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,aw=class{static hasCaptures(a){return null!==a&&(av.lastIndex=0,av.test(a))}static replaceCaptures(a,b,c){return a.replace(av,(a,d,e,f)=>{let g=c[parseInt(d||e,10)];if(!g)return a;{let a=b.substring(g.start,g.end);for(;"."===a[0];)a=a.substring(1);switch(f){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}})}};function ax(a,b){if(null===a&&null===b)return 0;if(!a)return -1;if(!b)return 1;let c=a.length,d=b.length;if(c===d){for(let d=0;d<c;d++){var e,f;let c=(e=a[d],e<(f=b[d])?-1:+(e>f));if(0!==c)return c}return 0}return c-d}function ay(a){return!!(/^#[0-9a-f]{6}$/i.test(a)||/^#[0-9a-f]{8}$/i.test(a)||/^#[0-9a-f]{3}$/i.test(a)||/^#[0-9a-f]{4}$/i.test(a))}function az(a){return a.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var aA=class{constructor(a){this.fn=a}cache=new Map;get(a){if(this.cache.has(a))return this.cache.get(a);let b=this.fn(a);return this.cache.set(a,b),b}},aB=class{constructor(a,b,c){this._colorMap=a,this._defaults=b,this._root=c}static createFromRawTheme(a,b){return this.createFromParsedTheme(function(a){if(!a||!a.settings||!Array.isArray(a.settings))return[];let b=a.settings,c=[],d=0;for(let a=0,e=b.length;a<e;a++){let e,f=b[a];if(!f.settings)continue;if("string"==typeof f.scope){let a=f.scope;e=(a=(a=a.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else e=Array.isArray(f.scope)?f.scope:[""];let g=-1;if("string"==typeof f.settings.fontStyle){g=0;let a=f.settings.fontStyle.split(" ");for(let b=0,c=a.length;b<c;b++)switch(a[b]){case"italic":g|=1;break;case"bold":g|=2;break;case"underline":g|=4;break;case"strikethrough":g|=8}}let h=null;"string"==typeof f.settings.foreground&&ay(f.settings.foreground)&&(h=f.settings.foreground);let i=null;"string"==typeof f.settings.background&&ay(f.settings.background)&&(i=f.settings.background);for(let b=0,f=e.length;b<f;b++){let f=e[b].trim().split(" "),j=f[f.length-1],k=null;f.length>1&&(k=f.slice(0,f.length-1)).reverse(),c[d++]=new aE(j,k,a,g,h,i)}}return c}(a),b)}static createFromParsedTheme(a,b){return function(a,b){a.sort((a,b)=>{var c,d;let e=(c=a.scope,c<(d=b.scope)?-1:+(c>d));return 0!==e||0!==(e=ax(a.parentScopes,b.parentScopes))?e:a.index-b.index});let c=0,d="#000000",e="#ffffff";for(;a.length>=1&&""===a[0].scope;){let b=a.shift();-1!==b.fontStyle&&(c=b.fontStyle),null!==b.foreground&&(d=b.foreground),null!==b.background&&(e=b.background)}let f=new aG(b),g=new aD(c,f.getId(d),f.getId(e)),h=new aJ(new aI(0,null,-1,0,0),[]);for(let b=0,c=a.length;b<c;b++){let c=a[b];h.insert(0,c.scope,c.parentScopes,c.fontStyle,f.getId(c.foreground),f.getId(c.background))}return new aB(f,g,h)}(a,b)}_cachedMatchRoot=new aA(a=>this._root.match(a));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(a){if(null===a)return this._defaults;let b=a.scopeName,c=this._cachedMatchRoot.get(b).find(b=>(function(a,b){if(0===b.length)return!0;for(let e=0;e<b.length;e++){var c,d;let f=b[e],g=!1;if(">"===f){if(e===b.length-1)return!1;f=b[++e],g=!0}for(;a&&(c=a.scopeName,!((d=f)===c||c.startsWith(d)&&"."===c[d.length]));){if(g)return!1;a=a.parent}if(!a)return!1;a=a.parent}return!0})(a.parent,b.parentScopes));return c?new aD(c.fontStyle,c.foreground,c.background):null}},aC=class a{constructor(a,b){this.parent=a,this.scopeName=b}static push(b,c){for(let d of c)b=new a(b,d);return b}static from(...b){let c=null;for(let d=0;d<b.length;d++)c=new a(c,b[d]);return c}push(b){return new a(this,b)}getSegments(){let a=this,b=[];for(;a;)b.push(a.scopeName),a=a.parent;return b.reverse(),b}toString(){return this.getSegments().join(" ")}extends(a){return this===a||null!==this.parent&&this.parent.extends(a)}getExtensionIfDefined(a){let b=[],c=this;for(;c&&c!==a;)b.push(c.scopeName),c=c.parent;return c===a?b.reverse():void 0}},aD=class{constructor(a,b,c){this.fontStyle=a,this.foregroundId=b,this.backgroundId=c}},aE=class{constructor(a,b,c,d,e,f){this.scope=a,this.parentScopes=b,this.index=c,this.fontStyle=d,this.foreground=e,this.background=f}},aF=(a=>(a[a.NotSet=-1]="NotSet",a[a.None=0]="None",a[a.Italic=1]="Italic",a[a.Bold=2]="Bold",a[a.Underline=4]="Underline",a[a.Strikethrough=8]="Strikethrough",a))(aF||{}),aG=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(a){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(a)){this._isFrozen=!0;for(let b=0,c=a.length;b<c;b++)this._color2id[a[b]]=b,this._id2color[b]=a[b]}else this._isFrozen=!1}getId(a){if(null===a)return 0;a=a.toUpperCase();let b=this._color2id[a];if(b)return b;if(this._isFrozen)throw Error(`Missing color in color map - ${a}`);return b=++this._lastColorId,this._color2id[a]=b,this._id2color[b]=a,b}getColorMap(){return this._id2color.slice(0)}},aH=Object.freeze([]),aI=class a{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(a,b,c,d,e){this.scopeDepth=a,this.parentScopes=b||aH,this.fontStyle=c,this.foreground=d,this.background=e}clone(){return new a(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(a){let b=[];for(let c=0,d=a.length;c<d;c++)b[c]=a[c].clone();return b}acceptOverwrite(a,b,c,d){this.scopeDepth>a?console.log("how did this happen?"):this.scopeDepth=a,-1!==b&&(this.fontStyle=b),0!==c&&(this.foreground=c),0!==d&&(this.background=d)}},aJ=class a{constructor(a,b=[],c={}){this._mainRule=a,this._children=c,this._rulesWithParentScopes=b}_rulesWithParentScopes;static _cmpBySpecificity(a,b){if(a.scopeDepth!==b.scopeDepth)return b.scopeDepth-a.scopeDepth;let c=0,d=0;for(;">"===a.parentScopes[c]&&c++,">"===b.parentScopes[d]&&d++,!(c>=a.parentScopes.length)&&!(d>=b.parentScopes.length);){let e=b.parentScopes[d].length-a.parentScopes[c].length;if(0!==e)return e;c++,d++}return b.parentScopes.length-a.parentScopes.length}match(b){if(""!==b){let a,c,d=b.indexOf(".");if(-1===d?(a=b,c=""):(a=b.substring(0,d),c=b.substring(d+1)),this._children.hasOwnProperty(a))return this._children[a].match(c)}let c=this._rulesWithParentScopes.concat(this._mainRule);return c.sort(a._cmpBySpecificity),c}insert(b,c,d,e,f,g){let h,i,j;if(""===c)return void this._doInsertHere(b,d,e,f,g);let k=c.indexOf(".");-1===k?(h=c,i=""):(h=c.substring(0,k),i=c.substring(k+1)),this._children.hasOwnProperty(h)?j=this._children[h]:(j=new a(this._mainRule.clone(),aI.cloneArr(this._rulesWithParentScopes)),this._children[h]=j),j.insert(b+1,i,d,e,f,g)}_doInsertHere(a,b,c,d,e){if(null===b)return void this._mainRule.acceptOverwrite(a,c,d,e);for(let f=0,g=this._rulesWithParentScopes.length;f<g;f++){let g=this._rulesWithParentScopes[f];if(0===ax(g.parentScopes,b))return void g.acceptOverwrite(a,c,d,e)}-1===c&&(c=this._mainRule.fontStyle),0===d&&(d=this._mainRule.foreground),0===e&&(e=this._mainRule.background),this._rulesWithParentScopes.push(new aI(a,b,c,d,e))}},aK=class a{static toBinaryStr(a){return a.toString(2).padStart(32,"0")}static print(b){let c=a.getLanguageId(b),d=a.getTokenType(b),e=a.getFontStyle(b);console.log({languageId:c,tokenType:d,fontStyle:e,foreground:a.getForeground(b),background:a.getBackground(b)})}static getLanguageId(a){return(255&a)>>>0}static getTokenType(a){return(768&a)>>>8}static containsBalancedBrackets(a){return(1024&a)!=0}static getFontStyle(a){return(30720&a)>>>11}static getForeground(a){return(0xff8000&a)>>>15}static getBackground(a){return(0xff000000&a)>>>24}static set(b,c,d,e,f,g,h){let i=a.getLanguageId(b),j=a.getTokenType(b),k=+!!a.containsBalancedBrackets(b),l=a.getFontStyle(b),m=a.getForeground(b),n=a.getBackground(b);return 0!==c&&(i=c),8!==d&&(j=d),null!==e&&(k=+!!e),-1!==f&&(l=f),0!==g&&(m=g),0!==h&&(n=h),(0|i|j<<8|k<<10|l<<11|m<<15|n<<24)>>>0}};function aL(a,b){var c;let d,e,f=[],g=(c=a,e=(d=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(c),{next:()=>{if(!e)return null;let a=e[0];return e=d.exec(c),a}}),h=g.next();for(;null!==h;){let a=0;if(2===h.length&&":"===h.charAt(1)){switch(h.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${h} in scope selector`)}h=g.next()}let b=j();if(f.push({matcher:b,priority:a}),","!==h)break;h=g.next()}return f;function i(){if("-"===h){h=g.next();let a=i();return b=>!!a&&!a(b)}if("("===h){h=g.next();let a=function(){let a=[],b=j();for(;b&&(a.push(b),"|"===h||","===h);){do h=g.next();while("|"===h||","===h);b=j()}return b=>a.some(a=>a(b))}();return")"===h&&(h=g.next()),a}if(aM(h)){let a=[];do a.push(h),h=g.next();while(aM(h));return c=>b(a,c)}return null}function j(){let a=[],b=i();for(;b;)a.push(b),b=i();return b=>a.every(a=>a(b))}}function aM(a){return!!a&&!!a.match(/[\w\.:]+/)}var aN=(a=>(a[a.None=0]="None",a[a.NotBeginString=1]="NotBeginString",a[a.NotEndString=2]="NotEndString",a[a.NotBeginPosition=4]="NotBeginPosition",a[a.DebugCall=8]="DebugCall",a))(aN||{});function aO(a){"function"==typeof a.dispose&&a.dispose()}var aP=class{constructor(a){this.scopeName=a}toKey(){return this.scopeName}},aQ=class{constructor(a,b){this.scopeName=a,this.ruleName=b}toKey(){return`${this.scopeName}#${this.ruleName}`}},aR=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(a){let b=a.toKey();this._seenReferenceKeys.has(b)||(this._seenReferenceKeys.add(b),this._references.push(a))}},aS=class{constructor(a,b){this.repo=a,this.initialScopeName=b,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new aP(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let a=this.Q;this.Q=[];let b=new aR;for(let c of a)!function(a,b,c,d){let e=c.lookup(a.scopeName);if(!e){if(a.scopeName===b)throw Error(`No grammar provided for <${b}>`);return}let f=c.lookup(b);a instanceof aP?aU({baseGrammar:f,selfGrammar:e},d):aT(a.ruleName,{baseGrammar:f,selfGrammar:e,repository:e.repository},d);let g=c.injections(a.scopeName);if(g)for(let a of g)d.add(new aP(a))}(c,this.initialScopeName,this.repo,b);for(let a of b.references)if(a instanceof aP){if(this.seenFullScopeRequests.has(a.scopeName))continue;this.seenFullScopeRequests.add(a.scopeName),this.Q.push(a)}else{if(this.seenFullScopeRequests.has(a.scopeName)||this.seenPartialScopeRequests.has(a.toKey()))continue;this.seenPartialScopeRequests.add(a.toKey()),this.Q.push(a)}}};function aT(a,b,c){b.repository&&b.repository[a]&&aV([b.repository[a]],b,c)}function aU(a,b){a.selfGrammar.patterns&&Array.isArray(a.selfGrammar.patterns)&&aV(a.selfGrammar.patterns,{...a,repository:a.selfGrammar.repository},b),a.selfGrammar.injections&&aV(Object.values(a.selfGrammar.injections),{...a,repository:a.selfGrammar.repository},b)}function aV(a,b,c){for(let d of a){if(c.visitedRule.has(d))continue;c.visitedRule.add(d);let a=d.repository?au({},b.repository,d.repository):b.repository;Array.isArray(d.patterns)&&aV(d.patterns,{...b,repository:a},c);let e=d.include;if(!e)continue;let f=a_(e);switch(f.kind){case 0:aU({...b,selfGrammar:b.baseGrammar},c);break;case 1:aU(b,c);break;case 2:aT(f.ruleName,{...b,repository:a},c);break;case 3:case 4:let g=f.scopeName===b.selfGrammar.scopeName?b.selfGrammar:f.scopeName===b.baseGrammar.scopeName?b.baseGrammar:void 0;if(g){let d={baseGrammar:b.baseGrammar,selfGrammar:g,repository:a};4===f.kind?aT(f.ruleName,d,c):aU(d,c)}else 4===f.kind?c.add(new aQ(f.scopeName,f.ruleName)):c.add(new aP(f.scopeName))}}}var aW=class{kind=0},aX=class{kind=1},aY=class{constructor(a){this.ruleName=a}kind=2},aZ=class{constructor(a){this.scopeName=a}kind=3},a$=class{constructor(a,b){this.scopeName=a,this.ruleName=b}kind=4};function a_(a){if("$base"===a)return new aW;if("$self"===a)return new aX;let b=a.indexOf("#");return -1===b?new aZ(a):0===b?new aY(a.substring(1)):new a$(a.substring(0,b),a.substring(b+1))}var a0=/\\(\d+)/,a1=/\\(\d+)/g;Symbol("RuleId");var a2=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(a,b,c,d){this.$location=a,this.id=b,this._name=c||null,this._nameIsCapturing=aw.hasCaptures(this._name),this._contentName=d||null,this._contentNameIsCapturing=aw.hasCaptures(this._contentName)}get debugName(){let a=this.$location?`${function a(b){let c=~b.lastIndexOf("/")||~b.lastIndexOf("\\");return 0===c?b:~c==b.length-1?a(b.substring(0,b.length-1)):b.substr(~c+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${a}`}getName(a,b){return this._nameIsCapturing&&null!==this._name&&null!==a&&null!==b?aw.replaceCaptures(this._name,a,b):this._name}getContentName(a,b){return this._contentNameIsCapturing&&null!==this._contentName?aw.replaceCaptures(this._contentName,a,b):this._contentName}},a3=class extends a2{retokenizeCapturedWithRuleId;constructor(a,b,c,d,e){super(a,b,c,d),this.retokenizeCapturedWithRuleId=e}dispose(){}collectPatterns(a,b){throw Error("Not supported!")}compile(a,b){throw Error("Not supported!")}compileAG(a,b,c,d){throw Error("Not supported!")}},a4=class extends a2{_match;captures;_cachedCompiledPatterns;constructor(a,b,c,d,e){super(a,b,c,null),this._match=new a9(d,this.id),this.captures=e,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(a,b){b.push(this._match)}compile(a,b){return this._getCachedCompiledPatterns(a).compile(a)}compileAG(a,b,c,d){return this._getCachedCompiledPatterns(a).compileAG(a,c,d)}_getCachedCompiledPatterns(a){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ba,this.collectPatterns(a,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},a5=class extends a2{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(a,b,c,d,e){super(a,b,c,d),this.patterns=e.patterns,this.hasMissingPatterns=e.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(a,b){for(let c of this.patterns)a.getRule(c).collectPatterns(a,b)}compile(a,b){return this._getCachedCompiledPatterns(a).compile(a)}compileAG(a,b,c,d){return this._getCachedCompiledPatterns(a).compileAG(a,c,d)}_getCachedCompiledPatterns(a){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ba,this.collectPatterns(a,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},a6=class extends a2{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(a,b,c,d,e,f,g,h,i,j){super(a,b,c,d),this._begin=new a9(e,this.id),this.beginCaptures=f,this._end=new a9(g||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=h,this.applyEndPatternLast=i||!1,this.patterns=j.patterns,this.hasMissingPatterns=j.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(a,b){return this._end.resolveBackReferences(a,b)}collectPatterns(a,b){b.push(this._begin)}compile(a,b){return this._getCachedCompiledPatterns(a,b).compile(a)}compileAG(a,b,c,d){return this._getCachedCompiledPatterns(a,b).compileAG(a,c,d)}_getCachedCompiledPatterns(a,b){if(!this._cachedCompiledPatterns){for(let b of(this._cachedCompiledPatterns=new ba,this.patterns))a.getRule(b).collectPatterns(a,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,b):this._cachedCompiledPatterns.setSource(0,b)),this._cachedCompiledPatterns}},a7=class extends a2{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(a,b,c,d,e,f,g,h,i){super(a,b,c,d),this._begin=new a9(e,this.id),this.beginCaptures=f,this.whileCaptures=h,this._while=new a9(g,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(a,b){return this._while.resolveBackReferences(a,b)}collectPatterns(a,b){b.push(this._begin)}compile(a,b){return this._getCachedCompiledPatterns(a).compile(a)}compileAG(a,b,c,d){return this._getCachedCompiledPatterns(a).compileAG(a,c,d)}_getCachedCompiledPatterns(a){if(!this._cachedCompiledPatterns)for(let b of(this._cachedCompiledPatterns=new ba,this.patterns))a.getRule(b).collectPatterns(a,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(a,b){return this._getCachedCompiledWhilePatterns(a,b).compile(a)}compileWhileAG(a,b,c,d){return this._getCachedCompiledWhilePatterns(a,b).compileAG(a,c,d)}_getCachedCompiledWhilePatterns(a,b){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ba,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,b||""),this._cachedCompiledWhilePatterns}},a8=class a{static createCaptureRule(a,b,c,d,e){return a.registerRule(a=>new a3(b,a,c,d,e))}static getCompiledRuleId(b,c,d){return b.id||c.registerRule(e=>{if(b.id=e,b.match)return new a4(b.$vscodeTextmateLocation,b.id,b.name,b.match,a._compileCaptures(b.captures,c,d));if(void 0===b.begin){b.repository&&(d=au({},d,b.repository));let e=b.patterns;return void 0===e&&b.include&&(e=[{include:b.include}]),new a5(b.$vscodeTextmateLocation,b.id,b.name,b.contentName,a._compilePatterns(e,c,d))}return b.while?new a7(b.$vscodeTextmateLocation,b.id,b.name,b.contentName,b.begin,a._compileCaptures(b.beginCaptures||b.captures,c,d),b.while,a._compileCaptures(b.whileCaptures||b.captures,c,d),a._compilePatterns(b.patterns,c,d)):new a6(b.$vscodeTextmateLocation,b.id,b.name,b.contentName,b.begin,a._compileCaptures(b.beginCaptures||b.captures,c,d),b.end,a._compileCaptures(b.endCaptures||b.captures,c,d),b.applyEndPatternLast,a._compilePatterns(b.patterns,c,d))}),b.id}static _compileCaptures(b,c,d){let e=[];if(b){let f=0;for(let a in b){if("$vscodeTextmateLocation"===a)continue;let b=parseInt(a,10);b>f&&(f=b)}for(let a=0;a<=f;a++)e[a]=null;for(let f in b){if("$vscodeTextmateLocation"===f)continue;let g=parseInt(f,10),h=0;b[f].patterns&&(h=a.getCompiledRuleId(b[f],c,d)),e[g]=a.createCaptureRule(c,b[f].$vscodeTextmateLocation,b[f].name,b[f].contentName,h)}}return e}static _compilePatterns(b,c,d){let e=[];if(b)for(let f=0,g=b.length;f<g;f++){let g=b[f],h=-1;if(g.include){let b=a_(g.include);switch(b.kind){case 0:case 1:h=a.getCompiledRuleId(d[g.include],c,d);break;case 2:let e=d[b.ruleName];e&&(h=a.getCompiledRuleId(e,c,d));break;case 3:case 4:let f=b.scopeName,i=4===b.kind?b.ruleName:null,j=c.getExternalGrammar(f,d);if(j)if(i){let b=j.repository[i];b&&(h=a.getCompiledRuleId(b,c,j.repository))}else h=a.getCompiledRuleId(j.repository.$self,c,j.repository)}}else h=a.getCompiledRuleId(g,c,d);if(-1!==h){let a=c.getRule(h),b=!1;if((a instanceof a5||a instanceof a6||a instanceof a7)&&a.hasMissingPatterns&&0===a.patterns.length&&(b=!0),b)continue;e.push(h)}}return{patterns:e,hasMissingPatterns:(b?b.length:0)!==e.length}}},a9=class a{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(a,b){if(a&&"string"==typeof a){let b=a.length,c=0,d=[],e=!1;for(let f=0;f<b;f++)if("\\"===a.charAt(f)&&f+1<b){let b=a.charAt(f+1);"z"===b?(d.push(a.substring(c,f)),d.push("$(?!\\n)(?<!\\n)"),c=f+2):("A"===b||"G"===b)&&(e=!0),f++}this.hasAnchor=e,0===c?this.source=a:(d.push(a.substring(c,b)),this.source=d.join(""))}else this.hasAnchor=!1,this.source=a;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=b,"string"==typeof this.source?this.hasBackReferences=a0.test(this.source):this.hasBackReferences=!1}clone(){return new a(this.source,this.ruleId)}setSource(a){this.source!==a&&(this.source=a,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(a,b){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let c=b.map(b=>a.substring(b.start,b.end));return a1.lastIndex=0,this.source.replace(a1,(a,b)=>az(c[parseInt(b,10)]||""))}_buildAnchorCache(){let a,b,c,d;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let e=[],f=[],g=[],h=[];for(a=0,b=this.source.length;a<b;a++)c=this.source.charAt(a),e[a]=c,f[a]=c,g[a]=c,h[a]=c,"\\"===c&&a+1<b&&("A"===(d=this.source.charAt(a+1))?(e[a+1]="",f[a+1]="",g[a+1]="A",h[a+1]="A"):"G"===d?(e[a+1]="",f[a+1]="G",g[a+1]="",h[a+1]="G"):(e[a+1]=d,f[a+1]=d,g[a+1]=d,h[a+1]=d),a++);return{A0_G0:e.join(""),A0_G1:f.join(""),A1_G0:g.join(""),A1_G1:h.join("")}}resolveAnchors(a,b){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(a)if(b)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return b?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ba=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(a){this._items.push(a),this._hasAnchors=this._hasAnchors||a.hasAnchor}unshift(a){this._items.unshift(a),this._hasAnchors=this._hasAnchors||a.hasAnchor}length(){return this._items.length}setSource(a,b){this._items[a].source!==b&&(this._disposeCaches(),this._items[a].setSource(b))}compile(a){if(!this._cached){let b=this._items.map(a=>a.source);this._cached=new bb(a,b,this._items.map(a=>a.ruleId))}return this._cached}compileAG(a,b,c){if(!this._hasAnchors)return this.compile(a);if(b)if(c)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(a,b,c)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(a,b,c)),this._anchorCache.A1_G0;return c?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(a,b,c)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(a,b,c)),this._anchorCache.A0_G0)}_resolveAnchors(a,b,c){return new bb(a,this._items.map(a=>a.resolveAnchors(b,c)),this._items.map(a=>a.ruleId))}},bb=class{constructor(a,b,c){this.regExps=b,this.rules=c,this.scanner=a.createOnigScanner(b)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let a=[];for(let b=0,c=this.rules.length;b<c;b++)a.push(" - "+this.rules[b]+": "+this.regExps[b]);return a.join("\n")}findNextMatchSync(a,b,c){let d=this.scanner.findNextMatchSync(a,b,c);return d?{ruleId:this.rules[d.index],captureIndices:d.captureIndices}:null}},bc=class{constructor(a,b){this.languageId=a,this.tokenType=b}},bd=class a{_defaultAttributes;_embeddedLanguagesMatcher;constructor(a,b){this._defaultAttributes=new bc(a,8),this._embeddedLanguagesMatcher=new be(Object.entries(b||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(b){return null===b?a._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(b)}static _NULL_SCOPE_METADATA=new bc(0,0);_getBasicScopeAttributes=new aA(a=>new bc(this._scopeToLanguage(a),this._toStandardTokenType(a)));_scopeToLanguage(a){return this._embeddedLanguagesMatcher.match(a)||0}_toStandardTokenType(b){let c=b.match(a.STANDARD_TOKEN_TYPE_REGEXP);if(!c)return 8;switch(c[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},be=class{values;scopesRegExp;constructor(a){if(0===a.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(a);let b=a.map(([a,b])=>az(a));b.sort(),b.reverse(),this.scopesRegExp=RegExp(`^((${b.join(")|(")}))($|\\.)`,"")}}match(a){if(!this.scopesRegExp)return;let b=a.match(this.scopesRegExp);if(b)return this.values.get(b[1])}};"undefined"!=typeof process&&process.env.VSCODE_TEXTMATE_DEBUG;var bf=class{constructor(a,b){this.stack=a,this.stoppedEarly=b}};function bg(a,b,c,d,e,f,g,h){let i=b.content.length,j=!1,k=-1;if(g){let g=function(a,b,c,d,e,f){let g=e.beginRuleCapturedEOL?0:-1,h=[];for(let b=e;b;b=b.pop()){let c=b.getRule(a);c instanceof a7&&h.push({rule:c,stack:b})}for(let n=h.pop();n;n=h.pop()){var i,j,k,l,m;let{ruleScanner:h,findOptions:o}=(i=n.rule,j=a,k=n.stack.endRule,l=c,m=d===g,{ruleScanner:i.compileWhileAG(j,k,l,m),findOptions:0}),p=h.findNextMatchSync(b,d,o);if(p){if(-2!==p.ruleId){e=n.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(f.produce(n.stack,p.captureIndices[0].start),bi(a,b,c,n.stack,f,n.rule.whileCaptures,p.captureIndices),f.produce(n.stack,p.captureIndices[0].end),g=p.captureIndices[0].end,p.captureIndices[0].end>d&&(d=p.captureIndices[0].end,c=!1))}else{e=n.stack.pop();break}}return{stack:e,linePos:d,anchorPosition:g,isFirstLine:c}}(a,b,c,d,e,f);e=g.stack,d=g.linePos,c=g.isFirstLine,k=g.anchorPosition}let l=Date.now();for(;!j;){if(0!==h&&Date.now()-l>h)return new bf(e,!0);!function(){let g=function(a,b,c,d,e,f){let g=function(a,b,c,d,e,f){let{ruleScanner:g,findOptions:h}=bh(e.getRule(a),a,e.endRule,c,d===f),i=g.findNextMatchSync(b,d,h);return i?{captureIndices:i.captureIndices,matchedRuleId:i.ruleId}:null}(a,b,c,d,e,f),h=a.getInjections();if(0===h.length)return g;let i=function(a,b,c,d,e,f,g){let h,i=Number.MAX_VALUE,j=null,k=0,l=f.contentNameScopesList.getScopeNames();for(let f=0,m=a.length;f<m;f++){let m=a[f];if(!m.matcher(l))continue;let{ruleScanner:n,findOptions:o}=bh(b.getRule(m.ruleId),b,null,d,e===g),p=n.findNextMatchSync(c,e,o);if(!p)continue;let q=p.captureIndices[0].start;if(!(q>=i)&&(i=q,j=p.captureIndices,h=p.ruleId,k=m.priority,i===e))break}return j?{priorityMatch:-1===k,captureIndices:j,matchedRuleId:h}:null}(h,a,b,c,d,e,f);if(!i)return g;if(!g)return i;let j=g.captureIndices[0].start,k=i.captureIndices[0].start;return k<j||i.priorityMatch&&k===j?i:g}(a,b,c,d,e,k);if(!g){f.produce(e,i),j=!0;return}let h=g.captureIndices,l=g.matchedRuleId,m=!!h&&h.length>0&&h[0].end>d;if(-1===l){let g=e.getRule(a);f.produce(e,h[0].start),e=e.withContentNameScopesList(e.nameScopesList),bi(a,b,c,e,f,g.endCaptures,h),f.produce(e,h[0].end);let l=e;if(e=e.parent,k=l.getAnchorPos(),!m&&l.getEnterPos()===d){e=l,f.produce(e,i),j=!0;return}}else{let g=a.getRule(l);f.produce(e,h[0].start);let n=e,o=g.getName(b.content,h),p=e.contentNameScopesList.pushAttributed(o,a);if(e=e.push(l,d,k,h[0].end===i,null,p,p),g instanceof a6){bi(a,b,c,e,f,g.beginCaptures,h),f.produce(e,h[0].end),k=h[0].end;let d=g.getContentName(b.content,h),l=p.pushAttributed(d,a);if(e=e.withContentNameScopesList(l),g.endHasBackReferences&&(e=e.withEndRule(g.getEndWithResolvedBackReferences(b.content,h))),!m&&n.hasSameRuleAs(e)){e=e.pop(),f.produce(e,i),j=!0;return}}else if(g instanceof a7){bi(a,b,c,e,f,g.beginCaptures,h),f.produce(e,h[0].end),k=h[0].end;let d=g.getContentName(b.content,h),l=p.pushAttributed(d,a);if(e=e.withContentNameScopesList(l),g.whileHasBackReferences&&(e=e.withEndRule(g.getWhileWithResolvedBackReferences(b.content,h))),!m&&n.hasSameRuleAs(e)){e=e.pop(),f.produce(e,i),j=!0;return}}else if(bi(a,b,c,e,f,g.captures,h),f.produce(e,h[0].end),e=e.pop(),!m){e=e.safePop(),f.produce(e,i),j=!0;return}}h[0].end>d&&(d=h[0].end,c=!1)}()}return new bf(e,!1)}function bh(a,b,c,d,e){return{ruleScanner:a.compileAG(b,c,d,e),findOptions:0}}function bi(a,b,c,d,e,f,g){if(0===f.length)return;let h=b.content,i=Math.min(f.length,g.length),j=[],k=g[0].end;for(let b=0;b<i;b++){let i=f[b];if(null===i)continue;let l=g[b];if(0===l.length)continue;if(l.start>k)break;for(;j.length>0&&j[j.length-1].endPos<=l.start;)e.produceFromScopes(j[j.length-1].scopes,j[j.length-1].endPos),j.pop();if(j.length>0?e.produceFromScopes(j[j.length-1].scopes,l.start):e.produce(d,l.start),i.retokenizeCapturedWithRuleId){let b=i.getName(h,g),f=d.contentNameScopesList.pushAttributed(b,a),j=i.getContentName(h,g),k=f.pushAttributed(j,a),m=d.push(i.retokenizeCapturedWithRuleId,l.start,-1,!1,null,f,k),n=a.createOnigString(h.substring(0,l.end));bg(a,n,c&&0===l.start,l.start,m,e,!1,0),aO(n);continue}let m=i.getName(h,g);if(null!==m){let b=(j.length>0?j[j.length-1].scopes:d.contentNameScopesList).pushAttributed(m,a);j.push(new bj(b,l.end))}}for(;j.length>0;)e.produceFromScopes(j[j.length-1].scopes,j[j.length-1].endPos),j.pop()}var bj=class{scopes;endPos;constructor(a,b){this.scopes=a,this.endPos=b}};function bk(a,b,c,d,e){let f=aL(b,bl),g=a8.getCompiledRuleId(c,d,e.repository);for(let c of f)a.push({debugSelector:b,matcher:c.matcher,ruleId:g,grammar:e,priority:c.priority})}function bl(a,b){if(b.length<a.length)return!1;let c=0;return a.every(a=>{for(let d=c;d<b.length;d++)if(function(a,b){if(!a)return!1;if(a===b)return!0;let c=b.length;return a.length>c&&a.substr(0,c)===b&&"."===a[c]}(b[d],a))return c=d+1,!0;return!1})}var bm=class{constructor(a,b,c,d,e,f,g,h){if(this._rootScopeName=a,this.balancedBracketSelectors=f,this._onigLib=h,this._basicScopeAttributesProvider=new bd(c,d),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=g,this._grammar=bn(b,null),this._injections=null,this._tokenTypeMatchers=[],e)for(let a of Object.keys(e))for(let b of aL(a,bl))this._tokenTypeMatchers.push({matcher:b.matcher,type:e[a]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let a of this._ruleId2desc)a&&a.dispose()}createOnigScanner(a){return this._onigLib.createOnigScanner(a)}createOnigString(a){return this._onigLib.createOnigString(a)}getMetadataForScope(a){return this._basicScopeAttributesProvider.getBasicScopeAttributes(a)}_collectInjections(){let a=[],b=this._rootScopeName,c=({lookup:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)}).lookup(b);if(c){let d=c.injections;if(d)for(let b in d)bk(a,b,d[b],this,c);let e=this._grammarRepository.injections(b);e&&e.forEach(b=>{let c=this.getExternalGrammar(b);if(c){let b=c.injectionSelector;b&&bk(a,b,c,this,c)}})}return a.sort((a,b)=>a.priority-b.priority),a}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(a){let b=++this._lastRuleId,c=a(b);return this._ruleId2desc[b]=c,c}getRule(a){return this._ruleId2desc[a]}getExternalGrammar(a,b){if(this._includedGrammars[a])return this._includedGrammars[a];if(this._grammarRepository){let c=this._grammarRepository.lookup(a);if(c)return this._includedGrammars[a]=bn(c,b&&b.$base),this._includedGrammars[a]}}tokenizeLine(a,b,c=0){let d=this._tokenize(a,b,!1,c);return{tokens:d.lineTokens.getResult(d.ruleStack,d.lineLength),ruleStack:d.ruleStack,stoppedEarly:d.stoppedEarly}}tokenizeLine2(a,b,c=0){let d=this._tokenize(a,b,!0,c);return{tokens:d.lineTokens.getBinaryResult(d.ruleStack,d.lineLength),ruleStack:d.ruleStack,stoppedEarly:d.stoppedEarly}}_tokenize(a,b,c,d){let e;if(-1===this._rootId&&(this._rootId=a8.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),b&&b!==bp.NULL)e=!1,b.reset();else{let a;e=!0;let c=this._basicScopeAttributesProvider.getDefaultAttributes(),d=this.themeProvider.getDefaults(),f=aK.set(0,c.languageId,c.tokenType,null,d.fontStyle,d.foregroundId,d.backgroundId),g=this.getRule(this._rootId).getName(null,null);a=g?bo.createRootAndLookUpScopeName(g,f,this):bo.createRoot("unknown",f),b=new bp(null,this._rootId,-1,-1,!1,null,a,a)}a+="\n";let f=this.createOnigString(a),g=f.content.length,h=new br(c,a,this._tokenTypeMatchers,this.balancedBracketSelectors),i=bg(this,f,e,0,b,h,!0,d);return aO(f),{lineLength:g,lineTokens:h,ruleStack:i.stack,stoppedEarly:i.stoppedEarly}}};function bn(a,b){return(a=function a(b){return Array.isArray(b)?function(b){let c=[];for(let d=0,e=b.length;d<e;d++)c[d]=a(b[d]);return c}(b):b instanceof RegExp?b:"object"==typeof b?function(b){let c={};for(let d in b)c[d]=a(b[d]);return c}(b):b}(a)).repository=a.repository||{},a.repository.$self={$vscodeTextmateLocation:a.$vscodeTextmateLocation,patterns:a.patterns,name:a.scopeName},a.repository.$base=b||a.repository.$self,a}var bo=class a{constructor(a,b,c){this.parent=a,this.scopePath=b,this.tokenAttributes=c}static fromExtension(b,c){let d=b,e=b?.scopePath??null;for(let b of c)d=new a(d,e=aC.push(e,b.scopeNames),b.encodedTokenAttributes);return d}static createRoot(b,c){return new a(null,new aC(null,b),c)}static createRootAndLookUpScopeName(b,c,d){let e=d.getMetadataForScope(b),f=new aC(null,b),g=d.themeProvider.themeMatch(f),h=a.mergeAttributes(c,e,g);return new a(null,f,h)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(b){return a.equals(this,b)}static equals(a,b){for(;;){if(a===b||!a&&!b)return!0;if(!a||!b||a.scopeName!==b.scopeName||a.tokenAttributes!==b.tokenAttributes)return!1;a=a.parent,b=b.parent}}static mergeAttributes(a,b,c){let d=-1,e=0,f=0;return null!==c&&(d=c.fontStyle,e=c.foregroundId,f=c.backgroundId),aK.set(a,b.languageId,b.tokenType,null,d,e,f)}pushAttributed(b,c){if(null===b)return this;if(-1===b.indexOf(" "))return a._pushAttributed(this,b,c);let d=b.split(/ /g),e=this;for(let b of d)e=a._pushAttributed(e,b,c);return e}static _pushAttributed(b,c,d){let e=d.getMetadataForScope(c),f=b.scopePath.push(c),g=d.themeProvider.themeMatch(f),h=a.mergeAttributes(b.tokenAttributes,e,g);return new a(b,f,h)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(a){let b=[],c=this;for(;c&&c!==a;)b.push({encodedTokenAttributes:c.tokenAttributes,scopeNames:c.scopePath.getExtensionIfDefined(c.parent?.scopePath??null)}),c=c.parent;return c===a?b.reverse():void 0}},bp=class a{constructor(a,b,c,d,e,f,g,h){this.parent=a,this.ruleId=b,this.beginRuleCapturedEOL=e,this.endRule=f,this.nameScopesList=g,this.contentNameScopesList=h,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=c,this._anchorPos=d}_stackElementBrand=void 0;static NULL=new a(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(b){return null!==b&&a._equals(this,b)}static _equals(a,b){return a===b||!!this._structuralEquals(a,b)&&bo.equals(a.contentNameScopesList,b.contentNameScopesList)}static _structuralEquals(a,b){for(;;){if(a===b||!a&&!b)return!0;if(!a||!b||a.depth!==b.depth||a.ruleId!==b.ruleId||a.endRule!==b.endRule)return!1;a=a.parent,b=b.parent}}clone(){return this}static _reset(a){for(;a;)a._enterPos=-1,a._anchorPos=-1,a=a.parent}reset(){a._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(b,c,d,e,f,g,h){return new a(this,b,c,d,e,f,g,h)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(a){return a.getRule(this.ruleId)}toString(){let a=[];return this._writeString(a,0),"["+a.join(",")+"]"}_writeString(a,b){return this.parent&&(b=this.parent._writeString(a,b)),a[b++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,b}withContentNameScopesList(a){return this.contentNameScopesList===a?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,a)}withEndRule(b){return this.endRule===b?this:new a(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,b,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(a){let b=this;for(;b&&b._enterPos===a._enterPos;){if(b.ruleId===a.ruleId)return!0;b=b.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(b,c){let d=bo.fromExtension(b?.nameScopesList??null,c.nameScopesList);return new a(b,c.ruleId,c.enterPos??-1,c.anchorPos??-1,c.beginRuleCapturedEOL,c.endRule,d,bo.fromExtension(d,c.contentNameScopesList))}},bq=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(a,b){this.balancedBracketScopes=a.flatMap(a=>"*"===a?(this.allowAny=!0,[]):aL(a,bl).map(a=>a.matcher)),this.unbalancedBracketScopes=b.flatMap(a=>aL(a,bl).map(a=>a.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(a){for(let b of this.unbalancedBracketScopes)if(b(a))return!1;for(let b of this.balancedBracketScopes)if(b(a))return!0;return this.allowAny}},br=class{constructor(a,b,c,d){this.balancedBracketSelectors=d,this._emitBinaryTokens=a,this._tokenTypeOverrides=c,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(a,b){this.produceFromScopes(a.contentNameScopesList,b)}produceFromScopes(a,b){if(this._lastTokenEndIndex>=b)return;if(this._emitBinaryTokens){let c=a?.tokenAttributes??0,d=!1;if(this.balancedBracketSelectors?.matchesAlways&&(d=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let b=a?.getScopeNames()??[];for(let a of this._tokenTypeOverrides)a.matcher(b)&&(c=aK.set(c,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(d=this.balancedBracketSelectors.match(b))}if(d&&(c=aK.set(c,0,8,d,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===c){this._lastTokenEndIndex=b;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(c),this._lastTokenEndIndex=b;return}let c=a?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:b,scopes:c}),this._lastTokenEndIndex=b}getResult(a,b){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===b-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(a,b),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(a,b){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===b-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(a,b),this._binaryTokens[this._binaryTokens.length-2]=0);let c=new Uint32Array(this._binaryTokens.length);for(let a=0,b=this._binaryTokens.length;a<b;a++)c[a]=this._binaryTokens[a];return c}},bs=class{constructor(a,b){this._onigLib=b,this._theme=a}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let a of this._grammars.values())a.dispose()}setTheme(a){this._theme=a}getColorMap(){return this._theme.getColorMap()}addGrammar(a,b){this._rawGrammars.set(a.scopeName,a),b&&this._injectionGrammars.set(a.scopeName,b)}lookup(a){return this._rawGrammars.get(a)}injections(a){return this._injectionGrammars.get(a)}getDefaults(){return this._theme.getDefaults()}themeMatch(a){return this._theme.match(a)}grammarForScopeName(a,b,c,d,e){if(!this._grammars.has(a)){let f=this._rawGrammars.get(a);if(!f)return null;this._grammars.set(a,new bm(a,f,b,c,d,e,this,this._onigLib))}return this._grammars.get(a)}},bt=class{_options;_syncRegistry;_ensureGrammarCache;constructor(a){this._options=a,this._syncRegistry=new bs(aB.createFromRawTheme(a.theme,a.colorMap),a.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(a,b){this._syncRegistry.setTheme(aB.createFromRawTheme(a,b))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(a,b,c){return this.loadGrammarWithConfiguration(a,b,{embeddedLanguages:c})}loadGrammarWithConfiguration(a,b,c){return this._loadGrammar(a,b,c.embeddedLanguages,c.tokenTypes,new bq(c.balancedBracketSelectors||[],c.unbalancedBracketSelectors||[]))}loadGrammar(a){return this._loadGrammar(a,0,null,null,null)}_loadGrammar(a,b,c,d,e){let f=new aS(this._syncRegistry,a);for(;f.Q.length>0;)f.Q.map(a=>this._loadSingleGrammar(a.scopeName)),f.processQueue();return this._grammarForScopeName(a,b,c,d,e)}_loadSingleGrammar(a){this._ensureGrammarCache.has(a)||(this._doLoadSingleGrammar(a),this._ensureGrammarCache.set(a,!0))}_doLoadSingleGrammar(a){let b=this._options.loadGrammar(a);if(b){let c="function"==typeof this._options.getInjections?this._options.getInjections(a):void 0;this._syncRegistry.addGrammar(b,c)}}addGrammar(a,b=[],c=0,d=null){return this._syncRegistry.addGrammar(a,b),this._grammarForScopeName(a.scopeName,c,d)}_grammarForScopeName(a,b=0,c=null,d=null,e=null){return this._syncRegistry.grammarForScopeName(a,b,c,d,e)}},bu=bp.NULL,bv=c(51798),bw=c(64432),bx=c(33677);let by=/["&'<>`]/g,bz=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bA=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,bB=/[|\\{}()[\]^$+*?.]/g,bC=new WeakMap,bD=/[\dA-Fa-f]/,bE=/\d/,bF=["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"],bG={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",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:"€"},bH=["cent","copy","divide","gt","lt","not","para","times"],bI={}.hasOwnProperty,bJ={};for(d in bG)bI.call(bG,d)&&(bJ[bG[d]]=d);let bK=/[^\dA-Za-z]/;function bL(a,b,c){let d,e=function(a,b,c){let d="&#x"+a.toString(16).toUpperCase();return c&&b&&!bD.test(String.fromCharCode(b))?d:d+";"}(a,b,c.omitOptionalSemicolons);if((c.useNamedReferences||c.useShortestReferences)&&(d=function(a,b,c,d){let e=String.fromCharCode(a);if(bI.call(bJ,e)){let a=bJ[e],f="&"+a;return c&&bF.includes(a)&&!bH.includes(a)&&(!d||b&&61!==b&&bK.test(String.fromCharCode(b)))?f:f+";"}return""}(a,b,c.omitOptionalSemicolons,c.attribute)),(c.useShortestReferences||!d)&&c.useShortestReferences){let d=function(a,b,c){let d="&#"+String(a);return c&&b&&!bE.test(String.fromCharCode(b))?d:d+";"}(a,b,c.omitOptionalSemicolons);d.length<e.length&&(e=d)}return d&&(!c.useShortestReferences||d.length<e.length)?d:e}function bM(a,b){let c;var d,e=a,f=Object.assign({format:bL},b);if(e=e.replace(f.subset?(d=f.subset,(c=bC.get(d))||(c=function(a){let b=[],c=-1;for(;++c<a.length;)b.push(a[c].replace(bB,"\\$&"));return RegExp("(?:"+b.join("|")+")","g")}(d),bC.set(d,c)),c):by,g),f.subset||f.escapeOnly)return e;return e.replace(bz,function(a,b,c){return f.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,c.charCodeAt(b+2),f)}).replace(bA,g);function g(a,b,c){return f.format(a.charCodeAt(0),c.charCodeAt(b+1),f)}}let bN=/^>|^->|<!--|-->|--!>|<!-$/g,bO=[">"],bP=["<",">"];var bQ=c(78198),bR=c(4304),bS=c(66474),bT=c(48427),bU=c(95966);let bV=bY(1),bW=bY(-1),bX=[];function bY(a){return function(b,c,d){let e=b?b.children:bX,f=(c||0)+a,g=e[f];if(!d)for(;g&&(0,bU.m)(g);)f+=a,g=e[f];return g}}let bZ={}.hasOwnProperty;function b$(a){return function(b,c,d){return bZ.call(a,b.tagName)&&a[b.tagName](b,c,d)}}let b_=b$({body:function(a,b,c){let d=bV(c,b);return!d||"comment"!==d.type},caption:b0,colgroup:b0,dd:function(a,b,c){let d=bV(c,b);return!d||"element"===d.type&&("dt"===d.tagName||"dd"===d.tagName)},dt:function(a,b,c){let d=bV(c,b);return!!(d&&"element"===d.type&&("dt"===d.tagName||"dd"===d.tagName))},head:b0,html:function(a,b,c){let d=bV(c,b);return!d||"comment"!==d.type},li:function(a,b,c){let d=bV(c,b);return!d||"element"===d.type&&"li"===d.tagName},optgroup:function(a,b,c){let d=bV(c,b);return!d||"element"===d.type&&"optgroup"===d.tagName},option:function(a,b,c){let d=bV(c,b);return!d||"element"===d.type&&("option"===d.tagName||"optgroup"===d.tagName)},p:function(a,b,c){let d=bV(c,b);return d?"element"===d.type&&("address"===d.tagName||"article"===d.tagName||"aside"===d.tagName||"blockquote"===d.tagName||"details"===d.tagName||"div"===d.tagName||"dl"===d.tagName||"fieldset"===d.tagName||"figcaption"===d.tagName||"figure"===d.tagName||"footer"===d.tagName||"form"===d.tagName||"h1"===d.tagName||"h2"===d.tagName||"h3"===d.tagName||"h4"===d.tagName||"h5"===d.tagName||"h6"===d.tagName||"header"===d.tagName||"hgroup"===d.tagName||"hr"===d.tagName||"main"===d.tagName||"menu"===d.tagName||"nav"===d.tagName||"ol"===d.tagName||"p"===d.tagName||"pre"===d.tagName||"section"===d.tagName||"table"===d.tagName||"ul"===d.tagName):!c||"element"!==c.type||"a"!==c.tagName&&"audio"!==c.tagName&&"del"!==c.tagName&&"ins"!==c.tagName&&"map"!==c.tagName&&"noscript"!==c.tagName&&"video"!==c.tagName},rp:b1,rt:b1,tbody:function(a,b,c){let d=bV(c,b);return!d||"element"===d.type&&("tbody"===d.tagName||"tfoot"===d.tagName)},td:b2,tfoot:function(a,b,c){return!bV(c,b)},th:b2,thead:function(a,b,c){let d=bV(c,b);return!!(d&&"element"===d.type&&("tbody"===d.tagName||"tfoot"===d.tagName))},tr:function(a,b,c){let d=bV(c,b);return!d||"element"===d.type&&"tr"===d.tagName}});function b0(a,b,c){let d=bV(c,b,!0);return!d||"comment"!==d.type&&!("text"===d.type&&(0,bU.m)(d.value.charAt(0)))}function b1(a,b,c){let d=bV(c,b);return!d||"element"===d.type&&("rp"===d.tagName||"rt"===d.tagName)}function b2(a,b,c){let d=bV(c,b);return!d||"element"===d.type&&("td"===d.tagName||"th"===d.tagName)}let b3=b$({body:function(a){let b=bV(a,-1,!0);return!b||"comment"!==b.type&&!("text"===b.type&&(0,bU.m)(b.value.charAt(0)))&&("element"!==b.type||"meta"!==b.tagName&&"link"!==b.tagName&&"script"!==b.tagName&&"style"!==b.tagName&&"template"!==b.tagName)},colgroup:function(a,b,c){let d=bW(c,b),e=bV(a,-1,!0);return!(c&&d&&"element"===d.type&&"colgroup"===d.tagName&&b_(d,c.children.indexOf(d),c))&&!!(e&&"element"===e.type&&"col"===e.tagName)},head:function(a){let b=new Set;for(let c of a.children)if("element"===c.type&&("base"===c.tagName||"title"===c.tagName)){if(b.has(c.tagName))return!1;b.add(c.tagName)}let c=a.children[0];return!c||"element"===c.type},html:function(a){let b=bV(a,-1);return!b||"comment"!==b.type},tbody:function(a,b,c){let d=bW(c,b),e=bV(a,-1);return!(c&&d&&"element"===d.type&&("thead"===d.tagName||"tbody"===d.tagName)&&b_(d,c.children.indexOf(d),c))&&!!(e&&"element"===e.type&&"tr"===e.tagName)}}),b4={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},b5=["<","&"];function b6(a,b,c,d){return c&&"element"===c.type&&("script"===c.tagName||"style"===c.tagName)?a.value:bM(a.value,Object.assign({},d.settings.characterReferences,{subset:b5}))}let b7=(0,bx.A)("type",{invalid:function(a){throw Error("Expected node, not `"+a+"`")},unknown:function(a){throw Error("Cannot compile unknown node `"+a.type+"`")},handlers:{comment:function(a,b,c,d){return d.settings.bogusComments?"<?"+bM(a.value,Object.assign({},d.settings.characterReferences,{subset:bO}))+">":"\x3c!--"+a.value.replace(bN,function(a){return bM(a,Object.assign({},d.settings.characterReferences,{subset:bP}))})+"--\x3e"},doctype:function(a,b,c,d){return"<!"+(d.settings.upperDoctype?"DOCTYPE":"doctype")+(d.settings.tightDoctype?"":" ")+"html>"},element:function(a,b,c,d){let e,f=d.schema,g="svg"!==f.space&&d.settings.omitOptionalTags,h="svg"===f.space?d.settings.closeEmptyElements:d.settings.voids.includes(a.tagName.toLowerCase()),i=[];"html"===f.space&&"svg"===a.tagName&&(d.schema=bw.JW);let j=function(a,b){let c,d=[],e=-1;if(b){for(c in b)if(null!==b[c]&&void 0!==b[c]){let e=function(a,b,c){let d,e=(0,bS.I)(a.schema,b),f=a.settings.allowParseErrors&&"html"===a.schema.space?0:1,g=+!a.settings.allowDangerousCharacters,h=a.quote;if(e.overloadedBoolean&&(c===e.attribute||""===c)?c=!0:(e.boolean||e.overloadedBoolean)&&("string"!=typeof c||c===e.attribute||""===c)&&(c=!!c),null==c||!1===c||"number"==typeof c&&Number.isNaN(c))return"";let i=bM(e.attribute,Object.assign({},a.settings.characterReferences,{subset:b4.name[f][g]}));return!0===c||(c=Array.isArray(c)?(e.commaSeparated?bR.A:bT.A)(c,{padLeft:!a.settings.tightCommaSeparatedLists}):String(c),a.settings.collapseEmptyAttributes&&!c)?i:(a.settings.preferUnquoted&&(d=bM(c,Object.assign({},a.settings.characterReferences,{attribute:!0,subset:b4.unquoted[f][g]}))),d!==c&&(a.settings.quoteSmart&&(0,bQ.D)(c,h)>(0,bQ.D)(c,a.alternative)&&(h=a.alternative),d=h+bM(c,Object.assign({},a.settings.characterReferences,{subset:("'"===h?b4.single:b4.double)[f][g],attribute:!0}))+h),i+(d?"="+d:d))}(a,c,b[c]);e&&d.push(e)}}for(;++e<d.length;){let b=a.settings.tightAttributes?d[e].charAt(d[e].length-1):void 0;e!==d.length-1&&'"'!==b&&"'"!==b&&(d[e]+=" ")}return d.join("")}(d,a.properties),k=d.all("html"===f.space&&"template"===a.tagName?a.content:a);return d.schema=f,k&&(h=!1),!j&&g&&b3(a,b,c)||(i.push("<",a.tagName,j?" "+j:""),h&&("svg"===f.space||d.settings.closeSelfClosing)&&(e=j.charAt(j.length-1),(!d.settings.tightSelfClosing||"/"===e||e&&'"'!==e&&"'"!==e)&&i.push(" "),i.push("/")),i.push(">")),i.push(k),h||g&&b_(a,b,c)||i.push("</"+a.tagName+">"),i.join("")},raw:function(a,b,c,d){return d.settings.allowDangerousHtml?a.value:b6(a,b,c,d)},root:function(a,b,c,d){return d.all(a)},text:b6}}),b8={},b9={},ca=[];function cb(a,b,c){return b7(a,b,c,this)}function cc(a){let b=[],c=a&&a.children||ca,d=-1;for(;++d<c.length;)b[d]=this.one(c[d],d,a);return b.join("")}function cd(a,b){let c="string"==typeof a?{}:{...a.colorReplacements},d="string"==typeof a?a:a.name;for(let[a,e]of Object.entries(b?.colorReplacements||{}))"string"==typeof e?c[a]=e:a===d&&Object.assign(c,e);return c}function ce(a,b){return a&&b?.[a?.toLowerCase()]||a}async function cf(a){return Promise.resolve("function"==typeof a?a():a).then(a=>a.default||a)}function cg(a){return!a||["plaintext","txt","text","plain"].includes(a)}function ch(a){return"ansi"===a||cg(a)}function ci(a){return"none"===a}function cj(a,b){if(!b)return a;for(let c of(a.properties||={},a.properties.class||=[],"string"==typeof a.properties.class&&(a.properties.class=a.properties.class.split(/\s+/g)),Array.isArray(a.properties.class)||(a.properties.class=[]),Array.isArray(b)?b:b.split(/\s+/g)))c&&!a.properties.class.includes(c)&&a.properties.class.push(c);return a}function ck(a,b=!1){let c=a.split(/(\r?\n)/g),d=0,e=[];for(let a=0;a<c.length;a+=2){let f=b?c[a]+(c[a+1]||""):c[a];e.push([f,d]),d+=c[a].length,d+=c[a+1]?.length||0}return e}let cl="light-dark()",cm=["color","background-color"];function cn(a){let b={};if(a.color&&(b.color=a.color),a.bgColor&&(b["background-color"]=a.bgColor),a.fontStyle){a.fontStyle&aF.Italic&&(b["font-style"]="italic"),a.fontStyle&aF.Bold&&(b["font-weight"]="bold");let c=[];a.fontStyle&aF.Underline&&c.push("underline"),a.fontStyle&aF.Strikethrough&&c.push("line-through"),c.length&&(b["text-decoration"]=c.join(" "))}return b}function co(a){return"string"==typeof a?a:Object.entries(a).map(([a,b])=>`${a}:${b}`).join(";")}let cp=new WeakMap;function cq(a,b){cp.set(a,b)}function cr(a){return cp.get(a)}class cs{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(a,b){return new cs(Object.fromEntries((Array.isArray(b)?b:[b]).map(a=>[a,bu])),a)}constructor(...a){if(2===a.length){let[b,c]=a;this.lang=c,this._stacks=b}else{let[b,c,d]=a;this.lang=c,this._stacks={[d]:b}}}getInternalStack(a=this.theme){return this._stacks[a]}getScopes(a=this.theme){var b=this._stacks[a];let c=[],d=new Set;return!function a(b){if(d.has(b))return;d.add(b);let e=b?.nameScopesList?.scopeName;e&&c.push(e),b.parent&&a(b.parent)}(b),c}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}let ct=[function(){let a=new WeakMap;function b(b){if(!a.has(b.meta)){let c=function(a){if("number"==typeof a){if(a<0||a>b.source.length)throw new at(`Invalid decoration offset: ${a}. Code length: ${b.source.length}`);return{...d.indexToPos(a),offset:a}}{let b=d.lines[a.line];if(void 0===b)throw new at(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${d.lines.length}`);let c=a.character;if(c<0&&(c=b.length+c),c<0||c>b.length)throw new at(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${b.length}`);return{...a,character:c,offset:d.posToIndex(a.line,c)}}},d=function(a){let b=ck(a,!0).map(([a])=>a);return{lines:b,indexToPos:function(c){if(c===a.length)return{line:b.length-1,character:b[b.length-1].length};let d=c,e=0;for(let a of b){if(d<a.length)break;d-=a.length,e++}return{line:e,character:d}},posToIndex:function(a,c){let d=0;for(let c=0;c<a;c++)d+=b[c].length;return d+c}}}(b.source),e=(b.options.decorations||[]).map(a=>({...a,start:c(a.start),end:c(a.end)}));(function(a){for(let b=0;b<a.length;b++){let c=a[b];if(c.start.offset>c.end.offset)throw new at(`Invalid decoration range: ${JSON.stringify(c.start)} - ${JSON.stringify(c.end)}`);for(let d=b+1;d<a.length;d++){let b=a[d],e=c.start.offset<=b.start.offset&&b.start.offset<c.end.offset,f=c.start.offset<b.end.offset&&b.end.offset<=c.end.offset,g=b.start.offset<=c.start.offset&&c.start.offset<b.end.offset,h=b.start.offset<c.end.offset&&c.end.offset<=b.end.offset;if(e||f||g||h){if(e&&f||g&&h||g&&c.start.offset===c.end.offset||f&&b.start.offset===b.end.offset)continue;throw new at(`Decorations ${JSON.stringify(c.start)} and ${JSON.stringify(b.start)} intersect.`)}}}})(e),a.set(b.meta,{decorations:e,converter:d,source:b.source})}return a.get(b.meta)}return{name:"shiki:decorations",tokens(a){if(this.options.decorations?.length){var c=a,d=b(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);let e=Array.from(d instanceof Set?d:new Set(d)).sort((a,b)=>a-b);return e.length?c.map(a=>a.flatMap(a=>{let b=e.filter(b=>a.offset<b&&b<a.offset+a.content.length).map(b=>b-a.offset).sort((a,b)=>a-b);if(!b.length)return a;let c=0,d=[];for(let e of b)e>c&&d.push({...a,content:a.content.slice(c,e),offset:a.offset+c}),c=e;return c<a.content.length&&d.push({...a,content:a.content.slice(c),offset:a.offset+c}),d})):c}},code(a){if(!this.options.decorations?.length)return;let c=b(this),d=Array.from(a.children).filter(a=>"element"===a.type&&"span"===a.tagName);if(d.length!==c.converter.lines.length)throw new at(`Number of lines in code element (${d.length}) does not match the number of lines in the source (${c.converter.lines.length}). Failed to apply decorations.`);function e(a,b,c,e){let g=d[a],h="",i=-1,j=-1;if(0===b&&(i=0),0===c&&(j=0),c===1/0&&(j=g.children.length),-1===i||-1===j)for(let a=0;a<g.children.length;a++)h+=function a(b){return"text"===b.type?b.value:"element"===b.type?b.children.map(a).join(""):""}(g.children[a]),-1===i&&h.length===b&&(i=a+1),-1===j&&h.length===c&&(j=a+1);if(-1===i)throw new at(`Failed to find start index for decoration ${JSON.stringify(e.start)}`);if(-1===j)throw new at(`Failed to find end index for decoration ${JSON.stringify(e.end)}`);let k=g.children.slice(i,j);if(e.alwaysWrap||k.length!==g.children.length)if(e.alwaysWrap||1!==k.length||"element"!==k[0].type){let a={type:"element",tagName:"span",properties:{},children:k};f(a,e,"wrapper"),g.children.splice(i,k.length,a)}else f(k[0],e,"token");else f(g,e,"line")}function f(a,b,c){let d=b.properties||{},e=b.transform||(a=>a);return a.tagName=b.tagName||"span",a.properties={...a.properties,...d,class:a.properties.class},b.properties?.class&&cj(a,b.properties.class),a=e(a,c)||a}let g=[];for(let a of c.decorations.sort((a,b)=>b.start.offset-a.start.offset||a.end.offset-b.end.offset)){let{start:b,end:c}=a;if(b.line===c.line)e(b.line,b.character,c.character,a);else if(b.line<c.line){e(b.line,b.character,1/0,a);for(let e=b.line+1;e<c.line;e++)g.unshift(()=>{var b;d[b=e]=f(d[b],a,"line")});e(c.line,0,c.character,a)}}g.forEach(a=>a())}}}()];function cu(a){let b=function(a){let b=[],c=[],d=[];for(let e of a)switch(e.enforce){case"pre":b.push(e);break;case"post":c.push(e);break;default:d.push(e)}return{pre:b,post:c,normal:d}}(a.transformers||[]);return[...b.pre,...b.normal,...b.post,...ct]}var cv=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],cw={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function cx(a){let b=a.shift();if("2"===b){let b=a.splice(0,3).map(a=>Number.parseInt(a));if(3!==b.length||b.some(a=>Number.isNaN(a)))return;return{type:"rgb",rgb:b}}if("5"===b){let b=a.shift();if(b)return{type:"table",index:Number(b)}}}var cy={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function cz(a,b,c={}){let{lang:d="text",theme:e=a.getLoadedThemes()[0]}=c;if(cg(d)||ci(e))return ck(b).map(a=>[{content:a[0],offset:a[1]}]);let{theme:f,colorMap:g}=a.setTheme(e);if("ansi"===d)return function(a,b,c){let d,e,f,g=cd(a,c),h=ck(b),i=function(a=cy){let b;function c(a){return`#${a.map(a=>Math.max(0,Math.min(a,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(d){switch(d.type){case"named":return a[d.name];case"rgb":return c(d.rgb);case"table":var e;return e=d.index,function(){if(b)return b;b=[];for(let c=0;c<cv.length;c++)b.push(a[cv[c]]);let d=[0,95,135,175,215,255];for(let a=0;a<6;a++)for(let e=0;e<6;e++)for(let f=0;f<6;f++)b.push(c([d[a],d[e],d[f]]));let e=8;for(let a=0;a<24;a++,e+=10)b.push(c([e,e,e]));return b}()[e]}}}}(Object.fromEntries(cv.map(b=>[b,a.colors?.[`terminal.ansi${b[0].toUpperCase()}${b.substring(1)}`]]))),j=(d=null,e=null,f=new Set,{parse(a){let b=[],c=0;do{let g=function(a,b){let c=a.indexOf("\x1b",b);if(-1!==c&&"["===a[c+1]){let b=a.indexOf("m",c);if(-1!==b)return{sequence:a.substring(c+2,b).split(";"),startPosition:c,position:b+1}}return{position:a.length}}(a,c),h=g.sequence?a.substring(c,g.startPosition):a.substring(c);if(h.length>0&&b.push({value:h,foreground:d,background:e,decorations:new Set(f)}),g.sequence){let a=function(a){let b=[];for(;a.length>0;){let c=a.shift();if(!c)continue;let d=Number.parseInt(c);if(!Number.isNaN(d))if(0===d)b.push({type:"resetAll"});else if(d<=9)cw[d]&&b.push({type:"setDecoration",value:cw[d]});else if(d<=29){let a=cw[d-20];a&&(b.push({type:"resetDecoration",value:a}),"dim"===a&&b.push({type:"resetDecoration",value:"bold"}))}else if(d<=37)b.push({type:"setForegroundColor",value:{type:"named",name:cv[d-30]}});else if(38===d){let c=cx(a);c&&b.push({type:"setForegroundColor",value:c})}else if(39===d)b.push({type:"resetForegroundColor"});else if(d<=47)b.push({type:"setBackgroundColor",value:{type:"named",name:cv[d-40]}});else if(48===d){let c=cx(a);c&&b.push({type:"setBackgroundColor",value:c})}else 49===d?b.push({type:"resetBackgroundColor"}):53===d?b.push({type:"setDecoration",value:"overline"}):55===d?b.push({type:"resetDecoration",value:"overline"}):d>=90&&d<=97?b.push({type:"setForegroundColor",value:{type:"named",name:cv[d-90+8]}}):d>=100&&d<=107&&b.push({type:"setBackgroundColor",value:{type:"named",name:cv[d-100+8]}})}return b}(g.sequence);for(let b of a)"resetAll"===b.type?(d=null,e=null,f.clear()):"resetForegroundColor"===b.type?d=null:"resetBackgroundColor"===b.type?e=null:"resetDecoration"===b.type&&f.delete(b.value);for(let b of a)"setForegroundColor"===b.type?d=b.value:"setBackgroundColor"===b.type?e=b.value:"setDecoration"===b.type&&f.add(b.value)}c=g.position}while(c<a.length);return b}});return h.map(b=>j.parse(b[0]).map(c=>{let d,e;c.decorations.has("reverse")?(d=c.background?i.value(c.background):a.bg,e=c.foreground?i.value(c.foreground):a.fg):(d=c.foreground?i.value(c.foreground):a.fg,e=c.background?i.value(c.background):void 0),d=ce(d,g),e=ce(e,g),c.decorations.has("dim")&&(d=function(a){let b=a.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(b)if(b[3]){let a=Math.round(Number.parseInt(b[3],16)/2).toString(16).padStart(2,"0");return`#${b[1]}${b[2]}${a}`}else if(b[2])return`#${b[1]}${b[2]}80`;else return`#${Array.from(b[1]).map(a=>`${a}${a}`).join("")}80`;let c=a.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return c?`var(${c[1]}-dim)`:a}(d));let f=aF.None;return c.decorations.has("bold")&&(f|=aF.Bold),c.decorations.has("italic")&&(f|=aF.Italic),c.decorations.has("underline")&&(f|=aF.Underline),c.decorations.has("strikethrough")&&(f|=aF.Strikethrough),{content:c.value,offset:b[1],color:d,bgColor:e,fontStyle:f}}))}(f,b,c);let h=a.getLanguage(d);if(c.grammarState){if(c.grammarState.lang!==h.name)throw new at(`Grammar state language "${c.grammarState.lang}" does not match highlight language "${h.name}"`);if(!c.grammarState.themes.includes(f.name))throw new at(`Grammar state themes "${c.grammarState.themes}" do not contain highlight theme "${f.name}"`)}var i=b,j=h,k=f,l=g,m=c;let n=cA(i,j,k,l,m),o=new cs(cA(i,j,k,l,m).stateStack,j.name,k.name);return cq(n.tokens,o),n.tokens}function cA(a,b,c,d,e){let f=cd(c,e),{tokenizeMaxLineLength:g=0,tokenizeTimeLimit:h=500}=e,i=ck(a),j=e.grammarState?function(a,b){if(!(a instanceof cs))throw new at("Invalid grammar state");return a.getInternalStack(b)}(e.grammarState,c.name)??bu:null!=e.grammarContextCode?cA(e.grammarContextCode,b,c,d,{...e,grammarState:void 0,grammarContextCode:void 0}).stateStack:bu,k=[],l=[];for(let a=0,m=i.length;a<m;a++){let m,n,[o,p]=i[a];if(""===o){k=[],l.push([]);continue}if(g>0&&o.length>=g){k=[],l.push([{content:o,offset:p,color:"",fontStyle:0}]);continue}e.includeExplanation&&(m=b.tokenizeLine(o,j,h).tokens,n=0);let q=b.tokenizeLine2(o,j,h),r=q.tokens.length/2;for(let a=0;a<r;a++){let b=q.tokens[2*a],g=a+1<r?q.tokens[2*a+2]:o.length;if(b===g)continue;let h=q.tokens[2*a+1],i=ce(d[aK.getForeground(h)],f),j=aK.getFontStyle(h),l={content:o.substring(b,g),offset:p+b,color:i,fontStyle:j};if(e.includeExplanation){let a=[];if("scopeName"!==e.includeExplanation)for(let b of c.settings){let c;switch(typeof b.scope){case"string":c=b.scope.split(/,/).map(a=>a.trim());break;case"object":c=b.scope;break;default:continue}a.push({settings:b,selectors:c.map(a=>a.split(/ /))})}l.explanation=[];let d=0;for(;b+d<g;){let b=m[n],c=o.substring(b.startIndex,b.endIndex);d+=c.length,l.explanation.push({content:c,scopes:"scopeName"===e.includeExplanation?b.scopes.map(a=>({scopeName:a})):function(a,b){let c=[];for(let d=0,e=b.length;d<e;d++){let e=b[d];c[d]={scopeName:e,themeMatches:function(a,b,c){let d=[];for(let{selectors:e,settings:f}of a)for(let a of e)if(function(a,b,c){if(!cB(a[a.length-1],b))return!1;let d=a.length-2,e=c.length-1;for(;d>=0&&e>=0;)cB(a[d],c[e])&&(d-=1),e-=1;return -1===d}(a,b,c)){d.push(f);break}return d}(a,e,b.slice(0,d))}}return c}(a,b.scopes)}),n+=1}}k.push(l)}l.push(k),k=[],j=q.ruleStack}return{tokens:l,stateStack:j}}function cB(a,b){return a===b||b.substring(0,a.length)===a&&"."===b[a.length]}function cC(a,b,c){let d=Object.entries(c.themes).filter(a=>a[1]).map(a=>({color:a[0],theme:a[1]})),e=d.map(d=>{let e=cz(a,b,{...c,theme:d.theme}),f=cr(e);return{tokens:e,state:f,theme:"string"==typeof d.theme?d.theme:d.theme.name}}),f=function(...a){let b=a.map(()=>[]),c=a.length;for(let d=0;d<a[0].length;d++){let e=a.map(a=>a[d]),f=b.map(()=>[]);b.forEach((a,b)=>a.push(f[b]));let g=e.map(()=>0),h=e.map(a=>a[0]);for(;h.every(a=>a);){let a=Math.min(...h.map(a=>a.content.length));for(let b=0;b<c;b++){let c=h[b];c.content.length===a?(f[b].push(c),g[b]+=1,h[b]=e[b][g[b]]):(f[b].push({...c,content:c.content.slice(0,a)}),h[b]={...c,content:c.content.slice(a),offset:c.offset+a})}}}return b}(...e.map(a=>a.tokens)),g=f[0].map((a,b)=>a.map((a,e)=>{let g={content:a.content,variants:{},offset:a.offset};return"includeExplanation"in c&&c.includeExplanation&&(g.explanation=a.explanation),f.forEach((a,c)=>{let{content:f,explanation:h,offset:i,...j}=a[b][e];g.variants[d[c].color]=j}),g})),h=e[0].state?new cs(Object.fromEntries(e.map(a=>[a.theme,a.state?.getInternalStack(a.theme)])),e[0].state.lang):void 0;return h&&cq(g,h),g}function cD(a,b,c){let d,e,f,g,h,i;if("themes"in c){let{defaultColor:j="light",cssVariablePrefix:k="--shiki-",colorsRendering:l="css-vars"}=c,m=Object.entries(c.themes).filter(a=>a[1]).map(a=>({color:a[0],theme:a[1]})).sort((a,b)=>a.color===j?-1:+(b.color===j));if(0===m.length)throw new at("`themes` option must not be empty");let n=cC(a,b,c);if(i=cr(n),j&&cl!==j&&!m.find(a=>a.color===j))throw new at(`\`themes\` option must contain the defaultColor key \`${j}\``);let o=m.map(b=>a.getTheme(b.theme)),p=m.map(a=>a.color);f=n.map(a=>a.map(a=>(function(a,b,c,d,e="css-vars"){let f={content:a.content,explanation:a.explanation,offset:a.offset},g=b.map(b=>cn(a.variants[b])),h=new Set(g.flatMap(a=>Object.keys(a))),i={},j=(a,d)=>{let e="color"===d?"":"background-color"===d?"-bg":`-${d}`;return c+b[a]+("color"===d?"":e)};return g.forEach((a,c)=>{for(let f of h){let h=a[f]||"inherit";if(0===c&&d&&cm.includes(f))if(d===cl&&g.length>1){let a=b.findIndex(a=>"light"===a),d=b.findIndex(a=>"dark"===a);if(-1===a||-1===d)throw new at('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let k=g[a][f]||"inherit",l=g[d][f]||"inherit";i[f]=`light-dark(${k}, ${l})`,"css-vars"===e&&(i[j(c,f)]=h)}else i[f]=h;else"css-vars"===e&&(i[j(c,f)]=h)}}),f.htmlStyle=i,f})(a,p,k,j,l))),i&&cq(f,i);let q=m.map(a=>cd(a.theme,c));e=cE(m,o,q,k,j,"fg",l),d=cE(m,o,q,k,j,"bg",l),g=`shiki-themes ${o.map(a=>a.name).join(" ")}`,h=j?void 0:[e,d].join(";")}else if("theme"in c){let h=cd(c.theme,c);f=cz(a,b,c);let j=a.getTheme(c.theme);d=ce(j.bg,h),e=ce(j.fg,h),g=j.name,i=cr(f)}else throw new at("Invalid options, either `theme` or `themes` must be provided");return{tokens:f,fg:e,bg:d,themeName:g,rootStyle:h,grammarState:i}}function cE(a,b,c,d,e,f,g){return a.map((h,i)=>{let j=ce(b[i][f],c[i])||"inherit",k=`${d+h.color}${"bg"===f?"-bg":""}:${j}`;if(0===i&&e){if(e===cl&&a.length>1){let d=a.findIndex(a=>"light"===a.color),e=a.findIndex(a=>"dark"===a.color);if(-1===d||-1===e)throw new at('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let g=ce(b[d][f],c[d])||"inherit",h=ce(b[e][f],c[e])||"inherit";return`light-dark(${g}, ${h});${k}`}return j}return"css-vars"===g?k:null}).filter(a=>!!a).join(";")}function cF(a,b,c,d={meta:{},options:c,codeToHast:(b,c)=>cF(a,b,c),codeToTokens:(b,c)=>cD(a,b,c)}){let e=b;for(let a of cu(c))e=a.preprocess?.call(d,e,c)||e;let{tokens:f,fg:g,bg:h,themeName:i,rootStyle:j,grammarState:k}=cD(a,e,c),{mergeWhitespaces:l=!0,mergeSameStyleTokens:m=!1}=c;!0===l?f=f.map(a=>{let b=[],c="",d=0;return a.forEach((e,f)=>{let g=!(e.fontStyle&&(e.fontStyle&aF.Underline||e.fontStyle&aF.Strikethrough));g&&e.content.match(/^\s+$/)&&a[f+1]?(d||(d=e.offset),c+=e.content):c?(g?b.push({...e,offset:d,content:c+e.content}):b.push({content:c,offset:d},e),d=0,c=""):b.push(e)}),b}):"never"===l&&(f=f.map(a=>a.flatMap(a=>{if(a.content.match(/^\s+$/))return a;let b=a.content.match(/^(\s*)(.*?)(\s*)$/);if(!b)return a;let[,c,d,e]=b;if(!c&&!e)return a;let f=[{...a,offset:a.offset+c.length,content:d}];return c&&f.unshift({content:c,offset:a.offset}),e&&f.push({content:e,offset:a.offset+c.length+d.length}),f}))),m&&(f=f.map(a=>{let b=[];for(let c of a){if(0===b.length){b.push({...c});continue}let a=b[b.length-1],d=co(a.htmlStyle||cn(a)),e=co(c.htmlStyle||cn(c)),f=a.fontStyle&&(a.fontStyle&aF.Underline||a.fontStyle&aF.Strikethrough),g=c.fontStyle&&(c.fontStyle&aF.Underline||c.fontStyle&aF.Strikethrough);f||g||d!==e?b.push({...c}):a.content+=c.content}return b}));let n={...d,get source(){return e}};for(let a of cu(c))f=a.tokens?.call(n,f)||f;return function(a,b,c,d=cr(a)){let e=cu(b),f=[],g={type:"root",children:[]},{structure:h="classic",tabindex:i="0"}=b,j={type:"element",tagName:"pre",properties:{class:`shiki ${b.themeName||""}`,style:b.rootStyle||`background-color:${b.bg};color:${b.fg}`,...!1!==i&&null!=i?{tabindex:i.toString()}:{},...Object.fromEntries(Array.from(Object.entries(b.meta||{})).filter(([a])=>!a.startsWith("_")))},children:[]},k={type:"element",tagName:"code",properties:{},children:f},l=[],m={...c,structure:h,addClassToHast:cj,get source(){return c.source},get tokens(){return a},get options(){return b},get root(){return g},get pre(){return j},get code(){return k},get lines(){return l}};if(a.forEach((a,b)=>{b&&("inline"===h?g.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===h&&f.push({type:"text",value:"\n"}));let c={type:"element",tagName:"span",properties:{class:"line"},children:[]},d=0;for(let f of a){let a={type:"element",tagName:"span",properties:{...f.htmlAttrs},children:[{type:"text",value:f.content}]},i=co(f.htmlStyle||cn(f));for(let g of(i&&(a.properties.style=i),e))a=g?.span?.call(m,a,b+1,d,c,f)||a;"inline"===h?g.children.push(a):"classic"===h&&c.children.push(a),d+=f.content.length}if("classic"===h){for(let a of e)c=a?.line?.call(m,c,b+1)||c;l.push(c),f.push(c)}}),"classic"===h){for(let a of e)k=a?.code?.call(m,k)||k;for(let a of(j.children.push(k),e))j=a?.pre?.call(m,j)||j;g.children.push(j)}let n=g;for(let a of e)n=a?.root?.call(m,n)||n;return d&&cq(n,d),n}(f,{...c,fg:g,bg:h,themeName:i,rootStyle:j},n,k)}let cG=function(a,b){let c=b||b8,d=c.quote||'"';if('"'!==d&&"'"!==d)throw Error("Invalid quote `"+d+"`, expected `'` or `\"`");return({one:cb,all:cc,settings:{omitOptionalTags:c.omitOptionalTags||!1,allowParseErrors:c.allowParseErrors||!1,allowDangerousCharacters:c.allowDangerousCharacters||!1,quoteSmart:c.quoteSmart||!1,preferUnquoted:c.preferUnquoted||!1,tightAttributes:c.tightAttributes||!1,upperDoctype:c.upperDoctype||!1,tightDoctype:c.tightDoctype||!1,bogusComments:c.bogusComments||!1,tightCommaSeparatedLists:c.tightCommaSeparatedLists||!1,tightSelfClosing:c.tightSelfClosing||!1,collapseEmptyAttributes:c.collapseEmptyAttributes||!1,allowDangerousHtml:c.allowDangerousHtml||!1,voids:c.voids||bv.b,characterReferences:c.characterReferences||b9,closeSelfClosing:c.closeSelfClosing||!1,closeEmptyElements:c.closeEmptyElements||!1},schema:"svg"===c.space?bw.JW:bw.qy,quote:d,alternative:'"'===d?"'":'"'}).one(Array.isArray(a)?{type:"root",children:a}:a,void 0,void 0)},cH={light:"#333333",dark:"#bbbbbb"},cI={light:"#fffffe",dark:"#1e1e1e"},cJ="__shiki_resolved";function cK(a){if(a?.[cJ])return a;let b={...a};b.tokenColors&&!b.settings&&(b.settings=b.tokenColors,delete b.tokenColors),b.type||="dark",b.colorReplacements={...b.colorReplacements},b.settings||=[];let{bg:c,fg:d}=b;if(!c||!d){let a=b.settings?b.settings.find(a=>!a.name&&!a.scope):void 0;a?.settings?.foreground&&(d=a.settings.foreground),a?.settings?.background&&(c=a.settings.background),!d&&b?.colors?.["editor.foreground"]&&(d=b.colors["editor.foreground"]),!c&&b?.colors?.["editor.background"]&&(c=b.colors["editor.background"]),d||(d="light"===b.type?cH.light:cH.dark),c||(c="light"===b.type?cI.light:cI.dark),b.fg=d,b.bg=c}b.settings[0]&&b.settings[0].settings&&!b.settings[0].scope||b.settings.unshift({settings:{foreground:b.fg,background:b.bg}});let e=0,f=new Map;function g(a){if(f.has(a))return f.get(a);e+=1;let c=`#${e.toString(16).padStart(8,"0").toLowerCase()}`;return b.colorReplacements?.[`#${c}`]?g(a):(f.set(a,c),c)}for(let a of(b.settings=b.settings.map(a=>{let c=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),d=a.settings?.background&&!a.settings.background.startsWith("#");if(!c&&!d)return a;let e={...a,settings:{...a.settings}};if(c){let c=g(a.settings.foreground);b.colorReplacements[c]=a.settings.foreground,e.settings.foreground=c}if(d){let c=g(a.settings.background);b.colorReplacements[c]=a.settings.background,e.settings.background=c}return e}),Object.keys(b.colors||{})))if(("editor.foreground"===a||"editor.background"===a||a.startsWith("terminal.ansi"))&&!b.colors[a]?.startsWith("#")){let c=g(b.colors[a]);b.colorReplacements[c]=b.colors[a],b.colors[a]=c}return Object.defineProperty(b,cJ,{enumerable:!1,writable:!1,value:!0}),b}async function cL(a){return Array.from(new Set((await Promise.all(a.filter(a=>!ch(a)).map(async a=>await cf(a).then(a=>Array.isArray(a)?a:[a])))).flat()))}async function cM(a){return(await Promise.all(a.map(async a=>ci(a)?null:cK(await cf(a))))).filter(a=>!!a)}class cN extends Error{constructor(a){super(a),this.name="ShikiError"}}class cO extends bt{constructor(a,b,c,d={}){super(a),this._resolver=a,this._themes=b,this._langs=c,this._alias=d,this._themes.map(a=>this.loadTheme(a)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(a){return"string"==typeof a?this._resolvedThemes.get(a):this.loadTheme(a)}loadTheme(a){let b=cK(a);return b.name&&(this._resolvedThemes.set(b.name,b),this._loadedThemesCache=null),b}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(a){let b=this._textmateThemeCache.get(a);b||(b=aB.createFromRawTheme(a),this._textmateThemeCache.set(a,b)),this._syncRegistry.setTheme(b)}getGrammar(a){if(this._alias[a]){let b=new Set([a]);for(;this._alias[a];){if(a=this._alias[a],b.has(a))throw new cN(`Circular alias \`${Array.from(b).join(" -> ")} -> ${a}\``);b.add(a)}}return this._resolvedGrammars.get(a)}loadLanguage(a){if(this.getGrammar(a.name))return;let b=new Set([...this._langMap.values()].filter(b=>b.embeddedLangsLazy?.includes(a.name)));this._resolver.addLanguage(a);let c={balancedBracketSelectors:a.balancedBracketSelectors||["*"],unbalancedBracketSelectors:a.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(a.scopeName,a);let d=this.loadGrammarWithConfiguration(a.scopeName,1,c);if(d.name=a.name,this._resolvedGrammars.set(a.name,d),a.aliases&&a.aliases.forEach(b=>{this._alias[b]=a.name}),this._loadedLanguagesCache=null,b.size)for(let a of b)this._resolvedGrammars.delete(a.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(a.scopeName),this._syncRegistry?._grammars?.delete(a.scopeName),this.loadLanguage(this._langMap.get(a.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(a){for(let b of a)this.resolveEmbeddedLanguages(b);let b=Array.from(this._langGraph.entries()),c=b.filter(([a,b])=>!b);if(c.length){let a=b.filter(([a,b])=>b&&b.embeddedLangs?.some(a=>c.map(([a])=>a).includes(a))).filter(a=>!c.includes(a));throw new cN(`Missing languages ${c.map(([a])=>`\`${a}\``).join(", ")}, required by ${a.map(([a])=>`\`${a}\``).join(", ")}`)}for(let[a,c]of b)this._resolver.addLanguage(c);for(let[a,c]of b)this.loadLanguage(c)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(a){if(this._langMap.set(a.name,a),this._langGraph.set(a.name,a),a.embeddedLangs)for(let b of a.embeddedLangs)this._langGraph.set(b,this._langMap.get(b))}}class cP{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(a,b){this._onigLib={createOnigScanner:b=>a.createScanner(b),createOnigString:b=>a.createString(b)},b.forEach(a=>this.addLanguage(a))}get onigLib(){return this._onigLib}getLangRegistration(a){return this._langs.get(a)}loadGrammar(a){return this._scopeToLang.get(a)}addLanguage(a){this._langs.set(a.name,a),a.aliases&&a.aliases.forEach(b=>{this._langs.set(b,a)}),this._scopeToLang.set(a.scopeName,a),a.injectTo&&a.injectTo.forEach(b=>{this._injections.get(b)||this._injections.set(b,[]),this._injections.get(b).push(a.scopeName)})}getInjections(a){let b=a.split("."),c=[];for(let a=1;a<=b.length;a++){let d=b.slice(0,a).join(".");c=[...c,...this._injections.get(d)||[]]}return c}}let cQ=0;async function cR(a){a.engine||function(a,b=3){if(!(b>3))if(1)console.trace(`[SHIKI DEPRECATE]: ${a}`);else throw Error(`[SHIKI DEPRECATE]: ${a}`)}("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[b,c,d]=await Promise.all([cM(a.themes||[]),cL(a.langs||[]),a.engine]);return function(a){let b;cQ+=1,!1!==a.warnings&&cQ>=10&&cQ%10==0&&console.warn(`[Shiki] ${cQ} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let c=!1;if(!a.engine)throw new cN("`engine` option is required for synchronous mode");let d=(a.langs||[]).flat(1),e=(a.themes||[]).flat(1).map(cK),f=new cO(new cP(a.engine,d),e,d,a.langAlias);function g(a){if("none"===a)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};j();let b=f.getTheme(a);if(!b)throw new cN(`Theme \`${a}\` not found, you may need to load it first`);return b}function h(...a){j(),f.loadLanguages(a.flat(1))}function i(...a){for(let b of(j(),a.flat(1)))f.loadTheme(b)}function j(){if(c)throw new cN("Shiki instance has been disposed")}function k(){c||(c=!0,f.dispose(),cQ-=1)}return{setTheme:function(a){j();let c=g(a);return b!==a&&(f.setTheme(c),b=a),{theme:c,colorMap:f.getColorMap()}},getTheme:g,getLanguage:function(a){j();let b=f.getGrammar("string"==typeof a?a:a.name);if(!b)throw new cN(`Language \`${a}\` not found, you may need to load it first`);return b},getLoadedThemes:function(){return j(),f.getLoadedThemes()},getLoadedLanguages:function(){return j(),f.getLoadedLanguages()},loadLanguage:async function(...a){return h(await cL(a))},loadLanguageSync:h,loadTheme:async function(...a){return j(),i(await cM(a))},loadThemeSync:i,dispose:k,[Symbol.dispose]:k}}({...a,themes:b,langs:c,engine:d})}async function cS(a){let b=await cR(a);return{getLastGrammarState:(...a)=>(function(...a){if(2===a.length)return cr(a[1]);let[b,c,d={}]=a,{lang:e="text",theme:f=b.getLoadedThemes()[0]}=d;if(cg(e)||ci(f))throw new at("Plain language does not have grammar state");if("ansi"===e)throw new at("ANSI language does not have grammar state");let{theme:g,colorMap:h}=b.setTheme(f),i=b.getLanguage(e);return new cs(cA(c,i,g,h,d).stateStack,i.name,g.name)})(b,...a),codeToTokensBase:(a,c)=>cz(b,a,c),codeToTokensWithThemes:(a,c)=>cC(b,a,c),codeToTokens:(a,c)=>cD(b,a,c),codeToHast:(a,c)=>cF(b,a,c),codeToHtml:(a,c)=>(function(a,b,c){let d={meta:{},options:c,codeToHast:(b,c)=>cF(a,b,c),codeToTokens:(b,c)=>cD(a,b,c)},e=cG(cF(a,b,c,d));for(let a of cu(c))e=a.postprocess?.call(d,e,c)||e;return e})(b,a,c),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...b,getInternalContext:()=>b}}let cT=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>c.e(2532).then(c.bind(c,32532))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>c.e(3231).then(c.bind(c,73231))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>c.e(3872).then(c.bind(c,53872))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>c.e(9441).then(c.bind(c,89441))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>c.e(6483).then(c.bind(c,66483))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>c.e(5536).then(c.bind(c,55536))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>c.e(3943).then(c.bind(c,3943))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>c.e(2981).then(c.bind(c,72981))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>c.e(6834).then(c.bind(c,56834))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>c.e(3915).then(c.bind(c,13915))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>c.e(164).then(c.bind(c,60164))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>c.e(8876).then(c.bind(c,68876))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>c.e(2618).then(c.bind(c,92618))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>c.e(2282).then(c.bind(c,2282))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>c.e(9431).then(c.bind(c,79431))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>c.e(3578).then(c.bind(c,43578))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>c.e(9754).then(c.bind(c,59754))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>c.e(8682).then(c.bind(c,68682))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>c.e(9402).then(c.bind(c,47021))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>c.e(5048).then(c.bind(c,95048))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>c.e(6962).then(c.bind(c,16962))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>c.e(3651).then(c.bind(c,13651))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>c.e(120).then(c.bind(c,30120))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>c.e(8610).then(c.bind(c,48610))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>c.e(8723).then(c.bind(c,48723))},{id:"houston",displayName:"Houston",type:"dark",import:()=>c.e(3626).then(c.bind(c,23626))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>c.e(681).then(c.bind(c,70681))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>c.e(9921).then(c.bind(c,19921))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>c.e(4435).then(c.bind(c,64435))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>c.e(2354).then(c.bind(c,92354))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>c.e(989).then(c.bind(c,50989))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>c.e(383).then(c.bind(c,40383))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>c.e(1089).then(c.bind(c,41089))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>c.e(4385).then(c.bind(c,94385))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>c.e(9942).then(c.bind(c,59942))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>c.e(9394).then(c.bind(c,69394))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>c.e(9813).then(c.bind(c,59813))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>c.e(2547).then(c.bind(c,52547))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>c.e(8482).then(c.bind(c,68482))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>c.e(3487).then(c.bind(c,23487))},{id:"nord",displayName:"Nord",type:"dark",import:()=>c.e(9423).then(c.bind(c,89423))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>c.e(4075).then(c.bind(c,54075))},{id:"one-light",displayName:"One Light",type:"light",import:()=>c.e(2135).then(c.bind(c,32135))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>c.e(180).then(c.bind(c,50180))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>c.e(406).then(c.bind(c,60406))},{id:"red",displayName:"Red",type:"dark",import:()=>c.e(3181).then(c.bind(c,73181))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>c.e(1044).then(c.bind(c,51044))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>c.e(4779).then(c.bind(c,34779))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>c.e(9150).then(c.bind(c,59150))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>c.e(5585).then(c.bind(c,15585))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>c.e(3836).then(c.bind(c,73836))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>c.e(8478).then(c.bind(c,88478))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>c.e(8270).then(c.bind(c,98270))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>c.e(870).then(c.bind(c,870))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>c.e(806).then(c.bind(c,40806))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>c.e(9775).then(c.bind(c,99775))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>c.e(7287).then(c.bind(c,37287))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>c.e(8619).then(c.bind(c,28619))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>c.e(7414).then(c.bind(c,47414))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>c.e(1646).then(c.bind(c,41646))}].map(a=>[a.id,a.import]));class cU extends Error{constructor(a){super(a),this.name="ShikiError"}}function cV(){return"undefined"!=typeof performance?performance.now():Date.now()}let cW=(a,b)=>a+(b-a%b)%b;async function cX(a){let b,c,d={};function e(a){c=a,d.HEAPU8=new Uint8Array(a),d.HEAPU32=new Uint32Array(a)}let f="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function g(a,b){return a?function(a,b,c=1024){let d=b+c,e=b;for(;a[e]&&!(e>=d);)++e;if(e-b>16&&a.buffer&&f)return f.decode(a.subarray(b,e));let g="";for(;b<e;){let c=a[b++];if(!(128&c)){g+=String.fromCharCode(c);continue}let d=63&a[b++];if((224&c)==192){g+=String.fromCharCode((31&c)<<6|d);continue}let e=63&a[b++];if((c=(240&c)==224?(15&c)<<12|d<<6|e:(7&c)<<18|d<<12|e<<6|63&a[b++])<65536)g+=String.fromCharCode(c);else{let a=c-65536;g+=String.fromCharCode(55296|a>>10,56320|1023&a)}}return g}(d.HEAPU8,a,b):""}let h={emscripten_get_now:cV,emscripten_memcpy_big:function(a,b,c){d.HEAPU8.copyWithin(a,b,b+c)},emscripten_resize_heap:function(a){let f=d.HEAPU8.length;if((a>>>=0)>0x80000000)return!1;for(let d=1;d<=4;d*=2){let g=f*(1+.2/d);if(g=Math.min(g,a+0x6000000),function(a){try{return b.grow(a-c.byteLength+65535>>>16),e(b.buffer),1}catch{}}(Math.min(0x80000000,cW(Math.max(a,g),65536))))return!0}return!1},fd_write:()=>0};async function i(){let c=await a({env:h,wasi_snapshot_preview1:h});e((b=c.memory).buffer),Object.assign(d,c),d.UTF8ToString=g}return await i(),d}var cY=Object.defineProperty,cZ=(a,b,c)=>((a,b,c)=>b in a?cY(a,b,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[b]=c)(a,"symbol"!=typeof b?b+"":b,c);let c$=null;class c_{constructor(a){cZ(this,"utf16Length"),cZ(this,"utf8Length"),cZ(this,"utf16Value"),cZ(this,"utf8Value"),cZ(this,"utf16OffsetToUtf8"),cZ(this,"utf8OffsetToUtf16");let b=a.length,c=c_._utf8ByteLength(a),d=c!==b,e=d?new Uint32Array(b+1):null;d&&(e[b]=c);let f=d?new Uint32Array(c+1):null;d&&(f[c]=b);let g=new Uint8Array(c),h=0;for(let c=0;c<b;c++){let i=a.charCodeAt(c),j=i,k=!1;if(i>=55296&&i<=56319&&c+1<b){let b=a.charCodeAt(c+1);b>=56320&&b<=57343&&(j=(i-55296<<10)+65536|b-56320,k=!0)}d&&(e[c]=h,k&&(e[c+1]=h),j<=127?f[h+0]=c:j<=2047?(f[h+0]=c,f[h+1]=c):j<=65535?(f[h+0]=c,f[h+1]=c,f[h+2]=c):(f[h+0]=c,f[h+1]=c,f[h+2]=c,f[h+3]=c)),j<=127?g[h++]=j:(j<=2047?g[h++]=192|(1984&j)>>>6:(j<=65535?g[h++]=224|(61440&j)>>>12:(g[h++]=240|(1835008&j)>>>18,g[h++]=128|(258048&j)>>>12),g[h++]=128|(4032&j)>>>6),g[h++]=128|(63&j)>>>0),k&&c++}this.utf16Length=b,this.utf8Length=c,this.utf16Value=a,this.utf8Value=g,this.utf16OffsetToUtf8=e,this.utf8OffsetToUtf16=f}static _utf8ByteLength(a){let b=0;for(let c=0,d=a.length;c<d;c++){let e=a.charCodeAt(c),f=e,g=!1;if(e>=55296&&e<=56319&&c+1<d){let b=a.charCodeAt(c+1);b>=56320&&b<=57343&&(f=(e-55296<<10)+65536|b-56320,g=!0)}f<=127?b+=1:f<=2047?b+=2:f<=65535?b+=3:b+=4,g&&c++}return b}createString(a){let b=a.omalloc(this.utf8Length);return a.HEAPU8.set(this.utf8Value,b),b}}let c0=class a{constructor(b){if(cZ(this,"id",++a.LAST_ID),cZ(this,"_onigBinding"),cZ(this,"content"),cZ(this,"utf16Length"),cZ(this,"utf8Length"),cZ(this,"utf16OffsetToUtf8"),cZ(this,"utf8OffsetToUtf16"),cZ(this,"ptr"),!c$)throw new cU("Must invoke loadWasm first.");this._onigBinding=c$,this.content=b;let c=new c_(b);this.utf16Length=c.utf16Length,this.utf8Length=c.utf8Length,this.utf16OffsetToUtf8=c.utf16OffsetToUtf8,this.utf8OffsetToUtf16=c.utf8OffsetToUtf16,this.utf8Length<1e4&&!a._sharedPtrInUse?(a._sharedPtr||(a._sharedPtr=c$.omalloc(1e4)),a._sharedPtrInUse=!0,c$.HEAPU8.set(c.utf8Value,a._sharedPtr),this.ptr=a._sharedPtr):this.ptr=c.createString(c$)}convertUtf8OffsetToUtf16(a){return this.utf8OffsetToUtf16?a<0?0:a>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[a]:a}convertUtf16OffsetToUtf8(a){return this.utf16OffsetToUtf8?a<0?0:a>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[a]:a}dispose(){this.ptr===a._sharedPtr?a._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};cZ(c0,"LAST_ID",0),cZ(c0,"_sharedPtr",0),cZ(c0,"_sharedPtrInUse",!1);class c1{constructor(a){if(cZ(this,"_onigBinding"),cZ(this,"_ptr"),!c$)throw new cU("Must invoke loadWasm first.");let b=[],c=[];for(let d=0,e=a.length;d<e;d++){let e=new c_(a[d]);b[d]=e.createString(c$),c[d]=e.utf8Length}let d=c$.omalloc(4*a.length);c$.HEAPU32.set(b,d/4);let e=c$.omalloc(4*a.length);c$.HEAPU32.set(c,e/4);let f=c$.createOnigScanner(d,e,a.length);for(let c=0,d=a.length;c<d;c++)c$.ofree(b[c]);c$.ofree(e),c$.ofree(d),0===f&&function(a){throw new cU(a.UTF8ToString(a.getLastOnigError()))}(c$),this._onigBinding=c$,this._ptr=f}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(a,b,c){let d=0;if("number"==typeof c&&(d=c),"string"==typeof a){a=new c0(a);let c=this._findNextMatchSync(a,b,!1,d);return a.dispose(),c}return this._findNextMatchSync(a,b,!1,d)}_findNextMatchSync(a,b,c,d){let e=this._onigBinding,f=e.findNextOnigScannerMatch(this._ptr,a.id,a.ptr,a.utf8Length,a.convertUtf16OffsetToUtf8(b),d);if(0===f)return null;let g=e.HEAPU32,h=f/4,i=g[h++],j=g[h++],k=[];for(let b=0;b<j;b++){let c=a.convertUtf8OffsetToUtf16(g[h++]),d=a.convertUtf8OffsetToUtf16(g[h++]);k[b]={start:c,end:d,length:d-c}}return{index:i,captureIndices:k}}}function c2(a){return b=>WebAssembly.instantiate(a,b)}async function c3(a){return a&&await (e||(e=async function(){c$=await cX(async b=>{let c=a;if("function"==typeof(c=await c)&&(c=await c(b)),"function"==typeof c&&(c=await c(b)),"function"==typeof c.instantiator)c=await c.instantiator(b);else if("function"==typeof c.default)c=await c.default(b);else{var d,e,f,g;if(void 0!==c.data&&(c=c.data),d=c,"undefined"!=typeof Response&&d instanceof Response){c="function"==typeof WebAssembly.instantiateStreaming?await (f=c,a=>WebAssembly.instantiateStreaming(f,a))(b):await (g=c,async a=>{let b=await g.arrayBuffer();return WebAssembly.instantiate(b,a)})(b)}else(e=c,"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||"undefined"!=typeof Buffer&&Buffer.isBuffer?.(e)||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&e instanceof Uint32Array||c instanceof WebAssembly.Module)?c=await c2(c)(b):"default"in c&&c.default instanceof WebAssembly.Module&&(c=await c2(c.default)(b))}return"instance"in c&&(c=c.instance),"exports"in c&&(c=c.exports),c})}())),{createScanner:a=>new c1(a.map(a=>"string"==typeof a?a:a.source)),createString:a=>new c0(a)}}let c4=function(a){let b=a.langs,c=a.themes,d=a.engine;return async function(a){function e(c){if("string"==typeof c){if(ch(c))return[];let d=b[c=a.langAlias?.[c]||c];if(!d)throw new at(`Language \`${c}\` is not included in this bundle. You may want to load it from external source.`);return d}return c}function f(a){if(ci(a))return"none";if("string"==typeof a){let b=c[a];if(!b)throw new at(`Theme \`${a}\` is not included in this bundle. You may want to load it from external source.`);return b}return a}let g=(a.themes??[]).map(a=>f(a)),h=(a.langs??[]).map(a=>e(a)),i=await cS({engine:a.engine??d(),...a,themes:g,langs:h});return{...i,loadLanguage:(...a)=>i.loadLanguage(...a.map(e)),loadTheme:(...a)=>i.loadTheme(...a.map(f)),getBundledLanguages:()=>b,getBundledThemes:()=>c}}}({langs:as,themes:cT,engine:()=>c3(c.e(9309).then(c.bind(c,79309)))});function c5(a){if(1!=[...a].length)throw Error(`Expected "${a}" to be a single code point`);return a.codePointAt(0)}let c6=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),c7=String.raw;function c8(a,b){if(null==a)throw Error(b??"Value expected");return a}let c9=c7`\[\^?`,da=`c.? | C(?:-.?)?|${c7`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${c7`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${c7`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${c7`o\{[^\}]*\}?`}|${c7`\d{1,3}`}`,db=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,dc=RegExp(c7`
|
|
2
2
|
\\ (?:
|
|
3
3
|
${da}
|
|
4
4
|
| [gk]<[^>]*>?
|