mixdashboards 1.1.21 → 1.1.23

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.
Files changed (357) hide show
  1. package/dist/{AgActionsRenderer-3HKXKUJY.js → AgActionsRenderer-5w70myzB.js} +1 -1
  2. package/dist/{AgActionsRenderer-DnPvuT_-.cjs → AgActionsRenderer-DyhCl2zz.cjs} +1 -1
  3. package/dist/{AgGridTable-BQvI6jpO.cjs → AgGridTable-CDcTnAen.cjs} +1 -1
  4. package/dist/{AgGridTable-BQ8M3fDj.js → AgGridTable-CktZxLim.js} +1 -1
  5. package/dist/{BaseComponent-Dn65PXTp.js → BaseComponent-BppXM0zf.js} +3 -3
  6. package/dist/{BaseComponent-DKuQG62G.cjs → BaseComponent-oKNx9Ues.cjs} +1 -1
  7. package/dist/{EChartComponentBase-8GSbyY5P.cjs → EChartComponentBase-EgcDDKn2.cjs} +1 -1
  8. package/dist/{EChartComponentBase-skupRYzl.js → EChartComponentBase-nG6UXIUB.js} +2 -2
  9. package/dist/{EmergencyPlanPanel-DLvOrE5U.cjs → EmergencyPlanPanel-B1eIafEC.cjs} +1 -1
  10. package/dist/{EmergencyPlanPanel-C4OsnsPP.js → EmergencyPlanPanel-D_4Fn5SO.js} +1 -1
  11. package/dist/{HistoryPlanDialog-DI0H_vgZ.js → HistoryPlanDialog-CEwhx44E.js} +1 -1
  12. package/dist/{HistoryPlanDialog--99rPq54.cjs → HistoryPlanDialog-hp8-y_lT.cjs} +1 -1
  13. package/dist/{MixiotAppDetailPage-4mYR4gHm.cjs → MixiotAppDetailPage-BjQ8xhQq.cjs} +1 -1
  14. package/dist/{MixiotAppDetailPage-C_NrtqJU.js → MixiotAppDetailPage-CtW2uh3e.js} +1 -1
  15. package/dist/{MonitoringMap-Gxy8ldt1.js → MonitoringMap-BvcCSGLu.js} +2 -2
  16. package/dist/{MonitoringMap-CstXoU8n.cjs → MonitoringMap-DQvaJ3cy.cjs} +1 -1
  17. package/dist/{UniverSheet-DGNOHAEJ.js → UniverSheet-BkiTo3FI.js} +2 -2
  18. package/dist/{UniverSheet-phDDfwXk.cjs → UniverSheet-DqpoNfxC.cjs} +1 -1
  19. package/dist/{accelerationChart-B_y_8Y4q.cjs → accelerationChart-BlqnD3ZO.cjs} +1 -1
  20. package/dist/{accelerationChart-C4JTCc65.js → accelerationChart-DZFOLlGl.js} +2 -2
  21. package/dist/{actionItem-CGOgCPJR.js → actionItem-BamQ9wHb.js} +2 -2
  22. package/dist/{actionItem-Bdw3MAAf.cjs → actionItem-Dswx8azg.cjs} +1 -1
  23. package/dist/{alarmLevelChart-BQF-4a0s.js → alarmLevelChart-D89lJkJp.js} +2 -2
  24. package/dist/{alarmLevelChart-CY4GqDio.cjs → alarmLevelChart-euP-K6Eh.cjs} +1 -1
  25. package/dist/{alertTable-DgiRdm5f.js → alertTable-C_KEi2iA.js} +2 -2
  26. package/dist/{alertTable-D3riLPwz.cjs → alertTable-ZrYSUz-T.cjs} +1 -1
  27. package/dist/{aliasObjectSelectorDemo-DXFCCnvj.cjs → aliasObjectSelectorDemo-Cfs07tyO.cjs} +1 -1
  28. package/dist/{aliasObjectSelectorDemo-C7gQUdGu.js → aliasObjectSelectorDemo-NiBEw-mA.js} +1 -1
  29. package/dist/{annualRainfallChart-C1yG42iq.js → annualRainfallChart-A95P4AEf.js} +2 -2
  30. package/dist/{annualRainfallChart-D3oUahrK.cjs → annualRainfallChart-Djb5QJ-h.cjs} +1 -1
  31. package/dist/{aqi-DLqM9gGc.js → aqi-CNSzrLpl.js} +2 -2
  32. package/dist/{aqi-B3g_go92.cjs → aqi-COyB9n8o.cjs} +1 -1
  33. package/dist/{aqiIndass-DRYU-FAs.cjs → aqiIndass-7m16-XLR.cjs} +1 -1
  34. package/dist/{aqiIndass-DDtB5_wf.js → aqiIndass-C6chEVOK.js} +2 -2
  35. package/dist/{areaDeformCurve-DaLtFoJT.js → areaDeformCurve-Cvx5K5KZ.js} +2 -2
  36. package/dist/{areaDeformCurve-CnvUJY_x.cjs → areaDeformCurve-Rsny7t_k.cjs} +1 -1
  37. package/dist/{arrayCard-9p0Bkc_e.cjs → arrayCard-C4BO5wUS.cjs} +1 -1
  38. package/dist/{arrayCard-FYb8TmUw.js → arrayCard-XkZcuTc2.js} +2 -2
  39. package/dist/{audio-DGxXcB0a.cjs → audio-Dkj1kTtj.cjs} +1 -1
  40. package/dist/{audio-BBXpJP54.js → audio-DyEuCoVg.js} +2 -2
  41. package/dist/{bar-D26zndUl.js → bar-KH_MWom4.js} +2 -2
  42. package/dist/{bar-btY9Pwkk.cjs → bar-lrGCFy3V.cjs} +1 -1
  43. package/dist/{basicShapeToolbox-XR_NHK87.cjs → basicShapeToolbox-DRXBPX0p.cjs} +1 -1
  44. package/dist/{basicShapeToolbox-Y6mXTA8o.js → basicShapeToolbox-O828p_f2.js} +2 -2
  45. package/dist/{bmp-DlSoc3Rw.cjs → bmp-BcAuwVEV.cjs} +1 -1
  46. package/dist/{bmp-C7tYeLi0.js → bmp-DVP8hR6v.js} +2 -2
  47. package/dist/{box-DroQaZjH.js → box-CIpRedoA.js} +2 -2
  48. package/dist/{box-DyIX9weX.cjs → box-K-VpApOq.cjs} +1 -1
  49. package/dist/{chartConfigPanel-DvTKL5EZ.cjs → chartConfigPanel-CbSTq7Uc.cjs} +1 -1
  50. package/dist/{chartConfigPanel-D4dbsVKj.js → chartConfigPanel-DvLs-ST_.js} +1 -1
  51. package/dist/{circleBar-DCnx8wNj.js → circleBar-BJiYA0I7.js} +2 -2
  52. package/dist/{circleBar-DulXgWd8.cjs → circleBar-BcWg5DUN.cjs} +1 -1
  53. package/dist/{clock-CeM6LdAl.cjs → clock-BkxKCVkd.cjs} +1 -1
  54. package/dist/{clock-B1X6vX22.js → clock-DY-m6uU8.js} +2 -2
  55. package/dist/{clt-IAzRVgiu.js → clt-3BsKSjrA.js} +2 -2
  56. package/dist/{clt-CcpO8rrD.cjs → clt-CzE6V7Mo.cjs} +1 -1
  57. package/dist/{cmc-B4xRwSti.cjs → cmc-B48WvFoD.cjs} +1 -1
  58. package/dist/{cmc-Swd4NfxE.js → cmc-CN3HZPkZ.js} +2 -2
  59. package/dist/{cmp--gCtei5x.js → cmp-BGyKJxgJ.js} +2 -2
  60. package/dist/{cmp-B9Aip3T2.cjs → cmp-DQXfLw3q.cjs} +1 -1
  61. package/dist/{conclusionCard-CRif9GmS.cjs → conclusionCard-BKGc-jAW.cjs} +1 -1
  62. package/dist/{conclusionCard-DQ0HTHsg.js → conclusionCard-Bjjq5ydK.js} +2 -2
  63. package/dist/{controlList-CwLNEkAi.cjs → controlList-DIQaaHzW.cjs} +1 -1
  64. package/dist/{controlList-4TidO_XJ.js → controlList-DbgerZgl.js} +4 -4
  65. package/dist/{controlRecordList-dPW6e4FN.js → controlRecordList-Cm5kuri9.js} +3 -3
  66. package/dist/{controlRecordList-CuvV65TE.cjs → controlRecordList-gX1bBSdd.cjs} +1 -1
  67. package/dist/{controlRecordListAPP-DCzTOeXr.cjs → controlRecordListAPP-BJtuTA_v.cjs} +1 -1
  68. package/dist/{controlRecordListAPP-CObVdW3l.js → controlRecordListAPP-CywYspwG.js} +2 -2
  69. package/dist/{crd-AH_sGivo.cjs → crd-BV-uMbgA.cjs} +1 -1
  70. package/dist/{crd-CEWC005o.js → crd-brsp3q42.js} +2 -2
  71. package/dist/{ctrBtn-8xev-mny.js → ctrBtn-v3TaYFER.js} +3 -3
  72. package/dist/{ctrBtn-nYp9T0n0.cjs → ctrBtn-vLEwc04q.cjs} +1 -1
  73. package/dist/{ctrSet-z_9ztVyG.cjs → ctrSet--QCLNHTM.cjs} +1 -1
  74. package/dist/{ctrSet-3Q4eJSfK.js → ctrSet-CwOz-1q8.js} +3 -3
  75. package/dist/{ctrSwitch-BhqYXTMZ.js → ctrSwitch-B0wzsUx-.js} +3 -3
  76. package/dist/{ctrSwitch-DacpvyBJ.cjs → ctrSwitch-VnJgIwNZ.cjs} +1 -1
  77. package/dist/{dataManagement-BiPhJbF1.js → dataManagement-Buj3liEA.js} +2 -2
  78. package/dist/{dataManagement-DP1Chfo2.cjs → dataManagement-HlKhW6uM.cjs} +1 -1
  79. package/dist/{dataReport-CQaL-d_q.js → dataReport-81aUJpN3.js} +2 -2
  80. package/dist/{dataReport-C_8TF5Dz.cjs → dataReport-DefSBauC.cjs} +1 -1
  81. package/dist/{dataTable-D6-325qb.cjs → dataTable-Do1eIYVl.cjs} +1 -1
  82. package/dist/{dataTable-Bbx5XgV-.js → dataTable-gB3dhTod.js} +1 -1
  83. package/dist/{datetime-CmXZdgkW.js → datetime-BD82Foh8.js} +2 -2
  84. package/dist/{datetime-DBrUO7wD.cjs → datetime-Ci2923_w.cjs} +1 -1
  85. package/dist/{deepClusterSlipSurface-Ch8i2ql5.cjs → deepClusterSlipSurface-C3WuaKgL.cjs} +1 -1
  86. package/dist/{deepClusterSlipSurface-D7o7mgg7.js → deepClusterSlipSurface-DnGCI-37.js} +2 -2
  87. package/dist/{deepDataMatrix-DoM8KUHn.cjs → deepDataMatrix-DqLO9LMn.cjs} +1 -1
  88. package/dist/{deepDataMatrix-D9GCg496.js → deepDataMatrix-T5vhXxB2.js} +2 -2
  89. package/dist/{deepDisplacement3D-C8ZRCP-R.cjs → deepDisplacement3D-9al5iKRo.cjs} +1 -1
  90. package/dist/{deepDisplacement3D-Cjx11pre.js → deepDisplacement3D-CaBrvaDB.js} +2 -2
  91. package/dist/{deepDisplacementChart-BHe83IoB.js → deepDisplacementChart-BiZTrFbd.js} +3 -3
  92. package/dist/{deepDisplacementChart-HuWab3pz.js → deepDisplacementChart-CnP_pT6q.js} +2 -2
  93. package/dist/{deepDisplacementChart-BlcS3DVl.cjs → deepDisplacementChart-Cxt1sX_9.cjs} +1 -1
  94. package/dist/{deepDisplacementChart-r3GIC8hq.cjs → deepDisplacementChart-DsKqhf_D.cjs} +1 -1
  95. package/dist/{deepDisplacementView-BHZQ4s3K.cjs → deepDisplacementView-BnxNFHro.cjs} +1 -1
  96. package/dist/{deepDisplacementView-B4RBH8Ie.js → deepDisplacementView-CCZGM1os.js} +1 -1
  97. package/dist/{deepNodeTemperatureChart-BswYkP9V.cjs → deepNodeTemperatureChart-BHk_DHiI.cjs} +1 -1
  98. package/dist/{deepNodeTemperatureChart-D9maVN-M.js → deepNodeTemperatureChart-D3DPkDpP.js} +2 -2
  99. package/dist/{deepTangentAngleChart-DIWKa8r3.js → deepTangentAngleChart-Ay6ubBII.js} +2 -2
  100. package/dist/{deepTangentAngleChart-DQxOv4Vz.cjs → deepTangentAngleChart-CtkMWMGi.cjs} +1 -1
  101. package/dist/{deepTemperatureField-DlLLcuFb.js → deepTemperatureField-B3a4_a4e.js} +3 -3
  102. package/dist/{deepTemperatureField-2GBzigs_.cjs → deepTemperatureField-DoM1mpkc.cjs} +1 -1
  103. package/dist/{deepTrendChart-CbYdfjcX.cjs → deepTrendChart-8Ffk7Fyh.cjs} +1 -1
  104. package/dist/{deepTrendChart-CdX41nqe.js → deepTrendChart-DrZH4tDh.js} +2 -2
  105. package/dist/{deviceOnlineStatus-BMfNv4fX.cjs → deviceOnlineStatus-BLBrn2kY.cjs} +1 -1
  106. package/dist/{deviceOnlineStatus-BdOeLbLy.js → deviceOnlineStatus-DN14uxWu.js} +2 -2
  107. package/dist/{deviceStatus-CbYBmGvy.cjs → deviceStatus-BhbD8x9n.cjs} +1 -1
  108. package/dist/{deviceStatus-B8Ijgoyf.js → deviceStatus-CizZRyZx.js} +2 -2
  109. package/dist/{displacementDataTable-BI8cE-vY.cjs → displacementDataTable-B7j99TqQ.cjs} +1 -1
  110. package/dist/{displacementDataTable-Cqi5Ql6a.js → displacementDataTable-CEN0P6Hl.js} +2 -2
  111. package/dist/{displacementTrajectoryChart-D1UPR4dt.js → displacementTrajectoryChart-DZL3OfqG.js} +2 -2
  112. package/dist/{displacementTrajectoryChart-DJM_B-gL.cjs → displacementTrajectoryChart-DqoqLg9m.cjs} +1 -1
  113. package/dist/{displacementTrendChart-C4jvpdRY.cjs → displacementTrendChart-5L8B5miy.cjs} +1 -1
  114. package/dist/{displacementTrendChart-Dii90QjN.js → displacementTrendChart-CtFxdr4I.js} +2 -2
  115. package/dist/{dxf-DAAwQlgQ.js → dxf-Db7pX1rT.js} +2 -2
  116. package/dist/{dxf-DsJIwOOJ.cjs → dxf-Mdf7-mCg.cjs} +1 -1
  117. package/dist/{dzc-CpML7WAZ.cjs → dzc-7yMgyL71.cjs} +1 -1
  118. package/dist/{dzc-BjOYTnIF.js → dzc-DUmJRH1P.js} +2 -2
  119. package/dist/{emergencyPlan-DWpGIszu.cjs → emergencyPlan-BAgYZfNI.cjs} +1 -1
  120. package/dist/{emergencyPlan-DeL1roPL.js → emergencyPlan-CZMk_c0e.js} +3 -3
  121. package/dist/{evn-D0ROeiQD.cjs → evn-3POR_VnU.cjs} +1 -1
  122. package/dist/{evn-CUajXlYc.js → evn-D8iCkbir.js} +2 -2
  123. package/dist/{evolutionChart-D23ALmPJ.cjs → evolutionChart-D3FB5zxu.cjs} +1 -1
  124. package/dist/{evolutionChart-B-2W9qVE.js → evolutionChart-DQvwRUdy.js} +3 -3
  125. package/dist/{fileViewer-DHDmo6px.cjs → fileViewer-WkV-zAO7.cjs} +1 -1
  126. package/dist/{fileViewer-D6-jyRWy.js → fileViewer-rCVtd7T0.js} +2 -2
  127. package/dist/{filterBar-Cw-wbtF1.js → filterBar-DlSxn_wD.js} +2 -2
  128. package/dist/{filterBar-Bx0qkR7L.cjs → filterBar-DltIdPWJ.cjs} +1 -1
  129. package/dist/{fireCombustionCurve-wPPE55j_.js → fireCombustionCurve-1y5hK4L5.js} +3 -3
  130. package/dist/{fireCombustionCurve-Dj2o6qcy.cjs → fireCombustionCurve-HawHjc-M.cjs} +1 -1
  131. package/dist/{fireFilterBar-COgdZt2b.js → fireFilterBar-BlqbGOP4.js} +2 -2
  132. package/dist/{fireFilterBar-t-aUk0FZ.cjs → fireFilterBar-DAZT-Bpx.cjs} +1 -1
  133. package/dist/{fireHistoryTable-Em_cwZSy.js → fireHistoryTable-TJBxXMbO.js} +2 -2
  134. package/dist/{fireHistoryTable-BgzroLVi.cjs → fireHistoryTable-Xnho__5M.cjs} +1 -1
  135. package/dist/{gag-Dd-osrR9.js → gag-2bC1SX8z.js} +2 -2
  136. package/dist/{gag-C5gOltT8.cjs → gag-BWyurWbj.cjs} +1 -1
  137. package/dist/{gasStationList-CepcJ9BG.js → gasStationList-ByDfA1ME.js} +3 -3
  138. package/dist/{gasStationList-CKe02Teb.cjs → gasStationList-E8nroJxH.cjs} +1 -1
  139. package/dist/{geo3dViewer-yHqVv2BH.js → geo3dViewer-DWZgiNmX.js} +3 -3
  140. package/dist/{geo3dViewer-CSq4-kE-.cjs → geo3dViewer-DdckADaP.cjs} +1 -1
  141. package/dist/{glbModel-CBM7-1vZ.cjs → glbModel-BuDBHnle.cjs} +1 -1
  142. package/dist/{glbModel-DFDIJi5z.js → glbModel-TWsPG1jm.js} +2 -2
  143. package/dist/{globalObjectSelector-BoBf_njv.js → globalObjectSelector-BfXFpIT4.js} +1 -1
  144. package/dist/{globalObjectSelector-BvK0QxXk.cjs → globalObjectSelector-DkGvaSLm.cjs} +1 -1
  145. package/dist/{gnssFilterBar-C4Ozsjee.js → gnssFilterBar--IPnNd_X.js} +2 -2
  146. package/dist/{gnssFilterBar-BabiLlIC.cjs → gnssFilterBar-DUtrx67L.cjs} +1 -1
  147. package/dist/{gnssHistoryTable-DWICO-OK.js → gnssHistoryTable-BBUFmkql.js} +2 -2
  148. package/dist/{gnssHistoryTable-CEtxui4z.cjs → gnssHistoryTable-DqmU1v9p.cjs} +1 -1
  149. package/dist/{gnssMapView-C5IzKoTF.cjs → gnssMapView-BjxSphVu.cjs} +2 -2
  150. package/dist/{gnssMapView-CgLO6fng.js → gnssMapView-CuYU8-Sb.js} +4 -4
  151. package/dist/{gnssSectionProfile-BFU5_iQa.js → gnssSectionProfile-BO7DLZw4.js} +2 -2
  152. package/dist/{gnssSectionProfile-BcS3AU5H.cjs → gnssSectionProfile-DBzpNVU4.cjs} +1 -1
  153. package/dist/{gnssTimeSeriesChart-2AOe01nY.cjs → gnssTimeSeriesChart-BB0bCkKI.cjs} +1 -1
  154. package/dist/{gnssTimeSeriesChart-Cyc9JVmX.js → gnssTimeSeriesChart-DBsNpdMg.js} +2 -2
  155. package/dist/{gnssXYTrajectory-B3HDdORI.cjs → gnssXYTrajectory-B1OBq_4e.cjs} +1 -1
  156. package/dist/{gnssXYTrajectory-DAjqaaOt.js → gnssXYTrajectory-w4zrq5tm.js} +2 -2
  157. package/dist/{grd-jisN3fY_.cjs → grd-BpRLvbmM.cjs} +1 -1
  158. package/dist/{grd-BdraSTc0.js → grd-Dk8p1C9M.js} +2 -2
  159. package/dist/{grdIndass-BuEWpm2p.js → grdIndass-3Nk4a_rb.js} +2 -2
  160. package/dist/{grdIndass-BxJWHgbc.cjs → grdIndass-UDpY-94l.cjs} +1 -1
  161. package/dist/{grg-BiUyteXn.js → grg-CwPVp18v.js} +2 -2
  162. package/dist/{grg-DHDNZzvS.cjs → grg-Dapz4hmC.cjs} +1 -1
  163. package/dist/{gridview-DsDgxIu-.js → gridview-BPdaWTQ-.js} +2 -2
  164. package/dist/{gridview-C2eGcIgv.cjs → gridview-CEmHdQmQ.cjs} +1 -1
  165. package/dist/{groundwaterFilterBar-CwNVHLoq.js → groundwaterFilterBar-CPmbtMUK.js} +2 -2
  166. package/dist/{groundwaterFilterBar-Dwoyvzll.cjs → groundwaterFilterBar-DdrB2OhL.cjs} +1 -1
  167. package/dist/{groundwaterProfileChart-xVZS96Bs.cjs → groundwaterProfileChart--_aICdsm.cjs} +2 -2
  168. package/dist/{groundwaterProfileChart-pYkKSQRV.js → groundwaterProfileChart-rTFbKcTT.js} +3 -3
  169. package/dist/{groundwaterTimeCurve-CRic1FkR.js → groundwaterTimeCurve-BMhhLifW.js} +3 -3
  170. package/dist/{groundwaterTimeCurve-CCP0yOcn.cjs → groundwaterTimeCurve-DhiEP70g.cjs} +1 -1
  171. package/dist/{groupCard-9mvfU5Qi.cjs → groupCard-BEXXZr5H.cjs} +1 -1
  172. package/dist/{groupCard-DyiQzmSU.js → groupCard-Cd-SjK0D.js} +2 -2
  173. package/dist/{headerBar-CT2WWLFX.js → headerBar-CkP6zJ6m.js} +2 -2
  174. package/dist/{headerBar-BnZZrxdl.cjs → headerBar-DONbsve9.cjs} +1 -1
  175. package/dist/{history-Dm7563t_.cjs → history-CgrmMOpp.cjs} +1 -1
  176. package/dist/{history-CY_TCu9h.js → history-DA3HuWif.js} +1 -1
  177. package/dist/{index-CPTJIw32.js → index-BK7gdNxS.js} +2 -2
  178. package/dist/{index-DoEyCVDU.cjs → index-ucOU7Nfo.cjs} +2 -2
  179. package/dist/{insarDeformChart-D7r5dP7T.cjs → insarDeformChart-DxIuzMiF.cjs} +1 -1
  180. package/dist/{insarDeformChart-Bf6Q1Kll.js → insarDeformChart-ePJmJDWH.js} +2 -2
  181. package/dist/{insarImageViewer-CupmlYkz.js → insarImageViewer-CUl6mPHo.js} +2 -2
  182. package/dist/{insarImageViewer-Cj6ywbUG.cjs → insarImageViewer-D6VvwZOs.cjs} +1 -1
  183. package/dist/{kds-vKrvUAFM.js → kds-DKrmV1Ug.js} +2 -2
  184. package/dist/{kds-BXJfeT1L.cjs → kds-ixp_4Q7d.cjs} +1 -1
  185. package/dist/{kpiCard-SXeIckZe.cjs → kpiCard-Frhjsrok.cjs} +1 -1
  186. package/dist/{kpiCard-DxJnC2K1.js → kpiCard-VfiVkVE5.js} +2 -2
  187. package/dist/{landslideMap-g1sW7hGk.js → landslideMap-BmpgIOKU.js} +3 -3
  188. package/dist/{landslideMap-Byzuh2uI.cjs → landslideMap-Cefd78Hr.cjs} +1 -1
  189. package/dist/{landslideWarning-K2gltHjy.js → landslideWarning-C9w1g1eJ.js} +5 -5
  190. package/dist/{landslideWarning-DBYw20My.cjs → landslideWarning-CJwHD2g-.cjs} +1 -1
  191. package/dist/{layerTabs-pQHCSR8d.cjs → layerTabs-BWcJvu6o.cjs} +1 -1
  192. package/dist/{layerTabs-DhKwbCdm.js → layerTabs-CaYr3bVt.js} +2 -2
  193. package/dist/{leaflet-src-CLsvhZ1a.js → leaflet-src-CG0fL6E7.js} +1 -1
  194. package/dist/{leaflet-src-BNvMLv27.cjs → leaflet-src-cP_Xp59B.cjs} +1 -1
  195. package/dist/{lerc-7GSCiwa9.cjs → lerc-Dxyjp3lu.cjs} +1 -1
  196. package/dist/{lerc-CqUbnv8h.js → lerc-nA_bKo1b.js} +2 -2
  197. package/dist/{lin-D0itRkyl.cjs → lin-C9er-MKT.cjs} +1 -1
  198. package/dist/{lin-Bq35ycag.js → lin-d59CtiiD.js} +2 -2
  199. package/dist/{linIndass-DYq4eFAR.js → linIndass-BDTgMTrg.js} +2 -2
  200. package/dist/{linIndass-DWiz2vOV.cjs → linIndass-DPzJBKg2.cjs} +1 -1
  201. package/dist/{lst-DdajeugL.cjs → lst-CBn0m9tV.cjs} +1 -1
  202. package/dist/{lst-qvTez4v1.js → lst-_ruZrHgl.js} +2 -2
  203. package/dist/{manualEntry-D33u42uH.js → manualEntry-Czhqjh1V.js} +2 -2
  204. package/dist/{manualEntry-s4RAoEru.cjs → manualEntry-XpeHQjMv.cjs} +1 -1
  205. package/dist/{mapBackground-DM72oEn2.js → mapBackground-Byx5BgIh.js} +3 -3
  206. package/dist/{mapBackground-YtkaIPHY.cjs → mapBackground-CXtkx_cW.cjs} +1 -1
  207. package/dist/{mappingList-Dy_UeCUf.js → mappingList-BopA1RgG.js} +4 -4
  208. package/dist/{mappingList-Ch1HZwNc.cjs → mappingList-DF5tjtEH.cjs} +1 -1
  209. package/dist/{markdownViewer-DUjEXMVH.cjs → markdownViewer-ByvWuLpI.cjs} +1 -1
  210. package/dist/{markdownViewer-ZlwNlmLZ.js → markdownViewer-TG5ukdzU.js} +2 -2
  211. package/dist/{mix-control-modal-tXOouBPe.js → mix-control-modal-DLx3NuPd.js} +1 -1
  212. package/dist/{mix-control-modal-B3FrB7Jt.cjs → mix-control-modal-N8G3c3I-.cjs} +1 -1
  213. package/dist/{mixGrid-BU9U3aHI.cjs → mixGrid-BaZ7KaQS.cjs} +1 -1
  214. package/dist/{mixGrid-CogLsRzO.js → mixGrid-Beb6WPO1.js} +2 -2
  215. package/dist/mixdashboards.cjs +1 -1
  216. package/dist/mixdashboards.js +1 -1
  217. package/dist/{mjpegCamera-xUmmLzM-.js → mjpegCamera-BP-IbOTc.js} +2 -2
  218. package/dist/{mjpegCamera-g6FXbrP3.cjs → mjpegCamera-V98e_6FG.cjs} +1 -1
  219. package/dist/{monitorAlert-DZd5lJOJ.cjs → monitorAlert-BVS_Z8Dg.cjs} +1 -1
  220. package/dist/{monitorAlert-DhE_HvpR.js → monitorAlert-C0ZCmaZ_.js} +2 -2
  221. package/dist/{monitorData-CpWVhINV.cjs → monitorData-B1J-ygKQ.cjs} +1 -1
  222. package/dist/{monitorData-BnEkcdiN.js → monitorData-kf9OOmfz.js} +2 -2
  223. package/dist/{monitorSpeedChart-DwsoytUF.cjs → monitorSpeedChart--uIBgS1h.cjs} +1 -1
  224. package/dist/{monitorSpeedChart-CeW-Kk03.js → monitorSpeedChart-C4prba7u.js} +1 -1
  225. package/dist/{mxa-C58deh1I.js → mxa-BGzu1fVC.js} +2 -2
  226. package/dist/{mxa-0DZWI1xK.cjs → mxa-Dme1Zt_A.cjs} +1 -1
  227. package/dist/{myValue-B4ADQTTG.js → myValue-BvQtzCg8.js} +2 -2
  228. package/dist/{myValue-DQLm9XLI.cjs → myValue-G7YgrZEi.cjs} +1 -1
  229. package/dist/{myValueList-DZA9_HEh.cjs → myValueList-BkK57nlP.cjs} +1 -1
  230. package/dist/{myValueList-baXd51uR.js → myValueList-DZnNcwD1.js} +2 -2
  231. package/dist/{objectList-5m0NKALq.js → objectList-C3aDc79p.js} +4 -4
  232. package/dist/{objectList-BHmAruDg.cjs → objectList-CnZ4cQ35.cjs} +1 -1
  233. package/dist/{objectListAPP-COZlfKyw.js → objectListAPP-BPDJsUvS.js} +3 -3
  234. package/dist/{objectListAPP-Cs7Wu_86.cjs → objectListAPP-CPf3_qV6.cjs} +1 -1
  235. package/dist/{percentBar-CPfJrspp.cjs → percentBar-DveWRDZa.cjs} +1 -1
  236. package/dist/{percentBar-BV6nG2iK.js → percentBar-uDksWDo8.js} +2 -2
  237. package/dist/{photo-C4739K_A.cjs → photo-CoFS3w73.cjs} +1 -1
  238. package/dist/{photo-DK4Z23e3.js → photo-DF7-r79s.js} +2 -2
  239. package/dist/{pie-kb79hzax.cjs → pie-BcMX-6hx.cjs} +1 -1
  240. package/dist/{pie-Lx2zjyZY.js → pie-C-lL_OxY.js} +2 -2
  241. package/dist/{placeholder-CAWJju9d.cjs → placeholder-BBIq0zrf.cjs} +1 -1
  242. package/dist/{placeholder-Cv_i5j6V.js → placeholder-BUWbejeA.js} +1 -1
  243. package/dist/{pressBtn-DPp2yGFb.cjs → pressBtn-BdqLTZEg.cjs} +1 -1
  244. package/dist/{pressBtn-DwN7ExMn.js → pressBtn-s3cYVRzz.js} +3 -3
  245. package/dist/{processTable-DRzy2-fX.js → processTable-BMGcrtVo.js} +2 -2
  246. package/dist/{processTable-kGjdZ2SC.cjs → processTable-CtX3EbAy.cjs} +1 -1
  247. package/dist/{progressBar-D5GyaH8h.js → progressBar-DVBbUSKz.js} +2 -2
  248. package/dist/{progressBar-89gQ5oSf.cjs → progressBar-DkxV3lH4.cjs} +1 -1
  249. package/dist/{progressCircle-D6jGTviS.cjs → progressCircle-BTBFvBug.cjs} +1 -1
  250. package/dist/{progressCircle-C0qoN2X2.js → progressCircle-yhA1gSIx.js} +2 -2
  251. package/dist/{qrcode-DutO28qr.cjs → qrcode-BvUtJEcC.cjs} +1 -1
  252. package/dist/{qrcode-B7wIdO7u.js → qrcode-DMALwnTP.js} +2 -2
  253. package/dist/{raceBar-JrtM5isa.js → raceBar-DMVKWWNz.js} +2 -2
  254. package/dist/{raceBar-Kb4Ok0_0.cjs → raceBar-DvsXDDGV.cjs} +1 -1
  255. package/dist/{rad-BKh0I2W8.cjs → rad-BM2lPFkw.cjs} +1 -1
  256. package/dist/{rad-NhNcdAlO.js → rad-DUODmeni.js} +2 -2
  257. package/dist/{radarMapViewer-a-NY9MyR.cjs → radarMapViewer-2lMTV5vh.cjs} +1 -1
  258. package/dist/{radarMapViewer-BrGy_wsI.js → radarMapViewer-MrBQfMft.js} +2 -2
  259. package/dist/{rainfallFilterBar-CiVPGG1P.js → rainfallFilterBar-KgF4B7vU.js} +2 -2
  260. package/dist/{rainfallFilterBar-DlJryHw0.cjs → rainfallFilterBar-uA3YceH3.cjs} +1 -1
  261. package/dist/{rainfallTimeCurve-cYcKHYUj.cjs → rainfallTimeCurve-CrxG_T83.cjs} +1 -1
  262. package/dist/{rainfallTimeCurve-BwrlePpg.js → rainfallTimeCurve-D-n10joM.js} +3 -3
  263. package/dist/{rangeLin-CPKLO87X.js → rangeLin-BidSG4I4.js} +2 -2
  264. package/dist/{rangeLin-B24wJK2h.cjs → rangeLin-CG5Al_0h.cjs} +1 -1
  265. package/dist/{realtimeEvolutionMap-CHQ7-WE1.cjs → realtimeEvolutionMap-0sytTgyc.cjs} +1 -1
  266. package/dist/{realtimeEvolutionMap-ZFozACoZ.js → realtimeEvolutionMap-COR7Iu6m.js} +2 -2
  267. package/dist/{regionBar-Cz4GtJuo.js → regionBar-D83FYXIC.js} +2 -2
  268. package/dist/{regionBar-Dgv2JYSM.cjs → regionBar-DeN3pSgU.cjs} +1 -1
  269. package/dist/{request-aXSa-Jdv.js → request-B8xMI2Yd.js} +1 -1
  270. package/dist/{request-Dm2cf1Aw.cjs → request-P0isWVMj.cjs} +1 -1
  271. package/dist/{retainer1-B4KyW6bw.js → retainer1-DXCh3XD5.js} +3 -3
  272. package/dist/{retainer1-B6byWkE5.cjs → retainer1-QYXjY_-E.cjs} +1 -1
  273. package/dist/{retainer2-X6vRW_D5.js → retainer2-D9URWKd4.js} +3 -3
  274. package/dist/{retainer2-B06eGTYw.cjs → retainer2-DOL6R_wh.cjs} +1 -1
  275. package/dist/{retainerRecordList-C8wYAf_v.cjs → retainerRecordList-BrVOOzTp.cjs} +1 -1
  276. package/dist/{retainerRecordList-DDZSYpCF.js → retainerRecordList-DIJFqgdd.js} +4 -4
  277. package/dist/{retainerRecordListAPP-BHu691JS.cjs → retainerRecordListAPP-Bhhxg_6S.cjs} +1 -1
  278. package/dist/{retainerRecordListAPP-B2Lp-jHM.js → retainerRecordListAPP-CWfMiez9.js} +3 -3
  279. package/dist/{ringTopN-DX7OzPp7.js → ringTopN-71Wbku4t.js} +2 -2
  280. package/dist/{ringTopN-BpJZOE13.cjs → ringTopN-D2GoQZuJ.cjs} +1 -1
  281. package/dist/{riskRegionTable-DziKMS_2.cjs → riskRegionTable-B5dggNUC.cjs} +1 -1
  282. package/dist/{riskRegionTable-D7blgvMi.js → riskRegionTable-BNQTJ2Ge.js} +2 -2
  283. package/dist/{sankey-DjC4IYit.cjs → sankey-CH8gRYkn.cjs} +1 -1
  284. package/dist/{sankey-CmgfktZj.js → sankey-Cx4TqXaN.js} +2 -2
  285. package/dist/{scd-zUFKqN8p.js → scd-Bv-H3GsR.js} +2 -2
  286. package/dist/{scd-QV9whYOR.cjs → scd-C_SMyVrY.cjs} +1 -1
  287. package/dist/{sideMenu-POQpSa8C.cjs → sideMenu-BgvO2fLv.cjs} +1 -1
  288. package/dist/{sideMenu-CI23QNpx.js → sideMenu-CXqsSPSw.js} +2 -2
  289. package/dist/{slopeStability-E55huDws.js → slopeStability-BhAvmLBt.js} +2 -2
  290. package/dist/{slopeStability-Da70drIy.cjs → slopeStability-BoZcq3-T.cjs} +1 -1
  291. package/dist/{speedCurve-BhhUH79z.js → speedCurve-CWlf_Nax.js} +2 -2
  292. package/dist/{speedCurve-DSX1UJeW.cjs → speedCurve-CbrfiREi.cjs} +1 -1
  293. package/dist/{stackedBar-bgd2Ls04.js → stackedBar-BlnGr__w.js} +2 -2
  294. package/dist/{stackedBar-B0kr6QB7.cjs → stackedBar-n3cD2rDv.cjs} +1 -1
  295. package/dist/{stationList-D7k3Lot6.js → stationList-B2yEOYuh.js} +3 -3
  296. package/dist/{stationList-BSPTM0iI.cjs → stationList-CSNVN5HU.cjs} +1 -1
  297. package/dist/{stressFilterBar-Beupo7Zb.js → stressFilterBar-D4Sdfotu.js} +2 -2
  298. package/dist/{stressFilterBar-B3gk67B_.cjs → stressFilterBar-DzQ8jZ-7.cjs} +1 -1
  299. package/dist/{stressTimeCurve-DGBhkdbV.js → stressTimeCurve-DJNdn5mr.js} +3 -3
  300. package/dist/{stressTimeCurve-CbhFLXzA.cjs → stressTimeCurve-TsYsP2md.cjs} +1 -1
  301. package/dist/{swiper-UlVDFht8.cjs → swiper-DN_mRgrR.cjs} +1 -1
  302. package/dist/{swiper-BEau8Ehu.js → swiper-NMnLjniT.js} +2 -2
  303. package/dist/{tablemanCreate-WnNbHft8.js → tablemanCreate-79e2NgHq.js} +3 -3
  304. package/dist/{tablemanCreate-CF_D5gYW.cjs → tablemanCreate-CUU2ivYP.cjs} +1 -1
  305. package/dist/{tablemanDetail-yz3zQnFP.js → tablemanDetail-BJFScfLt.js} +4 -4
  306. package/dist/{tablemanDetail-_SNevfWv.cjs → tablemanDetail-Bn4EaFr9.cjs} +1 -1
  307. package/dist/{tablemanList-CzcVRDtI.js → tablemanList-BQVVSjNO.js} +4 -4
  308. package/dist/{tablemanList-CDJWp9Pu.cjs → tablemanList-UEqR1zbO.cjs} +1 -1
  309. package/dist/{tablemanTableList-Bm2fU0EX.js → tablemanTableList-BjeXb-Ed.js} +4 -4
  310. package/dist/{tablemanTableList-DX76_Wzv.cjs → tablemanTableList-CmNEMn22.cjs} +1 -1
  311. package/dist/{tablemanUpdate-zmDu6tfj.js → tablemanUpdate-CxYk0Q3p.js} +3 -3
  312. package/dist/{tablemanUpdate-wdF6NUSW.cjs → tablemanUpdate-qLGR6MSw.cjs} +1 -1
  313. package/dist/{terminalConfigList-Dpktm7uo.cjs → terminalConfigList-BRH0eNYF.cjs} +1 -1
  314. package/dist/{terminalConfigList-CCTkfKIn.js → terminalConfigList-BW3lNMcL.js} +4 -4
  315. package/dist/{terminalList-DTG1Cd-P.js → terminalList-CVXWY6gA.js} +4 -4
  316. package/dist/{terminalList-DlnAYr5c.cjs → terminalList-DlUCzkNN.cjs} +1 -1
  317. package/dist/{terminalListAPP-DcG5Iu89.cjs → terminalListAPP-CoYPnl5t.cjs} +1 -1
  318. package/dist/{terminalListAPP-BXX0YEmN.js → terminalListAPP-DgZacL77.js} +3 -3
  319. package/dist/{textbox-C5DmbaFz.cjs → textbox-CetvJfK5.cjs} +1 -1
  320. package/dist/{textbox-DyFcEXBF.js → textbox-zvSPeTYI.js} +2 -2
  321. package/dist/{timeQueryBar-OqKVqlTl.cjs → timeQueryBar-49gMRLtt.cjs} +1 -1
  322. package/dist/{timeQueryBar-BbWq3QkA.js → timeQueryBar-BQpYd4ts.js} +1 -1
  323. package/dist/{timeSeries-D_-6XcY8.js → timeSeries-AIs-H2YX.js} +3 -3
  324. package/dist/{timeSeries-BDp-gfRT.cjs → timeSeries-DUsUOOpX.cjs} +1 -1
  325. package/dist/{timeSeriesCurve-KPYndFEq.cjs → timeSeriesCurve-BoGHV9eI.cjs} +1 -1
  326. package/dist/{timeSeriesCurve-DgSGvMqB.js → timeSeriesCurve-BtY0gTLp.js} +3 -3
  327. package/dist/{toggleBtn-DtS2UoB4.cjs → toggleBtn-C7I9t8fL.cjs} +1 -1
  328. package/dist/{toggleBtn-D0JJAMZR.js → toggleBtn-Dvsu4Z4Y.js} +2 -2
  329. package/dist/{trajectoryConfigPanel-DxBIMfEx.js → trajectoryConfigPanel-Da0ER586.js} +1 -1
  330. package/dist/{trajectoryConfigPanel-Bth1LMLN.cjs → trajectoryConfigPanel-SK9LIASn.cjs} +1 -1
  331. package/dist/{trajectoryScatter-DqgFAVSz.js → trajectoryScatter-DavClc31.js} +2 -2
  332. package/dist/{trajectoryScatter-GkbJne40.cjs → trajectoryScatter-X17m903i.cjs} +1 -1
  333. package/dist/{universalConfigPanel-C4Teu_Op.cjs → universalConfigPanel-JWmYt-sl.cjs} +1 -1
  334. package/dist/{universalConfigPanel-BjyXE23U.js → universalConfigPanel-RqBW3pc4.js} +1 -1
  335. package/dist/{universalTable-BVwrJKq8.js → universalTable-CS7vowNy.js} +2 -2
  336. package/dist/{universalTable-D_rkyBG2.cjs → universalTable-MYoWpBsE.cjs} +1 -1
  337. package/dist/{useMixiotPanelPopperClass-DmA-0R1V.cjs → useMixiotPanelPopperClass-BnYZKYDg.cjs} +1 -1
  338. package/dist/{useMixiotPanelPopperClass-C6Y6iPSp.js → useMixiotPanelPopperClass-T_LvWhgr.js} +1 -1
  339. package/dist/{useTablemanApi-CJh5jpVJ.js → useTablemanApi-BIycvQl_.js} +1 -1
  340. package/dist/{useTablemanApi-Big2Hfsi.cjs → useTablemanApi-DMx5UbHw.cjs} +1 -1
  341. package/dist/{useTablemanFormPanel-prjUDI9m.cjs → useTablemanFormPanel-ClBQuigR.cjs} +1 -1
  342. package/dist/{useTablemanFormPanel-CvrN_jY3.js → useTablemanFormPanel-D2f6Nfjx.js} +2 -2
  343. package/dist/{useTablemanListActions-DVQL1pwu.js → useTablemanListActions-Ijr72FDy.js} +5 -5
  344. package/dist/{useTablemanListActions-B9SrCZRt.cjs → useTablemanListActions-f64pv0oB.cjs} +1 -1
  345. package/dist/{video-CdMEjVoF.cjs → video-CY8G2zF1.cjs} +1 -1
  346. package/dist/{video-DDHDy4Eq.js → video-ljtzNp1v.js} +2 -2
  347. package/dist/{videoMonitor-BZcjaMPX.cjs → videoMonitor-BTEUgf20.cjs} +1 -1
  348. package/dist/{videoMonitor-JQ4tj-qi.js → videoMonitor-DQeE-jAV.js} +2 -2
  349. package/dist/{vlu-Bmqrgnj8.js → vlu-B4m0MEBC.js} +2 -2
  350. package/dist/{vlu-39EqfkCs.cjs → vlu-C3kOWtbl.cjs} +1 -1
  351. package/dist/{warningOverview-DOsI-iKt.cjs → warningOverview-C07K822B.cjs} +1 -1
  352. package/dist/{warningOverview-Ctab9k92.js → warningOverview-HPbxxC5u.js} +3 -3
  353. package/dist/{weather-BwTT4bPM.js → weather-BNczIkOs.js} +2 -2
  354. package/dist/{weather-BfV-w4FG.cjs → weather-Cxg6dVwS.cjs} +1 -1
  355. package/dist/{windLin-Dfz6aBio.cjs → windLin-BQI5vPQo.cjs} +1 -1
  356. package/dist/{windLin-DgZctBal.js → windLin-B_U-SZvj.js} +2 -2
  357. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- "use strict";var ye=Object.defineProperty,ve=Object.defineProperties;var ge=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var be=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;var Q=(L,o,n)=>o in L?ye(L,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):L[o]=n,ee=(L,o)=>{for(var n in o||(o={}))be.call(o,n)&&Q(L,n,o[n]);if(K)for(var n of K(o))we.call(o,n)&&Q(L,n,o[n]);return L},te=(L,o)=>ve(L,ge(o));var oe=(L,o,n)=>new Promise((m,l)=>{var a=f=>{try{d(n.next(f))}catch(S){l(S)}},r=f=>{try{d(n.throw(f))}catch(S){l(S)}},d=f=>f.done?m(f.value):Promise.resolve(f.value).then(a,r);d((n=n.apply(L,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue");require("html2canvas");const Ce=require("./BaseComponent-DKuQG62G.cjs"),ke=require("./index-DoEyCVDU.cjs"),g=require("./three.module-CjayKmiG.cjs"),_e=require("./GLTFLoader-DhebSl5W.cjs"),Se=require("./OrbitControls-uuLGjaqy.cjs"),re=require("./CSS2DRenderer-nQ2DN9Uc.cjs"),ne=require("./ele-glbModel-icon-ByACDCrv.cjs"),W=new WeakMap;class Ae extends g.Loader{constructor(o){super(o),this.decoderPath="",this.decoderConfig={},this.decoderBinary=null,this.decoderPending=null,this.workerLimit=4,this.workerPool=[],this.workerNextTaskID=1,this.workerSourceURL="",this.defaultAttributeIDs={position:"POSITION",normal:"NORMAL",color:"COLOR",uv:"TEX_COORD"},this.defaultAttributeTypes={position:"Float32Array",normal:"Float32Array",color:"Float32Array",uv:"Float32Array"}}setDecoderPath(o){return this.decoderPath=o,this}setDecoderConfig(o){return this.decoderConfig=o,this}setWorkerLimit(o){return this.workerLimit=o,this}load(o,n,m,l){const a=new g.FileLoader(this.manager);a.setPath(this.path),a.setResponseType("arraybuffer"),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(o,r=>{this.parse(r,n,l)},m,l)}parse(o,n,m=()=>{}){this.decodeDracoFile(o,n,null,null,g.SRGBColorSpace,m).catch(m)}decodeDracoFile(o,n,m,l,a=g.LinearSRGBColorSpace,r=()=>{}){const d={attributeIDs:m||this.defaultAttributeIDs,attributeTypes:l||this.defaultAttributeTypes,useUniqueIDs:!!m,vertexColorSpace:a};return this.decodeGeometry(o,d).then(n).catch(r)}decodeGeometry(o,n){const m=JSON.stringify(n);if(W.has(o)){const f=W.get(o);if(f.key===m)return f.promise;if(o.byteLength===0)throw new Error("THREE.DRACOLoader: Unable to re-decode a buffer with different settings. Buffer has already been transferred.")}let l;const a=this.workerNextTaskID++,r=o.byteLength,d=this._getWorker(a,r).then(f=>(l=f,new Promise((S,A)=>{l._callbacks[a]={resolve:S,reject:A},l.postMessage({type:"decode",id:a,taskConfig:n,buffer:o},[o])}))).then(f=>this._createGeometry(f.geometry));return d.catch(()=>!0).then(()=>{l&&a&&this._releaseTask(l,a)}),W.set(o,{key:m,promise:d}),d}_createGeometry(o){const n=new g.BufferGeometry;o.index&&n.setIndex(new g.BufferAttribute(o.index.array,1));for(let m=0;m<o.attributes.length;m++){const l=o.attributes[m],a=l.name,r=l.array,d=l.itemSize,f=new g.BufferAttribute(r,d);a==="color"&&(this._assignVertexColorSpace(f,l.vertexColorSpace),f.normalized=!(r instanceof Float32Array)),n.setAttribute(a,f)}return n}_assignVertexColorSpace(o,n){if(n!==g.SRGBColorSpace)return;const m=new g.Color;for(let l=0,a=o.count;l<a;l++)m.fromBufferAttribute(o,l),g.ColorManagement.toWorkingColorSpace(m,g.SRGBColorSpace),o.setXYZ(l,m.r,m.g,m.b)}_loadLibrary(o,n){const m=new g.FileLoader(this.manager);return m.setPath(this.decoderPath),m.setResponseType(n),m.setWithCredentials(this.withCredentials),new Promise((l,a)=>{m.load(o,l,void 0,a)})}preload(){return this._initDecoder(),this}_initDecoder(){if(this.decoderPending)return this.decoderPending;const o=typeof WebAssembly!="object"||this.decoderConfig.type==="js",n=[];return o?n.push(this._loadLibrary("draco_decoder.js","text")):(n.push(this._loadLibrary("draco_wasm_wrapper.js","text")),n.push(this._loadLibrary("draco_decoder.wasm","arraybuffer"))),this.decoderPending=Promise.all(n).then(m=>{const l=m[0];o||(this.decoderConfig.wasmBinary=m[1]);const a=Le.toString(),r=["/* draco decoder */",l,"","/* worker */",a.substring(a.indexOf("{")+1,a.lastIndexOf("}"))].join(`
1
+ "use strict";var ye=Object.defineProperty,ve=Object.defineProperties;var ge=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var be=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;var Q=(L,o,n)=>o in L?ye(L,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):L[o]=n,ee=(L,o)=>{for(var n in o||(o={}))be.call(o,n)&&Q(L,n,o[n]);if(K)for(var n of K(o))we.call(o,n)&&Q(L,n,o[n]);return L},te=(L,o)=>ve(L,ge(o));var oe=(L,o,n)=>new Promise((m,l)=>{var a=f=>{try{d(n.next(f))}catch(S){l(S)}},r=f=>{try{d(n.throw(f))}catch(S){l(S)}},d=f=>f.done?m(f.value):Promise.resolve(f.value).then(a,r);d((n=n.apply(L,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue");require("html2canvas");const Ce=require("./BaseComponent-oKNx9Ues.cjs"),ke=require("./index-ucOU7Nfo.cjs"),g=require("./three.module-CjayKmiG.cjs"),_e=require("./GLTFLoader-DhebSl5W.cjs"),Se=require("./OrbitControls-uuLGjaqy.cjs"),re=require("./CSS2DRenderer-nQ2DN9Uc.cjs"),ne=require("./ele-glbModel-icon-ByACDCrv.cjs"),W=new WeakMap;class Ae extends g.Loader{constructor(o){super(o),this.decoderPath="",this.decoderConfig={},this.decoderBinary=null,this.decoderPending=null,this.workerLimit=4,this.workerPool=[],this.workerNextTaskID=1,this.workerSourceURL="",this.defaultAttributeIDs={position:"POSITION",normal:"NORMAL",color:"COLOR",uv:"TEX_COORD"},this.defaultAttributeTypes={position:"Float32Array",normal:"Float32Array",color:"Float32Array",uv:"Float32Array"}}setDecoderPath(o){return this.decoderPath=o,this}setDecoderConfig(o){return this.decoderConfig=o,this}setWorkerLimit(o){return this.workerLimit=o,this}load(o,n,m,l){const a=new g.FileLoader(this.manager);a.setPath(this.path),a.setResponseType("arraybuffer"),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(o,r=>{this.parse(r,n,l)},m,l)}parse(o,n,m=()=>{}){this.decodeDracoFile(o,n,null,null,g.SRGBColorSpace,m).catch(m)}decodeDracoFile(o,n,m,l,a=g.LinearSRGBColorSpace,r=()=>{}){const d={attributeIDs:m||this.defaultAttributeIDs,attributeTypes:l||this.defaultAttributeTypes,useUniqueIDs:!!m,vertexColorSpace:a};return this.decodeGeometry(o,d).then(n).catch(r)}decodeGeometry(o,n){const m=JSON.stringify(n);if(W.has(o)){const f=W.get(o);if(f.key===m)return f.promise;if(o.byteLength===0)throw new Error("THREE.DRACOLoader: Unable to re-decode a buffer with different settings. Buffer has already been transferred.")}let l;const a=this.workerNextTaskID++,r=o.byteLength,d=this._getWorker(a,r).then(f=>(l=f,new Promise((S,A)=>{l._callbacks[a]={resolve:S,reject:A},l.postMessage({type:"decode",id:a,taskConfig:n,buffer:o},[o])}))).then(f=>this._createGeometry(f.geometry));return d.catch(()=>!0).then(()=>{l&&a&&this._releaseTask(l,a)}),W.set(o,{key:m,promise:d}),d}_createGeometry(o){const n=new g.BufferGeometry;o.index&&n.setIndex(new g.BufferAttribute(o.index.array,1));for(let m=0;m<o.attributes.length;m++){const l=o.attributes[m],a=l.name,r=l.array,d=l.itemSize,f=new g.BufferAttribute(r,d);a==="color"&&(this._assignVertexColorSpace(f,l.vertexColorSpace),f.normalized=!(r instanceof Float32Array)),n.setAttribute(a,f)}return n}_assignVertexColorSpace(o,n){if(n!==g.SRGBColorSpace)return;const m=new g.Color;for(let l=0,a=o.count;l<a;l++)m.fromBufferAttribute(o,l),g.ColorManagement.toWorkingColorSpace(m,g.SRGBColorSpace),o.setXYZ(l,m.r,m.g,m.b)}_loadLibrary(o,n){const m=new g.FileLoader(this.manager);return m.setPath(this.decoderPath),m.setResponseType(n),m.setWithCredentials(this.withCredentials),new Promise((l,a)=>{m.load(o,l,void 0,a)})}preload(){return this._initDecoder(),this}_initDecoder(){if(this.decoderPending)return this.decoderPending;const o=typeof WebAssembly!="object"||this.decoderConfig.type==="js",n=[];return o?n.push(this._loadLibrary("draco_decoder.js","text")):(n.push(this._loadLibrary("draco_wasm_wrapper.js","text")),n.push(this._loadLibrary("draco_decoder.wasm","arraybuffer"))),this.decoderPending=Promise.all(n).then(m=>{const l=m[0];o||(this.decoderConfig.wasmBinary=m[1]);const a=Le.toString(),r=["/* draco decoder */",l,"","/* worker */",a.substring(a.indexOf("{")+1,a.lastIndexOf("}"))].join(`
2
2
  `);this.workerSourceURL=URL.createObjectURL(new Blob([r]))}),this.decoderPending}_getWorker(o,n){return this._initDecoder().then(()=>{if(this.workerPool.length<this.workerLimit){const l=new Worker(this.workerSourceURL);l._callbacks={},l._taskCosts={},l._taskLoad=0,l.postMessage({type:"init",decoderConfig:this.decoderConfig}),l.onmessage=function(a){const r=a.data;switch(r.type){case"decode":l._callbacks[r.id].resolve(r);break;case"error":l._callbacks[r.id].reject(r);break;default:console.error('THREE.DRACOLoader: Unexpected message, "'+r.type+'"')}},this.workerPool.push(l)}else this.workerPool.sort(function(l,a){return l._taskLoad>a._taskLoad?-1:1});const m=this.workerPool[this.workerPool.length-1];return m._taskCosts[o]=n,m._taskLoad+=n,m})}_releaseTask(o,n){o._taskLoad-=o._taskCosts[n],delete o._callbacks[n],delete o._taskCosts[n]}debug(){console.log("Task load: ",this.workerPool.map(o=>o._taskLoad))}dispose(){for(let o=0;o<this.workerPool.length;++o)this.workerPool[o].terminate();return this.workerPool.length=0,this.workerSourceURL!==""&&URL.revokeObjectURL(this.workerSourceURL),this}}function Le(){let L,o;onmessage=function(r){const d=r.data;switch(d.type){case"init":L=d.decoderConfig,o=new Promise(function(A){L.onModuleLoaded=function(u){A({draco:u})},DracoDecoderModule(L)});break;case"decode":const f=d.buffer,S=d.taskConfig;o.then(A=>{const u=A.draco,h=new u.Decoder;try{const w=n(u,h,new Int8Array(f),S),k=w.attributes.map(y=>y.array.buffer);w.index&&k.push(w.index.array.buffer),self.postMessage({type:"decode",id:d.id,geometry:w},k)}catch(w){console.error(w),self.postMessage({type:"error",id:d.id,error:w.message})}finally{u.destroy(h)}});break}};function n(r,d,f,S){const A=S.attributeIDs,u=S.attributeTypes;let h,w;const k=d.GetEncodedGeometryType(f);if(k===r.TRIANGULAR_MESH)h=new r.Mesh,w=d.DecodeArrayToMesh(f,f.byteLength,h);else if(k===r.POINT_CLOUD)h=new r.PointCloud,w=d.DecodeArrayToPointCloud(f,f.byteLength,h);else throw new Error("THREE.DRACOLoader: Unexpected geometry type.");if(!w.ok()||h.ptr===0)throw new Error("THREE.DRACOLoader: Decoding failed: "+w.error_msg());const y={index:null,attributes:[]};for(const v in A){const D=self[u[v]];let O,I;if(S.useUniqueIDs)I=A[v],O=d.GetAttributeByUniqueId(h,I);else{if(I=d.GetAttributeId(h,r[A[v]]),I===-1)continue;O=d.GetAttribute(h,I)}const M=l(r,d,h,v,D,O);v==="color"&&(M.vertexColorSpace=S.vertexColorSpace),y.attributes.push(M)}return k===r.TRIANGULAR_MESH&&(y.index=m(r,d,h)),r.destroy(h),y}function m(r,d,f){const A=f.num_faces()*3,u=A*4,h=r._malloc(u);d.GetTrianglesUInt32Array(f,u,h);const w=new Uint32Array(r.HEAPF32.buffer,h,A).slice();return r._free(h),{array:w,itemSize:1}}function l(r,d,f,S,A,u){const h=u.num_components(),k=f.num_points()*h,y=k*A.BYTES_PER_ELEMENT,v=a(r,A),D=r._malloc(y);d.GetAttributeDataArrayForAllPoints(f,u,v,y,D);const O=new A(r.HEAPF32.buffer,D,k).slice();return r._free(D),{name:S,array:O,itemSize:h}}function a(r,d){switch(d){case Float32Array:return r.DT_FLOAT32;case Int8Array:return r.DT_INT8;case Int16Array:return r.DT_INT16;case Int32Array:return r.DT_INT32;case Uint8Array:return r.DT_UINT8;case Uint16Array:return r.DT_UINT16;case Uint32Array:return r.DT_UINT32}}}const xe={key:0,class:"loading-overlay"},De={key:1,class:"error-overlay"},Re={class:"error-text"},Ee={class:"component-modal-wrapper"},Te={DEFAULT_ICON:ne.DEFAULT_ICON,ACTIVE_ICON:ne.ACTIVE_ICON,NAME_CN:"三维模型",NAME_EN:"3D Model",ORDER:6,PLATFORM:["pc","screen"]},Me={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor",hideAlpha:!0},modelUrl:{value:"",type:"string",label:"component.glbModel.modelUrl"},modelScale:{value:1,type:"number",label:"component.glbModel.modelScale",min:.1,max:10,step:.1},autoRotate:{value:!0,type:"checkbox",label:"component.glbModel.autoRotate"},rotateSpeed:{value:1,type:"number",label:"component.glbModel.rotateSpeed",min:.1,max:5,step:.1},lightIntensity:{value:1,type:"number",label:"component.glbModel.lightIntensity",min:0,max:5,step:.1},cameraDistance:{value:5,type:"number",label:"component.glbModel.cameraDistance",min:1,max:20,step:.5}},Ie=[],Pe=["name","fv","object_id","icon","chartType","targetComponentId","posX","posY","posZ"],Oe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Ne={useAlias:!1,multiObject:!1,source:"mosaic"},Ue={DEFAULT:Te,OPTIONS:Me,DATA:Ie,PARAMS:Pe,SOURCE:Oe,COMMON:Ne},ze=s.defineComponent(te(ee({},Ue),{__name:"glbModel",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(L,{expose:o}){s.useCssVars(e=>({c296d046:s.unref(a).bgColor}));const n=L;class m extends Ce.BaseComponent{extractStyles(){var c,i,p,C,_,x,R,E,U,P,z,q;const{options:t}=this.props.conf;return{bgColor:((c=t==null?void 0:t.bgColor)==null?void 0:c.value)||"#ffffff",modelUrl:((i=t==null?void 0:t.modelUrl)==null?void 0:i.value)||"",modelScale:(C=(p=t==null?void 0:t.modelScale)==null?void 0:p.value)!=null?C:1,autoRotate:(x=(_=t==null?void 0:t.autoRotate)==null?void 0:_.value)!=null?x:!0,rotateSpeed:(E=(R=t==null?void 0:t.rotateSpeed)==null?void 0:R.value)!=null?E:1,lightIntensity:(P=(U=t==null?void 0:t.lightIntensity)==null?void 0:U.value)!=null?P:1,cameraDistance:(q=(z=t==null?void 0:t.cameraDistance)==null?void 0:z.value)!=null?q:5}}}const l=new m(n,"glbModel");l.setupLifecycle();const a=l.getStyle(),r=s.ref(),d=s.ref(),f=s.ref(!1),S=s.ref(""),A=s.ref(a.value.autoRotate);let u,h,w,k,y,v,D=0,O,I;const M=s.ref([]),N=new Map,V=s.ref(!1),B=s.ref();let b=null;const $=()=>{if(b){const e=b._originalParent;e&&(e.appendChild(b),delete b._originalParent),b.style.visibility="hidden",b.style.position="absolute",b.style.zIndex="-1",b=null}V.value=!1,B.value&&(B.value.innerHTML="")},ae=()=>{var C;if(!d.value||!r.value)return;D&&(cancelAnimationFrame(D),D=0);const e=r.value.clientWidth,t=r.value.clientHeight;u=new g.Scene,u.background=new g.Color(a.value.bgColor),h=new g.PerspectiveCamera(45,e/t,.1,1e3),h.position.set(0,0,a.value.cameraDistance),w=new g.WebGLRenderer({canvas:d.value,antialias:!0,alpha:!0,powerPreference:"high-performance"}),w.setSize(e,t),w.setPixelRatio(Math.min(window.devicePixelRatio,2)),w.shadowMap.enabled=!1;const c=new g.AmbientLight(16777215,a.value.lightIntensity*.5);u.add(c);const i=new g.DirectionalLight(16777215,a.value.lightIntensity);i.position.set(5,5,5),u.add(i);const p=new g.DirectionalLight(16777215,a.value.lightIntensity*.3);p.position.set(-5,-5,-5),u.add(p),y=new Se.OrbitControls(h,w.domElement),y.enableDamping=!0,y.dampingFactor=.05,y.autoRotate=A.value,y.autoRotateSpeed=a.value.rotateSpeed,y.enableZoom=!0,y.enablePan=!1,y.enableRotate=!0,y.minDistance=.5,y.maxDistance=50,y.zoomSpeed=1,y.target.set(0,0,0),k=new re.CSS2DRenderer,k.setSize(e,t),k.domElement.style.position="absolute",k.domElement.style.top="0",k.domElement.style.left="0",k.domElement.style.pointerEvents="none",r.value.appendChild(k.domElement),O=new g.Raycaster,I=new g.Vector2,n.mode==="edit"&&((C=d.value)==null||C.addEventListener("dblclick",Y)),X()},se=e=>oe(null,null,function*(){if(!e){S.value="请设置模型URL";return}f.value=!0,S.value="";const t=new _e.GLTFLoader,c=new Ae;c.setDecoderPath("https://www.gstatic.com/draco/versioned/decoders/1.5.6/"),c.setDecoderConfig({type:"js"}),t.setDRACOLoader(c);try{const i=yield t.loadAsync(e);v&&(u.remove(v),v.traverse(T=>{T.geometry&&T.geometry.dispose(),T.material&&(Array.isArray(T.material)?T.material.forEach(j=>j.dispose()):T.material.dispose())})),v=i.scene;let p=0,C=0;v.traverse(T=>{if(T.isMesh&&T.material){p++;const j=J=>{const pe=J.color||new g.Color(13421772),he=J.map,H=new g.MeshStandardMaterial({color:pe,map:he,metalness:.2,roughness:.8});return delete H.onBuild,delete H.onBeforeCompile,C++,H};Array.isArray(T.material)?T.material=T.material.map(j):T.material=j(T.material)}});const _=new g.Box3().setFromObject(v),x=_.getSize(new g.Vector3),R=_.getCenter(new g.Vector3),E=Math.max(x.x,x.y,x.z),P=E>0?1/E:1;v.scale.setScalar(P*a.value.modelScale),v.position.x=-R.x*P*a.value.modelScale,v.position.y=-R.y*P*a.value.modelScale,v.position.z=-R.z*P*a.value.modelScale,u.add(v);const z=_.getSize(new g.Vector3),fe=Math.max(z.x,z.y,z.z)*P*2.5;h.position.set(0,0,Math.max(fe,a.value.cameraDistance)),y.update(),f.value=!1,me()}catch(i){S.value=`加载模型失败: ${i.message||"未知错误"}`,f.value=!1}}),X=()=>{if(!(!u||!h||!w||!y)){D=requestAnimationFrame(X);try{y.update(),w.render(u,h),k&&k.render(u,h)}catch(e){S.value=`渲染错误: ${e.message||"未知错误"}`,D&&(cancelAnimationFrame(D),D=0)}}},Y=e=>{var i,p;if(!v||!r.value)return;const t=r.value.getBoundingClientRect();I.x=(e.clientX-t.left)/t.width*2-1,I.y=-((e.clientY-t.top)/t.height)*2+1,O.setFromCamera(I,h);const c=O.intersectObject(v,!0);if(c.length>0){const C=c[0].point,_=v.worldToLocal(C.clone()),x=((p=(i=n.conf)==null?void 0:i.data)==null?void 0:p.length)||0,R={name:`标记 ${x+1}`,fv:"",object_id:"",icon:"🛜",posX:_.x,posY:_.y,posZ:_.z};n.conf&&Array.isArray(n.conf.data)&&n.conf.data.push(R);const E={id:`marker_${x}`,position:{x:_.x,y:_.y,z:_.z},label:R.name,objectId:"",fv:"",value:""};M.value.push(E),Z(E)}},Z=(e,t="📍")=>{const c=document.createElement("div");c.className="model-marker",c.dataset.markerId=e.id,c.innerHTML=`
3
3
  <div class="marker-icon">${t}</div>
4
4
  ${e.value?`<div class="marker-value">${e.value}</div>`:""}
@@ -28,8 +28,8 @@ var de = (S, o, r) => new Promise((u, i) => {
28
28
  });
29
29
  import { defineComponent as Te, useCssVars as Pe, unref as Ee, ref as U, watch as F, onMounted as Ie, onBeforeUnmount as Oe, openBlock as G, createElementBlock as q, createElementVNode as O, createCommentVNode as Z, toDisplayString as ze, createBlock as Ue, Teleport as Fe, withModifiers as ue, renderSlot as Ne, nextTick as je } from "vue";
30
30
  import "html2canvas";
31
- import { B as Be } from "./BaseComponent-Dn65PXTp.js";
32
- import { _ as Ge } from "./index-CPTJIw32.js";
31
+ import { B as Be } from "./BaseComponent-BppXM0zf.js";
32
+ import { _ as Ge } from "./index-BK7gdNxS.js";
33
33
  import { U as He, X as me, Y as J, a6 as We, B as qe, a as fe, C as H, az as $e, S as Ve, l as Xe, W as Ye, A as pe, n as K, am as Ze, h as Je, V as Q, R as Ke, r as Qe } from "./three.module-DDLQaQWC.js";
34
34
  import { G as et } from "./GLTFLoader-nke8z0Ol.js";
35
35
  import { O as tt } from "./OrbitControls-BHOrUcwg.js";
@@ -16,7 +16,7 @@ import "element-plus/es/components/select/style/css";
16
16
  import "element-plus/es/components/option/style/css";
17
17
  import { defineComponent as ae, useCssVars as ce, computed as d, reactive as re, watch as se, openBlock as m, createElementBlock as y, normalizeStyle as ue, normalizeClass as ie, createElementVNode as f, toDisplayString as j, createVNode as P, withCtx as _, unref as z, Fragment as O, renderList as L, createBlock as v, renderSlot as pe } from "vue";
18
18
  import { u as de } from "./safeI18n-C5fF3KBo.js";
19
- import { o as be, _ as me } from "./index-CPTJIw32.js";
19
+ import { o as be, _ as me } from "./index-BK7gdNxS.js";
20
20
  import { A as fe, D as ge } from "./ele-ctrSet-icon-BtKGrCid.js";
21
21
  const ve = { class: "section-header" }, he = { class: "section-title" }, ye = { class: "object-toolbar" }, Ce = { class: "toolbar-field" }, Se = { class: "field-label" }, ke = { class: "toolbar-field object-input-field" }, Ve = { class: "field-label" }, je = {
22
22
  DEFAULT_ICON: ge,
@@ -1 +1 @@
1
- "use strict";var $=Object.defineProperty,J=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var L=(d,p,i)=>p in d?$(d,p,{enumerable:!0,configurable:!0,writable:!0,value:i}):d[p]=i,C=(d,p)=>{for(var i in p||(p={}))H.call(p,i)&&L(d,i,p[i]);if(O)for(var i of O(p))W.call(p,i)&&L(d,i,p[i]);return d},N=(d,p)=>J(d,K(p));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const t=require("vue"),Q=require("./safeI18n-D-TYNVsv.cjs"),I=require("./index-DoEyCVDU.cjs"),E=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),X={class:"section-header"},Y={class:"section-title"},Z={class:"object-toolbar"},ee={class:"toolbar-field"},le={class:"field-label"},te={class:"toolbar-field object-input-field"},oe={class:"field-label"},ne={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"全局对象切换",NAME_EN:"Global Object Selector",ORDER:21,PLATFORM:["pc","screen"]},ae={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},accentColor:{value:"#409eff",type:"color",label:"component.options.accentColor"},borderColor:{value:"#e5e5e5",type:"color",label:"component.options.borderColor"},hideSectionTitle:{value:!1,type:"switch",label:"component.openpitConfigPanel.hideSectionTitle"},sectionTitle:{value:"对象切换",type:"string",label:"component.openpitConfigPanel.label"},groupLabel:{value:"分组",type:"string",label:"component.openpitConfigPanel.objectSelectGroupLabel"},inputLabel:{value:"对象",type:"string",label:"component.openpitConfigPanel.objectSelectInputLabel"},groupPlaceholder:{value:"请选择分组",type:"string",label:"component.openpitConfigPanel.objectSelectGroupPlaceholder"},inputPlaceholder:{value:"请选择对象",type:"string",label:"component.openpitConfigPanel.objectSelectInputPlaceholder"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},ce=[{key:"objectId",multiple:!1,lengthKey:"length",defaultLength:200,options:[{label:"SJ45",value:"SJ45",remark:"北帮",length:80},{label:"SJ46",value:"SJ46",remark:"南帮",length:100}]}],re=[{key:"key",label:"component.openpitConfigPanel.key",type:"string"},{key:"multiple",label:"component.openpitConfigPanel.multiple",type:"switch"},{key:"lengthKey",label:"component.openpitConfigPanel.lengthKey",type:"string"},{key:"defaultLength",label:"component.openpitConfigPanel.defaultLength",type:"number"},{key:"options",label:"component.openpitConfigPanel.options",type:"table",columns:[{key:"label",label:"component.openpitConfigPanel.optionLabel",type:"string"},{key:"value",label:"component.openpitConfigPanel.optionValue",type:"string"},{key:"remark",label:"component.openpitConfigPanel.optionRemark",type:"string"},{key:"length",label:"component.openpitConfigPanel.optionLength",type:"number"}]}],se=[],ue={useAlias:!1,multiObject:!1,source:""},ie={DEFAULT:ne,OPTIONS:ae,DATA:ce,PARAMS:re,SOURCE:se,COMMON:ue},pe=t.defineComponent(N(C({},ie),{__name:"globalObjectSelector",props:{module:{type:Object,default:null},conf:{type:Object,default:null},state:{type:Object,default:null},uid:{type:String,default:""},hideSectionTitle:{type:Boolean,default:!1},textColor:{type:String,default:"#333333"},accentColor:{type:String,default:"#409eff"},borderColor:{type:String,default:"#e5e5e5"}},emits:["change"],setup(d,{emit:p}){t.useCssVars(e=>({v47807a88:f.value.backgroundColor,v72954404:f.value.borderColor,v238b3fec:f.value.color}));const{t:i}=Q.useSafeI18n(),B=I.useLinkStore(),c=d,y=p,u=t.computed(()=>{var e;return c.module?c.module:Array.isArray((e=c.conf)==null?void 0:e.data)?c.conf.data[0]||{}:c.conf||{}}),f=t.computed(()=>{var l,o,a,n,s;const e=((l=c.conf)==null?void 0:l.options)||{};return{backgroundColor:((o=e==null?void 0:e.bgColor)==null?void 0:o.value)||"#ffffff",color:((a=e==null?void 0:e.textColor)==null?void 0:a.value)||c.textColor,borderColor:((n=e==null?void 0:e.borderColor)==null?void 0:n.value)||c.borderColor,"--accent-color":((s=e==null?void 0:e.accentColor)==null?void 0:s.value)||c.accentColor}}),T=t.computed(()=>{var l,o;const e=((l=c.conf)==null?void 0:l.options)||{};return c.hideSectionTitle||((o=e==null?void 0:e.hideSectionTitle)==null?void 0:o.value)===!0}),b=(e,l)=>e?String(e).includes(".")?i(String(e)):String(e):i(l),G=t.computed(()=>{var e,l,o;return b((o=(l=(e=c.conf)==null?void 0:e.options)==null?void 0:l.sectionTitle)==null?void 0:o.value,"component.openpitConfigPanel.objectSelectLabel")}),w=t.computed(()=>{var e,l,o;return b((o=(l=(e=c.conf)==null?void 0:e.options)==null?void 0:l.groupLabel)==null?void 0:o.value,"component.openpitConfigPanel.objectSelectGroupLabel")}),D=t.computed(()=>{var e,l,o;return b((o=(l=(e=c.conf)==null?void 0:e.options)==null?void 0:l.groupPlaceholder)==null?void 0:o.value,"component.openpitConfigPanel.objectSelectGroupPlaceholder")}),x=t.computed(()=>{var e,l,o;return b((o=(l=(e=c.conf)==null?void 0:e.options)==null?void 0:l.inputLabel)==null?void 0:o.value,"component.openpitConfigPanel.objectSelectInputLabel")}),S=t.computed(()=>{var e,l,o;return b((o=(l=(e=c.conf)==null?void 0:e.options)==null?void 0:l.inputPlaceholder)==null?void 0:o.value,"component.openpitConfigPanel.objectSelectInputPlaceholder")}),g=t.computed(()=>{var l;const e=(l=u.value)==null?void 0:l.options;if(Array.isArray(e))return e;if(!e)return[];if(typeof e=="string")try{const o=JSON.parse(e);return Array.isArray(o)?o:[]}catch(o){return[]}return[]}),F=t.computed(()=>{const e=new Set;return g.value.forEach(l=>{var a;const o=String((a=l==null?void 0:l.remark)!=null?a:"").trim();o&&e.add(o)}),Array.from(e)}),r=t.reactive({selectedGroup:"",selectedValue:"",selectedValues:[]}),v=t.computed(()=>{const e=String(r.selectedGroup||"").trim();return g.value.filter(l=>{var a;const o=String((a=l==null?void 0:l.remark)!=null?a:"");return!(e&&o!==e)})}),q=()=>{var l,o,a,n,s;const e=c.state&&typeof c.state=="object"?c.state:{};r.selectedGroup=String(e.selectedGroup||""),(l=u.value)!=null&&l.multiple?(Array.isArray(e.selectedValues)?r.selectedValues=[...e.selectedValues]:Array.isArray((o=u.value)==null?void 0:o.value)?r.selectedValues=[...u.value.value]:r.selectedValues=[],r.selectedValue=""):(r.selectedValue=(s=(n=e.selectedValue)!=null?n:(a=u.value)==null?void 0:a.value)!=null?s:"",r.selectedValues=[])},M=()=>{var a,n,s;const e=((a=c.conf)==null?void 0:a.options)||{},l=((n=e==null?void 0:e.linkChannel)==null?void 0:n.value)||"deepDisplacement",o=((s=e==null?void 0:e.customChannel)==null?void 0:s.value)||"";return l==="custom"&&o?o:l},z=e=>{var m,P;const l=String(((m=u.value)==null?void 0:m.lengthKey)||"length"),o=g.value.find(h=>{var _;return String((_=h==null?void 0:h.value)!=null?_:"")===String(e)}),a=o==null?void 0:o[l],n=Number(a);if(Number.isFinite(n)&&n>=0)return n;const s=Number((P=u.value)==null?void 0:P.defaultLength);return Number.isFinite(s)&&s>=0?s:200},U=()=>{var s,m;const e=String(((s=u.value)==null?void 0:s.key)||"objectId"),l=((m=u.value)==null?void 0:m.multiple)===!0,o=l?[...r.selectedValues||[]]:r.selectedValue,a=String(l?(r.selectedValues||[])[0]||"":r.selectedValue||""),n=z(a);return{[e]:o,objectId:a,objectLength:n,depthStep:1,objectGroup:r.selectedGroup||""}},k=()=>{var s;const e=M(),l=String(((s=u.value)==null?void 0:s.targetId)||"").trim(),o=U(),a=l?l.split(",").map(m=>m.trim()).filter(m=>m):[],n=C({source:"globalObjectSelector",type:"filter",objectId:o.objectId,objectLength:o.objectLength,depthStep:o.depthStep,filter:o,meta:{channel:e,routeTargets:a}},o);B.publish(e,"globalObjectSelector",n)},V=()=>{var e;!c.state||typeof c.state!="object"||(c.state.selectedGroup=r.selectedGroup,(e=u.value)!=null&&e.multiple?c.state.selectedValues=[...r.selectedValues||[]]:c.state.selectedValue=r.selectedValue)},R=()=>{var l,o;const e=v.value;if((l=u.value)!=null&&l.multiple){const a=new Set(e.map(n=>n.value));r.selectedValues=(r.selectedValues||[]).filter(n=>a.has(n))}else e.some(a=>a.value===r.selectedValue)||(r.selectedValue=((o=e[0])==null?void 0:o.value)||"");V(),k(),y("change")},j=()=>{V(),k(),y("change")};return t.watch(()=>{var e,l,o;return[c.state,(e=u.value)==null?void 0:e.multiple,(l=u.value)==null?void 0:l.value,(o=u.value)==null?void 0:o.options]},()=>q(),{immediate:!0,deep:!0}),(e,l)=>{const o=A.ElOption,a=A.ElSelect;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["object-select-section",{"hide-section-title":T.value}]),style:t.normalizeStyle(f.value)},[t.createElementVNode("div",X,[t.createElementVNode("span",Y,t.toDisplayString(G.value),1)]),t.createElementVNode("div",Z,[t.createElementVNode("div",ee,[t.createElementVNode("span",le,t.toDisplayString(w.value),1),t.createVNode(a,{modelValue:r.selectedGroup,"onUpdate:modelValue":l[0]||(l[0]=n=>r.selectedGroup=n),clearable:"",placeholder:D.value,size:"small",class:"select-control",onChange:R},{default:t.withCtx(()=>[t.createVNode(o,{label:t.unref(i)("component.openpitConfigPanel.allOptionLabel"),value:""},null,8,["label"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(F.value,n=>(t.openBlock(),t.createBlock(o,{key:n,label:n,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),t.createElementVNode("div",te,[t.createElementVNode("span",oe,t.toDisplayString(x.value),1),u.value.multiple?(t.openBlock(),t.createBlock(a,{key:1,modelValue:r.selectedValues,"onUpdate:modelValue":l[2]||(l[2]=n=>r.selectedValues=n),multiple:"",filterable:"","collapse-tags":"","collapse-tags-tooltip":"",size:"small",placeholder:S.value,class:"select-control select-control-wide",onChange:j},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v.value,n=>(t.openBlock(),t.createBlock(o,{key:n.value,label:n.remark?`${n.label}(${n.remark})`:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])):(t.openBlock(),t.createBlock(a,{key:0,modelValue:r.selectedValue,"onUpdate:modelValue":l[1]||(l[1]=n=>r.selectedValue=n),filterable:"",clearable:"",size:"small",placeholder:S.value,class:"select-control",onChange:j},{default:t.withCtx(()=>[t.createVNode(o,{label:t.unref(i)("component.openpitConfigPanel.allOptionLabel"),value:""},null,8,["label"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v.value,n=>(t.openBlock(),t.createBlock(o,{key:n.value,label:n.remark?`${n.label}(${n.remark})`:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"]))])]),t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}}})),de=I._export_sfc(pe,[["__scopeId","data-v-ca0a35cd"]]);exports.default=de;
1
+ "use strict";var $=Object.defineProperty,J=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var L=(d,p,i)=>p in d?$(d,p,{enumerable:!0,configurable:!0,writable:!0,value:i}):d[p]=i,C=(d,p)=>{for(var i in p||(p={}))H.call(p,i)&&L(d,i,p[i]);if(O)for(var i of O(p))W.call(p,i)&&L(d,i,p[i]);return d},N=(d,p)=>J(d,K(p));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const t=require("vue"),Q=require("./safeI18n-D-TYNVsv.cjs"),I=require("./index-ucOU7Nfo.cjs"),E=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),X={class:"section-header"},Y={class:"section-title"},Z={class:"object-toolbar"},ee={class:"toolbar-field"},le={class:"field-label"},te={class:"toolbar-field object-input-field"},oe={class:"field-label"},ne={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"全局对象切换",NAME_EN:"Global Object Selector",ORDER:21,PLATFORM:["pc","screen"]},ae={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},accentColor:{value:"#409eff",type:"color",label:"component.options.accentColor"},borderColor:{value:"#e5e5e5",type:"color",label:"component.options.borderColor"},hideSectionTitle:{value:!1,type:"switch",label:"component.openpitConfigPanel.hideSectionTitle"},sectionTitle:{value:"对象切换",type:"string",label:"component.openpitConfigPanel.label"},groupLabel:{value:"分组",type:"string",label:"component.openpitConfigPanel.objectSelectGroupLabel"},inputLabel:{value:"对象",type:"string",label:"component.openpitConfigPanel.objectSelectInputLabel"},groupPlaceholder:{value:"请选择分组",type:"string",label:"component.openpitConfigPanel.objectSelectGroupPlaceholder"},inputPlaceholder:{value:"请选择对象",type:"string",label:"component.openpitConfigPanel.objectSelectInputPlaceholder"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},ce=[{key:"objectId",multiple:!1,lengthKey:"length",defaultLength:200,options:[{label:"SJ45",value:"SJ45",remark:"北帮",length:80},{label:"SJ46",value:"SJ46",remark:"南帮",length:100}]}],re=[{key:"key",label:"component.openpitConfigPanel.key",type:"string"},{key:"multiple",label:"component.openpitConfigPanel.multiple",type:"switch"},{key:"lengthKey",label:"component.openpitConfigPanel.lengthKey",type:"string"},{key:"defaultLength",label:"component.openpitConfigPanel.defaultLength",type:"number"},{key:"options",label:"component.openpitConfigPanel.options",type:"table",columns:[{key:"label",label:"component.openpitConfigPanel.optionLabel",type:"string"},{key:"value",label:"component.openpitConfigPanel.optionValue",type:"string"},{key:"remark",label:"component.openpitConfigPanel.optionRemark",type:"string"},{key:"length",label:"component.openpitConfigPanel.optionLength",type:"number"}]}],se=[],ue={useAlias:!1,multiObject:!1,source:""},ie={DEFAULT:ne,OPTIONS:ae,DATA:ce,PARAMS:re,SOURCE:se,COMMON:ue},pe=t.defineComponent(N(C({},ie),{__name:"globalObjectSelector",props:{module:{type:Object,default:null},conf:{type:Object,default:null},state:{type:Object,default:null},uid:{type:String,default:""},hideSectionTitle:{type:Boolean,default:!1},textColor:{type:String,default:"#333333"},accentColor:{type:String,default:"#409eff"},borderColor:{type:String,default:"#e5e5e5"}},emits:["change"],setup(d,{emit:p}){t.useCssVars(e=>({v47807a88:f.value.backgroundColor,v72954404:f.value.borderColor,v238b3fec:f.value.color}));const{t:i}=Q.useSafeI18n(),B=I.useLinkStore(),c=d,y=p,u=t.computed(()=>{var e;return c.module?c.module:Array.isArray((e=c.conf)==null?void 0:e.data)?c.conf.data[0]||{}:c.conf||{}}),f=t.computed(()=>{var l,o,a,n,s;const e=((l=c.conf)==null?void 0:l.options)||{};return{backgroundColor:((o=e==null?void 0:e.bgColor)==null?void 0:o.value)||"#ffffff",color:((a=e==null?void 0:e.textColor)==null?void 0:a.value)||c.textColor,borderColor:((n=e==null?void 0:e.borderColor)==null?void 0:n.value)||c.borderColor,"--accent-color":((s=e==null?void 0:e.accentColor)==null?void 0:s.value)||c.accentColor}}),T=t.computed(()=>{var l,o;const e=((l=c.conf)==null?void 0:l.options)||{};return c.hideSectionTitle||((o=e==null?void 0:e.hideSectionTitle)==null?void 0:o.value)===!0}),b=(e,l)=>e?String(e).includes(".")?i(String(e)):String(e):i(l),G=t.computed(()=>{var e,l,o;return b((o=(l=(e=c.conf)==null?void 0:e.options)==null?void 0:l.sectionTitle)==null?void 0:o.value,"component.openpitConfigPanel.objectSelectLabel")}),w=t.computed(()=>{var e,l,o;return b((o=(l=(e=c.conf)==null?void 0:e.options)==null?void 0:l.groupLabel)==null?void 0:o.value,"component.openpitConfigPanel.objectSelectGroupLabel")}),D=t.computed(()=>{var e,l,o;return b((o=(l=(e=c.conf)==null?void 0:e.options)==null?void 0:l.groupPlaceholder)==null?void 0:o.value,"component.openpitConfigPanel.objectSelectGroupPlaceholder")}),x=t.computed(()=>{var e,l,o;return b((o=(l=(e=c.conf)==null?void 0:e.options)==null?void 0:l.inputLabel)==null?void 0:o.value,"component.openpitConfigPanel.objectSelectInputLabel")}),S=t.computed(()=>{var e,l,o;return b((o=(l=(e=c.conf)==null?void 0:e.options)==null?void 0:l.inputPlaceholder)==null?void 0:o.value,"component.openpitConfigPanel.objectSelectInputPlaceholder")}),g=t.computed(()=>{var l;const e=(l=u.value)==null?void 0:l.options;if(Array.isArray(e))return e;if(!e)return[];if(typeof e=="string")try{const o=JSON.parse(e);return Array.isArray(o)?o:[]}catch(o){return[]}return[]}),F=t.computed(()=>{const e=new Set;return g.value.forEach(l=>{var a;const o=String((a=l==null?void 0:l.remark)!=null?a:"").trim();o&&e.add(o)}),Array.from(e)}),r=t.reactive({selectedGroup:"",selectedValue:"",selectedValues:[]}),v=t.computed(()=>{const e=String(r.selectedGroup||"").trim();return g.value.filter(l=>{var a;const o=String((a=l==null?void 0:l.remark)!=null?a:"");return!(e&&o!==e)})}),q=()=>{var l,o,a,n,s;const e=c.state&&typeof c.state=="object"?c.state:{};r.selectedGroup=String(e.selectedGroup||""),(l=u.value)!=null&&l.multiple?(Array.isArray(e.selectedValues)?r.selectedValues=[...e.selectedValues]:Array.isArray((o=u.value)==null?void 0:o.value)?r.selectedValues=[...u.value.value]:r.selectedValues=[],r.selectedValue=""):(r.selectedValue=(s=(n=e.selectedValue)!=null?n:(a=u.value)==null?void 0:a.value)!=null?s:"",r.selectedValues=[])},M=()=>{var a,n,s;const e=((a=c.conf)==null?void 0:a.options)||{},l=((n=e==null?void 0:e.linkChannel)==null?void 0:n.value)||"deepDisplacement",o=((s=e==null?void 0:e.customChannel)==null?void 0:s.value)||"";return l==="custom"&&o?o:l},z=e=>{var m,P;const l=String(((m=u.value)==null?void 0:m.lengthKey)||"length"),o=g.value.find(h=>{var _;return String((_=h==null?void 0:h.value)!=null?_:"")===String(e)}),a=o==null?void 0:o[l],n=Number(a);if(Number.isFinite(n)&&n>=0)return n;const s=Number((P=u.value)==null?void 0:P.defaultLength);return Number.isFinite(s)&&s>=0?s:200},U=()=>{var s,m;const e=String(((s=u.value)==null?void 0:s.key)||"objectId"),l=((m=u.value)==null?void 0:m.multiple)===!0,o=l?[...r.selectedValues||[]]:r.selectedValue,a=String(l?(r.selectedValues||[])[0]||"":r.selectedValue||""),n=z(a);return{[e]:o,objectId:a,objectLength:n,depthStep:1,objectGroup:r.selectedGroup||""}},k=()=>{var s;const e=M(),l=String(((s=u.value)==null?void 0:s.targetId)||"").trim(),o=U(),a=l?l.split(",").map(m=>m.trim()).filter(m=>m):[],n=C({source:"globalObjectSelector",type:"filter",objectId:o.objectId,objectLength:o.objectLength,depthStep:o.depthStep,filter:o,meta:{channel:e,routeTargets:a}},o);B.publish(e,"globalObjectSelector",n)},V=()=>{var e;!c.state||typeof c.state!="object"||(c.state.selectedGroup=r.selectedGroup,(e=u.value)!=null&&e.multiple?c.state.selectedValues=[...r.selectedValues||[]]:c.state.selectedValue=r.selectedValue)},R=()=>{var l,o;const e=v.value;if((l=u.value)!=null&&l.multiple){const a=new Set(e.map(n=>n.value));r.selectedValues=(r.selectedValues||[]).filter(n=>a.has(n))}else e.some(a=>a.value===r.selectedValue)||(r.selectedValue=((o=e[0])==null?void 0:o.value)||"");V(),k(),y("change")},j=()=>{V(),k(),y("change")};return t.watch(()=>{var e,l,o;return[c.state,(e=u.value)==null?void 0:e.multiple,(l=u.value)==null?void 0:l.value,(o=u.value)==null?void 0:o.options]},()=>q(),{immediate:!0,deep:!0}),(e,l)=>{const o=A.ElOption,a=A.ElSelect;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["object-select-section",{"hide-section-title":T.value}]),style:t.normalizeStyle(f.value)},[t.createElementVNode("div",X,[t.createElementVNode("span",Y,t.toDisplayString(G.value),1)]),t.createElementVNode("div",Z,[t.createElementVNode("div",ee,[t.createElementVNode("span",le,t.toDisplayString(w.value),1),t.createVNode(a,{modelValue:r.selectedGroup,"onUpdate:modelValue":l[0]||(l[0]=n=>r.selectedGroup=n),clearable:"",placeholder:D.value,size:"small",class:"select-control",onChange:R},{default:t.withCtx(()=>[t.createVNode(o,{label:t.unref(i)("component.openpitConfigPanel.allOptionLabel"),value:""},null,8,["label"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(F.value,n=>(t.openBlock(),t.createBlock(o,{key:n,label:n,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),t.createElementVNode("div",te,[t.createElementVNode("span",oe,t.toDisplayString(x.value),1),u.value.multiple?(t.openBlock(),t.createBlock(a,{key:1,modelValue:r.selectedValues,"onUpdate:modelValue":l[2]||(l[2]=n=>r.selectedValues=n),multiple:"",filterable:"","collapse-tags":"","collapse-tags-tooltip":"",size:"small",placeholder:S.value,class:"select-control select-control-wide",onChange:j},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v.value,n=>(t.openBlock(),t.createBlock(o,{key:n.value,label:n.remark?`${n.label}(${n.remark})`:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])):(t.openBlock(),t.createBlock(a,{key:0,modelValue:r.selectedValue,"onUpdate:modelValue":l[1]||(l[1]=n=>r.selectedValue=n),filterable:"",clearable:"",size:"small",placeholder:S.value,class:"select-control",onChange:j},{default:t.withCtx(()=>[t.createVNode(o,{label:t.unref(i)("component.openpitConfigPanel.allOptionLabel"),value:""},null,8,["label"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v.value,n=>(t.openBlock(),t.createBlock(o,{key:n.value,label:n.remark?`${n.label}(${n.remark})`:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"]))])]),t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}}})),de=I._export_sfc(pe,[["__scopeId","data-v-ca0a35cd"]]);exports.default=de;
@@ -18,8 +18,8 @@ import "element-plus/es/components/select/style/css";
18
18
  import "element-plus/es/components/option/style/css";
19
19
  import { defineComponent as ye, computed as m, reactive as he, onMounted as ge, onUnmounted as Ce, openBlock as r, createElementBlock as c, normalizeStyle as v, createElementVNode as p, unref as f, createVNode as w, withCtx as k, Fragment as S, renderList as R, createBlock as x, createCommentVNode as b, normalizeClass as _e, toDisplayString as we, createTextVNode as ke, renderSlot as Se, nextTick as Re } from "vue";
20
20
  import "html2canvas";
21
- import { B as xe } from "./BaseComponent-Dn65PXTp.js";
22
- import { d as h, _ as Ae } from "./index-CPTJIw32.js";
21
+ import { B as xe } from "./BaseComponent-BppXM0zf.js";
22
+ import { d as h, _ as Ae } from "./index-BK7gdNxS.js";
23
23
  import { A as De, D as Ye } from "./ele-lin-icon-Dax-ZiWV.js";
24
24
  const Fe = { class: "filter-bar" }, Me = {
25
25
  key: 0,
@@ -1 +1 @@
1
- "use strict";var Z=Object.defineProperty,ee=Object.defineProperties;var te=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var le=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var j=(c,n,i)=>n in c?Z(c,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):c[n]=i,P=(c,n)=>{for(var i in n||(n={}))le.call(n,i)&&j(c,i,n[i]);if(L)for(var i of L(n))ae.call(n,i)&&j(c,i,n[i]);return c},H=(c,n)=>ee(c,te(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const t=require("vue");require("html2canvas");const oe=require("./BaseComponent-DKuQG62G.cjs"),d=require("./index-DoEyCVDU.cjs"),q=require("./ele-lin-icon-Dke_1AmT.cjs"),ne={class:"filter-bar"},re={key:0,class:"filter-item"},ie={key:1,class:"filter-item"},se={key:2,class:"filter-item"},ce={key:3,class:"filter-item"},ue={class:"time-range-btns"},de=["onClick"],me={key:4,class:"filter-item date-picker-item"},pe={DEFAULT_ICON:q.DEFAULT_ICON,ACTIVE_ICON:q.ACTIVE_ICON,NAME_CN:"GNSS筛选栏",NAME_EN:"GNSS Filter Bar",ORDER:1,PLATFORM:["pc","screen"]},ve={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},labelColor:{value:"#1c3d90",type:"color",label:"标签文字颜色"},borderColor:{value:"#e8ecef",type:"color",label:"边框颜色"},btnActiveColor:{value:"#409eff",type:"color",label:"按钮激活颜色"},padding:{value:8,type:"number",label:"component.options.padding",min:0,max:40},fontSize:{value:13,type:"number",label:"字体大小",min:10,max:20},showAreaFilter:{value:!0,type:"checkbox",label:"显示区域筛选"},showLineFilter:{value:!0,type:"checkbox",label:"显示监测线筛选"},showPointFilter:{value:!0,type:"checkbox",label:"显示监测点筛选"},showTimeRange:{value:!0,type:"checkbox",label:"显示时间范围"},showDatePicker:{value:!0,type:"checkbox",label:"显示日期选择器"},showQueryBtn:{value:!0,type:"checkbox",label:"显示查询按钮"},defaultTimeRange:{value:"1d",type:"select",label:"默认时间范围",options:[{label:"一天内",value:"1d"},{label:"一周内",value:"1w"},{label:"一个月内",value:"1m"}]},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},fe=[{object_id:"",area:"北帮",line:"1号线",point:"35"},{object_id:"",area:"北帮",line:"1号线",point:"55"},{object_id:"",area:"北帮",line:"2号线",point:"110"},{object_id:"",area:"东帮",line:"3号线",point:"33"}],be=["object_id","area","line","point"],ye=["mosaic"],ke={useAlias:!1,multiObject:!0,source:"mosaic"},ge={DEFAULT:pe,OPTIONS:ve,DATA:fe,PARAMS:be,SOURCE:ye,COMMON:ke},he=t.defineComponent(H(P({},ge),{__name:"gnssFilterBar",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){const n=c;class i extends oe.BaseComponent{extractStyles(){var v,f,a,C,B,S,E,V,N,x,R,F,A,D,Y,T,M,z,O;const e=(v=this.props.conf)==null?void 0:v.options,s=((f=e==null?void 0:e.linkChannel)==null?void 0:f.value)||"gnss",u=((a=e==null?void 0:e.customChannel)==null?void 0:a.value)||"";return{bgColor:((C=e==null?void 0:e.bgColor)==null?void 0:C.value)||"#ffffff",textColor:((B=e==null?void 0:e.textColor)==null?void 0:B.value)||"#333333",labelColor:((S=e==null?void 0:e.labelColor)==null?void 0:S.value)||"#1c3d90",borderColor:((E=e==null?void 0:e.borderColor)==null?void 0:E.value)||"#e8ecef",btnActiveColor:((V=e==null?void 0:e.btnActiveColor)==null?void 0:V.value)||"#409eff",padding:(x=(N=e==null?void 0:e.padding)==null?void 0:N.value)!=null?x:8,fontSize:(F=(R=e==null?void 0:e.fontSize)==null?void 0:R.value)!=null?F:13,showAreaFilter:((A=e==null?void 0:e.showAreaFilter)==null?void 0:A.value)!==!1,showLineFilter:((D=e==null?void 0:e.showLineFilter)==null?void 0:D.value)!==!1,showPointFilter:((Y=e==null?void 0:e.showPointFilter)==null?void 0:Y.value)!==!1,showTimeRange:((T=e==null?void 0:e.showTimeRange)==null?void 0:T.value)!==!1,showDatePicker:((M=e==null?void 0:e.showDatePicker)==null?void 0:M.value)!==!1,showQueryBtn:((z=e==null?void 0:e.showQueryBtn)==null?void 0:z.value)!==!1,defaultTimeRange:((O=e==null?void 0:e.defaultTimeRange)==null?void 0:O.value)||"1d",linkChannel:s==="custom"&&u?u:s}}}const m=new i(n,"gnssFilterBar");m.setupLifecycle();const r=m.getStyle(),w=t.computed(()=>{var l;return((l=n.conf)==null?void 0:l.data)||[]}),y=t.computed(()=>{const l=new Set;return w.value.filter(e=>e.point&&!l.has(e.point)?(l.add(e.point),!0):!1)}),I=t.computed(()=>{const l=new Set;return y.value.forEach(e=>e.area&&l.add(e.area)),Array.from(l).map(e=>({label:e,value:e}))}),_=t.computed(()=>{const l=new Set;return y.value.filter(e=>e.area===o.area).forEach(e=>e.line&&l.add(e.line)),Array.from(l).map(e=>({label:e,value:e}))}),k=t.computed(()=>{const l=new Set;return y.value.filter(e=>e.area===o.area&&e.line===o.line).forEach(e=>e.point&&l.add(e.point)),Array.from(l).map(e=>({label:e,value:e}))}),U=[{label:"一天内",value:"1d"},{label:"一周内",value:"1w"},{label:"一个月内",value:"1m"}],g=(()=>{var e;const l=(((e=n.conf)==null?void 0:e.data)||[]).find(s=>!!s.point);return{area:(l==null?void 0:l.area)||"",line:(l==null?void 0:l.line)||"",point:(l==null?void 0:l.point)||""}})(),h=r.value.defaultTimeRange||"1d",Q=h==="1w"?d.dayjs().subtract(1,"week"):h==="1m"?d.dayjs().subtract(1,"month"):d.dayjs().subtract(1,"day"),o=t.reactive({area:g.area,line:g.line,point:g.point,timeRange:h,dateRange:[Q.format("YYYY/MM/DD HH:mm"),d.dayjs().format("YYYY/MM/DD HH:mm")]}),$=()=>{var e;const l=_.value;o.line=((e=l[0])==null?void 0:e.value)||"",t.nextTick(()=>{var u;const s=k.value;o.point=((u=s[0])==null?void 0:u.value)||""})},G=()=>{var e;const l=k.value;o.point=((e=l[0])==null?void 0:e.value)||""},W=l=>{o.timeRange=l;const e=d.dayjs(),s=l==="1d"?e.subtract(1,"day"):l==="1w"?e.subtract(1,"week"):e.subtract(1,"month");o.dateRange=[s.format("YYYY/MM/DD HH:mm"),e.format("YYYY/MM/DD HH:mm")]},J=()=>{if(n.mode==="edit")return;const l=w.value.find(e=>e.area===o.area&&e.line===o.line&&e.point===o.point);m.publish({type:"filter",area:o.area,line:o.line,point:o.point,objectId:(l==null?void 0:l.object_id)||"",timeRange:o.timeRange,dateRange:[...o.dateRange]})},K=t.computed(()=>({backgroundColor:r.value.bgColor,color:r.value.textColor,fontSize:`${r.value.fontSize}px`,borderBottom:`1px solid ${r.value.borderColor}`})),p=t.computed(()=>({color:r.value.labelColor,fontSize:`${r.value.fontSize}px`})),X=t.computed(()=>({color:"#fff",background:r.value.btnActiveColor,borderColor:r.value.btnActiveColor}));return t.onMounted(()=>{m.init()}),t.onUnmounted(()=>{m.cleanup()}),(l,e)=>{const s=b.ElOption,u=b.ElSelect,v=b.ElDatePicker,f=b.ElButton;return t.openBlock(),t.createElementBlock("div",{class:"gnss-filter-bar-wrap",style:t.normalizeStyle(K.value)},[t.createElementVNode("div",ne,[t.unref(r).showAreaFilter?(t.openBlock(),t.createElementBlock("div",re,[t.createElementVNode("span",{class:"filter-label",style:t.normalizeStyle(p.value)},"区域位置:",4),t.createVNode(u,{modelValue:o.area,"onUpdate:modelValue":e[0]||(e[0]=a=>o.area=a),size:"small",style:{width:"90px"},onChange:$},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(I.value,a=>(t.openBlock(),t.createBlock(s,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(r).showLineFilter?(t.openBlock(),t.createElementBlock("div",ie,[t.createElementVNode("span",{class:"filter-label",style:t.normalizeStyle(p.value)},"监测线:",4),t.createVNode(u,{modelValue:o.line,"onUpdate:modelValue":e[1]||(e[1]=a=>o.line=a),size:"small",style:{width:"90px"},onChange:G},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_.value,a=>(t.openBlock(),t.createBlock(s,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(r).showPointFilter?(t.openBlock(),t.createElementBlock("div",se,[t.createElementVNode("span",{class:"filter-label",style:t.normalizeStyle(p.value)},"监测点:",4),t.createVNode(u,{modelValue:o.point,"onUpdate:modelValue":e[2]||(e[2]=a=>o.point=a),size:"small",style:{width:"80px"}},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k.value,a=>(t.openBlock(),t.createBlock(s,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(r).showTimeRange?(t.openBlock(),t.createElementBlock("div",ce,[t.createElementVNode("span",{class:"filter-label",style:t.normalizeStyle(p.value)},"时间范围:",4),t.createElementVNode("div",ue,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(U,a=>t.createElementVNode("button",{key:a.value,class:t.normalizeClass(["range-btn",{active:o.timeRange===a.value}]),style:t.normalizeStyle(o.timeRange===a.value?X.value:{}),onClick:C=>W(a.value)},t.toDisplayString(a.label),15,de)),64))])])):t.createCommentVNode("",!0),t.unref(r).showDatePicker?(t.openBlock(),t.createElementBlock("div",me,[t.createVNode(v,{modelValue:o.dateRange,"onUpdate:modelValue":e[3]||(e[3]=a=>o.dateRange=a),type:"datetimerange",size:"small",format:"YYYY/MM/DD HH:mm","value-format":"YYYY/MM/DD HH:mm","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",style:{"max-width":"340px","min-width":"200px",width:"100%"}},null,8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(r).showQueryBtn?(t.openBlock(),t.createBlock(f,{key:5,type:"primary",size:"small",onClick:J},{default:t.withCtx(()=>[...e[4]||(e[4]=[t.createTextVNode("查询",-1)])]),_:1})):t.createCommentVNode("",!0)]),t.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),Ce=d._export_sfc(he,[["__scopeId","data-v-2639ea88"]]);exports.default=Ce;
1
+ "use strict";var Z=Object.defineProperty,ee=Object.defineProperties;var te=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var le=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var j=(c,n,i)=>n in c?Z(c,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):c[n]=i,P=(c,n)=>{for(var i in n||(n={}))le.call(n,i)&&j(c,i,n[i]);if(L)for(var i of L(n))ae.call(n,i)&&j(c,i,n[i]);return c},H=(c,n)=>ee(c,te(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const t=require("vue");require("html2canvas");const oe=require("./BaseComponent-oKNx9Ues.cjs"),d=require("./index-ucOU7Nfo.cjs"),q=require("./ele-lin-icon-Dke_1AmT.cjs"),ne={class:"filter-bar"},re={key:0,class:"filter-item"},ie={key:1,class:"filter-item"},se={key:2,class:"filter-item"},ce={key:3,class:"filter-item"},ue={class:"time-range-btns"},de=["onClick"],me={key:4,class:"filter-item date-picker-item"},pe={DEFAULT_ICON:q.DEFAULT_ICON,ACTIVE_ICON:q.ACTIVE_ICON,NAME_CN:"GNSS筛选栏",NAME_EN:"GNSS Filter Bar",ORDER:1,PLATFORM:["pc","screen"]},ve={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},labelColor:{value:"#1c3d90",type:"color",label:"标签文字颜色"},borderColor:{value:"#e8ecef",type:"color",label:"边框颜色"},btnActiveColor:{value:"#409eff",type:"color",label:"按钮激活颜色"},padding:{value:8,type:"number",label:"component.options.padding",min:0,max:40},fontSize:{value:13,type:"number",label:"字体大小",min:10,max:20},showAreaFilter:{value:!0,type:"checkbox",label:"显示区域筛选"},showLineFilter:{value:!0,type:"checkbox",label:"显示监测线筛选"},showPointFilter:{value:!0,type:"checkbox",label:"显示监测点筛选"},showTimeRange:{value:!0,type:"checkbox",label:"显示时间范围"},showDatePicker:{value:!0,type:"checkbox",label:"显示日期选择器"},showQueryBtn:{value:!0,type:"checkbox",label:"显示查询按钮"},defaultTimeRange:{value:"1d",type:"select",label:"默认时间范围",options:[{label:"一天内",value:"1d"},{label:"一周内",value:"1w"},{label:"一个月内",value:"1m"}]},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},fe=[{object_id:"",area:"北帮",line:"1号线",point:"35"},{object_id:"",area:"北帮",line:"1号线",point:"55"},{object_id:"",area:"北帮",line:"2号线",point:"110"},{object_id:"",area:"东帮",line:"3号线",point:"33"}],be=["object_id","area","line","point"],ye=["mosaic"],ke={useAlias:!1,multiObject:!0,source:"mosaic"},ge={DEFAULT:pe,OPTIONS:ve,DATA:fe,PARAMS:be,SOURCE:ye,COMMON:ke},he=t.defineComponent(H(P({},ge),{__name:"gnssFilterBar",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){const n=c;class i extends oe.BaseComponent{extractStyles(){var v,f,a,C,B,S,E,V,N,x,R,F,A,D,Y,T,M,z,O;const e=(v=this.props.conf)==null?void 0:v.options,s=((f=e==null?void 0:e.linkChannel)==null?void 0:f.value)||"gnss",u=((a=e==null?void 0:e.customChannel)==null?void 0:a.value)||"";return{bgColor:((C=e==null?void 0:e.bgColor)==null?void 0:C.value)||"#ffffff",textColor:((B=e==null?void 0:e.textColor)==null?void 0:B.value)||"#333333",labelColor:((S=e==null?void 0:e.labelColor)==null?void 0:S.value)||"#1c3d90",borderColor:((E=e==null?void 0:e.borderColor)==null?void 0:E.value)||"#e8ecef",btnActiveColor:((V=e==null?void 0:e.btnActiveColor)==null?void 0:V.value)||"#409eff",padding:(x=(N=e==null?void 0:e.padding)==null?void 0:N.value)!=null?x:8,fontSize:(F=(R=e==null?void 0:e.fontSize)==null?void 0:R.value)!=null?F:13,showAreaFilter:((A=e==null?void 0:e.showAreaFilter)==null?void 0:A.value)!==!1,showLineFilter:((D=e==null?void 0:e.showLineFilter)==null?void 0:D.value)!==!1,showPointFilter:((Y=e==null?void 0:e.showPointFilter)==null?void 0:Y.value)!==!1,showTimeRange:((T=e==null?void 0:e.showTimeRange)==null?void 0:T.value)!==!1,showDatePicker:((M=e==null?void 0:e.showDatePicker)==null?void 0:M.value)!==!1,showQueryBtn:((z=e==null?void 0:e.showQueryBtn)==null?void 0:z.value)!==!1,defaultTimeRange:((O=e==null?void 0:e.defaultTimeRange)==null?void 0:O.value)||"1d",linkChannel:s==="custom"&&u?u:s}}}const m=new i(n,"gnssFilterBar");m.setupLifecycle();const r=m.getStyle(),w=t.computed(()=>{var l;return((l=n.conf)==null?void 0:l.data)||[]}),y=t.computed(()=>{const l=new Set;return w.value.filter(e=>e.point&&!l.has(e.point)?(l.add(e.point),!0):!1)}),I=t.computed(()=>{const l=new Set;return y.value.forEach(e=>e.area&&l.add(e.area)),Array.from(l).map(e=>({label:e,value:e}))}),_=t.computed(()=>{const l=new Set;return y.value.filter(e=>e.area===o.area).forEach(e=>e.line&&l.add(e.line)),Array.from(l).map(e=>({label:e,value:e}))}),k=t.computed(()=>{const l=new Set;return y.value.filter(e=>e.area===o.area&&e.line===o.line).forEach(e=>e.point&&l.add(e.point)),Array.from(l).map(e=>({label:e,value:e}))}),U=[{label:"一天内",value:"1d"},{label:"一周内",value:"1w"},{label:"一个月内",value:"1m"}],g=(()=>{var e;const l=(((e=n.conf)==null?void 0:e.data)||[]).find(s=>!!s.point);return{area:(l==null?void 0:l.area)||"",line:(l==null?void 0:l.line)||"",point:(l==null?void 0:l.point)||""}})(),h=r.value.defaultTimeRange||"1d",Q=h==="1w"?d.dayjs().subtract(1,"week"):h==="1m"?d.dayjs().subtract(1,"month"):d.dayjs().subtract(1,"day"),o=t.reactive({area:g.area,line:g.line,point:g.point,timeRange:h,dateRange:[Q.format("YYYY/MM/DD HH:mm"),d.dayjs().format("YYYY/MM/DD HH:mm")]}),$=()=>{var e;const l=_.value;o.line=((e=l[0])==null?void 0:e.value)||"",t.nextTick(()=>{var u;const s=k.value;o.point=((u=s[0])==null?void 0:u.value)||""})},G=()=>{var e;const l=k.value;o.point=((e=l[0])==null?void 0:e.value)||""},W=l=>{o.timeRange=l;const e=d.dayjs(),s=l==="1d"?e.subtract(1,"day"):l==="1w"?e.subtract(1,"week"):e.subtract(1,"month");o.dateRange=[s.format("YYYY/MM/DD HH:mm"),e.format("YYYY/MM/DD HH:mm")]},J=()=>{if(n.mode==="edit")return;const l=w.value.find(e=>e.area===o.area&&e.line===o.line&&e.point===o.point);m.publish({type:"filter",area:o.area,line:o.line,point:o.point,objectId:(l==null?void 0:l.object_id)||"",timeRange:o.timeRange,dateRange:[...o.dateRange]})},K=t.computed(()=>({backgroundColor:r.value.bgColor,color:r.value.textColor,fontSize:`${r.value.fontSize}px`,borderBottom:`1px solid ${r.value.borderColor}`})),p=t.computed(()=>({color:r.value.labelColor,fontSize:`${r.value.fontSize}px`})),X=t.computed(()=>({color:"#fff",background:r.value.btnActiveColor,borderColor:r.value.btnActiveColor}));return t.onMounted(()=>{m.init()}),t.onUnmounted(()=>{m.cleanup()}),(l,e)=>{const s=b.ElOption,u=b.ElSelect,v=b.ElDatePicker,f=b.ElButton;return t.openBlock(),t.createElementBlock("div",{class:"gnss-filter-bar-wrap",style:t.normalizeStyle(K.value)},[t.createElementVNode("div",ne,[t.unref(r).showAreaFilter?(t.openBlock(),t.createElementBlock("div",re,[t.createElementVNode("span",{class:"filter-label",style:t.normalizeStyle(p.value)},"区域位置:",4),t.createVNode(u,{modelValue:o.area,"onUpdate:modelValue":e[0]||(e[0]=a=>o.area=a),size:"small",style:{width:"90px"},onChange:$},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(I.value,a=>(t.openBlock(),t.createBlock(s,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(r).showLineFilter?(t.openBlock(),t.createElementBlock("div",ie,[t.createElementVNode("span",{class:"filter-label",style:t.normalizeStyle(p.value)},"监测线:",4),t.createVNode(u,{modelValue:o.line,"onUpdate:modelValue":e[1]||(e[1]=a=>o.line=a),size:"small",style:{width:"90px"},onChange:G},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_.value,a=>(t.openBlock(),t.createBlock(s,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(r).showPointFilter?(t.openBlock(),t.createElementBlock("div",se,[t.createElementVNode("span",{class:"filter-label",style:t.normalizeStyle(p.value)},"监测点:",4),t.createVNode(u,{modelValue:o.point,"onUpdate:modelValue":e[2]||(e[2]=a=>o.point=a),size:"small",style:{width:"80px"}},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k.value,a=>(t.openBlock(),t.createBlock(s,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(r).showTimeRange?(t.openBlock(),t.createElementBlock("div",ce,[t.createElementVNode("span",{class:"filter-label",style:t.normalizeStyle(p.value)},"时间范围:",4),t.createElementVNode("div",ue,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(U,a=>t.createElementVNode("button",{key:a.value,class:t.normalizeClass(["range-btn",{active:o.timeRange===a.value}]),style:t.normalizeStyle(o.timeRange===a.value?X.value:{}),onClick:C=>W(a.value)},t.toDisplayString(a.label),15,de)),64))])])):t.createCommentVNode("",!0),t.unref(r).showDatePicker?(t.openBlock(),t.createElementBlock("div",me,[t.createVNode(v,{modelValue:o.dateRange,"onUpdate:modelValue":e[3]||(e[3]=a=>o.dateRange=a),type:"datetimerange",size:"small",format:"YYYY/MM/DD HH:mm","value-format":"YYYY/MM/DD HH:mm","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",style:{"max-width":"340px","min-width":"200px",width:"100%"}},null,8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(r).showQueryBtn?(t.openBlock(),t.createBlock(f,{key:5,type:"primary",size:"small",onClick:J},{default:t.withCtx(()=>[...e[4]||(e[4]=[t.createTextVNode("查询",-1)])]),_:1})):t.createCommentVNode("",!0)]),t.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),Ce=d._export_sfc(he,[["__scopeId","data-v-2639ea88"]]);exports.default=Ce;
@@ -33,9 +33,9 @@ import "element-plus/es/components/select/style/css";
33
33
  import "element-plus/es/components/option/style/css";
34
34
  import { defineComponent as Ht, ref as V, reactive as dt, computed as q, onMounted as jt, openBlock as j, createElementBlock as E, normalizeStyle as ut, createElementVNode as l, toDisplayString as G, createVNode as $, withCtx as mt, Fragment as Z, renderList as tt, normalizeClass as ft, createCommentVNode as Et, renderSlot as Ot } from "vue";
35
35
  import "html2canvas";
36
- import { d as S, a as Nt, _ as Rt } from "./index-CPTJIw32.js";
36
+ import { d as S, a as Nt, _ as Rt } from "./index-BK7gdNxS.js";
37
37
  import "element-plus";
38
- import { E as It } from "./EChartComponentBase-skupRYzl.js";
38
+ import { E as It } from "./EChartComponentBase-nG6UXIUB.js";
39
39
  import { A as Tt, D as Vt } from "./ele-lin-icon-Dax-ZiWV.js";
40
40
  const Gt = { class: "table-section" }, $t = { class: "table-section-header" }, Lt = { class: "table-title" }, Pt = { class: "table-toolbar" }, qt = { class: "table-scroll-wrapper" }, Kt = { class: "report-table" }, Ut = { key: 0 }, Bt = ["colspan"], zt = { class: "table-pagination" }, Xt = { class: "page-info" }, Wt = { class: "page-controls" }, Jt = ["disabled"], Qt = { class: "page-num" }, Zt = ["disabled"], te = {
41
41
  DEFAULT_ICON: Vt,
@@ -1,3 +1,3 @@
1
- "use strict";var pe=Object.defineProperty,fe=Object.defineProperties;var ye=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var ge=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable;var m=Math.pow,ee=(p,s,d)=>s in p?pe(p,s,{enumerable:!0,configurable:!0,writable:!0,value:d}):p[s]=d,te=(p,s)=>{for(var d in s||(s={}))ge.call(s,d)&&ee(p,d,s[d]);if(Z)for(var d of Z(s))ve.call(s,d)&&ee(p,d,s[d]);return p},ne=(p,s)=>fe(p,ye(s));var U=(p,s,d)=>new Promise((F,R)=>{var _=M=>{try{y(d.next(M))}catch(x){R(x)}},V=M=>{try{y(d.throw(M))}catch(x){R(x)}},y=M=>M.done?F(M.value):Promise.resolve(M.value).then(_,V);y((d=d.apply(p,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue");require("html2canvas");const v=require("./index-DoEyCVDU.cjs");require("element-plus");const _e=require("./EChartComponentBase-8GSbyY5P.cjs"),oe=require("./ele-lin-icon-Dke_1AmT.cjs"),be={class:"table-section"},he={class:"table-section-header"},Se={class:"table-title"},xe={class:"table-toolbar"},De={class:"table-scroll-wrapper"},Ye={class:"report-table"},Ee={key:0},Me=["colspan"],Ne={class:"table-pagination"},ke={class:"page-info"},Ce={class:"page-controls"},je=["disabled"],we={class:"page-num"},Fe=["disabled"],Ve={DEFAULT_ICON:oe.DEFAULT_ICON,ACTIVE_ICON:oe.ACTIVE_ICON,NAME_CN:"GNSS历史明细报表",NAME_EN:"GNSS History Table",ORDER:5,PLATFORM:["pc","screen"]},Ae={bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},He=[{name:"序号",fv:"_index",object_id:""},{name:"时间",fv:"_time",object_id:""}],Oe=["name","fv","object_id"],Re=["mosaic","statistics","statisticsRealtime"],Ie={useAlias:!1,multiObject:!0,hideMultiObject:!1,source:"mosaic"},qe={DEFAULT:Ve,OPTIONS:Ae,DATA:He,PARAMS:Oe,SOURCE:Re,COMMON:Ie},Be=e.defineComponent(ne(te({},qe),{__name:"gnssHistoryTable",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(p){const s=p;class d extends _e.EChartComponentBase{constructor(){super(...arguments),this._lastDedupeKey=""}extractStyles(){const t=this.getOptionValue("linkChannel","gnss"),o=this.getOptionValue("customChannel","");return{bgColor:this.getOptionValue("bgColor","#f5f7fa"),textColor:this.getOptionValue("textColor","#333333"),linkChannel:t==="custom"&&o?o:t}}getChartOption(){return{}}onLinkEvent(t){ce(t)}needsHistoryData(){return!1}onPreview(){return U(this,null,function*(){var o,i,r,a,c;const t=((i=(o=this.props.conf)==null?void 0:o.common)==null?void 0:i.object_id)||((c=(a=(r=this.props.conf)==null?void 0:r.data)==null?void 0:a[0])==null?void 0:c.object_id)||"";t&&this.props.mode==="preview"&&(y.value=String(t),M.value=[String(t)],yield $())})}setSocketData(t){if(!t||!t.data)return;const{data:o}=this.props.conf;if(!o||!Array.isArray(o))return;const i=["_index","_time"],r=t.datetime||v.dayjs().format("YYYY/MM/DD HH:mm:ss"),a=`${r}_${JSON.stringify(t.data)}`;if(a===this._lastDedupeKey)return;this._lastDedupeKey=a;const c={};if(o.forEach(u=>{if(u.fv&&!i.includes(u.fv)){const h=this.extractDataValue(t,u.fv);h!=null&&(c[u.fv]=String(h))}}),Object.keys(c).length===0)return;const l={time:r,area:V.value||"-",device:_.value?`GNSS${_.value}`:"GNSS",metrics:c};D.rows.unshift(l),D.rows.length>1e3&&(D.rows=D.rows.slice(0,1e3))}}const F=new d(s,"gnssHistoryTable");F.setupLifecycle();const R=F.getStyle(),_=e.ref(""),V=e.ref(""),y=e.ref(""),M=e.ref([]),x=e.reactive({timeRange:"1d",dateRange:[v.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),v.dayjs().format("YYYY/MM/DD HH:mm")]}),$=()=>U(null,null,function*(){var a,c;if(N.value=1,s.mode==="edit"){J();return}if(!y.value)return;D.rows=[];const n=(a=F.session)==null?void 0:a.value,t=(c=s.conf)==null?void 0:c.id;n!=null&&n.componentRequests&&t&&n.componentRequests.delete(t);const{data:o,common:i}=s.conf;Array.isArray(o)&&o.forEach(l=>{l.object_id=y.value}),i.multiObject||(i.object_id=y.value);try{const l=v.dayjs(x.dateRange[0],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),u=v.dayjs(x.dateRange[1],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),h=v.dayjs(x.dateRange[1],"YYYY/MM/DD HH:mm").diff(v.dayjs(x.dateRange[0],"YYYY/MM/DD HH:mm"),"second"),k=Math.max(60,Math.floor(h/500)),Y=(s.conf.data||[]).filter(E=>E.fv&&!z.includes(E.fv)),H=Y.map(E=>E.fv),L={block_mapping:"influxdbproxy",action:"get_mosaic_list_with_time_span",start_time:l,end_time:u,time_span:k,time_swing:k,object_id:y.value};H.length>0&&(L.keys=H);const S=[L],C=yield new Promise(E=>{v.api.platform(I=>{E(I.result)},{block_mapping:"mixtools",action:"get_tools_mosaic_list",condition:S})}),b=Array.isArray(C)?C:[C],w=b[0]&&typeof b[0]=="object"&&Array.isArray(b[0].data)?b[0].data:Array.isArray(b[0])?b[0]:[];if(Array.isArray(w)&&w.length>0){const E=["time","datetime","object_id","_index","_time"];if(Y.length===0){const f=w[0];Object.keys(f).filter(g=>!E.includes(g)).forEach(g=>{s.conf.data.some(O=>O.fv===g)||s.conf.data.push({name:g,fv:g,object_id:y.value})})}const I=(s.conf.data||[]).filter(f=>f.fv&&!z.includes(f.fv));[...w].sort((f,j)=>{const g=f.time||f.datetime||"",A=j.time||j.datetime||"";return new Date(A).getTime()-new Date(g).getTime()}).forEach(f=>{const j=f.time||f.datetime;if(!j)return;const g={};I.forEach(A=>{const O=f[A.fv];O!=null&&(g[A.fv]=String(O))}),Object.keys(g).length>0&&D.rows.push({time:v.dayjs(j).format("YYYY/MM/DD HH:mm:ss"),area:V.value||"-",device:_.value?`GNSS${_.value}`:"GNSS",metrics:g})})}console.log(`[GNSS历史明细] 历史数据加载完成,共 ${D.rows.length} 条,时间范围: ${l} ~ ${u}`)}catch(l){console.warn("[GNSS历史明细] 历史数据获取失败:",l)}const r=F.getSource();F.subscribeBySource(r,y.value)}),ae=e.computed(()=>({backgroundColor:R.value.bgColor,color:R.value.textColor})),z=["_index","_time"],se=n=>n==="_index"?"index":n==="_time"?"time":"data",q=e.computed(()=>{const{data:n}=s.conf;return!n||!Array.isArray(n)?[]:n.map(t=>({key:t.fv||"",label:t.name||t.fv||"-",type:se(t.fv||"")})).filter(t=>t.key)}),P=e.ref("hour"),N=e.ref(1),B=15,D=e.reactive({rows:[]}),T=e.computed(()=>{const n=P.value;if(n==="hour")return D.rows;const t=new Set,o=[];for(const i of D.rows){const r=v.dayjs(i.time,"YYYY/MM/DD HH:mm:ss");let a;if(n==="day")a=r.format("YYYY/MM/DD");else if(n==="week"){const c=r.startOf("year");a=r.year()+"-W"+Math.floor(r.diff(c,"day")/7)}else a=r.format("YYYY/MM");t.has(a)||(t.add(a),o.push(i))}return o}),X=e.computed(()=>Math.max(1,Math.ceil(T.value.length/B))),W=e.computed(()=>{const n=(N.value-1)*B;return T.value.slice(n,n+B)}),le=()=>{N.value=1},J=()=>{const n=V.value||"-",t=_.value?`GNSS${_.value}`:"GNSS",o=parseInt(_.value)||50,i=v.dayjs(),r=100,a=+(2450+o*.1).toFixed(2),c=+(1300+o*.02).toFixed(2),l=+(1150+o*.01).toFixed(2);let u=0,h=0,k=0;const Y=[];for(let H=0;H<r;H++){const L=i.subtract((r-H)*60,"minute"),S=()=>Math.random()-.5,C=+(.8+S()*.2).toFixed(2),b=+(.65+S()*.15).toFixed(2),w=+(.01+S()*.02).toFixed(2),E=+Math.sqrt(m(C,2)+m(b,2)).toFixed(2),I=+Math.sqrt(m(C,2)+m(b,2)+m(w,2)).toFixed(2);u+=C,h+=b,k+=w;const G=+(8+S()*1.5).toFixed(2),f=+(8+S()*1.5).toFixed(2),j=+(8.5+S()*1).toFixed(2),g=+Math.sqrt(m(G,2)+m(f,2)).toFixed(2),A=+Math.sqrt(m(G,2)+m(f,2)+m(j,2)).toFixed(2),O=+(S()*.1).toFixed(3),de=+(S()*.08).toFixed(3),ue=+(S()*.06).toFixed(3),me=+(Math.atan2(b,C)*180/Math.PI).toFixed(1);Y.push({time:L.format("YYYY/MM/DD HH:mm:ss"),area:n,device:t,metrics:{base_x:String(a),base_y:String(c),base_h:String(l),x_disp:String(C),y_disp:String(b),h_disp:String(w),xy_disp:String(E),xyh_disp:String(I),x_cum_disp:u.toFixed(2),y_cum_disp:h.toFixed(2),h_cum_disp:k.toFixed(2),xy_cum_disp:Math.sqrt(m(u,2)+m(h,2)).toFixed(2),xyh_cum_disp:Math.sqrt(m(u,2)+m(h,2)+m(k,2)).toFixed(2),x_speed:String(G),y_speed:String(f),h_speed:String(j),xy_speed:String(g),xyh_speed:String(A),x_accel:String(O),y_accel:String(de),h_accel:String(ue),tangent_angle:me+"°"}})}D.rows=Y},re=n=>{if(!n)return"#333";const t=parseFloat(n);return isNaN(t)?"#333":t>=20?"#ee4444":t>=10?"#e6a23c":"#333"},Q=(n,t,o)=>{var i;switch(t.type){case"index":return String((N.value-1)*B+o+1);case"time":return n.time;default:return(i=n.metrics[t.key])!=null?i:"-"}},ie=()=>{const n=q.value,t=T.value;if(!t.length)return;const o=n.map(u=>u.label).join(","),i=t.map((u,h)=>n.map(k=>{const Y=Q(u,k,h);return k.type==="time"||Y.includes(",")||Y.includes('"')?`"${Y.replace(/"/g,'""')}"`:Y}).join(",")).join(`
1
+ "use strict";var pe=Object.defineProperty,fe=Object.defineProperties;var ye=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var ge=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable;var m=Math.pow,ee=(p,s,d)=>s in p?pe(p,s,{enumerable:!0,configurable:!0,writable:!0,value:d}):p[s]=d,te=(p,s)=>{for(var d in s||(s={}))ge.call(s,d)&&ee(p,d,s[d]);if(Z)for(var d of Z(s))ve.call(s,d)&&ee(p,d,s[d]);return p},ne=(p,s)=>fe(p,ye(s));var U=(p,s,d)=>new Promise((F,R)=>{var _=M=>{try{y(d.next(M))}catch(x){R(x)}},V=M=>{try{y(d.throw(M))}catch(x){R(x)}},y=M=>M.done?F(M.value):Promise.resolve(M.value).then(_,V);y((d=d.apply(p,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue");require("html2canvas");const v=require("./index-ucOU7Nfo.cjs");require("element-plus");const _e=require("./EChartComponentBase-EgcDDKn2.cjs"),oe=require("./ele-lin-icon-Dke_1AmT.cjs"),be={class:"table-section"},he={class:"table-section-header"},Se={class:"table-title"},xe={class:"table-toolbar"},De={class:"table-scroll-wrapper"},Ye={class:"report-table"},Ee={key:0},Me=["colspan"],Ne={class:"table-pagination"},ke={class:"page-info"},Ce={class:"page-controls"},je=["disabled"],we={class:"page-num"},Fe=["disabled"],Ve={DEFAULT_ICON:oe.DEFAULT_ICON,ACTIVE_ICON:oe.ACTIVE_ICON,NAME_CN:"GNSS历史明细报表",NAME_EN:"GNSS History Table",ORDER:5,PLATFORM:["pc","screen"]},Ae={bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},He=[{name:"序号",fv:"_index",object_id:""},{name:"时间",fv:"_time",object_id:""}],Oe=["name","fv","object_id"],Re=["mosaic","statistics","statisticsRealtime"],Ie={useAlias:!1,multiObject:!0,hideMultiObject:!1,source:"mosaic"},qe={DEFAULT:Ve,OPTIONS:Ae,DATA:He,PARAMS:Oe,SOURCE:Re,COMMON:Ie},Be=e.defineComponent(ne(te({},qe),{__name:"gnssHistoryTable",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(p){const s=p;class d extends _e.EChartComponentBase{constructor(){super(...arguments),this._lastDedupeKey=""}extractStyles(){const t=this.getOptionValue("linkChannel","gnss"),o=this.getOptionValue("customChannel","");return{bgColor:this.getOptionValue("bgColor","#f5f7fa"),textColor:this.getOptionValue("textColor","#333333"),linkChannel:t==="custom"&&o?o:t}}getChartOption(){return{}}onLinkEvent(t){ce(t)}needsHistoryData(){return!1}onPreview(){return U(this,null,function*(){var o,i,r,a,c;const t=((i=(o=this.props.conf)==null?void 0:o.common)==null?void 0:i.object_id)||((c=(a=(r=this.props.conf)==null?void 0:r.data)==null?void 0:a[0])==null?void 0:c.object_id)||"";t&&this.props.mode==="preview"&&(y.value=String(t),M.value=[String(t)],yield $())})}setSocketData(t){if(!t||!t.data)return;const{data:o}=this.props.conf;if(!o||!Array.isArray(o))return;const i=["_index","_time"],r=t.datetime||v.dayjs().format("YYYY/MM/DD HH:mm:ss"),a=`${r}_${JSON.stringify(t.data)}`;if(a===this._lastDedupeKey)return;this._lastDedupeKey=a;const c={};if(o.forEach(u=>{if(u.fv&&!i.includes(u.fv)){const h=this.extractDataValue(t,u.fv);h!=null&&(c[u.fv]=String(h))}}),Object.keys(c).length===0)return;const l={time:r,area:V.value||"-",device:_.value?`GNSS${_.value}`:"GNSS",metrics:c};D.rows.unshift(l),D.rows.length>1e3&&(D.rows=D.rows.slice(0,1e3))}}const F=new d(s,"gnssHistoryTable");F.setupLifecycle();const R=F.getStyle(),_=e.ref(""),V=e.ref(""),y=e.ref(""),M=e.ref([]),x=e.reactive({timeRange:"1d",dateRange:[v.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),v.dayjs().format("YYYY/MM/DD HH:mm")]}),$=()=>U(null,null,function*(){var a,c;if(N.value=1,s.mode==="edit"){J();return}if(!y.value)return;D.rows=[];const n=(a=F.session)==null?void 0:a.value,t=(c=s.conf)==null?void 0:c.id;n!=null&&n.componentRequests&&t&&n.componentRequests.delete(t);const{data:o,common:i}=s.conf;Array.isArray(o)&&o.forEach(l=>{l.object_id=y.value}),i.multiObject||(i.object_id=y.value);try{const l=v.dayjs(x.dateRange[0],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),u=v.dayjs(x.dateRange[1],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),h=v.dayjs(x.dateRange[1],"YYYY/MM/DD HH:mm").diff(v.dayjs(x.dateRange[0],"YYYY/MM/DD HH:mm"),"second"),k=Math.max(60,Math.floor(h/500)),Y=(s.conf.data||[]).filter(E=>E.fv&&!z.includes(E.fv)),H=Y.map(E=>E.fv),L={block_mapping:"influxdbproxy",action:"get_mosaic_list_with_time_span",start_time:l,end_time:u,time_span:k,time_swing:k,object_id:y.value};H.length>0&&(L.keys=H);const S=[L],C=yield new Promise(E=>{v.api.platform(I=>{E(I.result)},{block_mapping:"mixtools",action:"get_tools_mosaic_list",condition:S})}),b=Array.isArray(C)?C:[C],w=b[0]&&typeof b[0]=="object"&&Array.isArray(b[0].data)?b[0].data:Array.isArray(b[0])?b[0]:[];if(Array.isArray(w)&&w.length>0){const E=["time","datetime","object_id","_index","_time"];if(Y.length===0){const f=w[0];Object.keys(f).filter(g=>!E.includes(g)).forEach(g=>{s.conf.data.some(O=>O.fv===g)||s.conf.data.push({name:g,fv:g,object_id:y.value})})}const I=(s.conf.data||[]).filter(f=>f.fv&&!z.includes(f.fv));[...w].sort((f,j)=>{const g=f.time||f.datetime||"",A=j.time||j.datetime||"";return new Date(A).getTime()-new Date(g).getTime()}).forEach(f=>{const j=f.time||f.datetime;if(!j)return;const g={};I.forEach(A=>{const O=f[A.fv];O!=null&&(g[A.fv]=String(O))}),Object.keys(g).length>0&&D.rows.push({time:v.dayjs(j).format("YYYY/MM/DD HH:mm:ss"),area:V.value||"-",device:_.value?`GNSS${_.value}`:"GNSS",metrics:g})})}console.log(`[GNSS历史明细] 历史数据加载完成,共 ${D.rows.length} 条,时间范围: ${l} ~ ${u}`)}catch(l){console.warn("[GNSS历史明细] 历史数据获取失败:",l)}const r=F.getSource();F.subscribeBySource(r,y.value)}),ae=e.computed(()=>({backgroundColor:R.value.bgColor,color:R.value.textColor})),z=["_index","_time"],se=n=>n==="_index"?"index":n==="_time"?"time":"data",q=e.computed(()=>{const{data:n}=s.conf;return!n||!Array.isArray(n)?[]:n.map(t=>({key:t.fv||"",label:t.name||t.fv||"-",type:se(t.fv||"")})).filter(t=>t.key)}),P=e.ref("hour"),N=e.ref(1),B=15,D=e.reactive({rows:[]}),T=e.computed(()=>{const n=P.value;if(n==="hour")return D.rows;const t=new Set,o=[];for(const i of D.rows){const r=v.dayjs(i.time,"YYYY/MM/DD HH:mm:ss");let a;if(n==="day")a=r.format("YYYY/MM/DD");else if(n==="week"){const c=r.startOf("year");a=r.year()+"-W"+Math.floor(r.diff(c,"day")/7)}else a=r.format("YYYY/MM");t.has(a)||(t.add(a),o.push(i))}return o}),X=e.computed(()=>Math.max(1,Math.ceil(T.value.length/B))),W=e.computed(()=>{const n=(N.value-1)*B;return T.value.slice(n,n+B)}),le=()=>{N.value=1},J=()=>{const n=V.value||"-",t=_.value?`GNSS${_.value}`:"GNSS",o=parseInt(_.value)||50,i=v.dayjs(),r=100,a=+(2450+o*.1).toFixed(2),c=+(1300+o*.02).toFixed(2),l=+(1150+o*.01).toFixed(2);let u=0,h=0,k=0;const Y=[];for(let H=0;H<r;H++){const L=i.subtract((r-H)*60,"minute"),S=()=>Math.random()-.5,C=+(.8+S()*.2).toFixed(2),b=+(.65+S()*.15).toFixed(2),w=+(.01+S()*.02).toFixed(2),E=+Math.sqrt(m(C,2)+m(b,2)).toFixed(2),I=+Math.sqrt(m(C,2)+m(b,2)+m(w,2)).toFixed(2);u+=C,h+=b,k+=w;const G=+(8+S()*1.5).toFixed(2),f=+(8+S()*1.5).toFixed(2),j=+(8.5+S()*1).toFixed(2),g=+Math.sqrt(m(G,2)+m(f,2)).toFixed(2),A=+Math.sqrt(m(G,2)+m(f,2)+m(j,2)).toFixed(2),O=+(S()*.1).toFixed(3),de=+(S()*.08).toFixed(3),ue=+(S()*.06).toFixed(3),me=+(Math.atan2(b,C)*180/Math.PI).toFixed(1);Y.push({time:L.format("YYYY/MM/DD HH:mm:ss"),area:n,device:t,metrics:{base_x:String(a),base_y:String(c),base_h:String(l),x_disp:String(C),y_disp:String(b),h_disp:String(w),xy_disp:String(E),xyh_disp:String(I),x_cum_disp:u.toFixed(2),y_cum_disp:h.toFixed(2),h_cum_disp:k.toFixed(2),xy_cum_disp:Math.sqrt(m(u,2)+m(h,2)).toFixed(2),xyh_cum_disp:Math.sqrt(m(u,2)+m(h,2)+m(k,2)).toFixed(2),x_speed:String(G),y_speed:String(f),h_speed:String(j),xy_speed:String(g),xyh_speed:String(A),x_accel:String(O),y_accel:String(de),h_accel:String(ue),tangent_angle:me+"°"}})}D.rows=Y},re=n=>{if(!n)return"#333";const t=parseFloat(n);return isNaN(t)?"#333":t>=20?"#ee4444":t>=10?"#e6a23c":"#333"},Q=(n,t,o)=>{var i;switch(t.type){case"index":return String((N.value-1)*B+o+1);case"time":return n.time;default:return(i=n.metrics[t.key])!=null?i:"-"}},ie=()=>{const n=q.value,t=T.value;if(!t.length)return;const o=n.map(u=>u.label).join(","),i=t.map((u,h)=>n.map(k=>{const Y=Q(u,k,h);return k.type==="time"||Y.includes(",")||Y.includes('"')?`"${Y.replace(/"/g,'""')}"`:Y}).join(",")).join(`
2
2
  `),r="\uFEFF"+o+`
3
3
  `+i,a=new Blob([r],{type:"text/csv;charset=utf-8;"}),c=URL.createObjectURL(a),l=document.createElement("a");l.href=c,l.download=`GNSS监测历史明细_${_.value||"all"}_${v.dayjs().format("YYYYMMDDHHmmss")}.csv`,l.click(),URL.revokeObjectURL(c)},ce=n=>{const{payload:t}=n;if(!t)return;if(t.type==="filter"){t.point!=null&&(_.value=String(t.point)),t.area!=null&&(V.value=String(t.area)),t.objectId!=null&&(y.value=String(t.objectId)),t.timeRange&&(x.timeRange=t.timeRange),t.dateRange&&(x.dateRange=t.dateRange),$();return}const o=t.point||t.deviceId;o&&(_.value=String(o),t.objectId&&(y.value=String(t.objectId)),t.area&&(V.value=String(t.area)),y.value&&$())};return e.onMounted(()=>{s.mode==="edit"&&J()}),(n,t)=>{const o=K.ElOption,i=K.ElSelect,r=K.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"gnss-history-table",style:e.normalizeStyle(ae.value)},[e.createElementVNode("div",be,[e.createElementVNode("div",he,[e.createElementVNode("div",Se,[t[3]||(t[3]=e.createElementVNode("span",{class:"table-title-bar"},null,-1)),e.createElementVNode("span",null,e.toDisplayString(p.conf.caption||p.conf.name||"GNSS监测 历史明细报表"),1)]),e.createElementVNode("div",xe,[t[5]||(t[5]=e.createElementVNode("span",{class:"toolbar-label"},"显示频率:",-1)),e.createVNode(i,{modelValue:P.value,"onUpdate:modelValue":t[0]||(t[0]=a=>P.value=a),size:"small",style:{width:"95px"},onChange:le},{default:e.withCtx(()=>[e.createVNode(o,{label:"按小时",value:"hour"}),e.createVNode(o,{label:"按天显示",value:"day"}),e.createVNode(o,{label:"按周显示",value:"week"}),e.createVNode(o,{label:"按月显示",value:"month"})]),_:1},8,["modelValue"]),e.createVNode(r,{size:"small",type:"success",onClick:ie},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createElementVNode("span",null,"📥 导出分析报表 (Excel)",-1)])]),_:1})])]),e.createElementVNode("div",De,[e.createElementVNode("table",Ye,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,a=>(e.openBlock(),e.createElementBlock("th",{key:a.key,class:e.normalizeClass({"col-fixed":a.type!=="data","col-idx":a.type==="index","col-time":a.type==="time"})},e.toDisplayString(a.label),3))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(W.value,(a,c)=>(e.openBlock(),e.createElementBlock("tr",{key:c},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,l=>(e.openBlock(),e.createElementBlock("td",{key:l.key,class:e.normalizeClass({"col-fixed":l.type!=="data","col-idx":l.type==="index","col-time":l.type==="time","cell-angle":l.key==="tangent_angle"}),style:e.normalizeStyle(l.key==="tangent_angle"?{color:re(a.metrics[l.key])}:{})},e.toDisplayString(Q(a,l,c)),7))),128))]))),128)),W.value.length===0?(e.openBlock(),e.createElementBlock("tr",Ee,[e.createElementVNode("td",{colspan:q.value.length,style:{"text-align":"center",color:"#999",padding:"20px"}},"暂无数据",8,Me)])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",Ne,[e.createElementVNode("span",ke,"共 "+e.toDisplayString(T.value.length)+" 条记录",1),e.createElementVNode("div",Ce,[e.createElementVNode("button",{class:"page-arrow",disabled:N.value<=1,onClick:t[1]||(t[1]=a=>N.value--)},"◀",8,je),e.createElementVNode("span",we,e.toDisplayString(N.value)+" / "+e.toDisplayString(X.value),1),e.createElementVNode("button",{class:"page-arrow",disabled:N.value>=X.value,onClick:t[2]||(t[2]=a=>N.value++)},"▶",8,Fe)])])]),e.renderSlot(n.$slots,"default",{},void 0,!0)],4)}}})),Te=v._export_sfc(Be,[["__scopeId","data-v-e1b697cc"]]);exports.default=Te;
@@ -1,10 +1,10 @@
1
- "use strict";var wn=Object.defineProperty,xn=Object.defineProperties;var bn=Object.getOwnPropertyDescriptors;var At=Object.getOwnPropertySymbols;var vn=Object.prototype.hasOwnProperty,Sn=Object.prototype.propertyIsEnumerable;var Q=Math.pow,Ct=(o,e,t)=>e in o?wn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,Ze=(o,e)=>{for(var t in e||(e={}))vn.call(e,t)&&Ct(o,t,e[t]);if(At)for(var t of At(e))Sn.call(e,t)&&Ct(o,t,e[t]);return o},We=(o,e)=>xn(o,bn(e));var _=(o,e,t)=>new Promise((r,n)=>{var i=f=>{try{a(t.next(f))}catch(u){n(u)}},l=f=>{try{a(t.throw(f))}catch(u){n(u)}},a=f=>f.done?r(f.value):Promise.resolve(f.value).then(i,l);a((t=t.apply(o,e)).next())});const Pe=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const s=require("vue");require("html2canvas");const Vn=require("./BaseComponent-DKuQG62G.cjs"),rt=require("./index-DoEyCVDU.cjs"),Fe=require("./leaflet-src-BNvMLv27.cjs");require("./index-CJgyJTvc.cjs");const T=require("./three.module-CjayKmiG.cjs"),Mn=require("./GLTFLoader-DhebSl5W.cjs"),An=require("./OrbitControls-uuLGjaqy.cjs"),Tt=require("./ele-lin-icon-Dke_1AmT.cjs"),Cn=require("./echarts-BB8O2KSA.cjs"),Tn=/^[og]\s*(.+)?/,Fn=/^mtllib /,En=/^usemtl /,Dn=/^usemap /,Ft=/\s+/,Et=new T.Vector3,Je=new T.Vector3,Dt=new T.Vector3,Lt=new T.Vector3,W=new T.Vector3,Ue=new T.Color;function Ln(){const o={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(e,t){if(this.object&&this.object.fromDeclaration===!1){this.object.name=e,this.object.fromDeclaration=t!==!1;return}const r=this.object&&typeof this.object.currentMaterial=="function"?this.object.currentMaterial():void 0;if(this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0),this.object={name:e||"",fromDeclaration:t!==!1,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(n,i){const l=this._finalize(!1);l&&(l.inherited||l.groupCount<=0)&&this.materials.splice(l.index,1);const a={index:this.materials.length,name:n||"",mtllib:Array.isArray(i)&&i.length>0?i[i.length-1]:"",smooth:l!==void 0?l.smooth:this.smooth,groupStart:l!==void 0?l.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(f){const u={index:typeof f=="number"?f:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return u.clone=this.clone.bind(u),u}};return this.materials.push(a),a},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(n){const i=this.currentMaterial();if(i&&i.groupEnd===-1&&(i.groupEnd=this.geometry.vertices.length/3,i.groupCount=i.groupEnd-i.groupStart,i.inherited=!1),n&&this.materials.length>1)for(let l=this.materials.length-1;l>=0;l--)this.materials[l].groupCount<=0&&this.materials.splice(l,1);return n&&this.materials.length===0&&this.materials.push({name:"",smooth:this.smooth}),i}},r&&r.name&&typeof r.clone=="function"){const n=r.clone(0);n.inherited=!0,this.object.materials.push(n)}this.objects.push(this.object)},finalize:function(){this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0)},parseVertexIndex:function(e,t){const r=parseInt(e,10);return(r>=0?r-1:r+t/3)*3},parseNormalIndex:function(e,t){const r=parseInt(e,10);return(r>=0?r-1:r+t/3)*3},parseUVIndex:function(e,t){const r=parseInt(e,10);return(r>=0?r-1:r+t/2)*2},addVertex:function(e,t,r){const n=this.vertices,i=this.object.geometry.vertices;i.push(n[e+0],n[e+1],n[e+2]),i.push(n[t+0],n[t+1],n[t+2]),i.push(n[r+0],n[r+1],n[r+2])},addVertexPoint:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addVertexLine:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addNormal:function(e,t,r){const n=this.normals,i=this.object.geometry.normals;i.push(n[e+0],n[e+1],n[e+2]),i.push(n[t+0],n[t+1],n[t+2]),i.push(n[r+0],n[r+1],n[r+2])},addFaceNormal:function(e,t,r){const n=this.vertices,i=this.object.geometry.normals;Et.fromArray(n,e),Je.fromArray(n,t),Dt.fromArray(n,r),W.subVectors(Dt,Je),Lt.subVectors(Et,Je),W.cross(Lt),W.normalize(),i.push(W.x,W.y,W.z),i.push(W.x,W.y,W.z),i.push(W.x,W.y,W.z)},addColor:function(e,t,r){const n=this.colors,i=this.object.geometry.colors;n[e]!==void 0&&i.push(n[e+0],n[e+1],n[e+2]),n[t]!==void 0&&i.push(n[t+0],n[t+1],n[t+2]),n[r]!==void 0&&i.push(n[r+0],n[r+1],n[r+2])},addUV:function(e,t,r){const n=this.uvs,i=this.object.geometry.uvs;i.push(n[e+0],n[e+1]),i.push(n[t+0],n[t+1]),i.push(n[r+0],n[r+1])},addDefaultUV:function(){const e=this.object.geometry.uvs;e.push(0,0),e.push(0,0),e.push(0,0)},addUVLine:function(e){const t=this.uvs;this.object.geometry.uvs.push(t[e+0],t[e+1])},addFace:function(e,t,r,n,i,l,a,f,u){const p=this.vertices.length;let h=this.parseVertexIndex(e,p),g=this.parseVertexIndex(t,p),y=this.parseVertexIndex(r,p);if(this.addVertex(h,g,y),this.addColor(h,g,y),a!==void 0&&a!==""){const w=this.normals.length;h=this.parseNormalIndex(a,w),g=this.parseNormalIndex(f,w),y=this.parseNormalIndex(u,w),this.addNormal(h,g,y)}else this.addFaceNormal(h,g,y);if(n!==void 0&&n!==""){const w=this.uvs.length;h=this.parseUVIndex(n,w),g=this.parseUVIndex(i,w),y=this.parseUVIndex(l,w),this.addUV(h,g,y),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(e){this.object.geometry.type="Points";const t=this.vertices.length;for(let r=0,n=e.length;r<n;r++){const i=this.parseVertexIndex(e[r],t);this.addVertexPoint(i),this.addColor(i)}},addLineGeometry:function(e,t){this.object.geometry.type="Line";const r=this.vertices.length,n=this.uvs.length;for(let i=0,l=e.length;i<l;i++)this.addVertexLine(this.parseVertexIndex(e[i],r));for(let i=0,l=t.length;i<l;i++)this.addUVLine(this.parseUVIndex(t[i],n))}};return o.startObject("",!1),o}class In extends T.Loader{constructor(e){super(e),this.materials=null}load(e,t,r,n){const i=this,l=new T.FileLoader(this.manager);l.setPath(this.path),l.setRequestHeader(this.requestHeader),l.setWithCredentials(this.withCredentials),l.load(e,function(a){try{t(i.parse(a))}catch(f){n?n(f):console.error(f),i.manager.itemError(e)}},r,n)}setMaterials(e){return this.materials=e,this}parse(e){const t=new Ln;e.indexOf(`\r
1
+ "use strict";var wn=Object.defineProperty,xn=Object.defineProperties;var bn=Object.getOwnPropertyDescriptors;var At=Object.getOwnPropertySymbols;var vn=Object.prototype.hasOwnProperty,Sn=Object.prototype.propertyIsEnumerable;var Q=Math.pow,Ct=(o,e,t)=>e in o?wn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,Ze=(o,e)=>{for(var t in e||(e={}))vn.call(e,t)&&Ct(o,t,e[t]);if(At)for(var t of At(e))Sn.call(e,t)&&Ct(o,t,e[t]);return o},We=(o,e)=>xn(o,bn(e));var _=(o,e,t)=>new Promise((r,n)=>{var i=f=>{try{a(t.next(f))}catch(u){n(u)}},l=f=>{try{a(t.throw(f))}catch(u){n(u)}},a=f=>f.done?r(f.value):Promise.resolve(f.value).then(i,l);a((t=t.apply(o,e)).next())});const Pe=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const s=require("vue");require("html2canvas");const Vn=require("./BaseComponent-oKNx9Ues.cjs"),rt=require("./index-ucOU7Nfo.cjs"),Fe=require("./leaflet-src-cP_Xp59B.cjs");require("./index-CJgyJTvc.cjs");const T=require("./three.module-CjayKmiG.cjs"),Mn=require("./GLTFLoader-DhebSl5W.cjs"),An=require("./OrbitControls-uuLGjaqy.cjs"),Tt=require("./ele-lin-icon-Dke_1AmT.cjs"),Cn=require("./echarts-BB8O2KSA.cjs"),Tn=/^[og]\s*(.+)?/,Fn=/^mtllib /,En=/^usemtl /,Dn=/^usemap /,Ft=/\s+/,Et=new T.Vector3,Je=new T.Vector3,Dt=new T.Vector3,Lt=new T.Vector3,W=new T.Vector3,Ue=new T.Color;function Ln(){const o={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(e,t){if(this.object&&this.object.fromDeclaration===!1){this.object.name=e,this.object.fromDeclaration=t!==!1;return}const r=this.object&&typeof this.object.currentMaterial=="function"?this.object.currentMaterial():void 0;if(this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0),this.object={name:e||"",fromDeclaration:t!==!1,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(n,i){const l=this._finalize(!1);l&&(l.inherited||l.groupCount<=0)&&this.materials.splice(l.index,1);const a={index:this.materials.length,name:n||"",mtllib:Array.isArray(i)&&i.length>0?i[i.length-1]:"",smooth:l!==void 0?l.smooth:this.smooth,groupStart:l!==void 0?l.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(f){const u={index:typeof f=="number"?f:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return u.clone=this.clone.bind(u),u}};return this.materials.push(a),a},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(n){const i=this.currentMaterial();if(i&&i.groupEnd===-1&&(i.groupEnd=this.geometry.vertices.length/3,i.groupCount=i.groupEnd-i.groupStart,i.inherited=!1),n&&this.materials.length>1)for(let l=this.materials.length-1;l>=0;l--)this.materials[l].groupCount<=0&&this.materials.splice(l,1);return n&&this.materials.length===0&&this.materials.push({name:"",smooth:this.smooth}),i}},r&&r.name&&typeof r.clone=="function"){const n=r.clone(0);n.inherited=!0,this.object.materials.push(n)}this.objects.push(this.object)},finalize:function(){this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0)},parseVertexIndex:function(e,t){const r=parseInt(e,10);return(r>=0?r-1:r+t/3)*3},parseNormalIndex:function(e,t){const r=parseInt(e,10);return(r>=0?r-1:r+t/3)*3},parseUVIndex:function(e,t){const r=parseInt(e,10);return(r>=0?r-1:r+t/2)*2},addVertex:function(e,t,r){const n=this.vertices,i=this.object.geometry.vertices;i.push(n[e+0],n[e+1],n[e+2]),i.push(n[t+0],n[t+1],n[t+2]),i.push(n[r+0],n[r+1],n[r+2])},addVertexPoint:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addVertexLine:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addNormal:function(e,t,r){const n=this.normals,i=this.object.geometry.normals;i.push(n[e+0],n[e+1],n[e+2]),i.push(n[t+0],n[t+1],n[t+2]),i.push(n[r+0],n[r+1],n[r+2])},addFaceNormal:function(e,t,r){const n=this.vertices,i=this.object.geometry.normals;Et.fromArray(n,e),Je.fromArray(n,t),Dt.fromArray(n,r),W.subVectors(Dt,Je),Lt.subVectors(Et,Je),W.cross(Lt),W.normalize(),i.push(W.x,W.y,W.z),i.push(W.x,W.y,W.z),i.push(W.x,W.y,W.z)},addColor:function(e,t,r){const n=this.colors,i=this.object.geometry.colors;n[e]!==void 0&&i.push(n[e+0],n[e+1],n[e+2]),n[t]!==void 0&&i.push(n[t+0],n[t+1],n[t+2]),n[r]!==void 0&&i.push(n[r+0],n[r+1],n[r+2])},addUV:function(e,t,r){const n=this.uvs,i=this.object.geometry.uvs;i.push(n[e+0],n[e+1]),i.push(n[t+0],n[t+1]),i.push(n[r+0],n[r+1])},addDefaultUV:function(){const e=this.object.geometry.uvs;e.push(0,0),e.push(0,0),e.push(0,0)},addUVLine:function(e){const t=this.uvs;this.object.geometry.uvs.push(t[e+0],t[e+1])},addFace:function(e,t,r,n,i,l,a,f,u){const p=this.vertices.length;let h=this.parseVertexIndex(e,p),g=this.parseVertexIndex(t,p),y=this.parseVertexIndex(r,p);if(this.addVertex(h,g,y),this.addColor(h,g,y),a!==void 0&&a!==""){const w=this.normals.length;h=this.parseNormalIndex(a,w),g=this.parseNormalIndex(f,w),y=this.parseNormalIndex(u,w),this.addNormal(h,g,y)}else this.addFaceNormal(h,g,y);if(n!==void 0&&n!==""){const w=this.uvs.length;h=this.parseUVIndex(n,w),g=this.parseUVIndex(i,w),y=this.parseUVIndex(l,w),this.addUV(h,g,y),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(e){this.object.geometry.type="Points";const t=this.vertices.length;for(let r=0,n=e.length;r<n;r++){const i=this.parseVertexIndex(e[r],t);this.addVertexPoint(i),this.addColor(i)}},addLineGeometry:function(e,t){this.object.geometry.type="Line";const r=this.vertices.length,n=this.uvs.length;for(let i=0,l=e.length;i<l;i++)this.addVertexLine(this.parseVertexIndex(e[i],r));for(let i=0,l=t.length;i<l;i++)this.addUVLine(this.parseUVIndex(t[i],n))}};return o.startObject("",!1),o}class In extends T.Loader{constructor(e){super(e),this.materials=null}load(e,t,r,n){const i=this,l=new T.FileLoader(this.manager);l.setPath(this.path),l.setRequestHeader(this.requestHeader),l.setWithCredentials(this.withCredentials),l.load(e,function(a){try{t(i.parse(a))}catch(f){n?n(f):console.error(f),i.manager.itemError(e)}},r,n)}setMaterials(e){return this.materials=e,this}parse(e){const t=new Ln;e.indexOf(`\r
2
2
  `)!==-1&&(e=e.replace(/\r\n/g,`
3
3
  `)),e.indexOf(`\\
4
4
  `)!==-1&&(e=e.replace(/\\\n/g,""));const r=e.split(`
5
5
  `);let n=[];for(let a=0,f=r.length;a<f;a++){const u=r[a].trimStart();if(u.length===0)continue;const p=u.charAt(0);if(p!=="#")if(p==="v"){const h=u.split(Ft);switch(h[0]){case"v":t.vertices.push(parseFloat(h[1]),parseFloat(h[2]),parseFloat(h[3])),h.length>=7?(Ue.setRGB(parseFloat(h[4]),parseFloat(h[5]),parseFloat(h[6]),T.SRGBColorSpace),t.colors.push(Ue.r,Ue.g,Ue.b)):t.colors.push(void 0,void 0,void 0);break;case"vn":t.normals.push(parseFloat(h[1]),parseFloat(h[2]),parseFloat(h[3]));break;case"vt":t.uvs.push(parseFloat(h[1]),parseFloat(h[2]));break}}else if(p==="f"){const g=u.slice(1).trim().split(Ft),y=[];for(let V=0,v=g.length;V<v;V++){const C=g[V];if(C.length>0){const M=C.split("/");y.push(M)}}const w=y[0];for(let V=1,v=y.length-1;V<v;V++){const C=y[V],M=y[V+1];t.addFace(w[0],C[0],M[0],w[1],C[1],M[1],w[2],C[2],M[2])}}else if(p==="l"){const h=u.substring(1).trim().split(" ");let g=[];const y=[];if(u.indexOf("/")===-1)g=h;else for(let w=0,V=h.length;w<V;w++){const v=h[w].split("/");v[0]!==""&&g.push(v[0]),v[1]!==""&&y.push(v[1])}t.addLineGeometry(g,y)}else if(p==="p"){const g=u.slice(1).trim().split(" ");t.addPointGeometry(g)}else if((n=Tn.exec(u))!==null){const h=(" "+n[0].slice(1).trim()).slice(1);t.startObject(h)}else if(En.test(u))t.object.startMaterial(u.substring(7).trim(),t.materialLibraries);else if(Fn.test(u))t.materialLibraries.push(u.substring(7).trim());else if(Dn.test(u))console.warn('THREE.OBJLoader: Rendering identifier "usemap" not supported. Textures must be defined in MTL files.');else if(p==="s"){if(n=u.split(" "),n.length>1){const g=n[1].trim().toLowerCase();t.object.smooth=g!=="0"&&g!=="off"}else t.object.smooth=!0;const h=t.object.currentMaterial();h&&(h.smooth=t.object.smooth)}else{if(u==="\0")continue;console.warn('THREE.OBJLoader: Unexpected line: "'+u+'"')}}t.finalize();const i=new T.Group;if(i.materialLibraries=[].concat(t.materialLibraries),!(t.objects.length===1&&t.objects[0].geometry.vertices.length===0)===!0)for(let a=0,f=t.objects.length;a<f;a++){const u=t.objects[a],p=u.geometry,h=u.materials,g=p.type==="Line",y=p.type==="Points";let w=!1;if(p.vertices.length===0)continue;const V=new T.BufferGeometry;V.setAttribute("position",new T.Float32BufferAttribute(p.vertices,3)),p.normals.length>0&&V.setAttribute("normal",new T.Float32BufferAttribute(p.normals,3)),p.colors.length>0&&(w=!0,V.setAttribute("color",new T.Float32BufferAttribute(p.colors,3))),p.hasUVIndices===!0&&V.setAttribute("uv",new T.Float32BufferAttribute(p.uvs,2));const v=[];for(let M=0,D=h.length;M<D;M++){const E=h[M],R=E.name+"_"+E.smooth+"_"+w;let m=t.materials[R];if(this.materials!==null){if(m=this.materials.create(E.name),g&&m&&!(m instanceof T.LineBasicMaterial)){const k=new T.LineBasicMaterial;T.Material.prototype.copy.call(k,m),k.color.copy(m.color),m=k}else if(y&&m&&!(m instanceof T.PointsMaterial)){const k=new T.PointsMaterial({size:10,sizeAttenuation:!1});T.Material.prototype.copy.call(k,m),k.color.copy(m.color),k.map=m.map,m=k}}m===void 0&&(g?m=new T.LineBasicMaterial:y?m=new T.PointsMaterial({size:1,sizeAttenuation:!1}):m=new T.MeshPhongMaterial,m.name=E.name,m.flatShading=!E.smooth,m.vertexColors=w,t.materials[R]=m),v.push(m)}let C;if(v.length>1){for(let M=0,D=h.length;M<D;M++){const E=h[M];V.addGroup(E.groupStart,E.groupCount,M)}g?C=new T.LineSegments(V,v):y?C=new T.Points(V,v):C=new T.Mesh(V,v)}else g?C=new T.LineSegments(V,v[0]):y?C=new T.Points(V,v[0]):C=new T.Mesh(V,v[0]);C.name=u.name,i.add(C)}else if(t.vertices.length>0){const a=new T.PointsMaterial({size:1,sizeAttenuation:!1}),f=new T.BufferGeometry;f.setAttribute("position",new T.Float32BufferAttribute(t.vertices,3)),t.colors.length>0&&t.colors[0]!==void 0&&(f.setAttribute("color",new T.Float32BufferAttribute(t.colors,3)),a.vertexColors=!0);const u=new T.Points(f,a);i.add(u)}return i}}function j(o){return(e,...t)=>Nn(o,e,t)}function xe(o,e){return j(Bt(o,e).get)}const{apply:Nn,getOwnPropertyDescriptor:Bt,getPrototypeOf:it,ownKeys:Pn}=Reflect,{iterator:Le,toStringTag:Un}=Symbol,Rn=Object,{create:ot,defineProperty:kn}=Rn,_n=Array,Bn=_n.prototype,Ot=Bn[Le],On=j(Ot),Gt=ArrayBuffer,Gn=Gt.prototype;xe(Gn,"byteLength");const It=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:null;It&&xe(It.prototype,"byteLength");const jt=it(Uint8Array);jt.from;const X=jt.prototype;X[Le];j(X.keys);j(X.values);j(X.entries);j(X.set);j(X.reverse);j(X.fill);j(X.copyWithin);j(X.sort);j(X.slice);j(X.subarray);xe(X,"buffer");xe(X,"byteOffset");xe(X,"length");xe(X,Un);const jn=Uint8Array,zt=Uint16Array,st=Uint32Array,zn=Float32Array,De=it([][Le]()),Yt=j(De.next),Yn=j((function*(){})().next),Kn=it(De),$n=DataView.prototype,Xn=j($n.getUint16),at=WeakMap,Kt=at.prototype,$t=j(Kt.get),qn=j(Kt.set),Xt=new at,Hn=ot(null,{next:{value:function(){const e=$t(Xt,this);return Yt(e)}},[Le]:{value:function(){return this}}});function Zn(o){if(o[Le]===Ot&&De.next===Yt)return o;const e=ot(Hn);return qn(Xt,e,On(o)),e}const Wn=new at,Jn=ot(Kn,{next:{value:function(){const e=$t(Wn,this);return Yn(e)},writable:!0,configurable:!0}});for(const o of Pn(De))o!=="next"&&kn(Jn,o,Bt(De,o));const qt=new Gt(4),Qn=new zn(qt),er=new st(qt),ne=new zt(512),re=new jn(512);for(let o=0;o<256;++o){const e=o-127;e<-24?(ne[o]=0,ne[o|256]=32768,re[o]=24,re[o|256]=24):e<-14?(ne[o]=1024>>-e-14,ne[o|256]=1024>>-e-14|32768,re[o]=-e-1,re[o|256]=-e-1):e<=15?(ne[o]=e+15<<10,ne[o|256]=e+15<<10|32768,re[o]=13,re[o|256]=13):e<128?(ne[o]=31744,ne[o|256]=64512,re[o]=24,re[o|256]=24):(ne[o]=31744,ne[o|256]=64512,re[o]=13,re[o|256]=13)}const lt=new st(2048);for(let o=1;o<1024;++o){let e=o<<13,t=0;for(;(e&8388608)===0;)e<<=1,t-=8388608;e&=-8388609,t+=947912704,lt[o]=e|t}for(let o=1024;o<2048;++o)lt[o]=939524096+(o-1024<<13);const be=new st(64);for(let o=1;o<31;++o)be[o]=o<<23;be[31]=1199570944;be[32]=2147483648;for(let o=33;o<63;++o)be[o]=2147483648+(o-32<<23);be[63]=3347054592;const Ht=new zt(64);for(let o=1;o<64;++o)o!==32&&(Ht[o]=1024);function tr(o){const e=o>>10;return er[0]=lt[Ht[e]+(o&1023)]+be[e],Qn[0]}function Zt(o,e,...t){return tr(Xn(o,e,...Zn(t)))}var Re={exports:{}},Nt;function nr(){if(Nt)return Re.exports;Nt=1;function o(e,t,r){const n=r&&r.debug||!1;n&&console.log("[xml-utils] getting "+t+" in "+e);const i=typeof e=="object"?e.outer:e,l=i.slice(0,i.indexOf(">")+1),a=['"',"'"];for(let f=0;f<a.length;f++){const u=a[f],p=t+"\\="+u+"([^"+u+"]*)"+u;n&&console.log("[xml-utils] pattern:",p);const g=new RegExp(p).exec(l);if(n&&console.log("[xml-utils] match:",g),g)return g[1]}}return Re.exports=o,Re.exports.default=o,Re.exports}var rr=nr();const Qe=rt.getDefaultExportFromCjs(rr);var ke={exports:{}},_e={exports:{}},Be={exports:{}},Pt;function ir(){if(Pt)return Be.exports;Pt=1;function o(e,t,r){const i=new RegExp(t).exec(e.slice(r));return i?r+i.index:-1}return Be.exports=o,Be.exports.default=o,Be.exports}var Oe={exports:{}},Ut;function or(){if(Ut)return Oe.exports;Ut=1;function o(e,t,r){const i=new RegExp(t).exec(e.slice(r));return i?r+i.index+i[0].length-1:-1}return Oe.exports=o,Oe.exports.default=o,Oe.exports}var Ge={exports:{}},Rt;function sr(){if(Rt)return Ge.exports;Rt=1;function o(e,t){const r=new RegExp(t,"g"),n=e.match(r);return n?n.length:0}return Ge.exports=o,Ge.exports.default=o,Ge.exports}var kt;function ar(){if(kt)return _e.exports;kt=1;const o=ir(),e=or(),t=sr();function r(n,i,l){const a=l&&l.debug||!1,f=!(l&&typeof l.nested===!1),u=l&&l.startIndex||0;a&&console.log("[xml-utils] starting findTagByName with",i," and ",l);const p=o(n,`<${i}[
6
6
  >/]`,u);if(a&&console.log("[xml-utils] start:",p),p===-1)return;const h=n.slice(p+i.length);let g=e(h,"^[^<]*[ /]>",0);const y=g!==-1&&h[g-1]==="/";if(a&&console.log("[xml-utils] selfClosing:",y),y===!1)if(f){let C=0,M=1,D=0;for(;(g=e(h,"[ /]"+i+">",C))!==-1;){const E=h.substring(C,g+1);if(M+=t(E,"<"+i+`[
7
- >]`),D+=t(E,"</"+i+">"),D>=M)break;C=g}}else g=e(h,"[ /]"+i+">",0);const w=p+i.length+g+1;if(a&&console.log("[xml-utils] end:",w),w===-1)return;const V=n.slice(p,w);let v;return y?v=null:v=V.slice(V.indexOf(">")+1,V.lastIndexOf("<")),{inner:v,outer:V,start:p,end:w}}return _e.exports=r,_e.exports.default=r,_e.exports}var _t;function lr(){if(_t)return ke.exports;_t=1;const o=ar();function e(t,r,n){const i=[],l=n&&n.debug||!1,a=n&&typeof n.nested=="boolean"?n.nested:!0;let f=n&&n.startIndex||0,u;for(;u=o(t,r,{debug:l,startIndex:f});)a?f=u.start+1+r.length:f=u.end,i.push(u);return l&&console.log("findTagsByName found",i.length,"tags"),i}return ke.exports=e,ke.exports.default=e,ke.exports}var cr=lr();const ur=rt.getDefaultExportFromCjs(cr),Ee={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},ie={};for(const o in Ee)Ee.hasOwnProperty(o)&&(ie[Ee[o]]=parseInt(o,10));const fr=[ie.BitsPerSample,ie.ExtraSamples,ie.SampleFormat,ie.StripByteCounts,ie.StripOffsets,ie.StripRowCounts,ie.TileByteCounts,ie.TileOffsets,ie.SubIFDs],et={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},I={};for(const o in et)et.hasOwnProperty(o)&&(I[et[o]]=parseInt(o,10));const H={WhiteIsZero:0,BlackIsZero:1,RGB:2,Palette:3,CMYK:5,YCbCr:6,CIELab:8},dr={Unspecified:0},hr={AddCompression:1},mr={None:0,Deflate:1,Zstandard:2},gr={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"};function pr(o,e){const{width:t,height:r}=o,n=new Uint8Array(t*r*3);let i;for(let l=0,a=0;l<o.length;++l,a+=3)i=256-o[l]/e*256,n[a]=i,n[a+1]=i,n[a+2]=i;return n}function yr(o,e){const{width:t,height:r}=o,n=new Uint8Array(t*r*3);let i;for(let l=0,a=0;l<o.length;++l,a+=3)i=o[l]/e*256,n[a]=i,n[a+1]=i,n[a+2]=i;return n}function wr(o,e){const{width:t,height:r}=o,n=new Uint8Array(t*r*3),i=e.length/3,l=e.length/3*2;for(let a=0,f=0;a<o.length;++a,f+=3){const u=o[a];n[f]=e[u]/65536*256,n[f+1]=e[u+i]/65536*256,n[f+2]=e[u+l]/65536*256}return n}function xr(o){const{width:e,height:t}=o,r=new Uint8Array(e*t*3);for(let n=0,i=0;n<o.length;n+=4,i+=3){const l=o[n],a=o[n+1],f=o[n+2],u=o[n+3];r[i]=255*((255-l)/256)*((255-u)/256),r[i+1]=255*((255-a)/256)*((255-u)/256),r[i+2]=255*((255-f)/256)*((255-u)/256)}return r}function br(o){const{width:e,height:t}=o,r=new Uint8ClampedArray(e*t*3);for(let n=0,i=0;n<o.length;n+=3,i+=3){const l=o[n],a=o[n+1],f=o[n+2];r[i]=l+1.402*(f-128),r[i+1]=l-.34414*(a-128)-.71414*(f-128),r[i+2]=l+1.772*(a-128)}return r}const vr=.95047,Sr=1,Vr=1.08883;function Mr(o){const{width:e,height:t}=o,r=new Uint8Array(e*t*3);for(let n=0,i=0;n<o.length;n+=3,i+=3){const l=o[n+0],a=o[n+1]<<24>>24,f=o[n+2]<<24>>24;let u=(l+16)/116,p=a/500+u,h=u-f/200,g,y,w;p=vr*(p*p*p>.008856?p*p*p:(p-16/116)/7.787),u=Sr*(u*u*u>.008856?u*u*u:(u-16/116)/7.787),h=Vr*(h*h*h>.008856?h*h*h:(h-16/116)/7.787),g=p*3.2406+u*-1.5372+h*-.4986,y=p*-.9689+u*1.8758+h*.0415,w=p*.0557+u*-.204+h*1.057,g=g>.0031308?1.055*Q(g,1/2.4)-.055:12.92*g,y=y>.0031308?1.055*Q(y,1/2.4)-.055:12.92*y,w=w>.0031308?1.055*Q(w,1/2.4)-.055:12.92*w,r[i]=Math.max(0,Math.min(1,g))*255,r[i+1]=Math.max(0,Math.min(1,y))*255,r[i+2]=Math.max(0,Math.min(1,w))*255}return r}const Wt=new Map;function le(o,e){Array.isArray(o)||(o=[o]),o.forEach(t=>Wt.set(t,e))}function Ar(o){return _(this,null,function*(){const e=Wt.get(o.Compression);if(!e)throw new Error(`Unknown compression method identifier: ${o.Compression}`);const t=yield e();return new t(o)})}le([void 0,1],()=>Promise.resolve().then(()=>require("./raw-B_Sr9gDq.cjs")).then(o=>o.default));le(5,()=>Promise.resolve().then(()=>require("./lzw-DA3XeqBg.cjs")).then(o=>o.default));le(6,()=>{throw new Error("old style JPEG compression is not supported.")});le(7,()=>Promise.resolve().then(()=>require("./jpeg-DLeEjPcb.cjs")).then(o=>o.default));le([8,32946],()=>Promise.resolve().then(()=>require("./deflate-De_6nNhk.cjs")).then(o=>o.default));le(32773,()=>Promise.resolve().then(()=>require("./packbits-fIig5HbM.cjs")).then(o=>o.default));le(34887,()=>Promise.resolve().then(()=>require("./lerc-7GSCiwa9.cjs")).then(o=>_(null,null,function*(){return yield o.zstd.init(),o})).then(o=>o.default));le(50001,()=>Promise.resolve().then(()=>require("./webimage-DQl5wElJ.cjs")).then(o=>o.default));function ze(o,e,t,r=1){return new(Object.getPrototypeOf(o)).constructor(e*t*r)}function Cr(o,e,t,r,n){const i=e/r,l=t/n;return o.map(a=>{const f=ze(a,r,n);for(let u=0;u<n;++u){const p=Math.min(Math.round(l*u),t-1);for(let h=0;h<r;++h){const g=Math.min(Math.round(i*h),e-1),y=a[p*e+g];f[u*r+h]=y}}return f})}function we(o,e,t){return(1-t)*o+t*e}function Tr(o,e,t,r,n){const i=e/r,l=t/n;return o.map(a=>{const f=ze(a,r,n);for(let u=0;u<n;++u){const p=l*u,h=Math.floor(p),g=Math.min(Math.ceil(p),t-1);for(let y=0;y<r;++y){const w=i*y,V=w%1,v=Math.floor(w),C=Math.min(Math.ceil(w),e-1),M=a[h*e+v],D=a[h*e+C],E=a[g*e+v],R=a[g*e+C],m=we(we(M,D,V),we(E,R,V),p%1);f[u*r+y]=m}}return f})}function Fr(o,e,t,r,n,i="nearest"){switch(i.toLowerCase()){case"nearest":return Cr(o,e,t,r,n);case"bilinear":case"linear":return Tr(o,e,t,r,n);default:throw new Error(`Unsupported resampling method: '${i}'`)}}function Er(o,e,t,r,n,i){const l=e/r,a=t/n,f=ze(o,r,n,i);for(let u=0;u<n;++u){const p=Math.min(Math.round(a*u),t-1);for(let h=0;h<r;++h){const g=Math.min(Math.round(l*h),e-1);for(let y=0;y<i;++y){const w=o[p*e*i+g*i+y];f[u*r*i+h*i+y]=w}}}return f}function Dr(o,e,t,r,n,i){const l=e/r,a=t/n,f=ze(o,r,n,i);for(let u=0;u<n;++u){const p=a*u,h=Math.floor(p),g=Math.min(Math.ceil(p),t-1);for(let y=0;y<r;++y){const w=l*y,V=w%1,v=Math.floor(w),C=Math.min(Math.ceil(w),e-1);for(let M=0;M<i;++M){const D=o[h*e*i+v*i+M],E=o[h*e*i+C*i+M],R=o[g*e*i+v*i+M],m=o[g*e*i+C*i+M],k=we(we(D,E,V),we(R,m,V),p%1);f[u*r*i+y*i+M]=k}}}return f}function Lr(o,e,t,r,n,i,l="nearest"){switch(l.toLowerCase()){case"nearest":return Er(o,e,t,r,n,i);case"bilinear":case"linear":return Dr(o,e,t,r,n,i);default:throw new Error(`Unsupported resampling method: '${l}'`)}}function Ir(o,e,t){let r=0;for(let n=e;n<t;++n)r+=o[n];return r}function tt(o,e,t){switch(o){case 1:if(e<=8)return new Uint8Array(t);if(e<=16)return new Uint16Array(t);if(e<=32)return new Uint32Array(t);break;case 2:if(e===8)return new Int8Array(t);if(e===16)return new Int16Array(t);if(e===32)return new Int32Array(t);break;case 3:switch(e){case 16:case 32:return new Float32Array(t);case 64:return new Float64Array(t)}break}throw Error("Unsupported data format/bitsPerSample")}function Nr(o,e){return(o===1||o===2)&&e<=32&&e%8===0?!1:!(o===3&&(e===16||e===32||e===64))}function Pr(o,e,t,r,n,i,l){const a=new DataView(o),f=t===2?l*i:l*i*r,u=t===2?1:r,p=tt(e,n,f),h=parseInt("1".repeat(n),2);if(e===1){let g;t===1?g=r*n:g=n;let y=i*g;(y&7)!==0&&(y=y+7&-8);for(let w=0;w<l;++w){const V=w*y;for(let v=0;v<i;++v){const C=V+v*u*n;for(let M=0;M<u;++M){const D=C+M*n,E=(w*i+v)*u+M,R=Math.floor(D/8),m=D%8;if(m+n<=8)p[E]=a.getUint8(R)>>8-n-m&h;else if(m+n<=16)p[E]=a.getUint16(R)>>16-n-m&h;else if(m+n<=24){const k=a.getUint16(R)<<8|a.getUint8(R+2);p[E]=k>>24-n-m&h}else p[E]=a.getUint32(R)>>32-n-m&h}}}}return p.buffer}class Ur{constructor(e,t,r,n,i,l){this.fileDirectory=e,this.geoKeys=t,this.dataView=r,this.littleEndian=n,this.tiles=i?{}:null,this.isTiled=!e.StripOffsets;const a=e.PlanarConfiguration;if(this.planarConfiguration=typeof a=="undefined"?1:a,this.planarConfiguration!==1&&this.planarConfiguration!==2)throw new Error("Invalid planar configuration.");this.source=l}getFileDirectory(){return this.fileDirectory}getGeoKeys(){return this.geoKeys}getWidth(){return this.fileDirectory.ImageWidth}getHeight(){return this.fileDirectory.ImageLength}getSamplesPerPixel(){return typeof this.fileDirectory.SamplesPerPixel!="undefined"?this.fileDirectory.SamplesPerPixel:1}getTileWidth(){return this.isTiled?this.fileDirectory.TileWidth:this.getWidth()}getTileHeight(){return this.isTiled?this.fileDirectory.TileLength:typeof this.fileDirectory.RowsPerStrip!="undefined"?Math.min(this.fileDirectory.RowsPerStrip,this.getHeight()):this.getHeight()}getBlockWidth(){return this.getTileWidth()}getBlockHeight(e){return this.isTiled||(e+1)*this.getTileHeight()<=this.getHeight()?this.getTileHeight():this.getHeight()-e*this.getTileHeight()}getBytesPerPixel(){let e=0;for(let t=0;t<this.fileDirectory.BitsPerSample.length;++t)e+=this.getSampleByteSize(t);return e}getSampleByteSize(e){if(e>=this.fileDirectory.BitsPerSample.length)throw new RangeError(`Sample index ${e} is out of range.`);return Math.ceil(this.fileDirectory.BitsPerSample[e]/8)}getReaderForSample(e){const t=this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[e]:1,r=this.fileDirectory.BitsPerSample[e];switch(t){case 1:if(r<=8)return DataView.prototype.getUint8;if(r<=16)return DataView.prototype.getUint16;if(r<=32)return DataView.prototype.getUint32;break;case 2:if(r<=8)return DataView.prototype.getInt8;if(r<=16)return DataView.prototype.getInt16;if(r<=32)return DataView.prototype.getInt32;break;case 3:switch(r){case 16:return function(n,i){return Zt(this,n,i)};case 32:return DataView.prototype.getFloat32;case 64:return DataView.prototype.getFloat64}break}throw Error("Unsupported data format/bitsPerSample")}getSampleFormat(e=0){return this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[e]:1}getBitsPerSample(e=0){return this.fileDirectory.BitsPerSample[e]}getArrayForSample(e,t){const r=this.getSampleFormat(e),n=this.getBitsPerSample(e);return tt(r,n,t)}getTileOrStrip(e,t,r,n,i){return _(this,null,function*(){const l=Math.ceil(this.getWidth()/this.getTileWidth()),a=Math.ceil(this.getHeight()/this.getTileHeight());let f;const{tiles:u}=this;this.planarConfiguration===1?f=t*l+e:this.planarConfiguration===2&&(f=r*l*a+t*l+e);let p,h;this.isTiled?(p=this.fileDirectory.TileOffsets[f],h=this.fileDirectory.TileByteCounts[f]):(p=this.fileDirectory.StripOffsets[f],h=this.fileDirectory.StripByteCounts[f]);const g=(yield this.source.fetch([{offset:p,length:h}],i))[0];let y;return u===null||!u[f]?(y=_(this,null,function*(){let w=yield n.decode(this.fileDirectory,g);const V=this.getSampleFormat(),v=this.getBitsPerSample();return Nr(V,v)&&(w=Pr(w,V,this.planarConfiguration,this.getSamplesPerPixel(),v,this.getTileWidth(),this.getBlockHeight(t))),w}),u!==null&&(u[f]=y)):y=u[f],{x:e,y:t,sample:r,data:yield y}})}_readRaster(e,t,r,n,i,l,a,f,u){return _(this,null,function*(){const p=this.getTileWidth(),h=this.getTileHeight(),g=this.getWidth(),y=this.getHeight(),w=Math.max(Math.floor(e[0]/p),0),V=Math.min(Math.ceil(e[2]/p),Math.ceil(g/p)),v=Math.max(Math.floor(e[1]/h),0),C=Math.min(Math.ceil(e[3]/h),Math.ceil(y/h)),M=e[2]-e[0];let D=this.getBytesPerPixel();const E=[],R=[];for(let O=0;O<t.length;++O)this.planarConfiguration===1?E.push(Ir(this.fileDirectory.BitsPerSample,0,t[O])/8):E.push(0),R.push(this.getReaderForSample(t[O]));const m=[],{littleEndian:k}=this;for(let O=v;O<C;++O)for(let se=w;se<V;++se){let ae;this.planarConfiguration===1&&(ae=this.getTileOrStrip(se,O,0,i,u));for(let z=0;z<t.length;++z){const U=z,$=t[z];this.planarConfiguration===2&&(D=this.getSampleByteSize($),ae=this.getTileOrStrip(se,O,$,i,u));const oe=ae.then(ce=>{const Ye=ce.data,Ie=new DataView(Ye),ve=this.getBlockHeight(ce.y),ue=ce.y*h,he=ce.x*p,Se=ue+ve,Ke=(ce.x+1)*p,me=R[U],Ne=Math.min(ve,ve-(Se-e[3]),y-ue),$e=Math.min(p,p-(Ke-e[2]),g-he);for(let fe=Math.max(0,e[1]-ue);fe<Ne;++fe)for(let de=Math.max(0,e[0]-he);de<$e;++de){const Xe=(fe*p+de)*D,Ve=me.call(Ie,Xe+E[U],k);let ge;n?(ge=(fe+ue-e[1])*M*t.length+(de+he-e[0])*t.length+U,r[ge]=Ve):(ge=(fe+ue-e[1])*M+de+he-e[0],r[U][ge]=Ve)}});m.push(oe)}}if(yield Promise.all(m),l&&e[2]-e[0]!==l||a&&e[3]-e[1]!==a){let O;return n?O=Lr(r,e[2]-e[0],e[3]-e[1],l,a,t.length,f):O=Fr(r,e[2]-e[0],e[3]-e[1],l,a,f),O.width=l,O.height=a,O}return r.width=l||e[2]-e[0],r.height=a||e[3]-e[1],r})}readRasters(){return _(this,arguments,function*({window:e,samples:t=[],interleave:r,pool:n=null,width:i,height:l,resampleMethod:a,fillValue:f,signal:u}={}){const p=e||[0,0,this.getWidth(),this.getHeight()];if(p[0]>p[2]||p[1]>p[3])throw new Error("Invalid subsets");const h=p[2]-p[0],g=p[3]-p[1],y=h*g,w=this.getSamplesPerPixel();if(!t||!t.length)for(let M=0;M<w;++M)t.push(M);else for(let M=0;M<t.length;++M)if(t[M]>=w)return Promise.reject(new RangeError(`Invalid sample index '${t[M]}'.`));let V;if(r){const M=this.fileDirectory.SampleFormat?Math.max.apply(null,this.fileDirectory.SampleFormat):1,D=Math.max.apply(null,this.fileDirectory.BitsPerSample);V=tt(M,D,y*t.length),f&&V.fill(f)}else{V=[];for(let M=0;M<t.length;++M){const D=this.getArrayForSample(t[M],y);Array.isArray(f)&&M<f.length?D.fill(f[M]):f&&!Array.isArray(f)&&D.fill(f),V.push(D)}}const v=n||(yield Ar(this.fileDirectory));return yield this._readRaster(p,t,V,r,v,i,l,a,u)})}readRGB(){return _(this,arguments,function*({window:e,interleave:t=!0,pool:r=null,width:n,height:i,resampleMethod:l,enableAlpha:a=!1,signal:f}={}){const u=e||[0,0,this.getWidth(),this.getHeight()];if(u[0]>u[2]||u[1]>u[3])throw new Error("Invalid subsets");const p=this.fileDirectory.PhotometricInterpretation;if(p===H.RGB){let C=[0,1,2];if(this.fileDirectory.ExtraSamples!==dr.Unspecified&&a){C=[];for(let M=0;M<this.fileDirectory.BitsPerSample.length;M+=1)C.push(M)}return this.readRasters({window:e,interleave:t,samples:C,pool:r,width:n,height:i,resampleMethod:l,signal:f})}let h;switch(p){case H.WhiteIsZero:case H.BlackIsZero:case H.Palette:h=[0];break;case H.CMYK:h=[0,1,2,3];break;case H.YCbCr:case H.CIELab:h=[0,1,2];break;default:throw new Error("Invalid or unsupported photometric interpretation.")}const g={window:u,interleave:!0,samples:h,pool:r,width:n,height:i,resampleMethod:l,signal:f},{fileDirectory:y}=this,w=yield this.readRasters(g),V=Q(2,this.fileDirectory.BitsPerSample[0]);let v;switch(p){case H.WhiteIsZero:v=pr(w,V);break;case H.BlackIsZero:v=yr(w,V);break;case H.Palette:v=wr(w,y.ColorMap);break;case H.CMYK:v=xr(w);break;case H.YCbCr:v=br(w);break;case H.CIELab:v=Mr(w);break;default:throw new Error("Unsupported photometric interpretation.")}if(!t){const C=new Uint8Array(v.length/3),M=new Uint8Array(v.length/3),D=new Uint8Array(v.length/3);for(let E=0,R=0;E<v.length;E+=3,++R)C[R]=v[E],M[R]=v[E+1],D[R]=v[E+2];v=[C,M,D]}return v.width=w.width,v.height=w.height,v})}getTiePoints(){if(!this.fileDirectory.ModelTiepoint)return[];const e=[];for(let t=0;t<this.fileDirectory.ModelTiepoint.length;t+=6)e.push({i:this.fileDirectory.ModelTiepoint[t],j:this.fileDirectory.ModelTiepoint[t+1],k:this.fileDirectory.ModelTiepoint[t+2],x:this.fileDirectory.ModelTiepoint[t+3],y:this.fileDirectory.ModelTiepoint[t+4],z:this.fileDirectory.ModelTiepoint[t+5]});return e}getGDALMetadata(e=null){const t={};if(!this.fileDirectory.GDAL_METADATA)return null;const r=this.fileDirectory.GDAL_METADATA;let n=ur(r,"Item");e===null?n=n.filter(i=>Qe(i,"sample")===void 0):n=n.filter(i=>Number(Qe(i,"sample"))===e);for(let i=0;i<n.length;++i){const l=n[i];t[Qe(l,"name")]=l.inner}return t}getGDALNoData(){if(!this.fileDirectory.GDAL_NODATA)return null;const e=this.fileDirectory.GDAL_NODATA;return Number(e.substring(0,e.length-1))}getOrigin(){const e=this.fileDirectory.ModelTiepoint,t=this.fileDirectory.ModelTransformation;if(e&&e.length===6)return[e[3],e[4],e[5]];if(t)return[t[3],t[7],t[11]];throw new Error("The image does not have an affine transformation.")}getResolution(e=null){const t=this.fileDirectory.ModelPixelScale,r=this.fileDirectory.ModelTransformation;if(t)return[t[0],-t[1],t[2]];if(r)return r[1]===0&&r[4]===0?[r[0],-r[5],r[10]]:[Math.sqrt(r[0]*r[0]+r[4]*r[4]),-Math.sqrt(r[1]*r[1]+r[5]*r[5]),r[10]];if(e){const[n,i,l]=e.getResolution();return[n*e.getWidth()/this.getWidth(),i*e.getHeight()/this.getHeight(),l*e.getWidth()/this.getWidth()]}throw new Error("The image does not have an affine transformation.")}pixelIsArea(){return this.geoKeys.GTRasterTypeGeoKey===1}getBoundingBox(e=!1){const t=this.getHeight(),r=this.getWidth();if(this.fileDirectory.ModelTransformation&&!e){const[n,i,l,a,f,u,p,h]=this.fileDirectory.ModelTransformation,y=[[0,0],[0,t],[r,0],[r,t]].map(([v,C])=>[a+n*v+i*C,h+f*v+u*C]),w=y.map(v=>v[0]),V=y.map(v=>v[1]);return[Math.min(...w),Math.min(...V),Math.max(...w),Math.max(...V)]}else{const n=this.getOrigin(),i=this.getResolution(),l=n[0],a=n[1],f=l+i[0]*r,u=a+i[1]*t;return[Math.min(l,f),Math.min(a,u),Math.max(l,f),Math.max(a,u)]}}}class Rr{constructor(e){this._dataView=new DataView(e)}get buffer(){return this._dataView.buffer}getUint64(e,t){const r=this.getUint32(e,t),n=this.getUint32(e+4,t);let i;if(t){if(i=r+Q(2,32)*n,!Number.isSafeInteger(i))throw new Error(`${i} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return i}if(i=Q(2,32)*r+n,!Number.isSafeInteger(i))throw new Error(`${i} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return i}getInt64(e,t){let r=0;const n=(this._dataView.getUint8(e+(t?7:0))&128)>0;let i=!0;for(let l=0;l<8;l++){let a=this._dataView.getUint8(e+(t?l:7-l));n&&(i?a!==0&&(a=~(a-1)&255,i=!1):a=~a&255),r+=a*Q(256,l)}return n&&(r=-r),r}getUint8(e,t){return this._dataView.getUint8(e,t)}getInt8(e,t){return this._dataView.getInt8(e,t)}getUint16(e,t){return this._dataView.getUint16(e,t)}getInt16(e,t){return this._dataView.getInt16(e,t)}getUint32(e,t){return this._dataView.getUint32(e,t)}getInt32(e,t){return this._dataView.getInt32(e,t)}getFloat16(e,t){return Zt(this._dataView,e,t)}getFloat32(e,t){return this._dataView.getFloat32(e,t)}getFloat64(e,t){return this._dataView.getFloat64(e,t)}}class kr{constructor(e,t,r,n){this._dataView=new DataView(e),this._sliceOffset=t,this._littleEndian=r,this._bigTiff=n}get sliceOffset(){return this._sliceOffset}get sliceTop(){return this._sliceOffset+this.buffer.byteLength}get littleEndian(){return this._littleEndian}get bigTiff(){return this._bigTiff}get buffer(){return this._dataView.buffer}covers(e,t){return this.sliceOffset<=e&&this.sliceTop>=e+t}readUint8(e){return this._dataView.getUint8(e-this._sliceOffset,this._littleEndian)}readInt8(e){return this._dataView.getInt8(e-this._sliceOffset,this._littleEndian)}readUint16(e){return this._dataView.getUint16(e-this._sliceOffset,this._littleEndian)}readInt16(e){return this._dataView.getInt16(e-this._sliceOffset,this._littleEndian)}readUint32(e){return this._dataView.getUint32(e-this._sliceOffset,this._littleEndian)}readInt32(e){return this._dataView.getInt32(e-this._sliceOffset,this._littleEndian)}readFloat32(e){return this._dataView.getFloat32(e-this._sliceOffset,this._littleEndian)}readFloat64(e){return this._dataView.getFloat64(e-this._sliceOffset,this._littleEndian)}readUint64(e){const t=this.readUint32(e),r=this.readUint32(e+4);let n;if(this._littleEndian){if(n=t+Q(2,32)*r,!Number.isSafeInteger(n))throw new Error(`${n} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return n}if(n=Q(2,32)*t+r,!Number.isSafeInteger(n))throw new Error(`${n} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return n}readInt64(e){let t=0;const r=(this._dataView.getUint8(e+(this._littleEndian?7:0))&128)>0;let n=!0;for(let i=0;i<8;i++){let l=this._dataView.getUint8(e+(this._littleEndian?i:7-i));r&&(n?l!==0&&(l=~(l-1)&255,n=!1):l=~l&255),t+=l*Q(256,i)}return r&&(t=-t),t}readOffset(e){return this._bigTiff?this.readUint64(e):this.readUint32(e)}}class _r{fetch(e,t=void 0){return _(this,null,function*(){return Promise.all(e.map(r=>this.fetchSlice(r,t)))})}fetchSlice(e){return _(this,null,function*(){throw new Error(`fetching of slice ${e} not possible, not implemented`)})}get fileSize(){return null}close(){return _(this,null,function*(){})}}class ct extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,ct),this.name="AbortError"}}class Br extends _r{constructor(e){super(),this.arrayBuffer=e}fetchSlice(e,t){if(t&&t.aborted)throw new ct("Request aborted");return this.arrayBuffer.slice(e.offset,e.offset+e.length)}}function Or(o){return new Br(o)}function nt(o){switch(o){case I.BYTE:case I.ASCII:case I.SBYTE:case I.UNDEFINED:return 1;case I.SHORT:case I.SSHORT:return 2;case I.LONG:case I.SLONG:case I.FLOAT:case I.IFD:return 4;case I.RATIONAL:case I.SRATIONAL:case I.DOUBLE:case I.LONG8:case I.SLONG8:case I.IFD8:return 8;default:throw new RangeError(`Invalid field type: ${o}`)}}function Gr(o){const e=o.GeoKeyDirectory;if(!e)return null;const t={};for(let r=4;r<=e[3]*4;r+=4){const n=gr[e[r]],i=e[r+1]?Ee[e[r+1]]:null,l=e[r+2],a=e[r+3];let f=null;if(!i)f=a;else{if(f=o[i],typeof f=="undefined"||f===null)throw new Error(`Could not get value of geoKey '${n}'.`);typeof f=="string"?f=f.substring(a,a+l-1):f.subarray&&(f=f.subarray(a,a+l),l===1&&(f=f[0]))}t[n]=f}return t}function ye(o,e,t,r){let n=null,i=null;const l=nt(e);switch(e){case I.BYTE:case I.ASCII:case I.UNDEFINED:n=new Uint8Array(t),i=o.readUint8;break;case I.SBYTE:n=new Int8Array(t),i=o.readInt8;break;case I.SHORT:n=new Uint16Array(t),i=o.readUint16;break;case I.SSHORT:n=new Int16Array(t),i=o.readInt16;break;case I.LONG:case I.IFD:n=new Uint32Array(t),i=o.readUint32;break;case I.SLONG:n=new Int32Array(t),i=o.readInt32;break;case I.LONG8:case I.IFD8:n=new Array(t),i=o.readUint64;break;case I.SLONG8:n=new Array(t),i=o.readInt64;break;case I.RATIONAL:n=new Uint32Array(t*2),i=o.readUint32;break;case I.SRATIONAL:n=new Int32Array(t*2),i=o.readInt32;break;case I.FLOAT:n=new Float32Array(t),i=o.readFloat32;break;case I.DOUBLE:n=new Float64Array(t),i=o.readFloat64;break;default:throw new RangeError(`Invalid field type: ${e}`)}if(e===I.RATIONAL||e===I.SRATIONAL)for(let a=0;a<t;a+=2)n[a]=i.call(o,r+a*l),n[a+1]=i.call(o,r+(a*l+4));else for(let a=0;a<t;++a)n[a]=i.call(o,r+a*l);return e===I.ASCII?new TextDecoder("utf-8").decode(n):n}class jr{constructor(e,t,r){this.fileDirectory=e,this.geoKeyDirectory=t,this.nextIFDByteOffset=r}}class je extends Error{constructor(e){super(`No image at index ${e}`),this.index=e}}class zr{readRasters(){return _(this,arguments,function*(e={}){const{window:t,width:r,height:n}=e;let{resX:i,resY:l,bbox:a}=e;const f=yield this.getImage();let u=f;const p=yield this.getImageCount(),h=f.getBoundingBox();if(t&&a)throw new Error('Both "bbox" and "window" passed.');if(r||n){if(t){const[w,V]=f.getOrigin(),[v,C]=f.getResolution();a=[w+t[0]*v,V+t[1]*C,w+t[2]*v,V+t[3]*C]}const y=a||h;if(r){if(i)throw new Error("Both width and resX passed");i=(y[2]-y[0])/r}if(n){if(l)throw new Error("Both width and resY passed");l=(y[3]-y[1])/n}}if(i||l){const y=[];for(let w=0;w<p;++w){const V=yield this.getImage(w),{SubfileType:v,NewSubfileType:C}=V.fileDirectory;(w===0||v===2||C&1)&&y.push(V)}y.sort((w,V)=>w.getWidth()-V.getWidth());for(let w=0;w<y.length;++w){const V=y[w],v=(h[2]-h[0])/V.getWidth(),C=(h[3]-h[1])/V.getHeight();if(u=V,i&&i>v||l&&l>C)break}}let g=t;if(a){const[y,w]=f.getOrigin(),[V,v]=u.getResolution(f);g=[Math.round((a[0]-y)/V),Math.round((a[1]-w)/v),Math.round((a[2]-y)/V),Math.round((a[3]-w)/v)],g=[Math.min(g[0],g[2]),Math.min(g[1],g[3]),Math.max(g[0],g[2]),Math.max(g[1],g[3])]}return u.readRasters(We(Ze({},e),{window:g}))})}}class ut extends zr{constructor(e,t,r,n,i={}){super(),this.source=e,this.littleEndian=t,this.bigTiff=r,this.firstIFDOffset=n,this.cache=i.cache||!1,this.ifdRequests=[],this.ghostValues=null}getSlice(e,t){return _(this,null,function*(){const r=this.bigTiff?4048:1024;return new kr((yield this.source.fetch([{offset:e,length:typeof t!="undefined"?t:r}]))[0],e,this.littleEndian,this.bigTiff)})}parseFileDirectoryAt(e){return _(this,null,function*(){const t=this.bigTiff?20:12,r=this.bigTiff?8:2;let n=yield this.getSlice(e);const i=this.bigTiff?n.readUint64(e):n.readUint16(e),l=i*t+(this.bigTiff?16:6);n.covers(e,l)||(n=yield this.getSlice(e,l));const a={};let f=e+(this.bigTiff?8:2);for(let h=0;h<i;f+=t,++h){const g=n.readUint16(f),y=n.readUint16(f+2),w=this.bigTiff?n.readUint64(f+4):n.readUint32(f+4);let V,v;const C=nt(y),M=f+(this.bigTiff?12:8);if(C*w<=(this.bigTiff?8:4))V=ye(n,y,w,M);else{const D=n.readOffset(M),E=nt(y)*w;if(n.covers(D,E))V=ye(n,y,w,D);else{const R=yield this.getSlice(D,E);V=ye(R,y,w,D)}}w===1&&fr.indexOf(g)===-1&&!(y===I.RATIONAL||y===I.SRATIONAL)?v=V[0]:v=V,a[Ee[g]]=v}const u=Gr(a),p=n.readOffset(e+r+t*i);return new jr(a,u,p)})}requestIFD(e){return _(this,null,function*(){if(this.ifdRequests[e])return this.ifdRequests[e];if(e===0)return this.ifdRequests[e]=this.parseFileDirectoryAt(this.firstIFDOffset),this.ifdRequests[e];if(!this.ifdRequests[e-1])try{this.ifdRequests[e-1]=this.requestIFD(e-1)}catch(t){throw t instanceof je?new je(e):t}return this.ifdRequests[e]=_(this,null,function*(){const t=yield this.ifdRequests[e-1];if(t.nextIFDByteOffset===0)throw new je(e);return this.parseFileDirectoryAt(t.nextIFDByteOffset)}),this.ifdRequests[e]})}getImage(e=0){return _(this,null,function*(){const t=yield this.requestIFD(e);return new Ur(t.fileDirectory,t.geoKeyDirectory,this.dataView,this.littleEndian,this.cache,this.source)})}getImageCount(){return _(this,null,function*(){let e=0,t=!0;for(;t;)try{yield this.requestIFD(e),++e}catch(r){if(r instanceof je)t=!1;else throw r}return e})}getGhostValues(){return _(this,null,function*(){const e=this.bigTiff?16:8;if(this.ghostValues)return this.ghostValues;const t="GDAL_STRUCTURAL_METADATA_SIZE=",r=t.length+100;let n=yield this.getSlice(e,r);if(t===ye(n,I.ASCII,t.length,e)){const l=ye(n,I.ASCII,r,e).split(`
7
+ >]`),D+=t(E,"</"+i+">"),D>=M)break;C=g}}else g=e(h,"[ /]"+i+">",0);const w=p+i.length+g+1;if(a&&console.log("[xml-utils] end:",w),w===-1)return;const V=n.slice(p,w);let v;return y?v=null:v=V.slice(V.indexOf(">")+1,V.lastIndexOf("<")),{inner:v,outer:V,start:p,end:w}}return _e.exports=r,_e.exports.default=r,_e.exports}var _t;function lr(){if(_t)return ke.exports;_t=1;const o=ar();function e(t,r,n){const i=[],l=n&&n.debug||!1,a=n&&typeof n.nested=="boolean"?n.nested:!0;let f=n&&n.startIndex||0,u;for(;u=o(t,r,{debug:l,startIndex:f});)a?f=u.start+1+r.length:f=u.end,i.push(u);return l&&console.log("findTagsByName found",i.length,"tags"),i}return ke.exports=e,ke.exports.default=e,ke.exports}var cr=lr();const ur=rt.getDefaultExportFromCjs(cr),Ee={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},ie={};for(const o in Ee)Ee.hasOwnProperty(o)&&(ie[Ee[o]]=parseInt(o,10));const fr=[ie.BitsPerSample,ie.ExtraSamples,ie.SampleFormat,ie.StripByteCounts,ie.StripOffsets,ie.StripRowCounts,ie.TileByteCounts,ie.TileOffsets,ie.SubIFDs],et={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},I={};for(const o in et)et.hasOwnProperty(o)&&(I[et[o]]=parseInt(o,10));const H={WhiteIsZero:0,BlackIsZero:1,RGB:2,Palette:3,CMYK:5,YCbCr:6,CIELab:8},dr={Unspecified:0},hr={AddCompression:1},mr={None:0,Deflate:1,Zstandard:2},gr={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"};function pr(o,e){const{width:t,height:r}=o,n=new Uint8Array(t*r*3);let i;for(let l=0,a=0;l<o.length;++l,a+=3)i=256-o[l]/e*256,n[a]=i,n[a+1]=i,n[a+2]=i;return n}function yr(o,e){const{width:t,height:r}=o,n=new Uint8Array(t*r*3);let i;for(let l=0,a=0;l<o.length;++l,a+=3)i=o[l]/e*256,n[a]=i,n[a+1]=i,n[a+2]=i;return n}function wr(o,e){const{width:t,height:r}=o,n=new Uint8Array(t*r*3),i=e.length/3,l=e.length/3*2;for(let a=0,f=0;a<o.length;++a,f+=3){const u=o[a];n[f]=e[u]/65536*256,n[f+1]=e[u+i]/65536*256,n[f+2]=e[u+l]/65536*256}return n}function xr(o){const{width:e,height:t}=o,r=new Uint8Array(e*t*3);for(let n=0,i=0;n<o.length;n+=4,i+=3){const l=o[n],a=o[n+1],f=o[n+2],u=o[n+3];r[i]=255*((255-l)/256)*((255-u)/256),r[i+1]=255*((255-a)/256)*((255-u)/256),r[i+2]=255*((255-f)/256)*((255-u)/256)}return r}function br(o){const{width:e,height:t}=o,r=new Uint8ClampedArray(e*t*3);for(let n=0,i=0;n<o.length;n+=3,i+=3){const l=o[n],a=o[n+1],f=o[n+2];r[i]=l+1.402*(f-128),r[i+1]=l-.34414*(a-128)-.71414*(f-128),r[i+2]=l+1.772*(a-128)}return r}const vr=.95047,Sr=1,Vr=1.08883;function Mr(o){const{width:e,height:t}=o,r=new Uint8Array(e*t*3);for(let n=0,i=0;n<o.length;n+=3,i+=3){const l=o[n+0],a=o[n+1]<<24>>24,f=o[n+2]<<24>>24;let u=(l+16)/116,p=a/500+u,h=u-f/200,g,y,w;p=vr*(p*p*p>.008856?p*p*p:(p-16/116)/7.787),u=Sr*(u*u*u>.008856?u*u*u:(u-16/116)/7.787),h=Vr*(h*h*h>.008856?h*h*h:(h-16/116)/7.787),g=p*3.2406+u*-1.5372+h*-.4986,y=p*-.9689+u*1.8758+h*.0415,w=p*.0557+u*-.204+h*1.057,g=g>.0031308?1.055*Q(g,1/2.4)-.055:12.92*g,y=y>.0031308?1.055*Q(y,1/2.4)-.055:12.92*y,w=w>.0031308?1.055*Q(w,1/2.4)-.055:12.92*w,r[i]=Math.max(0,Math.min(1,g))*255,r[i+1]=Math.max(0,Math.min(1,y))*255,r[i+2]=Math.max(0,Math.min(1,w))*255}return r}const Wt=new Map;function le(o,e){Array.isArray(o)||(o=[o]),o.forEach(t=>Wt.set(t,e))}function Ar(o){return _(this,null,function*(){const e=Wt.get(o.Compression);if(!e)throw new Error(`Unknown compression method identifier: ${o.Compression}`);const t=yield e();return new t(o)})}le([void 0,1],()=>Promise.resolve().then(()=>require("./raw-B_Sr9gDq.cjs")).then(o=>o.default));le(5,()=>Promise.resolve().then(()=>require("./lzw-DA3XeqBg.cjs")).then(o=>o.default));le(6,()=>{throw new Error("old style JPEG compression is not supported.")});le(7,()=>Promise.resolve().then(()=>require("./jpeg-DLeEjPcb.cjs")).then(o=>o.default));le([8,32946],()=>Promise.resolve().then(()=>require("./deflate-De_6nNhk.cjs")).then(o=>o.default));le(32773,()=>Promise.resolve().then(()=>require("./packbits-fIig5HbM.cjs")).then(o=>o.default));le(34887,()=>Promise.resolve().then(()=>require("./lerc-Dxyjp3lu.cjs")).then(o=>_(null,null,function*(){return yield o.zstd.init(),o})).then(o=>o.default));le(50001,()=>Promise.resolve().then(()=>require("./webimage-DQl5wElJ.cjs")).then(o=>o.default));function ze(o,e,t,r=1){return new(Object.getPrototypeOf(o)).constructor(e*t*r)}function Cr(o,e,t,r,n){const i=e/r,l=t/n;return o.map(a=>{const f=ze(a,r,n);for(let u=0;u<n;++u){const p=Math.min(Math.round(l*u),t-1);for(let h=0;h<r;++h){const g=Math.min(Math.round(i*h),e-1),y=a[p*e+g];f[u*r+h]=y}}return f})}function we(o,e,t){return(1-t)*o+t*e}function Tr(o,e,t,r,n){const i=e/r,l=t/n;return o.map(a=>{const f=ze(a,r,n);for(let u=0;u<n;++u){const p=l*u,h=Math.floor(p),g=Math.min(Math.ceil(p),t-1);for(let y=0;y<r;++y){const w=i*y,V=w%1,v=Math.floor(w),C=Math.min(Math.ceil(w),e-1),M=a[h*e+v],D=a[h*e+C],E=a[g*e+v],R=a[g*e+C],m=we(we(M,D,V),we(E,R,V),p%1);f[u*r+y]=m}}return f})}function Fr(o,e,t,r,n,i="nearest"){switch(i.toLowerCase()){case"nearest":return Cr(o,e,t,r,n);case"bilinear":case"linear":return Tr(o,e,t,r,n);default:throw new Error(`Unsupported resampling method: '${i}'`)}}function Er(o,e,t,r,n,i){const l=e/r,a=t/n,f=ze(o,r,n,i);for(let u=0;u<n;++u){const p=Math.min(Math.round(a*u),t-1);for(let h=0;h<r;++h){const g=Math.min(Math.round(l*h),e-1);for(let y=0;y<i;++y){const w=o[p*e*i+g*i+y];f[u*r*i+h*i+y]=w}}}return f}function Dr(o,e,t,r,n,i){const l=e/r,a=t/n,f=ze(o,r,n,i);for(let u=0;u<n;++u){const p=a*u,h=Math.floor(p),g=Math.min(Math.ceil(p),t-1);for(let y=0;y<r;++y){const w=l*y,V=w%1,v=Math.floor(w),C=Math.min(Math.ceil(w),e-1);for(let M=0;M<i;++M){const D=o[h*e*i+v*i+M],E=o[h*e*i+C*i+M],R=o[g*e*i+v*i+M],m=o[g*e*i+C*i+M],k=we(we(D,E,V),we(R,m,V),p%1);f[u*r*i+y*i+M]=k}}}return f}function Lr(o,e,t,r,n,i,l="nearest"){switch(l.toLowerCase()){case"nearest":return Er(o,e,t,r,n,i);case"bilinear":case"linear":return Dr(o,e,t,r,n,i);default:throw new Error(`Unsupported resampling method: '${l}'`)}}function Ir(o,e,t){let r=0;for(let n=e;n<t;++n)r+=o[n];return r}function tt(o,e,t){switch(o){case 1:if(e<=8)return new Uint8Array(t);if(e<=16)return new Uint16Array(t);if(e<=32)return new Uint32Array(t);break;case 2:if(e===8)return new Int8Array(t);if(e===16)return new Int16Array(t);if(e===32)return new Int32Array(t);break;case 3:switch(e){case 16:case 32:return new Float32Array(t);case 64:return new Float64Array(t)}break}throw Error("Unsupported data format/bitsPerSample")}function Nr(o,e){return(o===1||o===2)&&e<=32&&e%8===0?!1:!(o===3&&(e===16||e===32||e===64))}function Pr(o,e,t,r,n,i,l){const a=new DataView(o),f=t===2?l*i:l*i*r,u=t===2?1:r,p=tt(e,n,f),h=parseInt("1".repeat(n),2);if(e===1){let g;t===1?g=r*n:g=n;let y=i*g;(y&7)!==0&&(y=y+7&-8);for(let w=0;w<l;++w){const V=w*y;for(let v=0;v<i;++v){const C=V+v*u*n;for(let M=0;M<u;++M){const D=C+M*n,E=(w*i+v)*u+M,R=Math.floor(D/8),m=D%8;if(m+n<=8)p[E]=a.getUint8(R)>>8-n-m&h;else if(m+n<=16)p[E]=a.getUint16(R)>>16-n-m&h;else if(m+n<=24){const k=a.getUint16(R)<<8|a.getUint8(R+2);p[E]=k>>24-n-m&h}else p[E]=a.getUint32(R)>>32-n-m&h}}}}return p.buffer}class Ur{constructor(e,t,r,n,i,l){this.fileDirectory=e,this.geoKeys=t,this.dataView=r,this.littleEndian=n,this.tiles=i?{}:null,this.isTiled=!e.StripOffsets;const a=e.PlanarConfiguration;if(this.planarConfiguration=typeof a=="undefined"?1:a,this.planarConfiguration!==1&&this.planarConfiguration!==2)throw new Error("Invalid planar configuration.");this.source=l}getFileDirectory(){return this.fileDirectory}getGeoKeys(){return this.geoKeys}getWidth(){return this.fileDirectory.ImageWidth}getHeight(){return this.fileDirectory.ImageLength}getSamplesPerPixel(){return typeof this.fileDirectory.SamplesPerPixel!="undefined"?this.fileDirectory.SamplesPerPixel:1}getTileWidth(){return this.isTiled?this.fileDirectory.TileWidth:this.getWidth()}getTileHeight(){return this.isTiled?this.fileDirectory.TileLength:typeof this.fileDirectory.RowsPerStrip!="undefined"?Math.min(this.fileDirectory.RowsPerStrip,this.getHeight()):this.getHeight()}getBlockWidth(){return this.getTileWidth()}getBlockHeight(e){return this.isTiled||(e+1)*this.getTileHeight()<=this.getHeight()?this.getTileHeight():this.getHeight()-e*this.getTileHeight()}getBytesPerPixel(){let e=0;for(let t=0;t<this.fileDirectory.BitsPerSample.length;++t)e+=this.getSampleByteSize(t);return e}getSampleByteSize(e){if(e>=this.fileDirectory.BitsPerSample.length)throw new RangeError(`Sample index ${e} is out of range.`);return Math.ceil(this.fileDirectory.BitsPerSample[e]/8)}getReaderForSample(e){const t=this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[e]:1,r=this.fileDirectory.BitsPerSample[e];switch(t){case 1:if(r<=8)return DataView.prototype.getUint8;if(r<=16)return DataView.prototype.getUint16;if(r<=32)return DataView.prototype.getUint32;break;case 2:if(r<=8)return DataView.prototype.getInt8;if(r<=16)return DataView.prototype.getInt16;if(r<=32)return DataView.prototype.getInt32;break;case 3:switch(r){case 16:return function(n,i){return Zt(this,n,i)};case 32:return DataView.prototype.getFloat32;case 64:return DataView.prototype.getFloat64}break}throw Error("Unsupported data format/bitsPerSample")}getSampleFormat(e=0){return this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[e]:1}getBitsPerSample(e=0){return this.fileDirectory.BitsPerSample[e]}getArrayForSample(e,t){const r=this.getSampleFormat(e),n=this.getBitsPerSample(e);return tt(r,n,t)}getTileOrStrip(e,t,r,n,i){return _(this,null,function*(){const l=Math.ceil(this.getWidth()/this.getTileWidth()),a=Math.ceil(this.getHeight()/this.getTileHeight());let f;const{tiles:u}=this;this.planarConfiguration===1?f=t*l+e:this.planarConfiguration===2&&(f=r*l*a+t*l+e);let p,h;this.isTiled?(p=this.fileDirectory.TileOffsets[f],h=this.fileDirectory.TileByteCounts[f]):(p=this.fileDirectory.StripOffsets[f],h=this.fileDirectory.StripByteCounts[f]);const g=(yield this.source.fetch([{offset:p,length:h}],i))[0];let y;return u===null||!u[f]?(y=_(this,null,function*(){let w=yield n.decode(this.fileDirectory,g);const V=this.getSampleFormat(),v=this.getBitsPerSample();return Nr(V,v)&&(w=Pr(w,V,this.planarConfiguration,this.getSamplesPerPixel(),v,this.getTileWidth(),this.getBlockHeight(t))),w}),u!==null&&(u[f]=y)):y=u[f],{x:e,y:t,sample:r,data:yield y}})}_readRaster(e,t,r,n,i,l,a,f,u){return _(this,null,function*(){const p=this.getTileWidth(),h=this.getTileHeight(),g=this.getWidth(),y=this.getHeight(),w=Math.max(Math.floor(e[0]/p),0),V=Math.min(Math.ceil(e[2]/p),Math.ceil(g/p)),v=Math.max(Math.floor(e[1]/h),0),C=Math.min(Math.ceil(e[3]/h),Math.ceil(y/h)),M=e[2]-e[0];let D=this.getBytesPerPixel();const E=[],R=[];for(let O=0;O<t.length;++O)this.planarConfiguration===1?E.push(Ir(this.fileDirectory.BitsPerSample,0,t[O])/8):E.push(0),R.push(this.getReaderForSample(t[O]));const m=[],{littleEndian:k}=this;for(let O=v;O<C;++O)for(let se=w;se<V;++se){let ae;this.planarConfiguration===1&&(ae=this.getTileOrStrip(se,O,0,i,u));for(let z=0;z<t.length;++z){const U=z,$=t[z];this.planarConfiguration===2&&(D=this.getSampleByteSize($),ae=this.getTileOrStrip(se,O,$,i,u));const oe=ae.then(ce=>{const Ye=ce.data,Ie=new DataView(Ye),ve=this.getBlockHeight(ce.y),ue=ce.y*h,he=ce.x*p,Se=ue+ve,Ke=(ce.x+1)*p,me=R[U],Ne=Math.min(ve,ve-(Se-e[3]),y-ue),$e=Math.min(p,p-(Ke-e[2]),g-he);for(let fe=Math.max(0,e[1]-ue);fe<Ne;++fe)for(let de=Math.max(0,e[0]-he);de<$e;++de){const Xe=(fe*p+de)*D,Ve=me.call(Ie,Xe+E[U],k);let ge;n?(ge=(fe+ue-e[1])*M*t.length+(de+he-e[0])*t.length+U,r[ge]=Ve):(ge=(fe+ue-e[1])*M+de+he-e[0],r[U][ge]=Ve)}});m.push(oe)}}if(yield Promise.all(m),l&&e[2]-e[0]!==l||a&&e[3]-e[1]!==a){let O;return n?O=Lr(r,e[2]-e[0],e[3]-e[1],l,a,t.length,f):O=Fr(r,e[2]-e[0],e[3]-e[1],l,a,f),O.width=l,O.height=a,O}return r.width=l||e[2]-e[0],r.height=a||e[3]-e[1],r})}readRasters(){return _(this,arguments,function*({window:e,samples:t=[],interleave:r,pool:n=null,width:i,height:l,resampleMethod:a,fillValue:f,signal:u}={}){const p=e||[0,0,this.getWidth(),this.getHeight()];if(p[0]>p[2]||p[1]>p[3])throw new Error("Invalid subsets");const h=p[2]-p[0],g=p[3]-p[1],y=h*g,w=this.getSamplesPerPixel();if(!t||!t.length)for(let M=0;M<w;++M)t.push(M);else for(let M=0;M<t.length;++M)if(t[M]>=w)return Promise.reject(new RangeError(`Invalid sample index '${t[M]}'.`));let V;if(r){const M=this.fileDirectory.SampleFormat?Math.max.apply(null,this.fileDirectory.SampleFormat):1,D=Math.max.apply(null,this.fileDirectory.BitsPerSample);V=tt(M,D,y*t.length),f&&V.fill(f)}else{V=[];for(let M=0;M<t.length;++M){const D=this.getArrayForSample(t[M],y);Array.isArray(f)&&M<f.length?D.fill(f[M]):f&&!Array.isArray(f)&&D.fill(f),V.push(D)}}const v=n||(yield Ar(this.fileDirectory));return yield this._readRaster(p,t,V,r,v,i,l,a,u)})}readRGB(){return _(this,arguments,function*({window:e,interleave:t=!0,pool:r=null,width:n,height:i,resampleMethod:l,enableAlpha:a=!1,signal:f}={}){const u=e||[0,0,this.getWidth(),this.getHeight()];if(u[0]>u[2]||u[1]>u[3])throw new Error("Invalid subsets");const p=this.fileDirectory.PhotometricInterpretation;if(p===H.RGB){let C=[0,1,2];if(this.fileDirectory.ExtraSamples!==dr.Unspecified&&a){C=[];for(let M=0;M<this.fileDirectory.BitsPerSample.length;M+=1)C.push(M)}return this.readRasters({window:e,interleave:t,samples:C,pool:r,width:n,height:i,resampleMethod:l,signal:f})}let h;switch(p){case H.WhiteIsZero:case H.BlackIsZero:case H.Palette:h=[0];break;case H.CMYK:h=[0,1,2,3];break;case H.YCbCr:case H.CIELab:h=[0,1,2];break;default:throw new Error("Invalid or unsupported photometric interpretation.")}const g={window:u,interleave:!0,samples:h,pool:r,width:n,height:i,resampleMethod:l,signal:f},{fileDirectory:y}=this,w=yield this.readRasters(g),V=Q(2,this.fileDirectory.BitsPerSample[0]);let v;switch(p){case H.WhiteIsZero:v=pr(w,V);break;case H.BlackIsZero:v=yr(w,V);break;case H.Palette:v=wr(w,y.ColorMap);break;case H.CMYK:v=xr(w);break;case H.YCbCr:v=br(w);break;case H.CIELab:v=Mr(w);break;default:throw new Error("Unsupported photometric interpretation.")}if(!t){const C=new Uint8Array(v.length/3),M=new Uint8Array(v.length/3),D=new Uint8Array(v.length/3);for(let E=0,R=0;E<v.length;E+=3,++R)C[R]=v[E],M[R]=v[E+1],D[R]=v[E+2];v=[C,M,D]}return v.width=w.width,v.height=w.height,v})}getTiePoints(){if(!this.fileDirectory.ModelTiepoint)return[];const e=[];for(let t=0;t<this.fileDirectory.ModelTiepoint.length;t+=6)e.push({i:this.fileDirectory.ModelTiepoint[t],j:this.fileDirectory.ModelTiepoint[t+1],k:this.fileDirectory.ModelTiepoint[t+2],x:this.fileDirectory.ModelTiepoint[t+3],y:this.fileDirectory.ModelTiepoint[t+4],z:this.fileDirectory.ModelTiepoint[t+5]});return e}getGDALMetadata(e=null){const t={};if(!this.fileDirectory.GDAL_METADATA)return null;const r=this.fileDirectory.GDAL_METADATA;let n=ur(r,"Item");e===null?n=n.filter(i=>Qe(i,"sample")===void 0):n=n.filter(i=>Number(Qe(i,"sample"))===e);for(let i=0;i<n.length;++i){const l=n[i];t[Qe(l,"name")]=l.inner}return t}getGDALNoData(){if(!this.fileDirectory.GDAL_NODATA)return null;const e=this.fileDirectory.GDAL_NODATA;return Number(e.substring(0,e.length-1))}getOrigin(){const e=this.fileDirectory.ModelTiepoint,t=this.fileDirectory.ModelTransformation;if(e&&e.length===6)return[e[3],e[4],e[5]];if(t)return[t[3],t[7],t[11]];throw new Error("The image does not have an affine transformation.")}getResolution(e=null){const t=this.fileDirectory.ModelPixelScale,r=this.fileDirectory.ModelTransformation;if(t)return[t[0],-t[1],t[2]];if(r)return r[1]===0&&r[4]===0?[r[0],-r[5],r[10]]:[Math.sqrt(r[0]*r[0]+r[4]*r[4]),-Math.sqrt(r[1]*r[1]+r[5]*r[5]),r[10]];if(e){const[n,i,l]=e.getResolution();return[n*e.getWidth()/this.getWidth(),i*e.getHeight()/this.getHeight(),l*e.getWidth()/this.getWidth()]}throw new Error("The image does not have an affine transformation.")}pixelIsArea(){return this.geoKeys.GTRasterTypeGeoKey===1}getBoundingBox(e=!1){const t=this.getHeight(),r=this.getWidth();if(this.fileDirectory.ModelTransformation&&!e){const[n,i,l,a,f,u,p,h]=this.fileDirectory.ModelTransformation,y=[[0,0],[0,t],[r,0],[r,t]].map(([v,C])=>[a+n*v+i*C,h+f*v+u*C]),w=y.map(v=>v[0]),V=y.map(v=>v[1]);return[Math.min(...w),Math.min(...V),Math.max(...w),Math.max(...V)]}else{const n=this.getOrigin(),i=this.getResolution(),l=n[0],a=n[1],f=l+i[0]*r,u=a+i[1]*t;return[Math.min(l,f),Math.min(a,u),Math.max(l,f),Math.max(a,u)]}}}class Rr{constructor(e){this._dataView=new DataView(e)}get buffer(){return this._dataView.buffer}getUint64(e,t){const r=this.getUint32(e,t),n=this.getUint32(e+4,t);let i;if(t){if(i=r+Q(2,32)*n,!Number.isSafeInteger(i))throw new Error(`${i} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return i}if(i=Q(2,32)*r+n,!Number.isSafeInteger(i))throw new Error(`${i} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return i}getInt64(e,t){let r=0;const n=(this._dataView.getUint8(e+(t?7:0))&128)>0;let i=!0;for(let l=0;l<8;l++){let a=this._dataView.getUint8(e+(t?l:7-l));n&&(i?a!==0&&(a=~(a-1)&255,i=!1):a=~a&255),r+=a*Q(256,l)}return n&&(r=-r),r}getUint8(e,t){return this._dataView.getUint8(e,t)}getInt8(e,t){return this._dataView.getInt8(e,t)}getUint16(e,t){return this._dataView.getUint16(e,t)}getInt16(e,t){return this._dataView.getInt16(e,t)}getUint32(e,t){return this._dataView.getUint32(e,t)}getInt32(e,t){return this._dataView.getInt32(e,t)}getFloat16(e,t){return Zt(this._dataView,e,t)}getFloat32(e,t){return this._dataView.getFloat32(e,t)}getFloat64(e,t){return this._dataView.getFloat64(e,t)}}class kr{constructor(e,t,r,n){this._dataView=new DataView(e),this._sliceOffset=t,this._littleEndian=r,this._bigTiff=n}get sliceOffset(){return this._sliceOffset}get sliceTop(){return this._sliceOffset+this.buffer.byteLength}get littleEndian(){return this._littleEndian}get bigTiff(){return this._bigTiff}get buffer(){return this._dataView.buffer}covers(e,t){return this.sliceOffset<=e&&this.sliceTop>=e+t}readUint8(e){return this._dataView.getUint8(e-this._sliceOffset,this._littleEndian)}readInt8(e){return this._dataView.getInt8(e-this._sliceOffset,this._littleEndian)}readUint16(e){return this._dataView.getUint16(e-this._sliceOffset,this._littleEndian)}readInt16(e){return this._dataView.getInt16(e-this._sliceOffset,this._littleEndian)}readUint32(e){return this._dataView.getUint32(e-this._sliceOffset,this._littleEndian)}readInt32(e){return this._dataView.getInt32(e-this._sliceOffset,this._littleEndian)}readFloat32(e){return this._dataView.getFloat32(e-this._sliceOffset,this._littleEndian)}readFloat64(e){return this._dataView.getFloat64(e-this._sliceOffset,this._littleEndian)}readUint64(e){const t=this.readUint32(e),r=this.readUint32(e+4);let n;if(this._littleEndian){if(n=t+Q(2,32)*r,!Number.isSafeInteger(n))throw new Error(`${n} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return n}if(n=Q(2,32)*t+r,!Number.isSafeInteger(n))throw new Error(`${n} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return n}readInt64(e){let t=0;const r=(this._dataView.getUint8(e+(this._littleEndian?7:0))&128)>0;let n=!0;for(let i=0;i<8;i++){let l=this._dataView.getUint8(e+(this._littleEndian?i:7-i));r&&(n?l!==0&&(l=~(l-1)&255,n=!1):l=~l&255),t+=l*Q(256,i)}return r&&(t=-t),t}readOffset(e){return this._bigTiff?this.readUint64(e):this.readUint32(e)}}class _r{fetch(e,t=void 0){return _(this,null,function*(){return Promise.all(e.map(r=>this.fetchSlice(r,t)))})}fetchSlice(e){return _(this,null,function*(){throw new Error(`fetching of slice ${e} not possible, not implemented`)})}get fileSize(){return null}close(){return _(this,null,function*(){})}}class ct extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,ct),this.name="AbortError"}}class Br extends _r{constructor(e){super(),this.arrayBuffer=e}fetchSlice(e,t){if(t&&t.aborted)throw new ct("Request aborted");return this.arrayBuffer.slice(e.offset,e.offset+e.length)}}function Or(o){return new Br(o)}function nt(o){switch(o){case I.BYTE:case I.ASCII:case I.SBYTE:case I.UNDEFINED:return 1;case I.SHORT:case I.SSHORT:return 2;case I.LONG:case I.SLONG:case I.FLOAT:case I.IFD:return 4;case I.RATIONAL:case I.SRATIONAL:case I.DOUBLE:case I.LONG8:case I.SLONG8:case I.IFD8:return 8;default:throw new RangeError(`Invalid field type: ${o}`)}}function Gr(o){const e=o.GeoKeyDirectory;if(!e)return null;const t={};for(let r=4;r<=e[3]*4;r+=4){const n=gr[e[r]],i=e[r+1]?Ee[e[r+1]]:null,l=e[r+2],a=e[r+3];let f=null;if(!i)f=a;else{if(f=o[i],typeof f=="undefined"||f===null)throw new Error(`Could not get value of geoKey '${n}'.`);typeof f=="string"?f=f.substring(a,a+l-1):f.subarray&&(f=f.subarray(a,a+l),l===1&&(f=f[0]))}t[n]=f}return t}function ye(o,e,t,r){let n=null,i=null;const l=nt(e);switch(e){case I.BYTE:case I.ASCII:case I.UNDEFINED:n=new Uint8Array(t),i=o.readUint8;break;case I.SBYTE:n=new Int8Array(t),i=o.readInt8;break;case I.SHORT:n=new Uint16Array(t),i=o.readUint16;break;case I.SSHORT:n=new Int16Array(t),i=o.readInt16;break;case I.LONG:case I.IFD:n=new Uint32Array(t),i=o.readUint32;break;case I.SLONG:n=new Int32Array(t),i=o.readInt32;break;case I.LONG8:case I.IFD8:n=new Array(t),i=o.readUint64;break;case I.SLONG8:n=new Array(t),i=o.readInt64;break;case I.RATIONAL:n=new Uint32Array(t*2),i=o.readUint32;break;case I.SRATIONAL:n=new Int32Array(t*2),i=o.readInt32;break;case I.FLOAT:n=new Float32Array(t),i=o.readFloat32;break;case I.DOUBLE:n=new Float64Array(t),i=o.readFloat64;break;default:throw new RangeError(`Invalid field type: ${e}`)}if(e===I.RATIONAL||e===I.SRATIONAL)for(let a=0;a<t;a+=2)n[a]=i.call(o,r+a*l),n[a+1]=i.call(o,r+(a*l+4));else for(let a=0;a<t;++a)n[a]=i.call(o,r+a*l);return e===I.ASCII?new TextDecoder("utf-8").decode(n):n}class jr{constructor(e,t,r){this.fileDirectory=e,this.geoKeyDirectory=t,this.nextIFDByteOffset=r}}class je extends Error{constructor(e){super(`No image at index ${e}`),this.index=e}}class zr{readRasters(){return _(this,arguments,function*(e={}){const{window:t,width:r,height:n}=e;let{resX:i,resY:l,bbox:a}=e;const f=yield this.getImage();let u=f;const p=yield this.getImageCount(),h=f.getBoundingBox();if(t&&a)throw new Error('Both "bbox" and "window" passed.');if(r||n){if(t){const[w,V]=f.getOrigin(),[v,C]=f.getResolution();a=[w+t[0]*v,V+t[1]*C,w+t[2]*v,V+t[3]*C]}const y=a||h;if(r){if(i)throw new Error("Both width and resX passed");i=(y[2]-y[0])/r}if(n){if(l)throw new Error("Both width and resY passed");l=(y[3]-y[1])/n}}if(i||l){const y=[];for(let w=0;w<p;++w){const V=yield this.getImage(w),{SubfileType:v,NewSubfileType:C}=V.fileDirectory;(w===0||v===2||C&1)&&y.push(V)}y.sort((w,V)=>w.getWidth()-V.getWidth());for(let w=0;w<y.length;++w){const V=y[w],v=(h[2]-h[0])/V.getWidth(),C=(h[3]-h[1])/V.getHeight();if(u=V,i&&i>v||l&&l>C)break}}let g=t;if(a){const[y,w]=f.getOrigin(),[V,v]=u.getResolution(f);g=[Math.round((a[0]-y)/V),Math.round((a[1]-w)/v),Math.round((a[2]-y)/V),Math.round((a[3]-w)/v)],g=[Math.min(g[0],g[2]),Math.min(g[1],g[3]),Math.max(g[0],g[2]),Math.max(g[1],g[3])]}return u.readRasters(We(Ze({},e),{window:g}))})}}class ut extends zr{constructor(e,t,r,n,i={}){super(),this.source=e,this.littleEndian=t,this.bigTiff=r,this.firstIFDOffset=n,this.cache=i.cache||!1,this.ifdRequests=[],this.ghostValues=null}getSlice(e,t){return _(this,null,function*(){const r=this.bigTiff?4048:1024;return new kr((yield this.source.fetch([{offset:e,length:typeof t!="undefined"?t:r}]))[0],e,this.littleEndian,this.bigTiff)})}parseFileDirectoryAt(e){return _(this,null,function*(){const t=this.bigTiff?20:12,r=this.bigTiff?8:2;let n=yield this.getSlice(e);const i=this.bigTiff?n.readUint64(e):n.readUint16(e),l=i*t+(this.bigTiff?16:6);n.covers(e,l)||(n=yield this.getSlice(e,l));const a={};let f=e+(this.bigTiff?8:2);for(let h=0;h<i;f+=t,++h){const g=n.readUint16(f),y=n.readUint16(f+2),w=this.bigTiff?n.readUint64(f+4):n.readUint32(f+4);let V,v;const C=nt(y),M=f+(this.bigTiff?12:8);if(C*w<=(this.bigTiff?8:4))V=ye(n,y,w,M);else{const D=n.readOffset(M),E=nt(y)*w;if(n.covers(D,E))V=ye(n,y,w,D);else{const R=yield this.getSlice(D,E);V=ye(R,y,w,D)}}w===1&&fr.indexOf(g)===-1&&!(y===I.RATIONAL||y===I.SRATIONAL)?v=V[0]:v=V,a[Ee[g]]=v}const u=Gr(a),p=n.readOffset(e+r+t*i);return new jr(a,u,p)})}requestIFD(e){return _(this,null,function*(){if(this.ifdRequests[e])return this.ifdRequests[e];if(e===0)return this.ifdRequests[e]=this.parseFileDirectoryAt(this.firstIFDOffset),this.ifdRequests[e];if(!this.ifdRequests[e-1])try{this.ifdRequests[e-1]=this.requestIFD(e-1)}catch(t){throw t instanceof je?new je(e):t}return this.ifdRequests[e]=_(this,null,function*(){const t=yield this.ifdRequests[e-1];if(t.nextIFDByteOffset===0)throw new je(e);return this.parseFileDirectoryAt(t.nextIFDByteOffset)}),this.ifdRequests[e]})}getImage(e=0){return _(this,null,function*(){const t=yield this.requestIFD(e);return new Ur(t.fileDirectory,t.geoKeyDirectory,this.dataView,this.littleEndian,this.cache,this.source)})}getImageCount(){return _(this,null,function*(){let e=0,t=!0;for(;t;)try{yield this.requestIFD(e),++e}catch(r){if(r instanceof je)t=!1;else throw r}return e})}getGhostValues(){return _(this,null,function*(){const e=this.bigTiff?16:8;if(this.ghostValues)return this.ghostValues;const t="GDAL_STRUCTURAL_METADATA_SIZE=",r=t.length+100;let n=yield this.getSlice(e,r);if(t===ye(n,I.ASCII,t.length,e)){const l=ye(n,I.ASCII,r,e).split(`
8
8
  `)[0],a=Number(l.split("=")[1].split(" ")[0])+l.length;a>r&&(n=yield this.getSlice(e,a));const f=ye(n,I.ASCII,a,e);this.ghostValues={},f.split(`
9
9
  `).filter(u=>u.length>0).map(u=>u.split("=")).forEach(([u,p])=>{this.ghostValues[u]=p})}return this.ghostValues})}static fromSource(e,t,r){return _(this,null,function*(){const n=(yield e.fetch([{offset:0,length:1024}],r))[0],i=new Rr(n),l=i.getUint16(0,0);let a;if(l===18761)a=!0;else if(l===19789)a=!1;else throw new TypeError("Invalid byte order value.");const f=i.getUint16(2,a);let u;if(f===42)u=!1;else if(f===43){if(u=!0,i.getUint16(4,a)!==8)throw new Error("Unsupported offset byte-size.")}else throw new TypeError("Invalid magic number.");const p=u?i.getUint64(8,a):i.getUint32(4,a);return new ut(e,a,u,p,t)})}close(){return typeof this.source.close=="function"?this.source.close():!1}}function Yr(o,e){return _(this,null,function*(){return ut.fromSource(Or(o),e)})}class Kr{constructor(e){this.scene=null,this.camera=null,this.renderer=null,this.controls=null,this.animationId=null,this.container=null,this.resizeHandler=null,this.dblClickHandler=null,this.animate=()=>{this.animationId=requestAnimationFrame(this.animate),this.controls&&this.controls.update(),this.renderer&&this.scene&&this.camera&&this.renderer.render(this.scene,this.camera)},this.container=e,this.init()}init(){if(!this.container)return;this.dispose();const e=this.container.clientWidth,t=this.container.clientHeight;this.scene=new T.Scene,this.scene.background=new T.Color(16777215),this.camera=new T.PerspectiveCamera(75,e/t,.1,1e4),this.camera.position.z=5,this.renderer=new T.WebGLRenderer({antialias:!0,alpha:!0}),this.renderer.setSize(e,t),this.renderer.setPixelRatio(window.devicePixelRatio),this.container.appendChild(this.renderer.domElement),this.controls=new An.OrbitControls(this.camera,this.renderer.domElement),this.controls.enableDamping=!0,this.controls.dampingFactor=.08,this.controls.screenSpacePanning=!0,this.controls.enablePan=!0,this.controls.minDistance=1,this.controls.maxDistance=5e3,this.controls.target.set(0,0,0),this.controls.update(),this.dblClickHandler=i=>{this.container&&this.container.contains(i.target)&&this.resetView()},this.container.addEventListener("dblclick",this.dblClickHandler);const r=new T.AmbientLight(16777215,.6);this.scene.add(r);const n=new T.DirectionalLight(16777215,.8);n.position.set(5,10,5),this.scene.add(n),this.resizeHandler=()=>this.onWindowResize(),window.addEventListener("resize",this.resizeHandler),this.animate()}onWindowResize(){if(!this.container||!this.camera||!this.renderer)return;const e=this.container.clientWidth,t=this.container.clientHeight;this.camera.aspect=e/t,this.camera.updateProjectionMatrix(),this.renderer.setSize(e,t)}resetView(){!this.camera||!this.controls||(this.camera.position.set(0,0,5),this.controls.target.set(0,0,0),this.camera.lookAt(0,0,0),this.controls.update())}fitCameraToObject(e){if(!this.camera||!this.controls)return;const t=new T.Box3().setFromObject(e),r=t.getSize(new T.Vector3),n=t.getCenter(new T.Vector3),i=Math.max(r.x,r.y,r.z)||1,l=this.camera.fov*(Math.PI/180),a=i/2/Math.tan(l/2)*1.6;this.camera.position.set(n.x,n.y,n.z+a),this.camera.near=Math.max(.1,a/1e3),this.camera.far=Math.max(1e4,a*10),this.camera.updateProjectionMatrix(),this.controls.target.copy(n),this.controls.update()}loadGeologyModel(e){return _(this,null,function*(){if(!this.scene||!e)return;e.toLowerCase().endsWith(".glb")||e.toLowerCase().endsWith(".gltf")?new Mn.GLTFLoader().load(e,n=>{this.scene.add(n.scene);const l=new T.Box3().setFromObject(n.scene).getSize(new T.Vector3),f=4/(Math.max(l.x,l.y,l.z)||1);n.scene.scale.multiplyScalar(f),this.fitCameraToObject(n.scene)},void 0,n=>{console.error("Failed to load GLTF model:",n)}):new In().load(e,n=>{this.scene.add(n);const l=new T.Box3().setFromObject(n).getSize(new T.Vector3),f=4/(Math.max(l.x,l.y,l.z)||1);n.scale.multiplyScalar(f),this.fitCameraToObject(n)},void 0,n=>{console.error("Failed to load OBJ model:",n)})})}loadDTMTerrain(e){return _(this,null,function*(){if(!(!this.scene||!e))try{const r=yield(yield fetch(e)).arrayBuffer(),i=yield(yield Yr(r)).getImage(),l=yield i.readRasters(),a=i.getWidth(),f=i.getHeight(),u=l[0],p=Math.max(1,Math.floor(Math.max(a,f)/100)),h=new T.BufferGeometry,g=[],y=[];let w=0;for(let C=0;C<u.length;C+=p)w=Math.max(w,u[C]);for(let C=0;C<f;C+=p)for(let M=0;M<a;M+=p){const D=C*a+M,E=(u[D]||0)/w*3-1.5;g.push(M/a*4-2,E,C/f*4-2);const R=u[D]/w,m=new T.Color().setHSL(.6-R*.6,1,.5);y.push(m.r,m.g,m.b)}h.setAttribute("position",new T.BufferAttribute(new Float32Array(g),3)),h.setAttribute("color",new T.BufferAttribute(new Float32Array(y),3)),h.computeVertexNormals();const V=new T.MeshPhongMaterial({vertexColors:!0,side:T.DoubleSide}),v=new T.Mesh(h,V);this.scene.add(v),this.fitCameraToObject(v)}catch(t){console.error("Failed to load DTM TIFF:",t)}})}loadUAVImage(e){return _(this,null,function*(){if(!this.scene||!e)return;new T.TextureLoader().load(e,r=>{const n=r.image.width/r.image.height,i=new T.PlaneGeometry(4*n,4),l=new T.MeshBasicMaterial({map:r}),a=new T.Mesh(i,l);this.scene.add(a),this.fitCameraToObject(a)},void 0,r=>{console.error("Failed to load UAV image:",r)})})}clearScene(){if(!this.scene)return;for(;this.scene.children.length>0;){const r=this.scene.children[0];r instanceof T.Mesh&&(r.geometry.dispose(),Array.isArray(r.material)?r.material.forEach(n=>n.dispose()):r.material.dispose()),this.scene.remove(r)}const e=new T.AmbientLight(16777215,.6);this.scene.add(e);const t=new T.DirectionalLight(16777215,.8);t.position.set(5,10,5),this.scene.add(t)}dispose(){this.animationId&&cancelAnimationFrame(this.animationId),this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.container&&this.dblClickHandler&&(this.container.removeEventListener("dblclick",this.dblClickHandler),this.dblClickHandler=null),this.controls&&(this.controls.dispose(),this.controls=null),this.renderer&&this.container&&this.renderer.domElement.parentNode===this.container&&this.container.removeChild(this.renderer.domElement),this.renderer&&this.renderer.dispose(),this.scene=null,this.camera=null,this.renderer=null,this.animationId=null}}const $r={class:"filter-tabs"},Xr={class:"toolbar-right"},qr={key:0,class:"pick-hint-bar"},Hr={class:"map-model-overlay"},Zr={key:0,class:"map-mode-edit-tip"},Wr=["viewBox"],Jr=["d","stroke"],Qr=["x1","y1","x2","y2"],ei=["onClick","onMouseenter"],ti={class:"point-bubble"},ni={class:"point-id"},ri=["innerHTML"],ii={class:"drawer-cards"},oi=["onClick"],si={class:"card-icon"},ai={class:"card-label"},li={class:"profile-dialog-header"},ci={class:"profile-header-btns"},ui={DEFAULT_ICON:Tt.DEFAULT_ICON,ACTIVE_ICON:Tt.ACTIVE_ICON,NAME_CN:"GNSS地图监测视图",NAME_EN:"GNSS Map Monitor View",ORDER:10,PLATFORM:["pc","screen"]},fi={bgColor:{value:"#0b1a31",type:"color",label:"setting.bgColor"},toolbarBg:{value:"#ffffff",type:"color",label:"工具栏背景色"},toolbarFontSize:{value:12,type:"number",label:"工具栏字体大小",min:10,max:20},geologyMapUrl:{value:"",type:"string",label:"地质模型地图URL"},dtmMapUrl:{value:"",type:"string",label:"DTM面地图URL"},uavMapUrl:{value:"",type:"string",label:"无人机地图URL"},satelliteMapUrl:{value:"https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",type:"string",label:"Esri卫星影像URL"},mapCenterLon:{value:119.40331,type:"number",label:"地图中心经度",min:-180,max:180},mapCenterLat:{value:45.369465,type:"number",label:"地图中心纬度",min:-90,max:90},mapZoomLevel:{value:10,type:"number",label:"地图缩放级别",min:1,max:18},mapElevation:{value:1e3,type:"number",label:"参考高程(m)"},pointCount:{value:80,type:"number",label:"模拟监测点数量",min:20,max:200},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},di=[{name:"GNSS001",object_id:"",fvDeviceName:"",deviceType:"GNSS",x:1e3,y:400,elevation:"",region:"北帮",lineName:"北帮线",row1Label:"累计位移",row1FV:"",row1Unit:"mm",row2Label:"当前速度",row2FV:"",row2Unit:"mm/h",row3Label:"X/Y/H变化",row3FV:"",row3Unit:"mm",row4Label:"",row4FV:"",row4Unit:"",row5Label:"",row5FV:"",row5Unit:"",arrowXFV:"",arrowYFV:""},{name:"GNSS002",object_id:"",fvDeviceName:"",deviceType:"GNSS",x:1300,y:400,elevation:"",region:"北帮",lineName:"北帮线",row1Label:"累计位移",row1FV:"",row1Unit:"mm",row2Label:"当前速度",row2FV:"",row2Unit:"mm/h",row3Label:"X/Y/H变化",row3FV:"",row3Unit:"mm",row4Label:"",row4FV:"",row4Unit:"",row5Label:"",row5FV:"",row5Unit:"",arrowXFV:"",arrowYFV:""},{name:"GNSS003",object_id:"",fvDeviceName:"",deviceType:"GNSS",x:1600,y:400,elevation:"",region:"北帮",lineName:"北帮线",row1Label:"累计位移",row1FV:"",row1Unit:"mm",row2Label:"当前速度",row2FV:"",row2Unit:"mm/h",row3Label:"X/Y/H变化",row3FV:"",row3Unit:"mm",row4Label:"",row4FV:"",row4Unit:"",row5Label:"",row5FV:"",row5Unit:"",arrowXFV:"",arrowYFV:""},{name:"DEEP001",object_id:"",fvDeviceName:"",deviceType:"深部位移",x:500,y:1200,elevation:"",region:"西帮",lineName:"",row1Label:"深层位移",row1FV:"",row1Unit:"mm",row2Label:"测斜深度",row2FV:"",row2Unit:"m",row3Label:"",row3FV:"",row3Unit:"",row4Label:"",row4FV:"",row4Unit:"",row5Label:"",row5FV:"",row5Unit:"",arrowXFV:"",arrowYFV:""},{name:"RADAR001",object_id:"",fvDeviceName:"",deviceType:"雷达",x:2500,y:1e3,elevation:"",region:"东帮",lineName:"",row1Label:"形变量",row1FV:"",row1Unit:"mm",row2Label:"形变速度",row2FV:"",row2Unit:"mm/d",row3Label:"",row3FV:"",row3Unit:"",row4Label:"",row4FV:"",row4Unit:"",row5Label:"",row5FV:"",row5Unit:"",arrowXFV:"",arrowYFV:""},{name:"CRACK001",object_id:"",fvDeviceName:"",deviceType:"裂缝",x:1500,y:1250,elevation:"",region:"中央区",lineName:"",row1Label:"裂缝宽度",row1FV:"",row1Unit:"mm",row2Label:"开裂速度",row2FV:"",row2Unit:"mm/d",row3Label:"",row3FV:"",row3Unit:"",row4Label:"",row4FV:"",row4Unit:"",row5Label:"",row5FV:"",row5Unit:"",arrowXFV:"",arrowYFV:""},{name:"FIRE001",object_id:"",fvDeviceName:"",deviceType:"煤自燃",x:1200,y:2100,elevation:"",region:"南帮",lineName:"",row1Label:"温度",row1FV:"",row1Unit:"℃",row2Label:"CO浓度",row2FV:"",row2Unit:"ppm",row3Label:"",row3FV:"",row3Unit:"",row4Label:"",row4FV:"",row4Unit:"",row5Label:"",row5FV:"",row5Unit:"",arrowXFV:"",arrowYFV:""},{name:"WATER001",object_id:"",fvDeviceName:"",deviceType:"降雨",x:1800,y:2100,elevation:"",region:"南帮",lineName:"",row1Label:"降雨量",row1FV:"",row1Unit:"mm",row2Label:"雨强",row2FV:"",row2Unit:"mm/h",row3Label:"",row3FV:"",row3Unit:"",row4Label:"",row4FV:"",row4Unit:"",row5Label:"",row5FV:"",row5Unit:"",arrowXFV:"",arrowYFV:""}],hi=["object_id","name","fvDeviceName","deviceType","x","y","elevation","region","lineName","row1Label","row1FV","row1Unit","row2Label","row2FV","row2Unit","row3Label","row3FV","row3Unit","row4Label","row4FV","row4Unit","row5Label","row5FV","row5Unit","arrowXFV","arrowYFV"],mi=["mosaic"],gi={useAlias:!1,multiObject:!0,source:"mosaic"},pi=200,yi={DEFAULT:ui,OPTIONS:fi,DATA:di,PARAMS:hi,SOURCE:mi,COMMON:gi,ITEMS:pi},wi=s.defineComponent(We(Ze({},yi),{__name:"gnssMapView",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(o){const e=o,t=3e3,r=2500,n={GNSS:"GNSS",gnss:"GNSS",DEEP:"DEEP",deep:"DEEP",深部位移:"DEEP",RADAR:"RADAR",radar:"RADAR",雷达:"RADAR",SURFACE:"SURFACE",surface:"SURFACE",地表:"SURFACE",CRACK:"CRACK",crack:"CRACK",裂缝:"CRACK",FIRE:"FIRE",fire:"FIRE",煤自燃:"FIRE",WATER:"WATER",water:"WATER",降雨:"WATER",GROUND:"GROUND",ground:"GROUND",地下水:"GROUND",STRESS:"STRESS",stress:"STRESS",应力:"STRESS",VIB:"VIB",vib:"VIB",爆破震动:"VIB",SAT:"SAT",sat:"SAT",遥感卫星:"SAT"},i={GNSS:"📍",DEEP:"⚓",RADAR:"📡",SURFACE:"📐",CRACK:"🧱",FIRE:"🔥",WATER:"💧",GROUND:"🌍",STRESS:"📊",VIB:"💥",SAT:"🛸"},l=[{key:"GNSS",label:"GNSS监测",icon:"📍"},{key:"DEEP",label:"深部位移监测",icon:"⚓"},{key:"RADAR",label:"雷达监测",icon:"📡"},{key:"SURFACE",label:"地质写实",icon:"📐"},{key:"CRACK",label:"裂缝监测",icon:"🧱"},{key:"FIRE",label:"煤自燃监测",icon:"🔥"},{key:"WATER",label:"降雨监测",icon:"💧"},{key:"GROUND",label:"地下水监测",icon:"🌍"},{key:"STRESS",label:"应力监测",icon:"📊"},{key:"VIB",label:"振动监测",icon:"💥"},{key:"SAT",label:"遥感监测",icon:"🛸"}],a=["#F57676","#FFA500","#fadb14","#66B1FF","#71C446"],f=[{name:"北帮",xRange:[800,2200],yRange:[200,600]},{name:"南帮",xRange:[800,2200],yRange:[1900,2300]},{name:"西帮",xRange:[200,700],yRange:[800,1700]},{name:"东帮",xRange:[2300,2800],yRange:[800,1700]},{name:"中央区",xRange:[1100,1900],yRange:[1e3,1500]}],u=["#F57676","#FFA500","#66B1FF","#71C446","#9254de","#13c2c2"];class p extends Vn.BaseComponent{extractStyles(){var A,L,b,F,P,G,N,B,Z,Y,K,q,ee,J,pe,Me,Ae,Ce,Te;const c=(A=this.props.conf)==null?void 0:A.options,x=((L=c==null?void 0:c.linkChannel)==null?void 0:L.value)||"gnss",S=((b=c==null?void 0:c.customChannel)==null?void 0:b.value)||"";return{bgColor:((F=c==null?void 0:c.bgColor)==null?void 0:F.value)||"#0b1a31",toolbarBg:((P=c==null?void 0:c.toolbarBg)==null?void 0:P.value)||"#ffffff",toolbarFontSize:((G=c==null?void 0:c.toolbarFontSize)==null?void 0:G.value)||12,geologyMapUrl:((N=c==null?void 0:c.geologyMapUrl)==null?void 0:N.value)||"",dtmMapUrl:((B=c==null?void 0:c.dtmMapUrl)==null?void 0:B.value)||"",uavMapUrl:((Z=c==null?void 0:c.uavMapUrl)==null?void 0:Z.value)||"",satelliteMapUrl:((Y=c==null?void 0:c.satelliteMapUrl)==null?void 0:Y.value)||"https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",mapCenterLon:(q=(K=c==null?void 0:c.mapCenterLon)==null?void 0:K.value)!=null?q:119.40331,mapCenterLat:(J=(ee=c==null?void 0:c.mapCenterLat)==null?void 0:ee.value)!=null?J:45.369465,mapZoomLevel:(Me=(pe=c==null?void 0:c.mapZoomLevel)==null?void 0:pe.value)!=null?Me:10,mapElevation:(Ce=(Ae=c==null?void 0:c.mapElevation)==null?void 0:Ae.value)!=null?Ce:1e3,pointCount:((Te=c==null?void 0:c.pointCount)==null?void 0:Te.value)||80,linkChannel:x==="custom"&&S?S:x}}onLinkEvent(c){ln(c)}setSocketData(c){if(!(c!=null&&c.data))return;const x=c.object_id||"";if(!x)return;const S=E.value.find(F=>F.objectId===x);if(!S)return;const A=c.data,L=F=>{const P=parseFloat(F);return isNaN(P)?String(F):P.toFixed(2)};let b=!1;if(S.fvXCoord&&A[S.fvXCoord]!=null){const F=parseFloat(A[S.fvXCoord]);isNaN(F)||(S.x=F,b=!0)}if(S.fvYCoord&&A[S.fvYCoord]!=null){const F=parseFloat(A[S.fvYCoord]);isNaN(F)||(S.y=F,b=!0)}if(b&&qe(E.value),S.fvDeviceName&&A[S.fvDeviceName]!=null&&(S.liveValues.deviceName=String(A[S.fvDeviceName])),S.fvElevation&&A[S.fvElevation]!=null&&(S.liveValues.elevation=L(A[S.fvElevation])),S.rows.forEach((F,P)=>{if(!F.fv)return;const N=F.fv.split("|").map(B=>B.trim()).map(B=>A[B]!=null?L(A[B]):null).filter(Boolean);N.length&&(S.liveValues[`row_${P}`]=N.join("/"))}),S.arrowXFV&&A[S.arrowXFV]!=null&&(S.liveValues.arrowX=L(A[S.arrowXFV])),S.arrowYFV&&A[S.arrowYFV]!=null&&(S.liveValues.arrowY=L(A[S.arrowYFV])),S.arrowXFV||S.arrowYFV){const F=parseFloat(S.liveValues.arrowX||"0")||0,P=parseFloat(S.liveValues.arrowY||"0")||0;(F!==0||P!==0)&&(S.liveValues.arrowAngle=String(Math.round(Math.atan2(P,F)*180/Math.PI*10)/10))}}}const h=new p(e,"gnssMapView");h.setupLifecycle();const g=h.getStyle(),y=s.ref(null),w=s.ref(null),V=s.ref(null),v=s.ref(null),C=s.ref(!1),M=s.reactive(new Set(l.map(d=>d.key)));let D=null;const E=s.ref([]),R=s.ref([]),m=s.reactive({scale:.4,posX:0,posY:0,displayMode:"geology",selectedRegion:"全部",selectedLine:"全部",selectedPoints:["__ALL__"]});let k=null,O=null;const se=s.ref(!1),ae=s.reactive({x:0,y:0}),z=s.reactive({visible:!1,x:0,y:0,content:""}),U=s.reactive({picking:!1,pickedPoints:[],dialogVisible:!1});let $=null;const oe=s.ref(""),ce={onWheel:d=>{d.preventDefault(),en(d)},onMousedown:d=>tn(d),onMousemove:d=>nn(d),onMouseup:()=>ft(),onMouseleave:()=>ft()},Ye=s.computed(()=>({backgroundColor:g.value.bgColor})),Ie=s.computed(()=>({geology:g.value.geologyMapUrl,dtm:g.value.dtmMapUrl,uav:g.value.uavMapUrl,leaflet:g.value.satelliteMapUrl})[m.displayMode]||""),ve=s.computed(()=>({transform:`translate(${m.posX}px, ${m.posY}px) scale(${m.scale})`,width:t+"px",height:r+"px",backgroundImage:Ie.value?`url(${Ie.value})`:"none"})),ue=s.computed(()=>{const d=new Set;return E.value.forEach(c=>{c.region&&d.add(c.region)}),Array.from(d)}),he=s.computed(()=>R.value.map(d=>d.name)),Se=s.computed(()=>E.value.filter(d=>{const c=m.selectedRegion==="全部"||d.region===m.selectedRegion,x=m.selectedLine==="全部"||d.lineName===m.selectedLine;return c&&x}).map(d=>({value:d.id,label:`${d.deviceId}${d.region?`(${d.region})`:""}`}))),Ke=s.computed(()=>{const d=m.selectedPoints||[];if(d.length===0||d.includes("__ALL__"))return"全部监测点";if(d.length===1){const c=Se.value.find(x=>x.value===d[0]);return(c==null?void 0:c.label)||"已选1个监测点"}return`已选${d.length}个监测点`}),me=s.computed(()=>{const d=m.selectedPoints||[],c=d.length===0||d.includes("__ALL__");return E.value.filter(x=>{const S=M.has(x.type),A=m.selectedRegion==="全部"||x.region===m.selectedRegion,L=m.selectedLine==="全部"||x.lineName===m.selectedLine,b=c||d.includes(x.id);return S&&A&&L&&b})}),Ne=d=>{if(!Array.isArray(d)){m.selectedPoints=["__ALL__"];return}const c=new Set(Se.value.map(S=>S.value));let x=d.filter(S=>S==="__ALL__"||c.has(S));if(x.includes("__ALL__")&&x.length>1&&(x=x.filter(S=>S!=="__ALL__")),x.length===0){m.selectedPoints=["__ALL__"];return}m.selectedPoints=x},$e=s.computed(()=>M.has("GNSS")?R.value.filter(d=>m.selectedRegion!=="全部"&&d.region!==m.selectedRegion||m.selectedLine!=="全部"&&d.name!==m.selectedLine?!1:d.pointIds.filter(x=>me.value.some(S=>S.id===x)).length>=2):[]),fe=d=>{const c=d.isOnline?a[d.alarmIdx]||"#71C446":"#999";return{left:d.x+"px",top:d.y+"px",backgroundColor:c,color:c}},de=d=>U.pickedPoints.some(c=>c.id===d.id),Xe=s.computed(()=>{var d;return((d=e.conf)==null?void 0:d.data)||[]}),Ve=()=>{const d=Xe.value;d.length>0?Jt(d):Qt()},ge={GNSS:[{label:"累计位移",unit:"mm"},{label:"当前速度",unit:"mm/h"},{label:"X/Y/H变化",unit:"mm"}],DEEP:[{label:"深层位移",unit:"mm"},{label:"测斜深度",unit:"m"}],RADAR:[{label:"形变量",unit:"mm"},{label:"形变速度",unit:"mm/d"}],SURFACE:[{label:"垂直位移",unit:"mm"},{label:"水平位移",unit:"mm"}],CRACK:[{label:"裂缝宽度",unit:"mm"},{label:"开列速度",unit:"mm/d"}],FIRE:[{label:"温度",unit:"℃"},{label:"CO浓度",unit:"ppm"}],WATER:[{label:"降雨量",unit:"mm"},{label:"雨强",unit:"mm/h"}],GROUND:[{label:"水位",unit:"m"},{label:"渗透压力",unit:"kPa"}],STRESS:[{label:"应力值",unit:"MPa"},{label:"变化量",unit:"MPa"}],VIB:[{label:"振动速度",unit:"cm/s"},{label:"振动频率",unit:"Hz"}],SAT:[{label:"地表形变",unit:"mm"},{label:"变化速率",unit:"mm/y"}]},Jt=d=>{const c=[];d.forEach((x,S)=>{var J,pe,Me,Ae,Ce,Te,xt,bt,vt,St;const A=x.name||x.deviceId||"",L=x.deviceType||x.type||"GNSS",b=n[L]||n[(J=L.toUpperCase)==null?void 0:J.call(L)]||"GNSS",F=x.x,P=x.y,G=F!==""&&F!=null&&!isNaN(Number(F)),N=P!==""&&P!=null&&!isNaN(Number(P)),B=G?Number(F):-9999,Z=N?Number(P):-9999,Y=G?"":String(F||""),K=N?"":String(P||""),q=ge[b]||[],ee=[];for(let te=0;te<5;te++){const Vt=x[`row${te+1}FV`]||"",Mt=x[`row${te+1}Label`]||((pe=q[te])==null?void 0:pe.label)||"",yn=(Ae=x[`row${te+1}Unit`])!=null?Ae:((Me=q[te])==null?void 0:Me.unit)||"";(Vt||Mt)&&ee.push({label:Mt,fv:Vt,unit:yn})}if(ee.length===0){x.fvDisplacement&&ee.push({label:((Ce=q[0])==null?void 0:Ce.label)||"累计位移",fv:x.fvDisplacement,unit:((Te=q[0])==null?void 0:Te.unit)||x.unitDisplacement||"mm"}),x.fvSpeed&&ee.push({label:((xt=q[1])==null?void 0:xt.label)||"当前速度",fv:x.fvSpeed,unit:((bt=q[1])==null?void 0:bt.unit)||x.unitSpeed||"mm/h"});const te=[x.fvX,x.fvY,x.fvH].filter(Boolean);te.length&&ee.push({label:((vt=q[2])==null?void 0:vt.label)||"X/Y/H变化",fv:te.join("|"),unit:((St=q[2])==null?void 0:St.unit)||x.unitXYH||"mm"})}c.push({id:A||`pt-${S}`,type:b,alarmIdx:typeof x.alarmIdx=="number"?x.alarmIdx:4,isOnline:x.isOnline!==!1,deviceId:A||`${b}${S}`,region:x.region||"未分区",x:B,y:Z,isOnDetectionLine:!!x.lineName,lineName:x.lineName||"",objectId:x.object_id||"",fvDeviceName:x.fvDeviceName||"",fvXCoord:Y,fvYCoord:K,fvElevation:x.elevation||x.高程||"",rows:ee,arrowXFV:x.arrowXFV||"",arrowYFV:x.arrowYFV||"",liveValues:{}})}),E.value=c,qe(c)},Qt=()=>{const d=g.value.pointCount||80,c=Object.keys(i),x=[],S=[],A=60,L={};f.forEach(b=>L[b.name]=0);for(let b=0;b<d;b++){let F=c[b%c.length];b<7?F="RADAR":F==="RADAR"&&(F="GNSS");const P=b*7%5,G=b%8!==0,N=f[b%f.length];let B=!1,Z="";F==="GNSS"&&L[N.name]<3&&(B=!0,Z=`${N.name}线`,L[N.name]++);let Y=0,K=0,q=0;for(;q<100;){if(B){const J=L[N.name]-1;N.name==="北帮"||N.name==="南帮"?(K=(N.yRange[0]+N.yRange[1])/2,Y=N.xRange[0]+300+J*250):(Y=(N.xRange[0]+N.xRange[1])/2,K=N.yRange[0]+300+J*250)}else Y=N.xRange[0]+Math.random()*(N.xRange[1]-N.xRange[0]),K=N.yRange[0]+Math.random()*(N.yRange[1]-N.yRange[0]);if(!S.some(J=>Math.hypot(Y-J.x,K-J.y)<A))break;q++}S.push({x:Y,y:K}),x.push({id:`pt-${b}`,type:F,alarmIdx:P,isOnline:G,deviceId:`${F}${b}`,region:N.name,x:Y,y:K,isOnDetectionLine:B,lineName:Z,objectId:"",fvDeviceName:"",fvXCoord:"",fvYCoord:"",fvElevation:"",rows:[],arrowXFV:"",arrowYFV:"",liveValues:{}})}E.value=x,qe(x)},qe=d=>{const c=new Map;d.filter(A=>A.lineName&&A.x!==-9999&&A.y!==-9999).forEach(A=>{c.has(A.lineName)||c.set(A.lineName,[]),c.get(A.lineName).push(A)});const x=[];let S=0;c.forEach((A,L)=>{var P,G,N,B;const b=Math.abs(((P=A[A.length-1])==null?void 0:P.x)-((G=A[0])==null?void 0:G.x)),F=Math.abs(((N=A[A.length-1])==null?void 0:N.y)-((B=A[0])==null?void 0:B.y));if(A.sort((Z,Y)=>b>=F?Z.x-Y.x:Z.y-Y.y),A.length>=2){const Z=`M ${A[0].x+16} ${A[0].y+16} `+A.slice(1).map(K=>`L ${K.x+16} ${K.y+16}`).join(" "),Y=A[0].region||"";x.push({name:L,region:Y,color:u[S%u.length],path:Z,pointIds:A.map(K=>K.id)}),S++}}),R.value=x},en=d=>{const c=y.value;if(!c)return;const x=Math.min(Math.max(.15,m.scale+d.deltaY*-.001),2.5),S=c.getBoundingClientRect(),A=d.clientX-S.left,L=d.clientY-S.top,b=x/m.scale;m.posX=A-(A-m.posX)*b,m.posY=L-(L-m.posY)*b,m.scale=x},tn=d=>{d.button===0&&(se.value=!0,ae.x=d.clientX-m.posX,ae.y=d.clientY-m.posY)},nn=d=>{se.value&&(m.posX=d.clientX-ae.x,m.posY=d.clientY-ae.y)},ft=()=>{se.value=!1},rn=()=>{const d=y.value;if(!d){m.scale=.4,m.posX=0,m.posY=0;return}const c=d.clientWidth,x=d.clientHeight;if(c===0||x===0){m.scale=.4,m.posX=0,m.posY=0;return}const S=c/t,A=x/r,L=Math.min(S,A)*.9;m.scale=Math.max(.15,Math.min(L,1.5)),m.posX=(c-t*m.scale)/2,m.posY=(x-r*m.scale)/2},dt=d=>{if(e.mode!=="edit"){if(U.picking){const c=U.pickedPoints.findIndex(x=>x.id===d.id);if(c>=0){U.pickedPoints.splice(c,1);return}U.pickedPoints.length<2&&U.pickedPoints.push(d),U.pickedPoints.length===2&&(U.picking=!1,U.dialogVisible=!0);return}d.isOnline&&(oe.value=d.id,setTimeout(()=>{oe.value===d.id&&(oe.value="")},3e3),h.publish({objectId:d.objectId,deviceId:d.deviceId,point:d.deviceId,deviceType:d.type,region:d.region,alarmIdx:d.alarmIdx}))}},on=(d,c)=>{var L,b;z.visible=!0,z.x=d.clientX-(((L=y.value)==null?void 0:L.getBoundingClientRect().left)||0)+15,z.y=d.clientY-(((b=y.value)==null?void 0:b.getBoundingClientRect().top)||0)+15;const x=c.liveValues;let S="";c.rows.forEach((F,P)=>{var B;if(!F.fv)return;const G=(B=x[`row_${P}`])!=null?B:"--",N=F.label||"测量值";S+=`<div>${N}: <b style="color:#fff">${G}</b>${F.unit?" "+F.unit:""}</div>`}),S||(S='<div style="color:rgba(255,255,255,0.4);font-size:11px">暂未配置测量字段</div>');const A=c.fvDeviceName&&x.deviceName?x.deviceName:c.deviceId;z.content=`
10
10
  <b style="color:#85C6F1;">[${c.region}] ${A}</b>