nuxt-og-image 2.0.0-beta.8 → 2.0.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/README.md +18 -517
- package/dist/client/200.html +2 -2
- package/dist/client/404.html +2 -2
- package/dist/client/_nuxt/IconCSS.48ffa50d.js +1 -0
- package/dist/client/_nuxt/IconCSS.b41b9663.css +1 -0
- package/dist/client/_nuxt/ImageLoader.51157bac.js +1 -0
- package/dist/client/_nuxt/ImageLoader.7571516f.css +1 -0
- package/dist/client/_nuxt/entry.1311cc29.css +1 -0
- package/dist/client/_nuxt/entry.74c20cae.js +143 -0
- package/dist/client/_nuxt/{error-404.f5dc80fe.js → error-404.102f7671.js} +1 -1
- package/dist/client/_nuxt/error-404.f3dd5020.css +1 -0
- package/dist/client/_nuxt/error-500.06915589.css +1 -0
- package/dist/client/_nuxt/{error-500.a1082086.js → error-500.f8617a9a.js} +1 -1
- package/dist/client/_nuxt/index.212ef337.js +1 -0
- package/dist/client/_nuxt/index.ffbea0a9.css +1 -0
- package/dist/client/_nuxt/options.fa4f11fe.js +1 -0
- package/dist/client/_nuxt/png.eb47fcca.js +1 -0
- package/dist/client/_nuxt/{shiki.665f08b3.js → shiki.b89869e1.js} +1 -1
- package/dist/client/_nuxt/svg.04901249.js +1 -0
- package/dist/client/_nuxt/vnodes.b05f3d68.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/client/options/index.html +2 -2
- package/dist/client/png/index.html +2 -2
- package/dist/client/svg/index.html +2 -2
- package/dist/client/vnodes/index.html +2 -2
- package/dist/module.d.ts +101 -11
- package/dist/module.json +2 -2
- package/dist/module.mjs +374 -118
- package/dist/runtime/browserUtil.d.ts +1 -0
- package/dist/runtime/browserUtil.mjs +7 -5
- package/dist/runtime/components/{OgImageDynamic.d.ts → OgImage/Cached.d.ts} +2 -2
- package/dist/runtime/components/OgImage/Cached.mjs +10 -0
- package/dist/runtime/components/OgImage/Dynamic.d.ts +8 -0
- package/dist/runtime/components/{OgImageDynamic.mjs → OgImage/Dynamic.mjs} +3 -3
- package/dist/runtime/components/{OgImageScreenshot.d.ts → OgImage/Screenshot.d.ts} +2 -2
- package/dist/runtime/components/{OgImageScreenshot.mjs → OgImage/Screenshot.mjs} +2 -2
- package/dist/runtime/components/OgImage/Static.d.ts +8 -0
- package/dist/runtime/components/{OgImageStatic.mjs → OgImage/Static.mjs} +3 -3
- package/dist/runtime/components/{OgImageStatic.d.ts → OgImage/WithoutCache.d.ts} +2 -2
- package/dist/runtime/components/OgImage/WithoutCache.mjs +10 -0
- package/dist/runtime/components/OgImage/index.d.ts +5 -0
- package/dist/runtime/components/OgImage/index.mjs +10 -0
- package/dist/runtime/components/OgImageTemplate/Fallback.vue +156 -0
- package/dist/runtime/composables/defineOgImage.d.ts +12 -4
- package/dist/runtime/composables/defineOgImage.mjs +31 -49
- package/dist/runtime/composables/util.d.ts +2 -0
- package/dist/runtime/composables/util.mjs +26 -0
- package/dist/runtime/nitro/middleware/og.png.mjs +54 -8
- package/dist/runtime/nitro/plugins/prerender.d.ts +3 -0
- package/dist/runtime/nitro/plugins/prerender.mjs +28 -0
- package/dist/runtime/nitro/providers/browser/lambda.d.ts +1 -1
- package/dist/runtime/nitro/providers/browser/lambda.mjs +3 -3
- package/dist/runtime/nitro/providers/browser/{node.mjs → playwright.mjs} +0 -9
- package/dist/runtime/nitro/providers/browser/universal.d.ts +1 -0
- package/dist/runtime/nitro/providers/browser/universal.mjs +33 -0
- package/dist/runtime/nitro/providers/png/resvg-node.d.ts +4 -0
- package/dist/runtime/nitro/providers/png/resvg-node.mjs +6 -0
- package/dist/runtime/nitro/providers/png/resvg-wasm.d.ts +3 -0
- package/dist/runtime/nitro/providers/png/resvg-wasm.mjs +11 -0
- package/dist/runtime/nitro/providers/{svg2png/universal.d.ts → png/svg2png.d.ts} +2 -3
- package/dist/runtime/nitro/providers/png/svg2png.mjs +11 -0
- package/dist/runtime/nitro/providers/satori/{webworker.d.ts → yoga-wasm.d.ts} +2 -3
- package/dist/runtime/nitro/providers/satori/{webworker.mjs → yoga-wasm.mjs} +4 -5
- package/dist/runtime/nitro/renderers/browser.d.ts +2 -2
- package/dist/runtime/nitro/renderers/browser.mjs +14 -12
- package/dist/runtime/nitro/renderers/satori/index.d.ts +2 -2
- package/dist/runtime/nitro/renderers/satori/index.mjs +27 -32
- package/dist/runtime/nitro/renderers/satori/plugins/emojis.d.ts +1 -1
- package/dist/runtime/nitro/renderers/satori/plugins/emojis.mjs +19 -6
- package/dist/runtime/nitro/renderers/satori/plugins/encoding.d.ts +1 -1
- package/dist/runtime/nitro/renderers/satori/plugins/encoding.mjs +5 -7
- package/dist/runtime/nitro/renderers/satori/plugins/flex.d.ts +1 -1
- package/dist/runtime/nitro/renderers/satori/plugins/flex.mjs +8 -10
- package/dist/runtime/nitro/renderers/satori/plugins/imageSrc.d.ts +1 -1
- package/dist/runtime/nitro/renderers/satori/plugins/imageSrc.mjs +45 -13
- package/dist/runtime/nitro/renderers/satori/plugins/twClasses.d.ts +1 -1
- package/dist/runtime/nitro/renderers/satori/plugins/twClasses.mjs +5 -7
- package/dist/runtime/nitro/renderers/satori/utils.d.ts +4 -5
- package/dist/runtime/nitro/renderers/satori/utils.mjs +28 -17
- package/dist/runtime/nitro/routes/debug.d.ts +8 -0
- package/dist/runtime/nitro/routes/debug.mjs +14 -0
- package/dist/runtime/nitro/routes/font.mjs +2 -2
- package/dist/runtime/nitro/routes/html.mjs +100 -26
- package/dist/runtime/nitro/routes/options.d.ts +2 -2
- package/dist/runtime/nitro/routes/options.mjs +21 -20
- package/dist/runtime/nitro/routes/svg.mjs +2 -2
- package/dist/runtime/nitro/routes/vnode.mjs +2 -2
- package/dist/runtime/nitro/utils-pure.d.ts +2 -2
- package/dist/runtime/nitro/utils-pure.mjs +1 -4
- package/dist/runtime/nitro/utils.d.ts +11 -11
- package/dist/runtime/nitro/utils.mjs +67 -53
- package/dist/runtime/public-assets/__nuxt_og_image__/browser-provider-not-supported.png +0 -0
- package/dist/runtime/public-assets-optional/resvg/resvg.wasm +0 -0
- package/dist/types.d.ts +6 -0
- package/package.json +38 -27
- package/dist/client/_nuxt/IconCSS.e4ca33fe.js +0 -1
- package/dist/client/_nuxt/ImageLoader.b3a6a884.js +0 -1
- package/dist/client/_nuxt/entry.0bddba71.js +0 -5
- package/dist/client/_nuxt/entry.b37a20ad.css +0 -1
- package/dist/client/_nuxt/error-404.1469f10f.css +0 -1
- package/dist/client/_nuxt/error-500.92b94fae.css +0 -1
- package/dist/client/_nuxt/error-component.a28c293c.js +0 -3
- package/dist/client/_nuxt/index.7dc20983.js +0 -1
- package/dist/client/_nuxt/options.97e2328c.js +0 -1
- package/dist/client/_nuxt/png.50aa137a.js +0 -1
- package/dist/client/_nuxt/svg.d633e908.js +0 -1
- package/dist/client/_nuxt/vnodes.63ee1c3b.js +0 -1
- package/dist/runtime/components/OgImageBasic.island.vue +0 -92
- package/dist/runtime/nitro/providers/svg2png/universal.mjs +0 -9
- /package/dist/runtime/nitro/providers/browser/{node.d.ts → playwright.d.ts} +0 -0
- /package/dist/runtime/nitro/providers/satori/{node.d.ts → default.d.ts} +0 -0
- /package/dist/runtime/nitro/providers/satori/{node.mjs → default.mjs} +0 -0
- /package/dist/runtime/{public-assets → public-assets-optional/inter-font}/inter-latin-ext-400-normal.woff +0 -0
- /package/dist/runtime/{public-assets → public-assets-optional/inter-font}/inter-latin-ext-700-normal.woff +0 -0
- /package/dist/runtime/{public-assets → public-assets-optional/svg2png}/svg2png.wasm +0 -0
- /package/dist/runtime/{public-assets → public-assets-optional/yoga}/yoga.wasm +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{_ as a,u as n,o as r,c as l,a as e,t as s,b as c,w as d,d as p,e as f,p as x,f as h}from"./entry.74c20cae.js";const m=t=>(x("data-v-ac41e552"),t=t(),h(),t),u={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},g=m(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),_={class:"max-w-520px text-center z-20"},b=["textContent"],w=["textContent"],y={class:"w-full flex items-center justify-center"},S={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const o=t;return n({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(k,v)=>{const i=f;return r(),l("div",u,[g,e("div",_,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,b),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,w),e("div",y,[c(i,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:d(()=>[p(s(t.backHome),1)]),_:1})])])])}}},z=a(S,[["__scopeId","data-v-ac41e552"]]);export{z as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.spotlight[data-v-ac41e552]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);bottom:-30vh;filter:blur(20vh);height:40vh}.gradient-border[data-v-ac41e552]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:.5rem;position:relative}@media (prefers-color-scheme:light){.gradient-border[data-v-ac41e552]{background-color:#ffffff4d}.gradient-border[data-v-ac41e552]:before{background:linear-gradient(90deg,#e2e2e2,#e2e2e2 25%,#00dc82 50%,#36e4da 75%,#0047e1)}}@media (prefers-color-scheme:dark){.gradient-border[data-v-ac41e552]{background-color:#1414144d}.gradient-border[data-v-ac41e552]:before{background:linear-gradient(90deg,#303030,#303030 25%,#00dc82 50%,#36e4da 75%,#0047e1)}}.gradient-border[data-v-ac41e552]:before{background-size:400% auto;border-radius:.5rem;content:"";inset:0;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.5;padding:2px;position:absolute;transition:background-position .3s ease-in-out,opacity .2s ease-in-out;width:100%}.gradient-border[data-v-ac41e552]:hover:before{background-position:-50% 0;opacity:1}.bg-white[data-v-ac41e552]{--tw-bg-opacity:1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.cursor-pointer[data-v-ac41e552]{cursor:pointer}.flex[data-v-ac41e552]{display:flex}.grid[data-v-ac41e552]{display:grid}.place-content-center[data-v-ac41e552]{place-content:center}.items-center[data-v-ac41e552]{align-items:center}.justify-center[data-v-ac41e552]{justify-content:center}.font-sans[data-v-ac41e552]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-medium[data-v-ac41e552]{font-weight:500}.font-light[data-v-ac41e552]{font-weight:300}.text-8xl[data-v-ac41e552]{font-size:6rem;line-height:1}.text-xl[data-v-ac41e552]{font-size:1.25rem;line-height:1.75rem}.leading-tight[data-v-ac41e552]{line-height:1.25}.mb-8[data-v-ac41e552]{margin-bottom:2rem}.mb-16[data-v-ac41e552]{margin-bottom:4rem}.max-w-520px[data-v-ac41e552]{max-width:520px}.min-h-screen[data-v-ac41e552]{min-height:100vh}.overflow-hidden[data-v-ac41e552]{overflow:hidden}.px-8[data-v-ac41e552]{padding-left:2rem;padding-right:2rem}.py-2[data-v-ac41e552]{padding-bottom:.5rem;padding-top:.5rem}.px-4[data-v-ac41e552]{padding-left:1rem;padding-right:1rem}.fixed[data-v-ac41e552]{position:fixed}.left-0[data-v-ac41e552]{left:0}.right-0[data-v-ac41e552]{right:0}.text-center[data-v-ac41e552]{text-align:center}.text-black[data-v-ac41e552]{--tw-text-opacity:1;color:rgba(0,0,0,var(--tw-text-opacity))}.antialiased[data-v-ac41e552]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.w-full[data-v-ac41e552]{width:100%}.z-10[data-v-ac41e552]{z-index:10}.z-20[data-v-ac41e552]{z-index:20}@media (min-width:640px){.sm\:text-4xl[data-v-ac41e552]{font-size:2.25rem;line-height:2.5rem}.sm\:text-xl[data-v-ac41e552]{font-size:1.25rem;line-height:1.75rem}.sm\:text-10xl[data-v-ac41e552]{font-size:10rem;line-height:1}.sm\:px-0[data-v-ac41e552]{padding-left:0;padding-right:0}.sm\:py-3[data-v-ac41e552]{padding-bottom:.75rem;padding-top:.75rem}.sm\:px-6[data-v-ac41e552]{padding-left:1.5rem;padding-right:1.5rem}}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-ac41e552]{--tw-bg-opacity:1;background-color:rgba(0,0,0,var(--tw-bg-opacity))}.dark\:text-white[data-v-ac41e552]{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.spotlight[data-v-35000bea]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);filter:blur(20vh)}.bg-white[data-v-35000bea]{--tw-bg-opacity:1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.grid[data-v-35000bea]{display:grid}.place-content-center[data-v-35000bea]{place-content:center}.font-sans[data-v-35000bea]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-medium[data-v-35000bea]{font-weight:500}.font-light[data-v-35000bea]{font-weight:300}.h-1\/2[data-v-35000bea]{height:50%}.text-8xl[data-v-35000bea]{font-size:6rem;line-height:1}.text-xl[data-v-35000bea]{font-size:1.25rem;line-height:1.75rem}.leading-tight[data-v-35000bea]{line-height:1.25}.mb-8[data-v-35000bea]{margin-bottom:2rem}.mb-16[data-v-35000bea]{margin-bottom:4rem}.max-w-520px[data-v-35000bea]{max-width:520px}.min-h-screen[data-v-35000bea]{min-height:100vh}.overflow-hidden[data-v-35000bea]{overflow:hidden}.px-8[data-v-35000bea]{padding-left:2rem;padding-right:2rem}.fixed[data-v-35000bea]{position:fixed}.left-0[data-v-35000bea]{left:0}.right-0[data-v-35000bea]{right:0}.-bottom-1\/2[data-v-35000bea]{bottom:-50%}.text-center[data-v-35000bea]{text-align:center}.text-black[data-v-35000bea]{--tw-text-opacity:1;color:rgba(0,0,0,var(--tw-text-opacity))}.antialiased[data-v-35000bea]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:640px){.sm\:text-4xl[data-v-35000bea]{font-size:2.25rem;line-height:2.5rem}.sm\:text-10xl[data-v-35000bea]{font-size:10rem;line-height:1}.sm\:px-0[data-v-35000bea]{padding-left:0;padding-right:0}}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-35000bea]{--tw-bg-opacity:1;background-color:rgba(0,0,0,var(--tw-bg-opacity))}.dark\:text-white[data-v-35000bea]{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{_ as i,u as a,o as r,c as n,a as e,t as s,p as l,f as d}from"./entry.74c20cae.js";const c=t=>(l("data-v-35000bea"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},h=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),f={class:"max-w-520px text-center"},g=["textContent"],m=["textContent"],b={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const o=t;return a({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(x,u)=>(r(),n("div",p,[h,e("div",f,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,m)])]))}},w=i(b,[["__scopeId","data-v-35000bea"]]);export{w as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as y,r as u,h as k,i as W,j as t,k as b,l as d,m as B,u as D,n as S,q as F,o as $,c as H,a as I,s as w,v as s,_ as L,x as M,y as z,z as C,A as N,B as T,b as j,C as q}from"./entry.74c20cae.js";const A=["width","height"],V=y({__name:"IFrameLoader",props:{src:String,aspectRatio:Number,description:String},setup(i){const a=i,l=u(a.src),o=k(),c=u(),n=u(0),r=W(()=>{let e=c.value;e||(e=document.querySelector("#iframe-loader"));const p=Date.now();e.src="";const m=t.value.width,_=t.value.height,f=e.offsetHeight,v=e.offsetWidth,g=f>_?1:f/_,x=v>m?1:v/m,R=x>g?g:x;n.value=0,e.style.opacity="0",e.onload=()=>{e.style.opacity="1",n.value=Date.now()-p},e.src=`${l.value}&scale=${R}&mode=${o.value}`},200);b(()=>{d(()=>a.src,e=>{l.value=e,r()},{immediate:!0}),d([()=>B.value,o],()=>{r()})}),D({bodyAttrs:{onresize:()=>{r()}}});const h=S(()=>a.description.replace("%s",n.value.toString()));return d(h,e=>{F.value=e}),(e,p)=>($(),H("div",{class:"w-full mx-auto h-full justify-center flex",style:w({maxHeight:`${s(t).height}px`,maxWidth:`${s(t).width}px`})},[I("iframe",{id:"iframe-loader",ref_key:"iframe",ref:c,class:"max-h-full",style:w({aspectRatio:i.aspectRatio}),width:s(t).width,height:s(t).height},null,12,A)],4))}});const E=L(V,[["__scopeId","data-v-cc6e66d7"]]),G={class:"flex h-full w-full"},Q=y({__name:"index",setup(i){const a=t.value?.height||630,o=(t.value?.width||1200)/a,c=S(()=>M(`${T.value}/api/og-image-html`,{options:z.value,path:C.value,timestamp:N.value}));return(n,r)=>{const h=E;return $(),H("div",G,[j(h,{src:s(c),"aspect-ratio":o,description:"[HTML] Generated in %sms.",class:"max-h-full",onRefresh:s(q)},null,8,["src","onRefresh"])])}}});export{Q as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
iframe[data-v-cc6e66d7]{height:auto;margin:0 auto;max-width:100%;transition:.4s ease-in-out;width:auto}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t}from"./shiki.b89869e1.js";import{g as n,o,c as s,v as e,j as r}from"./entry.74c20cae.js";const a=["innerHTML"],f=n({__name:"options",setup(i){return(p,c)=>(o(),s("pre",{"of-auto":"","h-full":"","text-sm":"",style:{"white-space":"break-spaces"},innerHTML:e(t)(JSON.stringify(e(r),null,2),"json")},null,8,a))}});export{f as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as n}from"./ImageLoader.51157bac.js";import{g as r,j as e,n as i,x as c,A as _,y as p,D as u,o as m,E as g,v as h}from"./entry.74c20cae.js";const B=r({__name:"png",setup(l){const t=e.value?.height||630,s=(e.value?.width||1200)/t,a=i(()=>c(`${u.value}/__og_image__/og.png`,{timestamp:_.value,...p.value}));return(v,f)=>{const o=n;return m(),g(o,{src:h(a),"aspect-ratio":s,description:"[PNG] Generated in %sms using Satori & Resvg."},null,8,["src"])}}});export{B as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as We,k as qe}from"./entry.0bddba71.js";var Oe=typeof globalThis<"u"?globalThis:typeof{}<"u"?{}:typeof global<"u"?global:typeof self<"u"?self:{},_e={},He={get exports(){return _e},set exports(t){_e=t}};(function(t,y){(function(j,l){t.exports=l()})(Oe,()=>{return j={770:function(R,a,L){var k=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(a,"__esModule",{value:!0}),a.setDefaultDebugCall=a.createOnigScanner=a.createOnigString=a.loadWASM=a.OnigScanner=a.OnigString=void 0;const N=k(L(418));let r=null,w=!1;class m{static _utf8ByteLength(d){let u=0;for(let c=0,_=d.length;c<_;c++){const o=d.charCodeAt(c);let e=o,n=!1;if(o>=55296&&o<=56319&&c+1<_){const i=d.charCodeAt(c+1);i>=56320&&i<=57343&&(e=65536+(o-55296<<10)|i-56320,n=!0)}u+=e<=127?1:e<=2047?2:e<=65535?3:4,n&&c++}return u}constructor(d){const u=d.length,c=m._utf8ByteLength(d),_=c!==u,o=_?new Uint32Array(u+1):null;_&&(o[u]=c);const e=_?new Uint32Array(c+1):null;_&&(e[c]=u);const n=new Uint8Array(c);let i=0;for(let s=0;s<u;s++){const h=d.charCodeAt(s);let p=h,f=!1;if(h>=55296&&h<=56319&&s+1<u){const A=d.charCodeAt(s+1);A>=56320&&A<=57343&&(p=65536+(h-55296<<10)|A-56320,f=!0)}_&&(o[s]=i,f&&(o[s+1]=i),p<=127?e[i+0]=s:p<=2047?(e[i+0]=s,e[i+1]=s):p<=65535?(e[i+0]=s,e[i+1]=s,e[i+2]=s):(e[i+0]=s,e[i+1]=s,e[i+2]=s,e[i+3]=s)),p<=127?n[i++]=p:p<=2047?(n[i++]=192|(1984&p)>>>6,n[i++]=128|(63&p)>>>0):p<=65535?(n[i++]=224|(61440&p)>>>12,n[i++]=128|(4032&p)>>>6,n[i++]=128|(63&p)>>>0):(n[i++]=240|(1835008&p)>>>18,n[i++]=128|(258048&p)>>>12,n[i++]=128|(4032&p)>>>6,n[i++]=128|(63&p)>>>0),f&&s++}this.utf16Length=u,this.utf8Length=c,this.utf16Value=d,this.utf8Value=n,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=e}createString(d){const u=d._omalloc(this.utf8Length);return d.HEAPU8.set(this.utf8Value,u),u}}class b{constructor(d){if(this.id=++b.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=d;const u=new m(d);this.utf16Length=u.utf16Length,this.utf8Length=u.utf8Length,this.utf16OffsetToUtf8=u.utf16OffsetToUtf8,this.utf8OffsetToUtf16=u.utf8OffsetToUtf16,this.utf8Length<1e4&&!b._sharedPtrInUse?(b._sharedPtr||(b._sharedPtr=r._omalloc(1e4)),b._sharedPtrInUse=!0,r.HEAPU8.set(u.utf8Value,b._sharedPtr),this.ptr=b._sharedPtr):this.ptr=u.createString(r)}convertUtf8OffsetToUtf16(d){return this.utf8OffsetToUtf16?d<0?0:d>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[d]:d}convertUtf16OffsetToUtf8(d){return this.utf16OffsetToUtf8?d<0?0:d>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[d]:d}dispose(){this.ptr===b._sharedPtr?b._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}a.OnigString=b,b.LAST_ID=0,b._sharedPtr=0,b._sharedPtrInUse=!1;class T{constructor(d){if(!r)throw new Error("Must invoke loadWASM first.");const u=[],c=[];for(let n=0,i=d.length;n<i;n++){const s=new m(d[n]);u[n]=s.createString(r),c[n]=s.utf8Length}const _=r._omalloc(4*d.length);r.HEAPU32.set(u,_/4);const o=r._omalloc(4*d.length);r.HEAPU32.set(c,o/4);const e=r._createOnigScanner(_,o,d.length);for(let n=0,i=d.length;n<i;n++)r._ofree(u[n]);r._ofree(o),r._ofree(_),e===0&&function(n){throw new Error(n.UTF8ToString(n._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=e}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(d,u,c){let _=w,o=0;if(typeof c=="number"?(8&c&&(_=!0),o=c):typeof c=="boolean"&&(_=c),typeof d=="string"){d=new b(d);const e=this._findNextMatchSync(d,u,_,o);return d.dispose(),e}return this._findNextMatchSync(d,u,_,o)}_findNextMatchSync(d,u,c,_){const o=this._onigBinding;let e;if(e=c?o._findNextOnigScannerMatchDbg(this._ptr,d.id,d.ptr,d.utf8Length,d.convertUtf16OffsetToUtf8(u),_):o._findNextOnigScannerMatch(this._ptr,d.id,d.ptr,d.utf8Length,d.convertUtf16OffsetToUtf8(u),_),e===0)return null;const n=o.HEAPU32;let i=e/4;const s=n[i++],h=n[i++];let p=[];for(let f=0;f<h;f++){const A=d.convertUtf8OffsetToUtf16(n[i++]),x=d.convertUtf8OffsetToUtf16(n[i++]);p[f]={start:A,end:x,length:x-A}}return{index:s,captureIndices:p}}}a.OnigScanner=T;let g=!1,S=null;a.loadWASM=function(v){if(g)return S;let d,u,c,_;if(g=!0,function(o){return typeof o.instantiator=="function"}(v))d=v.instantiator,u=v.print;else{let o;(function(e){return e.data!==void 0})(v)?(o=v.data,u=v.print):o=v,d=function(e){return typeof Response<"u"&&e instanceof Response}(o)?typeof WebAssembly.instantiateStreaming=="function"?function(e){return n=>WebAssembly.instantiateStreaming(e,n)}(o):function(e){return async n=>{const i=await e.arrayBuffer();return WebAssembly.instantiate(i,n)}}(o):function(e){return n=>WebAssembly.instantiate(e,n)}(o)}return S=new Promise((o,e)=>{c=o,_=e}),function(o,e,n,i){(0,N.default)({print:e,instantiateWasm:(s,h)=>{if(typeof performance>"u"){const p=()=>Date.now();s.env.emscripten_get_now=p,s.wasi_snapshot_preview1.emscripten_get_now=p}return o(s).then(p=>h(p.instance),i),{}}}).then(s=>{r=s,n()})}(d,u,c,_),S},a.createOnigString=function(v){return new b(v)},a.createOnigScanner=function(v){return new T(v)},a.setDefaultDebugCall=function(v){w=v}},418:R=>{var a=(typeof document<"u"&&document.currentScript&&document.currentScript.src,function(L){var k,N,r=(L=L||{})!==void 0?L:{};r.ready=new Promise(function(I,E){k=I,N=E});var w,m=Object.assign({},r),b=!1,T="";function g(I){return r.locateFile?r.locateFile(I,T):T+I}w=function(I){let E;return typeof readbuffer=="function"?new Uint8Array(readbuffer(I)):(E=read(I,"binary"),_(typeof E=="object"),E)},typeof scriptArgs<"u"&&scriptArgs,typeof onig_print<"u"&&(typeof console>"u"&&(console={}),console.log=onig_print,console.warn=console.error=typeof printErr<"u"?printErr:onig_print);var S,v,d=r.print||console.log.bind(console),u=r.printErr||console.warn.bind(console);Object.assign(r,m),m=null,r.arguments&&r.arguments,r.thisProgram&&r.thisProgram,r.quit&&r.quit,r.wasmBinary&&(S=r.wasmBinary),r.noExitRuntime,typeof WebAssembly!="object"&&D("no native wasm support detected");var c=!1;function _(I,E){I||D(E)}var o,e,n,i=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function s(I,E,X){for(var te=E+X,H=E;I[H]&&!(H>=te);)++H;if(H-E>16&&I.buffer&&i)return i.decode(I.subarray(E,H));for(var W="";E<H;){var Y=I[E++];if(128&Y){var he=63&I[E++];if((224&Y)!=192){var ge=63&I[E++];if((Y=(240&Y)==224?(15&Y)<<12|he<<6|ge:(7&Y)<<18|he<<12|ge<<6|63&I[E++])<65536)W+=String.fromCharCode(Y);else{var je=Y-65536;W+=String.fromCharCode(55296|je>>10,56320|1023&je)}}else W+=String.fromCharCode((31&Y)<<6|he)}else W+=String.fromCharCode(Y)}return W}function h(I,E){return I?s(e,I,E):""}function p(I){o=I,r.HEAP8=new Int8Array(I),r.HEAP16=new Int16Array(I),r.HEAP32=new Int32Array(I),r.HEAPU8=e=new Uint8Array(I),r.HEAPU16=new Uint16Array(I),r.HEAPU32=n=new Uint32Array(I),r.HEAPF32=new Float32Array(I),r.HEAPF64=new Float64Array(I)}r.INITIAL_MEMORY;var f=[],A=[],x=[];function O(){if(r.preRun)for(typeof r.preRun=="function"&&(r.preRun=[r.preRun]);r.preRun.length;)U(r.preRun.shift());ne(f)}function G(){ne(A)}function z(){if(r.postRun)for(typeof r.postRun=="function"&&(r.postRun=[r.postRun]);r.postRun.length;)C(r.postRun.shift());ne(x)}function U(I){f.unshift(I)}function B(I){A.unshift(I)}function C(I){x.unshift(I)}var V=0,q=null;function F(I){V++,r.monitorRunDependencies&&r.monitorRunDependencies(V)}function M(I){if(V--,r.monitorRunDependencies&&r.monitorRunDependencies(V),V==0&&q){var E=q;q=null,E()}}function D(I){r.onAbort&&r.onAbort(I),u(I="Aborted("+I+")"),c=!0,I+=". Build with -sASSERTIONS for more info.";var E=new WebAssembly.RuntimeError(I);throw N(E),E}var J,P,Q="data:application/octet-stream;base64,";function $(I){return I.startsWith(Q)}function ee(I){try{if(I==J&&S)return new Uint8Array(S);if(w)return w(I);throw"both async and sync fetching of the wasm failed"}catch(E){D(E)}}function ae(){return S||!b||typeof fetch!="function"?Promise.resolve().then(function(){return ee(J)}):fetch(J,{credentials:"same-origin"}).then(function(I){if(!I.ok)throw"failed to load wasm binary file at '"+J+"'";return I.arrayBuffer()}).catch(function(){return ee(J)})}function de(){var I={env:le,wasi_snapshot_preview1:le};function E(H,W){var Y=H.exports;r.asm=Y,p((v=r.asm.memory).buffer),r.asm.__indirect_function_table,B(r.asm.__wasm_call_ctors),M()}function X(H){E(H.instance)}function te(H){return ae().then(function(W){return WebAssembly.instantiate(W,I)}).then(function(W){return W}).then(H,function(W){u("failed to asynchronously prepare wasm: "+W),D(W)})}if(F(),r.instantiateWasm)try{return r.instantiateWasm(I,E)}catch(H){u("Module.instantiateWasm callback failed with error: "+H),N(H)}return(S||typeof WebAssembly.instantiateStreaming!="function"||$(J)||typeof fetch!="function"?te(X):fetch(J,{credentials:"same-origin"}).then(function(H){return WebAssembly.instantiateStreaming(H,I).then(X,function(W){return u("wasm streaming compile failed: "+W),u("falling back to ArrayBuffer instantiation"),te(X)})})).catch(N),{}}function ne(I){for(;I.length>0;)I.shift()(r)}function se(I,E,X){e.copyWithin(I,E,E+X)}function ue(I){try{return v.grow(I-o.byteLength+65535>>>16),p(v.buffer),1}catch{}}function ie(I){var E,X=e.length,te=2147483648;if((I>>>=0)>te)return!1;for(var H=1;H<=4;H*=2){var W=X*(1+.2/H);if(W=Math.min(W,I+100663296),ue(Math.min(te,(E=Math.max(I,W))+(65536-E%65536)%65536)))return!0}return!1}$(J="onig.wasm")||(J=g(J)),P=typeof dateNow<"u"?dateNow:()=>performance.now();var oe=[null,[],[]];function ce(I,E){var X=oe[I];E===0||E===10?((I===1?d:u)(s(X,0)),X.length=0):X.push(E)}function re(I,E,X,te){for(var H=0,W=0;W<X;W++){var Y=n[E>>2],he=n[E+4>>2];E+=8;for(var ge=0;ge<he;ge++)ce(I,e[Y+ge]);H+=he}return n[te>>2]=H,0}var Z,le={emscripten_get_now:P,emscripten_memcpy_big:se,emscripten_resize_heap:ie,fd_write:re};function pe(I){function E(){Z||(Z=!0,r.calledRun=!0,c||(G(),k(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),z()))}V>0||(O(),V>0||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),E()},1)):E()))}if(de(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.__wasm_call_ctors).apply(null,arguments)},r.___errno_location=function(){return(r.___errno_location=r.asm.__errno_location).apply(null,arguments)},r._omalloc=function(){return(r._omalloc=r.asm.omalloc).apply(null,arguments)},r._ofree=function(){return(r._ofree=r.asm.ofree).apply(null,arguments)},r._getLastOnigError=function(){return(r._getLastOnigError=r.asm.getLastOnigError).apply(null,arguments)},r._createOnigScanner=function(){return(r._createOnigScanner=r.asm.createOnigScanner).apply(null,arguments)},r._freeOnigScanner=function(){return(r._freeOnigScanner=r.asm.freeOnigScanner).apply(null,arguments)},r._findNextOnigScannerMatch=function(){return(r._findNextOnigScannerMatch=r.asm.findNextOnigScannerMatch).apply(null,arguments)},r._findNextOnigScannerMatchDbg=function(){return(r._findNextOnigScannerMatchDbg=r.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},r.stackSave=function(){return(r.stackSave=r.asm.stackSave).apply(null,arguments)},r.stackRestore=function(){return(r.stackRestore=r.asm.stackRestore).apply(null,arguments)},r.stackAlloc=function(){return(r.stackAlloc=r.asm.stackAlloc).apply(null,arguments)},r.dynCall_jiji=function(){return(r.dynCall_jiji=r.asm.dynCall_jiji).apply(null,arguments)},r.UTF8ToString=h,q=function I(){Z||pe(),Z||(q=I)},r.preInit)for(typeof r.preInit=="function"&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();return pe(),L.ready});R.exports=a}},l={},function R(a){var L=l[a];if(L!==void 0)return L.exports;var k=l[a]={exports:{}};return j[a].call(k.exports,k,k.exports,R),k.exports}(770);var j,l})})(He);var ye={},ze={get exports(){return ye},set exports(t){ye=t}};(function(t,y){(function(j,l){t.exports=l()})(Oe,function(){return(()=>{var j={350:(R,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UseOnigurumaFindOptions=a.DebugFlags=void 0,a.DebugFlags={InDebugMode:typeof process<"u"&&!1},a.UseOnigurumaFindOptions=!1},36:(R,a)=>{var L;Object.defineProperty(a,"__esModule",{value:!0}),a.toOptionalTokenType=a.EncodedTokenAttributes=void 0,(L=a.EncodedTokenAttributes||(a.EncodedTokenAttributes={})).toBinaryStr=function(k){let N=k.toString(2);for(;N.length<32;)N="0"+N;return N},L.print=function(k){const N=L.getLanguageId(k),r=L.getTokenType(k),w=L.getFontStyle(k),m=L.getForeground(k),b=L.getBackground(k);console.log({languageId:N,tokenType:r,fontStyle:w,foreground:m,background:b})},L.getLanguageId=function(k){return(255&k)>>>0},L.getTokenType=function(k){return(768&k)>>>8},L.containsBalancedBrackets=function(k){return(1024&k)!=0},L.getFontStyle=function(k){return(30720&k)>>>11},L.getForeground=function(k){return(16744448&k)>>>15},L.getBackground=function(k){return(4278190080&k)>>>24},L.set=function(k,N,r,w,m,b,T){let g=L.getLanguageId(k),S=L.getTokenType(k),v=L.containsBalancedBrackets(k)?1:0,d=L.getFontStyle(k),u=L.getForeground(k),c=L.getBackground(k);return N!==0&&(g=N),r!==8&&(S=r),w!==null&&(v=w?1:0),m!==-1&&(d=m),b!==0&&(u=b),T!==0&&(c=T),(g<<0|S<<8|v<<10|d<<11|u<<15|c<<24)>>>0},a.toOptionalTokenType=function(k){return k}},996:(R,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BasicScopeAttributesProvider=a.BasicScopeAttributes=void 0;const k=L(878);class N{constructor(b,T){this.languageId=b,this.tokenType=T}}a.BasicScopeAttributes=N;class r{constructor(b,T){this._getBasicScopeAttributes=new k.CachedFn(g=>{const S=this._scopeToLanguage(g),v=this._toStandardTokenType(g);return new N(S,v)}),this._defaultAttributes=new N(b,8),this._embeddedLanguagesMatcher=new w(Object.entries(T||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(b){return b===null?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(b)}_scopeToLanguage(b){return this._embeddedLanguagesMatcher.match(b)||0}_toStandardTokenType(b){const T=b.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!T)return 8;switch(T[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}a.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new N(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class w{constructor(b){if(b.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(b);const T=b.map(([g,S])=>k.escapeRegExpCharacters(g));T.sort(),T.reverse(),this.scopesRegExp=new RegExp(`^((${T.join(")|(")}))($|\\.)`,"")}}match(b){if(!this.scopesRegExp)return;const T=b.match(this.scopesRegExp);return T?this.values.get(T[1]):void 0}}},947:(R,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.LineTokens=a.BalancedBracketSelectors=a.StateStack=a.AttributedScopeStack=a.Grammar=a.createGrammar=void 0;const k=L(350),N=L(36),r=L(736),w=L(44),m=L(792),b=L(583),T=L(878),g=L(996),S=L(47);function v(i,s,h,p,f){const A=r.createMatchers(s,d),x=m.RuleFactory.getCompiledRuleId(h,p,f.repository);for(const O of A)i.push({debugSelector:s,matcher:O.matcher,ruleId:x,grammar:f,priority:O.priority})}function d(i,s){if(s.length<i.length)return!1;let h=0;return i.every(p=>{for(let f=h;f<s.length;f++)if(u(s[f],p))return h=f+1,!0;return!1})}function u(i,s){if(!i)return!1;if(i===s)return!0;const h=s.length;return i.length>h&&i.substr(0,h)===s&&i[h]==="."}a.createGrammar=function(i,s,h,p,f,A,x,O){return new c(i,s,h,p,f,A,x,O)};class c{constructor(s,h,p,f,A,x,O,G){if(this._rootScopeName=s,this.balancedBracketSelectors=x,this._onigLib=G,this._basicScopeAttributesProvider=new g.BasicScopeAttributesProvider(p,f),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=O,this._grammar=_(h,null),this._injections=null,this._tokenTypeMatchers=[],A)for(const z of Object.keys(A)){const U=r.createMatchers(z,d);for(const B of U)this._tokenTypeMatchers.push({matcher:B.matcher,type:A[z]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const s of this._ruleId2desc)s&&s.dispose()}createOnigScanner(s){return this._onigLib.createOnigScanner(s)}createOnigString(s){return this._onigLib.createOnigString(s)}getMetadataForScope(s){return this._basicScopeAttributesProvider.getBasicScopeAttributes(s)}_collectInjections(){const s=[],h=this._rootScopeName,p=(f=>f===this._rootScopeName?this._grammar:this.getExternalGrammar(f))(h);if(p){const f=p.injections;if(f)for(let x in f)v(s,x,f[x],this,p);const A=this._grammarRepository.injections(h);A&&A.forEach(x=>{const O=this.getExternalGrammar(x);if(O){const G=O.injectionSelector;G&&v(s,G,O,this,O)}})}return s.sort((f,A)=>f.priority-A.priority),s}getInjections(){if(this._injections===null&&(this._injections=this._collectInjections(),k.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const s of this._injections)console.log(` - ${s.debugSelector}`)}return this._injections}registerRule(s){const h=++this._lastRuleId,p=s(m.ruleIdFromNumber(h));return this._ruleId2desc[h]=p,p}getRule(s){return this._ruleId2desc[m.ruleIdToNumber(s)]}getExternalGrammar(s,h){if(this._includedGrammars[s])return this._includedGrammars[s];if(this._grammarRepository){const p=this._grammarRepository.lookup(s);if(p)return this._includedGrammars[s]=_(p,h&&h.$base),this._includedGrammars[s]}}tokenizeLine(s,h,p=0){const f=this._tokenize(s,h,!1,p);return{tokens:f.lineTokens.getResult(f.ruleStack,f.lineLength),ruleStack:f.ruleStack,stoppedEarly:f.stoppedEarly}}tokenizeLine2(s,h,p=0){const f=this._tokenize(s,h,!0,p);return{tokens:f.lineTokens.getBinaryResult(f.ruleStack,f.lineLength),ruleStack:f.ruleStack,stoppedEarly:f.stoppedEarly}}_tokenize(s,h,p,f){let A;if(this._rootId===-1&&(this._rootId=m.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),h&&h!==e.NULL)A=!1,h.reset();else{A=!0;const U=this._basicScopeAttributesProvider.getDefaultAttributes(),B=this.themeProvider.getDefaults(),C=N.EncodedTokenAttributes.set(0,U.languageId,U.tokenType,null,B.fontStyle,B.foregroundId,B.backgroundId),V=this.getRule(this._rootId).getName(null,null);let q;q=V?o.createRootAndLookUpScopeName(V,C,this):o.createRoot("unknown",C),h=new e(null,this._rootId,-1,-1,!1,null,q,q)}s+=`
|
|
1
|
+
import{r as We,h as qe}from"./entry.74c20cae.js";var Oe=typeof globalThis<"u"?globalThis:typeof{}<"u"?{}:typeof global<"u"?global:typeof self<"u"?self:{},_e={},He={get exports(){return _e},set exports(t){_e=t}};(function(t,y){(function(j,l){t.exports=l()})(Oe,()=>{return j={770:function(R,a,L){var k=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(a,"__esModule",{value:!0}),a.setDefaultDebugCall=a.createOnigScanner=a.createOnigString=a.loadWASM=a.OnigScanner=a.OnigString=void 0;const N=k(L(418));let r=null,w=!1;class m{static _utf8ByteLength(d){let u=0;for(let c=0,_=d.length;c<_;c++){const o=d.charCodeAt(c);let e=o,n=!1;if(o>=55296&&o<=56319&&c+1<_){const i=d.charCodeAt(c+1);i>=56320&&i<=57343&&(e=65536+(o-55296<<10)|i-56320,n=!0)}u+=e<=127?1:e<=2047?2:e<=65535?3:4,n&&c++}return u}constructor(d){const u=d.length,c=m._utf8ByteLength(d),_=c!==u,o=_?new Uint32Array(u+1):null;_&&(o[u]=c);const e=_?new Uint32Array(c+1):null;_&&(e[c]=u);const n=new Uint8Array(c);let i=0;for(let s=0;s<u;s++){const h=d.charCodeAt(s);let p=h,f=!1;if(h>=55296&&h<=56319&&s+1<u){const A=d.charCodeAt(s+1);A>=56320&&A<=57343&&(p=65536+(h-55296<<10)|A-56320,f=!0)}_&&(o[s]=i,f&&(o[s+1]=i),p<=127?e[i+0]=s:p<=2047?(e[i+0]=s,e[i+1]=s):p<=65535?(e[i+0]=s,e[i+1]=s,e[i+2]=s):(e[i+0]=s,e[i+1]=s,e[i+2]=s,e[i+3]=s)),p<=127?n[i++]=p:p<=2047?(n[i++]=192|(1984&p)>>>6,n[i++]=128|(63&p)>>>0):p<=65535?(n[i++]=224|(61440&p)>>>12,n[i++]=128|(4032&p)>>>6,n[i++]=128|(63&p)>>>0):(n[i++]=240|(1835008&p)>>>18,n[i++]=128|(258048&p)>>>12,n[i++]=128|(4032&p)>>>6,n[i++]=128|(63&p)>>>0),f&&s++}this.utf16Length=u,this.utf8Length=c,this.utf16Value=d,this.utf8Value=n,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=e}createString(d){const u=d._omalloc(this.utf8Length);return d.HEAPU8.set(this.utf8Value,u),u}}class b{constructor(d){if(this.id=++b.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=d;const u=new m(d);this.utf16Length=u.utf16Length,this.utf8Length=u.utf8Length,this.utf16OffsetToUtf8=u.utf16OffsetToUtf8,this.utf8OffsetToUtf16=u.utf8OffsetToUtf16,this.utf8Length<1e4&&!b._sharedPtrInUse?(b._sharedPtr||(b._sharedPtr=r._omalloc(1e4)),b._sharedPtrInUse=!0,r.HEAPU8.set(u.utf8Value,b._sharedPtr),this.ptr=b._sharedPtr):this.ptr=u.createString(r)}convertUtf8OffsetToUtf16(d){return this.utf8OffsetToUtf16?d<0?0:d>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[d]:d}convertUtf16OffsetToUtf8(d){return this.utf16OffsetToUtf8?d<0?0:d>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[d]:d}dispose(){this.ptr===b._sharedPtr?b._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}a.OnigString=b,b.LAST_ID=0,b._sharedPtr=0,b._sharedPtrInUse=!1;class T{constructor(d){if(!r)throw new Error("Must invoke loadWASM first.");const u=[],c=[];for(let n=0,i=d.length;n<i;n++){const s=new m(d[n]);u[n]=s.createString(r),c[n]=s.utf8Length}const _=r._omalloc(4*d.length);r.HEAPU32.set(u,_/4);const o=r._omalloc(4*d.length);r.HEAPU32.set(c,o/4);const e=r._createOnigScanner(_,o,d.length);for(let n=0,i=d.length;n<i;n++)r._ofree(u[n]);r._ofree(o),r._ofree(_),e===0&&function(n){throw new Error(n.UTF8ToString(n._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=e}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(d,u,c){let _=w,o=0;if(typeof c=="number"?(8&c&&(_=!0),o=c):typeof c=="boolean"&&(_=c),typeof d=="string"){d=new b(d);const e=this._findNextMatchSync(d,u,_,o);return d.dispose(),e}return this._findNextMatchSync(d,u,_,o)}_findNextMatchSync(d,u,c,_){const o=this._onigBinding;let e;if(e=c?o._findNextOnigScannerMatchDbg(this._ptr,d.id,d.ptr,d.utf8Length,d.convertUtf16OffsetToUtf8(u),_):o._findNextOnigScannerMatch(this._ptr,d.id,d.ptr,d.utf8Length,d.convertUtf16OffsetToUtf8(u),_),e===0)return null;const n=o.HEAPU32;let i=e/4;const s=n[i++],h=n[i++];let p=[];for(let f=0;f<h;f++){const A=d.convertUtf8OffsetToUtf16(n[i++]),x=d.convertUtf8OffsetToUtf16(n[i++]);p[f]={start:A,end:x,length:x-A}}return{index:s,captureIndices:p}}}a.OnigScanner=T;let g=!1,S=null;a.loadWASM=function(v){if(g)return S;let d,u,c,_;if(g=!0,function(o){return typeof o.instantiator=="function"}(v))d=v.instantiator,u=v.print;else{let o;(function(e){return e.data!==void 0})(v)?(o=v.data,u=v.print):o=v,d=function(e){return typeof Response<"u"&&e instanceof Response}(o)?typeof WebAssembly.instantiateStreaming=="function"?function(e){return n=>WebAssembly.instantiateStreaming(e,n)}(o):function(e){return async n=>{const i=await e.arrayBuffer();return WebAssembly.instantiate(i,n)}}(o):function(e){return n=>WebAssembly.instantiate(e,n)}(o)}return S=new Promise((o,e)=>{c=o,_=e}),function(o,e,n,i){(0,N.default)({print:e,instantiateWasm:(s,h)=>{if(typeof performance>"u"){const p=()=>Date.now();s.env.emscripten_get_now=p,s.wasi_snapshot_preview1.emscripten_get_now=p}return o(s).then(p=>h(p.instance),i),{}}}).then(s=>{r=s,n()})}(d,u,c,_),S},a.createOnigString=function(v){return new b(v)},a.createOnigScanner=function(v){return new T(v)},a.setDefaultDebugCall=function(v){w=v}},418:R=>{var a=(typeof document<"u"&&document.currentScript&&document.currentScript.src,function(L){var k,N,r=(L=L||{})!==void 0?L:{};r.ready=new Promise(function(I,E){k=I,N=E});var w,m=Object.assign({},r),b=!1,T="";function g(I){return r.locateFile?r.locateFile(I,T):T+I}w=function(I){let E;return typeof readbuffer=="function"?new Uint8Array(readbuffer(I)):(E=read(I,"binary"),_(typeof E=="object"),E)},typeof scriptArgs<"u"&&scriptArgs,typeof onig_print<"u"&&(typeof console>"u"&&(console={}),console.log=onig_print,console.warn=console.error=typeof printErr<"u"?printErr:onig_print);var S,v,d=r.print||console.log.bind(console),u=r.printErr||console.warn.bind(console);Object.assign(r,m),m=null,r.arguments&&r.arguments,r.thisProgram&&r.thisProgram,r.quit&&r.quit,r.wasmBinary&&(S=r.wasmBinary),r.noExitRuntime,typeof WebAssembly!="object"&&D("no native wasm support detected");var c=!1;function _(I,E){I||D(E)}var o,e,n,i=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function s(I,E,X){for(var te=E+X,H=E;I[H]&&!(H>=te);)++H;if(H-E>16&&I.buffer&&i)return i.decode(I.subarray(E,H));for(var W="";E<H;){var Y=I[E++];if(128&Y){var he=63&I[E++];if((224&Y)!=192){var ge=63&I[E++];if((Y=(240&Y)==224?(15&Y)<<12|he<<6|ge:(7&Y)<<18|he<<12|ge<<6|63&I[E++])<65536)W+=String.fromCharCode(Y);else{var je=Y-65536;W+=String.fromCharCode(55296|je>>10,56320|1023&je)}}else W+=String.fromCharCode((31&Y)<<6|he)}else W+=String.fromCharCode(Y)}return W}function h(I,E){return I?s(e,I,E):""}function p(I){o=I,r.HEAP8=new Int8Array(I),r.HEAP16=new Int16Array(I),r.HEAP32=new Int32Array(I),r.HEAPU8=e=new Uint8Array(I),r.HEAPU16=new Uint16Array(I),r.HEAPU32=n=new Uint32Array(I),r.HEAPF32=new Float32Array(I),r.HEAPF64=new Float64Array(I)}r.INITIAL_MEMORY;var f=[],A=[],x=[];function O(){if(r.preRun)for(typeof r.preRun=="function"&&(r.preRun=[r.preRun]);r.preRun.length;)U(r.preRun.shift());ne(f)}function G(){ne(A)}function z(){if(r.postRun)for(typeof r.postRun=="function"&&(r.postRun=[r.postRun]);r.postRun.length;)C(r.postRun.shift());ne(x)}function U(I){f.unshift(I)}function B(I){A.unshift(I)}function C(I){x.unshift(I)}var V=0,q=null;function F(I){V++,r.monitorRunDependencies&&r.monitorRunDependencies(V)}function M(I){if(V--,r.monitorRunDependencies&&r.monitorRunDependencies(V),V==0&&q){var E=q;q=null,E()}}function D(I){r.onAbort&&r.onAbort(I),u(I="Aborted("+I+")"),c=!0,I+=". Build with -sASSERTIONS for more info.";var E=new WebAssembly.RuntimeError(I);throw N(E),E}var J,P,Q="data:application/octet-stream;base64,";function $(I){return I.startsWith(Q)}function ee(I){try{if(I==J&&S)return new Uint8Array(S);if(w)return w(I);throw"both async and sync fetching of the wasm failed"}catch(E){D(E)}}function ae(){return S||!b||typeof fetch!="function"?Promise.resolve().then(function(){return ee(J)}):fetch(J,{credentials:"same-origin"}).then(function(I){if(!I.ok)throw"failed to load wasm binary file at '"+J+"'";return I.arrayBuffer()}).catch(function(){return ee(J)})}function de(){var I={env:le,wasi_snapshot_preview1:le};function E(H,W){var Y=H.exports;r.asm=Y,p((v=r.asm.memory).buffer),r.asm.__indirect_function_table,B(r.asm.__wasm_call_ctors),M()}function X(H){E(H.instance)}function te(H){return ae().then(function(W){return WebAssembly.instantiate(W,I)}).then(function(W){return W}).then(H,function(W){u("failed to asynchronously prepare wasm: "+W),D(W)})}if(F(),r.instantiateWasm)try{return r.instantiateWasm(I,E)}catch(H){u("Module.instantiateWasm callback failed with error: "+H),N(H)}return(S||typeof WebAssembly.instantiateStreaming!="function"||$(J)||typeof fetch!="function"?te(X):fetch(J,{credentials:"same-origin"}).then(function(H){return WebAssembly.instantiateStreaming(H,I).then(X,function(W){return u("wasm streaming compile failed: "+W),u("falling back to ArrayBuffer instantiation"),te(X)})})).catch(N),{}}function ne(I){for(;I.length>0;)I.shift()(r)}function se(I,E,X){e.copyWithin(I,E,E+X)}function ue(I){try{return v.grow(I-o.byteLength+65535>>>16),p(v.buffer),1}catch{}}function ie(I){var E,X=e.length,te=2147483648;if((I>>>=0)>te)return!1;for(var H=1;H<=4;H*=2){var W=X*(1+.2/H);if(W=Math.min(W,I+100663296),ue(Math.min(te,(E=Math.max(I,W))+(65536-E%65536)%65536)))return!0}return!1}$(J="onig.wasm")||(J=g(J)),P=typeof dateNow<"u"?dateNow:()=>performance.now();var oe=[null,[],[]];function ce(I,E){var X=oe[I];E===0||E===10?((I===1?d:u)(s(X,0)),X.length=0):X.push(E)}function re(I,E,X,te){for(var H=0,W=0;W<X;W++){var Y=n[E>>2],he=n[E+4>>2];E+=8;for(var ge=0;ge<he;ge++)ce(I,e[Y+ge]);H+=he}return n[te>>2]=H,0}var Z,le={emscripten_get_now:P,emscripten_memcpy_big:se,emscripten_resize_heap:ie,fd_write:re};function pe(I){function E(){Z||(Z=!0,r.calledRun=!0,c||(G(),k(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),z()))}V>0||(O(),V>0||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),E()},1)):E()))}if(de(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.__wasm_call_ctors).apply(null,arguments)},r.___errno_location=function(){return(r.___errno_location=r.asm.__errno_location).apply(null,arguments)},r._omalloc=function(){return(r._omalloc=r.asm.omalloc).apply(null,arguments)},r._ofree=function(){return(r._ofree=r.asm.ofree).apply(null,arguments)},r._getLastOnigError=function(){return(r._getLastOnigError=r.asm.getLastOnigError).apply(null,arguments)},r._createOnigScanner=function(){return(r._createOnigScanner=r.asm.createOnigScanner).apply(null,arguments)},r._freeOnigScanner=function(){return(r._freeOnigScanner=r.asm.freeOnigScanner).apply(null,arguments)},r._findNextOnigScannerMatch=function(){return(r._findNextOnigScannerMatch=r.asm.findNextOnigScannerMatch).apply(null,arguments)},r._findNextOnigScannerMatchDbg=function(){return(r._findNextOnigScannerMatchDbg=r.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},r.stackSave=function(){return(r.stackSave=r.asm.stackSave).apply(null,arguments)},r.stackRestore=function(){return(r.stackRestore=r.asm.stackRestore).apply(null,arguments)},r.stackAlloc=function(){return(r.stackAlloc=r.asm.stackAlloc).apply(null,arguments)},r.dynCall_jiji=function(){return(r.dynCall_jiji=r.asm.dynCall_jiji).apply(null,arguments)},r.UTF8ToString=h,q=function I(){Z||pe(),Z||(q=I)},r.preInit)for(typeof r.preInit=="function"&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();return pe(),L.ready});R.exports=a}},l={},function R(a){var L=l[a];if(L!==void 0)return L.exports;var k=l[a]={exports:{}};return j[a].call(k.exports,k,k.exports,R),k.exports}(770);var j,l})})(He);var ye={},ze={get exports(){return ye},set exports(t){ye=t}};(function(t,y){(function(j,l){t.exports=l()})(Oe,function(){return(()=>{var j={350:(R,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UseOnigurumaFindOptions=a.DebugFlags=void 0,a.DebugFlags={InDebugMode:typeof process<"u"&&!1},a.UseOnigurumaFindOptions=!1},36:(R,a)=>{var L;Object.defineProperty(a,"__esModule",{value:!0}),a.toOptionalTokenType=a.EncodedTokenAttributes=void 0,(L=a.EncodedTokenAttributes||(a.EncodedTokenAttributes={})).toBinaryStr=function(k){let N=k.toString(2);for(;N.length<32;)N="0"+N;return N},L.print=function(k){const N=L.getLanguageId(k),r=L.getTokenType(k),w=L.getFontStyle(k),m=L.getForeground(k),b=L.getBackground(k);console.log({languageId:N,tokenType:r,fontStyle:w,foreground:m,background:b})},L.getLanguageId=function(k){return(255&k)>>>0},L.getTokenType=function(k){return(768&k)>>>8},L.containsBalancedBrackets=function(k){return(1024&k)!=0},L.getFontStyle=function(k){return(30720&k)>>>11},L.getForeground=function(k){return(16744448&k)>>>15},L.getBackground=function(k){return(4278190080&k)>>>24},L.set=function(k,N,r,w,m,b,T){let g=L.getLanguageId(k),S=L.getTokenType(k),v=L.containsBalancedBrackets(k)?1:0,d=L.getFontStyle(k),u=L.getForeground(k),c=L.getBackground(k);return N!==0&&(g=N),r!==8&&(S=r),w!==null&&(v=w?1:0),m!==-1&&(d=m),b!==0&&(u=b),T!==0&&(c=T),(g<<0|S<<8|v<<10|d<<11|u<<15|c<<24)>>>0},a.toOptionalTokenType=function(k){return k}},996:(R,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BasicScopeAttributesProvider=a.BasicScopeAttributes=void 0;const k=L(878);class N{constructor(b,T){this.languageId=b,this.tokenType=T}}a.BasicScopeAttributes=N;class r{constructor(b,T){this._getBasicScopeAttributes=new k.CachedFn(g=>{const S=this._scopeToLanguage(g),v=this._toStandardTokenType(g);return new N(S,v)}),this._defaultAttributes=new N(b,8),this._embeddedLanguagesMatcher=new w(Object.entries(T||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(b){return b===null?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(b)}_scopeToLanguage(b){return this._embeddedLanguagesMatcher.match(b)||0}_toStandardTokenType(b){const T=b.match(r.STANDARD_TOKEN_TYPE_REGEXP);if(!T)return 8;switch(T[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}a.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new N(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class w{constructor(b){if(b.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(b);const T=b.map(([g,S])=>k.escapeRegExpCharacters(g));T.sort(),T.reverse(),this.scopesRegExp=new RegExp(`^((${T.join(")|(")}))($|\\.)`,"")}}match(b){if(!this.scopesRegExp)return;const T=b.match(this.scopesRegExp);return T?this.values.get(T[1]):void 0}}},947:(R,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.LineTokens=a.BalancedBracketSelectors=a.StateStack=a.AttributedScopeStack=a.Grammar=a.createGrammar=void 0;const k=L(350),N=L(36),r=L(736),w=L(44),m=L(792),b=L(583),T=L(878),g=L(996),S=L(47);function v(i,s,h,p,f){const A=r.createMatchers(s,d),x=m.RuleFactory.getCompiledRuleId(h,p,f.repository);for(const O of A)i.push({debugSelector:s,matcher:O.matcher,ruleId:x,grammar:f,priority:O.priority})}function d(i,s){if(s.length<i.length)return!1;let h=0;return i.every(p=>{for(let f=h;f<s.length;f++)if(u(s[f],p))return h=f+1,!0;return!1})}function u(i,s){if(!i)return!1;if(i===s)return!0;const h=s.length;return i.length>h&&i.substr(0,h)===s&&i[h]==="."}a.createGrammar=function(i,s,h,p,f,A,x,O){return new c(i,s,h,p,f,A,x,O)};class c{constructor(s,h,p,f,A,x,O,G){if(this._rootScopeName=s,this.balancedBracketSelectors=x,this._onigLib=G,this._basicScopeAttributesProvider=new g.BasicScopeAttributesProvider(p,f),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=O,this._grammar=_(h,null),this._injections=null,this._tokenTypeMatchers=[],A)for(const z of Object.keys(A)){const U=r.createMatchers(z,d);for(const B of U)this._tokenTypeMatchers.push({matcher:B.matcher,type:A[z]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const s of this._ruleId2desc)s&&s.dispose()}createOnigScanner(s){return this._onigLib.createOnigScanner(s)}createOnigString(s){return this._onigLib.createOnigString(s)}getMetadataForScope(s){return this._basicScopeAttributesProvider.getBasicScopeAttributes(s)}_collectInjections(){const s=[],h=this._rootScopeName,p=(f=>f===this._rootScopeName?this._grammar:this.getExternalGrammar(f))(h);if(p){const f=p.injections;if(f)for(let x in f)v(s,x,f[x],this,p);const A=this._grammarRepository.injections(h);A&&A.forEach(x=>{const O=this.getExternalGrammar(x);if(O){const G=O.injectionSelector;G&&v(s,G,O,this,O)}})}return s.sort((f,A)=>f.priority-A.priority),s}getInjections(){if(this._injections===null&&(this._injections=this._collectInjections(),k.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const s of this._injections)console.log(` - ${s.debugSelector}`)}return this._injections}registerRule(s){const h=++this._lastRuleId,p=s(m.ruleIdFromNumber(h));return this._ruleId2desc[h]=p,p}getRule(s){return this._ruleId2desc[m.ruleIdToNumber(s)]}getExternalGrammar(s,h){if(this._includedGrammars[s])return this._includedGrammars[s];if(this._grammarRepository){const p=this._grammarRepository.lookup(s);if(p)return this._includedGrammars[s]=_(p,h&&h.$base),this._includedGrammars[s]}}tokenizeLine(s,h,p=0){const f=this._tokenize(s,h,!1,p);return{tokens:f.lineTokens.getResult(f.ruleStack,f.lineLength),ruleStack:f.ruleStack,stoppedEarly:f.stoppedEarly}}tokenizeLine2(s,h,p=0){const f=this._tokenize(s,h,!0,p);return{tokens:f.lineTokens.getBinaryResult(f.ruleStack,f.lineLength),ruleStack:f.ruleStack,stoppedEarly:f.stoppedEarly}}_tokenize(s,h,p,f){let A;if(this._rootId===-1&&(this._rootId=m.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),h&&h!==e.NULL)A=!1,h.reset();else{A=!0;const U=this._basicScopeAttributesProvider.getDefaultAttributes(),B=this.themeProvider.getDefaults(),C=N.EncodedTokenAttributes.set(0,U.languageId,U.tokenType,null,B.fontStyle,B.foregroundId,B.backgroundId),V=this.getRule(this._rootId).getName(null,null);let q;q=V?o.createRootAndLookUpScopeName(V,C,this):o.createRoot("unknown",C),h=new e(null,this._rootId,-1,-1,!1,null,q,q)}s+=`
|
|
2
2
|
`;const x=this.createOnigString(s),O=x.content.length,G=new n(p,s,this._tokenTypeMatchers,this.balancedBracketSelectors),z=S._tokenizeString(this,x,A,0,h,G,!0,f);return w.disposeOnigString(x),{lineLength:O,lineTokens:G,ruleStack:z.stack,stoppedEarly:z.stoppedEarly}}}function _(i,s){return(i=T.clone(i)).repository=i.repository||{},i.repository.$self={$vscodeTextmateLocation:i.$vscodeTextmateLocation,patterns:i.patterns,name:i.scopeName},i.repository.$base=s||i.repository.$self,i}a.Grammar=c;class o{constructor(s,h,p){this.parent=s,this.scopePath=h,this.tokenAttributes=p}static createRoot(s,h){return new o(null,new b.ScopeStack(null,s),h)}static createRootAndLookUpScopeName(s,h,p){const f=p.getMetadataForScope(s),A=new b.ScopeStack(null,s),x=p.themeProvider.themeMatch(A),O=o.mergeAttributes(h,f,x);return new o(null,A,O)}get scopeName(){return this.scopePath.scopeName}equals(s){return o._equals(this,s)}static _equals(s,h){for(;;){if(s===h||!s&&!h)return!0;if(!s||!h||s.scopeName!==h.scopeName||s.tokenAttributes!==h.tokenAttributes)return!1;s=s.parent,h=h.parent}}static mergeAttributes(s,h,p){let f=-1,A=0,x=0;return p!==null&&(f=p.fontStyle,A=p.foregroundId,x=p.backgroundId),N.EncodedTokenAttributes.set(s,h.languageId,h.tokenType,null,f,A,x)}pushAttributed(s,h){if(s===null)return this;if(s.indexOf(" ")===-1)return o._pushAttributed(this,s,h);const p=s.split(/ /g);let f=this;for(const A of p)f=o._pushAttributed(f,A,h);return f}static _pushAttributed(s,h,p){const f=p.getMetadataForScope(h),A=s.scopePath.push(h),x=p.themeProvider.themeMatch(A),O=o.mergeAttributes(s.tokenAttributes,f,x);return new o(s,A,O)}getScopeNames(){return this.scopePath.getSegments()}}a.AttributedScopeStack=o;class e{constructor(s,h,p,f,A,x,O,G){this.parent=s,this.ruleId=h,this.beginRuleCapturedEOL=A,this.endRule=x,this.nameScopesList=O,this.contentNameScopesList=G,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=p,this._anchorPos=f}equals(s){return s!==null&&e._equals(this,s)}static _equals(s,h){return s===h||!!this._structuralEquals(s,h)&&s.contentNameScopesList.equals(h.contentNameScopesList)}static _structuralEquals(s,h){for(;;){if(s===h||!s&&!h)return!0;if(!s||!h||s.depth!==h.depth||s.ruleId!==h.ruleId||s.endRule!==h.endRule)return!1;s=s.parent,h=h.parent}}clone(){return this}static _reset(s){for(;s;)s._enterPos=-1,s._anchorPos=-1,s=s.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(s,h,p,f,A,x,O){return new e(this,s,h,p,f,A,x,O)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(s){return s.getRule(this.ruleId)}toString(){const s=[];return this._writeString(s,0),"["+s.join(",")+"]"}_writeString(s,h){return this.parent&&(h=this.parent._writeString(s,h)),s[h++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,h}withContentNameScopesList(s){return this.contentNameScopesList===s?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,s)}withEndRule(s){return this.endRule===s?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,s,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(s){let h=this;for(;h&&h._enterPos===s._enterPos;){if(h.ruleId===s.ruleId)return!0;h=h.parent}return!1}}a.StateStack=e,e.NULL=new e(null,0,0,0,!1,null,null,null),a.BalancedBracketSelectors=class{constructor(i,s){this.allowAny=!1,this.balancedBracketScopes=i.flatMap(h=>h==="*"?(this.allowAny=!0,[]):r.createMatchers(h,d).map(p=>p.matcher)),this.unbalancedBracketScopes=s.flatMap(h=>r.createMatchers(h,d).map(p=>p.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(i){for(const s of this.unbalancedBracketScopes)if(s(i))return!1;for(const s of this.balancedBracketScopes)if(s(i))return!0;return this.allowAny}};class n{constructor(s,h,p,f){this.balancedBracketSelectors=f,this._emitBinaryTokens=s,this._tokenTypeOverrides=p,k.DebugFlags.InDebugMode?this._lineText=h:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(s,h){this.produceFromScopes(s.contentNameScopesList,h)}produceFromScopes(s,h){if(this._lastTokenEndIndex>=h)return;if(this._emitBinaryTokens){let f=s.tokenAttributes,A=!1;if(this.balancedBracketSelectors?.matchesAlways&&(A=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const x=s.getScopeNames();for(const O of this._tokenTypeOverrides)O.matcher(x)&&(f=N.EncodedTokenAttributes.set(f,0,N.toOptionalTokenType(O.type),null,-1,0,0));this.balancedBracketSelectors&&(A=this.balancedBracketSelectors.match(x))}if(A&&(f=N.EncodedTokenAttributes.set(f,0,8,A,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===f)return void(this._lastTokenEndIndex=h);if(k.DebugFlags.InDebugMode){const x=s.getScopeNames();console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,h).replace(/\n$/,"\\n")+"|");for(let O=0;O<x.length;O++)console.log(" * "+x[O])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(f),void(this._lastTokenEndIndex=h)}const p=s.getScopeNames();if(k.DebugFlags.InDebugMode){console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,h).replace(/\n$/,"\\n")+"|");for(let f=0;f<p.length;f++)console.log(" * "+p[f])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:h,scopes:p}),this._lastTokenEndIndex=h}getResult(s,h){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===h-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(s,h),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(s,h){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===h-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(s,h),this._binaryTokens[this._binaryTokens.length-2]=0);const p=new Uint32Array(this._binaryTokens.length);for(let f=0,A=this._binaryTokens.length;f<A;f++)p[f]=this._binaryTokens[f];return p}}a.LineTokens=n},965:(R,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.parseInclude=a.TopLevelRepositoryReference=a.TopLevelReference=a.RelativeReference=a.SelfReference=a.BaseReference=a.ScopeDependencyProcessor=a.ExternalReferenceCollector=a.TopLevelRepositoryRuleReference=a.TopLevelRuleReference=void 0;const k=L(878);class N{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}a.TopLevelRuleReference=N;class r{constructor(e,n){this.scopeName=e,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}}a.TopLevelRepositoryRuleReference=r;class w{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const n=e.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(e))}}function m(o,e,n,i){const s=n.lookup(o.scopeName);if(!s){if(o.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const h=n.lookup(e);o instanceof N?T({baseGrammar:h,selfGrammar:s},i):b(o.ruleName,{baseGrammar:h,selfGrammar:s,repository:s.repository},i);const p=n.injections(o.scopeName);if(p)for(const f of p)i.add(new N(f))}function b(o,e,n){e.repository&&e.repository[o]&&g([e.repository[o]],e,n)}function T(o,e){o.selfGrammar.patterns&&Array.isArray(o.selfGrammar.patterns)&&g(o.selfGrammar.patterns,{...o,repository:o.selfGrammar.repository},e),o.selfGrammar.injections&&g(Object.values(o.selfGrammar.injections),{...o,repository:o.selfGrammar.repository},e)}function g(o,e,n){for(const i of o){if(n.visitedRule.has(i))continue;n.visitedRule.add(i);const s=i.repository?k.mergeObjects({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&g(i.patterns,{...e,repository:s},n);const h=i.include;if(!h)continue;const p=_(h);switch(p.kind){case 0:T({...e,selfGrammar:e.baseGrammar},n);break;case 1:T(e,n);break;case 2:b(p.ruleName,{...e,repository:s},n);break;case 3:case 4:const f=p.scopeName===e.selfGrammar.scopeName?e.selfGrammar:p.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(f){const A={baseGrammar:e.baseGrammar,selfGrammar:f,repository:s};p.kind===4?b(p.ruleName,A,n):T(A,n)}else p.kind===4?n.add(new r(p.scopeName,p.ruleName)):n.add(new N(p.scopeName))}}}a.ExternalReferenceCollector=w,a.ScopeDependencyProcessor=class{constructor(o,e){this.repo=o,this.initialScopeName=e,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new N(this.initialScopeName)]}processQueue(){const o=this.Q;this.Q=[];const e=new w;for(const n of o)m(n,this.initialScopeName,this.repo,e);for(const n of e.references)if(n instanceof N){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};class S{constructor(){this.kind=0}}a.BaseReference=S;class v{constructor(){this.kind=1}}a.SelfReference=v;class d{constructor(e){this.ruleName=e,this.kind=2}}a.RelativeReference=d;class u{constructor(e){this.scopeName=e,this.kind=3}}a.TopLevelReference=u;class c{constructor(e,n){this.scopeName=e,this.ruleName=n,this.kind=4}}function _(o){if(o==="$base")return new S;if(o==="$self")return new v;const e=o.indexOf("#");if(e===-1)return new u(o);if(e===0)return new d(o.substring(1));{const n=o.substring(0,e),i=o.substring(e+1);return new c(n,i)}}a.TopLevelRepositoryReference=c,a.parseInclude=_},391:function(R,a,L){var k=this&&this.__createBinding||(Object.create?function(r,w,m,b){b===void 0&&(b=m),Object.defineProperty(r,b,{enumerable:!0,get:function(){return w[m]}})}:function(r,w,m,b){b===void 0&&(b=m),r[b]=w[m]}),N=this&&this.__exportStar||function(r,w){for(var m in r)m==="default"||Object.prototype.hasOwnProperty.call(w,m)||k(w,r,m)};Object.defineProperty(a,"__esModule",{value:!0}),N(L(947),a)},47:(R,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.LocalStackElement=a._tokenizeString=void 0;const k=L(350),N=L(44),r=L(792),w=L(878);class m{constructor(c,_){this.stack=c,this.stoppedEarly=_}}function b(u,c,_,o,e,n,i,s){const h=c.content.length;let p=!1,f=-1;if(i){const O=function(G,z,U,B,C,V){let q=C.beginRuleCapturedEOL?0:-1;const F=[];for(let M=C;M;M=M.pop()){const D=M.getRule(G);D instanceof r.BeginWhileRule&&F.push({rule:D,stack:M})}for(let M=F.pop();M;M=F.pop()){const{ruleScanner:D,findOptions:J}=g(M.rule,G,M.stack.endRule,U,B===q),P=D.findNextMatchSync(z,B,J);if(k.DebugFlags.InDebugMode&&(console.log(" scanning for while rule"),console.log(D.toString())),!P){k.DebugFlags.InDebugMode&&console.log(" popping "+M.rule.debugName+" - "+M.rule.debugWhileRegExp),C=M.stack.pop();break}if(P.ruleId!==r.whileRuleId){C=M.stack.pop();break}P.captureIndices&&P.captureIndices.length&&(V.produce(M.stack,P.captureIndices[0].start),v(G,z,U,M.stack,V,M.rule.whileCaptures,P.captureIndices),V.produce(M.stack,P.captureIndices[0].end),q=P.captureIndices[0].end,P.captureIndices[0].end>B&&(B=P.captureIndices[0].end,U=!1))}return{stack:C,linePos:B,anchorPosition:q,isFirstLine:U}}(u,c,_,o,e,n);e=O.stack,o=O.linePos,_=O.isFirstLine,f=O.anchorPosition}const A=Date.now();for(;!p;){if(s!==0&&Date.now()-A>s)return new m(e,!0);x()}return new m(e,!1);function x(){k.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${o}: |${c.content.substr(o).replace(/\n$/,"\\n")}|`));const O=function(B,C,V,q,F,M){const D=function(ee,ae,de,ne,se,ue){const ie=se.getRule(ee),{ruleScanner:oe,findOptions:ce}=T(ie,ee,se.endRule,de,ne===ue);let re=0;k.DebugFlags.InDebugMode&&(re=w.performanceNow());const Z=oe.findNextMatchSync(ae,ne,ce);if(k.DebugFlags.InDebugMode){const le=w.performanceNow()-re;le>5&&console.warn(`Rule ${ie.debugName} (${ie.id}) matching took ${le} against '${ae}'`),console.log(` scanning for (linePos: ${ne}, anchorPosition: ${ue})`),console.log(oe.toString()),Z&&console.log(`matched rule id: ${Z.ruleId} from ${Z.captureIndices[0].start} to ${Z.captureIndices[0].end}`)}return Z?{captureIndices:Z.captureIndices,matchedRuleId:Z.ruleId}:null}(B,C,V,q,F,M),J=B.getInjections();if(J.length===0)return D;const P=function(ee,ae,de,ne,se,ue,ie){let oe,ce=Number.MAX_VALUE,re=null,Z=0;const le=ue.contentNameScopesList.getScopeNames();for(let pe=0,I=ee.length;pe<I;pe++){const E=ee[pe];if(!E.matcher(le))continue;const X=ae.getRule(E.ruleId),{ruleScanner:te,findOptions:H}=T(X,ae,null,ne,se===ie),W=te.findNextMatchSync(de,se,H);if(!W)continue;k.DebugFlags.InDebugMode&&(console.log(` matched injection: ${E.debugSelector}`),console.log(te.toString()));const Y=W.captureIndices[0].start;if(!(Y>=ce)&&(ce=Y,re=W.captureIndices,oe=W.ruleId,Z=E.priority,ce===se))break}return re?{priorityMatch:Z===-1,captureIndices:re,matchedRuleId:oe}:null}(J,B,C,V,q,F,M);if(!P)return D;if(!D)return P;const Q=D.captureIndices[0].start,$=P.captureIndices[0].start;return $<Q||P.priorityMatch&&$===Q?P:D}(u,c,_,o,e,f);if(!O)return k.DebugFlags.InDebugMode&&console.log(" no more matches."),n.produce(e,h),void(p=!0);const G=O.captureIndices,z=O.matchedRuleId,U=!!(G&&G.length>0)&&G[0].end>o;if(z===r.endRuleId){const B=e.getRule(u);k.DebugFlags.InDebugMode&&console.log(" popping "+B.debugName+" - "+B.debugEndRegExp),n.produce(e,G[0].start),e=e.withContentNameScopesList(e.nameScopesList),v(u,c,_,e,n,B.endCaptures,G),n.produce(e,G[0].end);const C=e;if(e=e.parent,f=C.getAnchorPos(),!U&&C.getEnterPos()===o)return k.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),e=C,n.produce(e,h),void(p=!0)}else{const B=u.getRule(z);n.produce(e,G[0].start);const C=e,V=B.getName(c.content,G),q=e.contentNameScopesList.pushAttributed(V,u);if(e=e.push(z,o,f,G[0].end===h,null,q,q),B instanceof r.BeginEndRule){const F=B;k.DebugFlags.InDebugMode&&console.log(" pushing "+F.debugName+" - "+F.debugBeginRegExp),v(u,c,_,e,n,F.beginCaptures,G),n.produce(e,G[0].end),f=G[0].end;const M=F.getContentName(c.content,G),D=q.pushAttributed(M,u);if(e=e.withContentNameScopesList(D),F.endHasBackReferences&&(e=e.withEndRule(F.getEndWithResolvedBackReferences(c.content,G))),!U&&C.hasSameRuleAs(e))return k.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),e=e.pop(),n.produce(e,h),void(p=!0)}else if(B instanceof r.BeginWhileRule){const F=B;k.DebugFlags.InDebugMode&&console.log(" pushing "+F.debugName),v(u,c,_,e,n,F.beginCaptures,G),n.produce(e,G[0].end),f=G[0].end;const M=F.getContentName(c.content,G),D=q.pushAttributed(M,u);if(e=e.withContentNameScopesList(D),F.whileHasBackReferences&&(e=e.withEndRule(F.getWhileWithResolvedBackReferences(c.content,G))),!U&&C.hasSameRuleAs(e))return k.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),e=e.pop(),n.produce(e,h),void(p=!0)}else{const F=B;if(k.DebugFlags.InDebugMode&&console.log(" matched "+F.debugName+" - "+F.debugMatchRegExp),v(u,c,_,e,n,F.captures,G),n.produce(e,G[0].end),e=e.pop(),!U)return k.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),e=e.safePop(),n.produce(e,h),void(p=!0)}}G[0].end>o&&(o=G[0].end,_=!1)}}function T(u,c,_,o,e){return k.UseOnigurumaFindOptions?{ruleScanner:u.compile(c,_),findOptions:S(o,e)}:{ruleScanner:u.compileAG(c,_,o,e),findOptions:0}}function g(u,c,_,o,e){return k.UseOnigurumaFindOptions?{ruleScanner:u.compileWhile(c,_),findOptions:S(o,e)}:{ruleScanner:u.compileWhileAG(c,_,o,e),findOptions:0}}function S(u,c){let _=0;return u||(_|=1),c||(_|=4),_}function v(u,c,_,o,e,n,i){if(n.length===0)return;const s=c.content,h=Math.min(n.length,i.length),p=[],f=i[0].end;for(let A=0;A<h;A++){const x=n[A];if(x===null)continue;const O=i[A];if(O.length===0)continue;if(O.start>f)break;for(;p.length>0&&p[p.length-1].endPos<=O.start;)e.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop();if(p.length>0?e.produceFromScopes(p[p.length-1].scopes,O.start):e.produce(o,O.start),x.retokenizeCapturedWithRuleId){const z=x.getName(s,i),U=o.contentNameScopesList.pushAttributed(z,u),B=x.getContentName(s,i),C=U.pushAttributed(B,u),V=o.push(x.retokenizeCapturedWithRuleId,O.start,-1,!1,null,U,C),q=u.createOnigString(s.substring(0,O.end));b(u,q,_&&O.start===0,O.start,V,e,!1,0),N.disposeOnigString(q);continue}const G=x.getName(s,i);if(G!==null){const z=(p.length>0?p[p.length-1].scopes:o.contentNameScopesList).pushAttributed(G,u);p.push(new d(z,O.end))}}for(;p.length>0;)e.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}a._tokenizeString=b;class d{constructor(c,_){this.scopes=c,this.endPos=_}}a.LocalStackElement=d},974:(R,a)=>{function L(w,m){throw new Error("Near offset "+w.pos+": "+m+" ~~~"+w.source.substr(w.pos,50)+"~~~")}Object.defineProperty(a,"__esModule",{value:!0}),a.parseJSON=void 0,a.parseJSON=function(w,m,b){let T=new k(w),g=new N,S=0,v=null,d=[],u=[];function c(){d.push(S),u.push(v)}function _(){S=d.pop(),v=u.pop()}function o(e){L(T,e)}for(;r(T,g);){if(S===0){if(v!==null&&o("too many constructs in root"),g.type===3){v={},b&&(v.$vscodeTextmateLocation=g.toLocation(m)),c(),S=1;continue}if(g.type===2){v=[],c(),S=4;continue}o("unexpected token in root")}if(S===2){if(g.type===5){_();continue}if(g.type===7){S=3;continue}o("expected , or }")}if(S===1||S===3){if(S===1&&g.type===5){_();continue}if(g.type===1){let e=g.value;if(r(T,g)&&g.type===6||o("expected colon"),r(T,g)||o("expected value"),S=2,g.type===1){v[e]=g.value;continue}if(g.type===8){v[e]=null;continue}if(g.type===9){v[e]=!0;continue}if(g.type===10){v[e]=!1;continue}if(g.type===11){v[e]=parseFloat(g.value);continue}if(g.type===2){let n=[];v[e]=n,c(),S=4,v=n;continue}if(g.type===3){let n={};b&&(n.$vscodeTextmateLocation=g.toLocation(m)),v[e]=n,c(),S=1,v=n;continue}}o("unexpected token in dict")}if(S===5){if(g.type===4){_();continue}if(g.type===7){S=6;continue}o("expected , or ]")}if(S===4||S===6){if(S===4&&g.type===4){_();continue}if(S=5,g.type===1){v.push(g.value);continue}if(g.type===8){v.push(null);continue}if(g.type===9){v.push(!0);continue}if(g.type===10){v.push(!1);continue}if(g.type===11){v.push(parseFloat(g.value));continue}if(g.type===2){let e=[];v.push(e),c(),S=4,v=e;continue}if(g.type===3){let e={};b&&(e.$vscodeTextmateLocation=g.toLocation(m)),v.push(e),c(),S=1,v=e;continue}o("unexpected token in array")}o("unknown state")}return u.length!==0&&o("unclosed constructs"),v};class k{constructor(m){this.source=m,this.pos=0,this.len=m.length,this.line=1,this.char=0}}class N{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(m){return{filename:m,line:this.line,char:this.char}}}function r(w,m){m.value=null,m.type=0,m.offset=-1,m.len=-1,m.line=-1,m.char=-1;let b,T=w.source,g=w.pos,S=w.len,v=w.line,d=w.char;for(;;){if(g>=S)return!1;if(b=T.charCodeAt(g),b!==32&&b!==9&&b!==13){if(b!==10)break;g++,v++,d=0}else g++,d++}if(m.offset=g,m.line=v,m.char=d,b===34){for(m.type=1,g++,d++;;){if(g>=S)return!1;if(b=T.charCodeAt(g),g++,d++,b!==92){if(b===34)break}else g++,d++}m.value=T.substring(m.offset+1,g-1).replace(/\\u([0-9A-Fa-f]{4})/g,(u,c)=>String.fromCodePoint(parseInt(c,16))).replace(/\\(.)/g,(u,c)=>{switch(c){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return`
|
|
3
3
|
`;case"r":return"\r";case"t":return" ";default:L(w,"invalid escape sequence")}throw new Error("unreachable")})}else if(b===91)m.type=2,g++,d++;else if(b===123)m.type=3,g++,d++;else if(b===93)m.type=4,g++,d++;else if(b===125)m.type=5,g++,d++;else if(b===58)m.type=6,g++,d++;else if(b===44)m.type=7,g++,d++;else if(b===110){if(m.type=8,g++,d++,b=T.charCodeAt(g),b!==117||(g++,d++,b=T.charCodeAt(g),b!==108)||(g++,d++,b=T.charCodeAt(g),b!==108))return!1;g++,d++}else if(b===116){if(m.type=9,g++,d++,b=T.charCodeAt(g),b!==114||(g++,d++,b=T.charCodeAt(g),b!==117)||(g++,d++,b=T.charCodeAt(g),b!==101))return!1;g++,d++}else if(b===102){if(m.type=10,g++,d++,b=T.charCodeAt(g),b!==97||(g++,d++,b=T.charCodeAt(g),b!==108)||(g++,d++,b=T.charCodeAt(g),b!==115)||(g++,d++,b=T.charCodeAt(g),b!==101))return!1;g++,d++}else for(m.type=11;;){if(g>=S)return!1;if(b=T.charCodeAt(g),!(b===46||b>=48&&b<=57||b===101||b===69||b===45||b===43))break;g++,d++}return m.len=g-m.offset,m.value===null&&(m.value=T.substr(m.offset,m.len)),w.pos=g,w.line=v,w.char=d,!0}},787:function(R,a,L){var k=this&&this.__createBinding||(Object.create?function(g,S,v,d){d===void 0&&(d=v),Object.defineProperty(g,d,{enumerable:!0,get:function(){return S[v]}})}:function(g,S,v,d){d===void 0&&(d=v),g[d]=S[v]}),N=this&&this.__exportStar||function(g,S){for(var v in g)v==="default"||Object.prototype.hasOwnProperty.call(S,v)||k(S,g,v)};Object.defineProperty(a,"__esModule",{value:!0}),a.parseRawGrammar=a.INITIAL=a.Registry=void 0;const r=L(391),w=L(50),m=L(652),b=L(583),T=L(965);N(L(44),a),a.Registry=class{constructor(g){this._options=g,this._syncRegistry=new m.SyncRegistry(b.Theme.createFromRawTheme(g.theme,g.colorMap),g.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(g,S){this._syncRegistry.setTheme(b.Theme.createFromRawTheme(g,S))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(g,S,v){return this.loadGrammarWithConfiguration(g,S,{embeddedLanguages:v})}loadGrammarWithConfiguration(g,S,v){return this._loadGrammar(g,S,v.embeddedLanguages,v.tokenTypes,new r.BalancedBracketSelectors(v.balancedBracketSelectors||[],v.unbalancedBracketSelectors||[]))}loadGrammar(g){return this._loadGrammar(g,0,null,null,null)}async _loadGrammar(g,S,v,d,u){const c=new T.ScopeDependencyProcessor(this._syncRegistry,g);for(;c.Q.length>0;)await Promise.all(c.Q.map(_=>this._loadSingleGrammar(_.scopeName))),c.processQueue();return this._grammarForScopeName(g,S,v,d,u)}async _loadSingleGrammar(g){return this._ensureGrammarCache.has(g)||this._ensureGrammarCache.set(g,this._doLoadSingleGrammar(g)),this._ensureGrammarCache.get(g)}async _doLoadSingleGrammar(g){const S=await this._options.loadGrammar(g);if(S){const v=typeof this._options.getInjections=="function"?this._options.getInjections(g):void 0;this._syncRegistry.addGrammar(S,v)}}async addGrammar(g,S=[],v=0,d=null){return this._syncRegistry.addGrammar(g,S),await this._grammarForScopeName(g.scopeName,v,d)}_grammarForScopeName(g,S=0,v=null,d=null,u=null){return this._syncRegistry.grammarForScopeName(g,S,v,d,u)}},a.INITIAL=r.StateStack.NULL,a.parseRawGrammar=w.parseRawGrammar},736:(R,a)=>{function L(k){return!!k&&!!k.match(/[\w\.:]+/)}Object.defineProperty(a,"__esModule",{value:!0}),a.createMatchers=void 0,a.createMatchers=function(k,N){const r=[],w=function(g){let S=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,v=S.exec(g);return{next:()=>{if(!v)return null;const d=v[0];return v=S.exec(g),d}}}(k);let m=w.next();for(;m!==null;){let g=0;if(m.length===2&&m.charAt(1)===":"){switch(m.charAt(0)){case"R":g=1;break;case"L":g=-1;break;default:console.log(`Unknown priority ${m} in scope selector`)}m=w.next()}let S=T();if(r.push({matcher:S,priority:g}),m!==",")break;m=w.next()}return r;function b(){if(m==="-"){m=w.next();const g=b();return S=>!!g&&!g(S)}if(m==="("){m=w.next();const g=function(){const S=[];let v=T();for(;v&&(S.push(v),m==="|"||m===",");){do m=w.next();while(m==="|"||m===",");v=T()}return d=>S.some(u=>u(d))}();return m===")"&&(m=w.next()),g}if(L(m)){const g=[];do g.push(m),m=w.next();while(L(m));return S=>N(g,S)}return null}function T(){const g=[];let S=b();for(;S;)g.push(S),S=b();return v=>g.every(d=>d(v))}}},44:(R,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.disposeOnigString=void 0,a.disposeOnigString=function(L){typeof L.dispose=="function"&&L.dispose()}},50:(R,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.parseRawGrammar=void 0;const k=L(69),N=L(350),r=L(974);a.parseRawGrammar=function(w,m=null){return m!==null&&/\.json$/.test(m)?(b=w,T=m,N.DebugFlags.InDebugMode?r.parseJSON(b,T,!0):JSON.parse(b)):function(g,S){return N.DebugFlags.InDebugMode?k.parseWithLocation(g,S,"$vscodeTextmateLocation"):k.parsePLIST(g)}(w,m);var b,T}},69:(R,a)=>{function L(k,N,r){const w=k.length;let m=0,b=1,T=0;function g(P){if(r===null)m+=P;else for(;P>0;)k.charCodeAt(m)===10?(m++,b++,T=0):(m++,T++),P--}function S(P){r===null?m=P:g(P-m)}function v(){for(;m<w;){let P=k.charCodeAt(m);if(P!==32&&P!==9&&P!==13&&P!==10)break;g(1)}}function d(P){return k.substr(m,P.length)===P&&(g(P.length),!0)}function u(P){let Q=k.indexOf(P,m);S(Q!==-1?Q+P.length:w)}function c(P){let Q=k.indexOf(P,m);if(Q!==-1){let $=k.substring(m,Q);return S(Q+P.length),$}{let $=k.substr(m);return S(w),$}}w>0&&k.charCodeAt(0)===65279&&(m=1);let _=0,o=null,e=[],n=[],i=null;function s(P,Q){e.push(_),n.push(o),_=P,o=Q}function h(){if(e.length===0)return p("illegal state stack");_=e.pop(),o=n.pop()}function p(P){throw new Error("Near offset "+m+": "+P+" ~~~"+k.substr(m,50)+"~~~")}const f=function(){if(i===null)return p("missing <key>");let P={};r!==null&&(P[r]={filename:N,line:b,char:T}),o[i]=P,i=null,s(1,P)},A=function(){if(i===null)return p("missing <key>");let P=[];o[i]=P,i=null,s(2,P)},x=function(){let P={};r!==null&&(P[r]={filename:N,line:b,char:T}),o.push(P),s(1,P)},O=function(){let P=[];o.push(P),s(2,P)};function G(){if(_!==1)return p("unexpected </dict>");h()}function z(){return _===1||_!==2?p("unexpected </array>"):void h()}function U(P){if(_===1){if(i===null)return p("missing <key>");o[i]=P,i=null}else _===2?o.push(P):o=P}function B(P){if(isNaN(P))return p("cannot parse float");if(_===1){if(i===null)return p("missing <key>");o[i]=P,i=null}else _===2?o.push(P):o=P}function C(P){if(isNaN(P))return p("cannot parse integer");if(_===1){if(i===null)return p("missing <key>");o[i]=P,i=null}else _===2?o.push(P):o=P}function V(P){if(_===1){if(i===null)return p("missing <key>");o[i]=P,i=null}else _===2?o.push(P):o=P}function q(P){if(_===1){if(i===null)return p("missing <key>");o[i]=P,i=null}else _===2?o.push(P):o=P}function F(P){if(_===1){if(i===null)return p("missing <key>");o[i]=P,i=null}else _===2?o.push(P):o=P}function M(){let P=c(">"),Q=!1;return P.charCodeAt(P.length-1)===47&&(Q=!0,P=P.substring(0,P.length-1)),{name:P.trim(),isClosed:Q}}function D(P){if(P.isClosed)return"";let Q=c("</");return u(">"),Q.replace(/&#([0-9]+);/g,function($,ee){return String.fromCodePoint(parseInt(ee,10))}).replace(/&#x([0-9a-f]+);/g,function($,ee){return String.fromCodePoint(parseInt(ee,16))}).replace(/&|<|>|"|'/g,function($){switch($){case"&":return"&";case"<":return"<";case">":return">";case""":return'"';case"'":return"'"}return $})}for(;m<w&&(v(),!(m>=w));){const P=k.charCodeAt(m);if(g(1),P!==60)return p("expected <");if(m>=w)return p("unexpected end of input");const Q=k.charCodeAt(m);if(Q===63){g(1),u("?>");continue}if(Q===33){if(g(1),d("--")){u("-->");continue}u(">");continue}if(Q===47){if(g(1),v(),d("plist")){u(">");continue}if(d("dict")){u(">"),G();continue}if(d("array")){u(">"),z();continue}return p("unexpected closed tag")}let $=M();switch($.name){case"dict":_===1?f():_===2?x():(o={},r!==null&&(o[r]={filename:N,line:b,char:T}),s(1,o)),$.isClosed&&G();continue;case"array":_===1?A():_===2?O():(o=[],s(2,o)),$.isClosed&&z();continue;case"key":J=D($),_!==1?p("unexpected <key>"):i!==null?p("too many <key>"):i=J;continue;case"string":U(D($));continue;case"real":B(parseFloat(D($)));continue;case"integer":C(parseInt(D($),10));continue;case"date":V(new Date(D($)));continue;case"data":q(D($));continue;case"true":D($),F(!0);continue;case"false":D($),F(!1);continue}if(!/^plist/.test($.name))return p("unexpected opened tag "+$.name)}var J;return o}Object.defineProperty(a,"__esModule",{value:!0}),a.parsePLIST=a.parseWithLocation=void 0,a.parseWithLocation=function(k,N,r){return L(k,N,r)},a.parsePLIST=function(k){return L(k,null,null)}},652:(R,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SyncRegistry=void 0;const k=L(391);a.SyncRegistry=class{constructor(N,r){this._onigLibPromise=r,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=N}dispose(){for(const N of this._grammars.values())N.dispose()}setTheme(N){this._theme=N}getColorMap(){return this._theme.getColorMap()}addGrammar(N,r){this._rawGrammars.set(N.scopeName,N),r&&this._injectionGrammars.set(N.scopeName,r)}lookup(N){return this._rawGrammars.get(N)}injections(N){return this._injectionGrammars.get(N)}getDefaults(){return this._theme.getDefaults()}themeMatch(N){return this._theme.match(N)}async grammarForScopeName(N,r,w,m,b){if(!this._grammars.has(N)){let T=this._rawGrammars.get(N);if(!T)return null;this._grammars.set(N,k.createGrammar(N,T,r,w,m,b,this,await this._onigLibPromise))}return this._grammars.get(N)}}},792:(R,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CompiledRule=a.RegExpSourceList=a.RegExpSource=a.RuleFactory=a.BeginWhileRule=a.BeginEndRule=a.IncludeOnlyRule=a.MatchRule=a.CaptureRule=a.Rule=a.ruleIdToNumber=a.ruleIdFromNumber=a.whileRuleId=a.endRuleId=void 0;const k=L(878),N=L(965),r=/\\(\d+)/,w=/\\(\d+)/g;a.endRuleId=-1,a.whileRuleId=-2,a.ruleIdFromNumber=function(o){return o},a.ruleIdToNumber=function(o){return o};class m{constructor(e,n,i,s){this.$location=e,this.id=n,this._name=i||null,this._nameIsCapturing=k.RegexSource.hasCaptures(this._name),this._contentName=s||null,this._contentNameIsCapturing=k.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${k.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,n){return this._nameIsCapturing&&this._name!==null&&e!==null&&n!==null?k.RegexSource.replaceCaptures(this._name,e,n):this._name}getContentName(e,n){return this._contentNameIsCapturing&&this._contentName!==null?k.RegexSource.replaceCaptures(this._contentName,e,n):this._contentName}}a.Rule=m;class b extends m{constructor(e,n,i,s,h){super(e,n,i,s),this.retokenizeCapturedWithRuleId=h}dispose(){}collectPatterns(e,n){throw new Error("Not supported!")}compile(e,n){throw new Error("Not supported!")}compileAG(e,n,i,s){throw new Error("Not supported!")}}a.CaptureRule=b;class T extends m{constructor(e,n,i,s,h){super(e,n,i,null),this._match=new u(s,this.id),this.captures=h,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,n){n.push(this._match)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,i,s){return this._getCachedCompiledPatterns(e).compileAG(e,i,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new c,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}a.MatchRule=T;class g extends m{constructor(e,n,i,s,h){super(e,n,i,s),this.patterns=h.patterns,this.hasMissingPatterns=h.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,n){for(const i of this.patterns)e.getRule(i).collectPatterns(e,n)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,i,s){return this._getCachedCompiledPatterns(e).compileAG(e,i,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new c,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}a.IncludeOnlyRule=g;class S extends m{constructor(e,n,i,s,h,p,f,A,x,O){super(e,n,i,s),this._begin=new u(h,this.id),this.beginCaptures=p,this._end=new u(f||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=A,this.applyEndPatternLast=x||!1,this.patterns=O.patterns,this.hasMissingPatterns=O.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(e,n){return this._end.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e,n).compile(e)}compileAG(e,n,i,s){return this._getCachedCompiledPatterns(e,n).compileAG(e,i,s)}_getCachedCompiledPatterns(e,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new c;for(const i of this.patterns)e.getRule(i).collectPatterns(e,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,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}}a.BeginEndRule=S;class v extends m{constructor(e,n,i,s,h,p,f,A,x){super(e,n,i,s),this._begin=new u(h,this.id),this.beginCaptures=p,this.whileCaptures=A,this._while=new u(f,a.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=x.patterns,this.hasMissingPatterns=x.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(e,n){return this._while.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,i,s){return this._getCachedCompiledPatterns(e).compileAG(e,i,s)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new c;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,n){return this._getCachedCompiledWhilePatterns(e,n).compile(e)}compileWhileAG(e,n,i,s){return this._getCachedCompiledWhilePatterns(e,n).compileAG(e,i,s)}_getCachedCompiledWhilePatterns(e,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new c,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}}a.BeginWhileRule=v;class d{static createCaptureRule(e,n,i,s,h){return e.registerRule(p=>new b(n,p,i,s,h))}static getCompiledRuleId(e,n,i){return e.id||n.registerRule(s=>{if(e.id=s,e.match)return new T(e.$vscodeTextmateLocation,e.id,e.name,e.match,d._compileCaptures(e.captures,n,i));if(e.begin===void 0){e.repository&&(i=k.mergeObjects({},i,e.repository));let h=e.patterns;return h===void 0&&e.include&&(h=[{include:e.include}]),new g(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,d._compilePatterns(h,n,i))}return e.while?new v(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,d._compileCaptures(e.beginCaptures||e.captures,n,i),e.while,d._compileCaptures(e.whileCaptures||e.captures,n,i),d._compilePatterns(e.patterns,n,i)):new S(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,d._compileCaptures(e.beginCaptures||e.captures,n,i),e.end,d._compileCaptures(e.endCaptures||e.captures,n,i),e.applyEndPatternLast,d._compilePatterns(e.patterns,n,i))}),e.id}static _compileCaptures(e,n,i){let s=[];if(e){let h=0;for(const p in e){if(p==="$vscodeTextmateLocation")continue;const f=parseInt(p,10);f>h&&(h=f)}for(let p=0;p<=h;p++)s[p]=null;for(const p in e){if(p==="$vscodeTextmateLocation")continue;const f=parseInt(p,10);let A=0;e[p].patterns&&(A=d.getCompiledRuleId(e[p],n,i)),s[f]=d.createCaptureRule(n,e[p].$vscodeTextmateLocation,e[p].name,e[p].contentName,A)}}return s}static _compilePatterns(e,n,i){let s=[];if(e)for(let h=0,p=e.length;h<p;h++){const f=e[h];let A=-1;if(f.include){const x=N.parseInclude(f.include);switch(x.kind){case 0:case 1:A=d.getCompiledRuleId(i[f.include],n,i);break;case 2:let O=i[x.ruleName];O&&(A=d.getCompiledRuleId(O,n,i));break;case 3:case 4:const G=x.scopeName,z=x.kind===4?x.ruleName:null,U=n.getExternalGrammar(G,i);if(U)if(z){let B=U.repository[z];B&&(A=d.getCompiledRuleId(B,n,U.repository))}else A=d.getCompiledRuleId(U.repository.$self,n,U.repository)}}else A=d.getCompiledRuleId(f,n,i);if(A!==-1){const x=n.getRule(A);let O=!1;if((x instanceof g||x instanceof S||x instanceof v)&&x.hasMissingPatterns&&x.patterns.length===0&&(O=!0),O)continue;s.push(A)}}return{patterns:s,hasMissingPatterns:(e?e.length:0)!==s.length}}}a.RuleFactory=d;class u{constructor(e,n){if(e){const i=e.length;let s=0,h=[],p=!1;for(let f=0;f<i;f++)if(e.charAt(f)==="\\"&&f+1<i){const A=e.charAt(f+1);A==="z"?(h.push(e.substring(s,f)),h.push("$(?!\\n)(?<!\\n)"),s=f+2):A!=="A"&&A!=="G"||(p=!0),f++}this.hasAnchor=p,s===0?this.source=e:(h.push(e.substring(s,i)),this.source=h.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,this.hasBackReferences=r.test(this.source)}clone(){return new u(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,n){let i=n.map(s=>e.substring(s.start,s.end));return w.lastIndex=0,this.source.replace(w,(s,h)=>k.escapeRegExpCharacters(i[parseInt(h,10)]||""))}_buildAnchorCache(){let e,n,i,s,h=[],p=[],f=[],A=[];for(e=0,n=this.source.length;e<n;e++)i=this.source.charAt(e),h[e]=i,p[e]=i,f[e]=i,A[e]=i,i==="\\"&&e+1<n&&(s=this.source.charAt(e+1),s==="A"?(h[e+1]="",p[e+1]="",f[e+1]="A",A[e+1]="A"):s==="G"?(h[e+1]="",p[e+1]="G",f[e+1]="",A[e+1]="G"):(h[e+1]=s,p[e+1]=s,f[e+1]=s,A[e+1]=s),e++);return{A0_G0:h.join(""),A0_G1:p.join(""),A1_G0:f.join(""),A1_G1:A.join("")}}resolveAnchors(e,n){return this.hasAnchor&&this._anchorCache?e?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}a.RegExpSource=u;class c{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(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,n){this._items[e].source!==n&&(this._disposeCaches(),this._items[e].setSource(n))}compile(e){if(!this._cached){let n=this._items.map(i=>i.source);this._cached=new _(e,n,this._items.map(i=>i.ruleId))}return this._cached}compileAG(e,n,i){return this._hasAnchors?n?i?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,n,i)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,n,i)),this._anchorCache.A1_G0):i?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,n,i)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,n,i)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,n,i){let s=this._items.map(h=>h.resolveAnchors(n,i));return new _(e,s,this._items.map(h=>h.ruleId))}}a.RegExpSourceList=c;class _{constructor(e,n,i){this.regExps=n,this.rules=i,this.scanner=e.createOnigScanner(n)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let n=0,i=this.rules.length;n<i;n++)e.push(" - "+this.rules[n]+": "+this.regExps[n]);return e.join(`
|
|
4
4
|
`)}findNextMatchSync(e,n,i){const s=this.scanner.findNextMatchSync(e,n,i);return s?{ruleId:this.rules[s.index],captureIndices:s.captureIndices}:null}}a.CompiledRule=_},583:(R,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ThemeTrieElement=a.ThemeTrieElementRule=a.ColorMap=a.fontStyleToString=a.ParsedThemeRule=a.parseTheme=a.StyleAttributes=a.ScopeStack=a.Theme=void 0;const k=L(878);class N{constructor(u,c,_){this._colorMap=u,this._defaults=c,this._root=_,this._cachedMatchRoot=new k.CachedFn(o=>this._root.match(o))}static createFromRawTheme(u,c){return this.createFromParsedTheme(b(u),c)}static createFromParsedTheme(u,c){return function(_,o){_.sort((f,A)=>{let x=k.strcmp(f.scope,A.scope);return x!==0?x:(x=k.strArrCmp(f.parentScopes,A.parentScopes),x!==0?x:f.index-A.index)});let e=0,n="#000000",i="#ffffff";for(;_.length>=1&&_[0].scope==="";){let f=_.shift();f.fontStyle!==-1&&(e=f.fontStyle),f.foreground!==null&&(n=f.foreground),f.background!==null&&(i=f.background)}let s=new g(o),h=new m(e,s.getId(n),s.getId(i)),p=new v(new S(0,null,-1,0,0),[]);for(let f=0,A=_.length;f<A;f++){let x=_[f];p.insert(0,x.scope,x.parentScopes,x.fontStyle,s.getId(x.foreground),s.getId(x.background))}return new N(s,h,p)}(u,c)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(u){if(u===null)return this._defaults;const c=u.scopeName,_=this._cachedMatchRoot.get(c).find(o=>function(e,n){if(n===null)return!0;let i=0,s=n[i];for(;e;){if(w(e.scopeName,s)){if(i++,i===n.length)return!0;s=n[i]}e=e.parent}return!1}(u.parent,o.parentScopes));return _?new m(_.fontStyle,_.foreground,_.background):null}}a.Theme=N;class r{constructor(u,c){this.parent=u,this.scopeName=c}static from(...u){let c=null;for(let _=0;_<u.length;_++)c=new r(c,u[_]);return c}push(u){return new r(this,u)}getSegments(){let u=this;const c=[];for(;u;)c.push(u.scopeName),u=u.parent;return c.reverse(),c}toString(){return this.getSegments().join(" ")}}function w(d,u){return u===d||d.startsWith(u)&&d[u.length]==="."}a.ScopeStack=r;class m{constructor(u,c,_){this.fontStyle=u,this.foregroundId=c,this.backgroundId=_}}function b(d){if(!d)return[];if(!d.settings||!Array.isArray(d.settings))return[];let u=d.settings,c=[],_=0;for(let o=0,e=u.length;o<e;o++){let n,i=u[o];if(!i.settings)continue;if(typeof i.scope=="string"){let f=i.scope;f=f.replace(/^[,]+/,""),f=f.replace(/[,]+$/,""),n=f.split(",")}else n=Array.isArray(i.scope)?i.scope:[""];let s=-1;if(typeof i.settings.fontStyle=="string"){s=0;let f=i.settings.fontStyle.split(" ");for(let A=0,x=f.length;A<x;A++)switch(f[A]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break;case"strikethrough":s|=8}}let h=null;typeof i.settings.foreground=="string"&&k.isValidHexColor(i.settings.foreground)&&(h=i.settings.foreground);let p=null;typeof i.settings.background=="string"&&k.isValidHexColor(i.settings.background)&&(p=i.settings.background);for(let f=0,A=n.length;f<A;f++){let x=n[f].trim().split(" "),O=x[x.length-1],G=null;x.length>1&&(G=x.slice(0,x.length-1),G.reverse()),c[_++]=new T(O,G,o,s,h,p)}}return c}a.StyleAttributes=m,a.parseTheme=b;class T{constructor(u,c,_,o,e,n){this.scope=u,this.parentScopes=c,this.index=_,this.fontStyle=o,this.foreground=e,this.background=n}}a.ParsedThemeRule=T,a.fontStyleToString=function(d){if(d===-1)return"not set";let u="";return 1&d&&(u+="italic "),2&d&&(u+="bold "),4&d&&(u+="underline "),8&d&&(u+="strikethrough "),u===""&&(u="none"),u.trim()};class g{constructor(u){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(u)){this._isFrozen=!0;for(let c=0,_=u.length;c<_;c++)this._color2id[u[c]]=c,this._id2color[c]=u[c]}else this._isFrozen=!1}getId(u){if(u===null)return 0;u=u.toUpperCase();let c=this._color2id[u];if(c)return c;if(this._isFrozen)throw new Error(`Missing color in color map - ${u}`);return c=++this._lastColorId,this._color2id[u]=c,this._id2color[c]=u,c}getColorMap(){return this._id2color.slice(0)}}a.ColorMap=g;class S{constructor(u,c,_,o,e){this.scopeDepth=u,this.parentScopes=c,this.fontStyle=_,this.foreground=o,this.background=e}clone(){return new S(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(u){let c=[];for(let _=0,o=u.length;_<o;_++)c[_]=u[_].clone();return c}acceptOverwrite(u,c,_,o){this.scopeDepth>u?console.log("how did this happen?"):this.scopeDepth=u,c!==-1&&(this.fontStyle=c),_!==0&&(this.foreground=_),o!==0&&(this.background=o)}}a.ThemeTrieElementRule=S;class v{constructor(u,c=[],_={}){this._mainRule=u,this._children=_,this._rulesWithParentScopes=c}static _sortBySpecificity(u){return u.length===1||u.sort(this._cmpBySpecificity),u}static _cmpBySpecificity(u,c){if(u.scopeDepth===c.scopeDepth){const _=u.parentScopes,o=c.parentScopes;let e=_===null?0:_.length,n=o===null?0:o.length;if(e===n)for(let i=0;i<e;i++){const s=_[i].length,h=o[i].length;if(s!==h)return h-s}return n-e}return c.scopeDepth-u.scopeDepth}match(u){if(u==="")return v._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let c,_,o=u.indexOf(".");return o===-1?(c=u,_=""):(c=u.substring(0,o),_=u.substring(o+1)),this._children.hasOwnProperty(c)?this._children[c].match(_):v._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(u,c,_,o,e,n){if(c==="")return void this._doInsertHere(u,_,o,e,n);let i,s,h,p=c.indexOf(".");p===-1?(i=c,s=""):(i=c.substring(0,p),s=c.substring(p+1)),this._children.hasOwnProperty(i)?h=this._children[i]:(h=new v(this._mainRule.clone(),S.cloneArr(this._rulesWithParentScopes)),this._children[i]=h),h.insert(u+1,s,_,o,e,n)}_doInsertHere(u,c,_,o,e){if(c!==null){for(let n=0,i=this._rulesWithParentScopes.length;n<i;n++){let s=this._rulesWithParentScopes[n];if(k.strArrCmp(s.parentScopes,c)===0)return void s.acceptOverwrite(u,_,o,e)}_===-1&&(_=this._mainRule.fontStyle),o===0&&(o=this._mainRule.foreground),e===0&&(e=this._mainRule.background),this._rulesWithParentScopes.push(new S(u,c,_,o,e))}else this._mainRule.acceptOverwrite(u,_,o,e)}}a.ThemeTrieElement=v},878:(R,a)=>{function L(r){return Array.isArray(r)?function(w){let m=[];for(let b=0,T=w.length;b<T;b++)m[b]=L(w[b]);return m}(r):typeof r=="object"?function(w){let m={};for(let b in w)m[b]=L(w[b]);return m}(r):r}Object.defineProperty(a,"__esModule",{value:!0}),a.performanceNow=a.CachedFn=a.escapeRegExpCharacters=a.isValidHexColor=a.strArrCmp=a.strcmp=a.RegexSource=a.basename=a.mergeObjects=a.clone=void 0,a.clone=function(r){return L(r)},a.mergeObjects=function(r,...w){return w.forEach(m=>{for(let b in m)r[b]=m[b]}),r},a.basename=function r(w){const m=~w.lastIndexOf("/")||~w.lastIndexOf("\\");return m===0?w:~m==w.length-1?r(w.substring(0,w.length-1)):w.substr(1+~m)};let k=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function N(r,w){return r<w?-1:r>w?1:0}a.RegexSource=class{static hasCaptures(r){return r!==null&&(k.lastIndex=0,k.test(r))}static replaceCaptures(r,w,m){return r.replace(k,(b,T,g,S)=>{let v=m[parseInt(T||g,10)];if(!v)return b;{let d=w.substring(v.start,v.end);for(;d[0]===".";)d=d.substring(1);switch(S){case"downcase":return d.toLowerCase();case"upcase":return d.toUpperCase();default:return d}}})}},a.strcmp=N,a.strArrCmp=function(r,w){if(r===null&&w===null)return 0;if(!r)return-1;if(!w)return 1;let m=r.length,b=w.length;if(m===b){for(let T=0;T<m;T++){let g=N(r[T],w[T]);if(g!==0)return g}return 0}return m-b},a.isValidHexColor=function(r){return!!(/^#[0-9a-f]{6}$/i.test(r)||/^#[0-9a-f]{8}$/i.test(r)||/^#[0-9a-f]{3}$/i.test(r)||/^#[0-9a-f]{4}$/i.test(r))},a.escapeRegExpCharacters=function(r){return r.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},a.CachedFn=class{constructor(r){this.fn=r,this.cache=new Map}get(r){if(this.cache.has(r))return this.cache.get(r);const w=this.fn(r);return this.cache.set(r,w),w}},a.performanceNow=typeof performance>"u"?function(){return Date.now()}:function(){return performance.now()}}},l={};return function R(a){var L=l[a];if(L!==void 0)return L.exports;var k=l[a]={exports:{}};return j[a].call(k.exports,k,k.exports,R),k.exports}(787)})()})})(ze);const Le=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",samplePath:"applescript.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","tsx","css","less","sass","scss","stylus"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",samplePath:"bat.sample",aliases:["batch"]},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",samplePath:"codeql.sample",aliases:["ql"],embeddedLangs:["markdown"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",samplePath:"cpp.sample",embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",samplePath:"css.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",samplePath:"cue.sample"},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",samplePath:"dart.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",samplePath:"docker.sample"},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",embeddedLangs:["shellscript"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",samplePath:"hcl.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json"},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",embeddedLangs:["html"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json"},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",embeddedLangs:["css"]},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",embeddedLangs:["css","less","scss","typescript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json"},{id:"mdx",scopeName:"text.html.markdown.jsx",path:"mdx.tmLanguage.json",embeddedLangs:["jsx","markdown"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json"},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json"},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",embeddedLangs:["html","csharp"]},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",aliases:["shell","bash","sh","zsh"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",embeddedLangs:["css","javascript","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","yaml","toml","graphql"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",aliases:["文言"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json"},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",samplePath:"zenscript.sample"}];var be=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t))(be||{});class K{static toBinaryStr(y){let j=y.toString(2);for(;j.length<32;)j="0"+j;return j}static printMetadata(y){let j=K.getLanguageId(y),l=K.getTokenType(y),R=K.getFontStyle(y),a=K.getForeground(y),L=K.getBackground(y);console.log({languageId:j,tokenType:l,fontStyle:R,foreground:a,background:L})}static getLanguageId(y){return(y&255)>>>0}static getTokenType(y){return(y&768)>>>8}static getFontStyle(y){return(y&14336)>>>11}static getForeground(y){return(y&8372224)>>>15}static getBackground(y){return(y&4286578688)>>>24}static containsBalancedBrackets(y){return(y&1024)!==0}static set(y,j,l,R,a,L){let k=K.getLanguageId(y),N=K.getTokenType(y),r=K.getFontStyle(y),w=K.getForeground(y),m=K.getBackground(y),b=K.containsBalancedBrackets(y)?1:0;return j!==0&&(k=j),l!==0&&(N=l===8?0:l),R!==-1&&(r=R),a!==0&&(w=a),L!==0&&(m=L),(k<<0|N<<8|r<<11|b<<10|w<<15|m<<24)>>>0}}function Ce(t){return t.endsWith("/")||t.endsWith("\\")?t.slice(0,-1):t}function Ve(t){return t.startsWith("./")?t.slice(2):t}function Ee(t){const y=t.split(/[\/\\]/g);return y.slice(0,y.length-1)}function Ge(...t){return t.map(Ce).map(Ve).join("/")}function Qe(t,y){const j=new Map;for(const l of t){const R=y(l);j.has(R)?j.get(R).push(l):j.set(R,[l])}return j}function Je(t,y=!1){const j=t.length;let l=0,R="",a=0,L=16,k=0,N=0,r=0,w=0,m=0;function b(c,_){let o=0,e=0;for(;o<c||!_;){let n=t.charCodeAt(l);if(n>=48&&n<=57)e=e*16+n-48;else if(n>=65&&n<=70)e=e*16+n-65+10;else if(n>=97&&n<=102)e=e*16+n-97+10;else break;l++,o++}return o<c&&(e=-1),e}function T(c){l=c,R="",a=0,L=16,m=0}function g(){let c=l;if(t.charCodeAt(l)===48)l++;else for(l++;l<t.length&&me(t.charCodeAt(l));)l++;if(l<t.length&&t.charCodeAt(l)===46)if(l++,l<t.length&&me(t.charCodeAt(l)))for(l++;l<t.length&&me(t.charCodeAt(l));)l++;else return m=3,t.substring(c,l);let _=l;if(l<t.length&&(t.charCodeAt(l)===69||t.charCodeAt(l)===101))if(l++,(l<t.length&&t.charCodeAt(l)===43||t.charCodeAt(l)===45)&&l++,l<t.length&&me(t.charCodeAt(l))){for(l++;l<t.length&&me(t.charCodeAt(l));)l++;_=l}else m=3;return t.substring(c,_)}function S(){let c="",_=l;for(;;){if(l>=j){c+=t.substring(_,l),m=2;break}const o=t.charCodeAt(l);if(o===34){c+=t.substring(_,l),l++;break}if(o===92){if(c+=t.substring(_,l),l++,l>=j){m=2;break}switch(t.charCodeAt(l++)){case 34:c+='"';break;case 92:c+="\\";break;case 47:c+="/";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+=`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as n}from"./ImageLoader.51157bac.js";import{g as r,j as e,n as i,x as c,z as p,A as u,y as m,B as _,o as h,E as l,v as d}from"./entry.74c20cae.js";const k=r({__name:"svg",setup(v){const t=e.value?.height||630,s=(e.value?.width||1200)/t,a=i(()=>c(`${_.value}/api/og-image-svg`,{path:p.value,timestamp:u.value,...m.value}));return(f,w)=>{const o=n;return h(),l(o,{src:d(a),"aspect-ratio":s,description:"[SVG] Generated in %sms using Satori."},null,8,["src"])}}});export{k as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as o,F as a,o as r,c,v as s,G as i}from"./entry.74c20cae.js";import{h as _}from"./shiki.b89869e1.js";const l=["innerHTML"],d=o({__name:"vnodes",async setup(p){let e,t;const n=([e,t]=a(()=>i()),e=await e,t(),e);return(f,h)=>(r(),c("pre",{"of-auto":"","h-full":"","text-sm":"",style:{"white-space":"break-spaces"},innerHTML:s(_)(JSON.stringify(s(n),null,2),"json")},null,8,l))}});export{d as default};
|
package/dist/client/index.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.74c20cae.js"><link rel="preload" as="style" href="/__nuxt_og_image__/client/_nuxt/entry.1311cc29.css"><link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-404.f3dd5020.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-404.102f7671.js"><link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-500.06915589.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-500.f8617a9a.js"><link rel="stylesheet" href="/__nuxt_og_image__/client/_nuxt/entry.1311cc29.css"><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
|
|
5
5
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"></div><script>window.__NUXT__={
|
|
6
|
+
<body ><div id="__nuxt"><svg class="nuxt-spa-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37 25" fill="none" width="80"><path d="M24.236 22.006h10.742L25.563 5.822l-8.979 14.31a4 4 0 0 1-3.388 1.874H2.978l11.631-20 5.897 10.567"></path></svg><style>.nuxt-spa-loading{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%)}.nuxt-spa-loading>path{fill:none;stroke:#00DC82;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:128;stroke-dashoffset:128;animation:nuxt-spa-loading-move 3s linear infinite}@keyframes nuxt-spa-loading-move{100%{stroke-dashoffset:-128}}</style></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt_og_image__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="module" src="/__nuxt_og_image__/client/_nuxt/entry.74c20cae.js" crossorigin></script></body>
|
|
7
7
|
</html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.74c20cae.js"><link rel="preload" as="style" href="/__nuxt_og_image__/client/_nuxt/entry.1311cc29.css"><link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-404.f3dd5020.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-404.102f7671.js"><link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-500.06915589.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-500.f8617a9a.js"><link rel="stylesheet" href="/__nuxt_og_image__/client/_nuxt/entry.1311cc29.css"><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
|
|
5
5
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"></div><script>window.__NUXT__={
|
|
6
|
+
<body ><div id="__nuxt"><svg class="nuxt-spa-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37 25" fill="none" width="80"><path d="M24.236 22.006h10.742L25.563 5.822l-8.979 14.31a4 4 0 0 1-3.388 1.874H2.978l11.631-20 5.897 10.567"></path></svg><style>.nuxt-spa-loading{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%)}.nuxt-spa-loading>path{fill:none;stroke:#00DC82;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:128;stroke-dashoffset:128;animation:nuxt-spa-loading-move 3s linear infinite}@keyframes nuxt-spa-loading-move{100%{stroke-dashoffset:-128}}</style></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt_og_image__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="module" src="/__nuxt_og_image__/client/_nuxt/entry.74c20cae.js" crossorigin></script></body>
|
|
7
7
|
</html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.74c20cae.js"><link rel="preload" as="style" href="/__nuxt_og_image__/client/_nuxt/entry.1311cc29.css"><link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-404.f3dd5020.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-404.102f7671.js"><link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-500.06915589.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-500.f8617a9a.js"><link rel="stylesheet" href="/__nuxt_og_image__/client/_nuxt/entry.1311cc29.css"><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
|
|
5
5
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"></div><script>window.__NUXT__={
|
|
6
|
+
<body ><div id="__nuxt"><svg class="nuxt-spa-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37 25" fill="none" width="80"><path d="M24.236 22.006h10.742L25.563 5.822l-8.979 14.31a4 4 0 0 1-3.388 1.874H2.978l11.631-20 5.897 10.567"></path></svg><style>.nuxt-spa-loading{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%)}.nuxt-spa-loading>path{fill:none;stroke:#00DC82;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:128;stroke-dashoffset:128;animation:nuxt-spa-loading-move 3s linear infinite}@keyframes nuxt-spa-loading-move{100%{stroke-dashoffset:-128}}</style></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt_og_image__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="module" src="/__nuxt_og_image__/client/_nuxt/entry.74c20cae.js" crossorigin></script></body>
|
|
7
7
|
</html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.74c20cae.js"><link rel="preload" as="style" href="/__nuxt_og_image__/client/_nuxt/entry.1311cc29.css"><link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-404.f3dd5020.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-404.102f7671.js"><link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-500.06915589.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-500.f8617a9a.js"><link rel="stylesheet" href="/__nuxt_og_image__/client/_nuxt/entry.1311cc29.css"><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
|
|
5
5
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"></div><script>window.__NUXT__={
|
|
6
|
+
<body ><div id="__nuxt"><svg class="nuxt-spa-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37 25" fill="none" width="80"><path d="M24.236 22.006h10.742L25.563 5.822l-8.979 14.31a4 4 0 0 1-3.388 1.874H2.978l11.631-20 5.897 10.567"></path></svg><style>.nuxt-spa-loading{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%)}.nuxt-spa-loading>path{fill:none;stroke:#00DC82;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:128;stroke-dashoffset:128;animation:nuxt-spa-loading-move 3s linear infinite}@keyframes nuxt-spa-loading-move{100%{stroke-dashoffset:-128}}</style></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt_og_image__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="module" src="/__nuxt_og_image__/client/_nuxt/entry.74c20cae.js" crossorigin></script></body>
|
|
7
7
|
</html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.74c20cae.js"><link rel="preload" as="style" href="/__nuxt_og_image__/client/_nuxt/entry.1311cc29.css"><link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-404.f3dd5020.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-404.102f7671.js"><link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-500.06915589.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-500.f8617a9a.js"><link rel="stylesheet" href="/__nuxt_og_image__/client/_nuxt/entry.1311cc29.css"><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
|
|
5
5
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"></div><script>window.__NUXT__={
|
|
6
|
+
<body ><div id="__nuxt"><svg class="nuxt-spa-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37 25" fill="none" width="80"><path d="M24.236 22.006h10.742L25.563 5.822l-8.979 14.31a4 4 0 0 1-3.388 1.874H2.978l11.631-20 5.897 10.567"></path></svg><style>.nuxt-spa-loading{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%)}.nuxt-spa-loading>path{fill:none;stroke:#00DC82;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:128;stroke-dashoffset:128;animation:nuxt-spa-loading-move 3s linear infinite}@keyframes nuxt-spa-loading-move{100%{stroke-dashoffset:-128}}</style></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt_og_image__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="module" src="/__nuxt_og_image__/client/_nuxt/entry.74c20cae.js" crossorigin></script></body>
|
|
7
7
|
</html>
|