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