mixdashboards 1.0.71 → 1.0.73
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/{BaseComponent-D5tlYehc.js → BaseComponent-CBagahPU.js} +138 -109
- package/dist/BaseComponent-Chnv4fBT.cjs +1 -0
- package/dist/{EChartComponentBase-CAabYXSj.js → EChartComponentBase-cFfawl6h.js} +2 -2
- package/dist/{EChartComponentBase-D4wMej9X.cjs → EChartComponentBase-dLE5F7Tt.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-Th4ZNdCb.js → EmergencyPlanPanel--jTGG89o.js} +1 -1
- package/dist/{EmergencyPlanPanel-D96XjhRq.cjs → EmergencyPlanPanel-BJb-Bbxh.cjs} +1 -1
- package/dist/{HistoryPlanDialog-rn2Bp0Gx.cjs → HistoryPlanDialog-C-QPdV4V.cjs} +1 -1
- package/dist/{HistoryPlanDialog-D2mQLhkO.js → HistoryPlanDialog-DerClU2U.js} +1 -1
- package/dist/{MonitoringMap-BZ98NYTJ.cjs → MonitoringMap-B6RMbiIS.cjs} +1 -1
- package/dist/{MonitoringMap-Coozb35G.js → MonitoringMap-CNaGsq83.js} +2 -2
- package/dist/UniverSheet-CM-vvc23.cjs +1 -0
- package/dist/{UniverSheet-CJCunVAM.js → UniverSheet-KI09RqKm.js} +16 -15
- package/dist/{accelerationChart-DacjcSHD.js → accelerationChart-D7KNk5fI.js} +61 -59
- package/dist/accelerationChart-HBCb2bRW.cjs +6 -0
- package/dist/{actionItem-d-4p5HZK.js → actionItem-BmNYzAXu.js} +48 -41
- package/dist/actionItem-Bx4mW0jP.cjs +1 -0
- package/dist/alarmLevelChart-Cvnw4z1w.cjs +2 -0
- package/dist/{alarmLevelChart-DddN1NVy.js → alarmLevelChart-DdSw2s7W.js} +91 -46
- package/dist/{alertTable-Q-Waa5jf.js → alertTable-CC3c8DFb.js} +40 -39
- package/dist/alertTable-hH6HA9pY.cjs +1 -0
- package/dist/aliasObjectSelectorDemo-C7E_fnCf.cjs +1 -0
- package/dist/{aliasObjectSelectorDemo-BZygQw9k.js → aliasObjectSelectorDemo-yDiavTpG.js} +11 -10
- package/dist/{annualRainfallChart-CthANCvn.js → annualRainfallChart-B9ar8vo8.js} +32 -30
- package/dist/annualRainfallChart-C6JLSPIf.cjs +1 -0
- package/dist/{aqi-C_HnKsjh.js → aqi-BNc5QCM3.js} +21 -19
- package/dist/{aqi-BFW_8xYd.cjs → aqi-DEiCVIVa.cjs} +3 -3
- package/dist/aqiIndass-Bowic_Pc.cjs +3 -0
- package/dist/{aqiIndass-NVRa3lmj.js → aqiIndass-CAGV8_Uf.js} +41 -40
- package/dist/{areaDeformCurve-mQiOHdtN.js → areaDeformCurve-CSpR060t.js} +51 -49
- package/dist/areaDeformCurve-CVy23kV2.cjs +1 -0
- package/dist/arrayCard-NqoQKcE9.cjs +1 -0
- package/dist/{arrayCard-DZitcjMs.js → arrayCard-PPDb7U6X.js} +29 -28
- package/dist/{audio-CDAMVEgC.js → audio-BJPFIQIr.js} +42 -41
- package/dist/audio-Bw-GaYe1.cjs +1 -0
- package/dist/{bar--JrlRud9.js → bar-C38h_mUA.js} +72 -70
- package/dist/{bar-C7uQADV1.cjs → bar-Cru6WosS.cjs} +2 -2
- package/dist/bmp-BXaEkkpa.cjs +1 -0
- package/dist/{bmp-DrVcnYxy.js → bmp-BnSOaFEr.js} +15 -14
- package/dist/box-CKuGsh2k.cjs +1 -0
- package/dist/{box-szcLhted.js → box-DIHVOqrV.js} +58 -57
- package/dist/chartConfigPanel-BVdVXbs6.cjs +1 -0
- package/dist/{chartConfigPanel-C32o1gyJ.js → chartConfigPanel-D1rO6SGh.js} +86 -79
- package/dist/{circleBar-CeL2rqMJ.cjs → circleBar-BzXqA-Cz.cjs} +3 -3
- package/dist/{circleBar-BmTjsLHo.js → circleBar-CBLcp4Xi.js} +27 -25
- package/dist/{clock-CuQpD76K.js → clock-4AMfFDGC.js} +35 -34
- package/dist/clock-DmWyBpo-.cjs +1 -0
- package/dist/clt-CmPPtp9c.cjs +1 -0
- package/dist/{clt-XCswxZ6i.js → clt-D5i_8-pq.js} +60 -59
- package/dist/cmc-8jH3DGv9.cjs +1 -0
- package/dist/{cmc-CXmAv6fz.js → cmc-Cjb5w3om.js} +23 -22
- package/dist/{cmp-Duz_v-LC.js → cmp-COJzlQPa.js} +19 -18
- package/dist/{cmp-DmpxjexT.cjs → cmp-CpmGtNal.cjs} +2 -2
- package/dist/{composite-CWgy-w61.js → composite-CsFgfxih.js} +37 -36
- package/dist/{composite-DdHASMFQ.cjs → composite-DLmzZNIj.cjs} +3 -3
- package/dist/{conclusionCard-BtB0rARK.js → conclusionCard-BQUlLFde.js} +15 -14
- package/dist/conclusionCard-C-TT6znN.cjs +1 -0
- package/dist/{controlList-C0AQ8Yb8.js → controlList-5D5UIDQL.js} +40 -38
- package/dist/controlList-CIwzKylK.cjs +1 -0
- package/dist/{controlRecordList-CSPKG1HU.js → controlRecordList-Cp5mmEQ1.js} +55 -53
- package/dist/controlRecordList-uEQ3ohmB.cjs +1 -0
- package/dist/controlRecordListAPP-B5d4x_xH.cjs +1 -0
- package/dist/controlRecordListAPP-p_skbQVD.js +502 -0
- package/dist/{crd-DQruf9o3.js → crd-8gRWMf2Y.js} +14 -13
- package/dist/crd-Dfl2XKAx.cjs +1 -0
- package/dist/{ctrBtn-jEWTt_f2.js → ctrBtn-BzmFxucy.js} +106 -107
- package/dist/ctrBtn-OOgL9esv.cjs +1 -0
- package/dist/{ctrSet-C4wCODMY.js → ctrSet-Btg2T9w6.js} +24 -23
- package/dist/ctrSet-CifyJt05.cjs +1 -0
- package/dist/ctrSwitch-6nMHbIE7.js +206 -0
- package/dist/ctrSwitch-C8mwxLPe.cjs +1 -0
- package/dist/{dataManagement-BQVZS7Hi.js → dataManagement-BZiSmktM.js} +52 -45
- package/dist/dataManagement-sQpuBaDz.cjs +1 -0
- package/dist/{dataReport-vP1LBJjE.js → dataReport-CbJzXeCE.js} +25 -24
- package/dist/{dataReport-DRopth3A.cjs → dataReport-D9Q9c43B.cjs} +2 -2
- package/dist/{dataTable-C2AgSR36.cjs → dataTable-BJ4SVFbu.cjs} +1 -1
- package/dist/{dataTable-B1FQ3XIq.js → dataTable-BuBB0b-A.js} +1 -1
- package/dist/datetime-B66VgJL1.cjs +1 -0
- package/dist/{datetime-DU3rzi1v.js → datetime-DO03QrXz.js} +25 -24
- package/dist/deepClusterSlipSurface-BqT55vkY.cjs +1 -0
- package/dist/{deepClusterSlipSurface-BHwB0eu9.js → deepClusterSlipSurface-DpSAXgFf.js} +45 -43
- package/dist/{deepDataMatrix-C3uKZmon.js → deepDataMatrix-CPrIOv5r.js} +46 -45
- package/dist/deepDataMatrix-DZZaTMbD.cjs +1 -0
- package/dist/{deepDisplacement3D-BBYgB-rK.cjs → deepDisplacement3D-Cd9nwwPt.cjs} +3 -3
- package/dist/{deepDisplacement3D-CDNPul6D.js → deepDisplacement3D-JlMej7-5.js} +9 -7
- package/dist/{deepDisplacementChart-C_pwwgIC.js → deepDisplacementChart-BiDt60xI.js} +89 -88
- package/dist/deepDisplacementChart-CALM3gna.cjs +5 -0
- package/dist/deepDisplacementChart-CEaj2bUV.cjs +6 -0
- package/dist/{deepDisplacementChart-C6GQHO-J.js → deepDisplacementChart-CjlGpeHj.js} +54 -52
- package/dist/{deepDisplacementView-C837RNer.js → deepDisplacementView-BpUw-b-i.js} +37 -36
- package/dist/deepDisplacementView-CoSNzN1q.cjs +8 -0
- package/dist/deepNodeTemperatureChart-DPN0rYir.cjs +1 -0
- package/dist/{deepNodeTemperatureChart-BcH3ZNi4.js → deepNodeTemperatureChart-DfZq7kLx.js} +50 -48
- package/dist/{deepTangentAngleChart-DSpCyIdq.js → deepTangentAngleChart-Ca01hah9.js} +92 -90
- package/dist/deepTangentAngleChart-Dg9PJspK.cjs +1 -0
- package/dist/deepTemperatureField-BqDB97SW.cjs +1 -0
- package/dist/{deepTemperatureField-B2qIHL1-.js → deepTemperatureField-CYBTjhEp.js} +95 -93
- package/dist/deepTrendChart-B5BAHTeY.cjs +1 -0
- package/dist/{deepTrendChart-DFGSV17a.js → deepTrendChart-DBjxV7_A.js} +56 -54
- package/dist/{deviceOnlineStatus-CiIFdo9I.js → deviceOnlineStatus-1eoHCl_-.js} +58 -50
- package/dist/deviceOnlineStatus-DHzaAzCp.cjs +2 -0
- package/dist/deviceStatus-4BMy4qBD.cjs +1 -0
- package/dist/{deviceStatus-Dd1pqVnO.js → deviceStatus-90rQa1uj.js} +61 -60
- package/dist/{displacementDataTable-CGIHGxye.js → displacementDataTable-BArwj-xp.js} +52 -51
- package/dist/displacementDataTable-BLWjiaRQ.cjs +1 -0
- package/dist/{displacementTrajectoryChart-RL97CTML.js → displacementTrajectoryChart-CxOPJVlD.js} +34 -32
- package/dist/displacementTrajectoryChart-DfJMOCFJ.cjs +22 -0
- package/dist/{displacementTrendChart-Bqnv7hiP.js → displacementTrendChart-4E6cDsX8.js} +49 -48
- package/dist/displacementTrendChart-Cuxa5iTp.cjs +5 -0
- package/dist/{dxf-BQoArgPS.cjs → dxf-BgklkksV.cjs} +1 -1
- package/dist/{dxf-DBu1iA-r.js → dxf-BogwbJID.js} +5 -4
- package/dist/{dzc-DMVPjosV.cjs → dzc-CApfzriC.cjs} +2 -2
- package/dist/{dzc-7tLxe18d.js → dzc-D7tTBLaA.js} +24 -22
- package/dist/emergencyPlan-BuFz4XFc.cjs +1 -0
- package/dist/{emergencyPlan-C9Edkw51.js → emergencyPlan-CjbuX-N5.js} +19 -18
- package/dist/evn-BcSenXF3.cjs +1 -0
- package/dist/{evn-CeLoYCUr.js → evn-DTPm72ZM.js} +23 -22
- package/dist/evolutionChart-CrwR8i40.cjs +1 -0
- package/dist/{evolutionChart-DAlncdLU.js → evolutionChart-D1dVKWOt.js} +25 -23
- package/dist/{fileViewer-BFMFEN2f.js → fileViewer-BNHwlZRa.js} +57 -56
- package/dist/fileViewer-BUuST3Rp.cjs +1 -0
- package/dist/filterBar-BJzjPFFg.cjs +1 -0
- package/dist/{filterBar-qJJKdxYE.js → filterBar-CRJinh5K.js} +44 -43
- package/dist/fireCombustionCurve-BGdJ1ybj.cjs +1 -0
- package/dist/{fireCombustionCurve-DyRikhHw.js → fireCombustionCurve-BZ6qJ1kq.js} +69 -67
- package/dist/fireFilterBar-DZejT0oL.cjs +1 -0
- package/dist/{fireFilterBar-DkjBGPXa.js → fireFilterBar-KvvbsCsZ.js} +25 -24
- package/dist/{fireHistoryTable-ldXil5up.js → fireHistoryTable-80ygqnOG.js} +73 -65
- package/dist/fireHistoryTable-CMSGKb3w.cjs +3 -0
- package/dist/gag-1bvAZ5m6.cjs +1 -0
- package/dist/{gag-KZfFHn72.js → gag-D2obj7AF.js} +30 -28
- package/dist/{gasStationList-Btoo_olJ.js → gasStationList-DM-laJsi.js} +527 -526
- package/dist/gasStationList-DjJtXnqL.cjs +1 -0
- package/dist/{geo3dViewer-Cif9uFqd.cjs → geo3dViewer-CL_89mQf.cjs} +1 -1
- package/dist/{geo3dViewer-iZhkCiTP.js → geo3dViewer-FhmMIvMJ.js} +12 -5
- package/dist/{glbModel-MJZgDSJf.js → glbModel-B0nWYYJQ.js} +19 -18
- package/dist/{glbModel-2xydaxDT.cjs → glbModel-DakMJal6.cjs} +3 -3
- package/dist/{globalObjectSelector-CHtYGpi9.js → globalObjectSelector-Gv4srHhp.js} +79 -78
- package/dist/globalObjectSelector-jNzZxdnL.cjs +1 -0
- package/dist/{gnssFilterBar-CPis6bUI.js → gnssFilterBar-C4rpyNw3.js} +70 -63
- package/dist/gnssFilterBar-kEIW7Tjs.cjs +1 -0
- package/dist/{gnssHistoryTable-kHZY48EZ.js → gnssHistoryTable-CyMwQJ7_.js} +58 -50
- package/dist/gnssHistoryTable-DRKlP8-b.cjs +3 -0
- package/dist/{gnssMapView-BNIkieqL.cjs → gnssMapView-DpExCi0x.cjs} +4 -4
- package/dist/{gnssMapView-DXP8yz0v.js → gnssMapView-EVufCGrW.js} +174 -167
- package/dist/{gnssSectionProfile-DEUDEvJ1.js → gnssSectionProfile-CaJwF9wp.js} +41 -34
- package/dist/gnssSectionProfile-DdcOMdNC.cjs +1 -0
- package/dist/{gnssTimeSeriesChart-C_xqd0su.js → gnssTimeSeriesChart-iffDvMNx.js} +57 -49
- package/dist/gnssTimeSeriesChart-y11Y8k2-.cjs +1 -0
- package/dist/{gnssXYTrajectory-GqgFw_qK.js → gnssXYTrajectory-C_1fuLWn.js} +53 -45
- package/dist/gnssXYTrajectory-DGBGGDwi.cjs +5 -0
- package/dist/grd-C4hCrpvH.cjs +1 -0
- package/dist/{grd-QCuVN1jE.js → grd-FfuMQJb7.js} +43 -42
- package/dist/{grdIndass-BEcfZTYw.js → grdIndass-BTbZmPLZ.js} +30 -29
- package/dist/grdIndass-CyuRKD5H.cjs +1 -0
- package/dist/{grg-CMVrF5tB.js → grg-CcnI5kRY.js} +27 -26
- package/dist/grg-Cuxa17d6.cjs +1 -0
- package/dist/gridview-CKjBuTRq.cjs +1 -0
- package/dist/{gridview-Cd3Tqzph.js → gridview-ffVc5Wvg.js} +32 -31
- package/dist/groundwaterFilterBar-D3l7GLVY.cjs +1 -0
- package/dist/{groundwaterFilterBar-D7lrbzDC.js → groundwaterFilterBar-DaPR-kbl.js} +13 -12
- package/dist/groundwaterProfileChart-BxJKIPXF.cjs +11 -0
- package/dist/{groundwaterProfileChart-Bjtqz-Zv.js → groundwaterProfileChart-DoSx7WWp.js} +42 -40
- package/dist/groundwaterTimeCurve-Bp5MxM9k.cjs +1 -0
- package/dist/{groundwaterTimeCurve-Bu6vgAaC.js → groundwaterTimeCurve-D-SdVYeq.js} +57 -55
- package/dist/{groupCard-CPvAsuPb.cjs → groupCard-BzUQ8xY0.cjs} +1 -1
- package/dist/{groupCard-DQvEe6cc.js → groupCard-COMEkzIb.js} +29 -28
- package/dist/headerBar-iFe0YQKE.cjs +1 -0
- package/dist/{headerBar-CGOtSvFn.js → headerBar-ouXO8bzC.js} +48 -47
- package/dist/{history-D6C3tSut.js → history-BZ869y2d.js} +18 -18
- package/dist/{history-9ToM-rJ6.cjs → history-MxYUUwkm.cjs} +1 -1
- package/dist/index-DVqMfQVc.cjs +612 -0
- package/dist/{index-Bdq33405.js → index-DwPJu6XM.js} +1159 -1128
- package/dist/{insarDeformChart-Ls-cdqaP.js → insarDeformChart-5BhCUq8L.js} +24 -17
- package/dist/insarDeformChart-Ca3AMsBk.cjs +1 -0
- package/dist/{insarImageViewer-Dnke9JDG.js → insarImageViewer-DHNxmLpa.js} +41 -34
- package/dist/insarImageViewer-DWPsoHz6.cjs +1 -0
- package/dist/{kds-B4BKGG0r.js → kds-BYZC4pIM.js} +57 -50
- package/dist/{kds-BjX5tXhF.cjs → kds-Dpf_3WWj.cjs} +2 -2
- package/dist/{kpiCard-C77vHJ_E.js → kpiCard-CStPtl-c.js} +5 -4
- package/dist/kpiCard-OLJgA48-.cjs +2 -0
- package/dist/{landslideMap-BEkbnCqP.js → landslideMap-BUq0x7rd.js} +34 -33
- package/dist/landslideMap-JTdoQjW-.cjs +1 -0
- package/dist/{landslideWarning-C5upI2cf.js → landslideWarning-VAn9XGUj.js} +55 -54
- package/dist/landslideWarning-ZA5LCsIr.cjs +1 -0
- package/dist/{layerTabs-DoGw1Jfv.js → layerTabs-CAJ6f-2W.js} +40 -38
- package/dist/layerTabs-CdhowHB1.cjs +1 -0
- package/dist/{leaflet-src-BUWIqhPn.cjs → leaflet-src-CxFQ_Cn7.cjs} +1 -1
- package/dist/{leaflet-src-DFE_g2gF.js → leaflet-src-DNO2-OsP.js} +1 -1
- package/dist/{lerc-CXc9KSRL.js → lerc-bF2jqjoV.js} +2 -2
- package/dist/{lerc-BBgQP785.cjs → lerc-qU4WKXeS.cjs} +1 -1
- package/dist/{lin-ClO2MqZl.cjs → lin-BHI2KgyW.cjs} +2 -2
- package/dist/{lin-Difz8N88.js → lin-DbQw7wZw.js} +20 -18
- package/dist/linIndass-CIrObeZT.cjs +2 -0
- package/dist/{linIndass-DqXVOBh3.js → linIndass-Cd9Hjzs_.js} +31 -30
- package/dist/lst-BRsEe-Hq.cjs +1 -0
- package/dist/{lst-4RMMZZkY.js → lst-C3C2m1v_.js} +40 -39
- package/dist/{manualEntry-B3_4Z-Lj.js → manualEntry-B8TDMcDg.js} +29 -22
- package/dist/manualEntry-C3_WtYz8.cjs +1 -0
- package/dist/{mapBackground-B3OHQsXZ.js → mapBackground-BrVIQUcT.js} +21 -20
- package/dist/{mapBackground-Bmt-oZt6.cjs → mapBackground-Du7R_ICY.cjs} +2 -2
- package/dist/{mappingList-DVj7H206.js → mappingList-BpJUawmv.js} +22 -20
- package/dist/mappingList-C5OZ8oUx.cjs +1 -0
- package/dist/{markdownViewer-fheM5uV4.js → markdownViewer-CoRrvdY7.js} +16 -15
- package/dist/{markdownViewer-BAuNEWRt.cjs → markdownViewer-D96bwxEt.cjs} +2 -2
- package/dist/materialFileUrl-CubtnHeq.js +108 -0
- package/dist/materialFileUrl-DfPNm265.cjs +1 -0
- package/dist/{mix-control-modal-BoYynGT2.cjs → mix-control-modal-DwxwW65v.cjs} +1 -1
- package/dist/{mix-control-modal-BBiKe4MM.js → mix-control-modal-Qg_mzyT_.js} +1 -1
- package/dist/{mixGrid-BUjP1qv2.js → mixGrid-CtJWul6c.js} +44 -43
- package/dist/mixGrid-Hj0OJjkg.cjs +1 -0
- package/dist/mixMap-CJzmC0IR.cjs +1 -0
- package/dist/{mixMap-DPIwyKuP.js → mixMap-E36SDnEa.js} +36 -35
- package/dist/mixModel-BMRxhvWn.cjs +3 -0
- package/dist/{mixModel-CIdQp4V9.js → mixModel-_McJ6OuH.js} +30 -29
- package/dist/{mixPie-C6OhdOCV.js → mixPie-CMOkAe9p.js} +31 -30
- package/dist/mixPie-MAKXeYVp.cjs +2 -0
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/mixiotObjectListApi-BaeBL318.js +82 -0
- package/dist/mixiotObjectListApi-D9OyHNQ3.cjs +1 -0
- package/dist/mjpegCamera-BY7pmbDc.cjs +1 -0
- package/dist/{mjpegCamera-Cd1vhZ5v.js → mjpegCamera-Dc4IsJA6.js} +12 -11
- package/dist/monitorAlert-DVNvJyTy.cjs +1 -0
- package/dist/{monitorAlert-DIJtH557.js → monitorAlert-F8QFOchR.js} +45 -44
- package/dist/monitorData-AkPbhJ9q.cjs +1 -0
- package/dist/{monitorData-B6jhpzVK.js → monitorData-BzqNIdrW.js} +61 -59
- package/dist/{monitorSpeedChart-DF5zvxs9.js → monitorSpeedChart-348U37LW.js} +22 -21
- package/dist/{monitorSpeedChart-EIcGs3NX.cjs → monitorSpeedChart-DVH1xihw.cjs} +2 -2
- package/dist/{mxa-COxjxwpC.js → mxa-CkJjCHA-.js} +29 -27
- package/dist/{mxa-BfwIV49n.cjs → mxa-DShU528J.cjs} +2 -2
- package/dist/myValue-BCeycpdO.cjs +1 -0
- package/dist/{myValue-Crba15Wc.js → myValue-CEfp19i2.js} +17 -16
- package/dist/myValueList-CAPOW8TK.cjs +1 -0
- package/dist/{myValueList-m2yaIcuf.js → myValueList-y3GR4AX2.js} +41 -40
- package/dist/objectList-4rYQk5uq.cjs +1 -0
- package/dist/{objectList-BwZJzrXs.js → objectList-D16yLbzD.js} +538 -599
- package/dist/objectListAPP-DCwTyqFp.js +1864 -0
- package/dist/objectListAPP-Db5beOAM.cjs +1 -0
- package/dist/photo-BV6rkbWO.js +811 -0
- package/dist/photo-D67wLRkY.cjs +1 -0
- package/dist/{pie-CSLVJv0Y.cjs → pie-BeRwVkTk.cjs} +2 -2
- package/dist/{pie-C9MU90ON.js → pie-bNKhq6ak.js} +16 -14
- package/dist/{placeholder-CRARTMF4.js → placeholder-_iK4rVyU.js} +26 -25
- package/dist/placeholder-zByzfWaH.cjs +1 -0
- package/dist/{pressBtn-CkYcW1a8.js → pressBtn-B-rZPXK2.js} +124 -124
- package/dist/pressBtn-BjqYIPC-.cjs +1 -0
- package/dist/processTable-ByPlSKRJ.cjs +3 -0
- package/dist/{processTable-BgAhGGAq.js → processTable-s_y8uups.js} +12 -11
- package/dist/{progressBar-BbDFps1r.cjs → progressBar-CRdA7oJT.cjs} +1 -1
- package/dist/{progressBar-CIPUVeaf.js → progressBar-DskxZk1P.js} +19 -18
- package/dist/{progressCircle-DDc5zsd6.js → progressCircle-BE_Am-AP.js} +13 -12
- package/dist/{progressCircle-CgkZ1EC1.cjs → progressCircle-CHe-12Hb.cjs} +1 -1
- package/dist/{qrcode-CQbWGVgq.cjs → qrcode-D8cFyUpL.cjs} +1 -1
- package/dist/{qrcode-CCu677Ad.js → qrcode-Dgth6KwU.js} +39 -38
- package/dist/{raceBar-CzNGSYCt.cjs → raceBar-CeybrpCB.cjs} +3 -3
- package/dist/{raceBar-Cn8oPhCE.js → raceBar-DV-3KFg2.js} +18 -16
- package/dist/rad-BerkC70H.cjs +1 -0
- package/dist/{rad-D_cLWeMk.js → rad-BhsfF0XI.js} +22 -20
- package/dist/{radarMapViewer-BaAXjsWx.js → radarMapViewer-C2dde8EN.js} +82 -81
- package/dist/radarMapViewer-HWzvBTzT.cjs +1 -0
- package/dist/{rainfallFilterBar-Bhpadat8.js → rainfallFilterBar-CiT1mvYh.js} +22 -21
- package/dist/rainfallFilterBar-kuAQO0M-.cjs +1 -0
- package/dist/rainfallTimeCurve-7uHaSkuE.cjs +1 -0
- package/dist/{rainfallTimeCurve-sDYapogL.js → rainfallTimeCurve-BlOnCq2M.js} +58 -56
- package/dist/rangeLin-BQeWFL_E.cjs +3 -0
- package/dist/{rangeLin-CdMOPwMP.js → rangeLin-BvKd8kEv.js} +32 -31
- package/dist/realtimeEvolutionMap-BUnD3JjE.cjs +1 -0
- package/dist/{realtimeEvolutionMap-CIH_sZ29.js → realtimeEvolutionMap-DZ6yniwl.js} +46 -44
- package/dist/regionBar-mMaN5NEc.cjs +3 -0
- package/dist/{regionBar-VB-2GpR0.js → regionBar-vp5D52Jd.js} +14 -13
- package/dist/{request-BHfDxLXZ.js → request-CMbwWTDF.js} +9 -9
- package/dist/{request-DU8pRyvu.cjs → request-DegEaaCG.cjs} +1 -1
- package/dist/retainer1-CF2Tr7Zt.cjs +1 -0
- package/dist/{retainer1-C_109Weq.js → retainer1-Xvdlh-B_.js} +17 -16
- package/dist/retainer2-BQVUhgcH.cjs +1 -0
- package/dist/{retainer2-BiHUTumr.js → retainer2-D3a-c_BA.js} +43 -42
- package/dist/{retainerRecordList-Cgil_g8a.js → retainerRecordList-BJbPsJ4D.js} +47 -45
- package/dist/retainerRecordList-Rqnoz6_6.cjs +1 -0
- package/dist/retainerRecordListAPP-B4IDQK3C.cjs +1 -0
- package/dist/retainerRecordListAPP-CNntGyA-.js +1068 -0
- package/dist/{ringTopN-C9AH-t3T.js → ringTopN-BFKlXqGX.js} +18 -16
- package/dist/ringTopN-CsouIsk1.cjs +1 -0
- package/dist/{riskRegionTable-Co1uxMzf.js → riskRegionTable-B6k4uM0_.js} +26 -19
- package/dist/riskRegionTable-DttMvHe5.cjs +1 -0
- package/dist/sankey-CAuBQaYh.cjs +1 -0
- package/dist/{sankey-Bag0ladh.js → sankey-DEQK7uU6.js} +17 -15
- package/dist/{scd-D9AiOiPg.js → scd-D5TicpCZ.js} +1282 -1062
- package/dist/scd-qaap6hGW.cjs +1 -0
- package/dist/{sideMenu-869HFB0p.js → sideMenu-ByyrOOYh.js} +28 -27
- package/dist/sideMenu-D-73DoYb.cjs +1 -0
- package/dist/{slopeStability-bZ0lHLjZ.js → slopeStability-BtgMH3oW.js} +44 -42
- package/dist/slopeStability-CTN6Kpva.cjs +1 -0
- package/dist/speedCurve-C5NoQCjK.cjs +1 -0
- package/dist/{speedCurve-DZ52XKCk.js → speedCurve-CInn7NAC.js} +43 -41
- package/dist/staticLine-BC-zj5yZ.cjs +1 -0
- package/dist/{staticLine-CyPnmKCh.js → staticLine-CLqN4lpU.js} +51 -50
- package/dist/stressFilterBar-Cpfbmllu.cjs +1 -0
- package/dist/{stressFilterBar-BAUt2bGy.js → stressFilterBar-D_QqOHna.js} +46 -45
- package/dist/{stressTimeCurve-IW4ArsyA.js → stressTimeCurve-1HXHUj-F.js} +64 -62
- package/dist/stressTimeCurve-Bp6Cevk1.cjs +1 -0
- package/dist/{swiper-BPS9C2GV.cjs → swiper-B8YZ2VQ2.cjs} +1 -1
- package/dist/{swiper-RM0GoZkW.js → swiper-D_y4Fj_D.js} +25 -24
- package/dist/terminalConfigList-B39cEptG.cjs +1 -0
- package/dist/{terminalConfigList-n7NE5NdJ.js → terminalConfigList-CHbA4y-S.js} +38 -36
- package/dist/terminalList-Vf-Dbybr.cjs +1 -0
- package/dist/{terminalList-Byb4eLcD.js → terminalList-oJFrGVtT.js} +38 -36
- package/dist/terminalListAPP-CdBG8krw.cjs +1 -0
- package/dist/terminalListAPP-DWArp2D4.js +1366 -0
- package/dist/{textbox-DM1AUWw8.js → textbox-D8nmoGjG.js} +13 -12
- package/dist/textbox-DPoyxB4u.cjs +1 -0
- package/dist/{timeQueryBar-Tbd9M8UT.js → timeQueryBar-DyC0iHq9.js} +21 -20
- package/dist/timeQueryBar-uUGotoTx.cjs +1 -0
- package/dist/{timeSeries-DCV2YjC2.cjs → timeSeries-BhlqgEOq.cjs} +2 -2
- package/dist/{timeSeries-CdpEx6bf.js → timeSeries-U91gMDDQ.js} +66 -64
- package/dist/timeSeriesCurve-CiRMnZRD.cjs +1 -0
- package/dist/{timeSeriesCurve-C1AmF6TP.js → timeSeriesCurve-DOhIS88N.js} +68 -66
- package/dist/{toggleBtn-BGjXjIuK.cjs → toggleBtn-CuWwHFjD.cjs} +1 -1
- package/dist/{toggleBtn-XS9MjfKM.js → toggleBtn-DE35dkxx.js} +46 -44
- package/dist/trajectoryConfigPanel-DAbF8oE9.cjs +1 -0
- package/dist/{trajectoryConfigPanel-BC90nD1T.js → trajectoryConfigPanel-Ye7NY6rd.js} +35 -34
- package/dist/{trajectoryScatter-DF_ESBn8.js → trajectoryScatter-DL7HUNJI.js} +47 -45
- package/dist/trajectoryScatter-Dg99HzM3.cjs +1 -0
- package/dist/universalConfigPanel-1svBCvD9.cjs +1 -0
- package/dist/{universalConfigPanel-DjNTwJkz.js → universalConfigPanel-CkyIDl_x.js} +50 -49
- package/dist/{universalTable-BY9vRraC.js → universalTable--dpnyNO2.js} +56 -54
- package/dist/universalTable-D8w7FQbl.cjs +2 -0
- package/dist/useMixiotPanelSurface-CAZgexY5.cjs +1 -0
- package/dist/useMixiotPanelSurface-DRl3cZvc.js +22 -0
- package/dist/useTableBodyHeight-CwrQvi7M.js +21 -0
- package/dist/useTableBodyHeight-pf87uGjw.cjs +1 -0
- package/dist/{video-DDvDGDql.js → video-BmMSRRa_.js} +5 -4
- package/dist/{video-8_Sf1uz0.cjs → video-RGIZoUn6.cjs} +2 -2
- package/dist/videoMonitor-Bo5T0MT_.cjs +1 -0
- package/dist/{videoMonitor-sce5N4Q5.js → videoMonitor-uf6tt2E6.js} +34 -33
- package/dist/{vlu-BKeYJtOO.js → vlu-D8l5zE_P.js} +24 -23
- package/dist/vlu-DEo_h1qN.cjs +1 -0
- package/dist/warningOverview-A5AA_vCc.cjs +1 -0
- package/dist/{warningOverview-CG5mwtaO.js → warningOverview-CA0PikjV.js} +31 -30
- package/dist/{weather-CWvAqxgX.cjs → weather-D20MGzuJ.cjs} +1 -1
- package/dist/{weather-BrX2a1an.js → weather-DuseqeNF.js} +19 -18
- package/dist/{windLin-BbbsSwuF.cjs → windLin-BU6Q87dE.cjs} +1 -1
- package/dist/{windLin-P4Gs2aBB.js → windLin-D8AUL_dV.js} +58 -57
- package/package.json +120 -120
- package/dist/BaseComponent-CNXUpPY1.cjs +0 -1
- package/dist/UniverSheet-CntkzcVZ.cjs +0 -1
- package/dist/accelerationChart-DLV-1mpA.cjs +0 -6
- package/dist/actionItem-CFxzHf4E.cjs +0 -1
- package/dist/alarmLevelChart-DCC6D1fH.cjs +0 -2
- package/dist/alertTable-BREZBeS5.cjs +0 -1
- package/dist/aliasObjectSelectorDemo-DunKWEkT.cjs +0 -1
- package/dist/annualRainfallChart-BJyoUBDn.cjs +0 -1
- package/dist/aqiIndass-B441j8CT.cjs +0 -3
- package/dist/areaDeformCurve-Dj405Jil.cjs +0 -1
- package/dist/arrayCard-B7zb1dFi.cjs +0 -1
- package/dist/audio-BfsYRWbm.cjs +0 -1
- package/dist/bmp-DIkLqzRN.cjs +0 -1
- package/dist/box-kXjrgG2u.cjs +0 -1
- package/dist/chartConfigPanel-DN4LMy8-.cjs +0 -1
- package/dist/clock-EbmFBRb-.cjs +0 -1
- package/dist/clt-C-9xGiKs.cjs +0 -1
- package/dist/cmc-CFa8Q3tu.cjs +0 -1
- package/dist/conclusionCard-Dlg5GWlE.cjs +0 -1
- package/dist/controlList-C1vhlonT.cjs +0 -1
- package/dist/controlRecordList-BhK7KtLR.cjs +0 -1
- package/dist/crd-CgxqxwKV.cjs +0 -1
- package/dist/ctrBtn-BSJ9c7Pt.cjs +0 -1
- package/dist/ctrSet-B9M4yI53.cjs +0 -1
- package/dist/ctrSwitch-C6dUn_qm.js +0 -206
- package/dist/ctrSwitch-ZvMCYKvG.cjs +0 -1
- package/dist/dataManagement-CNrEa_zB.cjs +0 -1
- package/dist/datetime-CAyDWKE8.cjs +0 -1
- package/dist/deepClusterSlipSurface-DzoyF6i1.cjs +0 -1
- package/dist/deepDataMatrix--AstWPiL.cjs +0 -1
- package/dist/deepDisplacementChart-BnT1ZdfR.cjs +0 -6
- package/dist/deepDisplacementChart-DOPij7KP.cjs +0 -5
- package/dist/deepDisplacementView-u1IPcbxN.cjs +0 -8
- package/dist/deepNodeTemperatureChart-CD3JbqkA.cjs +0 -1
- package/dist/deepTangentAngleChart-BCAauuDY.cjs +0 -1
- package/dist/deepTemperatureField-BxuKsrtc.cjs +0 -1
- package/dist/deepTrendChart-6L4cCHgh.cjs +0 -1
- package/dist/deviceOnlineStatus-WkwzGom4.cjs +0 -2
- package/dist/deviceStatus-BoIv8fbr.cjs +0 -1
- package/dist/displacementDataTable-BwcxrsuU.cjs +0 -1
- package/dist/displacementTrajectoryChart-BOPIBgi5.cjs +0 -22
- package/dist/displacementTrendChart-CI8i0oQY.cjs +0 -5
- package/dist/emergencyPlan-BRFhMubg.cjs +0 -1
- package/dist/evn-B05d7LtF.cjs +0 -1
- package/dist/evolutionChart-y2mkLVwU.cjs +0 -1
- package/dist/fileViewer-Dy2fdABW.cjs +0 -1
- package/dist/filterBar-CcrUdD-O.cjs +0 -1
- package/dist/fireCombustionCurve-B-6MZLul.cjs +0 -1
- package/dist/fireFilterBar-C9b_Ohvr.cjs +0 -1
- package/dist/fireHistoryTable-5sG5FDCD.cjs +0 -3
- package/dist/gag-CDX99Ta4.cjs +0 -1
- package/dist/gasStationList-Dl9qawf_.cjs +0 -1
- package/dist/globalObjectSelector-Bz2XhgxT.cjs +0 -1
- package/dist/gnssFilterBar-BT19n0j_.cjs +0 -1
- package/dist/gnssHistoryTable-CrS2qO6S.cjs +0 -3
- package/dist/gnssSectionProfile-_KbP1NXU.cjs +0 -1
- package/dist/gnssTimeSeriesChart-BgFoXAZv.cjs +0 -1
- package/dist/gnssXYTrajectory-C1N3RWzp.cjs +0 -5
- package/dist/grd-DtDoJOOa.cjs +0 -1
- package/dist/grdIndass-ci3JkvGZ.cjs +0 -1
- package/dist/grg-C2qVuXYE.cjs +0 -1
- package/dist/gridview-BLAlr5uj.cjs +0 -1
- package/dist/groundwaterFilterBar-1E1j67JT.cjs +0 -1
- package/dist/groundwaterProfileChart-CS9xelz8.cjs +0 -11
- package/dist/groundwaterTimeCurve-DYiDLgVY.cjs +0 -1
- package/dist/headerBar-OwCxpc4o.cjs +0 -1
- package/dist/index-D8dh_6Qd.cjs +0 -612
- package/dist/insarDeformChart-CSQ7fc2p.cjs +0 -1
- package/dist/insarImageViewer-DvaRS1zr.cjs +0 -1
- package/dist/kpiCard-oLpk5d4m.cjs +0 -2
- package/dist/landslideMap-CO8o7T8J.cjs +0 -1
- package/dist/landslideWarning-BZXa5qTB.cjs +0 -1
- package/dist/layerTabs-BxRAsklw.cjs +0 -1
- package/dist/linIndass-Bb7UA-zk.cjs +0 -2
- package/dist/lst-Dri1MTDI.cjs +0 -1
- package/dist/manualEntry-D74dgZv8.cjs +0 -1
- package/dist/mappingList-CBN7ArkQ.cjs +0 -1
- package/dist/mixGrid-DTj2pmFW.cjs +0 -1
- package/dist/mixMap-B4T4R6kA.cjs +0 -1
- package/dist/mixModel-BzilRtjf.cjs +0 -3
- package/dist/mixPie-DtQm-LGp.cjs +0 -2
- package/dist/mjpegCamera-Lu3UHJ83.cjs +0 -1
- package/dist/monitorAlert-Ctt2kCxQ.cjs +0 -1
- package/dist/monitorData-D_tMbx_Y.cjs +0 -1
- package/dist/myValue-FZPOucSS.cjs +0 -1
- package/dist/myValueList-XIDK3ove.cjs +0 -1
- package/dist/objectList-BtbxHtJj.cjs +0 -1
- package/dist/photo-BITvEhKG.cjs +0 -1
- package/dist/photo-CjulDHTM.js +0 -873
- package/dist/placeholder-3kajeeeb.cjs +0 -1
- package/dist/pressBtn-pUcQtd5n.cjs +0 -1
- package/dist/processTable-CDulvQlu.cjs +0 -3
- package/dist/rad-Dk4PrnyI.cjs +0 -1
- package/dist/radarMapViewer-TJIPACdT.cjs +0 -1
- package/dist/rainfallFilterBar-Myq0MBCf.cjs +0 -1
- package/dist/rainfallTimeCurve-BUI-RlnG.cjs +0 -1
- package/dist/rangeLin-DYCZ8wVc.cjs +0 -3
- package/dist/realtimeEvolutionMap-BwyQdAhL.cjs +0 -1
- package/dist/regionBar-DsxqfirI.cjs +0 -3
- package/dist/retainer1-CSqjvY4k.cjs +0 -1
- package/dist/retainer2-Bqlwvr53.cjs +0 -1
- package/dist/retainerRecordList-DWZ3WDiz.cjs +0 -1
- package/dist/ringTopN-Bp0er_zV.cjs +0 -1
- package/dist/riskRegionTable-B3bzMaR_.cjs +0 -1
- package/dist/sankey-B4BJ4xIo.cjs +0 -1
- package/dist/scd-Dgd3KDpk.cjs +0 -1
- package/dist/sideMenu-BQ5rrGBr.cjs +0 -1
- package/dist/slopeStability-D96aiykf.cjs +0 -1
- package/dist/speedCurve-5nWqVAzz.cjs +0 -1
- package/dist/staticLine-DUCg-0tI.cjs +0 -1
- package/dist/stressFilterBar-CorWdmpQ.cjs +0 -1
- package/dist/stressTimeCurve-Bci50Cwv.cjs +0 -1
- package/dist/terminalConfigList-O881ke5o.cjs +0 -1
- package/dist/terminalList-C9TB2cJH.cjs +0 -1
- package/dist/textbox-BMWnbPvz.cjs +0 -1
- package/dist/timeQueryBar-C6ZheMvD.cjs +0 -1
- package/dist/timeSeriesCurve-DRlr5n3U.cjs +0 -1
- package/dist/trajectoryConfigPanel-DJ6fOeb1.cjs +0 -1
- package/dist/trajectoryScatter-C7kfSkyS.cjs +0 -1
- package/dist/universalConfigPanel-PO1hdgjw.cjs +0 -1
- package/dist/universalTable-QAb6UKCq.cjs +0 -2
- package/dist/useMixiotPanelSurface-BMNrWBMF.cjs +0 -1
- package/dist/useMixiotPanelSurface-DlVkLttU.js +0 -40
- package/dist/videoMonitor-BKLD_aQs.cjs +0 -1
- package/dist/vlu-C0XLDKKk.cjs +0 -1
- package/dist/warningOverview--n7crFnZ.cjs +0 -1
|
@@ -1,26 +1,43 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
var ei = Object.defineProperty, ti = Object.defineProperties;
|
|
2
|
+
var ni = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var zn = Object.getOwnPropertySymbols;
|
|
4
|
+
var ri = Object.prototype.hasOwnProperty, ii = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Cn = (V, z, j) => z in V ? ei(V, z, { enumerable: !0, configurable: !0, writable: !0, value: j }) : V[z] = j, An = (V, z) => {
|
|
6
|
+
for (var j in z || (z = {}))
|
|
7
|
+
ri.call(z, j) && Cn(V, j, z[j]);
|
|
8
|
+
if (zn)
|
|
9
|
+
for (var j of zn(z))
|
|
10
|
+
ii.call(z, j) && Cn(V, j, z[j]);
|
|
11
|
+
return V;
|
|
12
|
+
}, Rn = (V, z) => ti(V, ni(z));
|
|
13
|
+
var Vt = (V, z, j) => new Promise((q, ne) => {
|
|
14
|
+
var F = (Q) => {
|
|
15
|
+
try {
|
|
16
|
+
R(j.next(Q));
|
|
17
|
+
} catch (re) {
|
|
18
|
+
ne(re);
|
|
19
|
+
}
|
|
20
|
+
}, de = (Q) => {
|
|
21
|
+
try {
|
|
22
|
+
R(j.throw(Q));
|
|
23
|
+
} catch (re) {
|
|
24
|
+
ne(re);
|
|
25
|
+
}
|
|
26
|
+
}, R = (Q) => Q.done ? q(Q.value) : Promise.resolve(Q.value).then(F, de);
|
|
27
|
+
R((j = j.apply(V, z)).next());
|
|
28
|
+
});
|
|
29
|
+
import { defineComponent as oi, ref as $t, watch as jn, computed as gt, onBeforeUnmount as ai, openBlock as se, createElementBlock as le, normalizeStyle as U, unref as Fe, createElementVNode as te, toDisplayString as ye, createCommentVNode as si, Fragment as Bt, renderList as Fn, normalizeClass as Je, createTextVNode as li, renderSlot as ci, nextTick as ui } from "vue";
|
|
30
|
+
import { B as pi } from "./BaseComponent-CBagahPU.js";
|
|
31
|
+
import { j as fi, r as di, _ as hi } from "./index-DwPJu6XM.js";
|
|
32
|
+
import { g as vi } from "./titleStyle-BT5GlpAb.js";
|
|
33
|
+
import { e as gi, b as mi } from "./materialFileUrl-CubtnHeq.js";
|
|
34
|
+
var Qe = { exports: {} }, yi = Qe.exports, Vn;
|
|
35
|
+
function bi() {
|
|
36
|
+
return Vn || (Vn = 1, (function(V, z) {
|
|
37
|
+
(function(j, q) {
|
|
38
|
+
V.exports = q();
|
|
39
|
+
})(yi, (function() {
|
|
40
|
+
function j(t, e) {
|
|
24
41
|
var n = Object.keys(t);
|
|
25
42
|
if (Object.getOwnPropertySymbols) {
|
|
26
43
|
var r = Object.getOwnPropertySymbols(t);
|
|
@@ -30,58 +47,58 @@ function fi() {
|
|
|
30
47
|
}
|
|
31
48
|
return n;
|
|
32
49
|
}
|
|
33
|
-
function
|
|
50
|
+
function q(t) {
|
|
34
51
|
for (var e = 1; e < arguments.length; e++) {
|
|
35
52
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
36
|
-
e % 2 ?
|
|
37
|
-
|
|
38
|
-
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
53
|
+
e % 2 ? j(Object(n), !0).forEach((function(r) {
|
|
54
|
+
Q(t, r, n[r]);
|
|
55
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : j(Object(n)).forEach((function(r) {
|
|
39
56
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
40
57
|
}));
|
|
41
58
|
}
|
|
42
59
|
return t;
|
|
43
60
|
}
|
|
44
|
-
function
|
|
45
|
-
return
|
|
61
|
+
function ne(t) {
|
|
62
|
+
return ne = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
46
63
|
return typeof e;
|
|
47
64
|
} : function(e) {
|
|
48
65
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
49
|
-
},
|
|
66
|
+
}, ne(t);
|
|
50
67
|
}
|
|
51
|
-
function
|
|
68
|
+
function F(t, e) {
|
|
52
69
|
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
53
70
|
}
|
|
54
|
-
function
|
|
71
|
+
function de(t, e) {
|
|
55
72
|
for (var n = 0; n < e.length; n++) {
|
|
56
73
|
var r = e[n];
|
|
57
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t,
|
|
74
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, Ve(r.key), r);
|
|
58
75
|
}
|
|
59
76
|
}
|
|
60
|
-
function
|
|
61
|
-
return e &&
|
|
77
|
+
function R(t, e, n) {
|
|
78
|
+
return e && de(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
62
79
|
}
|
|
63
|
-
function
|
|
64
|
-
return (e =
|
|
80
|
+
function Q(t, e, n) {
|
|
81
|
+
return (e = Ve(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
65
82
|
}
|
|
66
|
-
function
|
|
83
|
+
function re(t, e) {
|
|
67
84
|
if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
|
|
68
|
-
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e &&
|
|
85
|
+
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _e(t, e);
|
|
69
86
|
}
|
|
70
|
-
function
|
|
71
|
-
return
|
|
87
|
+
function ce(t) {
|
|
88
|
+
return ce = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
72
89
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
73
|
-
},
|
|
90
|
+
}, ce(t);
|
|
74
91
|
}
|
|
75
|
-
function
|
|
76
|
-
return
|
|
92
|
+
function _e(t, e) {
|
|
93
|
+
return _e = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
|
|
77
94
|
return n.__proto__ = r, n;
|
|
78
|
-
},
|
|
95
|
+
}, _e(t, e);
|
|
79
96
|
}
|
|
80
|
-
function
|
|
97
|
+
function Le(t) {
|
|
81
98
|
if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
82
99
|
return t;
|
|
83
100
|
}
|
|
84
|
-
function
|
|
101
|
+
function ke(t) {
|
|
85
102
|
var e = (function() {
|
|
86
103
|
if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
87
104
|
if (typeof Proxy == "function") return !0;
|
|
@@ -93,31 +110,31 @@ function fi() {
|
|
|
93
110
|
}
|
|
94
111
|
})();
|
|
95
112
|
return function() {
|
|
96
|
-
var n, r =
|
|
113
|
+
var n, r = ce(t);
|
|
97
114
|
if (e) {
|
|
98
|
-
var i =
|
|
115
|
+
var i = ce(this).constructor;
|
|
99
116
|
n = Reflect.construct(r, arguments, i);
|
|
100
117
|
} else n = r.apply(this, arguments);
|
|
101
118
|
return (function(o, a) {
|
|
102
119
|
if (a && (typeof a == "object" || typeof a == "function")) return a;
|
|
103
120
|
if (a !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
104
|
-
return
|
|
121
|
+
return Le(o);
|
|
105
122
|
})(this, n);
|
|
106
123
|
};
|
|
107
124
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
125
|
+
function ze() {
|
|
126
|
+
return ze = typeof Reflect != "undefined" && Reflect.get ? Reflect.get.bind() : function(t, e, n) {
|
|
110
127
|
var r = (function(o, a) {
|
|
111
|
-
for (; !Object.prototype.hasOwnProperty.call(o, a) && (o =
|
|
128
|
+
for (; !Object.prototype.hasOwnProperty.call(o, a) && (o = ce(o)) !== null; ) ;
|
|
112
129
|
return o;
|
|
113
130
|
})(t, e);
|
|
114
131
|
if (r) {
|
|
115
132
|
var i = Object.getOwnPropertyDescriptor(r, e);
|
|
116
133
|
return i.get ? i.get.call(arguments.length < 3 ? t : n) : i.value;
|
|
117
134
|
}
|
|
118
|
-
},
|
|
135
|
+
}, ze.apply(this, arguments);
|
|
119
136
|
}
|
|
120
|
-
function
|
|
137
|
+
function Ve(t) {
|
|
121
138
|
var e = (function(n, r) {
|
|
122
139
|
if (typeof n != "object" || n === null) return n;
|
|
123
140
|
var i = n[Symbol.toPrimitive];
|
|
@@ -130,49 +147,49 @@ function fi() {
|
|
|
130
147
|
})(t, "string");
|
|
131
148
|
return typeof e == "symbol" ? e : e + "";
|
|
132
149
|
}
|
|
133
|
-
var
|
|
150
|
+
var ue = function(t) {
|
|
134
151
|
return !(!t || !t.Window) && t instanceof t.Window;
|
|
135
|
-
},
|
|
136
|
-
function
|
|
137
|
-
|
|
152
|
+
}, Ce = void 0, pe = void 0;
|
|
153
|
+
function H(t) {
|
|
154
|
+
Ce = t;
|
|
138
155
|
var e = t.document.createTextNode("");
|
|
139
|
-
e.ownerDocument !== t.document && typeof t.wrap == "function" && t.wrap(e) === e && (t = t.wrap(t)),
|
|
156
|
+
e.ownerDocument !== t.document && typeof t.wrap == "function" && t.wrap(e) === e && (t = t.wrap(t)), pe = t;
|
|
140
157
|
}
|
|
141
|
-
function
|
|
142
|
-
return
|
|
158
|
+
function X(t) {
|
|
159
|
+
return ue(t) ? t : (t.ownerDocument || t).defaultView || pe.window;
|
|
143
160
|
}
|
|
144
|
-
typeof window != "undefined" && window &&
|
|
145
|
-
var
|
|
146
|
-
return !!t &&
|
|
147
|
-
},
|
|
161
|
+
typeof window != "undefined" && window && H(window);
|
|
162
|
+
var fe = function(t) {
|
|
163
|
+
return !!t && ne(t) === "object";
|
|
164
|
+
}, oe = function(t) {
|
|
148
165
|
return typeof t == "function";
|
|
149
166
|
}, d = { window: function(t) {
|
|
150
|
-
return t ===
|
|
167
|
+
return t === pe || ue(t);
|
|
151
168
|
}, docFrag: function(t) {
|
|
152
|
-
return
|
|
153
|
-
}, object:
|
|
169
|
+
return fe(t) && t.nodeType === 11;
|
|
170
|
+
}, object: fe, func: oe, number: function(t) {
|
|
154
171
|
return typeof t == "number";
|
|
155
172
|
}, bool: function(t) {
|
|
156
173
|
return typeof t == "boolean";
|
|
157
174
|
}, string: function(t) {
|
|
158
175
|
return typeof t == "string";
|
|
159
176
|
}, element: function(t) {
|
|
160
|
-
if (!t ||
|
|
161
|
-
var e =
|
|
162
|
-
return /object|function/.test(typeof Element == "undefined" ? "undefined" :
|
|
177
|
+
if (!t || ne(t) !== "object") return !1;
|
|
178
|
+
var e = X(t) || pe;
|
|
179
|
+
return /object|function/.test(typeof Element == "undefined" ? "undefined" : ne(Element)) ? t instanceof Element || t instanceof e.Element : t.nodeType === 1 && typeof t.nodeName == "string";
|
|
163
180
|
}, plainObject: function(t) {
|
|
164
|
-
return
|
|
181
|
+
return fe(t) && !!t.constructor && /function Object\b/.test(t.constructor.toString());
|
|
165
182
|
}, array: function(t) {
|
|
166
|
-
return
|
|
183
|
+
return fe(t) && t.length !== void 0 && oe(t.splice);
|
|
167
184
|
} };
|
|
168
|
-
function
|
|
185
|
+
function $e(t) {
|
|
169
186
|
var e = t.interaction;
|
|
170
187
|
if (e.prepared.name === "drag") {
|
|
171
188
|
var n = e.prepared.axis;
|
|
172
189
|
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);
|
|
173
190
|
}
|
|
174
191
|
}
|
|
175
|
-
function
|
|
192
|
+
function et(t) {
|
|
176
193
|
var e = t.iEvent, n = t.interaction;
|
|
177
194
|
if (n.prepared.name === "drag") {
|
|
178
195
|
var r = n.prepared.axis;
|
|
@@ -182,29 +199,29 @@ function fi() {
|
|
|
182
199
|
}
|
|
183
200
|
}
|
|
184
201
|
}
|
|
185
|
-
var
|
|
202
|
+
var Ae = { id: "actions/drag", install: function(t) {
|
|
186
203
|
var e = t.actions, n = t.Interactable, r = t.defaults;
|
|
187
|
-
n.prototype.draggable =
|
|
188
|
-
}, listeners: { "interactions:before-action-move":
|
|
204
|
+
n.prototype.draggable = Ae.draggable, e.map.drag = Ae, e.methodDict.drag = "draggable", r.actions.drag = Ae.defaults;
|
|
205
|
+
}, listeners: { "interactions:before-action-move": $e, "interactions:action-resume": $e, "interactions:action-move": et, "auto-start:check": function(t) {
|
|
189
206
|
var e = t.interaction, n = t.interactable, r = t.buttons, i = n.options.drag;
|
|
190
207
|
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;
|
|
191
208
|
} }, draggable: function(t) {
|
|
192
209
|
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;
|
|
193
|
-
}, beforeMove:
|
|
210
|
+
}, beforeMove: $e, move: et, defaults: { startAxis: "xy", lockAxis: "xy" }, getCursor: function() {
|
|
194
211
|
return "move";
|
|
195
212
|
}, filterEventType: function(t) {
|
|
196
213
|
return t.search("drag") === 0;
|
|
197
|
-
} },
|
|
214
|
+
} }, tt = Ae, Z = { init: function(t) {
|
|
198
215
|
var e = t;
|
|
199
|
-
|
|
216
|
+
Z.document = e.document, Z.DocumentFragment = e.DocumentFragment || be, Z.SVGElement = e.SVGElement || be, Z.SVGSVGElement = e.SVGSVGElement || be, Z.SVGElementInstance = e.SVGElementInstance || be, Z.Element = e.Element || be, Z.HTMLElement = e.HTMLElement || Z.Element, Z.Event = e.Event, Z.Touch = e.Touch || be, Z.PointerEvent = e.PointerEvent || e.MSPointerEvent;
|
|
200
217
|
}, document: null, DocumentFragment: null, SVGElement: null, SVGSVGElement: null, SVGElementInstance: null, Element: null, HTMLElement: null, Event: null, Touch: null, PointerEvent: null };
|
|
201
|
-
function
|
|
218
|
+
function be() {
|
|
202
219
|
}
|
|
203
|
-
var
|
|
204
|
-
var e =
|
|
205
|
-
|
|
206
|
-
}, supportsTouch: null, supportsPointerEvent: null, isIOS7: null, isIOS: null, isIe9: null, isOperaMobile: null, prefixedMatchesSelector: null, pEventTypes: null, wheelEvent: null },
|
|
207
|
-
function
|
|
220
|
+
var $ = Z, K = { init: function(t) {
|
|
221
|
+
var e = $.Element, n = t.navigator || {};
|
|
222
|
+
K.supportsTouch = "ontouchstart" in t || d.func(t.DocumentTouch) && $.document instanceof t.DocumentTouch, K.supportsPointerEvent = n.pointerEnabled !== !1 && !!$.PointerEvent, K.isIOS = /iP(hone|od|ad)/.test(n.platform), K.isIOS7 = /iP(hone|od|ad)/.test(n.platform) && /OS 7[^\d]/.test(n.appVersion), K.isIe9 = /MSIE 9/.test(n.userAgent), K.isOperaMobile = n.appName === "Opera" && K.supportsTouch && /Presto/.test(n.userAgent), K.prefixedMatchesSelector = "matches" in e.prototype ? "matches" : "webkitMatchesSelector" in e.prototype ? "webkitMatchesSelector" : "mozMatchesSelector" in e.prototype ? "mozMatchesSelector" : "oMatchesSelector" in e.prototype ? "oMatchesSelector" : "msMatchesSelector", K.pEventTypes = K.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, K.wheelEvent = $.document && "onmousewheel" in $.document ? "mousewheel" : "wheel";
|
|
223
|
+
}, supportsTouch: null, supportsPointerEvent: null, isIOS7: null, isIOS: null, isIe9: null, isOperaMobile: null, prefixedMatchesSelector: null, pEventTypes: null, wheelEvent: null }, J = K;
|
|
224
|
+
function he(t, e) {
|
|
208
225
|
if (t.contains) return t.contains(e);
|
|
209
226
|
for (; e; ) {
|
|
210
227
|
if (e === t) return !0;
|
|
@@ -212,14 +229,14 @@ function fi() {
|
|
|
212
229
|
}
|
|
213
230
|
return !1;
|
|
214
231
|
}
|
|
215
|
-
function
|
|
232
|
+
function Te(t, e) {
|
|
216
233
|
for (; d.element(t); ) {
|
|
217
|
-
if (
|
|
218
|
-
t =
|
|
234
|
+
if (y(t, e)) return t;
|
|
235
|
+
t = g(t);
|
|
219
236
|
}
|
|
220
237
|
return null;
|
|
221
238
|
}
|
|
222
|
-
function
|
|
239
|
+
function g(t) {
|
|
223
240
|
var e = t.parentNode;
|
|
224
241
|
if (d.docFrag(e)) {
|
|
225
242
|
for (; (e = e.host) && d.docFrag(e); ) ;
|
|
@@ -227,97 +244,97 @@ function fi() {
|
|
|
227
244
|
}
|
|
228
245
|
return e;
|
|
229
246
|
}
|
|
230
|
-
function
|
|
231
|
-
return
|
|
247
|
+
function y(t, e) {
|
|
248
|
+
return pe !== Ce && (e = e.replace(/\/deep\//g, " ")), t[J.prefixedMatchesSelector](e);
|
|
232
249
|
}
|
|
233
|
-
var
|
|
250
|
+
var E = function(t) {
|
|
234
251
|
return t.parentNode || t.host;
|
|
235
252
|
};
|
|
236
|
-
function
|
|
237
|
-
for (var n, r = [], i = t; (n =
|
|
253
|
+
function L(t, e) {
|
|
254
|
+
for (var n, r = [], i = t; (n = E(i)) && i !== e && n !== i.ownerDocument; ) r.unshift(i), i = n;
|
|
238
255
|
return r;
|
|
239
256
|
}
|
|
240
|
-
function
|
|
257
|
+
function D(t, e, n) {
|
|
241
258
|
for (; d.element(t); ) {
|
|
242
|
-
if (
|
|
243
|
-
if ((t =
|
|
259
|
+
if (y(t, e)) return !0;
|
|
260
|
+
if ((t = g(t)) === n) return y(t, e);
|
|
244
261
|
}
|
|
245
262
|
return !1;
|
|
246
263
|
}
|
|
247
|
-
function
|
|
264
|
+
function C(t) {
|
|
248
265
|
return t.correspondingUseElement || t;
|
|
249
266
|
}
|
|
250
|
-
function
|
|
251
|
-
var e = t instanceof
|
|
267
|
+
function O(t) {
|
|
268
|
+
var e = t instanceof $.SVGElement ? t.getBoundingClientRect() : t.getClientRects()[0];
|
|
252
269
|
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 };
|
|
253
270
|
}
|
|
254
|
-
function
|
|
255
|
-
var e, n =
|
|
256
|
-
if (!
|
|
257
|
-
var r = { x: (e = (e =
|
|
271
|
+
function B(t) {
|
|
272
|
+
var e, n = O(t);
|
|
273
|
+
if (!J.isIOS7 && n) {
|
|
274
|
+
var r = { x: (e = (e = X(t)) || pe).scrollX || e.document.documentElement.scrollLeft, y: e.scrollY || e.document.documentElement.scrollTop };
|
|
258
275
|
n.left += r.x, n.right += r.x, n.top += r.y, n.bottom += r.y;
|
|
259
276
|
}
|
|
260
277
|
return n;
|
|
261
278
|
}
|
|
262
|
-
function
|
|
263
|
-
for (var e = []; t; ) e.push(t), t =
|
|
279
|
+
function W(t) {
|
|
280
|
+
for (var e = []; t; ) e.push(t), t = g(t);
|
|
264
281
|
return e;
|
|
265
282
|
}
|
|
266
|
-
function
|
|
267
|
-
return !!d.string(t) && (
|
|
283
|
+
function ie(t) {
|
|
284
|
+
return !!d.string(t) && ($.document.querySelector(t), !0);
|
|
268
285
|
}
|
|
269
|
-
function
|
|
286
|
+
function S(t, e) {
|
|
270
287
|
for (var n in e) t[n] = e[n];
|
|
271
288
|
return t;
|
|
272
289
|
}
|
|
273
|
-
function
|
|
274
|
-
return t === "parent" ?
|
|
290
|
+
function x(t, e, n) {
|
|
291
|
+
return t === "parent" ? g(n) : t === "self" ? e.getRect(n) : Te(n, t);
|
|
275
292
|
}
|
|
276
|
-
function
|
|
293
|
+
function N(t, e, n, r) {
|
|
277
294
|
var i = t;
|
|
278
|
-
return d.string(i) ? i =
|
|
295
|
+
return d.string(i) ? i = x(i, e, n) : d.func(i) && (i = i.apply(void 0, r)), d.element(i) && (i = B(i)), i;
|
|
279
296
|
}
|
|
280
|
-
function
|
|
297
|
+
function Oe(t) {
|
|
281
298
|
return t && { x: "x" in t ? t.x : t.left, y: "y" in t ? t.y : t.top };
|
|
282
299
|
}
|
|
283
|
-
function
|
|
284
|
-
return !t || "x" in t && "y" in t || ((t =
|
|
300
|
+
function nt(t) {
|
|
301
|
+
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;
|
|
285
302
|
}
|
|
286
|
-
function
|
|
303
|
+
function Pe(t, e, n) {
|
|
287
304
|
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;
|
|
288
305
|
}
|
|
289
|
-
function
|
|
306
|
+
function Be(t, e, n) {
|
|
290
307
|
var r = n && t.options[n];
|
|
291
|
-
return
|
|
308
|
+
return Oe(N(r && r.origin || t.options.origin, t, e, [t && e])) || { x: 0, y: 0 };
|
|
292
309
|
}
|
|
293
|
-
function
|
|
294
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function(
|
|
310
|
+
function Ie(t, e) {
|
|
311
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function(l) {
|
|
295
312
|
return !0;
|
|
296
313
|
}, r = arguments.length > 3 ? arguments[3] : void 0;
|
|
297
|
-
if (r = r || {}, d.string(t) && t.search(" ") !== -1 && (t =
|
|
298
|
-
return
|
|
314
|
+
if (r = r || {}, d.string(t) && t.search(" ") !== -1 && (t = Ut(t)), d.array(t)) return t.forEach((function(l) {
|
|
315
|
+
return Ie(l, e, n, r);
|
|
299
316
|
})), r;
|
|
300
317
|
if (d.object(t) && (e = t, t = ""), d.func(e) && n(t)) r[t] = r[t] || [], r[t].push(e);
|
|
301
318
|
else if (d.array(e)) for (var i = 0, o = e; i < o.length; i++) {
|
|
302
319
|
var a = o[i];
|
|
303
|
-
|
|
320
|
+
Ie(t, a, n, r);
|
|
304
321
|
}
|
|
305
322
|
else if (d.object(e)) for (var s in e)
|
|
306
|
-
|
|
307
|
-
return "".concat(t).concat(
|
|
323
|
+
Ie(Ut(s).map((function(l) {
|
|
324
|
+
return "".concat(t).concat(l);
|
|
308
325
|
})), e[s], n, r);
|
|
309
326
|
return r;
|
|
310
327
|
}
|
|
311
|
-
function
|
|
328
|
+
function Ut(t) {
|
|
312
329
|
return t.trim().split(/ +/);
|
|
313
330
|
}
|
|
314
|
-
var
|
|
331
|
+
var Ue = function(t, e) {
|
|
315
332
|
return Math.sqrt(t * t + e * e);
|
|
316
|
-
},
|
|
317
|
-
function
|
|
333
|
+
}, Bn = ["webkit", "moz"];
|
|
334
|
+
function rt(t, e) {
|
|
318
335
|
t.__set || (t.__set = {});
|
|
319
336
|
var n = function(i) {
|
|
320
|
-
if (
|
|
337
|
+
if (Bn.some((function(o) {
|
|
321
338
|
return i.indexOf(o) === 0;
|
|
322
339
|
}))) return 1;
|
|
323
340
|
typeof t[i] != "function" && i !== "__set" && Object.defineProperty(t, i, { get: function() {
|
|
@@ -329,35 +346,35 @@ function fi() {
|
|
|
329
346
|
for (var r in e) n(r);
|
|
330
347
|
return t;
|
|
331
348
|
}
|
|
332
|
-
function
|
|
349
|
+
function it(t, e) {
|
|
333
350
|
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;
|
|
334
351
|
}
|
|
335
|
-
function
|
|
352
|
+
function Nt(t) {
|
|
336
353
|
t.page.x = 0, t.page.y = 0, t.client.x = 0, t.client.y = 0;
|
|
337
354
|
}
|
|
338
|
-
function
|
|
339
|
-
return t instanceof
|
|
355
|
+
function Wt(t) {
|
|
356
|
+
return t instanceof $.Event || t instanceof $.Touch;
|
|
340
357
|
}
|
|
341
|
-
function
|
|
358
|
+
function ot(t, e, n) {
|
|
342
359
|
return t = t || "page", (n = n || {}).x = e[t + "X"], n.y = e[t + "Y"], n;
|
|
343
360
|
}
|
|
344
|
-
function
|
|
345
|
-
return e = e || { x: 0, y: 0 },
|
|
361
|
+
function qt(t, e) {
|
|
362
|
+
return e = e || { x: 0, y: 0 }, J.isOperaMobile && Wt(t) ? (ot("screen", t, e), e.x += window.scrollX, e.y += window.scrollY) : ot("page", t, e), e;
|
|
346
363
|
}
|
|
347
|
-
function
|
|
364
|
+
function Ne(t) {
|
|
348
365
|
return d.number(t.pointerId) ? t.pointerId : t.identifier;
|
|
349
366
|
}
|
|
350
|
-
function
|
|
351
|
-
var r = e.length > 1 ?
|
|
352
|
-
|
|
353
|
-
o = o || {},
|
|
367
|
+
function Un(t, e, n) {
|
|
368
|
+
var r = e.length > 1 ? Xt(e) : e[0];
|
|
369
|
+
qt(r, t.page), (function(i, o) {
|
|
370
|
+
o = o || {}, J.isOperaMobile && Wt(i) ? ot("screen", i, o) : ot("client", i, o);
|
|
354
371
|
})(r, t.client), t.timeStamp = n;
|
|
355
372
|
}
|
|
356
|
-
function
|
|
373
|
+
function mt(t) {
|
|
357
374
|
var e = [];
|
|
358
375
|
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;
|
|
359
376
|
}
|
|
360
|
-
function
|
|
377
|
+
function Xt(t) {
|
|
361
378
|
for (var e = { pageX: 0, pageY: 0, clientX: 0, clientY: 0, screenX: 0, screenY: 0 }, n = 0; n < t.length; n++) {
|
|
362
379
|
var r = t[n];
|
|
363
380
|
for (var i in e) e[i] += r[i];
|
|
@@ -365,69 +382,69 @@ function fi() {
|
|
|
365
382
|
for (var o in e) e[o] /= t.length;
|
|
366
383
|
return e;
|
|
367
384
|
}
|
|
368
|
-
function
|
|
385
|
+
function yt(t) {
|
|
369
386
|
if (!t.length) return null;
|
|
370
|
-
var e =
|
|
387
|
+
var e = mt(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);
|
|
371
388
|
return { x: n, y: r, left: n, top: r, right: i, bottom: o, width: i - n, height: o - r };
|
|
372
389
|
}
|
|
373
|
-
function
|
|
374
|
-
var n = e + "X", r = e + "Y", i =
|
|
375
|
-
return
|
|
390
|
+
function bt(t, e) {
|
|
391
|
+
var n = e + "X", r = e + "Y", i = mt(t), o = i[0][n] - i[1][n], a = i[0][r] - i[1][r];
|
|
392
|
+
return Ue(o, a);
|
|
376
393
|
}
|
|
377
|
-
function
|
|
378
|
-
var n = e + "X", r = e + "Y", i =
|
|
394
|
+
function xt(t, e) {
|
|
395
|
+
var n = e + "X", r = e + "Y", i = mt(t), o = i[1][n] - i[0][n], a = i[1][r] - i[0][r];
|
|
379
396
|
return 180 * Math.atan2(a, o) / Math.PI;
|
|
380
397
|
}
|
|
381
|
-
function
|
|
382
|
-
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
|
|
398
|
+
function Yt(t) {
|
|
399
|
+
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";
|
|
383
400
|
}
|
|
384
|
-
function
|
|
401
|
+
function Gt(t) {
|
|
385
402
|
var e = d.func(t.composedPath) ? t.composedPath() : t.path;
|
|
386
|
-
return [
|
|
403
|
+
return [C(e ? e[0] : t.target), C(t.currentTarget)];
|
|
387
404
|
}
|
|
388
|
-
var
|
|
405
|
+
var at = (function() {
|
|
389
406
|
function t(e) {
|
|
390
|
-
|
|
407
|
+
F(this, t), this.immediatePropagationStopped = !1, this.propagationStopped = !1, this._interaction = e;
|
|
391
408
|
}
|
|
392
|
-
return
|
|
409
|
+
return R(t, [{ key: "preventDefault", value: function() {
|
|
393
410
|
} }, { key: "stopPropagation", value: function() {
|
|
394
411
|
this.propagationStopped = !0;
|
|
395
412
|
} }, { key: "stopImmediatePropagation", value: function() {
|
|
396
413
|
this.immediatePropagationStopped = this.propagationStopped = !0;
|
|
397
414
|
} }]), t;
|
|
398
415
|
})();
|
|
399
|
-
Object.defineProperty(
|
|
416
|
+
Object.defineProperty(at.prototype, "interaction", { get: function() {
|
|
400
417
|
return this._interaction._proxy;
|
|
401
418
|
}, set: function() {
|
|
402
419
|
} });
|
|
403
|
-
var
|
|
420
|
+
var Ht = function(t, e) {
|
|
404
421
|
for (var n = 0; n < e.length; n++) {
|
|
405
422
|
var r = e[n];
|
|
406
423
|
t.push(r);
|
|
407
424
|
}
|
|
408
425
|
return t;
|
|
409
|
-
},
|
|
410
|
-
return
|
|
411
|
-
},
|
|
426
|
+
}, Zt = function(t) {
|
|
427
|
+
return Ht([], t);
|
|
428
|
+
}, We = function(t, e) {
|
|
412
429
|
for (var n = 0; n < t.length; n++) if (e(t[n], n, t)) return n;
|
|
413
430
|
return -1;
|
|
414
|
-
},
|
|
415
|
-
return t[
|
|
416
|
-
},
|
|
417
|
-
|
|
418
|
-
var e =
|
|
431
|
+
}, qe = function(t, e) {
|
|
432
|
+
return t[We(t, e)];
|
|
433
|
+
}, Re = (function(t) {
|
|
434
|
+
re(n, t);
|
|
435
|
+
var e = ke(n);
|
|
419
436
|
function n(r, i, o) {
|
|
420
437
|
var a;
|
|
421
|
-
|
|
422
|
-
var s = o === "dragleave" ? r.prev : r.cur,
|
|
423
|
-
return a.type = o, a.target =
|
|
438
|
+
F(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;
|
|
439
|
+
var s = o === "dragleave" ? r.prev : r.cur, l = s.element, u = s.dropzone;
|
|
440
|
+
return a.type = o, a.target = l, a.currentTarget = l, a.dropzone = u, a.dragEvent = i, a.relatedTarget = i.target, a.draggable = i.interactable, a.timeStamp = i.timeStamp, a;
|
|
424
441
|
}
|
|
425
|
-
return
|
|
442
|
+
return R(n, [{ key: "reject", value: function() {
|
|
426
443
|
var r = this, i = this._interaction.dropState;
|
|
427
444
|
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") {
|
|
428
|
-
var o = i.activeDrops, a =
|
|
429
|
-
var u =
|
|
430
|
-
return u === r.dropzone &&
|
|
445
|
+
var o = i.activeDrops, a = We(o, (function(l) {
|
|
446
|
+
var u = l.dropzone, c = l.element;
|
|
447
|
+
return u === r.dropzone && c === r.target;
|
|
431
448
|
}));
|
|
432
449
|
i.activeDrops.splice(a, 1);
|
|
433
450
|
var s = new n(i, this.dragEvent, "dropdeactivate");
|
|
@@ -439,22 +456,22 @@ function fi() {
|
|
|
439
456
|
} }, { key: "stopImmediatePropagation", value: function() {
|
|
440
457
|
this.immediatePropagationStopped = this.propagationStopped = !0;
|
|
441
458
|
} }]), n;
|
|
442
|
-
})(
|
|
443
|
-
function
|
|
459
|
+
})(at);
|
|
460
|
+
function Kt(t, e) {
|
|
444
461
|
for (var n = 0, r = t.slice(); n < r.length; n++) {
|
|
445
462
|
var i = r[n], o = i.dropzone, a = i.element;
|
|
446
463
|
e.dropzone = o, e.target = a, o.fire(e), e.propagationStopped = e.immediatePropagationStopped = !1;
|
|
447
464
|
}
|
|
448
465
|
}
|
|
449
|
-
function
|
|
466
|
+
function wt(t, e) {
|
|
450
467
|
for (var n = (function(o, a) {
|
|
451
|
-
for (var s = [],
|
|
452
|
-
var
|
|
453
|
-
if (
|
|
454
|
-
var p =
|
|
455
|
-
if (!(d.element(p) && p !== a || d.string(p) && !
|
|
468
|
+
for (var s = [], l = 0, u = o.interactables.list; l < u.length; l++) {
|
|
469
|
+
var c = u[l];
|
|
470
|
+
if (c.options.drop.enabled) {
|
|
471
|
+
var p = c.options.drop.accept;
|
|
472
|
+
if (!(d.element(p) && p !== a || d.string(p) && !y(a, p) || d.func(p) && !p({ dropzone: c, draggableElement: a }))) for (var f = 0, v = c.getAllElements(); f < v.length; f++) {
|
|
456
473
|
var h = v[f];
|
|
457
|
-
h !== a && s.push({ dropzone:
|
|
474
|
+
h !== a && s.push({ dropzone: c, element: h, rect: c.getRect(h) });
|
|
458
475
|
}
|
|
459
476
|
}
|
|
460
477
|
}
|
|
@@ -465,94 +482,94 @@ function fi() {
|
|
|
465
482
|
}
|
|
466
483
|
return n;
|
|
467
484
|
}
|
|
468
|
-
function
|
|
469
|
-
for (var r = t.dropState, i = t.interactable, o = t.element, a = [], s = 0,
|
|
470
|
-
var u =
|
|
485
|
+
function Jt(t, e, n) {
|
|
486
|
+
for (var r = t.dropState, i = t.interactable, o = t.element, a = [], s = 0, l = r.activeDrops; s < l.length; s++) {
|
|
487
|
+
var u = l[s], c = u.dropzone, p = u.element, f = u.rect, v = c.dropCheck(e, n, i, o, p, f);
|
|
471
488
|
a.push(v ? p : null);
|
|
472
489
|
}
|
|
473
|
-
var h = (function(
|
|
474
|
-
for (var
|
|
475
|
-
var
|
|
476
|
-
if (
|
|
477
|
-
var
|
|
478
|
-
if (
|
|
479
|
-
|
|
480
|
-
var
|
|
481
|
-
if (
|
|
482
|
-
if (
|
|
483
|
-
|
|
484
|
-
} else
|
|
485
|
-
for (var
|
|
486
|
-
var
|
|
487
|
-
if (
|
|
488
|
-
if (
|
|
489
|
-
|
|
490
|
+
var h = (function(m) {
|
|
491
|
+
for (var w, b, _, P = [], M = 0; M < m.length; M++) {
|
|
492
|
+
var k = m[M], I = m[w];
|
|
493
|
+
if (k && M !== w) if (I) {
|
|
494
|
+
var G = E(k), A = E(I);
|
|
495
|
+
if (G !== k.ownerDocument) if (A !== k.ownerDocument) if (G !== A) {
|
|
496
|
+
P = P.length ? P : L(I);
|
|
497
|
+
var ee = void 0;
|
|
498
|
+
if (I instanceof $.HTMLElement && k instanceof $.SVGElement && !(k instanceof $.SVGSVGElement)) {
|
|
499
|
+
if (k === A) continue;
|
|
500
|
+
ee = k.ownerSVGElement;
|
|
501
|
+
} else ee = k;
|
|
502
|
+
for (var ae = L(ee, I.ownerDocument), me = 0; ae[me] && ae[me] === P[me]; ) me++;
|
|
503
|
+
var vt = [ae[me - 1], ae[me], P[me]];
|
|
504
|
+
if (vt[0]) for (var Ke = vt[0].lastChild; Ke; ) {
|
|
505
|
+
if (Ke === vt[1]) {
|
|
506
|
+
w = M, P = ae;
|
|
490
507
|
break;
|
|
491
508
|
}
|
|
492
|
-
if (
|
|
493
|
-
|
|
509
|
+
if (Ke === vt[2]) break;
|
|
510
|
+
Ke = Ke.previousSibling;
|
|
494
511
|
}
|
|
495
|
-
} else
|
|
496
|
-
else
|
|
497
|
-
} else
|
|
512
|
+
} else _ = I, (parseInt(X(b = k).getComputedStyle(b).zIndex, 10) || 0) >= (parseInt(X(_).getComputedStyle(_).zIndex, 10) || 0) && (w = M);
|
|
513
|
+
else w = M;
|
|
514
|
+
} else w = M;
|
|
498
515
|
}
|
|
499
|
-
return
|
|
516
|
+
return w;
|
|
500
517
|
})(a);
|
|
501
518
|
return r.activeDrops[h] || null;
|
|
502
519
|
}
|
|
503
|
-
function
|
|
520
|
+
function St(t, e, n) {
|
|
504
521
|
var r = t.dropState, i = { enter: null, leave: null, activate: null, deactivate: null, move: null, drop: null };
|
|
505
|
-
return n.type === "dragstart" && (i.activate = new
|
|
522
|
+
return n.type === "dragstart" && (i.activate = new Re(r, n, "dropactivate"), i.activate.target = null, i.activate.dropzone = null), n.type === "dragend" && (i.deactivate = new Re(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 Re(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 Re(r, n, "dragenter"), n.dragEnter = r.cur.element, n.dropzone = r.cur.dropzone)), n.type === "dragend" && r.cur.dropzone && (i.drop = new Re(r, n, "drop"), n.dropzone = r.cur.dropzone, n.relatedTarget = r.cur.element), n.type === "dragmove" && r.cur.dropzone && (i.move = new Re(r, n, "dropmove"), n.dropzone = r.cur.dropzone)), i;
|
|
506
523
|
}
|
|
507
|
-
function
|
|
524
|
+
function Et(t, e) {
|
|
508
525
|
var n = t.dropState, r = n.activeDrops, i = n.cur, o = n.prev;
|
|
509
|
-
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 &&
|
|
526
|
+
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 && Kt(r, e.deactivate), n.prev.dropzone = i.dropzone, n.prev.element = i.element;
|
|
510
527
|
}
|
|
511
|
-
function
|
|
528
|
+
function Qt(t, e) {
|
|
512
529
|
var n = t.interaction, r = t.iEvent, i = t.event;
|
|
513
530
|
if (r.type === "dragmove" || r.type === "dragend") {
|
|
514
531
|
var o = n.dropState;
|
|
515
|
-
e.dynamicDrop && (o.activeDrops =
|
|
516
|
-
var a = r, s =
|
|
517
|
-
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 =
|
|
532
|
+
e.dynamicDrop && (o.activeDrops = wt(e, n.element));
|
|
533
|
+
var a = r, s = Jt(n, a, i);
|
|
534
|
+
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 = St(n, 0, a);
|
|
518
535
|
}
|
|
519
536
|
}
|
|
520
|
-
var
|
|
537
|
+
var en = { id: "actions/drop", install: function(t) {
|
|
521
538
|
var e = t.actions, n = t.interactStatic, r = t.Interactable, i = t.defaults;
|
|
522
|
-
t.usePlugin(
|
|
539
|
+
t.usePlugin(tt), r.prototype.dropzone = function(o) {
|
|
523
540
|
return (function(a, s) {
|
|
524
541
|
if (d.object(s)) {
|
|
525
542
|
if (a.options.drop.enabled = s.enabled !== !1, s.listeners) {
|
|
526
|
-
var
|
|
527
|
-
return p[/^(enter|leave)/.test(f) ? "drag".concat(f) : /^(activate|deactivate|move)/.test(f) ? "drop".concat(f) : f] =
|
|
528
|
-
}), {}),
|
|
529
|
-
|
|
543
|
+
var l = Ie(s.listeners), u = Object.keys(l).reduce((function(p, f) {
|
|
544
|
+
return p[/^(enter|leave)/.test(f) ? "drag".concat(f) : /^(activate|deactivate|move)/.test(f) ? "drop".concat(f) : f] = l[f], p;
|
|
545
|
+
}), {}), c = a.options.drop.listeners;
|
|
546
|
+
c && a.off(c), a.on(u), a.options.drop.listeners = u;
|
|
530
547
|
}
|
|
531
548
|
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;
|
|
532
549
|
}
|
|
533
550
|
return d.bool(s) ? (a.options.drop.enabled = s, a) : a.options.drop;
|
|
534
551
|
})(this, o);
|
|
535
|
-
}, r.prototype.dropCheck = function(o, a, s,
|
|
536
|
-
return (function(p, f, v, h,
|
|
537
|
-
var
|
|
538
|
-
if (!(
|
|
539
|
-
var
|
|
540
|
-
if (
|
|
541
|
-
var
|
|
542
|
-
|
|
543
|
-
var
|
|
544
|
-
|
|
552
|
+
}, r.prototype.dropCheck = function(o, a, s, l, u, c) {
|
|
553
|
+
return (function(p, f, v, h, m, w, b) {
|
|
554
|
+
var _ = !1;
|
|
555
|
+
if (!(b = b || p.getRect(w))) return !!p.options.drop.checker && p.options.drop.checker(f, v, _, p, w, h, m);
|
|
556
|
+
var P = p.options.drop.overlap;
|
|
557
|
+
if (P === "pointer") {
|
|
558
|
+
var M = Be(h, m, "drag"), k = qt(f);
|
|
559
|
+
k.x += M.x, k.y += M.y;
|
|
560
|
+
var I = k.x > b.left && k.x < b.right, G = k.y > b.top && k.y < b.bottom;
|
|
561
|
+
_ = I && G;
|
|
545
562
|
}
|
|
546
|
-
var
|
|
547
|
-
if (
|
|
548
|
-
var
|
|
549
|
-
|
|
563
|
+
var A = h.getRect(m);
|
|
564
|
+
if (A && P === "center") {
|
|
565
|
+
var ee = A.left + A.width / 2, ae = A.top + A.height / 2;
|
|
566
|
+
_ = ee >= b.left && ee <= b.right && ae >= b.top && ae <= b.bottom;
|
|
550
567
|
}
|
|
551
|
-
return
|
|
552
|
-
})(this, o, a, s,
|
|
568
|
+
return A && d.number(P) && (_ = 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) >= P), p.options.drop.checker && (_ = p.options.drop.checker(f, v, _, p, w, h, m)), _;
|
|
569
|
+
})(this, o, a, s, l, u, c);
|
|
553
570
|
}, n.dynamicDrop = function(o) {
|
|
554
571
|
return d.bool(o) ? (t.dynamicDrop = o, n) : t.dynamicDrop;
|
|
555
|
-
},
|
|
572
|
+
}, 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 = en.defaults;
|
|
556
573
|
}, listeners: { "interactions:before-action-start": function(t) {
|
|
557
574
|
var e = t.interaction;
|
|
558
575
|
e.prepared.name === "drag" && (e.dropState = { cur: { dropzone: null, element: null }, prev: { dropzone: null, element: null }, rejected: null, events: null, activeDrops: [] });
|
|
@@ -560,18 +577,18 @@ function fi() {
|
|
|
560
577
|
var n = t.interaction, r = (t.event, t.iEvent);
|
|
561
578
|
if (n.prepared.name === "drag") {
|
|
562
579
|
var i = n.dropState;
|
|
563
|
-
i.activeDrops = [], i.events = {}, i.activeDrops =
|
|
580
|
+
i.activeDrops = [], i.events = {}, i.activeDrops = wt(e, n.element), i.events = St(n, 0, r), i.events.activate && (Kt(i.activeDrops, i.events.activate), e.fire("actions/drop:start", { interaction: n, dragEvent: r }));
|
|
564
581
|
}
|
|
565
|
-
}, "interactions:action-move":
|
|
582
|
+
}, "interactions:action-move": Qt, "interactions:after-action-move": function(t, e) {
|
|
566
583
|
var n = t.interaction, r = t.iEvent;
|
|
567
584
|
if (n.prepared.name === "drag") {
|
|
568
585
|
var i = n.dropState;
|
|
569
|
-
|
|
586
|
+
Et(n, i.events), e.fire("actions/drop:move", { interaction: n, dragEvent: r }), i.events = {};
|
|
570
587
|
}
|
|
571
588
|
}, "interactions:action-end": function(t, e) {
|
|
572
589
|
if (t.interaction.prepared.name === "drag") {
|
|
573
590
|
var n = t.interaction, r = t.iEvent;
|
|
574
|
-
|
|
591
|
+
Qt(t, e), Et(n, n.dropState.events), e.fire("actions/drop:end", { interaction: n, dragEvent: r });
|
|
575
592
|
}
|
|
576
593
|
}, "interactions:stop": function(t) {
|
|
577
594
|
var e = t.interaction;
|
|
@@ -579,29 +596,29 @@ function fi() {
|
|
|
579
596
|
var n = e.dropState;
|
|
580
597
|
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);
|
|
581
598
|
}
|
|
582
|
-
} }, getActiveDrops:
|
|
599
|
+
} }, getActiveDrops: wt, getDrop: Jt, getDropEvents: St, fireDropEvents: Et, filterEventType: function(t) {
|
|
583
600
|
return t.search("drag") === 0 || t.search("drop") === 0;
|
|
584
|
-
}, defaults: { enabled: !1, accept: null, overlap: "pointer" } },
|
|
585
|
-
function
|
|
601
|
+
}, defaults: { enabled: !1, accept: null, overlap: "pointer" } }, Nn = en;
|
|
602
|
+
function _t(t) {
|
|
586
603
|
var e = t.interaction, n = t.iEvent, r = t.phase;
|
|
587
604
|
if (e.prepared.name === "gesture") {
|
|
588
605
|
var i = e.pointers.map((function(u) {
|
|
589
606
|
return u.pointer;
|
|
590
607
|
})), o = r === "start", a = r === "end", s = e.interactable.options.deltaSource;
|
|
591
|
-
if (n.touches = [i[0], i[1]], o) n.distance =
|
|
608
|
+
if (n.touches = [i[0], i[1]], o) n.distance = bt(i, s), n.box = yt(i), n.scale = 1, n.ds = 0, n.angle = xt(i, s), n.da = 0, e.gesture.startDistance = n.distance, e.gesture.startAngle = n.angle;
|
|
592
609
|
else if (a || e.pointers.length < 2) {
|
|
593
|
-
var
|
|
594
|
-
n.distance =
|
|
595
|
-
} else n.distance =
|
|
610
|
+
var l = e.prevEvent;
|
|
611
|
+
n.distance = l.distance, n.box = l.box, n.scale = l.scale, n.ds = 0, n.angle = l.angle, n.da = 0;
|
|
612
|
+
} else n.distance = bt(i, s), n.box = yt(i), n.scale = n.distance / e.gesture.startDistance, n.angle = xt(i, s), n.ds = n.scale - e.gesture.scale, n.da = n.angle - e.gesture.angle;
|
|
596
613
|
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);
|
|
597
614
|
}
|
|
598
615
|
}
|
|
599
|
-
var
|
|
616
|
+
var Lt = { id: "actions/gesture", before: ["actions/drag", "actions/resize"], install: function(t) {
|
|
600
617
|
var e = t.actions, n = t.Interactable, r = t.defaults;
|
|
601
618
|
n.prototype.gesturable = function(i) {
|
|
602
619
|
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;
|
|
603
|
-
}, e.map.gesture =
|
|
604
|
-
}, listeners: { "interactions:action-start":
|
|
620
|
+
}, e.map.gesture = Lt, e.methodDict.gesture = "gesturable", r.actions.gesture = Lt.defaults;
|
|
621
|
+
}, listeners: { "interactions:action-start": _t, "interactions:action-move": _t, "interactions:action-end": _t, "interactions:new": function(t) {
|
|
605
622
|
t.interaction.gesture = { angle: 0, distance: 0, scale: 1, startAngle: 0, startDistance: 0 };
|
|
606
623
|
}, "auto-start:check": function(t) {
|
|
607
624
|
if (!(t.interaction.pointers.length < 2)) {
|
|
@@ -612,40 +629,40 @@ function fi() {
|
|
|
612
629
|
return "";
|
|
613
630
|
}, filterEventType: function(t) {
|
|
614
631
|
return t.search("gesture") === 0;
|
|
615
|
-
} },
|
|
616
|
-
function
|
|
632
|
+
} }, Wn = Lt;
|
|
633
|
+
function qn(t, e, n, r, i, o, a) {
|
|
617
634
|
if (!e) return !1;
|
|
618
635
|
if (e === !0) {
|
|
619
|
-
var s = d.number(o.width) ? o.width : o.right - o.left,
|
|
620
|
-
if (a = Math.min(a, Math.abs((t === "left" || t === "right" ? s :
|
|
636
|
+
var s = d.number(o.width) ? o.width : o.right - o.left, l = d.number(o.height) ? o.height : o.bottom - o.top;
|
|
637
|
+
if (a = Math.min(a, Math.abs((t === "left" || t === "right" ? s : l) / 2)), s < 0 && (t === "left" ? t = "right" : t === "right" && (t = "left")), l < 0 && (t === "top" ? t = "bottom" : t === "bottom" && (t = "top")), t === "left") {
|
|
621
638
|
var u = s >= 0 ? o.left : o.right;
|
|
622
639
|
return n.x < u + a;
|
|
623
640
|
}
|
|
624
641
|
if (t === "top") {
|
|
625
|
-
var
|
|
626
|
-
return n.y <
|
|
642
|
+
var c = l >= 0 ? o.top : o.bottom;
|
|
643
|
+
return n.y < c + a;
|
|
627
644
|
}
|
|
628
645
|
if (t === "right") return n.x > (s >= 0 ? o.right : o.left) - a;
|
|
629
|
-
if (t === "bottom") return n.y > (
|
|
646
|
+
if (t === "bottom") return n.y > (l >= 0 ? o.bottom : o.top) - a;
|
|
630
647
|
}
|
|
631
|
-
return !!d.element(r) && (d.element(e) ? e === r :
|
|
648
|
+
return !!d.element(r) && (d.element(e) ? e === r : D(r, e, i));
|
|
632
649
|
}
|
|
633
|
-
function
|
|
650
|
+
function tn(t) {
|
|
634
651
|
var e = t.iEvent, n = t.interaction;
|
|
635
652
|
if (n.prepared.name === "resize" && n.resizeAxes) {
|
|
636
653
|
var r = e;
|
|
637
654
|
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));
|
|
638
655
|
}
|
|
639
656
|
}
|
|
640
|
-
var
|
|
657
|
+
var ve, Me, ge = { id: "actions/resize", before: ["actions/drag"], install: function(t) {
|
|
641
658
|
var e = t.actions, n = t.browser, r = t.Interactable, i = t.defaults;
|
|
642
|
-
|
|
659
|
+
ge.cursors = (function(o) {
|
|
643
660
|
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" };
|
|
644
|
-
})(n),
|
|
645
|
-
return (function(a, s,
|
|
646
|
-
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 =
|
|
661
|
+
})(n), ge.defaultMargin = n.supportsTouch || n.supportsPointerEvent ? 20 : 10, r.prototype.resizable = function(o) {
|
|
662
|
+
return (function(a, s, l) {
|
|
663
|
+
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 = l.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;
|
|
647
664
|
})(this, o, t);
|
|
648
|
-
}, e.map.resize =
|
|
665
|
+
}, e.map.resize = ge, e.methodDict.resize = "resizable", i.actions.resize = ge.defaults;
|
|
649
666
|
}, listeners: { "interactions:new": function(t) {
|
|
650
667
|
t.interaction.resizeAxes = "xy";
|
|
651
668
|
}, "interactions:action-start": function(t) {
|
|
@@ -653,30 +670,30 @@ function fi() {
|
|
|
653
670
|
var n = e.iEvent, r = e.interaction;
|
|
654
671
|
if (r.prepared.name === "resize" && r.prepared.edges) {
|
|
655
672
|
var i = n, o = r.rect;
|
|
656
|
-
r._rects = { start:
|
|
673
|
+
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;
|
|
657
674
|
}
|
|
658
|
-
})(t),
|
|
675
|
+
})(t), tn(t);
|
|
659
676
|
}, "interactions:action-move": function(t) {
|
|
660
677
|
(function(e) {
|
|
661
678
|
var n = e.iEvent, r = e.interaction;
|
|
662
679
|
if (r.prepared.name === "resize" && r.prepared.edges) {
|
|
663
|
-
var i = n, o = r.interactable.options.resize.invert, a = o === "reposition" || o === "negate", s = r.rect,
|
|
664
|
-
if (
|
|
665
|
-
if (
|
|
666
|
-
if (
|
|
667
|
-
var v =
|
|
668
|
-
|
|
680
|
+
var i = n, o = r.interactable.options.resize.invert, a = o === "reposition" || o === "negate", s = r.rect, l = r._rects, u = l.start, c = l.corrected, p = l.delta, f = l.previous;
|
|
681
|
+
if (S(f, c), a) {
|
|
682
|
+
if (S(c, s), o === "reposition") {
|
|
683
|
+
if (c.top > c.bottom) {
|
|
684
|
+
var v = c.top;
|
|
685
|
+
c.top = c.bottom, c.bottom = v;
|
|
669
686
|
}
|
|
670
|
-
if (
|
|
671
|
-
var h =
|
|
672
|
-
|
|
687
|
+
if (c.left > c.right) {
|
|
688
|
+
var h = c.left;
|
|
689
|
+
c.left = c.right, c.right = h;
|
|
673
690
|
}
|
|
674
691
|
}
|
|
675
|
-
} else
|
|
676
|
-
for (var
|
|
677
|
-
i.edges = r.prepared.edges, i.rect =
|
|
692
|
+
} else c.top = Math.min(s.top, u.bottom), c.bottom = Math.max(s.bottom, u.top), c.left = Math.min(s.left, u.right), c.right = Math.max(s.right, u.left);
|
|
693
|
+
for (var m in c.width = c.right - c.left, c.height = c.bottom - c.top, c) p[m] = c[m] - f[m];
|
|
694
|
+
i.edges = r.prepared.edges, i.rect = c, i.deltaRect = p;
|
|
678
695
|
}
|
|
679
|
-
})(t),
|
|
696
|
+
})(t), tn(t);
|
|
680
697
|
}, "interactions:action-end": function(t) {
|
|
681
698
|
var e = t.iEvent, n = t.interaction;
|
|
682
699
|
if (n.prepared.name === "resize" && n.prepared.edges) {
|
|
@@ -686,25 +703,25 @@ function fi() {
|
|
|
686
703
|
}, "auto-start:check": function(t) {
|
|
687
704
|
var e = t.interaction, n = t.interactable, r = t.element, i = t.rect, o = t.buttons;
|
|
688
705
|
if (i) {
|
|
689
|
-
var a =
|
|
706
|
+
var a = S({}, e.coords.cur.page), s = n.options.resize;
|
|
690
707
|
if (s && s.enabled && (!e.pointerIsDown || !/mouse|pointer/.test(e.pointerType) || (o & s.mouseButtons) != 0)) {
|
|
691
708
|
if (d.object(s.edges)) {
|
|
692
|
-
var
|
|
693
|
-
for (var u in
|
|
694
|
-
|
|
709
|
+
var l = { left: !1, right: !1, top: !1, bottom: !1 };
|
|
710
|
+
for (var u in l) l[u] = qn(u, s.edges[u], a, e._latestPointer.eventTarget, r, i, s.margin || ge.defaultMargin);
|
|
711
|
+
l.left = l.left && !l.right, l.top = l.top && !l.bottom, (l.left || l.right || l.top || l.bottom) && (t.action = { name: "resize", edges: l });
|
|
695
712
|
} else {
|
|
696
|
-
var
|
|
697
|
-
(
|
|
713
|
+
var c = s.axis !== "y" && a.x > i.right - ge.defaultMargin, p = s.axis !== "x" && a.y > i.bottom - ge.defaultMargin;
|
|
714
|
+
(c || p) && (t.action = { name: "resize", axes: (c ? "x" : "") + (p ? "y" : "") });
|
|
698
715
|
}
|
|
699
716
|
return !t.action && void 0;
|
|
700
717
|
}
|
|
701
718
|
}
|
|
702
719
|
} }, defaults: { square: !1, preserveAspectRatio: !1, axis: "xy", margin: NaN, edges: null, invert: "none" }, cursors: null, getCursor: function(t) {
|
|
703
|
-
var e = t.edges, n = t.axis, r = t.name, i =
|
|
720
|
+
var e = t.edges, n = t.axis, r = t.name, i = ge.cursors, o = null;
|
|
704
721
|
if (n) o = i[r + n];
|
|
705
722
|
else if (e) {
|
|
706
|
-
for (var a = "", s = 0,
|
|
707
|
-
var u =
|
|
723
|
+
for (var a = "", s = 0, l = ["top", "bottom", "left", "right"]; s < l.length; s++) {
|
|
724
|
+
var u = l[s];
|
|
708
725
|
e[u] && (a += u);
|
|
709
726
|
}
|
|
710
727
|
o = i[a];
|
|
@@ -712,153 +729,153 @@ function fi() {
|
|
|
712
729
|
return o;
|
|
713
730
|
}, filterEventType: function(t) {
|
|
714
731
|
return t.search("resize") === 0;
|
|
715
|
-
}, defaultMargin: null },
|
|
716
|
-
t.usePlugin(
|
|
717
|
-
} },
|
|
718
|
-
return
|
|
732
|
+
}, defaultMargin: null }, Xn = ge, Yn = { id: "actions", install: function(t) {
|
|
733
|
+
t.usePlugin(Wn), t.usePlugin(Xn), t.usePlugin(tt), t.usePlugin(Nn);
|
|
734
|
+
} }, nn = 0, xe = { request: function(t) {
|
|
735
|
+
return ve(t);
|
|
719
736
|
}, cancel: function(t) {
|
|
720
|
-
return
|
|
737
|
+
return Me(t);
|
|
721
738
|
}, init: function(t) {
|
|
722
|
-
if (
|
|
739
|
+
if (ve = t.requestAnimationFrame, Me = t.cancelAnimationFrame, !ve) for (var e = ["ms", "moz", "webkit", "o"], n = 0; n < e.length; n++) {
|
|
723
740
|
var r = e[n];
|
|
724
|
-
|
|
741
|
+
ve = t["".concat(r, "RequestAnimationFrame")], Me = t["".concat(r, "CancelAnimationFrame")] || t["".concat(r, "CancelRequestAnimationFrame")];
|
|
725
742
|
}
|
|
726
|
-
|
|
727
|
-
var o = Date.now(), a = Math.max(0, 16 - (o -
|
|
743
|
+
ve = ve && ve.bind(t), Me = Me && Me.bind(t), ve || (ve = function(i) {
|
|
744
|
+
var o = Date.now(), a = Math.max(0, 16 - (o - nn)), s = t.setTimeout((function() {
|
|
728
745
|
i(o + a);
|
|
729
746
|
}), a);
|
|
730
|
-
return
|
|
731
|
-
},
|
|
747
|
+
return nn = o + a, s;
|
|
748
|
+
}, Me = function(i) {
|
|
732
749
|
return clearTimeout(i);
|
|
733
750
|
});
|
|
734
|
-
} },
|
|
735
|
-
|
|
751
|
+
} }, T = { 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) {
|
|
752
|
+
T.isScrolling = !0, xe.cancel(T.i), t.autoScroll = T, T.interaction = t, T.prevTime = T.now(), T.i = xe.request(T.scroll);
|
|
736
753
|
}, stop: function() {
|
|
737
|
-
|
|
754
|
+
T.isScrolling = !1, T.interaction && (T.interaction.autoScroll = null), xe.cancel(T.i);
|
|
738
755
|
}, scroll: function() {
|
|
739
|
-
var t =
|
|
740
|
-
if (
|
|
741
|
-
var u = { x:
|
|
756
|
+
var t = T.interaction, e = t.interactable, n = t.element, r = t.prepared.name, i = e.options[r].autoScroll, o = rn(i.container, e, n), a = T.now(), s = (a - T.prevTime) / 1e3, l = i.speed * s;
|
|
757
|
+
if (l >= 1) {
|
|
758
|
+
var u = { x: T.x * l, y: T.y * l };
|
|
742
759
|
if (u.x || u.y) {
|
|
743
|
-
var
|
|
760
|
+
var c = on(o);
|
|
744
761
|
d.window(o) ? o.scrollBy(u.x, u.y) : o && (o.scrollLeft += u.x, o.scrollTop += u.y);
|
|
745
|
-
var p =
|
|
762
|
+
var p = on(o), f = { x: p.x - c.x, y: p.y - c.y };
|
|
746
763
|
(f.x || f.y) && e.fire({ type: "autoscroll", target: n, interactable: e, delta: f, interaction: t, container: o });
|
|
747
764
|
}
|
|
748
|
-
|
|
765
|
+
T.prevTime = a;
|
|
749
766
|
}
|
|
750
|
-
|
|
767
|
+
T.isScrolling && (xe.cancel(T.i), T.i = xe.request(T.scroll));
|
|
751
768
|
}, check: function(t, e) {
|
|
752
769
|
var n;
|
|
753
770
|
return (n = t.options[e].autoScroll) == null ? void 0 : n.enabled;
|
|
754
771
|
}, onInteractionMove: function(t) {
|
|
755
772
|
var e = t.interaction, n = t.pointer;
|
|
756
|
-
if (e.interacting() &&
|
|
773
|
+
if (e.interacting() && T.check(e.interactable, e.prepared.name)) if (e.simulation) T.x = T.y = 0;
|
|
757
774
|
else {
|
|
758
|
-
var r, i, o, a, s = e.interactable,
|
|
759
|
-
if (d.window(p)) a = n.clientX <
|
|
775
|
+
var r, i, o, a, s = e.interactable, l = e.element, u = e.prepared.name, c = s.options[u].autoScroll, p = rn(c.container, s, l);
|
|
776
|
+
if (d.window(p)) a = n.clientX < T.margin, r = n.clientY < T.margin, i = n.clientX > p.innerWidth - T.margin, o = n.clientY > p.innerHeight - T.margin;
|
|
760
777
|
else {
|
|
761
|
-
var f =
|
|
762
|
-
a = n.clientX < f.left +
|
|
778
|
+
var f = O(p);
|
|
779
|
+
a = n.clientX < f.left + T.margin, r = n.clientY < f.top + T.margin, i = n.clientX > f.right - T.margin, o = n.clientY > f.bottom - T.margin;
|
|
763
780
|
}
|
|
764
|
-
|
|
781
|
+
T.x = i ? 1 : a ? -1 : 0, T.y = o ? 1 : r ? -1 : 0, T.isScrolling || (T.margin = c.margin, T.speed = c.speed, T.start(e));
|
|
765
782
|
}
|
|
766
783
|
} };
|
|
767
|
-
function
|
|
768
|
-
return (d.string(t) ?
|
|
784
|
+
function rn(t, e, n) {
|
|
785
|
+
return (d.string(t) ? x(t, e, n) : t) || X(n);
|
|
769
786
|
}
|
|
770
|
-
function
|
|
787
|
+
function on(t) {
|
|
771
788
|
return d.window(t) && (t = window.document.body), { x: t.scrollLeft, y: t.scrollTop };
|
|
772
789
|
}
|
|
773
|
-
var
|
|
790
|
+
var Gn = { id: "auto-scroll", install: function(t) {
|
|
774
791
|
var e = t.defaults, n = t.actions;
|
|
775
|
-
t.autoScroll =
|
|
792
|
+
t.autoScroll = T, T.now = function() {
|
|
776
793
|
return t.now();
|
|
777
|
-
}, n.phaselessTypes.autoscroll = !0, e.perAction.autoScroll =
|
|
794
|
+
}, n.phaselessTypes.autoscroll = !0, e.perAction.autoScroll = T.defaults;
|
|
778
795
|
}, listeners: { "interactions:new": function(t) {
|
|
779
796
|
t.interaction.autoScroll = null;
|
|
780
797
|
}, "interactions:destroy": function(t) {
|
|
781
|
-
t.interaction.autoScroll = null,
|
|
782
|
-
}, "interactions:stop":
|
|
783
|
-
return
|
|
784
|
-
} } },
|
|
785
|
-
function
|
|
798
|
+
t.interaction.autoScroll = null, T.stop(), T.interaction && (T.interaction = null);
|
|
799
|
+
}, "interactions:stop": T.stop, "interactions:action-move": function(t) {
|
|
800
|
+
return T.onInteractionMove(t);
|
|
801
|
+
} } }, Hn = Gn;
|
|
802
|
+
function Xe(t, e) {
|
|
786
803
|
var n = !1;
|
|
787
804
|
return function() {
|
|
788
|
-
return n || (
|
|
805
|
+
return n || (pe.console.warn(e), n = !0), t.apply(this, arguments);
|
|
789
806
|
};
|
|
790
807
|
}
|
|
791
|
-
function
|
|
808
|
+
function kt(t, e) {
|
|
792
809
|
return t.name = e.name, t.axis = e.axis, t.edges = e.edges, t;
|
|
793
810
|
}
|
|
794
|
-
function
|
|
811
|
+
function Zn(t) {
|
|
795
812
|
return d.bool(t) ? (this.options.styleCursor = t, this) : t === null ? (delete this.options.styleCursor, this) : this.options.styleCursor;
|
|
796
813
|
}
|
|
797
|
-
function
|
|
814
|
+
function Kn(t) {
|
|
798
815
|
return d.func(t) ? (this.options.actionChecker = t, this) : t === null ? (delete this.options.actionChecker, this) : this.options.actionChecker;
|
|
799
816
|
}
|
|
800
|
-
var
|
|
817
|
+
var Jn = { id: "auto-start/interactableMethods", install: function(t) {
|
|
801
818
|
var e = t.Interactable;
|
|
802
819
|
e.prototype.getAction = function(n, r, i, o) {
|
|
803
|
-
var a = (function(s,
|
|
804
|
-
var f = s.getRect(
|
|
820
|
+
var a = (function(s, l, u, c, p) {
|
|
821
|
+
var f = s.getRect(c), v = l.buttons || { 0: 1, 1: 4, 3: 8, 4: 16 }[l.button], h = { action: null, interactable: s, interaction: u, element: c, rect: f, buttons: v };
|
|
805
822
|
return p.fire("auto-start:check", h), h.action;
|
|
806
823
|
})(this, r, i, o, t);
|
|
807
824
|
return this.options.actionChecker ? this.options.actionChecker(n, r, a, this, o, i) : a;
|
|
808
|
-
}, e.prototype.ignoreFrom =
|
|
825
|
+
}, e.prototype.ignoreFrom = Xe((function(n) {
|
|
809
826
|
return this._backCompatOption("ignoreFrom", n);
|
|
810
|
-
}), "Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."), e.prototype.allowFrom =
|
|
827
|
+
}), "Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."), e.prototype.allowFrom = Xe((function(n) {
|
|
811
828
|
return this._backCompatOption("allowFrom", n);
|
|
812
|
-
}), "Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."), e.prototype.actionChecker =
|
|
829
|
+
}), "Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."), e.prototype.actionChecker = Kn, e.prototype.styleCursor = Zn;
|
|
813
830
|
} };
|
|
814
|
-
function
|
|
815
|
-
return e.testIgnoreAllow(e.options[t.name], n, r) && e.options[t.name].enabled &&
|
|
831
|
+
function an(t, e, n, r, i) {
|
|
832
|
+
return e.testIgnoreAllow(e.options[t.name], n, r) && e.options[t.name].enabled && st(e, n, t, i) ? t : null;
|
|
816
833
|
}
|
|
817
|
-
function
|
|
818
|
-
for (var s = 0,
|
|
819
|
-
var u = r[s],
|
|
834
|
+
function Qn(t, e, n, r, i, o, a) {
|
|
835
|
+
for (var s = 0, l = r.length; s < l; s++) {
|
|
836
|
+
var u = r[s], c = i[s], p = u.getAction(e, n, t, c);
|
|
820
837
|
if (p) {
|
|
821
|
-
var f =
|
|
822
|
-
if (f) return { action: f, interactable: u, element:
|
|
838
|
+
var f = an(p, u, c, o, a);
|
|
839
|
+
if (f) return { action: f, interactable: u, element: c };
|
|
823
840
|
}
|
|
824
841
|
}
|
|
825
842
|
return { action: null, interactable: null, element: null };
|
|
826
843
|
}
|
|
827
|
-
function
|
|
844
|
+
function sn(t, e, n, r, i) {
|
|
828
845
|
var o = [], a = [], s = r;
|
|
829
|
-
function c
|
|
830
|
-
o.push(
|
|
846
|
+
function l(c) {
|
|
847
|
+
o.push(c), a.push(s);
|
|
831
848
|
}
|
|
832
849
|
for (; d.element(s); ) {
|
|
833
|
-
o = [], a = [], i.interactables.forEachMatch(s,
|
|
834
|
-
var u =
|
|
850
|
+
o = [], a = [], i.interactables.forEachMatch(s, l);
|
|
851
|
+
var u = Qn(t, e, n, o, a, r, i);
|
|
835
852
|
if (u.action && !u.interactable.options[u.action.name].manualStart) return u;
|
|
836
|
-
s =
|
|
853
|
+
s = g(s);
|
|
837
854
|
}
|
|
838
855
|
return { action: null, interactable: null, element: null };
|
|
839
856
|
}
|
|
840
|
-
function
|
|
857
|
+
function ln(t, e, n) {
|
|
841
858
|
var r = e.action, i = e.interactable, o = e.element;
|
|
842
|
-
r = r || { name: null }, t.interactable = i, t.element = o,
|
|
859
|
+
r = r || { name: null }, t.interactable = i, t.element = o, kt(t.prepared, r), t.rect = i && r.name ? i.getRect(o) : null, un(t, n), n.fire("autoStart:prepared", { interaction: t });
|
|
843
860
|
}
|
|
844
|
-
function
|
|
845
|
-
var i = t.options, o = i[n.name].max, a = i[n.name].maxPerElement, s = r.autoStart.maxInteractions,
|
|
861
|
+
function st(t, e, n, r) {
|
|
862
|
+
var i = t.options, o = i[n.name].max, a = i[n.name].maxPerElement, s = r.autoStart.maxInteractions, l = 0, u = 0, c = 0;
|
|
846
863
|
if (!(o && a && s)) return !1;
|
|
847
864
|
for (var p = 0, f = r.interactions.list; p < f.length; p++) {
|
|
848
865
|
var v = f[p], h = v.prepared.name;
|
|
849
|
-
if (v.interacting() && (++
|
|
866
|
+
if (v.interacting() && (++l >= s || v.interactable === t && ((u += h === n.name ? 1 : 0) >= o || v.element === e && (c++, h === n.name && c >= a))))
|
|
850
867
|
return !1;
|
|
851
868
|
}
|
|
852
869
|
return s > 0;
|
|
853
870
|
}
|
|
854
|
-
function
|
|
871
|
+
function cn(t, e) {
|
|
855
872
|
return d.number(t) ? (e.autoStart.maxInteractions = t, this) : e.autoStart.maxInteractions;
|
|
856
873
|
}
|
|
857
|
-
function
|
|
874
|
+
function Tt(t, e, n) {
|
|
858
875
|
var r = n.autoStart.cursorElement;
|
|
859
876
|
r && r !== t && (r.style.cursor = ""), t.ownerDocument.documentElement.style.cursor = e, t.style.cursor = e, n.autoStart.cursorElement = e ? t : null;
|
|
860
877
|
}
|
|
861
|
-
function
|
|
878
|
+
function un(t, e) {
|
|
862
879
|
var n = t.interactable, r = t.element, i = t.prepared;
|
|
863
880
|
if (t.pointerType === "mouse" && n && n.options.styleCursor) {
|
|
864
881
|
var o = "";
|
|
@@ -866,48 +883,48 @@ function fi() {
|
|
|
866
883
|
var a = n.options[i.name].cursorChecker;
|
|
867
884
|
o = d.func(a) ? a(i, n, r, t._interacting) : e.actions.map[i.name].getCursor(i);
|
|
868
885
|
}
|
|
869
|
-
|
|
870
|
-
} else e.autoStart.cursorElement &&
|
|
886
|
+
Tt(t.element, o || "", e);
|
|
887
|
+
} else e.autoStart.cursorElement && Tt(e.autoStart.cursorElement, "", e);
|
|
871
888
|
}
|
|
872
|
-
var
|
|
889
|
+
var er = { id: "auto-start/base", before: ["actions"], install: function(t) {
|
|
873
890
|
var e = t.interactStatic, n = t.defaults;
|
|
874
|
-
t.usePlugin(
|
|
875
|
-
return
|
|
876
|
-
}, t.autoStart = { maxInteractions: 1 / 0, withinInteractionLimit:
|
|
891
|
+
t.usePlugin(Jn), 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) {
|
|
892
|
+
return cn(r, t);
|
|
893
|
+
}, t.autoStart = { maxInteractions: 1 / 0, withinInteractionLimit: st, cursorElement: null };
|
|
877
894
|
}, listeners: { "interactions:down": function(t, e) {
|
|
878
895
|
var n = t.interaction, r = t.pointer, i = t.event, o = t.eventTarget;
|
|
879
|
-
n.interacting() ||
|
|
896
|
+
n.interacting() || ln(n, sn(n, r, i, o, e), e);
|
|
880
897
|
}, "interactions:move": function(t, e) {
|
|
881
898
|
(function(n, r) {
|
|
882
899
|
var i = n.interaction, o = n.pointer, a = n.event, s = n.eventTarget;
|
|
883
|
-
i.pointerType !== "mouse" || i.pointerIsDown || i.interacting() ||
|
|
900
|
+
i.pointerType !== "mouse" || i.pointerIsDown || i.interacting() || ln(i, sn(i, o, a, s, r), r);
|
|
884
901
|
})(t, e), (function(n, r) {
|
|
885
902
|
var i = n.interaction;
|
|
886
903
|
if (i.pointerIsDown && !i.interacting() && i.pointerWasMoved && i.prepared.name) {
|
|
887
904
|
r.fire("autoStart:before-start", n);
|
|
888
905
|
var o = i.interactable, a = i.prepared.name;
|
|
889
|
-
a && o && (o.options[a].manualStart || !
|
|
906
|
+
a && o && (o.options[a].manualStart || !st(o, i.element, i.prepared, r) ? i.stop() : (i.start(i.prepared, o, i.element), un(i, r)));
|
|
890
907
|
}
|
|
891
908
|
})(t, e);
|
|
892
909
|
}, "interactions:stop": function(t, e) {
|
|
893
910
|
var n = t.interaction, r = n.interactable;
|
|
894
|
-
r && r.options.styleCursor &&
|
|
895
|
-
} }, maxInteractions:
|
|
911
|
+
r && r.options.styleCursor && Tt(n.element, "", e);
|
|
912
|
+
} }, maxInteractions: cn, withinInteractionLimit: st, validateAction: an }, Ot = er, tr = { id: "auto-start/dragAxis", listeners: { "autoStart:before-start": function(t, e) {
|
|
896
913
|
var n = t.interaction, r = t.eventTarget, i = t.dx, o = t.dy;
|
|
897
914
|
if (n.prepared.name === "drag") {
|
|
898
|
-
var a = Math.abs(i), s = Math.abs(o),
|
|
899
|
-
if (n.prepared.axis =
|
|
915
|
+
var a = Math.abs(i), s = Math.abs(o), l = n.interactable.options.drag, u = l.startAxis, c = a > s ? "x" : a < s ? "y" : "xy";
|
|
916
|
+
if (n.prepared.axis = l.lockAxis === "start" ? c[0] : l.lockAxis, c !== "xy" && u !== "xy" && u !== c) {
|
|
900
917
|
n.prepared.name = null;
|
|
901
918
|
for (var p = r, f = function(h) {
|
|
902
919
|
if (h !== n.interactable) {
|
|
903
|
-
var
|
|
904
|
-
if (!
|
|
905
|
-
var
|
|
906
|
-
if (
|
|
907
|
-
if (!
|
|
908
|
-
var
|
|
909
|
-
return
|
|
910
|
-
})(
|
|
920
|
+
var m = n.interactable.options.drag;
|
|
921
|
+
if (!m.manualStart && h.testIgnoreAllow(m, p, r)) {
|
|
922
|
+
var w = h.getAction(n.downPointer, n.downEvent, n, p);
|
|
923
|
+
if (w && w.name === "drag" && (function(b, _) {
|
|
924
|
+
if (!_) return !1;
|
|
925
|
+
var P = _.options.drag.startAxis;
|
|
926
|
+
return b === "xy" || P === "xy" || P === b;
|
|
927
|
+
})(c, h) && Ot.validateAction(w, h, p, r, e)) return h;
|
|
911
928
|
}
|
|
912
929
|
}
|
|
913
930
|
}; d.element(p); ) {
|
|
@@ -916,24 +933,24 @@ function fi() {
|
|
|
916
933
|
n.prepared.name = "drag", n.interactable = v, n.element = p;
|
|
917
934
|
break;
|
|
918
935
|
}
|
|
919
|
-
p =
|
|
936
|
+
p = g(p);
|
|
920
937
|
}
|
|
921
938
|
}
|
|
922
939
|
}
|
|
923
940
|
} } };
|
|
924
|
-
function
|
|
941
|
+
function Pt(t) {
|
|
925
942
|
var e = t.prepared && t.prepared.name;
|
|
926
943
|
if (!e) return null;
|
|
927
944
|
var n = t.interactable.options;
|
|
928
945
|
return n[e].hold || n[e].delay;
|
|
929
946
|
}
|
|
930
|
-
var
|
|
947
|
+
var nr = { id: "auto-start/hold", install: function(t) {
|
|
931
948
|
var e = t.defaults;
|
|
932
|
-
t.usePlugin(
|
|
949
|
+
t.usePlugin(Ot), e.perAction.hold = 0, e.perAction.delay = 0;
|
|
933
950
|
}, listeners: { "interactions:new": function(t) {
|
|
934
951
|
t.interaction.autoStartHoldTimer = null;
|
|
935
952
|
}, "autoStart:prepared": function(t) {
|
|
936
|
-
var e = t.interaction, n =
|
|
953
|
+
var e = t.interaction, n = Pt(e);
|
|
937
954
|
n > 0 && (e.autoStartHoldTimer = setTimeout((function() {
|
|
938
955
|
e.start(e.prepared, e.interactable, e.element);
|
|
939
956
|
}), n));
|
|
@@ -942,68 +959,68 @@ function fi() {
|
|
|
942
959
|
e.autoStartHoldTimer && e.pointerWasMoved && !n && (clearTimeout(e.autoStartHoldTimer), e.autoStartHoldTimer = null);
|
|
943
960
|
}, "autoStart:before-start": function(t) {
|
|
944
961
|
var e = t.interaction;
|
|
945
|
-
|
|
946
|
-
} }, getHoldDuration:
|
|
947
|
-
t.usePlugin(
|
|
948
|
-
} },
|
|
962
|
+
Pt(e) > 0 && (e.prepared.name = null);
|
|
963
|
+
} }, getHoldDuration: Pt }, rr = nr, ir = { id: "auto-start", install: function(t) {
|
|
964
|
+
t.usePlugin(Ot), t.usePlugin(rr), t.usePlugin(tr);
|
|
965
|
+
} }, or = function(t) {
|
|
949
966
|
return /^(always|never|auto)$/.test(t) ? (this.options.preventDefault = t, this) : d.bool(t) ? (this.options.preventDefault = t ? "always" : "never", this) : this.options.preventDefault;
|
|
950
967
|
};
|
|
951
|
-
function
|
|
968
|
+
function ar(t) {
|
|
952
969
|
var e = t.interaction, n = t.event;
|
|
953
970
|
e.interactable && e.interactable.checkAndPreventDefault(n);
|
|
954
971
|
}
|
|
955
|
-
var
|
|
972
|
+
var pn = { id: "core/interactablePreventDefault", install: function(t) {
|
|
956
973
|
var e = t.Interactable;
|
|
957
|
-
e.prototype.preventDefault =
|
|
974
|
+
e.prototype.preventDefault = or, e.prototype.checkAndPreventDefault = function(n) {
|
|
958
975
|
return (function(r, i, o) {
|
|
959
976
|
var a = r.options.preventDefault;
|
|
960
977
|
if (a !== "never") if (a !== "always") {
|
|
961
978
|
if (i.events.supportsPassive && /^touch(start|move)$/.test(o.type)) {
|
|
962
|
-
var s =
|
|
963
|
-
if (!
|
|
979
|
+
var s = X(o.target).document, l = i.getDocOptions(s);
|
|
980
|
+
if (!l || !l.events || l.events.passive !== !1) return;
|
|
964
981
|
}
|
|
965
|
-
/^(mouse|pointer|touch)*(down|start)/i.test(o.type) || d.element(o.target) &&
|
|
982
|
+
/^(mouse|pointer|touch)*(down|start)/i.test(o.type) || d.element(o.target) && y(o.target, "input,select,textarea,[contenteditable=true],[contenteditable=true] *") || o.preventDefault();
|
|
966
983
|
} else o.preventDefault();
|
|
967
984
|
})(this, t, n);
|
|
968
985
|
}, t.interactions.docEvents.push({ type: "dragstart", listener: function(n) {
|
|
969
986
|
for (var r = 0, i = t.interactions.list; r < i.length; r++) {
|
|
970
987
|
var o = i[r];
|
|
971
|
-
if (o.element && (o.element === n.target ||
|
|
988
|
+
if (o.element && (o.element === n.target || he(o.element, n.target))) return void o.interactable.checkAndPreventDefault(n);
|
|
972
989
|
}
|
|
973
990
|
} });
|
|
974
991
|
}, listeners: ["down", "move", "up", "cancel"].reduce((function(t, e) {
|
|
975
|
-
return t["interactions:".concat(e)] =
|
|
992
|
+
return t["interactions:".concat(e)] = ar, t;
|
|
976
993
|
}), {}) };
|
|
977
|
-
function
|
|
994
|
+
function lt(t, e) {
|
|
978
995
|
if (e.phaselessTypes[t]) return !0;
|
|
979
996
|
for (var n in e.map) if (t.indexOf(n) === 0 && t.substr(n.length) in e.phases) return !0;
|
|
980
997
|
return !1;
|
|
981
998
|
}
|
|
982
|
-
function
|
|
999
|
+
function je(t) {
|
|
983
1000
|
var e = {};
|
|
984
1001
|
for (var n in t) {
|
|
985
1002
|
var r = t[n];
|
|
986
|
-
d.plainObject(r) ? e[n] =
|
|
1003
|
+
d.plainObject(r) ? e[n] = je(r) : d.array(r) ? e[n] = Zt(r) : e[n] = r;
|
|
987
1004
|
}
|
|
988
1005
|
return e;
|
|
989
1006
|
}
|
|
990
|
-
var
|
|
1007
|
+
var It = (function() {
|
|
991
1008
|
function t(e) {
|
|
992
|
-
|
|
1009
|
+
F(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 = ct(), this.edges = { left: !1, right: !1, top: !1, bottom: !1 };
|
|
993
1010
|
}
|
|
994
|
-
return
|
|
1011
|
+
return R(t, [{ key: "start", value: function(e, n) {
|
|
995
1012
|
var r, i, o = e.phase, a = this.interaction, s = (function(u) {
|
|
996
|
-
var
|
|
1013
|
+
var c = u.interactable.options[u.prepared.name], p = c.modifiers;
|
|
997
1014
|
return p && p.length ? p : ["snap", "snapSize", "snapEdges", "restrict", "restrictEdges", "restrictSize"].map((function(f) {
|
|
998
|
-
var v =
|
|
1015
|
+
var v = c[f];
|
|
999
1016
|
return v && v.enabled && { options: v, methods: v._methods };
|
|
1000
1017
|
})).filter((function(f) {
|
|
1001
1018
|
return !!f;
|
|
1002
1019
|
}));
|
|
1003
1020
|
})(a);
|
|
1004
|
-
this.prepareStates(s), this.startEdges =
|
|
1005
|
-
var
|
|
1006
|
-
return this.result =
|
|
1021
|
+
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 };
|
|
1022
|
+
var l = this.fillArg({ phase: o, pageCoords: n, preEnd: !1 });
|
|
1023
|
+
return this.result = ct(), this.startAll(l), this.result = this.setAll(l);
|
|
1007
1024
|
} }, { key: "fillArg", value: function(e) {
|
|
1008
1025
|
var n = this.interaction;
|
|
1009
1026
|
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;
|
|
@@ -1014,33 +1031,33 @@ function fi() {
|
|
|
1014
1031
|
}
|
|
1015
1032
|
} }, { key: "setAll", value: function(e) {
|
|
1016
1033
|
var n = e.phase, r = e.preEnd, i = e.skipModifiers, o = e.rect, a = e.edges;
|
|
1017
|
-
e.coords =
|
|
1018
|
-
for (var s = i ? this.states.slice(i) : this.states,
|
|
1019
|
-
var
|
|
1020
|
-
(
|
|
1034
|
+
e.coords = S({}, e.pageCoords), e.rect = S({}, o), e.edges = S({}, a);
|
|
1035
|
+
for (var s = i ? this.states.slice(i) : this.states, l = ct(e.coords, e.rect), u = 0; u < s.length; u++) {
|
|
1036
|
+
var c, p = s[u], f = p.options, v = S({}, e.coords), h = null;
|
|
1037
|
+
(c = p.methods) != null && c.set && this.shouldDo(f, r, n) && (e.state = p, h = p.methods.set(e), Pe(e.edges, e.rect, { x: e.coords.x - v.x, y: e.coords.y - v.y })), l.eventProps.push(h);
|
|
1021
1038
|
}
|
|
1022
|
-
|
|
1023
|
-
var
|
|
1024
|
-
if (
|
|
1025
|
-
var
|
|
1026
|
-
|
|
1039
|
+
S(this.edges, e.edges), l.delta.x = e.coords.x - e.pageCoords.x, l.delta.y = e.coords.y - e.pageCoords.y, l.rectDelta.left = e.rect.left - o.left, l.rectDelta.right = e.rect.right - o.right, l.rectDelta.top = e.rect.top - o.top, l.rectDelta.bottom = e.rect.bottom - o.bottom;
|
|
1040
|
+
var m = this.result.coords, w = this.result.rect;
|
|
1041
|
+
if (m && w) {
|
|
1042
|
+
var b = l.rect.left !== w.left || l.rect.right !== w.right || l.rect.top !== w.top || l.rect.bottom !== w.bottom;
|
|
1043
|
+
l.changed = b || m.x !== l.coords.x || m.y !== l.coords.y;
|
|
1027
1044
|
}
|
|
1028
|
-
return
|
|
1045
|
+
return l;
|
|
1029
1046
|
} }, { key: "applyToInteraction", value: function(e) {
|
|
1030
|
-
var n = this.interaction, r = e.phase, i = n.coords.cur, o = n.coords.start, a = this.result, s = this.startDelta,
|
|
1031
|
-
r === "start" &&
|
|
1032
|
-
for (var u = 0,
|
|
1033
|
-
var p =
|
|
1047
|
+
var n = this.interaction, r = e.phase, i = n.coords.cur, o = n.coords.start, a = this.result, s = this.startDelta, l = a.delta;
|
|
1048
|
+
r === "start" && S(this.startDelta, a.delta);
|
|
1049
|
+
for (var u = 0, c = [[o, s], [i, l]]; u < c.length; u++) {
|
|
1050
|
+
var p = c[u], f = p[0], v = p[1];
|
|
1034
1051
|
f.page.x += v.x, f.page.y += v.y, f.client.x += v.x, f.client.y += v.y;
|
|
1035
1052
|
}
|
|
1036
|
-
var h = this.result.rectDelta,
|
|
1037
|
-
|
|
1053
|
+
var h = this.result.rectDelta, m = e.rect || n.rect;
|
|
1054
|
+
m.left += h.left, m.right += h.right, m.top += h.top, m.bottom += h.bottom, m.width = m.right - m.left, m.height = m.bottom - m.top;
|
|
1038
1055
|
} }, { key: "setAndApply", value: function(e) {
|
|
1039
1056
|
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 }));
|
|
1040
1057
|
if (this.result = a, !a.changed && (!o || o < this.states.length) && n.interacting()) return !1;
|
|
1041
1058
|
if (e.modifiedCoords) {
|
|
1042
|
-
var s = n.coords.cur.page,
|
|
1043
|
-
a.coords.x +=
|
|
1059
|
+
var s = n.coords.cur.page, l = { x: e.modifiedCoords.x - s.x, y: e.modifiedCoords.y - s.y };
|
|
1060
|
+
a.coords.x += l.x, a.coords.y += l.y, a.delta.x += l.x, a.delta.y += l.y;
|
|
1044
1061
|
}
|
|
1045
1062
|
this.applyToInteraction(e);
|
|
1046
1063
|
} }, { key: "beforeEnd", value: function(e) {
|
|
@@ -1049,16 +1066,16 @@ function fi() {
|
|
|
1049
1066
|
for (var o = !1, a = 0; a < i.length; a++) {
|
|
1050
1067
|
var s = i[a];
|
|
1051
1068
|
e.state = s;
|
|
1052
|
-
var
|
|
1053
|
-
if (
|
|
1054
|
-
o = o || !o && this.shouldDo(
|
|
1069
|
+
var l = s.options, u = s.methods, c = u.beforeEnd && u.beforeEnd(e);
|
|
1070
|
+
if (c) return this.endResult = c, !1;
|
|
1071
|
+
o = o || !o && this.shouldDo(l, !0, e.phase, !0);
|
|
1055
1072
|
}
|
|
1056
1073
|
o && n.move({ event: r, preEnd: !0 });
|
|
1057
1074
|
}
|
|
1058
1075
|
} }, { key: "stop", value: function(e) {
|
|
1059
1076
|
var n = e.interaction;
|
|
1060
1077
|
if (this.states && this.states.length) {
|
|
1061
|
-
var r =
|
|
1078
|
+
var r = S({ states: this.states, interactable: n.interactable, element: n.element, rect: null }, e);
|
|
1062
1079
|
this.fillArg(r);
|
|
1063
1080
|
for (var i = 0, o = this.states; i < o.length; i++) {
|
|
1064
1081
|
var a = o[i];
|
|
@@ -1076,8 +1093,8 @@ function fi() {
|
|
|
1076
1093
|
} }, { key: "restoreInteractionCoords", value: function(e) {
|
|
1077
1094
|
var n = e.interaction, r = n.coords, i = n.rect, o = n.modification;
|
|
1078
1095
|
if (o.result) {
|
|
1079
|
-
for (var a = o.startDelta, s = o.result,
|
|
1080
|
-
var f = p[
|
|
1096
|
+
for (var a = o.startDelta, s = o.result, l = s.delta, u = s.rectDelta, c = 0, p = [[r.start, a], [r.cur, l]]; c < p.length; c++) {
|
|
1097
|
+
var f = p[c], v = f[0], h = f[1];
|
|
1081
1098
|
v.page.x -= h.x, v.page.y -= h.y, v.client.x -= h.x, v.client.y -= h.y;
|
|
1082
1099
|
}
|
|
1083
1100
|
i.left -= u.left, i.right -= u.right, i.top -= u.top, i.bottom -= u.bottom;
|
|
@@ -1086,37 +1103,37 @@ function fi() {
|
|
|
1086
1103
|
return !(!e || e.enabled === !1 || i && !e.endOnly || e.endOnly && !n || r === "start" && !e.setStart);
|
|
1087
1104
|
} }, { key: "copyFrom", value: function(e) {
|
|
1088
1105
|
this.startOffset = e.startOffset, this.startDelta = e.startDelta, this.startEdges = e.startEdges, this.edges = e.edges, this.states = e.states.map((function(n) {
|
|
1089
|
-
return
|
|
1090
|
-
})), this.result =
|
|
1106
|
+
return je(n);
|
|
1107
|
+
})), this.result = ct(S({}, e.result.coords), S({}, e.result.rect));
|
|
1091
1108
|
} }, { key: "destroy", value: function() {
|
|
1092
1109
|
for (var e in this) this[e] = null;
|
|
1093
1110
|
} }]), t;
|
|
1094
1111
|
})();
|
|
1095
|
-
function
|
|
1112
|
+
function ct(t, e) {
|
|
1096
1113
|
return { rect: e, coords: t, delta: { x: 0, y: 0 }, rectDelta: { left: 0, right: 0, top: 0, bottom: 0 }, eventProps: [], changed: !0 };
|
|
1097
1114
|
}
|
|
1098
|
-
function
|
|
1115
|
+
function we(t, e) {
|
|
1099
1116
|
var n = t.defaults, r = { start: t.start, set: t.set, beforeEnd: t.beforeEnd, stop: t.stop }, i = function(o) {
|
|
1100
1117
|
var a = o || {};
|
|
1101
1118
|
for (var s in a.enabled = a.enabled !== !1, n) s in a || (a[s] = n[s]);
|
|
1102
|
-
var
|
|
1103
|
-
return a.enabled = !0,
|
|
1119
|
+
var l = { options: a, methods: r, name: e, enable: function() {
|
|
1120
|
+
return a.enabled = !0, l;
|
|
1104
1121
|
}, disable: function() {
|
|
1105
|
-
return a.enabled = !1,
|
|
1122
|
+
return a.enabled = !1, l;
|
|
1106
1123
|
} };
|
|
1107
|
-
return
|
|
1124
|
+
return l;
|
|
1108
1125
|
};
|
|
1109
1126
|
return e && typeof e == "string" && (i._defaults = n, i._methods = r), i;
|
|
1110
1127
|
}
|
|
1111
|
-
function
|
|
1128
|
+
function Ye(t) {
|
|
1112
1129
|
var e = t.iEvent, n = t.interaction.modification.result;
|
|
1113
1130
|
n && (e.modifiers = n.eventProps);
|
|
1114
1131
|
}
|
|
1115
|
-
var
|
|
1132
|
+
var sr = { id: "modifiers/base", before: ["actions"], install: function(t) {
|
|
1116
1133
|
t.defaults.perAction.modifiers = [];
|
|
1117
1134
|
}, listeners: { "interactions:new": function(t) {
|
|
1118
1135
|
var e = t.interaction;
|
|
1119
|
-
e.modification = new
|
|
1136
|
+
e.modification = new It(e);
|
|
1120
1137
|
}, "interactions:before-action-start": function(t) {
|
|
1121
1138
|
var e = t.interaction, n = t.interaction.modification;
|
|
1122
1139
|
n.start(t, e.coords.start.page), e.edges = n.edges, n.applyToInteraction(t);
|
|
@@ -1126,22 +1143,22 @@ function fi() {
|
|
|
1126
1143
|
}, "interactions:before-action-end": function(t) {
|
|
1127
1144
|
var e = t.interaction, n = e.modification, r = n.beforeEnd(t);
|
|
1128
1145
|
return e.edges = n.startEdges, r;
|
|
1129
|
-
}, "interactions:action-start":
|
|
1146
|
+
}, "interactions:action-start": Ye, "interactions:action-move": Ye, "interactions:action-end": Ye, "interactions:after-action-start": function(t) {
|
|
1130
1147
|
return t.interaction.modification.restoreInteractionCoords(t);
|
|
1131
1148
|
}, "interactions:after-action-move": function(t) {
|
|
1132
1149
|
return t.interaction.modification.restoreInteractionCoords(t);
|
|
1133
1150
|
}, "interactions:stop": function(t) {
|
|
1134
1151
|
return t.interaction.modification.stop(t);
|
|
1135
|
-
} } },
|
|
1136
|
-
|
|
1137
|
-
var e =
|
|
1138
|
-
function n(r, i, o, a, s,
|
|
1139
|
-
var
|
|
1140
|
-
|
|
1141
|
-
var p = r.interactable, f = (p && p.options ||
|
|
1142
|
-
return
|
|
1143
|
-
}
|
|
1144
|
-
return
|
|
1152
|
+
} } }, fn = sr, dn = { base: { preventDefault: "auto", deltaSource: "page" }, perAction: { enabled: !1, origin: { x: 0, y: 0 } }, actions: {} }, Mt = (function(t) {
|
|
1153
|
+
re(n, t);
|
|
1154
|
+
var e = ke(n);
|
|
1155
|
+
function n(r, i, o, a, s, l, u) {
|
|
1156
|
+
var c;
|
|
1157
|
+
F(this, n), (c = e.call(this, r)).relatedTarget = null, c.screenX = void 0, c.screenY = void 0, c.button = void 0, c.buttons = void 0, c.ctrlKey = void 0, c.shiftKey = void 0, c.altKey = void 0, c.metaKey = void 0, c.page = void 0, c.client = void 0, c.delta = void 0, c.rect = void 0, c.x0 = void 0, c.y0 = void 0, c.t0 = void 0, c.dt = void 0, c.duration = void 0, c.clientX0 = void 0, c.clientY0 = void 0, c.velocity = void 0, c.speed = void 0, c.swipe = void 0, c.axes = void 0, c.preEnd = void 0, s = s || r.element;
|
|
1158
|
+
var p = r.interactable, f = (p && p.options || dn).deltaSource, v = Be(p, s, o), h = a === "start", m = a === "end", w = h ? Le(c) : r.prevEvent, b = h ? r.coords.start : m ? { page: w.page, client: w.client, timeStamp: r.coords.cur.timeStamp } : r.coords.cur;
|
|
1159
|
+
return c.page = S({}, b.page), c.client = S({}, b.client), c.rect = S({}, r.rect), c.timeStamp = b.timeStamp, m || (c.page.x -= v.x, c.page.y -= v.y, c.client.x -= v.x, c.client.y -= v.y), c.ctrlKey = i.ctrlKey, c.altKey = i.altKey, c.shiftKey = i.shiftKey, c.metaKey = i.metaKey, c.button = i.button, c.buttons = i.buttons, c.target = s, c.currentTarget = s, c.preEnd = l, c.type = u || o + (a || ""), c.interactable = p, c.t0 = h ? r.pointers[r.pointers.length - 1].downTime : w.t0, c.x0 = r.coords.start.page.x - v.x, c.y0 = r.coords.start.page.y - v.y, c.clientX0 = r.coords.start.client.x - v.x, c.clientY0 = r.coords.start.client.y - v.y, c.delta = h || m ? { x: 0, y: 0 } : { x: c[f].x - w[f].x, y: c[f].y - w[f].y }, c.dt = r.coords.delta.timeStamp, c.duration = c.timeStamp - c.t0, c.velocity = S({}, r.coords.velocity[f]), c.speed = Ue(c.velocity.x, c.velocity.y), c.swipe = m || a === "inertiastart" ? c.getSwipe() : null, c;
|
|
1160
|
+
}
|
|
1161
|
+
return R(n, [{ key: "getSwipe", value: function() {
|
|
1145
1162
|
var r = this._interaction;
|
|
1146
1163
|
if (r.prevEvent.speed < 600 || this.timeStamp - r.prevEvent.timeStamp > 150) return null;
|
|
1147
1164
|
var i = 180 * Math.atan2(r.prevEvent.velocityY, r.prevEvent.velocityX) / Math.PI;
|
|
@@ -1154,8 +1171,8 @@ function fi() {
|
|
|
1154
1171
|
} }, { key: "stopPropagation", value: function() {
|
|
1155
1172
|
this.propagationStopped = !0;
|
|
1156
1173
|
} }]), n;
|
|
1157
|
-
})(
|
|
1158
|
-
Object.defineProperties(
|
|
1174
|
+
})(at);
|
|
1175
|
+
Object.defineProperties(Mt.prototype, { pageX: { get: function() {
|
|
1159
1176
|
return this.page.x;
|
|
1160
1177
|
}, set: function(t) {
|
|
1161
1178
|
this.page.x = t;
|
|
@@ -1188,49 +1205,49 @@ function fi() {
|
|
|
1188
1205
|
}, set: function(t) {
|
|
1189
1206
|
this.velocity.y = t;
|
|
1190
1207
|
} } });
|
|
1191
|
-
var
|
|
1192
|
-
|
|
1193
|
-
})),
|
|
1208
|
+
var lr = R((function t(e, n, r, i, o) {
|
|
1209
|
+
F(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;
|
|
1210
|
+
})), cr = (function(t) {
|
|
1194
1211
|
return t.interactable = "", t.element = "", t.prepared = "", t.pointerIsDown = "", t.pointerWasMoved = "", t._proxy = "", t;
|
|
1195
|
-
})({}),
|
|
1212
|
+
})({}), hn = (function(t) {
|
|
1196
1213
|
return t.start = "", t.move = "", t.end = "", t.stop = "", t.interacting = "", t;
|
|
1197
|
-
})({}),
|
|
1214
|
+
})({}), ur = 0, pr = (function() {
|
|
1198
1215
|
function t(e) {
|
|
1199
1216
|
var n = this, r = e.pointerType, i = e.scopeFire;
|
|
1200
|
-
|
|
1201
|
-
this.move(
|
|
1202
|
-
}), "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 =
|
|
1217
|
+
F(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 = Xe((function(c) {
|
|
1218
|
+
this.move(c);
|
|
1219
|
+
}), "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 = ur++, this._scopeFire = i, this.pointerType = r;
|
|
1203
1220
|
var o = this;
|
|
1204
1221
|
this._proxy = {};
|
|
1205
|
-
var a = function(
|
|
1206
|
-
Object.defineProperty(n._proxy,
|
|
1207
|
-
return o[
|
|
1222
|
+
var a = function(c) {
|
|
1223
|
+
Object.defineProperty(n._proxy, c, { get: function() {
|
|
1224
|
+
return o[c];
|
|
1208
1225
|
} });
|
|
1209
1226
|
};
|
|
1210
|
-
for (var s in
|
|
1211
|
-
var
|
|
1212
|
-
Object.defineProperty(n._proxy,
|
|
1213
|
-
return o[
|
|
1227
|
+
for (var s in cr) a(s);
|
|
1228
|
+
var l = function(c) {
|
|
1229
|
+
Object.defineProperty(n._proxy, c, { value: function() {
|
|
1230
|
+
return o[c].apply(o, arguments);
|
|
1214
1231
|
} });
|
|
1215
1232
|
};
|
|
1216
|
-
for (var u in
|
|
1233
|
+
for (var u in hn) l(u);
|
|
1217
1234
|
this._scopeFire("interactions:new", { interaction: this });
|
|
1218
1235
|
}
|
|
1219
|
-
return
|
|
1236
|
+
return R(t, [{ key: "pointerMoveTolerance", get: function() {
|
|
1220
1237
|
return 1;
|
|
1221
1238
|
} }, { key: "pointerDown", value: function(e, n, r) {
|
|
1222
1239
|
var i = this.updatePointer(e, n, r, !0), o = this.pointers[i];
|
|
1223
1240
|
this._scopeFire("interactions:down", { pointer: e, event: n, eventTarget: r, pointerIndex: i, pointerInfo: o, type: "down", interaction: this });
|
|
1224
1241
|
} }, { key: "start", value: function(e, n, r) {
|
|
1225
|
-
return !(this.interacting() || !this.pointerIsDown || this.pointers.length < (e.name === "gesture" ? 2 : 1) || !n.options[e.name].enabled) && (
|
|
1242
|
+
return !(this.interacting() || !this.pointerIsDown || this.pointers.length < (e.name === "gesture" ? 2 : 1) || !n.options[e.name].enabled) && (kt(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);
|
|
1226
1243
|
} }, { key: "pointerMove", value: function(e, n, r) {
|
|
1227
1244
|
this.simulation || this.modification && this.modification.endResult || this.updatePointer(e, n, r, !1);
|
|
1228
1245
|
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;
|
|
1229
|
-
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 =
|
|
1230
|
-
var s,
|
|
1231
|
-
a || (s = this.coords.velocity,
|
|
1246
|
+
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 = Ue(i, o) > this.pointerMoveTolerance);
|
|
1247
|
+
var s, l, u, c = this.getPointerIndex(e), p = { pointer: e, pointerIndex: c, pointerInfo: this.pointers[c], event: n, type: "move", eventTarget: r, dx: i, dy: o, duplicate: a, interaction: this };
|
|
1248
|
+
a || (s = this.coords.velocity, l = this.coords.delta, u = Math.max(l.timeStamp / 1e3, 1e-3), s.page.x = l.page.x / u, s.page.y = l.page.y / u, s.client.x = l.client.x / u, s.client.y = l.client.y / u, s.timeStamp = u), this._scopeFire("interactions:move", p), a || this.simulation || (this.interacting() && (p.type = null, this.move(p)), this.pointerWasMoved && it(this.coords.prev, this.coords.cur));
|
|
1232
1249
|
} }, { key: "move", value: function(e) {
|
|
1233
|
-
e && e.event ||
|
|
1250
|
+
e && e.event || Nt(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);
|
|
1234
1251
|
} }, { key: "pointerUp", value: function(e, n, r, i) {
|
|
1235
1252
|
var o = this.getPointerIndex(e);
|
|
1236
1253
|
o === -1 && (o = this.updatePointer(e, n, r, !1));
|
|
@@ -1248,17 +1265,17 @@ function fi() {
|
|
|
1248
1265
|
} }, { key: "stop", value: function() {
|
|
1249
1266
|
this._scopeFire("interactions:stop", { interaction: this }), this.interactable = this.element = null, this._interacting = !1, this._stopped = !0, this.prepared.name = this.prevEvent = null;
|
|
1250
1267
|
} }, { key: "getPointerIndex", value: function(e) {
|
|
1251
|
-
var n =
|
|
1252
|
-
return this.pointerType === "mouse" || this.pointerType === "pen" ? this.pointers.length - 1 :
|
|
1268
|
+
var n = Ne(e);
|
|
1269
|
+
return this.pointerType === "mouse" || this.pointerType === "pen" ? this.pointers.length - 1 : We(this.pointers, (function(r) {
|
|
1253
1270
|
return r.id === n;
|
|
1254
1271
|
}));
|
|
1255
1272
|
} }, { key: "getPointerInfo", value: function(e) {
|
|
1256
1273
|
return this.pointers[this.getPointerIndex(e)];
|
|
1257
1274
|
} }, { key: "updatePointer", value: function(e, n, r, i) {
|
|
1258
|
-
var o, a, s,
|
|
1259
|
-
return i = i !== !1 && (i || /(down|start)$/i.test(n.type)),
|
|
1275
|
+
var o, a, s, l = Ne(e), u = this.getPointerIndex(e), c = this.pointers[u];
|
|
1276
|
+
return i = i !== !1 && (i || /(down|start)$/i.test(n.type)), c ? c.pointer = e : (c = new lr(l, e, n, null, null), u = this.pointers.length, this.pointers.push(c)), Un(this.coords.cur, this.pointers.map((function(p) {
|
|
1260
1277
|
return p.pointer;
|
|
1261
|
-
})), 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,
|
|
1278
|
+
})), 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, c.downTime = this.coords.cur.timeStamp, c.downTarget = r, rt(this.downPointer, e), this.interacting() || (it(this.coords.start, this.coords.cur), it(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: c, pointerIndex: u, interaction: this }), u;
|
|
1262
1279
|
} }, { key: "removePointer", value: function(e, n) {
|
|
1263
1280
|
var r = this.getPointerIndex(e);
|
|
1264
1281
|
if (r !== -1) {
|
|
@@ -1270,60 +1287,60 @@ function fi() {
|
|
|
1270
1287
|
} }, { key: "destroy", value: function() {
|
|
1271
1288
|
this._latestPointer.pointer = null, this._latestPointer.event = null, this._latestPointer.eventTarget = null;
|
|
1272
1289
|
} }, { key: "_createPreparedEvent", value: function(e, n, r, i) {
|
|
1273
|
-
return new
|
|
1290
|
+
return new Mt(this, e, this.prepared.name, n, this.element, r, i);
|
|
1274
1291
|
} }, { key: "_fireEvent", value: function(e) {
|
|
1275
1292
|
var n;
|
|
1276
1293
|
(n = this.interactable) == null || n.fire(e), (!this.prevEvent || e.timeStamp >= this.prevEvent.timeStamp) && (this.prevEvent = e);
|
|
1277
1294
|
} }, { key: "_doPhase", value: function(e) {
|
|
1278
1295
|
var n = e.event, r = e.phase, i = e.preEnd, o = e.type, a = this.rect;
|
|
1279
|
-
if (a && r === "move" && (
|
|
1296
|
+
if (a && r === "move" && (Pe(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;
|
|
1280
1297
|
var s = e.iEvent = this._createPreparedEvent(n, r, i, o);
|
|
1281
1298
|
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;
|
|
1282
1299
|
} }, { key: "_now", value: function() {
|
|
1283
1300
|
return Date.now();
|
|
1284
1301
|
} }]), t;
|
|
1285
1302
|
})();
|
|
1286
|
-
function
|
|
1287
|
-
|
|
1303
|
+
function vn(t) {
|
|
1304
|
+
gn(t.interaction);
|
|
1288
1305
|
}
|
|
1289
|
-
function
|
|
1306
|
+
function gn(t) {
|
|
1290
1307
|
if (!(function(n) {
|
|
1291
1308
|
return !(!n.offset.pending.x && !n.offset.pending.y);
|
|
1292
1309
|
})(t)) return !1;
|
|
1293
1310
|
var e = t.offset.pending;
|
|
1294
|
-
return
|
|
1311
|
+
return Dt(t.coords.cur, e), Dt(t.coords.delta, e), Pe(t.edges, t.rect, e), e.x = 0, e.y = 0, !0;
|
|
1295
1312
|
}
|
|
1296
|
-
function
|
|
1313
|
+
function fr(t) {
|
|
1297
1314
|
var e = t.x, n = t.y;
|
|
1298
1315
|
this.offset.pending.x += e, this.offset.pending.y += n, this.offset.total.x += e, this.offset.total.y += n;
|
|
1299
1316
|
}
|
|
1300
|
-
function
|
|
1317
|
+
function Dt(t, e) {
|
|
1301
1318
|
var n = t.page, r = t.client, i = e.x, o = e.y;
|
|
1302
1319
|
n.x += i, n.y += o, r.x += i, r.y += o;
|
|
1303
1320
|
}
|
|
1304
|
-
|
|
1305
|
-
var
|
|
1306
|
-
t.Interaction.prototype.offsetBy =
|
|
1321
|
+
hn.offsetBy = "";
|
|
1322
|
+
var dr = { id: "offset", before: ["modifiers", "pointer-events", "actions", "inertia"], install: function(t) {
|
|
1323
|
+
t.Interaction.prototype.offsetBy = fr;
|
|
1307
1324
|
}, listeners: { "interactions:new": function(t) {
|
|
1308
1325
|
t.interaction.offset = { total: { x: 0, y: 0 }, pending: { x: 0, y: 0 } };
|
|
1309
1326
|
}, "interactions:update-pointer": function(t) {
|
|
1310
1327
|
return (function(e) {
|
|
1311
|
-
e.pointerIsDown && (
|
|
1328
|
+
e.pointerIsDown && (Dt(e.coords.cur, e.offset.total), e.offset.pending.x = 0, e.offset.pending.y = 0);
|
|
1312
1329
|
})(t.interaction);
|
|
1313
|
-
}, "interactions:before-action-start":
|
|
1330
|
+
}, "interactions:before-action-start": vn, "interactions:before-action-move": vn, "interactions:before-action-end": function(t) {
|
|
1314
1331
|
var e = t.interaction;
|
|
1315
|
-
if (
|
|
1332
|
+
if (gn(e)) return e.move({ offset: !0 }), e.end(), !1;
|
|
1316
1333
|
}, "interactions:stop": function(t) {
|
|
1317
1334
|
var e = t.interaction;
|
|
1318
1335
|
e.offset.total.x = 0, e.offset.total.y = 0, e.offset.pending.x = 0, e.offset.pending.y = 0;
|
|
1319
|
-
} } },
|
|
1336
|
+
} } }, mn = dr, hr = (function() {
|
|
1320
1337
|
function t(e) {
|
|
1321
|
-
|
|
1338
|
+
F(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;
|
|
1322
1339
|
}
|
|
1323
|
-
return
|
|
1324
|
-
var n = this.interaction, r =
|
|
1340
|
+
return R(t, [{ key: "start", value: function(e) {
|
|
1341
|
+
var n = this.interaction, r = ut(n);
|
|
1325
1342
|
if (!r || !r.enabled) return !1;
|
|
1326
|
-
var i = n.coords.velocity.client, o =
|
|
1343
|
+
var i = n.coords.velocity.client, o = Ue(i.x, i.y), a = this.modification || (this.modification = new It(n));
|
|
1327
1344
|
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();
|
|
1328
1345
|
else {
|
|
1329
1346
|
if (a.result = a.setAll(this.modifierArg), !a.result.changed) return !1;
|
|
@@ -1331,7 +1348,7 @@ function fi() {
|
|
|
1331
1348
|
}
|
|
1332
1349
|
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;
|
|
1333
1350
|
} }, { key: "startInertia", value: function() {
|
|
1334
|
-
var e = this, n = this.interaction.coords.velocity.client, r =
|
|
1351
|
+
var e = this, n = this.interaction.coords.velocity.client, r = ut(this.interaction), i = r.resistance, o = -Math.log(r.endSpeed / this.v0) / i;
|
|
1335
1352
|
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;
|
|
1336
1353
|
var a = this.modification, s = this.modifierArg;
|
|
1337
1354
|
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() {
|
|
@@ -1344,46 +1361,46 @@ function fi() {
|
|
|
1344
1361
|
}));
|
|
1345
1362
|
} }, { key: "onNextFrame", value: function(e) {
|
|
1346
1363
|
var n = this;
|
|
1347
|
-
this.timeout =
|
|
1364
|
+
this.timeout = xe.request((function() {
|
|
1348
1365
|
n.active && e();
|
|
1349
1366
|
}));
|
|
1350
1367
|
} }, { key: "inertiaTick", value: function() {
|
|
1351
|
-
var e, n, r, i, o, a, s,
|
|
1368
|
+
var e, n, r, i, o, a, s, l = this, u = this.interaction, c = ut(u).resistance, p = (u._now() - this.t0) / 1e3;
|
|
1352
1369
|
if (p < this.te) {
|
|
1353
|
-
var f, v = 1 - (Math.exp(-
|
|
1354
|
-
this.isModified ? (e = 0, n = 0, r = this.targetOffset.x, i = this.targetOffset.y, o = this.modifiedOffset.x, a = this.modifiedOffset.y, f = { x:
|
|
1370
|
+
var f, v = 1 - (Math.exp(-c * p) - this.lambda_v0) / this.one_ve_v0;
|
|
1371
|
+
this.isModified ? (e = 0, n = 0, r = this.targetOffset.x, i = this.targetOffset.y, o = this.modifiedOffset.x, a = this.modifiedOffset.y, f = { x: yn(s = v, e, r, o), y: yn(s, n, i, a) }) : f = { x: this.targetOffset.x * v, y: this.targetOffset.y * v };
|
|
1355
1372
|
var h = { x: f.x - this.currentOffset.x, y: f.y - this.currentOffset.y };
|
|
1356
1373
|
this.currentOffset.x += h.x, this.currentOffset.y += h.y, u.offsetBy(h), u.move(), this.onNextFrame((function() {
|
|
1357
|
-
return
|
|
1374
|
+
return l.inertiaTick();
|
|
1358
1375
|
}));
|
|
1359
1376
|
} else u.offsetBy({ x: this.modifiedOffset.x - this.currentOffset.x, y: this.modifiedOffset.y - this.currentOffset.y }), this.end();
|
|
1360
1377
|
} }, { key: "smoothEndTick", value: function() {
|
|
1361
|
-
var e = this, n = this.interaction, r = n._now() - this.t0, i =
|
|
1378
|
+
var e = this, n = this.interaction, r = n._now() - this.t0, i = ut(n).smoothEndDuration;
|
|
1362
1379
|
if (r < i) {
|
|
1363
|
-
var o = { x:
|
|
1380
|
+
var o = { x: bn(r, 0, this.targetOffset.x, i), y: bn(r, 0, this.targetOffset.y, i) }, a = { x: o.x - this.currentOffset.x, y: o.y - this.currentOffset.y };
|
|
1364
1381
|
this.currentOffset.x += a.x, this.currentOffset.y += a.y, n.offsetBy(a), n.move({ skipModifiers: this.modifierCount }), this.onNextFrame((function() {
|
|
1365
1382
|
return e.smoothEndTick();
|
|
1366
1383
|
}));
|
|
1367
1384
|
} else n.offsetBy({ x: this.targetOffset.x - this.currentOffset.x, y: this.targetOffset.y - this.currentOffset.y }), this.end();
|
|
1368
1385
|
} }, { key: "resume", value: function(e) {
|
|
1369
1386
|
var n = e.pointer, r = e.event, i = e.eventTarget, o = this.interaction;
|
|
1370
|
-
o.offsetBy({ x: -this.currentOffset.x, y: -this.currentOffset.y }), o.updatePointer(n, r, i, !0), o._doPhase({ interaction: o, event: r, phase: "resume" }),
|
|
1387
|
+
o.offsetBy({ x: -this.currentOffset.x, y: -this.currentOffset.y }), o.updatePointer(n, r, i, !0), o._doPhase({ interaction: o, event: r, phase: "resume" }), it(o.coords.prev, o.coords.cur), this.stop();
|
|
1371
1388
|
} }, { key: "end", value: function() {
|
|
1372
1389
|
this.interaction.move(), this.interaction.end(), this.stop();
|
|
1373
1390
|
} }, { key: "stop", value: function() {
|
|
1374
|
-
this.active = this.smoothEnd = !1, this.interaction.simulation = null,
|
|
1391
|
+
this.active = this.smoothEnd = !1, this.interaction.simulation = null, xe.cancel(this.timeout);
|
|
1375
1392
|
} }]), t;
|
|
1376
1393
|
})();
|
|
1377
|
-
function
|
|
1394
|
+
function ut(t) {
|
|
1378
1395
|
var e = t.interactable, n = t.prepared;
|
|
1379
1396
|
return e && e.options && n.name && e.options[n.name].inertia;
|
|
1380
1397
|
}
|
|
1381
|
-
var
|
|
1398
|
+
var vr = { id: "inertia", before: ["modifiers", "actions"], install: function(t) {
|
|
1382
1399
|
var e = t.defaults;
|
|
1383
|
-
t.usePlugin(
|
|
1400
|
+
t.usePlugin(mn), t.usePlugin(fn), 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 };
|
|
1384
1401
|
}, listeners: { "interactions:new": function(t) {
|
|
1385
1402
|
var e = t.interaction;
|
|
1386
|
-
e.inertia = new
|
|
1403
|
+
e.inertia = new hr(e);
|
|
1387
1404
|
}, "interactions:before-action-end": function(t) {
|
|
1388
1405
|
var e = t.interaction, n = t.event;
|
|
1389
1406
|
return (!e._interacting || e.simulation || !e.inertia.start(n)) && null;
|
|
@@ -1394,7 +1411,7 @@ function fi() {
|
|
|
1394
1411
|
r.resume(t);
|
|
1395
1412
|
break;
|
|
1396
1413
|
}
|
|
1397
|
-
i =
|
|
1414
|
+
i = g(i);
|
|
1398
1415
|
}
|
|
1399
1416
|
}, "interactions:stop": function(t) {
|
|
1400
1417
|
var e = t.interaction.inertia;
|
|
@@ -1404,53 +1421,53 @@ function fi() {
|
|
|
1404
1421
|
e.stop(t), e.start(t, t.interaction.coords.cur.page), e.applyToInteraction(t);
|
|
1405
1422
|
}, "interactions:before-action-inertiastart": function(t) {
|
|
1406
1423
|
return t.interaction.modification.setAndApply(t);
|
|
1407
|
-
}, "interactions:action-resume":
|
|
1424
|
+
}, "interactions:action-resume": Ye, "interactions:action-inertiastart": Ye, "interactions:after-action-inertiastart": function(t) {
|
|
1408
1425
|
return t.interaction.modification.restoreInteractionCoords(t);
|
|
1409
1426
|
}, "interactions:after-action-resume": function(t) {
|
|
1410
1427
|
return t.interaction.modification.restoreInteractionCoords(t);
|
|
1411
1428
|
} } };
|
|
1412
|
-
function
|
|
1429
|
+
function yn(t, e, n, r) {
|
|
1413
1430
|
var i = 1 - t;
|
|
1414
1431
|
return i * i * e + 2 * i * t * n + t * t * r;
|
|
1415
1432
|
}
|
|
1416
|
-
function
|
|
1433
|
+
function bn(t, e, n, r) {
|
|
1417
1434
|
return -n * (t /= r) * (t - 2) + e;
|
|
1418
1435
|
}
|
|
1419
|
-
var
|
|
1420
|
-
function
|
|
1436
|
+
var gr = vr;
|
|
1437
|
+
function xn(t, e) {
|
|
1421
1438
|
for (var n = 0; n < e.length; n++) {
|
|
1422
1439
|
var r = e[n];
|
|
1423
1440
|
if (t.immediatePropagationStopped) break;
|
|
1424
1441
|
r(t);
|
|
1425
1442
|
}
|
|
1426
1443
|
}
|
|
1427
|
-
var
|
|
1444
|
+
var wn = (function() {
|
|
1428
1445
|
function t(e) {
|
|
1429
|
-
|
|
1446
|
+
F(this, t), this.options = void 0, this.types = {}, this.propagationStopped = !1, this.immediatePropagationStopped = !1, this.global = void 0, this.options = S({}, e || {});
|
|
1430
1447
|
}
|
|
1431
|
-
return
|
|
1448
|
+
return R(t, [{ key: "fire", value: function(e) {
|
|
1432
1449
|
var n, r = this.global;
|
|
1433
|
-
(n = this.types[e.type]) &&
|
|
1450
|
+
(n = this.types[e.type]) && xn(e, n), !e.propagationStopped && r && (n = r[e.type]) && xn(e, n);
|
|
1434
1451
|
} }, { key: "on", value: function(e, n) {
|
|
1435
|
-
var r =
|
|
1436
|
-
for (e in r) this.types[e] =
|
|
1452
|
+
var r = Ie(e, n);
|
|
1453
|
+
for (e in r) this.types[e] = Ht(this.types[e] || [], r[e]);
|
|
1437
1454
|
} }, { key: "off", value: function(e, n) {
|
|
1438
|
-
var r =
|
|
1455
|
+
var r = Ie(e, n);
|
|
1439
1456
|
for (e in r) {
|
|
1440
1457
|
var i = this.types[e];
|
|
1441
1458
|
if (i && i.length) for (var o = 0, a = r[e]; o < a.length; o++) {
|
|
1442
|
-
var s = a[o],
|
|
1443
|
-
|
|
1459
|
+
var s = a[o], l = i.indexOf(s);
|
|
1460
|
+
l !== -1 && i.splice(l, 1);
|
|
1444
1461
|
}
|
|
1445
1462
|
}
|
|
1446
1463
|
} }, { key: "getRect", value: function(e) {
|
|
1447
1464
|
return null;
|
|
1448
1465
|
} }]), t;
|
|
1449
|
-
})(),
|
|
1466
|
+
})(), mr = (function() {
|
|
1450
1467
|
function t(e) {
|
|
1451
|
-
|
|
1468
|
+
F(this, t), this.currentTarget = void 0, this.originalEvent = void 0, this.type = void 0, this.originalEvent = e, rt(this, e);
|
|
1452
1469
|
}
|
|
1453
|
-
return
|
|
1470
|
+
return R(t, [{ key: "preventOriginalDefault", value: function() {
|
|
1454
1471
|
this.originalEvent.preventDefault();
|
|
1455
1472
|
} }, { key: "stopPropagation", value: function() {
|
|
1456
1473
|
this.originalEvent.stopPropagation();
|
|
@@ -1458,107 +1475,107 @@ function fi() {
|
|
|
1458
1475
|
this.originalEvent.stopImmediatePropagation();
|
|
1459
1476
|
} }]), t;
|
|
1460
1477
|
})();
|
|
1461
|
-
function
|
|
1478
|
+
function Ge(t) {
|
|
1462
1479
|
return d.object(t) ? { capture: !!t.capture, passive: !!t.passive } : { capture: !!t, passive: !1 };
|
|
1463
1480
|
}
|
|
1464
|
-
function
|
|
1481
|
+
function pt(t, e) {
|
|
1465
1482
|
return t === e || (typeof t == "boolean" ? !!e.capture === t && !e.passive : !!t.capture == !!e.capture && !!t.passive == !!e.passive);
|
|
1466
1483
|
}
|
|
1467
|
-
var
|
|
1468
|
-
var e, n = [], r = {}, i = [], o = { add: a, remove: s, addDelegate: function(
|
|
1469
|
-
var
|
|
1484
|
+
var yr = { id: "events", install: function(t) {
|
|
1485
|
+
var e, n = [], r = {}, i = [], o = { add: a, remove: s, addDelegate: function(c, p, f, v, h) {
|
|
1486
|
+
var m = Ge(h);
|
|
1470
1487
|
if (!r[f]) {
|
|
1471
1488
|
r[f] = [];
|
|
1472
|
-
for (var
|
|
1473
|
-
var
|
|
1474
|
-
a(
|
|
1489
|
+
for (var w = 0; w < i.length; w++) {
|
|
1490
|
+
var b = i[w];
|
|
1491
|
+
a(b, f, l), a(b, f, u, !0);
|
|
1475
1492
|
}
|
|
1476
1493
|
}
|
|
1477
|
-
var
|
|
1478
|
-
return
|
|
1494
|
+
var _ = r[f], P = qe(_, (function(M) {
|
|
1495
|
+
return M.selector === c && M.context === p;
|
|
1479
1496
|
}));
|
|
1480
|
-
|
|
1481
|
-
}, removeDelegate: function(
|
|
1482
|
-
var
|
|
1483
|
-
if (
|
|
1484
|
-
for (
|
|
1485
|
-
var
|
|
1486
|
-
if (
|
|
1487
|
-
for (var
|
|
1488
|
-
var
|
|
1489
|
-
if (
|
|
1490
|
-
|
|
1497
|
+
P || (P = { selector: c, context: p, listeners: [] }, _.push(P)), P.listeners.push({ func: v, options: m });
|
|
1498
|
+
}, removeDelegate: function(c, p, f, v, h) {
|
|
1499
|
+
var m, w = Ge(h), b = r[f], _ = !1;
|
|
1500
|
+
if (b)
|
|
1501
|
+
for (m = b.length - 1; m >= 0; m--) {
|
|
1502
|
+
var P = b[m];
|
|
1503
|
+
if (P.selector === c && P.context === p) {
|
|
1504
|
+
for (var M = P.listeners, k = M.length - 1; k >= 0; k--) {
|
|
1505
|
+
var I = M[k];
|
|
1506
|
+
if (I.func === v && pt(I.options, w)) {
|
|
1507
|
+
M.splice(k, 1), M.length || (b.splice(m, 1), s(p, f, l), s(p, f, u, !0)), _ = !0;
|
|
1491
1508
|
break;
|
|
1492
1509
|
}
|
|
1493
1510
|
}
|
|
1494
|
-
if (
|
|
1511
|
+
if (_) break;
|
|
1495
1512
|
}
|
|
1496
1513
|
}
|
|
1497
|
-
}, delegateListener:
|
|
1498
|
-
function a(
|
|
1499
|
-
if (
|
|
1500
|
-
var h =
|
|
1501
|
-
return
|
|
1514
|
+
}, delegateListener: l, delegateUseCapture: u, delegatedEvents: r, documents: i, targets: n, supportsOptions: !1, supportsPassive: !1 };
|
|
1515
|
+
function a(c, p, f, v) {
|
|
1516
|
+
if (c.addEventListener) {
|
|
1517
|
+
var h = Ge(v), m = qe(n, (function(w) {
|
|
1518
|
+
return w.eventTarget === c;
|
|
1502
1519
|
}));
|
|
1503
|
-
|
|
1504
|
-
return
|
|
1505
|
-
})) || (
|
|
1520
|
+
m || (m = { eventTarget: c, events: {} }, n.push(m)), m.events[p] || (m.events[p] = []), qe(m.events[p], (function(w) {
|
|
1521
|
+
return w.func === f && pt(w.options, h);
|
|
1522
|
+
})) || (c.addEventListener(p, f, o.supportsOptions ? h : h.capture), m.events[p].push({ func: f, options: h }));
|
|
1506
1523
|
}
|
|
1507
1524
|
}
|
|
1508
|
-
function s(
|
|
1509
|
-
if (
|
|
1510
|
-
var h =
|
|
1511
|
-
return
|
|
1512
|
-
})),
|
|
1513
|
-
if (
|
|
1514
|
-
var
|
|
1515
|
-
if (
|
|
1525
|
+
function s(c, p, f, v) {
|
|
1526
|
+
if (c.addEventListener && c.removeEventListener) {
|
|
1527
|
+
var h = We(n, (function(G) {
|
|
1528
|
+
return G.eventTarget === c;
|
|
1529
|
+
})), m = n[h];
|
|
1530
|
+
if (m && m.events) if (p !== "all") {
|
|
1531
|
+
var w = !1, b = m.events[p];
|
|
1532
|
+
if (b) {
|
|
1516
1533
|
if (f === "all") {
|
|
1517
|
-
for (var
|
|
1518
|
-
var
|
|
1519
|
-
s(
|
|
1534
|
+
for (var _ = b.length - 1; _ >= 0; _--) {
|
|
1535
|
+
var P = b[_];
|
|
1536
|
+
s(c, p, P.func, P.options);
|
|
1520
1537
|
}
|
|
1521
1538
|
return;
|
|
1522
1539
|
}
|
|
1523
|
-
for (var
|
|
1524
|
-
var
|
|
1525
|
-
if (
|
|
1526
|
-
|
|
1540
|
+
for (var M = Ge(v), k = 0; k < b.length; k++) {
|
|
1541
|
+
var I = b[k];
|
|
1542
|
+
if (I.func === f && pt(I.options, M)) {
|
|
1543
|
+
c.removeEventListener(p, f, o.supportsOptions ? M : M.capture), b.splice(k, 1), b.length === 0 && (delete m.events[p], w = !0);
|
|
1527
1544
|
break;
|
|
1528
1545
|
}
|
|
1529
1546
|
}
|
|
1530
1547
|
}
|
|
1531
|
-
|
|
1532
|
-
} else for (p in
|
|
1548
|
+
w && !Object.keys(m.events).length && n.splice(h, 1);
|
|
1549
|
+
} else for (p in m.events) m.events.hasOwnProperty(p) && s(c, p, "all");
|
|
1533
1550
|
}
|
|
1534
1551
|
}
|
|
1535
|
-
function c
|
|
1536
|
-
for (var f =
|
|
1537
|
-
for (var
|
|
1538
|
-
var
|
|
1539
|
-
if (
|
|
1540
|
-
var
|
|
1541
|
-
v.currentTarget =
|
|
1542
|
-
for (var
|
|
1543
|
-
var
|
|
1544
|
-
|
|
1552
|
+
function l(c, p) {
|
|
1553
|
+
for (var f = Ge(p), v = new mr(c), h = r[c.type], m = Gt(c)[0], w = m; d.element(w); ) {
|
|
1554
|
+
for (var b = 0; b < h.length; b++) {
|
|
1555
|
+
var _ = h[b], P = _.selector, M = _.context;
|
|
1556
|
+
if (y(w, P) && he(M, m) && he(M, w)) {
|
|
1557
|
+
var k = _.listeners;
|
|
1558
|
+
v.currentTarget = w;
|
|
1559
|
+
for (var I = 0; I < k.length; I++) {
|
|
1560
|
+
var G = k[I];
|
|
1561
|
+
pt(G.options, f) && G.func(v);
|
|
1545
1562
|
}
|
|
1546
1563
|
}
|
|
1547
1564
|
}
|
|
1548
|
-
|
|
1565
|
+
w = g(w);
|
|
1549
1566
|
}
|
|
1550
1567
|
}
|
|
1551
|
-
function u(
|
|
1552
|
-
return c
|
|
1568
|
+
function u(c) {
|
|
1569
|
+
return l(c, !0);
|
|
1553
1570
|
}
|
|
1554
1571
|
return (e = t.document) == null || e.createElement("div").addEventListener("test", null, { get capture() {
|
|
1555
1572
|
return o.supportsOptions = !0;
|
|
1556
1573
|
}, get passive() {
|
|
1557
1574
|
return o.supportsPassive = !0;
|
|
1558
1575
|
} }), t.events = o, o;
|
|
1559
|
-
} },
|
|
1560
|
-
for (var e = 0, n =
|
|
1561
|
-
var r = n[e], i =
|
|
1576
|
+
} }, zt = { methodOrder: ["simulationResume", "mouseOrPen", "hasPointer", "idle"], search: function(t) {
|
|
1577
|
+
for (var e = 0, n = zt.methodOrder; e < n.length; e++) {
|
|
1578
|
+
var r = n[e], i = zt[r](t);
|
|
1562
1579
|
if (i) return i;
|
|
1563
1580
|
}
|
|
1564
1581
|
return null;
|
|
@@ -1566,10 +1583,10 @@ function fi() {
|
|
|
1566
1583
|
var e = t.pointerType, n = t.eventType, r = t.eventTarget, i = t.scope;
|
|
1567
1584
|
if (!/down|start/i.test(n)) return null;
|
|
1568
1585
|
for (var o = 0, a = i.interactions.list; o < a.length; o++) {
|
|
1569
|
-
var s = a[o],
|
|
1570
|
-
if (s.simulation && s.simulation.allowResume && s.pointerType === e) for (;
|
|
1571
|
-
if (
|
|
1572
|
-
|
|
1586
|
+
var s = a[o], l = r;
|
|
1587
|
+
if (s.simulation && s.simulation.allowResume && s.pointerType === e) for (; l; ) {
|
|
1588
|
+
if (l === s.element) return s;
|
|
1589
|
+
l = g(l);
|
|
1573
1590
|
}
|
|
1574
1591
|
}
|
|
1575
1592
|
return null;
|
|
@@ -1577,23 +1594,23 @@ function fi() {
|
|
|
1577
1594
|
var e, n = t.pointerId, r = t.pointerType, i = t.eventType, o = t.scope;
|
|
1578
1595
|
if (r !== "mouse" && r !== "pen") return null;
|
|
1579
1596
|
for (var a = 0, s = o.interactions.list; a < s.length; a++) {
|
|
1580
|
-
var
|
|
1581
|
-
if (
|
|
1582
|
-
if (
|
|
1583
|
-
if (
|
|
1584
|
-
e || (e =
|
|
1597
|
+
var l = s[a];
|
|
1598
|
+
if (l.pointerType === r) {
|
|
1599
|
+
if (l.simulation && !Sn(l, n)) continue;
|
|
1600
|
+
if (l.interacting()) return l;
|
|
1601
|
+
e || (e = l);
|
|
1585
1602
|
}
|
|
1586
1603
|
}
|
|
1587
1604
|
if (e) return e;
|
|
1588
|
-
for (var u = 0,
|
|
1589
|
-
var p =
|
|
1605
|
+
for (var u = 0, c = o.interactions.list; u < c.length; u++) {
|
|
1606
|
+
var p = c[u];
|
|
1590
1607
|
if (!(p.pointerType !== r || /down/i.test(i) && p.simulation)) return p;
|
|
1591
1608
|
}
|
|
1592
1609
|
return null;
|
|
1593
1610
|
}, hasPointer: function(t) {
|
|
1594
1611
|
for (var e = t.pointerId, n = 0, r = t.scope.interactions.list; n < r.length; n++) {
|
|
1595
1612
|
var i = r[n];
|
|
1596
|
-
if (
|
|
1613
|
+
if (Sn(i, e)) return i;
|
|
1597
1614
|
}
|
|
1598
1615
|
return null;
|
|
1599
1616
|
}, idle: function(t) {
|
|
@@ -1607,130 +1624,130 @@ function fi() {
|
|
|
1607
1624
|
}
|
|
1608
1625
|
return null;
|
|
1609
1626
|
} };
|
|
1610
|
-
function
|
|
1627
|
+
function Sn(t, e) {
|
|
1611
1628
|
return t.pointers.some((function(n) {
|
|
1612
1629
|
return n.id === e;
|
|
1613
1630
|
}));
|
|
1614
1631
|
}
|
|
1615
|
-
var
|
|
1616
|
-
function
|
|
1632
|
+
var br = zt, Ct = ["pointerDown", "pointerMove", "pointerUp", "updatePointer", "removePointer", "windowBlur"];
|
|
1633
|
+
function En(t, e) {
|
|
1617
1634
|
return function(n) {
|
|
1618
|
-
var r = e.interactions.list, i =
|
|
1635
|
+
var r = e.interactions.list, i = Yt(n), o = Gt(n), a = o[0], s = o[1], l = [];
|
|
1619
1636
|
if (/^touch/.test(n.type)) {
|
|
1620
1637
|
e.prevTouchTime = e.now();
|
|
1621
|
-
for (var u = 0,
|
|
1622
|
-
var p =
|
|
1623
|
-
|
|
1638
|
+
for (var u = 0, c = n.changedTouches; u < c.length; u++) {
|
|
1639
|
+
var p = c[u], f = { pointer: p, pointerId: Ne(p), pointerType: i, eventType: n.type, eventTarget: a, curEventTarget: s, scope: e }, v = _n(f);
|
|
1640
|
+
l.push([f.pointer, f.eventTarget, f.curEventTarget, v]);
|
|
1624
1641
|
}
|
|
1625
1642
|
} else {
|
|
1626
1643
|
var h = !1;
|
|
1627
|
-
if (!
|
|
1628
|
-
for (var
|
|
1644
|
+
if (!J.supportsPointerEvent && /mouse/.test(n.type)) {
|
|
1645
|
+
for (var m = 0; m < r.length && !h; m++) h = r[m].pointerType !== "mouse" && r[m].pointerIsDown;
|
|
1629
1646
|
h = h || e.now() - e.prevTouchTime < 500 || n.timeStamp === 0;
|
|
1630
1647
|
}
|
|
1631
1648
|
if (!h) {
|
|
1632
|
-
var
|
|
1633
|
-
|
|
1649
|
+
var w = { pointer: n, pointerId: Ne(n), pointerType: i, eventType: n.type, curEventTarget: s, eventTarget: a, scope: e }, b = _n(w);
|
|
1650
|
+
l.push([w.pointer, w.eventTarget, w.curEventTarget, b]);
|
|
1634
1651
|
}
|
|
1635
1652
|
}
|
|
1636
|
-
for (var
|
|
1637
|
-
var
|
|
1638
|
-
|
|
1653
|
+
for (var _ = 0; _ < l.length; _++) {
|
|
1654
|
+
var P = l[_], M = P[0], k = P[1], I = P[2];
|
|
1655
|
+
P[3][t](M, n, k, I);
|
|
1639
1656
|
}
|
|
1640
1657
|
};
|
|
1641
1658
|
}
|
|
1642
|
-
function
|
|
1643
|
-
var e = t.pointerType, n = t.scope, r = { interaction:
|
|
1659
|
+
function _n(t) {
|
|
1660
|
+
var e = t.pointerType, n = t.scope, r = { interaction: br.search(t), searchDetails: t };
|
|
1644
1661
|
return n.fire("interactions:find", r), r.interaction || n.interactions.new({ pointerType: e });
|
|
1645
1662
|
}
|
|
1646
|
-
function
|
|
1663
|
+
function At(t, e) {
|
|
1647
1664
|
var n = t.doc, r = t.scope, i = t.options, o = r.interactions.docEvents, a = r.events, s = a[e];
|
|
1648
|
-
for (var
|
|
1649
|
-
for (var u = i && i.events,
|
|
1650
|
-
var p = o[
|
|
1665
|
+
for (var l in r.browser.isIOS && !i.events && (i.events = { passive: !1 }), a.delegatedEvents) s(n, l, a.delegateListener), s(n, l, a.delegateUseCapture, !0);
|
|
1666
|
+
for (var u = i && i.events, c = 0; c < o.length; c++) {
|
|
1667
|
+
var p = o[c];
|
|
1651
1668
|
s(n, p.type, p.listener, u);
|
|
1652
1669
|
}
|
|
1653
1670
|
}
|
|
1654
|
-
var
|
|
1655
|
-
for (var e = {}, n = 0; n <
|
|
1656
|
-
var r =
|
|
1657
|
-
e[r] =
|
|
1671
|
+
var xr = { id: "core/interactions", install: function(t) {
|
|
1672
|
+
for (var e = {}, n = 0; n < Ct.length; n++) {
|
|
1673
|
+
var r = Ct[n];
|
|
1674
|
+
e[r] = En(r, t);
|
|
1658
1675
|
}
|
|
1659
|
-
var i, o =
|
|
1676
|
+
var i, o = J.pEventTypes;
|
|
1660
1677
|
function a() {
|
|
1661
|
-
for (var s = 0,
|
|
1662
|
-
var u =
|
|
1663
|
-
if (u.pointerIsDown && u.pointerType === "touch" && !u._interacting) for (var
|
|
1678
|
+
for (var s = 0, l = t.interactions.list; s < l.length; s++) {
|
|
1679
|
+
var u = l[s];
|
|
1680
|
+
if (u.pointerIsDown && u.pointerType === "touch" && !u._interacting) for (var c = function() {
|
|
1664
1681
|
var v = f[p];
|
|
1665
1682
|
t.documents.some((function(h) {
|
|
1666
|
-
return
|
|
1683
|
+
return he(h.doc, v.downTarget);
|
|
1667
1684
|
})) || u.removePointer(v.pointer, v.event);
|
|
1668
|
-
}, p = 0, f = u.pointers; p < f.length; p++)
|
|
1685
|
+
}, p = 0, f = u.pointers; p < f.length; p++) c();
|
|
1669
1686
|
}
|
|
1670
1687
|
}
|
|
1671
|
-
(i =
|
|
1672
|
-
for (var
|
|
1673
|
-
u[
|
|
1688
|
+
(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) {
|
|
1689
|
+
for (var l = 0, u = t.interactions.list; l < u.length; l++)
|
|
1690
|
+
u[l].documentBlur(s);
|
|
1674
1691
|
} }), t.prevTouchTime = 0, t.Interaction = (function(s) {
|
|
1675
|
-
|
|
1676
|
-
var
|
|
1692
|
+
re(u, s);
|
|
1693
|
+
var l = ke(u);
|
|
1677
1694
|
function u() {
|
|
1678
|
-
return
|
|
1695
|
+
return F(this, u), l.apply(this, arguments);
|
|
1679
1696
|
}
|
|
1680
|
-
return
|
|
1697
|
+
return R(u, [{ key: "pointerMoveTolerance", get: function() {
|
|
1681
1698
|
return t.interactions.pointerMoveTolerance;
|
|
1682
|
-
}, set: function(
|
|
1683
|
-
t.interactions.pointerMoveTolerance =
|
|
1699
|
+
}, set: function(c) {
|
|
1700
|
+
t.interactions.pointerMoveTolerance = c;
|
|
1684
1701
|
} }, { key: "_now", value: function() {
|
|
1685
1702
|
return t.now();
|
|
1686
1703
|
} }]), u;
|
|
1687
|
-
})(
|
|
1688
|
-
s.scopeFire = function(u,
|
|
1689
|
-
return t.fire(u,
|
|
1704
|
+
})(pr), t.interactions = { list: [], new: function(s) {
|
|
1705
|
+
s.scopeFire = function(u, c) {
|
|
1706
|
+
return t.fire(u, c);
|
|
1690
1707
|
};
|
|
1691
|
-
var
|
|
1692
|
-
return t.interactions.list.push(
|
|
1693
|
-
}, listeners: e, docEvents: i, pointerMoveTolerance: 1 }, t.usePlugin(
|
|
1708
|
+
var l = new t.Interaction(s);
|
|
1709
|
+
return t.interactions.list.push(l), l;
|
|
1710
|
+
}, listeners: e, docEvents: i, pointerMoveTolerance: 1 }, t.usePlugin(pn);
|
|
1694
1711
|
}, listeners: { "scope:add-document": function(t) {
|
|
1695
|
-
return
|
|
1712
|
+
return At(t, "add");
|
|
1696
1713
|
}, "scope:remove-document": function(t) {
|
|
1697
|
-
return
|
|
1714
|
+
return At(t, "remove");
|
|
1698
1715
|
}, "interactable:unset": function(t, e) {
|
|
1699
1716
|
for (var n = t.interactable, r = e.interactions.list.length - 1; r >= 0; r--) {
|
|
1700
1717
|
var i = e.interactions.list[r];
|
|
1701
1718
|
i.interactable === n && (i.stop(), e.fire("interactions:destroy", { interaction: i }), i.destroy(), e.interactions.list.length > 2 && e.interactions.list.splice(r, 1));
|
|
1702
1719
|
}
|
|
1703
|
-
} }, onDocSignal:
|
|
1720
|
+
} }, onDocSignal: At, doOnInteractions: En, methodNames: Ct }, wr = xr, Se = (function(t) {
|
|
1704
1721
|
return t[t.On = 0] = "On", t[t.Off = 1] = "Off", t;
|
|
1705
|
-
})(
|
|
1722
|
+
})(Se || {}), Sr = (function() {
|
|
1706
1723
|
function t(e, n, r, i) {
|
|
1707
|
-
|
|
1724
|
+
F(this, t), this.target = void 0, this.options = void 0, this._actions = void 0, this.events = new wn(), 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 = X(ie(e) ? this._context : e), this._doc = this._win.document, this._scopeEvents = i, this.set(n);
|
|
1708
1725
|
}
|
|
1709
|
-
return
|
|
1726
|
+
return R(t, [{ key: "_defaults", get: function() {
|
|
1710
1727
|
return { base: {}, perAction: {}, actions: {} };
|
|
1711
1728
|
} }, { key: "setOnEvents", value: function(e, n) {
|
|
1712
1729
|
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;
|
|
1713
1730
|
} }, { key: "updatePerActionListeners", value: function(e, n, r) {
|
|
1714
|
-
var i, o = this, a = (i = this._actions.map[e]) == null ? void 0 : i.filterEventType, s = function(
|
|
1715
|
-
return (a == null || a(
|
|
1731
|
+
var i, o = this, a = (i = this._actions.map[e]) == null ? void 0 : i.filterEventType, s = function(l) {
|
|
1732
|
+
return (a == null || a(l)) && lt(l, o._actions);
|
|
1716
1733
|
};
|
|
1717
|
-
(d.array(n) || d.object(n)) && this._onOff(
|
|
1734
|
+
(d.array(n) || d.object(n)) && this._onOff(Se.Off, e, n, void 0, s), (d.array(r) || d.object(r)) && this._onOff(Se.On, e, r, void 0, s);
|
|
1718
1735
|
} }, { key: "setPerAction", value: function(e, n) {
|
|
1719
1736
|
var r = this._defaults;
|
|
1720
1737
|
for (var i in n) {
|
|
1721
1738
|
var o = i, a = this.options[e], s = n[o];
|
|
1722
|
-
o === "listeners" && this.updatePerActionListeners(e, a.listeners, s), d.array(s) ? a[o] =
|
|
1739
|
+
o === "listeners" && this.updatePerActionListeners(e, a.listeners, s), d.array(s) ? a[o] = Zt(s) : d.plainObject(s) ? (a[o] = S(a[o] || {}, je(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;
|
|
1723
1740
|
}
|
|
1724
1741
|
} }, { key: "getRect", value: function(e) {
|
|
1725
|
-
return e = e || (d.element(this.target) ? this.target : null), d.string(this.target) && (e = e || this._context.querySelector(this.target)),
|
|
1742
|
+
return e = e || (d.element(this.target) ? this.target : null), d.string(this.target) && (e = e || this._context.querySelector(this.target)), B(e);
|
|
1726
1743
|
} }, { key: "rectChecker", value: function(e) {
|
|
1727
1744
|
var n = this;
|
|
1728
1745
|
return d.func(e) ? (this.getRect = function(r) {
|
|
1729
|
-
var i =
|
|
1746
|
+
var i = S({}, e.apply(n, r));
|
|
1730
1747
|
return "width" in i || (i.width = i.right - i.left, i.height = i.bottom - i.top), i;
|
|
1731
1748
|
}, this) : e === null ? (delete this.getRect, this) : this.getRect;
|
|
1732
1749
|
} }, { key: "_backCompatOption", value: function(e, n) {
|
|
1733
|
-
if (
|
|
1750
|
+
if (ie(n) || d.object(n)) {
|
|
1734
1751
|
for (var r in this.options[e] = n, this._actions.map) this.options[r][e] = n;
|
|
1735
1752
|
return this;
|
|
1736
1753
|
}
|
|
@@ -1745,35 +1762,35 @@ function fi() {
|
|
|
1745
1762
|
} }, { key: "context", value: function() {
|
|
1746
1763
|
return this._context;
|
|
1747
1764
|
} }, { key: "inContext", value: function(e) {
|
|
1748
|
-
return this._context === e.ownerDocument ||
|
|
1765
|
+
return this._context === e.ownerDocument || he(this._context, e);
|
|
1749
1766
|
} }, { key: "testIgnoreAllow", value: function(e, n, r) {
|
|
1750
1767
|
return !this.testIgnore(e.ignoreFrom, n, r) && this.testAllow(e.allowFrom, n, r);
|
|
1751
1768
|
} }, { key: "testAllow", value: function(e, n, r) {
|
|
1752
|
-
return !e || !!d.element(r) && (d.string(e) ?
|
|
1769
|
+
return !e || !!d.element(r) && (d.string(e) ? D(r, e, n) : !!d.element(e) && he(e, r));
|
|
1753
1770
|
} }, { key: "testIgnore", value: function(e, n, r) {
|
|
1754
|
-
return !(!e || !d.element(r)) && (d.string(e) ?
|
|
1771
|
+
return !(!e || !d.element(r)) && (d.string(e) ? D(r, e, n) : !!d.element(e) && he(e, r));
|
|
1755
1772
|
} }, { key: "fire", value: function(e) {
|
|
1756
1773
|
return this.events.fire(e), this;
|
|
1757
1774
|
} }, { key: "_onOff", value: function(e, n, r, i, o) {
|
|
1758
1775
|
d.object(n) && !d.array(n) && (i = r, r = null);
|
|
1759
|
-
var a =
|
|
1776
|
+
var a = Ie(n, r, o);
|
|
1760
1777
|
for (var s in a) {
|
|
1761
|
-
s === "wheel" && (s =
|
|
1762
|
-
for (var
|
|
1763
|
-
var
|
|
1764
|
-
|
|
1778
|
+
s === "wheel" && (s = J.wheelEvent);
|
|
1779
|
+
for (var l = 0, u = a[s]; l < u.length; l++) {
|
|
1780
|
+
var c = u[l];
|
|
1781
|
+
lt(s, this._actions) ? this.events[e === Se.On ? "on" : "off"](s, c) : d.string(this.target) ? this._scopeEvents[e === Se.On ? "addDelegate" : "removeDelegate"](this.target, this._context, s, c, i) : this._scopeEvents[e === Se.On ? "add" : "remove"](this.target, s, c, i);
|
|
1765
1782
|
}
|
|
1766
1783
|
}
|
|
1767
1784
|
return this;
|
|
1768
1785
|
} }, { key: "on", value: function(e, n, r) {
|
|
1769
|
-
return this._onOff(
|
|
1786
|
+
return this._onOff(Se.On, e, n, r);
|
|
1770
1787
|
} }, { key: "off", value: function(e, n, r) {
|
|
1771
|
-
return this._onOff(
|
|
1788
|
+
return this._onOff(Se.Off, e, n, r);
|
|
1772
1789
|
} }, { key: "set", value: function(e) {
|
|
1773
1790
|
var n = this._defaults;
|
|
1774
|
-
for (var r in d.object(e) || (e = {}), this.options =
|
|
1791
|
+
for (var r in d.object(e) || (e = {}), this.options = je(n.base), this._actions.methodDict) {
|
|
1775
1792
|
var i = r, o = this._actions.methodDict[i];
|
|
1776
|
-
this.options[i] = {}, this.setPerAction(i,
|
|
1793
|
+
this.options[i] = {}, this.setPerAction(i, S(S({}, n.perAction), n.actions[i])), this[o](e[i]);
|
|
1777
1794
|
}
|
|
1778
1795
|
for (var a in e) a !== "getRect" ? d.func(this[a]) && this[a](e[a]) : this.rectChecker(e.getRect);
|
|
1779
1796
|
return this;
|
|
@@ -1781,52 +1798,52 @@ function fi() {
|
|
|
1781
1798
|
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--) {
|
|
1782
1799
|
var i = n[r], o = i.selector, a = i.context, s = i.listeners;
|
|
1783
1800
|
o === this.target && a === this._context && n.splice(r, 1);
|
|
1784
|
-
for (var
|
|
1801
|
+
for (var l = s.length - 1; l >= 0; l--) this._scopeEvents.removeDelegate(this.target, this._context, e, s[l][0], s[l][1]);
|
|
1785
1802
|
}
|
|
1786
1803
|
else this._scopeEvents.remove(this.target, "all");
|
|
1787
1804
|
} }]), t;
|
|
1788
|
-
})(),
|
|
1805
|
+
})(), Er = (function() {
|
|
1789
1806
|
function t(e) {
|
|
1790
1807
|
var n = this;
|
|
1791
|
-
|
|
1792
|
-
var i = r.interactable, o = i.target, a = d.string(o) ? n.selectorMap[o] : o[n.scope.id], s =
|
|
1793
|
-
return
|
|
1808
|
+
F(this, t), this.list = [], this.selectorMap = {}, this.scope = void 0, this.scope = e, e.addListeners({ "interactable:unset": function(r) {
|
|
1809
|
+
var i = r.interactable, o = i.target, a = d.string(o) ? n.selectorMap[o] : o[n.scope.id], s = We(a, (function(l) {
|
|
1810
|
+
return l === i;
|
|
1794
1811
|
}));
|
|
1795
1812
|
a.splice(s, 1);
|
|
1796
1813
|
} });
|
|
1797
1814
|
}
|
|
1798
|
-
return
|
|
1799
|
-
n =
|
|
1815
|
+
return R(t, [{ key: "new", value: function(e, n) {
|
|
1816
|
+
n = S(n || {}, { actions: this.scope.actions });
|
|
1800
1817
|
var r = new this.scope.Interactable(e, n, this.scope.document, this.scope.events);
|
|
1801
1818
|
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;
|
|
1802
1819
|
} }, { key: "getExisting", value: function(e, n) {
|
|
1803
1820
|
var r = n && n.context || this.scope.document, i = d.string(e), o = i ? this.selectorMap[e] : e[this.scope.id];
|
|
1804
|
-
if (o) return
|
|
1821
|
+
if (o) return qe(o, (function(a) {
|
|
1805
1822
|
return a._context === r && (i || a.inContext(e));
|
|
1806
1823
|
}));
|
|
1807
1824
|
} }, { key: "forEachMatch", value: function(e, n) {
|
|
1808
1825
|
for (var r = 0, i = this.list; r < i.length; r++) {
|
|
1809
1826
|
var o = i[r], a = void 0;
|
|
1810
|
-
if ((d.string(o.target) ? d.element(e) &&
|
|
1827
|
+
if ((d.string(o.target) ? d.element(e) && y(e, o.target) : e === o.target) && o.inContext(e) && (a = n(o)), a !== void 0) return a;
|
|
1811
1828
|
}
|
|
1812
1829
|
} }]), t;
|
|
1813
|
-
})(),
|
|
1830
|
+
})(), _r = (function() {
|
|
1814
1831
|
function t() {
|
|
1815
1832
|
var e = this;
|
|
1816
|
-
|
|
1833
|
+
F(this, t), this.id = "__interact_scope_".concat(Math.floor(100 * Math.random())), this.isInitialized = !1, this.listenerMaps = [], this.browser = J, this.defaults = je(dn), this.Eventable = wn, this.actions = { map: {}, phases: { start: !0, move: !0, end: !0 }, methodDict: {}, phaselessTypes: {} }, this.interactStatic = (function(r) {
|
|
1817
1834
|
var i = function o(a, s) {
|
|
1818
|
-
var
|
|
1819
|
-
return
|
|
1835
|
+
var l = r.interactables.getExisting(a, s);
|
|
1836
|
+
return l || ((l = r.interactables.new(a, s)).events.global = o.globalEvents), l;
|
|
1820
1837
|
};
|
|
1821
|
-
return i.getPointerAverage =
|
|
1838
|
+
return i.getPointerAverage = Xt, i.getTouchBBox = yt, i.getTouchDistance = bt, i.getTouchAngle = xt, i.getElementRect = B, i.getElementClientRect = O, i.matchesSelector = y, i.closest = Te, i.globalEvents = {}, i.version = "1.10.27", i.scope = r, i.use = function(o, a) {
|
|
1822
1839
|
return this.scope.usePlugin(o, a), this;
|
|
1823
1840
|
}, i.isSet = function(o, a) {
|
|
1824
1841
|
return !!this.scope.interactables.get(o, a && a.context);
|
|
1825
|
-
}, i.on =
|
|
1842
|
+
}, i.on = Xe((function(o, a, s) {
|
|
1826
1843
|
if (d.string(o) && o.search(" ") !== -1 && (o = o.trim().split(/ +/)), d.array(o)) {
|
|
1827
|
-
for (var
|
|
1828
|
-
var
|
|
1829
|
-
this.on(
|
|
1844
|
+
for (var l = 0, u = o; l < u.length; l++) {
|
|
1845
|
+
var c = u[l];
|
|
1846
|
+
this.on(c, a, s);
|
|
1830
1847
|
}
|
|
1831
1848
|
return this;
|
|
1832
1849
|
}
|
|
@@ -1834,12 +1851,12 @@ function fi() {
|
|
|
1834
1851
|
for (var p in o) this.on(p, o[p], a);
|
|
1835
1852
|
return this;
|
|
1836
1853
|
}
|
|
1837
|
-
return
|
|
1838
|
-
}), "The interact.on() method is being deprecated"), i.off =
|
|
1854
|
+
return lt(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;
|
|
1855
|
+
}), "The interact.on() method is being deprecated"), i.off = Xe((function(o, a, s) {
|
|
1839
1856
|
if (d.string(o) && o.search(" ") !== -1 && (o = o.trim().split(/ +/)), d.array(o)) {
|
|
1840
|
-
for (var
|
|
1841
|
-
var
|
|
1842
|
-
this.off(
|
|
1857
|
+
for (var l = 0, u = o; l < u.length; l++) {
|
|
1858
|
+
var c = u[l];
|
|
1859
|
+
this.off(c, a, s);
|
|
1843
1860
|
}
|
|
1844
1861
|
return this;
|
|
1845
1862
|
}
|
|
@@ -1848,13 +1865,13 @@ function fi() {
|
|
|
1848
1865
|
return this;
|
|
1849
1866
|
}
|
|
1850
1867
|
var f;
|
|
1851
|
-
return
|
|
1868
|
+
return lt(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;
|
|
1852
1869
|
}), "The interact.off() method is being deprecated"), i.debug = function() {
|
|
1853
1870
|
return this.scope;
|
|
1854
1871
|
}, i.supportsTouch = function() {
|
|
1855
|
-
return
|
|
1872
|
+
return J.supportsTouch;
|
|
1856
1873
|
}, i.supportsPointerEvent = function() {
|
|
1857
|
-
return
|
|
1874
|
+
return J.supportsPointerEvent;
|
|
1858
1875
|
}, i.stop = function() {
|
|
1859
1876
|
for (var o = 0, a = this.scope.interactions.list; o < a.length; o++) a[o].stop();
|
|
1860
1877
|
return this;
|
|
@@ -1865,28 +1882,28 @@ function fi() {
|
|
|
1865
1882
|
}, i.removeDocument = function(o) {
|
|
1866
1883
|
this.scope.removeDocument(o);
|
|
1867
1884
|
}, i;
|
|
1868
|
-
})(this), this.InteractEvent =
|
|
1885
|
+
})(this), this.InteractEvent = Mt, this.Interactable = void 0, this.interactables = new Er(this), this._win = void 0, this.document = void 0, this.window = void 0, this.documents = [], this._plugins = { list: [], map: {} }, this.onWindowUnload = function(r) {
|
|
1869
1886
|
return e.removeDocument(r.target);
|
|
1870
1887
|
};
|
|
1871
1888
|
var n = this;
|
|
1872
1889
|
this.Interactable = (function(r) {
|
|
1873
|
-
|
|
1874
|
-
var i =
|
|
1890
|
+
re(o, r);
|
|
1891
|
+
var i = ke(o);
|
|
1875
1892
|
function o() {
|
|
1876
|
-
return
|
|
1893
|
+
return F(this, o), i.apply(this, arguments);
|
|
1877
1894
|
}
|
|
1878
|
-
return
|
|
1895
|
+
return R(o, [{ key: "_defaults", get: function() {
|
|
1879
1896
|
return n.defaults;
|
|
1880
1897
|
} }, { key: "set", value: function(a) {
|
|
1881
|
-
return
|
|
1898
|
+
return ze(ce(o.prototype), "set", this).call(this, a), n.fire("interactable:set", { options: a, interactable: this }), this;
|
|
1882
1899
|
} }, { key: "unset", value: function() {
|
|
1883
|
-
|
|
1900
|
+
ze(ce(o.prototype), "unset", this).call(this);
|
|
1884
1901
|
var a = n.interactables.list.indexOf(this);
|
|
1885
1902
|
a < 0 || (n.interactables.list.splice(a, 1), n.fire("interactable:unset", { interactable: this }));
|
|
1886
1903
|
} }]), o;
|
|
1887
|
-
})(
|
|
1904
|
+
})(Sr);
|
|
1888
1905
|
}
|
|
1889
|
-
return
|
|
1906
|
+
return R(t, [{ key: "addListeners", value: function(e, n) {
|
|
1890
1907
|
this.listenerMaps.push({ id: n, map: e });
|
|
1891
1908
|
} }, { key: "fire", value: function(e, n) {
|
|
1892
1909
|
for (var r = 0, i = this.listenerMaps; r < i.length; r++) {
|
|
@@ -1895,7 +1912,7 @@ function fi() {
|
|
|
1895
1912
|
}
|
|
1896
1913
|
} }, { key: "init", value: function(e) {
|
|
1897
1914
|
return this.isInitialized ? this : (function(n, r) {
|
|
1898
|
-
return n.isInitialized = !0, d.window(r) &&
|
|
1915
|
+
return n.isInitialized = !0, d.window(r) && H(r), $.init(r), J.init(r), xe.init(r), n.window = r, n.document = r.document, n.usePlugin(wr), n.usePlugin(yr), n;
|
|
1899
1916
|
})(this, e);
|
|
1900
1917
|
} }, { key: "pluginIsInstalled", value: function(e) {
|
|
1901
1918
|
var n = e.id;
|
|
@@ -1904,21 +1921,21 @@ function fi() {
|
|
|
1904
1921
|
if (!this.isInitialized) return this;
|
|
1905
1922
|
if (this.pluginIsInstalled(e)) return this;
|
|
1906
1923
|
if (e.id && (this._plugins.map[e.id] = e), this._plugins.list.push(e), e.install && e.install(this, n), e.listeners && e.before) {
|
|
1907
|
-
for (var r = 0, i = this.listenerMaps.length, o = e.before.reduce((function(s,
|
|
1908
|
-
return s[
|
|
1924
|
+
for (var r = 0, i = this.listenerMaps.length, o = e.before.reduce((function(s, l) {
|
|
1925
|
+
return s[l] = !0, s[Ln(l)] = !0, s;
|
|
1909
1926
|
}), {}); r < i; r++) {
|
|
1910
1927
|
var a = this.listenerMaps[r].id;
|
|
1911
|
-
if (a && (o[a] || o[
|
|
1928
|
+
if (a && (o[a] || o[Ln(a)])) break;
|
|
1912
1929
|
}
|
|
1913
1930
|
this.listenerMaps.splice(r, 0, { id: e.id, map: e.listeners });
|
|
1914
1931
|
} else e.listeners && this.listenerMaps.push({ id: e.id, map: e.listeners });
|
|
1915
1932
|
return this;
|
|
1916
1933
|
} }, { key: "addDocument", value: function(e, n) {
|
|
1917
1934
|
if (this.getDocIndex(e) !== -1) return !1;
|
|
1918
|
-
var r =
|
|
1919
|
-
n = n ?
|
|
1935
|
+
var r = X(e);
|
|
1936
|
+
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 });
|
|
1920
1937
|
} }, { key: "removeDocument", value: function(e) {
|
|
1921
|
-
var n = this.getDocIndex(e), r =
|
|
1938
|
+
var n = this.getDocIndex(e), r = X(e), i = this.documents[n].options;
|
|
1922
1939
|
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 });
|
|
1923
1940
|
} }, { key: "getDocIndex", value: function(e) {
|
|
1924
1941
|
for (var n = 0; n < this.documents.length; n++) if (this.documents[n].doc === e) return n;
|
|
@@ -1930,187 +1947,187 @@ function fi() {
|
|
|
1930
1947
|
return (this.window.Date || Date).now();
|
|
1931
1948
|
} }]), t;
|
|
1932
1949
|
})();
|
|
1933
|
-
function
|
|
1950
|
+
function Ln(t) {
|
|
1934
1951
|
return t && t.replace(/\/.*$/, "");
|
|
1935
1952
|
}
|
|
1936
|
-
var
|
|
1937
|
-
|
|
1938
|
-
var
|
|
1953
|
+
var kn = new _r(), Y = kn.interactStatic, Lr = typeof globalThis != "undefined" ? globalThis : window;
|
|
1954
|
+
kn.init(Lr);
|
|
1955
|
+
var kr = Object.freeze({ __proto__: null, edgeTarget: function() {
|
|
1939
1956
|
}, elements: function() {
|
|
1940
1957
|
}, grid: function(t) {
|
|
1941
1958
|
var e = [["x", "y"], ["left", "top"], ["right", "bottom"], ["width", "height"]].filter((function(r) {
|
|
1942
1959
|
var i = r[0], o = r[1];
|
|
1943
1960
|
return i in t || o in t;
|
|
1944
1961
|
})), n = function(r, i) {
|
|
1945
|
-
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,
|
|
1946
|
-
var f = e[p], v = f[0], h = f[1],
|
|
1947
|
-
|
|
1962
|
+
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, l = t.offset, u = l === void 0 ? { x: 0, y: 0 } : l, c = { range: o, grid: t, x: null, y: null }, p = 0; p < e.length; p++) {
|
|
1963
|
+
var f = e[p], v = f[0], h = f[1], m = Math.round((r - u.x) / t[v]), w = Math.round((i - u.y) / t[h]);
|
|
1964
|
+
c[v] = Math.max(s.left, Math.min(s.right, m * t[v] + u.x)), c[h] = Math.max(s.top, Math.min(s.bottom, w * t[h] + u.y));
|
|
1948
1965
|
}
|
|
1949
|
-
return
|
|
1966
|
+
return c;
|
|
1950
1967
|
};
|
|
1951
1968
|
return n.grid = t, n.coordFields = e, n;
|
|
1952
|
-
} }),
|
|
1969
|
+
} }), Tr = { id: "snappers", install: function(t) {
|
|
1953
1970
|
var e = t.interactStatic;
|
|
1954
|
-
e.snappers =
|
|
1955
|
-
} },
|
|
1956
|
-
var e = t.state, n = t.rect, r = t.edges, i = t.pageCoords, o = e.options, a = o.ratio, s = o.enabled,
|
|
1957
|
-
a === "preserve" && (a = n.width / n.height), e.startCoords =
|
|
1971
|
+
e.snappers = S(e.snappers || {}, kr), e.createSnapGrid = e.snappers.grid;
|
|
1972
|
+
} }, Or = Tr, Pr = { start: function(t) {
|
|
1973
|
+
var e = t.state, n = t.rect, r = t.edges, i = t.pageCoords, o = e.options, a = o.ratio, s = o.enabled, l = e.options, u = l.equalDelta, c = l.modifiers;
|
|
1974
|
+
a === "preserve" && (a = n.width / n.height), e.startCoords = S({}, i), e.startRect = S({}, n), e.ratio = a, e.equalDelta = u;
|
|
1958
1975
|
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 };
|
|
1959
1976
|
if (e.xIsPrimaryAxis = !(!r.left && !r.right), e.equalDelta) {
|
|
1960
1977
|
var f = (p.left ? 1 : -1) * (p.top ? 1 : -1);
|
|
1961
1978
|
e.edgeSign = { x: f, y: f };
|
|
1962
1979
|
} else e.edgeSign = { x: p.left ? -1 : 1, y: p.top ? -1 : 1 };
|
|
1963
|
-
if (s !== !1 &&
|
|
1964
|
-
var v = new
|
|
1965
|
-
v.copyFrom(t.interaction.modification), v.prepareStates(
|
|
1980
|
+
if (s !== !1 && S(r, p), c != null && c.length) {
|
|
1981
|
+
var v = new It(t.interaction);
|
|
1982
|
+
v.copyFrom(t.interaction.modification), v.prepareStates(c), e.subModification = v, v.startAll(q({}, t));
|
|
1966
1983
|
}
|
|
1967
1984
|
}, set: function(t) {
|
|
1968
|
-
var e = t.state, n = t.rect, r = t.coords, i = e.linkedEdges, o =
|
|
1969
|
-
if (
|
|
1970
|
-
var s =
|
|
1971
|
-
|
|
1972
|
-
var
|
|
1973
|
-
return
|
|
1985
|
+
var e = t.state, n = t.rect, r = t.coords, i = e.linkedEdges, o = S({}, r), a = e.equalDelta ? Ir : Mr;
|
|
1986
|
+
if (S(t.edges, i), a(e, e.xIsPrimaryAxis, r, n), !e.subModification) return null;
|
|
1987
|
+
var s = S({}, n);
|
|
1988
|
+
Pe(i, s, { x: r.x - o.x, y: r.y - o.y });
|
|
1989
|
+
var l = e.subModification.setAll(q(q({}, t), {}, { rect: s, edges: i, pageCoords: r, prevCoords: r, prevRect: s })), u = l.delta;
|
|
1990
|
+
return l.changed && (a(e, Math.abs(u.x) > Math.abs(u.y), l.coords, l.rect), S(r, l.coords)), l.eventProps;
|
|
1974
1991
|
}, defaults: { ratio: "preserve", equalDelta: !1, modifiers: [], enabled: !1 } };
|
|
1975
|
-
function
|
|
1992
|
+
function Ir(t, e, n) {
|
|
1976
1993
|
var r = t.startCoords, i = t.edgeSign;
|
|
1977
1994
|
e ? n.y = r.y + (n.x - r.x) * i.y : n.x = r.x + (n.y - r.y) * i.x;
|
|
1978
1995
|
}
|
|
1979
|
-
function
|
|
1996
|
+
function Mr(t, e, n, r) {
|
|
1980
1997
|
var i = t.startRect, o = t.startCoords, a = t.ratio, s = t.edgeSign;
|
|
1981
1998
|
if (e) {
|
|
1982
|
-
var
|
|
1983
|
-
n.y = o.y + (
|
|
1999
|
+
var l = r.width / a;
|
|
2000
|
+
n.y = o.y + (l - i.height) * s.y;
|
|
1984
2001
|
} else {
|
|
1985
2002
|
var u = r.height * a;
|
|
1986
2003
|
n.x = o.x + (u - i.width) * s.x;
|
|
1987
2004
|
}
|
|
1988
2005
|
}
|
|
1989
|
-
var
|
|
2006
|
+
var Dr = we(Pr, "aspectRatio"), Tn = function() {
|
|
1990
2007
|
};
|
|
1991
|
-
|
|
1992
|
-
var
|
|
1993
|
-
function
|
|
1994
|
-
return d.func(t) ?
|
|
2008
|
+
Tn._defaults = {};
|
|
2009
|
+
var ft = Tn;
|
|
2010
|
+
function De(t, e, n) {
|
|
2011
|
+
return d.func(t) ? N(t, e.interactable, e.element, [n.x, n.y, e]) : N(t, e.interactable, e.element);
|
|
1995
2012
|
}
|
|
1996
|
-
var
|
|
1997
|
-
var e = t.rect, n = t.startOffset, r = t.state, i = t.interaction, o = t.pageCoords, a = r.options, s = a.elementRect,
|
|
2013
|
+
var dt = { start: function(t) {
|
|
2014
|
+
var e = t.rect, n = t.startOffset, r = t.state, i = t.interaction, o = t.pageCoords, a = r.options, s = a.elementRect, l = S({ left: 0, top: 0, right: 0, bottom: 0 }, a.offset || {});
|
|
1998
2015
|
if (e && s) {
|
|
1999
|
-
var u =
|
|
2016
|
+
var u = De(a.restriction, i, o);
|
|
2000
2017
|
if (u) {
|
|
2001
|
-
var
|
|
2002
|
-
|
|
2018
|
+
var c = u.right - u.left - e.width, p = u.bottom - u.top - e.height;
|
|
2019
|
+
c < 0 && (l.left += c, l.right += c), p < 0 && (l.top += p, l.bottom += p);
|
|
2003
2020
|
}
|
|
2004
|
-
|
|
2021
|
+
l.left += n.left - e.width * s.left, l.top += n.top - e.height * s.top, l.right += n.right - e.width * (1 - s.right), l.bottom += n.bottom - e.height * (1 - s.bottom);
|
|
2005
2022
|
}
|
|
2006
|
-
r.offset =
|
|
2023
|
+
r.offset = l;
|
|
2007
2024
|
}, set: function(t) {
|
|
2008
|
-
var e = t.coords, n = t.interaction, r = t.state, i = r.options, o = r.offset, a =
|
|
2025
|
+
var e = t.coords, n = t.interaction, r = t.state, i = r.options, o = r.offset, a = De(i.restriction, n, e);
|
|
2009
2026
|
if (a) {
|
|
2010
|
-
var s = (function(
|
|
2011
|
-
return !
|
|
2027
|
+
var s = (function(l) {
|
|
2028
|
+
return !l || "left" in l && "top" in l || ((l = S({}, l)).left = l.x || 0, l.top = l.y || 0, l.right = l.right || l.left + l.width, l.bottom = l.bottom || l.top + l.height), l;
|
|
2012
2029
|
})(a);
|
|
2013
2030
|
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);
|
|
2014
2031
|
}
|
|
2015
|
-
}, defaults: { restriction: null, elementRect: null, offset: null, endOnly: !1, enabled: !1 } },
|
|
2016
|
-
function
|
|
2032
|
+
}, defaults: { restriction: null, elementRect: null, offset: null, endOnly: !1, enabled: !1 } }, zr = we(dt, "restrict"), On = { top: 1 / 0, left: 1 / 0, bottom: -1 / 0, right: -1 / 0 }, Pn = { top: -1 / 0, left: -1 / 0, bottom: 1 / 0, right: 1 / 0 };
|
|
2033
|
+
function In(t, e) {
|
|
2017
2034
|
for (var n = 0, r = ["top", "left", "bottom", "right"]; n < r.length; n++) {
|
|
2018
2035
|
var i = r[n];
|
|
2019
2036
|
i in t || (t[i] = e[i]);
|
|
2020
2037
|
}
|
|
2021
2038
|
return t;
|
|
2022
2039
|
}
|
|
2023
|
-
var
|
|
2040
|
+
var He = { noInner: On, noOuter: Pn, start: function(t) {
|
|
2024
2041
|
var e, n = t.interaction, r = t.startOffset, i = t.state, o = i.options;
|
|
2025
|
-
o && (e =
|
|
2042
|
+
o && (e = Oe(De(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 };
|
|
2026
2043
|
}, set: function(t) {
|
|
2027
2044
|
var e = t.coords, n = t.edges, r = t.interaction, i = t.state, o = i.offset, a = i.options;
|
|
2028
2045
|
if (n) {
|
|
2029
|
-
var s =
|
|
2030
|
-
|
|
2046
|
+
var s = S({}, e), l = De(a.inner, r, s) || {}, u = De(a.outer, r, s) || {};
|
|
2047
|
+
In(l, On), In(u, Pn), n.top ? e.y = Math.min(Math.max(u.top + o.top, s.y), l.top + o.top) : n.bottom && (e.y = Math.max(Math.min(u.bottom + o.bottom, s.y), l.bottom + o.bottom)), n.left ? e.x = Math.min(Math.max(u.left + o.left, s.x), l.left + o.left) : n.right && (e.x = Math.max(Math.min(u.right + o.right, s.x), l.right + o.right));
|
|
2031
2048
|
}
|
|
2032
|
-
}, defaults: { inner: null, outer: null, offset: null, endOnly: !1, enabled: !1 } },
|
|
2049
|
+
}, defaults: { inner: null, outer: null, offset: null, endOnly: !1, enabled: !1 } }, Cr = we(He, "restrictEdges"), Ar = S({ get elementRect() {
|
|
2033
2050
|
return { top: 0, left: 0, bottom: 1, right: 1 };
|
|
2034
2051
|
}, set elementRect(t) {
|
|
2035
|
-
} },
|
|
2036
|
-
return
|
|
2052
|
+
} }, dt.defaults), Rr = we({ start: dt.start, set: dt.set, defaults: Ar }, "restrictRect"), jr = { width: -1 / 0, height: -1 / 0 }, Fr = { width: 1 / 0, height: 1 / 0 }, Vr = we({ start: function(t) {
|
|
2053
|
+
return He.start(t);
|
|
2037
2054
|
}, set: function(t) {
|
|
2038
2055
|
var e = t.interaction, n = t.state, r = t.rect, i = t.edges, o = n.options;
|
|
2039
2056
|
if (i) {
|
|
2040
|
-
var a =
|
|
2041
|
-
n.options = { endOnly: o.endOnly, inner:
|
|
2057
|
+
var a = nt(De(o.min, e, t.coords)) || jr, s = nt(De(o.max, e, t.coords)) || Fr;
|
|
2058
|
+
n.options = { endOnly: o.endOnly, inner: S({}, He.noInner), outer: S({}, He.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), He.set(t), n.options = o;
|
|
2042
2059
|
}
|
|
2043
|
-
}, defaults: { min: null, max: null, endOnly: !1, enabled: !1 } }, "restrictSize"),
|
|
2044
|
-
var e, n = t.interaction, r = t.interactable, i = t.element, o = t.rect, a = t.state, s = t.startOffset,
|
|
2045
|
-
var v = f.interaction.element, h =
|
|
2046
|
-
return
|
|
2060
|
+
}, defaults: { min: null, max: null, endOnly: !1, enabled: !1 } }, "restrictSize"), Rt = { start: function(t) {
|
|
2061
|
+
var e, n = t.interaction, r = t.interactable, i = t.element, o = t.rect, a = t.state, s = t.startOffset, l = a.options, u = l.offsetWithOrigin ? (function(f) {
|
|
2062
|
+
var v = f.interaction.element, h = Oe(N(f.state.options.origin, null, null, [v])), m = h || Be(f.interactable, v, f.interaction.prepared.name);
|
|
2063
|
+
return m;
|
|
2047
2064
|
})(t) : { x: 0, y: 0 };
|
|
2048
|
-
if (
|
|
2065
|
+
if (l.offset === "startCoords") e = { x: n.coords.start.page.x, y: n.coords.start.page.y };
|
|
2049
2066
|
else {
|
|
2050
|
-
var
|
|
2051
|
-
(e =
|
|
2067
|
+
var c = N(l.offset, r, i, [n]);
|
|
2068
|
+
(e = Oe(c) || { x: 0, y: 0 }).x += u.x, e.y += u.y;
|
|
2052
2069
|
}
|
|
2053
|
-
var p =
|
|
2070
|
+
var p = l.relativePoints;
|
|
2054
2071
|
a.offsets = o && p && p.length ? p.map((function(f, v) {
|
|
2055
2072
|
return { index: v, relativePoint: f, x: s.left - o.width * f.x + e.x, y: s.top - o.height * f.y + e.y };
|
|
2056
2073
|
})) : [{ index: 0, relativePoint: null, x: e.x, y: e.y }];
|
|
2057
2074
|
}, set: function(t) {
|
|
2058
|
-
var e = t.interaction, n = t.coords, r = t.state, i = r.options, o = r.offsets, a =
|
|
2075
|
+
var e = t.interaction, n = t.coords, r = t.state, i = r.options, o = r.offsets, a = Be(e.interactable, e.element, e.prepared.name), s = S({}, n), l = [];
|
|
2059
2076
|
i.offsetWithOrigin || (s.x -= a.x, s.y -= a.y);
|
|
2060
|
-
for (var u = 0,
|
|
2061
|
-
var
|
|
2062
|
-
(
|
|
2077
|
+
for (var u = 0, c = o; u < c.length; u++) for (var p = c[u], f = s.x - p.x, v = s.y - p.y, h = 0, m = i.targets.length; h < m; h++) {
|
|
2078
|
+
var w = i.targets[h], b = void 0;
|
|
2079
|
+
(b = d.func(w) ? w(f, v, e._proxy, p, h) : w) && l.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: w, index: h, offset: p });
|
|
2063
2080
|
}
|
|
2064
|
-
for (var
|
|
2065
|
-
var
|
|
2066
|
-
|
|
2081
|
+
for (var _ = { target: null, inRange: !1, distance: 0, range: 0, delta: { x: 0, y: 0 } }, P = 0; P < l.length; P++) {
|
|
2082
|
+
var M = l[P], k = M.range, I = M.x - s.x, G = M.y - s.y, A = Ue(I, G), ee = A <= k;
|
|
2083
|
+
k === 1 / 0 && _.inRange && _.range !== 1 / 0 && (ee = !1), _.target && !(ee ? _.inRange && k !== 1 / 0 ? A / k < _.distance / _.range : k === 1 / 0 && _.range !== 1 / 0 || A < _.distance : !_.inRange && A < _.distance) || (_.target = M, _.distance = A, _.range = k, _.inRange = ee, _.delta.x = I, _.delta.y = G);
|
|
2067
2084
|
}
|
|
2068
|
-
return
|
|
2069
|
-
}, defaults: { range: 1 / 0, targets: null, offset: null, offsetWithOrigin: !0, origin: null, relativePoints: null, endOnly: !1, enabled: !1 } },
|
|
2085
|
+
return _.inRange && (n.x = _.target.x, n.y = _.target.y), r.closest = _, _;
|
|
2086
|
+
}, defaults: { range: 1 / 0, targets: null, offset: null, offsetWithOrigin: !0, origin: null, relativePoints: null, endOnly: !1, enabled: !1 } }, $r = we(Rt, "snap"), ht = { start: function(t) {
|
|
2070
2087
|
var e = t.state, n = t.edges, r = e.options;
|
|
2071
2088
|
if (!n) return null;
|
|
2072
|
-
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"]],
|
|
2089
|
+
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"]], Rt.start(t), e.offsets = t.state.offsets, t.state = e;
|
|
2073
2090
|
}, set: function(t) {
|
|
2074
2091
|
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 };
|
|
2075
|
-
n.options =
|
|
2076
|
-
for (var s = 0,
|
|
2077
|
-
var u =
|
|
2078
|
-
if (
|
|
2092
|
+
n.options = S({}, i), n.options.targets = [];
|
|
2093
|
+
for (var s = 0, l = i.targets || []; s < l.length; s++) {
|
|
2094
|
+
var u = l[s], c = void 0;
|
|
2095
|
+
if (c = d.func(u) ? u(a.x, a.y, e) : u) {
|
|
2079
2096
|
for (var p = 0, f = n.targetFields; p < f.length; p++) {
|
|
2080
|
-
var v = f[p], h = v[0],
|
|
2081
|
-
if (h in
|
|
2082
|
-
|
|
2097
|
+
var v = f[p], h = v[0], m = v[1];
|
|
2098
|
+
if (h in c || m in c) {
|
|
2099
|
+
c.x = c[h], c.y = c[m];
|
|
2083
2100
|
break;
|
|
2084
2101
|
}
|
|
2085
2102
|
}
|
|
2086
|
-
n.options.targets.push(
|
|
2103
|
+
n.options.targets.push(c);
|
|
2087
2104
|
}
|
|
2088
2105
|
}
|
|
2089
|
-
var
|
|
2090
|
-
return n.options = i,
|
|
2091
|
-
}, defaults: { range: 1 / 0, targets: null, offset: null, endOnly: !1, enabled: !1 } },
|
|
2106
|
+
var w = Rt.set(t);
|
|
2107
|
+
return n.options = i, w;
|
|
2108
|
+
}, defaults: { range: 1 / 0, targets: null, offset: null, endOnly: !1, enabled: !1 } }, Br = we(ht, "snapSize"), jt = { aspectRatio: Dr, restrictEdges: Cr, restrict: zr, restrictRect: Rr, restrictSize: Vr, snapEdges: we({ start: function(t) {
|
|
2092
2109
|
var e = t.edges;
|
|
2093
|
-
return e ? (t.state.targetFields = t.state.targetFields || [[e.left ? "left" : "right", e.top ? "top" : "bottom"]],
|
|
2094
|
-
}, set:
|
|
2110
|
+
return e ? (t.state.targetFields = t.state.targetFields || [[e.left ? "left" : "right", e.top ? "top" : "bottom"]], ht.start(t)) : null;
|
|
2111
|
+
}, set: ht.set, defaults: S(je(ht.defaults), { targets: void 0, range: void 0, offset: { x: 0, y: 0 } }) }, "snapEdges"), snap: $r, snapSize: Br, spring: ft, avoid: ft, transform: ft, rubberband: ft }, Ur = { id: "modifiers", install: function(t) {
|
|
2095
2112
|
var e = t.interactStatic;
|
|
2096
|
-
for (var n in t.usePlugin(
|
|
2097
|
-
var r =
|
|
2113
|
+
for (var n in t.usePlugin(fn), t.usePlugin(Or), e.modifiers = jt, jt) {
|
|
2114
|
+
var r = jt[n], i = r._defaults, o = r._methods;
|
|
2098
2115
|
i._methods = o, t.defaults.perAction[n] = i;
|
|
2099
2116
|
}
|
|
2100
|
-
} },
|
|
2101
|
-
|
|
2102
|
-
var e =
|
|
2103
|
-
function n(r, i, o, a, s,
|
|
2117
|
+
} }, Nr = Ur, Mn = (function(t) {
|
|
2118
|
+
re(n, t);
|
|
2119
|
+
var e = ke(n);
|
|
2120
|
+
function n(r, i, o, a, s, l) {
|
|
2104
2121
|
var u;
|
|
2105
|
-
if (
|
|
2106
|
-
var
|
|
2107
|
-
u.dt = u.timeStamp - s.pointers[
|
|
2122
|
+
if (F(this, n), rt(Le(u = e.call(this, s)), o), o !== i && rt(Le(u), i), u.timeStamp = l, u.originalEvent = o, u.type = r, u.pointerId = Ne(i), u.pointerType = Yt(i), u.target = a, u.currentTarget = null, r === "tap") {
|
|
2123
|
+
var c = s.getPointerIndex(i);
|
|
2124
|
+
u.dt = u.timeStamp - s.pointers[c].downTime;
|
|
2108
2125
|
var p = u.timeStamp - s.tapTime;
|
|
2109
2126
|
u.double = !!s.prevTap && s.prevTap.type !== "doubletap" && s.prevTap.target === u.target && p < 500;
|
|
2110
2127
|
} else r === "doubletap" && (u.dt = i.timeStamp - s.tapTime, u.double = !0);
|
|
2111
2128
|
return u;
|
|
2112
2129
|
}
|
|
2113
|
-
return
|
|
2130
|
+
return R(n, [{ key: "_subtractOrigin", value: function(r) {
|
|
2114
2131
|
var i = r.x, o = r.y;
|
|
2115
2132
|
return this.pageX -= i, this.pageY -= o, this.clientX -= i, this.clientY -= o, this;
|
|
2116
2133
|
} }, { key: "_addOrigin", value: function(r) {
|
|
@@ -2119,8 +2136,8 @@ function fi() {
|
|
|
2119
2136
|
} }, { key: "preventDefault", value: function() {
|
|
2120
2137
|
this.originalEvent.preventDefault();
|
|
2121
2138
|
} }]), n;
|
|
2122
|
-
})(
|
|
2123
|
-
t.pointerEvents =
|
|
2139
|
+
})(at), Ze = { id: "pointer-events/base", before: ["inertia", "modifiers", "auto-start", "actions"], install: function(t) {
|
|
2140
|
+
t.pointerEvents = Ze, t.defaults.actions.pointerEvents = Ze.defaults, S(t.actions.phaselessTypes, Ze.types);
|
|
2124
2141
|
}, listeners: { "interactions:new": function(t) {
|
|
2125
2142
|
var e = t.interaction;
|
|
2126
2143
|
e.prevTap = null, e.tapTime = 0;
|
|
@@ -2129,73 +2146,73 @@ function fi() {
|
|
|
2129
2146
|
!e && n.hold || (n.hold = { duration: 1 / 0, timeout: null });
|
|
2130
2147
|
}, "interactions:move": function(t, e) {
|
|
2131
2148
|
var n = t.interaction, r = t.pointer, i = t.event, o = t.eventTarget;
|
|
2132
|
-
t.duplicate || n.pointerIsDown && !n.pointerWasMoved || (n.pointerIsDown &&
|
|
2149
|
+
t.duplicate || n.pointerIsDown && !n.pointerWasMoved || (n.pointerIsDown && Ft(t), Ee({ interaction: n, pointer: r, event: i, eventTarget: o, type: "move" }, e));
|
|
2133
2150
|
}, "interactions:down": function(t, e) {
|
|
2134
2151
|
(function(n, r) {
|
|
2135
|
-
for (var i = n.interaction, o = n.pointer, a = n.event, s = n.eventTarget,
|
|
2136
|
-
var v =
|
|
2152
|
+
for (var i = n.interaction, o = n.pointer, a = n.event, s = n.eventTarget, l = n.pointerIndex, u = i.pointers[l].hold, c = W(s), p = { interaction: i, pointer: o, event: a, eventTarget: s, type: "hold", targets: [], path: c, node: null }, f = 0; f < c.length; f++) {
|
|
2153
|
+
var v = c[f];
|
|
2137
2154
|
p.node = v, r.fire("pointerEvents:collect-targets", p);
|
|
2138
2155
|
}
|
|
2139
2156
|
if (p.targets.length) {
|
|
2140
|
-
for (var h = 1 / 0,
|
|
2141
|
-
var
|
|
2142
|
-
|
|
2157
|
+
for (var h = 1 / 0, m = 0, w = p.targets; m < w.length; m++) {
|
|
2158
|
+
var b = w[m].eventable.options.holdDuration;
|
|
2159
|
+
b < h && (h = b);
|
|
2143
2160
|
}
|
|
2144
2161
|
u.duration = h, u.timeout = setTimeout((function() {
|
|
2145
|
-
|
|
2162
|
+
Ee({ interaction: i, eventTarget: s, pointer: o, event: a, type: "hold" }, r);
|
|
2146
2163
|
}), h);
|
|
2147
2164
|
}
|
|
2148
|
-
})(t, e),
|
|
2165
|
+
})(t, e), Ee(t, e);
|
|
2149
2166
|
}, "interactions:up": function(t, e) {
|
|
2150
|
-
|
|
2167
|
+
Ft(t), Ee(t, e), (function(n, r) {
|
|
2151
2168
|
var i = n.interaction, o = n.pointer, a = n.event, s = n.eventTarget;
|
|
2152
|
-
i.pointerWasMoved ||
|
|
2169
|
+
i.pointerWasMoved || Ee({ interaction: i, eventTarget: s, pointer: o, event: a, type: "tap" }, r);
|
|
2153
2170
|
})(t, e);
|
|
2154
2171
|
}, "interactions:cancel": function(t, e) {
|
|
2155
|
-
|
|
2156
|
-
} }, PointerEvent:
|
|
2157
|
-
function
|
|
2158
|
-
var n = t.interaction, r = t.pointer, i = t.event, o = t.eventTarget, a = t.type, s = t.targets,
|
|
2172
|
+
Ft(t), Ee(t, e);
|
|
2173
|
+
} }, PointerEvent: Mn, fire: Ee, collectEventTargets: Dn, 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 } };
|
|
2174
|
+
function Ee(t, e) {
|
|
2175
|
+
var n = t.interaction, r = t.pointer, i = t.event, o = t.eventTarget, a = t.type, s = t.targets, l = s === void 0 ? Dn(t, e) : s, u = new Mn(a, r, i, o, n, e.now());
|
|
2159
2176
|
e.fire("pointerEvents:new", { pointerEvent: u });
|
|
2160
|
-
for (var
|
|
2161
|
-
var f =
|
|
2177
|
+
for (var c = { interaction: n, pointer: r, event: i, eventTarget: o, targets: l, type: a, pointerEvent: u }, p = 0; p < l.length; p++) {
|
|
2178
|
+
var f = l[p];
|
|
2162
2179
|
for (var v in f.props || {}) u[v] = f.props[v];
|
|
2163
|
-
var h =
|
|
2164
|
-
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 <
|
|
2180
|
+
var h = Be(f.eventable, f.node);
|
|
2181
|
+
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 < l.length && l[p + 1].node !== u.currentTarget) break;
|
|
2165
2182
|
}
|
|
2166
|
-
if (e.fire("pointerEvents:fired",
|
|
2167
|
-
var
|
|
2168
|
-
n.prevTap =
|
|
2183
|
+
if (e.fire("pointerEvents:fired", c), a === "tap") {
|
|
2184
|
+
var m = u.double ? Ee({ interaction: n, pointer: r, event: i, eventTarget: o, type: "doubletap" }, e) : u;
|
|
2185
|
+
n.prevTap = m, n.tapTime = m.timeStamp;
|
|
2169
2186
|
}
|
|
2170
2187
|
return u;
|
|
2171
2188
|
}
|
|
2172
|
-
function
|
|
2173
|
-
var n = t.interaction, r = t.pointer, i = t.event, o = t.eventTarget, a = t.type, s = n.getPointerIndex(r),
|
|
2174
|
-
if (a === "tap" && (n.pointerWasMoved || !
|
|
2175
|
-
for (var u =
|
|
2189
|
+
function Dn(t, e) {
|
|
2190
|
+
var n = t.interaction, r = t.pointer, i = t.event, o = t.eventTarget, a = t.type, s = n.getPointerIndex(r), l = n.pointers[s];
|
|
2191
|
+
if (a === "tap" && (n.pointerWasMoved || !l || l.downTarget !== o)) return [];
|
|
2192
|
+
for (var u = W(o), c = { interaction: n, pointer: r, event: i, eventTarget: o, type: a, path: u, targets: [], node: null }, p = 0; p < u.length; p++) {
|
|
2176
2193
|
var f = u[p];
|
|
2177
|
-
|
|
2194
|
+
c.node = f, e.fire("pointerEvents:collect-targets", c);
|
|
2178
2195
|
}
|
|
2179
|
-
return a === "hold" && (
|
|
2180
|
-
var h,
|
|
2181
|
-
return v.eventable.options.holdDuration === ((h = n.pointers[s]) == null || (
|
|
2182
|
-
}))),
|
|
2196
|
+
return a === "hold" && (c.targets = c.targets.filter((function(v) {
|
|
2197
|
+
var h, m;
|
|
2198
|
+
return v.eventable.options.holdDuration === ((h = n.pointers[s]) == null || (m = h.hold) == null ? void 0 : m.duration);
|
|
2199
|
+
}))), c.targets;
|
|
2183
2200
|
}
|
|
2184
|
-
function
|
|
2201
|
+
function Ft(t) {
|
|
2185
2202
|
var e = t.interaction, n = t.pointerIndex, r = e.pointers[n].hold;
|
|
2186
2203
|
r && r.timeout && (clearTimeout(r.timeout), r.timeout = null);
|
|
2187
2204
|
}
|
|
2188
|
-
var
|
|
2189
|
-
function
|
|
2205
|
+
var Wr = Object.freeze({ __proto__: null, default: Ze });
|
|
2206
|
+
function qr(t) {
|
|
2190
2207
|
var e = t.interaction;
|
|
2191
2208
|
e.holdIntervalHandle && (clearInterval(e.holdIntervalHandle), e.holdIntervalHandle = null);
|
|
2192
2209
|
}
|
|
2193
|
-
var
|
|
2194
|
-
t.usePlugin(
|
|
2210
|
+
var Xr = { id: "pointer-events/holdRepeat", install: function(t) {
|
|
2211
|
+
t.usePlugin(Ze);
|
|
2195
2212
|
var e = t.pointerEvents;
|
|
2196
2213
|
e.defaults.holdRepeatInterval = 0, e.types.holdrepeat = t.actions.phaselessTypes.holdrepeat = !0;
|
|
2197
2214
|
}, listeners: ["move", "up", "cancel", "endall"].reduce((function(t, e) {
|
|
2198
|
-
return t["pointerEvents:".concat(e)] =
|
|
2215
|
+
return t["pointerEvents:".concat(e)] = qr, t;
|
|
2199
2216
|
}), { "pointerEvents:new": function(t) {
|
|
2200
2217
|
var e = t.pointerEvent;
|
|
2201
2218
|
e.type === "hold" && (e.count = (e.count || 0) + 1);
|
|
@@ -2207,10 +2224,10 @@ function fi() {
|
|
|
2207
2224
|
e.pointerEvents.fire({ interaction: n, eventTarget: i, type: "hold", pointer: r, event: r }, e);
|
|
2208
2225
|
}), a));
|
|
2209
2226
|
}
|
|
2210
|
-
} }) },
|
|
2227
|
+
} }) }, Yr = Xr, Gr = { id: "pointer-events/interactableTargets", install: function(t) {
|
|
2211
2228
|
var e = t.Interactable;
|
|
2212
2229
|
e.prototype.pointerEvents = function(r) {
|
|
2213
|
-
return
|
|
2230
|
+
return S(this.events.options, r), this;
|
|
2214
2231
|
};
|
|
2215
2232
|
var n = e.prototype._backCompatOption;
|
|
2216
2233
|
e.prototype._backCompatOption = function(r, i) {
|
|
@@ -2220,8 +2237,8 @@ function fi() {
|
|
|
2220
2237
|
}, listeners: { "pointerEvents:collect-targets": function(t, e) {
|
|
2221
2238
|
var n = t.targets, r = t.node, i = t.type, o = t.eventTarget;
|
|
2222
2239
|
e.interactables.forEachMatch(r, (function(a) {
|
|
2223
|
-
var s = a.events,
|
|
2224
|
-
s.types[i] && s.types[i].length && a.testIgnoreAllow(
|
|
2240
|
+
var s = a.events, l = s.options;
|
|
2241
|
+
s.types[i] && s.types[i].length && a.testIgnoreAllow(l, r, o) && n.push({ node: r, eventable: s, props: { interactable: a } });
|
|
2225
2242
|
}));
|
|
2226
2243
|
}, "interactable:new": function(t) {
|
|
2227
2244
|
var e = t.interactable;
|
|
@@ -2230,25 +2247,25 @@ function fi() {
|
|
|
2230
2247
|
};
|
|
2231
2248
|
}, "interactable:set": function(t, e) {
|
|
2232
2249
|
var n = t.interactable, r = t.options;
|
|
2233
|
-
|
|
2234
|
-
} } },
|
|
2235
|
-
t.usePlugin(
|
|
2236
|
-
} },
|
|
2250
|
+
S(n.events.options, e.pointerEvents.defaults), S(n.events.options, r.pointerEvents || {});
|
|
2251
|
+
} } }, Hr = Gr, Zr = { id: "pointer-events", install: function(t) {
|
|
2252
|
+
t.usePlugin(Wr), t.usePlugin(Yr), t.usePlugin(Hr);
|
|
2253
|
+
} }, Kr = Zr, Jr = { id: "reflow", install: function(t) {
|
|
2237
2254
|
var e = t.Interactable;
|
|
2238
2255
|
t.actions.phases.reflow = !0, e.prototype.reflow = function(n) {
|
|
2239
2256
|
return (function(r, i, o) {
|
|
2240
|
-
for (var a = r.getAllElements(), s = o.window.Promise,
|
|
2241
|
-
var p = a[
|
|
2257
|
+
for (var a = r.getAllElements(), s = o.window.Promise, l = s ? [] : null, u = function() {
|
|
2258
|
+
var p = a[c], f = r.getRect(p);
|
|
2242
2259
|
if (!f) return 1;
|
|
2243
|
-
var v, h =
|
|
2244
|
-
return
|
|
2260
|
+
var v, h = qe(o.interactions.list, (function(b) {
|
|
2261
|
+
return b.interacting() && b.interactable === r && b.element === p && b.prepared.name === i.name;
|
|
2245
2262
|
}));
|
|
2246
|
-
if (h) h.move(),
|
|
2247
|
-
h._reflowResolve =
|
|
2263
|
+
if (h) h.move(), l && (v = h._reflowPromise || new s((function(b) {
|
|
2264
|
+
h._reflowResolve = b;
|
|
2248
2265
|
})));
|
|
2249
2266
|
else {
|
|
2250
|
-
var
|
|
2251
|
-
return { coords:
|
|
2267
|
+
var m = nt(f), w = /* @__PURE__ */ (function(b) {
|
|
2268
|
+
return { coords: b, get page() {
|
|
2252
2269
|
return this.coords.page;
|
|
2253
2270
|
}, get client() {
|
|
2254
2271
|
return this.coords.client;
|
|
@@ -2274,19 +2291,19 @@ function fi() {
|
|
|
2274
2291
|
return this.coords.buttons;
|
|
2275
2292
|
}, preventDefault: function() {
|
|
2276
2293
|
} };
|
|
2277
|
-
})({ page: { x:
|
|
2278
|
-
v = (function(
|
|
2279
|
-
var
|
|
2280
|
-
|
|
2281
|
-
var
|
|
2282
|
-
|
|
2294
|
+
})({ page: { x: m.x, y: m.y }, client: { x: m.x, y: m.y }, timeStamp: o.now() });
|
|
2295
|
+
v = (function(b, _, P, M, k) {
|
|
2296
|
+
var I = b.interactions.new({ pointerType: "reflow" }), G = { interaction: I, event: k, pointer: k, eventTarget: P, phase: "reflow" };
|
|
2297
|
+
I.interactable = _, I.element = P, I.prevEvent = k, I.updatePointer(k, k, P, !0), Nt(I.coords.delta), kt(I.prepared, M), I._doPhase(G);
|
|
2298
|
+
var A = b.window, ee = A.Promise, ae = ee ? new ee((function(me) {
|
|
2299
|
+
I._reflowResolve = me;
|
|
2283
2300
|
})) : void 0;
|
|
2284
|
-
return
|
|
2285
|
-
})(o, r, p, i,
|
|
2301
|
+
return I._reflowPromise = ae, I.start(M, _, P), I._interacting ? (I.move(G), I.end(k)) : (I.stop(), I._reflowResolve()), I.removePointer(k, k), ae;
|
|
2302
|
+
})(o, r, p, i, w);
|
|
2286
2303
|
}
|
|
2287
|
-
|
|
2288
|
-
},
|
|
2289
|
-
return
|
|
2304
|
+
l && l.push(v);
|
|
2305
|
+
}, c = 0; c < a.length && !u(); c++) ;
|
|
2306
|
+
return l && s.all(l).then((function() {
|
|
2290
2307
|
return r;
|
|
2291
2308
|
}));
|
|
2292
2309
|
})(this, n, t);
|
|
@@ -2296,36 +2313,53 @@ function fi() {
|
|
|
2296
2313
|
n.pointerType === "reflow" && (n._reflowResolve && n._reflowResolve(), (function(r, i) {
|
|
2297
2314
|
r.splice(r.indexOf(i), 1);
|
|
2298
2315
|
})(e.interactions.list, n));
|
|
2299
|
-
} } },
|
|
2300
|
-
if (
|
|
2301
|
-
|
|
2316
|
+
} } }, Qr = Jr;
|
|
2317
|
+
if (Y.use(pn), Y.use(mn), Y.use(Kr), Y.use(gr), Y.use(Nr), Y.use(ir), Y.use(Yn), Y.use(Hn), Y.use(Qr), Y.default = Y, ne(V) === "object" && V) try {
|
|
2318
|
+
V.exports = Y;
|
|
2302
2319
|
} catch (t) {
|
|
2303
2320
|
}
|
|
2304
|
-
return
|
|
2321
|
+
return Y.default = Y, Y;
|
|
2305
2322
|
}));
|
|
2306
|
-
})(
|
|
2323
|
+
})(Qe, Qe.exports)), Qe.exports;
|
|
2307
2324
|
}
|
|
2308
|
-
var
|
|
2309
|
-
const
|
|
2310
|
-
DEFAULT_ICON:
|
|
2311
|
-
ACTIVE_ICON:
|
|
2325
|
+
var xi = /* @__PURE__ */ bi();
|
|
2326
|
+
const $n = /* @__PURE__ */ fi(xi), wi = "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", Si = "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", Ei = ["src"], _i = ["id"], Li = ["id", "title"], ki = { class: "num" }, Ti = ["id"], Oi = ["id"], Pi = ["id"], Ii = ["id"], Mi = ["id"], Di = ["id"], zi = {
|
|
2327
|
+
DEFAULT_ICON: wi,
|
|
2328
|
+
ACTIVE_ICON: Si,
|
|
2312
2329
|
NAME_CN: "组态图",
|
|
2313
2330
|
NAME_EN: "Scd",
|
|
2314
|
-
ORDER: 1
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2331
|
+
ORDER: 1,
|
|
2332
|
+
PLATFORM: ["pc", "screen", "mobile"]
|
|
2333
|
+
}, Ci = {
|
|
2334
|
+
bgColor: { value: "#fff", type: "color", label: "component.options.bgColor" },
|
|
2335
|
+
titleColor: { value: "#111", type: "color", label: "component.options.titleColor" },
|
|
2336
|
+
titleSize: { value: 14, type: "number", label: "component.options.titleSize" },
|
|
2319
2337
|
bgImg: { value: "", type: "image", label: "component.monitor.bgImg" },
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2338
|
+
/** 背景图对应素材 uid(素材使用记录 / 关联接口用;不在属性表展示) */
|
|
2339
|
+
bgImgMaterialUid: { value: "", type: "string", label: "component.options.materialUid" },
|
|
2340
|
+
outer: {
|
|
2341
|
+
value: { width: "100%", height: "100%", top: "0%", left: "0%" },
|
|
2342
|
+
type: "object",
|
|
2343
|
+
label: "component.monitor.outerSize"
|
|
2344
|
+
},
|
|
2345
|
+
inner: {
|
|
2346
|
+
value: { width: "100%", height: "100%" },
|
|
2347
|
+
type: "object",
|
|
2348
|
+
label: "component.monitor.innerSize"
|
|
2349
|
+
},
|
|
2350
|
+
multipleImg: { value: !1, type: "checkbox", label: "component.monitor.multipleImg" },
|
|
2351
|
+
statusFv: {
|
|
2352
|
+
value: "",
|
|
2353
|
+
type: "string",
|
|
2354
|
+
label: "component.monitor.statusFv",
|
|
2355
|
+
required: !0,
|
|
2356
|
+
dependent: "multipleImg"
|
|
2357
|
+
},
|
|
2324
2358
|
object: { value: "", type: "string", label: "component.monitor.object", dependent: "multipleImg" },
|
|
2325
2359
|
images: { value: [{ code: "0", value: "" }], type: "status", label: "", dependent: "multipleImg" },
|
|
2326
|
-
radiusSize: 8,
|
|
2327
|
-
isHideTitle: !0
|
|
2328
|
-
},
|
|
2360
|
+
radiusSize: { value: 8, type: "number", label: "component.options.radiusSize" },
|
|
2361
|
+
isHideTitle: { value: !0, type: "checkbox", label: "component.options.isHideTitle" }
|
|
2362
|
+
}, Ai = [
|
|
2329
2363
|
{
|
|
2330
2364
|
name: "参数一",
|
|
2331
2365
|
fv: "",
|
|
@@ -2340,7 +2374,7 @@ const jn = /* @__PURE__ */ ci(di), hi = "data:image/svg+xml,%3c?xml%20version='1
|
|
|
2340
2374
|
fontSize: 12,
|
|
2341
2375
|
isBold: !1
|
|
2342
2376
|
}
|
|
2343
|
-
],
|
|
2377
|
+
], Ri = [
|
|
2344
2378
|
// 通用字段(所有类型都可能用到)
|
|
2345
2379
|
"name",
|
|
2346
2380
|
"fv",
|
|
@@ -2373,13 +2407,13 @@ const jn = /* @__PURE__ */ ci(di), hi = "data:image/svg+xml,%3c?xml%20version='1
|
|
|
2373
2407
|
{ key: "color", dependent: "type", dependentValue: ["Digit", "Status"] },
|
|
2374
2408
|
// Status(状态)
|
|
2375
2409
|
{ key: "status", dependent: "type", dependentValue: "Status" }
|
|
2376
|
-
],
|
|
2410
|
+
], ji = ["mosaic"], Fi = {
|
|
2377
2411
|
useAlias: !1,
|
|
2378
2412
|
multiObject: !1,
|
|
2379
2413
|
showBothModes: !0,
|
|
2380
2414
|
// 显示单对象和多对象两个版本
|
|
2381
2415
|
source: "mosaic"
|
|
2382
|
-
},
|
|
2416
|
+
}, Vi = { DEFAULT: zi, OPTIONS: Ci, DATA: Ai, PARAMS: Ri, SOURCE: ji, COMMON: Fi }, $i = /* @__PURE__ */ oi(Rn(An({}, Vi), {
|
|
2383
2417
|
__name: "scd",
|
|
2384
2418
|
props: {
|
|
2385
2419
|
conf: { type: Object, default: () => ({ data: [] }) },
|
|
@@ -2387,224 +2421,410 @@ const jn = /* @__PURE__ */ ci(di), hi = "data:image/svg+xml,%3c?xml%20version='1
|
|
|
2387
2421
|
uid: { type: String, default: "" },
|
|
2388
2422
|
theme: { type: String, default: "light" }
|
|
2389
2423
|
},
|
|
2390
|
-
setup(
|
|
2391
|
-
const
|
|
2392
|
-
|
|
2424
|
+
setup(V) {
|
|
2425
|
+
const z = "monitor_" + Math.random().toString(16).substring(4, 12), j = $t(null), q = V, ne = "--";
|
|
2426
|
+
function F(g) {
|
|
2427
|
+
if (g == null || g === "") return "";
|
|
2428
|
+
if (typeof g == "string") return g.trim();
|
|
2429
|
+
if (typeof g == "object" && g !== null) {
|
|
2430
|
+
const y = g;
|
|
2431
|
+
for (const E of ["material_path", "materialPath", "path", "value", "url", "fileUrl"]) {
|
|
2432
|
+
const L = y[E];
|
|
2433
|
+
if (typeof L == "string" && L.trim()) return L.trim();
|
|
2434
|
+
}
|
|
2435
|
+
}
|
|
2436
|
+
return "";
|
|
2437
|
+
}
|
|
2438
|
+
let de = null;
|
|
2439
|
+
function R() {
|
|
2440
|
+
var g, y, E;
|
|
2441
|
+
return (E = (y = j.value) != null ? y : (g = document.getElementById(z)) == null ? void 0 : g.querySelector("[data-scd-layout-root]")) != null ? E : null;
|
|
2442
|
+
}
|
|
2443
|
+
function Q() {
|
|
2444
|
+
de && (de.disconnect(), de = null);
|
|
2445
|
+
}
|
|
2446
|
+
function re(g) {
|
|
2447
|
+
if (typeof g == "number" && Number.isFinite(g)) return g;
|
|
2448
|
+
if (typeof g == "string") {
|
|
2449
|
+
const y = g.trim();
|
|
2450
|
+
if (!y || y.endsWith("%") || y.endsWith("px")) return null;
|
|
2451
|
+
if (/^-?\d+(\.\d+)?$/i.test(y)) {
|
|
2452
|
+
const E = parseFloat(y);
|
|
2453
|
+
return Number.isFinite(E) ? E : null;
|
|
2454
|
+
}
|
|
2455
|
+
}
|
|
2456
|
+
return null;
|
|
2457
|
+
}
|
|
2458
|
+
function ce(g, y) {
|
|
2459
|
+
if (!(y > 0)) return;
|
|
2460
|
+
if (typeof g == "string") {
|
|
2461
|
+
const L = g.trim();
|
|
2462
|
+
if (!L) return;
|
|
2463
|
+
if (L.endsWith("%")) return L;
|
|
2464
|
+
if (L.endsWith("px")) {
|
|
2465
|
+
const D = parseFloat(L);
|
|
2466
|
+
return Number.isFinite(D) ? `${D / y * 100}%` : void 0;
|
|
2467
|
+
}
|
|
2468
|
+
}
|
|
2469
|
+
const E = re(g);
|
|
2470
|
+
if (E != null)
|
|
2471
|
+
return `${E / y * 100}%`;
|
|
2472
|
+
}
|
|
2473
|
+
function _e(g) {
|
|
2474
|
+
const y = R();
|
|
2475
|
+
if (!y) return !1;
|
|
2476
|
+
const E = y.clientWidth, L = y.clientHeight;
|
|
2477
|
+
if (E <= 0 || L <= 0) return !1;
|
|
2478
|
+
const D = g.data;
|
|
2479
|
+
if (!Array.isArray(D))
|
|
2480
|
+
return g.height = L, !0;
|
|
2481
|
+
const C = typeof g.height == "number" && g.height > 0 ? g.height : L;
|
|
2482
|
+
for (const O of D) {
|
|
2483
|
+
const B = ce(O == null ? void 0 : O.x, E), W = ce(O == null ? void 0 : O.y, L);
|
|
2484
|
+
B !== void 0 && (O.x = B), W !== void 0 && (O.y = W), typeof (O == null ? void 0 : O.height) == "number" && C > 0 && (O.height = Math.floor(L / C * O.height));
|
|
2485
|
+
}
|
|
2486
|
+
return g.height = L, !0;
|
|
2487
|
+
}
|
|
2488
|
+
function Le(g) {
|
|
2489
|
+
ui(() => {
|
|
2490
|
+
if (_e(g)) return;
|
|
2491
|
+
Q();
|
|
2492
|
+
const y = R();
|
|
2493
|
+
if (!y || typeof ResizeObserver == "undefined") {
|
|
2494
|
+
requestAnimationFrame(() => {
|
|
2495
|
+
_e(g);
|
|
2496
|
+
});
|
|
2497
|
+
return;
|
|
2498
|
+
}
|
|
2499
|
+
de = new ResizeObserver(() => {
|
|
2500
|
+
_e(g) && Q();
|
|
2501
|
+
}), de.observe(y);
|
|
2502
|
+
});
|
|
2503
|
+
}
|
|
2504
|
+
function ke() {
|
|
2505
|
+
var y;
|
|
2506
|
+
const g = (y = q.conf) == null ? void 0 : y.data;
|
|
2507
|
+
return Array.isArray(g) ? `${g.length}|${g.map((E) => [E == null ? void 0 : E.type, E == null ? void 0 : E.fv, String(E == null ? void 0 : E.x), String(E == null ? void 0 : E.y)].join(":")).join(";")}` : "0";
|
|
2508
|
+
}
|
|
2509
|
+
jn(ke, () => {
|
|
2510
|
+
Le(q.conf);
|
|
2511
|
+
}, { flush: "post" });
|
|
2512
|
+
class ze extends pi {
|
|
2393
2513
|
extractStyles() {
|
|
2394
|
-
|
|
2395
|
-
const T = this.props.conf.options, O = {
|
|
2514
|
+
const y = {
|
|
2396
2515
|
bgColor: this.getOptionValue("bgColor", "#fff"),
|
|
2397
2516
|
titleColor: this.getOptionValue("titleColor", "#111"),
|
|
2398
2517
|
titleSize: this.getOptionValue("titleSize", 14),
|
|
2399
|
-
bgImg: this.getOptionValue("bgImg", ""),
|
|
2518
|
+
bgImg: F(this.getOptionValue("bgImg", "")),
|
|
2400
2519
|
radiusSize: this.getOptionValue("radiusSize", 4),
|
|
2401
2520
|
isHideTitle: this.getOptionValue("isHideTitle", !1),
|
|
2402
2521
|
outer: this.getOptionValue("outer", { width: "95%", height: "95%", top: "5%", left: "5%" }),
|
|
2403
2522
|
inner: this.getOptionValue("inner", { width: "100%", height: "100%" })
|
|
2404
2523
|
};
|
|
2405
|
-
return (
|
|
2524
|
+
return this.getOptionValue("multipleImg", !1) && (y.multipleImg = !0, y.statusFv = this.getOptionValue("statusFv", ""), y.images = this.getOptionValue("images", [{ code: "0", value: "" }]), y.object = this.getOptionValue("object", "")), y;
|
|
2406
2525
|
}
|
|
2407
2526
|
init() {
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
const T = ((z = document.getElementById(M)) == null ? void 0 : z.clientWidth) || 0, O = ((D = document.getElementById(M)) == null ? void 0 : D.clientHeight) || 0;
|
|
2411
|
-
this.props.conf.data.forEach((P) => {
|
|
2412
|
-
const B = this.props.conf.height || O;
|
|
2413
|
-
typeof P.x == "number" && (P.x = `${P.x / T * 100}%`, P.y = `${P.y / O * 100}%`), P.height = Math.floor(O / B * P.height);
|
|
2414
|
-
}), this.props.conf.height = O;
|
|
2527
|
+
return Vt(this, null, function* () {
|
|
2528
|
+
this.Style.value = this.extractStyles(), this.applyTheme(), Ce.value = this.Style.value.bgImg, Le(this.props.conf);
|
|
2415
2529
|
});
|
|
2416
2530
|
}
|
|
2417
2531
|
// ✅ 删除 setHistoryData(),不再需要历史数据
|
|
2418
2532
|
// ✅ 重写 setSocketData(),处理多种显示类型
|
|
2419
2533
|
// 注意:Session 已经根据 object_id 精确匹配并分发数据
|
|
2420
|
-
setSocketData(
|
|
2421
|
-
var
|
|
2422
|
-
if (!
|
|
2423
|
-
const { data:
|
|
2424
|
-
if (
|
|
2425
|
-
var
|
|
2534
|
+
setSocketData(y) {
|
|
2535
|
+
var L;
|
|
2536
|
+
if (!y) return;
|
|
2537
|
+
const { data: E } = this.props.conf;
|
|
2538
|
+
if (E.forEach((D) => {
|
|
2539
|
+
var C, O;
|
|
2426
2540
|
try {
|
|
2427
|
-
const
|
|
2428
|
-
D.value = (
|
|
2429
|
-
} catch (
|
|
2430
|
-
D.value = (
|
|
2541
|
+
const B = this.extractDataValue(y, D.fv);
|
|
2542
|
+
D.value = (C = B != null ? B : D.default) != null ? C : ne;
|
|
2543
|
+
} catch (B) {
|
|
2544
|
+
D.value = (O = D.default) != null ? O : ne;
|
|
2431
2545
|
}
|
|
2432
2546
|
}), this.Style.value.multipleImg && this.Style.value.statusFv) {
|
|
2433
|
-
const D = this.extractDataValue(
|
|
2434
|
-
|
|
2547
|
+
const D = this.extractDataValue(y, this.Style.value.statusFv), C = (L = this.Style.value.images) == null ? void 0 : L.find((O) => String(O.code) === String(D));
|
|
2548
|
+
Ce.value = F(C == null ? void 0 : C.value) || this.Style.value.bgImg;
|
|
2435
2549
|
}
|
|
2436
2550
|
}
|
|
2437
2551
|
}
|
|
2438
|
-
const
|
|
2439
|
-
|
|
2440
|
-
const
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
const
|
|
2445
|
-
return
|
|
2446
|
-
},
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2552
|
+
const Ve = new ze(q, "scd");
|
|
2553
|
+
Ve.setupLifecycle();
|
|
2554
|
+
const ue = Ve.getStyle(), Ce = $t(""), pe = gt(() => {
|
|
2555
|
+
var E, L;
|
|
2556
|
+
const g = F(Ce.value);
|
|
2557
|
+
if (g) return g;
|
|
2558
|
+
const y = (L = (E = q.conf) == null ? void 0 : E.options) == null ? void 0 : L.bgImg;
|
|
2559
|
+
return y && typeof y == "object" && y !== null && "value" in y ? F(y.value) : typeof y == "string" ? y.trim() : "";
|
|
2560
|
+
}), H = $t("");
|
|
2561
|
+
let X = null, fe = 0, oe = null;
|
|
2562
|
+
const d = () => {
|
|
2563
|
+
X && (URL.revokeObjectURL(X), X = null);
|
|
2564
|
+
};
|
|
2565
|
+
function $e() {
|
|
2566
|
+
return Vt(this, null, function* () {
|
|
2567
|
+
const g = pe.value.trim(), y = ++fe;
|
|
2568
|
+
if (oe == null || oe.abort(), oe = new AbortController(), !g) {
|
|
2569
|
+
d(), H.value = "";
|
|
2570
|
+
return;
|
|
2571
|
+
}
|
|
2572
|
+
if (g.startsWith("blob:") || g.startsWith("data:")) {
|
|
2573
|
+
d(), H.value = g;
|
|
2574
|
+
return;
|
|
2575
|
+
}
|
|
2576
|
+
if (g.toLowerCase().includes("mixportal")) {
|
|
2577
|
+
d(), H.value = "", console.warn("[scd] 背景为门户本地上传路径(mixportal),请在设计器从素材库重新选择背景", g);
|
|
2578
|
+
return;
|
|
2579
|
+
}
|
|
2580
|
+
const E = gi(mi(g));
|
|
2581
|
+
if (!E) {
|
|
2582
|
+
d(), H.value = "";
|
|
2583
|
+
return;
|
|
2584
|
+
}
|
|
2585
|
+
try {
|
|
2586
|
+
d();
|
|
2587
|
+
const L = {}, D = di();
|
|
2588
|
+
D && (L.Authorization = `Bearer ${D}`);
|
|
2589
|
+
const C = yield fetch(E, {
|
|
2590
|
+
mode: "cors",
|
|
2591
|
+
credentials: "include",
|
|
2592
|
+
signal: oe.signal,
|
|
2593
|
+
headers: L
|
|
2594
|
+
});
|
|
2595
|
+
if (y !== fe) return;
|
|
2596
|
+
if (!C.ok) {
|
|
2597
|
+
console.warn("[scd] 背景图加载失败", C.status, E), H.value = "";
|
|
2598
|
+
return;
|
|
2599
|
+
}
|
|
2600
|
+
const O = yield C.blob();
|
|
2601
|
+
if (y !== fe) return;
|
|
2602
|
+
if (!O.size) {
|
|
2603
|
+
H.value = "";
|
|
2604
|
+
return;
|
|
2605
|
+
}
|
|
2606
|
+
X = URL.createObjectURL(O), H.value = X;
|
|
2607
|
+
} catch (L) {
|
|
2608
|
+
if ((L == null ? void 0 : L.name) === "AbortError" || y !== fe) return;
|
|
2609
|
+
console.warn("[scd] 背景图 fetch 异常", L), H.value = "";
|
|
2610
|
+
}
|
|
2611
|
+
});
|
|
2612
|
+
}
|
|
2613
|
+
jn(() => pe.value, () => {
|
|
2614
|
+
$e();
|
|
2615
|
+
}, { immediate: !0 }), ai(() => {
|
|
2616
|
+
fe++, oe == null || oe.abort(), d(), H.value = "", Q();
|
|
2617
|
+
});
|
|
2618
|
+
const et = gt(() => ({
|
|
2619
|
+
minHeight: 0
|
|
2620
|
+
})), Ae = gt(() => {
|
|
2621
|
+
var D, C, O;
|
|
2622
|
+
const g = ((D = ue.value) == null ? void 0 : D.inner) || { width: "100%", height: "100%" }, y = String((C = g.width) != null ? C : "100%").trim() || "100%", E = String((O = g.height) != null ? O : "100%").trim() || "100%";
|
|
2623
|
+
return {
|
|
2624
|
+
position: "absolute",
|
|
2625
|
+
left: "0",
|
|
2626
|
+
top: "0",
|
|
2627
|
+
width: y,
|
|
2628
|
+
height: E,
|
|
2629
|
+
maxWidth: "100%",
|
|
2630
|
+
maxHeight: "100%",
|
|
2631
|
+
objectFit: y === "100%" && E === "100%" ? "fill" : "contain",
|
|
2632
|
+
objectPosition: "center center",
|
|
2633
|
+
zIndex: "0",
|
|
2634
|
+
pointerEvents: "none",
|
|
2635
|
+
boxSizing: "border-box"
|
|
2636
|
+
};
|
|
2637
|
+
}), tt = gt(() => vi(q.conf.options)), Z = (g) => {
|
|
2638
|
+
let y = 5;
|
|
2639
|
+
return /^\d+$/.test(g) && (y = Number(g)), y + 1;
|
|
2640
|
+
}, be = (g, y) => {
|
|
2641
|
+
const E = y.pieces ? Number(y.pieces) : 5, L = y.max ? Number(y.max) : 100, D = y.min ? Number(y.min) : 0;
|
|
2642
|
+
return L - Math.floor((L - D) / E) * g;
|
|
2643
|
+
}, $ = () => {
|
|
2644
|
+
$n("." + z).draggable({
|
|
2645
|
+
modifiers: [$n.modifiers.restrictRect({ restriction: "parent", endOnly: !0 })],
|
|
2646
|
+
onmove(g) {
|
|
2647
|
+
K(g);
|
|
2451
2648
|
}
|
|
2452
2649
|
});
|
|
2453
|
-
},
|
|
2454
|
-
const { data:
|
|
2455
|
-
if (!
|
|
2456
|
-
const
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2650
|
+
}, K = (g) => {
|
|
2651
|
+
const { data: y } = q.conf, E = R();
|
|
2652
|
+
if (!E) return;
|
|
2653
|
+
const L = E.clientWidth, D = E.clientHeight, C = (O, B, W) => {
|
|
2654
|
+
if (typeof O == "number" && Number.isFinite(O)) return O + W;
|
|
2655
|
+
if (typeof O == "string") {
|
|
2656
|
+
const ie = O.trim();
|
|
2657
|
+
if (ie.endsWith("%")) {
|
|
2658
|
+
const x = parseFloat(ie) / 100;
|
|
2659
|
+
return (Number.isFinite(x) ? x : 0) * B + W;
|
|
2660
|
+
}
|
|
2661
|
+
if (ie.endsWith("px")) {
|
|
2662
|
+
const x = parseFloat(ie);
|
|
2663
|
+
return (Number.isFinite(x) ? x : 0) + W;
|
|
2664
|
+
}
|
|
2665
|
+
const S = re(O);
|
|
2666
|
+
if (S != null) return S + W;
|
|
2667
|
+
}
|
|
2668
|
+
return W;
|
|
2669
|
+
};
|
|
2670
|
+
y.forEach((O, B) => {
|
|
2671
|
+
if (`${O.type}_${z}_${O.fv}_${B}` === g.target.id) {
|
|
2672
|
+
const W = C(O.x, L, g.dx), ie = C(O.y, D, g.dy);
|
|
2673
|
+
O.x = `${W / L * 100}%`, O.y = `${ie / D * 100}%`;
|
|
2462
2674
|
}
|
|
2463
2675
|
});
|
|
2464
|
-
},
|
|
2465
|
-
const
|
|
2466
|
-
let
|
|
2467
|
-
return
|
|
2468
|
-
},
|
|
2469
|
-
let
|
|
2470
|
-
return String(
|
|
2471
|
-
},
|
|
2472
|
-
var
|
|
2473
|
-
let
|
|
2474
|
-
return (
|
|
2475
|
-
String(
|
|
2476
|
-
}),
|
|
2676
|
+
}, J = (g) => {
|
|
2677
|
+
const y = g.max - g.min;
|
|
2678
|
+
let E, L;
|
|
2679
|
+
return g.value < g.startValue ? (E = Math.abs((g.value - g.startValue) / y * g.height), L = g.value / y * g.height) : (E = Math.abs((g.value - g.startValue) / y * g.height), L = g.startValue / y * g.height), { height: `${E}px`, bottom: `${L}px` };
|
|
2680
|
+
}, he = (g) => {
|
|
2681
|
+
let y = "standby";
|
|
2682
|
+
return String(g.value) === g.online && (y = "online"), String(g.value) === g.offline && (y = "offline"), y;
|
|
2683
|
+
}, Te = (g) => {
|
|
2684
|
+
var E;
|
|
2685
|
+
let y = { text: "--", color: g.color };
|
|
2686
|
+
return (E = g.status) == null || E.forEach((L) => {
|
|
2687
|
+
String(g.value) === String(L.code) && (y.text = L.text, y.color = L.color);
|
|
2688
|
+
}), y;
|
|
2477
2689
|
};
|
|
2478
|
-
return
|
|
2479
|
-
var
|
|
2480
|
-
return
|
|
2690
|
+
return q.mode === "edit" && $(), (g, y) => {
|
|
2691
|
+
var E, L, D, C, O, B, W, ie, S;
|
|
2692
|
+
return se(), le("div", {
|
|
2481
2693
|
class: "mix-component",
|
|
2482
|
-
style:
|
|
2694
|
+
style: U({ backgroundColor: Fe(ue).bgColor, borderRadius: `${Fe(ue).radiusSize}px` })
|
|
2483
2695
|
}, [
|
|
2484
|
-
|
|
2696
|
+
te("div", {
|
|
2485
2697
|
class: "mix-title",
|
|
2486
|
-
style:
|
|
2487
|
-
},
|
|
2488
|
-
|
|
2698
|
+
style: U(tt.value)
|
|
2699
|
+
}, ye(V.conf.caption || V.conf.name), 5),
|
|
2700
|
+
te("div", {
|
|
2489
2701
|
class: "mix-body",
|
|
2490
|
-
id:
|
|
2702
|
+
id: z
|
|
2491
2703
|
}, [
|
|
2492
|
-
|
|
2493
|
-
style:
|
|
2494
|
-
height: (
|
|
2495
|
-
width: (
|
|
2496
|
-
top: (
|
|
2497
|
-
left: (
|
|
2704
|
+
te("div", {
|
|
2705
|
+
style: U({
|
|
2706
|
+
height: (L = (E = Fe(ue)) == null ? void 0 : E.outer) == null ? void 0 : L.height,
|
|
2707
|
+
width: (C = (D = Fe(ue)) == null ? void 0 : D.outer) == null ? void 0 : C.width,
|
|
2708
|
+
top: (B = (O = Fe(ue)) == null ? void 0 : O.outer) == null ? void 0 : B.top,
|
|
2709
|
+
left: (ie = (W = Fe(ue)) == null ? void 0 : W.outer) == null ? void 0 : ie.left
|
|
2498
2710
|
}),
|
|
2499
2711
|
class: "absolute"
|
|
2500
2712
|
}, [
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2713
|
+
te("div", {
|
|
2714
|
+
ref_key: "scdLayoutRootRef",
|
|
2715
|
+
ref: j,
|
|
2716
|
+
class: "w-[100%] h-full relative",
|
|
2717
|
+
"data-scd-layout-root": "",
|
|
2718
|
+
style: U(et.value)
|
|
2507
2719
|
}, [
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2720
|
+
H.value ? (se(), le("img", {
|
|
2721
|
+
key: 0,
|
|
2722
|
+
class: "scd-bg-raster",
|
|
2723
|
+
src: H.value,
|
|
2724
|
+
alt: "",
|
|
2725
|
+
draggable: "false",
|
|
2726
|
+
style: U(Ae.value)
|
|
2727
|
+
}, null, 12, Ei)) : si("", !0),
|
|
2728
|
+
(se(!0), le(Bt, null, Fn((S = V.conf) == null ? void 0 : S.data, (x, N) => {
|
|
2729
|
+
var Oe;
|
|
2730
|
+
return se(), le(Bt, {
|
|
2731
|
+
key: x.fv + "_" + N
|
|
2512
2732
|
}, [
|
|
2513
|
-
|
|
2733
|
+
x.type == "ULG" ? (se(), le("div", {
|
|
2514
2734
|
key: 0,
|
|
2515
|
-
class:
|
|
2516
|
-
id: `ULG_${
|
|
2517
|
-
style:
|
|
2735
|
+
class: Je(`${z} liquid absolute`),
|
|
2736
|
+
id: `ULG_${z}_${x.fv}_${N}`,
|
|
2737
|
+
style: U({ height: `${x.height}px`, left: x.x, top: x.y, zIndex: N + 1 })
|
|
2518
2738
|
}, [
|
|
2519
|
-
|
|
2739
|
+
te("div", {
|
|
2520
2740
|
class: "liquid-bar",
|
|
2521
|
-
style:
|
|
2741
|
+
style: U({ width: `${x.width}px` })
|
|
2522
2742
|
}, [
|
|
2523
|
-
|
|
2743
|
+
te("div", {
|
|
2524
2744
|
class: "liquid-value",
|
|
2525
|
-
id:
|
|
2526
|
-
title:
|
|
2527
|
-
style:
|
|
2528
|
-
}, null, 12,
|
|
2745
|
+
id: z + "_Liquid_" + x.fv,
|
|
2746
|
+
title: x.value,
|
|
2747
|
+
style: U({ height: J(x).height, bottom: J(x).bottom })
|
|
2748
|
+
}, null, 12, Li)
|
|
2529
2749
|
], 4),
|
|
2530
|
-
|
|
2750
|
+
te("div", {
|
|
2531
2751
|
class: "liquid-scale",
|
|
2532
|
-
style:
|
|
2752
|
+
style: U({ display: x.showScale === !1 ? "none" : "flex" })
|
|
2533
2753
|
}, [
|
|
2534
|
-
(
|
|
2754
|
+
(se(!0), le(Bt, null, Fn(Z(x.pieces), (nt, Pe) => (se(), le("div", {
|
|
2535
2755
|
class: "split",
|
|
2536
|
-
key:
|
|
2537
|
-
style:
|
|
2756
|
+
key: Pe,
|
|
2757
|
+
style: U({ fontSize: `${x.fontSize}px`, fontWeight: x.isBold ? "bold" : "normal" })
|
|
2538
2758
|
}, [
|
|
2539
|
-
|
|
2759
|
+
te("span", ki, ye(be(Pe, x)), 1)
|
|
2540
2760
|
], 4))), 128))
|
|
2541
2761
|
], 4)
|
|
2542
|
-
], 14,
|
|
2762
|
+
], 14, _i)) : x.type == "Signal" ? (se(), le("div", {
|
|
2543
2763
|
key: 1,
|
|
2544
|
-
class:
|
|
2545
|
-
style:
|
|
2546
|
-
id: `Signal_${
|
|
2547
|
-
}, null, 14,
|
|
2764
|
+
class: Je(`${z} signal absolute ${he(x)}`),
|
|
2765
|
+
style: U({ width: `${x.fontSize}px`, height: `${x.fontSize}px`, left: x.x, top: x.y, zIndex: N + 1 }),
|
|
2766
|
+
id: `Signal_${z}_${x.fv}_${N}`
|
|
2767
|
+
}, null, 14, Ti)) : x.type == "Digit" ? (se(), le("div", {
|
|
2548
2768
|
key: 2,
|
|
2549
|
-
class:
|
|
2550
|
-
style:
|
|
2551
|
-
left:
|
|
2552
|
-
top:
|
|
2553
|
-
color:
|
|
2554
|
-
fontSize: `${
|
|
2555
|
-
fontWeight:
|
|
2556
|
-
zIndex:
|
|
2769
|
+
class: Je(`${z} absolute`),
|
|
2770
|
+
style: U({
|
|
2771
|
+
left: x.x,
|
|
2772
|
+
top: x.y,
|
|
2773
|
+
color: x.color,
|
|
2774
|
+
fontSize: `${x.fontSize}px`,
|
|
2775
|
+
fontWeight: x.isBold ? "bold" : "normal",
|
|
2776
|
+
zIndex: N + 1
|
|
2557
2777
|
}),
|
|
2558
|
-
id: `Digit_${
|
|
2559
|
-
},
|
|
2778
|
+
id: `Digit_${z}_${x.fv}_${N}`
|
|
2779
|
+
}, ye((Oe = x.value) != null ? Oe : x.default) + ye(x.unit ? " " + x.unit : ""), 15, Oi)) : x.type == "Status" ? (se(), le("div", {
|
|
2560
2780
|
key: 3,
|
|
2561
|
-
class:
|
|
2562
|
-
id: `Status_${
|
|
2563
|
-
style:
|
|
2781
|
+
class: Je(`${z} absolute status`),
|
|
2782
|
+
id: `Status_${z}_${x.fv}_${N}`,
|
|
2783
|
+
style: U({ color: Te(x).color, left: x.x, top: x.y, zIndex: N + 1 })
|
|
2564
2784
|
}, [
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
style:
|
|
2569
|
-
id: "monitorStatus-" +
|
|
2570
|
-
}, null, 12,
|
|
2571
|
-
|
|
2572
|
-
id: "monitorStatusSpan-" +
|
|
2573
|
-
style:
|
|
2574
|
-
},
|
|
2785
|
+
li(ye(x.name) + ": ", 1),
|
|
2786
|
+
te("span", null, [
|
|
2787
|
+
te("div", {
|
|
2788
|
+
style: U({ "background-color": Te(x).color }),
|
|
2789
|
+
id: "monitorStatus-" + x.fv
|
|
2790
|
+
}, null, 12, Ii),
|
|
2791
|
+
te("span", {
|
|
2792
|
+
id: "monitorStatusSpan-" + x.fv,
|
|
2793
|
+
style: U({ color: Te(x).color })
|
|
2794
|
+
}, ye(Te(x).text), 13, Mi)
|
|
2575
2795
|
])
|
|
2576
|
-
], 14,
|
|
2796
|
+
], 14, Pi)) : (se(), le("div", {
|
|
2577
2797
|
key: 4,
|
|
2578
|
-
class:
|
|
2579
|
-
id: `Plate_${
|
|
2580
|
-
style:
|
|
2581
|
-
width: `${
|
|
2582
|
-
fontSize: `${
|
|
2583
|
-
fontWeight:
|
|
2584
|
-
left:
|
|
2585
|
-
top:
|
|
2586
|
-
zIndex:
|
|
2798
|
+
class: Je(`${z} absolute plate`),
|
|
2799
|
+
id: `Plate_${z}_${x.fv}_${N}`,
|
|
2800
|
+
style: U({
|
|
2801
|
+
width: `${x.width}px`,
|
|
2802
|
+
fontSize: `${x.fontSize}px`,
|
|
2803
|
+
fontWeight: x.isBold ? "bold" : "normal",
|
|
2804
|
+
left: x.x,
|
|
2805
|
+
top: x.y,
|
|
2806
|
+
zIndex: N + 1
|
|
2587
2807
|
})
|
|
2588
2808
|
}, [
|
|
2589
|
-
|
|
2809
|
+
te("div", {
|
|
2590
2810
|
class: "name",
|
|
2591
|
-
style:
|
|
2592
|
-
},
|
|
2593
|
-
|
|
2811
|
+
style: U({ color: x.titleColor, backgroundColor: x.titleBg })
|
|
2812
|
+
}, ye(x.name || "--") + ye(x.unit ? "/" + x.unit : ""), 5),
|
|
2813
|
+
te("div", {
|
|
2594
2814
|
class: "value",
|
|
2595
|
-
style:
|
|
2596
|
-
},
|
|
2597
|
-
], 14,
|
|
2815
|
+
style: U({ color: x.valueColor, backgroundColor: x.valueBg, borderColor: x.titleBg })
|
|
2816
|
+
}, ye(x.value || "--"), 5)
|
|
2817
|
+
], 14, Di))
|
|
2598
2818
|
], 64);
|
|
2599
2819
|
}), 128))
|
|
2600
2820
|
], 4)
|
|
2601
2821
|
], 4)
|
|
2602
2822
|
]),
|
|
2603
|
-
|
|
2823
|
+
ci(g.$slots, "default", {}, void 0, !0)
|
|
2604
2824
|
], 4);
|
|
2605
2825
|
};
|
|
2606
2826
|
}
|
|
2607
|
-
})),
|
|
2827
|
+
})), Yi = /* @__PURE__ */ hi($i, [["__scopeId", "data-v-fe89e6af"]]);
|
|
2608
2828
|
export {
|
|
2609
|
-
|
|
2829
|
+
Yi as default
|
|
2610
2830
|
};
|