text: import { S as SvelteComponentDev, i as init, d as dispatch_dev, s as safe_not_equal, v as validate_slots, n as space, e as element, t as text, q as query_selector_all, f as detach_dev, p as claim_space, c as claim_element, a as children, b as claim_text, h as add_location, j as attr_dev, k as insert_dev, l as append_dev, m as set_data_dev, r as noop } from './client.5907cf39.js';
  
  /* src/routes/blog/[slug].svelte generated by Svelte v3.29.0 */
  
  const file = "src/routes/blog/[slug].svelte";
  
  function create_fragment(ctx) {
  	let title_value;
  	let t0;
  	let h1;
  	let t1_value = /*post*/ ctx[0].title + "";
  	let t1;
  	let t2;
  	let div;
  	let raw_value = /*post*/ ctx[0].html + "";
  	document.title = title_value = /*post*/ ctx[0].title;
  
  	const block = {
  		c: function create() {
  			t0 = space();
  			h1 = element("h1");
  			t1 = text(t1_value);
  			t2 = space();
  			div = element("div");
  			this.h();
  		},
  		l: function claim(nodes) {
  			const head_nodes = query_selector_all("[data-svelte=\"svelte-1uty71u\"]", document.head);
  			head_nodes.forEach(detach_dev);
  			t0 = claim_space(nodes);
  			h1 = claim_element(nodes, "H1", {});
  			var h1_nodes = children(h1);
  			t1 = claim_text(h1_nodes, t1_value);
  			h1_nodes.forEach(detach_dev);
  			t2 = claim_space(nodes);
  			div = claim_element(nodes, "DIV", { class: true });
  			var div_nodes = children(div);
  			div_nodes.forEach(detach_dev);
  			this.h();
  		},
  		h: function hydrate() {
  			add_location(h1, file, 59, 0, 1225);
  			attr_dev(div, "class", "content svelte-gnxal1");
  			add_location(div, file, 61, 0, 1248);
  		},
  		m: function mount(target, anchor) {
  			insert_dev(target, t0, anchor);
  			insert_dev(target, h1, anchor);
  			append_dev(h1, t1);
  			insert_dev(target, t2, anchor);
  			insert_dev(target, div, anchor);
  			div.innerHTML = raw_value;
  		},
  		p: function update(ctx, [dirty]) {
  			if (dirty & /*post*/ 1 && title_value !== (title_value = /*post*/ ctx[0].title)) {
  				document.title = title_value;
  			}
  
  			if (dirty & /*post*/ 1 && t1_value !== (t1_value = /*post*/ ctx[0].title + "")) set_data_dev(t1, t1_value);
  			if (dirty & /*post*/ 1 && raw_value !== (raw_value = /*post*/ ctx[0].html + "")) div.innerHTML = raw_value;		},
  		i: noop,
  		o: noop,
  		d: function destroy(detaching) {
  			if (detaching) detach_dev(t0);
  			if (detaching) detach_dev(h1);
  			if (detaching) detach_dev(t2);
  			if (detaching) detach_dev(div);
  		}
  	};
  
  	dispatch_dev("SvelteRegisterBlock", {
  		block,
  		id: create_fragment.name,
  		type: "component",
  		source: "",
  		ctx
  	});
  
  	return block;
  }
  
  async function preload({ params, query }) {
  	// 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);
  	}
  }
  
  function instance($$self, $$props, $$invalidate) {
  	let { $$slots: slots = {}, $$scope } = $$props;
  	validate_slots("U5Bslugu5D", slots, []);
  	let { post } = $$props;
  	const writable_props = ["post"];
  
  	Object.keys($$props).forEach(key => {
  		if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<U5Bslugu5D> was created with unknown prop '${key}'`);
  	});
  
  	$$self.$$set = $$props => {
  		if ("post" in $$props) $$invalidate(0, post = $$props.post);
  	};
  
  	$$self.$capture_state = () => ({ preload, post });
  
  	$$self.$inject_state = $$props => {
  		if ("post" in $$props) $$invalidate(0, post = $$props.post);
  	};
  
  	if ($$props && "$$inject" in $$props) {
  		$$self.$inject_state($$props.$$inject);
  	}
  
  	return [post];
  }
  
  class U5Bslugu5D extends SvelteComponentDev {
  	constructor(options) {
  		super(options);
  		init(this, options, instance, create_fragment, safe_not_equal, { post: 0 });
  
  		dispatch_dev("SvelteRegisterComponent", {
  			component: this,
  			tagName: "U5Bslugu5D",
  			options,
  			id: create_fragment.name
  		});
  
  		const { ctx } = this.$$;
  		const props = options.props || {};
  
  		if (/*post*/ ctx[0] === undefined && !("post" in props)) {
  			console.warn("<U5Bslugu5D> was created without expected prop 'post'");
  		}
  	}
  
  	get post() {
  		throw new Error("<U5Bslugu5D>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'");
  	}
  
  	set post(value) {
  		throw new Error("<U5Bslugu5D>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'");
  	}
  }
  
  export default U5Bslugu5D;
  export { preload };
  //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiW3NsdWddLmVkMTM3ZmZhLmpzIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcm91dGVzL2Jsb2cvW3NsdWddLnN2ZWx0ZSJdLCJzb3VyY2VzQ29udGVudCI6WyI8c2NyaXB0IGNvbnRleHQ9XCJtb2R1bGVcIj5cblx0ZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHByZWxvYWQoeyBwYXJhbXMsIHF1ZXJ5IH0pIHtcblx0XHQvLyB0aGUgYHNsdWdgIHBhcmFtZXRlciBpcyBhdmFpbGFibGUgYmVjYXVzZVxuXHRcdC8vIHRoaXMgZmlsZSBpcyBjYWxsZWQgW3NsdWddLnN2ZWx0ZVxuXHRcdGNvbnN0IHJlcyA9IGF3YWl0IHRoaXMuZmV0Y2goYGJsb2cvJHtwYXJhbXMuc2x1Z30uanNvbmApO1xuXHRcdGNvbnN0IGRhdGEgPSBhd2FpdCByZXMuanNvbigpO1xuXG5cdFx0aWYgKHJlcy5zdGF0dXMgPT09IDIwMCkge1xuXHRcdFx0cmV0dXJuIHsgcG9zdDogZGF0YSB9O1xuXHRcdH0gZWxzZSB7XG5cdFx0XHR0aGlzLmVycm9yKHJlcy5zdGF0dXMsIGRhdGEubWVzc2FnZSk7XG5cdFx0fVxuXHR9XG48L3NjcmlwdD5cblxuPHNjcmlwdD5cblx0ZXhwb3J0IGxldCBwb3N0O1xuPC9zY3JpcHQ+XG5cbjxzdHlsZT5cblx0Lypcblx0XHRCeSBkZWZhdWx0LCBDU1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