commit c8291e66ac3e5089496b12c530a360692437c483 Author: Jane Petrovna Date: Wed Sep 22 19:08:53 2021 -0400 split todo backend and frontend diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d6e19f5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,138 @@ +# ---> Node +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +/public/build/ + +.DS_Store + + +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env +.env.test + +# parcel-bundler cache (https://parceljs.org/) +.cache +.parcel-cache + +# Next.js build output +.next +out + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test +.vscode/ + +# yarn v2 +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* + +static/ + +.idea + +elm-stuff/ + +yarn.lock +pnpm-lock.yaml +backend/config.json + +*.pem +.env +test_coverage/ +target/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..3475354 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +ANTI-CAPITALIST SOFTWARE LICENSE (v 1.4) + +Copyright © 2021 Jane Petrovna (jane@j4.pm) + +This is anti-capitalist software, released for free use by individuals and organizations that do not operate by capitalist principles. + +Permission is hereby granted, free of charge, to any person or organization (the "User") obtaining a copy of this software and associated documentation files (the "Software"), to use, copy, modify, merge, distribute, and/or sell copies of the Software, subject to the following conditions: + +1. The above copyright notice and this permission notice shall be included in all copies or modified versions of the Software. + +2. The User is one of the following: +a. An individual person, laboring for themselves +b. A non-profit organization +c. An educational institution +d. An organization that seeks shared profit for all of its members, and allows non-members to set the cost of their labor + +3. If the User is an organization with owners, then all owners are workers and all workers are owners with equal equity and/or equal vote. + +4. If the User is an organization, then the User is not law enforcement or military, or working for or under either. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..82510ca --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ +# create-svelte + +Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte); + +## Creating a project + +If you're seeing this, you've probably already done this step. Congrats! + +```bash +# create a new project in the current directory +npm init svelte@next + +# create a new project in my-app +npm init svelte@next my-app +``` + +> Note: the `@next` is temporary + +## Developing + +Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: + +```bash +npm run dev + +# or start the server and open the app in a new browser tab +npm run dev -- --open +``` + +## Building + +Before creating a production version of your app, install an [adapter](https://kit.svelte.dev/docs#adapters) for your target environment. Then: + +```bash +npm run build +``` + +> You can preview the built app with `npm run preview`, regardless of whether you installed an adapter. This should _not_ be used to serve your app in production. diff --git a/__sapper__/build/build.json b/__sapper__/build/build.json new file mode 100644 index 0000000..794bb06 --- /dev/null +++ b/__sapper__/build/build.json @@ -0,0 +1,36 @@ +{ + "bundler": "rollup", + "shimport": "2.0.4", + "assets": { + "main": "client.5cc55ff9.js" + }, + "css": { + "main": [ + "client-e118e612.css" + ] + }, + "dependencies": { + "index.svelte": [ + "index.8bfcf5b6.js", + "inject_styles.5607aec6.js", + "index-39716d32.css" + ], + "about.svelte": [ + "about.73514586.js", + "inject_styles.5607aec6.js" + ], + "blog/index.svelte": [ + "index.4fac54ba.js", + "inject_styles.5607aec6.js", + "index-7ed37c94.css" + ], + "blog/[slug].svelte": [ + "[slug].efe166d1.js", + "inject_styles.5607aec6.js", + "[slug]-5bc8f95f.css" + ] + }, + "legacy_assets": { + "main": "client.0725e74f.js" + } +} \ No newline at end of file diff --git a/__sapper__/build/client/465898c830bb9d2c.jpg b/__sapper__/build/client/465898c830bb9d2c.jpg new file mode 100644 index 0000000..5ad19cc Binary files /dev/null and b/__sapper__/build/client/465898c830bb9d2c.jpg differ diff --git a/__sapper__/build/client/[slug]-5bc8f95f.css b/__sapper__/build/client/[slug]-5bc8f95f.css new file mode 100644 index 0000000..7255deb --- /dev/null +++ b/__sapper__/build/client/[slug]-5bc8f95f.css @@ -0,0 +1 @@ +.content.svelte-emm3f3 h2{font-size:1.4em;font-weight:500}.content.svelte-emm3f3 pre{background-color:#f9f9f9;box-shadow:inset 1px 1px 5px rgba(0, 0, 0, 0.05);padding:0.5em;border-radius:2px;overflow-x:auto}.content.svelte-emm3f3 pre code{background-color:transparent;padding:0}.content.svelte-emm3f3 ul{line-height:1.5}.content.svelte-emm3f3 li{margin:0 0 0.5em 0} diff --git a/__sapper__/build/client/[slug].efe166d1.js b/__sapper__/build/client/[slug].efe166d1.js new file mode 100644 index 0000000..043c880 --- /dev/null +++ b/__sapper__/build/client/[slug].efe166d1.js @@ -0,0 +1 @@ +import{S as t,i as s,s as a,a as e,e as n,t as o,q as i,d as c,c as l,b as r,f as h,g as u,h as f,k as m,l as d,m as p,n as v}from"./client.5cc55ff9.js";function g(t){let s,a,g,j,E,H,$=t[0].title+"",b=t[0].html+"";return document.title=s=t[0].title,{c(){a=e(),g=n("h1"),j=o($),E=e(),H=n("div"),this.h()},l(t){i('[data-svelte="svelte-1uty71u"]',document.head).forEach(c),a=l(t),g=r(t,"H1",{});var s=h(g);j=u(s,$),s.forEach(c),E=l(t),H=r(t,"DIV",{class:!0}),h(H).forEach(c),this.h()},h(){f(H,"class","content svelte-emm3f3")},m(t,s){m(t,a,s),m(t,g,s),d(g,j),m(t,E,s),m(t,H,s),H.innerHTML=b},p(t,[a]){1&a&&s!==(s=t[0].title)&&(document.title=s),1&a&&$!==($=t[0].title+"")&&p(j,$),1&a&&b!==(b=t[0].html+"")&&(H.innerHTML=b)},i:v,o:v,d(t){t&&c(a),t&&c(g),t&&c(E),t&&c(H)}}}async function j({params:t}){const s=await this.fetch(`blog/${t.slug}.json`),a=await s.json();if(200===s.status)return{post:a};this.error(s.status,a.message)}function E(t,s,a){let{post:e}=s;return t.$$set=t=>{"post"in t&&a(0,e=t.post)},[e]}class H extends t{constructor(t){super(),s(this,t,E,g,a,{post:0})}}export{H as default,j as preload}; diff --git a/__sapper__/build/client/about.73514586.js b/__sapper__/build/client/about.73514586.js new file mode 100644 index 0000000..249e638 --- /dev/null +++ b/__sapper__/build/client/about.73514586.js @@ -0,0 +1 @@ +import{S as s,i as t,s as e,a,e as h,t as o,q as i,d as r,c,b as u,f as n,g as l,k as f,l as d,n as m}from"./client.5cc55ff9.js";function p(s){let t,e,p,b,v,T;return{c(){t=a(),e=h("h1"),p=o("About this site"),b=a(),v=h("p"),T=o("This is the 'about' page. There's not much here."),this.h()},l(s){i('[data-svelte="svelte-1ine71f"]',document.head).forEach(r),t=c(s),e=u(s,"H1",{});var a=n(e);p=l(a,"About this site"),a.forEach(r),b=c(s),v=u(s,"P",{});var h=n(v);T=l(h,"This is the 'about' page. There's not much here."),h.forEach(r),this.h()},h(){document.title="About"},m(s,a){f(s,t,a),f(s,e,a),d(e,p),f(s,b,a),f(s,v,a),d(v,T)},p:m,i:m,o:m,d(s){s&&r(t),s&&r(e),s&&r(b),s&&r(v)}}}class b extends s{constructor(s){super(),t(this,s,null,p,e,{})}}export{b as default}; diff --git a/__sapper__/build/client/client-e118e612.css b/__sapper__/build/client/client-e118e612.css new file mode 100644 index 0000000..f6eb2fd --- /dev/null +++ b/__sapper__/build/client/client-e118e612.css @@ -0,0 +1,3 @@ +nav.svelte-1dbd5up{border-bottom:1px solid rgba(255,62,0,0.1);font-weight:300;padding:0 1em}ul.svelte-1dbd5up{margin:0;padding:0}ul.svelte-1dbd5up::after{content:'';display:block;clear:both}li.svelte-1dbd5up{display:block;float:left}[aria-current].svelte-1dbd5up{position:relative;display:inline-block}[aria-current].svelte-1dbd5up::after{position:absolute;content:'';width:calc(100% - 1em);height:2px;background-color:rgb(255,62,0);display:block;bottom:-1px}a.svelte-1dbd5up{text-decoration:none;padding:1em 0.5em;display:block} +main.svelte-1uhnsl8{position:relative;max-width:56em;background-color:white;padding:2em;margin:0 auto;box-sizing:border-box} +h1.svelte-8od9u6,p.svelte-8od9u6{margin:0 auto}h1.svelte-8od9u6{font-size:2.8em;font-weight:700;margin:0 0 0.5em 0}p.svelte-8od9u6{margin:1em auto}@media(min-width: 480px){h1.svelte-8od9u6{font-size:4em}} diff --git a/__sapper__/build/client/client.5cc55ff9.js b/__sapper__/build/client/client.5cc55ff9.js new file mode 100644 index 0000000..d4487a5 --- /dev/null +++ b/__sapper__/build/client/client.5cc55ff9.js @@ -0,0 +1,18 @@ +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 o(t){t.forEach(n)}function s(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let a;function c(t,e){return a||(a=document.createElement("a")),a.href=e,t===a.href}function l(t,n,r,o){return t[1]&&o?e(r.ctx.slice(),t[1](o(n))):r.ctx}let u,f=!1;function d(t,e,n,r){for(;t>1);n(o)<=r?t=o+1:e=o}return t}function p(t,e){if(f){for(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n0&&e[n[o]].claim_order<=s?o+1:d(1,o,(t=>e[n[t]].claim_order),s))-1;r[t]=n[i]+1;const a=i+1;n[a]=t,o=Math.max(a,o)}const s=[],i=[];let a=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(s.push(e[t-1]);a>=t;a--)i.push(e[a]);a--}for(;a>=0;a--)i.push(e[a]);s.reverse(),i.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e=s[n].claim_order;)n++;const r=n{for(let r=t.claim_info.last_index;r=0;r--){const s=t[r];if(e(s)){const e=n(s);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,s}}return r()})();return s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,s}function S(t,e,n,r){return E(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;rt.removeAttribute(e)))}),(()=>r?function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}(e):_(e)))}function w(t,e){return E(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>$(e)),!0)}function N(t){return w(t," ")}function A(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function P(t,e=document.body){return Array.from(e.querySelectorAll(t))}function R(t){u=t}function j(){if(!u)throw new Error("Function called outside component initialization");return u}const C=[],I=[],L=[],O=[],k=Promise.resolve();let T=!1;function U(t){L.push(t)}let q=!1;const J=new Set;function B(){if(!q){q=!0;do{for(let t=0;t{K.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function Y(t,e){const n={},r={},o={$$scope:1};let s=t.length;for(;s--;){const i=t[s],a=e[s];if(a){for(const t in i)t in a||(r[t]=1);for(const t in a)o[t]||(n[t]=a[t],o[t]=1);t[s]=a}else for(const t in i)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}function F(t){return"object"==typeof t&&null!==t?t:{}}function G(t){t&&t.c()}function X(t,e){t&&t.l(e)}function Q(t,e,r,i){const{fragment:a,on_mount:c,on_destroy:l,after_update:u}=t.$$;a&&a.m(e,r),i||U((()=>{const e=c.map(n).filter(s);l?l.push(...e):o(e),t.$$.on_mount=[]})),u.forEach(U)}function Z(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function tt(t,e){-1===t.$$.dirty[0]&&(C.push(t),T||(T=!0,k.then(B)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const o=r.length?r[0]:n;return h.ctx&&a(h.ctx[t],h.ctx[t]=o)&&(!h.skip_bound&&h.bound[t]&&h.bound[t](o),g&&tt(e,t)),n})):[],h.update(),g=!0,o(h.before_update),h.fragment=!!i&&i(h.ctx),n.target){if(n.hydrate){f=!0;const t=x(n.target);h.fragment&&h.fragment.l(t),t.forEach(m)}else h.fragment&&h.fragment.c();n.intro&&H(e.$$.fragment),Q(e,n.target,n.anchor,n.customElement),f=!1,B()}R(p)}class nt{$destroy(){Z(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(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const rt=[];function ot(e,n=t){let r;const o=new Set;function s(t){if(i(e,t)&&(e=t,r)){const t=!rt.length;for(const t of o)t[1](),rt.push(t,e);if(t){for(let t=0;t{o.delete(c),0===o.size&&(r(),r=null)}}}}const st={};function it(e){let n,r,o,s,i,a,c,l,u,f,d,g,b,E,A,P;return{c(){n=_("nav"),r=_("ul"),o=_("li"),s=_("a"),i=$("home"),c=v(),l=_("li"),u=_("a"),f=$("about"),g=v(),b=_("li"),E=_("a"),A=$("blog"),this.h()},l(t){n=S(t,"NAV",{class:!0});var e=x(n);r=S(e,"UL",{class:!0});var a=x(r);o=S(a,"LI",{class:!0});var d=x(o);s=S(d,"A",{"aria-current":!0,href:!0,class:!0});var p=x(s);i=w(p,"home"),p.forEach(m),d.forEach(m),c=N(a),l=S(a,"LI",{class:!0});var h=x(l);u=S(h,"A",{"aria-current":!0,href:!0,class:!0});var _=x(u);f=w(_,"about"),_.forEach(m),h.forEach(m),g=N(a),b=S(a,"LI",{class:!0});var $=x(b);E=S($,"A",{rel:!0,"aria-current":!0,href:!0,class:!0});var v=x(E);A=w(v,"blog"),v.forEach(m),$.forEach(m),a.forEach(m),e.forEach(m),this.h()},h(){y(s,"aria-current",a=void 0===e[0]?"page":void 0),y(s,"href","."),y(s,"class","svelte-1dbd5up"),y(o,"class","svelte-1dbd5up"),y(u,"aria-current",d="about"===e[0]?"page":void 0),y(u,"href","about"),y(u,"class","svelte-1dbd5up"),y(l,"class","svelte-1dbd5up"),y(E,"rel","prefetch"),y(E,"aria-current",P="blog"===e[0]?"page":void 0),y(E,"href","blog"),y(E,"class","svelte-1dbd5up"),y(b,"class","svelte-1dbd5up"),y(r,"class","svelte-1dbd5up"),y(n,"class","svelte-1dbd5up")},m(t,e){h(t,n,e),p(n,r),p(r,o),p(o,s),p(s,i),p(r,c),p(r,l),p(l,u),p(u,f),p(r,g),p(r,b),p(b,E),p(E,A)},p(t,[e]){1&e&&a!==(a=void 0===t[0]?"page":void 0)&&y(s,"aria-current",a),1&e&&d!==(d="about"===t[0]?"page":void 0)&&y(u,"aria-current",d),1&e&&P!==(P="blog"===t[0]?"page":void 0)&&y(E,"aria-current",P)},i:t,o:t,d(t){t&&m(n)}}}function at(t,e,n){let{segment:r}=e;return t.$$set=t=>{"segment"in t&&n(0,r=t.segment)},[r]}class ct extends nt{constructor(t){super(),et(this,t,at,it,i,{segment:0})}}function lt(t){let e,n,r,o;e=new ct({props:{segment:t[0]}});const s=t[2].default,i=function(t,e,n,r){if(t){const o=l(t,e,n,r);return t[0](o)}}(s,t,t[1],null);return{c(){G(e.$$.fragment),n=v(),r=_("main"),i&&i.c(),this.h()},l(t){X(e.$$.fragment,t),n=N(t),r=S(t,"MAIN",{class:!0});var o=x(r);i&&i.l(o),o.forEach(m),this.h()},h(){y(r,"class","svelte-1uhnsl8")},m(t,s){Q(e,t,s),h(t,n,s),h(t,r,s),i&&i.m(r,null),o=!0},p(t,[n]){const r={};1&n&&(r.segment=t[0]),e.$set(r),i&&i.p&&(!o||2&n)&&function(t,e,n,r,o,s){if(o){const i=l(e,n,r,s);t.p(i,o)}}(i,s,t,t[1],o?function(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r32){const e=[],n=t.ctx.length/32;for(let t=0;t{"segment"in t&&n(0,s=t.segment),"$$scope"in t&&n(1,o=t.$$scope)},[s,o,r]}class ft extends nt{constructor(t){super(),et(this,t,ut,lt,i,{segment:0})}}function dt(t){let e,n,r=t[1].stack+"";return{c(){e=_("pre"),n=$(r)},l(t){e=S(t,"PRE",{});var o=x(e);n=w(o,r),o.forEach(m)},m(t,r){h(t,e,r),p(e,n)},p(t,e){2&e&&r!==(r=t[1].stack+"")&&A(n,r)},d(t){t&&m(e)}}}function pt(e){let n,r,o,s,i,a,c,l,u,f=e[1].message+"";document.title=n=e[0];let d=e[2]&&e[1].stack&&dt(e);return{c(){r=v(),o=_("h1"),s=$(e[0]),i=v(),a=_("p"),c=$(f),l=v(),d&&d.c(),u=b(),this.h()},l(t){P('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(m),r=N(t),o=S(t,"H1",{class:!0});var n=x(o);s=w(n,e[0]),n.forEach(m),i=N(t),a=S(t,"P",{class:!0});var p=x(a);c=w(p,f),p.forEach(m),l=N(t),d&&d.l(t),u=b(),this.h()},h(){y(o,"class","svelte-8od9u6"),y(a,"class","svelte-8od9u6")},m(t,e){h(t,r,e),h(t,o,e),p(o,s),h(t,i,e),h(t,a,e),p(a,c),h(t,l,e),d&&d.m(t,e),h(t,u,e)},p(t,[e]){1&e&&n!==(n=t[0])&&(document.title=n),1&e&&A(s,t[0]),2&e&&f!==(f=t[1].message+"")&&A(c,f),t[2]&&t[1].stack?d?d.p(t,e):(d=dt(t),d.c(),d.m(u.parentNode,u)):d&&(d.d(1),d=null)},i:t,o:t,d(t){t&&m(r),t&&m(o),t&&m(i),t&&m(a),t&&m(l),d&&d.d(t),t&&m(u)}}}function ht(t,e,n){let{status:r}=e,{error:o}=e;return t.$$set=t=>{"status"in t&&n(0,r=t.status),"error"in t&&n(1,o=t.error)},[r,o,false]}class mt extends nt{constructor(t){super(),et(this,t,ht,pt,i,{status:0,error:1})}}function gt(t){let n,r,o;const s=[t[4].props];var i=t[4].component;function a(t){let n={};for(let t=0;t{Z(t,1)})),D()}i?(n=new i(a()),G(n.$$.fragment),H(n.$$.fragment,1),Q(n,r.parentNode,r)):n=null}else i&&n.$set(o)},i(t){o||(n&&H(n.$$.fragment,t),o=!0)},o(t){n&&W(n.$$.fragment,t),o=!1},d(t){t&&m(r),n&&Z(n,t)}}}function _t(t){let e,n;return e=new mt({props:{error:t[0],status:t[1]}}),{c(){G(e.$$.fragment)},l(t){X(e.$$.fragment,t)},m(t,r){Q(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.error=t[0]),2&n&&(r.status=t[1]),e.$set(r)},i(t){n||(H(e.$$.fragment,t),n=!0)},o(t){W(e.$$.fragment,t),n=!1},d(t){Z(e,t)}}}function $t(t){let e,n,r,o;const s=[_t,gt],i=[];function a(t,e){return t[0]?0:1}return e=a(t),n=i[e]=s[e](t),{c(){n.c(),r=b()},l(t){n.l(t),r=b()},m(t,n){i[e].m(t,n),h(t,r,n),o=!0},p(t,o){let c=e;e=a(t),e===c?i[e].p(t,o):(z(),W(i[c],1,1,(()=>{i[c]=null})),D(),n=i[e],n?n.p(t,o):(n=i[e]=s[e](t),n.c()),H(n,1),n.m(r.parentNode,r))},i(t){o||(H(n),o=!0)},o(t){W(n),o=!1},d(t){i[e].d(t),t&&m(r)}}}function vt(t){let n,r;const o=[{segment:t[2][0]},t[3].props];let s={$$slots:{default:[$t]},$$scope:{ctx:t}};for(let t=0;t{"stores"in t&&n(5,r=t.stores),"error"in t&&n(0,o=t.error),"status"in t&&n(1,s=t.status),"segments"in t&&n(2,i=t.segments),"level0"in t&&n(3,a=t.level0),"level1"in t&&n(4,c=t.level1),"notify"in t&&n(6,l=t.notify)},[o,s,i,a,c,r,l]}class yt extends nt{constructor(t){super(),et(this,t,bt,vt,i,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const xt=[/^\/blog\.json$/,/^\/blog\/([^/]+?)\.json$/],Et=[{js:()=>Promise.all([import("./index.8bfcf5b6.js"),__inject_styles(["client-e118e612.css","index-39716d32.css"])]).then((function(t){return t[0]}))},{js:()=>Promise.all([import("./about.73514586.js"),__inject_styles(["client-e118e612.css"])]).then((function(t){return t[0]}))},{js:()=>Promise.all([import("./index.4fac54ba.js"),__inject_styles(["client-e118e612.css","index-7ed37c94.css"])]).then((function(t){return t[0]}))},{js:()=>Promise.all([import("./[slug].efe166d1.js"),__inject_styles(["client-e118e612.css","[slug]-5bc8f95f.css"])]).then((function(t){return t[0]}))}],St=(wt=decodeURIComponent,[{pattern:/^\/$/,parts:[{i:0}]},{pattern:/^\/about\/?$/,parts:[{i:1}]},{pattern:/^\/blog\/?$/,parts:[{i:2}]},{pattern:/^\/blog\/([^/]+?)\/?$/,parts:[null,{i:3,params:t=>({slug:wt(t[1])})}]}]);var wt; +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +function Nt(t,e,n,r){return new(n||(n=Promise))((function(o,s){function i(t){try{c(r.next(t))}catch(t){s(t)}}function a(t){try{c(r.throw(t))}catch(t){s(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,a)}c((r=r.apply(t,e||[])).next())}))}function At(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}let Pt,Rt=1;const jt="undefined"!=typeof history?history:{pushState:()=>{},replaceState:()=>{},scrollRestoration:"auto"},Ct={};let It,Lt;function Ot(t){const e=Object.create(null);return t.length>0&&t.slice(1).split("&").forEach((t=>{const[,n,r=""]=/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(t.replace(/\+/g," ")));"string"==typeof e[n]&&(e[n]=[e[n]]),"object"==typeof e[n]?e[n].push(r):e[n]=r})),e}function kt(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(It))return null;let e=t.pathname.slice(It.length);if(""===e&&(e="/"),!xt.some((t=>t.test(e))))for(let n=0;n{Vt(t)}),20)}function Dt(t,e={noscroll:!1,replaceState:!1}){const n=kt(new URL(t,Bt(document)));return n?(jt[e.replaceState?"replaceState":"pushState"]({id:Pt},"",t),Jt(n,null,e.noscroll)):(location.href=t,new Promise((()=>{})))}const Ht="undefined"!=typeof __SAPPER__&&__SAPPER__;let Wt,Yt,Ft,Gt=!1,Xt=[],Qt="{}";const Zt={page:function(t){const e=ot(t);let n=!0;return{notify:function(){n=!0,e.update((t=>t))},set:function(t){n=!1,e.set(t)},subscribe:function(t){let r;return e.subscribe((e=>{(void 0===r||n&&e!==r)&&t(r=e)}))}}}({}),preloading:ot(null),session:ot(Ht&&Ht.session)};let te,ee,ne;function re(t,e){const{error:n}=t;return Object.assign({error:n},e)}function oe(t){return Nt(this,void 0,void 0,(function*(){Wt&&Zt.preloading.set(!0);const e=function(t){return Kt&&Kt.href===t.href?Kt.promise:ie(t)}(t),n=Yt={},r=yield e,{redirect:o}=r;if(n===Yt)if(o)yield Dt(o.location,{replaceState:!0});else{const{props:e,branch:n}=r;yield se(n,e,re(e,t.page))}}))}function se(t,e,n){return Nt(this,void 0,void 0,(function*(){Zt.page.set(n),Zt.preloading.set(!1),Wt?Wt.$set(e):(e.stores={page:{subscribe:Zt.page.subscribe},preloading:{subscribe:Zt.preloading.subscribe},session:Zt.session},e.level0={props:yield Ft},e.notify=Zt.page.notify,Wt=new yt({target:ne,props:e,hydrate:!0})),Xt=t,Qt=JSON.stringify(n.query),Gt=!0,ee=!1}))}function ie(t){return Nt(this,void 0,void 0,(function*(){const{route:e,page:n}=t,r=n.path.split("/").filter(Boolean);let o=null;const s={error:null,status:200,segments:[r[0]]},i={fetch:(t,e)=>fetch(t,e),redirect:(t,e)=>{if(o&&(o.statusCode!==t||o.location!==e))throw new Error("Conflicting redirects");o={statusCode:t,location:e}},error:(t,e)=>{s.error="string"==typeof e?new Error(e):e,s.status=t}};if(!Ft){const t=()=>({});Ft=Ht.preloaded[0]||t.call(i,{host:n.host,path:n.path,query:n.query,params:{}},te)}let a,c=1;try{const o=JSON.stringify(n.query),l=e.pattern.exec(n.path);let u=!1;a=yield Promise.all(e.parts.map(((e,a)=>Nt(this,void 0,void 0,(function*(){const f=r[a];if(function(t,e,n,r){if(r!==Qt)return!0;const o=Xt[t];return!!o&&(e!==o.segment||!(!o.match||JSON.stringify(o.match.slice(1,t+2))===JSON.stringify(n.slice(1,t+2)))||void 0)}(a,f,l,o)&&(u=!0),s.segments[c]=r[a+1],!e)return{segment:f};const d=c++;if(!ee&&!u&&Xt[a]&&Xt[a].part===e.i)return Xt[a];u=!1;const{default:p,preload:h}=yield Et[e.i].js();let m;return m=Gt||!Ht.preloaded[a+1]?h?yield h.call(i,{host:n.host,path:n.path,query:n.query,params:e.params?e.params(t.match):{}},te):{}:Ht.preloaded[a+1],s[`level${d}`]={component:p,props:m,segment:f,match:l,part:e.i}})))))}catch(t){s.error=t,s.status=500,a=[]}return{redirect:o,props:s,branch:a}}))}var ae,ce,le;Zt.session.subscribe((t=>Nt(void 0,void 0,void 0,(function*(){if(te=t,!Gt)return;ee=!0;const e=kt(new URL(location.href)),n=Yt={},{redirect:r,props:o,branch:s}=yield ie(e);n===Yt&&(r?yield Dt(r.location,{replaceState:!0}):yield se(s,o,re(o,e.page)))})))),ae={target:document.querySelector("#sapper")},ce=ae.target,ne=ce,le=Ht.baseUrl,It=le,Lt=oe,"scrollRestoration"in jt&&(jt.scrollRestoration="manual"),addEventListener("beforeunload",(()=>{jt.scrollRestoration="auto"})),addEventListener("load",(()=>{jt.scrollRestoration="manual"})),addEventListener("click",Tt),addEventListener("popstate",qt),addEventListener("touchstart",Vt),addEventListener("mousemove",zt),Ht.error?Promise.resolve().then((()=>function(){const{host:t,pathname:e,search:n}=location,{session:r,preloaded:o,status:s,error:i}=Ht;Ft||(Ft=o&&o[0]);const a={error:i,status:s,session:r,level0:{props:Ft},level1:{props:{status:s,error:i},component:mt},segments:o},c=Ot(n);se([],a,{host:t,path:e,query:c,params:{},error:i})}())):Promise.resolve().then((()=>{const{hash:t,href:e}=location;jt.replaceState({id:Rt},"",e);const n=kt(new URL(location.href));if(n)return Jt(n,Rt,!0,t)}));export{nt as S,v as a,S as b,N as c,m as d,_ as e,x as f,w as g,y as h,et as i,c as j,h as k,p as l,A as m,t as n,g as o,P as q,i as s,$ as t}; + +import __inject_styles from './inject_styles.5607aec6.js'; \ No newline at end of file diff --git a/__sapper__/build/client/index-39716d32.css b/__sapper__/build/client/index-39716d32.css new file mode 100644 index 0000000..f8bab68 --- /dev/null +++ b/__sapper__/build/client/index-39716d32.css @@ -0,0 +1 @@ +h1.svelte-1kk9opm,figure.svelte-1kk9opm,p.svelte-1kk9opm{text-align:center;margin:0 auto}h1.svelte-1kk9opm{font-size:2.8em;text-transform:uppercase;font-weight:700;margin:0 0 0.5em 0}figure.svelte-1kk9opm{margin:0 0 1em 0}img.svelte-1kk9opm{width:100%;max-width:400px;margin:0 0 1em 0}p.svelte-1kk9opm{margin:1em auto}@media(min-width: 480px){h1.svelte-1kk9opm{font-size:4em}} diff --git a/__sapper__/build/client/index-7ed37c94.css b/__sapper__/build/client/index-7ed37c94.css new file mode 100644 index 0000000..a30ec9d --- /dev/null +++ b/__sapper__/build/client/index-7ed37c94.css @@ -0,0 +1 @@ +ul.svelte-1frg2tf{margin:0 0 1em 0;line-height:1.5} diff --git a/__sapper__/build/client/index.4fac54ba.js b/__sapper__/build/client/index.4fac54ba.js new file mode 100644 index 0000000..4fed9c9 --- /dev/null +++ b/__sapper__/build/client/index.4fac54ba.js @@ -0,0 +1 @@ +import{S as t,i as s,s as e,e as l,t as n,b as o,f as r,g as a,d as h,h as c,k as f,l as i,m as u,a as g,q as p,c as d,n as m,o as v}from"./client.5cc55ff9.js";function E(t,s,e){const l=t.slice();return l[1]=s[e],l}function b(t){let s,e,g,p,d=t[1].title+"";return{c(){s=l("li"),e=l("a"),g=n(d),this.h()},l(t){s=o(t,"LI",{});var l=r(s);e=o(l,"A",{rel:!0,href:!0});var n=r(e);g=a(n,d),n.forEach(h),l.forEach(h),this.h()},h(){c(e,"rel","prefetch"),c(e,"href",p="blog/"+t[1].slug)},m(t,l){f(t,s,l),i(s,e),i(e,g)},p(t,s){1&s&&d!==(d=t[1].title+"")&&u(g,d),1&s&&p!==(p="blog/"+t[1].slug)&&c(e,"href",p)},d(t){t&&h(s)}}}function j(t){let s,e,u,j,x,L=t[0],R=[];for(let s=0;st.json())).then((t=>({posts:t})))}function L(t,s,e){let{posts:l}=s;return t.$$set=t=>{"posts"in t&&e(0,l=t.posts)},[l]}class R extends t{constructor(t){super(),s(this,t,L,j,e,{posts:0})}}export{R as default,x as preload}; diff --git a/__sapper__/build/client/index.8bfcf5b6.js b/__sapper__/build/client/index.8bfcf5b6.js new file mode 100644 index 0000000..c21d4f8 --- /dev/null +++ b/__sapper__/build/client/index.8bfcf5b6.js @@ -0,0 +1 @@ +import{S as s,i as e,s as a,a as t,e as c,t as r,q as l,d as i,c as o,b as n,f as h,g as p,h as f,j as d,k as v,l as u,n as g}from"./client.5cc55ff9.js";function m(s){let e,a,m,k,E,G,S,b,j,x,I,T,y,H;return{c(){e=t(),a=c("h1"),m=r("Great success!"),k=t(),E=c("figure"),G=c("img"),b=t(),j=c("figcaption"),x=r("Have fun with Sapper!"),I=t(),T=c("p"),y=c("strong"),H=r("Try editing this file (src/routes/index.svelte) to test live reloading."),this.h()},l(s){l('[data-svelte="svelte-oh6yg0"]',document.head).forEach(i),e=o(s),a=n(s,"H1",{class:!0});var t=h(a);m=p(t,"Great success!"),t.forEach(i),k=o(s),E=n(s,"FIGURE",{class:!0});var c=h(E);G=n(c,"IMG",{alt:!0,src:!0,class:!0}),b=o(c),j=n(c,"FIGCAPTION",{});var r=h(j);x=p(r,"Have fun with Sapper!"),r.forEach(i),c.forEach(i),I=o(s),T=n(s,"P",{class:!0});var f=h(T);y=n(f,"STRONG",{});var d=h(y);H=p(d,"Try editing this file (src/routes/index.svelte) to test live reloading."),d.forEach(i),f.forEach(i),this.h()},h(){document.title="Sapper project template",f(a,"class","svelte-1kk9opm"),f(G,"alt","Success Kid"),d(G.src,S="/client/465898c830bb9d2c.jpg")||f(G,"src","/client/465898c830bb9d2c.jpg"),f(G,"class","svelte-1kk9opm"),f(E,"class","svelte-1kk9opm"),f(T,"class","svelte-1kk9opm")},m(s,t){v(s,e,t),v(s,a,t),u(a,m),v(s,k,t),v(s,E,t),u(E,G),u(E,b),u(E,j),u(j,x),v(s,I,t),v(s,T,t),u(T,y),u(y,H)},p:g,i:g,o:g,d(s){s&&i(e),s&&i(a),s&&i(k),s&&i(E),s&&i(I),s&&i(T)}}}class k extends s{constructor(s){super(),e(this,s,null,m,a,{})}}export{k as default}; diff --git a/__sapper__/build/client/inject_styles.5607aec6.js b/__sapper__/build/client/inject_styles.5607aec6.js new file mode 100644 index 0000000..ea4a93a --- /dev/null +++ b/__sapper__/build/client/inject_styles.5607aec6.js @@ -0,0 +1 @@ +function e(e){return Promise.all(e.map((function(e){return new Promise((function(t,n){var r=new URL(e,import.meta.url),l=document.baseURI;if(!l){var o=document.getElementsByTagName("base");l=o.length?o[0].href:document.URL}var u=(""+r).substring(l.length),a=document.querySelector('link[rel=stylesheet][href="'+u+'"]')||document.querySelector('link[rel=stylesheet][href="'+r+'"]');a||((a=document.createElement("link")).rel="stylesheet",a.href=r,document.head.appendChild(a)),a.sheet?t():(a.onload=function(){return t()},a.onerror=n)}))})))}export{e as default}; diff --git a/__sapper__/build/client/legacy/465898c830bb9d2c.jpg b/__sapper__/build/client/legacy/465898c830bb9d2c.jpg new file mode 100644 index 0000000..5ad19cc Binary files /dev/null and b/__sapper__/build/client/legacy/465898c830bb9d2c.jpg differ diff --git a/__sapper__/build/client/legacy/[slug]-5bc8f95f.css b/__sapper__/build/client/legacy/[slug]-5bc8f95f.css new file mode 100644 index 0000000..7255deb --- /dev/null +++ b/__sapper__/build/client/legacy/[slug]-5bc8f95f.css @@ -0,0 +1 @@ +.content.svelte-emm3f3 h2{font-size:1.4em;font-weight:500}.content.svelte-emm3f3 pre{background-color:#f9f9f9;box-shadow:inset 1px 1px 5px rgba(0, 0, 0, 0.05);padding:0.5em;border-radius:2px;overflow-x:auto}.content.svelte-emm3f3 pre code{background-color:transparent;padding:0}.content.svelte-emm3f3 ul{line-height:1.5}.content.svelte-emm3f3 li{margin:0 0 0.5em 0} diff --git a/__sapper__/build/client/legacy/[slug].4dd0451b.js b/__sapper__/build/client/legacy/[slug].4dd0451b.js new file mode 100644 index 0000000..e290043 --- /dev/null +++ b/__sapper__/build/client/legacy/[slug].4dd0451b.js @@ -0,0 +1 @@ +import{x as t,_ as n,a as e,b as r,c as s,i as a,d as o,S as c,s as u,e as i,f,t as l,q as h,g as p,h as v,j as m,k as d,l as y,m as x,o as R,p as b,v as g,u as j,r as w}from"./client.0725e74f.js";function k(t,n,e,r,s,a,o){try{var c=t[a](o),u=c.value}catch(t){return void e(t)}c.done?n(u):Promise.resolve(u).then(r,s)}function E(t){return function(){var n=this,e=arguments;return new Promise((function(r,s){var a=t.apply(n,e);function o(t){k(a,r,s,o,c,"next",t)}function c(t){k(a,r,s,o,c,"throw",t)}o(void 0)}))}}function H(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var s,a=e(t);if(n){var o=e(this).constructor;s=Reflect.construct(a,arguments,o)}else s=a.apply(this,arguments);return r(this,s)}}function P(t){var n,e,r,s,a,o,c=t[0].title+"",u=t[0].html+"";return document.title=n=t[0].title,{c:function(){e=i(),r=f("h1"),s=l(c),a=i(),o=f("div"),this.h()},l:function(t){h('[data-svelte="svelte-1uty71u"]',document.head).forEach(p),e=v(t),r=m(t,"H1",{});var n=d(r);s=y(n,c),n.forEach(p),a=v(t),o=m(t,"DIV",{class:!0}),d(o).forEach(p),this.h()},h:function(){x(o,"class","content svelte-emm3f3")},m:function(t,n){R(t,e,n),R(t,r,n),b(r,s),R(t,a,n),R(t,o,n),o.innerHTML=u},p:function(t,e){var r=g(e,1)[0];1&r&&n!==(n=t[0].title)&&(document.title=n),1&r&&c!==(c=t[0].title+"")&&j(s,c),1&r&&u!==(u=t[0].html+"")&&(o.innerHTML=u)},i:w,o:w,d:function(t){t&&p(e),t&&p(r),t&&p(a),t&&p(o)}}}function B(t){return L.apply(this,arguments)}function L(){return(L=E(t.mark((function n(e){var r,s,a;return t.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.params,t.next=3,this.fetch("blog/".concat(r.slug,".json"));case 3:return s=t.sent,t.next=6,s.json();case 6:if(a=t.sent,200!==s.status){t.next=11;break}return t.abrupt("return",{post:a});case 11:this.error(s.status,a.message);case 12:case"end":return t.stop()}}),n,this)})))).apply(this,arguments)}function M(t,n,e){var r=n.post;return t.$$set=function(t){"post"in t&&e(0,r=t.post)},[r]}var T=function(t){n(r,c);var e=H(r);function r(t){var n;return s(this,r),n=e.call(this),a(o(n),t,M,P,u,{post:0}),n}return r}();export{T as default,B as preload}; diff --git a/__sapper__/build/client/legacy/about.7de0907c.js b/__sapper__/build/client/legacy/about.7de0907c.js new file mode 100644 index 0000000..d591b3a --- /dev/null +++ b/__sapper__/build/client/legacy/about.7de0907c.js @@ -0,0 +1 @@ +import{_ as t,a as e,b as n,c as a,i as r,d as s,S as o,s as c,e as u,f as i,t as f,q as h,g as l,h as p,j as v,k as d,l as m,o as b,p as y,r as R}from"./client.0725e74f.js";function T(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,s=e(t);if(a){var o=e(this).constructor;r=Reflect.construct(s,arguments,o)}else r=s.apply(this,arguments);return n(this,r)}}function g(t){var e,n,a,r,s,o;return{c:function(){e=u(),n=i("h1"),a=f("About this site"),r=u(),s=i("p"),o=f("This is the 'about' page. There's not much here."),this.h()},l:function(t){h('[data-svelte="svelte-1ine71f"]',document.head).forEach(l),e=p(t),n=v(t,"H1",{});var c=d(n);a=m(c,"About this site"),c.forEach(l),r=p(t),s=v(t,"P",{});var u=d(s);o=m(u,"This is the 'about' page. There's not much here."),u.forEach(l),this.h()},h:function(){document.title="About"},m:function(t,c){b(t,e,c),b(t,n,c),y(n,a),b(t,r,c),b(t,s,c),y(s,o)},p:R,i:R,o:R,d:function(t){t&&l(e),t&&l(n),t&&l(r),t&&l(s)}}}var A=function(e){t(u,o);var n=T(u);function u(t){var e;return a(this,u),e=n.call(this),r(s(e),t,null,g,c,{}),e}return u}();export{A as default}; diff --git a/__sapper__/build/client/legacy/client-e118e612.css b/__sapper__/build/client/legacy/client-e118e612.css new file mode 100644 index 0000000..f6eb2fd --- /dev/null +++ b/__sapper__/build/client/legacy/client-e118e612.css @@ -0,0 +1,3 @@ +nav.svelte-1dbd5up{border-bottom:1px solid rgba(255,62,0,0.1);font-weight:300;padding:0 1em}ul.svelte-1dbd5up{margin:0;padding:0}ul.svelte-1dbd5up::after{content:'';display:block;clear:both}li.svelte-1dbd5up{display:block;float:left}[aria-current].svelte-1dbd5up{position:relative;display:inline-block}[aria-current].svelte-1dbd5up::after{position:absolute;content:'';width:calc(100% - 1em);height:2px;background-color:rgb(255,62,0);display:block;bottom:-1px}a.svelte-1dbd5up{text-decoration:none;padding:1em 0.5em;display:block} +main.svelte-1uhnsl8{position:relative;max-width:56em;background-color:white;padding:2em;margin:0 auto;box-sizing:border-box} +h1.svelte-8od9u6,p.svelte-8od9u6{margin:0 auto}h1.svelte-8od9u6{font-size:2.8em;font-weight:700;margin:0 0 0.5em 0}p.svelte-8od9u6{margin:1em auto}@media(min-width: 480px){h1.svelte-8od9u6{font-size:4em}} diff --git a/__sapper__/build/client/legacy/client.0725e74f.js b/__sapper__/build/client/legacy/client.0725e74f.js new file mode 100644 index 0000000..a2e7313 --- /dev/null +++ b/__sapper__/build/client/legacy/client.0725e74f.js @@ -0,0 +1,18 @@ +function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),f=o.call(i,"finallyLoc");if(c&&f){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),R(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;R(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),m}},e}(e.exports);try{regeneratorRuntime=n}catch(e){"object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}));function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||n(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}var s,l=o((function(t){function e(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=e=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}));function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e){if(e&&("object"===l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return p(t)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n>1);n(o)<=r?t=o+1:e=o}return t}function O(t,e){if(j){for(!function(t){if(!t.hydrate_init){t.hydrate_init=!0;var e=t.childNodes;if("HEAD"===t.nodeName){for(var n=[],r=0;r0&&e[a[u]].claim_order<=f?u+1:L(1,u,(function(t){return e[a[t]].claim_order}),f))-1;i[c]=a[s]+1;var l=s+1;a[l]=c,u=Math.max(l,u)}for(var p=[],h=[],d=e.length-1,v=a[u]+1;0!=v;v=i[v-1]){for(p.push(e[v-1]);d>=v;d--)h.push(e[d]);d--}for(;d>=0;d--)h.push(e[d]);p.reverse(),h.sort((function(t,e){return t.claim_order-e.claim_order}));for(var m=0,y=0;m=p[y].claim_order;)y++;var g=y4&&void 0!==arguments[4]&&arguments[4];M(t);var a=function(){for(var a=t.claim_info.last_index;a=0;c--){var f=t[c];if(e(f)){var s=n(f);return void 0===s?t.splice(c,1):t[c]=s,o?void 0===s&&t.claim_info.last_index--:t.claim_info.last_index=c,f}}return r()}();return a.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,a}function J(t,e,n,r){return G(t,(function(t){return t.nodeName===e}),(function(t){for(var e=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:document.body;return Array.from(e.querySelectorAll(t))}function Y(t){S=t}function z(){if(!S)throw new Error("Function called outside component initialization");return S}var H=[],W=[],X=[],Q=[],Z=Promise.resolve(),tt=!1;function et(t){X.push(t)}var nt=!1,rt=new Set;function ot(){if(!nt){nt=!0;do{for(var t=0;t7&&void 0!==arguments[7]?arguments[7]:[-1],c=S;Y(t);var f=t.$$={fragment:null,ctx:null,props:a,update:m,not_equal:o,bound:b(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:e.context||[]),callbacks:b(),dirty:u,skip_bound:!1,root:e.target||c.$$.root};i&&i(f.root);var s=!1;if(f.ctx=n?n(t,e.props||{},(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return f.ctx&&o(f.ctx[e],f.ctx[e]=r)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](r),s&>(t,e)),n})):[],f.update(),s=!0,_(f.before_update),f.fragment=!!r&&r(f.ctx),e.target){if(e.hydrate){k();var l=q(e.target);f.fragment&&f.fragment.l(l),l.forEach(P)}else f.fragment&&f.fragment.c();e.intro&&st(t.$$.fragment),mt(t,e.target,e.anchor,e.customElement),R(),ot()}Y(c)}var _t=function(){function t(){d(this,t)}var e,n,r;return e=t,(n=[{key:"$destroy",value:function(){yt(this,1),this.$destroy=m}},{key:"$on",value:function(t,e){var n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}},{key:"$set",value:function(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}])&&v(e.prototype,n),r&&v(e,r),t}();function xt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return $t(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $t(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw a}}}}function $t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:m,r=new Set;function o(n){if($(t,n)&&(t=n,e)){var o,a=!wt.length,i=xt(r);try{for(i.s();!(o=i.n()).done;){var u=o.value;u[1](),wt.push(u,t)}}catch(t){i.e(t)}finally{i.f()}if(a){for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:m,u=[a,i];return r.add(u),1===r.size&&(e=n(o)||m),a(t),function(){r.delete(u),0===r.size&&(e(),e=null)}}return{set:o,update:a,subscribe:i}}var St={};function jt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=i(t);if(e){var o=i(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function kt(t){var e,n,o,a,i,u,c,f,s,l,p,h,d,v,y,g;return{c:function(){e=I("nav"),n=I("ul"),o=I("li"),a=I("a"),i=T("home"),c=C(),f=I("li"),s=I("a"),l=T("about"),h=C(),d=I("li"),v=I("a"),y=T("blog"),this.h()},l:function(t){var r=q(e=J(t,"NAV",{class:!0})),u=q(n=J(r,"UL",{class:!0})),p=q(o=J(u,"LI",{class:!0})),m=q(a=J(p,"A",{"aria-current":!0,href:!0,class:!0}));i=F(m,"home"),m.forEach(P),p.forEach(P),c=D(u);var g=q(f=J(u,"LI",{class:!0})),b=q(s=J(g,"A",{"aria-current":!0,href:!0,class:!0}));l=F(b,"about"),b.forEach(P),g.forEach(P),h=D(u);var _=q(d=J(u,"LI",{class:!0})),x=q(v=J(_,"A",{rel:!0,"aria-current":!0,href:!0,class:!0}));y=F(x,"blog"),x.forEach(P),_.forEach(P),u.forEach(P),r.forEach(P),this.h()},h:function(){U(a,"aria-current",u=void 0===t[0]?"page":void 0),U(a,"href","."),U(a,"class","svelte-1dbd5up"),U(o,"class","svelte-1dbd5up"),U(s,"aria-current",p="about"===t[0]?"page":void 0),U(s,"href","about"),U(s,"class","svelte-1dbd5up"),U(f,"class","svelte-1dbd5up"),U(v,"rel","prefetch"),U(v,"aria-current",g="blog"===t[0]?"page":void 0),U(v,"href","blog"),U(v,"class","svelte-1dbd5up"),U(d,"class","svelte-1dbd5up"),U(n,"class","svelte-1dbd5up"),U(e,"class","svelte-1dbd5up")},m:function(t,r){A(t,e,r),O(e,n),O(n,o),O(o,a),O(a,i),O(n,c),O(n,f),O(f,s),O(s,l),O(n,h),O(n,d),O(d,v),O(v,y)},p:function(t,e){var n=r(e,1)[0];1&n&&u!==(u=void 0===t[0]?"page":void 0)&&U(a,"aria-current",u),1&n&&p!==(p="about"===t[0]?"page":void 0)&&U(s,"aria-current",p),1&n&&g!==(g="blog"===t[0]?"page":void 0)&&U(v,"aria-current",g)},i:m,o:m,d:function(t){t&&P(e)}}}function Rt(t,e,n){var r=e.segment;return t.$$set=function(t){"segment"in t&&n(0,r=t.segment)},[r]}var Lt=function(t){f(n,_t);var e=jt(n);function n(t){var r;return d(this,n),bt(p(r=e.call(this)),t,Rt,kt,$,{segment:0}),r}return n}();function Ot(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=i(t);if(e){var o=i(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function At(e){var n,o,a,i;n=new Lt({props:{segment:e[0]}});var u=e[2].default,c=function(t,e,n,r){if(t){var o=E(t,e,n,r);return t[0](o)}}(u,e,e[1],null);return{c:function(){dt(n.$$.fragment),o=C(),a=I("main"),c&&c.c(),this.h()},l:function(t){vt(n.$$.fragment,t),o=D(t);var e=q(a=J(t,"MAIN",{class:!0}));c&&c.l(e),e.forEach(P),this.h()},h:function(){U(a,"class","svelte-1uhnsl8")},m:function(t,e){mt(n,t,e),A(t,o,e),A(t,a,e),c&&c.m(a,null),i=!0},p:function(e,o){var a=r(o,1)[0],f={};1&a&&(f.segment=e[0]),n.$set(f),c&&c.p&&(!i||2&a)&&function(t,e,n,r,o,a){if(o){var i=E(e,n,r,a);t.p(i,o)}}(c,u,e,e[1],i?function(e,n,r,o){if(e[2]&&o){var a=e[2](o(r));if(void 0===n.dirty)return a;if("object"===t(a)){for(var i=[],u=Math.max(n.dirty.length,a.length),c=0;c32){for(var e=[],n=t.ctx.length/32,r=0;r0&&e.slice(1).split("&").forEach((function(e){var o=r(/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(e.replace(/\+/g," "))),3),a=o[1],i=o[2],u=void 0===i?"":i;"string"==typeof n[a]&&(n[a]=[n[a]]),"object"===t(n[a])?n[a].push(u):n[a]=u})),n}function ae(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(te))return null;var e=t.pathname.slice(te.length);if(""===e&&(e="/"),!Yt.some((function(t){return t.test(e)})))for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{noscroll:!1,replaceState:!1},n=ae(new URL(t,se(document)));return n?(ne[e.replaceState?"replaceState":"pushState"]({id:Qt},"",t),fe(n,null,e.noscroll)):(location.href=t,new Promise((function(){})))}var ye,ge,be,_e,xe,$e,we,Ee,Se,je="undefined"!=typeof __SAPPER__&&__SAPPER__,ke=!1,Re=[],Le="{}",Oe={page:function(t){var e=Et(t),n=!0;return{notify:function(){n=!0,e.update((function(t){return t}))},set:function(t){n=!1,e.set(t)},subscribe:function(t){var r;return e.subscribe((function(e){(void 0===r||n&&e!==r)&&t(r=e)}))}}}({}),preloading:Et(null),session:Et(je&&je.session)};function Ae(t,e){var n=t.error;return Object.assign({error:n},e)}function Pe(t){return Wt(this,void 0,void 0,a.mark((function e(){var n,r,o,i,u,c;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ye&&Oe.preloading.set(!0),n=he(t),r=ge={},e.next=5,n;case 5:if(o=e.sent,i=o.redirect,r===ge){e.next=9;break}return e.abrupt("return");case 9:if(!i){e.next=14;break}return e.next=12,me(i.location,{replaceState:!0});case 12:e.next=17;break;case 14:return u=o.props,c=o.branch,e.next=17,Ne(c,u,Ae(u,t.page));case 17:case"end":return e.stop()}}),e)})))}function Ne(t,e,n){return Wt(this,void 0,void 0,a.mark((function r(){return a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(Oe.page.set(n),Oe.preloading.set(!1),!ye){r.next=6;break}ye.$set(e),r.next=13;break;case 6:return e.stores={page:{subscribe:Oe.page.subscribe},preloading:{subscribe:Oe.preloading.subscribe},session:Oe.session},r.next=9,be;case 9:r.t0=r.sent,e.level0={props:r.t0},e.notify=Oe.page.notify,ye=new Vt({target:$e,props:e,hydrate:!0});case 13:Re=t,Le=JSON.stringify(n.query),ke=!0,xe=!1;case 17:case"end":return r.stop()}}),r)})))}function Ie(t,e,n,r){if(r!==Le)return!0;var o=Re[t];return!!o&&(e!==o.segment||(!(!o.match||JSON.stringify(o.match.slice(1,t+2))===JSON.stringify(n.slice(1,t+2)))||void 0))}function Te(t){return Wt(this,void 0,void 0,a.mark((function e(){var n,r,o,i,u,c,f,s,l,p,h,d,v=this;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.route,r=t.page,o=r.path.split("/").filter(Boolean),i=null,u={error:null,status:200,segments:[o[0]]},c={fetch:function(t){function e(e,n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t,e){return fetch(t,e)})),redirect:function(t,e){if(i&&(i.statusCode!==t||i.location!==e))throw new Error("Conflicting redirects");i={statusCode:t,location:e}},error:function(t,e){u.error="string"==typeof e?new Error(e):e,u.status=t}},be||(f=function(){return{}},be=je.preloaded[0]||f.call(c,{host:r.host,path:r.path,query:r.query,params:{}},_e)),l=1,e.prev=7,p=JSON.stringify(r.query),h=n.pattern.exec(r.path),d=!1,e.next=13,Promise.all(n.parts.map((function(e,n){return Wt(v,void 0,void 0,a.mark((function i(){var f,s,v,m,y,g;return a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(f=o[n],Ie(n,f,h,p)&&(d=!0),u.segments[l]=o[n+1],e){a.next=5;break}return a.abrupt("return",{segment:f});case 5:if(s=l++,xe||d||!Re[n]||Re[n].part!==e.i){a.next=8;break}return a.abrupt("return",Re[n]);case 8:return d=!1,a.next=11,zt[e.i].js();case 11:if(v=a.sent,m=v.default,y=v.preload,!ke&&je.preloaded[n+1]){a.next=25;break}if(!y){a.next=21;break}return a.next=18,y.call(c,{host:r.host,path:r.path,query:r.query,params:e.params?e.params(t.match):{}},_e);case 18:a.t0=a.sent,a.next=22;break;case 21:a.t0={};case 22:g=a.t0,a.next=26;break;case 25:g=je.preloaded[n+1];case 26:return a.abrupt("return",u["level".concat(s)]={component:m,props:g,segment:f,match:h,part:e.i});case 27:case"end":return a.stop()}}),i)})))})));case 13:s=e.sent,e.next=21;break;case 16:e.prev=16,e.t0=e.catch(7),u.error=e.t0,u.status=500,s=[];case 21:return e.abrupt("return",{redirect:i,props:u,branch:s});case 22:case"end":return e.stop()}}),e,null,[[7,16]])})))}Oe.session.subscribe((function(t){return Wt(void 0,void 0,void 0,a.mark((function e(){var n,r,o,i,u,c;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(_e=t,ke){e.next=3;break}return e.abrupt("return");case 3:return xe=!0,n=ae(new URL(location.href)),r=ge={},e.next=8,Te(n);case 8:if(o=e.sent,i=o.redirect,u=o.props,c=o.branch,r===ge){e.next=14;break}return e.abrupt("return");case 14:if(!i){e.next=19;break}return e.next=17,me(i.location,{replaceState:!0});case 17:e.next=21;break;case 19:return e.next=21,Ne(c,u,Ae(u,n.page));case 21:case"end":return e.stop()}}),e)})))})),we={target:document.querySelector("#sapper")},Ee=we.target,$e=Ee,Se=je.baseUrl,te=Se,ee=Pe,"scrollRestoration"in ne&&(ne.scrollRestoration="manual"),addEventListener("beforeunload",(function(){ne.scrollRestoration="auto"})),addEventListener("load",(function(){ne.scrollRestoration="manual"})),addEventListener("click",ie),addEventListener("popstate",ce),addEventListener("touchstart",de),addEventListener("mousemove",ve),je.error?Promise.resolve().then((function(){return function(){var t=location,e=t.host,n=t.pathname,r=t.search,o=je.session,a=je.preloaded,i=je.status,u=je.error;be||(be=a&&a[0]);var c={error:u,status:i,session:o,level0:{props:be},level1:{props:{status:i,error:u},component:Ut},segments:a},f=oe(r);Ne([],c,{host:e,path:n,query:f,params:{},error:u})}()})):Promise.resolve().then((function(){var t=location,e=t.hash,n=t.href;ne.replaceState({id:Zt},"",n);var r=ae(new URL(location.href));if(r)return fe(r,Zt,!0,e)}));export{_t as S,f as _,i as a,h as b,d as c,p as d,C as e,I as f,P as g,D as h,bt as i,J as j,q as k,F as l,U as m,w as n,A as o,O as p,V as q,m as r,$ as s,T as t,K as u,r as v,N as w,a as x}; + +import __inject_styles from './inject_styles.fe622066.js'; \ No newline at end of file diff --git a/__sapper__/build/client/legacy/index-39716d32.css b/__sapper__/build/client/legacy/index-39716d32.css new file mode 100644 index 0000000..f8bab68 --- /dev/null +++ b/__sapper__/build/client/legacy/index-39716d32.css @@ -0,0 +1 @@ +h1.svelte-1kk9opm,figure.svelte-1kk9opm,p.svelte-1kk9opm{text-align:center;margin:0 auto}h1.svelte-1kk9opm{font-size:2.8em;text-transform:uppercase;font-weight:700;margin:0 0 0.5em 0}figure.svelte-1kk9opm{margin:0 0 1em 0}img.svelte-1kk9opm{width:100%;max-width:400px;margin:0 0 1em 0}p.svelte-1kk9opm{margin:1em auto}@media(min-width: 480px){h1.svelte-1kk9opm{font-size:4em}} diff --git a/__sapper__/build/client/legacy/index-7ed37c94.css b/__sapper__/build/client/legacy/index-7ed37c94.css new file mode 100644 index 0000000..a30ec9d --- /dev/null +++ b/__sapper__/build/client/legacy/index-7ed37c94.css @@ -0,0 +1 @@ +ul.svelte-1frg2tf{margin:0 0 1em 0;line-height:1.5} diff --git a/__sapper__/build/client/legacy/index.7b6a19b7.js b/__sapper__/build/client/legacy/index.7b6a19b7.js new file mode 100644 index 0000000..53ec1da --- /dev/null +++ b/__sapper__/build/client/legacy/index.7b6a19b7.js @@ -0,0 +1 @@ +import{_ as t,a as n,b as r,c as e,i as o,d as s,S as c,s as a,f,t as u,j as i,k as l,l as h,g as v,m as p,o as g,p as d,u as m,e as R,q as y,h as E,v as b,r as j,w as B}from"./client.0725e74f.js";function x(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var o,s=n(t);if(e){var c=n(this).constructor;o=Reflect.construct(s,arguments,c)}else o=s.apply(this,arguments);return r(this,o)}}function L(t,n,r){var e=t.slice();return e[1]=n[r],e}function $(t){var n,r,e,o,s=t[1].title+"";return{c:function(){n=f("li"),r=f("a"),e=u(s),this.h()},l:function(t){n=i(t,"LI",{});var o=l(n);r=i(o,"A",{rel:!0,href:!0});var c=l(r);e=h(c,s),c.forEach(v),o.forEach(v),this.h()},h:function(){p(r,"rel","prefetch"),p(r,"href",o="blog/"+t[1].slug)},m:function(t,o){g(t,n,o),d(n,r),d(r,e)},p:function(t,n){1&n&&s!==(s=t[1].title+"")&&m(e,s),1&n&&o!==(o="blog/"+t[1].slug)&&p(r,"href",o)},d:function(t){t&&v(n)}}}function k(t){for(var n,r,e,o,s,c=t[0],a=[],m=0;m|<=|>=|==|!=|===|!==|\+|-|\*\%|<<|>>|>>>|&|\||\^|!|~|&&|\|\||\?|:|=|\+=|-=|\*=|%=|<<=|>>=|>>>=|&=|\|=|\^=|\/=|\/)\s*$/,o=/(\}|\)|\+\+|--)\s*$/,a=/[{}()[.;,<>=+\-*%&|\^!~?:/]/,i=/[a-zA-Z_$0-9]/,f={" ":1,"\t":1,"\n":1,"\r":1,"\f":1,"\v":1," ":1,"\u2028":1,"\u2029":1};function s(n){return n in f}function c(n){return"'"===n||'"'===n}var l=/^\*\s+as\s+(\w+)$/,d=/(\w+)\s*,\s*\*\s*as\s*(\w+)$/,p=/(\w+)\s*,\s*{(.+)}$/;function v(n){return n?n.split(",").map((function(n){var t=n.trim().split(/[^\S]+/),r=t[0];return{name:r,as:t[2]||r}})):[]}function m(n,t){for(var e=t,u=t+=6;n[t]&&s(n[t]);)t+=1;for(;n[t]&&!c(n[t]);)t+=1;for(var o=t,a=t+=1;n[t]&&!c(n[t]);)t+=1;var i=t++;return function(n,t,e,u,o){var a=r(u,"*")||r(u,"default");return{start:t,end:e,source:o,name:a,specifiers:u,toString:function(){return"/*"+n.slice(t,e)+"*/"}}}(n,e,t,function(n){var t=l.exec(n);return t?[{name:"*",as:t[1]}]:(t=d.exec(n))?[{name:"default",as:t[1]},{name:"*",as:t[2]}]:(t=p.exec(n))?[{name:"default",as:t[1]}].concat(v(t[2].trim())):"{"===n[0]?v(n.slice(1,-1).trim()):n?[{name:"default",as:n}]:[]}(n.slice(u,o).replace(/from\s*$/,"").trim()),n.slice(a,i))}var h=/^import\s*\.\s*meta\s*\.\s*url/;function _(n,t){var r=t;for(t+=6;n[t]&&s(n[t]);)t+=1;var e=t;if("{"===n[t]){for(;"}"!==n[t];)t+=1;for(var u=t+=1,o=null;s(n[t]);)t+=1;if(/^from[\s\n'"]/.test(n.slice(t,t+5))){for(t+=4;s(n[t]);)t+=1;for(;n[t]&&!c(n[t]);)t+=1;for(var i=t+=1;n[t]&&!c(n[t]);)t+=1;o=n.slice(i,t),t+=1}return function(n,t,r,e,u,o){var a=v(n.slice(r+1,e-1).trim());return{start:t,end:u,source:o,toString:function(r){var e=o&&r.get(o);return a.map((function(n){return"__exports."+n.as+" = "+(e?e+"."+n.name:n.name)+"; "})).join("")+"/*"+n.slice(t,u)+"*/"}}}(n,r,e,u,t,o)}if("*"===n[t]){for(t+=1;s(n[t]);)t+=1;for(t+=4;n[t]&&!c(n[t]);)t+=1;for(i=t+=1;n[t]&&!c(n[t]);)t+=1;var f=t++;return function(n,t,r,e){return{start:t,end:r,source:e,toString:function(u){return"Object.assign(__exports, "+u.get(e)+"); /*"+n.slice(t,r)+"*/"}}}(n,r,t,n.slice(i,f))}return/^default\b/.test(n.slice(t,t+8))?function(n,t,r){var e=/^\s*(?:(class)(\s+extends|\s*{)|(function)\s*\()/.exec(n.slice(r));if(e){r+=e[0].length;var u="__default_export";return{start:t,end:r,name:u,as:"default",toString:function(){return e[1]?"class "+u+e[2]:"function "+u+"("}}}return{start:t,end:r,toString:function(){return"__exports.default ="}}}(n,r,e+7):function(n,t,r){for(var e=r;n[r]&&/\S/.test(n[r]);)r+=1;for(;n[r]&&!/\S/.test(n[r]);)r+=1;for(var u=r;n[r]&&!a.test(n[r])&&!s(n[r]);)r+=1;var o=r;return{start:t,end:e,name:n.slice(u,o),toString:function(){return""}}}(n,r,e)}function g(n,t){var r,f=!0,c=!1,l=[],d=-1,p={},v={},g=0,x=[],w=[],S=[],$=[];function y(){if(")"===n[d]){for(var t=p[d];s(n[t-1]);)t-=1;return!/(if|while)$/.test(n.slice(t-5,t))}return!0}for(var b={pattern:/(?:(\()|(\))|({)|(})|(")|(')|(\/\/)|(\/\*)|(\/)|(`)|(import)|(export)|(\+\+|--))/g,handlers:[function(n){d=n,v[g++]=n},function(n){d=n,p[n]=v[--g]},function(n){d=n,l.push(b)},function(n){return d=n,l.pop()},function(n){return l.push(b),j},function(n){return l.push(b),A},function(n){return O},function(n){return k},function(t){for(var r=t;r>0&&s(n[r-1]);)r-=1;if(r>0){var c=r;if(a.test(n[c-1]))for(;c>0&&a.test(n[c-1]);)c-=1;else for(;c>0&&i.test(n[c-1]);)c-=1;var l=n.slice(c,r);f=!!l&&(e.test(l)||u.test(l)||o.test(l)&&!y())}else f=!0;return E},function(n){return z},function(r){if(0===r||s(n[r-1])||a.test(n[r-1])){var e=r+6,u=void 0;do{u=n[e++]}while(s(u));var o=e>r+7;if(/^['"{*]$/.test(u)||o&&/^[a-zA-Z_$]$/.test(u)){var i=m(n,r);x.push(i),N=i.end}else if("("===u){var f=function(n){return{start:n,end:n+6,toString:function(){return"__import"}}}(r);w.push(f),N=f.end}else if("."===u){var c=function(n,t,r){var e=h.exec(n.slice(t));if(e)return{start:t,end:t+e[0].length,toString:function(){return JSON.stringify(""+r)}}}(n,r,t);c&&(S.push(c),N=c.end)}}},function(t){if((0===t||s(n[t-1])||a.test(n[t-1]))&&/export[\s\n{]/.test(n.slice(t,t+7))){var r=_(n,t);$.push(r),N=r.end}},function(t){c=!c&&"+"===n[t-1]}]},E={pattern:/(?:(\[)|(\\)|(.))/g,handlers:[function(n){return f?U:b},function(n){return r=R,L},function(n){return f&&!c?R:b}]},R={pattern:/(?:(\[)|(\\)|(\/))/g,handlers:[function(){return U},function(){return r=R,L},function(){return b}]},U={pattern:/(?:(\])|(\\))/g,handlers:[function(){return R},function(){return r=U,L}]},j={pattern:/(?:(\\)|("))/g,handlers:[function(){return r=j,L},function(){return l.pop()}]},A={pattern:/(?:(\\)|('))/g,handlers:[function(){return r=A,L},function(){return l.pop()}]},L={pattern:/(.)/g,handlers:[function(){return r}]},z={pattern:/(?:(\${)|(\\)|(`))/g,handlers:[function(){return l.push(z),b},function(){return r=z,L},function(){return b}]},O={pattern:/((?:\n|$))/g,handlers:[function(){return b}]},k={pattern:/(\*\/)/g,handlers:[function(){return b}]},I=b,N=0;N0||I!==b)throw new Error("Unexpected end of file");break}N=P.index+P[0].length;for(var Z=1;ZFirst, you have to know what Svelte is. Svelte is a UI framework with a bold new idea: rather than providing a library that you write code with (like React or Vue, for example), it's a compiler that turns your components into highly optimized vanilla JavaScript. If you haven't already read the introductory blog post, you should!

