@nanoforge-dev/editor 0.0.2-beta.8c768e4 → 0.0.2-beta.ddbefdc
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.CI0wrjoW.css → 0.PlL6w-dg.css} +1 -1
- package/dist/client/_app/immutable/assets/0.PlL6w-dg.css.br +0 -0
- package/dist/client/_app/immutable/assets/0.PlL6w-dg.css.gz +0 -0
- package/dist/client/_app/immutable/chunks/{B5BlQANa2.js → B4w9-fYM2.js} +1 -1
- 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/{BpsTeBMk2.js → BS47D1Yd2.js} +1 -1
- 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/BW1UW6Hp.js +1 -0
- package/dist/client/_app/immutable/chunks/BW1UW6Hp.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BW1UW6Hp.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{NRUHq-_72.js → BWDRzheF2.js} +1 -1
- 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/{YpKUr6uE2.js → BZqFHUa32.js} +1 -1
- 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/{CwcsJxhS2.js → Bk9DeFcz2.js} +1 -1
- 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/{D8Kk1mwW.js → BlGyHMDZ.js} +1 -1
- 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/{DRG11iPc2.js → BwWAgYKi2.js} +1 -1
- package/dist/client/_app/immutable/chunks/BwWAgYKi2.js.br +3 -0
- package/dist/client/_app/immutable/chunks/BwWAgYKi2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{CHHvlOt72.js → BzGBrbo22.js} +1 -1
- 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/C1k-YaT9.js +293 -0
- package/dist/client/_app/immutable/chunks/C1k-YaT9.js.br +0 -0
- package/dist/client/_app/immutable/chunks/C1k-YaT9.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{D5kSEVHd2.js → C7bUlFLk2.js} +1 -1
- 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/{B41NCdmk2.js → C83DJP9w2.js} +1 -1
- 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/{CsVJKLJK.js → C8VsmuzL.js} +1 -1
- package/dist/client/_app/immutable/chunks/C8VsmuzL.js.br +0 -0
- package/dist/client/_app/immutable/chunks/C8VsmuzL.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{Wjj5hwVF2.js → CKei9xPI2.js} +2 -2
- 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/CUEbnJ91.js +6 -0
- package/dist/client/_app/immutable/chunks/CUEbnJ91.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CUEbnJ91.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{CuyfOZTk2.js → CnhOha0Z2.js} +1 -1
- 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/{Bfd-bGrZ2.js → DFXoGGM32.js} +1 -1
- 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/{VTYQK3v_2.js → DH-ThjiG2.js} +2 -2
- 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/{CNh34b3X2.js → DHQLzCjY2.js} +1 -1
- 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/{D8HnIxQ42.js → DT8Ddh1L2.js} +1 -1
- 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/{Cx3ix-dL2.js → DuDzfUqN2.js} +1 -1
- 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/{56adh18U.js → Fu4roQAh.js} +1 -1
- 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 +3 -0
- 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/{CN98h0cI2.js → mRVEsFly2.js} +1 -1
- 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/{DJq0R92X.js → orCHVlgT.js} +1 -1
- 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/{Drjp27p72.js → uo5fvlDn2.js} +1 -1
- 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/{DbZ0P7x6.js → xJ1-16vC.js} +1 -1
- package/dist/client/_app/immutable/chunks/xJ1-16vC.js.br +0 -0
- package/dist/client/_app/immutable/chunks/xJ1-16vC.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BNmi28p2.js → y9jahtbD.js} +1 -1
- package/dist/client/_app/immutable/chunks/y9jahtbD.js.br +0 -0
- package/dist/client/_app/immutable/chunks/y9jahtbD.js.gz +0 -0
- package/dist/client/_app/immutable/entry/{app.CiLM39cw.js → app.qM3aoeOi.js} +2 -2
- package/dist/client/_app/immutable/entry/app.qM3aoeOi.js.br +0 -0
- package/dist/client/_app/immutable/entry/app.qM3aoeOi.js.gz +0 -0
- package/dist/client/_app/immutable/entry/start.CDMZxkmh.js +1 -0
- package/dist/client/_app/immutable/entry/start.CDMZxkmh.js.br +0 -0
- package/dist/client/_app/immutable/entry/start.CDMZxkmh.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/{0.CEpgzEwS.js → 0.Dd5fG40d.js} +1 -1
- package/dist/client/_app/immutable/nodes/0.Dd5fG40d.js.br +0 -0
- package/dist/client/_app/immutable/nodes/0.Dd5fG40d.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/{1.Sm4J_hJ5.js → 1.D-XWgJOb.js} +1 -1
- package/dist/client/_app/immutable/nodes/1.D-XWgJOb.js.br +2 -0
- package/dist/client/_app/immutable/nodes/1.D-XWgJOb.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/10.DkYlNzbR.js +6 -0
- package/dist/client/_app/immutable/nodes/10.DkYlNzbR.js.br +0 -0
- package/dist/client/_app/immutable/nodes/10.DkYlNzbR.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/2.D2mbM0C2.js +1 -0
- package/dist/client/_app/immutable/nodes/2.D2mbM0C2.js.br +0 -0
- package/dist/client/_app/immutable/nodes/2.D2mbM0C2.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/{9.C7P5VSNI.js → 9.BrWnGfyr.js} +1 -1
- package/dist/client/_app/immutable/nodes/9.BrWnGfyr.js.br +0 -0
- package/dist/client/_app/immutable/nodes/9.BrWnGfyr.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-BgMtbrE9.js → 0-CaJWcpu3.js} +6 -6
- package/dist/server/chunks/{0-BgMtbrE9.js.map → 0-CaJWcpu3.js.map} +1 -1
- package/dist/server/chunks/{1-JuWV7qB2.js → 1-na9Uh1hG.js} +6 -6
- package/dist/server/chunks/{1-JuWV7qB2.js.map → 1-na9Uh1hG.js.map} +1 -1
- package/dist/server/chunks/{10-x0FGzJF7.js → 10-Dh1abrew.js} +10 -10
- package/dist/server/chunks/10-Dh1abrew.js.map +1 -0
- package/dist/server/chunks/{2-Dkn4MH5F.js → 2-BM68e_rU.js} +9 -9
- package/dist/server/chunks/{2-Dkn4MH5F.js.map → 2-BM68e_rU.js.map} +1 -1
- package/dist/server/chunks/{3-CcIZ_M60.js → 3-CtfjP4uZ.js} +114 -3
- package/dist/server/chunks/3-CtfjP4uZ.js.map +1 -0
- package/dist/server/chunks/{4-DyArZX6h.js → 4-DP-_gDay.js} +10 -2
- package/dist/server/chunks/4-DP-_gDay.js.map +1 -0
- package/dist/server/chunks/{5-DVrv6Zto.js → 5-610NKQc3.js} +10 -2
- package/dist/server/chunks/5-610NKQc3.js.map +1 -0
- package/dist/server/chunks/{6-AD0Ee23-.js → 6-Dl_h_OyU.js} +35 -2
- package/dist/server/chunks/6-Dl_h_OyU.js.map +1 -0
- package/dist/server/chunks/{7-CuJ7XfzT.js → 7-BUEKgK7m.js} +2 -2
- package/dist/server/chunks/{7-CuJ7XfzT.js.map → 7-BUEKgK7m.js.map} +1 -1
- package/dist/server/chunks/{8-CRPOubhA.js → 8-s07Rj2Zo.js} +10 -2
- package/dist/server/chunks/8-s07Rj2Zo.js.map +1 -0
- package/dist/server/chunks/{9-BhWG76gi.js → 9-DkqE8li9.js} +10 -10
- package/dist/server/chunks/9-DkqE8li9.js.map +1 -0
- package/dist/server/chunks/{_layout.svelte-CP4jFwsK.js → _layout.svelte-uX7XiB9K.js} +6 -6
- package/dist/server/chunks/_layout.svelte-uX7XiB9K.js.map +1 -0
- package/dist/server/chunks/{_page.svelte-7KJNFri5.js → _page.svelte-1bR7bJ2y.js} +6 -6
- package/dist/server/chunks/_page.svelte-1bR7bJ2y.js.map +1 -0
- package/dist/server/chunks/{_page.svelte-BQLzgYrr.js → _page.svelte-B_0YFORc.js} +7 -7
- package/dist/server/chunks/_page.svelte-B_0YFORc.js.map +1 -0
- package/dist/server/chunks/{_page.svelte-B3Zfq6_t.js → _page.svelte-BmrR5-n-.js} +90 -27
- package/dist/server/chunks/_page.svelte-BmrR5-n-.js.map +1 -0
- package/dist/server/chunks/_server.ts-DlC2sxcm.js +35 -0
- package/dist/server/chunks/_server.ts-DlC2sxcm.js.map +1 -0
- package/dist/server/chunks/{_server.ts-BYvWhjnh.js → _server.ts-a-I4s4R9.js} +2 -2
- package/dist/server/chunks/{_server.ts-BYvWhjnh.js.map → _server.ts-a-I4s4R9.js.map} +1 -1
- package/dist/server/chunks/app-DUeJj5RD.js.map +1 -1
- package/dist/server/chunks/chunk-ByNZkrT6.js.map +1 -1
- package/dist/server/chunks/{client-BvtIF74Y.js → client-BkmWBFaS.js} +3 -3
- package/dist/server/chunks/client-BkmWBFaS.js.map +1 -0
- package/dist/server/chunks/decorate-CQ_JIwqD.js +11 -0
- package/dist/server/chunks/decorate-CQ_JIwqD.js.map +1 -0
- package/dist/server/chunks/{error-D23CGeyL.js → error-BGQyviUk.js} +118 -59
- package/dist/server/chunks/error-BGQyviUk.js.map +1 -0
- package/dist/server/chunks/{error.svelte-DZuW0iDP.js → error.svelte-T6M8Vz4W.js} +3 -3
- package/dist/server/chunks/{error.svelte-DZuW0iDP.js.map → error.svelte-T6M8Vz4W.js.map} +1 -1
- package/dist/server/chunks/{events-DeYJGjCt.js → events-Bhh2w-5S.js} +1063 -1059
- package/dist/server/chunks/events-Bhh2w-5S.js.map +1 -0
- package/dist/server/chunks/{exports-8wSs4fiF.js → exports-CWOtdr_a.js} +4 -4
- package/dist/server/chunks/{exports-8wSs4fiF.js.map → exports-CWOtdr_a.js.map} +1 -1
- package/dist/server/chunks/format-DGOlJxF5.js.map +1 -1
- package/dist/server/chunks/{hooks.server-Dox7llar.js → hooks.server-Bb56FM49.js} +4 -4
- package/dist/server/chunks/{hooks.server-Dox7llar.js.map → hooks.server-Bb56FM49.js.map} +1 -1
- package/dist/server/chunks/hooks.universal-DhGFdBkK.js.map +1 -1
- package/dist/server/chunks/{internal-eM0YTBgj.js → internal-DsA4iYdx.js} +2 -2
- package/dist/server/chunks/{internal-eM0YTBgj.js.map → internal-DsA4iYdx.js.map} +1 -1
- package/dist/server/chunks/{internal-B77zebhK.js → internal2-CeV_cIh4.js} +10 -10
- package/dist/server/chunks/internal2-CeV_cIh4.js.map +1 -0
- package/dist/server/chunks/{loader-circle-zqx69BdD.js → loader-circle-CFNm9vip.js} +2 -2
- package/dist/server/chunks/{loader-circle-zqx69BdD.js.map → loader-circle-CFNm9vip.js.map} +1 -1
- package/dist/server/chunks/{logo-BfI7zmyL.js → logo-Cit4wZkS.js} +4 -4
- package/dist/server/chunks/logo-Cit4wZkS.js.map +1 -0
- package/dist/server/chunks/{project-loader-BkV0zjlj.js → project-loader-BSqYC-7k.js} +4 -4
- package/dist/server/chunks/{project-loader-BkV0zjlj.js.map → project-loader-BSqYC-7k.js.map} +1 -1
- package/dist/server/chunks/{request-handler-D-qbwxhh.js → request-handler-guINVc1G.js} +12 -7
- package/dist/server/chunks/request-handler-guINVc1G.js.map +1 -0
- package/dist/server/chunks/runtime-CDHWD9vo.js.map +1 -1
- package/dist/server/chunks/{schemas-ENQuLVBq.js → schemas-DbJHhqwa.js} +165 -125
- package/dist/server/chunks/schemas-DbJHhqwa.js.map +1 -0
- package/dist/server/chunks/{session-CmQRz9-0.js → session-DLCjVGKo.js} +2 -2
- package/dist/server/chunks/{session-CmQRz9-0.js.map → session-DLCjVGKo.js.map} +1 -1
- package/dist/server/chunks/shared-server-Cha0Qlv9.js.map +1 -1
- package/dist/server/chunks/{state-q9lwVQK2.js → state-DpIO_6NS.js} +3 -3
- package/dist/server/chunks/{state-q9lwVQK2.js.map → state-DpIO_6NS.js.map} +1 -1
- package/dist/server/index.js +10 -8
- package/dist/server/index.js.map +1 -1
- package/dist/server/manifest.js +20 -20
- package/dist/server/manifest.js.map +1 -1
- package/package.json +7 -5
- package/dist/client/_app/immutable/assets/0.CI0wrjoW.css.br +0 -0
- package/dist/client/_app/immutable/assets/0.CI0wrjoW.css.gz +0 -0
- package/dist/client/_app/immutable/chunks/56adh18U.js.br +0 -0
- package/dist/client/_app/immutable/chunks/56adh18U.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/9tBtThMc.js +0 -1
- package/dist/client/_app/immutable/chunks/9tBtThMc.js.br +0 -0
- package/dist/client/_app/immutable/chunks/9tBtThMc.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/B41NCdmk2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/B41NCdmk2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/B5BlQANa2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/B5BlQANa2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BNmi28p2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BNmi28p2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Bfd-bGrZ2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Bfd-bGrZ2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BpsTeBMk2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BpsTeBMk2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CHHvlOt72.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CHHvlOt72.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CN98h0cI2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CN98h0cI2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CNh34b3X2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CNh34b3X2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CsVJKLJK.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CsVJKLJK.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CuyfOZTk2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CuyfOZTk2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CwcsJxhS2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CwcsJxhS2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Cx3ix-dL2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Cx3ix-dL2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/D5kSEVHd2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/D5kSEVHd2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/D8HnIxQ42.js.br +0 -0
- package/dist/client/_app/immutable/chunks/D8HnIxQ42.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/D8Kk1mwW.js.br +0 -0
- package/dist/client/_app/immutable/chunks/D8Kk1mwW.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DJq0R92X.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DJq0R92X.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DRG11iPc2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DRG11iPc2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DbZ0P7x6.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DbZ0P7x6.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Drjp27p72.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Drjp27p72.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DuEGqPrO.js +0 -6
- package/dist/client/_app/immutable/chunks/DuEGqPrO.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DuEGqPrO.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/H2okCofJ.js +0 -3
- package/dist/client/_app/immutable/chunks/H2okCofJ.js.br +0 -0
- package/dist/client/_app/immutable/chunks/H2okCofJ.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/NRUHq-_72.js.br +0 -0
- package/dist/client/_app/immutable/chunks/NRUHq-_72.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/UeNcXxK4.js +0 -293
- package/dist/client/_app/immutable/chunks/UeNcXxK4.js.br +0 -0
- package/dist/client/_app/immutable/chunks/UeNcXxK4.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/VTYQK3v_2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/VTYQK3v_2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Wjj5hwVF2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Wjj5hwVF2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/YpKUr6uE2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/YpKUr6uE2.js.gz +0 -0
- package/dist/client/_app/immutable/entry/app.CiLM39cw.js.br +0 -0
- package/dist/client/_app/immutable/entry/app.CiLM39cw.js.gz +0 -0
- package/dist/client/_app/immutable/entry/start.CIrA5P2h.js +0 -1
- package/dist/client/_app/immutable/entry/start.CIrA5P2h.js.br +0 -0
- package/dist/client/_app/immutable/entry/start.CIrA5P2h.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/0.CEpgzEwS.js.br +0 -0
- package/dist/client/_app/immutable/nodes/0.CEpgzEwS.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/1.Sm4J_hJ5.js.br +0 -0
- package/dist/client/_app/immutable/nodes/1.Sm4J_hJ5.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/10.BcE-uamz.js +0 -6
- package/dist/client/_app/immutable/nodes/10.BcE-uamz.js.br +0 -0
- package/dist/client/_app/immutable/nodes/10.BcE-uamz.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/2.BGBkNPlf.js +0 -1
- package/dist/client/_app/immutable/nodes/2.BGBkNPlf.js.br +0 -0
- package/dist/client/_app/immutable/nodes/2.BGBkNPlf.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/9.C7P5VSNI.js.br +0 -0
- package/dist/client/_app/immutable/nodes/9.C7P5VSNI.js.gz +0 -0
- package/dist/server/chunks/10-x0FGzJF7.js.map +0 -1
- package/dist/server/chunks/3-CcIZ_M60.js.map +0 -1
- package/dist/server/chunks/4-DyArZX6h.js.map +0 -1
- package/dist/server/chunks/5-DVrv6Zto.js.map +0 -1
- package/dist/server/chunks/6-AD0Ee23-.js.map +0 -1
- package/dist/server/chunks/8-CRPOubhA.js.map +0 -1
- package/dist/server/chunks/9-BhWG76gi.js.map +0 -1
- package/dist/server/chunks/_layout.svelte-CP4jFwsK.js.map +0 -1
- package/dist/server/chunks/_page.svelte-7KJNFri5.js.map +0 -1
- package/dist/server/chunks/_page.svelte-B3Zfq6_t.js.map +0 -1
- package/dist/server/chunks/_page.svelte-BQLzgYrr.js.map +0 -1
- package/dist/server/chunks/_server.ts-B1t_0LJV.js +0 -19
- package/dist/server/chunks/_server.ts-B1t_0LJV.js.map +0 -1
- package/dist/server/chunks/client-BvtIF74Y.js.map +0 -1
- package/dist/server/chunks/error-D23CGeyL.js.map +0 -1
- package/dist/server/chunks/events-DeYJGjCt.js.map +0 -1
- package/dist/server/chunks/internal-B77zebhK.js.map +0 -1
- package/dist/server/chunks/logo-BfI7zmyL.js.map +0 -1
- package/dist/server/chunks/request-handler-D-qbwxhh.js.map +0 -1
- package/dist/server/chunks/schemas-ENQuLVBq.js.map +0 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { t as Exception } from "./const-Dy5RfQqP.js";
|
|
2
|
+
import { i as useRequestHandler } from "./request-handler-guINVc1G.js";
|
|
3
|
+
import { Writable } from "node:stream";
|
|
4
|
+
//#region .svelte-kit/adapter-bun/entries/endpoints/fs/project/_server.ts.js
|
|
5
|
+
/**
|
|
6
|
+
* To request a project file, use the following URL:
|
|
7
|
+
* /fs/project?path=path/to/file
|
|
8
|
+
* The path must be relative to /client
|
|
9
|
+
* Only the client is handled for now
|
|
10
|
+
*/
|
|
11
|
+
var GET = useRequestHandler(({ event, project }) => {
|
|
12
|
+
const path = event.url.searchParams.get("path");
|
|
13
|
+
if (!path) throw new Exception("Bad Request", "Missing path query param", 400);
|
|
14
|
+
const stream = project.client.fs.getFile(decodeURIComponent(path).replace(/\?url$/, "")).readStream();
|
|
15
|
+
return new Response(stream);
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* To post a project file, use the following URL:
|
|
19
|
+
* /fs/project?path=path/to/file
|
|
20
|
+
* The path must be relative to /client
|
|
21
|
+
* Only the client is handled for now
|
|
22
|
+
*/
|
|
23
|
+
var POST = useRequestHandler(async ({ event, project }) => {
|
|
24
|
+
const path = event.url.searchParams.get("path");
|
|
25
|
+
if (!path) throw new Exception("Bad Request", "Missing path query param", 400);
|
|
26
|
+
const file = project.client.fs.getFile(decodeURIComponent(path).replace(/\?url$/, ""));
|
|
27
|
+
if (!event.request.body) throw new Exception("Bad Request", "Missing body", 400);
|
|
28
|
+
const stream = file.getWriteStream();
|
|
29
|
+
await event.request.body.pipeTo(Writable.toWeb(stream));
|
|
30
|
+
return Response.json({ success: true });
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
export { GET, POST };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=_server.ts-DlC2sxcm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_server.ts-DlC2sxcm.js","names":[],"sources":["../../../.svelte-kit/adapter-bun/entries/endpoints/fs/project/_server.ts.js"],"sourcesContent":["import { n as Exception } from \"../../../../chunks/const.js\";\nimport { t as useRequestHandler } from \"../../../../chunks/request-handler.js\";\nimport { Writable } from \"node:stream\";\n//#region src/routes/fs/project/+server.ts\n/**\n* To request a project file, use the following URL:\n* /fs/project?path=path/to/file\n* The path must be relative to /client\n* Only the client is handled for now\n*/\nvar GET = useRequestHandler(({ event, project }) => {\n\tconst path = event.url.searchParams.get(\"path\");\n\tif (!path) throw new Exception(\"Bad Request\", \"Missing path query param\", 400);\n\tconst stream = project.client.fs.getFile(decodeURIComponent(path).replace(/\\?url$/, \"\")).readStream();\n\treturn new Response(stream);\n});\n/**\n* To post a project file, use the following URL:\n* /fs/project?path=path/to/file\n* The path must be relative to /client\n* Only the client is handled for now\n*/\nvar POST = useRequestHandler(async ({ event, project }) => {\n\tconst path = event.url.searchParams.get(\"path\");\n\tif (!path) throw new Exception(\"Bad Request\", \"Missing path query param\", 400);\n\tconst file = project.client.fs.getFile(decodeURIComponent(path).replace(/\\?url$/, \"\"));\n\tif (!event.request.body) throw new Exception(\"Bad Request\", \"Missing body\", 400);\n\tconst stream = file.getWriteStream();\n\tawait event.request.body.pipeTo(Writable.toWeb(stream));\n\treturn Response.json({ success: true });\n});\n//#endregion\nexport { GET, POST };\n"],"mappings":";;;;;;;;;;AAUA,IAAI,MAAM,mBAAmB,EAAE,OAAO,cAAc;CACnD,MAAM,OAAO,MAAM,IAAI,aAAa,IAAI,MAAM;CAC9C,IAAI,CAAC,MAAM,MAAM,IAAI,UAAU,eAAe,4BAA4B,GAAG;CAC7E,MAAM,SAAS,QAAQ,OAAO,GAAG,QAAQ,mBAAmB,IAAI,CAAC,CAAC,QAAQ,UAAU,EAAE,CAAC,CAAC,CAAC,WAAW;CACpG,OAAO,IAAI,SAAS,MAAM;AAC3B,CAAC;;;;;;;AAOD,IAAI,OAAO,kBAAkB,OAAO,EAAE,OAAO,cAAc;CAC1D,MAAM,OAAO,MAAM,IAAI,aAAa,IAAI,MAAM;CAC9C,IAAI,CAAC,MAAM,MAAM,IAAI,UAAU,eAAe,4BAA4B,GAAG;CAC7E,MAAM,OAAO,QAAQ,OAAO,GAAG,QAAQ,mBAAmB,IAAI,CAAC,CAAC,QAAQ,UAAU,EAAE,CAAC;CACrF,IAAI,CAAC,MAAM,QAAQ,MAAM,MAAM,IAAI,UAAU,eAAe,gBAAgB,GAAG;CAC/E,MAAM,SAAS,KAAK,eAAe;CACnC,MAAM,MAAM,QAAQ,KAAK,OAAO,SAAS,MAAM,MAAM,CAAC;CACtD,OAAO,SAAS,KAAK,EAAE,SAAS,KAAK,CAAC;AACvC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as Exception } from "./const-Dy5RfQqP.js";
|
|
2
|
-
import { i as useRequestHandler } from "./request-handler-
|
|
2
|
+
import { i as useRequestHandler } from "./request-handler-guINVc1G.js";
|
|
3
3
|
//#region .svelte-kit/adapter-bun/entries/endpoints/fs/build/_server.ts.js
|
|
4
4
|
/**
|
|
5
5
|
* To request a built file, use the following URL:
|
|
@@ -16,4 +16,4 @@ var GET = useRequestHandler(({ event, project }) => {
|
|
|
16
16
|
//#endregion
|
|
17
17
|
export { GET };
|
|
18
18
|
|
|
19
|
-
//# sourceMappingURL=_server.ts-
|
|
19
|
+
//# sourceMappingURL=_server.ts-a-I4s4R9.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-a-I4s4R9.js","names":[],"sources":["../../../.svelte-kit/adapter-bun/entries/endpoints/fs/build/_server.ts.js"],"sourcesContent":["import { n as Exception } from \"../../../../chunks/const.js\";\nimport { t as useRequestHandler } from \"../../../../chunks/request-handler.js\";\n//#region src/routes/fs/build/+server.ts\n/**\n* To request a built file, use the following URL:\n* /fs/build?path=path/to/file\n* The path must be relative to /.nanoforge/client\n* Only the client is handled for now\n*/\nvar GET = useRequestHandler(({ event, project }) => {\n\tconst path = event.url.searchParams.get(\"path\");\n\tif (!path) throw new Exception(\"Bad Request\", \"Missing path query param\", 400);\n\tconst stream = project.client.loader.getFile(decodeURIComponent(path).replace(/\\?url$/, \"\")).readStream();\n\treturn new Response(stream);\n});\n//#endregion\nexport { GET };\n"],"mappings":";;;;;;;;;AASA,IAAI,MAAM,mBAAmB,EAAE,OAAO,cAAc;CACnD,MAAM,OAAO,MAAM,IAAI,aAAa,IAAI,MAAM;CAC9C,IAAI,CAAC,MAAM,MAAM,IAAI,UAAU,eAAe,4BAA4B,GAAG;CAC7E,MAAM,SAAS,QAAQ,OAAO,OAAO,QAAQ,mBAAmB,IAAI,CAAC,CAAC,QAAQ,UAAU,EAAE,CAAC,CAAC,CAAC,WAAW;CACxG,OAAO,IAAI,SAAS,MAAM;AAC3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-DUeJj5RD.js","names":[],"sources":["../../../.svelte-kit/adapter-bun/chunks/app.js"],"sourcesContent":["//#region node_modules/.pnpm/@sveltejs+kit@2.
|
|
1
|
+
{"version":3,"file":"app-DUeJj5RD.js","names":[],"sources":["../../../.svelte-kit/adapter-bun/chunks/app.js"],"sourcesContent":["//#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/app.js\n/** @type {{ decoders: Record<string, (data: any) => any> }} */\nvar app;\n/**\n* @param {{ decoders: Record<string, (data: any) => any> }} value\n*/\nfunction set_app(value) {\n\tapp = value;\n}\n//#endregion\nexport { set_app as n, app as t };\n"],"mappings":";;AAEA,IAAI;;;;AAIJ,SAAS,QAAQ,OAAO;CACvB,MAAM;AACP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunk-ByNZkrT6.js","names":[],"sources":["../../../.svelte-kit/adapter-bun/chunks/chunk.js"],"sourcesContent":["//#region \\0rolldown/runtime.js\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);\nvar __exportAll = (all, no_symbols) => {\n\tlet target = {};\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n\tif (!no_symbols) __defProp(target, Symbol.toStringTag, { value: \"Module\" });\n\treturn target;\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {\n\t\tkey = keys[i];\n\t\tif (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: ((k) => from[k]).bind(null, key),\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\tvalue: mod,\n\tenumerable: true\n}) : target, mod));\n//#endregion\nexport { __exportAll as n, __toESM as r, __commonJSMin as t };\n"],"mappings":";AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,iBAAiB,IAAI,eAAe,QAAQ,IAAI,MAAM,EAAE,SAAS,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"chunk-ByNZkrT6.js","names":[],"sources":["../../../.svelte-kit/adapter-bun/chunks/chunk.js"],"sourcesContent":["//#region \\0rolldown/runtime.js\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);\nvar __exportAll = (all, no_symbols) => {\n\tlet target = {};\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n\tif (!no_symbols) __defProp(target, Symbol.toStringTag, { value: \"Module\" });\n\treturn target;\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {\n\t\tkey = keys[i];\n\t\tif (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: ((k) => from[k]).bind(null, key),\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\tvalue: mod,\n\tenumerable: true\n}) : target, mod));\n//#endregion\nexport { __exportAll as n, __toESM as r, __commonJSMin as t };\n"],"mappings":";AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,iBAAiB,IAAI,eAAe,QAAQ,IAAI,MAAM,EAAE,SAAS,CAAC,EAAE,EAAA,CAAG,SAAS,GAAG,GAAG,KAAK,OAAO,IAAI;AAC1G,IAAI,eAAe,KAAK,eAAe;CACtC,IAAI,SAAS,CAAC;CACd,KAAK,IAAI,QAAQ,KAAK,UAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;CACb,CAAC;CACD,IAAI,CAAC,YAAY,UAAU,QAAQ,OAAO,aAAa,EAAE,OAAO,SAAS,CAAC;CAC1E,OAAO;AACR;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC7C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY,KAAK,IAAI,OAAO,kBAAkB,IAAI,GAAG,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK,IAAI,GAAG,KAAK;EACrJ,MAAM,KAAK;EACX,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QAAQ,UAAU,IAAI,KAAK;GACrE,OAAO,MAAM,KAAK,GAAA,CAAI,KAAK,MAAM,GAAG;GACpC,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAC3D,CAAC;CACF;CACA,OAAO;AACR;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAAY,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CACrL,OAAO;CACP,YAAY;AACb,CAAC,IAAI,QAAQ,GAAG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Q as noop, St as writable, U as index_server_exports } from "./events-
|
|
2
|
-
import { G as noop$1, N as base, P as initial_base, b as resolve_route, k as try_get_request_store } from "./
|
|
1
|
+
import { Q as noop, St as writable, U as index_server_exports } from "./events-Bhh2w-5S.js";
|
|
2
|
+
import { G as noop$1, N as base, P as initial_base, b as resolve_route, k as try_get_request_store } from "./internal2-CeV_cIh4.js";
|
|
3
3
|
//#region .svelte-kit/adapter-bun/chunks/client.js
|
|
4
4
|
/** @type {import('./client.js').resolve} */
|
|
5
5
|
function resolve(id, params) {
|
|
@@ -156,4 +156,4 @@ async function applyAction(result) {
|
|
|
156
156
|
//#endregion
|
|
157
157
|
export { resolve as a, invalidateAll as i, applyAction as n, stores as o, goto as r, afterNavigate as t };
|
|
158
158
|
|
|
159
|
-
//# sourceMappingURL=client-
|
|
159
|
+
//# sourceMappingURL=client-BkmWBFaS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-BkmWBFaS.js","names":["noop","noop$1"],"sources":["../../../.svelte-kit/adapter-bun/chunks/client.js"],"sourcesContent":["import { S as noop, f as get_message, h as base64_decode, n as TRAILING_SLASH_PARAM, p as get_status, r as create_remote_key, t as INVALIDATED_PARAM, x as unflatten } from \"./shared.js\";\nimport { c as initial_base, s as base } from \"./internal.js\";\nimport { G as writable, _t as noop$1, a as tick$1, i as settled, t as index_server_exports } from \"./index-server.js\";\nimport { _ as noop_span, c as hash, d as decode_params, f as decode_pathname, h as normalize_path, m as make_trackable, s as resolve_route, v as add_data_suffix, w as compact } from \"./exports.js\";\nimport \"./internal2.js\";\nimport { HttpError, Redirect, SvelteKitError } from \"@sveltejs/kit/internal\";\nimport { try_get_request_store } from \"@sveltejs/kit/internal/server\";\n//#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/app/paths/server.js\n/** @type {import('./client.js').resolve} */\nfunction resolve(id, params) {\n\tif (!id.startsWith(\"/\")) throw new Error(`Cannot use \\`resolve(...)\\` with a non-absolute pathname or route ID (got \"${id}\"). \\`resolve\\` is only for internal pathnames and route IDs; external URLs should be used directly.`);\n\tconst resolved = resolve_route(id, params);\n\t{\n\t\tconst store = try_get_request_store();\n\t\tif (store && !store.state.prerendering?.fallback) return (store.event.url.pathname.slice(initial_base.length).split(\"/\").slice(2).map(() => \"..\").join(\"/\") || \".\") + resolved;\n\t}\n\treturn base + resolved;\n}\nvar STATES_KEY = \"sveltekit:states\";\nvar HISTORY_INDEX = \"sveltekit:history\";\nvar NAVIGATION_INDEX = \"sveltekit:navigation\";\nvar PRELOAD_PRIORITIES = {\n\ttap: 1,\n\thover: 2,\n\tviewport: 3,\n\teager: 4,\n\toff: -1,\n\tfalse: -1\n};\n//#endregion\n//#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/client/utils.js\nvar origin = \"\";\n/** @param {string | URL} url */\nfunction resolve_url(url) {\n\tif (url instanceof URL) return url;\n\tlet baseURI = document.baseURI;\n\tif (!baseURI) {\n\t\tconst baseTags = document.getElementsByTagName(\"base\");\n\t\tbaseURI = baseTags.length ? baseTags[0].href : document.URL;\n\t}\n\treturn new URL(url, baseURI);\n}\nfunction scroll_state() {\n\treturn {\n\t\tx: pageXOffset,\n\t\ty: pageYOffset\n\t};\n}\n({ ...PRELOAD_PRIORITIES }), PRELOAD_PRIORITIES.hover;\n/** @param {any} value */\nfunction notifiable_store(value) {\n\tconst store = writable(value);\n\tlet ready = true;\n\tfunction notify() {\n\t\tready = true;\n\t\tstore.update((val) => val);\n\t}\n\t/** @param {any} new_value */\n\tfunction set(new_value) {\n\t\tready = false;\n\t\tstore.set(new_value);\n\t}\n\t/** @param {(value: any) => void} run */\n\tfunction subscribe(run) {\n\t\t/** @type {any} */\n\t\tlet old_value;\n\t\treturn store.subscribe((new_value) => {\n\t\t\tif (old_value === void 0 || ready && new_value !== old_value) run(old_value = new_value);\n\t\t});\n\t}\n\treturn {\n\t\tnotify,\n\t\tset,\n\t\tsubscribe\n\t};\n}\nvar updated_listener = { v: noop };\nfunction create_updated_store() {\n\tconst { set, subscribe } = writable(false);\n\treturn {\n\t\tsubscribe,\n\t\tcheck: async () => false\n\t};\n}\n/**\n* Is external if\n* - origin different\n* - path doesn't start with base\n* - uses hash router and pathname is more than base\n* @param {URL} url\n* @param {string} base\n* @param {boolean} hash_routing\n*/\nfunction is_external_url(url, base, hash_routing) {\n\tif (url.origin !== origin || !url.pathname.startsWith(base)) return true;\n\tif (hash_routing) return url.pathname !== location.pathname;\n\treturn false;\n}\n//#endregion\n//#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/client/state.svelte.js\nvar page;\nvar navigating;\nvar updated;\nvar is_legacy = noop$1.toString().includes(\"$$\") || /function \\w+\\(\\) \\{\\}/.test(noop$1.toString());\nvar placeholder_url = \"a:\";\nif (is_legacy) {\n\tpage = {\n\t\tdata: {},\n\t\tform: null,\n\t\terror: null,\n\t\tparams: {},\n\t\troute: { id: null },\n\t\tstate: {},\n\t\tstatus: -1,\n\t\turl: new URL(placeholder_url)\n\t};\n\tnavigating = { current: null };\n\tupdated = { current: false };\n} else {\n\tpage = new class Page {\n\t\tdata = {};\n\t\tform = null;\n\t\terror = null;\n\t\tparams = {};\n\t\troute = { id: null };\n\t\tstate = {};\n\t\tstatus = -1;\n\t\turl = new URL(placeholder_url);\n\t}();\n\tnavigating = new class Navigating {\n\t\tcurrent = null;\n\t}();\n\tupdated = new class Updated {\n\t\tcurrent = false;\n\t}();\n\tupdated_listener.v = () => updated.current = true;\n}\n/**\n* @param {import('@sveltejs/kit').Page} new_page\n*/\nfunction update(new_page) {\n\tObject.assign(page, new_page);\n}\nvar cache = /* @__PURE__ */ new Map();\n/**\n* Should be called on the initial run of load functions that hydrate the page.\n* Saves any requests with cache-control max-age to the cache.\n* @param {URL | string} resource\n* @param {RequestInit} [opts]\n*/\nfunction initial_fetch(resource, opts) {\n\tconst selector = build_selector(resource, opts);\n\tconst script = document.querySelector(selector);\n\tif (script?.textContent) {\n\t\tscript.remove();\n\t\tlet { body, ...init } = JSON.parse(script.textContent);\n\t\tconst ttl = script.getAttribute(\"data-ttl\");\n\t\tif (ttl) cache.set(selector, {\n\t\t\tbody,\n\t\t\tinit,\n\t\t\tttl: 1e3 * Number(ttl)\n\t\t});\n\t\tif (script.getAttribute(\"data-b64\") !== null) body = base64_decode(body);\n\t\treturn Promise.resolve(new Response(body, init));\n\t}\n\treturn window.fetch(resource, opts);\n}\n/**\n* Tries to get the response from the cache, if max-age allows it, else does a fetch.\n* @param {URL | string} resource\n* @param {string} resolved\n* @param {RequestInit} [opts]\n*/\nfunction subsequent_fetch(resource, resolved, opts) {\n\tif (cache.size > 0) {\n\t\tconst selector = build_selector(resource, opts);\n\t\tconst cached = cache.get(selector);\n\t\tif (cached) {\n\t\t\tif (performance.now() < cached.ttl && [\n\t\t\t\t\"default\",\n\t\t\t\t\"force-cache\",\n\t\t\t\t\"only-if-cached\",\n\t\t\t\tvoid 0\n\t\t\t].includes(opts?.cache)) return new Response(cached.body, cached.init);\n\t\t\tcache.delete(selector);\n\t\t}\n\t}\n\treturn window.fetch(resolved, opts);\n}\n/**\n* Build the cache key for a given request\n* @param {URL | RequestInfo} resource\n* @param {RequestInit} [opts]\n*/\nfunction build_selector(resource, opts) {\n\tlet selector = `script[data-sveltekit-fetched][data-url=${JSON.stringify(resource instanceof Request ? resource.url : resource)}]`;\n\tif (opts?.headers || opts?.body) {\n\t\t/** @type {import('types').StrictBody[]} */\n\t\tconst values = [];\n\t\tif (opts.headers) values.push([...new Headers(opts.headers)].join(\",\"));\n\t\tif (opts.body && (typeof opts.body === \"string\" || ArrayBuffer.isView(opts.body))) values.push(opts.body);\n\t\tselector += `[data-hash=\"${hash(...values)}\"]`;\n\t}\n\treturn selector;\n}\n//#endregion\n//#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/client/session-storage.js\n/**\n* Read a value from `sessionStorage`\n* @param {string} key\n* @param {(value: string) => any} parse\n*/\n/*@__NO_SIDE_EFFECTS__*/\nfunction get(key, parse = JSON.parse) {\n\ttry {\n\t\treturn parse(sessionStorage[key]);\n\t} catch {}\n}\n//#endregion\n//#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/client/ndjson.js\n/**\n* Yields parsed JSON objects from a ReadableStream of newline-delimited JSON.\n* Each yielded value is the raw `JSON.parse`'d object — callers handle deserialization.\n* @param {ReadableStreamDefaultReader<Uint8Array>} reader\n*/\nasync function* read_ndjson(reader) {\n\tlet done = false;\n\tlet buffer = \"\";\n\tconst decoder = new TextDecoder();\n\twhile (true) {\n\t\tlet split = buffer.indexOf(\"\\n\");\n\t\twhile (split !== -1) {\n\t\t\tconst line = buffer.slice(0, split).trim();\n\t\t\tbuffer = buffer.slice(split + 1);\n\t\t\tif (line) yield JSON.parse(line);\n\t\t\tsplit = buffer.indexOf(\"\\n\");\n\t\t}\n\t\tif (done) {\n\t\t\tconst line = buffer.trim();\n\t\t\tif (line) yield JSON.parse(line);\n\t\t\treturn;\n\t\t}\n\t\tconst chunk = await reader.read();\n\t\tdone = chunk.done;\n\t\tif (chunk.value) buffer += decoder.decode(chunk.value, { stream: true });\n\t\tif (done) buffer += decoder.decode();\n\t}\n}\n//#endregion\n//#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/client/client.js\n/** @import { ServerNodesResponse, ServerRedirectNode } from 'types' */\n/** @import { CacheEntry } from './remote-functions/cache.svelte.js' */\n/** @import { Query } from './remote-functions/query/instance.svelte.js' */\n/** @import { LiveQuery } from './remote-functions/query-live/instance.svelte.js' */\nvar { onMount, tick } = index_server_exports;\n/**\n* Set via transformError, reset and read at the end of navigate.\n* Necessary because a navigation might succeed loading but during rendering\n* an error occurs, at which point the navigation result needs to be overridden with the error result.\n* TODO this is all very hacky, rethink for SvelteKit 3 where we can assume Svelte 5 and do an overhaul of client.js\n* @type {{ error: App.Error, status: number } | null}\n*/\nvar rendering_error = null;\n/**\n* history index -> { x, y }\n* @type {Record<number, { x: number; y: number }>}\n*/\nvar scroll_positions = /* @__PURE__ */ get(\"sveltekit:scroll\") ?? {};\n/**\n* navigation index -> any\n* @type {Record<string, any[]>}\n*/\nvar snapshots = /* @__PURE__ */ get(\"sveltekit:snapshot\") ?? {};\nvar stores = {\n\turl: /* @__PURE__ */ notifiable_store({}),\n\tpage: /* @__PURE__ */ notifiable_store({}),\n\tnavigating: /* @__PURE__ */ writable(null),\n\tupdated: /* @__PURE__ */ create_updated_store()\n};\n/** @param {number} index */\nfunction update_scroll_positions(index) {\n\tscroll_positions[index] = scroll_state();\n}\n/**\n* @param {number} current_history_index\n* @param {number} current_navigation_index\n*/\nfunction clear_onward_history(current_history_index, current_navigation_index) {\n\tlet i = current_history_index + 1;\n\twhile (scroll_positions[i]) {\n\t\tdelete scroll_positions[i];\n\t\ti += 1;\n\t}\n\ti = current_navigation_index + 1;\n\twhile (snapshots[i]) {\n\t\tdelete snapshots[i];\n\t\ti += 1;\n\t}\n}\n/**\n* Loads `href` the old-fashioned way, with a full page reload.\n* Returns a `Promise` that never resolves (to prevent any\n* subsequent work, e.g. history manipulation, from happening)\n* @param {URL} url\n* @param {boolean} [replace] If `true`, will replace the current `history` entry rather than creating a new one with `pushState`\n*/\nfunction native_navigation(url, replace = false) {\n\tif (replace) location.replace(url.href);\n\telse location.href = url.href;\n\treturn new Promise(noop);\n}\n/**\n* Checks whether a service worker is registered, and if it is,\n* tries to update it.\n*/\nasync function update_service_worker() {\n\tif (\"serviceWorker\" in navigator) {\n\t\tconst registration = await navigator.serviceWorker.getRegistration(base || \"/\");\n\t\tif (registration) await registration.update();\n\t}\n}\n/** @type {import('types').CSRRoute[]} All routes of the app. Only available when kit.router.resolution=client */\nvar routes;\n/** @type {import('types').CSRPageNodeLoader} */\nvar default_layout_loader;\n/** @type {import('types').CSRPageNodeLoader} */\nvar default_error_loader;\n/** @type {HTMLElement} */\nvar target;\n/** @type {import('./types.js').SvelteKitApp} */\nvar app;\n/** @type {Array<((url: URL) => boolean)>} */\nvar invalidated = [];\n/**\n* An array of the `+layout.svelte` and `+page.svelte` component instances\n* that currently live on the page — used for capturing and restoring snapshots.\n* It's updated/manipulated through `bind:this` in `Root.svelte`.\n* @type {import('svelte').SvelteComponent[]}\n*/\nvar components = [];\n/** @type {{id: string, token: {}, promise: Promise<import('./types.js').NavigationResult>, fork: Promise<import('svelte').Fork | null> | null} | null} */\nvar load_cache = null;\nfunction discard_load_cache() {\n\tload_cache?.fork?.then((f) => f?.discard());\n\tload_cache = null;\n\tcurrent_a = {\n\t\telement: void 0,\n\t\thref: void 0\n\t};\n}\n/**\n* @type {Map<string, Promise<URL>>}\n* Cache for client-side rerouting, since it could contain async calls which we want to\n* avoid running multiple times which would slow down navigations (e.g. else preloading\n* wouldn't help because on navigation it would be called again). Since `reroute` should be\n* a pure function (i.e. always return the same) value it's safe to cache across navigations.\n* The server reroute calls don't need to be cached because they are called using `import(...)`\n* which is cached per the JS spec.\n*/\nvar reroute_cache = /* @__PURE__ */ new Map();\n/**\n* Note on before_navigate_callbacks, on_navigate_callbacks and after_navigate_callbacks:\n* do not re-assign as some closures keep references to these Sets\n*/\n/** @type {Set<(navigation: import('@sveltejs/kit').BeforeNavigate) => void>} */\nvar before_navigate_callbacks = /* @__PURE__ */ new Set();\n/** @type {Set<(navigation: import('@sveltejs/kit').OnNavigate) => import('types').MaybePromise<(() => void) | void>>} */\nvar on_navigate_callbacks = /* @__PURE__ */ new Set();\n/** @type {Set<(navigation: import('@sveltejs/kit').AfterNavigate) => void>} */\nvar after_navigate_callbacks = /* @__PURE__ */ new Set();\n/** @type {import('./types.js').NavigationState & { nav: import('@sveltejs/kit').NavigationEvent }} */\nvar current = {\n\tbranch: [],\n\terror: null,\n\turl: null,\n\tnav: null\n};\n/** this being true means we SSR'd */\nvar hydrated = false;\nvar started = false;\nvar autoscroll = true;\nvar is_navigating = false;\nvar force_invalidation = false;\n/** @type {import('svelte').SvelteComponent} */\nvar root;\n/** @type {number} keeping track of the history index in order to prevent popstate navigation events if needed */\nvar current_history_index;\n/** @type {number} */\nvar current_navigation_index;\n/** @type {{}} */\nvar token;\n/**\n* A set of tokens which are associated to current preloads.\n* If a preload becomes a real navigation, it's removed from the set.\n* If a preload token is in the set and the preload errors, the error\n* handling logic (for example reloading) is skipped.\n*/\nvar preload_tokens = /* @__PURE__ */ new Set();\n/**\n* @type {Map<string, Map<string, CacheEntry<Query<any>>>>}\n* A map of query id -> payload -> query internals for all active queries.\n*/\nvar query_map = /* @__PURE__ */ new Map();\n/**\n* @type {Map<string, Map<string, CacheEntry<LiveQuery<any>>>>}\n* A map of id -> payload -> live query internals for all active queries.\n*/\nvar live_query_map = /* @__PURE__ */ new Map();\nfunction reset_invalidation() {\n\tinvalidated.length = 0;\n\tforce_invalidation = false;\n}\n/** @param {number} index */\nfunction capture_snapshot(index) {\n\tif (components.some((c) => c?.snapshot)) snapshots[index] = components.map((c) => c?.snapshot?.capture());\n}\n/** @param {number} index */\nfunction restore_snapshot(index) {\n\tsnapshots[index]?.forEach((value, i) => {\n\t\tcomponents[i]?.snapshot?.restore(value);\n\t});\n}\n/**\n* @param {string | URL} url\n* @param {{ replaceState?: boolean; noScroll?: boolean; keepFocus?: boolean; invalidateAll?: boolean; invalidate?: Array<string | URL | ((url: URL) => boolean)>; state?: Record<string, any> }} options\n* @param {number} redirect_count\n* @param {{}} [nav_token]\n*/\nasync function _goto(url, options, redirect_count, nav_token) {\n\t/** @type {Set<string>} */\n\tlet query_keys;\n\t/** @type {Set<string>} */\n\tlet live_query_keys;\n\tif (options.invalidateAll) discard_load_cache();\n\tawait navigate({\n\t\ttype: \"goto\",\n\t\turl: resolve_url(url),\n\t\tkeepfocus: options.keepFocus,\n\t\tnoscroll: options.noScroll,\n\t\treplace_state: options.replaceState,\n\t\tstate: options.state,\n\t\tredirect_count,\n\t\tnav_token,\n\t\taccept: () => {\n\t\t\tif (options.invalidateAll) {\n\t\t\t\tforce_invalidation = true;\n\t\t\t\tquery_keys = /* @__PURE__ */ new Set();\n\t\t\t\tfor (const [id, entries] of query_map) for (const payload of entries.keys()) query_keys.add(create_remote_key(id, payload));\n\t\t\t\tlive_query_keys = /* @__PURE__ */ new Set();\n\t\t\t\tfor (const [id, entries] of live_query_map) for (const payload of entries.keys()) live_query_keys.add(create_remote_key(id, payload));\n\t\t\t}\n\t\t\tif (options.invalidate) options.invalidate.forEach(push_invalidated);\n\t\t}\n\t});\n\tif (options.invalidateAll) tick$1().then(tick$1).then(() => {\n\t\tfor (const [id, entries] of query_map) for (const [payload, { resource }] of entries) if (query_keys?.has(create_remote_key(id, payload))) resource.refresh();\n\t\tfor (const [id, entries] of live_query_map) for (const [payload, { resource }] of entries) if (live_query_keys?.has(create_remote_key(id, payload))) resource.reconnect();\n\t});\n}\n/**\n* @param {import('./types.js').NavigationFinished} result\n* @param {HTMLElement} target\n* @param {boolean} hydrate\n*/\nasync function initialize(result, target, hydrate) {\n\t/** @type {import('@sveltejs/kit').NavigationEvent} */\n\tconst nav = {\n\t\tparams: current.params,\n\t\troute: { id: current.route?.id ?? null },\n\t\turl: new URL(location.href)\n\t};\n\tcurrent = {\n\t\t...result.state,\n\t\tnav\n\t};\n\tupdate(result.props.page);\n\troot = new app.root({\n\t\ttarget,\n\t\tprops: {\n\t\t\t...result.props,\n\t\t\tstores,\n\t\t\tcomponents\n\t\t},\n\t\thydrate,\n\t\tsync: false,\n\t\ttransformError: void 0\n\t});\n\tawait Promise.resolve();\n\trestore_snapshot(current_navigation_index);\n\tif (hydrate) {\n\t\t/** @type {import('@sveltejs/kit').AfterNavigate} */\n\t\tconst navigation = {\n\t\t\tfrom: null,\n\t\t\tto: {\n\t\t\t\t...nav,\n\t\t\t\tscroll: scroll_positions[current_history_index] ?? scroll_state()\n\t\t\t},\n\t\t\twillUnload: false,\n\t\t\ttype: \"enter\",\n\t\t\tcomplete: Promise.resolve()\n\t\t};\n\t\tafter_navigate_callbacks.forEach((fn) => fn(navigation));\n\t}\n\tstarted = true;\n}\n/**\n*\n* @param {{\n* url: URL;\n* params: Record<string, string>;\n* branch: Array<import('./types.js').BranchNode | undefined>;\n* errors?: Array<import('types').CSRPageNodeLoader | undefined>;\n* status: number;\n* error: App.Error | null;\n* route: import('types').CSRRoute | null;\n* form?: Record<string, any> | null;\n* }} opts\n*/\nasync function get_navigation_result_from_branch({ url, params, branch, errors, status, error, route, form }) {\n\t/** @type {import('types').TrailingSlash} */\n\tlet slash = \"never\";\n\tif (base && (url.pathname === base || url.pathname === base + \"/\")) slash = \"always\";\n\telse for (const node of branch) if (node?.slash !== void 0) slash = node.slash;\n\turl.pathname = normalize_path(url.pathname, slash);\n\turl.search = url.search;\n\t/** @type {import('./types.js').NavigationFinished} */\n\tconst result = {\n\t\ttype: \"loaded\",\n\t\tstate: {\n\t\t\turl,\n\t\t\tparams,\n\t\t\tbranch,\n\t\t\terror,\n\t\t\troute\n\t\t},\n\t\tprops: {\n\t\t\tconstructors: compact(branch).map((branch_node) => branch_node.node.component),\n\t\t\tpage: clone_page(page)\n\t\t}\n\t};\n\tif (form !== void 0) result.props.form = form;\n\tlet data = {};\n\tlet data_changed = !page;\n\tlet p = 0;\n\tfor (let i = 0; i < Math.max(branch.length, current.branch.length); i += 1) {\n\t\tconst node = branch[i];\n\t\tconst prev = current.branch[i];\n\t\tif (node?.data !== prev?.data) data_changed = true;\n\t\tif (!node) continue;\n\t\tdata = {\n\t\t\t...data,\n\t\t\t...node.data\n\t\t};\n\t\tif (data_changed) result.props[`data_${p}`] = data;\n\t\tp += 1;\n\t}\n\tif (!current.url || url.href !== current.url.href || current.error !== error || form !== void 0 && form !== page.form || data_changed) result.props.page = {\n\t\terror,\n\t\tparams,\n\t\troute: { id: route?.id ?? null },\n\t\tstate: {},\n\t\tstatus,\n\t\turl: new URL(url),\n\t\tform: form ?? null,\n\t\tdata: data_changed ? data : page.data\n\t};\n\treturn result;\n}\n/**\n* Call the universal load function of the given node, if it exists.\n*\n* @param {{\n* loader: import('types').CSRPageNodeLoader;\n* \t parent: () => Promise<Record<string, any>>;\n* url: URL;\n* params: Record<string, string>;\n* route: { id: string | null };\n* \t server_data_node: import('./types.js').DataNode | null;\n* }} options\n* @returns {Promise<import('./types.js').BranchNode>}\n*/\nasync function load_node({ loader, parent, url, params, route, server_data_node }) {\n\t/** @type {Record<string, any> | null} */\n\tlet data = null;\n\tlet is_tracking = true;\n\t/** @type {import('types').Uses} */\n\tconst uses = {\n\t\tdependencies: /* @__PURE__ */ new Set(),\n\t\tparams: /* @__PURE__ */ new Set(),\n\t\tparent: false,\n\t\troute: false,\n\t\turl: false,\n\t\tsearch_params: /* @__PURE__ */ new Set()\n\t};\n\tconst node = await loader();\n\tif (node.universal?.load) {\n\t\t/** @param {string[]} deps */\n\t\tfunction depends(...deps) {\n\t\t\tfor (const dep of deps) {\n\t\t\t\tconst { href } = new URL(dep, url);\n\t\t\t\tuses.dependencies.add(href);\n\t\t\t}\n\t\t}\n\t\t/** @type {import('@sveltejs/kit').LoadEvent} */\n\t\tconst load_input = {\n\t\t\ttracing: {\n\t\t\t\tenabled: false,\n\t\t\t\troot: noop_span,\n\t\t\t\tcurrent: noop_span\n\t\t\t},\n\t\t\troute: new Proxy(route, { get: (target, key) => {\n\t\t\t\tif (is_tracking) uses.route = true;\n\t\t\t\treturn target[key];\n\t\t\t} }),\n\t\t\tparams: new Proxy(params, { get: (target, key) => {\n\t\t\t\tif (is_tracking) uses.params.add(key);\n\t\t\t\treturn target[key];\n\t\t\t} }),\n\t\t\tdata: server_data_node?.data ?? null,\n\t\t\turl: make_trackable(url, () => {\n\t\t\t\tif (is_tracking) uses.url = true;\n\t\t\t}, (param) => {\n\t\t\t\tif (is_tracking) uses.search_params.add(param);\n\t\t\t}, app.hash),\n\t\t\tasync fetch(resource, init) {\n\t\t\t\tif (resource instanceof Request) init = {\n\t\t\t\t\tbody: resource.method === \"GET\" || resource.method === \"HEAD\" ? void 0 : await resource.blob(),\n\t\t\t\t\tcache: resource.cache,\n\t\t\t\t\tcredentials: resource.credentials,\n\t\t\t\t\theaders: [...resource.headers].length > 0 ? resource?.headers : void 0,\n\t\t\t\t\tintegrity: resource.integrity,\n\t\t\t\t\tkeepalive: resource.keepalive,\n\t\t\t\t\tmethod: resource.method,\n\t\t\t\t\tmode: resource.mode,\n\t\t\t\t\tredirect: resource.redirect,\n\t\t\t\t\treferrer: resource.referrer,\n\t\t\t\t\treferrerPolicy: resource.referrerPolicy,\n\t\t\t\t\tsignal: resource.signal,\n\t\t\t\t\t...init\n\t\t\t\t};\n\t\t\t\tconst { resolved, promise } = resolve_fetch_url(resource, init, url);\n\t\t\t\tif (is_tracking) depends(resolved.href);\n\t\t\t\treturn promise;\n\t\t\t},\n\t\t\tsetHeaders: noop,\n\t\t\tdepends,\n\t\t\tparent() {\n\t\t\t\tif (is_tracking) uses.parent = true;\n\t\t\t\treturn parent();\n\t\t\t},\n\t\t\tuntrack(fn) {\n\t\t\t\tis_tracking = false;\n\t\t\t\ttry {\n\t\t\t\t\treturn fn();\n\t\t\t\t} finally {\n\t\t\t\t\tis_tracking = true;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tdata = await node.universal.load.call(null, load_input) ?? null;\n\t}\n\treturn {\n\t\tnode,\n\t\tloader,\n\t\tserver: server_data_node,\n\t\tuniversal: node.universal?.load ? {\n\t\t\ttype: \"data\",\n\t\t\tdata,\n\t\t\tuses\n\t\t} : null,\n\t\tdata: data ?? server_data_node?.data ?? null,\n\t\tslash: node.universal?.trailingSlash ?? server_data_node?.slash\n\t};\n}\n/**\n* @param {Request | string | URL} input\n* @param {RequestInit | undefined} init\n* @param {URL} url\n*/\nfunction resolve_fetch_url(input, init, url) {\n\tlet requested = input instanceof Request ? input.url : input;\n\tconst resolved = new URL(requested, url);\n\tif (resolved.origin === url.origin) requested = resolved.href.slice(url.origin.length);\n\treturn {\n\t\tresolved,\n\t\tpromise: started ? subsequent_fetch(requested, resolved.href, init) : initial_fetch(requested, init)\n\t};\n}\n/**\n* @param {boolean} parent_changed\n* @param {boolean} route_changed\n* @param {boolean} url_changed\n* @param {Set<string>} search_params_changed\n* @param {import('types').Uses | undefined} uses\n* @param {Record<string, string>} params\n*/\nfunction has_changed(parent_changed, route_changed, url_changed, search_params_changed, uses, params) {\n\tif (force_invalidation) return true;\n\tif (!uses) return false;\n\tif (uses.parent && parent_changed) return true;\n\tif (uses.route && route_changed) return true;\n\tif (uses.url && url_changed) return true;\n\tfor (const tracked_params of uses.search_params) if (search_params_changed.has(tracked_params)) return true;\n\tfor (const param of uses.params) if (params[param] !== current.params[param]) return true;\n\tfor (const href of uses.dependencies) if (invalidated.some((fn) => fn(new URL(href)))) return true;\n\treturn false;\n}\n/**\n* @param {import('types').ServerDataNode | import('types').ServerDataSkippedNode | null} node\n* @param {import('./types.js').DataNode | null} [previous]\n* @returns {import('./types.js').DataNode | null}\n*/\nfunction create_data_node(node, previous) {\n\tif (node?.type === \"data\") return node;\n\tif (node?.type === \"skip\") return previous ?? null;\n\treturn null;\n}\n/**\n* @param {URL | null} old_url\n* @param {URL} new_url\n*/\nfunction diff_search_params(old_url, new_url) {\n\tif (!old_url) return new Set(new_url.searchParams.keys());\n\tconst changed = new Set([...old_url.searchParams.keys(), ...new_url.searchParams.keys()]);\n\tfor (const key of changed) {\n\t\tconst old_values = old_url.searchParams.getAll(key);\n\t\tconst new_values = new_url.searchParams.getAll(key);\n\t\tif (old_values.every((value) => new_values.includes(value)) && new_values.every((value) => old_values.includes(value))) changed.delete(key);\n\t}\n\treturn changed;\n}\n/**\n* @param {Omit<import('./types.js').NavigationFinished['state'], 'branch'> & { error: App.Error }} opts\n* @returns {import('./types.js').NavigationFinished}\n*/\nfunction preload_error({ error, url, route, params }) {\n\treturn {\n\t\ttype: \"loaded\",\n\t\tstate: {\n\t\t\terror,\n\t\t\turl,\n\t\t\troute,\n\t\t\tparams,\n\t\t\tbranch: []\n\t\t},\n\t\tprops: {\n\t\t\tpage: clone_page(page),\n\t\t\tconstructors: []\n\t\t}\n\t};\n}\n/**\n* @param {import('./types.js').NavigationIntent & { preload?: {} }} intent\n* @returns {Promise<import('./types.js').NavigationResult>}\n*/\nasync function load_route({ id, invalidating, url, params, route, preload }) {\n\tif (load_cache?.id === id) {\n\t\tpreload_tokens.delete(load_cache.token);\n\t\treturn load_cache.promise;\n\t}\n\tconst { errors, layouts, leaf } = route;\n\tconst loaders = [...layouts, leaf];\n\terrors.forEach((loader) => loader?.().catch(noop));\n\tloaders.forEach((loader) => loader?.[1]().catch(noop));\n\t/** @type {import('types').ServerNodesResponse | import('types').ServerRedirectNode | null} */\n\tlet server_data = null;\n\tconst url_changed = current.url ? id !== get_page_key(current.url) : false;\n\tconst route_changed = current.route ? route.id !== current.route.id : false;\n\tconst search_params_changed = diff_search_params(current.url, url);\n\tlet parent_invalid = false;\n\t{\n\t\tconst invalid_server_nodes = loaders.map((loader, i) => {\n\t\t\tconst previous = current.branch[i];\n\t\t\tconst invalid = !!loader?.[0] && (previous?.loader !== loader[1] || has_changed(parent_invalid, route_changed, url_changed, search_params_changed, previous.server?.uses, params));\n\t\t\tif (invalid) parent_invalid = true;\n\t\t\treturn invalid;\n\t\t});\n\t\tif (invalid_server_nodes.some(Boolean)) {\n\t\t\ttry {\n\t\t\t\tserver_data = await load_data(url, invalid_server_nodes);\n\t\t\t} catch (error) {\n\t\t\t\tconst handled_error = await handle_error(error, {\n\t\t\t\t\turl,\n\t\t\t\t\tparams,\n\t\t\t\t\troute: { id }\n\t\t\t\t});\n\t\t\t\tif (preload_tokens.has(preload)) return preload_error({\n\t\t\t\t\terror: handled_error,\n\t\t\t\t\turl,\n\t\t\t\t\tparams,\n\t\t\t\t\troute\n\t\t\t\t});\n\t\t\t\treturn load_root_error_page({\n\t\t\t\t\tstatus: get_status(error),\n\t\t\t\t\terror: handled_error,\n\t\t\t\t\turl,\n\t\t\t\t\troute\n\t\t\t\t});\n\t\t\t}\n\t\t\tif (server_data.type === \"redirect\") return server_data;\n\t\t}\n\t}\n\tconst server_data_nodes = server_data?.nodes;\n\tlet parent_changed = false;\n\tconst branch_promises = loaders.map(async (loader, i) => {\n\t\tif (!loader) return;\n\t\t/** @type {import('./types.js').BranchNode | undefined} */\n\t\tconst previous = current.branch[i];\n\t\tconst server_data_node = server_data_nodes?.[i];\n\t\tif ((!server_data_node || server_data_node.type === \"skip\") && loader[1] === previous?.loader && !has_changed(parent_changed, route_changed, url_changed, search_params_changed, previous.universal?.uses, params)) return previous;\n\t\tparent_changed = true;\n\t\tif (server_data_node?.type === \"error\") throw server_data_node;\n\t\treturn load_node({\n\t\t\tloader: loader[1],\n\t\t\turl,\n\t\t\tparams,\n\t\t\troute,\n\t\t\tparent: async () => {\n\t\t\t\tconst data = {};\n\t\t\t\tfor (let j = 0; j < i; j += 1) Object.assign(data, (await branch_promises[j])?.data);\n\t\t\t\treturn data;\n\t\t\t},\n\t\t\tserver_data_node: create_data_node(server_data_node === void 0 && loader[0] ? { type: \"skip\" } : server_data_node ?? null, loader[0] ? previous?.server : void 0)\n\t\t});\n\t});\n\tfor (const p of branch_promises) p.catch(noop);\n\t/** @type {Array<import('./types.js').BranchNode | undefined>} */\n\tconst branch = [];\n\tfor (let i = 0; i < loaders.length; i += 1) if (loaders[i]) try {\n\t\tbranch.push(await branch_promises[i]);\n\t} catch (err) {\n\t\tif (err instanceof Redirect) return {\n\t\t\ttype: \"redirect\",\n\t\t\tlocation: err.location\n\t\t};\n\t\tif (preload_tokens.has(preload)) return preload_error({\n\t\t\terror: await handle_error(err, {\n\t\t\t\tparams,\n\t\t\t\turl,\n\t\t\t\troute: { id: route.id }\n\t\t\t}),\n\t\t\turl,\n\t\t\tparams,\n\t\t\troute\n\t\t});\n\t\tlet status = get_status(err);\n\t\t/** @type {App.Error} */\n\t\tlet error;\n\t\tif (server_data_nodes?.includes(err)) {\n\t\t\tstatus = err.status ?? status;\n\t\t\terror = err.error;\n\t\t} else if (err instanceof HttpError) error = err.body;\n\t\telse {\n\t\t\tif (await stores.updated.check()) {\n\t\t\t\tawait update_service_worker();\n\t\t\t\treturn await native_navigation(url);\n\t\t\t}\n\t\t\terror = await handle_error(err, {\n\t\t\t\tparams,\n\t\t\t\turl,\n\t\t\t\troute: { id: route.id }\n\t\t\t});\n\t\t}\n\t\tconst error_load = await load_nearest_error_page(i, branch, errors);\n\t\tif (error_load) return get_navigation_result_from_branch({\n\t\t\turl,\n\t\t\tparams,\n\t\t\tbranch: branch.slice(0, error_load.idx).concat(error_load.node),\n\t\t\terrors,\n\t\t\tstatus,\n\t\t\terror,\n\t\t\troute\n\t\t});\n\t\telse return await server_fallback(url, { id: route.id }, error, status);\n\t}\n\telse branch.push(void 0);\n\treturn get_navigation_result_from_branch({\n\t\turl,\n\t\tparams,\n\t\tbranch,\n\t\terrors,\n\t\tstatus: 200,\n\t\terror: null,\n\t\troute,\n\t\tform: invalidating ? void 0 : null\n\t});\n}\n/**\n* @param {number} i Start index to backtrack from\n* @param {Array<import('./types.js').BranchNode | undefined>} branch Branch to backtrack\n* @param {Array<import('types').CSRPageNodeLoader | undefined>} errors All error pages for this branch\n* @returns {Promise<{idx: number; node: import('./types.js').BranchNode} | undefined>}\n*/\nasync function load_nearest_error_page(i, branch, errors) {\n\twhile (i--) if (errors[i]) {\n\t\tlet j = i;\n\t\twhile (!branch[j]) j -= 1;\n\t\ttry {\n\t\t\treturn {\n\t\t\t\tidx: j + 1,\n\t\t\t\tnode: {\n\t\t\t\t\tnode: await errors[i](),\n\t\t\t\t\tloader: errors[i],\n\t\t\t\t\tdata: {},\n\t\t\t\t\tserver: null,\n\t\t\t\t\tuniversal: null\n\t\t\t\t}\n\t\t\t};\n\t\t} catch {\n\t\t\tcontinue;\n\t\t}\n\t}\n}\n/**\n* @param {{\n* status: number;\n* error: App.Error;\n* url: URL;\n* route: { id: string | null }\n* }} opts\n* @returns {Promise<import('./types.js').NavigationFinished>}\n*/\nasync function load_root_error_page({ status, error, url, route }) {\n\t/** @type {Record<string, string>} */\n\tconst params = {};\n\t/** @type {import('types').ServerDataNode | null} */\n\tlet server_data_node = null;\n\tif (app.server_loads[0] === 0) try {\n\t\tconst server_data = await load_data(url, [true]);\n\t\tif (server_data.type !== \"data\" || server_data.nodes[0] && server_data.nodes[0].type !== \"data\") throw 0;\n\t\tserver_data_node = server_data.nodes[0] ?? null;\n\t} catch {\n\t\tif (url.origin !== origin || url.pathname !== location.pathname || hydrated) await native_navigation(url);\n\t}\n\ttry {\n\t\treturn get_navigation_result_from_branch({\n\t\t\turl,\n\t\t\tparams,\n\t\t\tbranch: [await load_node({\n\t\t\t\tloader: default_layout_loader,\n\t\t\t\turl,\n\t\t\t\tparams,\n\t\t\t\troute,\n\t\t\t\tparent: () => Promise.resolve({}),\n\t\t\t\tserver_data_node: create_data_node(server_data_node)\n\t\t\t}), {\n\t\t\t\tnode: await default_error_loader(),\n\t\t\t\tloader: default_error_loader,\n\t\t\t\tuniversal: null,\n\t\t\t\tserver: null,\n\t\t\t\tdata: null\n\t\t\t}],\n\t\t\tstatus,\n\t\t\terror,\n\t\t\terrors: [],\n\t\t\troute: null\n\t\t});\n\t} catch (error) {\n\t\tif (error instanceof Redirect) return _goto(new URL(error.location, location.href), {}, 0);\n\t\tthrow error;\n\t}\n}\n/**\n* Resolve the relative rerouted URL for a client-side navigation\n* @param {URL} url\n* @returns {Promise<URL | undefined>}\n*/\nasync function get_rerouted_url(url) {\n\tconst href = url.href;\n\tif (reroute_cache.has(href)) return reroute_cache.get(href);\n\tlet rerouted;\n\ttry {\n\t\tconst promise = (async () => {\n\t\t\tlet rerouted = await app.hooks.reroute({\n\t\t\t\turl: new URL(url),\n\t\t\t\tfetch: async (input, init) => {\n\t\t\t\t\treturn resolve_fetch_url(input, init, url).promise;\n\t\t\t\t}\n\t\t\t}) ?? url;\n\t\t\tif (typeof rerouted === \"string\") {\n\t\t\t\tconst tmp = new URL(url);\n\t\t\t\tif (app.hash) tmp.hash = rerouted;\n\t\t\t\telse tmp.pathname = rerouted;\n\t\t\t\trerouted = tmp;\n\t\t\t}\n\t\t\treturn rerouted;\n\t\t})();\n\t\treroute_cache.set(href, promise);\n\t\trerouted = await promise;\n\t} catch (e) {\n\t\treroute_cache.delete(href);\n\t\treturn;\n\t}\n\treturn rerouted;\n}\n/**\n* Resolve the full info (which route, params, etc.) for a client-side navigation from the URL,\n* taking the reroute hook into account. If this isn't a client-side-navigation (or the URL is undefined),\n* returns undefined.\n* @param {URL | undefined} url\n* @param {boolean} invalidating\n* @returns {Promise<import('./types.js').NavigationIntent | undefined>}\n*/\nasync function get_navigation_intent(url, invalidating) {\n\tif (!url) return;\n\tif (is_external_url(url, base, app.hash)) return;\n\t{\n\t\tconst rerouted = await get_rerouted_url(url);\n\t\tif (!rerouted) return;\n\t\tconst path = get_url_path(rerouted);\n\t\tfor (const route of routes) {\n\t\t\tconst params = route.exec(path);\n\t\t\tif (params) return {\n\t\t\t\tid: get_page_key(url),\n\t\t\t\tinvalidating,\n\t\t\t\troute,\n\t\t\t\tparams: decode_params(params),\n\t\t\t\turl\n\t\t\t};\n\t\t}\n\t}\n}\n/** @param {URL} url */\nfunction get_url_path(url) {\n\treturn decode_pathname(app.hash ? url.hash.replace(/^#/, \"\").replace(/[?#].+/, \"\") : url.pathname.slice(base.length)) || \"/\";\n}\n/** @param {URL} url */\nfunction get_page_key(url) {\n\treturn (app.hash ? url.hash.replace(/^#/, \"\") : url.pathname) + url.search;\n}\n/**\n* @param {{\n* url: URL;\n* type: import('@sveltejs/kit').Navigation[\"type\"];\n* intent?: import('./types.js').NavigationIntent;\n* delta?: number;\n* event?: PopStateEvent | MouseEvent;\n* scroll?: { x: number, y: number };\n* }} opts\n*/\nfunction _before_navigate({ url, type, intent, delta, event, scroll }) {\n\tlet should_block = false;\n\tconst nav = create_navigation(current, intent, url, type, scroll ?? null);\n\tif (delta !== void 0) nav.navigation.delta = delta;\n\tif (event !== void 0) nav.navigation.event = event;\n\tconst cancellable = {\n\t\t...nav.navigation,\n\t\tcancel: () => {\n\t\t\tshould_block = true;\n\t\t\tnav.reject(/* @__PURE__ */ new Error(\"navigation cancelled\"));\n\t\t}\n\t};\n\tif (!is_navigating) before_navigate_callbacks.forEach((fn) => fn(cancellable));\n\treturn should_block ? null : nav;\n}\n/**\n* @param {{\n* type: import('@sveltejs/kit').NavigationType;\n* url: URL;\n* popped?: {\n* state: Record<string, any>;\n* scroll: { x: number, y: number };\n* delta: number;\n* };\n* keepfocus?: boolean;\n* noscroll?: boolean;\n* replace_state?: boolean;\n* state?: Record<string, any>;\n* redirect_count?: number;\n* nav_token?: {};\n* accept?: () => void;\n* block?: () => void;\n* event?: Event\n* }} opts\n*/\nasync function navigate({ type, url, popped, keepfocus, noscroll, replace_state, state = {}, redirect_count = 0, nav_token = {}, accept = noop, block = noop, event }) {\n\tconst prev_token = token;\n\ttoken = nav_token;\n\tconst intent = await get_navigation_intent(url, false);\n\tconst nav = type === \"enter\" ? create_navigation(current, intent, url, type) : _before_navigate({\n\t\turl,\n\t\ttype,\n\t\tdelta: popped?.delta,\n\t\tintent,\n\t\tscroll: popped?.scroll,\n\t\tevent\n\t});\n\tif (!nav) {\n\t\tblock();\n\t\tif (token === nav_token) token = prev_token;\n\t\treturn;\n\t}\n\tconst previous_history_index = current_history_index;\n\tconst previous_navigation_index = current_navigation_index;\n\taccept();\n\tis_navigating = true;\n\tif (started && nav.navigation.type !== \"enter\") stores.navigating.set(navigating.current = nav.navigation);\n\tlet navigation_result = intent && await load_route(intent);\n\tif (!navigation_result) if (is_external_url(url, base, app.hash)) return await native_navigation(url, replace_state);\n\telse navigation_result = await server_fallback(url, { id: null }, await handle_error(new SvelteKitError(404, \"Not Found\", `Not found: ${url.pathname}`), {\n\t\turl,\n\t\tparams: {},\n\t\troute: { id: null }\n\t}), 404, replace_state);\n\turl = intent?.url || url;\n\tif (token !== nav_token) {\n\t\tnav.reject(/* @__PURE__ */ new Error(\"navigation aborted\"));\n\t\treturn false;\n\t}\n\tif (navigation_result.type === \"redirect\") {\n\t\tif (redirect_count < 20) {\n\t\t\tawait navigate({\n\t\t\t\ttype,\n\t\t\t\turl: new URL(navigation_result.location, url),\n\t\t\t\tpopped,\n\t\t\t\tkeepfocus,\n\t\t\t\tnoscroll,\n\t\t\t\treplace_state,\n\t\t\t\tstate,\n\t\t\t\tredirect_count: redirect_count + 1,\n\t\t\t\tnav_token\n\t\t\t});\n\t\t\tnav.fulfil(void 0);\n\t\t\treturn;\n\t\t}\n\t\tnavigation_result = await load_root_error_page({\n\t\t\tstatus: 500,\n\t\t\terror: await handle_error(/* @__PURE__ */ new Error(\"Redirect loop\"), {\n\t\t\t\turl,\n\t\t\t\tparams: {},\n\t\t\t\troute: { id: null }\n\t\t\t}),\n\t\t\turl,\n\t\t\troute: { id: null }\n\t\t});\n\t} else if (navigation_result.props.page.status >= 400) {\n\t\tif (await stores.updated.check()) {\n\t\t\tawait update_service_worker();\n\t\t\tawait native_navigation(url, replace_state);\n\t\t}\n\t}\n\treset_invalidation();\n\tupdate_scroll_positions(previous_history_index);\n\tcapture_snapshot(previous_navigation_index);\n\tif (navigation_result.props.page.url.pathname !== url.pathname) url.pathname = navigation_result.props.page.url.pathname;\n\tstate = popped ? popped.state : state;\n\tif (!popped) {\n\t\tconst change = replace_state ? 0 : 1;\n\t\tconst entry = {\n\t\t\t[HISTORY_INDEX]: current_history_index += change,\n\t\t\t[NAVIGATION_INDEX]: current_navigation_index += change,\n\t\t\t[STATES_KEY]: state\n\t\t};\n\t\t(replace_state ? history.replaceState : history.pushState).call(history, entry, \"\", url);\n\t\tif (!replace_state) clear_onward_history(current_history_index, current_navigation_index);\n\t}\n\tconst load_cache_fork = intent && load_cache?.id === intent.id ? load_cache.fork : null;\n\tif (load_cache?.fork && !load_cache_fork) discard_load_cache();\n\telse {\n\t\tload_cache = null;\n\t\tcurrent_a = {\n\t\t\telement: void 0,\n\t\t\thref: void 0\n\t\t};\n\t}\n\tnavigation_result.props.page.state = state;\n\t/**\n\t* @type {Promise<void> | undefined}\n\t*/\n\tlet commit_promise;\n\tif (started) {\n\t\tconst after_navigate = (await Promise.all(Array.from(on_navigate_callbacks, (fn) => fn(nav.navigation)))).filter(\n\t\t\t/** @returns {value is () => void} */\n\t\t\t(value) => typeof value === \"function\"\n\t\t);\n\t\tif (after_navigate.length > 0) {\n\t\t\tfunction cleanup() {\n\t\t\t\tafter_navigate.forEach((fn) => {\n\t\t\t\t\tafter_navigate_callbacks.delete(fn);\n\t\t\t\t});\n\t\t\t}\n\t\t\tafter_navigate.push(cleanup);\n\t\t\tafter_navigate.forEach((fn) => {\n\t\t\t\tafter_navigate_callbacks.add(fn);\n\t\t\t});\n\t\t}\n\t\tconst target = nav.navigation.to;\n\t\tcurrent = {\n\t\t\t...navigation_result.state,\n\t\t\tnav: {\n\t\t\t\tparams: target.params,\n\t\t\t\troute: target.route,\n\t\t\t\turl: target.url\n\t\t\t}\n\t\t};\n\t\tif (navigation_result.props.page) navigation_result.props.page.url = url;\n\t\tconst fork = load_cache_fork && await load_cache_fork;\n\t\tif (fork) commit_promise = fork.commit();\n\t\telse {\n\t\t\trendering_error = null;\n\t\t\troot.$set(navigation_result.props);\n\t\t\tif (rendering_error) Object.assign(navigation_result.props.page, rendering_error);\n\t\t\tupdate(navigation_result.props.page);\n\t\t\tcommit_promise = settled?.();\n\t\t}\n\t} else await initialize(navigation_result, target, false);\n\tconst { activeElement } = document;\n\tawait commit_promise;\n\tawait tick$1();\n\tawait tick$1();\n\tif (token !== nav_token) {\n\t\tnav.reject(/* @__PURE__ */ new Error(\"navigation aborted\"));\n\t\treturn false;\n\t}\n\tif (navigation_result.props.page && rendering_error) Object.assign(navigation_result.props.page, rendering_error);\n\t/** @type {Element | null | ''} */\n\tlet deep_linked = null;\n\tif (autoscroll) {\n\t\tconst scroll = popped ? popped.scroll : noscroll ? scroll_state() : null;\n\t\tif (scroll) scrollTo(scroll.x, scroll.y);\n\t\telse if (deep_linked = url.hash && document.getElementById(get_id(url))) deep_linked.scrollIntoView();\n\t\telse scrollTo(0, 0);\n\t}\n\tconst changed_focus = document.activeElement !== activeElement && document.activeElement !== document.body;\n\tif (!keepfocus && !changed_focus) reset_focus(url, !deep_linked);\n\tautoscroll = true;\n\tis_navigating = false;\n\tif (type === \"popstate\") restore_snapshot(current_navigation_index);\n\tnav.fulfil(void 0);\n\tif (nav.navigation.to) nav.navigation.to.scroll = scroll_state();\n\tafter_navigate_callbacks.forEach((fn) => fn(nav.navigation));\n\tstores.navigating.set(navigating.current = null);\n}\n/**\n* Does a full page reload if it wouldn't result in an endless loop in the SPA case\n* @param {URL} url\n* @param {{ id: string | null }} route\n* @param {App.Error} error\n* @param {number} status\n* @param {boolean} [replace_state]\n* @returns {Promise<import('./types.js').NavigationFinished>}\n*/\nasync function server_fallback(url, route, error, status, replace_state) {\n\tif (url.origin === origin && url.pathname === location.pathname && !hydrated) return await load_root_error_page({\n\t\tstatus,\n\t\terror,\n\t\turl,\n\t\troute\n\t});\n\treturn await native_navigation(url, replace_state);\n}\n/** @typedef {(typeof PRELOAD_PRIORITIES)['hover'] | (typeof PRELOAD_PRIORITIES)['tap']} PreloadDataPriority */\n/**\n* The anchor element whose href is being preloaded. It is reset after navigation\n* or changes when a different anchor element is being preloaded.\n* @type {{ element: Element | SVGAElement | undefined; href: string | SVGAnimatedString | undefined }}\n*/\nvar current_a = {\n\telement: void 0,\n\thref: void 0\n};\n/**\n* @param {unknown} error\n* @param {import('@sveltejs/kit').NavigationEvent} event\n* @returns {import('types').MaybePromise<App.Error>}\n*/\nfunction handle_error(error, event) {\n\tif (error instanceof HttpError) return error.body;\n\tconst status = get_status(error);\n\tconst message = get_message(error);\n\treturn app.hooks.handleError({\n\t\terror,\n\t\tevent,\n\t\tstatus,\n\t\tmessage\n\t}) ?? { message };\n}\n/**\n* @template {Function} T\n* @param {Set<T>} callbacks\n* @param {T} callback\n*/\nfunction add_navigation_callback(callbacks, callback) {\n\tonMount(() => {\n\t\tcallbacks.add(callback);\n\t\treturn () => {\n\t\t\tcallbacks.delete(callback);\n\t\t};\n\t});\n}\n/**\n* A lifecycle function that runs the supplied `callback` when the current component mounts, and also whenever we navigate to a URL.\n*\n* `afterNavigate` must be called during a component initialization. It remains active as long as the component is mounted.\n* @param {(navigation: import('@sveltejs/kit').AfterNavigate) => void} callback\n* @returns {void}\n*/\nfunction afterNavigate(callback) {\n\tadd_navigation_callback(after_navigate_callbacks, callback);\n}\n/**\n* A navigation interceptor that triggers before we navigate to a URL, whether by clicking a link, calling `goto(...)`, or using the browser back/forward controls.\n*\n* Calling `cancel()` will prevent the navigation from completing. If `navigation.type === 'leave'` — meaning the user is navigating away from the app (or closing the tab) — calling `cancel` will trigger the native browser unload confirmation dialog. In this case, the navigation may or may not be cancelled depending on the user's response.\n*\n* When a navigation isn't to a SvelteKit-owned route (and therefore controlled by SvelteKit's client-side router), `navigation.to.route.id` will be `null`.\n*\n* If the navigation will (if not cancelled) cause the document to unload — in other words `'leave'` navigations and `'link'` navigations where `navigation.to.route === null` — `navigation.willUnload` is `true`.\n*\n* `beforeNavigate` must be called during a component initialization. It remains active as long as the component is mounted.\n* @param {(navigation: import('@sveltejs/kit').BeforeNavigate) => void} callback\n* @returns {void}\n*/\nfunction beforeNavigate(callback) {\n\tadd_navigation_callback(before_navigate_callbacks, callback);\n}\n/**\n* Allows you to navigate programmatically to a given route, with options such as keeping the current element focused.\n* Returns a Promise that resolves when SvelteKit navigates (or fails to navigate, in which case the promise rejects) to the specified `url`.\n*\n* For external URLs, use `window.location = url` instead of calling `goto(url)`.\n*\n* @param {string | URL} url Where to navigate to. Note that if you've set [`config.kit.paths.base`](https://svelte.dev/docs/kit/configuration#paths) and the URL is root-relative, you need to prepend the base path if you want to navigate within the app.\n* @param {Object} [opts] Options related to the navigation\n* @param {boolean} [opts.replaceState] If `true`, will replace the current `history` entry rather than creating a new one with `pushState`\n* @param {boolean} [opts.noScroll] If `true`, the browser will maintain its scroll position rather than scrolling to the top of the page after navigation\n* @param {boolean} [opts.keepFocus] If `true`, the currently focused element will retain focus after navigation. Otherwise, focus will be reset to the body\n* @param {boolean} [opts.invalidateAll] If `true`, all `load` functions of the page will be rerun. See https://svelte.dev/docs/kit/load#rerunning-load-functions for more info on invalidation.\n* @param {Array<string | URL | ((url: URL) => boolean)>} [opts.invalidate] Causes any load functions to re-run if they depend on one of the urls\n* @param {App.PageState} [opts.state] An optional object that will be available as `page.state`\n* @returns {Promise<void>}\n*/\nfunction goto(url, opts = {}) {\n\tthrow new Error(\"Cannot call goto(...) on the server\");\n}\n/**\n* @param {string | URL | ((url: URL) => boolean)} resource The invalidated URL\n*/\nfunction push_invalidated(resource) {\n\tif (typeof resource === \"function\") invalidated.push(resource);\n\telse {\n\t\tconst { href } = new URL(resource, location.href);\n\t\tinvalidated.push((url) => url.href === href);\n\t}\n}\n/**\n* Causes all `load` and `query` functions belonging to the currently active page to re-run. Returns a `Promise` that resolves when the page is subsequently updated.\n* @returns {Promise<void>}\n*/\nfunction invalidateAll() {\n\tthrow new Error(\"Cannot call invalidateAll() on the server\");\n}\n/**\n* This action updates the `form` property of the current page with the given data and updates `page.status`.\n* In case of an error, it redirects to the nearest error page.\n* @template {Record<string, unknown> | undefined} Success\n* @template {Record<string, unknown> | undefined} Failure\n* @param {import('@sveltejs/kit').ActionResult<Success, Failure>} result\n* @returns {Promise<void>}\n*/\nasync function applyAction(result) {\n\tthrow new Error(\"Cannot call applyAction(...) on the server\");\n}\n/**\n* @param {URL} url\n* @param {boolean[]} invalid\n* @returns {Promise<import('types').ServerNodesResponse | import('types').ServerRedirectNode>}\n*/\nasync function load_data(url, invalid) {\n\tconst data_url = new URL(url);\n\tdata_url.pathname = add_data_suffix(url.pathname);\n\tif (url.pathname.endsWith(\"/\")) data_url.searchParams.append(TRAILING_SLASH_PARAM, \"1\");\n\tdata_url.searchParams.append(INVALIDATED_PARAM, invalid.map((i) => i ? \"1\" : \"0\").join(\"\"));\n\tconst res = await (0, window.fetch)(data_url.href, {});\n\tif (!res.ok) {\n\t\t/** @type {string | undefined} */\n\t\tlet message;\n\t\tif (res.headers.get(\"content-type\")?.includes(\"application/json\")) message = await res.json();\n\t\telse if (res.status === 404) message = \"Not Found\";\n\t\telse if (res.status === 500) message = \"Internal Error\";\n\t\tthrow new HttpError(res.status, message);\n\t}\n\treturn new Promise((resolve, reject) => {\n\t\tprocess_stream(resolve, res).catch(reject);\n\t});\n}\n/**\n* @param {(value: ServerNodesResponse | ServerRedirectNode) => void} resolve\n* @param {Response} res\n* @returns {Promise<void>}\n*/\nasync function process_stream(resolve, res) {\n\tconst reader = res.body.getReader();\n\t/**\n\t* Map of deferred promises that will be resolved by a subsequent chunk of data\n\t* @type {Map<string, import('types').Deferred>}\n\t*/\n\tconst deferreds = /* @__PURE__ */ new Map();\n\t/**\n\t* @param {any} data\n\t*/\n\tfunction deserialize(data) {\n\t\treturn unflatten(data, {\n\t\t\t...app.decoders,\n\t\t\tPromise: (id) => {\n\t\t\t\treturn new Promise((fulfil, reject) => {\n\t\t\t\t\tdeferreds.set(id, {\n\t\t\t\t\t\tfulfil,\n\t\t\t\t\t\treject\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\tfor await (const node of read_ndjson(reader)) {\n\t\tif (node.type === \"redirect\") return resolve(node);\n\t\tif (node.type === \"data\") {\n\t\t\tnode.nodes?.forEach((node) => {\n\t\t\t\tif (node?.type === \"data\") {\n\t\t\t\t\tnode.uses = deserialize_uses(node.uses);\n\t\t\t\t\tnode.data = deserialize(node.data);\n\t\t\t\t}\n\t\t\t});\n\t\t\tresolve(node);\n\t\t} else if (node.type === \"chunk\") {\n\t\t\tconst { id, data, error } = node;\n\t\t\tconst deferred = deferreds.get(id);\n\t\t\tdeferreds.delete(id);\n\t\t\tif (error) deferred.reject(deserialize(error));\n\t\t\telse deferred.fulfil(deserialize(data));\n\t\t}\n\t}\n}\n/**\n* @param {any} uses\n* @return {import('types').Uses}\n*/\nfunction deserialize_uses(uses) {\n\treturn {\n\t\tdependencies: new Set(uses?.dependencies ?? []),\n\t\tparams: new Set(uses?.params ?? []),\n\t\tparent: !!uses?.parent,\n\t\troute: !!uses?.route,\n\t\turl: !!uses?.url,\n\t\tsearch_params: new Set(uses?.search_params ?? [])\n\t};\n}\n/**\n* @param {URL} url\n* @param {boolean} [scroll]\n*/\nfunction reset_focus(url, scroll = true) {\n\tconst autofocus = document.querySelector(\"[autofocus]\");\n\tif (autofocus) autofocus.focus();\n\telse {\n\t\tconst id = get_id(url);\n\t\tif (id && document.getElementById(id)) {\n\t\t\tconst { x, y } = scroll_state();\n\t\t\tsetTimeout(() => {\n\t\t\t\tconst history_state = history.state;\n\t\t\t\tlocation.replace(new URL(`#${id}`, location.href));\n\t\t\t\thistory.replaceState(history_state, \"\", url);\n\t\t\t\tif (scroll) scrollTo(x, y);\n\t\t\t});\n\t\t} else {\n\t\t\tconst root = document.body;\n\t\t\tconst tabindex = root.getAttribute(\"tabindex\");\n\t\t\troot.tabIndex = -1;\n\t\t\troot.focus({\n\t\t\t\tpreventScroll: true,\n\t\t\t\tfocusVisible: false\n\t\t\t});\n\t\t\tif (tabindex !== null) root.setAttribute(\"tabindex\", tabindex);\n\t\t\telse root.removeAttribute(\"tabindex\");\n\t\t}\n\t\tconst selection = getSelection();\n\t\tif (selection && selection.type !== \"None\") {\n\t\t\t/** @type {Range[]} */\n\t\t\tconst ranges = [];\n\t\t\tfor (let i = 0; i < selection.rangeCount; i += 1) ranges.push(selection.getRangeAt(i));\n\t\t\tsetTimeout(() => {\n\t\t\t\tif (selection.rangeCount !== ranges.length) return;\n\t\t\t\tfor (let i = 0; i < selection.rangeCount; i += 1) {\n\t\t\t\t\tconst a = ranges[i];\n\t\t\t\t\tconst b = selection.getRangeAt(i);\n\t\t\t\t\tif (a.commonAncestorContainer !== b.commonAncestorContainer || a.startContainer !== b.startContainer || a.endContainer !== b.endContainer || a.startOffset !== b.startOffset || a.endOffset !== b.endOffset) return;\n\t\t\t\t}\n\t\t\t\tselection.removeAllRanges();\n\t\t\t});\n\t\t}\n\t}\n}\n/**\n* @template {import('@sveltejs/kit').NavigationType} T\n* @param {import('./types.js').NavigationState} current\n* @param {import('./types.js').NavigationIntent | undefined} intent\n* @param {URL | null} url\n* @param {T} type\n* @param {{ x: number, y: number } | null} [target_scroll] The scroll position for the target (for popstate navigations)\n*/\nfunction create_navigation(current, intent, url, type, target_scroll = null) {\n\t/** @type {(value: any) => void} */\n\tlet fulfil;\n\t/** @type {(error: any) => void} */\n\tlet reject;\n\tconst complete = new Promise((f, r) => {\n\t\tfulfil = f;\n\t\treject = r;\n\t});\n\tcomplete.catch(noop);\n\treturn {\n\t\tnavigation: {\n\t\t\tfrom: {\n\t\t\t\tparams: current.params,\n\t\t\t\troute: { id: current.route?.id ?? null },\n\t\t\t\turl: current.url,\n\t\t\t\tscroll: scroll_state()\n\t\t\t},\n\t\t\tto: url && {\n\t\t\t\tparams: intent?.params ?? null,\n\t\t\t\troute: { id: intent?.route?.id ?? null },\n\t\t\t\turl,\n\t\t\t\tscroll: target_scroll\n\t\t\t},\n\t\t\twillUnload: !intent,\n\t\t\ttype,\n\t\t\tcomplete\n\t\t},\n\t\tfulfil,\n\t\treject\n\t};\n}\n/**\n* TODO: remove this in 3.0 when the page store is also removed\n*\n* We need to assign a new page object so that subscribers are correctly notified.\n* However, spreading `{ ...page }` returns an empty object so we manually\n* assign to each property instead.\n*\n* @param {import('@sveltejs/kit').Page} page\n*/\nfunction clone_page(page) {\n\treturn {\n\t\tdata: page.data,\n\t\terror: page.error,\n\t\tform: page.form,\n\t\tparams: page.params,\n\t\troute: page.route,\n\t\tstate: page.state,\n\t\tstatus: page.status,\n\t\turl: page.url\n\t};\n}\n/**\n* @param {URL} url\n* @returns {string}\n*/\nfunction get_id(url) {\n\tlet id;\n\tif (app.hash) {\n\t\tconst [, , second] = url.hash.split(\"#\", 3);\n\t\tid = second ?? \"\";\n\t} else id = url.hash.slice(1);\n\treturn decodeURIComponent(id);\n}\n//#endregion\nexport { goto as a, navigating as c, resolve as d, beforeNavigate as i, page as l, app as n, invalidateAll as o, applyAction as r, stores as s, afterNavigate as t, updated as u };\n"],"mappings":";;;;AASA,SAAS,QAAQ,IAAI,QAAQ;CAC5B,IAAI,CAAC,GAAG,WAAW,GAAG,GAAG,MAAM,IAAI,MAAM,8EAA8E,GAAG,qGAAqG;CAC/N,MAAM,WAAW,cAAc,IAAI,MAAM;CACzC;EACC,MAAM,QAAQ,sBAAsB;EACpC,IAAI,SAAS,CAAC,MAAM,MAAM,cAAc,UAAU,QAAQ,MAAM,MAAM,IAAI,SAAS,MAAM,aAAa,MAAM,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,KAAK,GAAG,KAAK,OAAO;CACvK;CACA,OAAO,OAAO;AACf;AAIA,IAAI,qBAAqB;CACxB,KAAK;CACL,OAAO;CACP,UAAU;CACV,OAAO;CACP,KAAK;CACL,OAAO;AACR;CAoBC,EAAE,GAAG,mBAAmB,IAAI,mBAAmB;;AAEhD,SAAS,iBAAiB,OAAO;CAChC,MAAM,QAAQ,SAAS,KAAK;CAC5B,IAAI,QAAQ;CACZ,SAAS,SAAS;EACjB,QAAQ;EACR,MAAM,QAAQ,QAAQ,GAAG;CAC1B;;CAEA,SAAS,IAAI,WAAW;EACvB,QAAQ;EACR,MAAM,IAAI,SAAS;CACpB;;CAEA,SAAS,UAAU,KAAK;;EAEvB,IAAI;EACJ,OAAO,MAAM,WAAW,cAAc;GACrC,IAAI,cAAc,KAAK,KAAK,SAAS,cAAc,WAAW,IAAI,YAAY,SAAS;EACxF,CAAC;CACF;CACA,OAAO;EACN;EACA;EACA;CACD;AACD;AACA,IAAI,mBAAmB,EAAE,GAAGA,OAAK;AACjC,SAAS,uBAAuB;CAC/B,MAAM,EAAE,KAAK,cAAc,SAAS,KAAK;CACzC,OAAO;EACN;EACA,OAAO,YAAY;CACpB;AACD;AAmBA,IAAI;AACJ,IAAI,YAAYC,KAAO,SAAS,CAAC,CAAC,SAAS,IAAI,KAAK,wBAAwB,KAAKA,KAAO,SAAS,CAAC;AAClG,IAAI,kBAAkB;AACtB,IAAI,WAAW;CACd,AAQM,IAAI,IAAI,eAAe;CAG7B,UAAU,EAAE,SAAS,MAAM;AAC5B,OAAO;CACN,AAAO,IAAI,MAAM,KAAK;EACrB,OAAO,CAAC;EACR,OAAO;EACP,QAAQ;EACR,SAAS,CAAC;EACV,QAAQ,EAAE,IAAI,KAAK;EACnB,QAAQ,CAAC;EACT,SAAS;EACT,MAAM,IAAI,IAAI,eAAe;CAC9B,EAAE;CACF,AAAa,IAAI,MAAM,WAAW;EACjC,UAAU;CACX,EAAE;CACF,UAAU,IAAI,MAAM,QAAQ;EAC3B,UAAU;CACX,EAAE;CACF,iBAAiB,UAAU,QAAQ,UAAU;AAC9C;;;;;AAsHA,IAAI,EAAE,SAAS,SAAS;AAmBxB,IAAI,SAAS;CACZ,KAAqB,iCAAiB,CAAC,CAAC;CACxC,MAAsB,iCAAiB,CAAC,CAAC;CACzC,YAA4B,yBAAS,IAAI;CACzC,SAAyB,qCAAqB;AAC/C;;AA2FA,IAAI,2CAA2C,IAAI,IAAI;;;;;;AAi5BvD,SAAS,wBAAwB,WAAW,UAAU;CACrD,cAAc;EACb,UAAU,IAAI,QAAQ;EACtB,aAAa;GACZ,UAAU,OAAO,QAAQ;EAC1B;CACD,CAAC;AACF;;;;;;;;AAQA,SAAS,cAAc,UAAU;CAChC,wBAAwB,0BAA0B,QAAQ;AAC3D;;;;;;;;;;;;;;;;;AAiCA,SAAS,KAAK,KAAK,OAAO,CAAC,GAAG;CAC7B,MAAM,IAAI,MAAM,qCAAqC;AACtD;;;;;AAeA,SAAS,gBAAgB;CACxB,MAAM,IAAI,MAAM,2CAA2C;AAC5D;;;;;;;;;AASA,eAAe,YAAY,QAAQ;CAClC,MAAM,IAAI,MAAM,4CAA4C;AAC7D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region .svelte-kit/adapter-bun/chunks/decorate.js
|
|
2
|
+
function __decorate(decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { __decorate as t };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=decorate-CQ_JIwqD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decorate-CQ_JIwqD.js","names":[],"sources":["../../../.svelte-kit/adapter-bun/chunks/decorate.js"],"sourcesContent":["//#region \\0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js\nfunction __decorate(decorators, target, key, desc) {\n\tvar c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n\tif (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n\telse for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n\treturn c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n//#endregion\nexport { __decorate as t };\n"],"mappings":";AACA,SAAS,WAAW,YAAY,QAAQ,KAAK,MAAM;CAClD,IAAI,IAAI,UAAU,QAAQ,IAAI,IAAI,IAAI,SAAS,SAAS,OAAO,OAAO,OAAO,yBAAyB,QAAQ,GAAG,IAAI,MAAM;CAC3H,IAAI,OAAO,YAAY,YAAY,OAAO,QAAQ,aAAa,YAAY,IAAI,QAAQ,SAAS,YAAY,QAAQ,KAAK,IAAI;MACxH,KAAK,IAAI,IAAI,WAAW,SAAS,GAAG,KAAK,GAAG,KAAK,IAAI,IAAI,WAAW,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC,IAAI,IAAI,IAAI,EAAE,QAAQ,KAAK,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM;CAChJ,OAAO,IAAI,KAAK,KAAK,OAAO,eAAe,QAAQ,KAAK,CAAC,GAAG;AAC7D"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Ct as clsx, D as ensure_array_like, M as get$1$1, N as getAllContexts, P as getContext, R as hasContext, St as writable, X as mount, a as ATTACHMENT_KEY, ct as setContext, dt as spread_props, g as bind_props, gt as tick, h as attributes, k as escape_html, ot as run, r as on, tt as props_id, w as derived, y as clsx$1, yt as unmount } from "./events-
|
|
2
|
-
import { G as noop$1, J as parse } from "./
|
|
1
|
+
import { Ct as clsx, D as ensure_array_like, M as get$1$1, N as getAllContexts, P as getContext, R as hasContext, St as writable, X as mount, a as ATTACHMENT_KEY, ct as setContext, dt as spread_props, g as bind_props, gt as tick, h as attributes, k as escape_html, ot as run, r as on, tt as props_id, w as derived, y as clsx$1, yt as unmount } from "./events-Bhh2w-5S.js";
|
|
2
|
+
import { G as noop$1, J as parse } from "./internal2-CeV_cIh4.js";
|
|
3
3
|
import { t as app } from "./app-DUeJj5RD.js";
|
|
4
4
|
import { n as SESSION_PROJECT_HEADER, t as Exception } from "./const-Dy5RfQqP.js";
|
|
5
5
|
import { r as formatFrom, t as HttpClient } from "./format-DGOlJxF5.js";
|
|
6
|
-
import { a as resolve, i as invalidateAll, n as applyAction, r as goto } from "./client-
|
|
7
|
-
import { A as resolveQueryBoolean, I as timeUntilStale, L as timeoutManager, N as shallowEqualObjects, O as pendingThenable, R as toast, T as notifyManager, _ as getIsRestoringContext, c as SvelteMap, f as createSubscriber, h as focusManager, j as resolveStaleTime, k as replaceData, l as SvelteSet, m as fetchState, n as Loader_circle, p as environmentManager, s as Subscribable, t as Icon, v as getQueryClientContext, w as noop$2, x as isValidTimeout } from "./loader-circle-
|
|
6
|
+
import { a as resolve, i as invalidateAll, n as applyAction, r as goto } from "./client-BkmWBFaS.js";
|
|
7
|
+
import { A as resolveQueryBoolean, I as timeUntilStale, L as timeoutManager, N as shallowEqualObjects, O as pendingThenable, R as toast, T as notifyManager, _ as getIsRestoringContext, c as SvelteMap, f as createSubscriber, h as focusManager, j as resolveStaleTime, k as replaceData, l as SvelteSet, m as fetchState, n as Loader_circle, p as environmentManager, s as Subscribable, t as Icon, v as getQueryClientContext, w as noop$2, x as isValidTimeout } from "./loader-circle-CFNm9vip.js";
|
|
8
8
|
//#region node_modules/.pnpm/tailwind-merge@3.6.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
9
9
|
/**
|
|
10
10
|
* Concatenates two arrays faster than the array spread operator.
|
|
@@ -4665,21 +4665,24 @@ var getActionClient = (projectId) => {
|
|
|
4665
4665
|
};
|
|
4666
4666
|
};
|
|
4667
4667
|
var noProjectActions = getActionClient();
|
|
4668
|
-
var
|
|
4668
|
+
var componentTransformer = (component) => ({
|
|
4669
4669
|
id: component.manifest.id,
|
|
4670
4670
|
name: component.manifest.name,
|
|
4671
4671
|
path: component.save.path,
|
|
4672
4672
|
params: component.manifest.params
|
|
4673
|
-
})
|
|
4674
|
-
var
|
|
4673
|
+
});
|
|
4674
|
+
var componentsTransformer = (components) => components.map(componentTransformer);
|
|
4675
|
+
var systemTransformer = (system) => ({
|
|
4675
4676
|
id: system.manifest.id,
|
|
4676
4677
|
name: system.manifest.name,
|
|
4677
4678
|
path: system.save.path
|
|
4678
|
-
})
|
|
4679
|
-
var
|
|
4679
|
+
});
|
|
4680
|
+
var systemsTransformer = (systems) => systems.map(systemTransformer);
|
|
4681
|
+
var libraryTransformer = (lib) => ({
|
|
4680
4682
|
id: lib.path,
|
|
4681
4683
|
name: lib.name
|
|
4682
|
-
})
|
|
4684
|
+
});
|
|
4685
|
+
var librariesTransformer = (save) => save.libraries.map(libraryTransformer);
|
|
4683
4686
|
var scenesTransformer = (save) => [{
|
|
4684
4687
|
id: "default",
|
|
4685
4688
|
name: "Default Scene",
|
|
@@ -4778,16 +4781,23 @@ var ComponentManager = class {
|
|
|
4778
4781
|
get data() {
|
|
4779
4782
|
return get$1$1(_storage$12);
|
|
4780
4783
|
}
|
|
4781
|
-
|
|
4782
|
-
const
|
|
4783
|
-
const
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
});
|
|
4789
|
-
|
|
4790
|
-
|
|
4784
|
+
async create(name) {
|
|
4785
|
+
const { actions, fs } = useProject();
|
|
4786
|
+
const component = await actions.package.createComponent({ componentName: name });
|
|
4787
|
+
this._add(componentTransformer(component));
|
|
4788
|
+
await (await fs.getDirectory()).readdir(true);
|
|
4789
|
+
}
|
|
4790
|
+
async import(names) {
|
|
4791
|
+
const { actions, ecs, fs } = useProject();
|
|
4792
|
+
await actions.package.addComponents({ componentNames: names });
|
|
4793
|
+
await this.sync();
|
|
4794
|
+
await ecs.components.sync();
|
|
4795
|
+
await (await fs.getDirectory()).readdir(true);
|
|
4796
|
+
}
|
|
4797
|
+
async sync() {
|
|
4798
|
+
const { actions } = useProject();
|
|
4799
|
+
const components = await actions.package.getComponents();
|
|
4800
|
+
_storage$12.set(componentsTransformer(components));
|
|
4791
4801
|
}
|
|
4792
4802
|
get(id) {
|
|
4793
4803
|
const component = get$1$1(_storage$12).find((component) => component.id === id);
|
|
@@ -4806,6 +4816,11 @@ var ComponentManager = class {
|
|
|
4806
4816
|
_subscriptions$6.set(subscriptions);
|
|
4807
4817
|
}
|
|
4808
4818
|
}
|
|
4819
|
+
_add(component) {
|
|
4820
|
+
const components = get$1$1(_storage$12);
|
|
4821
|
+
components.push(component);
|
|
4822
|
+
_storage$12.set(components);
|
|
4823
|
+
}
|
|
4809
4824
|
_subscribe(id, handle) {
|
|
4810
4825
|
setTimeout(() => {
|
|
4811
4826
|
const subscriptions = get$1$1(_subscriptions$6);
|
|
@@ -4957,6 +4972,7 @@ var ComponentParamManager = class {
|
|
|
4957
4972
|
component;
|
|
4958
4973
|
_store;
|
|
4959
4974
|
_valuesStore;
|
|
4975
|
+
_storageResolvable;
|
|
4960
4976
|
static reset() {
|
|
4961
4977
|
_storage$8.set({});
|
|
4962
4978
|
_valueStorage.set({});
|
|
@@ -4965,9 +4981,9 @@ var ComponentParamManager = class {
|
|
|
4965
4981
|
}
|
|
4966
4982
|
constructor(component, params) {
|
|
4967
4983
|
this.component = component;
|
|
4968
|
-
|
|
4969
|
-
this._store = resolveStore(_storage$8,
|
|
4970
|
-
this._valuesStore = resolveStore(_valueStorage,
|
|
4984
|
+
this._storageResolvable = `${this.component.manager.entity.manager.scene.id}/${this.component.manager.entity.id}/${this.component.id}`;
|
|
4985
|
+
this._store = resolveStore(_storage$8, this._storageResolvable, get$1$1(component.store).params);
|
|
4986
|
+
this._valuesStore = resolveStore(_valueStorage, this._storageResolvable, params);
|
|
4971
4987
|
this._listen();
|
|
4972
4988
|
}
|
|
4973
4989
|
get store() {
|
|
@@ -4990,10 +5006,11 @@ var ComponentParamManager = class {
|
|
|
4990
5006
|
...param,
|
|
4991
5007
|
value: void 0
|
|
4992
5008
|
} : param));
|
|
5009
|
+
const fullId = `${this._storageResolvable}/${id}`;
|
|
4993
5010
|
const subscriptions = get$1$1(_subscriptions$4);
|
|
4994
|
-
if (subscriptions[
|
|
4995
|
-
subscriptions[
|
|
4996
|
-
subscriptions[
|
|
5011
|
+
if (subscriptions[fullId]) {
|
|
5012
|
+
subscriptions[fullId]();
|
|
5013
|
+
subscriptions[fullId] = null;
|
|
4997
5014
|
_subscriptions$4.set(subscriptions);
|
|
4998
5015
|
}
|
|
4999
5016
|
}
|
|
@@ -5006,9 +5023,10 @@ var ComponentParamManager = class {
|
|
|
5006
5023
|
}
|
|
5007
5024
|
_subscribe(id, handle) {
|
|
5008
5025
|
setTimeout(() => {
|
|
5026
|
+
const fullId = `${this._storageResolvable}/${id}`;
|
|
5009
5027
|
const subscriptions = get$1$1(_subscriptions$4);
|
|
5010
|
-
if (subscriptions[
|
|
5011
|
-
subscriptions[
|
|
5028
|
+
if (subscriptions[fullId]) return;
|
|
5029
|
+
subscriptions[fullId] = handle.value.subscribe((param) => this._update(id, param));
|
|
5012
5030
|
_subscriptions$4.set(subscriptions);
|
|
5013
5031
|
}, 0);
|
|
5014
5032
|
}
|
|
@@ -5048,6 +5066,7 @@ var _listener$3 = writable();
|
|
|
5048
5066
|
var EntityComponentManager = class {
|
|
5049
5067
|
entity;
|
|
5050
5068
|
_store;
|
|
5069
|
+
_storageResolvable;
|
|
5051
5070
|
static reset() {
|
|
5052
5071
|
_storage$7.set({});
|
|
5053
5072
|
resetSubscriptions(_subscriptions$3);
|
|
@@ -5055,8 +5074,8 @@ var EntityComponentManager = class {
|
|
|
5055
5074
|
}
|
|
5056
5075
|
constructor(entity, components) {
|
|
5057
5076
|
this.entity = entity;
|
|
5058
|
-
|
|
5059
|
-
this._store = resolveStore(_storage$7,
|
|
5077
|
+
this._storageResolvable = `${this.entity.manager.scene.id}/${this.entity.id}`;
|
|
5078
|
+
this._store = resolveStore(_storage$7, this._storageResolvable, components);
|
|
5060
5079
|
this._listen();
|
|
5061
5080
|
}
|
|
5062
5081
|
get store() {
|
|
@@ -5085,10 +5104,11 @@ var EntityComponentManager = class {
|
|
|
5085
5104
|
if (key !== id) newComponents[key] = params;
|
|
5086
5105
|
});
|
|
5087
5106
|
this._store.set(newComponents);
|
|
5107
|
+
const fullId = `${this._storageResolvable}/${id}`;
|
|
5088
5108
|
const subscriptions = get$1$1(_subscriptions$3);
|
|
5089
|
-
if (subscriptions[
|
|
5090
|
-
subscriptions[
|
|
5091
|
-
subscriptions[
|
|
5109
|
+
if (subscriptions[fullId]) {
|
|
5110
|
+
subscriptions[fullId]();
|
|
5111
|
+
subscriptions[fullId] = null;
|
|
5092
5112
|
_subscriptions$3.set(subscriptions);
|
|
5093
5113
|
}
|
|
5094
5114
|
}
|
|
@@ -5106,9 +5126,10 @@ var EntityComponentManager = class {
|
|
|
5106
5126
|
}
|
|
5107
5127
|
_subscribe(id, handle) {
|
|
5108
5128
|
setTimeout(() => {
|
|
5129
|
+
const fullId = `${this._storageResolvable}/${id}`;
|
|
5109
5130
|
const subscriptions = get$1$1(_subscriptions$3);
|
|
5110
|
-
if (subscriptions[
|
|
5111
|
-
subscriptions[
|
|
5131
|
+
if (subscriptions[fullId]) return;
|
|
5132
|
+
subscriptions[fullId] = handle.params.values.subscribe((params) => this._update(id, params));
|
|
5112
5133
|
_subscriptions$3.set(subscriptions);
|
|
5113
5134
|
}, 0);
|
|
5114
5135
|
}
|
|
@@ -5216,19 +5237,21 @@ var SceneEntityManager = class {
|
|
|
5216
5237
|
delete(id) {
|
|
5217
5238
|
const entities = get$1$1(this._store);
|
|
5218
5239
|
this._store.set(entities.filter((entity) => entity.id !== id));
|
|
5240
|
+
const fullId = `${this.scene.id}/${id}`;
|
|
5219
5241
|
const subscriptions = get$1$1(_subscriptions$2);
|
|
5220
|
-
if (subscriptions[
|
|
5221
|
-
subscriptions[
|
|
5222
|
-
subscriptions[
|
|
5242
|
+
if (subscriptions[fullId]) {
|
|
5243
|
+
subscriptions[fullId]();
|
|
5244
|
+
subscriptions[fullId] = null;
|
|
5223
5245
|
_subscriptions$2.set(subscriptions);
|
|
5224
5246
|
}
|
|
5225
5247
|
if (this.selectedData?.id === id) this.selected = void 0;
|
|
5226
5248
|
}
|
|
5227
5249
|
_subscribe(id, handle) {
|
|
5228
5250
|
setTimeout(() => {
|
|
5251
|
+
const fullId = `${this.scene.id}/${id}`;
|
|
5229
5252
|
const subscriptions = get$1$1(_subscriptions$2);
|
|
5230
|
-
if (subscriptions[
|
|
5231
|
-
subscriptions[
|
|
5253
|
+
if (subscriptions[fullId]) return;
|
|
5254
|
+
subscriptions[fullId] = handle.store.subscribe((entity) => this._update(id, entity));
|
|
5232
5255
|
_subscriptions$2.set(subscriptions);
|
|
5233
5256
|
}, 0);
|
|
5234
5257
|
}
|
|
@@ -5511,16 +5534,23 @@ var SystemManager = class {
|
|
|
5511
5534
|
get data() {
|
|
5512
5535
|
return get$1$1(_storage);
|
|
5513
5536
|
}
|
|
5514
|
-
|
|
5515
|
-
const
|
|
5516
|
-
const
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
});
|
|
5522
|
-
|
|
5523
|
-
|
|
5537
|
+
async create(name) {
|
|
5538
|
+
const { actions, fs } = useProject();
|
|
5539
|
+
const system = await actions.package.createSystem({ systemName: name });
|
|
5540
|
+
this._add(systemTransformer(system));
|
|
5541
|
+
await (await fs.getDirectory()).readdir(true);
|
|
5542
|
+
}
|
|
5543
|
+
async import(names) {
|
|
5544
|
+
const { actions, ecs, fs } = useProject();
|
|
5545
|
+
await actions.package.addSystems({ systemNames: names });
|
|
5546
|
+
await this.sync();
|
|
5547
|
+
await ecs.components.sync();
|
|
5548
|
+
await (await fs.getDirectory()).readdir(true);
|
|
5549
|
+
}
|
|
5550
|
+
async sync() {
|
|
5551
|
+
const { actions } = useProject();
|
|
5552
|
+
const systems = await actions.package.getSystems();
|
|
5553
|
+
_storage.set(systemsTransformer(systems));
|
|
5524
5554
|
}
|
|
5525
5555
|
get(id) {
|
|
5526
5556
|
const system = get$1$1(_storage).find((system) => system.id === id);
|
|
@@ -5539,6 +5569,11 @@ var SystemManager = class {
|
|
|
5539
5569
|
_subscriptions.set(subscriptions);
|
|
5540
5570
|
}
|
|
5541
5571
|
}
|
|
5572
|
+
_add(system) {
|
|
5573
|
+
const systems = get$1$1(_storage);
|
|
5574
|
+
systems.push(system);
|
|
5575
|
+
_storage.set(systems);
|
|
5576
|
+
}
|
|
5542
5577
|
_subscribe(id, handle) {
|
|
5543
5578
|
setTimeout(() => {
|
|
5544
5579
|
const subscriptions = get$1$1(_subscriptions);
|
|
@@ -6005,11 +6040,15 @@ var SfsFile = class {
|
|
|
6005
6040
|
async sync() {
|
|
6006
6041
|
if (!this._cache) return;
|
|
6007
6042
|
const file = await this._cache.getFile();
|
|
6008
|
-
|
|
6009
|
-
body: file
|
|
6043
|
+
const res = await fetch(this._route, {
|
|
6044
|
+
body: file,
|
|
6010
6045
|
method: "POST",
|
|
6011
|
-
headers: {
|
|
6012
|
-
|
|
6046
|
+
headers: {
|
|
6047
|
+
[SESSION_PROJECT_HEADER]: this._handler.project.id,
|
|
6048
|
+
"Content-Type": "application/octet-stream"
|
|
6049
|
+
}
|
|
6050
|
+
});
|
|
6051
|
+
if (!res.ok) throw new Error(`Failed to sync file: ${await res.text()}`);
|
|
6013
6052
|
}
|
|
6014
6053
|
async getFile() {
|
|
6015
6054
|
await this._preRead();
|
|
@@ -6196,6 +6235,7 @@ var SyncFileSystem = class {
|
|
|
6196
6235
|
}
|
|
6197
6236
|
async init() {
|
|
6198
6237
|
await this.treeCache?.init();
|
|
6238
|
+
await (await this.getDirectory()).readdir(true);
|
|
6199
6239
|
}
|
|
6200
6240
|
async getFile(path) {
|
|
6201
6241
|
return new SfsFile(this, await this.cache.fileExist(path) ? await this.cache.getFile(path, false) : null, path);
|
|
@@ -12739,7 +12779,7 @@ var SelectBaseRootState = class {
|
|
|
12739
12779
|
}
|
|
12740
12780
|
setHighlightedNode(node, initial = false) {
|
|
12741
12781
|
this.highlightedNode = node;
|
|
12742
|
-
if (node && this.isUsingKeyboard || initial) this.scrollHighlightedNodeIntoView(node);
|
|
12782
|
+
if (node && (this.isUsingKeyboard || initial)) this.scrollHighlightedNodeIntoView(node);
|
|
12743
12783
|
}
|
|
12744
12784
|
scrollHighlightedNodeIntoView(node) {
|
|
12745
12785
|
if (!this.viewportNode || !this.contentIsPositioned) return;
|
|
@@ -13020,7 +13060,7 @@ var SelectTriggerState = class SelectTriggerState {
|
|
|
13020
13060
|
this.root.handleClose();
|
|
13021
13061
|
return;
|
|
13022
13062
|
}
|
|
13023
|
-
if (e.key === "Enter" || e.key === " " && this.#domTypeahead.search === "" && !e.isComposing) {
|
|
13063
|
+
if ((e.key === "Enter" || e.key === " " && this.#domTypeahead.search === "") && !e.isComposing) {
|
|
13024
13064
|
e.preventDefault();
|
|
13025
13065
|
if (this.#handleKeyboardSelection()) return;
|
|
13026
13066
|
}
|
|
@@ -13047,7 +13087,7 @@ var SelectTriggerState = class SelectTriggerState {
|
|
|
13047
13087
|
const isSpaceKey = e.key === " ";
|
|
13048
13088
|
const candidateNodes = this.root.getCandidateNodes();
|
|
13049
13089
|
if (e.key === "Tab") return;
|
|
13050
|
-
if (!isModifierKey && isCharacterKey || isSpaceKey) {
|
|
13090
|
+
if (!isModifierKey && (isCharacterKey || isSpaceKey)) {
|
|
13051
13091
|
if (!this.#domTypeahead.handleTypeaheadSearch(e.key, candidateNodes) && isSpaceKey) {
|
|
13052
13092
|
e.preventDefault();
|
|
13053
13093
|
this.#handleKeyboardSelection();
|
|
@@ -14905,6 +14945,25 @@ function Select($$renderer, $$props) {
|
|
|
14905
14945
|
});
|
|
14906
14946
|
});
|
|
14907
14947
|
}
|
|
14948
|
+
function Loading_button($$renderer, $$props) {
|
|
14949
|
+
let { loading = false, disabled, children, $$slots, $$events, ...restProps } = $$props;
|
|
14950
|
+
Button($$renderer, spread_props([
|
|
14951
|
+
{ disabled: disabled || loading },
|
|
14952
|
+
restProps,
|
|
14953
|
+
{
|
|
14954
|
+
children: ($$renderer) => {
|
|
14955
|
+
if (loading) {
|
|
14956
|
+
$$renderer.push("<!--[0-->");
|
|
14957
|
+
Spinner($$renderer, {});
|
|
14958
|
+
} else $$renderer.push("<!--[-1-->");
|
|
14959
|
+
$$renderer.push(`<!--]--> `);
|
|
14960
|
+
children?.($$renderer);
|
|
14961
|
+
$$renderer.push(`<!---->`);
|
|
14962
|
+
},
|
|
14963
|
+
$$slots: { default: true }
|
|
14964
|
+
}
|
|
14965
|
+
]));
|
|
14966
|
+
}
|
|
14908
14967
|
var handleError = (error, context) => {
|
|
14909
14968
|
const message = `Failed to ${context ?? "execute"}`;
|
|
14910
14969
|
if (error instanceof Exception) {
|
|
@@ -14929,6 +14988,6 @@ var runSafe = async (context, cb, fallback) => {
|
|
|
14929
14988
|
return null;
|
|
14930
14989
|
};
|
|
14931
14990
|
//#endregion
|
|
14932
|
-
export {
|
|
14991
|
+
export { createBitsAttrs as $, Portal as A, Separator as B, MenuMenuState as C, PLException as D, PLErrors as E, Scroll_lock as F, Text_selection_layer as G, StyleToObject as H, Select as I, boolToStr as J, attachRef as K, Select_content as L, ProjectCache as M, ProjectLoader as N, Popper_layer as O, RovingFocusGroup as P, cn as Q, Select_item as R, MenuItemState as S, MenuSeparatorState as T, Switch as U, Spinner as V, Switch_thumb as W, boxWith as X, boolToTrueOrUndef as Y, capitalize as Z, Floating_layer_anchor as _, useId as _t, Card_content as a, getDataOpenClosed as at, Loading_button as b, tv as bt, Card_title as c, getFloatingContentCSSVars as ct, DOMContext as d, mergeProps as dt, createId as et, Dismissible_layer as f, noop as ft, Floating_layer as g, useDebounce as gt, FloatingArrowState as h, toastError as ht, Card as i, getConfig as it, PresenceManager as j, Popper_layer_force_mount as k, Context as l, isElement$1 as lt, Escape_layer as m, simpleBox as mt, Button as n, deserialize as nt, Card_description as o, getDataTransitionAttrs as ot, DropdownMenuTriggerState as p, runSafe as pt, boolToEmptyStrOrUndef as q, CONTEXT_MENU_TRIGGER_ATTR as r, enhance as rt, Card_header as s, getDocument as st, AnimationsComplete as t, createQuery as tt, ContextMenuTriggerState as u, isFocusVisible as ut, Focus_scope as v, useProject as vt, MenuRootState as w, MenuContentState as x, IsMounted as y, watch as yt, Select_trigger as z };
|
|
14933
14992
|
|
|
14934
|
-
//# sourceMappingURL=error-
|
|
14993
|
+
//# sourceMappingURL=error-BGQyviUk.js.map
|