@vtj/pro 0.8.4 → 0.8.5
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/dist/.vtj/plugin-ckeditor.css +1 -0
- package/dist/.vtj/plugin-ckeditor.json +33 -0
- package/dist/.vtj/plugin-ckeditor.umd.js +7907 -0
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +8 -8
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +31 -31
- package/dist/assets/{@element-plus-DB6I6_WK.js → @element-plus-iS9Ydp4U.js} +1 -1
- package/dist/assets/{@vue-Zqc7nmKH.js → @vue-CDZiIyEm.js} +3 -3
- package/dist/assets/@vueuse-DgjlfHUm.js +1 -0
- package/dist/assets/{Editor-BKlikwSl-CPnXBna8.js → Editor-BKlikwSl-BmmgzzOJ.js} +2 -2
- package/dist/assets/{css.worker-DODvkEdu.js → css.worker-Cj_nKzFJ.js} +4 -4
- package/dist/assets/dayjs-Cdlb6j_n.js +1 -0
- package/dist/assets/{editor.worker-CE-p61q5.js → editor.worker-CxQ7p1mj.js} +1 -1
- package/dist/assets/{element-plus-T5RTZb1K.js → element-plus-BjPW53qd.js} +4 -4
- package/dist/assets/{html.worker-BGqTBnS3.js → html.worker-Dbbe6jGy.js} +14 -14
- package/dist/assets/{index-E363mA3e.js → index-CIDfQYNE.js} +57 -57
- package/dist/assets/index-i2bVtfCT.js +1 -0
- package/dist/assets/index-nsllsePD.js +2 -0
- package/dist/assets/{json.worker-DKz2hMix.js → json.worker-BiEozgVN.js} +21 -21
- package/dist/assets/lodash-es-DKmLY3Gz.js +1 -0
- package/dist/assets/{mockjs-BuqhTJ_Z.js → mockjs-c-NHcvHM.js} +1 -1
- package/dist/assets/{monaco-editor-6Zbq4Knz.js → monaco-editor-DdPna5vs.js} +260 -260
- package/dist/assets/preview-BAVTC1FE.js +2 -0
- package/dist/assets/{ts.worker-alAQGJzx.js → ts.worker-BomFZlTR.js} +66 -66
- package/dist/assets/{vue-Ddy_ikw5.js → vue-D4f2kDUi.js} +2 -2
- package/dist/assets/{vue-router-BvKvTwaM.js → vue-router-CfJoOnqL.js} +1 -1
- package/dist/index.html +9 -10
- package/package.json +10 -10
- package/dist/@vtj/materials/deps/@ckeditor/ckeditor5-build-classic/ckeditor.js +0 -7
- package/dist/@vtj/materials/deps/@ckeditor/ckeditor5-build-classic/zh-cn.js +0 -1
- package/dist/@vtj/materials/deps/@ckeditor/ckeditor5-vue/ckeditor.js +0 -6
- package/dist/assets/@ckeditor-Cpj98o6Y.js +0 -1
- package/dist/assets/@vueuse-dizDcq3e.js +0 -1
- package/dist/assets/dayjs-Bz4m6kJv.js +0 -1
- package/dist/assets/index-CStGogMI.js +0 -1
- package/dist/assets/index-D7Gr9T_C.js +0 -2
- package/dist/assets/lodash-es-D0J8aJCM.js +0 -1
- package/dist/assets/preview-ClQKsWlQ.js +0 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @vue/shared v3.4.24
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**//*! #__NO_SIDE_EFFECTS__ */function sl(e,t){const n=new Set(e.split(","));return s=>n.has(s)}const ai=()=>{},rl=Object.assign,il=Object.prototype.hasOwnProperty,Nn=(e,t)=>il.call(e,t),ze=Array.isArray,Tn=e=>di(e)==="[object Map]",js=e=>typeof e=="function",ol=e=>typeof e=="string",Qt=e=>typeof e=="symbol",en=e=>e!==null&&typeof e=="object",ll=Object.prototype.toString,di=e=>ll.call(e),cl=e=>di(e).slice(8,-1),ks=e=>ol(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Rt=(e,t)=>!Object.is(e,t),fl=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};/**
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function sl(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const ai=()=>{},rl=Object.assign,il=Object.prototype.hasOwnProperty,Nn=(e,t)=>il.call(e,t),ze=Array.isArray,Tn=e=>di(e)==="[object Map]",js=e=>typeof e=="function",ol=e=>typeof e=="string",Qt=e=>typeof e=="symbol",en=e=>e!==null&&typeof e=="object",ll=Object.prototype.toString,di=e=>ll.call(e),cl=e=>di(e).slice(8,-1),ks=e=>ol(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Rt=(e,t)=>!Object.is(e,t),fl=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};/**
|
|
6
6
|
* @vue/reactivity v3.4.24
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @vue/shared v3.4.24
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
|
-
**//*! #__NO_SIDE_EFFECTS__ */function Li(e,t){const n=new Set(e.split(","));return s=>n.has(s)}const Q={},bt=[],xe=()=>{},jl=()=>!1,Un=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),$i=e=>e.startsWith("onUpdate:"),le=Object.assign,Js=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},kl=Object.prototype.hasOwnProperty,Z=(e,t)=>kl.call(e,t),W=Array.isArray,Hi=e=>Kn(e)==="[object Map]",Vi=e=>Kn(e)==="[object Set]",Bl=e=>Kn(e)==="[object RegExp]",U=e=>typeof e=="function",ce=e=>typeof e=="string",Di=e=>typeof e=="symbol",ie=e=>e!==null&&typeof e=="object",Ys=e=>(ie(e)||U(e))&&U(e.then)&&U(e.catch),ji=Object.prototype.toString,Kn=e=>ji.call(e),ki=e=>Kn(e)==="[object Object]",Ct=Li(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ul=/-(\w)/g,Re=Wn(e=>e.replace(Ul,(t,n)=>n?n.toUpperCase():"")),Kl=/\B([A-Z])/g,tn=Wn(e=>e.replace(Kl,"-$1").toLowerCase()),zs=Wn(e=>e.charAt(0).toUpperCase()+e.slice(1)),xn=Wn(e=>e?`on${zs(e)}`:""),Wt=(e,t)=>!Object.is(e,t),Ht=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Wl=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Gl=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ql=e=>{const t=ce(e)?Number(e):NaN;return isNaN(t)?e:t};let Or;const Bi=()=>Or||(Or=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Jl="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",Yl=Li(Jl);function Gn(e){if(W(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=ce(s)?Ql(s):Gn(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(ce(e)||ie(e))return e}const zl=/;(?![^(]*\))/g,Zl=/:([^]+)/,Xl=/\/\*[^]*?\*\//g;function Ql(e){const t={};return e.replace(Xl,"").split(zl).forEach(n=>{if(n){const s=n.split(Zl);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function qn(e){let t="";if(ce(e))t=e;else if(W(e))for(let n=0;n<e.length;n++){const s=qn(e[n]);s&&(t+=s+" ")}else if(ie(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Ru(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ce(t)&&(e.class=qn(t)),n&&(e.style=Gn(n)),e}const Nu=e=>ce(e)?e:e==null?"":W(e)||ie(e)&&(e.toString===ji||!U(e.toString))?JSON.stringify(e,Ui,2):String(e),Ui=(e,t)=>t&&t.__v_isRef?Ui(e,t.value):Hi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[rs(s,i)+" =>"]=r,n),{})}:Vi(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>rs(n))}:Di(t)?rs(t):ie(t)&&!W(t)&&!ki(t)?String(t):t,rs=(e,t="")=>{var n;return Di(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
13
|
+
**//*! #__NO_SIDE_EFFECTS__ */function Li(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const Q={},bt=[],xe=()=>{},jl=()=>!1,Un=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),$i=e=>e.startsWith("onUpdate:"),le=Object.assign,Js=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},kl=Object.prototype.hasOwnProperty,Z=(e,t)=>kl.call(e,t),W=Array.isArray,Hi=e=>Kn(e)==="[object Map]",Vi=e=>Kn(e)==="[object Set]",Bl=e=>Kn(e)==="[object RegExp]",U=e=>typeof e=="function",ce=e=>typeof e=="string",Di=e=>typeof e=="symbol",ie=e=>e!==null&&typeof e=="object",Ys=e=>(ie(e)||U(e))&&U(e.then)&&U(e.catch),ji=Object.prototype.toString,Kn=e=>ji.call(e),ki=e=>Kn(e)==="[object Object]",Ct=Li(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ul=/-(\w)/g,Re=Wn(e=>e.replace(Ul,(t,n)=>n?n.toUpperCase():"")),Kl=/\B([A-Z])/g,tn=Wn(e=>e.replace(Kl,"-$1").toLowerCase()),zs=Wn(e=>e.charAt(0).toUpperCase()+e.slice(1)),xn=Wn(e=>e?`on${zs(e)}`:""),Wt=(e,t)=>!Object.is(e,t),Ht=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Wl=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Gl=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ql=e=>{const t=ce(e)?Number(e):NaN;return isNaN(t)?e:t};let Or;const Bi=()=>Or||(Or=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Jl="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",Yl=Li(Jl);function Gn(e){if(W(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=ce(s)?Ql(s):Gn(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(ce(e)||ie(e))return e}const zl=/;(?![^(]*\))/g,Zl=/:([^]+)/,Xl=/\/\*[^]*?\*\//g;function Ql(e){const t={};return e.replace(Xl,"").split(zl).forEach(n=>{if(n){const s=n.split(Zl);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function qn(e){let t="";if(ce(e))t=e;else if(W(e))for(let n=0;n<e.length;n++){const s=qn(e[n]);s&&(t+=s+" ")}else if(ie(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Ru(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ce(t)&&(e.class=qn(t)),n&&(e.style=Gn(n)),e}const Nu=e=>ce(e)?e:e==null?"":W(e)||ie(e)&&(e.toString===ji||!U(e.toString))?JSON.stringify(e,Ui,2):String(e),Ui=(e,t)=>t&&t.__v_isRef?Ui(e,t.value):Hi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[rs(s,i)+" =>"]=r,n),{})}:Vi(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>rs(n))}:Di(t)?rs(t):ie(t)&&!W(t)&&!ki(t)?String(t):t,rs=(e,t="")=>{var n;return Di(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
14
14
|
* @vue/runtime-core v3.4.24
|
|
15
15
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
16
|
* @license MIT
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* @vue/shared v3.4.24
|
|
19
19
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
20
20
|
* @license MIT
|
|
21
|
-
**//*! #__NO_SIDE_EFFECTS__ */function _f(e,t){const n=new Set(e.split(","));return s=>n.has(s)}const as={},yf=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),bf=e=>e.startsWith("onUpdate:"),on=Object.assign,Te=Array.isArray,ln=e=>Io(e)==="[object Set]",Kr=e=>Io(e)==="[object Date]",Fo=e=>typeof e=="function",Xt=e=>typeof e=="string",Wr=e=>typeof e=="symbol",Is=e=>e!==null&&typeof e=="object",Cf=Object.prototype.toString,Io=e=>Cf.call(e),dr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ef=/-(\w)/g,ds=dr(e=>e.replace(Ef,(t,n)=>n?n.toUpperCase():"")),Tf=/\B([A-Z])/g,Ye=dr(e=>e.replace(Tf,"-$1").toLowerCase()),wf=dr(e=>e.charAt(0).toUpperCase()+e.slice(1)),xf=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ls=e=>{const t=parseFloat(e);return isNaN(t)?e:t},$s=e=>{const t=Xt(e)?Number(e):NaN;return isNaN(t)?e:t},vf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Af=_f(vf);function Lo(e){return!!e||e===""}function Sf(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Qe(e[s],t[s]);return n}function Qe(e,t){if(e===t)return!0;let n=Kr(e),s=Kr(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Wr(e),s=Wr(t),n||s)return e===t;if(n=Te(e),s=Te(t),n||s)return n&&s?Sf(e,t):!1;if(n=Is(e),s=Is(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(l&&!c||!l&&c||!Qe(e[o],t[o]))return!1}}return String(e)===String(t)}function es(e,t){return e.findIndex(n=>Qe(n,t))}/**
|
|
21
|
+
**//*! #__NO_SIDE_EFFECTS__ */function _f(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const as={},yf=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),bf=e=>e.startsWith("onUpdate:"),on=Object.assign,Te=Array.isArray,ln=e=>Io(e)==="[object Set]",Kr=e=>Io(e)==="[object Date]",Fo=e=>typeof e=="function",Xt=e=>typeof e=="string",Wr=e=>typeof e=="symbol",Is=e=>e!==null&&typeof e=="object",Cf=Object.prototype.toString,Io=e=>Cf.call(e),dr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ef=/-(\w)/g,ds=dr(e=>e.replace(Ef,(t,n)=>n?n.toUpperCase():"")),Tf=/\B([A-Z])/g,Ye=dr(e=>e.replace(Tf,"-$1").toLowerCase()),wf=dr(e=>e.charAt(0).toUpperCase()+e.slice(1)),xf=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ls=e=>{const t=parseFloat(e);return isNaN(t)?e:t},$s=e=>{const t=Xt(e)?Number(e):NaN;return isNaN(t)?e:t},vf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Af=_f(vf);function Lo(e){return!!e||e===""}function Sf(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Qe(e[s],t[s]);return n}function Qe(e,t){if(e===t)return!0;let n=Kr(e),s=Kr(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Wr(e),s=Wr(t),n||s)return e===t;if(n=Te(e),s=Te(t),n||s)return n&&s?Sf(e,t):!1;if(n=Is(e),s=Is(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(l&&!c||!l&&c||!Qe(e[o],t[o]))return!1}}return String(e)===String(t)}function es(e,t){return e.findIndex(n=>Qe(n,t))}/**
|
|
22
22
|
* @vue/runtime-dom v3.4.24
|
|
23
23
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
24
24
|
* @license MIT
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as de,b as ve,u as pe,r as m,e as V,s as be,w as Oe,f as P,h as q,i as z,j as G,n as me,k as W,t as _e,l as Ee,m as Pe,p as xe}from"./@vue-CDZiIyEm.js";var Se=Object.defineProperty,$e=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Z=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,ee=(e,t,o)=>t in e?Se(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Ce=(e,t)=>{for(var o in t||(t={}))Te.call(t,o)&&ee(e,o,t[o]);if(Z)for(var o of Z(t))Ae.call(t,o)&&ee(e,o,t[o]);return e},Re=(e,t)=>$e(e,Ie(t));function wt(e,t){var o;const n=be();return Oe(()=>{n.value=e()},Re(Ce({},t),{flush:(o=t?.flush)!=null?o:"sync"})),V(n)}var te;const X=typeof window<"u",We=e=>typeof e<"u",U=e=>typeof e=="function",Me=e=>typeof e=="string",L=()=>{},Be=X&&((te=window?.navigator)==null?void 0:te.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function M(e){return typeof e=="function"?e():pe(e)}function he(e,t){function o(...n){return new Promise((s,r)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(s).catch(r)})}return o}function De(e,t={}){let o,n,s=L;const r=l=>{clearTimeout(l),s(),s=L};return l=>{const c=M(e),v=M(t.maxWait);return o&&r(o),c<=0||v!==void 0&&v<=0?(n&&(r(n),n=null),Promise.resolve(l())):new Promise((d,a)=>{s=t.rejectOnCancel?a:d,v&&!n&&(n=setTimeout(()=>{o&&r(o),n=null,d(l())},v)),o=setTimeout(()=>{n&&r(n),n=null,d(l())},c)})}}function Fe(e,t=!0,o=!0,n=!1){let s=0,r,u=!0,l=L,c;const v=()=>{r&&(clearTimeout(r),r=void 0,l(),l=L)};return a=>{const i=M(e),f=Date.now()-s,p=()=>c=a();return v(),i<=0?(s=Date.now(),p()):(f>i&&(o||!u)?(s=Date.now(),p()):t&&(c=new Promise((b,h)=>{l=n?h:b,r=setTimeout(()=>{s=Date.now(),u=!0,b(p()),v()},Math.max(0,i-f))})),!o&&!r&&(r=setTimeout(()=>u=!0,i)),u=!1,c)}}function Ne(e){return e}function Le(e,t){let o,n,s;const r=m(!0),u=()=>{r.value=!0,s()};P(e,u,{flush:"sync"});const l=U(t)?t:t.get,c=U(t)?void 0:t.set,v=q((d,a)=>(n=d,s=a,{get(){return r.value&&(o=l(),r.value=!1),n(),o},set(i){c?.(i)}}));return Object.isExtensible(v)&&(v.trigger=u),v}function Y(e){return de()?(ve(e),!0):!1}function He(e,t=200,o={}){return he(De(t,o),e)}function bt(e,t=200,o={}){const n=m(e.value),s=He(()=>{n.value=e.value},t,o);return P(e,()=>s()),n}function Ot(e,t=200,o=!1,n=!0,s=!1){return he(Fe(t,o,n,s),e)}function J(e,t=!0){z()?G(e):t?e():me(e)}function _t(e,t,o={}){const{immediate:n=!0}=o,s=m(!1);let r=null;function u(){r&&(clearTimeout(r),r=null)}function l(){s.value=!1,u()}function c(...v){u(),s.value=!0,r=setTimeout(()=>{s.value=!1,r=null,e(...v)},M(t))}return n&&(s.value=!0,X&&c()),Y(l),{isPending:V(s),start:c,stop:l}}function C(e){var t;const o=M(e);return(t=o?.$el)!=null?t:o}const B=X?window:void 0,je=X?window.document:void 0;function $(...e){let t,o,n,s;if(Me(e[0])||Array.isArray(e[0])?([o,n,s]=e,t=B):[t,o,n,s]=e,!t)return L;Array.isArray(o)||(o=[o]),Array.isArray(n)||(n=[n]);const r=[],u=()=>{r.forEach(d=>d()),r.length=0},l=(d,a,i,f)=>(d.addEventListener(a,i,f),()=>d.removeEventListener(a,i,f)),c=P(()=>[C(t),M(s)],([d,a])=>{u(),d&&r.push(...o.flatMap(i=>n.map(f=>l(d,i,f,a))))},{immediate:!0,flush:"post"}),v=()=>{c(),u()};return Y(v),v}let ne=!1;function Et(e,t,o={}){const{window:n=B,ignore:s=[],capture:r=!0,detectIframe:u=!1}=o;if(!n)return;Be&&!ne&&(ne=!0,Array.from(n.document.body.children).forEach(i=>i.addEventListener("click",L)));let l=!0;const c=i=>s.some(f=>{if(typeof f=="string")return Array.from(n.document.querySelectorAll(f)).some(p=>p===i.target||i.composedPath().includes(p));{const p=C(f);return p&&(i.target===p||i.composedPath().includes(p))}}),d=[$(n,"click",i=>{const f=C(e);if(!(!f||f===i.target||i.composedPath().includes(f))){if(i.detail===0&&(l=!c(i)),!l){l=!0;return}t(i)}},{passive:!0,capture:r}),$(n,"pointerdown",i=>{const f=C(e);f&&(l=!i.composedPath().includes(f)&&!c(i))},{passive:!0}),u&&$(n,"blur",i=>{var f;const p=C(e);((f=n.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!p?.contains(n.document.activeElement)&&t(i)})].filter(Boolean);return()=>d.forEach(i=>i())}function Pt(e={}){var t;const{window:o=B}=e,n=(t=e.document)!=null?t:o?.document,s=Le(()=>null,()=>n?.activeElement);return o&&($(o,"blur",r=>{r.relatedTarget===null&&s.trigger()},!0),$(o,"focus",s.trigger,!0)),s}function ge(e,t=!1){const o=m(),n=()=>o.value=!!e();return n(),J(n,t),o}function Ve(e){return JSON.parse(JSON.stringify(e))}const oe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},re="__vueuse_ssr_handlers__";oe[re]=oe[re]||{};function xt(e,t,{window:o=B,initialValue:n=""}={}){const s=m(n),r=W(()=>{var u;return C(t)||((u=o?.document)==null?void 0:u.documentElement)});return P([r,()=>M(e)],([u,l])=>{var c;if(u&&o){const v=(c=o.getComputedStyle(u).getPropertyValue(l))==null?void 0:c.trim();s.value=v||n}},{immediate:!0}),P(s,u=>{var l;(l=r.value)!=null&&l.style&&r.value.style.setProperty(M(e),u)}),s}function St({document:e=je}={}){if(!e)return m("visible");const t=m(e.visibilityState);return $(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var ie=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,Ye=(e,t)=>{var o={};for(var n in e)ze.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&ie)for(var n of ie(e))t.indexOf(n)<0&&Xe.call(e,n)&&(o[n]=e[n]);return o};function ke(e,t,o={}){const n=o,{window:s=B}=n,r=Ye(n,["window"]);let u;const l=ge(()=>s&&"ResizeObserver"in s),c=()=>{u&&(u.disconnect(),u=void 0)},v=P(()=>C(e),a=>{c(),l.value&&s&&a&&(u=new ResizeObserver(t),u.observe(a,r))},{immediate:!0,flush:"post"}),d=()=>{c(),v()};return Y(d),{isSupported:l,stop:d}}function $t(e,t={}){const{reset:o=!0,windowResize:n=!0,windowScroll:s=!0,immediate:r=!0}=t,u=m(0),l=m(0),c=m(0),v=m(0),d=m(0),a=m(0),i=m(0),f=m(0);function p(){const b=C(e);if(!b){o&&(u.value=0,l.value=0,c.value=0,v.value=0,d.value=0,a.value=0,i.value=0,f.value=0);return}const h=b.getBoundingClientRect();u.value=h.height,l.value=h.bottom,c.value=h.left,v.value=h.right,d.value=h.top,a.value=h.width,i.value=h.x,f.value=h.y}return ke(e,p),P(()=>C(e),b=>!b&&p()),s&&$("scroll",p,{capture:!0,passive:!0}),n&&$("resize",p,{passive:!0}),J(()=>{r&&p()}),{height:u,bottom:l,left:c,right:v,top:d,width:a,x:i,y:f,update:p}}var se=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,qe=(e,t)=>{var o={};for(var n in e)Qe.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&se)for(var n of se(e))t.indexOf(n)<0&&Ue.call(e,n)&&(o[n]=e[n]);return o};function It(e,t,o={}){const n=o,{window:s=B}=n,r=qe(n,["window"]);let u;const l=ge(()=>s&&"MutationObserver"in s),c=()=>{u&&(u.disconnect(),u=void 0)},v=P(()=>C(e),a=>{c(),l.value&&s&&a&&(u=new MutationObserver(t),u.observe(a,r))},{immediate:!0}),d=()=>{c(),v()};return Y(d),{isSupported:l,stop:d}}var ue;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ue||(ue={}));var Ge=Object.defineProperty,le=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,ae=(e,t,o)=>t in e?Ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Ze=(e,t)=>{for(var o in t||(t={}))Je.call(t,o)&&ae(e,o,t[o]);if(le)for(var o of le(t))Ke.call(t,o)&&ae(e,o,t[o]);return e};const et={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Ze({linear:Ne},et);function Tt(e,t,o,n={}){var s,r,u;const{clone:l=!1,passive:c=!1,eventName:v,deep:d=!1,defaultValue:a}=n,i=z(),f=o||i?.emit||((s=i?.$emit)==null?void 0:s.bind(i))||((u=(r=i?.proxy)==null?void 0:r.$emit)==null?void 0:u.bind(i?.proxy));let p=v;t||(t="modelValue"),p=v||p||`update:${t.toString()}`;const b=O=>l?U(l)?l(O):Ve(O):O,h=()=>We(e[t])?b(e[t]):a;if(c){const O=h(),y=m(O);return P(()=>e[t],_=>y.value=b(_)),P(y,_=>{(_!==e[t]||d)&&f(p,_)},{deep:d}),y}else return W({get(){return h()},set(O){f(p,O)}})}function At({window:e=B}={}){if(!e)return m(!1);const t=m(e.document.hasFocus());return $(e,"blur",()=>{t.value=!1}),$(e,"focus",()=>{t.value=!0}),t}function Ct(e={}){const{window:t=B,initialWidth:o=1/0,initialHeight:n=1/0,listenOrientation:s=!0,includeScrollbar:r=!0}=e,u=m(o),l=m(n),c=()=>{t&&(r?(u.value=t.innerWidth,l.value=t.innerHeight):(u.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return c(),J(c),$("resize",c,{passive:!0}),s&&$("orientationchange",c,{passive:!0}),{width:u,height:l}}function k(e){return de()?(ve(e),!0):!1}function E(e){return typeof e=="function"?e():pe(e)}const H=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const tt=e=>e!=null,nt=Object.prototype.toString,ot=e=>nt.call(e)==="[object Object]",j=()=>{},rt=it();function it(){var e,t;return H&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function st(e){let t;function o(){return t||(t=e()),t}return o.reset=async()=>{const n=t;t=void 0,n&&await n},o}function ye(e){return e||z()}function ut(...e){if(e.length!==1)return _e(...e);const t=e[0];return typeof t=="function"?V(q(()=>({get:t,set:j}))):m(t)}function lt(e,t={}){if(!Pe(e))return xe(e);const o=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const n in e.value)o[n]=q(()=>({get(){return e.value[n]},set(s){var r;if((r=E(t.replaceRef))!=null?r:!0)if(Array.isArray(e.value)){const l=[...e.value];l[n]=s,e.value=l}else{const l={...e.value,[n]:s};Object.setPrototypeOf(l,Object.getPrototypeOf(e.value)),e.value=l}else e.value[n]=s}}));return o}function at(e,t){ye(t)&&Ee(e,t)}function ct(e,t=!0,o){ye()?G(e,o):t?e():me(e)}function ft(e,t,o={}){const{immediate:n=!0}=o,s=m(!1);let r=null;function u(){r&&(clearTimeout(r),r=null)}function l(){s.value=!1,u()}function c(...v){u(),s.value=!0,r=setTimeout(()=>{s.value=!1,r=null,e(...v)},E(t))}return n&&(s.value=!0,H&&c()),k(l),{isPending:V(s),start:c,stop:l}}function x(e){var t;const o=E(e);return(t=o?.$el)!=null?t:o}const D=H?window:void 0,dt=H?window.document:void 0,we=H?window.navigator:void 0;function S(...e){let t,o,n,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([o,n,s]=e,t=D):[t,o,n,s]=e,!t)return j;Array.isArray(o)||(o=[o]),Array.isArray(n)||(n=[n]);const r=[],u=()=>{r.forEach(d=>d()),r.length=0},l=(d,a,i,f)=>(d.addEventListener(a,i,f),()=>d.removeEventListener(a,i,f)),c=P(()=>[x(t),E(s)],([d,a])=>{if(u(),!d)return;const i=ot(a)?{...a}:a;r.push(...o.flatMap(f=>n.map(p=>l(d,f,p,i))))},{immediate:!0,flush:"post"}),v=()=>{c(),u()};return k(v),v}let ce=!1;function Rt(e,t,o={}){const{window:n=D,ignore:s=[],capture:r=!0,detectIframe:u=!1}=o;if(!n)return j;rt&&!ce&&(ce=!0,Array.from(n.document.body.children).forEach(i=>i.addEventListener("click",j)),n.document.documentElement.addEventListener("click",j));let l=!0;const c=i=>s.some(f=>{if(typeof f=="string")return Array.from(n.document.querySelectorAll(f)).some(p=>p===i.target||i.composedPath().includes(p));{const p=x(f);return p&&(i.target===p||i.composedPath().includes(p))}}),d=[S(n,"click",i=>{const f=x(e);if(!(!f||f===i.target||i.composedPath().includes(f))){if(i.detail===0&&(l=!c(i)),!l){l=!0;return}t(i)}},{passive:!0,capture:r}),S(n,"pointerdown",i=>{const f=x(e);l=!c(i)&&!!(f&&!i.composedPath().includes(f))},{passive:!0}),u&&S(n,"blur",i=>{setTimeout(()=>{var f;const p=x(e);((f=n.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!p?.contains(n.document.activeElement)&&t(i)},0)})].filter(Boolean);return()=>d.forEach(i=>i())}function vt(){const e=m(!1),t=z();return t&&G(()=>{e.value=!0},t),e}function Q(e){const t=vt();return W(()=>(t.value,!!e()))}function fe(e,t={}){const{controls:o=!1,navigator:n=we}=t,s=Q(()=>n&&"permissions"in n);let r;const u=typeof e=="string"?{name:e}:e,l=m(),c=()=>{r&&(l.value=r.state)},v=st(async()=>{if(s.value){if(!r)try{r=await n.permissions.query(u),S(r,"change",c),c()}catch{l.value="prompt"}return r}});return v(),o?{state:l,isSupported:s,query:v}:l}function Wt(e={}){const{navigator:t=we,read:o=!1,source:n,copiedDuring:s=1500,legacy:r=!1}=e,u=Q(()=>t&&"clipboard"in t),l=fe("clipboard-read"),c=fe("clipboard-write"),v=W(()=>u.value||r),d=m(""),a=m(!1),i=ft(()=>a.value=!1,s);function f(){u.value&&O(l.value)?t.clipboard.readText().then(y=>{d.value=y}):d.value=h()}v.value&&o&&S(["copy","cut"],f);async function p(y=E(n)){v.value&&y!=null&&(u.value&&O(c.value)?await t.clipboard.writeText(y):b(y),d.value=y,a.value=!0,i.start())}function b(y){const _=document.createElement("textarea");_.value=y??"",_.style.position="absolute",_.style.opacity="0",document.body.appendChild(_),_.select(),document.execCommand("copy"),_.remove()}function h(){var y,_,T;return(T=(_=(y=document?.getSelection)==null?void 0:y.call(document))==null?void 0:_.toString())!=null?T:""}function O(y){return y==="granted"||y==="prompt"}return{isSupported:v,text:d,copied:a,copy:p}}function pt(e,t,o={}){const{window:n=D,...s}=o;let r;const u=Q(()=>n&&"MutationObserver"in n),l=()=>{r&&(r.disconnect(),r=void 0)},c=W(()=>{const i=E(e),f=(Array.isArray(i)?i:[i]).map(x).filter(tt);return new Set(f)}),v=P(()=>c.value,i=>{l(),u.value&&n&&i.size&&(r=new MutationObserver(t),i.forEach(f=>r.observe(f,s)))},{immediate:!0,flush:"post"}),d=()=>r?.takeRecords(),a=()=>{l(),v()};return k(a),{isSupported:u,stop:a,takeRecords:d}}function Mt(e,t={}){var o,n;const{pointerTypes:s,preventDefault:r,stopPropagation:u,exact:l,onMove:c,onEnd:v,onStart:d,initialValue:a,axis:i="both",draggingElement:f=D,containerElement:p,handle:b=e}=t,h=m((o=E(a))!=null?o:{x:0,y:0}),O=m(),y=g=>s?s.includes(g.pointerType):!0,_=g=>{E(r)&&g.preventDefault(),E(u)&&g.stopPropagation()},T=g=>{var F;if(E(t.disabled)||!y(g)||E(l)&&g.target!==E(e))return;const A=E(p),N=(F=A?.getBoundingClientRect)==null?void 0:F.call(A),R=E(e).getBoundingClientRect(),K={x:g.clientX-(A?R.left-N.left+A.scrollLeft:R.left),y:g.clientY-(A?R.top-N.top+A.scrollTop:R.top)};d?.(K,g)!==!1&&(O.value=K,_(g))},w=g=>{if(E(t.disabled)||!y(g)||!O.value)return;const F=E(p),A=E(e).getBoundingClientRect();let{x:N,y:R}=h.value;(i==="x"||i==="both")&&(N=g.clientX-O.value.x,F&&(N=Math.min(Math.max(0,N),F.scrollWidth-A.width))),(i==="y"||i==="both")&&(R=g.clientY-O.value.y,F&&(R=Math.min(Math.max(0,R),F.scrollHeight-A.height))),h.value={x:N,y:R},c?.(h.value,g),_(g)},I=g=>{E(t.disabled)||!y(g)||O.value&&(O.value=void 0,v?.(h.value,g),_(g))};if(H){const g={capture:(n=t.capture)!=null?n:!0};S(b,"pointerdown",T,g),S(f,"pointermove",w,g),S(f,"pointerup",I,g)}return{...lt(h),position:h,isDragging:W(()=>!!O.value),style:W(()=>`left:${h.value.x}px;top:${h.value.y}px;`)}}function mt(e,t,o={}){const{window:n=D,...s}=o;let r;const u=Q(()=>n&&"ResizeObserver"in n),l=()=>{r&&(r.disconnect(),r=void 0)},c=W(()=>Array.isArray(e)?e.map(a=>x(a)):[x(e)]),v=P(c,a=>{if(l(),u.value&&n){r=new ResizeObserver(t);for(const i of a)i&&r.observe(i,s)}},{immediate:!0,flush:"post"}),d=()=>{l(),v()};return k(d),{isSupported:u,stop:d}}function Bt(e,t={width:0,height:0},o={}){const{window:n=D,box:s="content-box"}=o,r=W(()=>{var a,i;return(i=(a=x(e))==null?void 0:a.namespaceURI)==null?void 0:i.includes("svg")}),u=m(t.width),l=m(t.height),{stop:c}=mt(e,([a])=>{const i=s==="border-box"?a.borderBoxSize:s==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(n&&r.value){const f=x(e);if(f){const p=n.getComputedStyle(f);u.value=Number.parseFloat(p.width),l.value=Number.parseFloat(p.height)}}else if(i){const f=Array.isArray(i)?i:[i];u.value=f.reduce((p,{inlineSize:b})=>p+b,0),l.value=f.reduce((p,{blockSize:b})=>p+b,0)}else u.value=a.contentRect.width,l.value=a.contentRect.height},o);ct(()=>{const a=x(e);a&&(u.value="offsetWidth"in a?a.offsetWidth:t.width,l.value="offsetHeight"in a?a.offsetHeight:t.height)});const v=P(()=>x(e),a=>{u.value=a?t.width:0,l.value=a?t.height:0});function d(){c(),v()}return{width:u,height:l,stop:d}}const ht={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function gt(e={}){const{type:t="page",touch:o=!0,resetOnTouchEnds:n=!1,initialValue:s={x:0,y:0},window:r=D,target:u=r,scroll:l=!0,eventFilter:c}=e;let v=null;const d=m(s.x),a=m(s.y),i=m(null),f=typeof t=="function"?t:ht[t],p=w=>{const I=f(w);v=w,I&&([d.value,a.value]=I,i.value="mouse")},b=w=>{if(w.touches.length>0){const I=f(w.touches[0]);I&&([d.value,a.value]=I,i.value="touch")}},h=()=>{if(!v||!r)return;const w=f(v);v instanceof MouseEvent&&w&&(d.value=w[0]+r.scrollX,a.value=w[1]+r.scrollY)},O=()=>{d.value=s.x,a.value=s.y},y=c?w=>c(()=>p(w),{}):w=>p(w),_=c?w=>c(()=>b(w),{}):w=>b(w),T=c?()=>c(()=>h(),{}):()=>h();if(u){const w={passive:!0};S(u,["mousemove","dragover"],y,w),o&&t!=="movement"&&(S(u,["touchstart","touchmove"],_,w),n&&S(u,"touchend",O,w)),l&&t==="page"&&S(r,"scroll",T,{passive:!0})}return{x:d,y:a,sourceType:i}}function Dt(e,t={}){const{handleOutside:o=!0,window:n=D}=t,s=t.type||"page",{x:r,y:u,sourceType:l}=gt(t),c=m(e??n?.document.body),v=m(0),d=m(0),a=m(0),i=m(0),f=m(0),p=m(0),b=m(!0);let h=()=>{};return n&&(h=P([c,r,u],()=>{const O=x(c);if(!O)return;const{left:y,top:_,width:T,height:w}=O.getBoundingClientRect();a.value=y+(s==="page"?n.pageXOffset:0),i.value=_+(s==="page"?n.pageYOffset:0),f.value=w,p.value=T;const I=r.value-a.value,g=u.value-i.value;b.value=T===0||w===0||I<0||g<0||I>T||g>w,(o||!b.value)&&(v.value=I,d.value=g)},{immediate:!0}),S(document,"mouseleave",()=>{b.value=!0})),{x:r,y:u,sourceType:l,elementX:v,elementY:d,elementPositionX:a,elementPositionY:i,elementHeight:f,elementWidth:p,isOutside:b,stop:h}}function Ft(e=null,t={}){var o,n,s;const{document:r=dt,restoreOnUnmount:u=a=>a}=t,l=(o=r?.title)!=null?o:"",c=ut((n=e??r?.title)!=null?n:null),v=e&&typeof e=="function";function d(a){if(!("titleTemplate"in t))return a;const i=t.titleTemplate||"%s";return typeof i=="function"?i(a):E(i).replace(/%s/g,a)}return P(c,(a,i)=>{a!==i&&r&&(r.title=d(typeof a=="string"?a:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&r&&!v&&pt((s=r.head)==null?void 0:s.querySelector("title"),()=>{r&&r.title!==c.value&&(c.value=d(r.title))},{childList:!0}),at(()=>{if(u){const a=u(l,c.value||"");a!=null&&r&&(r.title=a)}}),c}export{C as a,Ct as b,$t as c,ke as d,Ot as e,xt as f,_t as g,It as h,X as i,St as j,At as k,wt as l,Tt as m,Pt as n,Et as o,Dt as p,S as q,bt as r,Bt as s,Y as t,$ as u,Mt as v,Ft as w,Wt as x,Rt as y};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__fileDeps=["./monaco-editor-
|
|
2
|
-
import{_ as i,e as h}from"./monaco-editor-
|
|
1
|
+
const __vite__fileDeps=["./monaco-editor-DdPna5vs.js","./monaco-editor-BoaUnmrp.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
|
2
|
+
import{_ as i,e as h}from"./monaco-editor-DdPna5vs.js";import{d as y,r as f,j as g,n as v,I as E,f as V,o as w,c as T,O as k,aa as D,a5 as P,P as b}from"./@vue-CDZiIyEm.js";const A=y({__name:"Editor",props:{lang:{default:"typescript"},modelValue:{default:""},options:{default:()=>({})},height:{default:"300px"},readonly:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},border:{type:Boolean},minimap:{type:Boolean,default:!1}},emits:["change","blur","update:modelValue"],setup(d,{expose:u,emit:m}){const t=d;self.MonacoEnvironment={createTrustedTypesPolicy:void 0,async getWorker(o,r){let n;return r==="json"&&(n=await i(()=>import("./monaco-editor-DdPna5vs.js").then(a=>a.j),__vite__mapDeps([0,1]),import.meta.url)),["css","scss","less"].includes(r)&&(n=await i(()=>import("./monaco-editor-DdPna5vs.js").then(a=>a.c),__vite__mapDeps([0,1]),import.meta.url)),["html","handlebars","razor","vue"].includes(r)&&(n=await i(()=>import("./monaco-editor-DdPna5vs.js").then(a=>a.h),__vite__mapDeps([0,1]),import.meta.url)),["typescript","javascript"].includes(r)&&(n=await i(()=>import("./monaco-editor-DdPna5vs.js").then(a=>a.t),__vite__mapDeps([0,1]),import.meta.url)),n=n||await i(()=>import("./monaco-editor-DdPna5vs.js").then(a=>a.a),__vite__mapDeps([0,1]),import.meta.url),new n.default}};const l=m,s=f();let e=null;const p=async()=>{e&&(await e.getAction("editor.action.formatDocument")?.run(),e.setValue(e.getValue()))},c=async()=>{await p();const o=e?.getValue();l("update:modelValue",o),l("blur",o)},_=()=>{e=h.create(s.value,{value:t.modelValue,language:t.lang,readOnly:t.readonly,theme:t.dark?"vs-dark":"vs",automaticLayout:!0,minimap:{enabled:t.minimap},...t.options}),e.onDidChangeModelContent(o=>{l("change",e?.getValue(),o)}),e.onDidBlurEditorText(c)};return g(()=>{v(_)}),E(()=>{e&&e.dispose()}),V(()=>t.modelValue,o=>{e&&e.setValue(o)}),u({getEditor:()=>e}),(o,r)=>(w(),T("div",{class:k(["v-code-editor",{"is-border":t.border}]),ref_key:"container",ref:s,onKeyup:r[0]||(r[0]=D(P(()=>{},["stop"]),["enter"])),style:b({height:t.height})},null,38))}});export{A as default};
|