mixdashboards 1.0.32 → 1.0.39
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/CoordinateSystem-BMkAxlii.js +6 -0
- package/dist/CoordinateSystem-DWnjjFwb.cjs +1 -0
- package/dist/EChartComponentBase-BQOhWkz2.js +114 -0
- package/dist/EChartComponentBase-BaQpBzVC.cjs +1 -0
- package/dist/LegendVisualProvider-BDw4_0K3.cjs +1 -0
- package/dist/LegendVisualProvider-BP9kA8co.js +44 -0
- package/dist/MarkerView-BG_nYESR.cjs +1 -0
- package/dist/MarkerView-CtWJi5UZ.js +192 -0
- package/dist/RoamController--cgD3aNm.cjs +1 -0
- package/dist/RoamController-DmBIwcAZ.js +124 -0
- package/dist/UniverSheet-KlvmL1Yw.cjs +1 -0
- package/dist/UniverSheet-MSHzUXq0.js +180 -0
- package/dist/VisualMapping-D-MA7S0X.js +260 -0
- package/dist/VisualMapping-MilpZvD_.cjs +1 -0
- package/dist/accelerationChart-B1HPMmd2.js +577 -0
- package/dist/accelerationChart-DZj2V2vD.cjs +6 -0
- package/dist/actionItem-BYCPoQK7.cjs +1 -0
- package/dist/actionItem-Bb2xiYlY.js +686 -0
- package/dist/alarmLevelChart-Bb0mAbwQ.cjs +2 -0
- package/dist/alarmLevelChart-CCioESvL.js +182 -0
- package/dist/alertTable-CQwr8YYt.js +301 -0
- package/dist/alertTable-oaX5eJC0.cjs +1 -0
- package/dist/annualRainfallChart-C21jEMBe.js +185 -0
- package/dist/annualRainfallChart-pO8q6aUJ.cjs +1 -0
- package/dist/api-C0GhBpqd.js +125 -0
- package/dist/api-P_s372dW.cjs +1 -0
- package/dist/aqi-DlY2r7OA.cjs +3 -0
- package/dist/aqi-iLwQH4rc.js +145 -0
- package/dist/aqiIndass-BaIVBfdC.cjs +3 -0
- package/dist/aqiIndass-DBeVSBdy.js +301 -0
- package/dist/arrayCard-DNNUEPvW.js +93 -0
- package/dist/arrayCard-OlVAAsZq.cjs +1 -0
- package/dist/audio-CAP4D-J2.js +301 -0
- package/dist/audio-CThzVIDU.cjs +1 -0
- package/dist/axisAlignTicks-BqVUa467.js +481 -0
- package/dist/axisAlignTicks-CDNWKJRo.cjs +1 -0
- package/dist/bar-BjR566__.cjs +2 -0
- package/dist/bar-D8C06GO4.js +232 -0
- package/dist/bmp-Cjizh2x6.js +226 -0
- package/dist/bmp-DsmTzyce.cjs +1 -0
- package/dist/box-DqewT3MF.js +352 -0
- package/dist/box-qgu_67OD.cjs +1 -0
- package/dist/chartConfigPanel-BiQArCoQ.cjs +1 -0
- package/dist/chartConfigPanel-DwAUq3pf.js +408 -0
- package/dist/circleBar-CO89T7kj.cjs +4 -0
- package/dist/circleBar-DGHDWQih.js +196 -0
- package/dist/clock-32hGccm4.cjs +1 -0
- package/dist/clock-CT8YXEU3.js +274 -0
- package/dist/clt-5bP_g1O-.cjs +1 -0
- package/dist/clt-FfIEfGtn.js +293 -0
- package/dist/cmc-B2nQFZIS.js +269 -0
- package/dist/cmc-dbuLkE8o.cjs +1 -0
- package/dist/cmp-QQlYcnqo.js +378 -0
- package/dist/cmp-l3U9fIrz.cjs +6 -0
- package/dist/composite-CbsUYl-u.js +136 -0
- package/dist/composite-Cf24lSyN.cjs +1 -0
- package/dist/composite-DjhrBgG1.js +323 -0
- package/dist/composite-DlY2_x6P.cjs +3 -0
- package/dist/config-BLSroAzs.cjs +1 -0
- package/dist/config-Cc2W4vke.js +9 -0
- package/dist/controlList-BdF8xNAi.js +879 -0
- package/dist/controlList-De6PXdOc.cjs +1 -0
- package/dist/controlRecordList-CKpAr1ON.js +421 -0
- package/dist/controlRecordList-u5a7chIX.cjs +1 -0
- package/dist/crd-BVAf41oX.js +113 -0
- package/dist/crd-BoaXQhFQ.cjs +1 -0
- package/dist/createSeriesData-Cz83cqoZ.cjs +1 -0
- package/dist/createSeriesData-E53TTCAt.js +116 -0
- package/dist/createSeriesDataSimply-Bsly4zZA.js +14 -0
- package/dist/createSeriesDataSimply-CjfZL_jf.cjs +1 -0
- package/dist/ctrBtn-C9kQiqY1.cjs +1 -0
- package/dist/ctrBtn-ZPRYWE66.js +215 -0
- package/dist/ctrSet-C87dxLfQ.js +247 -0
- package/dist/ctrSet-CNCrnLSs.cjs +1 -0
- package/dist/ctrSwitch-CVEtbdfb.cjs +1 -0
- package/dist/ctrSwitch-CkC_Axtp.js +207 -0
- package/dist/cursorHelper-DE0KU4_J.js +29 -0
- package/dist/cursorHelper-DsTR8jVF.cjs +1 -0
- package/dist/customGraphicKeyframeAnimation-BJ_z0kB3.js +330 -0
- package/dist/customGraphicKeyframeAnimation-CEIvOjMs.cjs +1 -0
- package/dist/dataManagement-CjlNfeYq.js +672 -0
- package/dist/dataManagement-n711sd1g.cjs +1 -0
- package/dist/dataReport-BsVjW3p7.cjs +4 -0
- package/dist/dataReport-ByjswEqq.js +787 -0
- package/dist/dataSample-BXwc06Sb.js +114 -0
- package/dist/dataSample-D4ycwmll.cjs +1 -0
- package/dist/dataTable-DX500R1i.js +217 -0
- package/dist/dataTable-K7j4fhnq.cjs +1 -0
- package/dist/datetime-DVbJtALf.js +113 -0
- package/dist/datetime-DYXWKrXI.cjs +1 -0
- package/dist/deepClusterSlipSurface-B7nkEM9A.cjs +1 -0
- package/dist/deepClusterSlipSurface-CQUE05cK.js +372 -0
- package/dist/deepDataMatrix-DHZA0IAm.cjs +1 -0
- package/dist/deepDataMatrix-ai5rB6ET.js +238 -0
- package/dist/deepDisplacement3D-BFqKqSYg.cjs +4289 -0
- package/dist/deepDisplacement3D-BsUzvbQb.js +26052 -0
- package/dist/deepDisplacementChart-2JZNrhrw.cjs +5 -0
- package/dist/deepDisplacementChart-BCIuCMdK.js +585 -0
- package/dist/deepDisplacementChart-Ba67v6um.cjs +6 -0
- package/dist/deepDisplacementChart-igl4rW1K.js +340 -0
- package/dist/deepDisplacementView-BedWJsx7.js +231 -0
- package/dist/deepDisplacementView-wQxyKzB-.cjs +8 -0
- package/dist/deepNodeTemperatureChart-DLeb9jKp.js +347 -0
- package/dist/deepNodeTemperatureChart-albL8hKa.cjs +1 -0
- package/dist/deepTangentAngleChart-C6xOiITk.js +420 -0
- package/dist/deepTangentAngleChart-DukevXaM.cjs +1 -0
- package/dist/deepTemperatureField-B-y94GPV.js +398 -0
- package/dist/deepTemperatureField-De4xKoHw.cjs +1 -0
- package/dist/deepTrendChart-DCkV2HNv.js +345 -0
- package/dist/deepTrendChart-MmuYSXtu.cjs +1 -0
- package/dist/deviceOnlineStatus-B5cCjhNA.cjs +2 -0
- package/dist/deviceOnlineStatus-CFuCTx7_.js +178 -0
- package/dist/deviceStatus-B2ibBDSi.js +194 -0
- package/dist/deviceStatus-DsEtKiGo.cjs +1 -0
- package/dist/displacementDataTable-BDqG1IvI.js +256 -0
- package/dist/displacementDataTable-oLnUdafv.cjs +1 -0
- package/dist/displacementTrajectoryChart-CBhPwZhe.cjs +22 -0
- package/dist/displacementTrajectoryChart-Crf55oKi.js +597 -0
- package/dist/displacementTrendChart-10n_lC9j.js +364 -0
- package/dist/displacementTrendChart-CWihCuIJ.cjs +5 -0
- package/dist/dxf-D8zHpz5g.js +2768 -0
- package/dist/dxf-DDh_DcQy.cjs +1 -0
- package/dist/dzc-DLCdTCwW.js +144 -0
- package/dist/dzc-uNTDJqpi.cjs +2 -0
- package/dist/echarts-BB8O2KSA.cjs +21 -0
- package/dist/echarts-BVht3HHb.js +13787 -0
- package/dist/ele-aqi-icon-BMm9WgFH.cjs +1 -0
- package/dist/ele-aqi-icon-DsYfU5th.js +5 -0
- package/dist/ele-bar-icon-C-GiCs2a.js +5 -0
- package/dist/ele-bar-icon-V94clxg_.cjs +1 -0
- package/dist/ele-bmp-icon-BBI0-SX7.cjs +1 -0
- package/dist/ele-bmp-icon-Pdolk1J5.js +5 -0
- package/dist/ele-circleBar-icon-DNBUxt0A.js +5 -0
- package/dist/ele-circleBar-icon-Da0-L9sa.cjs +1 -0
- package/dist/ele-clt-icon-BEVOS7Tq.cjs +1 -0
- package/dist/ele-clt-icon-DuU4Q401.js +5 -0
- package/dist/ele-cmp-icon-CEP91RUe.js +5 -0
- package/dist/ele-cmp-icon-yUlU6c_Q.cjs +1 -0
- package/dist/ele-crd-icon-BXxB7P3T.js +5 -0
- package/dist/ele-crd-icon-BvNgAPKW.cjs +1 -0
- package/dist/ele-ctrSet-icon-BtKGrCid.js +5 -0
- package/dist/ele-ctrSet-icon-DCsPO0tL.cjs +1 -0
- package/dist/ele-dateTime-icon-BEGFlwID.js +5 -0
- package/dist/ele-dateTime-icon-BgZ2_KWW.cjs +1 -0
- package/dist/ele-dzc-icon-D6eVpaHp.js +5 -0
- package/dist/ele-dzc-icon-h5wOUHF0.cjs +1 -0
- package/dist/ele-evn-icon-DUQMS-9T.cjs +1 -0
- package/dist/ele-evn-icon-MWzAujnD.js +5 -0
- package/dist/ele-gag-icon-CB5dJeYF.js +5 -0
- package/dist/ele-gag-icon-Ce1hl9NI.cjs +1 -0
- package/dist/ele-glbModel-icon-ByACDCrv.cjs +1 -0
- package/dist/ele-glbModel-icon-l_SMi3ik.js +5 -0
- package/dist/ele-grd-icon-DR52zwGR.js +5 -0
- package/dist/ele-grd-icon-ZUb-megQ.cjs +1 -0
- package/dist/ele-gridview-icon-D3GcssP6.cjs +1 -0
- package/dist/ele-gridview-icon-cSd1oIDi.js +5 -0
- package/dist/ele-lin-icon-Dax-ZiWV.js +5 -0
- package/dist/ele-lin-icon-Dke_1AmT.cjs +1 -0
- package/dist/ele-lst-icon-CKpeRKmk.js +5 -0
- package/dist/ele-lst-icon-CrxnHZ-A.cjs +1 -0
- package/dist/ele-mxa-icon-CJWttkCK.js +5 -0
- package/dist/ele-mxa-icon-fgN0MLnh.cjs +1 -0
- package/dist/ele-rtn-icon-BrsJIU8J.cjs +1 -0
- package/dist/ele-rtn-icon-CqCKSHIw.js +5 -0
- package/dist/ele-textbox-icon-ClGaLi5p.js +5 -0
- package/dist/ele-textbox-icon-g_5kV8t6.cjs +1 -0
- package/dist/ele-vdo-icon-Bgp9gaT6.cjs +1 -0
- package/dist/ele-vdo-icon-DcWebTR5.js +5 -0
- package/dist/ele-vlu-icon-Bg6EHZdJ.js +5 -0
- package/dist/ele-vlu-icon-Dv-R7Xuc.cjs +1 -0
- package/dist/element-resize-detector-Bo5uDQAu.cjs +6 -0
- package/dist/element-resize-detector-DJcsrJ8s.js +1547 -0
- package/dist/evn-DuL5oVRl.cjs +1 -0
- package/dist/evn-YwCALVXj.js +116 -0
- package/dist/evolutionChart-4noZSdLX.js +406 -0
- package/dist/evolutionChart-AeL67MAt.cjs +1 -0
- package/dist/fileViewer-DiH3PM0r.js +415 -0
- package/dist/fileViewer-bsrjlJkC.cjs +1 -0
- package/dist/filterBar-CWEguwYc.js +394 -0
- package/dist/filterBar-Ct1BFhrS.cjs +1 -0
- package/dist/fireCombustionCurve-DYPC4zKJ.js +405 -0
- package/dist/fireCombustionCurve-DyiQn-WA.cjs +1 -0
- package/dist/fireFilterBar-Bdm2ljuO.cjs +1 -0
- package/dist/fireFilterBar-DGHPNTwF.js +221 -0
- package/dist/gag-HiNaL81R.cjs +1 -0
- package/dist/gag-kvkKzJuO.js +125 -0
- package/dist/glbModel-CUz6CyVF.js +2724 -0
- package/dist/glbModel-DtBI72ap.cjs +5 -0
- package/dist/gnssFilterBar-BQgY5x1W.cjs +1 -0
- package/dist/gnssFilterBar-TBtirXIB.js +310 -0
- package/dist/gnssHistoryTable-D1ZLJOgh.cjs +3 -0
- package/dist/gnssHistoryTable-U8O7nyO7.js +398 -0
- package/dist/gnssMapView-42zmAd9q.cjs +7 -0
- package/dist/gnssMapView-CaBfWeT1.js +699 -0
- package/dist/gnssTimeSeriesChart-BrXYvuh6.js +421 -0
- package/dist/gnssTimeSeriesChart-CV2w_Aik.cjs +1 -0
- package/dist/gnssXYTrajectory-BmzSYjQ_.cjs +5 -0
- package/dist/gnssXYTrajectory-D2DoYnze.js +304 -0
- package/dist/grd-B0GUjLm9.js +339 -0
- package/dist/grd-DW8cSFVR.cjs +1 -0
- package/dist/grdIndass-BeBXVsos.cjs +1 -0
- package/dist/grdIndass-DduUKZJm.js +216 -0
- package/dist/grg-CeX0pirQ.js +194 -0
- package/dist/grg-fnpcXtju.cjs +1 -0
- package/dist/gridview-BPwWXza9.js +183 -0
- package/dist/gridview-DpABhCIw.cjs +1 -0
- package/dist/groupCard-De1E15mW.js +132 -0
- package/dist/groupCard-WNE6gAAl.cjs +1 -0
- package/dist/headerBar-CZ3qcLHo.js +210 -0
- package/dist/headerBar-Qi1EXrr6.cjs +1 -0
- package/dist/{history-DigzRtjC.js → history-BkZhlpdY.js} +5 -3
- package/dist/history-DAmBl4_5.cjs +1 -0
- package/dist/index-ButoLLAe.js +8655 -0
- package/dist/index-Mh5Dw2sd.cjs +585 -0
- package/dist/index-kShjySl9.js +5313 -0
- package/dist/index-mAPVa0s4.cjs +11 -0
- package/dist/insarDeformChart-BGr2xe7w.cjs +1 -0
- package/dist/insarDeformChart-CnuSL1d9.js +216 -0
- package/dist/insarImageViewer-DRgGdQmN.cjs +1 -0
- package/dist/insarImageViewer-EmVThmVQ.js +268 -0
- package/dist/install-8XfFtnlL.js +853 -0
- package/dist/install-9_V0b6vf.js +497 -0
- package/dist/install-B0x4IqQr.js +1258 -0
- package/dist/install-B1IEhhn3.cjs +1 -0
- package/dist/install-B2TChEcT.js +895 -0
- package/dist/install-B65ZIqAx.cjs +1 -0
- package/dist/install-BBrAry2m.js +8 -0
- package/dist/install-BRjgycz_.cjs +1 -0
- package/dist/install-BUu5ESB7.js +447 -0
- package/dist/install-BamnGDPb.cjs +1 -0
- package/dist/install-BifpoHNI.js +1817 -0
- package/dist/install-BvOpNm0Y.cjs +1 -0
- package/dist/install-ByPD0oOh.cjs +1 -0
- package/dist/install-BzdOSCzO.js +785 -0
- package/dist/install-C8buXQPI.cjs +1 -0
- package/dist/install-C9Cdzkc6.js +265 -0
- package/dist/install-CBde4hAM.js +112 -0
- package/dist/install-CIT6k8Ga.cjs +1 -0
- package/dist/install-CYwVETsi.cjs +1 -0
- package/dist/install-C_3uGWLu.js +2328 -0
- package/dist/install-Ch5d8i37.cjs +1 -0
- package/dist/install-CltTFs4e.cjs +3 -0
- package/dist/install-Csxa7Kv7.cjs +18 -0
- package/dist/install-Cx1i_m0k.js +1168 -0
- package/dist/install-D1QM80AD.js +227 -0
- package/dist/install-D7znHb-b.js +604 -0
- package/dist/install-DHY9y86B.cjs +3 -0
- package/dist/install-DIlB2q7w.cjs +1 -0
- package/dist/install-DV5cEgNV.cjs +1 -0
- package/dist/install-DWm3j_D3.js +38 -0
- package/dist/install-FDYiy_gL.js +250 -0
- package/dist/install-LtoYukZU.cjs +1 -0
- package/dist/install-MS3ZY7fF.js +685 -0
- package/dist/install-hfre7yvV.js +727 -0
- package/dist/install-kGXY_57n.cjs +1 -0
- package/dist/install-nDY6w-GK.cjs +1 -0
- package/dist/install-oGjJ0_bF.js +588 -0
- package/dist/install-z6wShIZI.cjs +1 -0
- package/dist/installCanvasRenderer-CLT2hquJ.js +4260 -0
- package/dist/installCanvasRenderer-CyhM1Qpl.cjs +3 -0
- package/dist/installMarkArea-Cdg4iciO.js +206 -0
- package/dist/installMarkArea-CjyaJPLE.cjs +1 -0
- package/dist/installMarkLine-BgE0YACE.js +533 -0
- package/dist/installMarkLine-Bv53Iw9G.cjs +1 -0
- package/dist/installSimple-BWTCwMdY.js +586 -0
- package/dist/installSimple-c87Ufc4_.cjs +1 -0
- package/dist/kds-CpIQFgeY.js +1203 -0
- package/dist/kds-DTYWOq4K.cjs +3 -0
- package/dist/labelHelper-Cd8oB-sZ.js +26 -0
- package/dist/labelHelper-npJGYQ1j.cjs +1 -0
- package/dist/layerTabs-BATcBkTA.cjs +1 -0
- package/dist/layerTabs-uze6K91A.js +139 -0
- package/dist/lin-Ba6fHkYf.cjs +2 -0
- package/dist/lin-DU_EuPRg.js +239 -0
- package/dist/linIndass-XHKElG7L.js +273 -0
- package/dist/linIndass-urYe5inp.cjs +2 -0
- package/dist/lst-C7aee1cU.js +147 -0
- package/dist/lst-CpmoEQDY.cjs +1 -0
- package/dist/manualEntry-CJPiO5nh.cjs +1 -0
- package/dist/manualEntry-D9m_WPw3.js +662 -0
- package/dist/mapBackground-6g_71Fwa.js +6658 -0
- package/dist/mapBackground-CF_TqNBy.cjs +17 -0
- package/dist/mappingList-CR55Tq4t.cjs +1 -0
- package/dist/mappingList-luT5YE0d.js +917 -0
- package/dist/markdownViewer-CnguoUr8.js +261 -0
- package/dist/markdownViewer-D1hDk2Y7.cjs +3 -0
- package/dist/mix-control-modal-BDHAB4Tw.cjs +1 -0
- package/dist/mix-control-modal-CHiX3hQs.js +147 -0
- package/dist/mixDataPermission-BTA1jNd1.cjs +1 -0
- package/dist/mixDataPermission-BaqV0Z6N.js +760 -0
- package/dist/mixGrid-3BqQCvg8.cjs +1 -0
- package/dist/mixGrid-C0eEvwPy.js +180 -0
- package/dist/mixMap-7upgYwWk.js +258 -0
- package/dist/mixMap-Bw-We4Cm.cjs +1 -0
- package/dist/mixModel-BqE_Kd4c.js +245 -0
- package/dist/mixModel-CgV4XptM.cjs +3 -0
- package/dist/mixPie-9LfMCTQV.cjs +2 -0
- package/dist/mixPie-B-HeglUn.js +168 -0
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +7 -7
- package/dist/mjpegCamera-Cfw3rzT5.js +158 -0
- package/dist/mjpegCamera-nxKfhobY.cjs +1 -0
- package/dist/monitorAlert-Bg5vzzyG.js +225 -0
- package/dist/monitorAlert-Bt0baNh4.cjs +1 -0
- package/dist/monitorData-BvAMeOrp.js +319 -0
- package/dist/monitorData-CzPVIk_4.cjs +1 -0
- package/dist/monitorSpeedChart-0bDuU3Kj.js +603 -0
- package/dist/monitorSpeedChart-C52QjA5K.cjs +16 -0
- package/dist/mxa-BW80xKCc.js +143 -0
- package/dist/mxa-eLAgZPMC.cjs +2 -0
- package/dist/no-image-icon-CPA7RKkF.cjs +1 -0
- package/dist/no-image-icon-n2ZlEjxS.js +1864 -0
- package/dist/objectList-Cf9GMyXN.js +1809 -0
- package/dist/objectList-CpqQxG8L.cjs +1 -0
- package/dist/params-3W3p8QeC.cjs +1 -0
- package/dist/params-DfgBemk0.js +75 -0
- package/dist/photo-BODEtaYh.cjs +1 -0
- package/dist/photo-BfLkWAo8.js +256 -0
- package/dist/pie-BDLg-Rls.js +199 -0
- package/dist/pie-DxoBrm0D.cjs +2 -0
- package/dist/points-DcRmizmA.cjs +1 -0
- package/dist/points-DkG9FRF9.js +277 -0
- package/dist/pressBtn-CXG1eSWC.js +242 -0
- package/dist/pressBtn-t0g4vk7s.cjs +1 -0
- package/dist/progressBar-BXaFKSCq.js +130 -0
- package/dist/progressBar-CJEWkZ42.cjs +1 -0
- package/dist/progressCircle-DpOI5D5z.js +168 -0
- package/dist/progressCircle-uQ7vaMKM.cjs +1 -0
- package/dist/qrcode-CX8aymYZ.js +814 -0
- package/dist/qrcode-DHCRfp0M.cjs +1 -0
- package/dist/raceBar-Cv0-0ogd.cjs +4 -0
- package/dist/raceBar-DFaH342G.js +197 -0
- package/dist/rad-CFswUTwi.cjs +1 -0
- package/dist/rad-NS2G_nMg.js +143 -0
- package/dist/rainfallFilterBar-BI45QvJm.cjs +1 -0
- package/dist/rainfallFilterBar-D_Ye_NeB.js +221 -0
- package/dist/rainfallTimeCurve-BHWqX47Q.js +443 -0
- package/dist/rainfallTimeCurve-Ke1JvSWq.cjs +1 -0
- package/dist/rangeLin-D6VZ2U3C.cjs +3 -0
- package/dist/rangeLin-GMYEgLeP.js +278 -0
- package/dist/request-BD0x5Hkt.js +75 -0
- package/dist/request-Bn100qAJ.cjs +1 -0
- package/dist/retainer1-D2XmjXYH.cjs +1 -0
- package/dist/retainer1-h-Whr2c9.js +290 -0
- package/dist/retainer2-ByQdiRjq.js +504 -0
- package/dist/retainer2-cF-trL2g.cjs +1 -0
- package/dist/riskRegionTable-CQxAkG7k.js +170 -0
- package/dist/riskRegionTable-cKnxra4_.cjs +1 -0
- package/dist/sankey-Bk1IcVJQ.js +171 -0
- package/dist/sankey-MRirEgU0.cjs +1 -0
- package/dist/sausage-DRCw7Qmr.cjs +1 -0
- package/dist/sausage-xU3hOdxD.js +30 -0
- package/dist/scd-BDRpzmsa.js +2577 -0
- package/dist/scd-J-mN3eI5.cjs +1 -0
- package/dist/sectorHelper-BFEnYqut.cjs +1 -0
- package/dist/sectorHelper-DIlWFMnU.js +18 -0
- package/dist/sideMenu-BgTMtnMq.js +225 -0
- package/dist/sideMenu-l8X2E00H.cjs +1 -0
- package/dist/slopeStability-BPf7m0fJ.cjs +1 -0
- package/dist/slopeStability-C5RqZ1im.js +331 -0
- package/dist/speedCurve-C3pK-zZy.js +394 -0
- package/dist/speedCurve-CluwNAZl.cjs +1 -0
- package/dist/staticLine-C6tGGXcN.cjs +1 -0
- package/dist/staticLine-DXWOLj15.js +362 -0
- package/dist/store-BJW2NQkK.cjs +5 -0
- package/dist/store-DzDtVfSX.js +1673 -0
- package/dist/swiper-DGqDoUkX.cjs +1 -0
- package/dist/swiper-IMlGje3t.js +128 -0
- package/dist/terminalConfigList-D6xDHsnb.cjs +1 -0
- package/dist/terminalConfigList-SAyXi-BK.js +1017 -0
- package/dist/terminalList-CjSHshiR.js +1211 -0
- package/dist/terminalList-ml2C18MY.cjs +1 -0
- package/dist/textbox-AQtCe25j.cjs +1 -0
- package/dist/textbox-BLV-SY8e.js +172 -0
- package/dist/three.module-DNVo041Q.cjs +3824 -0
- package/dist/three.module-DcOQNgKS.js +16561 -0
- package/dist/timeQueryBar-BeMu_DYr.js +155 -0
- package/dist/timeQueryBar-BuKakMy8.cjs +1 -0
- package/dist/timeSeries-DP5iZKVM.js +587 -0
- package/dist/timeSeries-DfGgFWiF.cjs +4 -0
- package/dist/timeSeriesCurve-B0Mw6eNK.cjs +1 -0
- package/dist/timeSeriesCurve-BSgtPqYw.js +463 -0
- package/dist/titleStyle-BT5GlpAb.js +49 -0
- package/dist/titleStyle-NSnz6cUg.cjs +1 -0
- package/dist/toggleBtn-Dh64vVWo.cjs +1 -0
- package/dist/toggleBtn-O2Y75Uen.js +249 -0
- package/dist/trajectoryConfigPanel--C1h3tK6.js +635 -0
- package/dist/trajectoryConfigPanel-P_Qa4omj.cjs +1 -0
- package/dist/trajectoryScatter-BbpbgNb8.cjs +1 -0
- package/dist/trajectoryScatter-VLrmImlq.js +525 -0
- package/dist/universalConfigPanel-C0lDSzOB.cjs +1 -0
- package/dist/universalConfigPanel-DBg76b4F.js +477 -0
- package/dist/universalTable-Bzq9VqzA.cjs +2 -0
- package/dist/universalTable-DGK02ywi.js +410 -0
- package/dist/universalTransition-Bv7ibBUh.js +988 -0
- package/dist/universalTransition-CIN_u2Cu.cjs +1 -0
- package/dist/video-CyRoSQf1.cjs +1 -0
- package/dist/video-DCzzaEmV.js +310 -0
- package/dist/videoMonitor-BjD-ZFS0.cjs +1 -0
- package/dist/videoMonitor-ByaQeIWR.js +241 -0
- package/dist/vlu-CYZjYHaV.cjs +1 -0
- package/dist/vlu-h-9twmCr.js +100 -0
- package/dist/vue-i18n-5Nahpzrm.js +2732 -0
- package/dist/vue-i18n-BvHMBi_b.cjs +5 -0
- package/dist/weather-B7B5E1EJ.cjs +1 -0
- package/dist/weather-C_aC0XJ1.js +94 -0
- package/dist/windLin-B7V4NUV8.js +1226 -0
- package/dist/windLin-DPNzX7JN.cjs +1 -0
- package/package.json +17 -10
- package/dist/history-fvcbbxGa.cjs +0 -1
- package/dist/index-B-aA7889.js +0 -154003
- package/dist/index-CdJ-j9Gj.cjs +0 -8893
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var qr=Object.defineProperty,Xr=Object.defineProperties;var Yr=Object.getOwnPropertyDescriptors;var En=Object.getOwnPropertySymbols;var Wr=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable;var _n=(j,D,F)=>D in j?qr(j,D,{enumerable:!0,configurable:!0,writable:!0,value:F}):j[D]=F,Tn=(j,D)=>{for(var F in D||(D={}))Wr.call(D,F)&&_n(j,F,D[F]);if(En)for(var F of En(D))Ur.call(D,F)&&_n(j,F,D[F]);return j},kn=(j,D)=>Xr(j,Yr(D));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("vue"),Hr=require("./element-resize-detector-Bo5uDQAu.cjs"),Pn=require("./index-Mh5Dw2sd.cjs"),Gr=require("./titleStyle-NSnz6cUg.cjs");var Re={exports:{}},Zr=Re.exports,Ln;function Kr(){return Ln||(Ln=1,(function(j,D){(function(F,ie){j.exports=ie()})(Zr,(function(){function F(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),n.push.apply(n,r)}return n}function ie(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?F(Object(n),!0).forEach((function(r){Je(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function oe(t){return oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(t)}function V(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function G(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,de(r.key),r)}}function B(t,e,n){return e&&G(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Je(t,e,n){return(e=de(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Se(t,e)}function K(t){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},K(t)}function Se(t,e){return Se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Se(t,e)}function ye(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ae(t){var e=(function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}})();return function(){var n,r=K(t);if(e){var i=K(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(function(o,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ye(o)})(this,n)}}function be(){return be=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=(function(o,a){for(;!Object.prototype.hasOwnProperty.call(o,a)&&(o=K(o))!==null;);return o})(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},be.apply(this,arguments)}function de(t){var e=(function(n,r){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,r);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)})(t,"string");return typeof e=="symbol"?e:e+""}var T=function(t){return!(!t||!t.Window)&&t instanceof t.Window},k=void 0,P=void 0;function C(t){k=t;var e=t.document.createTextNode("");e.ownerDocument!==t.document&&typeof t.wrap=="function"&&t.wrap(e)===e&&(t=t.wrap(t)),P=t}function M(t){return T(t)?t:(t.ownerDocument||t).defaultView||P.window}typeof window!="undefined"&&window&&C(window);var z=function(t){return!!t&&oe(t)==="object"},N=function(t){return typeof t=="function"},d={window:function(t){return t===P||T(t)},docFrag:function(t){return z(t)&&t.nodeType===11},object:z,func:N,number:function(t){return typeof t=="number"},bool:function(t){return typeof t=="boolean"},string:function(t){return typeof t=="string"},element:function(t){if(!t||oe(t)!=="object")return!1;var e=M(t)||P;return/object|function/.test(typeof Element=="undefined"?"undefined":oe(Element))?t instanceof Element||t instanceof e.Element:t.nodeType===1&&typeof t.nodeName=="string"},plainObject:function(t){return z(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},array:function(t){return z(t)&&t.length!==void 0&&N(t.splice)}};function J(t){var e=t.interaction;if(e.prepared.name==="drag"){var n=e.prepared.axis;n==="x"?(e.coords.cur.page.y=e.coords.start.page.y,e.coords.cur.client.y=e.coords.start.client.y,e.coords.velocity.client.y=0,e.coords.velocity.page.y=0):n==="y"&&(e.coords.cur.page.x=e.coords.start.page.x,e.coords.cur.client.x=e.coords.start.client.x,e.coords.velocity.client.x=0,e.coords.velocity.page.x=0)}}function he(t){var e=t.iEvent,n=t.interaction;if(n.prepared.name==="drag"){var r=n.prepared.axis;if(r==="x"||r==="y"){var i=r==="x"?"y":"x";e.page[i]=n.coords.start.page[i],e.client[i]=n.coords.start.client[i],e.delta[i]=0}}}var Q={id:"actions/drag",install:function(t){var e=t.actions,n=t.Interactable,r=t.defaults;n.prototype.draggable=Q.draggable,e.map.drag=Q,e.methodDict.drag="draggable",r.actions.drag=Q.defaults},listeners:{"interactions:before-action-move":J,"interactions:action-resume":J,"interactions:action-move":he,"auto-start:check":function(t){var e=t.interaction,n=t.interactable,r=t.buttons,i=n.options.drag;if(i&&i.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||(r&n.options.drag.mouseButtons)!=0))return t.action={name:"drag",axis:i.lockAxis==="start"?i.startAxis:i.lockAxis},!1}},draggable:function(t){return d.object(t)?(this.options.drag.enabled=t.enabled!==!1,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):d.bool(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:J,move:he,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return t.search("drag")===0}},Ee=Q,q={init:function(t){var e=t;q.document=e.document,q.DocumentFragment=e.DocumentFragment||ee,q.SVGElement=e.SVGElement||ee,q.SVGSVGElement=e.SVGSVGElement||ee,q.SVGElementInstance=e.SVGElementInstance||ee,q.Element=e.Element||ee,q.HTMLElement=e.HTMLElement||q.Element,q.Event=e.Event,q.Touch=e.Touch||ee,q.PointerEvent=e.PointerEvent||e.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function ee(){}var $=q,y={init:function(t){var e=$.Element,n=t.navigator||{};y.supportsTouch="ontouchstart"in t||d.func(t.DocumentTouch)&&$.document instanceof t.DocumentTouch,y.supportsPointerEvent=n.pointerEnabled!==!1&&!!$.PointerEvent,y.isIOS=/iP(hone|od|ad)/.test(n.platform),y.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),y.isIe9=/MSIE 9/.test(n.userAgent),y.isOperaMobile=n.appName==="Opera"&&y.supportsTouch&&/Presto/.test(n.userAgent),y.prefixedMatchesSelector="matches"in e.prototype?"matches":"webkitMatchesSelector"in e.prototype?"webkitMatchesSelector":"mozMatchesSelector"in e.prototype?"mozMatchesSelector":"oMatchesSelector"in e.prototype?"oMatchesSelector":"msMatchesSelector",y.pEventTypes=y.supportsPointerEvent?$.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,y.wheelEvent=$.document&&"onmousewheel"in $.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},R=y;function Z(t,e){if(t.contains)return t.contains(e);for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function Qe(t,e){for(;d.element(t);){if(se(t,e))return t;t=U(t)}return null}function U(t){var e=t.parentNode;if(d.docFrag(e)){for(;(e=e.host)&&d.docFrag(e););return e}return e}function se(t,e){return P!==k&&(e=e.replace(/\/deep\//g," ")),t[R.prefixedMatchesSelector](e)}var et=function(t){return t.parentNode||t.host};function Lt(t,e){for(var n,r=[],i=t;(n=et(i))&&i!==e&&n!==i.ownerDocument;)r.unshift(i),i=n;return r}function tt(t,e,n){for(;d.element(t);){if(se(t,e))return!0;if((t=U(t))===n)return se(t,e)}return!1}function Ot(t){return t.correspondingUseElement||t}function nt(t){var e=t instanceof $.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return e&&{left:e.left,right:e.right,top:e.top,bottom:e.bottom,width:e.width||e.right-e.left,height:e.height||e.bottom-e.top}}function rt(t){var e,n=nt(t);if(!R.isIOS7&&n){var r={x:(e=(e=M(t))||P).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop};n.left+=r.x,n.right+=r.x,n.top+=r.y,n.bottom+=r.y}return n}function Pt(t){for(var e=[];t;)e.push(t),t=U(t);return e}function zt(t){return!!d.string(t)&&($.document.querySelector(t),!0)}function S(t,e){for(var n in e)t[n]=e[n];return t}function It(t,e,n){return t==="parent"?U(n):t==="self"?e.getRect(n):Qe(n,t)}function _e(t,e,n,r){var i=t;return d.string(i)?i=It(i,e,n):d.func(i)&&(i=i.apply(void 0,r)),d.element(i)&&(i=rt(i)),i}function je(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function it(t){return!t||"x"in t&&"y"in t||((t=S({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function Fe(t,e,n){t.left&&(e.left+=n.x),t.right&&(e.right+=n.x),t.top&&(e.top+=n.y),t.bottom&&(e.bottom+=n.y),e.width=e.right-e.left,e.height=e.bottom-e.top}function Te(t,e,n){var r=n&&t.options[n];return je(_e(r&&r.origin||t.options.origin,t,e,[t&&e]))||{x:0,y:0}}function ve(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(c){return!0},r=arguments.length>3?arguments[3]:void 0;if(r=r||{},d.string(t)&&t.search(" ")!==-1&&(t=Dt(t)),d.array(t))return t.forEach((function(c){return ve(c,e,n,r)})),r;if(d.object(t)&&(e=t,t=""),d.func(e)&&n(t))r[t]=r[t]||[],r[t].push(e);else if(d.array(e))for(var i=0,o=e;i<o.length;i++){var a=o[i];ve(t,a,n,r)}else if(d.object(e))for(var s in e)ve(Dt(s).map((function(c){return"".concat(t).concat(c)})),e[s],n,r);return r}function Dt(t){return t.trim().split(/ +/)}var ke=function(t,e){return Math.sqrt(t*t+e*e)},zn=["webkit","moz"];function Be(t,e){t.__set||(t.__set={});var n=function(i){if(zn.some((function(o){return i.indexOf(o)===0})))return 1;typeof t[i]!="function"&&i!=="__set"&&Object.defineProperty(t,i,{get:function(){return i in t.__set?t.__set[i]:t.__set[i]=e[i]},set:function(o){t.__set[i]=o},configurable:!0})};for(var r in e)n(r);return t}function $e(t,e){t.page=t.page||{},t.page.x=e.page.x,t.page.y=e.page.y,t.client=t.client||{},t.client.x=e.client.x,t.client.y=e.client.y,t.timeStamp=e.timeStamp}function Mt(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0}function Ct(t){return t instanceof $.Event||t instanceof $.Touch}function Ve(t,e,n){return t=t||"page",(n=n||{}).x=e[t+"X"],n.y=e[t+"Y"],n}function At(t,e){return e=e||{x:0,y:0},R.isOperaMobile&&Ct(t)?(Ve("screen",t,e),e.x+=window.scrollX,e.y+=window.scrollY):Ve("page",t,e),e}function Le(t){return d.number(t.pointerId)?t.pointerId:t.identifier}function In(t,e,n){var r=e.length>1?Rt(e):e[0];At(r,t.page),(function(i,o){o=o||{},R.isOperaMobile&&Ct(i)?Ve("screen",i,o):Ve("client",i,o)})(r,t.client),t.timeStamp=n}function ot(t){var e=[];return d.array(t)?(e[0]=t[0],e[1]=t[1]):t.type==="touchend"?t.touches.length===1?(e[0]=t.touches[0],e[1]=t.changedTouches[0]):t.touches.length===0&&(e[0]=t.changedTouches[0],e[1]=t.changedTouches[1]):(e[0]=t.touches[0],e[1]=t.touches[1]),e}function Rt(t){for(var e={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n<t.length;n++){var r=t[n];for(var i in e)e[i]+=r[i]}for(var o in e)e[o]/=t.length;return e}function at(t){if(!t.length)return null;var e=ot(t),n=Math.min(e[0].pageX,e[1].pageX),r=Math.min(e[0].pageY,e[1].pageY),i=Math.max(e[0].pageX,e[1].pageX),o=Math.max(e[0].pageY,e[1].pageY);return{x:n,y:r,left:n,top:r,right:i,bottom:o,width:i-n,height:o-r}}function st(t,e){var n=e+"X",r=e+"Y",i=ot(t),o=i[0][n]-i[1][n],a=i[0][r]-i[1][r];return ke(o,a)}function ct(t,e){var n=e+"X",r=e+"Y",i=ot(t),o=i[1][n]-i[0][n],a=i[1][r]-i[0][r];return 180*Math.atan2(a,o)/Math.PI}function jt(t){return d.string(t.pointerType)?t.pointerType:d.number(t.pointerType)?[void 0,void 0,"touch","pen","mouse"][t.pointerType]:/touch/.test(t.type||"")||t instanceof $.Touch?"touch":"mouse"}function Ft(t){var e=d.func(t.composedPath)?t.composedPath():t.path;return[Ot(e?e[0]:t.target),Ot(t.currentTarget)]}var Ne=(function(){function t(e){V(this,t),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=e}return B(t,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),t})();Object.defineProperty(Ne.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Bt=function(t,e){for(var n=0;n<e.length;n++){var r=e[n];t.push(r)}return t},$t=function(t){return Bt([],t)},Oe=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n,t))return n;return-1},Pe=function(t,e){return t[Oe(t,e)]},xe=(function(t){fe(n,t);var e=ae(n);function n(r,i,o){var a;V(this,n),(a=e.call(this,i._interaction)).dropzone=void 0,a.dragEvent=void 0,a.relatedTarget=void 0,a.draggable=void 0,a.propagationStopped=!1,a.immediatePropagationStopped=!1;var s=o==="dragleave"?r.prev:r.cur,c=s.element,u=s.dropzone;return a.type=o,a.target=c,a.currentTarget=c,a.dropzone=u,a.dragEvent=i,a.relatedTarget=i.target,a.draggable=i.interactable,a.timeStamp=i.timeStamp,a}return B(n,[{key:"reject",value:function(){var r=this,i=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&i.cur.dropzone===this.dropzone&&i.cur.element===this.target)if(i.prev.dropzone=this.dropzone,i.prev.element=this.target,i.rejected=!0,i.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var o=i.activeDrops,a=Oe(o,(function(c){var u=c.dropzone,l=c.element;return u===r.dropzone&&l===r.target}));i.activeDrops.splice(a,1);var s=new n(i,this.dragEvent,"dropdeactivate");s.dropzone=this.dropzone,s.target=this.target,this.dropzone.fire(s)}else this.dropzone.fire(new n(i,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),n})(Ne);function Vt(t,e){for(var n=0,r=t.slice();n<r.length;n++){var i=r[n],o=i.dropzone,a=i.element;e.dropzone=o,e.target=a,o.fire(e),e.propagationStopped=e.immediatePropagationStopped=!1}}function lt(t,e){for(var n=(function(o,a){for(var s=[],c=0,u=o.interactables.list;c<u.length;c++){var l=u[c];if(l.options.drop.enabled){var p=l.options.drop.accept;if(!(d.element(p)&&p!==a||d.string(p)&&!se(a,p)||d.func(p)&&!p({dropzone:l,draggableElement:a})))for(var f=0,v=l.getAllElements();f<v.length;f++){var h=v[f];h!==a&&s.push({dropzone:l,element:h,rect:l.getRect(h)})}}}return s})(t,e),r=0;r<n.length;r++){var i=n[r];i.rect=i.dropzone.getRect(i.element)}return n}function Nt(t,e,n){for(var r=t.dropState,i=t.interactable,o=t.element,a=[],s=0,c=r.activeDrops;s<c.length;s++){var u=c[s],l=u.dropzone,p=u.element,f=u.rect,v=l.dropCheck(e,n,i,o,p,f);a.push(v?p:null)}var h=(function(g){for(var x,b,w,L=[],I=0;I<g.length;I++){var E=g[I],O=g[x];if(E&&I!==x)if(O){var Y=et(E),A=et(O);if(Y!==E.ownerDocument)if(A!==E.ownerDocument)if(Y!==A){L=L.length?L:Lt(O);var W=void 0;if(O instanceof $.HTMLElement&&E instanceof $.SVGElement&&!(E instanceof $.SVGSVGElement)){if(E===A)continue;W=E.ownerSVGElement}else W=E;for(var H=Lt(W,O.ownerDocument),re=0;H[re]&&H[re]===L[re];)re++;var Ke=[H[re-1],H[re],L[re]];if(Ke[0])for(var Ae=Ke[0].lastChild;Ae;){if(Ae===Ke[1]){x=I,L=H;break}if(Ae===Ke[2])break;Ae=Ae.previousSibling}}else w=O,(parseInt(M(b=E).getComputedStyle(b).zIndex,10)||0)>=(parseInt(M(w).getComputedStyle(w).zIndex,10)||0)&&(x=I);else x=I}else x=I}return x})(a);return r.activeDrops[h]||null}function ut(t,e,n){var r=t.dropState,i={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return n.type==="dragstart"&&(i.activate=new xe(r,n,"dropactivate"),i.activate.target=null,i.activate.dropzone=null),n.type==="dragend"&&(i.deactivate=new xe(r,n,"dropdeactivate"),i.deactivate.target=null,i.deactivate.dropzone=null),r.rejected||(r.cur.element!==r.prev.element&&(r.prev.dropzone&&(i.leave=new xe(r,n,"dragleave"),n.dragLeave=i.leave.target=r.prev.element,n.prevDropzone=i.leave.dropzone=r.prev.dropzone),r.cur.dropzone&&(i.enter=new xe(r,n,"dragenter"),n.dragEnter=r.cur.element,n.dropzone=r.cur.dropzone)),n.type==="dragend"&&r.cur.dropzone&&(i.drop=new xe(r,n,"drop"),n.dropzone=r.cur.dropzone,n.relatedTarget=r.cur.element),n.type==="dragmove"&&r.cur.dropzone&&(i.move=new xe(r,n,"dropmove"),n.dropzone=r.cur.dropzone)),i}function pt(t,e){var n=t.dropState,r=n.activeDrops,i=n.cur,o=n.prev;e.leave&&o.dropzone.fire(e.leave),e.enter&&i.dropzone.fire(e.enter),e.move&&i.dropzone.fire(e.move),e.drop&&i.dropzone.fire(e.drop),e.deactivate&&Vt(r,e.deactivate),n.prev.dropzone=i.dropzone,n.prev.element=i.element}function qt(t,e){var n=t.interaction,r=t.iEvent,i=t.event;if(r.type==="dragmove"||r.type==="dragend"){var o=n.dropState;e.dynamicDrop&&(o.activeDrops=lt(e,n.element));var a=r,s=Nt(n,a,i);o.rejected=o.rejected&&!!s&&s.dropzone===o.cur.dropzone&&s.element===o.cur.element,o.cur.dropzone=s&&s.dropzone,o.cur.element=s&&s.element,o.events=ut(n,0,a)}}var Xt={id:"actions/drop",install:function(t){var e=t.actions,n=t.interactStatic,r=t.Interactable,i=t.defaults;t.usePlugin(Ee),r.prototype.dropzone=function(o){return(function(a,s){if(d.object(s)){if(a.options.drop.enabled=s.enabled!==!1,s.listeners){var c=ve(s.listeners),u=Object.keys(c).reduce((function(p,f){return p[/^(enter|leave)/.test(f)?"drag".concat(f):/^(activate|deactivate|move)/.test(f)?"drop".concat(f):f]=c[f],p}),{}),l=a.options.drop.listeners;l&&a.off(l),a.on(u),a.options.drop.listeners=u}return d.func(s.ondrop)&&a.on("drop",s.ondrop),d.func(s.ondropactivate)&&a.on("dropactivate",s.ondropactivate),d.func(s.ondropdeactivate)&&a.on("dropdeactivate",s.ondropdeactivate),d.func(s.ondragenter)&&a.on("dragenter",s.ondragenter),d.func(s.ondragleave)&&a.on("dragleave",s.ondragleave),d.func(s.ondropmove)&&a.on("dropmove",s.ondropmove),/^(pointer|center)$/.test(s.overlap)?a.options.drop.overlap=s.overlap:d.number(s.overlap)&&(a.options.drop.overlap=Math.max(Math.min(1,s.overlap),0)),"accept"in s&&(a.options.drop.accept=s.accept),"checker"in s&&(a.options.drop.checker=s.checker),a}return d.bool(s)?(a.options.drop.enabled=s,a):a.options.drop})(this,o)},r.prototype.dropCheck=function(o,a,s,c,u,l){return(function(p,f,v,h,g,x,b){var w=!1;if(!(b=b||p.getRect(x)))return!!p.options.drop.checker&&p.options.drop.checker(f,v,w,p,x,h,g);var L=p.options.drop.overlap;if(L==="pointer"){var I=Te(h,g,"drag"),E=At(f);E.x+=I.x,E.y+=I.y;var O=E.x>b.left&&E.x<b.right,Y=E.y>b.top&&E.y<b.bottom;w=O&&Y}var A=h.getRect(g);if(A&&L==="center"){var W=A.left+A.width/2,H=A.top+A.height/2;w=W>=b.left&&W<=b.right&&H>=b.top&&H<=b.bottom}return A&&d.number(L)&&(w=Math.max(0,Math.min(b.right,A.right)-Math.max(b.left,A.left))*Math.max(0,Math.min(b.bottom,A.bottom)-Math.max(b.top,A.top))/(A.width*A.height)>=L),p.options.drop.checker&&(w=p.options.drop.checker(f,v,w,p,x,h,g)),w})(this,o,a,s,c,u,l)},n.dynamicDrop=function(o){return d.bool(o)?(t.dynamicDrop=o,n):t.dynamicDrop},S(e.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),e.methodDict.drop="dropzone",t.dynamicDrop=!1,i.actions.drop=Xt.defaults},listeners:{"interactions:before-action-start":function(t){var e=t.interaction;e.prepared.name==="drag"&&(e.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(t,e){var n=t.interaction,r=(t.event,t.iEvent);if(n.prepared.name==="drag"){var i=n.dropState;i.activeDrops=[],i.events={},i.activeDrops=lt(e,n.element),i.events=ut(n,0,r),i.events.activate&&(Vt(i.activeDrops,i.events.activate),e.fire("actions/drop:start",{interaction:n,dragEvent:r}))}},"interactions:action-move":qt,"interactions:after-action-move":function(t,e){var n=t.interaction,r=t.iEvent;if(n.prepared.name==="drag"){var i=n.dropState;pt(n,i.events),e.fire("actions/drop:move",{interaction:n,dragEvent:r}),i.events={}}},"interactions:action-end":function(t,e){if(t.interaction.prepared.name==="drag"){var n=t.interaction,r=t.iEvent;qt(t,e),pt(n,n.dropState.events),e.fire("actions/drop:end",{interaction:n,dragEvent:r})}},"interactions:stop":function(t){var e=t.interaction;if(e.prepared.name==="drag"){var n=e.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:lt,getDrop:Nt,getDropEvents:ut,fireDropEvents:pt,filterEventType:function(t){return t.search("drag")===0||t.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Dn=Xt;function ft(t){var e=t.interaction,n=t.iEvent,r=t.phase;if(e.prepared.name==="gesture"){var i=e.pointers.map((function(u){return u.pointer})),o=r==="start",a=r==="end",s=e.interactable.options.deltaSource;if(n.touches=[i[0],i[1]],o)n.distance=st(i,s),n.box=at(i),n.scale=1,n.ds=0,n.angle=ct(i,s),n.da=0,e.gesture.startDistance=n.distance,e.gesture.startAngle=n.angle;else if(a||e.pointers.length<2){var c=e.prevEvent;n.distance=c.distance,n.box=c.box,n.scale=c.scale,n.ds=0,n.angle=c.angle,n.da=0}else n.distance=st(i,s),n.box=at(i),n.scale=n.distance/e.gesture.startDistance,n.angle=ct(i,s),n.ds=n.scale-e.gesture.scale,n.da=n.angle-e.gesture.angle;e.gesture.distance=n.distance,e.gesture.angle=n.angle,d.number(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(e.gesture.scale=n.scale)}}var dt={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var e=t.actions,n=t.Interactable,r=t.defaults;n.prototype.gesturable=function(i){return d.object(i)?(this.options.gesture.enabled=i.enabled!==!1,this.setPerAction("gesture",i),this.setOnEvents("gesture",i),this):d.bool(i)?(this.options.gesture.enabled=i,this):this.options.gesture},e.map.gesture=dt,e.methodDict.gesture="gesturable",r.actions.gesture=dt.defaults},listeners:{"interactions:action-start":ft,"interactions:action-move":ft,"interactions:action-end":ft,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var e=t.interactable.options.gesture;if(e&&e.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(t){return t.search("gesture")===0}},Mn=dt;function Cn(t,e,n,r,i,o,a){if(!e)return!1;if(e===!0){var s=d.number(o.width)?o.width:o.right-o.left,c=d.number(o.height)?o.height:o.bottom-o.top;if(a=Math.min(a,Math.abs((t==="left"||t==="right"?s:c)/2)),s<0&&(t==="left"?t="right":t==="right"&&(t="left")),c<0&&(t==="top"?t="bottom":t==="bottom"&&(t="top")),t==="left"){var u=s>=0?o.left:o.right;return n.x<u+a}if(t==="top"){var l=c>=0?o.top:o.bottom;return n.y<l+a}if(t==="right")return n.x>(s>=0?o.right:o.left)-a;if(t==="bottom")return n.y>(c>=0?o.bottom:o.top)-a}return!!d.element(r)&&(d.element(e)?e===r:tt(r,e,i))}function Yt(t){var e=t.iEvent,n=t.interaction;if(n.prepared.name==="resize"&&n.resizeAxes){var r=e;n.interactable.options.resize.square?(n.resizeAxes==="y"?r.delta.x=r.delta.y:r.delta.y=r.delta.x,r.axes="xy"):(r.axes=n.resizeAxes,n.resizeAxes==="x"?r.delta.y=0:n.resizeAxes==="y"&&(r.delta.x=0))}}var te,ge,ne={id:"actions/resize",before:["actions/drag"],install:function(t){var e=t.actions,n=t.browser,r=t.Interactable,i=t.defaults;ne.cursors=(function(o){return o.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}})(n),ne.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,r.prototype.resizable=function(o){return(function(a,s,c){return d.object(s)?(a.options.resize.enabled=s.enabled!==!1,a.setPerAction("resize",s),a.setOnEvents("resize",s),d.string(s.axis)&&/^x$|^y$|^xy$/.test(s.axis)?a.options.resize.axis=s.axis:s.axis===null&&(a.options.resize.axis=c.defaults.actions.resize.axis),d.bool(s.preserveAspectRatio)?a.options.resize.preserveAspectRatio=s.preserveAspectRatio:d.bool(s.square)&&(a.options.resize.square=s.square),a):d.bool(s)?(a.options.resize.enabled=s,a):a.options.resize})(this,o,t)},e.map.resize=ne,e.methodDict.resize="resizable",i.actions.resize=ne.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){(function(e){var n=e.iEvent,r=e.interaction;if(r.prepared.name==="resize"&&r.prepared.edges){var i=n,o=r.rect;r._rects={start:S({},o),corrected:S({},o),previous:S({},o),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},i.edges=r.prepared.edges,i.rect=r._rects.corrected,i.deltaRect=r._rects.delta}})(t),Yt(t)},"interactions:action-move":function(t){(function(e){var n=e.iEvent,r=e.interaction;if(r.prepared.name==="resize"&&r.prepared.edges){var i=n,o=r.interactable.options.resize.invert,a=o==="reposition"||o==="negate",s=r.rect,c=r._rects,u=c.start,l=c.corrected,p=c.delta,f=c.previous;if(S(f,l),a){if(S(l,s),o==="reposition"){if(l.top>l.bottom){var v=l.top;l.top=l.bottom,l.bottom=v}if(l.left>l.right){var h=l.left;l.left=l.right,l.right=h}}}else l.top=Math.min(s.top,u.bottom),l.bottom=Math.max(s.bottom,u.top),l.left=Math.min(s.left,u.right),l.right=Math.max(s.right,u.left);for(var g in l.width=l.right-l.left,l.height=l.bottom-l.top,l)p[g]=l[g]-f[g];i.edges=r.prepared.edges,i.rect=l,i.deltaRect=p}})(t),Yt(t)},"interactions:action-end":function(t){var e=t.iEvent,n=t.interaction;if(n.prepared.name==="resize"&&n.prepared.edges){var r=e;r.edges=n.prepared.edges,r.rect=n._rects.corrected,r.deltaRect=n._rects.delta}},"auto-start:check":function(t){var e=t.interaction,n=t.interactable,r=t.element,i=t.rect,o=t.buttons;if(i){var a=S({},e.coords.cur.page),s=n.options.resize;if(s&&s.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||(o&s.mouseButtons)!=0)){if(d.object(s.edges)){var c={left:!1,right:!1,top:!1,bottom:!1};for(var u in c)c[u]=Cn(u,s.edges[u],a,e._latestPointer.eventTarget,r,i,s.margin||ne.defaultMargin);c.left=c.left&&!c.right,c.top=c.top&&!c.bottom,(c.left||c.right||c.top||c.bottom)&&(t.action={name:"resize",edges:c})}else{var l=s.axis!=="y"&&a.x>i.right-ne.defaultMargin,p=s.axis!=="x"&&a.y>i.bottom-ne.defaultMargin;(l||p)&&(t.action={name:"resize",axes:(l?"x":"")+(p?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var e=t.edges,n=t.axis,r=t.name,i=ne.cursors,o=null;if(n)o=i[r+n];else if(e){for(var a="",s=0,c=["top","bottom","left","right"];s<c.length;s++){var u=c[s];e[u]&&(a+=u)}o=i[a]}return o},filterEventType:function(t){return t.search("resize")===0},defaultMargin:null},An=ne,Rn={id:"actions",install:function(t){t.usePlugin(Mn),t.usePlugin(An),t.usePlugin(Ee),t.usePlugin(Dn)}},Wt=0,ce={request:function(t){return te(t)},cancel:function(t){return ge(t)},init:function(t){if(te=t.requestAnimationFrame,ge=t.cancelAnimationFrame,!te)for(var e=["ms","moz","webkit","o"],n=0;n<e.length;n++){var r=e[n];te=t["".concat(r,"RequestAnimationFrame")],ge=t["".concat(r,"CancelAnimationFrame")]||t["".concat(r,"CancelRequestAnimationFrame")]}te=te&&te.bind(t),ge=ge&&ge.bind(t),te||(te=function(i){var o=Date.now(),a=Math.max(0,16-(o-Wt)),s=t.setTimeout((function(){i(o+a)}),a);return Wt=o+a,s},ge=function(i){return clearTimeout(i)})}},_={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(t){_.isScrolling=!0,ce.cancel(_.i),t.autoScroll=_,_.interaction=t,_.prevTime=_.now(),_.i=ce.request(_.scroll)},stop:function(){_.isScrolling=!1,_.interaction&&(_.interaction.autoScroll=null),ce.cancel(_.i)},scroll:function(){var t=_.interaction,e=t.interactable,n=t.element,r=t.prepared.name,i=e.options[r].autoScroll,o=Ut(i.container,e,n),a=_.now(),s=(a-_.prevTime)/1e3,c=i.speed*s;if(c>=1){var u={x:_.x*c,y:_.y*c};if(u.x||u.y){var l=Ht(o);d.window(o)?o.scrollBy(u.x,u.y):o&&(o.scrollLeft+=u.x,o.scrollTop+=u.y);var p=Ht(o),f={x:p.x-l.x,y:p.y-l.y};(f.x||f.y)&&e.fire({type:"autoscroll",target:n,interactable:e,delta:f,interaction:t,container:o})}_.prevTime=a}_.isScrolling&&(ce.cancel(_.i),_.i=ce.request(_.scroll))},check:function(t,e){var n;return(n=t.options[e].autoScroll)==null?void 0:n.enabled},onInteractionMove:function(t){var e=t.interaction,n=t.pointer;if(e.interacting()&&_.check(e.interactable,e.prepared.name))if(e.simulation)_.x=_.y=0;else{var r,i,o,a,s=e.interactable,c=e.element,u=e.prepared.name,l=s.options[u].autoScroll,p=Ut(l.container,s,c);if(d.window(p))a=n.clientX<_.margin,r=n.clientY<_.margin,i=n.clientX>p.innerWidth-_.margin,o=n.clientY>p.innerHeight-_.margin;else{var f=nt(p);a=n.clientX<f.left+_.margin,r=n.clientY<f.top+_.margin,i=n.clientX>f.right-_.margin,o=n.clientY>f.bottom-_.margin}_.x=i?1:a?-1:0,_.y=o?1:r?-1:0,_.isScrolling||(_.margin=l.margin,_.speed=l.speed,_.start(e))}}};function Ut(t,e,n){return(d.string(t)?It(t,e,n):t)||M(n)}function Ht(t){return d.window(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var jn={id:"auto-scroll",install:function(t){var e=t.defaults,n=t.actions;t.autoScroll=_,_.now=function(){return t.now()},n.phaselessTypes.autoscroll=!0,e.perAction.autoScroll=_.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,_.stop(),_.interaction&&(_.interaction=null)},"interactions:stop":_.stop,"interactions:action-move":function(t){return _.onInteractionMove(t)}}},Fn=jn;function ze(t,e){var n=!1;return function(){return n||(P.console.warn(e),n=!0),t.apply(this,arguments)}}function ht(t,e){return t.name=e.name,t.axis=e.axis,t.edges=e.edges,t}function Bn(t){return d.bool(t)?(this.options.styleCursor=t,this):t===null?(delete this.options.styleCursor,this):this.options.styleCursor}function $n(t){return d.func(t)?(this.options.actionChecker=t,this):t===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Vn={id:"auto-start/interactableMethods",install:function(t){var e=t.Interactable;e.prototype.getAction=function(n,r,i,o){var a=(function(s,c,u,l,p){var f=s.getRect(l),v=c.buttons||{0:1,1:4,3:8,4:16}[c.button],h={action:null,interactable:s,interaction:u,element:l,rect:f,buttons:v};return p.fire("auto-start:check",h),h.action})(this,r,i,o,t);return this.options.actionChecker?this.options.actionChecker(n,r,a,this,o,i):a},e.prototype.ignoreFrom=ze((function(n){return this._backCompatOption("ignoreFrom",n)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),e.prototype.allowFrom=ze((function(n){return this._backCompatOption("allowFrom",n)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),e.prototype.actionChecker=$n,e.prototype.styleCursor=Bn}};function Gt(t,e,n,r,i){return e.testIgnoreAllow(e.options[t.name],n,r)&&e.options[t.name].enabled&&qe(e,n,t,i)?t:null}function Nn(t,e,n,r,i,o,a){for(var s=0,c=r.length;s<c;s++){var u=r[s],l=i[s],p=u.getAction(e,n,t,l);if(p){var f=Gt(p,u,l,o,a);if(f)return{action:f,interactable:u,element:l}}}return{action:null,interactable:null,element:null}}function Zt(t,e,n,r,i){var o=[],a=[],s=r;function c(l){o.push(l),a.push(s)}for(;d.element(s);){o=[],a=[],i.interactables.forEachMatch(s,c);var u=Nn(t,e,n,o,a,r,i);if(u.action&&!u.interactable.options[u.action.name].manualStart)return u;s=U(s)}return{action:null,interactable:null,element:null}}function Kt(t,e,n){var r=e.action,i=e.interactable,o=e.element;r=r||{name:null},t.interactable=i,t.element=o,ht(t.prepared,r),t.rect=i&&r.name?i.getRect(o):null,Qt(t,n),n.fire("autoStart:prepared",{interaction:t})}function qe(t,e,n,r){var i=t.options,o=i[n.name].max,a=i[n.name].maxPerElement,s=r.autoStart.maxInteractions,c=0,u=0,l=0;if(!(o&&a&&s))return!1;for(var p=0,f=r.interactions.list;p<f.length;p++){var v=f[p],h=v.prepared.name;if(v.interacting()&&(++c>=s||v.interactable===t&&((u+=h===n.name?1:0)>=o||v.element===e&&(l++,h===n.name&&l>=a))))return!1}return s>0}function Jt(t,e){return d.number(t)?(e.autoStart.maxInteractions=t,this):e.autoStart.maxInteractions}function vt(t,e,n){var r=n.autoStart.cursorElement;r&&r!==t&&(r.style.cursor=""),t.ownerDocument.documentElement.style.cursor=e,t.style.cursor=e,n.autoStart.cursorElement=e?t:null}function Qt(t,e){var n=t.interactable,r=t.element,i=t.prepared;if(t.pointerType==="mouse"&&n&&n.options.styleCursor){var o="";if(i.name){var a=n.options[i.name].cursorChecker;o=d.func(a)?a(i,n,r,t._interacting):e.actions.map[i.name].getCursor(i)}vt(t.element,o||"",e)}else e.autoStart.cursorElement&&vt(e.autoStart.cursorElement,"",e)}var qn={id:"auto-start/base",before:["actions"],install:function(t){var e=t.interactStatic,n=t.defaults;t.usePlugin(Vn),n.base.actionChecker=null,n.base.styleCursor=!0,S(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),e.maxInteractions=function(r){return Jt(r,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:qe,cursorElement:null}},listeners:{"interactions:down":function(t,e){var n=t.interaction,r=t.pointer,i=t.event,o=t.eventTarget;n.interacting()||Kt(n,Zt(n,r,i,o,e),e)},"interactions:move":function(t,e){(function(n,r){var i=n.interaction,o=n.pointer,a=n.event,s=n.eventTarget;i.pointerType!=="mouse"||i.pointerIsDown||i.interacting()||Kt(i,Zt(i,o,a,s,r),r)})(t,e),(function(n,r){var i=n.interaction;if(i.pointerIsDown&&!i.interacting()&&i.pointerWasMoved&&i.prepared.name){r.fire("autoStart:before-start",n);var o=i.interactable,a=i.prepared.name;a&&o&&(o.options[a].manualStart||!qe(o,i.element,i.prepared,r)?i.stop():(i.start(i.prepared,o,i.element),Qt(i,r)))}})(t,e)},"interactions:stop":function(t,e){var n=t.interaction,r=n.interactable;r&&r.options.styleCursor&&vt(n.element,"",e)}},maxInteractions:Jt,withinInteractionLimit:qe,validateAction:Gt},gt=qn,Xn={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,e){var n=t.interaction,r=t.eventTarget,i=t.dx,o=t.dy;if(n.prepared.name==="drag"){var a=Math.abs(i),s=Math.abs(o),c=n.interactable.options.drag,u=c.startAxis,l=a>s?"x":a<s?"y":"xy";if(n.prepared.axis=c.lockAxis==="start"?l[0]:c.lockAxis,l!=="xy"&&u!=="xy"&&u!==l){n.prepared.name=null;for(var p=r,f=function(h){if(h!==n.interactable){var g=n.interactable.options.drag;if(!g.manualStart&&h.testIgnoreAllow(g,p,r)){var x=h.getAction(n.downPointer,n.downEvent,n,p);if(x&&x.name==="drag"&&(function(b,w){if(!w)return!1;var L=w.options.drag.startAxis;return b==="xy"||L==="xy"||L===b})(l,h)&>.validateAction(x,h,p,r,e))return h}}};d.element(p);){var v=e.interactables.forEachMatch(p,f);if(v){n.prepared.name="drag",n.interactable=v,n.element=p;break}p=U(p)}}}}}};function mt(t){var e=t.prepared&&t.prepared.name;if(!e)return null;var n=t.interactable.options;return n[e].hold||n[e].delay}var Yn={id:"auto-start/hold",install:function(t){var e=t.defaults;t.usePlugin(gt),e.perAction.hold=0,e.perAction.delay=0},listeners:{"interactions:new":function(t){t.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(t){var e=t.interaction,n=mt(e);n>0&&(e.autoStartHoldTimer=setTimeout((function(){e.start(e.prepared,e.interactable,e.element)}),n))},"interactions:move":function(t){var e=t.interaction,n=t.duplicate;e.autoStartHoldTimer&&e.pointerWasMoved&&!n&&(clearTimeout(e.autoStartHoldTimer),e.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var e=t.interaction;mt(e)>0&&(e.prepared.name=null)}},getHoldDuration:mt},Wn=Yn,Un={id:"auto-start",install:function(t){t.usePlugin(gt),t.usePlugin(Wn),t.usePlugin(Xn)}},Hn=function(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):d.bool(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault};function Gn(t){var e=t.interaction,n=t.event;e.interactable&&e.interactable.checkAndPreventDefault(n)}var en={id:"core/interactablePreventDefault",install:function(t){var e=t.Interactable;e.prototype.preventDefault=Hn,e.prototype.checkAndPreventDefault=function(n){return(function(r,i,o){var a=r.options.preventDefault;if(a!=="never")if(a!=="always"){if(i.events.supportsPassive&&/^touch(start|move)$/.test(o.type)){var s=M(o.target).document,c=i.getDocOptions(s);if(!c||!c.events||c.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(o.type)||d.element(o.target)&&se(o.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||o.preventDefault()}else o.preventDefault()})(this,t,n)},t.interactions.docEvents.push({type:"dragstart",listener:function(n){for(var r=0,i=t.interactions.list;r<i.length;r++){var o=i[r];if(o.element&&(o.element===n.target||Z(o.element,n.target)))return void o.interactable.checkAndPreventDefault(n)}}})},listeners:["down","move","up","cancel"].reduce((function(t,e){return t["interactions:".concat(e)]=Gn,t}),{})};function Xe(t,e){if(e.phaselessTypes[t])return!0;for(var n in e.map)if(t.indexOf(n)===0&&t.substr(n.length)in e.phases)return!0;return!1}function we(t){var e={};for(var n in t){var r=t[n];d.plainObject(r)?e[n]=we(r):d.array(r)?e[n]=$t(r):e[n]=r}return e}var yt=(function(){function t(e){V(this,t),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=e,this.result=Ye(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return B(t,[{key:"start",value:function(e,n){var r,i,o=e.phase,a=this.interaction,s=(function(u){var l=u.interactable.options[u.prepared.name],p=l.modifiers;return p&&p.length?p:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map((function(f){var v=l[f];return v&&v.enabled&&{options:v,methods:v._methods}})).filter((function(f){return!!f}))})(a);this.prepareStates(s),this.startEdges=S({},a.edges),this.edges=S({},this.startEdges),this.startOffset=(r=a.rect,i=n,r?{left:i.x-r.left,top:i.y-r.top,right:r.right-i.x,bottom:r.bottom-i.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var c=this.fillArg({phase:o,pageCoords:n,preEnd:!1});return this.result=Ye(),this.startAll(c),this.result=this.setAll(c)}},{key:"fillArg",value:function(e){var n=this.interaction;return e.interaction=n,e.interactable=n.interactable,e.element=n.element,e.rect||(e.rect=n.rect),e.edges||(e.edges=this.startEdges),e.startOffset=this.startOffset,e}},{key:"startAll",value:function(e){for(var n=0,r=this.states;n<r.length;n++){var i=r[n];i.methods.start&&(e.state=i,i.methods.start(e))}}},{key:"setAll",value:function(e){var n=e.phase,r=e.preEnd,i=e.skipModifiers,o=e.rect,a=e.edges;e.coords=S({},e.pageCoords),e.rect=S({},o),e.edges=S({},a);for(var s=i?this.states.slice(i):this.states,c=Ye(e.coords,e.rect),u=0;u<s.length;u++){var l,p=s[u],f=p.options,v=S({},e.coords),h=null;(l=p.methods)!=null&&l.set&&this.shouldDo(f,r,n)&&(e.state=p,h=p.methods.set(e),Fe(e.edges,e.rect,{x:e.coords.x-v.x,y:e.coords.y-v.y})),c.eventProps.push(h)}S(this.edges,e.edges),c.delta.x=e.coords.x-e.pageCoords.x,c.delta.y=e.coords.y-e.pageCoords.y,c.rectDelta.left=e.rect.left-o.left,c.rectDelta.right=e.rect.right-o.right,c.rectDelta.top=e.rect.top-o.top,c.rectDelta.bottom=e.rect.bottom-o.bottom;var g=this.result.coords,x=this.result.rect;if(g&&x){var b=c.rect.left!==x.left||c.rect.right!==x.right||c.rect.top!==x.top||c.rect.bottom!==x.bottom;c.changed=b||g.x!==c.coords.x||g.y!==c.coords.y}return c}},{key:"applyToInteraction",value:function(e){var n=this.interaction,r=e.phase,i=n.coords.cur,o=n.coords.start,a=this.result,s=this.startDelta,c=a.delta;r==="start"&&S(this.startDelta,a.delta);for(var u=0,l=[[o,s],[i,c]];u<l.length;u++){var p=l[u],f=p[0],v=p[1];f.page.x+=v.x,f.page.y+=v.y,f.client.x+=v.x,f.client.y+=v.y}var h=this.result.rectDelta,g=e.rect||n.rect;g.left+=h.left,g.right+=h.right,g.top+=h.top,g.bottom+=h.bottom,g.width=g.right-g.left,g.height=g.bottom-g.top}},{key:"setAndApply",value:function(e){var n=this.interaction,r=e.phase,i=e.preEnd,o=e.skipModifiers,a=this.setAll(this.fillArg({preEnd:i,phase:r,pageCoords:e.modifiedCoords||n.coords.cur.page}));if(this.result=a,!a.changed&&(!o||o<this.states.length)&&n.interacting())return!1;if(e.modifiedCoords){var s=n.coords.cur.page,c={x:e.modifiedCoords.x-s.x,y:e.modifiedCoords.y-s.y};a.coords.x+=c.x,a.coords.y+=c.y,a.delta.x+=c.x,a.delta.y+=c.y}this.applyToInteraction(e)}},{key:"beforeEnd",value:function(e){var n=e.interaction,r=e.event,i=this.states;if(i&&i.length){for(var o=!1,a=0;a<i.length;a++){var s=i[a];e.state=s;var c=s.options,u=s.methods,l=u.beforeEnd&&u.beforeEnd(e);if(l)return this.endResult=l,!1;o=o||!o&&this.shouldDo(c,!0,e.phase,!0)}o&&n.move({event:r,preEnd:!0})}}},{key:"stop",value:function(e){var n=e.interaction;if(this.states&&this.states.length){var r=S({states:this.states,interactable:n.interactable,element:n.element,rect:null},e);this.fillArg(r);for(var i=0,o=this.states;i<o.length;i++){var a=o[i];r.state=a,a.methods.stop&&a.methods.stop(r)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(e){this.states=[];for(var n=0;n<e.length;n++){var r=e[n],i=r.options,o=r.methods,a=r.name;this.states.push({options:i,methods:o,index:n,name:a})}return this.states}},{key:"restoreInteractionCoords",value:function(e){var n=e.interaction,r=n.coords,i=n.rect,o=n.modification;if(o.result){for(var a=o.startDelta,s=o.result,c=s.delta,u=s.rectDelta,l=0,p=[[r.start,a],[r.cur,c]];l<p.length;l++){var f=p[l],v=f[0],h=f[1];v.page.x-=h.x,v.page.y-=h.y,v.client.x-=h.x,v.client.y-=h.y}i.left-=u.left,i.right-=u.right,i.top-=u.top,i.bottom-=u.bottom}}},{key:"shouldDo",value:function(e,n,r,i){return!(!e||e.enabled===!1||i&&!e.endOnly||e.endOnly&&!n||r==="start"&&!e.setStart)}},{key:"copyFrom",value:function(e){this.startOffset=e.startOffset,this.startDelta=e.startDelta,this.startEdges=e.startEdges,this.edges=e.edges,this.states=e.states.map((function(n){return we(n)})),this.result=Ye(S({},e.result.coords),S({},e.result.rect))}},{key:"destroy",value:function(){for(var e in this)this[e]=null}}]),t})();function Ye(t,e){return{rect:e,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function le(t,e){var n=t.defaults,r={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},i=function(o){var a=o||{};for(var s in a.enabled=a.enabled!==!1,n)s in a||(a[s]=n[s]);var c={options:a,methods:r,name:e,enable:function(){return a.enabled=!0,c},disable:function(){return a.enabled=!1,c}};return c};return e&&typeof e=="string"&&(i._defaults=n,i._methods=r),i}function Ie(t){var e=t.iEvent,n=t.interaction.modification.result;n&&(e.modifiers=n.eventProps)}var Zn={id:"modifiers/base",before:["actions"],install:function(t){t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(t){var e=t.interaction;e.modification=new yt(e)},"interactions:before-action-start":function(t){var e=t.interaction,n=t.interaction.modification;n.start(t,e.coords.start.page),e.edges=n.edges,n.applyToInteraction(t)},"interactions:before-action-move":function(t){var e=t.interaction,n=e.modification,r=n.setAndApply(t);return e.edges=n.edges,r},"interactions:before-action-end":function(t){var e=t.interaction,n=e.modification,r=n.beforeEnd(t);return e.edges=n.startEdges,r},"interactions:action-start":Ie,"interactions:action-move":Ie,"interactions:action-end":Ie,"interactions:after-action-start":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-move":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:stop":function(t){return t.interaction.modification.stop(t)}}},tn=Zn,nn={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},bt=(function(t){fe(n,t);var e=ae(n);function n(r,i,o,a,s,c,u){var l;V(this,n),(l=e.call(this,r)).relatedTarget=null,l.screenX=void 0,l.screenY=void 0,l.button=void 0,l.buttons=void 0,l.ctrlKey=void 0,l.shiftKey=void 0,l.altKey=void 0,l.metaKey=void 0,l.page=void 0,l.client=void 0,l.delta=void 0,l.rect=void 0,l.x0=void 0,l.y0=void 0,l.t0=void 0,l.dt=void 0,l.duration=void 0,l.clientX0=void 0,l.clientY0=void 0,l.velocity=void 0,l.speed=void 0,l.swipe=void 0,l.axes=void 0,l.preEnd=void 0,s=s||r.element;var p=r.interactable,f=(p&&p.options||nn).deltaSource,v=Te(p,s,o),h=a==="start",g=a==="end",x=h?ye(l):r.prevEvent,b=h?r.coords.start:g?{page:x.page,client:x.client,timeStamp:r.coords.cur.timeStamp}:r.coords.cur;return l.page=S({},b.page),l.client=S({},b.client),l.rect=S({},r.rect),l.timeStamp=b.timeStamp,g||(l.page.x-=v.x,l.page.y-=v.y,l.client.x-=v.x,l.client.y-=v.y),l.ctrlKey=i.ctrlKey,l.altKey=i.altKey,l.shiftKey=i.shiftKey,l.metaKey=i.metaKey,l.button=i.button,l.buttons=i.buttons,l.target=s,l.currentTarget=s,l.preEnd=c,l.type=u||o+(a||""),l.interactable=p,l.t0=h?r.pointers[r.pointers.length-1].downTime:x.t0,l.x0=r.coords.start.page.x-v.x,l.y0=r.coords.start.page.y-v.y,l.clientX0=r.coords.start.client.x-v.x,l.clientY0=r.coords.start.client.y-v.y,l.delta=h||g?{x:0,y:0}:{x:l[f].x-x[f].x,y:l[f].y-x[f].y},l.dt=r.coords.delta.timeStamp,l.duration=l.timeStamp-l.t0,l.velocity=S({},r.coords.velocity[f]),l.speed=ke(l.velocity.x,l.velocity.y),l.swipe=g||a==="inertiastart"?l.getSwipe():null,l}return B(n,[{key:"getSwipe",value:function(){var r=this._interaction;if(r.prevEvent.speed<600||this.timeStamp-r.prevEvent.timeStamp>150)return null;var i=180*Math.atan2(r.prevEvent.velocityY,r.prevEvent.velocityX)/Math.PI;i<0&&(i+=360);var o=112.5<=i&&i<247.5,a=202.5<=i&&i<337.5;return{up:a,down:!a&&22.5<=i&&i<157.5,left:o,right:!o&&(292.5<=i||i<67.5),angle:i,speed:r.prevEvent.speed,velocity:{x:r.prevEvent.velocityX,y:r.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),n})(Ne);Object.defineProperties(bt.prototype,{pageX:{get:function(){return this.page.x},set:function(t){this.page.x=t}},pageY:{get:function(){return this.page.y},set:function(t){this.page.y=t}},clientX:{get:function(){return this.client.x},set:function(t){this.client.x=t}},clientY:{get:function(){return this.client.y},set:function(t){this.client.y=t}},dx:{get:function(){return this.delta.x},set:function(t){this.delta.x=t}},dy:{get:function(){return this.delta.y},set:function(t){this.delta.y=t}},velocityX:{get:function(){return this.velocity.x},set:function(t){this.velocity.x=t}},velocityY:{get:function(){return this.velocity.y},set:function(t){this.velocity.y=t}}});var Kn=B((function t(e,n,r,i,o){V(this,t),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=e,this.pointer=n,this.event=r,this.downTime=i,this.downTarget=o})),Jn=(function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t})({}),rn=(function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t})({}),Qn=0,er=(function(){function t(e){var n=this,r=e.pointerType,i=e.scopeFire;V(this,t),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=ze((function(l){this.move(l)}),"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Qn++,this._scopeFire=i,this.pointerType=r;var o=this;this._proxy={};var a=function(l){Object.defineProperty(n._proxy,l,{get:function(){return o[l]}})};for(var s in Jn)a(s);var c=function(l){Object.defineProperty(n._proxy,l,{value:function(){return o[l].apply(o,arguments)}})};for(var u in rn)c(u);this._scopeFire("interactions:new",{interaction:this})}return B(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(e,n,r){var i=this.updatePointer(e,n,r,!0),o=this.pointers[i];this._scopeFire("interactions:down",{pointer:e,event:n,eventTarget:r,pointerIndex:i,pointerInfo:o,type:"down",interaction:this})}},{key:"start",value:function(e,n,r){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(e.name==="gesture"?2:1)||!n.options[e.name].enabled)&&(ht(this.prepared,e),this.interactable=n,this.element=r,this.rect=n.getRect(r),this.edges=this.prepared.edges?S({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(e,n,r){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(e,n,r,!1);var i,o,a=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(i=this.coords.cur.client.x-this.coords.start.client.x,o=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=ke(i,o)>this.pointerMoveTolerance);var s,c,u,l=this.getPointerIndex(e),p={pointer:e,pointerIndex:l,pointerInfo:this.pointers[l],event:n,type:"move",eventTarget:r,dx:i,dy:o,duplicate:a,interaction:this};a||(s=this.coords.velocity,c=this.coords.delta,u=Math.max(c.timeStamp/1e3,.001),s.page.x=c.page.x/u,s.page.y=c.page.y/u,s.client.x=c.client.x/u,s.client.y=c.client.y/u,s.timeStamp=u),this._scopeFire("interactions:move",p),a||this.simulation||(this.interacting()&&(p.type=null,this.move(p)),this.pointerWasMoved&&$e(this.coords.prev,this.coords.cur))}},{key:"move",value:function(e){e&&e.event||Mt(this.coords.delta),(e=S({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},e||{})).phase="move",this._doPhase(e)}},{key:"pointerUp",value:function(e,n,r,i){var o=this.getPointerIndex(e);o===-1&&(o=this.updatePointer(e,n,r,!1));var a=/cancel$/i.test(n.type)?"cancel":"up";this._scopeFire("interactions:".concat(a),{pointer:e,pointerIndex:o,pointerInfo:this.pointers[o],event:n,eventTarget:r,type:a,curEventTarget:i,interaction:this}),this.simulation||this.end(n),this.removePointer(e,n)}},{key:"documentBlur",value:function(e){this.end(e),this._scopeFire("interactions:blur",{event:e,type:"blur",interaction:this})}},{key:"end",value:function(e){var n;this._ending=!0,e=e||this._latestPointer.event,this.interacting()&&(n=this._doPhase({event:e,interaction:this,phase:"end"})),this._ending=!1,n===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(e){var n=Le(e);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:Oe(this.pointers,(function(r){return r.id===n}))}},{key:"getPointerInfo",value:function(e){return this.pointers[this.getPointerIndex(e)]}},{key:"updatePointer",value:function(e,n,r,i){var o,a,s,c=Le(e),u=this.getPointerIndex(e),l=this.pointers[u];return i=i!==!1&&(i||/(down|start)$/i.test(n.type)),l?l.pointer=e:(l=new Kn(c,e,n,null,null),u=this.pointers.length,this.pointers.push(l)),In(this.coords.cur,this.pointers.map((function(p){return p.pointer})),this._now()),o=this.coords.delta,a=this.coords.prev,s=this.coords.cur,o.page.x=s.page.x-a.page.x,o.page.y=s.page.y-a.page.y,o.client.x=s.client.x-a.client.x,o.client.y=s.client.y-a.client.y,o.timeStamp=s.timeStamp-a.timeStamp,i&&(this.pointerIsDown=!0,l.downTime=this.coords.cur.timeStamp,l.downTarget=r,Be(this.downPointer,e),this.interacting()||($e(this.coords.start,this.coords.cur),$e(this.coords.prev,this.coords.cur),this.downEvent=n,this.pointerWasMoved=!1)),this._updateLatestPointer(e,n,r),this._scopeFire("interactions:update-pointer",{pointer:e,event:n,eventTarget:r,down:i,pointerInfo:l,pointerIndex:u,interaction:this}),u}},{key:"removePointer",value:function(e,n){var r=this.getPointerIndex(e);if(r!==-1){var i=this.pointers[r];this._scopeFire("interactions:remove-pointer",{pointer:e,event:n,eventTarget:null,pointerIndex:r,pointerInfo:i,interaction:this}),this.pointers.splice(r,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(e,n,r){this._latestPointer.pointer=e,this._latestPointer.event=n,this._latestPointer.eventTarget=r}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(e,n,r,i){return new bt(this,e,this.prepared.name,n,this.element,r,i)}},{key:"_fireEvent",value:function(e){var n;(n=this.interactable)==null||n.fire(e),(!this.prevEvent||e.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=e)}},{key:"_doPhase",value:function(e){var n=e.event,r=e.phase,i=e.preEnd,o=e.type,a=this.rect;if(a&&r==="move"&&(Fe(this.edges,a,this.coords.delta[this.interactable.options.deltaSource]),a.width=a.right-a.left,a.height=a.bottom-a.top),this._scopeFire("interactions:before-action-".concat(r),e)===!1)return!1;var s=e.iEvent=this._createPreparedEvent(n,r,i,o);return this._scopeFire("interactions:action-".concat(r),e),r==="start"&&(this.prevEvent=s),this._fireEvent(s),this._scopeFire("interactions:after-action-".concat(r),e),!0}},{key:"_now",value:function(){return Date.now()}}]),t})();function on(t){an(t.interaction)}function an(t){if(!(function(n){return!(!n.offset.pending.x&&!n.offset.pending.y)})(t))return!1;var e=t.offset.pending;return xt(t.coords.cur,e),xt(t.coords.delta,e),Fe(t.edges,t.rect,e),e.x=0,e.y=0,!0}function tr(t){var e=t.x,n=t.y;this.offset.pending.x+=e,this.offset.pending.y+=n,this.offset.total.x+=e,this.offset.total.y+=n}function xt(t,e){var n=t.page,r=t.client,i=e.x,o=e.y;n.x+=i,n.y+=o,r.x+=i,r.y+=o}rn.offsetBy="";var nr={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=tr},listeners:{"interactions:new":function(t){t.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(t){return(function(e){e.pointerIsDown&&(xt(e.coords.cur,e.offset.total),e.offset.pending.x=0,e.offset.pending.y=0)})(t.interaction)},"interactions:before-action-start":on,"interactions:before-action-move":on,"interactions:before-action-end":function(t){var e=t.interaction;if(an(e))return e.move({offset:!0}),e.end(),!1},"interactions:stop":function(t){var e=t.interaction;e.offset.total.x=0,e.offset.total.y=0,e.offset.pending.x=0,e.offset.pending.y=0}}},sn=nr,rr=(function(){function t(e){V(this,t),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=e}return B(t,[{key:"start",value:function(e){var n=this.interaction,r=We(n);if(!r||!r.enabled)return!1;var i=n.coords.velocity.client,o=ke(i.x,i.y),a=this.modification||(this.modification=new yt(n));if(a.copyFrom(n.modification),this.t0=n._now(),this.allowResume=r.allowResume,this.v0=o,this.currentOffset={x:0,y:0},this.startCoords=n.coords.cur.page,this.modifierArg=a.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-n.coords.cur.timeStamp<50&&o>r.minSpeed&&o>r.endSpeed)this.startInertia();else{if(a.result=a.setAll(this.modifierArg),!a.result.changed)return!1;this.startSmoothEnd()}return n.modification.result.rect=null,n.offsetBy(this.targetOffset),n._doPhase({interaction:n,event:e,phase:"inertiastart"}),n.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),n.modification.result.rect=null,this.active=!0,n.simulation=this,!0}},{key:"startInertia",value:function(){var e=this,n=this.interaction.coords.velocity.client,r=We(this.interaction),i=r.resistance,o=-Math.log(r.endSpeed/this.v0)/i;this.targetOffset={x:(n.x-o)/i,y:(n.y-o)/i},this.te=o,this.lambda_v0=i/this.v0,this.one_ve_v0=1-r.endSpeed/this.v0;var a=this.modification,s=this.modifierArg;s.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},a.result=a.setAll(s),a.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+a.result.delta.x,y:this.targetOffset.y+a.result.delta.y}),this.onNextFrame((function(){return e.inertiaTick()}))}},{key:"startSmoothEnd",value:function(){var e=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return e.smoothEndTick()}))}},{key:"onNextFrame",value:function(e){var n=this;this.timeout=ce.request((function(){n.active&&e()}))}},{key:"inertiaTick",value:function(){var e,n,r,i,o,a,s,c=this,u=this.interaction,l=We(u).resistance,p=(u._now()-this.t0)/1e3;if(p<this.te){var f,v=1-(Math.exp(-l*p)-this.lambda_v0)/this.one_ve_v0;this.isModified?(e=0,n=0,r=this.targetOffset.x,i=this.targetOffset.y,o=this.modifiedOffset.x,a=this.modifiedOffset.y,f={x:cn(s=v,e,r,o),y:cn(s,n,i,a)}):f={x:this.targetOffset.x*v,y:this.targetOffset.y*v};var h={x:f.x-this.currentOffset.x,y:f.y-this.currentOffset.y};this.currentOffset.x+=h.x,this.currentOffset.y+=h.y,u.offsetBy(h),u.move(),this.onNextFrame((function(){return c.inertiaTick()}))}else u.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var e=this,n=this.interaction,r=n._now()-this.t0,i=We(n).smoothEndDuration;if(r<i){var o={x:ln(r,0,this.targetOffset.x,i),y:ln(r,0,this.targetOffset.y,i)},a={x:o.x-this.currentOffset.x,y:o.y-this.currentOffset.y};this.currentOffset.x+=a.x,this.currentOffset.y+=a.y,n.offsetBy(a),n.move({skipModifiers:this.modifierCount}),this.onNextFrame((function(){return e.smoothEndTick()}))}else n.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(e){var n=e.pointer,r=e.event,i=e.eventTarget,o=this.interaction;o.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),o.updatePointer(n,r,i,!0),o._doPhase({interaction:o,event:r,phase:"resume"}),$e(o.coords.prev,o.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,ce.cancel(this.timeout)}}]),t})();function We(t){var e=t.interactable,n=t.prepared;return e&&e.options&&n.name&&e.options[n.name].inertia}var ir={id:"inertia",before:["modifiers","actions"],install:function(t){var e=t.defaults;t.usePlugin(sn),t.usePlugin(tn),t.actions.phases.inertiastart=!0,t.actions.phases.resume=!0,e.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(t){var e=t.interaction;e.inertia=new rr(e)},"interactions:before-action-end":function(t){var e=t.interaction,n=t.event;return(!e._interacting||e.simulation||!e.inertia.start(n))&&null},"interactions:down":function(t){var e=t.interaction,n=t.eventTarget,r=e.inertia;if(r.active)for(var i=n;d.element(i);){if(i===e.element){r.resume(t);break}i=U(i)}},"interactions:stop":function(t){var e=t.interaction.inertia;e.active&&e.stop()},"interactions:before-action-resume":function(t){var e=t.interaction.modification;e.stop(t),e.start(t,t.interaction.coords.cur.page),e.applyToInteraction(t)},"interactions:before-action-inertiastart":function(t){return t.interaction.modification.setAndApply(t)},"interactions:action-resume":Ie,"interactions:action-inertiastart":Ie,"interactions:after-action-inertiastart":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-resume":function(t){return t.interaction.modification.restoreInteractionCoords(t)}}};function cn(t,e,n,r){var i=1-t;return i*i*e+2*i*t*n+t*t*r}function ln(t,e,n,r){return-n*(t/=r)*(t-2)+e}var or=ir;function un(t,e){for(var n=0;n<e.length;n++){var r=e[n];if(t.immediatePropagationStopped)break;r(t)}}var pn=(function(){function t(e){V(this,t),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=S({},e||{})}return B(t,[{key:"fire",value:function(e){var n,r=this.global;(n=this.types[e.type])&&un(e,n),!e.propagationStopped&&r&&(n=r[e.type])&&un(e,n)}},{key:"on",value:function(e,n){var r=ve(e,n);for(e in r)this.types[e]=Bt(this.types[e]||[],r[e])}},{key:"off",value:function(e,n){var r=ve(e,n);for(e in r){var i=this.types[e];if(i&&i.length)for(var o=0,a=r[e];o<a.length;o++){var s=a[o],c=i.indexOf(s);c!==-1&&i.splice(c,1)}}}},{key:"getRect",value:function(e){return null}}]),t})(),ar=(function(){function t(e){V(this,t),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=e,Be(this,e)}return B(t,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),t})();function De(t){return d.object(t)?{capture:!!t.capture,passive:!!t.passive}:{capture:!!t,passive:!1}}function Ue(t,e){return t===e||(typeof t=="boolean"?!!e.capture===t&&!e.passive:!!t.capture==!!e.capture&&!!t.passive==!!e.passive)}var sr={id:"events",install:function(t){var e,n=[],r={},i=[],o={add:a,remove:s,addDelegate:function(l,p,f,v,h){var g=De(h);if(!r[f]){r[f]=[];for(var x=0;x<i.length;x++){var b=i[x];a(b,f,c),a(b,f,u,!0)}}var w=r[f],L=Pe(w,(function(I){return I.selector===l&&I.context===p}));L||(L={selector:l,context:p,listeners:[]},w.push(L)),L.listeners.push({func:v,options:g})},removeDelegate:function(l,p,f,v,h){var g,x=De(h),b=r[f],w=!1;if(b)for(g=b.length-1;g>=0;g--){var L=b[g];if(L.selector===l&&L.context===p){for(var I=L.listeners,E=I.length-1;E>=0;E--){var O=I[E];if(O.func===v&&Ue(O.options,x)){I.splice(E,1),I.length||(b.splice(g,1),s(p,f,c),s(p,f,u,!0)),w=!0;break}}if(w)break}}},delegateListener:c,delegateUseCapture:u,delegatedEvents:r,documents:i,targets:n,supportsOptions:!1,supportsPassive:!1};function a(l,p,f,v){if(l.addEventListener){var h=De(v),g=Pe(n,(function(x){return x.eventTarget===l}));g||(g={eventTarget:l,events:{}},n.push(g)),g.events[p]||(g.events[p]=[]),Pe(g.events[p],(function(x){return x.func===f&&Ue(x.options,h)}))||(l.addEventListener(p,f,o.supportsOptions?h:h.capture),g.events[p].push({func:f,options:h}))}}function s(l,p,f,v){if(l.addEventListener&&l.removeEventListener){var h=Oe(n,(function(Y){return Y.eventTarget===l})),g=n[h];if(g&&g.events)if(p!=="all"){var x=!1,b=g.events[p];if(b){if(f==="all"){for(var w=b.length-1;w>=0;w--){var L=b[w];s(l,p,L.func,L.options)}return}for(var I=De(v),E=0;E<b.length;E++){var O=b[E];if(O.func===f&&Ue(O.options,I)){l.removeEventListener(p,f,o.supportsOptions?I:I.capture),b.splice(E,1),b.length===0&&(delete g.events[p],x=!0);break}}}x&&!Object.keys(g.events).length&&n.splice(h,1)}else for(p in g.events)g.events.hasOwnProperty(p)&&s(l,p,"all")}}function c(l,p){for(var f=De(p),v=new ar(l),h=r[l.type],g=Ft(l)[0],x=g;d.element(x);){for(var b=0;b<h.length;b++){var w=h[b],L=w.selector,I=w.context;if(se(x,L)&&Z(I,g)&&Z(I,x)){var E=w.listeners;v.currentTarget=x;for(var O=0;O<E.length;O++){var Y=E[O];Ue(Y.options,f)&&Y.func(v)}}}x=U(x)}}function u(l){return c(l,!0)}return(e=t.document)==null||e.createElement("div").addEventListener("test",null,{get capture(){return o.supportsOptions=!0},get passive(){return o.supportsPassive=!0}}),t.events=o,o}},wt={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(t){for(var e=0,n=wt.methodOrder;e<n.length;e++){var r=n[e],i=wt[r](t);if(i)return i}return null},simulationResume:function(t){var e=t.pointerType,n=t.eventType,r=t.eventTarget,i=t.scope;if(!/down|start/i.test(n))return null;for(var o=0,a=i.interactions.list;o<a.length;o++){var s=a[o],c=r;if(s.simulation&&s.simulation.allowResume&&s.pointerType===e)for(;c;){if(c===s.element)return s;c=U(c)}}return null},mouseOrPen:function(t){var e,n=t.pointerId,r=t.pointerType,i=t.eventType,o=t.scope;if(r!=="mouse"&&r!=="pen")return null;for(var a=0,s=o.interactions.list;a<s.length;a++){var c=s[a];if(c.pointerType===r){if(c.simulation&&!fn(c,n))continue;if(c.interacting())return c;e||(e=c)}}if(e)return e;for(var u=0,l=o.interactions.list;u<l.length;u++){var p=l[u];if(!(p.pointerType!==r||/down/i.test(i)&&p.simulation))return p}return null},hasPointer:function(t){for(var e=t.pointerId,n=0,r=t.scope.interactions.list;n<r.length;n++){var i=r[n];if(fn(i,e))return i}return null},idle:function(t){for(var e=t.pointerType,n=0,r=t.scope.interactions.list;n<r.length;n++){var i=r[n];if(i.pointers.length===1){var o=i.interactable;if(o&&(!o.options.gesture||!o.options.gesture.enabled))continue}else if(i.pointers.length>=2)continue;if(!i.interacting()&&e===i.pointerType)return i}return null}};function fn(t,e){return t.pointers.some((function(n){return n.id===e}))}var cr=wt,St=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function dn(t,e){return function(n){var r=e.interactions.list,i=jt(n),o=Ft(n),a=o[0],s=o[1],c=[];if(/^touch/.test(n.type)){e.prevTouchTime=e.now();for(var u=0,l=n.changedTouches;u<l.length;u++){var p=l[u],f={pointer:p,pointerId:Le(p),pointerType:i,eventType:n.type,eventTarget:a,curEventTarget:s,scope:e},v=hn(f);c.push([f.pointer,f.eventTarget,f.curEventTarget,v])}}else{var h=!1;if(!R.supportsPointerEvent&&/mouse/.test(n.type)){for(var g=0;g<r.length&&!h;g++)h=r[g].pointerType!=="mouse"&&r[g].pointerIsDown;h=h||e.now()-e.prevTouchTime<500||n.timeStamp===0}if(!h){var x={pointer:n,pointerId:Le(n),pointerType:i,eventType:n.type,curEventTarget:s,eventTarget:a,scope:e},b=hn(x);c.push([x.pointer,x.eventTarget,x.curEventTarget,b])}}for(var w=0;w<c.length;w++){var L=c[w],I=L[0],E=L[1],O=L[2];L[3][t](I,n,E,O)}}}function hn(t){var e=t.pointerType,n=t.scope,r={interaction:cr.search(t),searchDetails:t};return n.fire("interactions:find",r),r.interaction||n.interactions.new({pointerType:e})}function Et(t,e){var n=t.doc,r=t.scope,i=t.options,o=r.interactions.docEvents,a=r.events,s=a[e];for(var c in r.browser.isIOS&&!i.events&&(i.events={passive:!1}),a.delegatedEvents)s(n,c,a.delegateListener),s(n,c,a.delegateUseCapture,!0);for(var u=i&&i.events,l=0;l<o.length;l++){var p=o[l];s(n,p.type,p.listener,u)}}var lr={id:"core/interactions",install:function(t){for(var e={},n=0;n<St.length;n++){var r=St[n];e[r]=dn(r,t)}var i,o=R.pEventTypes;function a(){for(var s=0,c=t.interactions.list;s<c.length;s++){var u=c[s];if(u.pointerIsDown&&u.pointerType==="touch"&&!u._interacting)for(var l=function(){var v=f[p];t.documents.some((function(h){return Z(h.doc,v.downTarget)}))||u.removePointer(v.pointer,v.event)},p=0,f=u.pointers;p<f.length;p++)l()}}(i=$.PointerEvent?[{type:o.down,listener:a},{type:o.down,listener:e.pointerDown},{type:o.move,listener:e.pointerMove},{type:o.up,listener:e.pointerUp},{type:o.cancel,listener:e.pointerUp}]:[{type:"mousedown",listener:e.pointerDown},{type:"mousemove",listener:e.pointerMove},{type:"mouseup",listener:e.pointerUp},{type:"touchstart",listener:a},{type:"touchstart",listener:e.pointerDown},{type:"touchmove",listener:e.pointerMove},{type:"touchend",listener:e.pointerUp},{type:"touchcancel",listener:e.pointerUp}]).push({type:"blur",listener:function(s){for(var c=0,u=t.interactions.list;c<u.length;c++)u[c].documentBlur(s)}}),t.prevTouchTime=0,t.Interaction=(function(s){fe(u,s);var c=ae(u);function u(){return V(this,u),c.apply(this,arguments)}return B(u,[{key:"pointerMoveTolerance",get:function(){return t.interactions.pointerMoveTolerance},set:function(l){t.interactions.pointerMoveTolerance=l}},{key:"_now",value:function(){return t.now()}}]),u})(er),t.interactions={list:[],new:function(s){s.scopeFire=function(u,l){return t.fire(u,l)};var c=new t.Interaction(s);return t.interactions.list.push(c),c},listeners:e,docEvents:i,pointerMoveTolerance:1},t.usePlugin(en)},listeners:{"scope:add-document":function(t){return Et(t,"add")},"scope:remove-document":function(t){return Et(t,"remove")},"interactable:unset":function(t,e){for(var n=t.interactable,r=e.interactions.list.length-1;r>=0;r--){var i=e.interactions.list[r];i.interactable===n&&(i.stop(),e.fire("interactions:destroy",{interaction:i}),i.destroy(),e.interactions.list.length>2&&e.interactions.list.splice(r,1))}}},onDocSignal:Et,doOnInteractions:dn,methodNames:St},ur=lr,ue=(function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t})(ue||{}),pr=(function(){function t(e,n,r,i){V(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new pn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=n.actions,this.target=e,this._context=n.context||r,this._win=M(zt(e)?this._context:e),this._doc=this._win.document,this._scopeEvents=i,this.set(n)}return B(t,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(e,n){return d.func(n.onstart)&&this.on("".concat(e,"start"),n.onstart),d.func(n.onmove)&&this.on("".concat(e,"move"),n.onmove),d.func(n.onend)&&this.on("".concat(e,"end"),n.onend),d.func(n.oninertiastart)&&this.on("".concat(e,"inertiastart"),n.oninertiastart),this}},{key:"updatePerActionListeners",value:function(e,n,r){var i,o=this,a=(i=this._actions.map[e])==null?void 0:i.filterEventType,s=function(c){return(a==null||a(c))&&Xe(c,o._actions)};(d.array(n)||d.object(n))&&this._onOff(ue.Off,e,n,void 0,s),(d.array(r)||d.object(r))&&this._onOff(ue.On,e,r,void 0,s)}},{key:"setPerAction",value:function(e,n){var r=this._defaults;for(var i in n){var o=i,a=this.options[e],s=n[o];o==="listeners"&&this.updatePerActionListeners(e,a.listeners,s),d.array(s)?a[o]=$t(s):d.plainObject(s)?(a[o]=S(a[o]||{},we(s)),d.object(r.perAction[o])&&"enabled"in r.perAction[o]&&(a[o].enabled=s.enabled!==!1)):d.bool(s)&&d.object(r.perAction[o])?a[o].enabled=s:a[o]=s}}},{key:"getRect",value:function(e){return e=e||(d.element(this.target)?this.target:null),d.string(this.target)&&(e=e||this._context.querySelector(this.target)),rt(e)}},{key:"rectChecker",value:function(e){var n=this;return d.func(e)?(this.getRect=function(r){var i=S({},e.apply(n,r));return"width"in i||(i.width=i.right-i.left,i.height=i.bottom-i.top),i},this):e===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(e,n){if(zt(n)||d.object(n)){for(var r in this.options[e]=n,this._actions.map)this.options[r][e]=n;return this}return this.options[e]}},{key:"origin",value:function(e){return this._backCompatOption("origin",e)}},{key:"deltaSource",value:function(e){return e==="page"||e==="client"?(this.options.deltaSource=e,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var e=this.target;return d.string(e)?Array.from(this._context.querySelectorAll(e)):d.func(e)&&e.getAllElements?e.getAllElements():d.element(e)?[e]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(e){return this._context===e.ownerDocument||Z(this._context,e)}},{key:"testIgnoreAllow",value:function(e,n,r){return!this.testIgnore(e.ignoreFrom,n,r)&&this.testAllow(e.allowFrom,n,r)}},{key:"testAllow",value:function(e,n,r){return!e||!!d.element(r)&&(d.string(e)?tt(r,e,n):!!d.element(e)&&Z(e,r))}},{key:"testIgnore",value:function(e,n,r){return!(!e||!d.element(r))&&(d.string(e)?tt(r,e,n):!!d.element(e)&&Z(e,r))}},{key:"fire",value:function(e){return this.events.fire(e),this}},{key:"_onOff",value:function(e,n,r,i,o){d.object(n)&&!d.array(n)&&(i=r,r=null);var a=ve(n,r,o);for(var s in a){s==="wheel"&&(s=R.wheelEvent);for(var c=0,u=a[s];c<u.length;c++){var l=u[c];Xe(s,this._actions)?this.events[e===ue.On?"on":"off"](s,l):d.string(this.target)?this._scopeEvents[e===ue.On?"addDelegate":"removeDelegate"](this.target,this._context,s,l,i):this._scopeEvents[e===ue.On?"add":"remove"](this.target,s,l,i)}}return this}},{key:"on",value:function(e,n,r){return this._onOff(ue.On,e,n,r)}},{key:"off",value:function(e,n,r){return this._onOff(ue.Off,e,n,r)}},{key:"set",value:function(e){var n=this._defaults;for(var r in d.object(e)||(e={}),this.options=we(n.base),this._actions.methodDict){var i=r,o=this._actions.methodDict[i];this.options[i]={},this.setPerAction(i,S(S({},n.perAction),n.actions[i])),this[o](e[i])}for(var a in e)a!=="getRect"?d.func(this[a])&&this[a](e[a]):this.rectChecker(e.getRect);return this}},{key:"unset",value:function(){if(d.string(this.target))for(var e in this._scopeEvents.delegatedEvents)for(var n=this._scopeEvents.delegatedEvents[e],r=n.length-1;r>=0;r--){var i=n[r],o=i.selector,a=i.context,s=i.listeners;o===this.target&&a===this._context&&n.splice(r,1);for(var c=s.length-1;c>=0;c--)this._scopeEvents.removeDelegate(this.target,this._context,e,s[c][0],s[c][1])}else this._scopeEvents.remove(this.target,"all")}}]),t})(),fr=(function(){function t(e){var n=this;V(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=e,e.addListeners({"interactable:unset":function(r){var i=r.interactable,o=i.target,a=d.string(o)?n.selectorMap[o]:o[n.scope.id],s=Oe(a,(function(c){return c===i}));a.splice(s,1)}})}return B(t,[{key:"new",value:function(e,n){n=S(n||{},{actions:this.scope.actions});var r=new this.scope.Interactable(e,n,this.scope.document,this.scope.events);return this.scope.addDocument(r._doc),this.list.push(r),d.string(e)?(this.selectorMap[e]||(this.selectorMap[e]=[]),this.selectorMap[e].push(r)):(r.target[this.scope.id]||Object.defineProperty(e,this.scope.id,{value:[],configurable:!0}),e[this.scope.id].push(r)),this.scope.fire("interactable:new",{target:e,options:n,interactable:r,win:this.scope._win}),r}},{key:"getExisting",value:function(e,n){var r=n&&n.context||this.scope.document,i=d.string(e),o=i?this.selectorMap[e]:e[this.scope.id];if(o)return Pe(o,(function(a){return a._context===r&&(i||a.inContext(e))}))}},{key:"forEachMatch",value:function(e,n){for(var r=0,i=this.list;r<i.length;r++){var o=i[r],a=void 0;if((d.string(o.target)?d.element(e)&&se(e,o.target):e===o.target)&&o.inContext(e)&&(a=n(o)),a!==void 0)return a}}}]),t})(),dr=(function(){function t(){var e=this;V(this,t),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=R,this.defaults=we(nn),this.Eventable=pn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=(function(r){var i=function o(a,s){var c=r.interactables.getExisting(a,s);return c||((c=r.interactables.new(a,s)).events.global=o.globalEvents),c};return i.getPointerAverage=Rt,i.getTouchBBox=at,i.getTouchDistance=st,i.getTouchAngle=ct,i.getElementRect=rt,i.getElementClientRect=nt,i.matchesSelector=se,i.closest=Qe,i.globalEvents={},i.version="1.10.27",i.scope=r,i.use=function(o,a){return this.scope.usePlugin(o,a),this},i.isSet=function(o,a){return!!this.scope.interactables.get(o,a&&a.context)},i.on=ze((function(o,a,s){if(d.string(o)&&o.search(" ")!==-1&&(o=o.trim().split(/ +/)),d.array(o)){for(var c=0,u=o;c<u.length;c++){var l=u[c];this.on(l,a,s)}return this}if(d.object(o)){for(var p in o)this.on(p,o[p],a);return this}return Xe(o,this.scope.actions)?this.globalEvents[o]?this.globalEvents[o].push(a):this.globalEvents[o]=[a]:this.scope.events.add(this.scope.document,o,a,{options:s}),this}),"The interact.on() method is being deprecated"),i.off=ze((function(o,a,s){if(d.string(o)&&o.search(" ")!==-1&&(o=o.trim().split(/ +/)),d.array(o)){for(var c=0,u=o;c<u.length;c++){var l=u[c];this.off(l,a,s)}return this}if(d.object(o)){for(var p in o)this.off(p,o[p],a);return this}var f;return Xe(o,this.scope.actions)?o in this.globalEvents&&(f=this.globalEvents[o].indexOf(a))!==-1&&this.globalEvents[o].splice(f,1):this.scope.events.remove(this.scope.document,o,a,s),this}),"The interact.off() method is being deprecated"),i.debug=function(){return this.scope},i.supportsTouch=function(){return R.supportsTouch},i.supportsPointerEvent=function(){return R.supportsPointerEvent},i.stop=function(){for(var o=0,a=this.scope.interactions.list;o<a.length;o++)a[o].stop();return this},i.pointerMoveTolerance=function(o){return d.number(o)?(this.scope.interactions.pointerMoveTolerance=o,this):this.scope.interactions.pointerMoveTolerance},i.addDocument=function(o,a){this.scope.addDocument(o,a)},i.removeDocument=function(o){this.scope.removeDocument(o)},i})(this),this.InteractEvent=bt,this.Interactable=void 0,this.interactables=new fr(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(r){return e.removeDocument(r.target)};var n=this;this.Interactable=(function(r){fe(o,r);var i=ae(o);function o(){return V(this,o),i.apply(this,arguments)}return B(o,[{key:"_defaults",get:function(){return n.defaults}},{key:"set",value:function(a){return be(K(o.prototype),"set",this).call(this,a),n.fire("interactable:set",{options:a,interactable:this}),this}},{key:"unset",value:function(){be(K(o.prototype),"unset",this).call(this);var a=n.interactables.list.indexOf(this);a<0||(n.interactables.list.splice(a,1),n.fire("interactable:unset",{interactable:this}))}}]),o})(pr)}return B(t,[{key:"addListeners",value:function(e,n){this.listenerMaps.push({id:n,map:e})}},{key:"fire",value:function(e,n){for(var r=0,i=this.listenerMaps;r<i.length;r++){var o=i[r].map[e];if(o&&o(n,this,e)===!1)return!1}}},{key:"init",value:function(e){return this.isInitialized?this:(function(n,r){return n.isInitialized=!0,d.window(r)&&C(r),$.init(r),R.init(r),ce.init(r),n.window=r,n.document=r.document,n.usePlugin(ur),n.usePlugin(sr),n})(this,e)}},{key:"pluginIsInstalled",value:function(e){var n=e.id;return n?!!this._plugins.map[n]:this._plugins.list.indexOf(e)!==-1}},{key:"usePlugin",value:function(e,n){if(!this.isInitialized)return this;if(this.pluginIsInstalled(e))return this;if(e.id&&(this._plugins.map[e.id]=e),this._plugins.list.push(e),e.install&&e.install(this,n),e.listeners&&e.before){for(var r=0,i=this.listenerMaps.length,o=e.before.reduce((function(s,c){return s[c]=!0,s[vn(c)]=!0,s}),{});r<i;r++){var a=this.listenerMaps[r].id;if(a&&(o[a]||o[vn(a)]))break}this.listenerMaps.splice(r,0,{id:e.id,map:e.listeners})}else e.listeners&&this.listenerMaps.push({id:e.id,map:e.listeners});return this}},{key:"addDocument",value:function(e,n){if(this.getDocIndex(e)!==-1)return!1;var r=M(e);n=n?S({},n):{},this.documents.push({doc:e,options:n}),this.events.documents.push(e),e!==this.document&&this.events.add(r,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:e,window:r,scope:this,options:n})}},{key:"removeDocument",value:function(e){var n=this.getDocIndex(e),r=M(e),i=this.documents[n].options;this.events.remove(r,"unload",this.onWindowUnload),this.documents.splice(n,1),this.events.documents.splice(n,1),this.fire("scope:remove-document",{doc:e,window:r,scope:this,options:i})}},{key:"getDocIndex",value:function(e){for(var n=0;n<this.documents.length;n++)if(this.documents[n].doc===e)return n;return-1}},{key:"getDocOptions",value:function(e){var n=this.getDocIndex(e);return n===-1?null:this.documents[n].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),t})();function vn(t){return t&&t.replace(/\/.*$/,"")}var gn=new dr,X=gn.interactStatic,hr=typeof globalThis!="undefined"?globalThis:window;gn.init(hr);var vr=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(t){var e=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter((function(r){var i=r[0],o=r[1];return i in t||o in t})),n=function(r,i){for(var o=t.range,a=t.limits,s=a===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:a,c=t.offset,u=c===void 0?{x:0,y:0}:c,l={range:o,grid:t,x:null,y:null},p=0;p<e.length;p++){var f=e[p],v=f[0],h=f[1],g=Math.round((r-u.x)/t[v]),x=Math.round((i-u.y)/t[h]);l[v]=Math.max(s.left,Math.min(s.right,g*t[v]+u.x)),l[h]=Math.max(s.top,Math.min(s.bottom,x*t[h]+u.y))}return l};return n.grid=t,n.coordFields=e,n}}),gr={id:"snappers",install:function(t){var e=t.interactStatic;e.snappers=S(e.snappers||{},vr),e.createSnapGrid=e.snappers.grid}},mr=gr,yr={start:function(t){var e=t.state,n=t.rect,r=t.edges,i=t.pageCoords,o=e.options,a=o.ratio,s=o.enabled,c=e.options,u=c.equalDelta,l=c.modifiers;a==="preserve"&&(a=n.width/n.height),e.startCoords=S({},i),e.startRect=S({},n),e.ratio=a,e.equalDelta=u;var p=e.linkedEdges={top:r.top||r.left&&!r.bottom,left:r.left||r.top&&!r.right,bottom:r.bottom||r.right&&!r.top,right:r.right||r.bottom&&!r.left};if(e.xIsPrimaryAxis=!(!r.left&&!r.right),e.equalDelta){var f=(p.left?1:-1)*(p.top?1:-1);e.edgeSign={x:f,y:f}}else e.edgeSign={x:p.left?-1:1,y:p.top?-1:1};if(s!==!1&&S(r,p),l!=null&&l.length){var v=new yt(t.interaction);v.copyFrom(t.interaction.modification),v.prepareStates(l),e.subModification=v,v.startAll(ie({},t))}},set:function(t){var e=t.state,n=t.rect,r=t.coords,i=e.linkedEdges,o=S({},r),a=e.equalDelta?br:xr;if(S(t.edges,i),a(e,e.xIsPrimaryAxis,r,n),!e.subModification)return null;var s=S({},n);Fe(i,s,{x:r.x-o.x,y:r.y-o.y});var c=e.subModification.setAll(ie(ie({},t),{},{rect:s,edges:i,pageCoords:r,prevCoords:r,prevRect:s})),u=c.delta;return c.changed&&(a(e,Math.abs(u.x)>Math.abs(u.y),c.coords,c.rect),S(r,c.coords)),c.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function br(t,e,n){var r=t.startCoords,i=t.edgeSign;e?n.y=r.y+(n.x-r.x)*i.y:n.x=r.x+(n.y-r.y)*i.x}function xr(t,e,n,r){var i=t.startRect,o=t.startCoords,a=t.ratio,s=t.edgeSign;if(e){var c=r.width/a;n.y=o.y+(c-i.height)*s.y}else{var u=r.height*a;n.x=o.x+(u-i.width)*s.x}}var wr=le(yr,"aspectRatio"),mn=function(){};mn._defaults={};var He=mn;function me(t,e,n){return d.func(t)?_e(t,e.interactable,e.element,[n.x,n.y,e]):_e(t,e.interactable,e.element)}var Ge={start:function(t){var e=t.rect,n=t.startOffset,r=t.state,i=t.interaction,o=t.pageCoords,a=r.options,s=a.elementRect,c=S({left:0,top:0,right:0,bottom:0},a.offset||{});if(e&&s){var u=me(a.restriction,i,o);if(u){var l=u.right-u.left-e.width,p=u.bottom-u.top-e.height;l<0&&(c.left+=l,c.right+=l),p<0&&(c.top+=p,c.bottom+=p)}c.left+=n.left-e.width*s.left,c.top+=n.top-e.height*s.top,c.right+=n.right-e.width*(1-s.right),c.bottom+=n.bottom-e.height*(1-s.bottom)}r.offset=c},set:function(t){var e=t.coords,n=t.interaction,r=t.state,i=r.options,o=r.offset,a=me(i.restriction,n,e);if(a){var s=(function(c){return!c||"left"in c&&"top"in c||((c=S({},c)).left=c.x||0,c.top=c.y||0,c.right=c.right||c.left+c.width,c.bottom=c.bottom||c.top+c.height),c})(a);e.x=Math.max(Math.min(s.right-o.right,e.x),s.left+o.left),e.y=Math.max(Math.min(s.bottom-o.bottom,e.y),s.top+o.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Sr=le(Ge,"restrict"),yn={top:1/0,left:1/0,bottom:-1/0,right:-1/0},bn={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function xn(t,e){for(var n=0,r=["top","left","bottom","right"];n<r.length;n++){var i=r[n];i in t||(t[i]=e[i])}return t}var Me={noInner:yn,noOuter:bn,start:function(t){var e,n=t.interaction,r=t.startOffset,i=t.state,o=i.options;o&&(e=je(me(o.offset,n,n.coords.start.page))),e=e||{x:0,y:0},i.offset={top:e.y+r.top,left:e.x+r.left,bottom:e.y-r.bottom,right:e.x-r.right}},set:function(t){var e=t.coords,n=t.edges,r=t.interaction,i=t.state,o=i.offset,a=i.options;if(n){var s=S({},e),c=me(a.inner,r,s)||{},u=me(a.outer,r,s)||{};xn(c,yn),xn(u,bn),n.top?e.y=Math.min(Math.max(u.top+o.top,s.y),c.top+o.top):n.bottom&&(e.y=Math.max(Math.min(u.bottom+o.bottom,s.y),c.bottom+o.bottom)),n.left?e.x=Math.min(Math.max(u.left+o.left,s.x),c.left+o.left):n.right&&(e.x=Math.max(Math.min(u.right+o.right,s.x),c.right+o.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Er=le(Me,"restrictEdges"),_r=S({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},Ge.defaults),Tr=le({start:Ge.start,set:Ge.set,defaults:_r},"restrictRect"),kr={width:-1/0,height:-1/0},Lr={width:1/0,height:1/0},Or=le({start:function(t){return Me.start(t)},set:function(t){var e=t.interaction,n=t.state,r=t.rect,i=t.edges,o=n.options;if(i){var a=it(me(o.min,e,t.coords))||kr,s=it(me(o.max,e,t.coords))||Lr;n.options={endOnly:o.endOnly,inner:S({},Me.noInner),outer:S({},Me.noOuter)},i.top?(n.options.inner.top=r.bottom-a.height,n.options.outer.top=r.bottom-s.height):i.bottom&&(n.options.inner.bottom=r.top+a.height,n.options.outer.bottom=r.top+s.height),i.left?(n.options.inner.left=r.right-a.width,n.options.outer.left=r.right-s.width):i.right&&(n.options.inner.right=r.left+a.width,n.options.outer.right=r.left+s.width),Me.set(t),n.options=o}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),_t={start:function(t){var e,n=t.interaction,r=t.interactable,i=t.element,o=t.rect,a=t.state,s=t.startOffset,c=a.options,u=c.offsetWithOrigin?(function(f){var v=f.interaction.element,h=je(_e(f.state.options.origin,null,null,[v])),g=h||Te(f.interactable,v,f.interaction.prepared.name);return g})(t):{x:0,y:0};if(c.offset==="startCoords")e={x:n.coords.start.page.x,y:n.coords.start.page.y};else{var l=_e(c.offset,r,i,[n]);(e=je(l)||{x:0,y:0}).x+=u.x,e.y+=u.y}var p=c.relativePoints;a.offsets=o&&p&&p.length?p.map((function(f,v){return{index:v,relativePoint:f,x:s.left-o.width*f.x+e.x,y:s.top-o.height*f.y+e.y}})):[{index:0,relativePoint:null,x:e.x,y:e.y}]},set:function(t){var e=t.interaction,n=t.coords,r=t.state,i=r.options,o=r.offsets,a=Te(e.interactable,e.element,e.prepared.name),s=S({},n),c=[];i.offsetWithOrigin||(s.x-=a.x,s.y-=a.y);for(var u=0,l=o;u<l.length;u++)for(var p=l[u],f=s.x-p.x,v=s.y-p.y,h=0,g=i.targets.length;h<g;h++){var x=i.targets[h],b=void 0;(b=d.func(x)?x(f,v,e._proxy,p,h):x)&&c.push({x:(d.number(b.x)?b.x:f)+p.x,y:(d.number(b.y)?b.y:v)+p.y,range:d.number(b.range)?b.range:i.range,source:x,index:h,offset:p})}for(var w={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},L=0;L<c.length;L++){var I=c[L],E=I.range,O=I.x-s.x,Y=I.y-s.y,A=ke(O,Y),W=A<=E;E===1/0&&w.inRange&&w.range!==1/0&&(W=!1),w.target&&!(W?w.inRange&&E!==1/0?A/E<w.distance/w.range:E===1/0&&w.range!==1/0||A<w.distance:!w.inRange&&A<w.distance)||(w.target=I,w.distance=A,w.range=E,w.inRange=W,w.delta.x=O,w.delta.y=Y)}return w.inRange&&(n.x=w.target.x,n.y=w.target.y),r.closest=w,w},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Pr=le(_t,"snap"),Ze={start:function(t){var e=t.state,n=t.edges,r=e.options;if(!n)return null;t.state={options:{targets:null,relativePoints:[{x:n.left?0:1,y:n.top?0:1}],offset:r.offset||"self",origin:{x:0,y:0},range:r.range}},e.targetFields=e.targetFields||[["width","height"],["x","y"]],_t.start(t),e.offsets=t.state.offsets,t.state=e},set:function(t){var e=t.interaction,n=t.state,r=t.coords,i=n.options,o=n.offsets,a={x:r.x-o[0].x,y:r.y-o[0].y};n.options=S({},i),n.options.targets=[];for(var s=0,c=i.targets||[];s<c.length;s++){var u=c[s],l=void 0;if(l=d.func(u)?u(a.x,a.y,e):u){for(var p=0,f=n.targetFields;p<f.length;p++){var v=f[p],h=v[0],g=v[1];if(h in l||g in l){l.x=l[h],l.y=l[g];break}}n.options.targets.push(l)}}var x=_t.set(t);return n.options=i,x},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},zr=le(Ze,"snapSize"),Tt={aspectRatio:wr,restrictEdges:Er,restrict:Sr,restrictRect:Tr,restrictSize:Or,snapEdges:le({start:function(t){var e=t.edges;return e?(t.state.targetFields=t.state.targetFields||[[e.left?"left":"right",e.top?"top":"bottom"]],Ze.start(t)):null},set:Ze.set,defaults:S(we(Ze.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Pr,snapSize:zr,spring:He,avoid:He,transform:He,rubberband:He},Ir={id:"modifiers",install:function(t){var e=t.interactStatic;for(var n in t.usePlugin(tn),t.usePlugin(mr),e.modifiers=Tt,Tt){var r=Tt[n],i=r._defaults,o=r._methods;i._methods=o,t.defaults.perAction[n]=i}}},Dr=Ir,wn=(function(t){fe(n,t);var e=ae(n);function n(r,i,o,a,s,c){var u;if(V(this,n),Be(ye(u=e.call(this,s)),o),o!==i&&Be(ye(u),i),u.timeStamp=c,u.originalEvent=o,u.type=r,u.pointerId=Le(i),u.pointerType=jt(i),u.target=a,u.currentTarget=null,r==="tap"){var l=s.getPointerIndex(i);u.dt=u.timeStamp-s.pointers[l].downTime;var p=u.timeStamp-s.tapTime;u.double=!!s.prevTap&&s.prevTap.type!=="doubletap"&&s.prevTap.target===u.target&&p<500}else r==="doubletap"&&(u.dt=i.timeStamp-s.tapTime,u.double=!0);return u}return B(n,[{key:"_subtractOrigin",value:function(r){var i=r.x,o=r.y;return this.pageX-=i,this.pageY-=o,this.clientX-=i,this.clientY-=o,this}},{key:"_addOrigin",value:function(r){var i=r.x,o=r.y;return this.pageX+=i,this.pageY+=o,this.clientX+=i,this.clientY+=o,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),n})(Ne),Ce={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(t){t.pointerEvents=Ce,t.defaults.actions.pointerEvents=Ce.defaults,S(t.actions.phaselessTypes,Ce.types)},listeners:{"interactions:new":function(t){var e=t.interaction;e.prevTap=null,e.tapTime=0},"interactions:update-pointer":function(t){var e=t.down,n=t.pointerInfo;!e&&n.hold||(n.hold={duration:1/0,timeout:null})},"interactions:move":function(t,e){var n=t.interaction,r=t.pointer,i=t.event,o=t.eventTarget;t.duplicate||n.pointerIsDown&&!n.pointerWasMoved||(n.pointerIsDown&&kt(t),pe({interaction:n,pointer:r,event:i,eventTarget:o,type:"move"},e))},"interactions:down":function(t,e){(function(n,r){for(var i=n.interaction,o=n.pointer,a=n.event,s=n.eventTarget,c=n.pointerIndex,u=i.pointers[c].hold,l=Pt(s),p={interaction:i,pointer:o,event:a,eventTarget:s,type:"hold",targets:[],path:l,node:null},f=0;f<l.length;f++){var v=l[f];p.node=v,r.fire("pointerEvents:collect-targets",p)}if(p.targets.length){for(var h=1/0,g=0,x=p.targets;g<x.length;g++){var b=x[g].eventable.options.holdDuration;b<h&&(h=b)}u.duration=h,u.timeout=setTimeout((function(){pe({interaction:i,eventTarget:s,pointer:o,event:a,type:"hold"},r)}),h)}})(t,e),pe(t,e)},"interactions:up":function(t,e){kt(t),pe(t,e),(function(n,r){var i=n.interaction,o=n.pointer,a=n.event,s=n.eventTarget;i.pointerWasMoved||pe({interaction:i,eventTarget:s,pointer:o,event:a,type:"tap"},r)})(t,e)},"interactions:cancel":function(t,e){kt(t),pe(t,e)}},PointerEvent:wn,fire:pe,collectEventTargets:Sn,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function pe(t,e){var n=t.interaction,r=t.pointer,i=t.event,o=t.eventTarget,a=t.type,s=t.targets,c=s===void 0?Sn(t,e):s,u=new wn(a,r,i,o,n,e.now());e.fire("pointerEvents:new",{pointerEvent:u});for(var l={interaction:n,pointer:r,event:i,eventTarget:o,targets:c,type:a,pointerEvent:u},p=0;p<c.length;p++){var f=c[p];for(var v in f.props||{})u[v]=f.props[v];var h=Te(f.eventable,f.node);if(u._subtractOrigin(h),u.eventable=f.eventable,u.currentTarget=f.node,f.eventable.fire(u),u._addOrigin(h),u.immediatePropagationStopped||u.propagationStopped&&p+1<c.length&&c[p+1].node!==u.currentTarget)break}if(e.fire("pointerEvents:fired",l),a==="tap"){var g=u.double?pe({interaction:n,pointer:r,event:i,eventTarget:o,type:"doubletap"},e):u;n.prevTap=g,n.tapTime=g.timeStamp}return u}function Sn(t,e){var n=t.interaction,r=t.pointer,i=t.event,o=t.eventTarget,a=t.type,s=n.getPointerIndex(r),c=n.pointers[s];if(a==="tap"&&(n.pointerWasMoved||!c||c.downTarget!==o))return[];for(var u=Pt(o),l={interaction:n,pointer:r,event:i,eventTarget:o,type:a,path:u,targets:[],node:null},p=0;p<u.length;p++){var f=u[p];l.node=f,e.fire("pointerEvents:collect-targets",l)}return a==="hold"&&(l.targets=l.targets.filter((function(v){var h,g;return v.eventable.options.holdDuration===((h=n.pointers[s])==null||(g=h.hold)==null?void 0:g.duration)}))),l.targets}function kt(t){var e=t.interaction,n=t.pointerIndex,r=e.pointers[n].hold;r&&r.timeout&&(clearTimeout(r.timeout),r.timeout=null)}var Mr=Object.freeze({__proto__:null,default:Ce});function Cr(t){var e=t.interaction;e.holdIntervalHandle&&(clearInterval(e.holdIntervalHandle),e.holdIntervalHandle=null)}var Ar={id:"pointer-events/holdRepeat",install:function(t){t.usePlugin(Ce);var e=t.pointerEvents;e.defaults.holdRepeatInterval=0,e.types.holdrepeat=t.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce((function(t,e){return t["pointerEvents:".concat(e)]=Cr,t}),{"pointerEvents:new":function(t){var e=t.pointerEvent;e.type==="hold"&&(e.count=(e.count||0)+1)},"pointerEvents:fired":function(t,e){var n=t.interaction,r=t.pointerEvent,i=t.eventTarget,o=t.targets;if(r.type==="hold"&&o.length){var a=o[0].eventable.options.holdRepeatInterval;a<=0||(n.holdIntervalHandle=setTimeout((function(){e.pointerEvents.fire({interaction:n,eventTarget:i,type:"hold",pointer:r,event:r},e)}),a))}}})},Rr=Ar,jr={id:"pointer-events/interactableTargets",install:function(t){var e=t.Interactable;e.prototype.pointerEvents=function(r){return S(this.events.options,r),this};var n=e.prototype._backCompatOption;e.prototype._backCompatOption=function(r,i){var o=n.call(this,r,i);return o===this&&(this.events.options[r]=i),o}},listeners:{"pointerEvents:collect-targets":function(t,e){var n=t.targets,r=t.node,i=t.type,o=t.eventTarget;e.interactables.forEachMatch(r,(function(a){var s=a.events,c=s.options;s.types[i]&&s.types[i].length&&a.testIgnoreAllow(c,r,o)&&n.push({node:r,eventable:s,props:{interactable:a}})}))},"interactable:new":function(t){var e=t.interactable;e.events.getRect=function(n){return e.getRect(n)}},"interactable:set":function(t,e){var n=t.interactable,r=t.options;S(n.events.options,e.pointerEvents.defaults),S(n.events.options,r.pointerEvents||{})}}},Fr=jr,Br={id:"pointer-events",install:function(t){t.usePlugin(Mr),t.usePlugin(Rr),t.usePlugin(Fr)}},$r=Br,Vr={id:"reflow",install:function(t){var e=t.Interactable;t.actions.phases.reflow=!0,e.prototype.reflow=function(n){return(function(r,i,o){for(var a=r.getAllElements(),s=o.window.Promise,c=s?[]:null,u=function(){var p=a[l],f=r.getRect(p);if(!f)return 1;var v,h=Pe(o.interactions.list,(function(b){return b.interacting()&&b.interactable===r&&b.element===p&&b.prepared.name===i.name}));if(h)h.move(),c&&(v=h._reflowPromise||new s((function(b){h._reflowResolve=b})));else{var g=it(f),x=(function(b){return{coords:b,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}})({page:{x:g.x,y:g.y},client:{x:g.x,y:g.y},timeStamp:o.now()});v=(function(b,w,L,I,E){var O=b.interactions.new({pointerType:"reflow"}),Y={interaction:O,event:E,pointer:E,eventTarget:L,phase:"reflow"};O.interactable=w,O.element=L,O.prevEvent=E,O.updatePointer(E,E,L,!0),Mt(O.coords.delta),ht(O.prepared,I),O._doPhase(Y);var A=b.window,W=A.Promise,H=W?new W((function(re){O._reflowResolve=re})):void 0;return O._reflowPromise=H,O.start(I,w,L),O._interacting?(O.move(Y),O.end(E)):(O.stop(),O._reflowResolve()),O.removePointer(E,E),H})(o,r,p,i,x)}c&&c.push(v)},l=0;l<a.length&&!u();l++);return c&&s.all(c).then((function(){return r}))})(this,n,t)}},listeners:{"interactions:stop":function(t,e){var n=t.interaction;n.pointerType==="reflow"&&(n._reflowResolve&&n._reflowResolve(),(function(r,i){r.splice(r.indexOf(i),1)})(e.interactions.list,n))}}},Nr=Vr;if(X.use(en),X.use(sn),X.use($r),X.use(or),X.use(Dr),X.use(Un),X.use(Rn),X.use(Fn),X.use(Nr),X.default=X,oe(j)==="object"&&j)try{j.exports=X}catch(t){}return X.default=X,X}))})(Re,Re.exports)),Re.exports}var Jr=Kr();const On=Pn.getDefaultExportFromCjs(Jr),Qr="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e组态图%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-102.000000,%20-636.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M105.586207,636.65%20C105.941701,636.65%20106.229885,636.938185%20106.229885,637.293678%20L106.229885,637.293678%20L106.229,638.121%20L113.77,638.121%20L113.770115,637.293678%20C113.770115,636.970502%20114.008284,636.702953%20114.318675,636.656979%20L114.413793,636.65%20L117.356322,636.65%20C117.711815,636.65%20118,636.938185%20118,637.293678%20L118,637.293678%20L118,640.236207%20C118,640.591701%20117.711815,640.879885%20117.356322,640.879885%20L117.356322,640.879885%20L116.528,640.879%20L116.528,648.42%20L117.356322,648.420115%20C117.679498,648.420115%20117.947047,648.658284%20117.993021,648.968675%20L118,649.063793%20L118,652.006322%20C118,652.361815%20117.711815,652.65%20117.356322,652.65%20L117.356322,652.65%20L114.413793,652.65%20C114.058299,652.65%20113.770115,652.361815%20113.770115,652.006322%20L113.770115,652.006322%20L113.77,651.178%20L106.229,651.178%20L106.229885,652.006322%20C106.229885,652.329498%20105.991716,652.597047%20105.681325,652.643021%20L105.586207,652.65%20L102.643678,652.65%20C102.288185,652.65%20102,652.361815%20102,652.006322%20L102,652.006322%20L102,649.063793%20C102,648.708299%20102.288185,648.420115%20102.643678,648.420115%20L102.643678,648.420115%20L103.471,648.42%20L103.471,640.879%20L102.643678,640.879885%20C102.320502,640.879885%20102.052953,640.641716%20102.006979,640.331325%20L102,640.236207%20L102,637.293678%20C102,636.938185%20102.288185,636.65%20102.643678,636.65%20L102.643678,636.65%20Z%20M116.712644,649.707471%20L115.057471,649.707471%20L115.057471,651.362644%20L116.712644,651.362644%20L116.712644,649.707471%20Z%20M104.942529,649.707471%20L103.287356,649.707471%20L103.287356,651.362644%20L104.942529,651.362644%20L104.942529,649.707471%20Z%20M113.77,639.408%20L106.229,639.408%20L106.229885,640.236207%20C106.229885,640.559383%20105.991716,640.826932%20105.681325,640.872906%20L105.586207,640.879885%20L104.758,640.879%20L104.758,648.42%20L105.586207,648.420115%20C105.909383,648.420115%20106.176932,648.658284%20106.222906,648.968675%20L106.229885,649.063793%20L106.229,649.891%20L113.77,649.891%20L113.770115,649.063793%20C113.770115,648.740617%20114.008284,648.473068%20114.318675,648.427094%20L114.413793,648.420115%20L115.241,648.42%20L115.241,640.879%20L114.413793,640.879885%20C114.090617,640.879885%20113.823068,640.641716%20113.777094,640.331325%20L113.770115,640.236207%20L113.77,639.408%20Z%20M110.588506,641.063793%20C110.943999,641.063793%20111.232184,641.351978%20111.232184,641.707471%20L111.232184,641.707471%20L111.232184,643.416897%20L112.942529,643.417816%20C113.268398,643.417816%20113.537709,643.659971%20113.580331,643.974151%20L113.580331,643.974151%20L113.586207,644.061494%20L113.586207,647.592529%20C113.586207,647.948022%20113.298022,648.236207%20112.942529,648.236207%20L112.942529,648.236207%20L109.411494,648.236207%20C109.056001,648.236207%20108.767816,647.948022%20108.767816,647.592529%20L108.767816,647.592529%20L108.767816,645.882184%20L107.057471,645.882184%20C106.731602,645.882184%20106.462291,645.640029%20106.419669,645.325849%20L106.419669,645.325849%20L106.413793,645.238506%20L106.413793,641.707471%20C106.413793,641.351978%20106.701978,641.063793%20107.057471,641.063793%20L107.057471,641.063793%20Z%20M109.944828,642.351149%20L107.701149,642.351149%20L107.701149,644.593908%20L109.411494,644.594828%20C109.737363,644.594828%20110.006674,644.836983%20110.049296,645.151162%20L110.049296,645.151162%20L110.055172,645.238506%20L110.055172,646.947931%20L112.298851,646.947931%20L112.298851,644.705172%20L110.588506,644.705172%20C110.262637,644.705172%20109.993326,644.463017%20109.950704,644.148838%20L109.950704,644.148838%20L109.944828,644.061494%20L109.944828,642.351149%20Z%20M104.942529,637.937356%20L103.287356,637.937356%20L103.287356,639.592529%20L104.942529,639.592529%20L104.942529,637.937356%20Z%20M116.712644,637.937356%20L115.057471,637.937356%20L115.057471,639.592529%20L116.712644,639.592529%20L116.712644,637.937356%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ei="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e组态图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-102.000000,%20-636.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M105.586207,636.65%20C105.941701,636.65%20106.229885,636.938185%20106.229885,637.293678%20L106.229885,637.293678%20L106.229,638.121%20L113.77,638.121%20L113.770115,637.293678%20C113.770115,636.970502%20114.008284,636.702953%20114.318675,636.656979%20L114.413793,636.65%20L117.356322,636.65%20C117.711815,636.65%20118,636.938185%20118,637.293678%20L118,637.293678%20L118,640.236207%20C118,640.591701%20117.711815,640.879885%20117.356322,640.879885%20L117.356322,640.879885%20L116.528,640.879%20L116.528,648.42%20L117.356322,648.420115%20C117.679498,648.420115%20117.947047,648.658284%20117.993021,648.968675%20L118,649.063793%20L118,652.006322%20C118,652.361815%20117.711815,652.65%20117.356322,652.65%20L117.356322,652.65%20L114.413793,652.65%20C114.058299,652.65%20113.770115,652.361815%20113.770115,652.006322%20L113.770115,652.006322%20L113.77,651.178%20L106.229,651.178%20L106.229885,652.006322%20C106.229885,652.329498%20105.991716,652.597047%20105.681325,652.643021%20L105.586207,652.65%20L102.643678,652.65%20C102.288185,652.65%20102,652.361815%20102,652.006322%20L102,652.006322%20L102,649.063793%20C102,648.708299%20102.288185,648.420115%20102.643678,648.420115%20L102.643678,648.420115%20L103.471,648.42%20L103.471,640.879%20L102.643678,640.879885%20C102.320502,640.879885%20102.052953,640.641716%20102.006979,640.331325%20L102,640.236207%20L102,637.293678%20C102,636.938185%20102.288185,636.65%20102.643678,636.65%20L102.643678,636.65%20Z%20M116.712644,649.707471%20L115.057471,649.707471%20L115.057471,651.362644%20L116.712644,651.362644%20L116.712644,649.707471%20Z%20M104.942529,649.707471%20L103.287356,649.707471%20L103.287356,651.362644%20L104.942529,651.362644%20L104.942529,649.707471%20Z%20M113.77,639.408%20L106.229,639.408%20L106.229885,640.236207%20C106.229885,640.559383%20105.991716,640.826932%20105.681325,640.872906%20L105.586207,640.879885%20L104.758,640.879%20L104.758,648.42%20L105.586207,648.420115%20C105.909383,648.420115%20106.176932,648.658284%20106.222906,648.968675%20L106.229885,649.063793%20L106.229,649.891%20L113.77,649.891%20L113.770115,649.063793%20C113.770115,648.740617%20114.008284,648.473068%20114.318675,648.427094%20L114.413793,648.420115%20L115.241,648.42%20L115.241,640.879%20L114.413793,640.879885%20C114.090617,640.879885%20113.823068,640.641716%20113.777094,640.331325%20L113.770115,640.236207%20L113.77,639.408%20Z%20M110.588506,641.063793%20C110.943999,641.063793%20111.232184,641.351978%20111.232184,641.707471%20L111.232184,641.707471%20L111.232184,643.416897%20L112.942529,643.417816%20C113.268398,643.417816%20113.537709,643.659971%20113.580331,643.974151%20L113.580331,643.974151%20L113.586207,644.061494%20L113.586207,647.592529%20C113.586207,647.948022%20113.298022,648.236207%20112.942529,648.236207%20L112.942529,648.236207%20L109.411494,648.236207%20C109.056001,648.236207%20108.767816,647.948022%20108.767816,647.592529%20L108.767816,647.592529%20L108.767816,645.882184%20L107.057471,645.882184%20C106.731602,645.882184%20106.462291,645.640029%20106.419669,645.325849%20L106.419669,645.325849%20L106.413793,645.238506%20L106.413793,641.707471%20C106.413793,641.351978%20106.701978,641.063793%20107.057471,641.063793%20L107.057471,641.063793%20Z%20M109.944828,642.351149%20L107.701149,642.351149%20L107.701149,644.593908%20L109.411494,644.594828%20C109.737363,644.594828%20110.006674,644.836983%20110.049296,645.151162%20L110.049296,645.151162%20L110.055172,645.238506%20L110.055172,646.947931%20L112.298851,646.947931%20L112.298851,644.705172%20L110.588506,644.705172%20C110.262637,644.705172%20109.993326,644.463017%20109.950704,644.148838%20L109.950704,644.148838%20L109.944828,644.061494%20L109.944828,642.351149%20Z%20M104.942529,637.937356%20L103.287356,637.937356%20L103.287356,639.592529%20L104.942529,639.592529%20L104.942529,637.937356%20Z%20M116.712644,637.937356%20L115.057471,637.937356%20L115.057471,639.592529%20L116.712644,639.592529%20L116.712644,637.937356%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ti=["id"],ni=["id","title"],ri={class:"num"},ii=["id"],oi=["id"],ai=["id"],si=["id"],ci=["id"],li=["id"],ui={DEFAULT_ICON:Qr,ACTIVE_ICON:ei,NAME_CN:"组态图",NAME_EN:"Scd",ORDER:1},pi={bgColor:"#fff",titleColor:"#111",titleSize:14,bgImg:{value:"",type:"image",label:"component.monitor.bgImg"},outer:{value:{width:"100%",height:"100%",top:"0%",left:"0%"},type:"object",label:"component.monitor.outerSize"},inner:{value:{width:"100%",height:"100%"},type:"object",label:"component.monitor.innerSize"},multipleImg:!1,statusFv:{value:"",type:"string",label:"component.monitor.statusFv",required:!0,dependent:"multipleImg"},object:{value:"",type:"string",label:"component.monitor.object",dependent:"multipleImg"},images:{value:[{code:"0",value:""}],type:"status",label:"",dependent:"multipleImg"},radiusSize:8,isHideTitle:!0},fi=[{name:"参数一",fv:"",width:100,object_id:"",source:"mosaic",type:"Plate",titleBg:"#006eaf",titleColor:"#fff",valueBg:"#fff",valueColor:"#006eaf",fontSize:12,isBold:!1}],di=["name","fv","object_id","source","type","width","fontSize","titleColor","titleBg","valueColor","valueBg","isBold"],hi=["mosaic"],vi={useAlias:!1,multiObject:!1,showBothModes:!0,source:"mosaic"},gi={DEFAULT:ui,OPTIONS:pi,DATA:fi,PARAMS:di,SOURCE:hi,COMMON:vi},mi=m.defineComponent(kn(Tn({},gi),{__name:"scd",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(j){const D="monitor_"+Math.random().toString(16).substring(4,12),F=j,ie="--";class oe extends Hr.BaseComponent{extractStyles(){var C,M,z,N;const k=this.props.conf.options,P={bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),bgImg:this.getOptionValue("bgImg",""),radiusSize:this.getOptionValue("radiusSize",4),isHideTitle:this.getOptionValue("isHideTitle",!1),outer:this.getOptionValue("outer",{width:"95%",height:"95%",top:"5%",left:"5%"}),inner:this.getOptionValue("inner",{width:"100%",height:"100%"})};return(C=k==null?void 0:k.multipleImg)!=null&&C.value&&(P.multipleImg=k.multipleImg.value,P.statusFv=(M=k.statusFv)==null?void 0:M.value,P.images=(z=k.images)==null?void 0:z.value,P.object=(N=k.object)==null?void 0:N.value),P}init(){this.Style.value=this.extractStyles(),this.applyTheme(),B.value=this.Style.value.bgImg,m.nextTick(()=>{var C,M;const k=((C=document.getElementById(D))==null?void 0:C.clientWidth)||0,P=((M=document.getElementById(D))==null?void 0:M.clientHeight)||0;this.props.conf.data.forEach(z=>{const N=this.props.conf.height||P;typeof z.x=="number"&&(z.x=`${z.x/k*100}%`,z.y=`${z.y/P*100}%`),z.height=Math.floor(P/N*z.height)}),this.props.conf.height=P})}setSocketData(k){var C;if(!k)return;const{data:P}=this.props.conf;if(P.forEach(M=>{var z,N;try{const d=this.extractDataValue(k,M.fv);M.value=(z=d!=null?d:M.default)!=null?z:ie}catch(d){M.value=(N=M.default)!=null?N:ie}}),this.Style.value.multipleImg&&this.Style.value.statusFv){const M=this.extractDataValue(k,this.Style.value.statusFv),z=(C=this.Style.value.images)==null?void 0:C.find(N=>String(N.code)===String(M));B.value=(z==null?void 0:z.value)||this.Style.value.bgImg}}}const V=new oe(F,"scd");V.setupLifecycle();const G=V.getStyle(),B=m.ref(""),Je=m.computed(()=>Gr.generateTitleStyle(F.conf.options)),fe=T=>{let k=5;return/^\d+$/.test(T)&&(k=Number(T)),k+1},K=(T,k)=>{const P=k.pieces?Number(k.pieces):5,C=k.max?Number(k.max):100,M=k.min?Number(k.min):0;return C-Math.floor((C-M)/P)*T},Se=()=>{On("."+D).draggable({modifiers:[On.modifiers.restrictRect({restriction:"parent",endOnly:!0})],onmove(T){ye(T)}})},ye=T=>{const{data:k}=F.conf,P=document.getElementById(D);if(!P)return;const C=P.clientWidth,M=P.clientHeight;k.forEach((z,N)=>{var d,J;if(`${z.type}_${D}_${z.fv}_${N}`===T.target.id){let he=typeof z.x=="number"?z.x+T.dx:Number(((d=z.x)==null?void 0:d.replace("%",""))||0)/100*C+T.dx,Q=typeof z.y=="number"?z.y+T.dy:Number(((J=z.y)==null?void 0:J.replace("%",""))||0)/100*M+T.dy;z.x=`${he/C*100}%`,z.y=`${Q/M*100}%`}})},ae=T=>{const k=T.max-T.min;let P,C;return T.value<T.startValue?(P=Math.abs((T.value-T.startValue)/k*T.height),C=T.value/k*T.height):(P=Math.abs((T.value-T.startValue)/k*T.height),C=T.startValue/k*T.height),{height:`${P}px`,bottom:`${C}px`}},be=T=>{let k="standby";return String(T.value)===T.online&&(k="online"),String(T.value)===T.offline&&(k="offline"),k},de=T=>{var P;let k={text:"--",color:T.color};return(P=T.status)==null||P.forEach(C=>{String(T.value)===String(C.code)&&(k.text=C.text,k.color=C.color)}),k};return F.mode==="edit"&&Se(),(T,k)=>{var P,C,M,z,N,d,J,he,Q,Ee,q,ee,$;return m.openBlock(),m.createElementBlock("div",{class:"mix-component",style:m.normalizeStyle({backgroundColor:m.unref(G).bgColor,borderRadius:`${m.unref(G).radiusSize}px`})},[m.createElementVNode("div",{class:"mix-title",style:m.normalizeStyle(Je.value)},m.toDisplayString(j.conf.caption||j.conf.name),5),m.createElementVNode("div",{class:"mix-body",id:D},[m.createElementVNode("div",{style:m.normalizeStyle({height:(C=(P=m.unref(G))==null?void 0:P.outer)==null?void 0:C.height,width:(z=(M=m.unref(G))==null?void 0:M.outer)==null?void 0:z.width,top:(d=(N=m.unref(G))==null?void 0:N.outer)==null?void 0:d.top,left:(he=(J=m.unref(G))==null?void 0:J.outer)==null?void 0:he.left}),class:"absolute"},[m.createElementVNode("div",{class:"w-[100%] h-[100%] relative",style:m.normalizeStyle({backgroundImage:`url(${B.value})`,backgroundSize:`${(Ee=(Q=m.unref(G))==null?void 0:Q.inner)==null?void 0:Ee.width} ${(ee=(q=m.unref(G))==null?void 0:q.inner)==null?void 0:ee.height}`})},[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(($=j.conf)==null?void 0:$.data,(y,R)=>{var Z;return m.openBlock(),m.createElementBlock(m.Fragment,{key:y.fv+"_"+R},[y.type=="ULG"?(m.openBlock(),m.createElementBlock("div",{key:0,class:m.normalizeClass(`${D} liquid absolute`),id:`ULG_${D}_${y.fv}_${R}`,style:m.normalizeStyle({height:`${y.height}px`,left:y.x,top:y.y,zIndex:R})},[m.createElementVNode("div",{class:"liquid-bar",style:m.normalizeStyle({width:`${y.width}px`})},[m.createElementVNode("div",{class:"liquid-value",id:D+"_Liquid_"+y.fv,title:y.value,style:m.normalizeStyle({height:ae(y).height,bottom:ae(y).bottom})},null,12,ni)],4),m.createElementVNode("div",{class:"liquid-scale",style:m.normalizeStyle({display:y.showScale===!1?"none":"flex"})},[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(fe(y.pieces),(Qe,U)=>(m.openBlock(),m.createElementBlock("div",{class:"split",key:U,style:m.normalizeStyle({fontSize:`${y.fontSize}px`,fontWeight:y.isBold?"bold":"normal"})},[m.createElementVNode("span",ri,m.toDisplayString(K(U,y)),1)],4))),128))],4)],14,ti)):y.type=="Signal"?(m.openBlock(),m.createElementBlock("div",{key:1,class:m.normalizeClass(`${D} signal absolute ${be(y)}`),style:m.normalizeStyle({width:`${y.fontSize}px`,height:`${y.fontSize}px`,left:y.x,top:y.y,zIndex:R}),id:`Signal_${D}_${y.fv}_${R}`},null,14,ii)):y.type=="Digit"?(m.openBlock(),m.createElementBlock("div",{key:2,class:m.normalizeClass(`${D} absolute`),style:m.normalizeStyle({left:y.x,top:y.y,color:y.color,fontSize:`${y.fontSize}px`,fontWeight:y.isBold?"bold":"normal",zIndex:R}),id:`Digit_${D}_${y.fv}_${R}`},m.toDisplayString((Z=y.value)!=null?Z:y.default)+m.toDisplayString(y.unit?" "+y.unit:""),15,oi)):y.type=="Status"?(m.openBlock(),m.createElementBlock("div",{key:3,class:m.normalizeClass(`${D} absolute status`),id:`Status_${D}_${y.fv}_${R}`,style:m.normalizeStyle({color:de(y).color,left:y.x,top:y.y,zIndex:R})},[m.createTextVNode(m.toDisplayString(y.name)+": ",1),m.createElementVNode("span",null,[m.createElementVNode("div",{style:m.normalizeStyle({"background-color":de(y).color}),id:"monitorStatus-"+y.fv},null,12,si),m.createElementVNode("span",{id:"monitorStatusSpan-"+y.fv,style:m.normalizeStyle({color:de(y).color})},m.toDisplayString(de(y).text),13,ci)])],14,ai)):(m.openBlock(),m.createElementBlock("div",{key:4,class:m.normalizeClass(`${D} absolute plate`),id:`Plate_${D}_${y.fv}_${R}`,style:m.normalizeStyle({width:`${y.width}px`,fontSize:`${y.fontSize}px`,fontWeight:y.isBold?"bold":"normal",left:y.x,top:y.y,zIndex:R})},[m.createElementVNode("div",{class:"name",style:m.normalizeStyle({color:y.titleColor,backgroundColor:y.titleBg})},m.toDisplayString(y.name||"--")+m.toDisplayString(y.unit?"/"+y.unit:""),5),m.createElementVNode("div",{class:"value",style:m.normalizeStyle({color:y.valueColor,backgroundColor:y.valueBg,borderColor:y.titleBg})},m.toDisplayString(y.value||"--"),5)],14,li))],64)}),128))],4)],4)]),m.renderSlot(T.$slots,"default",{},void 0,!0)],4)}}})),yi=Pn._export_sfc(mi,[["__scopeId","data-v-9fe283ea"]]);exports.default=yi;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./echarts-BB8O2KSA.cjs");function s(t,n,u){var r=t.get("borderRadius");if(r==null)return u?{cornerRadius:0}:null;e.isArray(r)||(r=[r,r,r,r]);var a=Math.abs(n.r||0-n.r0||0);return{cornerRadius:e.map(r,function(i){return e.parsePercent$1(i,a)})}}exports.getSectorCornerRadius=s;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { f as u, o as i, aP as s } from "./echarts-BVht3HHb.js";
|
|
2
|
+
function d(e, a, n) {
|
|
3
|
+
var r = e.get("borderRadius");
|
|
4
|
+
if (r == null)
|
|
5
|
+
return n ? {
|
|
6
|
+
cornerRadius: 0
|
|
7
|
+
} : null;
|
|
8
|
+
u(r) || (r = [r, r, r, r]);
|
|
9
|
+
var o = Math.abs(a.r || 0 - a.r0 || 0);
|
|
10
|
+
return {
|
|
11
|
+
cornerRadius: i(r, function(t) {
|
|
12
|
+
return s(t, o);
|
|
13
|
+
})
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
d as g
|
|
18
|
+
};
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
var G = Object.defineProperty, W = Object.defineProperties;
|
|
2
|
+
var J = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var $ = Object.getOwnPropertySymbols;
|
|
4
|
+
var K = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var A = (i, r, c) => r in i ? G(i, r, { enumerable: !0, configurable: !0, writable: !0, value: c }) : i[r] = c, _ = (i, r) => {
|
|
6
|
+
for (var c in r || (r = {}))
|
|
7
|
+
K.call(r, c) && A(i, c, r[c]);
|
|
8
|
+
if ($)
|
|
9
|
+
for (var c of $(r))
|
|
10
|
+
q.call(r, c) && A(i, c, r[c]);
|
|
11
|
+
return i;
|
|
12
|
+
}, j = (i, r) => W(i, J(r));
|
|
13
|
+
import { defineComponent as H, useCssVars as Q, unref as s, inject as S, ref as O, computed as X, onMounted as Y, openBlock as m, createElementBlock as p, createElementVNode as u, toDisplayString as y, Fragment as I, renderList as D, normalizeClass as C, createCommentVNode as z, renderSlot as Z } from "vue";
|
|
14
|
+
import { ElMessage as T } from "element-plus";
|
|
15
|
+
import "html2canvas";
|
|
16
|
+
import { B as ee } from "./element-resize-detector-DJcsrJ8s.js";
|
|
17
|
+
import { _ as te } from "./index-kShjySl9.js";
|
|
18
|
+
import { A as ne, D as ae } from "./ele-lst-icon-CKpeRKmk.js";
|
|
19
|
+
const oe = { class: "side-menu-wrapper" }, re = { class: "menu-header" }, le = { class: "header-title" }, se = { class: "menu-list" }, ce = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "menu-group"
|
|
22
|
+
}, ue = ["onClick"], ie = { class: "menu-text" }, de = ["onClick"], me = { class: "menu-text" }, pe = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "active-indicator"
|
|
25
|
+
}, fe = ["onClick"], ve = { class: "menu-text" }, he = {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: "active-indicator"
|
|
28
|
+
}, Ce = {
|
|
29
|
+
DEFAULT_ICON: ae,
|
|
30
|
+
ACTIVE_ICON: ne,
|
|
31
|
+
NAME_CN: "右侧菜单栏",
|
|
32
|
+
NAME_EN: "Side Menu",
|
|
33
|
+
ORDER: 14
|
|
34
|
+
}, ge = {
|
|
35
|
+
title: { value: "功能菜单", type: "string", label: "component.sideMenu.title" },
|
|
36
|
+
fontSize: { value: 14, type: "number", label: "component.sideMenu.fontSize", min: 12, max: 24 },
|
|
37
|
+
bgColor: { value: "#ffffff", type: "color", label: "setting.bgColor" },
|
|
38
|
+
borderColor: { value: "#1e90ff", type: "color", label: "component.sideMenu.borderColor" },
|
|
39
|
+
textColor: { value: "#333333", type: "color", label: "setting.textColor" },
|
|
40
|
+
accentColor: { value: "#409eff", type: "color", label: "component.sideMenu.accentColor" },
|
|
41
|
+
hoverColor: { value: "rgba(0, 212, 255, 0.15)", type: "color", label: "component.sideMenu.hoverColor" },
|
|
42
|
+
activeColor: { value: "rgba(0, 212, 255, 0.25)", type: "color", label: "component.sideMenu.activeColor" },
|
|
43
|
+
glowEffect: { value: !0, type: "checkbox", label: "component.sideMenu.glowEffect" }
|
|
44
|
+
}, ye = [
|
|
45
|
+
{ name: "数据总览", parentId: "", actionType: "sheet", jumpParam: "0" },
|
|
46
|
+
{ name: "实时监测", parentId: "", actionType: "sheet", jumpParam: "1" },
|
|
47
|
+
{ name: "预警管理", parentId: "", actionType: "", jumpParam: "" },
|
|
48
|
+
{ name: "预警列表", parentId: "预警管理", actionType: "sheet", jumpParam: "2" },
|
|
49
|
+
{ name: "预警统计", parentId: "预警管理", actionType: "sheet", jumpParam: "3" },
|
|
50
|
+
{ name: "设备管理", parentId: "", actionType: "jump", jumpParam: "" },
|
|
51
|
+
{ name: "系统设置", parentId: "", actionType: "jump", jumpParam: "" }
|
|
52
|
+
], be = ["name", "parentId", "actionType", "jumpParam"], _e = ["mosaic"], je = { useAlias: !1, multiObject: !1, source: "mosaic" }, Se = { DEFAULT: Ce, OPTIONS: ge, DATA: ye, PARAMS: be, SOURCE: _e, COMMON: je }, Ie = /* @__PURE__ */ H(j(_({}, Se), {
|
|
53
|
+
__name: "sideMenu",
|
|
54
|
+
props: {
|
|
55
|
+
conf: { type: Object, default: () => ({ data: [] }) },
|
|
56
|
+
mode: { type: String, default: "edit" },
|
|
57
|
+
uid: { type: String, default: "" },
|
|
58
|
+
theme: { type: String, default: "light" }
|
|
59
|
+
},
|
|
60
|
+
setup(i) {
|
|
61
|
+
Q((o) => ({
|
|
62
|
+
v1e90178e: s(l).bgColor,
|
|
63
|
+
v2360df32: s(l).borderColor,
|
|
64
|
+
v9b295d58: s(l).accentColor,
|
|
65
|
+
v49bfd988: s(l).glowEffect ? `0 0 8px ${s(l).accentColor}` : "none",
|
|
66
|
+
v3989f191: s(l).textColor,
|
|
67
|
+
ff103b0e: s(l).glowEffect ? `0 0 10px ${s(l).accentColor}40` : "none",
|
|
68
|
+
v990ef8e8: s(l).hoverColor,
|
|
69
|
+
v8fd6e6d0: s(l).activeColor,
|
|
70
|
+
v757ee6d8: s(l).fontSize + "px",
|
|
71
|
+
v60ff5d6c: s(l).glowEffect ? `0 0 6px ${s(l).accentColor}` : "none"
|
|
72
|
+
}));
|
|
73
|
+
const r = S("switchSheet", () => {
|
|
74
|
+
}), c = S("getSheets", () => []), U = S("getCurrentSheet", () => 0), h = i;
|
|
75
|
+
class B extends ee {
|
|
76
|
+
extractStyles() {
|
|
77
|
+
var n, t, a, d, g, M, k, E, N, x;
|
|
78
|
+
const { options: e } = this.props.conf;
|
|
79
|
+
return {
|
|
80
|
+
title: ((n = e == null ? void 0 : e.title) == null ? void 0 : n.value) || "功能菜单",
|
|
81
|
+
fontSize: ((t = e == null ? void 0 : e.fontSize) == null ? void 0 : t.value) || 14,
|
|
82
|
+
bgColor: ((a = e == null ? void 0 : e.bgColor) == null ? void 0 : a.value) || "#ffffff",
|
|
83
|
+
borderColor: ((d = e == null ? void 0 : e.borderColor) == null ? void 0 : d.value) || "#1e90ff",
|
|
84
|
+
textColor: ((g = e == null ? void 0 : e.textColor) == null ? void 0 : g.value) || "#333333",
|
|
85
|
+
accentColor: ((M = e == null ? void 0 : e.accentColor) == null ? void 0 : M.value) || "#409eff",
|
|
86
|
+
hoverColor: ((k = e == null ? void 0 : e.hoverColor) == null ? void 0 : k.value) || "rgba(0, 212, 255, 0.15)",
|
|
87
|
+
activeColor: ((E = e == null ? void 0 : e.activeColor) == null ? void 0 : E.value) || "rgba(0, 212, 255, 0.25)",
|
|
88
|
+
glowEffect: (x = (N = e == null ? void 0 : e.glowEffect) == null ? void 0 : N.value) != null ? x : !0
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
getDefaultData() {
|
|
92
|
+
return [
|
|
93
|
+
{ name: "数据总览", parentId: "", actionType: "sheet", jumpParam: "0" },
|
|
94
|
+
{ name: "实时监测", parentId: "", actionType: "sheet", jumpParam: "1" },
|
|
95
|
+
{ name: "预警管理", parentId: "", actionType: "", jumpParam: "" },
|
|
96
|
+
{ name: "预警列表", parentId: "预警管理", actionType: "sheet", jumpParam: "2" },
|
|
97
|
+
{ name: "预警统计", parentId: "预警管理", actionType: "sheet", jumpParam: "3" },
|
|
98
|
+
{ name: "设备管理", parentId: "", actionType: "jump", jumpParam: "" },
|
|
99
|
+
{ name: "系统设置", parentId: "", actionType: "jump", jumpParam: "" }
|
|
100
|
+
];
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
const b = new B(h, "sideMenu");
|
|
104
|
+
(!h.conf.data || h.conf.data.length === 0) && (h.conf.data = b.getDefaultData()), b.setupLifecycle();
|
|
105
|
+
const l = b.getStyle(), v = O("0"), f = O([]), P = X(() => {
|
|
106
|
+
var t;
|
|
107
|
+
const o = ((t = h.conf) == null ? void 0 : t.data) || [], e = [], n = {};
|
|
108
|
+
return o.forEach((a) => {
|
|
109
|
+
a.parentId ? (n[a.parentId] || (n[a.parentId] = []), n[a.parentId].push(a)) : e.push(j(_({}, a), { children: [] }));
|
|
110
|
+
}), e.forEach((a) => {
|
|
111
|
+
n[a.name] && (a.children = n[a.name]);
|
|
112
|
+
}), e;
|
|
113
|
+
}), F = (o) => {
|
|
114
|
+
const e = f.value.indexOf(o);
|
|
115
|
+
e > -1 ? f.value.splice(e, 1) : f.value.push(o);
|
|
116
|
+
}, L = (o) => {
|
|
117
|
+
const { jumpParam: e } = o;
|
|
118
|
+
if (!e) {
|
|
119
|
+
T.warning("未设置跳转参数");
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
if (e.startsWith("http://") || e.startsWith("https://"))
|
|
123
|
+
window.open(e, "_self");
|
|
124
|
+
else {
|
|
125
|
+
const t = location.href, a = t.substring(0, t.indexOf("#") + 1);
|
|
126
|
+
window.open(`${a}/show/${e}`, "_self");
|
|
127
|
+
}
|
|
128
|
+
}, R = (o) => {
|
|
129
|
+
const { jumpParam: e } = o, n = c();
|
|
130
|
+
if (n.length <= 1) {
|
|
131
|
+
T.warning("当前只有一个页面");
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
let t;
|
|
135
|
+
!e || e === "" ? t = 0 : isNaN(Number(e)) ? t = n.findIndex((a) => a.name === e || a.id === e) : t = Number(e), t >= 0 && t < n.length ? r(t) : T.error("未找到目标页面");
|
|
136
|
+
}, w = (o, e) => {
|
|
137
|
+
if (v.value = o, h.mode === "edit") {
|
|
138
|
+
console.log("编辑模式 - 点击菜单:", e);
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
switch (e.actionType || "sheet") {
|
|
142
|
+
case "jump":
|
|
143
|
+
L(e);
|
|
144
|
+
break;
|
|
145
|
+
case "sheet":
|
|
146
|
+
R(e);
|
|
147
|
+
break;
|
|
148
|
+
default:
|
|
149
|
+
console.log("自定义动作:", e);
|
|
150
|
+
}
|
|
151
|
+
}, V = () => {
|
|
152
|
+
const o = U(), e = P.value;
|
|
153
|
+
for (let n = 0; n < e.length; n++) {
|
|
154
|
+
const t = e[n];
|
|
155
|
+
if (t.actionType === "sheet" && (t.jumpParam ? Number(t.jumpParam) : 0) === o) {
|
|
156
|
+
v.value = String(n);
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
if (t.children && t.children.length > 0)
|
|
160
|
+
for (let a = 0; a < t.children.length; a++) {
|
|
161
|
+
const d = t.children[a];
|
|
162
|
+
if (d.actionType === "sheet" && (d.jumpParam ? Number(d.jumpParam) : 0) === o) {
|
|
163
|
+
v.value = `${n}-${a}`, f.value.includes(n) || f.value.push(n);
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
return Y(() => {
|
|
170
|
+
V();
|
|
171
|
+
}), (o, e) => (m(), p("div", oe, [
|
|
172
|
+
u("div", re, [
|
|
173
|
+
e[0] || (e[0] = u("div", { class: "header-decoration" }, null, -1)),
|
|
174
|
+
u("span", le, y(s(l).title), 1)
|
|
175
|
+
]),
|
|
176
|
+
u("div", se, [
|
|
177
|
+
(m(!0), p(I, null, D(P.value, (n, t) => (m(), p(I, { key: t }, [
|
|
178
|
+
n.children && n.children.length > 0 ? (m(), p("div", ce, [
|
|
179
|
+
u("div", {
|
|
180
|
+
class: C(["menu-item parent-item", { expanded: f.value.includes(Number(t)) }]),
|
|
181
|
+
onClick: (a) => F(Number(t))
|
|
182
|
+
}, [
|
|
183
|
+
u("span", ie, y(n.name), 1),
|
|
184
|
+
(m(), p("svg", {
|
|
185
|
+
class: C(["expand-icon", { rotated: f.value.includes(Number(t)) }]),
|
|
186
|
+
viewBox: "0 0 24 24",
|
|
187
|
+
fill: "none",
|
|
188
|
+
stroke: "currentColor",
|
|
189
|
+
"stroke-width": "2"
|
|
190
|
+
}, [...e[1] || (e[1] = [
|
|
191
|
+
u("polyline", { points: "6 9 12 15 18 9" }, null, -1)
|
|
192
|
+
])], 2))
|
|
193
|
+
], 10, ue),
|
|
194
|
+
u("div", {
|
|
195
|
+
class: C(["sub-menu", { expanded: f.value.includes(Number(t)) }])
|
|
196
|
+
}, [
|
|
197
|
+
(m(!0), p(I, null, D(n.children, (a, d) => (m(), p("div", {
|
|
198
|
+
key: `${t}-${d}`,
|
|
199
|
+
class: C(["menu-item sub-item", { active: v.value === `${t}-${d}` }]),
|
|
200
|
+
onClick: (g) => w(`${t}-${d}`, a)
|
|
201
|
+
}, [
|
|
202
|
+
u("span", me, y(a.name), 1),
|
|
203
|
+
v.value === `${t}-${d}` ? (m(), p("div", pe)) : z("", !0)
|
|
204
|
+
], 10, de))), 128))
|
|
205
|
+
], 2)
|
|
206
|
+
])) : (m(), p("div", {
|
|
207
|
+
key: 1,
|
|
208
|
+
class: C(["menu-item", { active: v.value === String(t) }]),
|
|
209
|
+
onClick: (a) => w(String(t), n)
|
|
210
|
+
}, [
|
|
211
|
+
u("span", ve, y(n.name), 1),
|
|
212
|
+
v.value === String(t) ? (m(), p("div", he)) : z("", !0)
|
|
213
|
+
], 10, fe))
|
|
214
|
+
], 64))), 128))
|
|
215
|
+
]),
|
|
216
|
+
e[2] || (e[2] = u("div", { class: "menu-footer" }, [
|
|
217
|
+
u("div", { class: "footer-line" })
|
|
218
|
+
], -1)),
|
|
219
|
+
Z(o.$slots, "default", {}, void 0, !0)
|
|
220
|
+
]));
|
|
221
|
+
}
|
|
222
|
+
})), xe = /* @__PURE__ */ te(Ie, [["__scopeId", "data-v-f7a70b92"]]);
|
|
223
|
+
export {
|
|
224
|
+
xe as default
|
|
225
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var V=Object.defineProperty,O=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var I=(u,l,s)=>l in u?V(u,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[l]=s,h=(u,l)=>{for(var s in l||(l={}))A.call(l,s)&&I(u,s,l[s]);if(N)for(var s of N(l))z.call(l,s)&&I(u,s,l[s]);return u},g=(u,l)=>O(u,D(l));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("element-plus");require("html2canvas");const F=require("./element-resize-detector-Bo5uDQAu.cjs"),L=require("./index-Mh5Dw2sd.cjs"),T=require("./ele-lst-icon-CrxnHZ-A.cjs"),U={class:"side-menu-wrapper"},q={class:"menu-header"},R={class:"header-title"},G={class:"menu-list"},W={key:0,class:"menu-group"},J=["onClick"],K={class:"menu-text"},H=["onClick"],Q={class:"menu-text"},X={key:0,class:"active-indicator"},Y=["onClick"],Z={class:"menu-text"},ee={key:0,class:"active-indicator"},te={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"右侧菜单栏",NAME_EN:"Side Menu",ORDER:14},ne={title:{value:"功能菜单",type:"string",label:"component.sideMenu.title"},fontSize:{value:14,type:"number",label:"component.sideMenu.fontSize",min:12,max:24},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},borderColor:{value:"#1e90ff",type:"color",label:"component.sideMenu.borderColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},accentColor:{value:"#409eff",type:"color",label:"component.sideMenu.accentColor"},hoverColor:{value:"rgba(0, 212, 255, 0.15)",type:"color",label:"component.sideMenu.hoverColor"},activeColor:{value:"rgba(0, 212, 255, 0.25)",type:"color",label:"component.sideMenu.activeColor"},glowEffect:{value:!0,type:"checkbox",label:"component.sideMenu.glowEffect"}},oe=[{name:"数据总览",parentId:"",actionType:"sheet",jumpParam:"0"},{name:"实时监测",parentId:"",actionType:"sheet",jumpParam:"1"},{name:"预警管理",parentId:"",actionType:"",jumpParam:""},{name:"预警列表",parentId:"预警管理",actionType:"sheet",jumpParam:"2"},{name:"预警统计",parentId:"预警管理",actionType:"sheet",jumpParam:"3"},{name:"设备管理",parentId:"",actionType:"jump",jumpParam:""},{name:"系统设置",parentId:"",actionType:"jump",jumpParam:""}],ae=["name","parentId","actionType","jumpParam"],re=["mosaic"],le={useAlias:!1,multiObject:!1,source:"mosaic"},ce={DEFAULT:te,OPTIONS:ne,DATA:oe,PARAMS:ae,SOURCE:re,COMMON:le},se=e.defineComponent(g(h({},ce),{__name:"sideMenu",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(u){e.useCssVars(r=>({v1e90178e:e.unref(c).bgColor,v2360df32:e.unref(c).borderColor,v9b295d58:e.unref(c).accentColor,v49bfd988:e.unref(c).glowEffect?`0 0 8px ${e.unref(c).accentColor}`:"none",v3989f191:e.unref(c).textColor,ff103b0e:e.unref(c).glowEffect?`0 0 10px ${e.unref(c).accentColor}40`:"none",v990ef8e8:e.unref(c).hoverColor,v8fd6e6d0:e.unref(c).activeColor,v757ee6d8:e.unref(c).fontSize+"px",v60ff5d6c:e.unref(c).glowEffect?`0 0 6px ${e.unref(c).accentColor}`:"none"}));const l=e.inject("switchSheet",()=>{}),s=e.inject("getSheets",()=>[]),M=e.inject("getCurrentSheet",()=>0),p=u;class P extends F.BaseComponent{extractStyles(){var o,n,a,i,f,E,_,k,j,S;const{options:t}=this.props.conf;return{title:((o=t==null?void 0:t.title)==null?void 0:o.value)||"功能菜单",fontSize:((n=t==null?void 0:t.fontSize)==null?void 0:n.value)||14,bgColor:((a=t==null?void 0:t.bgColor)==null?void 0:a.value)||"#ffffff",borderColor:((i=t==null?void 0:t.borderColor)==null?void 0:i.value)||"#1e90ff",textColor:((f=t==null?void 0:t.textColor)==null?void 0:f.value)||"#333333",accentColor:((E=t==null?void 0:t.accentColor)==null?void 0:E.value)||"#409eff",hoverColor:((_=t==null?void 0:t.hoverColor)==null?void 0:_.value)||"rgba(0, 212, 255, 0.15)",activeColor:((k=t==null?void 0:t.activeColor)==null?void 0:k.value)||"rgba(0, 212, 255, 0.25)",glowEffect:(S=(j=t==null?void 0:t.glowEffect)==null?void 0:j.value)!=null?S:!0}}getDefaultData(){return[{name:"数据总览",parentId:"",actionType:"sheet",jumpParam:"0"},{name:"实时监测",parentId:"",actionType:"sheet",jumpParam:"1"},{name:"预警管理",parentId:"",actionType:"",jumpParam:""},{name:"预警列表",parentId:"预警管理",actionType:"sheet",jumpParam:"2"},{name:"预警统计",parentId:"预警管理",actionType:"sheet",jumpParam:"3"},{name:"设备管理",parentId:"",actionType:"jump",jumpParam:""},{name:"系统设置",parentId:"",actionType:"jump",jumpParam:""}]}}const v=new P(p,"sideMenu");(!p.conf.data||p.conf.data.length===0)&&(p.conf.data=v.getDefaultData()),v.setupLifecycle();const c=v.getStyle(),d=e.ref("0"),m=e.ref([]),y=e.computed(()=>{var n;const r=((n=p.conf)==null?void 0:n.data)||[],t=[],o={};return r.forEach(a=>{a.parentId?(o[a.parentId]||(o[a.parentId]=[]),o[a.parentId].push(a)):t.push(g(h({},a),{children:[]}))}),t.forEach(a=>{o[a.name]&&(a.children=o[a.name])}),t}),w=r=>{const t=m.value.indexOf(r);t>-1?m.value.splice(t,1):m.value.push(r)},B=r=>{const{jumpParam:t}=r;if(!t){C.ElMessage.warning("未设置跳转参数");return}if(t.startsWith("http://")||t.startsWith("https://"))window.open(t,"_self");else{const n=location.href,a=n.substring(0,n.indexOf("#")+1);window.open(`${a}/show/${t}`,"_self")}},x=r=>{const{jumpParam:t}=r,o=s();if(o.length<=1){C.ElMessage.warning("当前只有一个页面");return}let n;!t||t===""?n=0:isNaN(Number(t))?n=o.findIndex(a=>a.name===t||a.id===t):n=Number(t),n>=0&&n<o.length?l(n):C.ElMessage.error("未找到目标页面")},b=(r,t)=>{if(d.value=r,p.mode==="edit"){console.log("编辑模式 - 点击菜单:",t);return}switch(t.actionType||"sheet"){case"jump":B(t);break;case"sheet":x(t);break;default:console.log("自定义动作:",t)}},$=()=>{const r=M(),t=y.value;for(let o=0;o<t.length;o++){const n=t[o];if(n.actionType==="sheet"&&(n.jumpParam?Number(n.jumpParam):0)===r){d.value=String(o);return}if(n.children&&n.children.length>0)for(let a=0;a<n.children.length;a++){const i=n.children[a];if(i.actionType==="sheet"&&(i.jumpParam?Number(i.jumpParam):0)===r){d.value=`${o}-${a}`,m.value.includes(o)||m.value.push(o);return}}}};return e.onMounted(()=>{$()}),(r,t)=>(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("div",q,[t[0]||(t[0]=e.createElementVNode("div",{class:"header-decoration"},null,-1)),e.createElementVNode("span",R,e.toDisplayString(e.unref(c).title),1)]),e.createElementVNode("div",G,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(o,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:n},[o.children&&o.children.length>0?(e.openBlock(),e.createElementBlock("div",W,[e.createElementVNode("div",{class:e.normalizeClass(["menu-item parent-item",{expanded:m.value.includes(Number(n))}]),onClick:a=>w(Number(n))},[e.createElementVNode("span",K,e.toDisplayString(o.name),1),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["expand-icon",{rotated:m.value.includes(Number(n))}]),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[...t[1]||(t[1]=[e.createElementVNode("polyline",{points:"6 9 12 15 18 9"},null,-1)])],2))],10,J),e.createElementVNode("div",{class:e.normalizeClass(["sub-menu",{expanded:m.value.includes(Number(n))}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.children,(a,i)=>(e.openBlock(),e.createElementBlock("div",{key:`${n}-${i}`,class:e.normalizeClass(["menu-item sub-item",{active:d.value===`${n}-${i}`}]),onClick:f=>b(`${n}-${i}`,a)},[e.createElementVNode("span",Q,e.toDisplayString(a.name),1),d.value===`${n}-${i}`?(e.openBlock(),e.createElementBlock("div",X)):e.createCommentVNode("",!0)],10,H))),128))],2)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["menu-item",{active:d.value===String(n)}]),onClick:a=>b(String(n),o)},[e.createElementVNode("span",Z,e.toDisplayString(o.name),1),d.value===String(n)?(e.openBlock(),e.createElementBlock("div",ee)):e.createCommentVNode("",!0)],10,Y))],64))),128))]),t[2]||(t[2]=e.createElementVNode("div",{class:"menu-footer"},[e.createElementVNode("div",{class:"footer-line"})],-1)),e.renderSlot(r.$slots,"default",{},void 0,!0)]))}})),ue=L._export_sfc(se,[["__scopeId","data-v-f7a70b92"]]);exports.default=ue;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var P=Object.defineProperty,z=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var B=(u,l,f)=>l in u?P(u,l,{enumerable:!0,configurable:!0,writable:!0,value:f}):u[l]=f,w=(u,l)=>{for(var f in l||(l={}))U.call(l,f)&&B(u,f,l[f]);if(x)for(var f of x(l))q.call(l,f)&&B(u,f,l[f]);return u},O=(u,l)=>z(u,R(l));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const I=require("./element-resize-detector-Bo5uDQAu.cjs"),F=require("./index-Mh5Dw2sd.cjs"),W=require("./EChartComponentBase-BaQpBzVC.cjs");require("./index-mAPVa0s4.cjs");const T=require("./ele-bar-icon-V94clxg_.cjs"),H=require("./echarts-BB8O2KSA.cjs"),K={class:"slope-stability-wrapper"},Q={class:"panel-header"},G={class:"header-left"},J={class:"header-title"},X={class:"search-bar"},Y=["placeholder"],Z={class:"date-picker-row"},ee={class:"date-picker-item"},te={class:"date-picker-item"},le={class:"chart-area"},ae=["id"],oe={class:"action-buttons"},ne=["onClick"],re={class:"detail-title"},ce={class:"detail-modal-body"},se={class:"detail-summary"},ie={class:"detail-list"},de={class:"detail-list-body"},ue={key:0,class:"no-data"},fe={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"边坡稳定性分区",NAME_EN:"Slope Stability",ORDER:7},pe={title:{value:"边坡稳定性分区",type:"string",label:"component.slopeStability.title"},realtimeBtnText:{value:"实时更新",type:"string",label:"component.slopeStability.realtimeBtnText"},searchPlaceholder:{value:"搜索区域、编号...",type:"string",label:"component.slopeStability.searchPlaceholder"},bgColor:{value:"#1a2a3a",type:"color",label:"setting.bgColor"},borderColor:{value:"#2a4a6a",type:"color",label:"component.slopeStability.borderColor"},textColor:{value:"#ffffff",type:"color",label:"setting.textColor"},accentColor:{value:"#00d4ff",type:"color",label:"component.slopeStability.accentColor"},glowEffect:{value:!0,type:"checkbox",label:"component.slopeStability.glowEffect"},glowIntensity:{value:10,type:"number",label:"component.slopeStability.glowIntensity",min:0,max:30,step:1}},me=[{name:"稳定",fv:"stable_percent",object_id:"",value:62.5,color:"#2ecc71"},{name:"基本稳定",fv:"basic_stable_percent",object_id:"",value:28.3,color:"#f39c12"},{name:"欠稳定",fv:"unstable_percent",object_id:"",value:9.2,color:"#e74c3c"}],ve=["name","fv","object_id","color"],be=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],he={useAlias:!1,multiObject:!1,source:"mosaic"},ye={DEFAULT:fe,OPTIONS:pe,DATA:me,PARAMS:ve,SOURCE:be,COMMON:he},ge=e.defineComponent(O(w({},ye),{__name:"slopeStability",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(u){e.useCssVars(a=>({v2bb23b66:e.unref(c).bgColor,v3c59c7df:e.unref(c).borderColor,c1e1bd04:e.unref(c).textColor,v69378bfe:e.unref(c).accentColor,aa2438de:e.unref(c).glowEffect?`drop-shadow(0 0 ${e.unref(c).glowIntensity}px ${e.unref(c).accentColor})`:"none",v3439c444:e.unref(c).glowEffect?`0 0 ${e.unref(c).glowIntensity}px ${e.unref(c).accentColor}`:"none",v53d35d5a:e.unref(c).glowEffect?`0 0 ${e.unref(c).glowIntensity}px ${e.unref(c).accentColor}40`:"none"}));const l=u;class f extends W.EChartComponentBase{extractStyles(){var i,m,n,d,s,o,r,p,v,g,k;const{options:t}=this.props.conf;return{title:((i=t==null?void 0:t.title)==null?void 0:i.value)||"边坡稳定性分区",realtimeBtnText:((m=t==null?void 0:t.realtimeBtnText)==null?void 0:m.value)||"实时更新",searchPlaceholder:((n=t==null?void 0:t.searchPlaceholder)==null?void 0:n.value)||"搜索区域、编号...",bgColor:((d=t==null?void 0:t.bgColor)==null?void 0:d.value)||"#1a2a3a",borderColor:((s=t==null?void 0:t.borderColor)==null?void 0:s.value)||"#2a4a6a",textColor:((o=t==null?void 0:t.textColor)==null?void 0:o.value)||"#ffffff",accentColor:((r=t==null?void 0:t.accentColor)==null?void 0:r.value)||"#00d4ff",glowEffect:(v=(p=t==null?void 0:t.glowEffect)==null?void 0:p.value)!=null?v:!0,glowIntensity:(k=(g=t==null?void 0:t.glowIntensity)==null?void 0:g.value)!=null?k:10}}getDefaultData(){return[{name:"稳定",fv:"stable_percent",object_id:"",value:62.5,color:"#2ecc71"},{name:"基本稳定",fv:"basic_stable_percent",object_id:"",value:28.3,color:"#f39c12"},{name:"欠稳定",fv:"unstable_percent",object_id:"",value:9.2,color:"#e74c3c"}]}getChartOption(){var d;let t=(d=this.props.conf)==null?void 0:d.data;(!t||t.length===0)&&(t=this.getDefaultData());const i=t.map(s=>s.name),m=t.map(s=>{var o;return(o=s.value)!=null?o:0}),n=t.map(s=>s.color||"#4162ff");return{grid:{left:50,right:20,top:30,bottom:30},xAxis:{type:"category",data:i,axisLine:{lineStyle:{color:"#2a4a6a"}},axisLabel:{color:"#ffffff",fontSize:12}},yAxis:{type:"value",max:100,axisLine:{show:!1},splitLine:{lineStyle:{color:"#2a4a6a",type:"dashed"}},axisLabel:{color:"#ffffff",fontSize:12,formatter:"{value}%"}},series:[{type:"bar",data:m.map((s,o)=>({value:s,itemStyle:{color:n[o]}})),barWidth:"40%",label:{show:!0,position:"top",color:"#ffffff",fontSize:14,fontWeight:"bold",formatter:"{c}%"}}]}}setHistoryData(t){const{data:i,common:m}=this.props.conf,n=m.source||"mosaic";if(!i.some(o=>o.object_id&&o.fv))return;["statistics","calculate"].includes(n)&&(t=I.formatStatisticsResult(t,i));let s=I.handleNullData(t,this.props,"history");i.forEach((o,r)=>{var p,v;if(!(!o.object_id||!o.fv))try{const g=(v=(p=s.history[r])==null?void 0:p[0])==null?void 0:v[o.fv];g!=null&&(o.value=g)}catch(g){}}),this.updateChartData()}setSocketData(t){if(!t)return;const{data:i}=this.props.conf;i.some(n=>n.object_id&&n.fv)&&(i.forEach(n=>{if(!n.object_id||!n.fv)return;const d=this.extractDataValue(t,n.fv);d!=null&&(n.value=d)}),this.updateChartData())}updateChartData(){this.chartObj&&this.chartObj.setOption(this.getChartOption())}}const b=new f(l,"slopeStability");(!l.conf.data||l.conf.data.length===0)&&(l.conf.data=b.getDefaultData()),b.setupLifecycle();const c=b.getStyle(),S=b.getEchartId(),E=e.ref(""),_=e.ref(""),N=e.ref(""),h=e.ref(null),C=e.ref(!1),y=e.computed(()=>{var a,t;return h.value===null?null:((t=(a=l.conf)==null?void 0:a.data)==null?void 0:t[h.value])||null}),V=e.computed(()=>{if(h.value===null)return[];const t=h.value*2+1;return[{id:`BP-${String(t).padStart(3,"0")}`,time:"2025-12-16 10:30"},{id:`BP-${String(t+1).padStart(3,"0")}`,time:"2025-12-16 10:25"},{id:`BP-${String(t+10).padStart(3,"0")}`,time:"2025-12-16 10:20"}]}),j=a=>({background:`${a}30`,color:a,border:`1px solid ${a}`}),M=()=>console.log("实时更新"),A=()=>console.log("搜索:",E.value),$=()=>{E.value=""},L=a=>{h.value=a,C.value=!0},D=()=>{C.value=!1,h.value=null};return e.onMounted(()=>{e.nextTick(()=>{const a=document.getElementById(S);if(a){const t=H.init(a);t.setOption(b.getChartOption()),b.chartObj=t}})}),e.watch(()=>{var a;return(a=l.conf)==null?void 0:a.data},()=>{e.nextTick(()=>b.updateChartData())},{deep:!0}),(a,t)=>{var i,m,n,d,s,o;return e.openBlock(),e.createElementBlock("div",K,[e.createElementVNode("div",Q,[e.createElementVNode("div",G,[t[3]||(t[3]=e.createStaticVNode('<svg class="header-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-e666c117><path d="M3 3v18h18" data-v-e666c117></path><path d="M18 17V9" data-v-e666c117></path><path d="M13 17V5" data-v-e666c117></path><path d="M8 17v-3" data-v-e666c117></path></svg>',1)),e.createElementVNode("span",J,e.toDisplayString(e.unref(c).title),1)]),e.createElementVNode("button",{class:"realtime-btn",onClick:M},e.toDisplayString(e.unref(c).realtimeBtnText),1)]),e.createElementVNode("div",X,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=r=>E.value=r),type:"text",class:"search-input",placeholder:e.unref(c).searchPlaceholder},null,8,Y),[[e.vModelText,E.value]]),e.createElementVNode("button",{class:"search-btn",onClick:A},[...t[4]||(t[4]=[e.createElementVNode("span",null,"Q",-1)])]),e.createElementVNode("button",{class:"clear-btn",onClick:$},[...t[5]||(t[5]=[e.createElementVNode("span",null,"×",-1)])])]),e.createElementVNode("div",Z,[e.createElementVNode("div",ee,[t[6]||(t[6]=e.createElementVNode("label",null,"开始日期",-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=r=>_.value=r),type:"date",class:"date-input"},null,512),[[e.vModelText,_.value]])]),e.createElementVNode("div",te,[t[7]||(t[7]=e.createElementVNode("label",null,"结束日期",-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[2]||(t[2]=r=>N.value=r),type:"date",class:"date-input"},null,512),[[e.vModelText,N.value]])])]),e.createElementVNode("div",le,[t[8]||(t[8]=e.createElementVNode("div",{class:"chart-title"},"边坡稳定性分析",-1)),e.createElementVNode("div",{id:e.unref(S),class:"chart-container"},null,8,ae)]),e.createElementVNode("div",oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.conf.data,(r,p)=>(e.openBlock(),e.createElementBlock("button",{key:p,class:e.normalizeClass(["action-btn",{active:h.value===p}]),style:e.normalizeStyle(j(r.color)),onClick:v=>L(p)},e.toDisplayString(r.name),15,ne))),128))]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[C.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"detail-modal",onClick:e.withModifiers(D,["self"])},[e.createElementVNode("div",{class:"detail-modal-content",style:e.normalizeStyle({borderColor:(i=y.value)==null?void 0:i.color})},[e.createElementVNode("div",{class:"detail-modal-header",style:e.normalizeStyle({background:(m=y.value)==null?void 0:m.color})},[e.createElementVNode("span",re,e.toDisplayString((n=y.value)==null?void 0:n.name)+" - 详细数据",1),e.createElementVNode("button",{class:"detail-close-btn",onClick:D},"×")],4),e.createElementVNode("div",ce,[e.createElementVNode("div",se,[e.createElementVNode("div",{class:"summary-value",style:e.normalizeStyle({color:(d=y.value)==null?void 0:d.color})},e.toDisplayString((o=(s=y.value)==null?void 0:s.value)!=null?o:0)+"% ",5),t[9]||(t[9]=e.createElementVNode("div",{class:"summary-label"},"当前占比",-1))]),e.createElementVNode("div",ie,[t[10]||(t[10]=e.createElementVNode("div",{class:"detail-list-header"},[e.createElementVNode("span",null,"区域编号"),e.createElementVNode("span",null,"状态"),e.createElementVNode("span",null,"更新时间")],-1)),e.createElementVNode("div",de,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,r=>{var p,v;return e.openBlock(),e.createElementBlock("div",{key:r.id,class:"detail-list-item"},[e.createElementVNode("span",null,e.toDisplayString(r.id),1),e.createElementVNode("span",{class:"status-tag",style:e.normalizeStyle({background:(p=y.value)==null?void 0:p.color})},e.toDisplayString((v=y.value)==null?void 0:v.name),5),e.createElementVNode("span",null,e.toDisplayString(r.time),1)])}),128)),V.value.length===0?(e.openBlock(),e.createElementBlock("div",ue," 暂无数据 ")):e.createCommentVNode("",!0)])])])],4)])):e.createCommentVNode("",!0)])),e.renderSlot(a.$slots,"default",{},void 0,!0)])}}})),Ee=F._export_sfc(ge,[["__scopeId","data-v-e666c117"]]);exports.default=Ee;
|