@juspay/shooter 1.23.0 → 1.24.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/build/client/_app/immutable/chunks/{DULfdsh6.js → BPIlDnhM.js} +2 -2
- package/build/client/_app/immutable/chunks/BPIlDnhM.js.br +0 -0
- package/build/client/_app/immutable/chunks/BPIlDnhM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{2rBV5OkJ.js → BQJR1fvD.js} +1 -1
- package/build/client/_app/immutable/chunks/BQJR1fvD.js.br +0 -0
- package/build/client/_app/immutable/chunks/BQJR1fvD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DLu6yJIZ.js → BjXFD2Pv.js} +1 -1
- package/build/client/_app/immutable/chunks/BjXFD2Pv.js.br +0 -0
- package/build/client/_app/immutable/chunks/BjXFD2Pv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BzW0vlVX.js +3 -0
- package/build/client/_app/immutable/chunks/BzW0vlVX.js.br +0 -0
- package/build/client/_app/immutable/chunks/BzW0vlVX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BjYr_-Ss.js → CfzjLyJm.js} +1 -1
- package/build/client/_app/immutable/chunks/CfzjLyJm.js.br +0 -0
- package/build/client/_app/immutable/chunks/CfzjLyJm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{C4Hns_Wl.js → CnsJhNGt.js} +1 -1
- package/build/client/_app/immutable/chunks/CnsJhNGt.js.br +0 -0
- package/build/client/_app/immutable/chunks/CnsJhNGt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DomZZqvG.js → DFa6kKPT.js} +1 -1
- package/build/client/_app/immutable/chunks/DFa6kKPT.js.br +0 -0
- package/build/client/_app/immutable/chunks/DFa6kKPT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BcpydfqI.js → DcXdn821.js} +1 -1
- package/build/client/_app/immutable/chunks/DcXdn821.js.br +0 -0
- package/build/client/_app/immutable/chunks/DcXdn821.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{fcNfTA-E.js → DjWRwZyr.js} +1 -1
- package/build/client/_app/immutable/chunks/DjWRwZyr.js.br +0 -0
- package/build/client/_app/immutable/chunks/DjWRwZyr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dk1NUsIU.js +61 -0
- package/build/client/_app/immutable/chunks/Dk1NUsIU.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dk1NUsIU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DoGIJDSZ.js +2 -0
- package/build/client/_app/immutable/chunks/DoGIJDSZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DoGIJDSZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B1bOvemT.js → aiM7Bbhi.js} +8 -8
- package/build/client/_app/immutable/chunks/aiM7Bbhi.js.br +0 -0
- package/build/client/_app/immutable/chunks/aiM7Bbhi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CJulw9ux.js → etLjvmY8.js} +1 -1
- package/build/client/_app/immutable/chunks/{CJulw9ux.js.br → etLjvmY8.js.br} +0 -0
- package/build/client/_app/immutable/chunks/etLjvmY8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/kzeZOqU5.js +1 -0
- package/build/client/_app/immutable/chunks/kzeZOqU5.js.br +0 -0
- package/build/client/_app/immutable/chunks/kzeZOqU5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{i5iZvmIH.js → oIHVoAuz.js} +1 -1
- package/build/client/_app/immutable/chunks/oIHVoAuz.js.br +0 -0
- package/build/client/_app/immutable/chunks/oIHVoAuz.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.9F0rhLIY.js +2 -0
- package/build/client/_app/immutable/entry/app.9F0rhLIY.js.br +0 -0
- package/build/client/_app/immutable/entry/app.9F0rhLIY.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DGFWmhrj.js +1 -0
- package/build/client/_app/immutable/entry/start.DGFWmhrj.js.br +2 -0
- package/build/client/_app/immutable/entry/start.DGFWmhrj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.Bv_TwEnq.js → 0.MlMcxYLT.js} +1 -1
- package/build/client/_app/immutable/nodes/0.MlMcxYLT.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.MlMcxYLT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.7lffTIeb.js → 1._Bn-HQ9b.js} +1 -1
- package/build/client/_app/immutable/nodes/1._Bn-HQ9b.js.br +0 -0
- package/build/client/_app/immutable/nodes/1._Bn-HQ9b.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{10.ChiIrIDl.js → 10.CsX0V4R9.js} +1 -1
- package/build/client/_app/immutable/nodes/10.CsX0V4R9.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.CsX0V4R9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{11.DO3vyXEv.js → 11.lM_b6yUv.js} +2 -2
- package/build/client/_app/immutable/nodes/11.lM_b6yUv.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.lM_b6yUv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.iMIqsE7n.js → 2.sAnHf5go.js} +1 -1
- package/build/client/_app/immutable/nodes/2.sAnHf5go.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.sAnHf5go.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.CArnSHOO.js → 3.DEHWta3G.js} +1 -1
- package/build/client/_app/immutable/nodes/3.DEHWta3G.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.DEHWta3G.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.BFYS2g9C.js → 4.C9fv_m2R.js} +1 -1
- package/build/client/_app/immutable/nodes/4.C9fv_m2R.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.C9fv_m2R.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{5.DziEu9rx.js → 5.vMR5XEA6.js} +1 -1
- package/build/client/_app/immutable/nodes/5.vMR5XEA6.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.vMR5XEA6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.B8l1RwkB.js → 6.-gDjaLSz.js} +1 -1
- package/build/client/_app/immutable/nodes/6.-gDjaLSz.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.-gDjaLSz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.BPyfhDis.js → 7.R-emDnvX.js} +1 -1
- package/build/client/_app/immutable/nodes/7.R-emDnvX.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.R-emDnvX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{8.D_vszZ9E.js → 8.DXNcFetv.js} +1 -1
- package/build/client/_app/immutable/nodes/8.DXNcFetv.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.DXNcFetv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.Drah-do-.js → 9.Brv6N-Ji.js} +1 -1
- package/build/client/_app/immutable/nodes/9.Brv6N-Ji.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.Brv6N-Ji.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/server/chunks/{0-DAB_6Vm1.js → 0-CezVlDLP.js} +3 -3
- package/build/server/chunks/{0-DAB_6Vm1.js.map → 0-CezVlDLP.js.map} +1 -1
- package/build/server/chunks/1-CAwGzW00.js +9 -0
- package/build/server/chunks/{1-D-qMYaCx.js.map → 1-CAwGzW00.js.map} +1 -1
- package/build/server/chunks/10-pqorW2OP.js +9 -0
- package/build/server/chunks/{10-CeFFGo-X.js.map → 10-pqorW2OP.js.map} +1 -1
- package/build/server/chunks/11-Byxg_lSY.js +9 -0
- package/build/server/chunks/{11-DRMu_ATU.js.map → 11-Byxg_lSY.js.map} +1 -1
- package/build/server/chunks/{2-B7OLBMNH.js → 2-Bbck5mN2.js} +3 -3
- package/build/server/chunks/{2-B7OLBMNH.js.map → 2-Bbck5mN2.js.map} +1 -1
- package/build/server/chunks/{3-B38ZarLw.js → 3-BBFbA1P8.js} +3 -3
- package/build/server/chunks/{3-B38ZarLw.js.map → 3-BBFbA1P8.js.map} +1 -1
- package/build/server/chunks/{4-D92KnTmb.js → 4-w2W_T8ax.js} +3 -3
- package/build/server/chunks/{4-D92KnTmb.js.map → 4-w2W_T8ax.js.map} +1 -1
- package/build/server/chunks/{5-D-Uv1voC.js → 5-BKDmLKb4.js} +3 -3
- package/build/server/chunks/{5-D-Uv1voC.js.map → 5-BKDmLKb4.js.map} +1 -1
- package/build/server/chunks/6-BI3p-t3i.js +9 -0
- package/build/server/chunks/{6-DP46cUej.js.map → 6-BI3p-t3i.js.map} +1 -1
- package/build/server/chunks/7-6XKPVOSu.js +9 -0
- package/build/server/chunks/{7-B29_3ar6.js.map → 7-6XKPVOSu.js.map} +1 -1
- package/build/server/chunks/8-VOztiJG_.js +9 -0
- package/build/server/chunks/{8-DCnSDVrX.js.map → 8-VOztiJG_.js.map} +1 -1
- package/build/server/chunks/9-DNUlBLEz.js +9 -0
- package/build/server/chunks/{9-BwqDc8wC.js.map → 9-DNUlBLEz.js.map} +1 -1
- package/build/server/chunks/{Banner-BgaAs1rs.js → Banner-8zU7JxF6.js} +3 -3
- package/build/server/chunks/Banner-8zU7JxF6.js.map +1 -0
- package/build/server/chunks/{Button-D0hZ7JYt.js → Button-DmE4ENkb.js} +2 -2
- package/build/server/chunks/Button-DmE4ENkb.js.map +1 -0
- package/build/server/chunks/{Icon-D0GBnDcs.js → Icon-By4fwUeB.js} +3 -3
- package/build/server/chunks/Icon-By4fwUeB.js.map +1 -0
- package/build/server/chunks/{Input-OmIiydSx.js → Input-DP3ahKZB.js} +2 -2
- package/build/server/chunks/Input-DP3ahKZB.js.map +1 -0
- package/build/server/chunks/{Pill-4xJ-VhAA.js → Pill-DwAR6cas.js} +3 -3
- package/build/server/chunks/Pill-DwAR6cas.js.map +1 -0
- package/build/server/chunks/{Shimmer-Dw2uvTC1.js → Shimmer-Bo1CUNAU.js} +2 -2
- package/build/server/chunks/Shimmer-Bo1CUNAU.js.map +1 -0
- package/build/server/chunks/{_error.svelte-CZnkxeLr.js → _error.svelte-r3eJvFdN.js} +8 -8
- package/build/server/chunks/_error.svelte-r3eJvFdN.js.map +1 -0
- package/build/server/chunks/{_layout.svelte-DfgNGGiM.js → _layout.svelte-BlI9weU7.js} +10 -10
- package/build/server/chunks/_layout.svelte-BlI9weU7.js.map +1 -0
- package/build/server/chunks/{_page.svelte-dabsQl9c.js → _page.svelte-B7_oMI0l.js} +10 -10
- package/build/server/chunks/_page.svelte-B7_oMI0l.js.map +1 -0
- package/build/server/chunks/{_page.svelte-CWsjjd4l.js → _page.svelte-BB3pLObN.js} +9 -9
- package/build/server/chunks/_page.svelte-BB3pLObN.js.map +1 -0
- package/build/server/chunks/{_page.svelte-CE7COWnF.js → _page.svelte-BDoNXDBU.js} +7 -7
- package/build/server/chunks/_page.svelte-BDoNXDBU.js.map +1 -0
- package/build/server/chunks/{_page.svelte-8OFzwdNA.js → _page.svelte-CMryWeEG.js} +11 -11
- package/build/server/chunks/_page.svelte-CMryWeEG.js.map +1 -0
- package/build/server/chunks/{_page.svelte-D_Ey8QRG.js → _page.svelte-CS4GU4ex.js} +11 -11
- package/build/server/chunks/_page.svelte-CS4GU4ex.js.map +1 -0
- package/build/server/chunks/{_page.svelte-D5S2hkBk.js → _page.svelte-CUfOc8Hm.js} +9 -9
- package/build/server/chunks/{_page.svelte-D5S2hkBk.js.map → _page.svelte-CUfOc8Hm.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-BTlfUsBp.js → _page.svelte-Cj5OW0HR.js} +6 -6
- package/build/server/chunks/_page.svelte-Cj5OW0HR.js.map +1 -0
- package/build/server/chunks/{_page.svelte-Gv9p8nlS.js → _page.svelte-DDE2nChH.js} +6 -6
- package/build/server/chunks/_page.svelte-DDE2nChH.js.map +1 -0
- package/build/server/chunks/{_page.svelte-BX2FMgSg.js → _page.svelte-svT4jMLg.js} +4 -4
- package/build/server/chunks/{_page.svelte-BX2FMgSg.js.map → _page.svelte-svT4jMLg.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-C7B0qdrC.js → _page.svelte-vtaZs27Q.js} +5 -5
- package/build/server/chunks/_page.svelte-vtaZs27Q.js.map +1 -0
- package/build/server/chunks/{_server.ts-Da1kSClZ.js → _server.ts--7PnGah8.js} +3 -3
- package/build/server/chunks/{_server.ts-Da1kSClZ.js.map → _server.ts--7PnGah8.js.map} +1 -1
- package/build/server/chunks/{_server.ts-Mttr0-Sl.js → _server.ts-57dINphj.js} +2 -2
- package/build/server/chunks/{_server.ts-Mttr0-Sl.js.map → _server.ts-57dINphj.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BCljU9Sg.js → _server.ts-5ZMeZtad.js} +2 -2
- package/build/server/chunks/{_server.ts-BCljU9Sg.js.map → _server.ts-5ZMeZtad.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CGqCOCdK.js → _server.ts-ArA8CrYi.js} +2 -2
- package/build/server/chunks/{_server.ts-CGqCOCdK.js.map → _server.ts-ArA8CrYi.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DPHRUFYS.js → _server.ts-BKqxnNf1.js} +2 -2
- package/build/server/chunks/{_server.ts-DPHRUFYS.js.map → _server.ts-BKqxnNf1.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BXhmLZwN.js → _server.ts-BTNIhKVv.js} +2 -2
- package/build/server/chunks/{_server.ts-BXhmLZwN.js.map → _server.ts-BTNIhKVv.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CYWXjihn.js → _server.ts-Bcagaih0.js} +3 -3
- package/build/server/chunks/{_server.ts-CYWXjihn.js.map → _server.ts-Bcagaih0.js.map} +1 -1
- package/build/server/chunks/{_server.ts-B-evHL2q.js → _server.ts-Bmp-ldee.js} +2 -2
- package/build/server/chunks/{_server.ts-B-evHL2q.js.map → _server.ts-Bmp-ldee.js.map} +1 -1
- package/build/server/chunks/{_server.ts-QN-Bo5ql.js → _server.ts-BrDK1fJ9.js} +2 -2
- package/build/server/chunks/{_server.ts-QN-Bo5ql.js.map → _server.ts-BrDK1fJ9.js.map} +1 -1
- package/build/server/chunks/{_server.ts-D9ir7u24.js → _server.ts-C-XPLtdp.js} +2 -2
- package/build/server/chunks/{_server.ts-D9ir7u24.js.map → _server.ts-C-XPLtdp.js.map} +1 -1
- package/build/server/chunks/{_server.ts-D0___krA.js → _server.ts-C3rA9AOZ.js} +3 -3
- package/build/server/chunks/{_server.ts-D0___krA.js.map → _server.ts-C3rA9AOZ.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DZvfyuNj.js → _server.ts-CDeJYhn1.js} +2 -2
- package/build/server/chunks/{_server.ts-DZvfyuNj.js.map → _server.ts-CDeJYhn1.js.map} +1 -1
- package/build/server/chunks/{_server.ts-Blx6TuRU.js → _server.ts-CLxpocw5.js} +3 -3
- package/build/server/chunks/{_server.ts-Blx6TuRU.js.map → _server.ts-CLxpocw5.js.map} +1 -1
- package/build/server/chunks/{_server.ts-D_WRex0k.js → _server.ts-COpXw9HU.js} +2 -2
- package/build/server/chunks/{_server.ts-D_WRex0k.js.map → _server.ts-COpXw9HU.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DkZX_O9a.js → _server.ts-CYfsIgGS.js} +2 -2
- package/build/server/chunks/{_server.ts-DkZX_O9a.js.map → _server.ts-CYfsIgGS.js.map} +1 -1
- package/build/server/chunks/{_server.ts-MbnroWEF.js → _server.ts-CZFcAWEP.js} +2 -2
- package/build/server/chunks/{_server.ts-MbnroWEF.js.map → _server.ts-CZFcAWEP.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DpRr0Tfh.js → _server.ts-Cm0noZR0.js} +2 -2
- package/build/server/chunks/{_server.ts-DpRr0Tfh.js.map → _server.ts-Cm0noZR0.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BaaY7Z9D.js → _server.ts-Cu_4i2k1.js} +2 -2
- package/build/server/chunks/{_server.ts-BaaY7Z9D.js.map → _server.ts-Cu_4i2k1.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BLNDdFWC.js → _server.ts-D2RS8TFd.js} +2 -2
- package/build/server/chunks/{_server.ts-BLNDdFWC.js.map → _server.ts-D2RS8TFd.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BScvgttw.js → _server.ts-D9_hkPQ6.js} +2 -2
- package/build/server/chunks/{_server.ts-BScvgttw.js.map → _server.ts-D9_hkPQ6.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BbRSpB74.js → _server.ts-DFI6mMYL.js} +2 -2
- package/build/server/chunks/{_server.ts-BbRSpB74.js.map → _server.ts-DFI6mMYL.js.map} +1 -1
- package/build/server/chunks/{_server.ts-C6NRpe7e.js → _server.ts-DGPBCKvQ.js} +2 -2
- package/build/server/chunks/{_server.ts-C6NRpe7e.js.map → _server.ts-DGPBCKvQ.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BB46Fbqn.js → _server.ts-DRRGeb__.js} +2 -2
- package/build/server/chunks/{_server.ts-BB46Fbqn.js.map → _server.ts-DRRGeb__.js.map} +1 -1
- package/build/server/chunks/{_server.ts-l3cd4Cto.js → _server.ts-DaA9ZSqv.js} +3 -3
- package/build/server/chunks/{_server.ts-l3cd4Cto.js.map → _server.ts-DaA9ZSqv.js.map} +1 -1
- package/build/server/chunks/{_server.ts-05JJOdcX.js → _server.ts-DfscXcFe.js} +38 -23
- package/build/server/chunks/_server.ts-DfscXcFe.js.map +1 -0
- package/build/server/chunks/{_server.ts-CVPZOpiv.js → _server.ts-DlGrc8cE.js} +2 -2
- package/build/server/chunks/{_server.ts-CVPZOpiv.js.map → _server.ts-DlGrc8cE.js.map} +1 -1
- package/build/server/chunks/{_server.ts-C0317RBD.js → _server.ts-DuAA6Ks-.js} +2 -2
- package/build/server/chunks/{_server.ts-C0317RBD.js.map → _server.ts-DuAA6Ks-.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BTmknWpO.js → _server.ts-EJVmhLtg.js} +2 -2
- package/build/server/chunks/{_server.ts-BTmknWpO.js.map → _server.ts-EJVmhLtg.js.map} +1 -1
- package/build/server/chunks/{_server.ts-jtqWDWcf.js → _server.ts-NVx03KEN.js} +2 -2
- package/build/server/chunks/{_server.ts-jtqWDWcf.js.map → _server.ts-NVx03KEN.js.map} +1 -1
- package/build/server/chunks/{_server.ts-W6i3EnGX.js → _server.ts-o_sRQMMS.js} +2 -2
- package/build/server/chunks/{_server.ts-W6i3EnGX.js.map → _server.ts-o_sRQMMS.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DOGUMzPx.js → _server.ts-v7TaT83B.js} +2 -2
- package/build/server/chunks/{_server.ts-DOGUMzPx.js.map → _server.ts-v7TaT83B.js.map} +1 -1
- package/build/server/chunks/{cache-BlMaDsHi.js → cache-De-MXr04.js} +2 -2
- package/build/server/chunks/cache-De-MXr04.js.map +1 -0
- package/build/server/chunks/{client-Ds1brw-8.js → client-dJTdv51U.js} +4 -4
- package/build/server/chunks/client-dJTdv51U.js.map +1 -0
- package/build/server/chunks/client2-CZlO7zn4.js +7 -0
- package/build/server/chunks/{client2-DngLdcUc.js.map → client2-CZlO7zn4.js.map} +1 -1
- package/build/server/chunks/{index2-dSGQ9Eaa.js → index-L-OMOXY-.js} +2 -2
- package/build/server/chunks/index-L-OMOXY-.js.map +1 -0
- package/build/server/chunks/{index-CoD1IJuy.js → index-lhTMmBNn.js} +20 -3
- package/build/server/chunks/index-lhTMmBNn.js.map +1 -0
- package/build/server/chunks/{index-server-Bq3cnK69.js → index-server-CdDI4vgN.js} +2 -2
- package/build/server/chunks/index-server-CdDI4vgN.js.map +1 -0
- package/build/server/chunks/{index-CoYB03g7.js → index2-BLq4EEng.js} +1627 -1627
- package/build/server/chunks/index2-BLq4EEng.js.map +1 -0
- package/build/server/chunks/{pty-manager-DDjG7DlH.js → pty-manager-BsHXoNks.js} +16 -1
- package/build/server/chunks/pty-manager-BsHXoNks.js.map +1 -0
- package/build/server/chunks/qwen-reader-DGfUbKaJ.js.map +1 -1
- package/build/server/chunks/registry-D4J_CuzW.js.map +1 -1
- package/build/server/chunks/{root-D4IoFC8F.js → root-Ce8FGAoU.js} +42 -43
- package/build/server/chunks/root-Ce8FGAoU.js.map +1 -0
- package/build/server/chunks/{state.svelte-CmHqngc_.js → state.svelte-DCKkPJr6.js} +3 -3
- package/build/server/chunks/state.svelte-DCKkPJr6.js.map +1 -0
- package/build/server/chunks/{stores-CRYxfF0o.js → stores-CVemzLCH.js} +4 -4
- package/build/server/chunks/stores-CVemzLCH.js.map +1 -0
- package/build/server/index.js +365 -169
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +44 -44
- package/build/server/manifest.js.map +1 -1
- package/package.json +2 -2
- package/server.ts +3 -0
- package/src/lib/modules/client/terminal/xterm-wrapper.ts +4 -3
- package/src/lib/modules/server/apn/device-token.ts +57 -0
- package/src/lib/modules/server/terminal/pty-manager.ts +12 -0
- package/src/lib/modules/server/terminal/terminal-store.ts +10 -0
- package/src/lib/modules/server/ws/terminal-handler.ts +49 -8
- package/src/lib/types/server.ts +7 -0
- package/src/lib/types/ws.ts +4 -0
- package/src/routes/api/notify/+server.ts +20 -35
- package/src/routes/api/terminals/[id]/resize/+server.ts +3 -0
- package/build/client/_app/immutable/chunks/2rBV5OkJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/2rBV5OkJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B1bOvemT.js.br +0 -0
- package/build/client/_app/immutable/chunks/B1bOvemT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BDcFu3l7.js +0 -61
- package/build/client/_app/immutable/chunks/BDcFu3l7.js.br +0 -0
- package/build/client/_app/immutable/chunks/BDcFu3l7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BPDiEZo0.js +0 -2
- package/build/client/_app/immutable/chunks/BPDiEZo0.js.br +0 -0
- package/build/client/_app/immutable/chunks/BPDiEZo0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BcpydfqI.js.br +0 -0
- package/build/client/_app/immutable/chunks/BcpydfqI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bj5wFimK.js +0 -3
- package/build/client/_app/immutable/chunks/Bj5wFimK.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bj5wFimK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BjYr_-Ss.js.br +0 -0
- package/build/client/_app/immutable/chunks/BjYr_-Ss.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C4Hns_Wl.js.br +0 -0
- package/build/client/_app/immutable/chunks/C4Hns_Wl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CJulw9ux.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DLu6yJIZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DLu6yJIZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DULfdsh6.js.br +0 -0
- package/build/client/_app/immutable/chunks/DULfdsh6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DWmC0QM7.js +0 -1
- package/build/client/_app/immutable/chunks/DWmC0QM7.js.br +0 -0
- package/build/client/_app/immutable/chunks/DWmC0QM7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DomZZqvG.js.br +0 -0
- package/build/client/_app/immutable/chunks/DomZZqvG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/fcNfTA-E.js.br +0 -0
- package/build/client/_app/immutable/chunks/fcNfTA-E.js.gz +0 -0
- package/build/client/_app/immutable/chunks/i5iZvmIH.js.br +0 -0
- package/build/client/_app/immutable/chunks/i5iZvmIH.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.Bvoqymnp.js +0 -2
- package/build/client/_app/immutable/entry/app.Bvoqymnp.js.br +0 -0
- package/build/client/_app/immutable/entry/app.Bvoqymnp.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BqXCPPZJ.js +0 -1
- package/build/client/_app/immutable/entry/start.BqXCPPZJ.js.br +0 -2
- package/build/client/_app/immutable/entry/start.BqXCPPZJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.Bv_TwEnq.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.Bv_TwEnq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.7lffTIeb.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.7lffTIeb.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.ChiIrIDl.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.ChiIrIDl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.DO3vyXEv.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.DO3vyXEv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.iMIqsE7n.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.iMIqsE7n.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.CArnSHOO.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CArnSHOO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.BFYS2g9C.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BFYS2g9C.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DziEu9rx.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.DziEu9rx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.B8l1RwkB.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.B8l1RwkB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.BPyfhDis.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.BPyfhDis.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.D_vszZ9E.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.D_vszZ9E.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.Drah-do-.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.Drah-do-.js.gz +0 -0
- package/build/server/chunks/1-D-qMYaCx.js +0 -9
- package/build/server/chunks/10-CeFFGo-X.js +0 -9
- package/build/server/chunks/11-DRMu_ATU.js +0 -9
- package/build/server/chunks/6-DP46cUej.js +0 -9
- package/build/server/chunks/7-B29_3ar6.js +0 -9
- package/build/server/chunks/8-DCnSDVrX.js +0 -9
- package/build/server/chunks/9-BwqDc8wC.js +0 -9
- package/build/server/chunks/Banner-BgaAs1rs.js.map +0 -1
- package/build/server/chunks/Button-D0hZ7JYt.js.map +0 -1
- package/build/server/chunks/Icon-D0GBnDcs.js.map +0 -1
- package/build/server/chunks/Input-OmIiydSx.js.map +0 -1
- package/build/server/chunks/Pill-4xJ-VhAA.js.map +0 -1
- package/build/server/chunks/Shimmer-Dw2uvTC1.js.map +0 -1
- package/build/server/chunks/_error.svelte-CZnkxeLr.js.map +0 -1
- package/build/server/chunks/_layout.svelte-DfgNGGiM.js.map +0 -1
- package/build/server/chunks/_page.svelte-8OFzwdNA.js.map +0 -1
- package/build/server/chunks/_page.svelte-BTlfUsBp.js.map +0 -1
- package/build/server/chunks/_page.svelte-C7B0qdrC.js.map +0 -1
- package/build/server/chunks/_page.svelte-CE7COWnF.js.map +0 -1
- package/build/server/chunks/_page.svelte-CWsjjd4l.js.map +0 -1
- package/build/server/chunks/_page.svelte-D_Ey8QRG.js.map +0 -1
- package/build/server/chunks/_page.svelte-Gv9p8nlS.js.map +0 -1
- package/build/server/chunks/_page.svelte-dabsQl9c.js.map +0 -1
- package/build/server/chunks/_server.ts-05JJOdcX.js.map +0 -1
- package/build/server/chunks/cache-BlMaDsHi.js.map +0 -1
- package/build/server/chunks/client-Ds1brw-8.js.map +0 -1
- package/build/server/chunks/client2-DngLdcUc.js +0 -7
- package/build/server/chunks/index-CoD1IJuy.js.map +0 -1
- package/build/server/chunks/index-CoYB03g7.js.map +0 -1
- package/build/server/chunks/index-server-Bq3cnK69.js.map +0 -1
- package/build/server/chunks/index2-dSGQ9Eaa.js.map +0 -1
- package/build/server/chunks/pty-manager-DDjG7DlH.js.map +0 -1
- package/build/server/chunks/root-D4IoFC8F.js.map +0 -1
- package/build/server/chunks/state.svelte-CmHqngc_.js.map +0 -1
- package/build/server/chunks/stores-CRYxfF0o.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../assets/xterm.DFuMZ0ql.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as b}from"./PPVm8Dsz.js";async function N(e){const{Terminal:
|
|
2
|
+
import{_ as b}from"./PPVm8Dsz.js";async function N(e){const{Terminal:p}=await b(async()=>{const{Terminal:r}=await import("./BTGVxaYV.js").then(i=>i.x);return{Terminal:r}},[],import.meta.url),{FitAddon:_}=await b(async()=>{const{FitAddon:r}=await import("./BlxrFPDK.js").then(i=>i.a);return{FitAddon:r}},[],import.meta.url),{WebLinksAddon:k}=await b(async()=>{const{WebLinksAddon:r}=await import("./BjXFD2Pv.js").then(i=>i.a);return{WebLinksAddon:r}},[],import.meta.url);await b(()=>Promise.resolve({}),__vite__mapDeps([0]),import.meta.url);const d=new _,n=new p({allowTransparency:!0,cursorBlink:!0,cursorStyle:"block",fontFamily:"'SF Mono', 'Fira Code', 'Cascadia Code', 'Menlo', monospace",fontSize:e.fontSize||14,theme:{background:"#0a0a0f",black:"#0a0a0f",blue:"#3b82f6",brightBlack:"#64748b",brightBlue:"#60a5fa",brightCyan:"#67e8f9",brightGreen:"#4ade80",brightMagenta:"#c4b5fd",brightRed:"#f87171",brightWhite:"#f8fafc",brightYellow:"#fbbf24",cursor:"#e2e8f0",cursorAccent:"#0a0a0f",cyan:"#38bdf8",foreground:"#e2e8f0",green:"#22c55e",magenta:"#a78bfa",red:"#ef4444",selectionBackground:"rgba(99, 102, 241, 0.3)",white:"#e2e8f0",yellow:"#f59e0b"}});n.loadAddon(d),n.loadAddon(new k),n.open(e.container),e.readOnly&&e.initialCols&&e.initialRows?n.resize(e.initialCols,e.initialRows):d.fit();const v=new Set(["f","g","h","j","n","o","p","q","s","t","u","w"]);n.attachCustomKeyEventHandler(r=>{const i=r.key.toLowerCase();return r.metaKey?i==="c"||i==="v"?!0:!v.has(i):!0});let u=null;if(e.terminalId&&e.apiKey&&!e.readOnly){const r=e.terminalId,i=e.apiKey;u=l=>{(async()=>{try{if(!l.clipboardData)return;const y=Array.from(l.clipboardData.items).find(w=>w.type.startsWith("image/"));if(!y)return;const O=y.getAsFile();if(!O)return;l.preventDefault();const m=new FileReader,T=await new Promise((w,P)=>{m.onload=()=>{w(m.result)},m.onerror=P,m.readAsDataURL(O)});(await fetch(`/api/terminals/${r}/paste-image`,{body:JSON.stringify({image:T}),headers:{Authorization:`Bearer ${i}`,"Content-Type":"application/json"},method:"POST"})).ok&&a?.readyState===WebSocket.OPEN&&a.send(JSON.stringify({data:"",type:"input"}))}catch{}})()},e.container.addEventListener("paste",u)}let a=null,s=null,f=1e3,o=!1,c=0;function g(){if(o)return;s&&clearTimeout(s);const r=Math.random()*f*.5;s=setTimeout(()=>{f=Math.min(f*2,3e4),h()},f+r)}async function h(){if(o)return;let r;try{r=await e.getTicket()}catch{o||(e.onDisconnect?.(),g());return}if(o)return;const i=c>0?`&lastSeq=${String(c)}`:"";a=new WebSocket(`${e.wsUrl}?ticket=${r}&caps=snapshot${i}`),a.onopen=()=>{f=1e3,e.onReconnect?.()},a.onmessage=l=>{const t=JSON.parse(l.data);if(t.type==="output"){if(typeof t.seq=="number"){if(t.seq<=c)return;c=t.seq}n.write(t.data??"")}else if(t.type==="snapshot")n.reset(),typeof t.seq=="number"&&(c=t.seq),n.write(t.data??"");else if(t.type==="scrollback")n.write(t.data??"");else if(t.type==="exit")n.write(`\r
|
|
3
3
|
\x1B[90m[Process exited with code ${String(t.code)}]\x1B[0m\r
|
|
4
4
|
`),o=!0,s&&clearTimeout(s),e.onExit?.(t.code??0);else if(t.type==="output-dropped"){const y=typeof t.bytes=="number"&&t.bytes>0?`[${String(t.bytes)} bytes dropped — resyncing…]`:"[resyncing…]";n.write(`\r
|
|
5
5
|
\x1B[33m${y}\x1B[0m\r
|
|
6
|
-
`)}else t.type==="activity"?e.onActivity?.(t.active??!1):t.type==="cwd"?e.onCwd?.(t.path??""):t.type==="resize"&&
|
|
6
|
+
`)}else t.type==="activity"?e.onActivity?.(t.active??!1):t.type==="cwd"?e.onCwd?.(t.path??""):t.type==="resize"&&t.cols&&t.rows&&n.resize(t.cols,t.rows)},a.onclose=()=>{o||(e.onDisconnect?.(),g())}}h(),n.onData(r=>{e.readOnly||a?.readyState===WebSocket.OPEN&&a.send(JSON.stringify({data:r,type:"input"}))});const S=new ResizeObserver(()=>{e.readOnly||!e.container.offsetWidth||!e.container.offsetHeight||(d.fit(),a?.readyState===WebSocket.OPEN&&a.send(JSON.stringify({cols:n.cols,rows:n.rows,type:"resize"})))});S.observe(e.container);function A(){o=!0,s&&clearTimeout(s),u&&e.container.removeEventListener("paste",u),S.disconnect(),a?.close(),n.dispose()}function E(r){a?.readyState===WebSocket.OPEN&&a.send(JSON.stringify({data:r,type:"input"}))}return{dispose:A,fitAddon:d,getLastSeq:()=>c,sendInput:E,term:n}}function R(e,p){e.readyState===WebSocket.OPEN&&e.send(JSON.stringify({signal:p,type:"signal"}))}export{N as createTerminal,R as sendSignal};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as u,f as _,h as g,H as m,j as t,C as p,k as l,l as i,m as n,n as v,o as E}from"./
|
|
1
|
+
import{e as u,f as _,h as g,H as m,j as t,C as p,k as l,l as i,m as n,n as v,o as E}from"./kzeZOqU5.js";function b(r,d){let a=null,f=t;var s;if(t){a=v;for(var e=E(document.head);e!==null&&(e.nodeType!==p||e.data!==r);)e=l(e);if(e===null)i(!1);else{var y=l(e);e.remove(),n(y)}}t||(s=document.head.appendChild(u()));try{_(()=>{var o=g(()=>d(s));o.f|=m})}finally{f&&(i(!0),n(a))}}export{b as h};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function O(b,k){for(var _=0;_<k.length;_++){const l=k[_];if(typeof l!="string"&&!Array.isArray(l)){for(const u in l)if(u!=="default"&&!(u in b)){const L=Object.getOwnPropertyDescriptor(l,u);L&&Object.defineProperty(b,u,L.get?L:{enumerable:!0,get:()=>l[u]})}}}return Object.freeze(Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}))}var w={exports:{}},S;function $(){return S||(S=1,(function(b,k){(function(_,l){b.exports=l()})(self,(()=>(()=>{var _={6:(p,d)=>{function f(s){try{const e=new URL(s),t=e.password&&e.username?`${e.protocol}//${e.username}:${e.password}@${e.host}`:e.username?`${e.protocol}//${e.username}@${e.host}`:`${e.protocol}//${e.host}`;return s.toLocaleLowerCase().startsWith(t.toLocaleLowerCase())}catch{return!1}}Object.defineProperty(d,"__esModule",{value:!0}),d.LinkComputer=d.WebLinkProvider=void 0,d.WebLinkProvider=class{constructor(s,e,t,r={}){this._terminal=s,this._regex=e,this._handler=t,this._options=r}provideLinks(s,e){const t=h.computeLink(s,this._regex,this._terminal,this._handler);e(this._addCallbacks(t))}_addCallbacks(s){return s.map((e=>(e.leave=this._options.leave,e.hover=(t,r)=>{if(this._options.hover){const{range:c}=e;this._options.hover(t,r,c)}},e)))}};class h{static computeLink(e,t,r,c){const g=new RegExp(t.source,(t.flags||"")+"g"),[n,o]=h._getWindowedLineStrings(e-1,r),i=n.join("");let a;const x=[];for(;a=g.exec(i);){const v=a[0];if(!f(v))continue;const[m,W]=h._mapStrIdx(r,o,0,a.index),[y,P]=h._mapStrIdx(r,m,W,v.length);if(m===-1||W===-1||y===-1||P===-1)continue;const C={start:{x:W+1,y:m+1},end:{x:P,y:y+1}};x.push({range:C,text:v,activate:c})}return x}static _getWindowedLineStrings(e,t){let r,c=e,g=e,n=0,o="";const i=[];if(r=t.buffer.active.getLine(e)){const a=r.translateToString(!0);if(r.isWrapped&&a[0]!==" "){for(n=0;(r=t.buffer.active.getLine(--c))&&n<2048&&(o=r.translateToString(!0),n+=o.length,i.push(o),r.isWrapped&&o.indexOf(" ")===-1););i.reverse()}for(i.push(a),n=0;(r=t.buffer.active.getLine(++g))&&r.isWrapped&&n<2048&&(o=r.translateToString(!0),n+=o.length,i.push(o),o.indexOf(" ")===-1););}return[i,c]}static _mapStrIdx(e,t,r,c){const g=e.buffer.active,n=g.getNullCell();let o=r;for(;c;){const i=g.getLine(t);if(!i)return[-1,-1];for(let a=o;a<i.length;++a){i.getCell(a,n);const x=n.getChars();if(n.getWidth()&&(c-=x.length||1,a===i.length-1&&x==="")){const v=g.getLine(t+1);v&&v.isWrapped&&(v.getCell(0,n),n.getWidth()===2&&(c+=1))}if(c<0)return[t,a]}t++,o=0}return[t,o]}}d.LinkComputer=h}},l={};function u(p){var d=l[p];if(d!==void 0)return d.exports;var f=l[p]={exports:{}};return _[p](f,f.exports,u),f.exports}var L={};return(()=>{var p=L;Object.defineProperty(p,"__esModule",{value:!0}),p.WebLinksAddon=void 0;const d=u(6),f=/(https?|HTTPS?):[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;function h(s,e){const t=window.open();if(t){try{t.opener=null}catch{}t.location.href=e}else console.warn("Opening link blocked as opener could not be cleared")}p.WebLinksAddon=class{constructor(s=h,e={}){this._handler=s,this._options=e}activate(s){this._terminal=s;const e=this._options,t=e.urlRegex||f;this._linkProvider=this._terminal.registerLinkProvider(new d.WebLinkProvider(this._terminal,t,this._handler,e))}dispose(){this._linkProvider?.dispose()}}})(),L})()))})(w)),w.exports}var j=$();const A=O({__proto__:null},[j]);export{A as a};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{bv as Pe,v as Ye,s as P,g as N,b as j,P as ie,bw as St}from"./kzeZOqU5.js";const Rt="1781949428296";class me{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ne{constructor(t,n){try{new Headers({location:n})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(n)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=n}}class je extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function It(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Tt(e){return e.split("%25").map(decodeURI).join("%25")}function Ut(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ke({href:e}){return e.split("#")[0]}function $(){}function Lt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;function Pt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const Nt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&z.delete(Oe(e)),Nt(e,t));const z=new Map;function jt(e,t){const n=Oe(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...i}=JSON.parse(r.textContent);const o=r.getAttribute("data-ttl");return o&&z.set(n,{body:a,init:i,ttl:1e3*Number(o)}),r.getAttribute("data-b64")!==null&&(a=Pt(a)),Promise.resolve(new Response(a,i))}return window.fetch(e,t)}function Ot(e,t,n){if(z.size>0){const r=Oe(e,n),a=z.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);z.delete(r)}}return window.fetch(t,n)}function Oe(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${Lt(...a)}"]`}return r}const xt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Ct(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Dt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const o=r.split(/\[(.+?)\](?!\])/);return"/"+o.map((s,l)=>{if(l%2){if(s.startsWith("x+"))return Ee(String.fromCharCode(parseInt(s.slice(2),16)));if(s.startsWith("u+"))return Ee(String.fromCharCode(...s.slice(2).split("-").map(m=>parseInt(m,16))));const f=xt.exec(s),[,d,p,h,u]=f;return t.push({name:h,matcher:u,optional:!!d,rest:!!p,chained:p?l===1&&o[0]==="":!1}),p?"([^]*?)":d?"([^/]*)?":"([^/]+?)"}return Ee(s)}).join("")}).join("")}/?$`),params:t}}function $t(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Dt(e){return e.slice(1).split("/").filter($t)}function Bt(e,t,n){const r={},a=e.slice(1),i=a.filter(c=>c!==void 0);let o=0;for(let c=0;c<t.length;c+=1){const s=t[c];let l=a[c-o];if(s.chained&&s.rest&&o&&(l=a.slice(c-o,c+1).filter(f=>f).join("/"),o=0),l===void 0)if(s.rest)l="";else continue;if(!s.matcher||n[s.matcher](l)){r[s.name]=l;const f=t[c+1],d=a[c+1];f&&!f.rest&&f.optional&&d&&s.chained&&(o=0),!f&&!d&&Object.keys(r).length===i.length&&(o=0);continue}if(s.optional&&s.chained){o++;continue}return}if(!o)return r}function Ee(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Mt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([c,[s,l,f]])=>{const{pattern:d,params:p}=Ct(c),h={id:c,exec:u=>{const m=d.exec(u);if(m)return Bt(m,p,r)},errors:[1,...f||[]].map(u=>e[u]),layouts:[0,...l||[]].map(o),leaf:i(s)};return h.errors.length=h.layouts.length=Math.max(h.errors.length,h.layouts.length),h});function i(c){const s=c<0;return s&&(c=~c),[s,e[c]]}function o(c){return c===void 0?c:[a.has(c),e[c]]}}function tt(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ge(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const L=globalThis.__sveltekit_you0vx?.base??"",Ft=globalThis.__sveltekit_you0vx?.assets??L??"",nt="sveltekit:snapshot",rt="sveltekit:scroll",at="sveltekit:states",Vt="sveltekit:pageurl",Y="sveltekit:history",ee="sveltekit:navigation",F={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ae=location.origin;function xe(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function V(){return{x:pageXOffset,y:pageYOffset}}function q(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const He={...F,"":F.hover};function ot(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function st(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=ot(e)}}function Re(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const c=location.hash.split("#")[1]||"/";r.hash=`#${c}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!a||ye(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=r?.origin===ae&&e.hasAttribute("download");return{url:r,external:i,target:a,download:o}}function ce(e){let t=null,n=null,r=null,a=null,i=null,o=null,c=e;for(;c&&c!==document.documentElement;)r===null&&(r=q(c,"preload-code")),a===null&&(a=q(c,"preload-data")),t===null&&(t=q(c,"keepfocus")),n===null&&(n=q(c,"noscroll")),i===null&&(i=q(c,"reload")),o===null&&(o=q(c,"replacestate")),c=ot(c);function s(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:He[r??"off"],preload_data:He[a??"off"],keepfocus:s(t),noscroll:s(n),reload:s(i),replace_state:s(o)}}function Ke(e){const t=Pe(e);let n=!0;function r(){n=!0,t.update(o=>o)}function a(o){n=!1,t.set(o)}function i(o){let c;return t.subscribe(s=>{(c===void 0||n&&s!==c)&&o(c=s)})}return{notify:r,set:a,subscribe:i}}const it={v:$};function qt(){const{set:e,subscribe:t}=Pe(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Ft}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const o=(await a.json()).version!==Rt;return o&&(e(!0),it.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:r}}function ye(e,t,n){return e.origin!==ae||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function On(e){}const Yt=-1,Gt=-2,Ht=-3,Kt=-4,Wt=-5,Jt=-6,Xt=-7,ct=2**32-1,Ie=ct-1;function zt(e){return!(!Number.isInteger(e)||e<0||e>Ie)}function Zt(e){return!(!Number.isInteger(e)||e<0||e>ct)}function Qt(e){return Uint8Array.fromBase64(e).buffer}function en(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function tn(e){const t=atob(e),n=t.length,r=new Uint8Array(n);for(let a=0;a<n;a++)r[a]=t.charCodeAt(a);return r.buffer}const nn=typeof Uint8Array.fromBase64=="function",rn=typeof process=="object"&&process.versions?.node!==void 0,an=nn?Qt:rn?en:tn;function on(e,t){if(typeof e=="number")return i(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);let a=null;function i(o,c=!1){if(o===Yt)return;if(o===Ht)return NaN;if(o===Kt)return 1/0;if(o===Wt)return-1/0;if(o===Jt)return-0;if(c||typeof o!="number")throw new Error("Invalid input");if(o in r)return r[o];const s=n[o];if(!s||typeof s!="object")r[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const l=s[0],f=t&&Object.hasOwn(t,l)?t[l]:void 0;if(f){let d=s[1];if(typeof d!="number"&&(d=n.push(s[1])-1),a??=new Set,a.has(d))throw new Error("Invalid circular reference");return a.add(d),r[o]=f(i(d)),a.delete(d),r[o]}switch(l){case"Date":r[o]=new Date(s[1]);break;case"Set":const d=new Set;r[o]=d;for(let u=1;u<s.length;u+=1)d.add(i(s[u]));break;case"Map":const p=new Map;r[o]=p;for(let u=1;u<s.length;u+=2)p.set(i(s[u]),i(s[u+1]));break;case"RegExp":r[o]=new RegExp(s[1],s[2]);break;case"Object":{const u=s[1];if(typeof n[u]=="object"&&n[u][0]!=="BigInt")throw new Error("Invalid input");r[o]=Object(i(u));break}case"BigInt":r[o]=BigInt(s[1]);break;case"null":const h=Object.create(null);r[o]=h;for(let u=1;u<s.length;u+=2){if(s[u]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");h[s[u]]=i(s[u+1])}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(n[s[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const u=globalThis[l],m=i(s[1]);r[o]=s[2]!==void 0?new u(m,s[2],s[3]):new u(m);break}case"ArrayBuffer":{const u=s[1];if(typeof u!="string")throw new Error("Invalid ArrayBuffer encoding");const m=an(u);r[o]=m;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const u=l.slice(9);r[o]=Temporal[u].from(s[1]);break}case"URL":{const u=new URL(s[1]);r[o]=u;break}case"URLSearchParams":{const u=new URLSearchParams(s[1]);r[o]=u;break}default:throw new Error(`Unknown type ${l}`)}}else if(s[0]===Xt){const l=s[1];if(!Zt(l))throw new Error("Invalid input");const f=[];r[o]=f,f[Ie]=void 0,delete f[Ie];for(let d=2;d<s.length;d+=2){const p=s[d];if(!zt(p)||p>=l)throw new Error("Invalid input");f[p]=i(s[d+1])}f.length=l}else{const l=new Array(s.length);r[o]=l;for(let f=0;f<s.length;f+=1){const d=s[f];d!==Gt&&(l[f]=i(d))}}else{const l={};r[o]=l;for(const f of Object.keys(s)){if(f==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const d=s[f];l[f]=i(d)}}return r[o]}return i(0)}const lt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...lt];const sn=new Set([...lt]);[...sn];function cn(e){return e.filter(t=>t!=null)}const ln="x-sveltekit-invalidated",fn="x-sveltekit-trailing-slash";function oe(e,t){return e+"/"+t}function le(e){return e instanceof me||e instanceof je?e.status:500}function un(e){return e instanceof je?e.text:"Internal Error"}let I,te,Ae;const dn=Ye.toString().includes("$$")||/function \w+\(\) \{\}/.test(Ye.toString()),We="a:";dn?(I={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(We)},te={current:null},Ae={current:!1}):(I=new class{#e=P({});get data(){return N(this.#e)}set data(t){j(this.#e,t)}#t=P(null);get form(){return N(this.#t)}set form(t){j(this.#t,t)}#n=P(null);get error(){return N(this.#n)}set error(t){j(this.#n,t)}#r=P({});get params(){return N(this.#r)}set params(t){j(this.#r,t)}#a=P({id:null});get route(){return N(this.#a)}set route(t){j(this.#a,t)}#o=P({});get state(){return N(this.#o)}set state(t){j(this.#o,t)}#s=P(-1);get status(){return N(this.#s)}set status(t){j(this.#s,t)}#i=P(new URL(We));get url(){return N(this.#i)}set url(t){j(this.#i,t)}},te=new class{#e=P(null);get current(){return N(this.#e)}set current(t){j(this.#e,t)}},Ae=new class{#e=P(!1);get current(){return N(this.#e)}set current(t){j(this.#e,t)}},it.v=()=>Ae.current=!0);function ft(e){Object.assign(I,e)}const hn="/__data.json",pn=".html__data.json";function _n(e){return e.endsWith(".html")?e.replace(/\.html$/,pn):e.replace(/\/$/,"")+hn}async function*gn(e){let t=!1,n="";const r=new TextDecoder;for(;;){let a=n.indexOf(`
|
|
2
|
+
`);for(;a!==-1;){const o=n.slice(0,a).trim();n=n.slice(a+1),o&&(yield JSON.parse(o)),a=n.indexOf(`
|
|
3
|
+
`)}if(t){const o=n.trim();o&&(yield JSON.parse(o));return}const i=await e.read();t=i.done,i.value&&(n+=r.decode(i.value,{stream:!0})),t&&(n+=r.decode())}}const mn=new Set(["icon","shortcut icon","apple-touch-icon"]);let J=null;const B=tt(rt)??{},ne=tt(nt)??{},D={url:Ke({}),page:Ke({}),navigating:Pe(null),updated:qt()};function Ce(e){B[e]=V()}function yn(e,t){let n=e+1;for(;B[n];)delete B[n],n+=1;for(n=t+1;ne[n];)delete ne[n],n+=1}function K(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise($)}async function ut(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}let $e,Te,fe,x,Ue,b;const ue=[],de=[];let T=null;function he(){T?.fork?.then(e=>e?.discard()),T=null}const se=new Map,dt=new Set,wn=new Set,Z=new Set;let y={branch:[],error:null,url:null},De=!1,pe=!1,Je=!0,re=!1,X=!1,ht=!1,Be=!1,pt,S,U,C;const Q=new Set,Xe=new Map,ze=new Map;async function Dn(e,t,n){globalThis.__sveltekit_you0vx&&(globalThis.__sveltekit_you0vx.query,globalThis.__sveltekit_you0vx.prerender),document.URL!==location.href&&(location.href=location.href),b=e,await e.hooks.init?.(),$e=Mt(e),x=document.documentElement,Ue=t,Te=e.nodes[0],fe=e.nodes[1],Te(),fe(),S=history.state?.[Y],U=history.state?.[ee],S||(S=U=Date.now(),history.replaceState({...history.state,[Y]:S,[ee]:U},""));const r=B[S];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await Ln(Ue,n)):(await G({type:"enter",url:xe(b.hash?Nn(new URL(location.href)):location.href),replace_state:!0}),a()),Un()}function vn(){ue.length=0,Be=!1}function _t(e){de.some(t=>t?.snapshot)&&(ne[e]=de.map(t=>t?.snapshot?.capture()))}function gt(e){ne[e]?.forEach((t,n)=>{de[n]?.snapshot?.restore(t)})}function Ze(){Ce(S),Ge(rt,B),_t(U),Ge(nt,ne)}async function mt(e,t,n,r){let a,i;t.invalidateAll&&he(),await G({type:"goto",url:xe(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{if(t.invalidateAll){Be=!0,a=new Set;for(const[o,c]of Xe)for(const s of c.keys())a.add(oe(o,s));i=new Set;for(const[o,c]of ze)for(const s of c.keys())i.add(oe(o,s))}t.invalidate&&t.invalidate.forEach(Tn)}}),t.invalidateAll&&ie().then(ie).then(()=>{for(const[o,c]of Xe)for(const[s,{resource:l}]of c)a?.has(oe(o,s))&&l.refresh();for(const[o,c]of ze)for(const[s,{resource:l}]of c)i?.has(oe(o,s))&&l.reconnect()})}async function bn(e){if(e.id!==T?.id){he();const t={};Q.add(t),T={id:e.id,token:t,promise:wt({...e,preload:t}).then(n=>(Q.delete(t),n.type==="loaded"&&n.state.error&&he(),n)),fork:null}}return T.promise}async function Se(e){const t=(await ve(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function yt(e,t,n){const r={params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)};y={...e.state,nav:r};const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),ft(e.props.page),pt=new b.root({target:t,props:{...e.props,stores:D,components:de},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),gt(U),n){const i={from:null,to:{...r,scroll:B[S]??V()},willUnload:!1,type:"enter",complete:Promise.resolve()};Z.forEach(o=>o(i))}pe=!0}async function _e({url:e,params:t,branch:n,errors:r,status:a,error:i,route:o,form:c}){let s="never";if(L&&(e.pathname===L||e.pathname===L+"/"))s="always";else for(const u of n)u?.slash!==void 0&&(s=u.slash);e.pathname=It(e.pathname,s),e.search=e.search;const l={type:"loaded",state:{url:e,params:t,branch:n,error:i,route:o},props:{constructors:cn(n).map(u=>u.node.component),page:qe(I)}};c!==void 0&&(l.props.form=c);let f={},d=!I,p=0;for(let u=0;u<Math.max(n.length,y.branch.length);u+=1){const m=n[u],k=y.branch[u];m?.data!==k?.data&&(d=!0),m&&(f={...f,...m.data},d&&(l.props[`data_${p}`]=f),p+=1)}return(!y.url||e.href!==y.url.href||y.error!==i||c!==void 0&&c!==I.form||d)&&(l.props.page={error:i,params:t,route:{id:o?.id??null},state:{},status:a,url:new URL(e),form:c??null,data:d?f:I.data}),l}async function Me({loader:e,parent:t,url:n,params:r,route:a,server_data_node:i}){let o=null;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},s=await e();return{node:s,loader:e,server:i,universal:s.universal?.load?{type:"data",data:o,uses:c}:null,data:o??i?.data??null,slash:s.universal?.trailingSlash??i?.slash}}function kn(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const i=pe?Ot(r,a.href,t):jt(r,t);return{resolved:a,promise:i}}function Qe(e,t,n,r,a,i){if(Be)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const o of a.search_params)if(r.has(o))return!0;for(const o of a.params)if(i[o]!==y.params[o])return!0;for(const o of a.dependencies)if(ue.some(c=>c(new URL(o))))return!0;return!1}function Fe(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function En(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),i=t.searchParams.getAll(r);a.every(o=>i.includes(o))&&i.every(o=>a.includes(o))&&n.delete(r)}return n}function et({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:qe(I),constructors:[]}}}async function wt({id:e,invalidating:t,url:n,params:r,route:a,preload:i}){if(T?.id===e)return Q.delete(T.token),T.promise;const{errors:o,layouts:c,leaf:s}=a,l=[...c,s];o.forEach(g=>g?.().catch($)),l.forEach(g=>g?.[1]().catch($));let f=null;const d=y.url?e!==ge(y.url):!1,p=y.route?a.id!==y.route.id:!1,h=En(y.url,n);let u=!1;{const g=l.map((w,E)=>{const A=y.branch[E],v=!!w?.[0]&&(A?.loader!==w[1]||Qe(u,p,d,h,A.server?.uses,r));return v&&(u=!0),v});if(g.some(Boolean)){try{f=await kt(n,g)}catch(w){const E=await H(w,{url:n,params:r,route:{id:e}});return Q.has(i)?et({error:E,url:n,params:r,route:a}):we({status:le(w),error:E,url:n,route:a})}if(f.type==="redirect")return f}}const m=f?.nodes;let k=!1;const _=l.map(async(g,w)=>{if(!g)return;const E=y.branch[w],A=m?.[w];if((!A||A.type==="skip")&&g[1]===E?.loader&&!Qe(k,p,d,h,E.universal?.uses,r))return E;if(k=!0,A?.type==="error")throw A;return Me({loader:g[1],url:n,params:r,route:a,parent:async()=>{const O={};for(let M=0;M<w;M+=1)Object.assign(O,(await _[M])?.data);return O},server_data_node:Fe(A===void 0&&g[0]?{type:"skip"}:A??null,g[0]?E?.server:void 0)})});for(const g of _)g.catch($);const R=[];for(let g=0;g<l.length;g+=1)if(l[g])try{R.push(await _[g])}catch(w){if(w instanceof Ne)return{type:"redirect",location:w.location};if(Q.has(i))return et({error:await H(w,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let E=le(w),A;if(m?.includes(w))E=w.status??E,A=w.error;else if(w instanceof me)A=w.body;else{if(await D.updated.check())return await ut(),await K(n);A=await H(w,{params:r,url:n,route:{id:a.id}})}const v=await An(g,R,o);return v?_e({url:n,params:r,branch:R.slice(0,v.idx).concat(v.node),errors:o,status:E,error:A,route:a}):await bt(n,{id:a.id},A,E)}else R.push(void 0);return _e({url:n,params:r,branch:R,errors:o,status:200,error:null,route:a,form:t?void 0:null})}async function An(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function we({status:e,error:t,url:n,route:r}){const a={};let i=null;if(b.server_loads[0]===0)try{const c=await kt(n,[!0]);if(c.type!=="data"||c.nodes[0]&&c.nodes[0].type!=="data")throw 0;i=c.nodes[0]??null}catch{(n.origin!==ae||n.pathname!==location.pathname||De)&&await K(n)}try{const o=await Me({loader:Te,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Fe(i)}),c={node:await fe(),loader:fe,universal:null,server:null,data:null};return _e({url:n,params:a,branch:[o,c],status:e,error:t,errors:[],route:null})}catch(o){if(o instanceof Ne)return mt(new URL(o.location,location.href),{},0);throw o}}async function Sn(e){const t=e.href;if(se.has(t))return se.get(t);let n;try{const r=(async()=>{let a=await b.hooks.reroute({url:new URL(e),fetch:async(i,o)=>kn(i,o,e).promise})??e;if(typeof a=="string"){const i=new URL(e);b.hash?i.hash=a:i.pathname=a,a=i}return a})();se.set(t,r),n=await r}catch{se.delete(t);return}return n}async function ve(e,t){if(e&&!ye(e,L,b.hash)){const n=await Sn(e);if(!n)return;const r=Rn(n);for(const a of $e){const i=a.exec(r);if(i)return{id:ge(e),invalidating:t,route:a,params:Ut(i),url:e}}}}function Rn(e){return Tt(b.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function ge(e){return(b.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function vt({url:e,type:t,intent:n,delta:r,event:a,scroll:i}){let o=!1;const c=Ve(y,n,e,t,i??null);r!==void 0&&(c.navigation.delta=r),a!==void 0&&(c.navigation.event=a);const s={...c.navigation,cancel:()=>{o=!0,c.reject(new Error("navigation cancelled"))}};return re||dt.forEach(l=>l(s)),o?null:c}async function G({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:i,state:o={},redirect_count:c=0,nav_token:s={},accept:l=$,block:f=$,event:d}){const p=C;C=s;const h=await ve(t,!1),u=e==="enter"?Ve(y,h,t,e):vt({url:t,type:e,delta:n?.delta,intent:h,scroll:n?.scroll,event:d});if(!u){f(),C===s&&(C=p);return}const m=S,k=U;l(),re=!0,pe&&u.navigation.type!=="enter"&&D.navigating.set(te.current=u.navigation);let _=h&&await wt(h);if(!_){if(ye(t,L,b.hash))return await K(t,i);_=await bt(t,{id:null},await H(new je(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=h?.url||t,C!==s)return u.reject(new Error("navigation aborted")),!1;if(_.type==="redirect"){if(c<20){await G({type:e,url:new URL(_.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:i,state:o,redirect_count:c+1,nav_token:s}),u.fulfil(void 0);return}_=await we({status:500,error:await H(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else _.props.page.status>=400&&await D.updated.check()&&(await ut(),await K(t,i));if(vn(),Ce(m),_t(k),_.props.page.url.pathname!==t.pathname&&(t.pathname=_.props.page.url.pathname),o=n?n.state:o,!n){const v=i?0:1,O={[Y]:S+=v,[ee]:U+=v,[at]:o};(i?history.replaceState:history.pushState).call(history,O,"",t),i||yn(S,U)}const R=h&&T?.id===h.id?T.fork:null;T?.fork&&!R&&he(),T=null,_.props.page.state=o;let g;if(pe){const v=(await Promise.all(Array.from(wn,W=>W(u.navigation)))).filter(W=>typeof W=="function");if(v.length>0){let W=function(){v.forEach(be=>{Z.delete(be)})};v.push(W),v.forEach(be=>{Z.add(be)})}const O=u.navigation.to;y={..._.state,nav:{params:O.params,route:O.route,url:O.url}},_.props.page&&(_.props.page.url=t);const M=R&&await R;M?g=M.commit():(J=null,pt.$set(_.props),J&&Object.assign(_.props.page,J),ft(_.props.page),g=St?.()),ht=!0}else await yt(_,Ue,!1);const{activeElement:w}=document;if(await g,await ie(),await ie(),C!==s)return u.reject(new Error("navigation aborted")),!1;_.props.page&&J&&Object.assign(_.props.page,J);let E=null;if(Je){const v=n?n.scroll:a?V():null;v?scrollTo(v.x,v.y):(E=t.hash&&document.getElementById(At(t)))?E.scrollIntoView():scrollTo(0,0)}const A=document.activeElement!==w&&document.activeElement!==document.body;!r&&!A&&Pn(t,!E),Je=!0,re=!1,e==="popstate"&>(U),u.fulfil(void 0),u.navigation.to&&(u.navigation.to.scroll=V()),Z.forEach(v=>v(u.navigation)),D.navigating.set(te.current=null)}async function bt(e,t,n,r,a){return e.origin===ae&&e.pathname===location.pathname&&!De?await we({status:r,error:n,url:e,route:t}):await K(e,a)}function In(){let e,t={element:void 0,href:void 0},n;x.addEventListener("mousemove",c=>{const s=c.target;clearTimeout(e),e=setTimeout(()=>{i(s,F.hover)},20)});function r(c){c.defaultPrevented||i(c.composedPath()[0],F.tap)}x.addEventListener("mousedown",r),x.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(c=>{for(const s of c)s.isIntersecting&&(Se(new URL(s.target.href)),a.unobserve(s.target))},{threshold:0});async function i(c,s){const l=st(c,x),f=l===t.element&&l?.href===t.href&&s>=n;if(!l||f)return;const{url:d,external:p,download:h}=Re(l,L,b.hash);if(p||h)return;const u=ce(l),m=d&&ge(y.url)===ge(d);if(!(u.reload||m))if(s<=u.preload_data){t={element:l,href:l.href},n=F.tap;const k=await ve(d,!1);if(!k)return;bn(k)}else s<=u.preload_code&&(t={element:l,href:l.href},n=s,Se(d))}function o(){a.disconnect();for(const c of x.querySelectorAll("a")){const{url:s,external:l,download:f}=Re(c,L,b.hash);if(l||f)continue;const d=ce(c);d.reload||(d.preload_code===F.viewport&&a.observe(c),d.preload_code===F.eager&&Se(s))}}Z.add(o),o()}function H(e,t){if(e instanceof me)return e.body;const n=le(e),r=un(e);return b.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Bn(e,t={}){return e=new URL(xe(e)),e.origin!==ae?Promise.reject(new Error("goto: invalid URL")):mt(e,t,0)}function Tn(e){if(typeof e=="function")ue.push(e);else{const{href:t}=new URL(e,location.href);ue.push(n=>n.href===t)}}function Un(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Ze(),!re){const r=Ve(y,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};dt.forEach(i=>i(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ze()}),navigator.connection?.saveData||In(),x.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=st(t.composedPath()[0],x);if(!n)return;const{url:r,external:a,target:i,download:o}=Re(n,L,b.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=ce(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||o)return;const[l,f]=(b.hash?r.hash.replace(/^#/,""):r.href).split("#"),d=l===ke(location);if(a||c.reload&&(!d||!f)){vt({url:r,type:"link",event:t})?re=!0:t.preventDefault();return}if(f!==void 0&&d){const[,p]=y.url.href.split("#");if(p===f){if(t.preventDefault(),f===""||f==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const h=n.ownerDocument.getElementById(decodeURIComponent(f));h&&(h.scrollIntoView(),h.focus())}return}if(X=!0,Ce(S),e(r),!c.replace_state)return;X=!1}t.preventDefault(),await new Promise(p=>{requestAnimationFrame(()=>{setTimeout(p,0)}),setTimeout(p,100)}),await G({type:"link",url:r,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??r.href===location.href,event:t})}),x.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const o=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(ye(o,L,!1))return;const c=t.target,s=ce(c);if(s.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(c,r);o.search=new URLSearchParams(l).toString(),G({type:"form",url:o,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Le){if(t.state?.[Y]){const n=t.state[Y];if(C={},n===S)return;const r=B[n],a=t.state[at]??{},i=new URL(t.state[Vt]??location.href),o=t.state[ee],c=y.url?ke(location)===ke(y.url):!1;if(o===U&&(ht||c)){a!==I.state&&(I.state=a),e(i),B[S]=V(),r&&scrollTo(r.x,r.y),S=n;return}const l=n-S;await G({type:"popstate",url:i,popped:{state:a,scroll:r,delta:l},accept:()=>{S=n,U=o},block:()=>{history.go(-l)},nav_token:C,event:t})}else if(!X){const n=new URL(location.href);e(n),b.hash&&location.reload()}}}),addEventListener("hashchange",()=>{X&&(X=!1,history.replaceState({...history.state,[Y]:++S,[ee]:U},"",location.href))});for(const t of document.querySelectorAll("link"))mn.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&D.navigating.set(te.current=null)});function e(t){y.url=I.url=t,D.page.set(qe(I)),D.page.notify()}}async function Ln(e,{status:t=200,error:n,node_ids:r,params:a,route:i,server_route:o,data:c,form:s}){De=!0;const l=new URL(location.href);let f;({params:a={},route:i={id:null}}=await ve(l,!1)||{}),f=$e.find(({id:h})=>h===i.id);let d,p=!0;try{const h=r.map(async(m,k)=>{const _=c[k];return _?.uses&&(_.uses=Et(_.uses)),Me({loader:b.nodes[m],url:l,params:a,route:i,parent:async()=>{const R={};for(let g=0;g<k;g+=1)Object.assign(R,(await h[g]).data);return R},server_data_node:Fe(_)})}),u=await Promise.all(h);if(f){const m=f.layouts;for(let k=0;k<m.length;k++)m[k]||u.splice(k,0,void 0)}d=await _e({url:l,params:a,branch:u,status:t,error:n,errors:f?.errors,form:s,route:f??null})}catch(h){if(h instanceof Ne){await K(new URL(h.location,location.href));return}d=await we({status:le(h),error:await H(h,{url:l,params:a,route:i}),url:l,route:i}),e.textContent="",p=!1}d.props.page&&(d.props.page.state={}),await yt(d,e,p)}async function kt(e,t){const n=new URL(e);n.pathname=_n(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(fn,"1"),n.searchParams.append(ln,t.map(i=>i?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let i;throw a.headers.get("content-type")?.includes("application/json")?i=await a.json():a.status===404?i="Not Found":a.status===500&&(i="Internal Error"),new me(a.status,i)}return new Promise(async i=>{const o=new Map,c=a.body.getReader();function s(l){return on(l,{...b.decoders,Promise:f=>new Promise((d,p)=>{o.set(f,{fulfil:d,reject:p})})})}for await(const l of gn(c)){if(l.type==="redirect")return i(l);if(l.type==="data")l.nodes?.forEach(f=>{f?.type==="data"&&(f.uses=Et(f.uses),f.data=s(f.data))}),i(l);else if(l.type==="chunk"){const{id:f,data:d,error:p}=l,h=o.get(f);o.delete(f),p?h.reject(s(p)):h.fulfil(s(d))}}})}function Et(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Le=!1;function Pn(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=At(e);if(r&&document.getElementById(r)){const{x:i,y:o}=V();setTimeout(()=>{const c=history.state;Le=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(c,"",e),t&&scrollTo(i,o),Le=!1})}else{const i=document.body,o=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),o!==null?i.setAttribute("tabindex",o):i.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const i=[];for(let o=0;o<a.rangeCount;o+=1)i.push(a.getRangeAt(o));setTimeout(()=>{if(a.rangeCount===i.length){for(let o=0;o<a.rangeCount;o+=1){const c=i[o],s=a.getRangeAt(o);if(c.commonAncestorContainer!==s.commonAncestorContainer||c.startContainer!==s.startContainer||c.endContainer!==s.endContainer||c.startOffset!==s.startOffset||c.endOffset!==s.endOffset)return}a.removeAllRanges()}})}}}function Ve(e,t,n,r,a=null){let i,o;const c=new Promise((l,f)=>{i=l,o=f});return c.catch($),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:V()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:a},willUnload:!t,type:r,complete:c},fulfil:i,reject:o}}function qe(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Nn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function At(e){let t;if(b.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Dn as a,Bn as g,On as l,I as p,D as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as r,p as e}from"./
|
|
1
|
+
import{s as r,p as e}from"./BzW0vlVX.js";const a={get params(){return e.params},get url(){return e.url}};r.updated.check;const s=a;export{s as p};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as y}from"./gQJcRhou.js";import"./
|
|
1
|
+
import{g as y}from"./gQJcRhou.js";import"./Dk1NUsIU.js";const R="https://unpkg.com/@juspay/neurolink@9.61.1/dist/browser/neurolink.min.js",u={"https://api.anthropic.com/":"anthropic","https://api.mistral.ai/":"mistral","https://api.openai.com/":"openai","https://generativelanguage.googleapis.com/":"google-ai"};let p=!1;function k(){if(p||typeof globalThis>"u")return;p=!0;const t=globalThis.fetch.bind(globalThis);globalThis.fetch=async(e,o)=>{const s=typeof e=="string"?e:e instanceof URL?e.href:e.url,a=m(s);if(!a)return t(e,o);const i={},r=o?.headers??(e instanceof Request?e.headers:{}),d=r instanceof Headers?r:Object.entries(r);for(const[f,g]of d){const h=f.toLowerCase();h!=="x-api-key"&&h!=="authorization"&&(i[f]=g)}let n;try{n=JSON.parse(o?.body??(e instanceof Request?await e.text():"{}"))}catch{n={}}const c=y(),l={"Content-Type":"application/json"};return c&&(l.Authorization=`Bearer ${c}`),t("/api/neurolink-proxy",{body:JSON.stringify({body:n,headers:i,provider:a,url:s}),headers:l,method:"POST"})}}function b(){if(typeof window>"u")return"";const e=window.process?.env?.LITELLM_BASE_URL;return typeof e=="string"?e:""}function m(t){const e=Object.entries(u).find(([s])=>t.startsWith(s))?.[1];if(e)return e;const o=b();if(o&&t.startsWith(o))return"litellm"}export{R as N,k as i};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as m,s as _,a as o,f as n}from"./
|
|
1
|
+
import{i as m,s as _,a as o,f as n}from"./DoGIJDSZ.js";import{c as a,d as c,r as s,t as g}from"./kzeZOqU5.js";import{s as k,a as u}from"./aiM7Bbhi.js";var S=n('<div class="empty-state-icon svelte-1elsu8i"><!></div>'),j=n('<div class="empty-state-actions svelte-1elsu8i"><!></div>'),q=n('<div><!> <div class="empty-state-title svelte-1elsu8i"> </div> <div class="empty-state-description svelte-1elsu8i"> </div> <!></div>');function B(y,t){var v=q(),f=a(v);{var p=e=>{var i=S(),l=a(i);u(l,()=>t.icon),s(i),o(e,i)};m(f,e=>{typeof t.icon=="function"&&e(p)})}var r=c(f,2),h=a(r,!0);s(r);var d=c(r,2),x=a(d,!0);s(d);var b=c(d,2);{var E=e=>{var i=j(),l=a(i);u(l,()=>t.children),s(i),o(e,i)};m(b,e=>{typeof t.children=="function"&&e(E)})}s(v),g(()=>{k(v,1,`empty-state ${t.classes??""??""}`,"svelte-1elsu8i"),_(h,t.title),_(x,t.description)}),o(y,v)}export{B as E};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as a,u as h,a as d,g as i,b as o,i as n}from"./
|
|
1
|
+
import{s as a,u as h,a as d,g as i,b as o,i as n}from"./kzeZOqU5.js";var c=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],v=["difference","intersection","symmetricDifference","union"],f=!1;class u extends Set{#r=new Map;#e=a(0);#s=a(0);#t=h||-1;constructor(e){if(super(),e){for(var s of e)super.add(s);this.#s.v=super.size}f||this.#o()}#i(e){return h===this.#t?a(e):d(e)}#o(){f=!0;var e=u.prototype,s=Set.prototype;for(const r of c)e[r]=function(...t){return i(this.#e),s[r].apply(this,t)};for(const r of v)e[r]=function(...t){i(this.#e);var p=s[r].apply(this,t);return new u(p)}}has(e){var s=super.has(e),r=this.#r,t=r.get(e);if(t===void 0){if(!s)return i(this.#e),!1;t=this.#i(!0),r.set(e,t)}return i(t),s}add(e){return super.has(e)||(super.add(e),o(this.#s,super.size),n(this.#e)),this}delete(e){var s=super.delete(e),r=this.#r,t=r.get(e);return t!==void 0&&(r.delete(e),o(t,!1)),s&&(o(this.#s,super.size),n(this.#e)),s}clear(){if(super.size!==0){super.clear();var e=this.#r;for(var s of e.values())o(s,!1);e.clear(),o(this.#s,0),n(this.#e)}}keys(){return this.values()}values(){return i(this.#e),super.values()}entries(){return i(this.#e),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return i(this.#s)}}export{u as S};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e}from"./
|
|
1
|
+
import{s as e}from"./BzW0vlVX.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
function dn(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function _r(t){if(Array.isArray(t))return t}function wr(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i,r,o,l,h=[],c=!0,g=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(c=(i=o.call(n)).done)&&(h.push(i.value),h.length!==e);c=!0);}catch(f){g=!0,r=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(g)throw r}}return h}}function yr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sr(t,e){return _r(t)||wr(t,e)||Ar(t,e)||yr()}function Ar(t,e){if(t){if(typeof t=="string")return dn(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dn(t,e):void 0}}const Pn=Object.entries,gn=Object.setPrototypeOf,Er=Object.isFrozen,Rr=Object.getPrototypeOf,Ir=Object.getOwnPropertyDescriptor;let z=Object.freeze,$=Object.seal,_e=Object.create,Mn=typeof Reflect<"u"&&Reflect,St=Mn.apply,At=Mn.construct;z||(z=function(e){return e});$||($=function(e){return e});St||(St=function(e,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),o=2;o<i;o++)r[o-2]=arguments[o];return e.apply(n,r)});At||(At=function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return new e(...i)});const Le=N(Array.prototype.forEach),Or=N(Array.prototype.lastIndexOf),mn=N(Array.prototype.pop),xe=N(Array.prototype.push),Lr=N(Array.prototype.splice),le=Array.isArray,ze=N(String.prototype.toLowerCase),Tt=N(String.prototype.toString),kn=N(String.prototype.match),Ne=N(String.prototype.replace),bn=N(String.prototype.indexOf),Nr=N(String.prototype.trim),Dr=N(Number.prototype.toString),Cr=N(Boolean.prototype.toString),Tn=typeof BigInt>"u"?null:N(BigInt.prototype.toString),xn=typeof Symbol>"u"?null:N(Symbol.prototype.toString),P=N(Object.prototype.hasOwnProperty),De=N(Object.prototype.toString),M=N(RegExp.prototype.test),ue=Pr(TypeError);function N(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return St(t,e,i)}}function Pr(t){return function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return At(t,n)}}function T(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ze;if(gn&&gn(t,null),!le(e))return t;let i=e.length;for(;i--;){let r=e[i];if(typeof r=="string"){const o=n(r);o!==r&&(Er(e)||(e[i]=o),r=o)}t[r]=!0}return t}function Mr(t){for(let e=0;e<t.length;e++)P(t,e)||(t[e]=null);return t}function F(t){const e=_e(null);for(const i of Pn(t)){var n=Sr(i,2);const r=n[0],o=n[1];P(t,r)&&(le(o)?e[r]=Mr(o):o&&typeof o=="object"&&o.constructor===Object?e[r]=F(o):e[r]=o)}return e}function zr(t){switch(typeof t){case"string":return t;case"number":return Dr(t);case"boolean":return Cr(t);case"bigint":return Tn?Tn(t):"0";case"symbol":return xn?xn(t):"Symbol()";case"undefined":return De(t);case"function":case"object":{if(t===null)return De(t);const e=t,n=Q(e,"toString");if(typeof n=="function"){const i=n(e);return typeof i=="string"?i:De(i)}return De(t)}default:return De(t)}}function Q(t,e){for(;t!==null;){const i=Ir(t,e);if(i){if(i.get)return N(i.get);if(typeof i.value=="function")return N(i.value)}t=Rr(t)}function n(){return null}return n}function $r(t){try{return M(t,""),!0}catch{return!1}}const _n=z(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),xt=z(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_t=z(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),vr=z(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),wt=z(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ur=z(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),wn=z(["#text"]),yn=z(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),yt=z(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Sn=z(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ye=z(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Fr=$(/{{[\w\W]*|^[\w\W]*}}/g),Br=$(/<%[\w\W]*|^[\w\W]*%>/g),Hr=$(/\${[\w\W]*/g),Gr=$(/^data-[\-\w.\u00B7-\uFFFF]+$/),Wr=$(/^aria-[\-\w]+$/),An=$(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qr=$(/^(?:\w+script|data):/i),jr=$(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Yr=$(/^html$/i),Zr=$(/^[a-z][.\w]*(-[.\w]+)+$/i),En=$(/<[/\w!]/g),Xr=$(/<[/\w]/g),Vr=$(/<\/no(script|embed|frames)/i),Qr=$(/\/>/i),V={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Kr=function(){return typeof window>"u"?null:window},Jr=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let i=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(i=n.getAttribute(r));const o="dompurify"+(i?"#"+i:"");try{return e.createPolicy(o,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},Rn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ie=function(e,n,i,r){return P(e,n)&&le(e[n])?T(r.base?F(r.base):{},e[n],r.transform):i};function zn(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Kr();const e=p=>zn(p);if(e.version="3.4.11",e.removed=[],!t||!t.document||t.document.nodeType!==V.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const i=n,r=i.currentScript;t.DocumentFragment;const o=t.HTMLTemplateElement,l=t.Node,h=t.Element,c=t.NodeFilter,g=t.NamedNodeMap;g===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const f=t.DOMParser,b=t.trustedTypes,m=h.prototype,D=Q(m,"cloneNode"),y=Q(m,"remove"),W=Q(m,"nextSibling"),ee=Q(m,"childNodes"),te=Q(m,"parentNode"),ye=Q(m,"shadowRoot"),Se=Q(m,"attributes"),v=l&&l.prototype?Q(l.prototype,"nodeType"):null,H=l&&l.prototype?Q(l.prototype,"nodeName"):null;if(typeof o=="function"){const p=n.createElement("template");p.content&&p.content.ownerDocument&&(n=p.content.ownerDocument)}let O,oe="",et,vt=!1,Ae=0;const Ut=function(){if(Ae>0)throw ue('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},de=function(s){Ut(),Ae++;try{return O.createHTML(s)}finally{Ae--}},Yn=function(s){Ut(),Ae++;try{return O.createScriptURL(s)}finally{Ae--}},Zn=function(){return vt||(et=Jr(b,r),vt=!0),et},Ue=n,tt=Ue.implementation,Ft=Ue.createNodeIterator,Xn=Ue.createDocumentFragment,Vn=Ue.getElementsByTagName,Qn=i.importNode;let I=Rn();e.isSupported=typeof Pn=="function"&&typeof te=="function"&&tt&&tt.createHTMLDocument!==void 0;const Kn=Fr,Jn=Br,er=Hr,tr=Gr,nr=Wr,rr=qr,Bt=jr,sr=Zr;let Ht=An,S=null;const Gt=T({},[..._n,...xt,..._t,...wt,...wn]);let A=null;const Wt=T({},[...yn,...yt,...Sn,...Ye]);let E=Object.seal(_e(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ee=null,qt=null;const ne=Object.seal(_e(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let jt=!0,nt=!0,Yt=!1,Zt=!0,re=!1,Re=!0,ae=!1,rt=!1,st=null,it=null,lt=!1,ge=!1,Fe=!1,Be=!1,Xt=!0,Vt=!1;const Qt="user-content-";let ot=!0,at=!1,me={},Z=null;const ct=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Kt=null;const Jt=T({},["audio","video","img","source","image","track"]);let ut=null;const en=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),He="http://www.w3.org/1998/Math/MathML",Ge="http://www.w3.org/2000/svg",X="http://www.w3.org/1999/xhtml";let ke=X,pt=!1,ht=null;const ir=T({},[He,Ge,X],Tt),tn=z(["mi","mo","mn","ms","mtext"]);let ft=T({},tn);const nn=z(["annotation-xml"]);let dt=T({},nn);const lr=T({},["title","style","font","a","script"]);let Ie=null;const or=["application/xhtml+xml","text/html"],ar="text/html";let R=null,be=null;const cr=n.createElement("form"),rn=function(s){return s instanceof RegExp||s instanceof Function},gt=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(be&&be===s)return;(!s||typeof s!="object")&&(s={}),s=F(s),Ie=or.indexOf(s.PARSER_MEDIA_TYPE)===-1?ar:s.PARSER_MEDIA_TYPE,R=Ie==="application/xhtml+xml"?Tt:ze,S=ie(s,"ALLOWED_TAGS",Gt,{transform:R}),A=ie(s,"ALLOWED_ATTR",Wt,{transform:R}),ht=ie(s,"ALLOWED_NAMESPACES",ir,{transform:Tt}),ut=ie(s,"ADD_URI_SAFE_ATTR",en,{transform:R,base:en}),Kt=ie(s,"ADD_DATA_URI_TAGS",Jt,{transform:R,base:Jt}),Z=ie(s,"FORBID_CONTENTS",ct,{transform:R}),Ee=ie(s,"FORBID_TAGS",F({}),{transform:R}),qt=ie(s,"FORBID_ATTR",F({}),{transform:R}),me=P(s,"USE_PROFILES")?s.USE_PROFILES&&typeof s.USE_PROFILES=="object"?F(s.USE_PROFILES):s.USE_PROFILES:!1,jt=s.ALLOW_ARIA_ATTR!==!1,nt=s.ALLOW_DATA_ATTR!==!1,Yt=s.ALLOW_UNKNOWN_PROTOCOLS||!1,Zt=s.ALLOW_SELF_CLOSE_IN_ATTR!==!1,re=s.SAFE_FOR_TEMPLATES||!1,Re=s.SAFE_FOR_XML!==!1,ae=s.WHOLE_DOCUMENT||!1,ge=s.RETURN_DOM||!1,Fe=s.RETURN_DOM_FRAGMENT||!1,Be=s.RETURN_TRUSTED_TYPE||!1,lt=s.FORCE_BODY||!1,Xt=s.SANITIZE_DOM!==!1,Vt=s.SANITIZE_NAMED_PROPS||!1,ot=s.KEEP_CONTENT!==!1,at=s.IN_PLACE||!1,Ht=$r(s.ALLOWED_URI_REGEXP)?s.ALLOWED_URI_REGEXP:An,ke=typeof s.NAMESPACE=="string"?s.NAMESPACE:X,ft=P(s,"MATHML_TEXT_INTEGRATION_POINTS")&&s.MATHML_TEXT_INTEGRATION_POINTS&&typeof s.MATHML_TEXT_INTEGRATION_POINTS=="object"?F(s.MATHML_TEXT_INTEGRATION_POINTS):T({},tn),dt=P(s,"HTML_INTEGRATION_POINTS")&&s.HTML_INTEGRATION_POINTS&&typeof s.HTML_INTEGRATION_POINTS=="object"?F(s.HTML_INTEGRATION_POINTS):T({},nn);const a=P(s,"CUSTOM_ELEMENT_HANDLING")&&s.CUSTOM_ELEMENT_HANDLING&&typeof s.CUSTOM_ELEMENT_HANDLING=="object"?F(s.CUSTOM_ELEMENT_HANDLING):_e(null);if(E=_e(null),P(a,"tagNameCheck")&&rn(a.tagNameCheck)&&(E.tagNameCheck=a.tagNameCheck),P(a,"attributeNameCheck")&&rn(a.attributeNameCheck)&&(E.attributeNameCheck=a.attributeNameCheck),P(a,"allowCustomizedBuiltInElements")&&typeof a.allowCustomizedBuiltInElements=="boolean"&&(E.allowCustomizedBuiltInElements=a.allowCustomizedBuiltInElements),$(E),re&&(nt=!1),Fe&&(ge=!0),me&&(S=T({},wn),A=_e(null),me.html===!0&&(T(S,_n),T(A,yn)),me.svg===!0&&(T(S,xt),T(A,yt),T(A,Ye)),me.svgFilters===!0&&(T(S,_t),T(A,yt),T(A,Ye)),me.mathMl===!0&&(T(S,wt),T(A,Sn),T(A,Ye))),ne.tagCheck=null,ne.attributeCheck=null,P(s,"ADD_TAGS")&&(typeof s.ADD_TAGS=="function"?ne.tagCheck=s.ADD_TAGS:le(s.ADD_TAGS)&&(S===Gt&&(S=F(S)),T(S,s.ADD_TAGS,R))),P(s,"ADD_ATTR")&&(typeof s.ADD_ATTR=="function"?ne.attributeCheck=s.ADD_ATTR:le(s.ADD_ATTR)&&(A===Wt&&(A=F(A)),T(A,s.ADD_ATTR,R))),P(s,"ADD_URI_SAFE_ATTR")&&le(s.ADD_URI_SAFE_ATTR)&&T(ut,s.ADD_URI_SAFE_ATTR,R),P(s,"FORBID_CONTENTS")&&le(s.FORBID_CONTENTS)&&(Z===ct&&(Z=F(Z)),T(Z,s.FORBID_CONTENTS,R)),P(s,"ADD_FORBID_CONTENTS")&&le(s.ADD_FORBID_CONTENTS)&&(Z===ct&&(Z=F(Z)),T(Z,s.ADD_FORBID_CONTENTS,R)),ot&&(S["#text"]=!0),ae&&T(S,["html","head","body"]),S.table&&(T(S,["tbody"]),delete Ee.tbody),s.TRUSTED_TYPES_POLICY){if(typeof s.TRUSTED_TYPES_POLICY.createHTML!="function")throw ue('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof s.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ue('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const u=O;O=s.TRUSTED_TYPES_POLICY;try{oe=de("")}catch(d){throw O=u,d}}else s.TRUSTED_TYPES_POLICY===null?(O=void 0,oe=""):(O===void 0&&(O=Zn()),O&&typeof oe=="string"&&(oe=de("")));z&&z(s),be=s},sn=T({},[...xt,..._t,...vr]),ln=T({},[...wt,...Ur]),ur=function(s,a,u){return a.namespaceURI===X?s==="svg":a.namespaceURI===He?s==="svg"&&(u==="annotation-xml"||ft[u]):!!sn[s]},pr=function(s,a,u){return a.namespaceURI===X?s==="math":a.namespaceURI===Ge?s==="math"&&dt[u]:!!ln[s]},hr=function(s,a,u){return a.namespaceURI===Ge&&!dt[u]||a.namespaceURI===He&&!ft[u]?!1:!ln[s]&&(lr[s]||!sn[s])},fr=function(s){let a=te(s);(!a||!a.tagName)&&(a={namespaceURI:ke,tagName:"template"});const u=ze(s.tagName),d=ze(a.tagName);return ht[s.namespaceURI]?s.namespaceURI===Ge?ur(u,a,d):s.namespaceURI===He?pr(u,a,d):s.namespaceURI===X?hr(u,a,d):!!(Ie==="application/xhtml+xml"&&ht[s.namespaceURI]):!1},se=function(s){xe(e.removed,{element:s});try{te(s).removeChild(s)}catch{if(y(s),!te(s))throw ue("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},on=function(s){const a=ee(s);if(a){const d=[];Le(a,k=>{xe(d,k)}),Le(d,k=>{try{y(k)}catch{}})}const u=Se(s);if(u)for(let d=u.length-1;d>=0;--d){const k=u[d],_=k&&k.name;if(typeof _=="string")try{s.removeAttribute(_)}catch{}}},ce=function(s,a){try{xe(e.removed,{attribute:a.getAttributeNode(s),from:a})}catch{xe(e.removed,{attribute:null,from:a})}if(a.removeAttribute(s),s==="is")if(ge||Fe)try{se(a)}catch{}else try{a.setAttribute(s,"")}catch{}},dr=function(s){const a=Se(s);if(a)for(let u=a.length-1;u>=0;--u){const d=a[u],k=d&&d.name;if(!(typeof k!="string"||A[R(k)]))try{s.removeAttribute(k)}catch{}}},gr=function(s){const a=[s];for(;a.length>0;){const u=a.pop();(v?v(u):u.nodeType)===V.element&&dr(u);const k=ee(u);if(k)for(let _=k.length-1;_>=0;--_)a.push(k[_])}},an=function(s){let a=null,u=null;if(lt)s="<remove></remove>"+s;else{const _=kn(s,/^[\r\n\t ]+/);u=_&&_[0]}Ie==="application/xhtml+xml"&&ke===X&&(s='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+s+"</body></html>");const d=O?de(s):s;if(ke===X)try{a=new f().parseFromString(d,Ie)}catch{}if(!a||!a.documentElement){a=tt.createDocument(ke,"template",null);try{a.documentElement.innerHTML=pt?oe:d}catch{}}const k=a.body||a.documentElement;return s&&u&&k.insertBefore(n.createTextNode(u),k.childNodes[0]||null),ke===X?Vn.call(a,ae?"html":"body")[0]:ae?a.documentElement:k},cn=function(s){return Ft.call(s.ownerDocument||s,s,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},We=function(s){return s=Ne(s,Kn," "),s=Ne(s,Jn," "),s=Ne(s,er," "),s},mt=function(s){var a;s.normalize();const u=Ft.call(s.ownerDocument||s,s,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let d=u.nextNode();for(;d;)d.data=We(d.data),d=u.nextNode();const k=(a=s.querySelectorAll)===null||a===void 0?void 0:a.call(s,"template");k&&Le(k,_=>{Te(_.content)&&mt(_.content)})},qe=function(s){const a=H?H(s):null;return typeof a!="string"||R(a)!=="form"?!1:typeof s.nodeName!="string"||typeof s.textContent!="string"||typeof s.removeChild!="function"||s.attributes!==Se(s)||typeof s.removeAttribute!="function"||typeof s.setAttribute!="function"||typeof s.namespaceURI!="string"||typeof s.insertBefore!="function"||typeof s.hasChildNodes!="function"||s.nodeType!==v(s)||s.childNodes!==ee(s)},Te=function(s){if(!v||typeof s!="object"||s===null)return!1;try{return v(s)===V.documentFragment}catch{return!1}},Oe=function(s){if(!v||typeof s!="object"||s===null)return!1;try{return typeof v(s)=="number"}catch{return!1}};function J(p,s,a){p.length!==0&&Le(p,u=>{u.call(e,s,a,be)})}const mr=function(s,a){return!!(Re&&s.hasChildNodes()&&!Oe(s.firstElementChild)&&M(En,s.textContent)&&M(En,s.innerHTML)||Re&&s.namespaceURI===X&&a==="style"&&Oe(s.firstElementChild)||s.nodeType===V.processingInstruction||Re&&s.nodeType===V.comment&&M(Xr,s.data))},kr=function(s,a){if(!Ee[a]&&hn(a)&&(E.tagNameCheck instanceof RegExp&&M(E.tagNameCheck,a)||E.tagNameCheck instanceof Function&&E.tagNameCheck(a)))return!1;if(ot&&!Z[a]){const u=te(s),d=ee(s);if(d&&u){const k=d.length;for(let _=k-1;_>=0;--_){const C=at?d[_]:D(d[_],!0);u.insertBefore(C,W(s))}}}return se(s),!0},un=function(s){if(J(I.beforeSanitizeElements,s,null),qe(s))return se(s),!0;const a=R(H?H(s):s.nodeName);if(J(I.uponSanitizeElement,s,{tagName:a,allowedTags:S}),mr(s,a))return se(s),!0;if(Ee[a]||!(ne.tagCheck instanceof Function&&ne.tagCheck(a))&&!S[a])return kr(s,a);if((v?v(s):s.nodeType)===V.element&&!fr(s)||(a==="noscript"||a==="noembed"||a==="noframes")&&M(Vr,s.innerHTML))return se(s),!0;if(re&&s.nodeType===V.text){const d=We(s.textContent);s.textContent!==d&&(xe(e.removed,{element:s.cloneNode()}),s.textContent=d)}return J(I.afterSanitizeElements,s,null),!1},pn=function(s,a,u){if(qt[a]||Xt&&(a==="id"||a==="name")&&(u in n||u in cr))return!1;const d=A[a]||ne.attributeCheck instanceof Function&&ne.attributeCheck(a,s);if(!(nt&&M(tr,a))){if(!(jt&&M(nr,a))){if(d){if(!ut[a]){if(!M(Ht,Ne(u,Bt,""))){if(!((a==="src"||a==="xlink:href"||a==="href")&&s!=="script"&&bn(u,"data:")===0&&Kt[s])){if(!(Yt&&!M(rr,Ne(u,Bt,"")))){if(u)return!1}}}}}else if(!(hn(s)&&(E.tagNameCheck instanceof RegExp&&M(E.tagNameCheck,s)||E.tagNameCheck instanceof Function&&E.tagNameCheck(s))&&(E.attributeNameCheck instanceof RegExp&&M(E.attributeNameCheck,a)||E.attributeNameCheck instanceof Function&&E.attributeNameCheck(a,s))||a==="is"&&E.allowCustomizedBuiltInElements&&(E.tagNameCheck instanceof RegExp&&M(E.tagNameCheck,u)||E.tagNameCheck instanceof Function&&E.tagNameCheck(u))))return!1}}return!0},br=T({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),hn=function(s){return!br[ze(s)]&&M(sr,s)},Tr=function(s,a,u,d){if(O&&typeof b=="object"&&typeof b.getAttributeType=="function"&&!u)switch(b.getAttributeType(s,a)){case"TrustedHTML":return de(d);case"TrustedScriptURL":return Yn(d)}return d},xr=function(s,a,u,d){try{u?s.setAttributeNS(u,a,d):s.setAttribute(a,d),qe(s)?se(s):mn(e.removed)}catch{ce(a,s)}},fn=function(s){J(I.beforeSanitizeAttributes,s,null);const a=s.attributes;if(!a||qe(s))return;const u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:A,forceKeepAttr:void 0};let d=a.length;const k=R(s.nodeName);for(;d--;){const _=a[d],C=_.name,L=_.namespaceURI,G=_.value,q=R(C),bt=G;let U=C==="value"?bt:Nr(bt);if(u.attrName=q,u.attrValue=U,u.keepAttr=!0,u.forceKeepAttr=void 0,J(I.uponSanitizeAttribute,s,u),U=u.attrValue,Vt&&(q==="id"||q==="name")&&bn(U,Qt)!==0&&(ce(C,s),U=Qt+U),Re&&M(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,U)){ce(C,s);continue}if(q==="attributename"&&kn(U,"href")){ce(C,s);continue}if(!u.forceKeepAttr){if(!u.keepAttr){ce(C,s);continue}if(!Zt&&M(Qr,U)){ce(C,s);continue}if(re&&(U=We(U)),!pn(k,q,U)){ce(C,s);continue}U=Tr(k,q,L,U),U!==bt&&xr(s,C,L,U)}}J(I.afterSanitizeAttributes,s,null)},je=function(s){let a=null;const u=cn(s);for(J(I.beforeSanitizeShadowDOM,s,null);a=u.nextNode();)if(J(I.uponSanitizeShadowNode,a,null),un(a),fn(a),Te(a.content)&&je(a.content),(v?v(a):a.nodeType)===V.element){const k=ye(a);Te(k)&&(kt(k),je(k))}J(I.afterSanitizeShadowDOM,s,null)},kt=function(s){const a=[{node:s,shadow:null}];for(;a.length>0;){const u=a.pop();if(u.shadow){je(u.shadow);continue}const d=u.node,_=(v?v(d):d.nodeType)===V.element,C=ee(d);if(C)for(let L=C.length-1;L>=0;--L)a.push({node:C[L],shadow:null});if(_){const L=H?H(d):null;if(typeof L=="string"&&R(L)==="template"){const G=d.content;Te(G)&&a.push({node:G,shadow:null})}}if(_){const L=ye(d);Te(L)&&a.push({node:null,shadow:L},{node:L,shadow:null})}}};return e.sanitize=function(p){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=null,u=null,d=null,k=null;if(pt=!p,pt&&(p="<!-->"),typeof p!="string"&&!Oe(p)&&(p=zr(p),typeof p!="string"))throw ue("dirty is not a string, aborting");if(!e.isSupported)return p;rt?(S=st,A=it):gt(s),(I.uponSanitizeElement.length>0||I.uponSanitizeAttribute.length>0)&&(S=F(S)),I.uponSanitizeAttribute.length>0&&(A=F(A)),e.removed=[];const _=at&&typeof p!="string"&&Oe(p);if(_){const G=H?H(p):p.nodeName;if(typeof G=="string"){const q=R(G);if(!S[q]||Ee[q])throw ue("root node is forbidden and cannot be sanitized in-place")}if(qe(p))throw ue("root node is clobbered and cannot be sanitized in-place");try{kt(p)}catch(q){throw on(p),q}}else if(Oe(p))a=an("<!---->"),u=a.ownerDocument.importNode(p,!0),u.nodeType===V.element&&u.nodeName==="BODY"||u.nodeName==="HTML"?a=u:a.appendChild(u),kt(u);else{if(!ge&&!re&&!ae&&p.indexOf("<")===-1)return O&&Be?de(p):p;if(a=an(p),!a)return ge?null:Be?oe:""}a&<&&se(a.firstChild);const C=cn(_?p:a);try{for(;d=C.nextNode();)un(d),fn(d),Te(d.content)&&je(d.content)}catch(G){throw _&&on(p),G}if(_)return Le(e.removed,G=>{G.element&&gr(G.element)}),re&&mt(p),p;if(ge){if(re&&mt(a),Fe)for(k=Xn.call(a.ownerDocument);a.firstChild;)k.appendChild(a.firstChild);else k=a;return(A.shadowroot||A.shadowrootmode)&&(k=Qn.call(i,k,!0)),k}let L=ae?a.outerHTML:a.innerHTML;return ae&&S["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&M(Yr,a.ownerDocument.doctype.name)&&(L="<!DOCTYPE "+a.ownerDocument.doctype.name+`>
|
|
3
|
+
`+L),re&&(L=We(L)),O&&Be?de(L):L},e.setConfig=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};gt(p),rt=!0,st=S,it=A},e.clearConfig=function(){be=null,rt=!1,st=null,it=null,O=et,oe=""},e.isValidAttribute=function(p,s,a){be||gt({});const u=R(p),d=R(s);return pn(u,d,a)},e.addHook=function(p,s){typeof s=="function"&&P(I,p)&&xe(I[p],s)},e.removeHook=function(p,s){if(P(I,p)){if(s!==void 0){const a=Or(I[p],s);return a===-1?void 0:Lr(I[p],a,1)[0]}return mn(I[p])}},e.removeHooks=function(p){P(I,p)&&(I[p]=[])},e.removeAllHooks=function(){I=Rn()},e}var es=zn();function Ot(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var fe=Ot();function $n(t){fe=t}var pe={exec:()=>null};function x(t,e=""){let n=typeof t=="string"?t:t.source,i={replace:(r,o)=>{let l=typeof o=="string"?o:o.source;return l=l.replace(B.caret,"$1"),n=n.replace(r,l),i},getRegex:()=>new RegExp(n,e)};return i}var ts=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),B={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},ns=/^(?:[ \t]*(?:\n|$))+/,rs=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ss=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ve=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,is=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Lt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,vn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Un=x(vn).replace(/bull/g,Lt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),ls=x(vn).replace(/bull/g,Lt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Nt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,os=/^[^\n]+/,Dt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,as=x(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Dt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),cs=x(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Lt).getRegex(),Ke="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ct=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,us=x("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ct).replace("tag",Ke).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Fn=x(Nt).replace("hr",ve).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ke).getRegex(),ps=x(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Fn).getRegex(),Pt={blockquote:ps,code:rs,def:as,fences:ss,heading:is,hr:ve,html:us,lheading:Un,list:cs,newline:ns,paragraph:Fn,table:pe,text:os},In=x("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ve).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ke).getRegex(),hs={...Pt,lheading:ls,table:In,paragraph:x(Nt).replace("hr",ve).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",In).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ke).getRegex()},fs={...Pt,html:x(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ct).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:pe,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:x(Nt).replace("hr",ve).replace("heading",` *#{1,6} *[^
|
|
4
|
+
]`).replace("lheading",Un).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ds=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,gs=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bn=/^( {2,}|\\)\n(?!\s*$)/,ms=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,we=/[\p{P}\p{S}]/u,Je=/[\s\p{P}\p{S}]/u,Mt=/[^\s\p{P}\p{S}]/u,ks=x(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Je).getRegex(),Hn=/(?!~)[\p{P}\p{S}]/u,bs=/(?!~)[\s\p{P}\p{S}]/u,Ts=/(?:[^\s\p{P}\p{S}]|~)/u,xs=x(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ts?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Gn=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,_s=x(Gn,"u").replace(/punct/g,we).getRegex(),ws=x(Gn,"u").replace(/punct/g,Hn).getRegex(),Wn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ys=x(Wn,"gu").replace(/notPunctSpace/g,Mt).replace(/punctSpace/g,Je).replace(/punct/g,we).getRegex(),Ss=x(Wn,"gu").replace(/notPunctSpace/g,Ts).replace(/punctSpace/g,bs).replace(/punct/g,Hn).getRegex(),As=x("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Mt).replace(/punctSpace/g,Je).replace(/punct/g,we).getRegex(),Es=x(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,we).getRegex(),Rs="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Is=x(Rs,"gu").replace(/notPunctSpace/g,Mt).replace(/punctSpace/g,Je).replace(/punct/g,we).getRegex(),Os=x(/\\(punct)/,"gu").replace(/punct/g,we).getRegex(),Ls=x(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Ns=x(Ct).replace("(?:-->|$)","-->").getRegex(),Ds=x("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Ns).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Xe=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Cs=x(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Xe).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),qn=x(/^!?\[(label)\]\[(ref)\]/).replace("label",Xe).replace("ref",Dt).getRegex(),jn=x(/^!?\[(ref)\](?:\[\])?/).replace("ref",Dt).getRegex(),Ps=x("reflink|nolink(?!\\()","g").replace("reflink",qn).replace("nolink",jn).getRegex(),On=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,zt={_backpedal:pe,anyPunctuation:Os,autolink:Ls,blockSkip:xs,br:Bn,code:gs,del:pe,delLDelim:pe,delRDelim:pe,emStrongLDelim:_s,emStrongRDelimAst:ys,emStrongRDelimUnd:As,escape:ds,link:Cs,nolink:jn,punctuation:ks,reflink:qn,reflinkSearch:Ps,tag:Ds,text:ms,url:pe},Ms={...zt,link:x(/^!?\[(label)\]\((.*?)\)/).replace("label",Xe).getRegex(),reflink:x(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Xe).getRegex()},Et={...zt,emStrongRDelimAst:Ss,emStrongLDelim:ws,delLDelim:Es,delRDelim:Is,url:x(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",On).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:x(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",On).getRegex()},zs={...Et,br:x(Bn).replace("{2,}","*").getRegex(),text:x(Et.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ze={normal:Pt,gfm:hs,pedantic:fs},Ce={normal:zt,gfm:Et,breaks:zs,pedantic:Ms},$s={"&":"&","<":"<",">":">",'"':""","'":"'"},Ln=t=>$s[t];function K(t,e){if(e){if(B.escapeTest.test(t))return t.replace(B.escapeReplace,Ln)}else if(B.escapeTestNoEncode.test(t))return t.replace(B.escapeReplaceNoEncode,Ln);return t}function Nn(t){try{t=encodeURI(t).replace(B.percentDecode,"%")}catch{return null}return t}function Dn(t,e){let n=t.replace(B.findPipe,(o,l,h)=>{let c=!1,g=l;for(;--g>=0&&h[g]==="\\";)c=!c;return c?"|":" |"}),i=n.split(B.splitPipe),r=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;r<i.length;r++)i[r]=i[r].trim().replace(B.slashPipe,"|");return i}function Pe(t,e,n){let i=t.length;if(i===0)return"";let r=0;for(;r<i&&t.charAt(i-r-1)===e;)r++;return t.slice(0,i-r)}function vs(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let i=0;i<t.length;i++)if(t[i]==="\\")i++;else if(t[i]===e[0])n++;else if(t[i]===e[1]&&(n--,n<0))return i;return n>0?-2:-1}function Us(t,e=0){let n=e,i="";for(let r of t)if(r===" "){let o=4-n%4;i+=" ".repeat(o),n+=o}else i+=r,n++;return i}function Cn(t,e,n,i,r){let o=e.href,l=e.title||null,h=t[1].replace(r.other.outputLinkReplace,"$1");i.state.inLink=!0;let c={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:o,title:l,text:h,tokens:i.inlineTokens(h)};return i.state.inLink=!1,c}function Fs(t,e,n){let i=t.match(n.other.indentCodeCompensation);if(i===null)return e;let r=i[1];return e.split(`
|
|
5
|
+
`).map(o=>{let l=o.match(n.other.beginningSpace);if(l===null)return o;let[h]=l;return h.length>=r.length?o.slice(r.length):o}).join(`
|
|
6
|
+
`)}var Ve=class{options;rules;lexer;constructor(t){this.options=t||fe}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Pe(n,`
|
|
7
|
+
`)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let n=e[0],i=Fs(n,e[3]||"",this.rules);return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:i}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let n=e[2].trim();if(this.rules.other.endingHash.test(n)){let i=Pe(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:Pe(e[0],`
|
|
8
|
+
`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let n=Pe(e[0],`
|
|
9
|
+
`).split(`
|
|
10
|
+
`),i="",r="",o=[];for(;n.length>0;){let l=!1,h=[],c;for(c=0;c<n.length;c++)if(this.rules.other.blockquoteStart.test(n[c]))h.push(n[c]),l=!0;else if(!l)h.push(n[c]);else break;n=n.slice(c);let g=h.join(`
|
|
11
|
+
`),f=g.replace(this.rules.other.blockquoteSetextReplace,`
|
|
12
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
|
|
13
|
+
${g}`:g,r=r?`${r}
|
|
14
|
+
${f}`:f;let b=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,o,!0),this.lexer.state.top=b,n.length===0)break;let m=o.at(-1);if(m?.type==="code")break;if(m?.type==="blockquote"){let D=m,y=D.raw+`
|
|
15
|
+
`+n.join(`
|
|
16
|
+
`),W=this.blockquote(y);o[o.length-1]=W,i=i.substring(0,i.length-D.raw.length)+W.raw,r=r.substring(0,r.length-D.text.length)+W.text;break}else if(m?.type==="list"){let D=m,y=D.raw+`
|
|
17
|
+
`+n.join(`
|
|
18
|
+
`),W=this.list(y);o[o.length-1]=W,i=i.substring(0,i.length-m.raw.length)+W.raw,r=r.substring(0,r.length-D.raw.length)+W.raw,n=y.substring(o.at(-1).raw.length).split(`
|
|
19
|
+
`);continue}}return{type:"blockquote",raw:i,tokens:o,text:r}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),i=n.length>1,r={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let o=this.rules.other.listItemRegex(n),l=!1;for(;t;){let c=!1,g="",f="";if(!(e=o.exec(t))||this.rules.block.hr.test(t))break;g=e[0],t=t.substring(g.length);let b=Us(e[2].split(`
|
|
20
|
+
`,1)[0],e[1].length),m=t.split(`
|
|
21
|
+
`,1)[0],D=!b.trim(),y=0;if(this.options.pedantic?(y=2,f=b.trimStart()):D?y=e[1].length+1:(y=b.search(this.rules.other.nonSpaceChar),y=y>4?1:y,f=b.slice(y),y+=e[1].length),D&&this.rules.other.blankLine.test(m)&&(g+=m+`
|
|
22
|
+
`,t=t.substring(m.length+1),c=!0),!c){let W=this.rules.other.nextBulletRegex(y),ee=this.rules.other.hrRegex(y),te=this.rules.other.fencesBeginRegex(y),ye=this.rules.other.headingBeginRegex(y),Se=this.rules.other.htmlBeginRegex(y),v=this.rules.other.blockquoteBeginRegex(y);for(;t;){let H=t.split(`
|
|
23
|
+
`,1)[0],O;if(m=H,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting," "),O=m):O=m.replace(this.rules.other.tabCharGlobal," "),te.test(m)||ye.test(m)||Se.test(m)||v.test(m)||W.test(m)||ee.test(m))break;if(O.search(this.rules.other.nonSpaceChar)>=y||!m.trim())f+=`
|
|
24
|
+
`+O.slice(y);else{if(D||b.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||te.test(b)||ye.test(b)||ee.test(b))break;f+=`
|
|
25
|
+
`+m}D=!m.trim(),g+=H+`
|
|
26
|
+
`,t=t.substring(H.length+1),b=O.slice(y)}}r.loose||(l?r.loose=!0:this.rules.other.doubleBlankLine.test(g)&&(l=!0)),r.items.push({type:"list_item",raw:g,task:!!this.options.gfm&&this.rules.other.listIsTask.test(f),loose:!1,text:f,tokens:[]}),r.raw+=g}let h=r.items.at(-1);if(h)h.raw=h.raw.trimEnd(),h.text=h.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let c of r.items){if(this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]),c.task){if(c.text=c.text.replace(this.rules.other.listReplaceTask,""),c.tokens[0]?.type==="text"||c.tokens[0]?.type==="paragraph"){c.tokens[0].raw=c.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),c.tokens[0].text=c.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let f=this.lexer.inlineQueue.length-1;f>=0;f--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[f].src)){this.lexer.inlineQueue[f].src=this.lexer.inlineQueue[f].src.replace(this.rules.other.listReplaceTask,"");break}}let g=this.rules.other.listTaskCheckbox.exec(c.raw);if(g){let f={type:"checkbox",raw:g[0]+" ",checked:g[0]!=="[ ]"};c.checked=f.checked,r.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=f.raw+c.tokens[0].raw,c.tokens[0].text=f.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(f)):c.tokens.unshift({type:"paragraph",raw:f.raw,text:f.raw,tokens:[f]}):c.tokens.unshift(f)}}if(!r.loose){let g=c.tokens.filter(b=>b.type==="space"),f=g.length>0&&g.some(b=>this.rules.other.anyLine.test(b.raw));r.loose=f}}if(r.loose)for(let c of r.items){c.loose=!0;for(let g of c.tokens)g.type==="text"&&(g.type="paragraph")}return r}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let n=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:i,title:r}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let n=Dn(e[1]),i=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
27
|
+
`):[],o={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let l of i)this.rules.other.tableAlignRight.test(l)?o.align.push("right"):this.rules.other.tableAlignCenter.test(l)?o.align.push("center"):this.rules.other.tableAlignLeft.test(l)?o.align.push("left"):o.align.push(null);for(let l=0;l<n.length;l++)o.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:o.align[l]});for(let l of r)o.rows.push(Dn(l,o.header.length).map((h,c)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:o.align[c]})));return o}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e){let n=e[1].trim();return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let n=e[1].charAt(e[1].length-1)===`
|
|
28
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let n=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let o=Pe(n.slice(0,-1),"\\");if((n.length-o.length)%2===0)return}else{let o=vs(e[2],"()");if(o===-2)return;if(o>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+o;e[2]=e[2].substring(0,o),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let i=e[2],r="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(i);o&&(i=o[1],r=o[3])}else r=e[3]?e[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i=i.slice(1):i=i.slice(1,-1)),Cn(e,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let i=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=e[i.toLowerCase()];if(!r){let o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return Cn(n,r,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!(!i||!i[1]&&!i[2]&&!i[3]&&!i[4]||i[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[3])||!n||this.rules.inline.punctuation.exec(n))){let r=[...i[0]].length-1,o,l,h=r,c=0,g=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(g.lastIndex=0,e=e.slice(-1*t.length+r);(i=g.exec(e))!=null;){if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!o)continue;if(l=[...o].length,i[3]||i[4]){h+=l;continue}else if((i[5]||i[6])&&r%3&&!((r+l)%3)){c+=l;continue}if(h-=l,h>0)continue;l=Math.min(l,l+h+c);let f=[...i[0]][0].length,b=t.slice(0,r+i.index+f+l);if(Math.min(r,l)%2){let D=b.slice(1,-1);return{type:"em",raw:b,text:D,tokens:this.lexer.inlineTokens(D)}}let m=b.slice(2,-2);return{type:"strong",raw:b,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let n=e[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(n),r=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return i&&r&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:e[0],text:n}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,n=""){let i=this.rules.inline.delLDelim.exec(t);if(i&&(!i[1]||!n||this.rules.inline.punctuation.exec(n))){let r=[...i[0]].length-1,o,l,h=r,c=this.rules.inline.delRDelim;for(c.lastIndex=0,e=e.slice(-1*t.length+r);(i=c.exec(e))!=null;){if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!o||(l=[...o].length,l!==r))continue;if(i[3]||i[4]){h+=l;continue}if(h-=l,h>0)continue;l=Math.min(l,l+h);let g=[...i[0]][0].length,f=t.slice(0,r+i.index+g+l),b=f.slice(r,-r);return{type:"del",raw:f,text:b,tokens:this.lexer.inlineTokens(b)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let n,i;return e[2]==="@"?(n=e[1],i="mailto:"+n):(n=e[1],i=n),{type:"link",raw:e[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let n,i;if(e[2]==="@")n=e[0],i="mailto:"+n;else{let r;do r=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(r!==e[0]);n=e[0],e[1]==="www."?i="http://"+e[0]:i=e[0]}return{type:"link",raw:e[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let n=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:n}}}},j=class Rt{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||fe,this.options.tokenizer=this.options.tokenizer||new Ve,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:B,block:Ze.normal,inline:Ce.normal};this.options.pedantic?(n.block=Ze.pedantic,n.inline=Ce.pedantic):this.options.gfm&&(n.block=Ze.gfm,this.options.breaks?n.inline=Ce.breaks:n.inline=Ce.gfm),this.tokenizer.rules=n}static get rules(){return{block:Ze,inline:Ce}}static lex(e,n){return new Rt(n).lex(e)}static lexInline(e,n){return new Rt(n).inlineTokens(e)}lex(e){e=e.replace(B.carriageReturn,`
|
|
29
|
+
`),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let i=this.inlineQueue[n];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],i=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(B.tabCharGlobal," ").replace(B.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(l=>(r=l.call({lexer:this},e,n))?(e=e.substring(r.raw.length),n.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let l=n.at(-1);r.raw.length===1&&l!==void 0?l.raw+=`
|
|
30
|
+
`:n.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
|
|
31
|
+
`)?"":`
|
|
32
|
+
`)+r.raw,l.text+=`
|
|
33
|
+
`+r.text,this.inlineQueue.at(-1).src=l.text):n.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
|
|
34
|
+
`)?"":`
|
|
35
|
+
`)+r.raw,l.text+=`
|
|
36
|
+
`+r.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},n.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),n.push(r);continue}let o=e;if(this.options.extensions?.startBlock){let l=1/0,h=e.slice(1),c;this.options.extensions.startBlock.forEach(g=>{c=g.call({lexer:this},h),typeof c=="number"&&c>=0&&(l=Math.min(l,c))}),l<1/0&&l>=0&&(o=e.substring(0,l+1))}if(this.state.top&&(r=this.tokenizer.paragraph(o))){let l=n.at(-1);i&&l?.type==="paragraph"?(l.raw+=(l.raw.endsWith(`
|
|
37
|
+
`)?"":`
|
|
38
|
+
`)+r.raw,l.text+=`
|
|
39
|
+
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(r),i=o.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let l=n.at(-1);l?.type==="text"?(l.raw+=(l.raw.endsWith(`
|
|
40
|
+
`)?"":`
|
|
41
|
+
`)+r.raw,l.text+=`
|
|
42
|
+
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(r);continue}if(e){let l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){this.tokenizer.lexer=this;let i=e,r=null;if(this.tokens.links){let c=Object.keys(this.tokens.links);if(c.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)c.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,r.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)o=r[2]?r[2].length:0,i=i.slice(0,r.index+o)+"["+"a".repeat(r[0].length-o-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let l=!1,h="";for(;e;){l||(h=""),l=!1;let c;if(this.options.extensions?.inline?.some(f=>(c=f.call({lexer:this},e,n))?(e=e.substring(c.raw.length),n.push(c),!0):!1))continue;if(c=this.tokenizer.escape(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.tag(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.link(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(c.raw.length);let f=n.at(-1);c.type==="text"&&f?.type==="text"?(f.raw+=c.raw,f.text+=c.text):n.push(c);continue}if(c=this.tokenizer.emStrong(e,i,h)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.codespan(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.br(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.del(e,i,h)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.autolink(e)){e=e.substring(c.raw.length),n.push(c);continue}if(!this.state.inLink&&(c=this.tokenizer.url(e))){e=e.substring(c.raw.length),n.push(c);continue}let g=e;if(this.options.extensions?.startInline){let f=1/0,b=e.slice(1),m;this.options.extensions.startInline.forEach(D=>{m=D.call({lexer:this},b),typeof m=="number"&&m>=0&&(f=Math.min(f,m))}),f<1/0&&f>=0&&(g=e.substring(0,f+1))}if(c=this.tokenizer.inlineText(g)){e=e.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(h=c.raw.slice(-1)),l=!0;let f=n.at(-1);f?.type==="text"?(f.raw+=c.raw,f.text+=c.text):n.push(c);continue}if(e){let f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return n}},Qe=class{options;parser;constructor(t){this.options=t||fe}space(t){return""}code({text:t,lang:e,escaped:n}){let i=(e||"").match(B.notSpaceStart)?.[0],r=t.replace(B.endingNewline,"")+`
|
|
43
|
+
`;return i?'<pre><code class="language-'+K(i)+'">'+(n?r:K(r,!0))+`</code></pre>
|
|
44
|
+
`:"<pre><code>"+(n?r:K(r,!0))+`</code></pre>
|
|
45
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
46
|
+
${this.parser.parse(t)}</blockquote>
|
|
47
|
+
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
|
|
48
|
+
`}hr(t){return`<hr>
|
|
49
|
+
`}list(t){let e=t.ordered,n=t.start,i="";for(let l=0;l<t.items.length;l++){let h=t.items[l];i+=this.listitem(h)}let r=e?"ol":"ul",o=e&&n!==1?' start="'+n+'"':"";return"<"+r+o+`>
|
|
50
|
+
`+i+"</"+r+`>
|
|
51
|
+
`}listitem(t){return`<li>${this.parser.parse(t.tokens)}</li>
|
|
52
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
53
|
+
`}table(t){let e="",n="";for(let r=0;r<t.header.length;r++)n+=this.tablecell(t.header[r]);e+=this.tablerow({text:n});let i="";for(let r=0;r<t.rows.length;r++){let o=t.rows[r];n="";for(let l=0;l<o.length;l++)n+=this.tablecell(o[l]);i+=this.tablerow({text:n})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
|
|
54
|
+
<thead>
|
|
55
|
+
`+e+`</thead>
|
|
56
|
+
`+i+`</table>
|
|
57
|
+
`}tablerow({text:t}){return`<tr>
|
|
58
|
+
${t}</tr>
|
|
59
|
+
`}tablecell(t){let e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
|
|
60
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${K(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){let i=this.parser.parseInline(n),r=Nn(t);if(r===null)return i;t=r;let o='<a href="'+t+'"';return e&&(o+=' title="'+K(e)+'"'),o+=">"+i+"</a>",o}image({href:t,title:e,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let r=Nn(t);if(r===null)return K(n);t=r;let o=`<img src="${t}" alt="${K(n)}"`;return e&&(o+=` title="${K(e)}"`),o+=">",o}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:K(t.text)}},$t=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},Y=class It{options;renderer;textRenderer;constructor(e){this.options=e||fe,this.options.renderer=this.options.renderer||new Qe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new $t}static parse(e,n){return new It(n).parse(e)}static parseInline(e,n){return new It(n).parseInline(e)}parse(e){this.renderer.parser=this;let n="";for(let i=0;i<e.length;i++){let r=e[i];if(this.options.extensions?.renderers?.[r.type]){let l=r,h=this.options.extensions.renderers[l.type].call({parser:this},l);if(h!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){n+=h||"";continue}}let o=r;switch(o.type){case"space":{n+=this.renderer.space(o);break}case"hr":{n+=this.renderer.hr(o);break}case"heading":{n+=this.renderer.heading(o);break}case"code":{n+=this.renderer.code(o);break}case"table":{n+=this.renderer.table(o);break}case"blockquote":{n+=this.renderer.blockquote(o);break}case"list":{n+=this.renderer.list(o);break}case"checkbox":{n+=this.renderer.checkbox(o);break}case"html":{n+=this.renderer.html(o);break}case"def":{n+=this.renderer.def(o);break}case"paragraph":{n+=this.renderer.paragraph(o);break}case"text":{n+=this.renderer.text(o);break}default:{let l='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}parseInline(e,n=this.renderer){this.renderer.parser=this;let i="";for(let r=0;r<e.length;r++){let o=e[r];if(this.options.extensions?.renderers?.[o.type]){let h=this.options.extensions.renderers[o.type].call({parser:this},o);if(h!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){i+=h||"";continue}}let l=o;switch(l.type){case"escape":{i+=n.text(l);break}case"html":{i+=n.html(l);break}case"link":{i+=n.link(l);break}case"image":{i+=n.image(l);break}case"checkbox":{i+=n.checkbox(l);break}case"strong":{i+=n.strong(l);break}case"em":{i+=n.em(l);break}case"codespan":{i+=n.codespan(l);break}case"br":{i+=n.br(l);break}case"del":{i+=n.del(l);break}case"text":{i+=n.text(l);break}default:{let h='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return i}},$e=class{options;block;constructor(t){this.options=t||fe}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?j.lex:j.lexInline}provideParser(){return this.block?Y.parse:Y.parseInline}},Bs=class{defaults=Ot();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Y;Renderer=Qe;TextRenderer=$t;Lexer=j;Tokenizer=Ve;Hooks=$e;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let i of t)switch(n=n.concat(e.call(this,i)),i.type){case"table":{let r=i;for(let o of r.header)n=n.concat(this.walkTokens(o.tokens,e));for(let o of r.rows)for(let l of o)n=n.concat(this.walkTokens(l.tokens,e));break}case"list":{let r=i;n=n.concat(this.walkTokens(r.items,e));break}default:{let r=i;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(o=>{let l=r[o].flat(1/0);n=n.concat(this.walkTokens(l,e))}):r.tokens&&(n=n.concat(this.walkTokens(r.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let o=e.renderers[r.name];o?e.renderers[r.name]=function(...l){let h=r.renderer.apply(this,l);return h===!1&&(h=o.apply(this,l)),h}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=e[r.level];o?o.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),i.extensions=e),n.renderer){let r=this.defaults.renderer||new Qe(this.defaults);for(let o in n.renderer){if(!(o in r))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let l=o,h=n.renderer[l],c=r[l];r[l]=(...g)=>{let f=h.apply(r,g);return f===!1&&(f=c.apply(r,g)),f||""}}i.renderer=r}if(n.tokenizer){let r=this.defaults.tokenizer||new Ve(this.defaults);for(let o in n.tokenizer){if(!(o in r))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let l=o,h=n.tokenizer[l],c=r[l];r[l]=(...g)=>{let f=h.apply(r,g);return f===!1&&(f=c.apply(r,g)),f}}i.tokenizer=r}if(n.hooks){let r=this.defaults.hooks||new $e;for(let o in n.hooks){if(!(o in r))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let l=o,h=n.hooks[l],c=r[l];$e.passThroughHooks.has(o)?r[l]=g=>{if(this.defaults.async&&$e.passThroughHooksRespectAsync.has(o))return(async()=>{let b=await h.call(r,g);return c.call(r,b)})();let f=h.call(r,g);return c.call(r,f)}:r[l]=(...g)=>{if(this.defaults.async)return(async()=>{let b=await h.apply(r,g);return b===!1&&(b=await c.apply(r,g)),b})();let f=h.apply(r,g);return f===!1&&(f=c.apply(r,g)),f}}i.hooks=r}if(n.walkTokens){let r=this.defaults.walkTokens,o=n.walkTokens;i.walkTokens=function(l){let h=[];return h.push(o.call(this,l)),r&&(h=h.concat(r.call(this,l))),h}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return j.lex(t,e??this.defaults)}parser(t,e){return Y.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let i={...n},r={...this.defaults,...i},o=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&i.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=t),r.async)return(async()=>{let l=r.hooks?await r.hooks.preprocess(e):e,h=await(r.hooks?await r.hooks.provideLexer():t?j.lex:j.lexInline)(l,r),c=r.hooks?await r.hooks.processAllTokens(h):h;r.walkTokens&&await Promise.all(this.walkTokens(c,r.walkTokens));let g=await(r.hooks?await r.hooks.provideParser():t?Y.parse:Y.parseInline)(c,r);return r.hooks?await r.hooks.postprocess(g):g})().catch(o);try{r.hooks&&(e=r.hooks.preprocess(e));let l=(r.hooks?r.hooks.provideLexer():t?j.lex:j.lexInline)(e,r);r.hooks&&(l=r.hooks.processAllTokens(l)),r.walkTokens&&this.walkTokens(l,r.walkTokens);let h=(r.hooks?r.hooks.provideParser():t?Y.parse:Y.parseInline)(l,r);return r.hooks&&(h=r.hooks.postprocess(h)),h}catch(l){return o(l)}}}onError(t,e){return n=>{if(n.message+=`
|
|
61
|
+
Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+K(n.message+"",!0)+"</pre>";return e?Promise.resolve(i):i}if(e)return Promise.reject(n);throw n}}},he=new Bs;function w(t,e){return he.parse(t,e)}w.options=w.setOptions=function(t){return he.setOptions(t),w.defaults=he.defaults,$n(w.defaults),w};w.getDefaults=Ot;w.defaults=fe;w.use=function(...t){return he.use(...t),w.defaults=he.defaults,$n(w.defaults),w};w.walkTokens=function(t,e){return he.walkTokens(t,e)};w.parseInline=he.parseInline;w.Parser=Y;w.parser=Y.parse;w.Renderer=Qe;w.TextRenderer=$t;w.Lexer=j;w.lexer=j.lex;w.Tokenizer=Ve;w.Hooks=$e;w.parse=w;w.options;w.setOptions;w.use;w.walkTokens;w.parseInline;Y.parse;j.lex;w.setOptions({breaks:!0,gfm:!0});const Me=new Map,Hs=500;function Gs(t){if(!t)return"";const e=Me.get(t);if(e!==void 0)return e;const n=w.parse(t),i=es.sanitize(n);if(Me.size>=Hs){const r=Me.keys().next().value;r!==void 0&&Me.delete(r)}return Me.set(t,i),i}export{Gs as r};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{O as re,T as Ae,Z as Oe,_ as Re,g as O,a0 as ce,b as de,S as he,a1 as Ne,a2 as _e,a as pe,I as K,i as se,a3 as L,n as _,j as p,a4 as w,a5 as ne,f as ve,U as Q,a6 as De,a7 as ie,h as E,e as R,a8 as Y,a9 as S,aa as ge,ab as Ie,ac as H,ad as U,ae,af as Pe,ag as Me,ah as be,F as Z,ai as ke,aj as D,m as I,B as Le,X as me,ak as x,V as ye,al as Ce,am as xe,an as Fe,ao as Be,ap as Ye,o as j,aq as He,ar as Ue,as as Ve,at as je,au as qe,av as We,aw as q,C as we,Y as $e,k as ze,ax as W,l as N,ay as Ge,az as Xe,aA as Je,aB as Ke,p as Qe,aC as Ze,aD as et,w as tt,aE as fe,aF as rt,aG as st,W as nt,D as it,aH as at,aI as ee,aJ as $,aK as ft,aL as ot,q as ut,aM as lt,aN as ct,aO as dt,aP as ht,aQ as _t,aR as pt,M as oe,aS as vt,aT as gt,Q as Ee,aU as M}from"./kzeZOqU5.js";let F=!1,z=Symbol();function xt(t,e,r){const s=r[e]??={store:null,source:Ae(void 0),unsubscribe:re};if(s.store!==t&&!(z in r))if(s.unsubscribe(),s.store=t??null,t==null)s.source.v=void 0,s.unsubscribe=re;else{var i=!0;s.unsubscribe=Oe(t,n=>{i?s.source.v=n:de(s.source,n)}),i=!1}return t&&z in r?Re(t):O(s.source)}function Ft(){const t={};function e(){ce(()=>{for(var r in t)t[r].unsubscribe();he(t,z,{enumerable:!1,value:!0})})}return[t,e]}function bt(t){var e=F;try{return F=!1,[t(),F]}finally{F=e}}function mt(t){let e=0,r=pe(0),s;return()=>{Ne()&&(O(r),_e(()=>(e===0&&(s=K(()=>t(()=>se(r)))),e+=1,()=>{L(()=>{e-=1,e===0&&(s?.(),s=void 0,se(r))})})))}}var yt=ye|Ce;function wt(t,e,r,s){new Et(t,e,r,s)}class Et{parent;is_pending=!1;transform_error;#t;#i=p?_:null;#e;#f;#r;#n=null;#s=null;#a=null;#o=null;#c=0;#l=0;#d=!1;#p=new Set;#v=new Set;#u=null;#y=mt(()=>(this.#u=pe(this.#c),()=>{this.#u=null}));constructor(e,r,s,i){this.#t=e,this.#e=r,this.#f=n=>{var a=w;a.b=this,a.f|=ne,s(n)},this.parent=w.b,this.transform_error=i??this.parent?.transform_error??(n=>n),this.#r=ve(()=>{if(p){const n=this.#i;Q();const a=n.data===De;if(n.data.startsWith(ie)){const f=JSON.parse(n.data.slice(ie.length));this.#E(f)}else a?this.#T():this.#w()}else this.#g()},yt),p&&(this.#t=_)}#w(){try{this.#n=E(()=>this.#f(this.#t))}catch(e){this.error(e)}}#E(e){const r=this.#e.failed;r&&(this.#a=E(()=>{r(this.#t,()=>e,()=>()=>{})}))}#T(){const e=this.#e.pending;e&&(this.is_pending=!0,this.#s=E(()=>e(this.#t)),L(()=>{var r=this.#o=document.createDocumentFragment(),s=R();r.append(s),this.#n=this.#_(()=>E(()=>this.#f(s))),this.#l===0&&(this.#t.before(r),this.#o=null,Y(this.#s,()=>{this.#s=null}),this.#h(S))}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#l=0,this.#c=0,this.#n=E(()=>{this.#f(this.#t)}),this.#l>0){var e=this.#o=document.createDocumentFragment();ge(this.#n,e);const r=this.#e.pending;this.#s=E(()=>r(this.#t))}else this.#h(S)}catch(r){this.error(r)}}#h(e){this.is_pending=!1,e.transfer_effects(this.#p,this.#v)}defer_effect(e){Ie(e,this.#p,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#e.pending}#_(e){var r=w,s=be,i=Z;H(this.#r),U(this.#r),ae(this.#r.ctx);try{return Pe.ensure(),e()}catch(n){return Me(n),null}finally{H(r),U(s),ae(i)}}#b(e,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(e,r);return}this.#l+=e,this.#l===0&&(this.#h(r),this.#s&&Y(this.#s,()=>{this.#s=null}),this.#o&&(this.#t.before(this.#o),this.#o=null))}update_pending_count(e,r){this.#b(e,r),this.#c+=e,!(!this.#u||this.#d)&&(this.#d=!0,L(()=>{this.#d=!1,this.#u&&ke(this.#u,this.#c)}))}get_effect_pending(){return this.#y(),O(this.#u)}error(e){if(!this.#e.onerror&&!this.#e.failed)throw e;S?.is_fork?(this.#n&&S.skip_effect(this.#n),this.#s&&S.skip_effect(this.#s),this.#a&&S.skip_effect(this.#a),S.on_fork_commit(()=>{this.#m(e)})):this.#m(e)}#m(e){this.#n&&(D(this.#n),this.#n=null),this.#s&&(D(this.#s),this.#s=null),this.#a&&(D(this.#a),this.#a=null),p&&(I(this.#i),Le(),I(me()));var r=this.#e.onerror;let s=this.#e.failed;var i=!1,n=!1;const a=()=>{if(i){Fe();return}i=!0,n&&xe(),this.#a!==null&&Y(this.#a,()=>{this.#a=null}),this.#_(()=>{this.#g()})},o=f=>{try{n=!0,r?.(f,a),n=!1}catch(u){x(u,this.#r&&this.#r.parent)}s&&(this.#a=this.#_(()=>{try{return E(()=>{var u=w;u.b=this,u.f|=ne,s(this.#t,()=>f,()=>a)})}catch(u){return x(u,this.#r.parent),null}}))};L(()=>{var f;try{f=this.transform_error(e)}catch(u){x(u,this.#r&&this.#r.parent);return}f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(o,u=>x(u,this.#r&&this.#r.parent)):o(f)})}}const k=Symbol("events"),Te=new Set,G=new Set;function Bt(t){if(!p)return;t.removeAttribute("onload"),t.removeAttribute("onerror");const e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Tt(t,e,r,s={}){function i(n){if(s.capture||X.call(e,n),!n.cancelBubble)return Be(()=>r?.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?L(()=>{e.addEventListener(t,i,s)}):e.addEventListener(t,i,s),i}function Yt(t,e,r,s,i){var n={capture:s,passive:i},a=Tt(t,e,r,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ce(()=>{e.removeEventListener(t,a,n)})}function Ht(t,e,r){(e[k]??={})[t]=r}function Ut(t){for(var e=0;e<t.length;e++)Te.add(t[e]);for(var r of G)r(t)}let ue=null;function X(t){var e=this,r=e.ownerDocument,s=t.type,i=t.composedPath?.()||[],n=i[0]||t.target;ue=t;var a=0,o=ue===t&&t[k];if(o){var f=i.indexOf(o);if(f!==-1&&(e===document||e===window)){t[k]=e;return}var u=i.indexOf(e);if(u===-1)return;f<=u&&(a=f)}if(n=i[a]||t.target,n!==e){he(t,"currentTarget",{configurable:!0,get(){return n||r}});var v=be,b=w;U(null),H(null);try{for(var m,c=[];n!==null;){var d=n.assignedSlot||n.parentNode||n.host||null;try{var l=n[k]?.[s];l!=null&&(!n.disabled||t.target===n)&&l.call(n,t)}catch(g){m?c.push(g):m=g}if(t.cancelBubble||d===e||d===null)break;n=d}if(m){for(let g of c)queueMicrotask(()=>{throw g});throw m}}finally{t[k]=e,delete t.currentTarget,U(v),H(b)}}}const St=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function At(t){return St?.createHTML(t)??t}function Ot(t){var e=Ye("template");return e.innerHTML=At(t.replaceAll("<!>","<!---->")),e.content}function A(t,e){var r=w;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function Vt(t,e){var r=(e&Ue)!==0,s=(e&Ve)!==0,i,n=!t.startsWith("<!>");return()=>{if(p)return A(_,null),_;i===void 0&&(i=Ot(n?t:"<!>"+t),r||(i=j(i)));var a=s||He?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=j(a),f=a.lastChild;A(o,f)}else A(a,a);return a}}function jt(t=""){if(!p){var e=R(t+"");return A(e,e),e}var r=_;return r.nodeType!==qe?(r.before(r=R()),I(r)):We(r),A(r,r),r}function qt(){if(p)return A(_,null),_;var t=document.createDocumentFragment(),e=document.createComment(""),r=R();return t.append(e,r),A(e,r),t}function Wt(t,e){if(p){var r=w;((r.f&je)===0||r.nodes.end===null)&&(r.nodes.end=_),Q();return}t!==null&&t.before(e)}function $t(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Rt=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function zt(t){return Rt.includes(t)}const Nt={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Gt(t){return t=t.toLowerCase(),Nt[t]??t}const Dt=["touchstart","touchmove"];function It(t){return Dt.includes(t)}let le=!0;function Xt(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t[fe]??=t.nodeValue)&&(t[fe]=r,t.nodeValue=`${r}`)}function Pt(t,e){return Se(t,e)}function Jt(t,e){q(),e.intro=e.intro??!1;const r=e.target,s=p,i=_;try{for(var n=j(r);n&&(n.nodeType!==we||n.data!==$e);)n=ze(n);if(!n)throw W;N(!0),I(n);const a=Se(t,{...e,anchor:n});return N(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
+
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==W&&console.warn("Failed to hydrate: ",a),e.recover===!1&&Ge(),q(),Xe(r),N(!1),Pt(t,e)}finally{N(s),I(i)}}const B=new Map;function Se(t,{target:e,anchor:r,props:s={},events:i,context:n,intro:a=!0,transformError:o}){q();var f=void 0,u=Je(()=>{var v=r??e.appendChild(R());wt(v,{pending:()=>{}},c=>{Qe({});var d=Z;if(n&&(d.c=n),i&&(s.$$events=i),p&&A(c,null),le=a,f=t(c,s)||{},le=!0,p&&(w.nodes.end=_,_===null||_.nodeType!==we||_.data!==Ze))throw et(),W;tt()},o);var b=new Set,m=c=>{for(var d=0;d<c.length;d++){var l=c[d];if(!b.has(l)){b.add(l);var g=It(l);for(const P of[e,document]){var y=B.get(P);y===void 0&&(y=new Map,B.set(P,y));var T=y.get(l);T===void 0?(P.addEventListener(l,X,{passive:g}),y.set(l,1)):y.set(l,T+1)}}}};return m(Ke(Te)),G.add(m),()=>{for(var c of b)for(const g of[e,document]){var d=B.get(g),l=d.get(c);--l==0?(g.removeEventListener(c,X),d.delete(c),d.size===0&&B.delete(g)):d.set(c,l)}G.delete(m),v!==r&&v.parentNode?.removeChild(v)}});return J.set(f,u),f}let J=new WeakMap;function Kt(t,e){const r=J.get(t);return r?(J.delete(t),r(e)):Promise.resolve()}const Mt="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Mt);class kt{anchor;#t=new Map;#i=new Map;#e=new Map;#f=new Set;#r=!0;constructor(e,r=!0){this.anchor=e,this.#r=r}#n=e=>{if(this.#t.has(e)){var r=this.#t.get(e),s=this.#i.get(r);if(s)rt(s),this.#f.delete(r);else{var i=this.#e.get(r);i&&(this.#i.set(r,i.effect),this.#e.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),s=i.effect)}for(const[n,a]of this.#t){if(this.#t.delete(n),n===e)break;const o=this.#e.get(a);o&&(D(o.effect),this.#e.delete(a))}for(const[n,a]of this.#i){if(n===r||this.#f.has(n))continue;const o=()=>{if(Array.from(this.#t.values()).includes(n)){var u=document.createDocumentFragment();ge(a,u),u.append(R()),this.#e.set(n,{effect:a,fragment:u})}else D(a);this.#f.delete(n),this.#i.delete(n)};this.#r||!s?(this.#f.add(n),Y(a,o,!1)):o()}}};#s=e=>{this.#t.delete(e);const r=Array.from(this.#t.values());for(const[s,i]of this.#e)r.includes(s)||(D(i.effect),this.#e.delete(s))};ensure(e,r){var s=S,i=st();if(r&&!this.#i.has(e)&&!this.#e.has(e))if(i){var n=document.createDocumentFragment(),a=R();n.append(a),this.#e.set(e,{effect:E(()=>r(a)),fragment:n})}else this.#i.set(e,E(()=>r(this.anchor)));if(this.#t.set(s,e),i){for(const[o,f]of this.#i)o===e?s.unskip_effect(f):s.skip_effect(f);for(const[o,f]of this.#e)o===e?s.unskip_effect(f.effect):s.skip_effect(f.effect);s.oncommit(this.#n),s.ondiscard(this.#s)}else p&&(this.anchor=_),this.#n(s)}}function Qt(t,e,r=!1){var s;p&&(s=_,Q());var i=new kt(t),n=r?ye:0;function a(o,f){if(p){var u=nt(s);if(o!==parseInt(u.substring(1))){var v=me();I(v),i.anchor=v,N(!1),i.ensure(o,f),N(!0);return}}i.ensure(o,f)}ve(()=>{var o=!1;e((f,u=0)=>{o=!0,a(u,f)}),o||a(-1,null)},n)}function V(t,e){return t===e||t?.[ee]===e}function Zt(t={},e,r,s){var i=Z.r,n=w;return it(()=>{var a,o;return _e(()=>{a=o,o=[],K(()=>{V(r(...o),t)||(e(t,...o),a&&V(r(...a),t)&&e(null,...a))})}),()=>{let f=n;for(;f!==i&&f.parent!==null&&f.parent.f&at;)f=f.parent;const u=()=>{o&&V(r(...o),t)&&e(null,...o)},v=f.teardown;f.teardown=()=>{u(),v?.()}}}),t}const Lt={get(t,e){let r=t.props.length;for(;r--;){let s=t.props[r];if(M(s)&&(s=s()),typeof s=="object"&&s!==null&&e in s)return s[e]}},set(t,e,r){let s=t.props.length;for(;s--;){let i=t.props[s];M(i)&&(i=i());const n=$(i,e);if(n&&n.set)return n.set(r),!0}return!1},getOwnPropertyDescriptor(t,e){let r=t.props.length;for(;r--;){let s=t.props[r];if(M(s)&&(s=s()),typeof s=="object"&&s!==null&&e in s){const i=$(s,e);return i&&!i.configurable&&(i.configurable=!0),i}}},has(t,e){if(e===ee||e===Ee)return!1;for(let r of t.props)if(M(r)&&(r=r()),r!=null&&e in r)return!0;return!1},ownKeys(t){const e=[];for(let r of t.props)if(M(r)&&(r=r()),!!r){for(const s in r)e.includes(s)||e.push(s);for(const s of Object.getOwnPropertySymbols(r))e.includes(s)||e.push(s)}return e}};function er(...t){return new Proxy({props:t},Lt)}function tr(t,e,r,s){var i=!ht||(r&_t)!==0,n=(r&dt)!==0,a=(r>)!==0,o=s,f=!0,u=void 0,v=()=>a&&i?(u??=oe(s),O(u)):(f&&(f=!1,o=a?K(s):s),o);let b;if(n){var m=ee in t||Ee in t;b=$(t,e)?.set??(m&&e in t?h=>t[e]=h:void 0)}var c,d=!1;n?[c,d]=bt(()=>t[e]):c=t[e],c===void 0&&s!==void 0&&(c=v(),b&&(i&&ft(),b(c)));var l;if(i?l=()=>{var h=t[e];return h===void 0?v():(f=!0,h)}:l=()=>{var h=t[e];return h!==void 0&&(o=void 0),h===void 0?o:h},i&&(r&ot)===0)return l;if(b){var g=t.$$legacy;return(function(h,C){return arguments.length>0?((!i||!C||g||d)&&b(C?l():h),h):l()})}var y=!1,T=((r&pt)!==0?oe:vt)(()=>(y=!1,l()));n&&O(T);var P=w;return(function(h,C){if(arguments.length>0){const te=C?O(T):i&&n?ut(h):h;return de(T,te),y=!0,o!==void 0&&(o=te),h}return lt&&y||(P.f&ct)!==0?T.v:O(T)})}export{kt as B,Wt as a,Ht as b,xt as c,Ut as d,Ft as e,Vt as f,Zt as g,Yt as h,Qt as i,qt as j,Jt as k,A as l,Pt as m,le as n,$t as o,tr as p,Tt as q,Gt as r,Xt as s,jt as t,Kt as u,zt as v,er as w,Bt as x};
|
|
Binary file
|
|
Binary file
|