var app=function(){"use strict";function t(){}function n(t){return t()}function e(){return Object.create(null)}function o(t){t.forEach(n)}function r(t){return"function"==typeof t}function c(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function l(t,n){t.appendChild(n)}function u(t,n,e){t.insertBefore(n,e||null)}function s(t){t.parentNode.removeChild(t)}function i(t){return document.createElement(t)}function a(t){return document.createTextNode(t)}function f(){return a(" ")}function d(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function p(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}let h;function m(t){h=t}const $=[],g=[],b=[],y=[],x=Promise.resolve();let _=!1;function v(t){b.push(t)}const w=new Set;let k=0;function E(){const t=h;do{for(;k<$.length;){const t=$[k];k++,m(t),A(t.$$)}for(m(null),$.length=0,k=0;g.length;)g.pop()();for(let t=0;t{S.delete(t),o&&(e&&t.d(1),o())})),t.o(n)}}function N(t,e,c,l){const{fragment:u,on_mount:s,on_destroy:i,after_update:a}=t.$$;u&&u.m(e,c),l||v((()=>{const e=s.map(n).filter(r);i?i.push(...e):o(e),t.$$.on_mount=[]})),a.forEach(v)}function O(t,n){const e=t.$$;null!==e.fragment&&(o(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function T(t,n){-1===t.$$.dirty[0]&&($.push(t),_||(_=!0,x.then(E)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<{const r=o.length?o[0]:e;return p.ctx&&u(p.ctx[t],p.ctx[t]=r)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](r),$&&T(n,t)),e})):[],p.update(),$=!0,o(p.before_update),p.fragment=!!l&&l(p.ctx),r.target){if(r.hydrate){const t=function(t){return Array.from(t.childNodes)}(r.target);p.fragment&&p.fragment.l(t),t.forEach(s)}else p.fragment&&p.fragment.c();r.intro&&C(n.$$.fragment),N(n,r.target,r.anchor,r.customElement),E()}m(d)}class H{$destroy(){O(this,1),this.$destroy=t}$on(t,n){const e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),()=>{const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}$set(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function M(n){let e,o,r,c,h,m,$,g;return{c(){e=i("div"),o=a("Counter "),r=a(n[0]),c=f(),h=a(n[1]),d(e,"class",m="cursor-pointer select-none rounded px-4 py-3 mt-3 bg-"+n[0]+"-500 shadow-lg shadow-"+n[0]+"-500/50")},m(t,s){var i,a,f,d;u(t,e,s),l(e,o),l(e,r),l(e,c),l(e,h),$||(i=e,a="click",f=n[2],i.addEventListener(a,f,d),g=()=>i.removeEventListener(a,f,d),$=!0)},p(t,[n]){1&n&&p(r,t[0]),2&n&&p(h,t[1]),1&n&&m!==(m="cursor-pointer select-none rounded px-4 py-3 mt-3 bg-"+t[0]+"-500 shadow-lg shadow-"+t[0]+"-500/50")&&d(e,"class",m)},i:t,o:t,d(t){t&&s(e),$=!1,g()}}}function q(t,n,e){let{color:o}=n,r=0;return t.$$set=t=>{"color"in t&&e(0,o=t.color)},[o,r,()=>e(1,r++,r)]}class P extends H{constructor(t){super(),B(this,t,q,M,c,{color:0})}}function V(t,n,e){const o=t.slice();return o[2]=n[e],o}function W(n){let e,o;return e=new P({props:{color:n[2]}}),{c(){var t;(t=e.$$.fragment)&&t.c()},m(t,n){N(e,t,n),o=!0},p:t,i(t){o||(C(e.$$.fragment,t),o=!0)},o(t){L(e.$$.fragment,t),o=!1},d(t){O(e,t)}}}function z(t){let n,e,r,c,h,m,$,g,b,y=t[1],x=[];for(let n=0;nL(x[t],1,1,(()=>{x[t]=null}));return{c(){n=i("main"),e=i("h1"),r=a("Hello "),c=a(t[0]),h=a("!"),m=f(),$=i("p"),$.innerHTML='Visit the Svelte tutorial to learn\n\t\thow to build Svelte apps.',g=f();for(let t=0;t{"name"in t&&e(0,o=t.name)},[o,["cyan","blue","indigo"]]}return new class extends H{constructor(t){super(),B(this,t,D,z,c,{name:0})}}({target:document.body,props:{}})}(); //# sourceMappingURL=bundle.js.map