1import{C as e,E as t,Pt as n,St as r,T as i,X as a,Xt as o,et as s,g as c,h as l,i as u,k as d,m as f,n as p,r as m,t as h,w as g,wt as _,x as v,y}from"./chunks/framework.CsLlEPF4.js";import{t as b}from"./chunks/theme.DnRNGagD.js";function x(e){if(e.extends){let t=x(e.extends);return{...t,...e,async enhanceApp(n){t.enhanceApp&&await t.enhanceApp(n),e.enhanceApp&&await e.enhanceApp(n)}}}return e}var S=x(b),C=r({name:`VitePressApp`,setup(){let{site:e,lang:r,dir:i}=t();return n(()=>{o(()=>{document.documentElement.lang=r.value,document.documentElement.dir=i.value})}),e.value.router.prefetchLinks&&h(),m(),u(),S.setup&&S.setup(),()=>_(S.Layout)}});async function w(){globalThis.__VITEPRESS__=!0;let t=E(),n=T();n.provide(l,t);let r=g(t.route);return n.provide(e,r),n.component(`Content`,y),n.component(`ClientOnly`,a),Object.defineProperties(n.config.globalProperties,{$frontmatter:{get(){return r.frontmatter.value}},$params:{get(){return r.page.value.params}}}),S.enhanceApp&&await S.enhanceApp({app:n,router:t,siteData:i}
1),{app:n,router:t,data:r}}function T(){return s(C)}function E(){let e=d;return c(t=>{let n=v(t),r=null;return n&&(e&&(n=n.replace(/\.js$/,`.lean.js`)),r=f(()=>import(n),[])),d&&(e=!1),r},S.NotFound)}d&&w().then(({app:e,router:t,data:n})=>{t.go(location.href,{initialLoad:!0}).then(()=>{p(t.route,n.site),e.mount(`#app`)})});export{w as createApp};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.