@chrisjowen/wheelhouse 0.1.1 → 0.2.1
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/README.md +36 -31
- package/build/client/_app/immutable/assets/0.CF4I5T-G.css +1 -0
- package/build/client/_app/immutable/assets/0.CF4I5T-G.css.br +0 -0
- package/build/client/_app/immutable/assets/0.CF4I5T-G.css.gz +0 -0
- package/build/client/_app/immutable/assets/DocSheet.CaO2v_qh.css +1 -0
- package/build/client/_app/immutable/assets/DocSheet.CaO2v_qh.css.br +0 -0
- package/build/client/_app/immutable/assets/DocSheet.CaO2v_qh.css.gz +0 -0
- package/build/client/_app/immutable/chunks/-F7frqRp.js +1 -0
- package/build/client/_app/immutable/chunks/-F7frqRp.js.br +0 -0
- package/build/client/_app/immutable/chunks/-F7frqRp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/127nenIp.js +1 -0
- package/build/client/_app/immutable/chunks/127nenIp.js.br +0 -0
- package/build/client/_app/immutable/chunks/127nenIp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/2Frsddx8.js +1 -0
- package/build/client/_app/immutable/chunks/2Frsddx8.js.br +2 -0
- package/build/client/_app/immutable/chunks/2Frsddx8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/4nLjU3dc.js +1 -0
- package/build/client/_app/immutable/chunks/4nLjU3dc.js.br +0 -0
- package/build/client/_app/immutable/chunks/4nLjU3dc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/6IjAKxKZ.js +1 -0
- package/build/client/_app/immutable/chunks/6IjAKxKZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/6IjAKxKZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/6JIb870c.js +1 -0
- package/build/client/_app/immutable/chunks/6JIb870c.js.br +0 -0
- package/build/client/_app/immutable/chunks/6JIb870c.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B8szyIrI.js +1 -0
- package/build/client/_app/immutable/chunks/B8szyIrI.js.br +0 -0
- package/build/client/_app/immutable/chunks/B8szyIrI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BDL2L18I.js +1 -0
- package/build/client/_app/immutable/chunks/BDL2L18I.js.br +0 -0
- package/build/client/_app/immutable/chunks/BDL2L18I.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BJ_boZ6o.js +1 -0
- package/build/client/_app/immutable/chunks/BJ_boZ6o.js.br +0 -0
- package/build/client/_app/immutable/chunks/BJ_boZ6o.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BMOWf_e5.js +1 -0
- package/build/client/_app/immutable/chunks/BMOWf_e5.js.br +0 -0
- package/build/client/_app/immutable/chunks/BMOWf_e5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BOOJ9_kJ.js +6 -0
- package/build/client/_app/immutable/chunks/BOOJ9_kJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/BOOJ9_kJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BPEcp4vD.js +1 -0
- package/build/client/_app/immutable/chunks/BPEcp4vD.js.br +0 -0
- package/build/client/_app/immutable/chunks/BPEcp4vD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BTcSoYfa.js +1 -0
- package/build/client/_app/immutable/chunks/BTcSoYfa.js.br +2 -0
- package/build/client/_app/immutable/chunks/BTcSoYfa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BVXUMEgB.js +1 -0
- package/build/client/_app/immutable/chunks/BVXUMEgB.js.br +0 -0
- package/build/client/_app/immutable/chunks/BVXUMEgB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BV_Ro843.js +1 -0
- package/build/client/_app/immutable/chunks/BV_Ro843.js.br +0 -0
- package/build/client/_app/immutable/chunks/BV_Ro843.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BboI5NX2.js +1 -0
- package/build/client/_app/immutable/chunks/BboI5NX2.js.br +0 -0
- package/build/client/_app/immutable/chunks/BboI5NX2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BkLV0FAz.js +1 -0
- package/build/client/_app/immutable/chunks/BkLV0FAz.js.br +0 -0
- package/build/client/_app/immutable/chunks/BkLV0FAz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BnqQNG8I.js +1 -0
- package/build/client/_app/immutable/chunks/BnqQNG8I.js.br +0 -0
- package/build/client/_app/immutable/chunks/BnqQNG8I.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bo3sLJjL.js +3 -0
- package/build/client/_app/immutable/chunks/Bo3sLJjL.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bo3sLJjL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bpgn0RyM.js +1 -0
- package/build/client/_app/immutable/chunks/Bpgn0RyM.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bpgn0RyM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BrGclueo.js +1 -0
- package/build/client/_app/immutable/chunks/BrGclueo.js.br +0 -0
- package/build/client/_app/immutable/chunks/BrGclueo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C-Ka3szt.js +1 -0
- package/build/client/_app/immutable/chunks/C-Ka3szt.js.br +0 -0
- package/build/client/_app/immutable/chunks/C-Ka3szt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C-YySHlv.js +1 -0
- package/build/client/_app/immutable/chunks/C-YySHlv.js.br +0 -0
- package/build/client/_app/immutable/chunks/C-YySHlv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C27rbWKB.js +1 -0
- package/build/client/_app/immutable/chunks/C27rbWKB.js.br +0 -0
- package/build/client/_app/immutable/chunks/C27rbWKB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CA1hL-S6.js +1 -0
- package/build/client/_app/immutable/chunks/CA1hL-S6.js.br +0 -0
- package/build/client/_app/immutable/chunks/CA1hL-S6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CFdPbSqS.js +1 -0
- package/build/client/_app/immutable/chunks/CFdPbSqS.js.br +1 -0
- package/build/client/_app/immutable/chunks/CFdPbSqS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CJGygju8.js +1 -0
- package/build/client/_app/immutable/chunks/CJGygju8.js.br +0 -0
- package/build/client/_app/immutable/chunks/CJGygju8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CLdaRjQZ.js +1 -0
- package/build/client/_app/immutable/chunks/CLdaRjQZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/CLdaRjQZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CS3TvEHF.js +1 -0
- package/build/client/_app/immutable/chunks/CS3TvEHF.js.br +0 -0
- package/build/client/_app/immutable/chunks/CS3TvEHF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CSfYMiqF.js +8 -0
- package/build/client/_app/immutable/chunks/CSfYMiqF.js.br +0 -0
- package/build/client/_app/immutable/chunks/CSfYMiqF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CW_pu1E1.js +1 -0
- package/build/client/_app/immutable/chunks/CW_pu1E1.js.br +0 -0
- package/build/client/_app/immutable/chunks/CW_pu1E1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CZPeboo-.js +1 -0
- package/build/client/_app/immutable/chunks/CZPeboo-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CZPeboo-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CZYAayp0.js +2 -0
- package/build/client/_app/immutable/chunks/CZYAayp0.js.br +0 -0
- package/build/client/_app/immutable/chunks/CZYAayp0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cap_NU8Z.js +1 -0
- package/build/client/_app/immutable/chunks/Cap_NU8Z.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cap_NU8Z.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cf6ZwSDE.js +1 -0
- package/build/client/_app/immutable/chunks/Cf6ZwSDE.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cf6ZwSDE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ch8_zhFw.js +1 -0
- package/build/client/_app/immutable/chunks/Ch8_zhFw.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ch8_zhFw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cjji8YKo.js +1 -0
- package/build/client/_app/immutable/chunks/Cjji8YKo.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cjji8YKo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ckfspn2s.js +1 -0
- package/build/client/_app/immutable/chunks/Ckfspn2s.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ckfspn2s.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cl72MTSX.js +1 -0
- package/build/client/_app/immutable/chunks/Cl72MTSX.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cl72MTSX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CpkLqQ7l.js +1 -0
- package/build/client/_app/immutable/chunks/CpkLqQ7l.js.br +0 -0
- package/build/client/_app/immutable/chunks/CpkLqQ7l.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Crzhp-x5.js +5 -0
- package/build/client/_app/immutable/chunks/Crzhp-x5.js.br +0 -0
- package/build/client/_app/immutable/chunks/Crzhp-x5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cwah_dMw.js +1 -0
- package/build/client/_app/immutable/chunks/Cwah_dMw.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cwah_dMw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CzsfD4hc.js +1 -0
- package/build/client/_app/immutable/chunks/CzsfD4hc.js.br +2 -0
- package/build/client/_app/immutable/chunks/CzsfD4hc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D32oVJ_N.js +1 -0
- package/build/client/_app/immutable/chunks/D32oVJ_N.js.br +1 -0
- package/build/client/_app/immutable/chunks/D32oVJ_N.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D4sWXBG7.js +1 -0
- package/build/client/_app/immutable/chunks/D4sWXBG7.js.br +0 -0
- package/build/client/_app/immutable/chunks/D4sWXBG7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DBs-gHlm.js +2 -0
- package/build/client/_app/immutable/chunks/DBs-gHlm.js.br +0 -0
- package/build/client/_app/immutable/chunks/DBs-gHlm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DEFXAgPm.js +1 -0
- package/build/client/_app/immutable/chunks/DEFXAgPm.js.br +0 -0
- package/build/client/_app/immutable/chunks/DEFXAgPm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DHbme8uq.js +1 -0
- package/build/client/_app/immutable/chunks/DHbme8uq.js.br +0 -0
- package/build/client/_app/immutable/chunks/DHbme8uq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DMkU8x7K.js +1 -0
- package/build/client/_app/immutable/chunks/DMkU8x7K.js.br +0 -0
- package/build/client/_app/immutable/chunks/DMkU8x7K.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DRIYWZlo.js +1 -0
- package/build/client/_app/immutable/chunks/DRIYWZlo.js.br +1 -0
- package/build/client/_app/immutable/chunks/DRIYWZlo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DUCO61Nb.js +1 -0
- package/build/client/_app/immutable/chunks/DUCO61Nb.js.br +0 -0
- package/build/client/_app/immutable/chunks/DUCO61Nb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DXz8WA1c.js +1 -0
- package/build/client/_app/immutable/chunks/DXz8WA1c.js.br +0 -0
- package/build/client/_app/immutable/chunks/DXz8WA1c.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D_4WLGwX.js +1 -0
- package/build/client/_app/immutable/chunks/D_4WLGwX.js.br +0 -0
- package/build/client/_app/immutable/chunks/D_4WLGwX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D_5WjoQx.js +1 -0
- package/build/client/_app/immutable/chunks/D_5WjoQx.js.br +0 -0
- package/build/client/_app/immutable/chunks/D_5WjoQx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D_C2ZtkZ.js +1 -0
- package/build/client/_app/immutable/chunks/D_C2ZtkZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/D_C2ZtkZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/De5PDvrQ.js +1 -0
- package/build/client/_app/immutable/chunks/De5PDvrQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/De5PDvrQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DhWdMQ8J.js +1 -0
- package/build/client/_app/immutable/chunks/DhWdMQ8J.js.br +0 -0
- package/build/client/_app/immutable/chunks/DhWdMQ8J.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DiCw6gM6.js +1 -0
- package/build/client/_app/immutable/chunks/DiCw6gM6.js.br +0 -0
- package/build/client/_app/immutable/chunks/DiCw6gM6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DugIbHkD.js +1 -0
- package/build/client/_app/immutable/chunks/DugIbHkD.js.br +0 -0
- package/build/client/_app/immutable/chunks/DugIbHkD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/JhgT3vN-.js +1 -0
- package/build/client/_app/immutable/chunks/JhgT3vN-.js.br +0 -0
- package/build/client/_app/immutable/chunks/JhgT3vN-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/KA4C2mxd.js +1 -0
- package/build/client/_app/immutable/chunks/KA4C2mxd.js.br +0 -0
- package/build/client/_app/immutable/chunks/KA4C2mxd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/MoZXz26A.js +2 -0
- package/build/client/_app/immutable/chunks/MoZXz26A.js.br +0 -0
- package/build/client/_app/immutable/chunks/MoZXz26A.js.gz +0 -0
- package/build/client/_app/immutable/chunks/PMi1c_Z5.js +2 -0
- package/build/client/_app/immutable/chunks/PMi1c_Z5.js.br +0 -0
- package/build/client/_app/immutable/chunks/PMi1c_Z5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Pd3Oo-LF.js +1 -0
- package/build/client/_app/immutable/chunks/Pd3Oo-LF.js.br +0 -0
- package/build/client/_app/immutable/chunks/Pd3Oo-LF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/RXXzt1fg.js +1 -0
- package/build/client/_app/immutable/chunks/RXXzt1fg.js.br +0 -0
- package/build/client/_app/immutable/chunks/RXXzt1fg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/WfixpLtG.js +1 -0
- package/build/client/_app/immutable/chunks/WfixpLtG.js.br +2 -0
- package/build/client/_app/immutable/chunks/WfixpLtG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/YB3ysJRI.js +1 -0
- package/build/client/_app/immutable/chunks/YB3ysJRI.js.br +0 -0
- package/build/client/_app/immutable/chunks/YB3ysJRI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/YUajk67G.js +1 -0
- package/build/client/_app/immutable/chunks/YUajk67G.js.br +0 -0
- package/build/client/_app/immutable/chunks/YUajk67G.js.gz +0 -0
- package/build/client/_app/immutable/chunks/a2ZeDrXd.js +1 -0
- package/build/client/_app/immutable/chunks/a2ZeDrXd.js.br +0 -0
- package/build/client/_app/immutable/chunks/a2ZeDrXd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/cZnJ0mAm.js +7 -0
- package/build/client/_app/immutable/chunks/cZnJ0mAm.js.br +0 -0
- package/build/client/_app/immutable/chunks/cZnJ0mAm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/is3b6W5i.js +1 -0
- package/build/client/_app/immutable/chunks/is3b6W5i.js.br +0 -0
- package/build/client/_app/immutable/chunks/is3b6W5i.js.gz +0 -0
- package/build/client/_app/immutable/chunks/kM8ObZQs.js +62 -0
- package/build/client/_app/immutable/chunks/kM8ObZQs.js.br +0 -0
- package/build/client/_app/immutable/chunks/kM8ObZQs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/qep4C0YL.js +2 -0
- package/build/client/_app/immutable/chunks/qep4C0YL.js.br +0 -0
- package/build/client/_app/immutable/chunks/qep4C0YL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/sSJbwAI9.js +1 -0
- package/build/client/_app/immutable/chunks/sSJbwAI9.js.br +0 -0
- package/build/client/_app/immutable/chunks/sSJbwAI9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/vAxbu4w9.js +1 -0
- package/build/client/_app/immutable/chunks/vAxbu4w9.js.br +0 -0
- package/build/client/_app/immutable/chunks/vAxbu4w9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/zfjlAER1.js +1 -0
- package/build/client/_app/immutable/chunks/zfjlAER1.js.br +0 -0
- package/build/client/_app/immutable/chunks/zfjlAER1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/zrknQfzW.js +1 -0
- package/build/client/_app/immutable/chunks/zrknQfzW.js.br +0 -0
- package/build/client/_app/immutable/chunks/zrknQfzW.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.BVW8a1Lc.js +2 -0
- package/build/client/_app/immutable/entry/app.BVW8a1Lc.js.br +0 -0
- package/build/client/_app/immutable/entry/app.BVW8a1Lc.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DfAhzzBh.js +1 -0
- package/build/client/_app/immutable/entry/start.DfAhzzBh.js.br +0 -0
- package/build/client/_app/immutable/entry/start.DfAhzzBh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CByWY48H.js +8 -0
- package/build/client/_app/immutable/nodes/0.CByWY48H.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CByWY48H.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BQxkVmZR.js +1 -0
- package/build/client/_app/immutable/nodes/1.BQxkVmZR.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BQxkVmZR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.DF_JvWer.js +3 -0
- package/build/client/_app/immutable/nodes/10.DF_JvWer.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.DF_JvWer.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.Da20qmQ1.js +1 -0
- package/build/client/_app/immutable/nodes/11.Da20qmQ1.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.Da20qmQ1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.DeNfg3Jn.js +14 -0
- package/build/client/_app/immutable/nodes/12.DeNfg3Jn.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.DeNfg3Jn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.Vg3b6KJ-.js +150 -0
- package/build/client/_app/immutable/nodes/13.Vg3b6KJ-.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.Vg3b6KJ-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.DNQBbVNt.js +11 -0
- package/build/client/_app/immutable/nodes/15.DNQBbVNt.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.DNQBbVNt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.PXR5gryE.js +9 -0
- package/build/client/_app/immutable/nodes/16.PXR5gryE.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.PXR5gryE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.D6wwTzw0.js +2 -0
- package/build/client/_app/immutable/nodes/17.D6wwTzw0.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.D6wwTzw0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.BYPKt-Zj.js +6 -0
- package/build/client/_app/immutable/nodes/18.BYPKt-Zj.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.BYPKt-Zj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.eOj7WL-z.js +1 -0
- package/build/client/_app/immutable/nodes/19.eOj7WL-z.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.eOj7WL-z.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.iGkQWI53.js +14 -0
- package/build/client/_app/immutable/nodes/2.iGkQWI53.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.iGkQWI53.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.COEvYhSn.js +6 -0
- package/build/client/_app/immutable/nodes/20.COEvYhSn.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.COEvYhSn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.DgV1VyBd.js +5 -0
- package/build/client/_app/immutable/nodes/3.DgV1VyBd.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.DgV1VyBd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.BFV94RXa.js +1 -0
- package/build/client/_app/immutable/nodes/4.BFV94RXa.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BFV94RXa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DXQSdCv2.js +1 -0
- package/build/client/_app/immutable/nodes/5.DXQSdCv2.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.DXQSdCv2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BVvx9mug.js +7 -0
- package/build/client/_app/immutable/nodes/6.BVvx9mug.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BVvx9mug.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.bgzyRDkn.js +4 -0
- package/build/client/_app/immutable/nodes/7.bgzyRDkn.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.bgzyRDkn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.BjRlvbf0.js +1 -0
- package/build/client/_app/immutable/nodes/9.BjRlvbf0.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.BjRlvbf0.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/handler.js +7 -7
- package/build/index.js +7 -7
- package/build/server/chunks/chunks/AllowanceMeter.js-DBpmESX6.js +42 -0
- package/build/server/chunks/chunks/DecisionCard.js-CvR7ULLC.js +461 -0
- package/build/server/chunks/chunks/DocSheet.js-BPPDMi3P.js +50 -0
- package/build/server/chunks/chunks/EtaLine.js-CtcOSLzV.js +79 -0
- package/build/server/chunks/chunks/EveryProjectSwitch.js-DWet6DU1.js +200 -0
- package/build/server/chunks/chunks/Icon.js-CVZZ-yuB.js +129 -0
- package/build/server/chunks/chunks/InsightsNav.js-Cmn5y1to.js +18 -0
- package/build/server/chunks/chunks/InstallPlugin.js-B46b-IrK.js +45 -0
- package/build/server/chunks/chunks/LinkedText.js-COjHV297.js +43 -0
- package/build/server/chunks/chunks/ProjectBanner.js-19PQF0LD.js +111 -0
- package/build/server/chunks/chunks/ProjectStateMark.js-BkRD8cX4.js +61 -0
- package/build/server/chunks/chunks/QuestionList.js-CppuauNj.js +187 -0
- package/build/server/chunks/chunks/ResizableRail.js-BmMh1aVL.js +801 -0
- package/build/server/chunks/chunks/SettingsNav.js-BtJIv5cc.js +22 -0
- package/build/server/chunks/chunks/SlotContent.js-B4p1QLQN.js +748 -0
- package/build/server/chunks/chunks/StageTrack.js-DHvZX7Bl.js +111 -0
- package/build/server/chunks/chunks/TimeBar.js-CUFKEJW9.js +32 -0
- package/build/server/chunks/chunks/TimeLegend.js-B3Wl61jM.js +29 -0
- package/build/server/chunks/chunks/aliases.svelte.js-C_vCoKdk.js +138 -0
- package/build/server/chunks/chunks/arrow-down.js-Bt3fQooI.js +18 -0
- package/build/server/chunks/chunks/arrow-left.js-BKiSMzvI.js +18 -0
- package/build/server/chunks/chunks/arrow-right.js-CNYqcx0M.js +18 -0
- package/build/server/chunks/chunks/arrow-up.js-DHbXk79z.js +18 -0
- package/build/server/chunks/chunks/attachments.js-BAnnqpd-.js +48 -0
- package/build/server/chunks/chunks/bell.js-CXJp-3UZ.js +150 -0
- package/build/server/chunks/chunks/berths.js-CuAE9lHW.js +268 -0
- package/build/server/chunks/chunks/book-open.js-C2rohN3N.js +23 -0
- package/build/server/chunks/chunks/button.js-BF2PsvWw.js +7311 -0
- package/build/server/chunks/chunks/chat.svelte.js-b0uQXOge.js +545 -0
- package/build/server/chunks/chunks/check.js-32sYHVxG.js +15 -0
- package/build/server/chunks/chunks/checks.js-DR3fVVpO.js +242 -0
- package/build/server/chunks/chunks/chevron-down.js-CH53s_me.js +15 -0
- package/build/server/chunks/chunks/chevron-left.js-D5RHY-kD.js +15 -0
- package/build/server/chunks/chunks/chevron-right.js-DCBAqAae.js +15 -0
- package/build/server/chunks/chunks/circle-alert.js-XTuAj7ZH.js +23 -0
- package/build/server/chunks/chunks/circle-dashed.js-fXv_bIo-.js +24 -0
- package/build/server/chunks/chunks/circle-dot.js-C950Kosw.js +18 -0
- package/build/server/chunks/chunks/client.js-B_5mNqUe.js +24 -0
- package/build/server/chunks/chunks/clock.js-CHhHTWK_.js +18 -0
- package/build/server/chunks/chunks/detail.js-9VHqIqfd.js +121 -0
- package/build/server/chunks/chunks/docpath.js-D27w_pf9.js +47 -0
- package/build/server/chunks/chunks/external-link.js-BQs1euhR.js +24 -0
- package/build/server/chunks/chunks/file-text.js-CnuVvHlB.js +26 -0
- package/build/server/chunks/chunks/gauge.js-Cbb1aqE7.js +35 -0
- package/build/server/chunks/chunks/hand.js-BA9yKAan.js +25 -0
- package/build/server/chunks/chunks/harbour.js-PHLHOFea.js +117 -0
- package/build/server/chunks/chunks/html.js-FW6Ia4bL.js +8 -0
- package/build/server/chunks/chunks/http.js-CBM8xgUM.js +25 -0
- package/build/server/chunks/chunks/inbox.js-Dv8a1ecX.js +184 -0
- package/build/server/chunks/chunks/inbox.svelte.js-n7K3YnGB.js +171 -0
- package/build/server/chunks/chunks/index-server.js-DsObimPA.js +9 -0
- package/build/server/chunks/chunks/index-server2.js-Fb2GE8KQ.js +17 -0
- package/build/server/chunks/chunks/index.js-B0NFhRTN.js +1524 -0
- package/build/server/chunks/chunks/index2.js-Bxt1T6_K.js +46 -0
- package/build/server/chunks/chunks/internal.js-CxWYnS4m.js +146 -0
- package/build/server/chunks/chunks/keys.js-iHygUPeb.js +20 -0
- package/build/server/chunks/chunks/live.svelte.js-DavJCZVs.js +238 -0
- package/build/server/chunks/chunks/loader-circle.js-rQHvIWN7.js +16 -0
- package/build/server/chunks/chunks/markdown.js-CApgGpeX.js +2634 -0
- package/build/server/chunks/chunks/message-circle-question-mark.js-DbmaS9k_.js +25 -0
- package/build/server/chunks/chunks/message-square.js-XK15WVZq.js +22 -0
- package/build/server/chunks/chunks/messages-square.js-BXH8BHfd.js +28 -0
- package/build/server/chunks/chunks/minus.js-DKvkj8VD.js +15 -0
- package/build/server/chunks/chunks/nav.js-DwnXJgxd.js +29 -0
- package/build/server/chunks/chunks/plus.js-caVrjGZc.js +15 -0
- package/build/server/chunks/chunks/preview.js-hrimfbCG.js +69 -0
- package/build/server/chunks/chunks/pullrequests.js-CWGxTy8C.js +68 -0
- package/build/server/chunks/chunks/pullrequests2.js-CCzk2sqm.js +12 -0
- package/build/server/chunks/chunks/repo.js-DU-pK5Nw.js +33 -0
- package/build/server/chunks/chunks/requests.js-DiL4Poa9.js +42 -0
- package/build/server/chunks/chunks/restart.js-Dv1_ODgZ.js +12 -0
- package/build/server/chunks/chunks/root.js-60iebdW4.js +3105 -0
- package/build/server/chunks/chunks/rotate-cw.js-M4SHOpYI.js +21 -0
- package/build/server/chunks/chunks/runtime.js-4msnOWzY.js +15335 -0
- package/build/server/chunks/chunks/scale.js-S5g8YUqL.js +21 -0
- package/build/server/chunks/chunks/scroll-lock.js-Ci_ylINL.js +2811 -0
- package/build/server/chunks/chunks/service.js-DZR6CoEI.js +914 -0
- package/build/server/chunks/chunks/settings.js-C_6kvzhM.js +862 -0
- package/build/server/chunks/chunks/slots.svelte.js-CLIV5nwM.js +34 -0
- package/build/server/chunks/chunks/square-terminal.js-D9D9_9_V.js +30 -0
- package/build/server/chunks/chunks/store.js-ByNV-OHV.js +323 -0
- package/build/server/chunks/chunks/tone.js-Dxsl-adt.js +31 -0
- package/build/server/chunks/chunks/triangle-alert.js-ClLszsZE.js +25 -0
- package/build/server/chunks/chunks/uploads.js-4OZ09onz.js +107 -0
- package/build/server/chunks/chunks/urls.js-BrlC6XZ8.js +8 -0
- package/build/server/chunks/chunks/utils.js-BJgm9WbO.js +2985 -0
- package/build/server/chunks/chunks/vault.js-CTaWe09z.js +162 -0
- package/build/server/chunks/chunks/view.js-BPycofxX.js +76 -0
- package/build/server/chunks/chunks/views.js-DyGxvskG.js +124 -0
- package/build/server/chunks/chunks/words.js-Cte4wOB4.js +48 -0
- package/build/server/chunks/chunks/x.js-YxaUOlq9.js +18 -0
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-DqDt7aNN.js +90 -0
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-D-mwPJ4E.js +100 -0
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-DTl4eBah.js +49 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-HFyCRRIx.js +83 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-CO7kITUs.js +119 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-CTdaQTFX.js +45 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-DKxlZSX3.js +51 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-Bp4CsZQ9.js +44 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js--Ti6GfKf.js +66 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-DudckFen.js +54 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-H09D-uaY.js +44 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-B1jFlBJC.js +31 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-B2h2nWSK.js +39 -0
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-BMcNM7_1.js +36 -0
- package/build/server/chunks/entries/endpoints/api/gateway/_server.ts.js-CVc8gLps.js +100 -0
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-BcVLJq4f.js +36 -0
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-DKqY2sWJ.js +60 -0
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-a4l41m0P.js +51 -0
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-Cr_YrS6N.js +36 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-CZUfk-OY.js +71 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-CPBW7xEV.js +23 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-Dg2Sbcgq.js +59 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-C9LXRfKc.js +35 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-C7RCx22P.js +36 -0
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-CSPS_3gF.js +35 -0
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-DWxejv3K.js +38 -0
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-BYYXspMy.js +23 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-BAPnLV-3.js +41 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-OYV-kJGk.js +50 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-DovNLcSw.js +62 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-CYU1VGUf.js +49 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-CgCzXBIB.js +72 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-BZ2S7d9x.js +55 -0
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-CMVRpWqZ.js +55 -0
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-BhhLjW17.js +44 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-Bukv4dSq.js +41 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-BsHRnnS7.js +60 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-B9eygpXJ.js +48 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-o7w8BRpJ.js +93 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-BaXho4qD.js +110 -0
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-CagOXKfp.js +54 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-CAcsCtS9.js +23 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-CSlKdXcw.js +23 -0
- package/build/server/chunks/entries/endpoints/projects/_server.ts.js-uMp6dcat.js +7 -0
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-OEWlGF9d.js +40 -0
- package/build/server/chunks/entries/fallbacks/error.svelte.js-DnpcUjRk.js +15 -0
- package/build/server/chunks/entries/hooks.server.js-BeVVnKyB.js +54 -0
- package/build/server/chunks/entries/pages/_layout.server.ts.js-CFzh0bb7.js +24 -0
- package/build/server/chunks/entries/pages/_layout.svelte.js-BQyvY_vc.js +8746 -0
- package/build/server/chunks/entries/pages/_page.server.ts.js-DqT-OIkV.js +16 -0
- package/build/server/chunks/entries/pages/_page.svelte.js-DMDSI7Tw.js +2220 -0
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-CGjy1S4B.js +11 -0
- package/build/server/chunks/entries/pages/decisions/_page.svelte.js-C3NsHXP-.js +184 -0
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-D6VF_7EK.js +17 -0
- package/build/server/chunks/entries/pages/files/_page.svelte.js-Bj-5ZaJn.js +61 -0
- package/build/server/chunks/entries/pages/harbour/_page.server.ts.js-Cbei7bFp.js +46 -0
- package/build/server/chunks/entries/pages/harbour/_page.svelte.js-D8RsASWB.js +580 -0
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-DtFxpkIR.js +11 -0
- package/build/server/chunks/entries/pages/headroom/_page.svelte.js-BLFQjLz8.js +149 -0
- package/build/server/chunks/entries/pages/inbox/_page.svelte.js-Bn5pWt__.js +185 -0
- package/build/server/chunks/entries/pages/plugins/_page.server.ts.js-D_nxVVQ0.js +11 -0
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-CybSuVD4.js +16 -0
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-DMPiRdLN.js +52 -0
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-CroKCV4u.js +23 -0
- package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-_DNqdqJc.js +976 -0
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-Vb8907y2.js +21 -0
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-BLTTCa_O.js +74 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-Cor2JYpv.js +27 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-BTgNmS_4.js +433 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-Dtvwihv0.js +15 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.svelte.js-DuitNXlV.js +1880 -0
- package/build/server/chunks/entries/pages/settings/_page.server.ts.js-DnBg1UuM.js +11 -0
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-BqNGCjSG.js +11 -0
- package/build/server/chunks/entries/pages/settings/gateway/_page.svelte.js-BmbSSxk6.js +208 -0
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-CQ9DVI4s.js +19 -0
- package/build/server/chunks/entries/pages/settings/plugins/_page.svelte.js-U1GPMY59.js +1847 -0
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-C_YGnjmx.js +17 -0
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.svelte.js-C_gSykyo.js +220 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-C-lePqYN.js +25 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Ds1ivkgU.js +2142 -0
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-DH7nAB6U.js +24 -0
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.svelte.js-BOMmvf6G.js +80 -0
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-Bfe-SSUC.js +11 -0
- package/build/server/chunks/entries/pages/time/_page.svelte.js-Ckn0YUW_.js +108 -0
- package/build/server/chunks/handler-CViJcHBG.js +1474 -0
- package/build/server/chunks/index.js-DO8YdJ_5.js +4296 -0
- package/build/server/chunks/manifest.js-DJYckUS-.js +501 -0
- package/build/server/chunks/nodes/0.js-DZ4kFPNe.js +41 -0
- package/build/server/chunks/nodes/1.js-CLGjQTlS.js +9 -0
- package/build/server/chunks/nodes/10.js-BN4Clcbg.js +43 -0
- package/build/server/chunks/nodes/11.js-DWB1yiJ6.js +42 -0
- package/build/server/chunks/nodes/12.js-CA99401F.js +43 -0
- package/build/server/chunks/nodes/13.js-YsHE2JFx.js +42 -0
- package/build/server/chunks/nodes/14.js-Cl3VZ6XR.js +12 -0
- package/build/server/chunks/nodes/15.js-CLdnAt4r.js +41 -0
- package/build/server/chunks/nodes/16.js-B-2Iq3Ye.js +41 -0
- package/build/server/chunks/nodes/17.js-BTM2TsmR.js +44 -0
- package/build/server/chunks/nodes/18.js-D3m0ATU2.js +42 -0
- package/build/server/chunks/nodes/19.js-C3dO33LH.js +42 -0
- package/build/server/chunks/nodes/2.js-51wjL-91.js +41 -0
- package/build/server/chunks/nodes/20.js-e41qDeY7.js +41 -0
- package/build/server/chunks/nodes/3.js-3JUV-tiI.js +41 -0
- package/build/server/chunks/nodes/4.js-CI6WGOXE.js +41 -0
- package/build/server/chunks/nodes/5.js-tZ-lWwlu.js +45 -0
- package/build/server/chunks/nodes/6.js-BgQesykU.js +41 -0
- package/build/server/chunks/nodes/7.js-CFXzqkNQ.js +9 -0
- package/build/server/chunks/nodes/8.js-D32pPbKa.js +12 -0
- package/build/server/chunks/nodes/9.js-CUQI6T4W.js +41 -0
- package/dist/cli.js +2156 -72
- package/dist/wh-vault.js +1007 -0
- package/package.json +5 -3
- package/plugins/github-issues/.wheelhouse-plugin/plugin.json +44 -0
- package/plugins/github-issues/README.md +16 -0
- package/plugins/github-issues/wheelhouse/server/index.js +463 -0
- package/plugins/project-links/.wheelhouse-plugin/plugin.json +25 -0
- package/plugins/project-links/README.md +17 -0
- package/plugins/project-links/wheelhouse/server/index.js +278 -0
- package/plugins/project-links/wheelhouse/ui/index.js +87 -0
- package/plugins/vault/.wheelhouse-plugin/plugin.json +22 -0
- package/plugins/vault/README.md +18 -0
- package/plugins/vault/wheelhouse/server/index.js +297 -0
- package/build/client/_app/immutable/assets/0.DaQhCSel.css +0 -1
- package/build/client/_app/immutable/assets/0.DaQhCSel.css.br +0 -0
- package/build/client/_app/immutable/assets/0.DaQhCSel.css.gz +0 -0
- package/build/client/_app/immutable/assets/12.DT1C9nmd.css +0 -1
- package/build/client/_app/immutable/assets/12.DT1C9nmd.css.br +0 -0
- package/build/client/_app/immutable/assets/12.DT1C9nmd.css.gz +0 -0
- package/build/client/_app/immutable/assets/14.CjNfSPQ6.css +0 -1
- package/build/client/_app/immutable/assets/14.CjNfSPQ6.css.br +0 -0
- package/build/client/_app/immutable/assets/14.CjNfSPQ6.css.gz +0 -0
- package/build/client/_app/immutable/assets/15.KLSHp5Yu.css +0 -1
- package/build/client/_app/immutable/assets/15.KLSHp5Yu.css.br +0 -0
- package/build/client/_app/immutable/assets/15.KLSHp5Yu.css.gz +0 -0
- package/build/client/_app/immutable/chunks/36FDwM1G.js +0 -1
- package/build/client/_app/immutable/chunks/36FDwM1G.js.br +0 -0
- package/build/client/_app/immutable/chunks/36FDwM1G.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B1XxiJam.js +0 -1
- package/build/client/_app/immutable/chunks/B1XxiJam.js.br +0 -0
- package/build/client/_app/immutable/chunks/B1XxiJam.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B1bNvkZf.js +0 -1
- package/build/client/_app/immutable/chunks/B1bNvkZf.js.br +0 -0
- package/build/client/_app/immutable/chunks/B1bNvkZf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B2wEHue2.js +0 -1
- package/build/client/_app/immutable/chunks/B2wEHue2.js.br +0 -0
- package/build/client/_app/immutable/chunks/B2wEHue2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BEAYWcbT.js +0 -1
- package/build/client/_app/immutable/chunks/BEAYWcbT.js.br +0 -0
- package/build/client/_app/immutable/chunks/BEAYWcbT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BGINfGsV.js +0 -1
- package/build/client/_app/immutable/chunks/BGINfGsV.js.br +0 -4
- package/build/client/_app/immutable/chunks/BGINfGsV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BHsdHLbF.js +0 -1
- package/build/client/_app/immutable/chunks/BHsdHLbF.js.br +0 -0
- package/build/client/_app/immutable/chunks/BHsdHLbF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BORDV711.js +0 -1
- package/build/client/_app/immutable/chunks/BORDV711.js.br +0 -0
- package/build/client/_app/immutable/chunks/BORDV711.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BR5v76-T.js +0 -1
- package/build/client/_app/immutable/chunks/BR5v76-T.js.br +0 -0
- package/build/client/_app/immutable/chunks/BR5v76-T.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BUo4hMcM.js +0 -1
- package/build/client/_app/immutable/chunks/BUo4hMcM.js.br +0 -0
- package/build/client/_app/immutable/chunks/BUo4hMcM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BVVO3JPx.js +0 -1
- package/build/client/_app/immutable/chunks/BVVO3JPx.js.br +0 -0
- package/build/client/_app/immutable/chunks/BVVO3JPx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BWJa0dU7.js +0 -1
- package/build/client/_app/immutable/chunks/BWJa0dU7.js.br +0 -0
- package/build/client/_app/immutable/chunks/BWJa0dU7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bfi4vm-w.js +0 -1
- package/build/client/_app/immutable/chunks/Bfi4vm-w.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bfi4vm-w.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BiTivU7x.js +0 -1
- package/build/client/_app/immutable/chunks/BiTivU7x.js.br +0 -0
- package/build/client/_app/immutable/chunks/BiTivU7x.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BiuLIp4b.js +0 -1
- package/build/client/_app/immutable/chunks/BiuLIp4b.js.br +0 -0
- package/build/client/_app/immutable/chunks/BiuLIp4b.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bns_F-QV.js +0 -1
- package/build/client/_app/immutable/chunks/Bns_F-QV.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bns_F-QV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Brlpgp90.js +0 -1
- package/build/client/_app/immutable/chunks/Brlpgp90.js.br +0 -0
- package/build/client/_app/immutable/chunks/Brlpgp90.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BunkbzFG.js +0 -1
- package/build/client/_app/immutable/chunks/BunkbzFG.js.br +0 -0
- package/build/client/_app/immutable/chunks/BunkbzFG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BwOfqJw9.js +0 -1
- package/build/client/_app/immutable/chunks/BwOfqJw9.js.br +0 -0
- package/build/client/_app/immutable/chunks/BwOfqJw9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C-xrRA1Y.js +0 -1
- package/build/client/_app/immutable/chunks/C-xrRA1Y.js.br +0 -0
- package/build/client/_app/immutable/chunks/C-xrRA1Y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C2_XZrIO.js +0 -7
- package/build/client/_app/immutable/chunks/C2_XZrIO.js.br +0 -0
- package/build/client/_app/immutable/chunks/C2_XZrIO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C2d4bDYU.js +0 -1
- package/build/client/_app/immutable/chunks/C2d4bDYU.js.br +0 -0
- package/build/client/_app/immutable/chunks/C2d4bDYU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C6BQPSOs.js +0 -62
- package/build/client/_app/immutable/chunks/C6BQPSOs.js.br +0 -0
- package/build/client/_app/immutable/chunks/C6BQPSOs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CDphfOBv.js +0 -1
- package/build/client/_app/immutable/chunks/CDphfOBv.js.br +0 -0
- package/build/client/_app/immutable/chunks/CDphfOBv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CIE0U5Ih.js +0 -1
- package/build/client/_app/immutable/chunks/CIE0U5Ih.js.br +0 -0
- package/build/client/_app/immutable/chunks/CIE0U5Ih.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CIfcjhKg.js +0 -14
- package/build/client/_app/immutable/chunks/CIfcjhKg.js.br +0 -0
- package/build/client/_app/immutable/chunks/CIfcjhKg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CKhg4Tm6.js +0 -1
- package/build/client/_app/immutable/chunks/CKhg4Tm6.js.br +0 -0
- package/build/client/_app/immutable/chunks/CKhg4Tm6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CLs9Rkbg.js +0 -1
- package/build/client/_app/immutable/chunks/CLs9Rkbg.js.br +0 -0
- package/build/client/_app/immutable/chunks/CLs9Rkbg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/COQ3aAYj.js +0 -1
- package/build/client/_app/immutable/chunks/COQ3aAYj.js.br +0 -0
- package/build/client/_app/immutable/chunks/COQ3aAYj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/COiIt96y.js +0 -1
- package/build/client/_app/immutable/chunks/COiIt96y.js.br +0 -0
- package/build/client/_app/immutable/chunks/COiIt96y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CQ7gIAH8.js +0 -1
- package/build/client/_app/immutable/chunks/CQ7gIAH8.js.br +0 -2
- package/build/client/_app/immutable/chunks/CQ7gIAH8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CQlHU-Rx.js +0 -1
- package/build/client/_app/immutable/chunks/CQlHU-Rx.js.br +0 -0
- package/build/client/_app/immutable/chunks/CQlHU-Rx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CXfdgbLv.js +0 -1
- package/build/client/_app/immutable/chunks/CXfdgbLv.js.br +0 -0
- package/build/client/_app/immutable/chunks/CXfdgbLv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CdOazBBu.js +0 -1
- package/build/client/_app/immutable/chunks/CdOazBBu.js.br +0 -0
- package/build/client/_app/immutable/chunks/CdOazBBu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CeYIQAXD.js +0 -1
- package/build/client/_app/immutable/chunks/CeYIQAXD.js.br +0 -0
- package/build/client/_app/immutable/chunks/CeYIQAXD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CfdzAfq2.js +0 -1
- package/build/client/_app/immutable/chunks/CfdzAfq2.js.br +0 -0
- package/build/client/_app/immutable/chunks/CfdzAfq2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CkFDaaNz.js +0 -1
- package/build/client/_app/immutable/chunks/CkFDaaNz.js.br +0 -0
- package/build/client/_app/immutable/chunks/CkFDaaNz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CkLriSVx.js +0 -1
- package/build/client/_app/immutable/chunks/CkLriSVx.js.br +0 -0
- package/build/client/_app/immutable/chunks/CkLriSVx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Clzs_eXS.js +0 -5
- package/build/client/_app/immutable/chunks/Clzs_eXS.js.br +0 -0
- package/build/client/_app/immutable/chunks/Clzs_eXS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CrCQ2NNA.js +0 -1
- package/build/client/_app/immutable/chunks/CrCQ2NNA.js.br +0 -0
- package/build/client/_app/immutable/chunks/CrCQ2NNA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CrgqcyB_.js +0 -1
- package/build/client/_app/immutable/chunks/CrgqcyB_.js.br +0 -0
- package/build/client/_app/immutable/chunks/CrgqcyB_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CtlVBKf-.js +0 -1
- package/build/client/_app/immutable/chunks/CtlVBKf-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CtlVBKf-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D4aeBIhU.js +0 -1
- package/build/client/_app/immutable/chunks/D4aeBIhU.js.br +0 -0
- package/build/client/_app/immutable/chunks/D4aeBIhU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DC8T2WRZ.js +0 -1
- package/build/client/_app/immutable/chunks/DC8T2WRZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DC8T2WRZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DGy76IbW.js +0 -2
- package/build/client/_app/immutable/chunks/DGy76IbW.js.br +0 -0
- package/build/client/_app/immutable/chunks/DGy76IbW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DIABVMrA.js +0 -1
- package/build/client/_app/immutable/chunks/DIABVMrA.js.br +0 -0
- package/build/client/_app/immutable/chunks/DIABVMrA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DLith9Yi.js +0 -1
- package/build/client/_app/immutable/chunks/DLith9Yi.js.br +0 -0
- package/build/client/_app/immutable/chunks/DLith9Yi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Da92_52d.js +0 -1
- package/build/client/_app/immutable/chunks/Da92_52d.js.br +0 -0
- package/build/client/_app/immutable/chunks/Da92_52d.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Db0WMrvR.js +0 -1
- package/build/client/_app/immutable/chunks/Db0WMrvR.js.br +0 -0
- package/build/client/_app/immutable/chunks/Db0WMrvR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dlb_KqyS.js +0 -2
- package/build/client/_app/immutable/chunks/Dlb_KqyS.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dlb_KqyS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dq9kJk5R.js +0 -1
- package/build/client/_app/immutable/chunks/Dq9kJk5R.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dq9kJk5R.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DxGQT-Hz.js +0 -1
- package/build/client/_app/immutable/chunks/DxGQT-Hz.js.br +0 -0
- package/build/client/_app/immutable/chunks/DxGQT-Hz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ET-O1REu.js +0 -1
- package/build/client/_app/immutable/chunks/ET-O1REu.js.br +0 -0
- package/build/client/_app/immutable/chunks/ET-O1REu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/FQ69txbU.js +0 -1
- package/build/client/_app/immutable/chunks/FQ69txbU.js.br +0 -0
- package/build/client/_app/immutable/chunks/FQ69txbU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/L-6wuY5f.js +0 -2
- package/build/client/_app/immutable/chunks/L-6wuY5f.js.br +0 -0
- package/build/client/_app/immutable/chunks/L-6wuY5f.js.gz +0 -0
- package/build/client/_app/immutable/chunks/M201SoVK.js +0 -1
- package/build/client/_app/immutable/chunks/M201SoVK.js.br +0 -1
- package/build/client/_app/immutable/chunks/M201SoVK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/OeqXO44y.js +0 -1
- package/build/client/_app/immutable/chunks/OeqXO44y.js.br +0 -0
- package/build/client/_app/immutable/chunks/OeqXO44y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/PPVm8Dsz.js +0 -1
- package/build/client/_app/immutable/chunks/PPVm8Dsz.js.br +0 -0
- package/build/client/_app/immutable/chunks/PPVm8Dsz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/QAFSHLn2.js +0 -1
- package/build/client/_app/immutable/chunks/QAFSHLn2.js.br +0 -0
- package/build/client/_app/immutable/chunks/QAFSHLn2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Tm9AblHs.js +0 -1
- package/build/client/_app/immutable/chunks/Tm9AblHs.js.br +0 -0
- package/build/client/_app/immutable/chunks/Tm9AblHs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/_7N5fmOy.js +0 -2
- package/build/client/_app/immutable/chunks/_7N5fmOy.js.br +0 -0
- package/build/client/_app/immutable/chunks/_7N5fmOy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/eMSiEzFi.js +0 -1
- package/build/client/_app/immutable/chunks/eMSiEzFi.js.br +0 -0
- package/build/client/_app/immutable/chunks/eMSiEzFi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/euRlC7pA.js +0 -1
- package/build/client/_app/immutable/chunks/euRlC7pA.js.br +0 -1
- package/build/client/_app/immutable/chunks/euRlC7pA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/hBAvbyDe.js +0 -4
- package/build/client/_app/immutable/chunks/hBAvbyDe.js.br +0 -0
- package/build/client/_app/immutable/chunks/hBAvbyDe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/iVpzjqp1.js +0 -1
- package/build/client/_app/immutable/chunks/iVpzjqp1.js.br +0 -0
- package/build/client/_app/immutable/chunks/iVpzjqp1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/m3YfhLk1.js +0 -1
- package/build/client/_app/immutable/chunks/m3YfhLk1.js.br +0 -0
- package/build/client/_app/immutable/chunks/m3YfhLk1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/p7x6PRF0.js +0 -1
- package/build/client/_app/immutable/chunks/p7x6PRF0.js.br +0 -0
- package/build/client/_app/immutable/chunks/p7x6PRF0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/t4rxsdjl.js +0 -74
- package/build/client/_app/immutable/chunks/t4rxsdjl.js.br +0 -0
- package/build/client/_app/immutable/chunks/t4rxsdjl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/uD7-7yV9.js +0 -1
- package/build/client/_app/immutable/chunks/uD7-7yV9.js.br +0 -4
- package/build/client/_app/immutable/chunks/uD7-7yV9.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.Dzyng0dn.js +0 -2
- package/build/client/_app/immutable/entry/app.Dzyng0dn.js.br +0 -0
- package/build/client/_app/immutable/entry/app.Dzyng0dn.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.9fa7Jj4n.js +0 -1
- package/build/client/_app/immutable/entry/start.9fa7Jj4n.js.br +0 -0
- package/build/client/_app/immutable/entry/start.9fa7Jj4n.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CaNaBMzB.js +0 -5
- package/build/client/_app/immutable/nodes/0.CaNaBMzB.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CaNaBMzB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BCMmEnhe.js +0 -1
- package/build/client/_app/immutable/nodes/1.BCMmEnhe.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BCMmEnhe.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.BO2VoEpn.js +0 -14
- package/build/client/_app/immutable/nodes/10.BO2VoEpn.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.BO2VoEpn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.BOR5Lt2T.js +0 -77
- package/build/client/_app/immutable/nodes/11.BOR5Lt2T.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.BOR5Lt2T.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.BGnaA6g1.js +0 -32
- package/build/client/_app/immutable/nodes/12.BGnaA6g1.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.BGnaA6g1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.BMHoWbLt.js +0 -5
- package/build/client/_app/immutable/nodes/13.BMHoWbLt.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.BMHoWbLt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.BMIOGjF-.js +0 -1
- package/build/client/_app/immutable/nodes/14.BMIOGjF-.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.BMIOGjF-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.BDQ6GGok.js +0 -10
- package/build/client/_app/immutable/nodes/15.BDQ6GGok.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.BDQ6GGok.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.BYZHF6Y1.js +0 -6
- package/build/client/_app/immutable/nodes/16.BYZHF6Y1.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.BYZHF6Y1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DmiGTHZF.js +0 -4
- package/build/client/_app/immutable/nodes/2.DmiGTHZF.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DmiGTHZF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.qyqfVtUJ.js +0 -5
- package/build/client/_app/immutable/nodes/3.qyqfVtUJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.qyqfVtUJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.DMxs5dS-.js +0 -3
- package/build/client/_app/immutable/nodes/4.DMxs5dS-.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.DMxs5dS-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.pFV6qgYd.js +0 -7
- package/build/client/_app/immutable/nodes/5.pFV6qgYd.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.pFV6qgYd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.DKZQPZQe.js +0 -4
- package/build/client/_app/immutable/nodes/6.DKZQPZQe.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.DKZQPZQe.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.DmCbsQpY.js +0 -1
- package/build/client/_app/immutable/nodes/7.DmCbsQpY.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.DmCbsQpY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.C5_-lQ12.js +0 -1
- package/build/client/_app/immutable/nodes/8.C5_-lQ12.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.C5_-lQ12.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.DdS_3rh5.js +0 -1
- package/build/client/_app/immutable/nodes/9.DdS_3rh5.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.DdS_3rh5.js.gz +0 -0
- package/build/server/chunks/chunks/AllowanceMeter.js-C9jRsAGU.js +0 -42
- package/build/server/chunks/chunks/DecisionCard.js-u1VQ9s_v.js +0 -350
- package/build/server/chunks/chunks/DictateTextarea.js-BlEnOzcN.js +0 -85
- package/build/server/chunks/chunks/EtaLine.js-Pa4_VV6V.js +0 -79
- package/build/server/chunks/chunks/Icon.js-D7CY3joB.js +0 -129
- package/build/server/chunks/chunks/InsightsNav.js-BlxFBJfj.js +0 -22
- package/build/server/chunks/chunks/MicButton.js-BZSQAyuM.js +0 -336
- package/build/server/chunks/chunks/QuestionList.js-DglKezUe.js +0 -259
- package/build/server/chunks/chunks/SlotContent.js-YqZXXtRz.js +0 -1977
- package/build/server/chunks/chunks/StageTrack.js-BaorW-yk.js +0 -59
- package/build/server/chunks/chunks/TimeBar.js-k38rc7ZI.js +0 -32
- package/build/server/chunks/chunks/TimeLegend.js-BQVvgsvs.js +0 -29
- package/build/server/chunks/chunks/access.js-XFAczbHS.js +0 -816
- package/build/server/chunks/chunks/anchor.js-ByXDBfbi.js +0 -20
- package/build/server/chunks/chunks/arrow-down.js-DXDJc9EE.js +0 -18
- package/build/server/chunks/chunks/arrow-left.js-6Yey35CE.js +0 -18
- package/build/server/chunks/chunks/arrow-right.js-CfbPWRqu.js +0 -18
- package/build/server/chunks/chunks/arrow-up.js-AhghNbhW.js +0 -18
- package/build/server/chunks/chunks/bell.js-CAlv92RY.js +0 -143
- package/build/server/chunks/chunks/blocks.js-BL9jLCe-.js +0 -710
- package/build/server/chunks/chunks/bus.svelte.js-DRTptEhF.js +0 -9
- package/build/server/chunks/chunks/button.js-HeBqLheH.js +0 -7311
- package/build/server/chunks/chunks/chat.svelte.js-Cgdbtjbw.js +0 -537
- package/build/server/chunks/chunks/check.js-bmUhmMEz.js +0 -15
- package/build/server/chunks/chunks/checks.js-BnIxIaus.js +0 -175
- package/build/server/chunks/chunks/chevron-down.js-D75hVSIe.js +0 -15
- package/build/server/chunks/chunks/chevron-right.js-yhLg_GaH.js +0 -15
- package/build/server/chunks/chunks/circle-dashed.js-Bm3gZCXK.js +0 -24
- package/build/server/chunks/chunks/client.js-BUNengrw.js +0 -24
- package/build/server/chunks/chunks/clock.js-D7JTvRbC.js +0 -18
- package/build/server/chunks/chunks/compass.js-Tq6uiG8I.js +0 -23
- package/build/server/chunks/chunks/detail.js-COMRu1TY.js +0 -133
- package/build/server/chunks/chunks/external-link.js-WxVF0xXO.js +0 -24
- package/build/server/chunks/chunks/file-text.js-CAo3vdqd.js +0 -26
- package/build/server/chunks/chunks/gauge.js-Dw9bgE72.js +0 -35
- package/build/server/chunks/chunks/git-pull-request.js-Cx1w8BQr.js +0 -20
- package/build/server/chunks/chunks/hammer.js-fp_Kidfj.js +0 -24
- package/build/server/chunks/chunks/hand.js-xkYPYJZj.js +0 -37
- package/build/server/chunks/chunks/harbour.js-xu7EfIHk.js +0 -113
- package/build/server/chunks/chunks/http.js-TzZuOtxn.js +0 -25
- package/build/server/chunks/chunks/http2.js-BO84xGO4.js +0 -26
- package/build/server/chunks/chunks/inbox.js-CW2sFmx9.js +0 -114
- package/build/server/chunks/chunks/inbox.svelte.js-OoKhjjWM.js +0 -134
- package/build/server/chunks/chunks/index-server.js-CtyUzIGY.js +0 -17
- package/build/server/chunks/chunks/index-server2.js-DMc-UvjC.js +0 -19
- package/build/server/chunks/chunks/index.js-Bn6j9diM.js +0 -1524
- package/build/server/chunks/chunks/index2.js-CXaRTuov.js +0 -46
- package/build/server/chunks/chunks/internal.js-C_uDXIpd.js +0 -146
- package/build/server/chunks/chunks/keys.js-CdtCzv-v.js +0 -20
- package/build/server/chunks/chunks/live.svelte.js-BRUTNc9D.js +0 -196
- package/build/server/chunks/chunks/loader-circle.js-IYRaUYWq.js +0 -16
- package/build/server/chunks/chunks/message-circle-question-mark.js-DwrMi0ty.js +0 -25
- package/build/server/chunks/chunks/message-square-text.js-N5uEmy8L.js +0 -25
- package/build/server/chunks/chunks/message-square.js-Hp-6BHgG.js +0 -22
- package/build/server/chunks/chunks/minus.js-bsfnwE-h.js +0 -15
- package/build/server/chunks/chunks/monitor-play.js-B7qbbPH6.js +0 -28
- package/build/server/chunks/chunks/preview.js-CVD-Kwks.js +0 -68
- package/build/server/chunks/chunks/prreview.js-C5XxDIu2.js +0 -85
- package/build/server/chunks/chunks/root.js-CQzYN4Pu.js +0 -3105
- package/build/server/chunks/chunks/runtime.js-fVZqJsqU.js +0 -13280
- package/build/server/chunks/chunks/scale.js-vP4G0lZM.js +0 -21
- package/build/server/chunks/chunks/shield-check.js-PJLnCKD9.js +0 -23
- package/build/server/chunks/chunks/slots.svelte.js-0Ejhe-hS.js +0 -34
- package/build/server/chunks/chunks/spec.js-B0yI1XqG.js +0 -307
- package/build/server/chunks/chunks/split.js-BsCU24rQ.js +0 -20
- package/build/server/chunks/chunks/square-terminal.js-D5Z4Sl2-.js +0 -47
- package/build/server/chunks/chunks/tone.js-r2qFVrZC.js +0 -30
- package/build/server/chunks/chunks/trash.js-DYFbRevY.js +0 -46
- package/build/server/chunks/chunks/triangle-alert.js-DuE40HSU.js +0 -38
- package/build/server/chunks/chunks/utils.js-DTSGDHlH.js +0 -2956
- package/build/server/chunks/chunks/view.js-tvgxW0fE.js +0 -76
- package/build/server/chunks/chunks/view2.js-BdUXqNlY.js +0 -87
- package/build/server/chunks/chunks/views.js-B0wP-tuB.js +0 -137
- package/build/server/chunks/chunks/waypoints.js-D3HN7bje.js +0 -67
- package/build/server/chunks/chunks/x.js-tlds9Ooz.js +0 -18
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-gil57_h5.js +0 -93
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-CWFdWS2r.js +0 -74
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-0h1duDYU.js +0 -110
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-DUtAFI8B.js +0 -42
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-BVjvk1Kr.js +0 -35
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-CZKuOhTq.js +0 -57
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-DbYNDgMY.js +0 -45
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-Dez_V83F.js +0 -35
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-XScFl7NC.js +0 -27
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-BOvoz2OJ.js +0 -27
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-DuUHrmV4.js +0 -51
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-P-j2jdcu.js +0 -27
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-BuaL2gbp.js +0 -27
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-Dwoaon5p.js +0 -32
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-CpRObQnb.js +0 -41
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-Dml05WPU.js +0 -53
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-rp9RtX4F.js +0 -40
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-DLdJWcj-.js +0 -63
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-Co_h1q_m.js +0 -46
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-SRzfx-2h.js +0 -46
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-lFuRL8QC.js +0 -35
- package/build/server/chunks/entries/endpoints/api/specs/_id_/_server.ts.js-D-QFRPpb.js +0 -59
- package/build/server/chunks/entries/endpoints/api/specs/_id_/build-request/_server.ts.js-CEZLC3cJ.js +0 -47
- package/build/server/chunks/entries/endpoints/api/specs/_id_/comments/_comment_/_server.ts.js-BHNzMZ7H.js +0 -36
- package/build/server/chunks/entries/endpoints/api/specs/_id_/comments/_server.ts.js-DHMiene7.js +0 -57
- package/build/server/chunks/entries/endpoints/api/specs/_id_/images/_name_/_server.ts.js-BxmqxnuG.js +0 -49
- package/build/server/chunks/entries/endpoints/api/specs/_id_/images/_server.ts.js-CvRTk1JX.js +0 -55
- package/build/server/chunks/entries/endpoints/api/specs/_id_/sent/_server.ts.js-VHXvHVC9.js +0 -36
- package/build/server/chunks/entries/endpoints/api/specs/_id_/turn/_server.ts.js-BjbvOskQ.js +0 -82
- package/build/server/chunks/entries/endpoints/api/specs/_server.ts.js-CUNgX4FQ.js +0 -40
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-CTJxYuKH.js +0 -32
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-BsDmTo5q.js +0 -51
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-DmDd31bm.js +0 -39
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-xNagO0jC.js +0 -84
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-fNh7CbDX.js +0 -102
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/_server.ts.js-DL1M1PqI.js +0 -34
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/ask/_server.ts.js-G8t4mipV.js +0 -40
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/check/_server.ts.js-B0ymV1Pa.js +0 -39
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/guide/_server.ts.js-Bi08FNu1.js +0 -39
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/runs/_run_/stop/_server.ts.js-C_TftzeG.js +0 -32
- package/build/server/chunks/entries/fallbacks/error.svelte.js-DlN_tCrh.js +0 -15
- package/build/server/chunks/entries/hooks.server.js-IwCMs7or.js +0 -40
- package/build/server/chunks/entries/pages/_layout.server.ts.js-DQI-pH0T.js +0 -20
- package/build/server/chunks/entries/pages/_layout.svelte.js-BJuZaosz.js +0 -10454
- package/build/server/chunks/entries/pages/_page.server.ts.js-PgqrVobO.js +0 -16
- package/build/server/chunks/entries/pages/_page.svelte.js-BI4c5H0n.js +0 -3699
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-SL6FScVj.js +0 -11
- package/build/server/chunks/entries/pages/decisions/_page.svelte.js-ClTz3O_K.js +0 -167
- package/build/server/chunks/entries/pages/harbour/_page.server.ts.js-DIvSuIkZ.js +0 -20
- package/build/server/chunks/entries/pages/harbour/_page.svelte.js-43FRNSVK.js +0 -1346
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-CGLa7Yrr.js +0 -11
- package/build/server/chunks/entries/pages/headroom/_page.svelte.js-zmKQdAwy.js +0 -135
- package/build/server/chunks/entries/pages/inbox/_page.svelte.js-wTvAFPNM.js +0 -175
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-BoG4CT_l.js +0 -15
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-DfAqJJ3i.js +0 -55
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-BVTs44zi.js +0 -15
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-B472Pugu.js +0 -66
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-CER4deq2.js +0 -14
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-CWjEArXY.js +0 -394
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-DiCdDip4.js +0 -15
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.svelte.js-iHacn81K.js +0 -1859
- package/build/server/chunks/entries/pages/projects/_page.server.ts.js-BH_VcZlY.js +0 -37
- package/build/server/chunks/entries/pages/projects/_page.svelte.js-B_NQ-Wg3.js +0 -270
- package/build/server/chunks/entries/pages/spec/_page.server.ts.js-CTzZ3jGx.js +0 -31
- package/build/server/chunks/entries/pages/spec/_page.svelte.js-BJjweG9u.js +0 -1561
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-YgQ9nhRn.js +0 -25
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Dr2wwDJG.js +0 -2063
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-DdBsWj8_.js +0 -24
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.svelte.js-DOyZ1QzI.js +0 -145
- package/build/server/chunks/entries/pages/tasks/_id_/review/_page.server.ts.js-DY0lh_8-.js +0 -15
- package/build/server/chunks/entries/pages/tasks/_id_/review/_page.svelte.js-BDaRELgE.js +0 -692
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-kriWArLo.js +0 -11
- package/build/server/chunks/entries/pages/time/_page.svelte.js-CSXGxvVs.js +0 -107
- package/build/server/chunks/handler-BZ-YqSXJ.js +0 -1474
- package/build/server/chunks/index.js-CmcXVwBU.js +0 -4296
- package/build/server/chunks/manifest.js-DqwS7AJB.js +0 -434
- package/build/server/chunks/nodes/0.js-DS2IDkUW.js +0 -32
- package/build/server/chunks/nodes/1.js-_0OBbjVP.js +0 -9
- package/build/server/chunks/nodes/10.js-CMSpRrcc.js +0 -33
- package/build/server/chunks/nodes/11.js-D1M01GlQ.js +0 -33
- package/build/server/chunks/nodes/12.js-DaC2vk2U.js +0 -37
- package/build/server/chunks/nodes/13.js-BSWYX8Ak.js +0 -33
- package/build/server/chunks/nodes/14.js-CY9oBxXM.js +0 -33
- package/build/server/chunks/nodes/15.js-Bg9hD2dR.js +0 -33
- package/build/server/chunks/nodes/16.js-qlcIEvV6.js +0 -32
- package/build/server/chunks/nodes/2.js-CW_-me_g.js +0 -32
- package/build/server/chunks/nodes/3.js-CUCcQUgI.js +0 -32
- package/build/server/chunks/nodes/4.js-CSYxmBts.js +0 -34
- package/build/server/chunks/nodes/5.js-CHwpTnZj.js +0 -32
- package/build/server/chunks/nodes/6.js-XHZwJGEg.js +0 -9
- package/build/server/chunks/nodes/7.js-DK_vuZQs.js +0 -32
- package/build/server/chunks/nodes/8.js-Crd93Nlx.js +0 -34
- package/build/server/chunks/nodes/9.js-CWqhWBb9.js +0 -32
- /package/build/client/_app/immutable/assets/{4.5dJKCkOT.css → 5.5dJKCkOT.css} +0 -0
- /package/build/client/_app/immutable/assets/{4.5dJKCkOT.css.br → 5.5dJKCkOT.css.br} +0 -0
- /package/build/client/_app/immutable/assets/{4.5dJKCkOT.css.gz → 5.5dJKCkOT.css.gz} +0 -0
- /package/build/client/_app/immutable/assets/{MicButton.Dga9zAug.css → checks.Dga9zAug.css} +0 -0
- /package/build/client/_app/immutable/assets/{MicButton.Dga9zAug.css.br → checks.Dga9zAug.css.br} +0 -0
- /package/build/client/_app/immutable/assets/{MicButton.Dga9zAug.css.gz → checks.Dga9zAug.css.gz} +0 -0
|
@@ -1,3105 +0,0 @@
|
|
|
1
|
-
import { r as render, L as LEGACY_PROPS, d as define_property, C as CONNECTED, R as REACTION_RAN, E as ERROR_VALUE, a as COMMENT_NODE, H as HYDRATION_START, b as HYDRATION_ERROR, S as STATE_SYMBOL, c as COMPONENT_SYMBOL, o as object_prototype, e as array_prototype, U as UNINITIALIZED, g as get_descriptor, D as DERIVED, f as DIRTY, M as MAYBE_DIRTY, i as includes, h as is_extensible, j as CLASS_CACHE, A as ATTRIBUTES_CACHE, k as STYLE_CACHE, T as TEXT_CACHE, l as get_prototype_of, m as is_array, n as DESTROYED, p as ROOT_EFFECT, B as BRANCH_EFFECT, q as CLEAN, I as INERT, s as EFFECT, t as BLOCK_EFFECT, u as ASYNC, v as EAGER_EFFECT, w as deferred, x as RENDER_EFFECT, y as MANAGED_EFFECT, z as run_all, F as REACTION_IS_UPDATING, G as EFFECT_PRESERVED, J as EFFECT_TRANSPARENT, P as PAUSED, K as HEAD_EFFECT, N as DESTROYING, O as BOUNDARY_EFFECT, Q as index_of, V as STALE_REACTION, W as noop, X as array_from, Y as is_passive_event, Z as setContext, _ as derived, $ as HYDRATION_END, a0 as HYDRATION_START_ELSE, a1 as HYDRATION_START_FAILED, a2 as USER_EFFECT } from './index.js-Bn6j9diM.js';
|
|
2
|
-
|
|
3
|
-
const browser = false;
|
|
4
|
-
function equals(value) {
|
|
5
|
-
return value === this.v;
|
|
6
|
-
}
|
|
7
|
-
function safe_not_equal(a, b) {
|
|
8
|
-
return a != a ? b == b : a !== b || a !== null && typeof a === "object" || typeof a === "function";
|
|
9
|
-
}
|
|
10
|
-
function safe_equals(value) {
|
|
11
|
-
return !safe_not_equal(value, this.v);
|
|
12
|
-
}
|
|
13
|
-
function effect_update_depth_exceeded() {
|
|
14
|
-
{
|
|
15
|
-
throw new Error(`https://svelte.dev/e/effect_update_depth_exceeded`);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
function hydration_failed() {
|
|
19
|
-
{
|
|
20
|
-
throw new Error(`https://svelte.dev/e/hydration_failed`);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function state_descriptors_fixed() {
|
|
24
|
-
{
|
|
25
|
-
throw new Error(`https://svelte.dev/e/state_descriptors_fixed`);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function state_prototype_fixed() {
|
|
29
|
-
{
|
|
30
|
-
throw new Error(`https://svelte.dev/e/state_prototype_fixed`);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
function state_unsafe_mutation() {
|
|
34
|
-
{
|
|
35
|
-
throw new Error(`https://svelte.dev/e/state_unsafe_mutation`);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
function svelte_boundary_reset_onerror() {
|
|
39
|
-
{
|
|
40
|
-
throw new Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
let tracing_mode_flag = false;
|
|
44
|
-
let component_context = null;
|
|
45
|
-
function set_component_context(context) {
|
|
46
|
-
component_context = context;
|
|
47
|
-
}
|
|
48
|
-
function push(props, runes = false, fn) {
|
|
49
|
-
component_context = {
|
|
50
|
-
p: component_context,
|
|
51
|
-
i: false,
|
|
52
|
-
c: null,
|
|
53
|
-
e: null,
|
|
54
|
-
s: props,
|
|
55
|
-
x: null,
|
|
56
|
-
r: (
|
|
57
|
-
/** @type {Effect} */
|
|
58
|
-
active_effect
|
|
59
|
-
),
|
|
60
|
-
l: null
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
function pop(component) {
|
|
64
|
-
var context = (
|
|
65
|
-
/** @type {ComponentContext} */
|
|
66
|
-
component_context
|
|
67
|
-
);
|
|
68
|
-
var effects = context.e;
|
|
69
|
-
if (effects !== null) {
|
|
70
|
-
context.e = null;
|
|
71
|
-
for (var fn of effects) {
|
|
72
|
-
create_user_effect(fn);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
context.i = true;
|
|
76
|
-
component_context = context.p;
|
|
77
|
-
return mark_as_component(component);
|
|
78
|
-
}
|
|
79
|
-
function mark_as_component(component = {}) {
|
|
80
|
-
define_property(component, COMPONENT_SYMBOL, { value: true });
|
|
81
|
-
return component;
|
|
82
|
-
}
|
|
83
|
-
function is_runes() {
|
|
84
|
-
return true;
|
|
85
|
-
}
|
|
86
|
-
let micro_tasks = [];
|
|
87
|
-
function run_micro_tasks() {
|
|
88
|
-
var tasks = micro_tasks;
|
|
89
|
-
micro_tasks = [];
|
|
90
|
-
run_all(tasks);
|
|
91
|
-
}
|
|
92
|
-
function queue_micro_task(fn) {
|
|
93
|
-
if (micro_tasks.length === 0 && !is_flushing_sync) {
|
|
94
|
-
var tasks = micro_tasks;
|
|
95
|
-
queueMicrotask(() => {
|
|
96
|
-
if (tasks === micro_tasks) run_micro_tasks();
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
micro_tasks.push(fn);
|
|
100
|
-
}
|
|
101
|
-
function flush_tasks() {
|
|
102
|
-
while (micro_tasks.length > 0) {
|
|
103
|
-
run_micro_tasks();
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
function derived_inert() {
|
|
107
|
-
{
|
|
108
|
-
console.warn(`https://svelte.dev/e/derived_inert`);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
function hydration_mismatch(location) {
|
|
112
|
-
{
|
|
113
|
-
console.warn(`https://svelte.dev/e/hydration_mismatch`);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
function svelte_boundary_reset_noop() {
|
|
117
|
-
{
|
|
118
|
-
console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
let hydrating = false;
|
|
122
|
-
function set_hydrating(value) {
|
|
123
|
-
hydrating = value;
|
|
124
|
-
}
|
|
125
|
-
let hydrate_node;
|
|
126
|
-
function set_hydrate_node(node) {
|
|
127
|
-
if (node === null) {
|
|
128
|
-
hydration_mismatch();
|
|
129
|
-
throw HYDRATION_ERROR;
|
|
130
|
-
}
|
|
131
|
-
return hydrate_node = node;
|
|
132
|
-
}
|
|
133
|
-
function hydrate_next() {
|
|
134
|
-
return set_hydrate_node(/* @__PURE__ */ get_next_sibling(hydrate_node));
|
|
135
|
-
}
|
|
136
|
-
function next(count = 1) {
|
|
137
|
-
if (hydrating) {
|
|
138
|
-
var i = count;
|
|
139
|
-
var node = hydrate_node;
|
|
140
|
-
while (i--) {
|
|
141
|
-
node = /** @type {TemplateNode} */
|
|
142
|
-
/* @__PURE__ */ get_next_sibling(node);
|
|
143
|
-
}
|
|
144
|
-
hydrate_node = node;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
function skip_nodes(remove = true) {
|
|
148
|
-
var depth = 0;
|
|
149
|
-
var node = hydrate_node;
|
|
150
|
-
while (true) {
|
|
151
|
-
if (node.nodeType === COMMENT_NODE) {
|
|
152
|
-
var data = (
|
|
153
|
-
/** @type {Comment} */
|
|
154
|
-
node.data
|
|
155
|
-
);
|
|
156
|
-
if (data === HYDRATION_END) {
|
|
157
|
-
if (depth === 0) return node;
|
|
158
|
-
depth -= 1;
|
|
159
|
-
} else if (data === HYDRATION_START || data === HYDRATION_START_ELSE || // "[1", "[2", etc. for if blocks
|
|
160
|
-
data[0] === "[" && !isNaN(Number(data.slice(1)))) {
|
|
161
|
-
depth += 1;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
var next2 = (
|
|
165
|
-
/** @type {TemplateNode} */
|
|
166
|
-
/* @__PURE__ */ get_next_sibling(node)
|
|
167
|
-
);
|
|
168
|
-
if (remove) node.remove();
|
|
169
|
-
node = next2;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
function read_hydration_instruction(node) {
|
|
173
|
-
if (!node || node.nodeType !== COMMENT_NODE) {
|
|
174
|
-
hydration_mismatch();
|
|
175
|
-
throw HYDRATION_ERROR;
|
|
176
|
-
}
|
|
177
|
-
return (
|
|
178
|
-
/** @type {Comment} */
|
|
179
|
-
node.data
|
|
180
|
-
);
|
|
181
|
-
}
|
|
182
|
-
function proxy(value) {
|
|
183
|
-
if (typeof value !== "object" || value === null || STATE_SYMBOL in value || COMPONENT_SYMBOL in value) {
|
|
184
|
-
return value;
|
|
185
|
-
}
|
|
186
|
-
const prototype = get_prototype_of(value);
|
|
187
|
-
if (prototype !== object_prototype && prototype !== array_prototype) {
|
|
188
|
-
return value;
|
|
189
|
-
}
|
|
190
|
-
var sources = /* @__PURE__ */ new Map();
|
|
191
|
-
var is_proxied_array = is_array(value);
|
|
192
|
-
var version = /* @__PURE__ */ state(0);
|
|
193
|
-
var parent_version = update_version;
|
|
194
|
-
var with_parent = (fn) => {
|
|
195
|
-
if (update_version === parent_version) {
|
|
196
|
-
return fn();
|
|
197
|
-
}
|
|
198
|
-
var reaction = active_reaction;
|
|
199
|
-
var version2 = update_version;
|
|
200
|
-
set_active_reaction(null);
|
|
201
|
-
set_update_version(parent_version);
|
|
202
|
-
var result = fn();
|
|
203
|
-
set_active_reaction(reaction);
|
|
204
|
-
set_update_version(version2);
|
|
205
|
-
return result;
|
|
206
|
-
};
|
|
207
|
-
if (is_proxied_array) {
|
|
208
|
-
sources.set("length", /* @__PURE__ */ state(
|
|
209
|
-
/** @type {any[]} */
|
|
210
|
-
value.length
|
|
211
|
-
));
|
|
212
|
-
}
|
|
213
|
-
return new Proxy(
|
|
214
|
-
/** @type {any} */
|
|
215
|
-
value,
|
|
216
|
-
{
|
|
217
|
-
defineProperty(_, prop, descriptor) {
|
|
218
|
-
if (!("value" in descriptor) || descriptor.configurable === false || descriptor.enumerable === false || descriptor.writable === false) {
|
|
219
|
-
state_descriptors_fixed();
|
|
220
|
-
}
|
|
221
|
-
var s = sources.get(prop);
|
|
222
|
-
if (s === void 0) {
|
|
223
|
-
with_parent(() => {
|
|
224
|
-
var s2 = /* @__PURE__ */ state(descriptor.value);
|
|
225
|
-
sources.set(prop, s2);
|
|
226
|
-
return s2;
|
|
227
|
-
});
|
|
228
|
-
} else {
|
|
229
|
-
set(s, descriptor.value, true);
|
|
230
|
-
}
|
|
231
|
-
return true;
|
|
232
|
-
},
|
|
233
|
-
deleteProperty(target, prop) {
|
|
234
|
-
var s = sources.get(prop);
|
|
235
|
-
if (s === void 0) {
|
|
236
|
-
if (prop in target) {
|
|
237
|
-
const s2 = with_parent(() => /* @__PURE__ */ state(UNINITIALIZED));
|
|
238
|
-
sources.set(prop, s2);
|
|
239
|
-
increment(version);
|
|
240
|
-
}
|
|
241
|
-
} else {
|
|
242
|
-
set(s, UNINITIALIZED);
|
|
243
|
-
increment(version);
|
|
244
|
-
}
|
|
245
|
-
return true;
|
|
246
|
-
},
|
|
247
|
-
get(target, prop, receiver) {
|
|
248
|
-
if (prop === STATE_SYMBOL) {
|
|
249
|
-
return value;
|
|
250
|
-
}
|
|
251
|
-
var s = sources.get(prop);
|
|
252
|
-
var exists = prop in target;
|
|
253
|
-
if (s === void 0 && (!exists || get_descriptor(target, prop)?.writable)) {
|
|
254
|
-
s = with_parent(() => {
|
|
255
|
-
var p = proxy(exists ? target[prop] : UNINITIALIZED);
|
|
256
|
-
var s2 = /* @__PURE__ */ state(p);
|
|
257
|
-
return s2;
|
|
258
|
-
});
|
|
259
|
-
sources.set(prop, s);
|
|
260
|
-
}
|
|
261
|
-
if (s !== void 0) {
|
|
262
|
-
var v = get(s);
|
|
263
|
-
return v === UNINITIALIZED ? void 0 : v;
|
|
264
|
-
}
|
|
265
|
-
return Reflect.get(target, prop, receiver);
|
|
266
|
-
},
|
|
267
|
-
getOwnPropertyDescriptor(target, prop) {
|
|
268
|
-
this.has?.(target, prop);
|
|
269
|
-
var descriptor = Reflect.getOwnPropertyDescriptor(target, prop);
|
|
270
|
-
var s = sources.get(prop);
|
|
271
|
-
if (s !== void 0) {
|
|
272
|
-
var value2 = get(s);
|
|
273
|
-
if (value2 === UNINITIALIZED) {
|
|
274
|
-
return void 0;
|
|
275
|
-
}
|
|
276
|
-
if (descriptor && "value" in descriptor) {
|
|
277
|
-
descriptor.value = value2;
|
|
278
|
-
} else {
|
|
279
|
-
return {
|
|
280
|
-
enumerable: true,
|
|
281
|
-
configurable: true,
|
|
282
|
-
value: value2,
|
|
283
|
-
writable: true
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
return descriptor;
|
|
288
|
-
},
|
|
289
|
-
has(target, prop) {
|
|
290
|
-
if (prop === STATE_SYMBOL) {
|
|
291
|
-
return true;
|
|
292
|
-
}
|
|
293
|
-
var s = sources.get(prop);
|
|
294
|
-
var has = s !== void 0 && s.v !== UNINITIALIZED || Reflect.has(target, prop);
|
|
295
|
-
if (s !== void 0 || active_effect !== null && (!has || get_descriptor(target, prop)?.writable)) {
|
|
296
|
-
if (s === void 0) {
|
|
297
|
-
s = with_parent(() => {
|
|
298
|
-
var p = has ? proxy(target[prop]) : UNINITIALIZED;
|
|
299
|
-
var s2 = /* @__PURE__ */ state(p);
|
|
300
|
-
return s2;
|
|
301
|
-
});
|
|
302
|
-
sources.set(prop, s);
|
|
303
|
-
}
|
|
304
|
-
var value2 = get(s);
|
|
305
|
-
if (value2 === UNINITIALIZED) {
|
|
306
|
-
return false;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
return has;
|
|
310
|
-
},
|
|
311
|
-
set(target, prop, value2, receiver) {
|
|
312
|
-
var s = sources.get(prop);
|
|
313
|
-
var has = prop in target;
|
|
314
|
-
if (is_proxied_array && prop === "length") {
|
|
315
|
-
for (var i = value2; i < /** @type {Source<number>} */
|
|
316
|
-
s.v; i += 1) {
|
|
317
|
-
var other_s = sources.get(i + "");
|
|
318
|
-
if (other_s !== void 0) {
|
|
319
|
-
set(other_s, UNINITIALIZED);
|
|
320
|
-
} else if (i in target) {
|
|
321
|
-
other_s = with_parent(() => /* @__PURE__ */ state(UNINITIALIZED));
|
|
322
|
-
sources.set(i + "", other_s);
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
if (s === void 0) {
|
|
327
|
-
if (!has || get_descriptor(target, prop)?.writable) {
|
|
328
|
-
s = with_parent(() => /* @__PURE__ */ state(void 0));
|
|
329
|
-
set(s, proxy(value2));
|
|
330
|
-
sources.set(prop, s);
|
|
331
|
-
}
|
|
332
|
-
} else {
|
|
333
|
-
has = s.v !== UNINITIALIZED;
|
|
334
|
-
var p = with_parent(() => proxy(value2));
|
|
335
|
-
set(s, p);
|
|
336
|
-
}
|
|
337
|
-
var descriptor = Reflect.getOwnPropertyDescriptor(target, prop);
|
|
338
|
-
if (descriptor?.set) {
|
|
339
|
-
descriptor.set.call(receiver, value2);
|
|
340
|
-
}
|
|
341
|
-
if (!has) {
|
|
342
|
-
if (is_proxied_array && typeof prop === "string") {
|
|
343
|
-
var ls = (
|
|
344
|
-
/** @type {Source<number>} */
|
|
345
|
-
sources.get("length")
|
|
346
|
-
);
|
|
347
|
-
var n = Number(prop);
|
|
348
|
-
if (Number.isInteger(n) && n >= ls.v) {
|
|
349
|
-
set(ls, n + 1);
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
increment(version);
|
|
353
|
-
}
|
|
354
|
-
return true;
|
|
355
|
-
},
|
|
356
|
-
ownKeys(target) {
|
|
357
|
-
get(version);
|
|
358
|
-
var own_keys = Reflect.ownKeys(target).filter((key2) => {
|
|
359
|
-
var source3 = sources.get(key2);
|
|
360
|
-
return source3 === void 0 || source3.v !== UNINITIALIZED;
|
|
361
|
-
});
|
|
362
|
-
for (var [key, source2] of sources) {
|
|
363
|
-
if (source2.v !== UNINITIALIZED && !(key in target)) {
|
|
364
|
-
own_keys.push(key);
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
return own_keys;
|
|
368
|
-
},
|
|
369
|
-
setPrototypeOf() {
|
|
370
|
-
state_prototype_fixed();
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
);
|
|
374
|
-
}
|
|
375
|
-
var $window;
|
|
376
|
-
var first_child_getter;
|
|
377
|
-
var next_sibling_getter;
|
|
378
|
-
function init_operations() {
|
|
379
|
-
if ($window !== void 0) {
|
|
380
|
-
return;
|
|
381
|
-
}
|
|
382
|
-
$window = window;
|
|
383
|
-
var element_prototype = Element.prototype;
|
|
384
|
-
var node_prototype = Node.prototype;
|
|
385
|
-
var text_prototype = Text.prototype;
|
|
386
|
-
first_child_getter = get_descriptor(node_prototype, "firstChild").get;
|
|
387
|
-
next_sibling_getter = get_descriptor(node_prototype, "nextSibling").get;
|
|
388
|
-
if (is_extensible(element_prototype)) {
|
|
389
|
-
element_prototype[CLASS_CACHE] = void 0;
|
|
390
|
-
element_prototype[ATTRIBUTES_CACHE] = null;
|
|
391
|
-
element_prototype[STYLE_CACHE] = void 0;
|
|
392
|
-
element_prototype.__e = void 0;
|
|
393
|
-
}
|
|
394
|
-
if (is_extensible(text_prototype)) {
|
|
395
|
-
text_prototype[TEXT_CACHE] = void 0;
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
function create_text(value = "") {
|
|
399
|
-
return document.createTextNode(value);
|
|
400
|
-
}
|
|
401
|
-
// @__NO_SIDE_EFFECTS__
|
|
402
|
-
function get_first_child(node) {
|
|
403
|
-
return (
|
|
404
|
-
/** @type {TemplateNode | null} */
|
|
405
|
-
first_child_getter.call(node)
|
|
406
|
-
);
|
|
407
|
-
}
|
|
408
|
-
// @__NO_SIDE_EFFECTS__
|
|
409
|
-
function get_next_sibling(node) {
|
|
410
|
-
return (
|
|
411
|
-
/** @type {TemplateNode | null} */
|
|
412
|
-
next_sibling_getter.call(node)
|
|
413
|
-
);
|
|
414
|
-
}
|
|
415
|
-
function clear_text_content(node) {
|
|
416
|
-
node.textContent = "";
|
|
417
|
-
}
|
|
418
|
-
function handle_error(error) {
|
|
419
|
-
var effect = active_effect;
|
|
420
|
-
if (effect === null) {
|
|
421
|
-
active_reaction.f |= ERROR_VALUE;
|
|
422
|
-
return error;
|
|
423
|
-
}
|
|
424
|
-
if ((effect.f & REACTION_RAN) === 0 && (effect.f & EFFECT) === 0) {
|
|
425
|
-
throw error;
|
|
426
|
-
}
|
|
427
|
-
invoke_error_boundary(error, effect);
|
|
428
|
-
}
|
|
429
|
-
function invoke_error_boundary(error, effect) {
|
|
430
|
-
if (error === HYDRATION_ERROR) {
|
|
431
|
-
throw error;
|
|
432
|
-
}
|
|
433
|
-
if (effect !== null && (effect.f & DESTROYED) !== 0) {
|
|
434
|
-
return;
|
|
435
|
-
}
|
|
436
|
-
while (effect !== null) {
|
|
437
|
-
if ((effect.f & BOUNDARY_EFFECT) !== 0 && (effect.f & (DESTROYED | DESTROYING)) === 0) {
|
|
438
|
-
if ((effect.f & REACTION_RAN) === 0) {
|
|
439
|
-
throw error;
|
|
440
|
-
}
|
|
441
|
-
try {
|
|
442
|
-
effect.b.error(error);
|
|
443
|
-
return;
|
|
444
|
-
} catch (e) {
|
|
445
|
-
error = e;
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
effect = effect.parent;
|
|
449
|
-
}
|
|
450
|
-
throw error;
|
|
451
|
-
}
|
|
452
|
-
const STATUS_MASK = -7169;
|
|
453
|
-
function set_signal_status(signal, status) {
|
|
454
|
-
signal.f = signal.f & STATUS_MASK | status;
|
|
455
|
-
}
|
|
456
|
-
function update_derived_status(derived2) {
|
|
457
|
-
if ((derived2.f & CONNECTED) !== 0 || derived2.deps === null) {
|
|
458
|
-
set_signal_status(derived2, CLEAN);
|
|
459
|
-
} else {
|
|
460
|
-
set_signal_status(derived2, MAYBE_DIRTY);
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
function defer_effect(effect, dirty_effects, maybe_dirty_effects) {
|
|
464
|
-
if ((effect.f & DIRTY) !== 0) {
|
|
465
|
-
dirty_effects.add(effect);
|
|
466
|
-
} else if ((effect.f & MAYBE_DIRTY) !== 0) {
|
|
467
|
-
maybe_dirty_effects.add(effect);
|
|
468
|
-
}
|
|
469
|
-
set_signal_status(effect, CLEAN);
|
|
470
|
-
}
|
|
471
|
-
function without_reactive_context(fn) {
|
|
472
|
-
var previous_reaction = active_reaction;
|
|
473
|
-
var previous_effect = active_effect;
|
|
474
|
-
set_active_reaction(null);
|
|
475
|
-
set_active_effect(null);
|
|
476
|
-
try {
|
|
477
|
-
return fn();
|
|
478
|
-
} finally {
|
|
479
|
-
set_active_reaction(previous_reaction);
|
|
480
|
-
set_active_effect(previous_effect);
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
const OBSOLETE = /* @__PURE__ */ Symbol("obsolete");
|
|
484
|
-
function destroy_derived_effects(derived2) {
|
|
485
|
-
var effects = derived2.effects;
|
|
486
|
-
if (effects !== null) {
|
|
487
|
-
derived2.effects = null;
|
|
488
|
-
for (var i = 0; i < effects.length; i += 1) {
|
|
489
|
-
destroy_effect(
|
|
490
|
-
/** @type {Effect} */
|
|
491
|
-
effects[i]
|
|
492
|
-
);
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
function execute_derived(derived2) {
|
|
497
|
-
var value;
|
|
498
|
-
var prev_active_effect = active_effect;
|
|
499
|
-
var parent = derived2.parent;
|
|
500
|
-
if (!is_destroying_effect && parent !== null && derived2.v !== UNINITIALIZED && // if it was never evaluated before, it's guaranteed to fail downstream, so we try to execute instead
|
|
501
|
-
(parent.f & (DESTROYED | INERT)) !== 0) {
|
|
502
|
-
derived_inert();
|
|
503
|
-
return derived2.v;
|
|
504
|
-
}
|
|
505
|
-
set_active_effect(parent);
|
|
506
|
-
{
|
|
507
|
-
try {
|
|
508
|
-
destroy_derived_effects(derived2);
|
|
509
|
-
value = update_reaction(derived2);
|
|
510
|
-
} finally {
|
|
511
|
-
set_active_effect(prev_active_effect);
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
return value;
|
|
515
|
-
}
|
|
516
|
-
function update_derived(derived2) {
|
|
517
|
-
var value = execute_derived(derived2);
|
|
518
|
-
if (!derived2.equals(value)) {
|
|
519
|
-
derived2.wv = increment_write_version();
|
|
520
|
-
if (!current_batch?.is_fork || derived2.deps === null) {
|
|
521
|
-
if (current_batch !== null) {
|
|
522
|
-
current_batch.capture(derived2, value, true);
|
|
523
|
-
previous_batch?.capture(derived2, value, true);
|
|
524
|
-
} else {
|
|
525
|
-
derived2.v = value;
|
|
526
|
-
}
|
|
527
|
-
if (derived2.deps === null) {
|
|
528
|
-
set_signal_status(derived2, CLEAN);
|
|
529
|
-
return;
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
if (is_destroying_effect) {
|
|
534
|
-
return;
|
|
535
|
-
}
|
|
536
|
-
if (batch_values !== null) {
|
|
537
|
-
if (effect_tracking() || current_batch?.is_fork) {
|
|
538
|
-
batch_values.set(derived2, value);
|
|
539
|
-
}
|
|
540
|
-
} else {
|
|
541
|
-
update_derived_status(derived2);
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
function freeze_derived_effects(derived2) {
|
|
545
|
-
if (derived2.effects === null) return;
|
|
546
|
-
for (const e of derived2.effects) {
|
|
547
|
-
if (e.teardown || e.ac) {
|
|
548
|
-
e.teardown?.();
|
|
549
|
-
if (e.ac !== null) {
|
|
550
|
-
without_reactive_context(() => {
|
|
551
|
-
e.ac.abort(STALE_REACTION);
|
|
552
|
-
e.ac = null;
|
|
553
|
-
});
|
|
554
|
-
}
|
|
555
|
-
if (e.fn !== null) e.teardown = noop;
|
|
556
|
-
remove_reactions(e, 0);
|
|
557
|
-
destroy_effect_children(e);
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
function unfreeze_derived_effects(derived2) {
|
|
562
|
-
if (derived2.effects === null) return;
|
|
563
|
-
for (const e of derived2.effects) {
|
|
564
|
-
if (e.teardown && e.fn !== null) {
|
|
565
|
-
update_effect(e);
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
let first_batch = null;
|
|
570
|
-
let last_batch = null;
|
|
571
|
-
let current_batch = null;
|
|
572
|
-
let previous_batch = null;
|
|
573
|
-
let batch_values = null;
|
|
574
|
-
let last_scheduled_effect = null;
|
|
575
|
-
let is_flushing_sync = false;
|
|
576
|
-
let is_processing = false;
|
|
577
|
-
let collected_effects = null;
|
|
578
|
-
let legacy_updates = null;
|
|
579
|
-
var flush_count = 0;
|
|
580
|
-
let uid = 1;
|
|
581
|
-
class Batch {
|
|
582
|
-
id = uid++;
|
|
583
|
-
/** True as soon as `#process` was called */
|
|
584
|
-
#started = false;
|
|
585
|
-
linked = true;
|
|
586
|
-
/** @type {Batch | null} */
|
|
587
|
-
#prev = null;
|
|
588
|
-
/** @type {Batch | null} */
|
|
589
|
-
#next = null;
|
|
590
|
-
/** @type {Map<Effect, ReturnType<typeof deferred<any>>>} */
|
|
591
|
-
async_deriveds = /* @__PURE__ */ new Map();
|
|
592
|
-
/**
|
|
593
|
-
* The current values of any signals that are updated in this batch.
|
|
594
|
-
* Tuple format: [value, is_derived] (note: is_derived is false for deriveds, too, if they were overridden via assignment)
|
|
595
|
-
* They keys of this map are identical to `this.#previous`
|
|
596
|
-
* @type {Map<Value, [any, boolean]>}
|
|
597
|
-
*/
|
|
598
|
-
current = /* @__PURE__ */ new Map();
|
|
599
|
-
/**
|
|
600
|
-
* The values of any signals (sources and deriveds) that are updated in this batch _before_ those updates took place.
|
|
601
|
-
* They keys of this map are identical to `this.#current`
|
|
602
|
-
* @type {Map<Value, any>}
|
|
603
|
-
*/
|
|
604
|
-
previous = /* @__PURE__ */ new Map();
|
|
605
|
-
/**
|
|
606
|
-
* When the batch is committed (and the DOM is updated), we need to remove old branches
|
|
607
|
-
* and append new ones by calling the functions added inside (if/each/key/etc) blocks
|
|
608
|
-
* @type {Set<(batch: Batch) => void>}
|
|
609
|
-
*/
|
|
610
|
-
#commit_callbacks = /* @__PURE__ */ new Set();
|
|
611
|
-
/**
|
|
612
|
-
* If a fork is discarded, we need to destroy any effects that are no longer needed
|
|
613
|
-
* @type {Set<(batch: Batch) => void>}
|
|
614
|
-
*/
|
|
615
|
-
#discard_callbacks = /* @__PURE__ */ new Set();
|
|
616
|
-
/**
|
|
617
|
-
* The number of async effects that are currently in flight
|
|
618
|
-
*/
|
|
619
|
-
#pending = 0;
|
|
620
|
-
/**
|
|
621
|
-
* Async effects that are currently in flight, _not_ inside a pending boundary
|
|
622
|
-
* @type {Map<Effect, number>}
|
|
623
|
-
*/
|
|
624
|
-
#blocking_pending = /* @__PURE__ */ new Map();
|
|
625
|
-
/**
|
|
626
|
-
* A deferred that resolves when the batch is committed, used with `settled()`
|
|
627
|
-
* TODO replace with Promise.withResolvers once supported widely enough
|
|
628
|
-
* @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
|
|
629
|
-
*/
|
|
630
|
-
#deferred = null;
|
|
631
|
-
/**
|
|
632
|
-
* Effects that were scheduled in this batch but not yet 'resolved' into the
|
|
633
|
-
* root effects that need to be flushed. Resolving — the upwards traversal that
|
|
634
|
-
* marks the path to each effect on the shared effect tree (see #resolve) — is
|
|
635
|
-
* deferred until the batch is processed, so that the markers are created and
|
|
636
|
-
* consumed within a single traversal. Scheduling into other batches (which can
|
|
637
|
-
* happen concurrently, e.g. while a batch is committed) can therefore never
|
|
638
|
-
* observe (and be confused by) this batch's markers.
|
|
639
|
-
* May contain duplicates — deduplication happens during resolving
|
|
640
|
-
* @type {Effect[]}
|
|
641
|
-
*/
|
|
642
|
-
#scheduled = [];
|
|
643
|
-
/**
|
|
644
|
-
* Effects created while this batch was active.
|
|
645
|
-
* @type {Effect[]}
|
|
646
|
-
*/
|
|
647
|
-
#new_effects = [];
|
|
648
|
-
/**
|
|
649
|
-
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
650
|
-
* @type {Set<Effect>}
|
|
651
|
-
*/
|
|
652
|
-
#dirty_effects = /* @__PURE__ */ new Set();
|
|
653
|
-
/**
|
|
654
|
-
* Deferred effects that are MAYBE_DIRTY
|
|
655
|
-
* @type {Set<Effect>}
|
|
656
|
-
*/
|
|
657
|
-
#maybe_dirty_effects = /* @__PURE__ */ new Set();
|
|
658
|
-
/**
|
|
659
|
-
* A map of branches that still exist, but will be destroyed when this batch
|
|
660
|
-
* is committed — we skip over these during `process`.
|
|
661
|
-
* The value contains child effects that were dirty/maybe_dirty before being reset,
|
|
662
|
-
* so they can be rescheduled if the branch survives.
|
|
663
|
-
* @type {Map<Effect, { d: Effect[], m: Effect[] }>}
|
|
664
|
-
*/
|
|
665
|
-
#skipped_branches = /* @__PURE__ */ new Map();
|
|
666
|
-
/**
|
|
667
|
-
* Inverse of #skipped_branches which we need to tell prior batches to unskip them when committing
|
|
668
|
-
* @type {Set<Effect>}
|
|
669
|
-
*/
|
|
670
|
-
#unskipped_branches = /* @__PURE__ */ new Set();
|
|
671
|
-
is_fork = false;
|
|
672
|
-
#decrement_queued = false;
|
|
673
|
-
constructor() {
|
|
674
|
-
if (last_batch === null) {
|
|
675
|
-
first_batch = last_batch = this;
|
|
676
|
-
} else {
|
|
677
|
-
last_batch.#next = this;
|
|
678
|
-
this.#prev = last_batch;
|
|
679
|
-
}
|
|
680
|
-
last_batch = this;
|
|
681
|
-
}
|
|
682
|
-
#is_deferred() {
|
|
683
|
-
if (this.is_fork) return true;
|
|
684
|
-
for (const effect of this.#blocking_pending.keys()) {
|
|
685
|
-
var e = effect;
|
|
686
|
-
var skipped = false;
|
|
687
|
-
while (e.parent !== null) {
|
|
688
|
-
if (this.#skipped_branches.has(e)) {
|
|
689
|
-
skipped = true;
|
|
690
|
-
break;
|
|
691
|
-
}
|
|
692
|
-
e = e.parent;
|
|
693
|
-
}
|
|
694
|
-
if (!skipped) {
|
|
695
|
-
return true;
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
return false;
|
|
699
|
-
}
|
|
700
|
-
/**
|
|
701
|
-
* Add an effect to the #skipped_branches map and reset its children
|
|
702
|
-
* @param {Effect} effect
|
|
703
|
-
*/
|
|
704
|
-
skip_effect(effect) {
|
|
705
|
-
if (!this.#skipped_branches.has(effect)) {
|
|
706
|
-
this.#skipped_branches.set(effect, { d: [], m: [] });
|
|
707
|
-
}
|
|
708
|
-
this.#unskipped_branches.delete(effect);
|
|
709
|
-
}
|
|
710
|
-
/**
|
|
711
|
-
* Remove an effect from the #skipped_branches map and reschedule
|
|
712
|
-
* any tracked dirty/maybe_dirty child effects
|
|
713
|
-
* @param {Effect} effect
|
|
714
|
-
* @param {(e: Effect) => void} callback
|
|
715
|
-
*/
|
|
716
|
-
unskip_effect(effect, callback = (e) => this.schedule(e)) {
|
|
717
|
-
var tracked = this.#skipped_branches.get(effect);
|
|
718
|
-
if (tracked) {
|
|
719
|
-
this.#skipped_branches.delete(effect);
|
|
720
|
-
for (var e of tracked.d) {
|
|
721
|
-
set_signal_status(e, DIRTY);
|
|
722
|
-
callback(e);
|
|
723
|
-
}
|
|
724
|
-
for (e of tracked.m) {
|
|
725
|
-
set_signal_status(e, MAYBE_DIRTY);
|
|
726
|
-
callback(e);
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
this.#unskipped_branches.add(effect);
|
|
730
|
-
}
|
|
731
|
-
/**
|
|
732
|
-
* Convert the effects that were scheduled in this batch into the root effects
|
|
733
|
-
* that need to be traversed, marking the path to each effect (by clearing the
|
|
734
|
-
* `CLEAN` flag on ancestor branches) so that the traversal can find them.
|
|
735
|
-
* This happens right before traversal rather than at scheduling time, so that
|
|
736
|
-
* the markers left on the (shared) effect tree are created and consumed within
|
|
737
|
-
* a single traversal — scheduling into other batches can never observe them
|
|
738
|
-
* @returns {Effect[]}
|
|
739
|
-
*/
|
|
740
|
-
#resolve() {
|
|
741
|
-
var roots = [];
|
|
742
|
-
for (const effect of this.#scheduled) {
|
|
743
|
-
if ((effect.f & DESTROYED) !== 0 || (effect.f & (DIRTY | MAYBE_DIRTY)) === 0) continue;
|
|
744
|
-
var e = effect;
|
|
745
|
-
var covered = false;
|
|
746
|
-
while (e.parent !== null) {
|
|
747
|
-
e = e.parent;
|
|
748
|
-
var flags2 = e.f;
|
|
749
|
-
if ((flags2 & (ROOT_EFFECT | BRANCH_EFFECT)) !== 0) {
|
|
750
|
-
if ((flags2 & CLEAN) === 0) {
|
|
751
|
-
covered = true;
|
|
752
|
-
break;
|
|
753
|
-
}
|
|
754
|
-
e.f ^= CLEAN;
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
if (!covered) {
|
|
758
|
-
roots.push(e);
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
this.#scheduled = [];
|
|
762
|
-
return roots;
|
|
763
|
-
}
|
|
764
|
-
#process() {
|
|
765
|
-
this.#started = true;
|
|
766
|
-
for (const e of this.#dirty_effects) {
|
|
767
|
-
this.#maybe_dirty_effects.delete(e);
|
|
768
|
-
set_signal_status(e, DIRTY);
|
|
769
|
-
this.schedule(e);
|
|
770
|
-
}
|
|
771
|
-
for (const e of this.#maybe_dirty_effects) {
|
|
772
|
-
set_signal_status(e, MAYBE_DIRTY);
|
|
773
|
-
this.schedule(e);
|
|
774
|
-
}
|
|
775
|
-
this.apply();
|
|
776
|
-
var effects = collected_effects = [];
|
|
777
|
-
var render_effects = [];
|
|
778
|
-
var updates = legacy_updates = [];
|
|
779
|
-
while (this.#scheduled.length > 0) {
|
|
780
|
-
if (flush_count++ > 1e3) {
|
|
781
|
-
this.#unlink();
|
|
782
|
-
infinite_loop_guard();
|
|
783
|
-
}
|
|
784
|
-
for (const root2 of this.#resolve()) {
|
|
785
|
-
try {
|
|
786
|
-
this.#traverse(root2, effects, render_effects);
|
|
787
|
-
} catch (e) {
|
|
788
|
-
reset_all(root2);
|
|
789
|
-
if (!this.#is_deferred()) this.discard();
|
|
790
|
-
throw e;
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
current_batch = null;
|
|
795
|
-
if (updates.length > 0) {
|
|
796
|
-
var batch = Batch.ensure();
|
|
797
|
-
for (const e of updates) {
|
|
798
|
-
batch.schedule(e);
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
collected_effects = null;
|
|
802
|
-
legacy_updates = null;
|
|
803
|
-
if (this.#is_deferred()) {
|
|
804
|
-
this.#defer_effects(render_effects);
|
|
805
|
-
this.#defer_effects(effects);
|
|
806
|
-
for (const [e, t] of this.#skipped_branches) {
|
|
807
|
-
reset_branch(e, t);
|
|
808
|
-
}
|
|
809
|
-
if (updates.length > 0) {
|
|
810
|
-
/** @type {unknown} */
|
|
811
|
-
current_batch.#process();
|
|
812
|
-
}
|
|
813
|
-
return;
|
|
814
|
-
}
|
|
815
|
-
const earlier_batch = this.#find_earlier_batch();
|
|
816
|
-
if (earlier_batch) {
|
|
817
|
-
this.#defer_effects(render_effects);
|
|
818
|
-
this.#defer_effects(effects);
|
|
819
|
-
earlier_batch.#merge(this);
|
|
820
|
-
return;
|
|
821
|
-
}
|
|
822
|
-
this.#dirty_effects.clear();
|
|
823
|
-
this.#maybe_dirty_effects.clear();
|
|
824
|
-
for (const fn of this.#commit_callbacks) fn(this);
|
|
825
|
-
this.#commit_callbacks.clear();
|
|
826
|
-
previous_batch = this;
|
|
827
|
-
flush_queued_effects(render_effects);
|
|
828
|
-
flush_queued_effects(effects);
|
|
829
|
-
previous_batch = null;
|
|
830
|
-
this.#deferred?.resolve();
|
|
831
|
-
var next_batch = (
|
|
832
|
-
/** @type {Batch | null} */
|
|
833
|
-
/** @type {unknown} */
|
|
834
|
-
current_batch
|
|
835
|
-
);
|
|
836
|
-
if (this.#pending === 0 && (this.#scheduled.length === 0 || next_batch !== null)) {
|
|
837
|
-
this.#unlink();
|
|
838
|
-
}
|
|
839
|
-
if (this.#scheduled.length > 0) {
|
|
840
|
-
if (next_batch !== null) {
|
|
841
|
-
for (const e of this.#scheduled) {
|
|
842
|
-
next_batch.#scheduled.push(e);
|
|
843
|
-
}
|
|
844
|
-
this.#scheduled = [];
|
|
845
|
-
} else {
|
|
846
|
-
next_batch = this;
|
|
847
|
-
}
|
|
848
|
-
}
|
|
849
|
-
if (next_batch !== null) {
|
|
850
|
-
old_values.clear();
|
|
851
|
-
next_batch.#process();
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
/**
|
|
855
|
-
* Traverse the effect tree, executing effects or stashing
|
|
856
|
-
* them for later execution as appropriate
|
|
857
|
-
* @param {Effect} root
|
|
858
|
-
* @param {Effect[]} effects
|
|
859
|
-
* @param {Effect[]} render_effects
|
|
860
|
-
*/
|
|
861
|
-
#traverse(root2, effects, render_effects) {
|
|
862
|
-
root2.f ^= CLEAN;
|
|
863
|
-
var effect = root2.first;
|
|
864
|
-
while (effect !== null) {
|
|
865
|
-
var flags2 = effect.f;
|
|
866
|
-
var is_branch = (flags2 & (BRANCH_EFFECT | ROOT_EFFECT)) !== 0;
|
|
867
|
-
var is_skippable_branch = is_branch && (flags2 & CLEAN) !== 0;
|
|
868
|
-
var skip = is_skippable_branch || (flags2 & INERT) !== 0 || this.#skipped_branches.has(effect);
|
|
869
|
-
if (!skip && effect.fn !== null) {
|
|
870
|
-
if (is_branch) {
|
|
871
|
-
effect.f ^= CLEAN;
|
|
872
|
-
} else if ((flags2 & EFFECT) !== 0) {
|
|
873
|
-
effects.push(effect);
|
|
874
|
-
} else if (is_dirty(effect)) {
|
|
875
|
-
if ((flags2 & BLOCK_EFFECT) !== 0) this.#maybe_dirty_effects.add(effect);
|
|
876
|
-
update_effect(effect);
|
|
877
|
-
}
|
|
878
|
-
var child = effect.first;
|
|
879
|
-
if (child !== null) {
|
|
880
|
-
effect = child;
|
|
881
|
-
continue;
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
while (effect !== null) {
|
|
885
|
-
var next2 = effect.next;
|
|
886
|
-
if (next2 !== null) {
|
|
887
|
-
effect = next2;
|
|
888
|
-
break;
|
|
889
|
-
}
|
|
890
|
-
effect = effect.parent;
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
#find_earlier_batch() {
|
|
895
|
-
var batch = this.#prev;
|
|
896
|
-
while (batch !== null) {
|
|
897
|
-
if (!batch.is_fork) {
|
|
898
|
-
for (const [value, [, is_derived]] of this.current) {
|
|
899
|
-
if (batch.current.has(value) && !is_derived) {
|
|
900
|
-
return batch;
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
batch = batch.#prev;
|
|
905
|
-
}
|
|
906
|
-
return null;
|
|
907
|
-
}
|
|
908
|
-
/**
|
|
909
|
-
* @param {Batch} batch
|
|
910
|
-
*/
|
|
911
|
-
#merge(batch) {
|
|
912
|
-
for (const [source2, value] of batch.current) {
|
|
913
|
-
if (!this.previous.has(source2) && batch.previous.has(source2)) {
|
|
914
|
-
this.previous.set(source2, batch.previous.get(source2));
|
|
915
|
-
}
|
|
916
|
-
this.current.set(source2, value);
|
|
917
|
-
}
|
|
918
|
-
for (const [effect, deferred2] of batch.async_deriveds) {
|
|
919
|
-
const d = this.async_deriveds.get(effect);
|
|
920
|
-
if (d) deferred2.promise.then(d.resolve).catch(d.reject);
|
|
921
|
-
}
|
|
922
|
-
batch.async_deriveds.clear();
|
|
923
|
-
this.transfer_effects(batch.#dirty_effects, batch.#maybe_dirty_effects);
|
|
924
|
-
const mark = (value) => {
|
|
925
|
-
var reactions = value.reactions;
|
|
926
|
-
if (reactions === null) return;
|
|
927
|
-
if ((value.f & DERIVED) !== 0 && (value.f & (DIRTY | MAYBE_DIRTY)) === 0) {
|
|
928
|
-
return;
|
|
929
|
-
}
|
|
930
|
-
for (const reaction of reactions) {
|
|
931
|
-
var flags2 = reaction.f;
|
|
932
|
-
if ((flags2 & DERIVED) !== 0) {
|
|
933
|
-
mark(
|
|
934
|
-
/** @type {Derived} */
|
|
935
|
-
reaction
|
|
936
|
-
);
|
|
937
|
-
} else {
|
|
938
|
-
var effect = (
|
|
939
|
-
/** @type {Effect} */
|
|
940
|
-
reaction
|
|
941
|
-
);
|
|
942
|
-
if (flags2 & (ASYNC | BLOCK_EFFECT) && !this.async_deriveds.has(effect)) {
|
|
943
|
-
this.#maybe_dirty_effects.delete(effect);
|
|
944
|
-
set_signal_status(effect, DIRTY);
|
|
945
|
-
this.schedule(effect);
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
};
|
|
950
|
-
for (const source2 of this.current.keys()) {
|
|
951
|
-
mark(source2);
|
|
952
|
-
}
|
|
953
|
-
this.oncommit(() => batch.discard());
|
|
954
|
-
batch.#unlink();
|
|
955
|
-
current_batch = this;
|
|
956
|
-
this.#process();
|
|
957
|
-
}
|
|
958
|
-
/**
|
|
959
|
-
* @param {Effect[]} effects
|
|
960
|
-
*/
|
|
961
|
-
#defer_effects(effects) {
|
|
962
|
-
for (var i = 0; i < effects.length; i += 1) {
|
|
963
|
-
defer_effect(effects[i], this.#dirty_effects, this.#maybe_dirty_effects);
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
/**
|
|
967
|
-
* Associate a change to a given source with the current
|
|
968
|
-
* batch, noting its previous and current values
|
|
969
|
-
* @param {Value} source
|
|
970
|
-
* @param {any} value
|
|
971
|
-
* @param {boolean} [is_derived]
|
|
972
|
-
*/
|
|
973
|
-
capture(source2, value, is_derived = false) {
|
|
974
|
-
if (source2.v !== UNINITIALIZED && !this.previous.has(source2)) {
|
|
975
|
-
this.previous.set(source2, source2.v);
|
|
976
|
-
}
|
|
977
|
-
if ((source2.f & ERROR_VALUE) === 0) {
|
|
978
|
-
this.current.set(source2, [value, is_derived]);
|
|
979
|
-
batch_values?.set(source2, value);
|
|
980
|
-
}
|
|
981
|
-
if (!this.is_fork) {
|
|
982
|
-
source2.v = value;
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
|
-
activate() {
|
|
986
|
-
current_batch = this;
|
|
987
|
-
}
|
|
988
|
-
deactivate() {
|
|
989
|
-
current_batch = null;
|
|
990
|
-
batch_values = null;
|
|
991
|
-
}
|
|
992
|
-
flush() {
|
|
993
|
-
try {
|
|
994
|
-
if (browser) ;
|
|
995
|
-
is_processing = true;
|
|
996
|
-
current_batch = this;
|
|
997
|
-
this.#process();
|
|
998
|
-
} finally {
|
|
999
|
-
flush_count = 0;
|
|
1000
|
-
last_scheduled_effect = null;
|
|
1001
|
-
collected_effects = null;
|
|
1002
|
-
legacy_updates = null;
|
|
1003
|
-
is_processing = false;
|
|
1004
|
-
current_batch = null;
|
|
1005
|
-
batch_values = null;
|
|
1006
|
-
old_values.clear();
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
discard() {
|
|
1010
|
-
for (const fn of this.#discard_callbacks) fn(this);
|
|
1011
|
-
this.#discard_callbacks.clear();
|
|
1012
|
-
for (const deferred2 of this.async_deriveds.values()) {
|
|
1013
|
-
deferred2.reject(OBSOLETE);
|
|
1014
|
-
}
|
|
1015
|
-
this.#unlink();
|
|
1016
|
-
this.#deferred?.resolve();
|
|
1017
|
-
}
|
|
1018
|
-
/**
|
|
1019
|
-
* @param {Effect} effect
|
|
1020
|
-
*/
|
|
1021
|
-
register_created_effect(effect) {
|
|
1022
|
-
this.#new_effects.push(effect);
|
|
1023
|
-
}
|
|
1024
|
-
#commit() {
|
|
1025
|
-
for (let batch = first_batch; batch !== null; batch = batch.#next) {
|
|
1026
|
-
var is_earlier = batch.id < this.id;
|
|
1027
|
-
var sources = [];
|
|
1028
|
-
for (const [source3, [value, is_derived]] of this.current) {
|
|
1029
|
-
if (batch.current.has(source3)) {
|
|
1030
|
-
var batch_value = (
|
|
1031
|
-
/** @type {[any, boolean]} */
|
|
1032
|
-
batch.current.get(source3)[0]
|
|
1033
|
-
);
|
|
1034
|
-
if (is_earlier && value !== batch_value) {
|
|
1035
|
-
batch.current.set(source3, [value, is_derived]);
|
|
1036
|
-
} else {
|
|
1037
|
-
continue;
|
|
1038
|
-
}
|
|
1039
|
-
}
|
|
1040
|
-
sources.push(source3);
|
|
1041
|
-
}
|
|
1042
|
-
if (is_earlier) {
|
|
1043
|
-
for (const [effect, deferred2] of this.async_deriveds) {
|
|
1044
|
-
const d = batch.async_deriveds.get(effect);
|
|
1045
|
-
if (d) deferred2.promise.then(d.resolve).catch(d.reject);
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1048
|
-
var current = [...batch.current.keys()].filter(
|
|
1049
|
-
(source3) => !/** @type {[any, boolean]} */
|
|
1050
|
-
batch.current.get(source3)[1]
|
|
1051
|
-
);
|
|
1052
|
-
if (!batch.#started || current.length === 0) continue;
|
|
1053
|
-
var others = current.filter((source3) => !this.current.has(source3));
|
|
1054
|
-
if (others.length === 0) {
|
|
1055
|
-
if (is_earlier) {
|
|
1056
|
-
batch.discard();
|
|
1057
|
-
}
|
|
1058
|
-
} else if (sources.length > 0) {
|
|
1059
|
-
if (is_earlier) {
|
|
1060
|
-
for (const unskipped of this.#unskipped_branches) {
|
|
1061
|
-
batch.unskip_effect(unskipped, (e) => {
|
|
1062
|
-
if ((e.f & (BLOCK_EFFECT | ASYNC)) !== 0) {
|
|
1063
|
-
batch.schedule(e);
|
|
1064
|
-
} else {
|
|
1065
|
-
batch.#defer_effects([e]);
|
|
1066
|
-
}
|
|
1067
|
-
});
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
batch.activate();
|
|
1071
|
-
var marked = /* @__PURE__ */ new Set();
|
|
1072
|
-
var checked = /* @__PURE__ */ new Map();
|
|
1073
|
-
for (var source2 of sources) {
|
|
1074
|
-
mark_effects(source2, others, marked, checked);
|
|
1075
|
-
}
|
|
1076
|
-
checked = /* @__PURE__ */ new Map();
|
|
1077
|
-
var current_unequal = [...batch.current].filter(([c, v1]) => {
|
|
1078
|
-
const v2 = this.current.get(c);
|
|
1079
|
-
if (!v2) return true;
|
|
1080
|
-
return v2[0] !== v1[0] || v2[1] !== v1[1];
|
|
1081
|
-
}).map(([c]) => c);
|
|
1082
|
-
if (current_unequal.length > 0) {
|
|
1083
|
-
for (const effect of this.#new_effects) {
|
|
1084
|
-
if ((effect.f & (DESTROYED | INERT | EAGER_EFFECT)) === 0 && depends_on(effect, current_unequal, checked)) {
|
|
1085
|
-
if ((effect.f & (ASYNC | BLOCK_EFFECT)) !== 0) {
|
|
1086
|
-
set_signal_status(effect, DIRTY);
|
|
1087
|
-
batch.schedule(effect);
|
|
1088
|
-
} else {
|
|
1089
|
-
batch.#dirty_effects.add(effect);
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
if (batch.#scheduled.length > 0 && !batch.#decrement_queued) {
|
|
1095
|
-
batch.apply();
|
|
1096
|
-
for (var root2 of batch.#resolve()) {
|
|
1097
|
-
batch.#traverse(root2, [], []);
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
batch.deactivate();
|
|
1101
|
-
}
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
/**
|
|
1105
|
-
* @param {boolean} blocking
|
|
1106
|
-
* @param {Effect} effect
|
|
1107
|
-
*/
|
|
1108
|
-
increment(blocking, effect) {
|
|
1109
|
-
this.#pending += 1;
|
|
1110
|
-
if (blocking) {
|
|
1111
|
-
let blocking_pending_count = this.#blocking_pending.get(effect) ?? 0;
|
|
1112
|
-
this.#blocking_pending.set(effect, blocking_pending_count + 1);
|
|
1113
|
-
}
|
|
1114
|
-
}
|
|
1115
|
-
/**
|
|
1116
|
-
* @param {boolean} blocking
|
|
1117
|
-
* @param {Effect} effect
|
|
1118
|
-
*/
|
|
1119
|
-
decrement(blocking, effect) {
|
|
1120
|
-
this.#pending -= 1;
|
|
1121
|
-
if (blocking) {
|
|
1122
|
-
let blocking_pending_count = this.#blocking_pending.get(effect) ?? 0;
|
|
1123
|
-
if (blocking_pending_count === 1) {
|
|
1124
|
-
this.#blocking_pending.delete(effect);
|
|
1125
|
-
} else {
|
|
1126
|
-
this.#blocking_pending.set(effect, blocking_pending_count - 1);
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
if (this.#decrement_queued) return;
|
|
1130
|
-
this.#decrement_queued = true;
|
|
1131
|
-
queue_micro_task(() => {
|
|
1132
|
-
this.#decrement_queued = false;
|
|
1133
|
-
if (this.linked) {
|
|
1134
|
-
this.flush();
|
|
1135
|
-
}
|
|
1136
|
-
});
|
|
1137
|
-
}
|
|
1138
|
-
/**
|
|
1139
|
-
* @param {Set<Effect>} dirty_effects
|
|
1140
|
-
* @param {Set<Effect>} maybe_dirty_effects
|
|
1141
|
-
*/
|
|
1142
|
-
transfer_effects(dirty_effects, maybe_dirty_effects) {
|
|
1143
|
-
for (const e of dirty_effects) {
|
|
1144
|
-
this.#dirty_effects.add(e);
|
|
1145
|
-
}
|
|
1146
|
-
for (const e of maybe_dirty_effects) {
|
|
1147
|
-
this.#maybe_dirty_effects.add(e);
|
|
1148
|
-
}
|
|
1149
|
-
dirty_effects.clear();
|
|
1150
|
-
maybe_dirty_effects.clear();
|
|
1151
|
-
}
|
|
1152
|
-
/** @param {(batch: Batch) => void} fn */
|
|
1153
|
-
oncommit(fn) {
|
|
1154
|
-
this.#commit_callbacks.add(fn);
|
|
1155
|
-
}
|
|
1156
|
-
/** @param {(batch: Batch) => void} fn */
|
|
1157
|
-
ondiscard(fn) {
|
|
1158
|
-
this.#discard_callbacks.add(fn);
|
|
1159
|
-
}
|
|
1160
|
-
settled() {
|
|
1161
|
-
return (this.#deferred ??= deferred()).promise;
|
|
1162
|
-
}
|
|
1163
|
-
static ensure() {
|
|
1164
|
-
if (current_batch === null) {
|
|
1165
|
-
const batch = current_batch = new Batch();
|
|
1166
|
-
if (!is_processing && !is_flushing_sync) {
|
|
1167
|
-
queue_micro_task(() => {
|
|
1168
|
-
if (!batch.#started) {
|
|
1169
|
-
batch.flush();
|
|
1170
|
-
}
|
|
1171
|
-
});
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
|
-
return current_batch;
|
|
1175
|
-
}
|
|
1176
|
-
apply() {
|
|
1177
|
-
{
|
|
1178
|
-
batch_values = null;
|
|
1179
|
-
return;
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
/**
|
|
1183
|
-
*
|
|
1184
|
-
* @param {Effect} effect
|
|
1185
|
-
*/
|
|
1186
|
-
schedule(effect) {
|
|
1187
|
-
last_scheduled_effect = effect;
|
|
1188
|
-
if (effect.b?.is_pending && (effect.f & (EFFECT | RENDER_EFFECT | MANAGED_EFFECT)) !== 0 && (effect.f & REACTION_RAN) === 0) {
|
|
1189
|
-
effect.b.defer_effect(effect);
|
|
1190
|
-
return;
|
|
1191
|
-
}
|
|
1192
|
-
this.#scheduled.push(effect);
|
|
1193
|
-
}
|
|
1194
|
-
#unlink() {
|
|
1195
|
-
if (!this.linked) return;
|
|
1196
|
-
var prev = this.#prev;
|
|
1197
|
-
var next2 = this.#next;
|
|
1198
|
-
if (prev === null) {
|
|
1199
|
-
first_batch = next2;
|
|
1200
|
-
} else {
|
|
1201
|
-
prev.#next = next2;
|
|
1202
|
-
}
|
|
1203
|
-
if (next2 === null) {
|
|
1204
|
-
last_batch = prev;
|
|
1205
|
-
} else {
|
|
1206
|
-
next2.#prev = prev;
|
|
1207
|
-
}
|
|
1208
|
-
this.linked = false;
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
|
-
function flushSync(fn) {
|
|
1212
|
-
var was_flushing_sync = is_flushing_sync;
|
|
1213
|
-
var prev_previous_batch = previous_batch;
|
|
1214
|
-
previous_batch = null;
|
|
1215
|
-
is_flushing_sync = true;
|
|
1216
|
-
try {
|
|
1217
|
-
var result;
|
|
1218
|
-
if (fn) ;
|
|
1219
|
-
while (true) {
|
|
1220
|
-
flush_tasks();
|
|
1221
|
-
if (current_batch === null) {
|
|
1222
|
-
return (
|
|
1223
|
-
/** @type {T} */
|
|
1224
|
-
result
|
|
1225
|
-
);
|
|
1226
|
-
}
|
|
1227
|
-
current_batch.flush();
|
|
1228
|
-
}
|
|
1229
|
-
} finally {
|
|
1230
|
-
is_flushing_sync = was_flushing_sync;
|
|
1231
|
-
previous_batch = prev_previous_batch;
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
function infinite_loop_guard() {
|
|
1235
|
-
try {
|
|
1236
|
-
effect_update_depth_exceeded();
|
|
1237
|
-
} catch (error) {
|
|
1238
|
-
invoke_error_boundary(error, last_scheduled_effect);
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1241
|
-
let eager_block_effects = null;
|
|
1242
|
-
function flush_queued_effects(effects) {
|
|
1243
|
-
var length = effects.length;
|
|
1244
|
-
if (length === 0) return;
|
|
1245
|
-
var i = 0;
|
|
1246
|
-
while (i < length) {
|
|
1247
|
-
var effect = effects[i++];
|
|
1248
|
-
if ((effect.f & (DESTROYED | INERT)) === 0 && is_dirty(effect)) {
|
|
1249
|
-
eager_block_effects = /* @__PURE__ */ new Set();
|
|
1250
|
-
update_effect(effect);
|
|
1251
|
-
if (effect.deps === null && effect.first === null && effect.nodes === null && effect.teardown === null && effect.ac === null) {
|
|
1252
|
-
unlink_effect(effect);
|
|
1253
|
-
}
|
|
1254
|
-
if (eager_block_effects?.size > 0) {
|
|
1255
|
-
old_values.clear();
|
|
1256
|
-
for (const e of eager_block_effects) {
|
|
1257
|
-
if ((e.f & (DESTROYED | INERT)) !== 0) continue;
|
|
1258
|
-
const ordered_effects = [e];
|
|
1259
|
-
let ancestor = e.parent;
|
|
1260
|
-
while (ancestor !== null) {
|
|
1261
|
-
if (eager_block_effects.has(ancestor)) {
|
|
1262
|
-
eager_block_effects.delete(ancestor);
|
|
1263
|
-
ordered_effects.push(ancestor);
|
|
1264
|
-
}
|
|
1265
|
-
ancestor = ancestor.parent;
|
|
1266
|
-
}
|
|
1267
|
-
for (let j = ordered_effects.length - 1; j >= 0; j--) {
|
|
1268
|
-
const e2 = ordered_effects[j];
|
|
1269
|
-
if ((e2.f & (DESTROYED | INERT)) !== 0) continue;
|
|
1270
|
-
update_effect(e2);
|
|
1271
|
-
}
|
|
1272
|
-
}
|
|
1273
|
-
eager_block_effects.clear();
|
|
1274
|
-
}
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
eager_block_effects = null;
|
|
1278
|
-
}
|
|
1279
|
-
function mark_effects(value, sources, marked, checked) {
|
|
1280
|
-
if (marked.has(value)) return;
|
|
1281
|
-
marked.add(value);
|
|
1282
|
-
if (value.reactions !== null) {
|
|
1283
|
-
for (const reaction of value.reactions) {
|
|
1284
|
-
const flags2 = reaction.f;
|
|
1285
|
-
if ((flags2 & DERIVED) !== 0) {
|
|
1286
|
-
mark_effects(
|
|
1287
|
-
/** @type {Derived} */
|
|
1288
|
-
reaction,
|
|
1289
|
-
sources,
|
|
1290
|
-
marked,
|
|
1291
|
-
checked
|
|
1292
|
-
);
|
|
1293
|
-
} else if ((flags2 & (ASYNC | BLOCK_EFFECT)) !== 0 && (flags2 & DIRTY) === 0 && depends_on(reaction, sources, checked)) {
|
|
1294
|
-
set_signal_status(reaction, DIRTY);
|
|
1295
|
-
schedule_effect(
|
|
1296
|
-
/** @type {Effect} */
|
|
1297
|
-
reaction
|
|
1298
|
-
);
|
|
1299
|
-
}
|
|
1300
|
-
}
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
function depends_on(reaction, sources, checked) {
|
|
1304
|
-
const depends = checked.get(reaction);
|
|
1305
|
-
if (depends !== void 0) return depends;
|
|
1306
|
-
if (reaction.deps !== null) {
|
|
1307
|
-
for (const dep of reaction.deps) {
|
|
1308
|
-
if (includes.call(sources, dep)) {
|
|
1309
|
-
return true;
|
|
1310
|
-
}
|
|
1311
|
-
if ((dep.f & DERIVED) !== 0 && depends_on(
|
|
1312
|
-
/** @type {Derived} */
|
|
1313
|
-
dep,
|
|
1314
|
-
sources,
|
|
1315
|
-
checked
|
|
1316
|
-
)) {
|
|
1317
|
-
checked.set(
|
|
1318
|
-
/** @type {Derived} */
|
|
1319
|
-
dep,
|
|
1320
|
-
true
|
|
1321
|
-
);
|
|
1322
|
-
return true;
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
}
|
|
1326
|
-
checked.set(reaction, false);
|
|
1327
|
-
return false;
|
|
1328
|
-
}
|
|
1329
|
-
function schedule_effect(effect) {
|
|
1330
|
-
current_batch.schedule(effect);
|
|
1331
|
-
}
|
|
1332
|
-
function reset_branch(effect, tracked) {
|
|
1333
|
-
if ((effect.f & BRANCH_EFFECT) !== 0 && (effect.f & CLEAN) !== 0) {
|
|
1334
|
-
return;
|
|
1335
|
-
}
|
|
1336
|
-
if ((effect.f & DIRTY) !== 0) {
|
|
1337
|
-
tracked.d.push(effect);
|
|
1338
|
-
} else if ((effect.f & MAYBE_DIRTY) !== 0) {
|
|
1339
|
-
tracked.m.push(effect);
|
|
1340
|
-
}
|
|
1341
|
-
set_signal_status(effect, CLEAN);
|
|
1342
|
-
var e = effect.first;
|
|
1343
|
-
while (e !== null) {
|
|
1344
|
-
reset_branch(e, tracked);
|
|
1345
|
-
e = e.next;
|
|
1346
|
-
}
|
|
1347
|
-
}
|
|
1348
|
-
function reset_all(effect) {
|
|
1349
|
-
set_signal_status(effect, CLEAN);
|
|
1350
|
-
var e = effect.first;
|
|
1351
|
-
while (e !== null) {
|
|
1352
|
-
reset_all(e);
|
|
1353
|
-
e = e.next;
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
let eager_effects = /* @__PURE__ */ new Set();
|
|
1357
|
-
const old_values = /* @__PURE__ */ new Map();
|
|
1358
|
-
let eager_effects_deferred = false;
|
|
1359
|
-
function source(v, stack) {
|
|
1360
|
-
var signal = {
|
|
1361
|
-
f: 0,
|
|
1362
|
-
// TODO ideally we could skip this altogether, but it causes type errors
|
|
1363
|
-
v,
|
|
1364
|
-
reactions: null,
|
|
1365
|
-
equals,
|
|
1366
|
-
rv: 0,
|
|
1367
|
-
wv: 0
|
|
1368
|
-
};
|
|
1369
|
-
return signal;
|
|
1370
|
-
}
|
|
1371
|
-
// @__NO_SIDE_EFFECTS__
|
|
1372
|
-
function state(v, stack) {
|
|
1373
|
-
const s = source(v);
|
|
1374
|
-
push_reaction_value(s);
|
|
1375
|
-
return s;
|
|
1376
|
-
}
|
|
1377
|
-
// @__NO_SIDE_EFFECTS__
|
|
1378
|
-
function mutable_source(initial_value, immutable = false, trackable = true) {
|
|
1379
|
-
const s = source(initial_value);
|
|
1380
|
-
if (!immutable) {
|
|
1381
|
-
s.equals = safe_equals;
|
|
1382
|
-
}
|
|
1383
|
-
return s;
|
|
1384
|
-
}
|
|
1385
|
-
function set(source2, value, should_proxy = false) {
|
|
1386
|
-
if (active_reaction !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1387
|
-
// to ensure we error if state is set inside an inspect effect
|
|
1388
|
-
(!untracking || (active_reaction.f & EAGER_EFFECT) !== 0) && is_runes() && (active_reaction.f & (DERIVED | BLOCK_EFFECT | ASYNC | EAGER_EFFECT)) !== 0 && (current_sources === null || !current_sources.has(source2))) {
|
|
1389
|
-
state_unsafe_mutation();
|
|
1390
|
-
}
|
|
1391
|
-
let new_value = should_proxy ? proxy(value) : value;
|
|
1392
|
-
return internal_set(source2, new_value, legacy_updates);
|
|
1393
|
-
}
|
|
1394
|
-
var seen = null;
|
|
1395
|
-
var count_deps = 0;
|
|
1396
|
-
function internal_set(source2, value, updated_during_traversal = null) {
|
|
1397
|
-
if (!source2.equals(value)) {
|
|
1398
|
-
if (is_destroying_effect) {
|
|
1399
|
-
old_values.set(source2, value);
|
|
1400
|
-
} else if (!old_values.has(source2)) {
|
|
1401
|
-
old_values.set(source2, source2.v);
|
|
1402
|
-
}
|
|
1403
|
-
var batch = Batch.ensure();
|
|
1404
|
-
batch.capture(source2, value);
|
|
1405
|
-
if ((source2.f & DERIVED) !== 0) {
|
|
1406
|
-
const derived2 = (
|
|
1407
|
-
/** @type {Derived} */
|
|
1408
|
-
source2
|
|
1409
|
-
);
|
|
1410
|
-
if ((source2.f & DIRTY) !== 0) {
|
|
1411
|
-
execute_derived(derived2);
|
|
1412
|
-
}
|
|
1413
|
-
if (batch_values === null) {
|
|
1414
|
-
update_derived_status(derived2);
|
|
1415
|
-
}
|
|
1416
|
-
}
|
|
1417
|
-
source2.wv = increment_write_version();
|
|
1418
|
-
seen = null;
|
|
1419
|
-
count_deps = 0;
|
|
1420
|
-
mark_reactions(source2, DIRTY, updated_during_traversal);
|
|
1421
|
-
seen = null;
|
|
1422
|
-
if (active_effect !== null && (active_effect.f & CLEAN) !== 0 && (active_effect.f & (BRANCH_EFFECT | ROOT_EFFECT)) === 0) {
|
|
1423
|
-
if (untracked_writes === null) {
|
|
1424
|
-
set_untracked_writes([source2]);
|
|
1425
|
-
} else {
|
|
1426
|
-
untracked_writes.push(source2);
|
|
1427
|
-
}
|
|
1428
|
-
}
|
|
1429
|
-
if (!batch.is_fork && eager_effects.size > 0 && !eager_effects_deferred) {
|
|
1430
|
-
flush_eager_effects();
|
|
1431
|
-
}
|
|
1432
|
-
}
|
|
1433
|
-
return value;
|
|
1434
|
-
}
|
|
1435
|
-
function flush_eager_effects() {
|
|
1436
|
-
eager_effects_deferred = false;
|
|
1437
|
-
for (const effect of eager_effects) {
|
|
1438
|
-
if ((effect.f & CLEAN) !== 0) {
|
|
1439
|
-
set_signal_status(effect, MAYBE_DIRTY);
|
|
1440
|
-
}
|
|
1441
|
-
let dirty;
|
|
1442
|
-
try {
|
|
1443
|
-
dirty = is_dirty(effect);
|
|
1444
|
-
} catch {
|
|
1445
|
-
dirty = true;
|
|
1446
|
-
}
|
|
1447
|
-
if (dirty) {
|
|
1448
|
-
update_effect(effect);
|
|
1449
|
-
}
|
|
1450
|
-
}
|
|
1451
|
-
eager_effects.clear();
|
|
1452
|
-
}
|
|
1453
|
-
function increment(source2) {
|
|
1454
|
-
set(source2, source2.v + 1);
|
|
1455
|
-
}
|
|
1456
|
-
function mark_reactions(signal, status, updated_during_traversal) {
|
|
1457
|
-
var reactions = signal.reactions;
|
|
1458
|
-
if (reactions === null) return;
|
|
1459
|
-
var length = reactions.length;
|
|
1460
|
-
count_deps += length;
|
|
1461
|
-
if (count_deps > 1e5 && seen === null) seen = /* @__PURE__ */ new Set();
|
|
1462
|
-
if (seen !== null) {
|
|
1463
|
-
if (seen.has(signal)) return;
|
|
1464
|
-
seen.add(signal);
|
|
1465
|
-
}
|
|
1466
|
-
for (var i = 0; i < length; i++) {
|
|
1467
|
-
var reaction = reactions[i];
|
|
1468
|
-
var flags2 = reaction.f;
|
|
1469
|
-
var not_dirty = (flags2 & DIRTY) === 0;
|
|
1470
|
-
if (not_dirty) {
|
|
1471
|
-
set_signal_status(reaction, status);
|
|
1472
|
-
}
|
|
1473
|
-
if ((flags2 & EAGER_EFFECT) !== 0) {
|
|
1474
|
-
eager_effects.add(
|
|
1475
|
-
/** @type {Effect} */
|
|
1476
|
-
reaction
|
|
1477
|
-
);
|
|
1478
|
-
} else if ((flags2 & DERIVED) !== 0) {
|
|
1479
|
-
var derived2 = (
|
|
1480
|
-
/** @type {Derived} */
|
|
1481
|
-
reaction
|
|
1482
|
-
);
|
|
1483
|
-
batch_values?.delete(derived2);
|
|
1484
|
-
mark_reactions(derived2, MAYBE_DIRTY, updated_during_traversal);
|
|
1485
|
-
} else if (not_dirty) {
|
|
1486
|
-
var effect = (
|
|
1487
|
-
/** @type {Effect} */
|
|
1488
|
-
reaction
|
|
1489
|
-
);
|
|
1490
|
-
if ((flags2 & BLOCK_EFFECT) !== 0 && eager_block_effects !== null) {
|
|
1491
|
-
eager_block_effects.add(effect);
|
|
1492
|
-
}
|
|
1493
|
-
if (updated_during_traversal !== null) {
|
|
1494
|
-
updated_during_traversal.push(effect);
|
|
1495
|
-
} else {
|
|
1496
|
-
schedule_effect(effect);
|
|
1497
|
-
}
|
|
1498
|
-
}
|
|
1499
|
-
}
|
|
1500
|
-
}
|
|
1501
|
-
let is_destroying_effect = false;
|
|
1502
|
-
function set_is_destroying_effect(value) {
|
|
1503
|
-
is_destroying_effect = value;
|
|
1504
|
-
}
|
|
1505
|
-
let active_reaction = null;
|
|
1506
|
-
let untracking = false;
|
|
1507
|
-
function set_active_reaction(reaction) {
|
|
1508
|
-
active_reaction = reaction;
|
|
1509
|
-
}
|
|
1510
|
-
let active_effect = null;
|
|
1511
|
-
function set_active_effect(effect) {
|
|
1512
|
-
active_effect = effect;
|
|
1513
|
-
}
|
|
1514
|
-
let current_sources = null;
|
|
1515
|
-
function push_reaction_value(value) {
|
|
1516
|
-
if (active_reaction !== null && ((active_reaction.f & REACTION_IS_UPDATING) !== 0 || (active_reaction.f & DERIVED) !== 0)) {
|
|
1517
|
-
(current_sources ??= /* @__PURE__ */ new Set()).add(value);
|
|
1518
|
-
}
|
|
1519
|
-
}
|
|
1520
|
-
let new_deps = null;
|
|
1521
|
-
let skipped_deps = 0;
|
|
1522
|
-
let untracked_writes = null;
|
|
1523
|
-
function set_untracked_writes(value) {
|
|
1524
|
-
untracked_writes = value;
|
|
1525
|
-
}
|
|
1526
|
-
let write_version = 1;
|
|
1527
|
-
let read_version = 0;
|
|
1528
|
-
let update_version = read_version;
|
|
1529
|
-
function set_update_version(value) {
|
|
1530
|
-
update_version = value;
|
|
1531
|
-
}
|
|
1532
|
-
function increment_write_version() {
|
|
1533
|
-
return ++write_version;
|
|
1534
|
-
}
|
|
1535
|
-
function is_dirty(reaction) {
|
|
1536
|
-
var flags2 = reaction.f;
|
|
1537
|
-
if ((flags2 & DIRTY) !== 0) {
|
|
1538
|
-
return true;
|
|
1539
|
-
}
|
|
1540
|
-
if ((flags2 & MAYBE_DIRTY) !== 0) {
|
|
1541
|
-
var dependencies = (
|
|
1542
|
-
/** @type {Value[]} */
|
|
1543
|
-
reaction.deps
|
|
1544
|
-
);
|
|
1545
|
-
var length = dependencies.length;
|
|
1546
|
-
for (var i = 0; i < length; i++) {
|
|
1547
|
-
var dependency = dependencies[i];
|
|
1548
|
-
if (is_dirty(
|
|
1549
|
-
/** @type {Derived} */
|
|
1550
|
-
dependency
|
|
1551
|
-
)) {
|
|
1552
|
-
update_derived(
|
|
1553
|
-
/** @type {Derived} */
|
|
1554
|
-
dependency
|
|
1555
|
-
);
|
|
1556
|
-
}
|
|
1557
|
-
if (dependency.wv > reaction.wv) {
|
|
1558
|
-
return true;
|
|
1559
|
-
}
|
|
1560
|
-
}
|
|
1561
|
-
if ((flags2 & CONNECTED) !== 0 && // During time traveling we don't want to reset the status so that
|
|
1562
|
-
// traversal of the graph in the other batches still happens
|
|
1563
|
-
batch_values === null) {
|
|
1564
|
-
set_signal_status(reaction, CLEAN);
|
|
1565
|
-
}
|
|
1566
|
-
}
|
|
1567
|
-
return false;
|
|
1568
|
-
}
|
|
1569
|
-
function schedule_possible_effect_self_invalidation(signal, effect, root2 = true) {
|
|
1570
|
-
var reactions = signal.reactions;
|
|
1571
|
-
if (reactions === null) return;
|
|
1572
|
-
if (current_sources !== null && current_sources.has(signal)) {
|
|
1573
|
-
return;
|
|
1574
|
-
}
|
|
1575
|
-
for (var i = 0; i < reactions.length; i++) {
|
|
1576
|
-
var reaction = reactions[i];
|
|
1577
|
-
if ((reaction.f & DERIVED) !== 0) {
|
|
1578
|
-
schedule_possible_effect_self_invalidation(
|
|
1579
|
-
/** @type {Derived} */
|
|
1580
|
-
reaction,
|
|
1581
|
-
effect,
|
|
1582
|
-
false
|
|
1583
|
-
);
|
|
1584
|
-
} else if (effect === reaction) {
|
|
1585
|
-
if (root2) {
|
|
1586
|
-
set_signal_status(reaction, DIRTY);
|
|
1587
|
-
} else if ((reaction.f & CLEAN) !== 0) {
|
|
1588
|
-
set_signal_status(reaction, MAYBE_DIRTY);
|
|
1589
|
-
}
|
|
1590
|
-
schedule_effect(
|
|
1591
|
-
/** @type {Effect} */
|
|
1592
|
-
reaction
|
|
1593
|
-
);
|
|
1594
|
-
}
|
|
1595
|
-
}
|
|
1596
|
-
}
|
|
1597
|
-
function update_reaction(reaction) {
|
|
1598
|
-
var previous_deps = new_deps;
|
|
1599
|
-
var previous_skipped_deps = skipped_deps;
|
|
1600
|
-
var previous_untracked_writes = untracked_writes;
|
|
1601
|
-
var previous_reaction = active_reaction;
|
|
1602
|
-
var previous_sources = current_sources;
|
|
1603
|
-
var previous_component_context = component_context;
|
|
1604
|
-
var previous_untracking = untracking;
|
|
1605
|
-
var previous_update_version = update_version;
|
|
1606
|
-
var flags2 = reaction.f;
|
|
1607
|
-
new_deps = /** @type {null | Value[]} */
|
|
1608
|
-
null;
|
|
1609
|
-
skipped_deps = 0;
|
|
1610
|
-
untracked_writes = null;
|
|
1611
|
-
active_reaction = (flags2 & (BRANCH_EFFECT | ROOT_EFFECT)) === 0 ? reaction : null;
|
|
1612
|
-
current_sources = null;
|
|
1613
|
-
set_component_context(reaction.ctx);
|
|
1614
|
-
untracking = false;
|
|
1615
|
-
update_version = ++read_version;
|
|
1616
|
-
if (reaction.ac !== null) {
|
|
1617
|
-
without_reactive_context(() => {
|
|
1618
|
-
reaction.ac.abort(STALE_REACTION);
|
|
1619
|
-
});
|
|
1620
|
-
reaction.ac = null;
|
|
1621
|
-
}
|
|
1622
|
-
try {
|
|
1623
|
-
reaction.f |= REACTION_IS_UPDATING;
|
|
1624
|
-
var fn = (
|
|
1625
|
-
/** @type {Function} */
|
|
1626
|
-
reaction.fn
|
|
1627
|
-
);
|
|
1628
|
-
var result = fn();
|
|
1629
|
-
reaction.f |= REACTION_RAN;
|
|
1630
|
-
var deps = update_dependencies(reaction);
|
|
1631
|
-
if (is_runes() && untracked_writes !== null && !untracking && deps !== null && (reaction.f & (DERIVED | MAYBE_DIRTY | DIRTY)) === 0) {
|
|
1632
|
-
for (var i = 0; i < /** @type {Source[]} */
|
|
1633
|
-
untracked_writes.length; i++) {
|
|
1634
|
-
schedule_possible_effect_self_invalidation(
|
|
1635
|
-
untracked_writes[i],
|
|
1636
|
-
/** @type {Effect} */
|
|
1637
|
-
reaction
|
|
1638
|
-
);
|
|
1639
|
-
}
|
|
1640
|
-
}
|
|
1641
|
-
if (previous_reaction !== null && previous_reaction !== reaction) {
|
|
1642
|
-
read_version++;
|
|
1643
|
-
if (previous_reaction.deps !== null) {
|
|
1644
|
-
for (let i2 = 0; i2 < previous_skipped_deps; i2 += 1) {
|
|
1645
|
-
previous_reaction.deps[i2].rv = read_version;
|
|
1646
|
-
}
|
|
1647
|
-
}
|
|
1648
|
-
if (previous_deps !== null) {
|
|
1649
|
-
for (const dep of previous_deps) {
|
|
1650
|
-
dep.rv = read_version;
|
|
1651
|
-
}
|
|
1652
|
-
}
|
|
1653
|
-
if (untracked_writes !== null) {
|
|
1654
|
-
if (previous_untracked_writes === null) {
|
|
1655
|
-
previous_untracked_writes = untracked_writes;
|
|
1656
|
-
} else {
|
|
1657
|
-
previous_untracked_writes.push(.../** @type {Source[]} */
|
|
1658
|
-
untracked_writes);
|
|
1659
|
-
}
|
|
1660
|
-
}
|
|
1661
|
-
}
|
|
1662
|
-
if ((reaction.f & ERROR_VALUE) !== 0) {
|
|
1663
|
-
reaction.f ^= ERROR_VALUE;
|
|
1664
|
-
}
|
|
1665
|
-
return result;
|
|
1666
|
-
} catch (error) {
|
|
1667
|
-
update_dependencies(reaction);
|
|
1668
|
-
return handle_error(error);
|
|
1669
|
-
} finally {
|
|
1670
|
-
reaction.f ^= REACTION_IS_UPDATING;
|
|
1671
|
-
new_deps = previous_deps;
|
|
1672
|
-
skipped_deps = previous_skipped_deps;
|
|
1673
|
-
untracked_writes = previous_untracked_writes;
|
|
1674
|
-
active_reaction = previous_reaction;
|
|
1675
|
-
current_sources = previous_sources;
|
|
1676
|
-
set_component_context(previous_component_context);
|
|
1677
|
-
untracking = previous_untracking;
|
|
1678
|
-
update_version = previous_update_version;
|
|
1679
|
-
}
|
|
1680
|
-
}
|
|
1681
|
-
function update_dependencies(reaction) {
|
|
1682
|
-
var deps = reaction.deps;
|
|
1683
|
-
var is_fork = current_batch?.is_fork;
|
|
1684
|
-
if (new_deps !== null) {
|
|
1685
|
-
var i;
|
|
1686
|
-
if (!is_fork) {
|
|
1687
|
-
remove_reactions(reaction, skipped_deps);
|
|
1688
|
-
}
|
|
1689
|
-
if (deps !== null && skipped_deps > 0) {
|
|
1690
|
-
deps.length = skipped_deps + new_deps.length;
|
|
1691
|
-
for (i = 0; i < new_deps.length; i++) {
|
|
1692
|
-
deps[skipped_deps + i] = new_deps[i];
|
|
1693
|
-
}
|
|
1694
|
-
} else {
|
|
1695
|
-
reaction.deps = deps = new_deps;
|
|
1696
|
-
}
|
|
1697
|
-
if (effect_tracking() && (reaction.f & CONNECTED) !== 0) {
|
|
1698
|
-
for (i = skipped_deps; i < deps.length; i++) {
|
|
1699
|
-
(deps[i].reactions ??= []).push(reaction);
|
|
1700
|
-
}
|
|
1701
|
-
}
|
|
1702
|
-
} else if (!is_fork && deps !== null && skipped_deps < deps.length) {
|
|
1703
|
-
remove_reactions(reaction, skipped_deps);
|
|
1704
|
-
deps.length = skipped_deps;
|
|
1705
|
-
}
|
|
1706
|
-
return deps;
|
|
1707
|
-
}
|
|
1708
|
-
function remove_reaction(signal, dependency) {
|
|
1709
|
-
let reactions = dependency.reactions;
|
|
1710
|
-
if (reactions !== null) {
|
|
1711
|
-
var index = index_of.call(reactions, signal);
|
|
1712
|
-
if (index !== -1) {
|
|
1713
|
-
var new_length = reactions.length - 1;
|
|
1714
|
-
if (new_length === 0) {
|
|
1715
|
-
reactions = dependency.reactions = null;
|
|
1716
|
-
} else {
|
|
1717
|
-
reactions[index] = reactions[new_length];
|
|
1718
|
-
reactions.pop();
|
|
1719
|
-
}
|
|
1720
|
-
}
|
|
1721
|
-
}
|
|
1722
|
-
if (reactions === null && (dependency.f & DERIVED) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1723
|
-
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1724
|
-
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1725
|
-
(new_deps === null || !includes.call(new_deps, dependency))) {
|
|
1726
|
-
var derived2 = (
|
|
1727
|
-
/** @type {Derived} */
|
|
1728
|
-
dependency
|
|
1729
|
-
);
|
|
1730
|
-
if ((derived2.f & CONNECTED) !== 0) {
|
|
1731
|
-
derived2.f ^= CONNECTED;
|
|
1732
|
-
}
|
|
1733
|
-
if (derived2.v !== UNINITIALIZED) {
|
|
1734
|
-
update_derived_status(derived2);
|
|
1735
|
-
}
|
|
1736
|
-
if (derived2.ac !== null) {
|
|
1737
|
-
without_reactive_context(() => {
|
|
1738
|
-
derived2.ac.abort(STALE_REACTION);
|
|
1739
|
-
derived2.ac = null;
|
|
1740
|
-
set_signal_status(derived2, DIRTY);
|
|
1741
|
-
});
|
|
1742
|
-
}
|
|
1743
|
-
freeze_derived_effects(derived2);
|
|
1744
|
-
remove_reactions(derived2, 0);
|
|
1745
|
-
}
|
|
1746
|
-
}
|
|
1747
|
-
function remove_reactions(signal, start_index) {
|
|
1748
|
-
var dependencies = signal.deps;
|
|
1749
|
-
if (dependencies === null) return;
|
|
1750
|
-
for (var i = start_index; i < dependencies.length; i++) {
|
|
1751
|
-
remove_reaction(signal, dependencies[i]);
|
|
1752
|
-
}
|
|
1753
|
-
}
|
|
1754
|
-
function update_effect(effect) {
|
|
1755
|
-
var flags2 = effect.f;
|
|
1756
|
-
if ((flags2 & DESTROYED) !== 0) {
|
|
1757
|
-
return;
|
|
1758
|
-
}
|
|
1759
|
-
set_signal_status(effect, CLEAN);
|
|
1760
|
-
var previous_effect = active_effect;
|
|
1761
|
-
active_effect = effect;
|
|
1762
|
-
try {
|
|
1763
|
-
if ((flags2 & (BLOCK_EFFECT | MANAGED_EFFECT)) !== 0) {
|
|
1764
|
-
destroy_block_effect_children(effect);
|
|
1765
|
-
} else {
|
|
1766
|
-
destroy_effect_children(effect);
|
|
1767
|
-
}
|
|
1768
|
-
execute_effect_teardown(effect);
|
|
1769
|
-
var teardown = update_reaction(effect);
|
|
1770
|
-
effect.teardown = typeof teardown === "function" ? teardown : null;
|
|
1771
|
-
effect.wv = write_version;
|
|
1772
|
-
var dep;
|
|
1773
|
-
if (browser && tracing_mode_flag && (effect.f & DIRTY) !== 0 && effect.deps !== null) ;
|
|
1774
|
-
} finally {
|
|
1775
|
-
active_effect = previous_effect;
|
|
1776
|
-
}
|
|
1777
|
-
}
|
|
1778
|
-
function get(signal) {
|
|
1779
|
-
var flags2 = signal.f;
|
|
1780
|
-
var is_derived = (flags2 & DERIVED) !== 0;
|
|
1781
|
-
if (active_reaction !== null && !untracking) {
|
|
1782
|
-
var destroyed = active_effect !== null && (active_effect.f & DESTROYED) !== 0;
|
|
1783
|
-
if (!destroyed && (current_sources === null || !current_sources.has(signal))) {
|
|
1784
|
-
var deps = active_reaction.deps;
|
|
1785
|
-
if ((active_reaction.f & REACTION_IS_UPDATING) !== 0) {
|
|
1786
|
-
if (signal.rv < read_version) {
|
|
1787
|
-
signal.rv = read_version;
|
|
1788
|
-
if (new_deps === null && deps !== null && deps[skipped_deps] === signal) {
|
|
1789
|
-
skipped_deps++;
|
|
1790
|
-
} else if (new_deps === null) {
|
|
1791
|
-
new_deps = [signal];
|
|
1792
|
-
} else {
|
|
1793
|
-
new_deps.push(signal);
|
|
1794
|
-
}
|
|
1795
|
-
}
|
|
1796
|
-
} else {
|
|
1797
|
-
active_reaction.deps ??= [];
|
|
1798
|
-
if (!includes.call(active_reaction.deps, signal)) {
|
|
1799
|
-
active_reaction.deps.push(signal);
|
|
1800
|
-
}
|
|
1801
|
-
var reactions = signal.reactions;
|
|
1802
|
-
if (reactions === null) {
|
|
1803
|
-
signal.reactions = [active_reaction];
|
|
1804
|
-
} else if (!includes.call(reactions, active_reaction)) {
|
|
1805
|
-
reactions.push(active_reaction);
|
|
1806
|
-
}
|
|
1807
|
-
}
|
|
1808
|
-
}
|
|
1809
|
-
}
|
|
1810
|
-
if (is_destroying_effect && old_values.has(signal)) {
|
|
1811
|
-
return old_values.get(signal);
|
|
1812
|
-
}
|
|
1813
|
-
if (is_derived) {
|
|
1814
|
-
var derived2 = (
|
|
1815
|
-
/** @type {Derived} */
|
|
1816
|
-
signal
|
|
1817
|
-
);
|
|
1818
|
-
if (is_destroying_effect) {
|
|
1819
|
-
var value = derived2.v;
|
|
1820
|
-
if ((derived2.f & CLEAN) === 0 && derived2.reactions !== null || depends_on_old_values(derived2)) {
|
|
1821
|
-
value = execute_derived(derived2);
|
|
1822
|
-
}
|
|
1823
|
-
old_values.set(derived2, value);
|
|
1824
|
-
return value;
|
|
1825
|
-
}
|
|
1826
|
-
var should_connect = (derived2.f & CONNECTED) === 0 && !untracking && active_reaction !== null && (active_reaction.f & CONNECTED) !== 0;
|
|
1827
|
-
var is_new = (derived2.f & REACTION_RAN) === 0;
|
|
1828
|
-
if (is_dirty(derived2)) {
|
|
1829
|
-
if (should_connect) {
|
|
1830
|
-
derived2.f |= CONNECTED;
|
|
1831
|
-
}
|
|
1832
|
-
update_derived(derived2);
|
|
1833
|
-
}
|
|
1834
|
-
if (should_connect && !is_new) {
|
|
1835
|
-
unfreeze_derived_effects(derived2);
|
|
1836
|
-
reconnect(derived2);
|
|
1837
|
-
}
|
|
1838
|
-
}
|
|
1839
|
-
if (batch_values?.has(signal)) {
|
|
1840
|
-
return batch_values.get(signal);
|
|
1841
|
-
}
|
|
1842
|
-
if ((signal.f & ERROR_VALUE) !== 0) {
|
|
1843
|
-
throw signal.v;
|
|
1844
|
-
}
|
|
1845
|
-
return signal.v;
|
|
1846
|
-
}
|
|
1847
|
-
function reconnect(derived2) {
|
|
1848
|
-
derived2.f |= CONNECTED;
|
|
1849
|
-
if (derived2.deps === null) return;
|
|
1850
|
-
for (const dep of derived2.deps) {
|
|
1851
|
-
var reactions = dep.reactions;
|
|
1852
|
-
if (reactions === null) {
|
|
1853
|
-
dep.reactions = [derived2];
|
|
1854
|
-
} else if (!includes.call(reactions, derived2)) {
|
|
1855
|
-
reactions.push(derived2);
|
|
1856
|
-
}
|
|
1857
|
-
if ((dep.f & DERIVED) !== 0 && (dep.f & CONNECTED) === 0) {
|
|
1858
|
-
unfreeze_derived_effects(
|
|
1859
|
-
/** @type {Derived} */
|
|
1860
|
-
dep
|
|
1861
|
-
);
|
|
1862
|
-
reconnect(
|
|
1863
|
-
/** @type {Derived} */
|
|
1864
|
-
dep
|
|
1865
|
-
);
|
|
1866
|
-
}
|
|
1867
|
-
}
|
|
1868
|
-
}
|
|
1869
|
-
function depends_on_old_values(derived2) {
|
|
1870
|
-
if (derived2.v === UNINITIALIZED) return true;
|
|
1871
|
-
if (derived2.deps === null) return false;
|
|
1872
|
-
for (const dep of derived2.deps) {
|
|
1873
|
-
if (old_values.has(dep)) {
|
|
1874
|
-
return true;
|
|
1875
|
-
}
|
|
1876
|
-
if ((dep.f & DERIVED) !== 0 && depends_on_old_values(
|
|
1877
|
-
/** @type {Derived} */
|
|
1878
|
-
dep
|
|
1879
|
-
)) {
|
|
1880
|
-
return true;
|
|
1881
|
-
}
|
|
1882
|
-
}
|
|
1883
|
-
return false;
|
|
1884
|
-
}
|
|
1885
|
-
function untrack(fn) {
|
|
1886
|
-
var previous_untracking = untracking;
|
|
1887
|
-
try {
|
|
1888
|
-
untracking = true;
|
|
1889
|
-
return fn();
|
|
1890
|
-
} finally {
|
|
1891
|
-
untracking = previous_untracking;
|
|
1892
|
-
}
|
|
1893
|
-
}
|
|
1894
|
-
function push_effect(effect, parent_effect) {
|
|
1895
|
-
var parent_last = parent_effect.last;
|
|
1896
|
-
if (parent_last === null) {
|
|
1897
|
-
parent_effect.last = parent_effect.first = effect;
|
|
1898
|
-
} else {
|
|
1899
|
-
parent_last.next = effect;
|
|
1900
|
-
effect.prev = parent_last;
|
|
1901
|
-
parent_effect.last = effect;
|
|
1902
|
-
}
|
|
1903
|
-
}
|
|
1904
|
-
function create_effect(type, fn) {
|
|
1905
|
-
var parent = active_effect;
|
|
1906
|
-
if (parent !== null && (parent.f & INERT) !== 0) {
|
|
1907
|
-
type |= INERT;
|
|
1908
|
-
}
|
|
1909
|
-
var effect = {
|
|
1910
|
-
ctx: component_context,
|
|
1911
|
-
deps: null,
|
|
1912
|
-
nodes: null,
|
|
1913
|
-
f: type | DIRTY | CONNECTED,
|
|
1914
|
-
first: null,
|
|
1915
|
-
fn,
|
|
1916
|
-
last: null,
|
|
1917
|
-
next: null,
|
|
1918
|
-
parent,
|
|
1919
|
-
b: parent && parent.b,
|
|
1920
|
-
prev: null,
|
|
1921
|
-
teardown: null,
|
|
1922
|
-
wv: 0,
|
|
1923
|
-
ac: null
|
|
1924
|
-
};
|
|
1925
|
-
current_batch?.register_created_effect(effect);
|
|
1926
|
-
var e = effect;
|
|
1927
|
-
if ((type & EFFECT) !== 0) {
|
|
1928
|
-
if (collected_effects !== null) {
|
|
1929
|
-
collected_effects.push(effect);
|
|
1930
|
-
} else {
|
|
1931
|
-
Batch.ensure().schedule(effect);
|
|
1932
|
-
}
|
|
1933
|
-
} else if (fn !== null) {
|
|
1934
|
-
try {
|
|
1935
|
-
update_effect(effect);
|
|
1936
|
-
} catch (e2) {
|
|
1937
|
-
destroy_effect(effect);
|
|
1938
|
-
throw e2;
|
|
1939
|
-
}
|
|
1940
|
-
if (e.deps === null && e.teardown === null && e.nodes === null && e.first === e.last && // either `null`, or a singular child
|
|
1941
|
-
(e.f & EFFECT_PRESERVED) === 0) {
|
|
1942
|
-
e = e.first;
|
|
1943
|
-
if ((type & BLOCK_EFFECT) !== 0 && (type & EFFECT_TRANSPARENT) !== 0 && e !== null) {
|
|
1944
|
-
e.f |= EFFECT_TRANSPARENT;
|
|
1945
|
-
}
|
|
1946
|
-
}
|
|
1947
|
-
}
|
|
1948
|
-
if (e !== null) {
|
|
1949
|
-
e.parent = parent;
|
|
1950
|
-
if (parent !== null) {
|
|
1951
|
-
push_effect(e, parent);
|
|
1952
|
-
}
|
|
1953
|
-
if (active_reaction !== null && (active_reaction.f & DERIVED) !== 0 && (type & ROOT_EFFECT) === 0) {
|
|
1954
|
-
var derived2 = (
|
|
1955
|
-
/** @type {Derived} */
|
|
1956
|
-
active_reaction
|
|
1957
|
-
);
|
|
1958
|
-
(derived2.effects ??= []).push(e);
|
|
1959
|
-
}
|
|
1960
|
-
}
|
|
1961
|
-
return effect;
|
|
1962
|
-
}
|
|
1963
|
-
function effect_tracking() {
|
|
1964
|
-
return active_reaction !== null && !untracking;
|
|
1965
|
-
}
|
|
1966
|
-
function create_user_effect(fn) {
|
|
1967
|
-
return create_effect(EFFECT | USER_EFFECT, fn);
|
|
1968
|
-
}
|
|
1969
|
-
function component_root(fn) {
|
|
1970
|
-
Batch.ensure();
|
|
1971
|
-
const effect = create_effect(ROOT_EFFECT | EFFECT_PRESERVED, fn);
|
|
1972
|
-
return (options = {}) => {
|
|
1973
|
-
return new Promise((fulfil) => {
|
|
1974
|
-
if (options.outro) {
|
|
1975
|
-
pause_effect(effect, () => {
|
|
1976
|
-
destroy_effect(effect);
|
|
1977
|
-
fulfil(void 0);
|
|
1978
|
-
});
|
|
1979
|
-
} else {
|
|
1980
|
-
destroy_effect(effect);
|
|
1981
|
-
fulfil(void 0);
|
|
1982
|
-
}
|
|
1983
|
-
});
|
|
1984
|
-
};
|
|
1985
|
-
}
|
|
1986
|
-
function render_effect(fn, flags2 = 0) {
|
|
1987
|
-
return create_effect(RENDER_EFFECT | flags2, fn);
|
|
1988
|
-
}
|
|
1989
|
-
function block(fn, flags2 = 0) {
|
|
1990
|
-
var effect = create_effect(BLOCK_EFFECT | flags2, fn);
|
|
1991
|
-
return effect;
|
|
1992
|
-
}
|
|
1993
|
-
function branch(fn) {
|
|
1994
|
-
return create_effect(BRANCH_EFFECT | EFFECT_PRESERVED, fn);
|
|
1995
|
-
}
|
|
1996
|
-
function execute_effect_teardown(effect) {
|
|
1997
|
-
var teardown = effect.teardown;
|
|
1998
|
-
if (teardown !== null) {
|
|
1999
|
-
const previously_destroying_effect = is_destroying_effect;
|
|
2000
|
-
const previous_reaction = active_reaction;
|
|
2001
|
-
set_is_destroying_effect(true);
|
|
2002
|
-
set_active_reaction(null);
|
|
2003
|
-
try {
|
|
2004
|
-
teardown.call(null);
|
|
2005
|
-
} catch (error) {
|
|
2006
|
-
invoke_error_boundary(error, effect.parent);
|
|
2007
|
-
} finally {
|
|
2008
|
-
set_is_destroying_effect(previously_destroying_effect);
|
|
2009
|
-
set_active_reaction(previous_reaction);
|
|
2010
|
-
}
|
|
2011
|
-
}
|
|
2012
|
-
}
|
|
2013
|
-
function destroy_effect_children(signal, remove_dom = false) {
|
|
2014
|
-
var effect = signal.first;
|
|
2015
|
-
signal.first = signal.last = null;
|
|
2016
|
-
while (effect !== null) {
|
|
2017
|
-
const controller = effect.ac;
|
|
2018
|
-
if (controller !== null) {
|
|
2019
|
-
without_reactive_context(() => {
|
|
2020
|
-
controller.abort(STALE_REACTION);
|
|
2021
|
-
});
|
|
2022
|
-
}
|
|
2023
|
-
var next2 = effect.next;
|
|
2024
|
-
if ((effect.f & ROOT_EFFECT) !== 0) {
|
|
2025
|
-
effect.parent = null;
|
|
2026
|
-
} else {
|
|
2027
|
-
destroy_effect(effect, remove_dom);
|
|
2028
|
-
}
|
|
2029
|
-
effect = next2;
|
|
2030
|
-
}
|
|
2031
|
-
}
|
|
2032
|
-
function destroy_block_effect_children(signal) {
|
|
2033
|
-
var effect = signal.first;
|
|
2034
|
-
while (effect !== null) {
|
|
2035
|
-
var next2 = effect.next;
|
|
2036
|
-
if ((effect.f & BRANCH_EFFECT) === 0) {
|
|
2037
|
-
destroy_effect(effect);
|
|
2038
|
-
}
|
|
2039
|
-
effect = next2;
|
|
2040
|
-
}
|
|
2041
|
-
}
|
|
2042
|
-
function destroy_effect(effect, remove_dom = true) {
|
|
2043
|
-
var removed = false;
|
|
2044
|
-
if ((remove_dom || (effect.f & HEAD_EFFECT) !== 0) && effect.nodes !== null && effect.nodes.end !== null) {
|
|
2045
|
-
remove_effect_dom(
|
|
2046
|
-
effect.nodes.start,
|
|
2047
|
-
/** @type {TemplateNode} */
|
|
2048
|
-
effect.nodes.end
|
|
2049
|
-
);
|
|
2050
|
-
removed = true;
|
|
2051
|
-
}
|
|
2052
|
-
effect.f |= DESTROYING;
|
|
2053
|
-
destroy_effect_children(effect, remove_dom && !removed);
|
|
2054
|
-
remove_reactions(effect, 0);
|
|
2055
|
-
var transitions = effect.nodes && effect.nodes.t;
|
|
2056
|
-
if (transitions !== null) {
|
|
2057
|
-
for (const transition of transitions) {
|
|
2058
|
-
transition.stop();
|
|
2059
|
-
}
|
|
2060
|
-
}
|
|
2061
|
-
execute_effect_teardown(effect);
|
|
2062
|
-
effect.f ^= DESTROYING;
|
|
2063
|
-
effect.f |= DESTROYED;
|
|
2064
|
-
var parent = effect.parent;
|
|
2065
|
-
if (parent !== null && parent.first !== null) {
|
|
2066
|
-
unlink_effect(effect);
|
|
2067
|
-
}
|
|
2068
|
-
effect.next = effect.prev = effect.teardown = effect.ctx = effect.deps = effect.fn = effect.nodes = effect.ac = effect.b = null;
|
|
2069
|
-
}
|
|
2070
|
-
function remove_effect_dom(node, end) {
|
|
2071
|
-
while (node !== null) {
|
|
2072
|
-
var next2 = node === end ? null : /* @__PURE__ */ get_next_sibling(node);
|
|
2073
|
-
node.remove();
|
|
2074
|
-
node = next2;
|
|
2075
|
-
}
|
|
2076
|
-
}
|
|
2077
|
-
function unlink_effect(effect) {
|
|
2078
|
-
var parent = effect.parent;
|
|
2079
|
-
var prev = effect.prev;
|
|
2080
|
-
var next2 = effect.next;
|
|
2081
|
-
if (prev !== null) prev.next = next2;
|
|
2082
|
-
if (next2 !== null) next2.prev = prev;
|
|
2083
|
-
if (parent !== null) {
|
|
2084
|
-
if (parent.first === effect) parent.first = next2;
|
|
2085
|
-
if (parent.last === effect) parent.last = prev;
|
|
2086
|
-
}
|
|
2087
|
-
}
|
|
2088
|
-
function pause_effect(effect, callback, destroy = true) {
|
|
2089
|
-
var transitions = [];
|
|
2090
|
-
effect.f |= PAUSED;
|
|
2091
|
-
pause_children(effect, transitions, true);
|
|
2092
|
-
var fn = () => {
|
|
2093
|
-
if (destroy) destroy_effect(effect);
|
|
2094
|
-
if (callback) callback();
|
|
2095
|
-
};
|
|
2096
|
-
var remaining = transitions.length;
|
|
2097
|
-
if (remaining > 0) {
|
|
2098
|
-
var check = () => --remaining || fn();
|
|
2099
|
-
for (var transition of transitions) {
|
|
2100
|
-
transition.out(check);
|
|
2101
|
-
}
|
|
2102
|
-
} else {
|
|
2103
|
-
fn();
|
|
2104
|
-
}
|
|
2105
|
-
}
|
|
2106
|
-
function pause_children(effect, transitions, local) {
|
|
2107
|
-
if ((effect.f & INERT) !== 0) return;
|
|
2108
|
-
effect.f ^= INERT;
|
|
2109
|
-
var t = effect.nodes && effect.nodes.t;
|
|
2110
|
-
if (t !== null) {
|
|
2111
|
-
for (const transition of t) {
|
|
2112
|
-
if (transition.is_global || local) {
|
|
2113
|
-
transitions.push(transition);
|
|
2114
|
-
}
|
|
2115
|
-
}
|
|
2116
|
-
}
|
|
2117
|
-
var child = effect.first;
|
|
2118
|
-
while (child !== null) {
|
|
2119
|
-
var sibling = child.next;
|
|
2120
|
-
if ((child.f & ROOT_EFFECT) === 0) {
|
|
2121
|
-
var transparent = (child.f & EFFECT_TRANSPARENT) !== 0 || // If this is a branch effect without a block effect parent,
|
|
2122
|
-
// it means the parent block effect was pruned. In that case,
|
|
2123
|
-
// transparency information was transferred to the branch effect.
|
|
2124
|
-
(child.f & BRANCH_EFFECT) !== 0 && (effect.f & BLOCK_EFFECT) !== 0;
|
|
2125
|
-
pause_children(child, transitions, transparent ? local : false);
|
|
2126
|
-
}
|
|
2127
|
-
child = sibling;
|
|
2128
|
-
}
|
|
2129
|
-
}
|
|
2130
|
-
function move_effect(effect, fragment) {
|
|
2131
|
-
if (!effect.nodes) return;
|
|
2132
|
-
var node = effect.nodes.start;
|
|
2133
|
-
var end = effect.nodes.end;
|
|
2134
|
-
while (node !== null) {
|
|
2135
|
-
var next2 = node === end ? null : /* @__PURE__ */ get_next_sibling(node);
|
|
2136
|
-
fragment.append(node);
|
|
2137
|
-
node = next2;
|
|
2138
|
-
}
|
|
2139
|
-
}
|
|
2140
|
-
const event_symbol = /* @__PURE__ */ Symbol("events");
|
|
2141
|
-
const all_registered_events = /* @__PURE__ */ new Set();
|
|
2142
|
-
const root_event_handles = /* @__PURE__ */ new Set();
|
|
2143
|
-
function create_event(event_name, dom, handler, options = {}) {
|
|
2144
|
-
function target_handler(event) {
|
|
2145
|
-
if (!options.capture) {
|
|
2146
|
-
handle_event_propagation.call(dom, event);
|
|
2147
|
-
}
|
|
2148
|
-
if (!event.cancelBubble) {
|
|
2149
|
-
return without_reactive_context(() => {
|
|
2150
|
-
return handler?.call(this, event);
|
|
2151
|
-
});
|
|
2152
|
-
}
|
|
2153
|
-
}
|
|
2154
|
-
if (event_name.startsWith("pointer") || event_name.startsWith("touch") || event_name === "wheel") {
|
|
2155
|
-
target_handler.__removed = false;
|
|
2156
|
-
queue_micro_task(() => {
|
|
2157
|
-
if (!target_handler.__removed) {
|
|
2158
|
-
dom.addEventListener(event_name, target_handler, options);
|
|
2159
|
-
}
|
|
2160
|
-
});
|
|
2161
|
-
} else {
|
|
2162
|
-
dom.addEventListener(event_name, target_handler, options);
|
|
2163
|
-
}
|
|
2164
|
-
return target_handler;
|
|
2165
|
-
}
|
|
2166
|
-
function on(element, type, handler, options = {}) {
|
|
2167
|
-
var target_handler = create_event(type, element, handler, options);
|
|
2168
|
-
return () => {
|
|
2169
|
-
target_handler.__removed = true;
|
|
2170
|
-
element.removeEventListener(type, target_handler, options);
|
|
2171
|
-
};
|
|
2172
|
-
}
|
|
2173
|
-
let last_propagated_event = null;
|
|
2174
|
-
let last_propagated_event_clear_scheduled = false;
|
|
2175
|
-
function handle_event_propagation(event) {
|
|
2176
|
-
var handler_element = this;
|
|
2177
|
-
var owner_document = (
|
|
2178
|
-
/** @type {Node} */
|
|
2179
|
-
handler_element.ownerDocument
|
|
2180
|
-
);
|
|
2181
|
-
var event_name = event.type;
|
|
2182
|
-
var path = event.composedPath?.() || [];
|
|
2183
|
-
var current_target = (
|
|
2184
|
-
/** @type {null | Element} */
|
|
2185
|
-
path[0] || event.target
|
|
2186
|
-
);
|
|
2187
|
-
last_propagated_event = event;
|
|
2188
|
-
if (!last_propagated_event_clear_scheduled) {
|
|
2189
|
-
last_propagated_event_clear_scheduled = true;
|
|
2190
|
-
setTimeout(() => {
|
|
2191
|
-
last_propagated_event_clear_scheduled = false;
|
|
2192
|
-
last_propagated_event = null;
|
|
2193
|
-
});
|
|
2194
|
-
}
|
|
2195
|
-
var path_idx = 0;
|
|
2196
|
-
var handled_at = last_propagated_event === event && event[event_symbol];
|
|
2197
|
-
if (handled_at) {
|
|
2198
|
-
var at_idx = path.indexOf(handled_at);
|
|
2199
|
-
if (at_idx !== -1 && (handler_element === document || handler_element === /** @type {any} */
|
|
2200
|
-
window)) {
|
|
2201
|
-
event[event_symbol] = handler_element;
|
|
2202
|
-
return;
|
|
2203
|
-
}
|
|
2204
|
-
var handler_idx = path.indexOf(handler_element);
|
|
2205
|
-
if (handler_idx === -1) {
|
|
2206
|
-
return;
|
|
2207
|
-
}
|
|
2208
|
-
if (at_idx <= handler_idx) {
|
|
2209
|
-
path_idx = at_idx;
|
|
2210
|
-
}
|
|
2211
|
-
}
|
|
2212
|
-
current_target = /** @type {Element} */
|
|
2213
|
-
path[path_idx] || event.target;
|
|
2214
|
-
if (current_target === handler_element) return;
|
|
2215
|
-
define_property(event, "currentTarget", {
|
|
2216
|
-
configurable: true,
|
|
2217
|
-
get() {
|
|
2218
|
-
return current_target || owner_document;
|
|
2219
|
-
}
|
|
2220
|
-
});
|
|
2221
|
-
var previous_reaction = active_reaction;
|
|
2222
|
-
var previous_effect = active_effect;
|
|
2223
|
-
set_active_reaction(null);
|
|
2224
|
-
set_active_effect(null);
|
|
2225
|
-
try {
|
|
2226
|
-
var throw_error;
|
|
2227
|
-
var other_errors = [];
|
|
2228
|
-
while (current_target !== null) {
|
|
2229
|
-
if (current_target === handler_element) break;
|
|
2230
|
-
try {
|
|
2231
|
-
var delegated = current_target[event_symbol]?.[event_name];
|
|
2232
|
-
if (delegated != null && (!/** @type {any} */
|
|
2233
|
-
current_target.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
2234
|
-
// -> the target could not have been disabled because it emits the event in the first place
|
|
2235
|
-
event.target === current_target)) {
|
|
2236
|
-
delegated.call(current_target, event);
|
|
2237
|
-
}
|
|
2238
|
-
} catch (error) {
|
|
2239
|
-
if (throw_error) {
|
|
2240
|
-
other_errors.push(error);
|
|
2241
|
-
} else {
|
|
2242
|
-
throw_error = error;
|
|
2243
|
-
}
|
|
2244
|
-
}
|
|
2245
|
-
if (event.cancelBubble) break;
|
|
2246
|
-
path_idx++;
|
|
2247
|
-
current_target = path_idx < path.length ? (
|
|
2248
|
-
/** @type {Element} */
|
|
2249
|
-
path[path_idx]
|
|
2250
|
-
) : null;
|
|
2251
|
-
}
|
|
2252
|
-
if (throw_error) {
|
|
2253
|
-
for (let error of other_errors) {
|
|
2254
|
-
queueMicrotask(() => {
|
|
2255
|
-
throw error;
|
|
2256
|
-
});
|
|
2257
|
-
}
|
|
2258
|
-
throw throw_error;
|
|
2259
|
-
}
|
|
2260
|
-
} finally {
|
|
2261
|
-
event[event_symbol] = handler_element;
|
|
2262
|
-
delete event.currentTarget;
|
|
2263
|
-
set_active_reaction(previous_reaction);
|
|
2264
|
-
set_active_effect(previous_effect);
|
|
2265
|
-
}
|
|
2266
|
-
}
|
|
2267
|
-
function assign_nodes(start, end) {
|
|
2268
|
-
var effect = (
|
|
2269
|
-
/** @type {Effect} */
|
|
2270
|
-
active_effect
|
|
2271
|
-
);
|
|
2272
|
-
if (effect.nodes === null) {
|
|
2273
|
-
effect.nodes = { start, end, a: null, t: null };
|
|
2274
|
-
}
|
|
2275
|
-
}
|
|
2276
|
-
function createSubscriber(start) {
|
|
2277
|
-
let subscribers = 0;
|
|
2278
|
-
let version = source(0);
|
|
2279
|
-
let stop;
|
|
2280
|
-
return () => {
|
|
2281
|
-
if (effect_tracking()) {
|
|
2282
|
-
get(version);
|
|
2283
|
-
render_effect(() => {
|
|
2284
|
-
if (subscribers === 0) {
|
|
2285
|
-
stop = untrack(() => start(() => increment(version)));
|
|
2286
|
-
}
|
|
2287
|
-
subscribers += 1;
|
|
2288
|
-
return () => {
|
|
2289
|
-
queue_micro_task(() => {
|
|
2290
|
-
subscribers -= 1;
|
|
2291
|
-
if (subscribers === 0) {
|
|
2292
|
-
stop?.();
|
|
2293
|
-
stop = void 0;
|
|
2294
|
-
increment(version);
|
|
2295
|
-
}
|
|
2296
|
-
});
|
|
2297
|
-
};
|
|
2298
|
-
});
|
|
2299
|
-
}
|
|
2300
|
-
};
|
|
2301
|
-
}
|
|
2302
|
-
var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED;
|
|
2303
|
-
function boundary(node, props, children, transform_error) {
|
|
2304
|
-
new Boundary(node, props, children, transform_error);
|
|
2305
|
-
}
|
|
2306
|
-
class Boundary {
|
|
2307
|
-
/** @type {Boundary | null} */
|
|
2308
|
-
parent;
|
|
2309
|
-
is_pending = false;
|
|
2310
|
-
/**
|
|
2311
|
-
* API-level transformError transform function. Transforms errors before they reach the `failed` snippet.
|
|
2312
|
-
* Inherited from parent boundary, or defaults to identity.
|
|
2313
|
-
* @type {(error: unknown) => unknown}
|
|
2314
|
-
*/
|
|
2315
|
-
transform_error;
|
|
2316
|
-
/** @type {TemplateNode} */
|
|
2317
|
-
#anchor;
|
|
2318
|
-
/** @type {TemplateNode | null} */
|
|
2319
|
-
#hydrate_open = hydrating ? hydrate_node : null;
|
|
2320
|
-
/** @type {BoundaryProps} */
|
|
2321
|
-
#props;
|
|
2322
|
-
/** @type {((anchor: Node) => void)} */
|
|
2323
|
-
#children;
|
|
2324
|
-
/** @type {Effect} */
|
|
2325
|
-
#effect;
|
|
2326
|
-
/** @type {Effect | null} */
|
|
2327
|
-
#main_effect = null;
|
|
2328
|
-
/** @type {Effect | null} */
|
|
2329
|
-
#pending_effect = null;
|
|
2330
|
-
/** @type {Effect | null} */
|
|
2331
|
-
#failed_effect = null;
|
|
2332
|
-
/** @type {DocumentFragment | null} */
|
|
2333
|
-
#offscreen_fragment = null;
|
|
2334
|
-
#local_pending_count = 0;
|
|
2335
|
-
#pending_count = 0;
|
|
2336
|
-
#pending_count_update_queued = false;
|
|
2337
|
-
/** @type {Set<Effect>} */
|
|
2338
|
-
#dirty_effects = /* @__PURE__ */ new Set();
|
|
2339
|
-
/** @type {Set<Effect>} */
|
|
2340
|
-
#maybe_dirty_effects = /* @__PURE__ */ new Set();
|
|
2341
|
-
/**
|
|
2342
|
-
* A source containing the number of pending async deriveds/expressions.
|
|
2343
|
-
* Only created if `$effect.pending()` is used inside the boundary,
|
|
2344
|
-
* otherwise updating the source results in needless `Batch.ensure()`
|
|
2345
|
-
* calls followed by no-op flushes
|
|
2346
|
-
* @type {Source<number> | null}
|
|
2347
|
-
*/
|
|
2348
|
-
#effect_pending = null;
|
|
2349
|
-
#effect_pending_subscriber = createSubscriber(() => {
|
|
2350
|
-
this.#effect_pending = source(this.#local_pending_count);
|
|
2351
|
-
return () => {
|
|
2352
|
-
this.#effect_pending = null;
|
|
2353
|
-
};
|
|
2354
|
-
});
|
|
2355
|
-
/**
|
|
2356
|
-
* @param {TemplateNode} node
|
|
2357
|
-
* @param {BoundaryProps} props
|
|
2358
|
-
* @param {((anchor: Node) => void)} children
|
|
2359
|
-
* @param {((error: unknown) => unknown) | undefined} [transform_error]
|
|
2360
|
-
*/
|
|
2361
|
-
constructor(node, props, children, transform_error) {
|
|
2362
|
-
this.#anchor = node;
|
|
2363
|
-
this.#props = props;
|
|
2364
|
-
this.#children = (anchor) => {
|
|
2365
|
-
var effect = (
|
|
2366
|
-
/** @type {Effect} */
|
|
2367
|
-
active_effect
|
|
2368
|
-
);
|
|
2369
|
-
effect.b = this;
|
|
2370
|
-
effect.f |= BOUNDARY_EFFECT;
|
|
2371
|
-
children(anchor);
|
|
2372
|
-
};
|
|
2373
|
-
this.parent = /** @type {Effect} */
|
|
2374
|
-
active_effect.b;
|
|
2375
|
-
this.transform_error = transform_error ?? this.parent?.transform_error ?? ((e) => e);
|
|
2376
|
-
this.#effect = block(() => {
|
|
2377
|
-
if (hydrating) {
|
|
2378
|
-
const comment_data = read_hydration_instruction(
|
|
2379
|
-
/** @type {TemplateNode} */
|
|
2380
|
-
this.#hydrate_open
|
|
2381
|
-
);
|
|
2382
|
-
hydrate_next();
|
|
2383
|
-
const server_rendered_pending = comment_data === HYDRATION_START_ELSE;
|
|
2384
|
-
const server_rendered_failed = comment_data.startsWith(HYDRATION_START_FAILED);
|
|
2385
|
-
if (server_rendered_failed) {
|
|
2386
|
-
const serialized_error = JSON.parse(comment_data.slice(HYDRATION_START_FAILED.length));
|
|
2387
|
-
this.#hydrate_failed_content(serialized_error);
|
|
2388
|
-
} else if (server_rendered_pending) {
|
|
2389
|
-
this.#hydrate_pending_content();
|
|
2390
|
-
} else {
|
|
2391
|
-
this.#hydrate_resolved_content();
|
|
2392
|
-
}
|
|
2393
|
-
} else {
|
|
2394
|
-
this.#render();
|
|
2395
|
-
}
|
|
2396
|
-
}, flags);
|
|
2397
|
-
if (hydrating) {
|
|
2398
|
-
this.#anchor = hydrate_node;
|
|
2399
|
-
}
|
|
2400
|
-
}
|
|
2401
|
-
#hydrate_resolved_content() {
|
|
2402
|
-
try {
|
|
2403
|
-
this.#main_effect = branch(() => this.#children(this.#anchor));
|
|
2404
|
-
} catch (error) {
|
|
2405
|
-
this.error(error);
|
|
2406
|
-
}
|
|
2407
|
-
}
|
|
2408
|
-
/**
|
|
2409
|
-
* @param {unknown} error The deserialized error from the server's hydration comment
|
|
2410
|
-
*/
|
|
2411
|
-
#hydrate_failed_content(error) {
|
|
2412
|
-
const failed = this.#props.failed;
|
|
2413
|
-
const { reset, invoke_onerror } = this.#create_reset(error);
|
|
2414
|
-
queue_micro_task(invoke_onerror);
|
|
2415
|
-
if (!failed) return;
|
|
2416
|
-
this.#failed_effect = branch(() => {
|
|
2417
|
-
failed(
|
|
2418
|
-
this.#anchor,
|
|
2419
|
-
() => error,
|
|
2420
|
-
() => reset
|
|
2421
|
-
);
|
|
2422
|
-
});
|
|
2423
|
-
}
|
|
2424
|
-
/**
|
|
2425
|
-
* Creates the `reset` function for a failed boundary, along with a function
|
|
2426
|
-
* that invokes `onerror` with it (if provided)
|
|
2427
|
-
* @param {unknown} error
|
|
2428
|
-
* @returns {{ reset: () => void, invoke_onerror: () => void }}
|
|
2429
|
-
*/
|
|
2430
|
-
#create_reset(error) {
|
|
2431
|
-
var did_reset = false;
|
|
2432
|
-
var calling_on_error = false;
|
|
2433
|
-
const reset = () => {
|
|
2434
|
-
if (this.#is_destroyed()) return;
|
|
2435
|
-
if (did_reset) {
|
|
2436
|
-
svelte_boundary_reset_noop();
|
|
2437
|
-
return;
|
|
2438
|
-
}
|
|
2439
|
-
did_reset = true;
|
|
2440
|
-
if (calling_on_error) {
|
|
2441
|
-
svelte_boundary_reset_onerror();
|
|
2442
|
-
}
|
|
2443
|
-
if (this.#failed_effect !== null) {
|
|
2444
|
-
pause_effect(this.#failed_effect, () => {
|
|
2445
|
-
this.#failed_effect = null;
|
|
2446
|
-
});
|
|
2447
|
-
}
|
|
2448
|
-
this.#run(() => {
|
|
2449
|
-
this.#render();
|
|
2450
|
-
});
|
|
2451
|
-
};
|
|
2452
|
-
const invoke_onerror = () => {
|
|
2453
|
-
if (this.#is_destroyed()) return;
|
|
2454
|
-
try {
|
|
2455
|
-
calling_on_error = true;
|
|
2456
|
-
this.#props.onerror?.(error, reset);
|
|
2457
|
-
calling_on_error = false;
|
|
2458
|
-
} catch (err) {
|
|
2459
|
-
invoke_error_boundary(err, this.#effect && this.#effect.parent);
|
|
2460
|
-
}
|
|
2461
|
-
};
|
|
2462
|
-
return { reset, invoke_onerror };
|
|
2463
|
-
}
|
|
2464
|
-
#is_destroyed() {
|
|
2465
|
-
return (this.#effect.f & (DESTROYED | DESTROYING)) !== 0;
|
|
2466
|
-
}
|
|
2467
|
-
#hydrate_pending_content() {
|
|
2468
|
-
const pending = this.#props.pending;
|
|
2469
|
-
if (!pending) return;
|
|
2470
|
-
this.is_pending = true;
|
|
2471
|
-
this.#pending_effect = branch(() => pending(this.#anchor));
|
|
2472
|
-
queue_micro_task(() => {
|
|
2473
|
-
if (this.#is_destroyed()) return;
|
|
2474
|
-
var fragment = this.#offscreen_fragment = document.createDocumentFragment();
|
|
2475
|
-
var anchor = create_text();
|
|
2476
|
-
var handled = false;
|
|
2477
|
-
fragment.append(anchor);
|
|
2478
|
-
this.#main_effect = this.#run(() => {
|
|
2479
|
-
try {
|
|
2480
|
-
return branch(() => this.#children(anchor));
|
|
2481
|
-
} catch (error) {
|
|
2482
|
-
try {
|
|
2483
|
-
this.error(error);
|
|
2484
|
-
handled = true;
|
|
2485
|
-
} catch (error2) {
|
|
2486
|
-
invoke_error_boundary(error2, this.#effect.parent);
|
|
2487
|
-
}
|
|
2488
|
-
return null;
|
|
2489
|
-
}
|
|
2490
|
-
});
|
|
2491
|
-
if (this.#main_effect === null) {
|
|
2492
|
-
this.#offscreen_fragment = null;
|
|
2493
|
-
if (handled) this.#resolve(
|
|
2494
|
-
/** @type {Batch} */
|
|
2495
|
-
current_batch
|
|
2496
|
-
);
|
|
2497
|
-
return;
|
|
2498
|
-
}
|
|
2499
|
-
if (this.#pending_count === 0) {
|
|
2500
|
-
this.#anchor.before(fragment);
|
|
2501
|
-
this.#offscreen_fragment = null;
|
|
2502
|
-
pause_effect(
|
|
2503
|
-
/** @type {Effect} */
|
|
2504
|
-
this.#pending_effect,
|
|
2505
|
-
() => {
|
|
2506
|
-
this.#pending_effect = null;
|
|
2507
|
-
}
|
|
2508
|
-
);
|
|
2509
|
-
this.#resolve(
|
|
2510
|
-
/** @type {Batch} */
|
|
2511
|
-
current_batch
|
|
2512
|
-
);
|
|
2513
|
-
}
|
|
2514
|
-
});
|
|
2515
|
-
}
|
|
2516
|
-
#render() {
|
|
2517
|
-
try {
|
|
2518
|
-
this.is_pending = this.has_pending_snippet();
|
|
2519
|
-
this.#pending_count = 0;
|
|
2520
|
-
this.#local_pending_count = 0;
|
|
2521
|
-
this.#main_effect = branch(() => {
|
|
2522
|
-
this.#children(this.#anchor);
|
|
2523
|
-
});
|
|
2524
|
-
if (this.#pending_count > 0) {
|
|
2525
|
-
var fragment = this.#offscreen_fragment = document.createDocumentFragment();
|
|
2526
|
-
move_effect(this.#main_effect, fragment);
|
|
2527
|
-
const pending = (
|
|
2528
|
-
/** @type {(anchor: Node) => void} */
|
|
2529
|
-
this.#props.pending
|
|
2530
|
-
);
|
|
2531
|
-
this.#pending_effect = branch(() => pending(this.#anchor));
|
|
2532
|
-
} else {
|
|
2533
|
-
this.#resolve(
|
|
2534
|
-
/** @type {Batch} */
|
|
2535
|
-
current_batch
|
|
2536
|
-
);
|
|
2537
|
-
}
|
|
2538
|
-
} catch (error) {
|
|
2539
|
-
this.error(error);
|
|
2540
|
-
}
|
|
2541
|
-
}
|
|
2542
|
-
/**
|
|
2543
|
-
* @param {Batch} batch
|
|
2544
|
-
*/
|
|
2545
|
-
#resolve(batch) {
|
|
2546
|
-
this.is_pending = false;
|
|
2547
|
-
batch.transfer_effects(this.#dirty_effects, this.#maybe_dirty_effects);
|
|
2548
|
-
}
|
|
2549
|
-
/**
|
|
2550
|
-
* Defer an effect inside a pending boundary until the boundary resolves
|
|
2551
|
-
* @param {Effect} effect
|
|
2552
|
-
*/
|
|
2553
|
-
defer_effect(effect) {
|
|
2554
|
-
defer_effect(effect, this.#dirty_effects, this.#maybe_dirty_effects);
|
|
2555
|
-
}
|
|
2556
|
-
/**
|
|
2557
|
-
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
2558
|
-
* @returns {boolean}
|
|
2559
|
-
*/
|
|
2560
|
-
is_rendered() {
|
|
2561
|
-
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
2562
|
-
}
|
|
2563
|
-
has_pending_snippet() {
|
|
2564
|
-
return !!this.#props.pending;
|
|
2565
|
-
}
|
|
2566
|
-
/**
|
|
2567
|
-
* @template T
|
|
2568
|
-
* @param {() => T} fn
|
|
2569
|
-
*/
|
|
2570
|
-
#run(fn) {
|
|
2571
|
-
var previous_effect = active_effect;
|
|
2572
|
-
var previous_reaction = active_reaction;
|
|
2573
|
-
var previous_ctx = component_context;
|
|
2574
|
-
set_active_effect(this.#effect);
|
|
2575
|
-
set_active_reaction(this.#effect);
|
|
2576
|
-
set_component_context(this.#effect.ctx);
|
|
2577
|
-
try {
|
|
2578
|
-
Batch.ensure();
|
|
2579
|
-
return fn();
|
|
2580
|
-
} finally {
|
|
2581
|
-
set_active_effect(previous_effect);
|
|
2582
|
-
set_active_reaction(previous_reaction);
|
|
2583
|
-
set_component_context(previous_ctx);
|
|
2584
|
-
}
|
|
2585
|
-
}
|
|
2586
|
-
/**
|
|
2587
|
-
* Updates the pending count associated with the currently visible pending snippet,
|
|
2588
|
-
* if any, such that we can replace the snippet with content once work is done
|
|
2589
|
-
* @param {1 | -1} d
|
|
2590
|
-
* @param {Batch} batch
|
|
2591
|
-
*/
|
|
2592
|
-
#update_pending_count(d, batch) {
|
|
2593
|
-
if (!this.has_pending_snippet()) {
|
|
2594
|
-
if (this.parent) {
|
|
2595
|
-
this.parent.#update_pending_count(d, batch);
|
|
2596
|
-
}
|
|
2597
|
-
return;
|
|
2598
|
-
}
|
|
2599
|
-
this.#pending_count += d;
|
|
2600
|
-
if (this.#pending_count === 0) {
|
|
2601
|
-
this.#resolve(batch);
|
|
2602
|
-
if (this.#pending_effect) {
|
|
2603
|
-
pause_effect(this.#pending_effect, () => {
|
|
2604
|
-
this.#pending_effect = null;
|
|
2605
|
-
});
|
|
2606
|
-
}
|
|
2607
|
-
if (this.#offscreen_fragment) {
|
|
2608
|
-
this.#anchor.before(this.#offscreen_fragment);
|
|
2609
|
-
this.#offscreen_fragment = null;
|
|
2610
|
-
}
|
|
2611
|
-
}
|
|
2612
|
-
}
|
|
2613
|
-
/**
|
|
2614
|
-
* Update the source that powers `$effect.pending()` inside this boundary,
|
|
2615
|
-
* and controls when the current `pending` snippet (if any) is removed.
|
|
2616
|
-
* Do not call from inside the class
|
|
2617
|
-
* @param {1 | -1} d
|
|
2618
|
-
* @param {Batch} batch
|
|
2619
|
-
*/
|
|
2620
|
-
update_pending_count(d, batch) {
|
|
2621
|
-
this.#update_pending_count(d, batch);
|
|
2622
|
-
this.#local_pending_count += d;
|
|
2623
|
-
if (!this.#effect_pending || this.#pending_count_update_queued) return;
|
|
2624
|
-
this.#pending_count_update_queued = true;
|
|
2625
|
-
queue_micro_task(() => {
|
|
2626
|
-
this.#pending_count_update_queued = false;
|
|
2627
|
-
if (this.#effect_pending) {
|
|
2628
|
-
internal_set(this.#effect_pending, this.#local_pending_count);
|
|
2629
|
-
}
|
|
2630
|
-
});
|
|
2631
|
-
}
|
|
2632
|
-
get_effect_pending() {
|
|
2633
|
-
this.#effect_pending_subscriber();
|
|
2634
|
-
return get(
|
|
2635
|
-
/** @type {Source<number>} */
|
|
2636
|
-
this.#effect_pending
|
|
2637
|
-
);
|
|
2638
|
-
}
|
|
2639
|
-
/** @param {unknown} error */
|
|
2640
|
-
error(error) {
|
|
2641
|
-
if (error === HYDRATION_ERROR) {
|
|
2642
|
-
throw error;
|
|
2643
|
-
}
|
|
2644
|
-
if (!this.#props.onerror && !this.#props.failed) {
|
|
2645
|
-
throw error;
|
|
2646
|
-
}
|
|
2647
|
-
if (current_batch?.is_fork) {
|
|
2648
|
-
if (this.#main_effect) current_batch.skip_effect(this.#main_effect);
|
|
2649
|
-
if (this.#pending_effect) current_batch.skip_effect(this.#pending_effect);
|
|
2650
|
-
if (this.#failed_effect) current_batch.skip_effect(this.#failed_effect);
|
|
2651
|
-
current_batch.oncommit(() => {
|
|
2652
|
-
if (!this.#is_destroyed()) this.#handle_error(error);
|
|
2653
|
-
});
|
|
2654
|
-
} else {
|
|
2655
|
-
this.#handle_error(error);
|
|
2656
|
-
}
|
|
2657
|
-
}
|
|
2658
|
-
/**
|
|
2659
|
-
* @param {unknown} error
|
|
2660
|
-
*/
|
|
2661
|
-
#handle_error(error) {
|
|
2662
|
-
if (this.#main_effect) {
|
|
2663
|
-
destroy_effect(this.#main_effect);
|
|
2664
|
-
this.#main_effect = null;
|
|
2665
|
-
}
|
|
2666
|
-
if (this.#pending_effect) {
|
|
2667
|
-
destroy_effect(this.#pending_effect);
|
|
2668
|
-
this.#pending_effect = null;
|
|
2669
|
-
}
|
|
2670
|
-
if (this.#failed_effect) {
|
|
2671
|
-
destroy_effect(this.#failed_effect);
|
|
2672
|
-
this.#failed_effect = null;
|
|
2673
|
-
}
|
|
2674
|
-
if (hydrating) {
|
|
2675
|
-
set_hydrate_node(
|
|
2676
|
-
/** @type {TemplateNode} */
|
|
2677
|
-
this.#hydrate_open
|
|
2678
|
-
);
|
|
2679
|
-
next();
|
|
2680
|
-
set_hydrate_node(skip_nodes());
|
|
2681
|
-
}
|
|
2682
|
-
let failed = this.#props.failed;
|
|
2683
|
-
const handle_error_result = (transformed_error) => {
|
|
2684
|
-
if (this.#is_destroyed()) return;
|
|
2685
|
-
const { reset, invoke_onerror } = this.#create_reset(transformed_error);
|
|
2686
|
-
invoke_onerror();
|
|
2687
|
-
if (failed && !this.#is_destroyed()) {
|
|
2688
|
-
this.#failed_effect = this.#run(() => {
|
|
2689
|
-
try {
|
|
2690
|
-
return branch(() => {
|
|
2691
|
-
var effect = (
|
|
2692
|
-
/** @type {Effect} */
|
|
2693
|
-
active_effect
|
|
2694
|
-
);
|
|
2695
|
-
effect.b = this;
|
|
2696
|
-
effect.f |= BOUNDARY_EFFECT;
|
|
2697
|
-
failed(
|
|
2698
|
-
this.#anchor,
|
|
2699
|
-
() => transformed_error,
|
|
2700
|
-
() => reset
|
|
2701
|
-
);
|
|
2702
|
-
});
|
|
2703
|
-
} catch (error2) {
|
|
2704
|
-
invoke_error_boundary(
|
|
2705
|
-
error2,
|
|
2706
|
-
/** @type {Effect} */
|
|
2707
|
-
this.#effect.parent
|
|
2708
|
-
);
|
|
2709
|
-
return null;
|
|
2710
|
-
}
|
|
2711
|
-
});
|
|
2712
|
-
}
|
|
2713
|
-
};
|
|
2714
|
-
queue_micro_task(() => {
|
|
2715
|
-
if (this.#is_destroyed()) return;
|
|
2716
|
-
var result;
|
|
2717
|
-
try {
|
|
2718
|
-
result = this.transform_error(error);
|
|
2719
|
-
} catch (e) {
|
|
2720
|
-
invoke_error_boundary(e, this.#effect && this.#effect.parent);
|
|
2721
|
-
return;
|
|
2722
|
-
}
|
|
2723
|
-
if (result !== null && typeof result === "object" && typeof /** @type {any} */
|
|
2724
|
-
result.then === "function") {
|
|
2725
|
-
result.then(
|
|
2726
|
-
handle_error_result,
|
|
2727
|
-
/** @param {unknown} e */
|
|
2728
|
-
(e) => invoke_error_boundary(e, this.#effect && this.#effect.parent)
|
|
2729
|
-
);
|
|
2730
|
-
} else {
|
|
2731
|
-
handle_error_result(result);
|
|
2732
|
-
}
|
|
2733
|
-
});
|
|
2734
|
-
}
|
|
2735
|
-
}
|
|
2736
|
-
function mount(component, options) {
|
|
2737
|
-
return _mount(component, options);
|
|
2738
|
-
}
|
|
2739
|
-
function hydrate(component, options) {
|
|
2740
|
-
init_operations();
|
|
2741
|
-
options.intro = options.intro ?? false;
|
|
2742
|
-
const target = options.target;
|
|
2743
|
-
const was_hydrating = hydrating;
|
|
2744
|
-
const previous_hydrate_node = hydrate_node;
|
|
2745
|
-
try {
|
|
2746
|
-
var anchor = /* @__PURE__ */ get_first_child(target);
|
|
2747
|
-
while (anchor && (anchor.nodeType !== COMMENT_NODE || /** @type {Comment} */
|
|
2748
|
-
anchor.data !== HYDRATION_START)) {
|
|
2749
|
-
anchor = /* @__PURE__ */ get_next_sibling(anchor);
|
|
2750
|
-
}
|
|
2751
|
-
if (!anchor) {
|
|
2752
|
-
throw HYDRATION_ERROR;
|
|
2753
|
-
}
|
|
2754
|
-
set_hydrating(true);
|
|
2755
|
-
set_hydrate_node(
|
|
2756
|
-
/** @type {Comment} */
|
|
2757
|
-
anchor
|
|
2758
|
-
);
|
|
2759
|
-
const instance = _mount(component, { ...options, anchor });
|
|
2760
|
-
set_hydrating(false);
|
|
2761
|
-
return (
|
|
2762
|
-
/** @type {Exports} */
|
|
2763
|
-
instance
|
|
2764
|
-
);
|
|
2765
|
-
} catch (error) {
|
|
2766
|
-
if (error instanceof Error && error.message.split("\n").some((line) => line.startsWith("https://svelte.dev/e/"))) {
|
|
2767
|
-
throw error;
|
|
2768
|
-
}
|
|
2769
|
-
if (error !== HYDRATION_ERROR) {
|
|
2770
|
-
console.warn("Failed to hydrate: ", error);
|
|
2771
|
-
}
|
|
2772
|
-
if (options.recover === false) {
|
|
2773
|
-
hydration_failed();
|
|
2774
|
-
}
|
|
2775
|
-
init_operations();
|
|
2776
|
-
clear_text_content(target);
|
|
2777
|
-
set_hydrating(false);
|
|
2778
|
-
return mount(component, options);
|
|
2779
|
-
} finally {
|
|
2780
|
-
set_hydrating(was_hydrating);
|
|
2781
|
-
set_hydrate_node(previous_hydrate_node);
|
|
2782
|
-
}
|
|
2783
|
-
}
|
|
2784
|
-
const listeners = /* @__PURE__ */ new Map();
|
|
2785
|
-
function _mount(Component, { target, anchor, props = {}, events, context, intro = true, transformError }) {
|
|
2786
|
-
init_operations();
|
|
2787
|
-
var component = void 0;
|
|
2788
|
-
var unmount2 = component_root(() => {
|
|
2789
|
-
var anchor_node = anchor ?? target.appendChild(create_text());
|
|
2790
|
-
boundary(
|
|
2791
|
-
/** @type {TemplateNode} */
|
|
2792
|
-
anchor_node,
|
|
2793
|
-
{
|
|
2794
|
-
pending: () => {
|
|
2795
|
-
}
|
|
2796
|
-
},
|
|
2797
|
-
(anchor_node2) => {
|
|
2798
|
-
push({});
|
|
2799
|
-
var ctx = (
|
|
2800
|
-
/** @type {ComponentContext} */
|
|
2801
|
-
component_context
|
|
2802
|
-
);
|
|
2803
|
-
if (context) ctx.c = context;
|
|
2804
|
-
if (events) {
|
|
2805
|
-
props.$$events = events;
|
|
2806
|
-
}
|
|
2807
|
-
if (hydrating) {
|
|
2808
|
-
assign_nodes(
|
|
2809
|
-
/** @type {TemplateNode} */
|
|
2810
|
-
anchor_node2,
|
|
2811
|
-
null
|
|
2812
|
-
);
|
|
2813
|
-
}
|
|
2814
|
-
component = Component(anchor_node2, props) || mark_as_component();
|
|
2815
|
-
if (hydrating) {
|
|
2816
|
-
active_effect.nodes.end = hydrate_node;
|
|
2817
|
-
if (hydrate_node === null || hydrate_node.nodeType !== COMMENT_NODE || /** @type {Comment} */
|
|
2818
|
-
hydrate_node.data !== HYDRATION_END) {
|
|
2819
|
-
hydration_mismatch();
|
|
2820
|
-
throw HYDRATION_ERROR;
|
|
2821
|
-
}
|
|
2822
|
-
}
|
|
2823
|
-
pop();
|
|
2824
|
-
},
|
|
2825
|
-
transformError
|
|
2826
|
-
);
|
|
2827
|
-
var registered_events = /* @__PURE__ */ new Set();
|
|
2828
|
-
var event_handle = (events2) => {
|
|
2829
|
-
for (var i = 0; i < events2.length; i++) {
|
|
2830
|
-
var event_name = events2[i];
|
|
2831
|
-
if (registered_events.has(event_name)) continue;
|
|
2832
|
-
registered_events.add(event_name);
|
|
2833
|
-
var passive = is_passive_event(event_name);
|
|
2834
|
-
for (const node of [target, document]) {
|
|
2835
|
-
var counts = listeners.get(node);
|
|
2836
|
-
if (counts === void 0) {
|
|
2837
|
-
counts = /* @__PURE__ */ new Map();
|
|
2838
|
-
listeners.set(node, counts);
|
|
2839
|
-
}
|
|
2840
|
-
var count = counts.get(event_name);
|
|
2841
|
-
if (count === void 0) {
|
|
2842
|
-
node.addEventListener(event_name, handle_event_propagation, { passive });
|
|
2843
|
-
counts.set(event_name, 1);
|
|
2844
|
-
} else {
|
|
2845
|
-
counts.set(event_name, count + 1);
|
|
2846
|
-
}
|
|
2847
|
-
}
|
|
2848
|
-
}
|
|
2849
|
-
};
|
|
2850
|
-
event_handle(array_from(all_registered_events));
|
|
2851
|
-
root_event_handles.add(event_handle);
|
|
2852
|
-
return () => {
|
|
2853
|
-
for (var event_name of registered_events) {
|
|
2854
|
-
for (const node of [target, document]) {
|
|
2855
|
-
var counts = (
|
|
2856
|
-
/** @type {Map<string, number>} */
|
|
2857
|
-
listeners.get(node)
|
|
2858
|
-
);
|
|
2859
|
-
var count = (
|
|
2860
|
-
/** @type {number} */
|
|
2861
|
-
counts.get(event_name)
|
|
2862
|
-
);
|
|
2863
|
-
if (--count == 0) {
|
|
2864
|
-
node.removeEventListener(event_name, handle_event_propagation);
|
|
2865
|
-
counts.delete(event_name);
|
|
2866
|
-
if (counts.size === 0) {
|
|
2867
|
-
listeners.delete(node);
|
|
2868
|
-
}
|
|
2869
|
-
} else {
|
|
2870
|
-
counts.set(event_name, count);
|
|
2871
|
-
}
|
|
2872
|
-
}
|
|
2873
|
-
}
|
|
2874
|
-
root_event_handles.delete(event_handle);
|
|
2875
|
-
if (anchor_node !== anchor) {
|
|
2876
|
-
anchor_node.parentNode?.removeChild(anchor_node);
|
|
2877
|
-
}
|
|
2878
|
-
};
|
|
2879
|
-
});
|
|
2880
|
-
mounted_components.set(component, unmount2);
|
|
2881
|
-
return component;
|
|
2882
|
-
}
|
|
2883
|
-
let mounted_components = /* @__PURE__ */ new WeakMap();
|
|
2884
|
-
function unmount(component, options) {
|
|
2885
|
-
const fn = mounted_components.get(component);
|
|
2886
|
-
if (fn) {
|
|
2887
|
-
mounted_components.delete(component);
|
|
2888
|
-
return fn(options);
|
|
2889
|
-
}
|
|
2890
|
-
return Promise.resolve();
|
|
2891
|
-
}
|
|
2892
|
-
function asClassComponent$1(component) {
|
|
2893
|
-
return class extends Svelte4Component {
|
|
2894
|
-
/** @param {any} options */
|
|
2895
|
-
constructor(options) {
|
|
2896
|
-
super({
|
|
2897
|
-
component,
|
|
2898
|
-
...options
|
|
2899
|
-
});
|
|
2900
|
-
}
|
|
2901
|
-
};
|
|
2902
|
-
}
|
|
2903
|
-
class Svelte4Component {
|
|
2904
|
-
/** @type {any} */
|
|
2905
|
-
#events;
|
|
2906
|
-
/** @type {Record<string, any>} */
|
|
2907
|
-
#instance;
|
|
2908
|
-
/**
|
|
2909
|
-
* @param {ComponentConstructorOptions & {
|
|
2910
|
-
* component: any;
|
|
2911
|
-
* }} options
|
|
2912
|
-
*/
|
|
2913
|
-
constructor(options) {
|
|
2914
|
-
var sources = /* @__PURE__ */ new Map();
|
|
2915
|
-
var add_source = (key, value) => {
|
|
2916
|
-
var s = /* @__PURE__ */ mutable_source(value, false, false);
|
|
2917
|
-
sources.set(key, s);
|
|
2918
|
-
return s;
|
|
2919
|
-
};
|
|
2920
|
-
const props = new Proxy(
|
|
2921
|
-
{ ...options.props || {}, $$events: {} },
|
|
2922
|
-
{
|
|
2923
|
-
get(target, prop) {
|
|
2924
|
-
return get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
|
|
2925
|
-
},
|
|
2926
|
-
has(target, prop) {
|
|
2927
|
-
if (prop === LEGACY_PROPS) return true;
|
|
2928
|
-
get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
|
|
2929
|
-
return Reflect.has(target, prop);
|
|
2930
|
-
},
|
|
2931
|
-
set(target, prop, value) {
|
|
2932
|
-
set(sources.get(prop) ?? add_source(prop, value), value);
|
|
2933
|
-
return Reflect.set(target, prop, value);
|
|
2934
|
-
}
|
|
2935
|
-
}
|
|
2936
|
-
);
|
|
2937
|
-
this.#instance = (options.hydrate ? hydrate : mount)(options.component, {
|
|
2938
|
-
target: options.target,
|
|
2939
|
-
anchor: options.anchor,
|
|
2940
|
-
props,
|
|
2941
|
-
context: options.context,
|
|
2942
|
-
intro: options.intro ?? false,
|
|
2943
|
-
recover: options.recover,
|
|
2944
|
-
transformError: options.transformError
|
|
2945
|
-
});
|
|
2946
|
-
if (!options?.props?.$$host || options.sync === false) {
|
|
2947
|
-
flushSync();
|
|
2948
|
-
}
|
|
2949
|
-
this.#events = props.$$events;
|
|
2950
|
-
for (const key of Object.keys(this.#instance)) {
|
|
2951
|
-
if (key === "$set" || key === "$destroy" || key === "$on") continue;
|
|
2952
|
-
define_property(this, key, {
|
|
2953
|
-
get() {
|
|
2954
|
-
return this.#instance[key];
|
|
2955
|
-
},
|
|
2956
|
-
/** @param {any} value */
|
|
2957
|
-
set(value) {
|
|
2958
|
-
this.#instance[key] = value;
|
|
2959
|
-
},
|
|
2960
|
-
enumerable: true
|
|
2961
|
-
});
|
|
2962
|
-
}
|
|
2963
|
-
this.#instance.$set = /** @param {Record<string, any>} next */
|
|
2964
|
-
(next2) => {
|
|
2965
|
-
Object.assign(props, next2);
|
|
2966
|
-
};
|
|
2967
|
-
this.#instance.$destroy = () => {
|
|
2968
|
-
unmount(this.#instance);
|
|
2969
|
-
};
|
|
2970
|
-
}
|
|
2971
|
-
/** @param {Record<string, any>} props */
|
|
2972
|
-
$set(props) {
|
|
2973
|
-
this.#instance.$set(props);
|
|
2974
|
-
}
|
|
2975
|
-
/**
|
|
2976
|
-
* @param {string} event
|
|
2977
|
-
* @param {(...args: any[]) => any} callback
|
|
2978
|
-
* @returns {any}
|
|
2979
|
-
*/
|
|
2980
|
-
$on(event, callback) {
|
|
2981
|
-
this.#events[event] = this.#events[event] || [];
|
|
2982
|
-
const cb = (...args) => callback.call(this, ...args);
|
|
2983
|
-
this.#events[event].push(cb);
|
|
2984
|
-
return () => {
|
|
2985
|
-
this.#events[event] = this.#events[event].filter(
|
|
2986
|
-
/** @param {any} fn */
|
|
2987
|
-
(fn) => fn !== cb
|
|
2988
|
-
);
|
|
2989
|
-
};
|
|
2990
|
-
}
|
|
2991
|
-
$destroy() {
|
|
2992
|
-
this.#instance.$destroy();
|
|
2993
|
-
}
|
|
2994
|
-
}
|
|
2995
|
-
function asClassComponent(component) {
|
|
2996
|
-
const component_constructor = asClassComponent$1(component);
|
|
2997
|
-
const _render = (props, { context, csp, transformError } = {}) => {
|
|
2998
|
-
const result = render(component, { props, context, csp, transformError });
|
|
2999
|
-
const munged = Object.defineProperties(
|
|
3000
|
-
/** @type {LegacyRenderResult & PromiseLike<LegacyRenderResult>} */
|
|
3001
|
-
{},
|
|
3002
|
-
{
|
|
3003
|
-
css: {
|
|
3004
|
-
value: { code: "", map: null }
|
|
3005
|
-
},
|
|
3006
|
-
head: {
|
|
3007
|
-
get: () => result.head
|
|
3008
|
-
},
|
|
3009
|
-
html: {
|
|
3010
|
-
get: () => result.body
|
|
3011
|
-
},
|
|
3012
|
-
then: {
|
|
3013
|
-
/**
|
|
3014
|
-
* this is not type-safe, but honestly it's the best I can do right now, and it's a straightforward function.
|
|
3015
|
-
*
|
|
3016
|
-
* @template TResult1
|
|
3017
|
-
* @template [TResult2=never]
|
|
3018
|
-
* @param { (value: LegacyRenderResult) => TResult1 } onfulfilled
|
|
3019
|
-
* @param { (reason: unknown) => TResult2 } onrejected
|
|
3020
|
-
*/
|
|
3021
|
-
value: (onfulfilled, onrejected) => {
|
|
3022
|
-
{
|
|
3023
|
-
const user_result = onfulfilled({
|
|
3024
|
-
css: munged.css,
|
|
3025
|
-
head: munged.head,
|
|
3026
|
-
html: munged.html
|
|
3027
|
-
});
|
|
3028
|
-
return Promise.resolve(user_result);
|
|
3029
|
-
}
|
|
3030
|
-
}
|
|
3031
|
-
}
|
|
3032
|
-
}
|
|
3033
|
-
);
|
|
3034
|
-
return munged;
|
|
3035
|
-
};
|
|
3036
|
-
component_constructor.render = _render;
|
|
3037
|
-
return component_constructor;
|
|
3038
|
-
}
|
|
3039
|
-
function Root($$renderer, $$props) {
|
|
3040
|
-
$$renderer.component(($$renderer2) => {
|
|
3041
|
-
let {
|
|
3042
|
-
stores,
|
|
3043
|
-
page,
|
|
3044
|
-
constructors,
|
|
3045
|
-
components = [],
|
|
3046
|
-
form,
|
|
3047
|
-
data_0 = null,
|
|
3048
|
-
data_1 = null
|
|
3049
|
-
} = $$props;
|
|
3050
|
-
{
|
|
3051
|
-
setContext("__svelte__", stores);
|
|
3052
|
-
}
|
|
3053
|
-
{
|
|
3054
|
-
stores.page.set(page);
|
|
3055
|
-
}
|
|
3056
|
-
const Pyramid_1 = derived(() => constructors[1]);
|
|
3057
|
-
if (constructors[1]) {
|
|
3058
|
-
$$renderer2.push("<!--[0-->");
|
|
3059
|
-
const Pyramid_0 = constructors[0];
|
|
3060
|
-
if (Pyramid_0) {
|
|
3061
|
-
$$renderer2.push("<!--[-->");
|
|
3062
|
-
Pyramid_0($$renderer2, {
|
|
3063
|
-
data: data_0,
|
|
3064
|
-
form,
|
|
3065
|
-
params: page.params,
|
|
3066
|
-
children: ($$renderer3) => {
|
|
3067
|
-
if (Pyramid_1()) {
|
|
3068
|
-
$$renderer3.push("<!--[-->");
|
|
3069
|
-
Pyramid_1()($$renderer3, { data: data_1, form, params: page.params });
|
|
3070
|
-
$$renderer3.push("<!--]-->");
|
|
3071
|
-
} else {
|
|
3072
|
-
$$renderer3.push("<!--[!-->");
|
|
3073
|
-
$$renderer3.push("<!--]-->");
|
|
3074
|
-
}
|
|
3075
|
-
},
|
|
3076
|
-
$$slots: { default: true }
|
|
3077
|
-
});
|
|
3078
|
-
$$renderer2.push("<!--]-->");
|
|
3079
|
-
} else {
|
|
3080
|
-
$$renderer2.push("<!--[!-->");
|
|
3081
|
-
$$renderer2.push("<!--]-->");
|
|
3082
|
-
}
|
|
3083
|
-
} else {
|
|
3084
|
-
$$renderer2.push("<!--[-1-->");
|
|
3085
|
-
const Pyramid_0 = constructors[0];
|
|
3086
|
-
if (Pyramid_0) {
|
|
3087
|
-
$$renderer2.push("<!--[-->");
|
|
3088
|
-
Pyramid_0($$renderer2, { data: data_0, form, params: page.params });
|
|
3089
|
-
$$renderer2.push("<!--]-->");
|
|
3090
|
-
} else {
|
|
3091
|
-
$$renderer2.push("<!--[!-->");
|
|
3092
|
-
$$renderer2.push("<!--]-->");
|
|
3093
|
-
}
|
|
3094
|
-
}
|
|
3095
|
-
$$renderer2.push(`<!--]--> `);
|
|
3096
|
-
{
|
|
3097
|
-
$$renderer2.push("<!--[-1-->");
|
|
3098
|
-
}
|
|
3099
|
-
$$renderer2.push(`<!--]-->`);
|
|
3100
|
-
});
|
|
3101
|
-
}
|
|
3102
|
-
const root = asClassComponent(Root);
|
|
3103
|
-
|
|
3104
|
-
export { browser as b, on as o, root as r, safe_not_equal as s };
|
|
3105
|
-
//# sourceMappingURL=root.js-CQzYN4Pu.js.map
|