const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-DhSsrCnR.js","./vue-BCeUdUZW.js"])))=>i.map(i=>d[i]);
var P=Object.defineProperty;var w=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var y=(o,t,e)=>t in o?P(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,E=(o,t)=>{for(var e in t||(t={}))R.call(t,e)&&y(o,e,t[e]);if(w)for(var e of w(t))g.call(t,e)&&y(o,e,t[e]);return o};var c=(o,t,e)=>new Promise((_,s)=>{var u=r=>{try{p(e.next(r))}catch(i){s(i)}},d=r=>{try{p(e.throw(r))}catch(i){s(i)}},p=r=>r.done?_(r.value):Promise.resolve(r.value).then(u,d);p((e=e.apply(o,t)).next())});import{_ as A}from"./monaco-editor-xcHgnT1C.js";import{useRoute as h}from"./vue-router-DhSsrCnR.js";import"./element-plus-DzGjmbPT.js";import"./vxe-B6nyV_6w.js";import{O as k,k as O,E as V,A as T,w as B,J as D,j as I}from"./Editor-BMuQppe5-CHXZ3yZL.js";import{a as J,n as C,l as j,E as L}from"./utils-PnTZyUOd.js";import{w as S}from"./@vueuse--GEK18_Y.js";import{d as b,az as x,b as z,e as H,J as N,O as q,P as F,o as G,k as K}from"./vue-BCeUdUZW.js";import"./dayjs-C1e0w4cr.js";import"./@element-plus-icons-vue-Wht5hDuw.js";import"./lodash-es-BOeLjWVX.js";import"./shared-CcA2kMdO.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-DKzs-0ke.js";import"./marked-BQZxLJfc.js";const it=b({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new k(O(C)),s=([t,e]=x(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=V({loading:j,notify:C,useTitle:S,alert:J,access:s==null?void 0:s.access}),d=s?([t,e]=x(()=>new L(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=T({mode:B.Runtime,service:_,materialPath:p,adapter:E(E({},u),d.adapter),dependencies:{Vue:()=>A(()=>import("./vue-BCeUdUZW.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>A(()=>import("./vue-router-DhSsrCnR.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=h(),f=z(),n=K(),v=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{I(a,l,m)})});return i(()=>c(null,null,function*(){const a=n==null?void 0:n.appContext.app;a&&(a.use(D),a.use(r),v(a))})),H(()=>l.params.id,a=>c(null,null,function*(){if(a){const m=n==null?void 0:n.appContext.app;if(!m)return;v(m)}})),(a,m)=>f.value?(G(),N(F(f.value),{key:0})):q("",!0)})}});export{it as default};
