|
|
@ -1,4 +1,3 @@
|
|
|
|
/* generated by Svelte vX.Y.Z */
|
|
|
|
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
SvelteComponent,
|
|
|
|
SvelteComponent,
|
|
|
|
append,
|
|
|
|
append,
|
|
|
@ -14,10 +13,15 @@ import {
|
|
|
|
subscribe,
|
|
|
|
subscribe,
|
|
|
|
text
|
|
|
|
text
|
|
|
|
} from "svelte/internal";
|
|
|
|
} from "svelte/internal";
|
|
|
|
|
|
|
|
|
|
|
|
import { writable } from "svelte/store";
|
|
|
|
import { writable } from "svelte/store";
|
|
|
|
|
|
|
|
|
|
|
|
function create_fragment(ctx) {
|
|
|
|
function create_fragment(ctx) {
|
|
|
|
var h1, t0, t1, button, dispose;
|
|
|
|
let h1;
|
|
|
|
|
|
|
|
let t0;
|
|
|
|
|
|
|
|
let t1;
|
|
|
|
|
|
|
|
let button;
|
|
|
|
|
|
|
|
let dispose;
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
c() {
|
|
|
|
c() {
|
|
|
@ -28,44 +32,35 @@ function create_fragment(ctx) {
|
|
|
|
button.textContent = "reset";
|
|
|
|
button.textContent = "reset";
|
|
|
|
dispose = listen(button, "click", ctx.click_handler);
|
|
|
|
dispose = listen(button, "click", ctx.click_handler);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
m(target, anchor) {
|
|
|
|
m(target, anchor) {
|
|
|
|
insert(target, h1, anchor);
|
|
|
|
insert(target, h1, anchor);
|
|
|
|
append(h1, t0);
|
|
|
|
append(h1, t0);
|
|
|
|
insert(target, t1, anchor);
|
|
|
|
insert(target, t1, anchor);
|
|
|
|
insert(target, button, anchor);
|
|
|
|
insert(target, button, anchor);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
p(changed, ctx) {
|
|
|
|
p(changed, ctx) {
|
|
|
|
if (changed.$foo) {
|
|
|
|
if (changed.$foo) set_data(t0, ctx.$foo);
|
|
|
|
set_data(t0, ctx.$foo);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
i: noop,
|
|
|
|
i: noop,
|
|
|
|
o: noop,
|
|
|
|
o: noop,
|
|
|
|
|
|
|
|
|
|
|
|
d(detaching) {
|
|
|
|
d(detaching) {
|
|
|
|
if (detaching) {
|
|
|
|
if (detaching) detach(h1);
|
|
|
|
detach(h1);
|
|
|
|
if (detaching) detach(t1);
|
|
|
|
detach(t1);
|
|
|
|
if (detaching) detach(button);
|
|
|
|
detach(button);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dispose();
|
|
|
|
dispose();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function instance($$self, $$props, $$invalidate) {
|
|
|
|
function instance($$self, $$props, $$invalidate) {
|
|
|
|
let $foo, $$unsubscribe_foo = noop, $$subscribe_foo = () => ($$unsubscribe_foo(), $$unsubscribe_foo = subscribe(foo, $$value => $$invalidate('$foo', $foo = $$value)), foo);
|
|
|
|
let $foo,
|
|
|
|
|
|
|
|
$$unsubscribe_foo = noop,
|
|
|
|
|
|
|
|
$$subscribe_foo = () => ($$unsubscribe_foo(), $$unsubscribe_foo = subscribe(foo, $$value => $$invalidate("$foo", $foo = $$value)), foo);
|
|
|
|
|
|
|
|
|
|
|
|
$$self.$$.on_destroy.push(() => $$unsubscribe_foo());
|
|
|
|
$$self.$$.on_destroy.push(() => $$unsubscribe_foo());
|
|
|
|
|
|
|
|
let foo = writable(0);
|
|
|
|
let foo = writable(0); $$subscribe_foo();
|
|
|
|
$$subscribe_foo();
|
|
|
|
|
|
|
|
const click_handler = () => $$subscribe_foo($$invalidate("foo", foo = writable(0)));
|
|
|
|
const click_handler = () => $$subscribe_foo($$invalidate('foo', foo = writable(0)));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return { foo, $foo, click_handler };
|
|
|
|
return { foo, $foo, click_handler };
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|