gardenjs 1.3.2 → 1.4.1
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 +7 -1
- package/bin/servegarden.js +21 -10
- package/dist/assets/frame-DhJhaB2W.js +1 -0
- package/dist/assets/index-D8ODsaiw.js +46 -0
- package/dist/assets/index-DSdkr6j5.css +19 -0
- package/dist/assets/index-hi7xxTI1.js +9 -0
- package/dist/assets/legacy-client-CN0nmlRY.js +1 -0
- package/dist/frame.html +3 -3
- package/dist/index.html +3 -3
- package/examples/garden_button.svelte +7 -1
- package/package.json +14 -14
- package/src/client/GardenApp.svelte +28 -14
- package/src/client/GardenFrame.svelte +20 -15
- package/src/client/assets/scss/base/typography.css +2 -0
- package/src/client/assets/scss/main.scss +6 -6
- package/src/client/components/panes/HorizontalSplitPane.svelte +23 -13
- package/src/client/components/panes/ResizePane.svelte +32 -16
- package/src/client/components/sidebar/Bookmarks.svelte +8 -2
- package/src/client/components/sidebar/Sidebar.svelte +34 -16
- package/src/client/components/sidebar/SidebarNav.svelte +11 -4
- package/src/client/components/sidebar/SidebarNavLinks.svelte +12 -4
- package/src/client/components/stage/Stage.svelte +79 -55
- package/src/client/components/stage/panel/PanelCode.svelte +17 -10
- package/src/client/components/stage/panel/PanelComponent.svelte +27 -10
- package/src/client/components/stage/panel/PanelContent.svelte +8 -2
- package/src/client/components/stage/panel/PanelDescription.svelte +12 -4
- package/src/client/components/stage/panel/PanelStoriesNav.svelte +9 -3
- package/src/client/components/topbar/Topbar.svelte +69 -27
- package/src/client/gardenapp.js +2 -1
- package/src/client/gardenframe.js +2 -1
- package/src/codegenerator/base_generator.js +1 -3
- package/src/codegenerator/das_file_finder.js +25 -0
- package/src/renderer/HtmlRenderer.js +6 -4
- package/src/renderer/HtmlRenderer.svelte +8 -2
- package/dist/assets/frame-DMi6UA0Z.js +0 -1
- package/dist/assets/index-C9xFRvgZ.css +0 -19
- package/dist/assets/index-CxH-bIBi.js +0 -48
- package/dist/assets/index-DLbPO8Sw.js +0 -9
- package/dist/assets/index-OMTxPB5B.js +0 -1
- /package/dist/assets/{frame-BXMwehsH.css → frame-J44eJFCh.css} +0 -0
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<div>
|
|
9
9
|
<a href="https://github.com/gardenjs/gardenjs/blob/main/LICENSE.md">
|
|
10
|
-
<img src="https://img.shields.io/badge/License-MIT-green.svg" alt="License" data-canonical-src="https://img.shields.io/github/license/gardenjs/gardenjs.svg"
|
|
10
|
+
<img src="https://img.shields.io/badge/License-MIT-green.svg" alt="License" data-canonical-src="https://img.shields.io/github/license/gardenjs/gardenjs.svg">
|
|
11
11
|
</a>
|
|
12
12
|
<a href="https://www.npmjs.com/package/gardenjs" target="_blank">
|
|
13
13
|
<img alt="NPM Version" src="https://img.shields.io/npm/v/gardenjs?color=blue">
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
<a href="https://github.com/gardenjs/gardenjs/actions">
|
|
16
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
|
+
<a href="https://gardenjs.org/" target="_blank">
|
|
19
|
+
<img alt="Gardenjs Website & Docs" src="https://github.com/gardenjs/branding/blob/main/badge/badge_website.svg?raw=true">
|
|
20
|
+
</a>
|
|
21
|
+
<a href="https://demo.gardenjs.org/" target="_blank">
|
|
22
|
+
<img alt="Gardenjs Demo" src="https://github.com/gardenjs/branding/blob/main/badge/badge_demo.svg?raw=true">
|
|
23
|
+
</a>
|
|
18
24
|
</div>
|
|
19
25
|
|
|
20
26
|
## The quick and easy alternative
|
package/bin/servegarden.js
CHANGED
|
@@ -43,10 +43,11 @@ async function runSetupScript() {
|
|
|
43
43
|
return true
|
|
44
44
|
},
|
|
45
45
|
choices: [
|
|
46
|
-
{ name: '
|
|
47
|
-
{ name: 'Svelte', value: '
|
|
46
|
+
{ name: 'Svelte 5', value: 'Svelte' },
|
|
47
|
+
{ name: 'Svelte 4', value: 'Svelte4' },
|
|
48
48
|
{ name: 'Vue', value: 'Vue' },
|
|
49
49
|
{ name: 'React', value: 'React' },
|
|
50
|
+
{ name: 'No Library', value: 'None' },
|
|
50
51
|
],
|
|
51
52
|
})
|
|
52
53
|
|
|
@@ -54,6 +55,8 @@ async function runSetupScript() {
|
|
|
54
55
|
libraries = []
|
|
55
56
|
}
|
|
56
57
|
|
|
58
|
+
console.log('DEBUG', 'lib', libraries)
|
|
59
|
+
|
|
57
60
|
const componentFolder = await input({
|
|
58
61
|
message: 'Enter your component source folder:',
|
|
59
62
|
default: './src/',
|
|
@@ -177,9 +180,10 @@ async function runCommand(cmd) {
|
|
|
177
180
|
}
|
|
178
181
|
|
|
179
182
|
const lib2FileExtension = {
|
|
180
|
-
React: '
|
|
181
|
-
Svelte: '
|
|
182
|
-
|
|
183
|
+
React: '[tj]sx',
|
|
184
|
+
Svelte: 'svelte',
|
|
185
|
+
Svelte4: 'svelte',
|
|
186
|
+
Vue: 'vue',
|
|
183
187
|
}
|
|
184
188
|
|
|
185
189
|
function createConfigFile({ title, componentFolder, libraries }) {
|
|
@@ -190,13 +194,13 @@ function createConfigFile({ title, componentFolder, libraries }) {
|
|
|
190
194
|
.join('\n')
|
|
191
195
|
const renderer = libraries
|
|
192
196
|
.map((lib) => {
|
|
193
|
-
return
|
|
197
|
+
return `"${lib2FileExtension[lib]}": ${lib}RendererBuilder,`
|
|
194
198
|
})
|
|
195
199
|
.join('\n ')
|
|
196
200
|
|
|
197
201
|
const watchLibFiles = libraries
|
|
198
202
|
.map((lib) => {
|
|
199
|
-
return `".${lib
|
|
203
|
+
return `".${lib2FileExtension[lib]}"`
|
|
200
204
|
})
|
|
201
205
|
.join(', ')
|
|
202
206
|
|
|
@@ -275,16 +279,20 @@ export default {
|
|
|
275
279
|
|
|
276
280
|
function createViteConfig(libraries) {
|
|
277
281
|
const viteLibs = getViteImports(libraries)
|
|
278
|
-
const
|
|
282
|
+
const hasSvelteLib = libraries.some((lib) => lib.indexOf('Svelte') >= 0)
|
|
283
|
+
const renderPluginSvelte = libraries.includes('Svelte4')
|
|
284
|
+
? 'render-plugin-svelte4'
|
|
285
|
+
: 'render-plugin-svelte'
|
|
286
|
+
const optionalPathImport = hasSvelteLib
|
|
279
287
|
? 'import { join, resolve } from "node:path";'
|
|
280
288
|
: ''
|
|
281
|
-
const sveltekit_alias =
|
|
289
|
+
const sveltekit_alias = hasSvelteLib
|
|
282
290
|
? `
|
|
283
291
|
resolve: {
|
|
284
292
|
alias: [
|
|
285
293
|
{
|
|
286
294
|
find: /\\$app\\/(.*)/,
|
|
287
|
-
replacement: join(resolve(__dirname, "node_modules/@gardenjs/
|
|
295
|
+
replacement: join(resolve(__dirname, "node_modules/@gardenjs/${renderPluginSvelte}/src/sveltekit_mocks/"), "$1"),
|
|
288
296
|
},
|
|
289
297
|
],
|
|
290
298
|
},
|
|
@@ -329,12 +337,15 @@ export default defineConfig(({ command, mode }) => {
|
|
|
329
337
|
const lib2ViteImport = {
|
|
330
338
|
Svelte:
|
|
331
339
|
'import { svelte, vitePreprocess } from "@sveltejs/vite-plugin-svelte"',
|
|
340
|
+
Svelte4:
|
|
341
|
+
'import { svelte, vitePreprocess } from "@sveltejs/vite-plugin-svelte"',
|
|
332
342
|
React: 'import react from "@vitejs/plugin-react"',
|
|
333
343
|
Vue: 'import vue from "@vitejs/plugin-vue"',
|
|
334
344
|
}
|
|
335
345
|
|
|
336
346
|
const lib2VitePluginStmt = {
|
|
337
347
|
Svelte: 'svelte({preprocess: vitePreprocess()})',
|
|
348
|
+
Svelte4: 'svelte({preprocess: vitePreprocess()})',
|
|
338
349
|
React: 'react()',
|
|
339
350
|
Vue: 'vue()',
|
|
340
351
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as oe,G as D,K as ke,Z as I,_ as O,a1 as ne,O as R,P as ae,a4 as be,ab as S,ac as ee,T as H,U as y,Q as C,J as e,H as ve,N as xe,R as _e,X as Ee,$ as Ae,a0 as He,W as Ce,Y as Re}from"./legacy-client-CN0nmlRY.js";import{dasMap as Be}from"../das_import_map.js";import{componentMap as Fe}from"../component_import_map.js";import Me from"../../garden.config.js";import"../gardenframe/cssimport.js";function te(s,n){oe(n,!0);let u=D(n,"afterRenderHook",3,()=>{});ke(async()=>{await u()()});var w=I(),B=O(w);{var l=f=>{var p=I(),k=O(p);be(k,()=>n.component),R(f,p)};ne(B,f=>{n.component&&f(l)})}R(s,w),ae()}async function Te(s){try{let n=S(te,{target:document.getElementById("garden_app"),props:{afterRenderHook:s}});return{destroy:()=>ee(n),updateComponent:u=>{ee(n),n=S(te,{target:document.getElementById("garden_app"),props:{...u,afterRenderHook:s}})}}}catch(n){console.log("error",n)}}const P={create:Te};var Ne=_e('<div id="garden_app" class="svelte-16w9tv2"><!></div>');function Pe(s,n){oe(n,!0);let u=D(n,"componentMap",19,()=>({})),w=D(n,"dasMap",19,()=>({})),B=n.config.hookTimeout|5e3,l=H(y({})),f=H(y({})),p,k=H(!1),re,c,F,b=H(void 0),G={},W,z,v=[],x=[],_=[],g=[],M=[];window.addEventListener("message",t=>{var o,r,i;if(n.config.themeHandler&&n.config.themeHandler(t.data.theme),C(k,t.data.stageSize==="full"),C(l,y(w()[t.data.componentName])),C(f,y(((r=(o=e(l))==null?void 0:o.examples)==null?void 0:r.find(m=>m.title===t.data.selectedExample))??{})),W=F!==t.data.componentName,F=t.data.componentName||"Welcome",z=p!==t.data.selectedExample,p=t.data.selectedExample,C(b,y((i=u())==null?void 0:i[F])),n.config.devmodus){G={};return}else fe(e(b),e(f),e(l))});async function le(t){if(!t)return P;for(const o in n.config.renderer)if(new RegExp(o+"$").test(t))return n.config.renderer[o];return P}async function fe(t,o,r){if(n.config.renderer){const i=await le(r==null?void 0:r.file);i!==re&&await J(i)}await ce();try{c==null||c.updateComponent({component:t,selectedExample:o,das:r,decorators:r==null?void 0:r.decorators,afterRenderHook:ie})}catch(i){console.error(i)}}async function ie(){await T(M)}let d=[];async function ce(){var t,o,r,i,m,E,h,K,L,Q,U,X,Y,Z,j,q,V,$;if(W){M=[(t=e(f))==null?void 0:t.play],g=(o=e(l))!=null&&o.beforeAll?[(r=e(l))==null?void 0:r.beforeAll]:[];const pe=(i=e(l))!=null&&i.hooks?d.filter(a=>{var A;return!((A=e(l))!=null&&A.hooks.find(we=>we===a))}):d,ge=d.length>0?(m=e(l))==null?void 0:m.hooks.filter(a=>!d.find(A=>a===A)):((E=e(l))==null?void 0:E.hooks)??[];d=((h=e(l))==null?void 0:h.hooks)??[];const he=d.filter(a=>a.before).map(a=>a.before)??[];x=[...x,...pe.filter(a=>a.afterAll).map(a=>a.afterAll)],g=[...ge.filter(a=>a.beforeAll).map(a=>a.beforeAll),...g],_=[...he,(K=e(l))==null?void 0:K.before,(L=e(f))==null?void 0:L.before].filter(a=>!!a),await T([...v,...x,...g,..._]);const ye=d.filter(a=>a.after).map(a=>a.after)??[];x=(Q=e(l))!=null&&Q.afterAll?[(U=e(l))==null?void 0:U.afterAll]:[],v=[(X=e(f))==null?void 0:X.after,(Y=e(l))==null?void 0:Y.after,...ye].filter(a=>!!a),g=[]}else z&&(M=[(Z=e(f))==null?void 0:Z.play],_=[(j=e(l))==null?void 0:j.before,(q=e(f))==null?void 0:q.before],await T([...v,..._]),v=[(V=e(f))==null?void 0:V.after,($=e(l))==null?void 0:$.after])}async function J(t){try{await(c==null?void 0:c.destroy())}catch(o){console.error("Could not destroy current renderer",o)}c=await t.create()}ve(()=>{n.config.devmodus||J(P)});function de(t){e(l).out&&e(l).out.forEach(o=>{if(t.detail[o.name]&&(console.log(t.detail[o.name]),e(f).redirect&&e(f).redirect[o.name])){const r=e(f).redirect[o.name];G[r]=t.detail[o.name]}})}async function T(t){for(const o of t)if(o)try{await Promise.race([se(B),o()])}catch(r){console.error(r)}}function se(t){return new Promise((o,r)=>{setTimeout(()=>r(new Error("Timeout on")),t)})}var N=Ne(),me=Ee(N);{var ue=t=>{var o=I();const r=Re(()=>e(b));var i=O(o);Ae(i,()=>e(r),(m,E)=>{E(m,He(()=>{var h;return(h=e(f))==null?void 0:h.input},{$$events:{out:de}}))}),R(t,o)};ne(me,t=>{var o;n.config.devmodus&&e(b)&&(((o=e(l))==null?void 0:o.file)??"").indexOf(".svelte")>0&&t(ue)})}xe(()=>Ce(N,"full",e(k))),R(s,N),ae()}S(Pe,{target:document.body,props:{componentMap:Fe,dasMap:Be,config:Me}});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
var qn=Object.defineProperty;var jn=(s,e,t)=>e in s?qn(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var Pt=(s,e,t)=>jn(s,typeof e!="symbol"?e+"":e,t);import{r as on,c as On,b as cn,i as un,a as dn,I as rt,d as hn,e as At,p as Pn,f as Dt,g as Dn,h as $n,j as Un,k as Zn,l as Fn,m as gn,n as Qn,o as Vn,s as $t,E as Xn,q as Gn,t as Yn,u as Jn,v as Kn,w as ke,L as ei,x as ti,y as ni,z as ii,A as si,B as ri,S as ai,C as pe,D as te,F as we,G as Z,H as J,J as p,K as pn,M as fn,N as X,O as E,P as ne,Q as q,R as L,T as F,U as ae,V as T,W as P,X as v,Y as he,Z as je,_ as Se,$ as li,a0 as oi,a1 as D,a2 as se,a3 as vn,a4 as Ht,a5 as Ut,a6 as fe,a7 as mn,a8 as ci,a9 as ui,aa as j,ab as di}from"./legacy-client-CN0nmlRY.js";import{navTree as hi,routes as gi}from"../base.js";import{dasMap as pi}from"../das_import_map.js";import fi from"../../garden.config.js";let bt=!1,_t=[];function vi(){bt=!1;const s=_t.slice();_t=[],on(s)}function mi(s){bt||(bt=!0,queueMicrotask(vi)),_t.push(s)}function Ge(s,e){return e}function ki(s,e,t,n){for(var i=[],r=e.length,a=0;a<r;a++)Un(e[a].e,i,!0);var l=r>0&&i.length===0&&t!==null;if(l){var o=t.parentNode;Zn(o),o.append(t),n.clear(),ye(s,e[0].prev,e[r-1].next)}Fn(i,()=>{for(var d=0;d<r;d++){var g=e[d];l||(n.delete(g.k),ye(s,g.prev,g.next)),gn(g.e,!l)}})}function Ye(s,e,t,n,i,r=null){var a=s,l={flags:e,items:new Map,first:null};{var o=s;a=o.appendChild(On())}var d=null,g=!1;cn(()=>{var u=t(),h=un(u)?u:u==null?[]:dn(u),c=h.length;if(!(g&&c===0)){g=c===0;{var f=Qn;wi(h,l,a,i,e,(f.f&rt)!==0,n)}r!==null&&(c===0?d?hn(d):d=At(()=>r(a)):d!==null&&Pn(d,()=>{d=null})),t()}})}function wi(s,e,t,n,i,r,a,l){var o=s.length,d=e.items,g=e.first,u=g,h,c=null,f=[],w=[],_,S,b,A;for(A=0;A<o;A+=1){if(_=s[A],S=a(_,A),b=d.get(S),b===void 0){var C=u?u.e.nodes_start:t;c=bi(C,e,c,c===null?e.first:c.next,_,S,A,n,i),d.set(S,c),f=[],w=[],u=c.next;continue}if(xi(b,_,A),b.e.f&rt&&hn(b.e),b!==u){if(h!==void 0&&h.has(b)){if(f.length<w.length){var k=w[0],H;c=k.prev;var O=f[0],Q=f[f.length-1];for(H=0;H<f.length;H+=1)Zt(f[H],k,t);for(H=0;H<w.length;H+=1)h.delete(w[H]);ye(e,O.prev,Q.next),ye(e,c,O),ye(e,Q,k),u=k,c=Q,A-=1,f=[],w=[]}else h.delete(b),Zt(b,u,t),ye(e,b.prev,b.next),ye(e,b,c===null?e.first:c.next),ye(e,c,b),c=b;continue}for(f=[],w=[];u!==null&&u.k!==S;)(r||!(u.e.f&rt))&&(h??(h=new Set)).add(u),w.push(u),u=u.next;if(u===null)continue;b=u}f.push(b),c=b,u=b.next}if(u!==null||h!==void 0){for(var ee=h===void 0?[]:dn(h);u!==null;)(r||!(u.e.f&rt))&&ee.push(u),u=u.next;var U=ee.length;if(U>0){var V=o===0?t:null;ki(e,ee,V,d)}}Dt.first=e.first&&e.first.e,Dt.last=c&&c.e}function xi(s,e,t,n){Dn(s.v,e),s.i=t}function bi(s,e,t,n,i,r,a,l,o,d){var g=(o&Gn)!==0,u=(o&Yn)===0,h=g?u?Vn(i):$t(i):i,c=o&Xn?$t(a):a,f={i:c,v:h,k:r,a:null,e:null,prev:t,next:n};try{return f.e=At(()=>l(s,h,c),$n),f.e.prev=t&&t.e,f.e.next=n&&n.e,t===null?e.first=f:(t.next=f,t.e.next=f.e),n!==null&&(n.prev=f,n.e.prev=f.e),f}finally{}}function Zt(s,e,t){for(var n=s.next?s.next.e.nodes_start:t,i=e?e.e.nodes_start:t,r=s.e.nodes_start;r!==n;){var a=Jn(r);i.before(r),r=a}}function ye(s,e,t){e===null?s.first=t:(e.next=t,e.e.next=t&&t.e),t!==null&&(t.prev=e,t.e.prev=e&&e.e)}function lt(s,e,...t){var n=s,i=ke,r;cn(()=>{i!==(i=e())&&(r&&(gn(r),r=null),r=At(()=>i(n,...t)))},Kn)}function yt(s,e){var t=s.__attributes??(s.__attributes={});t.value===(t.value=e??void 0)||s.value===e&&(e!==0||s.nodeName!=="PROGRESS")||(s.value=e)}function K(s,e,t,n){var i=s.__attributes??(s.__attributes={});i[e]!==(i[e]=t)&&(e==="style"&&"__styles"in s&&(s.__styles={}),e==="loading"&&(s[ei]=t),t==null?s.removeAttribute(e):typeof t!="string"&&_i(s).includes(e)?s[e]=t:s.setAttribute(e,t))}var Ft=new Map;function _i(s){var e=Ft.get(s.nodeName);if(e)return e;Ft.set(s.nodeName,e=[]);for(var t,n=s,i=Element.prototype;i!==n;){t=ni(n);for(var r in t)t[r].set&&e.push(r);n=ti(n)}return e}function Qt(s,e,t,n){var i=s.__styles??(s.__styles={});i[e]!==t&&(i[e]=t,t==null?s.style.removeProperty(e):s.style.setProperty(e,t,""))}function Vt(s,e){return s===e||(s==null?void 0:s[ai])===e}function Je(s={},e,t,n){return ii(()=>{var i,r;return si(()=>{i=r,r=[],ri(()=>{s!==t(...r)&&(e(s,...r),i&&Vt(t(...i),s)&&e(null,...i))})}),()=>{mi(()=>{r&&Vt(t(...r),s)&&e(null,...r)})}}),s}function yi(s){return function(...e){var t=e[0];return t.preventDefault(),s==null?void 0:s.apply(this,e)}}function Ve(s,e){var r;var t=(r=s.$$events)==null?void 0:r[e.type],n=un(t)?t.slice():t==null?[]:[t];for(var i of n)i.call(this,e)}function zi(s,e,t,n){document.addEventListener("mousemove",e),document.addEventListener("mouseup",t),q(n,!0)}var Si=L('<div class="container svelte-1pql0kc"><div class="top svelte-1pql0kc"><!></div> <div class="dragbar svelte-1pql0kc"></div> <!></div>');function Ei(s,e){te(e,!0);const t=we();let n=Z(e,"topHeight",15),i=F(void 0),r=F(!1),a=F(!1);J(()=>{if(p(i)&&!p(a)){q(a,!0);const _=p(i).offsetHeight;t("out",{maxHeight:_,topHeight:Math.round(_*.7)})}});let l=F(void 0);J(()=>{Number.isInteger(n())&&Number.isInteger(e.maxHeight)&&q(l,ae(e.maxHeight<n()?e.maxHeight+"px":n()+"px"))});const o=new ResizeObserver(_=>{_.forEach(()=>{t("out",{maxHeight:p(i).offsetHeight,maxWidth:p(i).offsetWidth})})});pn(()=>{o.observe(p(i))}),fn(()=>{o.disconnect()});const d=_=>{window.getSelection().removeAllRanges();const S=Math.min(e.maxHeight,_.pageY-p(i).offsetTop-7);n(S),t("out",{topHeight:n()})};function g(){document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",g),t("out",{topHeight:n()}),q(r,!1)}var u=Si(),h=v(u),c=v(h);lt(c,()=>e.top??ke);var f=T(h,2);f.__mousedown=[zi,d,g,r];var w=T(f,2);lt(w,()=>e.bottom??ke),Je(u,_=>q(i,_),()=>p(i)),X(()=>{K(h,"style",`height: ${p(l)??""};`),P(f,"dragging",p(r))}),E(s,u),ne()}pe(["mousedown"]);var Ti=L('<div class="resizepane-container svelte-mmou7f"><div class="resizepane"><!></div> <div class="dragbar vertical svelte-mmou7f"><div class="dragbar-icon svelte-mmou7f"></div></div> <div class="dragbar horizontal svelte-mmou7f"><div class="dragbar-icon svelte-mmou7f"></div></div> <div class="dragbar corner svelte-mmou7f"><div class="dragbar-icon svelte-mmou7f"></div></div></div>');function Ci(s,e){te(e,!0);let t=Z(e,"disabled",3,!1);const n=we();let i=F(void 0),r="",a=F(void 0);J(()=>{Number.isInteger(e.paneHeight)&&!t()?q(a,Math.min(e.paneHeight,e.maxHeight)+"px"):q(a,e.maxHeight+"px")});let l=F(void 0);J(()=>{Number.isInteger(e.paneWidth)?q(l,Math.min(e.paneWidth,e.maxWidth)+"px"):q(l,e.maxWidth+"px")});const o=C=>()=>{r=C,document.addEventListener("mousemove",d),document.addEventListener("mouseup",g)},d=C=>{if(window.getSelection().removeAllRanges(),r.includes("horizontal")){let k=C.pageY-p(i).offsetTop-11;k>e.maxHeight?k="full":(k=Math.min(e.maxHeight,k),k=Math.max(50,k)),n("out",{stageHeight:k})}if(r.includes("vertical")){let k=C.pageX-p(i).offsetLeft-10;k>e.maxWidth?k="full":(k=Math.min(e.maxWidth,k),k=Math.max(50,k)),n("out",{stageWidth:k})}};function g(){document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",g)}var u=Ti(),h=v(u),c=v(h);lt(c,()=>e.children??ke),Je(h,C=>q(i,C),()=>p(i));var f=T(h,2),w=he(()=>o("vertical"));f.__mousedown=function(...C){var k;(k=p(w))==null||k.apply(this,C)};var _=T(f,2),S=he(()=>o("horizontal"));_.__mousedown=function(...C){var k;(k=p(S))==null||k.apply(this,C)};var b=T(_,2),A=he(()=>o("verticalhorizontal"));b.__mousedown=function(...C){var k;(k=p(A))==null||k.apply(this,C)},X(()=>{P(u,"disabled",t()),P(h,"disabled",t()),Qt(h,"width",t()?void 0:p(l)),Qt(h,"height",t()?void 0:p(a)),P(f,"disabled",t()),P(_,"disabled",t()),P(b,"disabled",t())}),E(s,u),ne()}pe(["mousedown"]);function Ri(s,e){te(e,!0);let t=Z(e,"item",19,()=>({}));var n=je(),i=Se(n);li(i,()=>t().page,(r,a)=>{a(r,oi(()=>t().props,{$$events:{out(l){Ve.call(this,e,l)}}}))}),E(s,n),ne()}function Mi(s,e){e("out",{toggleExpandPanel:!0})}var Ai=L('<li class="svelte-1opzoal"><button class="svelte-1opzoal"> <span class="dot svelte-1opzoal"></span></button></li>'),Hi=L('<div class="panel_nav svelte-1opzoal"><nav class="svelte-1opzoal"><ul class="svelte-1opzoal"></ul></nav> <button class="panel_toggle svelte-1opzoal" title="Collapse panel"><span class="is-hidden svelte-1opzoal">Collapse panel</span> <svg class="controls_btn-icon svelte-1opzoal" 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></button></div> <div class="panel_pane svelte-1opzoal"><!></div>',1),Li=L('<div class="panel_container svelte-1opzoal"><!></div>');function Ii(s,e){te(e,!0);const t=we();let n=Z(e,"tabs",19,()=>[]),i=F(ae({})),r=F(void 0);J(()=>{n()?q(r,ae(n().find(u=>u.name===p(i))||n()[0])):q(r,ae({}))});const a=u=>()=>{q(i,ae(u.name)),t("out",{selecteditem:u})};function l(u){p(r).out&&p(r).out(u)}var o=Li(),d=v(o);{var g=u=>{var h=Hi(),c=Se(h),f=v(c),w=v(f);Ye(w,21,n,Ge,(k,H)=>{var O=Ai(),Q=v(O),ee=he(()=>a(p(H)));Q.__click=function(...V){var ie;(ie=p(ee))==null||ie.apply(this,V)};var U=v(Q);X(()=>{P(Q,"active",p(H)==p(r)),se(U,p(H).name)}),E(k,O)});var _=T(f,2);_.__click=[Mi,t];var S=T(c,2),b=v(S);{var A=k=>{Ri(k,{get item(){return p(r)},$$events:{out:l}})},C=k=>{var H=je(),O=Se(H);{var Q=U=>{var V=je(),ie=Se(V);lt(ie,()=>e.children),E(U,V)},ee=U=>{var V=vn("No tab content provided");E(U,V)};D(O,U=>{e.children?U(Q):U(ee,!1)},!0)}E(k,H)};D(b,k=>{p(r)&&p(r).page?k(A):k(C,!1)})}E(u,h)};D(d,u=>{n().length&&u(g)})}E(s,o),ne()}pe(["click"]);var Ni=L('<li class="svelte-9ikz8y"><button class="svelte-9ikz8y"><span class="dot svelte-9ikz8y"></span> </button></li>'),Bi=L('<ul class="stories svelte-9ikz8y"></ul>');function Wi(s,e){te(e,!0);let t=Z(e,"items",19,()=>[]);const n=we(),i=a=>()=>{n("out",{selecteditem:a})};var r=Bi();Ye(r,21,t,Ge,(a,l)=>{var o=Ni(),d=v(o),g=he(()=>i(p(l)));d.__click=function(...h){var c;(c=p(g))==null||c.apply(this,h)};var u=T(v(d));X(()=>{P(o,"active",e.selected==p(l)),se(u,` ${p(l)??""}`)}),E(a,o)}),E(s,r),ne()}pe(["click"]);function kn(){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 He=kn();function qi(s){He=s}const wn=/[&<>"']/,ji=new RegExp(wn.source,"g"),xn=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Oi=new RegExp(xn.source,"g"),Pi={"&":"&","<":"<",">":">",'"':""","'":"'"},Xt=s=>Pi[s];function Y(s,e){if(e){if(wn.test(s))return s.replace(ji,Xt)}else if(xn.test(s))return s.replace(Oi,Xt);return s}const Di=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function bn(s){return s.replace(Di,(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 $i=/(^|[^\[])\^/g;function N(s,e){s=typeof s=="string"?s:s.source,e=e||"";const t={replace:(n,i)=>(i=i.source||i,i=i.replace($i,"$1"),s=s.replace(n,i),t),getRegex:()=>new RegExp(s,e)};return t}const Ui=/[^\w:]/g,Zi=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Gt(s,e,t){if(s){let n;try{n=decodeURIComponent(bn(t)).replace(Ui,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}e&&!Zi.test(t)&&(t=Xi(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const st={},Fi=/^[^:]+:\/*[^/]*$/,Qi=/^([^:]+:)[\s\S]*$/,Vi=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Xi(s,e){st[" "+s]||(Fi.test(s)?st[" "+s]=s+"/":st[" "+s]=at(s,"/",!0)),s=st[" "+s];const t=s.indexOf(":")===-1;return e.substring(0,2)==="//"?t?e:s.replace(Qi,"$1")+e:e.charAt(0)==="/"?t?e:s.replace(Vi,"$1")+e:s+e}const ot={exec:function(){}};function Yt(s,e){const t=s.replace(/\|/g,(r,a,l)=>{let o=!1,d=a;for(;--d>=0&&l[d]==="\\";)o=!o;return o?"|":" |"}),n=t.split(/ \|/);let i=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(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n}function at(s,e,t){const n=s.length;if(n===0)return"";let i=0;for(;i<n;){const r=s.charAt(n-i-1);if(r===e&&!t)i++;else if(r!==e&&t)i++;else break}return s.slice(0,n-i)}function Gi(s,e){if(s.indexOf(e[1])===-1)return-1;const t=s.length;let n=0,i=0;for(;i<t;i++)if(s[i]==="\\")i++;else if(s[i]===e[0])n++;else if(s[i]===e[1]&&(n--,n<0))return i;return-1}function Yi(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 Jt(s,e){if(e<1)return"";let t="";for(;e>1;)e&1&&(t+=s),e>>=1,s+=s;return t+s}function Kt(s,e,t,n){const i=e.href,r=e.title?Y(e.title):null,a=s[1].replace(/\\([\[\]])/g,"$1");if(s[0].charAt(0)!=="!"){n.state.inLink=!0;const l={type:"link",raw:t,href:i,title:r,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,l}return{type:"image",raw:t,href:i,title:r,text:Y(a)}}function Ji(s,e){const t=s.match(/^(\s+)(?:```)/);if(t===null)return e;const n=t[1];return e.split(`
|
|
2
|
+
`).map(i=>{const r=i.match(/^\s+/);if(r===null)return i;const[a]=r;return a.length>=n.length?i.slice(n.length):i}).join(`
|
|
3
|
+
`)}class Lt{constructor(e){this.options=e||He}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:at(n,`
|
|
4
|
+
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],i=Ji(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:i}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){const i=at(n,"#");(this.options.pedantic||!i||/ $/.test(i))&&(n=i.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,""),i=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(n);return this.lexer.state.top=i,{type:"blockquote",raw:t[0],tokens:r,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,i,r,a,l,o,d,g,u,h,c,f,w=t[1].trim();const _=w.length>1,S={type:"list",raw:"",ordered:_,start:_?+w.slice(0,-1):"",loose:!1,items:[]};w=_?`\\d{1,9}\\${w.slice(-1)}`:`\\${w}`,this.options.pedantic&&(w=_?w:"[*+-]");const b=new RegExp(`^( {0,3}${w})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(f=!1,!(!(t=b.exec(e))||this.rules.block.hr.test(e)));){if(n=t[0],e=e.substring(n.length),g=t[2].split(`
|
|
5
|
+
`,1)[0].replace(/^\t+/,C=>" ".repeat(3*C.length)),u=e.split(`
|
|
6
|
+
`,1)[0],this.options.pedantic?(a=2,c=g.trimLeft()):(a=t[2].search(/[^ ]/),a=a>4?1:a,c=g.slice(a),a+=t[1].length),o=!1,!g&&/^ *$/.test(u)&&(n+=u+`
|
|
7
|
+
`,e=e.substring(u.length+1),f=!0),!f){const C=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),k=new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),H=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),O=new RegExp(`^ {0,${Math.min(3,a-1)}}#`);for(;e&&(h=e.split(`
|
|
8
|
+
`,1)[0],u=h,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(H.test(u)||O.test(u)||C.test(u)||k.test(e)));){if(u.search(/[^ ]/)>=a||!u.trim())c+=`
|
|
9
|
+
`+u.slice(a);else{if(o||g.search(/[^ ]/)>=4||H.test(g)||O.test(g)||k.test(g))break;c+=`
|
|
10
|
+
`+u}!o&&!u.trim()&&(o=!0),n+=h+`
|
|
11
|
+
`,e=e.substring(h.length+1),g=u.slice(a)}}S.loose||(d?S.loose=!0:/\n *\n *$/.test(n)&&(d=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(c),i&&(r=i[0]!=="[ ] ",c=c.replace(/^\[[ xX]\] +/,""))),S.items.push({type:"list_item",raw:n,task:!!i,checked:r,loose:!1,text:c}),S.raw+=n}S.items[S.items.length-1].raw=n.trimRight(),S.items[S.items.length-1].text=c.trimRight(),S.raw=S.raw.trimRight();const A=S.items.length;for(l=0;l<A;l++)if(this.lexer.state.top=!1,S.items[l].tokens=this.lexer.blockTokens(S.items[l].text,[]),!S.loose){const C=S.items[l].tokens.filter(H=>H.type==="space"),k=C.length>0&&C.some(H=>/\n.*\n/.test(H.raw));S.loose=k}if(S.loose)for(l=0;l<A;l++)S.items[l].loose=!0;return S}}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 i=this.options.sanitizer?this.options.sanitizer(t[0]):Y(t[0]);n.type="paragraph",n.text=i,n.tokens=this.lexer.inline(i)}return n}}def(e){const t=this.rules.block.def.exec(e);if(t){const n=t[1].toLowerCase().replace(/\s+/g," "),i=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=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:i,title:r}}}table(e){const t=this.rules.block.table.exec(e);if(t){const n={type:"table",header:Yt(t[1]).map(i=>({text:i})),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 i=n.align.length,r,a,l,o;for(r=0;r<i;r++)/^ *-+: *$/.test(n.align[r])?n.align[r]="right":/^ *:-+: *$/.test(n.align[r])?n.align[r]="center":/^ *:-+ *$/.test(n.align[r])?n.align[r]="left":n.align[r]=null;for(i=n.rows.length,r=0;r<i;r++)n.rows[r]=Yt(n.rows[r],n.header.length).map(d=>({text:d}));for(i=n.header.length,a=0;a<i;a++)n.header[a].tokens=this.lexer.inline(n.header[a].text);for(i=n.rows.length,a=0;a<i;a++)for(o=n.rows[a],l=0;l<o.length;l++)o[l].tokens=this.lexer.inline(o[l].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:Y(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]):Y(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 a=at(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{const a=Gi(t[2],"()");if(a>-1){const o=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,o).trim(),t[3]=""}}let i=t[2],r="";if(this.options.pedantic){const a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);a&&(i=a[1],r=a[3])}else r=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(n)?i=i.slice(1):i=i.slice(1,-1)),Kt(t,{href:i&&i.replace(this.rules.inline._escapes,"$1"),title:r&&r.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 i=(n[2]||n[1]).replace(/\s+/g," ");if(i=t[i.toLowerCase()],!i){const r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return Kt(n,i,n[0],this.lexer)}}emStrong(e,t,n=""){let i=this.rules.inline.emStrong.lDelim.exec(e);if(!i||i[3]&&n.match(/[\p{L}\p{N}]/u))return;const r=i[1]||i[2]||"";if(!r||r&&(n===""||this.rules.inline.punctuation.exec(n))){const a=i[0].length-1;let l,o,d=a,g=0;const u=i[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+a);(i=u.exec(t))!=null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(o=l.length,i[3]||i[4]){d+=o;continue}else if((i[5]||i[6])&&a%3&&!((a+o)%3)){g+=o;continue}if(d-=o,d>0)continue;o=Math.min(o,o+d+g);const h=e.slice(0,a+i.index+(i[0].length-l.length)+o);if(Math.min(a,o)%2){const f=h.slice(1,-1);return{type:"em",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}const c=h.slice(2,-2);return{type:"strong",raw:h,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(/\n/g," ");const i=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return i&&r&&(n=n.substring(1,n.length-1)),n=Y(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 i,r;return n[2]==="@"?(i=Y(this.options.mangle?t(n[1]):n[1]),r="mailto:"+i):(i=Y(n[1]),r=i),{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let i,r;if(n[2]==="@")i=Y(this.options.mangle?t(n[0]):n[0]),r="mailto:"+i;else{let a;do a=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(a!==n[0]);i=Y(n[0]),n[1]==="www."?r="http://"+n[0]:r=n[0]}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let i;return this.lexer.state.inRawBlock?i=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):Y(n[0]):n[0]:i=Y(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:i}}}}const y={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:ot,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};y._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;y._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;y.def=N(y.def).replace("label",y._label).replace("title",y._title).getRegex();y.bullet=/(?:[*+-]|\d{1,9}[.)])/;y.listItemStart=N(/^( *)(bull) */).replace("bull",y.bullet).getRegex();y.list=N(y.list).replace(/bull/g,y.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+y.def.source+")").getRegex();y._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";y._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;y.html=N(y.html,"i").replace("comment",y._comment).replace("tag",y._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();y.paragraph=N(y._paragraph).replace("hr",y.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",y._tag).getRegex();y.blockquote=N(y.blockquote).replace("paragraph",y.paragraph).getRegex();y.normal={...y};y.gfm={...y.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};y.gfm.table=N(y.gfm.table).replace("hr",y.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",y._tag).getRegex();y.gfm.paragraph=N(y._paragraph).replace("hr",y.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",y.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",y._tag).getRegex();y.pedantic={...y.normal,html:N(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",y._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:ot,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:N(y.normal._paragraph).replace("hr",y.hr).replace("heading",` *#{1,6} *[^
|
|
14
|
+
]`).replace("lheading",y.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const m={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ot,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:ot,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};m._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";m.punctuation=N(m.punctuation).replace(/punctuation/g,m._punctuation).getRegex();m.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;m.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;m._comment=N(y._comment).replace("(?:-->|$)","-->").getRegex();m.emStrong.lDelim=N(m.emStrong.lDelim).replace(/punct/g,m._punctuation).getRegex();m.emStrong.rDelimAst=N(m.emStrong.rDelimAst,"g").replace(/punct/g,m._punctuation).getRegex();m.emStrong.rDelimUnd=N(m.emStrong.rDelimUnd,"g").replace(/punct/g,m._punctuation).getRegex();m._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;m._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;m._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])?)+(?![-_])/;m.autolink=N(m.autolink).replace("scheme",m._scheme).replace("email",m._email).getRegex();m._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;m.tag=N(m.tag).replace("comment",m._comment).replace("attribute",m._attribute).getRegex();m._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;m._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;m._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;m.link=N(m.link).replace("label",m._label).replace("href",m._href).replace("title",m._title).getRegex();m.reflink=N(m.reflink).replace("label",m._label).replace("ref",y._label).getRegex();m.nolink=N(m.nolink).replace("ref",y._label).getRegex();m.reflinkSearch=N(m.reflinkSearch,"g").replace("reflink",m.reflink).replace("nolink",m.nolink).getRegex();m.normal={...m};m.pedantic={...m.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:N(/^!?\[(label)\]\((.*?)\)/).replace("label",m._label).getRegex(),reflink:N(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",m._label).getRegex()};m.gfm={...m.normal,escape:N(m.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.!#$%&'*+\/=?_`{\|}~-]+@)))/};m.gfm.url=N(m.gfm.url,"i").replace("email",m.gfm._extended_email).getRegex();m.breaks={...m.gfm,br:N(m.br).replace("{2,}","*").getRegex(),text:N(m.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};function Ki(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 en(s){let e="",t,n;const i=s.length;for(t=0;t<i;t++)n=s.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),e+="&#"+n+";";return e}class Ce{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||He,this.options.tokenizer=this.options.tokenizer||new Lt,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:y.normal,inline:m.normal};this.options.pedantic?(t.block=y.pedantic,t.inline=m.pedantic):this.options.gfm&&(t.block=y.gfm,this.options.breaks?t.inline=m.breaks:t.inline=m.gfm),this.tokenizer.rules=t}static get rules(){return{block:y,inline:m}}static lex(e,t){return new Ce(t).lex(e)}static lexInline(e,t){return new Ce(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,(l,o,d)=>o+" ".repeat(d.length));let n,i,r,a;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(n=l.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),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
|
|
17
|
+
`+n.raw,i.text+=`
|
|
18
|
+
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.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),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
|
|
19
|
+
`+n.raw,i.text+=`
|
|
20
|
+
`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.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(r=e,this.options.extensions&&this.options.extensions.startBlock){let l=1/0;const o=e.slice(1);let d;this.options.extensions.startBlock.forEach(function(g){d=g.call({lexer:this},o),typeof d=="number"&&d>=0&&(l=Math.min(l,d))}),l<1/0&&l>=0&&(r=e.substring(0,l+1))}if(this.state.top&&(n=this.tokenizer.paragraph(r))){i=t[t.length-1],a&&i.type==="paragraph"?(i.raw+=`
|
|
21
|
+
`+n.raw,i.text+=`
|
|
22
|
+
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n),a=r.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&i.type==="text"?(i.raw+=`
|
|
23
|
+
`+n.raw,i.text+=`
|
|
24
|
+
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n);continue}if(e){const l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,i,r,a=e,l,o,d;if(this.tokens.links){const g=Object.keys(this.tokens.links);if(g.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)g.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,l.index)+"["+Jt("a",l[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,l.index)+"["+Jt("a",l[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.escapedEmSt.exec(a))!=null;)a=a.slice(0,l.index+l[0].length-2)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(o||(d=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(g=>(n=g.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),i=t[t.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.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),i=t[t.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,a,d)){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,en)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e,en))){e=e.substring(n.raw.length),t.push(n);continue}if(r=e,this.options.extensions&&this.options.extensions.startInline){let g=1/0;const u=e.slice(1);let h;this.options.extensions.startInline.forEach(function(c){h=c.call({lexer:this},u),typeof h=="number"&&h>=0&&(g=Math.min(g,h))}),g<1/0&&g>=0&&(r=e.substring(0,g+1))}if(n=this.tokenizer.inlineText(r,Ki)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(d=n.raw.slice(-1)),o=!0,i=t[t.length-1],i&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):t.push(n);continue}if(e){const g="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(g);break}else throw new Error(g)}}return t}}class It{constructor(e){this.options=e||He}code(e,t,n){const i=(t||"").match(/\S*/)[0];if(this.options.highlight){const r=this.options.highlight(e,i);r!=null&&r!==e&&(n=!0,e=r)}return e=e.replace(/\n$/,"")+`
|
|
25
|
+
`,i?'<pre><code class="'+this.options.langPrefix+Y(i)+'">'+(n?e:Y(e,!0))+`</code></pre>
|
|
26
|
+
`:"<pre><code>"+(n?e:Y(e,!0))+`</code></pre>
|
|
27
|
+
`}blockquote(e){return`<blockquote>
|
|
28
|
+
${e}</blockquote>
|
|
29
|
+
`}html(e){return e}heading(e,t,n,i){if(this.options.headerIds){const r=this.options.headerPrefix+i.slug(n);return`<h${t} id="${r}">${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 i=t?"ol":"ul",r=t&&n!==1?' start="'+n+'"':"";return"<"+i+r+`>
|
|
34
|
+
`+e+"</"+i+`>
|
|
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=Gt(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let i='<a href="'+e+'"';return t&&(i+=' title="'+t+'"'),i+=">"+n+"</a>",i}image(e,t,n){if(e=Gt(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let i=`<img src="${e}" alt="${n}"`;return t&&(i+=` title="${t}"`),i+=this.options.xhtml?"/>":">",i}text(e){return e}}class _n{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 yn{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,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[e];do i++,n=e+"-"+i;while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=i,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class Re{constructor(e){this.options=e||He,this.options.renderer=this.options.renderer||new It,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new _n,this.slugger=new yn}static parse(e,t){return new Re(t).parse(e)}static parseInline(e,t){return new Re(t).parseInline(e)}parse(e,t=!0){let n="",i,r,a,l,o,d,g,u,h,c,f,w,_,S,b,A,C,k,H;const O=e.length;for(i=0;i<O;i++){if(c=e[i],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[c.type]&&(H=this.options.extensions.renderers[c.type].call({parser:this},c),H!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type))){n+=H||"";continue}switch(c.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{n+=this.renderer.heading(this.parseInline(c.tokens),c.depth,bn(this.parseInline(c.tokens,this.textRenderer)),this.slugger);continue}case"code":{n+=this.renderer.code(c.text,c.lang,c.escaped);continue}case"table":{for(u="",g="",l=c.header.length,r=0;r<l;r++)g+=this.renderer.tablecell(this.parseInline(c.header[r].tokens),{header:!0,align:c.align[r]});for(u+=this.renderer.tablerow(g),h="",l=c.rows.length,r=0;r<l;r++){for(d=c.rows[r],g="",o=d.length,a=0;a<o;a++)g+=this.renderer.tablecell(this.parseInline(d[a].tokens),{header:!1,align:c.align[a]});h+=this.renderer.tablerow(g)}n+=this.renderer.table(u,h);continue}case"blockquote":{h=this.parse(c.tokens),n+=this.renderer.blockquote(h);continue}case"list":{for(f=c.ordered,w=c.start,_=c.loose,l=c.items.length,h="",r=0;r<l;r++)b=c.items[r],A=b.checked,C=b.task,S="",b.task&&(k=this.renderer.checkbox(A),_?b.tokens.length>0&&b.tokens[0].type==="paragraph"?(b.tokens[0].text=k+" "+b.tokens[0].text,b.tokens[0].tokens&&b.tokens[0].tokens.length>0&&b.tokens[0].tokens[0].type==="text"&&(b.tokens[0].tokens[0].text=k+" "+b.tokens[0].tokens[0].text)):b.tokens.unshift({type:"text",text:k}):S+=k),S+=this.parse(b.tokens,_),h+=this.renderer.listitem(S,C,A);n+=this.renderer.list(h,f,w);continue}case"html":{n+=this.renderer.html(c.text);continue}case"paragraph":{n+=this.renderer.paragraph(this.parseInline(c.tokens));continue}case"text":{for(h=c.tokens?this.parseInline(c.tokens):c.text;i+1<O&&e[i+1].type==="text";)c=e[++i],h+=`
|
|
45
|
+
`+(c.tokens?this.parseInline(c.tokens):c.text);n+=t?this.renderer.paragraph(h):h;continue}default:{const Q='Token with "'+c.type+'" type was not found.';if(this.options.silent){console.error(Q);return}else throw new Error(Q)}}}return n}parseInline(e,t){t=t||this.renderer;let n="",i,r,a;const l=e.length;for(i=0;i<l;i++){if(r=e[i],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(a=this.options.extensions.renderers[r.type].call({parser:this},r),a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type))){n+=a||"";continue}switch(r.type){case"escape":{n+=t.text(r.text);break}case"html":{n+=t.html(r.text);break}case"link":{n+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break}case"image":{n+=t.image(r.href,r.title,r.text);break}case"strong":{n+=t.strong(this.parseInline(r.tokens,t));break}case"em":{n+=t.em(this.parseInline(r.tokens,t));break}case"codespan":{n+=t.codespan(r.text);break}case"br":{n+=t.br();break}case"del":{n+=t.del(this.parseInline(r.tokens,t));break}case"text":{n+=t.text(r.text);break}default:{const o='Token with "'+r.type+'" type was not found.';if(this.options.silent){console.error(o);return}else throw new Error(o)}}}return n}}class ct{constructor(e){this.options=e||He}preprocess(e){return e}postprocess(e){return e}}Pt(ct,"passThroughHooks",new Set(["preprocess","postprocess"]));function es(s,e,t){return n=>{if(n.message+=`
|
|
46
|
+
Please report this to https://github.com/markedjs/marked.`,s){const i="<p>An error occurred:</p><pre>"+Y(n.message+"",!0)+"</pre>";if(e)return Promise.resolve(i);if(t){t(null,i);return}return i}if(e)return Promise.reject(n);if(t){t(n);return}throw n}}function zn(s,e){return(t,n,i)=>{typeof n=="function"&&(i=n,n=null);const r={...n};n={...z.defaults,...r};const a=es(n.silent,n.async,i);if(typeof t>"u"||t===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(Yi(n),n.hooks&&(n.hooks.options=n),i){const l=n.highlight;let o;try{n.hooks&&(t=n.hooks.preprocess(t)),o=s(t,n)}catch(u){return a(u)}const d=function(u){let h;if(!u)try{n.walkTokens&&z.walkTokens(o,n.walkTokens),h=e(o,n),n.hooks&&(h=n.hooks.postprocess(h))}catch(c){u=c}return n.highlight=l,u?a(u):i(null,h)};if(!l||l.length<3||(delete n.highlight,!o.length))return d();let g=0;z.walkTokens(o,function(u){u.type==="code"&&(g++,setTimeout(()=>{l(u.text,u.lang,function(h,c){if(h)return d(h);c!=null&&c!==u.text&&(u.text=c,u.escaped=!0),g--,g===0&&d()})},0))}),g===0&&d();return}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(t):t).then(l=>s(l,n)).then(l=>n.walkTokens?Promise.all(z.walkTokens(l,n.walkTokens)).then(()=>l):l).then(l=>e(l,n)).then(l=>n.hooks?n.hooks.postprocess(l):l).catch(a);try{n.hooks&&(t=n.hooks.preprocess(t));const l=s(t,n);n.walkTokens&&z.walkTokens(l,n.walkTokens);let o=e(l,n);return n.hooks&&(o=n.hooks.postprocess(o)),o}catch(l){return a(l)}}}function z(s,e,t){return zn(Ce.lex,Re.parse)(s,e,t)}z.options=z.setOptions=function(s){return z.defaults={...z.defaults,...s},qi(z.defaults),z};z.getDefaults=kn;z.defaults=He;z.use=function(...s){const e=z.defaults.extensions||{renderers:{},childTokens:{}};s.forEach(t=>{const n={...t};if(n.async=z.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if(i.renderer){const r=e.renderers[i.name];r?e.renderers[i.name]=function(...a){let l=i.renderer.apply(this,a);return l===!1&&(l=r.apply(this,a)),l}:e.renderers[i.name]=i.renderer}if(i.tokenizer){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[i.level]?e[i.level].unshift(i.tokenizer):e[i.level]=[i.tokenizer],i.start&&(i.level==="block"?e.startBlock?e.startBlock.push(i.start):e.startBlock=[i.start]:i.level==="inline"&&(e.startInline?e.startInline.push(i.start):e.startInline=[i.start]))}i.childTokens&&(e.childTokens[i.name]=i.childTokens)}),n.extensions=e),t.renderer){const i=z.defaults.renderer||new It;for(const r in t.renderer){const a=i[r];i[r]=(...l)=>{let o=t.renderer[r].apply(i,l);return o===!1&&(o=a.apply(i,l)),o}}n.renderer=i}if(t.tokenizer){const i=z.defaults.tokenizer||new Lt;for(const r in t.tokenizer){const a=i[r];i[r]=(...l)=>{let o=t.tokenizer[r].apply(i,l);return o===!1&&(o=a.apply(i,l)),o}}n.tokenizer=i}if(t.hooks){const i=z.defaults.hooks||new ct;for(const r in t.hooks){const a=i[r];ct.passThroughHooks.has(r)?i[r]=l=>{if(z.defaults.async)return Promise.resolve(t.hooks[r].call(i,l)).then(d=>a.call(i,d));const o=t.hooks[r].call(i,l);return a.call(i,o)}:i[r]=(...l)=>{let o=t.hooks[r].apply(i,l);return o===!1&&(o=a.apply(i,l)),o}}n.hooks=i}if(t.walkTokens){const i=z.defaults.walkTokens;n.walkTokens=function(r){let a=[];return a.push(t.walkTokens.call(this,r)),i&&(a=a.concat(i.call(this,r))),a}}z.setOptions(n)})};z.walkTokens=function(s,e){let t=[];for(const n of s)switch(t=t.concat(e.call(z,n)),n.type){case"table":{for(const i of n.header)t=t.concat(z.walkTokens(i.tokens,e));for(const i of n.rows)for(const r of i)t=t.concat(z.walkTokens(r.tokens,e));break}case"list":{t=t.concat(z.walkTokens(n.items,e));break}default:z.defaults.extensions&&z.defaults.extensions.childTokens&&z.defaults.extensions.childTokens[n.type]?z.defaults.extensions.childTokens[n.type].forEach(function(i){t=t.concat(z.walkTokens(n[i],e))}):n.tokens&&(t=t.concat(z.walkTokens(n.tokens,e)))}return t};z.parseInline=zn(Ce.lexInline,Re.parseInline);z.Parser=Re;z.parser=Re.parse;z.Renderer=It;z.TextRenderer=_n;z.Lexer=Ce;z.lexer=Ce.lex;z.Tokenizer=Lt;z.Slugger=yn;z.Hooks=ct;z.parse=z;z.options;z.setOptions;z.use;z.walkTokens;z.parseInline;Re.parse;Ce.lex;const ts="modulepreload",ns=function(s){return"/"+s},tn={},Sn=function(e,t,n){let i=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(t.map(o=>{if(o=ns(o),o in tn)return;tn[o]=!0;const d=o.endsWith(".css"),g=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${g}`))return;const u=document.createElement("link");if(u.rel=d?"stylesheet":ts,d||(u.as="script"),u.crossOrigin="",u.href=o,l&&u.setAttribute("nonce",l),document.head.appendChild(u),d)return new Promise((h,c)=>{u.addEventListener("load",h),u.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${o}`)))})}))}function r(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return i.then(a=>{for(const l of a||[])l.status==="rejected"&&r(l.reason);return e().catch(r)})},En=async s=>{try{(await Sn(async()=>{const{default:t}=await import("./index-hi7xxTI1.js");return{default:t}},[])).default.highlightElement(s)}catch(e){console.error("Could not load highlight.js",e)}};var is=L('<div class="markdown-body"><!></div>');function ss(s,e){te(e,!0);let t=F(void 0);J(()=>{e.das&&p(t)&&setTimeout(()=>{p(t)&&Array.from(p(t).querySelectorAll("pre code")).forEach(r=>{En(r)})},200)});var n=is(),i=v(n);Ht(i,()=>z(e.das.descriptionfile||e.das.description)),Je(n,r=>q(t,r),()=>p(t)),E(s,n),ne()}var rs=L('<pre><code class="language-xml"> </code></pre>'),as=L("<div><!> <!></div>");function ls(s,e){te(e,!0);let t=F(void 0),n=F(void 0),i=F(ae([]));e.devmodus||r();async function r(){const h=await Sn(()=>import("../raw_component_import_map.js"),[]);q(i,ae(h.rawComponentMap))}function a(h,c){q(t,null),setTimeout(()=>{q(t,ae(c[h]))})}J(()=>{a(e.componentName,p(i))}),J(()=>{p(t)&&p(n)&&En(p(n))});var l=as(),o=v(l);{var d=h=>{var c=vn("Running Gardenjs in devmodus. No Code view supported.");E(h,c)};D(o,h=>{e.devmodus&&h(d)})}var g=T(o,2);{var u=h=>{var c=rs(),f=v(c),w=v(f);Je(f,_=>q(n,_),()=>p(n)),X(()=>se(w,p(t))),E(h,c)};D(g,h=>{p(t)&&h(u)})}E(s,l),ne()}var os=L('<iframe class="stage_iframe svelte-17n05ij" title="preview" src="/frame.html"></iframe>'),cs=L('<div class="panel svelte-17n05ij"><!></div>');function us(s,e){te(e,!0);const t=we();let n=Z(e,"das",19,()=>({})),i=F(void 0),r=F(void 0);const a=new ResizeObserver(c=>{c.forEach(f=>{d(f.contentRect)})});pn(()=>{p(r)&&(a.observe(p(r)),p(r).contentWindow.onload=()=>{q(i,!0)},p(r).contentWindow.addEventListener("mousemove",function(c){var f=p(r).getBoundingClientRect(),w=new CustomEvent("mousemove",{bubbles:!0,cancelable:!1});w.pageX=c.clientX+f.left,w.pageY=c.clientY+f.top,p(r).dispatchEvent(w)}),p(r).contentWindow.addEventListener("mouseup",function(){var c=new CustomEvent("mouseup",{bubbles:!0,cancelable:!1});p(r).dispatchEvent(c)}))}),fn(()=>{a.disconnect()});function l(c){var w;const f=[];return c.description&&f.push({name:"Notes",props:{das:c},page:ss}),(w=c.examples)!=null&&w.length&&f.push({name:"Examples",props:{selected:e.selectedExample,items:c.examples.map(_=>_.title)},page:Wi,out:o}),!e.devmodus&&c.componentfile&&f.push({name:"Code",props:{componentName:e.componentName,devmodus:e.devmodus},page:ls}),f}function o(c){globalThis.history.pushState({selectedExample:c.detail.selecteditem},"",window.location.pathname.substring(7))}function d(c){t("out",{stageRect:c})}function g(c){c.detail.topHeight&&t("out",{stageContainerHeight:c.detail.topHeight}),c.detail.maxHeight&&t("out",{stageContainerMaxHeight:c.detail.maxHeight}),c.detail.maxWidth&&t("out",{stageContainerWidth:c.detail.maxWidth})}function u(c){c.detail.stageHeight&&t("out",{stageHeight:c.detail.stageHeight}),c.detail.stageWidth&&t("out",{stageWidth:c.detail.stageWidth})}J(()=>{p(i)&&(!p(r).contentDocument||/frame.html$/.test(p(r).contentWindow.location),p(r).contentWindow.postMessage({selectedExample:e.selectedExample,componentName:e.componentName,stageSize:e.stageSize,theme:e.theme},window.location))});let h=he(()=>l(n()));Ei(s,{get topHeight(){return e.stageContainerHeight},get maxHeight(){return e.stageContainerMaxHeight},$$events:{out:g},top:w=>{var _=he(()=>e.stageSize!=="full");Ci(w,{get disabled(){return p(_)},get maxHeight(){return e.stageMaxHeight},get maxWidth(){return e.stageMaxWidth},get paneHeight(){return e.stageHeight},get paneWidth(){return e.stageWidth},$$events:{out:u},children:(S,b)=>{var A=os();Je(A,C=>q(r,C),()=>p(r)),X(()=>K(A,"style",e.stageStyle)),E(S,A)},$$slots:{default:!0}})},bottom:w=>{var _=cs(),S=v(_);{var b=A=>{Ii(A,{get tabs(){return p(h)},$$events:{out(C){Ve.call(this,e,C)}}})};D(S,A=>{e.panelExpanded&&A(b)})}E(w,_)},$$slots:{top:!0,bottom:!0}}),ne()}var ds=L('<a class="component_link svelte-1cnyrt6"><div class="component_link-container svelte-1cnyrt6"><div class="component_dot svelte-1cnyrt6"></div> <div class="component_icon svelte-1cnyrt6"><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></div> <div class="component_label svelte-1cnyrt6"><!></div></div></a>');function Tn(s,e){te(e,!0);function t(){globalThis.history.pushState({},"",e.href)}var n=ds(),i=he(()=>yi(t));n.__click=function(...o){var d;(d=p(i))==null||d.apply(this,o)};var r=v(n),a=T(v(r),4),l=v(a);Ht(l,()=>e.text),X(()=>{K(n,"href",e.href),P(n,"selected",e.selected)}),E(s,n),ne()}pe(["click"]);var hs=(s,e,t)=>e(p(t)),gs=L('<li class="component svelte-qxg2ml"><!> <button class="close svelte-qxg2ml"><svg xmlns="http://www.w3.org/2000/svg" class="close-icon svelte-qxg2ml" height="12" viewBox="0 0 24 24" width="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6L6 18M6 6l12 12"></path></svg></button></li>'),ps=L('<div class="bookmarks svelte-qxg2ml"><div class="bookmarks_title svelte-qxg2ml"><span class="bookmarks_title-icon svelte-qxg2ml"><svg xmlns="http://www.w3.org/2000/svg" class="bookmark_icon" height="15" viewBox="0 0 24 24" width="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"></path></svg></span> <span class="bookmarks_title-label svelte-qxg2ml">Bookmarks</span></div> <nav class="bookmarks_nav"><ul class="components svelte-qxg2ml"></ul></nav> <div class="border-btm svelte-qxg2ml"></div></div>');function fs(s,e){te(e,!0);const t=we();let n=Z(e,"bookmarks",19,()=>[]);function i(o){t("out",{toggleBookmark:o})}var r=ps(),a=T(v(r),2),l=v(a);Ye(l,21,n,Ge,(o,d)=>{var g=gs(),u=v(g);Tn(u,{get href(){return p(d).href},get selected(){return p(d).selected},get text(){return p(d).name}});var h=T(u,2);h.__click=[hs,i,d],E(o,g)}),E(s,r),ne()}pe(["click"]);var vs=L('<li class="component svelte-1nn9bvq"><!></li>'),ms=(s,e,t)=>e(p(t)),ks=L('<li class="folder svelte-1nn9bvq"><button><span class="folder_arrow svelte-1nn9bvq"><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></span> <span class="folder_icon svelte-1nn9bvq"><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></span> <span class="folder_label svelte-1nn9bvq"><!></span></button> <!></li>'),ws=L("<ul></ul>");function Cn(s,e){te(e,!0);const t=we();let n=Z(e,"nodes",19,()=>[]),i=Z(e,"level",3,1);function r(l){t("out",{toggleFoldStatusOfNode:{...l}})}var a=ws();Ye(a,21,n,Ge,(l,o)=>{var d=je(),g=Se(d);{var u=c=>{var f=vs(),w=v(f);Tn(w,{get href(){return p(o).href},get selected(){return p(o).selected},get text(){return p(o).name}}),E(c,f)},h=c=>{var f=ks(),w=v(f);w.__click=[ms,r,o];var _=v(w),S=T(_,4),b=v(S);Ht(b,()=>p(o).name);var A=T(w,2);{var C=k=>{var H=he(()=>i()+1);Cn(k,{get nodes(){return p(o).children},get level(){return p(H)},$$events:{out(O){Ve.call(this,e,O)}}})};D(A,k=>{p(o).unfolded&&k(C)})}X(()=>{P(f,"unfolded",p(o).unfolded),Ut(w,`folder_btn btn_level-${i()??""} svelte-1nn9bvq`),K(w,"title",p(o).unfolded?"fold":"unfold"),P(_,"unfolded_icon",p(o).unfolded)}),E(c,f)};D(g,c=>{p(o).isLeaf?c(u):c(h,!1)})}E(l,d)}),X(()=>Ut(a,`filter_list components level-${i()??""} svelte-1nn9bvq`)),E(s,a),ne()}pe(["click"]);function xs(s,e){e("out",{toggleRootFolders:!0})}function bs(s,e){e("out",{filter:{value:s.target.value}})}function _s(s,e){e("out",{toggleExpandPanel:!0})}var ys=L('<img title="start">'),zs=L('<img title="start">'),Ss=L('<span class="svelte-1oee4bz"> </span>'),Es=L('<div><div class="filter_zero-results svelte-1oee4bz"> </div></div>'),Ts=L('<!> <nav class="components-nav svelte-1oee4bz"><!></nav>',1),Cs=fe('<svg class="controls_btn-icon svelte-1oee4bz" xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 0 24 24" width="20" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M7 20l5-5 5 5M7 4l5 5 5-5"></path></svg>'),Rs=fe('<svg class="controls_btn-icon svelte-1oee4bz" xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 0 24 24" width="20" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M7 15l5 5 5-5M7 9l5-5 5 5"></path></svg>'),Ms=fe('<svg class="controls_btn-icon svelte-1oee4bz" 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"><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>'),As=fe('<svg class="controls_btn-icon svelte-1oee4bz" 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"><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="m9 10 3-3 3 3"></path></svg>'),Hs=L('<li><a class="controls_btn svelte-1oee4bz" href="https://gardenjs.org/docs" target="_blank" rel="noreferrer"><svg class="controls_btn-icon svelte-1oee4bz" 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-1oee4bz">Gardenjs Docs</span></a></li>'),Ls=L('<header class="sidebar_container svelte-1oee4bz"><a class="project-identifier svelte-1oee4bz" href="/"><!></a> <div class="filter svelte-1oee4bz"><input aria-autocomplete="list" id="filter" class="filter_input svelte-1oee4bz" autocomplete="off" type="search" placeholder="Filter..."></div> <!> <nav class="controls svelte-1oee4bz"><ul><li><button class="controls_btn svelte-1oee4bz"><!> <span class="controls_btn-label svelte-1oee4bz"> </span></button></li> <li><button class="controls_btn svelte-1oee4bz"><!> <span class="controls_btn-label svelte-1oee4bz"> </span></button></li> <!></ul></nav></header>');function Is(s,e){te(e,!0);const t=we();let n=Z(e,"nodes",19,()=>[]),i=Z(e,"sidebarExpanded",3,!0),r=Z(e,"rootNodesExpanded",3,!0),a=Z(e,"panelExpanded",3,!0),l=Z(e,"bookmarks",19,()=>[]);var o=Ls(),d=v(o),g=v(d);{var u=R=>{var B=ys();X(()=>{K(B,"src",`/assets/${e.projectLogoDarkmode??""}`),K(B,"alt",`${e.projectTitle??""} logo`)}),E(R,B)},h=R=>{var B=je(),ce=Se(B);{var le=x=>{var W=zs();X(()=>{K(W,"src",`/assets/${e.projectLogo??""}`),K(W,"alt",`${e.projectTitle??""} logo`)}),E(x,W)},me=x=>{var W=Ss(),oe=v(W);X(()=>se(oe,e.projectTitle)),E(x,W)};D(ce,x=>{e.projectLogo?x(le):x(me,!1)},!0)}E(R,B)};D(g,R=>{e.projectLogoDarkmode&&e.appTheme==="dark"?R(u):R(h,!1)})}var c=T(d,2),f=v(c);f.__input=[bs,t];var w=T(c,2);{var _=R=>{var B=Es(),ce=v(B),le=v(ce);X(()=>se(le,`No results for '${e.filter??""}'`)),E(R,B)},S=R=>{var B=Ts(),ce=Se(B);{var le=W=>{fs(W,{get bookmarks(){return l()},$$events:{out(oe){Ve.call(this,e,oe)}}})};D(ce,W=>{l().length>0&&W(le)})}var me=T(ce,2),x=v(me);Cn(x,{get nodes(){return n()},$$events:{out(W){Ve.call(this,e,W)}}}),E(R,B)};D(w,R=>{n().length==0&&e.filter?R(_):R(S,!1)})}var b=T(w,2),A=v(b),C=v(A),k=v(C);k.__click=[xs,t];var H=v(k);{var O=R=>{var B=Cs();E(R,B)},Q=R=>{var B=Rs();E(R,B)};D(H,R=>{r()?R(O):R(Q,!1)})}var ee=T(H,2),U=v(ee),V=T(C,2),ie=v(V);ie.__click=[_s,t];var ve=v(ie);{var Ie=R=>{var B=Ms();E(R,B)},xe=R=>{var B=As();E(R,B)};D(ve,R=>{a()?R(Ie):R(xe,!1)})}var Oe=T(ve,2),be=v(Oe),Pe=T(V,2);{var _e=R=>{var B=Hs();E(R,B)};D(Pe,R=>{e.docsLink===1&&R(_e)})}X(()=>{P(o,"show-sidebar",i()),P(d,"has-logo",e.projectLogo),yt(f,e.filter||""),K(k,"title",r()?"Collapse":"Restore"),se(U,`${(r()?"Collapse":"Expand")??""} Navigation`),K(ie,"title",a()?"Collapse":"Restore"),se(be,`${(a()?"Collapse":"Expand")??""} Panel`)}),E(s,o),ne()}pe(["input","click"]);function Ns(s,e){e("out",{toggleExpandSidebar:!0})}function Bs(s,e,t){e("out",{toggleBookmark:t.node})}function Ws(s,e,t){const n=e()==="dark"?"default":"dark";t("out",{updateAppTheme:n})}function qs(s,e,t){e("out",{landscape:!t()})}function js(s,e){e("out",{openInTab:!0})}function Os(s,e){e("out",{stageWidth:Number.parseInt(s.target.value)})}function Ps(s,e){e("out",{stageHeight:Number.parseInt(s.target.value)})}var Ds=fe('<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-1drdwh6"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><path d="M9 3v18m7-6l-3-3 3-3"></path></svg>'),$s=fe('<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-1drdwh6"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><path d="M9 3v18m5-12l3 3-3 3"></path></svg>'),Us=fe('<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24" fill="currentColor" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="svelte-1drdwh6"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"></path></svg>'),Zs=fe('<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-1drdwh6"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"></path></svg>'),Fs=L('<button class="topbar_btn bookmark_btn svelte-1drdwh6"><span class="is-hidden svelte-1drdwh6"> </span> <!></button>'),Qs=(s,e)=>e("small"),Vs=(s,e)=>e("medium"),Xs=(s,e)=>e("large"),Gs=(s,e)=>e("full"),Ys=(s,e,t)=>e(p(t).name),Js=L('<li class="svelte-1drdwh6"><button class="svelte-1drdwh6"><span class="dropdown_item-dot svelte-1drdwh6"></span> </button></li>'),Ks=L('<div class="dropdown svelte-1drdwh6"><button class="dropdown_btn topbar_btn svelte-1drdwh6" title="Switch component theme"><span class="is-hidden svelte-1drdwh6">Open menu for selecting themes</span> <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-1drdwh6"><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></button> <div class="dropdown_items svelte-1drdwh6"><ul class="svelte-1drdwh6"></ul></div></div>'),er=fe('<svg xmlns="http://www.w3.org/2000/svg" class="mode-icon svelte-1drdwh6" width="24" viewBox="0 0 24 24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="4"></circle><path 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"></path></svg>'),tr=fe('<svg xmlns="http://www.w3.org/2000/svg" class="mode-icon svelte-1drdwh6" 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="M12 3a6.364 6.364 0 009 9 9 9 0 11-9-9z"></path></svg>'),nr=L('<div class="topbar svelte-1drdwh6"><div class="topbar_container svelte-1drdwh6"><div class="topbar_nav svelte-1drdwh6"><button class="topbar_btn is-first-btn svelte-1drdwh6"><span class="is-hidden svelte-1drdwh6"> </span> <!></button> <!></div> <div class="topbar_nav svelte-1drdwh6"><div class="stagesize-value svelte-1drdwh6"><input class="stagesize-input svelte-1drdwh6" type="number" min="50"> <div class="stagesize-value-multi_sign svelte-1drdwh6">/</div> <input class="stagesize-input svelte-1drdwh6" type="number" min="50"></div> <div class="stagesize-nav svelte-1drdwh6"><button title="Small" class="svelte-1drdwh6"><span class="is-hidden svelte-1drdwh6">Resize viewport to medium</span> <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-1drdwh6"><rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect><path d="M12 18h.01"></path></svg> <span class="dot svelte-1drdwh6"></span></button> <button title="Medium" class="svelte-1drdwh6"><span class="is-hidden svelte-1drdwh6">Resize viewport to medium</span> <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-1drdwh6"><rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><path d="M12 18h.01"></path></svg> <span class="dot svelte-1drdwh6"></span></button> <button title="Large" class="svelte-1drdwh6"><span class="is-hidden svelte-1drdwh6">Resize viewport to large</span> <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-1drdwh6"><rect x="3" y="4" width="18" height="12" rx="2" ry="2"></rect><path d="M2 20h20"></path></svg> <span class="dot svelte-1drdwh6"></span></button> <button title="Full" class="svelte-1drdwh6"><span class="is-hidden svelte-1drdwh6">Resize viewport to full</span> <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-1drdwh6"><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-1drdwh6"></span></button> <button class="svelte-1drdwh6"><span class="is-hidden svelte-1drdwh6"> </span> <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-1drdwh6"><rect width="12" height="20" x="6" y="2" rx="2"></rect><rect width="20" height="12" x="2" y="6" rx="2"></rect></svg></button></div> <button class="topbar_btn openexternal_btn svelte-1drdwh6" title="Open component in new tab"><span class="is-hidden svelte-1drdwh6">Open component in new tab</span> <svg xmlns="http://www.w3.org/2000/svg" class="open-new-tab-icon svelte-1drdwh6" 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></button> <!> <button class="topbar_btn is-last-btn svelte-1drdwh6"><span class="is-hidden svelte-1drdwh6"> </span> <!></button></div></div></div>');function ir(s,e){te(e,!0);const t=we();let n=Z(e,"sidebarExpanded",3,!0),i=Z(e,"appTheme",3,"default"),r=Z(e,"landscape",3,!1),a=Z(e,"stageSize",3,"full"),l=Z(e,"themes",19,()=>[]),o=F(!1),d=F(void 0),g=F(void 0);J(()=>{let{width:I,height:G}=e.stageRect;q(d,ae(Math.round(I))),q(g,ae(Math.round(G)))}),J(()=>{q(o,i()==="dark"),i()==="dark"?document.documentElement.setAttribute("data-theme","dark"):document.documentElement.setAttribute("data-theme","light")});function u(I){t("out",{stageSize:I})}function h(I){t("out",{selectTheme:I})}var c=nr(),f=v(c),w=v(f),_=v(w);_.__click=[Ns,t];var S=v(_),b=v(S),A=T(S,2);{var C=I=>{var G=Ds();E(I,G)},k=I=>{var G=$s();E(I,G)};D(A,I=>{n()?I(C):I(k,!1)})}var H=T(_,2);{var O=I=>{var G=Fs();G.__click=[Bs,t,e];var nt=v(G),wt=v(nt),xt=T(nt,2);{var $e=ue=>{var Ue=Us();E(ue,Ue)},it=ue=>{var Ue=Zs();E(ue,Ue)};D(xt,ue=>{e.node.bookmark?ue($e):ue(it,!1)})}X(()=>se(wt,e.node.bookmark?"Remove from bookmarks":"Add to bookmarks")),E(I,G)};D(H,I=>{e.node&&I(O)})}var Q=T(w,2),ee=v(Q),U=v(ee);U.__change=[Os,t];var V=T(U,4);V.__change=[Ps,t];var ie=T(ee,2),ve=v(ie);ve.__click=[Qs,u];var Ie=T(v(ve),2),xe=T(ve,2);xe.__click=[Vs,u];var Oe=T(v(xe),2),be=T(xe,2);be.__click=[Xs,u];var Pe=T(v(be),2),_e=T(be,2);_e.__click=[Gs,u];var R=T(_e,2);R.__click=[qs,t,r];var B=v(R),ce=v(B),le=T(ie,2);le.__click=[js,t];var me=T(le,2);{var x=I=>{var G=Ks(),nt=T(v(G),2),wt=v(nt);Ye(wt,21,l,Ge,(xt,$e)=>{var it=Js(),ue=v(it);ue.__click=[Ys,h,$e];var Ue=T(v(ue));X(()=>{P(ue,"active",p($e).active),se(Ue,` ${p($e).name??""}`)}),E(xt,it)}),E(I,G)};D(me,I=>{l().length>1&&I(x)})}var W=T(me,2);W.__click=[Ws,i,t];var oe=v(W),De=v(oe),mt=T(oe,2);{var tt=I=>{var G=er();E(I,G)},kt=I=>{var G=tr();E(I,G)};D(mt,I=>{p(o)?I(tt):I(kt,!1)})}X(()=>{K(_,"title",n()?"Collapse sidebar":"Expand sidebar"),se(b,n()?"Collapse sidebar":"Expand sidebar"),U.disabled=a()!=="full",yt(U,p(d)),K(U,"max",e.stageMaxWidth),V.disabled=a()!=="full",yt(V,p(g)),K(V,"max",e.stageMaxHeight),P(ve,"active",a()==="small"),P(Ie,"landscape",r()),P(xe,"active",a()==="medium"),P(Oe,"landscape",r()),P(be,"active",a()==="large"),P(Pe,"landscape",r()),P(_e,"active",a()==="full"),K(R,"title",r()?"Portrait mode":"Landscape mode"),se(ce,`Reverse the aspect ratio to ${(r()?"portrait mode":"landscape mode")??""}`),K(W,"title",p(o)?"Light mode":"Dark mode"),se(De,p(o)?"Light mode":"Dark mode")}),E(s,c),ne()}pe(["click","change"]);const Ne=[];function Rn(s,e){return{subscribe:$(s,e).subscribe}}function $(s,e=ke){let t=null;const n=new Set;function i(l){if(ci(s,l)&&(s=l,t)){const o=!Ne.length;for(const d of n)d[1](),Ne.push(d,s);if(o){for(let d=0;d<Ne.length;d+=2)Ne[d][0](Ne[d+1]);Ne.length=0}}}function r(l){i(l(s))}function a(l,o=ke){const d=[l,o];return n.add(d),n.size===1&&(t=e(i,r)||ke),l(s),()=>{n.delete(d),n.size===0&&t&&(t(),t=null)}}return{set:i,update:r,subscribe:a}}function Nt(s,e,t){const n=!Array.isArray(s),i=n?[s]:s;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return Rn(t,(a,l)=>{let o=!1;const d=[];let g=0,u=ke;const h=()=>{if(g)return;u();const f=e(n?d[0]:d,a,l);r?a(f):u=typeof f=="function"?f:ke},c=i.map((f,w)=>mn(f,_=>{d[w]=_,g&=~(1<<w),o&&h()},()=>{g|=1<<w}));return o=!0,h(),function(){on(c),u(),o=!1}})}function M(s){let e;return mn(s,t=>e=t)(),e}function pt(s,e,t=i=>i,n=i=>i){const i=$(t(localStorage.getItem(s))??e);return i.subscribe(r=>{localStorage.setItem(s,n(r))}),i}const ze=$([]),Mn=$(""),Bt=pt("stageSize","full"),Wt=pt("landscape",!1,s=>s==="true"),Ee=$(""),An=$(""),Te=$(""),zt=$("full"),St=$("full"),sr=Nt([Ee,Te],([s,e])=>Math.min(s,e)-20),rr=Nt(An,s=>s-20),Fe=$(!0),Hn=pt("appTheme","default"),We=pt("frameTheme"),Et=$(!0),Xe=$(!1);let Be="";const ar={small:{frameheight:"1170px",framewidth:"550px"},medium:{frameheight:"1080px",framewidth:"810px"},large:{frameheight:"960px",framewidth:"1536px"},full:{frameheight:"100%",framewidth:"100%"}};function lr(s){var e;M(We)||We.set(((e=s==null?void 0:s.find(t=>t.active))==null?void 0:e.name)??s[0].name),ze.set(s==null?void 0:s.map(t=>({...t,active:t.name===M(We)}))),Ke()}function or(s){ze.set(M(ze).map(e=>({...e,active:e.name===s}))),We.set(s),Ke()}function cr(s){Hn.set(s)}function ur(){return M(ze)&&M(ze).length>0?M(ze).find(s=>s.name===M(We))??M(ze)[0]:{stageBg:"white"}}function Ke(){const s=ur().stageBg,{frameheight:e,framewidth:t}=ar[M(Bt)],n=M(Wt)?`width: ${e}; height: ${t}`:`width: ${t}; height: ${e}`,i=`background-color: ${s}`;Mn.set(`${n}; ${i}; transition: 0s;`)}function dr(s){Ee.set(s),Ln()}function hr(s){const e=s-9;Te.set(e),Ln()}function gr(s){An.set(s)}function nn(s){Number.isInteger(s)?zt.set(Math.max(50,s)):zt.set(s)}function sn(s){Number.isInteger(s)?St.set(Math.max(50,s)):St.set(s)}function Ln(){Number.isInteger(M(Ee))&&Number.isInteger(M(Te))&&Fe.set(M(Ee)<M(Te))}function rn(){M(Fe)?(Be=M(Ee),Ee.set(M(Te))):((!Number.isInteger(Be)||Number.isInteger(Be)&&M(Te)-Be<50)&&(Be=Math.round(M(Te)*.7)),Ee.set(Be)),Fe.set(!M(Fe))}Ke();function pr(){M(qt)?Xe.set(!M(Xe)):Et.set(!M(Et))}const qt=Rn(window.innerWidth<840,s=>{const e=()=>{s(window.innerWidth<840),Xe.set(!1)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),fr=Nt([Et,Xe,qt],([s,e,t])=>t?e:s);function vr(){M(qt)&&Xe.set(!1)}function mr(s){Bt.set(s),Ke()}function kr(s){Wt.set(s),Ke()}function wr(s,e,t=i=>i,n=i=>i){const i=$(t(localStorage.getItem(s))??e);return i.subscribe(r=>{localStorage.setItem(s,n(r))}),i}const Ae=$([]),qe=$(!0),ft=$(),In=$(),ge=wr("bookmarks",[],JSON.parse,JSON.stringify);let an=!1,vt="",Qe=[],de=[],et;function xr(s){de=s.flatMap(jt).reduce((t,n)=>(t[n.key]=!0,t),{})}function jt(s){return[s,...br(s)]}function br(s){return s.children?s.children.flatMap(jt):[]}function _r(s,e){vt=s,et=e,Le(),Hr()}function yr(s){ft.set(s),Le()}function zr(s){Qe=s,an||(xr(Qe),Lr(),an=!0),Ae.set(Ot(Qe))}function Le(){Ae.set(Ot(Qe))}function Ot(s,e){var n;const t=(n=M(ft))==null?void 0:n.toLowerCase();return s.map(i=>{var l;const r=t?(l=i.name)==null?void 0:l.toLowerCase().includes(t):!0,a=t&&r?Sr(i.name):i.name;if(i.isLeaf){const d=e||r?{...i,name:a,selected:et===i.key,isLeaf:!0,bookmark:M(ge).find(g=>g.key===i.key)!==void 0}:void 0;return d!=null&&d.selected&&In.set(d),d}else{const o=Ot(i.children,e||r).filter(g=>g),d=r||o.length>0;return d?{...i,name:a,children:o,unfolded:Er(i,vt,t,d),filterMatches:r}:void 0}}).filter(i=>i)}function Sr(s){const e=M(ft).toLowerCase(),t=s.toLowerCase().indexOf(e),n=t+e.length,i=s.substring(0,t),r=s.substring(t,n),a=s.substring(n);return`${i}<span class="highlight">${r}</span>${a}`}function Er(s,e,t,n){return t&&n||de[s.key]||(e==null?void 0:e.indexOf(s.key))===0}function Tr(){qe.set(!M(qe));const s=M(Ae).map(e=>({...e,unfolded:M(qe)&&de[e.key]}));Ae.set(s)}function Cr(s){if(!M(qe)){Rr(s);return}de[s.key]&&vt.indexOf(s.key)!==0?de[s.key]=!1:de[s.key]=!0,Le()}function Rr(s){qe.set(!0),Object.keys(de).forEach(t=>de[t]=!1);const e=M(Ae).map(t=>t.key===s.key||vt.indexOf(t.key)===0?(de[t.key]=!0,{...t,unfolded:!0}):(de[t.key]=!1,{...t,unfolded:!1}));Ae.set(e),Le()}function ln(s){s.bookmark?Mr({...s,bookmark:!1}):Ar({...s,bookmark:!0}),Le()}function Mr(s){ge.set(M(ge).filter(e=>s.key!==e.key).map(e=>({...e,selected:e.key===et}))),Le()}function Ar(s){ge.set([...M(ge),s].map(e=>({...e,selected:e.key===et})).sort((e,t)=>e.name.localeCompare(t.name))),Le()}function Hr(){ge.set([...M(ge)].map(s=>({...s,selected:s.key===et})).sort((s,e)=>s.name.localeCompare(e.name)))}function Lr(){const s=Qe.flatMap(jt),e=M(ge).filter(t=>s.some(n=>n.key===t.key));ge.set(e)}const Nn=[],Ir=globalThis.location?globalThis.location.pathname+globalThis.location.search:"";let re=Ir,Me="",Tt,Ct={url:re};(function(){globalThis.history&&(globalThis.history.state&&globalThis.history.state.url==re&&(Ct=globalThis.history.state),globalThis.history.replaceState(Ct,null,re))})();function Nr(s,e,t){Tt=s,Me=e,t&&Br(t),ut(Ct,re)}function Br(s){Nn.push(s)}function ut(s,e){Nn.forEach(t=>{t(Wr(e),s)})}function Wr(s){const e=s.substring(Me.length),t=Object.keys(Tt).find(n=>e.match(new RegExp("^"+n+"$","i")));return t?Tt[t]:null}(function(s){if(s){var e=s.pushState;s.pushState=function(t,n,i){if(!(i.startsWith(Me)&&Me.length>0)){if(re=Me+i,t.url=re,t.url!==s.state.url||t.selectedExample!==s.state.selectedExample)return ut(t,re),e.apply(s,[t,"",re]);ut(t,re),window.location.reload()}}}})(globalThis.history);globalThis.onpopstate=function(s){s.state?re=s.state.url:re=Me.length>0?Me:"/",ut(s.state,re)};const Rt=$(""),dt=$(),ht=$({}),Bn=$("");let gt,Ze,Mt;function qr(s){gt=s,Mt&&Wn()}function jr(s,e,t){gt=s,Mt||(Mt=!0,Nr(e,t,Or))}function Or(s,e){if(dt.set({}),Rt.set(""),ht.set({}),s&>){Rt.set(s.fullname),Bn.set(s.route);const t=gt[s.fullname];t.componentfile=s.file,dt.set(t),Ze=e,Wn()}}function Wn(){var e,t;const s=M(dt).examples||[];Ze!=null&&Ze.selectedExample?ht.set((e=s.find(n=>n.title==Ze.selectedExample))==null?void 0:e.title):ht.set((t=s[0])==null?void 0:t.title)}var Pr=()=>{window.top.location.reload()},Dr=L('<div class="message svelte-yh1ir7"><div class="click-completed svelte-yh1ir7">Relative link was clicked!</div> <div class="instruction svelte-yh1ir7">Click the button to return: <button class="svelte-yh1ir7">back</button></div></div>'),$r=L('<div class="garden svelte-yh1ir7"><div class="sidebar svelte-yh1ir7"><!></div> <div class="main svelte-yh1ir7"><!> <!></div></div>');function Ur(s,e){var le,me;te(e,!0);const t=ui(),n=()=>j(Bn,"$currentRoute",t),i=()=>j(Rt,"$componentName",t),r=()=>j(ht,"$selectedExample",t),a=()=>j(We,"$activeTheme",t),l=()=>j(Hn,"$appTheme",t),o=()=>j(fr,"$sidebarExpanded",t),d=()=>j(qe,"$rootNodesExpanded",t),g=()=>j(Ae,"$nodes",t),u=()=>j(ft,"$filterNavTree",t),h=()=>j(Fe,"$panelExpanded",t),c=()=>j(ge,"$bookmarks",t),f=()=>j(In,"$selectedNode",t),w=()=>j(ze,"$themes",t),_=()=>j(Bt,"$stageSize",t),S=()=>j(Wt,"$landscape",t),b=()=>j(St,"$stageWidth",t),A=()=>j(zt,"$stageHeight",t),C=()=>j(sr,"$stageMaxHeight",t),k=()=>j(rr,"$stageMaxWidth",t),H=()=>j(dt,"$das",t),O=()=>j(Mn,"$stageStyle",t),Q=()=>j(Ee,"$stageContainerHeight",t),ee=()=>j(Te,"$stageContainerMaxHeight",t);let U="/garden";J(()=>{zr(e.navTree)}),J(()=>{e.routes&&e.dasMap&&jr(e.dasMap,e.routes,U)}),J(()=>{qr(e.dasMap)}),J(()=>{lr(e.config.themes)}),J(()=>{_r(n(),i()),vr()});let V=e.config.project_title||"",ie=((le=e.config.project_logo)==null?void 0:le.split("/").pop())||null,ve=((me=e.config.project_logo_darkmode)==null?void 0:me.split("/").pop())||null,Ie=F(ae({})),xe=he(()=>e.config.docs_link?1:0);function Oe(x){if(x.detail.openInTab){const W=window.open("/frame.html","_blank");W.onload=()=>{W.postMessage({selectedExample:r(),componentName:i(),theme:a()},window.location.origin)}}x.detail.selectTheme&&or(x.detail.selectTheme),x.detail.updateAppTheme&&cr(x.detail.updateAppTheme),x.detail.toggleExpandSidebar&&pr(),x.detail.stageWidth&&sn(x.detail.stageWidth),x.detail.stageHeight&&nn(x.detail.stageHeight),x.detail.toggleBookmark&&ln(x.detail.toggleBookmark),x.detail.stageSize&&mr(x.detail.stageSize),x.detail.landscape!==void 0&&kr(x.detail.landscape)}function be(x){x.detail.stageRect&&q(Ie,ae(x.detail.stageRect)),x.detail.stageContainerHeight&&dr(x.detail.stageContainerHeight),x.detail.toggleExpandPanel&&rn(),x.detail.stageContainerWidth&&gr(x.detail.stageContainerWidth),x.detail.stageContainerMaxHeight&&hr(x.detail.stageContainerMaxHeight),x.detail.stageWidth&&sn(x.detail.stageWidth),x.detail.stageHeight&&nn(x.detail.stageHeight)}function Pe(x){x.detail.toggleFoldStatusOfNode&&Cr(x.detail.toggleFoldStatusOfNode),x.detail.toggleRootFolders&&Tr(),x.detail.filter&&yr(x.detail.filter.value),x.detail.toggleExpandPanel&&rn(),x.detail.toggleBookmark&&ln(x.detail.toggleBookmark)}var _e=je(),R=Se(_e);{var B=x=>{var W=Dr(),oe=T(v(W),2),De=T(v(oe));De.__click=[Pr],E(x,W)},ce=x=>{var W=$r(),oe=v(W),De=v(oe);Is(De,{projectTitle:V,projectLogo:ie,projectLogoDarkmode:ve,get appTheme(){return l()},get sidebarExpanded(){return o()},get rootNodesExpanded(){return d()},get nodes(){return g()},get filter(){return u()},get panelExpanded(){return h()},get bookmarks(){return c()},get docsLink(){return p(xe)},$$events:{out:Pe}});var mt=T(oe,2),tt=v(mt);ir(tt,{get sidebarExpanded(){return o()},get node(){return f()},get themes(){return w()},get appTheme(){return l()},get stageRect(){return p(Ie)},get stageSize(){return _()},get landscape(){return S()},get stageWidth(){return b()},get stageHeight(){return A()},get stageMaxHeight(){return C()},get stageMaxWidth(){return k()},$$events:{out:Oe}});var kt=T(tt,2);us(kt,{get componentName(){return i()},get das(){return H()},get selectedExample(){return r()},get stageStyle(){return O()},get stageSize(){return _()},get stageContainerHeight(){return Q()},get stageContainerMaxHeight(){return ee()},get stageHeight(){return A()},get stageWidth(){return b()},get stageMaxHeight(){return C()},get stageMaxWidth(){return k()},get theme(){return a()},get panelExpanded(){return h()},get devmodus(){return e.config.devmodus},$$events:{out:be}}),E(x,W)};D(R,x=>{window.top!==window.self?x(B):x(ce,!1)})}E(s,_e),ne()}pe(["click"]);di(Ur,{target:document.getElementById("app"),props:{navTree:hi,routes:gi,dasMap:pi,config:fi}});
|
|
@@ -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-mmou7f{display:grid;grid-template:min-content 1.25rem / min-content 1.25rem;width:100%;height:100%;overflow:auto}.dragbar.svelte-mmou7f{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-mmou7f:hover{background-color:var(--c-dragbar-bg-hover)}.vertical.svelte-mmou7f{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}.vertical.svelte-mmou7f .dragbar-icon:where(.svelte-mmou7f){width:.25rem;height:60%;max-height:3.75rem;background-color:var(--c-dragbar-icon);border-radius:1rem}.horizontal.svelte-mmou7f{height:1.25rem;border-bottom:1px solid var(--c-dragbar-bg);border-left:1px solid var(--c-dragbar-bg);cursor:ns-resize}.horizontal.svelte-mmou7f .dragbar-icon:where(.svelte-mmou7f){width:60%;max-width:3.75rem;height:.25rem;background-color:var(--c-dragbar-icon);border-radius:1rem}.corner.svelte-mmou7f{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}.corner.svelte-mmou7f .dragbar-icon:where(.svelte-mmou7f){width:1rem;height:.25rem;transform:rotate(-45deg);background-color:var(--c-dragbar-icon);border-radius:1rem}.dragbar.disabled.svelte-mmou7f{display:none}.resizepane-container.disabled.svelte-mmou7f{display:flex;justify-content:center}:root{--h-panelnav: 2.375rem}.panel_container.svelte-1opzoal{position:relative;overflow:hidden;flex:1;height:100%}.panel_nav.svelte-1opzoal{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;width:100%;height:var(--h-panelnav);background-color:var(--c-basic-75);border-bottom:1px solid var(--c-bg-body);overflow-x:auto}.panel_nav.svelte-1opzoal nav:where(.svelte-1opzoal){margin:0 1.25rem 0 0}.panel_nav.svelte-1opzoal nav:where(.svelte-1opzoal) ul:where(.svelte-1opzoal){display:flex;overflow-x:auto}.panel_nav.svelte-1opzoal nav:where(.svelte-1opzoal) li:where(.svelte-1opzoal) button:where(.svelte-1opzoal){position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;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-1opzoal nav:where(.svelte-1opzoal) li:where(.svelte-1opzoal) button:where(.svelte-1opzoal) .dot:where(.svelte-1opzoal){display:block;width:.313rem;height:.313rem;background-color:transparent;border-radius:50%}.panel_nav.svelte-1opzoal nav:where(.svelte-1opzoal) li:where(.svelte-1opzoal) button.active:where(.svelte-1opzoal) .dot:where(.svelte-1opzoal){background-color:var(--c-primary)}.panel_nav.svelte-1opzoal nav:where(.svelte-1opzoal) li:where(.svelte-1opzoal) button:where(.svelte-1opzoal):hover,.panel_nav.svelte-1opzoal nav:where(.svelte-1opzoal) li:where(.svelte-1opzoal) button:where(.svelte-1opzoal):focus-visible{color:var(--c-primary);font-weight:500;background-color:var(--c-basic-100)}.panel_nav.svelte-1opzoal nav:where(.svelte-1opzoal) li:where(.svelte-1opzoal) button:where(.svelte-1opzoal):focus-visible{background-color:var(--c-basic-150)}.panel_nav.svelte-1opzoal nav:where(.svelte-1opzoal) li:where(.svelte-1opzoal) button.active:where(.svelte-1opzoal){color:var(--c-primary);font-weight:500;background-color:var(--c-primary-bg)}.panel_toggle.svelte-1opzoal{padding:0 .75rem;height:100%;background:none}.is-hidden.svelte-1opzoal{position:absolute!important;overflow:hidden;width:1px;height:1px;padding:0;border:0;clip:rect(1px,1px,1px,1px)}.panel_toggle.svelte-1opzoal svg:where(.svelte-1opzoal){margin-top:.188rem;height:1.375rem;color:var(--c-basic-700)}.panel_toggle.svelte-1opzoal:hover svg:where(.svelte-1opzoal),.panel_toggle.svelte-1opzoal:focus-visible svg:where(.svelte-1opzoal){color:var(--c-primary)}.panel_toggle.svelte-1opzoal:focus-visible{background-color:var(--c-basic-150)}.panel_pane.svelte-1opzoal{position:absolute;top:var(--h-panelnav);right:0;bottom:0;left:0;padding:1.25rem;width:100%;overflow-y:auto}.stories.svelte-9ikz8y{list-style:none;margin:0;padding:0}.stories.svelte-9ikz8y li:where(.svelte-9ikz8y) button:where(.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:where(.svelte-9ikz8y) button:where(.svelte-9ikz8y) .dot:where(.svelte-9ikz8y){display:block;margin:0 .5rem 0 0;height:.375rem;width:.375rem;background-color:transparent;border-radius:50%}.stories.svelte-9ikz8y li.active:where(.svelte-9ikz8y) button:where(.svelte-9ikz8y) .dot:where(.svelte-9ikz8y){background-color:var(--c-primary)}.stories.svelte-9ikz8y li:where(.svelte-9ikz8y):nth-child(odd) button:where(.svelte-9ikz8y){background-color:var(--c-basic-50)}.stories.svelte-9ikz8y li:where(.svelte-9ikz8y) button:where(.svelte-9ikz8y):hover,.stories.svelte-9ikz8y li:where(.svelte-9ikz8y) button:where(.svelte-9ikz8y):focus-visible{color:var(--c-primary);font-weight:500;background-color:var(--c-basic-150)}.stories.svelte-9ikz8y li.active:where(.svelte-9ikz8y) button:where(.svelte-9ikz8y){color:var(--c-primary);font-weight:500;background-color:var(--c-primary-bg)}.stories.svelte-9ikz8y li.active:where(.svelte-9ikz8y) button:where(.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
|
+
*/[data-theme=dark] .hljs{color:#c9d1d9}[data-theme=dark] .hljs-doctag,[data-theme=dark] .hljs-keyword,[data-theme=dark] .hljs-meta .hljs-keyword,[data-theme=dark] .hljs-template-tag,[data-theme=dark] .hljs-template-variable,[data-theme=dark] .hljs-type,[data-theme=dark] .hljs-variable.language_{color:#ff7b72}[data-theme=dark] .hljs-title,[data-theme=dark] .hljs-title.class_,[data-theme=dark] .hljs-title.class_.inherited__,[data-theme=dark] .hljs-title.function_{color:#d2a8ff}[data-theme=dark] .hljs-attr,[data-theme=dark] .hljs-attribute,[data-theme=dark] .hljs-literal,[data-theme=dark] .hljs-meta,[data-theme=dark] .hljs-number,[data-theme=dark] .hljs-operator,[data-theme=dark] .hljs-variable,[data-theme=dark] .hljs-selector-attr,[data-theme=dark] .hljs-selector-class,[data-theme=dark] .hljs-selector-id{color:#79c0ff}[data-theme=dark] .hljs-regexp,[data-theme=dark] .hljs-string,[data-theme=dark] .hljs-meta .hljs-string{color:#a5d6ff}[data-theme=dark] .hljs-built_in,[data-theme=dark] .hljs-symbol{color:#ffa657}[data-theme=dark] .hljs-comment,[data-theme=dark] .hljs-code,[data-theme=dark] .hljs-formula{color:#8b949e}[data-theme=dark] .hljs-name,[data-theme=dark] .hljs-quote,[data-theme=dark] .hljs-selector-tag,[data-theme=dark] .hljs-selector-pseudo{color:#7ee787}[data-theme=dark] .hljs-subst{color:#c9d1d9}[data-theme=dark] .hljs-section{color:#1f6feb;font-weight:700}[data-theme=dark] .hljs-bullet{color:#f2cc60}[data-theme=dark] .hljs-emphasis{color:#c9d1d9;font-style:italic}[data-theme=dark] .hljs-strong{color:#c9d1d9;font-weight:700}[data-theme=dark] .hljs-addition{color:#aff5b4;background-color:#033a16}[data-theme=dark] .hljs-deletion{color:#ffdcd7;background-color:#67060c}.stage_iframe.svelte-17n05ij{display:block;align-self:center;margin:auto;height:100%;width:100%;background-color:var(--c-basic-0)}.panel.svelte-17n05ij{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-1cnyrt6{display:flex;margin:0;padding:.188rem 0;width:100%;height:1.375rem;text-transform:initial;font-size:.813rem;color:var(--c-basic-600);line-height:1.2;font-weight:400}.component_link.svelte-1cnyrt6:hover,.component_link.svelte-1cnyrt6:focus-visible{color:var(--c-primary);font-weight:500;background-color:var(--c-basic-100)}.component_link-container.svelte-1cnyrt6{display:flex;align-items:center}.component_link.svelte-1cnyrt6 .component_dot:where(.svelte-1cnyrt6){margin:0 .5rem 0 -.219rem;height:.375rem;width:.375rem!important;background-color:transparent;border-radius:50%}.component_link.selected.svelte-1cnyrt6 .component_dot:where(.svelte-1cnyrt6){background-color:var(--c-primary)}.component_link.selected.svelte-1cnyrt6{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-1cnyrt6{display:flex;align-items:center;margin:0 .5rem 0 0;color:var(--c-basic-400)}.component_label.svelte-1cnyrt6{margin-right:.5rem;overflow:hidden;white-space:nowrap}.bookmarks.svelte-qxg2ml{display:none}@media (min-height: 500px) and (min-width: 500px){.bookmarks.svelte-qxg2ml{display:block}}.bookmarks_title.svelte-qxg2ml{display:flex;justify-content:flex-start;align-items:center;width:100%;margin:0;padding:.5rem .688rem .375rem}.bookmarks_title-icon.svelte-qxg2ml{display:flex;align-items:center;margin-right:.375rem;color:var(--c-primary)}.bookmarks_title-label.svelte-qxg2ml{display:flex;width:100%;font-size:.813rem;color:var(--c-basic-900);font-weight:600;text-transform:uppercase;overflow:hidden;white-space:nowrap}.border-btm.svelte-qxg2ml{margin:1rem 0 .5rem;height:1px;border-bottom:1px solid var(--c-bg-body)}.components.svelte-qxg2ml{margin-left:1.063rem;width:100%;border-left:1px solid var(--c-basic-250)}.component.svelte-qxg2ml{display:flex;height:1.375rem;width:100%;z-index:1}.close.svelte-qxg2ml{position:absolute;display:flex;justify-content:flex-end;align-items:center;right:0;width:1.75rem;height:1.375rem;z-index:9;background-color:var(--c-sidebar-bg)}.component:has(.component_link:hover) .close,.component:has(.component_link:focus-visible) .close{background-color:var(--c-basic-100)}.component:has(.close:hover) .component_link.selected,.component:has(.component_link.selected) .close{background-color:var(--c-primary-bg)!important}.component:has(.close:hover) .component_link,.close.svelte-qxg2ml:hover{background-color:var(--c-basic-100)}.close-icon.svelte-qxg2ml{display:block;color:var(--c-basic-600)}.close.svelte-qxg2ml:hover .close-icon:where(.svelte-qxg2ml),.close.svelte-qxg2ml:focus-visible .close-icon:where(.svelte-qxg2ml){color:var(--c-primary);stroke-width:4}.components.svelte-1nn9bvq{margin-left:1.063rem;border-left:1px solid var(--c-basic-250)}.component.svelte-1nn9bvq{height:1.375rem}.level-1.svelte-1nn9bvq{width:100%;margin:0;padding:0;border:none}.folder.svelte-1nn9bvq{display:block;margin:0}.folder_btn.svelte-1nn9bvq{display:flex;justify-content:flex-start;align-items:center;width:100%;margin:0;padding:.5rem .688rem .375rem}.folder_label.svelte-1nn9bvq{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-1nn9bvq:hover{background-color:var(--c-basic-100)}.folder_btn.svelte-1nn9bvq:hover .folder_label:where(.svelte-1nn9bvq){color:var(--c-primary)}.folder_btn.svelte-1nn9bvq:focus-visible{color:var(--c-primary);outline:none;background-color:var(--c-basic-100)}.folder_arrow.svelte-1nn9bvq{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-1nn9bvq{transform:rotate(180deg);transition:.2s}.folder_icon.svelte-1nn9bvq{display:flex;align-items:center;margin-right:.375rem;color:var(--c-primary)}.btn_level-3.svelte-1nn9bvq .folder_label:where(.svelte-1nn9bvq){font-size:.813rem}.filter_list.svelte-1nn9bvq .highlight{padding:0 .125rem;color:var(--c-primary);font-weight:700}.sidebar_container.svelte-1oee4bz{--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-1oee4bz{margin:.375rem .375rem .375rem 0;width:var(--w-sidebar);box-sizing:border-box}.project-identifier.svelte-1oee4bz{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);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-1oee4bz{height:auto}.project-identifier.svelte-1oee4bz:focus-visible{color:var(--c-basic-500)}.project-identifier.svelte-1oee4bz span:where(.svelte-1oee4bz){overflow:hidden}.filter.svelte-1oee4bz{display:flex;flex-shrink:0;margin:0 0 .25rem;padding:.25rem .688rem;height:2.25rem}.filter_input.svelte-1oee4bz{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-1oee4bz{font-size:.813rem}input[type=search].svelte-1oee4bz::-webkit-search-cancel-button{-webkit-appearance:none}.filter_input.svelte-1oee4bz::placeholder{font-size:.813rem;color:var(--c-basic-500)}.filter_input.svelte-1oee4bz:focus-visible{background-color:var(--c-primary-bg)}.filter_zero-results.svelte-1oee4bz{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-nav.svelte-1oee4bz{display:flex;flex-shrink:1;overflow:hidden;visibility:visible;width:var(--w-sidebar);overflow-y:auto;margin:0 0 1rem}.controls.svelte-1oee4bz{display:none}@media (min-height: 35rem){.controls.svelte-1oee4bz{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-1oee4bz{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-1oee4bz:hover,.controls_btn.svelte-1oee4bz:focus-visible{background-color:var(--c-basic-100)}.controls_btn-icon.svelte-1oee4bz{margin:0;color:var(--c-basic-700)}.controls_btn-label.svelte-1oee4bz{position:relative;align-self:center;margin-left:.75rem;width:100%;color:var(--c-basic-900);font-size:.875rem;font-weight:400}.controls_btn.svelte-1oee4bz:hover .controls_btn-label:where(.svelte-1oee4bz),.controls_btn.svelte-1oee4bz:focus-visible .controls_btn-label:where(.svelte-1oee4bz),.controls_btn.svelte-1oee4bz:hover .controls_btn-icon:where(.svelte-1oee4bz),.controls_btn.svelte-1oee4bz:focus-visible .controls_btn-icon:where(.svelte-1oee4bz){color:var(--c-primary)}.topbar.svelte-1drdwh6{--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-1drdwh6{display:flex;justify-content:space-between;width:100%;height:100%;padding:0;z-index:999999}.topbar_nav.svelte-1drdwh6{display:flex;align-items:center}.topbar_btn.svelte-1drdwh6{display:flex;align-items:center;padding:0 .375rem;height:var(--h-topbar);background:none}.topbar_btn.svelte-1drdwh6:hover,.topbar_btn.svelte-1drdwh6:focus-visible{background-color:var(--c-basic-100)}.is-hidden.svelte-1drdwh6{position:absolute!important;overflow:hidden;width:1px;height:1px;padding:0;border:0;clip:rect(1px,1px,1px,1px)}.topbar_btn.svelte-1drdwh6 svg:where(.svelte-1drdwh6){height:1.125rem;color:var(--c-basic-700)}.topbar_btn.svelte-1drdwh6:hover svg:where(.svelte-1drdwh6),.topbar_btn.svelte-1drdwh6:focus-visible svg:where(.svelte-1drdwh6){color:var(--c-primary)}.is-first-btn.svelte-1drdwh6{border-radius:.5rem 0 0 .5rem}.is-last-btn.svelte-1drdwh6{border-radius:0 .5rem .5rem 0}@media (max-height: 499px){.bookmark_btn.svelte-1drdwh6{display:none}}@media (max-width: 499px){.bookmark_btn.svelte-1drdwh6,.openexternal_btn.svelte-1drdwh6{display:none}}.stagesize-value.svelte-1drdwh6{display:none}@media (min-width: 640px){.stagesize-value.svelte-1drdwh6{display:inline-flex;align-items:center;padding:0 1rem;font-size:.75rem}.stagesize-input.svelte-1drdwh6{padding:.25rem .375rem;width:42px;font-size:.75rem;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);text-align:right;background-color:transparent;border:1px solid var(--c-primary);border-radius:.125rem}.stagesize-input.svelte-1drdwh6:focus-visible{background-color:var(--c-primary-bg)}.stagesize-input.svelte-1drdwh6:disabled{border-color:transparent}.stagesize-value-multi_sign.svelte-1drdwh6{margin:0 .25rem;color:var(--c-basic-700)}}.stagesize-nav.svelte-1drdwh6{display:none}@media (min-width: 1280px){.stagesize-nav.svelte-1drdwh6{position:relative;display:inline-flex;margin:0 .75rem;background-color:var(--c-basic-100)}.stagesize-nav.svelte-1drdwh6 button:where(.svelte-1drdwh6){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-1drdwh6 button:where(.svelte-1drdwh6):hover,.stagesize-nav.svelte-1drdwh6 button:where(.svelte-1drdwh6):focus-visible{background-color:var(--c-basic-150)}.stagesize-nav.svelte-1drdwh6 button:where(.svelte-1drdwh6) svg:where(.svelte-1drdwh6){height:1.125rem;color:var(--c-basic-700);transition:.2s}.stagesize-nav.svelte-1drdwh6 button:where(.svelte-1drdwh6):hover svg:where(.svelte-1drdwh6),.stagesize-nav.svelte-1drdwh6 button:where(.svelte-1drdwh6):focus-visible svg:where(.svelte-1drdwh6),.stagesize-nav.svelte-1drdwh6 button.active:where(.svelte-1drdwh6) svg:where(.svelte-1drdwh6){color:var(--c-primary)}.stagesize-nav.svelte-1drdwh6 button:where(.svelte-1drdwh6) svg.landscape:where(.svelte-1drdwh6){transform:rotate(90deg);transition:.2s}.stagesize-nav.svelte-1drdwh6 button:where(.svelte-1drdwh6) .dot:where(.svelte-1drdwh6){display:block;position:absolute;left:50%;bottom:.125rem;transform:translate(-50%);height:.313rem;width:.313rem;background-color:transparent;border-radius:50%}.stagesize-nav.svelte-1drdwh6 button.active:where(.svelte-1drdwh6){background-color:var(--c-primary-bg)}.stagesize-nav.svelte-1drdwh6 button.active:where(.svelte-1drdwh6) .dot:where(.svelte-1drdwh6){background-color:var(--c-primary)}}.dropdown.svelte-1drdwh6{position:relative;display:inline-block;z-index:99}.dropdown_items.svelte-1drdwh6{visibility:hidden;position:absolute;right:0;padding:.375rem 0 0;z-index:9}.dropdown_items.svelte-1drdwh6 ul:where(.svelte-1drdwh6){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-1drdwh6 ul:where(.svelte-1drdwh6) li:where(.svelte-1drdwh6){display:block;list-style:none;margin:0;padding:0}.dropdown_items.svelte-1drdwh6 ul:where(.svelte-1drdwh6) li:where(.svelte-1drdwh6) button:where(.svelte-1drdwh6){display:flex;align-items:center;justify-items:flex-start;width:100%;min-width:5rem;padding:.5rem;font-size:.75rem;color:var(--c-basic-900);text-transform:capitalize;white-space:nowrap}.dropdown_items.svelte-1drdwh6 ul:where(.svelte-1drdwh6) li:where(.svelte-1drdwh6) button:where(.svelte-1drdwh6) .dropdown_item-dot:where(.svelte-1drdwh6){display:block;margin:0 .5rem 0 0;height:.313rem;width:.313rem;background-color:transparent;border-radius:50%}.dropdown_items.svelte-1drdwh6 ul:where(.svelte-1drdwh6) li:where(.svelte-1drdwh6) button.active:where(.svelte-1drdwh6) .dropdown_item-dot:where(.svelte-1drdwh6),.dropdown_items.svelte-1drdwh6 ul:where(.svelte-1drdwh6) li:where(.svelte-1drdwh6) button.active:where(.svelte-1drdwh6):hover .dropdown_item-dot:where(.svelte-1drdwh6){background-color:var(--c-primary)}.dropdown_items.svelte-1drdwh6 ul:where(.svelte-1drdwh6) li:where(.svelte-1drdwh6) button:where(.svelte-1drdwh6):hover,.dropdown_items.svelte-1drdwh6 ul:where(.svelte-1drdwh6) li:where(.svelte-1drdwh6) button:where(.svelte-1drdwh6):focus-visible{color:var(--c-primary);font-weight:500;background-color:var(--c-basic-100)}.dropdown_items.svelte-1drdwh6 ul:where(.svelte-1drdwh6) li:where(.svelte-1drdwh6) button.active:where(.svelte-1drdwh6){color:var(--c-primary);font-weight:500;background-color:var(--c-primary-bg);border-color:var(--c-primary)}.dropdown.svelte-1drdwh6:hover>.dropdown_items:where(.svelte-1drdwh6),.dropdown.svelte-1drdwh6:focus-visible>.dropdown_items:where(.svelte-1drdwh6){display:block;visibility:visible}.sidebar.svelte-yh1ir7{flex-grow:0;flex-shrink:0}.garden.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{display:flex;flex-direction:column;width:100%;height:100vh;overflow-y:auto}.message.svelte-yh1ir7{display:inline-block;margin:1rem;padding:1rem;background-color:#fff;border-radius:.625rem}.click-completed.svelte-yh1ir7{margin:0 0 .75rem;font-size:120%;font-weight:500}.instruction.svelte-yh1ir7 button:where(.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;background-color:var(--c-bg-body)}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);--c-dragbar-icon: var(--c-basic-400)}[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);--c-dragbar-icon: var(--c-basic-500)}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;color:var(--c-basic-600);line-height:1.5}a,a:visited{font-size:.875rem;color:var(--c-primary);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}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;margin:0}
|