gardenjs 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/bin/servegarden.js +4 -3
- package/dist/assets/frame-u3ZF53vO.js +1 -0
- package/dist/assets/{index-CQErw-Lc.js → index-C-da04Xe.js} +1 -1
- package/dist/assets/index-CZfvS1XB.css +19 -0
- package/dist/assets/index-DviEiapv.js +48 -0
- package/dist/frame.html +2 -2
- package/dist/index.html +3 -3
- package/eslint.config.mjs +46 -0
- package/package.json +29 -10
- package/src/client/GardenApp.svelte +16 -10
- package/src/client/assets/scss/abstracts/root.css +7 -3
- package/src/client/components/{splitpanes → panes}/HorizontalSplitPane.svelte +28 -10
- package/src/client/components/panes/ResizePane.svelte +141 -0
- package/src/client/components/stage/Stage.svelte +24 -13
- package/src/client/components/topbar/Topbar.svelte +6 -6
- package/src/client/logic/stage.js +38 -14
- package/src/renderer/HtmlRenderer.js +1 -1
- package/.eslintrc.yml +0 -19
- package/dist/assets/frame-RnYSvR22.js +0 -1
- package/dist/assets/index-3qYjjQWR.css +0 -19
- package/dist/assets/index-D8Rq1txs.js +0 -48
- package/src/client/components/splitpanes/VerticalSplitPane.svelte +0 -42
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<img alt="NPM Version" src="https://img.shields.io/npm/v/gardenjs?color=blue">
|
|
14
14
|
</a>
|
|
15
15
|
<a href="https://github.com/gardenjs/gardenjs/actions">
|
|
16
|
-
<img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/gardenjs/gardenjs/
|
|
16
|
+
<img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/gardenjs/gardenjs/npm-publish.yml">
|
|
17
17
|
</a>
|
|
18
18
|
</div>
|
|
19
19
|
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
Gardenjs is an open source UI component library explorer for JS frameworks and provides a centralized platform for developers to create, test and present UI components and pages in isolation. Gardenjs promotes modular and reusable code, streamlines collaboration between team members and increases overall productivity. Gardenjs is designed for projects of any size.
|
|
23
23
|
|
|
24
|
-
Watch the <a href="https://
|
|
24
|
+
Watch the <a href="https://demo.gardenjs.org/">demo</a>.
|
|
25
25
|
|
|
26
26
|
## Why Gardenjs?
|
|
27
27
|
|
|
@@ -35,7 +35,7 @@ Watch the <a href="https://www.gardenjs.org/demo/">demo</a>.
|
|
|
35
35
|
|
|
36
36
|
## Getting Started
|
|
37
37
|
|
|
38
|
-
Please follow the documentation at <a href="https://
|
|
38
|
+
Please follow the documentation at <a href="https://gardenjs.org/" target="_blank">gardenjs.org</a>. Happy Gardening!
|
|
39
39
|
|
|
40
40
|
## Supported Frameworks
|
|
41
41
|
|
package/bin/servegarden.js
CHANGED
|
@@ -100,7 +100,7 @@ async function runSetupScript() {
|
|
|
100
100
|
|
|
101
101
|
const shallCreateViteConfig = await confirm({
|
|
102
102
|
message:
|
|
103
|
-
'You need a vite configuration file for gardenjs. Shall we create the file?',
|
|
103
|
+
'You need a vite configuration file for gardenjs. Shall we create the file garden.vite.config.js?',
|
|
104
104
|
})
|
|
105
105
|
if (shallCreateViteConfig) {
|
|
106
106
|
separator()
|
|
@@ -220,8 +220,9 @@ export default {
|
|
|
220
220
|
// project_logo: './src/assets/logo.svg',
|
|
221
221
|
// project_logo_darkmode: './src/assets/logo_neg.svg',
|
|
222
222
|
|
|
223
|
-
//
|
|
224
|
-
// The HTML file may only contain the body part
|
|
223
|
+
// Enter a path to your user-defined start page.
|
|
224
|
+
// The HTML file may only contain the body part (without doctype, html-, head- & body tag).
|
|
225
|
+
// Specify the CSS styles in a style tag under the HTML part.
|
|
225
226
|
// welcome_page: './src/custom_welcome_page.html',
|
|
226
227
|
|
|
227
228
|
// Show/hide the link to the docs in the sidebar:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S as Z,i as $,s as x,C as k,k as B,R as E,f as H,v as ae,T as le,U as ce,e as se,b as ue,d as me,h as G,t as j,p as b,q as M,H as ee,A as z,B as J,D as de,E as K,F as te,G as L,I as U,J as V,K as W}from"./index-C-da04Xe.js";import{dasMap as _e}from"../das_import_map.js";import{componentMap as he}from"../component_import_map.js";import pe from"../../garden.config.js";import"../gardenframe/cssimport.js";function Q(a){let e,n;return{c(){e=new le(!1),n=k(),this.h()},l(r){e=ce(r,!1),n=k(),this.h()},h(){e.a=n},m(r,i){e.m(a[0],r,i),B(r,n,i)},p(r,i){i&1&&e.p(r[0])},d(r){r&&(H(n),e.d())}}}function ge(a){let e,n=a[0]&&Q(a);return{c(){n&&n.c(),e=k()},l(r){n&&n.l(r),e=k()},m(r,i){n&&n.m(r,i),B(r,e,i)},p(r,[i]){r[0]?n?n.p(r,i):(n=Q(r),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:E,o:E,d(r){r&&H(e),n&&n.d(r)}}}function we(a,e,n){let{component:r}=e,{afterRenderHook:i=()=>{}}=e;return ae(async()=>{await i()}),a.$$set=l=>{"component"in l&&n(0,r=l.component),"afterRenderHook"in l&&n(1,i=l.afterRenderHook)},[r,i]}class X extends Z{constructor(e){super(),$(this,e,we,ge,x,{component:0,afterRenderHook:1})}}async function ke(a){try{let e=new X({target:document.getElementById("garden_app"),props:{afterRenderHook:a}});return{destroy:()=>{var n;return(n=e==null?void 0:e.$destroy)==null?void 0:n.call(e)},updateComponent:n=>{var r;(r=e==null?void 0:e.$destroy)==null||r.call(e),e=new X({target:document.getElementById("garden_app"),props:{...n,afterRenderHook:a}})}}}catch(e){console.log("error",e)}}const S={create:ke};function Y(a){var t;let e,n,r;const i=[(t=a[2])==null?void 0:t.input];var l=a[4];function u(o,d){var p;let _={};for(let h=0;h<i.length;h+=1)_=W(_,i[h]);return d!==void 0&&d&4&&(_=W(_,U(i,[V((p=o[2])==null?void 0:p.input)]))),{props:_}}return l&&(e=z(l,u(a)),e.$on("out",a[5])),{c(){e&&J(e.$$.fragment),n=k()},l(o){e&&de(e.$$.fragment,o),n=k()},m(o,d){e&&K(e,o,d),B(o,n,d),r=!0},p(o,d){var _;if(d&16&&l!==(l=o[4])){if(e){te();const p=e;M(p.$$.fragment,1,0,()=>{L(p,1)}),ee()}l?(e=z(l,u(o,d)),e.$on("out",o[5]),J(e.$$.fragment),b(e.$$.fragment,1),K(e,n.parentNode,n)):e=null}else if(l){const p=d&4?U(i,[V((_=o[2])==null?void 0:_.input)]):{};e.$set(p)}},i(o){r||(e&&b(e.$$.fragment,o),r=!0)},o(o){e&&M(e.$$.fragment,o),r=!1},d(o){o&&H(n),e&&L(e,o)}}}function ye(a){var l;let e,n=a[0].devmodus&&a[4]&&(((l=a[1])==null?void 0:l.file)??"").indexOf(".svelte")>0,r,i=n&&Y(a);return{c(){e=se("div"),i&&i.c(),this.h()},l(u){e=ue(u,"DIV",{id:!0,class:!0});var t=me(e);i&&i.l(t),t.forEach(H),this.h()},h(){G(e,"id","garden_app"),G(e,"class","svelte-16w9tv2"),j(e,"full",a[3])},m(u,t){B(u,e,t),i&&i.m(e,null),r=!0},p(u,[t]){var o;t&19&&(n=u[0].devmodus&&u[4]&&(((o=u[1])==null?void 0:o.file)??"").indexOf(".svelte")>0),n?i?(i.p(u,t),t&19&&b(i,1)):(i=Y(u),i.c(),b(i,1),i.m(e,null)):i&&(te(),M(i,1,1,()=>{i=null}),ee()),(!r||t&8)&&j(e,"full",u[3])},i(u){r||(b(i),r=!0)},o(u){M(i),r=!1},d(u){u&&H(e),i&&i.d()}}}function be(a){return new Promise((e,n)=>{setTimeout(()=>n(new Error("Timeout on")),a)})}function He(a,e,n){let{componentMap:r={}}=e,{dasMap:i={}}=e,{config:l}=e,u=l.hookTimeout|5e3,t={},o={},d,_=!1,p,h,F,T,v={},O,P,A=[],R=[],C=[],y=[],N=[];window.addEventListener("message",f=>{var s;if(l.themeHandler&&l.themeHandler(f.data.theme),n(3,_=f.data.stageSize==="full"),n(1,t=i[f.data.componentName]),n(2,o=((s=t==null?void 0:t.examples)==null?void 0:s.find(m=>m.title===f.data.selectedExample))??{}),O=F!==f.data.componentName,F=f.data.componentName||"Welcome",P=d!==f.data.selectedExample,d=f.data.selectedExample,n(4,T=r==null?void 0:r[F]),l.devmodus){v={};return}else oe(T,o,t)});async function ne(f){if(!f)return S;for(const s in l.renderer)if(new RegExp(s+"$").test(f))return l.renderer[s];return S}async function oe(f,s,m){if(l.renderer){const w=await ne(m==null?void 0:m.file);w!==p&&await q(w)}await ie();try{h==null||h.updateComponent({component:f,selectedExample:s,das:m,decorators:m==null?void 0:m.decorators,afterRenderHook:re})}catch(w){console.error(w)}}async function re(){await I(N)}let g=[];async function ie(){if(O){N=[o==null?void 0:o.play],y=t!=null&&t.beforeAll?[t==null?void 0:t.beforeAll]:[];const f=t!=null&&t.hooks?g.filter(c=>!(t!=null&&t.hooks.find(D=>D===c))):g,s=g.length>0?t==null?void 0:t.hooks.filter(c=>!g.find(D=>c===D)):(t==null?void 0:t.hooks)??[];g=(t==null?void 0:t.hooks)??[];const m=g.filter(c=>c.before).map(c=>c.before)??[];R=[...R,...f.filter(c=>c.afterAll).map(c=>c.afterAll)],y=[...s.filter(c=>c.beforeAll).map(c=>c.beforeAll),...y],C=[...m,t==null?void 0:t.before,o==null?void 0:o.before].filter(c=>!!c),await I([...A,...R,...y,...C]);const w=g.filter(c=>c.after).map(c=>c.after)??[];R=t!=null&&t.afterAll?[t==null?void 0:t.afterAll]:[],A=[o==null?void 0:o.after,t==null?void 0:t.after,...w].filter(c=>!!c),y=[]}else P&&(N=[o==null?void 0:o.play],C=[t==null?void 0:t.before,o==null?void 0:o.before],await I([...A,...C]),A=[o==null?void 0:o.after,t==null?void 0:t.after])}async function q(f){try{await(h==null?void 0:h.destroy())}catch(s){console.error("Could not destroy current renderer",s)}h=await f.create()}function fe(f){t.out&&t.out.forEach(s=>{if(f.detail[s.name]&&(console.log(f.detail[s.name]),o.redirect&&o.redirect[s.name])){const m=o.redirect[s.name];v[m]=f.detail[s.name]}})}async function I(f){for(const s of f)if(s)try{await Promise.race([be(u),s()])}catch(m){console.error(m)}}return a.$$set=f=>{"componentMap"in f&&n(6,r=f.componentMap),"dasMap"in f&&n(7,i=f.dasMap),"config"in f&&n(0,l=f.config)},a.$$.update=()=>{a.$$.dirty&1&&(l.devmodus||q(S))},[l,t,o,_,T,fe,r,i]}class Ae extends Z{constructor(e){super(),$(this,e,He,ye,x,{componentMap:6,dasMap:7,config:0})}}new Ae({target:document.body,props:{componentMap:he,dasMap:_e,config:pe}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var W=Object.defineProperty;var J=(t,e,n)=>e in t?W(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var d=(t,e,n)=>J(t,typeof e!="symbol"?e+"":e,n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const c of r)if(c.type==="childList")for(const s of c.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const c={};return r.integrity&&(c.integrity=r.integrity),r.referrerPolicy&&(c.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?c.credentials="include":r.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(r){if(r.ep)return;r.ep=!0;const c=n(r);fetch(r.href,c)}})();function v(){}function Q(t,e){for(const n in e)t[n]=e[n];return t}function D(t){return t()}function H(){return Object.create(null)}function b(t){t.forEach(D)}function I(t){return typeof t=="function"}function bt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let $;function xt(t,e){return t===e?!0:($||($=document.createElement("a")),$.href=e,t===$.href)}function X(t){return Object.keys(t).length===0}function q(t,...e){if(t==null){for(const i of e)i(void 0);return v}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function $t(t){let e;return q(t,n=>e=n)(),e}function wt(t,e,n){t.$$.on_destroy.push(q(e,n))}function vt(t,e,n,i){if(t){const r=F(t,e,n,i);return t[0](r)}}function F(t,e,n,i){return t[1]&&i?Q(n.ctx.slice(),t[1](i(e))):n.ctx}function Et(t,e,n,i){if(t[2]&&i){const r=t[2](i(n));if(e.dirty===void 0)return r;if(typeof r=="object"){const c=[],s=Math.max(e.dirty.length,r.length);for(let l=0;l<s;l+=1)c[l]=e.dirty[l]|r[l];return c}return e.dirty|r}return e.dirty}function Nt(t,e,n,i,r,c){if(r){const s=F(e,n,i,c);t.p(s,r)}}function Tt(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}let N=!1;function Y(){N=!0}function Z(){N=!1}function tt(t,e,n,i){for(;t<e;){const r=t+(e-t>>1);n(r)<=i?t=r+1:e=r}return t}function et(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const o=[];for(let u=0;u<e.length;u++){const a=e[u];a.claim_order!==void 0&&o.push(a)}e=o}const n=new Int32Array(e.length+1),i=new Int32Array(e.length);n[0]=-1;let r=0;for(let o=0;o<e.length;o++){const u=e[o].claim_order,a=(r>0&&e[n[r]].claim_order<=u?r+1:tt(1,r,x=>e[n[x]].claim_order,u))-1;i[o]=n[a]+1;const f=a+1;n[f]=o,r=Math.max(f,r)}const c=[],s=[];let l=e.length-1;for(let o=n[r]+1;o!=0;o=i[o-1]){for(c.push(e[o-1]);l>=o;l--)s.push(e[l]);l--}for(;l>=0;l--)s.push(e[l]);c.reverse(),s.sort((o,u)=>o.claim_order-u.claim_order);for(let o=0,u=0;o<s.length;o++){for(;u<c.length&&s[o].claim_order>=c[u].claim_order;)u++;const a=u<c.length?c[u]:null;t.insertBefore(s[o],a)}}function nt(t,e){if(N){for(et(t),(t.actual_end_child===void 0||t.actual_end_child!==null&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);t.actual_end_child!==null&&t.actual_end_child.claim_order===void 0;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?(e.claim_order!==void 0||e.parentNode!==t)&&t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else(e.parentNode!==t||e.nextSibling!==null)&&t.appendChild(e)}function it(t,e,n){t.insertBefore(e,n||null)}function rt(t,e,n){N&&!n?nt(t,e):(e.parentNode!==t||e.nextSibling!=n)&&t.insertBefore(e,n||null)}function E(t){t.parentNode&&t.parentNode.removeChild(t)}function At(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function G(t){return document.createElement(t)}function R(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function S(t){return document.createTextNode(t)}function Lt(){return S(" ")}function Pt(){return S("")}function St(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function Mt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function Ot(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function jt(t){return t.dataset.svelteH}function st(t){return Array.from(t.childNodes)}function z(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function K(t,e,n,i,r=!1){z(t);const c=(()=>{for(let s=t.claim_info.last_index;s<t.length;s++){const l=t[s];if(e(l)){const o=n(l);return o===void 0?t.splice(s,1):t[s]=o,r||(t.claim_info.last_index=s),l}}for(let s=t.claim_info.last_index-1;s>=0;s--){const l=t[s];if(e(l)){const o=n(l);return o===void 0?t.splice(s,1):t[s]=o,r?o===void 0&&t.claim_info.last_index--:t.claim_info.last_index=s,l}}return i()})();return c.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,c}function U(t,e,n,i){return K(t,r=>r.nodeName===e,r=>{const c=[];for(let s=0;s<r.attributes.length;s++){const l=r.attributes[s];n[l.name]||c.push(l.name)}c.forEach(s=>r.removeAttribute(s))},()=>i(e))}function Ht(t,e,n){return U(t,e,n,G)}function Ct(t,e,n){return U(t,e,n,R)}function ct(t,e){return K(t,n=>n.nodeType===3,n=>{const i=""+e;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>S(e),!0)}function kt(t){return ct(t," ")}function C(t,e,n){for(let i=n;i<t.length;i+=1){const r=t[i];if(r.nodeType===8&&r.textContent.trim()===e)return i}return-1}function Bt(t,e){const n=C(t,"HTML_TAG_START",0),i=C(t,"HTML_TAG_END",n+1);if(n===-1||i===-1)return new T(e);z(t);const r=t.splice(n,i-n+1);E(r[0]),E(r[r.length-1]);const c=r.slice(1,r.length-1);if(c.length===0)return new T(e);for(const s of c)s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new T(e,c)}function Dt(t,e){e=""+e,t.data!==e&&(t.data=e)}function It(t,e,n,i){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function qt(t,e,n){t.classList.toggle(e,!!n)}function ot(t,e,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:i})}class lt{constructor(e=!1){d(this,"is_svg",!1);d(this,"e");d(this,"n");d(this,"t");d(this,"a");this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,i=null){this.e||(this.is_svg?this.e=R(n.nodeName):this.e=G(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(i)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;n<this.n.length;n+=1)it(this.t,this.n[n],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(E)}}class T extends lt{constructor(n=!1,i){super(n);d(this,"l");this.e=this.n=null,this.l=i}c(n){this.l?this.n=this.l:super.c(n)}i(n){for(let i=0;i<this.n.length;i+=1)rt(this.t,this.n[i],n)}}function Ft(t,e){return new t(e)}let g;function y(t){g=t}function M(){if(!g)throw new Error("Function called outside component initialization");return g}function Gt(t){M().$$.on_mount.push(t)}function Rt(t){M().$$.on_destroy.push(t)}function zt(){const t=M();return(e,n,{cancelable:i=!1}={})=>{const r=t.$$.callbacks[e];if(r){const c=ot(e,n,{cancelable:i});return r.slice().forEach(s=>{s.call(t,c)}),!c.defaultPrevented}return!0}}function Kt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(i=>i.call(this,e))}const m=[],k=[];let p=[];const B=[],ut=Promise.resolve();let L=!1;function ft(){L||(L=!0,ut.then(V))}function P(t){p.push(t)}const A=new Set;let h=0;function V(){if(h!==0)return;const t=g;do{try{for(;h<m.length;){const e=m[h];h++,y(e),at(e.$$)}}catch(e){throw m.length=0,h=0,e}for(y(null),m.length=0,h=0;k.length;)k.pop()();for(let e=0;e<p.length;e+=1){const n=p[e];A.has(n)||(A.add(n),n())}p.length=0}while(m.length);for(;B.length;)B.pop()();L=!1,A.clear(),y(t)}function at(t){if(t.fragment!==null){t.update(),b(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(P)}}function dt(t){const e=[],n=[];p.forEach(i=>t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),p=e}const w=new Set;let _;function Ut(){_={r:0,c:[],p:_}}function Vt(){_.r||b(_.c),_=_.p}function _t(t,e){t&&t.i&&(w.delete(t),t.i(e))}function Wt(t,e,n,i){if(t&&t.o){if(w.has(t))return;w.add(t),_.c.push(()=>{w.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}function Jt(t,e){const n={},i={},r={$$scope:1};let c=t.length;for(;c--;){const s=t[c],l=e[c];if(l){for(const o in s)o in l||(i[o]=1);for(const o in l)r[o]||(n[o]=l[o],r[o]=1);t[c]=l}else for(const o in s)r[o]=1}for(const s in i)s in n||(n[s]=void 0);return n}function Qt(t){return typeof t=="object"&&t!==null?t:{}}function Xt(t){t&&t.c()}function Yt(t,e){t&&t.l(e)}function ht(t,e,n){const{fragment:i,after_update:r}=t.$$;i&&i.m(e,n),P(()=>{const c=t.$$.on_mount.map(D).filter(I);t.$$.on_destroy?t.$$.on_destroy.push(...c):b(c),t.$$.on_mount=[]}),r.forEach(P)}function mt(t,e){const n=t.$$;n.fragment!==null&&(dt(n.after_update),b(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function pt(t,e){t.$$.dirty[0]===-1&&(m.push(t),ft(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Zt(t,e,n,i,r,c,s=null,l=[-1]){const o=g;y(t);const u=t.$$={fragment:null,ctx:[],props:c,update:v,not_equal:r,bound:H(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(o?o.$$.context:[])),callbacks:H(),dirty:l,skip_bound:!1,root:e.target||o.$$.root};s&&s(u.root);let a=!1;if(u.ctx=n?n(t,e.props||{},(f,x,...O)=>{const j=O.length?O[0]:x;return u.ctx&&r(u.ctx[f],u.ctx[f]=j)&&(!u.skip_bound&&u.bound[f]&&u.bound[f](j),a&&pt(t,f)),x}):[],u.update(),a=!0,b(u.before_update),u.fragment=i?i(u.ctx):!1,e.target){if(e.hydrate){Y();const f=st(e.target);u.fragment&&u.fragment.l(f),f.forEach(E)}else u.fragment&&u.fragment.c();e.intro&&_t(t.$$.fragment),ht(t,e.target,e.anchor),Z(),V()}y(o)}class te{constructor(){d(this,"$$");d(this,"$$set")}$destroy(){mt(this,1),this.$destroy=v}$on(e,n){if(!I(n))return v;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!X(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const yt="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(yt);export{Pt as A,Yt as B,ht as C,Ut as D,mt as E,Vt as F,Jt as G,Qt as H,Q as I,Kt as J,jt as K,At as L,S as M,ct as N,I as O,Dt as P,v as Q,T as R,te as S,Bt as T,xt as U,Mt as V,b as W,R as X,Ct as Y,$t as Z,wt as _,Lt as a,Ht as b,vt as c,st as d,G as e,E as f,kt as g,Ot as h,Zt as i,It as j,rt as k,nt as l,St as m,Tt as n,Et as o,_t as p,Wt as q,zt as r,bt as s,qt as t,Nt as u,Gt as v,Rt as w,k as x,Ft as y,Xt as z};
|
|
1
|
+
var W=Object.defineProperty;var J=(t,e,n)=>e in t?W(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var d=(t,e,n)=>J(t,typeof e!="symbol"?e+"":e,n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const c of r)if(c.type==="childList")for(const s of c.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const c={};return r.integrity&&(c.integrity=r.integrity),r.referrerPolicy&&(c.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?c.credentials="include":r.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(r){if(r.ep)return;r.ep=!0;const c=n(r);fetch(r.href,c)}})();function v(){}function Q(t,e){for(const n in e)t[n]=e[n];return t}function D(t){return t()}function H(){return Object.create(null)}function b(t){t.forEach(D)}function I(t){return typeof t=="function"}function bt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let $;function xt(t,e){return t===e?!0:($||($=document.createElement("a")),$.href=e,t===$.href)}function X(t){return Object.keys(t).length===0}function q(t,...e){if(t==null){for(const i of e)i(void 0);return v}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function $t(t){let e;return q(t,n=>e=n)(),e}function wt(t,e,n){t.$$.on_destroy.push(q(e,n))}function vt(t,e,n,i){if(t){const r=F(t,e,n,i);return t[0](r)}}function F(t,e,n,i){return t[1]&&i?Q(n.ctx.slice(),t[1](i(e))):n.ctx}function Et(t,e,n,i){if(t[2]&&i){const r=t[2](i(n));if(e.dirty===void 0)return r;if(typeof r=="object"){const c=[],s=Math.max(e.dirty.length,r.length);for(let l=0;l<s;l+=1)c[l]=e.dirty[l]|r[l];return c}return e.dirty|r}return e.dirty}function Nt(t,e,n,i,r,c){if(r){const s=F(e,n,i,c);t.p(s,r)}}function Tt(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}let N=!1;function Y(){N=!0}function Z(){N=!1}function tt(t,e,n,i){for(;t<e;){const r=t+(e-t>>1);n(r)<=i?t=r+1:e=r}return t}function et(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const o=[];for(let u=0;u<e.length;u++){const a=e[u];a.claim_order!==void 0&&o.push(a)}e=o}const n=new Int32Array(e.length+1),i=new Int32Array(e.length);n[0]=-1;let r=0;for(let o=0;o<e.length;o++){const u=e[o].claim_order,a=(r>0&&e[n[r]].claim_order<=u?r+1:tt(1,r,x=>e[n[x]].claim_order,u))-1;i[o]=n[a]+1;const f=a+1;n[f]=o,r=Math.max(f,r)}const c=[],s=[];let l=e.length-1;for(let o=n[r]+1;o!=0;o=i[o-1]){for(c.push(e[o-1]);l>=o;l--)s.push(e[l]);l--}for(;l>=0;l--)s.push(e[l]);c.reverse(),s.sort((o,u)=>o.claim_order-u.claim_order);for(let o=0,u=0;o<s.length;o++){for(;u<c.length&&s[o].claim_order>=c[u].claim_order;)u++;const a=u<c.length?c[u]:null;t.insertBefore(s[o],a)}}function nt(t,e){if(N){for(et(t),(t.actual_end_child===void 0||t.actual_end_child!==null&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);t.actual_end_child!==null&&t.actual_end_child.claim_order===void 0;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?(e.claim_order!==void 0||e.parentNode!==t)&&t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else(e.parentNode!==t||e.nextSibling!==null)&&t.appendChild(e)}function it(t,e,n){t.insertBefore(e,n||null)}function rt(t,e,n){N&&!n?nt(t,e):(e.parentNode!==t||e.nextSibling!=n)&&t.insertBefore(e,n||null)}function E(t){t.parentNode&&t.parentNode.removeChild(t)}function At(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function G(t){return document.createElement(t)}function R(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function S(t){return document.createTextNode(t)}function Lt(){return S(" ")}function Pt(){return S("")}function St(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function Mt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function Ot(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function jt(t){return t.dataset.svelteH}function st(t){return Array.from(t.childNodes)}function z(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function K(t,e,n,i,r=!1){z(t);const c=(()=>{for(let s=t.claim_info.last_index;s<t.length;s++){const l=t[s];if(e(l)){const o=n(l);return o===void 0?t.splice(s,1):t[s]=o,r||(t.claim_info.last_index=s),l}}for(let s=t.claim_info.last_index-1;s>=0;s--){const l=t[s];if(e(l)){const o=n(l);return o===void 0?t.splice(s,1):t[s]=o,r?o===void 0&&t.claim_info.last_index--:t.claim_info.last_index=s,l}}return i()})();return c.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,c}function U(t,e,n,i){return K(t,r=>r.nodeName===e,r=>{const c=[];for(let s=0;s<r.attributes.length;s++){const l=r.attributes[s];n[l.name]||c.push(l.name)}c.forEach(s=>r.removeAttribute(s))},()=>i(e))}function Ht(t,e,n){return U(t,e,n,G)}function Ct(t,e,n){return U(t,e,n,R)}function ct(t,e){return K(t,n=>n.nodeType===3,n=>{const i=""+e;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>S(e),!0)}function kt(t){return ct(t," ")}function C(t,e,n){for(let i=n;i<t.length;i+=1){const r=t[i];if(r.nodeType===8&&r.textContent.trim()===e)return i}return-1}function Bt(t,e){const n=C(t,"HTML_TAG_START",0),i=C(t,"HTML_TAG_END",n+1);if(n===-1||i===-1)return new T(e);z(t);const r=t.splice(n,i-n+1);E(r[0]),E(r[r.length-1]);const c=r.slice(1,r.length-1);if(c.length===0)return new T(e);for(const s of c)s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new T(e,c)}function Dt(t,e){e=""+e,t.data!==e&&(t.data=e)}function It(t,e,n,i){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function qt(t,e,n){t.classList.toggle(e,!!n)}function ot(t,e,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:i})}class lt{constructor(e=!1){d(this,"is_svg",!1);d(this,"e");d(this,"n");d(this,"t");d(this,"a");this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,i=null){this.e||(this.is_svg?this.e=R(n.nodeName):this.e=G(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(i)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;n<this.n.length;n+=1)it(this.t,this.n[n],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(E)}}class T extends lt{constructor(n=!1,i){super(n);d(this,"l");this.e=this.n=null,this.l=i}c(n){this.l?this.n=this.l:super.c(n)}i(n){for(let i=0;i<this.n.length;i+=1)rt(this.t,this.n[i],n)}}function Ft(t,e){return new t(e)}let g;function y(t){g=t}function M(){if(!g)throw new Error("Function called outside component initialization");return g}function Gt(t){M().$$.on_mount.push(t)}function Rt(t){M().$$.on_destroy.push(t)}function zt(){const t=M();return(e,n,{cancelable:i=!1}={})=>{const r=t.$$.callbacks[e];if(r){const c=ot(e,n,{cancelable:i});return r.slice().forEach(s=>{s.call(t,c)}),!c.defaultPrevented}return!0}}function Kt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(i=>i.call(this,e))}const m=[],k=[];let p=[];const B=[],ut=Promise.resolve();let L=!1;function ft(){L||(L=!0,ut.then(V))}function P(t){p.push(t)}const A=new Set;let h=0;function V(){if(h!==0)return;const t=g;do{try{for(;h<m.length;){const e=m[h];h++,y(e),at(e.$$)}}catch(e){throw m.length=0,h=0,e}for(y(null),m.length=0,h=0;k.length;)k.pop()();for(let e=0;e<p.length;e+=1){const n=p[e];A.has(n)||(A.add(n),n())}p.length=0}while(m.length);for(;B.length;)B.pop()();L=!1,A.clear(),y(t)}function at(t){if(t.fragment!==null){t.update(),b(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(P)}}function dt(t){const e=[],n=[];p.forEach(i=>t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),p=e}const w=new Set;let _;function Ut(){_={r:0,c:[],p:_}}function Vt(){_.r||b(_.c),_=_.p}function _t(t,e){t&&t.i&&(w.delete(t),t.i(e))}function Wt(t,e,n,i){if(t&&t.o){if(w.has(t))return;w.add(t),_.c.push(()=>{w.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}function Jt(t,e){const n={},i={},r={$$scope:1};let c=t.length;for(;c--;){const s=t[c],l=e[c];if(l){for(const o in s)o in l||(i[o]=1);for(const o in l)r[o]||(n[o]=l[o],r[o]=1);t[c]=l}else for(const o in s)r[o]=1}for(const s in i)s in n||(n[s]=void 0);return n}function Qt(t){return typeof t=="object"&&t!==null?t:{}}function Xt(t){t&&t.c()}function Yt(t,e){t&&t.l(e)}function ht(t,e,n){const{fragment:i,after_update:r}=t.$$;i&&i.m(e,n),P(()=>{const c=t.$$.on_mount.map(D).filter(I);t.$$.on_destroy?t.$$.on_destroy.push(...c):b(c),t.$$.on_mount=[]}),r.forEach(P)}function mt(t,e){const n=t.$$;n.fragment!==null&&(dt(n.after_update),b(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function pt(t,e){t.$$.dirty[0]===-1&&(m.push(t),ft(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Zt(t,e,n,i,r,c,s=null,l=[-1]){const o=g;y(t);const u=t.$$={fragment:null,ctx:[],props:c,update:v,not_equal:r,bound:H(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(o?o.$$.context:[])),callbacks:H(),dirty:l,skip_bound:!1,root:e.target||o.$$.root};s&&s(u.root);let a=!1;if(u.ctx=n?n(t,e.props||{},(f,x,...O)=>{const j=O.length?O[0]:x;return u.ctx&&r(u.ctx[f],u.ctx[f]=j)&&(!u.skip_bound&&u.bound[f]&&u.bound[f](j),a&&pt(t,f)),x}):[],u.update(),a=!0,b(u.before_update),u.fragment=i?i(u.ctx):!1,e.target){if(e.hydrate){Y();const f=st(e.target);u.fragment&&u.fragment.l(f),f.forEach(E)}else u.fragment&&u.fragment.c();e.intro&&_t(t.$$.fragment),ht(t,e.target,e.anchor),Z(),V()}y(o)}class te{constructor(){d(this,"$$");d(this,"$$set")}$destroy(){mt(this,1),this.$destroy=v}$on(e,n){if(!I(n))return v;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!X(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const yt="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(yt);export{Ft as A,Xt as B,Pt as C,Yt as D,ht as E,Ut as F,mt as G,Vt as H,Jt as I,Qt as J,Q as K,Kt as L,At as M,S as N,ct as O,I as P,Dt as Q,v as R,te as S,T,Bt as U,xt as V,Mt as W,R as X,Ct as Y,$t as Z,wt as _,Lt as a,Ht as b,vt as c,st as d,G as e,E as f,kt as g,Ot as h,Zt as i,It as j,rt as k,nt as l,St as m,Tt as n,Et as o,_t as p,Wt as q,zt as r,bt as s,qt as t,Nt as u,Gt as v,Rt as w,k as x,jt as y,b as z};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.container.svelte-1pql0kc{display:flex;flex-direction:column;flex-wrap:nowrap;width:100%;height:100%;overflow-y:auto}.top.svelte-1pql0kc{flex-grow:0;flex-shrink:0;border-bottom:0;border-radius:.625rem .625rem 0 0;overflow:hidden}.dragbar.svelte-1pql0kc{flex-grow:0;flex-shrink:0;height:.188rem;background-color:var(--c-primary);cursor:row-resize;z-index:10}.dragging.svelte-1pql0kc,.dragbar.svelte-1pql0kc:hover{background-color:var(--c-primary);transform:scaleY(2)}.resizepane-container.svelte-gdxark.svelte-gdxark{display:grid;grid-template:min-content 1.25rem / min-content 1.25rem;width:100%;height:100%;overflow:auto}.dragbar.svelte-gdxark.svelte-gdxark{display:flex;flex-grow:0;flex-shrink:0;justify-content:center;align-items:center;height:100%;width:100%;background-color:var(--c-dragbar-bg);z-index:10}.dragbar.svelte-gdxark.svelte-gdxark:hover{background-color:var(--c-dragbar-bg-hover)}.dragbar.svelte-gdxark svg path.svelte-gdxark{stroke:var(--c-basic-700)}.vertical.svelte-gdxark.svelte-gdxark{width:1.25rem;border-top:1px solid var(--c-dragbar-bg);border-right:1px solid var(--c-dragbar-bg);border-radius:0 .625rem 0 0;cursor:ew-resize}.horizontal.svelte-gdxark.svelte-gdxark{height:1.25rem;border-bottom:1px solid var(--c-dragbar-bg);border-left:1px solid var(--c-dragbar-bg);cursor:ns-resize}.corner.svelte-gdxark.svelte-gdxark{width:1.25rem;height:1.25rem;border-right:1px solid var(--c-dragbar-bg);border-bottom:1px solid var(--c-dragbar-bg);cursor:nwse-resize}.dragbar.disabled.svelte-gdxark.svelte-gdxark{display:none}.resizepane-container.disabled.svelte-gdxark.svelte-gdxark{display:flex;justify-content:center}:root{--h-panelnav:2.375rem}.panel_container.svelte-19zoa7t.svelte-19zoa7t{background-color:var(--c-basic-75)}.panel_nav.svelte-19zoa7t.svelte-19zoa7t{position:sticky;top:0;display:flex;flex-shrink:0;justify-content:space-between;align-items:center;height:var(--h-panelnav);border-bottom:1px solid var(--c-bg-body)}.panel_nav.svelte-19zoa7t nav.svelte-19zoa7t{margin:0 1.25rem 0 0}.panel_nav.svelte-19zoa7t nav ul.svelte-19zoa7t{display:flex;overflow-x:auto}.panel_nav.svelte-19zoa7t nav li button.svelte-19zoa7t{position:relative;display:flex;flex-direction:column;justify-content:space-between;justify-content:center;align-items:center;padding:.563rem 1.25rem .188rem;padding:0 1.25rem;height:calc(var(--h-panelnav) - 1px);font-size:.875rem;color:var(--c-basic-700);white-space:nowrap;text-transform:capitalize;overflow:hidden}.panel_nav.svelte-19zoa7t nav li button .dot.svelte-19zoa7t{display:block;height:.313rem;width:.313rem;background-color:transparent;border-radius:50%}.panel_nav.svelte-19zoa7t nav li button.active .dot.svelte-19zoa7t{background-color:var(--c-primary)}.panel_nav.svelte-19zoa7t nav li button.svelte-19zoa7t:hover,.panel_nav.svelte-19zoa7t nav li button.svelte-19zoa7t:focus-visible{color:var(--c-primary);font-weight:500;background-color:var(--c-basic-100)}.panel_nav.svelte-19zoa7t nav li button.svelte-19zoa7t:focus-visible{background-color:var(--c-basic-150)}.panel_nav.svelte-19zoa7t nav li button.active.svelte-19zoa7t{color:var(--c-primary);font-weight:500;background-color:var(--c-primary-bg)}.panel_toggle.svelte-19zoa7t.svelte-19zoa7t{padding:0 .75rem;height:100%;background:none}.panel_toggle.svelte-19zoa7t svg.svelte-19zoa7t{margin-top:.188rem;height:1.375rem;color:var(--c-basic-700)}.panel_toggle.svelte-19zoa7t:hover svg.svelte-19zoa7t,.panel_toggle.svelte-19zoa7t:focus-visible svg.svelte-19zoa7t{color:var(--c-primary)}.panel_toggle.svelte-19zoa7t.svelte-19zoa7t:focus-visible{background-color:var(--c-basic-150)}.panel_pane.svelte-19zoa7t.svelte-19zoa7t{position:absolute;left:0;right:0;bottom:0;top:var(--h-panelnav);padding:1.25rem;overflow-y:auto}.stories.svelte-9ikz8y.svelte-9ikz8y{list-style:none;margin:0;padding:0}.stories.svelte-9ikz8y li button.svelte-9ikz8y{display:flex;align-items:center;justify-items:flex-start;margin:0;padding:.5rem .5rem .5rem 1.25rem;width:100%;font-size:.9rem;color:var(--c-basic-600);text-align:left}.stories.svelte-9ikz8y li button .dot.svelte-9ikz8y{display:block;margin:0 .5rem 0 0;height:.375rem;width:.375rem;background-color:transparent;border-radius:50%}.stories.svelte-9ikz8y li.active button .dot.svelte-9ikz8y{background-color:var(--c-primary)}.stories.svelte-9ikz8y li:nth-child(odd) button.svelte-9ikz8y{background-color:var(--c-basic-50)}.stories.svelte-9ikz8y li button.svelte-9ikz8y:hover,.stories.svelte-9ikz8y li button.svelte-9ikz8y:focus-visible{color:var(--c-primary);font-weight:500;background-color:var(--c-basic-150)}.stories.svelte-9ikz8y li.active button.svelte-9ikz8y{color:var(--c-primary);font-weight:500;background-color:var(--c-primary-bg)}.stories.svelte-9ikz8y li.active button.svelte-9ikz8y:focus-visible{background-color:var(--c-basic-150)}.markdown-body{--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: hsl(168, 8%, 94%);--color-border-default: #d0d7de;--color-border-muted: hsla(210, 18%, 87%, 1);--color-neutral-muted: var(--c-basic-150);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-attention-subtle: #fff8c5;--color-danger-fg: #cf222e}.dark .markdown-body{--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #c9d1d9;--color-fg-muted: #8b949e;--color-fg-subtle: #6e7681;--color-canvas-default: #0d1117;--color-canvas-subtle: var(--c-basic-150);--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: var(--c-basic-150);--color-accent-fg: #58a6ff;--color-accent-emphasis: #1f6feb;--color-attention-subtle: rgba(187, 128, 9, .15);--color-danger-fg: #f85149}.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;margin:0;width:100%;max-width:900px;color:var(--color-fg-default);word-wrap:break-word}.markdown-body details,.markdown-body figcaption,.markdown-body figure{display:block}.markdown-body summary{display:list-item}.markdown-body [hidden]{display:none!important}.markdown-body a{background-color:transparent;color:var(--color-accent-fg);text-decoration:none}.markdown-body abbr[title]{border-bottom:none;text-decoration:underline dotted}.markdown-body b,.markdown-body strong{font-weight:var(--base-text-weight-semibold, 600)}.markdown-body dfn{font-style:italic}.markdown-body h1{margin:.67em 0;font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:1.75em;border-bottom:1px solid var(--color-border-muted)}.markdown-body mark{background-color:var(--color-attention-subtle);color:var(--color-fg-default)}.markdown-body small{font-size:90%}.markdown-body sub,.markdown-body sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.markdown-body sub{bottom:-.25em}.markdown-body sup{top:-.5em}.markdown-body img{border-style:none;max-width:100%;box-sizing:content-box;background-color:var(--color-canvas-default)}.markdown-body code,.markdown-body kbd,.markdown-body pre,.markdown-body samp{font-family:monospace;font-size:1em}.markdown-body figure{margin:1em 40px}.markdown-body hr{box-sizing:content-box;overflow:hidden;background:transparent;border-bottom:1px solid var(--color-border-muted);height:.25em;padding:0;margin:24px 0;background-color:var(--color-border-default);border:0}.markdown-body input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.markdown-body [type=button],.markdown-body [type=reset],.markdown-body [type=submit]{-webkit-appearance:button}.markdown-body [type=checkbox],.markdown-body [type=radio]{box-sizing:border-box;padding:0}.markdown-body [type=number]::-webkit-inner-spin-button,.markdown-body [type=number]::-webkit-outer-spin-button{height:auto}.markdown-body [type=search]::-webkit-search-cancel-button,.markdown-body [type=search]::-webkit-search-decoration{-webkit-appearance:none}.markdown-body ::-webkit-input-placeholder{color:inherit;opacity:.54}.markdown-body ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.markdown-body a:hover{text-decoration:underline}.markdown-body ::placeholder{color:var(--color-fg-subtle);opacity:1}.markdown-body hr:before{display:table;content:""}.markdown-body hr:after{display:table;clear:both;content:""}.markdown-body table{border-spacing:0;border-collapse:collapse;display:block;width:max-content;max-width:100%;overflow:auto}.markdown-body td,.markdown-body th{padding:0}.markdown-body details summary{cursor:pointer}.markdown-body details:not([open])>*:not(summary){display:none!important}.markdown-body a:focus,.markdown-body [role=button]:focus,.markdown-body input[type=radio]:focus,.markdown-body input[type=checkbox]:focus{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none}.markdown-body a:focus:not(:focus-visible),.markdown-body [role=button]:focus:not(:focus-visible),.markdown-body input[type=radio]:focus:not(:focus-visible),.markdown-body input[type=checkbox]:focus:not(:focus-visible){outline:solid 1px transparent}.markdown-body a:focus-visible,.markdown-body [role=button]:focus-visible,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus-visible{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none}.markdown-body a:not([class]):focus,.markdown-body a:not([class]):focus-visible,.markdown-body input[type=radio]:focus,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus,.markdown-body input[type=checkbox]:focus-visible{outline-offset:0}.markdown-body kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted)}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:24px;margin-bottom:16px;font-weight:var(--base-text-weight-semibold, 600);line-height:1.25}.markdown-body h2{font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:1.375em;border-bottom:1px solid var(--color-border-muted)}.markdown-body h3{font-weight:var(--base-text-weight-semibold, 600);font-size:1.25em}.markdown-body h4{font-weight:var(--base-text-weight-semibold, 600);font-size:1.125em}.markdown-body h5{font-weight:var(--base-text-weight-semibold, 600);font-size:.875em}.markdown-body h6{font-weight:var(--base-text-weight-semibold, 600);font-size:.85em;color:var(--color-fg-muted)}.markdown-body p{margin-top:0;margin-bottom:10px}.markdown-body blockquote{margin:0;padding:0 1em;color:var(--color-fg-muted);border-left:.25em solid var(--color-border-default)}.markdown-body ul,.markdown-body ol{margin-top:0;margin-bottom:0;padding-left:2em}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman}.markdown-body ul ul ol,.markdown-body ul ol ol,.markdown-body ol ul ol,.markdown-body ol ol ol{list-style-type:lower-alpha}.markdown-body dd{margin-left:0}.markdown-body tt,.markdown-body code,.markdown-body samp{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:.875rem}.markdown-body pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:.875rem;word-wrap:normal}.markdown-body input::-webkit-outer-spin-button,.markdown-body input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.markdown-body:before{display:table;content:""}.markdown-body:after{display:table;clear:both;content:""}.markdown-body>*:first-child{margin-top:0!important}.markdown-body>*:last-child{margin-bottom:0!important}.markdown-body a:not([href]){color:inherit;text-decoration:none}.markdown-body p,.markdown-body blockquote,.markdown-body ul,.markdown-body ol,.markdown-body dl,.markdown-body table,.markdown-body pre,.markdown-body details{margin-top:0;margin-bottom:16px}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body h1 tt,.markdown-body h1 code,.markdown-body h2 tt,.markdown-body h2 code,.markdown-body h3 tt,.markdown-body h3 code,.markdown-body h4 tt,.markdown-body h4 code,.markdown-body h5 tt,.markdown-body h5 code,.markdown-body h6 tt,.markdown-body h6 code{padding:0 .2em;font-size:inherit}.markdown-body summary h1,.markdown-body summary h2,.markdown-body summary h3,.markdown-body summary h4,.markdown-body summary h5,.markdown-body summary h6{display:inline-block}.markdown-body summary h1,.markdown-body summary h2{padding-bottom:0;border-bottom:0}.markdown-body ul.no-list,.markdown-body ol.no-list{padding:0;list-style-type:none}.markdown-body ol[type=a]{list-style-type:lower-alpha}.markdown-body ol[type=A]{list-style-type:upper-alpha}.markdown-body ol[type=i]{list-style-type:lower-roman}.markdown-body ol[type=I]{list-style-type:upper-roman}.markdown-body ol[type="1"]{list-style-type:decimal}.markdown-body div>ol:not([type]){list-style-type:decimal}.markdown-body ul ul,.markdown-body ul ol,.markdown-body ol ol,.markdown-body ol ul{margin-top:0;margin-bottom:0}.markdown-body li>p{margin-top:16px}.markdown-body li+li{margin-top:.25em}.markdown-body dl{padding:0}.markdown-body dl dt{padding:0;margin-top:16px;font-size:.875rem;font-style:italic;font-weight:var(--base-text-weight-semibold, 600)}.markdown-body dl dd{padding:0 16px;margin-bottom:16px}.markdown-body table th{font-weight:var(--base-text-weight-semibold, 600)}.markdown-body table th,.markdown-body table td{padding:6px 13px;border:1px solid var(--color-border-default)}.markdown-body table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted)}.markdown-body table tr:nth-child(2n){background-color:var(--color-canvas-subtle)}.markdown-body table img{background-color:transparent}.markdown-body img[align=right]{padding-left:20px}.markdown-body img[align=left]{padding-right:20px}.markdown-body code,.markdown-body tt{padding:.2em .4em;margin:0;font-size:85%;white-space:break-spaces;background-color:var(--color-neutral-muted);border-radius:6px}.markdown-body code br,.markdown-body tt br{display:none}.markdown-body del code{text-decoration:inherit}.markdown-body samp{font-size:85%}.markdown-body pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0}.markdown-body pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;background-color:var(--color-canvas-subtle);border-radius:6px}.markdown-body pre code,.markdown-body pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.markdown-body ::-webkit-calendar-picker-indicator{filter:invert(50%)}/*!
|
|
2
|
+
Theme: GitHub
|
|
3
|
+
Description: Light theme as seen on github.com
|
|
4
|
+
Author: github.com
|
|
5
|
+
Maintainer: @Hirse
|
|
6
|
+
Updated: 2021-05-15
|
|
7
|
+
|
|
8
|
+
Outdated base version: https://github.com/primer/github-syntax-light
|
|
9
|
+
Current colors taken from GitHub's CSS
|
|
10
|
+
*/.hljs{color:#24292e}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}/*!
|
|
11
|
+
Theme: GitHub Dark
|
|
12
|
+
Description: Dark theme as seen on github.com
|
|
13
|
+
Author: github.com
|
|
14
|
+
Maintainer: @Hirse
|
|
15
|
+
Updated: 2021-05-15
|
|
16
|
+
|
|
17
|
+
Outdated base version: https://github.com/primer/github-syntax-dark
|
|
18
|
+
Current colors taken from GitHub's CSS
|
|
19
|
+
*/.dark .hljs{color:#c9d1d9}.dark .hljs-doctag,.dark .hljs-keyword,.dark .hljs-meta .hljs-keyword,.dark .hljs-template-tag,.dark .hljs-template-variable,.dark .hljs-type,.dark .hljs-variable.language_{color:#ff7b72}.dark .hljs-title,.dark .hljs-title.class_,.dark .hljs-title.class_.inherited__,.dark .hljs-title.function_{color:#d2a8ff}.dark .hljs-attr,.dark .hljs-attribute,.dark .hljs-literal,.dark .hljs-meta,.dark .hljs-number,.dark .hljs-operator,.dark .hljs-variable,.dark .hljs-selector-attr,.dark .hljs-selector-class,.dark .hljs-selector-id{color:#79c0ff}.dark .hljs-regexp,.dark .hljs-string,.dark .hljs-meta .hljs-string{color:#a5d6ff}.dark .hljs-built_in,.dark .hljs-symbol{color:#ffa657}.dark .hljs-comment,.dark .hljs-code,.dark .hljs-formula{color:#8b949e}.dark .hljs-name,.dark .hljs-quote,.dark .hljs-selector-tag,.dark .hljs-selector-pseudo{color:#7ee787}.dark .hljs-subst{color:#c9d1d9}.dark .hljs-section{color:#1f6feb;font-weight:700}.dark .hljs-bullet{color:#f2cc60}.dark .hljs-emphasis{color:#c9d1d9;font-style:italic}.dark .hljs-strong{color:#c9d1d9;font-weight:700}.dark .hljs-addition{color:#aff5b4;background-color:#033a16}.dark .hljs-deletion{color:#ffdcd7;background-color:#67060c}.stage_iframe.svelte-3elosm{display:block;align-self:center;margin:auto;height:100%;width:100%;background-color:var(--c-basic-0)}.panel.svelte-3elosm{display:flex;flex-direction:column;flex-wrap:nowrap;position:relative;margin-bottom:.375rem;height:100%;width:100%;background-color:var(--c-basic-0);border-top:0;border-radius:0 0 .625rem .625rem;overflow-y:auto}.component_link.svelte-1tjv5dj.svelte-1tjv5dj{display:flex;justify-content:flex-start;align-items:center;margin:0;padding:.188rem 0;text-transform:initial;font-size:.813rem;color:var(--c-basic-600);line-height:1.2;font-weight:400}.component_link.svelte-1tjv5dj.svelte-1tjv5dj:hover,.component_link.svelte-1tjv5dj.svelte-1tjv5dj:focus-visible{color:var(--c-primary);font-weight:500;background-color:var(--c-basic-100)}.component_link.svelte-1tjv5dj .component_dot.svelte-1tjv5dj{display:block;margin:0 .5rem 0 -.219rem;height:.375rem;width:.375rem;background-color:transparent;border-radius:50%}.component_link.selected.svelte-1tjv5dj .component_dot.svelte-1tjv5dj{background-color:var(--c-primary)}.component_link.selected.svelte-1tjv5dj.svelte-1tjv5dj{margin-left:-1px;color:var(--c-primary);font-weight:600;background-color:var(--c-primary-bg);border-left:1px solid var(--c-primary)}.component_icon.svelte-1tjv5dj.svelte-1tjv5dj{display:flex;align-items:center;margin-right:.438rem;color:var(--c-basic-400)}.component_label.svelte-1tjv5dj.svelte-1tjv5dj{margin-right:.5rem;overflow:hidden;white-space:nowrap}.items.svelte-4ombcb.svelte-4ombcb{margin-left:1.063rem;border-left:1px solid var(--c-basic-250)}.level-1.svelte-4ombcb.svelte-4ombcb{width:100%;margin:0;padding:0;border:none}.folder.svelte-4ombcb.svelte-4ombcb{display:block;margin:0}.folder_btn.svelte-4ombcb.svelte-4ombcb{display:flex;justify-content:flex-start;align-items:center;width:100%;margin:0;padding:.5rem .688rem .375rem}.folder_label.svelte-4ombcb.svelte-4ombcb{display:flex;width:100%;font-size:.813rem;color:var(--c-basic-900);font-weight:600;text-transform:uppercase;overflow:hidden;white-space:nowrap}.folder_btn.svelte-4ombcb.svelte-4ombcb:hover{background-color:var(--c-basic-100)}.folder_btn.svelte-4ombcb:hover .folder_label.svelte-4ombcb{color:var(--c-primary)}.folder_btn.svelte-4ombcb.svelte-4ombcb:focus-visible{color:var(--c-primary);outline:none;background-color:var(--c-basic-100)}.folder_arrow.svelte-4ombcb.svelte-4ombcb{display:flex;align-items:center;width:.938rem;height:1.25rem;transition:.2s;margin-right:.375rem;color:var(--c-basic-900)}.folder_arrow.unfolded_icon.svelte-4ombcb.svelte-4ombcb{transform:rotate(180deg);transition:.2s}.folder_icon.svelte-4ombcb.svelte-4ombcb{display:flex;align-items:center;margin-right:.375rem;color:var(--c-primary)}.btn_level-3.svelte-4ombcb .folder_label.svelte-4ombcb{font-size:.813rem}.filter_list.svelte-4ombcb .highlight{padding:0 .125rem;color:var(--c-primary);font-weight:700}.sidebar_container.svelte-1m8srel.svelte-1m8srel{--w-sidebar:260px;display:flex;flex-direction:column;position:relative;margin:.375rem 0;width:0;max-width:var(--w-sidebar);height:calc(100vh - .75rem);background-color:var(--c-sidebar-bg);border-radius:.625rem;transition:width .1s;overflow:hidden}.show-sidebar.svelte-1m8srel.svelte-1m8srel{margin:.375rem .375rem .375rem 0;width:var(--w-sidebar);box-sizing:border-box}.project-identifier.svelte-1m8srel.svelte-1m8srel{position:relative;display:flex;flex-shrink:0;flex-direction:row;justify-content:center;align-items:center;padding:.25rem .688rem;margin:0 0 .125rem;width:var(--w-sidebar);height:2.25rem;background-color:var(--c-sidebar);z-index:9;inline-size:var(--w-sidebar);overflow:hidden;white-space:nowrap;font-size:1.25rem;color:var(--c-primary);text-decoration:none;font-weight:900;line-height:1}.project-identifier.has-logo.svelte-1m8srel.svelte-1m8srel{height:auto}.project-identifier.svelte-1m8srel.svelte-1m8srel:focus-visible{color:var(--c-basic-500)}.project-identifier.svelte-1m8srel span.svelte-1m8srel{overflow:hidden}.filter.svelte-1m8srel.svelte-1m8srel{display:flex;flex-shrink:0;margin:0 0 .25rem;padding:.25rem .688rem;height:2.25rem}.filter_input.svelte-1m8srel.svelte-1m8srel{padding:.125rem .125rem .125rem .688rem;width:100%;height:100%;color:var(--c-basic-900);background-color:var(--c-basic-0);border:1px solid var(--c-primary);border-radius:1.75rem}input.filter_input[type=search].svelte-1m8srel.svelte-1m8srel{font-size:.813rem}.filter_input.svelte-1m8srel.svelte-1m8srel::placeholder{font-size:.813rem;color:var(--c-basic-500)}.filter_input.svelte-1m8srel.svelte-1m8srel:focus-visible{background-color:var(--c-basic-100);border:1px solid var(--c-basic-500)}.filter_zero-results.svelte-1m8srel.svelte-1m8srel{width:var(--w-sidebar);padding:.5rem .688rem .375rem;text-transform:initial;font-size:.813rem;color:var(--c-basic-600);font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components.svelte-1m8srel.svelte-1m8srel{display:flex;flex-shrink:1;overflow:hidden;visibility:visible;width:var(--w-sidebar);overflow-y:auto;z-index:1;margin:0 0 1rem}.controls.svelte-1m8srel.svelte-1m8srel{display:none}@media (min-height: 35rem){.controls.svelte-1m8srel.svelte-1m8srel{display:block;flex-shrink:0;width:var(--w-sidebar);height:103px;bottom:.375rem;padding:0;background-color:var(--c-sidebar);border-top:1px solid var(--c-bg-body);border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem;overflow:hidden}}.controls_btn.svelte-1m8srel.svelte-1m8srel{display:flex;justify-content:flex-start;align-items:center;width:100%;height:2.125rem;margin:0;padding:0 .688rem;text-align:left}.controls_btn.svelte-1m8srel.svelte-1m8srel:hover,.controls_btn.svelte-1m8srel.svelte-1m8srel:focus-visible{background-color:var(--c-basic-100)}.controls_btn-icon.svelte-1m8srel.svelte-1m8srel{margin:0;color:var(--c-basic-700)}.controls_btn-label.svelte-1m8srel.svelte-1m8srel{position:relative;align-self:center;margin-left:.75rem;width:100%;color:var(--c-basic-900);font-size:.875rem;font-weight:400}.controls_btn.svelte-1m8srel:hover .controls_btn-label.svelte-1m8srel,.controls_btn.svelte-1m8srel:hover .controls_btn-icon.svelte-1m8srel,.controls_btn.svelte-1m8srel:focus-visible .controls_btn-label.svelte-1m8srel,.controls_btn.svelte-1m8srel:focus-visible .controls_btn-icon.svelte-1m8srel{color:var(--c-primary)}.topbar.svelte-1od1c7u.svelte-1od1c7u.svelte-1od1c7u{--h-topbar:2.25rem;margin:.375rem 0;width:100%;height:var(--h-topbar);background-color:var(--c-topbar-bg);border-radius:.625rem}.topbar_container.svelte-1od1c7u.svelte-1od1c7u.svelte-1od1c7u{display:flex;justify-content:space-between;width:100%;height:100%;padding:0}.topbar_nav.svelte-1od1c7u.svelte-1od1c7u.svelte-1od1c7u{display:flex;align-items:center}.topbar_btn.svelte-1od1c7u.svelte-1od1c7u.svelte-1od1c7u{display:flex;align-items:center;padding:0 .375rem;height:var(--h-topbar);background:none}.topbar_btn.svelte-1od1c7u.svelte-1od1c7u.svelte-1od1c7u:hover{background-color:var(--c-basic-100)}.topbar_btn.svelte-1od1c7u svg.svelte-1od1c7u.svelte-1od1c7u{height:1.125rem;color:var(--c-basic-700)}.topbar_btn.svelte-1od1c7u:hover svg.svelte-1od1c7u.svelte-1od1c7u,.topbar_btn.svelte-1od1c7u:focus-visible svg.svelte-1od1c7u.svelte-1od1c7u{color:var(--c-primary)}.topbar_btn.svelte-1od1c7u.svelte-1od1c7u.svelte-1od1c7u:focus-visible{background-color:var(--c-basic-150)}.is-first-btn.svelte-1od1c7u.svelte-1od1c7u.svelte-1od1c7u{border-radius:.5rem 0 0 .5rem}.is-last-btn.svelte-1od1c7u.svelte-1od1c7u.svelte-1od1c7u{border-radius:0 .5rem .5rem 0}.stagesize-value.svelte-1od1c7u.svelte-1od1c7u.svelte-1od1c7u{display:none}@media (min-width: 640px){.stagesize-value.svelte-1od1c7u.svelte-1od1c7u.svelte-1od1c7u{display:inline-flex;align-items:center;font-size:.75rem;padding:0 1rem;font-family:ui-monospace,Menlo,Monaco,Cascadia Mono,Segoe UI Mono,Roboto Mono,Oxygen Mono,"Ubuntu Monospace",Source Code Pro,Fira Mono,Droid Sans Mono,Courier New,"monospace";color:var(--c-basic-600)}.stagesize-value-multi_sign.svelte-1od1c7u.svelte-1od1c7u.svelte-1od1c7u{margin:0 .25rem;font-size:.813rem}}.stagesize-nav.svelte-1od1c7u.svelte-1od1c7u.svelte-1od1c7u{display:none}@media (min-width: 1280px){.stagesize-nav.svelte-1od1c7u.svelte-1od1c7u.svelte-1od1c7u{position:relative;display:inline-flex;margin:0 .75rem;background-color:var(--c-basic-100)}.stagesize-nav.svelte-1od1c7u button.svelte-1od1c7u.svelte-1od1c7u{position:relative;display:flex;justify-content:center;flex-direction:column;align-self:center;height:var(--h-topbar);margin:0;padding:0 .25rem;background:none;overflow:hidden}.stagesize-nav.svelte-1od1c7u button.svelte-1od1c7u.svelte-1od1c7u:hover,.stagesize-nav.svelte-1od1c7u button.svelte-1od1c7u.svelte-1od1c7u:focus-visible{background-color:var(--c-basic-150)}.stagesize-nav.svelte-1od1c7u button.svelte-1od1c7u svg.svelte-1od1c7u{height:1.125rem;color:var(--c-basic-700);transition:.2s}.stagesize-nav.svelte-1od1c7u button.svelte-1od1c7u:hover svg.svelte-1od1c7u,.stagesize-nav.svelte-1od1c7u button.svelte-1od1c7u:focus-visible svg.svelte-1od1c7u,.stagesize-nav.svelte-1od1c7u button.active svg.svelte-1od1c7u.svelte-1od1c7u{color:var(--c-primary)}.stagesize-nav.svelte-1od1c7u button svg.landscape.svelte-1od1c7u.svelte-1od1c7u{transform:rotate(90deg);transition:.2s}.stagesize-nav.svelte-1od1c7u button .dot.svelte-1od1c7u.svelte-1od1c7u{display:block;position:absolute;left:50%;bottom:.125rem;transform:translate(-50%);height:.313rem;width:.313rem;background-color:transparent;border-radius:50%}.stagesize-nav.svelte-1od1c7u button.active.svelte-1od1c7u.svelte-1od1c7u{background-color:var(--c-primary-bg)}.stagesize-nav.svelte-1od1c7u button.active .dot.svelte-1od1c7u.svelte-1od1c7u{background-color:var(--c-primary)}}.dropdown.svelte-1od1c7u.svelte-1od1c7u.svelte-1od1c7u{position:relative;display:inline-block}.dropdown_items.svelte-1od1c7u.svelte-1od1c7u.svelte-1od1c7u{visibility:hidden;position:absolute;left:-.75rem;padding:.375rem 0 0;z-index:9}.dropdown_items.svelte-1od1c7u ul.svelte-1od1c7u.svelte-1od1c7u{margin:0;padding:0;background-color:var(--c-basic-50);filter:drop-shadow(0px 5px 5px rgba(0,0,0,.05)) drop-shadow(0 1px 3px rgba(0,0,0,.1));border-radius:.5rem;overflow:hidden}.dropdown_items.svelte-1od1c7u ul li.svelte-1od1c7u.svelte-1od1c7u{display:block;list-style:none;margin:0;padding:0}.dropdown_items.svelte-1od1c7u ul li button.svelte-1od1c7u.svelte-1od1c7u{display:flex;align-items:center;justify-items:flex-start;width:100%;min-width:113px;padding:.5rem;font-size:.75rem;color:var(--c-basic-900);text-transform:capitalize;white-space:nowrap}.dropdown_items.svelte-1od1c7u ul li button .dropdown_item-dot.svelte-1od1c7u.svelte-1od1c7u{display:block;margin:0 .5rem 0 0;height:.313rem;width:.313rem;background-color:transparent;border-radius:50%}.dropdown_items.svelte-1od1c7u ul li button.active .dropdown_item-dot.svelte-1od1c7u.svelte-1od1c7u,.dropdown_items.svelte-1od1c7u ul li button.active:hover .dropdown_item-dot.svelte-1od1c7u.svelte-1od1c7u{background-color:var(--c-primary)}.dropdown_items.svelte-1od1c7u ul li button.svelte-1od1c7u.svelte-1od1c7u:hover,.dropdown_items.svelte-1od1c7u ul li button.svelte-1od1c7u.svelte-1od1c7u:focus-visible{color:var(--c-primary);font-weight:500;background-color:var(--c-basic-100)}.dropdown_items.svelte-1od1c7u ul li button.active.svelte-1od1c7u.svelte-1od1c7u{color:var(--c-primary);font-weight:500;background-color:var(--c-primary-bg);border-color:var(--c-primary)}.dropdown.svelte-1od1c7u:hover>.dropdown_items.svelte-1od1c7u.svelte-1od1c7u,.dropdown.svelte-1od1c7u:focus-visible>.dropdown_items.svelte-1od1c7u.svelte-1od1c7u{display:block;visibility:visible}.sidebar.svelte-yh1ir7.svelte-yh1ir7{flex-grow:0;flex-shrink:0}.garden.svelte-yh1ir7.svelte-yh1ir7{display:flex;flex-direction:row;flex-wrap:nowrap;flex-grow:1;margin:0;padding:0 .375rem;width:100vw;height:100vh;overflow:hidden;background-color:var(--c-bg-body)}.main.svelte-yh1ir7.svelte-yh1ir7{display:flex;flex-direction:column;width:100%;height:100vh;overflow-y:auto}.message.svelte-yh1ir7.svelte-yh1ir7{display:inline-block;margin:1rem;padding:1rem;background-color:#fff;border-radius:.625rem}.click-completed.svelte-yh1ir7.svelte-yh1ir7{margin:0 0 .75rem;font-size:120%;font-weight:500}.instruction.svelte-yh1ir7 button.svelte-yh1ir7{padding:.125rem .75rem;background:var(--c-basic-150);border-radius:.375rem;font-size:90%;color:var(--c-basic-900);font-weight:600;text-transform:uppercase}*,:before,:after{box-sizing:border-box;border:0 solid #fff}*:focus,*:focus:not(:focus-visible){outline:none}html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}body{margin:0;min-height:100vh;text-rendering:optimizeSpeed;line-height:1}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}a{text-decoration-skip-ink:auto}img,picture,embed,object,video{max-width:100%;width:auto;height:auto}img,video,canvas,audio,iframe,embed,object{display:block;border:none}input,button,textarea,select{font:inherit}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}:root{--c-primary: hsl(185, 80%, 40%);--c-primary-bg: hsl(185, 100%, 95%);--c-basic-0: hsl(216, 20%, 100%);--c-basic-50: hsl(216, 20%, 98%);--c-basic-75: hsl(216, 20%, 96%);--c-basic-100: hsl(216, 20%, 94%);--c-basic-150: hsl(216, 20%, 90%);--c-basic-200: hsl(216, 20%, 87%);--c-basic-250: hsl(216, 20%, 84%);--c-basic-300: hsl(216, 20%, 81%);--c-basic-400: hsl(216, 20%, 64%);--c-basic-500: hsl(216, 20%, 46%);--c-basic-600: hsl(216, 20%, 32%);--c-basic-700: hsl(216, 20%, 25%);--c-basic-800: hsl(216, 20%, 15%);--c-basic-900: hsl(216, 20%, 10%);--c-bg-body: var(--c-basic-200);--c-topbar-bg: var(--c-basic-0);--c-sidebar-bg: var(--c-basic-0);--c-dragbar-bg: var(--c-basic-100);--c-dragbar-bg-hover: var(--c-basic-200)}[data-theme=dark]{--c-primary: hsl(185, 80%, 70%);--c-primary-bg: hsl(185, 80%, 17%);--c-basic-0: hsl(216, 30%, 5%);--c-basic-50: hsl(216, 30%, 10%);--c-basic-75: hsl(216, 30%, 14%);--c-basic-100: hsl(216, 30%, 18%);--c-basic-150: hsl(216, 30%, 22%);--c-basic-200: hsl(216, 30%, 25%);--c-basic-250: hsl(216, 30%, 30%);--c-basic-300: hsl(216, 30%, 33%);--c-basic-400: hsl(216, 30%, 46%);--c-basic-500: hsl(216, 30%, 64%);--c-basic-600: hsl(216, 30%, 83%);--c-basic-700: hsl(216, 30%, 90%);--c-basic-800: hsl(216, 30%, 96%);--c-basic-900: hsl(216, 30%, 98%);--c-bg-body: var(--c-basic-150);--c-topbar-bg: var(--c-basic-0);--c-sidebar-bg: var(--c-basic-0);--c-dragbar-bg: var(--c-basic-250);--c-dragbar-bg-hover: var(--c-basic-150)}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";text-shadow:1px 1px 1px rgba(0,0,0,.004);-webkit-font-smoothing:antialiased;-moz-font-smoothing:antialiased}h1,h2,h3,h4,h5,h6{margin:0;color:var(--c-basic-600);line-height:1.2}p{margin:.5rem 0;font-size:.875rem;color:var(--c-basic-600);line-height:1.5}li{font-size:.875rem;line-height:1.5}a,a:visited{font-size:.875rem;line-height:1.5;text-decoration:underline;text-decoration-skip-ink:auto}nav ol,nav ul{margin:0;padding:0;list-style:none}nav li{display:block;margin:0;padding:0}nav a{display:block;margin:0;padding:0;text-decoration:none}button{cursor:pointer;background-color:transparent;border:none}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var fl=Object.defineProperty;var dl=(s,e,t)=>e in s?fl(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var dn=(s,e,t)=>dl(s,typeof e!="symbol"?e+"":e,t);import{S as be,i as we,s as ke,c as mt,e as E,a as j,b as y,d as _,f as g,g as B,h as o,j as ht,t as P,k as D,l as m,m as te,u as kt,n as _t,o as bt,p as U,q as Z,r as tt,v as qn,w as Zn,x as vt,y as me,z as en,A as pn,B as Te,C as We,D as Ie,E as ze,F as Qe,G as Se,H as Ge,I as gn,J as mn,K as kn,L as Bt,M as Dt,N as se,O as ie,P as Fn,Q as He,R as fe,T as tn,U as nn,V as wt,W as pl,X as V,Y as W,Z as Y,_ as ae}from"./index-C-da04Xe.js";import{navTree as gl,routes as ml}from"../base.js";import{dasMap as kl}from"../das_import_map.js";import _l from"../../garden.config.js";function qe(s){return(s==null?void 0:s.length)!==void 0?s:Array.from(s)}const bl=s=>({}),_n=s=>({}),wl=s=>({}),bn=s=>({});function vl(s){let e,t,n,l,i,r,a,c;const u=s[8].top,h=mt(u,s,s[7],bn),f=s[8].bottom,d=mt(f,s,s[7],_n);return{c(){e=E("div"),t=E("div"),h&&h.c(),n=j(),l=E("div"),i=j(),d&&d.c(),this.h()},l(p){e=y(p,"DIV",{class:!0});var b=_(e);t=y(b,"DIV",{class:!0,style:!0});var T=_(t);h&&h.l(T),T.forEach(g),n=B(b),l=y(b,"DIV",{class:!0}),_(l).forEach(g),i=B(b),d&&d.l(b),b.forEach(g),this.h()},h(){o(t,"class","top svelte-1pql0kc"),ht(t,"height",s[2]),o(l,"class","dragbar svelte-1pql0kc"),P(l,"dragging",s[1]),o(e,"class","container svelte-1pql0kc")},m(p,b){D(p,e,b),m(e,t),h&&h.m(t,null),m(e,n),m(e,l),m(e,i),d&&d.m(e,null),s[9](e),r=!0,a||(c=te(l,"mousedown",s[3]),a=!0)},p(p,[b]){h&&h.p&&(!r||b&128)&&kt(h,u,p,p[7],r?bt(u,p[7],b,wl):_t(p[7]),bn),(!r||b&4)&&ht(t,"height",p[2]),(!r||b&2)&&P(l,"dragging",p[1]),d&&d.p&&(!r||b&128)&&kt(d,f,p,p[7],r?bt(f,p[7],b,bl):_t(p[7]),_n)},i(p){r||(U(h,p),U(d,p),r=!0)},o(p){Z(h,p),Z(d,p),r=!1},d(p){p&&g(e),h&&h.d(p),d&&d.d(p),s[9](null),a=!1,c()}}}function xl(s,e,t){let{$$slots:n={},$$scope:l}=e;const i=tt();let{topHeight:r}=e,{maxHeight:a}=e,c,u=!1,h=!1,f;const d=new ResizeObserver(w=>{w.forEach(()=>{i("out",{maxHeight:c.offsetHeight,maxWidth:c.offsetWidth})})});qn(()=>{d.observe(c)}),Zn(()=>{d.disconnect()});function p(){document.addEventListener("mousemove",b),document.addEventListener("mouseup",T),t(1,u=!0)}const b=w=>{window.getSelection().removeAllRanges();const k=Math.min(a,w.pageY-c.offsetTop-7);t(4,r=k),i("out",{topHeight:r})};function T(){document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",T),i("out",{topHeight:r}),t(1,u=!1)}function S(w){vt[w?"unshift":"push"](()=>{c=w,t(0,c)})}return s.$$set=w=>{"topHeight"in w&&t(4,r=w.topHeight),"maxHeight"in w&&t(5,a=w.maxHeight),"$$scope"in w&&t(7,l=w.$$scope)},s.$$.update=()=>{if(s.$$.dirty&65&&c&&!h){t(6,h=!0);const w=c.offsetHeight;i("out",{maxHeight:w,topHeight:Math.round(w*.7)})}s.$$.dirty&48&&Number.isInteger(r)&&Number.isInteger(a)&&t(2,f=a<r?a+"px":r+"px")},[c,u,f,p,r,a,h,l,n,S]}class El extends be{constructor(e){super(),we(this,e,xl,vl,ke,{topHeight:4,maxHeight:5})}}function yl(s){let e,t,n,l,i='<svg width="6" height="24" xmlns="http://www.w3.org/2000/svg"><path d="M1 1v22M5 1v22" fill="none" stroke-linecap="round" stroke="#000" stroke-width="2" class="svelte-gdxark"></path></svg>',r,a,c='<svg width="24" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M1 1h22M1 5h22" fill="none" stroke-linecap="round" stroke="#000" stroke-width="2" class="svelte-gdxark"></path></svg>',u,h,f='<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M12 4l-8 8m9-3l-4 4" fill="none" stroke-linecap="round" stroke="#000" stroke-width="2" class="svelte-gdxark"></path></svg>',d,p,b;const T=s[10].default,S=mt(T,s,s[9],null);return{c(){e=E("div"),t=E("div"),S&&S.c(),n=j(),l=E("div"),l.innerHTML=i,r=j(),a=E("div"),a.innerHTML=c,u=j(),h=E("div"),h.innerHTML=f,this.h()},l(w){e=y(w,"DIV",{class:!0});var k=_(e);t=y(k,"DIV",{class:!0});var v=_(t);S&&S.l(v),v.forEach(g),n=B(k),l=y(k,"DIV",{class:!0,"data-svelte-h":!0}),me(l)!=="svelte-rpfu7a"&&(l.innerHTML=i),r=B(k),a=y(k,"DIV",{class:!0,"data-svelte-h":!0}),me(a)!=="svelte-vbo0f6"&&(a.innerHTML=c),u=B(k),h=y(k,"DIV",{class:!0,"data-svelte-h":!0}),me(h)!=="svelte-1n1qobn"&&(h.innerHTML=f),k.forEach(g),this.h()},h(){o(t,"class","resizepane"),P(t,"disabled",s[0]),ht(t,"width",s[0]?void 0:s[3]),ht(t,"height",s[0]?void 0:s[2]),o(l,"class","dragbar vertical svelte-gdxark"),P(l,"disabled",s[0]),o(a,"class","dragbar horizontal svelte-gdxark"),P(a,"disabled",s[0]),o(h,"class","dragbar corner svelte-gdxark"),P(h,"disabled",s[0]),o(e,"class","resizepane-container svelte-gdxark"),P(e,"disabled",s[0])},m(w,k){D(w,e,k),m(e,t),S&&S.m(t,null),s[11](t),m(e,n),m(e,l),m(e,r),m(e,a),m(e,u),m(e,h),d=!0,p||(b=[te(l,"mousedown",s[4]("vertical")),te(a,"mousedown",s[4]("horizontal")),te(h,"mousedown",s[4]("verticalhorizontal"))],p=!0)},p(w,[k]){S&&S.p&&(!d||k&512)&&kt(S,T,w,w[9],d?bt(T,w[9],k,null):_t(w[9]),null),(!d||k&1)&&P(t,"disabled",w[0]),k&9&&ht(t,"width",w[0]?void 0:w[3]),k&5&&ht(t,"height",w[0]?void 0:w[2]),(!d||k&1)&&P(l,"disabled",w[0]),(!d||k&1)&&P(a,"disabled",w[0]),(!d||k&1)&&P(h,"disabled",w[0]),(!d||k&1)&&P(e,"disabled",w[0])},i(w){d||(U(S,w),d=!0)},o(w){Z(S,w),d=!1},d(w){w&&g(e),S&&S.d(w),s[11](null),p=!1,en(b)}}}function Tl(s,e,t){let{$$slots:n={},$$scope:l}=e,{disabled:i=!1}=e,{maxHeight:r}=e,{maxWidth:a}=e,c="full",u="full",h,f="",d,p;const b=k=>()=>{f=k,document.addEventListener("mousemove",T),document.addEventListener("mouseup",S)},T=k=>{if(window.getSelection().removeAllRanges(),f.includes("horizontal")){let v=k.pageY-h.offsetTop;v>r?t(7,c="full"):(v=Math.min(r,v),t(7,c=Math.max(50,v)))}if(f.includes("vertical")){let v=k.pageX-h.offsetLeft;v>a?t(8,u="full"):(v=Math.min(a,v),t(8,u=Math.max(50,v)))}};function S(){document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",S)}function w(k){vt[k?"unshift":"push"](()=>{h=k,t(1,h)})}return s.$$set=k=>{"disabled"in k&&t(0,i=k.disabled),"maxHeight"in k&&t(5,r=k.maxHeight),"maxWidth"in k&&t(6,a=k.maxWidth),"$$scope"in k&&t(9,l=k.$$scope)},s.$$.update=()=>{s.$$.dirty&97&&i&&(t(7,c=r),t(8,u=a)),s.$$.dirty&160&&(Number.isInteger(c)?t(2,d=Math.min(c,r)+"px"):t(2,d=r+"px")),s.$$.dirty&320&&(Number.isInteger(u)?t(3,p=Math.min(u,a)+"px"):t(3,p=a+"px"))},[i,h,d,p,b,r,a,c,u,l,n,w]}class zl extends be{constructor(e){super(),we(this,e,Tl,yl,ke,{disabled:0,maxHeight:5,maxWidth:6})}}function Sl(s){let e,t,n;const l=[s[0].props];var i=s[0].page;function r(a,c){let u={};for(let h=0;h<l.length;h+=1)u=kn(u,l[h]);return c!==void 0&&c&1&&(u=kn(u,gn(l,[mn(a[0].props)]))),{props:u}}return i&&(e=pn(i,r(s)),e.$on("out",s[1])),{c(){e&&Te(e.$$.fragment),t=We()},l(a){e&&Ie(e.$$.fragment,a),t=We()},m(a,c){e&&ze(e,a,c),D(a,t,c),n=!0},p(a,[c]){if(c&1&&i!==(i=a[0].page)){if(e){Qe();const u=e;Z(u.$$.fragment,1,0,()=>{Se(u,1)}),Ge()}i?(e=pn(i,r(a,c)),e.$on("out",a[1]),Te(e.$$.fragment),U(e.$$.fragment,1),ze(e,t.parentNode,t)):e=null}else if(i){const u=c&1?gn(l,[mn(a[0].props)]):{};e.$set(u)}},i(a){n||(e&&U(e.$$.fragment,a),n=!0)},o(a){e&&Z(e.$$.fragment,a),n=!1},d(a){a&&g(t),e&&Se(e,a)}}}function Cl(s,e,t){let{item:n={}}=e;function l(i){Bt.call(this,s,i)}return s.$$set=i=>{"item"in i&&t(0,n=i.item)},[n,l]}class Rl extends be{constructor(e){super(),we(this,e,Cl,Sl,ke,{item:0})}}function wn(s,e,t){const n=s.slice();return n[9]=e[t],n}function vn(s){let e,t,n,l,i,r='<svg class="controls_btn-icon svelte-19zoa7t" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"></rect><line x1="3" x2="21" y1="15" y2="15"></line><path d="m15 8-3 3-3-3"></path></svg>',a,c,u,h,f,d,p,b=qe(s[0]),T=[];for(let v=0;v<b.length;v+=1)T[v]=xn(wn(s,b,v));const S=[Ml,Il],w=[];function k(v,z){return v[1]&&v[1].page?0:1}return u=k(s),h=w[u]=S[u](s),{c(){e=E("div"),t=E("nav"),n=E("ul");for(let v=0;v<T.length;v+=1)T[v].c();l=j(),i=E("button"),i.innerHTML=r,a=j(),c=E("div"),h.c(),this.h()},l(v){e=y(v,"DIV",{class:!0});var z=_(e);t=y(z,"NAV",{class:!0});var I=_(t);n=y(I,"UL",{class:!0});var C=_(n);for(let F=0;F<T.length;F+=1)T[F].l(C);C.forEach(g),I.forEach(g),l=B(z),i=y(z,"BUTTON",{class:!0,title:!0,"data-svelte-h":!0}),me(i)!=="svelte-mhvd"&&(i.innerHTML=r),z.forEach(g),a=B(v),c=y(v,"DIV",{class:!0});var H=_(c);h.l(H),H.forEach(g),this.h()},h(){o(n,"class","svelte-19zoa7t"),o(t,"class","svelte-19zoa7t"),o(i,"class","panel_toggle svelte-19zoa7t"),o(i,"title","Collapse panel"),o(e,"class","panel_nav svelte-19zoa7t"),o(c,"class","panel_pane svelte-19zoa7t")},m(v,z){D(v,e,z),m(e,t),m(t,n);for(let I=0;I<T.length;I+=1)T[I]&&T[I].m(n,null);m(e,l),m(e,i),D(v,a,z),D(v,c,z),w[u].m(c,null),f=!0,d||(p=te(i,"click",s[3]),d=!0)},p(v,z){if(z&7){b=qe(v[0]);let C;for(C=0;C<b.length;C+=1){const H=wn(v,b,C);T[C]?T[C].p(H,z):(T[C]=xn(H),T[C].c(),T[C].m(n,null))}for(;C<T.length;C+=1)T[C].d(1);T.length=b.length}let I=u;u=k(v),u===I?w[u].p(v,z):(Qe(),Z(w[I],1,1,()=>{w[I]=null}),Ge(),h=w[u],h?h.p(v,z):(h=w[u]=S[u](v),h.c()),U(h,1),h.m(c,null))},i(v){f||(U(h),f=!0)},o(v){Z(h),f=!1},d(v){v&&(g(e),g(a),g(c)),Dt(T,v),w[u].d(),d=!1,p()}}}function xn(s){let e,t,n=s[9].name+"",l,i,r,a,c;return{c(){e=E("li"),t=E("button"),l=se(n),i=E("span"),r=j(),this.h()},l(u){e=y(u,"LI",{});var h=_(e);t=y(h,"BUTTON",{class:!0});var f=_(t);l=ie(f,n),i=y(f,"SPAN",{class:!0}),_(i).forEach(g),f.forEach(g),r=B(h),h.forEach(g),this.h()},h(){o(i,"class","dot svelte-19zoa7t"),o(t,"class","svelte-19zoa7t"),P(t,"active",s[9]==s[1])},m(u,h){D(u,e,h),m(e,t),m(t,l),m(t,i),m(e,r),a||(c=te(t,"click",function(){Fn(s[2](s[9]))&&s[2](s[9]).apply(this,arguments)}),a=!0)},p(u,h){s=u,h&1&&n!==(n=s[9].name+"")&&He(l,n),h&3&&P(t,"active",s[9]==s[1])},d(u){u&&g(e),a=!1,c()}}}function Il(s){let e;const t=s[7].default,n=mt(t,s,s[6],null),l=n||Ll();return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){n&&n.p&&(!e||r&64)&&kt(n,t,i,i[6],e?bt(t,i[6],r,null):_t(i[6]),null)},i(i){e||(U(l,i),e=!0)},o(i){Z(l,i),e=!1},d(i){l&&l.d(i)}}}function Ml(s){let e,t;return e=new Rl({props:{item:s[1]}}),e.$on("out",s[4]),{c(){Te(e.$$.fragment)},l(n){Ie(e.$$.fragment,n)},m(n,l){ze(e,n,l),t=!0},p(n,l){const i={};l&2&&(i.item=n[1]),e.$set(i)},i(n){t||(U(e.$$.fragment,n),t=!0)},o(n){Z(e.$$.fragment,n),t=!1},d(n){Se(e,n)}}}function Ll(s){let e;return{c(){e=se("No tab content provided")},l(t){e=ie(t,"No tab content provided")},m(t,n){D(t,e,n)},d(t){t&&g(e)}}}function Nl(s){let e,t,n=s[0].length&&vn(s);return{c(){e=E("div"),n&&n.c(),this.h()},l(l){e=y(l,"DIV",{class:!0});var i=_(e);n&&n.l(i),i.forEach(g),this.h()},h(){o(e,"class","panel_container svelte-19zoa7t")},m(l,i){D(l,e,i),n&&n.m(e,null),t=!0},p(l,[i]){l[0].length?n?(n.p(l,i),i&1&&U(n,1)):(n=vn(l),n.c(),U(n,1),n.m(e,null)):n&&(Qe(),Z(n,1,1,()=>{n=null}),Ge())},i(l){t||(U(n),t=!0)},o(l){Z(n),t=!1},d(l){l&&g(e),n&&n.d()}}}function Al(s,e,t){let{$$slots:n={},$$scope:l}=e;const i=tt();let{tabs:r=[]}=e,a={},c;const u=d=>()=>{t(5,a=d.name),i("out",{selecteditem:d})};function h(){i("out",{toggleExpandPanel:!0})}function f(d){c.out&&c.out(d)}return s.$$set=d=>{"tabs"in d&&t(0,r=d.tabs),"$$scope"in d&&t(6,l=d.$$scope)},s.$$.update=()=>{s.$$.dirty&33&&(r?t(1,c=r.find(d=>d.name===a)||r[0]):t(1,c={}))},[r,c,u,h,f,a,l,n]}class Hl extends be{constructor(e){super(),we(this,e,Al,Nl,ke,{tabs:0})}}function En(s,e,t){const n=s.slice();return n[4]=e[t],n}function yn(s){let e,t,n,l,i=s[4]+"",r,a,c,u;return{c(){e=E("li"),t=E("button"),n=E("span"),l=j(),r=se(i),a=j(),this.h()},l(h){e=y(h,"LI",{});var f=_(e);t=y(f,"BUTTON",{class:!0});var d=_(t);n=y(d,"SPAN",{class:!0}),_(n).forEach(g),l=B(d),r=ie(d,i),d.forEach(g),a=B(f),f.forEach(g),this.h()},h(){o(n,"class","dot svelte-9ikz8y"),o(t,"class","svelte-9ikz8y"),P(e,"active",s[1]==s[4])},m(h,f){D(h,e,f),m(e,t),m(t,n),m(t,l),m(t,r),m(e,a),c||(u=te(t,"click",function(){Fn(s[2](s[4]))&&s[2](s[4]).apply(this,arguments)}),c=!0)},p(h,f){s=h,f&1&&i!==(i=s[4]+"")&&He(r,i),f&3&&P(e,"active",s[1]==s[4])},d(h){h&&g(e),c=!1,u()}}}function jl(s){let e,t=qe(s[0]),n=[];for(let l=0;l<t.length;l+=1)n[l]=yn(En(s,t,l));return{c(){e=E("ul");for(let l=0;l<n.length;l+=1)n[l].c();this.h()},l(l){e=y(l,"UL",{class:!0});var i=_(e);for(let r=0;r<n.length;r+=1)n[r].l(i);i.forEach(g),this.h()},h(){o(e,"class","stories svelte-9ikz8y")},m(l,i){D(l,e,i);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(l,[i]){if(i&7){t=qe(l[0]);let r;for(r=0;r<t.length;r+=1){const a=En(l,t,r);n[r]?n[r].p(a,i):(n[r]=yn(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},i:fe,o:fe,d(l){l&&g(e),Dt(n,l)}}}function Bl(s,e,t){let{items:n=[]}=e,{selected:l}=e;const i=tt(),r=a=>()=>{i("out",{selecteditem:a})};return s.$$set=a=>{"items"in a&&t(0,n=a.items),"selected"in a&&t(1,l=a.selected)},[n,l,r]}class Dl extends be{constructor(e){super(),we(this,e,Bl,jl,ke,{items:0,selected:1})}}function Qn(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let nt=Qn();function Pl(s){nt=s}const Gn=/[&<>"']/,Ol=new RegExp(Gn.source,"g"),Xn=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Ul=new RegExp(Xn.source,"g"),Vl={"&":"&","<":"<",">":">",'"':""","'":"'"},Tn=s=>Vl[s];function he(s,e){if(e){if(Gn.test(s))return s.replace(Ol,Tn)}else if(Xn.test(s))return s.replace(Ul,Tn);return s}const Wl=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Yn(s){return s.replace(Wl,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const ql=/(^|[^\[])\^/g;function J(s,e){s=typeof s=="string"?s:s.source,e=e||"";const t={replace:(n,l)=>(l=l.source||l,l=l.replace(ql,"$1"),s=s.replace(n,l),t),getRegex:()=>new RegExp(s,e)};return t}const Zl=/[^\w:]/g,Fl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function zn(s,e,t){if(s){let n;try{n=decodeURIComponent(Yn(t)).replace(Zl,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}e&&!Fl.test(t)&&(t=Yl(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const Ct={},Ql=/^[^:]+:\/*[^/]*$/,Gl=/^([^:]+:)[\s\S]*$/,Xl=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Yl(s,e){Ct[" "+s]||(Ql.test(s)?Ct[" "+s]=s+"/":Ct[" "+s]=Rt(s,"/",!0)),s=Ct[" "+s];const t=s.indexOf(":")===-1;return e.substring(0,2)==="//"?t?e:s.replace(Gl,"$1")+e:e.charAt(0)==="/"?t?e:s.replace(Xl,"$1")+e:s+e}const Mt={exec:function(){}};function Sn(s,e){const t=s.replace(/\|/g,(i,r,a)=>{let c=!1,u=r;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),n=t.split(/ \|/);let l=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;l<n.length;l++)n[l]=n[l].trim().replace(/\\\|/g,"|");return n}function Rt(s,e,t){const n=s.length;if(n===0)return"";let l=0;for(;l<n;){const i=s.charAt(n-l-1);if(i===e&&!t)l++;else if(i!==e&&t)l++;else break}return s.slice(0,n-l)}function Jl(s,e){if(s.indexOf(e[1])===-1)return-1;const t=s.length;let n=0,l=0;for(;l<t;l++)if(s[l]==="\\")l++;else if(s[l]===e[0])n++;else if(s[l]===e[1]&&(n--,n<0))return l;return-1}function Kl(s){s&&s.sanitize&&!s.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Cn(s,e){if(e<1)return"";let t="";for(;e>1;)e&1&&(t+=s),e>>=1,s+=s;return t+s}function Rn(s,e,t,n){const l=e.href,i=e.title?he(e.title):null,r=s[1].replace(/\\([\[\]])/g,"$1");if(s[0].charAt(0)!=="!"){n.state.inLink=!0;const a={type:"link",raw:t,href:l,title:i,text:r,tokens:n.inlineTokens(r)};return n.state.inLink=!1,a}return{type:"image",raw:t,href:l,title:i,text:he(r)}}function $l(s,e){const t=s.match(/^(\s+)(?:```)/);if(t===null)return e;const n=t[1];return e.split(`
|
|
2
|
+
`).map(l=>{const i=l.match(/^\s+/);if(i===null)return l;const[r]=i;return r.length>=n.length?l.slice(n.length):l}).join(`
|
|
3
|
+
`)}class ln{constructor(e){this.options=e||nt}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Rt(n,`
|
|
4
|
+
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],l=$l(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:l}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){const l=Rt(n,"#");(this.options.pedantic||!l||/ $/.test(l))&&(n=l.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const n=t[0].replace(/^ *>[ \t]?/gm,""),l=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(n);return this.lexer.state.top=l,{type:"blockquote",raw:t[0],tokens:i,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,l,i,r,a,c,u,h,f,d,p,b,T=t[1].trim();const S=T.length>1,w={type:"list",raw:"",ordered:S,start:S?+T.slice(0,-1):"",loose:!1,items:[]};T=S?`\\d{1,9}\\${T.slice(-1)}`:`\\${T}`,this.options.pedantic&&(T=S?T:"[*+-]");const k=new RegExp(`^( {0,3}${T})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(b=!1,!(!(t=k.exec(e))||this.rules.block.hr.test(e)));){if(n=t[0],e=e.substring(n.length),h=t[2].split(`
|
|
5
|
+
`,1)[0].replace(/^\t+/,z=>" ".repeat(3*z.length)),f=e.split(`
|
|
6
|
+
`,1)[0],this.options.pedantic?(r=2,p=h.trimLeft()):(r=t[2].search(/[^ ]/),r=r>4?1:r,p=h.slice(r),r+=t[1].length),c=!1,!h&&/^ *$/.test(f)&&(n+=f+`
|
|
7
|
+
`,e=e.substring(f.length+1),b=!0),!b){const z=new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),I=new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),C=new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),H=new RegExp(`^ {0,${Math.min(3,r-1)}}#`);for(;e&&(d=e.split(`
|
|
8
|
+
`,1)[0],f=d,this.options.pedantic&&(f=f.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(C.test(f)||H.test(f)||z.test(f)||I.test(e)));){if(f.search(/[^ ]/)>=r||!f.trim())p+=`
|
|
9
|
+
`+f.slice(r);else{if(c||h.search(/[^ ]/)>=4||C.test(h)||H.test(h)||I.test(h))break;p+=`
|
|
10
|
+
`+f}!c&&!f.trim()&&(c=!0),n+=d+`
|
|
11
|
+
`,e=e.substring(d.length+1),h=f.slice(r)}}w.loose||(u?w.loose=!0:/\n *\n *$/.test(n)&&(u=!0)),this.options.gfm&&(l=/^\[[ xX]\] /.exec(p),l&&(i=l[0]!=="[ ] ",p=p.replace(/^\[[ xX]\] +/,""))),w.items.push({type:"list_item",raw:n,task:!!l,checked:i,loose:!1,text:p}),w.raw+=n}w.items[w.items.length-1].raw=n.trimRight(),w.items[w.items.length-1].text=p.trimRight(),w.raw=w.raw.trimRight();const v=w.items.length;for(a=0;a<v;a++)if(this.lexer.state.top=!1,w.items[a].tokens=this.lexer.blockTokens(w.items[a].text,[]),!w.loose){const z=w.items[a].tokens.filter(C=>C.type==="space"),I=z.length>0&&z.some(C=>/\n.*\n/.test(C.raw));w.loose=I}if(w.loose)for(a=0;a<v;a++)w.items[a].loose=!0;return w}}html(e){const t=this.rules.block.html.exec(e);if(t){const n={type:"html",raw:t[0],pre:!this.options.sanitizer&&(t[1]==="pre"||t[1]==="script"||t[1]==="style"),text:t[0]};if(this.options.sanitize){const l=this.options.sanitizer?this.options.sanitizer(t[0]):he(t[0]);n.type="paragraph",n.text=l,n.tokens=this.lexer.inline(l)}return n}}def(e){const t=this.rules.block.def.exec(e);if(t){const n=t[1].toLowerCase().replace(/\s+/g," "),l=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:l,title:i}}}table(e){const t=this.rules.block.table.exec(e);if(t){const n={type:"table",header:Sn(t[1]).map(l=>({text:l})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
|
|
12
|
+
`):[]};if(n.header.length===n.align.length){n.raw=t[0];let l=n.align.length,i,r,a,c;for(i=0;i<l;i++)/^ *-+: *$/.test(n.align[i])?n.align[i]="right":/^ *:-+: *$/.test(n.align[i])?n.align[i]="center":/^ *:-+ *$/.test(n.align[i])?n.align[i]="left":n.align[i]=null;for(l=n.rows.length,i=0;i<l;i++)n.rows[i]=Sn(n.rows[i],n.header.length).map(u=>({text:u}));for(l=n.header.length,r=0;r<l;r++)n.header[r].tokens=this.lexer.inline(n.header[r].text);for(l=n.rows.length,r=0;r<l;r++)for(c=n.rows[r],a=0;a<c.length;a++)c[a].tokens=this.lexer.inline(c[a].text);return n}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const n=t[1].charAt(t[1].length-1)===`
|
|
13
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:he(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):he(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;const r=Rt(n.slice(0,-1),"\\");if((n.length-r.length)%2===0)return}else{const r=Jl(t[2],"()");if(r>-1){const c=(t[0].indexOf("!")===0?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,c).trim(),t[3]=""}}let l=t[2],i="";if(this.options.pedantic){const r=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);r&&(l=r[1],i=r[3])}else i=t[3]?t[3].slice(1,-1):"";return l=l.trim(),/^</.test(l)&&(this.options.pedantic&&!/>$/.test(n)?l=l.slice(1):l=l.slice(1,-1)),Rn(t,{href:l&&l.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let l=(n[2]||n[1]).replace(/\s+/g," ");if(l=t[l.toLowerCase()],!l){const i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return Rn(n,l,n[0],this.lexer)}}emStrong(e,t,n=""){let l=this.rules.inline.emStrong.lDelim.exec(e);if(!l||l[3]&&n.match(/[\p{L}\p{N}]/u))return;const i=l[1]||l[2]||"";if(!i||i&&(n===""||this.rules.inline.punctuation.exec(n))){const r=l[0].length-1;let a,c,u=r,h=0;const f=l[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(f.lastIndex=0,t=t.slice(-1*e.length+r);(l=f.exec(t))!=null;){if(a=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!a)continue;if(c=a.length,l[3]||l[4]){u+=c;continue}else if((l[5]||l[6])&&r%3&&!((r+c)%3)){h+=c;continue}if(u-=c,u>0)continue;c=Math.min(c,c+u+h);const d=e.slice(0,r+l.index+(l[0].length-a.length)+c);if(Math.min(r,c)%2){const b=d.slice(1,-1);return{type:"em",raw:d,text:b,tokens:this.lexer.inlineTokens(b)}}const p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(/\n/g," ");const l=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return l&&i&&(n=n.substring(1,n.length-1)),n=he(n,!0),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let l,i;return n[2]==="@"?(l=he(this.options.mangle?t(n[1]):n[1]),i="mailto:"+l):(l=he(n[1]),i=l),{type:"link",raw:n[0],text:l,href:i,tokens:[{type:"text",raw:l,text:l}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let l,i;if(n[2]==="@")l=he(this.options.mangle?t(n[0]):n[0]),i="mailto:"+l;else{let r;do r=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(r!==n[0]);l=he(n[0]),n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:l,href:i,tokens:[{type:"text",raw:l,text:l}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let l;return this.lexer.state.inRawBlock?l=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):he(n[0]):n[0]:l=he(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:l}}}}const N={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Mt,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};N._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;N._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;N.def=J(N.def).replace("label",N._label).replace("title",N._title).getRegex();N.bullet=/(?:[*+-]|\d{1,9}[.)])/;N.listItemStart=J(/^( *)(bull) */).replace("bull",N.bullet).getRegex();N.list=J(N.list).replace(/bull/g,N.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+N.def.source+")").getRegex();N._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";N._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;N.html=J(N.html,"i").replace("comment",N._comment).replace("tag",N._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();N.paragraph=J(N._paragraph).replace("hr",N.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",N._tag).getRegex();N.blockquote=J(N.blockquote).replace("paragraph",N.paragraph).getRegex();N.normal={...N};N.gfm={...N.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};N.gfm.table=J(N.gfm.table).replace("hr",N.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",N._tag).getRegex();N.gfm.paragraph=J(N._paragraph).replace("hr",N.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",N.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",N._tag).getRegex();N.pedantic={...N.normal,html:J(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",N._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Mt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:J(N.normal._paragraph).replace("hr",N.hr).replace("heading",` *#{1,6} *[^
|
|
14
|
+
]`).replace("lheading",N.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const R={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Mt,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Mt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};R._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";R.punctuation=J(R.punctuation).replace(/punctuation/g,R._punctuation).getRegex();R.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;R.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;R._comment=J(N._comment).replace("(?:-->|$)","-->").getRegex();R.emStrong.lDelim=J(R.emStrong.lDelim).replace(/punct/g,R._punctuation).getRegex();R.emStrong.rDelimAst=J(R.emStrong.rDelimAst,"g").replace(/punct/g,R._punctuation).getRegex();R.emStrong.rDelimUnd=J(R.emStrong.rDelimUnd,"g").replace(/punct/g,R._punctuation).getRegex();R._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;R._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;R._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;R.autolink=J(R.autolink).replace("scheme",R._scheme).replace("email",R._email).getRegex();R._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;R.tag=J(R.tag).replace("comment",R._comment).replace("attribute",R._attribute).getRegex();R._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;R._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;R._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;R.link=J(R.link).replace("label",R._label).replace("href",R._href).replace("title",R._title).getRegex();R.reflink=J(R.reflink).replace("label",R._label).replace("ref",N._label).getRegex();R.nolink=J(R.nolink).replace("ref",N._label).getRegex();R.reflinkSearch=J(R.reflinkSearch,"g").replace("reflink",R.reflink).replace("nolink",R.nolink).getRegex();R.normal={...R};R.pedantic={...R.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:J(/^!?\[(label)\]\((.*?)\)/).replace("label",R._label).getRegex(),reflink:J(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",R._label).getRegex()};R.gfm={...R.normal,escape:J(R.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/};R.gfm.url=J(R.gfm.url,"i").replace("email",R.gfm._extended_email).getRegex();R.breaks={...R.gfm,br:J(R.br).replace("{2,}","*").getRegex(),text:J(R.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};function es(s){return s.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function In(s){let e="",t,n;const l=s.length;for(t=0;t<l;t++)n=s.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),e+="&#"+n+";";return e}class Ze{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||nt,this.options.tokenizer=this.options.tokenizer||new ln,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:N.normal,inline:R.normal};this.options.pedantic?(t.block=N.pedantic,t.inline=R.pedantic):this.options.gfm&&(t.block=N.gfm,this.options.breaks?t.inline=R.breaks:t.inline=R.gfm),this.tokenizer.rules=t}static get rules(){return{block:N,inline:R}}static lex(e,t){return new Ze(t).lex(e)}static lexInline(e,t){return new Ze(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
|
|
15
|
+
`),this.blockTokens(e,this.tokens);let t;for(;t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(a,c,u)=>c+" ".repeat(u.length));let n,l,i,r;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(n=a.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),n.raw.length===1&&t.length>0?t[t.length-1].raw+=`
|
|
16
|
+
`:t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),l=t[t.length-1],l&&(l.type==="paragraph"||l.type==="text")?(l.raw+=`
|
|
17
|
+
`+n.raw,l.text+=`
|
|
18
|
+
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=l.text):t.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),l=t[t.length-1],l&&(l.type==="paragraph"||l.type==="text")?(l.raw+=`
|
|
19
|
+
`+n.raw,l.text+=`
|
|
20
|
+
`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=l.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(i=e,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const c=e.slice(1);let u;this.options.extensions.startBlock.forEach(function(h){u=h.call({lexer:this},c),typeof u=="number"&&u>=0&&(a=Math.min(a,u))}),a<1/0&&a>=0&&(i=e.substring(0,a+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i))){l=t[t.length-1],r&&l.type==="paragraph"?(l.raw+=`
|
|
21
|
+
`+n.raw,l.text+=`
|
|
22
|
+
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):t.push(n),r=i.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),l=t[t.length-1],l&&l.type==="text"?(l.raw+=`
|
|
23
|
+
`+n.raw,l.text+=`
|
|
24
|
+
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):t.push(n);continue}if(e){const a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,l,i,r=e,a,c,u;if(this.tokens.links){const h=Object.keys(this.tokens.links);if(h.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)h.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,a.index)+"["+Cn("a",a[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,a.index)+"["+Cn("a",a[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.escapedEmSt.exec(r))!=null;)r=r.slice(0,a.index+a[0].length-2)+"++"+r.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(c||(u=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(h=>(n=h.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),l=t[t.length-1],l&&n.type==="text"&&l.type==="text"?(l.raw+=n.raw,l.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),l=t[t.length-1],l&&n.type==="text"&&l.type==="text"?(l.raw+=n.raw,l.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,r,u)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e,In)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e,In))){e=e.substring(n.raw.length),t.push(n);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let h=1/0;const f=e.slice(1);let d;this.options.extensions.startInline.forEach(function(p){d=p.call({lexer:this},f),typeof d=="number"&&d>=0&&(h=Math.min(h,d))}),h<1/0&&h>=0&&(i=e.substring(0,h+1))}if(n=this.tokenizer.inlineText(i,es)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(u=n.raw.slice(-1)),c=!0,l=t[t.length-1],l&&l.type==="text"?(l.raw+=n.raw,l.text+=n.text):t.push(n);continue}if(e){const h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return t}}class sn{constructor(e){this.options=e||nt}code(e,t,n){const l=(t||"").match(/\S*/)[0];if(this.options.highlight){const i=this.options.highlight(e,l);i!=null&&i!==e&&(n=!0,e=i)}return e=e.replace(/\n$/,"")+`
|
|
25
|
+
`,l?'<pre><code class="'+this.options.langPrefix+he(l)+'">'+(n?e:he(e,!0))+`</code></pre>
|
|
26
|
+
`:"<pre><code>"+(n?e:he(e,!0))+`</code></pre>
|
|
27
|
+
`}blockquote(e){return`<blockquote>
|
|
28
|
+
${e}</blockquote>
|
|
29
|
+
`}html(e){return e}heading(e,t,n,l){if(this.options.headerIds){const i=this.options.headerPrefix+l.slug(n);return`<h${t} id="${i}">${e}</h${t}>
|
|
30
|
+
`}return`<h${t}>${e}</h${t}>
|
|
31
|
+
`}hr(){return this.options.xhtml?`<hr/>
|
|
32
|
+
`:`<hr>
|
|
33
|
+
`}list(e,t,n){const l=t?"ol":"ul",i=t&&n!==1?' start="'+n+'"':"";return"<"+l+i+`>
|
|
34
|
+
`+e+"</"+l+`>
|
|
35
|
+
`}listitem(e){return`<li>${e}</li>
|
|
36
|
+
`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>
|
|
37
|
+
`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),`<table>
|
|
38
|
+
<thead>
|
|
39
|
+
`+e+`</thead>
|
|
40
|
+
`+t+`</table>
|
|
41
|
+
`}tablerow(e){return`<tr>
|
|
42
|
+
${e}</tr>
|
|
43
|
+
`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
|
|
44
|
+
`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){if(e=zn(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let l='<a href="'+e+'"';return t&&(l+=' title="'+t+'"'),l+=">"+n+"</a>",l}image(e,t,n){if(e=zn(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let l=`<img src="${e}" alt="${n}"`;return t&&(l+=` title="${t}"`),l+=this.options.xhtml?"/>":">",l}text(e){return e}}class Jn{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class Kn{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,l=0;if(this.seen.hasOwnProperty(n)){l=this.seen[e];do l++,n=e+"-"+l;while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=l,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class Fe{constructor(e){this.options=e||nt,this.options.renderer=this.options.renderer||new sn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Jn,this.slugger=new Kn}static parse(e,t){return new Fe(t).parse(e)}static parseInline(e,t){return new Fe(t).parseInline(e)}parse(e,t=!0){let n="",l,i,r,a,c,u,h,f,d,p,b,T,S,w,k,v,z,I,C;const H=e.length;for(l=0;l<H;l++){if(p=e[l],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type]&&(C=this.options.extensions.renderers[p.type].call({parser:this},p),C!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type))){n+=C||"";continue}switch(p.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{n+=this.renderer.heading(this.parseInline(p.tokens),p.depth,Yn(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue}case"code":{n+=this.renderer.code(p.text,p.lang,p.escaped);continue}case"table":{for(f="",h="",a=p.header.length,i=0;i<a;i++)h+=this.renderer.tablecell(this.parseInline(p.header[i].tokens),{header:!0,align:p.align[i]});for(f+=this.renderer.tablerow(h),d="",a=p.rows.length,i=0;i<a;i++){for(u=p.rows[i],h="",c=u.length,r=0;r<c;r++)h+=this.renderer.tablecell(this.parseInline(u[r].tokens),{header:!1,align:p.align[r]});d+=this.renderer.tablerow(h)}n+=this.renderer.table(f,d);continue}case"blockquote":{d=this.parse(p.tokens),n+=this.renderer.blockquote(d);continue}case"list":{for(b=p.ordered,T=p.start,S=p.loose,a=p.items.length,d="",i=0;i<a;i++)k=p.items[i],v=k.checked,z=k.task,w="",k.task&&(I=this.renderer.checkbox(v),S?k.tokens.length>0&&k.tokens[0].type==="paragraph"?(k.tokens[0].text=I+" "+k.tokens[0].text,k.tokens[0].tokens&&k.tokens[0].tokens.length>0&&k.tokens[0].tokens[0].type==="text"&&(k.tokens[0].tokens[0].text=I+" "+k.tokens[0].tokens[0].text)):k.tokens.unshift({type:"text",text:I}):w+=I),w+=this.parse(k.tokens,S),d+=this.renderer.listitem(w,z,v);n+=this.renderer.list(d,b,T);continue}case"html":{n+=this.renderer.html(p.text);continue}case"paragraph":{n+=this.renderer.paragraph(this.parseInline(p.tokens));continue}case"text":{for(d=p.tokens?this.parseInline(p.tokens):p.text;l+1<H&&e[l+1].type==="text";)p=e[++l],d+=`
|
|
45
|
+
`+(p.tokens?this.parseInline(p.tokens):p.text);n+=t?this.renderer.paragraph(d):d;continue}default:{const F='Token with "'+p.type+'" type was not found.';if(this.options.silent){console.error(F);return}else throw new Error(F)}}}return n}parseInline(e,t){t=t||this.renderer;let n="",l,i,r;const a=e.length;for(l=0;l<a;l++){if(i=e[l],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]&&(r=this.options.extensions.renderers[i.type].call({parser:this},i),r!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type))){n+=r||"";continue}switch(i.type){case"escape":{n+=t.text(i.text);break}case"html":{n+=t.html(i.text);break}case"link":{n+=t.link(i.href,i.title,this.parseInline(i.tokens,t));break}case"image":{n+=t.image(i.href,i.title,i.text);break}case"strong":{n+=t.strong(this.parseInline(i.tokens,t));break}case"em":{n+=t.em(this.parseInline(i.tokens,t));break}case"codespan":{n+=t.codespan(i.text);break}case"br":{n+=t.br();break}case"del":{n+=t.del(this.parseInline(i.tokens,t));break}case"text":{n+=t.text(i.text);break}default:{const c='Token with "'+i.type+'" type was not found.';if(this.options.silent){console.error(c);return}else throw new Error(c)}}}return n}}class Lt{constructor(e){this.options=e||nt}preprocess(e){return e}postprocess(e){return e}}dn(Lt,"passThroughHooks",new Set(["preprocess","postprocess"]));function ts(s,e,t){return n=>{if(n.message+=`
|
|
46
|
+
Please report this to https://github.com/markedjs/marked.`,s){const l="<p>An error occurred:</p><pre>"+he(n.message+"",!0)+"</pre>";if(e)return Promise.resolve(l);if(t){t(null,l);return}return l}if(e)return Promise.reject(n);if(t){t(n);return}throw n}}function $n(s,e){return(t,n,l)=>{typeof n=="function"&&(l=n,n=null);const i={...n};n={...L.defaults,...i};const r=ts(n.silent,n.async,l);if(typeof t>"u"||t===null)return r(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return r(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(Kl(n),n.hooks&&(n.hooks.options=n),l){const a=n.highlight;let c;try{n.hooks&&(t=n.hooks.preprocess(t)),c=s(t,n)}catch(f){return r(f)}const u=function(f){let d;if(!f)try{n.walkTokens&&L.walkTokens(c,n.walkTokens),d=e(c,n),n.hooks&&(d=n.hooks.postprocess(d))}catch(p){f=p}return n.highlight=a,f?r(f):l(null,d)};if(!a||a.length<3||(delete n.highlight,!c.length))return u();let h=0;L.walkTokens(c,function(f){f.type==="code"&&(h++,setTimeout(()=>{a(f.text,f.lang,function(d,p){if(d)return u(d);p!=null&&p!==f.text&&(f.text=p,f.escaped=!0),h--,h===0&&u()})},0))}),h===0&&u();return}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(t):t).then(a=>s(a,n)).then(a=>n.walkTokens?Promise.all(L.walkTokens(a,n.walkTokens)).then(()=>a):a).then(a=>e(a,n)).then(a=>n.hooks?n.hooks.postprocess(a):a).catch(r);try{n.hooks&&(t=n.hooks.preprocess(t));const a=s(t,n);n.walkTokens&&L.walkTokens(a,n.walkTokens);let c=e(a,n);return n.hooks&&(c=n.hooks.postprocess(c)),c}catch(a){return r(a)}}}function L(s,e,t){return $n(Ze.lex,Fe.parse)(s,e,t)}L.options=L.setOptions=function(s){return L.defaults={...L.defaults,...s},Pl(L.defaults),L};L.getDefaults=Qn;L.defaults=nt;L.use=function(...s){const e=L.defaults.extensions||{renderers:{},childTokens:{}};s.forEach(t=>{const n={...t};if(n.async=L.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(l=>{if(!l.name)throw new Error("extension name required");if(l.renderer){const i=e.renderers[l.name];i?e.renderers[l.name]=function(...r){let a=l.renderer.apply(this,r);return a===!1&&(a=i.apply(this,r)),a}:e.renderers[l.name]=l.renderer}if(l.tokenizer){if(!l.level||l.level!=="block"&&l.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[l.level]?e[l.level].unshift(l.tokenizer):e[l.level]=[l.tokenizer],l.start&&(l.level==="block"?e.startBlock?e.startBlock.push(l.start):e.startBlock=[l.start]:l.level==="inline"&&(e.startInline?e.startInline.push(l.start):e.startInline=[l.start]))}l.childTokens&&(e.childTokens[l.name]=l.childTokens)}),n.extensions=e),t.renderer){const l=L.defaults.renderer||new sn;for(const i in t.renderer){const r=l[i];l[i]=(...a)=>{let c=t.renderer[i].apply(l,a);return c===!1&&(c=r.apply(l,a)),c}}n.renderer=l}if(t.tokenizer){const l=L.defaults.tokenizer||new ln;for(const i in t.tokenizer){const r=l[i];l[i]=(...a)=>{let c=t.tokenizer[i].apply(l,a);return c===!1&&(c=r.apply(l,a)),c}}n.tokenizer=l}if(t.hooks){const l=L.defaults.hooks||new Lt;for(const i in t.hooks){const r=l[i];Lt.passThroughHooks.has(i)?l[i]=a=>{if(L.defaults.async)return Promise.resolve(t.hooks[i].call(l,a)).then(u=>r.call(l,u));const c=t.hooks[i].call(l,a);return r.call(l,c)}:l[i]=(...a)=>{let c=t.hooks[i].apply(l,a);return c===!1&&(c=r.apply(l,a)),c}}n.hooks=l}if(t.walkTokens){const l=L.defaults.walkTokens;n.walkTokens=function(i){let r=[];return r.push(t.walkTokens.call(this,i)),l&&(r=r.concat(l.call(this,i))),r}}L.setOptions(n)})};L.walkTokens=function(s,e){let t=[];for(const n of s)switch(t=t.concat(e.call(L,n)),n.type){case"table":{for(const l of n.header)t=t.concat(L.walkTokens(l.tokens,e));for(const l of n.rows)for(const i of l)t=t.concat(L.walkTokens(i.tokens,e));break}case"list":{t=t.concat(L.walkTokens(n.items,e));break}default:L.defaults.extensions&&L.defaults.extensions.childTokens&&L.defaults.extensions.childTokens[n.type]?L.defaults.extensions.childTokens[n.type].forEach(function(l){t=t.concat(L.walkTokens(n[l],e))}):n.tokens&&(t=t.concat(L.walkTokens(n.tokens,e)))}return t};L.parseInline=$n(Ze.lexInline,Fe.parseInline);L.Parser=Fe;L.parser=Fe.parse;L.Renderer=sn;L.TextRenderer=Jn;L.Lexer=Ze;L.lexer=Ze.lex;L.Tokenizer=ln;L.Slugger=Kn;L.Hooks=Lt;L.parse=L;L.options;L.setOptions;L.use;L.walkTokens;L.parseInline;Fe.parse;Ze.lex;const ns="modulepreload",ls=function(s){return"/"+s},Mn={},el=function(e,t,n){let l=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),r=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));l=Promise.all(t.map(a=>{if(a=ls(a),a in Mn)return;Mn[a]=!0;const c=a.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${u}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":ns,c||(h.as="script",h.crossOrigin=""),h.href=a,r&&h.setAttribute("nonce",r),document.head.appendChild(h),c)return new Promise((f,d)=>{h.addEventListener("load",f),h.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${a}`)))})}))}return l.then(()=>e()).catch(i=>{const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=i,window.dispatchEvent(r),!r.defaultPrevented)throw i})},tl=async s=>{try{(await el(async()=>{const{default:t}=await import("./index-DLbPO8Sw.js");return{default:t}},[])).default.highlightElement(s)}catch(e){console.error("Could not load highlight.js",e)}};function ss(s){let e,t,n=L(s[0].descriptionfile||s[0].description)+"";return{c(){e=E("div"),t=new tn(!1),this.h()},l(l){e=y(l,"DIV",{class:!0});var i=_(e);t=nn(i,!1),i.forEach(g),this.h()},h(){t.a=null,o(e,"class","markdown-body")},m(l,i){D(l,e,i),t.m(n,e),s[2](e)},p(l,[i]){i&1&&n!==(n=L(l[0].descriptionfile||l[0].description)+"")&&t.p(n)},i:fe,o:fe,d(l){l&&g(e),s[2](null)}}}function is(s,e,t){let{das:n}=e,l;function i(r){vt[r?"unshift":"push"](()=>{l=r,t(1,l)})}return s.$$set=r=>{"das"in r&&t(0,n=r.das)},s.$$.update=()=>{s.$$.dirty&3&&n&&l&&setTimeout(()=>{l&&Array.from(l.querySelectorAll("pre code")).forEach(r=>{tl(r)})},200)},[n,l,i]}class rs extends be{constructor(e){super(),we(this,e,is,ss,ke,{das:0})}}function Ln(s){let e;return{c(){e=se("Running Gardenjs in devmodus. No Code view supported.")},l(t){e=ie(t,"Running Gardenjs in devmodus. No Code view supported.")},m(t,n){D(t,e,n)},d(t){t&&g(e)}}}function Nn(s){let e,t,n;return{c(){e=E("pre"),t=E("code"),n=se(s[1]),this.h()},l(l){e=y(l,"PRE",{});var i=_(e);t=y(i,"CODE",{class:!0});var r=_(t);n=ie(r,s[1]),r.forEach(g),i.forEach(g),this.h()},h(){o(t,"class","language-xml")},m(l,i){D(l,e,i),m(e,t),m(t,n),s[5](t)},p(l,i){i&2&&He(n,l[1])},d(l){l&&g(e),s[5](null)}}}function os(s){let e,t,n=s[0]&&Ln(),l=s[1]&&Nn(s);return{c(){e=E("div"),n&&n.c(),t=j(),l&&l.c()},l(i){e=y(i,"DIV",{});var r=_(e);n&&n.l(r),t=B(r),l&&l.l(r),r.forEach(g)},m(i,r){D(i,e,r),n&&n.m(e,null),m(e,t),l&&l.m(e,null)},p(i,[r]){i[0]?n||(n=Ln(),n.c(),n.m(e,t)):n&&(n.d(1),n=null),i[1]?l?l.p(i,r):(l=Nn(i),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i:fe,o:fe,d(i){i&&g(e),n&&n.d(),l&&l.d()}}}function as(s,e,t){let{componentName:n}=e,{devmodus:l}=e,i,r,a=[];l||c();async function c(){const f=await el(()=>import("../raw_component_import_map.js"),[]);t(4,a=f.rawComponentMap)}function u(f,d){t(1,i=null),setTimeout(()=>{t(1,i=d[f])})}function h(f){vt[f?"unshift":"push"](()=>{r=f,t(2,r)})}return s.$$set=f=>{"componentName"in f&&t(3,n=f.componentName),"devmodus"in f&&t(0,l=f.devmodus)},s.$$.update=()=>{s.$$.dirty&24&&u(n,a),s.$$.dirty&6&&i&&r&&tl(r)},[l,i,r,n,a,h]}class cs extends be{constructor(e){super(),we(this,e,as,os,ke,{componentName:3,devmodus:0})}}function us(s){let e,t;return{c(){e=E("iframe"),this.h()},l(n){e=y(n,"IFRAME",{class:!0,title:!0,src:!0,style:!0}),_(e).forEach(g),this.h()},h(){o(e,"class","stage_iframe svelte-3elosm"),o(e,"title","preview"),wt(e.src,t="/frame.html")||o(e,"src",t),o(e,"style",s[0])},m(n,l){D(n,e,l),s[18](e)},p(n,l){l&1&&o(e,"style",n[0])},d(n){n&&g(e),s[18](null)}}}function hs(s){let e,t;return e=new zl({props:{slot:"top",disabled:s[1]!=="full",maxHeight:s[7],maxWidth:s[8],$$slots:{default:[us]},$$scope:{ctx:s}}}),{c(){Te(e.$$.fragment)},l(n){Ie(e.$$.fragment,n)},m(n,l){ze(e,n,l),t=!0},p(n,l){const i={};l&2&&(i.disabled=n[1]!=="full"),l&128&&(i.maxHeight=n[7]),l&256&&(i.maxWidth=n[8]),l&8388641&&(i.$$scope={dirty:l,ctx:n}),e.$set(i)},i(n){t||(U(e.$$.fragment,n),t=!0)},o(n){Z(e.$$.fragment,n),t=!1},d(n){Se(e,n)}}}function An(s){let e,t;return e=new Hl({props:{tabs:s[6]}}),e.$on("out",s[17]),{c(){Te(e.$$.fragment)},l(n){Ie(e.$$.fragment,n)},m(n,l){ze(e,n,l),t=!0},p(n,l){const i={};l&64&&(i.tabs=n[6]),e.$set(i)},i(n){t||(U(e.$$.fragment,n),t=!0)},o(n){Z(e.$$.fragment,n),t=!1},d(n){Se(e,n)}}}function fs(s){let e,t,n=s[4]&&An(s);return{c(){e=E("div"),n&&n.c(),this.h()},l(l){e=y(l,"DIV",{slot:!0,class:!0});var i=_(e);n&&n.l(i),i.forEach(g),this.h()},h(){o(e,"slot","bottom"),o(e,"class","panel svelte-3elosm")},m(l,i){D(l,e,i),n&&n.m(e,null),t=!0},p(l,i){l[4]?n?(n.p(l,i),i&16&&U(n,1)):(n=An(l),n.c(),U(n,1),n.m(e,null)):n&&(Qe(),Z(n,1,1,()=>{n=null}),Ge())},i(l){t||(U(n),t=!0)},o(l){Z(n),t=!1},d(l){l&&g(e),n&&n.d()}}}function ds(s){let e,t;return e=new El({props:{topHeight:s[2],maxHeight:s[3],$$slots:{bottom:[fs],top:[hs]},$$scope:{ctx:s}}}),e.$on("out",s[9]),{c(){Te(e.$$.fragment)},l(n){Ie(e.$$.fragment,n)},m(n,l){ze(e,n,l),t=!0},p(n,[l]){const i={};l&4&&(i.topHeight=n[2]),l&8&&(i.maxHeight=n[3]),l&8389107&&(i.$$scope={dirty:l,ctx:n}),e.$set(i)},i(n){t||(U(e.$$.fragment,n),t=!0)},o(n){Z(e.$$.fragment,n),t=!1},d(n){Se(e,n)}}}function ps(s){globalThis.history.pushState({selectedExample:s.detail.selecteditem},"",window.location.pathname.substring(7))}function gs(s,e,t){let n,l,i;const r=tt();let{componentName:a}=e,{das:c={}}=e,{stageStyle:u}=e,{stageSize:h}=e,{selectedExample:f}=e,{stageContainerHeight:d}=e,{stageContainerMaxHeight:p}=e,{stageContainerWidth:b}=e,{panelExpanded:T}=e,{theme:S}=e,{devmodus:w}=e,k,v;const z=new ResizeObserver(M=>{M.forEach(G=>{C(G.contentRect)})});qn(()=>{v&&(z.observe(v),t(5,v.contentWindow.onload=()=>{t(16,k=!0)},v),v.contentWindow.addEventListener("mousemove",function(M){var G=v.getBoundingClientRect(),q=new CustomEvent("mousemove",{bubbles:!0,cancelable:!1});q.pageX=M.clientX+G.left,q.pageY=M.clientY+G.top,v.dispatchEvent(q)}),v.contentWindow.addEventListener("mouseup",function(){var M=new CustomEvent("mouseup",{bubbles:!0,cancelable:!1});v.dispatchEvent(M)}))}),Zn(()=>{z.disconnect()});function I(M){var q;const G=[];return M.description&&G.push({name:"Notes",props:{das:M},page:rs}),(q=M.examples)!=null&&q.length&&G.push({name:"Examples",props:{selected:f,items:M.examples.map(ne=>ne.title)},page:Dl,out:ps}),!w&&M.componentfile&&G.push({name:"Code",props:{componentName:a,devmodus:w},page:cs}),G}function C(M){r("out",{stageRect:M})}function H(M){M.detail.topHeight&&r("out",{stageContainerHeight:M.detail.topHeight}),M.detail.maxHeight&&r("out",{stageContainerMaxHeight:M.detail.maxHeight}),M.detail.maxWidth&&r("out",{stageContainerWidth:M.detail.maxWidth})}function F(M){Bt.call(this,s,M)}function O(M){vt[M?"unshift":"push"](()=>{v=M,t(5,v)})}return s.$$set=M=>{"componentName"in M&&t(10,a=M.componentName),"das"in M&&t(11,c=M.das),"stageStyle"in M&&t(0,u=M.stageStyle),"stageSize"in M&&t(1,h=M.stageSize),"selectedExample"in M&&t(12,f=M.selectedExample),"stageContainerHeight"in M&&t(2,d=M.stageContainerHeight),"stageContainerMaxHeight"in M&&t(3,p=M.stageContainerMaxHeight),"stageContainerWidth"in M&&t(13,b=M.stageContainerWidth),"panelExpanded"in M&&t(4,T=M.panelExpanded),"theme"in M&&t(14,S=M.theme),"devmodus"in M&&t(15,w=M.devmodus)},s.$$.update=()=>{s.$$.dirty&8192&&t(8,n=b-20),s.$$.dirty&12&&t(7,l=Math.min(d,p)-20),s.$$.dirty&87074&&k&&(!v.contentDocument||/frame.html$/.test(v.contentWindow.location),v.contentWindow.postMessage({selectedExample:f,componentName:a,stageSize:h,theme:S},window.location)),s.$$.dirty&2048&&t(6,i=I(c))},[u,h,d,p,T,v,i,l,n,H,a,c,f,b,S,w,k,F,O]}class ms extends be{constructor(e){super(),we(this,e,gs,ds,ke,{componentName:10,das:11,stageStyle:0,stageSize:1,selectedExample:12,stageContainerHeight:2,stageContainerMaxHeight:3,stageContainerWidth:13,panelExpanded:4,theme:14,devmodus:15})}}function ks(s){let e,t,n,l,i='<svg xmlns="http://www.w3.org/2000/svg" width="15" viewBox="0 0 24 24" height="15" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 8a2 2 0 00-1-1.73l-7-4a2 2 0 00-2 0l-7 4A2 2 0 003 8v8a2 2 0 001 1.73l7 4a2 2 0 002 0l7-4A2 2 0 0021 16z"></path><path d="M3.3 7l8.7 5 8.7-5M12 22V12"></path></svg>',r,a,c,u,h,f;const d=s[5].default,p=mt(d,s,s[4],null);return{c(){e=E("a"),t=E("span"),n=j(),l=E("span"),l.innerHTML=i,r=j(),a=E("span"),p&&p.c(),this.h()},l(b){e=y(b,"A",{href:!0,class:!0});var T=_(e);t=y(T,"SPAN",{class:!0}),_(t).forEach(g),n=B(T),l=y(T,"SPAN",{class:!0,"data-svelte-h":!0}),me(l)!=="svelte-5p73w6"&&(l.innerHTML=i),r=B(T),a=y(T,"SPAN",{class:!0});var S=_(a);p&&p.l(S),S.forEach(g),T.forEach(g),this.h()},h(){o(t,"class","component_dot svelte-1tjv5dj"),o(l,"class","component_icon svelte-1tjv5dj"),o(a,"class","component_label svelte-1tjv5dj"),o(e,"href",s[0]),o(e,"class",c="component_link link_level-"+s[2]+" svelte-1tjv5dj"),P(e,"selected",s[1])},m(b,T){D(b,e,T),m(e,t),m(e,n),m(e,l),m(e,r),m(e,a),p&&p.m(a,null),u=!0,h||(f=te(e,"click",pl(s[3])),h=!0)},p(b,[T]){p&&p.p&&(!u||T&16)&&kt(p,d,b,b[4],u?bt(d,b[4],T,null):_t(b[4]),null),(!u||T&1)&&o(e,"href",b[0]),(!u||T&4&&c!==(c="component_link link_level-"+b[2]+" svelte-1tjv5dj"))&&o(e,"class",c),(!u||T&6)&&P(e,"selected",b[1])},i(b){u||(U(p,b),u=!0)},o(b){Z(p,b),u=!1},d(b){b&&g(e),p&&p.d(b),h=!1,f()}}}function _s(s,e,t){let{$$slots:n={},$$scope:l}=e,{href:i}=e,{selected:r}=e,{level:a}=e;function c(){globalThis.history.pushState({},"",i)}return s.$$set=u=>{"href"in u&&t(0,i=u.href),"selected"in u&&t(1,r=u.selected),"level"in u&&t(2,a=u.level),"$$scope"in u&&t(4,l=u.$$scope)},[i,r,a,c,l,n]}class bs extends be{constructor(e){super(),we(this,e,_s,ks,ke,{href:0,selected:1,level:2})}}function Hn(s,e,t){const n=s.slice();return n[6]=e[t],n}function ws(s){let e,t,n,l='<svg xmlns="http://www.w3.org/2000/svg" width="12" viewBox="0 0 24 24" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 15l-6-6-6 6"></path></svg>',i,r,a='<svg xmlns="http://www.w3.org/2000/svg" width="15" viewBox="0 0 24 24" height="15" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20h16a2 2 0 002-2V8a2 2 0 00-2-2h-7.93a2 2 0 01-1.66-.9l-.82-1.2A2 2 0 007.93 3H4a2 2 0 00-2 2v13c0 1.1.9 2 2 2z"></path></svg>',c,u,h,f=s[6].name+"",d,p,b,T,S,w,k;function v(){return s[3](s[6])}let z=s[6].unfolded&&jn(s);return{c(){e=E("li"),t=E("button"),n=E("span"),n.innerHTML=l,i=j(),r=E("span"),r.innerHTML=a,c=j(),u=E("span"),h=new tn(!1),b=j(),z&&z.c(),T=j(),this.h()},l(I){e=y(I,"LI",{class:!0});var C=_(e);t=y(C,"BUTTON",{class:!0,title:!0});var H=_(t);n=y(H,"SPAN",{class:!0,"data-svelte-h":!0}),me(n)!=="svelte-1uqfrmg"&&(n.innerHTML=l),i=B(H),r=y(H,"SPAN",{class:!0,"data-svelte-h":!0}),me(r)!=="svelte-1aixm8"&&(r.innerHTML=a),c=B(H),u=y(H,"SPAN",{class:!0});var F=_(u);h=nn(F,!1),F.forEach(g),H.forEach(g),b=B(C),z&&z.l(C),T=B(C),C.forEach(g),this.h()},h(){o(n,"class","folder_arrow svelte-4ombcb"),P(n,"unfolded_icon",s[6].unfolded),o(r,"class","folder_icon svelte-4ombcb"),h.a=null,o(u,"class","folder_label svelte-4ombcb"),o(t,"class",d="folder_btn btn_level-"+s[1]+" svelte-4ombcb"),o(t,"title",p=s[6].unfolded?"fold":"unfold"),o(e,"class","folder svelte-4ombcb"),P(e,"unfolded",s[6].unfolded)},m(I,C){D(I,e,C),m(e,t),m(t,n),m(t,i),m(t,r),m(t,c),m(t,u),h.m(f,u),m(e,b),z&&z.m(e,null),m(e,T),S=!0,w||(k=te(t,"click",v),w=!0)},p(I,C){s=I,(!S||C&1)&&P(n,"unfolded_icon",s[6].unfolded),(!S||C&1)&&f!==(f=s[6].name+"")&&h.p(f),(!S||C&2&&d!==(d="folder_btn btn_level-"+s[1]+" svelte-4ombcb"))&&o(t,"class",d),(!S||C&1&&p!==(p=s[6].unfolded?"fold":"unfold"))&&o(t,"title",p),s[6].unfolded?z?(z.p(s,C),C&1&&U(z,1)):(z=jn(s),z.c(),U(z,1),z.m(e,T)):z&&(Qe(),Z(z,1,1,()=>{z=null}),Ge()),(!S||C&1)&&P(e,"unfolded",s[6].unfolded)},i(I){S||(U(z),S=!0)},o(I){Z(z),S=!1},d(I){I&&g(e),z&&z.d(),w=!1,k()}}}function vs(s){let e,t,n,l;return t=new bs({props:{href:s[6].href,selected:s[6].selected,level:s[1],$$slots:{default:[xs]},$$scope:{ctx:s}}}),{c(){e=E("li"),Te(t.$$.fragment),n=j(),this.h()},l(i){e=y(i,"LI",{class:!0});var r=_(e);Ie(t.$$.fragment,r),n=B(r),r.forEach(g),this.h()},h(){o(e,"class","item")},m(i,r){D(i,e,r),ze(t,e,null),m(e,n),l=!0},p(i,r){const a={};r&1&&(a.href=i[6].href),r&1&&(a.selected=i[6].selected),r&2&&(a.level=i[1]),r&513&&(a.$$scope={dirty:r,ctx:i}),t.$set(a)},i(i){l||(U(t.$$.fragment,i),l=!0)},o(i){Z(t.$$.fragment,i),l=!1},d(i){i&&g(e),Se(t)}}}function jn(s){let e,t;return e=new nl({props:{nodes:s[6].children,level:s[1]+1}}),e.$on("out",s[4]),{c(){Te(e.$$.fragment)},l(n){Ie(e.$$.fragment,n)},m(n,l){ze(e,n,l),t=!0},p(n,l){const i={};l&1&&(i.nodes=n[6].children),l&2&&(i.level=n[1]+1),e.$set(i)},i(n){t||(U(e.$$.fragment,n),t=!0)},o(n){Z(e.$$.fragment,n),t=!1},d(n){Se(e,n)}}}function xs(s){let e,t=s[6].name+"",n;return{c(){e=new tn(!1),n=We(),this.h()},l(l){e=nn(l,!1),n=We(),this.h()},h(){e.a=n},m(l,i){e.m(t,l,i),D(l,n,i)},p(l,i){i&1&&t!==(t=l[6].name+"")&&e.p(t)},d(l){l&&(g(n),e.d())}}}function Bn(s){let e,t,n,l;const i=[vs,ws],r=[];function a(c,u){return c[6].isLeaf?0:1}return e=a(s),t=r[e]=i[e](s),{c(){t.c(),n=We()},l(c){t.l(c),n=We()},m(c,u){r[e].m(c,u),D(c,n,u),l=!0},p(c,u){let h=e;e=a(c),e===h?r[e].p(c,u):(Qe(),Z(r[h],1,1,()=>{r[h]=null}),Ge(),t=r[e],t?t.p(c,u):(t=r[e]=i[e](c),t.c()),U(t,1),t.m(n.parentNode,n))},i(c){l||(U(t),l=!0)},o(c){Z(t),l=!1},d(c){c&&g(n),r[e].d(c)}}}function Es(s){let e,t,n,l=qe(s[0]),i=[];for(let a=0;a<l.length;a+=1)i[a]=Bn(Hn(s,l,a));const r=a=>Z(i[a],1,1,()=>{i[a]=null});return{c(){e=E("ul");for(let a=0;a<i.length;a+=1)i[a].c();this.h()},l(a){e=y(a,"UL",{class:!0});var c=_(e);for(let u=0;u<i.length;u+=1)i[u].l(c);c.forEach(g),this.h()},h(){o(e,"class",t="filter_list items level-"+s[1]+" svelte-4ombcb")},m(a,c){D(a,e,c);for(let u=0;u<i.length;u+=1)i[u]&&i[u].m(e,null);n=!0},p(a,[c]){if(c&7){l=qe(a[0]);let u;for(u=0;u<l.length;u+=1){const h=Hn(a,l,u);i[u]?(i[u].p(h,c),U(i[u],1)):(i[u]=Bn(h),i[u].c(),U(i[u],1),i[u].m(e,null))}for(Qe(),u=l.length;u<i.length;u+=1)r(u);Ge()}(!n||c&2&&t!==(t="filter_list items level-"+a[1]+" svelte-4ombcb"))&&o(e,"class",t)},i(a){if(!n){for(let c=0;c<l.length;c+=1)U(i[c]);n=!0}},o(a){i=i.filter(Boolean);for(let c=0;c<i.length;c+=1)Z(i[c]);n=!1},d(a){a&&g(e),Dt(i,a)}}}function ys(s,e,t){const n=tt();let{nodes:l=[]}=e,{level:i=1}=e;function r(u){n("out",{toggleFoldStatusOfNode:{...u}})}const a=u=>r(u);function c(u){Bt.call(this,s,u)}return s.$$set=u=>{"nodes"in u&&t(0,l=u.nodes),"level"in u&&t(1,i=u.level)},[l,i,r,a,c]}class nl extends be{constructor(e){super(),we(this,e,ys,Es,ke,{nodes:0,level:1})}}function Ts(s){let e,t;return{c(){e=E("span"),t=se(s[3]),this.h()},l(n){e=y(n,"SPAN",{class:!0});var l=_(e);t=ie(l,s[3]),l.forEach(g),this.h()},h(){o(e,"class","svelte-1m8srel")},m(n,l){D(n,e,l),m(e,t)},p(n,l){l&8&&He(t,n[3])},d(n){n&&g(e)}}}function zs(s){let e,t,n;return{c(){e=E("img"),this.h()},l(l){e=y(l,"IMG",{src:!0,title:!0,alt:!0}),this.h()},h(){wt(e.src,t="/assets/"+s[4])||o(e,"src",t),o(e,"title","start"),o(e,"alt",n=s[3]+" logo")},m(l,i){D(l,e,i)},p(l,i){i&16&&!wt(e.src,t="/assets/"+l[4])&&o(e,"src",t),i&8&&n!==(n=l[3]+" logo")&&o(e,"alt",n)},d(l){l&&g(e)}}}function Ss(s){let e,t,n;return{c(){e=E("img"),this.h()},l(l){e=y(l,"IMG",{src:!0,title:!0,alt:!0}),this.h()},h(){wt(e.src,t="/assets/"+s[5])||o(e,"src",t),o(e,"title","start"),o(e,"alt",n=s[3]+" logo")},m(l,i){D(l,e,i)},p(l,i){i&32&&!wt(e.src,t="/assets/"+l[5])&&o(e,"src",t),i&8&&n!==(n=l[3]+" logo")&&o(e,"alt",n)},d(l){l&&g(e)}}}function Cs(s){let e,t,n;return t=new nl({props:{nodes:s[0]}}),t.$on("out",s[13]),{c(){e=E("nav"),Te(t.$$.fragment),this.h()},l(l){e=y(l,"NAV",{class:!0});var i=_(e);Ie(t.$$.fragment,i),i.forEach(g),this.h()},h(){o(e,"class","components svelte-1m8srel")},m(l,i){D(l,e,i),ze(t,e,null),n=!0},p(l,i){const r={};i&1&&(r.nodes=l[0]),t.$set(r)},i(l){n||(U(t.$$.fragment,l),n=!0)},o(l){Z(t.$$.fragment,l),n=!1},d(l){l&&g(e),Se(t)}}}function Rs(s){let e,t,n,l,i;return{c(){e=E("div"),t=E("div"),n=se("No results for '"),l=se(s[6]),i=se("'"),this.h()},l(r){e=y(r,"DIV",{});var a=_(e);t=y(a,"DIV",{class:!0});var c=_(t);n=ie(c,"No results for '"),l=ie(c,s[6]),i=ie(c,"'"),c.forEach(g),a.forEach(g),this.h()},h(){o(t,"class","filter_zero-results svelte-1m8srel")},m(r,a){D(r,e,a),m(e,t),m(t,n),m(t,l),m(t,i)},p(r,a){a&64&&He(l,r[6])},i:fe,o:fe,d(r){r&&g(e)}}}function Is(s){let e,t;return{c(){e=V("svg"),t=V("path"),this.h()},l(n){e=W(n,"svg",{class:!0,xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var l=_(e);t=W(l,"path",{d:!0}),_(t).forEach(g),l.forEach(g),this.h()},h(){o(t,"d","M7 15l5 5 5-5M7 9l5-5 5 5"),o(e,"class","controls_btn-icon svelte-1m8srel"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"height","20"),o(e,"viewBox","0 0 24 24"),o(e,"width","20"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round")},m(n,l){D(n,e,l),m(e,t)},d(n){n&&g(e)}}}function Ms(s){let e,t;return{c(){e=V("svg"),t=V("path"),this.h()},l(n){e=W(n,"svg",{class:!0,xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var l=_(e);t=W(l,"path",{d:!0}),_(t).forEach(g),l.forEach(g),this.h()},h(){o(t,"d","M7 20l5-5 5 5M7 4l5 5 5-5"),o(e,"class","controls_btn-icon svelte-1m8srel"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"height","20"),o(e,"viewBox","0 0 24 24"),o(e,"width","20"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round")},m(n,l){D(n,e,l),m(e,t)},d(n){n&&g(e)}}}function Ls(s){let e,t,n,l;return{c(){e=V("svg"),t=V("rect"),n=V("line"),l=V("path"),this.h()},l(i){e=W(i,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var r=_(e);t=W(r,"rect",{width:!0,height:!0,x:!0,y:!0,rx:!0,ry:!0}),_(t).forEach(g),n=W(r,"line",{x1:!0,x2:!0,y1:!0,y2:!0}),_(n).forEach(g),l=W(r,"path",{d:!0}),_(l).forEach(g),r.forEach(g),this.h()},h(){o(t,"width","18"),o(t,"height","18"),o(t,"x","3"),o(t,"y","3"),o(t,"rx","2"),o(t,"ry","2"),o(n,"x1","3"),o(n,"x2","21"),o(n,"y1","15"),o(n,"y2","15"),o(l,"d","m9 10 3-3 3 3"),o(e,"class","controls_btn-icon svelte-1m8srel"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"width","20"),o(e,"height","20"),o(e,"viewBox","0 0 24 24"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round")},m(i,r){D(i,e,r),m(e,t),m(e,n),m(e,l)},d(i){i&&g(e)}}}function Ns(s){let e,t,n,l;return{c(){e=V("svg"),t=V("rect"),n=V("line"),l=V("path"),this.h()},l(i){e=W(i,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var r=_(e);t=W(r,"rect",{width:!0,height:!0,x:!0,y:!0,rx:!0,ry:!0}),_(t).forEach(g),n=W(r,"line",{x1:!0,x2:!0,y1:!0,y2:!0}),_(n).forEach(g),l=W(r,"path",{d:!0}),_(l).forEach(g),r.forEach(g),this.h()},h(){o(t,"width","18"),o(t,"height","18"),o(t,"x","3"),o(t,"y","3"),o(t,"rx","2"),o(t,"ry","2"),o(n,"x1","3"),o(n,"x2","21"),o(n,"y1","15"),o(n,"y2","15"),o(l,"d","m15 8-3 3-3-3"),o(e,"class","controls_btn-icon svelte-1m8srel"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"width","20"),o(e,"height","20"),o(e,"viewBox","0 0 24 24"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round")},m(i,r){D(i,e,r),m(e,t),m(e,n),m(e,l)},d(i){i&&g(e)}}}function Dn(s){let e,t='<a class="controls_btn svelte-1m8srel" href="https://gardenjs.org/docs" target="_blank" rel="noreferrer"><svg class="controls_btn-icon svelte-1m8srel" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 015.83 1c0 2-3 3-3 3m.08 4h.01"></path></svg> <span class="controls_btn-label svelte-1m8srel">Gardenjs Docs</span></a>';return{c(){e=E("li"),e.innerHTML=t},l(n){e=y(n,"LI",{"data-svelte-h":!0}),me(e)!=="svelte-13os4tf"&&(e.innerHTML=t)},m(n,l){D(n,e,l)},d(n){n&&g(e)}}}function As(s){let e,t,n,l,i,r,a,c,u,h,f,d,p,b,T,S,w=s[2]?"Collapse":"Expand",k,v,z,I,C,H,F,O,M=s[7]?"Collapse":"Expand",G,q,ne,Ce,oe,Re,Pe;function re(A,Q){return A[5]&&A[9]==="dark"?Ss:A[4]?zs:Ts}let K=re(s),x=K(s);const pe=[Rs,Cs],ve=[];function Oe(A,Q){return A[0].length==0&&A[6]?0:1}c=Oe(s),u=ve[c]=pe[c](s);function lt(A,Q){return A[2]?Ms:Is}let ce=lt(s),xe=ce(s);function st(A,Q){return A[7]?Ns:Ls}let ge=st(s),$=ge(s),ee=s[8]===1&&Dn();return{c(){e=E("header"),t=E("a"),x.c(),n=j(),l=E("div"),i=E("input"),a=j(),u.c(),h=j(),f=E("nav"),d=E("ul"),p=E("li"),b=E("button"),xe.c(),T=j(),S=E("span"),k=se(w),v=se(" Navigation"),I=j(),C=E("li"),H=E("button"),$.c(),F=j(),O=E("span"),G=se(M),q=se(" Panel"),Ce=j(),ee&&ee.c(),this.h()},l(A){e=y(A,"HEADER",{class:!0});var Q=_(e);t=y(Q,"A",{class:!0,href:!0});var Me=_(t);x.l(Me),Me.forEach(g),n=B(Q),l=y(Q,"DIV",{class:!0});var Xe=_(l);i=y(Xe,"INPUT",{"aria-autocomplete":!0,id:!0,class:!0,autocomplete:!0,type:!0,placeholder:!0}),Xe.forEach(g),a=B(Q),u.l(Q),h=B(Q),f=y(Q,"NAV",{class:!0});var Ee=_(f);d=y(Ee,"UL",{});var je=_(d);p=y(je,"LI",{});var it=_(p);b=y(it,"BUTTON",{class:!0,title:!0});var de=_(b);xe.l(de),T=B(de),S=y(de,"SPAN",{class:!0});var Ue=_(S);k=ie(Ue,w),v=ie(Ue," Navigation"),Ue.forEach(g),de.forEach(g),it.forEach(g),I=B(je),C=y(je,"LI",{});var rt=_(C);H=y(rt,"BUTTON",{class:!0,title:!0});var Ye=_(H);$.l(Ye),F=B(Ye),O=y(Ye,"SPAN",{class:!0});var ot=_(O);G=ie(ot,M),q=ie(ot," Panel"),ot.forEach(g),Ye.forEach(g),rt.forEach(g),Ce=B(je),ee&&ee.l(je),je.forEach(g),Ee.forEach(g),Q.forEach(g),this.h()},h(){o(t,"class","project-identifier svelte-1m8srel"),o(t,"href","/"),P(t,"has-logo",s[4]),o(i,"aria-autocomplete","list"),o(i,"id","filter"),o(i,"class","filter_input svelte-1m8srel"),o(i,"autocomplete","off"),o(i,"type","search"),i.value=r=s[6]||"",o(i,"placeholder","Filter..."),o(l,"class","filter svelte-1m8srel"),o(S,"class","controls_btn-label svelte-1m8srel"),o(b,"class","controls_btn svelte-1m8srel"),o(b,"title",z=s[2]?"Collapse":"Restore"),o(O,"class","controls_btn-label svelte-1m8srel"),o(H,"class","controls_btn svelte-1m8srel"),o(H,"title",ne=s[7]?"Collapse":"Restore"),o(f,"class","controls svelte-1m8srel"),o(e,"class","sidebar_container svelte-1m8srel"),P(e,"show-sidebar",s[1])},m(A,Q){D(A,e,Q),m(e,t),x.m(t,null),m(e,n),m(e,l),m(l,i),m(e,a),ve[c].m(e,null),m(e,h),m(e,f),m(f,d),m(d,p),m(p,b),xe.m(b,null),m(b,T),m(b,S),m(S,k),m(S,v),m(d,I),m(d,C),m(C,H),$.m(H,null),m(H,F),m(H,O),m(O,G),m(O,q),m(d,Ce),ee&&ee.m(d,null),oe=!0,Re||(Pe=[te(i,"input",s[11]),te(b,"click",s[10]),te(H,"click",s[12])],Re=!0)},p(A,[Q]){K===(K=re(A))&&x?x.p(A,Q):(x.d(1),x=K(A),x&&(x.c(),x.m(t,null))),(!oe||Q&16)&&P(t,"has-logo",A[4]),(!oe||Q&64&&r!==(r=A[6]||"")&&i.value!==r)&&(i.value=r);let Me=c;c=Oe(A),c===Me?ve[c].p(A,Q):(Qe(),Z(ve[Me],1,1,()=>{ve[Me]=null}),Ge(),u=ve[c],u?u.p(A,Q):(u=ve[c]=pe[c](A),u.c()),U(u,1),u.m(e,h)),ce!==(ce=lt(A))&&(xe.d(1),xe=ce(A),xe&&(xe.c(),xe.m(b,T))),(!oe||Q&4)&&w!==(w=A[2]?"Collapse":"Expand")&&He(k,w),(!oe||Q&4&&z!==(z=A[2]?"Collapse":"Restore"))&&o(b,"title",z),ge!==(ge=st(A))&&($.d(1),$=ge(A),$&&($.c(),$.m(H,F))),(!oe||Q&128)&&M!==(M=A[7]?"Collapse":"Expand")&&He(G,M),(!oe||Q&128&&ne!==(ne=A[7]?"Collapse":"Restore"))&&o(H,"title",ne),A[8]===1?ee||(ee=Dn(),ee.c(),ee.m(d,null)):ee&&(ee.d(1),ee=null),(!oe||Q&2)&&P(e,"show-sidebar",A[1])},i(A){oe||(U(u),oe=!0)},o(A){Z(u),oe=!1},d(A){A&&g(e),x.d(),ve[c].d(),xe.d(),$.d(),ee&&ee.d(),Re=!1,en(Pe)}}}function Hs(s,e,t){const n=tt();let{nodes:l=[]}=e,{show:i}=e,{rootNodesExpanded:r=!0}=e,{projectTitle:a}=e,{projectLogo:c}=e,{projectLogoDarkmode:u}=e,{filter:h}=e,{panelExpanded:f=!0}=e,{docsLink:d}=e,{appTheme:p}=e;function b(){n("out",{toggleRootFolders:!0})}function T(k){n("out",{filter:{value:k.target.value}})}function S(){n("out",{toggleExpandPanel:!0})}function w(k){Bt.call(this,s,k)}return s.$$set=k=>{"nodes"in k&&t(0,l=k.nodes),"show"in k&&t(1,i=k.show),"rootNodesExpanded"in k&&t(2,r=k.rootNodesExpanded),"projectTitle"in k&&t(3,a=k.projectTitle),"projectLogo"in k&&t(4,c=k.projectLogo),"projectLogoDarkmode"in k&&t(5,u=k.projectLogoDarkmode),"filter"in k&&t(6,h=k.filter),"panelExpanded"in k&&t(7,f=k.panelExpanded),"docsLink"in k&&t(8,d=k.docsLink),"appTheme"in k&&t(9,p=k.appTheme)},[l,i,r,a,c,u,h,f,d,p,b,T,S,w]}class js extends be{constructor(e){super(),we(this,e,Hs,As,ke,{nodes:0,show:1,rootNodesExpanded:2,projectTitle:3,projectLogo:4,projectLogoDarkmode:5,filter:6,panelExpanded:7,docsLink:8,appTheme:9})}}function Pn(s,e,t){const n=s.slice();return n[22]=e[t],n}function Bs(s){let e,t,n;return{c(){e=V("svg"),t=V("rect"),n=V("path"),this.h()},l(l){e=W(l,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var i=_(e);t=W(i,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,ry:!0}),_(t).forEach(g),n=W(i,"path",{d:!0}),_(n).forEach(g),i.forEach(g),this.h()},h(){o(t,"x","3"),o(t,"y","3"),o(t,"width","18"),o(t,"height","18"),o(t,"rx","2"),o(t,"ry","2"),o(n,"d","M9 3v18m5-12l3 3-3 3"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"height","24"),o(e,"viewBox","0 0 24 24"),o(e,"width","24"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"class","svelte-1od1c7u")},m(l,i){D(l,e,i),m(e,t),m(e,n)},d(l){l&&g(e)}}}function Ds(s){let e,t,n;return{c(){e=V("svg"),t=V("rect"),n=V("path"),this.h()},l(l){e=W(l,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var i=_(e);t=W(i,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,ry:!0}),_(t).forEach(g),n=W(i,"path",{d:!0}),_(n).forEach(g),i.forEach(g),this.h()},h(){o(t,"x","3"),o(t,"y","3"),o(t,"width","18"),o(t,"height","18"),o(t,"rx","2"),o(t,"ry","2"),o(n,"d","M9 3v18m7-6l-3-3 3-3"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"height","24"),o(e,"viewBox","0 0 24 24"),o(e,"width","24"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round"),o(e,"class","svelte-1od1c7u")},m(l,i){D(l,e,i),m(e,t),m(e,n)},d(l){l&&g(e)}}}function On(s){let e,t,n='<svg xmlns="http://www.w3.org/2000/svg" width="24" viewBox="0 0 24 24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="svelte-1od1c7u"><circle cx="13.5" cy="6.5" r=".5"></circle><circle cx="17.5" cy="10.5" r=".5"></circle><circle cx="8.5" cy="7.5" r=".5"></circle><circle cx="6.5" cy="12.5" r=".5"></circle><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 011.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z"></path></svg>',l,i,r,a=qe(s[3]),c=[];for(let u=0;u<a.length;u+=1)c[u]=Un(Pn(s,a,u));return{c(){e=E("div"),t=E("button"),t.innerHTML=n,l=j(),i=E("div"),r=E("ul");for(let u=0;u<c.length;u+=1)c[u].c();this.h()},l(u){e=y(u,"DIV",{class:!0});var h=_(e);t=y(h,"BUTTON",{class:!0,title:!0,"data-svelte-h":!0}),me(t)!=="svelte-9j3kdx"&&(t.innerHTML=n),l=B(h),i=y(h,"DIV",{class:!0});var f=_(i);r=y(f,"UL",{class:!0});var d=_(r);for(let p=0;p<c.length;p+=1)c[p].l(d);d.forEach(g),f.forEach(g),h.forEach(g),this.h()},h(){o(t,"class","dropdown_btn topbar_btn svelte-1od1c7u"),o(t,"title","Switch component theme"),o(r,"class","svelte-1od1c7u"),o(i,"class","dropdown_items svelte-1od1c7u"),o(e,"class","dropdown svelte-1od1c7u")},m(u,h){D(u,e,h),m(e,t),m(e,l),m(e,i),m(i,r);for(let f=0;f<c.length;f+=1)c[f]&&c[f].m(r,null)},p(u,h){if(h&4104){a=qe(u[3]);let f;for(f=0;f<a.length;f+=1){const d=Pn(u,a,f);c[f]?c[f].p(d,h):(c[f]=Un(d),c[f].c(),c[f].m(r,null))}for(;f<c.length;f+=1)c[f].d(1);c.length=a.length}},d(u){u&&g(e),Dt(c,u)}}}function Un(s){let e,t,n,l,i=s[22].name+"",r,a,c,u;function h(){return s[19](s[22])}return{c(){e=E("li"),t=E("button"),n=E("span"),l=j(),r=se(i),a=j(),this.h()},l(f){e=y(f,"LI",{class:!0});var d=_(e);t=y(d,"BUTTON",{class:!0});var p=_(t);n=y(p,"SPAN",{class:!0}),_(n).forEach(g),l=B(p),r=ie(p,i),p.forEach(g),a=B(d),d.forEach(g),this.h()},h(){o(n,"class","dropdown_item-dot svelte-1od1c7u"),o(t,"class","svelte-1od1c7u"),P(t,"active",s[22].active),o(e,"class","svelte-1od1c7u")},m(f,d){D(f,e,d),m(e,t),m(t,n),m(t,l),m(t,r),m(e,a),c||(u=te(t,"click",h),c=!0)},p(f,d){s=f,d&8&&i!==(i=s[22].name+"")&&He(r,i),d&8&&P(t,"active",s[22].active)},d(f){f&&g(e),c=!1,u()}}}function Ps(s){let e,t;return{c(){e=V("svg"),t=V("path"),this.h()},l(n){e=W(n,"svg",{xmlns:!0,class:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var l=_(e);t=W(l,"path",{d:!0}),_(t).forEach(g),l.forEach(g),this.h()},h(){o(t,"d","M12 3a6.364 6.364 0 009 9 9 9 0 11-9-9z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","mode-icon svelte-1od1c7u"),o(e,"height","24"),o(e,"viewBox","0 0 24 24"),o(e,"width","24"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round")},m(n,l){D(n,e,l),m(e,t)},d(n){n&&g(e)}}}function Os(s){let e,t,n;return{c(){e=V("svg"),t=V("circle"),n=V("path"),this.h()},l(l){e=W(l,"svg",{xmlns:!0,class:!0,width:!0,viewBox:!0,height:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var i=_(e);t=W(i,"circle",{cx:!0,cy:!0,r:!0}),_(t).forEach(g),n=W(i,"path",{d:!0}),_(n).forEach(g),i.forEach(g),this.h()},h(){o(t,"cx","12"),o(t,"cy","12"),o(t,"r","4"),o(n,"d","M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"class","mode-icon svelte-1od1c7u"),o(e,"width","24"),o(e,"viewBox","0 0 24 24"),o(e,"height","24"),o(e,"fill","none"),o(e,"stroke","currentColor"),o(e,"stroke-width","1.5"),o(e,"stroke-linecap","round"),o(e,"stroke-linejoin","round")},m(l,i){D(l,e,i),m(e,t),m(e,n)},d(l){l&&g(e)}}}function Us(s){let e,t,n,l,i,r,a,c,u,h,f,d,p="✕",b,T,S,w,k,v,z,I,C,H,F,O,M,G,q,ne,Ce,oe,Re,Pe,re,K,x,pe,ve,Oe,lt,ce,xe='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="svelte-1od1c7u"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><path d="M8 21h8m-4-4v4"></path></svg> <span class="dot svelte-1od1c7u"></span>',st,ge,$,ee,A,Q,Me,Xe,Ee,je='<svg xmlns="http://www.w3.org/2000/svg" class="open-new-tab-icon svelte-1od1c7u" height="24" viewBox="0 0 24 24" width="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6m4-3h6v6m-11 5L21 3"></path></svg>',it,de,Ue,rt,Ye;function ot(X,le){return X[0]?Ds:Bs}let xt=ot(s),Be=xt(s),ue=s[3].length>1&&On(s);function cn(X,le){return X[6]?Os:Ps}let Et=cn(s),De=Et(s);return{c(){e=E("div"),t=E("div"),n=E("button"),Be.c(),i=j(),r=E("div"),a=E("div"),c=E("div"),u=se(s[4]),h=se("px"),f=j(),d=E("div"),d.textContent=p,b=j(),T=E("div"),S=se(s[5]),w=se("px"),k=j(),v=E("div"),z=E("button"),I=V("svg"),C=V("rect"),H=V("path"),F=j(),O=E("span"),M=j(),G=E("button"),q=V("svg"),ne=V("rect"),Ce=V("path"),oe=j(),Re=E("span"),Pe=j(),re=E("button"),K=V("svg"),x=V("rect"),pe=V("path"),ve=j(),Oe=E("span"),lt=j(),ce=E("button"),ce.innerHTML=xe,st=j(),ge=E("button"),$=V("svg"),ee=V("rect"),A=V("rect"),Me=j(),ue&&ue.c(),Xe=j(),Ee=E("button"),Ee.innerHTML=je,it=j(),de=E("button"),De.c(),this.h()},l(X){e=y(X,"DIV",{class:!0});var le=_(e);t=y(le,"DIV",{class:!0});var yt=_(t);n=y(yt,"BUTTON",{class:!0,title:!0});var un=_(n);Be.l(un),un.forEach(g),i=B(yt),r=y(yt,"DIV",{class:!0});var Le=_(r);a=y(Le,"DIV",{class:!0});var at=_(a);c=y(at,"DIV",{});var qt=_(c);u=ie(qt,s[4]),h=ie(qt,"px"),qt.forEach(g),f=B(at),d=y(at,"DIV",{class:!0,"data-svelte-h":!0}),me(d)!=="svelte-zi9iwo"&&(d.textContent=p),b=B(at),T=y(at,"DIV",{});var Zt=_(T);S=ie(Zt,s[5]),w=ie(Zt,"px"),Zt.forEach(g),at.forEach(g),k=B(Le),v=y(Le,"DIV",{class:!0});var Ne=_(v);z=y(Ne,"BUTTON",{title:!0,class:!0});var Tt=_(z);I=W(Tt,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var Ft=_(I);C=W(Ft,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,ry:!0}),_(C).forEach(g),H=W(Ft,"path",{d:!0}),_(H).forEach(g),Ft.forEach(g),F=B(Tt),O=y(Tt,"SPAN",{class:!0}),_(O).forEach(g),Tt.forEach(g),M=B(Ne),G=y(Ne,"BUTTON",{title:!0,class:!0});var zt=_(G);q=W(zt,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var Qt=_(q);ne=W(Qt,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,ry:!0}),_(ne).forEach(g),Ce=W(Qt,"path",{d:!0}),_(Ce).forEach(g),Qt.forEach(g),oe=B(zt),Re=y(zt,"SPAN",{class:!0}),_(Re).forEach(g),zt.forEach(g),Pe=B(Ne),re=y(Ne,"BUTTON",{title:!0,class:!0});var St=_(re);K=W(St,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var Gt=_(K);x=W(Gt,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,ry:!0}),_(x).forEach(g),pe=W(Gt,"path",{d:!0}),_(pe).forEach(g),Gt.forEach(g),ve=B(St),Oe=y(St,"SPAN",{class:!0}),_(Oe).forEach(g),St.forEach(g),lt=B(Ne),ce=y(Ne,"BUTTON",{title:!0,class:!0,"data-svelte-h":!0}),me(ce)!=="svelte-m2txcz"&&(ce.innerHTML=xe),st=B(Ne),ge=y(Ne,"BUTTON",{title:!0,class:!0});var hn=_(ge);$=W(hn,"svg",{xmlns:!0,width:!0,viewBox:!0,height:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var Xt=_($);ee=W(Xt,"rect",{width:!0,height:!0,x:!0,y:!0,rx:!0}),_(ee).forEach(g),A=W(Xt,"rect",{width:!0,height:!0,x:!0,y:!0,rx:!0}),_(A).forEach(g),Xt.forEach(g),hn.forEach(g),Ne.forEach(g),Me=B(Le),ue&&ue.l(Le),Xe=B(Le),Ee=y(Le,"BUTTON",{class:!0,title:!0,"data-svelte-h":!0}),me(Ee)!=="svelte-vy1khe"&&(Ee.innerHTML=je),it=B(Le),de=y(Le,"BUTTON",{class:!0,title:!0});var fn=_(de);De.l(fn),fn.forEach(g),Le.forEach(g),yt.forEach(g),le.forEach(g),this.h()},h(){o(n,"class","topbar_btn is-first-btn svelte-1od1c7u"),o(n,"title",l=s[0]?"Collapse sidebar":"Expand sidebar"),o(d,"class","stagesize-value-multi_sign svelte-1od1c7u"),o(a,"class","stagesize-value svelte-1od1c7u"),o(C,"x","5"),o(C,"y","2"),o(C,"width","14"),o(C,"height","20"),o(C,"rx","2"),o(C,"ry","2"),o(H,"d","M12 18h.01"),o(I,"xmlns","http://www.w3.org/2000/svg"),o(I,"height","24"),o(I,"viewBox","0 0 24 24"),o(I,"width","24"),o(I,"fill","none"),o(I,"stroke","currentColor"),o(I,"stroke-width","1.5"),o(I,"stroke-linecap","round"),o(I,"stroke-linejoin","round"),o(I,"class","svelte-1od1c7u"),P(I,"landscape",s[1]),o(O,"class","dot svelte-1od1c7u"),o(z,"title","Small"),o(z,"class","svelte-1od1c7u"),P(z,"active",s[2]==="small"),o(ne,"x","4"),o(ne,"y","2"),o(ne,"width","16"),o(ne,"height","20"),o(ne,"rx","2"),o(ne,"ry","2"),o(Ce,"d","M12 18h.01"),o(q,"xmlns","http://www.w3.org/2000/svg"),o(q,"height","24"),o(q,"viewBox","0 0 24 24"),o(q,"width","24"),o(q,"fill","none"),o(q,"stroke","currentColor"),o(q,"stroke-width","1.5"),o(q,"stroke-linecap","round"),o(q,"stroke-linejoin","round"),o(q,"class","svelte-1od1c7u"),P(q,"landscape",s[1]),o(Re,"class","dot svelte-1od1c7u"),o(G,"title","Medium"),o(G,"class","svelte-1od1c7u"),P(G,"active",s[2]==="medium"),o(x,"x","3"),o(x,"y","4"),o(x,"width","18"),o(x,"height","12"),o(x,"rx","2"),o(x,"ry","2"),o(pe,"d","M2 20h20"),o(K,"xmlns","http://www.w3.org/2000/svg"),o(K,"height","24"),o(K,"viewBox","0 0 24 24"),o(K,"width","24"),o(K,"fill","none"),o(K,"stroke","currentColor"),o(K,"stroke-width","1.5"),o(K,"stroke-linecap","round"),o(K,"stroke-linejoin","round"),o(K,"class","svelte-1od1c7u"),P(K,"landscape",s[1]),o(Oe,"class","dot svelte-1od1c7u"),o(re,"title","Large"),o(re,"class","svelte-1od1c7u"),P(re,"active",s[2]==="large"),o(ce,"title","Full"),o(ce,"class","svelte-1od1c7u"),P(ce,"active",s[2]==="full"),o(ee,"width","12"),o(ee,"height","20"),o(ee,"x","6"),o(ee,"y","2"),o(ee,"rx","2"),o(A,"width","20"),o(A,"height","12"),o(A,"x","2"),o(A,"y","6"),o(A,"rx","2"),o($,"xmlns","http://www.w3.org/2000/svg"),o($,"width","24"),o($,"viewBox","0 0 24 24"),o($,"height","24"),o($,"fill","none"),o($,"stroke","currentColor"),o($,"stroke-width","1.5"),o($,"stroke-linecap","round"),o($,"stroke-linejoin","round"),o($,"class","svelte-1od1c7u"),o(ge,"title",Q=s[1]?"Portrait mode":"Landscape mode"),o(ge,"class","svelte-1od1c7u"),o(v,"class","stagesize-nav svelte-1od1c7u"),o(Ee,"class","topbar_btn svelte-1od1c7u"),o(Ee,"title","Open component in new tab"),o(de,"class","topbar_btn is-last-btn svelte-1od1c7u"),o(de,"title",Ue=s[6]?"Light mode":"Dark mode"),o(r,"class","topbar_nav svelte-1od1c7u"),o(t,"class","topbar_container svelte-1od1c7u"),o(e,"class","topbar svelte-1od1c7u")},m(X,le){D(X,e,le),m(e,t),m(t,n),Be.m(n,null),m(t,i),m(t,r),m(r,a),m(a,c),m(c,u),m(c,h),m(a,f),m(a,d),m(a,b),m(a,T),m(T,S),m(T,w),m(r,k),m(r,v),m(v,z),m(z,I),m(I,C),m(I,H),m(z,F),m(z,O),m(v,M),m(v,G),m(G,q),m(q,ne),m(q,Ce),m(G,oe),m(G,Re),m(v,Pe),m(v,re),m(re,K),m(K,x),m(K,pe),m(re,ve),m(re,Oe),m(v,lt),m(v,ce),m(v,st),m(v,ge),m(ge,$),m($,ee),m($,A),m(r,Me),ue&&ue.m(r,null),m(r,Xe),m(r,Ee),m(r,it),m(r,de),De.m(de,null),rt||(Ye=[te(n,"click",s[7]),te(z,"click",s[15]),te(G,"click",s[16]),te(re,"click",s[17]),te(ce,"click",s[18]),te(ge,"click",s[10]),te(Ee,"click",s[11]),te(de,"click",s[8])],rt=!0)},p(X,[le]){xt!==(xt=ot(X))&&(Be.d(1),Be=xt(X),Be&&(Be.c(),Be.m(n,null))),le&1&&l!==(l=X[0]?"Collapse sidebar":"Expand sidebar")&&o(n,"title",l),le&16&&He(u,X[4]),le&32&&He(S,X[5]),le&2&&P(I,"landscape",X[1]),le&4&&P(z,"active",X[2]==="small"),le&2&&P(q,"landscape",X[1]),le&4&&P(G,"active",X[2]==="medium"),le&2&&P(K,"landscape",X[1]),le&4&&P(re,"active",X[2]==="large"),le&4&&P(ce,"active",X[2]==="full"),le&2&&Q!==(Q=X[1]?"Portrait mode":"Landscape mode")&&o(ge,"title",Q),X[3].length>1?ue?ue.p(X,le):(ue=On(X),ue.c(),ue.m(r,Xe)):ue&&(ue.d(1),ue=null),Et!==(Et=cn(X))&&(De.d(1),De=Et(X),De&&(De.c(),De.m(de,null))),le&64&&Ue!==(Ue=X[6]?"Light mode":"Dark mode")&&o(de,"title",Ue)},i:fe,o:fe,d(X){X&&g(e),Be.d(),ue&&ue.d(),De.d(),rt=!1,en(Ye)}}}function Vs(s,e,t){const n=tt();let{active:l=!0}=e,{appTheme:i="default"}=e,{landscape:r=!1}=e,{stageSize:a="full"}=e,{themes:c=[]}=e,{stageRect:u}=e,h=!1,f,d;function p(){t(0,l=!l),k()}function b(){n("out",{updateAppTheme:i==="dark"?"default":"dark"})}function T(O){t(2,a=O),k()}function S(){t(1,r=!r),k()}function w(){n("out",{openInTab:!0})}function k(){n("out",{active:l,stageSize:a,landscape:r})}function v(O){n("out",{selectTheme:O})}const z=()=>T("small"),I=()=>T("medium"),C=()=>T("large"),H=()=>T("full"),F=O=>v(O.name);return s.$$set=O=>{"active"in O&&t(0,l=O.active),"appTheme"in O&&t(13,i=O.appTheme),"landscape"in O&&t(1,r=O.landscape),"stageSize"in O&&t(2,a=O.stageSize),"themes"in O&&t(3,c=O.themes),"stageRect"in O&&t(14,u=O.stageRect)},s.$$.update=()=>{s.$$.dirty&16432&&(t(4,{width:f,height:d}=u,f,(t(5,d),t(14,u),t(4,f))),t(4,f=Math.round(f)),t(5,d=Math.round(d))),s.$$.dirty&8192&&(t(6,h=i==="dark"),i==="dark"?document.documentElement.setAttribute("data-theme","dark"):document.documentElement.setAttribute("data-theme","light"))},[l,r,a,c,f,d,h,p,b,T,S,w,v,i,u,z,I,C,H,F]}class Ws extends be{constructor(e){super(),we(this,e,Vs,Us,ke,{active:0,appTheme:13,landscape:1,stageSize:2,themes:3,stageRect:14})}}const ct=[];function _e(s,e=fe){let t;const n=new Set;function l(a){if(ke(s,a)&&(s=a,t)){const c=!ct.length;for(const u of n)u[1](),ct.push(u,s);if(c){for(let u=0;u<ct.length;u+=2)ct[u][0](ct[u+1]);ct.length=0}}}function i(a){l(a(s))}function r(a,c=fe){const u=[a,c];return n.add(u),n.size===1&&(t=e(l,i)||fe),a(s),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:l,update:i,subscribe:r}}function Pt(s,e,t=l=>l,n=l=>l){const l=_e(t(localStorage.getItem(s))??e);return l.subscribe(i=>{localStorage.setItem(s,n(i))}),l}const Ve=_e([]),ll=_e(""),rn=Pt("stageSize","full"),on=Pt("landscape",!1,s=>s==="true"),Je=_e(""),sl=_e(""),Ke=_e(""),gt=_e(!0),il=Pt("appTheme","default"),ft=Pt("frameTheme");let ut="";const qs={small:{frameheight:"1170px",framewidth:"550px"},medium:{frameheight:"1080px",framewidth:"810px"},large:{frameheight:"960px",framewidth:"1536px"},full:{frameheight:"100%",framewidth:"100%"}};function Zs(s){var e;Y(ft)||ft.set(((e=s==null?void 0:s.find(t=>t.active))==null?void 0:e.name)??s[0].name),Ve.set(s==null?void 0:s.map(t=>({...t,active:t.name===Y(ft)}))),Ot()}function Fs(s){Ve.set(Y(Ve).map(e=>({...e,active:e.name===s}))),ft.set(s),Ot()}function Qs(s){rn.set(s.stageSize),on.set(s.landscape),Ot()}function Gs(s){il.set(s)}function Xs(){return Y(Ve)&&Y(Ve).length>0?Y(Ve).find(s=>s.name===Y(ft))??Y(Ve)[0]:{stageBg:"white"}}function Ot(){const s=Xs().stageBg,{frameheight:e,framewidth:t}=qs[Y(rn)],n=Y(on)?`width: ${e}; height: ${t}`:`width: ${t}; height: ${e}`,l=`background-color: ${s}`;ll.set(`${n}; ${l}; transition: 0s;`)}function Ys(s){Je.set(s),rl()}function Js(s){const e=s-9;Ke.set(e),rl()}function Ks(s){sl.set(s)}function rl(){Number.isInteger(Y(Je))&&Number.isInteger(Y(Ke))&>.set(Y(Je)<Y(Ke))}function Vn(){Y(gt)?(ut=Y(Je),Je.set(Y(Ke))):((!Number.isInteger(ut)||Number.isInteger(ut)&&Y(Ke)-ut<50)&&(ut=Math.round(Y(Ke)*.7)),Je.set(ut)),gt.set(!Y(gt))}Ot();const et=_e([]),dt=_e(!0),Ut=_e();let Wn=!1,Vt="",ol,It=[],Ae=[];function $s(s){Ae=s.flatMap(al).reduce((t,n)=>(t[n.key]=!0,t),{})}function al(s){return[s,...ei(s)]}function ei(s){return s.children?s.children.flatMap(al):[]}function ti(s,e){Vt=s,ol=e,Wt()}function ni(s){Ut.set(s),Wt()}function li(s){It=s,Wn||($s(It),Wn=!0),et.set(an(It))}function Wt(){et.set(an(It))}function an(s,e){const t=Y(Ut);return s.map(n=>{var r;const l=t?(r=n.name)==null?void 0:r.toLowerCase().includes(t):!0,i=t&&l?si(n.name):n.name;if(n.isLeaf)return e||l?{...n,name:i,selected:ol===n.key,isLeaf:!0}:void 0;{const a=an(n.children,e||l).filter(u=>u),c=l||a.length>0;return c?{...n,name:i,children:a,unfolded:ii(n,Vt,t,c),filterMatches:l}:void 0}}).filter(n=>n)}function si(s){const e=Y(Ut),t=s.toLowerCase().indexOf(e),n=t+e.length,l=s.substring(0,t),i=s.substring(t,n),r=s.substring(n);return`${l}<span class="highlight">${i}</span>${r}`}function ii(s,e,t,n){return t&&n||Ae[s.key]||(e==null?void 0:e.indexOf(s.key))===0}function ri(){dt.set(!Y(dt));const s=Y(et).map(e=>({...e,unfolded:Y(dt)&&Ae[e.key]}));et.set(s)}function oi(s){if(!Y(dt)){ai(s);return}Ae[s.key]&&Vt.indexOf(s.key)!==0?Ae[s.key]=!1:Ae[s.key]=!0,Wt()}function ai(s){dt.set(!0),Object.keys(Ae).forEach(t=>Ae[t]=!1);const e=Y(et).map(t=>t.key===s.key||Vt.indexOf(t.key)===0?(Ae[t.key]=!0,{...t,unfolded:!0}):(Ae[t.key]=!1,{...t,unfolded:!1}));et.set(e),Wt()}const cl=[],ci=globalThis.location?globalThis.location.pathname+globalThis.location.search:"";let ye=ci,$e="",Yt,Jt={url:ye};(function(){globalThis.history&&(globalThis.history.state&&globalThis.history.state.url==ye&&(Jt=globalThis.history.state),globalThis.history.replaceState(Jt,null,ye))})();function ui(s,e,t){Yt=s,$e=e,t&&hi(t),Nt(Jt,ye)}function hi(s){cl.push(s)}function Nt(s,e){cl.forEach(t=>{t(fi(e),s)})}function fi(s){const e=s.substring($e.length),t=Object.keys(Yt).find(n=>e.match(new RegExp("^"+n+"$","i")));return t?Yt[t]:null}(function(s){if(s){var e=s.pushState;s.pushState=function(t,n,l){if(!(l.startsWith($e)&&$e.length>0)){if(ye=$e+l,t.url=ye,t.url!==s.state.url||t.selectedExample!==s.state.selectedExample)return Nt(t,ye),e.apply(s,[t,"",ye]);Nt(t,ye),window.location.reload()}}}})(globalThis.history);globalThis.onpopstate=function(s){s.state?ye=s.state.url:ye=$e.length>0?$e:"/",Nt(s.state,ye)};const Kt=_e(""),At=_e(),Ht=_e({}),ul=_e("");let jt,pt,$t;function di(s){jt=s,$t&&hl()}function pi(s,e,t){jt=s,$t||($t=!0,ui(e,t,gi))}function gi(s,e){if(At.set({}),Kt.set(""),Ht.set({}),s&&jt){Kt.set(s.fullname),ul.set(s.route);const t=jt[s.fullname];t.componentfile=s.file,At.set(t),pt=e,hl()}}function hl(){var e,t;const s=Y(At).examples||[];pt!=null&&pt.selectedExample?Ht.set((e=s.find(n=>n.title==pt.selectedExample))==null?void 0:e.title):Ht.set((t=s[0])==null?void 0:t.title)}function mi(s){let e,t,n,l,i,r,a,c,u;return n=new js({props:{projectTitle:s[20],projectLogo:s[21],projectLogoDarkmode:s[22],appTheme:s[7],show:s[3],rootNodesExpanded:s[8],nodes:s[9],filter:s[10],panelExpanded:s[11],docsLink:s[4]}}),n.$on("out",s[25]),r=new Ws({props:{active:s[3],themes:s[12],appTheme:s[7],stageRect:s[2],stageSize:s[13],landscape:s[14]}}),r.$on("out",s[23]),c=new ms({props:{componentName:s[1],das:s[15],selectedExample:s[6],stageStyle:s[16],stageSize:s[13],stageContainerHeight:s[17],stageContainerMaxHeight:s[18],stageContainerWidth:s[19],theme:s[5],panelExpanded:s[11],devmodus:s[0].devmodus}}),c.$on("out",s[24]),{c(){e=E("div"),t=E("div"),Te(n.$$.fragment),l=j(),i=E("div"),Te(r.$$.fragment),a=j(),Te(c.$$.fragment),this.h()},l(h){e=y(h,"DIV",{class:!0});var f=_(e);t=y(f,"DIV",{class:!0});var d=_(t);Ie(n.$$.fragment,d),d.forEach(g),l=B(f),i=y(f,"DIV",{class:!0});var p=_(i);Ie(r.$$.fragment,p),a=B(p),Ie(c.$$.fragment,p),p.forEach(g),f.forEach(g),this.h()},h(){o(t,"class","sidebar svelte-yh1ir7"),o(i,"class","main svelte-yh1ir7"),o(e,"class","garden svelte-yh1ir7")},m(h,f){D(h,e,f),m(e,t),ze(n,t,null),m(e,l),m(e,i),ze(r,i,null),m(i,a),ze(c,i,null),u=!0},p(h,f){const d={};f&128&&(d.appTheme=h[7]),f&8&&(d.show=h[3]),f&256&&(d.rootNodesExpanded=h[8]),f&512&&(d.nodes=h[9]),f&1024&&(d.filter=h[10]),f&2048&&(d.panelExpanded=h[11]),f&16&&(d.docsLink=h[4]),n.$set(d);const p={};f&8&&(p.active=h[3]),f&4096&&(p.themes=h[12]),f&128&&(p.appTheme=h[7]),f&4&&(p.stageRect=h[2]),f&8192&&(p.stageSize=h[13]),f&16384&&(p.landscape=h[14]),r.$set(p);const b={};f&2&&(b.componentName=h[1]),f&32768&&(b.das=h[15]),f&64&&(b.selectedExample=h[6]),f&65536&&(b.stageStyle=h[16]),f&8192&&(b.stageSize=h[13]),f&131072&&(b.stageContainerHeight=h[17]),f&262144&&(b.stageContainerMaxHeight=h[18]),f&524288&&(b.stageContainerWidth=h[19]),f&32&&(b.theme=h[5]),f&2048&&(b.panelExpanded=h[11]),f&1&&(b.devmodus=h[0].devmodus),c.$set(b)},i(h){u||(U(n.$$.fragment,h),U(r.$$.fragment,h),U(c.$$.fragment,h),u=!0)},o(h){Z(n.$$.fragment,h),Z(r.$$.fragment,h),Z(c.$$.fragment,h),u=!1},d(h){h&&g(e),Se(n),Se(r),Se(c)}}}function ki(s){let e,t,n="Relative link was clicked!",l,i,r,a,c="back",u,h;return{c(){e=E("div"),t=E("div"),t.textContent=n,l=j(),i=E("div"),r=se(`Click the button to return:
|
|
47
|
+
`),a=E("button"),a.textContent=c,this.h()},l(f){e=y(f,"DIV",{class:!0});var d=_(e);t=y(d,"DIV",{class:!0,"data-svelte-h":!0}),me(t)!=="svelte-jskzqc"&&(t.textContent=n),l=B(d),i=y(d,"DIV",{class:!0});var p=_(i);r=ie(p,`Click the button to return:
|
|
48
|
+
`),a=y(p,"BUTTON",{class:!0,"data-svelte-h":!0}),me(a)!=="svelte-u4jm95"&&(a.textContent=c),p.forEach(g),d.forEach(g),this.h()},h(){o(t,"class","click-completed svelte-yh1ir7"),o(a,"class","svelte-yh1ir7"),o(i,"class","instruction svelte-yh1ir7"),o(e,"class","message svelte-yh1ir7")},m(f,d){D(f,e,d),m(e,t),m(e,l),m(e,i),m(i,r),m(i,a),u||(h=te(a,"click",s[30]),u=!0)},p:fe,i:fe,o:fe,d(f){f&&g(e),u=!1,h()}}}function _i(s){let e,t,n,l;const i=[ki,mi],r=[];function a(c,u){return window.top!==window.self?0:1}return e=a(),t=r[e]=i[e](s),{c(){t.c(),n=We()},l(c){t.l(c),n=We()},m(c,u){r[e].m(c,u),D(c,n,u),l=!0},p(c,[u]){t.p(c,u)},i(c){l||(U(t),l=!0)},o(c){Z(t),l=!1},d(c){c&&g(n),r[e].d(c)}}}let bi="/garden";function wi(s,e,t){var re,K;let n,l,i,r,a,c,u,h,f,d,p,b,T,S,w,k,v,z;ae(s,ft,x=>t(5,l=x)),ae(s,Kt,x=>t(1,i=x)),ae(s,Ht,x=>t(6,r=x)),ae(s,ul,x=>t(29,a=x)),ae(s,il,x=>t(7,c=x)),ae(s,dt,x=>t(8,u=x)),ae(s,et,x=>t(9,h=x)),ae(s,Ut,x=>t(10,f=x)),ae(s,gt,x=>t(11,d=x)),ae(s,Ve,x=>t(12,p=x)),ae(s,rn,x=>t(13,b=x)),ae(s,on,x=>t(14,T=x)),ae(s,At,x=>t(15,S=x)),ae(s,ll,x=>t(16,w=x)),ae(s,Je,x=>t(17,k=x)),ae(s,Ke,x=>t(18,v=x)),ae(s,sl,x=>t(19,z=x));let{routes:I}=e,{navTree:C}=e,{dasMap:H}=e,{config:F}=e,O=F.project_title||"",M=((re=F.project_logo)==null?void 0:re.split("/").pop())||null,G=((K=F.project_logo_darkmode)==null?void 0:K.split("/").pop())||null,q={},ne=!0;function Ce(x){if(x.detail.openInTab){const pe=window.open("/frame.html","_blank");pe.onload=()=>{pe.postMessage({selectedExample:r,componentName:i,theme:l},window.location.origin)}}else x.detail.selectTheme?Fs(x.detail.selectTheme):x.detail.updateAppTheme?Gs(x.detail.updateAppTheme):(t(3,ne=x.detail.active),Qs({stageSize:x.detail.stageSize,landscape:x.detail.landscape}))}function oe(x){x.detail.stageRect&&t(2,q=x.detail.stageRect),x.detail.stageContainerHeight&&Ys(x.detail.stageContainerHeight),x.detail.toggleExpandPanel&&Vn(),x.detail.stageContainerWidth&&Ks(x.detail.stageContainerWidth),x.detail.stageContainerMaxHeight&&Js(x.detail.stageContainerMaxHeight)}function Re(x){var pe;x.detail.toggleFoldStatusOfNode&&oi(x.detail.toggleFoldStatusOfNode),x.detail.toggleRootFolders&&ri(),x.detail.filter&&ni((pe=x.detail.filter.value)==null?void 0:pe.toLowerCase()),x.detail.toggleExpandPanel&&Vn()}const Pe=()=>{window.top.location.reload()};return s.$$set=x=>{"routes"in x&&t(26,I=x.routes),"navTree"in x&&t(27,C=x.navTree),"dasMap"in x&&t(28,H=x.dasMap),"config"in x&&t(0,F=x.config)},s.$$.update=()=>{s.$$.dirty&134217728&&li(C),s.$$.dirty&335544320&&I&&H&&pi(H,I,bi),s.$$.dirty&268435456&&di(H),s.$$.dirty&1&&Zs(F.themes),s.$$.dirty&536870914&&ti(a,i),s.$$.dirty&1&&t(4,n=F.docs_link?1:0)},[F,i,q,ne,n,l,r,c,u,h,f,d,p,b,T,S,w,k,v,z,O,M,G,Ce,oe,Re,I,C,H,a,Pe]}class vi extends be{constructor(e){super(),we(this,e,wi,_i,ke,{routes:26,navTree:27,dasMap:28,config:0})}}new vi({target:document.getElementById("app"),props:{navTree:gl,routes:ml,dasMap:kl,config:_l}});
|
package/dist/frame.html
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<link rel="icon" href="/assets/favicon.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Gardenjs UI Component Explorer</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/frame-
|
|
9
|
-
<link rel="modulepreload" crossorigin href="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/frame-u3ZF53vO.js"></script>
|
|
9
|
+
<link rel="modulepreload" crossorigin href="/assets/index-C-da04Xe.js">
|
|
10
10
|
<link rel="stylesheet" crossorigin href="/assets/frame-BXMwehsH.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body
|
package/dist/index.html
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
<link rel="icon" href="/assets/favicon.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Gardenjs UI Component Explorer</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
-
<link rel="modulepreload" crossorigin href="/assets/index-
|
|
10
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-DviEiapv.js"></script>
|
|
9
|
+
<link rel="modulepreload" crossorigin href="/assets/index-C-da04Xe.js">
|
|
10
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CZfvS1XB.css">
|
|
11
11
|
</head>
|
|
12
12
|
|
|
13
13
|
<body>
|