From 99320b77e253fd3e267defba5be57ff3d804659a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Mon, 8 Mar 2021 16:32:00 +0100 Subject: [PATCH] Update data import --- docs/assets/{display.8a67d4c4.js => display.093b30ed.js} | 2 +- docs/assets/display.59646631.js | 1 + docs/assets/{display.65dc313e.js => display.67d272a4.js} | 2 +- docs/assets/{display.9a74f321.js => display.a0a80010.js} | 2 +- docs/assets/display.e17abc85.js | 1 - docs/assets/{edit.fbd6e1aa.js => edit.0be4ff4d.js} | 2 +- docs/assets/{edit.25f6c7d7.js => edit.2b327d35.js} | 2 +- docs/assets/{edit.1f668f17.js => edit.680bd77a.js} | 2 +- docs/assets/{index.be3c5d52.js => index.7f5b9510.js} | 2 +- docs/index.html | 2 +- src/App.tsx | 2 +- 11 files changed, 10 insertions(+), 10 deletions(-) rename docs/assets/{display.8a67d4c4.js => display.093b30ed.js} (51%) create mode 100644 docs/assets/display.59646631.js rename docs/assets/{display.65dc313e.js => display.67d272a4.js} (68%) rename docs/assets/{display.9a74f321.js => display.a0a80010.js} (85%) delete mode 100644 docs/assets/display.e17abc85.js rename docs/assets/{edit.fbd6e1aa.js => edit.0be4ff4d.js} (61%) rename docs/assets/{edit.25f6c7d7.js => edit.2b327d35.js} (96%) rename docs/assets/{edit.1f668f17.js => edit.680bd77a.js} (78%) rename docs/assets/{index.be3c5d52.js => index.7f5b9510.js} (90%) diff --git a/docs/assets/display.8a67d4c4.js b/docs/assets/display.093b30ed.js similarity index 51% rename from docs/assets/display.8a67d4c4.js rename to docs/assets/display.093b30ed.js index 2435d93..0474177 100644 --- a/docs/assets/display.8a67d4c4.js +++ b/docs/assets/display.093b30ed.js @@ -1 +1 @@ -import{y as a,m as s,z as e,D as t,e as l}from"./index.be3c5d52.js";/* empty css */import"./vendor.9babb3f5.js";var d=a({name:"sb-image-display",model:s,props:{data:{type:null,default:e}},setup:a=>()=>t("figure",{class:"sb-image"},[t("img",{class:"sb-image__content",src:a.data.src,alt:a.data.alt},null),t(l,{block:a.data.description},null)])});export default d; +import{y as a,m as s,z as e,D as t,e as l}from"./index.7f5b9510.js";/* empty css */import"./vendor.9babb3f5.js";var i=a({name:"sb-image-display",model:s,props:{data:{type:null,default:e}},setup:a=>()=>t("figure",{class:"sb-image"},[t("img",{class:"sb-image__content",src:a.data.src,alt:a.data.alt},null),t(l,{block:a.data.description},null)])});export default i; diff --git a/docs/assets/display.59646631.js b/docs/assets/display.59646631.js new file mode 100644 index 0000000..0b59839 --- /dev/null +++ b/docs/assets/display.59646631.js @@ -0,0 +1 @@ +import{j as a,m as s,k as r,q as p,s as e,x as t}from"./index.7f5b9510.js";/* empty css */import"./vendor.9babb3f5.js";var l=a({name:"sb-paragraph-display",model:s,props:{data:{type:Object,default:r}},setup(a){const s=p((()=>({"sb-paragraph":!0,[`sb-paragraph_align-${a.data.align}`]:!0})));return()=>e("p",t({class:s.value},{innerHTML:a.data.value}),null)}});export default l; diff --git a/docs/assets/display.65dc313e.js b/docs/assets/display.67d272a4.js similarity index 68% rename from docs/assets/display.65dc313e.js rename to docs/assets/display.67d272a4.js index 4055bcd..5f5f89b 100644 --- a/docs/assets/display.65dc313e.js +++ b/docs/assets/display.67d272a4.js @@ -1 +1 @@ -import{d as a,m as s,g as t,c as e,a as l,e as o}from"./index.be3c5d52.js";/* empty css */import"./vendor.9babb3f5.js";var d=a({name:"sb-layout-display",model:s,props:{data:{type:null,default:t}},setup(a){const s=e((()=>({"sb-layout":!0,[`sb-layout_${a.data.orientation}`]:!0})));return()=>l("div",{class:s.value},[...a.data.children.map((a=>l(o,{key:a.id,block:a},null)))])}});export default d; +import{d as a,m as s,g as t,c as e,a as l,e as o}from"./index.7f5b9510.js";/* empty css */import"./vendor.9babb3f5.js";var d=a({name:"sb-layout-display",model:s,props:{data:{type:null,default:t}},setup(a){const s=e((()=>({"sb-layout":!0,[`sb-layout_${a.data.orientation}`]:!0})));return()=>l("div",{class:s.value},[...a.data.children.map((a=>l(o,{key:a.id,block:a},null)))])}});export default d; diff --git a/docs/assets/display.9a74f321.js b/docs/assets/display.a0a80010.js similarity index 85% rename from docs/assets/display.9a74f321.js rename to docs/assets/display.a0a80010.js index 8b94c21..2d18522 100644 --- a/docs/assets/display.9a74f321.js +++ b/docs/assets/display.a0a80010.js @@ -1 +1 @@ -var e=Object.assign;import{G as t,m as n,H as a,I as s,J as l}from"./index.be3c5d52.js";import"./vendor.9babb3f5.js";var o=t({name:"sb-missing-block",model:n,props:e(e({},a),{name:String,data:{type:null,default:null},eventUpdate:{type:Function,default:()=>{}},eventAppendBlock:{type:Function,default:()=>{}},eventRemoveBlock:{type:Function,default:()=>{}}}),setup:e=>()=>s("div",{class:"sb-missing-block"},[l("Missing block: "),e.name])});export default o; +var e=Object.assign;import{G as t,m as n,H as a,I as s,J as l}from"./index.7f5b9510.js";import"./vendor.9babb3f5.js";var o=t({name:"sb-missing-block",model:n,props:e(e({},a),{name:String,data:{type:null,default:null},eventUpdate:{type:Function,default:()=>{}},eventAppendBlock:{type:Function,default:()=>{}},eventRemoveBlock:{type:Function,default:()=>{}}}),setup:e=>()=>s("div",{class:"sb-missing-block"},[l("Missing block: "),e.name])});export default o; diff --git a/docs/assets/display.e17abc85.js b/docs/assets/display.e17abc85.js deleted file mode 100644 index 181be8d..0000000 --- a/docs/assets/display.e17abc85.js +++ /dev/null @@ -1 +0,0 @@ -import{j as a,m as s,k as r,q as e,s as p,x as t}from"./index.be3c5d52.js";/* empty css */import"./vendor.9babb3f5.js";var l=a({name:"sb-paragraph-display",model:s,props:{data:{type:Object,default:r}},setup(a){const s=e((()=>({"sb-paragraph":!0,[`sb-paragraph_align-${a.data.align}`]:!0})));return()=>p("p",t({class:s.value},{innerHTML:a.data.value}),null)}});export default l; diff --git a/docs/assets/edit.fbd6e1aa.js b/docs/assets/edit.0be4ff4d.js similarity index 61% rename from docs/assets/edit.fbd6e1aa.js rename to docs/assets/edit.0be4ff4d.js index 91ab641..d5936cb 100644 --- a/docs/assets/edit.fbd6e1aa.js +++ b/docs/assets/edit.0be4ff4d.js @@ -1 +1 @@ -var a=Object.assign;import{y as e,m as t,z as l,A as s,B as n,C as i,D as d,S as r,b as o,E as c,F as u,e as p}from"./index.be3c5d52.js";/* empty css */import"./vendor.9babb3f5.js";var v=e({name:"sb-image-edit",model:t,props:{onUpdate:{type:Function,default:()=>{}},data:{type:null,default:l}},setup(e){const t=s({src:e.data.src,alt:e.data.alt,description:e.data.description}),l=n(null);i((()=>e.data),(()=>{t.src=e.data.src,t.alt=e.data.alt,t.description=e.data.description}));const v=()=>{l.value&&l.value.click()},f=()=>{if(l.value&&l.value.files&&l.value.files.length){const a=new FileReader;a.addEventListener("load",(()=>{var t;const l=null==(t=null==a?void 0:a.result)?void 0:t.toString();if(!l)throw new Error("Couldn't load image src");e.onUpdate({src:l,alt:e.data.alt,description:e.data.description})})),a.readAsDataURL(l.value.files[0])}};return()=>d("figure",{class:"sb-image"},[d(r,null,{default:()=>[t.src?d(o,{"onClick:value":v},{default:()=>[c("Select Image")]}):null,d("input",{type:"file",ref:l,style:"display: none;",onInput:f},null)]}),t.src?d(u,null,[d("img",{src:t.src,alt:t.alt,class:"sb-image__content"},null),d(p,{block:t.description,onUpdate:t=>{return l=t,void e.onUpdate(a(a({},e.data),{description:l}));var l}},null)]):d(o,{"onClick:value":v},{default:()=>[c("Select Image")]})])}});export default v; +var a=Object.assign;import{y as e,m as t,z as l,A as s,B as n,C as i,D as d,S as r,b as o,E as c,F as u,e as p}from"./index.7f5b9510.js";/* empty css */import"./vendor.9babb3f5.js";var f=e({name:"sb-image-edit",model:t,props:{onUpdate:{type:Function,default:()=>{}},data:{type:null,default:l}},setup(e){const t=s({src:e.data.src,alt:e.data.alt,description:e.data.description}),l=n(null);i((()=>e.data),(()=>{t.src=e.data.src,t.alt=e.data.alt,t.description=e.data.description}));const f=()=>{l.value&&l.value.click()},v=()=>{if(l.value&&l.value.files&&l.value.files.length){const a=new FileReader;a.addEventListener("load",(()=>{var t;const l=null==(t=null==a?void 0:a.result)?void 0:t.toString();if(!l)throw new Error("Couldn't load image src");e.onUpdate({src:l,alt:e.data.alt,description:e.data.description})})),a.readAsDataURL(l.value.files[0])}};return()=>d("figure",{class:"sb-image"},[d(r,null,{default:()=>[t.src?d(o,{"onClick:value":f},{default:()=>[c("Select Image")]}):null,d("input",{type:"file",ref:l,style:"display: none;",onInput:v},null)]}),t.src?d(u,null,[d("img",{src:t.src,alt:t.alt,class:"sb-image__content"},null),d(p,{block:t.description,onUpdate:t=>{return l=t,void e.onUpdate(a(a({},e.data),{description:l}));var l}},null)]):d(o,{"onClick:value":f},{default:()=>[c("Select Image")]})])}});export default f; diff --git a/docs/assets/edit.25f6c7d7.js b/docs/assets/edit.2b327d35.js similarity index 96% rename from docs/assets/edit.25f6c7d7.js rename to docs/assets/edit.2b327d35.js index 8c1de00..5d164ba 100644 --- a/docs/assets/edit.25f6c7d7.js +++ b/docs/assets/edit.2b327d35.js @@ -1 +1 @@ -import{j as a,m as e,k as n,l as t,n as l,u as o,o as u,p as i,q as s,s as r,S as d,t as p,v}from"./index.be3c5d52.js";/* empty css */import"./vendor.9babb3f5.js";var c=a({name:"sb-paragraph-edit",model:e,props:{blockId:{type:String,required:!0},data:{type:null,default:n},onUpdate:{type:Function,default:()=>{}},onAppendBlock:{type:Function,default:()=>{}},onRemoveSelf:{type:Function,default:()=>{}},onActivateNext:{type:Function,default:()=>{}},onActivatePrevious:{type:Function,default:()=>{}}},setup(a){const e=t({value:a.data.value,align:a.data.align,focused:!1}),c=l(null),{isActive:f,activate:g}=o(a.blockId),b=()=>{c.value&&f.value&&c.value.focus()};u((()=>{b(),c.value&&(c.value.innerHTML=e.value)})),i(f,b),i((()=>a.data),(()=>{e.value=a.data.value,e.align=a.data.align,c.value&&(c.value.innerHTML=e.value)}));const y=a=>{e.value=a.target.innerHTML},h=s((()=>({"sb-paragraph":!0,"sb-paragraph_focused":e.focused,[`sb-paragraph_align-${e.align}`]:!0}))),m=n=>{a.onUpdate({value:e.value,align:n.target.value})},k=()=>{e.focused=!0,g()},A=()=>{e.focused=!1,a.onUpdate({value:e.value,align:e.align})},w=e=>{if("Enter"===e.key&&!e.shiftKey){const t=""+ +new Date;a.onAppendBlock({id:t,name:"sb-paragraph",data:n()}),g(t),e.preventDefault()}},F=n=>{var t;"Backspace"===n.key&&""===e.value&&a.onRemoveSelf();const l=window.getSelection(),o=null==l?void 0:l.focusNode,u=Array.from((null==(t=null==c?void 0:c.value)?void 0:t.childNodes)||[]),i=o?u.indexOf(o):-1;if(o===c.value||0===i||i===u.length-1)switch(n.key){case"ArrowDown":a.onActivateNext();break;case"ArrowUp":a.onActivatePrevious()}};return()=>r("div",{class:h.value},[r(d,null,{default:()=>[r(p,{value:e.align,onChange:m},{default:()=>[r("option",null,[v("left")]),r("option",null,[v("center")]),r("option",null,[v("right")])]})]}),r("p",{class:"sb-paragraph__input",ref:c,contenteditable:!0,onInput:y,onFocus:k,onBlur:A,onKeydown:w,onKeyup:F},null)])}});export default c; +import{j as a,m as e,k as n,l as t,n as l,u as o,o as u,p as i,q as s,s as r,S as d,t as p,v}from"./index.7f5b9510.js";/* empty css */import"./vendor.9babb3f5.js";var c=a({name:"sb-paragraph-edit",model:e,props:{blockId:{type:String,required:!0},data:{type:null,default:n},onUpdate:{type:Function,default:()=>{}},onAppendBlock:{type:Function,default:()=>{}},onRemoveSelf:{type:Function,default:()=>{}},onActivateNext:{type:Function,default:()=>{}},onActivatePrevious:{type:Function,default:()=>{}}},setup(a){const e=t({value:a.data.value,align:a.data.align,focused:!1}),c=l(null),{isActive:f,activate:g}=o(a.blockId),b=()=>{c.value&&f.value&&c.value.focus()};u((()=>{b(),c.value&&(c.value.innerHTML=e.value)})),i(f,b),i((()=>a.data),(()=>{e.value=a.data.value,e.align=a.data.align,c.value&&(c.value.innerHTML=e.value)}));const y=a=>{e.value=a.target.innerHTML},h=s((()=>({"sb-paragraph":!0,"sb-paragraph_focused":e.focused,[`sb-paragraph_align-${e.align}`]:!0}))),m=n=>{a.onUpdate({value:e.value,align:n.target.value})},k=()=>{e.focused=!0,g()},A=()=>{e.focused=!1,a.onUpdate({value:e.value,align:e.align})},w=e=>{if("Enter"===e.key&&!e.shiftKey){const t=""+ +new Date;a.onAppendBlock({id:t,name:"sb-paragraph",data:n()}),g(t),e.preventDefault()}},F=n=>{var t;"Backspace"===n.key&&""===e.value&&a.onRemoveSelf();const l=window.getSelection(),o=null==l?void 0:l.focusNode,u=Array.from((null==(t=null==c?void 0:c.value)?void 0:t.childNodes)||[]),i=o?u.indexOf(o):-1;if(o===c.value||0===i||i===u.length-1)switch(n.key){case"ArrowDown":a.onActivateNext();break;case"ArrowUp":a.onActivatePrevious()}};return()=>r("div",{class:h.value},[r(d,null,{default:()=>[r(p,{value:e.align,onChange:m},{default:()=>[r("option",null,[v("left")]),r("option",null,[v("center")]),r("option",null,[v("right")])]})]}),r("p",{class:"sb-paragraph__input",ref:c,contenteditable:!0,onInput:y,onFocus:k,onBlur:A,onKeydown:w,onKeyup:F},null)])}});export default c; diff --git a/docs/assets/edit.1f668f17.js b/docs/assets/edit.680bd77a.js similarity index 78% rename from docs/assets/edit.1f668f17.js rename to docs/assets/edit.680bd77a.js index 5a3ee47..4d83d85 100644 --- a/docs/assets/edit.1f668f17.js +++ b/docs/assets/edit.680bd77a.js @@ -1 +1 @@ -var e=Object.assign;import{d as n,m as i,g as t,u as l,r as a,w as d,c as r,a as c,S as o,b as h,e as s,f as p,h as u,i as v}from"./index.be3c5d52.js";/* empty css */import"./vendor.9babb3f5.js";var f=n({name:"sb-layout-edit",model:i,props:{onUpdate:{type:Function,default:()=>{}},data:{type:null,default:t}},setup(n){const{activate:i}=l(),t=a({orientation:n.data.orientation,children:[...n.data.children]});d((()=>n.data),(()=>{t.orientation=n.data.orientation,t.children=[...n.data.children]}));const f=r((()=>({"sb-layout":!0,[`sb-layout_${t.orientation}`]:!0}))),m=()=>{n.onUpdate({orientation:"vertical"===t.orientation?"horizontal":"vertical"})},b=e=>{t.children=[...t.children,e],n.onUpdate({children:[...t.children]}),i(e.id)},U=(e,l)=>{t.children=[...t.children.slice(0,e+1),l,...t.children.slice(e+1)],n.onUpdate({children:[...t.children]}),i(l.id)},y=e=>{t.children=[...t.children.slice(0,e),...t.children.slice(e+1)],n.onUpdate({children:[...t.children]});const l=Math.max(e-1,0);i(t.children[l].id)},k=e=>{const n=Math.max(Math.min(t.children.length-1,e),0);i(t.children[n].id)};return()=>c("div",{class:f.value},[c(o,null,{default:()=>[c(h,{type:"button",onClick:m},{default:()=>[t.orientation]})]}),...t.children.map(((i,l)=>c(s,p({key:i.id},{"data-order":l,block:i,onUpdate:l=>((i,l)=>{const a=t.children.indexOf(i);-1!==a&&n.onUpdate({children:[...t.children.slice(0,a),e(e({},i),l),...t.children.slice(a+1)]})})(i,l),onRemoveSelf:()=>y(l),onPrependBlock:e=>U(l-1,e),onAppendBlock:e=>U(l,e),onActivatePrevious:()=>k(l-1),onActivateNext:()=>k(l+1)}),{"context-toolbar":()=>c(u,{onMoveBackward:()=>(e=>{if(0===e)return;const i=t.children[e],l=t.children[e-1];t.children=[...t.children.slice(0,e-1),i,l,...t.children.slice(e+1)],n.onUpdate({children:[...t.children]})})(l),onMoveForward:()=>(e=>{if(e===t.children.length-1)return;const i=t.children[e],l=t.children[e+1];t.children=[...t.children.slice(0,e),l,i,...t.children.slice(e+2)],n.onUpdate({children:[...t.children]})})(l),onRemove:()=>y(l),orientation:t.orientation},null)}))),c(v,{onInsertBlock:b},null)])}});export default f; +var e=Object.assign;import{d as n,m as i,g as t,u as l,r as a,w as d,c as r,a as o,S as c,b as h,e as s,f as p,h as u,i as v}from"./index.7f5b9510.js";/* empty css */import"./vendor.9babb3f5.js";var f=n({name:"sb-layout-edit",model:i,props:{onUpdate:{type:Function,default:()=>{}},data:{type:null,default:t}},setup(n){const{activate:i}=l(),t=a({orientation:n.data.orientation,children:[...n.data.children]});d((()=>n.data),(()=>{t.orientation=n.data.orientation,t.children=[...n.data.children]}));const f=r((()=>({"sb-layout":!0,[`sb-layout_${t.orientation}`]:!0}))),m=()=>{n.onUpdate({orientation:"vertical"===t.orientation?"horizontal":"vertical"})},b=e=>{t.children=[...t.children,e],n.onUpdate({children:[...t.children]}),i(e.id)},U=(e,l)=>{t.children=[...t.children.slice(0,e+1),l,...t.children.slice(e+1)],n.onUpdate({children:[...t.children]}),i(l.id)},y=e=>{t.children=[...t.children.slice(0,e),...t.children.slice(e+1)],n.onUpdate({children:[...t.children]});const l=Math.max(e-1,0);i(t.children[l].id)},k=e=>{const n=Math.max(Math.min(t.children.length-1,e),0);i(t.children[n].id)};return()=>o("div",{class:f.value},[o(c,null,{default:()=>[o(h,{type:"button",onClick:m},{default:()=>[t.orientation]})]}),...t.children.map(((i,l)=>o(s,p({key:i.id},{"data-order":l,block:i,onUpdate:l=>((i,l)=>{const a=t.children.indexOf(i);-1!==a&&n.onUpdate({children:[...t.children.slice(0,a),e(e({},i),l),...t.children.slice(a+1)]})})(i,l),onRemoveSelf:()=>y(l),onPrependBlock:e=>U(l-1,e),onAppendBlock:e=>U(l,e),onActivatePrevious:()=>k(l-1),onActivateNext:()=>k(l+1)}),{"context-toolbar":()=>o(u,{onMoveBackward:()=>(e=>{if(0===e)return;const i=t.children[e],l=t.children[e-1];t.children=[...t.children.slice(0,e-1),i,l,...t.children.slice(e+1)],n.onUpdate({children:[...t.children]})})(l),onMoveForward:()=>(e=>{if(e===t.children.length-1)return;const i=t.children[e],l=t.children[e+1];t.children=[...t.children.slice(0,e),l,i,...t.children.slice(e+2)],n.onUpdate({children:[...t.children]})})(l),onRemove:()=>y(l),orientation:t.orientation},null)}))),o(v,{onInsertBlock:b},null)])}});export default f; diff --git a/docs/assets/index.be3c5d52.js b/docs/assets/index.7f5b9510.js similarity index 90% rename from docs/assets/index.be3c5d52.js rename to docs/assets/index.7f5b9510.js index ddb3b53..ed2d3a5 100644 --- a/docs/assets/index.be3c5d52.js +++ b/docs/assets/index.7f5b9510.js @@ -1 +1 @@ -var t=Object.assign;import{d as e,a as n,r as o,b as r,o as s,c as l,e as i,f as c,g as a}from"./vendor.9babb3f5.js";var u,f;!function(t=".",e="__import__"){try{self[e]=new Function("u","return import(u)")}catch(n){const o=new URL(t,location),r=t=>{URL.revokeObjectURL(t.src),t.remove()};self[e]=t=>new Promise(((n,s)=>{const l=new URL(t,o);if(self[e].moduleMap[l])return n(self[e].moduleMap[l]);const i=new Blob([`import * as m from '${l}';`,`${e}.moduleMap['${l}']=m;`],{type:"text/javascript"}),c=Object.assign(document.createElement("script"),{type:"module",src:URL.createObjectURL(i),onerror(){s(new Error(`Failed to import: ${t}`)),r(c)},onload(){n(self[e].moduleMap[l]),r(c)}});document.head.appendChild(c)})),self[e].moduleMap={}}}("assets/"),(f=u||(u={})).Edit="edit",f.Display="display";const p=Symbol("Schlechtenburg mode");var d,h=new Uint8Array(16);function _(){if(!d&&!(d="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return d(h)}var v=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function g(t){return"string"==typeof t&&v.test(t)}for(var y=[],m=0;m<256;++m)y.push((m+256).toString(16).substr(1));const b=function(t,e,n){var o=(t=t||{}).random||(t.rng||_)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){n=n||0;for(var r=0;r<16;++r)e[n+r]=o[r];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(y[t[e+0]]+y[t[e+1]]+y[t[e+2]]+y[t[e+3]]+"-"+y[t[e+4]]+y[t[e+5]]+"-"+y[t[e+6]]+y[t[e+7]]+"-"+y[t[e+8]]+y[t[e+9]]+"-"+y[t[e+10]]+y[t[e+11]]+y[t[e+12]]+y[t[e+13]]+y[t[e+14]]+y[t[e+15]]).toLowerCase();if(!g(n))throw TypeError("Stringified UUID is invalid");return n}(o)},w={prop:"block",event:"update"},k={blockId:{type:String,default:b}};function S(t,e){const n=Object.create(null),o=t.split(",");for(let r=0;r!!n[t.toLowerCase()]:t=>!!n[t]}const x=S("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl");function R(t){if(T(t)){const e={};for(let n=0;n{if(t){const n=t.split(E);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function j(t){let e="";if(B(t))e=t;else if(T(t))for(let n=0;n{},F=/^on[^a-z]/,I=t=>F.test(t),A=Object.assign,M=Object.prototype.hasOwnProperty,N=(t,e)=>M.call(t,e),T=Array.isArray,U=t=>"[object Map]"===W(t),z=t=>"function"==typeof t,B=t=>"string"==typeof t,V=t=>"symbol"==typeof t,D=t=>null!==t&&"object"==typeof t,L=Object.prototype.toString,W=t=>L.call(t),K=t=>B(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,J=(t,e)=>t!==e&&(t==t||e==e),q=new WeakMap,H=[];let G;const Q=Symbol(""),X=Symbol("");function Y(t,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(!H.includes(n)){tt(n);try{return nt.push(et),et=!0,H.push(n),G=n,t()}finally{H.pop(),rt(),G=H[H.length-1]}}};return n.id=Z++,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 Z=0;function tt(t){const{deps:e}=t;if(e.length){for(let n=0;n{t&&t.forEach((t=>{(t!==G||t.allowRecurse)&&i.add(t)}))};if("clear"===e)l.forEach(c);else if("length"===n&&T(t))l.forEach(((t,e)=>{("length"===e||e>=o)&&c(t)}));else switch(void 0!==n&&c(l.get(n)),e){case"add":T(t)?K(n)&&c(l.get("length")):(c(l.get(Q)),U(t)&&c(l.get(X)));break;case"delete":T(t)||(c(l.get(Q)),U(t)&&c(l.get(X)));break;case"set":U(t)&&c(l.get(Q))}i.forEach((t=>{t.options.scheduler?t.options.scheduler(t):t()}))}const it=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(V)),ct=dt(),at=dt(!1,!0),ut=dt(!0),ft=dt(!0,!0),pt={};function dt(t=!1,e=!1){return function(n,o,r){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_raw"===o&&r===(t?Bt:zt).get(n))return n;const s=T(n);if(!t&&s&&N(pt,o))return Reflect.get(pt,o,r);const l=Reflect.get(n,o,r);if(V(o)?it.has(o):"__proto__"===o||"__v_isRef"===o)return l;if(t||st(n,0,o),e)return l;if(Qt(l)){return!s||!K(o)?l.value:l}return D(l)?t?Lt(l):Dt(l):l}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];pt[t]=function(...t){const n=Ht(this);for(let e=0,r=this.length;e{const e=Array.prototype[t];pt[t]=function(...t){ot();const n=e.apply(this,t);return rt(),n}}));function ht(t=!1){return function(e,n,o,r){const s=e[n];if(!t&&(o=Ht(o),!T(e)&&Qt(s)&&!Qt(o)))return s.value=o,!0;const l=T(e)&&K(n)?Number(n)!0,deleteProperty:(t,e)=>!0},gt=A({},_t,{get:at,set:ht(!0)});A({},vt,{get:ft});const yt=t=>D(t)?Dt(t):t,mt=t=>D(t)?Lt(t):t,bt=t=>t,wt=t=>Reflect.getPrototypeOf(t);function kt(t,e,n=!1,o=!1){const r=Ht(t=t.__v_raw),s=Ht(e);e!==s&&!n&&st(r,0,e),!n&&st(r,0,s);const{has:l}=wt(r),i=n?mt:o?bt:yt;return l.call(r,e)?i(t.get(e)):l.call(r,s)?i(t.get(s)):void 0}function St(t,e=!1){const n=this.__v_raw,o=Ht(n),r=Ht(t);return t!==r&&!e&&st(o,0,t),!e&&st(o,0,r),t===r?n.has(t):n.has(t)||n.has(r)}function xt(t,e=!1){return t=t.__v_raw,!e&&st(Ht(t),0,Q),Reflect.get(t,"size",t)}function Rt(t){t=Ht(t);const e=Ht(this),n=wt(e).has.call(e,t);return e.add(t),n||lt(e,"add",t,t),this}function Ct(t,e){e=Ht(e);const n=Ht(this),{has:o,get:r}=wt(n);let s=o.call(n,t);s||(t=Ht(t),s=o.call(n,t));const l=r.call(n,t);return n.set(t,e),s?J(e,l)&<(n,"set",t,e):lt(n,"add",t,e),this}function Et(t){const e=Ht(this),{has:n,get:o}=wt(e);let r=n.call(e,t);r||(t=Ht(t),r=n.call(e,t)),o&&o.call(e,t);const s=e.delete(t);return r&<(e,"delete",t,void 0),s}function Ot(){const t=Ht(this),e=0!==t.size,n=t.clear();return e&<(t,"clear",void 0,void 0),n}function jt(t,e){return function(n,o){const r=this,s=r.__v_raw,l=Ht(s),i=t?mt:e?bt:yt;return!t&&st(l,0,Q),s.forEach(((t,e)=>n.call(o,i(t),i(e),r)))}}function $t(t,e,n){return function(...o){const r=this.__v_raw,s=Ht(r),l=U(s),i="entries"===t||t===Symbol.iterator&&l,c="keys"===t&&l,a=r[t](...o),u=e?mt:n?bt:yt;return!e&&st(s,0,c?X:Q),{next(){const{value:t,done:e}=a.next();return e?{value:t,done:e}:{value:i?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}}function Pt(t){return function(...e){return"delete"!==t&&this}}const Ft={get(t){return kt(this,t)},get size(){return xt(this)},has:St,add:Rt,set:Ct,delete:Et,clear:Ot,forEach:jt(!1,!1)},It={get(t){return kt(this,t,!1,!0)},get size(){return xt(this)},has:St,add:Rt,set:Ct,delete:Et,clear:Ot,forEach:jt(!1,!0)},At={get(t){return kt(this,t,!0)},get size(){return xt(this,!0)},has(t){return St.call(this,t,!0)},add:Pt("add"),set:Pt("set"),delete:Pt("delete"),clear:Pt("clear"),forEach:jt(!0,!1)};function Mt(t,e){const n=e?It:t?At:Ft;return(e,o,r)=>"__v_isReactive"===o?!t:"__v_isReadonly"===o?t:"__v_raw"===o?e:Reflect.get(N(n,o)&&o in e?n:e,o,r)}["keys","values","entries",Symbol.iterator].forEach((t=>{Ft[t]=$t(t,!1,!1),At[t]=$t(t,!0,!1),It[t]=$t(t,!1,!0)}));const Nt={get:Mt(!1,!1)},Tt={get:Mt(!1,!0)},Ut={get:Mt(!0,!1)},zt=new WeakMap,Bt=new WeakMap;function Vt(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=>W(t).slice(8,-1))(t))}function Dt(t){return t&&t.__v_isReadonly?t:Wt(t,!1,_t,Nt)}function Lt(t){return Wt(t,!0,vt,Ut)}function Wt(t,e,n,o){if(!D(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=e?Bt:zt,s=r.get(t);if(s)return s;const l=Vt(t);if(0===l)return t;const i=new Proxy(t,2===l?o:n);return r.set(t,i),i}function Kt(t){return Jt(t)?Kt(t.__v_raw):!(!t||!t.__v_isReactive)}function Jt(t){return!(!t||!t.__v_isReadonly)}function qt(t){return Kt(t)||Jt(t)}function Ht(t){return t&&Ht(t.__v_raw)||t}const Gt=t=>D(t)?Dt(t):t;function Qt(t){return Boolean(t&&!0===t.__v_isRef)}function Xt(t){return function(t,e=!1){if(Qt(t))return t;return new Yt(t,e)}(t)}class Yt{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:Gt(t)}get value(){return st(Ht(this),0,"value"),this._value}set value(t){J(Ht(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:Gt(t),lt(Ht(this),"set","value",t))}}class Zt{constructor(t,e,n){this._setter=e,this._dirty=!0,this.__v_isRef=!0,this.effect=Y(t,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,lt(Ht(this),"set","value"))}}),this.__v_isReadonly=n}get value(){return this._dirty&&(this._value=this.effect(),this._dirty=!1),st(Ht(this),0,"value"),this._value}set value(t){this._setter(t)}}function te(t,e,n,o){let r;try{r=o?t(...o):t()}catch(s){ne(s,e,n)}return r}function ee(t,e,n,o){if(z(t)){const s=te(t,e,n,o);return s&&(D(r=s)&&z(r.then)&&z(r.catch))&&s.catch((t=>{ne(t,e,n)})),s}var r;const s=[];for(let l=0;lnull==t.id?1/0:t.id;function we(t){re=!1,oe=!0,me(t),se.sort(((t,e)=>be(t)-be(e)));try{for(le=0;lebe(t)-be(e))),pe=0;peSe+=t;const Re=(Ce="um",(t,e=en)=>function(t,e,n=en,o=!1){if(n){const r=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;ot(),nn(n);const r=ee(e,n,t,o);return nn(null),rt(),r});return o?r.unshift(s):r.push(s),s}}(Ce,t,e));var Ce;const Ee={};function Oe(t,e,n){return je(t,e,n)}function je(t,e,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:l}=$,i=en){let c,a,u=!1;if(Qt(t)?(c=()=>t.value,u=!!t._shallow):Kt(t)?(c=()=>t,o=!0):c=T(t)?()=>t.map((t=>Qt(t)?t.value:Kt(t)?Pe(t):z(t)?te(t,i,2):void 0)):z(t)?e?()=>te(t,i,2):()=>{if(!i||!i.isUnmounted)return a&&a(),te(t,i,3,[f])}:P,e&&o){const t=c;c=()=>Pe(t())}const f=t=>{a=_.options.onStop=()=>{te(t,i,4)}};let p=T(t)?[]:Ee;const d=()=>{if(_.active)if(e){const t=_();(o||u||J(t,p))&&(a&&a(),ee(e,i,3,[t,p===Ee?void 0:p,f]),p=t)}else _()};let h;d.allowRecurse=!!e,h="sync"===r?d:"post"===r?()=>Me(d,i&&i.suspense):()=>{!i||i.isMounted?function(t){ye(t,ce,ie,ae)}(d):d()};const _=Y(c,{lazy:!0,onTrack:s,onTrigger:l,scheduler:h});return on(_,i),e?n?d():p=_():"post"===r?Me(_,i&&i.suspense):_(),()=>{var t;(t=_).active&&(tt(t),t.options.onStop&&t.options.onStop(),t.active=!1),i&&((t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)})(i.effects,_)}}function $e(t,e,n){const o=this.proxy;return je(B(t)?()=>o[t]:t.bind(o),e.bind(o),n,this)}function Pe(t,e=new Set){if(!D(t)||e.has(t))return t;if(e.add(t),Qt(t))Pe(t.value,e);else if(T(t))for(let n=0;n{Pe(t,e)}));else for(const n in t)Pe(t[n],e);return t}function Fe(t){return z(t)?{setup:t,name:t.name}:t}function Ie(t){z(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:l=!0,onError:i}=t;let c,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)),i)return new Promise(((e,n)=>{i(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),c=e,e))))};return Fe({__asyncLoader:f,name:"AsyncComponentWrapper",setup(){const t=en;if(c)return()=>Ae(c,t);const e=e=>{a=null,ne(e,t,13,!o)};if(l&&t.suspense)return f().then((e=>()=>Ae(e,t))).catch((t=>(e(t),()=>o?Le(o,{error:t}):null)));const i=Xt(!1),u=Xt(),p=Xt(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!i.value&&!u.value){const t=new Error(`Async component timed out after ${s}ms.`);e(t),u.value=t}}),s),f().then((()=>{i.value=!0})).catch((t=>{e(t),u.value=t})),()=>i.value&&c?Ae(c,t):u.value&&o?Le(o,{error:u.value}):n&&!p.value?Le(n):void 0}})}function Ae(t,{vnode:{ref:e,props:n,children:o}}){const r=Le(t,n,o);return r.ref=e,r}const Me=function(t,e){e&&e.pendingBranch?T(t)?e.effects.push(...t):e.effects.push(t):ye(t,fe,ue,pe)},Ne=Symbol(),Te=Symbol(void 0),Ue=Symbol(void 0),ze=Symbol(void 0);function Be(t){return!!t&&!0===t.__v_isVNode}const Ve=({key:t})=>null!=t?t:null,De=({ref:t})=>null!=t?B(t)||Qt(t)||z(t)?{i:null,r:t}:t:null,Le=function(t,e=null,n=null,o=0,r=null,s=!1){t&&t!==Ne||(t=ze);if(Be(t)){const o=We(t,e,!0);return n&&qe(o,n),o}l=t,z(l)&&"__vccOpts"in l&&(t=t.__vccOpts);var l;if(e){(qt(e)||"__vInternal"in e)&&(e=A({},e));let{class:t,style:n}=e;t&&!B(t)&&(e.class=j(t)),D(n)&&(qt(n)&&!T(n)&&(n=A({},n)),e.style=R(n))}const i=B(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:D(t)?4:z(t)?2:0,c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Ve(e),ref:e&&De(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:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};if(qe(c,n),128&i){const{content:t,fallback:e}=function(t){const{shapeFlag:e,children:n}=t;let o,r;return 32&e?(o=ke(n.default),r=ke(n.fallback)):(o=ke(n),r=Je(null)),{content:o,fallback:r}}(c);c.ssContent=t,c.ssFallback=e}0;return c};function We(t,e,n=!1){const{props:o,ref:r,patchFlag:s}=t,l=e?He(o||{},e):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&Ve(l),ref:e&&e.ref?n&&r?T(r)?r.concat(De(e)):[r,De(e)]:De(e):r,scopeId:t.scopeId,children:t.children,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Te?-1===s?16:16|s:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&We(t.ssContent),ssFallback:t.ssFallback&&We(t.ssFallback),el:t.el,anchor:t.anchor}}function Ke(t=" ",e=0){return Le(Ue,null,t,e)}function Je(t){return null==t||"boolean"==typeof t?Le(ze):T(t)?Le(Te,null,t):"object"==typeof t?null===t.el?t:We(t):Le(Ue,null,String(t))}function qe(t,e){let n=0;const{shapeFlag:o}=t;if(null==e)e=null;else if(T(e))n=16;else if("object"==typeof e){if(1&o||64&o){const n=e.default;return void(n&&(n._c&&xe(1),qe(t,n()),n._c&&xe(-1)))}{n=32;const t=e._;t||"__vInternal"in e||(e._ctx=null)}}else z(e)?(e={default:e,_ctx:null},n=32):(e=String(e),64&o?(n=16,e=[Ke(e)]):n=8);t.children=e,t.shapeFlag|=n}function He(...t){const e=A({},t[0]);for(let n=1;n1)return n&&z(e)?e():e}}function Xe(t,e,n){const o=n.appContext.config.optionMergeStrategies,{mixins:r,extends:s}=e;s&&Xe(t,s,n),r&&r.forEach((e=>Xe(t,e,n)));for(const l in e)o&&N(o,l)?t[l]=o[l](t[l],e[l],n.proxy,l):t[l]=e[l]}const Ye=t=>t&&(t.proxy?t.proxy:Ye(t.parent)),Ze=A(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=>Ye(t.parent),$root:t=>t.root&&t.root.proxy,$emit:t=>t.emit,$options:t=>function(t){const e=t.type,{__merged:n,mixins:o,extends:r}=e;if(n)return n;const s=t.appContext.mixins;if(!s.length&&!o&&!r)return e;const l={};return s.forEach((e=>Xe(l,e,t))),Xe(l,e,t),e.__merged=l}(t),$forceUpdate:t=>()=>{return e=t.update,void(se.length&&se.includes(e,oe&&e.allowRecurse?le+1:le)||e===_e||(se.push(e),ge()));var e},$nextTick:t=>ve.bind(t.proxy),$watch:t=>$e.bind(t)}),tn={get({_:t},e){const{ctx:n,setupState:o,data:r,props:s,accessCache:l,type:i,appContext:c}=t;if("__v_skip"===e)return!0;let a;if("$"!==e[0]){const i=l[e];if(void 0!==i)switch(i){case 0:return o[e];case 1:return r[e];case 3:return n[e];case 2:return s[e]}else{if(o!==$&&N(o,e))return l[e]=0,o[e];if(r!==$&&N(r,e))return l[e]=1,r[e];if((a=t.propsOptions[0])&&N(a,e))return l[e]=2,s[e];if(n!==$&&N(n,e))return l[e]=3,n[e];l[e]=4}}const u=Ze[e];let f,p;return u?("$attrs"===e&&st(t,0,e),u(t)):(f=i.__cssModules)&&(f=f[e])?f:n!==$&&N(n,e)?(l[e]=3,n[e]):(p=c.config.globalProperties,N(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:o,setupState:r,ctx:s}=t;if(r!==$&&N(r,e))r[e]=n;else if(o!==$&&N(o,e))o[e]=n;else if(e in t.props)return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:o,appContext:r,propsOptions:s}},l){let i;return void 0!==n[l]||t!==$&&N(t,l)||e!==$&&N(e,l)||(i=s[0])&&N(i,l)||N(o,l)||N(Ze,l)||N(r.config.globalProperties,l)}};A({},tn,{get(t,e){if(e!==Symbol.unscopables)return tn.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!x(e)});let en=null;const nn=t=>{en=t};function on(t,e=en){e&&(e.effects||(e.effects=[])).push(t)}function rn(t){const e=function(t){let e,n;return z(t)?(e=t,n=P):(e=t.get,n=t.set),new Zt(e,n,z(t)||!t.set)}(t);return on(e.effect),e}const sn=Symbol("Schlechtenburg active block");function ln(t=null){const e=Qe(sn,Xt(null)),n=rn((()=>e.value===t)),o=n=>{e.value=void 0!==n?n:t};return{activeBlockId:e,isActive:n,activate:o,requestActivation:()=>{e.value||o()}}}const cn=Symbol("Schlechtenburg block library");function an(){const t=Qe(p,Xt(u.Edit)),e=Qe(cn,Dt({}));return{mode:t,customBlocks:e,getBlock:t=>e[t]}}const un=Symbol("Schlechtenburg block dimensions"),fn=Symbol("Schlechtenburg editor dimensions");function pn(t,e){const n=Xt(null);Ge(e,n);const o=()=>{if(!t.value)return;const e=t.value.getBoundingClientRect();n.value={width:e.width,height:e.height,left:t.value.offsetLeft,top:t.value.offsetTop}},r=new ResizeObserver(o),s=new MutationObserver(o);return Oe(t,(()=>{t.value&&(r.observe(t.value),s.observe(t.value,{attributes:!0,childList:!1,subtree:!1}))})),{triggerSizeCalculation:o,dimensions:n}}function dn(){return{editorDimensions:Qe(fn,Xt(null)),blockDimensions:Qe(un,Xt(null))}}const hn=Symbol("Schlechtenburg block tree"),_n=Symbol("Schlechtenburg block tree register"),vn=Symbol("Schlechtenburg block tree unregister");function gn(){const t=Qe(hn,Xt(null)),e=Qe(_n,(t=>{})),n=Qe(vn,(t=>{})),o=Dt({id:"",name:"",icon:"",children:[]});Ge(_n,(t=>{o.children.find((e=>e.id===t.id))||(o.children=[...o.children,t])})),Ge(vn,(({id:t})=>{o.children=o.children.filter((e=>e.id!==t))}));return Re((()=>{o.id&&n(o)})),{blockTree:t,register:t=>{if(!t.id)throw new Error(`Cannot register a block without an id: ${JSON.stringify(t)}`);o.id=t.id,o.name=t.name,e(o)}}}const yn=Fe({name:"sb-button",inheritAttrs:!1,setup:(e,n)=>()=>{var e,o;return Le("button",t(t({},n.attrs),{class:(n.attrs.class||"")+" sb-button"}),[null==(o=(e=n.slots).default)?void 0:o.call(e)])}});const mn=Fe({name:"sb-context-menu",props:{onClose:{type:Function,default:()=>{}},onOpen:{type:Function,default:()=>{}}},setup(t,e){const n=Xt(!1),o=()=>{n.value=!0},r=()=>{n.value=!1},s=t=>{"Escape"===t.key&&r()},l=()=>{n.value?r():o()};return Oe(n,((e,n)=>{e!==n&&(e?setTimeout((()=>{document.body.addEventListener("click",r),document.body.addEventListener("keypress",s),t.onOpen()})):(document.body.removeEventListener("click",r),document.body.removeEventListener("keypress",s),t.onClose()))})),()=>{var t,s,i,c;return Le("div",{class:"sb-context"},[(null==(s=(t=e.slots).context)?void 0:s.call(t,{opened:n,toggle:l,close:r,open:o}))||Le(yn,{onClick:l},{default:()=>[Ke("Menu")]}),Le("dialog",He({class:"sb-context-menu",open:!!n.value||void 0,onClick:t=>{t.stopPropagation()}},{onClose:r}),[(null==(c=(i=e.slots).default)?void 0:c.call(i,{opened:n,toggle:l,close:r,open:o}))||null])])}}});const bn=Fe({name:"sb-main-menu",setup(){const{blockTree:t}=gn(),{activate:e,activeBlockId:n}=ln(),o=(t,r)=>{var s,l;return Le("li",{class:{"sb-tree-block-select__block":!0,"sb-tree-block-select__block_active":n.value===t.id}},[Le("button",{class:"sb-tree-block-select__block-name",onClick:()=>{e(t.id),r()},onMouseenter:()=>e(t.id)},[t.name]),(null==(s=t.children)?void 0:s.length)?Le("ul",{class:"sb-tree-block-select__list"},[null==(l=t.children)?void 0:l.map((t=>o(t,r)))]):null])};return()=>t.value?Le(mn,{class:"sb-tree-block-select"},{context:({toggle:t})=>Le(yn,{onClick:t},{default:()=>[Ke("Tree")]}),default:({close:e})=>Le("ul",{class:"sb-tree-block-select__list sb-tree-block-select__list_base"},[o(t.value,e)])}):""}});const wn=Fe({name:"sb-main-menu",props:{block:{type:null,required:!0}},setup:()=>()=>Le("div",{class:"sb-main-menu"},[Le(bn,null,null)])});const kn=Fe({name:"sb-block-toolbar",setup:()=>()=>Le("div",{class:"sb-block-toolbar"},null)});let Sn;const xn={},Rn=function(t,e){if(!e)return t();if(void 0===Sn){const t=document.createElement("link").relList;Sn=t&&t.supports&&t.supports("modulepreload")?"modulepreload":"preload"}return Promise.all(e.map((t=>{if(t in xn)return;xn[t]=!0;const e=t.endsWith(".css"),n=e?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${t}"]${n}`))return;const o=document.createElement("link");return o.rel=e?"stylesheet":Sn,e||(o.as="script",o.crossOrigin=""),o.href=t,document.head.appendChild(o),e?new Promise(((t,e)=>{o.addEventListener("load",t),o.addEventListener("error",e)})):void 0}))).then((()=>t()))};var Cn={name:"sb-missing-block",edit:Ie((()=>Rn((()=>__import__("./display.9a74f321.js")),["./assets/display.9a74f321.js","./assets/display.08a50fb3.css","./assets/vendor.9babb3f5.js"]))),display:Ie((()=>Rn((()=>__import__("./display.9a74f321.js")),["./assets/display.9a74f321.js","./assets/display.08a50fb3.css","./assets/vendor.9babb3f5.js"])))};const En=Fe({name:"sb-block",props:{block:{type:null,required:!0},sortable:{type:String,default:null},onUpdate:{type:Function,default:()=>{}},onPrependBlock:{type:Function,default:()=>{}},onAppendBlock:{type:Function,default:()=>{}},onRemoveSelf:{type:Function,default:()=>{}},onActivatePrevious:{type:Function,default:()=>{}},onActivateNext:{type:Function,default:()=>{}}},setup(e,n){const o=Xt(null),{mode:r,getBlock:s}=an(),{isActive:l,activate:i}=ln(e.block.id),c=rn((()=>({"sb-block":!0,"sb-block_active":l.value}))),{triggerSizeCalculation:a}=pn(o,un);Oe((()=>e.block.data),a);const{register:f}=gn();f(e.block),Oe(e.block,(()=>{f(e.block)}));const p=n=>{e.onUpdate(t(t({},e.block),{data:t(t({},e.block.data),n)}))};return()=>{var l;const a=null==(l=s(e.block.name))?void 0:l[r.value];if(!a){const t=Cn[r.value];return Le(t,{name:e.block.name,blockId:e.block.id},null)}return r.value===u.Display?Le(a,{data:e.block.data,blockId:e.block.id},null):Le("div",{ref:o,class:c.value},[Le("div",{class:"sb-block__edit-cover"},null),n.slots["context-toolbar"]?n.slots["context-toolbar"]():null,Le(a,He({data:e.block.data,blockId:e.block.id,onUpdate:p,onPrependBlock:e.onPrependBlock,onAppendBlock:e.onAppendBlock,onRemoveSelf:e.onRemoveSelf,onActivatePrevious:e.onActivatePrevious,onActivateNext:e.onActivateNext},t({"onClick:value":t=>{t.stopPropagation(),i()}},n.attrs)),null)])}}});const On=Fe({name:"sb-main",model:w,props:{customBlocks:{type:Array,default:()=>[]},block:{type:Object,required:!0},onUpdate:{type:Function,default:()=>{}},mode:{type:String,validator:t=>Object.values(u).includes(t),default:u.Edit}},setup(e){const n=Xt(null);pn(n,fn);const o=Xt(e.mode);Ge(p,o);const r=Xt(null);Ge(sn,r);const s=Xt(null);Ge(hn,s),Ge(_n,(t=>{s.value=t})),Ge(vn,(()=>{s.value=null}));const l=Wt(t({},e.customBlocks.reduce(((e,n)=>t(t({},e),{[n.name]:n})),{})),!1,gt,Tt);return Ge(cn,l),()=>Le("div",{class:"sb-main",ref:n},[o.value===u.Edit?Le(Te,null,[Le(wn,{block:e.block},null),Le(kn,null,null)]):null,Le(En,{block:e.block,onUpdate:e.onUpdate},null)])}});const jn=Fe({name:"sb-modal",props:{open:{type:Boolean,default:!1},onClose:{type:Function,default:()=>{}}},setup(t,e){const n=rn((()=>({"sb-modal":!0,"sb-modal_open":t.open})));return()=>{var o,r;return Le("div",{class:n.value},[Le("div",{class:"sb-modal__overlay",onClick:e=>{e.stopPropagation(),t.onClose()}},[Le("div",{class:"sb-modal__content"},[null==(r=(o=e.slots).default)?void 0:r.call(o)])])])}}});const $n=Fe({name:"sb-block-picker",props:{onPickedBlock:{type:Function,default:()=>{}}},setup(t){const e=Xt(!1),{customBlocks:n}=an(),o=rn((()=>Object.keys(n).map((t=>n[t]))));return()=>Le("div",{class:"sb-block-picker"},[Le(yn,He({class:"sb-block-picker__add-button"},{type:"button",onClick:t=>{e.value=!0,t.stopPropagation()}}),{default:()=>[Ke("+")]}),Le(jn,He({open:e.value,onClose:()=>{e.value=!1}},{onClick:t=>t.stopPropagation()}),{default:()=>[...o.value.map((n=>Le(yn,{type:"button",onClick:()=>(n=>()=>{e.value=!1,t.onPickedBlock({name:n.name,id:""+ +new Date,data:n.getDefaultData()})})(n)},{default:()=>[n.name]})))]})])}});var Pn="object"==typeof global&&global&&global.Object===Object&&global,Fn="object"==typeof self&&self&&self.Object===Object&&self,In=Pn||Fn||Function("return this")(),An=In.Symbol,Mn=Object.prototype,Nn=Mn.hasOwnProperty,Tn=Mn.toString,Un=An?An.toStringTag:void 0;var zn=Object.prototype.toString;var Bn=An?An.toStringTag:void 0;function Vn(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Bn&&Bn in Object(t)?function(t){var e=Nn.call(t,Un),n=t[Un];try{t[Un]=void 0;var o=!0}catch(s){}var r=Tn.call(t);return o&&(e?t[Un]=n:delete t[Un]),r}(t):function(t){return zn.call(t)}(t)}var Dn=/\s/;var Ln=/^\s+/;function Wn(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&Dn.test(t.charAt(e)););return e}(t)+1).replace(Ln,""):t}function Kn(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var Jn=/^[-+]0x[0-9a-f]+$/i,qn=/^0b[01]+$/i,Hn=/^0o[0-7]+$/i,Gn=parseInt;function Qn(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==Vn(t)}(t))return NaN;if(Kn(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Kn(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Wn(t);var n=qn.test(t);return n||Hn.test(t)?Gn(t.slice(2),n?2:8):Jn.test(t)?NaN:+t}var Xn=function(){return In.Date.now()},Yn=Math.max,Zn=Math.min;function to(t,e,n){var o,r,s,l,i,c,a=0,u=!1,f=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(e){var n=o,s=r;return o=r=void 0,a=e,l=t.apply(s,n)}function h(t){return a=t,i=setTimeout(v,e),u?d(t):l}function _(t){var n=t-c;return void 0===c||n>=e||n<0||f&&t-a>=s}function v(){var t=Xn();if(_(t))return g(t);i=setTimeout(v,function(t){var n=e-(t-c);return f?Zn(n,s-(t-a)):n}(t))}function g(t){return i=void 0,p&&o?d(t):(o=r=void 0,l)}function y(){var t=Xn(),n=_(t);if(o=arguments,r=this,c=t,n){if(void 0===i)return h(c);if(f)return clearTimeout(i),i=setTimeout(v,e),d(c)}return void 0===i&&(i=setTimeout(v,e)),l}return e=Qn(e)||0,Kn(n)&&(u=!!n.leading,s=(f="maxWait"in n)?Yn(Qn(n.maxWait)||0,e):s,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==i&&clearTimeout(i),a=0,o=c=r=i=void 0},y.flush=function(){return void 0===i?l:g(Xn())},y}const eo=Fe({name:"sb-block-ordering",props:{orientation:{type:String,default:null},onRemove:{type:Function,default:()=>{}},onMoveBackward:{type:Function,default:()=>{}},onMoveForward:{type:Function,default:()=>{}}},setup(t){const e=Dt({top:"",right:""}),n=rn((()=>({"sb-block-ordering":!0,[`sb-block-ordering_${t.orientation}`]:!!t.orientation}))),{editorDimensions:o,blockDimensions:r}=dn(),s=to((()=>{if(!o.value||!r.value)return;const t=o.value.width-r.value.left;e.top=`${r.value.top}px`,e.right=`${t}px`}));return Oe(o,s),Oe(r,s),Oe((()=>t.orientation),s),()=>Le("div",{class:n.value,style:e,onClick:t=>t.stopPropagation()},[Le(yn,{onClick:t.onMoveBackward},{default:()=>["vertical"===t.orientation?"↑":"←"]}),Le(yn,{onClick:t.onRemove},{default:()=>[Ke("x")]}),Le(yn,{onClick:t.onMoveForward},{default:()=>["vertical"===t.orientation?"↓":"→"]})])}});const no=Fe({name:"sb-block-placeholder",props:{onInsertBlock:{type:Function,default:()=>{}}},setup:t=>()=>Le("div",{class:"sb-block-placeholder"},[Le($n,{onPickedBlock:e=>t.onInsertBlock(e)},null)])});const oo=Fe({name:"sb-toolbar",setup(t,e){const n=Dt({bottom:"",left:"",maxWidth:""}),{editorDimensions:o,blockDimensions:r}=dn(),s=to((()=>{if(!o.value||!r.value)return;const t=o.value.height-r.value.top;n.bottom=`${t}px`,n.left=`${r.value.left}px`,n.maxWidth=`${r.value.width}px`}));return Oe(o,s),Oe(r,s),()=>{var t,o;return Le("div",{class:"sb-toolbar",style:n,onClick:t=>t.stopPropagation()},[null==(o=null==(t=e.slots)?void 0:t.default)?void 0:o.call(t)])}}});const ro=Fe({name:"sb-select",inheritAttrs:!1,setup:(t,e)=>()=>{var t,n;return Le("div",{class:"sb-select"},[Le("select",He({class:"sb-select__input"},e.attrs),[null==(n=(t=e.slots).default)?void 0:n.call(t)])])}});function so(t,e){const n=Object.create(null),o=t.split(",");for(let r=0;r!!n[t.toLowerCase()]:t=>!!n[t]}const lo=so("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl");function io(t){if(bo(t)){const e={};for(let n=0;n{if(t){const n=t.split(ao);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function fo(t){let e="";if(So(t))e=t;else if(bo(t))for(let n=0;n{},_o=/^on[^a-z]/,vo=t=>_o.test(t),go=Object.assign,yo=Object.prototype.hasOwnProperty,mo=(t,e)=>yo.call(t,e),bo=Array.isArray,wo=t=>"[object Map]"===Eo(t),ko=t=>"function"==typeof t,So=t=>"string"==typeof t,xo=t=>"symbol"==typeof t,Ro=t=>null!==t&&"object"==typeof t,Co=Object.prototype.toString,Eo=t=>Co.call(t),Oo=t=>So(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,jo=(t,e)=>t!==e&&(t==t||e==e),$o=new WeakMap,Po=[];let Fo;const Io=Symbol(""),Ao=Symbol("");function Mo(t,e=po){(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(!Po.includes(n)){To(n);try{return zo.push(Uo),Uo=!0,Po.push(n),Fo=n,t()}finally{Po.pop(),Bo(),Fo=Po[Po.length-1]}}};return n.id=No++,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 No=0;function To(t){const{deps:e}=t;if(e.length){for(let n=0;n{t&&t.forEach((t=>{(t!==Fo||t.allowRecurse)&&i.add(t)}))};if("clear"===e)l.forEach(c);else if("length"===n&&bo(t))l.forEach(((t,e)=>{("length"===e||e>=o)&&c(t)}));else switch(void 0!==n&&c(l.get(n)),e){case"add":bo(t)?Oo(n)&&c(l.get("length")):(c(l.get(Io)),wo(t)&&c(l.get(Ao)));break;case"delete":bo(t)||(c(l.get(Io)),wo(t)&&c(l.get(Ao)));break;case"set":wo(t)&&c(l.get(Io))}i.forEach((t=>{t.options.scheduler?t.options.scheduler(t):t()}))}const Lo=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(xo)),Wo=Go(),Ko=Go(!1,!0),Jo=Go(!0),qo=Go(!0,!0),Ho={};function Go(t=!1,e=!1){return function(n,o,r){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_raw"===o&&r===(t?br:mr).get(n))return n;const s=bo(n);if(!t&&s&&mo(Ho,o))return Reflect.get(Ho,o,r);const l=Reflect.get(n,o,r);if(xo(o)?Lo.has(o):"__proto__"===o||"__v_isRef"===o)return l;if(t||Vo(n,0,o),e)return l;if($r(l)){return!s||!Oo(o)?l.value:l}return Ro(l)?t?Sr(l):kr(l):l}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];Ho[t]=function(...t){const n=Or(this);for(let e=0,r=this.length;e{const e=Array.prototype[t];Ho[t]=function(...t){zo.push(Uo),Uo=!1;const n=e.apply(this,t);return Bo(),n}}));function Qo(t=!1){return function(e,n,o,r){const s=e[n];if(!t&&(o=Or(o),!bo(e)&&$r(s)&&!$r(o)))return s.value=o,!0;const l=bo(e)&&Oo(n)?Number(n)!0,deleteProperty:(t,e)=>!0};go({},Xo,{get:Ko,set:Qo(!0)}),go({},Yo,{get:qo});const Zo=t=>Ro(t)?kr(t):t,tr=t=>Ro(t)?Sr(t):t,er=t=>t,nr=t=>Reflect.getPrototypeOf(t);function or(t,e,n=!1,o=!1){const r=Or(t=t.__v_raw),s=Or(e);e!==s&&!n&&Vo(r,0,e),!n&&Vo(r,0,s);const{has:l}=nr(r),i=n?tr:o?er:Zo;return l.call(r,e)?i(t.get(e)):l.call(r,s)?i(t.get(s)):void 0}function rr(t,e=!1){const n=this.__v_raw,o=Or(n),r=Or(t);return t!==r&&!e&&Vo(o,0,t),!e&&Vo(o,0,r),t===r?n.has(t):n.has(t)||n.has(r)}function sr(t,e=!1){return t=t.__v_raw,!e&&Vo(Or(t),0,Io),Reflect.get(t,"size",t)}function lr(t){t=Or(t);const e=Or(this),n=nr(e).has.call(e,t);return e.add(t),n||Do(e,"add",t,t),this}function ir(t,e){e=Or(e);const n=Or(this),{has:o,get:r}=nr(n);let s=o.call(n,t);s||(t=Or(t),s=o.call(n,t));const l=r.call(n,t);return n.set(t,e),s?jo(e,l)&&Do(n,"set",t,e):Do(n,"add",t,e),this}function cr(t){const e=Or(this),{has:n,get:o}=nr(e);let r=n.call(e,t);r||(t=Or(t),r=n.call(e,t)),o&&o.call(e,t);const s=e.delete(t);return r&&Do(e,"delete",t,void 0),s}function ar(){const t=Or(this),e=0!==t.size,n=t.clear();return e&&Do(t,"clear",void 0,void 0),n}function ur(t,e){return function(n,o){const r=this,s=r.__v_raw,l=Or(s),i=t?tr:e?er:Zo;return!t&&Vo(l,0,Io),s.forEach(((t,e)=>n.call(o,i(t),i(e),r)))}}function fr(t,e,n){return function(...o){const r=this.__v_raw,s=Or(r),l=wo(s),i="entries"===t||t===Symbol.iterator&&l,c="keys"===t&&l,a=r[t](...o),u=e?tr:n?er:Zo;return!e&&Vo(s,0,c?Ao:Io),{next(){const{value:t,done:e}=a.next();return e?{value:t,done:e}:{value:i?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}}function pr(t){return function(...e){return"delete"!==t&&this}}const dr={get(t){return or(this,t)},get size(){return sr(this)},has:rr,add:lr,set:ir,delete:cr,clear:ar,forEach:ur(!1,!1)},hr={get(t){return or(this,t,!1,!0)},get size(){return sr(this)},has:rr,add:lr,set:ir,delete:cr,clear:ar,forEach:ur(!1,!0)},_r={get(t){return or(this,t,!0)},get size(){return sr(this,!0)},has(t){return rr.call(this,t,!0)},add:pr("add"),set:pr("set"),delete:pr("delete"),clear:pr("clear"),forEach:ur(!0,!1)};function vr(t,e){const n=e?hr:t?_r:dr;return(e,o,r)=>"__v_isReactive"===o?!t:"__v_isReadonly"===o?t:"__v_raw"===o?e:Reflect.get(mo(n,o)&&o in e?n:e,o,r)}["keys","values","entries",Symbol.iterator].forEach((t=>{dr[t]=fr(t,!1,!1),_r[t]=fr(t,!0,!1),hr[t]=fr(t,!1,!0)}));const gr={get:vr(!1,!1)},yr={get:vr(!0,!1)},mr=new WeakMap,br=new WeakMap;function wr(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=>Eo(t).slice(8,-1))(t))}function kr(t){return t&&t.__v_isReadonly?t:xr(t,!1,Xo,gr)}function Sr(t){return xr(t,!0,Yo,yr)}function xr(t,e,n,o){if(!Ro(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=e?br:mr,s=r.get(t);if(s)return s;const l=wr(t);if(0===l)return t;const i=new Proxy(t,2===l?o:n);return r.set(t,i),i}function Rr(t){return Cr(t)?Rr(t.__v_raw):!(!t||!t.__v_isReactive)}function Cr(t){return!(!t||!t.__v_isReadonly)}function Er(t){return Rr(t)||Cr(t)}function Or(t){return t&&Or(t.__v_raw)||t}const jr=t=>Ro(t)?kr(t):t;function $r(t){return Boolean(t&&!0===t.__v_isRef)}function Pr(t){return function(t,e=!1){if($r(t))return t;return new Fr(t,e)}(t)}class Fr{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:jr(t)}get value(){return Vo(Or(this),0,"value"),this._value}set value(t){jo(Or(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:jr(t),Do(Or(this),"set","value",t))}}class Ir{constructor(t,e,n){this._setter=e,this._dirty=!0,this.__v_isRef=!0,this.effect=Mo(t,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,Do(Or(this),"set","value"))}}),this.__v_isReadonly=n}get value(){return this._dirty&&(this._value=this.effect(),this._dirty=!1),Vo(Or(this),0,"value"),this._value}set value(t){this._setter(t)}}function Ar(t,e,n,o){let r;try{r=o?t(...o):t()}catch(s){Nr(s,e,n)}return r}function Mr(t,e,n,o){if(ko(t)){const s=Ar(t,e,n,o);return s&&(Ro(r=s)&&ko(r.then)&&ko(r.catch))&&s.catch((t=>{Nr(t,e,n)})),s}var r;const s=[];for(let l=0;lnull==t.id?1/0:t.id;function es(t){Ur=!1,Tr=!0,Zr(t),zr.sort(((t,e)=>ts(t)-ts(e)));try{for(Br=0;Brts(t)-ts(e))),Jr=0;Jros+=t;const ss={};function ls(t,e,n){return is(t,e,n)}function is(t,e,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:l}=po,i=Ps){let c,a,u=!1;if($r(t)?(c=()=>t.value,u=!!t._shallow):Rr(t)?(c=()=>t,o=!0):c=bo(t)?()=>t.map((t=>$r(t)?t.value:Rr(t)?as(t):ko(t)?Ar(t,i,2):void 0)):ko(t)?e?()=>Ar(t,i,2):()=>{if(!i||!i.isUnmounted)return a&&a(),Ar(t,i,3,[f])}:ho,e&&o){const t=c;c=()=>as(t())}const f=t=>{a=_.options.onStop=()=>{Ar(t,i,4)}};let p=bo(t)?[]:ss;const d=()=>{if(_.active)if(e){const t=_();(o||u||jo(t,p))&&(a&&a(),Mr(e,i,3,[t,p===ss?void 0:p,f]),p=t)}else _()};let h;d.allowRecurse=!!e,h="sync"===r?d:"post"===r?()=>ds(d,i&&i.suspense):()=>{!i||i.isMounted?function(t){Yr(t,Dr,Vr,Lr)}(d):d()};const _=Mo(c,{lazy:!0,onTrack:s,onTrigger:l,scheduler:h});return Fs(_,i),e?n?d():p=_():"post"===r?ds(_,i&&i.suspense):_(),()=>{var t;(t=_).active&&(To(t),t.options.onStop&&t.options.onStop(),t.active=!1),i&&((t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)})(i.effects,_)}}function cs(t,e,n){const o=this.proxy;return is(So(t)?()=>o[t]:t.bind(o),e.bind(o),n,this)}function as(t,e=new Set){if(!Ro(t)||e.has(t))return t;if(e.add(t),$r(t))as(t.value,e);else if(bo(t))for(let n=0;n{as(t,e)}));else for(const n in t)as(t[n],e);return t}function us(t){return ko(t)?{setup:t,name:t.name}:t}function fs(t){ko(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:l=!0,onError:i}=t;let c,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)),i)return new Promise(((e,n)=>{i(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),c=e,e))))};return us({__asyncLoader:f,name:"AsyncComponentWrapper",setup(){const t=Ps;if(c)return()=>ps(c,t);const e=e=>{a=null,Nr(e,t,13,!o)};if(l&&t.suspense)return f().then((e=>()=>ps(e,t))).catch((t=>(e(t),()=>o?ws(o,{error:t}):null)));const i=Pr(!1),u=Pr(),p=Pr(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!i.value&&!u.value){const t=new Error(`Async component timed out after ${s}ms.`);e(t),u.value=t}}),s),f().then((()=>{i.value=!0})).catch((t=>{e(t),u.value=t})),()=>i.value&&c?ps(c,t):u.value&&o?ws(o,{error:u.value}):n&&!p.value?ws(n):void 0}})}function ps(t,{vnode:{ref:e,props:n,children:o}}){const r=ws(t,n,o);return r.ref=e,r}const ds=function(t,e){e&&e.pendingBranch?bo(t)?e.effects.push(...t):e.effects.push(t):Yr(t,Kr,Wr,Jr)},hs=Symbol(),_s=Symbol(void 0),vs=Symbol(void 0),gs=Symbol(void 0);function ys(t){return!!t&&!0===t.__v_isVNode}const ms=({key:t})=>null!=t?t:null,bs=({ref:t})=>null!=t?So(t)||$r(t)||ko(t)?{i:null,r:t}:t:null,ws=function(t,e=null,n=null,o=0,r=null,s=!1){t&&t!==hs||(t=gs);if(ys(t)){const o=ks(t,e,!0);return n&&Rs(o,n),o}l=t,ko(l)&&"__vccOpts"in l&&(t=t.__vccOpts);var l;if(e){(Er(e)||"__vInternal"in e)&&(e=go({},e));let{class:t,style:n}=e;t&&!So(t)&&(e.class=fo(t)),Ro(n)&&(Er(n)&&!bo(n)&&(n=go({},n)),e.style=io(n))}const i=So(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:Ro(t)?4:ko(t)?2:0,c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&ms(e),ref:e&&bs(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:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};if(Rs(c,n),128&i){const{content:t,fallback:e}=function(t){const{shapeFlag:e,children:n}=t;let o,r;return 32&e?(o=ns(n.default),r=ns(n.fallback)):(o=ns(n),r=xs(null)),{content:o,fallback:r}}(c);c.ssContent=t,c.ssFallback=e}0;return c};function ks(t,e,n=!1){const{props:o,ref:r,patchFlag:s}=t,l=e?Cs(o||{},e):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&ms(l),ref:e&&e.ref?n&&r?bo(r)?r.concat(bs(e)):[r,bs(e)]:bs(e):r,scopeId:t.scopeId,children:t.children,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==_s?-1===s?16:16|s:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ks(t.ssContent),ssFallback:t.ssFallback&&ks(t.ssFallback),el:t.el,anchor:t.anchor}}function Ss(t=" ",e=0){return ws(vs,null,t,e)}function xs(t){return null==t||"boolean"==typeof t?ws(gs):bo(t)?ws(_s,null,t):"object"==typeof t?null===t.el?t:ks(t):ws(vs,null,String(t))}function Rs(t,e){let n=0;const{shapeFlag:o}=t;if(null==e)e=null;else if(bo(e))n=16;else if("object"==typeof e){if(1&o||64&o){const n=e.default;return void(n&&(n._c&&rs(1),Rs(t,n()),n._c&&rs(-1)))}{n=32;const t=e._;t||"__vInternal"in e||(e._ctx=null)}}else ko(e)?(e={default:e,_ctx:null},n=32):(e=String(e),64&o?(n=16,e=[Ss(e)]):n=8);t.children=e,t.shapeFlag|=n}function Cs(...t){const e=go({},t[0]);for(let n=1;nEs(t,e,n)));for(const l in e)o&&mo(o,l)?t[l]=o[l](t[l],e[l],n.proxy,l):t[l]=e[l]}const Os=t=>t&&(t.proxy?t.proxy:Os(t.parent)),js=go(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=>Os(t.parent),$root:t=>t.root&&t.root.proxy,$emit:t=>t.emit,$options:t=>function(t){const e=t.type,{__merged:n,mixins:o,extends:r}=e;if(n)return n;const s=t.appContext.mixins;if(!s.length&&!o&&!r)return e;const l={};return s.forEach((e=>Es(l,e,t))),Es(l,e,t),e.__merged=l}(t),$forceUpdate:t=>()=>{return e=t.update,void(zr.length&&zr.includes(e,Tr&&e.allowRecurse?Br+1:Br)||e===Gr||(zr.push(e),Xr()));var e},$nextTick:t=>Qr.bind(t.proxy),$watch:t=>cs.bind(t)}),$s={get({_:t},e){const{ctx:n,setupState:o,data:r,props:s,accessCache:l,type:i,appContext:c}=t;if("__v_skip"===e)return!0;let a;if("$"!==e[0]){const i=l[e];if(void 0!==i)switch(i){case 0:return o[e];case 1:return r[e];case 3:return n[e];case 2:return s[e]}else{if(o!==po&&mo(o,e))return l[e]=0,o[e];if(r!==po&&mo(r,e))return l[e]=1,r[e];if((a=t.propsOptions[0])&&mo(a,e))return l[e]=2,s[e];if(n!==po&&mo(n,e))return l[e]=3,n[e];l[e]=4}}const u=js[e];let f,p;return u?("$attrs"===e&&Vo(t,0,e),u(t)):(f=i.__cssModules)&&(f=f[e])?f:n!==po&&mo(n,e)?(l[e]=3,n[e]):(p=c.config.globalProperties,mo(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:o,setupState:r,ctx:s}=t;if(r!==po&&mo(r,e))r[e]=n;else if(o!==po&&mo(o,e))o[e]=n;else if(e in t.props)return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:o,appContext:r,propsOptions:s}},l){let i;return void 0!==n[l]||t!==po&&mo(t,l)||e!==po&&mo(e,l)||(i=s[0])&&mo(i,l)||mo(o,l)||mo(js,l)||mo(r.config.globalProperties,l)}};go({},$s,{get(t,e){if(e!==Symbol.unscopables)return $s.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!lo(e)});let Ps=null;function Fs(t,e=Ps){e&&(e.effects||(e.effects=[])).push(t)}function Is(t){const e=function(t){let e,n;return ko(t)?(e=t,n=ho):(e=t.get,n=t.set),new Ir(e,n,ko(t)||!t.set)}(t);return Fs(e.effect),e}const As=()=>({orientation:"vertical",children:[]});var Ms={name:"sb-layout",getDefaultData:As,edit:fs((()=>Rn((()=>__import__("./edit.1f668f17.js")),["./assets/edit.1f668f17.js","./assets/style.b876754e.css","./assets/vendor.9babb3f5.js"]))),display:fs((()=>Rn((()=>__import__("./display.65dc313e.js")),["./assets/display.65dc313e.js","./assets/style.b876754e.css","./assets/vendor.9babb3f5.js"])))};var Ns={name:"sb-heading",getDefaultData:()=>({}),edit:e((()=>Rn((()=>__import__("./edit.bd5075df.js")),void 0))),display:e((()=>Rn((()=>__import__("./edit.bd5075df.js")),void 0)))};function Ts(t,e){const n=Object.create(null),o=t.split(",");for(let r=0;r!!n[t.toLowerCase()]:t=>!!n[t]}const Us=Ts("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl");function zs(t){if(Xs(t)){const e={};for(let n=0;n{if(t){const n=t.split(Vs);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function Ls(t){let e="";if(tl(t))e=t;else if(Xs(t))for(let n=0;n{},Js=/^on[^a-z]/,qs=t=>Js.test(t),Hs=Object.assign,Gs=Object.prototype.hasOwnProperty,Qs=(t,e)=>Gs.call(t,e),Xs=Array.isArray,Ys=t=>"[object Map]"===rl(t),Zs=t=>"function"==typeof t,tl=t=>"string"==typeof t,el=t=>"symbol"==typeof t,nl=t=>null!==t&&"object"==typeof t,ol=Object.prototype.toString,rl=t=>ol.call(t),sl=t=>tl(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,ll=(t,e)=>t!==e&&(t==t||e==e),il=new WeakMap,cl=[];let al;const ul=Symbol(""),fl=Symbol("");function pl(t,e=Ws){(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(!cl.includes(n)){hl(n);try{return vl.push(_l),_l=!0,cl.push(n),al=n,t()}finally{cl.pop(),yl(),al=cl[cl.length-1]}}};return n.id=dl++,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 dl=0;function hl(t){const{deps:e}=t;if(e.length){for(let n=0;n{t&&t.forEach((t=>{(t!==al||t.allowRecurse)&&i.add(t)}))};if("clear"===e)l.forEach(c);else if("length"===n&&Xs(t))l.forEach(((t,e)=>{("length"===e||e>=o)&&c(t)}));else switch(void 0!==n&&c(l.get(n)),e){case"add":Xs(t)?sl(n)&&c(l.get("length")):(c(l.get(ul)),Ys(t)&&c(l.get(fl)));break;case"delete":Xs(t)||(c(l.get(ul)),Ys(t)&&c(l.get(fl)));break;case"set":Ys(t)&&c(l.get(ul))}i.forEach((t=>{t.options.scheduler?t.options.scheduler(t):t()}))}const wl=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(el)),kl=El(),Sl=El(!1,!0),xl=El(!0),Rl=El(!0,!0),Cl={};function El(t=!1,e=!1){return function(n,o,r){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_raw"===o&&r===(t?Yl:Xl).get(n))return n;const s=Xs(n);if(!t&&s&&Qs(Cl,o))return Reflect.get(Cl,o,r);const l=Reflect.get(n,o,r);if(el(o)?wl.has(o):"__proto__"===o||"__v_isRef"===o)return l;if(t||ml(n,0,o),e)return l;if(ci(l)){return!s||!sl(o)?l.value:l}return nl(l)?t?ei(l):ti(l):l}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];Cl[t]=function(...t){const n=li(this);for(let e=0,r=this.length;e{const e=Array.prototype[t];Cl[t]=function(...t){gl();const n=e.apply(this,t);return yl(),n}}));function Ol(t=!1){return function(e,n,o,r){const s=e[n];if(!t&&(o=li(o),!Xs(e)&&ci(s)&&!ci(o)))return s.value=o,!0;const l=Xs(e)&&sl(n)?Number(n)!0,deleteProperty:(t,e)=>!0};Hs({},jl,{get:Sl,set:Ol(!0)}),Hs({},$l,{get:Rl});const Pl=t=>nl(t)?ti(t):t,Fl=t=>nl(t)?ei(t):t,Il=t=>t,Al=t=>Reflect.getPrototypeOf(t);function Ml(t,e,n=!1,o=!1){const r=li(t=t.__v_raw),s=li(e);e!==s&&!n&&ml(r,0,e),!n&&ml(r,0,s);const{has:l}=Al(r),i=n?Fl:o?Il:Pl;return l.call(r,e)?i(t.get(e)):l.call(r,s)?i(t.get(s)):void 0}function Nl(t,e=!1){const n=this.__v_raw,o=li(n),r=li(t);return t!==r&&!e&&ml(o,0,t),!e&&ml(o,0,r),t===r?n.has(t):n.has(t)||n.has(r)}function Tl(t,e=!1){return t=t.__v_raw,!e&&ml(li(t),0,ul),Reflect.get(t,"size",t)}function Ul(t){t=li(t);const e=li(this),n=Al(e).has.call(e,t);return e.add(t),n||bl(e,"add",t,t),this}function zl(t,e){e=li(e);const n=li(this),{has:o,get:r}=Al(n);let s=o.call(n,t);s||(t=li(t),s=o.call(n,t));const l=r.call(n,t);return n.set(t,e),s?ll(e,l)&&bl(n,"set",t,e):bl(n,"add",t,e),this}function Bl(t){const e=li(this),{has:n,get:o}=Al(e);let r=n.call(e,t);r||(t=li(t),r=n.call(e,t)),o&&o.call(e,t);const s=e.delete(t);return r&&bl(e,"delete",t,void 0),s}function Vl(){const t=li(this),e=0!==t.size,n=t.clear();return e&&bl(t,"clear",void 0,void 0),n}function Dl(t,e){return function(n,o){const r=this,s=r.__v_raw,l=li(s),i=t?Fl:e?Il:Pl;return!t&&ml(l,0,ul),s.forEach(((t,e)=>n.call(o,i(t),i(e),r)))}}function Ll(t,e,n){return function(...o){const r=this.__v_raw,s=li(r),l=Ys(s),i="entries"===t||t===Symbol.iterator&&l,c="keys"===t&&l,a=r[t](...o),u=e?Fl:n?Il:Pl;return!e&&ml(s,0,c?fl:ul),{next(){const{value:t,done:e}=a.next();return e?{value:t,done:e}:{value:i?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}}function Wl(t){return function(...e){return"delete"!==t&&this}}const Kl={get(t){return Ml(this,t)},get size(){return Tl(this)},has:Nl,add:Ul,set:zl,delete:Bl,clear:Vl,forEach:Dl(!1,!1)},Jl={get(t){return Ml(this,t,!1,!0)},get size(){return Tl(this)},has:Nl,add:Ul,set:zl,delete:Bl,clear:Vl,forEach:Dl(!1,!0)},ql={get(t){return Ml(this,t,!0)},get size(){return Tl(this,!0)},has(t){return Nl.call(this,t,!0)},add:Wl("add"),set:Wl("set"),delete:Wl("delete"),clear:Wl("clear"),forEach:Dl(!0,!1)};function Hl(t,e){const n=e?Jl:t?ql:Kl;return(e,o,r)=>"__v_isReactive"===o?!t:"__v_isReadonly"===o?t:"__v_raw"===o?e:Reflect.get(Qs(n,o)&&o in e?n:e,o,r)}["keys","values","entries",Symbol.iterator].forEach((t=>{Kl[t]=Ll(t,!1,!1),ql[t]=Ll(t,!0,!1),Jl[t]=Ll(t,!1,!0)}));const Gl={get:Hl(!1,!1)},Ql={get:Hl(!0,!1)},Xl=new WeakMap,Yl=new WeakMap;function Zl(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=>rl(t).slice(8,-1))(t))}function ti(t){return t&&t.__v_isReadonly?t:ni(t,!1,jl,Gl)}function ei(t){return ni(t,!0,$l,Ql)}function ni(t,e,n,o){if(!nl(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=e?Yl:Xl,s=r.get(t);if(s)return s;const l=Zl(t);if(0===l)return t;const i=new Proxy(t,2===l?o:n);return r.set(t,i),i}function oi(t){return ri(t)?oi(t.__v_raw):!(!t||!t.__v_isReactive)}function ri(t){return!(!t||!t.__v_isReadonly)}function si(t){return oi(t)||ri(t)}function li(t){return t&&li(t.__v_raw)||t}const ii=t=>nl(t)?ti(t):t;function ci(t){return Boolean(t&&!0===t.__v_isRef)}function ai(t){return function(t,e=!1){if(ci(t))return t;return new ui(t,e)}(t)}class ui{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:ii(t)}get value(){return ml(li(this),0,"value"),this._value}set value(t){ll(li(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:ii(t),bl(li(this),"set","value",t))}}class fi{constructor(t,e,n){this._setter=e,this._dirty=!0,this.__v_isRef=!0,this.effect=pl(t,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,bl(li(this),"set","value"))}}),this.__v_isReadonly=n}get value(){return this._dirty&&(this._value=this.effect(),this._dirty=!1),ml(li(this),0,"value"),this._value}set value(t){this._setter(t)}}function pi(t,e,n,o){let r;try{r=o?t(...o):t()}catch(s){hi(s,e,n)}return r}function di(t,e,n,o){if(Zs(t)){const s=pi(t,e,n,o);return s&&(nl(r=s)&&Zs(r.then)&&Zs(r.catch))&&s.catch((t=>{hi(t,e,n)})),s}var r;const s=[];for(let l=0;lnull==t.id?1/0:t.id;function Ii(t){vi=!1,_i=!0,Pi(t),gi.sort(((t,e)=>Fi(t)-Fi(e)));try{for(yi=0;yiFi(t)-Fi(e))),xi=0;xiMi+=t;const Ti=(t=>(e,n=uc)=>function(t,e,n=uc,o=!1){if(n){const r=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;gl(),fc(n);const r=di(e,n,t,o);return fc(null),yl(),r});return o?r.unshift(s):r.push(s),s}}(t,e,n))("m"),Ui={};function zi(t,e,n){return Bi(t,e,n)}function Bi(t,e,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:l}=Ws,i=uc){let c,a,u=!1;if(ci(t)?(c=()=>t.value,u=!!t._shallow):oi(t)?(c=()=>t,o=!0):c=Xs(t)?()=>t.map((t=>ci(t)?t.value:oi(t)?Di(t):Zs(t)?pi(t,i,2):void 0)):Zs(t)?e?()=>pi(t,i,2):()=>{if(!i||!i.isUnmounted)return a&&a(),pi(t,i,3,[f])}:Ks,e&&o){const t=c;c=()=>Di(t())}const f=t=>{a=_.options.onStop=()=>{pi(t,i,4)}};let p=Xs(t)?[]:Ui;const d=()=>{if(_.active)if(e){const t=_();(o||u||ll(t,p))&&(a&&a(),di(e,i,3,[t,p===Ui?void 0:p,f]),p=t)}else _()};let h;d.allowRecurse=!!e,h="sync"===r?d:"post"===r?()=>Ji(d,i&&i.suspense):()=>{!i||i.isMounted?function(t){$i(t,bi,mi,wi)}(d):d()};const _=pl(c,{lazy:!0,onTrack:s,onTrigger:l,scheduler:h});return pc(_,i),e?n?d():p=_():"post"===r?Ji(_,i&&i.suspense):_(),()=>{var t;(t=_).active&&(hl(t),t.options.onStop&&t.options.onStop(),t.active=!1),i&&((t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)})(i.effects,_)}}function Vi(t,e,n){const o=this.proxy;return Bi(tl(t)?()=>o[t]:t.bind(o),e.bind(o),n,this)}function Di(t,e=new Set){if(!nl(t)||e.has(t))return t;if(e.add(t),ci(t))Di(t.value,e);else if(Xs(t))for(let n=0;n{Di(t,e)}));else for(const n in t)Di(t[n],e);return t}function Li(t){return Zs(t)?{setup:t,name:t.name}:t}function Wi(t){Zs(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:l=!0,onError:i}=t;let c,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)),i)return new Promise(((e,n)=>{i(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),c=e,e))))};return Li({__asyncLoader:f,name:"AsyncComponentWrapper",setup(){const t=uc;if(c)return()=>Ki(c,t);const e=e=>{a=null,hi(e,t,13,!o)};if(l&&t.suspense)return f().then((e=>()=>Ki(e,t))).catch((t=>(e(t),()=>o?tc(o,{error:t}):null)));const i=ai(!1),u=ai(),p=ai(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!i.value&&!u.value){const t=new Error(`Async component timed out after ${s}ms.`);e(t),u.value=t}}),s),f().then((()=>{i.value=!0})).catch((t=>{e(t),u.value=t})),()=>i.value&&c?Ki(c,t):u.value&&o?tc(o,{error:u.value}):n&&!p.value?tc(n):void 0}})}function Ki(t,{vnode:{ref:e,props:n,children:o}}){const r=tc(t,n,o);return r.ref=e,r}const Ji=function(t,e){e&&e.pendingBranch?Xs(t)?e.effects.push(...t):e.effects.push(t):$i(t,Si,ki,xi)},qi=Symbol(),Hi=Symbol(void 0),Gi=Symbol(void 0),Qi=Symbol(void 0);function Xi(t){return!!t&&!0===t.__v_isVNode}const Yi=({key:t})=>null!=t?t:null,Zi=({ref:t})=>null!=t?tl(t)||ci(t)||Zs(t)?{i:null,r:t}:t:null,tc=function(t,e=null,n=null,o=0,r=null,s=!1){t&&t!==qi||(t=Qi);if(Xi(t)){const o=ec(t,e,!0);return n&&rc(o,n),o}l=t,Zs(l)&&"__vccOpts"in l&&(t=t.__vccOpts);var l;if(e){(si(e)||"__vInternal"in e)&&(e=Hs({},e));let{class:t,style:n}=e;t&&!tl(t)&&(e.class=Ls(t)),nl(n)&&(si(n)&&!Xs(n)&&(n=Hs({},n)),e.style=zs(n))}const i=tl(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:nl(t)?4:Zs(t)?2:0,c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Yi(e),ref:e&&Zi(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:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};if(rc(c,n),128&i){const{content:t,fallback:e}=function(t){const{shapeFlag:e,children:n}=t;let o,r;return 32&e?(o=Ai(n.default),r=Ai(n.fallback)):(o=Ai(n),r=oc(null)),{content:o,fallback:r}}(c);c.ssContent=t,c.ssFallback=e}0;return c};function ec(t,e,n=!1){const{props:o,ref:r,patchFlag:s}=t,l=e?sc(o||{},e):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&Yi(l),ref:e&&e.ref?n&&r?Xs(r)?r.concat(Zi(e)):[r,Zi(e)]:Zi(e):r,scopeId:t.scopeId,children:t.children,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Hi?-1===s?16:16|s:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ec(t.ssContent),ssFallback:t.ssFallback&&ec(t.ssFallback),el:t.el,anchor:t.anchor}}function nc(t=" ",e=0){return tc(Gi,null,t,e)}function oc(t){return null==t||"boolean"==typeof t?tc(Qi):Xs(t)?tc(Hi,null,t):"object"==typeof t?null===t.el?t:ec(t):tc(Gi,null,String(t))}function rc(t,e){let n=0;const{shapeFlag:o}=t;if(null==e)e=null;else if(Xs(e))n=16;else if("object"==typeof e){if(1&o||64&o){const n=e.default;return void(n&&(n._c&&Ni(1),rc(t,n()),n._c&&Ni(-1)))}{n=32;const t=e._;t||"__vInternal"in e||(e._ctx=null)}}else Zs(e)?(e={default:e,_ctx:null},n=32):(e=String(e),64&o?(n=16,e=[nc(e)]):n=8);t.children=e,t.shapeFlag|=n}function sc(...t){const e=Hs({},t[0]);for(let n=1;nlc(t,e,n)));for(const l in e)o&&Qs(o,l)?t[l]=o[l](t[l],e[l],n.proxy,l):t[l]=e[l]}const ic=t=>t&&(t.proxy?t.proxy:ic(t.parent)),cc=Hs(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=>ic(t.parent),$root:t=>t.root&&t.root.proxy,$emit:t=>t.emit,$options:t=>function(t){const e=t.type,{__merged:n,mixins:o,extends:r}=e;if(n)return n;const s=t.appContext.mixins;if(!s.length&&!o&&!r)return e;const l={};return s.forEach((e=>lc(l,e,t))),lc(l,e,t),e.__merged=l}(t),$forceUpdate:t=>()=>{return e=t.update,void(gi.length&&gi.includes(e,_i&&e.allowRecurse?yi+1:yi)||e===Ei||(gi.push(e),ji()));var e},$nextTick:t=>Oi.bind(t.proxy),$watch:t=>Vi.bind(t)}),ac={get({_:t},e){const{ctx:n,setupState:o,data:r,props:s,accessCache:l,type:i,appContext:c}=t;if("__v_skip"===e)return!0;let a;if("$"!==e[0]){const i=l[e];if(void 0!==i)switch(i){case 0:return o[e];case 1:return r[e];case 3:return n[e];case 2:return s[e]}else{if(o!==Ws&&Qs(o,e))return l[e]=0,o[e];if(r!==Ws&&Qs(r,e))return l[e]=1,r[e];if((a=t.propsOptions[0])&&Qs(a,e))return l[e]=2,s[e];if(n!==Ws&&Qs(n,e))return l[e]=3,n[e];l[e]=4}}const u=cc[e];let f,p;return u?("$attrs"===e&&ml(t,0,e),u(t)):(f=i.__cssModules)&&(f=f[e])?f:n!==Ws&&Qs(n,e)?(l[e]=3,n[e]):(p=c.config.globalProperties,Qs(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:o,setupState:r,ctx:s}=t;if(r!==Ws&&Qs(r,e))r[e]=n;else if(o!==Ws&&Qs(o,e))o[e]=n;else if(e in t.props)return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:o,appContext:r,propsOptions:s}},l){let i;return void 0!==n[l]||t!==Ws&&Qs(t,l)||e!==Ws&&Qs(e,l)||(i=s[0])&&Qs(i,l)||Qs(o,l)||Qs(cc,l)||Qs(r.config.globalProperties,l)}};Hs({},ac,{get(t,e){if(e!==Symbol.unscopables)return ac.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!Us(e)});let uc=null;const fc=t=>{uc=t};function pc(t,e=uc){e&&(e.effects||(e.effects=[])).push(t)}function dc(t){const e=function(t){let e,n;return Zs(t)?(e=t,n=Ks):(e=t.get,n=t.set),new fi(e,n,Zs(t)||!t.set)}(t);return pc(e.effect),e}const hc=()=>({value:"",align:"left"});var _c={name:"sb-paragraph",getDefaultData:hc,edit:Wi((()=>Rn((()=>__import__("./edit.25f6c7d7.js")),["./assets/edit.25f6c7d7.js","./assets/style.3e24e605.css","./assets/vendor.9babb3f5.js"]))),display:Wi((()=>Rn((()=>__import__("./display.e17abc85.js")),["./assets/display.e17abc85.js","./assets/style.3e24e605.css","./assets/vendor.9babb3f5.js"])))};function vc(t,e){const n=Object.create(null),o=t.split(",");for(let r=0;r!!n[t.toLowerCase()]:t=>!!n[t]}const gc=vc("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl");function yc(t){if($c(t)){const e={};for(let n=0;n{if(t){const n=t.split(bc);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function kc(t){let e="";if(Ic(t))e=t;else if($c(t))for(let n=0;n{},Rc=/^on[^a-z]/,Cc=t=>Rc.test(t),Ec=Object.assign,Oc=Object.prototype.hasOwnProperty,jc=(t,e)=>Oc.call(t,e),$c=Array.isArray,Pc=t=>"[object Map]"===Tc(t),Fc=t=>"function"==typeof t,Ic=t=>"string"==typeof t,Ac=t=>"symbol"==typeof t,Mc=t=>null!==t&&"object"==typeof t,Nc=Object.prototype.toString,Tc=t=>Nc.call(t),Uc=t=>Ic(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,zc=(t,e)=>t!==e&&(t==t||e==e),Bc=new WeakMap,Vc=[];let Dc;const Lc=Symbol(""),Wc=Symbol("");function Kc(t,e=Sc){(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(!Vc.includes(n)){qc(n);try{return Gc.push(Hc),Hc=!0,Vc.push(n),Dc=n,t()}finally{Vc.pop(),Qc(),Dc=Vc[Vc.length-1]}}};return n.id=Jc++,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 Jc=0;function qc(t){const{deps:e}=t;if(e.length){for(let n=0;n{t&&t.forEach((t=>{(t!==Dc||t.allowRecurse)&&i.add(t)}))};if("clear"===e)l.forEach(c);else if("length"===n&&$c(t))l.forEach(((t,e)=>{("length"===e||e>=o)&&c(t)}));else switch(void 0!==n&&c(l.get(n)),e){case"add":$c(t)?Uc(n)&&c(l.get("length")):(c(l.get(Lc)),Pc(t)&&c(l.get(Wc)));break;case"delete":$c(t)||(c(l.get(Lc)),Pc(t)&&c(l.get(Wc)));break;case"set":Pc(t)&&c(l.get(Lc))}i.forEach((t=>{t.options.scheduler?t.options.scheduler(t):t()}))}const Zc=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(Ac)),ta=sa(),ea=sa(!1,!0),na=sa(!0),oa=sa(!0,!0),ra={};function sa(t=!1,e=!1){return function(n,o,r){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_raw"===o&&r===(t?$a:ja).get(n))return n;const s=$c(n);if(!t&&s&&jc(ra,o))return Reflect.get(ra,o,r);const l=Reflect.get(n,o,r);if(Ac(o)?Zc.has(o):"__proto__"===o||"__v_isRef"===o)return l;if(t||Xc(n,0,o),e)return l;if(Ba(l)){return!s||!Uc(o)?l.value:l}return Mc(l)?t?Ia(l):Fa(l):l}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];ra[t]=function(...t){const n=Ua(this);for(let e=0,r=this.length;e{const e=Array.prototype[t];ra[t]=function(...t){Gc.push(Hc),Hc=!1;const n=e.apply(this,t);return Qc(),n}}));function la(t=!1){return function(e,n,o,r){const s=e[n];if(!t&&(o=Ua(o),!$c(e)&&Ba(s)&&!Ba(o)))return s.value=o,!0;const l=$c(e)&&Uc(n)?Number(n)!0,deleteProperty:(t,e)=>!0};Ec({},ia,{get:ea,set:la(!0)}),Ec({},ca,{get:oa});const aa=t=>Mc(t)?Fa(t):t,ua=t=>Mc(t)?Ia(t):t,fa=t=>t,pa=t=>Reflect.getPrototypeOf(t);function da(t,e,n=!1,o=!1){const r=Ua(t=t.__v_raw),s=Ua(e);e!==s&&!n&&Xc(r,0,e),!n&&Xc(r,0,s);const{has:l}=pa(r),i=n?ua:o?fa:aa;return l.call(r,e)?i(t.get(e)):l.call(r,s)?i(t.get(s)):void 0}function ha(t,e=!1){const n=this.__v_raw,o=Ua(n),r=Ua(t);return t!==r&&!e&&Xc(o,0,t),!e&&Xc(o,0,r),t===r?n.has(t):n.has(t)||n.has(r)}function _a(t,e=!1){return t=t.__v_raw,!e&&Xc(Ua(t),0,Lc),Reflect.get(t,"size",t)}function va(t){t=Ua(t);const e=Ua(this),n=pa(e).has.call(e,t);return e.add(t),n||Yc(e,"add",t,t),this}function ga(t,e){e=Ua(e);const n=Ua(this),{has:o,get:r}=pa(n);let s=o.call(n,t);s||(t=Ua(t),s=o.call(n,t));const l=r.call(n,t);return n.set(t,e),s?zc(e,l)&&Yc(n,"set",t,e):Yc(n,"add",t,e),this}function ya(t){const e=Ua(this),{has:n,get:o}=pa(e);let r=n.call(e,t);r||(t=Ua(t),r=n.call(e,t)),o&&o.call(e,t);const s=e.delete(t);return r&&Yc(e,"delete",t,void 0),s}function ma(){const t=Ua(this),e=0!==t.size,n=t.clear();return e&&Yc(t,"clear",void 0,void 0),n}function ba(t,e){return function(n,o){const r=this,s=r.__v_raw,l=Ua(s),i=t?ua:e?fa:aa;return!t&&Xc(l,0,Lc),s.forEach(((t,e)=>n.call(o,i(t),i(e),r)))}}function wa(t,e,n){return function(...o){const r=this.__v_raw,s=Ua(r),l=Pc(s),i="entries"===t||t===Symbol.iterator&&l,c="keys"===t&&l,a=r[t](...o),u=e?ua:n?fa:aa;return!e&&Xc(s,0,c?Wc:Lc),{next(){const{value:t,done:e}=a.next();return e?{value:t,done:e}:{value:i?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}}function ka(t){return function(...e){return"delete"!==t&&this}}const Sa={get(t){return da(this,t)},get size(){return _a(this)},has:ha,add:va,set:ga,delete:ya,clear:ma,forEach:ba(!1,!1)},xa={get(t){return da(this,t,!1,!0)},get size(){return _a(this)},has:ha,add:va,set:ga,delete:ya,clear:ma,forEach:ba(!1,!0)},Ra={get(t){return da(this,t,!0)},get size(){return _a(this,!0)},has(t){return ha.call(this,t,!0)},add:ka("add"),set:ka("set"),delete:ka("delete"),clear:ka("clear"),forEach:ba(!0,!1)};function Ca(t,e){const n=e?xa:t?Ra:Sa;return(e,o,r)=>"__v_isReactive"===o?!t:"__v_isReadonly"===o?t:"__v_raw"===o?e:Reflect.get(jc(n,o)&&o in e?n:e,o,r)}["keys","values","entries",Symbol.iterator].forEach((t=>{Sa[t]=wa(t,!1,!1),Ra[t]=wa(t,!0,!1),xa[t]=wa(t,!1,!0)}));const Ea={get:Ca(!1,!1)},Oa={get:Ca(!0,!1)},ja=new WeakMap,$a=new WeakMap;function Pa(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=>Tc(t).slice(8,-1))(t))}function Fa(t){return t&&t.__v_isReadonly?t:Aa(t,!1,ia,Ea)}function Ia(t){return Aa(t,!0,ca,Oa)}function Aa(t,e,n,o){if(!Mc(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=e?$a:ja,s=r.get(t);if(s)return s;const l=Pa(t);if(0===l)return t;const i=new Proxy(t,2===l?o:n);return r.set(t,i),i}function Ma(t){return Na(t)?Ma(t.__v_raw):!(!t||!t.__v_isReactive)}function Na(t){return!(!t||!t.__v_isReadonly)}function Ta(t){return Ma(t)||Na(t)}function Ua(t){return t&&Ua(t.__v_raw)||t}const za=t=>Mc(t)?Fa(t):t;function Ba(t){return Boolean(t&&!0===t.__v_isRef)}function Va(t){return function(t,e=!1){if(Ba(t))return t;return new Da(t,e)}(t)}class Da{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:za(t)}get value(){return Xc(Ua(this),0,"value"),this._value}set value(t){zc(Ua(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:za(t),Yc(Ua(this),"set","value",t))}}function La(t,e,n,o){let r;try{r=o?t(...o):t()}catch(s){Ka(s,e,n)}return r}function Wa(t,e,n,o){if(Fc(t)){const s=La(t,e,n,o);return s&&(Mc(r=s)&&Fc(r.then)&&Fc(r.catch))&&s.catch((t=>{Ka(t,e,n)})),s}var r;const s=[];for(let l=0;lnull==t.id?1/0:t.id;function uu(t){qa=!1,Ja=!0,cu(t),Ha.sort(((t,e)=>au(t)-au(e)));try{for(Ga=0;Gaau(t)-au(e))),eu=0;eupu+=t;const hu={};function _u(t,e,n){return vu(t,e,n)}function vu(t,e,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:l}=Sc,i=zu){let c,a,u=!1;if(Ba(t)?(c=()=>t.value,u=!!t._shallow):Ma(t)?(c=()=>t,o=!0):c=$c(t)?()=>t.map((t=>Ba(t)?t.value:Ma(t)?yu(t):Fc(t)?La(t,i,2):void 0)):Fc(t)?e?()=>La(t,i,2):()=>{if(!i||!i.isUnmounted)return a&&a(),La(t,i,3,[f])}:xc,e&&o){const t=c;c=()=>yu(t())}const f=t=>{a=_.options.onStop=()=>{La(t,i,4)}};let p=$c(t)?[]:hu;const d=()=>{if(_.active)if(e){const t=_();(o||u||zc(t,p))&&(a&&a(),Wa(e,i,3,[t,p===hu?void 0:p,f]),p=t)}else _()};let h;d.allowRecurse=!!e,h="sync"===r?d:"post"===r?()=>ku(d,i&&i.suspense):()=>{!i||i.isMounted?function(t){iu(t,Xa,Qa,Ya)}(d):d()};const _=Kc(c,{lazy:!0,onTrack:s,onTrigger:l,scheduler:h});return function(t,e=zu){e&&(e.effects||(e.effects=[])).push(t)}(_,i),e?n?d():p=_():"post"===r?ku(_,i&&i.suspense):_(),()=>{var t;(t=_).active&&(qc(t),t.options.onStop&&t.options.onStop(),t.active=!1),i&&((t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)})(i.effects,_)}}function gu(t,e,n){const o=this.proxy;return vu(Ic(t)?()=>o[t]:t.bind(o),e.bind(o),n,this)}function yu(t,e=new Set){if(!Mc(t)||e.has(t))return t;if(e.add(t),Ba(t))yu(t.value,e);else if($c(t))for(let n=0;n{yu(t,e)}));else for(const n in t)yu(t[n],e);return t}function mu(t){return Fc(t)?{setup:t,name:t.name}:t}function bu(t){Fc(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:l=!0,onError:i}=t;let c,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)),i)return new Promise(((e,n)=>{i(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),c=e,e))))};return mu({__asyncLoader:f,name:"AsyncComponentWrapper",setup(){const t=zu;if(c)return()=>wu(c,t);const e=e=>{a=null,Ka(e,t,13,!o)};if(l&&t.suspense)return f().then((e=>()=>wu(e,t))).catch((t=>(e(t),()=>o?$u(o,{error:t}):null)));const i=Va(!1),u=Va(),p=Va(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!i.value&&!u.value){const t=new Error(`Async component timed out after ${s}ms.`);e(t),u.value=t}}),s),f().then((()=>{i.value=!0})).catch((t=>{e(t),u.value=t})),()=>i.value&&c?wu(c,t):u.value&&o?$u(o,{error:u.value}):n&&!p.value?$u(n):void 0}})}function wu(t,{vnode:{ref:e,props:n,children:o}}){const r=$u(t,n,o);return r.ref=e,r}const ku=function(t,e){e&&e.pendingBranch?$c(t)?e.effects.push(...t):e.effects.push(t):iu(t,tu,Za,eu)},Su=Symbol(),xu=Symbol(void 0),Ru=Symbol(void 0),Cu=Symbol(void 0);function Eu(t){return!!t&&!0===t.__v_isVNode}const Ou=({key:t})=>null!=t?t:null,ju=({ref:t})=>null!=t?Ic(t)||Ba(t)||Fc(t)?{i:null,r:t}:t:null,$u=function(t,e=null,n=null,o=0,r=null,s=!1){t&&t!==Su||(t=Cu);if(Eu(t)){const o=Pu(t,e,!0);return n&&Au(o,n),o}l=t,Fc(l)&&"__vccOpts"in l&&(t=t.__vccOpts);var l;if(e){(Ta(e)||"__vInternal"in e)&&(e=Ec({},e));let{class:t,style:n}=e;t&&!Ic(t)&&(e.class=kc(t)),Mc(n)&&(Ta(n)&&!$c(n)&&(n=Ec({},n)),e.style=yc(n))}const i=Ic(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:Mc(t)?4:Fc(t)?2:0,c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Ou(e),ref:e&&ju(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:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};if(Au(c,n),128&i){const{content:t,fallback:e}=function(t){const{shapeFlag:e,children:n}=t;let o,r;return 32&e?(o=fu(n.default),r=fu(n.fallback)):(o=fu(n),r=Iu(null)),{content:o,fallback:r}}(c);c.ssContent=t,c.ssFallback=e}0;return c};function Pu(t,e,n=!1){const{props:o,ref:r,patchFlag:s}=t,l=e?function(...t){const e=Ec({},t[0]);for(let n=1;nMu(t,e,n)));for(const l in e)o&&jc(o,l)?t[l]=o[l](t[l],e[l],n.proxy,l):t[l]=e[l]}const Nu=t=>t&&(t.proxy?t.proxy:Nu(t.parent)),Tu=Ec(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=>Nu(t.parent),$root:t=>t.root&&t.root.proxy,$emit:t=>t.emit,$options:t=>function(t){const e=t.type,{__merged:n,mixins:o,extends:r}=e;if(n)return n;const s=t.appContext.mixins;if(!s.length&&!o&&!r)return e;const l={};return s.forEach((e=>Mu(l,e,t))),Mu(l,e,t),e.__merged=l}(t),$forceUpdate:t=>()=>{return e=t.update,void(Ha.length&&Ha.includes(e,Ja&&e.allowRecurse?Ga+1:Ga)||e===ru||(Ha.push(e),lu()));var e},$nextTick:t=>su.bind(t.proxy),$watch:t=>gu.bind(t)}),Uu={get({_:t},e){const{ctx:n,setupState:o,data:r,props:s,accessCache:l,type:i,appContext:c}=t;if("__v_skip"===e)return!0;let a;if("$"!==e[0]){const i=l[e];if(void 0!==i)switch(i){case 0:return o[e];case 1:return r[e];case 3:return n[e];case 2:return s[e]}else{if(o!==Sc&&jc(o,e))return l[e]=0,o[e];if(r!==Sc&&jc(r,e))return l[e]=1,r[e];if((a=t.propsOptions[0])&&jc(a,e))return l[e]=2,s[e];if(n!==Sc&&jc(n,e))return l[e]=3,n[e];l[e]=4}}const u=Tu[e];let f,p;return u?("$attrs"===e&&Xc(t,0,e),u(t)):(f=i.__cssModules)&&(f=f[e])?f:n!==Sc&&jc(n,e)?(l[e]=3,n[e]):(p=c.config.globalProperties,jc(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:o,setupState:r,ctx:s}=t;if(r!==Sc&&jc(r,e))r[e]=n;else if(o!==Sc&&jc(o,e))o[e]=n;else if(e in t.props)return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:o,appContext:r,propsOptions:s}},l){let i;return void 0!==n[l]||t!==Sc&&jc(t,l)||e!==Sc&&jc(e,l)||(i=s[0])&&jc(i,l)||jc(o,l)||jc(Tu,l)||jc(r.config.globalProperties,l)}};Ec({},Uu,{get(t,e){if(e!==Symbol.unscopables)return Uu.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!gc(e)});let zu=null;const Bu=()=>({src:"",alt:"",description:{id:b(),name:"sb-paragraph",data:{value:"",align:"left"}}});var Vu={name:"sb-image",getDefaultData:Bu,edit:bu((()=>Rn((()=>__import__("./edit.fbd6e1aa.js")),["./assets/edit.fbd6e1aa.js","./assets/style.d3f26b5f.css","./assets/vendor.9babb3f5.js"]))),display:bu((()=>Rn((()=>__import__("./display.8a67d4c4.js")),["./assets/display.8a67d4c4.js","./assets/style.d3f26b5f.css","./assets/vendor.9babb3f5.js"])))};a(n({name:"App",setup(){const t=o("edit"),e=r({name:"none",id:"0",data:null});s((async()=>{const t=await fetch("/initial-data.json"),n=await t.json();e.name=n.name,e.id=n.id,e.data=n.data}));const n=l((()=>{switch(t.value){case u.Edit:return i(On,{block:e,onUpdate:t=>{e.data=t.data},customBlocks:[Ms,Ns,Vu,_c],key:"edit",mode:u.Edit},null);case u.Display:return i(On,{block:e,customBlocks:[Ms,Ns,Vu,_c],key:"display",mode:u.Display},null);case"data":return i("pre",null,[i("code",null,[JSON.stringify(e,null,2)])])}}));return()=>i("div",{id:"app"},[i("select",{value:t.value,onChange:e=>{t.value=e.target.value}},[i("option",null,[c("edit")]),i("option",null,[c("display")]),i("option",null,[c("data")])]),n.value])}})).mount("#app");export{Fa as A,Va as B,_u as C,$u as D,Fu as E,xu as F,Fe as G,k as H,Le as I,Ke as J,oo as S,ws as a,yn as b,Is as c,us as d,En as e,Cs as f,As as g,eo as h,no as i,Li as j,hc as k,ti as l,w as m,ai as n,Ti as o,zi as p,dc as q,kr as r,tc as s,ro as t,ln as u,nc as v,ls as w,sc as x,mu as y,Bu as z}; +var t=Object.assign;import{d as e,a as n,r as o,b as r,o as s,c as l,e as i,f as c,g as a}from"./vendor.9babb3f5.js";var u,f;!function(t=".",e="__import__"){try{self[e]=new Function("u","return import(u)")}catch(n){const o=new URL(t,location),r=t=>{URL.revokeObjectURL(t.src),t.remove()};self[e]=t=>new Promise(((n,s)=>{const l=new URL(t,o);if(self[e].moduleMap[l])return n(self[e].moduleMap[l]);const i=new Blob([`import * as m from '${l}';`,`${e}.moduleMap['${l}']=m;`],{type:"text/javascript"}),c=Object.assign(document.createElement("script"),{type:"module",src:URL.createObjectURL(i),onerror(){s(new Error(`Failed to import: ${t}`)),r(c)},onload(){n(self[e].moduleMap[l]),r(c)}});document.head.appendChild(c)})),self[e].moduleMap={}}}("assets/"),(f=u||(u={})).Edit="edit",f.Display="display";const p=Symbol("Schlechtenburg mode");var d,h=new Uint8Array(16);function _(){if(!d&&!(d="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return d(h)}var v=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function g(t){return"string"==typeof t&&v.test(t)}for(var y=[],b=0;b<256;++b)y.push((b+256).toString(16).substr(1));const m=function(t,e,n){var o=(t=t||{}).random||(t.rng||_)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){n=n||0;for(var r=0;r<16;++r)e[n+r]=o[r];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(y[t[e+0]]+y[t[e+1]]+y[t[e+2]]+y[t[e+3]]+"-"+y[t[e+4]]+y[t[e+5]]+"-"+y[t[e+6]]+y[t[e+7]]+"-"+y[t[e+8]]+y[t[e+9]]+"-"+y[t[e+10]]+y[t[e+11]]+y[t[e+12]]+y[t[e+13]]+y[t[e+14]]+y[t[e+15]]).toLowerCase();if(!g(n))throw TypeError("Stringified UUID is invalid");return n}(o)},w={prop:"block",event:"update"},k={blockId:{type:String,default:m}};function S(t,e){const n=Object.create(null),o=t.split(",");for(let r=0;r!!n[t.toLowerCase()]:t=>!!n[t]}const x=S("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl");function R(t){if(T(t)){const e={};for(let n=0;n{if(t){const n=t.split(E);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function j(t){let e="";if(B(t))e=t;else if(T(t))for(let n=0;n{},F=/^on[^a-z]/,I=t=>F.test(t),A=Object.assign,M=Object.prototype.hasOwnProperty,N=(t,e)=>M.call(t,e),T=Array.isArray,U=t=>"[object Map]"===W(t),z=t=>"function"==typeof t,B=t=>"string"==typeof t,V=t=>"symbol"==typeof t,D=t=>null!==t&&"object"==typeof t,L=Object.prototype.toString,W=t=>L.call(t),K=t=>B(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,J=(t,e)=>t!==e&&(t==t||e==e),q=new WeakMap,H=[];let G;const Q=Symbol(""),X=Symbol("");function Y(t,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(!H.includes(n)){tt(n);try{return nt.push(et),et=!0,H.push(n),G=n,t()}finally{H.pop(),rt(),G=H[H.length-1]}}};return n.id=Z++,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 Z=0;function tt(t){const{deps:e}=t;if(e.length){for(let n=0;n{t&&t.forEach((t=>{(t!==G||t.allowRecurse)&&i.add(t)}))};if("clear"===e)l.forEach(c);else if("length"===n&&T(t))l.forEach(((t,e)=>{("length"===e||e>=o)&&c(t)}));else switch(void 0!==n&&c(l.get(n)),e){case"add":T(t)?K(n)&&c(l.get("length")):(c(l.get(Q)),U(t)&&c(l.get(X)));break;case"delete":T(t)||(c(l.get(Q)),U(t)&&c(l.get(X)));break;case"set":U(t)&&c(l.get(Q))}i.forEach((t=>{t.options.scheduler?t.options.scheduler(t):t()}))}const it=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(V)),ct=dt(),at=dt(!1,!0),ut=dt(!0),ft=dt(!0,!0),pt={};function dt(t=!1,e=!1){return function(n,o,r){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_raw"===o&&r===(t?Bt:zt).get(n))return n;const s=T(n);if(!t&&s&&N(pt,o))return Reflect.get(pt,o,r);const l=Reflect.get(n,o,r);if(V(o)?it.has(o):"__proto__"===o||"__v_isRef"===o)return l;if(t||st(n,0,o),e)return l;if(Qt(l)){return!s||!K(o)?l.value:l}return D(l)?t?Lt(l):Dt(l):l}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];pt[t]=function(...t){const n=Ht(this);for(let e=0,r=this.length;e{const e=Array.prototype[t];pt[t]=function(...t){ot();const n=e.apply(this,t);return rt(),n}}));function ht(t=!1){return function(e,n,o,r){const s=e[n];if(!t&&(o=Ht(o),!T(e)&&Qt(s)&&!Qt(o)))return s.value=o,!0;const l=T(e)&&K(n)?Number(n)!0,deleteProperty:(t,e)=>!0},gt=A({},_t,{get:at,set:ht(!0)});A({},vt,{get:ft});const yt=t=>D(t)?Dt(t):t,bt=t=>D(t)?Lt(t):t,mt=t=>t,wt=t=>Reflect.getPrototypeOf(t);function kt(t,e,n=!1,o=!1){const r=Ht(t=t.__v_raw),s=Ht(e);e!==s&&!n&&st(r,0,e),!n&&st(r,0,s);const{has:l}=wt(r),i=n?bt:o?mt:yt;return l.call(r,e)?i(t.get(e)):l.call(r,s)?i(t.get(s)):void 0}function St(t,e=!1){const n=this.__v_raw,o=Ht(n),r=Ht(t);return t!==r&&!e&&st(o,0,t),!e&&st(o,0,r),t===r?n.has(t):n.has(t)||n.has(r)}function xt(t,e=!1){return t=t.__v_raw,!e&&st(Ht(t),0,Q),Reflect.get(t,"size",t)}function Rt(t){t=Ht(t);const e=Ht(this),n=wt(e).has.call(e,t);return e.add(t),n||lt(e,"add",t,t),this}function Ct(t,e){e=Ht(e);const n=Ht(this),{has:o,get:r}=wt(n);let s=o.call(n,t);s||(t=Ht(t),s=o.call(n,t));const l=r.call(n,t);return n.set(t,e),s?J(e,l)&<(n,"set",t,e):lt(n,"add",t,e),this}function Et(t){const e=Ht(this),{has:n,get:o}=wt(e);let r=n.call(e,t);r||(t=Ht(t),r=n.call(e,t)),o&&o.call(e,t);const s=e.delete(t);return r&<(e,"delete",t,void 0),s}function Ot(){const t=Ht(this),e=0!==t.size,n=t.clear();return e&<(t,"clear",void 0,void 0),n}function jt(t,e){return function(n,o){const r=this,s=r.__v_raw,l=Ht(s),i=t?bt:e?mt:yt;return!t&&st(l,0,Q),s.forEach(((t,e)=>n.call(o,i(t),i(e),r)))}}function $t(t,e,n){return function(...o){const r=this.__v_raw,s=Ht(r),l=U(s),i="entries"===t||t===Symbol.iterator&&l,c="keys"===t&&l,a=r[t](...o),u=e?bt:n?mt:yt;return!e&&st(s,0,c?X:Q),{next(){const{value:t,done:e}=a.next();return e?{value:t,done:e}:{value:i?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}}function Pt(t){return function(...e){return"delete"!==t&&this}}const Ft={get(t){return kt(this,t)},get size(){return xt(this)},has:St,add:Rt,set:Ct,delete:Et,clear:Ot,forEach:jt(!1,!1)},It={get(t){return kt(this,t,!1,!0)},get size(){return xt(this)},has:St,add:Rt,set:Ct,delete:Et,clear:Ot,forEach:jt(!1,!0)},At={get(t){return kt(this,t,!0)},get size(){return xt(this,!0)},has(t){return St.call(this,t,!0)},add:Pt("add"),set:Pt("set"),delete:Pt("delete"),clear:Pt("clear"),forEach:jt(!0,!1)};function Mt(t,e){const n=e?It:t?At:Ft;return(e,o,r)=>"__v_isReactive"===o?!t:"__v_isReadonly"===o?t:"__v_raw"===o?e:Reflect.get(N(n,o)&&o in e?n:e,o,r)}["keys","values","entries",Symbol.iterator].forEach((t=>{Ft[t]=$t(t,!1,!1),At[t]=$t(t,!0,!1),It[t]=$t(t,!1,!0)}));const Nt={get:Mt(!1,!1)},Tt={get:Mt(!1,!0)},Ut={get:Mt(!0,!1)},zt=new WeakMap,Bt=new WeakMap;function Vt(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=>W(t).slice(8,-1))(t))}function Dt(t){return t&&t.__v_isReadonly?t:Wt(t,!1,_t,Nt)}function Lt(t){return Wt(t,!0,vt,Ut)}function Wt(t,e,n,o){if(!D(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=e?Bt:zt,s=r.get(t);if(s)return s;const l=Vt(t);if(0===l)return t;const i=new Proxy(t,2===l?o:n);return r.set(t,i),i}function Kt(t){return Jt(t)?Kt(t.__v_raw):!(!t||!t.__v_isReactive)}function Jt(t){return!(!t||!t.__v_isReadonly)}function qt(t){return Kt(t)||Jt(t)}function Ht(t){return t&&Ht(t.__v_raw)||t}const Gt=t=>D(t)?Dt(t):t;function Qt(t){return Boolean(t&&!0===t.__v_isRef)}function Xt(t){return function(t,e=!1){if(Qt(t))return t;return new Yt(t,e)}(t)}class Yt{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:Gt(t)}get value(){return st(Ht(this),0,"value"),this._value}set value(t){J(Ht(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:Gt(t),lt(Ht(this),"set","value",t))}}class Zt{constructor(t,e,n){this._setter=e,this._dirty=!0,this.__v_isRef=!0,this.effect=Y(t,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,lt(Ht(this),"set","value"))}}),this.__v_isReadonly=n}get value(){return this._dirty&&(this._value=this.effect(),this._dirty=!1),st(Ht(this),0,"value"),this._value}set value(t){this._setter(t)}}function te(t,e,n,o){let r;try{r=o?t(...o):t()}catch(s){ne(s,e,n)}return r}function ee(t,e,n,o){if(z(t)){const s=te(t,e,n,o);return s&&(D(r=s)&&z(r.then)&&z(r.catch))&&s.catch((t=>{ne(t,e,n)})),s}var r;const s=[];for(let l=0;lnull==t.id?1/0:t.id;function we(t){re=!1,oe=!0,be(t),se.sort(((t,e)=>me(t)-me(e)));try{for(le=0;leme(t)-me(e))),pe=0;peSe+=t;const Re=(Ce="um",(t,e=en)=>function(t,e,n=en,o=!1){if(n){const r=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;ot(),nn(n);const r=ee(e,n,t,o);return nn(null),rt(),r});return o?r.unshift(s):r.push(s),s}}(Ce,t,e));var Ce;const Ee={};function Oe(t,e,n){return je(t,e,n)}function je(t,e,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:l}=$,i=en){let c,a,u=!1;if(Qt(t)?(c=()=>t.value,u=!!t._shallow):Kt(t)?(c=()=>t,o=!0):c=T(t)?()=>t.map((t=>Qt(t)?t.value:Kt(t)?Pe(t):z(t)?te(t,i,2):void 0)):z(t)?e?()=>te(t,i,2):()=>{if(!i||!i.isUnmounted)return a&&a(),te(t,i,3,[f])}:P,e&&o){const t=c;c=()=>Pe(t())}const f=t=>{a=_.options.onStop=()=>{te(t,i,4)}};let p=T(t)?[]:Ee;const d=()=>{if(_.active)if(e){const t=_();(o||u||J(t,p))&&(a&&a(),ee(e,i,3,[t,p===Ee?void 0:p,f]),p=t)}else _()};let h;d.allowRecurse=!!e,h="sync"===r?d:"post"===r?()=>Me(d,i&&i.suspense):()=>{!i||i.isMounted?function(t){ye(t,ce,ie,ae)}(d):d()};const _=Y(c,{lazy:!0,onTrack:s,onTrigger:l,scheduler:h});return on(_,i),e?n?d():p=_():"post"===r?Me(_,i&&i.suspense):_(),()=>{var t;(t=_).active&&(tt(t),t.options.onStop&&t.options.onStop(),t.active=!1),i&&((t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)})(i.effects,_)}}function $e(t,e,n){const o=this.proxy;return je(B(t)?()=>o[t]:t.bind(o),e.bind(o),n,this)}function Pe(t,e=new Set){if(!D(t)||e.has(t))return t;if(e.add(t),Qt(t))Pe(t.value,e);else if(T(t))for(let n=0;n{Pe(t,e)}));else for(const n in t)Pe(t[n],e);return t}function Fe(t){return z(t)?{setup:t,name:t.name}:t}function Ie(t){z(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:l=!0,onError:i}=t;let c,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)),i)return new Promise(((e,n)=>{i(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),c=e,e))))};return Fe({__asyncLoader:f,name:"AsyncComponentWrapper",setup(){const t=en;if(c)return()=>Ae(c,t);const e=e=>{a=null,ne(e,t,13,!o)};if(l&&t.suspense)return f().then((e=>()=>Ae(e,t))).catch((t=>(e(t),()=>o?Le(o,{error:t}):null)));const i=Xt(!1),u=Xt(),p=Xt(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!i.value&&!u.value){const t=new Error(`Async component timed out after ${s}ms.`);e(t),u.value=t}}),s),f().then((()=>{i.value=!0})).catch((t=>{e(t),u.value=t})),()=>i.value&&c?Ae(c,t):u.value&&o?Le(o,{error:u.value}):n&&!p.value?Le(n):void 0}})}function Ae(t,{vnode:{ref:e,props:n,children:o}}){const r=Le(t,n,o);return r.ref=e,r}const Me=function(t,e){e&&e.pendingBranch?T(t)?e.effects.push(...t):e.effects.push(t):ye(t,fe,ue,pe)},Ne=Symbol(),Te=Symbol(void 0),Ue=Symbol(void 0),ze=Symbol(void 0);function Be(t){return!!t&&!0===t.__v_isVNode}const Ve=({key:t})=>null!=t?t:null,De=({ref:t})=>null!=t?B(t)||Qt(t)||z(t)?{i:null,r:t}:t:null,Le=function(t,e=null,n=null,o=0,r=null,s=!1){t&&t!==Ne||(t=ze);if(Be(t)){const o=We(t,e,!0);return n&&qe(o,n),o}l=t,z(l)&&"__vccOpts"in l&&(t=t.__vccOpts);var l;if(e){(qt(e)||"__vInternal"in e)&&(e=A({},e));let{class:t,style:n}=e;t&&!B(t)&&(e.class=j(t)),D(n)&&(qt(n)&&!T(n)&&(n=A({},n)),e.style=R(n))}const i=B(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:D(t)?4:z(t)?2:0,c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Ve(e),ref:e&&De(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:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};if(qe(c,n),128&i){const{content:t,fallback:e}=function(t){const{shapeFlag:e,children:n}=t;let o,r;return 32&e?(o=ke(n.default),r=ke(n.fallback)):(o=ke(n),r=Je(null)),{content:o,fallback:r}}(c);c.ssContent=t,c.ssFallback=e}0;return c};function We(t,e,n=!1){const{props:o,ref:r,patchFlag:s}=t,l=e?He(o||{},e):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&Ve(l),ref:e&&e.ref?n&&r?T(r)?r.concat(De(e)):[r,De(e)]:De(e):r,scopeId:t.scopeId,children:t.children,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Te?-1===s?16:16|s:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&We(t.ssContent),ssFallback:t.ssFallback&&We(t.ssFallback),el:t.el,anchor:t.anchor}}function Ke(t=" ",e=0){return Le(Ue,null,t,e)}function Je(t){return null==t||"boolean"==typeof t?Le(ze):T(t)?Le(Te,null,t):"object"==typeof t?null===t.el?t:We(t):Le(Ue,null,String(t))}function qe(t,e){let n=0;const{shapeFlag:o}=t;if(null==e)e=null;else if(T(e))n=16;else if("object"==typeof e){if(1&o||64&o){const n=e.default;return void(n&&(n._c&&xe(1),qe(t,n()),n._c&&xe(-1)))}{n=32;const t=e._;t||"__vInternal"in e||(e._ctx=null)}}else z(e)?(e={default:e,_ctx:null},n=32):(e=String(e),64&o?(n=16,e=[Ke(e)]):n=8);t.children=e,t.shapeFlag|=n}function He(...t){const e=A({},t[0]);for(let n=1;n1)return n&&z(e)?e():e}}function Xe(t,e,n){const o=n.appContext.config.optionMergeStrategies,{mixins:r,extends:s}=e;s&&Xe(t,s,n),r&&r.forEach((e=>Xe(t,e,n)));for(const l in e)o&&N(o,l)?t[l]=o[l](t[l],e[l],n.proxy,l):t[l]=e[l]}const Ye=t=>t&&(t.proxy?t.proxy:Ye(t.parent)),Ze=A(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=>Ye(t.parent),$root:t=>t.root&&t.root.proxy,$emit:t=>t.emit,$options:t=>function(t){const e=t.type,{__merged:n,mixins:o,extends:r}=e;if(n)return n;const s=t.appContext.mixins;if(!s.length&&!o&&!r)return e;const l={};return s.forEach((e=>Xe(l,e,t))),Xe(l,e,t),e.__merged=l}(t),$forceUpdate:t=>()=>{return e=t.update,void(se.length&&se.includes(e,oe&&e.allowRecurse?le+1:le)||e===_e||(se.push(e),ge()));var e},$nextTick:t=>ve.bind(t.proxy),$watch:t=>$e.bind(t)}),tn={get({_:t},e){const{ctx:n,setupState:o,data:r,props:s,accessCache:l,type:i,appContext:c}=t;if("__v_skip"===e)return!0;let a;if("$"!==e[0]){const i=l[e];if(void 0!==i)switch(i){case 0:return o[e];case 1:return r[e];case 3:return n[e];case 2:return s[e]}else{if(o!==$&&N(o,e))return l[e]=0,o[e];if(r!==$&&N(r,e))return l[e]=1,r[e];if((a=t.propsOptions[0])&&N(a,e))return l[e]=2,s[e];if(n!==$&&N(n,e))return l[e]=3,n[e];l[e]=4}}const u=Ze[e];let f,p;return u?("$attrs"===e&&st(t,0,e),u(t)):(f=i.__cssModules)&&(f=f[e])?f:n!==$&&N(n,e)?(l[e]=3,n[e]):(p=c.config.globalProperties,N(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:o,setupState:r,ctx:s}=t;if(r!==$&&N(r,e))r[e]=n;else if(o!==$&&N(o,e))o[e]=n;else if(e in t.props)return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:o,appContext:r,propsOptions:s}},l){let i;return void 0!==n[l]||t!==$&&N(t,l)||e!==$&&N(e,l)||(i=s[0])&&N(i,l)||N(o,l)||N(Ze,l)||N(r.config.globalProperties,l)}};A({},tn,{get(t,e){if(e!==Symbol.unscopables)return tn.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!x(e)});let en=null;const nn=t=>{en=t};function on(t,e=en){e&&(e.effects||(e.effects=[])).push(t)}function rn(t){const e=function(t){let e,n;return z(t)?(e=t,n=P):(e=t.get,n=t.set),new Zt(e,n,z(t)||!t.set)}(t);return on(e.effect),e}const sn=Symbol("Schlechtenburg active block");function ln(t=null){const e=Qe(sn,Xt(null)),n=rn((()=>e.value===t)),o=n=>{e.value=void 0!==n?n:t};return{activeBlockId:e,isActive:n,activate:o,requestActivation:()=>{e.value||o()}}}const cn=Symbol("Schlechtenburg block library");function an(){const t=Qe(p,Xt(u.Edit)),e=Qe(cn,Dt({}));return{mode:t,customBlocks:e,getBlock:t=>e[t]}}const un=Symbol("Schlechtenburg block dimensions"),fn=Symbol("Schlechtenburg editor dimensions");function pn(t,e){const n=Xt(null);Ge(e,n);const o=()=>{if(!t.value)return;const e=t.value.getBoundingClientRect();n.value={width:e.width,height:e.height,left:t.value.offsetLeft,top:t.value.offsetTop}},r=new ResizeObserver(o),s=new MutationObserver(o);return Oe(t,(()=>{t.value&&(r.observe(t.value),s.observe(t.value,{attributes:!0,childList:!1,subtree:!1}))})),{triggerSizeCalculation:o,dimensions:n}}function dn(){return{editorDimensions:Qe(fn,Xt(null)),blockDimensions:Qe(un,Xt(null))}}const hn=Symbol("Schlechtenburg block tree"),_n=Symbol("Schlechtenburg block tree register"),vn=Symbol("Schlechtenburg block tree unregister");function gn(){const t=Qe(hn,Xt(null)),e=Qe(_n,(t=>{})),n=Qe(vn,(t=>{})),o=Dt({id:"",name:"",icon:"",children:[]});Ge(_n,(t=>{o.children.find((e=>e.id===t.id))||(o.children=[...o.children,t])})),Ge(vn,(({id:t})=>{o.children=o.children.filter((e=>e.id!==t))}));return Re((()=>{o.id&&n(o)})),{blockTree:t,register:t=>{if(!t.id)throw new Error(`Cannot register a block without an id: ${JSON.stringify(t)}`);o.id=t.id,o.name=t.name,e(o)}}}const yn=Fe({name:"sb-button",inheritAttrs:!1,setup:(e,n)=>()=>{var e,o;return Le("button",t(t({},n.attrs),{class:(n.attrs.class||"")+" sb-button"}),[null==(o=(e=n.slots).default)?void 0:o.call(e)])}});const bn=Fe({name:"sb-context-menu",props:{onClose:{type:Function,default:()=>{}},onOpen:{type:Function,default:()=>{}}},setup(t,e){const n=Xt(!1),o=()=>{n.value=!0},r=()=>{n.value=!1},s=t=>{"Escape"===t.key&&r()},l=()=>{n.value?r():o()};return Oe(n,((e,n)=>{e!==n&&(e?setTimeout((()=>{document.body.addEventListener("click",r),document.body.addEventListener("keypress",s),t.onOpen()})):(document.body.removeEventListener("click",r),document.body.removeEventListener("keypress",s),t.onClose()))})),()=>{var t,s,i,c;return Le("div",{class:"sb-context"},[(null==(s=(t=e.slots).context)?void 0:s.call(t,{opened:n,toggle:l,close:r,open:o}))||Le(yn,{onClick:l},{default:()=>[Ke("Menu")]}),Le("dialog",He({class:"sb-context-menu",open:!!n.value||void 0,onClick:t=>{t.stopPropagation()}},{onClose:r}),[(null==(c=(i=e.slots).default)?void 0:c.call(i,{opened:n,toggle:l,close:r,open:o}))||null])])}}});const mn=Fe({name:"sb-main-menu",setup(){const{blockTree:t}=gn(),{activate:e,activeBlockId:n}=ln(),o=(t,r)=>{var s,l;return Le("li",{class:{"sb-tree-block-select__block":!0,"sb-tree-block-select__block_active":n.value===t.id}},[Le("button",{class:"sb-tree-block-select__block-name",onClick:()=>{e(t.id),r()},onMouseenter:()=>e(t.id)},[t.name]),(null==(s=t.children)?void 0:s.length)?Le("ul",{class:"sb-tree-block-select__list"},[null==(l=t.children)?void 0:l.map((t=>o(t,r)))]):null])};return()=>t.value?Le(bn,{class:"sb-tree-block-select"},{context:({toggle:t})=>Le(yn,{onClick:t},{default:()=>[Ke("Tree")]}),default:({close:e})=>Le("ul",{class:"sb-tree-block-select__list sb-tree-block-select__list_base"},[o(t.value,e)])}):""}});const wn=Fe({name:"sb-main-menu",props:{block:{type:null,required:!0}},setup:()=>()=>Le("div",{class:"sb-main-menu"},[Le(mn,null,null)])});const kn=Fe({name:"sb-block-toolbar",setup:()=>()=>Le("div",{class:"sb-block-toolbar"},null)});let Sn;const xn={},Rn=function(t,e){if(!e)return t();if(void 0===Sn){const t=document.createElement("link").relList;Sn=t&&t.supports&&t.supports("modulepreload")?"modulepreload":"preload"}return Promise.all(e.map((t=>{if(t in xn)return;xn[t]=!0;const e=t.endsWith(".css"),n=e?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${t}"]${n}`))return;const o=document.createElement("link");return o.rel=e?"stylesheet":Sn,e||(o.as="script",o.crossOrigin=""),o.href=t,document.head.appendChild(o),e?new Promise(((t,e)=>{o.addEventListener("load",t),o.addEventListener("error",e)})):void 0}))).then((()=>t()))};var Cn={name:"sb-missing-block",edit:Ie((()=>Rn((()=>__import__("./display.a0a80010.js")),["./assets/display.a0a80010.js","./assets/display.08a50fb3.css","./assets/vendor.9babb3f5.js"]))),display:Ie((()=>Rn((()=>__import__("./display.a0a80010.js")),["./assets/display.a0a80010.js","./assets/display.08a50fb3.css","./assets/vendor.9babb3f5.js"])))};const En=Fe({name:"sb-block",props:{block:{type:null,required:!0},sortable:{type:String,default:null},onUpdate:{type:Function,default:()=>{}},onPrependBlock:{type:Function,default:()=>{}},onAppendBlock:{type:Function,default:()=>{}},onRemoveSelf:{type:Function,default:()=>{}},onActivatePrevious:{type:Function,default:()=>{}},onActivateNext:{type:Function,default:()=>{}}},setup(e,n){const o=Xt(null),{mode:r,getBlock:s}=an(),{isActive:l,activate:i}=ln(e.block.id),c=rn((()=>({"sb-block":!0,"sb-block_active":l.value}))),{triggerSizeCalculation:a}=pn(o,un);Oe((()=>e.block.data),a);const{register:f}=gn();f(e.block),Oe(e.block,(()=>{f(e.block)}));const p=n=>{e.onUpdate(t(t({},e.block),{data:t(t({},e.block.data),n)}))};return()=>{var l;const a=null==(l=s(e.block.name))?void 0:l[r.value];if(!a){const t=Cn[r.value];return Le(t,{name:e.block.name,blockId:e.block.id},null)}return r.value===u.Display?Le(a,{data:e.block.data,blockId:e.block.id},null):Le("div",{ref:o,class:c.value},[Le("div",{class:"sb-block__edit-cover"},null),n.slots["context-toolbar"]?n.slots["context-toolbar"]():null,Le(a,He({data:e.block.data,blockId:e.block.id,onUpdate:p,onPrependBlock:e.onPrependBlock,onAppendBlock:e.onAppendBlock,onRemoveSelf:e.onRemoveSelf,onActivatePrevious:e.onActivatePrevious,onActivateNext:e.onActivateNext},t({"onClick:value":t=>{t.stopPropagation(),i()}},n.attrs)),null)])}}});const On=Fe({name:"sb-main",model:w,props:{customBlocks:{type:Array,default:()=>[]},block:{type:Object,required:!0},onUpdate:{type:Function,default:()=>{}},mode:{type:String,validator:t=>Object.values(u).includes(t),default:u.Edit}},setup(e){const n=Xt(null);pn(n,fn);const o=Xt(e.mode);Ge(p,o);const r=Xt(null);Ge(sn,r);const s=Xt(null);Ge(hn,s),Ge(_n,(t=>{s.value=t})),Ge(vn,(()=>{s.value=null}));const l=Wt(t({},e.customBlocks.reduce(((e,n)=>t(t({},e),{[n.name]:n})),{})),!1,gt,Tt);return Ge(cn,l),()=>Le("div",{class:"sb-main",ref:n},[o.value===u.Edit?Le(Te,null,[Le(wn,{block:e.block},null),Le(kn,null,null)]):null,Le(En,{block:e.block,onUpdate:e.onUpdate},null)])}});const jn=Fe({name:"sb-modal",props:{open:{type:Boolean,default:!1},onClose:{type:Function,default:()=>{}}},setup(t,e){const n=rn((()=>({"sb-modal":!0,"sb-modal_open":t.open})));return()=>{var o,r;return Le("div",{class:n.value},[Le("div",{class:"sb-modal__overlay",onClick:e=>{e.stopPropagation(),t.onClose()}},[Le("div",{class:"sb-modal__content"},[null==(r=(o=e.slots).default)?void 0:r.call(o)])])])}}});const $n=Fe({name:"sb-block-picker",props:{onPickedBlock:{type:Function,default:()=>{}}},setup(t){const e=Xt(!1),{customBlocks:n}=an(),o=rn((()=>Object.keys(n).map((t=>n[t]))));return()=>Le("div",{class:"sb-block-picker"},[Le(yn,He({class:"sb-block-picker__add-button"},{type:"button",onClick:t=>{e.value=!0,t.stopPropagation()}}),{default:()=>[Ke("+")]}),Le(jn,He({open:e.value,onClose:()=>{e.value=!1}},{onClick:t=>t.stopPropagation()}),{default:()=>[...o.value.map((n=>Le(yn,{type:"button",onClick:()=>(n=>()=>{e.value=!1,t.onPickedBlock({name:n.name,id:""+ +new Date,data:n.getDefaultData()})})(n)},{default:()=>[n.name]})))]})])}});var Pn="object"==typeof global&&global&&global.Object===Object&&global,Fn="object"==typeof self&&self&&self.Object===Object&&self,In=Pn||Fn||Function("return this")(),An=In.Symbol,Mn=Object.prototype,Nn=Mn.hasOwnProperty,Tn=Mn.toString,Un=An?An.toStringTag:void 0;var zn=Object.prototype.toString;var Bn=An?An.toStringTag:void 0;function Vn(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Bn&&Bn in Object(t)?function(t){var e=Nn.call(t,Un),n=t[Un];try{t[Un]=void 0;var o=!0}catch(s){}var r=Tn.call(t);return o&&(e?t[Un]=n:delete t[Un]),r}(t):function(t){return zn.call(t)}(t)}var Dn=/\s/;var Ln=/^\s+/;function Wn(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&Dn.test(t.charAt(e)););return e}(t)+1).replace(Ln,""):t}function Kn(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var Jn=/^[-+]0x[0-9a-f]+$/i,qn=/^0b[01]+$/i,Hn=/^0o[0-7]+$/i,Gn=parseInt;function Qn(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==Vn(t)}(t))return NaN;if(Kn(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Kn(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Wn(t);var n=qn.test(t);return n||Hn.test(t)?Gn(t.slice(2),n?2:8):Jn.test(t)?NaN:+t}var Xn=function(){return In.Date.now()},Yn=Math.max,Zn=Math.min;function to(t,e,n){var o,r,s,l,i,c,a=0,u=!1,f=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(e){var n=o,s=r;return o=r=void 0,a=e,l=t.apply(s,n)}function h(t){return a=t,i=setTimeout(v,e),u?d(t):l}function _(t){var n=t-c;return void 0===c||n>=e||n<0||f&&t-a>=s}function v(){var t=Xn();if(_(t))return g(t);i=setTimeout(v,function(t){var n=e-(t-c);return f?Zn(n,s-(t-a)):n}(t))}function g(t){return i=void 0,p&&o?d(t):(o=r=void 0,l)}function y(){var t=Xn(),n=_(t);if(o=arguments,r=this,c=t,n){if(void 0===i)return h(c);if(f)return clearTimeout(i),i=setTimeout(v,e),d(c)}return void 0===i&&(i=setTimeout(v,e)),l}return e=Qn(e)||0,Kn(n)&&(u=!!n.leading,s=(f="maxWait"in n)?Yn(Qn(n.maxWait)||0,e):s,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==i&&clearTimeout(i),a=0,o=c=r=i=void 0},y.flush=function(){return void 0===i?l:g(Xn())},y}const eo=Fe({name:"sb-block-ordering",props:{orientation:{type:String,default:null},onRemove:{type:Function,default:()=>{}},onMoveBackward:{type:Function,default:()=>{}},onMoveForward:{type:Function,default:()=>{}}},setup(t){const e=Dt({top:"",right:""}),n=rn((()=>({"sb-block-ordering":!0,[`sb-block-ordering_${t.orientation}`]:!!t.orientation}))),{editorDimensions:o,blockDimensions:r}=dn(),s=to((()=>{if(!o.value||!r.value)return;const t=o.value.width-r.value.left;e.top=`${r.value.top}px`,e.right=`${t}px`}));return Oe(o,s),Oe(r,s),Oe((()=>t.orientation),s),()=>Le("div",{class:n.value,style:e,onClick:t=>t.stopPropagation()},[Le(yn,{onClick:t.onMoveBackward},{default:()=>["vertical"===t.orientation?"↑":"←"]}),Le(yn,{onClick:t.onRemove},{default:()=>[Ke("x")]}),Le(yn,{onClick:t.onMoveForward},{default:()=>["vertical"===t.orientation?"↓":"→"]})])}});const no=Fe({name:"sb-block-placeholder",props:{onInsertBlock:{type:Function,default:()=>{}}},setup:t=>()=>Le("div",{class:"sb-block-placeholder"},[Le($n,{onPickedBlock:e=>t.onInsertBlock(e)},null)])});const oo=Fe({name:"sb-toolbar",setup(t,e){const n=Dt({bottom:"",left:"",maxWidth:""}),{editorDimensions:o,blockDimensions:r}=dn(),s=to((()=>{if(!o.value||!r.value)return;const t=o.value.height-r.value.top;n.bottom=`${t}px`,n.left=`${r.value.left}px`,n.maxWidth=`${r.value.width}px`}));return Oe(o,s),Oe(r,s),()=>{var t,o;return Le("div",{class:"sb-toolbar",style:n,onClick:t=>t.stopPropagation()},[null==(o=null==(t=e.slots)?void 0:t.default)?void 0:o.call(t)])}}});const ro=Fe({name:"sb-select",inheritAttrs:!1,setup:(t,e)=>()=>{var t,n;return Le("div",{class:"sb-select"},[Le("select",He({class:"sb-select__input"},e.attrs),[null==(n=(t=e.slots).default)?void 0:n.call(t)])])}});function so(t,e){const n=Object.create(null),o=t.split(",");for(let r=0;r!!n[t.toLowerCase()]:t=>!!n[t]}const lo=so("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl");function io(t){if(mo(t)){const e={};for(let n=0;n{if(t){const n=t.split(ao);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function fo(t){let e="";if(So(t))e=t;else if(mo(t))for(let n=0;n{},_o=/^on[^a-z]/,vo=t=>_o.test(t),go=Object.assign,yo=Object.prototype.hasOwnProperty,bo=(t,e)=>yo.call(t,e),mo=Array.isArray,wo=t=>"[object Map]"===Eo(t),ko=t=>"function"==typeof t,So=t=>"string"==typeof t,xo=t=>"symbol"==typeof t,Ro=t=>null!==t&&"object"==typeof t,Co=Object.prototype.toString,Eo=t=>Co.call(t),Oo=t=>So(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,jo=(t,e)=>t!==e&&(t==t||e==e),$o=new WeakMap,Po=[];let Fo;const Io=Symbol(""),Ao=Symbol("");function Mo(t,e=po){(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(!Po.includes(n)){To(n);try{return zo.push(Uo),Uo=!0,Po.push(n),Fo=n,t()}finally{Po.pop(),Bo(),Fo=Po[Po.length-1]}}};return n.id=No++,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 No=0;function To(t){const{deps:e}=t;if(e.length){for(let n=0;n{t&&t.forEach((t=>{(t!==Fo||t.allowRecurse)&&i.add(t)}))};if("clear"===e)l.forEach(c);else if("length"===n&&mo(t))l.forEach(((t,e)=>{("length"===e||e>=o)&&c(t)}));else switch(void 0!==n&&c(l.get(n)),e){case"add":mo(t)?Oo(n)&&c(l.get("length")):(c(l.get(Io)),wo(t)&&c(l.get(Ao)));break;case"delete":mo(t)||(c(l.get(Io)),wo(t)&&c(l.get(Ao)));break;case"set":wo(t)&&c(l.get(Io))}i.forEach((t=>{t.options.scheduler?t.options.scheduler(t):t()}))}const Lo=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(xo)),Wo=Go(),Ko=Go(!1,!0),Jo=Go(!0),qo=Go(!0,!0),Ho={};function Go(t=!1,e=!1){return function(n,o,r){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_raw"===o&&r===(t?mr:br).get(n))return n;const s=mo(n);if(!t&&s&&bo(Ho,o))return Reflect.get(Ho,o,r);const l=Reflect.get(n,o,r);if(xo(o)?Lo.has(o):"__proto__"===o||"__v_isRef"===o)return l;if(t||Vo(n,0,o),e)return l;if($r(l)){return!s||!Oo(o)?l.value:l}return Ro(l)?t?Sr(l):kr(l):l}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];Ho[t]=function(...t){const n=Or(this);for(let e=0,r=this.length;e{const e=Array.prototype[t];Ho[t]=function(...t){zo.push(Uo),Uo=!1;const n=e.apply(this,t);return Bo(),n}}));function Qo(t=!1){return function(e,n,o,r){const s=e[n];if(!t&&(o=Or(o),!mo(e)&&$r(s)&&!$r(o)))return s.value=o,!0;const l=mo(e)&&Oo(n)?Number(n)!0,deleteProperty:(t,e)=>!0};go({},Xo,{get:Ko,set:Qo(!0)}),go({},Yo,{get:qo});const Zo=t=>Ro(t)?kr(t):t,tr=t=>Ro(t)?Sr(t):t,er=t=>t,nr=t=>Reflect.getPrototypeOf(t);function or(t,e,n=!1,o=!1){const r=Or(t=t.__v_raw),s=Or(e);e!==s&&!n&&Vo(r,0,e),!n&&Vo(r,0,s);const{has:l}=nr(r),i=n?tr:o?er:Zo;return l.call(r,e)?i(t.get(e)):l.call(r,s)?i(t.get(s)):void 0}function rr(t,e=!1){const n=this.__v_raw,o=Or(n),r=Or(t);return t!==r&&!e&&Vo(o,0,t),!e&&Vo(o,0,r),t===r?n.has(t):n.has(t)||n.has(r)}function sr(t,e=!1){return t=t.__v_raw,!e&&Vo(Or(t),0,Io),Reflect.get(t,"size",t)}function lr(t){t=Or(t);const e=Or(this),n=nr(e).has.call(e,t);return e.add(t),n||Do(e,"add",t,t),this}function ir(t,e){e=Or(e);const n=Or(this),{has:o,get:r}=nr(n);let s=o.call(n,t);s||(t=Or(t),s=o.call(n,t));const l=r.call(n,t);return n.set(t,e),s?jo(e,l)&&Do(n,"set",t,e):Do(n,"add",t,e),this}function cr(t){const e=Or(this),{has:n,get:o}=nr(e);let r=n.call(e,t);r||(t=Or(t),r=n.call(e,t)),o&&o.call(e,t);const s=e.delete(t);return r&&Do(e,"delete",t,void 0),s}function ar(){const t=Or(this),e=0!==t.size,n=t.clear();return e&&Do(t,"clear",void 0,void 0),n}function ur(t,e){return function(n,o){const r=this,s=r.__v_raw,l=Or(s),i=t?tr:e?er:Zo;return!t&&Vo(l,0,Io),s.forEach(((t,e)=>n.call(o,i(t),i(e),r)))}}function fr(t,e,n){return function(...o){const r=this.__v_raw,s=Or(r),l=wo(s),i="entries"===t||t===Symbol.iterator&&l,c="keys"===t&&l,a=r[t](...o),u=e?tr:n?er:Zo;return!e&&Vo(s,0,c?Ao:Io),{next(){const{value:t,done:e}=a.next();return e?{value:t,done:e}:{value:i?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}}function pr(t){return function(...e){return"delete"!==t&&this}}const dr={get(t){return or(this,t)},get size(){return sr(this)},has:rr,add:lr,set:ir,delete:cr,clear:ar,forEach:ur(!1,!1)},hr={get(t){return or(this,t,!1,!0)},get size(){return sr(this)},has:rr,add:lr,set:ir,delete:cr,clear:ar,forEach:ur(!1,!0)},_r={get(t){return or(this,t,!0)},get size(){return sr(this,!0)},has(t){return rr.call(this,t,!0)},add:pr("add"),set:pr("set"),delete:pr("delete"),clear:pr("clear"),forEach:ur(!0,!1)};function vr(t,e){const n=e?hr:t?_r:dr;return(e,o,r)=>"__v_isReactive"===o?!t:"__v_isReadonly"===o?t:"__v_raw"===o?e:Reflect.get(bo(n,o)&&o in e?n:e,o,r)}["keys","values","entries",Symbol.iterator].forEach((t=>{dr[t]=fr(t,!1,!1),_r[t]=fr(t,!0,!1),hr[t]=fr(t,!1,!0)}));const gr={get:vr(!1,!1)},yr={get:vr(!0,!1)},br=new WeakMap,mr=new WeakMap;function wr(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=>Eo(t).slice(8,-1))(t))}function kr(t){return t&&t.__v_isReadonly?t:xr(t,!1,Xo,gr)}function Sr(t){return xr(t,!0,Yo,yr)}function xr(t,e,n,o){if(!Ro(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=e?mr:br,s=r.get(t);if(s)return s;const l=wr(t);if(0===l)return t;const i=new Proxy(t,2===l?o:n);return r.set(t,i),i}function Rr(t){return Cr(t)?Rr(t.__v_raw):!(!t||!t.__v_isReactive)}function Cr(t){return!(!t||!t.__v_isReadonly)}function Er(t){return Rr(t)||Cr(t)}function Or(t){return t&&Or(t.__v_raw)||t}const jr=t=>Ro(t)?kr(t):t;function $r(t){return Boolean(t&&!0===t.__v_isRef)}function Pr(t){return function(t,e=!1){if($r(t))return t;return new Fr(t,e)}(t)}class Fr{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:jr(t)}get value(){return Vo(Or(this),0,"value"),this._value}set value(t){jo(Or(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:jr(t),Do(Or(this),"set","value",t))}}class Ir{constructor(t,e,n){this._setter=e,this._dirty=!0,this.__v_isRef=!0,this.effect=Mo(t,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,Do(Or(this),"set","value"))}}),this.__v_isReadonly=n}get value(){return this._dirty&&(this._value=this.effect(),this._dirty=!1),Vo(Or(this),0,"value"),this._value}set value(t){this._setter(t)}}function Ar(t,e,n,o){let r;try{r=o?t(...o):t()}catch(s){Nr(s,e,n)}return r}function Mr(t,e,n,o){if(ko(t)){const s=Ar(t,e,n,o);return s&&(Ro(r=s)&&ko(r.then)&&ko(r.catch))&&s.catch((t=>{Nr(t,e,n)})),s}var r;const s=[];for(let l=0;lnull==t.id?1/0:t.id;function es(t){Ur=!1,Tr=!0,Zr(t),zr.sort(((t,e)=>ts(t)-ts(e)));try{for(Br=0;Brts(t)-ts(e))),Jr=0;Jros+=t;const ss={};function ls(t,e,n){return is(t,e,n)}function is(t,e,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:l}=po,i=Ps){let c,a,u=!1;if($r(t)?(c=()=>t.value,u=!!t._shallow):Rr(t)?(c=()=>t,o=!0):c=mo(t)?()=>t.map((t=>$r(t)?t.value:Rr(t)?as(t):ko(t)?Ar(t,i,2):void 0)):ko(t)?e?()=>Ar(t,i,2):()=>{if(!i||!i.isUnmounted)return a&&a(),Ar(t,i,3,[f])}:ho,e&&o){const t=c;c=()=>as(t())}const f=t=>{a=_.options.onStop=()=>{Ar(t,i,4)}};let p=mo(t)?[]:ss;const d=()=>{if(_.active)if(e){const t=_();(o||u||jo(t,p))&&(a&&a(),Mr(e,i,3,[t,p===ss?void 0:p,f]),p=t)}else _()};let h;d.allowRecurse=!!e,h="sync"===r?d:"post"===r?()=>ds(d,i&&i.suspense):()=>{!i||i.isMounted?function(t){Yr(t,Dr,Vr,Lr)}(d):d()};const _=Mo(c,{lazy:!0,onTrack:s,onTrigger:l,scheduler:h});return Fs(_,i),e?n?d():p=_():"post"===r?ds(_,i&&i.suspense):_(),()=>{var t;(t=_).active&&(To(t),t.options.onStop&&t.options.onStop(),t.active=!1),i&&((t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)})(i.effects,_)}}function cs(t,e,n){const o=this.proxy;return is(So(t)?()=>o[t]:t.bind(o),e.bind(o),n,this)}function as(t,e=new Set){if(!Ro(t)||e.has(t))return t;if(e.add(t),$r(t))as(t.value,e);else if(mo(t))for(let n=0;n{as(t,e)}));else for(const n in t)as(t[n],e);return t}function us(t){return ko(t)?{setup:t,name:t.name}:t}function fs(t){ko(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:l=!0,onError:i}=t;let c,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)),i)return new Promise(((e,n)=>{i(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),c=e,e))))};return us({__asyncLoader:f,name:"AsyncComponentWrapper",setup(){const t=Ps;if(c)return()=>ps(c,t);const e=e=>{a=null,Nr(e,t,13,!o)};if(l&&t.suspense)return f().then((e=>()=>ps(e,t))).catch((t=>(e(t),()=>o?ws(o,{error:t}):null)));const i=Pr(!1),u=Pr(),p=Pr(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!i.value&&!u.value){const t=new Error(`Async component timed out after ${s}ms.`);e(t),u.value=t}}),s),f().then((()=>{i.value=!0})).catch((t=>{e(t),u.value=t})),()=>i.value&&c?ps(c,t):u.value&&o?ws(o,{error:u.value}):n&&!p.value?ws(n):void 0}})}function ps(t,{vnode:{ref:e,props:n,children:o}}){const r=ws(t,n,o);return r.ref=e,r}const ds=function(t,e){e&&e.pendingBranch?mo(t)?e.effects.push(...t):e.effects.push(t):Yr(t,Kr,Wr,Jr)},hs=Symbol(),_s=Symbol(void 0),vs=Symbol(void 0),gs=Symbol(void 0);function ys(t){return!!t&&!0===t.__v_isVNode}const bs=({key:t})=>null!=t?t:null,ms=({ref:t})=>null!=t?So(t)||$r(t)||ko(t)?{i:null,r:t}:t:null,ws=function(t,e=null,n=null,o=0,r=null,s=!1){t&&t!==hs||(t=gs);if(ys(t)){const o=ks(t,e,!0);return n&&Rs(o,n),o}l=t,ko(l)&&"__vccOpts"in l&&(t=t.__vccOpts);var l;if(e){(Er(e)||"__vInternal"in e)&&(e=go({},e));let{class:t,style:n}=e;t&&!So(t)&&(e.class=fo(t)),Ro(n)&&(Er(n)&&!mo(n)&&(n=go({},n)),e.style=io(n))}const i=So(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:Ro(t)?4:ko(t)?2:0,c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&bs(e),ref:e&&ms(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:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};if(Rs(c,n),128&i){const{content:t,fallback:e}=function(t){const{shapeFlag:e,children:n}=t;let o,r;return 32&e?(o=ns(n.default),r=ns(n.fallback)):(o=ns(n),r=xs(null)),{content:o,fallback:r}}(c);c.ssContent=t,c.ssFallback=e}0;return c};function ks(t,e,n=!1){const{props:o,ref:r,patchFlag:s}=t,l=e?Cs(o||{},e):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&bs(l),ref:e&&e.ref?n&&r?mo(r)?r.concat(ms(e)):[r,ms(e)]:ms(e):r,scopeId:t.scopeId,children:t.children,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==_s?-1===s?16:16|s:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ks(t.ssContent),ssFallback:t.ssFallback&&ks(t.ssFallback),el:t.el,anchor:t.anchor}}function Ss(t=" ",e=0){return ws(vs,null,t,e)}function xs(t){return null==t||"boolean"==typeof t?ws(gs):mo(t)?ws(_s,null,t):"object"==typeof t?null===t.el?t:ks(t):ws(vs,null,String(t))}function Rs(t,e){let n=0;const{shapeFlag:o}=t;if(null==e)e=null;else if(mo(e))n=16;else if("object"==typeof e){if(1&o||64&o){const n=e.default;return void(n&&(n._c&&rs(1),Rs(t,n()),n._c&&rs(-1)))}{n=32;const t=e._;t||"__vInternal"in e||(e._ctx=null)}}else ko(e)?(e={default:e,_ctx:null},n=32):(e=String(e),64&o?(n=16,e=[Ss(e)]):n=8);t.children=e,t.shapeFlag|=n}function Cs(...t){const e=go({},t[0]);for(let n=1;nEs(t,e,n)));for(const l in e)o&&bo(o,l)?t[l]=o[l](t[l],e[l],n.proxy,l):t[l]=e[l]}const Os=t=>t&&(t.proxy?t.proxy:Os(t.parent)),js=go(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=>Os(t.parent),$root:t=>t.root&&t.root.proxy,$emit:t=>t.emit,$options:t=>function(t){const e=t.type,{__merged:n,mixins:o,extends:r}=e;if(n)return n;const s=t.appContext.mixins;if(!s.length&&!o&&!r)return e;const l={};return s.forEach((e=>Es(l,e,t))),Es(l,e,t),e.__merged=l}(t),$forceUpdate:t=>()=>{return e=t.update,void(zr.length&&zr.includes(e,Tr&&e.allowRecurse?Br+1:Br)||e===Gr||(zr.push(e),Xr()));var e},$nextTick:t=>Qr.bind(t.proxy),$watch:t=>cs.bind(t)}),$s={get({_:t},e){const{ctx:n,setupState:o,data:r,props:s,accessCache:l,type:i,appContext:c}=t;if("__v_skip"===e)return!0;let a;if("$"!==e[0]){const i=l[e];if(void 0!==i)switch(i){case 0:return o[e];case 1:return r[e];case 3:return n[e];case 2:return s[e]}else{if(o!==po&&bo(o,e))return l[e]=0,o[e];if(r!==po&&bo(r,e))return l[e]=1,r[e];if((a=t.propsOptions[0])&&bo(a,e))return l[e]=2,s[e];if(n!==po&&bo(n,e))return l[e]=3,n[e];l[e]=4}}const u=js[e];let f,p;return u?("$attrs"===e&&Vo(t,0,e),u(t)):(f=i.__cssModules)&&(f=f[e])?f:n!==po&&bo(n,e)?(l[e]=3,n[e]):(p=c.config.globalProperties,bo(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:o,setupState:r,ctx:s}=t;if(r!==po&&bo(r,e))r[e]=n;else if(o!==po&&bo(o,e))o[e]=n;else if(e in t.props)return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:o,appContext:r,propsOptions:s}},l){let i;return void 0!==n[l]||t!==po&&bo(t,l)||e!==po&&bo(e,l)||(i=s[0])&&bo(i,l)||bo(o,l)||bo(js,l)||bo(r.config.globalProperties,l)}};go({},$s,{get(t,e){if(e!==Symbol.unscopables)return $s.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!lo(e)});let Ps=null;function Fs(t,e=Ps){e&&(e.effects||(e.effects=[])).push(t)}function Is(t){const e=function(t){let e,n;return ko(t)?(e=t,n=ho):(e=t.get,n=t.set),new Ir(e,n,ko(t)||!t.set)}(t);return Fs(e.effect),e}const As=()=>({orientation:"vertical",children:[]});var Ms={name:"sb-layout",getDefaultData:As,edit:fs((()=>Rn((()=>__import__("./edit.680bd77a.js")),["./assets/edit.680bd77a.js","./assets/style.b876754e.css","./assets/vendor.9babb3f5.js"]))),display:fs((()=>Rn((()=>__import__("./display.67d272a4.js")),["./assets/display.67d272a4.js","./assets/style.b876754e.css","./assets/vendor.9babb3f5.js"])))};var Ns={name:"sb-heading",getDefaultData:()=>({}),edit:e((()=>Rn((()=>__import__("./edit.bd5075df.js")),void 0))),display:e((()=>Rn((()=>__import__("./edit.bd5075df.js")),void 0)))};function Ts(t,e){const n=Object.create(null),o=t.split(",");for(let r=0;r!!n[t.toLowerCase()]:t=>!!n[t]}const Us=Ts("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl");function zs(t){if(Xs(t)){const e={};for(let n=0;n{if(t){const n=t.split(Vs);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function Ls(t){let e="";if(tl(t))e=t;else if(Xs(t))for(let n=0;n{},Js=/^on[^a-z]/,qs=t=>Js.test(t),Hs=Object.assign,Gs=Object.prototype.hasOwnProperty,Qs=(t,e)=>Gs.call(t,e),Xs=Array.isArray,Ys=t=>"[object Map]"===rl(t),Zs=t=>"function"==typeof t,tl=t=>"string"==typeof t,el=t=>"symbol"==typeof t,nl=t=>null!==t&&"object"==typeof t,ol=Object.prototype.toString,rl=t=>ol.call(t),sl=t=>tl(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,ll=(t,e)=>t!==e&&(t==t||e==e),il=new WeakMap,cl=[];let al;const ul=Symbol(""),fl=Symbol("");function pl(t,e=Ws){(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(!cl.includes(n)){hl(n);try{return vl.push(_l),_l=!0,cl.push(n),al=n,t()}finally{cl.pop(),yl(),al=cl[cl.length-1]}}};return n.id=dl++,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 dl=0;function hl(t){const{deps:e}=t;if(e.length){for(let n=0;n{t&&t.forEach((t=>{(t!==al||t.allowRecurse)&&i.add(t)}))};if("clear"===e)l.forEach(c);else if("length"===n&&Xs(t))l.forEach(((t,e)=>{("length"===e||e>=o)&&c(t)}));else switch(void 0!==n&&c(l.get(n)),e){case"add":Xs(t)?sl(n)&&c(l.get("length")):(c(l.get(ul)),Ys(t)&&c(l.get(fl)));break;case"delete":Xs(t)||(c(l.get(ul)),Ys(t)&&c(l.get(fl)));break;case"set":Ys(t)&&c(l.get(ul))}i.forEach((t=>{t.options.scheduler?t.options.scheduler(t):t()}))}const wl=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(el)),kl=El(),Sl=El(!1,!0),xl=El(!0),Rl=El(!0,!0),Cl={};function El(t=!1,e=!1){return function(n,o,r){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_raw"===o&&r===(t?Yl:Xl).get(n))return n;const s=Xs(n);if(!t&&s&&Qs(Cl,o))return Reflect.get(Cl,o,r);const l=Reflect.get(n,o,r);if(el(o)?wl.has(o):"__proto__"===o||"__v_isRef"===o)return l;if(t||bl(n,0,o),e)return l;if(ci(l)){return!s||!sl(o)?l.value:l}return nl(l)?t?ei(l):ti(l):l}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];Cl[t]=function(...t){const n=li(this);for(let e=0,r=this.length;e{const e=Array.prototype[t];Cl[t]=function(...t){gl();const n=e.apply(this,t);return yl(),n}}));function Ol(t=!1){return function(e,n,o,r){const s=e[n];if(!t&&(o=li(o),!Xs(e)&&ci(s)&&!ci(o)))return s.value=o,!0;const l=Xs(e)&&sl(n)?Number(n)!0,deleteProperty:(t,e)=>!0};Hs({},jl,{get:Sl,set:Ol(!0)}),Hs({},$l,{get:Rl});const Pl=t=>nl(t)?ti(t):t,Fl=t=>nl(t)?ei(t):t,Il=t=>t,Al=t=>Reflect.getPrototypeOf(t);function Ml(t,e,n=!1,o=!1){const r=li(t=t.__v_raw),s=li(e);e!==s&&!n&&bl(r,0,e),!n&&bl(r,0,s);const{has:l}=Al(r),i=n?Fl:o?Il:Pl;return l.call(r,e)?i(t.get(e)):l.call(r,s)?i(t.get(s)):void 0}function Nl(t,e=!1){const n=this.__v_raw,o=li(n),r=li(t);return t!==r&&!e&&bl(o,0,t),!e&&bl(o,0,r),t===r?n.has(t):n.has(t)||n.has(r)}function Tl(t,e=!1){return t=t.__v_raw,!e&&bl(li(t),0,ul),Reflect.get(t,"size",t)}function Ul(t){t=li(t);const e=li(this),n=Al(e).has.call(e,t);return e.add(t),n||ml(e,"add",t,t),this}function zl(t,e){e=li(e);const n=li(this),{has:o,get:r}=Al(n);let s=o.call(n,t);s||(t=li(t),s=o.call(n,t));const l=r.call(n,t);return n.set(t,e),s?ll(e,l)&&ml(n,"set",t,e):ml(n,"add",t,e),this}function Bl(t){const e=li(this),{has:n,get:o}=Al(e);let r=n.call(e,t);r||(t=li(t),r=n.call(e,t)),o&&o.call(e,t);const s=e.delete(t);return r&&ml(e,"delete",t,void 0),s}function Vl(){const t=li(this),e=0!==t.size,n=t.clear();return e&&ml(t,"clear",void 0,void 0),n}function Dl(t,e){return function(n,o){const r=this,s=r.__v_raw,l=li(s),i=t?Fl:e?Il:Pl;return!t&&bl(l,0,ul),s.forEach(((t,e)=>n.call(o,i(t),i(e),r)))}}function Ll(t,e,n){return function(...o){const r=this.__v_raw,s=li(r),l=Ys(s),i="entries"===t||t===Symbol.iterator&&l,c="keys"===t&&l,a=r[t](...o),u=e?Fl:n?Il:Pl;return!e&&bl(s,0,c?fl:ul),{next(){const{value:t,done:e}=a.next();return e?{value:t,done:e}:{value:i?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}}function Wl(t){return function(...e){return"delete"!==t&&this}}const Kl={get(t){return Ml(this,t)},get size(){return Tl(this)},has:Nl,add:Ul,set:zl,delete:Bl,clear:Vl,forEach:Dl(!1,!1)},Jl={get(t){return Ml(this,t,!1,!0)},get size(){return Tl(this)},has:Nl,add:Ul,set:zl,delete:Bl,clear:Vl,forEach:Dl(!1,!0)},ql={get(t){return Ml(this,t,!0)},get size(){return Tl(this,!0)},has(t){return Nl.call(this,t,!0)},add:Wl("add"),set:Wl("set"),delete:Wl("delete"),clear:Wl("clear"),forEach:Dl(!0,!1)};function Hl(t,e){const n=e?Jl:t?ql:Kl;return(e,o,r)=>"__v_isReactive"===o?!t:"__v_isReadonly"===o?t:"__v_raw"===o?e:Reflect.get(Qs(n,o)&&o in e?n:e,o,r)}["keys","values","entries",Symbol.iterator].forEach((t=>{Kl[t]=Ll(t,!1,!1),ql[t]=Ll(t,!0,!1),Jl[t]=Ll(t,!1,!0)}));const Gl={get:Hl(!1,!1)},Ql={get:Hl(!0,!1)},Xl=new WeakMap,Yl=new WeakMap;function Zl(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=>rl(t).slice(8,-1))(t))}function ti(t){return t&&t.__v_isReadonly?t:ni(t,!1,jl,Gl)}function ei(t){return ni(t,!0,$l,Ql)}function ni(t,e,n,o){if(!nl(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=e?Yl:Xl,s=r.get(t);if(s)return s;const l=Zl(t);if(0===l)return t;const i=new Proxy(t,2===l?o:n);return r.set(t,i),i}function oi(t){return ri(t)?oi(t.__v_raw):!(!t||!t.__v_isReactive)}function ri(t){return!(!t||!t.__v_isReadonly)}function si(t){return oi(t)||ri(t)}function li(t){return t&&li(t.__v_raw)||t}const ii=t=>nl(t)?ti(t):t;function ci(t){return Boolean(t&&!0===t.__v_isRef)}function ai(t){return function(t,e=!1){if(ci(t))return t;return new ui(t,e)}(t)}class ui{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:ii(t)}get value(){return bl(li(this),0,"value"),this._value}set value(t){ll(li(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:ii(t),ml(li(this),"set","value",t))}}class fi{constructor(t,e,n){this._setter=e,this._dirty=!0,this.__v_isRef=!0,this.effect=pl(t,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,ml(li(this),"set","value"))}}),this.__v_isReadonly=n}get value(){return this._dirty&&(this._value=this.effect(),this._dirty=!1),bl(li(this),0,"value"),this._value}set value(t){this._setter(t)}}function pi(t,e,n,o){let r;try{r=o?t(...o):t()}catch(s){hi(s,e,n)}return r}function di(t,e,n,o){if(Zs(t)){const s=pi(t,e,n,o);return s&&(nl(r=s)&&Zs(r.then)&&Zs(r.catch))&&s.catch((t=>{hi(t,e,n)})),s}var r;const s=[];for(let l=0;lnull==t.id?1/0:t.id;function Ii(t){vi=!1,_i=!0,Pi(t),gi.sort(((t,e)=>Fi(t)-Fi(e)));try{for(yi=0;yiFi(t)-Fi(e))),xi=0;xiMi+=t;const Ti=(t=>(e,n=uc)=>function(t,e,n=uc,o=!1){if(n){const r=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;gl(),fc(n);const r=di(e,n,t,o);return fc(null),yl(),r});return o?r.unshift(s):r.push(s),s}}(t,e,n))("m"),Ui={};function zi(t,e,n){return Bi(t,e,n)}function Bi(t,e,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:l}=Ws,i=uc){let c,a,u=!1;if(ci(t)?(c=()=>t.value,u=!!t._shallow):oi(t)?(c=()=>t,o=!0):c=Xs(t)?()=>t.map((t=>ci(t)?t.value:oi(t)?Di(t):Zs(t)?pi(t,i,2):void 0)):Zs(t)?e?()=>pi(t,i,2):()=>{if(!i||!i.isUnmounted)return a&&a(),pi(t,i,3,[f])}:Ks,e&&o){const t=c;c=()=>Di(t())}const f=t=>{a=_.options.onStop=()=>{pi(t,i,4)}};let p=Xs(t)?[]:Ui;const d=()=>{if(_.active)if(e){const t=_();(o||u||ll(t,p))&&(a&&a(),di(e,i,3,[t,p===Ui?void 0:p,f]),p=t)}else _()};let h;d.allowRecurse=!!e,h="sync"===r?d:"post"===r?()=>Ji(d,i&&i.suspense):()=>{!i||i.isMounted?function(t){$i(t,mi,bi,wi)}(d):d()};const _=pl(c,{lazy:!0,onTrack:s,onTrigger:l,scheduler:h});return pc(_,i),e?n?d():p=_():"post"===r?Ji(_,i&&i.suspense):_(),()=>{var t;(t=_).active&&(hl(t),t.options.onStop&&t.options.onStop(),t.active=!1),i&&((t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)})(i.effects,_)}}function Vi(t,e,n){const o=this.proxy;return Bi(tl(t)?()=>o[t]:t.bind(o),e.bind(o),n,this)}function Di(t,e=new Set){if(!nl(t)||e.has(t))return t;if(e.add(t),ci(t))Di(t.value,e);else if(Xs(t))for(let n=0;n{Di(t,e)}));else for(const n in t)Di(t[n],e);return t}function Li(t){return Zs(t)?{setup:t,name:t.name}:t}function Wi(t){Zs(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:l=!0,onError:i}=t;let c,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)),i)return new Promise(((e,n)=>{i(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),c=e,e))))};return Li({__asyncLoader:f,name:"AsyncComponentWrapper",setup(){const t=uc;if(c)return()=>Ki(c,t);const e=e=>{a=null,hi(e,t,13,!o)};if(l&&t.suspense)return f().then((e=>()=>Ki(e,t))).catch((t=>(e(t),()=>o?tc(o,{error:t}):null)));const i=ai(!1),u=ai(),p=ai(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!i.value&&!u.value){const t=new Error(`Async component timed out after ${s}ms.`);e(t),u.value=t}}),s),f().then((()=>{i.value=!0})).catch((t=>{e(t),u.value=t})),()=>i.value&&c?Ki(c,t):u.value&&o?tc(o,{error:u.value}):n&&!p.value?tc(n):void 0}})}function Ki(t,{vnode:{ref:e,props:n,children:o}}){const r=tc(t,n,o);return r.ref=e,r}const Ji=function(t,e){e&&e.pendingBranch?Xs(t)?e.effects.push(...t):e.effects.push(t):$i(t,Si,ki,xi)},qi=Symbol(),Hi=Symbol(void 0),Gi=Symbol(void 0),Qi=Symbol(void 0);function Xi(t){return!!t&&!0===t.__v_isVNode}const Yi=({key:t})=>null!=t?t:null,Zi=({ref:t})=>null!=t?tl(t)||ci(t)||Zs(t)?{i:null,r:t}:t:null,tc=function(t,e=null,n=null,o=0,r=null,s=!1){t&&t!==qi||(t=Qi);if(Xi(t)){const o=ec(t,e,!0);return n&&rc(o,n),o}l=t,Zs(l)&&"__vccOpts"in l&&(t=t.__vccOpts);var l;if(e){(si(e)||"__vInternal"in e)&&(e=Hs({},e));let{class:t,style:n}=e;t&&!tl(t)&&(e.class=Ls(t)),nl(n)&&(si(n)&&!Xs(n)&&(n=Hs({},n)),e.style=zs(n))}const i=tl(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:nl(t)?4:Zs(t)?2:0,c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Yi(e),ref:e&&Zi(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:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};if(rc(c,n),128&i){const{content:t,fallback:e}=function(t){const{shapeFlag:e,children:n}=t;let o,r;return 32&e?(o=Ai(n.default),r=Ai(n.fallback)):(o=Ai(n),r=oc(null)),{content:o,fallback:r}}(c);c.ssContent=t,c.ssFallback=e}0;return c};function ec(t,e,n=!1){const{props:o,ref:r,patchFlag:s}=t,l=e?sc(o||{},e):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&Yi(l),ref:e&&e.ref?n&&r?Xs(r)?r.concat(Zi(e)):[r,Zi(e)]:Zi(e):r,scopeId:t.scopeId,children:t.children,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Hi?-1===s?16:16|s:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ec(t.ssContent),ssFallback:t.ssFallback&&ec(t.ssFallback),el:t.el,anchor:t.anchor}}function nc(t=" ",e=0){return tc(Gi,null,t,e)}function oc(t){return null==t||"boolean"==typeof t?tc(Qi):Xs(t)?tc(Hi,null,t):"object"==typeof t?null===t.el?t:ec(t):tc(Gi,null,String(t))}function rc(t,e){let n=0;const{shapeFlag:o}=t;if(null==e)e=null;else if(Xs(e))n=16;else if("object"==typeof e){if(1&o||64&o){const n=e.default;return void(n&&(n._c&&Ni(1),rc(t,n()),n._c&&Ni(-1)))}{n=32;const t=e._;t||"__vInternal"in e||(e._ctx=null)}}else Zs(e)?(e={default:e,_ctx:null},n=32):(e=String(e),64&o?(n=16,e=[nc(e)]):n=8);t.children=e,t.shapeFlag|=n}function sc(...t){const e=Hs({},t[0]);for(let n=1;nlc(t,e,n)));for(const l in e)o&&Qs(o,l)?t[l]=o[l](t[l],e[l],n.proxy,l):t[l]=e[l]}const ic=t=>t&&(t.proxy?t.proxy:ic(t.parent)),cc=Hs(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=>ic(t.parent),$root:t=>t.root&&t.root.proxy,$emit:t=>t.emit,$options:t=>function(t){const e=t.type,{__merged:n,mixins:o,extends:r}=e;if(n)return n;const s=t.appContext.mixins;if(!s.length&&!o&&!r)return e;const l={};return s.forEach((e=>lc(l,e,t))),lc(l,e,t),e.__merged=l}(t),$forceUpdate:t=>()=>{return e=t.update,void(gi.length&&gi.includes(e,_i&&e.allowRecurse?yi+1:yi)||e===Ei||(gi.push(e),ji()));var e},$nextTick:t=>Oi.bind(t.proxy),$watch:t=>Vi.bind(t)}),ac={get({_:t},e){const{ctx:n,setupState:o,data:r,props:s,accessCache:l,type:i,appContext:c}=t;if("__v_skip"===e)return!0;let a;if("$"!==e[0]){const i=l[e];if(void 0!==i)switch(i){case 0:return o[e];case 1:return r[e];case 3:return n[e];case 2:return s[e]}else{if(o!==Ws&&Qs(o,e))return l[e]=0,o[e];if(r!==Ws&&Qs(r,e))return l[e]=1,r[e];if((a=t.propsOptions[0])&&Qs(a,e))return l[e]=2,s[e];if(n!==Ws&&Qs(n,e))return l[e]=3,n[e];l[e]=4}}const u=cc[e];let f,p;return u?("$attrs"===e&&bl(t,0,e),u(t)):(f=i.__cssModules)&&(f=f[e])?f:n!==Ws&&Qs(n,e)?(l[e]=3,n[e]):(p=c.config.globalProperties,Qs(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:o,setupState:r,ctx:s}=t;if(r!==Ws&&Qs(r,e))r[e]=n;else if(o!==Ws&&Qs(o,e))o[e]=n;else if(e in t.props)return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:o,appContext:r,propsOptions:s}},l){let i;return void 0!==n[l]||t!==Ws&&Qs(t,l)||e!==Ws&&Qs(e,l)||(i=s[0])&&Qs(i,l)||Qs(o,l)||Qs(cc,l)||Qs(r.config.globalProperties,l)}};Hs({},ac,{get(t,e){if(e!==Symbol.unscopables)return ac.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!Us(e)});let uc=null;const fc=t=>{uc=t};function pc(t,e=uc){e&&(e.effects||(e.effects=[])).push(t)}function dc(t){const e=function(t){let e,n;return Zs(t)?(e=t,n=Ks):(e=t.get,n=t.set),new fi(e,n,Zs(t)||!t.set)}(t);return pc(e.effect),e}const hc=()=>({value:"",align:"left"});var _c={name:"sb-paragraph",getDefaultData:hc,edit:Wi((()=>Rn((()=>__import__("./edit.2b327d35.js")),["./assets/edit.2b327d35.js","./assets/style.3e24e605.css","./assets/vendor.9babb3f5.js"]))),display:Wi((()=>Rn((()=>__import__("./display.59646631.js")),["./assets/display.59646631.js","./assets/style.3e24e605.css","./assets/vendor.9babb3f5.js"])))};function vc(t,e){const n=Object.create(null),o=t.split(",");for(let r=0;r!!n[t.toLowerCase()]:t=>!!n[t]}const gc=vc("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl");function yc(t){if($c(t)){const e={};for(let n=0;n{if(t){const n=t.split(mc);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function kc(t){let e="";if(Ic(t))e=t;else if($c(t))for(let n=0;n{},Rc=/^on[^a-z]/,Cc=t=>Rc.test(t),Ec=Object.assign,Oc=Object.prototype.hasOwnProperty,jc=(t,e)=>Oc.call(t,e),$c=Array.isArray,Pc=t=>"[object Map]"===Tc(t),Fc=t=>"function"==typeof t,Ic=t=>"string"==typeof t,Ac=t=>"symbol"==typeof t,Mc=t=>null!==t&&"object"==typeof t,Nc=Object.prototype.toString,Tc=t=>Nc.call(t),Uc=t=>Ic(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,zc=(t,e)=>t!==e&&(t==t||e==e),Bc=new WeakMap,Vc=[];let Dc;const Lc=Symbol(""),Wc=Symbol("");function Kc(t,e=Sc){(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(!Vc.includes(n)){qc(n);try{return Gc.push(Hc),Hc=!0,Vc.push(n),Dc=n,t()}finally{Vc.pop(),Qc(),Dc=Vc[Vc.length-1]}}};return n.id=Jc++,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 Jc=0;function qc(t){const{deps:e}=t;if(e.length){for(let n=0;n{t&&t.forEach((t=>{(t!==Dc||t.allowRecurse)&&i.add(t)}))};if("clear"===e)l.forEach(c);else if("length"===n&&$c(t))l.forEach(((t,e)=>{("length"===e||e>=o)&&c(t)}));else switch(void 0!==n&&c(l.get(n)),e){case"add":$c(t)?Uc(n)&&c(l.get("length")):(c(l.get(Lc)),Pc(t)&&c(l.get(Wc)));break;case"delete":$c(t)||(c(l.get(Lc)),Pc(t)&&c(l.get(Wc)));break;case"set":Pc(t)&&c(l.get(Lc))}i.forEach((t=>{t.options.scheduler?t.options.scheduler(t):t()}))}const Zc=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(Ac)),ta=sa(),ea=sa(!1,!0),na=sa(!0),oa=sa(!0,!0),ra={};function sa(t=!1,e=!1){return function(n,o,r){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_raw"===o&&r===(t?$a:ja).get(n))return n;const s=$c(n);if(!t&&s&&jc(ra,o))return Reflect.get(ra,o,r);const l=Reflect.get(n,o,r);if(Ac(o)?Zc.has(o):"__proto__"===o||"__v_isRef"===o)return l;if(t||Xc(n,0,o),e)return l;if(Ba(l)){return!s||!Uc(o)?l.value:l}return Mc(l)?t?Ia(l):Fa(l):l}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];ra[t]=function(...t){const n=Ua(this);for(let e=0,r=this.length;e{const e=Array.prototype[t];ra[t]=function(...t){Gc.push(Hc),Hc=!1;const n=e.apply(this,t);return Qc(),n}}));function la(t=!1){return function(e,n,o,r){const s=e[n];if(!t&&(o=Ua(o),!$c(e)&&Ba(s)&&!Ba(o)))return s.value=o,!0;const l=$c(e)&&Uc(n)?Number(n)!0,deleteProperty:(t,e)=>!0};Ec({},ia,{get:ea,set:la(!0)}),Ec({},ca,{get:oa});const aa=t=>Mc(t)?Fa(t):t,ua=t=>Mc(t)?Ia(t):t,fa=t=>t,pa=t=>Reflect.getPrototypeOf(t);function da(t,e,n=!1,o=!1){const r=Ua(t=t.__v_raw),s=Ua(e);e!==s&&!n&&Xc(r,0,e),!n&&Xc(r,0,s);const{has:l}=pa(r),i=n?ua:o?fa:aa;return l.call(r,e)?i(t.get(e)):l.call(r,s)?i(t.get(s)):void 0}function ha(t,e=!1){const n=this.__v_raw,o=Ua(n),r=Ua(t);return t!==r&&!e&&Xc(o,0,t),!e&&Xc(o,0,r),t===r?n.has(t):n.has(t)||n.has(r)}function _a(t,e=!1){return t=t.__v_raw,!e&&Xc(Ua(t),0,Lc),Reflect.get(t,"size",t)}function va(t){t=Ua(t);const e=Ua(this),n=pa(e).has.call(e,t);return e.add(t),n||Yc(e,"add",t,t),this}function ga(t,e){e=Ua(e);const n=Ua(this),{has:o,get:r}=pa(n);let s=o.call(n,t);s||(t=Ua(t),s=o.call(n,t));const l=r.call(n,t);return n.set(t,e),s?zc(e,l)&&Yc(n,"set",t,e):Yc(n,"add",t,e),this}function ya(t){const e=Ua(this),{has:n,get:o}=pa(e);let r=n.call(e,t);r||(t=Ua(t),r=n.call(e,t)),o&&o.call(e,t);const s=e.delete(t);return r&&Yc(e,"delete",t,void 0),s}function ba(){const t=Ua(this),e=0!==t.size,n=t.clear();return e&&Yc(t,"clear",void 0,void 0),n}function ma(t,e){return function(n,o){const r=this,s=r.__v_raw,l=Ua(s),i=t?ua:e?fa:aa;return!t&&Xc(l,0,Lc),s.forEach(((t,e)=>n.call(o,i(t),i(e),r)))}}function wa(t,e,n){return function(...o){const r=this.__v_raw,s=Ua(r),l=Pc(s),i="entries"===t||t===Symbol.iterator&&l,c="keys"===t&&l,a=r[t](...o),u=e?ua:n?fa:aa;return!e&&Xc(s,0,c?Wc:Lc),{next(){const{value:t,done:e}=a.next();return e?{value:t,done:e}:{value:i?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}}function ka(t){return function(...e){return"delete"!==t&&this}}const Sa={get(t){return da(this,t)},get size(){return _a(this)},has:ha,add:va,set:ga,delete:ya,clear:ba,forEach:ma(!1,!1)},xa={get(t){return da(this,t,!1,!0)},get size(){return _a(this)},has:ha,add:va,set:ga,delete:ya,clear:ba,forEach:ma(!1,!0)},Ra={get(t){return da(this,t,!0)},get size(){return _a(this,!0)},has(t){return ha.call(this,t,!0)},add:ka("add"),set:ka("set"),delete:ka("delete"),clear:ka("clear"),forEach:ma(!0,!1)};function Ca(t,e){const n=e?xa:t?Ra:Sa;return(e,o,r)=>"__v_isReactive"===o?!t:"__v_isReadonly"===o?t:"__v_raw"===o?e:Reflect.get(jc(n,o)&&o in e?n:e,o,r)}["keys","values","entries",Symbol.iterator].forEach((t=>{Sa[t]=wa(t,!1,!1),Ra[t]=wa(t,!0,!1),xa[t]=wa(t,!1,!0)}));const Ea={get:Ca(!1,!1)},Oa={get:Ca(!0,!1)},ja=new WeakMap,$a=new WeakMap;function Pa(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=>Tc(t).slice(8,-1))(t))}function Fa(t){return t&&t.__v_isReadonly?t:Aa(t,!1,ia,Ea)}function Ia(t){return Aa(t,!0,ca,Oa)}function Aa(t,e,n,o){if(!Mc(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=e?$a:ja,s=r.get(t);if(s)return s;const l=Pa(t);if(0===l)return t;const i=new Proxy(t,2===l?o:n);return r.set(t,i),i}function Ma(t){return Na(t)?Ma(t.__v_raw):!(!t||!t.__v_isReactive)}function Na(t){return!(!t||!t.__v_isReadonly)}function Ta(t){return Ma(t)||Na(t)}function Ua(t){return t&&Ua(t.__v_raw)||t}const za=t=>Mc(t)?Fa(t):t;function Ba(t){return Boolean(t&&!0===t.__v_isRef)}function Va(t){return function(t,e=!1){if(Ba(t))return t;return new Da(t,e)}(t)}class Da{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:za(t)}get value(){return Xc(Ua(this),0,"value"),this._value}set value(t){zc(Ua(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:za(t),Yc(Ua(this),"set","value",t))}}function La(t,e,n,o){let r;try{r=o?t(...o):t()}catch(s){Ka(s,e,n)}return r}function Wa(t,e,n,o){if(Fc(t)){const s=La(t,e,n,o);return s&&(Mc(r=s)&&Fc(r.then)&&Fc(r.catch))&&s.catch((t=>{Ka(t,e,n)})),s}var r;const s=[];for(let l=0;lnull==t.id?1/0:t.id;function uu(t){qa=!1,Ja=!0,cu(t),Ha.sort(((t,e)=>au(t)-au(e)));try{for(Ga=0;Gaau(t)-au(e))),eu=0;eupu+=t;const hu={};function _u(t,e,n){return vu(t,e,n)}function vu(t,e,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:l}=Sc,i=zu){let c,a,u=!1;if(Ba(t)?(c=()=>t.value,u=!!t._shallow):Ma(t)?(c=()=>t,o=!0):c=$c(t)?()=>t.map((t=>Ba(t)?t.value:Ma(t)?yu(t):Fc(t)?La(t,i,2):void 0)):Fc(t)?e?()=>La(t,i,2):()=>{if(!i||!i.isUnmounted)return a&&a(),La(t,i,3,[f])}:xc,e&&o){const t=c;c=()=>yu(t())}const f=t=>{a=_.options.onStop=()=>{La(t,i,4)}};let p=$c(t)?[]:hu;const d=()=>{if(_.active)if(e){const t=_();(o||u||zc(t,p))&&(a&&a(),Wa(e,i,3,[t,p===hu?void 0:p,f]),p=t)}else _()};let h;d.allowRecurse=!!e,h="sync"===r?d:"post"===r?()=>ku(d,i&&i.suspense):()=>{!i||i.isMounted?function(t){iu(t,Xa,Qa,Ya)}(d):d()};const _=Kc(c,{lazy:!0,onTrack:s,onTrigger:l,scheduler:h});return function(t,e=zu){e&&(e.effects||(e.effects=[])).push(t)}(_,i),e?n?d():p=_():"post"===r?ku(_,i&&i.suspense):_(),()=>{var t;(t=_).active&&(qc(t),t.options.onStop&&t.options.onStop(),t.active=!1),i&&((t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)})(i.effects,_)}}function gu(t,e,n){const o=this.proxy;return vu(Ic(t)?()=>o[t]:t.bind(o),e.bind(o),n,this)}function yu(t,e=new Set){if(!Mc(t)||e.has(t))return t;if(e.add(t),Ba(t))yu(t.value,e);else if($c(t))for(let n=0;n{yu(t,e)}));else for(const n in t)yu(t[n],e);return t}function bu(t){return Fc(t)?{setup:t,name:t.name}:t}function mu(t){Fc(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:l=!0,onError:i}=t;let c,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)),i)return new Promise(((e,n)=>{i(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),c=e,e))))};return bu({__asyncLoader:f,name:"AsyncComponentWrapper",setup(){const t=zu;if(c)return()=>wu(c,t);const e=e=>{a=null,Ka(e,t,13,!o)};if(l&&t.suspense)return f().then((e=>()=>wu(e,t))).catch((t=>(e(t),()=>o?$u(o,{error:t}):null)));const i=Va(!1),u=Va(),p=Va(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!i.value&&!u.value){const t=new Error(`Async component timed out after ${s}ms.`);e(t),u.value=t}}),s),f().then((()=>{i.value=!0})).catch((t=>{e(t),u.value=t})),()=>i.value&&c?wu(c,t):u.value&&o?$u(o,{error:u.value}):n&&!p.value?$u(n):void 0}})}function wu(t,{vnode:{ref:e,props:n,children:o}}){const r=$u(t,n,o);return r.ref=e,r}const ku=function(t,e){e&&e.pendingBranch?$c(t)?e.effects.push(...t):e.effects.push(t):iu(t,tu,Za,eu)},Su=Symbol(),xu=Symbol(void 0),Ru=Symbol(void 0),Cu=Symbol(void 0);function Eu(t){return!!t&&!0===t.__v_isVNode}const Ou=({key:t})=>null!=t?t:null,ju=({ref:t})=>null!=t?Ic(t)||Ba(t)||Fc(t)?{i:null,r:t}:t:null,$u=function(t,e=null,n=null,o=0,r=null,s=!1){t&&t!==Su||(t=Cu);if(Eu(t)){const o=Pu(t,e,!0);return n&&Au(o,n),o}l=t,Fc(l)&&"__vccOpts"in l&&(t=t.__vccOpts);var l;if(e){(Ta(e)||"__vInternal"in e)&&(e=Ec({},e));let{class:t,style:n}=e;t&&!Ic(t)&&(e.class=kc(t)),Mc(n)&&(Ta(n)&&!$c(n)&&(n=Ec({},n)),e.style=yc(n))}const i=Ic(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:Mc(t)?4:Fc(t)?2:0,c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Ou(e),ref:e&&ju(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:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};if(Au(c,n),128&i){const{content:t,fallback:e}=function(t){const{shapeFlag:e,children:n}=t;let o,r;return 32&e?(o=fu(n.default),r=fu(n.fallback)):(o=fu(n),r=Iu(null)),{content:o,fallback:r}}(c);c.ssContent=t,c.ssFallback=e}0;return c};function Pu(t,e,n=!1){const{props:o,ref:r,patchFlag:s}=t,l=e?function(...t){const e=Ec({},t[0]);for(let n=1;nMu(t,e,n)));for(const l in e)o&&jc(o,l)?t[l]=o[l](t[l],e[l],n.proxy,l):t[l]=e[l]}const Nu=t=>t&&(t.proxy?t.proxy:Nu(t.parent)),Tu=Ec(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=>Nu(t.parent),$root:t=>t.root&&t.root.proxy,$emit:t=>t.emit,$options:t=>function(t){const e=t.type,{__merged:n,mixins:o,extends:r}=e;if(n)return n;const s=t.appContext.mixins;if(!s.length&&!o&&!r)return e;const l={};return s.forEach((e=>Mu(l,e,t))),Mu(l,e,t),e.__merged=l}(t),$forceUpdate:t=>()=>{return e=t.update,void(Ha.length&&Ha.includes(e,Ja&&e.allowRecurse?Ga+1:Ga)||e===ru||(Ha.push(e),lu()));var e},$nextTick:t=>su.bind(t.proxy),$watch:t=>gu.bind(t)}),Uu={get({_:t},e){const{ctx:n,setupState:o,data:r,props:s,accessCache:l,type:i,appContext:c}=t;if("__v_skip"===e)return!0;let a;if("$"!==e[0]){const i=l[e];if(void 0!==i)switch(i){case 0:return o[e];case 1:return r[e];case 3:return n[e];case 2:return s[e]}else{if(o!==Sc&&jc(o,e))return l[e]=0,o[e];if(r!==Sc&&jc(r,e))return l[e]=1,r[e];if((a=t.propsOptions[0])&&jc(a,e))return l[e]=2,s[e];if(n!==Sc&&jc(n,e))return l[e]=3,n[e];l[e]=4}}const u=Tu[e];let f,p;return u?("$attrs"===e&&Xc(t,0,e),u(t)):(f=i.__cssModules)&&(f=f[e])?f:n!==Sc&&jc(n,e)?(l[e]=3,n[e]):(p=c.config.globalProperties,jc(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:o,setupState:r,ctx:s}=t;if(r!==Sc&&jc(r,e))r[e]=n;else if(o!==Sc&&jc(o,e))o[e]=n;else if(e in t.props)return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:o,appContext:r,propsOptions:s}},l){let i;return void 0!==n[l]||t!==Sc&&jc(t,l)||e!==Sc&&jc(e,l)||(i=s[0])&&jc(i,l)||jc(o,l)||jc(Tu,l)||jc(r.config.globalProperties,l)}};Ec({},Uu,{get(t,e){if(e!==Symbol.unscopables)return Uu.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!gc(e)});let zu=null;const Bu=()=>({src:"",alt:"",description:{id:m(),name:"sb-paragraph",data:{value:"",align:"left"}}});var Vu={name:"sb-image",getDefaultData:Bu,edit:mu((()=>Rn((()=>__import__("./edit.0be4ff4d.js")),["./assets/edit.0be4ff4d.js","./assets/style.d3f26b5f.css","./assets/vendor.9babb3f5.js"]))),display:mu((()=>Rn((()=>__import__("./display.093b30ed.js")),["./assets/display.093b30ed.js","./assets/style.d3f26b5f.css","./assets/vendor.9babb3f5.js"])))};a(n({name:"App",setup(){const t=o("edit"),e=r({name:"none",id:"0",data:null});s((async()=>{const t=await fetch("./initial-data.json"),n=await t.json();e.name=n.name,e.id=n.id,e.data=n.data}));const n=l((()=>{switch(t.value){case u.Edit:return i(On,{block:e,onUpdate:t=>{e.data=t.data},customBlocks:[Ms,Ns,Vu,_c],key:"edit",mode:u.Edit},null);case u.Display:return i(On,{block:e,customBlocks:[Ms,Ns,Vu,_c],key:"display",mode:u.Display},null);case"data":return i("pre",null,[i("code",null,[JSON.stringify(e,null,2)])])}}));return()=>i("div",{id:"app"},[i("select",{value:t.value,onChange:e=>{t.value=e.target.value}},[i("option",null,[c("edit")]),i("option",null,[c("display")]),i("option",null,[c("data")])]),n.value])}})).mount("#app");export{Fa as A,Va as B,_u as C,$u as D,Fu as E,xu as F,Fe as G,k as H,Le as I,Ke as J,oo as S,ws as a,yn as b,Is as c,us as d,En as e,Cs as f,As as g,eo as h,no as i,Li as j,hc as k,ti as l,w as m,ai as n,Ti as o,zi as p,dc as q,kr as r,tc as s,ro as t,ln as u,nc as v,ls as w,sc as x,bu as y,Bu as z}; diff --git a/docs/index.html b/docs/index.html index 1ac3887..fdc65a0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,7 +5,7 @@ Vite App - + diff --git a/src/App.tsx b/src/App.tsx index 92ed29c..ee3019d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -27,7 +27,7 @@ export default defineComponent({ }); onBeforeMount(async () => { - const res = await fetch('/initial-data.json'); + const res = await fetch('./initial-data.json'); const data = await res.json(); block.name = data.name; block.id = data.id;