HugoDzz's picture
Upload 33 files
b03315c verified
import{v as _e,s as P,n as C,w as z,x as W,y as F,z as G,A as J,o as me,d as de,r as he,c as ge}from"../chunks/scheduler.Mvw4hFPK.js";import{S as V,i as S,e as D,c as O,a as N,d,o as b,p as g,g as k,k as E,q as T,l as m,m as j,n as _,u as v,s as B,v as I,f as A,w as $,h as q,x as w,r as H,t as ae,b as fe,j as ce,B as x,C as M,y as ee,D as pe}from"../chunks/index.DV1RyXTA.js";import{u as be,t as te,s as ke,a as ye,b as ve,p as ue,e as se,c as $e,o as we}from"../chunks/Toaster.svelte_svelte_type_style_lang.ChpJTQ_z.js";function K(l,e){const t={},s={},o={$$scope:1};let n=l.length;for(;n--;){const r=l[n],f=e[n];if(f){for(const i in r)i in f||(s[i]=1);for(const i in f)o[i]||(t[i]=f[i],o[i]=1);l[n]=f}else for(const i in r)o[i]=1}for(const r in s)r in t||(t[r]=void 0);return t}function Q(l){return typeof l=="object"&&l!==null?l:{}}const Ie=!0,De=!0,kt=Object.freeze(Object.defineProperty({__proto__:null,prerender:De,ssr:Ie},Symbol.toStringTag,{value:"Module"}));function Oe(l,e,t){const{reverseOrder:s,gutter:o=8,defaultPosition:n}=t||{},r=e.filter(a=>(a.position||n)===(l.position||n)&&a.height),f=r.findIndex(a=>a.id===l.id),i=r.filter((a,u)=>u<f&&a.visible).length;return r.filter(a=>a.visible).slice(...s?[i+1]:[0,i]).reduce((a,u)=>a+(u.height||0)+o,0)}const Ce={startPause(){ke(Date.now())},endPause(){ye(Date.now())},updateHeight:(l,e)=>{ve({id:l,height:e})},calculateOffset:Oe};function Ee(l){const{toasts:e,pausedAt:t}=be(l),s=new Map;let o;const n=[t.subscribe(r=>{if(r){for(const[,f]of s)clearTimeout(f);s.clear()}o=r}),e.subscribe(r=>{if(o)return;const f=Date.now();for(const i of r){if(s.has(i.id)||i.duration===1/0)continue;const c=(i.duration||0)+i.pauseDuration-(f-i.createdAt);if(c<0)return i.visible&&te.dismiss(i.id),null;s.set(i.id,setTimeout(()=>te.dismiss(i.id),c))}})];return _e(()=>{for(const r of n)r()}),{toasts:e,handlers:Ce}}function Ne(l){let e;return{c(){e=D("div"),this.h()},l(t){e=O(t,"DIV",{class:!0}),N(e).forEach(d),this.h()},h(){b(e,"class","svelte-11kvm4p"),g(e,"--primary",l[0]),g(e,"--secondary",l[1])},m(t,s){k(t,e,s)},p(t,[s]){s&1&&g(e,"--primary",t[0]),s&2&&g(e,"--secondary",t[1])},i:C,o:C,d(t){t&&d(e)}}}function Te(l,e,t){let{primary:s="#61d345"}=e,{secondary:o="#fff"}=e;return l.$$set=n=>{"primary"in n&&t(0,s=n.primary),"secondary"in n&&t(1,o=n.secondary)},[s,o]}class je extends V{constructor(e){super(),S(this,e,Te,Ne,P,{primary:0,secondary:1})}}function Pe(l){let e;return{c(){e=D("div"),this.h()},l(t){e=O(t,"DIV",{class:!0}),N(e).forEach(d),this.h()},h(){b(e,"class","svelte-1ee93ns"),g(e,"--primary",l[0]),g(e,"--secondary",l[1])},m(t,s){k(t,e,s)},p(t,[s]){s&1&&g(e,"--primary",t[0]),s&2&&g(e,"--secondary",t[1])},i:C,o:C,d(t){t&&d(e)}}}function Ve(l,e,t){let{primary:s="#ff4b4b"}=e,{secondary:o="#fff"}=e;return l.$$set=n=>{"primary"in n&&t(0,s=n.primary),"secondary"in n&&t(1,o=n.secondary)},[s,o]}class Se extends V{constructor(e){super(),S(this,e,Ve,Pe,P,{primary:0,secondary:1})}}function He(l){let e;return{c(){e=D("div"),this.h()},l(t){e=O(t,"DIV",{class:!0}),N(e).forEach(d),this.h()},h(){b(e,"class","svelte-1j7dflg"),g(e,"--primary",l[0]),g(e,"--secondary",l[1])},m(t,s){k(t,e,s)},p(t,[s]){s&1&&g(e,"--primary",t[0]),s&2&&g(e,"--secondary",t[1])},i:C,o:C,d(t){t&&d(e)}}}function Me(l,e,t){let{primary:s="#616161"}=e,{secondary:o="#e0e0e0"}=e;return l.$$set=n=>{"primary"in n&&t(0,s=n.primary),"secondary"in n&&t(1,o=n.secondary)},[s,o]}class Le extends V{constructor(e){super(),S(this,e,Me,He,P,{primary:0,secondary:1})}}function Be(l){let e,t,s,o;const n=[l[0]];let r={};for(let i=0;i<n.length;i+=1)r=z(r,n[i]);t=new Le({props:r});let f=l[2]!=="loading"&&ne(l);return{c(){e=D("div"),v(t.$$.fragment),s=B(),f&&f.c(),this.h()},l(i){e=O(i,"DIV",{class:!0});var c=N(e);I(t.$$.fragment,c),s=A(c),f&&f.l(c),c.forEach(d),this.h()},h(){b(e,"class","indicator svelte-1kgeier")},m(i,c){k(i,e,c),$(t,e,null),q(e,s),f&&f.m(e,null),o=!0},p(i,c){const a=c&1?K(n,[Q(i[0])]):{};t.$set(a),i[2]!=="loading"?f?(f.p(i,c),c&4&&_(f,1)):(f=ne(i),f.c(),_(f,1),f.m(e,null)):f&&(T(),m(f,1,1,()=>{f=null}),j())},i(i){o||(_(t.$$.fragment,i),_(f),o=!0)},o(i){m(t.$$.fragment,i),m(f),o=!1},d(i){i&&d(e),w(t),f&&f.d()}}}function Ae(l){let e,t,s;var o=l[1];function n(r,f){return{}}return o&&(e=H(o,n())),{c(){e&&v(e.$$.fragment),t=E()},l(r){e&&I(e.$$.fragment,r),t=E()},m(r,f){e&&$(e,r,f),k(r,t,f),s=!0},p(r,f){if(f&2&&o!==(o=r[1])){if(e){T();const i=e;m(i.$$.fragment,1,0,()=>{w(i,1)}),j()}o?(e=H(o,n()),v(e.$$.fragment),_(e.$$.fragment,1),$(e,t.parentNode,t)):e=null}},i(r){s||(e&&_(e.$$.fragment,r),s=!0)},o(r){e&&m(e.$$.fragment,r),s=!1},d(r){r&&d(t),e&&w(e,r)}}}function qe(l){let e,t;return{c(){e=D("div"),t=ae(l[1]),this.h()},l(s){e=O(s,"DIV",{class:!0});var o=N(e);t=fe(o,l[1]),o.forEach(d),this.h()},h(){b(e,"class","animated svelte-1kgeier")},m(s,o){k(s,e,o),q(e,t)},p(s,o){o&2&&ce(t,s[1])},i:C,o:C,d(s){s&&d(e)}}}function ne(l){let e,t,s,o;const n=[Ke,ze],r=[];function f(i,c){return i[2]==="error"?0:1}return t=f(l),s=r[t]=n[t](l),{c(){e=D("div"),s.c(),this.h()},l(i){e=O(i,"DIV",{class:!0});var c=N(e);s.l(c),c.forEach(d),this.h()},h(){b(e,"class","status svelte-1kgeier")},m(i,c){k(i,e,c),r[t].m(e,null),o=!0},p(i,c){let a=t;t=f(i),t===a?r[t].p(i,c):(T(),m(r[a],1,1,()=>{r[a]=null}),j(),s=r[t],s?s.p(i,c):(s=r[t]=n[t](i),s.c()),_(s,1),s.m(e,null))},i(i){o||(_(s),o=!0)},o(i){m(s),o=!1},d(i){i&&d(e),r[t].d()}}}function ze(l){let e,t;const s=[l[0]];let o={};for(let n=0;n<s.length;n+=1)o=z(o,s[n]);return e=new je({props:o}),{c(){v(e.$$.fragment)},l(n){I(e.$$.fragment,n)},m(n,r){$(e,n,r),t=!0},p(n,r){const f=r&1?K(s,[Q(n[0])]):{};e.$set(f)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){w(e,n)}}}function Ke(l){let e,t;const s=[l[0]];let o={};for(let n=0;n<s.length;n+=1)o=z(o,s[n]);return e=new Se({props:o}),{c(){v(e.$$.fragment)},l(n){I(e.$$.fragment,n)},m(n,r){$(e,n,r),t=!0},p(n,r){const f=r&1?K(s,[Q(n[0])]):{};e.$set(f)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){w(e,n)}}}function Re(l){let e,t,s,o;const n=[qe,Ae,Be],r=[];function f(i,c){return typeof i[1]=="string"?0:typeof i[1]<"u"?1:i[2]!=="blank"?2:-1}return~(e=f(l))&&(t=r[e]=n[e](l)),{c(){t&&t.c(),s=E()},l(i){t&&t.l(i),s=E()},m(i,c){~e&&r[e].m(i,c),k(i,s,c),o=!0},p(i,[c]){let a=e;e=f(i),e===a?~e&&r[e].p(i,c):(t&&(T(),m(r[a],1,1,()=>{r[a]=null}),j()),~e?(t=r[e],t?t.p(i,c):(t=r[e]=n[e](i),t.c()),_(t,1),t.m(s.parentNode,s)):t=null)},i(i){o||(_(t),o=!0)},o(i){m(t),o=!1},d(i){i&&d(s),~e&&r[e].d(i)}}}function We(l,e,t){let s,o,n,{toast:r}=e;return l.$$set=f=>{"toast"in f&&t(3,r=f.toast)},l.$$.update=()=>{l.$$.dirty&8&&t(2,{type:s,icon:o,iconTheme:n}=r,s,(t(1,o),t(3,r)),(t(0,n),t(3,r)))},[n,o,s,r]}class U extends V{constructor(e){super(),S(this,e,We,Re,P,{toast:3})}}function Fe(l){let e,t,s;var o=l[0].message;function n(r,f){return{props:{toast:r[0]}}}return o&&(e=H(o,n(l))),{c(){e&&v(e.$$.fragment),t=E()},l(r){e&&I(e.$$.fragment,r),t=E()},m(r,f){e&&$(e,r,f),k(r,t,f),s=!0},p(r,f){if(f&1&&o!==(o=r[0].message)){if(e){T();const i=e;m(i.$$.fragment,1,0,()=>{w(i,1)}),j()}o?(e=H(o,n(r)),v(e.$$.fragment),_(e.$$.fragment,1),$(e,t.parentNode,t)):e=null}else if(o){const i={};f&1&&(i.toast=r[0]),e.$set(i)}},i(r){s||(e&&_(e.$$.fragment,r),s=!0)},o(r){e&&m(e.$$.fragment,r),s=!1},d(r){r&&d(t),e&&w(e,r)}}}function Ge(l){let e=l[0].message+"",t;return{c(){t=ae(e)},l(s){t=fe(s,e)},m(s,o){k(s,t,o)},p(s,o){o&1&&e!==(e=s[0].message+"")&&ce(t,e)},i:C,o:C,d(s){s&&d(t)}}}function Je(l){let e,t,s,o;const n=[Ge,Fe],r=[];function f(a,u){return typeof a[0].message=="string"?0:1}t=f(l),s=r[t]=n[t](l);let i=[{class:"message"},l[0].ariaProps],c={};for(let a=0;a<i.length;a+=1)c=z(c,i[a]);return{c(){e=D("div"),s.c(),this.h()},l(a){e=O(a,"DIV",{class:!0});var u=N(e);s.l(u),u.forEach(d),this.h()},h(){x(e,c),M(e,"svelte-1nauejd",!0)},m(a,u){k(a,e,u),r[t].m(e,null),o=!0},p(a,[u]){let h=t;t=f(a),t===h?r[t].p(a,u):(T(),m(r[h],1,1,()=>{r[h]=null}),j(),s=r[t],s?s.p(a,u):(s=r[t]=n[t](a),s.c()),_(s,1),s.m(e,null)),x(e,c=K(i,[{class:"message"},u&1&&a[0].ariaProps])),M(e,"svelte-1nauejd",!0)},i(a){o||(_(s),o=!0)},o(a){m(s),o=!1},d(a){a&&d(e),r[t].d()}}}function Qe(l,e,t){let{toast:s}=e;return l.$$set=o=>{"toast"in o&&t(0,s=o.toast)},[s]}class R extends V{constructor(e){super(),S(this,e,Qe,Je,P,{toast:0})}}const Ue=l=>({toast:l&1}),re=l=>({ToastIcon:U,ToastMessage:R,toast:l[0]});function Xe(l){let e;const t=l[6].default,s=W(t,l,l[7],re),o=s||Ze(l);return{c(){o&&o.c()},l(n){o&&o.l(n)},m(n,r){o&&o.m(n,r),e=!0},p(n,r){s?s.p&&(!e||r&129)&&F(s,t,n,n[7],e?J(t,n[7],r,Ue):G(n[7]),re):o&&o.p&&(!e||r&1)&&o.p(n,e?r:-1)},i(n){e||(_(o,n),e=!0)},o(n){m(o,n),e=!1},d(n){o&&o.d(n)}}}function Ye(l){let e,t,s;var o=l[2];function n(r,f){return{props:{$$slots:{message:[et],icon:[xe]},$$scope:{ctx:r}}}}return o&&(e=H(o,n(l))),{c(){e&&v(e.$$.fragment),t=E()},l(r){e&&I(e.$$.fragment,r),t=E()},m(r,f){e&&$(e,r,f),k(r,t,f),s=!0},p(r,f){if(f&4&&o!==(o=r[2])){if(e){T();const i=e;m(i.$$.fragment,1,0,()=>{w(i,1)}),j()}o?(e=H(o,n(r)),v(e.$$.fragment),_(e.$$.fragment,1),$(e,t.parentNode,t)):e=null}else if(o){const i={};f&129&&(i.$$scope={dirty:f,ctx:r}),e.$set(i)}},i(r){s||(e&&_(e.$$.fragment,r),s=!0)},o(r){e&&m(e.$$.fragment,r),s=!1},d(r){r&&d(t),e&&w(e,r)}}}function Ze(l){let e,t,s,o;return e=new U({props:{toast:l[0]}}),s=new R({props:{toast:l[0]}}),{c(){v(e.$$.fragment),t=B(),v(s.$$.fragment)},l(n){I(e.$$.fragment,n),t=A(n),I(s.$$.fragment,n)},m(n,r){$(e,n,r),k(n,t,r),$(s,n,r),o=!0},p(n,r){const f={};r&1&&(f.toast=n[0]),e.$set(f);const i={};r&1&&(i.toast=n[0]),s.$set(i)},i(n){o||(_(e.$$.fragment,n),_(s.$$.fragment,n),o=!0)},o(n){m(e.$$.fragment,n),m(s.$$.fragment,n),o=!1},d(n){n&&d(t),w(e,n),w(s,n)}}}function xe(l){let e,t;return e=new U({props:{toast:l[0],slot:"icon"}}),{c(){v(e.$$.fragment)},l(s){I(e.$$.fragment,s)},m(s,o){$(e,s,o),t=!0},p(s,o){const n={};o&1&&(n.toast=s[0]),e.$set(n)},i(s){t||(_(e.$$.fragment,s),t=!0)},o(s){m(e.$$.fragment,s),t=!1},d(s){w(e,s)}}}function et(l){let e,t;return e=new R({props:{toast:l[0],slot:"message"}}),{c(){v(e.$$.fragment)},l(s){I(e.$$.fragment,s)},m(s,o){$(e,s,o),t=!0},p(s,o){const n={};o&1&&(n.toast=s[0]),e.$set(n)},i(s){t||(_(e.$$.fragment,s),t=!0)},o(s){m(e.$$.fragment,s),t=!1},d(s){w(e,s)}}}function tt(l){let e,t,s,o,n,r;const f=[Ye,Xe],i=[];function c(a,u){return a[2]?0:1}return t=c(l),s=i[t]=f[t](l),{c(){e=D("div"),s.c(),this.h()},l(a){e=O(a,"DIV",{class:!0,style:!0});var u=N(e);s.l(u),u.forEach(d),this.h()},h(){b(e,"class",o="base "+(l[0].height?l[4]:"transparent")+" "+(l[0].className||"")+" svelte-ug60r4"),b(e,"style",n=l[1]+"; "+l[0].style),g(e,"--factor",l[3])},m(a,u){k(a,e,u),i[t].m(e,null),r=!0},p(a,[u]){let h=t;t=c(a),t===h?i[t].p(a,u):(T(),m(i[h],1,1,()=>{i[h]=null}),j(),s=i[t],s?s.p(a,u):(s=i[t]=f[t](a),s.c()),_(s,1),s.m(e,null)),(!r||u&17&&o!==(o="base "+(a[0].height?a[4]:"transparent")+" "+(a[0].className||"")+" svelte-ug60r4"))&&b(e,"class",o),(!r||u&3&&n!==(n=a[1]+"; "+a[0].style))&&b(e,"style",n);const y=u&3;(u&11||y)&&g(e,"--factor",a[3])},i(a){r||(_(s),r=!0)},o(a){m(s),r=!1},d(a){a&&d(e),i[t].d()}}}function st(l,e,t){let{$$slots:s={},$$scope:o}=e,{toast:n}=e,{position:r=void 0}=e,{style:f=""}=e,{Component:i=void 0}=e,c,a;return l.$$set=u=>{"toast"in u&&t(0,n=u.toast),"position"in u&&t(5,r=u.position),"style"in u&&t(1,f=u.style),"Component"in u&&t(2,i=u.Component),"$$scope"in u&&t(7,o=u.$$scope)},l.$$.update=()=>{if(l.$$.dirty&33){const u=(n.position||r||"top-center").includes("top");t(3,c=u?1:-1);const[h,y]=ue()?["fadeIn","fadeOut"]:["enter","exit"];t(4,a=n.visible?h:y)}},[n,f,i,c,a,r,s,o]}class nt extends V{constructor(e){super(),S(this,e,st,tt,P,{toast:0,position:5,style:1,Component:2})}}const rt=l=>({toast:l&1}),oe=l=>({toast:l[0]});function ot(l){let e;const t=l[8].default,s=W(t,l,l[7],oe),o=s||lt(l);return{c(){o&&o.c()},l(n){o&&o.l(n)},m(n,r){o&&o.m(n,r),e=!0},p(n,r){s?s.p&&(!e||r&129)&&F(s,t,n,n[7],e?J(t,n[7],r,rt):G(n[7]),oe):o&&o.p&&(!e||r&1)&&o.p(n,e?r:-1)},i(n){e||(_(o,n),e=!0)},o(n){m(o,n),e=!1},d(n){o&&o.d(n)}}}function it(l){let e,t;return e=new R({props:{toast:l[0]}}),{c(){v(e.$$.fragment)},l(s){I(e.$$.fragment,s)},m(s,o){$(e,s,o),t=!0},p(s,o){const n={};o&1&&(n.toast=s[0]),e.$set(n)},i(s){t||(_(e.$$.fragment,s),t=!0)},o(s){m(e.$$.fragment,s),t=!1},d(s){w(e,s)}}}function lt(l){let e,t;return e=new nt({props:{toast:l[0],position:l[0].position}}),{c(){v(e.$$.fragment)},l(s){I(e.$$.fragment,s)},m(s,o){$(e,s,o),t=!0},p(s,o){const n={};o&1&&(n.toast=s[0]),o&1&&(n.position=s[0].position),e.$set(n)},i(s){t||(_(e.$$.fragment,s),t=!0)},o(s){m(e.$$.fragment,s),t=!1},d(s){w(e,s)}}}function at(l){let e,t,s,o;const n=[it,ot],r=[];function f(i,c){return i[0].type==="custom"?0:1}return t=f(l),s=r[t]=n[t](l),{c(){e=D("div"),s.c(),this.h()},l(i){e=O(i,"DIV",{class:!0});var c=N(e);s.l(c),c.forEach(d),this.h()},h(){b(e,"class","wrapper svelte-v01oml"),M(e,"active",l[0].visible),M(e,"transition",!ue()),g(e,"--factor",l[3]),g(e,"--offset",l[0].offset),g(e,"top",l[5]),g(e,"bottom",l[4]),g(e,"justify-content",l[2])},m(i,c){k(i,e,c),r[t].m(e,null),l[9](e),o=!0},p(i,[c]){let a=t;t=f(i),t===a?r[t].p(i,c):(T(),m(r[a],1,1,()=>{r[a]=null}),j(),s=r[t],s?s.p(i,c):(s=r[t]=n[t](i),s.c()),_(s,1),s.m(e,null)),(!o||c&1)&&M(e,"active",i[0].visible),c&8&&g(e,"--factor",i[3]),c&1&&g(e,"--offset",i[0].offset),c&32&&g(e,"top",i[5]),c&16&&g(e,"bottom",i[4]),c&4&&g(e,"justify-content",i[2])},i(i){o||(_(s),o=!0)},o(i){m(s),o=!1},d(i){i&&d(e),r[t].d(),l[9](null)}}}function ft(l,e,t){let s,o,n,r,{$$slots:f={},$$scope:i}=e,{toast:c}=e,{setHeight:a}=e,u;me(()=>{a(u.getBoundingClientRect().height)});function h(y){de[y?"unshift":"push"](()=>{u=y,t(1,u)})}return l.$$set=y=>{"toast"in y&&t(0,c=y.toast),"setHeight"in y&&t(6,a=y.setHeight),"$$scope"in y&&t(7,i=y.$$scope)},l.$$.update=()=>{var y,p,L,X,Y,Z;l.$$.dirty&1&&t(5,s=(y=c.position)!=null&&y.includes("top")?0:null),l.$$.dirty&1&&t(4,o=(p=c.position)!=null&&p.includes("bottom")?0:null),l.$$.dirty&1&&t(3,n=(L=c.position)!=null&&L.includes("top")?1:-1),l.$$.dirty&1&&t(2,r=((X=c.position)==null?void 0:X.includes("center"))&&"center"||(((Y=c.position)==null?void 0:Y.includes("right"))||((Z=c.position)==null?void 0:Z.includes("end")))&&"flex-end"||null)},[c,u,r,n,o,s,a,i,f,h]}class ct extends V{constructor(e){super(),S(this,e,ft,at,P,{toast:0,setHeight:6})}}function ie(l,e,t){const s=l.slice();return s[11]=e[t],s}function le(l,e){let t,s,o;function n(...r){return e[10](e[11],...r)}return s=new ct({props:{toast:e[11],setHeight:n}}),{key:l,first:null,c(){t=E(),v(s.$$.fragment),this.h()},l(r){t=E(),I(s.$$.fragment,r),this.h()},h(){this.first=t},m(r,f){k(r,t,f),$(s,r,f),o=!0},p(r,f){e=r;const i={};f&4&&(i.toast=e[11]),f&4&&(i.setHeight=n),s.$set(i)},i(r){o||(_(s.$$.fragment,r),o=!0)},o(r){m(s.$$.fragment,r),o=!1},d(r){r&&d(t),w(s,r)}}}function ut(l){let e,t=[],s=new Map,o,n,r,f,i=se(l[2]);const c=a=>a[11].id;for(let a=0;a<i.length;a+=1){let u=ie(l,i,a),h=c(u);s.set(h,t[a]=le(h,u))}return{c(){e=D("div");for(let a=0;a<t.length;a+=1)t[a].c();this.h()},l(a){e=O(a,"DIV",{class:!0,style:!0,role:!0});var u=N(e);for(let h=0;h<t.length;h+=1)t[h].l(u);u.forEach(d),this.h()},h(){b(e,"class",o="toaster "+(l[1]||"")+" svelte-1phplh9"),b(e,"style",l[0]),b(e,"role","alert")},m(a,u){k(a,e,u);for(let h=0;h<t.length;h+=1)t[h]&&t[h].m(e,null);n=!0,r||(f=[ee(e,"mouseenter",l[4].startPause),ee(e,"mouseleave",l[4].endPause)],r=!0)},p(a,[u]){u&20&&(i=se(a[2]),T(),t=$e(t,u,c,1,a,i,s,e,we,le,null,ie),j()),(!n||u&2&&o!==(o="toaster "+(a[1]||"")+" svelte-1phplh9"))&&b(e,"class",o),(!n||u&1)&&b(e,"style",a[0])},i(a){if(!n){for(let u=0;u<i.length;u+=1)_(t[u]);n=!0}},o(a){for(let u=0;u<t.length;u+=1)m(t[u]);n=!1},d(a){a&&d(e);for(let u=0;u<t.length;u+=1)t[u].d();r=!1,he(f)}}}function _t(l,e,t){let s,{reverseOrder:o=!1}=e,{position:n="top-center"}=e,{toastOptions:r=void 0}=e,{gutter:f=8}=e,{containerStyle:i=void 0}=e,{containerClassName:c=void 0}=e;const{toasts:a,handlers:u}=Ee(r);ge(l,a,p=>t(9,s=p));let h;const y=(p,L)=>u.updateHeight(p.id,L);return l.$$set=p=>{"reverseOrder"in p&&t(5,o=p.reverseOrder),"position"in p&&t(6,n=p.position),"toastOptions"in p&&t(7,r=p.toastOptions),"gutter"in p&&t(8,f=p.gutter),"containerStyle"in p&&t(0,i=p.containerStyle),"containerClassName"in p&&t(1,c=p.containerClassName)},l.$$.update=()=>{l.$$.dirty&864&&t(2,h=s.map(p=>({...p,position:p.position||n,offset:u.calculateOffset(p,s,{reverseOrder:o,gutter:f,defaultPosition:n})})))},[i,c,h,a,u,o,n,r,f,s,y]}class mt extends V{constructor(e){super(),S(this,e,_t,ut,P,{reverseOrder:5,position:6,toastOptions:7,gutter:8,containerStyle:0,containerClassName:1})}}function dt(l){let e,t,s,o,n,r;o=new mt({});const f=l[1].default,i=W(f,l,l[0],null);return{c(){e=D("link"),t=D("link"),s=B(),v(o.$$.fragment),n=B(),i&&i.c(),this.h()},l(c){const a=pe("svelte-se0gss",document.head);e=O(a,"LINK",{rel:!0,as:!0,href:!0}),t=O(a,"LINK",{rel:!0,as:!0,href:!0}),a.forEach(d),s=A(c),I(o.$$.fragment,c),n=A(c),i&&i.l(c),this.h()},h(){b(e,"rel","preload"),b(e,"as","image"),b(e,"href","images/pause.svg"),b(t,"rel","preload"),b(t,"as","image"),b(t,"href","images/play.svg")},m(c,a){q(document.head,e),q(document.head,t),k(c,s,a),$(o,c,a),k(c,n,a),i&&i.m(c,a),r=!0},p(c,[a]){i&&i.p&&(!r||a&1)&&F(i,f,c,c[0],r?J(f,c[0],a,null):G(c[0]),null)},i(c){r||(_(o.$$.fragment,c),_(i,c),r=!0)},o(c){m(o.$$.fragment,c),m(i,c),r=!1},d(c){c&&(d(s),d(n)),d(e),d(t),w(o,c),i&&i.d(c)}}}function ht(l,e,t){let{$$slots:s={},$$scope:o}=e;return l.$$set=n=>{"$$scope"in n&&t(0,o=n.$$scope)},[o,s]}class yt extends V{constructor(e){super(),S(this,e,ht,dt,P,{})}}export{yt as component,kt as universal};