├── .gitignore ├── LICENSE ├── README.md ├── docs ├── bundle.css ├── bundle.css.map ├── bundle.js ├── bundle.js.map ├── favicon.png ├── fonts │ ├── Bevan-Regular.ttf │ ├── JosefinSlab-Bold.ttf │ ├── JosefinSlab-BoldItalic.ttf │ ├── JosefinSlab-Light.ttf │ ├── JosefinSlab-LightItalic.ttf │ ├── JosefinSlab-Regular.ttf │ ├── JosefinSlab-RegularItalic.ttf │ ├── JosefinSlab-SemiBold.ttf │ ├── JosefinSlab-SemiBoldItalic.ttf │ ├── JosefinSlab-Thin.ttf │ ├── JosefinSlab-ThinItalic.ttf │ └── OFL.txt ├── global.css └── index.html ├── package-lock.json ├── package.json ├── rollup.config.js └── src ├── App.svelte ├── Presentation.svelte ├── layout ├── Box.svelte ├── Bracket.svelte ├── Cluster.svelte ├── Cover.svelte ├── Frame.svelte ├── Grid.svelte ├── Imposter.svelte ├── Reel.svelte ├── Sidebar.svelte ├── Stack.svelte ├── Switcher.svelte └── index.js ├── lib └── helpers.js └── main.js /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Silvan Büdenbender 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Welcome 2 | 3 | This repo is based on [svelte/template](https://github.com/sveltejs/template). 4 | 5 | I created some layouts from [EveryLayout](https://every-layout.dev/), they are great! 6 | Also I like [ColorSupply](https://colorsupplyyy.com/app) very much. 7 | 8 | Feel free to explore these layout components! Feedback and bug reports welcome. :) 9 | 10 | You can see it [here](https://silvancodes.github.io/svelte-layout-components/) on github pages. 11 | 12 | ## Get started 13 | 14 | *You need to have [Node.js](https://nodejs.org) installed.* 15 | 16 | Degit repo and install the dependencies to start your own project. 17 | 18 | ```bash 19 | npx degit SilvanCodes/svelte-layout-components svelte-layouts 20 | cd svelte-layouts 21 | npm install 22 | ``` 23 | 24 | ...then start [Rollup](https://rollupjs.org): 25 | 26 | ```bash 27 | npm run dev 28 | ``` 29 | 30 | Navigate to [localhost:5000](http://localhost:5000). You should see your app running. Edit a component file in `src`, save it, and reload the page to see your changes. 31 | -------------------------------------------------------------------------------- /docs/bundle.css: -------------------------------------------------------------------------------- 1 | [slot]{display:contents} 2 | .cluster.svelte-vfokfz{overflow:hidden}.cluster.svelte-vfokfz>*{display:flex;flex-wrap:wrap} 3 | .cover.svelte-1j7sf9s{display:flex;flex-direction:column}.cover.svelte-1j7sf9s>.center.svelte-1j7sf9s{margin-top:auto;margin-bottom:auto}.cover.svelte-1j7sf9s>.above.svelte-1j7sf9s{margin-top:0}.cover.svelte-1j7sf9s>.below.svelte-1j7sf9s{margin-bottom:0} 4 | .box.svelte-1puxyt3 *{color:inherit} 5 | .bracket.svelte-qeuydz{display:flex}.bracket.svelte-qeuydz>.center.svelte-qeuydz{margin-left:auto;margin-right:auto}.bracket.svelte-qeuydz>.left.svelte-qeuydz{margin-left:0}.bracket.svelte-qeuydz>.right.svelte-qeuydz{margin-right:0} 6 | .grid.svelte-1w6bbvw{display:grid} 7 | .frame.svelte-1l9ak52{position:relative}.frame.svelte-1l9ak52>*{display:flex;justify-content:center;align-items:center;overflow:hidden;position:absolute;top:0;right:0;bottom:0;left:0}.frame.svelte-1l9ak52>img,.frame.svelte-1l9ak52>video{height:100%;width:100%;object-fit:cover} 8 | .imposter.svelte-19lqn93{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);overflow:auto} 9 | .reel.svelte-q0j2c2{display:flex;overflow-x:auto;overflow-y:hidden}.reel.svelte-q0j2c2>img{height:100%;flex-basis:auto;width:auto} 10 | .with-sidebar.svelte-nnbk3l{overflow:hidden}.with-sidebar.svelte-nnbk3l>.svelte-nnbk3l{display:flex;flex-wrap:wrap}.sidebar.svelte-nnbk3l{flex-grow:1}.not-sidebar.svelte-nnbk3l{flex-basis:0;flex-grow:999} 11 | .stack.svelte-tgxxg6{display:flex;flex-direction:column;justify-content:flex-start}.stack.svelte-tgxxg6:only-child{height:100%} 12 | .switcher.svelte-ya789e>.svelte-ya789e{display:flex;flex-wrap:wrap;overflow:hidden}.switcher.svelte-ya789e>.svelte-ya789e>*{flex-grow:1} 13 | 14 | /*# sourceMappingURL=bundle.css.map */ -------------------------------------------------------------------------------- /docs/bundle.css.map: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "file": "bundle.css", 4 | "sources": [ 5 | "../src/App.svelte", 6 | "../src/layout/Cluster.svelte", 7 | "../src/layout/Cover.svelte", 8 | "../src/layout/Box.svelte", 9 | "../src/layout/Bracket.svelte", 10 | "../src/layout/Grid.svelte", 11 | "../src/layout/Frame.svelte", 12 | "../src/layout/Imposter.svelte", 13 | "../src/layout/Reel.svelte", 14 | "../src/layout/Sidebar.svelte", 15 | "../src/layout/Stack.svelte", 16 | "../src/layout/Switcher.svelte" 17 | ], 18 | "sourcesContent": [ 19 | "\n\n\n\n\n\t
\n\t\t\n\t\t\t

EveryLayout in Svelte

\n\t\t
\n\t
\n\t\n\n\t\t\n\t\t\t
Stack
\n\t\t\t\n\t\t\t\t
    \n\t\t\t\t\t
  • some

  • \n\t\t\t\t\t
  • equally

  • \n\t\t\t\t\t
  • spaced

  • \n\t\t\t\t\t
  • content

  • \n\t\t\t\t
\n\t\t\t
\n\t\t
\n\n\t\t\n\t\t\t
Box
\n\t\t\t\n\t\t
\n\n\t\t\n\t\t\t
Bracket
\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\n\t\t\n\t\t\t
Cluster
\n\t\t\t\n\t\t\t\t
    \n\t\t\t\t\t
  • Content

  • \n\t\t\t\t\t
  • Content

  • \n\t\t\t\t\t
  • Content

  • \n\t\t\t\t\t
  • Content

  • \n\t\t\t\t\t
  • Content

  • \n\t\t\t\t
\n\t\t\t
\n\t\t
\n\n\t\t\n\t\t\t
Sidebar
\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t

A

\n\t\t\t\t\t\t\t

B

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t

Main Content

\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\n\t\t\n\t\t\t
Switcher
\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t
\n\n\t\t\n\t\t\t
Cover
\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\n\t\t\n\t\t\t
Grid
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\tX\n\t\t\t\t\to\n\t\t\t\t\to\n\t\t\t\t\to\n\t\t\t\t\tX\n\t\t\t\t\to\n\t\t\t\t\to\n\t\t\t\t\to\n\t\t\t\t\tX\n\t\t\t\t\n\t\t\t
\n\t\t
\n\n\t\t\n\t\t\t
Frame
\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\"favicon\"\n\t\t\t\t\n\t\t\t\n\t\t
\n\n\t\t\n\t\t\t
Reel
\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\"favicon\"\n\t\t\t\t\t\t\"favicon\"\n\t\t\t\t\t\t\"favicon\"\n\t\t\t\t\t\t\"favicon\"\n\t\t\t\t\t\t\"favicon\"\n\t\t\t\t\t\t\"favicon\"\n\t\t\t\t\t\t\"favicon\"\n\t\t\t\t\t\t\"favicon\"\n\t\t\t\t\t\t\"favicon\"\n\t\t\t\t\t\t\"favicon\"\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\n\t\t\n\t\t\t
Imposter
\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t

Some obscured text. Some obscured text. Some obscured text. Some obscured text. Some obscured text.

\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t

I'm infront!

\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t

And scrollable!

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t
\n\t
\n\t\t\n\t\t\t

Back to top

\n\t\t
\n\t
\n
\n", 20 | "\n\n\n\n
\n \n \n
\n", 21 | "\n\n\n\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n", 22 | "\n\n\n\n
\n \n \n
\n", 23 | "\n\n\n\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n", 24 | "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,cAAC,CAAC,AACD,OAAO,CAAE,IAAI,CACb,cAAc,CAAE,MAAM,CACtB,eAAe,CAAE,UAAU,AAC/B,CAAC,AAGJ,oBAAM,WAAW,AAAC,CAAC,AACZ,MAAM,CAAE,IAAI,AAChB,CAAC;ACRD,uBAAS,CAAG,cAAE,CAAC,AACX,OAAO,CAAE,IAAI,CACb,SAAS,CAAE,IAAI,CACf,QAAQ,CAAE,MAAM,AACpB,CAAC,AAED,uBAAS,CAAG,cAAC,CAAW,CAAC,AAAE,CAAC,AACxB,SAAS,CAAE,CAAC,AAChB,CAAC" 34 | } -------------------------------------------------------------------------------- /docs/bundle.js: -------------------------------------------------------------------------------- 1 | var app=function(){"use strict";function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function r(){return Object.create(null)}function $(t){t.forEach(n)}function o(t){return"function"==typeof t}function s(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function c(t,e,n){if(t){const r=i(t,e,n);return t[0](r)}}function i(t,n,r){return t[1]?e({},e(n.$$scope.ctx,t[1](r?r(n):{}))):n.$$scope.ctx}function a(t,n,r,$){return t[1]?e({},e(n.$$scope.changed||{},t[1]($?$(r):{}))):n.$$scope.changed||{}}function l(t,e){t.appendChild(e)}function d(t,e,n){t.insertBefore(e,n||null)}function p(t){t.parentNode.removeChild(t)}function u(t){return document.createElement(t)}function f(t){return document.createTextNode(t)}function g(){return f(" ")}function m(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function v(t,e,n,r){t.style.setProperty(e,n,r?"important":"")}let h;function b(t){h=t}function x(t){(function(){if(!h)throw new Error("Function called outside component initialization");return h})().$$.on_mount.push(t)}const y=[],w=[],_=[],k=[],W=Promise.resolve();let C=!1;function S(t){_.push(t)}function T(){const t=new Set;do{for(;y.length;){const t=y.shift();b(t),A(t.$$)}for(;w.length;)w.pop()();for(let e=0;e<_.length;e+=1){const n=_[e];t.has(n)||(n(),t.add(n))}_.length=0}while(y.length);for(;k.length;)k.pop()();C=!1}function A(t){t.fragment&&(t.update(t.dirty),$(t.before_update),t.fragment.p(t.dirty,t.ctx),t.dirty=null,t.after_update.forEach(S))}const H=new Set;let I;function M(t,e){t&&t.i&&(H.delete(t),t.i(e))}function q(t,e,n,r){if(t&&t.o){if(H.has(t))return;H.add(t),I.c.push(()=>{H.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}}function E(t,e,r){const{fragment:s,on_mount:c,on_destroy:i,after_update:a}=t.$$;s.m(e,r),S(()=>{const e=c.map(n).filter(o);i?i.push(...e):$(e),t.$$.on_mount=[]}),a.forEach(S)}function L(t,e){t.$$.fragment&&($(t.$$.on_destroy),t.$$.fragment.d(e),t.$$.on_destroy=t.$$.fragment=null,t.$$.ctx={})}function j(t,e){t.$$.dirty||(y.push(t),C||(C=!0,W.then(T)),t.$$.dirty=r()),t.$$.dirty[e]=!0}function z(e,n,o,s,c,i){const a=h;b(e);const l=n.props||{},d=e.$$={fragment:null,ctx:null,props:i,update:t,not_equal:c,bound:r(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:[]),callbacks:r(),dirty:null};let p=!1;var u;d.ctx=o?o(e,l,(t,n,r=n)=>(d.ctx&&c(d.ctx[t],d.ctx[t]=r)&&(d.bound[t]&&d.bound[t](r),p&&j(e,t)),n)):l,d.update(),p=!0,$(d.before_update),d.fragment=s(d.ctx),n.target&&(n.hydrate?d.fragment.l((u=n.target,Array.from(u.childNodes))):d.fragment.c(),n.intro&&M(e.$$.fragment),E(e,n.target,n.anchor),T()),b(a)}class B{$destroy(){L(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(){}}function N(...t){return t.map(t=>`var(--${function(t,e=""){return t.replace(/[^a-zA-Z0-9-_]/g,e)}(t)}, ${t})`).join(" ")}function O(t){var e,n;const r=t.$$slots.default,$=c(r,t,null);return{c(){e=u("div"),$&&$.c(),m(e,"class","box svelte-1puxyt3")},l(t){$&&$.l(div_nodes)},m(r,o){d(r,e,o),$&&$.m(e,null),t.div_binding(e),n=!0},p(t,e){$&&$.p&&t.$$scope&&$.p(a(r,e,t,null),i(r,e,null))},i(t){n||(M($,t),n=!0)},o(t){q($,t),n=!1},d(n){n&&p(e),$&&$.d(n),t.div_binding(null)}}}function X(t,e,n){let r,{padding:$="s0",color:o="color-primary",backgroundColor:s="color-secondary",borderWidth:c="border-medium",borderStyle:i="solid",borderColor:a="color-primary"}=e;x(()=>{n("box",r.style.padding=N($),r),n("box",r.style.color=N(o),r),n("box",r.style.backgroundColor=N(s),r),c?n("box",r.style.border=N(c,i,a),r):(n("box",r.style.outline="0.125rem solid transparent",r),n("box",r.style.outlineOffset="-0.125rem",r))});let{$$slots:l={},$$scope:d}=e;return t.$set=(t=>{"padding"in t&&n("padding",$=t.padding),"color"in t&&n("color",o=t.color),"backgroundColor"in t&&n("backgroundColor",s=t.backgroundColor),"borderWidth"in t&&n("borderWidth",c=t.borderWidth),"borderStyle"in t&&n("borderStyle",i=t.borderStyle),"borderColor"in t&&n("borderColor",a=t.borderColor),"$$scope"in t&&n("$$scope",d=t.$$scope)}),{padding:$,color:o,backgroundColor:s,borderWidth:c,borderStyle:i,borderColor:a,box:r,div_binding:function(t){w[t?"unshift":"push"](()=>{n("box",r=t)})},$$slots:l,$$scope:d}}class F extends B{constructor(t){super(),z(this,t,X,O,s,["padding","color","backgroundColor","borderWidth","borderStyle","borderColor"])}}const G=()=>({}),P=()=>({}),R=()=>({}),Z=()=>({});function D(t){var e,n,r,$,o,s,f;const v=t.$$slots.left,h=c(v,t,Z),b=t.$$slots.default,x=c(b,t,null),y=t.$$slots.right,w=c(y,t,P);return{c(){e=u("div"),n=u("div"),h&&h.c(),r=g(),$=u("div"),x&&x.c(),o=g(),s=u("div"),w&&w.c(),m(n,"class","left svelte-qeuydz"),m($,"class","center svelte-qeuydz"),m(s,"class","right svelte-qeuydz"),m(e,"class","bracket svelte-qeuydz")},l(t){h&&h.l(div0_nodes),x&&x.l(div1_nodes),w&&w.l(div2_nodes)},m(c,i){d(c,e,i),l(e,n),h&&h.m(n,null),t.div0_binding(n),l(e,r),l(e,$),x&&x.m($,null),t.div1_binding($),l(e,o),l(e,s),w&&w.m(s,null),t.div2_binding(s),t.div3_binding(e),f=!0},p(t,e){h&&h.p&&t.$$scope&&h.p(a(v,e,t,R),i(v,e,Z)),x&&x.p&&t.$$scope&&x.p(a(b,e,t,null),i(b,e,null)),w&&w.p&&t.$$scope&&w.p(a(y,e,t,G),i(y,e,P))},i(t){f||(M(h,t),M(x,t),M(w,t),f=!0)},o(t){q(h,t),q(x,t),q(w,t),f=!1},d(n){n&&p(e),h&&h.d(n),t.div0_binding(null),x&&x.d(n),t.div1_binding(null),w&&w.d(n),t.div2_binding(null),t.div3_binding(null)}}}function J(t,e,n){let r,$,o,s,{gap:c="s0",padding:i="s0",maxWidth:a="measure",centerText:l=!1,centerItems:d=!1}=e;x(()=>{n("bracket",r.style.padding=N(i),r),n("left",$.style.marginRight=N(c),$),n("right",s.style.marginLeft=N(c),s),n("center",o.style.maxWidth=N(a),o),l&&n("center",o.style.textAlign="center",o),d&&n("center",o.style.alignItems="center",o)});let{$$slots:p={},$$scope:u}=e;return t.$set=(t=>{"gap"in t&&n("gap",c=t.gap),"padding"in t&&n("padding",i=t.padding),"maxWidth"in t&&n("maxWidth",a=t.maxWidth),"centerText"in t&&n("centerText",l=t.centerText),"centerItems"in t&&n("centerItems",d=t.centerItems),"$$scope"in t&&n("$$scope",u=t.$$scope)}),{gap:c,padding:i,maxWidth:a,centerText:l,centerItems:d,bracket:r,left:$,center:o,right:s,div0_binding:function(t){w[t?"unshift":"push"](()=>{n("left",$=t)})},div1_binding:function(t){w[t?"unshift":"push"](()=>{n("center",o=t)})},div2_binding:function(t){w[t?"unshift":"push"](()=>{n("right",s=t)})},div3_binding:function(t){w[t?"unshift":"push"](()=>{n("bracket",r=t)})},$$slots:p,$$scope:u}}class K extends B{constructor(t){super(),z(this,t,J,D,s,["gap","padding","maxWidth","centerText","centerItems"])}}function Q(t){var e,n;const r=t.$$slots.default,$=c(r,t,null);return{c(){e=u("div"),$&&$.c(),m(e,"class","cluster svelte-vfokfz")},l(t){$&&$.l(div_nodes)},m(r,o){d(r,e,o),$&&$.m(e,null),t.div_binding(e),n=!0},p(t,e){$&&$.p&&t.$$scope&&$.p(a(r,e,t,null),i(r,e,null))},i(t){n||(M($,t),n=!0)},o(t){q($,t),n=!1},d(n){n&&p(e),$&&$.d(n),t.div_binding(null)}}}function U(t,e,n){let r,{gap:$="s0",alignItems:o="center",justifyContent:s="center"}=e;x(()=>{r.querySelectorAll(".cluster > *").forEach(t=>{t.style.justifyContent=N(s),t.style.alignItems=N(o),t.style.margin=`calc(${N($)} / 2 * -1)`}),r.querySelectorAll(".cluster > * > *").forEach(t=>t.style.margin=`calc(${N($)} / 2)`)});let{$$slots:c={},$$scope:i}=e;return t.$set=(t=>{"gap"in t&&n("gap",$=t.gap),"alignItems"in t&&n("alignItems",o=t.alignItems),"justifyContent"in t&&n("justifyContent",s=t.justifyContent),"$$scope"in t&&n("$$scope",i=t.$$scope)}),{gap:$,alignItems:o,justifyContent:s,cluster:r,div_binding:function(t){w[t?"unshift":"push"](()=>{n("cluster",r=t)})},$$slots:c,$$scope:i}}class V extends B{constructor(t){super(),z(this,t,U,Q,s,["gap","alignItems","justifyContent"])}}const Y=()=>({}),tt=()=>({}),et=()=>({}),nt=()=>({});function rt(t){var e,n,r,$,o,s,f;const v=t.$$slots.above,h=c(v,t,nt),b=t.$$slots.default,x=c(b,t,null),y=t.$$slots.below,w=c(y,t,tt);return{c(){e=u("div"),n=u("div"),h&&h.c(),r=g(),$=u("div"),x&&x.c(),o=g(),s=u("div"),w&&w.c(),m(n,"class","above svelte-1j7sf9s"),m($,"class","center svelte-1j7sf9s"),m(s,"class","below svelte-1j7sf9s"),m(e,"class","cover svelte-1j7sf9s")},l(t){h&&h.l(div0_nodes),x&&x.l(div1_nodes),w&&w.l(div2_nodes)},m(c,i){d(c,e,i),l(e,n),h&&h.m(n,null),t.div0_binding(n),l(e,r),l(e,$),x&&x.m($,null),l(e,o),l(e,s),w&&w.m(s,null),t.div2_binding(s),t.div3_binding(e),f=!0},p(t,e){h&&h.p&&t.$$scope&&h.p(a(v,e,t,et),i(v,e,nt)),x&&x.p&&t.$$scope&&x.p(a(b,e,t,null),i(b,e,null)),w&&w.p&&t.$$scope&&w.p(a(y,e,t,Y),i(y,e,tt))},i(t){f||(M(h,t),M(x,t),M(w,t),f=!0)},o(t){q(h,t),q(x,t),q(w,t),f=!1},d(n){n&&p(e),h&&h.d(n),t.div0_binding(null),x&&x.d(n),w&&w.d(n),t.div2_binding(null),t.div3_binding(null)}}}function $t(t,e,n){let r,$,o,{gap:s="s0",padding:c="s0",minHeight:i="100vh"}=e;x(()=>{n("cover",r.style.minHeight=N(i),r),n("cover",r.style.padding=N(c),r),n("above",$.style.marginBottom=N(s),$),n("below",o.style.marginTop=N(s),o)});let{$$slots:a={},$$scope:l}=e;return t.$set=(t=>{"gap"in t&&n("gap",s=t.gap),"padding"in t&&n("padding",c=t.padding),"minHeight"in t&&n("minHeight",i=t.minHeight),"$$scope"in t&&n("$$scope",l=t.$$scope)}),{gap:s,padding:c,minHeight:i,cover:r,above:$,below:o,div0_binding:function(t){w[t?"unshift":"push"](()=>{n("above",$=t)})},div2_binding:function(t){w[t?"unshift":"push"](()=>{n("below",o=t)})},div3_binding:function(t){w[t?"unshift":"push"](()=>{n("cover",r=t)})},$$slots:a,$$scope:l}}class ot extends B{constructor(t){super(),z(this,t,$t,rt,s,["gap","padding","minHeight"])}}function st(t){var e,n;const r=t.$$slots.default,$=c(r,t,null);return{c(){e=u("div"),$&&$.c(),m(e,"class","frame svelte-1l9ak52")},l(t){$&&$.l(div_nodes)},m(r,o){d(r,e,o),$&&$.m(e,null),t.div_binding(e),n=!0},p(t,e){$&&$.p&&t.$$scope&&$.p(a(r,e,t,null),i(r,e,null))},i(t){n||(M($,t),n=!0)},o(t){q($,t),n=!1},d(n){n&&p(e),$&&$.d(n),t.div_binding(null)}}}function ct(t,e,n){let r,{ratio:$="16:9"}=e;x(()=>{n("frame",r.style.paddingBottom=`calc(${N(s)} / ${N(o)} * 100%)`,r)});let o,s,{$$slots:c={},$$scope:i}=e;return t.$set=(t=>{"ratio"in t&&n("ratio",$=t.ratio),"$$scope"in t&&n("$$scope",i=t.$$scope)}),t.$$.update=((t={ratio:1})=>{t.ratio&&([o,s]=$.split(":"))}),{ratio:$,frame:r,div_binding:function(t){w[t?"unshift":"push"](()=>{n("frame",r=t)})},$$slots:c,$$scope:i}}class it extends B{constructor(t){super(),z(this,t,ct,st,s,["ratio"])}}function at(t){var e,n;const r=t.$$slots.default,$=c(r,t,null);return{c(){e=u("div"),$&&$.c(),m(e,"class","grid svelte-1w6bbvw")},l(t){$&&$.l(div_nodes)},m(r,o){d(r,e,o),$&&$.m(e,null),t.div_binding(e),n=!0},p(t,e){$&&$.p&&t.$$scope&&$.p(a(r,e,t,null),i(r,e,null))},i(t){n||(M($,t),n=!0)},o(t){q($,t),n=!1},d(n){n&&p(e),$&&$.d(n),t.div_binding(null)}}}function lt(t,e,n){let r,{gap:$="s0",minWidth:o="measure"}=e;x(()=>{n("grid",r.style.gridGap=N($),r),n("grid",r.style.gridTemplateColumns=`repeat(auto-fit, minmax(${N(o)}, 1fr))`,r)});let{$$slots:s={},$$scope:c}=e;return t.$set=(t=>{"gap"in t&&n("gap",$=t.gap),"minWidth"in t&&n("minWidth",o=t.minWidth),"$$scope"in t&&n("$$scope",c=t.$$scope)}),{gap:$,minWidth:o,grid:r,div_binding:function(t){w[t?"unshift":"push"](()=>{n("grid",r=t)})},$$slots:s,$$scope:c}}class dt extends B{constructor(t){super(),z(this,t,lt,at,s,["gap","minWidth"])}}function pt(t){var e,n;const r=t.$$slots.default,$=c(r,t,null);return{c(){e=u("div"),$&&$.c(),m(e,"class","imposter svelte-19lqn93")},l(t){$&&$.l(div_nodes)},m(r,o){d(r,e,o),$&&$.m(e,null),t.div_binding(e),n=!0},p(t,e){$&&$.p&&t.$$scope&&$.p(a(r,e,t,null),i(r,e,null))},i(t){n||(M($,t),n=!0)},o(t){q($,t),n=!1},d(n){n&&p(e),$&&$.d(n),t.div_binding(null)}}}function ut(t,e,n){let r,{gap:$="s0",fixed:o=!1,breakout:s=!1}=e;x(()=>{o&&n("imposter",r.style.position="fixed",r),s||(n("imposter",r.style.maxWidth=`calc(100% - ${N($)} * 2)`,r),n("imposter",r.style.maxHeight=`calc(100% - ${N($)} * 2)`,r))});let{$$slots:c={},$$scope:i}=e;return t.$set=(t=>{"gap"in t&&n("gap",$=t.gap),"fixed"in t&&n("fixed",o=t.fixed),"breakout"in t&&n("breakout",s=t.breakout),"$$scope"in t&&n("$$scope",i=t.$$scope)}),{gap:$,fixed:o,breakout:s,imposter:r,div_binding:function(t){w[t?"unshift":"push"](()=>{n("imposter",r=t)})},$$slots:c,$$scope:i}}class ft extends B{constructor(t){super(),z(this,t,ut,pt,s,["gap","fixed","breakout"])}}function gt(t){var e,n;const r=t.$$slots.default,$=c(r,t,null);return{c(){e=u("div"),$&&$.c(),m(e,"class","reel svelte-q0j2c2")},l(t){$&&$.l(div_nodes)},m(r,o){d(r,e,o),$&&$.m(e,null),t.div_binding(e),n=!0},p(t,e){$&&$.p&&t.$$scope&&$.p(a(r,e,t,null),i(r,e,null))},i(t){n||(M($,t),n=!0)},o(t){q($,t),n=!1},d(n){n&&p(e),$&&$.d(n),t.div_binding(null)}}}function mt(t,e,n){let r,{gap:$="s0",height:o="auto",itemWidth:s="auto"}=e;x(()=>{n("reel",r.style.height=N(o),r),r.querySelectorAll(".reel > * + *").forEach(t=>t.style.marginLeft=N($)),r.querySelectorAll(".reel > *").forEach(t=>t.style.flex=`0 0 ${N(s)}`)});let{$$slots:c={},$$scope:i}=e;return t.$set=(t=>{"gap"in t&&n("gap",$=t.gap),"height"in t&&n("height",o=t.height),"itemWidth"in t&&n("itemWidth",s=t.itemWidth),"$$scope"in t&&n("$$scope",i=t.$$scope)}),{gap:$,height:o,itemWidth:s,reel:r,div_binding:function(t){w[t?"unshift":"push"](()=>{n("reel",r=t)})},$$slots:c,$$scope:i}}class vt extends B{constructor(t){super(),z(this,t,mt,gt,s,["gap","height","itemWidth"])}}const ht=()=>({}),bt=()=>({}),xt=()=>({}),yt=()=>({}),wt=()=>({}),_t=()=>({}),kt=()=>({}),Wt=()=>({});function Ct(t){var e,n,r,$;const o=t.$$slots["not-sidebar"],s=c(o,t,yt),l=t.$$slots.sidebar,f=c(l,t,bt);return{c(){e=u("div"),s&&s.c(),n=g(),r=u("div"),f&&f.c(),m(e,"class","not-sidebar svelte-nnbk3l"),m(r,"class","sidebar svelte-nnbk3l")},l(t){s&&s.l(div0_nodes),f&&f.l(div1_nodes)},m(o,c){d(o,e,c),s&&s.m(e,null),t.div0_binding_1(e),d(o,n,c),d(o,r,c),f&&f.m(r,null),t.div1_binding_1(r),$=!0},p(t,e){s&&s.p&&t.$$scope&&s.p(a(o,e,t,xt),i(o,e,yt)),f&&f.p&&t.$$scope&&f.p(a(l,e,t,ht),i(l,e,bt))},i(t){$||(M(s,t),M(f,t),$=!0)},o(t){q(s,t),q(f,t),$=!1},d($){$&&p(e),s&&s.d($),t.div0_binding_1(null),$&&(p(n),p(r)),f&&f.d($),t.div1_binding_1(null)}}}function St(t){var e,n,r,$;const o=t.$$slots.sidebar,s=c(o,t,Wt),l=t.$$slots["not-sidebar"],f=c(l,t,_t);return{c(){e=u("div"),s&&s.c(),n=g(),r=u("div"),f&&f.c(),m(e,"class","sidebar svelte-nnbk3l"),m(r,"class","not-sidebar svelte-nnbk3l")},l(t){s&&s.l(div0_nodes),f&&f.l(div1_nodes)},m(o,c){d(o,e,c),s&&s.m(e,null),t.div0_binding(e),d(o,n,c),d(o,r,c),f&&f.m(r,null),t.div1_binding(r),$=!0},p(t,e){s&&s.p&&t.$$scope&&s.p(a(o,e,t,kt),i(o,e,Wt)),f&&f.p&&t.$$scope&&f.p(a(l,e,t,wt),i(l,e,_t))},i(t){$||(M(s,t),M(f,t),$=!0)},o(t){q(s,t),q(f,t),$=!1},d($){$&&p(e),s&&s.d($),t.div0_binding(null),$&&(p(n),p(r)),f&&f.d($),t.div1_binding(null)}}}function Tt(t){var e,n,r,o,s,c=[St,Ct],i=[];function a(t,e){return"left"===e.sidebarIs?0:1}return r=a(0,t),o=i[r]=c[r](t),{c(){e=u("div"),n=u("div"),o.c(),m(n,"class","svelte-nnbk3l"),m(e,"class","with-sidebar svelte-nnbk3l")},m($,o){d($,e,o),l(e,n),i[r].m(n,null),t.div1_binding_2(e),s=!0},p(t,e){var s=r;(r=a(0,e))===s?i[r].p(t,e):(I={r:0,c:[],p:I},q(i[s],1,1,()=>{i[s]=null}),I.r||$(I.c),I=I.p,(o=i[r])||(o=i[r]=c[r](e)).c(),M(o,1),o.m(n,null))},i(t){s||(M(o),s=!0)},o(t){q(o),s=!1},d(n){n&&p(e),i[r].d(),t.div1_binding_2(null)}}}function At(t,e,n){let r,$,o,{gap:s="s0",sidebarIs:c="left",sideWidth:i="",contentMinWidth:a="50%"}=e;x(()=>{n("notSidebar",$.style.minWidth=N(a),$),i&&n("sidebar",o.style.flexBasis=N(i),o),s&&(r.querySelectorAll(".with-sidebar > *").forEach(t=>t.style.margin=`calc(${N(s)} / 2 * -1)`),r.querySelectorAll(".with-sidebar > * > *").forEach(t=>t.style.margin=`calc(${N(s)} / 2)`),n("notSidebar",$.style.minWidth=`calc(${N(a)} - ${N(s)})`,$))});let{$$slots:l={},$$scope:d}=e;return t.$set=(t=>{"gap"in t&&n("gap",s=t.gap),"sidebarIs"in t&&n("sidebarIs",c=t.sidebarIs),"sideWidth"in t&&n("sideWidth",i=t.sideWidth),"contentMinWidth"in t&&n("contentMinWidth",a=t.contentMinWidth),"$$scope"in t&&n("$$scope",d=t.$$scope)}),{gap:s,sidebarIs:c,sideWidth:i,contentMinWidth:a,withSidebar:r,notSidebar:$,sidebar:o,div0_binding:function(t){w[t?"unshift":"push"](()=>{n("sidebar",o=t)})},div1_binding:function(t){w[t?"unshift":"push"](()=>{n("notSidebar",$=t)})},div0_binding_1:function(t){w[t?"unshift":"push"](()=>{n("notSidebar",$=t)})},div1_binding_1:function(t){w[t?"unshift":"push"](()=>{n("sidebar",o=t)})},div1_binding_2:function(t){w[t?"unshift":"push"](()=>{n("withSidebar",r=t)})},$$slots:l,$$scope:d}}class Ht extends B{constructor(t){super(),z(this,t,At,Tt,s,["gap","sidebarIs","sideWidth","contentMinWidth"])}}function It(t){var e,n;const r=t.$$slots.default,$=c(r,t,null);return{c(){e=u("div"),$&&$.c(),m(e,"class","stack svelte-tgxxg6")},l(t){$&&$.l(div_nodes)},m(r,o){d(r,e,o),$&&$.m(e,null),t.div_binding(e),n=!0},p(t,e){$&&$.p&&t.$$scope&&$.p(a(r,e,t,null),i(r,e,null))},i(t){n||(M($,t),n=!0)},o(t){q($,t),n=!1},d(n){n&&p(e),$&&$.d(n),t.div_binding(null)}}}function Mt(t,e,n){let r,{gap:$="s0",recursive:o=!1,splitAfter:s=""}=e;x(()=>{o?r.querySelectorAll("* + *").forEach(t=>t.style.marginTop=N($)):r.querySelectorAll(".stack > * + *").forEach(t=>t.style.marginTop=N($)),s&&r.querySelectorAll(`.stack > :nth-child(${s})`).forEach(t=>t.style.marginBottom="auto")});let{$$slots:c={},$$scope:i}=e;return t.$set=(t=>{"gap"in t&&n("gap",$=t.gap),"recursive"in t&&n("recursive",o=t.recursive),"splitAfter"in t&&n("splitAfter",s=t.splitAfter),"$$scope"in t&&n("$$scope",i=t.$$scope)}),{gap:$,recursive:o,splitAfter:s,stack:r,div_binding:function(t){w[t?"unshift":"push"](()=>{n("stack",r=t)})},$$slots:c,$$scope:i}}class qt extends B{constructor(t){super(),z(this,t,Mt,It,s,["gap","recursive","splitAfter"])}}function Et(t){var e,n,r;const $=t.$$slots.default,o=c($,t,null);return{c(){e=u("div"),n=u("div"),o&&o.c(),m(n,"class","svelte-ya789e"),m(e,"class","switcher svelte-ya789e")},l(t){o&&o.l(div0_nodes)},m($,s){d($,e,s),l(e,n),o&&o.m(n,null),t.div1_binding(e),r=!0},p(t,e){o&&o.p&&t.$$scope&&o.p(a($,e,t,null),i($,e,null))},i(t){r||(M(o,t),r=!0)},o(t){q(o,t),r=!1},d(n){n&&p(e),o&&o.d(n),t.div1_binding(null)}}}function Lt(t,e,n){let r,{gap:$="s0",minWidth:o="measure",limit:s=""}=e;x(()=>{r.querySelectorAll(".switcher > *").forEach(t=>t.style.margin=`calc(${N($)} / 2 * -1)`),r.querySelectorAll(".switcher > * > *").forEach(t=>{t.style.flexBasis=`calc((${N(o)} - 100% + ${N($)}) * 999)`,t.style.margin=`calc(${N($)} / 2)`}),s&&r.querySelectorAll(`.switcher > * > :nth-last-child(n+${s}), .switcher > * > :nth-last-child(n+${s}) ~ *`).forEach(t=>t.style.flexBasis="100%")});let{$$slots:c={},$$scope:i}=e;return t.$set=(t=>{"gap"in t&&n("gap",$=t.gap),"minWidth"in t&&n("minWidth",o=t.minWidth),"limit"in t&&n("limit",s=t.limit),"$$scope"in t&&n("$$scope",i=t.$$scope)}),{gap:$,minWidth:o,limit:s,switcher:r,div1_binding:function(t){w[t?"unshift":"push"](()=>{n("switcher",r=t)})},$$slots:c,$$scope:i}}class jt extends B{constructor(t){super(),z(this,t,Lt,Et,s,["gap","minWidth","limit"])}}const zt=()=>({}),Bt=()=>({});function Nt(t){var e,n;const r=t.$$slots.title,$=c(r,t,Bt);return{c(){e=u("div"),$&&$.c(),m(e,"slot","above")},l(t){$&&$.l(div_nodes)},m(t,r){d(t,e,r),$&&$.m(e,null),n=!0},p(t,e){$&&$.p&&t.$$scope&&$.p(a(r,e,t,zt),i(r,e,Bt))},i(t){n||(M($,t),n=!0)},o(t){q($,t),n=!1},d(t){t&&p(e),$&&$.d(t)}}}function Ot(t){var e,n;const r=t.$$slots.default,$=c(r,t,null);return{c(){e=g(),$&&$.c()},l(t){$&&$.l(t)},m(t,r){d(t,e,r),$&&$.m(t,r),n=!0},p(t,e){$&&$.p&&t.$$scope&&$.p(a(r,e,t,null),i(r,e,null))},i(t){n||(M($,t),n=!0)},o(t){q($,t),n=!1},d(t){t&&p(e),$&&$.d(t)}}}function Xt(t){var e,n=new ot({props:{minHeight:"s0",$$slots:{default:[Ot],above:[Nt]},$$scope:{ctx:t}}});return{c(){n.$$.fragment.c()},m(t,r){E(n,t,r),e=!0},p(t,e){var r={};t.$$scope&&(r.$$scope={changed:t,ctx:e}),n.$set(r)},i(t){e||(M(n.$$.fragment,t),e=!0)},o(t){q(n.$$.fragment,t),e=!1},d(t){L(n,t)}}}function Ft(t){var e,n=new K({props:{centerText:!0,padding:"zero",$$slots:{default:[Xt]},$$scope:{ctx:t}}});return{c(){n.$$.fragment.c()},m(t,r){E(n,t,r),e=!0},p(t,e){var r={};t.$$scope&&(r.$$scope={changed:t,ctx:e}),n.$set(r)},i(t){e||(M(n.$$.fragment,t),e=!0)},o(t){q(n.$$.fragment,t),e=!1},d(t){L(n,t)}}}function Gt(t){var e,n=new F({props:{backgroundColor:"white",$$slots:{default:[Ft]},$$scope:{ctx:t}}});return{c(){n.$$.fragment.c()},m(t,r){E(n,t,r),e=!0},p(t,e){var r={};t.$$scope&&(r.$$scope={changed:t,ctx:e}),n.$set(r)},i(t){e||(M(n.$$.fragment,t),e=!0)},o(t){q(n.$$.fragment,t),e=!1},d(t){L(n,t)}}}function Pt(t,e,n){let{$$slots:r={},$$scope:$}=e;return t.$set=(t=>{"$$scope"in t&&n("$$scope",$=t.$$scope)}),{$$slots:r,$$scope:$}}class Rt extends B{constructor(t){super(),z(this,t,Pt,Gt,s,[])}}function Zt(t){var e;return{c(){(e=u("a")).innerHTML="

EveryLayout in Svelte

",m(e,"id","top"),m(e,"href","https://github.com/SilvanCodes/svelte-layout-components"),m(e,"target","blank")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function Dt(t){var e,n,r=new K({props:{$$slots:{default:[Zt]},$$scope:{ctx:t}}});return{c(){e=u("div"),r.$$.fragment.c(),m(e,"slot","above")},m(t,$){d(t,e,$),E(r,e,null),n=!0},p(t,e){var n={};t.$$scope&&(n.$$scope={changed:t,ctx:e}),r.$set(n)},i(t){n||(M(r.$$.fragment,t),n=!0)},o(t){q(r.$$.fragment,t),n=!1},d(t){t&&p(e),L(r)}}}function Jt(t){var e;return{c(){(e=u("a")).innerHTML="
Stack
",m(e,"slot","title"),m(e,"href","https://every-layout.dev/layouts/stack/"),m(e,"target","blank")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function Kt(t){var e;return{c(){(e=u("ul")).innerHTML="
  • some

  • equally

  • spaced

  • content

  • "},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function Qt(t){var e,n,r=new qt({props:{recursive:!0,$$slots:{default:[Kt]},$$scope:{ctx:t}}});return{c(){e=g(),r.$$.fragment.c()},m(t,$){d(t,e,$),E(r,t,$),n=!0},p(t,e){var n={};t.$$scope&&(n.$$scope={changed:t,ctx:e}),r.$set(n)},i(t){n||(M(r.$$.fragment,t),n=!0)},o(t){q(r.$$.fragment,t),n=!1},d(t){t&&p(e),L(r,t)}}}function Ut(t){var e;return{c(){(e=u("a")).innerHTML="
    Box
    ",m(e,"slot","title"),m(e,"href","https://every-layout.dev/layouts/box/"),m(e,"target","blank")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function Vt(e){var n,r,$=new F({props:{padding:"s1"}});return{c(){n=g(),$.$$.fragment.c()},m(t,e){d(t,n,e),E($,t,e),r=!0},p:t,i(t){r||(M($.$$.fragment,t),r=!0)},o(t){q($.$$.fragment,t),r=!1},d(t){t&&p(n),L($,t)}}}function Yt(t){var e;return{c(){(e=u("a")).innerHTML="
    Bracket
    ",m(e,"slot","title"),m(e,"href","https://every-layout.dev/layouts/center/"),m(e,"target","blank")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function te(t){var e;return{c(){v(e=u("div"),"height","calc(var(--s1) * 2)")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function ee(t){var e,n,r=new F({props:{padding:"zero",$$slots:{default:[te]},$$scope:{ctx:t}}});return{c(){e=u("div"),r.$$.fragment.c(),m(e,"slot","left")},m(t,$){d(t,e,$),E(r,e,null),n=!0},p(t,e){var n={};t.$$scope&&(n.$$scope={changed:t,ctx:e}),r.$set(n)},i(t){n||(M(r.$$.fragment,t),n=!0)},o(t){q(r.$$.fragment,t),n=!1},d(t){t&&p(e),L(r)}}}function ne(t){var e;return{c(){v(e=u("div"),"height","calc(var(--s1) * 2)")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function re(t){var e,n,r=new F({props:{padding:"zero",$$slots:{default:[ne]},$$scope:{ctx:t}}});return{c(){e=u("div"),r.$$.fragment.c(),m(e,"slot","right")},m(t,$){d(t,e,$),E(r,e,null),n=!0},p(t,e){var n={};t.$$scope&&(n.$$scope={changed:t,ctx:e}),r.$set(n)},i(t){n||(M(r.$$.fragment,t),n=!0)},o(t){q(r.$$.fragment,t),n=!1},d(t){t&&p(e),L(r)}}}function $e(e){var n,r,$,o=new F({props:{padding:"s1"}});return{c(){n=g(),o.$$.fragment.c(),r=g()},m(t,e){d(t,n,e),E(o,t,e),d(t,r,e),$=!0},p:t,i(t){$||(M(o.$$.fragment,t),$=!0)},o(t){q(o.$$.fragment,t),$=!1},d(t){t&&p(n),L(o,t),t&&p(r)}}}function oe(t){var e,n,r=new K({props:{$$slots:{default:[$e],right:[re],left:[ee]},$$scope:{ctx:t}}});return{c(){e=g(),r.$$.fragment.c()},m(t,$){d(t,e,$),E(r,t,$),n=!0},p(t,e){var n={};t.$$scope&&(n.$$scope={changed:t,ctx:e}),r.$set(n)},i(t){n||(M(r.$$.fragment,t),n=!0)},o(t){q(r.$$.fragment,t),n=!1},d(t){t&&p(e),L(r,t)}}}function se(t){var e;return{c(){(e=u("a")).innerHTML="
    Cluster
    ",m(e,"slot","title"),m(e,"href","https://every-layout.dev/layouts/cluster/"),m(e,"target","blank")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function ce(t){var e;return{c(){(e=u("ul")).innerHTML="
  • Content

  • Content

  • Content

  • Content

  • Content

  • ",v(e,"list-style","none")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function ie(t){var e,n,r=new V({props:{$$slots:{default:[ce]},$$scope:{ctx:t}}});return{c(){e=g(),r.$$.fragment.c()},m(t,$){d(t,e,$),E(r,t,$),n=!0},p(t,e){var n={};t.$$scope&&(n.$$scope={changed:t,ctx:e}),r.$set(n)},i(t){n||(M(r.$$.fragment,t),n=!0)},o(t){q(r.$$.fragment,t),n=!1},d(t){t&&p(e),L(r,t)}}}function ae(t){var e;return{c(){(e=u("a")).innerHTML="
    Sidebar
    ",m(e,"slot","title"),m(e,"href","https://every-layout.dev/layouts/sidebar/"),m(e,"target","blank")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function le(t){var e,n,r;return{c(){(e=u("p")).textContent="A",n=g(),(r=u("p")).textContent="B"},m(t,$){d(t,e,$),d(t,n,$),d(t,r,$)},d(t){t&&(p(e),p(n),p(r))}}}function de(t){var e,n=new qt({props:{splitAfter:"1",$$slots:{default:[le]},$$scope:{ctx:t}}});return{c(){n.$$.fragment.c()},m(t,r){E(n,t,r),e=!0},p(t,e){var r={};t.$$scope&&(r.$$scope={changed:t,ctx:e}),n.$set(r)},i(t){e||(M(n.$$.fragment,t),e=!0)},o(t){q(n.$$.fragment,t),e=!1},d(t){L(n,t)}}}function pe(t){var e,n,r=new F({props:{padding:"s-2",color:"white",$$slots:{default:[de]},$$scope:{ctx:t}}});return{c(){e=u("div"),r.$$.fragment.c(),m(e,"slot","sidebar")},m(t,$){d(t,e,$),E(r,e,null),n=!0},p(t,e){var n={};t.$$scope&&(n.$$scope={changed:t,ctx:e}),r.$set(n)},i(t){n||(M(r.$$.fragment,t),n=!0)},o(t){q(r.$$.fragment,t),n=!1},d(t){t&&p(e),L(r)}}}function ue(t){var e;return{c(){(e=u("p")).textContent="Main Content"},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function fe(t){var e,n,r=new F({props:{color:"white",$$slots:{default:[ue]},$$scope:{ctx:t}}});return{c(){e=u("div"),r.$$.fragment.c(),m(e,"slot","not-sidebar")},m(t,$){d(t,e,$),E(r,e,null),n=!0},p(t,e){var n={};t.$$scope&&(n.$$scope={changed:t,ctx:e}),r.$set(n)},i(t){n||(M(r.$$.fragment,t),n=!0)},o(t){q(r.$$.fragment,t),n=!1},d(t){t&&p(e),L(r)}}}function ge(e){var n;return{c(){n=g()},m(t,e){d(t,n,e)},p:t,i:t,o:t,d(t){t&&p(n)}}}function me(t){var e,n,r=new Ht({props:{$$slots:{default:[ge],"not-sidebar":[fe],sidebar:[pe]},$$scope:{ctx:t}}});return{c(){e=g(),r.$$.fragment.c()},m(t,$){d(t,e,$),E(r,t,$),n=!0},p(t,e){var n={};t.$$scope&&(n.$$scope={changed:t,ctx:e}),r.$set(n)},i(t){n||(M(r.$$.fragment,t),n=!0)},o(t){q(r.$$.fragment,t),n=!1},d(t){t&&p(e),L(r,t)}}}function ve(t){var e;return{c(){(e=u("a")).innerHTML="
    Switcher
    ",m(e,"slot","title"),m(e,"href","https://every-layout.dev/layouts/switcher/"),m(e,"target","blank")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function he(t){var e,n,r,$=new F({}),o=new F({}),s=new F({});return{c(){$.$$.fragment.c(),e=g(),o.$$.fragment.c(),n=g(),s.$$.fragment.c()},m(t,c){E($,t,c),d(t,e,c),E(o,t,c),d(t,n,c),E(s,t,c),r=!0},i(t){r||(M($.$$.fragment,t),M(o.$$.fragment,t),M(s.$$.fragment,t),r=!0)},o(t){q($.$$.fragment,t),q(o.$$.fragment,t),q(s.$$.fragment,t),r=!1},d(t){L($,t),t&&p(e),L(o,t),t&&p(n),L(s,t)}}}function be(t){var e,n,r=new jt({props:{minWidth:"13rem",$$slots:{default:[he]},$$scope:{ctx:t}}});return{c(){e=g(),r.$$.fragment.c()},m(t,$){d(t,e,$),E(r,t,$),n=!0},p(t,e){var n={};t.$$scope&&(n.$$scope={changed:t,ctx:e}),r.$set(n)},i(t){n||(M(r.$$.fragment,t),n=!0)},o(t){q(r.$$.fragment,t),n=!1},d(t){t&&p(e),L(r,t)}}}function xe(t){var e;return{c(){(e=u("a")).innerHTML="
    Cover
    ",m(e,"slot","title"),m(e,"href","https://every-layout.dev/layouts/cover/"),m(e,"target","blank")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function ye(e){var n,r,$=new F({props:{padding:"zero"}});return{c(){n=u("div"),$.$$.fragment.c(),m(n,"slot","above")},m(t,e){d(t,n,e),E($,n,null),r=!0},p:t,i(t){r||(M($.$$.fragment,t),r=!0)},o(t){q($.$$.fragment,t),r=!1},d(t){t&&p(n),L($)}}}function we(e){var n,r,$=new F({props:{padding:"zero"}});return{c(){n=u("div"),$.$$.fragment.c(),m(n,"slot","below")},m(t,e){d(t,n,e),E($,n,null),r=!0},p:t,i(t){r||(M($.$$.fragment,t),r=!0)},o(t){q($.$$.fragment,t),r=!1},d(t){t&&p(n),L($)}}}function _e(e){var n,r,$,o=new F({props:{padding:"s1"}});return{c(){n=g(),o.$$.fragment.c(),r=g()},m(t,e){d(t,n,e),E(o,t,e),d(t,r,e),$=!0},p:t,i(t){$||(M(o.$$.fragment,t),$=!0)},o(t){q(o.$$.fragment,t),$=!1},d(t){t&&p(n),L(o,t),t&&p(r)}}}function ke(t){var e,n,r=new ot({props:{minHeight:"10vh",$$slots:{default:[_e],below:[we],above:[ye]},$$scope:{ctx:t}}});return{c(){e=g(),r.$$.fragment.c()},m(t,$){d(t,e,$),E(r,t,$),n=!0},p(t,e){var n={};t.$$scope&&(n.$$scope={changed:t,ctx:e}),r.$set(n)},i(t){n||(M(r.$$.fragment,t),n=!0)},o(t){q(r.$$.fragment,t),n=!1},d(t){t&&p(e),L(r,t)}}}function We(t){var e;return{c(){(e=u("a")).innerHTML="
    Grid
    ",m(e,"slot","title"),m(e,"href","https://every-layout.dev/layouts/grid/"),m(e,"target","blank")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function Ce(t){var e;return{c(){e=f("X")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function Se(t){var e;return{c(){e=f("o")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function Te(t){var e;return{c(){e=f("o")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function Ae(t){var e;return{c(){e=f("o")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function He(t){var e;return{c(){e=f("X")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function Ie(t){var e;return{c(){e=f("o")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function Me(t){var e;return{c(){e=f("o")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function qe(t){var e;return{c(){e=f("o")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function Ee(t){var e;return{c(){e=f("X")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function Le(t){var e,n,r,$,o,s,c,i,a,l=new F({props:{padding:"s-3",color:"white",$$slots:{default:[Ce]},$$scope:{ctx:t}}}),u=new F({props:{padding:"s-3",color:"white",$$slots:{default:[Se]},$$scope:{ctx:t}}}),f=new F({props:{padding:"s-3",color:"white",$$slots:{default:[Te]},$$scope:{ctx:t}}}),m=new F({props:{padding:"s-3",color:"white",$$slots:{default:[Ae]},$$scope:{ctx:t}}}),v=new F({props:{padding:"s-3",color:"white",$$slots:{default:[He]},$$scope:{ctx:t}}}),h=new F({props:{padding:"s-3",color:"white",$$slots:{default:[Ie]},$$scope:{ctx:t}}}),b=new F({props:{padding:"s-3",color:"white",$$slots:{default:[Me]},$$scope:{ctx:t}}}),x=new F({props:{padding:"s-3",color:"white",$$slots:{default:[qe]},$$scope:{ctx:t}}}),y=new F({props:{padding:"s-3",color:"white",$$slots:{default:[Ee]},$$scope:{ctx:t}}});return{c(){l.$$.fragment.c(),e=g(),u.$$.fragment.c(),n=g(),f.$$.fragment.c(),r=g(),m.$$.fragment.c(),$=g(),v.$$.fragment.c(),o=g(),h.$$.fragment.c(),s=g(),b.$$.fragment.c(),c=g(),x.$$.fragment.c(),i=g(),y.$$.fragment.c()},m(t,p){E(l,t,p),d(t,e,p),E(u,t,p),d(t,n,p),E(f,t,p),d(t,r,p),E(m,t,p),d(t,$,p),E(v,t,p),d(t,o,p),E(h,t,p),d(t,s,p),E(b,t,p),d(t,c,p),E(x,t,p),d(t,i,p),E(y,t,p),a=!0},p(t,e){var n={};t.$$scope&&(n.$$scope={changed:t,ctx:e}),l.$set(n);var r={};t.$$scope&&(r.$$scope={changed:t,ctx:e}),u.$set(r);var $={};t.$$scope&&($.$$scope={changed:t,ctx:e}),f.$set($);var o={};t.$$scope&&(o.$$scope={changed:t,ctx:e}),m.$set(o);var s={};t.$$scope&&(s.$$scope={changed:t,ctx:e}),v.$set(s);var c={};t.$$scope&&(c.$$scope={changed:t,ctx:e}),h.$set(c);var i={};t.$$scope&&(i.$$scope={changed:t,ctx:e}),b.$set(i);var a={};t.$$scope&&(a.$$scope={changed:t,ctx:e}),x.$set(a);var d={};t.$$scope&&(d.$$scope={changed:t,ctx:e}),y.$set(d)},i(t){a||(M(l.$$.fragment,t),M(u.$$.fragment,t),M(f.$$.fragment,t),M(m.$$.fragment,t),M(v.$$.fragment,t),M(h.$$.fragment,t),M(b.$$.fragment,t),M(x.$$.fragment,t),M(y.$$.fragment,t),a=!0)},o(t){q(l.$$.fragment,t),q(u.$$.fragment,t),q(f.$$.fragment,t),q(m.$$.fragment,t),q(v.$$.fragment,t),q(h.$$.fragment,t),q(b.$$.fragment,t),q(x.$$.fragment,t),q(y.$$.fragment,t),a=!1},d(t){L(l,t),t&&p(e),L(u,t),t&&p(n),L(f,t),t&&p(r),L(m,t),t&&p($),L(v,t),t&&p(o),L(h,t),t&&p(s),L(b,t),t&&p(c),L(x,t),t&&p(i),L(y,t)}}}function je(t){var e,n,r,$=new dt({props:{minWidth:"s1",$$slots:{default:[Le]},$$scope:{ctx:t}}});return{c(){e=g(),n=u("div"),$.$$.fragment.c(),v(n,"min-width","8rem")},m(t,o){d(t,e,o),d(t,n,o),E($,n,null),r=!0},p(t,e){var n={};t.$$scope&&(n.$$scope={changed:t,ctx:e}),$.$set(n)},i(t){r||(M($.$$.fragment,t),r=!0)},o(t){q($.$$.fragment,t),r=!1},d(t){t&&(p(e),p(n)),L($)}}}function ze(t){var e;return{c(){(e=u("a")).innerHTML="
    Frame
    ",m(e,"slot","title"),m(e,"href","https://every-layout.dev/layouts/frame/"),m(e,"target","blank")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function Be(t){var e;return{c(){m(e=u("img"),"src","favicon.png"),m(e,"alt","favicon")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function Ne(t){var e,n=new it({props:{$$slots:{default:[Be]},$$scope:{ctx:t}}});return{c(){n.$$.fragment.c()},m(t,r){E(n,t,r),e=!0},p(t,e){var r={};t.$$scope&&(r.$$scope={changed:t,ctx:e}),n.$set(r)},i(t){e||(M(n.$$.fragment,t),e=!0)},o(t){q(n.$$.fragment,t),e=!1},d(t){L(n,t)}}}function Oe(t){var e,n,r=new F({props:{padding:"zero",$$slots:{default:[Ne]},$$scope:{ctx:t}}});return{c(){e=g(),r.$$.fragment.c()},m(t,$){d(t,e,$),E(r,t,$),n=!0},p(t,e){var n={};t.$$scope&&(n.$$scope={changed:t,ctx:e}),r.$set(n)},i(t){n||(M(r.$$.fragment,t),n=!0)},o(t){q(r.$$.fragment,t),n=!1},d(t){t&&p(e),L(r,t)}}}function Xe(t){var e;return{c(){(e=u("a")).innerHTML="
    Reel
    ",m(e,"slot","title"),m(e,"href","https://every-layout.dev/layouts/reel/"),m(e,"target","blank")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function Fe(t){var e,n,r,$,o,s,c,i,a,l,f,v,h,b,x,y,w,_,k;return{c(){e=u("img"),n=g(),r=u("img"),$=g(),o=u("img"),s=g(),c=u("img"),i=g(),a=u("img"),l=g(),f=u("img"),v=g(),h=u("img"),b=g(),x=u("img"),y=g(),w=u("img"),_=g(),k=u("img"),m(e,"src","favicon.png"),m(e,"alt","favicon"),m(r,"src","favicon.png"),m(r,"alt","favicon"),m(o,"src","favicon.png"),m(o,"alt","favicon"),m(c,"src","favicon.png"),m(c,"alt","favicon"),m(a,"src","favicon.png"),m(a,"alt","favicon"),m(f,"src","favicon.png"),m(f,"alt","favicon"),m(h,"src","favicon.png"),m(h,"alt","favicon"),m(x,"src","favicon.png"),m(x,"alt","favicon"),m(w,"src","favicon.png"),m(w,"alt","favicon"),m(k,"src","favicon.png"),m(k,"alt","favicon")},m(t,p){d(t,e,p),d(t,n,p),d(t,r,p),d(t,$,p),d(t,o,p),d(t,s,p),d(t,c,p),d(t,i,p),d(t,a,p),d(t,l,p),d(t,f,p),d(t,v,p),d(t,h,p),d(t,b,p),d(t,x,p),d(t,y,p),d(t,w,p),d(t,_,p),d(t,k,p)},d(t){t&&(p(e),p(n),p(r),p($),p(o),p(s),p(c),p(i),p(a),p(l),p(f),p(v),p(h),p(b),p(x),p(y),p(w),p(_),p(k))}}}function Ge(t){var e,n,r=new vt({props:{itemWidth:"s4",$$slots:{default:[Fe]},$$scope:{ctx:t}}});return{c(){e=u("div"),r.$$.fragment.c(),v(e,"max-width","12rem")},m(t,$){d(t,e,$),E(r,e,null),n=!0},p(t,e){var n={};t.$$scope&&(n.$$scope={changed:t,ctx:e}),r.$set(n)},i(t){n||(M(r.$$.fragment,t),n=!0)},o(t){q(r.$$.fragment,t),n=!1},d(t){t&&p(e),L(r)}}}function Pe(t){var e,n,r=new F({props:{padding:"zero",backgroundColor:"white",$$slots:{default:[Ge]},$$scope:{ctx:t}}});return{c(){e=g(),r.$$.fragment.c()},m(t,$){d(t,e,$),E(r,t,$),n=!0},p(t,e){var n={};t.$$scope&&(n.$$scope={changed:t,ctx:e}),r.$set(n)},i(t){n||(M(r.$$.fragment,t),n=!0)},o(t){q(r.$$.fragment,t),n=!1},d(t){t&&p(e),L(r,t)}}}function Re(t){var e;return{c(){(e=u("a")).innerHTML="
    Imposter
    ",m(e,"slot","title"),m(e,"href","https://absolutely.every-layout.dev/layouts/imposter/"),m(e,"target","blank")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function Ze(t){var e,n,r,$,o,s,c,i,a,l,f;return{c(){(e=u("p")).textContent="I'm infront!",n=g(),r=u("br"),$=g(),o=u("br"),s=g(),c=u("br"),i=g(),a=u("br"),l=g(),(f=u("p")).textContent="And scrollable!"},m(t,p){d(t,e,p),d(t,n,p),d(t,r,p),d(t,$,p),d(t,o,p),d(t,s,p),d(t,c,p),d(t,i,p),d(t,a,p),d(t,l,p),d(t,f,p)},d(t){t&&(p(e),p(n),p(r),p($),p(o),p(s),p(c),p(i),p(a),p(l),p(f))}}}function De(t){var e,n=new F({props:{color:"white",padding:"s-2",$$slots:{default:[Ze]},$$scope:{ctx:t}}});return{c(){n.$$.fragment.c()},m(t,r){E(n,t,r),e=!0},p(t,e){var r={};t.$$scope&&(r.$$scope={changed:t,ctx:e}),n.$set(r)},i(t){e||(M(n.$$.fragment,t),e=!0)},o(t){q(n.$$.fragment,t),e=!1},d(t){L(n,t)}}}function Je(t){var e,n,r,$,o=new ft({props:{$$slots:{default:[De]},$$scope:{ctx:t}}});return{c(){e=u("div"),(n=u("p")).textContent="Some obscured text. Some obscured text. Some obscured text. Some obscured text. Some obscured text.",r=g(),o.$$.fragment.c(),v(e,"max-width","12rem"),v(e,"position","relative")},m(t,s){d(t,e,s),l(e,n),l(e,r),E(o,e,null),$=!0},p(t,e){var n={};t.$$scope&&(n.$$scope={changed:t,ctx:e}),o.$set(n)},i(t){$||(M(o.$$.fragment,t),$=!0)},o(t){q(o.$$.fragment,t),$=!1},d(t){t&&p(e),L(o)}}}function Ke(t){var e,n,r=new F({props:{padding:"zero",backgroundColor:"white",$$slots:{default:[Je]},$$scope:{ctx:t}}});return{c(){e=g(),r.$$.fragment.c()},m(t,$){d(t,e,$),E(r,t,$),n=!0},p(t,e){var n={};t.$$scope&&(n.$$scope={changed:t,ctx:e}),r.$set(n)},i(t){n||(M(r.$$.fragment,t),n=!0)},o(t){q(r.$$.fragment,t),n=!1},d(t){t&&p(e),L(r,t)}}}function Qe(t){var e,n,r,$,o,s,c,i,a,l,u,f=new Rt({props:{$$slots:{default:[Qt],title:[Jt]},$$scope:{ctx:t}}}),m=new Rt({props:{$$slots:{default:[Vt],title:[Ut]},$$scope:{ctx:t}}}),v=new Rt({props:{$$slots:{default:[oe],title:[Yt]},$$scope:{ctx:t}}}),h=new Rt({props:{$$slots:{default:[ie],title:[se]},$$scope:{ctx:t}}}),b=new Rt({props:{$$slots:{default:[me],title:[ae]},$$scope:{ctx:t}}}),x=new Rt({props:{$$slots:{default:[be],title:[ve]},$$scope:{ctx:t}}}),y=new Rt({props:{$$slots:{default:[ke],title:[xe]},$$scope:{ctx:t}}}),w=new Rt({props:{$$slots:{default:[je],title:[We]},$$scope:{ctx:t}}}),_=new Rt({props:{$$slots:{default:[Oe],title:[ze]},$$scope:{ctx:t}}}),k=new Rt({props:{$$slots:{default:[Pe],title:[Xe]},$$scope:{ctx:t}}}),W=new Rt({props:{$$slots:{default:[Ke],title:[Re]},$$scope:{ctx:t}}});return{c(){f.$$.fragment.c(),e=g(),m.$$.fragment.c(),n=g(),v.$$.fragment.c(),r=g(),h.$$.fragment.c(),$=g(),b.$$.fragment.c(),o=g(),x.$$.fragment.c(),s=g(),y.$$.fragment.c(),c=g(),w.$$.fragment.c(),i=g(),_.$$.fragment.c(),a=g(),k.$$.fragment.c(),l=g(),W.$$.fragment.c()},m(t,p){E(f,t,p),d(t,e,p),E(m,t,p),d(t,n,p),E(v,t,p),d(t,r,p),E(h,t,p),d(t,$,p),E(b,t,p),d(t,o,p),E(x,t,p),d(t,s,p),E(y,t,p),d(t,c,p),E(w,t,p),d(t,i,p),E(_,t,p),d(t,a,p),E(k,t,p),d(t,l,p),E(W,t,p),u=!0},p(t,e){var n={};t.$$scope&&(n.$$scope={changed:t,ctx:e}),f.$set(n);var r={};t.$$scope&&(r.$$scope={changed:t,ctx:e}),m.$set(r);var $={};t.$$scope&&($.$$scope={changed:t,ctx:e}),v.$set($);var o={};t.$$scope&&(o.$$scope={changed:t,ctx:e}),h.$set(o);var s={};t.$$scope&&(s.$$scope={changed:t,ctx:e}),b.$set(s);var c={};t.$$scope&&(c.$$scope={changed:t,ctx:e}),x.$set(c);var i={};t.$$scope&&(i.$$scope={changed:t,ctx:e}),y.$set(i);var a={};t.$$scope&&(a.$$scope={changed:t,ctx:e}),w.$set(a);var l={};t.$$scope&&(l.$$scope={changed:t,ctx:e}),_.$set(l);var d={};t.$$scope&&(d.$$scope={changed:t,ctx:e}),k.$set(d);var p={};t.$$scope&&(p.$$scope={changed:t,ctx:e}),W.$set(p)},i(t){u||(M(f.$$.fragment,t),M(m.$$.fragment,t),M(v.$$.fragment,t),M(h.$$.fragment,t),M(b.$$.fragment,t),M(x.$$.fragment,t),M(y.$$.fragment,t),M(w.$$.fragment,t),M(_.$$.fragment,t),M(k.$$.fragment,t),M(W.$$.fragment,t),u=!0)},o(t){q(f.$$.fragment,t),q(m.$$.fragment,t),q(v.$$.fragment,t),q(h.$$.fragment,t),q(b.$$.fragment,t),q(x.$$.fragment,t),q(y.$$.fragment,t),q(w.$$.fragment,t),q(_.$$.fragment,t),q(k.$$.fragment,t),q(W.$$.fragment,t),u=!1},d(t){L(f,t),t&&p(e),L(m,t),t&&p(n),L(v,t),t&&p(r),L(h,t),t&&p($),L(b,t),t&&p(o),L(x,t),t&&p(s),L(y,t),t&&p(c),L(w,t),t&&p(i),L(_,t),t&&p(a),L(k,t),t&&p(l),L(W,t)}}}function Ue(t){var e;return{c(){(e=u("a")).innerHTML="

    Back to top

    ",m(e,"href","#top")},m(t,n){d(t,e,n)},d(t){t&&p(e)}}}function Ve(t){var e,n,r=new K({props:{$$slots:{default:[Ue]},$$scope:{ctx:t}}});return{c(){e=u("div"),r.$$.fragment.c(),m(e,"slot","below")},m(t,$){d(t,e,$),E(r,e,null),n=!0},p(t,e){var n={};t.$$scope&&(n.$$scope={changed:t,ctx:e}),r.$set(n)},i(t){n||(M(r.$$.fragment,t),n=!0)},o(t){q(r.$$.fragment,t),n=!1},d(t){t&&p(e),L(r)}}}function Ye(t){var e,n,r,$=new dt({props:{minWidth:"18rem",$$slots:{default:[Qe]},$$scope:{ctx:t}}});return{c(){e=g(),$.$$.fragment.c(),n=g()},m(t,o){d(t,e,o),E($,t,o),d(t,n,o),r=!0},p(t,e){var n={};t.$$scope&&(n.$$scope={changed:t,ctx:e}),$.$set(n)},i(t){r||(M($.$$.fragment,t),r=!0)},o(t){q($.$$.fragment,t),r=!1},d(t){t&&p(e),L($,t),t&&p(n)}}}function tn(t){var e,n=new ot({props:{$$slots:{default:[Ye],below:[Ve],above:[Dt]},$$scope:{ctx:t}}});return{c(){n.$$.fragment.c()},m(t,r){E(n,t,r),e=!0},p(t,e){var r={};t.$$scope&&(r.$$scope={changed:t,ctx:e}),n.$set(r)},i(t){e||(M(n.$$.fragment,t),e=!0)},o(t){q(n.$$.fragment,t),e=!1},d(t){L(n,t)}}}return new class extends B{constructor(t){super(),z(this,t,null,tn,s,[])}}({target:document.body,props:{name:"world"}})}(); 2 | //# sourceMappingURL=bundle.js.map 3 | -------------------------------------------------------------------------------- /docs/bundle.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"bundle.js","sources":["../node_modules/svelte/internal/index.mjs","../src/lib/helpers.js","../src/layout/Box.svelte","../src/layout/Bracket.svelte","../src/layout/Cluster.svelte","../src/layout/Cover.svelte","../src/layout/Frame.svelte","../src/layout/Grid.svelte","../src/layout/Imposter.svelte","../src/layout/Reel.svelte","../src/layout/Sidebar.svelte","../src/layout/Stack.svelte","../src/layout/Switcher.svelte","../src/main.js"],"sourcesContent":["function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction validate_store(store, name) {\n if (!store || typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, callback) {\n const unsub = store.subscribe(callback);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, fn) {\n return definition[1]\n ? assign({}, assign(ctx.$$scope.ctx, definition[1](fn ? fn(ctx) : {})))\n : ctx.$$scope.ctx;\n}\nfunction get_slot_changes(definition, ctx, changed, fn) {\n return definition[1]\n ? assign({}, assign(ctx.$$scope.changed || {}, definition[1](fn ? fn(changed) : {})))\n : ctx.$$scope.changed || {};\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\nfunction set_store_value(store, ret, value = ret) {\n store.set(value);\n return ret;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nlet running = false;\nfunction run_tasks() {\n tasks.forEach(task => {\n if (!task[0](now())) {\n tasks.delete(task);\n task[1]();\n }\n });\n running = tasks.size > 0;\n if (running)\n raf(run_tasks);\n}\nfunction clear_loops() {\n // for testing...\n tasks.forEach(task => tasks.delete(task));\n running = false;\n}\nfunction loop(fn) {\n let task;\n if (!running) {\n running = true;\n raf(run_tasks);\n }\n return {\n promise: new Promise(fulfil => {\n tasks.add(task = [fn, fulfil]);\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction element_is(name, is) {\n return document.createElement(name, { is });\n}\nfunction object_without_properties(obj, exclude) {\n // eslint-disable-next-line @typescript-eslint/no-object-literal-type-assertion\n const target = {};\n for (const k in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction self(fn) {\n return function (event) {\n // @ts-ignore\n if (event.target === this)\n fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n for (const key in attributes) {\n if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key in node) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_svg_attributes(node, attributes) {\n for (const key in attributes) {\n attr(node, key, attributes[key]);\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group) {\n const value = [];\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.push(group[i].__value);\n }\n return value;\n}\nfunction to_number(value) {\n return value === '' ? undefined : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_element(nodes, name, attributes, svg) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeName === name) {\n for (let j = 0; j < node.attributes.length; j += 1) {\n const attribute = node.attributes[j];\n if (!attributes[attribute.name])\n node.removeAttribute(attribute.name);\n }\n return nodes.splice(i, 1)[0]; // TODO strip unwanted attributes\n }\n }\n return svg ? svg_element(name) : element(name);\n}\nfunction claim_text(nodes, data) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 3) {\n node.data = '' + data;\n return nodes.splice(i, 1)[0];\n }\n }\n return text(data);\n}\nfunction claim_space(nodes) {\n return claim_text(nodes, ' ');\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.data !== data)\n text.data = data;\n}\nfunction set_input_value(input, value) {\n if (value != null || input.value) {\n input.value = value;\n }\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value, important) {\n node.style.setProperty(key, value, important ? 'important' : '');\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\nfunction add_resize_listener(element, fn) {\n if (getComputedStyle(element).position === 'static') {\n element.style.position = 'relative';\n }\n const object = document.createElement('object');\n object.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;');\n object.type = 'text/html';\n object.tabIndex = -1;\n let win;\n object.onload = () => {\n win = object.contentDocument.defaultView;\n win.addEventListener('resize', fn);\n };\n if (/Trident/.test(navigator.userAgent)) {\n element.appendChild(object);\n object.data = 'about:blank';\n }\n else {\n object.data = 'about:blank';\n element.appendChild(object);\n }\n return {\n cancel: () => {\n win && win.removeEventListener && win.removeEventListener('resize', fn);\n element.removeChild(object);\n }\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\nclass HtmlTag {\n constructor(html, anchor = null) {\n this.e = element('div');\n this.a = anchor;\n this.u(html);\n }\n m(target, anchor = null) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert(target, this.n[i], anchor);\n }\n this.t = target;\n }\n u(html) {\n this.e.innerHTML = html;\n this.n = Array.from(this.e.childNodes);\n }\n p(html) {\n this.d();\n this.u(html);\n this.m(this.t, this.a);\n }\n d() {\n this.n.forEach(detach);\n }\n}\n\nlet stylesheet;\nlet active = 0;\nlet current_rules = {};\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n if (!current_rules[name]) {\n if (!stylesheet) {\n const style = element('style');\n document.head.appendChild(style);\n stylesheet = style.sheet;\n }\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ``}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n node.style.animation = (node.style.animation || '')\n .split(', ')\n .filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n )\n .join(', ');\n if (name && !--active)\n clear_rules();\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n current_rules = {};\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error(`Function called outside component initialization`);\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = current_component;\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n callbacks.slice().forEach(fn => fn(event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nfunction flush() {\n const seen_callbacks = new Set();\n do {\n // first, call beforeUpdate functions\n // and update components\n while (dirty_components.length) {\n const component = dirty_components.shift();\n set_current_component(component);\n update(component.$$);\n }\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n callback();\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n}\nfunction update($$) {\n if ($$.fragment) {\n $$.update($$.dirty);\n run_all($$.before_update);\n $$.fragment.p($$.dirty, $$.ctx);\n $$.dirty = null;\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nconst null_transition = { duration: 0 };\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = key && { [key]: value };\n const child_ctx = assign(assign({}, info.ctx), info.resolved);\n const block = type && (info.current = type)(child_ctx);\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n info.blocks[i] = null;\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n flush();\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n }\n if (is_promise(promise)) {\n const current_component = get_current_component();\n promise.then(value => {\n set_current_component(current_component);\n update(info.then, 1, info.value, value);\n set_current_component(null);\n }, error => {\n set_current_component(current_component);\n update(info.catch, 2, info.error, error);\n set_current_component(null);\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = { [info.value]: promise };\n }\n}\n\nconst globals = (typeof window !== 'undefined' ? window : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, changed, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(changed, child_ctx);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction measure(blocks) {\n const rects = {};\n let i = blocks.length;\n while (i--)\n rects[blocks[i].key] = blocks[i].node.getBoundingClientRect();\n return rects;\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\nfunction get_spread_object(spread_props) {\n return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args) {\n const attributes = Object.assign({}, ...args);\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === undefined)\n return;\n if (value === true)\n str += \" \" + name;\n const escaped = String(value)\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\n str += \" \" + name + \"=\" + JSON.stringify(escaped);\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, options = {}) => {\n on_destroy = [];\n const result = { head: '', css: new Set() };\n const html = $$render(result, props, {}, options);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : ``;\n}\n\nfunction bind(component, name, callback) {\n if (component.$$.props.indexOf(name) === -1)\n return;\n component.$$.bound[name] = callback;\n callback(component.$$.ctx[name]);\n}\nfunction mount_component(component, target, anchor) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment.m(target, anchor);\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n if (component.$$.fragment) {\n run_all(component.$$.on_destroy);\n component.$$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n component.$$.on_destroy = component.$$.fragment = null;\n component.$$.ctx = {};\n }\n}\nfunction make_dirty(component, key) {\n if (!component.$$.dirty) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty = blank_object();\n }\n component.$$.dirty[key] = true;\n}\nfunction init(component, options, instance, create_fragment, not_equal, prop_names) {\n const parent_component = current_component;\n set_current_component(component);\n const props = options.props || {};\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props: prop_names,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : []),\n // everything else\n callbacks: blank_object(),\n dirty: null\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, props, (key, ret, value = ret) => {\n if ($$.ctx && not_equal($$.ctx[key], $$.ctx[key] = value)) {\n if ($$.bound[key])\n $$.bound[key](value);\n if (ready)\n make_dirty(component, key);\n }\n return ret;\n })\n : props;\n $$.update();\n ready = true;\n run_all($$.before_update);\n $$.fragment = create_fragment($$.ctx);\n if (options.target) {\n if (options.hydrate) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment.l(children(options.target));\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor);\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement !== 'undefined') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n };\n}\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n}\n\nfunction dispatch_dev(type, detail) {\n document.dispatchEvent(custom_event(type, detail));\n}\nfunction append_dev(target, node) {\n dispatch_dev(\"SvelteDOMInsert\", { target, node });\n append(target, node);\n}\nfunction insert_dev(target, node, anchor) {\n dispatch_dev(\"SvelteDOMInsert\", { target, node, anchor });\n insert(target, node, anchor);\n}\nfunction detach_dev(node) {\n dispatch_dev(\"SvelteDOMRemove\", { node });\n detach(node);\n}\nfunction detach_between_dev(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n detach_dev(before.nextSibling);\n }\n}\nfunction detach_before_dev(after) {\n while (after.previousSibling) {\n detach_dev(after.previousSibling);\n }\n}\nfunction detach_after_dev(before) {\n while (before.nextSibling) {\n detach_dev(before.nextSibling);\n }\n}\nfunction listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {\n const modifiers = options === true ? [\"capture\"] : options ? Array.from(Object.keys(options)) : [];\n if (has_prevent_default)\n modifiers.push('preventDefault');\n if (has_stop_propagation)\n modifiers.push('stopPropagation');\n dispatch_dev(\"SvelteDOMAddEventListener\", { node, event, handler, modifiers });\n const dispose = listen(node, event, handler, options);\n return () => {\n dispatch_dev(\"SvelteDOMRemoveEventListener\", { node, event, handler, modifiers });\n dispose();\n };\n}\nfunction attr_dev(node, attribute, value) {\n attr(node, attribute, value);\n if (value == null)\n dispatch_dev(\"SvelteDOMRemoveAttribute\", { node, attribute });\n else\n dispatch_dev(\"SvelteDOMSetAttribute\", { node, attribute, value });\n}\nfunction prop_dev(node, property, value) {\n node[property] = value;\n dispatch_dev(\"SvelteDOMSetProperty\", { node, property, value });\n}\nfunction dataset_dev(node, property, value) {\n node.dataset[property] = value;\n dispatch_dev(\"SvelteDOMSetDataset\", { node, property, value });\n}\nfunction set_data_dev(text, data) {\n data = '' + data;\n if (text.data === data)\n return;\n dispatch_dev(\"SvelteDOMSetData\", { node: text, data });\n text.data = data;\n}\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(`'target' is a required option`);\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn(`Component was already destroyed`); // eslint-disable-line no-console\n };\n }\n}\n\nexport { HtmlTag, SvelteComponent, SvelteComponentDev, SvelteElement, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, append_dev, assign, attr, attr_dev, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_element, claim_space, claim_text, clear_loops, component_subscribe, createEventDispatcher, create_animation, create_bidirectional_transition, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, dataset_dev, debug, destroy_block, destroy_component, destroy_each, detach, detach_after_dev, detach_before_dev, detach_between_dev, detach_dev, dirty_components, dispatch_dev, each, element, element_is, empty, escape, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_current_component, get_slot_changes, get_slot_context, get_spread_object, get_spread_update, get_store_value, globals, group_outros, handle_promise, identity, init, insert, insert_dev, intros, invalid_attribute_name_character, is_client, is_function, is_promise, listen, listen_dev, loop, measure, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, prop_dev, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, self, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_data_dev, set_input_type, set_input_value, set_now, set_raf, set_store_value, set_style, set_svg_attributes, space, spread, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_keyed_each, validate_component, validate_store, xlink_attr };\n","/**\n * Function to turn props of components into css variables or values.\n */\nfunction cssValue(...values) {\n return values.map(v => `var(--${sanitize(v)}, ${v})`).join(' ');\n}\n\n/**\n * Function to generate 'sanitized' Id.\n */\nfunction buildId(...values) {\n return values\n .map(v => typeof v === 'string' ? sanitize(v, '_') : String(v))\n .join('-');\n}\n\n/**\n * Function to get px value of variable or relative unit on DOM node.\n */\nfunction pxValue(node, value) {\n const style = node.style;\n const currentValue = style.width;\n\n style.width = cssValue(value);\n const pixels = getComputedStyle(node).width;\n style.width = currentValue;\n\n return pixels.replace('px', '');\n}\n\n/**\n * Function to make string CSS variable- and class-name compatible.\n */\nfunction sanitize(string, replacement = '') {\n return string.replace(/[^a-zA-Z0-9-_]/g, replacement);\n}\n\nexport { cssValue, buildId, pxValue }\n","\n\n\n\n
    \n \n \n
    \n","\n\n\n\n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n","\n\n\n\n
    \n \n \n
    \n","\n\n\n\n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n","\n\n\n\n
    \n \n
    \n","\n\n\n\n
    \n \n
    \n","\n\n\n\n
    \n \n
    ","\n\n\n\n
    \n \n
    \n","\n\n\n\n
    \n
    \n {#if sidebarIs === 'left'}\n
    \n \n
    \n
    \n \n
    \n {:else}\n
    \n \n
    \n
    \n \n
    \n {/if}\n
    \n
    \n","\n\n\n\n
    \n \n \n
    \n","\n\n\n\n
    \n
    \n \n
    \n
    ","import App from './App.svelte';\n\nconst app = new App({\n\ttarget: document.body,\n\tprops: {\n\t\tname: 'world'\n\t}\n});\n\nexport default app;"],"names":["noop","assign","tar","src","k","run","fn","blank_object","Object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","create_slot","definition","ctx","slot_ctx","get_slot_context","$$scope","get_slot_changes","changed","append","target","node","appendChild","insert","anchor","insertBefore","detach","parentNode","removeChild","element","name","document","createElement","text","data","createTextNode","space","attr","attribute","value","removeAttribute","setAttribute","set_style","key","important","style","setProperty","current_component","set_current_component","component","onMount","Error","get_current_component","$$","on_mount","push","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","Promise","resolve","update_scheduled","add_render_callback","flush","seen_callbacks","Set","length","shift","update","pop","i","callback","has","add","fragment","dirty","before_update","p","after_update","outroing","outros","transition_in","block","local","delete","transition_out","o","c","d","mount_component","on_destroy","m","new_on_destroy","map","filter","destroy_component","detaching","make_dirty","then","init","options","instance","create_fragment","not_equal","prop_names","parent_component","props","bound","context","Map","callbacks","ready","ret","hydrate","l","Array","from","childNodes","intro","SvelteComponent","[object Object]","this","$destroy","type","index","indexOf","splice","cssValue","values","v","string","replacement","replace","sanitize","join","box","padding","color","backgroundColor","borderWidth","borderStyle","borderColor","border","outline","outlineOffset","bracket","left","center","right","gap","maxWidth","centerText","centerItems","marginRight","marginLeft","textAlign","alignItems","cluster","justifyContent","querySelectorAll","e","margin","cover","above","below","minHeight","marginBottom","marginTop","frame","ratio","paddingBottom","n","split","grid","minWidth","gridGap","gridTemplateColumns","imposter","fixed","breakout","position","maxHeight","reel","height","itemWidth","flex","sidebarIs","r","withSidebar","notSidebar","sidebar","sideWidth","contentMinWidth","flexBasis","stack","recursive","splitAfter","switcher","limit","body"],"mappings":"gCAAA,SAASA,KAET,SAASC,EAAOC,EAAKC,GAEjB,IAAK,MAAMC,KAAKD,EACZD,EAAIE,GAAKD,EAAIC,GACjB,OAAOF,EAUX,SAASG,EAAIC,GACT,OAAOA,IAEX,SAASC,IACL,OAAOC,OAAOC,OAAO,MAEzB,SAASC,EAAQC,GACbA,EAAIC,QAAQP,GAEhB,SAASQ,EAAYC,GACjB,MAAwB,mBAAVA,EAElB,SAASC,EAAeC,EAAGC,GACvB,OAAOD,GAAKA,EAAIC,GAAKA,EAAID,IAAMC,GAAOD,GAAkB,iBAANA,GAAgC,mBAANA,EAsBhF,SAASE,EAAYC,EAAYC,EAAKd,GAClC,GAAIa,EAAY,CACZ,MAAME,EAAWC,EAAiBH,EAAYC,EAAKd,GACnD,OAAOa,EAAW,GAAGE,IAG7B,SAASC,EAAiBH,EAAYC,EAAKd,GACvC,OAAOa,EAAW,GACZlB,EAAO,GAAIA,EAAOmB,EAAIG,QAAQH,IAAKD,EAAW,GAAGb,EAAKA,EAAGc,GAAO,MAChEA,EAAIG,QAAQH,IAEtB,SAASI,EAAiBL,EAAYC,EAAKK,EAASnB,GAChD,OAAOa,EAAW,GACZlB,EAAO,GAAIA,EAAOmB,EAAIG,QAAQE,SAAW,GAAIN,EAAW,GAAGb,EAAKA,EAAGmB,GAAW,MAC9EL,EAAIG,QAAQE,SAAW,GAyEjC,SAASC,EAAOC,EAAQC,GACpBD,EAAOE,YAAYD,GAEvB,SAASE,EAAOH,EAAQC,EAAMG,GAC1BJ,EAAOK,aAAaJ,EAAMG,GAAU,MAExC,SAASE,EAAOL,GACZA,EAAKM,WAAWC,YAAYP,GAQhC,SAASQ,EAAQC,GACb,OAAOC,SAASC,cAAcF,GAqBlC,SAASG,EAAKC,GACV,OAAOH,SAASI,eAAeD,G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QAAQ6J,GAAKA,EAAErH,MAAMsJ,UAAY,k7qBClBtC,oEAAQ,CACnB/K,OAAQW,SAAS0K,KACjB7F,MAAO,CACN9E,KAAM"} -------------------------------------------------------------------------------- /docs/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SilvanCodes/svelte-layout-components/ffa13f50964a56accb9fc78003adbdf3c8872669/docs/favicon.png -------------------------------------------------------------------------------- /docs/fonts/Bevan-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SilvanCodes/svelte-layout-components/ffa13f50964a56accb9fc78003adbdf3c8872669/docs/fonts/Bevan-Regular.ttf -------------------------------------------------------------------------------- /docs/fonts/JosefinSlab-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SilvanCodes/svelte-layout-components/ffa13f50964a56accb9fc78003adbdf3c8872669/docs/fonts/JosefinSlab-Bold.ttf -------------------------------------------------------------------------------- /docs/fonts/JosefinSlab-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SilvanCodes/svelte-layout-components/ffa13f50964a56accb9fc78003adbdf3c8872669/docs/fonts/JosefinSlab-BoldItalic.ttf -------------------------------------------------------------------------------- /docs/fonts/JosefinSlab-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SilvanCodes/svelte-layout-components/ffa13f50964a56accb9fc78003adbdf3c8872669/docs/fonts/JosefinSlab-Light.ttf -------------------------------------------------------------------------------- /docs/fonts/JosefinSlab-LightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SilvanCodes/svelte-layout-components/ffa13f50964a56accb9fc78003adbdf3c8872669/docs/fonts/JosefinSlab-LightItalic.ttf -------------------------------------------------------------------------------- /docs/fonts/JosefinSlab-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SilvanCodes/svelte-layout-components/ffa13f50964a56accb9fc78003adbdf3c8872669/docs/fonts/JosefinSlab-Regular.ttf -------------------------------------------------------------------------------- /docs/fonts/JosefinSlab-RegularItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SilvanCodes/svelte-layout-components/ffa13f50964a56accb9fc78003adbdf3c8872669/docs/fonts/JosefinSlab-RegularItalic.ttf -------------------------------------------------------------------------------- /docs/fonts/JosefinSlab-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SilvanCodes/svelte-layout-components/ffa13f50964a56accb9fc78003adbdf3c8872669/docs/fonts/JosefinSlab-SemiBold.ttf -------------------------------------------------------------------------------- /docs/fonts/JosefinSlab-SemiBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SilvanCodes/svelte-layout-components/ffa13f50964a56accb9fc78003adbdf3c8872669/docs/fonts/JosefinSlab-SemiBoldItalic.ttf -------------------------------------------------------------------------------- /docs/fonts/JosefinSlab-Thin.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SilvanCodes/svelte-layout-components/ffa13f50964a56accb9fc78003adbdf3c8872669/docs/fonts/JosefinSlab-Thin.ttf -------------------------------------------------------------------------------- /docs/fonts/JosefinSlab-ThinItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SilvanCodes/svelte-layout-components/ffa13f50964a56accb9fc78003adbdf3c8872669/docs/fonts/JosefinSlab-ThinItalic.ttf -------------------------------------------------------------------------------- /docs/fonts/OFL.txt: -------------------------------------------------------------------------------- 1 | Copyright 2016 The Bevan Project Authors (www.sansoxygen.com) 2 | 3 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 4 | This license is copied below, and is also available with a FAQ at: 5 | http://scripts.sil.org/OFL 6 | 7 | 8 | ----------------------------------------------------------- 9 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 10 | ----------------------------------------------------------- 11 | 12 | PREAMBLE 13 | The goals of the Open Font License (OFL) are to stimulate worldwide 14 | development of collaborative font projects, to support the font creation 15 | efforts of academic and linguistic communities, and to provide a free and 16 | open framework in which fonts may be shared and improved in partnership 17 | with others. 18 | 19 | The OFL allows the licensed fonts to be used, studied, modified and 20 | redistributed freely as long as they are not sold by themselves. The 21 | fonts, including any derivative works, can be bundled, embedded, 22 | redistributed and/or sold with any software provided that any reserved 23 | names are not used by derivative works. The fonts and derivatives, 24 | however, cannot be released under any other type of license. The 25 | requirement for fonts to remain under this license does not apply 26 | to any document created using the fonts or their derivatives. 27 | 28 | DEFINITIONS 29 | "Font Software" refers to the set of files released by the Copyright 30 | Holder(s) under this license and clearly marked as such. This may 31 | include source files, build scripts and documentation. 32 | 33 | "Reserved Font Name" refers to any names specified as such after the 34 | copyright statement(s). 35 | 36 | "Original Version" refers to the collection of Font Software components as 37 | distributed by the Copyright Holder(s). 38 | 39 | "Modified Version" refers to any derivative made by adding to, deleting, 40 | or substituting -- in part or in whole -- any of the components of the 41 | Original Version, by changing formats or by porting the Font Software to a 42 | new environment. 43 | 44 | "Author" refers to any designer, engineer, programmer, technical 45 | writer or other person who contributed to the Font Software. 46 | 47 | PERMISSION & CONDITIONS 48 | Permission is hereby granted, free of charge, to any person obtaining 49 | a copy of the Font Software, to use, study, copy, merge, embed, modify, 50 | redistribute, and sell modified and unmodified copies of the Font 51 | Software, subject to the following conditions: 52 | 53 | 1) Neither the Font Software nor any of its individual components, 54 | in Original or Modified Versions, may be sold by itself. 55 | 56 | 2) Original or Modified Versions of the Font Software may be bundled, 57 | redistributed and/or sold with any software, provided that each copy 58 | contains the above copyright notice and this license. These can be 59 | included either as stand-alone text files, human-readable headers or 60 | in the appropriate machine-readable metadata fields within text or 61 | binary files as long as those fields can be easily viewed by the user. 62 | 63 | 3) No Modified Version of the Font Software may use the Reserved Font 64 | Name(s) unless explicit written permission is granted by the corresponding 65 | Copyright Holder. This restriction only applies to the primary font name as 66 | presented to the users. 67 | 68 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font 69 | Software shall not be used to promote, endorse or advertise any 70 | Modified Version, except to acknowledge the contribution(s) of the 71 | Copyright Holder(s) and the Author(s) or with their explicit written 72 | permission. 73 | 74 | 5) The Font Software, modified or unmodified, in part or in whole, 75 | must be distributed entirely under this license, and must not be 76 | distributed under any other license. The requirement for fonts to 77 | remain under this license does not apply to any document created 78 | using the Font Software. 79 | 80 | TERMINATION 81 | This license becomes null and void if any of the above conditions are 82 | not met. 83 | 84 | DISCLAIMER 85 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 86 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF 87 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 88 | OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE 89 | COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 90 | INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL 91 | DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 92 | FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM 93 | OTHER DEALINGS IN THE FONT SOFTWARE. 94 | -------------------------------------------------------------------------------- /docs/global.css: -------------------------------------------------------------------------------- 1 | :root { 2 | /* ratios for maintaining visual consistency */ 3 | --ratio: 1.55; 4 | --s-5: calc(var(--s-4) / var(--ratio)); 5 | --s-4: calc(var(--s-3) / var(--ratio)); 6 | --s-3: calc(var(--s-2) / var(--ratio)); 7 | --s-2: calc(var(--s-1) / var(--ratio)); 8 | --s-1: calc(var(--s0) / var(--ratio)); 9 | --s0: 1rem; 10 | --s1: calc(var(--s0) * var(--ratio)); 11 | --s2: calc(var(--s1) * var(--ratio)); 12 | --s3: calc(var(--s2) * var(--ratio)); 13 | --s4: calc(var(--s3) * var(--ratio)); 14 | --s5: calc(var(--s4) * var(--ratio)); 15 | 16 | /* zero value*/ 17 | --zero: 0; 18 | 19 | /* measure width */ 20 | --measure: 60ch; 21 | 22 | /* color scheme from colorsuplyyy */ 23 | --color-primary: #8EE3C8; 24 | --color-secondary: #6DCAE2; 25 | --color-ternary: #ff4a12; 26 | 27 | /* border widths */ 28 | --border-thin: var(--s-4); 29 | --border-medium: var(--s-2); 30 | --border-thick: var(--s-1); 31 | } 32 | 33 | * { 34 | /* in general calculate from border-box */ 35 | box-sizing: border-box; 36 | 37 | /* cap max-with for visual elements */ 38 | max-width: var(--measure); 39 | 40 | /* clear default padding and margin*/ 41 | margin: 0; 42 | padding: 0; 43 | } 44 | 45 | /* logical exceptions from measure rule */ 46 | html, 47 | body, 48 | div, 49 | header, 50 | nav, 51 | main, 52 | footer, 53 | img, 54 | video { 55 | max-width: none; 56 | } 57 | 58 | html, body, main { 59 | height: 100%; 60 | } 61 | 62 | @font-face { 63 | font-family: Bevan; 64 | src: url(fonts/Bevan-Regular.ttf); 65 | } 66 | 67 | h1, h2, h3, h4, h5 { 68 | font-family: Bevan; 69 | font-size: var(--s1); 70 | } 71 | 72 | @font-face { 73 | font-family: JosefinSlab; 74 | src: url(fonts/JosefinSlab-Regular.ttf); 75 | } 76 | 77 | @font-face { 78 | font-family: JosefinSlab; 79 | src: url(fonts/JosefinSlab-Bold.ttf); 80 | font-weight: bold; 81 | } 82 | 83 | p { 84 | font-family: JosefinSlab; 85 | font-size: var(--s1); 86 | } 87 | 88 | a { 89 | color: var(--color-secondary); 90 | cursor: pointer; 91 | } -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Svelte-EveryLayout 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "svelte-app", 3 | "version": "1.0.0", 4 | "devDependencies": { 5 | "npm-run-all": "^4.1.5", 6 | "rollup": "^1.21.4", 7 | "rollup-plugin-commonjs": "^9.3.4", 8 | "rollup-plugin-livereload": "^1.0.0", 9 | "rollup-plugin-node-resolve": "^4.2.3", 10 | "rollup-plugin-svelte": "^5.0.3", 11 | "rollup-plugin-terser": "^4.0.4", 12 | "svelte": "^3.12.1" 13 | }, 14 | "dependencies": { 15 | "sirv-cli": "^0.4.4" 16 | }, 17 | "scripts": { 18 | "build": "rollup -c", 19 | "autobuild": "rollup -c -w", 20 | "dev": "run-p start:dev autobuild", 21 | "start": "sirv docs --single", 22 | "start:dev": "sirv docs --single --dev", 23 | "deploy": "npm run build && git add docs/ && git commit -m 'Update build' && git push" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- 1 | import svelte from 'rollup-plugin-svelte'; 2 | import resolve from 'rollup-plugin-node-resolve'; 3 | import commonjs from 'rollup-plugin-commonjs'; 4 | import livereload from 'rollup-plugin-livereload'; 5 | import { terser } from 'rollup-plugin-terser'; 6 | 7 | const production = !process.env.ROLLUP_WATCH; 8 | 9 | export default { 10 | input: 'src/main.js', 11 | output: { 12 | sourcemap: true, 13 | format: 'iife', 14 | name: 'app', 15 | file: 'docs/bundle.js' 16 | }, 17 | plugins: [ 18 | svelte({ 19 | // enable run-time checks when not in production 20 | dev: !production, 21 | // we'll extract any component CSS out into 22 | // a separate file — better for performance 23 | css: css => { 24 | css.write('docs/bundle.css'); 25 | } 26 | }), 27 | 28 | // If you have external dependencies installed from 29 | // npm, you'll most likely need these plugins. In 30 | // some cases you'll need additional configuration — 31 | // consult the documentation for details: 32 | // https://github.com/rollup/rollup-plugin-commonjs 33 | resolve({ browser: true }), 34 | commonjs(), 35 | 36 | // Watch the `docs` directory and refresh the 37 | // browser on changes when not in production 38 | !production && livereload('docs'), 39 | 40 | // If we're building for production (npm run build 41 | // instead of npm run dev), minify 42 | production && terser() 43 | ], 44 | watch: { 45 | clearScreen: false 46 | } 47 | }; 48 | -------------------------------------------------------------------------------- /src/App.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 11 | 12 | 13 |
    14 | 15 |

    EveryLayout in Svelte

    16 |
    17 |
    18 | 19 | 20 | 21 |
    Stack
    22 | 23 |
      24 |
    • some

    • 25 |
    • equally

    • 26 |
    • spaced

    • 27 |
    • content

    • 28 |
    29 |
    30 |
    31 | 32 | 33 |
    Box
    34 | 35 |
    36 | 37 | 38 |
    Bracket
    39 | 40 |
    41 | 42 |
    43 |
    44 |
    45 | 46 |
    47 | 48 |
    49 |
    50 |
    51 |
    52 |
    53 | 54 | 55 |
    Cluster
    56 | 57 |
      58 |
    • Content

    • 59 |
    • Content

    • 60 |
    • Content

    • 61 |
    • Content

    • 62 |
    • Content

    • 63 |
    64 |
    65 |
    66 | 67 | 68 |
    Sidebar
    69 | 70 |
    71 | 72 | 73 |

    A

    74 |

    B

    75 |
    76 |
    77 |
    78 |
    79 | 80 |

    Main Content

    81 |
    82 |
    83 |
    84 |
    85 | 86 | 87 |
    Switcher
    88 | 89 | 90 | 91 | 92 | 93 |
    94 | 95 | 96 |
    Cover
    97 | 98 |
    99 | 100 |
    101 | 102 |
    103 | 104 |
    105 |
    106 |
    107 | 108 | 109 |
    Grid
    110 |
    111 | 112 | X 113 | o 114 | o 115 | o 116 | X 117 | o 118 | o 119 | o 120 | X 121 | 122 |
    123 |
    124 | 125 | 126 |
    Frame
    127 | 128 | 129 | favicon 130 | 131 | 132 |
    133 | 134 | 135 |
    Reel
    136 | 137 |
    138 | 139 | favicon 140 | favicon 141 | favicon 142 | favicon 143 | favicon 144 | favicon 145 | favicon 146 | favicon 147 | favicon 148 | favicon 149 | 150 |
    151 |
    152 |
    153 | 154 | 155 |
    Imposter
    156 | 157 |
    158 |

    Some obscured text. Some obscured text. Some obscured text. Some obscured text. Some obscured text.

    159 | 160 | 161 |

    I'm infront!

    162 |
    163 |
    164 |
    165 |
    166 |

    And scrollable!

    167 |
    168 |
    169 |
    170 |
    171 |
    172 |
    173 |
    174 | 175 |

    Back to top

    176 |
    177 |
    178 |
    179 | -------------------------------------------------------------------------------- /src/Presentation.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 |
    9 | 10 |
    11 | 12 |
    13 |
    14 |
    -------------------------------------------------------------------------------- /src/layout/Box.svelte: -------------------------------------------------------------------------------- 1 | 27 | 28 | 33 | 34 |
    35 | 36 | 37 |
    38 | -------------------------------------------------------------------------------- /src/layout/Bracket.svelte: -------------------------------------------------------------------------------- 1 | 27 | 28 | 46 | 47 |
    48 |
    49 | 50 |
    51 |
    52 | 53 |
    54 |
    55 | 56 |
    57 |
    58 | -------------------------------------------------------------------------------- /src/layout/Cluster.svelte: -------------------------------------------------------------------------------- 1 | 20 | 21 | 31 | 32 |
    33 | 34 | 35 |
    36 | -------------------------------------------------------------------------------- /src/layout/Cover.svelte: -------------------------------------------------------------------------------- 1 | 22 | 23 | 42 | 43 |
    44 |
    45 | 46 |
    47 |
    48 | 49 |
    50 |
    51 | 52 |
    53 |
    54 | -------------------------------------------------------------------------------- /src/layout/Frame.svelte: -------------------------------------------------------------------------------- 1 | 14 | 15 | 38 | 39 |
    40 | 41 |
    42 | -------------------------------------------------------------------------------- /src/layout/Grid.svelte: -------------------------------------------------------------------------------- 1 | 15 | 16 | 21 | 22 |
    23 | 24 |
    25 | -------------------------------------------------------------------------------- /src/layout/Imposter.svelte: -------------------------------------------------------------------------------- 1 | 20 | 21 | 30 | 31 |
    32 | 33 |
    -------------------------------------------------------------------------------- /src/layout/Reel.svelte: -------------------------------------------------------------------------------- 1 | 17 | 18 | 31 | 32 |
    33 | 34 |
    35 | -------------------------------------------------------------------------------- /src/layout/Sidebar.svelte: -------------------------------------------------------------------------------- 1 | 28 | 29 | 49 | 50 |
    51 |
    52 | {#if sidebarIs === 'left'} 53 | 56 |
    57 | 58 |
    59 | {:else} 60 |
    61 | 62 |
    63 | 66 | {/if} 67 |
    68 |
    69 | -------------------------------------------------------------------------------- /src/layout/Stack.svelte: -------------------------------------------------------------------------------- 1 | 24 | 25 | 37 | 38 |
    39 | 40 | 41 |
    42 | -------------------------------------------------------------------------------- /src/layout/Switcher.svelte: -------------------------------------------------------------------------------- 1 | 25 | 26 | 37 | 38 |
    39 |
    40 | 41 |
    42 |
    -------------------------------------------------------------------------------- /src/layout/index.js: -------------------------------------------------------------------------------- 1 | import Box from './Box.svelte'; 2 | import Bracket from './Bracket.svelte'; 3 | import Cluster from './Cluster.svelte'; 4 | import Cover from './Cover.svelte'; 5 | import Frame from './Frame.svelte'; 6 | import Grid from './Grid.svelte'; 7 | import Imposter from './Imposter.svelte'; 8 | import Reel from './Reel.svelte'; 9 | import Sidebar from './Sidebar.svelte'; 10 | import Stack from './Stack.svelte'; 11 | import Switcher from './Switcher.svelte'; 12 | 13 | export { Box, Bracket, Cluster, Cover, Frame, Grid, Imposter, Reel, Sidebar, Stack, Switcher }; 14 | -------------------------------------------------------------------------------- /src/lib/helpers.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Function to turn props of components into css variables or values. 3 | */ 4 | function cssValue(...values) { 5 | return values.map(v => `var(--${sanitize(v)}, ${v})`).join(' '); 6 | } 7 | 8 | /** 9 | * Function to generate 'sanitized' Id. 10 | */ 11 | function buildId(...values) { 12 | return values 13 | .map(v => typeof v === 'string' ? sanitize(v, '_') : String(v)) 14 | .join('-'); 15 | } 16 | 17 | /** 18 | * Function to get px value of variable or relative unit on DOM node. 19 | */ 20 | function pxValue(node, value) { 21 | const style = node.style; 22 | const currentValue = style.width; 23 | 24 | style.width = cssValue(value); 25 | const pixels = getComputedStyle(node).width; 26 | style.width = currentValue; 27 | 28 | return pixels.replace('px', ''); 29 | } 30 | 31 | /** 32 | * Function to make string CSS variable- and class-name compatible. 33 | */ 34 | function sanitize(string, replacement = '') { 35 | return string.replace(/[^a-zA-Z0-9-_]/g, replacement); 36 | } 37 | 38 | export { cssValue, buildId, pxValue } 39 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import App from './App.svelte'; 2 | 3 | const app = new App({ 4 | target: document.body, 5 | props: { 6 | name: 'world' 7 | } 8 | }); 9 | 10 | export default app; --------------------------------------------------------------------------------