+ +

Sapper is a Next.js-style framework (more on that here) built around Svelte. It makes it embarrassingly easy to create extremely high performance web apps. Out of the box, you get:

+ +
    +
  • Code-splitting, dynamic imports and hot module replacement, powered by webpack
  • +
  • Server-side rendering (SSR) with client-side hydration
  • +
  • Service worker for offline support, and all the PWA bells and whistles
  • +
  • The nicest development experience you've ever had, or your money back
  • +
+ +

It's implemented as Express middleware. Everything is set up and waiting for you to get started, but you keep complete control over the server, service worker, webpack config and everything else, so it's as flexible as you need it to be.

+ ` + }, + + { + title: 'How to use Sapper', + slug: 'how-to-use-sapper', + html: ` +

Step one

+

Create a new project, using degit:

+ +
npx degit "sveltejs/sapper-template#rollup" my-app
+			cd my-app
+			npm install # or yarn!
+			npm run dev
+			
+ +

Step two

+

Go to localhost:3000. Open my-app in your editor. Edit the files in the src/routes directory or add new ones.

+ +

Step three

+

...

+ +

Step four

+

Resist overdone joke formats.

+ ` + }, + + { + title: 'Why the name?', + slug: 'why-the-name', + html: ` +

In war, the soldiers who build bridges, repair roads, clear minefields and conduct demolitions — all under combat conditions — are known as sappers.

