diff --git a/.gitignore b/.gitignore index 7fbd70c..092a493 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ /node_modules/ /src/node_modules/@sapper/ yarn-error.log +/__sapper__/ /static/main.css \ No newline at end of file diff --git a/__sapper__/dev/build.json b/__sapper__/dev/build.json index 48ceda9..68ad607 100644 --- a/__sapper__/dev/build.json +++ b/__sapper__/dev/build.json @@ -2,7 +2,7 @@ "bundler": "rollup", "shimport": "2.0.4", "assets": { - "main": "client.452b5506.js" + "main": "client.c0601113.js" }, "css": { "main": [ @@ -11,28 +11,28 @@ }, "dependencies": { "index.svelte": [ - "index.9673f362.js", - "Header.3032ad3c.js", + "index.975e5116.js", + "Header.9263c473.js", "inject_styles.5607aec6.js" ], "membership.svelte": [ - "membership.78fefec2.js", - "Header.3032ad3c.js", + "membership.4a1cbac2.js", + "Header.9263c473.js", "inject_styles.5607aec6.js" ], "newsletter.svelte": [ - "newsletter.c1541cf2.js", - "Header.3032ad3c.js", + "newsletter.5ec00b49.js", + "Header.9263c473.js", "inject_styles.5607aec6.js" ], "scrapbook.svelte": [ - "scrapbook.a2b27d6d.js", - "Header.3032ad3c.js", + "scrapbook.6bbb264b.js", + "Header.9263c473.js", "inject_styles.5607aec6.js" ], "events.svelte": [ - "events.5c0efd02.js", - "Header.3032ad3c.js", + "events.ca2d0fcb.js", + "Header.9263c473.js", "inject_styles.5607aec6.js" ] } diff --git a/__sapper__/dev/client/Header.3032ad3c.js b/__sapper__/dev/client/Header.3032ad3c.js deleted file mode 100644 index b2f0157..0000000 --- a/__sapper__/dev/client/Header.3032ad3c.js +++ /dev/null @@ -1,158 +0,0 @@ -import { S as SvelteComponentDev, i as init, s as safe_not_equal, d as dispatch_dev, v as validate_slots, e as element, t as text, a as space, h as claim_element, j as children, k as claim_text, f as detach_dev, g as claim_space, m as attr_dev, n as add_location, o as insert_dev, p as append_dev, B as set_data_dev, C as noop } from './client.452b5506.js'; - -/* src/components/Header.svelte generated by Svelte v3.37.0 */ - -const file = "src/components/Header.svelte"; - -function create_fragment(ctx) { - let div1; - let div0; - let h1; - let t0; - let t1; - let p; - let t2; - - const block = { - c: function create() { - div1 = element("div"); - div0 = element("div"); - h1 = element("h1"); - t0 = text(/*title*/ ctx[0]); - t1 = space(); - p = element("p"); - t2 = text(/*description*/ ctx[1]); - this.h(); - }, - l: function claim(nodes) { - div1 = claim_element(nodes, "DIV", { class: true }); - var div1_nodes = children(div1); - div0 = claim_element(div1_nodes, "DIV", { class: true }); - var div0_nodes = children(div0); - h1 = claim_element(div0_nodes, "H1", { class: true }); - var h1_nodes = children(h1); - t0 = claim_text(h1_nodes, /*title*/ ctx[0]); - h1_nodes.forEach(detach_dev); - t1 = claim_space(div0_nodes); - p = claim_element(div0_nodes, "P", { class: true }); - var p_nodes = children(p); - t2 = claim_text(p_nodes, /*description*/ ctx[1]); - p_nodes.forEach(detach_dev); - div0_nodes.forEach(detach_dev); - div1_nodes.forEach(detach_dev); - this.h(); - }, - h: function hydrate() { - attr_dev(h1, "class", "text-6xl"); - add_location(h1, file, 7, 4, 170); - attr_dev(p, "class", "text-xl w-2/3 mx-auto"); - add_location(p, file, 8, 4, 208); - attr_dev(div0, "class", "w-2/3 mx-auto top-0 px-10 text-center"); - add_location(div0, file, 6, 2, 114); - attr_dev(div1, "class", "w-full py-16 bg-dark text-white"); - add_location(div1, file, 5, 0, 66); - }, - m: function mount(target, anchor) { - insert_dev(target, div1, anchor); - append_dev(div1, div0); - append_dev(div0, h1); - append_dev(h1, t0); - append_dev(div0, t1); - append_dev(div0, p); - append_dev(p, t2); - }, - p: function update(ctx, [dirty]) { - if (dirty & /*title*/ 1) set_data_dev(t0, /*title*/ ctx[0]); - if (dirty & /*description*/ 2) set_data_dev(t2, /*description*/ ctx[1]); - }, - i: noop, - o: noop, - d: function destroy(detaching) { - if (detaching) detach_dev(div1); - } - }; - - dispatch_dev("SvelteRegisterBlock", { - block, - id: create_fragment.name, - type: "component", - source: "", - ctx - }); - - return block; -} - -function instance($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - validate_slots("Header", slots, []); - let { title } = $$props; - let { description } = $$props; - const writable_props = ["title", "description"]; - - Object.keys($$props).forEach(key => { - if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`
was created with unknown prop '${key}'`); - }); - - $$self.$$set = $$props => { - if ("title" in $$props) $$invalidate(0, title = $$props.title); - if ("description" in $$props) $$invalidate(1, description = $$props.description); - }; - - $$self.$capture_state = () => ({ title, description }); - - $$self.$inject_state = $$props => { - if ("title" in $$props) $$invalidate(0, title = $$props.title); - if ("description" in $$props) $$invalidate(1, description = $$props.description); - }; - - if ($$props && "$$inject" in $$props) { - $$self.$inject_state($$props.$$inject); - } - - return [title, description]; -} - -class Header extends SvelteComponentDev { - constructor(options) { - super(options); - init(this, options, instance, create_fragment, safe_not_equal, { title: 0, description: 1 }); - - dispatch_dev("SvelteRegisterComponent", { - component: this, - tagName: "Header", - options, - id: create_fragment.name - }); - - const { ctx } = this.$$; - const props = options.props || {}; - - if (/*title*/ ctx[0] === undefined && !("title" in props)) { - console.warn("
was created without expected prop 'title'"); - } - - if (/*description*/ ctx[1] === undefined && !("description" in props)) { - console.warn("
was created without expected prop 'description'"); - } - } - - get title() { - throw new Error("
: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''"); - } - - set title(value) { - throw new Error("
: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''"); - } - - get description() { - throw new Error("
: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''"); - } - - set description(value) { - throw new Error("
: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''"); - } -} - -export { Header as H }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSGVhZGVyLjMwMzJhZDNjLmpzIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9IZWFkZXIuc3ZlbHRlIl0sInNvdXJjZXNDb250ZW50IjpbIjxzY3JpcHQ+XG4gIGV4cG9ydCBsZXQgdGl0bGU7XG4gIGV4cG9ydCBsZXQgZGVzY3JpcHRpb247XG48L3NjcmlwdD5cblxuPGRpdiBjbGFzcz1cInctZnVsbCBweS0xNiBiZy1kYXJrIHRleHQtd2hpdGVcIj5cbiAgPGRpdiBjbGFzcz1cInctMi8zIG14LWF1dG8gdG9wLTAgcHgtMTAgdGV4dC1jZW50ZXJcIj5cbiAgICA8aDEgY2xhc3M9XCJ0ZXh0LTZ4bFwiPnt0aXRsZX08L2gxPlxuICAgIDxwIGNsYXNzPVwidGV4dC14bCB3LTIvMyBteC1hdXRvXCI+XG4gICAgICB7ZGVzY3JpcHRpb259XG4gICAgPC9wPlxuICA8L2Rpdj5cbjwvZGl2PlxuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O3VCQU8wQixHQUFLOzs7NkJBRXhCLEdBQVc7Ozs7Ozs7Ozs7dUNBRlEsR0FBSzs7Ozs7NENBRXhCLEdBQVc7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O3VEQUZRLEdBQUs7bUVBRXhCLEdBQVc7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O09BUkwsS0FBSztPQUNMLFdBQVc7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ== diff --git a/__sapper__/dev/client/Header.79b96d0e.js b/__sapper__/dev/client/Header.79b96d0e.js deleted file mode 100644 index 20d19ae..0000000 --- a/__sapper__/dev/client/Header.79b96d0e.js +++ /dev/null @@ -1,158 +0,0 @@ -import { S as SvelteComponentDev, i as init, s as safe_not_equal, d as dispatch_dev, v as validate_slots, e as element, t as text, a as space, h as claim_element, j as children, k as claim_text, f as detach_dev, g as claim_space, m as attr_dev, n as add_location, o as insert_dev, p as append_dev, B as set_data_dev, C as noop } from './client.5cbae757.js'; - -/* src/components/Header.svelte generated by Svelte v3.37.0 */ - -const file = "src/components/Header.svelte"; - -function create_fragment(ctx) { - let div1; - let div0; - let h1; - let t0; - let t1; - let p; - let t2; - - const block = { - c: function create() { - div1 = element("div"); - div0 = element("div"); - h1 = element("h1"); - t0 = text(/*title*/ ctx[0]); - t1 = space(); - p = element("p"); - t2 = text(/*description*/ ctx[1]); - this.h(); - }, - l: function claim(nodes) { - div1 = claim_element(nodes, "DIV", { class: true }); - var div1_nodes = children(div1); - div0 = claim_element(div1_nodes, "DIV", { class: true }); - var div0_nodes = children(div0); - h1 = claim_element(div0_nodes, "H1", { class: true }); - var h1_nodes = children(h1); - t0 = claim_text(h1_nodes, /*title*/ ctx[0]); - h1_nodes.forEach(detach_dev); - t1 = claim_space(div0_nodes); - p = claim_element(div0_nodes, "P", { class: true }); - var p_nodes = children(p); - t2 = claim_text(p_nodes, /*description*/ ctx[1]); - p_nodes.forEach(detach_dev); - div0_nodes.forEach(detach_dev); - div1_nodes.forEach(detach_dev); - this.h(); - }, - h: function hydrate() { - attr_dev(h1, "class", "text-6xl"); - add_location(h1, file, 7, 4, 170); - attr_dev(p, "class", "text-xl w-2/3 mx-auto"); - add_location(p, file, 8, 4, 208); - attr_dev(div0, "class", "w-2/3 mx-auto top-0 px-10 text-center"); - add_location(div0, file, 6, 2, 114); - attr_dev(div1, "class", "w-full py-16 bg-dark text-white"); - add_location(div1, file, 5, 0, 66); - }, - m: function mount(target, anchor) { - insert_dev(target, div1, anchor); - append_dev(div1, div0); - append_dev(div0, h1); - append_dev(h1, t0); - append_dev(div0, t1); - append_dev(div0, p); - append_dev(p, t2); - }, - p: function update(ctx, [dirty]) { - if (dirty & /*title*/ 1) set_data_dev(t0, /*title*/ ctx[0]); - if (dirty & /*description*/ 2) set_data_dev(t2, /*description*/ ctx[1]); - }, - i: noop, - o: noop, - d: function destroy(detaching) { - if (detaching) detach_dev(div1); - } - }; - - dispatch_dev("SvelteRegisterBlock", { - block, - id: create_fragment.name, - type: "component", - source: "", - ctx - }); - - return block; -} - -function instance($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - validate_slots("Header", slots, []); - let { title } = $$props; - let { description } = $$props; - const writable_props = ["title", "description"]; - - Object.keys($$props).forEach(key => { - if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`
was created with unknown prop '${key}'`); - }); - - $$self.$$set = $$props => { - if ("title" in $$props) $$invalidate(0, title = $$props.title); - if ("description" in $$props) $$invalidate(1, description = $$props.description); - }; - - $$self.$capture_state = () => ({ title, description }); - - $$self.$inject_state = $$props => { - if ("title" in $$props) $$invalidate(0, title = $$props.title); - if ("description" in $$props) $$invalidate(1, description = $$props.description); - }; - - if ($$props && "$$inject" in $$props) { - $$self.$inject_state($$props.$$inject); - } - - return [title, description]; -} - -class Header extends SvelteComponentDev { - constructor(options) { - super(options); - init(this, options, instance, create_fragment, safe_not_equal, { title: 0, description: 1 }); - - dispatch_dev("SvelteRegisterComponent", { - component: this, - tagName: "Header", - options, - id: create_fragment.name - }); - - const { ctx } = this.$$; - const props = options.props || {}; - - if (/*title*/ ctx[0] === undefined && !("title" in props)) { - console.warn("
was created without expected prop 'title'"); - } - - if (/*description*/ ctx[1] === undefined && !("description" in props)) { - console.warn("
was created without expected prop 'description'"); - } - } - - get title() { - throw new Error("
: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''"); - } - - set title(value) { - throw new Error("
: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''"); - } - - get description() { - throw new Error("
: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''"); - } - - set description(value) { - throw new Error("
: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''"); - } -} - -export { Header as H }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSGVhZGVyLjc5Yjk2ZDBlLmpzIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9IZWFkZXIuc3ZlbHRlIl0sInNvdXJjZXNDb250ZW50IjpbIjxzY3JpcHQ+XG4gIGV4cG9ydCBsZXQgdGl0bGU7XG4gIGV4cG9ydCBsZXQgZGVzY3JpcHRpb247XG48L3NjcmlwdD5cblxuPGRpdiBjbGFzcz1cInctZnVsbCBweS0xNiBiZy1kYXJrIHRleHQtd2hpdGVcIj5cbiAgPGRpdiBjbGFzcz1cInctMi8zIG14LWF1dG8gdG9wLTAgcHgtMTAgdGV4dC1jZW50ZXJcIj5cbiAgICA8aDEgY2xhc3M9XCJ0ZXh0LTZ4bFwiPnt0aXRsZX08L2gxPlxuICAgIDxwIGNsYXNzPVwidGV4dC14bCB3LTIvMyBteC1hdXRvXCI+XG4gICAgICB7ZGVzY3JpcHRpb259XG4gICAgPC9wPlxuICA8L2Rpdj5cbjwvZGl2PlxuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O3VCQU8wQixHQUFLOzs7NkJBRXhCLEdBQVc7Ozs7Ozs7Ozs7dUNBRlEsR0FBSzs7Ozs7NENBRXhCLEdBQVc7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O3VEQUZRLEdBQUs7bUVBRXhCLEdBQVc7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O09BUkwsS0FBSztPQUNMLFdBQVc7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ== diff --git a/__sapper__/dev/client/Header.a54f77f9.js b/__sapper__/dev/client/Header.a54f77f9.js deleted file mode 100644 index 3b335a0..0000000 --- a/__sapper__/dev/client/Header.a54f77f9.js +++ /dev/null @@ -1,158 +0,0 @@ -import { S as SvelteComponentDev, i as init, s as safe_not_equal, d as dispatch_dev, v as validate_slots, e as element, t as text, a as space, h as claim_element, j as children, k as claim_text, f as detach_dev, g as claim_space, m as attr_dev, n as add_location, o as insert_dev, p as append_dev, B as set_data_dev, C as noop } from './client.5825bcd5.js'; - -/* src/components/Header.svelte generated by Svelte v3.37.0 */ - -const file = "src/components/Header.svelte"; - -function create_fragment(ctx) { - let div1; - let div0; - let h1; - let t0; - let t1; - let p; - let t2; - - const block = { - c: function create() { - div1 = element("div"); - div0 = element("div"); - h1 = element("h1"); - t0 = text(/*title*/ ctx[0]); - t1 = space(); - p = element("p"); - t2 = text(/*description*/ ctx[1]); - this.h(); - }, - l: function claim(nodes) { - div1 = claim_element(nodes, "DIV", { class: true }); - var div1_nodes = children(div1); - div0 = claim_element(div1_nodes, "DIV", { class: true }); - var div0_nodes = children(div0); - h1 = claim_element(div0_nodes, "H1", { class: true }); - var h1_nodes = children(h1); - t0 = claim_text(h1_nodes, /*title*/ ctx[0]); - h1_nodes.forEach(detach_dev); - t1 = claim_space(div0_nodes); - p = claim_element(div0_nodes, "P", { class: true }); - var p_nodes = children(p); - t2 = claim_text(p_nodes, /*description*/ ctx[1]); - p_nodes.forEach(detach_dev); - div0_nodes.forEach(detach_dev); - div1_nodes.forEach(detach_dev); - this.h(); - }, - h: function hydrate() { - attr_dev(h1, "class", "text-6xl"); - add_location(h1, file, 7, 4, 170); - attr_dev(p, "class", "text-xl w-2/3 mx-auto"); - add_location(p, file, 8, 4, 208); - attr_dev(div0, "class", "w-2/3 mx-auto top-0 px-10 text-center"); - add_location(div0, file, 6, 2, 114); - attr_dev(div1, "class", "w-full py-16 bg-dark text-white"); - add_location(div1, file, 5, 0, 66); - }, - m: function mount(target, anchor) { - insert_dev(target, div1, anchor); - append_dev(div1, div0); - append_dev(div0, h1); - append_dev(h1, t0); - append_dev(div0, t1); - append_dev(div0, p); - append_dev(p, t2); - }, - p: function update(ctx, [dirty]) { - if (dirty & /*title*/ 1) set_data_dev(t0, /*title*/ ctx[0]); - if (dirty & /*description*/ 2) set_data_dev(t2, /*description*/ ctx[1]); - }, - i: noop, - o: noop, - d: function destroy(detaching) { - if (detaching) detach_dev(div1); - } - }; - - dispatch_dev("SvelteRegisterBlock", { - block, - id: create_fragment.name, - type: "component", - source: "", - ctx - }); - - return block; -} - -function instance($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - validate_slots("Header", slots, []); - let { title } = $$props; - let { description } = $$props; - const writable_props = ["title", "description"]; - - Object.keys($$props).forEach(key => { - if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`
was created with unknown prop '${key}'`); - }); - - $$self.$$set = $$props => { - if ("title" in $$props) $$invalidate(0, title = $$props.title); - if ("description" in $$props) $$invalidate(1, description = $$props.description); - }; - - $$self.$capture_state = () => ({ title, description }); - - $$self.$inject_state = $$props => { - if ("title" in $$props) $$invalidate(0, title = $$props.title); - if ("description" in $$props) $$invalidate(1, description = $$props.description); - }; - - if ($$props && "$$inject" in $$props) { - $$self.$inject_state($$props.$$inject); - } - - return [title, description]; -} - -class Header extends SvelteComponentDev { - constructor(options) { - super(options); - init(this, options, instance, create_fragment, safe_not_equal, { title: 0, description: 1 }); - - dispatch_dev("SvelteRegisterComponent", { - component: this, - tagName: "Header", - options, - id: create_fragment.name - }); - - const { ctx } = this.$$; - const props = options.props || {}; - - if (/*title*/ ctx[0] === undefined && !("title" in props)) { - console.warn("
was created without expected prop 'title'"); - } - - if (/*description*/ ctx[1] === undefined && !("description" in props)) { - console.warn("
was created without expected prop 'description'"); - } - } - - get title() { - throw new Error("
: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''"); - } - - set title(value) { - throw new Error("
: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''"); - } - - get description() { - throw new Error("
: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''"); - } - - set description(value) { - throw new Error("
: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''"); - } -} - -export { Header as H }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSGVhZGVyLmE1NGY3N2Y5LmpzIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9IZWFkZXIuc3ZlbHRlIl0sInNvdXJjZXNDb250ZW50IjpbIjxzY3JpcHQ+XG4gIGV4cG9ydCBsZXQgdGl0bGU7XG4gIGV4cG9ydCBsZXQgZGVzY3JpcHRpb247XG48L3NjcmlwdD5cblxuPGRpdiBjbGFzcz1cInctZnVsbCBweS0xNiBiZy1kYXJrIHRleHQtd2hpdGVcIj5cbiAgPGRpdiBjbGFzcz1cInctMi8zIG14LWF1dG8gdG9wLTAgcHgtMTAgdGV4dC1jZW50ZXJcIj5cbiAgICA8aDEgY2xhc3M9XCJ0ZXh0LTZ4bFwiPnt0aXRsZX08L2gxPlxuICAgIDxwIGNsYXNzPVwidGV4dC14bCB3LTIvMyBteC1hdXRvXCI+XG4gICAgICB7ZGVzY3JpcHRpb259XG4gICAgPC9wPlxuICA8L2Rpdj5cbjwvZGl2PlxuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O3VCQU8wQixHQUFLOzs7NkJBRXhCLEdBQVc7Ozs7Ozs7Ozs7dUNBRlEsR0FBSzs7Ozs7NENBRXhCLEdBQVc7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O3VEQUZRLEdBQUs7bUVBRXhCLEdBQVc7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O09BUkwsS0FBSztPQUNMLFdBQVc7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ== diff --git a/__sapper__/dev/client/Header.f9a47f00.js b/__sapper__/dev/client/Header.f9a47f00.js deleted file mode 100644 index a57c0cd..0000000 --- a/__sapper__/dev/client/Header.f9a47f00.js +++ /dev/null @@ -1,158 +0,0 @@ -import { S as SvelteComponentDev, i as init, s as safe_not_equal, d as dispatch_dev, v as validate_slots, e as element, t as text, a as space, h as claim_element, j as children, k as claim_text, f as detach_dev, g as claim_space, m as attr_dev, n as add_location, o as insert_dev, p as append_dev, B as set_data_dev, C as noop } from './client.9d7c3be9.js'; - -/* src/components/Header.svelte generated by Svelte v3.37.0 */ - -const file = "src/components/Header.svelte"; - -function create_fragment(ctx) { - let div1; - let div0; - let h1; - let t0; - let t1; - let p; - let t2; - - const block = { - c: function create() { - div1 = element("div"); - div0 = element("div"); - h1 = element("h1"); - t0 = text(/*title*/ ctx[0]); - t1 = space(); - p = element("p"); - t2 = text(/*description*/ ctx[1]); - this.h(); - }, - l: function claim(nodes) { - div1 = claim_element(nodes, "DIV", { class: true }); - var div1_nodes = children(div1); - div0 = claim_element(div1_nodes, "DIV", { class: true }); - var div0_nodes = children(div0); - h1 = claim_element(div0_nodes, "H1", { class: true }); - var h1_nodes = children(h1); - t0 = claim_text(h1_nodes, /*title*/ ctx[0]); - h1_nodes.forEach(detach_dev); - t1 = claim_space(div0_nodes); - p = claim_element(div0_nodes, "P", { class: true }); - var p_nodes = children(p); - t2 = claim_text(p_nodes, /*description*/ ctx[1]); - p_nodes.forEach(detach_dev); - div0_nodes.forEach(detach_dev); - div1_nodes.forEach(detach_dev); - this.h(); - }, - h: function hydrate() { - attr_dev(h1, "class", "text-6xl"); - add_location(h1, file, 7, 4, 170); - attr_dev(p, "class", "text-xl w-2/3 mx-auto"); - add_location(p, file, 8, 4, 208); - attr_dev(div0, "class", "w-2/3 mx-auto top-0 px-10 text-center"); - add_location(div0, file, 6, 2, 114); - attr_dev(div1, "class", "w-full py-16 bg-dark text-white"); - add_location(div1, file, 5, 0, 66); - }, - m: function mount(target, anchor) { - insert_dev(target, div1, anchor); - append_dev(div1, div0); - append_dev(div0, h1); - append_dev(h1, t0); - append_dev(div0, t1); - append_dev(div0, p); - append_dev(p, t2); - }, - p: function update(ctx, [dirty]) { - if (dirty & /*title*/ 1) set_data_dev(t0, /*title*/ ctx[0]); - if (dirty & /*description*/ 2) set_data_dev(t2, /*description*/ ctx[1]); - }, - i: noop, - o: noop, - d: function destroy(detaching) { - if (detaching) detach_dev(div1); - } - }; - - dispatch_dev("SvelteRegisterBlock", { - block, - id: create_fragment.name, - type: "component", - source: "", - ctx - }); - - return block; -} - -function instance($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - validate_slots("Header", slots, []); - let { title } = $$props; - let { description } = $$props; - const writable_props = ["title", "description"]; - - Object.keys($$props).forEach(key => { - if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`
was created with unknown prop '${key}'`); - }); - - $$self.$$set = $$props => { - if ("title" in $$props) $$invalidate(0, title = $$props.title); - if ("description" in $$props) $$invalidate(1, description = $$props.description); - }; - - $$self.$capture_state = () => ({ title, description }); - - $$self.$inject_state = $$props => { - if ("title" in $$props) $$invalidate(0, title = $$props.title); - if ("description" in $$props) $$invalidate(1, description = $$props.description); - }; - - if ($$props && "$$inject" in $$props) { - $$self.$inject_state($$props.$$inject); - } - - return [title, description]; -} - -class Header extends SvelteComponentDev { - constructor(options) { - super(options); - init(this, options, instance, create_fragment, safe_not_equal, { title: 0, description: 1 }); - - dispatch_dev("SvelteRegisterComponent", { - component: this, - tagName: "Header", - options, - id: create_fragment.name - }); - - const { ctx } = this.$$; - const props = options.props || {}; - - if (/*title*/ ctx[0] === undefined && !("title" in props)) { - console.warn("
was created without expected prop 'title'"); - } - - if (/*description*/ ctx[1] === undefined && !("description" in props)) { - console.warn("
was created without expected prop 'description'"); - } - } - - get title() { - throw new Error("
: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''"); - } - - set title(value) { - throw new Error("
: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''"); - } - - get description() { - throw new Error("
: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''"); - } - - set description(value) { - throw new Error("
: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''"); - } -} - -export { Header as H }; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSGVhZGVyLmY5YTQ3ZjAwLmpzIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9IZWFkZXIuc3ZlbHRlIl0sInNvdXJjZXNDb250ZW50IjpbIjxzY3JpcHQ+XG4gIGV4cG9ydCBsZXQgdGl0bGU7XG4gIGV4cG9ydCBsZXQgZGVzY3JpcHRpb247XG48L3NjcmlwdD5cblxuPGRpdiBjbGFzcz1cInctZnVsbCBweS0xNiBiZy1kYXJrIHRleHQtd2hpdGVcIj5cbiAgPGRpdiBjbGFzcz1cInctMi8zIG14LWF1dG8gdG9wLTAgcHgtMTAgdGV4dC1jZW50ZXJcIj5cbiAgICA8aDEgY2xhc3M9XCJ0ZXh0LTZ4bFwiPnt0aXRsZX08L2gxPlxuICAgIDxwIGNsYXNzPVwidGV4dC14bCB3LTIvMyBteC1hdXRvXCI+XG4gICAgICB7ZGVzY3JpcHRpb259XG4gICAgPC9wPlxuICA8L2Rpdj5cbjwvZGl2PlxuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O3VCQU8wQixHQUFLOzs7NkJBRXhCLEdBQVc7Ozs7Ozs7Ozs7dUNBRlEsR0FBSzs7Ozs7NENBRXhCLEdBQVc7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O3VEQUZRLEdBQUs7bUVBRXhCLEdBQVc7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O09BUkwsS0FBSztPQUNMLFdBQVc7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ== diff --git a/__sapper__/dev/client/client.452b5506.js b/__sapper__/dev/client/client.452b5506.js deleted file mode 100644 index 0db15a1..0000000 --- a/__sapper__/dev/client/client.452b5506.js +++ /dev/null @@ -1,2456 +0,0 @@ -function noop() { } -function assign(tar, src) { - // @ts-ignore - for (const k in src) - tar[k] = src[k]; - return tar; -} -function add_location(element, file, line, column, char) { - element.__svelte_meta = { - loc: { file, line, column, char } - }; -} -function run(fn) { - return fn(); -} -function blank_object() { - return Object.create(null); -} -function run_all(fns) { - fns.forEach(run); -} -function is_function(thing) { - return typeof thing === 'function'; -} -function safe_not_equal(a, b) { - return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); -} -function is_empty(obj) { - return Object.keys(obj).length === 0; -} -function create_slot(definition, ctx, $$scope, fn) { - if (definition) { - const slot_ctx = get_slot_context(definition, ctx, $$scope, fn); - return definition[0](slot_ctx); - } -} -function get_slot_context(definition, ctx, $$scope, fn) { - return definition[1] && fn - ? assign($$scope.ctx.slice(), definition[1](fn(ctx))) - : $$scope.ctx; -} -function get_slot_changes(definition, $$scope, dirty, fn) { - if (definition[2] && fn) { - const lets = definition[2](fn(dirty)); - if ($$scope.dirty === undefined) { - return lets; - } - if (typeof lets === 'object') { - const merged = []; - const len = Math.max($$scope.dirty.length, lets.length); - for (let i = 0; i < len; i += 1) { - merged[i] = $$scope.dirty[i] | lets[i]; - } - return merged; - } - return $$scope.dirty | lets; - } - return $$scope.dirty; -} -function update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) { - const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn); - if (slot_changes) { - const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn); - slot.p(slot_context, slot_changes); - } -} - -function append(target, node) { - target.appendChild(node); -} -function insert(target, node, anchor) { - target.insertBefore(node, anchor || null); -} -function detach(node) { - node.parentNode.removeChild(node); -} -function element(name) { - return document.createElement(name); -} -function svg_element(name) { - return document.createElementNS('http://www.w3.org/2000/svg', name); -} -function text(data) { - return document.createTextNode(data); -} -function space() { - return text(' '); -} -function empty() { - return text(''); -} -function listen(node, event, handler, options) { - node.addEventListener(event, handler, options); - return () => node.removeEventListener(event, handler, options); -} -function attr(node, attribute, value) { - if (value == null) - node.removeAttribute(attribute); - else if (node.getAttribute(attribute) !== value) - node.setAttribute(attribute, value); -} -function children(element) { - return Array.from(element.childNodes); -} -function claim_element(nodes, name, attributes, svg) { - for (let i = 0; i < nodes.length; i += 1) { - const node = nodes[i]; - if (node.nodeName === name) { - let j = 0; - const remove = []; - while (j < node.attributes.length) { - const attribute = node.attributes[j++]; - if (!attributes[attribute.name]) { - remove.push(attribute.name); - } - } - for (let k = 0; k < remove.length; k++) { - node.removeAttribute(remove[k]); - } - return nodes.splice(i, 1)[0]; - } - } - return svg ? svg_element(name) : element(name); -} -function claim_text(nodes, data) { - for (let i = 0; i < nodes.length; i += 1) { - const node = nodes[i]; - if (node.nodeType === 3) { - node.data = '' + data; - return nodes.splice(i, 1)[0]; - } - } - return text(data); -} -function claim_space(nodes) { - return claim_text(nodes, ' '); -} -function custom_event(type, detail) { - const e = document.createEvent('CustomEvent'); - e.initCustomEvent(type, false, false, detail); - return e; -} -function query_selector_all(selector, parent = document.body) { - return Array.from(parent.querySelectorAll(selector)); -} - -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); -} - -const dirty_components = []; -const binding_callbacks = []; -const render_callbacks = []; -const flush_callbacks = []; -const resolved_promise = Promise.resolve(); -let update_scheduled = false; -function schedule_update() { - if (!update_scheduled) { - update_scheduled = true; - resolved_promise.then(flush); - } -} -function add_render_callback(fn) { - render_callbacks.push(fn); -} -let flushing = false; -const seen_callbacks = new Set(); -function flush() { - if (flushing) - return; - flushing = true; - do { - // first, call beforeUpdate functions - // and update components - for (let i = 0; i < dirty_components.length; i += 1) { - const component = dirty_components[i]; - set_current_component(component); - update(component.$$); - } - set_current_component(null); - dirty_components.length = 0; - while (binding_callbacks.length) - binding_callbacks.pop()(); - // then, once components are updated, call - // afterUpdate functions. This may cause - // subsequent updates... - for (let i = 0; i < render_callbacks.length; i += 1) { - const callback = render_callbacks[i]; - if (!seen_callbacks.has(callback)) { - // ...so guard against infinite loops - seen_callbacks.add(callback); - callback(); - } - } - render_callbacks.length = 0; - } while (dirty_components.length); - while (flush_callbacks.length) { - flush_callbacks.pop()(); - } - update_scheduled = false; - flushing = false; - seen_callbacks.clear(); -} -function update($$) { - if ($$.fragment !== null) { - $$.update(); - run_all($$.before_update); - const dirty = $$.dirty; - $$.dirty = [-1]; - $$.fragment && $$.fragment.p($$.ctx, dirty); - $$.after_update.forEach(add_render_callback); - } -} -const outroing = new Set(); -let outros; -function group_outros() { - outros = { - r: 0, - c: [], - p: outros // parent group - }; -} -function check_outros() { - if (!outros.r) { - run_all(outros.c); - } - outros = outros.p; -} -function transition_in(block, local) { - if (block && block.i) { - outroing.delete(block); - block.i(local); - } -} -function transition_out(block, local, detach, callback) { - if (block && block.o) { - if (outroing.has(block)) - return; - outroing.add(block); - outros.c.push(() => { - outroing.delete(block); - if (callback) { - if (detach) - block.d(1); - callback(); - } - }); - block.o(local); - } -} - -const globals = (typeof window !== 'undefined' - ? window - : typeof globalThis !== 'undefined' - ? globalThis - : global); - -function get_spread_update(levels, updates) { - const update = {}; - const to_null_out = {}; - const accounted_for = { $$scope: 1 }; - let i = levels.length; - while (i--) { - const o = levels[i]; - const n = updates[i]; - if (n) { - for (const key in o) { - if (!(key in n)) - to_null_out[key] = 1; - } - for (const key in n) { - if (!accounted_for[key]) { - update[key] = n[key]; - accounted_for[key] = 1; - } - } - levels[i] = n; - } - else { - for (const key in o) { - accounted_for[key] = 1; - } - } - } - for (const key in to_null_out) { - if (!(key in update)) - update[key] = undefined; - } - return update; -} -function get_spread_object(spread_props) { - return typeof spread_props === 'object' && spread_props !== null ? spread_props : {}; -} -function create_component(block) { - block && block.c(); -} -function claim_component(block, parent_nodes) { - block && block.l(parent_nodes); -} -function mount_component(component, target, anchor, customElement) { - const { fragment, on_mount, on_destroy, after_update } = component.$$; - fragment && fragment.m(target, anchor); - if (!customElement) { - // onMount happens before the initial afterUpdate - add_render_callback(() => { - const new_on_destroy = on_mount.map(run).filter(is_function); - if (on_destroy) { - on_destroy.push(...new_on_destroy); - } - else { - // Edge case - component was destroyed immediately, - // most likely as a result of a binding initialising - run_all(new_on_destroy); - } - component.$$.on_mount = []; - }); - } - after_update.forEach(add_render_callback); -} -function destroy_component(component, detaching) { - const $$ = component.$$; - if ($$.fragment !== null) { - run_all($$.on_destroy); - $$.fragment && $$.fragment.d(detaching); - // TODO null out other refs, including component.$$ (but need to - // preserve final state?) - $$.on_destroy = $$.fragment = null; - $$.ctx = []; - } -} -function make_dirty(component, i) { - if (component.$$.dirty[0] === -1) { - dirty_components.push(component); - schedule_update(); - component.$$.dirty.fill(0); - } - component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31)); -} -function init$1(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) { - const parent_component = current_component; - set_current_component(component); - const $$ = component.$$ = { - fragment: null, - ctx: null, - // state - props, - update: noop, - not_equal, - bound: blank_object(), - // lifecycle - on_mount: [], - on_destroy: [], - on_disconnect: [], - before_update: [], - after_update: [], - context: new Map(parent_component ? parent_component.$$.context : options.context || []), - // everything else - callbacks: blank_object(), - dirty, - skip_bound: false - }; - let ready = false; - $$.ctx = instance - ? instance(component, options.props || {}, (i, ret, ...rest) => { - const value = rest.length ? rest[0] : ret; - if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) { - if (!$$.skip_bound && $$.bound[i]) - $$.bound[i](value); - if (ready) - make_dirty(component, i); - } - return ret; - }) - : []; - $$.update(); - ready = true; - run_all($$.before_update); - // `false` as a special case of no DOM component - $$.fragment = create_fragment ? create_fragment($$.ctx) : false; - if (options.target) { - if (options.hydrate) { - const nodes = children(options.target); - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - $$.fragment && $$.fragment.l(nodes); - nodes.forEach(detach); - } - else { - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - $$.fragment && $$.fragment.c(); - } - if (options.intro) - transition_in(component.$$.fragment); - mount_component(component, options.target, options.anchor, options.customElement); - flush(); - } - set_current_component(parent_component); -} -/** - * Base class for Svelte components. Used when dev=false. - */ -class SvelteComponent { - $destroy() { - destroy_component(this, 1); - this.$destroy = noop; - } - $on(type, callback) { - const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = [])); - callbacks.push(callback); - return () => { - const index = callbacks.indexOf(callback); - if (index !== -1) - callbacks.splice(index, 1); - }; - } - $set($$props) { - if (this.$$set && !is_empty($$props)) { - this.$$.skip_bound = true; - this.$$set($$props); - this.$$.skip_bound = false; - } - } -} - -function dispatch_dev(type, detail) { - document.dispatchEvent(custom_event(type, Object.assign({ version: '3.37.0' }, detail))); -} -function append_dev(target, node) { - dispatch_dev('SvelteDOMInsert', { target, node }); - append(target, node); -} -function insert_dev(target, node, anchor) { - dispatch_dev('SvelteDOMInsert', { target, node, anchor }); - insert(target, node, anchor); -} -function detach_dev(node) { - dispatch_dev('SvelteDOMRemove', { node }); - detach(node); -} -function listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) { - const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : []; - if (has_prevent_default) - modifiers.push('preventDefault'); - if (has_stop_propagation) - modifiers.push('stopPropagation'); - dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers }); - const dispose = listen(node, event, handler, options); - return () => { - dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers }); - dispose(); - }; -} -function attr_dev(node, attribute, value) { - attr(node, attribute, value); - if (value == null) - dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute }); - else - dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value }); -} -function set_data_dev(text, data) { - data = '' + data; - if (text.wholeText === data) - return; - dispatch_dev('SvelteDOMSetData', { node: text, data }); - text.data = data; -} -function validate_slots(name, slot, keys) { - for (const slot_key of Object.keys(slot)) { - if (!~keys.indexOf(slot_key)) { - console.warn(`<${name}> received an unexpected slot "${slot_key}".`); - } - } -} -/** - * Base class for Svelte components with some minor dev-enhancements. Used when dev=true. - */ -class SvelteComponentDev extends SvelteComponent { - constructor(options) { - if (!options || (!options.target && !options.$$inline)) { - throw new Error("'target' is a required option"); - } - super(); - } - $destroy() { - super.$destroy(); - this.$destroy = () => { - console.warn('Component was already destroyed'); // eslint-disable-line no-console - }; - } - $capture_state() { } - $inject_state() { } -} - -const subscriber_queue = []; -/** - * Create a `Writable` store that allows both updating and reading by subscription. - * @param {*=}value initial value - * @param {StartStopNotifier=}start start and stop notifications for subscriptions - */ -function writable(value, start = noop) { - let stop; - const subscribers = []; - function set(new_value) { - if (safe_not_equal(value, new_value)) { - value = new_value; - if (stop) { // store is ready - const run_queue = !subscriber_queue.length; - for (let i = 0; i < subscribers.length; i += 1) { - const s = subscribers[i]; - s[1](); - subscriber_queue.push(s, value); - } - if (run_queue) { - for (let i = 0; i < subscriber_queue.length; i += 2) { - subscriber_queue[i][0](subscriber_queue[i + 1]); - } - subscriber_queue.length = 0; - } - } - } - } - function update(fn) { - set(fn(value)); - } - function subscribe(run, invalidate = noop) { - const subscriber = [run, invalidate]; - subscribers.push(subscriber); - if (subscribers.length === 1) { - stop = start(set) || noop; - } - run(value); - return () => { - const index = subscribers.indexOf(subscriber); - if (index !== -1) { - subscribers.splice(index, 1); - } - if (subscribers.length === 0) { - stop(); - stop = null; - } - }; - } - return { set, update, subscribe }; -} - -const CONTEXT_KEY = {}; - -/* src/components/Nav.svelte generated by Svelte v3.37.0 */ - -const { console: console_1 } = globals; -const file$3 = "src/components/Nav.svelte"; - -function create_fragment$4(ctx) { - let div1; - let div0; - let nav; - let a0; - let img0; - let img0_src_value; - let t0; - let a1; - let img1; - let img1_src_value; - let t1; - let ul; - let li0; - let a2; - let t2; - let a2_aria_current_value; - let t3; - let li1; - let a3; - let t4; - let a3_aria_current_value; - let t5; - let li2; - let a4; - let t6; - let a4_aria_current_value; - let t7; - let li3; - let a5; - let t8; - let a5_aria_current_value; - let mounted; - let dispose; - - const block = { - c: function create() { - div1 = element("div"); - div0 = element("div"); - nav = element("nav"); - a0 = element("a"); - img0 = element("img"); - t0 = space(); - a1 = element("a"); - img1 = element("img"); - t1 = space(); - ul = element("ul"); - li0 = element("li"); - a2 = element("a"); - t2 = text("Home"); - t3 = space(); - li1 = element("li"); - a3 = element("a"); - t4 = text("Events"); - t5 = space(); - li2 = element("li"); - a4 = element("a"); - t6 = text("Scrapbook"); - t7 = space(); - li3 = element("li"); - a5 = element("a"); - t8 = text("Newsletter"); - this.h(); - }, - l: function claim(nodes) { - div1 = claim_element(nodes, "DIV", { class: true }); - var div1_nodes = children(div1); - div0 = claim_element(div1_nodes, "DIV", { class: true }); - var div0_nodes = children(div0); - nav = claim_element(div0_nodes, "NAV", { class: true }); - var nav_nodes = children(nav); - a0 = claim_element(nav_nodes, "A", { href: true }); - var a0_nodes = children(a0); - img0 = claim_element(a0_nodes, "IMG", { class: true, src: true, alt: true }); - a0_nodes.forEach(detach_dev); - t0 = claim_space(nav_nodes); - a1 = claim_element(nav_nodes, "A", { href: true, class: true }); - var a1_nodes = children(a1); - - img1 = claim_element(a1_nodes, "IMG", { - class: true, - src: true, - id: true, - alt: true - }); - - a1_nodes.forEach(detach_dev); - t1 = claim_space(nav_nodes); - ul = claim_element(nav_nodes, "UL", { class: true, id: true }); - var ul_nodes = children(ul); - li0 = claim_element(ul_nodes, "LI", { class: true }); - var li0_nodes = children(li0); - - a2 = claim_element(li0_nodes, "A", { - "aria-current": true, - href: true, - class: true - }); - - var a2_nodes = children(a2); - t2 = claim_text(a2_nodes, "Home"); - a2_nodes.forEach(detach_dev); - li0_nodes.forEach(detach_dev); - t3 = claim_space(ul_nodes); - li1 = claim_element(ul_nodes, "LI", { class: true }); - var li1_nodes = children(li1); - - a3 = claim_element(li1_nodes, "A", { - "aria-current": true, - href: true, - class: true - }); - - var a3_nodes = children(a3); - t4 = claim_text(a3_nodes, "Events"); - a3_nodes.forEach(detach_dev); - li1_nodes.forEach(detach_dev); - t5 = claim_space(ul_nodes); - li2 = claim_element(ul_nodes, "LI", { class: true }); - var li2_nodes = children(li2); - - a4 = claim_element(li2_nodes, "A", { - "aria-current": true, - href: true, - class: true - }); - - var a4_nodes = children(a4); - t6 = claim_text(a4_nodes, "Scrapbook"); - a4_nodes.forEach(detach_dev); - li2_nodes.forEach(detach_dev); - t7 = claim_space(ul_nodes); - li3 = claim_element(ul_nodes, "LI", { class: true }); - var li3_nodes = children(li3); - - a5 = claim_element(li3_nodes, "A", { - "aria-current": true, - href: true, - class: true - }); - - var a5_nodes = children(a5); - t8 = claim_text(a5_nodes, "Newsletter"); - a5_nodes.forEach(detach_dev); - li3_nodes.forEach(detach_dev); - ul_nodes.forEach(detach_dev); - nav_nodes.forEach(detach_dev); - div0_nodes.forEach(detach_dev); - div1_nodes.forEach(detach_dev); - this.h(); - }, - h: function hydrate() { - attr_dev(img0, "class", "h-24"); - if (img0.src !== (img0_src_value = "hackFlag.png")) attr_dev(img0, "src", img0_src_value); - attr_dev(img0, "alt", "logo"); - add_location(img0, file$3, 37, 8, 879); - attr_dev(a0, "href", "."); - add_location(a0, file$3, 36, 6, 858); - attr_dev(img1, "class", "md:hidden m-4 w-8 h-8"); - if (img1.src !== (img1_src_value = "ham.png")) attr_dev(img1, "src", img1_src_value); - attr_dev(img1, "id", "hamburgerbtn"); - attr_dev(img1, "alt", "menu"); - add_location(img1, file$3, 40, 8, 1006); - attr_dev(a1, "href", "."); - attr_dev(a1, "class", "flex flex-row justify-between"); - add_location(a1, file$3, 39, 6, 947); - attr_dev(a2, "aria-current", a2_aria_current_value = /*segment*/ ctx[0] === undefined ? "page" : undefined); - attr_dev(a2, "href", "."); - attr_dev(a2, "class", "svelte-15qp21g"); - add_location(a2, file$3, 51, 10, 1311); - attr_dev(li0, "class", "m-5 px-5"); - add_location(li0, file$3, 50, 8, 1253); - attr_dev(a3, "aria-current", a3_aria_current_value = /*segment*/ ctx[0] === "events" ? "page" : undefined); - attr_dev(a3, "href", "events"); - attr_dev(a3, "class", "svelte-15qp21g"); - add_location(a3, file$3, 56, 10, 1494); - attr_dev(li1, "class", "m-5 px-5"); - add_location(li1, file$3, 55, 8, 1436); - attr_dev(a4, "aria-current", a4_aria_current_value = /*segment*/ ctx[0] === "scrapbook" ? "page" : undefined); - attr_dev(a4, "href", "scrapbook"); - attr_dev(a4, "class", "svelte-15qp21g"); - add_location(a4, file$3, 62, 10, 1694); - attr_dev(li2, "class", "m-5 px-5"); - add_location(li2, file$3, 61, 8, 1636); - attr_dev(a5, "aria-current", a5_aria_current_value = /*segment*/ ctx[0] === "newsletter" ? "page" : undefined); - attr_dev(a5, "href", "newsletter"); - attr_dev(a5, "class", "svelte-15qp21g"); - add_location(a5, file$3, 68, 10, 1903); - attr_dev(li3, "class", "m-5 px-5"); - add_location(li3, file$3, 67, 8, 1845); - attr_dev(ul, "class", "hidden md:flex md:flex-row"); - attr_dev(ul, "id", "mobileMenu"); - add_location(ul, file$3, 49, 6, 1189); - attr_dev(nav, "class", "flex md:justify-between items-center"); - add_location(nav, file$3, 35, 4, 801); - attr_dev(div0, "class", "w-2/3 mx-auto top-0 px-10"); - add_location(div0, file$3, 34, 2, 757); - attr_dev(div1, "class", "w-full bg-dark text-white sticky"); - add_location(div1, file$3, 33, 0, 708); - }, - m: function mount(target, anchor) { - insert_dev(target, div1, anchor); - append_dev(div1, div0); - append_dev(div0, nav); - append_dev(nav, a0); - append_dev(a0, img0); - append_dev(nav, t0); - append_dev(nav, a1); - append_dev(a1, img1); - append_dev(nav, t1); - append_dev(nav, ul); - append_dev(ul, li0); - append_dev(li0, a2); - append_dev(a2, t2); - append_dev(ul, t3); - append_dev(ul, li1); - append_dev(li1, a3); - append_dev(a3, t4); - append_dev(ul, t5); - append_dev(ul, li2); - append_dev(li2, a4); - append_dev(a4, t6); - append_dev(ul, t7); - append_dev(ul, li3); - append_dev(li3, a5); - append_dev(a5, t8); - - if (!mounted) { - dispose = [ - listen_dev(img1, "click", handleHamClick, false, false, false), - listen_dev(li0, "click", handleHamClick, false, false, false), - listen_dev(li1, "click", handleHamClick, false, false, false), - listen_dev(li2, "click", handleHamClick, false, false, false), - listen_dev(li3, "click", handleHamClick, false, false, false) - ]; - - mounted = true; - } - }, - p: function update(ctx, [dirty]) { - if (dirty & /*segment*/ 1 && a2_aria_current_value !== (a2_aria_current_value = /*segment*/ ctx[0] === undefined ? "page" : undefined)) { - attr_dev(a2, "aria-current", a2_aria_current_value); - } - - if (dirty & /*segment*/ 1 && a3_aria_current_value !== (a3_aria_current_value = /*segment*/ ctx[0] === "events" ? "page" : undefined)) { - attr_dev(a3, "aria-current", a3_aria_current_value); - } - - if (dirty & /*segment*/ 1 && a4_aria_current_value !== (a4_aria_current_value = /*segment*/ ctx[0] === "scrapbook" ? "page" : undefined)) { - attr_dev(a4, "aria-current", a4_aria_current_value); - } - - if (dirty & /*segment*/ 1 && a5_aria_current_value !== (a5_aria_current_value = /*segment*/ ctx[0] === "newsletter" ? "page" : undefined)) { - attr_dev(a5, "aria-current", a5_aria_current_value); - } - }, - i: noop, - o: noop, - d: function destroy(detaching) { - if (detaching) detach_dev(div1); - mounted = false; - run_all(dispose); - } - }; - - dispatch_dev("SvelteRegisterBlock", { - block, - id: create_fragment$4.name, - type: "component", - source: "", - ctx - }); - - return block; -} - -function handleHamClick() { - let hamBar = document.getElementById("hamburgerbtn"); - let mobileMenu = document.getElementById("mobileMenu"); - let classEl = mobileMenu.classList; - let f = true; - - for (const i in classEl) { - if (classEl[i] == "hidden") { - mobileMenu.classList.remove("hidden"); - hamBar.classList.add("hidden"); - f = false; - } - } - - if (f) { - mobileMenu.classList.add("hidden"); - hamBar.classList.remove("hidden"); - } -} - -function handleColorSwitch() { - let mode; - console.log(mode); -} - -function instance$4($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - validate_slots("Nav", slots, []); - let { segment } = $$props; - const writable_props = ["segment"]; - - Object.keys($$props).forEach(key => { - if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console_1.warn(`