text: import{S as q,i as I,s as D,e as m,t as y,k as N,c as v,a as g,g as E,d as o,n as U,b as d,f as h,E as c,an as V,R as O,h as P,$ as F,a3 as S,ao as p,l as j,x as _,r as x,u as b,w as A,aa as k,ap as w}from"./vendor-b03dee8a.js";function R(r){let t,n,l,i,e,a,s;return{c(){t=m("div"),n=m("label"),l=y(r[2]),i=N(),e=m("input"),this.h()},l(u){t=v(u,"DIV",{});var f=g(t);n=v(f,"LABEL",{for:!0,class:!0});var L=g(n);l=E(L,r[2]),L.forEach(o),i=U(f),e=v(f,"INPUT",{class:!0,id:!0}),f.forEach(o),this.h()},h(){d(n,"for",r[1]),d(n,"class","text-gray-600 text-xs"),d(e,"class","block border-2 text-sm p-2 w-full h-10"),d(e,"id",r[1])},m(u,f){h(u,t,f),c(t,n),c(n,l),c(t,i),c(t,e),V(e,r[0]),a||(s=O(e,"input",r[3]),a=!0)},p(u,[f]){f&4&&P(l,u[2]),f&2&&d(n,"for",u[1]),f&2&&d(e,"id",u[1]),f&1&&e.value!==u[0]&&V(e,u[0])},i:F,o:F,d(u){u&&o(t),a=!1,s()}}}function T(r,t,n){let{id:l}=t,{name:i}=t,{value:e}=t;function a(){e=this.value,n(0,e)}return r.$$set=s=>{"id"in s&&n(1,l=s.id),"name"in s&&n(2,i=s.name),"value"in s&&n(0,e=s.value)},[e,l,i,a]}class J extends q{constructor(t){super();I(this,t,T,R,D,{id:1,name:2,value:0})}}function B(r){let t,n,l,i;return{c(){t=m("div"),n=y("Loading\u2026"),this.h()},l(e){t=v(e,"DIV",{class:!0});var a=g(t);n=E(a,"Loading\u2026"),a.forEach(o),this.h()},h(){d(t,"class","svelte-wq0n76")},m(e,a){h(e,t,a),c(t,n),i=!0},p(e,a){},i(e){i||(S(()=>{l||(l=p(t,w,{delay:250,duration:500,easing:k},!0)),l.run(1)}),i=!0)},o(e){l||(l=p(t,w,{delay:250,duration:500,easing:k},!1)),l.run(0),i=!1},d(e){e&&o(t),e&&l&&l.end()}}}function C(r){let t,n,l,i;return{c(){t=m("div"),n=y("Updating\u2026"),this.h()},l(e){t=v(e,"DIV",{class:!0});var a=g(t);n=E(a,"Updating\u2026"),a.forEach(o),this.h()},h(){d(t,"class","svelte-wq0n76")},m(e,a){h(e,t,a),c(t,n),i=!0},p(e,a){},i(e){i||(S(()=>{l||(l=p(t,w,{delay:250,duration:500,easing:k},!0)),l.run(1)}),i=!0)},o(e){l||(l=p(t,w,{delay:250,duration:500,easing:k},!1)),l.run(0),i=!1},d(e){e&&o(t),e&&l&&l.end()}}}function z(r){let t,n,l,i=r[0]&&B(),e=r[1]&&C();return{c(){i&&i.c(),t=N(),e&&e.c(),n=j()},l(a){i&&i.l(a),t=U(a),e&&e.l(a),n=j()},m(a,s){i&&i.m(a,s),h(a,t,s),e&&e.m(a,s),h(a,n,s),l=!0},p(a,[s]){a[0]?i?(i.p(a,s),s&1&&_(i,1)):(i=B(),i.c(),_(i,1),i.m(t.parentNode,t)):i&&(x(),b(i,1,1,()=>{i=null}),A()),a[1]?e?(e.p(a,s),s&2&&_(e,1)):(e=C(),e.c(),_(e,1),e.m(n.parentNode,n)):e&&(x(),b(e,1,1,()=>{e=null}),A())},i(a){l||(_(i),_(e),l=!0)},o(a){b(i),b(e),l=!1},d(a){i&&i.d(a),a&&o(t),e&&e.d(a),a&&o(n)}}}function G(r,t,n){let{loading:l=!1}=t,{updating:i=!1}=t;return r.$$set=e=>{"loading"in e&&n(0,l=e.loading),"updating"in e&&n(1,i=e.updating)},[l,i]}class K extends q{constructor(t){super();I(this,t,G,z,D,{loading:0,updating:1})}}export{J as F,K as L};
  