+ +

For web developers, the stakes are generally lower than those for combat engineers. But we face our own hostile environment: underpowered devices, poor network connections, and the complexity inherent in front-end engineering. Sapper, which is short for Svelte app maker, is your courageous and dutiful ally.

+ ` + }, + + { + title: 'How is Sapper different from Next.js?', + slug: 'how-is-sapper-different-from-next', + html: ` +

Next.js is a React framework from Vercel, and is the inspiration for Sapper. There are a few notable differences, however:

+ +
    +
  • It's powered by Svelte instead of React, so it's faster and your apps are smaller
  • +
  • Instead of route masking, we encode route parameters in filenames. For example, the page you're looking at right now is src/routes/blog/[slug].svelte
  • +
  • As well as pages (Svelte components, which render on server or client), you can create server routes in your routes directory. These are just .js files that export functions corresponding to HTTP methods, and receive Express request and response objects as arguments. This makes it very easy to, for example, add a JSON API such as the one powering this very page
  • +
  • Links are just <a> elements, rather than framework-specific <Link> components. That means, for example, that this link right here, despite being inside a blob of HTML, works with the router as you'd expect.
  • +
+ ` + }, + + { + title: 'How can I get involved?', + slug: 'how-can-i-get-involved', + html: ` +

We're so glad you asked! Come on over to the Svelte and Sapper repos, and join us in the Discord chatroom. Everyone is welcome, especially you!

