@openc3/vue-common 7.1.1 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ArrayWidget-CmKZQfWB.js → ArrayWidget-D1PArcGr.js} +5 -5
- package/dist/{ArrayWidget-CmKZQfWB.js.map → ArrayWidget-D1PArcGr.js.map} +1 -1
- package/dist/{ArrayWidget-D_zfyp9k.cjs → ArrayWidget-sQ40q9fv.cjs} +2 -2
- package/dist/{ArrayWidget-D_zfyp9k.cjs.map → ArrayWidget-sQ40q9fv.cjs.map} +1 -1
- package/dist/{ArrayplotWidget-CK5o4lO8.cjs → ArrayplotWidget-CEBmTpZH.cjs} +2 -2
- package/dist/{ArrayplotWidget-CK5o4lO8.cjs.map → ArrayplotWidget-CEBmTpZH.cjs.map} +1 -1
- package/dist/{ArrayplotWidget-D5McM1rY.js → ArrayplotWidget-DPUPy0qM.js} +5 -5
- package/dist/{ArrayplotWidget-D5McM1rY.js.map → ArrayplotWidget-DPUPy0qM.js.map} +1 -1
- package/dist/{BarColumn-BsS8Fdyl.cjs → BarColumn-BHCgIHhm.cjs} +2 -2
- package/dist/{BarColumn-BsS8Fdyl.cjs.map → BarColumn-BHCgIHhm.cjs.map} +1 -1
- package/dist/{BarColumn-BtP1cQcf.js → BarColumn-BpdscDQf.js} +3 -3
- package/dist/{BarColumn-BtP1cQcf.js.map → BarColumn-BpdscDQf.js.map} +1 -1
- package/dist/{BlockWidget-CtBgkMYu.cjs → BlockWidget-BzUgw2-i.cjs} +2 -2
- package/dist/{BlockWidget-CtBgkMYu.cjs.map → BlockWidget-BzUgw2-i.cjs.map} +1 -1
- package/dist/{BlockWidget-BKMse4hP.js → BlockWidget-_VUsK5T9.js} +5 -5
- package/dist/{BlockWidget-BKMse4hP.js.map → BlockWidget-_VUsK5T9.js.map} +1 -1
- package/dist/{ButtonWidget-hNa6zzSd.cjs → ButtonWidget-D8BhMKz_.cjs} +3 -3
- package/dist/{ButtonWidget-hNa6zzSd.cjs.map → ButtonWidget-D8BhMKz_.cjs.map} +1 -1
- package/dist/{ButtonWidget-BLNVL46w.js → ButtonWidget-DE41o-cg.js} +7 -7
- package/dist/{ButtonWidget-BLNVL46w.js.map → ButtonWidget-DE41o-cg.js.map} +1 -1
- package/dist/{CanvasWidget-1jy1JskS.js → CanvasWidget-BEi8h3Mq.js} +2 -2
- package/dist/{CanvasWidget-1jy1JskS.js.map → CanvasWidget-BEi8h3Mq.js.map} +1 -1
- package/dist/{CanvasWidget-BldZDkOl.cjs → CanvasWidget-DplsGt-k.cjs} +2 -2
- package/dist/{CanvasWidget-BldZDkOl.cjs.map → CanvasWidget-DplsGt-k.cjs.map} +1 -1
- package/dist/{CanvasdotWidget-D1yQLRDN.cjs → CanvasdotWidget-CLzrz9dr.cjs} +2 -2
- package/dist/{CanvasdotWidget-D1yQLRDN.cjs.map → CanvasdotWidget-CLzrz9dr.cjs.map} +1 -1
- package/dist/{CanvasdotWidget-DxuFGoWt.js → CanvasdotWidget-eZuMgkhL.js} +2 -2
- package/dist/{CanvasdotWidget-DxuFGoWt.js.map → CanvasdotWidget-eZuMgkhL.js.map} +1 -1
- package/dist/{CanvasimageWidget-D8DConb8.cjs → CanvasimageWidget-66HcpffG.cjs} +2 -2
- package/dist/{CanvasimageWidget-D8DConb8.cjs.map → CanvasimageWidget-66HcpffG.cjs.map} +1 -1
- package/dist/{CanvasimageWidget-B_JxCI_f.js → CanvasimageWidget-COv_Qnc8.js} +3 -3
- package/dist/{CanvasimageWidget-B_JxCI_f.js.map → CanvasimageWidget-COv_Qnc8.js.map} +1 -1
- package/dist/{CanvasimagevalueWidget-DwHIZzWo.js → CanvasimagevalueWidget-BhuUqLOo.js} +3 -3
- package/dist/{CanvasimagevalueWidget-DwHIZzWo.js.map → CanvasimagevalueWidget-BhuUqLOo.js.map} +1 -1
- package/dist/{CanvasimagevalueWidget-BL08pdLh.cjs → CanvasimagevalueWidget-DcoH1Rzz.cjs} +2 -2
- package/dist/{CanvasimagevalueWidget-BL08pdLh.cjs.map → CanvasimagevalueWidget-DcoH1Rzz.cjs.map} +1 -1
- package/dist/CanvaslabelWidget-DtvbgeYH.js +27 -0
- package/dist/CanvaslabelWidget-DtvbgeYH.js.map +1 -0
- package/dist/CanvaslabelWidget-wcraOzwr.cjs +2 -0
- package/dist/CanvaslabelWidget-wcraOzwr.cjs.map +1 -0
- package/dist/{CanvaslabelvalueWidget-D1-kZsi-.js → CanvaslabelvalueWidget-C_FRIeNb.js} +2 -2
- package/dist/{CanvaslabelvalueWidget-D1-kZsi-.js.map → CanvaslabelvalueWidget-C_FRIeNb.js.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-BhL55tjO.cjs → CanvaslabelvalueWidget-CkkDoL8i.cjs} +2 -2
- package/dist/{CanvaslabelvalueWidget-BhL55tjO.cjs.map → CanvaslabelvalueWidget-CkkDoL8i.cjs.map} +1 -1
- package/dist/{CanvaslineWidget-Din8LMyF.js → CanvaslineWidget-D1K_6mAY.js} +2 -2
- package/dist/{CanvaslineWidget-Din8LMyF.js.map → CanvaslineWidget-D1K_6mAY.js.map} +1 -1
- package/dist/{CanvaslineWidget-DtkdP3Bb.cjs → CanvaslineWidget-Da1Bf4Df.cjs} +2 -2
- package/dist/{CanvaslineWidget-DtkdP3Bb.cjs.map → CanvaslineWidget-Da1Bf4Df.cjs.map} +1 -1
- package/dist/{CanvaslinevalueWidget-ELgzjZeY.cjs → CanvaslinevalueWidget-ChY93jQz.cjs} +2 -2
- package/dist/{CanvaslinevalueWidget-ELgzjZeY.cjs.map → CanvaslinevalueWidget-ChY93jQz.cjs.map} +1 -1
- package/dist/{CanvaslinevalueWidget-DOrasE2j.js → CanvaslinevalueWidget-D4eaxWhR.js} +2 -2
- package/dist/{CanvaslinevalueWidget-DOrasE2j.js.map → CanvaslinevalueWidget-D4eaxWhR.js.map} +1 -1
- package/dist/{CheckbuttonWidget-A07FryqU.js → CheckbuttonWidget-ByxMDkiS.js} +2 -2
- package/dist/{CheckbuttonWidget-A07FryqU.js.map → CheckbuttonWidget-ByxMDkiS.js.map} +1 -1
- package/dist/{CheckbuttonWidget-BFjaAmt-.cjs → CheckbuttonWidget-C1iDNOXO.cjs} +2 -2
- package/dist/{CheckbuttonWidget-BFjaAmt-.cjs.map → CheckbuttonWidget-C1iDNOXO.cjs.map} +1 -1
- package/dist/{ClassificationBanners-ClraI2Ns.js → ClassificationBanners-By6aaadq.js} +2 -2
- package/dist/{ClassificationBanners-ClraI2Ns.js.map → ClassificationBanners-By6aaadq.js.map} +1 -1
- package/dist/{ClassificationBanners-DCL0KBCW.cjs → ClassificationBanners-D0wqqFTp.cjs} +2 -2
- package/dist/{ClassificationBanners-DCL0KBCW.cjs.map → ClassificationBanners-D0wqqFTp.cjs.map} +1 -1
- package/dist/{ComboboxWidget-CqZ79bCh.cjs → ComboboxWidget-B6kRwkHm.cjs} +2 -2
- package/dist/{ComboboxWidget-CqZ79bCh.cjs.map → ComboboxWidget-B6kRwkHm.cjs.map} +1 -1
- package/dist/{ComboboxWidget-xayce-aY.js → ComboboxWidget-CAGxGv2r.js} +2 -2
- package/dist/{ComboboxWidget-xayce-aY.js.map → ComboboxWidget-CAGxGv2r.js.map} +1 -1
- package/dist/{CriticalCmdDialog-ne9rOh2L.js → CriticalCmdDialog-BOA6-qrE.js} +4 -4
- package/dist/{CriticalCmdDialog-ne9rOh2L.js.map → CriticalCmdDialog-BOA6-qrE.js.map} +1 -1
- package/dist/{CriticalCmdDialog-DmhxVXdn.cjs → CriticalCmdDialog-DB9iMK3r.cjs} +2 -2
- package/dist/{CriticalCmdDialog-DmhxVXdn.cjs.map → CriticalCmdDialog-DB9iMK3r.cjs.map} +1 -1
- package/dist/{DateWidget-xU2zuIE3.cjs → DateWidget-C3iCuWog.cjs} +2 -2
- package/dist/{DateWidget-xU2zuIE3.cjs.map → DateWidget-C3iCuWog.cjs.map} +1 -1
- package/dist/{DateWidget-DrYZJta_.js → DateWidget-DkNWx28s.js} +4 -4
- package/dist/{DateWidget-DrYZJta_.js.map → DateWidget-DkNWx28s.js.map} +1 -1
- package/dist/{DetailsDialog-V6X078bY.cjs → DetailsDialog-C0q3d_JF.cjs} +2 -2
- package/dist/{DetailsDialog-V6X078bY.cjs.map → DetailsDialog-C0q3d_JF.cjs.map} +1 -1
- package/dist/{DetailsDialog-CFCaJZWz.js → DetailsDialog-F4KgYM6m.js} +10 -10
- package/dist/{DetailsDialog-CFCaJZWz.js.map → DetailsDialog-F4KgYM6m.js.map} +1 -1
- package/dist/EventListDialog-CDZFdKNU.cjs +2 -0
- package/dist/EventListDialog-CDZFdKNU.cjs.map +1 -0
- package/dist/{EventListDialog-CIc8RCyY.js → EventListDialog-g0Y3PS7i.js} +26 -23
- package/dist/EventListDialog-g0Y3PS7i.js.map +1 -0
- package/dist/{FilechecksumWidget-CTf0XGST.js → FilechecksumWidget-DSfNEnDJ.js} +6 -6
- package/dist/{FilechecksumWidget-CTf0XGST.js.map → FilechecksumWidget-DSfNEnDJ.js.map} +1 -1
- package/dist/{FilechecksumWidget-JeWqA6dh.cjs → FilechecksumWidget-DxpkQwol.cjs} +2 -2
- package/dist/{FilechecksumWidget-JeWqA6dh.cjs.map → FilechecksumWidget-DxpkQwol.cjs.map} +1 -1
- package/dist/{FiledisplayWidget-DLJuesmU.js → FiledisplayWidget-D2cxMmrP.js} +5 -5
- package/dist/{FiledisplayWidget-DLJuesmU.js.map → FiledisplayWidget-D2cxMmrP.js.map} +1 -1
- package/dist/{FiledisplayWidget-B6XFz4P6.cjs → FiledisplayWidget-DZ186686.cjs} +2 -2
- package/dist/{FiledisplayWidget-B6XFz4P6.cjs.map → FiledisplayWidget-DZ186686.cjs.map} +1 -1
- package/dist/{FormatvalueWidget-DODmUWPH.js → FormatvalueWidget-6-bj_PJO.js} +3 -3
- package/dist/{FormatvalueWidget-DODmUWPH.js.map → FormatvalueWidget-6-bj_PJO.js.map} +1 -1
- package/dist/{FormatvalueWidget-DHHKnH8A.cjs → FormatvalueWidget-DYvEvnXQ.cjs} +2 -2
- package/dist/{FormatvalueWidget-DHHKnH8A.cjs.map → FormatvalueWidget-DYvEvnXQ.cjs.map} +1 -1
- package/dist/{Graph-Cwghj5Pc.js → Graph-Cz0Ns1FD.js} +9 -9
- package/dist/{Graph-Cwghj5Pc.js.map → Graph-Cz0Ns1FD.js.map} +1 -1
- package/dist/{Graph-BtMRutcx.cjs → Graph-Dz9GecGm.cjs} +2 -2
- package/dist/{Graph-BtMRutcx.cjs.map → Graph-Dz9GecGm.cjs.map} +1 -1
- package/dist/{GraphWidget-Rc-fnHCt.js → GraphWidget-COXK3Dab.js} +5 -5
- package/dist/{GraphWidget-Rc-fnHCt.js.map → GraphWidget-COXK3Dab.js.map} +1 -1
- package/dist/{GraphWidget-CROq9BtI.cjs → GraphWidget-Duz0GLrA.cjs} +2 -2
- package/dist/{GraphWidget-CROq9BtI.cjs.map → GraphWidget-Duz0GLrA.cjs.map} +1 -1
- package/dist/{HorizontalWidget-CZqN6UYp.js → HorizontalWidget-C9UFBPsk.js} +2 -2
- package/dist/{HorizontalWidget-CZqN6UYp.js.map → HorizontalWidget-C9UFBPsk.js.map} +1 -1
- package/dist/{HorizontalWidget-TdOhYEM1.cjs → HorizontalWidget-DXqgBfii.cjs} +2 -2
- package/dist/{HorizontalWidget-TdOhYEM1.cjs.map → HorizontalWidget-DXqgBfii.cjs.map} +1 -1
- package/dist/{HorizontalboxWidget-JzKHl3o_.cjs → HorizontalboxWidget-B-7LJM-K.cjs} +2 -2
- package/dist/{HorizontalboxWidget-JzKHl3o_.cjs.map → HorizontalboxWidget-B-7LJM-K.cjs.map} +1 -1
- package/dist/{HorizontalboxWidget-BV7cyhwN.js → HorizontalboxWidget-CWLfmRtr.js} +5 -5
- package/dist/{HorizontalboxWidget-BV7cyhwN.js.map → HorizontalboxWidget-CWLfmRtr.js.map} +1 -1
- package/dist/{HorizontallineWidget-Bln3Q-pv.cjs → HorizontallineWidget-CQ_PbiXH.cjs} +2 -2
- package/dist/{HorizontallineWidget-Bln3Q-pv.cjs.map → HorizontallineWidget-CQ_PbiXH.cjs.map} +1 -1
- package/dist/{HorizontallineWidget-ChDLR_8D.js → HorizontallineWidget-DeFkOaYO.js} +2 -2
- package/dist/{HorizontallineWidget-ChDLR_8D.js.map → HorizontallineWidget-DeFkOaYO.js.map} +1 -1
- package/dist/{IframeWidget-DmCr3YW6.cjs → IframeWidget-BAIs-bzc.cjs} +2 -2
- package/dist/{IframeWidget-DmCr3YW6.cjs.map → IframeWidget-BAIs-bzc.cjs.map} +1 -1
- package/dist/{IframeWidget-BdOS5sm_.js → IframeWidget-Bn9eGzrq.js} +2 -2
- package/dist/{IframeWidget-BdOS5sm_.js.map → IframeWidget-Bn9eGzrq.js.map} +1 -1
- package/dist/{ImageLoader-D0-l7mY3.cjs → ImageLoader-C8ZJSOzF.cjs} +2 -2
- package/dist/{ImageLoader-D0-l7mY3.cjs.map → ImageLoader-C8ZJSOzF.cjs.map} +1 -1
- package/dist/{ImageLoader-CnlQ4xLd.js → ImageLoader-_gAudhVo.js} +2 -2
- package/dist/{ImageLoader-CnlQ4xLd.js.map → ImageLoader-_gAudhVo.js.map} +1 -1
- package/dist/{ImageviewerWidget-B-TRYlMs.cjs → ImageviewerWidget-BDxMpWzy.cjs} +2 -2
- package/dist/{ImageviewerWidget-B-TRYlMs.cjs.map → ImageviewerWidget-BDxMpWzy.cjs.map} +1 -1
- package/dist/{ImageviewerWidget-DoJBe5eZ.js → ImageviewerWidget-BUWhF32Z.js} +2 -2
- package/dist/{ImageviewerWidget-DoJBe5eZ.js.map → ImageviewerWidget-BUWhF32Z.js.map} +1 -1
- package/dist/{InterfacesTab-CITUnMac.js → InterfacesTab-CZsnR6xB.js} +4 -4
- package/dist/{InterfacesTab-CITUnMac.js.map → InterfacesTab-CZsnR6xB.js.map} +1 -1
- package/dist/{InterfacesTab-CIg-DS_I.cjs → InterfacesTab-oFTUZfti.cjs} +2 -2
- package/dist/{InterfacesTab-CIg-DS_I.cjs.map → InterfacesTab-oFTUZfti.cjs.map} +1 -1
- package/dist/{LabelWidget-DYwcB_S4.js → LabelWidget-BhzkN06D.js} +2 -2
- package/dist/{LabelWidget-DYwcB_S4.js.map → LabelWidget-BhzkN06D.js.map} +1 -1
- package/dist/{LabelWidget-B695rUxB.cjs → LabelWidget-agzCO9Rx.cjs} +2 -2
- package/dist/{LabelWidget-B695rUxB.cjs.map → LabelWidget-agzCO9Rx.cjs.map} +1 -1
- package/dist/{LabelledWidget-ubrlqe_n.cjs → LabelledWidget-CmlB3Yd-.cjs} +2 -2
- package/dist/{LabelledWidget-ubrlqe_n.cjs.map → LabelledWidget-CmlB3Yd-.cjs.map} +1 -1
- package/dist/{LabelledWidget-D4N2gPxJ.js → LabelledWidget-vx8NvW1b.js} +4 -4
- package/dist/{LabelledWidget-D4N2gPxJ.js.map → LabelledWidget-vx8NvW1b.js.map} +1 -1
- package/dist/{LabelprogressbarWidget-y__BgVQk.cjs → LabelprogressbarWidget-BB-420i0.cjs} +2 -2
- package/dist/{LabelprogressbarWidget-y__BgVQk.cjs.map → LabelprogressbarWidget-BB-420i0.cjs.map} +1 -1
- package/dist/{LabelprogressbarWidget-CRnteLAo.js → LabelprogressbarWidget-t5PvKuS4.js} +4 -4
- package/dist/{LabelprogressbarWidget-CRnteLAo.js.map → LabelprogressbarWidget-t5PvKuS4.js.map} +1 -1
- package/dist/{LabelsparklineWidget-B7h0ndrm.cjs → LabelsparklineWidget-CGg51THo.cjs} +2 -2
- package/dist/{LabelsparklineWidget-B7h0ndrm.cjs.map → LabelsparklineWidget-CGg51THo.cjs.map} +1 -1
- package/dist/{LabelsparklineWidget-Bbjjio1S.js → LabelsparklineWidget-CebbEH-j.js} +4 -4
- package/dist/{LabelsparklineWidget-Bbjjio1S.js.map → LabelsparklineWidget-CebbEH-j.js.map} +1 -1
- package/dist/{LabelvalueWidget-Bc6HtTMO.js → LabelvalueWidget-Cbs1DBK2.js} +4 -4
- package/dist/{LabelvalueWidget-Bc6HtTMO.js.map → LabelvalueWidget-Cbs1DBK2.js.map} +1 -1
- package/dist/{LabelvalueWidget-BE8r18n2.cjs → LabelvalueWidget-xIp1W4ZB.cjs} +2 -2
- package/dist/{LabelvalueWidget-BE8r18n2.cjs.map → LabelvalueWidget-xIp1W4ZB.cjs.map} +1 -1
- package/dist/{LabelvaluedescWidget-D5aDNr1o.js → LabelvaluedescWidget-B7OIOGc0.js} +5 -5
- package/dist/{LabelvaluedescWidget-D5aDNr1o.js.map → LabelvaluedescWidget-B7OIOGc0.js.map} +1 -1
- package/dist/{LabelvaluedescWidget-CEZeqLAB.cjs → LabelvaluedescWidget-DE5cZcfN.cjs} +2 -2
- package/dist/{LabelvaluedescWidget-CEZeqLAB.cjs.map → LabelvaluedescWidget-DE5cZcfN.cjs.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-CMnJoNKz.js → LabelvaluelimitsbarWidget-C57kf-oQ.js} +4 -4
- package/dist/{LabelvaluelimitsbarWidget-CMnJoNKz.js.map → LabelvaluelimitsbarWidget-C57kf-oQ.js.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-BhLZsBy5.cjs → LabelvaluelimitsbarWidget-RlJt1ReS.cjs} +2 -2
- package/dist/{LabelvaluelimitsbarWidget-BhLZsBy5.cjs.map → LabelvaluelimitsbarWidget-RlJt1ReS.cjs.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-7MEUPhe4.cjs → LabelvaluelimitscolumnWidget-B-TbUVpY.cjs} +2 -2
- package/dist/{LabelvaluelimitscolumnWidget-7MEUPhe4.cjs.map → LabelvaluelimitscolumnWidget-B-TbUVpY.cjs.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-R5ofG4q1.js → LabelvaluelimitscolumnWidget-BRlNDEqp.js} +5 -5
- package/dist/{LabelvaluelimitscolumnWidget-R5ofG4q1.js.map → LabelvaluelimitscolumnWidget-BRlNDEqp.js.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-49fO9s25.cjs → LabelvaluerangebarWidget-BK08A6_N.cjs} +2 -2
- package/dist/{LabelvaluerangebarWidget-49fO9s25.cjs.map → LabelvaluerangebarWidget-BK08A6_N.cjs.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-Qa3R2_4p.js → LabelvaluerangebarWidget-Pt_evm3v.js} +4 -4
- package/dist/{LabelvaluerangebarWidget-Qa3R2_4p.js.map → LabelvaluerangebarWidget-Pt_evm3v.js.map} +1 -1
- package/dist/{Layout-BBLYT0gE.js → Layout-CKmC50QZ.js} +2 -2
- package/dist/{Layout-BBLYT0gE.js.map → Layout-CKmC50QZ.js.map} +1 -1
- package/dist/{Layout-CilReWuB.cjs → Layout-CkSElGRo.cjs} +2 -2
- package/dist/{Layout-CilReWuB.cjs.map → Layout-CkSElGRo.cjs.map} +1 -1
- package/dist/{LedWidget-CL2dOxb7.js → LedWidget-D1lmNXpi.js} +5 -5
- package/dist/{LedWidget-CL2dOxb7.js.map → LedWidget-D1lmNXpi.js.map} +1 -1
- package/dist/{LedWidget-CioTReXJ.cjs → LedWidget-DaFZrKbt.cjs} +2 -2
- package/dist/{LedWidget-CioTReXJ.cjs.map → LedWidget-DaFZrKbt.cjs.map} +1 -1
- package/dist/{LimitsBar-Akh9OBX8.cjs → LimitsBar-Bkv0A0XE.cjs} +2 -2
- package/dist/{LimitsBar-Akh9OBX8.cjs.map → LimitsBar-Bkv0A0XE.cjs.map} +1 -1
- package/dist/{LimitsBar-59_qNqi8.js → LimitsBar-D5IZu7eX.js} +2 -2
- package/dist/{LimitsBar-59_qNqi8.js.map → LimitsBar-D5IZu7eX.js.map} +1 -1
- package/dist/{LimitsbarWidget-Bs2svA1K.cjs → LimitsbarWidget-B_cIeVXW.cjs} +2 -2
- package/dist/{LimitsbarWidget-Bs2svA1K.cjs.map → LimitsbarWidget-B_cIeVXW.cjs.map} +1 -1
- package/dist/{LimitsbarWidget-C0N2611W.js → LimitsbarWidget-VpxQXE-e.js} +3 -3
- package/dist/{LimitsbarWidget-C0N2611W.js.map → LimitsbarWidget-VpxQXE-e.js.map} +1 -1
- package/dist/{LimitscolorWidget-GfNCPo3i.js → LimitscolorWidget-79P41CX7.js} +5 -5
- package/dist/{LimitscolorWidget-GfNCPo3i.js.map → LimitscolorWidget-79P41CX7.js.map} +1 -1
- package/dist/{LimitscolorWidget-G_3Sc7Y3.cjs → LimitscolorWidget-z2tnAyFH.cjs} +2 -2
- package/dist/{LimitscolorWidget-G_3Sc7Y3.cjs.map → LimitscolorWidget-z2tnAyFH.cjs.map} +1 -1
- package/dist/{LimitscolumnWidget-ut6NX68S.js → LimitscolumnWidget-BFDXhJeZ.js} +2 -2
- package/dist/{LimitscolumnWidget-ut6NX68S.js.map → LimitscolumnWidget-BFDXhJeZ.js.map} +1 -1
- package/dist/{LimitscolumnWidget-B3OcZYau.cjs → LimitscolumnWidget-ClnN8sMJ.cjs} +2 -2
- package/dist/{LimitscolumnWidget-B3OcZYau.cjs.map → LimitscolumnWidget-ClnN8sMJ.cjs.map} +1 -1
- package/dist/{LinegraphWidget-BDda9hjY.cjs → LinegraphWidget-C-yffvsK.cjs} +2 -2
- package/dist/{LinegraphWidget-BDda9hjY.cjs.map → LinegraphWidget-C-yffvsK.cjs.map} +1 -1
- package/dist/{LinegraphWidget-DaCyvdnI.js → LinegraphWidget-VqkpOlws.js} +5 -5
- package/dist/{LinegraphWidget-DaCyvdnI.js.map → LinegraphWidget-VqkpOlws.js.map} +1 -1
- package/dist/{MatrixbycolumnsWidget-Cni63alW.js → MatrixbycolumnsWidget--ihvirDP.js} +3 -3
- package/dist/{MatrixbycolumnsWidget-Cni63alW.js.map → MatrixbycolumnsWidget--ihvirDP.js.map} +1 -1
- package/dist/{MatrixbycolumnsWidget-DibzZkF7.cjs → MatrixbycolumnsWidget-DGqVDsdg.cjs} +2 -2
- package/dist/{MatrixbycolumnsWidget-DibzZkF7.cjs.map → MatrixbycolumnsWidget-DGqVDsdg.cjs.map} +1 -1
- package/dist/{MicroservicesTab-CV_35ag8.cjs → MicroservicesTab-BEGNdUG3.cjs} +3 -3
- package/dist/{MicroservicesTab-CV_35ag8.cjs.map → MicroservicesTab-BEGNdUG3.cjs.map} +1 -1
- package/dist/{MicroservicesTab-gCXt9Jlh.js → MicroservicesTab-CQPpb7j1.js} +15 -15
- package/dist/{MicroservicesTab-gCXt9Jlh.js.map → MicroservicesTab-CQPpb7j1.js.map} +1 -1
- package/dist/{OpenC3TimePicker-WVlNQdKk.js → OpenC3TimePicker-B0lAIU91.js} +3 -3
- package/dist/{OpenC3TimePicker-WVlNQdKk.js.map → OpenC3TimePicker-B0lAIU91.js.map} +1 -1
- package/dist/{OpenC3TimePicker-BAzvaP-g.cjs → OpenC3TimePicker-DXhyDkOv.cjs} +2 -2
- package/dist/{OpenC3TimePicker-BAzvaP-g.cjs.map → OpenC3TimePicker-DXhyDkOv.cjs.map} +1 -1
- package/dist/{Openc3Screen-GLWnn7RG.cjs → Openc3Screen-051vwmN8.cjs} +5 -5
- package/dist/{Openc3Screen-GLWnn7RG.cjs.map → Openc3Screen-051vwmN8.cjs.map} +1 -1
- package/dist/{Openc3Screen-C4DL3LBY.js → Openc3Screen-Bew5BPgc.js} +8 -8
- package/dist/{Openc3Screen-C4DL3LBY.js.map → Openc3Screen-Bew5BPgc.js.map} +1 -1
- package/dist/{OutputDialog-DN4Qy6LH.cjs → OutputDialog-CgnRA-f-.cjs} +2 -2
- package/dist/{OutputDialog-DN4Qy6LH.cjs.map → OutputDialog-CgnRA-f-.cjs.map} +1 -1
- package/dist/{OutputDialog-wOewjnk2.js → OutputDialog-DtrpwjGL.js} +3 -3
- package/dist/{OutputDialog-wOewjnk2.js.map → OutputDialog-DtrpwjGL.js.map} +1 -1
- package/dist/{PackagesTab-D6UNkpw9.cjs → PackagesTab-BBFiRQN-.cjs} +2 -2
- package/dist/{PackagesTab-D6UNkpw9.cjs.map → PackagesTab-BBFiRQN-.cjs.map} +1 -1
- package/dist/{PackagesTab-DmsuQSmU.js → PackagesTab-DQ5s3nfh.js} +21 -21
- package/dist/{PackagesTab-DmsuQSmU.js.map → PackagesTab-DQ5s3nfh.js.map} +1 -1
- package/dist/{PluginsTab-CLQ0EbDl.js → PluginsTab-1tlTx4k1.js} +7 -7
- package/dist/{PluginsTab-CLQ0EbDl.js.map → PluginsTab-1tlTx4k1.js.map} +1 -1
- package/dist/{PluginsTab-D_cFEd7L.cjs → PluginsTab-DN_iK1D9.cjs} +4 -4
- package/dist/{PluginsTab-D_cFEd7L.cjs.map → PluginsTab-DN_iK1D9.cjs.map} +1 -1
- package/dist/{ProgressbarWidget-CYyOjBLI.cjs → ProgressbarWidget-B-ScYWwv.cjs} +2 -2
- package/dist/{ProgressbarWidget-CYyOjBLI.cjs.map → ProgressbarWidget-B-ScYWwv.cjs.map} +1 -1
- package/dist/{ProgressbarWidget-BWqCsk87.js → ProgressbarWidget-BIB3r9SL.js} +2 -2
- package/dist/{ProgressbarWidget-BWqCsk87.js.map → ProgressbarWidget-BIB3r9SL.js.map} +1 -1
- package/dist/{RadiobuttonWidget-Dza2r34f.js → RadiobuttonWidget-C5rxLM7K.js} +2 -2
- package/dist/{RadiobuttonWidget-Dza2r34f.js.map → RadiobuttonWidget-C5rxLM7K.js.map} +1 -1
- package/dist/{RadiobuttonWidget-zyCcviRt.cjs → RadiobuttonWidget-EBzI13by.cjs} +2 -2
- package/dist/{RadiobuttonWidget-zyCcviRt.cjs.map → RadiobuttonWidget-EBzI13by.cjs.map} +1 -1
- package/dist/{RadiogroupWidget-BK-b4dDV.cjs → RadiogroupWidget-BnT62bxt.cjs} +2 -2
- package/dist/{RadiogroupWidget-BK-b4dDV.cjs.map → RadiogroupWidget-BnT62bxt.cjs.map} +1 -1
- package/dist/{RadiogroupWidget-DWmZMNmr.js → RadiogroupWidget-CciTCv1U.js} +2 -2
- package/dist/{RadiogroupWidget-DWmZMNmr.js.map → RadiogroupWidget-CciTCv1U.js.map} +1 -1
- package/dist/{RangebarWidget-BKTLrzKd.cjs → RangebarWidget-Can_BQBL.cjs} +2 -2
- package/dist/{RangebarWidget-BKTLrzKd.cjs.map → RangebarWidget-Can_BQBL.cjs.map} +1 -1
- package/dist/{RangebarWidget-DsGCC1x7.js → RangebarWidget-MPQYi2Km.js} +2 -2
- package/dist/{RangebarWidget-DsGCC1x7.js.map → RangebarWidget-MPQYi2Km.js.map} +1 -1
- package/dist/{RedisTab-2wFbDYIY.cjs → RedisTab-Bkj57lOf.cjs} +2 -2
- package/dist/{RedisTab-2wFbDYIY.cjs.map → RedisTab-Bkj57lOf.cjs.map} +1 -1
- package/dist/{RedisTab-9hUKvLT7.js → RedisTab-DAeGow_e.js} +2 -2
- package/dist/{RedisTab-9hUKvLT7.js.map → RedisTab-DAeGow_e.js.map} +1 -1
- package/dist/{RollupWidget-DGElKXm3.js → RollupWidget-CfjGAhzg.js} +2 -2
- package/dist/{RollupWidget-DGElKXm3.js.map → RollupWidget-CfjGAhzg.js.map} +1 -1
- package/dist/{RollupWidget-B7x7pcGm.cjs → RollupWidget-IDDWGLom.cjs} +2 -2
- package/dist/{RollupWidget-B7x7pcGm.cjs.map → RollupWidget-IDDWGLom.cjs.map} +1 -1
- package/dist/{RoutersTab-PRDpocd3.cjs → RoutersTab-BtfVCL1C.cjs} +2 -2
- package/dist/{RoutersTab-PRDpocd3.cjs.map → RoutersTab-BtfVCL1C.cjs.map} +1 -1
- package/dist/{RoutersTab-Dpq_F5it.js → RoutersTab-G4WKtUOo.js} +4 -4
- package/dist/{RoutersTab-Dpq_F5it.js.map → RoutersTab-G4WKtUOo.js.map} +1 -1
- package/dist/{ScriptChooser-BIPvMV1Z.cjs → ScriptChooser-B6qtMbkx.cjs} +2 -2
- package/dist/{ScriptChooser-BIPvMV1Z.cjs.map → ScriptChooser-B6qtMbkx.cjs.map} +1 -1
- package/dist/{ScriptChooser-DSb-nUOY.js → ScriptChooser-BwYB6FOa.js} +16 -16
- package/dist/{ScriptChooser-DSb-nUOY.js.map → ScriptChooser-BwYB6FOa.js.map} +1 -1
- package/dist/{ScrollwindowWidget-CxCp6zl7.cjs → ScrollwindowWidget-BPTaWCGg.cjs} +2 -2
- package/dist/{ScrollwindowWidget-CxCp6zl7.cjs.map → ScrollwindowWidget-BPTaWCGg.cjs.map} +1 -1
- package/dist/{ScrollwindowWidget-BvKT59rV.js → ScrollwindowWidget-CupaygNN.js} +2 -2
- package/dist/{ScrollwindowWidget-BvKT59rV.js.map → ScrollwindowWidget-CupaygNN.js.map} +1 -1
- package/dist/{SecretsTab-DAZeb63H.js → SecretsTab-C9xAxuwO.js} +4 -4
- package/dist/{SecretsTab-DAZeb63H.js.map → SecretsTab-C9xAxuwO.js.map} +1 -1
- package/dist/{SecretsTab-CY-73DBl.cjs → SecretsTab-CRC8DUz8.cjs} +2 -2
- package/dist/{SecretsTab-CY-73DBl.cjs.map → SecretsTab-CRC8DUz8.cjs.map} +1 -1
- package/dist/{SettingsTab-CHcHYnay.js → SettingsTab-BUdeAh4o.js} +5 -5
- package/dist/{SettingsTab-CHcHYnay.js.map → SettingsTab-BUdeAh4o.js.map} +1 -1
- package/dist/{SettingsTab-BBi3rofi.cjs → SettingsTab-CXoTKykc.cjs} +2 -2
- package/dist/{SettingsTab-BBi3rofi.cjs.map → SettingsTab-CXoTKykc.cjs.map} +1 -1
- package/dist/{SignalWidget-NxN9VFAv.cjs → SignalWidget-BbXnGcy9.cjs} +2 -2
- package/dist/{SignalWidget-NxN9VFAv.cjs.map → SignalWidget-BbXnGcy9.cjs.map} +1 -1
- package/dist/{SignalWidget-DRAFunW0.js → SignalWidget-C-qecoTO.js} +2 -2
- package/dist/{SignalWidget-DRAFunW0.js.map → SignalWidget-C-qecoTO.js.map} +1 -1
- package/dist/{SimpleTextDialog-B9KuFMP5.cjs → SimpleTextDialog-5wMXYOXj.cjs} +2 -2
- package/dist/{SimpleTextDialog-B9KuFMP5.cjs.map → SimpleTextDialog-5wMXYOXj.cjs.map} +1 -1
- package/dist/{SimpleTextDialog-B7XASoZh.js → SimpleTextDialog-C-0ZC2bs.js} +2 -2
- package/dist/{SimpleTextDialog-B7XASoZh.js.map → SimpleTextDialog-C-0ZC2bs.js.map} +1 -1
- package/dist/{SpacerWidget-DnRV7NSQ.cjs → SpacerWidget-BSJsjARt.cjs} +2 -2
- package/dist/{SpacerWidget-DnRV7NSQ.cjs.map → SpacerWidget-BSJsjARt.cjs.map} +1 -1
- package/dist/{SpacerWidget-CUGpXBpA.js → SpacerWidget-VVkOCb6N.js} +2 -2
- package/dist/{SpacerWidget-CUGpXBpA.js.map → SpacerWidget-VVkOCb6N.js.map} +1 -1
- package/dist/{SparklineWidget-XWxWkTZw.cjs → SparklineWidget-COGPJfbo.cjs} +2 -2
- package/dist/{SparklineWidget-XWxWkTZw.cjs.map → SparklineWidget-COGPJfbo.cjs.map} +1 -1
- package/dist/{SparklineWidget-SBWjRrqq.js → SparklineWidget-Dsmn38z_.js} +5 -5
- package/dist/{SparklineWidget-SBWjRrqq.js.map → SparklineWidget-Dsmn38z_.js.map} +1 -1
- package/dist/{TabbookWidget-yfZK_n_2.cjs → TabbookWidget-B2geV2Qi.cjs} +2 -2
- package/dist/{TabbookWidget-yfZK_n_2.cjs.map → TabbookWidget-B2geV2Qi.cjs.map} +1 -1
- package/dist/{TabbookWidget-7l6fPoRA.js → TabbookWidget-CXklff-l.js} +2 -2
- package/dist/{TabbookWidget-7l6fPoRA.js.map → TabbookWidget-CXklff-l.js.map} +1 -1
- package/dist/{TargetPacketItemChooser-QPHy-p2u.js → TargetPacketItemChooser-DDHuygCl.js} +3 -3
- package/dist/{TargetPacketItemChooser-QPHy-p2u.js.map → TargetPacketItemChooser-DDHuygCl.js.map} +1 -1
- package/dist/{TargetPacketItemChooser-CvDABqt7.cjs → TargetPacketItemChooser-DgO3VgdY.cjs} +2 -2
- package/dist/{TargetPacketItemChooser-CvDABqt7.cjs.map → TargetPacketItemChooser-DgO3VgdY.cjs.map} +1 -1
- package/dist/{TargetsTab-DcHwCcSU.js → TargetsTab-Ci4cOsIa.js} +13 -13
- package/dist/{TargetsTab-DcHwCcSU.js.map → TargetsTab-Ci4cOsIa.js.map} +1 -1
- package/dist/{TargetsTab-GpduFeiA.cjs → TargetsTab-DSSFGLD_.cjs} +2 -2
- package/dist/{TargetsTab-GpduFeiA.cjs.map → TargetsTab-DSSFGLD_.cjs.map} +1 -1
- package/dist/{TextboxWidget-CcvPtdyE.cjs → TextboxWidget-B9vBiTFU.cjs} +2 -2
- package/dist/{TextboxWidget-CcvPtdyE.cjs.map → TextboxWidget-B9vBiTFU.cjs.map} +1 -1
- package/dist/{TextboxWidget-Qb0TNt4Y.js → TextboxWidget-CHs2VYIv.js} +5 -5
- package/dist/{TextboxWidget-Qb0TNt4Y.js.map → TextboxWidget-CHs2VYIv.js.map} +1 -1
- package/dist/{TextfieldWidget-D5v1Endh.cjs → TextfieldWidget-CHf6ER_G.cjs} +2 -2
- package/dist/{TextfieldWidget-D5v1Endh.cjs.map → TextfieldWidget-CHf6ER_G.cjs.map} +1 -1
- package/dist/{TextfieldWidget-DcSGRfnF.js → TextfieldWidget-CdANAW-6.js} +2 -2
- package/dist/{TextfieldWidget-DcSGRfnF.js.map → TextfieldWidget-CdANAW-6.js.map} +1 -1
- package/dist/{TimeWidget-j18gWgF-.cjs → TimeWidget-C8Za7zUx.cjs} +2 -2
- package/dist/{TimeWidget-j18gWgF-.cjs.map → TimeWidget-C8Za7zUx.cjs.map} +1 -1
- package/dist/{TimeWidget-aoMkDgRR.js → TimeWidget-D0xT1wXR.js} +5 -5
- package/dist/{TimeWidget-aoMkDgRR.js.map → TimeWidget-D0xT1wXR.js.map} +1 -1
- package/dist/{TitleWidget-C8b9Vp5r.js → TitleWidget-68NWCcXB.js} +2 -2
- package/dist/{TitleWidget-C8b9Vp5r.js.map → TitleWidget-68NWCcXB.js.map} +1 -1
- package/dist/{TitleWidget-CNZqa48C.cjs → TitleWidget-D0PYh7V7.cjs} +2 -2
- package/dist/{TitleWidget-CNZqa48C.cjs.map → TitleWidget-D0PYh7V7.cjs.map} +1 -1
- package/dist/{ToolsTab-MCjy5Bf6.js → ToolsTab-BCvmMDIZ.js} +4 -4
- package/dist/{ToolsTab-MCjy5Bf6.js.map → ToolsTab-BCvmMDIZ.js.map} +1 -1
- package/dist/{ToolsTab-C7ldaGOD.cjs → ToolsTab-UwVIeP-J.cjs} +2 -2
- package/dist/{ToolsTab-C7ldaGOD.cjs.map → ToolsTab-UwVIeP-J.cjs.map} +1 -1
- package/dist/{TopBar-Dv9AvR6L.cjs → TopBar-BhrJBXut.cjs} +2 -2
- package/dist/{TopBar-Dv9AvR6L.cjs.map → TopBar-BhrJBXut.cjs.map} +1 -1
- package/dist/{TopBar-S3ydRxjf.js → TopBar-Cg0kJvmG.js} +2 -2
- package/dist/{TopBar-S3ydRxjf.js.map → TopBar-Cg0kJvmG.js.map} +1 -1
- package/dist/{TsdbTab-4OaejSum.js → TsdbTab-BytqwnkN.js} +2 -2
- package/dist/{TsdbTab-4OaejSum.js.map → TsdbTab-BytqwnkN.js.map} +1 -1
- package/dist/{TsdbTab-d1l9Ak2R.cjs → TsdbTab-DatsFS_R.cjs} +2 -2
- package/dist/{TsdbTab-d1l9Ak2R.cjs.map → TsdbTab-DatsFS_R.cjs.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog-CkHl-BAB.js → UpgradeToEnterpriseDialog-B0lZup6_.js} +2 -2
- package/dist/{UpgradeToEnterpriseDialog-CkHl-BAB.js.map → UpgradeToEnterpriseDialog-B0lZup6_.js.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog-Cd1ulQkq.cjs → UpgradeToEnterpriseDialog-BFhTiNXm.cjs} +2 -2
- package/dist/{UpgradeToEnterpriseDialog-Cd1ulQkq.cjs.map → UpgradeToEnterpriseDialog-BFhTiNXm.cjs.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_c790a82f_lang-hv0QWZ6Z.cjs → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_c790a82f_lang-DOidODWT.cjs} +76 -76
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_c790a82f_lang-hv0QWZ6Z.cjs.map → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_c790a82f_lang-DOidODWT.cjs.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_c790a82f_lang-C6eLx1ow.js → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_c790a82f_lang-JHbHqvBt.js} +1862 -1862
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_c790a82f_lang-C6eLx1ow.js.map → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_c790a82f_lang-JHbHqvBt.js.map} +1 -1
- package/dist/{VWidget-CMHOOByt.cjs → VWidget-BZqlpdEk.cjs} +2 -2
- package/dist/{VWidget-CMHOOByt.cjs.map → VWidget-BZqlpdEk.cjs.map} +1 -1
- package/dist/{VWidget-BgNciXK1.js → VWidget-oMbywhLA.js} +5 -5
- package/dist/{VWidget-BgNciXK1.js.map → VWidget-oMbywhLA.js.map} +1 -1
- package/dist/{ValueWidget-B1OvCmXK.js → ValueWidget-B1aGUBP7.js} +5 -5
- package/dist/{ValueWidget-B1OvCmXK.js.map → ValueWidget-B1aGUBP7.js.map} +1 -1
- package/dist/{ValueWidget-C3T9tAUT.cjs → ValueWidget-CuMPXR-z.cjs} +2 -2
- package/dist/{ValueWidget-C3T9tAUT.cjs.map → ValueWidget-CuMPXR-z.cjs.map} +1 -1
- package/dist/{ValuelimitsbarWidget-CUd9P_Xg.js → ValuelimitsbarWidget-B7KcRjLS.js} +4 -4
- package/dist/{ValuelimitsbarWidget-CUd9P_Xg.js.map → ValuelimitsbarWidget-B7KcRjLS.js.map} +1 -1
- package/dist/{ValuelimitsbarWidget-DzJYkWOa.cjs → ValuelimitsbarWidget-elJnDGWA.cjs} +2 -2
- package/dist/{ValuelimitsbarWidget-DzJYkWOa.cjs.map → ValuelimitsbarWidget-elJnDGWA.cjs.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-CbThSMma.js → ValuelimitscolumnWidget-BVt6nLXq.js} +4 -4
- package/dist/{ValuelimitscolumnWidget-CbThSMma.js.map → ValuelimitscolumnWidget-BVt6nLXq.js.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-Dx_im9Qk.cjs → ValuelimitscolumnWidget-DyQjC-h-.cjs} +2 -2
- package/dist/{ValuelimitscolumnWidget-Dx_im9Qk.cjs.map → ValuelimitscolumnWidget-DyQjC-h-.cjs.map} +1 -1
- package/dist/{ValuerangebarWidget-C8n2hb3N.cjs → ValuerangebarWidget-E1xvTwhi.cjs} +2 -2
- package/dist/{ValuerangebarWidget-C8n2hb3N.cjs.map → ValuerangebarWidget-E1xvTwhi.cjs.map} +1 -1
- package/dist/{ValuerangebarWidget-DjL4ze3d.js → ValuerangebarWidget-uVZEI32U.js} +4 -4
- package/dist/{ValuerangebarWidget-DjL4ze3d.js.map → ValuerangebarWidget-uVZEI32U.js.map} +1 -1
- package/dist/{VerticalWidget-C81rZFvu.cjs → VerticalWidget-BxL_5yEC.cjs} +2 -2
- package/dist/{VerticalWidget-C81rZFvu.cjs.map → VerticalWidget-BxL_5yEC.cjs.map} +1 -1
- package/dist/{VerticalWidget-V5-vGq7l.js → VerticalWidget-DlftYBjH.js} +2 -2
- package/dist/{VerticalWidget-V5-vGq7l.js.map → VerticalWidget-DlftYBjH.js.map} +1 -1
- package/dist/{VerticalboxWidget-DQerkhfd.cjs → VerticalboxWidget-BHP0SPpV.cjs} +2 -2
- package/dist/{VerticalboxWidget-DQerkhfd.cjs.map → VerticalboxWidget-BHP0SPpV.cjs.map} +1 -1
- package/dist/{VerticalboxWidget-OigMLjH8.js → VerticalboxWidget-C7RrkfY0.js} +5 -5
- package/dist/{VerticalboxWidget-OigMLjH8.js.map → VerticalboxWidget-C7RrkfY0.js.map} +1 -1
- package/dist/{Widget-BiaunQ83.js → Widget-D_HaosJK.js} +3 -3
- package/dist/{Widget-BiaunQ83.js.map → Widget-D_HaosJK.js.map} +1 -1
- package/dist/{Widget-D23R5IBP.cjs → Widget-a5Y50rAX.cjs} +2 -2
- package/dist/{Widget-D23R5IBP.cjs.map → Widget-a5Y50rAX.cjs.map} +1 -1
- package/dist/{addMonths-DI1YMeKj.js → addMonths-8x2Zqxlu.js} +2 -2
- package/dist/{addMonths-DI1YMeKj.js.map → addMonths-8x2Zqxlu.js.map} +1 -1
- package/dist/{addMonths-SOmDn5_g.cjs → addMonths-BKZ-wlfT.cjs} +2 -2
- package/dist/{addMonths-SOmDn5_g.cjs.map → addMonths-BKZ-wlfT.cjs.map} +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.js +71 -71
- package/dist/{format-DMO5vfrX.cjs → format-MMgAFAGt.cjs} +10 -10
- package/dist/format-MMgAFAGt.cjs.map +1 -0
- package/dist/{format-BJTVXrSU.js → format-mcuVCYue.js} +921 -911
- package/dist/format-mcuVCYue.js.map +1 -0
- package/dist/getDefaultOptions-DFvSlHOQ.cjs +2 -0
- package/dist/{getDefaultOptions-DM-1w6JL.cjs.map → getDefaultOptions-DFvSlHOQ.cjs.map} +1 -1
- package/dist/getDefaultOptions-iOY0zDuv.js +8 -0
- package/dist/{getDefaultOptions-CK1Ea9CA.js.map → getDefaultOptions-iOY0zDuv.js.map} +1 -1
- package/dist/{index-0c3bHqHD.js → index-AU71Em-T.js} +683 -681
- package/dist/index-AU71Em-T.js.map +1 -0
- package/dist/{index-fyIAHTXk.js → index-CbFUkAzJ.js} +482 -471
- package/dist/index-CbFUkAzJ.js.map +1 -0
- package/dist/index-DpGzPeGX.cjs +10 -0
- package/dist/index-DpGzPeGX.cjs.map +1 -0
- package/dist/index-jFVMElAV.cjs +7 -0
- package/dist/index-jFVMElAV.cjs.map +1 -0
- package/dist/{parse-DVpJm282.cjs → parse-VYeg4sm9.cjs} +2 -2
- package/dist/parse-VYeg4sm9.cjs.map +1 -0
- package/dist/{parse-BDajhNCa.js → parse-tBX2kWMh.js} +3 -3
- package/dist/parse-tBX2kWMh.js.map +1 -0
- package/dist/plugins.cjs +2 -2
- package/dist/plugins.cjs.map +1 -1
- package/dist/plugins.js +362 -376
- package/dist/plugins.js.map +1 -1
- package/dist/purify.es-BgN5W7Gm.cjs +4 -0
- package/dist/purify.es-BgN5W7Gm.cjs.map +1 -0
- package/dist/purify.es-XBlcheTS.js +663 -0
- package/dist/purify.es-XBlcheTS.js.map +1 -0
- package/dist/{settings-TnQjO9IR.cjs → settings-CekhMYoq.cjs} +2 -2
- package/dist/{settings-TnQjO9IR.cjs.map → settings-CekhMYoq.cjs.map} +1 -1
- package/dist/{settings-08OS6cx2.js → settings-DZ910lLo.js} +2 -2
- package/dist/{settings-08OS6cx2.js.map → settings-DZ910lLo.js.map} +1 -1
- package/dist/settingsCache-BTZ8CWTD.js +28 -0
- package/dist/{settingsCache-CriaPeNM.js.map → settingsCache-BTZ8CWTD.js.map} +1 -1
- package/dist/{settingsCache-Bm4JOm9j.cjs → settingsCache-DmIdInSd.cjs} +2 -2
- package/dist/{settingsCache-Bm4JOm9j.cjs.map → settingsCache-DmIdInSd.cjs.map} +1 -1
- package/dist/{timeFilters-BacGikeM.cjs → timeFilters-DdEvgzim.cjs} +2 -2
- package/dist/{timeFilters-BacGikeM.cjs.map → timeFilters-DdEvgzim.cjs.map} +1 -1
- package/dist/{timeFilters-BjNif-pu.js → timeFilters-a8Cma3bj.js} +10 -10
- package/dist/{timeFilters-BjNif-pu.js.map → timeFilters-a8Cma3bj.js.map} +1 -1
- package/dist/tools/admin.cjs +1 -1
- package/dist/tools/admin.js +1 -1
- package/dist/tools/base.cjs +1 -1
- package/dist/tools/base.cjs.map +1 -1
- package/dist/tools/base.js +18 -18
- package/dist/tools/base.js.map +1 -1
- package/dist/tools/calendar.cjs +1 -1
- package/dist/tools/calendar.js +1 -1
- package/dist/tools/scriptrunner.cjs +8 -8
- package/dist/tools/scriptrunner.cjs.map +1 -1
- package/dist/tools/scriptrunner.js +1443 -1389
- package/dist/tools/scriptrunner.js.map +1 -1
- package/dist/util.cjs +1 -1
- package/dist/util.js +2 -2
- package/dist/vue-common.css +1 -1
- package/dist/widgets.cjs +1 -1
- package/dist/widgets.js +64 -64
- package/package.json +11 -11
- package/dist/CanvaslabelWidget-SuEi9yf4.cjs +0 -2
- package/dist/CanvaslabelWidget-SuEi9yf4.cjs.map +0 -1
- package/dist/CanvaslabelWidget-Tt4dmAOI.js +0 -23
- package/dist/CanvaslabelWidget-Tt4dmAOI.js.map +0 -1
- package/dist/EventListDialog-C57w2AlC.cjs +0 -2
- package/dist/EventListDialog-C57w2AlC.cjs.map +0 -1
- package/dist/EventListDialog-CIc8RCyY.js.map +0 -1
- package/dist/format-BJTVXrSU.js.map +0 -1
- package/dist/format-DMO5vfrX.cjs.map +0 -1
- package/dist/getDefaultOptions-CK1Ea9CA.js +0 -8
- package/dist/getDefaultOptions-DM-1w6JL.cjs +0 -2
- package/dist/index-0c3bHqHD.js.map +0 -1
- package/dist/index-BwjFEWGT.cjs +0 -10
- package/dist/index-BwjFEWGT.cjs.map +0 -1
- package/dist/index-D3OfXI7H.cjs +0 -7
- package/dist/index-D3OfXI7H.cjs.map +0 -1
- package/dist/index-fyIAHTXk.js.map +0 -1
- package/dist/parse-BDajhNCa.js.map +0 -1
- package/dist/parse-DVpJm282.cjs.map +0 -1
- package/dist/purify.es-C8CCt8xk.cjs +0 -3
- package/dist/purify.es-C8CCt8xk.cjs.map +0 -1
- package/dist/purify.es-cZjWcAUR.js +0 -595
- package/dist/purify.es-cZjWcAUR.js.map +0 -1
- package/dist/settingsCache-CriaPeNM.js +0 -28
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";function
|
|
2
|
-
`).forEach(function(i){s=i.indexOf(":"),r=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!r||e[r]&&
|
|
3
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach(n=>r.set(n)),r}static accessor(t){const e=(this[xt]=this[xt]={accessors:{}}).accessors,r=this.prototype;function n(s){const i=be(s);e[i]||($n(r,s),e[i]=!0)}return u.isArray(t)?t.forEach(n):n(t),this}};I.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);u.reduceDescriptors(I.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});u.freezeMethods(I);const Bn="[REDACTED ****]";function Yn(t){if(u.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(u.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function zn(t,e){const r=new Set(e.map(i=>String(i).toLowerCase())),n=[],s=i=>{if(i===null||typeof i!="object"||u.isBuffer(i))return i;if(n.indexOf(i)!==-1)return;i instanceof I&&(i=i.toJSON()),n.push(i);let o;if(u.isArray(i))o=[],i.forEach((a,l)=>{const c=s(a);u.isUndefined(c)||(o[l]=c)});else{if(!u.isPlainObject(i)&&Yn(i))return n.pop(),i;o=Object.create(null);for(const[a,l]of Object.entries(i)){const c=r.has(a.toLowerCase())?Bn:s(l);u.isUndefined(c)||(o[a]=c)}}return n.pop(),o};return s(t)}let b=class ar extends Error{static from(e,r,n,s,i,o){const a=new ar(e.message,r||e.code,n,s,i);return a.cause=e,a.name=e.name,e.status!=null&&a.status==null&&(a.status=e.status),o&&Object.assign(a,o),a}constructor(e,r,n,s,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i,this.status=i.status)}toJSON(){const e=this.config,r=e&&u.hasOwnProp(e,"redact")?e.redact:void 0,n=u.isArray(r)&&r.length>0?zn(e,r):u.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};b.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";b.ERR_BAD_OPTION="ERR_BAD_OPTION";b.ECONNABORTED="ECONNABORTED";b.ETIMEDOUT="ETIMEDOUT";b.ECONNREFUSED="ECONNREFUSED";b.ERR_NETWORK="ERR_NETWORK";b.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";b.ERR_DEPRECATED="ERR_DEPRECATED";b.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";b.ERR_BAD_REQUEST="ERR_BAD_REQUEST";b.ERR_CANCELED="ERR_CANCELED";b.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";b.ERR_INVALID_URL="ERR_INVALID_URL";b.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Hn=null;function st(t){return u.isPlainObject(t)||u.isArray(t)}function cr(t){return u.endsWith(t,"[]")?t.slice(0,-2):t}function Ge(t,e,r){return t?t.concat(e).map(function(n,s){return n=cr(n),!r&&s?"["+n+"]":n}).join(r?".":""):e}function Jn(t){return u.isArray(t)&&!t.some(st)}const Vn=u.toFlatObject(u,{},null,function(t){return/^is[A-Z]/.test(t)});function ze(t,e,r){if(!u.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=u.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,S){return!u.isUndefined(S[f])});const n=r.metaTokens,s=r.visitor||d,i=r.dots,o=r.indexes,a=r.Blob||typeof Blob<"u"&&Blob,l=r.maxDepth===void 0?100:r.maxDepth,c=a&&u.isSpecCompliantForm(e);if(!u.isFunction(s))throw new TypeError("visitor must be a function");function h(f){if(f===null)return"";if(u.isDate(f))return f.toISOString();if(u.isBoolean(f))return f.toString();if(!c&&u.isBlob(f))throw new b("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(f)||u.isTypedArray(f)?c&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function d(f,S,g){let y=f;if(u.isReactNative(e)&&u.isReactNativeBlob(f))return e.append(Ge(g,S,i),h(f)),!1;if(f&&!g&&typeof f=="object"){if(u.endsWith(S,"{}"))S=n?S:S.slice(0,-2),f=JSON.stringify(f);else if(u.isArray(f)&&Jn(f)||(u.isFileList(f)||u.endsWith(S,"[]"))&&(y=u.toArray(f)))return S=cr(S),y.forEach(function(_,E){!(u.isUndefined(_)||_===null)&&e.append(o===!0?Ge([S],E,i):o===null?S:S+"[]",h(_))}),!1}return st(f)?!0:(e.append(Ge(g,S,i),h(f)),!1)}const m=[],p=Object.assign(Vn,{defaultVisitor:d,convertValue:h,isVisitable:st});function v(f,S,g=0){if(!u.isUndefined(f)){if(g>l)throw new b("Object is too deeply nested ("+g+" levels). Max depth: "+l,b.ERR_FORM_DATA_DEPTH_EXCEEDED);if(m.indexOf(f)!==-1)throw Error("Circular reference detected in "+S.join("."));m.push(f),u.forEach(f,function(y,_){(!(u.isUndefined(y)||y===null)&&s.call(e,y,u.isString(_)?_.trim():_,S,p))===!0&&v(y,S?S.concat(_):[_],g+1)}),m.pop()}}if(!u.isObject(t))throw new TypeError("data must be an object");return v(t),e}function Rt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(r){return e[r]})}function ht(t,e){this._pairs=[],t&&ze(t,this,e)}const ur=ht.prototype;ur.append=function(t,e){this._pairs.push([t,e])};ur.toString=function(t){const e=t?function(r){return t.call(this,r,Rt)}:Rt;return this._pairs.map(function(r){return e(r[0])+"="+e(r[1])},"").join("&")};function Xn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function lr(t,e,r){if(!e)return t;const n=r&&r.encode||Xn,s=u.isFunction(r)?{serialize:r}:r,i=s&&s.serialize;let o;if(i?o=i(e,s):o=u.isURLSearchParams(e)?e.toString():new ht(e,s).toString(n),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Pt{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){u.forEach(this.handlers,function(r){r!==null&&e(r)})}}const dt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Qn=typeof URLSearchParams<"u"?URLSearchParams:ht,Gn=typeof FormData<"u"?FormData:null,Kn=typeof Blob<"u"?Blob:null,Zn={isBrowser:!0,classes:{URLSearchParams:Qn,FormData:Gn,Blob:Kn},protocols:["http","https","file","blob","url","data"]},ft=typeof window<"u"&&typeof document<"u",it=typeof navigator=="object"&&navigator||void 0,es=ft&&(!it||["ReactNative","NativeScript","NS"].indexOf(it.product)<0),ts=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",rs=ft&&window.location.href||"http://localhost",ns=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ft,hasStandardBrowserEnv:es,hasStandardBrowserWebWorkerEnv:ts,navigator:it,origin:rs},Symbol.toStringTag,{value:"Module"})),j={...ns,...Zn};function ss(t,e){return ze(t,new j.classes.URLSearchParams,{visitor:function(r,n,s,i){return j.isNode&&u.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}function is(t){return u.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function os(t){const e={},r=Object.keys(t);let n;const s=r.length;let i;for(n=0;n<s;n++)i=r[n],e[i]=t[i];return e}function hr(t){function e(r,n,s,i){let o=r[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),l=i>=r.length;return o=!o&&u.isArray(s)?s.length:o,l?(u.hasOwnProp(s,o)?s[o]=u.isArray(s[o])?s[o].concat(n):[s[o],n]:s[o]=n,!a):((!s[o]||!u.isObject(s[o]))&&(s[o]=[]),e(r,n,s[o],i)&&u.isArray(s[o])&&(s[o]=os(s[o])),!a)}if(u.isFormData(t)&&u.isFunction(t.entries)){const r={};return u.forEachEntry(t,(n,s)=>{e(is(n),s,r,0)}),r}return null}const ae=(t,e)=>t!=null&&u.hasOwnProp(t,e)?t[e]:void 0;function as(t,e,r){if(u.isString(t))try{return(e||JSON.parse)(t),u.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const Re={transitional:dt,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,s=u.isObject(t);if(s&&u.isHTMLForm(t)&&(t=new FormData(t)),u.isFormData(t))return n?JSON.stringify(hr(t)):t;if(u.isArrayBuffer(t)||u.isBuffer(t)||u.isStream(t)||u.isFile(t)||u.isBlob(t)||u.isReadableStream(t))return t;if(u.isArrayBufferView(t))return t.buffer;if(u.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(s){const o=ae(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return ss(t,o).toString();if((i=u.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=ae(this,"env"),l=a&&a.FormData;return ze(i?{"files[]":t}:t,l&&new l,o)}}return s||n?(e.setContentType("application/json",!1),as(t)):t}],transformResponse:[function(t){const e=ae(this,"transitional")||Re.transitional,r=e&&e.forcedJSONParsing,n=ae(this,"responseType"),s=n==="json";if(u.isResponse(t)||u.isReadableStream(t))return t;if(t&&u.isString(t)&&(r&&!n||s)){const i=!(e&&e.silentJSONParsing)&&s;try{return JSON.parse(t,ae(this,"parseReviver"))}catch(o){if(i)throw o.name==="SyntaxError"?b.from(o,b.ERR_BAD_RESPONSE,this,null,ae(this,"response")):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:j.classes.FormData,Blob:j.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach(["delete","get","head","post","put","patch","query"],t=>{Re.headers[t]={}});function Ke(t,e){const r=this||Re,n=e||r,s=I.from(n.headers);let i=n.data;return u.forEach(t,function(o){i=o.call(r,i,s.normalize(),e?e.status:void 0)}),s.normalize(),i}function dr(t){return!!(t&&t.__CANCEL__)}let Pe=class extends b{constructor(t,e,r){super(t??"canceled",b.ERR_CANCELED,e,r),this.name="CanceledError",this.__CANCEL__=!0}};function fr(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new b("Request failed with status code "+r.status,r.status>=400&&r.status<500?b.ERR_BAD_REQUEST:b.ERR_BAD_RESPONSE,r.config,r.request,r))}function cs(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function us(t,e){t=t||10;const r=new Array(t),n=new Array(t);let s=0,i=0,o;return e=e!==void 0?e:1e3,function(a){const l=Date.now(),c=n[i];o||(o=l),r[s]=a,n[s]=l;let h=i,d=0;for(;h!==s;)d+=r[h++],h=h%t;if(s=(s+1)%t,s===i&&(i=(i+1)%t),l-o<e)return;const m=c&&l-c;return m?Math.round(d*1e3/m):void 0}}function ls(t,e){let r=0,n=1e3/e,s,i;const o=(a,l=Date.now())=>{r=l,s=null,i&&(clearTimeout(i),i=null),t(...a)};return[(...a)=>{const l=Date.now(),c=l-r;c>=n?o(a,l):(s=a,i||(i=setTimeout(()=>{i=null,o(s)},n-c)))},()=>s&&o(s)]}const qe=(t,e,r=3)=>{let n=0;const s=us(50,250);return ls(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,l=a!=null?Math.min(o,a):o,c=Math.max(0,l-n),h=s(c);n=Math.max(n,l);const d={loaded:l,total:a,progress:a?l/a:void 0,bytes:c,rate:h||void 0,estimated:h&&a?(a-l)/h:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(d)},r)},kt=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},At=t=>(...e)=>u.asap(()=>t(...e)),hs=j.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,j.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(j.origin),j.navigator&&/(msie|trident)/i.test(j.navigator.userAgent)):()=>!0,ds=j.hasStandardBrowserEnv?{write(t,e,r,n,s,i,o){if(typeof document>"u")return;const a=[`${t}=${encodeURIComponent(e)}`];u.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),u.isString(n)&&a.push(`path=${n}`),u.isString(s)&&a.push(`domain=${s}`),i===!0&&a.push("secure"),u.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let r=0;r<e.length;r++){const n=e[r].replace(/^\s+/,""),s=n.indexOf("=");if(s!==-1&&n.slice(0,s)===t)return decodeURIComponent(n.slice(s+1))}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function fs(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ms(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function mr(t,e,r){let n=!fs(e);return t&&(n||r===!1)?ms(t,e):e}const Tt=t=>t instanceof I?{...t}:t;function se(t,e){e=e||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(c,h,d,m){return u.isPlainObject(c)&&u.isPlainObject(h)?u.merge.call({caseless:m},c,h):u.isPlainObject(h)?u.merge({},h):u.isArray(h)?h.slice():h}function s(c,h,d,m){if(u.isUndefined(h)){if(!u.isUndefined(c))return n(void 0,c,d,m)}else return n(c,h,d,m)}function i(c,h){if(!u.isUndefined(h))return n(void 0,h)}function o(c,h){if(u.isUndefined(h)){if(!u.isUndefined(c))return n(void 0,c)}else return n(void 0,h)}function a(c,h,d){if(u.hasOwnProp(e,d))return n(c,h);if(u.hasOwnProp(t,d))return n(void 0,c)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:a,headers:(c,h,d)=>s(Tt(c),Tt(h),d,!0)};return u.forEach(Object.keys({...t,...e}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const h=u.hasOwnProp(l,c)?l[c]:s,d=u.hasOwnProp(t,c)?t[c]:void 0,m=u.hasOwnProp(e,c)?e[c]:void 0,p=h(d,m,c);u.isUndefined(p)&&h!==a||(r[c]=p)}),r}const ps=["content-type","content-length"];function gs(t,e,r){if(r!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,s])=>{ps.includes(n.toLowerCase())&&t.set(n,s)})}const bs=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16))),pr=t=>{const e=se({},t),r=m=>u.hasOwnProp(e,m)?e[m]:void 0,n=r("data");let s=r("withXSRFToken");const i=r("xsrfHeaderName"),o=r("xsrfCookieName");let a=r("headers");const l=r("auth"),c=r("baseURL"),h=r("allowAbsoluteUrls"),d=r("url");if(e.headers=a=I.from(a),e.url=lr(mr(c,d,h),t.params,t.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?bs(l.password):""))),u.isFormData(n)&&(j.hasStandardBrowserEnv||j.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):u.isFunction(n.getHeaders)&&gs(a,n.getHeaders(),r("formDataHeaderPolicy"))),j.hasStandardBrowserEnv&&(u.isFunction(s)&&(s=s(e)),s===!0||s==null&&hs(e.url))){const m=i&&o&&ds.read(o);m&&a.set(i,m)}return e},ys=typeof XMLHttpRequest<"u",ws=ys&&function(t){return new Promise(function(e,r){const n=pr(t);let s=n.data;const i=I.from(n.headers).normalize();let{responseType:o,onUploadProgress:a,onDownloadProgress:l}=n,c,h,d,m,p;function v(){m&&m(),p&&p(),n.cancelToken&&n.cancelToken.unsubscribe(c),n.signal&&n.signal.removeEventListener("abort",c)}let f=new XMLHttpRequest;f.open(n.method.toUpperCase(),n.url,!0),f.timeout=n.timeout;function S(){if(!f)return;const y=I.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),_={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:y,config:t,request:f};fr(function(E){e(E),v()},function(E){r(E),v()},_),f=null}"onloadend"in f?f.onloadend=S:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.startsWith("file:"))||setTimeout(S)},f.onabort=function(){f&&(r(new b("Request aborted",b.ECONNABORTED,t,f)),v(),f=null)},f.onerror=function(y){const _=y&&y.message?y.message:"Network Error",E=new b(_,b.ERR_NETWORK,t,f);E.event=y||null,r(E),v(),f=null},f.ontimeout=function(){let y=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const _=n.transitional||dt;n.timeoutErrorMessage&&(y=n.timeoutErrorMessage),r(new b(y,_.clarifyTimeoutError?b.ETIMEDOUT:b.ECONNABORTED,t,f)),v(),f=null},s===void 0&&i.setContentType(null),"setRequestHeader"in f&&u.forEach(i.toJSON(),function(y,_){f.setRequestHeader(_,y)}),u.isUndefined(n.withCredentials)||(f.withCredentials=!!n.withCredentials),o&&o!=="json"&&(f.responseType=n.responseType),l&&([d,p]=qe(l,!0),f.addEventListener("progress",d)),a&&f.upload&&([h,m]=qe(a),f.upload.addEventListener("progress",h),f.upload.addEventListener("loadend",m)),(n.cancelToken||n.signal)&&(c=y=>{f&&(r(!y||y.type?new Pe(null,t,f):y),f.abort(),v(),f=null)},n.cancelToken&&n.cancelToken.subscribe(c),n.signal&&(n.signal.aborted?c():n.signal.addEventListener("abort",c)));const g=cs(n.url);if(g&&!j.protocols.includes(g)){r(new b("Unsupported protocol "+g+":",b.ERR_BAD_REQUEST,t));return}f.send(s||null)})},_s=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,s;const i=function(c){if(!s){s=!0,a();const h=c instanceof Error?c:this.reason;n.abort(h instanceof b?h:new Pe(h instanceof Error?h.message:h))}};let o=e&&setTimeout(()=>{o=null,i(new b(`timeout of ${e}ms exceeded`,b.ETIMEDOUT))},e);const a=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),t=null)};t.forEach(c=>c.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>u.asap(a),l}},vs=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,s;for(;n<r;)s=n+e,yield t.slice(n,s),n=s},Ss=async function*(t,e){for await(const r of Os(t))yield*vs(r,e)},Os=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},Ct=(t,e,r,n)=>{const s=Ss(t,e);let i=0,o,a=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:h}=await s.next();if(c){a(),l.close();return}let d=h.byteLength;if(r){let m=i+=d;r(m)}l.enqueue(new Uint8Array(h))}catch(c){throw a(c),c}},cancel(l){return a(l),s.return()}},{highWaterMark:2})};function Es(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const r=t.slice(5,e),n=t.slice(e+1);if(/;base64/i.test(r)){let i=n.length;const o=n.length;for(let d=0;d<o;d++)if(n.charCodeAt(d)===37&&d+2<o){const m=n.charCodeAt(d+1),p=n.charCodeAt(d+2);(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102)&&(i-=2,d+=2)}let a=0,l=o-1;const c=d=>d>=2&&n.charCodeAt(d-2)===37&&n.charCodeAt(d-1)===51&&(n.charCodeAt(d)===68||n.charCodeAt(d)===100);l>=0&&(n.charCodeAt(l)===61?(a++,l--):c(l)&&(a++,l-=3)),a===1&&l>=0&&(n.charCodeAt(l)===61||c(l))&&a++;const h=Math.floor(i/4)*3-(a||0);return h>0?h:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(n,"utf8");let s=0;for(let i=0,o=n.length;i<o;i++){const a=n.charCodeAt(i);if(a<128)s+=1;else if(a<2048)s+=2;else if(a>=55296&&a<=56319&&i+1<o){const l=n.charCodeAt(i+1);l>=56320&&l<=57343?(s+=4,i++):s+=3}else s+=3}return s}const mt="1.16.0",Nt=64*1024,{isFunction:je}=u,jt=(t,...e)=>{try{return!!t(...e)}catch{return!1}},xs=t=>{const e=u.global??globalThis,{ReadableStream:r,TextEncoder:n}=e;t=u.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:s,Request:i,Response:o}=t,a=s?je(s):typeof fetch=="function",l=je(i),c=je(o);if(!a)return!1;const h=a&&je(r),d=a&&(typeof n=="function"?(g=>y=>g.encode(y))(new n):async g=>new Uint8Array(await new i(g).arrayBuffer())),m=l&&h&&jt(()=>{let g=!1;const y=new i(j.origin,{body:new r,method:"POST",get duplex(){return g=!0,"half"}}),_=y.headers.has("Content-Type");return y.body!=null&&y.body.cancel(),g&&!_}),p=c&&h&&jt(()=>u.isReadableStream(new o("").body)),v={stream:p&&(g=>g.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!v[g]&&(v[g]=(y,_)=>{let E=y&&y[g];if(E)return E.call(y);throw new b(`Response type '${g}' is not supported`,b.ERR_NOT_SUPPORT,_)})});const f=async g=>{if(g==null)return 0;if(u.isBlob(g))return g.size;if(u.isSpecCompliantForm(g))return(await new i(j.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(u.isArrayBufferView(g)||u.isArrayBuffer(g))return g.byteLength;if(u.isURLSearchParams(g)&&(g=g+""),u.isString(g))return(await d(g)).byteLength},S=async(g,y)=>u.toFiniteNumber(g.getContentLength())??f(y);return async g=>{let{url:y,method:_,data:E,signal:V,cancelToken:ie,timeout:fe,onDownloadProgress:K,onUploadProgress:z,responseType:M,headers:D,withCredentials:W="same-origin",fetchOptions:X,maxContentLength:T,maxBodyLength:me}=pr(g);const C=u.isNumber(T)&&T>-1,w=u.isNumber(me)&&me>-1;let R=s||fetch;M=M?(M+"").toLowerCase():"text";let A=_s([V,ie&&ie.toAbortSignal()],fe),k=null;const L=A&&A.unsubscribe&&(()=>{A.unsubscribe()});let pe;try{if(C&&typeof y=="string"&&y.startsWith("data:")&&Es(y)>T)throw new b("maxContentLength size of "+T+" exceeded",b.ERR_BAD_RESPONSE,g,k);if(w&&_!=="get"&&_!=="head"){const x=await S(D,E);if(typeof x=="number"&&isFinite(x)&&x>me)throw new b("Request body larger than maxBodyLength limit",b.ERR_BAD_REQUEST,g,k)}if(z&&m&&_!=="get"&&_!=="head"&&(pe=await S(D,E))!==0){let x=new i(y,{method:"POST",body:E,duplex:"half"}),oe;if(u.isFormData(E)&&(oe=x.headers.get("content-type"))&&D.setContentType(oe),x.body){const[Ce,Ne]=kt(pe,qe(At(z)));E=Ct(x.body,Nt,Ce,Ne)}}u.isString(W)||(W=W?"include":"omit");const N=l&&"credentials"in i.prototype;if(u.isFormData(E)){const x=D.getContentType();x&&/^multipart\/form-data/i.test(x)&&!/boundary=/i.test(x)&&D.delete("content-type")}D.set("User-Agent","axios/"+mt,!1);const Q={...X,signal:A,method:_.toUpperCase(),headers:D.normalize().toJSON(),body:E,duplex:"half",credentials:N?W:void 0};k=l&&new i(y,Q);let Y=await(l?R(k,X):R(y,Q));if(C){const x=u.toFiniteNumber(Y.headers.get("content-length"));if(x!=null&&x>T)throw new b("maxContentLength size of "+T+" exceeded",b.ERR_BAD_RESPONSE,g,k)}const Xe=p&&(M==="stream"||M==="response");if(p&&Y.body&&(K||C||Xe&&L)){const x={};["status","statusText","headers"].forEach(ge=>{x[ge]=Y[ge]});const oe=u.toFiniteNumber(Y.headers.get("content-length")),[Ce,Ne]=K&&kt(oe,qe(At(K),!0))||[];let St=0;const Yr=ge=>{if(C&&(St=ge,St>T))throw new b("maxContentLength size of "+T+" exceeded",b.ERR_BAD_RESPONSE,g,k);Ce&&Ce(ge)};Y=new o(Ct(Y.body,Nt,Yr,()=>{Ne&&Ne(),L&&L()}),x)}M=M||"text";let H=await v[u.findKey(v,M)||"text"](Y,g);if(C&&!p&&!Xe){let x;if(H!=null&&(typeof H.byteLength=="number"?x=H.byteLength:typeof H.size=="number"?x=H.size:typeof H=="string"&&(x=typeof n=="function"?new n().encode(H).byteLength:H.length)),typeof x=="number"&&x>T)throw new b("maxContentLength size of "+T+" exceeded",b.ERR_BAD_RESPONSE,g,k)}return!Xe&&L&&L(),await new Promise((x,oe)=>{fr(x,oe,{data:H,headers:I.from(Y.headers),status:Y.status,statusText:Y.statusText,config:g,request:k})})}catch(N){if(L&&L(),A&&A.aborted&&A.reason instanceof b){const Q=A.reason;throw Q.config=g,k&&(Q.request=k),N!==Q&&(Q.cause=N),Q}throw N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)?Object.assign(new b("Network Error",b.ERR_NETWORK,g,k,N&&N.response),{cause:N.cause||N}):b.from(N,N&&N.code,g,k,N&&N.response)}}},Rs=new Map,gr=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:s}=e,i=[n,s,r];let o=i.length,a=o,l,c,h=Rs;for(;a--;)l=i[a],c=h.get(l),c===void 0&&h.set(l,c=a?new Map:xs(e)),h=c;return c};gr();const pt={http:Hn,xhr:ws,fetch:{get:gr}};u.forEach(pt,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const Dt=t=>`- ${t}`,Ps=t=>u.isFunction(t)||t===null||t===!1;function ks(t,e){t=u.isArray(t)?t:[t];const{length:r}=t;let n,s;const i={};for(let o=0;o<r;o++){n=t[o];let a;if(s=n,!Ps(n)&&(s=pt[(a=String(n)).toLowerCase()],s===void 0))throw new b(`Unknown adapter '${a}'`);if(s&&(u.isFunction(s)||(s=s.get(e))))break;i[a||"#"+o]=s}if(!s){const o=Object.entries(i).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=r?o.length>1?`since :
|
|
4
|
-
`+o.map(
|
|
5
|
-
`):" "+
|
|
1
|
+
"use strict";function er(t,e){return function(){return t.apply(e,arguments)}}const{toString:Hr}=Object.prototype,{getPrototypeOf:We}=Object,{iterator:$e,toStringTag:tr}=Symbol,Be=(t=>e=>{const r=Hr.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),B=t=>(t=t.toLowerCase(),e=>Be(e)===t),Ye=t=>e=>typeof e===t,{isArray:de}=Array,le=Ye("undefined");function Ee(t){return t!==null&&!le(t)&&t.constructor!==null&&!le(t.constructor)&&F(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const rr=B("ArrayBuffer");function Vr(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&rr(t.buffer),e}const Jr=Ye("string"),F=Ye("function"),nr=Ye("number"),Oe=t=>t!==null&&typeof t=="object",Xr=t=>t===!0||t===!1,Me=t=>{if(Be(t)!=="object")return!1;const e=We(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(tr in t)&&!($e in t)},Qr=t=>{if(!Oe(t)||Ee(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Gr=B("Date"),Kr=B("File"),Zr=t=>!!(t&&typeof t.uri<"u"),en=t=>t&&typeof t.getParts<"u",tn=B("Blob"),rn=B("FileList"),nn=t=>Oe(t)&&F(t.pipe);function sn(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Ot=sn(),xt=typeof Ot.FormData<"u"?Ot.FormData:void 0,on=t=>{if(!t)return!1;if(xt&&t instanceof xt)return!0;const e=We(t);if(!e||e===Object.prototype||!F(t.append))return!1;const r=Be(t);return r==="formdata"||r==="object"&&F(t.toString)&&t.toString()==="[object FormData]"},an=B("URLSearchParams"),[cn,un,ln,hn]=["ReadableStream","Request","Response","Headers"].map(B),dn=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xe(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,s;if(typeof t!="object"&&(t=[t]),de(t))for(n=0,s=t.length;n<s;n++)e.call(null,t[n],n,t);else{if(Ee(t))return;const i=r?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let a;for(n=0;n<o;n++)a=i[n],e.call(null,t[a],a,t)}}function sr(t,e){if(Ee(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,s;for(;n-- >0;)if(s=r[n],e===s.toLowerCase())return s;return null}const re=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ir=t=>!le(t)&&t!==re;function rt(...t){const{caseless:e,skipUndefined:r}=ir(this)&&this||{},n={},s=(i,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const a=e&&sr(n,o)||o,l=nt(n,a)?n[a]:void 0;Me(l)&&Me(i)?n[a]=rt(l,i):Me(i)?n[a]=rt({},i):de(i)?n[a]=i.slice():(!r||!le(i))&&(n[a]=i)};for(let i=0,o=t.length;i<o;i++)t[i]&&xe(t[i],s);return n}const fn=(t,e,r,{allOwnKeys:n}={})=>(xe(e,(s,i)=>{r&&F(s)?Object.defineProperty(t,i,{__proto__:null,value:er(s,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,i,{__proto__:null,value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),mn=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),pn=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),r&&Object.assign(t.prototype,r)},gn=(t,e,r,n)=>{let s,i,o;const a={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),i=s.length;i-- >0;)o=s[i],(!n||n(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=r!==!1&&We(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},bn=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},yn=t=>{if(!t)return null;if(de(t))return t;let e=t.length;if(!nr(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},wn=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&We(Uint8Array)),_n=(t,e)=>{const r=(t&&t[$e]).call(t);let n;for(;(n=r.next())&&!n.done;){const s=n.value;e.call(t,s[0],s[1])}},vn=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Sn=B("HTMLFormElement"),En=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,r,n){return r.toUpperCase()+n}),nt=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),On=B("RegExp"),or=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};xe(r,(s,i)=>{let o;(o=e(s,i,t))!==!1&&(n[i]=o||s)}),Object.defineProperties(t,n)},xn=t=>{or(t,(e,r)=>{if(F(t)&&["arguments","caller","callee"].includes(r))return!1;const n=t[r];if(F(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Rn=(t,e)=>{const r={},n=s=>{s.forEach(i=>{r[i]=!0})};return de(t)?n(t):n(String(t).split(e)),r},Pn=()=>{},kn=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Tn(t){return!!(t&&F(t.append)&&t[tr]==="FormData"&&t[$e])}const An=t=>{const e=new WeakSet,r=n=>{if(Oe(n)){if(e.has(n))return;if(Ee(n))return n;if(!("toJSON"in n)){e.add(n);const s=de(n)?[]:{};return xe(n,(i,o)=>{const a=r(i);!le(a)&&(s[o]=a)}),e.delete(n),s}}return n};return r(t)},Cn=B("AsyncFunction"),Nn=t=>t&&(Oe(t)||F(t))&&F(t.then)&&F(t.catch),ar=((t,e)=>t?setImmediate:e?((r,n)=>(re.addEventListener("message",({source:s,data:i})=>{s===re&&i===r&&n.length&&n.shift()()},!1),s=>{n.push(s),re.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",F(re.postMessage)),jn=typeof queueMicrotask<"u"?queueMicrotask.bind(re):typeof process<"u"&&process.nextTick||ar,Dn=t=>t!=null&&F(t[$e]),c={isArray:de,isArrayBuffer:rr,isBuffer:Ee,isFormData:on,isArrayBufferView:Vr,isString:Jr,isNumber:nr,isBoolean:Xr,isObject:Oe,isPlainObject:Me,isEmptyObject:Qr,isReadableStream:cn,isRequest:un,isResponse:ln,isHeaders:hn,isUndefined:le,isDate:Gr,isFile:Kr,isReactNativeBlob:Zr,isReactNative:en,isBlob:tn,isRegExp:On,isFunction:F,isStream:nn,isURLSearchParams:an,isTypedArray:wn,isFileList:rn,forEach:xe,merge:rt,extend:fn,trim:dn,stripBOM:mn,inherits:pn,toFlatObject:gn,kindOf:Be,kindOfTest:B,endsWith:bn,toArray:yn,forEachEntry:_n,matchAll:vn,isHTMLForm:Sn,hasOwnProperty:nt,hasOwnProp:nt,reduceDescriptors:or,freezeMethods:xn,toObjectSet:Rn,toCamelCase:En,noop:Pn,toFiniteNumber:kn,findKey:sr,global:re,isContextDefined:ir,isSpecCompliantForm:Tn,toJSONObject:An,isAsyncFn:Cn,isThenable:Nn,setImmediate:ar,asap:jn,isIterable:Dn},In=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Fn=t=>{const e={};let r,n,s;return t&&t.split(`
|
|
2
|
+
`).forEach(function(i){s=i.indexOf(":"),r=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!r||e[r]&&In[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e};function Mn(t){let e=0,r=t.length;for(;e<r;){const n=t.charCodeAt(e);if(n!==9&&n!==32)break;e+=1}for(;r>e;){const n=t.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return e===0&&r===t.length?t:t.slice(e,r)}const Ln=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Un=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ht(t,e){return c.isArray(t)?t.map(r=>ht(r,e)):Mn(String(t).replace(e,""))}const qn=t=>ht(t,Ln),Wn=t=>ht(t,Un);function cr(t){const e=Object.create(null);return c.forEach(t.toJSON(),(r,n)=>{e[n]=Wn(r)}),e}const Rt=Symbol("internals");function be(t){return t&&String(t).trim().toLowerCase()}function Le(t){return t===!1||t==null?t:c.isArray(t)?t.map(Le):qn(String(t))}function $n(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const Bn=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Qe(t,e,r,n,s){if(c.isFunction(n))return n.call(this,e,r);if(s&&(e=r),!!c.isString(e)){if(c.isString(n))return e.indexOf(n)!==-1;if(c.isRegExp(n))return n.test(e)}}function Yn(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function zn(t,e){const r=c.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{__proto__:null,value:function(s,i,o){return this[n].call(this,e,s,i,o)},configurable:!0})})}let I=class{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function s(o,a,l){const u=be(a);if(!u)throw new Error("header name must be a non-empty string");const h=c.findKey(n,u);(!h||n[h]===void 0||l===!0||l===void 0&&n[h]!==!1)&&(n[h||a]=Le(o))}const i=(o,a)=>c.forEach(o,(l,u)=>s(l,u,a));if(c.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(c.isString(t)&&(t=t.trim())&&!Bn(t))i(Fn(t),e);else if(c.isObject(t)&&c.isIterable(t)){let o={},a,l;for(const u of t){if(!c.isArray(u))throw TypeError("Object iterator must return a key-value pair");o[l=u[0]]=(a=o[l])?c.isArray(a)?[...a,u[1]]:[a,u[1]]:u[1]}i(o,e)}else t!=null&&s(e,t,r);return this}get(t,e){if(t=be(t),t){const r=c.findKey(this,t);if(r){const n=this[r];if(!e)return n;if(e===!0)return $n(n);if(c.isFunction(e))return e.call(this,n,r);if(c.isRegExp(e))return e.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=be(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!e||Qe(this,this[r],r,e)))}return!1}delete(t,e){const r=this;let n=!1;function s(i){if(i=be(i),i){const o=c.findKey(r,i);o&&(!e||Qe(r,r[o],o,e))&&(delete r[o],n=!0)}}return c.isArray(t)?t.forEach(s):s(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;for(;r--;){const s=e[r];(!t||Qe(this,this[s],s,t,!0))&&(delete this[s],n=!0)}return n}normalize(t){const e=this,r={};return c.forEach(this,(n,s)=>{const i=c.findKey(r,s);if(i){e[i]=Le(n),delete e[s];return}const o=t?Yn(s):String(s).trim();o!==s&&delete e[s],e[o]=Le(n),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return c.forEach(this,(r,n)=>{r!=null&&r!==!1&&(e[n]=t&&c.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach(n=>r.set(n)),r}static accessor(t){const e=(this[Rt]=this[Rt]={accessors:{}}).accessors,r=this.prototype;function n(s){const i=be(s);e[i]||(zn(r,s),e[i]=!0)}return c.isArray(t)?t.forEach(n):n(t),this}};I.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(I.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});c.freezeMethods(I);const Hn="[REDACTED ****]";function Vn(t){if(c.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(c.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function Jn(t,e){const r=new Set(e.map(i=>String(i).toLowerCase())),n=[],s=i=>{if(i===null||typeof i!="object"||c.isBuffer(i))return i;if(n.indexOf(i)!==-1)return;i instanceof I&&(i=i.toJSON()),n.push(i);let o;if(c.isArray(i))o=[],i.forEach((a,l)=>{const u=s(a);c.isUndefined(u)||(o[l]=u)});else{if(!c.isPlainObject(i)&&Vn(i))return n.pop(),i;o=Object.create(null);for(const[a,l]of Object.entries(i)){const u=r.has(a.toLowerCase())?Hn:s(l);c.isUndefined(u)||(o[a]=u)}}return n.pop(),o};return s(t)}let b=class ur extends Error{static from(e,r,n,s,i,o){const a=new ur(e.message,r||e.code,n,s,i);return a.cause=e,a.name=e.name,e.status!=null&&a.status==null&&(a.status=e.status),o&&Object.assign(a,o),a}constructor(e,r,n,s,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i,this.status=i.status)}toJSON(){const e=this.config,r=e&&c.hasOwnProp(e,"redact")?e.redact:void 0,n=c.isArray(r)&&r.length>0?Jn(e,r):c.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};b.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";b.ERR_BAD_OPTION="ERR_BAD_OPTION";b.ECONNABORTED="ECONNABORTED";b.ETIMEDOUT="ETIMEDOUT";b.ECONNREFUSED="ECONNREFUSED";b.ERR_NETWORK="ERR_NETWORK";b.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";b.ERR_DEPRECATED="ERR_DEPRECATED";b.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";b.ERR_BAD_REQUEST="ERR_BAD_REQUEST";b.ERR_CANCELED="ERR_CANCELED";b.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";b.ERR_INVALID_URL="ERR_INVALID_URL";b.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Xn=null;function st(t){return c.isPlainObject(t)||c.isArray(t)}function lr(t){return c.endsWith(t,"[]")?t.slice(0,-2):t}function Ge(t,e,r){return t?t.concat(e).map(function(n,s){return n=lr(n),!r&&s?"["+n+"]":n}).join(r?".":""):e}function Qn(t){return c.isArray(t)&&!t.some(st)}const Gn=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function ze(t,e,r){if(!c.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=c.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,S){return!c.isUndefined(S[f])});const n=r.metaTokens,s=r.visitor||d,i=r.dots,o=r.indexes,a=r.Blob||typeof Blob<"u"&&Blob,l=r.maxDepth===void 0?100:r.maxDepth,u=a&&c.isSpecCompliantForm(e);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function h(f){if(f===null)return"";if(c.isDate(f))return f.toISOString();if(c.isBoolean(f))return f.toString();if(!u&&c.isBlob(f))throw new b("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(f)||c.isTypedArray(f)?u&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function d(f,S,g){let y=f;if(c.isReactNative(e)&&c.isReactNativeBlob(f))return e.append(Ge(g,S,i),h(f)),!1;if(f&&!g&&typeof f=="object"){if(c.endsWith(S,"{}"))S=n?S:S.slice(0,-2),f=JSON.stringify(f);else if(c.isArray(f)&&Qn(f)||(c.isFileList(f)||c.endsWith(S,"[]"))&&(y=c.toArray(f)))return S=lr(S),y.forEach(function(_,O){!(c.isUndefined(_)||_===null)&&e.append(o===!0?Ge([S],O,i):o===null?S:S+"[]",h(_))}),!1}return st(f)?!0:(e.append(Ge(g,S,i),h(f)),!1)}const m=[],p=Object.assign(Gn,{defaultVisitor:d,convertValue:h,isVisitable:st});function v(f,S,g=0){if(!c.isUndefined(f)){if(g>l)throw new b("Object is too deeply nested ("+g+" levels). Max depth: "+l,b.ERR_FORM_DATA_DEPTH_EXCEEDED);if(m.indexOf(f)!==-1)throw Error("Circular reference detected in "+S.join("."));m.push(f),c.forEach(f,function(y,_){(!(c.isUndefined(y)||y===null)&&s.call(e,y,c.isString(_)?_.trim():_,S,p))===!0&&v(y,S?S.concat(_):[_],g+1)}),m.pop()}}if(!c.isObject(t))throw new TypeError("data must be an object");return v(t),e}function Pt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(r){return e[r]})}function dt(t,e){this._pairs=[],t&&ze(t,this,e)}const hr=dt.prototype;hr.append=function(t,e){this._pairs.push([t,e])};hr.toString=function(t){const e=t?function(r){return t.call(this,r,Pt)}:Pt;return this._pairs.map(function(r){return e(r[0])+"="+e(r[1])},"").join("&")};function Kn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dr(t,e,r){if(!e)return t;const n=r&&r.encode||Kn,s=c.isFunction(r)?{serialize:r}:r,i=s&&s.serialize;let o;if(i?o=i(e,s):o=c.isURLSearchParams(e)?e.toString():new dt(e,s).toString(n),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class kt{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){c.forEach(this.handlers,function(r){r!==null&&e(r)})}}const ft={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Zn=typeof URLSearchParams<"u"?URLSearchParams:dt,es=typeof FormData<"u"?FormData:null,ts=typeof Blob<"u"?Blob:null,rs={isBrowser:!0,classes:{URLSearchParams:Zn,FormData:es,Blob:ts},protocols:["http","https","file","blob","url","data"]},mt=typeof window<"u"&&typeof document<"u",it=typeof navigator=="object"&&navigator||void 0,ns=mt&&(!it||["ReactNative","NativeScript","NS"].indexOf(it.product)<0),ss=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",is=mt&&window.location.href||"http://localhost",os=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:mt,hasStandardBrowserEnv:ns,hasStandardBrowserWebWorkerEnv:ss,navigator:it,origin:is},Symbol.toStringTag,{value:"Module"})),j={...os,...rs};function as(t,e){return ze(t,new j.classes.URLSearchParams,{visitor:function(r,n,s,i){return j.isNode&&c.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}function cs(t){return c.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function us(t){const e={},r=Object.keys(t);let n;const s=r.length;let i;for(n=0;n<s;n++)i=r[n],e[i]=t[i];return e}function fr(t){function e(r,n,s,i){let o=r[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),l=i>=r.length;return o=!o&&c.isArray(s)?s.length:o,l?(c.hasOwnProp(s,o)?s[o]=c.isArray(s[o])?s[o].concat(n):[s[o],n]:s[o]=n,!a):((!c.hasOwnProp(s,o)||!c.isObject(s[o]))&&(s[o]=[]),e(r,n,s[o],i)&&c.isArray(s[o])&&(s[o]=us(s[o])),!a)}if(c.isFormData(t)&&c.isFunction(t.entries)){const r={};return c.forEachEntry(t,(n,s)=>{e(cs(n),s,r,0)}),r}return null}const ae=(t,e)=>t!=null&&c.hasOwnProp(t,e)?t[e]:void 0;function ls(t,e,r){if(c.isString(t))try{return(e||JSON.parse)(t),c.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const Re={transitional:ft,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,s=c.isObject(t);if(s&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return n?JSON.stringify(fr(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(s){const o=ae(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return as(t,o).toString();if((i=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=ae(this,"env"),l=a&&a.FormData;return ze(i?{"files[]":t}:t,l&&new l,o)}}return s||n?(e.setContentType("application/json",!1),ls(t)):t}],transformResponse:[function(t){const e=ae(this,"transitional")||Re.transitional,r=e&&e.forcedJSONParsing,n=ae(this,"responseType"),s=n==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(r&&!n||s)){const i=!(e&&e.silentJSONParsing)&&s;try{return JSON.parse(t,ae(this,"parseReviver"))}catch(o){if(i)throw o.name==="SyntaxError"?b.from(o,b.ERR_BAD_RESPONSE,this,null,ae(this,"response")):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:j.classes.FormData,Blob:j.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch","query"],t=>{Re.headers[t]={}});function Ke(t,e){const r=this||Re,n=e||r,s=I.from(n.headers);let i=n.data;return c.forEach(t,function(o){i=o.call(r,i,s.normalize(),e?e.status:void 0)}),s.normalize(),i}function mr(t){return!!(t&&t.__CANCEL__)}let Pe=class extends b{constructor(t,e,r){super(t??"canceled",b.ERR_CANCELED,e,r),this.name="CanceledError",this.__CANCEL__=!0}};function pr(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new b("Request failed with status code "+r.status,r.status>=400&&r.status<500?b.ERR_BAD_REQUEST:b.ERR_BAD_RESPONSE,r.config,r.request,r))}function hs(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function ds(t,e){t=t||10;const r=new Array(t),n=new Array(t);let s=0,i=0,o;return e=e!==void 0?e:1e3,function(a){const l=Date.now(),u=n[i];o||(o=l),r[s]=a,n[s]=l;let h=i,d=0;for(;h!==s;)d+=r[h++],h=h%t;if(s=(s+1)%t,s===i&&(i=(i+1)%t),l-o<e)return;const m=u&&l-u;return m?Math.round(d*1e3/m):void 0}}function fs(t,e){let r=0,n=1e3/e,s,i;const o=(a,l=Date.now())=>{r=l,s=null,i&&(clearTimeout(i),i=null),t(...a)};return[(...a)=>{const l=Date.now(),u=l-r;u>=n?o(a,l):(s=a,i||(i=setTimeout(()=>{i=null,o(s)},n-u)))},()=>s&&o(s)]}const qe=(t,e,r=3)=>{let n=0;const s=ds(50,250);return fs(i=>{if(!i||typeof i.loaded!="number")return;const o=i.loaded,a=i.lengthComputable?i.total:void 0,l=a!=null?Math.min(o,a):o,u=Math.max(0,l-n),h=s(u);n=Math.max(n,l);const d={loaded:l,total:a,progress:a?l/a:void 0,bytes:u,rate:h||void 0,estimated:h&&a?(a-l)/h:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(d)},r)},Tt=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},At=t=>(...e)=>c.asap(()=>t(...e)),ms=j.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,j.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(j.origin),j.navigator&&/(msie|trident)/i.test(j.navigator.userAgent)):()=>!0,ps=j.hasStandardBrowserEnv?{write(t,e,r,n,s,i,o){if(typeof document>"u")return;const a=[`${t}=${encodeURIComponent(e)}`];c.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),c.isString(n)&&a.push(`path=${n}`),c.isString(s)&&a.push(`domain=${s}`),i===!0&&a.push("secure"),c.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let r=0;r<e.length;r++){const n=e[r].replace(/^\s+/,""),s=n.indexOf("=");if(s!==-1&&n.slice(0,s)===t)return decodeURIComponent(n.slice(s+1))}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function gs(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function bs(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function gr(t,e,r){let n=!gs(e);return t&&(n||r===!1)?bs(t,e):e}const Ct=t=>t instanceof I?{...t}:t;function se(t,e){e=e||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(u,h,d,m){return c.isPlainObject(u)&&c.isPlainObject(h)?c.merge.call({caseless:m},u,h):c.isPlainObject(h)?c.merge({},h):c.isArray(h)?h.slice():h}function s(u,h,d,m){if(c.isUndefined(h)){if(!c.isUndefined(u))return n(void 0,u,d,m)}else return n(u,h,d,m)}function i(u,h){if(!c.isUndefined(h))return n(void 0,h)}function o(u,h){if(c.isUndefined(h)){if(!c.isUndefined(u))return n(void 0,u)}else return n(void 0,h)}function a(u,h,d){if(c.hasOwnProp(e,d))return n(u,h);if(c.hasOwnProp(t,d))return n(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:a,headers:(u,h,d)=>s(Ct(u),Ct(h),d,!0)};return c.forEach(Object.keys({...t,...e}),function(u){if(u==="__proto__"||u==="constructor"||u==="prototype")return;const h=c.hasOwnProp(l,u)?l[u]:s,d=c.hasOwnProp(t,u)?t[u]:void 0,m=c.hasOwnProp(e,u)?e[u]:void 0,p=h(d,m,u);c.isUndefined(p)&&h!==a||(r[u]=p)}),r}const ys=["content-type","content-length"];function ws(t,e,r){if(r!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,s])=>{ys.includes(n.toLowerCase())&&t.set(n,s)})}const _s=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16))),br=t=>{const e=se({},t),r=m=>c.hasOwnProp(e,m)?e[m]:void 0,n=r("data");let s=r("withXSRFToken");const i=r("xsrfHeaderName"),o=r("xsrfCookieName");let a=r("headers");const l=r("auth"),u=r("baseURL"),h=r("allowAbsoluteUrls"),d=r("url");if(e.headers=a=I.from(a),e.url=dr(gr(u,d,h),t.params,t.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?_s(l.password):""))),c.isFormData(n)&&(j.hasStandardBrowserEnv||j.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):c.isFunction(n.getHeaders)&&ws(a,n.getHeaders(),r("formDataHeaderPolicy"))),j.hasStandardBrowserEnv&&(c.isFunction(s)&&(s=s(e)),s===!0||s==null&&ms(e.url))){const m=i&&o&&ps.read(o);m&&a.set(i,m)}return e},vs=typeof XMLHttpRequest<"u",Ss=vs&&function(t){return new Promise(function(e,r){const n=br(t);let s=n.data;const i=I.from(n.headers).normalize();let{responseType:o,onUploadProgress:a,onDownloadProgress:l}=n,u,h,d,m,p;function v(){m&&m(),p&&p(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let f=new XMLHttpRequest;f.open(n.method.toUpperCase(),n.url,!0),f.timeout=n.timeout;function S(){if(!f)return;const y=I.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),_={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:y,config:t,request:f};pr(function(O){e(O),v()},function(O){r(O),v()},_),f=null}"onloadend"in f?f.onloadend=S:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.startsWith("file:"))||setTimeout(S)},f.onabort=function(){f&&(r(new b("Request aborted",b.ECONNABORTED,t,f)),v(),f=null)},f.onerror=function(y){const _=y&&y.message?y.message:"Network Error",O=new b(_,b.ERR_NETWORK,t,f);O.event=y||null,r(O),v(),f=null},f.ontimeout=function(){let y=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const _=n.transitional||ft;n.timeoutErrorMessage&&(y=n.timeoutErrorMessage),r(new b(y,_.clarifyTimeoutError?b.ETIMEDOUT:b.ECONNABORTED,t,f)),v(),f=null},s===void 0&&i.setContentType(null),"setRequestHeader"in f&&c.forEach(cr(i),function(y,_){f.setRequestHeader(_,y)}),c.isUndefined(n.withCredentials)||(f.withCredentials=!!n.withCredentials),o&&o!=="json"&&(f.responseType=n.responseType),l&&([d,p]=qe(l,!0),f.addEventListener("progress",d)),a&&f.upload&&([h,m]=qe(a),f.upload.addEventListener("progress",h),f.upload.addEventListener("loadend",m)),(n.cancelToken||n.signal)&&(u=y=>{f&&(r(!y||y.type?new Pe(null,t,f):y),f.abort(),v(),f=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const g=hs(n.url);if(g&&!j.protocols.includes(g)){r(new b("Unsupported protocol "+g+":",b.ERR_BAD_REQUEST,t));return}f.send(s||null)})},Es=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const r=new AbortController;let n=!1;const s=function(l){if(!n){n=!0,o();const u=l instanceof Error?l:this.reason;r.abort(u instanceof b?u:new Pe(u instanceof Error?u.message:u))}};let i=e&&setTimeout(()=>{i=null,s(new b(`timeout of ${e}ms exceeded`,b.ETIMEDOUT))},e);const o=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),t=null)};t.forEach(l=>l.addEventListener("abort",s));const{signal:a}=r;return a.unsubscribe=()=>c.asap(o),a},Os=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,s;for(;n<r;)s=n+e,yield t.slice(n,s),n=s},xs=async function*(t,e){for await(const r of Rs(t))yield*Os(r,e)},Rs=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},Nt=(t,e,r,n)=>{const s=xs(t,e);let i=0,o,a=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:h}=await s.next();if(u){a(),l.close();return}let d=h.byteLength;if(r){let m=i+=d;r(m)}l.enqueue(new Uint8Array(h))}catch(u){throw a(u),u}},cancel(l){return a(l),s.return()}},{highWaterMark:2})};function Ps(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const r=t.slice(5,e),n=t.slice(e+1);if(/;base64/i.test(r)){let i=n.length;const o=n.length;for(let d=0;d<o;d++)if(n.charCodeAt(d)===37&&d+2<o){const m=n.charCodeAt(d+1),p=n.charCodeAt(d+2);(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102)&&(i-=2,d+=2)}let a=0,l=o-1;const u=d=>d>=2&&n.charCodeAt(d-2)===37&&n.charCodeAt(d-1)===51&&(n.charCodeAt(d)===68||n.charCodeAt(d)===100);l>=0&&(n.charCodeAt(l)===61?(a++,l--):u(l)&&(a++,l-=3)),a===1&&l>=0&&(n.charCodeAt(l)===61||u(l))&&a++;const h=Math.floor(i/4)*3-(a||0);return h>0?h:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(n,"utf8");let s=0;for(let i=0,o=n.length;i<o;i++){const a=n.charCodeAt(i);if(a<128)s+=1;else if(a<2048)s+=2;else if(a>=55296&&a<=56319&&i+1<o){const l=n.charCodeAt(i+1);l>=56320&&l<=57343?(s+=4,i++):s+=3}else s+=3}return s}const pt="1.16.1",jt=64*1024,{isFunction:je}=c,Dt=(t,...e)=>{try{return!!t(...e)}catch{return!1}},ks=t=>{const e=c.global!==void 0&&c.global!==null?c.global:globalThis,{ReadableStream:r,TextEncoder:n}=e;t=c.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:s,Request:i,Response:o}=t,a=s?je(s):typeof fetch=="function",l=je(i),u=je(o);if(!a)return!1;const h=a&&je(r),d=a&&(typeof n=="function"?(g=>y=>g.encode(y))(new n):async g=>new Uint8Array(await new i(g).arrayBuffer())),m=l&&h&&Dt(()=>{let g=!1;const y=new i(j.origin,{body:new r,method:"POST",get duplex(){return g=!0,"half"}}),_=y.headers.has("Content-Type");return y.body!=null&&y.body.cancel(),g&&!_}),p=u&&h&&Dt(()=>c.isReadableStream(new o("").body)),v={stream:p&&(g=>g.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!v[g]&&(v[g]=(y,_)=>{let O=y&&y[g];if(O)return O.call(y);throw new b(`Response type '${g}' is not supported`,b.ERR_NOT_SUPPORT,_)})});const f=async g=>{if(g==null)return 0;if(c.isBlob(g))return g.size;if(c.isSpecCompliantForm(g))return(await new i(j.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(c.isArrayBufferView(g)||c.isArrayBuffer(g))return g.byteLength;if(c.isURLSearchParams(g)&&(g=g+""),c.isString(g))return(await d(g)).byteLength},S=async(g,y)=>c.toFiniteNumber(g.getContentLength())??f(y);return async g=>{let{url:y,method:_,data:O,signal:J,cancelToken:ie,timeout:fe,onDownloadProgress:K,onUploadProgress:z,responseType:M,headers:D,withCredentials:W="same-origin",fetchOptions:X,maxContentLength:A,maxBodyLength:me}=br(g);const C=c.isNumber(A)&&A>-1,w=c.isNumber(me)&&me>-1;let R=s||fetch;M=M?(M+"").toLowerCase():"text";let T=Es([J,ie&&ie.toAbortSignal()],fe),k=null;const L=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let pe;try{if(C&&typeof y=="string"&&y.startsWith("data:")&&Ps(y)>A)throw new b("maxContentLength size of "+A+" exceeded",b.ERR_BAD_RESPONSE,g,k);if(w&&_!=="get"&&_!=="head"){const x=await S(D,O);if(typeof x=="number"&&isFinite(x)&&x>me)throw new b("Request body larger than maxBodyLength limit",b.ERR_BAD_REQUEST,g,k)}if(z&&m&&_!=="get"&&_!=="head"&&(pe=await S(D,O))!==0){let x=new i(y,{method:"POST",body:O,duplex:"half"}),oe;if(c.isFormData(O)&&(oe=x.headers.get("content-type"))&&D.setContentType(oe),x.body){const[Ce,Ne]=Tt(pe,qe(At(z)));O=Nt(x.body,jt,Ce,Ne)}}c.isString(W)||(W=W?"include":"omit");const N=l&&"credentials"in i.prototype;if(c.isFormData(O)){const x=D.getContentType();x&&/^multipart\/form-data/i.test(x)&&!/boundary=/i.test(x)&&D.delete("content-type")}D.set("User-Agent","axios/"+pt,!1);const Q={...X,signal:T,method:_.toUpperCase(),headers:cr(D.normalize()),body:O,duplex:"half",credentials:N?W:void 0};k=l&&new i(y,Q);let Y=await(l?R(k,X):R(y,Q));if(C){const x=c.toFiniteNumber(Y.headers.get("content-length"));if(x!=null&&x>A)throw new b("maxContentLength size of "+A+" exceeded",b.ERR_BAD_RESPONSE,g,k)}const Xe=p&&(M==="stream"||M==="response");if(p&&Y.body&&(K||C||Xe&&L)){const x={};["status","statusText","headers"].forEach(ge=>{x[ge]=Y[ge]});const oe=c.toFiniteNumber(Y.headers.get("content-length")),[Ce,Ne]=K&&Tt(oe,qe(At(K),!0))||[];let Et=0;const zr=ge=>{if(C&&(Et=ge,Et>A))throw new b("maxContentLength size of "+A+" exceeded",b.ERR_BAD_RESPONSE,g,k);Ce&&Ce(ge)};Y=new o(Nt(Y.body,jt,zr,()=>{Ne&&Ne(),L&&L()}),x)}M=M||"text";let H=await v[c.findKey(v,M)||"text"](Y,g);if(C&&!p&&!Xe){let x;if(H!=null&&(typeof H.byteLength=="number"?x=H.byteLength:typeof H.size=="number"?x=H.size:typeof H=="string"&&(x=typeof n=="function"?new n().encode(H).byteLength:H.length)),typeof x=="number"&&x>A)throw new b("maxContentLength size of "+A+" exceeded",b.ERR_BAD_RESPONSE,g,k)}return!Xe&&L&&L(),await new Promise((x,oe)=>{pr(x,oe,{data:H,headers:I.from(Y.headers),status:Y.status,statusText:Y.statusText,config:g,request:k})})}catch(N){if(L&&L(),T&&T.aborted&&T.reason instanceof b){const Q=T.reason;throw Q.config=g,k&&(Q.request=k),N!==Q&&(Q.cause=N),Q}throw N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)?Object.assign(new b("Network Error",b.ERR_NETWORK,g,k,N&&N.response),{cause:N.cause||N}):b.from(N,N&&N.code,g,k,N&&N.response)}}},Ts=new Map,yr=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:s}=e,i=[n,s,r];let o=i.length,a=o,l,u,h=Ts;for(;a--;)l=i[a],u=h.get(l),u===void 0&&h.set(l,u=a?new Map:ks(e)),h=u;return u};yr();const gt={http:Xn,xhr:Ss,fetch:{get:yr}};c.forEach(gt,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const It=t=>`- ${t}`,As=t=>c.isFunction(t)||t===null||t===!1;function Cs(t,e){t=c.isArray(t)?t:[t];const{length:r}=t;let n,s;const i={};for(let o=0;o<r;o++){n=t[o];let a;if(s=n,!As(n)&&(s=gt[(a=String(n)).toLowerCase()],s===void 0))throw new b(`Unknown adapter '${a}'`);if(s&&(c.isFunction(s)||(s=s.get(e))))break;i[a||"#"+o]=s}if(!s){const o=Object.entries(i).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=r?o.length>1?`since :
|
|
4
|
+
`+o.map(It).join(`
|
|
5
|
+
`):" "+It(o[0]):"as no adapter specified";throw new b("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s}const wr={getAdapter:Cs,adapters:gt};function Ze(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Pe(null,t)}function Ft(t){return Ze(t),t.headers=I.from(t.headers),t.data=Ke.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),wr.getAdapter(t.adapter||Re.adapter,t)(t).then(function(e){Ze(t),t.response=e;try{e.data=Ke.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=I.from(e.headers),e},function(e){if(!mr(e)&&(Ze(t),e&&e.response)){t.response=e.response;try{e.response.data=Ke.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=I.from(e.response.headers)}return Promise.reject(e)})}const He={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{He[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Mt={};He.transitional=function(t,e,r){function n(s,i){return"[Axios v"+pt+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,o)=>{if(t===!1)throw new b(n(i," has been removed"+(e?" in "+e:"")),b.ERR_DEPRECATED);return e&&!Mt[i]&&(Mt[i]=!0,console.warn(n(i," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(s,i,o):!0}};He.spelling=function(t){return(e,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Ns(t,e,r){if(typeof t!="object")throw new b("options must be an object",b.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let s=n.length;for(;s-- >0;){const i=n[s],o=Object.prototype.hasOwnProperty.call(e,i)?e[i]:void 0;if(o){const a=t[i],l=a===void 0||o(a,i,t);if(l!==!0)throw new b("option "+i+" must be "+l,b.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new b("Unknown option "+i,b.ERR_BAD_OPTION)}}const Ue={assertOptions:Ns,validators:He},U=Ue.validators;let ne=class{constructor(t){this.defaults=t||{},this.interceptors={request:new kt,response:new kt}}async request(t,e){try{return await this._request(t,e)}catch(r){if(r instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const s=(()=>{if(!n.stack)return"";const i=n.stack.indexOf(`
|
|
6
6
|
`);return i===-1?"":n.stack.slice(i+1)})();try{if(!r.stack)r.stack=s;else if(s){const i=s.indexOf(`
|
|
7
7
|
`),o=i===-1?-1:s.indexOf(`
|
|
8
8
|
`,i+1),a=o===-1?"":s.slice(o+1);String(r.stack).endsWith(a)||(r.stack+=`
|
|
9
|
-
`+s)}}catch{}}throw r}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=se(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:s}=e;r!==void 0&&Ue.assertOptions(r,{silentJSONParsing:U.transitional(U.boolean),forcedJSONParsing:U.transitional(U.boolean),clarifyTimeoutError:U.transitional(U.boolean),legacyInterceptorReqResOrdering:U.transitional(U.boolean)},!1),n!=null&&(u.isFunction(n)?e.paramsSerializer={serialize:n}:Ue.assertOptions(n,{encode:U.function,serialize:U.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),Ue.assertOptions(e,{baseUrl:U.spelling("baseURL"),withXsrfToken:U.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=s&&u.merge(s.common,s[e.method]);s&&u.forEach(["delete","get","head","post","put","patch","query","common"],p=>{delete s[p]}),e.headers=I.concat(i,s);const o=[];let a=!0;this.interceptors.request.forEach(function(p){if(typeof p.runWhen=="function"&&p.runWhen(e)===!1)return;a=a&&p.synchronous;const v=e.transitional||dt;v&&v.legacyInterceptorReqResOrdering?o.unshift(p.fulfilled,p.rejected):o.push(p.fulfilled,p.rejected)});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let c,h=0,d;if(!a){const p=[It.bind(this),void 0];for(p.unshift(...o),p.push(...l),d=p.length,c=Promise.resolve(e);h<d;)c=c.then(p[h++],p[h++]);return c}d=o.length;let m=e;for(;h<d;){const p=o[h++],v=o[h++];try{m=p(m)}catch(f){v.call(this,f);break}}try{c=It.call(this,m)}catch(p){return Promise.reject(p)}for(h=0,d=l.length;h<d;)c=c.then(l[h++],l[h++]);return c}getUri(t){t=se(this.defaults,t);const e=mr(t.baseURL,t.url,t.allowAbsoluteUrls);return lr(e,t.params,t.paramsSerializer)}};u.forEach(["delete","get","head","options"],function(t){ne.prototype[t]=function(e,r){return this.request(se(r||{},{method:t,url:e,data:(r||{}).data}))}});u.forEach(["post","put","patch","query"],function(t){function e(r){return function(n,s,i){return this.request(se(i||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:s}))}}ne.prototype[t]=e(),t!=="query"&&(ne.prototype[t+"Form"]=e(!0))});let Ts=class yr{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{n.subscribe(a),i=a}).then(s);return o.cancel=function(){n.unsubscribe(i)},o},e(function(s,i,o){n.reason||(n.reason=new Pe(s,i,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new yr(function(r){e=r}),cancel:e}}};function Cs(t){return function(e){return t.apply(null,e)}}function Ns(t){return u.isObject(t)&&t.isAxiosError===!0}const ot={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ot).forEach(([t,e])=>{ot[e]=t});function wr(t){const e=new ne(t),r=Zt(ne.prototype.request,e);return u.extend(r,ne.prototype,e,{allOwnKeys:!0}),u.extend(r,e,null,{allOwnKeys:!0}),r.create=function(n){return wr(se(t,n))},r}const P=wr(Re);P.Axios=ne;P.CanceledError=Pe;P.CancelToken=Ts;P.isCancel=dr;P.VERSION=mt;P.toFormData=ze;P.AxiosError=b;P.Cancel=P.CanceledError;P.all=function(t){return Promise.all(t)};P.spread=Cs;P.isAxiosError=Ns;P.mergeConfig=se;P.AxiosHeaders=I;P.formToJSON=t=>hr(u.isHTMLForm(t)?new FormData(t):t);P.getAdapter=br.getAdapter;P.HttpStatusCode=ot;P.default=P;const{Axios:Ko,AxiosError:Zo,CanceledError:ea,isCancel:ta,CancelToken:ra,VERSION:na,all:sa,Cancel:ia,isAxiosError:oa,spread:aa,toFormData:ca,AxiosHeaders:ua,HttpStatusCode:la,formToJSON:ha,getAdapter:da,mergeConfig:fa,create:ma}=P,gt=P.create({baseURL:location.origin,timeout:6e4,params:{}});gt.interceptors.response.use(t=>t,t=>{if(t.response){if(t.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(n){n&&OpenC3Auth.setTokens()}),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let e=`HTTP ${t.response.status} - `;t.response?.statusText&&(e+=`${t.response.statusText} `),t.response?.config?.data&&(e+=`${t.response.config.data} `),t.response?.data?.message?e+=`${t.response.data.message}`:t.response?.data?.exception?e+=`${t.response.data.exception}`:t.response?.data?.error?.message?(t.response.data.error.class&&(e+=`${t.response.data.error.class} `),e+=`${t.response.data.error.message}`):e+=`${t.response?.data}`;const{$cosmosNotify:r}=window;throw r&&r.serious({title:"Network error",body:e}),t}else throw t});const De=async function(t,e,{data:r,params:n={},headers:s,noAuth:i=!1,noScope:o=!1,onUploadProgress:a=!1}={}){if(!i){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}s.Authorization=localStorage.openc3Token}return s.manual=!0,!o&&!n.scope&&(n.scope=window.openc3Scope),gt({method:t,url:e,data:r,params:n,headers:s,onUploadProgress:a})},at={Accept:"application/json"},Mt={...at,"Content-Type":"application/json"},_r={get:function(t,{params:e,headers:r=at,noScope:n,noAuth:s,onUploadProgress:i}={}){return De("get",t,{params:e,headers:r,noScope:n,noAuth:s,onUploadProgress:i})},put:function(t,{data:e,params:r,headers:n=Mt,noScope:s,noAuth:i,onUploadProgress:o}={}){return De("put",t,{data:e,params:r,headers:n,noScope:s,noAuth:i,onUploadProgress:o})},post:function(t,{data:e,params:r,headers:n=Mt,noScope:s,noAuth:i,onUploadProgress:o}={}){return De("post",t,{data:e,params:r,headers:n,noScope:s,noAuth:i,onUploadProgress:o})},delete:function(t,{params:e,headers:r=at,noScope:n,noAuth:s,onUploadProgress:i}={}){return De("delete",t,{params:e,headers:r,noScope:n,noAuth:s,onUploadProgress:i})}};let Je=()=>({emit(t,...e){for(let r=this.events[t]||[],n=0,s=r.length;n<s;n++)r[n](...e)},events:{},on(t,e){return(this.events[t]||=[]).push(e),()=>{this.events[t]=this.events[t]?.filter(r=>e!==r)}}});class ke extends Error{constructor(e,r){e instanceof Error?(super(e.message),this.cause=e):super(e),this.reason=r,this.name="ReasonError"}}class bt extends ke{constructor(e){super("Rejected",e),this.name="SubscriptionRejectedError"}}class js extends ke{constructor(e){super(e||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class $ extends ke{constructor(e,r){r?super(e,r):super("Disconnected",e),this.name="DisconnectedError"}}class Ds extends ${constructor(e){super(e,"stale_connection"),this.name="StaleConnectionError"}}function vr(t){return t?`{${Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>{let r=JSON.stringify(t[e]);return`${JSON.stringify(e)}:${r}`}).join(",")}}`:""}class Is{constructor(e){this.channel=e,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",e=>{if(e.type==="info"){this._state||(this._state=this.stateFromInfo(e));return}this._state&&(e.type==="join"?this._state[e.id]=e.info:e.type==="leave"&&delete this._state[e.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(e=>e()),this.listeners.length=0}async join(e,r){if(!this._info)return this._info={id:String(e),info:r},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let e=await this.channel.perform("$presence:leave");return delete this._info,e}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let e=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(e),this._state}finally{delete this._promise}}stateFromInfo(e){return e.records.reduce((r,{id:n,info:s})=>(r[n]=s,r),{})}}const Z=Symbol("state");class Sr{constructor(e={}){this.emitter=Je(),this.params=Object.freeze(e),this.presence=new Is(this),this.initialConnect=!0,this[Z]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=vr({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[Z]}attached(e){if(this.receiver){if(this.receiver!==e)throw Error("Already connected to a different receiver");return!1}return this.receiver=e,!0}connecting(){this[Z]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[Z]="connected";let e=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:e})):this.emit("connect",{reconnect:!0,restored:e})}restored(){if(this.state==="connected")throw Error("Already connected");this[Z]="connected";let e=!0,r=!0;this.initialConnect=!1,this.emit("connect",{reconnect:r,restored:e})}disconnected(e){this.state==="disconnected"||this.state==="closed"||(this[Z]="disconnected",this.presence.reset(),this.emit("disconnect",e))}closed(e){this.state!=="closed"&&(this[Z]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",e))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(e,r){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,e,r)}async send(e){return this.perform(void 0,e)}async whisper(e){try{await this.perform("$whisper",e)}catch(r){let n=this.receiver?this.receiver.logger:null;n&&n.warn("whisper failed: ",r)}}receive(e,r){this.emit("message",e,r)}on(e,r){return this.emitter.on(e,r)}once(e,r){let n=this.emitter.on(e,(...s)=>{n(),r(...s)});return n}emit(e,...r){return this.emitter.emit(e,...r)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((e,r)=>{let n=[()=>delete this._pendingSubscribe];n.push(this.on("connect",()=>{n.forEach(s=>s()),e()})),n.push(this.on("close",s=>{n.forEach(i=>i()),r(s||new ke("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class Fs{constructor(e){this.id=e,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(e){this.channels.includes(e)||this.channels.push(e)}remove(e){let r=this.channels.indexOf(e);r>-1&&this.channels.splice(r,1)}notify(e,...r){this.state=e==="restored"?"connected":e,r.length===1?this.channels.forEach(n=>n[e](r[0])):this.channels.forEach(n=>n[e]())}pending(e){this._checkIntent(e);let r=this._pendings[0];return!r||r.intent!==e?Promise.resolve():r.promise}ensureResubscribed(){this.disposed||(this.intent=void 0,this.ensureSubscribed())}ensureSubscribed(){if(this.intent!=="subscribed"){if(this.disposed)throw Error("Subscription is disposed");this.intent="subscribed",!this._mergeWithPending("unsubscribed")&&this.subscriber(this)}}maybeUnsubscribe(){this.disposed||this.intent==="unsubscribed"||this.channels.length>0||(this.intent="unsubscribed",this._mergeWithPending("subscribed"))||this.unsubscriber(this)}async acquire(e){this._checkIntent(e);let r,n={promise:new Promise(i=>{r=i}),intent:e,release:()=>{this._pendings.splice(this._pendings.indexOf(n),1),r(n)},canceled:!1,acquired:!1},s=this._pendingTop;return this._pendings.push(n),s&&await s.promise,this.gvl&&await this.gvl.acquire(n,e),n.acquired=!0,n}close(e){this.disposed=!0,this.intent=void 0,this.notify("closed",e)}_checkIntent(e){if(!(e==="unsubscribed"||e==="subscribed"))throw Error(`Unknown subscription intent: ${e}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(e){let r=this._pendingTop;return!r||r.acquired||r.intent!==e?!1:(this._pendings.pop(),r.canceled=!0,!0)}}class Ms{constructor(){this.queue=[]}async acquire(e,r){r==="subscribed"&&(this.queue.push(e.promise.then(()=>{this.queue.splice(this.queue.indexOf(e),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class Ls{constructor(e){e.concurrentSubscribes===!1&&(this.glv=new Ms),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(e){return this._subscriptions[e]}create(e,{subscribe:r,unsubscribe:n}){let s=this._subscriptions[e]=new Fs(e);return s.remoteId=this._localToRemote[e],s.subscriber=r,s.unsubscriber=n,s.gvl=this.glv,s}remove(e){delete this._subscriptions[e],delete this._localToRemote[e]}storeRemoteId(e,r){this._localToRemote[e]=r;let n=this.get(e);n&&(n.remoteId=r)}}class Us{constructor(e={}){this.subscriptions=new Ls(e),this._pendingMessages=[],this._remoteToLocal={}}subscribe(e,r){this._remoteToLocal[r]=e,this.subscriptions.storeRemoteId(e,r),this.flush(r)}unsubscribe(e){let r=this.subscriptions.get(e);if(!r)return;let n=r.remoteId;n&&delete this._remoteToLocal[n],this.subscriptions.remove(e)}transmit(e,r,n){let s=this._remoteToLocal[e];if(!s){this._pendingMessages.push([e,r,n]);return}let i=this.subscriptions.get(s);i&&i.channels.forEach(o=>{o.receive(r,n)})}notify(e,r,n){let s=this._remoteToLocal[e];if(!s)return;let i=this.subscriptions.get(s);i&&i.channels.forEach(o=>o.emit(r,n))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(e=>e.channels)}flush(e){let r=[];for(let n of this._pendingMessages)n[0]===e?this.transmit(n[0],n[1],n[2]):r.push(n);this._pendingMessages=r}}const Lt={debug:0,info:1,warn:2,error:3};class Or{constructor(e){this.level=e||"warn"}log(e,r,n){Lt[e]<Lt[this.level]||this.writeLogEntry(e,r,n)}writeLogEntry(){throw Error("Not implemented")}debug(e,r){this.log("debug",e,r)}info(e,r){this.log("info",e,r)}warn(e,r){this.log("warn",e,r)}error(e,r){this.log("error",e,r)}}class Ae extends Or{writeLogEntry(){}}class qs{encode(e){return JSON.stringify(e)}decode(e){try{return JSON.parse(e)}catch{}}}let Ws=0;class Er{constructor(e={}){let{logger:r}=e;this.logger=r||new Ae,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=e.subscribeCooldownInterval||250,this.subscribeRetryInterval=e.subscribeRetryInterval||5e3}attached(e){this.cable=e}subscribe(e,r){let n={channel:e};r&&Object.assign(n,r);let s=vr(n);if(this.pendingUnsubscriptions[s]){let o=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${o}`,s),new Promise(a=>{setTimeout(()=>{a(this.subscribe(e,r))},o)})}if(this.pendingSubscriptions[s])return this.logger.warn("subscription is already pending, skipping",s),Promise.reject(Error("Already subscribing"));let i=this.subscribeRetryInterval;return new Promise((o,a)=>{let l=++Ws;this.pendingSubscriptions[s]={resolve:o,reject:a,id:l},this.cable.send(this.buildSubscribeRequest(s)),this.maybeRetrySubscribe(l,s,i)})}buildSubscribeRequest(e){return{command:"subscribe",identifier:e}}maybeRetrySubscribe(e,r,n){setTimeout(()=>{let s=this.pendingSubscriptions[r];s&&s.id===e&&(this.logger.warn(`no subscription ack received in ${n}ms, retrying subscribe`,r),this.cable.send(this.buildSubscribeRequest(r)),this.maybeExpireSubscribe(e,r,n))},n)}maybeExpireSubscribe(e,r,n){setTimeout(()=>{let s=this.pendingSubscriptions[r];s&&s.id===e&&(delete this.pendingSubscriptions[r],s.reject(new js(`Haven't received subscription ack in ${n*2}ms for ${r}`)))},n)}unsubscribe(e){return this.cable.send({command:"unsubscribe",identifier:e}),this.pendingUnsubscriptions[e]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[e]},this.subscribeCooldownInterval),Promise.resolve()}perform(e,r,n){return r==="$whisper"?this.whisper(e,n):(n||(n={}),n.action||=r,this.cable.send({command:"message",identifier:e,data:JSON.stringify(n)}),Promise.resolve())}whisper(e,r){return this.cable.send({command:"whisper",identifier:e,data:r}),Promise.resolve()}receive(e){if(typeof e!="object"){this.logger.error("unsupported message format",{message:e});return}let{type:r,identifier:n,message:s,reason:i,reconnect:o}=e;if(r==="ping")return this.cable.keepalive(e.message);if(this.cable.keepalive(),r==="welcome"){let a=e.sid;return a&&this.cable.setSessionId(a),this.cable.connected()}if(r==="disconnect"){let a=new $(i);this.reset(a),o===!1?this.cable.closed(a):this.cable.disconnected(a);return}if(r==="confirm_subscription"){let a=this.pendingSubscriptions[n];if(!a){this.logger.error("subscription not found, unsubscribing",{type:r,identifier:n}),this.unsubscribe(n);return}return delete this.pendingSubscriptions[n],a.resolve(n)}if(r==="reject_subscription"){let a=this.pendingSubscriptions[n];return a?(delete this.pendingSubscriptions[n],a.reject(new bt)):this.logger.error("subscription not found",{type:r,identifier:n})}if(s)return{identifier:n,message:s};this.logger.warn(`unknown message type: ${r}`,{message:e})}reset(e){for(let r in this.pendingSubscriptions)this.pendingSubscriptions[r].reject(e);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const Ut=()=>Date.now()/1e3|0;class $s extends Er{constructor(e={}){super(e),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=e.historyTimestamp,this.disableSessionRecovery=e.disableSessionRecovery,this.restoreSince===void 0&&(this.restoreSince=Ut()),this.sessionId=void 0,this.sendPongs=e.pongs}reset(e){for(let r in this.pendingPresence)this.pendingPresence[r].reject(e);return this.pendingPresence={},super.reset()}receive(e){if(typeof e!="object"){this.logger.error("unsupported message format",{message:e});return}let{type:r,identifier:n,message:s}=e;if(r==="disconnect")return delete this.sessionId,this.cable.setSessionId(""),super.receive(e);if(r==="reject_subscription")return super.receive(e);if(r==="confirm_subscription")return this.subscriptionStreams[n]||(this.subscriptionStreams[n]=new Set),super.receive(e);if(r==="ping")return this.restoreSince&&(this.restoreSince=Ut()),this.sendPongs&&this.sendPong(),this.cable.keepalive(e.message);if(this.cable.keepalive(),r==="confirm_history"){this.logger.debug("history result received",e),this.cable.notify("history_received",n);return}if(r==="reject_history"){this.logger.warn("failed to retrieve history",e),this.cable.notify("history_not_found",n);return}if(r==="welcome"){if(this.disableSessionRecovery||(this.sessionId=e.sid,this.sessionId&&this.cable.setSessionId(this.sessionId)),e.restored){let i=e.restored_ids||Object.keys(this.subscriptionStreams);for(let o of i)this.cable.send({identifier:o,command:"history",history:this.historyRequestFor(o)}),this.presenceInfo[o]&&this.cable.send({identifier:o,command:"join",presence:this.presenceInfo[o]});return this.cable.restored(i)}return this.cable.connected(this.sessionId)}if(r==="presence"){let i=s.type;if(i==="info"){let o=this.pendingPresence[n];o&&(delete this.pendingPresence[n],o.resolve(s))}else if(i==="error"){let o=this.pendingPresence[n];o&&(delete this.pendingPresence[n],o.reject(new Error("failed to retrieve presence")))}return{type:r,identifier:n,message:s}}if(s){let i=this.trackStreamPosition(n,e.stream_id,e.epoch,e.offset);return{identifier:n,message:s,meta:i}}this.logger.warn(`unknown message type: ${r}`,{message:e})}perform(e,r,n){switch(r){case"$presence:join":return this.join(e,n);case"$presence:leave":return this.leave(e,n);case"$presence:info":return this.presence(e,n)}return super.perform(e,r,n)}unsubscribe(e){return delete this.presenceInfo[e],super.unsubscribe(e)}buildSubscribeRequest(e){let r=super.buildSubscribeRequest(e),n=this.historyRequestFor(e);n&&(r.history=n,this.pendingHistory[e]=!0);let s=this.presenceInfo[e];return s&&(r.presence=s),r}recoverableClosure(){return!!this.sessionId}historyRequestFor(e){let r={},n=!1;if(this.subscriptionStreams[e])for(let s of this.subscriptionStreams[e]){let i=this.streamsPositions[s];i&&(n=!0,r[s]=i)}if(!(!n&&!this.restoreSince))return{since:this.restoreSince,streams:r}}trackStreamPosition(e,r,n,s){if(!(!r||!n))return this.subscriptionStreams[e]||(this.subscriptionStreams[e]=new Set),this.subscriptionStreams[e].add(r),this.streamsPositions[r]={epoch:n,offset:s},{stream:r,epoch:n,offset:s}}async sendPong(){await new Promise(e=>setTimeout(e,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(e,r){return this.presenceInfo[e]=r,this.cable.send({command:"join",identifier:e,presence:r}),Promise.resolve()}async leave(e,r){return delete this.presenceInfo[e],this.cable.send({command:"leave",identifier:e,presence:r}),Promise.resolve()}presence(e,r){return this.pendingPresence[e]?(this.logger.warn("presence is already pending, skipping",e),Promise.reject(Error("presence request is already pending"))):new Promise((n,s)=>{this.pendingPresence[e]={resolve:n,reject:s},this.cable.send({command:"presence",identifier:e,data:r})})}}class Bs extends ke{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class xr extends Sr{static identifier="__ghost__";constructor(e,r){super(r),this.channelId=e}set channelId(e){this._channelId=e}get channelId(){return this._channelId}}const Ys="$pubsub";class qt extends Sr{static identifier=Ys;async perform(e,r){if(e.startsWith("$"))return super.perform(e,r);throw Error("not implemented")}}const ee=Symbol("state");let zs=class{constructor({transport:t,protocol:e,encoder:r,logger:n,lazy:s,hubOptions:i,performFailures:o,transportConfigurator:a}){this.emitter=Je(),this.transport=t,this.encoder=r,this.logger=n||new Ae,this.protocol=e,this.performFailures=o||"throw",this.protocol.attached(this),this.hub=new Us(i||{}),this[ee]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transportConfigurator=a,this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,s===!1&&this.connect().catch(()=>{})}get state(){return this[ee]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();let t=this.state==="idle";this[ee]="connecting";let e=this.pendingConnect();this.logger.debug("connecting");try{this.transportConfigurator&&await this.transportConfigurator(this.transport,{initial:t}),await this.transport.open()}catch(r){this.handleClose(r)}return e}setSessionId(t){this.sessionId=t,this.transport.setParam("sid",t)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[ee]="connected",this.recovering&&this.hub.subscriptions.all().forEach(e=>e.notify("disconnected",new $("recovery_failed"))),this.hub.subscriptions.all().forEach(e=>this._resubscribe(e));let t=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:t})):this.emit("connect",{reconnect:!0,restored:t})}restored(t){this.logger.info("connection recovered",{remoteIds:t}),this[ee]="connected",this.hub.subscriptions.all().forEach(n=>{t&&n.remoteId&&t.includes(n.remoteId)?n.notify("restored"):(n.notify("disconnected",new $("recovery_failed")),this._resubscribe(n))});let e=!this.initialConnect,r=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:e,restored:r})}notify(t,e,r){e&&typeof e!="string"&&(r=e,e=void 0),e?this.hub.notify(e,"info",{type:t,data:r}):this.emit("info",{type:t,data:r})}handleClose(t){this.logger.debug("transport closed",{error:t}),this.disconnected(new $(t,"transport_closed"))}disconnected(t){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:t}),this[ee]="disconnected",this.recovering=this.protocol.recoverableClosure(t),this.recovering?this.hub.subscriptions.all().forEach(e=>e.notify("connecting")):this.hub.subscriptions.all().forEach(e=>{e.notify("disconnected",t)}),this.protocol.reset(t),this.hub.close(),this.transport.close(),this.emit("disconnect",t))}closed(t){if(this.state==="closed"||this.state==="idle")return;let e;t&&(e=t instanceof $?t:new $(t,void 0)),this.logger.info("closed",{reason:t||"user"}),this[ee]="closed";let r=e||new $("cable_closed");this.hub.subscriptions.all().forEach(n=>n.notify("disconnected",r)),this.hub.close(),this.protocol.reset(),this.transport.close(),this.initialConnect=!0,this.emit("close",e)}disconnect(){this.closed()}handleIncoming(t){if(this.state==="closed"||this.state==="idle")return;let e=this.encoder.decode(t);if(e===void 0){this.logger.error("failed to decode message",{message:t});return}this.logger.debug("incoming data",e);let r=this.protocol.receive(e);if(r){this.logger.debug("processed incoming message",r);let{type:n,identifier:s,message:i,meta:o}=r;n?this.hub.notify(s,n,i):this.hub.transmit(s,i,o)}}send(t){if(this.state==="closed")throw Error("Cable is closed");let e=this.encoder.encode(t);if(e===void 0){this.logger.error("failed to encode message",{message:t});return}this.logger.debug("outgoing message",t),this.transport.send(e)}keepalive(t){this.emit("keepalive",t)}streamFrom(t){let e=new qt({stream_name:t});return this.subscribe(e)}streamFromSigned(t){let e=new qt({signed_stream_name:t});return this.subscribe(e)}subscribeTo(t,e){let r,n;return typeof t=="string"&&(n=t,t=xr),r=n?new t(n,e):new t(e),this.subscribe(r)}subscribe(t){if(!t.attached(this))return t;let e=t.identifier;t.connecting();let r=this.hub.subscriptions.get(e)||this.hub.subscriptions.create(e,{subscribe:n=>this._subscribe(n,t.channelId,t.params),unsubscribe:n=>this._unsubscribe(n)});return r.add(t),r.intent==="subscribed"&&r.state==="connected"&&t.connected(),r.ensureSubscribed(),t}async _resubscribe(t){t.intent!=="subscribed"||!t.channels[0]||(t.notify("connecting"),t.ensureResubscribed())}async _subscribe(t,e,r){let n=t.id;if(this.state==="idle"&&this.connect().catch(()=>{}),this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:n});return}this.logger.debug("acquiring subscribe lock",{identifier:n});let s=await t.acquire("subscribed");if(s.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:n}),s.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:n}),t.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),s.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:n}),s.release();return}if(t.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:n}),t.notify("connected"),s.release();return}let i={identifier:e,params:r};this.logger.debug("subscribing",i);try{let o=await this.protocol.subscribe(e,r);this.hub.subscribe(n,o),this.logger.debug("subscribed",{...i,remoteId:o}),t.notify("connected")}catch(o){if(o){if(o instanceof bt&&this.logger.warn("rejected",i),o instanceof $){this.logger.debug("disconnected during subscription; will retry on connect",i),s.release();return}this.logger.error("failed to subscribe",{error:o,...i})}t.close(o),this.hub.unsubscribe(n)}s.release()}unsubscribe(t){let e=t.identifier,r=this.hub.subscriptions.get(e);if(!r)throw Error(`Subscription not found: ${e}`);r.remove(t),t.closed(),r.maybeUnsubscribe()}async _unsubscribe(t){let e=t.id;this.logger.debug("acquiring unsubscribe lock",{identifier:e});let r=await t.acquire("unsubscribed");if(r.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:e}),r.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:e}),t.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:e,intent:t.intent}),r.release();return}if(t.state==="disconnected"||t.state==="closed"){this.logger.debug(`already ${t.state} connected, skip unsubscribe command`,{identifier:e}),r.release();return}let n=t.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:n}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:e}),t.close(),this.hub.unsubscribe(e),r.release();return}try{await this.protocol.unsubscribe(n),this.logger.debug("unsubscribed remotely",{id:e})}catch(s){s&&(s instanceof $?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:e,error:s}):this.logger.error("unsubscribe failed",{id:e,error:s}))}t.intent==="unsubscribed"?(t.close(),this.hub.unsubscribe(e)):t.state="closed",r.release()}async perform(t,e,r){if(this.performFailures==="throw")return this._perform(t,e,r);try{return await this._perform(t,e,r)}catch(n){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:n});return}}async _perform(t,e,r){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new Bs;let n=this.hub.subscriptions.get(t);if(!n)throw Error(`Subscription not found: ${t}`);if(await n.pending("subscribed"),n.intent!=="subscribed")throw Error(`Subscription is closed: ${t}`);let s=n.remoteId,i={id:s,action:e,payload:r};this.logger.debug("perform",i);try{let o=await this.protocol.perform(s,e,r);return o&&this.logger.debug("perform result",{message:o,request:i}),o}catch(o){throw this.logger.error("perform failed",{error:o,request:i}),o}}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...n)=>{r(),e(...n)});return r}emit(t,...e){return this.emitter.emit(t,...e)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((t,e)=>{let r=[()=>delete this._pendingConnect];r.push(this.on("connect",()=>{r.forEach(n=>n()),t()})),r.push(this.on("close",n=>{r.forEach(s=>s()),e(n)})),r.push(this.on("disconnect",n=>{r.forEach(s=>s()),e(n)}))}),this._pendingConnect)}};const Hs={maxMissingPings:2,maxReconnectAttempts:1/0},ce=()=>Date.now(),Rr=(t,e)=>{e=e||{};let{backoffRate:r,jitterRatio:n,maxInterval:s}=e;return r=r||2,n===void 0&&(n=.5),i=>{let o=t*r**i,a=o*r,l=o+(a-o)*Math.random(),c=2*(Math.random()-.5)*n;return l=l*(1+c),s&&s<l&&(l=s),l}};let Pr=class{constructor({pingInterval:t,...e}){if(this.pingInterval=t,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${t}`);if(e=Object.assign({},Hs,e),this.strategy=e.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=e.maxMissingPings,this.maxReconnectAttempts=e.maxReconnectAttempts,this.logger=e.logger||new Ae,this.state="pending_connect",this.attempts=0,this.disconnectedAt=ce()}watch(t){this.target=t,this.initListeners()}reconnectNow(){return this.state==="connected"||this.state==="pending_connect"||this.state==="closed"?!1:(this.cancelReconnect(),this.state="pending_connect",this.target.connect().catch(t=>{this.logger.info("Failed at reconnecting: "+t)}),!0)}initListeners(){this.unbind=[],this.unbind.push(this.target.on("connect",()=>{this.attempts=0,this.pingedAt=ce(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=ce(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=ce(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=ce()})),this.unbind.push(()=>{this.cancelReconnect(),this.stopPolling()})}dispose(){delete this.target,this.unbind&&this.unbind.forEach(t=>t()),delete this.unbind}startPolling(){this.pollId&&clearTimeout(this.pollId);let t=this.pingInterval+(Math.random()-.5)*this.pingInterval*.5;this.pollId=setTimeout(()=>{this.checkStale(),this.state==="connected"&&this.startPolling()},t)}stopPolling(){this.pollId&&clearTimeout(this.pollId)}checkStale(){let t=ce()-this.pingedAt;t>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${t}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new Ds))}scheduleReconnect(){if(this.attempts>=this.maxReconnectAttempts){this.target.close();return}let t=this.strategy(this.attempts);this.attempts++,this.logger.info(`Reconnecting in ${t}ms (${this.attempts} attempt)`),this.state="pending_reconnect",this.reconnnectId=setTimeout(()=>this.reconnectNow(),t)}cancelReconnect(){this.reconnnectId&&(clearTimeout(this.reconnnectId),delete this.reconnnectId)}};class Js{constructor(e,r={}){this.transports=e,this.transport=null,this.emitter=Je(),this.unbind=[],this.logger=r.logger||new Ae}displayName(){return"fallbacked transport"}async open(){for(let e=0;e<this.transports.length;e++){let r=this.transports[e];try{this.transport=r,this.resetListeners(),this.logger.debug(`Trying to connect via ${r.displayName()}`),await r.open(),this.logger.debug(`Connected via ${r.displayName()}`);return}catch(n){this.logger.debug(`Failed to connect via ${r.displayName()}: ${n.message}`)}}throw this.transport=null,this.resetListeners(),new Error("Couldn't connect via any available transport")}send(e){if(!this.transport)throw new Error("No transport is open");this.transport.send(e)}async close(){if(!this.transport)throw new Error("No transport is open");await this.transport.close(),this.transport=null}setURL(){throw new Error("Not implemented. Set URL for each transport separately")}setParam(e,r){this.transports.forEach(n=>{n.setParam(e,r)})}setToken(e,r){this.transports.forEach(n=>{n.setToken(e,r)})}on(e,r){return this.emitter.on(e,r)}once(e,r){let n=this.emitter.on(e,(...s)=>{n(),r(...s)});return n}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(e=>e()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",e=>{this.emitter.emit("data",e)}),this.transport.on("close",e=>{this.emitter.emit("close",e)}),this.transport.on("error",e=>{this.emitter.emit("error",e)}))}}class Vs{constructor(e,r={}){this.url=e;let n=r.websocketImplementation;if(n)this.Impl=n;else if(typeof WebSocket<"u")this.Impl=WebSocket;else throw new Error("No WebSocket support");this.connected=!1,this.emitter=Je();let{format:s,subprotocol:i,authStrategy:o}=r;this.format=s||"text",this.connectionOptions=r.websocketOptions,this.authStrategy=o||"param",this.authProtocol="",this.subprotocol=i}displayName(){return"WebSocket("+this.url+")"}open(){let e=this.subprotocol;return this.authStrategy==="sub-protocol"&&(e=[this.subprotocol,this.authProtocol]),this.connectionOptions?this.ws=new this.Impl(this.url,e,this.connectionOptions):this.ws=new this.Impl(this.url,e),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((r,n)=>{let s=[];s.push(this.once("open",()=>{s.forEach(i=>i()),r()})),s.push(this.once("close",()=>{s.forEach(i=>i()),n(Error("WS connection closed"))}))})}setURL(e){this.url=e}setParam(e,r){let n=new URL(this.url);n.searchParams.set(e,r);let s=`${n.protocol}//${n.host}${n.pathname}?${n.searchParams}`;this.setURL(s)}setToken(e,r="jid"){if(this.authStrategy==="param")this.setParam(r,e);else if(this.authStrategy==="header"){this.connectionOptions=this.connectionOptions||{},this.connectionOptions.headers=this.connectionOptions.headers||{};let n=`x-${r}`.toLowerCase();n=Object.keys(this.connectionOptions.headers).find(s=>s.toLowerCase()===n)||n,this.connectionOptions.headers[n]=e}else if(this.authStrategy==="sub-protocol")this.authProtocol=`anycable-token.${e}`;else throw new Error("Unknown auth strategy: "+this.authStrategy)}send(e){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(e)}close(){this.ws?this.onclose():this.connected=!1}on(e,r){return this.emitter.on(e,r)}once(e,r){let n=this.emitter.on(e,(...s)=>{n(),r(...s)});return n}initListeners(){this.ws.onerror=e=>{this.connected&&this.emitter.emit("error",e.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=e=>{let r=e.data;this.format==="binary"&&(r=new Uint8Array(r)),this.emitter.emit("data",r)},this.ws.onopen=()=>{this.connected=!0,this.emitter.emit("open")}}onclose(){this.ws.onclose=void 0,this.ws.onmessage=void 0,this.ws.onopen=void 0,this.ws.close(),delete this.ws,this.connected=!1,this.emitter.emit("close")}}class Xs{constructor(e){this.channel=e}notify(e,...r){typeof this[e]=="function"&&this[e](...r)}perform(e,r={}){this.channel.perform(e,r)}send(e){this.channel.send(e)}whisper(e){return this.channel.whisper(e)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class Qs extends xr{constructor(e,r,n){super(e,r),this.subscription=new Xs(this),Object.assign(this.subscription,n),this.on("connect",({reconnect:s})=>this.subscription.notify("connected",{reconnected:s})),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",s=>this.subscription.notify("received",s)),this.on("close",s=>{s&&s instanceof bt?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class Gs{constructor(e){this.cable=e}create(e,r){let n,s;typeof e=="object"?(n=e.channel,delete e.channel,s=e):(n=e,s={});let i=new Qs(n,s,r);return i.subscription.notify("initialized"),this.cable.subscribe(i),i.subscription}findAll(e){return this.cable.hub.channels.filter(r=>r.identifier===e).map(r=>r.subscription)}}class Ks{constructor(e){this.cable=e,this.subscriptions=new Gs(e)}send(e){return this.cable.send(e)}connect(){return this.cable.connect()}disconnect(){return this.cable.disconnect()}ensureActiveConnection(){return this.cable.connect()}}const kr={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function Zs(t,e){if(typeof t=="object"&&typeof e>"u"&&(e=t,t=void 0),e=e||{},!t&&!e.transport)throw Error("URL or transport must be specified");e=Object.assign({},kr,e);let{protocol:r,websocketImplementation:n,websocketFormat:s,websocketOptions:i,websocketAuthStrategy:o,fallbacks:a,logLevel:l,logger:c,transport:h,encoder:d,lazy:m,monitor:p,pingInterval:v,reconnectStrategy:f,maxMissingPings:S,maxReconnectAttempts:g,subprotocol:y,tokenRefresher:_,historyTimestamp:E,protocolOptions:V,concurrentSubscribes:ie,performFailures:fe,transportConfigurator:K,auth:z}=e;if(c=c||new Ae(l),typeof r=="string"){y=y||r;let W=r.substring(0,r.lastIndexOf("-")),X=r.substring(r.lastIndexOf("-")+1);if(V=V||{},W==="actioncable-v1")r=new Er({logger:c,...V});else if(W==="actioncable-v1-ext")r=new $s({logger:c,historyTimestamp:E,...V});else throw Error(`Protocol is not supported yet: ${r}`);if(X==="json")d=d||new qs,s=s||"text";else if(X==="msgpack"){if(s="binary",!d)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(X==="protobuf"){if(s=s||"binary",!d)throw Error("Protobuf encoder must be specified explicitly. Use `@anycable/protobuf-encoder` package or build your own")}else throw Error(`Protocol is not supported yet: ${r}`)}if(!r)throw Error("Protocol must be specified");h=h||new Vs(t,{websocketImplementation:n,websocketOptions:i,subprotocol:y,authStrategy:o,format:s}),a&&(h=new Js([h,...a],{logger:c})),z&&z.token&&h.setToken(z.token,z.param||"jid"),f=f||Rr(v),p!==!1&&(p=p||new Pr({pingInterval:v,reconnectStrategy:f,maxMissingPings:S,maxReconnectAttempts:g,logger:c}));let M={concurrentSubscribes:ie},D=new zs({protocol:r,transport:h,encoder:d,logger:c,lazy:m,hubOptions:M,performFailures:fe,transportConfigurator:K});return p&&(p.watch(D),D.monitor=p),_&&ei(D,async()=>{try{await _(h)}catch(W){return c.error("Failed to refresh authentication token: "+W),!1}return D.connect().catch(()=>{}),!0}),D}function ei(t,e){let r=!1;t.on("connect",()=>r=!1),t.on("close",async n=>{if(n){if(r){t.logger.warn("Token auto-refresh is disabled",n);return}n.reason==="token_expired"&&(r=!0,await e())}})}class ti extends Or{writeLogEntry(e,r,n){n?console[e](r,n):console[e](r)}}class ri extends Pr{watch(e){super.watch(e),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let e=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},r=s=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:s})},n=()=>this.disconnect(new $("page_frozen"));document.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",r,!1),window.addEventListener("online",r,!1),window.addEventListener("resume",r,!1),window.addEventListener("freeze",n,!1),this.unbind.push(()=>{document.removeEventListener("visibilitychange",e,!1),window.removeEventListener("focus",r,!1),window.removeEventListener("online",r,!1),window.removeEventListener("resume",r,!1),window.removeEventListener("freeze",n,!1)})}}disconnect(e){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:e.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(e))}}const ni=["cable","action-cable"],si="/cable",Ve=(t,e)=>{for(let r of ni){let n=t.head.querySelector(`meta[name='${r}-${e}']`);if(n)return n.getAttribute("content")}},Wt=t=>t.match(/wss?:\/\//)?t:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${t}`:t,ii=()=>{if(typeof document<"u"&&document.head){let t=Ve(document,"url");if(t)return Wt(t)}return Wt(si)},oi=()=>{if(typeof document<"u"&&document.head){let t=Ve(document,"history-timestamp");if(t)return t|0}},ai=()=>{if(typeof document<"u"&&document.head)return Ve(document,"token")},ci=()=>{if(typeof document<"u"&&document.head)return Ve(document,"token-param")};function ui(t,e){typeof t=="object"&&typeof e>"u"&&(e=t,t=void 0),t=t||ii(),e=e||{},e.historyTimestamp||=oi();let r=ai();if(r){let c=ci();e.auth=Object.assign({token:r,param:c},e.auth||{})}e=Object.assign({},kr,e);let{logLevel:n,logger:s,pingInterval:i,reconnectStrategy:o,maxMissingPings:a,maxReconnectAttempts:l}=e;return s=e.logger=e.logger||new ti(n),o=e.reconnectStrategy=e.reconnectStrategy||Rr(i),e.monitor!==!1&&(e.monitor=e.monitor||new ri({pingInterval:i,reconnectStrategy:o,maxMissingPings:a,maxReconnectAttempts:l,logger:s})),Zs(t,e)}function li(t,e){let r=ui(t,e);return new Ks(r)}class hi{constructor(e="/openc3-api/cable",r="/openc3-api/auth/otp"){this._cable=null,this._url=e,this._otpUrl=r}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(e,r,n={},s={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(i=>(i&&OpenC3Auth.setTokens(),_r.get(this._otpUrl,{params:{scope:r}}))).then(({data:i})=>{if(this._cable==null){const o=new URL(this._url,document.baseURI);o.searchParams.set("scope",r),o.searchParams.set("authorization",i),this._cable=li(o.href)}return this._cable.subscriptions.create({channel:e,...s},n)})}recordPing(){}}class ct{constructor(e,r,n="",s=""){this.keyword=e.keyword,this.parameters=e.parameters,this.filename=e.filename,this.line=e.line,this.lineNumber=e.lineNumber,this.message=r,this.usage=n,this.url=s}}class di{keyword=null;parameters=[];filename="";line="";lineNumber=0;url="https://docs.openc3.com/docs/configuration";constructor(){}verify_num_parameters(e,r,n=""){for(let s=1;s<=e;s++)if(this.parameters[s-1]===void 0)throw new ct(this,`Not enough parameters for ${this.keyword}.`,n,this.url);if(r&&this.parameters[r]!==void 0)throw new ct(this,`Too many parameters for ${this.keyword}.`,n,this.url)}remove_quotes(e){if(e.length<2)return e;let r=e.charAt(0);if(r!=='"'&&r!=="'")return e;let n=e.charAt(e.length-1);return r!==n?e:e.substring(1,e.length-1)}scan_string(e,r){if(!r.global)throw"rx must have 'global' flag set";let n=[];return e.replace(r,function(s){return n.push(s),s}),n}parse_string(e,r,n,s,i){let o=!1,a=!1;this.line="",this.keyword=null,this.parameters=[],this.filename=r;let l=e.split(`
|
|
10
|
-
`),
|
|
11
|
-
`),a=!0;continue;case"&":this.line+=d.substring(0,d.length-1);continue;default:this.line+=d}}a=!1;let m=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,p=this.scan_string(this.line,m),v="";if(p.length>0&&(v=v+p[0]),v.length===0||v.charAt(0)==="#"?this.keyword=null:this.keyword=v.toUpperCase(),this.parameters=[],this.keyword===null){if(n){let g=i(this.keyword,this.parameters,this.line,this.lineNumber);g===!0&&(o=!0),g===!1&&(o=!1)}this.line="";continue}let f=p.length;if(f>1)for(let g=1;g<f;g++){let y=p[g];if(y.length>0&&y.charAt(0)==="#")break;s?this.parameters.push(this.remove_quotes(y)):this.parameters.push(y)}let S=i(this.keyword,this.parameters,this.line,this.lineNumber);S===!0&&(o=!0),S===!1&&(o=!1),this.line=""}}}function ve(t){return
|
|
12
|
-
`,r:"\r",t:" "},ki=92,Ai=123,Yt=125,Ti=91,zt=93,Ci=32,Ni=10,ji=9,Di=13,et=34,Ii=43,Ht=45,wt=48,Fi=49,_t=57,Mi=44,Li=46,Ui=58,qi=65,Wi=97,$i=69,Bi=101,Yi=70,zi=102;function Cr(t,e,r,n){return i(t);function i(c,h){if(Array.isArray(n)){const d=n.find(m=>m.test(c));if(d){const m=d.stringify(c);if(typeof m!="string"||!Ar(m))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${m})`);return m}}if(typeof c=="boolean"||typeof c=="number"||typeof c=="string"||c===null||c instanceof Date||c instanceof Boolean||c instanceof Number||c instanceof String)return JSON.stringify(c);if(c?.isLosslessNumber||typeof c=="bigint")return c.toString();if(Array.isArray(c))return o(c);if(c&&typeof c=="object")return a(c)}function o(c,h){if(c.length===0)return"[]";let d="[";for(let m=0;m<c.length;m++){const p=c[m];typeof p<"u"&&typeof p!="function"?d+=i(p):d+="null",m<c.length-1&&(d+=",")}return d+="]",d}function a(c,h){if(typeof c.toJSON=="function")return Cr(c.toJSON(),e,r,void 0);const d=Array.isArray(e)?e.map(String):Object.keys(c);if(d.length===0)return"{}";let m=!0,p="{";for(const v of d){const f=c[v];if(l(v,f)){m?m=!1:p+=",";const S=JSON.stringify(v);p+=`${S}:`,p+=i(f)}}return p+="}",p}function l(c,h){return typeof h<"u"&&typeof h!="function"&&typeof h!="symbol"}}function Hi(t){return ve(t)&&!Tr(t)?BigInt(t):parseFloat(t)}class Ji{id=1;constructor(){}async exec(e,r,n={},s={},i=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return n.scope=window.openc3Scope,s.manual=!0,(await gt.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:r,id:this.id,keyword_params:n},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...s},timeout:i,transformRequest:[(o,a)=>Cr(o)],transformResponse:[o=>{try{return Oi(o,void 0,Hi)}catch{const a=typeof o=="string"?o.substring(0,200):String(o),l=new Error(`Server returned non-JSON response: ${a}`);throw l.name="ServerError",l}}]})).data.result}catch(o){let a=new Error;throw o.response?(a.name=o.response.data.error.data.class,a.message=o.response.data.error.data.message,a.object=o.response.data.error):o.request?(a.name="Request error",a.message="Request error, no response received"):a=o,a}}decode_openc3_type(e){if(e!==null&&typeof e=="object"&&e.json_class=="Float"&&e.raw){if(e.raw=="NaN")return NaN;if(e.raw=="Infinity")return 1/0;if(e.raw=="-Infinity")return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,r,n,s,i){return this.exec("map_target_to_interface",[e,r],{cmd_only:n,tlm_only:s,unmap_old:i})}unmap_target_from_interface(e,r,n,s){return this.exec("unmap_target_from_interface",[e,r],{cmd_only:n,tlm_only:s})}connect_interface(e,...r){return r.length>0?this.exec("connect_interface",[e,...r]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,r,...n){return this.exec("interface_cmd",[e,r,...n])}interface_target_enable(e,r,n=!1,s=!1){return this.exec("interface_target_enable",[e,r],{cmd_only:n,tlm_only:s})}interface_target_disable(e,r,n=!1,s=!1){return this.exec("interface_target_disable",[e,r],{cmd_only:n,tlm_only:s})}interface_details(e){return this.exec("interface_details",[e])}get_all_router_info(){return this.exec("get_all_router_info",[])}map_target_to_router(e,r,n,s,i){return this.exec("map_target_to_router",[e,r],{cmd_only:n,tlm_only:s,unmap_old:i})}unmap_target_from_router(e,r,n,s){return this.exec("unmap_target_from_router",[e,r],{cmd_only:n,tlm_only:s})}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}router_target_enable(e,r,n=!1,s=!1){return this.exec("router_target_enable",[e,r],{cmd_only:n,tlm_only:s})}router_target_disable(e,r,n=!1,s=!1){return this.exec("router_target_disable",[e,r],{cmd_only:n,tlm_only:s})}router_details(e){return this.exec("router_details",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,r,n){return this.exec("get_item",[e,r,n])}get_param(e,r,n){return this.exec("get_param",[e,r,n])}get_parameter(e,r,n){return this.exec("get_param",[e,r,n])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(e,r){return this.exec("get_tlm",[e,r])}get_telemetry(e,r){return this.exec("get_tlm",[e,r])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_tlm",[e])}get_all_tlm_names(e,r=!1){return this.exec("get_all_tlm_names",[e],{hidden:r})}get_all_telemetry_names(e){return this.exec("get_all_tlm_names",[e])}get_all_tlm_item_names(e){return this.exec("get_all_tlm_item_names",[e])}async get_tlm_packet(e,r,n,s=30){const i=await this.exec("get_tlm_packet",[e,r],{type:n,stale_time:s});if(i!=null){let o=i.length,a=null;for(let l=0;l<o;l++)a=this.decode_openc3_type(i[l][1]),a!==null&&(i[l][1]=a)}return i}get_packet_derived_items(e,r){return this.exec("get_packet_derived_items",[e,r])}get_tlm_buffer(e,r){return this.exec("get_tlm_buffer",[e,r])}get_tlm_available(e){return this.exec("get_tlm_available",[e])}async get_tlm_values(e,r=30,n=null,s=null,i=null){let o={stale_time:r};n!==null&&(o.cache_timeout=n),s!==null&&(o.start_time=s.toISOString()),i!==null&&(o.end_time=i.toISOString());const a=await this.exec("get_tlm_values",[e],o,{},1e4);if(a&&a.length>0){let l=a.length,c=null;for(let h=0;h<l;h++)c=this.decode_openc3_type(a[h][0]),c!==null&&(a[h][0]=c)}return a}get_limits(e,r,n){return this.exec("get_limits",[e,r,n])}async tlm(e,r,n,s="CONVERTED"){let i=null;if(r===void 0)i=await this.exec("tlm",[e]);else if(n===void 0)if(["RAW","CONVERTED","FORMATTED"].includes(r))i=await this.exec("tlm",[e],{type:r});else{let a=new Error;throw a.name="TypeError",a.message=`Invalid data type ${r}. Valid options are RAW, CONVERTED or FORMATTED.`,a}else i=await this.exec("tlm",[e,r,n],{type:s});let o=this.decode_openc3_type(i);return o!==null&&(i=o),i}async inject_tlm(e,r,n=null,s="CONVERTED",i=!1){await this.exec("inject_tlm",[e,r,n],{type:s,stored:i})}set_tlm(e,r,n,s){return this.exec("set_tlm",[e,r,n],{type:s})}override_tlm(e,r,n,s){return this.exec("override_tlm",[e,r,n],{type:s})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,r,n,s){return this.exec("normalize_tlm",[e,r,n],{type:s})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_cmds",[e])}get_all_cmd_names(e,r=!1){return this.exec("get_all_cmd_names",[e],{hidden:r})}get_all_command_names(e){return this.exec("get_all_cmd_names",[e])}get_cmd(e,r){return this.exec("get_cmd",[e,r])}get_command(e,r){return this.exec("get_cmd",[e,r])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,r,n,s="CONVERTED"){return this.exec("get_cmd_value",[e,r,n,s])}get_cmd_buffer(e,r){return this.exec("get_cmd_buffer",[e,r])}_cmd(e,r,n,s,i,o={}){let a=null;for(let l in s)Object.prototype.hasOwnProperty.call(s,l)&&(a=this.encode_openc3_type(s[l]),a!==null&&(s[l]=a));return this.exec(e,[r,n,s],o,i)}get_cmd_hazardous(e,r,n,s={}){return r===void 0?this.exec("get_cmd_hazardous",e,{},s):this._cmd("get_cmd_hazardous",e,r,n,s)}cmd(e,r,n,s={},i={}){return r===void 0?this.exec("cmd",e,i,s):this._cmd("cmd",e,r,n,s,i)}cmd_no_range_check(e,r,n,s={},i={}){return r===void 0?this.exec("cmd_no_range_check",e,i,s):this._cmd("cmd_no_range_check",e,r,n,s,i)}cmd_raw(e,r,n,s={},i={}){return r===void 0?this.exec("cmd_raw",e,i,s):this._cmd("cmd_raw",e,r,n,s,i)}cmd_raw_no_range_check(e,r,n,s={},i={}){return r===void 0?this.exec("cmd_raw_no_range_check",e,i,s):this._cmd("cmd_raw_no_range_check",e,r,n,s,i)}cmd_no_hazardous_check(e,r,n,s={},i={}){return r===void 0?this.exec("cmd_no_hazardous_check",e,i,s):this._cmd("cmd_no_hazardous_check",e,r,n,s,i)}cmd_no_checks(e,r,n,s={},i={}){return r===void 0?this.exec("cmd_no_checks",e,i,s):this._cmd("cmd_no_checks",e,r,n,s,i)}cmd_raw_no_hazardous_check(e,r,n,s={},i={}){return r===void 0?this.exec("cmd_raw_no_hazardous_check",e,i,s):this._cmd("cmd_raw_no_hazardous_check",e,r,n,s,i)}cmd_raw_no_checks(e,r,n,s={},i={}){return r===void 0?this.exec("cmd_raw_no_checks",e,i,s):this._cmd("cmd_raw_no_checks",e,r,n,s,i)}build_cmd(e,r,n,s={},i={}){return r===void 0?this.exec("build_cmd",e,i,s):this._cmd("build_cmd",e,r,n,s,i)}build_command(e,r,n,s={},i={}){return r===void 0?this.exec("build_cmd",e,i,s):this._cmd("build_cmd",e,r,n,s,i)}get_interface_names(){return this.exec("get_interface_names",[])}get_router_names(){return this.exec("get_router_names",[])}send_raw(e,r){return this.exec("send_raw",[e,r])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,r){return this.exec("load_config",[e,r])}save_config(e,r,n){return this.exec("save_config",[e,r,n])}delete_config(e,r){return this.exec("delete_config",[e,r])}enable_limits(e,r,n){return this.exec("enable_limits",[e,r,n])}disable_limits(e,r,n){return this.exec("disable_limits",[e,r,n])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e,r){return this.exec("get_setting",[e],r)}get_settings(e,r){return this.exec("get_settings",e,r)}set_setting(e,r){return this.exec("set_setting",[e,r])}update_news(){return this.exec("update_news",[])}update_plugin_store(){return this.exec("update_plugin_store",[])}save_setting(e,r){return this.exec("set_setting",[e,r])}get_metrics(){return this.exec("get_metrics",[])}open_tab(e){window.open(e,"_blank")}async hashString(e){if(window.isSecureContext){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),s=new Uint8Array(n);return Array.from(s).map(i=>i.toString(16).padStart(2,"0")).join("")}}}const Nr=6048e5,Vi=864e5,Xi=6e4,Qi=36e5,Gi=1e3,Ki=43200,Zi=1440,Jt=Symbol.for("constructDateFrom");function J(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Jt in t?t[Jt](e):t instanceof Date?new t.constructor(e):new Date(e)}function q(t,e){return J(e||t,t)}let eo={};function Te(){return eo}function he(t,e){const r=Te(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=q(t,e?.in),i=s.getDay(),o=(i<n?7:0)+i-n;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function Se(t,e){return he(t,{...e,weekStartsOn:1})}function jr(t,e){const r=q(t,e?.in),n=r.getFullYear(),s=J(r,0);s.setFullYear(n+1,0,4),s.setHours(0,0,0,0);const i=Se(s),o=J(r,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const a=Se(o);return r.getTime()>=i.getTime()?n+1:r.getTime()>=a.getTime()?n:n-1}function lt(t){const e=q(t),r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),+t-+r}function Dr(t,...e){const r=J.bind(null,t||e.find(n=>typeof n=="object"));return e.map(r)}function Vt(t,e){const r=q(t,e?.in);return r.setHours(0,0,0,0),r}function to(t,e,r){const[n,s]=Dr(r?.in,t,e),i=Vt(n),o=Vt(s),a=+i-lt(i),l=+o-lt(o);return Math.round((a-l)/Vi)}function ro(t,e){const r=jr(t,e),n=J(t,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Se(n)}function no(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Ir(t){return!(!no(t)&&typeof t!="number"||isNaN(+q(t)))}function so(t,e){const r=q(t,e?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}const io={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},oo=(t,e,r)=>{let n;const s=io[t];return typeof s=="string"?n=s:e===1?n=s.one:n=s.other.replace("{{count}}",e.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function tt(t){return(e={})=>{const r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}const ao={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},co={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uo={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},lo={date:tt({formats:ao,defaultWidth:"full"}),time:tt({formats:co,defaultWidth:"full"}),dateTime:tt({formats:uo,defaultWidth:"full"})},ho={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},fo=(t,e,r,n)=>ho[t];function ye(t){return(e,r)=>{const n=r?.context?String(r.context):"standalone";let s;if(n==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,a=r?.width?String(r.width):o;s=t.formattingValues[a]||t.formattingValues[o]}else{const o=t.defaultWidth,a=r?.width?String(r.width):t.defaultWidth;s=t.values[a]||t.values[o]}const i=t.argumentCallback?t.argumentCallback(e):e;return s[i]}}const mo={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},po={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},go={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},bo={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},yo={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},wo={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},_o=(t,e)=>{const r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},vo={ordinalNumber:_o,era:ye({values:mo,defaultWidth:"wide"}),quarter:ye({values:po,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ye({values:go,defaultWidth:"wide"}),day:ye({values:bo,defaultWidth:"wide"}),dayPeriod:ye({values:yo,defaultWidth:"wide",formattingValues:wo,defaultFormattingWidth:"wide"})};function we(t){return(e,r={})=>{const n=r.width,s=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],i=e.match(s);if(!i)return null;const o=i[0],a=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?Oo(a,d=>d.test(o)):So(a,d=>d.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;const h=e.slice(o.length);return{value:c,rest:h}}}function So(t,e){for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}function Oo(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}function Eo(t){return(e,r={})=>{const n=e.match(t.matchPattern);if(!n)return null;const s=n[0],i=e.match(t.parsePattern);if(!i)return null;let o=t.valueCallback?t.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;const a=e.slice(s.length);return{value:o,rest:a}}}const xo=/^(\d+)(th|st|nd|rd)?/i,Ro=/\d+/i,Po={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ko={any:[/^b/i,/^(a|c)/i]},Ao={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},To={any:[/1/i,/2/i,/3/i,/4/i]},Co={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},No={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},jo={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Do={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Io={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Fo={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Mo={ordinalNumber:Eo({matchPattern:xo,parsePattern:Ro,valueCallback:t=>parseInt(t,10)}),era:we({matchPatterns:Po,defaultMatchWidth:"wide",parsePatterns:ko,defaultParseWidth:"any"}),quarter:we({matchPatterns:Ao,defaultMatchWidth:"wide",parsePatterns:To,defaultParseWidth:"any",valueCallback:t=>t+1}),month:we({matchPatterns:Co,defaultMatchWidth:"wide",parsePatterns:No,defaultParseWidth:"any"}),day:we({matchPatterns:jo,defaultMatchWidth:"wide",parsePatterns:Do,defaultParseWidth:"any"}),dayPeriod:we({matchPatterns:Io,defaultMatchWidth:"any",parsePatterns:Fo,defaultParseWidth:"any"})},Fr={code:"en-US",formatDistance:oo,formatLong:lo,formatRelative:fo,localize:vo,match:Mo,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Lo(t,e){const r=q(t,e?.in);return to(r,so(r))+1}function Mr(t,e){const r=q(t,e?.in),n=+Se(r)-+ro(r);return Math.round(n/Nr)+1}function vt(t,e){const r=q(t,e?.in),n=r.getFullYear(),s=Te(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,o=J(e?.in||t,0);o.setFullYear(n+1,0,i),o.setHours(0,0,0,0);const a=he(o,e),l=J(e?.in||t,0);l.setFullYear(n,0,i),l.setHours(0,0,0,0);const c=he(l,e);return+r>=+a?n+1:+r>=+c?n:n-1}function Uo(t,e){const r=Te(),n=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=vt(t,e),i=J(e?.in||t,0);return i.setFullYear(s,0,n),i.setHours(0,0,0,0),he(i,e)}function Lr(t,e){const r=q(t,e?.in),n=+he(r,e)-+Uo(r,e);return Math.round(n/Nr)+1}function O(t,e){const r=t<0?"-":"",n=Math.abs(t).toString().padStart(e,"0");return r+n}const G={y(t,e){const r=t.getFullYear(),n=r>0?r:1-r;return O(e==="yy"?n%100:n,e.length)},M(t,e){const r=t.getMonth();return e==="M"?String(r+1):O(r+1,2)},d(t,e){return O(t.getDate(),e.length)},a(t,e){const r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return r==="am"?"a.m.":"p.m."}},h(t,e){return O(t.getHours()%12||12,e.length)},H(t,e){return O(t.getHours(),e.length)},m(t,e){return O(t.getMinutes(),e.length)},s(t,e){return O(t.getSeconds(),e.length)},S(t,e){const r=e.length,n=t.getMilliseconds(),s=Math.trunc(n*Math.pow(10,r-3));return O(s,e.length)}},ue={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Xt={G:function(t,e,r){const n=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(t,e,r){if(e==="yo"){const n=t.getFullYear(),s=n>0?n:1-n;return r.ordinalNumber(s,{unit:"year"})}return G.y(t,e)},Y:function(t,e,r,n){const s=vt(t,n),i=s>0?s:1-s;if(e==="YY"){const o=i%100;return O(o,2)}return e==="Yo"?r.ordinalNumber(i,{unit:"year"}):O(i,e.length)},R:function(t,e){const r=jr(t);return O(r,e.length)},u:function(t,e){const r=t.getFullYear();return O(r,e.length)},Q:function(t,e,r){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return O(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,r){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return O(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,r){const n=t.getMonth();switch(e){case"M":case"MM":return G.M(t,e);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,r){const n=t.getMonth();switch(e){case"L":return String(n+1);case"LL":return O(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,r,n){const s=Lr(t,n);return e==="wo"?r.ordinalNumber(s,{unit:"week"}):O(s,e.length)},I:function(t,e,r){const n=Mr(t);return e==="Io"?r.ordinalNumber(n,{unit:"week"}):O(n,e.length)},d:function(t,e,r){return e==="do"?r.ordinalNumber(t.getDate(),{unit:"date"}):G.d(t,e)},D:function(t,e,r){const n=Lo(t);return e==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):O(n,e.length)},E:function(t,e,r){const n=t.getDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,r,n){const s=t.getDay(),i=(s-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return O(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){const s=t.getDay(),i=(s-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return O(i,e.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(t,e,r){const n=t.getDay(),s=n===0?7:n;switch(e){case"i":return String(s);case"ii":return O(s,e.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,r){const s=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,r){const n=t.getHours();let s;switch(n===12?s=ue.noon:n===0?s=ue.midnight:s=n/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,r){const n=t.getHours();let s;switch(n>=17?s=ue.evening:n>=12?s=ue.afternoon:n>=4?s=ue.morning:s=ue.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,r){if(e==="ho"){let n=t.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return G.h(t,e)},H:function(t,e,r){return e==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):G.H(t,e)},K:function(t,e,r){const n=t.getHours()%12;return e==="Ko"?r.ordinalNumber(n,{unit:"hour"}):O(n,e.length)},k:function(t,e,r){let n=t.getHours();return n===0&&(n=24),e==="ko"?r.ordinalNumber(n,{unit:"hour"}):O(n,e.length)},m:function(t,e,r){return e==="mo"?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):G.m(t,e)},s:function(t,e,r){return e==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):G.s(t,e)},S:function(t,e){return G.S(t,e)},X:function(t,e,r){const n=t.getTimezoneOffset();if(n===0)return"Z";switch(e){case"X":return Gt(n);case"XXXX":case"XX":return te(n);default:return te(n,":")}},x:function(t,e,r){const n=t.getTimezoneOffset();switch(e){case"x":return Gt(n);case"xxxx":case"xx":return te(n);default:return te(n,":")}},O:function(t,e,r){const n=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Qt(n,":");default:return"GMT"+te(n,":")}},z:function(t,e,r){const n=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Qt(n,":");default:return"GMT"+te(n,":")}},t:function(t,e,r){const n=Math.trunc(+t/1e3);return O(n,e.length)},T:function(t,e,r){return O(+t,e.length)}};function Qt(t,e=""){const r=t>0?"-":"+",n=Math.abs(t),s=Math.trunc(n/60),i=n%60;return i===0?r+String(s):r+String(s)+e+O(i,2)}function Gt(t,e){return t%60===0?(t>0?"-":"+")+O(Math.abs(t)/60,2):te(t,e)}function te(t,e=""){const r=t>0?"-":"+",n=Math.abs(t),s=O(Math.trunc(n/60),2),i=O(n%60,2);return r+s+e+i}const Kt=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},Ur=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},qo=(t,e)=>{const r=t.match(/(P+)(p+)?/)||[],n=r[1],s=r[2];if(!s)return Kt(t,e);let i;switch(n){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",Kt(n,e)).replace("{{time}}",Ur(s,e))},qr={p:Ur,P:qo},Wo=/^D+$/,$o=/^Y+$/,Bo=["D","DD","YY","YYYY"];function Wr(t){return Wo.test(t)}function $r(t){return $o.test(t)}function Br(t,e,r){const n=Yo(t,e,r);if(console.warn(n),Bo.includes(t))throw new RangeError(n)}function Yo(t,e,r){const n=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const zo=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ho=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Jo=/^'([^]*?)'?$/,Vo=/''/g,Xo=/[a-zA-Z]/;function Qo(t,e,r){const n=Te(),s=r?.locale??n.locale??Fr,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=q(t,r?.in);if(!Ir(a))throw new RangeError("Invalid time value");let l=e.match(Ho).map(h=>{const d=h[0];if(d==="p"||d==="P"){const m=qr[d];return m(h,s.formatLong)}return h}).join("").match(zo).map(h=>{if(h==="''")return{isToken:!1,value:"'"};const d=h[0];if(d==="'")return{isToken:!1,value:Go(h)};if(Xt[d])return{isToken:!0,value:h};if(d.match(Xo))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:h}});s.localize.preprocessor&&(l=s.localize.preprocessor(a,l));const c={firstWeekContainsDate:i,weekStartsOn:o,locale:s};return l.map(h=>{if(!h.isToken)return h.value;const d=h.value;(!r?.useAdditionalWeekYearTokens&&$r(d)||!r?.useAdditionalDayOfYearTokens&&Wr(d))&&Br(d,e,String(t));const m=Xt[d[0]];return m(a,d,s.localize,c)}).join("")}function Go(t){const e=t.match(Jo);return e?e[1].replace(Vo,"'"):t}exports.Ct=ct;exports.Fi=di;exports.constructFrom=J;exports.enUS=Fr;exports.es=_r;exports.format=Qo;exports.getDefaultOptions=Te;exports.getISOWeek=Mr;exports.getTimezoneOffsetInMilliseconds=lt;exports.getWeek=Lr;exports.getWeekYear=vt;exports.isProtectedDayOfYearToken=Wr;exports.isProtectedWeekYearToken=$r;exports.isValid=Ir;exports.ji=Ji;exports.longFormatters=qr;exports.millisecondsInHour=Qi;exports.millisecondsInMinute=Xi;exports.millisecondsInSecond=Gi;exports.minutesInDay=Zi;exports.minutesInMonth=Ki;exports.normalizeDates=Dr;exports.startOfISOWeek=Se;exports.startOfWeek=he;exports.toDate=q;exports.vi=hi;exports.warnOrThrowProtectedError=Br;
|
|
13
|
-
//# sourceMappingURL=format-
|
|
9
|
+
`+s)}}catch{}}throw r}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=se(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:s}=e;r!==void 0&&Ue.assertOptions(r,{silentJSONParsing:U.transitional(U.boolean),forcedJSONParsing:U.transitional(U.boolean),clarifyTimeoutError:U.transitional(U.boolean),legacyInterceptorReqResOrdering:U.transitional(U.boolean)},!1),n!=null&&(c.isFunction(n)?e.paramsSerializer={serialize:n}:Ue.assertOptions(n,{encode:U.function,serialize:U.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),Ue.assertOptions(e,{baseUrl:U.spelling("baseURL"),withXsrfToken:U.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=s&&c.merge(s.common,s[e.method]);s&&c.forEach(["delete","get","head","post","put","patch","query","common"],p=>{delete s[p]}),e.headers=I.concat(i,s);const o=[];let a=!0;this.interceptors.request.forEach(function(p){if(typeof p.runWhen=="function"&&p.runWhen(e)===!1)return;a=a&&p.synchronous;const v=e.transitional||ft;v&&v.legacyInterceptorReqResOrdering?o.unshift(p.fulfilled,p.rejected):o.push(p.fulfilled,p.rejected)});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,h=0,d;if(!a){const p=[Ft.bind(this),void 0];for(p.unshift(...o),p.push(...l),d=p.length,u=Promise.resolve(e);h<d;)u=u.then(p[h++],p[h++]);return u}d=o.length;let m=e;for(;h<d;){const p=o[h++],v=o[h++];try{m=p(m)}catch(f){v.call(this,f);break}}try{u=Ft.call(this,m)}catch(p){return Promise.reject(p)}for(h=0,d=l.length;h<d;)u=u.then(l[h++],l[h++]);return u}getUri(t){t=se(this.defaults,t);const e=gr(t.baseURL,t.url,t.allowAbsoluteUrls);return dr(e,t.params,t.paramsSerializer)}};c.forEach(["delete","get","head","options"],function(t){ne.prototype[t]=function(e,r){return this.request(se(r||{},{method:t,url:e,data:(r||{}).data}))}});c.forEach(["post","put","patch","query"],function(t){function e(r){return function(n,s,i){return this.request(se(i||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:s}))}}ne.prototype[t]=e(),t!=="query"&&(ne.prototype[t+"Form"]=e(!0))});let js=class _r{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{n.subscribe(a),i=a}).then(s);return o.cancel=function(){n.unsubscribe(i)},o},e(function(s,i,o){n.reason||(n.reason=new Pe(s,i,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new _r(function(r){e=r}),cancel:e}}};function Ds(t){return function(e){return t.apply(null,e)}}function Is(t){return c.isObject(t)&&t.isAxiosError===!0}const ot={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ot).forEach(([t,e])=>{ot[e]=t});function vr(t){const e=new ne(t),r=er(ne.prototype.request,e);return c.extend(r,ne.prototype,e,{allOwnKeys:!0}),c.extend(r,e,null,{allOwnKeys:!0}),r.create=function(n){return vr(se(t,n))},r}const P=vr(Re);P.Axios=ne;P.CanceledError=Pe;P.CancelToken=js;P.isCancel=mr;P.VERSION=pt;P.toFormData=ze;P.AxiosError=b;P.Cancel=P.CanceledError;P.all=function(t){return Promise.all(t)};P.spread=Ds;P.isAxiosError=Is;P.mergeConfig=se;P.AxiosHeaders=I;P.formToJSON=t=>fr(c.isHTMLForm(t)?new FormData(t):t);P.getAdapter=wr.getAdapter;P.HttpStatusCode=ot;P.default=P;const{Axios:ra,AxiosError:na,CanceledError:sa,isCancel:ia,CancelToken:oa,VERSION:aa,all:ca,Cancel:ua,isAxiosError:la,spread:ha,toFormData:da,AxiosHeaders:fa,HttpStatusCode:ma,formToJSON:pa,getAdapter:ga,mergeConfig:ba,create:ya}=P,bt=P.create({baseURL:location.origin,timeout:6e4,params:{}});bt.interceptors.response.use(t=>t,t=>{if(t.response){if(t.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(n){n&&OpenC3Auth.setTokens()}),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let e=`HTTP ${t.response.status} - `;t.response?.statusText&&(e+=`${t.response.statusText} `),t.response?.config?.data&&(e+=`${t.response.config.data} `),t.response?.data?.message?e+=`${t.response.data.message}`:t.response?.data?.exception?e+=`${t.response.data.exception}`:t.response?.data?.error?.message?(t.response.data.error.class&&(e+=`${t.response.data.error.class} `),e+=`${t.response.data.error.message}`):e+=`${t.response?.data}`;const{$cosmosNotify:r}=window;throw r&&r.serious({title:"Network error",body:e}),t}else throw t});const De=async function(t,e,{data:r,params:n={},headers:s,noAuth:i=!1,noScope:o=!1,onUploadProgress:a=!1}={}){if(!i){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}s.Authorization=localStorage.openc3Token}return s.manual=!0,!o&&!n.scope&&(n.scope=window.openc3Scope),bt({method:t,url:e,data:r,params:n,headers:s,onUploadProgress:a})},at={Accept:"application/json"},Lt={...at,"Content-Type":"application/json"},Fs={get:function(t,{params:e,headers:r=at,noScope:n,noAuth:s,onUploadProgress:i}={}){return De("get",t,{params:e,headers:r,noScope:n,noAuth:s,onUploadProgress:i})},put:function(t,{data:e,params:r,headers:n=Lt,noScope:s,noAuth:i,onUploadProgress:o}={}){return De("put",t,{data:e,params:r,headers:n,noScope:s,noAuth:i,onUploadProgress:o})},post:function(t,{data:e,params:r,headers:n=Lt,noScope:s,noAuth:i,onUploadProgress:o}={}){return De("post",t,{data:e,params:r,headers:n,noScope:s,noAuth:i,onUploadProgress:o})},delete:function(t,{params:e,headers:r=at,noScope:n,noAuth:s,onUploadProgress:i}={}){return De("delete",t,{params:e,headers:r,noScope:n,noAuth:s,onUploadProgress:i})}};let Ve=()=>({emit(t,...e){for(let r=this.events[t]||[],n=0,s=r.length;n<s;n++)r[n](...e)},events:{},on(t,e){return(this.events[t]||=[]).push(e),()=>{this.events[t]=this.events[t]?.filter(r=>e!==r)}}});class ke extends Error{constructor(e,r){e instanceof Error?(super(e.message),this.cause=e):super(e),this.reason=r,this.name="ReasonError"}}class yt extends ke{constructor(e){super("Rejected",e),this.name="SubscriptionRejectedError"}}class Ms extends ke{constructor(e){super(e||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class $ extends ke{constructor(e,r){r?super(e,r):super("Disconnected",e),this.name="DisconnectedError"}}class Ls extends ${constructor(e){super(e,"stale_connection"),this.name="StaleConnectionError"}}function Sr(t){return t?`{${Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>{let r=JSON.stringify(t[e]);return`${JSON.stringify(e)}:${r}`}).join(",")}}`:""}class Us{constructor(e){this.channel=e,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",e=>{if(e.type==="info"){this._state||(this._state=this.stateFromInfo(e));return}this._state&&(e.type==="join"?this._state[e.id]=e.info:e.type==="leave"&&delete this._state[e.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(e=>e()),this.listeners.length=0}async join(e,r){if(!this._info)return this._info={id:String(e),info:r},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let e=await this.channel.perform("$presence:leave");return delete this._info,e}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let e=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(e),this._state}finally{delete this._promise}}stateFromInfo(e){return e.records.reduce((r,{id:n,info:s})=>(r[n]=s,r),{})}}const Z=Symbol("state");class Er{constructor(e={}){this.emitter=Ve(),this.params=Object.freeze(e),this.presence=new Us(this),this.initialConnect=!0,this[Z]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=Sr({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[Z]}attached(e){if(this.receiver){if(this.receiver!==e)throw Error("Already connected to a different receiver");return!1}return this.receiver=e,!0}connecting(){this[Z]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[Z]="connected";let e=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:e})):this.emit("connect",{reconnect:!0,restored:e})}restored(){if(this.state==="connected")throw Error("Already connected");this[Z]="connected";let e=!0,r=!0;this.initialConnect=!1,this.emit("connect",{reconnect:r,restored:e})}disconnected(e){this.state==="disconnected"||this.state==="closed"||(this[Z]="disconnected",this.presence.reset(),this.emit("disconnect",e))}closed(e){this.state!=="closed"&&(this[Z]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",e))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(e,r){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,e,r)}async send(e){return this.perform(void 0,e)}async whisper(e){try{await this.perform("$whisper",e)}catch(r){let n=this.receiver?this.receiver.logger:null;n&&n.warn("whisper failed: ",r)}}receive(e,r){this.emit("message",e,r)}on(e,r){return this.emitter.on(e,r)}once(e,r){let n=this.emitter.on(e,(...s)=>{n(),r(...s)});return n}emit(e,...r){return this.emitter.emit(e,...r)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((e,r)=>{let n=[()=>delete this._pendingSubscribe];n.push(this.on("connect",()=>{n.forEach(s=>s()),e()})),n.push(this.on("close",s=>{n.forEach(i=>i()),r(s||new ke("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class qs{constructor(e){this.id=e,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(e){this.channels.includes(e)||this.channels.push(e)}remove(e){let r=this.channels.indexOf(e);r>-1&&this.channels.splice(r,1)}notify(e,...r){this.state=e==="restored"?"connected":e,r.length===1?this.channels.forEach(n=>n[e](r[0])):this.channels.forEach(n=>n[e]())}pending(e){this._checkIntent(e);let r=this._pendings[0];return!r||r.intent!==e?Promise.resolve():r.promise}ensureResubscribed(){this.disposed||(this.intent=void 0,this.ensureSubscribed())}ensureSubscribed(){if(this.intent!=="subscribed"){if(this.disposed)throw Error("Subscription is disposed");this.intent="subscribed",!this._mergeWithPending("unsubscribed")&&this.subscriber(this)}}maybeUnsubscribe(){this.disposed||this.intent==="unsubscribed"||this.channels.length>0||(this.intent="unsubscribed",this._mergeWithPending("subscribed"))||this.unsubscriber(this)}async acquire(e){this._checkIntent(e);let r,n={promise:new Promise(i=>{r=i}),intent:e,release:()=>{this._pendings.splice(this._pendings.indexOf(n),1),r(n)},canceled:!1,acquired:!1},s=this._pendingTop;return this._pendings.push(n),s&&await s.promise,this.gvl&&await this.gvl.acquire(n,e),n.acquired=!0,n}close(e){this.disposed=!0,this.intent=void 0,this.notify("closed",e)}_checkIntent(e){if(!(e==="unsubscribed"||e==="subscribed"))throw Error(`Unknown subscription intent: ${e}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(e){let r=this._pendingTop;return!r||r.acquired||r.intent!==e?!1:(this._pendings.pop(),r.canceled=!0,!0)}}class Ws{constructor(){this.queue=[]}async acquire(e,r){r==="subscribed"&&(this.queue.push(e.promise.then(()=>{this.queue.splice(this.queue.indexOf(e),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class $s{constructor(e){e.concurrentSubscribes===!1&&(this.glv=new Ws),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(e){return this._subscriptions[e]}create(e,{subscribe:r,unsubscribe:n}){let s=this._subscriptions[e]=new qs(e);return s.remoteId=this._localToRemote[e],s.subscriber=r,s.unsubscriber=n,s.gvl=this.glv,s}remove(e){delete this._subscriptions[e],delete this._localToRemote[e]}storeRemoteId(e,r){this._localToRemote[e]=r;let n=this.get(e);n&&(n.remoteId=r)}}class Bs{constructor(e={}){this.subscriptions=new $s(e),this._pendingMessages=[],this._remoteToLocal={}}subscribe(e,r){this._remoteToLocal[r]=e,this.subscriptions.storeRemoteId(e,r),this.flush(r)}unsubscribe(e){let r=this.subscriptions.get(e);if(!r)return;let n=r.remoteId;n&&delete this._remoteToLocal[n],this.subscriptions.remove(e)}transmit(e,r,n){let s=this._remoteToLocal[e];if(!s){this._pendingMessages.push([e,r,n]);return}let i=this.subscriptions.get(s);i&&i.channels.forEach(o=>{o.receive(r,n)})}notify(e,r,n){let s=this._remoteToLocal[e];if(!s)return;let i=this.subscriptions.get(s);i&&i.channels.forEach(o=>o.emit(r,n))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(e=>e.channels)}flush(e){let r=[];for(let n of this._pendingMessages)n[0]===e?this.transmit(n[0],n[1],n[2]):r.push(n);this._pendingMessages=r}}const Ut={debug:0,info:1,warn:2,error:3};class Or{constructor(e){this.level=e||"warn"}log(e,r,n){Ut[e]<Ut[this.level]||this.writeLogEntry(e,r,n)}writeLogEntry(){throw Error("Not implemented")}debug(e,r){this.log("debug",e,r)}info(e,r){this.log("info",e,r)}warn(e,r){this.log("warn",e,r)}error(e,r){this.log("error",e,r)}}class Te extends Or{writeLogEntry(){}}class Ys{encode(e){return JSON.stringify(e)}decode(e){try{return JSON.parse(e)}catch{}}}let zs=0;class xr{constructor(e={}){let{logger:r}=e;this.logger=r||new Te,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=e.subscribeCooldownInterval||250,this.subscribeRetryInterval=e.subscribeRetryInterval||5e3}attached(e){this.cable=e}subscribe(e,r){let n={channel:e};r&&Object.assign(n,r);let s=Sr(n);if(this.pendingUnsubscriptions[s]){let o=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${o}`,s),new Promise(a=>{setTimeout(()=>{a(this.subscribe(e,r))},o)})}if(this.pendingSubscriptions[s])return this.logger.warn("subscription is already pending, skipping",s),Promise.reject(Error("Already subscribing"));let i=this.subscribeRetryInterval;return new Promise((o,a)=>{let l=++zs;this.pendingSubscriptions[s]={resolve:o,reject:a,id:l},this.cable.send(this.buildSubscribeRequest(s)),this.maybeRetrySubscribe(l,s,i)})}buildSubscribeRequest(e){return{command:"subscribe",identifier:e}}maybeRetrySubscribe(e,r,n){setTimeout(()=>{let s=this.pendingSubscriptions[r];s&&s.id===e&&(this.logger.warn(`no subscription ack received in ${n}ms, retrying subscribe`,r),this.cable.send(this.buildSubscribeRequest(r)),this.maybeExpireSubscribe(e,r,n))},n)}maybeExpireSubscribe(e,r,n){setTimeout(()=>{let s=this.pendingSubscriptions[r];s&&s.id===e&&(delete this.pendingSubscriptions[r],s.reject(new Ms(`Haven't received subscription ack in ${n*2}ms for ${r}`)))},n)}unsubscribe(e){return this.cable.send({command:"unsubscribe",identifier:e}),this.pendingUnsubscriptions[e]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[e]},this.subscribeCooldownInterval),Promise.resolve()}perform(e,r,n){return r==="$whisper"?this.whisper(e,n):(n||(n={}),n.action||=r,this.cable.send({command:"message",identifier:e,data:JSON.stringify(n)}),Promise.resolve())}whisper(e,r){return this.cable.send({command:"whisper",identifier:e,data:r}),Promise.resolve()}receive(e){if(typeof e!="object"){this.logger.error("unsupported message format",{message:e});return}let{type:r,identifier:n,message:s,reason:i,reconnect:o}=e;if(r==="ping")return this.cable.keepalive(e.message);if(this.cable.keepalive(),r==="welcome"){let a=e.sid;return a&&this.cable.setSessionId(a),this.cable.connected()}if(r==="disconnect"){let a=new $(i);this.reset(a),o===!1?this.cable.closed(a):this.cable.disconnected(a);return}if(r==="confirm_subscription"){let a=this.pendingSubscriptions[n];if(!a){this.logger.error("subscription not found, unsubscribing",{type:r,identifier:n}),this.unsubscribe(n);return}return delete this.pendingSubscriptions[n],a.resolve(n)}if(r==="reject_subscription"){let a=this.pendingSubscriptions[n];return a?(delete this.pendingSubscriptions[n],a.reject(new yt)):this.logger.error("subscription not found",{type:r,identifier:n})}if(s)return{identifier:n,message:s};this.logger.warn(`unknown message type: ${r}`,{message:e})}reset(e){for(let r in this.pendingSubscriptions)this.pendingSubscriptions[r].reject(e);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const qt=()=>Date.now()/1e3|0;class Hs extends xr{constructor(e={}){super(e),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=e.historyTimestamp,this.disableSessionRecovery=e.disableSessionRecovery,this.restoreSince===void 0&&(this.restoreSince=qt()),this.sessionId=void 0,this.sendPongs=e.pongs}reset(e){for(let r in this.pendingPresence)this.pendingPresence[r].reject(e);return this.pendingPresence={},super.reset()}receive(e){if(typeof e!="object"){this.logger.error("unsupported message format",{message:e});return}let{type:r,identifier:n,message:s}=e;if(r==="disconnect")return delete this.sessionId,this.cable.setSessionId(""),super.receive(e);if(r==="reject_subscription")return super.receive(e);if(r==="confirm_subscription")return this.subscriptionStreams[n]||(this.subscriptionStreams[n]=new Set),super.receive(e);if(r==="ping")return this.restoreSince&&(this.restoreSince=qt()),this.sendPongs&&this.sendPong(),this.cable.keepalive(e.message);if(this.cable.keepalive(),r==="confirm_history"){this.logger.debug("history result received",e),this.cable.notify("history_received",n);return}if(r==="reject_history"){this.logger.warn("failed to retrieve history",e),this.cable.notify("history_not_found",n);return}if(r==="welcome"){if(this.disableSessionRecovery||(this.sessionId=e.sid,this.sessionId&&this.cable.setSessionId(this.sessionId)),e.restored){let i=e.restored_ids||Object.keys(this.subscriptionStreams);for(let o of i)this.cable.send({identifier:o,command:"history",history:this.historyRequestFor(o)}),this.presenceInfo[o]&&this.cable.send({identifier:o,command:"join",presence:this.presenceInfo[o]});return this.cable.restored(i)}return this.cable.connected(this.sessionId)}if(r==="presence"){let i=s.type;if(i==="info"){let o=this.pendingPresence[n];o&&(delete this.pendingPresence[n],o.resolve(s))}else if(i==="error"){let o=this.pendingPresence[n];o&&(delete this.pendingPresence[n],o.reject(new Error("failed to retrieve presence")))}return{type:r,identifier:n,message:s}}if(s){let i=this.trackStreamPosition(n,e.stream_id,e.epoch,e.offset);return{identifier:n,message:s,meta:i}}this.logger.warn(`unknown message type: ${r}`,{message:e})}perform(e,r,n){switch(r){case"$presence:join":return this.join(e,n);case"$presence:leave":return this.leave(e,n);case"$presence:info":return this.presence(e,n)}return super.perform(e,r,n)}unsubscribe(e){return delete this.presenceInfo[e],super.unsubscribe(e)}buildSubscribeRequest(e){let r=super.buildSubscribeRequest(e),n=this.historyRequestFor(e);n&&(r.history=n,this.pendingHistory[e]=!0);let s=this.presenceInfo[e];return s&&(r.presence=s),r}recoverableClosure(){return!!this.sessionId}historyRequestFor(e){let r={},n=!1;if(this.subscriptionStreams[e])for(let s of this.subscriptionStreams[e]){let i=this.streamsPositions[s];i&&(n=!0,r[s]=i)}if(!(!n&&!this.restoreSince))return{since:this.restoreSince,streams:r}}trackStreamPosition(e,r,n,s){if(!(!r||!n))return this.subscriptionStreams[e]||(this.subscriptionStreams[e]=new Set),this.subscriptionStreams[e].add(r),this.streamsPositions[r]={epoch:n,offset:s},{stream:r,epoch:n,offset:s}}async sendPong(){await new Promise(e=>setTimeout(e,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(e,r){return this.presenceInfo[e]=r,this.cable.send({command:"join",identifier:e,presence:r}),Promise.resolve()}async leave(e,r){return delete this.presenceInfo[e],this.cable.send({command:"leave",identifier:e,presence:r}),Promise.resolve()}presence(e,r){return this.pendingPresence[e]?(this.logger.warn("presence is already pending, skipping",e),Promise.reject(Error("presence request is already pending"))):new Promise((n,s)=>{this.pendingPresence[e]={resolve:n,reject:s},this.cable.send({command:"presence",identifier:e,data:r})})}}class Vs extends ke{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class Rr extends Er{static identifier="__ghost__";constructor(e,r){super(r),this.channelId=e}set channelId(e){this._channelId=e}get channelId(){return this._channelId}}const Js="$pubsub";class Wt extends Er{static identifier=Js;async perform(e,r){if(e.startsWith("$"))return super.perform(e,r);throw Error("not implemented")}}const ee=Symbol("state");let Xs=class{constructor({transport:t,protocol:e,encoder:r,logger:n,lazy:s,hubOptions:i,performFailures:o,transportConfigurator:a}){this.emitter=Ve(),this.transport=t,this.encoder=r,this.logger=n||new Te,this.protocol=e,this.performFailures=o||"throw",this.protocol.attached(this),this.hub=new Bs(i||{}),this[ee]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transportConfigurator=a,this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,s===!1&&this.connect().catch(()=>{})}get state(){return this[ee]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();let t=this.state==="idle";this[ee]="connecting";let e=this.pendingConnect();this.logger.debug("connecting");try{this.transportConfigurator&&await this.transportConfigurator(this.transport,{initial:t}),await this.transport.open()}catch(r){this.handleClose(r)}return e}setSessionId(t){this.sessionId=t,this.transport.setParam("sid",t)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[ee]="connected",this.recovering&&this.hub.subscriptions.all().forEach(e=>e.notify("disconnected",new $("recovery_failed"))),this.hub.subscriptions.all().forEach(e=>this._resubscribe(e));let t=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:t})):this.emit("connect",{reconnect:!0,restored:t})}restored(t){this.logger.info("connection recovered",{remoteIds:t}),this[ee]="connected",this.hub.subscriptions.all().forEach(n=>{t&&n.remoteId&&t.includes(n.remoteId)?n.notify("restored"):(n.notify("disconnected",new $("recovery_failed")),this._resubscribe(n))});let e=!this.initialConnect,r=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:e,restored:r})}notify(t,e,r){e&&typeof e!="string"&&(r=e,e=void 0),e?this.hub.notify(e,"info",{type:t,data:r}):this.emit("info",{type:t,data:r})}handleClose(t){this.logger.debug("transport closed",{error:t}),this.disconnected(new $(t,"transport_closed"))}disconnected(t){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:t}),this[ee]="disconnected",this.recovering=this.protocol.recoverableClosure(t),this.recovering?this.hub.subscriptions.all().forEach(e=>e.notify("connecting")):this.hub.subscriptions.all().forEach(e=>{e.notify("disconnected",t)}),this.protocol.reset(t),this.hub.close(),this.transport.close(),this.emit("disconnect",t))}closed(t){if(this.state==="closed"||this.state==="idle")return;let e;t&&(e=t instanceof $?t:new $(t,void 0)),this.logger.info("closed",{reason:t||"user"}),this[ee]="closed";let r=e||new $("cable_closed");this.hub.subscriptions.all().forEach(n=>n.notify("disconnected",r)),this.hub.close(),this.protocol.reset(),this.transport.close(),this.initialConnect=!0,this.emit("close",e)}disconnect(){this.closed()}handleIncoming(t){if(this.state==="closed"||this.state==="idle")return;let e=this.encoder.decode(t);if(e===void 0){this.logger.error("failed to decode message",{message:t});return}this.logger.debug("incoming data",e);let r=this.protocol.receive(e);if(r){this.logger.debug("processed incoming message",r);let{type:n,identifier:s,message:i,meta:o}=r;n?this.hub.notify(s,n,i):this.hub.transmit(s,i,o)}}send(t){if(this.state==="closed")throw Error("Cable is closed");let e=this.encoder.encode(t);if(e===void 0){this.logger.error("failed to encode message",{message:t});return}this.logger.debug("outgoing message",t),this.transport.send(e)}keepalive(t){this.emit("keepalive",t)}streamFrom(t){let e=new Wt({stream_name:t});return this.subscribe(e)}streamFromSigned(t){let e=new Wt({signed_stream_name:t});return this.subscribe(e)}subscribeTo(t,e){let r,n;return typeof t=="string"&&(n=t,t=Rr),r=n?new t(n,e):new t(e),this.subscribe(r)}subscribe(t){if(!t.attached(this))return t;let e=t.identifier;t.connecting();let r=this.hub.subscriptions.get(e)||this.hub.subscriptions.create(e,{subscribe:n=>this._subscribe(n,t.channelId,t.params),unsubscribe:n=>this._unsubscribe(n)});return r.add(t),r.intent==="subscribed"&&r.state==="connected"&&t.connected(),r.ensureSubscribed(),t}async _resubscribe(t){t.intent!=="subscribed"||!t.channels[0]||(t.notify("connecting"),t.ensureResubscribed())}async _subscribe(t,e,r){let n=t.id;if(this.state==="idle"&&this.connect().catch(()=>{}),this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:n});return}this.logger.debug("acquiring subscribe lock",{identifier:n});let s=await t.acquire("subscribed");if(s.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:n}),s.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:n}),t.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),s.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:n}),s.release();return}if(t.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:n}),t.notify("connected"),s.release();return}let i={identifier:e,params:r};this.logger.debug("subscribing",i);try{let o=await this.protocol.subscribe(e,r);this.hub.subscribe(n,o),this.logger.debug("subscribed",{...i,remoteId:o}),t.notify("connected")}catch(o){if(o){if(o instanceof yt&&this.logger.warn("rejected",i),o instanceof $){this.logger.debug("disconnected during subscription; will retry on connect",i),s.release();return}this.logger.error("failed to subscribe",{error:o,...i})}t.close(o),this.hub.unsubscribe(n)}s.release()}unsubscribe(t){let e=t.identifier,r=this.hub.subscriptions.get(e);if(!r)throw Error(`Subscription not found: ${e}`);r.remove(t),t.closed(),r.maybeUnsubscribe()}async _unsubscribe(t){let e=t.id;this.logger.debug("acquiring unsubscribe lock",{identifier:e});let r=await t.acquire("unsubscribed");if(r.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:e}),r.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:e}),t.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:e,intent:t.intent}),r.release();return}if(t.state==="disconnected"||t.state==="closed"){this.logger.debug(`already ${t.state} connected, skip unsubscribe command`,{identifier:e}),r.release();return}let n=t.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:n}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:e}),t.close(),this.hub.unsubscribe(e),r.release();return}try{await this.protocol.unsubscribe(n),this.logger.debug("unsubscribed remotely",{id:e})}catch(s){s&&(s instanceof $?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:e,error:s}):this.logger.error("unsubscribe failed",{id:e,error:s}))}t.intent==="unsubscribed"?(t.close(),this.hub.unsubscribe(e)):t.state="closed",r.release()}async perform(t,e,r){if(this.performFailures==="throw")return this._perform(t,e,r);try{return await this._perform(t,e,r)}catch(n){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:n});return}}async _perform(t,e,r){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new Vs;let n=this.hub.subscriptions.get(t);if(!n)throw Error(`Subscription not found: ${t}`);if(await n.pending("subscribed"),n.intent!=="subscribed")throw Error(`Subscription is closed: ${t}`);let s=n.remoteId,i={id:s,action:e,payload:r};this.logger.debug("perform",i);try{let o=await this.protocol.perform(s,e,r);return o&&this.logger.debug("perform result",{message:o,request:i}),o}catch(o){throw this.logger.error("perform failed",{error:o,request:i}),o}}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...n)=>{r(),e(...n)});return r}emit(t,...e){return this.emitter.emit(t,...e)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((t,e)=>{let r=[()=>delete this._pendingConnect];r.push(this.on("connect",()=>{r.forEach(n=>n()),t()})),r.push(this.on("close",n=>{r.forEach(s=>s()),e(n)})),r.push(this.on("disconnect",n=>{r.forEach(s=>s()),e(n)}))}),this._pendingConnect)}};const Qs={maxMissingPings:2,maxReconnectAttempts:1/0},ce=()=>Date.now(),Pr=(t,e)=>{e=e||{};let{backoffRate:r,jitterRatio:n,maxInterval:s}=e;return r=r||2,n===void 0&&(n=.5),i=>{let o=t*r**i,a=o*r,l=o+(a-o)*Math.random(),u=2*(Math.random()-.5)*n;return l=l*(1+u),s&&s<l&&(l=s),l}};let kr=class{constructor({pingInterval:t,...e}){if(this.pingInterval=t,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${t}`);if(e=Object.assign({},Qs,e),this.strategy=e.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=e.maxMissingPings,this.maxReconnectAttempts=e.maxReconnectAttempts,this.logger=e.logger||new Te,this.state="pending_connect",this.attempts=0,this.disconnectedAt=ce()}watch(t){this.target=t,this.initListeners()}reconnectNow(){return this.state==="connected"||this.state==="pending_connect"||this.state==="closed"?!1:(this.cancelReconnect(),this.state="pending_connect",this.target.connect().catch(t=>{this.logger.info("Failed at reconnecting: "+t)}),!0)}initListeners(){this.unbind=[],this.unbind.push(this.target.on("connect",()=>{this.attempts=0,this.pingedAt=ce(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=ce(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=ce(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=ce()})),this.unbind.push(()=>{this.cancelReconnect(),this.stopPolling()})}dispose(){delete this.target,this.unbind&&this.unbind.forEach(t=>t()),delete this.unbind}startPolling(){this.pollId&&clearTimeout(this.pollId);let t=this.pingInterval+(Math.random()-.5)*this.pingInterval*.5;this.pollId=setTimeout(()=>{this.checkStale(),this.state==="connected"&&this.startPolling()},t)}stopPolling(){this.pollId&&clearTimeout(this.pollId)}checkStale(){let t=ce()-this.pingedAt;t>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${t}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new Ls))}scheduleReconnect(){if(this.attempts>=this.maxReconnectAttempts){this.target.close();return}let t=this.strategy(this.attempts);this.attempts++,this.logger.info(`Reconnecting in ${t}ms (${this.attempts} attempt)`),this.state="pending_reconnect",this.reconnnectId=setTimeout(()=>this.reconnectNow(),t)}cancelReconnect(){this.reconnnectId&&(clearTimeout(this.reconnnectId),delete this.reconnnectId)}};class Gs{constructor(e,r={}){this.transports=e,this.transport=null,this.emitter=Ve(),this.unbind=[],this.logger=r.logger||new Te}displayName(){return"fallbacked transport"}async open(){for(let e=0;e<this.transports.length;e++){let r=this.transports[e];try{this.transport=r,this.resetListeners(),this.logger.debug(`Trying to connect via ${r.displayName()}`),await r.open(),this.logger.debug(`Connected via ${r.displayName()}`);return}catch(n){this.logger.debug(`Failed to connect via ${r.displayName()}: ${n.message}`)}}throw this.transport=null,this.resetListeners(),new Error("Couldn't connect via any available transport")}send(e){if(!this.transport)throw new Error("No transport is open");this.transport.send(e)}async close(){if(!this.transport)throw new Error("No transport is open");await this.transport.close(),this.transport=null}setURL(){throw new Error("Not implemented. Set URL for each transport separately")}setParam(e,r){this.transports.forEach(n=>{n.setParam(e,r)})}setToken(e,r){this.transports.forEach(n=>{n.setToken(e,r)})}on(e,r){return this.emitter.on(e,r)}once(e,r){let n=this.emitter.on(e,(...s)=>{n(),r(...s)});return n}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(e=>e()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",e=>{this.emitter.emit("data",e)}),this.transport.on("close",e=>{this.emitter.emit("close",e)}),this.transport.on("error",e=>{this.emitter.emit("error",e)}))}}class Ks{constructor(e,r={}){this.url=e;let n=r.websocketImplementation;if(n)this.Impl=n;else if(typeof WebSocket<"u")this.Impl=WebSocket;else throw new Error("No WebSocket support");this.connected=!1,this.emitter=Ve();let{format:s,subprotocol:i,authStrategy:o}=r;this.format=s||"text",this.connectionOptions=r.websocketOptions,this.authStrategy=o||"param",this.authProtocol="",this.subprotocol=i}displayName(){return"WebSocket("+this.url+")"}open(){let e=this.subprotocol;return this.authStrategy==="sub-protocol"&&(e=[this.subprotocol,this.authProtocol]),this.connectionOptions?this.ws=new this.Impl(this.url,e,this.connectionOptions):this.ws=new this.Impl(this.url,e),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((r,n)=>{let s=[];s.push(this.once("open",()=>{s.forEach(i=>i()),r()})),s.push(this.once("close",()=>{s.forEach(i=>i()),n(Error("WS connection closed"))}))})}setURL(e){this.url=e}setParam(e,r){let n=new URL(this.url);n.searchParams.set(e,r);let s=`${n.protocol}//${n.host}${n.pathname}?${n.searchParams}`;this.setURL(s)}setToken(e,r="jid"){if(this.authStrategy==="param")this.setParam(r,e);else if(this.authStrategy==="header"){this.connectionOptions=this.connectionOptions||{},this.connectionOptions.headers=this.connectionOptions.headers||{};let n=`x-${r}`.toLowerCase();n=Object.keys(this.connectionOptions.headers).find(s=>s.toLowerCase()===n)||n,this.connectionOptions.headers[n]=e}else if(this.authStrategy==="sub-protocol")this.authProtocol=`anycable-token.${e}`;else throw new Error("Unknown auth strategy: "+this.authStrategy)}send(e){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(e)}close(){this.ws?this.onclose():this.connected=!1}on(e,r){return this.emitter.on(e,r)}once(e,r){let n=this.emitter.on(e,(...s)=>{n(),r(...s)});return n}initListeners(){this.ws.onerror=e=>{this.connected&&this.emitter.emit("error",e.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=e=>{let r=e.data;this.format==="binary"&&(r=new Uint8Array(r)),this.emitter.emit("data",r)},this.ws.onopen=()=>{this.connected=!0,this.emitter.emit("open")}}onclose(){this.ws.onclose=void 0,this.ws.onmessage=void 0,this.ws.onopen=void 0,this.ws.close(),delete this.ws,this.connected=!1,this.emitter.emit("close")}}class Zs{constructor(e){this.channel=e}notify(e,...r){typeof this[e]=="function"&&this[e](...r)}perform(e,r={}){this.channel.perform(e,r)}send(e){this.channel.send(e)}whisper(e){return this.channel.whisper(e)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class ei extends Rr{constructor(e,r,n){super(e,r),this.subscription=new Zs(this),Object.assign(this.subscription,n),this.on("connect",({reconnect:s})=>this.subscription.notify("connected",{reconnected:s})),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",s=>this.subscription.notify("received",s)),this.on("close",s=>{s&&s instanceof yt?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class ti{constructor(e){this.cable=e}create(e,r){let n,s;typeof e=="object"?(n=e.channel,delete e.channel,s=e):(n=e,s={});let i=new ei(n,s,r);return i.subscription.notify("initialized"),this.cable.subscribe(i),i.subscription}findAll(e){return this.cable.hub.channels.filter(r=>r.identifier===e).map(r=>r.subscription)}}class ri{constructor(e){this.cable=e,this.subscriptions=new ti(e)}send(e){return this.cable.send(e)}connect(){return this.cable.connect()}disconnect(){return this.cable.disconnect()}ensureActiveConnection(){return this.cable.connect()}}const Tr={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function ni(t,e){if(typeof t=="object"&&typeof e>"u"&&(e=t,t=void 0),e=e||{},!t&&!e.transport)throw Error("URL or transport must be specified");e=Object.assign({},Tr,e);let{protocol:r,websocketImplementation:n,websocketFormat:s,websocketOptions:i,websocketAuthStrategy:o,fallbacks:a,logLevel:l,logger:u,transport:h,encoder:d,lazy:m,monitor:p,pingInterval:v,reconnectStrategy:f,maxMissingPings:S,maxReconnectAttempts:g,subprotocol:y,tokenRefresher:_,historyTimestamp:O,protocolOptions:J,concurrentSubscribes:ie,performFailures:fe,transportConfigurator:K,auth:z}=e;if(u=u||new Te(l),typeof r=="string"){y=y||r;let W=r.substring(0,r.lastIndexOf("-")),X=r.substring(r.lastIndexOf("-")+1);if(J=J||{},W==="actioncable-v1")r=new xr({logger:u,...J});else if(W==="actioncable-v1-ext")r=new Hs({logger:u,historyTimestamp:O,...J});else throw Error(`Protocol is not supported yet: ${r}`);if(X==="json")d=d||new Ys,s=s||"text";else if(X==="msgpack"){if(s="binary",!d)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(X==="protobuf"){if(s=s||"binary",!d)throw Error("Protobuf encoder must be specified explicitly. Use `@anycable/protobuf-encoder` package or build your own")}else throw Error(`Protocol is not supported yet: ${r}`)}if(!r)throw Error("Protocol must be specified");h=h||new Ks(t,{websocketImplementation:n,websocketOptions:i,subprotocol:y,authStrategy:o,format:s}),a&&(h=new Gs([h,...a],{logger:u})),z&&z.token&&h.setToken(z.token,z.param||"jid"),f=f||Pr(v),p!==!1&&(p=p||new kr({pingInterval:v,reconnectStrategy:f,maxMissingPings:S,maxReconnectAttempts:g,logger:u}));let M={concurrentSubscribes:ie},D=new Xs({protocol:r,transport:h,encoder:d,logger:u,lazy:m,hubOptions:M,performFailures:fe,transportConfigurator:K});return p&&(p.watch(D),D.monitor=p),_&&si(D,async()=>{try{await _(h)}catch(W){return u.error("Failed to refresh authentication token: "+W),!1}return D.connect().catch(()=>{}),!0}),D}function si(t,e){let r=!1;t.on("connect",()=>r=!1),t.on("close",async n=>{if(n){if(r){t.logger.warn("Token auto-refresh is disabled",n);return}n.reason==="token_expired"&&(r=!0,await e())}})}class ii extends Or{writeLogEntry(e,r,n){n?console[e](r,n):console[e](r)}}class oi extends kr{watch(e){super.watch(e),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let e=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},r=s=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:s})},n=()=>this.disconnect(new $("page_frozen"));document.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",r,!1),window.addEventListener("online",r,!1),window.addEventListener("resume",r,!1),window.addEventListener("freeze",n,!1),this.unbind.push(()=>{document.removeEventListener("visibilitychange",e,!1),window.removeEventListener("focus",r,!1),window.removeEventListener("online",r,!1),window.removeEventListener("resume",r,!1),window.removeEventListener("freeze",n,!1)})}}disconnect(e){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:e.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(e))}}const ai=["cable","action-cable"],ci="/cable",Je=(t,e)=>{for(let r of ai){let n=t.head.querySelector(`meta[name='${r}-${e}']`);if(n)return n.getAttribute("content")}},$t=t=>t.match(/wss?:\/\//)?t:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${t}`:t,ui=()=>{if(typeof document<"u"&&document.head){let t=Je(document,"url");if(t)return $t(t)}return $t(ci)},li=()=>{if(typeof document<"u"&&document.head){let t=Je(document,"history-timestamp");if(t)return t|0}},hi=()=>{if(typeof document<"u"&&document.head)return Je(document,"token")},di=()=>{if(typeof document<"u"&&document.head)return Je(document,"token-param")};function fi(t,e){typeof t=="object"&&typeof e>"u"&&(e=t,t=void 0),t=t||ui(),e=e||{},e.historyTimestamp||=li();let r=hi();if(r){let u=di();e.auth=Object.assign({token:r,param:u},e.auth||{})}e=Object.assign({},Tr,e);let{logLevel:n,logger:s,pingInterval:i,reconnectStrategy:o,maxMissingPings:a,maxReconnectAttempts:l}=e;return s=e.logger=e.logger||new ii(n),o=e.reconnectStrategy=e.reconnectStrategy||Pr(i),e.monitor!==!1&&(e.monitor=e.monitor||new oi({pingInterval:i,reconnectStrategy:o,maxMissingPings:a,maxReconnectAttempts:l,logger:s})),ni(t,e)}function mi(t,e){let r=fi(t,e);return new ri(r)}class pi{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(e,r,n={},s={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(i=>{if(i&&OpenC3Auth.setTokens(),this._cable==null){const o=new URL(this._url,document.baseURI);o.searchParams.set("scope",r),this._cable=mi(o.href)}return this._cable.subscriptions.create({channel:e,token:localStorage.openc3Token,...s},n)})}recordPing(){}}class ct{constructor(e,r,n="",s=""){this.keyword=e.keyword,this.parameters=e.parameters,this.filename=e.filename,this.line=e.line,this.lineNumber=e.lineNumber,this.message=r,this.usage=n,this.url=s}}class gi{keyword=null;parameters=[];filename="";line="";lineNumber=0;url="https://docs.openc3.com/docs/configuration";constructor(){}verify_num_parameters(e,r,n=""){for(let s=1;s<=e;s++)if(this.parameters[s-1]===void 0)throw new ct(this,`Not enough parameters for ${this.keyword}.`,n,this.url);if(r&&this.parameters[r]!==void 0)throw new ct(this,`Too many parameters for ${this.keyword}.`,n,this.url)}remove_quotes(e){if(e.length<2)return e;let r=e.charAt(0);if(r!=='"'&&r!=="'")return e;let n=e.charAt(e.length-1);return r!==n?e:e.substring(1,e.length-1)}scan_string(e,r){if(!r.global)throw"rx must have 'global' flag set";let n=[];return e.replace(r,function(s){return n.push(s),s}),n}parse_string(e,r,n,s,i){let o=!1,a=!1;this.line="",this.keyword=null,this.parameters=[],this.filename=r;let l=e.split(`
|
|
10
|
+
`),u=l.length;for(let h=0;h<u;h++){this.lineNumber=h+1;let d=l[h];if(o)this.line=d;else{if(d=d.trim(),d.length===0){if(n){let _=i(null,[],this.line,this.lineNumber);_===!0&&(o=!0),_===!1&&(o=!1)}continue}if(a===!0){if(d[0]==="#")continue;d=d.substring(1,d.length)}let g=d.charAt(d.length-1),y=!1;switch(g){case"+":y=!0;case"\\":let _=d.substring(0,d.length-1).trim();this.line+=_.substring(0,_.length-1),y&&(this.line+=`
|
|
11
|
+
`),a=!0;continue;case"&":this.line+=d.substring(0,d.length-1);continue;default:this.line+=d}}a=!1;let m=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,p=this.scan_string(this.line,m),v="";if(p.length>0&&(v=v+p[0]),v.length===0||v.charAt(0)==="#"?this.keyword=null:this.keyword=v.toUpperCase(),this.parameters=[],this.keyword===null){if(n){let g=i(this.keyword,this.parameters,this.line,this.lineNumber);g===!0&&(o=!0),g===!1&&(o=!1)}this.line="";continue}let f=p.length;if(f>1)for(let g=1;g<f;g++){let y=p[g];if(y.length>0&&y.charAt(0)==="#")break;s?this.parameters.push(this.remove_quotes(y)):this.parameters.push(y)}let S=i(this.keyword,this.parameters,this.line,this.lineNumber);S===!0&&(o=!0),S===!1&&(o=!1),this.line=""}}}function ve(t){return bi.test(t)}const bi=/^-?[0-9]+$/;function Ar(t){return yi.test(t)}const yi=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Cr(t,e){if(ve(t))return Number.isSafeInteger(Number.parseInt(t,10));const r=Number.parseFloat(t),n=String(r);if(t===n)return!0;const s=Bt(t),i=Bt(n);return!!(s===i||e?.approx===!0&&!ve(t)&&i.length>=14&&s.startsWith(i.substring(0,14)))}let _e=(function(t){return t.underflow="underflow",t.overflow="overflow",t.truncate_integer="truncate_integer",t.truncate_float="truncate_float",t})({});function wi(t){if(Cr(t,{approx:!1}))return;if(ve(t))return _e.truncate_integer;const e=Number.parseFloat(t);return Number.isFinite(e)?e===0?_e.underflow:_e.truncate_float:_e.overflow}function Bt(t){const{start:e,end:r}=_i(t),n=t.substring(e,r),s=n.indexOf(".");return s===-1?n:n.substring(0,s)+n.substring(s+1)}function _i(t){let e=0;for(t[0]==="-"&&e++;t[e]==="0"||t[e]===".";)e++;let r=t.lastIndexOf("e");for(r===-1&&(r=t.lastIndexOf("E")),r===-1&&(r=t.length);(t[r-1]==="0"||t[r-1]===".")&&r>e;)r--;return{start:e,end:r}}class vi{isLosslessNumber=!0;constructor(e){if(!Ar(e))throw new Error(`Invalid number (value: "${e}")`);this.value=e}valueOf(){const e=wi(this.value);if(e===void 0||e===_e.truncate_float)return Number.parseFloat(this.value);if(ve(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${e} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function Si(t){return t&&typeof t=="object"&&t.isLosslessNumber||!1}function Ei(t){return new vi(t)}function Oi(t,e){return wt({"":t},"",t,e)}function wt(t,e,r,n){return Array.isArray(r)?n.call(t,e,Ri(r,n)):r&&typeof r=="object"&&!Si(r)?n.call(t,e,xi(r,n)):n.call(t,e,r)}function xi(t,e){for(const r of Object.keys(t)){const n=wt(t,r,t[r],e);n!==void 0?t[r]=n:delete t[r]}return t}function Ri(t,e){for(let r=0;r<t.length;r++)t[r]=wt(t,String(r),t[r],e);return t}function Pi(t,e,r){const n=typeof r=="function"?{parseNumber:r}:r,s=n?.parseNumber??Ei,i=n?.onDuplicateKey??fe;let o=0;const a=h();return g(a),_(),e?Oi(a,e):a;function l(){if(t.charCodeAt(o)===ji){o++,m();const w={};let R=!0;for(;o<t.length&&t.charCodeAt(o)!==zt;){R?R=!1:(f(),m());const T=o,k=p();if(k===void 0){ie();return}m(),S();const L=h();if(L===void 0){W();return}if(Object.prototype.hasOwnProperty.call(w,k)&&!ut(L,w[k])){const pe=i({key:k,position:T+1,oldValue:w[k],newValue:L});pe!==void 0&&(w[k]=pe)}else w[k]=L}return t.charCodeAt(o)!==zt&&K(),o++,w}}function u(){if(t.charCodeAt(o)===Di){o++,m();const w=[];let R=!0;for(;o<t.length&&t.charCodeAt(o)!==Ht;){R?R=!1:f();const T=h();y(T),w.push(T)}return t.charCodeAt(o)!==Ht&&z(),o++,w}}function h(){m();const w=p()??v()??l()??u()??d("true",!0)??d("false",!1)??d("null",null);return m(),w}function d(w,R){if(t.slice(o,o+w.length)===w)return o+=w.length,R}function m(){for(;ki(t.charCodeAt(o));)o++}function p(){if(t.charCodeAt(o)===et){o++;let w="";for(;o<t.length&&t.charCodeAt(o)!==et;){if(t.charCodeAt(o)===Ni){const R=t[o+1],T=Ci[R];T!==void 0?(w+=T,o++):R==="u"?Ie(t.charCodeAt(o+2))&&Ie(t.charCodeAt(o+3))&&Ie(t.charCodeAt(o+4))&&Ie(t.charCodeAt(o+5))?(w+=String.fromCharCode(Number.parseInt(t.slice(o+2,o+6),16)),o+=5):X(o):D(o)}else Ai(t.charCodeAt(o))?w+=t[o]:M(t[o]);o++}return J(),o++,w}}function v(){const w=o;if(t.charCodeAt(o)===Vt&&(o++,O(w)),t.charCodeAt(o)===_t)o++;else if(Ti(t.charCodeAt(o)))for(o++;Fe(t.charCodeAt(o));)o++;if(t.charCodeAt(o)===$i)for(o++,O(w);Fe(t.charCodeAt(o));)o++;if(t.charCodeAt(o)===Vi||t.charCodeAt(o)===Hi)for(o++,(t.charCodeAt(o)===Vt||t.charCodeAt(o)===Ui)&&o++,O(w);Fe(t.charCodeAt(o));)o++;if(o>w)return s(t.slice(w,o))}function f(){if(t.charCodeAt(o)!==Wi)throw new SyntaxError(`Comma ',' expected after value ${C()}`);o++}function S(){if(t.charCodeAt(o)!==Bi)throw new SyntaxError(`Colon ':' expected after property name ${C()}`);o++}function g(w){if(w===void 0)throw new SyntaxError(`JSON value expected ${C()}`)}function y(w){if(w===void 0)throw new SyntaxError(`Array item expected ${C()}`)}function _(){if(o<t.length)throw new SyntaxError(`Expected end of input ${C()}`)}function O(w){if(!Fe(t.charCodeAt(o))){const R=t.slice(w,o);throw new SyntaxError(`Invalid number '${R}', expecting a digit ${C()}`)}}function J(){if(t.charCodeAt(o)!==et)throw new SyntaxError(`End of string '"' expected ${C()}`)}function ie(){throw new SyntaxError(`Quoted object key expected ${C()}`)}function fe(w){let{key:R,position:T}=w;throw new SyntaxError(`Duplicate key '${R}' encountered at position ${T}`)}function K(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${C()}`)}function z(){throw new SyntaxError(`Array item or end of array ']' expected ${C()}`)}function M(w){throw new SyntaxError(`Invalid character '${w}' ${A()}`)}function D(w){const R=t.slice(w,w+2);throw new SyntaxError(`Invalid escape character '${R}' ${A()}`)}function W(){throw new SyntaxError(`Object value expected after ':' ${A()}`)}function X(w){const R=t.slice(w,w+6);throw new SyntaxError(`Invalid unicode character '${R}' ${A()}`)}function A(){return`at position ${o}`}function me(){return o<t.length?`but got '${t[o]}'`:"but reached end of input"}function C(){return`${me()} ${A()}`}}function ki(t){return t===Ii||t===Fi||t===Mi||t===Li}function Ie(t){return t>=_t&&t<=vt||t>=Yi&&t<=Ji||t>=zi&&t<=Xi}function Fe(t){return t>=_t&&t<=vt}function Ti(t){return t>=qi&&t<=vt}function Ai(t){return t>=32&&t<=1114111}function ut(t,e){return t===e?!0:Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((r,n)=>ut(r,e[n])):Yt(t)&&Yt(e)?[...new Set([...Object.keys(t),...Object.keys(e)])].every(r=>ut(t[r],e[r])):!1}function Yt(t){return typeof t=="object"&&t!==null}const Ci={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
12
|
+
`,r:"\r",t:" "},Ni=92,ji=123,zt=125,Di=91,Ht=93,Ii=32,Fi=10,Mi=9,Li=13,et=34,Ui=43,Vt=45,_t=48,qi=49,vt=57,Wi=44,$i=46,Bi=58,Yi=65,zi=97,Hi=69,Vi=101,Ji=70,Xi=102;function Nr(t,e,r,n){return i(t);function i(u,h){if(Array.isArray(n)){const d=n.find(m=>m.test(u));if(d){const m=d.stringify(u);if(typeof m!="string"||!Ar(m))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${m})`);return m}}if(typeof u=="boolean"||typeof u=="number"||typeof u=="string"||u===null||u instanceof Date||u instanceof Boolean||u instanceof Number||u instanceof String)return JSON.stringify(u);if(u?.isLosslessNumber||typeof u=="bigint")return u.toString();if(Array.isArray(u))return o(u);if(u&&typeof u=="object")return a(u)}function o(u,h){if(u.length===0)return"[]";let d="[";for(let m=0;m<u.length;m++){const p=u[m];typeof p<"u"&&typeof p!="function"?d+=i(p):d+="null",m<u.length-1&&(d+=",")}return d+="]",d}function a(u,h){if(typeof u.toJSON=="function")return Nr(u.toJSON(),e,r,void 0);const d=Array.isArray(e)?e.map(String):Object.keys(u);if(d.length===0)return"{}";let m=!0,p="{";for(const v of d){const f=u[v];if(l(v,f)){m?m=!1:p+=",";const S=JSON.stringify(v);p+=`${S}:`,p+=i(f)}}return p+="}",p}function l(u,h){return typeof h<"u"&&typeof h!="function"&&typeof h!="symbol"}}function Qi(t){return ve(t)&&!Cr(t)?BigInt(t):parseFloat(t)}class Gi{id=1;constructor(){}async exec(e,r,n={},s={},i=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return n.scope=window.openc3Scope,s.manual=!0,(await bt.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:r,id:this.id,keyword_params:n},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...s},timeout:i,transformRequest:[(o,a)=>Nr(o)],transformResponse:[o=>{try{return Pi(o,void 0,Qi)}catch{const a=typeof o=="string"?o.substring(0,200):String(o),l=new Error(`Server returned non-JSON response: ${a}`);throw l.name="ServerError",l}}]})).data.result}catch(o){let a=new Error;throw o.response?(a.name=o.response.data.error.data.class,a.message=o.response.data.error.data.message,a.object=o.response.data.error):o.request?(a.name="Request error",a.message="Request error, no response received"):a=o,a}}decode_openc3_type(e){if(e!==null&&typeof e=="object"&&e.json_class=="Float"&&e.raw){if(e.raw=="NaN")return NaN;if(e.raw=="Infinity")return 1/0;if(e.raw=="-Infinity")return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,r,n,s,i){return this.exec("map_target_to_interface",[e,r],{cmd_only:n,tlm_only:s,unmap_old:i})}unmap_target_from_interface(e,r,n,s){return this.exec("unmap_target_from_interface",[e,r],{cmd_only:n,tlm_only:s})}connect_interface(e,...r){return r.length>0?this.exec("connect_interface",[e,...r]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,r,...n){return this.exec("interface_cmd",[e,r,...n])}interface_target_enable(e,r,n=!1,s=!1){return this.exec("interface_target_enable",[e,r],{cmd_only:n,tlm_only:s})}interface_target_disable(e,r,n=!1,s=!1){return this.exec("interface_target_disable",[e,r],{cmd_only:n,tlm_only:s})}interface_details(e){return this.exec("interface_details",[e])}get_all_router_info(){return this.exec("get_all_router_info",[])}map_target_to_router(e,r,n,s,i){return this.exec("map_target_to_router",[e,r],{cmd_only:n,tlm_only:s,unmap_old:i})}unmap_target_from_router(e,r,n,s){return this.exec("unmap_target_from_router",[e,r],{cmd_only:n,tlm_only:s})}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}router_target_enable(e,r,n=!1,s=!1){return this.exec("router_target_enable",[e,r],{cmd_only:n,tlm_only:s})}router_target_disable(e,r,n=!1,s=!1){return this.exec("router_target_disable",[e,r],{cmd_only:n,tlm_only:s})}router_details(e){return this.exec("router_details",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,r,n){return this.exec("get_item",[e,r,n])}get_param(e,r,n){return this.exec("get_param",[e,r,n])}get_parameter(e,r,n){return this.exec("get_param",[e,r,n])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(e,r){return this.exec("get_tlm",[e,r])}get_telemetry(e,r){return this.exec("get_tlm",[e,r])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_tlm",[e])}get_all_tlm_names(e,r=!1){return this.exec("get_all_tlm_names",[e],{hidden:r})}get_all_telemetry_names(e){return this.exec("get_all_tlm_names",[e])}get_all_tlm_item_names(e){return this.exec("get_all_tlm_item_names",[e])}async get_tlm_packet(e,r,n,s=30){const i=await this.exec("get_tlm_packet",[e,r],{type:n,stale_time:s});if(i!=null){let o=i.length,a=null;for(let l=0;l<o;l++)a=this.decode_openc3_type(i[l][1]),a!==null&&(i[l][1]=a)}return i}get_packet_derived_items(e,r){return this.exec("get_packet_derived_items",[e,r])}get_tlm_buffer(e,r){return this.exec("get_tlm_buffer",[e,r])}get_tlm_available(e){return this.exec("get_tlm_available",[e])}async get_tlm_values(e,r=30,n=null,s=null,i=null){let o={stale_time:r};n!==null&&(o.cache_timeout=n),s!==null&&(o.start_time=s.toISOString()),i!==null&&(o.end_time=i.toISOString());const a=await this.exec("get_tlm_values",[e],o,{},1e4);if(a&&a.length>0){let l=a.length,u=null;for(let h=0;h<l;h++)u=this.decode_openc3_type(a[h][0]),u!==null&&(a[h][0]=u)}return a}get_limits(e,r,n){return this.exec("get_limits",[e,r,n])}async tlm(e,r,n,s="CONVERTED"){let i=null;if(r===void 0)i=await this.exec("tlm",[e]);else if(n===void 0)if(["RAW","CONVERTED","FORMATTED"].includes(r))i=await this.exec("tlm",[e],{type:r});else{let a=new Error;throw a.name="TypeError",a.message=`Invalid data type ${r}. Valid options are RAW, CONVERTED or FORMATTED.`,a}else i=await this.exec("tlm",[e,r,n],{type:s});let o=this.decode_openc3_type(i);return o!==null&&(i=o),i}async inject_tlm(e,r,n=null,s="CONVERTED",i=!1){await this.exec("inject_tlm",[e,r,n],{type:s,stored:i})}set_tlm(e,r,n,s){return this.exec("set_tlm",[e,r,n],{type:s})}override_tlm(e,r,n,s){return this.exec("override_tlm",[e,r,n],{type:s})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,r,n,s){return this.exec("normalize_tlm",[e,r,n],{type:s})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_cmds",[e])}get_all_cmd_names(e,r=!1){return this.exec("get_all_cmd_names",[e],{hidden:r})}get_all_command_names(e){return this.exec("get_all_cmd_names",[e])}get_cmd(e,r){return this.exec("get_cmd",[e,r])}get_command(e,r){return this.exec("get_cmd",[e,r])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,r,n,s="CONVERTED"){return this.exec("get_cmd_value",[e,r,n,s])}get_cmd_buffer(e,r){return this.exec("get_cmd_buffer",[e,r])}_cmd(e,r,n,s,i,o={}){let a=null;for(let l in s)Object.prototype.hasOwnProperty.call(s,l)&&(a=this.encode_openc3_type(s[l]),a!==null&&(s[l]=a));return this.exec(e,[r,n,s],o,i)}get_cmd_hazardous(e,r,n,s={}){return r===void 0?this.exec("get_cmd_hazardous",e,{},s):this._cmd("get_cmd_hazardous",e,r,n,s)}cmd(e,r,n,s={},i={}){return r===void 0?this.exec("cmd",e,i,s):this._cmd("cmd",e,r,n,s,i)}cmd_no_range_check(e,r,n,s={},i={}){return r===void 0?this.exec("cmd_no_range_check",e,i,s):this._cmd("cmd_no_range_check",e,r,n,s,i)}cmd_raw(e,r,n,s={},i={}){return r===void 0?this.exec("cmd_raw",e,i,s):this._cmd("cmd_raw",e,r,n,s,i)}cmd_raw_no_range_check(e,r,n,s={},i={}){return r===void 0?this.exec("cmd_raw_no_range_check",e,i,s):this._cmd("cmd_raw_no_range_check",e,r,n,s,i)}cmd_no_hazardous_check(e,r,n,s={},i={}){return r===void 0?this.exec("cmd_no_hazardous_check",e,i,s):this._cmd("cmd_no_hazardous_check",e,r,n,s,i)}cmd_no_checks(e,r,n,s={},i={}){return r===void 0?this.exec("cmd_no_checks",e,i,s):this._cmd("cmd_no_checks",e,r,n,s,i)}cmd_raw_no_hazardous_check(e,r,n,s={},i={}){return r===void 0?this.exec("cmd_raw_no_hazardous_check",e,i,s):this._cmd("cmd_raw_no_hazardous_check",e,r,n,s,i)}cmd_raw_no_checks(e,r,n,s={},i={}){return r===void 0?this.exec("cmd_raw_no_checks",e,i,s):this._cmd("cmd_raw_no_checks",e,r,n,s,i)}build_cmd(e,r,n,s={},i={}){return r===void 0?this.exec("build_cmd",e,i,s):this._cmd("build_cmd",e,r,n,s,i)}build_command(e,r,n,s={},i={}){return r===void 0?this.exec("build_cmd",e,i,s):this._cmd("build_cmd",e,r,n,s,i)}get_interface_names(){return this.exec("get_interface_names",[])}get_router_names(){return this.exec("get_router_names",[])}send_raw(e,r){return this.exec("send_raw",[e,r])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,r){return this.exec("load_config",[e,r])}save_config(e,r,n){return this.exec("save_config",[e,r,n])}delete_config(e,r){return this.exec("delete_config",[e,r])}enable_limits(e,r,n){return this.exec("enable_limits",[e,r,n])}disable_limits(e,r,n){return this.exec("disable_limits",[e,r,n])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e,r){return this.exec("get_setting",[e],r)}get_settings(e,r){return this.exec("get_settings",e,r)}set_setting(e,r){return this.exec("set_setting",[e,r])}update_news(){return this.exec("update_news",[])}update_plugin_store(){return this.exec("update_plugin_store",[])}save_setting(e,r){return this.exec("set_setting",[e,r])}get_metrics(){return this.exec("get_metrics",[])}open_tab(e){window.open(e,"_blank")}async hashString(e){if(window.isSecureContext){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),s=new Uint8Array(n);return Array.from(s).map(i=>i.toString(16).padStart(2,"0")).join("")}}}const jr=6048e5,Ki=864e5,Zi=6e4,eo=36e5,to=1e3,ro=43200,no=1440,Jt=Symbol.for("constructDateFrom");function V(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Jt in t?t[Jt](e):t instanceof Date?new t.constructor(e):new Date(e)}function q(t,e){return V(e||t,t)}let so={};function Ae(){return so}function he(t,e){const r=Ae(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=q(t,e?.in),i=s.getDay(),o=(i<n?7:0)+i-n;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function Se(t,e){return he(t,{...e,weekStartsOn:1})}function Dr(t,e){const r=q(t,e?.in),n=r.getFullYear(),s=V(r,0);s.setFullYear(n+1,0,4),s.setHours(0,0,0,0);const i=Se(s),o=V(r,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const a=Se(o);return r.getTime()>=i.getTime()?n+1:r.getTime()>=a.getTime()?n:n-1}function lt(t){const e=q(t),r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),+t-+r}function Ir(t,...e){const r=V.bind(null,t||e.find(n=>typeof n=="object"));return e.map(r)}function Xt(t,e){const r=q(t,e?.in);return r.setHours(0,0,0,0),r}function io(t,e,r){const[n,s]=Ir(r?.in,t,e),i=Xt(n),o=Xt(s),a=+i-lt(i),l=+o-lt(o);return Math.round((a-l)/Ki)}function oo(t,e){const r=Dr(t,e),n=V(t,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Se(n)}function ao(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Fr(t){return!(!ao(t)&&typeof t!="number"||isNaN(+q(t)))}function co(t,e){const r=q(t,e?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}const uo={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},lo=(t,e,r)=>{let n;const s=uo[t];return typeof s=="string"?n=s:e===1?n=s.one:n=s.other.replace("{{count}}",e.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function tt(t){return(e={})=>{const r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}const ho={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},fo={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},mo={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},po={date:tt({formats:ho,defaultWidth:"full"}),time:tt({formats:fo,defaultWidth:"full"}),dateTime:tt({formats:mo,defaultWidth:"full"})},go={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},bo=(t,e,r,n)=>go[t];function ye(t){return(e,r)=>{const n=r?.context?String(r.context):"standalone";let s;if(n==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,a=r?.width?String(r.width):o;s=t.formattingValues[a]||t.formattingValues[o]}else{const o=t.defaultWidth,a=r?.width?String(r.width):t.defaultWidth;s=t.values[a]||t.values[o]}const i=t.argumentCallback?t.argumentCallback(e):e;return s[i]}}const yo={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},wo={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},_o={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},vo={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},So={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Eo={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Oo=(t,e)=>{const r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},xo={ordinalNumber:Oo,era:ye({values:yo,defaultWidth:"wide"}),quarter:ye({values:wo,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ye({values:_o,defaultWidth:"wide"}),day:ye({values:vo,defaultWidth:"wide"}),dayPeriod:ye({values:So,defaultWidth:"wide",formattingValues:Eo,defaultFormattingWidth:"wide"})};function we(t){return(e,r={})=>{const n=r.width,s=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],i=e.match(s);if(!i)return null;const o=i[0],a=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?Po(a,d=>d.test(o)):Ro(a,d=>d.test(o));let u;u=t.valueCallback?t.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;const h=e.slice(o.length);return{value:u,rest:h}}}function Ro(t,e){for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}function Po(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}function ko(t){return(e,r={})=>{const n=e.match(t.matchPattern);if(!n)return null;const s=n[0],i=e.match(t.parsePattern);if(!i)return null;let o=t.valueCallback?t.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;const a=e.slice(s.length);return{value:o,rest:a}}}const To=/^(\d+)(th|st|nd|rd)?/i,Ao=/\d+/i,Co={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},No={any:[/^b/i,/^(a|c)/i]},jo={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Do={any:[/1/i,/2/i,/3/i,/4/i]},Io={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Fo={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Mo={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Lo={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Uo={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},qo={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Wo={ordinalNumber:ko({matchPattern:To,parsePattern:Ao,valueCallback:t=>parseInt(t,10)}),era:we({matchPatterns:Co,defaultMatchWidth:"wide",parsePatterns:No,defaultParseWidth:"any"}),quarter:we({matchPatterns:jo,defaultMatchWidth:"wide",parsePatterns:Do,defaultParseWidth:"any",valueCallback:t=>t+1}),month:we({matchPatterns:Io,defaultMatchWidth:"wide",parsePatterns:Fo,defaultParseWidth:"any"}),day:we({matchPatterns:Mo,defaultMatchWidth:"wide",parsePatterns:Lo,defaultParseWidth:"any"}),dayPeriod:we({matchPatterns:Uo,defaultMatchWidth:"any",parsePatterns:qo,defaultParseWidth:"any"})},Mr={code:"en-US",formatDistance:lo,formatLong:po,formatRelative:bo,localize:xo,match:Wo,options:{weekStartsOn:0,firstWeekContainsDate:1}};function $o(t,e){const r=q(t,e?.in);return io(r,co(r))+1}function Lr(t,e){const r=q(t,e?.in),n=+Se(r)-+oo(r);return Math.round(n/jr)+1}function St(t,e){const r=q(t,e?.in),n=r.getFullYear(),s=Ae(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,o=V(e?.in||t,0);o.setFullYear(n+1,0,i),o.setHours(0,0,0,0);const a=he(o,e),l=V(e?.in||t,0);l.setFullYear(n,0,i),l.setHours(0,0,0,0);const u=he(l,e);return+r>=+a?n+1:+r>=+u?n:n-1}function Bo(t,e){const r=Ae(),n=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=St(t,e),i=V(e?.in||t,0);return i.setFullYear(s,0,n),i.setHours(0,0,0,0),he(i,e)}function Ur(t,e){const r=q(t,e?.in),n=+he(r,e)-+Bo(r,e);return Math.round(n/jr)+1}function E(t,e){const r=t<0?"-":"",n=Math.abs(t).toString().padStart(e,"0");return r+n}const G={y(t,e){const r=t.getFullYear(),n=r>0?r:1-r;return E(e==="yy"?n%100:n,e.length)},M(t,e){const r=t.getMonth();return e==="M"?String(r+1):E(r+1,2)},d(t,e){return E(t.getDate(),e.length)},a(t,e){const r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return r==="am"?"a.m.":"p.m."}},h(t,e){return E(t.getHours()%12||12,e.length)},H(t,e){return E(t.getHours(),e.length)},m(t,e){return E(t.getMinutes(),e.length)},s(t,e){return E(t.getSeconds(),e.length)},S(t,e){const r=e.length,n=t.getMilliseconds(),s=Math.trunc(n*Math.pow(10,r-3));return E(s,e.length)}},ue={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Qt={G:function(t,e,r){const n=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(t,e,r){if(e==="yo"){const n=t.getFullYear(),s=n>0?n:1-n;return r.ordinalNumber(s,{unit:"year"})}return G.y(t,e)},Y:function(t,e,r,n){const s=St(t,n),i=s>0?s:1-s;if(e==="YY"){const o=i%100;return E(o,2)}return e==="Yo"?r.ordinalNumber(i,{unit:"year"}):E(i,e.length)},R:function(t,e){const r=Dr(t);return E(r,e.length)},u:function(t,e){const r=t.getFullYear();return E(r,e.length)},Q:function(t,e,r){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return E(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,r){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return E(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,r){const n=t.getMonth();switch(e){case"M":case"MM":return G.M(t,e);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,r){const n=t.getMonth();switch(e){case"L":return String(n+1);case"LL":return E(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,r,n){const s=Ur(t,n);return e==="wo"?r.ordinalNumber(s,{unit:"week"}):E(s,e.length)},I:function(t,e,r){const n=Lr(t);return e==="Io"?r.ordinalNumber(n,{unit:"week"}):E(n,e.length)},d:function(t,e,r){return e==="do"?r.ordinalNumber(t.getDate(),{unit:"date"}):G.d(t,e)},D:function(t,e,r){const n=$o(t);return e==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):E(n,e.length)},E:function(t,e,r){const n=t.getDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,r,n){const s=t.getDay(),i=(s-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return E(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){const s=t.getDay(),i=(s-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return E(i,e.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(t,e,r){const n=t.getDay(),s=n===0?7:n;switch(e){case"i":return String(s);case"ii":return E(s,e.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,r){const s=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,r){const n=t.getHours();let s;switch(n===12?s=ue.noon:n===0?s=ue.midnight:s=n/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,r){const n=t.getHours();let s;switch(n>=17?s=ue.evening:n>=12?s=ue.afternoon:n>=4?s=ue.morning:s=ue.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,r){if(e==="ho"){let n=t.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return G.h(t,e)},H:function(t,e,r){return e==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):G.H(t,e)},K:function(t,e,r){const n=t.getHours()%12;return e==="Ko"?r.ordinalNumber(n,{unit:"hour"}):E(n,e.length)},k:function(t,e,r){let n=t.getHours();return n===0&&(n=24),e==="ko"?r.ordinalNumber(n,{unit:"hour"}):E(n,e.length)},m:function(t,e,r){return e==="mo"?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):G.m(t,e)},s:function(t,e,r){return e==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):G.s(t,e)},S:function(t,e){return G.S(t,e)},X:function(t,e,r){const n=t.getTimezoneOffset();if(n===0)return"Z";switch(e){case"X":return Kt(n);case"XXXX":case"XX":return te(n);default:return te(n,":")}},x:function(t,e,r){const n=t.getTimezoneOffset();switch(e){case"x":return Kt(n);case"xxxx":case"xx":return te(n);default:return te(n,":")}},O:function(t,e,r){const n=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Gt(n,":");default:return"GMT"+te(n,":")}},z:function(t,e,r){const n=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Gt(n,":");default:return"GMT"+te(n,":")}},t:function(t,e,r){const n=Math.trunc(+t/1e3);return E(n,e.length)},T:function(t,e,r){return E(+t,e.length)}};function Gt(t,e=""){const r=t>0?"-":"+",n=Math.abs(t),s=Math.trunc(n/60),i=n%60;return i===0?r+String(s):r+String(s)+e+E(i,2)}function Kt(t,e){return t%60===0?(t>0?"-":"+")+E(Math.abs(t)/60,2):te(t,e)}function te(t,e=""){const r=t>0?"-":"+",n=Math.abs(t),s=E(Math.trunc(n/60),2),i=E(n%60,2);return r+s+e+i}const Zt=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},qr=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},Yo=(t,e)=>{const r=t.match(/(P+)(p+)?/)||[],n=r[1],s=r[2];if(!s)return Zt(t,e);let i;switch(n){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",Zt(n,e)).replace("{{time}}",qr(s,e))},Wr={p:qr,P:Yo},zo=/^D+$/,Ho=/^Y+$/,Vo=["D","DD","YY","YYYY"];function $r(t){return zo.test(t)}function Br(t){return Ho.test(t)}function Yr(t,e,r){const n=Jo(t,e,r);if(console.warn(n),Vo.includes(t))throw new RangeError(n)}function Jo(t,e,r){const n=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Xo=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Qo=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Go=/^'([^]*?)'?$/,Ko=/''/g,Zo=/[a-zA-Z]/;function ea(t,e,r){const n=Ae(),s=r?.locale??n.locale??Mr,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=q(t,r?.in);if(!Fr(a))throw new RangeError("Invalid time value");let l=e.match(Qo).map(h=>{const d=h[0];if(d==="p"||d==="P"){const m=Wr[d];return m(h,s.formatLong)}return h}).join("").match(Xo).map(h=>{if(h==="''")return{isToken:!1,value:"'"};const d=h[0];if(d==="'")return{isToken:!1,value:ta(h)};if(Qt[d])return{isToken:!0,value:h};if(d.match(Zo))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:h}});s.localize.preprocessor&&(l=s.localize.preprocessor(a,l));const u={firstWeekContainsDate:i,weekStartsOn:o,locale:s};return l.map(h=>{if(!h.isToken)return h.value;const d=h.value;(!r?.useAdditionalWeekYearTokens&&Br(d)||!r?.useAdditionalDayOfYearTokens&&$r(d))&&Yr(d,e,String(t));const m=Qt[d[0]];return m(a,d,s.localize,u)}).join("")}function ta(t){const e=t.match(Go);return e?e[1].replace(Ko,"'"):t}exports.$i=pi;exports.Bi=gi;exports.Fi=Fs;exports.Tt=ct;exports.constructFrom=V;exports.enUS=Mr;exports.format=ea;exports.getDefaultOptions=Ae;exports.getISOWeek=Lr;exports.getTimezoneOffsetInMilliseconds=lt;exports.getWeek=Ur;exports.getWeekYear=St;exports.isProtectedDayOfYearToken=$r;exports.isProtectedWeekYearToken=Br;exports.isValid=Fr;exports.longFormatters=Wr;exports.millisecondsInHour=eo;exports.millisecondsInMinute=Zi;exports.millisecondsInSecond=to;exports.minutesInDay=no;exports.minutesInMonth=ro;exports.normalizeDates=Ir;exports.qi=Gi;exports.startOfISOWeek=Se;exports.startOfWeek=he;exports.toDate=q;exports.warnOrThrowProtectedError=Yr;
|
|
13
|
+
//# sourceMappingURL=format-MMgAFAGt.cjs.map
|