@camera.ui/server 2.1.0 → 2.1.2
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/interface/assets/{404-mKz7xfYl.js → 404-pb2fRn1r.js} +1 -1
- package/dist/interface/assets/{About-C3mKJiWW.js → About-eljMnDub.js} +1 -1
- package/dist/interface/assets/{Adminpanel-KkWHp8Mh.js → Adminpanel-BtQdiyre.js} +1 -1
- package/dist/interface/assets/Automation-DOiLJcU_.js +3 -0
- package/dist/interface/assets/AutomationImport-DflZNRBB.js +2 -0
- package/dist/interface/assets/AutomationStore-qF_NTNUf.js +2 -0
- package/dist/interface/assets/AutomationStoreDetail-CUw-jBBR.js +2 -0
- package/dist/interface/assets/Automations-DBjwNb3F.js +2 -0
- package/dist/interface/assets/Camera-BfvpjkW3.js +2 -0
- package/dist/interface/assets/{CameraConsole-Bj9mszzp.js → CameraConsole-CEARcJYc.js} +1 -1
- package/dist/interface/assets/{Cameras-BVFxn9Ef.js → Cameras-C0oHuoTR.js} +2 -2
- package/dist/interface/assets/Camview-DArvg940.js +1 -0
- package/dist/interface/assets/{Camview-DEURwPYt.css → Camview-mLCaY0ld.css} +1 -1
- package/dist/interface/assets/Config-Ccp5Acpv.js +2 -0
- package/dist/interface/assets/{ConfigActionCameraControl-B80iDDds.js → ConfigActionCameraControl-De0qb88r.js} +1 -1
- package/dist/interface/assets/{ConfigActionDelay-ChhenlQV.js → ConfigActionDelay-nDK4i-AL.js} +1 -1
- package/dist/interface/assets/{ConfigActionHttp-09PkDYgp.js → ConfigActionHttp-DX-vapgv.js} +1 -1
- package/dist/interface/assets/{ConfigActionImageInput-FDMVc5FH.js → ConfigActionImageInput-CS7U7BsI.js} +1 -1
- package/dist/interface/assets/{ConfigActionMqtt-4gLcAM0C.js → ConfigActionMqtt-82swCx_F.js} +1 -1
- package/dist/interface/assets/{ConfigActionNotification-DmIQhrC2.js → ConfigActionNotification-t-1zN_1y.js} +1 -1
- package/dist/interface/assets/{ConfigActionNotificationControl-Df4BdM3c.js → ConfigActionNotificationControl-jz3ez2Uq.js} +1 -1
- package/dist/interface/assets/{ConfigActionOutput-CNKeWFvE.js → ConfigActionOutput-B6uJheX1.js} +1 -1
- package/dist/interface/assets/{ConfigActionPlugin-CWfEabyz.js → ConfigActionPlugin-LyOIrZnv.js} +1 -1
- package/dist/interface/assets/ConfigActionSensor-BTqc1inw.js +1 -0
- package/dist/interface/assets/{ConfigActionSnapshot-CM8xar0h.js → ConfigActionSnapshot-DdPy_Ubu.js} +1 -1
- package/dist/interface/assets/{ConfigActionVariable-B8tiVULt.js → ConfigActionVariable-Csf7jPOm.js} +1 -1
- package/dist/interface/assets/{ConfigConditionIfElse-CtF5exKE.js → ConfigConditionIfElse-BvzwZ70p.js} +1 -1
- package/dist/interface/assets/{ConfigConditionSensorState-B4hRgQdg.js → ConfigConditionSensorState-lI9dzHiT.js} +1 -1
- package/dist/interface/assets/{ConfigConditionSwitch-ZhpDw8ZY.js → ConfigConditionSwitch-DJU2JC-3.js} +1 -1
- package/dist/interface/assets/{ConfigConditionTime-EF84vg1f.js → ConfigConditionTime-BxE2CJMA.js} +1 -1
- package/dist/interface/assets/{ConfigSensorValueInput-DNxw4rt3.js → ConfigSensorValueInput-DW4er753.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerDetection-BmxUG87T.js → ConfigTriggerDetection-DpC8V8K8.js} +1 -1
- package/dist/interface/assets/ConfigTriggerGeofence-DTzax7bc.js +1 -0
- package/dist/interface/assets/{ConfigTriggerManual-t-J-HbqF.js → ConfigTriggerManual-CtjnnQb1.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerMqtt-BD1iizF-.js → ConfigTriggerMqtt-C7J22EMe.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerSchedule-CBPaopJK.js → ConfigTriggerSchedule-DnYDDz3F.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerSensor-CXmxhiPM.js → ConfigTriggerSensor-vhwPNmPj.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerSystem-CfFnKyIn.js → ConfigTriggerSystem-D1JulYVd.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerWebhook-gqcxnQdl.js → ConfigTriggerWebhook-BrKFtq7o.js} +1 -1
- package/dist/interface/assets/Console-C6yUdEaM.js +1 -0
- package/dist/interface/assets/CuiAutomationRunsDialog-C4i7y1Re.js +1 -0
- package/dist/interface/assets/CuiBottomSheet-C2zU_iyj.js +1 -0
- package/dist/interface/assets/{CuiBottomSheet-BcDAO9At.js → CuiBottomSheet-C_1_moNo.js} +1 -1
- package/dist/interface/assets/{CuiCameraPipCard-C7822oZM.js → CuiCameraPipCard-CZ-oDxzy.js} +1 -1
- package/dist/interface/assets/CuiCameraRecordings-mY_giLEi.js +1 -0
- package/dist/interface/assets/CuiCameraShares-XwN5kuC7.js +1 -0
- package/dist/interface/assets/{CuiCameraTable-BdXITi6O.js → CuiCameraTable-BeeHLaiQ.js} +2 -2
- package/dist/interface/assets/CuiConsole-B7R7U9UZ.js +5 -0
- package/dist/interface/assets/CuiDataTable-CQhCu0px.js +1 -0
- package/dist/interface/assets/CuiDataTable-DbkFXZeg.css +1 -0
- package/dist/interface/assets/CuiLightControl-CEpcKss7.js +1 -0
- package/dist/interface/assets/{CuiMarkdownContent-Bjs3wRnq.js → CuiMarkdownContent-C2uBepC1.js} +1 -1
- package/dist/interface/assets/CuiMarkdownContent-QxLR7_qs.js +1 -0
- package/dist/interface/assets/CuiPluginCard-1dSDwOCf.js +2 -0
- package/dist/interface/assets/{CuiPluginCard-D_6UFFZW.css → CuiPluginCard-rkhmuumi.css} +1 -1
- package/dist/interface/assets/{CuiPluginCategoryChip-C9l5I9v3.js → CuiPluginCategoryChip-JkdbQU4X.js} +1 -1
- package/dist/interface/assets/CuiPluginOAuthButton-LYMFfb3v.js +2 -0
- package/dist/interface/assets/{CuiPluginTrustBadge-BkdNlrZ7.js → CuiPluginTrustBadge-sZF0UKMD.js} +1 -1
- package/dist/interface/assets/{CuiQRCode-D8CKX4s9.js → CuiQRCode-B4ysluWR.js} +1 -1
- package/dist/interface/assets/CuiRecordingsGrid-CkwE3jcR.js +1 -0
- package/dist/interface/assets/CuiSchema-DKATswRc.js +1 -0
- package/dist/interface/assets/{CuiTopNavbarItem-C-ZiLXkp.js → CuiTopNavbarItem-rMsWME9B.js} +1 -1
- package/dist/interface/assets/Faces-BeeZrFV-.js +1 -0
- package/dist/interface/assets/FirstSteps-DWT6Tt_T.js +1 -0
- package/dist/interface/assets/Instances-CJlFo8ni.js +1 -0
- package/dist/interface/assets/Logs-8onUmCYX.js +6 -0
- package/dist/interface/assets/{Menu-CvpQ9fHV.js → Menu-DP0aMICW.js} +1 -1
- package/dist/interface/assets/OAuthDeviceFlow-CcSkntGk.js +1 -0
- package/dist/interface/assets/Plugin-8dbt_8iG.js +1 -0
- package/dist/interface/assets/{PluginConsole-DUnPciNz.js → PluginConsole-JFcH_ZW0.js} +2 -2
- package/dist/interface/assets/PluginDetail-C9dR9jrw.js +2 -0
- package/dist/interface/assets/{PluginSchema-CQARvB5H.js → PluginSchema-Gfn_csMP.js} +1 -1
- package/dist/interface/assets/PluginSearch-BVAtgBZs.js +1 -0
- package/dist/interface/assets/PluginSearch-HEf_6CrR.js +2 -0
- package/dist/interface/assets/PluginUpdateProgress-DaI9bwSV.js +1 -0
- package/dist/interface/assets/Plugins-CQJhji6o.js +1 -0
- package/dist/interface/assets/Recordings-80Xd1V3L.css +1 -0
- package/dist/interface/assets/Recordings-AD78njIA.js +1 -0
- package/dist/interface/assets/SensorEdit-ono85O3c.css +1 -0
- package/dist/interface/assets/SensorEdit-rC02usEO.js +1 -0
- package/dist/interface/assets/{SensorHistory-oWCb8Kia.js → SensorHistory-2TmYLaL4.js} +1 -1
- package/dist/interface/assets/Sensors-CFfII3-e.css +1 -0
- package/dist/interface/assets/Sensors-Vwr7MYz6.js +2 -0
- package/dist/interface/assets/Settings-8yG5ny5r.js +1 -0
- package/dist/interface/assets/SettingsAccount-BBsivYFf.js +1 -0
- package/dist/interface/assets/SettingsAccount-CN9Xcgt-.js +1 -0
- package/dist/interface/assets/SettingsAppearance-Qh1cw9iX.js +1 -0
- package/dist/interface/assets/SettingsAppearance-WQtOksbk.js +1 -0
- package/dist/interface/assets/SettingsBackup-DNDDU6a1.js +1 -0
- package/dist/interface/assets/SettingsList-tFKUMnsB.js +1 -0
- package/dist/interface/assets/{SettingsMqtt-pH6KmHhv.js → SettingsMqtt-BYVV1Mew.js} +1 -1
- package/dist/interface/assets/SettingsNotifications-BVGmt0eF.js +2 -0
- package/dist/interface/assets/{SettingsPermissions-CDpVmRY2.js → SettingsPermissions-BPqDIjVt.js} +1 -1
- package/dist/interface/assets/SettingsRecordings-B4DDJSKe.js +1 -0
- package/dist/interface/assets/SettingsRemote-Bib7kXto.js +1 -0
- package/dist/interface/assets/SettingsSystem-DIe7CSgH.js +2 -0
- package/dist/interface/assets/SettingsUsers-BtT17FNe.js +1 -0
- package/dist/interface/assets/{Terminal-DSRLOAKR.js → Terminal-DuJHIlLe.js} +3 -3
- package/dist/interface/assets/{VariableInput-rbKenccv.js → VariableInput-CkXZ00Gc.js} +1 -1
- package/dist/interface/assets/{VariableSuggestions-DDyxhww6.js → VariableSuggestions-BD1kOG5f.js} +1 -1
- package/dist/interface/assets/VersionsHandler-D9sDkGXx.js +7 -0
- package/dist/interface/assets/{VirtualSensorCreate-_9QdFeEj.js → VirtualSensorCreate-DcwJ_w-l.js} +1 -1
- package/dist/interface/assets/{Workers-DmZkFylb.css → Workers-7hKMBU4w.css} +1 -1
- package/dist/interface/assets/Workers-fV_NEZ7U.js +2 -0
- package/dist/interface/assets/{account-C5mHt2Ep.js → account-CY80SLLf.js} +1 -1
- package/dist/interface/assets/{alert-circle-Cu_kjPlA.js → alert-circle-pDGfnZ4K.js} +1 -1
- package/dist/interface/assets/{alert-outline-DXHNnhoP.js → alert-outline-CeoXcnQc.js} +1 -1
- package/dist/interface/assets/api-Draww2tC.js +2 -0
- package/dist/interface/assets/{api-BijLH5JF.js → api-Mny5Elfn.js} +1 -1
- package/dist/interface/assets/api-eELh8KCM.css +2 -0
- package/dist/interface/assets/{arrow-left-DPtWmM6S.js → arrow-left-D9jDhvK5.js} +1 -1
- package/dist/interface/assets/{arrow-right-outline-BY1ggGA1.js → arrow-right-outline-DF7tkKYk.js} +1 -1
- package/dist/interface/assets/{auth-CSrkzvBq.js → auth-9_Jjlsh0.js} +1 -1
- package/dist/interface/assets/{automations-5YkU18M0.js → automations-BfsdbSPC.js} +1 -1
- package/dist/interface/assets/{back-filled-r7bN5ObT.js → back-filled-DUUGErMw.js} +1 -1
- package/dist/interface/assets/{bell-ring-C470qCAb.js → bell-ring-DV73JIre.js} +1 -1
- package/dist/interface/assets/{cameras.schema-BQ3CdtV5.js → cameras.schema-DMY4SYte.js} +1 -1
- package/dist/interface/assets/{cctv-BKVOVZCR.js → cctv-jy5ROx0o.js} +1 -1
- package/dist/interface/assets/{check-circle-Ce_sbfPZ.js → check-circle-FwoylV5-.js} +1 -1
- package/dist/interface/assets/{chevron-down-CjSTp091.js → chevron-down-umZ7i0mG.js} +1 -1
- package/dist/interface/assets/{chevron-right-B3j6hI1Q.js → chevron-right-AhqYJOFy.js} +1 -1
- package/dist/interface/assets/{clock-outline-BgcDXoyp.js → clock-outline-CbvOAMhO.js} +1 -1
- package/dist/interface/assets/{close-CQoGQHOF.js → close-CtaDF28n.js} +1 -1
- package/dist/interface/assets/{close-circle-DYhkXsRj.js → close-circle-FZ8IxGd4.js} +1 -1
- package/dist/interface/assets/{cloud-check-CVx221dJ.js → cloud-check-CFSukfAF.js} +1 -1
- package/dist/interface/assets/cloudHandoff-BQsDy9yp.js +1 -0
- package/dist/interface/assets/{config-BqiDMRVk.js → config-BZphegxi.js} +1 -1
- package/dist/interface/assets/{copy-yhHCVVOa.js → copy-CFA_pDRv.js} +1 -1
- package/dist/interface/assets/cube-scan-DEuMi23T.js +1 -0
- package/dist/interface/assets/{delete-xWUQUP2x.js → delete-921w_nKy.js} +1 -1
- package/dist/interface/assets/{deployed-code-update-CHr3gyW9.js → deployed-code-update-CYS6eKfa.js} +1 -1
- package/dist/interface/assets/{dist-DVb-CALh.js → dist-BwEXwXSw.js} +1 -1
- package/dist/interface/assets/{download-PLxvyB7s.js → download-C-LzNRmM.js} +1 -1
- package/dist/interface/assets/esm-B1LZs0VG.js +1 -0
- package/dist/interface/assets/esm-BB4SBaek.js +1 -0
- package/dist/interface/assets/esm-BGA8Ydne.js +1 -0
- package/dist/interface/assets/esm-BHI_KH7L.js +1 -0
- package/dist/interface/assets/esm-BQ0EuuZe.js +1 -0
- package/dist/interface/assets/esm-Bfb-tuKt.js +1 -0
- package/dist/interface/assets/esm-BzR_6ma5.js +1 -0
- package/dist/interface/assets/esm-CCIqNfsh.js +1 -0
- package/dist/interface/assets/esm-CSMN-8o1.js +1 -0
- package/dist/interface/assets/esm-CxWbrBxP.js +1 -0
- package/dist/interface/assets/esm-DBTrmJK6.js +1 -0
- package/dist/interface/assets/esm-DRswZUWf.js +1 -0
- package/dist/interface/assets/esm-Dk7gxPHs.js +1 -0
- package/dist/interface/assets/esm-P0RCkAtk.js +1 -0
- package/dist/interface/assets/{eye-off-C8kzsdYU.js → eye-off-DESV3QdF.js} +1 -1
- package/dist/interface/assets/{flowSchema-C6FlHoK2.js → flowSchema-_RiPAgMv.js} +1 -1
- package/dist/interface/assets/{history-QBEPNc4X.js → history-60iCpGvQ.js} +1 -1
- package/dist/interface/assets/{home-af3W_y8U.js → home-w5iY2RUg.js} +1 -1
- package/dist/interface/assets/{information-outline-BPCsozSU.js → information-outline-CvBsGtDu.js} +1 -1
- package/dist/interface/assets/{lightbulb-outline-ccTlGyvW.js → lightbulb-outline-DLrnCPG5.js} +1 -1
- package/dist/interface/assets/main-CV7qCZ5i.js +3 -0
- package/dist/interface/assets/{main-aZt-Pooz.css → main-DJb49Tjp.css} +1 -1
- package/dist/interface/assets/{microphone-5exHwwyq.js → microphone-DUVI-s2_.js} +1 -1
- package/dist/interface/assets/mqtt-BPfLOT7L.js +1 -0
- package/dist/interface/assets/native-Cr4dkfqy.js +1 -0
- package/dist/interface/assets/native-D1Vvlhds.js +1 -0
- package/dist/interface/assets/{nodeDefinitions-CRrkU6zR.js → nodeDefinitions-BecZ8I2Q.js} +1 -1
- package/dist/interface/assets/{notifications-DCAiomoR.js → notifications-CK6XQBF-.js} +1 -1
- package/dist/interface/assets/{pencil-outline-M9I4mCJO.js → pencil-outline-BrOrbuzc.js} +1 -1
- package/dist/interface/assets/plugin-937qnq7E.js +1 -0
- package/dist/interface/assets/{plugins-D4am8tba.js → plugins-BU7TQh_f.js} +1 -1
- package/dist/interface/assets/{plus-CGIx-WV8.js → plus-CL6KSxf8.js} +1 -1
- package/dist/interface/assets/{plus-CrfQUUEC.js → plus-Dd-XLT76.js} +1 -1
- package/dist/interface/assets/{power-VnZM2-0c.js → power-lCbm_7y7.js} +1 -1
- package/dist/interface/assets/{ring-resize-CodGa6wQ.js → ring-resize-CEqUkpxT.js} +1 -1
- package/dist/interface/assets/{round-alt-arrow-left-bold-DTrlW4yx.js → round-alt-arrow-left-bold-CwaLYdW5.js} +1 -1
- package/dist/interface/assets/round-restart-alt-BFgY3k77.js +1 -0
- package/dist/interface/assets/round-restart-alt-SpAgbSYJ.css +1 -0
- package/dist/interface/assets/{search-miJXZGQz.js → search-CT2BLw7G.js} +1 -1
- package/dist/interface/assets/sensorIcons-DtJEfoU4.js +1 -0
- package/dist/interface/assets/{sensors-D1OCrbIC.js → sensors-DjgfMS8S.js} +1 -1
- package/dist/interface/assets/{server-CUfmbg3m.js → server-BSYs0zoo.js} +1 -1
- package/dist/interface/assets/{settings-DY0TJSAM.js → settings-CzS4dvIO.js} +1 -1
- package/dist/interface/assets/{source-branch-nw9fwXin.js → source-branch-C6p1G3a9.js} +1 -1
- package/dist/interface/assets/table-2-line-_VC4NuFA.js +1 -0
- package/dist/interface/assets/theme-Dr_YO8-0.js +1 -0
- package/dist/interface/assets/{trash-2-B-di2M48.js → trash-2-DcOYT3oH.js} +1 -1
- package/dist/interface/assets/{trash-can-outline-BbZkHoW7.js → trash-can-outline-cphfB8Jh.js} +1 -1
- package/dist/interface/assets/{trash-fill-Bgen5QTD.js → trash-fill-CRBaUdPn.js} +1 -1
- package/dist/interface/assets/{trash2-BP__fHgN.js → trash2-CvhB8xOW.js} +1 -1
- package/dist/interface/assets/{types-B25Yynej.js → types-3mdj4rRK.js} +1 -1
- package/dist/interface/assets/types-BGMvANrz.js +1 -0
- package/dist/interface/assets/{upload-CNYrnwuV.js → upload-DeN3O-ua.js} +1 -1
- package/dist/interface/assets/{useAppVersion-Cp7Ehmiv.js → useAppVersion-UIA6seZv.js} +1 -1
- package/dist/interface/assets/{useBackupRestore-CL04IH-G.js → useBackupRestore-E3pVEOvA.js} +1 -1
- package/dist/interface/assets/{useCameraOptions-DFe9A6XU.js → useCameraOptions-Dx-zyqdH.js} +1 -1
- package/dist/interface/assets/{useCardSelection-B3B2qPHO.js → useCardSelection-DGPLn1ZH.js} +1 -1
- package/dist/interface/assets/{useElectron-KnqvZz0q.js → useElectron-BXVcamD0.js} +1 -1
- package/dist/interface/assets/useLogsSocket-DSxzAvQF.js +1 -0
- package/dist/interface/assets/{usePermissions-C3D3JcPH.js → usePermissions-B_C-zX5H.js} +1 -1
- package/dist/interface/assets/usePluginUpdates-QU3U82S_.js +1 -0
- package/dist/interface/assets/{useServerRestart-Ck0mdqmf.js → useServerRestart-BxDBO7k-.js} +1 -1
- package/dist/interface/assets/{useStreamStatus-C4AA8JUq.js → useStreamStatus-DY4NM_Ua.js} +1 -1
- package/dist/interface/assets/useUserOptions-BL53bECb.js +1 -0
- package/dist/interface/assets/{variable-CbNySf4s.js → variable-oLSsiEtj.js} +1 -1
- package/dist/interface/assets/{vendor-CSg6_Jfu.js → vendor-JQXDMBA-.js} +2 -2
- package/dist/interface/assets/vendor-cameraui-DojVuZ2L.js +2326 -0
- package/dist/interface/assets/{vendor-capacitor-C-8IYzpJ.js → vendor-capacitor-CDwgXF4b.js} +2 -2
- package/dist/interface/assets/{vendor-chart-CoQ9HTE3.js → vendor-chart-KrNcA52y.js} +1 -1
- package/dist/interface/assets/vendor-core-ZDcIKAw9.js +1 -0
- package/dist/interface/assets/{vendor-dnd-DQF7Aoap.js → vendor-dnd-Jch9IvL6.js} +1 -1
- package/dist/interface/assets/{vendor-draggabilly-Cghb3aIb.js → vendor-draggabilly-Cn-knCpG.js} +1 -1
- package/dist/interface/assets/{vendor-markdown-DWwrEE67.js → vendor-markdown-BhFLJolW.js} +1 -1
- package/dist/interface/assets/{vendor-primevue-JQ8abUl5.js → vendor-primevue-C0acGg0Y.js} +85 -371
- package/dist/interface/assets/{vendor-vueflow-crUU2mAI.js → vendor-vueflow-DQrTmoNS.js} +1 -1
- package/dist/interface/assets/web-BQtDHNew.js +1 -0
- package/dist/interface/assets/web-BY9kjyTj.js +1 -0
- package/dist/interface/assets/web-BcQtDSat.js +1 -0
- package/dist/interface/assets/web-BgrRQzLO.js +1 -0
- package/dist/interface/assets/web-BjKL51lK-CJYmHsnY.js +1 -0
- package/dist/interface/assets/web-BxvsJylk.js +1 -0
- package/dist/interface/assets/web-C-3iwDhG.js +1 -0
- package/dist/interface/assets/web-C9XOwu07.js +1 -0
- package/dist/interface/assets/web-CPCxRDtw.js +1 -0
- package/dist/interface/assets/web-D0U5B2i2.js +1 -0
- package/dist/interface/assets/web-DtxjXJdS.js +1 -0
- package/dist/interface/assets/web-Duf-oV4e.js +1 -0
- package/dist/interface/assets/web-jy45nBi_.js +1 -0
- package/dist/interface/assets/web-vWx_-Iq5.js +1 -0
- package/dist/interface/assets/{webhook-B7YgiSrF.js → webhook-CMAB4nTl.js} +1 -1
- package/dist/interface/assets/workbox-window.prod.es5-Dlqax_Po.js +1 -0
- package/dist/interface/assets/{zoom-in-D7BJNotF.js → zoom-in-STm8SNt2.js} +1 -1
- package/dist/interface/index.html +42 -43
- package/dist/interface/sw.js +1 -1
- package/dist/server/package.json +13 -13
- package/dist/server/requirements.txt +1 -1
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/__init__.py +20 -0
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/camera/config.py +20 -0
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/__init__.py +40 -0
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/base.py +20 -0
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/carbon_dioxide.py +91 -0
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/carbon_monoxide.py +90 -0
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/cold.py +90 -0
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/gas.py +90 -0
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/heat.py +90 -0
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/illuminance.py +91 -0
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/power.py +90 -0
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/problem.py +90 -0
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/tamper.py +90 -0
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/vibration.py +90 -0
- package/dist/server/src/api/database/record-schemas.d.ts +10 -0
- package/dist/server/src/api/schemas/cameras.schema.d.ts +325 -5
- package/dist/server/src/api/schemas/cameras.schema.js +24 -2
- package/dist/server/src/api/schemas/cameras.schema.js.map +1 -1
- package/dist/server/src/api/schemas/sensors.schema.d.ts +10 -0
- package/dist/server/src/api/schemas/users.schema.d.ts +70 -0
- package/dist/server/src/api/services/plugins.service.d.ts +2 -1
- package/dist/server/src/api/services/plugins.service.js +59 -15
- package/dist/server/src/api/services/plugins.service.js.map +1 -1
- package/dist/server/src/api/types/index.d.ts +7 -0
- package/dist/server/src/api/websocket/nsp/plugins.d.ts +1 -0
- package/dist/server/src/api/websocket/nsp/plugins.js +4 -0
- package/dist/server/src/api/websocket/nsp/plugins.js.map +1 -1
- package/dist/server/src/camera/decoder/detection-coordinator.d.ts +6 -0
- package/dist/server/src/camera/decoder/detection-coordinator.js +67 -7
- package/dist/server/src/camera/decoder/detection-coordinator.js.map +1 -1
- package/dist/server/src/camera/decoder/detection-pipeline.d.ts +16 -1
- package/dist/server/src/camera/decoder/detection-pipeline.js +92 -14
- package/dist/server/src/camera/decoder/detection-pipeline.js.map +1 -1
- package/dist/server/src/camera/decoder/event-manager.d.ts +4 -1
- package/dist/server/src/camera/decoder/event-manager.js +29 -1
- package/dist/server/src/camera/decoder/event-manager.js.map +1 -1
- package/dist/server/src/camera/decoder/frame-scaler.d.ts +21 -0
- package/dist/server/src/camera/decoder/frame-scaler.js +82 -10
- package/dist/server/src/camera/decoder/frame-scaler.js.map +1 -1
- package/dist/server/src/camera/decoder/secondary-stage.js +19 -16
- package/dist/server/src/camera/decoder/secondary-stage.js.map +1 -1
- package/dist/server/src/camera/decoder/stationary-suppressor.d.ts +7 -0
- package/dist/server/src/camera/decoder/stationary-suppressor.js +66 -4
- package/dist/server/src/camera/decoder/stationary-suppressor.js.map +1 -1
- package/dist/server/src/camera/sensors/controller.js +6 -0
- package/dist/server/src/camera/sensors/controller.js.map +1 -1
- package/dist/server/src/sensors/registry.d.ts +6 -1
- package/dist/server/src/sensors/registry.js +78 -26
- package/dist/server/src/sensors/registry.js.map +1 -1
- package/dist/server/src/sensors/sensor.d.ts +2 -2
- package/dist/server/src/sensors/sensor.js +14 -2
- package/dist/server/src/sensors/sensor.js.map +1 -1
- package/dist/server/src/workers/manager.js +2 -0
- package/dist/server/src/workers/manager.js.map +1 -1
- package/package.json +13 -13
- package/dist/interface/assets/Automation-BdSjkwoL.js +0 -3
- package/dist/interface/assets/AutomationImport-DEp2P3xa.js +0 -2
- package/dist/interface/assets/AutomationStore-4NQAyOXd.js +0 -2
- package/dist/interface/assets/AutomationStoreDetail-D8NZLRu9.js +0 -2
- package/dist/interface/assets/Automations-D7kh-T-O.js +0 -2
- package/dist/interface/assets/Camera-DsvE1bWd.js +0 -2
- package/dist/interface/assets/Camview-BXDwJtBf.js +0 -1
- package/dist/interface/assets/Config-CJgmsr2e.js +0 -2
- package/dist/interface/assets/ConfigActionSensor-pv3k-l2v.js +0 -1
- package/dist/interface/assets/ConfigTriggerGeofence-CDbA6_Wv.js +0 -1
- package/dist/interface/assets/Console-CPcfNsup.js +0 -1
- package/dist/interface/assets/CuiAutomationRunsDialog-Bx3LtjMJ.js +0 -1
- package/dist/interface/assets/CuiBottomSheet-Qt8m2uSx.js +0 -1
- package/dist/interface/assets/CuiCameraRecordings-DJG6J1nY.js +0 -1
- package/dist/interface/assets/CuiCameraShares-C3SATbiV.js +0 -1
- package/dist/interface/assets/CuiDataTable-BGleWv6B.css +0 -1
- package/dist/interface/assets/CuiDataTable-DdNoneMB.js +0 -1
- package/dist/interface/assets/CuiLightControl-bH7WQXAY.js +0 -1
- package/dist/interface/assets/CuiMarkdownContent-Do8-vIl7.js +0 -1
- package/dist/interface/assets/CuiPluginCard-B50TjvIq.js +0 -2
- package/dist/interface/assets/CuiPluginOAuthButton-Aanenlqx.js +0 -2
- package/dist/interface/assets/CuiRecordingsGrid-D9IF3B-S.js +0 -1
- package/dist/interface/assets/CuiSchema-B8J8G314.js +0 -1
- package/dist/interface/assets/Faces-B8d8W6cq.js +0 -1
- package/dist/interface/assets/FirstSteps-DWB8ZhqT.js +0 -1
- package/dist/interface/assets/Instances-DCE3ixbf.js +0 -1
- package/dist/interface/assets/Logs-DJL3FHsG.js +0 -6
- package/dist/interface/assets/OAuthDeviceFlow-9kYvqgyg.js +0 -1
- package/dist/interface/assets/Plugin-HIED8ziU.js +0 -1
- package/dist/interface/assets/PluginDetail-Ba9VDO53.js +0 -2
- package/dist/interface/assets/PluginSearch-B3y83uDW.js +0 -2
- package/dist/interface/assets/PluginSearch-BKVIwJVF.js +0 -1
- package/dist/interface/assets/Plugins-mdsFKDQ8.js +0 -1
- package/dist/interface/assets/Recordings-DO1BPBKp.css +0 -1
- package/dist/interface/assets/Recordings-GVzdhE19.js +0 -1
- package/dist/interface/assets/SensorEdit-COOOaB-l.js +0 -1
- package/dist/interface/assets/Sensors-De6n66ER.js +0 -2
- package/dist/interface/assets/Sensors-DfE07b1Q.css +0 -1
- package/dist/interface/assets/Settings-BipPaBUB.js +0 -1
- package/dist/interface/assets/SettingsAccount-809sRaa9.js +0 -1
- package/dist/interface/assets/SettingsAccount-Bmteep-6.js +0 -1
- package/dist/interface/assets/SettingsAppearance-CJWlk9_1.js +0 -1
- package/dist/interface/assets/SettingsAppearance-Cobtww9z.js +0 -1
- package/dist/interface/assets/SettingsBackup-Bbp3fEuS.js +0 -1
- package/dist/interface/assets/SettingsList-DFJifGkE.js +0 -1
- package/dist/interface/assets/SettingsNotifications-Dt_gxxoj.js +0 -2
- package/dist/interface/assets/SettingsRecordings-1i4sNZ8u.js +0 -1
- package/dist/interface/assets/SettingsRemote-HDCH_D5s.js +0 -1
- package/dist/interface/assets/SettingsSystem-jDQ9m8jt.js +0 -2
- package/dist/interface/assets/SettingsUsers-CFzURSfg.js +0 -1
- package/dist/interface/assets/VersionsHandler-CBAnjOWO.js +0 -7
- package/dist/interface/assets/Workers-DQZ0QoEN.js +0 -2
- package/dist/interface/assets/alarm-light-outline-jCTfmz5t.js +0 -1
- package/dist/interface/assets/api-CwjboJ6S.css +0 -2
- package/dist/interface/assets/api-DpZpuR8_.js +0 -2
- package/dist/interface/assets/cloudHandoff-D8flqTzb.js +0 -1
- package/dist/interface/assets/cube-scan-Ccxismvr.js +0 -1
- package/dist/interface/assets/esm-B4MXP42m.js +0 -1
- package/dist/interface/assets/esm-BW9m3dy4.js +0 -1
- package/dist/interface/assets/esm-BZ3gh7Fj.js +0 -1
- package/dist/interface/assets/esm-Blvz9SsB.js +0 -1
- package/dist/interface/assets/esm-CJXU9jaA.js +0 -1
- package/dist/interface/assets/esm-Cqqu_mer.js +0 -1
- package/dist/interface/assets/esm-CtKbLoV_.js +0 -1
- package/dist/interface/assets/esm-CwzNi2iW.js +0 -1
- package/dist/interface/assets/esm-KnO8wJyB.js +0 -1
- package/dist/interface/assets/esm-Lt6R0RFn.js +0 -1
- package/dist/interface/assets/esm-MvRctfDP.js +0 -1
- package/dist/interface/assets/esm-W4LX4Rpq.js +0 -1
- package/dist/interface/assets/esm-l57LNUWu.js +0 -1
- package/dist/interface/assets/esm-xofhyA8r.js +0 -1
- package/dist/interface/assets/main-Csclhnoq.js +0 -3
- package/dist/interface/assets/mqtt-DklPP2x5.js +0 -1
- package/dist/interface/assets/native-Cpj7zrLp.js +0 -1
- package/dist/interface/assets/native-D--k2WN1.js +0 -1
- package/dist/interface/assets/plugin-D3FpjfF8.js +0 -1
- package/dist/interface/assets/round-restart-alt-CdweDM5-.js +0 -1
- package/dist/interface/assets/round-restart-alt-D3sTGG7n.css +0 -1
- package/dist/interface/assets/theme-ClwavgWz.js +0 -1
- package/dist/interface/assets/types-D9YcubIy.js +0 -1
- package/dist/interface/assets/useLogsSocket-BxI3NbRJ.js +0 -5
- package/dist/interface/assets/useUserOptions-BpEZlRAL.js +0 -1
- package/dist/interface/assets/vendor-cameraui-Cgb5z6NJ.js +0 -2040
- package/dist/interface/assets/vendor-core-BJsSXMFQ.js +0 -1
- package/dist/interface/assets/web-BX3axHeB.js +0 -1
- package/dist/interface/assets/web-BcHmbPny.js +0 -1
- package/dist/interface/assets/web-BjKL51lK-BQjyRtns.js +0 -1
- package/dist/interface/assets/web-C8w-z-xR.js +0 -1
- package/dist/interface/assets/web-CHdniv8I.js +0 -1
- package/dist/interface/assets/web-CWBhY0Av.js +0 -1
- package/dist/interface/assets/web-Cf1yYy4u.js +0 -1
- package/dist/interface/assets/web-Ct6Vkr6F.js +0 -1
- package/dist/interface/assets/web-DARDw7d8.js +0 -1
- package/dist/interface/assets/web-DKBMdBSA.js +0 -1
- package/dist/interface/assets/web-Ddzvp-fv.js +0 -1
- package/dist/interface/assets/web-Dymr_MpD.js +0 -1
- package/dist/interface/assets/web-XIuTPdFc.js +0 -1
- package/dist/interface/assets/web-lrnXIJTz.js +0 -1
- package/dist/interface/assets/workbox-window.prod.es5-BkFwsIPp.js +0 -1
- /package/dist/interface/assets/{useLogsSocket-CoA-Nq-_.css → CuiConsole-CoA-Nq-_.css} +0 -0
|
@@ -8,9 +8,9 @@ import{r as e,t}from"./rolldown-runtime-C0FnF6B9.js";function n(e){let t=Object.
|
|
|
8
8
|
`);return e===-1?``:t.stack.slice(e+1)})();try{if(!e.stack)e.stack=n;else if(n){let t=n.indexOf(`
|
|
9
9
|
`),r=t===-1?-1:n.indexOf(`
|
|
10
10
|
`,t+1),i=r===-1?``:n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+=`
|
|
11
|
-
`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=dp(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Qp.assertOptions(n,{silentJSONParsing:$p.transitional($p.boolean),forcedJSONParsing:$p.transitional($p.boolean),clarifyTimeoutError:$p.transitional($p.boolean),legacyInterceptorReqResOrdering:$p.transitional($p.boolean),advertiseZstdAcceptEncoding:$p.transitional($p.boolean),validateStatusUndefinedResolves:$p.transitional($p.boolean)},!1),r!=null&&(K.isFunction(r)?t.paramsSerializer={serialize:r}:Qp.assertOptions(r,{encode:$p.function,serialize:$p.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Qp.assertOptions(t,{baseUrl:$p.spelling(`baseURL`),withXsrfToken:$p.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&K.merge(i.common,i[t.method]);i&&K.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`,`common`],e=>{delete i[e]}),t.headers=af.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||Cf;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[Jp.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e?e(f):f}catch(e){if(!t){l=Promise.reject(e);break}try{let n=t.call(this,e);K.isThenable(n)&&(l=Promise.resolve(n).then(()=>Jp.call(this,f)))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=Jp.call(this,f)}catch(e){l=Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=dp(this.defaults,e),xf(cp(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};K.forEach([`delete`,`get`,`head`,`options`],function(e){em.prototype[e]=function(t,n){return this.request(dp(n||{},{method:e,url:t,data:n&&K.hasOwnProp(n,`data`)?n.data:void 0}))}}),K.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(dp(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}em.prototype[e]=t(),e!==`query`&&(em.prototype[e+`Form`]=t(!0))});var tm=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-->0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new Uf(e,r,i),t(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;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function nm(e){return function(t){return e.apply(null,t)}}function rm(e){return K.isObject(e)&&e.isAxiosError===!0}var im={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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(im).forEach(([e,t])=>{im[t]=e});function am(e){let t=new em(e),n=bu(em.prototype.request,t);return K.extend(n,em.prototype,t,{allOwnKeys:!0}),K.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return am(dp(e,t))},n}var om=am(Bf);om.Axios=em,om.CanceledError=Uf,om.CancelToken=tm,om.isCancel=Hf,om.VERSION=Mp,om.toFormData=gf,om.AxiosError=q,om.Cancel=om.CanceledError,om.all=function(e){return Promise.all(e)},om.spread=nm,om.isAxiosError=rm,om.mergeConfig=dp,om.AxiosHeaders=af,om.formToJSON=e=>Lf(K.isHTMLForm(e)?new FormData(e):e),om.getAdapter=Kp.getAdapter,om.HttpStatusCode=im,om.default=om;var{Axios:sm,AxiosError:cm,CanceledError:lm,isCancel:um,CancelToken:dm,VERSION:fm,all:pm,Cancel:mm,isAxiosError:hm,spread:gm,toFormData:_m,AxiosHeaders:vm,HttpStatusCode:ym,formToJSON:bm,getAdapter:xm,mergeConfig:Sm,create:Cm}=om,wm=t((()=>{var e;(function(e){(function(t){var n=typeof globalThis==`object`?globalThis:typeof global==`object`?global:typeof self==`object`?self:typeof this==`object`?this:s(),r=i(e);n.Reflect!==void 0&&(r=i(n.Reflect,r)),t(r,n),n.Reflect===void 0&&(n.Reflect=e);function i(e,t){return function(n,r){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}function a(){try{return Function(`return this;`)()}catch{}}function o(){try{return(0,eval)(`(function() { return this; })()`)}catch{}}function s(){return a()||o()}})(function(e,t){var n=Object.prototype.hasOwnProperty,r=typeof Symbol==`function`,i=r&&Symbol.toPrimitive!==void 0?Symbol.toPrimitive:`@@toPrimitive`,a=r&&Symbol.iterator!==void 0?Symbol.iterator:`@@iterator`,o=typeof Object.create==`function`,s={__proto__:[]}instanceof Array,c=!o&&!s,l={create:o?function(){return Oe(Object.create(null))}:s?function(){return Oe({__proto__:null})}:function(){return Oe({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),d=typeof Map==`function`&&typeof Map.prototype.entries==`function`?Map:Te(),f=typeof Set==`function`&&typeof Set.prototype.entries==`function`?Set:Ee(),p=typeof WeakMap==`function`?WeakMap:De(),m=r?Symbol.for(`@reflect-metadata:registry`):void 0,h=xe(),g=Se(h);function v(e,t,n,r){if(F(n)){if(!le(e)||!de(t))throw TypeError();return O(e,t)}if(!le(e)||!L(t)||!L(r)&&!F(r)&&!I(r))throw TypeError();return I(r)&&(r=void 0),n=ce(n),k(e,t,n,r)}e(`decorate`,v);function y(e,t){function n(n,r){if(!L(n)||!F(r)&&!fe(r))throw TypeError();te(e,t,n,r)}return n}e(`metadata`,y);function b(e,t,n,r){if(!L(n))throw TypeError();return F(r)||(r=ce(r)),te(e,t,n,r)}e(`defineMetadata`,b);function x(e,t,n){if(!L(t))throw TypeError();return F(n)||(n=ce(n)),ee(e,t,n)}e(`hasMetadata`,x);function S(e,t,n){if(!L(t))throw TypeError();return F(n)||(n=ce(n)),A(e,t,n)}e(`hasOwnMetadata`,S);function C(e,t,n){if(!L(t))throw TypeError();return F(n)||(n=ce(n)),j(e,t,n)}e(`getMetadata`,C);function w(e,t,n){if(!L(t))throw TypeError();return F(n)||(n=ce(n)),M(e,t,n)}e(`getOwnMetadata`,w);function T(e,t){if(!L(e))throw TypeError();return F(t)||(t=ce(t)),ne(e,t)}e(`getMetadataKeys`,T);function E(e,t){if(!L(e))throw TypeError();return F(t)||(t=ce(t)),N(e,t)}e(`getOwnMetadataKeys`,E);function D(e,t,n){if(!L(t)||(F(n)||(n=ce(n)),!L(t)))throw TypeError();F(n)||(n=ce(n));var r=we(t,n,!1);return!F(r)&&r.OrdinaryDeleteMetadata(e,t,n)}e(`deleteMetadata`,D);function O(e,t){for(var n=e.length-1;n>=0;--n){var r=e[n],i=r(t);if(!F(i)&&!I(i)){if(!de(i))throw TypeError();t=i}}return t}function k(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=e[i],o=a(t,n,r);if(!F(o)&&!I(o)){if(!L(o))throw TypeError();r=o}}return r}function ee(e,t,n){if(A(e,t,n))return!0;var r=ye(t);return!I(r)&&ee(e,r,n)}function A(e,t,n){var r=we(t,n,!1);return!F(r)&&oe(r.OrdinaryHasOwnMetadata(e,t,n))}function j(e,t,n){if(A(e,t,n))return M(e,t,n);var r=ye(t);if(!I(r))return j(e,r,n)}function M(e,t,n){var r=we(t,n,!1);if(!F(r))return r.OrdinaryGetOwnMetadata(e,t,n)}function te(e,t,n,r){we(n,r,!0).OrdinaryDefineOwnMetadata(e,t,n,r)}function ne(e,t){var n=N(e,t),r=ye(e);if(r===null)return n;var i=ne(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new f,o=[],s=0,c=n;s<c.length;s++){var l=c[s],u=a.has(l);u||(a.add(l),o.push(l))}for(var d=0,p=i;d<p.length;d++){var l=p[d],u=a.has(l);u||(a.add(l),o.push(l))}return o}function N(e,t){var n=we(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function P(e){if(e===null)return 1;switch(typeof e){case`undefined`:return 0;case`boolean`:return 2;case`string`:return 3;case`symbol`:return 4;case`number`:return 5;case`object`:return e===null?1:6;default:return 6}}function F(e){return e===void 0}function I(e){return e===null}function re(e){return typeof e==`symbol`}function L(e){return typeof e==`object`?e!==null:typeof e==`function`}function ie(e,t){switch(P(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e}var n=t===3?`string`:t===5?`number`:`default`,r=me(e,i);if(r!==void 0){var a=r.call(e,n);if(L(a))throw TypeError();return a}return ae(e,n==="default"?`number`:n)}function ae(e,t){if(t===`string`){var n=e.toString;if(ue(n)){var r=n.call(e);if(!L(r))return r}var i=e.valueOf;if(ue(i)){var r=i.call(e);if(!L(r))return r}}else{var i=e.valueOf;if(ue(i)){var r=i.call(e);if(!L(r))return r}var a=e.toString;if(ue(a)){var r=a.call(e);if(!L(r))return r}}throw TypeError()}function oe(e){return!!e}function se(e){return``+e}function ce(e){var t=ie(e,3);return re(t)?t:se(t)}function le(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:Object.prototype.toString.call(e)===`[object Array]`}function ue(e){return typeof e==`function`}function de(e){return typeof e==`function`}function fe(e){switch(P(e)){case 3:return!0;case 4:return!0;default:return!1}}function pe(e,t){return e===t||e!==e&&t!==t}function me(e,t){var n=e[t];if(n!=null){if(!ue(n))throw TypeError();return n}}function he(e){var t=me(e,a);if(!ue(t))throw TypeError();var n=t.call(e);if(!L(n))throw TypeError();return n}function ge(e){return e.value}function _e(e){var t=e.next();return!t.done&&t}function ve(e){var t=e.return;t&&t.call(e)}function ye(e){var t=Object.getPrototypeOf(e);if(typeof e!=`function`||e===u||t!==u)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(r==null||r===Object.prototype)return t;var i=r.constructor;return typeof i!=`function`||i===e?t:i}function be(){var e;!F(m)&&t.Reflect!==void 0&&!(m in t.Reflect)&&typeof t.Reflect.defineMetadata==`function`&&(e=Ce(t.Reflect));var n,r,i,a=new p,o={registerProvider:s,getProvider:l,setProvider:h};return o;function s(t){if(!Object.isExtensible(o))throw Error(`Cannot add provider to a frozen registry.`);switch(!0){case e===t:break;case F(n):n=t;break;case n===t:break;case F(r):r=t;break;case r===t:break;default:i===void 0&&(i=new f),i.add(t)}}function c(t,a){if(!F(n)){if(n.isProviderFor(t,a))return n;if(!F(r)){if(r.isProviderFor(t,a))return n;if(!F(i))for(var o=he(i);;){var s=_e(o);if(!s)return;var c=ge(s);if(c.isProviderFor(t,a))return ve(o),c}}}if(!F(e)&&e.isProviderFor(t,a))return e}function l(e,t){var n=a.get(e),r;return F(n)||(r=n.get(t)),F(r)?(r=c(e,t),F(r)||(F(n)&&(n=new d,a.set(e,n)),n.set(t,r)),r):r}function u(e){if(F(e))throw TypeError();return n===e||r===e||!F(i)&&i.has(e)}function h(e,t,n){if(!u(n))throw Error(`Metadata provider not registered.`);var r=l(e,t);if(r!==n){if(!F(r))return!1;var i=a.get(e);F(i)&&(i=new d,a.set(e,i)),i.set(t,n)}return!0}}function xe(){var e;return!F(m)&&L(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[m]),F(e)&&(e=be()),!F(m)&&L(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,m,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}function Se(e){var t=new p,n={isProviderFor:function(e,n){var r=t.get(e);return!F(r)&&r.has(n)},OrdinaryDefineOwnMetadata:o,OrdinaryHasOwnMetadata:i,OrdinaryGetOwnMetadata:a,OrdinaryOwnMetadataKeys:s,OrdinaryDeleteMetadata:c};return h.registerProvider(n),n;function r(r,i,a){var o=t.get(r),s=!1;if(F(o)){if(!a)return;o=new d,t.set(r,o),s=!0}var c=o.get(i);if(F(c)){if(!a)return;if(c=new d,o.set(i,c),!e.setProvider(r,i,n))throw o.delete(i),s&&t.delete(r),Error(`Wrong provider for target.`)}return c}function i(e,t,n){var i=r(t,n,!1);return!F(i)&&oe(i.has(e))}function a(e,t,n){var i=r(t,n,!1);if(!F(i))return i.get(e)}function o(e,t,n,i){r(n,i,!0).set(e,t)}function s(e,t){var n=[],i=r(e,t,!1);if(F(i))return n;for(var a=he(i.keys()),o=0;;){var s=_e(a);if(!s)return n.length=o,n;var c=ge(s);try{n[o]=c}catch(e){try{ve(a)}finally{throw e}}o++}}function c(e,n,i){var a=r(n,i,!1);if(F(a)||!a.delete(e))return!1;if(a.size===0){var o=t.get(n);F(o)||(o.delete(i),o.size===0&&t.delete(o))}return!0}}function Ce(e){var t=e.defineMetadata,n=e.hasOwnMetadata,r=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata,o=new p;return{isProviderFor:function(e,t){var n=o.get(e);return!F(n)&&n.has(t)?!0:i(e,t).length?(F(n)&&(n=new f,o.set(e,n)),n.add(t),!0):!1},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a}}function we(e,t,n){var r=h.getProvider(e,t);if(!F(r))return r;if(n){if(h.setProvider(e,t,g))return g;throw Error(`Illegal state.`)}}function Te(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype[`@@iterator`]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,pe(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype[`@@iterator`]=function(){return this.entries()},t.prototype[a]=function(){return this.entries()},t.prototype._find=function(e,t){if(!pe(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(pe(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function o(e,t){return[e,t]}}function Ee(){return function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype[`@@iterator`]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}()}function De(){var e=l.create(),t=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return t!==void 0&&l.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return t===void 0?void 0:l.get(t,this._key)},e.prototype.set=function(e,t){var n=i(e,!0);return n[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return t!==void 0&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do t=`@@WeakMap@@`+s();while(l.has(e,t));return e[t]=!0,t}function i(e,r){if(!n.call(e,t)){if(!r)return;Object.defineProperty(e,t,{value:l.create()})}return e[t]}function a(e,t){for(var n=0;n<t;++n)e[n]=Math.random()*255|0;return e}function o(e){if(typeof Uint8Array==`function`){var t=new Uint8Array(e);return typeof crypto<`u`?crypto.getRandomValues(t):typeof msCrypto<`u`?msCrypto.getRandomValues(t):a(t,e),t}return a(Array(e),e)}function s(){var e=o(16);e[6]=e[6]&79|64,e[8]=e[8]&191|128;for(var t=``,n=0;n<16;++n){var r=e[n];(n===4||n===6||n===8)&&(t+=`-`),r<16&&(t+=`0`),t+=r.toString(16).toLowerCase()}return t}}function Oe(e){return e.__=void 0,delete e.__,e}})})(e||={})})),Tm=Object.create(null);Tm.open=`0`,Tm.close=`1`,Tm.ping=`2`,Tm.pong=`3`,Tm.message=`4`,Tm.upgrade=`5`,Tm.noop=`6`;var Em=Object.create(null);Object.keys(Tm).forEach(e=>{Em[Tm[e]]=e});var Dm={type:`error`,data:`parser error`},Om=typeof Blob==`function`||typeof Blob<`u`&&Object.prototype.toString.call(Blob)===`[object BlobConstructor]`,km=typeof ArrayBuffer==`function`,Am=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,jm=({type:e,data:t},n,r)=>Om&&t instanceof Blob?n?r(t):Mm(t,r):km&&(t instanceof ArrayBuffer||Am(t))?n?r(t):Mm(new Blob([t]),r):r(Tm[e]+(t||``)),Mm=(e,t)=>{let n=new FileReader;return n.onload=function(){let e=n.result.split(`,`)[1];t(`b`+(e||``))},n.readAsDataURL(e)};function Nm(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Pm;function Fm(e,t){if(Om&&e.data instanceof Blob)return e.data.arrayBuffer().then(Nm).then(t);if(km&&(e.data instanceof ArrayBuffer||Am(e.data)))return t(Nm(e.data));jm(e,!1,e=>{Pm||=new TextEncoder,t(Pm.encode(e))})}var Im=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Lm=typeof Uint8Array>`u`?[]:new Uint8Array(256);for(let e=0;e<64;e++)Lm[Im.charCodeAt(e)]=e;var Rm=e=>{let t=e.length*.75,n=e.length,r,i=0,a,o,s,c;e[e.length-1]===`=`&&(t--,e[e.length-2]===`=`&&t--);let l=new ArrayBuffer(t),u=new Uint8Array(l);for(r=0;r<n;r+=4)a=Lm[e.charCodeAt(r)],o=Lm[e.charCodeAt(r+1)],s=Lm[e.charCodeAt(r+2)],c=Lm[e.charCodeAt(r+3)],u[i++]=a<<2|o>>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|c&63;return l},zm=typeof ArrayBuffer==`function`,Bm=(e,t)=>{if(typeof e!=`string`)return{type:`message`,data:Hm(e,t)};let n=e.charAt(0);return n===`b`?{type:`message`,data:Vm(e.substring(1),t)}:Em[n]?e.length>1?{type:Em[n],data:e.substring(1)}:{type:Em[n]}:Dm},Vm=(e,t)=>zm?Hm(Rm(e),t):{base64:!0,data:e},Hm=(e,t)=>{switch(t){case`blob`:return e instanceof Blob?e:new Blob([e]);default:return e instanceof ArrayBuffer?e:e.buffer}},Um=``,Wm=(e,t)=>{let n=e.length,r=Array(n),i=0;e.forEach((e,a)=>{jm(e,!1,e=>{r[a]=e,++i===n&&t(r.join(Um))})})},Gm=(e,t)=>{let n=e.split(Um),r=[];for(let e=0;e<n.length;e++){let i=Bm(n[e],t);if(r.push(i),i.type===`error`)break}return r};function Km(){return new TransformStream({transform(e,t){Fm(e,n=>{let r=n.length,i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);let e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{i=new Uint8Array(9);let e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!=`string`&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}var qm;function Jm(e){return e.reduce((e,t)=>e+t.length,0)}function Ym(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function Xm(e,t){qm||=new TextDecoder;let n=[],r=0,i=-1,a=!1;return new TransformStream({transform(o,s){for(n.push(o);;){if(r===0){if(Jm(n)<1)break;let e=Ym(n,1);a=(e[0]&128)==128,i=e[0]&127,r=i<126?3:i===126?1:2}else if(r===1){if(Jm(n)<2)break;let e=Ym(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(r===2){if(Jm(n)<8)break;let e=Ym(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),a=t.getUint32(0);if(a>2**21-1){s.enqueue(Dm);break}i=a*2**32+t.getUint32(4),r=3}else{if(Jm(n)<i)break;let e=Ym(n,i);s.enqueue(Bm(a?e:qm.decode(e),t)),r=0}if(i===0||i>e){s.enqueue(Dm);break}}}})}function Zm(e){if(e)return Qm(e)}function Qm(e){for(var t in Zm.prototype)e[t]=Zm.prototype[t];return e}Zm.prototype.on=Zm.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[`$`+e]=this._callbacks[`$`+e]||[]).push(t),this},Zm.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},Zm.prototype.off=Zm.prototype.removeListener=Zm.prototype.removeAllListeners=Zm.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks[`$`+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks[`$`+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks[`$`+e],this},Zm.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),n=this._callbacks[`$`+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},Zm.prototype.emitReserved=Zm.prototype.emit,Zm.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[`$`+e]||[]},Zm.prototype.hasListeners=function(e){return!!this.listeners(e).length};var $m=typeof Promise==`function`&&typeof Promise.resolve==`function`?e=>Promise.resolve().then(e):(e,t)=>t(e,0),eh=typeof self<`u`?self:typeof window<`u`?window:Function(`return this`)(),th=`arraybuffer`;function nh(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}var rh=eh.setTimeout,ih=eh.clearTimeout;function ah(e,t){t.useNativeTimers?(e.setTimeoutFn=rh.bind(eh),e.clearTimeoutFn=ih.bind(eh)):(e.setTimeoutFn=eh.setTimeout.bind(eh),e.clearTimeoutFn=eh.clearTimeout.bind(eh))}var oh=1.33;function sh(e){return typeof e==`string`?ch(e):Math.ceil((e.byteLength||e.size)*oh)}function ch(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function lh(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function uh(e){let t=``;for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+=`&`),t+=encodeURIComponent(n)+`=`+encodeURIComponent(e[n]));return t}function dh(e){let t={},n=e.split(`&`);for(let e=0,r=n.length;e<r;e++){let r=n[e].split(`=`);t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}var fh=class extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type=`TransportError`}},ph=class extends Zm{constructor(e){super(),this.writable=!1,ah(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved(`error`,new fh(e,t,n)),this}open(){return this.readyState=`opening`,this.doOpen(),this}close(){return(this.readyState===`opening`||this.readyState===`open`)&&(this.doClose(),this.onClose()),this}send(e){this.readyState===`open`&&this.write(e)}onOpen(){this.readyState=`open`,this.writable=!0,super.emitReserved(`open`)}onData(e){let t=Bm(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved(`packet`,e)}onClose(e){this.readyState=`closed`,super.emitReserved(`close`,e)}pause(e){}createUri(e,t={}){return e+`://`+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(`:`)===-1?e:`[`+e+`]`}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?`:`+this.opts.port:``}_query(e){let t=uh(e);return t.length?`?`+t:``}},mh=class extends ph{constructor(){super(...arguments),this._polling=!1}get name(){return`polling`}doOpen(){this._poll()}pause(e){this.readyState=`pausing`;let t=()=>{this.readyState=`paused`,e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once(`pollComplete`,function(){--e||t()})),this.writable||(e++,this.once(`drain`,function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved(`poll`)}onData(e){Gm(e,this.socket.binaryType).forEach(e=>{if(this.readyState===`opening`&&e.type===`open`&&this.onOpen(),e.type===`close`)return this.onClose({description:`transport closed by the server`}),!1;this.onPacket(e)}),this.readyState!==`closed`&&(this._polling=!1,this.emitReserved(`pollComplete`),this.readyState===`open`&&this._poll())}doClose(){let e=()=>{this.write([{type:`close`}])};this.readyState===`open`?e():this.once(`open`,e)}write(e){this.writable=!1,Wm(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved(`drain`)})})}uri(){let e=this.opts.secure?`https`:`http`,t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=lh()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},hh=!1;try{hh=typeof XMLHttpRequest<`u`&&`withCredentials`in new XMLHttpRequest}catch{}var gh=hh;function _h(){}var vh=class extends mh{constructor(e){if(super(e),typeof location<`u`){let t=location.protocol===`https:`,n=location.port;n||=t?`443`:`80`,this.xd=typeof location<`u`&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){let n=this.request({method:`POST`,data:e});n.on(`success`,t),n.on(`error`,(e,t)=>{this.onError(`xhr post error`,e,t)})}doPoll(){let e=this.request();e.on(`data`,this.onData.bind(this)),e.on(`error`,(e,t)=>{this.onError(`xhr poll error`,e,t)}),this.pollXhr=e}},yh=class e extends Zm{constructor(e,t,n){super(),this.createRequest=e,ah(this,n),this._opts=n,this._method=n.method||`GET`,this._uri=t,this._data=n.data===void 0?null:n.data,this._create()}_create(){var t;let n=nh(this._opts,`agent`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`autoUnref`);n.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}}catch{}if(this._method===`POST`)try{r.setRequestHeader(`Content-type`,`text/plain;charset=UTF-8`)}catch{}try{r.setRequestHeader(`Accept`,`*/*`)}catch{}(t=this._opts.cookieJar)==null||t.addCookies(r),`withCredentials`in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;r.readyState===3&&((e=this._opts.cookieJar)==null||e.parseCookies(r.getResponseHeader(`set-cookie`))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status==`number`?r.status:0)},0))},r.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}typeof document<`u`&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(e){this.emitReserved(`error`,e,this._xhr),this._cleanup(!0)}_cleanup(t){if(this._xhr!==void 0&&this._xhr!==null){if(this._xhr.onreadystatechange=_h,t)try{this._xhr.abort()}catch{}typeof document<`u`&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved(`data`,e),this.emitReserved(`success`),this._cleanup())}abort(){this._cleanup()}};if(yh.requestsCount=0,yh.requests={},typeof document<`u`){if(typeof attachEvent==`function`)attachEvent(`onunload`,bh);else if(typeof addEventListener==`function`){let e=`onpagehide`in eh?`pagehide`:`unload`;addEventListener(e,bh,!1)}}function bh(){for(let e in yh.requests)yh.requests.hasOwnProperty(e)&&yh.requests[e].abort()}var xh=(function(){let e=Ch({xdomain:!1});return e&&e.responseType!==null})(),Sh=class extends vh{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=xh&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new yh(Ch,this.uri(),e)}};function Ch(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<`u`&&(!t||gh))return new XMLHttpRequest}catch{}if(!t)try{return new eh[[`Active`,`Object`].join(`X`)](`Microsoft.XMLHTTP`)}catch{}}var wh=typeof navigator<`u`&&typeof navigator.product==`string`&&navigator.product.toLowerCase()===`reactnative`,Th=class extends ph{get name(){return`websocket`}doOpen(){let e=this.uri(),t=this.opts.protocols,n=wh?{}:nh(this.opts,`agent`,`perMessageDeflate`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`localAddress`,`protocolVersion`,`origin`,`maxPayload`,`family`,`checkServerIdentity`);this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(e){return this.emitReserved(`error`,e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:`websocket connection closed`,context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError(`websocket error`,e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;jm(n,this.supportsBinary,e=>{try{this.doWrite(n,e)}catch{}r&&$m(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){this.ws!==void 0&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?`wss`:`ws`,t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=lh()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},Eh=eh.WebSocket||eh.MozWebSocket,Dh={websocket:class extends Th{createSocket(e,t,n){return wh?new Eh(e,t,n):t?new Eh(e,t):new Eh(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends ph{get name(){return`webtransport`}doOpen(){try{this._transport=new WebTransport(this.createUri(`https`),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved(`error`,e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError(`webtransport error`,e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=Xm(2**53-1,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=Km();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();let i=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();let a={type:`open`};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;this._writer.write(n).then(()=>{r&&$m(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)==null||e.close()}},polling:Sh},Oh=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,kh=[`source`,`protocol`,`authority`,`userInfo`,`user`,`password`,`host`,`port`,`relative`,`path`,`directory`,`file`,`query`,`anchor`];function Ah(e){if(e.length>8e3)throw`URI too long`;let t=e,n=e.indexOf(`[`),r=e.indexOf(`]`);n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,`;`)+e.substring(r,e.length));let i=Oh.exec(e||``),a={},o=14;for(;o--;)a[kh[o]]=i[o]||``;return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,`:`),a.authority=a.authority.replace(`[`,``).replace(`]`,``).replace(/;/g,`:`),a.ipv6uri=!0),a.pathNames=jh(a,a.path),a.queryKey=Mh(a,a.query),a}function jh(e,t){let n=t.replace(/\/{2,9}/g,`/`).split(`/`);return(t.slice(0,1)==`/`||t.length===0)&&n.splice(0,1),t.slice(-1)==`/`&&n.splice(n.length-1,1),n}function Mh(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}var Nh=typeof addEventListener==`function`&&typeof removeEventListener==`function`,Ph=[];Nh&&addEventListener(`offline`,()=>{Ph.forEach(e=>e())},!1);var Fh=class e extends Zm{constructor(e,t){if(super(),this.binaryType=th,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e==`object`&&(t=e,e=null),e){let n=Ah(e);t.hostname=n.host,t.secure=n.protocol===`https`||n.protocol===`wss`,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=Ah(t.host).host);ah(this,t),this.secure=t.secure==null?typeof location<`u`&&location.protocol===`https:`:t.secure,t.hostname&&!t.port&&(t.port=this.secure?`443`:`80`),this.hostname=t.hostname||(typeof location<`u`?location.hostname:`localhost`),this.port=t.port||(typeof location<`u`&&location.port?location.port:this.secure?`443`:`80`),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:`/engine.io`,agent:!1,withCredentials:!1,upgrade:!0,timestampParam:`t`,rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,``)+(this.opts.addTrailingSlash?`/`:``),typeof this.opts.query==`string`&&(this.opts.query=dh(this.opts.query)),Nh&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener(`beforeunload`,this._beforeunloadEventListener,!1)),this.hostname!==`localhost`&&(this._offlineEventListener=()=>{this._onClose(`transport close`,{description:`network connection lost`})},Ph.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved(`error`,`No transports available`)},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf(`websocket`)!==-1?`websocket`:this.transports[0];this.readyState=`opening`;let n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on(`drain`,this._onDrain.bind(this)).on(`packet`,this._onPacket.bind(this)).on(`error`,this._onError.bind(this)).on(`close`,e=>this._onClose(`transport close`,e))}onOpen(){this.readyState=`open`,e.priorWebsocketSuccess=this.transport.name===`websocket`,this.emitReserved(`open`),this.flush()}_onPacket(e){if(this.readyState===`opening`||this.readyState===`open`||this.readyState===`closing`)switch(this.emitReserved(`packet`,e),this.emitReserved(`heartbeat`),e.type){case`open`:this.onHandshake(JSON.parse(e.data));break;case`ping`:this._sendPacket(`pong`),this.emitReserved(`ping`),this.emitReserved(`pong`),this._resetPingTimeout();break;case`error`:let t=Error(`server error`);t.code=e.data,this._onError(t);break;case`message`:this.emitReserved(`data`,e.data),this.emitReserved(`message`,e.data)}}onHandshake(e){this.emitReserved(`handshake`,e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!==`closed`&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose(`ping timeout`)},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved(`drain`):this.flush()}flush(){if(this.readyState!==`closed`&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved(`flush`)}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name===`polling`&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let n=this.writeBuffer[t].data;if(n&&(e+=sh(n)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,$m(()=>{this._onClose(`ping timeout`)},this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket(`message`,e,t,n),this}send(e,t,n){return this._sendPacket(`message`,e,t,n),this}_sendPacket(e,t,n,r){if(typeof t==`function`&&(r=t,t=void 0),typeof n==`function`&&(r=n,n=null),this.readyState===`closing`||this.readyState===`closed`)return;n||={},n.compress=!1!==n.compress;let i={type:e,data:t,options:n};this.emitReserved(`packetCreate`,i),this.writeBuffer.push(i),r&&this.once(`flush`,r),this.flush()}close(){let e=()=>{this._onClose(`forced close`),this.transport.close()},t=()=>{this.off(`upgrade`,t),this.off(`upgradeError`,t),e()},n=()=>{this.once(`upgrade`,t),this.once(`upgradeError`,t)};return(this.readyState===`opening`||this.readyState===`open`)&&(this.readyState=`closing`,this.writeBuffer.length?this.once(`drain`,()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState===`opening`)return this.transports.shift(),this._open();this.emitReserved(`error`,t),this._onClose(`transport error`,t)}_onClose(e,t){if(this.readyState===`opening`||this.readyState===`open`||this.readyState===`closing`){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners(`close`),this.transport.close(),this.transport.removeAllListeners(),Nh&&(this._beforeunloadEventListener&&removeEventListener(`beforeunload`,this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=Ph.indexOf(this._offlineEventListener);e!==-1&&Ph.splice(e,1)}this.readyState=`closed`,this.id=null,this.emitReserved(`close`,e,t),this.writeBuffer=[],this._prevBufferLen=0}}};Fh.protocol=4;var Ih=class extends Fh{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState===`open`&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;Fh.priorWebsocketSuccess=!1;let r=()=>{n||(t.send([{type:`ping`,data:`probe`}]),t.once(`packet`,e=>{if(!n)if(e.type===`pong`&&e.data===`probe`){if(this.upgrading=!0,this.emitReserved(`upgrading`,t),!t)return;Fh.priorWebsocketSuccess=t.name===`websocket`,this.transport.pause(()=>{n||this.readyState!==`closed`&&(l(),this.setTransport(t),t.send([{type:`upgrade`}]),this.emitReserved(`upgrade`,t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error(`probe error`);e.transport=t.name,this.emitReserved(`upgradeError`,e)}}))};function i(){n||(n=!0,l(),t.close(),t=null)}let a=e=>{let n=Error(`probe error: `+e);n.transport=t.name,i(),this.emitReserved(`upgradeError`,n)};function o(){a(`transport closed`)}function s(){a(`socket closed`)}function c(e){t&&e.name!==t.name&&i()}let l=()=>{t.removeListener(`open`,r),t.removeListener(`error`,a),t.removeListener(`close`,o),this.off(`close`,s),this.off(`upgrading`,c)};t.once(`open`,r),t.once(`error`,a),t.once(`close`,o),this.once(`close`,s),this.once(`upgrading`,c),this._upgrades.indexOf(`webtransport`)!==-1&&e!==`webtransport`?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}},Lh=class extends Ih{constructor(e,t={}){let n=typeof e==`object`,r=n?{...e}:{...t};(!r.transports||r.transports&&typeof r.transports[0]==`string`)&&(r.transports=(r.transports||[`polling`,`websocket`,`webtransport`]).map(e=>Dh[e]).filter(e=>!!e)),super(n?r:e,r)}};Lh.protocol;function Rh(e,t=``,n){let r=e;n||=typeof location<`u`&&location,e??=n.protocol+`//`+n.host,typeof e==`string`&&(e.charAt(0)===`/`&&(e=e.charAt(1)===`/`?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=n===void 0?`https://`+e:n.protocol+`//`+e),r=Ah(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port=`80`:/^(http|ws)s$/.test(r.protocol)&&(r.port=`443`)),r.path=r.path||`/`;let i=r.host.indexOf(`:`)===-1?r.host:`[`+r.host+`]`;return r.id=r.protocol+`://`+i+`:`+r.port+t,r.href=r.protocol+`://`+i+(n&&n.port===r.port?``:`:`+r.port),r}var zh=typeof ArrayBuffer==`function`,Bh=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Vh=Object.prototype.toString,Hh=typeof Blob==`function`||typeof Blob<`u`&&Vh.call(Blob)===`[object BlobConstructor]`,Uh=typeof File==`function`||typeof File<`u`&&Vh.call(File)===`[object FileConstructor]`;function Wh(e){return zh&&(e instanceof ArrayBuffer||Bh(e))||Hh&&e instanceof Blob||Uh&&e instanceof File}function Gh(e,t){if(!e||typeof e!=`object`)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(Gh(e[t]))return!0;return!1}if(Wh(e))return!0;if(e.toJSON&&typeof e.toJSON==`function`&&arguments.length===1)return Gh(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&Gh(e[t]))return!0;return!1}function Kh(e){let t=[],n=e.data,r=e;return r.data=qh(n,t),r.attachments=t.length,{packet:r,buffers:t}}function qh(e,t){if(!e)return e;if(Wh(e)){let n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){let n=Array(e.length);for(let r=0;r<e.length;r++)n[r]=qh(e[r],t);return n}if(typeof e==`object`&&!(e instanceof Date)){let n={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=qh(e[r],t));return n}return e}function Jh(e,t){return e.data=Yh(e.data,t),delete e.attachments,e}function Yh(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num==`number`&&e.num>=0&&e.num<t.length)return t[e.num];throw Error(`illegal attachments`)}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Yh(e[n],t);else if(typeof e==`object`)for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Yh(e[n],t));return e}var Xh=e({Decoder:()=>$h,Encoder:()=>Qh,PacketType:()=>J,isPacketValid:()=>og,protocol:()=>5}),Zh=[`connect`,`connect_error`,`disconnect`,`disconnecting`,`newListener`,`removeListener`],J;(function(e){e[e.CONNECT=0]=`CONNECT`,e[e.DISCONNECT=1]=`DISCONNECT`,e[e.EVENT=2]=`EVENT`,e[e.ACK=3]=`ACK`,e[e.CONNECT_ERROR=4]=`CONNECT_ERROR`,e[e.BINARY_EVENT=5]=`BINARY_EVENT`,e[e.BINARY_ACK=6]=`BINARY_ACK`})(J||={});var Qh=class{constructor(e){this.replacer=e}encode(e){return(e.type===J.EVENT||e.type===J.ACK)&&Gh(e)?this.encodeAsBinary({type:e.type===J.EVENT?J.BINARY_EVENT:J.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=``+e.type;return(e.type===J.BINARY_EVENT||e.type===J.BINARY_ACK)&&(t+=e.attachments+`-`),e.nsp&&e.nsp!==`/`&&(t+=e.nsp+`,`),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=Kh(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}},$h=class e extends Zm{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e==`function`?{reviver:e}:e)}add(e){let t;if(typeof e==`string`){if(this.reconstructor)throw Error(`got plaintext data when reconstructing a packet`);t=this.decodeString(e);let n=t.type===J.BINARY_EVENT;n||t.type===J.BINARY_ACK?(t.type=n?J.EVENT:J.ACK,this.reconstructor=new eg(t),t.attachments===0&&super.emitReserved(`decoded`,t)):super.emitReserved(`decoded`,t)}else if(Wh(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved(`decoded`,t));else throw Error(`got binary data when not reconstructing a packet`);else throw Error(`Unknown type: `+e)}decodeString(t){let n=0,r={type:Number(t.charAt(0))};if(J[r.type]===void 0)throw Error(`unknown packet type `+r.type);if(r.type===J.BINARY_EVENT||r.type===J.BINARY_ACK){let e=n+1;for(;t.charAt(++n)!==`-`&&n!=t.length;);let i=t.substring(e,n);if(i!=Number(i)||t.charAt(n)!==`-`)throw Error(`Illegal attachments`);let a=Number(i);if(!ng(a)||a<0)throw Error(`Illegal attachments`);if(a>this.opts.maxAttachments)throw Error(`too many attachments`);r.attachments=a}if(t.charAt(n+1)===`/`){let e=n+1;for(;++n&&t.charAt(n)!==`,`&&n!==t.length;);r.nsp=t.substring(e,n)}else r.nsp=`/`;let i=t.charAt(n+1);if(i!==``&&Number(i)==i){let e=n+1;for(;++n;){let e=t.charAt(n);if(e==null||Number(e)!=e){--n;break}if(n===t.length)break}r.id=Number(t.substring(e,n+1))}if(t.charAt(++n)){let i=this.tryParse(t.substr(n));if(e.isPayloadValid(r.type,i))r.data=i;else throw Error(`invalid payload`)}return r}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case J.CONNECT:return ig(t);case J.DISCONNECT:return t===void 0;case J.CONNECT_ERROR:return typeof t==`string`||ig(t);case J.EVENT:case J.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&Zh.indexOf(t[0])===-1);case J.ACK:case J.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&=(this.reconstructor.finishedReconstruction(),null)}},eg=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=Jh(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function tg(e){return typeof e==`string`}var ng=Number.isInteger||function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e};function rg(e){return e===void 0||ng(e)}function ig(e){return Object.prototype.toString.call(e)===`[object Object]`}function ag(e,t){switch(e){case J.CONNECT:return t===void 0||ig(t);case J.DISCONNECT:return t===void 0;case J.EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&Zh.indexOf(t[0])===-1);case J.ACK:return Array.isArray(t);case J.CONNECT_ERROR:return typeof t==`string`||ig(t);default:return!1}}function og(e){return tg(e.nsp)&&rg(e.id)&&ag(e.type,e.data)}function sg(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var cg=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),lg=class extends Zm{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[sg(e,`open`,this.onopen.bind(this)),sg(e,`packet`,this.onpacket.bind(this)),sg(e,`error`,this.onerror.bind(this)),sg(e,`close`,this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState===`open`&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift(`message`),this.emit.apply(this,e),this}emit(e,...t){if(cg.hasOwnProperty(e))throw Error(`"`+e.toString()+`" is a reserved event name`);if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let n={type:J.EVENT,data:t};if(n.options={},n.options.compress=this.flags.compress!==!1,typeof t[t.length-1]==`function`){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}let r=this.io.engine?.transport?.writable,i=this.connected&&!this.io.engine?._hasPingExpired();return this.flags.volatile&&!r||(i?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){let n=this.flags.timeout??this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error(`operation has timed out`))},n),i=(...e)=>{this.io.clearTimeoutFn(r),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise((n,r)=>{let i=(e,t)=>e?r(e):n(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]==`function`&&(t=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>(this._queue[0],e===null?(this._queue.shift(),t&&t(null,...r)):n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth==`function`?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:J.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved(`connect_error`,e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved(`disconnect`,e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error(`socket has been disconnected`))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case J.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved(`connect_error`,Error(`It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)`));break;case J.EVENT:case J.BINARY_EVENT:this.onevent(e);break;case J.ACK:case J.BINARY_ACK:this.onack(e);break;case J.DISCONNECT:this.ondisconnect();break;case J.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved(`connect_error`,t)}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]==`string`&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,n=!1;return function(...r){n||(n=!0,t.packet({type:J.ACK,id:e,data:r}))}}onack(e){let t=this.acks[e.id];typeof t==`function`&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved(`connect`)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose(`io server disconnect`)}destroy(){this.subs&&=(this.subs.forEach(e=>e()),void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:J.DISCONNECT}),this.destroy(),this.connected&&this.onclose(`io client disconnect`),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let n of t)n.apply(this,e.data)}}};function ug(e){e||={},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}ug.prototype.duration=function(){var e=this.ms*this.factor**+this.attempts++;if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0},ug.prototype.reset=function(){this.attempts=0},ug.prototype.setMin=function(e){this.ms=e},ug.prototype.setMax=function(e){this.max=e},ug.prototype.setJitter=function(e){this.jitter=e};var dg=class extends Zm{constructor(e,t){super(),this.nsps={},this.subs=[],e&&typeof e==`object`&&(t=e,e=void 0),t||={},t.path=t.path||`/socket.io`,this.opts=t,ah(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor??.5),this.backoff=new ug({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState=`closed`,this.uri=e;let n=t.parser||Xh;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)==null||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)==null||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)==null||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf(`open`))return this;this.engine=new Lh(this.uri,this.opts);let t=this.engine,n=this;this._readyState=`opening`,this.skipReconnect=!1;let r=sg(t,`open`,function(){n.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState=`closed`,this.emitReserved(`error`,t),e?e(t):this.maybeReconnectOnOpen()},a=sg(t,`error`,i);if(!1!==this._timeout){let e=this._timeout,n=this.setTimeoutFn(()=>{r(),i(Error(`timeout`)),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState=`open`,this.emitReserved(`open`);let e=this.engine;this.subs.push(sg(e,`ping`,this.onping.bind(this)),sg(e,`data`,this.ondata.bind(this)),sg(e,`error`,this.onerror.bind(this)),sg(e,`close`,this.onclose.bind(this)),sg(this.decoder,`decoded`,this.ondecoded.bind(this)))}onping(){this.emitReserved(`ping`)}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose(`parse error`,e)}}ondecoded(e){$m(()=>{this.emitReserved(`packet`,e)},this.setTimeoutFn)}onerror(e){this.emitReserved(`error`,e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new lg(this,e,t),this.nsps[e]=n),n}_destroy(e){let t=Object.keys(this.nsps);for(let e of t)if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose(`forced close`)}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),(n=this.engine)==null||n.close(),this.backoff.reset(),this._readyState=`closed`,this.emitReserved(`close`,e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved(`reconnect_failed`),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved(`reconnect_attempt`,e.backoff.attempts),!e.skipReconnect&&e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved(`reconnect_error`,t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved(`reconnect`,e)}},fg={};function pg(e,t){typeof e==`object`&&(t=e,e=void 0),t||={};let n=Rh(e,t.path||`/socket.io`),r=n.source,i=n.id,a=n.path,o=fg[i]&&a in fg[i].nsps,s=t.forceNew||t[`force new connection`]||!1===t.multiplex||o,c;return s?c=new dg(r,t):(fg[i]||(fg[i]=new dg(r,t)),c=fg[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(pg,{Manager:dg,Socket:lg,io:pg,connect:pg});var mg=`modulepreload`,hg=function(e,t){return new URL(e,t).href},gg={},_g=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=hg(t,n),t=s(t),t in gg)return;gg[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:mg,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},vg=typeof window<`u`,yg=(e,t=!1)=>t?Symbol.for(e):Symbol(e),bg=(e,t,n)=>xg({l:e,k:t,s:n}),xg=e=>JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),Sg=e=>typeof e==`number`&&isFinite(e),Cg=e=>zg(e)===`[object Date]`,wg=e=>zg(e)===`[object RegExp]`,Tg=e=>Bg(e)&&Object.keys(e).length===0,Eg=Object.assign,Dg=Object.create,Og=(e=null)=>Dg(e),kg,Ag=()=>kg||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:Og(),jg=Object.prototype.hasOwnProperty;function Mg(e,t){return jg.call(e,t)}var Ng=Array.isArray,Pg=e=>typeof e==`function`,Y=e=>typeof e==`string`,Fg=e=>typeof e==`boolean`,Ig=e=>typeof e==`object`&&!!e,Lg=e=>Ig(e)&&Pg(e.then)&&Pg(e.catch),Rg=Object.prototype.toString,zg=e=>Rg.call(e),Bg=e=>zg(e)===`[object Object]`,Vg=e=>e==null?``:Ng(e)||Bg(e)&&e.toString===Rg?JSON.stringify(e,null,2):String(e);function Hg(e,t=``){return e.reduce((e,n,r)=>r===0?e+n:e+t+n,``)}function Ug(e,t){typeof console<`u`&&(console.warn(`[intlify] `+e),t&&console.warn(t.stack))}function Wg(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/\//g,`/`).replace(/=/g,`=`)}function Gg(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}var Kg=/^javascript:/i,qg=/^(?:href|src|action|formaction)$/i,Jg=/&#(?:x([0-9a-f]+)|(\d+));?/gi,Yg=/&(?:Tab|NewLine);/g,Xg=/:?/gi,Zg=/[\u0000-\u0020\u007f-\u009f]/g,Qg=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,$g=/(^|[\s"'<>/])on(\w+\s*=)/gi,e_=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function t_(e,t,n){let r=t||n;if(!r)return e;let i=Number.parseInt(r,t?16:10);return i<=127?String.fromCharCode(i):e}function n_(e){let t=e.replace(Jg,t_).replace(Yg,``).replace(Xg,`:`).replace(Zg,``);return Kg.test(t)}function r_(e){let t=/url\s*\(/gi,n=``,r=0,i;for(;(i=t.exec(e))!==null;){let a=i.index,o=t.lastIndex-1,s=o+1,c=1,l=null;for(;s<e.length;s++){let t=e[s];if(l){t===l&&(l=null);continue}if(t===`"`||t===`'`)l=t;else if(t===`(`)c++;else if(t===`)`&&(c--,c===0))break}if(c!==0)break;let u=e.slice(o+1,s).trim(),d=u.startsWith(`"`)&&u.endsWith(`"`)||u.startsWith(`'`)&&u.endsWith(`'`)?u.slice(1,-1).trim():u;n+=e.slice(r,a),n+=n_(d)?`url(about:blank)`:e.slice(a,s+1),r=s+1}return n+e.slice(r)}function i_(e,t){return qg.test(e)&&n_(t)?`about:blank`:Gg(e.toLowerCase()===`style`?r_(t):t)}function a_(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${i_(t,n)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${i_(t,n)}'`),Qg.test(e)&&(e=e.replace($g,`$1on$2`)),e=e.replace(e_,(e,t,n,r)=>n_(r)?`${t}${n}about:blank`:e),e}var o_=e=>!Ig(e)||Ng(e);function s_(e,t){if(o_(e)||o_(t))throw Error(`Invalid value`);let n=[{src:e,des:t}];for(;n.length;){let{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{r!==`__proto__`&&(Ig(e[r])&&!Ig(t[r])&&(t[r]=Array.isArray(e[r])?[]:Og()),o_(t[r])||o_(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))})}}function c_(e,t,n){return{line:e,column:t,offset:n}}function l_(e,t,n){let r={start:e,end:t};return n!=null&&(r.source=n),r}var X={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};X.EXPECTED_TOKEN,X.INVALID_TOKEN_IN_PLACEHOLDER,X.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,X.UNKNOWN_ESCAPE_SEQUENCE,X.INVALID_UNICODE_ESCAPE_SEQUENCE,X.UNBALANCED_CLOSING_BRACE,X.UNTERMINATED_CLOSING_BRACE,X.EMPTY_PLACEHOLDER,X.NOT_ALLOW_NEST_PLACEHOLDER,X.INVALID_LINKED_FORMAT,X.MUST_HAVE_MESSAGES_IN_PLURAL,X.UNEXPECTED_EMPTY_LINKED_MODIFIER,X.UNEXPECTED_EMPTY_LINKED_KEY,X.UNEXPECTED_LEXICAL_ANALYSIS,X.UNHANDLED_CODEGEN_NODE_TYPE,X.UNHANDLED_MINIFIER_NODE_TYPE;function u_(e,t,n={}){let{domain:r,messages:i,args:a}=n,o=SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=r,o}function d_(e){throw e}var f_=` `,p_=`\r`,m_=`
|
|
11
|
+
`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=dp(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Qp.assertOptions(n,{silentJSONParsing:$p.transitional($p.boolean),forcedJSONParsing:$p.transitional($p.boolean),clarifyTimeoutError:$p.transitional($p.boolean),legacyInterceptorReqResOrdering:$p.transitional($p.boolean),advertiseZstdAcceptEncoding:$p.transitional($p.boolean),validateStatusUndefinedResolves:$p.transitional($p.boolean)},!1),r!=null&&(K.isFunction(r)?t.paramsSerializer={serialize:r}:Qp.assertOptions(r,{encode:$p.function,serialize:$p.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Qp.assertOptions(t,{baseUrl:$p.spelling(`baseURL`),withXsrfToken:$p.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&K.merge(i.common,i[t.method]);i&&K.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`,`common`],e=>{delete i[e]}),t.headers=af.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||Cf;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[Jp.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e?e(f):f}catch(e){if(!t){l=Promise.reject(e);break}try{let n=t.call(this,e);K.isThenable(n)&&(l=Promise.resolve(n).then(()=>Jp.call(this,f)))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=Jp.call(this,f)}catch(e){l=Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=dp(this.defaults,e),xf(cp(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};K.forEach([`delete`,`get`,`head`,`options`],function(e){em.prototype[e]=function(t,n){return this.request(dp(n||{},{method:e,url:t,data:n&&K.hasOwnProp(n,`data`)?n.data:void 0}))}}),K.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(dp(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}em.prototype[e]=t(),e!==`query`&&(em.prototype[e+`Form`]=t(!0))});var tm=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-->0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new Uf(e,r,i),t(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;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function nm(e){return function(t){return e.apply(null,t)}}function rm(e){return K.isObject(e)&&e.isAxiosError===!0}var im={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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(im).forEach(([e,t])=>{im[t]=e});function am(e){let t=new em(e),n=bu(em.prototype.request,t);return K.extend(n,em.prototype,t,{allOwnKeys:!0}),K.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return am(dp(e,t))},n}var om=am(Bf);om.Axios=em,om.CanceledError=Uf,om.CancelToken=tm,om.isCancel=Hf,om.VERSION=Mp,om.toFormData=gf,om.AxiosError=q,om.Cancel=om.CanceledError,om.all=function(e){return Promise.all(e)},om.spread=nm,om.isAxiosError=rm,om.mergeConfig=dp,om.AxiosHeaders=af,om.formToJSON=e=>Lf(K.isHTMLForm(e)?new FormData(e):e),om.getAdapter=Kp.getAdapter,om.HttpStatusCode=im,om.default=om;var{Axios:sm,AxiosError:cm,CanceledError:lm,isCancel:um,CancelToken:dm,VERSION:fm,all:pm,Cancel:mm,isAxiosError:hm,spread:gm,toFormData:_m,AxiosHeaders:vm,HttpStatusCode:ym,formToJSON:bm,getAdapter:xm,mergeConfig:Sm,create:Cm}=om,wm=t((()=>{var e;(function(e){(function(t){var n=typeof globalThis==`object`?globalThis:typeof global==`object`?global:typeof self==`object`?self:typeof this==`object`?this:s(),r=i(e);n.Reflect!==void 0&&(r=i(n.Reflect,r)),t(r,n),n.Reflect===void 0&&(n.Reflect=e);function i(e,t){return function(n,r){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}function a(){try{return Function(`return this;`)()}catch{}}function o(){try{return(0,eval)(`(function() { return this; })()`)}catch{}}function s(){return a()||o()}})(function(e,t){var n=Object.prototype.hasOwnProperty,r=typeof Symbol==`function`,i=r&&Symbol.toPrimitive!==void 0?Symbol.toPrimitive:`@@toPrimitive`,a=r&&Symbol.iterator!==void 0?Symbol.iterator:`@@iterator`,o=typeof Object.create==`function`,s={__proto__:[]}instanceof Array,c=!o&&!s,l={create:o?function(){return Oe(Object.create(null))}:s?function(){return Oe({__proto__:null})}:function(){return Oe({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),d=typeof Map==`function`&&typeof Map.prototype.entries==`function`?Map:Te(),f=typeof Set==`function`&&typeof Set.prototype.entries==`function`?Set:Ee(),p=typeof WeakMap==`function`?WeakMap:De(),m=r?Symbol.for(`@reflect-metadata:registry`):void 0,h=xe(),g=Se(h);function v(e,t,n,r){if(F(n)){if(!le(e)||!de(t))throw TypeError();return O(e,t)}if(!le(e)||!L(t)||!L(r)&&!F(r)&&!I(r))throw TypeError();return I(r)&&(r=void 0),n=ce(n),k(e,t,n,r)}e(`decorate`,v);function y(e,t){function n(n,r){if(!L(n)||!F(r)&&!fe(r))throw TypeError();te(e,t,n,r)}return n}e(`metadata`,y);function b(e,t,n,r){if(!L(n))throw TypeError();return F(r)||(r=ce(r)),te(e,t,n,r)}e(`defineMetadata`,b);function x(e,t,n){if(!L(t))throw TypeError();return F(n)||(n=ce(n)),ee(e,t,n)}e(`hasMetadata`,x);function S(e,t,n){if(!L(t))throw TypeError();return F(n)||(n=ce(n)),A(e,t,n)}e(`hasOwnMetadata`,S);function C(e,t,n){if(!L(t))throw TypeError();return F(n)||(n=ce(n)),j(e,t,n)}e(`getMetadata`,C);function w(e,t,n){if(!L(t))throw TypeError();return F(n)||(n=ce(n)),M(e,t,n)}e(`getOwnMetadata`,w);function T(e,t){if(!L(e))throw TypeError();return F(t)||(t=ce(t)),ne(e,t)}e(`getMetadataKeys`,T);function E(e,t){if(!L(e))throw TypeError();return F(t)||(t=ce(t)),N(e,t)}e(`getOwnMetadataKeys`,E);function D(e,t,n){if(!L(t)||(F(n)||(n=ce(n)),!L(t)))throw TypeError();F(n)||(n=ce(n));var r=we(t,n,!1);return!F(r)&&r.OrdinaryDeleteMetadata(e,t,n)}e(`deleteMetadata`,D);function O(e,t){for(var n=e.length-1;n>=0;--n){var r=e[n],i=r(t);if(!F(i)&&!I(i)){if(!de(i))throw TypeError();t=i}}return t}function k(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=e[i],o=a(t,n,r);if(!F(o)&&!I(o)){if(!L(o))throw TypeError();r=o}}return r}function ee(e,t,n){if(A(e,t,n))return!0;var r=ye(t);return!I(r)&&ee(e,r,n)}function A(e,t,n){var r=we(t,n,!1);return!F(r)&&oe(r.OrdinaryHasOwnMetadata(e,t,n))}function j(e,t,n){if(A(e,t,n))return M(e,t,n);var r=ye(t);if(!I(r))return j(e,r,n)}function M(e,t,n){var r=we(t,n,!1);if(!F(r))return r.OrdinaryGetOwnMetadata(e,t,n)}function te(e,t,n,r){we(n,r,!0).OrdinaryDefineOwnMetadata(e,t,n,r)}function ne(e,t){var n=N(e,t),r=ye(e);if(r===null)return n;var i=ne(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new f,o=[],s=0,c=n;s<c.length;s++){var l=c[s],u=a.has(l);u||(a.add(l),o.push(l))}for(var d=0,p=i;d<p.length;d++){var l=p[d],u=a.has(l);u||(a.add(l),o.push(l))}return o}function N(e,t){var n=we(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function P(e){if(e===null)return 1;switch(typeof e){case`undefined`:return 0;case`boolean`:return 2;case`string`:return 3;case`symbol`:return 4;case`number`:return 5;case`object`:return e===null?1:6;default:return 6}}function F(e){return e===void 0}function I(e){return e===null}function re(e){return typeof e==`symbol`}function L(e){return typeof e==`object`?e!==null:typeof e==`function`}function ie(e,t){switch(P(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e}var n=t===3?`string`:t===5?`number`:`default`,r=me(e,i);if(r!==void 0){var a=r.call(e,n);if(L(a))throw TypeError();return a}return ae(e,n==="default"?`number`:n)}function ae(e,t){if(t===`string`){var n=e.toString;if(ue(n)){var r=n.call(e);if(!L(r))return r}var i=e.valueOf;if(ue(i)){var r=i.call(e);if(!L(r))return r}}else{var i=e.valueOf;if(ue(i)){var r=i.call(e);if(!L(r))return r}var a=e.toString;if(ue(a)){var r=a.call(e);if(!L(r))return r}}throw TypeError()}function oe(e){return!!e}function se(e){return``+e}function ce(e){var t=ie(e,3);return re(t)?t:se(t)}function le(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:Object.prototype.toString.call(e)===`[object Array]`}function ue(e){return typeof e==`function`}function de(e){return typeof e==`function`}function fe(e){switch(P(e)){case 3:return!0;case 4:return!0;default:return!1}}function pe(e,t){return e===t||e!==e&&t!==t}function me(e,t){var n=e[t];if(n!=null){if(!ue(n))throw TypeError();return n}}function he(e){var t=me(e,a);if(!ue(t))throw TypeError();var n=t.call(e);if(!L(n))throw TypeError();return n}function ge(e){return e.value}function _e(e){var t=e.next();return!t.done&&t}function ve(e){var t=e.return;t&&t.call(e)}function ye(e){var t=Object.getPrototypeOf(e);if(typeof e!=`function`||e===u||t!==u)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(r==null||r===Object.prototype)return t;var i=r.constructor;return typeof i!=`function`||i===e?t:i}function be(){var e;!F(m)&&t.Reflect!==void 0&&!(m in t.Reflect)&&typeof t.Reflect.defineMetadata==`function`&&(e=Ce(t.Reflect));var n,r,i,a=new p,o={registerProvider:s,getProvider:l,setProvider:h};return o;function s(t){if(!Object.isExtensible(o))throw Error(`Cannot add provider to a frozen registry.`);switch(!0){case e===t:break;case F(n):n=t;break;case n===t:break;case F(r):r=t;break;case r===t:break;default:i===void 0&&(i=new f),i.add(t)}}function c(t,a){if(!F(n)){if(n.isProviderFor(t,a))return n;if(!F(r)){if(r.isProviderFor(t,a))return n;if(!F(i))for(var o=he(i);;){var s=_e(o);if(!s)return;var c=ge(s);if(c.isProviderFor(t,a))return ve(o),c}}}if(!F(e)&&e.isProviderFor(t,a))return e}function l(e,t){var n=a.get(e),r;return F(n)||(r=n.get(t)),F(r)?(r=c(e,t),F(r)||(F(n)&&(n=new d,a.set(e,n)),n.set(t,r)),r):r}function u(e){if(F(e))throw TypeError();return n===e||r===e||!F(i)&&i.has(e)}function h(e,t,n){if(!u(n))throw Error(`Metadata provider not registered.`);var r=l(e,t);if(r!==n){if(!F(r))return!1;var i=a.get(e);F(i)&&(i=new d,a.set(e,i)),i.set(t,n)}return!0}}function xe(){var e;return!F(m)&&L(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[m]),F(e)&&(e=be()),!F(m)&&L(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,m,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}function Se(e){var t=new p,n={isProviderFor:function(e,n){var r=t.get(e);return!F(r)&&r.has(n)},OrdinaryDefineOwnMetadata:o,OrdinaryHasOwnMetadata:i,OrdinaryGetOwnMetadata:a,OrdinaryOwnMetadataKeys:s,OrdinaryDeleteMetadata:c};return h.registerProvider(n),n;function r(r,i,a){var o=t.get(r),s=!1;if(F(o)){if(!a)return;o=new d,t.set(r,o),s=!0}var c=o.get(i);if(F(c)){if(!a)return;if(c=new d,o.set(i,c),!e.setProvider(r,i,n))throw o.delete(i),s&&t.delete(r),Error(`Wrong provider for target.`)}return c}function i(e,t,n){var i=r(t,n,!1);return!F(i)&&oe(i.has(e))}function a(e,t,n){var i=r(t,n,!1);if(!F(i))return i.get(e)}function o(e,t,n,i){r(n,i,!0).set(e,t)}function s(e,t){var n=[],i=r(e,t,!1);if(F(i))return n;for(var a=he(i.keys()),o=0;;){var s=_e(a);if(!s)return n.length=o,n;var c=ge(s);try{n[o]=c}catch(e){try{ve(a)}finally{throw e}}o++}}function c(e,n,i){var a=r(n,i,!1);if(F(a)||!a.delete(e))return!1;if(a.size===0){var o=t.get(n);F(o)||(o.delete(i),o.size===0&&t.delete(o))}return!0}}function Ce(e){var t=e.defineMetadata,n=e.hasOwnMetadata,r=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata,o=new p;return{isProviderFor:function(e,t){var n=o.get(e);return!F(n)&&n.has(t)?!0:i(e,t).length?(F(n)&&(n=new f,o.set(e,n)),n.add(t),!0):!1},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a}}function we(e,t,n){var r=h.getProvider(e,t);if(!F(r))return r;if(n){if(h.setProvider(e,t,g))return g;throw Error(`Illegal state.`)}}function Te(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype[`@@iterator`]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,pe(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype[`@@iterator`]=function(){return this.entries()},t.prototype[a]=function(){return this.entries()},t.prototype._find=function(e,t){if(!pe(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(pe(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function o(e,t){return[e,t]}}function Ee(){return function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype[`@@iterator`]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}()}function De(){var e=l.create(),t=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return t!==void 0&&l.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return t===void 0?void 0:l.get(t,this._key)},e.prototype.set=function(e,t){var n=i(e,!0);return n[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return t!==void 0&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do t=`@@WeakMap@@`+s();while(l.has(e,t));return e[t]=!0,t}function i(e,r){if(!n.call(e,t)){if(!r)return;Object.defineProperty(e,t,{value:l.create()})}return e[t]}function a(e,t){for(var n=0;n<t;++n)e[n]=Math.random()*255|0;return e}function o(e){if(typeof Uint8Array==`function`){var t=new Uint8Array(e);return typeof crypto<`u`?crypto.getRandomValues(t):typeof msCrypto<`u`?msCrypto.getRandomValues(t):a(t,e),t}return a(Array(e),e)}function s(){var e=o(16);e[6]=e[6]&79|64,e[8]=e[8]&191|128;for(var t=``,n=0;n<16;++n){var r=e[n];(n===4||n===6||n===8)&&(t+=`-`),r<16&&(t+=`0`),t+=r.toString(16).toLowerCase()}return t}}function Oe(e){return e.__=void 0,delete e.__,e}})})(e||={})})),Tm=Object.create(null);Tm.open=`0`,Tm.close=`1`,Tm.ping=`2`,Tm.pong=`3`,Tm.message=`4`,Tm.upgrade=`5`,Tm.noop=`6`;var Em=Object.create(null);Object.keys(Tm).forEach(e=>{Em[Tm[e]]=e});var Dm={type:`error`,data:`parser error`},Om=typeof Blob==`function`||typeof Blob<`u`&&Object.prototype.toString.call(Blob)===`[object BlobConstructor]`,km=typeof ArrayBuffer==`function`,Am=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,jm=({type:e,data:t},n,r)=>Om&&t instanceof Blob?n?r(t):Mm(t,r):km&&(t instanceof ArrayBuffer||Am(t))?n?r(t):Mm(new Blob([t]),r):r(Tm[e]+(t||``)),Mm=(e,t)=>{let n=new FileReader;return n.onload=function(){let e=n.result.split(`,`)[1];t(`b`+(e||``))},n.readAsDataURL(e)};function Nm(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Pm;function Fm(e,t){if(Om&&e.data instanceof Blob)return e.data.arrayBuffer().then(Nm).then(t);if(km&&(e.data instanceof ArrayBuffer||Am(e.data)))return t(Nm(e.data));jm(e,!1,e=>{Pm||=new TextEncoder,t(Pm.encode(e))})}var Im=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Lm=typeof Uint8Array>`u`?[]:new Uint8Array(256);for(let e=0;e<64;e++)Lm[Im.charCodeAt(e)]=e;var Rm=e=>{let t=e.length*.75,n=e.length,r,i=0,a,o,s,c;e[e.length-1]===`=`&&(t--,e[e.length-2]===`=`&&t--);let l=new ArrayBuffer(t),u=new Uint8Array(l);for(r=0;r<n;r+=4)a=Lm[e.charCodeAt(r)],o=Lm[e.charCodeAt(r+1)],s=Lm[e.charCodeAt(r+2)],c=Lm[e.charCodeAt(r+3)],u[i++]=a<<2|o>>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|c&63;return l},zm=typeof ArrayBuffer==`function`,Bm=(e,t)=>{if(typeof e!=`string`)return{type:`message`,data:Hm(e,t)};let n=e.charAt(0);return n===`b`?{type:`message`,data:Vm(e.substring(1),t)}:Em[n]?e.length>1?{type:Em[n],data:e.substring(1)}:{type:Em[n]}:Dm},Vm=(e,t)=>zm?Hm(Rm(e),t):{base64:!0,data:e},Hm=(e,t)=>{switch(t){case`blob`:return e instanceof Blob?e:new Blob([e]);default:return e instanceof ArrayBuffer?e:e.buffer}},Um=``,Wm=(e,t)=>{let n=e.length,r=Array(n),i=0;e.forEach((e,a)=>{jm(e,!1,e=>{r[a]=e,++i===n&&t(r.join(Um))})})},Gm=(e,t)=>{let n=e.split(Um),r=[];for(let e=0;e<n.length;e++){let i=Bm(n[e],t);if(r.push(i),i.type===`error`)break}return r};function Km(){return new TransformStream({transform(e,t){Fm(e,n=>{let r=n.length,i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);let e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{i=new Uint8Array(9);let e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!=`string`&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}var qm;function Jm(e){return e.reduce((e,t)=>e+t.length,0)}function Ym(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function Xm(e,t){qm||=new TextDecoder;let n=[],r=0,i=-1,a=!1;return new TransformStream({transform(o,s){for(n.push(o);;){if(r===0){if(Jm(n)<1)break;let e=Ym(n,1);a=(e[0]&128)==128,i=e[0]&127,r=i<126?3:i===126?1:2}else if(r===1){if(Jm(n)<2)break;let e=Ym(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(r===2){if(Jm(n)<8)break;let e=Ym(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),a=t.getUint32(0);if(a>2**21-1){s.enqueue(Dm);break}i=a*2**32+t.getUint32(4),r=3}else{if(Jm(n)<i)break;let e=Ym(n,i);s.enqueue(Bm(a?e:qm.decode(e),t)),r=0}if(i===0||i>e){s.enqueue(Dm);break}}}})}function Zm(e){if(e)return Qm(e)}function Qm(e){for(var t in Zm.prototype)e[t]=Zm.prototype[t];return e}Zm.prototype.on=Zm.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[`$`+e]=this._callbacks[`$`+e]||[]).push(t),this},Zm.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},Zm.prototype.off=Zm.prototype.removeListener=Zm.prototype.removeAllListeners=Zm.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks[`$`+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks[`$`+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks[`$`+e],this},Zm.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),n=this._callbacks[`$`+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},Zm.prototype.emitReserved=Zm.prototype.emit,Zm.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[`$`+e]||[]},Zm.prototype.hasListeners=function(e){return!!this.listeners(e).length};var $m=typeof Promise==`function`&&typeof Promise.resolve==`function`?e=>Promise.resolve().then(e):(e,t)=>t(e,0),eh=typeof self<`u`?self:typeof window<`u`?window:Function(`return this`)(),th=`arraybuffer`;function nh(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}var rh=eh.setTimeout,ih=eh.clearTimeout;function ah(e,t){t.useNativeTimers?(e.setTimeoutFn=rh.bind(eh),e.clearTimeoutFn=ih.bind(eh)):(e.setTimeoutFn=eh.setTimeout.bind(eh),e.clearTimeoutFn=eh.clearTimeout.bind(eh))}var oh=1.33;function sh(e){return typeof e==`string`?ch(e):Math.ceil((e.byteLength||e.size)*oh)}function ch(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function lh(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function uh(e){let t=``;for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+=`&`),t+=encodeURIComponent(n)+`=`+encodeURIComponent(e[n]));return t}function dh(e){let t={},n=e.split(`&`);for(let e=0,r=n.length;e<r;e++){let r=n[e].split(`=`);t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}var fh=class extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type=`TransportError`}},ph=class extends Zm{constructor(e){super(),this.writable=!1,ah(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved(`error`,new fh(e,t,n)),this}open(){return this.readyState=`opening`,this.doOpen(),this}close(){return(this.readyState===`opening`||this.readyState===`open`)&&(this.doClose(),this.onClose()),this}send(e){this.readyState===`open`&&this.write(e)}onOpen(){this.readyState=`open`,this.writable=!0,super.emitReserved(`open`)}onData(e){let t=Bm(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved(`packet`,e)}onClose(e){this.readyState=`closed`,super.emitReserved(`close`,e)}pause(e){}createUri(e,t={}){return e+`://`+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(`:`)===-1?e:`[`+e+`]`}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?`:`+this.opts.port:``}_query(e){let t=uh(e);return t.length?`?`+t:``}},mh=class extends ph{constructor(){super(...arguments),this._polling=!1}get name(){return`polling`}doOpen(){this._poll()}pause(e){this.readyState=`pausing`;let t=()=>{this.readyState=`paused`,e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once(`pollComplete`,function(){--e||t()})),this.writable||(e++,this.once(`drain`,function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved(`poll`)}onData(e){Gm(e,this.socket.binaryType).forEach(e=>{if(this.readyState===`opening`&&e.type===`open`&&this.onOpen(),e.type===`close`)return this.onClose({description:`transport closed by the server`}),!1;this.onPacket(e)}),this.readyState!==`closed`&&(this._polling=!1,this.emitReserved(`pollComplete`),this.readyState===`open`&&this._poll())}doClose(){let e=()=>{this.write([{type:`close`}])};this.readyState===`open`?e():this.once(`open`,e)}write(e){this.writable=!1,Wm(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved(`drain`)})})}uri(){let e=this.opts.secure?`https`:`http`,t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=lh()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},hh=!1;try{hh=typeof XMLHttpRequest<`u`&&`withCredentials`in new XMLHttpRequest}catch{}var gh=hh;function _h(){}var vh=class extends mh{constructor(e){if(super(e),typeof location<`u`){let t=location.protocol===`https:`,n=location.port;n||=t?`443`:`80`,this.xd=typeof location<`u`&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){let n=this.request({method:`POST`,data:e});n.on(`success`,t),n.on(`error`,(e,t)=>{this.onError(`xhr post error`,e,t)})}doPoll(){let e=this.request();e.on(`data`,this.onData.bind(this)),e.on(`error`,(e,t)=>{this.onError(`xhr poll error`,e,t)}),this.pollXhr=e}},yh=class e extends Zm{constructor(e,t,n){super(),this.createRequest=e,ah(this,n),this._opts=n,this._method=n.method||`GET`,this._uri=t,this._data=n.data===void 0?null:n.data,this._create()}_create(){var t;let n=nh(this._opts,`agent`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`autoUnref`);n.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}}catch{}if(this._method===`POST`)try{r.setRequestHeader(`Content-type`,`text/plain;charset=UTF-8`)}catch{}try{r.setRequestHeader(`Accept`,`*/*`)}catch{}(t=this._opts.cookieJar)==null||t.addCookies(r),`withCredentials`in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;r.readyState===3&&((e=this._opts.cookieJar)==null||e.parseCookies(r.getResponseHeader(`set-cookie`))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status==`number`?r.status:0)},0))},r.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}typeof document<`u`&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(e){this.emitReserved(`error`,e,this._xhr),this._cleanup(!0)}_cleanup(t){if(this._xhr!==void 0&&this._xhr!==null){if(this._xhr.onreadystatechange=_h,t)try{this._xhr.abort()}catch{}typeof document<`u`&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved(`data`,e),this.emitReserved(`success`),this._cleanup())}abort(){this._cleanup()}};if(yh.requestsCount=0,yh.requests={},typeof document<`u`){if(typeof attachEvent==`function`)attachEvent(`onunload`,bh);else if(typeof addEventListener==`function`){let e=`onpagehide`in eh?`pagehide`:`unload`;addEventListener(e,bh,!1)}}function bh(){for(let e in yh.requests)yh.requests.hasOwnProperty(e)&&yh.requests[e].abort()}var xh=(function(){let e=Ch({xdomain:!1});return e&&e.responseType!==null})(),Sh=class extends vh{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=xh&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new yh(Ch,this.uri(),e)}};function Ch(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<`u`&&(!t||gh))return new XMLHttpRequest}catch{}if(!t)try{return new eh[[`Active`,`Object`].join(`X`)](`Microsoft.XMLHTTP`)}catch{}}var wh=typeof navigator<`u`&&typeof navigator.product==`string`&&navigator.product.toLowerCase()===`reactnative`,Th=class extends ph{get name(){return`websocket`}doOpen(){let e=this.uri(),t=this.opts.protocols,n=wh?{}:nh(this.opts,`agent`,`perMessageDeflate`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`localAddress`,`protocolVersion`,`origin`,`maxPayload`,`family`,`checkServerIdentity`);this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(e){return this.emitReserved(`error`,e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:`websocket connection closed`,context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError(`websocket error`,e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;jm(n,this.supportsBinary,e=>{try{this.doWrite(n,e)}catch{}r&&$m(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){this.ws!==void 0&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?`wss`:`ws`,t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=lh()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},Eh=eh.WebSocket||eh.MozWebSocket,Dh={websocket:class extends Th{createSocket(e,t,n){return wh?new Eh(e,t,n):t?new Eh(e,t):new Eh(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends ph{get name(){return`webtransport`}doOpen(){try{this._transport=new WebTransport(this.createUri(`https`),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved(`error`,e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError(`webtransport error`,e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=Xm(2**53-1,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=Km();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();let i=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();let a={type:`open`};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;this._writer.write(n).then(()=>{r&&$m(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)==null||e.close()}},polling:Sh},Oh=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,kh=[`source`,`protocol`,`authority`,`userInfo`,`user`,`password`,`host`,`port`,`relative`,`path`,`directory`,`file`,`query`,`anchor`];function Ah(e){if(e.length>8e3)throw`URI too long`;let t=e,n=e.indexOf(`[`),r=e.indexOf(`]`);n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,`;`)+e.substring(r,e.length));let i=Oh.exec(e||``),a={},o=14;for(;o--;)a[kh[o]]=i[o]||``;return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,`:`),a.authority=a.authority.replace(`[`,``).replace(`]`,``).replace(/;/g,`:`),a.ipv6uri=!0),a.pathNames=jh(a,a.path),a.queryKey=Mh(a,a.query),a}function jh(e,t){let n=t.replace(/\/{2,9}/g,`/`).split(`/`);return(t.slice(0,1)==`/`||t.length===0)&&n.splice(0,1),t.slice(-1)==`/`&&n.splice(n.length-1,1),n}function Mh(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}var Nh=typeof addEventListener==`function`&&typeof removeEventListener==`function`,Ph=[];Nh&&addEventListener(`offline`,()=>{Ph.forEach(e=>e())},!1);var Fh=class e extends Zm{constructor(e,t){if(super(),this.binaryType=th,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e==`object`&&(t=e,e=null),e){let n=Ah(e);t.hostname=n.host,t.secure=n.protocol===`https`||n.protocol===`wss`,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=Ah(t.host).host);ah(this,t),this.secure=t.secure==null?typeof location<`u`&&location.protocol===`https:`:t.secure,t.hostname&&!t.port&&(t.port=this.secure?`443`:`80`),this.hostname=t.hostname||(typeof location<`u`?location.hostname:`localhost`),this.port=t.port||(typeof location<`u`&&location.port?location.port:this.secure?`443`:`80`),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:`/engine.io`,agent:!1,withCredentials:!1,upgrade:!0,timestampParam:`t`,rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,``)+(this.opts.addTrailingSlash?`/`:``),typeof this.opts.query==`string`&&(this.opts.query=dh(this.opts.query)),Nh&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener(`beforeunload`,this._beforeunloadEventListener,!1)),this.hostname!==`localhost`&&(this._offlineEventListener=()=>{this._onClose(`transport close`,{description:`network connection lost`})},Ph.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved(`error`,`No transports available`)},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf(`websocket`)!==-1?`websocket`:this.transports[0];this.readyState=`opening`;let n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on(`drain`,this._onDrain.bind(this)).on(`packet`,this._onPacket.bind(this)).on(`error`,this._onError.bind(this)).on(`close`,e=>this._onClose(`transport close`,e))}onOpen(){this.readyState=`open`,e.priorWebsocketSuccess=this.transport.name===`websocket`,this.emitReserved(`open`),this.flush()}_onPacket(e){if(this.readyState===`opening`||this.readyState===`open`||this.readyState===`closing`)switch(this.emitReserved(`packet`,e),this.emitReserved(`heartbeat`),e.type){case`open`:this.onHandshake(JSON.parse(e.data));break;case`ping`:this._sendPacket(`pong`),this.emitReserved(`ping`),this.emitReserved(`pong`),this._resetPingTimeout();break;case`error`:let t=Error(`server error`);t.code=e.data,this._onError(t);break;case`message`:this.emitReserved(`data`,e.data),this.emitReserved(`message`,e.data)}}onHandshake(e){this.emitReserved(`handshake`,e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!==`closed`&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose(`ping timeout`)},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved(`drain`):this.flush()}flush(){if(this.readyState!==`closed`&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved(`flush`)}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name===`polling`&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let n=this.writeBuffer[t].data;if(n&&(e+=sh(n)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,$m(()=>{this._onClose(`ping timeout`)},this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket(`message`,e,t,n),this}send(e,t,n){return this._sendPacket(`message`,e,t,n),this}_sendPacket(e,t,n,r){if(typeof t==`function`&&(r=t,t=void 0),typeof n==`function`&&(r=n,n=null),this.readyState===`closing`||this.readyState===`closed`)return;n||={},n.compress=!1!==n.compress;let i={type:e,data:t,options:n};this.emitReserved(`packetCreate`,i),this.writeBuffer.push(i),r&&this.once(`flush`,r),this.flush()}close(){let e=()=>{this._onClose(`forced close`),this.transport.close()},t=()=>{this.off(`upgrade`,t),this.off(`upgradeError`,t),e()},n=()=>{this.once(`upgrade`,t),this.once(`upgradeError`,t)};return(this.readyState===`opening`||this.readyState===`open`)&&(this.readyState=`closing`,this.writeBuffer.length?this.once(`drain`,()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState===`opening`)return this.transports.shift(),this._open();this.emitReserved(`error`,t),this._onClose(`transport error`,t)}_onClose(e,t){if(this.readyState===`opening`||this.readyState===`open`||this.readyState===`closing`){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners(`close`),this.transport.close(),this.transport.removeAllListeners(),Nh&&(this._beforeunloadEventListener&&removeEventListener(`beforeunload`,this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=Ph.indexOf(this._offlineEventListener);e!==-1&&Ph.splice(e,1)}this.readyState=`closed`,this.id=null,this.emitReserved(`close`,e,t),this.writeBuffer=[],this._prevBufferLen=0}}};Fh.protocol=4;var Ih=class extends Fh{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState===`open`&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;Fh.priorWebsocketSuccess=!1;let r=()=>{n||(t.send([{type:`ping`,data:`probe`}]),t.once(`packet`,e=>{if(!n)if(e.type===`pong`&&e.data===`probe`){if(this.upgrading=!0,this.emitReserved(`upgrading`,t),!t)return;Fh.priorWebsocketSuccess=t.name===`websocket`,this.transport.pause(()=>{n||this.readyState!==`closed`&&(l(),this.setTransport(t),t.send([{type:`upgrade`}]),this.emitReserved(`upgrade`,t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error(`probe error`);e.transport=t.name,this.emitReserved(`upgradeError`,e)}}))};function i(){n||(n=!0,l(),t.close(),t=null)}let a=e=>{let n=Error(`probe error: `+e);n.transport=t.name,i(),this.emitReserved(`upgradeError`,n)};function o(){a(`transport closed`)}function s(){a(`socket closed`)}function c(e){t&&e.name!==t.name&&i()}let l=()=>{t.removeListener(`open`,r),t.removeListener(`error`,a),t.removeListener(`close`,o),this.off(`close`,s),this.off(`upgrading`,c)};t.once(`open`,r),t.once(`error`,a),t.once(`close`,o),this.once(`close`,s),this.once(`upgrading`,c),this._upgrades.indexOf(`webtransport`)!==-1&&e!==`webtransport`?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}},Lh=class extends Ih{constructor(e,t={}){let n=typeof e==`object`,r=n?{...e}:{...t};(!r.transports||r.transports&&typeof r.transports[0]==`string`)&&(r.transports=(r.transports||[`polling`,`websocket`,`webtransport`]).map(e=>Dh[e]).filter(e=>!!e)),super(n?r:e,r)}};Lh.protocol;function Rh(e,t=``,n){let r=e;n||=typeof location<`u`&&location,e??=n.protocol+`//`+n.host,typeof e==`string`&&(e.charAt(0)===`/`&&(e=e.charAt(1)===`/`?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=n===void 0?`https://`+e:n.protocol+`//`+e),r=Ah(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port=`80`:/^(http|ws)s$/.test(r.protocol)&&(r.port=`443`)),r.path=r.path||`/`;let i=r.host.indexOf(`:`)===-1?r.host:`[`+r.host+`]`;return r.id=r.protocol+`://`+i+`:`+r.port+t,r.href=r.protocol+`://`+i+(n&&n.port===r.port?``:`:`+r.port),r}var zh=typeof ArrayBuffer==`function`,Bh=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Vh=Object.prototype.toString,Hh=typeof Blob==`function`||typeof Blob<`u`&&Vh.call(Blob)===`[object BlobConstructor]`,Uh=typeof File==`function`||typeof File<`u`&&Vh.call(File)===`[object FileConstructor]`;function Wh(e){return zh&&(e instanceof ArrayBuffer||Bh(e))||Hh&&e instanceof Blob||Uh&&e instanceof File}function Gh(e,t){if(!e||typeof e!=`object`)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(Gh(e[t]))return!0;return!1}if(Wh(e))return!0;if(e.toJSON&&typeof e.toJSON==`function`&&arguments.length===1)return Gh(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&Gh(e[t]))return!0;return!1}function Kh(e){let t=[],n=e.data,r=e;return r.data=qh(n,t),r.attachments=t.length,{packet:r,buffers:t}}function qh(e,t,n){if(!e)return e;if(Wh(e)){let n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){let n=Array(e.length);for(let r=0;r<e.length;r++)n[r]=qh(e[r],t);return n}if(typeof e==`object`&&!(e instanceof Date)){if(e.toJSON&&typeof e.toJSON==`function`&&!n)return qh(e.toJSON(),t,!0);let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=qh(e[n],t));return r}return e}function Jh(e,t){return e.data=Yh(e.data,t),delete e.attachments,e}function Yh(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num==`number`&&e.num>=0&&e.num<t.length)return t[e.num];throw Error(`illegal attachments`)}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Yh(e[n],t);else if(typeof e==`object`)for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Yh(e[n],t));return e}var Xh=e({Decoder:()=>$h,Encoder:()=>Qh,PacketType:()=>J,isPacketValid:()=>og,protocol:()=>5}),Zh=[`connect`,`connect_error`,`disconnect`,`disconnecting`,`newListener`,`removeListener`],J;(function(e){e[e.CONNECT=0]=`CONNECT`,e[e.DISCONNECT=1]=`DISCONNECT`,e[e.EVENT=2]=`EVENT`,e[e.ACK=3]=`ACK`,e[e.CONNECT_ERROR=4]=`CONNECT_ERROR`,e[e.BINARY_EVENT=5]=`BINARY_EVENT`,e[e.BINARY_ACK=6]=`BINARY_ACK`})(J||={});var Qh=class{constructor(e){this.replacer=e}encode(e){return(e.type===J.EVENT||e.type===J.ACK)&&Gh(e)?this.encodeAsBinary({type:e.type===J.EVENT?J.BINARY_EVENT:J.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=``+e.type;return(e.type===J.BINARY_EVENT||e.type===J.BINARY_ACK)&&(t+=e.attachments+`-`),e.nsp&&e.nsp!==`/`&&(t+=e.nsp+`,`),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=Kh(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}},$h=class e extends Zm{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e==`function`?{reviver:e}:e)}add(e){let t;if(typeof e==`string`){if(this.reconstructor)throw Error(`got plaintext data when reconstructing a packet`);t=this.decodeString(e);let n=t.type===J.BINARY_EVENT;n||t.type===J.BINARY_ACK?(t.type=n?J.EVENT:J.ACK,this.reconstructor=new eg(t)):super.emitReserved(`decoded`,t)}else if(Wh(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved(`decoded`,t));else throw Error(`got binary data when not reconstructing a packet`);else throw Error(`Unknown type: `+e)}decodeString(t){let n=0,r={type:Number(t.charAt(0))};if(J[r.type]===void 0)throw Error(`unknown packet type `+r.type);if(r.type===J.BINARY_EVENT||r.type===J.BINARY_ACK){let e=n+1;for(;t.charAt(++n)!==`-`&&n!=t.length;);let i=t.substring(e,n);if(i!=Number(i)||t.charAt(n)!==`-`)throw Error(`Illegal attachments`);let a=Number(i);if(!ng(a)||a<1)throw Error(`Illegal attachments`);if(a>this.opts.maxAttachments)throw Error(`too many attachments`);r.attachments=a}if(t.charAt(n+1)===`/`){let e=n+1;for(;++n&&t.charAt(n)!==`,`&&n!==t.length;);r.nsp=t.substring(e,n)}else r.nsp=`/`;let i=t.charAt(n+1);if(i!==``&&Number(i)==i){let e=n+1;for(;++n;){let e=t.charAt(n);if(e==null||Number(e)!=e){--n;break}if(n===t.length)break}r.id=Number(t.substring(e,n+1))}if(t.charAt(++n)){let i=this.tryParse(t.substr(n));if(e.isPayloadValid(r.type,i))r.data=i;else throw Error(`invalid payload`)}return r}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case J.CONNECT:return ig(t);case J.DISCONNECT:return t===void 0;case J.CONNECT_ERROR:return typeof t==`string`||ig(t);case J.EVENT:case J.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&Zh.indexOf(t[0])===-1);case J.ACK:case J.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&=(this.reconstructor.finishedReconstruction(),null)}},eg=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=Jh(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function tg(e){return typeof e==`string`}var ng=Number.isInteger||function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e};function rg(e){return e===void 0||ng(e)}function ig(e){return Object.prototype.toString.call(e)===`[object Object]`}function ag(e,t){switch(e){case J.CONNECT:return t===void 0||ig(t);case J.DISCONNECT:return t===void 0;case J.EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&Zh.indexOf(t[0])===-1);case J.ACK:return Array.isArray(t);case J.CONNECT_ERROR:return typeof t==`string`||ig(t);default:return!1}}function og(e){return tg(e.nsp)&&rg(e.id)&&ag(e.type,e.data)}function sg(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var cg=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),lg=class extends Zm{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[sg(e,`open`,this.onopen.bind(this)),sg(e,`packet`,this.onpacket.bind(this)),sg(e,`error`,this.onerror.bind(this)),sg(e,`close`,this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState===`open`&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift(`message`),this.emit.apply(this,e),this}emit(e,...t){if(cg.hasOwnProperty(e))throw Error(`"`+e.toString()+`" is a reserved event name`);if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let n={type:J.EVENT,data:t};if(n.options={},n.options.compress=this.flags.compress!==!1,typeof t[t.length-1]==`function`){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}let r=this.io.engine?.transport?.writable,i=this.connected&&!this.io.engine?._hasPingExpired();return this.flags.volatile&&!r||(i?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){let n=this.flags.timeout??this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error(`operation has timed out`))},n),i=(...e)=>{this.io.clearTimeoutFn(r),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise((n,r)=>{let i=(e,t)=>e?r(e):n(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]==`function`&&(t=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>(this._queue[0],e===null?(this._queue.shift(),t&&t(null,...r)):n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth==`function`?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:J.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved(`connect_error`,e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved(`disconnect`,e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error(`socket has been disconnected`))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case J.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved(`connect_error`,Error(`It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)`));break;case J.EVENT:case J.BINARY_EVENT:this.onevent(e);break;case J.ACK:case J.BINARY_ACK:this.onack(e);break;case J.DISCONNECT:this.ondisconnect();break;case J.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved(`connect_error`,t)}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]==`string`&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,n=!1;return function(...r){n||(n=!0,t.packet({type:J.ACK,id:e,data:r}))}}onack(e){let t=this.acks[e.id];typeof t==`function`&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved(`connect`)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose(`io server disconnect`)}destroy(){this.subs&&=(this.subs.forEach(e=>e()),void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:J.DISCONNECT}),this.destroy(),this.connected&&this.onclose(`io client disconnect`),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let n of t)n.apply(this,e.data)}}};function ug(e){e||={},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}ug.prototype.duration=function(){var e=this.ms*this.factor**+this.attempts++;if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0},ug.prototype.reset=function(){this.attempts=0},ug.prototype.setMin=function(e){this.ms=e},ug.prototype.setMax=function(e){this.max=e},ug.prototype.setJitter=function(e){this.jitter=e};var dg=class extends Zm{constructor(e,t){super(),this.nsps={},this.subs=[],e&&typeof e==`object`&&(t=e,e=void 0),t||={},t.path=t.path||`/socket.io`,this.opts=t,ah(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor??.5),this.backoff=new ug({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState=`closed`,this.uri=e;let n=t.parser||Xh;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)==null||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)==null||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)==null||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf(`open`))return this;this.engine=new Lh(this.uri,this.opts);let t=this.engine,n=this;this._readyState=`opening`,this.skipReconnect=!1;let r=sg(t,`open`,function(){n.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState=`closed`,this.emitReserved(`error`,t),e?e(t):this.maybeReconnectOnOpen()},a=sg(t,`error`,i);if(!1!==this._timeout){let e=this._timeout,n=this.setTimeoutFn(()=>{r(),i(Error(`timeout`)),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState=`open`,this.emitReserved(`open`);let e=this.engine;this.subs.push(sg(e,`ping`,this.onping.bind(this)),sg(e,`data`,this.ondata.bind(this)),sg(e,`error`,this.onerror.bind(this)),sg(e,`close`,this.onclose.bind(this)),sg(this.decoder,`decoded`,this.ondecoded.bind(this)))}onping(){this.emitReserved(`ping`)}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose(`parse error`,e)}}ondecoded(e){$m(()=>{this.emitReserved(`packet`,e)},this.setTimeoutFn)}onerror(e){this.emitReserved(`error`,e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new lg(this,e,t),this.nsps[e]=n),n}_destroy(e){let t=Object.keys(this.nsps);for(let e of t)if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose(`forced close`)}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),(n=this.engine)==null||n.close(),this.backoff.reset(),this._readyState=`closed`,this.emitReserved(`close`,e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved(`reconnect_failed`),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved(`reconnect_attempt`,e.backoff.attempts),!e.skipReconnect&&e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved(`reconnect_error`,t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved(`reconnect`,e)}},fg={};function pg(e,t){typeof e==`object`&&(t=e,e=void 0),t||={};let n=Rh(e,t.path||`/socket.io`),r=n.source,i=n.id,a=n.path,o=fg[i]&&a in fg[i].nsps,s=t.forceNew||t[`force new connection`]||!1===t.multiplex||o,c;return s?c=new dg(r,t):(fg[i]||(fg[i]=new dg(r,t)),c=fg[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(pg,{Manager:dg,Socket:lg,io:pg,connect:pg});var mg=`modulepreload`,hg=function(e,t){return new URL(e,t).href},gg={},_g=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=hg(t,n),t=s(t),t in gg)return;gg[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:mg,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},vg=typeof window<`u`,yg=(e,t=!1)=>t?Symbol.for(e):Symbol(e),bg=(e,t,n)=>xg({l:e,k:t,s:n}),xg=e=>JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),Sg=e=>typeof e==`number`&&isFinite(e),Cg=e=>zg(e)===`[object Date]`,wg=e=>zg(e)===`[object RegExp]`,Tg=e=>Bg(e)&&Object.keys(e).length===0,Eg=Object.assign,Dg=Object.create,Og=(e=null)=>Dg(e),kg,Ag=()=>kg||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:Og(),jg=Object.prototype.hasOwnProperty;function Mg(e,t){return jg.call(e,t)}var Ng=Array.isArray,Pg=e=>typeof e==`function`,Y=e=>typeof e==`string`,Fg=e=>typeof e==`boolean`,Ig=e=>typeof e==`object`&&!!e,Lg=e=>Ig(e)&&Pg(e.then)&&Pg(e.catch),Rg=Object.prototype.toString,zg=e=>Rg.call(e),Bg=e=>zg(e)===`[object Object]`,Vg=e=>e==null?``:Ng(e)||Bg(e)&&e.toString===Rg?JSON.stringify(e,null,2):String(e);function Hg(e,t=``){return e.reduce((e,n,r)=>r===0?e+n:e+t+n,``)}function Ug(e,t){typeof console<`u`&&(console.warn(`[intlify] `+e),t&&console.warn(t.stack))}function Wg(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/\//g,`/`).replace(/=/g,`=`)}function Gg(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}var Kg=/^javascript:/i,qg=/^(?:href|src|action|formaction)$/i,Jg=/&#(?:x([0-9a-f]+)|(\d+));?/gi,Yg=/&(?:Tab|NewLine);/g,Xg=/:?/gi,Zg=/[\u0000-\u0020\u007f-\u009f]/g,Qg=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,$g=/(^|[\s"'<>/])on(\w+\s*=)/gi,e_=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function t_(e,t,n){let r=t||n;if(!r)return e;let i=Number.parseInt(r,t?16:10);return i<=127?String.fromCharCode(i):e}function n_(e){let t=e.replace(Jg,t_).replace(Yg,``).replace(Xg,`:`).replace(Zg,``);return Kg.test(t)}function r_(e){let t=/url\s*\(/gi,n=``,r=0,i;for(;(i=t.exec(e))!==null;){let a=i.index,o=t.lastIndex-1,s=o+1,c=1,l=null;for(;s<e.length;s++){let t=e[s];if(l){t===l&&(l=null);continue}if(t===`"`||t===`'`)l=t;else if(t===`(`)c++;else if(t===`)`&&(c--,c===0))break}if(c!==0)break;let u=e.slice(o+1,s).trim(),d=u.startsWith(`"`)&&u.endsWith(`"`)||u.startsWith(`'`)&&u.endsWith(`'`)?u.slice(1,-1).trim():u;n+=e.slice(r,a),n+=n_(d)?`url(about:blank)`:e.slice(a,s+1),r=s+1}return n+e.slice(r)}function i_(e,t){return qg.test(e)&&n_(t)?`about:blank`:Gg(e.toLowerCase()===`style`?r_(t):t)}function a_(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${i_(t,n)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${i_(t,n)}'`),Qg.test(e)&&(e=e.replace($g,`$1on$2`)),e=e.replace(e_,(e,t,n,r)=>n_(r)?`${t}${n}about:blank`:e),e}var o_=e=>!Ig(e)||Ng(e);function s_(e,t){if(o_(e)||o_(t))throw Error(`Invalid value`);let n=[{src:e,des:t}];for(;n.length;){let{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{r!==`__proto__`&&(Ig(e[r])&&!Ig(t[r])&&(t[r]=Array.isArray(e[r])?[]:Og()),o_(t[r])||o_(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))})}}function c_(e,t,n){return{line:e,column:t,offset:n}}function l_(e,t,n){let r={start:e,end:t};return n!=null&&(r.source=n),r}var X={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};X.EXPECTED_TOKEN,X.INVALID_TOKEN_IN_PLACEHOLDER,X.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,X.UNKNOWN_ESCAPE_SEQUENCE,X.INVALID_UNICODE_ESCAPE_SEQUENCE,X.UNBALANCED_CLOSING_BRACE,X.UNTERMINATED_CLOSING_BRACE,X.EMPTY_PLACEHOLDER,X.NOT_ALLOW_NEST_PLACEHOLDER,X.INVALID_LINKED_FORMAT,X.MUST_HAVE_MESSAGES_IN_PLURAL,X.UNEXPECTED_EMPTY_LINKED_MODIFIER,X.UNEXPECTED_EMPTY_LINKED_KEY,X.UNEXPECTED_LEXICAL_ANALYSIS,X.UNHANDLED_CODEGEN_NODE_TYPE,X.UNHANDLED_MINIFIER_NODE_TYPE;function u_(e,t,n={}){let{domain:r,messages:i,args:a}=n,o=SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=r,o}function d_(e){throw e}var f_=` `,p_=`\r`,m_=`
|
|
12
12
|
`,h_=`\u2028`,g_=`\u2029`;function __(e){let t=e,n=0,r=1,i=1,a=0,o=e=>t[e]===p_&&t[e+1]===m_,s=e=>t[e]===m_,c=e=>t[e]===g_,l=e=>t[e]===h_,u=e=>o(e)||s(e)||c(e)||l(e),d=()=>n,f=()=>r,p=()=>i,m=()=>a,h=e=>o(e)||c(e)||l(e)?m_:t[e],g=()=>h(n),v=()=>h(n+a);function y(){return a=0,u(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function b(){return o(n+a)&&a++,a++,t[n+a]}function x(){n=0,r=1,i=1,a=0}function S(e=0){a=e}function C(){let e=n+a;for(;e!==n;)y();a=0}return{index:d,line:f,column:p,peekOffset:m,charAt:h,currentChar:g,currentPeek:v,next:y,peek:b,reset:x,resetPeek:S,skipToPeek:C}}var v_=void 0,y_=`'`,b_=`tokenizer`;function x_(e,t={}){let n=t.location!==!1,r=__(e),i=()=>r.index(),a=()=>c_(r.line(),r.column(),r.index()),o=a(),s=i(),c={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:``},l=()=>c,{onError:u}=t;function d(e,t,r,...i){let a=l();if(t.column+=r,t.offset+=r,u){let r=u_(e,n?l_(a.startLoc,t):null,{domain:b_,args:i});u(r)}}function f(e,t,r){e.endLoc=a(),e.currentType=t;let i={type:t};return n&&(i.loc=l_(e.startLoc,e.endLoc)),r!=null&&(i.value=r),i}let p=e=>f(e,13);function m(e,t){return e.currentChar()===t?(e.next(),t):(d(X.EXPECTED_TOKEN,a(),0,t),``)}function h(e){let t=``;for(;e.currentPeek()===f_||e.currentPeek()===m_;)t+=e.currentPeek(),e.peek();return t}function g(e){let t=h(e);return e.skipToPeek(),t}function v(e){if(e===v_)return!1;let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t===95}function y(e){if(e===v_)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57}function b(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=v(e.currentPeek());return e.resetPeek(),r}function x(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=y(e.currentPeek()===`-`?e.peek():e.currentPeek());return e.resetPeek(),r}function S(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=e.currentPeek()===y_;return e.resetPeek(),r}function C(e,t){let{currentType:n}=t;if(n!==7)return!1;h(e);let r=e.currentPeek()===`.`;return e.resetPeek(),r}function w(e,t){let{currentType:n}=t;if(n!==8)return!1;h(e);let r=v(e.currentPeek());return e.resetPeek(),r}function T(e,t){let{currentType:n}=t;if(n!==7&&n!==11)return!1;h(e);let r=e.currentPeek()===`:`;return e.resetPeek(),r}function E(e,t){let{currentType:n}=t;if(n!==9)return!1;let r=()=>{let t=e.currentPeek();return t===`{`?v(e.peek()):t===`@`||t===`|`||t===`:`||t===`.`||t===f_||!t?!1:t===m_?(e.peek(),r()):O(e,!1)},i=r();return e.resetPeek(),i}function D(e){h(e);let t=e.currentPeek()===`|`;return e.resetPeek(),t}function O(e,t=!0){let n=(t=!1,r=``)=>{let i=e.currentPeek();return i===`{`||i===`@`||!i?t:i===`|`?r!==f_&&r!==m_:i===f_?(e.peek(),n(!0,f_)):i!==m_||(e.peek(),n(!0,m_))},r=n();return t&&e.resetPeek(),r}function k(e,t){let n=e.currentChar();if(n!==v_)return t(n)?(e.next(),n):null}function ee(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36}function A(e){return k(e,ee)}function j(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36||t===45}function M(e){return k(e,j)}function te(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function ne(e){return k(e,te)}function N(e){let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function P(e){return k(e,N)}function F(e){let t=``,n=``;for(;t=ne(e);)n+=t;return n}function I(e){let t=``;for(;;){let n=e.currentChar();if(n===`\\`){let r=e.peek();r===`{`||r===`}`||r===`@`||r===`|`||r===`\\`?(t+=n+r,e.next(),e.next()):(e.resetPeek(),t+=n,e.next())}else if(n===`{`||n===`}`||n===`@`||n===`|`||!n)break;else if(n===f_||n===m_)if(O(e))t+=n,e.next();else if(D(e))break;else t+=n,e.next();else t+=n,e.next()}return t}function re(e){g(e);let t=``,n=``;for(;t=M(e);)n+=t;let r=e.currentChar();if(r&&r!==`}`&&r!==v_&&r!==f_&&r!==m_&&r!==` `){let t=le(e);return d(X.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n+t),n+t}return e.currentChar()===v_&&d(X.UNTERMINATED_CLOSING_BRACE,a(),0),n}function L(e){g(e);let t=``;return e.currentChar()===`-`?(e.next(),t+=`-${F(e)}`):t+=F(e),e.currentChar()===v_&&d(X.UNTERMINATED_CLOSING_BRACE,a(),0),t}function ie(e){return e!==y_&&e!==m_}function ae(e){g(e),m(e,`'`);let t=``,n=``;for(;t=k(e,ie);)n+=t===`\\`?oe(e):t;let r=e.currentChar();return r===m_||r===v_?(d(X.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),r===m_&&(e.next(),m(e,`'`)),n):(m(e,`'`),n)}function oe(e){let t=e.currentChar();switch(t){case`\\`:case`'`:return e.next(),`\\${t}`;case`u`:return se(e,t,4);case`U`:return se(e,t,6);default:return d(X.UNKNOWN_ESCAPE_SEQUENCE,a(),0,t),``}}function se(e,t,n){m(e,t);let r=``;for(let i=0;i<n;i++){let n=P(e);if(!n){d(X.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function ce(e){return e!==`{`&&e!==`}`&&e!==f_&&e!==m_}function le(e){g(e);let t=``,n=``;for(;t=k(e,ce);)n+=t;return n}function ue(e){let t=``,n=``;for(;t=A(e);)n+=t;return n}function de(e){let t=n=>{let r=e.currentChar();return r===`{`||r===`@`||r===`|`||r===`(`||r===`)`||!r||r===f_?n:(n+=r,e.next(),t(n))};return t(``)}function fe(e){g(e);let t=m(e,`|`);return g(e),t}function pe(e,t){let n=null;switch(e.currentChar()){case`{`:return t.braceNest>=1&&d(X.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),e.next(),n=f(t,2,`{`),g(e),t.braceNest++,n;case`}`:return t.braceNest>0&&t.currentType===2&&d(X.EMPTY_PLACEHOLDER,a(),0),e.next(),n=f(t,3,`}`),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&t.braceNest===0&&(t.inLinked=!1),n;case`@`:return t.braceNest>0&&d(X.UNTERMINATED_CLOSING_BRACE,a(),0),n=me(e,t)||p(t),t.braceNest=0,n;default:{let r=!0,i=!0,o=!0;if(D(e))return t.braceNest>0&&d(X.UNTERMINATED_CLOSING_BRACE,a(),0),n=f(t,1,fe(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(t.currentType===4||t.currentType===5||t.currentType===6))return d(X.UNTERMINATED_CLOSING_BRACE,a(),0),t.braceNest=0,he(e,t);if(r=b(e,t))return n=f(t,4,re(e)),g(e),n;if(i=x(e,t))return n=f(t,5,L(e)),g(e),n;if(o=S(e,t))return n=f(t,6,ae(e)),g(e),n;if(!r&&!i&&!o)return n=f(t,12,le(e)),d(X.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n.value),g(e),n;break}}return n}function me(e,t){let{currentType:n}=t,r=null,i=e.currentChar();switch((n===7||n===8||n===11||n===9)&&(i===m_||i===f_)&&d(X.INVALID_LINKED_FORMAT,a(),0),i){case`@`:return e.next(),r=f(t,7,`@`),t.inLinked=!0,r;case`.`:return g(e),e.next(),f(t,8,`.`);case`:`:return g(e),e.next(),f(t,9,`:`);default:return D(e)?(r=f(t,1,fe(e)),t.braceNest=0,t.inLinked=!1,r):C(e,t)||T(e,t)?(g(e),me(e,t)):w(e,t)?(g(e),f(t,11,ue(e))):E(e,t)?(g(e),i===`{`?pe(e,t)||r:f(t,10,de(e))):(n===7&&d(X.INVALID_LINKED_FORMAT,a(),0),t.braceNest=0,t.inLinked=!1,he(e,t))}}function he(e,t){let n={type:13};if(t.braceNest>0)return pe(e,t)||p(t);if(t.inLinked)return me(e,t)||p(t);switch(e.currentChar()){case`{`:return pe(e,t)||p(t);case`}`:return d(X.UNBALANCED_CLOSING_BRACE,a(),0),e.next(),f(t,3,`}`);case`@`:return me(e,t)||p(t);default:if(D(e))return n=f(t,1,fe(e)),t.braceNest=0,t.inLinked=!1,n;if(O(e))return f(t,0,I(e))}return n}function ge(){let{currentType:e,offset:t,startLoc:n,endLoc:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=i(),c.startLoc=a(),r.currentChar()===v_?f(c,13):he(r,c)}return{nextToken:ge,currentOffset:i,currentPosition:a,context:l}}var S_=`parser`,C_=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,w_=/\\([\\@{}|])/g;function T_(e,t){return t}function E_(e,t,n){switch(e){case`\\\\`:return`\\`;case`\\'`:return`'`;default:{let e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):`�`}}}function D_(e={}){let t=e.location!==!1,{onError:n}=e;function r(e,r,i,a,...o){let s=e.currentPosition();if(s.offset+=a,s.column+=a,n){let e=u_(r,t?l_(i,s):null,{domain:S_,args:o});n(e)}}function i(e,n,r){let i={type:e};return t&&(i.start=n,i.end=n,i.loc={start:r,end:r}),i}function a(e,n,r,i){t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){let n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t.replace(w_,T_),a(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(5,n,r);return o.index=parseInt(t,10),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function c(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(4,n,r);return o.key=t,e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function l(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(9,n,r);return o.value=t.replace(C_,E_),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function u(e){let t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,c=i(8,o,s);return t.type===11?(t.value??r(e,X.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,O_(t)),c.value=t.value||``,a(c,e.currentOffset(),e.currentPosition()),{node:c}):(r(e,X.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),c.value=``,a(c,o,s),{nextConsumeToken:t,node:c})}function d(e,t){let n=e.context(),r=i(7,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function f(e){let t=e.context(),n=i(6,t.offset,t.startLoc),o=e.nextToken();if(o.type===8){let t=u(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(o.type!==9&&r(e,X.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,O_(o)),o=e.nextToken(),o.type===2&&(o=e.nextToken()),o.type){case 10:o.value??r(e,X.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,O_(o)),n.key=d(e,o.value||``);break;case 4:o.value??r(e,X.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,O_(o)),n.key=c(e,o.value||``);break;case 5:o.value??r(e,X.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,O_(o)),n.key=s(e,o.value||``);break;case 6:o.value??r(e,X.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,O_(o)),n.key=l(e,o.value||``);break;default:{r(e,X.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);let s=e.context(),c=i(7,s.offset,s.startLoc);return c.value=``,a(c,s.offset,s.startLoc),n.key=c,a(n,s.offset,s.startLoc),{nextConsumeToken:o,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function p(e){let t=e.context(),n=i(2,t.currentType===1?e.currentOffset():t.offset,t.currentType===1?t.endLoc:t.startLoc);n.items=[];let u=null;do{let i=u||e.nextToken();switch(u=null,i.type){case 0:i.value??r(e,X.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,O_(i)),n.items.push(o(e,i.value||``));break;case 5:i.value??r(e,X.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,O_(i)),n.items.push(s(e,i.value||``));break;case 4:i.value??r(e,X.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,O_(i)),n.items.push(c(e,i.value||``));break;case 6:i.value??r(e,X.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,O_(i)),n.items.push(l(e,i.value||``));break;case 7:{let t=f(e);n.items.push(t.node),u=t.nextConsumeToken||null;break}}}while(t.currentType!==13&&t.currentType!==1);return a(n,t.currentType===1?t.lastOffset:e.currentOffset(),t.currentType===1?t.lastEndLoc:e.currentPosition()),n}function m(e,t,n,o){let s=e.context(),c=o.items.length===0,l=i(1,t,n);l.cases=[],l.cases.push(o);do{let t=p(e);c||=t.items.length===0,l.cases.push(t)}while(s.currentType!==13);return c&&r(e,X.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),a(l,e.currentOffset(),e.currentPosition()),l}function h(e){let t=e.context(),{offset:n,startLoc:r}=t,i=p(e);return t.currentType===13?i:m(e,n,r,i)}function g(n){let o=x_(n,Eg({},e)),s=o.context(),c=i(0,s.offset,s.startLoc);return t&&c.loc&&(c.loc.source=n),c.body=h(o),e.onCacheKey&&(c.cacheKey=e.onCacheKey(n)),s.currentType!==13&&r(o,X.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,0,n[s.offset]||``),a(c,o.currentOffset(),o.currentPosition()),c}return{parse:g}}function O_(e){if(e.type===13)return`EOF`;let t=(e.value||``).replace(/\r?\n/gu,`\\n`);return t.length>10?t.slice(0,9)+`…`:t}function k_(e,t={}){let n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}function A_(e,t){for(let n=0;n<e.length;n++)j_(e[n],t)}function j_(e,t){switch(e.type){case 1:A_(e.cases,t),t.helper(`plural`);break;case 2:A_(e.items,t);break;case 6:j_(e.key,t),t.helper(`linked`),t.helper(`type`);break;case 5:t.helper(`interpolate`),t.helper(`list`);break;case 4:t.helper(`interpolate`),t.helper(`named`)}}function M_(e,t={}){let n=k_(e);n.helper(`normalize`),e.body&&j_(e.body,n);let r=n.context();e.helpers=Array.from(r.helpers)}function N_(e){let t=e.body;return t.type===2?P_(t):t.cases.forEach(e=>P_(e)),e}function P_(e){if(e.items.length===1){let t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{let t=[];for(let n=0;n<e.items.length;n++){let r=e.items[n];if(r.type!==3&&r.type!==9||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Hg(t);for(let t=0;t<e.items.length;t++){let n=e.items[t];(n.type===3||n.type===9)&&delete n.value}}}}function F_(e){switch(e.t=e.type,e.type){case 0:{let t=e;F_(t.body),t.b=t.body,delete t.body;break}case 1:{let t=e,n=t.cases;for(let e=0;e<n.length;e++)F_(n[e]);t.c=n,delete t.cases;break}case 2:{let t=e,n=t.items;for(let e=0;e<n.length;e++)F_(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{let t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{let t=e;F_(t.key),t.k=t.key,delete t.key,t.modifier&&(F_(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{let t=e;t.i=t.index,delete t.index;break}case 4:{let t=e;t.k=t.key,delete t.key;break}}delete e.type}function I_(e,t){let{filename:n,breakLineCode:r,needIndent:i}=t,a=t.location!==!1,o={filename:n,code:``,column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};a&&e.loc&&(o.source=e.loc.source);let s=()=>o;function c(e,t){o.code+=e}function l(e,t=!0){let n=t?r:``;c(i?n+` `.repeat(e):n)}function u(e=!0){let t=++o.indentLevel;e&&l(t)}function d(e=!0){let t=--o.indentLevel;e&&l(t)}function f(){l(o.indentLevel)}return{context:s,push:c,indent:u,deindent:d,newline:f,helper:e=>`_${e}`,needIndent:()=>o.needIndent}}function L_(e,t){let{helper:n}=e;e.push(`${n(`linked`)}(`),V_(e,t.key),t.modifier?(e.push(`, `),V_(e,t.modifier),e.push(`, _type`)):e.push(`, undefined, _type`),e.push(`)`)}function R_(e,t){let{helper:n,needIndent:r}=e;e.push(`${n(`normalize`)}([`),e.indent(r());let i=t.items.length;for(let n=0;n<i&&(V_(e,t.items[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}function z_(e,t){let{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n(`plural`)}([`),e.indent(r());let i=t.cases.length;for(let n=0;n<i&&(V_(e,t.cases[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}}function B_(e,t){t.body?V_(e,t.body):e.push(`null`)}function V_(e,t){let{helper:n}=e;switch(t.type){case 0:B_(e,t);break;case 1:z_(e,t);break;case 2:R_(e,t);break;case 6:L_(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n(`interpolate`)}(${n(`list`)}(${t.index}))`,t);break;case 4:e.push(`${n(`interpolate`)}(${n(`named`)}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t)}}var H_=(e,t={})=>{let n=Y(t.mode)?t.mode:`normal`,r=Y(t.filename)?t.filename:`message.intl`;t.sourceMap;let i=t.breakLineCode==null?n===`arrow`?`;`:`
|
|
13
|
-
`:t.breakLineCode,a=t.needIndent?t.needIndent:n!==`arrow`,o=e.helpers||[],s=I_(e,{filename:r,breakLineCode:i,needIndent:a});s.push(n===`normal`?`function __msg__ (ctx) {`:`(ctx) => {`),s.indent(a),o.length>0&&(s.push(`const { ${Hg(o.map(e=>`${e}: _${e}`),`, `)} } = ctx`),s.newline()),s.push(`return `),V_(s,e),s.deindent(a),s.push(`}`),delete e.helpers;let{code:c,map:l}=s.context();return{ast:e,code:c,map:l?l.toJSON():void 0}};function U_(e,t={}){let n=Eg({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null||n.optimize,o=D_(n).parse(e);return r?(a&&N_(o),i&&F_(o),{ast:o,code:``}):(M_(o,n),H_(o,n))}function W_(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(Ag().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!=`boolean`&&(Ag().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function G_(e){return Ig(e)&&tv(e)===0&&(Mg(e,`b`)||Mg(e,`body`))}var K_=[`b`,`body`];function q_(e){return cv(e,K_)}var J_=[`c`,`cases`];function Y_(e){return cv(e,J_,[])}var X_=[`s`,`static`];function Z_(e){return cv(e,X_)}var Q_=[`i`,`items`];function $_(e){return cv(e,Q_,[])}var ev=[`t`,`type`];function tv(e){return cv(e,ev)}var nv=[`v`,`value`];function rv(e,t){let n=cv(e,nv);if(n!=null)return n;throw uv(t)}var iv=[`m`,`modifier`];function av(e){return cv(e,iv)}var ov=[`k`,`key`];function sv(e){let t=cv(e,ov);if(t)return t;throw uv(6)}function cv(e,t,n){for(let n=0;n<t.length;n++){let r=t[n];if(Mg(e,r)&&e[r]!=null)return e[r]}return n}var lv=[...K_,...J_,...X_,...Q_,...ov,...iv,...nv,...ev];function uv(e){return Error(`unhandled node type: ${e}`)}function dv(e){return t=>fv(t,e)}function fv(e,t){let n=q_(t);if(n==null)throw uv(0);if(tv(n)===1){let t=Y_(n);return e.plural(t.reduce((t,n)=>[...t,pv(e,n)],[]))}return pv(e,n)}function pv(e,t){let n=Z_(t);if(n!=null)return e.type===`text`?n:e.normalize([n]);{let n=$_(t).reduce((t,n)=>[...t,mv(e,n)],[]);return e.normalize(n)}}function mv(e,t){let n=tv(t);switch(n){case 3:return rv(t,n);case 9:return rv(t,n);case 4:{let r=t;if(Mg(r,`k`)&&r.k)return e.interpolate(e.named(r.k));if(Mg(r,`key`)&&r.key)return e.interpolate(e.named(r.key));throw uv(n)}case 5:{let r=t;if(Mg(r,`i`)&&Sg(r.i))return e.interpolate(e.list(r.i));if(Mg(r,`index`)&&Sg(r.index))return e.interpolate(e.list(r.index));throw uv(n)}case 6:{let n=t,r=av(n),i=sv(n);return e.linked(mv(e,i),r?mv(e,r):void 0,e.type)}case 7:return rv(t,n);case 8:return rv(t,n);default:throw Error(`unhandled node on format message part: ${n}`)}}var hv=e=>e,gv=Og();function _v(e,t={}){let n=!1,r=t.onError||d_;return t.onError=e=>{n=!0,r(e)},{...U_(e,t),detectError:n}}function vv(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Y(e)){Fg(t.warnHtmlMessage)&&t.warnHtmlMessage;let n=(t.onCacheKey||hv)(e),r=gv[n];if(r)return r;let{ast:i,detectError:a}=_v(e,{...t,location:!1,jit:!0}),o=dv(i);return a?o:gv[n]=o}{let t=e.cacheKey;return t?gv[t]||(gv[t]=dv(e)):dv(e)}}var yv=null;function bv(e){yv=e}function xv(e,t,n){yv&&yv.emit(`i18n:init`,{timestamp:Date.now(),i18n:e,version:t,meta:n})}var Sv=Cv(`function:translate`);function Cv(e){return t=>yv&&yv.emit(e,t)}var wv={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function Tv(e){return u_(e,null,void 0)}wv.INVALID_ARGUMENT,wv.INVALID_DATE_ARGUMENT,wv.INVALID_ISO_DATE_ARGUMENT,wv.NOT_SUPPORT_NON_STRING_MESSAGE,wv.NOT_SUPPORT_LOCALE_PROMISE_VALUE,wv.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,wv.NOT_SUPPORT_LOCALE_TYPE;function Ev(e,t){return t.locale==null?Ov(e.locale):Ov(t.locale)}var Dv;function Ov(e){if(Y(e))return e;if(Pg(e)){if(e.resolvedOnce&&Dv!=null)return Dv;if(e.constructor.name===`Function`){let t=e();if(Lg(t))throw Tv(wv.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Dv=t}throw Tv(wv.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Tv(wv.NOT_SUPPORT_LOCALE_TYPE)}function kv(e,t,n){return[...new Set([n,...Ng(t)?t:Ig(t)?Object.keys(t):Y(t)?[t]:[n]])]}function Av(e,t,n){let r=Y(n)?n:Kv,i=e;i.__localeChainCache||=new Map;let a=i.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;Ng(e);)e=jv(a,e,t);let o=Ng(t)||!Bg(t)?t:t.default?t.default:null;e=Y(o)?[o]:o,Ng(e)&&jv(a,e,!1),i.__localeChainCache.set(r,a)}return a}function jv(e,t,n){let r=!0;for(let i=0;i<t.length&&Fg(r);i++){let a=t[i];Y(a)&&(r=Mv(e,t[i],n))}return r}function Mv(e,t,n){let r,i=t.split(`-`);do r=Nv(e,i.join(`-`),n),i.splice(-1,1);while(i.length&&r===!0);return r}function Nv(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!==`!`;let i=t.replace(/!/g,``);e.push(i),(Ng(n)||Bg(n))&&n[i]&&(r=n[i])}return r}var Pv=[];Pv[0]={w:[0],i:[3,0],"[":[4],o:[7]},Pv[1]={w:[1],".":[2],"[":[4],o:[7]},Pv[2]={w:[2],i:[3,0],0:[3,0]},Pv[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Pv[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Pv[5]={"'":[4,0],o:8,l:[5,0]},Pv[6]={'"':[4,0],o:8,l:[6,0]};var Fv=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Iv(e){return Fv.test(e)}function Lv(e){let t=e.charCodeAt(0);return t===e.charCodeAt(e.length-1)&&(t===34||t===39)?e.slice(1,-1):e}function Rv(e){if(e==null)return`o`;switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return`i`;case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return`w`}return`i`}function zv(e){let t=e.trim();return e.charAt(0)===`0`&&isNaN(parseInt(e))?!1:Iv(t)?Lv(t):`*`+t}function Bv(e){let t=[],n=-1,r=0,i=0,a,o,s,c,l,u,d,f=[];f[0]=()=>{o===void 0?o=s:o+=s},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,o===void 0||(o=zv(o),o===!1))return!1;f[1]()}};function p(){let t=e[n+1];if(r===5&&t===`'`||r===6&&t===`"`)return n++,s=`\\`+t,f[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a===`\\`&&p())){if(c=Rv(a),d=Pv[r],l=d[c]||d.l||8,l===8||(r=l[0],l[1]!==void 0&&(u=f[l[1]],u&&(s=a,u()===!1))))return;if(r===7)return t}}var Vv=new Map;function Hv(e,t){return Ig(e)?e[t]:null}function Uv(e,t){if(!Ig(e))return null;let n=Vv.get(t);if(n||(n=Bv(t),n&&Vv.set(t,n)),!n)return null;let r=n.length,i=e,a=0;for(;a<r;){let e=n[a];if(lv.includes(e)&&G_(i)||!Ig(i)||!Mg(i,e))return null;let t=i[e];if(t===void 0||Pg(i))return null;i=t,a++}return i}var Wv={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9};Wv.NOT_FOUND_KEY,Wv.FALLBACK_TO_TRANSLATE,Wv.CANNOT_FORMAT_NUMBER,Wv.FALLBACK_TO_NUMBER_FORMAT,Wv.CANNOT_FORMAT_DATE,Wv.FALLBACK_TO_DATE_FORMAT,Wv.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER,Wv.INVALID_NUMBER_ARGUMENT,Wv.INVALID_DATE_ARGUMENT;var Gv=`11.4.8`,Kv=`en-US`,qv=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Jv(){return{upper:(e,t)=>t===`text`&&Y(e)?e.toUpperCase():t===`vnode`&&Ig(e)&&`__v_isVNode`in e?e.children.toUpperCase():e,lower:(e,t)=>t===`text`&&Y(e)?e.toLowerCase():t===`vnode`&&Ig(e)&&`__v_isVNode`in e?e.children.toLowerCase():e,capitalize:(e,t)=>t===`text`&&Y(e)?qv(e):t===`vnode`&&Ig(e)&&`__v_isVNode`in e?qv(e.children):e}}var Yv;function Xv(e){Yv=e}var Zv;function Qv(e){Zv=e}var $v;function ey(e){$v=e}var ty=null,ny=e=>{ty=e},ry=()=>ty,iy=null,ay=e=>{iy=e},oy=()=>iy,sy=0;function cy(e={}){let t=Pg(e.onWarn)?e.onWarn:Ug,n=Y(e.version)?e.version:Gv,r=Y(e.locale)||Pg(e.locale)?e.locale:Kv,i=Pg(r)?Kv:r,a=Ng(e.fallbackLocale)||Bg(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=Bg(e.messages)?e.messages:ly(i),s=Bg(e.datetimeFormats)?e.datetimeFormats:ly(i),c=Bg(e.numberFormats)?e.numberFormats:ly(i),l=Eg(Og(),e.modifiers,Jv()),u=e.pluralRules||Og(),d=Pg(e.missing)?e.missing:null,f=Fg(e.missingWarn)||wg(e.missingWarn)?e.missingWarn:!0,p=Fg(e.fallbackWarn)||wg(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,h=!!e.unresolving,g=Pg(e.postTranslation)?e.postTranslation:null,v=Bg(e.processor)?e.processor:null,y=!Fg(e.warnHtmlMessage)||e.warnHtmlMessage,b=!!e.escapeParameter,x=Pg(e.messageCompiler)?e.messageCompiler:Yv,S=Pg(e.messageResolver)?e.messageResolver:Zv||Hv,C=Pg(e.localeFallbacker)?e.localeFallbacker:$v||kv,w=Ig(e.fallbackContext)?e.fallbackContext:void 0,T=e,E=Ig(T.__datetimeFormatters)?T.__datetimeFormatters:new Map,D=Ig(T.__numberFormatters)?T.__numberFormatters:new Map,O=Ig(T.__meta)?T.__meta:{};sy++;let k={version:n,cid:sy,locale:r,fallbackLocale:a,messages:o,modifiers:l,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:m,unresolving:h,postTranslation:g,processor:v,warnHtmlMessage:y,escapeParameter:b,messageCompiler:x,messageResolver:S,localeFallbacker:C,fallbackContext:w,onWarn:t,__meta:O};return k.datetimeFormats=s,k.numberFormats=c,k.__datetimeFormatters=E,k.__numberFormatters=D,__INTLIFY_PROD_DEVTOOLS__&&xv(k,n,O),k}var ly=e=>({[e]:Og()});function uy(e,t,n,r,i){let{missing:a,onWarn:o}=e;if(a!==null){let r=a(e,n,t,i);return Y(r)?r:t}return t}function dy(e,t,n){let r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function fy(e,t){return e!==t&&e.split(`-`)[0]===t.split(`-`)[0]}function py(e,t){let n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(fy(e,t[r]))return!0;return!1}function my(e,t,n,r,i,a,o){let{fallbackLocale:s,localeFallbacker:c,onWarn:l}=e,u=c(e,s,n);for(let n=0;n<u.length;n++){let a=u[n],s=(r[a]||{})[t];if(Bg(s)&&Y(a))return a;uy(e,t,a,i,o)}return null}function hy(e,t,n){let r=`${e}__${t}`;return Bg(n)&&!Tg(n)&&(r=`${r}__${JSON.stringify(n)}`),r}function gy(e,t,n){for(let r in n){let n=`${t}__${r}`;for(let t of e.keys())(t===n||t.startsWith(`${n}__`))&&e.delete(t)}}function _y(e,t,n,r){let[,i,a,o]=e,s=n;return Y(i)?t.key=i:Bg(i)&&Object.keys(i).forEach(e=>{r.includes(e)?s[e]=i[e]:t[e]=i[e]}),Y(a)?t.locale=a:Bg(a)&&(s=a),Bg(o)&&(s=o),s}var vy=typeof Intl<`u`;vy&&Intl.DateTimeFormat,vy&&Intl.NumberFormat;function yy(e,...t){let{datetimeFormats:n,unresolving:r,onWarn:i}=e,{__datetimeFormatters:a}=e;if(!Y(t[0])&&!Cg(t[0])&&!Sg(t[0]))return``;let[o,s,c,l]=xy(...t),u=Fg(c.missingWarn)?c.missingWarn:e.missingWarn,d=Fg(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=!!c.part,p=Ev(e,c);if(!Y(o)||o===``){let e=new Intl.DateTimeFormat(p.replace(/!/g,``),l);return f?e.formatToParts(s):e.format(s)}let m=my(e,o,p,n,u,d,`datetime format`);if(!Y(m))return r?-1:o;let h=n[m][o],g=hy(m,o,l),v=a.get(g);return v||(v=new Intl.DateTimeFormat(m,Eg({},h,l)),a.set(g,v)),f?v.formatToParts(s):v.format(s)}var by=[`localeMatcher`,`weekday`,`era`,`year`,`month`,`day`,`hour`,`minute`,`second`,`timeZoneName`,`formatMatcher`,`hour12`,`timeZone`,`dateStyle`,`timeStyle`,`calendar`,`dayPeriod`,`numberingSystem`,`hourCycle`,`fractionalSecondDigits`];function xy(...e){let[t]=e,n=Og(),r=Og(),i;if(Y(t)){let e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Tv(wv.INVALID_ISO_DATE_ARGUMENT);let n=e[3]?e[3].trim().startsWith(`T`)?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();i=new Date(n);try{i.toISOString()}catch{throw Tv(wv.INVALID_ISO_DATE_ARGUMENT)}}else if(Cg(t)){if(isNaN(t.getTime()))throw Tv(wv.INVALID_DATE_ARGUMENT);i=t}else if(Sg(t))i=t;else throw Tv(wv.INVALID_ARGUMENT);let a=_y(e,n,r,by);return[n.key||``,i,n,a]}function Sy(e,t,n){gy(e.__datetimeFormatters,t,n)}function Cy(e,...t){let{numberFormats:n,unresolving:r,onWarn:i}=e,{__numberFormatters:a}=e;if(!Sg(t[0]))return``;let[o,s,c,l]=Ty(...t),u=Fg(c.missingWarn)?c.missingWarn:e.missingWarn,d=Fg(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=!!c.part,p=Ev(e,c);if(!Y(o)||o===``){let e=new Intl.NumberFormat(p.replace(/!/g,``),l);return f?e.formatToParts(s):e.format(s)}let m=my(e,o,p,n,u,d,`number format`);if(!Y(m))return r?-1:o;let h=n[m][o],g=hy(m,o,l),v=a.get(g);return v||(v=new Intl.NumberFormat(m,Eg({},h,l)),a.set(g,v)),f?v.formatToParts(s):v.format(s)}var wy=[`localeMatcher`,`style`,`currency`,`currencyDisplay`,`currencySign`,`useGrouping`,`minimumIntegerDigits`,`minimumFractionDigits`,`maximumFractionDigits`,`minimumSignificantDigits`,`maximumSignificantDigits`,`compactDisplay`,`notation`,`signDisplay`,`unit`,`unitDisplay`,`roundingMode`,`roundingPriority`,`roundingIncrement`,`trailingZeroDisplay`];function Ty(...e){let[t]=e,n=Og(),r=Og();if(!Sg(t))throw Tv(wv.INVALID_ARGUMENT);let i=t,a=_y(e,n,r,wy);return[n.key||``,i,n,a]}function Ey(e,t,n){gy(e.__numberFormatters,t,n)}var Dy=e=>e,Oy=e=>``,ky=`text`,Ay=e=>e.length===0?``:Hg(e),jy=Vg;function My(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function Ny(e){let t=Sg(e.pluralIndex)?e.pluralIndex:-1;return Sg(e.named?.count)?e.named.count:Sg(e.named?.n)?e.named.n:t}function Py(e={}){let t=e.locale,n=Ny(e),r=Y(t)&&Pg(e.pluralRules?.[t])?e.pluralRules[t]:My,i=r===My?void 0:My,a=e=>e[r(n,e.length,i)],o=e.list||[],s=e=>o[e],c=e.named||Og();Sg(e.pluralIndex)&&(c.count||=e.pluralIndex,c.n||=e.pluralIndex);let l=e=>c[e];function u(t,n){return(Pg(e.messages)?e.messages(t,!!n):Ig(e.messages)?e.messages[t]:!1)||(e.parent?e.parent.message(t):Oy)}let d=t=>e.modifiers?e.modifiers[t]:Dy,f=Pg(e.processor?.normalize)?e.processor.normalize:Ay,p=Pg(e.processor?.interpolate)?e.processor.interpolate:jy,m={list:s,named:l,plural:a,linked:(e,...t)=>{let[n,r]=t,i=`text`,a=``;t.length===1?Ig(n)?(a=n.modifier||a,i=n.type||i):Y(n)&&(a=n||a):t.length===2&&(Y(n)&&(a=n||a),Y(r)&&(i=r||i));let o=u(e,!0)(m),s=o===``||o===void 0?e:o,c=i===`vnode`&&Ng(s)&&a?s[0]:s;return a?d(a)(c,i):c},message:u,type:Y(e.processor?.type)?e.processor.type:ky,interpolate:p,normalize:f,values:Eg(Og(),o,c)};return m}var Fy=()=>``,Iy=e=>Pg(e);function Ly(e,...t){let{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[c,l]=Hy(...t),u=Fg(l.missingWarn)?l.missingWarn:e.missingWarn,d=Fg(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=Fg(l.escapeParameter)?l.escapeParameter:e.escapeParameter,p=!!l.resolvedMessage,m=Y(l.default)||Fg(l.default)?Fg(l.default)?a?c:()=>c:l.default:n?a?c:()=>c:null,h=n||m!=null&&(Y(m)||Pg(m)),g=Ev(e,l);f&&Ry(l);let[v,y,b]=p?[c,g,s[g]||Og()]:zy(e,c,g,o,d,u),x=v,S=c;if(!p&&!(Y(x)||G_(x)||Iy(x))&&h&&(x=m,S=x),!p&&(!(Y(x)||G_(x)||Iy(x))||!Y(y)))return i?-1:c;let C=!1,w=Iy(x)?x:By(e,c,y,x,S,()=>{C=!0});if(C)return x;let T=Vy(e,w,Py(Wy(e,y,b,l))),E=r?r(T,c):T;if(f&&Y(E)&&(E=a_(E)),__INTLIFY_PROD_DEVTOOLS__){let t={timestamp:Date.now(),key:Y(c)?c:Iy(x)?x.key:``,locale:y||(Iy(x)?x.locale:``),format:Y(x)?x:Iy(x)?x.source:``,message:E};t.meta=Eg({},e.__meta,ry()||{}),Sv(t)}return E}function Ry(e){Ng(e.list)?e.list=e.list.map(e=>Y(e)?Wg(e):e):Ig(e.named)&&Object.keys(e.named).forEach(t=>{Y(e.named[t])&&(e.named[t]=Wg(e.named[t]))})}function zy(e,t,n,r,i,a){let{messages:o,onWarn:s,messageResolver:c,localeFallbacker:l}=e,u=l(e,r,n),d=Og(),f,p=null;for(let n=0;n<u.length&&(f=u[n],d=o[f]||Og(),(p=c(d,t))===null&&(p=d[t]),!(Y(p)||G_(p)||Iy(p)));n++)if(!py(f,u)){let n=uy(e,t,f,a,`translate`);n!==t&&(p=n)}return[p,f,d]}function By(e,t,n,r,i,a){let{messageCompiler:o,warnHtmlMessage:s}=e;if(Iy(r)){let e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(o==null){let e=(()=>r);return e.locale=n,e.key=t,e}let c=o(r,Uy(e,n,i,r,s,a));return c.locale=n,c.key=t,c.source=r,c}function Vy(e,t,n){return t(n)}function Hy(...e){let[t,n,r]=e,i=Og();if(!Y(t)&&!Sg(t)&&!Iy(t)&&!G_(t))throw Tv(wv.INVALID_ARGUMENT);let a=Sg(t)?String(t):(Iy(t),t);return Sg(n)?i.plural=n:Y(n)?i.default=n:Bg(n)&&!Tg(n)?i.named=n:Ng(n)&&(i.list=n),Sg(r)?i.plural=r:Y(r)?i.default=r:Bg(r)&&Eg(i,r),[a,i]}function Uy(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:e=>{throw a&&a(e),e},onCacheKey:e=>bg(t,n,e)}}function Wy(e,t,n,r){let{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:c,missingWarn:l,fallbackContext:u}=e,d={locale:t,modifiers:i,pluralRules:a,messages:(r,i)=>{let a=o(n,r);if(a==null&&(u||i)){let[n,,i]=zy(u||e,r,t,s,c,l);a=n??o(i,r)}if(Y(a)||G_(a)){let n=!1,i=By(e,r,t,a,r,()=>{n=!0});return n?Fy:i}return Iy(a)?a:Fy}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Sg(r.plural)&&(d.pluralIndex=r.plural),d}W_();var Gy=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ky=new class extends Gy{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},qy={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Jy=new class{#e=qy;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function Yy(e){setTimeout(e,0)}var Xy=typeof window>`u`||`Deno`in globalThis;function Zy(){}function Qy(e,t){return typeof e==`function`?e(t):e}function $y(e){return typeof e==`number`&&e>=0&&e!==1/0}function eb(e,t){return Math.max(e+(t||0)-Date.now(),0)}function tb(e,t){return typeof e==`function`?e(t):e}function nb(e,t){return typeof e==`function`?e(t):e}function rb(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==ab(o,t.options))return!1}else if(!sb(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function ib(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(ob(t.options.mutationKey)!==ob(a))return!1}else if(!sb(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ab(e,t){return(t?.queryKeyHashFn||ob)(e)}function ob(e){return JSON.stringify(e,(e,t)=>fb(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function sb(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!sb(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!sb(e[r],t[r]))return!1;return!0}return!1}var cb=Object.prototype.hasOwnProperty;function lb(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=db(e)&&db(t);if(!r&&!(fb(e)&&fb(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:cb.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=lb(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function ub(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function db(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function fb(e){if(!pb(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!pb(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function pb(e){return Object.prototype.toString.call(e)===`[object Object]`}function mb(e){return new Promise(t=>{Jy.setTimeout(t,e)})}function hb(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:lb(e,t)}function gb(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function _b(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var vb=Symbol();function yb(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===vb?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function bb(e,t){return typeof e==`function`?e(...t):!!e}function xb(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Sb=(()=>{let e=()=>Xy;return{isServer(){return e()},setIsServer(t){e=t}}})();function Cb(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var wb=Yy;function Tb(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=wb,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Eb=Tb(),Db=new class extends Gy{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Ob(e){return Math.min(1e3*2**e,3e4)}function kb(e){return(e??`online`)!==`online`||Db.isOnline()}var Ab=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function jb(e){let t=!1,n=0,r,i=Cb(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Ab(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Ky.isFocused()&&(e.networkMode===`always`||Db.isOnline())&&e.canRun(),u=()=>kb(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Sb.isServer()?0:3),o=e.retryDelay??Ob,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),mb(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Mb=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$y(this.gcTime)&&(this.#e=Jy.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Sb.isServer()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(Jy.clearTimeout(this.#e),this.#e=void 0)}};function Nb(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{xb(e,()=>t.signal,()=>n=!0)},u=yb(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?_b:gb;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?Fb:Pb,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Pb(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function Pb(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Fb(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Ib=class extends Mb{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=zb(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=zb(this.options);e.data!==void 0&&(this.setState(Rb(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=hb(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Zy).catch(Zy):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>nb(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vb||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>tb(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!eb(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=yb(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Nb(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=jb({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Ab&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Ab){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Lb(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Rb(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Eb.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Lb(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:kb(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Rb(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function zb(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Bb=class extends Gy{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=Cb(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Hb(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ub(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ub(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof nb(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!ub(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Wb(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||nb(this.options.enabled,this.#t)!==nb(t.enabled,this.#t)||tb(this.options.staleTime,this.#t)!==tb(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||nb(this.options.enabled,this.#t)!==nb(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Kb(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Zy)),t}#g(){this.#b();let e=tb(this.options.staleTime,this.#t);if(Sb.isServer()||this.#r.isStale||!$y(e))return;let t=eb(this.#r.dataUpdatedAt,e)+1;this.#d=Jy.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(Sb.isServer()||nb(this.options.enabled,this.#t)===!1||!$y(this.#p)||this.#p===0)&&(this.#f=Jy.setInterval(()=>{(this.options.refetchIntervalInBackground||Ky.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(Jy.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(Jy.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Hb(e,t),o=i&&Wb(e,n,t,r);(a||o)&&(l={...l,...Lb(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=hb(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=hb(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,v=m===`pending`,y=m===`error`,b=v&&g,x=d!==void 0,S={status:m,fetchStatus:l.fetchStatus,isPending:v,isSuccess:m===`success`,isError:y,isInitialLoading:b,isLoading:b,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!v,isLoadingError:y&&!x,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:y&&x,isStale:Gb(e,t),refetch:this.refetch,promise:this.#o,isEnabled:nb(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=S.data!==void 0,r=S.status===`error`&&!t,i=e=>{r?e.reject(S.error):t&&e.resolve(S.data)},a=()=>{let e=this.#o=S.promise=Cb();i(e)},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||S.data!==o.value)&&a();break;case`rejected`:(!r||S.error!==o.reason)&&a()}}return S}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!ub(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){Eb.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Vb(e,t){return nb(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||nb(t.retryOnMount,e)!==!1)}function Hb(e,t){return Vb(e,t)||e.state.data!==void 0&&Ub(e,t,t.refetchOnMount)}function Ub(e,t,n){if(nb(t.enabled,e)!==!1&&tb(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Gb(e,t)}return!1}function Wb(e,t,n,r){return(e!==t||nb(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Gb(e,n)}function Gb(e,t){return nb(t.enabled,e)!==!1&&e.isStaleByTime(tb(t.staleTime,e))}function Kb(e,t){return!ub(e.getCurrentResult(),t)}var qb=class extends Mb{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Jb(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=jb({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Eb.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Jb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Yb=class extends Gy{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new qb({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Xb(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Xb(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Xb(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Xb(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Eb.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>ib(t,e))}findAll(e={}){return this.getAll().filter(t=>ib(e,t))}notify(e){Eb.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Eb.batch(()=>Promise.all(e.map(e=>e.continue().catch(Zy))))}};function Xb(e){return e.options.scope?.id}var Zb=class extends Gy{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),ub(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&ob(t.mutationKey)!==ob(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Jb();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){Eb.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}};function Qb(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}function $b(e,t,n){let r=e.slice(0);return r[t]=n,r}var ex=class extends Gy{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];constructor(e,t,n){super(),this.#e=e,this.#r=n,this.#n=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,Eb.batch(()=>{let e=this.#i,t=this.#p(this.#n);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,s=o?!0:r.some((e,t)=>{let n=this.#t[t];return!n||!ub(e,n)});!o&&!s||(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(Qb(e,n).forEach(e=>{e.destroy()}),Qb(n,e).forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let n=this.#p(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#d(e??r,t,i),()=>this.#u(r,n)]}#u(e,t){return t.map((n,r)=>{let i=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,e=>{t.forEach(t=>{t.observer.trackProp(e)})})})}#d(e,t,n){if(t){let r=this.#c,i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(!this.#a||this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,n!==void 0&&(this.#c=n),this.#a=lb(this.#a,t(e))),this.#a}return e}#f(){return this.#r?.combine!==void 0&&this.#i.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#p(e){let t=new Map;this.#i.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new Bb(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#m(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=$b(this.#t,n,t),this.#h())}#h(){if(this.hasListeners()){let e=this.#u(this.#t,this.#l),t=this.#f(),n=this.#a,r=t?n:this.#d(e,this.#r?.combine);(t||n!==r)&&Eb.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},tx=class extends Gy{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??ab(r,t),a=this.get(i);return a||(a=new Ib({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Eb.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>rb(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>rb(e,t)):t}notify(e){Eb.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Eb.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Eb.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},nx=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new tx,this.#t=e.mutationCache||new Yb,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Ky.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Db.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(tb(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=Qy(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Eb.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Eb.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Eb.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Eb.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Zy).catch(Zy)}invalidateQueries(e,t={}){return Eb.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Eb.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Zy)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(Zy)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(tb(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zy).catch(Zy)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zy).catch(Zy)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Db.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(ob(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{sb(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(ob(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{sb(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=ab(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===vb&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},rx=`VUE_QUERY_CLIENT`;function ix(e){return`${rx}${e?`:${e}`:``}`}function ax(e,t){Object.keys(e).forEach(n=>{e[n]=t[n]})}function ox(e,t,n=``,r=0){if(t){let i=t(e,n,r);if(i===void 0&&nn(e)||i!==void 0)return i}if(Array.isArray(e))return e.map((e,n)=>ox(e,t,String(n),r+1));if(typeof e==`object`&&cx(e)){let n=Object.entries(e).map(([e,n])=>[e,ox(n,t,e,r+1)]);return Object.fromEntries(n)}return e}function sx(e,t){return ox(e,t)}function Z(e,t=!1){return sx(e,(e,n,r)=>{if(r===1&&n===`queryKey`)return Z(e,!0);if(t&&lx(e))return Z(e(),t);if(nn(e))return Z(B(e),t)})}function cx(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function lx(e){return typeof e==`function`}function ux(e=``){if(!mr())throw Error(`vue-query hooks can only be used inside setup() function or functions that support injection context.`);let t=pr(ix(e));if(!t)throw Error(`No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.`);return t}var dx=class extends tx{find(e){return super.find(Z(e))}findAll(e={}){return super.findAll(Z(e))}},fx=class extends Yb{find(e){return super.find(Z(e))}findAll(e={}){return super.findAll(Z(e))}},px=class extends nx{constructor(e={}){let t={defaultOptions:e.defaultOptions,queryCache:e.queryCache||new dx,mutationCache:e.mutationCache||new fx};super(t),this.isRestoring=z(!1)}isFetching(e={}){return super.isFetching(Z(e))}isMutating(e={}){return super.isMutating(Z(e))}getQueryData(e){return super.getQueryData(Z(e))}ensureQueryData(e){return super.ensureQueryData(Z(e))}getQueriesData(e){return super.getQueriesData(Z(e))}setQueryData(e,t,n={}){return super.setQueryData(Z(e),t,Z(n))}setQueriesData(e,t,n={}){return super.setQueriesData(Z(e),t,Z(n))}getQueryState(e){return super.getQueryState(Z(e))}removeQueries(e={}){return super.removeQueries(Z(e))}resetQueries(e={},t={}){return super.resetQueries(Z(e),Z(t))}cancelQueries(e={},t={}){return super.cancelQueries(Z(e),Z(t))}invalidateQueries(e={},t={}){let n=Z(e),r=Z(t);if(super.invalidateQueries({...n,refetchType:`none`},r),n.refetchType===`none`)return Promise.resolve();let i={...n,type:n.refetchType??n.type??`active`};return Gn().then(()=>super.refetchQueries(i,r))}refetchQueries(e={},t={}){return super.refetchQueries(Z(e),Z(t))}fetchQuery(e){return super.fetchQuery(Z(e))}prefetchQuery(e){return super.prefetchQuery(Z(e))}fetchInfiniteQuery(e){return super.fetchInfiniteQuery(Z(e))}prefetchInfiniteQuery(e){return super.prefetchInfiniteQuery(Z(e))}setDefaultOptions(e){super.setDefaultOptions(Z(e))}setQueryDefaults(e,t){super.setQueryDefaults(Z(e),Z(t))}getQueryDefaults(e){return super.getQueryDefaults(Z(e))}setMutationDefaults(e,t){super.setMutationDefaults(Z(e),Z(t))}getMutationDefaults(e){return super.getMutationDefaults(Z(e))}},mx={install:(e,t={})=>{let n=ix(t.queryClientKey),r;r=`queryClient`in t&&t.queryClient?t.queryClient:new px(`queryClientConfig`in t?t.queryClientConfig:void 0),Sb.isServer()||r.mount();let i=()=>{};if(t.clientPersister){r.isRestoring&&(r.isRestoring.value=!0);let[e,n]=t.clientPersister(r);i=e,n.then(()=>{r.isRestoring&&(r.isRestoring.value=!1),t.clientPersisterOnSuccess?.(r)})}let a=()=>{r.unmount(),i()};if(e.onUnmount)e.onUnmount(a);else{let t=e.unmount;e.unmount=function(){a(),t()}}e.provide(n,r)}};function hx(e,t,n){let r=n||ux(),i=G(()=>{let e=t;typeof e==`function`&&(e=e());let n=Z(e);typeof n.enabled==`function`&&(n.enabled=n.enabled());let i=r.defaultQueryOptions(n);return i._optimisticResults=r.isRestoring?.value?`isRestoring`:`optimistic`,i}),a=new e(r,i.value),o=i.value.shallow?Gt(a.getCurrentResult()):Wt(a.getCurrentResult()),s=()=>{};r.isRestoring&&br(r.isRestoring,e=>{e||(s(),s=a.subscribe(e=>{ax(o,e)}))},{immediate:!0});let c=()=>{a.setOptions(i.value),ax(o,a.getCurrentResult())};br(i,c),ke(()=>{s()});let l=(...e)=>(c(),o.refetch(...e)),u=()=>new Promise((e,t)=>{let n=()=>{},r=()=>{if(i.value.enabled!==!1){a.setOptions(i.value);let r=a.getOptimisticResult(i.value);r.isStale?(n(),a.fetchOptimistic(i.value).then(e,n=>{bb(i.value.throwOnError,[n,a.getCurrentQuery()])?t(n):e(a.getCurrentResult())})):(n(),e(r))}};r(),n=br(i,r)});br(()=>o.error,e=>{if(o.isError&&!o.isFetching&&bb(i.value.throwOnError,[e,a.getCurrentQuery()]))throw e});let d=fn(i.value.shallow?qt(o):Kt(o));for(let e in o)typeof o[e]==`function`&&(d[e]=o[e]);return d.suspense=u,d.refetch=l,d}function gx(e,t){return hx(Bb,e,t)}function _x({queries:e,...t},n){let r=n||ux(),i=G(()=>B(typeof e==`function`?e():e).map(e=>{let t=Z(e);typeof t.enabled==`function`&&(t.enabled=e.enabled());let n=r.defaultQueryOptions(t);return n._optimisticResults=r.isRestoring?.value?`isRestoring`:`optimistic`,n})),a=new ex(r,i.value,t),o=()=>{let[e,n]=a.getOptimisticResult(i.value,t.combine);return n(e.map((e,n)=>({...e,refetch:async(...e)=>{let[{[n]:r}]=a.getOptimisticResult(i.value,t.combine);return r.refetch(...e)}})))},s=rn(o()),c=()=>{};return r.isRestoring&&br(r.isRestoring,e=>{e||(c(),c=a.subscribe(()=>{s.value=o()}),s.value=o())},{immediate:!0}),br(i,e=>{a.setQueries(e,t),s.value=o()}),ke(()=>{c()}),t.shallow?qt(s):Kt(s)}function vx(e,t){let n=t||ux(),r=G(()=>{let t=typeof e==`function`?e():e;return n.defaultMutationOptions(Z(t))}),i=new Zb(n,r.value),a=r.value.shallow?Gt(i.getCurrentResult()):Wt(i.getCurrentResult()),o=i.subscribe(e=>{ax(a,e)}),s=(e,t)=>{i.mutate(e,t).catch(()=>{})};br(r,()=>{i.setOptions(r.value)}),ke(()=>{o()});let c=fn(r.value.shallow?qt(a):Kt(a));return br(()=>a.error,e=>{if(e&&bb(r.value.throwOnError,[e]))throw e}),{...c,mutate:s,mutateAsync:a.mutate,reset:a.reset}}function yx(e,t,n){if(typeof t==`string`)e.style.viewTransitionName=t;else if(t&&typeof t==`object`){let[n,r]=Object.entries(t)?.[0]||[];r?e.style.viewTransitionName=n:e.style.viewTransitionName=`none`}else throw Error(`[vue-view-transitions]: The value of \`v-${n}\` should be either "string" or "object" but got "${typeof t}"`)}function bx(){return{install(e){e.directive(`view-transition-name`,{beforeMount(e,t){yx(e,t.value,`view-transition-name`)},beforeUpdate(e,t){yx(e,t.value,`view-transition-name`)}}),e.directive(`trans`,{beforeMount(e,t){yx(e,t.value,`trans`)},beforeUpdate(e,t){yx(e,t.value,`trans`)}})}}}function xx(e){let t={};return document.startViewTransition?t.captured=new Promise(n=>{let r=document.startViewTransition(async()=>{n(),e&&await e()});t.updateCallbackDone=r.updateCallbackDone,t.ready=r.ready,t.finished=r.finished,t.skipTransition=r.skipTransition.bind(r)}):(t.captured=Promise.resolve(),t.updateCallbackDone=t.ready=t.finished=e?Promise.resolve(e()):Promise.resolve(),t.skipTransition=()=>{},console.error(`[vue-view-transitions]: This browser doesn't support View Transitions Api, please check: https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API#browser_compatibility`)),t}function Sx(e){return`Minified Redux error #`+e+`; visit https://redux.js.org/Errors?code=`+e+` for the full message or use the non-minified dev environment for full errors. `}var Cx=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})(),wx=function(){return Math.random().toString(36).substring(7).split(``).join(`.`)},Tx={INIT:`@@redux/INIT`+wx(),REPLACE:`@@redux/REPLACE`+wx(),PROBE_UNKNOWN_ACTION:function(){return`@@redux/PROBE_UNKNOWN_ACTION`+wx()}};function Ex(e){if(typeof e!=`object`||!e)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Dx(e,t,n){var r;if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(Sx(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(Sx(1));return n(Dx)(e,t)}if(typeof e!=`function`)throw Error(Sx(2));var i=e,a=t,o=[],s=o,c=!1;function l(){s===o&&(s=o.slice())}function u(){if(c)throw Error(Sx(3));return a}function d(e){if(typeof e!=`function`)throw Error(Sx(4));if(c)throw Error(Sx(5));var t=!0;return l(),s.push(e),function(){if(t){if(c)throw Error(Sx(6));t=!1,l();var n=s.indexOf(e);s.splice(n,1),o=null}}}function f(e){if(!Ex(e))throw Error(Sx(7));if(e.type===void 0)throw Error(Sx(8));if(c)throw Error(Sx(9));try{c=!0,a=i(a,e)}finally{c=!1}for(var t=o=s,n=0;n<t.length;n++){var r=t[n];r()}return e}function p(e){if(typeof e!=`function`)throw Error(Sx(10));i=e,f({type:Tx.REPLACE})}function m(){var e,t=d;return e={subscribe:function(e){if(typeof e!=`object`||!e)throw Error(Sx(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}},e[Cx]=function(){return this},e}return f({type:Tx.INIT}),r={dispatch:f,subscribe:d,getState:u,replaceReducer:p},r[Cx]=m,r}function Q(e,t,...n){if(Ox()&&t===void 0)throw Error(`invariant requires an error message argument`);if(!e){let e;if(t===void 0)e=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{let r=0;e=Error(t.replace(/%s/g,function(){return n[r++]})),e.name=`Invariant Violation`}throw e.framesToPop=1,e}}function Ox(){return typeof process<`u`&&!0}function kx(e,t,n){return t.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:n||null,e)}function Ax(e,t){return e.filter(e=>e!==t)}function jx(e){return typeof e==`object`}function Mx(e,t){let n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);let i=[];return n.forEach((e,t)=>{e===1&&i.push(t)}),i}function Nx(e,t){return e.filter(e=>t.indexOf(e)>-1)}var Px=`dnd-core/INIT_COORDS`,Fx=`dnd-core/BEGIN_DRAG`,Ix=`dnd-core/PUBLISH_DRAG_SOURCE`,Lx=`dnd-core/HOVER`,Rx=`dnd-core/DROP`,zx=`dnd-core/END_DRAG`;function Bx(e,t){return{type:Px,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var Vx={type:Px,payload:{clientOffset:null,sourceClientOffset:null}};function Hx(e){return function(t=[],n={publishSource:!0}){let{publishSource:r=!0,clientOffset:i,getSourceClientOffset:a}=n,o=e.getMonitor(),s=e.getRegistry();e.dispatch(Bx(i)),Ux(t,o,s);let c=Kx(t,o);if(c==null){e.dispatch(Vx);return}let l=null;if(i){if(!a)throw Error(`getSourceClientOffset must be defined`);Wx(a),l=a(c)}e.dispatch(Bx(i,l));let u=s.getSource(c).beginDrag(o,c);return u==null?void 0:(Gx(u),s.pinSource(c),{type:Fx,payload:{itemType:s.getSourceType(c),item:u,sourceId:c,clientOffset:i||null,sourceClientOffset:l||null,isSourcePublic:!!r}})}}function Ux(e,t,n){Q(!t.isDragging(),`Cannot call beginDrag while dragging.`),e.forEach(function(e){Q(n.getSource(e),`Expected sourceIds to be registered.`)})}function Wx(e){Q(typeof e==`function`,`When clientOffset is provided, getSourceClientOffset must be a function.`)}function Gx(e){Q(jx(e),`Item must be an object.`)}function Kx(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function qx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){qx(e,t,n[t])})}return e}function Yx(e){return function(t={}){let n=e.getMonitor(),r=e.getRegistry();Xx(n),$x(n).forEach((i,a)=>{let o={type:Rx,payload:{dropResult:Jx({},t,Zx(i,a,r,n))}};e.dispatch(o)})}}function Xx(e){Q(e.isDragging(),`Cannot call drop while not dragging.`),Q(!e.didDrop(),`Cannot call drop twice during one drag operation.`)}function Zx(e,t,n,r){let i=n.getTarget(e),a=i?i.drop(r,e):void 0;return Qx(a),a===void 0&&(a=t===0?{}:r.getDropResult()),a}function Qx(e){Q(e===void 0||jx(e),`Drop result must either be an object or undefined.`)}function $x(e){let t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function eS(e){return function(){let t=e.getMonitor(),n=e.getRegistry();tS(t);let r=t.getSourceId();return r!=null&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:zx}}}function tS(e){Q(e.isDragging(),`Cannot call endDrag while not dragging.`)}function nS(e,t){return t===null?e===null:Array.isArray(e)?e.some(e=>e===t):e===t}function rS(e){return function(t,{clientOffset:n}={}){iS(t);let r=t.slice(0),i=e.getMonitor(),a=e.getRegistry();return oS(r,a,i.getItemType()),aS(r,i,a),sS(r,i,a),{type:Lx,payload:{targetIds:r,clientOffset:n||null}}}}function iS(e){Q(Array.isArray(e),`Expected targetIds to be an array.`)}function aS(e,t,n){Q(t.isDragging(),`Cannot call hover while not dragging.`),Q(!t.didDrop(),`Cannot call hover after drop.`);for(let t=0;t<e.length;t++){let r=e[t];Q(e.lastIndexOf(r)===t,`Expected targetIds to be unique in the passed array.`),Q(n.getTarget(r),`Expected targetIds to be registered.`)}}function oS(e,t,n){for(let r=e.length-1;r>=0;r--){let i=e[r];nS(t.getTargetType(i),n)||e.splice(r,1)}}function sS(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}function cS(e){return function(){if(e.getMonitor().isDragging())return{type:Ix}}}function lS(e){return{beginDrag:Hx(e),publishDragSource:cS(e),hover:rS(e),drop:Yx(e),endDrag:eS(e)}}var uS=class{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){let e=this,{dispatch:t}=this.store;function n(n){return(...r)=>{let i=n.apply(e,r);i!==void 0&&t(i)}}let r=lS(this);return Object.keys(r).reduce((e,t)=>{let i=r[t];return e[t]=n(i),e},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{let e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}};function dS(e,t){return{x:e.x+t.x,y:e.y+t.y}}function fS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pS(e){let{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:fS(dS(t,r),n)}function mS(e){let{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:fS(t,n)}var hS=[],gS=[];hS.__IS_NONE__=!0,gS.__IS_ALL__=!0;function _S(e,t){return e===hS?!1:e===gS||t===void 0||Nx(t,e).length>0}var vS=class{subscribeToStateChange(e,t={}){let{handlerIds:n}=t;Q(typeof e==`function`,`listener must be a function.`),Q(n===void 0||Array.isArray(n),`handlerIds, when specified, must be an array of strings.`);let r=this.store.getState().stateId;return this.store.subscribe(()=>{let t=this.store.getState(),i=t.stateId;try{i===r||i===r+1&&!_S(t.dirtyHandlerIds,n)||e()}finally{r=i}})}subscribeToOffsetChange(e){Q(typeof e==`function`,`listener must be a function.`);let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{let n=this.store.getState().dragOffset;n!==t&&(t=n,e())})}canDragSource(e){if(!e)return!1;let t=this.registry.getSource(e);return Q(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;let t=this.registry.getTarget(e);return Q(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop()?!1:nS(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;let t=this.registry.getSource(e,!0);return Q(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic()||this.registry.getSourceType(e)!==this.getItemType()?!1:t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;let{shallow:n}=t;if(!this.isDragging())return!1;let r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!nS(r,i))return!1;let a=this.getTargetIds();if(!a.length)return!1;let o=a.indexOf(e);return n?o===a.length-1:o>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return pS(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return mS(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}},yS=typeof global<`u`?global:self,bS=yS.MutationObserver||yS.WebKitMutationObserver;function xS(e){return function(){let t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}function SS(e){let t=1,n=new bS(e),r=document.createTextNode(``);return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}var CS=typeof bS==`function`?SS:xS,wS=class{enqueueTask(e){let{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{let{queue:e}=this;for(;this.index<e.length;){let t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=CS(this.flush),this.requestErrorThrow=xS(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},TS=class{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}},ES=class{create(e){let t=this.freeTasks,n=t.length?t.pop():new TS(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}},DS=new wS,OS=new ES(DS.registerPendingError);function kS(e){DS.enqueueTask(OS.create(e))}var AS=`dnd-core/ADD_SOURCE`,jS=`dnd-core/ADD_TARGET`,MS=`dnd-core/REMOVE_SOURCE`,NS=`dnd-core/REMOVE_TARGET`;function PS(e){return{type:AS,payload:{sourceId:e}}}function FS(e){return{type:jS,payload:{targetId:e}}}function IS(e){return{type:MS,payload:{sourceId:e}}}function LS(e){return{type:NS,payload:{targetId:e}}}function RS(e){Q(typeof e.canDrag==`function`,`Expected canDrag to be a function.`),Q(typeof e.beginDrag==`function`,`Expected beginDrag to be a function.`),Q(typeof e.endDrag==`function`,`Expected endDrag to be a function.`)}function zS(e){Q(typeof e.canDrop==`function`,`Expected canDrop to be a function.`),Q(typeof e.hover==`function`,`Expected hover to be a function.`),Q(typeof e.drop==`function`,`Expected beginDrag to be a function.`)}function BS(e,t){if(t&&Array.isArray(e)){e.forEach(e=>BS(e,!1));return}Q(typeof e==`string`||typeof e==`symbol`,t?`Type can only be a string, a symbol, or an array of either.`:`Type can only be a string or a symbol.`)}var VS;(function(e){e.SOURCE=`SOURCE`,e.TARGET=`TARGET`})(VS||={});var HS=0;function US(){return HS++}function WS(e){let t=US().toString();switch(e){case VS.SOURCE:return`S${t}`;case VS.TARGET:return`T${t}`;default:throw Error(`Unknown Handler Role: ${e}`)}}function GS(e){switch(e[0]){case`S`:return VS.SOURCE;case`T`:return VS.TARGET;default:throw Error(`Cannot parse handler ID: ${e}`)}}function KS(e,t){let n=e.entries(),r=!1;do{let{done:e,value:[,i]}=n.next();if(i===t)return!0;r=!!e}while(!r);return!1}var qS=class{addSource(e,t){BS(e),RS(t);let n=this.addHandler(VS.SOURCE,e,t);return this.store.dispatch(PS(n)),n}addTarget(e,t){BS(e,!0),zS(t);let n=this.addHandler(VS.TARGET,e,t);return this.store.dispatch(FS(n)),n}containsHandler(e){return KS(this.dragSources,e)||KS(this.dropTargets,e)}getSource(e,t=!1){return Q(this.isSourceId(e),`Expected a valid source ID.`),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Q(this.isTargetId(e),`Expected a valid target ID.`),this.dropTargets.get(e)}getSourceType(e){return Q(this.isSourceId(e),`Expected a valid source ID.`),this.types.get(e)}getTargetType(e){return Q(this.isTargetId(e),`Expected a valid target ID.`),this.types.get(e)}isSourceId(e){return GS(e)===VS.SOURCE}isTargetId(e){return GS(e)===VS.TARGET}removeSource(e){Q(this.getSource(e),`Expected an existing source.`),this.store.dispatch(IS(e)),kS(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){Q(this.getTarget(e),`Expected an existing target.`),this.store.dispatch(LS(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){let t=this.getSource(e);Q(t,`Expected an existing source.`),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){Q(this.pinnedSource,`No source is pinned at the time.`),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){let r=WS(e);return this.types.set(r,t),e===VS.SOURCE?this.dragSources.set(r,n):e===VS.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}},JS=(e,t)=>e===t;function YS(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function XS(e,t,n=JS){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function ZS(e=hS,t){switch(t.type){case Lx:break;case AS:case jS:case NS:case MS:return hS;case Fx:case Ix:case zx:case Rx:default:return gS}let{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=Mx(n,r);if(!(i.length>0||!XS(n,r)))return hS;let a=r[r.length-1],o=n[n.length-1];return a!==o&&(a&&i.push(a),o&&i.push(o)),i}function QS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $S(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){QS(e,t,n[t])})}return e}var eC={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function tC(e=eC,t){let{payload:n}=t;switch(t.type){case Px:case Fx:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Lx:return YS(e.clientOffset,n.clientOffset)?e:$S({},e,{clientOffset:n.clientOffset});case zx:case Rx:return eC;default:return e}}function nC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){nC(e,t,n[t])})}return e}var iC={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function aC(e=iC,t){let{payload:n}=t;switch(t.type){case Fx:return rC({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Ix:return rC({},e,{isSourcePublic:!0});case Lx:return rC({},e,{targetIds:n.targetIds});case NS:return e.targetIds.indexOf(n.targetId)===-1?e:rC({},e,{targetIds:Ax(e.targetIds,n.targetId)});case Rx:return rC({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case zx:return rC({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function oC(e=0,t){switch(t.type){case AS:case jS:return e+1;case MS:case NS:return e-1;default:return e}}function sC(e=0){return e+1}function cC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){cC(e,t,n[t])})}return e}function uC(e={},t){return{dirtyHandlerIds:ZS(e.dirtyHandlerIds,{type:t.type,payload:lC({},t.payload,{prevTargetIds:kx(e,`dragOperation.targetIds`,[])})}),dragOffset:tC(e.dragOffset,t),refCount:oC(e.refCount,t),dragOperation:aC(e.dragOperation,t),stateId:sC(e.stateId)}}function dC(e,t=void 0,n={},r=!1){let i=fC(r),a=new uS(i,new vS(i,new qS(i))),o=e(a,t,n);return a.receiveBackend(o),a}function fC(e){let t=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__;return Dx(uC,e&&t&&t({name:`dnd-core`,instanceId:`dnd-core`}))}var pC=t(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),mC=t(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?t.exports=n():e.getSize=n()})(window,function(){function e(e){let t=parseFloat(e);return e.indexOf(`%`)==-1&&!isNaN(t)&&t}let t=[`paddingLeft`,`paddingRight`,`paddingTop`,`paddingBottom`,`marginLeft`,`marginRight`,`marginTop`,`marginBottom`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`borderBottomWidth`];t.length;function n(){let e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};return t.forEach(t=>{e[t]=0}),e}function r(r){if(typeof r==`string`&&(r=document.querySelector(r)),!(r&&typeof r==`object`&&r.nodeType))return;let i=getComputedStyle(r);if(i.display==`none`)return n();let a={};a.width=r.offsetWidth,a.height=r.offsetHeight;let o=a.isBorderBox=i.boxSizing==`border-box`;t.forEach(e=>{let t=i[e],n=parseFloat(t);a[e]=isNaN(n)?0:n});let s=a.paddingLeft+a.paddingRight,c=a.paddingTop+a.paddingBottom,l=a.marginLeft+a.marginRight,u=a.marginTop+a.marginBottom,d=a.borderLeftWidth+a.borderRightWidth,f=a.borderTopWidth+a.borderBottomWidth,p=e(i.width);p!==!1&&(a.width=p+(o?0:s+d));let m=e(i.height);return m!==!1&&(a.height=m+(o?0:c+f)),a.innerWidth=a.width-(s+d),a.innerHeight=a.height-(c+f),a.outerWidth=a.width+l,a.outerHeight=a.height+u,a}return r})})),hC=t(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?t.exports=n():e.EvEmitter=n()})(typeof window<`u`?window:e,function(){function e(){}let t=e.prototype;return t.on=function(e,t){if(!e||!t)return this;let n=this._events=this._events||{},r=n[e]=n[e]||[];return r.includes(t)||r.push(t),this},t.once=function(e,t){if(!e||!t)return this;this.on(e,t);let n=this._onceEvents=this._onceEvents||{},r=n[e]=n[e]||{};return r[t]=!0,this},t.off=function(e,t){let n=this._events&&this._events[e];if(!n||!n.length)return this;let r=n.indexOf(t);return r!=-1&&n.splice(r,1),this},t.emitEvent=function(e,t){let n=this._events&&this._events[e];if(!n||!n.length)return this;n=n.slice(0),t||=[];let r=this._onceEvents&&this._onceEvents[e];for(let i of n)r&&r[i]&&(this.off(e,i),delete r[i]),i.apply(this,t);return this},t.allOff=function(){return delete this._events,delete this._onceEvents,this},e})})),gC=t(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?t.exports=n(e,hC()):e.Unidragger=n(e,e.EvEmitter)})(typeof window<`u`?window:e,function(e,t){function n(){}let r=n.prototype=Object.create(t.prototype);r.handleEvent=function(e){let t=`on`+e.type;this[t]&&this[t](e)};let i,a;`ontouchstart`in e?(i=`touchstart`,a=[`touchmove`,`touchend`,`touchcancel`]):e.PointerEvent?(i=`pointerdown`,a=[`pointermove`,`pointerup`,`pointercancel`]):(i=`mousedown`,a=[`mousemove`,`mouseup`]),r.touchActionValue=`none`,r.bindHandles=function(){this._bindHandles(`addEventListener`,this.touchActionValue)},r.unbindHandles=function(){this._bindHandles(`removeEventListener`,``)},r._bindHandles=function(t,n){this.handles.forEach(r=>{r[t](i,this),r[t](`click`,this),e.PointerEvent&&(r.style.touchAction=n)})},r.bindActivePointerEvents=function(){a.forEach(t=>{e.addEventListener(t,this)})},r.unbindActivePointerEvents=function(){a.forEach(t=>{e.removeEventListener(t,this)})},r.withPointer=function(e,t){t.pointerId===this.pointerIdentifier&&this[e](t,t)},r.withTouch=function(e,t){let n;for(let e of t.changedTouches)e.identifier===this.pointerIdentifier&&(n=e);n&&this[e](t,n)},r.onmousedown=function(e){this.pointerDown(e,e)},r.ontouchstart=function(e){this.pointerDown(e,e.changedTouches[0])},r.onpointerdown=function(e){this.pointerDown(e,e)};let o=[`TEXTAREA`,`INPUT`,`SELECT`,`OPTION`],s=[`radio`,`checkbox`,`button`,`submit`,`image`,`file`];return r.pointerDown=function(e,t){let n=o.includes(e.target.nodeName),r=s.includes(e.target.type),i=!n||r;!this.isPointerDown&&!e.button&&i&&(this.isPointerDown=!0,this.pointerIdentifier=t.pointerId===void 0?t.identifier:t.pointerId,this.pointerDownPointer={pageX:t.pageX,pageY:t.pageY},this.bindActivePointerEvents(),this.emitEvent(`pointerDown`,[e,t]))},r.onmousemove=function(e){this.pointerMove(e,e)},r.onpointermove=function(e){this.withPointer(`pointerMove`,e)},r.ontouchmove=function(e){this.withTouch(`pointerMove`,e)},r.pointerMove=function(e,t){let n={x:t.pageX-this.pointerDownPointer.pageX,y:t.pageY-this.pointerDownPointer.pageY};this.emitEvent(`pointerMove`,[e,t,n]),!this.isDragging&&this.hasDragStarted(n)&&this.dragStart(e,t),this.isDragging&&this.dragMove(e,t,n)},r.hasDragStarted=function(e){return Math.abs(e.x)>3||Math.abs(e.y)>3},r.dragStart=function(e,t){this.isDragging=!0,this.isPreventingClicks=!0,this.emitEvent(`dragStart`,[e,t])},r.dragMove=function(e,t,n){this.emitEvent(`dragMove`,[e,t,n])},r.onmouseup=function(e){this.pointerUp(e,e)},r.onpointerup=function(e){this.withPointer(`pointerUp`,e)},r.ontouchend=function(e){this.withTouch(`pointerUp`,e)},r.pointerUp=function(e,t){this.pointerDone(),this.emitEvent(`pointerUp`,[e,t]),this.isDragging?this.dragEnd(e,t):this.staticClick(e,t)},r.dragEnd=function(e,t){this.isDragging=!1,setTimeout(()=>delete this.isPreventingClicks),this.emitEvent(`dragEnd`,[e,t])},r.pointerDone=function(){this.isPointerDown=!1,delete this.pointerIdentifier,this.unbindActivePointerEvents(),this.emitEvent(`pointerDone`)},r.onpointercancel=function(e){this.withPointer(`pointerCancel`,e)},r.ontouchcancel=function(e){this.withTouch(`pointerCancel`,e)},r.pointerCancel=function(e,t){this.pointerDone(),this.emitEvent(`pointerCancel`,[e,t])},r.onclick=function(e){this.isPreventingClicks&&e.preventDefault()},r.staticClick=function(e,t){let n=e.type===`mouseup`;n&&this.isIgnoringMouseUp||(this.emitEvent(`staticClick`,[e,t]),n&&(this.isIgnoringMouseUp=!0,setTimeout(()=>{delete this.isIgnoringMouseUp},400)))},n})})),_C={class:`controll`},vC={class:`controll__item controll__item--circle`},yC={class:`controll__pan controll__item--circle__inner`},bC={class:`controll__pan__up controll__item--circle__inner__up`},xC={class:`controll__pan__right controll__item--circle__inner__right`},SC={class:`controll__pan__down controll__item--circle__inner__down`},CC={class:`controll__pan__left controll__item--circle__inner__left`},wC={class:`controll__home controll__item controll__item--list-item`},TC={class:`controll__zoom-in controll__item controll__item--list-item`},EC={class:`controll__zoom-in controll__item controll__item--list-item`},DC=$r({__name:`ControlButtons`,emits:[`buttondown`,`buttonup`],setup(e,{emit:t}){let n=t;function r(e,t){n(`buttondown`,{key:t})}function i(e,t){n(`buttonup`,{key:t})}return(e,t)=>(H(),ds(`div`,{id:`v-zoomable-control-btns`,class:`controll__buttons`,onDblclick:t[31]||=nu(()=>{},[`stop`]),onMousedown:t[32]||=nu(()=>{},[`stop`])},[U(`ul`,_C,[U(`li`,vC,[U(`ul`,yC,[U(`li`,bC,[U(`a`,{onPointerdown:t[0]||=e=>r(e,`pan-up`),onPointerup:t[1]||=e=>i(e,`pan-up`),onPointercancel:t[2]||=e=>i(e,`pan-up`),onPointerleave:t[3]||=e=>i(e,`pan-up`),onContextmenu:t[4]||=nu(()=>{},[`prevent`])},t[33]||=[U(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,class:`feather feather-chevron-up`},[U(`polyline`,{points:`18 15 12 9 6 15`})],-1)],32)]),U(`li`,xC,[U(`a`,{onPointerdown:t[5]||=e=>r(e,`pan-right`),onPointerup:t[6]||=e=>i(e,`pan-right`),onPointercancel:t[7]||=e=>i(e,`pan-right`),onPointerleave:t[8]||=e=>i(e,`pan-right`),onContextmenu:t[9]||=nu(()=>{},[`prevent`])},t[34]||=[U(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,class:`feather feather-chevron-right`},[U(`polyline`,{points:`9 18 15 12 9 6`})],-1)],32)]),U(`li`,SC,[U(`a`,{onPointerdown:t[10]||=e=>r(e,`pan-down`),onPointerup:t[11]||=e=>i(e,`pan-down`),onPointercancel:t[12]||=e=>i(e,`pan-down`),onPointerleave:t[13]||=e=>i(e,`pan-down`),onContextmenu:t[14]||=nu(()=>{},[`prevent`])},t[35]||=[U(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,class:`feather feather-chevron-down`},[U(`polyline`,{points:`6 9 12 15 18 9`})],-1)],32)]),U(`li`,CC,[U(`a`,{onPointerdown:t[15]||=e=>r(e,`pan-left`),onPointercancel:t[16]||=e=>i(e,`pan-left`),onPointerup:t[17]||=e=>i(e,`pan-left`),onPointerleave:t[18]||=e=>i(e,`pan-left`),onContextmenu:t[19]||=nu(()=>{},[`prevent`])},t[36]||=[U(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,class:`feather feather-chevron-left`},[U(`polyline`,{points:`15 18 9 12 15 6`})],-1)],32)])])]),U(`li`,wC,[U(`a`,{onPointerdown:t[20]||=e=>r(e,`home`)},t[37]||=[Ss(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-minimize-2" data-v-3ba139de><polyline points="4 14 10 14 10 20" data-v-3ba139de></polyline><polyline points="20 10 14 10 14 4" data-v-3ba139de></polyline><line x1="14" y1="10" x2="21" y2="3" data-v-3ba139de></line><line x1="3" y1="21" x2="10" y2="14" data-v-3ba139de></line></svg>`,1)],32)]),U(`li`,TC,[U(`a`,{onPointerdown:t[21]||=e=>r(e,`zoom-in`),onPointerup:t[22]||=e=>i(e,`zoom-in`),onPointercancel:t[23]||=e=>i(e,`zoom-in`),onPointerleave:t[24]||=e=>i(e,`zoom-in`),onContextmenu:t[25]||=nu(()=>{},[`prevent`])},t[38]||=[Ss(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-zoom-in" data-v-3ba139de><circle cx="11" cy="11" r="8" data-v-3ba139de></circle><line x1="21" y1="21" x2="16.65" y2="16.65" data-v-3ba139de></line><line x1="11" y1="8" x2="11" y2="14" data-v-3ba139de></line><line x1="8" y1="11" x2="14" y2="11" data-v-3ba139de></line></svg>`,1)],32)]),U(`li`,EC,[U(`a`,{onPointerdown:t[26]||=e=>r(e,`zoom-out`),onPointerup:t[27]||=e=>i(e,`zoom-out`),onPointercancel:t[28]||=e=>i(e,`zoom-out`),onPointerleave:t[29]||=e=>i(e,`zoom-out`),onContextmenu:t[30]||=nu(()=>{},[`prevent`])},t[39]||=[U(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,class:`feather feather-zoom-out`},[U(`circle`,{cx:`11`,cy:`11`,r:`8`}),U(`line`,{x1:`21`,y1:`21`,x2:`16.65`,y2:`16.65`}),U(`line`,{x1:`8`,y1:`11`,x2:`14`,y2:`11`})],-1)],32)])])],32))}}),OC=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},kC=OC(DC,[[`__scopeId`,`data-v-3ba139de`]]);function AC(){let e=0;function t(t,n,r,i){t(),e=window.setTimeout(()=>{e=window.setInterval(()=>{n()},i)},r)}function n(){e&&=(window.clearInterval(e),0)}return{startHold:t,clearHold:n}}var jC=`control-btn`;function MC({props:e,transform:t}){let n=AC();function r(r){n.startHold(()=>{t.changeZoom(r*e.buttonZoomStep*.5,jC)},()=>{t.changeZoom(r*e.buttonZoomStep*.5,jC)},300,50)}function i(t){if(!e.disabled)switch(t.key){case`home`:s();break;case`zoom-in`:r(1);break;case`zoom-out`:r(-1);break;case`pan-left`:o({x:1,y:0});break;case`pan-right`:o({x:-1,y:0});break;case`pan-up`:o({x:0,y:1});break;case`pan-down`:o({x:0,y:-1});break}}function a(e){n.clearHold()}function o(r){n.startHold(()=>{t.changePan(r.x*e.buttonPanStep,r.y*e.buttonPanStep,jC)},()=>{t.changePan(r.x*e.buttonPanStep,r.y*e.buttonPanStep,jC)},300,50)}function s(){t.goHome(jC)}return{onButtonDown:i,onButtonUp:a}}function NC({props:e,transform:t}){let n={x:0,y:0};function r(t){e.disabled||t.pointerType!==`mouse`||!e.mouseEnabled||(n={x:t.clientX,y:t.clientY},document.addEventListener(`pointermove`,a,{passive:!1}),document.addEventListener(`pointerup`,function(e){document.removeEventListener(`pointermove`,a)}),document.addEventListener(`pointerleave`,function(e){document.removeEventListener(`pointermove`,a)}),document.addEventListener(`pointercancel`,function(e){document.removeEventListener(`pointermove`,a)}))}function i(n){if(e.disabled||!e.dblClickEnabled||!e.zoomEnabled)return;let r={x:n.clientX,y:n.clientY};t.changeZoom(e.dblClickZoomStep,`dblClick`,r)}function a(r){if(e.disabled||!e.panEnabled||r.pointerType!==`mouse`||!e.mouseEnabled)return;let i={x:r.clientX-n.x,y:r.clientY-n.y};t.changePan(i.x,i.y,r.pointerType),n={x:r.clientX,y:r.clientY},r.preventDefault()}return{onPointerDown:r,onDblClick:i}}function PC({props:e,transform:t}){let n=z({}),r=z(0),i=null;function a(n){if(e.disabled||!e.touchEnabled||!e.panEnabled&&!e.zoomEnabled||(n.preventDefault(),n.touches.length<1))return;let a=n.touches.item(0);if(!a)return;let s=0,c={x:a.clientX,y:a.clientY};if(n.touches.length===2){let e=n.touches.item(1),i=o({x:a?a.clientX:0,y:a?a.clientY:0},{x:e?e.clientX:0,y:e?e.clientY:0});r.value<=0?(r.value=i.distance,s=0):(s=i.distance/r.value*t.zoom.value-t.zoom.value,r.value=i.distance),c=i.center}if(e.zoomEnabled&&t.changeZoom(s,`touch`,c),i===null){i={x:c.x,y:c.y};return}let l={x:c.x-i.x,y:c.y-i.y};e.panEnabled&&t.changePan(l.x,l.y,`touch`),i={x:c.x,y:c.y}}function o(e,t){return{distance:Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2),center:{x:(e.x+t.x)/2,y:(e.y+t.y)/2}}}function s(t){e.disabled||!e.touchEnabled||(i=null,document.addEventListener(`touchmove`,a,{passive:!1}),document.addEventListener(`touchend`,function(e){t.touches.length<2&&(r.value=-1),document.removeEventListener(`touchmove`,a)}))}return{onTouchStart:s,touchCount:G(()=>Object.keys(n.value).length)}}function FC({props:e,onChange:t,container:n,target:r}){let i=z({x:0,y:0}),a=z(0);Wi(()=>{a.value=e.minZoom,i.value={x:e.pan==null?e.initialPanX:e.pan.x,y:e.pan==null?e.initialPanY:e.pan.y},e.zoom?a.value=e.zoom:e.initialZoom>=e.minZoom&&e.initialZoom<=e.maxZoom&&(a.value=e.initialZoom)}),br(()=>e.zoom,()=>{isNaN(e.zoom)||(a.value=e.zoom)}),br(()=>e.pan,()=>{e.pan&&(i.value.x=e.pan.x,i.value.y=e.pan.y)},{deep:!0});function o(r,o,c){if(isNaN(r)||r===0)return;let l=a.value,u=a.value+r;if(u>e.maxZoom?u=e.maxZoom:u<e.minZoom&&(u=e.minZoom),!(Math.abs(l-u)<1e-4)){if(a.value=u,e.zoomOrigin===`center`&&(c=IC(n.value)),e.zoomOrigin!==`content-center`){c||=IC(n.value);let e=LC(n.value,i.value),t={x:(u-l)*((e.x-c.x)/l),y:(u-l)*((e.y-c.y)/l)};s(t.x,t.y,`zoom`)}t(`zoom`,{zoom:u,delta:{zoom:r,pan:{x:0,y:0}},pan:{x:i.value.x,y:i.value.y,deltaX:0,deltaY:0},type:o})}}function s(e,n,r){isNaN(e)&&(e=0),isNaN(n)&&(n=0),i.value={x:i.value.x+e,y:i.value.y+n},t(`panned`,{zoom:a.value,delta:{zoom:0,pan:{x:e,y:n}},pan:{x:i.value.x,y:i.value.y,deltaX:e,deltaY:n},type:r})}function c(n){a.value=e.initialZoom,t(`zoom`,{zoom:a.value,pan:{x:i.value.x,y:i.value.y,deltaX:0,deltaY:0},type:n});let r={x:e.initialPanX-i.value.x,y:e.initialPanY-i.value.y};i.value={x:e.initialPanX,y:e.initialPanY},t(`panned`,{zoom:a.value,pan:{x:i.value.x,y:i.value.y,deltaX:r.x,deltaY:r.y},type:n})}return{zoom:G(()=>a.value),pan:G(()=>i.value),setZoom:e=>{a.value=e},setPan:e=>{i.value=e},changeZoom:o,changePan:s,goHome:c}}function IC(e){let t=e.getBoundingClientRect();return{x:t.left+t.width/2,y:t.top+t.height/2}}function LC(e,t){let n=IC(e);return{x:n.x+t.x,y:n.y+t.y}}function RC({props:e,transform:t}){function n(n){if(e.disabled||!e.wheelEnabled||!e.zoomEnabled)return;let r=Math.abs(n.deltaY)>0?n.deltaY:n.deltaX,i=e.wheelZoomStep*-1*r/Math.abs(r),a={x:n.clientX,y:n.clientY};t.changeZoom(i,`wheel`,a),n.preventDefault()}return{onWheel:n}}function zC({props:e,onChange:t,container:n,target:r}){let i=FC({props:e,onChange:t,container:n,target:r}),a=PC({props:e,transform:i}),o=RC({props:e,transform:i}),s=NC({props:e,transform:i}),c=MC({props:e,transform:i});return{zoom:i.zoom,pan:i.pan,setZoom:i.setZoom,setPan:i.setPan,onWheel:o.onWheel,onTouchStart:a.onTouchStart,onButtonUp:c.onButtonUp,onButtonDown:c.onButtonDown,onPointerDown:s.onPointerDown,onDblClick:s.onDblClick}}var BC=OC($r({__name:`VueZoomable`,props:{zoom:{type:Number,default:null},pan:{type:Object,default:null},selector:{type:String,default:`* > *`},maxZoom:{type:Number,default:3},minZoom:{type:Number,default:.5},initialPanX:{type:Number,default:0},initialPanY:{type:Number,default:0},initialZoom:{type:Number,default:.5},dblClickZoomStep:{type:Number,default:.4},wheelZoomStep:{type:Number,default:.4},panEnabled:{type:Boolean,default:!0},zoomEnabled:{type:Boolean,default:!0},mouseEnabled:{type:Boolean,default:!0},touchEnabled:{type:Boolean,default:!0},dblClickEnabled:{type:Boolean,default:!0},wheelEnabled:{type:Boolean,default:!0},enableControlButton:{type:Boolean,default:!0},buttonPanStep:{type:Number,default:15},buttonZoomStep:{type:Number,default:.1},disabled:{type:Boolean,default:!1},zoomOrigin:{type:String,default:`pointer`}},emits:[`panned`,`zoom`,`update:zoom`,`update:pan`],setup(e,{emit:t}){let n=t,r=e,i=z(),a=G(()=>i.value?.querySelector(r.selector)),o=zC({props:r,onChange:s,container:i,target:a});function s(e,t){e===`zoom`?n(`update:zoom`,t.zoom):e===`panned`&&n(`update:pan`,t.pan),n(e,t)}let c=G(()=>`translate(${o.pan.value.x}px, ${o.pan.value.y}px) scale(${o.zoom.value})`);function l(){a.value&&(a.value.style.transform=c.value,a.value.style.transformOrigin=`center center`,a.value.style.transition=`transform 0.07s ease-out`,a.value.style.transformBox=`fill-box`)}return br(c,()=>{l()},{flush:`post`}),Wi(()=>{l()}),(e,t)=>(H(),ds(`div`,{ref_key:`container`,ref:i,class:fe(e.$style.container),onDblclick:t[0]||=(...e)=>B(o).onDblClick&&B(o).onDblClick(...e),onPointerdown:t[1]||=(...e)=>B(o).onPointerDown&&B(o).onPointerDown(...e),onWheel:t[2]||=(...e)=>B(o).onWheel&&B(o).onWheel(...e),onTouchstart:t[3]||=(...e)=>B(o).onTouchStart&&B(o).onTouchStart(...e)},[la(e.$slots,`default`,{},void 0,!0),la(e.$slots,`buttons`,{},()=>[B(r).enableControlButton?(H(),fs(kC,{key:0,onButtondown:B(o).onButtonDown,onButtonup:B(o).onButtonUp},null,8,[`onButtondown`,`onButtonup`])):Cs(``,!0)],!0)],34))}}),[[`__cssModules`,{$style:{container:`_container_irdvc_2`,buttons:`_buttons_irdvc_11`}}],[`__scopeId`,`data-v-fce7d501`]]),VC;(function(e){e.Unimplemented=`UNIMPLEMENTED`,e.Unavailable=`UNAVAILABLE`})(VC||={});var HC=class extends Error{constructor(e,t,n){super(e),this.message=e,this.code=t,this.data=n}},UC=e=>e?.androidBridge?`android`:e?.webkit?.messageHandlers?.bridge?`ios`:`web`,WC=e=>{let t=e.CapacitorCustomPlatform||null,n=e.Capacitor||{},r=n.Plugins=n.Plugins||{},i=()=>t===null?UC(e):t.name,a=()=>i()!==`web`,o=e=>!!(l.get(e)?.platforms.has(i())||s(e)),s=e=>n.PluginHeaders?.find(t=>t.name===e),c=t=>e.console.error(t),l=new Map;return n.convertFileSrc||=e=>e,n.getPlatform=i,n.handleError=c,n.isNativePlatform=a,n.isPluginAvailable=o,n.registerPlugin=(e,a={})=>{let o=l.get(e);if(o)return console.warn(`Capacitor plugin "${e}" already registered. Cannot register plugins twice.`),o.proxy;let c=i(),u=s(e),d,f=async()=>(!d&&c in a?d=d=typeof a[c]==`function`?await a[c]():a[c]:t!==null&&!d&&`web`in a&&(d=d=typeof a.web==`function`?await a.web():a.web),d),p=(t,r)=>{if(u){let i=u?.methods.find(e=>r===e.name);if(i)return i.rtype===`promise`?t=>n.nativePromise(e,r.toString(),t):(t,i)=>n.nativeCallback(e,r.toString(),t,i);if(t)return t[r]?.bind(t)}else if(t)return t[r]?.bind(t);else throw new HC(`"${e}" plugin is not implemented on ${c}`,VC.Unimplemented)},m=t=>{let n,r=(...r)=>{let i=f().then(i=>{let a=p(i,t);if(a){let e=a(...r);return n=e?.remove,e}throw new HC(`"${e}.${t}()" is not implemented on ${c}`,VC.Unimplemented)});return t===`addListener`&&(i.remove=async()=>n()),i};return r.toString=()=>`${t.toString()}() { [capacitor code] }`,Object.defineProperty(r,"name",{value:t,writable:!1,configurable:!1}),r},h=m(`addListener`),g=m(`removeListener`),v=(e,t)=>{let n=h({eventName:e},t),r=async()=>{let r=await n;g({eventName:e,callbackId:r},t)},i=new Promise(e=>n.then(()=>e({remove:r})));return i.remove=async()=>{console.warn(`Using addListener() without 'await' is deprecated.`),await r()},i},y=new Proxy({},{get(e,t){switch(t){case`$$typeof`:return;case`toJSON`:return()=>({});case`addListener`:return u?v:h;case`removeListener`:return g;default:return m(t)}}});return r[e]=y,l.set(e,{name:e,proxy:y,platforms:new Set([...Object.keys(a),...u?[c]:[]])}),y},n.Exception=HC,n.DEBUG=!!n.DEBUG,n.isLoggingEnabled=!!n.isLoggingEnabled,n},GC=(e=>e.Capacitor=WC(e))(typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}),KC=GC.registerPlugin,qC=class{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(e,t){let n=!1;this.listeners[e]||(this.listeners[e]=[],n=!0),this.listeners[e].push(t);let r=this.windowListeners[e];return r&&!r.registered&&this.addWindowListener(r),n&&this.sendRetainedArgumentsForEvent(e),Promise.resolve({remove:async()=>this.removeListener(e,t)})}async removeAllListeners(){this.listeners={};for(let e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,t,n){let r=this.listeners[e];if(!r){if(n){let n=this.retainedEventArguments[e];n||=[],n.push(t),this.retainedEventArguments[e]=n}return}r.forEach(e=>e(t))}hasListeners(e){return!!this.listeners[e]?.length}registerWindowListener(e,t){this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:e=>{this.notifyListeners(t,e)}}}unimplemented(e=`not implemented`){return new GC.Exception(e,VC.Unimplemented)}unavailable(e=`not available`){return new GC.Exception(e,VC.Unavailable)}async removeListener(e,t){let n=this.listeners[e];if(!n)return;let r=n.indexOf(t);this.listeners[e].splice(r,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}sendRetainedArgumentsForEvent(e){let t=this.retainedEventArguments[e];t&&(delete this.retainedEventArguments[e],t.forEach(t=>{this.notifyListeners(e,t)}))}},JC=KC(`WebView`),YC=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),XC=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent),ZC=class extends qC{async getCookies(){let e=document.cookie,t={};return e.split(`;`).forEach(e=>{if(e.length<=0)return;let[n,r]=e.replace(/=/,`CAP_COOKIE`).split(`CAP_COOKIE`);n=XC(n).trim(),r=XC(r).trim(),t[n]=r}),t}async setCookie(e){try{let t=YC(e.key),n=YC(e.value),r=e.expires?`; expires=${e.expires.replace(`expires=`,``)}`:``,i=(e.path||`/`).replace(`path=`,``),a=e.url!=null&&e.url.length>0?`domain=${e.url}`:``;document.cookie=`${t}=${n||``}${r}; path=${i}; ${a};`}catch(e){return Promise.reject(e)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(e){return Promise.reject(e)}}async clearCookies(){try{let e=document.cookie.split(`;`)||[];for(let t of e)document.cookie=t.replace(/^ +/,``).replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}},QC=KC(`CapacitorCookies`,{web:()=>new ZC}),$C=async e=>new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=r.result;t(e.indexOf(`,`)>=0?e.split(`,`)[1]:e)},r.onerror=e=>n(e),r.readAsDataURL(e)}),ew=(e={})=>{let t=Object.keys(e);return Object.keys(e).map(e=>e.toLocaleLowerCase()).reduce((n,r,i)=>(n[r]=e[t[i]],n),{})},tw=(e,t=!0)=>e?Object.entries(e).reduce((e,n)=>{let[r,i]=n,a,o;return Array.isArray(i)?(o=``,i.forEach(e=>{a=t?encodeURIComponent(e):e,o+=`${r}=${a}&`}),o.slice(0,-1)):(a=t?encodeURIComponent(i):i,o=`${r}=${a}`),`${e}&${o}`},``).substr(1):null,nw=(e,t={})=>{let n=Object.assign({method:e.method||`GET`,headers:e.headers},t),r=ew(e.headers)[`content-type`]||``;if(typeof e.data==`string`)n.body=e.data;else if(r.includes(`application/x-www-form-urlencoded`)){let t=new URLSearchParams;for(let[n,r]of Object.entries(e.data||{}))t.set(n,r);n.body=t.toString()}else if(r.includes(`multipart/form-data`)||e.data instanceof FormData){let t=new FormData;if(e.data instanceof FormData)e.data.forEach((e,n)=>{t.append(n,e)});else for(let n of Object.keys(e.data))t.append(n,e.data[n]);n.body=t;let r=new Headers(n.headers);r.delete(`content-type`),n.headers=r}else(r.includes(`application/json`)||typeof e.data==`object`)&&(n.body=JSON.stringify(e.data));return n},rw=class extends qC{async request(e){let t=nw(e,e.webFetchExtra),n=tw(e.params,e.shouldEncodeUrlParams),r=n?`${e.url}?${n}`:e.url,i=await fetch(r,t),a=i.headers.get(`content-type`)||``,{responseType:o=`text`}=i.ok?e:{};a.includes(`application/json`)&&(o=`json`);let s,c;switch(o){case`arraybuffer`:case`blob`:c=await i.blob(),s=await $C(c);break;case`json`:s=await i.json();break;default:s=await i.text()}let l={};return i.headers.forEach((e,t)=>{l[t]=e}),{data:s,headers:l,status:i.status,url:i.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:`GET`}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:`POST`}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:`PUT`}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:`PATCH`}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:`DELETE`}))}},iw=KC(`CapacitorHttp`,{web:()=>new rw}),aw;(function(e){e.Dark=`DARK`,e.Light=`LIGHT`,e.Default=`DEFAULT`})(aw||={});var ow;(function(e){e.StatusBar=`StatusBar`,e.NavigationBar=`NavigationBar`})(ow||={});var sw=class extends qC{async setStyle(){this.unavailable(`not available for web`)}async setAnimation(){this.unavailable(`not available for web`)}async show(){this.unavailable(`not available for web`)}async hide(){this.unavailable(`not available for web`)}},cw=KC(`SystemBars`,{web:()=>new sw}),lw=KC(`Badge`,{web:()=>_g(()=>import(`./web-lrnXIJTz.js`).then(e=>new e.BadgeWeb),[],import.meta.url)}),uw={};function dw(e){return e.getIsPending!==void 0}function fw(e){if(dw(e))return e;let t=!0,n=e.then(e=>(t=!1,e),e=>{throw t=!1,e});return n.getIsPending=function(){return t},n}function pw(e){let t={},n=e.attributes;if(!n)return t;for(let e=n.length-1;e>=0;e--)t[n[e].name]=n[e].value;return t}function mw(e){return Object.keys(e).reduce((t,n)=>(e[n]!==!1&&e[n]!==null&&e[n]!==void 0&&(t[n]=e[n]),t),{})}function hw(e,t){let{class:n,style:r,...i}=pw(e),{class:a,style:o,...s}=mw(t);return{class:[n,a],style:[r,o],...i,...s}}var gw=$r({inheritAttrs:!1,__name:`InlineSvg`,props:{src:{},title:{default:void 0},transformSource:{type:Function,default:e=>e},keepDuringLoading:{type:Boolean,default:!0},uniqueIds:{type:[Boolean,String],default:!1},uniqueIdsBase:{default:``}},emits:[`loaded`,`unloaded`,`error`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=Ta(),o=z(),s=z(),c=z(),l=Math.random().toString(36).substring(2);t({svgElSource:o,request:c}),br(()=>r.src,e=>{d(e)}),d(r.src);function u(e){if(e=e.cloneNode(!0),r.uniqueIds){let t=typeof r.uniqueIds==`string`?r.uniqueIds:l;e=h(e,t,r.uniqueIdsBase)}return e=r.transformSource(e),r.title&&m(e,r.title),e.innerHTML}function d(e){uw[e]||(uw[e]=f(e)),o.value&&uw[e].getIsPending()&&!r.keepDuringLoading&&(o.value=null,i(`unloaded`)),uw[e].then(e=>{o.value=e,Gn(()=>{i(`loaded`,s.value)})}).catch(t=>{o.value&&(o.value=void 0,i(`unloaded`)),delete uw[e],i(`error`,t)})}function f(e){return fw(new Promise((t,n)=>{let r=new XMLHttpRequest;r.open(`GET`,e,!0),c.value=r,r.onload=()=>{if(r.status>=200&&r.status<400)try{let e=new DOMParser().parseFromString(r.responseText,`text/xml`).getElementsByTagName(`svg`)[0];e?t(e):n(Error(`Loaded file is not valid SVG"`))}catch(e){n(e)}else n(Error(`Error loading SVG`))},r.onerror=n,r.send()}))}let p=()=>o.value?$s(`svg`,{...hw(o.value,a),innerHTML:u(o.value),ref:s}):null;function m(e,t){let n=e.getElementsByTagName(`title`);if(n.length)n[0].textContent=t;else{let n=document.createElementNS(`http://www.w3.org/2000/svg`,`title`);n.textContent=t,e.insertBefore(n,e.firstChild)}}function h(e,t,n=``){let r=[`id`,`href`,`xlink:href`,`xlink:role`,`xlink:arcrole`],i=[`href`,`xlink:href`],a=(e,t)=>i.includes(e)&&(t?!t.includes(`#`):!1);return[...e.children].forEach(e=>{var i;if((i=e.attributes)!=null&&i.length){let i=Object.values(e.attributes).map(e=>{let r=/url\((.*?)\)/.exec(e.value);return r!=null&&r[1]&&(e.value=e.value.replace(r[0],`url(${n}${r[1]}_${t})`)),e});r.forEach(e=>{let n=i.find(t=>t.name===e);n&&!a(e,n.value)&&(n.value=`${n.value}_${t}`)})}return e.children.length?h(e,t,n):e}),e}return(e,t)=>(H(),fs(p))}});function _w(e){return typeof e==`function`}function vw(e){return e==null}var yw=e=>e!==null&&!!e&&typeof e==`object`&&!Array.isArray(e);function bw(e){return Number(e)>=0}function xw(e){let t=parseFloat(e);return isNaN(t)?e:t}function Sw(e){return typeof e==`object`&&!!e}function Cw(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}function ww(e){if(!Sw(e)||Cw(e)!==`[object Object]`)return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Tw(e,t){return Object.keys(t).forEach(n=>{if(ww(t[n])&&ww(e[n])){e[n]||(e[n]={}),Tw(e[n],t[n]);return}e[n]=t[n]}),e}function Ew(e){let t=e.split(`.`);if(!t.length)return``;let n=String(t[0]);for(let e=1;e<t.length;e++){if(bw(t[e])){n+=`[${t[e]}]`;continue}n+=`.${t[e]}`}return n}var Dw={};function Ow(e){return Dw[e]}function kw(e,t,n){typeof n.value==`object`&&(n.value=$(n.value)),!n.enumerable||n.get||n.set||!n.configurable||!n.writable||t===`__proto__`?Object.defineProperty(e,t,n):e[t]=n.value}function $(e){if(typeof e!=`object`)return e;var t=0,n,r,i,a=Object.prototype.toString.call(e);if(a===`[object Object]`?i=Object.create(e.__proto__||null):a===`[object Array]`?i=Array(e.length):a===`[object Set]`?(i=new Set,e.forEach(function(e){i.add($(e))})):a===`[object Map]`?(i=new Map,e.forEach(function(e,t){i.set($(t),$(e))})):a===`[object Date]`?i=new Date(+e):a===`[object RegExp]`?i=new RegExp(e.source,e.flags):a===`[object DataView]`?i=new e.constructor($(e.buffer)):a===`[object ArrayBuffer]`?i=e.slice(0):a.slice(-6)===`Array]`&&(i=new e.constructor(e)),i){for(r=Object.getOwnPropertySymbols(e);t<r.length;t++)kw(i,r[t],Object.getOwnPropertyDescriptor(e,r[t]));for(t=0,r=Object.getOwnPropertyNames(e);t<r.length;t++)Object.hasOwnProperty.call(i,n=r[t])&&i[n]===e[n]||kw(i,n,Object.getOwnPropertyDescriptor(e,n))}return i||e}var Aw=Symbol(`vee-validate-form`),jw=Symbol(`vee-validate-form-context`),Mw=Symbol(`vee-validate-field-instance`),Nw=Symbol(`Default empty value`),Pw=typeof window<`u`;function Fw(e){return _w(e)&&!!e.__locatorRef}function Iw(e){return yw(e)&&`~standard`in e}function Lw(e){return e===`checkbox`||e===`radio`}function Rw(e){return yw(e)||Array.isArray(e)}function zw(e){return Array.isArray(e)?e.length===0:yw(e)&&Object.keys(e).length===0}function Bw(e){return/^\[.+\]$/i.test(e)}function Vw(e){return Hw(e)&&e.multiple}function Hw(e){return e.tagName===`SELECT`}function Uw(e,t){let n=![!1,null,void 0,0].includes(t.multiple)&&!Number.isNaN(t.multiple);return e===`select`&&`multiple`in t&&n}function Ww(e,t){return!Uw(e,t)&&t.type!==`file`&&!Lw(t.type)}function Gw(e){return Kw(e)&&e.target&&`submit`in e.target}function Kw(e){return e?!!(typeof Event<`u`&&_w(Event)&&e instanceof Event||e&&e.srcElement):!1}function qw(e,t){return t in e&&e[t]!==Nw}function Jw(e,t){if(e===t)return!0;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Jw(e[r],t[r]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(r of e.entries())if(!t.has(r[0]))return!1;for(r of e.entries())if(!Jw(r[1],t.get(r[0])))return!1;return!0}if(Xw(e)&&Xw(t))return e.size===t.size&&e.name===t.name&&e.lastModified===t.lastModified&&e.type===t.type;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(r of e.entries())if(!t.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(e=Yw(e),t=Yw(t),i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){var a=i[r];if(!Jw(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Yw(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}function Xw(e){return Pw?e instanceof File:!1}function Zw(e){if(e.path?.length){let t=``;for(let n of e.path){let e=typeof n==`object`?n.key:n;if(typeof e==`string`||typeof e==`number`)t+=t?`.${e}`:e;else return null}return t}return null}function Qw(e){return Bw(e)?e.replace(/\[|\]/gi,``):e}function $w(e,t,n){return e?Bw(t)?e[Qw(t)]:(t||``).split(/\.|\[(\d+)\]/).filter(Boolean).reduce((e,t)=>Rw(e)&&t in e?e[t]:n,e):n}function eT(e,t,n){if(Bw(t)){e[Qw(t)]=n;return}let r=t.split(/\.|\[(\d+)\]/).filter(Boolean),i=e;for(let e=0;e<r.length;e++){if(e===r.length-1){i[r[e]]=n;return}(!(r[e]in i)||vw(i[r[e]]))&&(i[r[e]]=bw(r[e+1])?[]:{}),i=i[r[e]]}}function tT(e,t){if(Array.isArray(e)&&bw(t)){e.splice(Number(t),1);return}yw(e)&&delete e[t]}function nT(e,t){if(Bw(t)){delete e[Qw(t)];return}let n=t.split(/\.|\[(\d+)\]/).filter(Boolean),r=e;for(let e=0;e<n.length;e++){if(e===n.length-1){tT(r,n[e]);break}if(!(n[e]in r)||vw(r[n[e]]))break;r=r[n[e]]}let i=n.map((t,r)=>$w(e,n.slice(0,r).join(`.`)));for(let t=i.length-1;t>=0;t--)if(zw(i[t])){if(t===0){tT(e,n[0]);continue}tT(i[t-1],n[t-1])}}function rT(e){return Object.keys(e)}function iT(e,t=void 0){return Ns()?.provides[e]||pr(e,t)}function aT(e,t,n){if(Array.isArray(e)){let n=[...e],r=n.findIndex(e=>Jw(e,t));return r>=0?n.splice(r,1):n.push(t),n}return Jw(e,t)?n:t}function oT(e,t=0){let n=null,r=[];return function(...i){return n&&clearTimeout(n),n=setTimeout(()=>{let t=e(...i);r.forEach(e=>e(t)),r=[]},t),new Promise(e=>r.push(e))}}function sT(e,t){return yw(t)&&t.number?xw(e):e}function cT(e,t){let n;return async function(...r){let i=e(...r);n=i;let a=await i;return i===n?(n=void 0,t(a,r)):a}}function lT(e){return Array.isArray(e)?e:e?[e]:[]}function uT(e,t){let n={};for(let r in e)t.includes(r)||(n[r]=e[r]);return n}function dT(e){let t=null,n=[];return function(...r){let i=Gn(()=>{if(t!==i)return;let a=e(...r);n.forEach(e=>e(a)),n=[],t=null});return t=i,new Promise(e=>n.push(e))}}function fT(e,t){let n={};for(let r of e){let e=t(r);n[e]||(n[e]={path:e,messages:[]}),`messages`in r?n[e].messages.push(...r.messages):n[e].messages.push(r.message)}return Object.values(n)}function pT(e){return fT(e,e=>e.path?Zw(e)??``:``)}function mT(e,t,n){return t.slots.default?typeof e==`string`||!e?t.slots.default(n()):{default:()=>{var e;return(e=t.slots).default?.call(e,n())}}:t.slots.default}function hT(e){if(gT(e))return e._value}function gT(e){return`_value`in e}function _T(e){return e.type===`range`?Number.isNaN(e.valueAsNumber)?e.value:e.valueAsNumber:e.value}function vT(e){if(!Kw(e))return e;let t=e.target;if(Lw(t.type)&&gT(t))return hT(t);if(t.type===`file`&&t.files){let e=Array.from(t.files);return t.multiple?e:e[0]}if(Vw(t))return Array.from(t.options).filter(e=>e.selected&&!e.disabled).map(hT);if(Hw(t)){let e=Array.from(t.options).find(e=>e.selected);return e?hT(e):t.value}return _T(t)}function yT(e){let t={};return Object.defineProperty(t,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?yw(e)&&e._$$isNormalized?e:yw(e)?Object.keys(e).reduce((t,n)=>{let r=bT(e[n]);return e[n]!==!1&&(t[n]=xT(r)),t},t):typeof e==`string`?e.split(`|`).reduce((e,t)=>{let n=ST(t);return n.name&&(e[n.name]=xT(n.params)),e},t):t:t}function bT(e){return e===!0?[]:Array.isArray(e)||yw(e)?e:[e]}function xT(e){let t=e=>typeof e==`string`&&e[0]===`@`?CT(e.slice(1)):e;return Array.isArray(e)?e.map(t):e instanceof RegExp?[e]:Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{})}var ST=e=>{let t=[],n=e.split(`:`)[0];return e.includes(`:`)&&(t=e.split(`:`).slice(1).join(`:`).split(`,`)),{name:n,params:t}};function CT(e){let t=t=>$w(t,e)??t[e];return t.__locatorRef=e,t}function wT(e){return Array.isArray(e)?e.filter(Fw):rT(e).filter(t=>Fw(e[t])).map(t=>e[t])}var TT=Object.assign({},{generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0}),ET=()=>TT;async function DT(e,t,n={}){let r=n?.bails,i=await OT({name:n?.name||`{field}`,rules:t,label:n?.label,bails:r??!0,formData:n?.values||{}},e);return Object.assign(Object.assign({},i),{valid:!i.errors.length})}async function OT(e,t){let n=e.rules;if(Iw(n))return kT(t,Object.assign(Object.assign({},e),{rules:n}));if(_w(n)||Array.isArray(n)){let r={field:e.label||e.name,name:e.name,label:e.label,form:e.formData,value:t},i=Array.isArray(n)?n:[n],a=i.length,o=[];for(let n=0;n<a;n++){let a=i[n],s=await a(t,r);if(!(typeof s!=`string`&&!Array.isArray(s)&&s)){if(Array.isArray(s))o.push(...s);else{let e=typeof s==`string`?s:jT(r);o.push(e)}if(e.bails)return{errors:o}}}return{errors:o}}let r=Object.assign(Object.assign({},e),{rules:yT(n)}),i=[],a=Object.keys(r.rules),o=a.length;for(let n=0;n<o;n++){let o=a[n],s=await AT(r,t,{name:o,params:r.rules[o]});if(s.error&&(i.push(s.error),e.bails))return{errors:i}}return{errors:i}}async function kT(e,t){let n=await t.rules[`~standard`].validate(e);if(!n.issues)return{value:n.value,errors:[]};let r=[];for(let e of n.issues)e.message&&r.push(e.message);return{errors:r}}async function AT(e,t,n){let r=Ow(n.name);if(!r)throw Error(`No such validator '${n.name}' exists.`);let i=MT(n.params,e.formData),a={field:e.label||e.name,name:e.name,label:e.label,value:t,form:e.formData,rule:Object.assign(Object.assign({},n),{params:i})},o=await r(t,i,a);return typeof o==`string`?{error:o}:{error:o?void 0:jT(a)}}function jT(e){let t=ET().generateMessage;return t?t(e):`Field is invalid`}function MT(e,t){let n=e=>Fw(e)?e(t):e;return Array.isArray(e)?e.map(n):Object.keys(e).reduce((t,r)=>(t[r]=n(e[r]),t),{})}async function NT(e,t){let n=await e[`~standard`].validate($(t)),r={},i={};if(!n.issues)return{valid:!0,results:{},errors:{},values:n.value,source:`schema`};let a=pT(n.issues||[]);for(let e of a){let t=e.messages,n=e.path;r[n]={valid:!t.length,errors:t},t.length&&(i[n]=t[0])}return{valid:!a.length,results:r,errors:i,values:void 0,source:`schema`}}async function PT(e,t,n){let r=rT(e).map(async r=>{let i=n?.names?.[r],a=await DT($w(t,r),e[r],{name:i?.name||r,label:i?.label,values:t,bails:n?.bailsMap?.[r]??!0});return Object.assign(Object.assign({},a),{path:r})}),i=!0,a=await Promise.all(r),o={},s={};for(let e of a)o[e.path]={valid:e.valid,errors:e.errors},e.valid||(i=!1,s[e.path]=e.errors[0]);return{valid:i,results:o,errors:s,source:`schema`}}var FT=0;function IT(e,t){let{value:n,initialValue:r,setInitialValue:i}=LT(e,t.modelValue,t.form);if(!t.form){let{errors:t,setErrors:a}=BT(),o=FT>=2**53-1?0:++FT,s=zT(n,r,t);function c(e){`value`in e&&(n.value=e.value),`errors`in e&&a(e.errors),`touched`in e&&(s.touched=e.touched??s.touched),`initialValue`in e&&i(e.initialValue)}return{id:o,path:e,value:n,initialValue:r,meta:s,flags:{pendingUnmount:{[o]:!1},pendingReset:!1},errors:t,setState:c}}let a=t.form.createPathState(e,{bails:t.bails,label:t.label,type:t.type,validate:t.validate}),o=G(()=>a.errors);function s(r){var a,o;`value`in r&&(n.value=r.value),`errors`in r&&((a=t.form)==null||a.setFieldError(B(e),r.errors)),`touched`in r&&((o=t.form)==null||o.setFieldTouched(B(e),r.touched??!1)),`initialValue`in r&&i(r.initialValue)}return{id:Array.isArray(a.id)?a.id[a.id.length-1]:a.id,path:e,value:n,errors:o,meta:a,initialValue:r,flags:a.__flags,setState:s}}function LT(e,t,n){let r=z(B(t));function i(){return n?$w(n.initialValues.value,B(e),B(r)):B(r)}function a(t){if(!n){r.value=t;return}n.setFieldInitialValue(B(e),t,!0)}let o=G(i);if(!n)return{value:z(i()),initialValue:o,setInitialValue:a};let s=RT(t,n,o,e);return n.stageInitialValue(B(e),s,!0),{value:G({get(){return $w(n.values,B(e))},set(t){n.setFieldValue(B(e),t,!1)}}),initialValue:o,setInitialValue:a}}function RT(e,t,n,r){return nn(e)?B(e):e===void 0?$w(t.values,B(r),B(n)):e}function zT(e,t,n){let r=Wt({touched:!1,pending:!1,valid:!0,validated:!!B(n).length,initialValue:G(()=>B(t)),dirty:G(()=>!Jw(B(e),B(t)))});return br(n,e=>{r.valid=!e.length},{immediate:!0,flush:`sync`}),r}function BT(){let e=z([]);return{errors:e,setErrors:t=>{e.value=lT(t)}}}function VT(e,t,n){return Lw(n?.type)?WT(e,t,n):HT(e,t,n)}function HT(e,t,n){let{initialValue:r,validateOnMount:i,bails:a,type:o,checkedValue:s,label:c,validateOnValueUpdate:l,uncheckedValue:u,controlled:d,keepValueOnUnmount:f,syncVModel:p,form:m}=UT(n),h=d?iT(Aw):void 0,g=m||h,v=G(()=>Ew(V(e))),y=G(()=>{if(V(g?.schema))return;let e=B(t);return Iw(e)||_w(e)||Array.isArray(e)?e:yT(e)}),{id:b,value:x,initialValue:S,meta:C,setState:w,errors:T,flags:E}=IT(v,{modelValue:r,form:g,bails:a,label:c,type:o,validate:y.value?j:void 0}),D=G(()=>T.value[0]);p&>({value:x,prop:p,handleChange:M,shouldValidate:()=>l&&!E.pendingReset});let O=(e,t=!1)=>{C.touched=!0,t&&ee()};async function k(e){if(g?.validateSchema){let{results:t}=await g.validateSchema(e);return t[V(v)]??{valid:!0,errors:[]}}return y.value?DT(x.value,y.value,{name:V(v),label:V(c),values:g?.values??{},bails:a}):{valid:!0,errors:[]}}let ee=cT(async()=>(C.pending=!0,C.validated=!0,k(`validated-only`)),e=>E.pendingUnmount[I.id]?e:(w({errors:e.errors}),C.pending=!1,C.valid=e.valid,e)),A=cT(async()=>k(`silent`),e=>(C.valid=e.valid,e));function j(e){return e?.mode===`silent`?A():ee()}function M(e,t=!0){P(vT(e),t)}Wi(()=>{if(i)return ee();(!g||!g.validateSchema)&&A()});function te(e){C.touched=e}function ne(e){let t=e&&`value`in e?e.value:S.value;w({value:$(t),initialValue:$(t),touched:e?.touched??!1,errors:e?.errors||[]}),C.pending=!1,C.validated=!1,A()}let N=Ns();function P(e,t=!0){x.value=N&&p?sT(e,N.props.modelModifiers):e,(t?ee:A)()}function F(e){w({errors:Array.isArray(e)?e:[e]})}let I={id:b,name:v,label:c,value:G({get(){return x.value},set(e){P(e,l)}}),meta:C,errors:T,errorMessage:D,type:o,checkedValue:s,uncheckedValue:u,bails:a,keepValueOnUnmount:f,resetField:ne,handleReset:()=>ne(),validate:j,handleChange:M,handleBlur:O,setState:w,setTouched:te,setErrors:F,setValue:P};return fr(Mw,I),nn(t)&&typeof B(t)!=`function`&&br(t,(e,t)=>{Jw(e,t)||(C.validated?ee():A())},{deep:!0}),g?(br(G(()=>{let e=y.value;return!e||_w(e)||Iw(e)||Array.isArray(e)?{}:Object.keys(e).reduce((t,n)=>{let r=wT(e[n]).map(e=>e.__locatorRef).reduce((e,t)=>{let n=$w(g.values,t)||g.values[t];return n!==void 0&&(e[t]=n),e},{});return Object.assign(t,r),t},{})}),(e,t)=>{Object.keys(e).length&&(Jw(e,t)||(C.validated?ee():A()))}),qi(()=>{let e=V(I.keepValueOnUnmount)??V(g.keepValuesOnUnmount),t=V(v);if(e||!g||E.pendingUnmount[I.id]){g?.removePathState(t,b);return}E.pendingUnmount[I.id]=!0;let n=g.getPathState(t);if(Array.isArray(n?.id)&&n?.multiple?n?.id.includes(I.id):n?.id===I.id){if(n?.multiple&&Array.isArray(n.value)){let e=n.value.findIndex(e=>Jw(e,V(I.checkedValue)));if(e>-1){let r=[...n.value];r.splice(e,1),g.setFieldValue(t,r)}Array.isArray(n.id)&&n.id.splice(n.id.indexOf(I.id),1)}else g.unsetPathValue(V(v));g.removePathState(t,b)}}),I):I}function UT(e){let t=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),n=!!e?.syncVModel,r=typeof e?.syncVModel==`string`?e.syncVModel:`modelValue`,i=n&&!(`initialValue`in(e||{}))?KT(Ns(),r):e?.initialValue;if(!e)return Object.assign(Object.assign({},t()),{initialValue:i});let a=e.controlled??!0,o=e?.syncVModel||!1;return Object.assign(Object.assign(Object.assign({},t()),e||{}),{initialValue:i,controlled:a??!0,checkedValue:e?.checkedValue,syncVModel:o})}function WT(e,t,n){let r=n?.controlled?iT(Aw):void 0,i=n?.checkedValue,a=n?.uncheckedValue;function o(t){let o=t.handleChange,s=G(()=>{let e=V(t.value),n=V(i);return Array.isArray(e)?e.findIndex(e=>Jw(e,n))>=0:Jw(n,e)});function c(c,l=!0){if(s.value===c?.target?.checked){l&&t.validate();return}let u=V(e),d=r?.getPathState(u),f=vT(c),p=V(i)??f;r&&d?.multiple&&d.type===`checkbox`?p=aT($w(r.values,u)||[],p,void 0):n?.type===`checkbox`&&(p=aT(V(t.value),p,V(a))),o(p,l)}return Object.assign(Object.assign({},t),{checked:s,checkedValue:i,uncheckedValue:a,handleChange:c})}return o(HT(e,t,n))}function GT({prop:e,value:t,handleChange:n,shouldValidate:r}){let i=Ns();if(!i||!e)return;let a=typeof e==`string`?e:`modelValue`,o=`update:${a}`;a in i.props&&(br(t,e=>{Jw(e,KT(i,a))||i.emit(o,e)}),br(()=>KT(i,a),e=>{if(e===Nw&&t.value===void 0)return;let i=e===Nw?void 0:e;Jw(i,t.value)||n(i,r())}))}function KT(e,t){if(e)return e.props[t]}var qT=$r({name:`Field`,inheritAttrs:!1,props:{as:{type:[String,Object],default:void 0},name:{type:String,required:!0},rules:{type:[Object,String,Function],default:void 0},validateOnMount:{type:Boolean,default:!1},validateOnBlur:{type:Boolean,default:void 0},validateOnChange:{type:Boolean,default:void 0},validateOnInput:{type:Boolean,default:void 0},validateOnModelUpdate:{type:Boolean,default:void 0},bails:{type:Boolean,default:()=>ET().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:Nw},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},controlled:{type:Boolean,default:!0},keepValue:{type:Boolean,default:void 0}},setup(e,t){let n=hn(e,`rules`),r=hn(e,`name`),i=hn(e,`label`),a=hn(e,`uncheckedValue`),o=hn(e,`keepValue`),{errors:s,value:c,errorMessage:l,validate:u,handleChange:d,handleBlur:f,setTouched:p,resetField:m,handleReset:h,meta:g,checked:v,setErrors:y,setValue:b}=VT(r,n,{validateOnMount:e.validateOnMount,bails:e.bails,controlled:e.controlled,type:t.attrs.type,initialValue:XT(e,t),checkedValue:t.attrs.value,uncheckedValue:a,label:i,validateOnValueUpdate:e.validateOnModelUpdate,keepValueOnUnmount:o,syncVModel:!0}),x=function(e,t=!0){d(e,t)},S=G(()=>{let{validateOnInput:n,validateOnChange:r,validateOnBlur:i,validateOnModelUpdate:a}=YT(e);function o(e){f(e,i),_w(t.attrs.onBlur)&&t.attrs.onBlur(e)}function s(e){x(e,n),_w(t.attrs.onInput)&&t.attrs.onInput(e)}function c(e){x(e,r),_w(t.attrs.onChange)&&t.attrs.onChange(e)}let l={name:e.name,onBlur:o,onInput:s,onChange:c};return l[`onUpdate:modelValue`]=e=>x(e,a),l}),C=G(()=>{let n=Object.assign({},S.value);return Lw(t.attrs.type)&&v&&(n.checked=v.value),Ww(JT(e,t),t.attrs)&&(n.value=c.value),n}),w=G(()=>Object.assign(Object.assign({},S.value),{modelValue:c.value}));function T(){return{field:C.value,componentField:w.value,value:c.value,meta:g,errors:s.value,errorMessage:l.value,validate:u,resetField:m,handleChange:x,handleInput:e=>x(e,!1),handleReset:h,handleBlur:S.value.onBlur,setTouched:p,setErrors:y,setValue:b}}return t.expose({value:c,meta:g,errors:s,errorMessage:l,setErrors:y,setTouched:p,setValue:b,reset:m,validate:u,handleChange:d}),()=>{let n=ra(JT(e,t)),r=mT(n,t,T);return n?$s(n,Object.assign(Object.assign({},t.attrs),C.value),r):r}}});function JT(e,t){let n=e.as||``;return!e.as&&!t.slots.default&&(n=`input`),n}function YT(e){let{validateOnInput:t,validateOnChange:n,validateOnBlur:r,validateOnModelUpdate:i}=ET();return{validateOnInput:e.validateOnInput??t,validateOnChange:e.validateOnChange??n,validateOnBlur:e.validateOnBlur??r,validateOnModelUpdate:e.validateOnModelUpdate??i}}function XT(e,t){return Lw(t.attrs.type)?qw(e,`modelValue`)?e.modelValue:void 0:qw(e,`modelValue`)?e.modelValue:t.attrs.value}var ZT=qT,QT=0,$T=[`bails`,`fieldsCount`,`id`,`multiple`,`type`,`validate`];function eE(e){let t=e?.initialValues||{};return $(Object.assign({},V(t)))}function tE(e){let t=QT++,n=e?.name||`Form`,r=0,i=z(!1),a=z(!1),o=z(0),s=[],c=Wt(eE(e)),l=z([]),u=z({}),d=z({}),f=dT(()=>{d.value=l.value.reduce((e,t)=>(e[Ew(V(t.path))]=t,e),{})});function p(e,t){let n=M(e);if(!n){typeof e==`string`&&(u.value[Ew(e)]=lT(t));return}if(typeof e==`string`){let t=Ew(e);u.value[t]&&delete u.value[t]}n.errors=lT(t),n.valid=!n.errors.length}function m(e){rT(e).forEach(t=>{p(t,e[t])})}e?.initialErrors&&m(e.initialErrors);let h=G(()=>{let e=l.value.reduce((e,t)=>(t.errors.length&&(e[V(t.path)]=t.errors),e),{});return Object.assign(Object.assign({},u.value),e)}),g=G(()=>rT(h.value).reduce((e,t)=>{let n=h.value[t];return n?.length&&(e[t]=n[0]),e},{})),v=G(()=>l.value.reduce((e,t)=>(e[V(t.path)]={name:V(t.path)||``,label:t.label||``},e),{})),y=G(()=>l.value.reduce((e,t)=>(e[V(t.path)]=t.bails??!0,e),{})),b=Object.assign({},e?.initialErrors||{}),x=e?.keepValuesOnUnmount??!1,{initialValues:S,originalInitialValues:C,setInitialValues:w}=rE(l,c,e),T=nE(l,c,C,g),E=G(()=>l.value.reduce((e,t)=>{let n=$w(c,V(t.path));return eT(e,V(t.path),n),e},{})),D=e?.validationSchema;function O(e,t){let n=G(()=>$w(S.value,V(e))),i=d.value[V(e)],a=t?.type===`checkbox`||t?.type===`radio`;if(i&&a){i.multiple=!0;let e=r++;return Array.isArray(i.id)?i.id.push(e):i.id=[i.id,e],i.fieldsCount++,i.__flags.pendingUnmount[e]=!1,i}let o=G(()=>$w(c,V(e))),s=V(e),u=ne.findIndex(e=>e===s);u!==-1&&ne.splice(u,1);let p=r++,m=Wt({id:p,path:e,touched:!1,pending:!1,valid:!0,validated:!!b[s]?.length,initialValue:n,errors:rn([]),bails:t?.bails??!1,label:t?.label,type:t?.type||`default`,value:o,multiple:!1,__flags:{pendingUnmount:{[p]:!1},pendingReset:!1},fieldsCount:1,validate:t?.validate,dirty:G(()=>!Jw(B(o),B(n)))});return l.value.push(m),d.value[s]=m,f(),g.value[s]&&!b[s]&&Gn(()=>{_e(s,{mode:`silent`})}),nn(e)&&br(e,e=>{f();let t=$(o.value);d.value[e]=m,Gn(()=>{eT(c,e,t)})}),m}let k=oT(xe,5),ee=oT(xe,5),A=cT(async e=>await(e===`silent`?k():ee()),(e,[t])=>{let n=rT(ie.errorBag.value),r=[...new Set([...rT(e.results),...l.value.map(e=>e.path),...n])].sort().reduce((n,r)=>{let i=r,a=M(i)||te(i),o=e.results[i]?.errors||[],s=V(a?.path)||i,c=iE({errors:o,valid:!o.length},n.results[s]);return n.results[s]=c,c.valid||(n.errors[s]=c.errors[0]),a&&u.value[s]&&delete u.value[s],a?(a.valid=c.valid,t===`silent`||t===`validated-only`&&!a.validated||p(a,c.errors),n):(p(s,o),n)},{valid:e.valid,results:{},errors:{},source:e.source});return e.values&&(r.values=e.values,r.source=e.source),rT(r.results).forEach(e=>{let n=M(e);n&&t!==`silent`&&(t===`validated-only`&&!n.validated||p(n,r.results[e]?.errors))}),r});function j(e){l.value.forEach(e)}function M(e){let t=typeof e==`string`?Ew(e):e;return typeof t==`string`?d.value[t]:t}function te(e){return l.value.filter(t=>e.startsWith(V(t.path))).reduce((e,t)=>e?t.path.length>e.path.length?t:e:t,void 0)}let ne=[],N;function P(e){return ne.push(e),N||=Gn(()=>{[...ne].sort().reverse().forEach(e=>{nT(c,e)}),ne=[],N=null}),N}function F(e){return function(t,n){return function(r){return r instanceof Event&&(r.preventDefault(),r.stopPropagation()),j(e=>e.touched=!0),i.value=!0,o.value++,ge().then(i=>{let a=$(c);if(i.valid&&typeof t==`function`){let n=$(E.value),o=e?n:a;return i.values&&(o=i.source===`schema`?i.values:Object.assign({},o,i.values)),t(o,{evt:r,controlledValues:n,setErrors:m,setFieldError:p,setTouched:pe,setFieldTouched:le,setValues:se,setFieldValue:ae,resetForm:he,resetField:me})}!i.valid&&typeof n==`function`&&n({values:a,evt:r,errors:i.errors,results:i.results})}).then(e=>(i.value=!1,e),e=>{throw i.value=!1,e})}}}let I=F(!1);I.withControlled=F(!0);function re(e,t){let n=l.value.findIndex(n=>n.path===e&&(Array.isArray(n.id)?n.id.includes(t):n.id===t)),r=l.value[n];if(!(n===-1||!r)){if(Gn(()=>{_e(e,{mode:`silent`,warn:!1})}),r.multiple&&r.fieldsCount&&r.fieldsCount--,Array.isArray(r.id)){let e=r.id.indexOf(t);e>=0&&r.id.splice(e,1),delete r.__flags.pendingUnmount[t]}(!r.multiple||r.fieldsCount<=0)&&(l.value.splice(n,1),ve(e),f(),delete d.value[e])}}function L(e){rT(d.value).forEach(t=>{t.startsWith(e)&&delete d.value[t]}),l.value=l.value.filter(t=>!t.path.startsWith(e)),Gn(()=>{f()})}let ie={name:n,formId:t,values:c,controlledValues:E,errorBag:h,errors:g,schema:D,submitCount:o,meta:T,isSubmitting:i,isValidating:a,fieldArrays:s,keepValuesOnUnmount:x,validateSchema:B(D)?A:void 0,validate:ge,setFieldError:p,validateField:_e,setFieldValue:ae,setValues:se,setErrors:m,setFieldTouched:le,setTouched:pe,resetForm:he,resetField:me,handleSubmit:I,defineField:Ce,stageInitialValue:ye,unsetInitialValue:ve,setFieldInitialValue:be,createPathState:O,getPathState:M,unsetPathValue:P,removePathState:re,initialValues:S,getAllPathStates:()=>l.value,destroyPath:L,isFieldTouched:ue,isFieldDirty:de,isFieldValid:fe};function ae(e,t,n=!0){let r=$(t),i=typeof e==`string`?e:e.path;M(i)||O(i),eT(c,i,r),n&&_e(i)}function oe(e,t=!0){rT(c).forEach(e=>{delete c[e]}),rT(e).forEach(t=>{ae(t,e[t],!1)}),t&&ge()}function se(e,t=!0){Tw(c,e),s.forEach(e=>e&&e.reset()),t&&ge()}function ce(e,t){let n=M(V(e))||O(e);return G({get(){return n.value},set(n){ae(V(e),n,V(t)??!1)}})}function le(e,t){let n=M(e);n&&(n.touched=t)}function ue(e){let t=M(e);return t?t.touched:l.value.filter(t=>t.path.startsWith(e)).some(e=>e.touched)}function de(e){let t=M(e);return t?t.dirty:l.value.filter(t=>t.path.startsWith(e)).some(e=>e.dirty)}function fe(e){let t=M(e);return t?t.valid:l.value.filter(t=>t.path.startsWith(e)).every(e=>e.valid)}function pe(e){if(typeof e==`boolean`){j(t=>{t.touched=e});return}rT(e).forEach(t=>{le(t,!!e[t])})}function me(e,t){let n=t&&`value`in t?t.value:$w(S.value,e),r=M(e);r&&(r.__flags.pendingReset=!0),be(e,$(n),!0),ae(e,n,!1),le(e,t?.touched??!1),p(e,t?.errors||[]),Gn(()=>{r&&(r.__flags.pendingReset=!1)})}function he(e,t){let n=$(e?.values?e.values:C.value);n=t?.force?n:Tw(C.value,n),w(n,{force:t?.force}),j(t=>{t.__flags.pendingReset=!0,t.validated=!1,t.touched=e?.touched?.[V(t.path)]||!1,ae(V(t.path),$w(n,V(t.path)),!1),p(V(t.path),void 0)}),t?.force?oe(n,!1):se(n,!1),m(e?.errors||{}),o.value=e?.submitCount||0,Gn(()=>{ge({mode:`silent`}),j(e=>{e.__flags.pendingReset=!1})})}async function ge(e){let t=e?.mode||`force`;if(t===`force`&&j(e=>e.validated=!0),ie.validateSchema)return ie.validateSchema(t);a.value=!0;let n=await Promise.all(l.value.map(t=>t.validate?t.validate(e).then(e=>({key:V(t.path),valid:e.valid,errors:e.errors,value:e.value})):Promise.resolve({key:V(t.path),valid:!0,errors:[],value:void 0})));a.value=!1;let r={},i={},o={};for(let e of n)r[e.key]={valid:e.valid,errors:e.errors},e.value&&eT(o,e.key,e.value),e.errors.length&&(i[e.key]=e.errors[0]);return{valid:n.every(e=>e.valid),results:r,errors:i,values:o,source:`fields`}}async function _e(e,t){let n=M(e);if(n&&t?.mode!==`silent`&&(n.validated=!0),D){let{results:n}=await A(t?.mode||`validated-only`);return n[e]||{errors:[],valid:!0}}return n?.validate?n.validate(t):(!n&&t?.warn,Promise.resolve({errors:[],valid:!0}))}function ve(e){nT(S.value,e)}function ye(t,n,r=!1){be(t,n),eT(c,t,n),r&&!e?.initialValues&&eT(C.value,t,$(n))}function be(e,t,n=!1){eT(S.value,e,$(t)),n&&eT(C.value,e,$(t))}async function xe(){let e=B(D);if(!e)return{valid:!0,results:{},errors:{},source:`none`};a.value=!0;let t=Iw(e)?await NT(e,c):await PT(e,c,{names:v.value,bailsMap:y.value});return a.value=!1,t}let Se=I((e,{evt:t})=>{Gw(t)&&t.target.submit()});Wi(()=>{if(e?.initialErrors&&m(e.initialErrors),e?.initialTouched&&pe(e.initialTouched),e?.validateOnMount){ge();return}ie.validateSchema&&ie.validateSchema(`silent`)}),nn(D)&&br(D,()=>{var e;(e=ie.validateSchema)==null||e.call(ie,`validated-only`)}),fr(Aw,ie);function Ce(e,t){let n=_w(t)?void 0:t?.label,r=M(V(e))||O(e,{label:n}),i=()=>_w(t)?t(uT(r,$T)):t||{};function a(){r.touched=!0,(i().validateOnBlur??ET().validateOnBlur)&&_e(V(r.path))}function o(){(i().validateOnInput??ET().validateOnInput)&&Gn(()=>{_e(V(r.path))})}function s(){(i().validateOnChange??ET().validateOnChange)&&Gn(()=>{_e(V(r.path))})}let c=G(()=>{let e={onChange:s,onInput:o,onBlur:a};return _w(t)?Object.assign(Object.assign({},e),t(uT(r,$T)).props||{}):t?.props?Object.assign(Object.assign({},e),t.props(uT(r,$T))):e});return[ce(e,()=>i().validateOnModelUpdate??ET()?.validateOnModelUpdate??!0),c]}let we=Object.assign(Object.assign({},ie),{values:Kt(c),handleReset:()=>he(),submitForm:Se});return fr(jw,we),we}function nE(e,t,n,r){let i={touched:`some`,pending:`some`,valid:`every`},a=G(()=>!Jw(t,B(n)));function o(){let t=e.value;return rT(i).reduce((e,n)=>{let r=i[n];return e[n]=t[r](e=>e[n]),e},{})}let s=Wt(o());return _r(()=>{let e=o();s.touched=e.touched,s.valid=e.valid,s.pending=e.pending}),G(()=>Object.assign(Object.assign({initialValues:B(n)},s),{valid:s.valid&&!rT(r.value).length,dirty:a.value}))}function rE(e,t,n){let r=eE(n),i=z(r),a=z($(r));function o(n,r){r?.force?(i.value=$(n),a.value=$(n)):(i.value=Tw($(i.value)||{},$(n)),a.value=Tw($(a.value)||{},$(n))),r?.updateFields&&e.value.forEach(e=>{if(e.touched)return;let n=$w(i.value,V(e.path));eT(t,V(e.path),$(n))})}return{initialValues:i,originalInitialValues:a,setInitialValues:o}}function iE(e,t){return t?{valid:e.valid&&t.valid,errors:[...e.errors,...t.errors]}:e}var aE=$r({name:`Form`,inheritAttrs:!1,props:{as:{type:null,default:`form`},validationSchema:{type:Object,default:void 0},initialValues:{type:Object,default:void 0},initialErrors:{type:Object,default:void 0},initialTouched:{type:Object,default:void 0},validateOnMount:{type:Boolean,default:!1},onSubmit:{type:Function,default:void 0},onInvalidSubmit:{type:Function,default:void 0},keepValues:{type:Boolean,default:!1},name:{type:String,default:`Form`}},setup(e,t){let n=hn(e,`validationSchema`),r=hn(e,`keepValues`),{errors:i,errorBag:a,values:o,meta:s,isSubmitting:c,isValidating:l,submitCount:u,controlledValues:d,validate:f,validateField:p,handleReset:m,resetForm:h,handleSubmit:g,setErrors:v,setFieldError:y,setFieldValue:b,setValues:x,setFieldTouched:S,setTouched:C,resetField:w}=tE({validationSchema:n.value?n:void 0,initialValues:e.initialValues,initialErrors:e.initialErrors,initialTouched:e.initialTouched,validateOnMount:e.validateOnMount,keepValuesOnUnmount:r,name:e.name}),T=g((e,{evt:t})=>{Gw(t)&&t.target.submit()},e.onInvalidSubmit),E=e.onSubmit?g(e.onSubmit,e.onInvalidSubmit):T;function D(e){Kw(e)&&e.preventDefault(),m(),typeof t.attrs.onReset==`function`&&t.attrs.onReset()}function O(t,n){return g(typeof t==`function`&&!n?t:n,e.onInvalidSubmit)(t)}function k(){return $(o)}function ee(){return $(s.value)}function A(){return $(i.value)}function j(){return{meta:s.value,errors:i.value,errorBag:a.value,values:o,isSubmitting:c.value,isValidating:l.value,submitCount:u.value,controlledValues:d.value,validate:f,validateField:p,handleSubmit:O,handleReset:m,submitForm:T,setErrors:v,setFieldError:y,setFieldValue:b,setValues:x,setFieldTouched:S,setTouched:C,resetForm:h,resetField:w,getValues:k,getMeta:ee,getErrors:A}}return t.expose({setFieldError:y,setErrors:v,setFieldValue:b,setValues:x,setFieldTouched:S,setTouched:C,resetForm:h,validate:f,validateField:p,resetField:w,getValues:k,getMeta:ee,getErrors:A,values:o,meta:s,errors:i}),function(){let n=e.as===`form`?e.as:e.as?ra(e.as):null,r=mT(n,t,j);return n?$s(n,Object.assign(Object.assign(Object.assign({},n===`form`?{novalidate:!0}:{}),t.attrs),{onSubmit:E,onReset:D}),r):r}}}),oE=$r({name:`ErrorMessage`,props:{as:{type:String,default:void 0},name:{type:String,required:!0}},setup(e,t){let n=pr(Aw,void 0),r=G(()=>n?.errors.value[e.name]);function i(){return{message:r.value}}return()=>{if(!r.value)return;let n=e.as?ra(e.as):e.as,a=mT(n,t,i),o=Object.assign({role:`alert`},t.attrs);return!n&&(Array.isArray(a)||!a)&&a?.length?a:(Array.isArray(a)||!a)&&!a?.length?$s(n||`span`,o,r.value):$s(n,o,a)}}}),sE={accept:`Ja`,addRule:`Regel hinzufügen`,am:`am`,apply:`Übernehmen`,cancel:`Abbrechen`,choose:`Auswählen`,chooseDate:`Datum wählen`,chooseMonth:`Monat wählen`,chooseYear:`Jahr wählen`,clear:`Löschen`,completed:`Abgeschlossen`,contains:`Enthält`,custom:`Benutzerdefiniert`,dateAfter:`Datum ist nach`,dateBefore:`Datum ist vor`,dateFormat:`dd.mm.yy`,dateIs:`Datum ist`,dateIsNot:`Datum ist nicht`,dayNames:[`Sonntag`,`Montag`,`Dienstag`,`Mittwoch`,`Donnerstag`,`Freitag`,`Samstag`],dayNamesMin:[`So`,`Mo`,`Di`,`Mi`,`Do`,`Fr`,`Sa`],dayNamesShort:[`So`,`Mo`,`Di`,`Mi`,`Do`,`Fr`,`Sa`],emptyFilterMessage:`Keine Ergebnisse gefunden`,emptyMessage:`Keine Einträge gefunden`,emptySearchMessage:`Keine Ergebnisse gefunden`,emptySelectionMessage:`Kein ausgewähltes Element`,endsWith:`Endet mit`,equals:`Ist gleich`,fileChosenMessage:`{0} Dateien`,fileSizeTypes:[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`],filter:`Filtern`,firstDayOfWeek:1,gt:`Größer als`,gte:`Größer oder gleich`,lt:`Kleiner als`,lte:`Kleiner oder gleich`,matchAll:`Trifft auf alle zu`,matchAny:`Trifft auf einige zu`,medium:`Mittel`,monthNames:[`Januar`,`Februar`,`März`,`April`,`Mai`,`Juni`,`Juli`,`August`,`September`,`Oktober`,`November`,`Dezember`],monthNamesShort:[`Jan`,`Feb`,`Mär`,`Apr`,`Mai`,`Jun`,`Jul`,`Aug`,`Sep`,`Okt`,`Nov`,`Dez`],nextDecade:`Nächstes Jahrzehnt`,nextHour:`Nächste Stunde`,nextMinute:`Nächste Minute`,nextMonth:`Nächster Monat`,nextSecond:`Nächste Sekunde`,nextYear:`Nächstes Jahr`,noFileChosenMessage:`Keine Datei ausgewählt`,noFilter:`Kein Filter`,notContains:`Enthält nicht`,notEquals:`Ist ungleich`,now:`Jetzt`,passwordPrompt:`Passwort eingeben`,pending:`Ausstehend`,pm:`pm`,prevDecade:`Vorheriges Jahrzehnt`,prevHour:`Vorherige Stunde`,prevMinute:`Vorherige Minute`,prevMonth:`Vorheriger Monat`,prevSecond:`Vorherige Sekunde`,prevYear:`Vorheriges Jahr`,reject:`Nein`,removeRule:`Regel entfernen`,searchMessage:`{0} Ergebnisse verfügbar`,selectionMessage:`{0} Elemente ausgewählt`,showMonthAfterYear:!1,startsWith:`Beginnt mit`,strong:`Stark`,today:`Heute`,upload:`Hochladen`,weak:`Schwach`,weekHeader:`KW`,aria:{cancelEdit:`Änderungen abbrechen`,close:`Schließen`,collapseLabel:`Einklappen`,collapseRow:`Zeile reduziert`,editRow:`Zeile bearbeiten`,expandLabel:`Ausklappen`,expandRow:`Zeile erweitert`,falseLabel:`Falsch`,filterConstraint:`Filterbeschränkung`,filterOperator:`Filteroperator`,firstPageLabel:`Erste Seite`,gridView:`Rasteransicht`,hideFilterMenu:`Filtermenü ausblenden`,jumpToPageDropdownLabel:`Zum Dropdown-Menü springen`,jumpToPageInputLabel:`Zum Eingabefeld springen`,lastPageLabel:`Letzte Seite`,listLabel:`Optionsliste`,listView:`Listenansicht`,maximizeLabel:`Maximieren`,minimizeLabel:`Minimieren`,moveAllToSource:`Alle zur Quelle bewegen`,moveAllToTarget:`Alle zum Ziel bewegen`,moveBottom:`Zum Ende bewegen`,moveDown:`Nach unten bewegen`,moveTop:`Zum Anfang bewegen`,moveToSource:`Zur Quelle bewegen`,moveToTarget:`Zum Ziel bewegen`,moveUp:`Nach oben bewegen`,navigation:`Navigation`,next:`Nächste`,nextPageLabel:`Nächste Seite`,nullLabel:`Nicht ausgewählt`,otpLabel:`Bitte geben Sie das Einmalkennwortzeichen {0} ein.`,pageLabel:`Seite {page}`,passwordHide:`Passwort verbergen`,passwordShow:`Passwort anzeigen`,previous:`Vorherige`,prevPageLabel:`Vorherige Seite`,removeLabel:`Entfernen`,rotateLeft:`Nach links drehen`,rotateRight:`Nach rechts drehen`,rowsPerPageLabel:`Zeilen pro Seite`,saveEdit:`Änderungen speichern`,scrollTop:`Nach oben scrollen`,selectAll:`Alle Elemente ausgewählt`,selectColor:`Wählen Sie eine Farbe`,selectLabel:`Auswählen`,selectRow:`Zeile ausgewählt`,showFilterMenu:`Filtermenü anzeigen`,slide:`Folie`,slideNumber:`{slideNumber}`,star:`1 Stern`,stars:`{star} Sterne`,trueLabel:`Wahr`,unselectAll:`Alle Elemente abgewählt`,unselectLabel:`Auswahl aufheben`,unselectRow:`Zeile abgewählt`,zoomImage:`Bild vergrößern`,zoomIn:`Vergrößern`,zoomOut:`Verkleinern`}},cE={accept:`Yes`,addRule:`Add Rule`,am:`AM`,apply:`Apply`,cancel:`Cancel`,choose:`Choose`,chooseDate:`Choose Date`,chooseMonth:`Choose Month`,chooseYear:`Choose Year`,clear:`Clear`,completed:`Completed`,contains:`Contains`,custom:`Custom`,dateAfter:`Date is after`,dateBefore:`Date is before`,dateFormat:`mm/dd/yy`,dateIs:`Date is`,dateIsNot:`Date is not`,dayNames:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayNamesMin:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],dayNamesShort:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],emptyFilterMessage:`No results found`,emptyMessage:`No available options`,emptySearchMessage:`No results found`,emptySelectionMessage:`No selected item`,endsWith:`Ends with`,equals:`Equals`,fileChosenMessage:`{0} files`,fileSizeTypes:[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`],filter:`Filter`,firstDayOfWeek:0,gt:`Greater than`,gte:`Greater than or equal to`,lt:`Less than`,lte:`Less than or equal to`,matchAll:`Match All`,matchAny:`Match Any`,medium:`Medium`,monthNames:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthNamesShort:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],nextDecade:`Next Decade`,nextHour:`Next Hour`,nextMinute:`Next Minute`,nextMonth:`Next Month`,nextSecond:`Next Second`,nextYear:`Next Year`,noFileChosenMessage:`No file chosen`,noFilter:`No Filter`,notContains:`Not contains`,notEquals:`Not equals`,now:`Now`,passwordPrompt:`Enter a password`,pending:`Pending`,pm:`PM`,prevDecade:`Previous Decade`,prevHour:`Previous Hour`,prevMinute:`Previous Minute`,prevMonth:`Previous Month`,prevSecond:`Previous Second`,prevYear:`Previous Year`,reject:`No`,removeRule:`Remove Rule`,searchMessage:`{0} results are available`,selectionMessage:`{0} items selected`,showMonthAfterYear:!1,startsWith:`Starts with`,strong:`Strong`,today:`Today`,upload:`Upload`,weak:`Weak`,weekHeader:`Wk`,aria:{cancelEdit:`Cancel Edit`,close:`Close`,collapseLabel:`Collapse`,collapseRow:`Row Collapsed`,editRow:`Edit Row`,expandLabel:`Expand`,expandRow:`Row Expanded`,falseLabel:`False`,filterConstraint:`Filter Constraint`,filterOperator:`Filter Operator`,firstPageLabel:`First Page`,gridView:`Grid View`,hideFilterMenu:`Hide Filter Menu`,jumpToPageDropdownLabel:`Jump to Page Dropdown`,jumpToPageInputLabel:`Jump to Page Input`,lastPageLabel:`Last Page`,listLabel:`Option List`,listView:`List View`,maximizeLabel:`Maximize`,minimizeLabel:`Minimize`,moveAllToSource:`Move All to Source`,moveAllToTarget:`Move All to Target`,moveBottom:`Move Bottom`,moveDown:`Move Down`,moveToSource:`Move to Source`,moveToTarget:`Move to Target`,moveTop:`Move Top`,moveUp:`Move Up`,navigation:`Navigation`,next:`Next`,nextPageLabel:`Next Page`,nullLabel:`Not Selected`,otpLabel:`Please enter one time password character {0}`,pageLabel:`Page {page}`,passwordHide:`Hide Password`,passwordShow:`Show Password`,prevPageLabel:`Previous Page`,previous:`Previous`,removeLabel:`Remove`,rotateLeft:`Rotate Left`,rotateRight:`Rotate Right`,rowsPerPageLabel:`Rows per page`,saveEdit:`Save Edit`,scrollTop:`Scroll Top`,selectAll:`All items selected`,selectColor:`Select a color`,selectLabel:`Select`,selectRow:`Row Selected`,showFilterMenu:`Show Filter Menu`,slide:`Slide`,slideNumber:`{slideNumber}`,star:`1 star`,stars:`{star} stars`,trueLabel:`True`,unselectAll:`All items unselected`,unselectLabel:`Unselect`,unselectRow:`Row Unselected`,zoomImage:`Zoom Image`,zoomIn:`Zoom In`,zoomOut:`Zoom Out`}},lE=t(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),uE=t((e=>{var t,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(e){if(!e)throw Error(`"version" cannot be null or undefined`);if(e<1||e>40)throw Error(`"version" should be in range from 1 to 40`);return e*4+17},e.getSymbolTotalCodewords=function(e){return n[e]},e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},e.setToSJISFunction=function(e){if(typeof e!=`function`)throw Error(`"toSJISFunc" is not a valid function.`);t=e},e.isKanjiModeEnabled=function(){return t!==void 0},e.toSJIS=function(e){return t(e)}})),dE=t((e=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`l`:case`low`:return e.L;case`m`:case`medium`:return e.M;case`q`:case`quartile`:return e.Q;case`h`:case`high`:return e.H;default:throw Error(`Unknown EC Level: `+t)}}e.isValid=function(e){return e&&e.bit!==void 0&&e.bit>=0&&e.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})),fE=t(((e,t)=>{function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n})),pE=t(((e,t)=>{function n(e){if(!e||e<1)throw Error(`BitMatrix size must be defined and greater than 0`);this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n})),mE=t((e=>{var t=uE().getSymbolSize;e.getRowColCoords=function(e){if(e===1)return[];let n=Math.floor(e/7)+2,r=t(e),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let e=1;e<n-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)e===0&&t===0||e===0&&t===i-1||e===i-1&&t===0||n.push([r[e],r[t]]);return n}})),hE=t((e=>{var t=uE().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),gE=t((e=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(e){return e!=null&&e!==``&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,r=0,i=0,a=0,o=null,s=null;for(let c=0;c<n;c++){i=a=0,o=s=null;for(let l=0;l<n;l++){let n=e.get(c,l);n===o?i++:(i>=5&&(r+=t.N1+(i-5)),o=n,i=1),n=e.get(l,c),n===s?a++:(a>=5&&(r+=t.N1+(a-5)),s=n,a=1)}i>=5&&(r+=t.N1+(i-5)),a>=5&&(r+=t.N1+(a-5))}return r},e.getPenaltyN2=function(e){let n=e.size,r=0;for(let t=0;t<n-1;t++)for(let i=0;i<n-1;i++){let n=e.get(t,i)+e.get(t,i+1)+e.get(t+1,i)+e.get(t+1,i+1);(n===4||n===0)&&r++}return r*t.N2},e.getPenaltyN3=function(e){let n=e.size,r=0,i=0,a=0;for(let t=0;t<n;t++){i=a=0;for(let o=0;o<n;o++)i=i<<1&2047|e.get(t,o),o>=10&&(i===1488||i===93)&&r++,a=a<<1&2047|e.get(o,t),o>=10&&(a===1488||a===93)&&r++}return r*t.N3},e.getPenaltyN4=function(e){let n=0,r=e.data.length;for(let t=0;t<r;t++)n+=e.data[t];return Math.abs(Math.ceil(n*100/r/5)-10)*t.N4};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error(`bad maskPattern:`+t)}}e.applyMask=function(e,t){let r=t.size;for(let i=0;i<r;i++)for(let a=0;a<r;a++)t.isReserved(a,i)||t.xor(a,i,n(e,a,i))},e.getBestMask=function(t,n){let r=Object.keys(e.Patterns).length,i=0,a=1/0;for(let o=0;o<r;o++){n(o),e.applyMask(o,t);let r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),r<a&&(a=r,i=o)}return i}})),_E=t((e=>{var t=dE(),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(e,r){switch(r){case t.L:return n[(e-1)*4+0];case t.M:return n[(e-1)*4+1];case t.Q:return n[(e-1)*4+2];case t.H:return n[(e-1)*4+3];default:return}},e.getTotalCodewordsCount=function(e,n){switch(n){case t.L:return r[(e-1)*4+0];case t.M:return r[(e-1)*4+1];case t.Q:return r[(e-1)*4+2];case t.H:return r[(e-1)*4+3];default:return}}})),vE=t((e=>{var t=new Uint8Array(512),n=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)t[r]=e,n[e]=r,e<<=1,e&256&&(e^=285);for(let e=255;e<512;e++)t[e]=t[e-255]})(),e.log=function(e){if(e<1)throw Error(`log(`+e+`)`);return n[e]},e.exp=function(e){return t[e]},e.mul=function(e,r){return e===0||r===0?0:t[n[e]+n[r]]}})),yE=t((e=>{var t=vE();e.mul=function(e,n){let r=new Uint8Array(e.length+n.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<n.length;a++)r[i+a]^=t.mul(e[i],n[a]);return r},e.mod=function(e,n){let r=new Uint8Array(e);for(;r.length-n.length>=0;){let e=r[0];for(let i=0;i<n.length;i++)r[i]^=t.mul(n[i],e);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let i=0;i<n;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}})),bE=t(((e,t)=>{var n=yE();function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw Error(`Encoder not initialized`);let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},t.exports=r})),xE=t((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),SE=t((e=>{var t=`[0-9]+`,n=`[A-Z $%*+\\-./:]+`,r=`(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+`;r=r.replace(/u/g,`\\u`);var i=`(?:(?![A-Z0-9 $%*+\\-./:]|`+r+`)(?:.|[\r
|
|
13
|
+
`:t.breakLineCode,a=t.needIndent?t.needIndent:n!==`arrow`,o=e.helpers||[],s=I_(e,{filename:r,breakLineCode:i,needIndent:a});s.push(n===`normal`?`function __msg__ (ctx) {`:`(ctx) => {`),s.indent(a),o.length>0&&(s.push(`const { ${Hg(o.map(e=>`${e}: _${e}`),`, `)} } = ctx`),s.newline()),s.push(`return `),V_(s,e),s.deindent(a),s.push(`}`),delete e.helpers;let{code:c,map:l}=s.context();return{ast:e,code:c,map:l?l.toJSON():void 0}};function U_(e,t={}){let n=Eg({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null||n.optimize,o=D_(n).parse(e);return r?(a&&N_(o),i&&F_(o),{ast:o,code:``}):(M_(o,n),H_(o,n))}function W_(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(Ag().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!=`boolean`&&(Ag().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function G_(e){return Ig(e)&&tv(e)===0&&(Mg(e,`b`)||Mg(e,`body`))}var K_=[`b`,`body`];function q_(e){return cv(e,K_)}var J_=[`c`,`cases`];function Y_(e){return cv(e,J_,[])}var X_=[`s`,`static`];function Z_(e){return cv(e,X_)}var Q_=[`i`,`items`];function $_(e){return cv(e,Q_,[])}var ev=[`t`,`type`];function tv(e){return cv(e,ev)}var nv=[`v`,`value`];function rv(e,t){let n=cv(e,nv);if(n!=null)return n;throw uv(t)}var iv=[`m`,`modifier`];function av(e){return cv(e,iv)}var ov=[`k`,`key`];function sv(e){let t=cv(e,ov);if(t)return t;throw uv(6)}function cv(e,t,n){for(let n=0;n<t.length;n++){let r=t[n];if(Mg(e,r)&&e[r]!=null)return e[r]}return n}var lv=[...K_,...J_,...X_,...Q_,...ov,...iv,...nv,...ev];function uv(e){return Error(`unhandled node type: ${e}`)}function dv(e){return t=>fv(t,e)}function fv(e,t){let n=q_(t);if(n==null)throw uv(0);if(tv(n)===1){let t=Y_(n);return e.plural(t.reduce((t,n)=>[...t,pv(e,n)],[]))}return pv(e,n)}function pv(e,t){let n=Z_(t);if(n!=null)return e.type===`text`?n:e.normalize([n]);{let n=$_(t).reduce((t,n)=>[...t,mv(e,n)],[]);return e.normalize(n)}}function mv(e,t){let n=tv(t);switch(n){case 3:return rv(t,n);case 9:return rv(t,n);case 4:{let r=t;if(Mg(r,`k`)&&r.k)return e.interpolate(e.named(r.k));if(Mg(r,`key`)&&r.key)return e.interpolate(e.named(r.key));throw uv(n)}case 5:{let r=t;if(Mg(r,`i`)&&Sg(r.i))return e.interpolate(e.list(r.i));if(Mg(r,`index`)&&Sg(r.index))return e.interpolate(e.list(r.index));throw uv(n)}case 6:{let n=t,r=av(n),i=sv(n);return e.linked(mv(e,i),r?mv(e,r):void 0,e.type)}case 7:return rv(t,n);case 8:return rv(t,n);default:throw Error(`unhandled node on format message part: ${n}`)}}var hv=e=>e,gv=Og();function _v(e,t={}){let n=!1,r=t.onError||d_;return t.onError=e=>{n=!0,r(e)},{...U_(e,t),detectError:n}}function vv(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Y(e)){Fg(t.warnHtmlMessage)&&t.warnHtmlMessage;let n=(t.onCacheKey||hv)(e),r=gv[n];if(r)return r;let{ast:i,detectError:a}=_v(e,{...t,location:!1,jit:!0}),o=dv(i);return a?o:gv[n]=o}{let t=e.cacheKey;return t?gv[t]||(gv[t]=dv(e)):dv(e)}}var yv=null;function bv(e){yv=e}function xv(e,t,n){yv&&yv.emit(`i18n:init`,{timestamp:Date.now(),i18n:e,version:t,meta:n})}var Sv=Cv(`function:translate`);function Cv(e){return t=>yv&&yv.emit(e,t)}var wv={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function Tv(e){return u_(e,null,void 0)}wv.INVALID_ARGUMENT,wv.INVALID_DATE_ARGUMENT,wv.INVALID_ISO_DATE_ARGUMENT,wv.NOT_SUPPORT_NON_STRING_MESSAGE,wv.NOT_SUPPORT_LOCALE_PROMISE_VALUE,wv.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,wv.NOT_SUPPORT_LOCALE_TYPE;function Ev(e,t){return t.locale==null?Ov(e.locale):Ov(t.locale)}var Dv;function Ov(e){if(Y(e))return e;if(Pg(e)){if(e.resolvedOnce&&Dv!=null)return Dv;if(e.constructor.name===`Function`){let t=e();if(Lg(t))throw Tv(wv.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Dv=t}throw Tv(wv.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Tv(wv.NOT_SUPPORT_LOCALE_TYPE)}function kv(e,t,n){return[...new Set([n,...Ng(t)?t:Ig(t)?Object.keys(t):Y(t)?[t]:[n]])]}function Av(e,t,n){let r=Y(n)?n:Kv,i=e;i.__localeChainCache||=new Map;let a=i.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;Ng(e);)e=jv(a,e,t);let o=Ng(t)||!Bg(t)?t:t.default?t.default:null;e=Y(o)?[o]:o,Ng(e)&&jv(a,e,!1),i.__localeChainCache.set(r,a)}return a}function jv(e,t,n){let r=!0;for(let i=0;i<t.length&&Fg(r);i++){let a=t[i];Y(a)&&(r=Mv(e,t[i],n))}return r}function Mv(e,t,n){let r,i=t.split(`-`);do r=Nv(e,i.join(`-`),n),i.splice(-1,1);while(i.length&&r===!0);return r}function Nv(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!==`!`;let i=t.replace(/!/g,``);e.push(i),(Ng(n)||Bg(n))&&n[i]&&(r=n[i])}return r}var Pv=[];Pv[0]={w:[0],i:[3,0],"[":[4],o:[7]},Pv[1]={w:[1],".":[2],"[":[4],o:[7]},Pv[2]={w:[2],i:[3,0],0:[3,0]},Pv[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Pv[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Pv[5]={"'":[4,0],o:8,l:[5,0]},Pv[6]={'"':[4,0],o:8,l:[6,0]};var Fv=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Iv(e){return Fv.test(e)}function Lv(e){let t=e.charCodeAt(0);return t===e.charCodeAt(e.length-1)&&(t===34||t===39)?e.slice(1,-1):e}function Rv(e){if(e==null)return`o`;switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return`i`;case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return`w`}return`i`}function zv(e){let t=e.trim();return e.charAt(0)===`0`&&isNaN(parseInt(e))?!1:Iv(t)?Lv(t):`*`+t}function Bv(e){let t=[],n=-1,r=0,i=0,a,o,s,c,l,u,d,f=[];f[0]=()=>{o===void 0?o=s:o+=s},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,o===void 0||(o=zv(o),o===!1))return!1;f[1]()}};function p(){let t=e[n+1];if(r===5&&t===`'`||r===6&&t===`"`)return n++,s=`\\`+t,f[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a===`\\`&&p())){if(c=Rv(a),d=Pv[r],l=d[c]||d.l||8,l===8||(r=l[0],l[1]!==void 0&&(u=f[l[1]],u&&(s=a,u()===!1))))return;if(r===7)return t}}var Vv=new Map;function Hv(e,t){return Ig(e)?e[t]:null}function Uv(e,t){if(!Ig(e))return null;let n=Vv.get(t);if(n||(n=Bv(t),n&&Vv.set(t,n)),!n)return null;let r=n.length,i=e,a=0;for(;a<r;){let e=n[a];if(lv.includes(e)&&G_(i)||!Ig(i)||!Mg(i,e))return null;let t=i[e];if(t===void 0||Pg(i))return null;i=t,a++}return i}var Wv={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9};Wv.NOT_FOUND_KEY,Wv.FALLBACK_TO_TRANSLATE,Wv.CANNOT_FORMAT_NUMBER,Wv.FALLBACK_TO_NUMBER_FORMAT,Wv.CANNOT_FORMAT_DATE,Wv.FALLBACK_TO_DATE_FORMAT,Wv.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER,Wv.INVALID_NUMBER_ARGUMENT,Wv.INVALID_DATE_ARGUMENT;var Gv=`11.4.8`,Kv=`en-US`,qv=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Jv(){return{upper:(e,t)=>t===`text`&&Y(e)?e.toUpperCase():t===`vnode`&&Ig(e)&&`__v_isVNode`in e?e.children.toUpperCase():e,lower:(e,t)=>t===`text`&&Y(e)?e.toLowerCase():t===`vnode`&&Ig(e)&&`__v_isVNode`in e?e.children.toLowerCase():e,capitalize:(e,t)=>t===`text`&&Y(e)?qv(e):t===`vnode`&&Ig(e)&&`__v_isVNode`in e?qv(e.children):e}}var Yv;function Xv(e){Yv=e}var Zv;function Qv(e){Zv=e}var $v;function ey(e){$v=e}var ty=null,ny=e=>{ty=e},ry=()=>ty,iy=null,ay=e=>{iy=e},oy=()=>iy,sy=0;function cy(e={}){let t=Pg(e.onWarn)?e.onWarn:Ug,n=Y(e.version)?e.version:Gv,r=Y(e.locale)||Pg(e.locale)?e.locale:Kv,i=Pg(r)?Kv:r,a=Ng(e.fallbackLocale)||Bg(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=Bg(e.messages)?e.messages:ly(i),s=Bg(e.datetimeFormats)?e.datetimeFormats:ly(i),c=Bg(e.numberFormats)?e.numberFormats:ly(i),l=Eg(Og(),e.modifiers,Jv()),u=e.pluralRules||Og(),d=Pg(e.missing)?e.missing:null,f=Fg(e.missingWarn)||wg(e.missingWarn)?e.missingWarn:!0,p=Fg(e.fallbackWarn)||wg(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,h=!!e.unresolving,g=Pg(e.postTranslation)?e.postTranslation:null,v=Bg(e.processor)?e.processor:null,y=!Fg(e.warnHtmlMessage)||e.warnHtmlMessage,b=!!e.escapeParameter,x=Pg(e.messageCompiler)?e.messageCompiler:Yv,S=Pg(e.messageResolver)?e.messageResolver:Zv||Hv,C=Pg(e.localeFallbacker)?e.localeFallbacker:$v||kv,w=Ig(e.fallbackContext)?e.fallbackContext:void 0,T=e,E=Ig(T.__datetimeFormatters)?T.__datetimeFormatters:new Map,D=Ig(T.__numberFormatters)?T.__numberFormatters:new Map,O=Ig(T.__meta)?T.__meta:{};sy++;let k={version:n,cid:sy,locale:r,fallbackLocale:a,messages:o,modifiers:l,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:m,unresolving:h,postTranslation:g,processor:v,warnHtmlMessage:y,escapeParameter:b,messageCompiler:x,messageResolver:S,localeFallbacker:C,fallbackContext:w,onWarn:t,__meta:O};return k.datetimeFormats=s,k.numberFormats=c,k.__datetimeFormatters=E,k.__numberFormatters=D,__INTLIFY_PROD_DEVTOOLS__&&xv(k,n,O),k}var ly=e=>({[e]:Og()});function uy(e,t,n,r,i){let{missing:a,onWarn:o}=e;if(a!==null){let r=a(e,n,t,i);return Y(r)?r:t}return t}function dy(e,t,n){let r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function fy(e,t){return e!==t&&e.split(`-`)[0]===t.split(`-`)[0]}function py(e,t){let n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(fy(e,t[r]))return!0;return!1}function my(e,t,n,r,i,a,o){let{fallbackLocale:s,localeFallbacker:c,onWarn:l}=e,u=c(e,s,n);for(let n=0;n<u.length;n++){let a=u[n],s=(r[a]||{})[t];if(Bg(s)&&Y(a))return a;uy(e,t,a,i,o)}return null}function hy(e,t,n){let r=`${e}__${t}`;return Bg(n)&&!Tg(n)&&(r=`${r}__${JSON.stringify(n)}`),r}function gy(e,t,n){for(let r in n){let n=`${t}__${r}`;for(let t of e.keys())(t===n||t.startsWith(`${n}__`))&&e.delete(t)}}function _y(e,t,n,r){let[,i,a,o]=e,s=n;return Y(i)?t.key=i:Bg(i)&&Object.keys(i).forEach(e=>{r.includes(e)?s[e]=i[e]:t[e]=i[e]}),Y(a)?t.locale=a:Bg(a)&&(s=a),Bg(o)&&(s=o),s}var vy=typeof Intl<`u`;vy&&Intl.DateTimeFormat,vy&&Intl.NumberFormat;function yy(e,...t){let{datetimeFormats:n,unresolving:r,onWarn:i}=e,{__datetimeFormatters:a}=e;if(!Y(t[0])&&!Cg(t[0])&&!Sg(t[0]))return``;let[o,s,c,l]=xy(...t),u=Fg(c.missingWarn)?c.missingWarn:e.missingWarn,d=Fg(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=!!c.part,p=Ev(e,c);if(!Y(o)||o===``){let e=new Intl.DateTimeFormat(p.replace(/!/g,``),l);return f?e.formatToParts(s):e.format(s)}let m=my(e,o,p,n,u,d,`datetime format`);if(!Y(m))return r?-1:o;let h=n[m][o],g=hy(m,o,l),v=a.get(g);return v||(v=new Intl.DateTimeFormat(m,Eg({},h,l)),a.set(g,v)),f?v.formatToParts(s):v.format(s)}var by=[`localeMatcher`,`weekday`,`era`,`year`,`month`,`day`,`hour`,`minute`,`second`,`timeZoneName`,`formatMatcher`,`hour12`,`timeZone`,`dateStyle`,`timeStyle`,`calendar`,`dayPeriod`,`numberingSystem`,`hourCycle`,`fractionalSecondDigits`];function xy(...e){let[t]=e,n=Og(),r=Og(),i;if(Y(t)){let e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Tv(wv.INVALID_ISO_DATE_ARGUMENT);let n=e[3]?e[3].trim().startsWith(`T`)?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();i=new Date(n);try{i.toISOString()}catch{throw Tv(wv.INVALID_ISO_DATE_ARGUMENT)}}else if(Cg(t)){if(isNaN(t.getTime()))throw Tv(wv.INVALID_DATE_ARGUMENT);i=t}else if(Sg(t))i=t;else throw Tv(wv.INVALID_ARGUMENT);let a=_y(e,n,r,by);return[n.key||``,i,n,a]}function Sy(e,t,n){gy(e.__datetimeFormatters,t,n)}function Cy(e,...t){let{numberFormats:n,unresolving:r,onWarn:i}=e,{__numberFormatters:a}=e;if(!Sg(t[0]))return``;let[o,s,c,l]=Ty(...t),u=Fg(c.missingWarn)?c.missingWarn:e.missingWarn,d=Fg(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=!!c.part,p=Ev(e,c);if(!Y(o)||o===``){let e=new Intl.NumberFormat(p.replace(/!/g,``),l);return f?e.formatToParts(s):e.format(s)}let m=my(e,o,p,n,u,d,`number format`);if(!Y(m))return r?-1:o;let h=n[m][o],g=hy(m,o,l),v=a.get(g);return v||(v=new Intl.NumberFormat(m,Eg({},h,l)),a.set(g,v)),f?v.formatToParts(s):v.format(s)}var wy=[`localeMatcher`,`style`,`currency`,`currencyDisplay`,`currencySign`,`useGrouping`,`minimumIntegerDigits`,`minimumFractionDigits`,`maximumFractionDigits`,`minimumSignificantDigits`,`maximumSignificantDigits`,`compactDisplay`,`notation`,`signDisplay`,`unit`,`unitDisplay`,`roundingMode`,`roundingPriority`,`roundingIncrement`,`trailingZeroDisplay`];function Ty(...e){let[t]=e,n=Og(),r=Og();if(!Sg(t))throw Tv(wv.INVALID_ARGUMENT);let i=t,a=_y(e,n,r,wy);return[n.key||``,i,n,a]}function Ey(e,t,n){gy(e.__numberFormatters,t,n)}var Dy=e=>e,Oy=e=>``,ky=`text`,Ay=e=>e.length===0?``:Hg(e),jy=Vg;function My(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function Ny(e){let t=Sg(e.pluralIndex)?e.pluralIndex:-1;return Sg(e.named?.count)?e.named.count:Sg(e.named?.n)?e.named.n:t}function Py(e={}){let t=e.locale,n=Ny(e),r=Y(t)&&Pg(e.pluralRules?.[t])?e.pluralRules[t]:My,i=r===My?void 0:My,a=e=>e[r(n,e.length,i)],o=e.list||[],s=e=>o[e],c=e.named||Og();Sg(e.pluralIndex)&&(c.count||=e.pluralIndex,c.n||=e.pluralIndex);let l=e=>c[e];function u(t,n){return(Pg(e.messages)?e.messages(t,!!n):Ig(e.messages)?e.messages[t]:!1)||(e.parent?e.parent.message(t):Oy)}let d=t=>e.modifiers?e.modifiers[t]:Dy,f=Pg(e.processor?.normalize)?e.processor.normalize:Ay,p=Pg(e.processor?.interpolate)?e.processor.interpolate:jy,m={list:s,named:l,plural:a,linked:(e,...t)=>{let[n,r]=t,i=`text`,a=``;t.length===1?Ig(n)?(a=n.modifier||a,i=n.type||i):Y(n)&&(a=n||a):t.length===2&&(Y(n)&&(a=n||a),Y(r)&&(i=r||i));let o=u(e,!0)(m),s=o===``||o===void 0?e:o,c=i===`vnode`&&Ng(s)&&a?s[0]:s;return a?d(a)(c,i):c},message:u,type:Y(e.processor?.type)?e.processor.type:ky,interpolate:p,normalize:f,values:Eg(Og(),o,c)};return m}var Fy=()=>``,Iy=e=>Pg(e);function Ly(e,...t){let{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[c,l]=Hy(...t),u=Fg(l.missingWarn)?l.missingWarn:e.missingWarn,d=Fg(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=Fg(l.escapeParameter)?l.escapeParameter:e.escapeParameter,p=!!l.resolvedMessage,m=Y(l.default)||Fg(l.default)?Fg(l.default)?a?c:()=>c:l.default:n?a?c:()=>c:null,h=n||m!=null&&(Y(m)||Pg(m)),g=Ev(e,l);f&&Ry(l);let[v,y,b]=p?[c,g,s[g]||Og()]:zy(e,c,g,o,d,u),x=v,S=c;if(!p&&!(Y(x)||G_(x)||Iy(x))&&h&&(x=m,S=x),!p&&(!(Y(x)||G_(x)||Iy(x))||!Y(y)))return i?-1:c;let C=!1,w=Iy(x)?x:By(e,c,y,x,S,()=>{C=!0});if(C)return x;let T=Vy(e,w,Py(Wy(e,y,b,l))),E=r?r(T,c):T;if(f&&Y(E)&&(E=a_(E)),__INTLIFY_PROD_DEVTOOLS__){let t={timestamp:Date.now(),key:Y(c)?c:Iy(x)?x.key:``,locale:y||(Iy(x)?x.locale:``),format:Y(x)?x:Iy(x)?x.source:``,message:E};t.meta=Eg({},e.__meta,ry()||{}),Sv(t)}return E}function Ry(e){Ng(e.list)?e.list=e.list.map(e=>Y(e)?Wg(e):e):Ig(e.named)&&Object.keys(e.named).forEach(t=>{Y(e.named[t])&&(e.named[t]=Wg(e.named[t]))})}function zy(e,t,n,r,i,a){let{messages:o,onWarn:s,messageResolver:c,localeFallbacker:l}=e,u=l(e,r,n),d=Og(),f,p=null;for(let n=0;n<u.length&&(f=u[n],d=o[f]||Og(),(p=c(d,t))===null&&(p=d[t]),!(Y(p)||G_(p)||Iy(p)));n++)if(!py(f,u)){let n=uy(e,t,f,a,`translate`);n!==t&&(p=n)}return[p,f,d]}function By(e,t,n,r,i,a){let{messageCompiler:o,warnHtmlMessage:s}=e;if(Iy(r)){let e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(o==null){let e=(()=>r);return e.locale=n,e.key=t,e}let c=o(r,Uy(e,n,i,r,s,a));return c.locale=n,c.key=t,c.source=r,c}function Vy(e,t,n){return t(n)}function Hy(...e){let[t,n,r]=e,i=Og();if(!Y(t)&&!Sg(t)&&!Iy(t)&&!G_(t))throw Tv(wv.INVALID_ARGUMENT);let a=Sg(t)?String(t):(Iy(t),t);return Sg(n)?i.plural=n:Y(n)?i.default=n:Bg(n)&&!Tg(n)?i.named=n:Ng(n)&&(i.list=n),Sg(r)?i.plural=r:Y(r)?i.default=r:Bg(r)&&Eg(i,r),[a,i]}function Uy(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:e=>{throw a&&a(e),e},onCacheKey:e=>bg(t,n,e)}}function Wy(e,t,n,r){let{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:c,missingWarn:l,fallbackContext:u}=e,d={locale:t,modifiers:i,pluralRules:a,messages:(r,i)=>{let a=o(n,r);if(a==null&&(u||i)){let[n,,i]=zy(u||e,r,t,s,c,l);a=n??o(i,r)}if(Y(a)||G_(a)){let n=!1,i=By(e,r,t,a,r,()=>{n=!0});return n?Fy:i}return Iy(a)?a:Fy}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Sg(r.plural)&&(d.pluralIndex=r.plural),d}W_();var Gy=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ky=new class extends Gy{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},qy={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Jy=new class{#e=qy;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function Yy(e){setTimeout(e,0)}var Xy=typeof window>`u`||`Deno`in globalThis;function Zy(){}function Qy(e,t){return typeof e==`function`?e(t):e}function $y(e){return typeof e==`number`&&e>=0&&e!==1/0}function eb(e,t){return Math.max(e+(t||0)-Date.now(),0)}function tb(e,t){return typeof e==`function`?e(t):e}function nb(e,t){return typeof e==`function`?e(t):e}function rb(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==ab(o,t.options))return!1}else if(!sb(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function ib(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(ob(t.options.mutationKey)!==ob(a))return!1}else if(!sb(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ab(e,t){return(t?.queryKeyHashFn||ob)(e)}function ob(e){return JSON.stringify(e,(e,t)=>fb(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function sb(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!sb(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!sb(e[r],t[r]))return!1;return!0}return!1}var cb=Object.prototype.hasOwnProperty;function lb(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=db(e)&&db(t);if(!r&&!(fb(e)&&fb(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:cb.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=lb(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function ub(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function db(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function fb(e){if(!pb(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!pb(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function pb(e){return Object.prototype.toString.call(e)===`[object Object]`}function mb(e){return new Promise(t=>{Jy.setTimeout(t,e)})}function hb(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:lb(e,t)}function gb(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function _b(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var vb=Symbol();function yb(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===vb?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function bb(e,t){return typeof e==`function`?e(...t):!!e}function xb(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Sb=(()=>{let e=()=>Xy;return{isServer(){return e()},setIsServer(t){e=t}}})();function Cb(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var wb=Yy;function Tb(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=wb,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Eb=Tb(),Db=new class extends Gy{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Ob(e){return Math.min(1e3*2**e,3e4)}function kb(e){return(e??`online`)!==`online`||Db.isOnline()}var Ab=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function jb(e){let t=!1,n=0,r,i=Cb(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Ab(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Ky.isFocused()&&(e.networkMode===`always`||Db.isOnline())&&e.canRun(),u=()=>kb(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Sb.isServer()?0:3),o=e.retryDelay??Ob,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),mb(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Mb=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$y(this.gcTime)&&(this.#e=Jy.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Sb.isServer()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(Jy.clearTimeout(this.#e),this.#e=void 0)}};function Nb(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{xb(e,()=>t.signal,()=>n=!0)},u=yb(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?_b:gb;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?Fb:Pb,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Pb(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function Pb(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Fb(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Ib=class extends Mb{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=zb(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=zb(this.options);e.data!==void 0&&(this.setState(Rb(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=hb(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Zy).catch(Zy):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>nb(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vb||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>tb(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!eb(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=yb(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Nb(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=jb({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Ab&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Ab){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Lb(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Rb(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Eb.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Lb(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:kb(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Rb(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function zb(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Bb=class extends Gy{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=Cb(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Hb(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ub(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ub(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof nb(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!ub(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Wb(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||nb(this.options.enabled,this.#t)!==nb(t.enabled,this.#t)||tb(this.options.staleTime,this.#t)!==tb(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||nb(this.options.enabled,this.#t)!==nb(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Kb(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Zy)),t}#g(){this.#b();let e=tb(this.options.staleTime,this.#t);if(Sb.isServer()||this.#r.isStale||!$y(e))return;let t=eb(this.#r.dataUpdatedAt,e)+1;this.#d=Jy.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(Sb.isServer()||nb(this.options.enabled,this.#t)===!1||!$y(this.#p)||this.#p===0)&&(this.#f=Jy.setInterval(()=>{(this.options.refetchIntervalInBackground||Ky.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(Jy.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(Jy.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Hb(e,t),o=i&&Wb(e,n,t,r);(a||o)&&(l={...l,...Lb(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=hb(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=hb(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,v=m===`pending`,y=m===`error`,b=v&&g,x=d!==void 0,S={status:m,fetchStatus:l.fetchStatus,isPending:v,isSuccess:m===`success`,isError:y,isInitialLoading:b,isLoading:b,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!v,isLoadingError:y&&!x,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:y&&x,isStale:Gb(e,t),refetch:this.refetch,promise:this.#o,isEnabled:nb(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=S.data!==void 0,r=S.status===`error`&&!t,i=e=>{r?e.reject(S.error):t&&e.resolve(S.data)},a=()=>{let e=this.#o=S.promise=Cb();i(e)},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||S.data!==o.value)&&a();break;case`rejected`:(!r||S.error!==o.reason)&&a()}}return S}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!ub(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){Eb.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Vb(e,t){return nb(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||nb(t.retryOnMount,e)!==!1)}function Hb(e,t){return Vb(e,t)||e.state.data!==void 0&&Ub(e,t,t.refetchOnMount)}function Ub(e,t,n){if(nb(t.enabled,e)!==!1&&tb(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Gb(e,t)}return!1}function Wb(e,t,n,r){return(e!==t||nb(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Gb(e,n)}function Gb(e,t){return nb(t.enabled,e)!==!1&&e.isStaleByTime(tb(t.staleTime,e))}function Kb(e,t){return!ub(e.getCurrentResult(),t)}var qb=class extends Mb{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Jb(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=jb({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Eb.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Jb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Yb=class extends Gy{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new qb({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Xb(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Xb(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Xb(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Xb(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Eb.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>ib(t,e))}findAll(e={}){return this.getAll().filter(t=>ib(e,t))}notify(e){Eb.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Eb.batch(()=>Promise.all(e.map(e=>e.continue().catch(Zy))))}};function Xb(e){return e.options.scope?.id}var Zb=class extends Gy{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),ub(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&ob(t.mutationKey)!==ob(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Jb();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){Eb.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}};function Qb(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}function $b(e,t,n){let r=e.slice(0);return r[t]=n,r}var ex=class extends Gy{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];constructor(e,t,n){super(),this.#e=e,this.#r=n,this.#n=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,Eb.batch(()=>{let e=this.#i,t=this.#p(this.#n);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,s=o?!0:r.some((e,t)=>{let n=this.#t[t];return!n||!ub(e,n)});!o&&!s||(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(Qb(e,n).forEach(e=>{e.destroy()}),Qb(n,e).forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let n=this.#p(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#d(e??r,t,i),()=>this.#u(r,n)]}#u(e,t){return t.map((n,r)=>{let i=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,e=>{t.forEach(t=>{t.observer.trackProp(e)})})})}#d(e,t,n){if(t){let r=this.#c,i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(!this.#a||this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,n!==void 0&&(this.#c=n),this.#a=lb(this.#a,t(e))),this.#a}return e}#f(){return this.#r?.combine!==void 0&&this.#i.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#p(e){let t=new Map;this.#i.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new Bb(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#m(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=$b(this.#t,n,t),this.#h())}#h(){if(this.hasListeners()){let e=this.#u(this.#t,this.#l),t=this.#f(),n=this.#a,r=t?n:this.#d(e,this.#r?.combine);(t||n!==r)&&Eb.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},tx=class extends Gy{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??ab(r,t),a=this.get(i);return a||(a=new Ib({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Eb.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>rb(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>rb(e,t)):t}notify(e){Eb.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Eb.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Eb.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},nx=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new tx,this.#t=e.mutationCache||new Yb,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Ky.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Db.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(tb(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=Qy(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Eb.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Eb.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Eb.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Eb.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Zy).catch(Zy)}invalidateQueries(e,t={}){return Eb.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Eb.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Zy)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(Zy)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(tb(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zy).catch(Zy)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zy).catch(Zy)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Db.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(ob(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{sb(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(ob(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{sb(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=ab(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===vb&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},rx=`VUE_QUERY_CLIENT`;function ix(e){return`${rx}${e?`:${e}`:``}`}function ax(e,t){Object.keys(e).forEach(n=>{e[n]=t[n]})}function ox(e,t,n=``,r=0){if(t){let i=t(e,n,r);if(i===void 0&&nn(e)||i!==void 0)return i}if(Array.isArray(e))return e.map((e,n)=>ox(e,t,String(n),r+1));if(typeof e==`object`&&cx(e)){let n=Object.entries(e).map(([e,n])=>[e,ox(n,t,e,r+1)]);return Object.fromEntries(n)}return e}function sx(e,t){return ox(e,t)}function Z(e,t=!1){return sx(e,(e,n,r)=>{if(r===1&&n===`queryKey`)return Z(e,!0);if(t&&lx(e))return Z(e(),t);if(nn(e))return Z(B(e),t)})}function cx(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function lx(e){return typeof e==`function`}function ux(e=``){if(!mr())throw Error(`vue-query hooks can only be used inside setup() function or functions that support injection context.`);let t=pr(ix(e));if(!t)throw Error(`No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.`);return t}var dx=class extends tx{find(e){return super.find(Z(e))}findAll(e={}){return super.findAll(Z(e))}},fx=class extends Yb{find(e){return super.find(Z(e))}findAll(e={}){return super.findAll(Z(e))}},px=class extends nx{constructor(e={}){let t={defaultOptions:e.defaultOptions,queryCache:e.queryCache||new dx,mutationCache:e.mutationCache||new fx};super(t),this.isRestoring=z(!1)}isFetching(e={}){return super.isFetching(Z(e))}isMutating(e={}){return super.isMutating(Z(e))}getQueryData(e){return super.getQueryData(Z(e))}ensureQueryData(e){return super.ensureQueryData(Z(e))}getQueriesData(e){return super.getQueriesData(Z(e))}setQueryData(e,t,n={}){return super.setQueryData(Z(e),t,Z(n))}setQueriesData(e,t,n={}){return super.setQueriesData(Z(e),t,Z(n))}getQueryState(e){return super.getQueryState(Z(e))}removeQueries(e={}){return super.removeQueries(Z(e))}resetQueries(e={},t={}){return super.resetQueries(Z(e),Z(t))}cancelQueries(e={},t={}){return super.cancelQueries(Z(e),Z(t))}invalidateQueries(e={},t={}){let n=Z(e),r=Z(t);if(super.invalidateQueries({...n,refetchType:`none`},r),n.refetchType===`none`)return Promise.resolve();let i={...n,type:n.refetchType??n.type??`active`};return Gn().then(()=>super.refetchQueries(i,r))}refetchQueries(e={},t={}){return super.refetchQueries(Z(e),Z(t))}fetchQuery(e){return super.fetchQuery(Z(e))}prefetchQuery(e){return super.prefetchQuery(Z(e))}fetchInfiniteQuery(e){return super.fetchInfiniteQuery(Z(e))}prefetchInfiniteQuery(e){return super.prefetchInfiniteQuery(Z(e))}setDefaultOptions(e){super.setDefaultOptions(Z(e))}setQueryDefaults(e,t){super.setQueryDefaults(Z(e),Z(t))}getQueryDefaults(e){return super.getQueryDefaults(Z(e))}setMutationDefaults(e,t){super.setMutationDefaults(Z(e),Z(t))}getMutationDefaults(e){return super.getMutationDefaults(Z(e))}},mx={install:(e,t={})=>{let n=ix(t.queryClientKey),r;r=`queryClient`in t&&t.queryClient?t.queryClient:new px(`queryClientConfig`in t?t.queryClientConfig:void 0),Sb.isServer()||r.mount();let i=()=>{};if(t.clientPersister){r.isRestoring&&(r.isRestoring.value=!0);let[e,n]=t.clientPersister(r);i=e,n.then(()=>{r.isRestoring&&(r.isRestoring.value=!1),t.clientPersisterOnSuccess?.(r)})}let a=()=>{r.unmount(),i()};if(e.onUnmount)e.onUnmount(a);else{let t=e.unmount;e.unmount=function(){a(),t()}}e.provide(n,r)}};function hx(e,t,n){let r=n||ux(),i=G(()=>{let e=t;typeof e==`function`&&(e=e());let n=Z(e);typeof n.enabled==`function`&&(n.enabled=n.enabled());let i=r.defaultQueryOptions(n);return i._optimisticResults=r.isRestoring?.value?`isRestoring`:`optimistic`,i}),a=new e(r,i.value),o=i.value.shallow?Gt(a.getCurrentResult()):Wt(a.getCurrentResult()),s=()=>{};r.isRestoring&&br(r.isRestoring,e=>{e||(s(),s=a.subscribe(e=>{ax(o,e)}))},{immediate:!0});let c=()=>{a.setOptions(i.value),ax(o,a.getCurrentResult())};br(i,c),ke(()=>{s()});let l=(...e)=>(c(),o.refetch(...e)),u=()=>new Promise((e,t)=>{let n=()=>{},r=()=>{if(i.value.enabled!==!1){a.setOptions(i.value);let r=a.getOptimisticResult(i.value);r.isStale?(n(),a.fetchOptimistic(i.value).then(e,n=>{bb(i.value.throwOnError,[n,a.getCurrentQuery()])?t(n):e(a.getCurrentResult())})):(n(),e(r))}};r(),n=br(i,r)});br(()=>o.error,e=>{if(o.isError&&!o.isFetching&&bb(i.value.throwOnError,[e,a.getCurrentQuery()]))throw e});let d=fn(i.value.shallow?qt(o):Kt(o));for(let e in o)typeof o[e]==`function`&&(d[e]=o[e]);return d.suspense=u,d.refetch=l,d}function gx(e,t){return hx(Bb,e,t)}function _x({queries:e,...t},n){let r=n||ux(),i=G(()=>B(typeof e==`function`?e():e).map(e=>{let t=Z(e);typeof t.enabled==`function`&&(t.enabled=e.enabled());let n=r.defaultQueryOptions(t);return n._optimisticResults=r.isRestoring?.value?`isRestoring`:`optimistic`,n})),a=new ex(r,i.value,t),o=()=>{let[e,n]=a.getOptimisticResult(i.value,t.combine);return n(e.map((e,n)=>({...e,refetch:async(...e)=>{let[{[n]:r}]=a.getOptimisticResult(i.value,t.combine);return r.refetch(...e)}})))},s=rn(o()),c=()=>{};return r.isRestoring&&br(r.isRestoring,e=>{e||(c(),c=a.subscribe(()=>{s.value=o()}),s.value=o())},{immediate:!0}),br(i,e=>{a.setQueries(e,t),s.value=o()}),ke(()=>{c()}),t.shallow?qt(s):Kt(s)}function vx(e,t){let n=t||ux(),r=G(()=>{let t=typeof e==`function`?e():e;return n.defaultMutationOptions(Z(t))}),i=new Zb(n,r.value),a=r.value.shallow?Gt(i.getCurrentResult()):Wt(i.getCurrentResult()),o=i.subscribe(e=>{ax(a,e)}),s=(e,t)=>{i.mutate(e,t).catch(()=>{})};br(r,()=>{i.setOptions(r.value)}),ke(()=>{o()});let c=fn(r.value.shallow?qt(a):Kt(a));return br(()=>a.error,e=>{if(e&&bb(r.value.throwOnError,[e]))throw e}),{...c,mutate:s,mutateAsync:a.mutate,reset:a.reset}}function yx(e,t,n){if(typeof t==`string`)e.style.viewTransitionName=t;else if(t&&typeof t==`object`){let[n,r]=Object.entries(t)?.[0]||[];r?e.style.viewTransitionName=n:e.style.viewTransitionName=`none`}else throw Error(`[vue-view-transitions]: The value of \`v-${n}\` should be either "string" or "object" but got "${typeof t}"`)}function bx(){return{install(e){e.directive(`view-transition-name`,{beforeMount(e,t){yx(e,t.value,`view-transition-name`)},beforeUpdate(e,t){yx(e,t.value,`view-transition-name`)}}),e.directive(`trans`,{beforeMount(e,t){yx(e,t.value,`trans`)},beforeUpdate(e,t){yx(e,t.value,`trans`)}})}}}function xx(e){let t={};return document.startViewTransition?t.captured=new Promise(n=>{let r=document.startViewTransition(async()=>{n(),e&&await e()});t.updateCallbackDone=r.updateCallbackDone,t.ready=r.ready,t.finished=r.finished,t.skipTransition=r.skipTransition.bind(r)}):(t.captured=Promise.resolve(),t.updateCallbackDone=t.ready=t.finished=e?Promise.resolve(e()):Promise.resolve(),t.skipTransition=()=>{},console.error(`[vue-view-transitions]: This browser doesn't support View Transitions Api, please check: https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API#browser_compatibility`)),t}function Sx(e){return`Minified Redux error #`+e+`; visit https://redux.js.org/Errors?code=`+e+` for the full message or use the non-minified dev environment for full errors. `}var Cx=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})(),wx=function(){return Math.random().toString(36).substring(7).split(``).join(`.`)},Tx={INIT:`@@redux/INIT`+wx(),REPLACE:`@@redux/REPLACE`+wx(),PROBE_UNKNOWN_ACTION:function(){return`@@redux/PROBE_UNKNOWN_ACTION`+wx()}};function Ex(e){if(typeof e!=`object`||!e)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Dx(e,t,n){var r;if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(Sx(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(Sx(1));return n(Dx)(e,t)}if(typeof e!=`function`)throw Error(Sx(2));var i=e,a=t,o=[],s=o,c=!1;function l(){s===o&&(s=o.slice())}function u(){if(c)throw Error(Sx(3));return a}function d(e){if(typeof e!=`function`)throw Error(Sx(4));if(c)throw Error(Sx(5));var t=!0;return l(),s.push(e),function(){if(t){if(c)throw Error(Sx(6));t=!1,l();var n=s.indexOf(e);s.splice(n,1),o=null}}}function f(e){if(!Ex(e))throw Error(Sx(7));if(e.type===void 0)throw Error(Sx(8));if(c)throw Error(Sx(9));try{c=!0,a=i(a,e)}finally{c=!1}for(var t=o=s,n=0;n<t.length;n++){var r=t[n];r()}return e}function p(e){if(typeof e!=`function`)throw Error(Sx(10));i=e,f({type:Tx.REPLACE})}function m(){var e,t=d;return e={subscribe:function(e){if(typeof e!=`object`||!e)throw Error(Sx(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}},e[Cx]=function(){return this},e}return f({type:Tx.INIT}),r={dispatch:f,subscribe:d,getState:u,replaceReducer:p},r[Cx]=m,r}function Q(e,t,...n){if(Ox()&&t===void 0)throw Error(`invariant requires an error message argument`);if(!e){let e;if(t===void 0)e=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{let r=0;e=Error(t.replace(/%s/g,function(){return n[r++]})),e.name=`Invariant Violation`}throw e.framesToPop=1,e}}function Ox(){return typeof process<`u`&&!0}function kx(e,t,n){return t.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:n||null,e)}function Ax(e,t){return e.filter(e=>e!==t)}function jx(e){return typeof e==`object`}function Mx(e,t){let n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);let i=[];return n.forEach((e,t)=>{e===1&&i.push(t)}),i}function Nx(e,t){return e.filter(e=>t.indexOf(e)>-1)}var Px=`dnd-core/INIT_COORDS`,Fx=`dnd-core/BEGIN_DRAG`,Ix=`dnd-core/PUBLISH_DRAG_SOURCE`,Lx=`dnd-core/HOVER`,Rx=`dnd-core/DROP`,zx=`dnd-core/END_DRAG`;function Bx(e,t){return{type:Px,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var Vx={type:Px,payload:{clientOffset:null,sourceClientOffset:null}};function Hx(e){return function(t=[],n={publishSource:!0}){let{publishSource:r=!0,clientOffset:i,getSourceClientOffset:a}=n,o=e.getMonitor(),s=e.getRegistry();e.dispatch(Bx(i)),Ux(t,o,s);let c=Kx(t,o);if(c==null){e.dispatch(Vx);return}let l=null;if(i){if(!a)throw Error(`getSourceClientOffset must be defined`);Wx(a),l=a(c)}e.dispatch(Bx(i,l));let u=s.getSource(c).beginDrag(o,c);return u==null?void 0:(Gx(u),s.pinSource(c),{type:Fx,payload:{itemType:s.getSourceType(c),item:u,sourceId:c,clientOffset:i||null,sourceClientOffset:l||null,isSourcePublic:!!r}})}}function Ux(e,t,n){Q(!t.isDragging(),`Cannot call beginDrag while dragging.`),e.forEach(function(e){Q(n.getSource(e),`Expected sourceIds to be registered.`)})}function Wx(e){Q(typeof e==`function`,`When clientOffset is provided, getSourceClientOffset must be a function.`)}function Gx(e){Q(jx(e),`Item must be an object.`)}function Kx(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function qx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){qx(e,t,n[t])})}return e}function Yx(e){return function(t={}){let n=e.getMonitor(),r=e.getRegistry();Xx(n),$x(n).forEach((i,a)=>{let o={type:Rx,payload:{dropResult:Jx({},t,Zx(i,a,r,n))}};e.dispatch(o)})}}function Xx(e){Q(e.isDragging(),`Cannot call drop while not dragging.`),Q(!e.didDrop(),`Cannot call drop twice during one drag operation.`)}function Zx(e,t,n,r){let i=n.getTarget(e),a=i?i.drop(r,e):void 0;return Qx(a),a===void 0&&(a=t===0?{}:r.getDropResult()),a}function Qx(e){Q(e===void 0||jx(e),`Drop result must either be an object or undefined.`)}function $x(e){let t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function eS(e){return function(){let t=e.getMonitor(),n=e.getRegistry();tS(t);let r=t.getSourceId();return r!=null&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:zx}}}function tS(e){Q(e.isDragging(),`Cannot call endDrag while not dragging.`)}function nS(e,t){return t===null?e===null:Array.isArray(e)?e.some(e=>e===t):e===t}function rS(e){return function(t,{clientOffset:n}={}){iS(t);let r=t.slice(0),i=e.getMonitor(),a=e.getRegistry();return oS(r,a,i.getItemType()),aS(r,i,a),sS(r,i,a),{type:Lx,payload:{targetIds:r,clientOffset:n||null}}}}function iS(e){Q(Array.isArray(e),`Expected targetIds to be an array.`)}function aS(e,t,n){Q(t.isDragging(),`Cannot call hover while not dragging.`),Q(!t.didDrop(),`Cannot call hover after drop.`);for(let t=0;t<e.length;t++){let r=e[t];Q(e.lastIndexOf(r)===t,`Expected targetIds to be unique in the passed array.`),Q(n.getTarget(r),`Expected targetIds to be registered.`)}}function oS(e,t,n){for(let r=e.length-1;r>=0;r--){let i=e[r];nS(t.getTargetType(i),n)||e.splice(r,1)}}function sS(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}function cS(e){return function(){if(e.getMonitor().isDragging())return{type:Ix}}}function lS(e){return{beginDrag:Hx(e),publishDragSource:cS(e),hover:rS(e),drop:Yx(e),endDrag:eS(e)}}var uS=class{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){let e=this,{dispatch:t}=this.store;function n(n){return(...r)=>{let i=n.apply(e,r);i!==void 0&&t(i)}}let r=lS(this);return Object.keys(r).reduce((e,t)=>{let i=r[t];return e[t]=n(i),e},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{let e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}};function dS(e,t){return{x:e.x+t.x,y:e.y+t.y}}function fS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pS(e){let{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:fS(dS(t,r),n)}function mS(e){let{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:fS(t,n)}var hS=[],gS=[];hS.__IS_NONE__=!0,gS.__IS_ALL__=!0;function _S(e,t){return e===hS?!1:e===gS||t===void 0||Nx(t,e).length>0}var vS=class{subscribeToStateChange(e,t={}){let{handlerIds:n}=t;Q(typeof e==`function`,`listener must be a function.`),Q(n===void 0||Array.isArray(n),`handlerIds, when specified, must be an array of strings.`);let r=this.store.getState().stateId;return this.store.subscribe(()=>{let t=this.store.getState(),i=t.stateId;try{i===r||i===r+1&&!_S(t.dirtyHandlerIds,n)||e()}finally{r=i}})}subscribeToOffsetChange(e){Q(typeof e==`function`,`listener must be a function.`);let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{let n=this.store.getState().dragOffset;n!==t&&(t=n,e())})}canDragSource(e){if(!e)return!1;let t=this.registry.getSource(e);return Q(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;let t=this.registry.getTarget(e);return Q(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop()?!1:nS(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;let t=this.registry.getSource(e,!0);return Q(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic()||this.registry.getSourceType(e)!==this.getItemType()?!1:t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;let{shallow:n}=t;if(!this.isDragging())return!1;let r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!nS(r,i))return!1;let a=this.getTargetIds();if(!a.length)return!1;let o=a.indexOf(e);return n?o===a.length-1:o>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return pS(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return mS(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}},yS=typeof global<`u`?global:self,bS=yS.MutationObserver||yS.WebKitMutationObserver;function xS(e){return function(){let t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}function SS(e){let t=1,n=new bS(e),r=document.createTextNode(``);return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}var CS=typeof bS==`function`?SS:xS,wS=class{enqueueTask(e){let{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{let{queue:e}=this;for(;this.index<e.length;){let t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=CS(this.flush),this.requestErrorThrow=xS(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},TS=class{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}},ES=class{create(e){let t=this.freeTasks,n=t.length?t.pop():new TS(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}},DS=new wS,OS=new ES(DS.registerPendingError);function kS(e){DS.enqueueTask(OS.create(e))}var AS=`dnd-core/ADD_SOURCE`,jS=`dnd-core/ADD_TARGET`,MS=`dnd-core/REMOVE_SOURCE`,NS=`dnd-core/REMOVE_TARGET`;function PS(e){return{type:AS,payload:{sourceId:e}}}function FS(e){return{type:jS,payload:{targetId:e}}}function IS(e){return{type:MS,payload:{sourceId:e}}}function LS(e){return{type:NS,payload:{targetId:e}}}function RS(e){Q(typeof e.canDrag==`function`,`Expected canDrag to be a function.`),Q(typeof e.beginDrag==`function`,`Expected beginDrag to be a function.`),Q(typeof e.endDrag==`function`,`Expected endDrag to be a function.`)}function zS(e){Q(typeof e.canDrop==`function`,`Expected canDrop to be a function.`),Q(typeof e.hover==`function`,`Expected hover to be a function.`),Q(typeof e.drop==`function`,`Expected beginDrag to be a function.`)}function BS(e,t){if(t&&Array.isArray(e)){e.forEach(e=>BS(e,!1));return}Q(typeof e==`string`||typeof e==`symbol`,t?`Type can only be a string, a symbol, or an array of either.`:`Type can only be a string or a symbol.`)}var VS;(function(e){e.SOURCE=`SOURCE`,e.TARGET=`TARGET`})(VS||={});var HS=0;function US(){return HS++}function WS(e){let t=US().toString();switch(e){case VS.SOURCE:return`S${t}`;case VS.TARGET:return`T${t}`;default:throw Error(`Unknown Handler Role: ${e}`)}}function GS(e){switch(e[0]){case`S`:return VS.SOURCE;case`T`:return VS.TARGET;default:throw Error(`Cannot parse handler ID: ${e}`)}}function KS(e,t){let n=e.entries(),r=!1;do{let{done:e,value:[,i]}=n.next();if(i===t)return!0;r=!!e}while(!r);return!1}var qS=class{addSource(e,t){BS(e),RS(t);let n=this.addHandler(VS.SOURCE,e,t);return this.store.dispatch(PS(n)),n}addTarget(e,t){BS(e,!0),zS(t);let n=this.addHandler(VS.TARGET,e,t);return this.store.dispatch(FS(n)),n}containsHandler(e){return KS(this.dragSources,e)||KS(this.dropTargets,e)}getSource(e,t=!1){return Q(this.isSourceId(e),`Expected a valid source ID.`),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Q(this.isTargetId(e),`Expected a valid target ID.`),this.dropTargets.get(e)}getSourceType(e){return Q(this.isSourceId(e),`Expected a valid source ID.`),this.types.get(e)}getTargetType(e){return Q(this.isTargetId(e),`Expected a valid target ID.`),this.types.get(e)}isSourceId(e){return GS(e)===VS.SOURCE}isTargetId(e){return GS(e)===VS.TARGET}removeSource(e){Q(this.getSource(e),`Expected an existing source.`),this.store.dispatch(IS(e)),kS(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){Q(this.getTarget(e),`Expected an existing target.`),this.store.dispatch(LS(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){let t=this.getSource(e);Q(t,`Expected an existing source.`),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){Q(this.pinnedSource,`No source is pinned at the time.`),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){let r=WS(e);return this.types.set(r,t),e===VS.SOURCE?this.dragSources.set(r,n):e===VS.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}},JS=(e,t)=>e===t;function YS(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function XS(e,t,n=JS){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function ZS(e=hS,t){switch(t.type){case Lx:break;case AS:case jS:case NS:case MS:return hS;case Fx:case Ix:case zx:case Rx:default:return gS}let{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=Mx(n,r);if(!(i.length>0||!XS(n,r)))return hS;let a=r[r.length-1],o=n[n.length-1];return a!==o&&(a&&i.push(a),o&&i.push(o)),i}function QS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $S(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){QS(e,t,n[t])})}return e}var eC={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function tC(e=eC,t){let{payload:n}=t;switch(t.type){case Px:case Fx:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Lx:return YS(e.clientOffset,n.clientOffset)?e:$S({},e,{clientOffset:n.clientOffset});case zx:case Rx:return eC;default:return e}}function nC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){nC(e,t,n[t])})}return e}var iC={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function aC(e=iC,t){let{payload:n}=t;switch(t.type){case Fx:return rC({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Ix:return rC({},e,{isSourcePublic:!0});case Lx:return rC({},e,{targetIds:n.targetIds});case NS:return e.targetIds.indexOf(n.targetId)===-1?e:rC({},e,{targetIds:Ax(e.targetIds,n.targetId)});case Rx:return rC({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case zx:return rC({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function oC(e=0,t){switch(t.type){case AS:case jS:return e+1;case MS:case NS:return e-1;default:return e}}function sC(e=0){return e+1}function cC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){cC(e,t,n[t])})}return e}function uC(e={},t){return{dirtyHandlerIds:ZS(e.dirtyHandlerIds,{type:t.type,payload:lC({},t.payload,{prevTargetIds:kx(e,`dragOperation.targetIds`,[])})}),dragOffset:tC(e.dragOffset,t),refCount:oC(e.refCount,t),dragOperation:aC(e.dragOperation,t),stateId:sC(e.stateId)}}function dC(e,t=void 0,n={},r=!1){let i=fC(r),a=new uS(i,new vS(i,new qS(i))),o=e(a,t,n);return a.receiveBackend(o),a}function fC(e){let t=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__;return Dx(uC,e&&t&&t({name:`dnd-core`,instanceId:`dnd-core`}))}var pC=t(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),mC=t(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?t.exports=n():e.getSize=n()})(window,function(){function e(e){let t=parseFloat(e);return e.indexOf(`%`)==-1&&!isNaN(t)&&t}let t=[`paddingLeft`,`paddingRight`,`paddingTop`,`paddingBottom`,`marginLeft`,`marginRight`,`marginTop`,`marginBottom`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`borderBottomWidth`];t.length;function n(){let e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};return t.forEach(t=>{e[t]=0}),e}function r(r){if(typeof r==`string`&&(r=document.querySelector(r)),!(r&&typeof r==`object`&&r.nodeType))return;let i=getComputedStyle(r);if(i.display==`none`)return n();let a={};a.width=r.offsetWidth,a.height=r.offsetHeight;let o=a.isBorderBox=i.boxSizing==`border-box`;t.forEach(e=>{let t=i[e],n=parseFloat(t);a[e]=isNaN(n)?0:n});let s=a.paddingLeft+a.paddingRight,c=a.paddingTop+a.paddingBottom,l=a.marginLeft+a.marginRight,u=a.marginTop+a.marginBottom,d=a.borderLeftWidth+a.borderRightWidth,f=a.borderTopWidth+a.borderBottomWidth,p=e(i.width);p!==!1&&(a.width=p+(o?0:s+d));let m=e(i.height);return m!==!1&&(a.height=m+(o?0:c+f)),a.innerWidth=a.width-(s+d),a.innerHeight=a.height-(c+f),a.outerWidth=a.width+l,a.outerHeight=a.height+u,a}return r})})),hC=t(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?t.exports=n():e.EvEmitter=n()})(typeof window<`u`?window:e,function(){function e(){}let t=e.prototype;return t.on=function(e,t){if(!e||!t)return this;let n=this._events=this._events||{},r=n[e]=n[e]||[];return r.includes(t)||r.push(t),this},t.once=function(e,t){if(!e||!t)return this;this.on(e,t);let n=this._onceEvents=this._onceEvents||{},r=n[e]=n[e]||{};return r[t]=!0,this},t.off=function(e,t){let n=this._events&&this._events[e];if(!n||!n.length)return this;let r=n.indexOf(t);return r!=-1&&n.splice(r,1),this},t.emitEvent=function(e,t){let n=this._events&&this._events[e];if(!n||!n.length)return this;n=n.slice(0),t||=[];let r=this._onceEvents&&this._onceEvents[e];for(let i of n)r&&r[i]&&(this.off(e,i),delete r[i]),i.apply(this,t);return this},t.allOff=function(){return delete this._events,delete this._onceEvents,this},e})})),gC=t(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?t.exports=n(e,hC()):e.Unidragger=n(e,e.EvEmitter)})(typeof window<`u`?window:e,function(e,t){function n(){}let r=n.prototype=Object.create(t.prototype);r.handleEvent=function(e){let t=`on`+e.type;this[t]&&this[t](e)};let i,a;`ontouchstart`in e?(i=`touchstart`,a=[`touchmove`,`touchend`,`touchcancel`]):e.PointerEvent?(i=`pointerdown`,a=[`pointermove`,`pointerup`,`pointercancel`]):(i=`mousedown`,a=[`mousemove`,`mouseup`]),r.touchActionValue=`none`,r.bindHandles=function(){this._bindHandles(`addEventListener`,this.touchActionValue)},r.unbindHandles=function(){this._bindHandles(`removeEventListener`,``)},r._bindHandles=function(t,n){this.handles.forEach(r=>{r[t](i,this),r[t](`click`,this),e.PointerEvent&&(r.style.touchAction=n)})},r.bindActivePointerEvents=function(){a.forEach(t=>{e.addEventListener(t,this)})},r.unbindActivePointerEvents=function(){a.forEach(t=>{e.removeEventListener(t,this)})},r.withPointer=function(e,t){t.pointerId===this.pointerIdentifier&&this[e](t,t)},r.withTouch=function(e,t){let n;for(let e of t.changedTouches)e.identifier===this.pointerIdentifier&&(n=e);n&&this[e](t,n)},r.onmousedown=function(e){this.pointerDown(e,e)},r.ontouchstart=function(e){this.pointerDown(e,e.changedTouches[0])},r.onpointerdown=function(e){this.pointerDown(e,e)};let o=[`TEXTAREA`,`INPUT`,`SELECT`,`OPTION`],s=[`radio`,`checkbox`,`button`,`submit`,`image`,`file`];return r.pointerDown=function(e,t){let n=o.includes(e.target.nodeName),r=s.includes(e.target.type),i=!n||r;!this.isPointerDown&&!e.button&&i&&(this.isPointerDown=!0,this.pointerIdentifier=t.pointerId===void 0?t.identifier:t.pointerId,this.pointerDownPointer={pageX:t.pageX,pageY:t.pageY},this.bindActivePointerEvents(),this.emitEvent(`pointerDown`,[e,t]))},r.onmousemove=function(e){this.pointerMove(e,e)},r.onpointermove=function(e){this.withPointer(`pointerMove`,e)},r.ontouchmove=function(e){this.withTouch(`pointerMove`,e)},r.pointerMove=function(e,t){let n={x:t.pageX-this.pointerDownPointer.pageX,y:t.pageY-this.pointerDownPointer.pageY};this.emitEvent(`pointerMove`,[e,t,n]),!this.isDragging&&this.hasDragStarted(n)&&this.dragStart(e,t),this.isDragging&&this.dragMove(e,t,n)},r.hasDragStarted=function(e){return Math.abs(e.x)>3||Math.abs(e.y)>3},r.dragStart=function(e,t){this.isDragging=!0,this.isPreventingClicks=!0,this.emitEvent(`dragStart`,[e,t])},r.dragMove=function(e,t,n){this.emitEvent(`dragMove`,[e,t,n])},r.onmouseup=function(e){this.pointerUp(e,e)},r.onpointerup=function(e){this.withPointer(`pointerUp`,e)},r.ontouchend=function(e){this.withTouch(`pointerUp`,e)},r.pointerUp=function(e,t){this.pointerDone(),this.emitEvent(`pointerUp`,[e,t]),this.isDragging?this.dragEnd(e,t):this.staticClick(e,t)},r.dragEnd=function(e,t){this.isDragging=!1,setTimeout(()=>delete this.isPreventingClicks),this.emitEvent(`dragEnd`,[e,t])},r.pointerDone=function(){this.isPointerDown=!1,delete this.pointerIdentifier,this.unbindActivePointerEvents(),this.emitEvent(`pointerDone`)},r.onpointercancel=function(e){this.withPointer(`pointerCancel`,e)},r.ontouchcancel=function(e){this.withTouch(`pointerCancel`,e)},r.pointerCancel=function(e,t){this.pointerDone(),this.emitEvent(`pointerCancel`,[e,t])},r.onclick=function(e){this.isPreventingClicks&&e.preventDefault()},r.staticClick=function(e,t){let n=e.type===`mouseup`;n&&this.isIgnoringMouseUp||(this.emitEvent(`staticClick`,[e,t]),n&&(this.isIgnoringMouseUp=!0,setTimeout(()=>{delete this.isIgnoringMouseUp},400)))},n})})),_C={class:`controll`},vC={class:`controll__item controll__item--circle`},yC={class:`controll__pan controll__item--circle__inner`},bC={class:`controll__pan__up controll__item--circle__inner__up`},xC={class:`controll__pan__right controll__item--circle__inner__right`},SC={class:`controll__pan__down controll__item--circle__inner__down`},CC={class:`controll__pan__left controll__item--circle__inner__left`},wC={class:`controll__home controll__item controll__item--list-item`},TC={class:`controll__zoom-in controll__item controll__item--list-item`},EC={class:`controll__zoom-in controll__item controll__item--list-item`},DC=$r({__name:`ControlButtons`,emits:[`buttondown`,`buttonup`],setup(e,{emit:t}){let n=t;function r(e,t){n(`buttondown`,{key:t})}function i(e,t){n(`buttonup`,{key:t})}return(e,t)=>(H(),ds(`div`,{id:`v-zoomable-control-btns`,class:`controll__buttons`,onDblclick:t[31]||=nu(()=>{},[`stop`]),onMousedown:t[32]||=nu(()=>{},[`stop`])},[U(`ul`,_C,[U(`li`,vC,[U(`ul`,yC,[U(`li`,bC,[U(`a`,{onPointerdown:t[0]||=e=>r(e,`pan-up`),onPointerup:t[1]||=e=>i(e,`pan-up`),onPointercancel:t[2]||=e=>i(e,`pan-up`),onPointerleave:t[3]||=e=>i(e,`pan-up`),onContextmenu:t[4]||=nu(()=>{},[`prevent`])},t[33]||=[U(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,class:`feather feather-chevron-up`},[U(`polyline`,{points:`18 15 12 9 6 15`})],-1)],32)]),U(`li`,xC,[U(`a`,{onPointerdown:t[5]||=e=>r(e,`pan-right`),onPointerup:t[6]||=e=>i(e,`pan-right`),onPointercancel:t[7]||=e=>i(e,`pan-right`),onPointerleave:t[8]||=e=>i(e,`pan-right`),onContextmenu:t[9]||=nu(()=>{},[`prevent`])},t[34]||=[U(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,class:`feather feather-chevron-right`},[U(`polyline`,{points:`9 18 15 12 9 6`})],-1)],32)]),U(`li`,SC,[U(`a`,{onPointerdown:t[10]||=e=>r(e,`pan-down`),onPointerup:t[11]||=e=>i(e,`pan-down`),onPointercancel:t[12]||=e=>i(e,`pan-down`),onPointerleave:t[13]||=e=>i(e,`pan-down`),onContextmenu:t[14]||=nu(()=>{},[`prevent`])},t[35]||=[U(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,class:`feather feather-chevron-down`},[U(`polyline`,{points:`6 9 12 15 18 9`})],-1)],32)]),U(`li`,CC,[U(`a`,{onPointerdown:t[15]||=e=>r(e,`pan-left`),onPointercancel:t[16]||=e=>i(e,`pan-left`),onPointerup:t[17]||=e=>i(e,`pan-left`),onPointerleave:t[18]||=e=>i(e,`pan-left`),onContextmenu:t[19]||=nu(()=>{},[`prevent`])},t[36]||=[U(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,class:`feather feather-chevron-left`},[U(`polyline`,{points:`15 18 9 12 15 6`})],-1)],32)])])]),U(`li`,wC,[U(`a`,{onPointerdown:t[20]||=e=>r(e,`home`)},t[37]||=[Ss(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-minimize-2" data-v-3ba139de><polyline points="4 14 10 14 10 20" data-v-3ba139de></polyline><polyline points="20 10 14 10 14 4" data-v-3ba139de></polyline><line x1="14" y1="10" x2="21" y2="3" data-v-3ba139de></line><line x1="3" y1="21" x2="10" y2="14" data-v-3ba139de></line></svg>`,1)],32)]),U(`li`,TC,[U(`a`,{onPointerdown:t[21]||=e=>r(e,`zoom-in`),onPointerup:t[22]||=e=>i(e,`zoom-in`),onPointercancel:t[23]||=e=>i(e,`zoom-in`),onPointerleave:t[24]||=e=>i(e,`zoom-in`),onContextmenu:t[25]||=nu(()=>{},[`prevent`])},t[38]||=[Ss(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-zoom-in" data-v-3ba139de><circle cx="11" cy="11" r="8" data-v-3ba139de></circle><line x1="21" y1="21" x2="16.65" y2="16.65" data-v-3ba139de></line><line x1="11" y1="8" x2="11" y2="14" data-v-3ba139de></line><line x1="8" y1="11" x2="14" y2="11" data-v-3ba139de></line></svg>`,1)],32)]),U(`li`,EC,[U(`a`,{onPointerdown:t[26]||=e=>r(e,`zoom-out`),onPointerup:t[27]||=e=>i(e,`zoom-out`),onPointercancel:t[28]||=e=>i(e,`zoom-out`),onPointerleave:t[29]||=e=>i(e,`zoom-out`),onContextmenu:t[30]||=nu(()=>{},[`prevent`])},t[39]||=[U(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,class:`feather feather-zoom-out`},[U(`circle`,{cx:`11`,cy:`11`,r:`8`}),U(`line`,{x1:`21`,y1:`21`,x2:`16.65`,y2:`16.65`}),U(`line`,{x1:`8`,y1:`11`,x2:`14`,y2:`11`})],-1)],32)])])],32))}}),OC=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},kC=OC(DC,[[`__scopeId`,`data-v-3ba139de`]]);function AC(){let e=0;function t(t,n,r,i){t(),e=window.setTimeout(()=>{e=window.setInterval(()=>{n()},i)},r)}function n(){e&&=(window.clearInterval(e),0)}return{startHold:t,clearHold:n}}var jC=`control-btn`;function MC({props:e,transform:t}){let n=AC();function r(r){n.startHold(()=>{t.changeZoom(r*e.buttonZoomStep*.5,jC)},()=>{t.changeZoom(r*e.buttonZoomStep*.5,jC)},300,50)}function i(t){if(!e.disabled)switch(t.key){case`home`:s();break;case`zoom-in`:r(1);break;case`zoom-out`:r(-1);break;case`pan-left`:o({x:1,y:0});break;case`pan-right`:o({x:-1,y:0});break;case`pan-up`:o({x:0,y:1});break;case`pan-down`:o({x:0,y:-1});break}}function a(e){n.clearHold()}function o(r){n.startHold(()=>{t.changePan(r.x*e.buttonPanStep,r.y*e.buttonPanStep,jC)},()=>{t.changePan(r.x*e.buttonPanStep,r.y*e.buttonPanStep,jC)},300,50)}function s(){t.goHome(jC)}return{onButtonDown:i,onButtonUp:a}}function NC({props:e,transform:t}){let n={x:0,y:0};function r(t){e.disabled||t.pointerType!==`mouse`||!e.mouseEnabled||(n={x:t.clientX,y:t.clientY},document.addEventListener(`pointermove`,a,{passive:!1}),document.addEventListener(`pointerup`,function(e){document.removeEventListener(`pointermove`,a)}),document.addEventListener(`pointerleave`,function(e){document.removeEventListener(`pointermove`,a)}),document.addEventListener(`pointercancel`,function(e){document.removeEventListener(`pointermove`,a)}))}function i(n){if(e.disabled||!e.dblClickEnabled||!e.zoomEnabled)return;let r={x:n.clientX,y:n.clientY};t.changeZoom(e.dblClickZoomStep,`dblClick`,r)}function a(r){if(e.disabled||!e.panEnabled||r.pointerType!==`mouse`||!e.mouseEnabled)return;let i={x:r.clientX-n.x,y:r.clientY-n.y};t.changePan(i.x,i.y,r.pointerType),n={x:r.clientX,y:r.clientY},r.preventDefault()}return{onPointerDown:r,onDblClick:i}}function PC({props:e,transform:t}){let n=z({}),r=z(0),i=null;function a(n){if(e.disabled||!e.touchEnabled||!e.panEnabled&&!e.zoomEnabled||(n.preventDefault(),n.touches.length<1))return;let a=n.touches.item(0);if(!a)return;let s=0,c={x:a.clientX,y:a.clientY};if(n.touches.length===2){let e=n.touches.item(1),i=o({x:a?a.clientX:0,y:a?a.clientY:0},{x:e?e.clientX:0,y:e?e.clientY:0});r.value<=0?(r.value=i.distance,s=0):(s=i.distance/r.value*t.zoom.value-t.zoom.value,r.value=i.distance),c=i.center}if(e.zoomEnabled&&t.changeZoom(s,`touch`,c),i===null){i={x:c.x,y:c.y};return}let l={x:c.x-i.x,y:c.y-i.y};e.panEnabled&&t.changePan(l.x,l.y,`touch`),i={x:c.x,y:c.y}}function o(e,t){return{distance:Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2),center:{x:(e.x+t.x)/2,y:(e.y+t.y)/2}}}function s(t){e.disabled||!e.touchEnabled||(i=null,document.addEventListener(`touchmove`,a,{passive:!1}),document.addEventListener(`touchend`,function(e){t.touches.length<2&&(r.value=-1),document.removeEventListener(`touchmove`,a)}))}return{onTouchStart:s,touchCount:G(()=>Object.keys(n.value).length)}}function FC({props:e,onChange:t,container:n,target:r}){let i=z({x:0,y:0}),a=z(0);Wi(()=>{a.value=e.minZoom,i.value={x:e.pan==null?e.initialPanX:e.pan.x,y:e.pan==null?e.initialPanY:e.pan.y},e.zoom?a.value=e.zoom:e.initialZoom>=e.minZoom&&e.initialZoom<=e.maxZoom&&(a.value=e.initialZoom)}),br(()=>e.zoom,()=>{isNaN(e.zoom)||(a.value=e.zoom)}),br(()=>e.pan,()=>{e.pan&&(i.value.x=e.pan.x,i.value.y=e.pan.y)},{deep:!0});function o(r,o,c){if(isNaN(r)||r===0)return;let l=a.value,u=a.value+r;if(u>e.maxZoom?u=e.maxZoom:u<e.minZoom&&(u=e.minZoom),!(Math.abs(l-u)<1e-4)){if(a.value=u,e.zoomOrigin===`center`&&(c=IC(n.value)),e.zoomOrigin!==`content-center`){c||=IC(n.value);let e=LC(n.value,i.value),t={x:(u-l)*((e.x-c.x)/l),y:(u-l)*((e.y-c.y)/l)};s(t.x,t.y,`zoom`)}t(`zoom`,{zoom:u,delta:{zoom:r,pan:{x:0,y:0}},pan:{x:i.value.x,y:i.value.y,deltaX:0,deltaY:0},type:o})}}function s(e,n,r){isNaN(e)&&(e=0),isNaN(n)&&(n=0),i.value={x:i.value.x+e,y:i.value.y+n},t(`panned`,{zoom:a.value,delta:{zoom:0,pan:{x:e,y:n}},pan:{x:i.value.x,y:i.value.y,deltaX:e,deltaY:n},type:r})}function c(n){a.value=e.initialZoom,t(`zoom`,{zoom:a.value,pan:{x:i.value.x,y:i.value.y,deltaX:0,deltaY:0},type:n});let r={x:e.initialPanX-i.value.x,y:e.initialPanY-i.value.y};i.value={x:e.initialPanX,y:e.initialPanY},t(`panned`,{zoom:a.value,pan:{x:i.value.x,y:i.value.y,deltaX:r.x,deltaY:r.y},type:n})}return{zoom:G(()=>a.value),pan:G(()=>i.value),setZoom:e=>{a.value=e},setPan:e=>{i.value=e},changeZoom:o,changePan:s,goHome:c}}function IC(e){let t=e.getBoundingClientRect();return{x:t.left+t.width/2,y:t.top+t.height/2}}function LC(e,t){let n=IC(e);return{x:n.x+t.x,y:n.y+t.y}}function RC({props:e,transform:t}){function n(n){if(e.disabled||!e.wheelEnabled||!e.zoomEnabled)return;let r=Math.abs(n.deltaY)>0?n.deltaY:n.deltaX,i=e.wheelZoomStep*-1*r/Math.abs(r),a={x:n.clientX,y:n.clientY};t.changeZoom(i,`wheel`,a),n.preventDefault()}return{onWheel:n}}function zC({props:e,onChange:t,container:n,target:r}){let i=FC({props:e,onChange:t,container:n,target:r}),a=PC({props:e,transform:i}),o=RC({props:e,transform:i}),s=NC({props:e,transform:i}),c=MC({props:e,transform:i});return{zoom:i.zoom,pan:i.pan,setZoom:i.setZoom,setPan:i.setPan,onWheel:o.onWheel,onTouchStart:a.onTouchStart,onButtonUp:c.onButtonUp,onButtonDown:c.onButtonDown,onPointerDown:s.onPointerDown,onDblClick:s.onDblClick}}var BC=OC($r({__name:`VueZoomable`,props:{zoom:{type:Number,default:null},pan:{type:Object,default:null},selector:{type:String,default:`* > *`},maxZoom:{type:Number,default:3},minZoom:{type:Number,default:.5},initialPanX:{type:Number,default:0},initialPanY:{type:Number,default:0},initialZoom:{type:Number,default:.5},dblClickZoomStep:{type:Number,default:.4},wheelZoomStep:{type:Number,default:.4},panEnabled:{type:Boolean,default:!0},zoomEnabled:{type:Boolean,default:!0},mouseEnabled:{type:Boolean,default:!0},touchEnabled:{type:Boolean,default:!0},dblClickEnabled:{type:Boolean,default:!0},wheelEnabled:{type:Boolean,default:!0},enableControlButton:{type:Boolean,default:!0},buttonPanStep:{type:Number,default:15},buttonZoomStep:{type:Number,default:.1},disabled:{type:Boolean,default:!1},zoomOrigin:{type:String,default:`pointer`}},emits:[`panned`,`zoom`,`update:zoom`,`update:pan`],setup(e,{emit:t}){let n=t,r=e,i=z(),a=G(()=>i.value?.querySelector(r.selector)),o=zC({props:r,onChange:s,container:i,target:a});function s(e,t){e===`zoom`?n(`update:zoom`,t.zoom):e===`panned`&&n(`update:pan`,t.pan),n(e,t)}let c=G(()=>`translate(${o.pan.value.x}px, ${o.pan.value.y}px) scale(${o.zoom.value})`);function l(){a.value&&(a.value.style.transform=c.value,a.value.style.transformOrigin=`center center`,a.value.style.transition=`transform 0.07s ease-out`,a.value.style.transformBox=`fill-box`)}return br(c,()=>{l()},{flush:`post`}),Wi(()=>{l()}),(e,t)=>(H(),ds(`div`,{ref_key:`container`,ref:i,class:fe(e.$style.container),onDblclick:t[0]||=(...e)=>B(o).onDblClick&&B(o).onDblClick(...e),onPointerdown:t[1]||=(...e)=>B(o).onPointerDown&&B(o).onPointerDown(...e),onWheel:t[2]||=(...e)=>B(o).onWheel&&B(o).onWheel(...e),onTouchstart:t[3]||=(...e)=>B(o).onTouchStart&&B(o).onTouchStart(...e)},[la(e.$slots,`default`,{},void 0,!0),la(e.$slots,`buttons`,{},()=>[B(r).enableControlButton?(H(),fs(kC,{key:0,onButtondown:B(o).onButtonDown,onButtonup:B(o).onButtonUp},null,8,[`onButtondown`,`onButtonup`])):Cs(``,!0)],!0)],34))}}),[[`__cssModules`,{$style:{container:`_container_irdvc_2`,buttons:`_buttons_irdvc_11`}}],[`__scopeId`,`data-v-fce7d501`]]),VC;(function(e){e.Unimplemented=`UNIMPLEMENTED`,e.Unavailable=`UNAVAILABLE`})(VC||={});var HC=class extends Error{constructor(e,t,n){super(e),this.message=e,this.code=t,this.data=n}},UC=e=>e?.androidBridge?`android`:e?.webkit?.messageHandlers?.bridge?`ios`:`web`,WC=e=>{let t=e.CapacitorCustomPlatform||null,n=e.Capacitor||{},r=n.Plugins=n.Plugins||{},i=()=>t===null?UC(e):t.name,a=()=>i()!==`web`,o=e=>!!(l.get(e)?.platforms.has(i())||s(e)),s=e=>n.PluginHeaders?.find(t=>t.name===e),c=t=>e.console.error(t),l=new Map;return n.convertFileSrc||=e=>e,n.getPlatform=i,n.handleError=c,n.isNativePlatform=a,n.isPluginAvailable=o,n.registerPlugin=(e,a={})=>{let o=l.get(e);if(o)return console.warn(`Capacitor plugin "${e}" already registered. Cannot register plugins twice.`),o.proxy;let c=i(),u=s(e),d,f=async()=>(!d&&c in a?d=d=typeof a[c]==`function`?await a[c]():a[c]:t!==null&&!d&&`web`in a&&(d=d=typeof a.web==`function`?await a.web():a.web),d),p=(t,r)=>{if(u){let i=u?.methods.find(e=>r===e.name);if(i)return i.rtype===`promise`?t=>n.nativePromise(e,r.toString(),t):(t,i)=>n.nativeCallback(e,r.toString(),t,i);if(t)return t[r]?.bind(t)}else if(t)return t[r]?.bind(t);else throw new HC(`"${e}" plugin is not implemented on ${c}`,VC.Unimplemented)},m=t=>{let n,r=(...r)=>{let i=f().then(i=>{let a=p(i,t);if(a){let e=a(...r);return n=e?.remove,e}throw new HC(`"${e}.${t}()" is not implemented on ${c}`,VC.Unimplemented)});return t===`addListener`&&(i.remove=async()=>n()),i};return r.toString=()=>`${t.toString()}() { [capacitor code] }`,Object.defineProperty(r,"name",{value:t,writable:!1,configurable:!1}),r},h=m(`addListener`),g=m(`removeListener`),v=(e,t)=>{let n=h({eventName:e},t),r=async()=>{let r=await n;g({eventName:e,callbackId:r},t)},i=new Promise(e=>n.then(()=>e({remove:r})));return i.remove=async()=>{console.warn(`Using addListener() without 'await' is deprecated.`),await r()},i},y=new Proxy({},{get(e,t){switch(t){case`$$typeof`:return;case`toJSON`:return()=>({});case`addListener`:return u?v:h;case`removeListener`:return g;default:return m(t)}}});return r[e]=y,l.set(e,{name:e,proxy:y,platforms:new Set([...Object.keys(a),...u?[c]:[]])}),y},n.Exception=HC,n.DEBUG=!!n.DEBUG,n.isLoggingEnabled=!!n.isLoggingEnabled,n},GC=(e=>e.Capacitor=WC(e))(typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}),KC=GC.registerPlugin,qC=class{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(e,t){let n=!1;this.listeners[e]||(this.listeners[e]=[],n=!0),this.listeners[e].push(t);let r=this.windowListeners[e];return r&&!r.registered&&this.addWindowListener(r),n&&this.sendRetainedArgumentsForEvent(e),Promise.resolve({remove:async()=>this.removeListener(e,t)})}async removeAllListeners(){this.listeners={};for(let e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,t,n){let r=this.listeners[e];if(!r){if(n){let n=this.retainedEventArguments[e];n||=[],n.push(t),this.retainedEventArguments[e]=n}return}r.forEach(e=>e(t))}hasListeners(e){return!!this.listeners[e]?.length}registerWindowListener(e,t){this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:e=>{this.notifyListeners(t,e)}}}unimplemented(e=`not implemented`){return new GC.Exception(e,VC.Unimplemented)}unavailable(e=`not available`){return new GC.Exception(e,VC.Unavailable)}async removeListener(e,t){let n=this.listeners[e];if(!n)return;let r=n.indexOf(t);this.listeners[e].splice(r,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}sendRetainedArgumentsForEvent(e){let t=this.retainedEventArguments[e];t&&(delete this.retainedEventArguments[e],t.forEach(t=>{this.notifyListeners(e,t)}))}},JC=KC(`WebView`),YC=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),XC=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent),ZC=class extends qC{async getCookies(){let e=document.cookie,t={};return e.split(`;`).forEach(e=>{if(e.length<=0)return;let[n,r]=e.replace(/=/,`CAP_COOKIE`).split(`CAP_COOKIE`);n=XC(n).trim(),r=XC(r).trim(),t[n]=r}),t}async setCookie(e){try{let t=YC(e.key),n=YC(e.value),r=e.expires?`; expires=${e.expires.replace(`expires=`,``)}`:``,i=(e.path||`/`).replace(`path=`,``),a=e.url!=null&&e.url.length>0?`domain=${e.url}`:``;document.cookie=`${t}=${n||``}${r}; path=${i}; ${a};`}catch(e){return Promise.reject(e)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(e){return Promise.reject(e)}}async clearCookies(){try{let e=document.cookie.split(`;`)||[];for(let t of e)document.cookie=t.replace(/^ +/,``).replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}},QC=KC(`CapacitorCookies`,{web:()=>new ZC}),$C=async e=>new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=r.result;t(e.indexOf(`,`)>=0?e.split(`,`)[1]:e)},r.onerror=e=>n(e),r.readAsDataURL(e)}),ew=(e={})=>{let t=Object.keys(e);return Object.keys(e).map(e=>e.toLocaleLowerCase()).reduce((n,r,i)=>(n[r]=e[t[i]],n),{})},tw=(e,t=!0)=>e?Object.entries(e).reduce((e,n)=>{let[r,i]=n,a,o;return Array.isArray(i)?(o=``,i.forEach(e=>{a=t?encodeURIComponent(e):e,o+=`${r}=${a}&`}),o.slice(0,-1)):(a=t?encodeURIComponent(i):i,o=`${r}=${a}`),`${e}&${o}`},``).substr(1):null,nw=(e,t={})=>{let n=Object.assign({method:e.method||`GET`,headers:e.headers},t),r=ew(e.headers)[`content-type`]||``;if(typeof e.data==`string`)n.body=e.data;else if(r.includes(`application/x-www-form-urlencoded`)){let t=new URLSearchParams;for(let[n,r]of Object.entries(e.data||{}))t.set(n,r);n.body=t.toString()}else if(r.includes(`multipart/form-data`)||e.data instanceof FormData){let t=new FormData;if(e.data instanceof FormData)e.data.forEach((e,n)=>{t.append(n,e)});else for(let n of Object.keys(e.data))t.append(n,e.data[n]);n.body=t;let r=new Headers(n.headers);r.delete(`content-type`),n.headers=r}else(r.includes(`application/json`)||typeof e.data==`object`)&&(n.body=JSON.stringify(e.data));return n},rw=class extends qC{async request(e){let t=nw(e,e.webFetchExtra),n=tw(e.params,e.shouldEncodeUrlParams),r=n?`${e.url}?${n}`:e.url,i=await fetch(r,t),a=i.headers.get(`content-type`)||``,{responseType:o=`text`}=i.ok?e:{};a.includes(`application/json`)&&(o=`json`);let s,c;switch(o){case`arraybuffer`:case`blob`:c=await i.blob(),s=await $C(c);break;case`json`:s=await i.json();break;default:s=await i.text()}let l={};return i.headers.forEach((e,t)=>{l[t]=e}),{data:s,headers:l,status:i.status,url:i.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:`GET`}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:`POST`}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:`PUT`}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:`PATCH`}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:`DELETE`}))}},iw=KC(`CapacitorHttp`,{web:()=>new rw}),aw;(function(e){e.Dark=`DARK`,e.Light=`LIGHT`,e.Default=`DEFAULT`})(aw||={});var ow;(function(e){e.StatusBar=`StatusBar`,e.NavigationBar=`NavigationBar`})(ow||={});var sw=class extends qC{async setStyle(){this.unavailable(`not available for web`)}async setAnimation(){this.unavailable(`not available for web`)}async show(){this.unavailable(`not available for web`)}async hide(){this.unavailable(`not available for web`)}},cw=KC(`SystemBars`,{web:()=>new sw}),lw=KC(`Badge`,{web:()=>_g(()=>import(`./web-jy45nBi_.js`).then(e=>new e.BadgeWeb),[],import.meta.url)}),uw={};function dw(e){return e.getIsPending!==void 0}function fw(e){if(dw(e))return e;let t=!0,n=e.then(e=>(t=!1,e),e=>{throw t=!1,e});return n.getIsPending=function(){return t},n}function pw(e){let t={},n=e.attributes;if(!n)return t;for(let e=n.length-1;e>=0;e--)t[n[e].name]=n[e].value;return t}function mw(e){return Object.keys(e).reduce((t,n)=>(e[n]!==!1&&e[n]!==null&&e[n]!==void 0&&(t[n]=e[n]),t),{})}function hw(e,t){let{class:n,style:r,...i}=pw(e),{class:a,style:o,...s}=mw(t);return{class:[n,a],style:[r,o],...i,...s}}var gw=$r({inheritAttrs:!1,__name:`InlineSvg`,props:{src:{},title:{default:void 0},transformSource:{type:Function,default:e=>e},keepDuringLoading:{type:Boolean,default:!0},uniqueIds:{type:[Boolean,String],default:!1},uniqueIdsBase:{default:``}},emits:[`loaded`,`unloaded`,`error`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=Ta(),o=z(),s=z(),c=z(),l=Math.random().toString(36).substring(2);t({svgElSource:o,request:c}),br(()=>r.src,e=>{d(e)}),d(r.src);function u(e){if(e=e.cloneNode(!0),r.uniqueIds){let t=typeof r.uniqueIds==`string`?r.uniqueIds:l;e=h(e,t,r.uniqueIdsBase)}return e=r.transformSource(e),r.title&&m(e,r.title),e.innerHTML}function d(e){uw[e]||(uw[e]=f(e)),o.value&&uw[e].getIsPending()&&!r.keepDuringLoading&&(o.value=null,i(`unloaded`)),uw[e].then(e=>{o.value=e,Gn(()=>{i(`loaded`,s.value)})}).catch(t=>{o.value&&(o.value=void 0,i(`unloaded`)),delete uw[e],i(`error`,t)})}function f(e){return fw(new Promise((t,n)=>{let r=new XMLHttpRequest;r.open(`GET`,e,!0),c.value=r,r.onload=()=>{if(r.status>=200&&r.status<400)try{let e=new DOMParser().parseFromString(r.responseText,`text/xml`).getElementsByTagName(`svg`)[0];e?t(e):n(Error(`Loaded file is not valid SVG"`))}catch(e){n(e)}else n(Error(`Error loading SVG`))},r.onerror=n,r.send()}))}let p=()=>o.value?$s(`svg`,{...hw(o.value,a),innerHTML:u(o.value),ref:s}):null;function m(e,t){let n=e.getElementsByTagName(`title`);if(n.length)n[0].textContent=t;else{let n=document.createElementNS(`http://www.w3.org/2000/svg`,`title`);n.textContent=t,e.insertBefore(n,e.firstChild)}}function h(e,t,n=``){let r=[`id`,`href`,`xlink:href`,`xlink:role`,`xlink:arcrole`],i=[`href`,`xlink:href`],a=(e,t)=>i.includes(e)&&(t?!t.includes(`#`):!1);return[...e.children].forEach(e=>{var i;if((i=e.attributes)!=null&&i.length){let i=Object.values(e.attributes).map(e=>{let r=/url\((.*?)\)/.exec(e.value);return r!=null&&r[1]&&(e.value=e.value.replace(r[0],`url(${n}${r[1]}_${t})`)),e});r.forEach(e=>{let n=i.find(t=>t.name===e);n&&!a(e,n.value)&&(n.value=`${n.value}_${t}`)})}return e.children.length?h(e,t,n):e}),e}return(e,t)=>(H(),fs(p))}});function _w(e){return typeof e==`function`}function vw(e){return e==null}var yw=e=>e!==null&&!!e&&typeof e==`object`&&!Array.isArray(e);function bw(e){return Number(e)>=0}function xw(e){let t=parseFloat(e);return isNaN(t)?e:t}function Sw(e){return typeof e==`object`&&!!e}function Cw(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}function ww(e){if(!Sw(e)||Cw(e)!==`[object Object]`)return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Tw(e,t){return Object.keys(t).forEach(n=>{if(ww(t[n])&&ww(e[n])){e[n]||(e[n]={}),Tw(e[n],t[n]);return}e[n]=t[n]}),e}function Ew(e){let t=e.split(`.`);if(!t.length)return``;let n=String(t[0]);for(let e=1;e<t.length;e++){if(bw(t[e])){n+=`[${t[e]}]`;continue}n+=`.${t[e]}`}return n}var Dw={};function Ow(e){return Dw[e]}function kw(e,t,n){typeof n.value==`object`&&(n.value=$(n.value)),!n.enumerable||n.get||n.set||!n.configurable||!n.writable||t===`__proto__`?Object.defineProperty(e,t,n):e[t]=n.value}function $(e){if(typeof e!=`object`)return e;var t=0,n,r,i,a=Object.prototype.toString.call(e);if(a===`[object Object]`?i=Object.create(e.__proto__||null):a===`[object Array]`?i=Array(e.length):a===`[object Set]`?(i=new Set,e.forEach(function(e){i.add($(e))})):a===`[object Map]`?(i=new Map,e.forEach(function(e,t){i.set($(t),$(e))})):a===`[object Date]`?i=new Date(+e):a===`[object RegExp]`?i=new RegExp(e.source,e.flags):a===`[object DataView]`?i=new e.constructor($(e.buffer)):a===`[object ArrayBuffer]`?i=e.slice(0):a.slice(-6)===`Array]`&&(i=new e.constructor(e)),i){for(r=Object.getOwnPropertySymbols(e);t<r.length;t++)kw(i,r[t],Object.getOwnPropertyDescriptor(e,r[t]));for(t=0,r=Object.getOwnPropertyNames(e);t<r.length;t++)Object.hasOwnProperty.call(i,n=r[t])&&i[n]===e[n]||kw(i,n,Object.getOwnPropertyDescriptor(e,n))}return i||e}var Aw=Symbol(`vee-validate-form`),jw=Symbol(`vee-validate-form-context`),Mw=Symbol(`vee-validate-field-instance`),Nw=Symbol(`Default empty value`),Pw=typeof window<`u`;function Fw(e){return _w(e)&&!!e.__locatorRef}function Iw(e){return yw(e)&&`~standard`in e}function Lw(e){return e===`checkbox`||e===`radio`}function Rw(e){return yw(e)||Array.isArray(e)}function zw(e){return Array.isArray(e)?e.length===0:yw(e)&&Object.keys(e).length===0}function Bw(e){return/^\[.+\]$/i.test(e)}function Vw(e){return Hw(e)&&e.multiple}function Hw(e){return e.tagName===`SELECT`}function Uw(e,t){let n=![!1,null,void 0,0].includes(t.multiple)&&!Number.isNaN(t.multiple);return e===`select`&&`multiple`in t&&n}function Ww(e,t){return!Uw(e,t)&&t.type!==`file`&&!Lw(t.type)}function Gw(e){return Kw(e)&&e.target&&`submit`in e.target}function Kw(e){return e?!!(typeof Event<`u`&&_w(Event)&&e instanceof Event||e&&e.srcElement):!1}function qw(e,t){return t in e&&e[t]!==Nw}function Jw(e,t){if(e===t)return!0;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Jw(e[r],t[r]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(r of e.entries())if(!t.has(r[0]))return!1;for(r of e.entries())if(!Jw(r[1],t.get(r[0])))return!1;return!0}if(Xw(e)&&Xw(t))return e.size===t.size&&e.name===t.name&&e.lastModified===t.lastModified&&e.type===t.type;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(r of e.entries())if(!t.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(e=Yw(e),t=Yw(t),i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){var a=i[r];if(!Jw(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Yw(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}function Xw(e){return Pw?e instanceof File:!1}function Zw(e){if(e.path?.length){let t=``;for(let n of e.path){let e=typeof n==`object`?n.key:n;if(typeof e==`string`||typeof e==`number`)t+=t?`.${e}`:e;else return null}return t}return null}function Qw(e){return Bw(e)?e.replace(/\[|\]/gi,``):e}function $w(e,t,n){return e?Bw(t)?e[Qw(t)]:(t||``).split(/\.|\[(\d+)\]/).filter(Boolean).reduce((e,t)=>Rw(e)&&t in e?e[t]:n,e):n}function eT(e,t,n){if(Bw(t)){e[Qw(t)]=n;return}let r=t.split(/\.|\[(\d+)\]/).filter(Boolean),i=e;for(let e=0;e<r.length;e++){if(e===r.length-1){i[r[e]]=n;return}(!(r[e]in i)||vw(i[r[e]]))&&(i[r[e]]=bw(r[e+1])?[]:{}),i=i[r[e]]}}function tT(e,t){if(Array.isArray(e)&&bw(t)){e.splice(Number(t),1);return}yw(e)&&delete e[t]}function nT(e,t){if(Bw(t)){delete e[Qw(t)];return}let n=t.split(/\.|\[(\d+)\]/).filter(Boolean),r=e;for(let e=0;e<n.length;e++){if(e===n.length-1){tT(r,n[e]);break}if(!(n[e]in r)||vw(r[n[e]]))break;r=r[n[e]]}let i=n.map((t,r)=>$w(e,n.slice(0,r).join(`.`)));for(let t=i.length-1;t>=0;t--)if(zw(i[t])){if(t===0){tT(e,n[0]);continue}tT(i[t-1],n[t-1])}}function rT(e){return Object.keys(e)}function iT(e,t=void 0){return Ns()?.provides[e]||pr(e,t)}function aT(e,t,n){if(Array.isArray(e)){let n=[...e],r=n.findIndex(e=>Jw(e,t));return r>=0?n.splice(r,1):n.push(t),n}return Jw(e,t)?n:t}function oT(e,t=0){let n=null,r=[];return function(...i){return n&&clearTimeout(n),n=setTimeout(()=>{let t=e(...i);r.forEach(e=>e(t)),r=[]},t),new Promise(e=>r.push(e))}}function sT(e,t){return yw(t)&&t.number?xw(e):e}function cT(e,t){let n;return async function(...r){let i=e(...r);n=i;let a=await i;return i===n?(n=void 0,t(a,r)):a}}function lT(e){return Array.isArray(e)?e:e?[e]:[]}function uT(e,t){let n={};for(let r in e)t.includes(r)||(n[r]=e[r]);return n}function dT(e){let t=null,n=[];return function(...r){let i=Gn(()=>{if(t!==i)return;let a=e(...r);n.forEach(e=>e(a)),n=[],t=null});return t=i,new Promise(e=>n.push(e))}}function fT(e,t){let n={};for(let r of e){let e=t(r);n[e]||(n[e]={path:e,messages:[]}),`messages`in r?n[e].messages.push(...r.messages):n[e].messages.push(r.message)}return Object.values(n)}function pT(e){return fT(e,e=>e.path?Zw(e)??``:``)}function mT(e,t,n){return t.slots.default?typeof e==`string`||!e?t.slots.default(n()):{default:()=>{var e;return(e=t.slots).default?.call(e,n())}}:t.slots.default}function hT(e){if(gT(e))return e._value}function gT(e){return`_value`in e}function _T(e){return e.type===`range`?Number.isNaN(e.valueAsNumber)?e.value:e.valueAsNumber:e.value}function vT(e){if(!Kw(e))return e;let t=e.target;if(Lw(t.type)&&gT(t))return hT(t);if(t.type===`file`&&t.files){let e=Array.from(t.files);return t.multiple?e:e[0]}if(Vw(t))return Array.from(t.options).filter(e=>e.selected&&!e.disabled).map(hT);if(Hw(t)){let e=Array.from(t.options).find(e=>e.selected);return e?hT(e):t.value}return _T(t)}function yT(e){let t={};return Object.defineProperty(t,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?yw(e)&&e._$$isNormalized?e:yw(e)?Object.keys(e).reduce((t,n)=>{let r=bT(e[n]);return e[n]!==!1&&(t[n]=xT(r)),t},t):typeof e==`string`?e.split(`|`).reduce((e,t)=>{let n=ST(t);return n.name&&(e[n.name]=xT(n.params)),e},t):t:t}function bT(e){return e===!0?[]:Array.isArray(e)||yw(e)?e:[e]}function xT(e){let t=e=>typeof e==`string`&&e[0]===`@`?CT(e.slice(1)):e;return Array.isArray(e)?e.map(t):e instanceof RegExp?[e]:Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{})}var ST=e=>{let t=[],n=e.split(`:`)[0];return e.includes(`:`)&&(t=e.split(`:`).slice(1).join(`:`).split(`,`)),{name:n,params:t}};function CT(e){let t=t=>$w(t,e)??t[e];return t.__locatorRef=e,t}function wT(e){return Array.isArray(e)?e.filter(Fw):rT(e).filter(t=>Fw(e[t])).map(t=>e[t])}var TT=Object.assign({},{generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0}),ET=()=>TT;async function DT(e,t,n={}){let r=n?.bails,i=await OT({name:n?.name||`{field}`,rules:t,label:n?.label,bails:r??!0,formData:n?.values||{}},e);return Object.assign(Object.assign({},i),{valid:!i.errors.length})}async function OT(e,t){let n=e.rules;if(Iw(n))return kT(t,Object.assign(Object.assign({},e),{rules:n}));if(_w(n)||Array.isArray(n)){let r={field:e.label||e.name,name:e.name,label:e.label,form:e.formData,value:t},i=Array.isArray(n)?n:[n],a=i.length,o=[];for(let n=0;n<a;n++){let a=i[n],s=await a(t,r);if(!(typeof s!=`string`&&!Array.isArray(s)&&s)){if(Array.isArray(s))o.push(...s);else{let e=typeof s==`string`?s:jT(r);o.push(e)}if(e.bails)return{errors:o}}}return{errors:o}}let r=Object.assign(Object.assign({},e),{rules:yT(n)}),i=[],a=Object.keys(r.rules),o=a.length;for(let n=0;n<o;n++){let o=a[n],s=await AT(r,t,{name:o,params:r.rules[o]});if(s.error&&(i.push(s.error),e.bails))return{errors:i}}return{errors:i}}async function kT(e,t){let n=await t.rules[`~standard`].validate(e);if(!n.issues)return{value:n.value,errors:[]};let r=[];for(let e of n.issues)e.message&&r.push(e.message);return{errors:r}}async function AT(e,t,n){let r=Ow(n.name);if(!r)throw Error(`No such validator '${n.name}' exists.`);let i=MT(n.params,e.formData),a={field:e.label||e.name,name:e.name,label:e.label,value:t,form:e.formData,rule:Object.assign(Object.assign({},n),{params:i})},o=await r(t,i,a);return typeof o==`string`?{error:o}:{error:o?void 0:jT(a)}}function jT(e){let t=ET().generateMessage;return t?t(e):`Field is invalid`}function MT(e,t){let n=e=>Fw(e)?e(t):e;return Array.isArray(e)?e.map(n):Object.keys(e).reduce((t,r)=>(t[r]=n(e[r]),t),{})}async function NT(e,t){let n=await e[`~standard`].validate($(t)),r={},i={};if(!n.issues)return{valid:!0,results:{},errors:{},values:n.value,source:`schema`};let a=pT(n.issues||[]);for(let e of a){let t=e.messages,n=e.path;r[n]={valid:!t.length,errors:t},t.length&&(i[n]=t[0])}return{valid:!a.length,results:r,errors:i,values:void 0,source:`schema`}}async function PT(e,t,n){let r=rT(e).map(async r=>{let i=n?.names?.[r],a=await DT($w(t,r),e[r],{name:i?.name||r,label:i?.label,values:t,bails:n?.bailsMap?.[r]??!0});return Object.assign(Object.assign({},a),{path:r})}),i=!0,a=await Promise.all(r),o={},s={};for(let e of a)o[e.path]={valid:e.valid,errors:e.errors},e.valid||(i=!1,s[e.path]=e.errors[0]);return{valid:i,results:o,errors:s,source:`schema`}}var FT=0;function IT(e,t){let{value:n,initialValue:r,setInitialValue:i}=LT(e,t.modelValue,t.form);if(!t.form){let{errors:t,setErrors:a}=BT(),o=FT>=2**53-1?0:++FT,s=zT(n,r,t);function c(e){`value`in e&&(n.value=e.value),`errors`in e&&a(e.errors),`touched`in e&&(s.touched=e.touched??s.touched),`initialValue`in e&&i(e.initialValue)}return{id:o,path:e,value:n,initialValue:r,meta:s,flags:{pendingUnmount:{[o]:!1},pendingReset:!1},errors:t,setState:c}}let a=t.form.createPathState(e,{bails:t.bails,label:t.label,type:t.type,validate:t.validate}),o=G(()=>a.errors);function s(r){var a,o;`value`in r&&(n.value=r.value),`errors`in r&&((a=t.form)==null||a.setFieldError(B(e),r.errors)),`touched`in r&&((o=t.form)==null||o.setFieldTouched(B(e),r.touched??!1)),`initialValue`in r&&i(r.initialValue)}return{id:Array.isArray(a.id)?a.id[a.id.length-1]:a.id,path:e,value:n,errors:o,meta:a,initialValue:r,flags:a.__flags,setState:s}}function LT(e,t,n){let r=z(B(t));function i(){return n?$w(n.initialValues.value,B(e),B(r)):B(r)}function a(t){if(!n){r.value=t;return}n.setFieldInitialValue(B(e),t,!0)}let o=G(i);if(!n)return{value:z(i()),initialValue:o,setInitialValue:a};let s=RT(t,n,o,e);return n.stageInitialValue(B(e),s,!0),{value:G({get(){return $w(n.values,B(e))},set(t){n.setFieldValue(B(e),t,!1)}}),initialValue:o,setInitialValue:a}}function RT(e,t,n,r){return nn(e)?B(e):e===void 0?$w(t.values,B(r),B(n)):e}function zT(e,t,n){let r=Wt({touched:!1,pending:!1,valid:!0,validated:!!B(n).length,initialValue:G(()=>B(t)),dirty:G(()=>!Jw(B(e),B(t)))});return br(n,e=>{r.valid=!e.length},{immediate:!0,flush:`sync`}),r}function BT(){let e=z([]);return{errors:e,setErrors:t=>{e.value=lT(t)}}}function VT(e,t,n){return Lw(n?.type)?WT(e,t,n):HT(e,t,n)}function HT(e,t,n){let{initialValue:r,validateOnMount:i,bails:a,type:o,checkedValue:s,label:c,validateOnValueUpdate:l,uncheckedValue:u,controlled:d,keepValueOnUnmount:f,syncVModel:p,form:m}=UT(n),h=d?iT(Aw):void 0,g=m||h,v=G(()=>Ew(V(e))),y=G(()=>{if(V(g?.schema))return;let e=B(t);return Iw(e)||_w(e)||Array.isArray(e)?e:yT(e)}),{id:b,value:x,initialValue:S,meta:C,setState:w,errors:T,flags:E}=IT(v,{modelValue:r,form:g,bails:a,label:c,type:o,validate:y.value?j:void 0}),D=G(()=>T.value[0]);p&>({value:x,prop:p,handleChange:M,shouldValidate:()=>l&&!E.pendingReset});let O=(e,t=!1)=>{C.touched=!0,t&&ee()};async function k(e){if(g?.validateSchema){let{results:t}=await g.validateSchema(e);return t[V(v)]??{valid:!0,errors:[]}}return y.value?DT(x.value,y.value,{name:V(v),label:V(c),values:g?.values??{},bails:a}):{valid:!0,errors:[]}}let ee=cT(async()=>(C.pending=!0,C.validated=!0,k(`validated-only`)),e=>E.pendingUnmount[I.id]?e:(w({errors:e.errors}),C.pending=!1,C.valid=e.valid,e)),A=cT(async()=>k(`silent`),e=>(C.valid=e.valid,e));function j(e){return e?.mode===`silent`?A():ee()}function M(e,t=!0){P(vT(e),t)}Wi(()=>{if(i)return ee();(!g||!g.validateSchema)&&A()});function te(e){C.touched=e}function ne(e){let t=e&&`value`in e?e.value:S.value;w({value:$(t),initialValue:$(t),touched:e?.touched??!1,errors:e?.errors||[]}),C.pending=!1,C.validated=!1,A()}let N=Ns();function P(e,t=!0){x.value=N&&p?sT(e,N.props.modelModifiers):e,(t?ee:A)()}function F(e){w({errors:Array.isArray(e)?e:[e]})}let I={id:b,name:v,label:c,value:G({get(){return x.value},set(e){P(e,l)}}),meta:C,errors:T,errorMessage:D,type:o,checkedValue:s,uncheckedValue:u,bails:a,keepValueOnUnmount:f,resetField:ne,handleReset:()=>ne(),validate:j,handleChange:M,handleBlur:O,setState:w,setTouched:te,setErrors:F,setValue:P};return fr(Mw,I),nn(t)&&typeof B(t)!=`function`&&br(t,(e,t)=>{Jw(e,t)||(C.validated?ee():A())},{deep:!0}),g?(br(G(()=>{let e=y.value;return!e||_w(e)||Iw(e)||Array.isArray(e)?{}:Object.keys(e).reduce((t,n)=>{let r=wT(e[n]).map(e=>e.__locatorRef).reduce((e,t)=>{let n=$w(g.values,t)||g.values[t];return n!==void 0&&(e[t]=n),e},{});return Object.assign(t,r),t},{})}),(e,t)=>{Object.keys(e).length&&(Jw(e,t)||(C.validated?ee():A()))}),qi(()=>{let e=V(I.keepValueOnUnmount)??V(g.keepValuesOnUnmount),t=V(v);if(e||!g||E.pendingUnmount[I.id]){g?.removePathState(t,b);return}E.pendingUnmount[I.id]=!0;let n=g.getPathState(t);if(Array.isArray(n?.id)&&n?.multiple?n?.id.includes(I.id):n?.id===I.id){if(n?.multiple&&Array.isArray(n.value)){let e=n.value.findIndex(e=>Jw(e,V(I.checkedValue)));if(e>-1){let r=[...n.value];r.splice(e,1),g.setFieldValue(t,r)}Array.isArray(n.id)&&n.id.splice(n.id.indexOf(I.id),1)}else g.unsetPathValue(V(v));g.removePathState(t,b)}}),I):I}function UT(e){let t=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),n=!!e?.syncVModel,r=typeof e?.syncVModel==`string`?e.syncVModel:`modelValue`,i=n&&!(`initialValue`in(e||{}))?KT(Ns(),r):e?.initialValue;if(!e)return Object.assign(Object.assign({},t()),{initialValue:i});let a=e.controlled??!0,o=e?.syncVModel||!1;return Object.assign(Object.assign(Object.assign({},t()),e||{}),{initialValue:i,controlled:a??!0,checkedValue:e?.checkedValue,syncVModel:o})}function WT(e,t,n){let r=n?.controlled?iT(Aw):void 0,i=n?.checkedValue,a=n?.uncheckedValue;function o(t){let o=t.handleChange,s=G(()=>{let e=V(t.value),n=V(i);return Array.isArray(e)?e.findIndex(e=>Jw(e,n))>=0:Jw(n,e)});function c(c,l=!0){if(s.value===c?.target?.checked){l&&t.validate();return}let u=V(e),d=r?.getPathState(u),f=vT(c),p=V(i)??f;r&&d?.multiple&&d.type===`checkbox`?p=aT($w(r.values,u)||[],p,void 0):n?.type===`checkbox`&&(p=aT(V(t.value),p,V(a))),o(p,l)}return Object.assign(Object.assign({},t),{checked:s,checkedValue:i,uncheckedValue:a,handleChange:c})}return o(HT(e,t,n))}function GT({prop:e,value:t,handleChange:n,shouldValidate:r}){let i=Ns();if(!i||!e)return;let a=typeof e==`string`?e:`modelValue`,o=`update:${a}`;a in i.props&&(br(t,e=>{Jw(e,KT(i,a))||i.emit(o,e)}),br(()=>KT(i,a),e=>{if(e===Nw&&t.value===void 0)return;let i=e===Nw?void 0:e;Jw(i,t.value)||n(i,r())}))}function KT(e,t){if(e)return e.props[t]}var qT=$r({name:`Field`,inheritAttrs:!1,props:{as:{type:[String,Object],default:void 0},name:{type:String,required:!0},rules:{type:[Object,String,Function],default:void 0},validateOnMount:{type:Boolean,default:!1},validateOnBlur:{type:Boolean,default:void 0},validateOnChange:{type:Boolean,default:void 0},validateOnInput:{type:Boolean,default:void 0},validateOnModelUpdate:{type:Boolean,default:void 0},bails:{type:Boolean,default:()=>ET().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:Nw},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},controlled:{type:Boolean,default:!0},keepValue:{type:Boolean,default:void 0}},setup(e,t){let n=hn(e,`rules`),r=hn(e,`name`),i=hn(e,`label`),a=hn(e,`uncheckedValue`),o=hn(e,`keepValue`),{errors:s,value:c,errorMessage:l,validate:u,handleChange:d,handleBlur:f,setTouched:p,resetField:m,handleReset:h,meta:g,checked:v,setErrors:y,setValue:b}=VT(r,n,{validateOnMount:e.validateOnMount,bails:e.bails,controlled:e.controlled,type:t.attrs.type,initialValue:XT(e,t),checkedValue:t.attrs.value,uncheckedValue:a,label:i,validateOnValueUpdate:e.validateOnModelUpdate,keepValueOnUnmount:o,syncVModel:!0}),x=function(e,t=!0){d(e,t)},S=G(()=>{let{validateOnInput:n,validateOnChange:r,validateOnBlur:i,validateOnModelUpdate:a}=YT(e);function o(e){f(e,i),_w(t.attrs.onBlur)&&t.attrs.onBlur(e)}function s(e){x(e,n),_w(t.attrs.onInput)&&t.attrs.onInput(e)}function c(e){x(e,r),_w(t.attrs.onChange)&&t.attrs.onChange(e)}let l={name:e.name,onBlur:o,onInput:s,onChange:c};return l[`onUpdate:modelValue`]=e=>x(e,a),l}),C=G(()=>{let n=Object.assign({},S.value);return Lw(t.attrs.type)&&v&&(n.checked=v.value),Ww(JT(e,t),t.attrs)&&(n.value=c.value),n}),w=G(()=>Object.assign(Object.assign({},S.value),{modelValue:c.value}));function T(){return{field:C.value,componentField:w.value,value:c.value,meta:g,errors:s.value,errorMessage:l.value,validate:u,resetField:m,handleChange:x,handleInput:e=>x(e,!1),handleReset:h,handleBlur:S.value.onBlur,setTouched:p,setErrors:y,setValue:b}}return t.expose({value:c,meta:g,errors:s,errorMessage:l,setErrors:y,setTouched:p,setValue:b,reset:m,validate:u,handleChange:d}),()=>{let n=ra(JT(e,t)),r=mT(n,t,T);return n?$s(n,Object.assign(Object.assign({},t.attrs),C.value),r):r}}});function JT(e,t){let n=e.as||``;return!e.as&&!t.slots.default&&(n=`input`),n}function YT(e){let{validateOnInput:t,validateOnChange:n,validateOnBlur:r,validateOnModelUpdate:i}=ET();return{validateOnInput:e.validateOnInput??t,validateOnChange:e.validateOnChange??n,validateOnBlur:e.validateOnBlur??r,validateOnModelUpdate:e.validateOnModelUpdate??i}}function XT(e,t){return Lw(t.attrs.type)?qw(e,`modelValue`)?e.modelValue:void 0:qw(e,`modelValue`)?e.modelValue:t.attrs.value}var ZT=qT,QT=0,$T=[`bails`,`fieldsCount`,`id`,`multiple`,`type`,`validate`];function eE(e){let t=e?.initialValues||{};return $(Object.assign({},V(t)))}function tE(e){let t=QT++,n=e?.name||`Form`,r=0,i=z(!1),a=z(!1),o=z(0),s=[],c=Wt(eE(e)),l=z([]),u=z({}),d=z({}),f=dT(()=>{d.value=l.value.reduce((e,t)=>(e[Ew(V(t.path))]=t,e),{})});function p(e,t){let n=M(e);if(!n){typeof e==`string`&&(u.value[Ew(e)]=lT(t));return}if(typeof e==`string`){let t=Ew(e);u.value[t]&&delete u.value[t]}n.errors=lT(t),n.valid=!n.errors.length}function m(e){rT(e).forEach(t=>{p(t,e[t])})}e?.initialErrors&&m(e.initialErrors);let h=G(()=>{let e=l.value.reduce((e,t)=>(t.errors.length&&(e[V(t.path)]=t.errors),e),{});return Object.assign(Object.assign({},u.value),e)}),g=G(()=>rT(h.value).reduce((e,t)=>{let n=h.value[t];return n?.length&&(e[t]=n[0]),e},{})),v=G(()=>l.value.reduce((e,t)=>(e[V(t.path)]={name:V(t.path)||``,label:t.label||``},e),{})),y=G(()=>l.value.reduce((e,t)=>(e[V(t.path)]=t.bails??!0,e),{})),b=Object.assign({},e?.initialErrors||{}),x=e?.keepValuesOnUnmount??!1,{initialValues:S,originalInitialValues:C,setInitialValues:w}=rE(l,c,e),T=nE(l,c,C,g),E=G(()=>l.value.reduce((e,t)=>{let n=$w(c,V(t.path));return eT(e,V(t.path),n),e},{})),D=e?.validationSchema;function O(e,t){let n=G(()=>$w(S.value,V(e))),i=d.value[V(e)],a=t?.type===`checkbox`||t?.type===`radio`;if(i&&a){i.multiple=!0;let e=r++;return Array.isArray(i.id)?i.id.push(e):i.id=[i.id,e],i.fieldsCount++,i.__flags.pendingUnmount[e]=!1,i}let o=G(()=>$w(c,V(e))),s=V(e),u=ne.findIndex(e=>e===s);u!==-1&&ne.splice(u,1);let p=r++,m=Wt({id:p,path:e,touched:!1,pending:!1,valid:!0,validated:!!b[s]?.length,initialValue:n,errors:rn([]),bails:t?.bails??!1,label:t?.label,type:t?.type||`default`,value:o,multiple:!1,__flags:{pendingUnmount:{[p]:!1},pendingReset:!1},fieldsCount:1,validate:t?.validate,dirty:G(()=>!Jw(B(o),B(n)))});return l.value.push(m),d.value[s]=m,f(),g.value[s]&&!b[s]&&Gn(()=>{_e(s,{mode:`silent`})}),nn(e)&&br(e,e=>{f();let t=$(o.value);d.value[e]=m,Gn(()=>{eT(c,e,t)})}),m}let k=oT(xe,5),ee=oT(xe,5),A=cT(async e=>await(e===`silent`?k():ee()),(e,[t])=>{let n=rT(ie.errorBag.value),r=[...new Set([...rT(e.results),...l.value.map(e=>e.path),...n])].sort().reduce((n,r)=>{let i=r,a=M(i)||te(i),o=e.results[i]?.errors||[],s=V(a?.path)||i,c=iE({errors:o,valid:!o.length},n.results[s]);return n.results[s]=c,c.valid||(n.errors[s]=c.errors[0]),a&&u.value[s]&&delete u.value[s],a?(a.valid=c.valid,t===`silent`||t===`validated-only`&&!a.validated||p(a,c.errors),n):(p(s,o),n)},{valid:e.valid,results:{},errors:{},source:e.source});return e.values&&(r.values=e.values,r.source=e.source),rT(r.results).forEach(e=>{let n=M(e);n&&t!==`silent`&&(t===`validated-only`&&!n.validated||p(n,r.results[e]?.errors))}),r});function j(e){l.value.forEach(e)}function M(e){let t=typeof e==`string`?Ew(e):e;return typeof t==`string`?d.value[t]:t}function te(e){return l.value.filter(t=>e.startsWith(V(t.path))).reduce((e,t)=>e?t.path.length>e.path.length?t:e:t,void 0)}let ne=[],N;function P(e){return ne.push(e),N||=Gn(()=>{[...ne].sort().reverse().forEach(e=>{nT(c,e)}),ne=[],N=null}),N}function F(e){return function(t,n){return function(r){return r instanceof Event&&(r.preventDefault(),r.stopPropagation()),j(e=>e.touched=!0),i.value=!0,o.value++,ge().then(i=>{let a=$(c);if(i.valid&&typeof t==`function`){let n=$(E.value),o=e?n:a;return i.values&&(o=i.source===`schema`?i.values:Object.assign({},o,i.values)),t(o,{evt:r,controlledValues:n,setErrors:m,setFieldError:p,setTouched:pe,setFieldTouched:le,setValues:se,setFieldValue:ae,resetForm:he,resetField:me})}!i.valid&&typeof n==`function`&&n({values:a,evt:r,errors:i.errors,results:i.results})}).then(e=>(i.value=!1,e),e=>{throw i.value=!1,e})}}}let I=F(!1);I.withControlled=F(!0);function re(e,t){let n=l.value.findIndex(n=>n.path===e&&(Array.isArray(n.id)?n.id.includes(t):n.id===t)),r=l.value[n];if(!(n===-1||!r)){if(Gn(()=>{_e(e,{mode:`silent`,warn:!1})}),r.multiple&&r.fieldsCount&&r.fieldsCount--,Array.isArray(r.id)){let e=r.id.indexOf(t);e>=0&&r.id.splice(e,1),delete r.__flags.pendingUnmount[t]}(!r.multiple||r.fieldsCount<=0)&&(l.value.splice(n,1),ve(e),f(),delete d.value[e])}}function L(e){rT(d.value).forEach(t=>{t.startsWith(e)&&delete d.value[t]}),l.value=l.value.filter(t=>!t.path.startsWith(e)),Gn(()=>{f()})}let ie={name:n,formId:t,values:c,controlledValues:E,errorBag:h,errors:g,schema:D,submitCount:o,meta:T,isSubmitting:i,isValidating:a,fieldArrays:s,keepValuesOnUnmount:x,validateSchema:B(D)?A:void 0,validate:ge,setFieldError:p,validateField:_e,setFieldValue:ae,setValues:se,setErrors:m,setFieldTouched:le,setTouched:pe,resetForm:he,resetField:me,handleSubmit:I,defineField:Ce,stageInitialValue:ye,unsetInitialValue:ve,setFieldInitialValue:be,createPathState:O,getPathState:M,unsetPathValue:P,removePathState:re,initialValues:S,getAllPathStates:()=>l.value,destroyPath:L,isFieldTouched:ue,isFieldDirty:de,isFieldValid:fe};function ae(e,t,n=!0){let r=$(t),i=typeof e==`string`?e:e.path;M(i)||O(i),eT(c,i,r),n&&_e(i)}function oe(e,t=!0){rT(c).forEach(e=>{delete c[e]}),rT(e).forEach(t=>{ae(t,e[t],!1)}),t&&ge()}function se(e,t=!0){Tw(c,e),s.forEach(e=>e&&e.reset()),t&&ge()}function ce(e,t){let n=M(V(e))||O(e);return G({get(){return n.value},set(n){ae(V(e),n,V(t)??!1)}})}function le(e,t){let n=M(e);n&&(n.touched=t)}function ue(e){let t=M(e);return t?t.touched:l.value.filter(t=>t.path.startsWith(e)).some(e=>e.touched)}function de(e){let t=M(e);return t?t.dirty:l.value.filter(t=>t.path.startsWith(e)).some(e=>e.dirty)}function fe(e){let t=M(e);return t?t.valid:l.value.filter(t=>t.path.startsWith(e)).every(e=>e.valid)}function pe(e){if(typeof e==`boolean`){j(t=>{t.touched=e});return}rT(e).forEach(t=>{le(t,!!e[t])})}function me(e,t){let n=t&&`value`in t?t.value:$w(S.value,e),r=M(e);r&&(r.__flags.pendingReset=!0),be(e,$(n),!0),ae(e,n,!1),le(e,t?.touched??!1),p(e,t?.errors||[]),Gn(()=>{r&&(r.__flags.pendingReset=!1)})}function he(e,t){let n=$(e?.values?e.values:C.value);n=t?.force?n:Tw(C.value,n),w(n,{force:t?.force}),j(t=>{t.__flags.pendingReset=!0,t.validated=!1,t.touched=e?.touched?.[V(t.path)]||!1,ae(V(t.path),$w(n,V(t.path)),!1),p(V(t.path),void 0)}),t?.force?oe(n,!1):se(n,!1),m(e?.errors||{}),o.value=e?.submitCount||0,Gn(()=>{ge({mode:`silent`}),j(e=>{e.__flags.pendingReset=!1})})}async function ge(e){let t=e?.mode||`force`;if(t===`force`&&j(e=>e.validated=!0),ie.validateSchema)return ie.validateSchema(t);a.value=!0;let n=await Promise.all(l.value.map(t=>t.validate?t.validate(e).then(e=>({key:V(t.path),valid:e.valid,errors:e.errors,value:e.value})):Promise.resolve({key:V(t.path),valid:!0,errors:[],value:void 0})));a.value=!1;let r={},i={},o={};for(let e of n)r[e.key]={valid:e.valid,errors:e.errors},e.value&&eT(o,e.key,e.value),e.errors.length&&(i[e.key]=e.errors[0]);return{valid:n.every(e=>e.valid),results:r,errors:i,values:o,source:`fields`}}async function _e(e,t){let n=M(e);if(n&&t?.mode!==`silent`&&(n.validated=!0),D){let{results:n}=await A(t?.mode||`validated-only`);return n[e]||{errors:[],valid:!0}}return n?.validate?n.validate(t):(!n&&t?.warn,Promise.resolve({errors:[],valid:!0}))}function ve(e){nT(S.value,e)}function ye(t,n,r=!1){be(t,n),eT(c,t,n),r&&!e?.initialValues&&eT(C.value,t,$(n))}function be(e,t,n=!1){eT(S.value,e,$(t)),n&&eT(C.value,e,$(t))}async function xe(){let e=B(D);if(!e)return{valid:!0,results:{},errors:{},source:`none`};a.value=!0;let t=Iw(e)?await NT(e,c):await PT(e,c,{names:v.value,bailsMap:y.value});return a.value=!1,t}let Se=I((e,{evt:t})=>{Gw(t)&&t.target.submit()});Wi(()=>{if(e?.initialErrors&&m(e.initialErrors),e?.initialTouched&&pe(e.initialTouched),e?.validateOnMount){ge();return}ie.validateSchema&&ie.validateSchema(`silent`)}),nn(D)&&br(D,()=>{var e;(e=ie.validateSchema)==null||e.call(ie,`validated-only`)}),fr(Aw,ie);function Ce(e,t){let n=_w(t)?void 0:t?.label,r=M(V(e))||O(e,{label:n}),i=()=>_w(t)?t(uT(r,$T)):t||{};function a(){r.touched=!0,(i().validateOnBlur??ET().validateOnBlur)&&_e(V(r.path))}function o(){(i().validateOnInput??ET().validateOnInput)&&Gn(()=>{_e(V(r.path))})}function s(){(i().validateOnChange??ET().validateOnChange)&&Gn(()=>{_e(V(r.path))})}let c=G(()=>{let e={onChange:s,onInput:o,onBlur:a};return _w(t)?Object.assign(Object.assign({},e),t(uT(r,$T)).props||{}):t?.props?Object.assign(Object.assign({},e),t.props(uT(r,$T))):e});return[ce(e,()=>i().validateOnModelUpdate??ET()?.validateOnModelUpdate??!0),c]}let we=Object.assign(Object.assign({},ie),{values:Kt(c),handleReset:()=>he(),submitForm:Se});return fr(jw,we),we}function nE(e,t,n,r){let i={touched:`some`,pending:`some`,valid:`every`},a=G(()=>!Jw(t,B(n)));function o(){let t=e.value;return rT(i).reduce((e,n)=>{let r=i[n];return e[n]=t[r](e=>e[n]),e},{})}let s=Wt(o());return _r(()=>{let e=o();s.touched=e.touched,s.valid=e.valid,s.pending=e.pending}),G(()=>Object.assign(Object.assign({initialValues:B(n)},s),{valid:s.valid&&!rT(r.value).length,dirty:a.value}))}function rE(e,t,n){let r=eE(n),i=z(r),a=z($(r));function o(n,r){r?.force?(i.value=$(n),a.value=$(n)):(i.value=Tw($(i.value)||{},$(n)),a.value=Tw($(a.value)||{},$(n))),r?.updateFields&&e.value.forEach(e=>{if(e.touched)return;let n=$w(i.value,V(e.path));eT(t,V(e.path),$(n))})}return{initialValues:i,originalInitialValues:a,setInitialValues:o}}function iE(e,t){return t?{valid:e.valid&&t.valid,errors:[...e.errors,...t.errors]}:e}var aE=$r({name:`Form`,inheritAttrs:!1,props:{as:{type:null,default:`form`},validationSchema:{type:Object,default:void 0},initialValues:{type:Object,default:void 0},initialErrors:{type:Object,default:void 0},initialTouched:{type:Object,default:void 0},validateOnMount:{type:Boolean,default:!1},onSubmit:{type:Function,default:void 0},onInvalidSubmit:{type:Function,default:void 0},keepValues:{type:Boolean,default:!1},name:{type:String,default:`Form`}},setup(e,t){let n=hn(e,`validationSchema`),r=hn(e,`keepValues`),{errors:i,errorBag:a,values:o,meta:s,isSubmitting:c,isValidating:l,submitCount:u,controlledValues:d,validate:f,validateField:p,handleReset:m,resetForm:h,handleSubmit:g,setErrors:v,setFieldError:y,setFieldValue:b,setValues:x,setFieldTouched:S,setTouched:C,resetField:w}=tE({validationSchema:n.value?n:void 0,initialValues:e.initialValues,initialErrors:e.initialErrors,initialTouched:e.initialTouched,validateOnMount:e.validateOnMount,keepValuesOnUnmount:r,name:e.name}),T=g((e,{evt:t})=>{Gw(t)&&t.target.submit()},e.onInvalidSubmit),E=e.onSubmit?g(e.onSubmit,e.onInvalidSubmit):T;function D(e){Kw(e)&&e.preventDefault(),m(),typeof t.attrs.onReset==`function`&&t.attrs.onReset()}function O(t,n){return g(typeof t==`function`&&!n?t:n,e.onInvalidSubmit)(t)}function k(){return $(o)}function ee(){return $(s.value)}function A(){return $(i.value)}function j(){return{meta:s.value,errors:i.value,errorBag:a.value,values:o,isSubmitting:c.value,isValidating:l.value,submitCount:u.value,controlledValues:d.value,validate:f,validateField:p,handleSubmit:O,handleReset:m,submitForm:T,setErrors:v,setFieldError:y,setFieldValue:b,setValues:x,setFieldTouched:S,setTouched:C,resetForm:h,resetField:w,getValues:k,getMeta:ee,getErrors:A}}return t.expose({setFieldError:y,setErrors:v,setFieldValue:b,setValues:x,setFieldTouched:S,setTouched:C,resetForm:h,validate:f,validateField:p,resetField:w,getValues:k,getMeta:ee,getErrors:A,values:o,meta:s,errors:i}),function(){let n=e.as===`form`?e.as:e.as?ra(e.as):null,r=mT(n,t,j);return n?$s(n,Object.assign(Object.assign(Object.assign({},n===`form`?{novalidate:!0}:{}),t.attrs),{onSubmit:E,onReset:D}),r):r}}}),oE=$r({name:`ErrorMessage`,props:{as:{type:String,default:void 0},name:{type:String,required:!0}},setup(e,t){let n=pr(Aw,void 0),r=G(()=>n?.errors.value[e.name]);function i(){return{message:r.value}}return()=>{if(!r.value)return;let n=e.as?ra(e.as):e.as,a=mT(n,t,i),o=Object.assign({role:`alert`},t.attrs);return!n&&(Array.isArray(a)||!a)&&a?.length?a:(Array.isArray(a)||!a)&&!a?.length?$s(n||`span`,o,r.value):$s(n,o,a)}}}),sE={accept:`Ja`,addRule:`Regel hinzufügen`,am:`am`,apply:`Übernehmen`,cancel:`Abbrechen`,choose:`Auswählen`,chooseDate:`Datum wählen`,chooseMonth:`Monat wählen`,chooseYear:`Jahr wählen`,clear:`Löschen`,completed:`Abgeschlossen`,contains:`Enthält`,custom:`Benutzerdefiniert`,dateAfter:`Datum ist nach`,dateBefore:`Datum ist vor`,dateFormat:`dd.mm.yy`,dateIs:`Datum ist`,dateIsNot:`Datum ist nicht`,dayNames:[`Sonntag`,`Montag`,`Dienstag`,`Mittwoch`,`Donnerstag`,`Freitag`,`Samstag`],dayNamesMin:[`So`,`Mo`,`Di`,`Mi`,`Do`,`Fr`,`Sa`],dayNamesShort:[`So`,`Mo`,`Di`,`Mi`,`Do`,`Fr`,`Sa`],emptyFilterMessage:`Keine Ergebnisse gefunden`,emptyMessage:`Keine Einträge gefunden`,emptySearchMessage:`Keine Ergebnisse gefunden`,emptySelectionMessage:`Kein ausgewähltes Element`,endsWith:`Endet mit`,equals:`Ist gleich`,fileChosenMessage:`{0} Dateien`,fileSizeTypes:[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`],filter:`Filtern`,firstDayOfWeek:1,gt:`Größer als`,gte:`Größer oder gleich`,lt:`Kleiner als`,lte:`Kleiner oder gleich`,matchAll:`Trifft auf alle zu`,matchAny:`Trifft auf einige zu`,medium:`Mittel`,monthNames:[`Januar`,`Februar`,`März`,`April`,`Mai`,`Juni`,`Juli`,`August`,`September`,`Oktober`,`November`,`Dezember`],monthNamesShort:[`Jan`,`Feb`,`Mär`,`Apr`,`Mai`,`Jun`,`Jul`,`Aug`,`Sep`,`Okt`,`Nov`,`Dez`],nextDecade:`Nächstes Jahrzehnt`,nextHour:`Nächste Stunde`,nextMinute:`Nächste Minute`,nextMonth:`Nächster Monat`,nextSecond:`Nächste Sekunde`,nextYear:`Nächstes Jahr`,noFileChosenMessage:`Keine Datei ausgewählt`,noFilter:`Kein Filter`,notContains:`Enthält nicht`,notEquals:`Ist ungleich`,now:`Jetzt`,passwordPrompt:`Passwort eingeben`,pending:`Ausstehend`,pm:`pm`,prevDecade:`Vorheriges Jahrzehnt`,prevHour:`Vorherige Stunde`,prevMinute:`Vorherige Minute`,prevMonth:`Vorheriger Monat`,prevSecond:`Vorherige Sekunde`,prevYear:`Vorheriges Jahr`,reject:`Nein`,removeRule:`Regel entfernen`,searchMessage:`{0} Ergebnisse verfügbar`,selectionMessage:`{0} Elemente ausgewählt`,showMonthAfterYear:!1,startsWith:`Beginnt mit`,strong:`Stark`,today:`Heute`,upload:`Hochladen`,weak:`Schwach`,weekHeader:`KW`,aria:{cancelEdit:`Änderungen abbrechen`,close:`Schließen`,collapseLabel:`Einklappen`,collapseRow:`Zeile reduziert`,editRow:`Zeile bearbeiten`,expandLabel:`Ausklappen`,expandRow:`Zeile erweitert`,falseLabel:`Falsch`,filterConstraint:`Filterbeschränkung`,filterOperator:`Filteroperator`,firstPageLabel:`Erste Seite`,gridView:`Rasteransicht`,hideFilterMenu:`Filtermenü ausblenden`,jumpToPageDropdownLabel:`Zum Dropdown-Menü springen`,jumpToPageInputLabel:`Zum Eingabefeld springen`,lastPageLabel:`Letzte Seite`,listLabel:`Optionsliste`,listView:`Listenansicht`,maximizeLabel:`Maximieren`,minimizeLabel:`Minimieren`,moveAllToSource:`Alle zur Quelle bewegen`,moveAllToTarget:`Alle zum Ziel bewegen`,moveBottom:`Zum Ende bewegen`,moveDown:`Nach unten bewegen`,moveTop:`Zum Anfang bewegen`,moveToSource:`Zur Quelle bewegen`,moveToTarget:`Zum Ziel bewegen`,moveUp:`Nach oben bewegen`,navigation:`Navigation`,next:`Nächste`,nextPageLabel:`Nächste Seite`,nullLabel:`Nicht ausgewählt`,otpLabel:`Bitte geben Sie das Einmalkennwortzeichen {0} ein.`,pageLabel:`Seite {page}`,passwordHide:`Passwort verbergen`,passwordShow:`Passwort anzeigen`,previous:`Vorherige`,prevPageLabel:`Vorherige Seite`,removeLabel:`Entfernen`,rotateLeft:`Nach links drehen`,rotateRight:`Nach rechts drehen`,rowsPerPageLabel:`Zeilen pro Seite`,saveEdit:`Änderungen speichern`,scrollTop:`Nach oben scrollen`,selectAll:`Alle Elemente ausgewählt`,selectColor:`Wählen Sie eine Farbe`,selectLabel:`Auswählen`,selectRow:`Zeile ausgewählt`,showFilterMenu:`Filtermenü anzeigen`,slide:`Folie`,slideNumber:`{slideNumber}`,star:`1 Stern`,stars:`{star} Sterne`,trueLabel:`Wahr`,unselectAll:`Alle Elemente abgewählt`,unselectLabel:`Auswahl aufheben`,unselectRow:`Zeile abgewählt`,zoomImage:`Bild vergrößern`,zoomIn:`Vergrößern`,zoomOut:`Verkleinern`}},cE={accept:`Yes`,addRule:`Add Rule`,am:`AM`,apply:`Apply`,cancel:`Cancel`,choose:`Choose`,chooseDate:`Choose Date`,chooseMonth:`Choose Month`,chooseYear:`Choose Year`,clear:`Clear`,completed:`Completed`,contains:`Contains`,custom:`Custom`,dateAfter:`Date is after`,dateBefore:`Date is before`,dateFormat:`mm/dd/yy`,dateIs:`Date is`,dateIsNot:`Date is not`,dayNames:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayNamesMin:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],dayNamesShort:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],emptyFilterMessage:`No results found`,emptyMessage:`No available options`,emptySearchMessage:`No results found`,emptySelectionMessage:`No selected item`,endsWith:`Ends with`,equals:`Equals`,fileChosenMessage:`{0} files`,fileSizeTypes:[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`],filter:`Filter`,firstDayOfWeek:0,gt:`Greater than`,gte:`Greater than or equal to`,lt:`Less than`,lte:`Less than or equal to`,matchAll:`Match All`,matchAny:`Match Any`,medium:`Medium`,monthNames:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthNamesShort:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],nextDecade:`Next Decade`,nextHour:`Next Hour`,nextMinute:`Next Minute`,nextMonth:`Next Month`,nextSecond:`Next Second`,nextYear:`Next Year`,noFileChosenMessage:`No file chosen`,noFilter:`No Filter`,notContains:`Not contains`,notEquals:`Not equals`,now:`Now`,passwordPrompt:`Enter a password`,pending:`Pending`,pm:`PM`,prevDecade:`Previous Decade`,prevHour:`Previous Hour`,prevMinute:`Previous Minute`,prevMonth:`Previous Month`,prevSecond:`Previous Second`,prevYear:`Previous Year`,reject:`No`,removeRule:`Remove Rule`,searchMessage:`{0} results are available`,selectionMessage:`{0} items selected`,showMonthAfterYear:!1,startsWith:`Starts with`,strong:`Strong`,today:`Today`,upload:`Upload`,weak:`Weak`,weekHeader:`Wk`,aria:{cancelEdit:`Cancel Edit`,close:`Close`,collapseLabel:`Collapse`,collapseRow:`Row Collapsed`,editRow:`Edit Row`,expandLabel:`Expand`,expandRow:`Row Expanded`,falseLabel:`False`,filterConstraint:`Filter Constraint`,filterOperator:`Filter Operator`,firstPageLabel:`First Page`,gridView:`Grid View`,hideFilterMenu:`Hide Filter Menu`,jumpToPageDropdownLabel:`Jump to Page Dropdown`,jumpToPageInputLabel:`Jump to Page Input`,lastPageLabel:`Last Page`,listLabel:`Option List`,listView:`List View`,maximizeLabel:`Maximize`,minimizeLabel:`Minimize`,moveAllToSource:`Move All to Source`,moveAllToTarget:`Move All to Target`,moveBottom:`Move Bottom`,moveDown:`Move Down`,moveToSource:`Move to Source`,moveToTarget:`Move to Target`,moveTop:`Move Top`,moveUp:`Move Up`,navigation:`Navigation`,next:`Next`,nextPageLabel:`Next Page`,nullLabel:`Not Selected`,otpLabel:`Please enter one time password character {0}`,pageLabel:`Page {page}`,passwordHide:`Hide Password`,passwordShow:`Show Password`,prevPageLabel:`Previous Page`,previous:`Previous`,removeLabel:`Remove`,rotateLeft:`Rotate Left`,rotateRight:`Rotate Right`,rowsPerPageLabel:`Rows per page`,saveEdit:`Save Edit`,scrollTop:`Scroll Top`,selectAll:`All items selected`,selectColor:`Select a color`,selectLabel:`Select`,selectRow:`Row Selected`,showFilterMenu:`Show Filter Menu`,slide:`Slide`,slideNumber:`{slideNumber}`,star:`1 star`,stars:`{star} stars`,trueLabel:`True`,unselectAll:`All items unselected`,unselectLabel:`Unselect`,unselectRow:`Row Unselected`,zoomImage:`Zoom Image`,zoomIn:`Zoom In`,zoomOut:`Zoom Out`}},lE=t(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),uE=t((e=>{var t,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(e){if(!e)throw Error(`"version" cannot be null or undefined`);if(e<1||e>40)throw Error(`"version" should be in range from 1 to 40`);return e*4+17},e.getSymbolTotalCodewords=function(e){return n[e]},e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},e.setToSJISFunction=function(e){if(typeof e!=`function`)throw Error(`"toSJISFunc" is not a valid function.`);t=e},e.isKanjiModeEnabled=function(){return t!==void 0},e.toSJIS=function(e){return t(e)}})),dE=t((e=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`l`:case`low`:return e.L;case`m`:case`medium`:return e.M;case`q`:case`quartile`:return e.Q;case`h`:case`high`:return e.H;default:throw Error(`Unknown EC Level: `+t)}}e.isValid=function(e){return e&&e.bit!==void 0&&e.bit>=0&&e.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})),fE=t(((e,t)=>{function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n})),pE=t(((e,t)=>{function n(e){if(!e||e<1)throw Error(`BitMatrix size must be defined and greater than 0`);this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n})),mE=t((e=>{var t=uE().getSymbolSize;e.getRowColCoords=function(e){if(e===1)return[];let n=Math.floor(e/7)+2,r=t(e),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let e=1;e<n-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)e===0&&t===0||e===0&&t===i-1||e===i-1&&t===0||n.push([r[e],r[t]]);return n}})),hE=t((e=>{var t=uE().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),gE=t((e=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(e){return e!=null&&e!==``&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,r=0,i=0,a=0,o=null,s=null;for(let c=0;c<n;c++){i=a=0,o=s=null;for(let l=0;l<n;l++){let n=e.get(c,l);n===o?i++:(i>=5&&(r+=t.N1+(i-5)),o=n,i=1),n=e.get(l,c),n===s?a++:(a>=5&&(r+=t.N1+(a-5)),s=n,a=1)}i>=5&&(r+=t.N1+(i-5)),a>=5&&(r+=t.N1+(a-5))}return r},e.getPenaltyN2=function(e){let n=e.size,r=0;for(let t=0;t<n-1;t++)for(let i=0;i<n-1;i++){let n=e.get(t,i)+e.get(t,i+1)+e.get(t+1,i)+e.get(t+1,i+1);(n===4||n===0)&&r++}return r*t.N2},e.getPenaltyN3=function(e){let n=e.size,r=0,i=0,a=0;for(let t=0;t<n;t++){i=a=0;for(let o=0;o<n;o++)i=i<<1&2047|e.get(t,o),o>=10&&(i===1488||i===93)&&r++,a=a<<1&2047|e.get(o,t),o>=10&&(a===1488||a===93)&&r++}return r*t.N3},e.getPenaltyN4=function(e){let n=0,r=e.data.length;for(let t=0;t<r;t++)n+=e.data[t];return Math.abs(Math.ceil(n*100/r/5)-10)*t.N4};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error(`bad maskPattern:`+t)}}e.applyMask=function(e,t){let r=t.size;for(let i=0;i<r;i++)for(let a=0;a<r;a++)t.isReserved(a,i)||t.xor(a,i,n(e,a,i))},e.getBestMask=function(t,n){let r=Object.keys(e.Patterns).length,i=0,a=1/0;for(let o=0;o<r;o++){n(o),e.applyMask(o,t);let r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),r<a&&(a=r,i=o)}return i}})),_E=t((e=>{var t=dE(),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(e,r){switch(r){case t.L:return n[(e-1)*4+0];case t.M:return n[(e-1)*4+1];case t.Q:return n[(e-1)*4+2];case t.H:return n[(e-1)*4+3];default:return}},e.getTotalCodewordsCount=function(e,n){switch(n){case t.L:return r[(e-1)*4+0];case t.M:return r[(e-1)*4+1];case t.Q:return r[(e-1)*4+2];case t.H:return r[(e-1)*4+3];default:return}}})),vE=t((e=>{var t=new Uint8Array(512),n=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)t[r]=e,n[e]=r,e<<=1,e&256&&(e^=285);for(let e=255;e<512;e++)t[e]=t[e-255]})(),e.log=function(e){if(e<1)throw Error(`log(`+e+`)`);return n[e]},e.exp=function(e){return t[e]},e.mul=function(e,r){return e===0||r===0?0:t[n[e]+n[r]]}})),yE=t((e=>{var t=vE();e.mul=function(e,n){let r=new Uint8Array(e.length+n.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<n.length;a++)r[i+a]^=t.mul(e[i],n[a]);return r},e.mod=function(e,n){let r=new Uint8Array(e);for(;r.length-n.length>=0;){let e=r[0];for(let i=0;i<n.length;i++)r[i]^=t.mul(n[i],e);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let i=0;i<n;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}})),bE=t(((e,t)=>{var n=yE();function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw Error(`Encoder not initialized`);let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},t.exports=r})),xE=t((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),SE=t((e=>{var t=`[0-9]+`,n=`[A-Z $%*+\\-./:]+`,r=`(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+`;r=r.replace(/u/g,`\\u`);var i=`(?:(?![A-Z0-9 $%*+\\-./:]|`+r+`)(?:.|[\r
|
|
14
14
|
]))+`;e.KANJI=new RegExp(r,`g`),e.BYTE_KANJI=RegExp(`[^A-Z0-9 $%*+\\-./:]+`,`g`),e.BYTE=new RegExp(i,`g`),e.NUMERIC=new RegExp(t,`g`),e.ALPHANUMERIC=new RegExp(n,`g`);var a=RegExp(`^`+r+`$`),o=RegExp(`^[0-9]+$`),s=RegExp(`^[A-Z0-9 $%*+\\-./:]+$`);e.testKanji=function(e){return a.test(e)},e.testNumeric=function(e){return o.test(e)},e.testAlphanumeric=function(e){return s.test(e)}})),CE=t((e=>{var t=xE(),n=SE();e.NUMERIC={id:`Numeric`,bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:`Alphanumeric`,bit:2,ccBits:[9,11,13]},e.BYTE={id:`Byte`,bit:4,ccBits:[8,16,16]},e.KANJI={id:`Kanji`,bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,n){if(!e.ccBits)throw Error(`Invalid mode: `+e);if(!t.isValid(n))throw Error(`Invalid version: `+n);return n>=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return n.testNumeric(t)?e.NUMERIC:n.testAlphanumeric(t)?e.ALPHANUMERIC:n.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw Error(`Invalid mode`)},e.isValid=function(e){return e&&e.bit&&e.ccBits};function r(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`numeric`:return e.NUMERIC;case`alphanumeric`:return e.ALPHANUMERIC;case`kanji`:return e.KANJI;case`byte`:return e.BYTE;default:throw Error(`Unknown mode: `+t)}}e.from=function(t,n){if(e.isValid(t))return t;try{return r(t)}catch{return n}}})),wE=t((e=>{var t=uE(),n=_E(),r=dE(),i=CE(),a=xE(),o=7973,s=t.getBCHDigit(o);function c(t,n,r){for(let i=1;i<=40;i++)if(n<=e.getCapacity(i,r,t))return i}function l(e,t){return i.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach(function(e){let r=l(e.mode,t);n+=r+e.getBitsLength()}),n}function d(t,n){for(let r=1;r<=40;r++)if(u(t,r)<=e.getCapacity(r,n,i.MIXED))return r}e.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,r,o){if(!a.isValid(e))throw Error(`Invalid QR Code version`);o===void 0&&(o=i.BYTE);let s=(t.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,r))*8;if(o===i.MIXED)return s;let c=s-l(o,e);switch(o){case i.NUMERIC:return Math.floor(c/10*3);case i.ALPHANUMERIC:return Math.floor(c/11*2);case i.KANJI:return Math.floor(c/13);case i.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(e,t){let n,i=r.from(t,r.M);if(Array.isArray(e)){if(e.length>1)return d(e,i);if(e.length===0)return 1;n=e[0]}else n=e;return c(n.mode,n.getLength(),i)},e.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw Error(`Invalid QR Code version`);let n=e<<12;for(;t.getBCHDigit(n)-s>=0;)n^=o<<t.getBCHDigit(n)-s;return e<<12|n}})),TE=t((e=>{var t=uE(),n=1335,r=21522,i=t.getBCHDigit(n);e.getEncodedBits=function(e,a){let o=e.bit<<3|a,s=o<<10;for(;t.getBCHDigit(s)-i>=0;)s^=n<<t.getBCHDigit(s)-i;return(o<<10|s)^r}})),EE=t(((e,t)=>{var n=CE();function r(e){this.mode=n.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))},t.exports=r})),DE=t(((e,t)=>{var n=CE(),r=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`.split(``);function i(e){this.mode=n.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=r.indexOf(this.data[t])*45;n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},t.exports=i})),OE=t(((e,t)=>{var n=CE();function r(e){this.mode=n.BYTE,this.data=typeof e==`string`?new TextEncoder().encode(e):new Uint8Array(e)}r.getBitsLength=function(e){return e*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},t.exports=r})),kE=t(((e,t)=>{var n=CE(),r=uE();function i(e){this.mode=n.KANJI,this.data=e}i.getBitsLength=function(e){return e*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=r.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error(`Invalid SJIS character: `+this.data[t]+`
|
|
15
15
|
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},t.exports=i})),AE=t(((e,t)=>{var n={single_source_shortest_paths:function(e,t,r){var i={},a={};a[t]=0;var o=n.PriorityQueue.make();o.push(t,0);for(var s,c,l,u,d,f,p,m,h;!o.empty();)for(l in s=o.pop(),c=s.value,u=s.cost,d=e[c]||{},d)d.hasOwnProperty(l)&&(f=d[l],p=u+f,m=a[l],h=a[l]===void 0,(h||m>p)&&(a[l]=p,o.push(l,p),i[l]=c));if(r!==void 0&&a[r]===void 0){var g=[`Could not find a path from `,t,` to `,r,`.`].join(``);throw Error(g)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,r){var i=n.single_source_shortest_paths(e,t,r);return n.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var t=n.PriorityQueue,r={},i;for(i in e||={},t)t.hasOwnProperty(i)&&(r[i]=t[i]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t!==void 0&&(t.exports=n)})),jE=t((e=>{var t=CE(),n=EE(),r=DE(),i=OE(),a=kE(),o=SE(),s=uE(),c=AE();function l(e){return unescape(encodeURIComponent(e)).length}function u(e,t,n){let r=[],i;for(;(i=e.exec(n))!==null;)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function d(e){let n=u(o.NUMERIC,t.NUMERIC,e),r=u(o.ALPHANUMERIC,t.ALPHANUMERIC,e),i,a;return s.isKanjiModeEnabled()?(i=u(o.BYTE,t.BYTE,e),a=u(o.KANJI,t.KANJI,e)):(i=u(o.BYTE_KANJI,t.BYTE,e),a=[]),n.concat(r,i,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,o){switch(o){case t.NUMERIC:return n.getBitsLength(e);case t.ALPHANUMERIC:return r.getBitsLength(e);case t.KANJI:return a.getBitsLength(e);case t.BYTE:return i.getBitsLength(e)}}function p(e){return e.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function m(e){let n=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.mode){case t.NUMERIC:n.push([i,{data:i.data,mode:t.ALPHANUMERIC,length:i.length},{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.ALPHANUMERIC:n.push([i,{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.KANJI:n.push([i,{data:i.data,mode:t.BYTE,length:l(i.data)}]);break;case t.BYTE:n.push([{data:i.data,mode:t.BYTE,length:l(i.data)}])}}return n}function h(e,n){let r={},i={start:{}},a=[`start`];for(let o=0;o<e.length;o++){let s=e[o],c=[];for(let e=0;e<s.length;e++){let l=s[e],u=``+o+e;c.push(u),r[u]={node:l,lastCount:0},i[u]={};for(let e=0;e<a.length;e++){let o=a[e];r[o]&&r[o].node.mode===l.mode?(i[o][u]=f(r[o].lastCount+l.length,l.mode)-f(r[o].lastCount,l.mode),r[o].lastCount+=l.length):(r[o]&&(r[o].lastCount=l.length),i[o][u]=f(l.length,l.mode)+4+t.getCharCountIndicator(l.mode,n))}}a=c}for(let e=0;e<a.length;e++)i[a[e]].end=0;return{map:i,table:r}}function g(e,o){let c,l=t.getBestModeForData(e);if(c=t.from(o,l),c!==t.BYTE&&c.bit<l.bit)throw Error(`"`+e+`" cannot be encoded with mode `+t.toString(c)+`.
|
|
16
16
|
Suggested mode is: `+t.toString(l));switch(c===t.KANJI&&!s.isKanjiModeEnabled()&&(c=t.BYTE),c){case t.NUMERIC:return new n(e);case t.ALPHANUMERIC:return new r(e);case t.KANJI:return new a(e);case t.BYTE:return new i(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return typeof t==`string`?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},e.fromString=function(t,n){let r=h(m(d(t,s.isKanjiModeEnabled())),n),i=c.find_path(r.map,`start`,`end`),a=[];for(let e=1;e<i.length-1;e++)a.push(r.table[i[e]].node);return e.fromArray(p(a))},e.rawSplit=function(t){return e.fromArray(d(t,s.isKanjiModeEnabled()))}})),ME=t((e=>{var t=uE(),n=dE(),r=fE(),i=pE(),a=mE(),o=hE(),s=gE(),c=_E(),l=bE(),u=wE(),d=TE(),f=CE(),p=jE();function m(e,t){let n=e.size,r=o.getPositions(t);for(let t=0;t<r.length;t++){let i=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1||n<=i+t))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(t>=0&&t<=6&&(r===0||r===6)||r>=0&&r<=6&&(t===0||t===6)||t>=2&&t<=4&&r>=2&&r<=4?e.set(i+t,a+r,!0,!0):e.set(i+t,a+r,!1,!0))}}function h(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}function g(e,t){let n=a.getPositions(t);for(let t=0;t<n.length;t++){let r=n[t][0],i=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)t===-2||t===2||n===-2||n===2||t===0&&n===0?e.set(r+t,i+n,!0,!0):e.set(r+t,i+n,!1,!0)}}function v(e,t){let n=e.size,r=u.getEncodedBits(t),i,a,o;for(let t=0;t<18;t++)i=Math.floor(t/3),a=t%3+n-8-3,o=(r>>t&1)==1,e.set(i,a,o,!0),e.set(a,i,o,!0)}function y(e,t,n){let r=e.size,i=d.getEncodedBits(t,n),a,o;for(a=0;a<15;a++)o=(i>>a&1)==1,a<6?e.set(a,8,o,!0):a<8?e.set(a+1,8,o,!0):e.set(r-15+a,8,o,!0),a<8?e.set(8,r-a-1,o,!0):a<9?e.set(8,15-a-1+1,o,!0):e.set(8,15-a-1,o,!0);e.set(r-8,8,1,!0)}function b(e,t){let n=e.size,r=-1,i=n-1,a=7,o=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;o<t.length&&(r=(t[o]>>>a&1)==1),e.set(i,s-n,r),a--,a===-1&&(o++,a=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function x(e,n,i){let a=new r;i.forEach(function(t){a.put(t.mode.bit,4),a.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(a)});let o=(t.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,n))*8;for(a.getLengthInBits()+4<=o&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);let s=(o-a.getLengthInBits())/8;for(let e=0;e<s;e++)a.put(e%2?17:236,8);return S(a,e,n)}function S(e,n,r){let i=t.getSymbolTotalCodewords(n),a=i-c.getTotalCodewordsCount(n,r),o=c.getBlocksCount(n,r),s=o-i%o,u=Math.floor(i/o),d=Math.floor(a/o),f=d+1,p=u-d,m=new l(p),h=0,g=Array(o),v=Array(o),y=0,b=new Uint8Array(e.buffer);for(let e=0;e<o;e++){let t=e<s?d:f;g[e]=b.slice(h,h+t),v[e]=m.encode(g[e]),h+=t,y=Math.max(y,t)}let x=new Uint8Array(i),S=0,C,w;for(C=0;C<y;C++)for(w=0;w<o;w++)C<g[w].length&&(x[S++]=g[w][C]);for(C=0;C<p;C++)for(w=0;w<o;w++)x[S++]=v[w][C];return x}function C(e,n,r,a){let o;if(Array.isArray(e))o=p.fromArray(e);else if(typeof e==`string`){let t=n;if(!t){let n=p.rawSplit(e);t=u.getBestVersionForData(n,r)}o=p.fromString(e,t||40)}else throw Error(`Invalid data`);let c=u.getBestVersionForData(o,r);if(!c)throw Error(`The amount of data is too big to be stored in a QR Code`);if(!n)n=c;else if(n<c)throw Error(`
|