@nanoforge-dev/editor 0.0.2-beta.580354c → 0.0.2-beta.82a2d26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/_app/immutable/assets/0.B5z3JAkE.css +1 -0
- package/dist/client/_app/immutable/assets/0.B5z3JAkE.css.br +0 -0
- package/dist/client/_app/immutable/assets/0.B5z3JAkE.css.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BS47D1Yd2.js → BFWbalF82.js} +1 -1
- package/dist/client/_app/immutable/chunks/BFWbalF82.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BFWbalF82.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{DT8Ddh1L2.js → BLf9jss52.js} +1 -1
- package/dist/client/_app/immutable/chunks/BLf9jss52.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BLf9jss52.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{CKei9xPI2.js → BSNB_Uck2.js} +2 -2
- package/dist/client/_app/immutable/chunks/BSNB_Uck2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BSNB_Uck2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{Fu4roQAh.js → BWNegMLP.js} +1 -1
- package/dist/client/_app/immutable/chunks/BWNegMLP.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BWNegMLP.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{orCHVlgT.js → BesjqVrk.js} +1 -1
- package/dist/client/_app/immutable/chunks/BesjqVrk.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BesjqVrk.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BWDRzheF2.js → Bhafduqk2.js} +1 -1
- package/dist/client/_app/immutable/chunks/Bhafduqk2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Bhafduqk2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{CObqXk_q.js → Bp3dOgoC.js} +1 -1
- package/dist/client/_app/immutable/chunks/Bp3dOgoC.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Bp3dOgoC.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BpNXszev.js +6 -0
- package/dist/client/_app/immutable/chunks/BpNXszev.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BpNXszev.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{v6YHThuS.js → CBb7lP5l.js} +1 -1
- package/dist/client/_app/immutable/chunks/CBb7lP5l.js.br +2 -0
- package/dist/client/_app/immutable/chunks/CBb7lP5l.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{CZo4a556.js → CByF3Zfc.js} +1 -1
- package/dist/client/_app/immutable/chunks/CByF3Zfc.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CByF3Zfc.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{uo5fvlDn2.js → CJxKUjL-2.js} +1 -1
- package/dist/client/_app/immutable/chunks/CJxKUjL-2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CJxKUjL-2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{DH-ThjiG2.js → CVQMNY_q2.js} +2 -2
- package/dist/client/_app/immutable/chunks/CVQMNY_q2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CVQMNY_q2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{Bk9DeFcz2.js → CbW3yNTi.js} +1 -1
- package/dist/client/_app/immutable/chunks/CbW3yNTi.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CbW3yNTi.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CvkNa2t_.js +3 -0
- package/dist/client/_app/immutable/chunks/CvkNa2t_.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CvkNa2t_.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{CnhOha0Z2.js → D2PipAw82.js} +1 -1
- package/dist/client/_app/immutable/chunks/D2PipAw82.js.br +0 -0
- package/dist/client/_app/immutable/chunks/D2PipAw82.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BzGBrbo22.js → D6-zOYYZ2.js} +1 -1
- package/dist/client/_app/immutable/chunks/D6-zOYYZ2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/D6-zOYYZ2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{B4w9-fYM2.js → DGDm8Q4w2.js} +1 -1
- package/dist/client/_app/immutable/chunks/DGDm8Q4w2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DGDm8Q4w2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{DFXoGGM32.js → DRQF0pcw2.js} +1 -1
- package/dist/client/_app/immutable/chunks/DRQF0pcw2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DRQF0pcw2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DV4appXC.js +1 -0
- package/dist/client/_app/immutable/chunks/DV4appXC.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DV4appXC.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{C83DJP9w2.js → DYPPS7OK2.js} +1 -1
- package/dist/client/_app/immutable/chunks/DYPPS7OK2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DYPPS7OK2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BZqFHUa32.js → DaisyxdZ2.js} +1 -1
- package/dist/client/_app/immutable/chunks/DaisyxdZ2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DaisyxdZ2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BlGyHMDZ.js → DtcTX-YU.js} +1 -1
- package/dist/client/_app/immutable/chunks/DtcTX-YU.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DtcTX-YU.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{DHQLzCjY2.js → M5EMNuDS2.js} +1 -1
- package/dist/client/_app/immutable/chunks/M5EMNuDS2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/M5EMNuDS2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{DuDzfUqN2.js → SmrQhi1p2.js} +1 -1
- package/dist/client/_app/immutable/chunks/SmrQhi1p2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/SmrQhi1p2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{C7bUlFLk2.js → TFu7Wn2c2.js} +1 -1
- package/dist/client/_app/immutable/chunks/TFu7Wn2c2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/TFu7Wn2c2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BwWAgYKi2.js → mESnenQM2.js} +1 -1
- package/dist/client/_app/immutable/chunks/mESnenQM2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/mESnenQM2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/nE3VUeYj.js +0 -0
- package/dist/client/_app/immutable/chunks/nE3VUeYj.js.br +1 -0
- package/dist/client/_app/immutable/chunks/nE3VUeYj.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{mRVEsFly2.js → uIj7mV9x2.js} +1 -1
- package/dist/client/_app/immutable/chunks/uIj7mV9x2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/uIj7mV9x2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{D1JHNh7-.js → z7c9RqCD.js} +10 -10
- package/dist/client/_app/immutable/chunks/z7c9RqCD.js.br +0 -0
- package/dist/client/_app/immutable/chunks/z7c9RqCD.js.gz +0 -0
- package/dist/client/_app/immutable/entry/{app.B8CjVJ8m.js → app.6QEfz-iq.js} +2 -2
- package/dist/client/_app/immutable/entry/app.6QEfz-iq.js.br +0 -0
- package/dist/client/_app/immutable/entry/app.6QEfz-iq.js.gz +0 -0
- package/dist/client/_app/immutable/entry/start.DgVllUEP.js +1 -0
- package/dist/client/_app/immutable/entry/start.DgVllUEP.js.br +0 -0
- package/dist/client/_app/immutable/entry/start.DgVllUEP.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/{0.Cc3CiDns.js → 0.DHdCqwIJ.js} +1 -1
- package/dist/client/_app/immutable/nodes/0.DHdCqwIJ.js.br +0 -0
- package/dist/client/_app/immutable/nodes/0.DHdCqwIJ.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/{1.aoxJA8Qo.js → 1.loL9C4pA.js} +1 -1
- package/dist/client/_app/immutable/nodes/1.loL9C4pA.js.br +3 -0
- package/dist/client/_app/immutable/nodes/1.loL9C4pA.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/{10.DTh0Qakp.js → 11.BJRhAisP.js} +1 -1
- package/dist/client/_app/immutable/nodes/11.BJRhAisP.js.br +0 -0
- package/dist/client/_app/immutable/nodes/11.BJRhAisP.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/2.5Lbr-iiR.js +1 -0
- package/dist/client/_app/immutable/nodes/2.5Lbr-iiR.js.br +0 -0
- package/dist/client/_app/immutable/nodes/2.5Lbr-iiR.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/3.5BHWCtcR.js +6 -0
- package/dist/client/_app/immutable/nodes/3.5BHWCtcR.js.br +0 -0
- package/dist/client/_app/immutable/nodes/3.5BHWCtcR.js.gz +0 -0
- package/dist/client/_app/version.json +1 -1
- package/dist/client/_app/version.json.br +0 -0
- package/dist/client/_app/version.json.gz +0 -0
- package/dist/server/chunks/{0-BAWoYonx.js → 0-DK13KdVt.js} +6 -6
- package/dist/server/chunks/{0-BAWoYonx.js.map → 0-DK13KdVt.js.map} +1 -1
- package/dist/server/chunks/{1-l2q82N-q.js → 1-DytmaR_G.js} +6 -6
- package/dist/server/chunks/{1-l2q82N-q.js.map → 1-DytmaR_G.js.map} +1 -1
- package/dist/server/chunks/{9-DPn3d8kr.js → 10-zM8H1H7h.js} +5 -5
- package/dist/server/chunks/10-zM8H1H7h.js.map +1 -0
- package/dist/server/chunks/11-DAhp5wFR.js +22 -0
- package/dist/server/chunks/11-DAhp5wFR.js.map +1 -0
- package/dist/server/chunks/{2-BTcCBWEw.js → 2-BdHpeJzA.js} +10 -10
- package/dist/server/chunks/{2-BTcCBWEw.js.map → 2-BdHpeJzA.js.map} +1 -1
- package/dist/server/chunks/{3-B9-EfDcH.js → 3-CFpQUapX.js} +10 -10
- package/dist/server/chunks/{3-B9-EfDcH.js.map → 3-CFpQUapX.js.map} +1 -1
- package/dist/server/chunks/{4-BYQgShv3.js → 4-8BW6Sdb0.js} +23 -9
- package/dist/server/chunks/4-8BW6Sdb0.js.map +1 -0
- package/dist/server/chunks/{5-B4IXyXqv.js → 5-1NMUY_LH.js} +3 -3
- package/dist/server/chunks/{5-B4IXyXqv.js.map → 5-1NMUY_LH.js.map} +1 -1
- package/dist/server/chunks/{6-DH_IMDRv.js → 6-DE-wH6HQ.js} +3 -3
- package/dist/server/chunks/{6-DH_IMDRv.js.map → 6-DE-wH6HQ.js.map} +1 -1
- package/dist/server/chunks/7-B1Qi_1kM.js +18 -0
- package/dist/server/chunks/7-B1Qi_1kM.js.map +1 -0
- package/dist/server/chunks/8-sn6bIqkc.js +91 -0
- package/dist/server/chunks/8-sn6bIqkc.js.map +1 -0
- package/dist/server/chunks/{8-CRTa48Fz.js → 9-UjOK68In.js} +5 -5
- package/dist/server/chunks/{8-CRTa48Fz.js.map → 9-UjOK68In.js.map} +1 -1
- package/dist/server/chunks/{_layout.svelte-uX7XiB9K.js → _layout.svelte-By6MJeec.js} +5 -5
- package/dist/server/chunks/_layout.svelte-By6MJeec.js.map +1 -0
- package/dist/server/chunks/{_page.svelte-B-TY3dq2.js → _page.svelte-B3dvQwz5.js} +7 -7
- package/dist/server/chunks/{_page.svelte-B-TY3dq2.js.map → _page.svelte-B3dvQwz5.js.map} +1 -1
- package/dist/server/chunks/{_page.svelte-1s5jXYk_.js → _page.svelte-DRyjxD6O.js} +243 -97
- package/dist/server/chunks/_page.svelte-DRyjxD6O.js.map +1 -0
- package/dist/server/chunks/{_page.svelte-BHks8xKU.js → _page.svelte-DYpkpTnJ.js} +6 -6
- package/dist/server/chunks/_page.svelte-DYpkpTnJ.js.map +1 -0
- package/dist/server/chunks/_server.ts-C1vgzIkJ.js +13 -0
- package/dist/server/chunks/_server.ts-C1vgzIkJ.js.map +1 -0
- package/dist/server/chunks/{_server.ts-y6LeO9-5.js → _server.ts-Dy1xpkL2.js} +2 -2
- package/dist/server/chunks/{_server.ts-y6LeO9-5.js.map → _server.ts-Dy1xpkL2.js.map} +1 -1
- package/dist/server/chunks/{_server.ts-a-I4s4R9.js → _server.ts-Hci5qTfA.js} +2 -2
- package/dist/server/chunks/{_server.ts-a-I4s4R9.js.map → _server.ts-Hci5qTfA.js.map} +1 -1
- package/dist/server/chunks/app-DUeJj5RD.js.map +1 -1
- package/dist/server/chunks/{client-DWDrOrQL.js → client-DBcQyXdV.js} +4 -4
- package/dist/server/chunks/client-DBcQyXdV.js.map +1 -0
- package/dist/server/chunks/{error-cCQrHDre.js → error-dHCCrW4T.js} +301 -147
- package/dist/server/chunks/error-dHCCrW4T.js.map +1 -0
- package/dist/server/chunks/{error.svelte-nsiVeFAJ.js → error.svelte-CAHakCnN.js} +3 -3
- package/dist/server/chunks/error.svelte-CAHakCnN.js.map +1 -0
- package/dist/server/chunks/{exports-CWOtdr_a.js → exports-D0uQzbjy.js} +4 -4
- package/dist/server/chunks/{exports-CWOtdr_a.js.map → exports-D0uQzbjy.js.map} +1 -1
- package/dist/server/chunks/{hooks.server-Cdesln7C.js → hooks.server-BR9nwSH9.js} +6 -6
- package/dist/server/chunks/hooks.server-BR9nwSH9.js.map +1 -0
- package/dist/server/chunks/{hooks.universal-DhGFdBkK.js → hooks.universal-bt2XJEN9.js} +2 -2
- package/dist/server/chunks/{hooks.universal-DhGFdBkK.js.map → hooks.universal-bt2XJEN9.js.map} +1 -1
- package/dist/server/chunks/{events-Bhh2w-5S.js → index-server-BthNUqCR.js} +1006 -1005
- package/dist/server/chunks/index-server-BthNUqCR.js.map +1 -0
- package/dist/server/chunks/{internal-DsA4iYdx.js → internal-vr3mPczx.js} +2 -2
- package/dist/server/chunks/{internal-DsA4iYdx.js.map → internal-vr3mPczx.js.map} +1 -1
- package/dist/server/chunks/{internal2-DF9-voLX.js → internal2-DhEJvRRa.js} +22 -15
- package/dist/server/chunks/internal2-DhEJvRRa.js.map +1 -0
- package/dist/server/chunks/{loader-circle-CFNm9vip.js → loader-circle-C4T0os4K.js} +5 -5
- package/dist/server/chunks/loader-circle-C4T0os4K.js.map +1 -0
- package/dist/server/chunks/{logo-CgSTOPfJ.js → logo-V5iuJCmy.js} +4 -4
- package/dist/server/chunks/logo-V5iuJCmy.js.map +1 -0
- package/dist/server/chunks/{project-loader-DPwVwx5v.js → project-loader-CkPdftFo.js} +4 -4
- package/dist/server/chunks/project-loader-CkPdftFo.js.map +1 -0
- package/dist/server/chunks/{request-handler-guINVc1G.js → request-handler-BVHWtbqx.js} +206 -140
- package/dist/server/chunks/request-handler-BVHWtbqx.js.map +1 -0
- package/dist/server/chunks/{runtime-CDHWD9vo.js → runtime-26c7QsEi.js} +9 -9
- package/dist/server/chunks/runtime-26c7QsEi.js.map +1 -0
- package/dist/server/chunks/{schemas-nSPQog67.js → schemas-l8C4cVM-.js} +348 -303
- package/dist/server/chunks/schemas-l8C4cVM-.js.map +1 -0
- package/dist/server/chunks/{session-DLCjVGKo.js → session-By0bbFhg.js} +2 -2
- package/dist/server/chunks/{session-DLCjVGKo.js.map → session-By0bbFhg.js.map} +1 -1
- package/dist/server/chunks/shared-server-Cha0Qlv9.js.map +1 -1
- package/dist/server/chunks/{state-CuPzwLiF.js → state-D4QqZ0FB.js} +3 -3
- package/dist/server/chunks/state-D4QqZ0FB.js.map +1 -0
- package/dist/server/index.js +368 -353
- package/dist/server/index.js.map +1 -1
- package/dist/server/manifest.js +48 -24
- package/dist/server/manifest.js.map +1 -1
- package/package.json +18 -16
- package/dist/client/_app/immutable/assets/0.BRAq3OL4.css +0 -1
- package/dist/client/_app/immutable/assets/0.BRAq3OL4.css.br +0 -0
- package/dist/client/_app/immutable/assets/0.BRAq3OL4.css.gz +0 -0
- package/dist/client/_app/immutable/chunks/B4w9-fYM2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/B4w9-fYM2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BS47D1Yd2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BS47D1Yd2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BWDRzheF2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BWDRzheF2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BZqFHUa32.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BZqFHUa32.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Bk9DeFcz2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Bk9DeFcz2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BlGyHMDZ.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BlGyHMDZ.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Brp9NRGe.js +0 -6
- package/dist/client/_app/immutable/chunks/Brp9NRGe.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Brp9NRGe.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BwWAgYKi2.js.br +0 -3
- package/dist/client/_app/immutable/chunks/BwWAgYKi2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BwpZ7W8G.js +0 -1
- package/dist/client/_app/immutable/chunks/BwpZ7W8G.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BwpZ7W8G.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BzGBrbo22.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BzGBrbo22.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/C7bUlFLk2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/C7bUlFLk2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/C83DJP9w2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/C83DJP9w2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CKei9xPI2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CKei9xPI2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CObqXk_q.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CObqXk_q.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CZo4a556.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CZo4a556.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CnhOha0Z2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CnhOha0Z2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/D1JHNh7-.js.br +0 -0
- package/dist/client/_app/immutable/chunks/D1JHNh7-.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DFXoGGM32.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DFXoGGM32.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DH-ThjiG2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DH-ThjiG2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DHQLzCjY2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DHQLzCjY2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DT8Ddh1L2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DT8Ddh1L2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DuDzfUqN2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DuDzfUqN2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Fu4roQAh.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Fu4roQAh.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/ZLGReh43.js +0 -3
- package/dist/client/_app/immutable/chunks/ZLGReh43.js.br +0 -0
- package/dist/client/_app/immutable/chunks/ZLGReh43.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/mRVEsFly2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/mRVEsFly2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/orCHVlgT.js.br +0 -0
- package/dist/client/_app/immutable/chunks/orCHVlgT.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/uo5fvlDn2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/uo5fvlDn2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/v6YHThuS.js.br +0 -0
- package/dist/client/_app/immutable/chunks/v6YHThuS.js.gz +0 -0
- package/dist/client/_app/immutable/entry/app.B8CjVJ8m.js.br +0 -0
- package/dist/client/_app/immutable/entry/app.B8CjVJ8m.js.gz +0 -0
- package/dist/client/_app/immutable/entry/start.xcie2Yx0.js +0 -1
- package/dist/client/_app/immutable/entry/start.xcie2Yx0.js.br +0 -0
- package/dist/client/_app/immutable/entry/start.xcie2Yx0.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/0.Cc3CiDns.js.br +0 -0
- package/dist/client/_app/immutable/nodes/0.Cc3CiDns.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/1.aoxJA8Qo.js.br +0 -3
- package/dist/client/_app/immutable/nodes/1.aoxJA8Qo.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/10.DTh0Qakp.js.br +0 -0
- package/dist/client/_app/immutable/nodes/10.DTh0Qakp.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/2.DggbBWOd.js +0 -1
- package/dist/client/_app/immutable/nodes/2.DggbBWOd.js.br +0 -0
- package/dist/client/_app/immutable/nodes/2.DggbBWOd.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/3.CldxEoeJ.js +0 -6
- package/dist/client/_app/immutable/nodes/3.CldxEoeJ.js.br +0 -0
- package/dist/client/_app/immutable/nodes/3.CldxEoeJ.js.gz +0 -0
- package/dist/server/chunks/10-DliMkA_F.js +0 -22
- package/dist/server/chunks/10-DliMkA_F.js.map +0 -1
- package/dist/server/chunks/4-BYQgShv3.js.map +0 -1
- package/dist/server/chunks/7-CPMeoSUO.js +0 -98
- package/dist/server/chunks/7-CPMeoSUO.js.map +0 -1
- package/dist/server/chunks/9-DPn3d8kr.js.map +0 -1
- package/dist/server/chunks/_layout.svelte-uX7XiB9K.js.map +0 -1
- package/dist/server/chunks/_page.svelte-1s5jXYk_.js.map +0 -1
- package/dist/server/chunks/_page.svelte-BHks8xKU.js.map +0 -1
- package/dist/server/chunks/client-DWDrOrQL.js.map +0 -1
- package/dist/server/chunks/error-cCQrHDre.js.map +0 -1
- package/dist/server/chunks/error.svelte-nsiVeFAJ.js.map +0 -1
- package/dist/server/chunks/events-Bhh2w-5S.js.map +0 -1
- package/dist/server/chunks/hooks.server-Cdesln7C.js.map +0 -1
- package/dist/server/chunks/internal2-DF9-voLX.js.map +0 -1
- package/dist/server/chunks/loader-circle-CFNm9vip.js.map +0 -1
- package/dist/server/chunks/logo-CgSTOPfJ.js.map +0 -1
- package/dist/server/chunks/project-loader-DPwVwx5v.js.map +0 -1
- package/dist/server/chunks/request-handler-guINVc1G.js.map +0 -1
- package/dist/server/chunks/runtime-CDHWD9vo.js.map +0 -1
- package/dist/server/chunks/schemas-nSPQog67.js.map +0 -1
- package/dist/server/chunks/state-CuPzwLiF.js.map +0 -1
- /package/dist/client/_app/immutable/chunks/{CVaqCwHa.js → CVaqCwHa2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{CVaqCwHa.js.br → CVaqCwHa2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{CVaqCwHa.js.gz → CVaqCwHa2.js.gz} +0 -0
- /package/dist/client/_app/immutable/chunks/{De2hgUGE.js → De2hgUGE2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{De2hgUGE.js.br → De2hgUGE2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{De2hgUGE.js.gz → De2hgUGE2.js.gz} +0 -0
- /package/dist/server/chunks/{chunk-D7D4PA-g.js → rolldown-runtime-D7D4PA-g.js} +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.
|
|
2
|
-
import{$ as e,D as t,H as n,I as r,M as i,N as a,Ot as o,Q as s,S as c,St as l,W as u,Z as d,a as f,ct as p,et as m,i as h,j as g,k as _,l as v,nt as y,ot as b,r as x,tt as S,ut as C,xt as w}from"../chunks/
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DHdCqwIJ.js","../chunks/CvkNa2t_.js","../chunks/BesjqVrk.js","../chunks/xihTtKlq.js","../assets/0.B5z3JAkE.css","../nodes/1.loL9C4pA.js","../chunks/CBb7lP5l.js","../chunks/DV4appXC.js","../nodes/2.5Lbr-iiR.js","../chunks/BpNXszev.js","../chunks/JwdpM2S5.js","../assets/error.CV-KWLNP.css","../chunks/Bp3dOgoC.js","../chunks/z7c9RqCD.js","../nodes/3.5BHWCtcR.js","../chunks/CByF3Zfc.js","../assets/3.BP_hUVIU.css","../nodes/11.BJRhAisP.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$ as e,D as t,H as n,I as r,M as i,N as a,Ot as o,Q as s,S as c,St as l,W as u,Z as d,a as f,ct as p,et as m,i as h,j as g,k as _,l as v,nt as y,ot as b,r as x,tt as S,ut as C,xt as w}from"../chunks/CvkNa2t_.js";import{t as T}from"../chunks/JwdpM2S5.js";import"../chunks/xihTtKlq.js";var E=[`en`,`fr`],D=void 0;globalThis.__paraglide=globalThis.__paraglide??{},globalThis.__paraglide.ssr=globalThis.__paraglide.ssr??{};var O=()=>D?D.getStore()?.origin??`http://fallback.com`:typeof window<`u`?window.location.origin:`http://fallback.com`;function k(e){if(typeof e!=`string`)return;let t=e.toLowerCase();for(let e of E)if(e.toLowerCase()===t)return e}function A(e){return j(e)}function j(e){let t=typeof e==`string`?new URL(e,O()):new URL(e),n=t.pathname.split(`/`).filter(Boolean);return n.length>0&&k(n[0])&&(t.pathname=`/`+n.slice(1).join(`/`)),t}var M=e=>A(e.url).pathname,N={},P=a(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),F=a(`<!> <!>`,1);function I(a,h){l(h,!0);let T=f(h,`components`,23,()=>[]),E=f(h,`data_0`,3,null),D=f(h,`data_1`,3,null);e(()=>h.stores.page.set(h.page)),s(()=>{h.stores,h.page,h.constructors,T(),h.form,E(),D(),h.stores.page.notify()});let O=p(!1),k=p(!1),A=p(null);x(()=>{let e=h.stores.page.subscribe(()=>{n(O)&&(b(k,!0),u().then(()=>{b(A,document.title||`untitled page`,!0)}))});return b(O,!0),e});let j=C(()=>h.constructors[1]);var M=F(),N=S(M),I=e=>{let t=C(()=>h.constructors[0]);var r=i();c(S(r),()=>n(t),(e,t)=>{v(t(e,{get data(){return E()},get form(){return h.form},get params(){return h.page.params},children:(e,t)=>{var r=i();c(S(r),()=>n(j),(e,t)=>{v(t(e,{get data(){return D()},get form(){return h.form},get params(){return h.page.params}}),e=>T()[1]=e,()=>T()?.[1])}),g(e,r)},$$slots:{default:!0}}),e=>T()[0]=e,()=>T()?.[0])}),g(e,r)},L=e=>{let t=C(()=>h.constructors[0]);var r=i();c(S(r),()=>n(t),(e,t)=>{v(t(e,{get data(){return E()},get form(){return h.form},get params(){return h.page.params}}),e=>T()[0]=e,()=>T()?.[0])}),g(e,r)};t(N,e=>{h.constructors[1]?e(I):e(L,-1)});var R=y(N,2),z=e=>{var i=P(),a=m(i),s=e=>{var t=r();d(()=>_(t,n(A))),g(e,t)};t(a,e=>{n(k)&&e(s)}),o(i),g(e,i)};t(R,e=>{n(O)&&e(z)}),g(a,M),w()}var L=h(I),R=[()=>T(()=>import(`../nodes/0.DHdCqwIJ.js`),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>T(()=>import(`../nodes/1.loL9C4pA.js`),__vite__mapDeps([5,1,6,7,3]),import.meta.url),()=>T(()=>import(`../nodes/2.5Lbr-iiR.js`),__vite__mapDeps([8,1,9,10,2,3,7,11,12,13]),import.meta.url),()=>T(()=>import(`../nodes/3.5BHWCtcR.js`),__vite__mapDeps([14,1,9,10,2,3,7,11,12,6,15,16]),import.meta.url),()=>T(()=>import(`../chunks/C50LmoI1.js`),[],import.meta.url),()=>T(()=>import(`../chunks/DybRo6-H.js`),[],import.meta.url),()=>T(()=>import(`../chunks/DgrK8UCQ.js`),[],import.meta.url),()=>T(()=>import(`../chunks/Cl5WnCnS.js`),[],import.meta.url),()=>T(()=>import(`../chunks/BKFRmAUx.js`),[],import.meta.url),()=>T(()=>import(`../chunks/nE3VUeYj.js`),[],import.meta.url),()=>T(()=>import(`../chunks/BvRk9kiK.js`),[],import.meta.url),()=>T(()=>import(`../nodes/11.BJRhAisP.js`),__vite__mapDeps([17,1,9,10,2,3,7,11,13,6,15]),import.meta.url)],z=[],B={"/":[2],"/actions/project":[4],"/actions/project/archive":[7],"/actions/project/fs":[6],"/actions/project/library":[10],"/actions/project/loader":[9],"/actions/project/package":[8],"/actions/project/save":[5],"/dashboard":[3],"/load":[11]},V={handleError:(({error:e})=>{console.error(e)}),reroute:M||(()=>{}),transport:{}},H=Object.fromEntries(Object.entries(V.transport).map(([e,t])=>[e,t.decode])),U=Object.fromEntries(Object.entries(V.transport).map(([e,t])=>[e,t.encode])),W=!1,G=(e,t)=>H[e](t);export{G as decode,H as decoders,B as dictionary,U as encoders,W as hash,V as hooks,N as matchers,R as nodes,L as root,z as server_loads};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as e,s as t}from"../chunks/DV4appXC.js";export{e as load_css,t as start};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as e,B as t,C as n,D as r,G as i,H as a,I as o,L as s,M as c,N as l,Ot as u,P as d,Q as f,R as p,S as m,St as h,Z as g,_,a as v,ct as y,dt as b,et as x,f as ee,g as te,h as S,j as C,k as w,kt as T,l as ne,n as re,nt as E,o as D,ot as O,p as ie,q as k,r as ae,rt as A,s as j,tt as M,ut as N,v as P,w as F,xt as oe,z as se}from"../chunks/ZLGReh43.js";import"../chunks/xihTtKlq.js";import{C as ce,D as le,E as I,L as ue,M as de,O as L,P as R,R as z,S as B,_ as V,a as H,c as U,g as W,k as fe,m as pe,n as G,o as me,p as he,r as K,s as q,t as ge,v as _e,w as ve,y as J}from"../chunks/orCHVlgT.js";var Y=class extends W{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||X(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=V({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),J.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function X(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var ye=class extends z{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Y({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=be(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=be(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=be(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=be(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){J.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>I(t,e))}findAll(e={}){return this.getAll().filter(t=>I(e,t))}notify(e){J.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return J.batch(()=>Promise.all(e.map(e=>e.continue().catch(L))))}};function be(e){return e.options.scope?.id}var xe=class extends z{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??ve(r,t),a=this.get(i);return a||(a=new pe({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){J.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>le(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>le(e,t)):t}notify(e){J.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){J.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){J.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Se=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new xe,this.#t=e.mutationCache||new ye,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=ue.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=_e.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(de(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=B(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return J.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;J.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return J.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=J.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(L).catch(L)}invalidateQueries(e,t={}){return J.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=J.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(L)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(L)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(de(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(L).catch(L)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(L).catch(L)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return _e.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(ce(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{fe(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(ce(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{fe(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=ve(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===R&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};function Ce(e,t){h(t,!0);let r=v(t,`client`,19,()=>new Se);ae(()=>{r().mount()}),he(r()),re(()=>{r().unmount()});var i=c();n(M(i),()=>t.children),C(e,i),oe()}var Z=Array(12).fill(0),we=l(`<div class="sonner-loading-bar"></div>`),Te=l(`<div><div class="sonner-spinner"></div></div>`);function Ee(e,t){h(t,!0);var n=Te(),r=x(n);F(r,23,()=>Z,(e,t)=>`spinner-bar-${t}`,(e,t)=>{C(e,we())}),u(r),u(n),g(e=>{_(n,1,e),S(n,`data-visible`,t.visible)},[()=>P([`sonner-loading-wrapper`,t.class].filter(Boolean).join(` `))]),C(e,n),oe()}function De(e){return e.label!==void 0}function Oe(){let e=y(A(typeof document<`u`?document.hidden:!1));return f(()=>t(document,`visibilitychange`,()=>{O(e,document.hidden,!0)})),{get current(){return a(e)}}}var ke=4e3,Ae=14,je=45,Me=200,Ne=.05,Pe={toast:``,title:``,description:``,loader:``,closeButton:``,cancelButton:``,actionButton:``,action:``,warning:``,error:``,success:``,default:``,info:``,loading:``};function Fe(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function Ie(e){return 1/(1.5+Math.abs(e)/20)}var Le=new Set(`$$slots.$$events.$$legacy.toast.index.expanded.invert.position.visibleToasts.expandByDefault.closeButton.interacting.cancelButtonStyle.actionButtonStyle.duration.descriptionClass.classes.unstyled.loadingIcon.successIcon.errorIcon.warningIcon.closeIcon.infoIcon.defaultRichColors.swipeDirections.closeButtonAriaLabel.pauseWhenPageIsHidden`.split(`.`)),Re=l(`<div><!></div>`),ze=l(`<button data-close-button=""><!></button>`),Be=l(`<div data-icon=""><!> <!></div>`),Ve=l(`<div data-description=""><!></div>`),He=l(`<button data-button="" data-cancel=""> </button>`),Ue=l(`<button data-button=""> </button>`),We=l(`<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>`,1),Ge=l(`<li aria-atomic="true" data-sonner-toast=""><!> <!></li>`);function Ke(e,t){h(t,!0);let s=e=>{var i=c(),o=M(i),s=e=>{var r=Re();n(x(r),()=>t.loadingIcon),u(r),g(e=>{_(r,1,e),S(r,`data-visible`,a(U)===`loading`)},[()=>P(q(a(X)?.loader,t.toast?.classes?.loader,`sonner-loader`))]),C(e,r)},l=e=>{{let n=N(()=>q(a(X)?.loader,t.toast.classes?.loader)),r=N(()=>a(U)===`loading`);Ee(e,{get class(){return a(n)},get visible(){return a(r)}})}};r(o,e=>{t.loadingIcon?e(s):e(l,-1)}),C(e,i)},l=v(t,`cancelButtonStyle`,3,``),d=v(t,`actionButtonStyle`,3,``),b=v(t,`descriptionClass`,3,``),ee=v(t,`unstyled`,3,!1),re=v(t,`defaultRichColors`,3,!1);D(t,Le);let ie={...Pe},k=y(!1),A=y(!1),F=y(!1),ce=y(!1),le=y(!1),I=y(0),ue=y(0),de=t.toast.duration||t.duration||ke,L=y(void 0),R=y(null),z=y(null),B=N(()=>t.index===0),V=N(()=>t.index+1<=t.visibleToasts),U=N(()=>t.toast.type),W=N(()=>t.toast.dismissible===void 0?t.toast.dismissable!==!1:t.toast.dismissible!==!1),fe=N(()=>t.toast.class||``),pe=N(()=>t.toast.descriptionClass||``),G=N(()=>H.heights.findIndex(e=>e.toastId===t.toast.id)||0),me=N(()=>t.toast.closeButton??t.closeButton),he=N(()=>t.toast.duration??t.duration??ke),K=null,ge=N(()=>t.position.split(`-`)),_e=N(()=>H.heights.reduce((e,t,n)=>n>=a(G)?e:e+t.height,0)),ve=Oe(),J=N(()=>t.toast.invert||t.invert),Y=N(()=>a(U)===`loading`),X=N(()=>({...ie,...t.classes})),ye=N(()=>t.toast.title),be=N(()=>t.toast.description),xe=y(0),Se=y(0),Ce=N(()=>Math.round(a(G)*Ae+a(_e)));f(()=>{a(ye),a(be);let e;e=t.expanded||t.expandByDefault?1:1-t.index*Ne;let n=i(()=>a(L));if(n===void 0)return;n.style.setProperty(`height`,`auto`);let r=n.offsetHeight,o=n.getBoundingClientRect().height,s=Math.round(o/e+2**-52&100)/100;n.style.removeProperty(`height`);let c;c=Math.abs(s-r)<1?s:r,O(ue,c,!0),H.setHeight({toastId:t.toast.id,height:c})});function Z(){O(A,!0),O(I,a(Ce),!0),H.removeHeight(t.toast.id),setTimeout(()=>{H.remove(t.toast.id)},Me)}let we,Te=N(()=>t.toast.promise&&a(U)===`loading`||t.toast.duration===1/0);function Ke(){O(xe,new Date().getTime(),!0),we=setTimeout(()=>{t.toast.onAutoClose?.(t.toast),Z()},de)}function qe(){if(a(Se)<a(xe)){let e=new Date().getTime()-a(xe);de-=e}O(Se,new Date().getTime(),!0)}f(()=>{t.toast.updated&&(clearTimeout(we),de=a(he),a(Te)||Ke())}),f(()=>(a(Te)||(t.expanded||t.interacting||t.pauseWhenPageIsHidden&&ve.current?qe():Ke()),()=>clearTimeout(we))),ae(()=>{O(k,!0);let e=a(L)?.getBoundingClientRect().height;return O(ue,e,!0),H.setHeight({toastId:t.toast.id,height:e}),()=>{H.removeHeight(t.toast.id)}}),f(()=>{t.toast.delete&&i(()=>{Z(),t.toast.onDismiss?.(t.toast)})});let Je=e=>{if(a(Y))return;O(I,a(Ce),!0);let t=e.target;t.setPointerCapture(e.pointerId),t.tagName!==`BUTTON`&&(O(F,!0),K={x:e.clientX,y:e.clientY})},Ye=()=>{if(a(ce)||!a(W))return;K=null;let e=Number(a(L)?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),n=Number(a(L)?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-0,i=a(R)===`x`?e:n,o=Math.abs(i)/r;if(Math.abs(i)>=je||o>.11){O(I,a(Ce),!0),t.toast.onDismiss?.(t.toast),a(R)===`x`?O(z,e>0?`right`:`left`,!0):O(z,n>0?`down`:`up`,!0),Z(),O(ce,!0);return}else a(L)?.style.setProperty(`--swipe-amount-x`,`0px`),a(L)?.style.setProperty(`--swipe-amount-y`,`0px`);O(le,!1),O(F,!1),O(R,null)},Xe=e=>{if(!K||!a(W)||(window.getSelection()?.toString().length??-1)>0)return;let n=e.clientY-K.y,r=e.clientX-K.x,i=t.swipeDirections??Fe(t.position);!a(R)&&(Math.abs(r)>1||Math.abs(n)>1)&&O(R,Math.abs(r)>Math.abs(n)?`x`:`y`,!0);let o={x:0,y:0};if(a(R)===`y`){if(i.includes(`top`)||i.includes(`bottom`))if(i.includes(`top`)&&n<0||i.includes(`bottom`)&&n>0)o.y=n;else{let e=n*Ie(n);o.y=Math.abs(e)<Math.abs(n)?e:n}}else if(a(R)===`x`&&(i.includes(`left`)||i.includes(`right`)))if(i.includes(`left`)&&r<0||i.includes(`right`)&&r>0)o.x=r;else{let e=r*Ie(r);o.x=Math.abs(e)<Math.abs(r)?e:r}(Math.abs(o.x)>0||Math.abs(o.y)>0)&&O(le,!0),a(L)?.style.setProperty(`--swipe-amount-x`,`${o.x}px`),a(L)?.style.setProperty(`--swipe-amount-y`,`${o.y}px`)},Ze=()=>{O(F,!1),O(R,null),K=null},Qe=N(()=>t.toast.icon?t.toast.icon:a(U)===`success`?t.successIcon:a(U)===`error`?t.errorIcon:a(U)===`warning`?t.warningIcon:a(U)===`info`?t.infoIcon:a(U)===`loading`?t.loadingIcon:null);var Q=Ge();S(Q,`tabindex`,0);let $e;var et=x(Q),tt=e=>{var r=ze();n(x(r),()=>t.closeIcon??T),u(r),g(e=>{S(r,`aria-label`,t.closeButtonAriaLabel),S(r,`data-disabled`,a(Y)),_(r,1,e)},[()=>P(q(a(X)?.closeButton,t.toast?.classes?.closeButton))]),p(`click`,r,()=>{a(Y)||!a(W)||(Z(),t.toast.onDismiss?.(t.toast))}),C(e,r)};r(et,e=>{a(me)&&!t.toast.component&&a(U)!==`loading`&&t.closeIcon!==null&&e(tt)});var nt=E(et,2),rt=e=>{let n=N(()=>t.toast.component);var r=c();m(M(r),()=>a(n),(e,n)=>{n(e,j(()=>t.toast.componentProps,{closeToast:Z}))}),C(e,r)},it=e=>{var i=We(),f=M(i),h=e=>{var i=Be(),o=x(i),l=e=>{var n=c(),i=M(n),a=e=>{var n=c();m(M(n),()=>t.toast.icon,(e,t)=>{t(e,{})}),C(e,n)},o=e=>{s(e)};r(i,e=>{t.toast.icon?e(a):e(o,-1)}),C(e,n)};r(o,e=>{(t.toast.promise||a(U)===`loading`)&&e(l)});var d=E(o,2),f=e=>{var i=c(),o=M(i),s=e=>{var n=c();m(M(n),()=>t.toast.icon,(e,t)=>{t(e,{})}),C(e,n)},l=e=>{var r=c();n(M(r),()=>t.successIcon??T),C(e,r)},u=e=>{var r=c();n(M(r),()=>t.errorIcon??T),C(e,r)},d=e=>{var r=c();n(M(r),()=>t.warningIcon??T),C(e,r)},f=e=>{var r=c();n(M(r),()=>t.infoIcon??T),C(e,r)};r(o,e=>{t.toast.icon?e(s):a(U)===`success`?e(l,1):a(U)===`error`?e(u,2):a(U)===`warning`?e(d,3):a(U)===`info`&&e(f,4)}),C(e,i)};r(d,e=>{t.toast.type!==`loading`&&e(f)}),u(i),g(e=>_(i,1,e),[()=>P(q(a(X)?.icon,t.toast?.classes?.icon))]),C(e,i)};r(f,e=>{(a(U)||t.toast.icon||t.toast.promise)&&t.toast.icon!==null&&(a(Qe)!==null||t.toast.icon)&&e(h)});var v=E(f,2),y=x(v),ee=x(y),S=e=>{var n=c(),i=M(n),s=e=>{let n=N(()=>t.toast.title);var r=c();m(M(r),()=>a(n),(e,n)=>{n(e,j(()=>t.toast.componentProps))}),C(e,r)},l=e=>{var n=o();g(()=>w(n,t.toast.title)),C(e,n)};r(i,e=>{typeof t.toast.title==`string`?e(l,-1):e(s)}),C(e,n)};r(ee,e=>{t.toast.title&&e(S)}),u(y);var ne=E(y,2),re=e=>{var n=Ve(),i=x(n),s=e=>{let n=N(()=>t.toast.description);var r=c();m(M(r),()=>a(n),(e,n)=>{n(e,j(()=>t.toast.componentProps))}),C(e,r)},l=e=>{var n=o();g(()=>w(n,t.toast.description)),C(e,n)};r(i,e=>{typeof t.toast.description==`string`?e(l,-1):e(s)}),u(n),g(e=>_(n,1,e),[()=>P(q(b(),a(pe),a(X)?.description,t.toast.classes?.description))]),C(e,n)};r(ne,e=>{t.toast.description&&e(re)}),u(v);var D=E(v,2),O=e=>{var n=c(),i=M(n),o=e=>{var n=c();m(M(n),()=>t.toast.cancel,(e,t)=>{t(e,{})}),C(e,n)},s=e=>{var n=He(),r=x(n,!0);u(n),g(e=>{te(n,t.toast.cancelButtonStyle??l()),_(n,1,e),w(r,t.toast.cancel.label)},[()=>P(q(a(X)?.cancelButton,t.toast?.classes?.cancelButton))]),p(`click`,n,e=>{De(t.toast.cancel)&&a(W)&&(t.toast.cancel?.onClick?.(e),Z())}),C(e,n)},d=N(()=>De(t.toast.cancel));r(i,e=>{typeof t.toast.cancel==`function`?e(o):a(d)&&e(s,1)}),C(e,n)};r(D,e=>{t.toast.cancel&&e(O)});var ie=E(D,2),k=e=>{var n=c(),i=M(n),o=e=>{var n=c();m(M(n),()=>t.toast.action,(e,t)=>{t(e,{})}),C(e,n)},s=e=>{var n=Ue(),r=x(n,!0);u(n),g(e=>{te(n,t.toast.actionButtonStyle??d()),_(n,1,e),w(r,t.toast.action.label)},[()=>P(q(a(X)?.actionButton,t.toast?.classes?.actionButton))]),p(`click`,n,e=>{De(t.toast.action)&&(t.toast.action?.onClick(e),!e.defaultPrevented&&Z())}),C(e,n)},l=N(()=>De(t.toast.action));r(i,e=>{typeof t.toast.action==`function`?e(o):a(l)&&e(s,1)}),C(e,n)};r(ie,e=>{t.toast.action&&e(k)}),g((e,t)=>{_(v,1,e),_(y,1,t)},[()=>P(q(a(X)?.content,t.toast?.classes?.content)),()=>P(q(a(X)?.title,t.toast?.classes?.title))]),C(e,i)};r(nt,e=>{t.toast.component?e(rt):e(it,-1)}),u(Q),ne(Q,e=>O(L,e),()=>a(L)),g((e,n,r)=>{_(Q,1,e),S(Q,`aria-live`,t.toast.important?`assertive`:`polite`),S(Q,`data-rich-colors`,t.toast.richColors??re()),S(Q,`data-styled`,!(t.toast.component||t.toast.unstyled||ee())),S(Q,`data-mounted`,a(k)),S(Q,`data-promise`,n),S(Q,`data-swiped`,a(le)),S(Q,`data-removed`,a(A)),S(Q,`data-visible`,a(V)),S(Q,`data-y-position`,a(ge)[0]),S(Q,`data-x-position`,a(ge)[1]),S(Q,`data-index`,t.index),S(Q,`data-front`,a(B)),S(Q,`data-swiping`,a(F)),S(Q,`data-dismissible`,a(W)),S(Q,`data-type`,a(U)),S(Q,`data-invert`,a(J)),S(Q,`data-swipe-out`,a(ce)),S(Q,`data-swipe-direction`,a(z)),S(Q,`data-expanded`,r),$e=te(Q,`${t.style} ${t.toast.style}`,$e,{"--index":t.index,"--toasts-before":t.index,"--z-index":H.toasts.length-t.index,"--offset":`${a(A)?a(I):a(Ce)}px`,"--initial-height":t.expandByDefault?`auto`:`${a(ue)}px`})},[()=>P(q(t.class,a(fe),a(X)?.toast,t.toast?.classes?.toast,a(X)?.[a(U)],t.toast?.classes?.[a(U)])),()=>!!t.toast.promise,()=>!!(t.expanded||t.expandByDefault&&a(k))]),p(`pointermove`,Q,Xe),p(`pointerup`,Q,Ye),p(`pointerdown`,Q,Je),se(`dragend`,Q,Ze),C(e,Q),oe()}s([`pointermove`,`pointerup`,`pointerdown`,`click`]);var qe=d(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-success-icon=""><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>`);function Je(e){C(e,qe())}var Ye=d(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>`);function Xe(e){C(e,Ye())}var Ze=d(`<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" data-sonner-warning-icon="" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>`);function Qe(e){C(e,Ze())}var Q=d(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-info-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>`);function $e(e){C(e,Q())}var et=d(`<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-sonner-close-icon=""><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>`);function tt(e){C(e,et())}var nt=3,rt=`24px`,it=`16px`,at=4e3,ot=356,st=14,ct=`dark`,lt=`light`;function ut(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?it:rt;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{let r=e[t];r===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof r==`number`?`${r}px`:r}):o(a)}),n}var dt=new Set(`$$slots.$$events.$$legacy.invert.position.hotkey.expand.closeButton.offset.mobileOffset.theme.richColors.duration.visibleToasts.toastOptions.dir.gap.pauseWhenPageIsHidden.loadingIcon.successIcon.errorIcon.warningIcon.closeIcon.infoIcon.containerAriaLabel.class.closeButtonAriaLabel.onblur.onfocus.onmouseenter.onmousemove.onmouseleave.ondragend.onpointerdown.onpointerup`.split(`.`)),ft=l(`<ol></ol>`),pt=l(`<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-1m67lr4"><!></section>`);function mt(e,o){h(o,!0);function s(e){return e===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?ct:lt:e}let l=v(o,`invert`,3,!1),d=v(o,`position`,3,`bottom-right`),p=v(o,`hotkey`,19,()=>[`altKey`,`KeyT`]),m=v(o,`expand`,3,!1),_=v(o,`closeButton`,3,!1),b=v(o,`offset`,3,rt),te=v(o,`mobileOffset`,3,it),w=v(o,`theme`,3,`light`),re=v(o,`richColors`,3,!1),E=v(o,`duration`,3,at),k=v(o,`visibleToasts`,3,nt),j=v(o,`toastOptions`,19,()=>({})),P=v(o,`dir`,7,`auto`),se=v(o,`gap`,3,st),ce=v(o,`pauseWhenPageIsHidden`,3,!1),le=v(o,`containerAriaLabel`,3,`Notifications`),I=v(o,`closeButtonAriaLabel`,3,`Close toast`),ue=D(o,dt);function de(){if(P()!==`auto`)return P();if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?(i(()=>P(window.getComputedStyle(document.documentElement).direction??`ltr`)),P()):(i(()=>P(e)),e)}let L=N(()=>Array.from(new Set([d(),...H.toasts.filter(e=>e.position).map(e=>e.position)].filter(Boolean)))),R=y(!1),z=y(!1),B=y(A(s(w()))),V=y(void 0),U=y(null),W=y(!1),fe=N(()=>p().join(`+`).replace(/Key/g,``).replace(/Digit/g,``));f(()=>{H.toasts.length<=1&&O(R,!1)}),f(()=>{let e=H.toasts.filter(e=>e.dismiss&&!e.delete);e.length>0&&(H.toasts=H.toasts.map(t=>e.find(e=>e.id===t.id)?{...t,delete:!0}:t))}),f(()=>()=>{a(V)&&a(U)&&(a(U).focus({preventScroll:!0}),O(U,null),O(W,!1))}),ae(()=>(H.reset(),t(document,`keydown`,e=>{p().every(t=>e[t]||e.code===t)&&(O(R,!0),a(V)?.focus()),e.code===`Escape`&&(document.activeElement===a(V)||a(V)?.contains(document.activeElement))&&O(R,!1)}))),f(()=>{if(w()!==`system`&&O(B,w()),typeof window<`u`){w()===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?O(B,ct):O(B,lt));let e=window.matchMedia(`(prefers-color-scheme: dark)`),t=({matches:e})=>{w()===`system`&&O(B,e?ct:lt,!0)};`addEventListener`in e?e.addEventListener(`change`,t):e.addListener(t)}});let pe=e=>{o.onblur?.(e),a(W)&&!e.currentTarget.contains(e.relatedTarget)&&(O(W,!1),a(U)&&(a(U).focus({preventScroll:!0}),O(U,null)))},G=e=>{o.onfocus?.(e),!(e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`)&&(a(W)||(O(W,!0),O(U,e.relatedTarget,!0)))},he=e=>{o.onpointerdown?.(e),!(e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`)&&O(z,!0)},q=e=>{o.onmouseenter?.(e),O(R,!0)},ge=e=>{o.onmouseleave?.(e),a(z)||O(R,!1)},_e=e=>{o.onmousemove?.(e),O(R,!0)},ve=e=>{o.ondragend?.(e),O(R,!1)},J=e=>{o.onpointerup?.(e),O(z,!1)};me.set(new K);var Y=pt();S(Y,`tabindex`,-1);var X=x(Y),ye=e=>{var t=c();F(M(t),18,()=>a(L),e=>e,(e,t,i,s)=>{let d=N(()=>{let[e,n]=t.split(`-`);return{y:e,x:n}}),f=N(()=>ut(b(),te()));var p=ft();ie(p,e=>({tabindex:-1,dir:e,class:o.class,"data-sonner-toaster":!0,"data-sonner-theme":a(B),"data-y-position":a(d).y,"data-x-position":a(d).x,style:o.style,onblur:pe,onfocus:G,onmouseenter:q,onmousemove:_e,onmouseleave:ge,ondragend:ve,onpointerdown:he,onpointerup:J,...ue,[ee]:{"--front-toast-height":`${H.heights[0]?.height}px`,"--width":`${ot}px`,"--gap":`${se()}px`,"--offset-top":a(f)[`--offset-top`],"--offset-right":a(f)[`--offset-right`],"--offset-bottom":a(f)[`--offset-bottom`],"--offset-left":a(f)[`--offset-left`],"--mobile-offset-top":a(f)[`--mobile-offset-top`],"--mobile-offset-right":a(f)[`--mobile-offset-right`],"--mobile-offset-bottom":a(f)[`--mobile-offset-bottom`],"--mobile-offset-left":a(f)[`--mobile-offset-left`]}}),[()=>de()],void 0,void 0,`svelte-1m67lr4`),F(p,23,()=>H.toasts.filter(e=>!e.position&&a(i)===0||e.position===t),e=>e.id,(e,i,s,u)=>{{let u=e=>{var t=c(),i=M(t),a=e=>{var t=c();n(M(t),()=>o.successIcon??T),C(e,t)},s=e=>{Je(e,{})};r(i,e=>{o.successIcon?e(a):o.successIcon!==null&&e(s,1)}),C(e,t)},d=e=>{var t=c(),i=M(t),a=e=>{var t=c();n(M(t),()=>o.errorIcon??T),C(e,t)},s=e=>{Xe(e,{})};r(i,e=>{o.errorIcon?e(a):o.errorIcon!==null&&e(s,1)}),C(e,t)},f=e=>{var t=c(),i=M(t),a=e=>{var t=c();n(M(t),()=>o.warningIcon??T),C(e,t)},s=e=>{Qe(e,{})};r(i,e=>{o.warningIcon?e(a):o.warningIcon!==null&&e(s,1)}),C(e,t)},p=e=>{var t=c(),i=M(t),a=e=>{var t=c();n(M(t),()=>o.infoIcon??T),C(e,t)},s=e=>{$e(e,{})};r(i,e=>{o.infoIcon?e(a):o.infoIcon!==null&&e(s,1)}),C(e,t)},h=e=>{var t=c(),i=M(t),a=e=>{var t=c();n(M(t),()=>o.closeIcon??T),C(e,t)},s=e=>{tt(e,{})};r(i,e=>{o.closeIcon?e(a):o.closeIcon!==null&&e(s,1)}),C(e,t)},g=N(()=>j()?.duration??E()),v=N(()=>j()?.class??``),y=N(()=>j()?.descriptionClass||``),b=N(()=>j()?.style??``),x=N(()=>j().classes||{}),ee=N(()=>j().unstyled??!1),te=N(()=>j()?.cancelButtonStyle??``),S=N(()=>j()?.actionButtonStyle??``),w=N(()=>j()?.closeButtonAriaLabel??I());Ke(e,{get index(){return a(s)},get toast(){return a(i)},get defaultRichColors(){return re()},get duration(){return a(g)},get class(){return a(v)},get descriptionClass(){return a(y)},get invert(){return l()},get visibleToasts(){return k()},get closeButton(){return _()},get interacting(){return a(z)},get position(){return t},get style(){return a(b)},get classes(){return a(x)},get unstyled(){return a(ee)},get cancelButtonStyle(){return a(te)},get actionButtonStyle(){return a(S)},get closeButtonAriaLabel(){return a(w)},get expandByDefault(){return m()},get expanded(){return a(R)},get pauseWhenPageIsHidden(){return ce()},get loadingIcon(){return o.loadingIcon},successIcon:u,errorIcon:d,warningIcon:f,infoIcon:p,closeIcon:h,$$slots:{successIcon:!0,errorIcon:!0,warningIcon:!0,infoIcon:!0,closeIcon:!0}})}}),u(p),ne(p,e=>O(V,e),()=>a(V)),g(()=>p.dir=p.dir),C(e,p)}),C(e,t)};r(X,e=>{H.toasts.length>0&&e(ye)}),u(Y),g(()=>S(Y,`aria-label`,`${le()??``} ${a(fe)??``}`)),C(e,Y),oe()}var ht=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function gt(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}new class{#e;#t;constructor(e={}){let{window:n=ht,document:r=n?.document}=e;n!==void 0&&(this.#e=r,this.#t=b(e=>{let r=t(n,`focusin`,e),i=t(n,`focusout`,e);return()=>{r(),i()}}))}get current(){return this.#t?.(),this.#e?gt(this.#e):null}};function _t(t,n){switch(t){case`post`:f(n);break;case`pre`:e(n);break}}function vt(e,t,n,r={}){let{lazy:a=!1}=r,o=!a,s=Array.isArray(e)?[]:void 0;_t(t,()=>{let t=Array.isArray(e)?e.map(e=>e()):e();if(!o){o=!0,s=t;return}let r=i(()=>n(t,s));return s=t,r})}function yt(e,t,n){let r=k(()=>{let i=!1;vt(e,t,(e,t)=>{if(i){r();return}let a=n(e,t);return i=!0,a},{lazy:!0})});f(()=>r)}function bt(e,t,n){vt(e,`post`,t,n)}function xt(e,t,n){vt(e,`pre`,t,n)}bt.pre=xt;function St(e,t){yt(e,`post`,t)}function Ct(e,t){yt(e,`pre`,t)}St.pre=Ct;function wt(e,t){switch(e){case`local`:return t.localStorage;case`session`:return t.sessionStorage}}var Tt=class{#e;#t;#n;#r;#i;#a=y(0);constructor(e,n,r={}){let{storage:i=`local`,serializer:a={serialize:JSON.stringify,deserialize:JSON.parse},syncTabs:o=!0,window:s=ht}=r;if(this.#e=n,this.#t=e,this.#n=a,s===void 0)return;let c=wt(i,s);this.#r=c;let l=c.getItem(e);l===null?this.#c(n):this.#e=this.#s(l),o&&i===`local`&&(this.#i=b(()=>t(s,`storage`,this.#o)))}get current(){this.#i?.(),a(this.#a);let e=this.#s(this.#r?.getItem(this.#t))??this.#e,t=new WeakMap,n=r=>{if(r===null||r?.constructor.name===`Date`||typeof r!=`object`)return r;let i=t.get(r);return i||(i=new Proxy(r,{get:(e,t)=>(a(this.#a),n(Reflect.get(e,t))),set:(t,n,r)=>(O(this.#a,a(this.#a)+1),Reflect.set(t,n,r),this.#c(e),!0)}),t.set(r,i)),i};return n(e)}set current(e){this.#c(e),O(this.#a,a(this.#a)+1)}#o=e=>{e.key!==this.#t||e.newValue===null||(this.#e=this.#s(e.newValue),O(this.#a,a(this.#a)+1))};#s(e){try{return this.#n.deserialize(e)}catch(t){console.error(`Error when parsing "${e}" from persisted store "${this.#t}"`,t);return}}#c(e){try{e!=null&&this.#r?.setItem(this.#t,this.#n.serialize(e))}catch(e){console.error(`Error when writing value from persisted store "${this.#t}" to ${this.#r}`,e)}}};function Et(e,t){let n,r=null;return(...i)=>new Promise(a=>{r&&r(void 0),r=a,clearTimeout(n),n=setTimeout(async()=>{let t=await e(...i);r&&=(r(t),null)},t)})}function Dt(e,t){let n=0,r=null;return(...i)=>{let a=Date.now();return n&&a-n<t?r??Promise.resolve(void 0):(n=a,r=e(...i),r)}}function Ot(e,t,n={},r){let{lazy:i=!1,once:o=!1,initialValue:s,debounce:c,throttle:l}=n,u=y(A(s)),d=y(!1),f=y(void 0),p=y(A([])),m=()=>{a(p).forEach(e=>e()),O(p,[],!0)},h=e=>{O(p,[...a(p),e],!0)},g=async(e,n,r=!1)=>{try{O(d,!0),O(f,void 0),m();let i=new AbortController;h(()=>i.abort());let o=await t(e,n,{data:a(u),refetching:r,onCleanup:h,signal:i.signal});return O(u,o,!0),o}catch(e){e instanceof DOMException&&e.name===`AbortError`||O(f,e,!0);return}finally{O(d,!1)}},_=c?Et(g,c):l?Dt(g,l):g,v=Array.isArray(e)?e:[e],b;return r((t,n)=>{o&&b||b&&JSON.stringify(t)===JSON.stringify(b)||(b=t,_(Array.isArray(e)?t:t[0],Array.isArray(e)?n:n?.[0]))},{lazy:i}),{get current(){return a(u)},get loading(){return a(d)},get error(){return a(f)},mutate:e=>{O(u,e,!0)},refetch:t=>{let n=v.map(e=>e());return _(Array.isArray(e)?n:n[0],Array.isArray(e)?n:n[0],t??!0)}}}function kt(e,t,n){return Ot(e,t,n,(t,n)=>{let r=Array.isArray(e)?e:[e];bt(()=>r.map(e=>e()),(e,n)=>{t(e,n??[])},n)})}function At(e,t,n){return Ot(e,t,n,(t,n)=>{let r=Array.isArray(e)?e:[e];bt.pre(()=>r.map(e=>e()),(e,n)=>{t(e,n??[])},n)})}kt.pre=At;function jt(e){return e.filter(e=>e.length>0)}var Mt={getItem:e=>null,setItem:(e,t)=>{}},Nt=typeof document<`u`;function Pt(e){return typeof e==`function`}function Ft(e){return typeof e==`object`&&!!e}var It=Symbol(`box`),Lt=Symbol(`is-writable`);function Rt(e){return Ft(e)&&It in e}function zt(e){return $.isBox(e)&&Lt in e}function $(e){let t=y(A(e));return{[It]:!0,[Lt]:!0,get current(){return a(t)},set current(e){O(t,e,!0)}}}function Bt(e,t){let n=N(e);return t?{[It]:!0,[Lt]:!0,get current(){return a(n)},set current(e){t(e)}}:{[It]:!0,get current(){return e()}}}function Vt(e){return $.isBox(e)?e:Pt(e)?$.with(e):$(e)}function Ht(e){return Object.entries(e).reduce((e,[t,n])=>$.isBox(n)?($.isWritableBox(n)?Object.defineProperty(e,t,{get(){return n.current},set(e){n.current=e}}):Object.defineProperty(e,t,{get(){return n.current}}),e):Object.assign(e,{[t]:n}),{})}function Ut(e){return $.isWritableBox(e)?{[It]:!0,get current(){return e.current}}:e}$.from=Vt,$.with=Bt,$.flatten=Ht,$.readonly=Ut,$.isBox=Rt,$.isWritableBox=zt;function Wt(e,t){let n=RegExp(e,`g`);return e=>{if(typeof e!=`string`)throw TypeError(`expected an argument of type string, but got ${typeof e}`);return e.match(n)?e.replace(n,t):e}}var Gt=Wt(/[A-Z]/,e=>`-${e.toLowerCase()}`);function Kt(e){if(!e||typeof e!=`object`||Array.isArray(e))throw TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${Gt(t)}: ${e[t]};`).join(`
|
|
1
|
+
import{$ as e,B as t,C as n,D as r,G as i,H as a,I as o,L as s,M as c,N as l,Ot as u,P as d,Q as f,R as p,S as m,St as h,Z as g,_,a as v,ct as y,dt as b,et as x,f as ee,g as te,h as S,j as C,k as w,kt as T,l as ne,n as re,nt as E,o as D,ot as O,p as ie,q as k,r as ae,rt as A,s as j,tt as M,ut as N,v as P,w as F,xt as oe,z as se}from"../chunks/CvkNa2t_.js";import"../chunks/xihTtKlq.js";import{C as ce,D as le,E as I,L as ue,M as de,O as L,P as R,R as z,S as B,_ as V,a as H,c as U,g as W,k as fe,m as pe,n as G,o as me,p as he,r as K,s as q,t as ge,v as _e,w as ve,y as J}from"../chunks/BesjqVrk.js";var Y=class extends W{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||X(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=V({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),J.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function X(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var ye=class extends z{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Y({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=be(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=be(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=be(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=be(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){J.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>I(t,e))}findAll(e={}){return this.getAll().filter(t=>I(e,t))}notify(e){J.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return J.batch(()=>Promise.all(e.map(e=>e.continue().catch(L))))}};function be(e){return e.options.scope?.id}var xe=class extends z{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??ve(r,t),a=this.get(i);return a||(a=new pe({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){J.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>le(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>le(e,t)):t}notify(e){J.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){J.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){J.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Se=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new xe,this.#t=e.mutationCache||new ye,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=ue.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=_e.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(de(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=B(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return J.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;J.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return J.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=J.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(L).catch(L)}invalidateQueries(e,t={}){return J.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=J.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(L)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(L)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(de(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(L).catch(L)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(L).catch(L)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return _e.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(ce(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{fe(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(ce(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{fe(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=ve(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===R&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};function Ce(e,t){h(t,!0);let r=v(t,`client`,19,()=>new Se);ae(()=>{r().mount()}),he(r()),re(()=>{r().unmount()});var i=c();n(M(i),()=>t.children),C(e,i),oe()}var Z=Array(12).fill(0),we=l(`<div class="sonner-loading-bar"></div>`),Te=l(`<div><div class="sonner-spinner"></div></div>`);function Ee(e,t){h(t,!0);var n=Te(),r=x(n);F(r,23,()=>Z,(e,t)=>`spinner-bar-${t}`,(e,t)=>{C(e,we())}),u(r),u(n),g(e=>{_(n,1,e),S(n,`data-visible`,t.visible)},[()=>P([`sonner-loading-wrapper`,t.class].filter(Boolean).join(` `))]),C(e,n),oe()}function De(e){return e.label!==void 0}function Oe(){let e=y(A(typeof document<`u`?document.hidden:!1));return f(()=>t(document,`visibilitychange`,()=>{O(e,document.hidden,!0)})),{get current(){return a(e)}}}var ke=4e3,Ae=14,je=45,Me=200,Ne=.05,Pe={toast:``,title:``,description:``,loader:``,closeButton:``,cancelButton:``,actionButton:``,action:``,warning:``,error:``,success:``,default:``,info:``,loading:``};function Fe(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function Ie(e){return 1/(1.5+Math.abs(e)/20)}var Le=new Set(`$$slots.$$events.$$legacy.toast.index.expanded.invert.position.visibleToasts.expandByDefault.closeButton.interacting.cancelButtonStyle.actionButtonStyle.duration.descriptionClass.classes.unstyled.loadingIcon.successIcon.errorIcon.warningIcon.closeIcon.infoIcon.defaultRichColors.swipeDirections.closeButtonAriaLabel.pauseWhenPageIsHidden`.split(`.`)),Re=l(`<div><!></div>`),ze=l(`<button data-close-button=""><!></button>`),Be=l(`<div data-icon=""><!> <!></div>`),Ve=l(`<div data-description=""><!></div>`),He=l(`<button data-button="" data-cancel=""> </button>`),Ue=l(`<button data-button=""> </button>`),We=l(`<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>`,1),Ge=l(`<li aria-atomic="true" data-sonner-toast=""><!> <!></li>`);function Ke(e,t){h(t,!0);let s=e=>{var i=c(),o=M(i),s=e=>{var r=Re();n(x(r),()=>t.loadingIcon),u(r),g(e=>{_(r,1,e),S(r,`data-visible`,a(U)===`loading`)},[()=>P(q(a(X)?.loader,t.toast?.classes?.loader,`sonner-loader`))]),C(e,r)},l=e=>{{let n=N(()=>q(a(X)?.loader,t.toast.classes?.loader)),r=N(()=>a(U)===`loading`);Ee(e,{get class(){return a(n)},get visible(){return a(r)}})}};r(o,e=>{t.loadingIcon?e(s):e(l,-1)}),C(e,i)},l=v(t,`cancelButtonStyle`,3,``),d=v(t,`actionButtonStyle`,3,``),b=v(t,`descriptionClass`,3,``),ee=v(t,`unstyled`,3,!1),re=v(t,`defaultRichColors`,3,!1);D(t,Le);let ie={...Pe},k=y(!1),A=y(!1),F=y(!1),ce=y(!1),le=y(!1),I=y(0),ue=y(0),de=t.toast.duration||t.duration||ke,L=y(void 0),R=y(null),z=y(null),B=N(()=>t.index===0),V=N(()=>t.index+1<=t.visibleToasts),U=N(()=>t.toast.type),W=N(()=>t.toast.dismissible===void 0?t.toast.dismissable!==!1:t.toast.dismissible!==!1),fe=N(()=>t.toast.class||``),pe=N(()=>t.toast.descriptionClass||``),G=N(()=>H.heights.findIndex(e=>e.toastId===t.toast.id)||0),me=N(()=>t.toast.closeButton??t.closeButton),he=N(()=>t.toast.duration??t.duration??ke),K=null,ge=N(()=>t.position.split(`-`)),_e=N(()=>H.heights.reduce((e,t,n)=>n>=a(G)?e:e+t.height,0)),ve=Oe(),J=N(()=>t.toast.invert||t.invert),Y=N(()=>a(U)===`loading`),X=N(()=>({...ie,...t.classes})),ye=N(()=>t.toast.title),be=N(()=>t.toast.description),xe=y(0),Se=y(0),Ce=N(()=>Math.round(a(G)*Ae+a(_e)));f(()=>{a(ye),a(be);let e;e=t.expanded||t.expandByDefault?1:1-t.index*Ne;let n=i(()=>a(L));if(n===void 0)return;n.style.setProperty(`height`,`auto`);let r=n.offsetHeight,o=n.getBoundingClientRect().height,s=Math.round(o/e+2**-52&100)/100;n.style.removeProperty(`height`);let c;c=Math.abs(s-r)<1?s:r,O(ue,c,!0),H.setHeight({toastId:t.toast.id,height:c})});function Z(){O(A,!0),O(I,a(Ce),!0),H.removeHeight(t.toast.id),setTimeout(()=>{H.remove(t.toast.id)},Me)}let we,Te=N(()=>t.toast.promise&&a(U)===`loading`||t.toast.duration===1/0);function Ke(){O(xe,new Date().getTime(),!0),we=setTimeout(()=>{t.toast.onAutoClose?.(t.toast),Z()},de)}function qe(){if(a(Se)<a(xe)){let e=new Date().getTime()-a(xe);de-=e}O(Se,new Date().getTime(),!0)}f(()=>{t.toast.updated&&(clearTimeout(we),de=a(he),a(Te)||Ke())}),f(()=>(a(Te)||(t.expanded||t.interacting||t.pauseWhenPageIsHidden&&ve.current?qe():Ke()),()=>clearTimeout(we))),ae(()=>{O(k,!0);let e=a(L)?.getBoundingClientRect().height;return O(ue,e,!0),H.setHeight({toastId:t.toast.id,height:e}),()=>{H.removeHeight(t.toast.id)}}),f(()=>{t.toast.delete&&i(()=>{Z(),t.toast.onDismiss?.(t.toast)})});let Je=e=>{if(a(Y))return;O(I,a(Ce),!0);let t=e.target;t.setPointerCapture(e.pointerId),t.tagName!==`BUTTON`&&(O(F,!0),K={x:e.clientX,y:e.clientY})},Ye=()=>{if(a(ce)||!a(W))return;K=null;let e=Number(a(L)?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),n=Number(a(L)?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-0,i=a(R)===`x`?e:n,o=Math.abs(i)/r;if(Math.abs(i)>=je||o>.11){O(I,a(Ce),!0),t.toast.onDismiss?.(t.toast),a(R)===`x`?O(z,e>0?`right`:`left`,!0):O(z,n>0?`down`:`up`,!0),Z(),O(ce,!0);return}else a(L)?.style.setProperty(`--swipe-amount-x`,`0px`),a(L)?.style.setProperty(`--swipe-amount-y`,`0px`);O(le,!1),O(F,!1),O(R,null)},Xe=e=>{if(!K||!a(W)||(window.getSelection()?.toString().length??-1)>0)return;let n=e.clientY-K.y,r=e.clientX-K.x,i=t.swipeDirections??Fe(t.position);!a(R)&&(Math.abs(r)>1||Math.abs(n)>1)&&O(R,Math.abs(r)>Math.abs(n)?`x`:`y`,!0);let o={x:0,y:0};if(a(R)===`y`){if(i.includes(`top`)||i.includes(`bottom`))if(i.includes(`top`)&&n<0||i.includes(`bottom`)&&n>0)o.y=n;else{let e=n*Ie(n);o.y=Math.abs(e)<Math.abs(n)?e:n}}else if(a(R)===`x`&&(i.includes(`left`)||i.includes(`right`)))if(i.includes(`left`)&&r<0||i.includes(`right`)&&r>0)o.x=r;else{let e=r*Ie(r);o.x=Math.abs(e)<Math.abs(r)?e:r}(Math.abs(o.x)>0||Math.abs(o.y)>0)&&O(le,!0),a(L)?.style.setProperty(`--swipe-amount-x`,`${o.x}px`),a(L)?.style.setProperty(`--swipe-amount-y`,`${o.y}px`)},Ze=()=>{O(F,!1),O(R,null),K=null},Qe=N(()=>t.toast.icon?t.toast.icon:a(U)===`success`?t.successIcon:a(U)===`error`?t.errorIcon:a(U)===`warning`?t.warningIcon:a(U)===`info`?t.infoIcon:a(U)===`loading`?t.loadingIcon:null);var Q=Ge();S(Q,`tabindex`,0);let $e;var et=x(Q),tt=e=>{var r=ze();n(x(r),()=>t.closeIcon??T),u(r),g(e=>{S(r,`aria-label`,t.closeButtonAriaLabel),S(r,`data-disabled`,a(Y)),_(r,1,e)},[()=>P(q(a(X)?.closeButton,t.toast?.classes?.closeButton))]),p(`click`,r,()=>{a(Y)||!a(W)||(Z(),t.toast.onDismiss?.(t.toast))}),C(e,r)};r(et,e=>{a(me)&&!t.toast.component&&a(U)!==`loading`&&t.closeIcon!==null&&e(tt)});var nt=E(et,2),rt=e=>{let n=N(()=>t.toast.component);var r=c();m(M(r),()=>a(n),(e,n)=>{n(e,j(()=>t.toast.componentProps,{closeToast:Z}))}),C(e,r)},it=e=>{var i=We(),f=M(i),h=e=>{var i=Be(),o=x(i),l=e=>{var n=c(),i=M(n),a=e=>{var n=c();m(M(n),()=>t.toast.icon,(e,t)=>{t(e,{})}),C(e,n)},o=e=>{s(e)};r(i,e=>{t.toast.icon?e(a):e(o,-1)}),C(e,n)};r(o,e=>{(t.toast.promise||a(U)===`loading`)&&e(l)});var d=E(o,2),f=e=>{var i=c(),o=M(i),s=e=>{var n=c();m(M(n),()=>t.toast.icon,(e,t)=>{t(e,{})}),C(e,n)},l=e=>{var r=c();n(M(r),()=>t.successIcon??T),C(e,r)},u=e=>{var r=c();n(M(r),()=>t.errorIcon??T),C(e,r)},d=e=>{var r=c();n(M(r),()=>t.warningIcon??T),C(e,r)},f=e=>{var r=c();n(M(r),()=>t.infoIcon??T),C(e,r)};r(o,e=>{t.toast.icon?e(s):a(U)===`success`?e(l,1):a(U)===`error`?e(u,2):a(U)===`warning`?e(d,3):a(U)===`info`&&e(f,4)}),C(e,i)};r(d,e=>{t.toast.type!==`loading`&&e(f)}),u(i),g(e=>_(i,1,e),[()=>P(q(a(X)?.icon,t.toast?.classes?.icon))]),C(e,i)};r(f,e=>{(a(U)||t.toast.icon||t.toast.promise)&&t.toast.icon!==null&&(a(Qe)!==null||t.toast.icon)&&e(h)});var v=E(f,2),y=x(v),ee=x(y),S=e=>{var n=c(),i=M(n),s=e=>{let n=N(()=>t.toast.title);var r=c();m(M(r),()=>a(n),(e,n)=>{n(e,j(()=>t.toast.componentProps))}),C(e,r)},l=e=>{var n=o();g(()=>w(n,t.toast.title)),C(e,n)};r(i,e=>{typeof t.toast.title==`string`?e(l,-1):e(s)}),C(e,n)};r(ee,e=>{t.toast.title&&e(S)}),u(y);var ne=E(y,2),re=e=>{var n=Ve(),i=x(n),s=e=>{let n=N(()=>t.toast.description);var r=c();m(M(r),()=>a(n),(e,n)=>{n(e,j(()=>t.toast.componentProps))}),C(e,r)},l=e=>{var n=o();g(()=>w(n,t.toast.description)),C(e,n)};r(i,e=>{typeof t.toast.description==`string`?e(l,-1):e(s)}),u(n),g(e=>_(n,1,e),[()=>P(q(b(),a(pe),a(X)?.description,t.toast.classes?.description))]),C(e,n)};r(ne,e=>{t.toast.description&&e(re)}),u(v);var D=E(v,2),O=e=>{var n=c(),i=M(n),o=e=>{var n=c();m(M(n),()=>t.toast.cancel,(e,t)=>{t(e,{})}),C(e,n)},s=e=>{var n=He(),r=x(n,!0);u(n),g(e=>{te(n,t.toast.cancelButtonStyle??l()),_(n,1,e),w(r,t.toast.cancel.label)},[()=>P(q(a(X)?.cancelButton,t.toast?.classes?.cancelButton))]),p(`click`,n,e=>{De(t.toast.cancel)&&a(W)&&(t.toast.cancel?.onClick?.(e),Z())}),C(e,n)},d=N(()=>De(t.toast.cancel));r(i,e=>{typeof t.toast.cancel==`function`?e(o):a(d)&&e(s,1)}),C(e,n)};r(D,e=>{t.toast.cancel&&e(O)});var ie=E(D,2),k=e=>{var n=c(),i=M(n),o=e=>{var n=c();m(M(n),()=>t.toast.action,(e,t)=>{t(e,{})}),C(e,n)},s=e=>{var n=Ue(),r=x(n,!0);u(n),g(e=>{te(n,t.toast.actionButtonStyle??d()),_(n,1,e),w(r,t.toast.action.label)},[()=>P(q(a(X)?.actionButton,t.toast?.classes?.actionButton))]),p(`click`,n,e=>{De(t.toast.action)&&(t.toast.action?.onClick(e),!e.defaultPrevented&&Z())}),C(e,n)},l=N(()=>De(t.toast.action));r(i,e=>{typeof t.toast.action==`function`?e(o):a(l)&&e(s,1)}),C(e,n)};r(ie,e=>{t.toast.action&&e(k)}),g((e,t)=>{_(v,1,e),_(y,1,t)},[()=>P(q(a(X)?.content,t.toast?.classes?.content)),()=>P(q(a(X)?.title,t.toast?.classes?.title))]),C(e,i)};r(nt,e=>{t.toast.component?e(rt):e(it,-1)}),u(Q),ne(Q,e=>O(L,e),()=>a(L)),g((e,n,r)=>{_(Q,1,e),S(Q,`aria-live`,t.toast.important?`assertive`:`polite`),S(Q,`data-rich-colors`,t.toast.richColors??re()),S(Q,`data-styled`,!(t.toast.component||t.toast.unstyled||ee())),S(Q,`data-mounted`,a(k)),S(Q,`data-promise`,n),S(Q,`data-swiped`,a(le)),S(Q,`data-removed`,a(A)),S(Q,`data-visible`,a(V)),S(Q,`data-y-position`,a(ge)[0]),S(Q,`data-x-position`,a(ge)[1]),S(Q,`data-index`,t.index),S(Q,`data-front`,a(B)),S(Q,`data-swiping`,a(F)),S(Q,`data-dismissible`,a(W)),S(Q,`data-type`,a(U)),S(Q,`data-invert`,a(J)),S(Q,`data-swipe-out`,a(ce)),S(Q,`data-swipe-direction`,a(z)),S(Q,`data-expanded`,r),$e=te(Q,`${t.style} ${t.toast.style}`,$e,{"--index":t.index,"--toasts-before":t.index,"--z-index":H.toasts.length-t.index,"--offset":`${a(A)?a(I):a(Ce)}px`,"--initial-height":t.expandByDefault?`auto`:`${a(ue)}px`})},[()=>P(q(t.class,a(fe),a(X)?.toast,t.toast?.classes?.toast,a(X)?.[a(U)],t.toast?.classes?.[a(U)])),()=>!!t.toast.promise,()=>!!(t.expanded||t.expandByDefault&&a(k))]),p(`pointermove`,Q,Xe),p(`pointerup`,Q,Ye),p(`pointerdown`,Q,Je),se(`dragend`,Q,Ze),C(e,Q),oe()}s([`pointermove`,`pointerup`,`pointerdown`,`click`]);var qe=d(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-success-icon=""><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>`);function Je(e){C(e,qe())}var Ye=d(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>`);function Xe(e){C(e,Ye())}var Ze=d(`<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" data-sonner-warning-icon="" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>`);function Qe(e){C(e,Ze())}var Q=d(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-info-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>`);function $e(e){C(e,Q())}var et=d(`<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-sonner-close-icon=""><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>`);function tt(e){C(e,et())}var nt=3,rt=`24px`,it=`16px`,at=4e3,ot=356,st=14,ct=`dark`,lt=`light`;function ut(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?it:rt;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{let r=e[t];r===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof r==`number`?`${r}px`:r}):o(a)}),n}var dt=new Set(`$$slots.$$events.$$legacy.invert.position.hotkey.expand.closeButton.offset.mobileOffset.theme.richColors.duration.visibleToasts.toastOptions.dir.gap.pauseWhenPageIsHidden.loadingIcon.successIcon.errorIcon.warningIcon.closeIcon.infoIcon.containerAriaLabel.class.closeButtonAriaLabel.onblur.onfocus.onmouseenter.onmousemove.onmouseleave.ondragend.onpointerdown.onpointerup`.split(`.`)),ft=l(`<ol></ol>`),pt=l(`<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-1gfek7f"><!></section>`);function mt(e,o){h(o,!0);function s(e){return e===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?ct:lt:e}let l=v(o,`invert`,3,!1),d=v(o,`position`,3,`bottom-right`),p=v(o,`hotkey`,19,()=>[`altKey`,`KeyT`]),m=v(o,`expand`,3,!1),_=v(o,`closeButton`,3,!1),b=v(o,`offset`,3,rt),te=v(o,`mobileOffset`,3,it),w=v(o,`theme`,3,`light`),re=v(o,`richColors`,3,!1),E=v(o,`duration`,3,at),k=v(o,`visibleToasts`,3,nt),j=v(o,`toastOptions`,19,()=>({})),P=v(o,`dir`,7,`auto`),se=v(o,`gap`,3,st),ce=v(o,`pauseWhenPageIsHidden`,3,!1),le=v(o,`containerAriaLabel`,3,`Notifications`),I=v(o,`closeButtonAriaLabel`,3,`Close toast`),ue=D(o,dt);function de(){if(P()!==`auto`)return P();if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?(i(()=>P(window.getComputedStyle(document.documentElement).direction??`ltr`)),P()):(i(()=>P(e)),e)}let L=N(()=>Array.from(new Set([d(),...H.toasts.filter(e=>e.position).map(e=>e.position)].filter(Boolean)))),R=y(!1),z=y(!1),B=y(A(s(w()))),V=y(void 0),U=y(null),W=y(!1),fe=N(()=>p().join(`+`).replace(/Key/g,``).replace(/Digit/g,``));f(()=>{H.toasts.length<=1&&O(R,!1)}),f(()=>{let e=H.toasts.filter(e=>e.dismiss&&!e.delete);e.length>0&&(H.toasts=H.toasts.map(t=>e.find(e=>e.id===t.id)?{...t,delete:!0}:t))}),f(()=>()=>{a(V)&&a(U)&&(a(U).focus({preventScroll:!0}),O(U,null),O(W,!1))}),ae(()=>(H.reset(),t(document,`keydown`,e=>{p().every(t=>e[t]||e.code===t)&&(O(R,!0),a(V)?.focus()),e.code===`Escape`&&(document.activeElement===a(V)||a(V)?.contains(document.activeElement))&&O(R,!1)}))),f(()=>{if(w()!==`system`&&O(B,w()),typeof window<`u`){w()===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?O(B,ct):O(B,lt));let e=window.matchMedia(`(prefers-color-scheme: dark)`),t=({matches:e})=>{w()===`system`&&O(B,e?ct:lt,!0)};`addEventListener`in e?e.addEventListener(`change`,t):e.addListener(t)}});let pe=e=>{o.onblur?.(e),a(W)&&!e.currentTarget.contains(e.relatedTarget)&&(O(W,!1),a(U)&&(a(U).focus({preventScroll:!0}),O(U,null)))},G=e=>{o.onfocus?.(e),!(e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`)&&(a(W)||(O(W,!0),O(U,e.relatedTarget,!0)))},he=e=>{o.onpointerdown?.(e),!(e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`)&&O(z,!0)},q=e=>{o.onmouseenter?.(e),O(R,!0)},ge=e=>{o.onmouseleave?.(e),a(z)||O(R,!1)},_e=e=>{o.onmousemove?.(e),O(R,!0)},ve=e=>{o.ondragend?.(e),O(R,!1)},J=e=>{o.onpointerup?.(e),O(z,!1)};me.set(new K);var Y=pt();S(Y,`tabindex`,-1);var X=x(Y),ye=e=>{var t=c();F(M(t),18,()=>a(L),e=>e,(e,t,i,s)=>{let d=N(()=>{let[e,n]=t.split(`-`);return{y:e,x:n}}),f=N(()=>ut(b(),te()));var p=ft();ie(p,e=>({tabindex:-1,dir:e,class:o.class,"data-sonner-toaster":!0,"data-sonner-theme":a(B),"data-y-position":a(d).y,"data-x-position":a(d).x,style:o.style,onblur:pe,onfocus:G,onmouseenter:q,onmousemove:_e,onmouseleave:ge,ondragend:ve,onpointerdown:he,onpointerup:J,...ue,[ee]:{"--front-toast-height":`${H.heights[0]?.height}px`,"--width":`${ot}px`,"--gap":`${se()}px`,"--offset-top":a(f)[`--offset-top`],"--offset-right":a(f)[`--offset-right`],"--offset-bottom":a(f)[`--offset-bottom`],"--offset-left":a(f)[`--offset-left`],"--mobile-offset-top":a(f)[`--mobile-offset-top`],"--mobile-offset-right":a(f)[`--mobile-offset-right`],"--mobile-offset-bottom":a(f)[`--mobile-offset-bottom`],"--mobile-offset-left":a(f)[`--mobile-offset-left`]}}),[()=>de()],void 0,void 0,`svelte-1gfek7f`),F(p,23,()=>H.toasts.filter(e=>!e.position&&a(i)===0||e.position===t),e=>e.id,(e,i,s,u)=>{{let u=e=>{var t=c(),i=M(t),a=e=>{var t=c();n(M(t),()=>o.successIcon??T),C(e,t)},s=e=>{Je(e,{})};r(i,e=>{o.successIcon?e(a):o.successIcon!==null&&e(s,1)}),C(e,t)},d=e=>{var t=c(),i=M(t),a=e=>{var t=c();n(M(t),()=>o.errorIcon??T),C(e,t)},s=e=>{Xe(e,{})};r(i,e=>{o.errorIcon?e(a):o.errorIcon!==null&&e(s,1)}),C(e,t)},f=e=>{var t=c(),i=M(t),a=e=>{var t=c();n(M(t),()=>o.warningIcon??T),C(e,t)},s=e=>{Qe(e,{})};r(i,e=>{o.warningIcon?e(a):o.warningIcon!==null&&e(s,1)}),C(e,t)},p=e=>{var t=c(),i=M(t),a=e=>{var t=c();n(M(t),()=>o.infoIcon??T),C(e,t)},s=e=>{$e(e,{})};r(i,e=>{o.infoIcon?e(a):o.infoIcon!==null&&e(s,1)}),C(e,t)},h=e=>{var t=c(),i=M(t),a=e=>{var t=c();n(M(t),()=>o.closeIcon??T),C(e,t)},s=e=>{tt(e,{})};r(i,e=>{o.closeIcon?e(a):o.closeIcon!==null&&e(s,1)}),C(e,t)},g=N(()=>j()?.duration??E()),v=N(()=>j()?.class??``),y=N(()=>j()?.descriptionClass||``),b=N(()=>j()?.style??``),x=N(()=>j().classes||{}),ee=N(()=>j().unstyled??!1),te=N(()=>j()?.cancelButtonStyle??``),S=N(()=>j()?.actionButtonStyle??``),w=N(()=>j()?.closeButtonAriaLabel??I());Ke(e,{get index(){return a(s)},get toast(){return a(i)},get defaultRichColors(){return re()},get duration(){return a(g)},get class(){return a(v)},get descriptionClass(){return a(y)},get invert(){return l()},get visibleToasts(){return k()},get closeButton(){return _()},get interacting(){return a(z)},get position(){return t},get style(){return a(b)},get classes(){return a(x)},get unstyled(){return a(ee)},get cancelButtonStyle(){return a(te)},get actionButtonStyle(){return a(S)},get closeButtonAriaLabel(){return a(w)},get expandByDefault(){return m()},get expanded(){return a(R)},get pauseWhenPageIsHidden(){return ce()},get loadingIcon(){return o.loadingIcon},successIcon:u,errorIcon:d,warningIcon:f,infoIcon:p,closeIcon:h,$$slots:{successIcon:!0,errorIcon:!0,warningIcon:!0,infoIcon:!0,closeIcon:!0}})}}),u(p),ne(p,e=>O(V,e),()=>a(V)),g(()=>p.dir=p.dir),C(e,p)}),C(e,t)};r(X,e=>{H.toasts.length>0&&e(ye)}),u(Y),g(()=>S(Y,`aria-label`,`${le()??``} ${a(fe)??``}`)),C(e,Y),oe()}var ht=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function gt(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}new class{#e;#t;constructor(e={}){let{window:n=ht,document:r=n?.document}=e;n!==void 0&&(this.#e=r,this.#t=b(e=>{let r=t(n,`focusin`,e),i=t(n,`focusout`,e);return()=>{r(),i()}}))}get current(){return this.#t?.(),this.#e?gt(this.#e):null}};function _t(t,n){switch(t){case`post`:f(n);break;case`pre`:e(n);break}}function vt(e,t,n,r={}){let{lazy:a=!1}=r,o=!a,s=Array.isArray(e)?[]:void 0;_t(t,()=>{let t=Array.isArray(e)?e.map(e=>e()):e();if(!o){o=!0,s=t;return}let r=i(()=>n(t,s));return s=t,r})}function yt(e,t,n){let r=k(()=>{let i=!1;vt(e,t,(e,t)=>{if(i){r();return}let a=n(e,t);return i=!0,a},{lazy:!0})});f(()=>r)}function bt(e,t,n){vt(e,`post`,t,n)}function xt(e,t,n){vt(e,`pre`,t,n)}bt.pre=xt;function St(e,t){yt(e,`post`,t)}function Ct(e,t){yt(e,`pre`,t)}St.pre=Ct;function wt(e,t){switch(e){case`local`:return t.localStorage;case`session`:return t.sessionStorage}}var Tt=class{#e;#t;#n;#r;#i;#a=y(0);constructor(e,n,r={}){let{storage:i=`local`,serializer:a={serialize:JSON.stringify,deserialize:JSON.parse},syncTabs:o=!0,window:s=ht}=r;if(this.#e=n,this.#t=e,this.#n=a,s===void 0)return;let c=wt(i,s);this.#r=c;let l=c.getItem(e);l===null?this.#c(n):this.#e=this.#s(l),o&&i===`local`&&(this.#i=b(()=>t(s,`storage`,this.#o)))}get current(){this.#i?.(),a(this.#a);let e=this.#s(this.#r?.getItem(this.#t))??this.#e,t=new WeakMap,n=r=>{if(r===null||r?.constructor.name===`Date`||typeof r!=`object`)return r;let i=t.get(r);return i||(i=new Proxy(r,{get:(e,t)=>(a(this.#a),n(Reflect.get(e,t))),set:(t,n,r)=>(O(this.#a,a(this.#a)+1),Reflect.set(t,n,r),this.#c(e),!0)}),t.set(r,i)),i};return n(e)}set current(e){this.#c(e),O(this.#a,a(this.#a)+1)}#o=e=>{e.key!==this.#t||e.newValue===null||(this.#e=this.#s(e.newValue),O(this.#a,a(this.#a)+1))};#s(e){try{return this.#n.deserialize(e)}catch(t){console.error(`Error when parsing "${e}" from persisted store "${this.#t}"`,t);return}}#c(e){try{e!=null&&this.#r?.setItem(this.#t,this.#n.serialize(e))}catch(e){console.error(`Error when writing value from persisted store "${this.#t}" to ${this.#r}`,e)}}};function Et(e,t){let n,r=null;return(...i)=>new Promise(a=>{r&&r(void 0),r=a,clearTimeout(n),n=setTimeout(async()=>{let t=await e(...i);r&&=(r(t),null)},t)})}function Dt(e,t){let n=0,r=null;return(...i)=>{let a=Date.now();return n&&a-n<t?r??Promise.resolve(void 0):(n=a,r=e(...i),r)}}function Ot(e,t,n={},r){let{lazy:i=!1,once:o=!1,initialValue:s,debounce:c,throttle:l}=n,u=y(A(s)),d=y(!1),f=y(void 0),p=y(A([])),m=()=>{a(p).forEach(e=>e()),O(p,[],!0)},h=e=>{O(p,[...a(p),e],!0)},g=async(e,n,r=!1)=>{try{O(d,!0),O(f,void 0),m();let i=new AbortController;h(()=>i.abort());let o=await t(e,n,{data:a(u),refetching:r,onCleanup:h,signal:i.signal});return O(u,o,!0),o}catch(e){e instanceof DOMException&&e.name===`AbortError`||O(f,e,!0);return}finally{O(d,!1)}},_=c?Et(g,c):l?Dt(g,l):g,v=Array.isArray(e)?e:[e],b;return r((t,n)=>{o&&b||b&&JSON.stringify(t)===JSON.stringify(b)||(b=t,_(Array.isArray(e)?t:t[0],Array.isArray(e)?n:n?.[0]))},{lazy:i}),{get current(){return a(u)},get loading(){return a(d)},get error(){return a(f)},mutate:e=>{O(u,e,!0)},refetch:t=>{let n=v.map(e=>e());return _(Array.isArray(e)?n:n[0],Array.isArray(e)?n:n[0],t??!0)}}}function kt(e,t,n){return Ot(e,t,n,(t,n)=>{let r=Array.isArray(e)?e:[e];bt(()=>r.map(e=>e()),(e,n)=>{t(e,n??[])},n)})}function At(e,t,n){return Ot(e,t,n,(t,n)=>{let r=Array.isArray(e)?e:[e];bt.pre(()=>r.map(e=>e()),(e,n)=>{t(e,n??[])},n)})}kt.pre=At;function jt(e){return e.filter(e=>e.length>0)}var Mt={getItem:e=>null,setItem:(e,t)=>{}},Nt=typeof document<`u`;function Pt(e){return typeof e==`function`}function Ft(e){return typeof e==`object`&&!!e}var It=Symbol(`box`),Lt=Symbol(`is-writable`);function Rt(e){return Ft(e)&&It in e}function zt(e){return $.isBox(e)&&Lt in e}function $(e){let t=y(A(e));return{[It]:!0,[Lt]:!0,get current(){return a(t)},set current(e){O(t,e,!0)}}}function Bt(e,t){let n=N(e);return t?{[It]:!0,[Lt]:!0,get current(){return a(n)},set current(e){t(e)}}:{[It]:!0,get current(){return e()}}}function Vt(e){return $.isBox(e)?e:Pt(e)?$.with(e):$(e)}function Ht(e){return Object.entries(e).reduce((e,[t,n])=>$.isBox(n)?($.isWritableBox(n)?Object.defineProperty(e,t,{get(){return n.current},set(e){n.current=e}}):Object.defineProperty(e,t,{get(){return n.current}}),e):Object.assign(e,{[t]:n}),{})}function Ut(e){return $.isWritableBox(e)?{[It]:!0,get current(){return e.current}}:e}$.from=Vt,$.with=Bt,$.flatten=Ht,$.readonly=Ut,$.isBox=Rt,$.isWritableBox=zt;function Wt(e,t){let n=RegExp(e,`g`);return e=>{if(typeof e!=`string`)throw TypeError(`expected an argument of type string, but got ${typeof e}`);return e.match(n)?e.replace(n,t):e}}var Gt=Wt(/[A-Z]/,e=>`-${e.toLowerCase()}`);function Kt(e){if(!e||typeof e!=`object`||Array.isArray(e))throw TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${Gt(t)}: ${e[t]};`).join(`
|
|
2
2
|
`)}function qt(e={}){return Kt(e).replace(`
|
|
3
3
|
`,` `)}qt({position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`,transform:`translateX(-100%)`});var Jt=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function Yt(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}new class{#e;#t;constructor(e={}){let{window:n=Jt,document:r=n?.document}=e;n!==void 0&&(this.#e=r,this.#t=b(e=>{let r=t(n,`focusin`,e),i=t(n,`focusout`,e);return()=>{r(),i()}}))}get current(){return this.#t?.(),this.#e?Yt(this.#e):null}};function Xt(t,n){switch(t){case`post`:f(n);break;case`pre`:e(n);break}}function Zt(e,t,n,r={}){let{lazy:a=!1}=r,o=!a,s=Array.isArray(e)?[]:void 0;Xt(t,()=>{let t=Array.isArray(e)?e.map(e=>e()):e();if(!o){o=!0,s=t;return}let r=i(()=>n(t,s));return s=t,r})}function Qt(e,t,n){let r=k(()=>{let i=!1;Zt(e,t,(e,t)=>{if(i){r();return}let a=n(e,t);return i=!0,a},{lazy:!0})});f(()=>r)}function $t(e,t,n){Zt(e,`post`,t,n)}function en(e,t,n){Zt(e,`pre`,t,n)}$t.pre=en;function tn(e,t){Qt(e,`post`,t)}function nn(e,t){Qt(e,`pre`,t)}tn.pre=nn;var rn=$(`mode-watcher-mode`),an=$(`mode-watcher-theme`),on=[`dark`,`light`,`system`];function sn(e){return typeof e==`string`?on.includes(e):!1}var cn=class{#e=`system`;#t=Nt?localStorage:Mt;#n=this.#t.getItem(rn.current);#r=sn(this.#n)?this.#n:this.#e;#i=y(A(this.#a()));#a(e=this.#r){return new Tt(rn.current,e,{serializer:{serialize:e=>e,deserialize:e=>sn(e)?e:this.#e}})}constructor(){k(()=>bt.pre(()=>rn.current,(e,t)=>{let n=a(this.#i).current;O(this.#i,this.#a(n),!0),t&&localStorage.removeItem(t)}))}get current(){return a(this.#i).current}set current(e){a(this.#i).current=e}},ln=class{#e=void 0;#t=!0;#n=y(A(this.#e));#r=typeof window<`u`&&typeof window.matchMedia==`function`?new U(`prefers-color-scheme: light`):{current:!1};query(){Nt&&O(this.#n,this.#r.current?`light`:`dark`,!0)}tracking(e){this.#t=e}constructor(){k(()=>{e(()=>{this.#t&&this.query()})}),this.query=this.query.bind(this),this.tracking=this.tracking.bind(this)}get current(){return a(this.#n)}},un=new cn,dn=new ln,fn=new class{#e=Nt?localStorage:Mt;#t=this.#e.getItem(an.current);#n=this.#t===null||this.#t===void 0?``:this.#t;#r=y(A(this.#i()));#i(e=this.#n){return new Tt(an.current,e,{serializer:{serialize:e=>typeof e==`string`?e:``,deserialize:e=>e}})}constructor(){k(()=>bt.pre(()=>an.current,(e,t)=>{let n=a(this.#r).current;O(this.#r,this.#i(n),!0),t&&localStorage.removeItem(t)}))}get current(){return a(this.#r).current}set current(e){a(this.#r).current=e}},pn,mn,hn=!1,gn=null;function _n(){return gn||(gn=document.createElement(`style`),gn.appendChild(document.createTextNode(`* {
|
|
4
4
|
-webkit-transition: none !important;
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{N as e,Ot as t,St as n,Z as r,et as i,j as a,k as o,nt as s,tt as c,xt as l}from"../chunks/
|
|
1
|
+
import{N as e,Ot as t,St as n,Z as r,et as i,j as a,k as o,nt as s,tt as c,xt as l}from"../chunks/CvkNa2t_.js";import"../chunks/xihTtKlq.js";import{t as u}from"../chunks/CBb7lP5l.js";var d=e(`<h1> </h1> <p> </p>`,1);function f(e,f){n(f,!0);var p=d(),m=c(p),h=i(m,!0);t(m);var g=s(m,2),_=i(g,!0);t(g),r(()=>{o(h,u.status),o(_,u.error?.message)}),a(e,p),l()}export{f as component};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,Dt as t,H as n,I as r,M as i,N as a,Ot as o,Q as s,S as c,St as l,ct as u,et as d,ft as f,j as p,nt as m,ot as h,pt as g,tt as _,ut as v,xt as y}from"../chunks/
|
|
1
|
+
import{D as e,Dt as t,H as n,I as r,M as i,N as a,Ot as o,Q as s,S as c,St as l,ct as u,et as d,ft as f,j as p,nt as m,ot as h,pt as g,tt as _,ut as v,xt as y}from"../chunks/CvkNa2t_.js";import{a as b,p as x}from"../chunks/DV4appXC.js";import{Et as S,_t as C,jt as w,mt as T,n as E,ot as D,t as O,vt as k,yt as A}from"../chunks/BpNXszev.js";import{c as j,l as M,n as N,o as P,r as F,s as I,t as L}from"../chunks/z7c9RqCD.js";import"../chunks/xihTtKlq.js";import{t as R}from"../chunks/CBb7lP5l.js";import{n as z}from"../chunks/CByF3Zfc.js";var B=a(`<div class="modal-header"><div class="modal-icon-badge"><span class="i-ic-baseline-check text-primary text-lg"></span></div> <div><h2 class="text-sm font-semibold text-foreground tracking-tight leading-tight">Init project</h2> <p class="text-xs text-muted-foreground mt-0.5">Configure and scaffold your project</p></div></div> <div class="modal-body"><!> <div class="flex flex-col gap-1"><!></div></div> <div class="modal-footer"><!></div>`,1);function V(e,a){l(a,!0);let s=()=>g(k,`$submitting`,x),[x,S]=f(),C=u(!1),w=L({schema:M({language:I([`ts`,`js`]).default(`ts`),multiplayerServer:j().default(!1)}),defaultValues:{language:`ts`,multiplayerServer:!1},onSubmit:async e=>{h(C,!0),await O(`create project`,async()=>{await b(`/dashboard?id=${(await T.complete({...e,gatewayId:a.gatewayId})).id}`)},()=>{h(C,!1)})}}),{submitting:k}=w;var A=i();c(_(A),()=>D,(e,i)=>{i(e,{class:`w-full max-w-lg p-4`,children:(e,i)=>{P(e,{get form(){return w},class:`w-full`,children:(e,i)=>{var a=B(),c=m(_(a),2),l=d(c);F(l,{name:`language`,label:`Language`,classNames:{trigger:`w-40 p-4`,content:`p-2`,item:`p-2`},options:[{value:`ts`,label:`Typescript`},{value:`js`,label:`Javascript`}]});var u=m(l,2);N(d(u),{label:`Multiplayer game`,name:`multiplayerServer`}),o(u),o(c);var f=m(c,2),h=d(f);{let e=v(()=>s()||n(C));E(h,{type:`submit`,size:`lg`,get loading(){return n(e)},class:`btn-primary px-6`,children:(e,n)=>{t(),p(e,r(`Init Project`))},$$slots:{default:!0}})}o(f),p(e,a)},$$slots:{default:!0}})},$$slots:{default:!0}})}),p(e,A),y(),S()}var H=a(`<div class="flex h-100vh w-full items-center justify-center"><!></div>`);function U(t,n){l(n,!0);let r=()=>{if(S().mode===`offline`){let e=R.url.searchParams.get(`path`);return e?{path:e}:null}else{let e=R.url.searchParams.get(`gatewayId`);return e?{gatewayId:e}:null}},a=R.url.searchParams.get(`id`),c=r();s(()=>{if(!a&&!c)throw b(x(`/`)),Error(`No resolvable`)});let u=w(()=>({queryKey:[`load`,`verify`,c?`path`in c?c.path:c.gatewayId:``],queryFn:async()=>{if(!a&&!c)throw Error(`No resolvable`);if(a)try{await b(x(`/dashboard?id=${(await T.loadFromId(a)).id}`))}catch(e){if(e instanceof k&&e.reason===C.Empty_Project&&S().mode===`online`)return e.args[1];console.error(e),A(`Failed to load project from id`,e.message)}if(c)try{return await b(x(`/dashboard?id=${(await(`path`in c?T.loadFromPath(c.path):T.loadFromGatewayId(c.gatewayId))).id}`)),null}catch(e){if(e instanceof k&&e.reason===C.Empty_Project&&S().mode===`online`)return e.args[1];console.error(e),A(`Failed to load project`,e.message)}return await b(x(`/`)),null}}));var f=i(),m=_(f),h=e=>{var t=H();V(d(t),{get gatewayId(){return u.data}}),o(t),p(e,t)},g=e=>{z(e,{})};e(m,e=>{u.isFetched&&!u.isLoading&&u.data?e(h):e(g,-1)}),p(t,f),y()}export{U as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,Dt as t,H as n,I as r,L as i,M as a,Mt as o,N as s,Ot as c,R as l,S as u,St as d,T as f,Z as p,_ as m,a as h,ct as g,et as _,ft as v,h as y,j as b,k as x,nt as S,ot as C,pt as w,s as T,tt as E,ut as D,v as O,w as k,xt as A,yt as j}from"../chunks/CvkNa2t_.js";import{a as M}from"../chunks/DV4appXC.js";import{Et as ee,bt as N,c as te,dt as P,jt as ne,mt as F,n as I,ot as re,s as L,t as R,ut as ie,vt as ae}from"../chunks/BpNXszev.js";import{a as z,c as B,i as oe,l as V,n as H,o as U,r as W,s as G,t as K,u as q}from"../chunks/z7c9RqCD.js";import"../chunks/xihTtKlq.js";import"../chunks/BesjqVrk.js";import{c as J,n as se,r as Y,t as ce,u as X}from"../chunks/Bp3dOgoC.js";var le=o({}),ue=s(`<div class="flex items-center gap-3 px-2 py-2"><!> <div class="flex flex-col gap-1.5 flex-1 min-w-0"><!> <!></div></div>`),de=s(`<div class="flex flex-col gap-1"></div>`);function fe(e){var t=de();k(t,4,()=>({length:3}),f,(e,t)=>{var n=ue(),r=_(n);X(r,{class:`size-9 rounded-md shrink-0`});var i=S(r,2),a=_(i);X(a,{class:`h-3.5 w-3/4`}),X(S(a,2),{class:`h-3 w-1/2`}),c(i),c(n),b(e,n)}),c(t),b(e,t)}var pe=s(`<div class="h-full w-full flex items-center justify-center"><!></div>`),me=s(`<button aria-label="Remove project" title="Remove project"><div class="i-ic-round-close text-destructive text-xl"></div></button>`),he=s(`<div class="flex items-center"><button><img class="size-9 rounded-md object-cover shrink-0"/> <span class="flex flex-col min-w-0"><span class="text-sm font-medium truncate"> </span> <span class="text-xs text-muted-foreground truncate"> </span></span></button> <div class="h-full aspect-square"><!></div></div>`);function ge(t,n){d(n,!0);var r=he(),i=_(r),a=_(i),o=S(a,2),s=_(o),u=_(s,!0);c(s);var f=S(s,2),h=_(f,!0);c(f),c(o),c(i);var g=S(i,2),v=_(g),C=e=>{var t=pe();L(_(t),{class:`text-xl`}),c(t),b(e,t)},w=e=>{var t=me();p(()=>{t.disabled=n.disabled,m(t,1,O([`h-full w-full p-2 flex items-center justify-center rounded-lg transition-colors`,n.disabled?`opacity-50 cursor-not-allowed`:`cursor-pointer hover:bg-muted/50`]))}),l(`click`,t,function(...e){n.onRemove?.apply(this,e)}),b(e,t)};e(v,e=>{n.isLoading?e(C):e(w,-1)}),c(g),c(r),p(()=>{i.disabled=n.disabled||n.isLoading||n.project.invalid,m(i,1,O([`flex items-center gap-3 p-2 rounded-lg transition-colors text-left w-[calc(100%-3.25rem)]`,n.disabled||n.isLoading||n.project.invalid?`opacity-50 cursor-not-allowed`:`cursor-pointer hover:bg-muted/50`])),y(a,`alt`,`${n.project.name??`Unknown`??``} cover`),y(a,`src`,n.project.imageUrl||``+new URL(`../assets/defaultProjectCover.BHxYINJa.png`,import.meta.url).href),x(u,n.project.name??`Unknown`),x(h,n.project.resolvable)}),l(`click`,i,function(...e){n.onClick?.apply(this,e)}),b(t,r),A()}i([`click`]);function Z(e,t){d(t,!0);let r=()=>w(o,`$form`,i),[i,a]=v(),{form:o}=j(`form`)();oe(e,{get name(){return t.name},get label(){return t.label},get class(){return t.class},get classNames(){return t.classNames},get description(){return t.description},children:(e,i)=>{let a=()=>i?.().props;{let i=D(()=>t.type??`text`),s=D(()=>t.classNames?.input),c=D(()=>r()[t.name]??``);se(e,T(a,{get type(){return n(i)},get placeholder(){return t.placeholder},get class(){return n(s)},get value(){return n(c)},oninput:e=>o.update(n=>({...n,[t.name]:e.currentTarget.value}))}))}},$$slots:{default:!0}}),A(),a()}var _e=s(`<div><p class="toggle-row-title">Multiplayer server</p> <p class="toggle-row-desc">Enable real-time collaboration</p></div> <!>`,1),ve=s(`<div><p class="toggle-row-title">Docker containerization</p> <p class="toggle-row-desc">Bundle with a Dockerfile</p></div> <!>`,1),ye=s(`<div><p class="toggle-row-title">Git repository</p> <p class="toggle-row-desc">Initialize with git init</p></div> <!>`,1),be=s(`<div class="flex flex-col gap-5"><!> <div class="flex justify-around flex-wrap gap-2"><!> <!></div> <div class="flex flex-col gap-1"><!> <!> <!></div> <!></div>`),xe=s(`<div class="modal-header"><div class="modal-icon-badge"><span class="i-ic-baseline-add text-primary text-lg"></span></div> <div><h2 class="text-sm font-semibold text-foreground tracking-tight leading-tight">Create project</h2> <p class="text-xs text-muted-foreground mt-0.5">Scaffold a new workspace</p></div></div> <div class="modal-divider"></div> <div class="modal-body"><!> <button type="button" class="group flex items-center gap-3 cursor-pointer w-full"><span class="flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-widest text-muted-foreground transition-colors duration-150">Advanced <span></span></span></button> <!></div> <div class="modal-footer"><!> <!></div>`,1);function Se(i,a){d(a,!0);let o=()=>w(x,`$form`,u),s=()=>w(T,`$submitting`,u),[u,f]=v(),h=g(!1),y=K({schema:V({projectName:q().min(1,`Project name is required`).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),projectPath:q().optional(),packageManager:G([`npm`,`yarn`,`pnpm`,`bun`]).default(`pnpm`),language:G([`ts`,`js`]).default(`ts`),multiplayerServer:B().default(!1),dockerContainerization:B().default(!1),createGitRepository:B().default(!1),gitRemote:q().optional()}),defaultValues:{projectName:``,projectPath:``,packageManager:`pnpm`,language:`ts`,multiplayerServer:!1,dockerContainerization:!1,createGitRepository:!1,gitRemote:``},onSubmit:k}),{form:x,submitting:T}=y;async function k(e){await R(`create project`,async()=>{await M(`/dashboard?id=${(await F.create(e)).id}`)})}let j=D(()=>{let e=o().projectName||`<project-name>`,t=o().projectPath||``;return t.startsWith(`/`)||!t.startsWith(`./`)&&!t.startsWith(`../`)&&(t=`./${t}`),t.endsWith(`/`)||(t=`${t}/`),`${t}${e}`});U(i,{get form(){return y},class:`w-full`,children:(i,u)=>{var d=xe(),f=S(E(d),4),g=_(f);Z(g,{name:`projectName`,label:`Project name`,placeholder:`nanoforge-app`});var v=S(g,2),y=_(v),x=S(_(y));c(y),c(v);var w=S(v,2),T=t=>{var r=be(),i=_(r);{let e=D(()=>`The full path will be '${n(j)}'`);Z(i,{name:`projectPath`,label:`Project path`,placeholder:`/home/user/projects`,get description(){return n(e)}})}var a=S(i,2),s=_(a);W(s,{name:`language`,label:`Language`,classNames:{trigger:`w-40 p-4`,content:`p-2`,item:`p-2`},options:[{value:`ts`,label:`Typescript`},{value:`js`,label:`Javascript`}]}),W(S(s,2),{name:`packageManager`,label:`Package manager`,classNames:{trigger:`w-40 p-4`,content:`p-2`,item:`p-2`},options:[{value:`npm`,label:`npm`},{value:`yarn`,label:`yarn`},{value:`pnpm`,label:`pnpm`},{value:`bun`,label:`bun`}]}),c(a);var l=S(a,2),u=_(l);z(u,{class:`toggle-row`,children:(e,t)=>{var n=_e();H(S(E(n),2),{name:`multiplayerServer`}),b(e,n)},$$slots:{default:!0}});var d=S(u,2);z(d,{class:`toggle-row`,children:(e,t)=>{var n=ve();H(S(E(n),2),{name:`dockerContainerization`}),b(e,n)},$$slots:{default:!0}}),z(S(d,2),{class:`toggle-row`,children:(e,t)=>{var n=ye();H(S(E(n),2),{name:`createGitRepository`}),b(e,n)},$$slots:{default:!0}}),c(l);var f=S(l,2),p=e=>{Z(e,{name:`gitRemote`,label:`Git remote URL`,placeholder:`https://github.com/user/repo.git`})};e(f,e=>{o().createGitRepository&&e(p)}),c(r),b(t,r)};e(w,e=>{n(h)&&e(T)}),c(f);var k=S(f,2),A=_(k);P(A,{type:`button`,variant:`ghost`,get onclick(){return a.onClose},class:`btn-ghost`,children:(e,n)=>{t(),b(e,r(`Cancel`))},$$slots:{default:!0}}),I(S(A,2),{type:`submit`,get loading(){return s()},class:`btn-primary`,children:(e,n)=>{t(),b(e,r(`Create project`))},$$slots:{default:!0}}),c(k),p(()=>m(x,1,O(n(h)?`i-ic-baseline-keyboard-arrow-up text-sm`:`i-ic-baseline-keyboard-arrow-down text-sm`))),l(`click`,v,()=>C(h,!n(h))),b(i,d)},$$slots:{default:!0}}),A(),f()}i([`click`]);function Ce(e,t){d(t,!0);let n=h(t,`open`,15),r=()=>{n(!1)};var i=a();u(E(i),()=>Y,(e,t)=>{t(e,{get open(){return n()},set open(e){n(e)},children:(e,t)=>{var n=a();u(E(n),()=>J,(e,t)=>{t(e,{showCloseButton:!1,class:`p-0 gap-0 sm:max-w-xl w-[90vw] overflow-hidden`,children:(e,t)=>{Se(e,{onClose:r})},$$slots:{default:!0}})}),b(e,n)},$$slots:{default:!0}})}),b(e,i),A()}var we=s(`<header class="h-14 flex items-center px-4 border-b border-border/40"><div class="flex items-center gap-2.5"><img alt="Logo" class="h-7 w-7 rounded-full"/> <span class="font-bold">Nanoforge - Editor</span></div></header>`);function Te(e){var n=we(),r=_(n),i=_(r);t(2),c(r),c(n),p(()=>y(i,`src`,ce)),b(e,n)}var Ee=s(`<span class="i-ic-baseline-add"></span> Create project`,1),De=s(`<span class="i-ic-baseline-folder-open"></span> Open project`,1),Oe=s(`<!> <!>`,1);function ke(e,n){var r=Oe(),i=E(r);P(i,{variant:`ghost`,size:`lg`,class:`justify-start gap-2 w-full`,get onclick(){return n.handleCreateProject},children:(e,n)=>{var r=Ee();t(),b(e,r)},$$slots:{default:!0}}),P(S(i,2),{variant:`ghost`,size:`lg`,class:`justify-start gap-2 w-full`,get onclick(){return n.handleOpenProject},children:(e,n)=>{var r=De();t(),b(e,r)},$$slots:{default:!0}}),b(e,r)}var Ae=s(`<span class="i-ic-baseline-open-in-new"></span> Create project`,1),je=s(`<span class="i-ic-baseline-open-in-new"></span> Open project`,1),Me=s(`<a><!></a> <a><!></a>`,1);function Ne(e){let n=`https://projects.nanoforge.eu`,r=`${n}/dashboard/projects`,i=`${n}/dashboard/projects`;var a=Me(),o=E(a);P(_(o),{variant:`link`,size:`lg`,class:`justify-start gap-2 w-full text-foreground`,children:(e,n)=>{var r=Ae();t(),b(e,r)},$$slots:{default:!0}}),c(o);var s=S(o,2);P(_(s),{variant:`link`,size:`lg`,class:`justify-start gap-2 w-full text-foreground`,children:(e,n)=>{var r=je();t(),b(e,r)},$$slots:{default:!0}}),c(s),p(()=>{y(o,`href`,r),y(s,`href`,i)}),b(e,a)}var Pe=s(`<div class="modal-header"><div class="modal-icon-badge"><span class="i-ic-baseline-folder-open text-primary text-lg"></span></div> <div><h2 class="text-sm font-semibold text-foreground tracking-tight leading-tight">Open project</h2> <p class="text-xs text-muted-foreground mt-0.5">Open a project</p></div></div> <div class="modal-divider"></div> <div class="modal-body"><!></div> <div class="modal-footer"><!> <!></div>`,1);function Q(e,i){d(i,!0);let a=()=>w(f,`$form`,s),o=()=>w(p,`$submitting`,s),[s,l]=v(),u=K({schema:V({path:q().min(1,`Path is required`)}),defaultValues:{path:``},onSubmit:m}),{form:f,submitting:p}=u;async function m(e){await R(`open project`,async()=>{await M(`/dashboard?id=${(await F.loadFromPath(e.path)).id}`)})}let h=D(()=>{let e=a().path||``;return e.startsWith(`/`)||!e.startsWith(`./`)&&!e.startsWith(`../`)&&(e=`./${e}`),e});U(e,{get form(){return u},class:`w-full`,children:(e,a)=>{var s=Pe(),l=S(E(s),4),u=_(l);{let e=D(()=>`The path will be '${n(h)}'`);Z(u,{name:`path`,label:`Project path`,placeholder:`/home/user/project`,get description(){return n(e)}})}c(l);var d=S(l,2),f=_(d);P(f,{type:`button`,variant:`ghost`,get onclick(){return i.onClose},class:`btn-ghost`,children:(e,n)=>{t(),b(e,r(`Cancel`))},$$slots:{default:!0}}),I(S(f,2),{type:`submit`,get loading(){return o()},class:`btn-primary`,children:(e,n)=>{t(),b(e,r(`Open project`))},$$slots:{default:!0}}),c(d),b(e,s)},$$slots:{default:!0}}),A(),l()}function Fe(e,t){d(t,!0);let n=h(t,`open`,15),r=()=>{n(!1)};var i=a();u(E(i),()=>Y,(e,t)=>{t(e,{get open(){return n()},set open(e){n(e)},children:(e,t)=>{var n=a();u(E(n),()=>J,(e,t)=>{t(e,{showCloseButton:!1,class:`p-0 gap-0 sm:max-w-xl w-[90vw] overflow-hidden`,children:(e,t)=>{Q(e,{onClose:r})},$$slots:{default:!0}})}),b(e,n)},$$slots:{default:!0}})}),b(e,i),A()}var $={CacheProject:ge,CacheProjectListSkeleton:fe,CreateProjectDialog:Ce,CreateProjectForm:Se,Header:Te,OfflineProjectButtons:ke,OnlineProjectButtons:Ne,OpenProjectDialog:Fe,OpenProjectForm:Q},Ie=s(`<div class="flex flex-col gap-1"></div> <!>`,1),Le=s(`<div class="flex h-full items-center justify-center text-center"><p class="text-sm text-muted-foreground/50 mb-4 mr-4">No recent projects</p></div>`),Re=s(`<div class="flex flex-col gap-2 p-5 w-8/19"><p class="text-sm text-muted-foreground px-2 mb-1">Projects</p> <!></div> <!> <div class="p-5 flex flex-col gap-3 w-10/19 h-full"><p class="text-sm text-muted-foreground px-2 mb-1">Recent</p> <!></div>`,1),ze=s(`<!> <!> <div class="min-h-screen w-full flex flex-col bg-background text-foreground text-base"><!> <main class="flex-1 flex items-center justify-center p-6"><!></main></div>`,1);function Be(i,o){d(o,!0);let s=g(!1),l=g(!1),f=g(null),p=ee().mode===`online`,m=ne(()=>({queryKey:[`projects-cache`],queryFn:async()=>N.getProjects()})),h=()=>{p||C(s,!0)},v=()=>{p||C(l,!0)},y=async e=>{try{C(f,e.id,!0),await M(`/dashboard?id=${(await F.loadFromCacheWithTryId(e)).id}`),C(f,null)}catch(t){if(t instanceof ae){await t.fb();return}console.error(`Error loading project ${e.id} (${e.resolvable}) from cache:`,t),await N.invalidateProject(e.id),await m.refetch(),C(f,null)}},x=async e=>{C(f,e.id,!0),await N.removeProject(e.id),await m.refetch(),C(f,null)},w=async()=>{C(f,!0),await N.clearProjects(),await m.refetch(),C(f,null)};var T=ze(),O=E(T);u(O,()=>$.CreateProjectDialog,(e,t)=>{t(e,{get open(){return n(s)},set open(e){C(s,e,!0)}})});var j=S(O,2);u(j,()=>$.OpenProjectDialog,(e,t)=>{t(e,{get open(){return n(l)},set open(e){C(l,e,!0)}})});var I=S(j,2),L=_(I);u(L,()=>$.Header,(e,t)=>{t(e,{})});var R=S(L,2);u(_(R),()=>re,(i,o)=>{o(i,{class:`w-full max-w-2xl`,children:(i,o)=>{var s=a();u(E(s),()=>ie,(i,o)=>{o(i,{class:`p-0 flex justify-between h-[30vh]`,children:(i,o)=>{var s=Re(),l=E(s),d=S(_(l),2),g=e=>{var t=a();u(E(t),()=>$.OnlineProjectButtons,(e,t)=>{t(e,{})}),b(e,t)},C=e=>{var t=a();u(E(t),()=>$.OfflineProjectButtons,(e,t)=>{t(e,{handleCreateProject:h,handleOpenProject:v})}),b(e,t)};e(d,e=>{p?e(g):e(C,-1)}),c(l);var T=S(l,2);te(T,{orientation:`vertical`,class:`h-auto self-stretch`});var O=S(T,2),A=S(_(O),2),j=e=>{var t=a();u(E(t),()=>$.CacheProjectListSkeleton,(e,t)=>{t(e,{})}),b(e,t)},M=e=>{var i=Ie(),o=E(i);k(o,21,()=>m.data,e=>e.id,(e,t)=>{var r=a(),i=E(r);{let e=D(()=>!!n(f)),r=D(()=>n(f)===n(t).id);u(i,()=>$.CacheProject,(i,a)=>{a(i,{get project(){return n(t)},get disabled(){return n(e)},get isLoading(){return n(r)},onClick:()=>y(n(t)),onRemove:()=>x(n(t))})})}b(e,r)}),c(o),P(S(o,2),{type:`button`,variant:`ghost`,class:`text-xs text-muted-foreground/50 hover:text-muted-foreground transition-colors self-end justify-self-end`,onclick:w,children:(e,n)=>{t(),b(e,r(`Clear cache`))},$$slots:{default:!0}}),b(e,i)},ee=e=>{b(e,Le())};e(A,e=>{m.isLoading||!m.isFetched?e(j):m.data&&m.data.length>0?e(M,1):e(ee,-1)}),c(O),b(i,s)},$$slots:{default:!0}})}),b(i,s)},$$slots:{default:!0}})}),c(R),c(I),b(i,T),A()}export{Be as component,le as universal};
|
|
Binary file
|
|
Binary file
|