+ ` + } +]; + +posts.forEach(post => { + post.html = post.html.replace(/^\t{3}/gm, ''); +}); + +const contents = JSON.stringify(posts.map(post => { + return { + title: post.title, + slug: post.slug + }; +})); + +function get$1(req, res) { + res.writeHead(200, { + 'Content-Type': 'application/json' + }); + + res.end(contents); +} + +var route_0 = /*#__PURE__*/Object.freeze({ + __proto__: null, + get: get$1 +}); + +const lookup = new Map(); +posts.forEach(post => { + lookup.set(post.slug, JSON.stringify(post)); +}); + +function get(req, res, next) { + // the `slug` parameter is available because + // this file is called [slug].json.js + const { slug } = req.params; + + if (lookup.has(slug)) { + res.writeHead(200, { + 'Content-Type': 'application/json' + }); + + res.end(lookup.get(slug)); + } else { + res.writeHead(404, { + 'Content-Type': 'application/json' + }); + + res.end(JSON.stringify({ + message: `Not found` + })); + } +} + +var route_1 = /*#__PURE__*/Object.freeze({ + __proto__: null, + get: get +}); + +function noop$1() { } +function run(fn) { + return fn(); +} +function blank_object() { + return Object.create(null); +} +function run_all(fns) { + fns.forEach(run); +} +function safe_not_equal(a, b) { + return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); +} + +let current_component; +function set_current_component(component) { + current_component = component; +} +function get_current_component() { + if (!current_component) + throw new Error('Function called outside component initialization'); + return current_component; +} +function afterUpdate(fn) { + get_current_component().$$.after_update.push(fn); +} +function setContext(key, context) { + get_current_component().$$.context.set(key, context); +} +Promise.resolve(); +const escaped$1 = { + '"': '"', + "'": ''', + '&': '&', + '<': '<', + '>': '>' +}; +function escape(html) { + return String(html).replace(/["'&<>]/g, match => escaped$1[match]); +} +function each(items, fn) { + let str = ''; + for (let i = 0; i < items.length; i += 1) { + str += fn(items[i], i); + } + return str; +} +const missing_component = { + $$render: () => '' +}; +function validate_component(component, name) { + if (!component || !component.$$render) { + if (name === 'svelte:component') + name += ' this={...}'; + 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`); + } + return component; +} +let on_destroy; +function create_ssr_component(fn) { + function $$render(result, props, bindings, slots, context) { + const parent_component = current_component; + const $$ = { + on_destroy, + context: new Map(parent_component ? parent_component.$$.context : context || []), + // these will be immediately discarded + on_mount: [], + before_update: [], + after_update: [], + callbacks: blank_object() + }; + set_current_component({ $$ }); + const html = fn(result, props, bindings, slots); + set_current_component(parent_component); + return html; + } + return { + render: (props = {}, { $$slots = {}, context = new Map() } = {}) => { + on_destroy = []; + const result = { title: '', head: '', css: new Set() }; + const html = $$render(result, props, {}, $$slots, context); + run_all(on_destroy); + return { + html, + css: { + code: Array.from(result.css).map(css => css.code).join('\n'), + map: null // TODO + }, + head: result.title + result.head + }; + }, + $$render + }; +} +function add_attribute(name, value, boolean) { + if (value == null || (boolean && !value)) + return ''; + return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `"${value}"`}`}`; +} + +var successkid = "/client/465898c830bb9d2c.jpg"; + +/* src/routes/index.svelte generated by Svelte v3.42.1 */ + +const css$5 = { + code: "h1.svelte-1kk9opm,figure.svelte-1kk9opm,p.svelte-1kk9opm{text-align:center;margin:0 auto}h1.svelte-1kk9opm{font-size:2.8em;text-transform:uppercase;font-weight:700;margin:0 0 0.5em 0}figure.svelte-1kk9opm{margin:0 0 1em 0}img.svelte-1kk9opm{width:100%;max-width:400px;margin:0 0 1em 0}p.svelte-1kk9opm{margin:1em auto}@media(min-width: 480px){h1.svelte-1kk9opm{font-size:4em}}", + map: "{\"version\":3,\"file\":\"index.svelte\",\"sources\":[\"index.svelte\"],\"sourcesContent\":[\"\\n\\n\\n\\n\\n\\tSapper project template\\n\\n\\n

Great success!

\\n\\n
\\n\\t\\\"Success\\n\\t
Have fun with Sapper!
\\n
\\n\\n

Try editing this file (src/routes/index.svelte) to test live reloading.

\\n\"],\"names\":[],\"mappings\":\"AAKC,iBAAE,CAAE,qBAAM,CAAE,CAAC,eAAC,CAAC,AACd,UAAU,CAAE,MAAM,CAClB,MAAM,CAAE,CAAC,CAAC,IAAI,AACf,CAAC,AAED,EAAE,eAAC,CAAC,AACH,SAAS,CAAE,KAAK,CAChB,cAAc,CAAE,SAAS,CACzB,WAAW,CAAE,GAAG,CAChB,MAAM,CAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,AACpB,CAAC,AAED,MAAM,eAAC,CAAC,AACP,MAAM,CAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,AAClB,CAAC,AAED,GAAG,eAAC,CAAC,AACJ,KAAK,CAAE,IAAI,CACX,SAAS,CAAE,KAAK,CAChB,MAAM,CAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,AAClB,CAAC,AAED,CAAC,eAAC,CAAC,AACF,MAAM,CAAE,GAAG,CAAC,IAAI,AACjB,CAAC,AAED,MAAM,AAAC,YAAY,KAAK,CAAC,AAAC,CAAC,AAC1B,EAAE,eAAC,CAAC,AACH,SAAS,CAAE,GAAG,AACf,CAAC,AACF,CAAC\"}" +}; + +const Routes = create_ssr_component(($$result, $$props, $$bindings, slots) => { + $$result.css.add(css$5); + + return `${($$result.head += `${($$result.title = `Sapper project template`, "")}`, "")} + +

Great success!

+ +
${ +
Have fun with Sapper!
+ +

Try editing this file (src/routes/index.svelte) to test live reloading.

`; +}); + +var component_0 = /*#__PURE__*/Object.freeze({ + __proto__: null, + 'default': Routes +}); + +/* src/routes/about.svelte generated by Svelte v3.42.1 */ + +const About = create_ssr_component(($$result, $$props, $$bindings, slots) => { + return `${($$result.head += `${($$result.title = `About`, "")}`, "")} + +

About this site

+ +

This is the 'about' page. There's not much here.

`; +}); + +var component_1 = /*#__PURE__*/Object.freeze({ + __proto__: null, + 'default': About +}); + +/* src/routes/blog/index.svelte generated by Svelte v3.42.1 */ + +const css$4 = { + code: "ul.svelte-1frg2tf{margin:0 0 1em 0;line-height:1.5}", + map: "{\"version\":3,\"file\":\"index.svelte\",\"sources\":[\"index.svelte\"],\"sourcesContent\":[\"\\n\\n\\n\\n\\n\\n\\n\\tBlog\\n\\n\\n

Recent posts

\\n\\n
    \\n\\t{#each posts as post}\\n\\t\\t\\n\\t\\t
  • {post.title}
  • \\n\\t{/each}\\n
\\n\"],\"names\":[],\"mappings\":\"AAaC,EAAE,eAAC,CAAC,AACH,MAAM,CAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CACjB,WAAW,CAAE,GAAG,AACjB,CAAC\"}" +}; + +function preload$1() { + return this.fetch(`blog.json`).then(r => r.json()).then(posts => { + return { posts }; + }); +} + +const Blog = create_ssr_component(($$result, $$props, $$bindings, slots) => { + let { posts } = $$props; + if ($$props.posts === void 0 && $$bindings.posts && posts !== void 0) $$bindings.posts(posts); + $$result.css.add(css$4); + + return `${($$result.head += `${($$result.title = `Blog`, "")}`, "")} + +

Recent posts

+ +`; +}); + +var component_2 = /*#__PURE__*/Object.freeze({ + __proto__: null, + 'default': Blog, + preload: preload$1 +}); + +/* src/routes/blog/[slug].svelte generated by Svelte v3.42.1 */ + +const css$3 = { + code: ".content.svelte-emm3f3 h2{font-size:1.4em;font-weight:500}.content.svelte-emm3f3 pre{background-color:#f9f9f9;box-shadow:inset 1px 1px 5px rgba(0, 0, 0, 0.05);padding:0.5em;border-radius:2px;overflow-x:auto}.content.svelte-emm3f3 pre code{background-color:transparent;padding:0}.content.svelte-emm3f3 ul{line-height:1.5}.content.svelte-emm3f3 li{margin:0 0 0.5em 0}", + map: "{\"version\":3,\"file\":\"[slug].svelte\",\"sources\":[\"[slug].svelte\"],\"sourcesContent\":[\"\\n\\n\\n\\n\\n\\n\\n\\t{post.title}\\n\\n\\n

{post.title}

\\n\\n
\\n\\t{@html post.html}\\n
\\n\"],\"names\":[],\"mappings\":\"AA4BC,sBAAQ,CAAC,AAAQ,EAAE,AAAE,CAAC,AACrB,SAAS,CAAE,KAAK,CAChB,WAAW,CAAE,GAAG,AACjB,CAAC,AAED,sBAAQ,CAAC,AAAQ,GAAG,AAAE,CAAC,AACtB,gBAAgB,CAAE,OAAO,CACzB,UAAU,CAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CACjD,OAAO,CAAE,KAAK,CACd,aAAa,CAAE,GAAG,CAClB,UAAU,CAAE,IAAI,AACjB,CAAC,AAED,sBAAQ,CAAC,AAAQ,GAAG,AAAC,CAAC,AAAQ,IAAI,AAAE,CAAC,AACpC,gBAAgB,CAAE,WAAW,CAC7B,OAAO,CAAE,CAAC,AACX,CAAC,AAED,sBAAQ,CAAC,AAAQ,EAAE,AAAE,CAAC,AACrB,WAAW,CAAE,GAAG,AACjB,CAAC,AAED,sBAAQ,CAAC,AAAQ,EAAE,AAAE,CAAC,AACrB,MAAM,CAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,AACpB,CAAC\"}" +}; + +async function preload({ params }) { + // the `slug` parameter is available because + // this file is called [slug].svelte + const res = await this.fetch(`blog/${params.slug}.json`); + + const data = await res.json(); + + if (res.status === 200) { + return { post: data }; + } else { + this.error(res.status, data.message); + } +} + +const U5Bslugu5D = create_ssr_component(($$result, $$props, $$bindings, slots) => { + let { post } = $$props; + if ($$props.post === void 0 && $$bindings.post && post !== void 0) $$bindings.post(post); + $$result.css.add(css$3); + + return `${($$result.head += `${($$result.title = `${escape(post.title)}`, "")}`, "")} + +

${escape(post.title)}

+ +
${post.html}
`; +}); + +var component_3 = /*#__PURE__*/Object.freeze({ + __proto__: null, + 'default': U5Bslugu5D, + preload: preload +}); + +/* src/components/Nav.svelte generated by Svelte v3.42.1 */ + +const css$2 = { + code: "nav.svelte-1dbd5up{border-bottom:1px solid rgba(255,62,0,0.1);font-weight:300;padding:0 1em}ul.svelte-1dbd5up{margin:0;padding:0}ul.svelte-1dbd5up::after{content:'';display:block;clear:both}li.svelte-1dbd5up{display:block;float:left}[aria-current].svelte-1dbd5up{position:relative;display:inline-block}[aria-current].svelte-1dbd5up::after{position:absolute;content:'';width:calc(100% - 1em);height:2px;background-color:rgb(255,62,0);display:block;bottom:-1px}a.svelte-1dbd5up{text-decoration:none;padding:1em 0.5em;display:block}", + map: "{\"version\":3,\"file\":\"Nav.svelte\",\"sources\":[\"Nav.svelte\"],\"sourcesContent\":[\"\\n\\n\\n\\n\\n\"],\"names\":[],\"mappings\":\"AAKC,GAAG,eAAC,CAAC,AACJ,aAAa,CAAE,GAAG,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAC3C,WAAW,CAAE,GAAG,CAChB,OAAO,CAAE,CAAC,CAAC,GAAG,AACf,CAAC,AAED,EAAE,eAAC,CAAC,AACH,MAAM,CAAE,CAAC,CACT,OAAO,CAAE,CAAC,AACX,CAAC,AAGD,iBAAE,OAAO,AAAC,CAAC,AACV,OAAO,CAAE,EAAE,CACX,OAAO,CAAE,KAAK,CACd,KAAK,CAAE,IAAI,AACZ,CAAC,AAED,EAAE,eAAC,CAAC,AACH,OAAO,CAAE,KAAK,CACd,KAAK,CAAE,IAAI,AACZ,CAAC,AAED,CAAC,YAAY,CAAC,eAAC,CAAC,AACf,QAAQ,CAAE,QAAQ,CAClB,OAAO,CAAE,YAAY,AACtB,CAAC,AAED,CAAC,YAAY,gBAAC,OAAO,AAAC,CAAC,AACtB,QAAQ,CAAE,QAAQ,CAClB,OAAO,CAAE,EAAE,CACX,KAAK,CAAE,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CACvB,MAAM,CAAE,GAAG,CACX,gBAAgB,CAAE,IAAI,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAC/B,OAAO,CAAE,KAAK,CACd,MAAM,CAAE,IAAI,AACb,CAAC,AAED,CAAC,eAAC,CAAC,AACF,eAAe,CAAE,IAAI,CACrB,OAAO,CAAE,GAAG,CAAC,KAAK,CAClB,OAAO,CAAE,KAAK,AACf,CAAC\"}" +}; + +const Nav = create_ssr_component(($$result, $$props, $$bindings, slots) => { + let { segment } = $$props; + if ($$props.segment === void 0 && $$bindings.segment && segment !== void 0) $$bindings.segment(segment); + $$result.css.add(css$2); + + return ``; +}); + +/* src/routes/_layout.svelte generated by Svelte v3.42.1 */ + +const css$1 = { + code: "main.svelte-1uhnsl8{position:relative;max-width:56em;background-color:white;padding:2em;margin:0 auto;box-sizing:border-box}", + map: "{\"version\":3,\"file\":\"_layout.svelte\",\"sources\":[\"_layout.svelte\"],\"sourcesContent\":[\"\\n\\n\\n\\n