schlechtenburg/docs/assets/index.84f4ccb4.js

3 lines
20 KiB
JavaScript

var t=Object.assign;import{d as e,r as n,i as r,a as s,c as o,b as l,m as c,s as i,e as a,f as u,o as f,g as p,h as d}from"./vendor.8be2b941.js";!function(t=".",e="__import__"){try{self[e]=new Function("u","return import(u)")}catch(n){const r=new URL(t,location),s=t=>{URL.revokeObjectURL(t.src),t.remove()};self[e]=t=>new Promise(((n,o)=>{const l=new URL(t,r);if(self[e].moduleMap[l])return n(self[e].moduleMap[l]);const c=new Blob([`import * as m from '${l}';`,`${e}.moduleMap['${l}']=m;`],{type:"text/javascript"}),i=Object.assign(document.createElement("script"),{type:"module",src:URL.createObjectURL(c),onerror(){o(new Error(`Failed to import: ${t}`)),s(i)},onload(){n(self[e].moduleMap[l]),s(i)}});document.head.appendChild(i)})),self[e].moduleMap={}}}("assets/");const h=Symbol("Schlechtenburg block library");const _=e({name:"sb-block",props:{block:{type:Object,required:!0}},setup(t,e){const i=n(null),a=r(h,s({}));return()=>{var n;const r=(null==(s=t.block.name,n=a[s])?void 0:n.component)||o("span",null,[l("Missing block "),name]);var s;return o("div",{ref:i,class:"sb-block"},[o(r,c({data:t.block.data,blockId:t.block.id},e.attrs),null)])}}});const g=e({name:"sb-main",model:{prop:"block",event:"update"},props:{customBlocks:{type:Array,default:()=>[]},block:{type:Object,required:!0},onUpdate:{type:Function,default:()=>{}}},setup:e=>(i(t({},e.customBlocks.reduce(((e,n)=>t(t({},e),{[n.name]:n})),{}))),()=>o("div",{class:"sb-main"},[o(_,{block:e.block},null)]))});let v;const m={};function y(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}const b=y("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt");function w(t){if(P(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],s=w(A(r)?R(r):r);if(s)for(const t in s)e[t]=s[t]}return e}if(L(t))return t}const k=/;(?![^(]*\))/g,S=/:(.+)/;function R(t){const e={};return t.split(k).forEach((t=>{if(t){const n=t.split(S);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function x(t){let e="";if(A(t))e=t;else if(P(t))for(let n=0;n<t.length;n++){const r=x(t[n]);r&&(e+=r+" ")}else if(L(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const E={},C=()=>{},O=/^on[^a-z]/,j=t=>O.test(t),$=Object.assign,F=Object.prototype.hasOwnProperty,M=(t,e)=>F.call(t,e),P=Array.isArray,I=t=>"[object Map]"===z(t),U=t=>"function"==typeof t,A=t=>"string"==typeof t,N=t=>"symbol"==typeof t,L=t=>null!==t&&"object"==typeof t,T=Object.prototype.toString,z=t=>T.call(t),B=t=>A(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,V=(t,e)=>t!==e&&(t==t||e==e),W=new WeakMap,D=[];let q;const K=Symbol(""),H=Symbol("");function J(t,e=E){(function(t){return t&&!0===t._isEffect})(t)&&(t=t.raw);const n=function(t,e){const n=function(){if(!n.active)return e.scheduler?void 0:t();if(!D.includes(n)){Q(n);try{return Y.push(X),X=!0,D.push(n),q=n,t()}finally{D.pop(),tt(),q=D[D.length-1]}}};return n.id=G++,n.allowRecurse=!!e.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=t,n.deps=[],n.options=e,n}(t,e);return e.lazy||n(),n}let G=0;function Q(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let X=!0;const Y=[];function Z(){Y.push(X),X=!1}function tt(){const t=Y.pop();X=void 0===t||t}function et(t,e,n){if(!X||void 0===q)return;let r=W.get(t);r||W.set(t,r=new Map);let s=r.get(n);s||r.set(n,s=new Set),s.has(q)||(s.add(q),q.deps.push(s))}function nt(t,e,n,r,s,o){const l=W.get(t);if(!l)return;const c=new Set,i=t=>{t&&t.forEach((t=>{(t!==q||t.allowRecurse)&&c.add(t)}))};if("clear"===e)l.forEach(i);else if("length"===n&&P(t))l.forEach(((t,e)=>{("length"===e||e>=r)&&i(t)}));else switch(void 0!==n&&i(l.get(n)),e){case"add":P(t)?B(n)&&i(l.get("length")):(i(l.get(K)),I(t)&&i(l.get(H)));break;case"delete":P(t)||(i(l.get(K)),I(t)&&i(l.get(H)));break;case"set":I(t)&&i(l.get(K))}c.forEach((t=>{t.options.scheduler?t.options.scheduler(t):t()}))}const rt=y("__proto__,__v_isRef,__isVue"),st=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(N)),ot=ut(),lt=ut(!1,!0),ct=ut(!0),it=ut(!0,!0),at={};function ut(t=!1,e=!1){return function(n,r,s){if("__v_isReactive"===r)return!t;if("__v_isReadonly"===r)return t;if("__v_raw"===r&&s===(t?Ut:It).get(n))return n;const o=P(n);if(!t&&o&&M(at,r))return Reflect.get(at,r,s);const l=Reflect.get(n,r,s);if(N(r)?st.has(r):rt(r))return l;if(t||et(n,0,r),e)return l;if(qt(l)){return!o||!B(r)?l.value:l}return L(l)?t?Lt(l):Nt(l):l}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];at[t]=function(...t){const n=Wt(this);for(let e=0,s=this.length;e<s;e++)et(n,0,e+"");const r=e.apply(n,t);return-1===r||!1===r?e.apply(n,t.map(Wt)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{const e=Array.prototype[t];at[t]=function(...t){Z();const n=e.apply(this,t);return tt(),n}}));function ft(t=!1){return function(e,n,r,s){const o=e[n];if(!t&&(r=Wt(r),!P(e)&&qt(o)&&!qt(r)))return o.value=r,!0;const l=P(e)&&B(n)?Number(n)<e.length:M(e,n),c=Reflect.set(e,n,r,s);return e===Wt(s)&&(l?V(r,o)&&nt(e,"set",n,r):nt(e,"add",n,r)),c}}const pt={get:ot,set:ft(),deleteProperty:function(t,e){const n=M(t,e);t[e];const r=Reflect.deleteProperty(t,e);return r&&n&&nt(t,"delete",e,void 0),r},has:function(t,e){const n=Reflect.has(t,e);return N(e)&&st.has(e)||et(t,0,e),n},ownKeys:function(t){return et(t,0,P(t)?"length":K),Reflect.ownKeys(t)}},dt={get:ct,set:(t,e)=>!0,deleteProperty:(t,e)=>!0};$({},pt,{get:lt,set:ft(!0)}),$({},dt,{get:it});const ht=t=>L(t)?Nt(t):t,_t=t=>L(t)?Lt(t):t,gt=t=>t,vt=t=>Reflect.getPrototypeOf(t);function mt(t,e,n=!1,r=!1){const s=Wt(t=t.__v_raw),o=Wt(e);e!==o&&!n&&et(s,0,e),!n&&et(s,0,o);const{has:l}=vt(s),c=n?_t:r?gt:ht;return l.call(s,e)?c(t.get(e)):l.call(s,o)?c(t.get(o)):void 0}function yt(t,e=!1){const n=this.__v_raw,r=Wt(n),s=Wt(t);return t!==s&&!e&&et(r,0,t),!e&&et(r,0,s),t===s?n.has(t):n.has(t)||n.has(s)}function bt(t,e=!1){return t=t.__v_raw,!e&&et(Wt(t),0,K),Reflect.get(t,"size",t)}function wt(t){t=Wt(t);const e=Wt(this);return vt(e).has.call(e,t)||(e.add(t),nt(e,"add",t,t)),this}function kt(t,e){e=Wt(e);const n=Wt(this),{has:r,get:s}=vt(n);let o=r.call(n,t);o||(t=Wt(t),o=r.call(n,t));const l=s.call(n,t);return n.set(t,e),o?V(e,l)&&nt(n,"set",t,e):nt(n,"add",t,e),this}function St(t){const e=Wt(this),{has:n,get:r}=vt(e);let s=n.call(e,t);s||(t=Wt(t),s=n.call(e,t)),r&&r.call(e,t);const o=e.delete(t);return s&&nt(e,"delete",t,void 0),o}function Rt(){const t=Wt(this),e=0!==t.size,n=t.clear();return e&&nt(t,"clear",void 0,void 0),n}function xt(t,e){return function(n,r){const s=this,o=s.__v_raw,l=Wt(o),c=t?_t:e?gt:ht;return!t&&et(l,0,K),o.forEach(((t,e)=>n.call(r,c(t),c(e),s)))}}function Et(t,e,n){return function(...r){const s=this.__v_raw,o=Wt(s),l=I(o),c="entries"===t||t===Symbol.iterator&&l,i="keys"===t&&l,a=s[t](...r),u=e?_t:n?gt:ht;return!e&&et(o,0,i?H:K),{next(){const{value:t,done:e}=a.next();return e?{value:t,done:e}:{value:c?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}}function Ct(t){return function(...e){return"delete"!==t&&this}}const Ot={get(t){return mt(this,t)},get size(){return bt(this)},has:yt,add:wt,set:kt,delete:St,clear:Rt,forEach:xt(!1,!1)},jt={get(t){return mt(this,t,!1,!0)},get size(){return bt(this)},has:yt,add:wt,set:kt,delete:St,clear:Rt,forEach:xt(!1,!0)},$t={get(t){return mt(this,t,!0)},get size(){return bt(this,!0)},has(t){return yt.call(this,t,!0)},add:Ct("add"),set:Ct("set"),delete:Ct("delete"),clear:Ct("clear"),forEach:xt(!0,!1)};function Ft(t,e){const n=e?jt:t?$t:Ot;return(e,r,s)=>"__v_isReactive"===r?!t:"__v_isReadonly"===r?t:"__v_raw"===r?e:Reflect.get(M(n,r)&&r in e?n:e,r,s)}["keys","values","entries",Symbol.iterator].forEach((t=>{Ot[t]=Et(t,!1,!1),$t[t]=Et(t,!0,!1),jt[t]=Et(t,!1,!0)}));const Mt={get:Ft(!1,!1)},Pt={get:Ft(!0,!1)},It=new WeakMap,Ut=new WeakMap;function At(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>z(t).slice(8,-1))(t))}function Nt(t){return t&&t.__v_isReadonly?t:Tt(t,!1,pt,Mt)}function Lt(t){return Tt(t,!0,dt,Pt)}function Tt(t,e,n,r){if(!L(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const s=e?Ut:It,o=s.get(t);if(o)return o;const l=At(t);if(0===l)return t;const c=new Proxy(t,2===l?r:n);return s.set(t,c),c}function zt(t){return Bt(t)?zt(t.__v_raw):!(!t||!t.__v_isReactive)}function Bt(t){return!(!t||!t.__v_isReadonly)}function Vt(t){return zt(t)||Bt(t)}function Wt(t){return t&&Wt(t.__v_raw)||t}const Dt=t=>L(t)?Nt(t):t;function qt(t){return Boolean(t&&!0===t.__v_isRef)}function Kt(t){return function(t,e=!1){if(qt(t))return t;return new Ht(t,e)}(t)}class Ht{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:Dt(t)}get value(){return et(Wt(this),0,"value"),this._value}set value(t){V(Wt(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:Dt(t),nt(Wt(this),"set","value",t))}}class Jt{constructor(t,e,n){this._setter=e,this._dirty=!0,this.__v_isRef=!0,this.effect=J(t,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,nt(Wt(this),"set","value"))}}),this.__v_isReadonly=n}get value(){return this._dirty&&(this._value=this.effect(),this._dirty=!1),et(Wt(this),0,"value"),this._value}set value(t){this._setter(t)}}function Gt(t,e,n,r){let s;try{s=r?t(...r):t()}catch(o){Xt(o,e,n)}return s}function Qt(t,e,n,r){if(U(t)){const o=Gt(t,e,n,r);return o&&(L(s=o)&&U(s.then)&&U(s.catch))&&o.catch((t=>{Xt(t,e,n)})),o}var s;const o=[];for(let l=0;l<t.length;l++)o.push(Qt(t[l],e,n,r));return o}function Xt(t,e,n,r=!0){e&&e.vnode;if(e){let r=e.parent;const s=e.proxy,o=n;for(;r;){const e=r.ec;if(e)for(let n=0;n<e.length;n++)if(!1===e[n](t,s,o))return;r=r.parent}const l=e.appContext.config.errorHandler;if(l)return void Gt(l,null,10,[t,s,o])}!function(t,e,n,r=!0){console.error(t)}(t,0,0,r)}let Yt=!1,Zt=!1;const te=[];let ee=0;const ne=[];let re=null,se=0;const oe=[];let le=null,ce=0;const ie=Promise.resolve();let ae=null,ue=null;function fe(t){const e=ae||ie;return t?e.then(this?t.bind(this):t):e}function pe(t){if(!(te.length&&te.includes(t,Yt&&t.allowRecurse?ee+1:ee)||t===ue)){const e=function(t){let e=ee+1,n=te.length;const r=ge(t);for(;e<n;){const t=e+n>>>1;ge(te[t])<r?e=t+1:n=t}return e}(t);e>-1?te.splice(e,0,t):te.push(t),de()}}function de(){Yt||Zt||(Zt=!0,ae=ie.then(ve))}function he(t,e,n,r){P(t)?n.push(...t):e&&e.includes(t,t.allowRecurse?r+1:r)||n.push(t),de()}function _e(t,e=null){if(ne.length){for(ue=e,re=[...new Set(ne)],ne.length=0,se=0;se<re.length;se++)re[se]();re=null,se=0,ue=null,_e(t,e)}}const ge=t=>null==t.id?1/0:t.id;function ve(t){Zt=!1,Yt=!0,_e(t),te.sort(((t,e)=>ge(t)-ge(e)));try{for(ee=0;ee<te.length;ee++){const t=te[ee];t&&Gt(t,null,14)}}finally{ee=0,te.length=0,function(t){if(oe.length){const t=[...new Set(oe)];if(oe.length=0,le)return void le.push(...t);for(le=t,le.sort(((t,e)=>ge(t)-ge(e))),ce=0;ce<le.length;ce++)le[ce]();le=null,ce=0}}(),Yt=!1,ae=null,(te.length||oe.length)&&ve(t)}}function me(t){if(U(t)&&(t=t()),P(t)){t=function(t){let e;for(let n=0;n<t.length;n++){const r=t[n];if(!Ie(r))return;if(r.type!==Pe||"v-if"===r.children){if(e)return;e=r}}return e}(t)}return ze(t)}let ye=0;const be=t=>ye+=t;const we=(ke="m",(t,e=Ke)=>function(t,e,n=Ke,r=!1){if(n){const s=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...r)=>{if(n.isUnmounted)return;Z(),He(n);const s=Qt(e,n,t,r);return He(null),tt(),s});return r?s.unshift(o):s.push(o),o}}(ke,t,e));var ke;const Se={};function Re(t,e,{immediate:n,deep:r,flush:s,onTrack:o,onTrigger:l}=E,c=Ke){let i,a,u=!1;if(qt(t)?(i=()=>t.value,u=!!t._shallow):zt(t)?(i=()=>t,r=!0):i=P(t)?()=>t.map((t=>qt(t)?t.value:zt(t)?Ee(t):U(t)?Gt(t,c,2,[c&&c.proxy]):void 0)):U(t)?e?()=>Gt(t,c,2,[c&&c.proxy]):()=>{if(!c||!c.isUnmounted)return a&&a(),Gt(t,c,3,[f])}:C,e&&r){const t=i;i=()=>Ee(t())}const f=t=>{a=_.options.onStop=()=>{Gt(t,c,4)}};let p=P(t)?[]:Se;const d=()=>{if(_.active)if(e){const t=_();(r||u||V(t,p))&&(a&&a(),Qt(e,c,3,[t,p===Se?void 0:p,f]),p=t)}else _()};let h;d.allowRecurse=!!e,h="sync"===s?d:"post"===s?()=>je(d,c&&c.suspense):()=>{!c||c.isMounted?function(t){he(t,re,ne,se)}(d):d()};const _=J(i,{lazy:!0,onTrack:o,onTrigger:l,scheduler:h});return Je(_,c),e?n?d():p=_():"post"===s?je(_,c&&c.suspense):_(),()=>{var t;(t=_).active&&(Q(t),t.options.onStop&&t.options.onStop(),t.active=!1),c&&((t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)})(c.effects,_)}}function xe(t,e,n){const r=this.proxy;return Re(A(t)?()=>r[t]:t.bind(r),e.bind(r),n,this)}function Ee(t,e=new Set){if(!L(t)||e.has(t))return t;if(e.add(t),qt(t))Ee(t.value,e);else if(P(t))for(let n=0;n<t.length;n++)Ee(t[n],e);else if("[object Set]"===z(t)||I(t))t.forEach((t=>{Ee(t,e)}));else for(const n in t)Ee(t[n],e);return t}function Ce(t){return U(t)?{setup:t,name:t.name}:t}function Oe(t,{vnode:{ref:e,props:n,children:r}}){const s=Ne(t,n,r);return s.ref=e,s}const je=function(t,e){e&&e.pendingBranch?P(t)?e.effects.push(...t):e.effects.push(t):he(t,le,oe,ce)},$e=Symbol(),Fe=Symbol(void 0),Me=Symbol(void 0),Pe=Symbol(void 0);function Ie(t){return!!t&&!0===t.__v_isVNode}const Ue=({key:t})=>null!=t?t:null,Ae=({ref:t})=>null!=t?A(t)||qt(t)||U(t)?{i:null,r:t}:t:null,Ne=function(t,e=null,n=null,r=0,s=null,o=!1){t&&t!==$e||(t=Pe);if(Ie(t)){const r=Le(t,e,!0);return n&&Be(r,n),r}l=t,U(l)&&"__vccOpts"in l&&(t=t.__vccOpts);var l;if(e){(Vt(e)||"__vInternal"in e)&&(e=$({},e));let{class:t,style:n}=e;t&&!A(t)&&(e.class=x(t)),L(n)&&(Vt(n)&&!P(n)&&(n=$({},n)),e.style=w(n))}const c=A(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:L(t)?4:U(t)?2:0,i={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Ue(e),ref:e&&Ae(e),scopeId:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null};if(Be(i,n),128&c){const{content:t,fallback:e}=function(t){const{shapeFlag:e,children:n}=t;let r,s;return 32&e?(r=me(n.default),s=me(n.fallback)):(r=me(n),s=ze(null)),{content:r,fallback:s}}(i);i.ssContent=t,i.ssFallback=e}0;return i};function Le(t,e,n=!1){const{props:r,ref:s,patchFlag:o,children:l}=t,c=e?function(...t){const e=$({},t[0]);for(let n=1;n<t.length;n++){const r=t[n];for(const t in r)if("class"===t)e.class!==r.class&&(e.class=x([e.class,r.class]));else if("style"===t)e.style=w([e.style,r.style]);else if(j(t)){const n=e[t],s=r[t];n!==s&&(e[t]=n?[].concat(n,r[t]):s)}else""!==t&&(e[t]=r[t])}return e}(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&Ue(c),ref:e&&e.ref?n&&s?P(s)?s.concat(Ae(e)):[s,Ae(e)]:Ae(e):s,scopeId:t.scopeId,children:l,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Fe?-1===o?16:16|o:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Le(t.ssContent),ssFallback:t.ssFallback&&Le(t.ssFallback),el:t.el,anchor:t.anchor}}function Te(t=" ",e=0){return Ne(Me,null,t,e)}function ze(t){return null==t||"boolean"==typeof t?Ne(Pe):P(t)?Ne(Fe,null,t):"object"==typeof t?null===t.el?t:Le(t):Ne(Me,null,String(t))}function Be(t,e){let n=0;const{shapeFlag:r}=t;if(null==e)e=null;else if(P(e))n=16;else if("object"==typeof e){if(1&r||64&r){const n=e.default;return void(n&&(n._c&&be(1),Be(t,n()),n._c&&be(-1)))}{n=32;const t=e._;t||"__vInternal"in e||(e._ctx=null)}}else U(e)?(e={default:e,_ctx:null},n=32):(e=String(e),64&r?(n=16,e=[Te(e)]):n=8);t.children=e,t.shapeFlag|=n}function Ve(t,e,n){const r=n.appContext.config.optionMergeStrategies,{mixins:s,extends:o}=e;o&&Ve(t,o,n),s&&s.forEach((e=>Ve(t,e,n)));for(const l in e)r&&M(r,l)?t[l]=r[l](t[l],e[l],n.proxy,l):t[l]=e[l]}const We=t=>t?4&t.vnode.shapeFlag?t.exposed?t.exposed:t.proxy:We(t.parent):null,De=$(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>We(t.parent),$root:t=>We(t.root),$emit:t=>t.emit,$options:t=>function(t){const e=t.type,{__merged:n,mixins:r,extends:s}=e;if(n)return n;const o=t.appContext.mixins;if(!o.length&&!r&&!s)return e;const l={};return o.forEach((e=>Ve(l,e,t))),Ve(l,e,t),e.__merged=l}(t),$forceUpdate:t=>()=>pe(t.update),$nextTick:t=>fe.bind(t.proxy),$watch:t=>xe.bind(t)}),qe={get({_:t},e){const{ctx:n,setupState:r,data:s,props:o,accessCache:l,type:c,appContext:i}=t;if("__v_skip"===e)return!0;let a;if("$"!==e[0]){const c=l[e];if(void 0!==c)switch(c){case 0:return r[e];case 1:return s[e];case 3:return n[e];case 2:return o[e]}else{if(r!==E&&M(r,e))return l[e]=0,r[e];if(s!==E&&M(s,e))return l[e]=1,s[e];if((a=t.propsOptions[0])&&M(a,e))return l[e]=2,o[e];if(n!==E&&M(n,e))return l[e]=3,n[e];l[e]=4}}const u=De[e];let f,p;return u?("$attrs"===e&&et(t,0,e),u(t)):(f=c.__cssModules)&&(f=f[e])?f:n!==E&&M(n,e)?(l[e]=3,n[e]):(p=i.config.globalProperties,M(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:r,setupState:s,ctx:o}=t;if(s!==E&&M(s,e))s[e]=n;else if(r!==E&&M(r,e))r[e]=n;else if(M(t.props,e))return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:s,propsOptions:o}},l){let c;return void 0!==n[l]||t!==E&&M(t,l)||e!==E&&M(e,l)||(c=o[0])&&M(c,l)||M(r,l)||M(De,l)||M(s.config.globalProperties,l)}};$({},qe,{get(t,e){if(e!==Symbol.unscopables)return qe.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!b(e)});let Ke=null;const He=t=>{Ke=t};function Je(t,e=Ke){e&&(e.effects||(e.effects=[])).push(t)}function Ge(t){const e=function(t){let e,n;return U(t)?(e=t,n=C):(e=t.get,n=t.set),new Jt(e,n,U(t)||!t.set)}(t);return Je(e.effect),e}const Qe=()=>({value:"",align:"left"});var Xe={name:"sb-paragraph",getDefaultData:Qe,component:function(t){U(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:r,delay:s=200,timeout:o,suspensible:l=!0,onError:c}=t;let i,a=null,u=0;const f=()=>{let t;return a||(t=a=e().catch((t=>{if(t=t instanceof Error?t:new Error(String(t)),c)return new Promise(((e,n)=>{c(t,(()=>e((u++,a=null,f()))),(()=>n(t)),u+1)}));throw t})).then((e=>t!==a&&a?a:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),i=e,e))))};return Ce({__asyncLoader:f,name:"AsyncComponentWrapper",setup(){const t=Ke;if(i)return()=>Oe(i,t);const e=e=>{a=null,Xt(e,t,13,!r)};if(l&&t.suspense)return f().then((e=>()=>Oe(e,t))).catch((t=>(e(t),()=>r?Ne(r,{error:t}):null)));const c=Kt(!1),u=Kt(),p=Kt(!!s);return s&&setTimeout((()=>{p.value=!1}),s),null!=o&&setTimeout((()=>{if(!c.value&&!u.value){const t=new Error(`Async component timed out after ${o}ms.`);e(t),u.value=t}}),o),f().then((()=>{c.value=!0})).catch((t=>{e(t),u.value=t})),()=>c.value&&i?Oe(i,t):u.value&&r?Ne(r,{error:u.value}):n&&!p.value?Ne(n):void 0}})}((()=>function(t,e){if(!e)return t();if(void 0===v){const t=document.createElement("link").relList;v=t&&t.supports&&t.supports("modulepreload")?"modulepreload":"preload"}return Promise.all(e.map((t=>{if(t in m)return;m[t]=!0;const e=t.endsWith(".css"),n=e?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${t}"]${n}`))return;const r=document.createElement("link");return r.rel=e?"stylesheet":v,e||(r.as="script",r.crossOrigin=""),r.href=t,document.head.appendChild(r),e?new Promise(((t,e)=>{r.addEventListener("load",t),r.addEventListener("error",e)})):void 0}))).then((()=>t()))}((()=>__import__("./edit.06d6473f.js")),["./assets/edit.06d6473f.js","./assets/edit.25b6af76.css","./assets/vendor.8be2b941.js"])))};d(a({name:"App",setup(){const t=u({name:"none",id:"0",data:null});return f((async()=>{const e=await fetch("./initial-data.json"),n=await e.json();t.name=n.name,t.id=n.id,t.data=n.data})),()=>p("div",{id:"app"},[p(g,{block:t,onUpdate:e=>{t.data=e.data},customBlocks:[Xe],key:"edit"},null)])}})).mount("#app");export{Kt as a,Ne as b,Ge as c,Ce as d,Qe as g,we as o,Nt as r};
//# sourceMappingURL=index.84f4ccb4.js.map