mixdashboards 1.0.74 → 1.0.76

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 (354) hide show
  1. package/dist/BaseComponent-BmhMoM4H.cjs +1 -0
  2. package/dist/{BaseComponent-NnwLq7Cf.js → BaseComponent-CQaDWNO0.js} +10 -10
  3. package/dist/{EChartComponentBase-D7_ZiE7P.cjs → EChartComponentBase-D9EUh4BZ.cjs} +1 -1
  4. package/dist/{EChartComponentBase-C3gcATBZ.js → EChartComponentBase-i76OGL3z.js} +2 -2
  5. package/dist/{EmergencyPlanPanel-0EfbQlQm.js → EmergencyPlanPanel-B9S3Ru5-.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-XDtQc5aN.cjs → EmergencyPlanPanel-BiAHvTfh.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-fbBtPeVt.cjs → HistoryPlanDialog-BU4GayEm.cjs} +1 -1
  8. package/dist/{HistoryPlanDialog-ihGqWXNI.js → HistoryPlanDialog-CbbeFm-i.js} +1 -1
  9. package/dist/{MonitoringMap-DysFrw3B.js → MonitoringMap-B6tXBdvK.js} +2 -2
  10. package/dist/{MonitoringMap-UT2OL3ca.cjs → MonitoringMap-FGDoA0fw.cjs} +1 -1
  11. package/dist/{UniverSheet-DeZ-y5mH.cjs → UniverSheet-D7y2pceH.cjs} +1 -1
  12. package/dist/{UniverSheet-CMWL98B8.js → UniverSheet-D8sflrTb.js} +2 -2
  13. package/dist/{accelerationChart-BGjzOc4I.cjs → accelerationChart-DTlwSA0N.cjs} +1 -1
  14. package/dist/{accelerationChart-JNRxAqU5.js → accelerationChart-bch4O3t-.js} +9 -9
  15. package/dist/{actionItem-DnrNafUu.js → actionItem-Cw67YwsR.js} +2 -2
  16. package/dist/{actionItem-DDlL4pxR.cjs → actionItem-cdsgUvaC.cjs} +1 -1
  17. package/dist/{alarmLevelChart-B4TglthF.cjs → alarmLevelChart-BMjTLxB5.cjs} +1 -1
  18. package/dist/{alarmLevelChart-D4ZPyGyd.js → alarmLevelChart-BynSRHG2.js} +2 -2
  19. package/dist/{alertTable-WmivR3n_.cjs → alertTable-3VhkUZSf.cjs} +1 -1
  20. package/dist/{alertTable-IwL3PIbe.js → alertTable-CiwuaydQ.js} +2 -2
  21. package/dist/{aliasObjectSelectorDemo-zcElLG44.cjs → aliasObjectSelectorDemo-BLoecZkV.cjs} +1 -1
  22. package/dist/{aliasObjectSelectorDemo-DCcqetww.js → aliasObjectSelectorDemo-DfdRxb4I.js} +1 -1
  23. package/dist/{annualRainfallChart-CNqrXKJZ.js → annualRainfallChart-CHcr4-0D.js} +2 -2
  24. package/dist/{annualRainfallChart-DspMrDxt.cjs → annualRainfallChart-DKR-A_PT.cjs} +1 -1
  25. package/dist/{aqi-B1bcKY5p.cjs → aqi-D7VqP1QE.cjs} +1 -1
  26. package/dist/{aqi-CdGE9-CD.js → aqi-Gu-pAovO.js} +4 -4
  27. package/dist/{aqiIndass-CuKfMaYn.js → aqiIndass-Bjj6n1aj.js} +18 -18
  28. package/dist/{aqiIndass-BZpPo1tj.cjs → aqiIndass-nfYUZ3UM.cjs} +1 -1
  29. package/dist/{areaDeformCurve-bNNNS8Cb.cjs → areaDeformCurve-fpGWmq05.cjs} +1 -1
  30. package/dist/{areaDeformCurve-Chn4CE8w.js → areaDeformCurve-nwlcUBDv.js} +2 -2
  31. package/dist/arrayCard-TfcgLrHv.js +139 -0
  32. package/dist/arrayCard-UoDqAGbN.cjs +1 -0
  33. package/dist/{audio-YTfr7Lqf.js → audio-BYgGYoEr.js} +2 -2
  34. package/dist/{audio-BeYg08W5.cjs → audio-DdUv9Ot-.cjs} +1 -1
  35. package/dist/bar-CkBXc7t1.cjs +2 -0
  36. package/dist/{bar-YhAAV2al.js → bar-SfGiFl1r.js} +75 -67
  37. package/dist/{bmp-Uj7Bu61U.js → bmp-BbtdzIrI.js} +2 -2
  38. package/dist/{bmp-vWIH5Cu7.cjs → bmp-CY-Hb2x1.cjs} +1 -1
  39. package/dist/{box-Cdzw27uU.cjs → box-B4C_mirv.cjs} +1 -1
  40. package/dist/{box-C8RIfuID.js → box-CV41cJuX.js} +2 -2
  41. package/dist/{chartConfigPanel-DLa3heKy.js → chartConfigPanel-D650rSn7.js} +1 -1
  42. package/dist/{chartConfigPanel-D3voTkdQ.cjs → chartConfigPanel-DBlqAbbH.cjs} +1 -1
  43. package/dist/{circleBar-Dc_qd4gk.cjs → circleBar-DkV7xPBl.cjs} +1 -1
  44. package/dist/{circleBar-DUSP-iMF.js → circleBar-U3iXMQr5.js} +2 -2
  45. package/dist/{clock-0USfNfTc.cjs → clock-CjgMeOhp.cjs} +1 -1
  46. package/dist/{clock-Dk1zjBcJ.js → clock-zKVUU8pu.js} +2 -2
  47. package/dist/clt-BsIA-YPQ.js +301 -0
  48. package/dist/clt-DwI8i7zI.cjs +1 -0
  49. package/dist/cmc-BX9ichBB.cjs +1 -0
  50. package/dist/cmc-CgpHejR2.js +275 -0
  51. package/dist/{cmp-D4ZO7mz7.js → cmp-CS34lG7V.js} +2 -2
  52. package/dist/{cmp-BPM8lMqg.cjs → cmp-CTqtxzo4.cjs} +1 -1
  53. package/dist/{conclusionCard-BYR-fH4f.js → conclusionCard-N6pA6Q9P.js} +2 -2
  54. package/dist/{conclusionCard-BVHHtpxH.cjs → conclusionCard-wvtJmV_8.cjs} +1 -1
  55. package/dist/{controlList-DsEyes9v.cjs → controlList-BUAMdHA3.cjs} +1 -1
  56. package/dist/{controlList-DYV1wgUY.js → controlList-Zz5ABe5b.js} +2 -2
  57. package/dist/{controlRecordList-j0pBrQiU.cjs → controlRecordList-CMR4y_Ml.cjs} +1 -1
  58. package/dist/{controlRecordList-CBGpB41d.js → controlRecordList-Dx0zj7js.js} +2 -2
  59. package/dist/controlRecordListAPP-ZDCKmz_8.cjs +1 -0
  60. package/dist/controlRecordListAPP-bL9oqWzQ.js +569 -0
  61. package/dist/{crd-C8IqmHc6.cjs → crd-8tMwNlgx.cjs} +1 -1
  62. package/dist/{crd-Di7EfiY1.js → crd-DZPpD6XY.js} +2 -2
  63. package/dist/{ctrBtn-BzMHJHA9.js → ctrBtn-6Ql9ulTr.js} +3 -3
  64. package/dist/{ctrBtn-Cj-AqUKM.cjs → ctrBtn-eCu0UDtW.cjs} +1 -1
  65. package/dist/{ctrSet-DMkuRDFI.js → ctrSet-BwFVH1Mk.js} +51 -50
  66. package/dist/{ctrSet-CnDBng-I.cjs → ctrSet-pX-zVivo.cjs} +1 -1
  67. package/dist/{ctrSwitch-BRfl35Aw.cjs → ctrSwitch-D95SI-aJ.cjs} +1 -1
  68. package/dist/{ctrSwitch-FJgD05b0.js → ctrSwitch-b6hHf4QF.js} +3 -3
  69. package/dist/{dataManagement-CXbeNggN.cjs → dataManagement-DubA1TV1.cjs} +1 -1
  70. package/dist/{dataManagement-CQoqc9Rh.js → dataManagement-VucRLCK4.js} +2 -2
  71. package/dist/{dataReport-l2SE8HZx.js → dataReport-CALIw14D.js} +2 -2
  72. package/dist/{dataReport-BkIDOCdC.cjs → dataReport-CkF5J7X1.cjs} +1 -1
  73. package/dist/{dataTable-jf6qXfJJ.js → dataTable-C1rBH_p9.js} +1 -1
  74. package/dist/{dataTable-BdttKfHG.cjs → dataTable-C2q_CX5D.cjs} +1 -1
  75. package/dist/{datetime-eht4XkmD.js → datetime-Cq8scz5Q.js} +2 -2
  76. package/dist/{datetime-BH9orUUf.cjs → datetime-TBTeWqlf.cjs} +1 -1
  77. package/dist/{deepClusterSlipSurface-CF_MN7sO.cjs → deepClusterSlipSurface-CFaxRVmM.cjs} +1 -1
  78. package/dist/{deepClusterSlipSurface-D2d52L50.js → deepClusterSlipSurface-Cm50wbjv.js} +13 -13
  79. package/dist/{deepDataMatrix-DqbCqz8d.cjs → deepDataMatrix-CAYSav3X.cjs} +1 -1
  80. package/dist/{deepDataMatrix-DY1WmgGR.js → deepDataMatrix-DyStA98d.js} +13 -13
  81. package/dist/{deepDisplacement3D-D3-KOmef.cjs → deepDisplacement3D-B3Iju2KK.cjs} +1 -1
  82. package/dist/{deepDisplacement3D-CuVVhd0X.js → deepDisplacement3D-Bat-Wc3i.js} +2 -2
  83. package/dist/{deepDisplacementChart-BwBojI9h.cjs → deepDisplacementChart-C-Tr4DdI.cjs} +1 -1
  84. package/dist/{deepDisplacementChart-DzikjpBz.cjs → deepDisplacementChart-CX9ALM89.cjs} +1 -1
  85. package/dist/{deepDisplacementChart-C_3eHTmR.js → deepDisplacementChart-CYMpNu_W.js} +3 -3
  86. package/dist/{deepDisplacementChart-DFosjAQL.js → deepDisplacementChart-D5rHoC9r.js} +26 -26
  87. package/dist/{deepDisplacementView-gJdi6U9B.cjs → deepDisplacementView-DTSsODJQ.cjs} +1 -1
  88. package/dist/{deepDisplacementView-BNQaheci.js → deepDisplacementView-DnjwQmEW.js} +1 -1
  89. package/dist/{deepNodeTemperatureChart-oMknBT7e.cjs → deepNodeTemperatureChart-C9NRJ49Y.cjs} +1 -1
  90. package/dist/{deepNodeTemperatureChart-C5d-tyOA.js → deepNodeTemperatureChart-CLKg72UA.js} +2 -2
  91. package/dist/{deepTangentAngleChart-C7b7sEab.cjs → deepTangentAngleChart-C9aFSFrD.cjs} +1 -1
  92. package/dist/{deepTangentAngleChart-C35d0nBR.js → deepTangentAngleChart-DklHYHhm.js} +2 -2
  93. package/dist/{deepTemperatureField-BnWHpVPm.cjs → deepTemperatureField-CXBL4_LS.cjs} +1 -1
  94. package/dist/{deepTemperatureField-DbGy0vHS.js → deepTemperatureField-CcnVGgbf.js} +3 -3
  95. package/dist/{deepTrendChart-DdCYjiWZ.js → deepTrendChart-De7ebpk4.js} +2 -2
  96. package/dist/{deepTrendChart-D676owsq.cjs → deepTrendChart-OGW08BX-.cjs} +1 -1
  97. package/dist/{deviceOnlineStatus-DSuaeFZj.cjs → deviceOnlineStatus-DarcMtY4.cjs} +1 -1
  98. package/dist/{deviceOnlineStatus-BH-2-UBD.js → deviceOnlineStatus-_3Txb8Tg.js} +2 -2
  99. package/dist/{deviceStatus-ySE9suGE.cjs → deviceStatus-BiJw8rnz.cjs} +1 -1
  100. package/dist/{deviceStatus-CxjbfqGK.js → deviceStatus-CL6E-pQ0.js} +12 -12
  101. package/dist/{displacementDataTable-DwutxypE.cjs → displacementDataTable-DmAqr-JK.cjs} +1 -1
  102. package/dist/{displacementDataTable-CAYYafN7.js → displacementDataTable-tKtGe2xd.js} +17 -17
  103. package/dist/{displacementTrajectoryChart-zya-qu9n.cjs → displacementTrajectoryChart-DG2YdSqq.cjs} +1 -1
  104. package/dist/{displacementTrajectoryChart-ClUAsle_.js → displacementTrajectoryChart-Dh6oPB0p.js} +31 -31
  105. package/dist/{displacementTrendChart-xqe9LMp8.js → displacementTrendChart-BHORe0qO.js} +40 -40
  106. package/dist/{displacementTrendChart-DZj52qRD.cjs → displacementTrendChart-CT140vXG.cjs} +1 -1
  107. package/dist/{dxf-Cmr9xmL0.cjs → dxf-CVa4Vfm3.cjs} +1 -1
  108. package/dist/{dxf-tZgpovsn.js → dxf-CjcHSJq-.js} +2 -2
  109. package/dist/{dzc-C0VMyvsH.js → dzc-DDXNSuie.js} +6 -6
  110. package/dist/{dzc-BwCEpLKp.cjs → dzc-DK16oTVj.cjs} +1 -1
  111. package/dist/{emergencyPlan-CQtYRB5n.cjs → emergencyPlan-D0AMuD-3.cjs} +1 -1
  112. package/dist/{emergencyPlan-j1icRflR.js → emergencyPlan-Vim4E6h7.js} +3 -3
  113. package/dist/evn-CdMN8gIC.js +165 -0
  114. package/dist/evn-D2mdSoFB.cjs +1 -0
  115. package/dist/{evolutionChart-q9UtSs9r.cjs → evolutionChart-I8XVW05I.cjs} +1 -1
  116. package/dist/{evolutionChart-C1rPjVsB.js → evolutionChart-P0l6P0Bc.js} +3 -3
  117. package/dist/{fileViewer-ZO55zvWU.cjs → fileViewer-D7sAA8-W.cjs} +1 -1
  118. package/dist/{fileViewer-Bj4FYg5G.js → fileViewer-DvntGv0b.js} +2 -2
  119. package/dist/{filterBar-CIYpcc9y.js → filterBar-8gex5oR-.js} +2 -2
  120. package/dist/{filterBar-D7js_Q7g.cjs → filterBar-GSTji96g.cjs} +1 -1
  121. package/dist/{fireCombustionCurve-DEHjb7Lp.js → fireCombustionCurve-B3jAhOft.js} +3 -3
  122. package/dist/{fireCombustionCurve-CiVXjt9E.cjs → fireCombustionCurve-DrMmHf3N.cjs} +1 -1
  123. package/dist/{fireFilterBar-BzgnlY5d.js → fireFilterBar-CH6iK0Xg.js} +2 -2
  124. package/dist/{fireFilterBar-CkQU9Yaf.cjs → fireFilterBar-Dy9DcHij.cjs} +1 -1
  125. package/dist/{fireHistoryTable-BoAArvjx.js → fireHistoryTable-CHxHqPs0.js} +2 -2
  126. package/dist/{fireHistoryTable-JCY4nLos.cjs → fireHistoryTable-n6L3juWp.cjs} +1 -1
  127. package/dist/{gag-DCGVulGC.js → gag-BsO4kmp1.js} +2 -2
  128. package/dist/{gag-CrUeBa30.cjs → gag-BzjuwBvY.cjs} +1 -1
  129. package/dist/gasStationList-7JzUcISs.js +1325 -0
  130. package/dist/gasStationList-QwqTDEAG.cjs +1 -0
  131. package/dist/{geo3dViewer-BSAjBg2m.cjs → geo3dViewer-Cf-jHpvF.cjs} +1 -1
  132. package/dist/{geo3dViewer-Du775tJ7.js → geo3dViewer-doEpUC_J.js} +3 -3
  133. package/dist/{glbModel-2uTNL367.js → glbModel-BgFIj_es.js} +2 -2
  134. package/dist/{glbModel-Cm1M6hko.cjs → glbModel-C6L--3dO.cjs} +1 -1
  135. package/dist/{globalObjectSelector-CEpO2o2w.js → globalObjectSelector-CdfiXRjg.js} +1 -1
  136. package/dist/{globalObjectSelector-W_YToM6x.cjs → globalObjectSelector-P_irB0rv.cjs} +1 -1
  137. package/dist/{gnssFilterBar-BSHEfiyz.cjs → gnssFilterBar-CIwyv2yc.cjs} +1 -1
  138. package/dist/{gnssFilterBar-DZYOL5nC.js → gnssFilterBar-DPNshMIx.js} +2 -2
  139. package/dist/{gnssHistoryTable-naChmXHT.js → gnssHistoryTable-C7x4-Tpp.js} +2 -2
  140. package/dist/{gnssHistoryTable-Ct98Vz6i.cjs → gnssHistoryTable-j5FL6oYs.cjs} +1 -1
  141. package/dist/{gnssMapView-DouWOPLF.js → gnssMapView-BWcS4hqj.js} +4 -4
  142. package/dist/{gnssMapView-CCW4_-Sn.cjs → gnssMapView-_VaJWBcE.cjs} +2 -2
  143. package/dist/{gnssSectionProfile-hzXQ4KzJ.cjs → gnssSectionProfile-DGbTO7lV.cjs} +1 -1
  144. package/dist/{gnssSectionProfile-Be-THvQP.js → gnssSectionProfile-hpyiGI-6.js} +2 -2
  145. package/dist/{gnssTimeSeriesChart-CbMxKxjG.cjs → gnssTimeSeriesChart-CNT6xaNs.cjs} +1 -1
  146. package/dist/{gnssTimeSeriesChart-DoMBz4zf.js → gnssTimeSeriesChart-rL9oG1ly.js} +2 -2
  147. package/dist/{gnssXYTrajectory-Bg2B89Vw.js → gnssXYTrajectory-B1LZAepw.js} +2 -2
  148. package/dist/{gnssXYTrajectory-BNwqQna4.cjs → gnssXYTrajectory-CwAjhPRc.cjs} +1 -1
  149. package/dist/{grd-XTVPofQw.js → grd-BLab9IY0.js} +26 -26
  150. package/dist/{grd-C-x23C0E.cjs → grd-rJXqEimt.cjs} +1 -1
  151. package/dist/{grdIndass-CYawTr5K.js → grdIndass-gGrZ7gRV.js} +2 -2
  152. package/dist/{grdIndass-h7STZwba.cjs → grdIndass-niY4UOwz.cjs} +1 -1
  153. package/dist/{grg-DMRsgNoC.cjs → grg-C1L5yeyY.cjs} +1 -1
  154. package/dist/{grg-BZPHOdr_.js → grg-Dnro7bLg.js} +6 -6
  155. package/dist/{gridview-C_Lqcw3n.js → gridview-BhjWlD0J.js} +2 -2
  156. package/dist/{gridview-BAqXV-TI.cjs → gridview-DxUsv2ny.cjs} +1 -1
  157. package/dist/{groundwaterFilterBar-RcVBt_vt.cjs → groundwaterFilterBar-C-2e7S04.cjs} +1 -1
  158. package/dist/{groundwaterFilterBar-Dq216QFO.js → groundwaterFilterBar-bNhTkX1C.js} +2 -2
  159. package/dist/{groundwaterProfileChart-D31MpfdN.cjs → groundwaterProfileChart-BxKGPuOe.cjs} +2 -2
  160. package/dist/{groundwaterProfileChart-7LN3wfLM.js → groundwaterProfileChart-dhzmwfwz.js} +3 -3
  161. package/dist/{groundwaterTimeCurve-CJgvt43Z.js → groundwaterTimeCurve-BtzP6icm.js} +3 -3
  162. package/dist/{groundwaterTimeCurve-C65gdinn.cjs → groundwaterTimeCurve-CTQPlTUr.cjs} +1 -1
  163. package/dist/{groupCard-BpjcijZW.js → groupCard-D00ElZoy.js} +63 -53
  164. package/dist/{groupCard-DNOawK4_.cjs → groupCard-D4gdaVqR.cjs} +1 -1
  165. package/dist/{headerBar-Bnv8ylmr.js → headerBar-DEHj8fJr.js} +2 -2
  166. package/dist/{headerBar-CNWKR951.cjs → headerBar-MFw1W0qa.cjs} +1 -1
  167. package/dist/{history-DdkBOj8L.js → history-BRkb914v.js} +22 -22
  168. package/dist/{history-xZTq1lUB.cjs → history-D1R2RAZQ.cjs} +1 -1
  169. package/dist/index-77aUdspY.cjs +612 -0
  170. package/dist/{index-D5BukPPY.js → index-BZpYmpDy.js} +3511 -3043
  171. package/dist/{insarDeformChart-DIvxdDkN.cjs → insarDeformChart-5EVWIkpL.cjs} +1 -1
  172. package/dist/{insarDeformChart-BKgJHbFe.js → insarDeformChart-pbOnnoN-.js} +2 -2
  173. package/dist/{insarImageViewer-qI5GBqkU.js → insarImageViewer-D3bbQA6g.js} +2 -2
  174. package/dist/{insarImageViewer-Bray3mKg.cjs → insarImageViewer-DQJBN4YM.cjs} +1 -1
  175. package/dist/{kds-BibvGW1n.cjs → kds-D5seJB3L.cjs} +1 -1
  176. package/dist/{kds-C1Chb0fa.js → kds-gTJOwHbM.js} +2 -2
  177. package/dist/{kpiCard-tnfcEXOn.cjs → kpiCard-Bz-fg6sL.cjs} +1 -1
  178. package/dist/{kpiCard-KuMZjN55.js → kpiCard-Cx6VNK6L.js} +2 -2
  179. package/dist/{landslideMap-B4vzymkZ.js → landslideMap-5erIcZo7.js} +3 -3
  180. package/dist/{landslideMap-DlMSDibx.cjs → landslideMap-D7_QpwmM.cjs} +1 -1
  181. package/dist/{landslideWarning-DtOMb7U_.cjs → landslideWarning-C3FZqrxT.cjs} +1 -1
  182. package/dist/{landslideWarning-BYlaEzUr.js → landslideWarning-CzaddgWf.js} +14 -14
  183. package/dist/{layerTabs-DQm_b2aH.cjs → layerTabs-Dc1Xb11W.cjs} +1 -1
  184. package/dist/{layerTabs-BG0gTvo8.js → layerTabs-DqbOykS2.js} +2 -2
  185. package/dist/{leaflet-src-DVXepwmU.js → leaflet-src-BY2SMh9y.js} +1 -1
  186. package/dist/{leaflet-src-qPfpknMO.cjs → leaflet-src-Brb8KUL5.cjs} +1 -1
  187. package/dist/{lerc-Z6kWrF7V.js → lerc-Chm_GVte.js} +2 -2
  188. package/dist/{lerc-CITZZDb7.cjs → lerc-DGuyYCKG.cjs} +1 -1
  189. package/dist/{lin-CW8Q8u-z.cjs → lin-8x2j8aGa.cjs} +1 -1
  190. package/dist/{lin-zJYjIE2f.js → lin-tqtSA5ci.js} +5 -5
  191. package/dist/{linIndass-27mWriLs.js → linIndass-DHFymSVI.js} +10 -10
  192. package/dist/{linIndass-CQaikC7I.cjs → linIndass-Dxo_bzrZ.cjs} +1 -1
  193. package/dist/{lst-Cu-ohx2m.cjs → lst-BV6EbDPs.cjs} +1 -1
  194. package/dist/{lst-BqXNkXrQ.js → lst-BejIuO0f.js} +2 -2
  195. package/dist/{manualEntry-zj6TEXL7.cjs → manualEntry-Bt4cs6kn.cjs} +1 -1
  196. package/dist/{manualEntry-BPEmSok7.js → manualEntry-DObI0OAq.js} +2 -2
  197. package/dist/{mapBackground-BhcSOZ_h.js → mapBackground-Cuym5Dqr.js} +3 -3
  198. package/dist/{mapBackground-CRI873EC.cjs → mapBackground-oVOBK3zr.cjs} +1 -1
  199. package/dist/{mappingList-DGgPl4t4.cjs → mappingList-BEWAqLd4.cjs} +1 -1
  200. package/dist/{mappingList-CvG8EIIC.js → mappingList-Dzq0zMfs.js} +2 -2
  201. package/dist/{markdownViewer-D9JqGyeI.js → markdownViewer-Bz50jkb6.js} +2 -2
  202. package/dist/{markdownViewer-DvbUv7kn.cjs → markdownViewer-V5b1xhPh.cjs} +1 -1
  203. package/dist/{mix-control-modal-DaRWnX3S.js → mix-control-modal-DzVLdO3S.js} +1 -1
  204. package/dist/{mix-control-modal-DpAs-GHi.cjs → mix-control-modal-I6DqPm04.cjs} +1 -1
  205. package/dist/{mixGrid-CHne1dXO.cjs → mixGrid-_ur8VKLD.cjs} +1 -1
  206. package/dist/{mixGrid-FBiMFT4V.js → mixGrid-tVSdKPms.js} +2 -2
  207. package/dist/mixdashboards.cjs +1 -1
  208. package/dist/mixdashboards.css +1 -1
  209. package/dist/mixdashboards.js +1 -1
  210. package/dist/mixiotObjectListApi-BUQ-RZ3L.cjs +1 -0
  211. package/dist/mixiotObjectListApi-D5vNNWgT.js +212 -0
  212. package/dist/{mjpegCamera-D32gJ5oN.cjs → mjpegCamera-CjWe8BEK.cjs} +1 -1
  213. package/dist/{mjpegCamera-D2quqZNc.js → mjpegCamera-DnAPpFJU.js} +2 -2
  214. package/dist/{monitorAlert-D4qszzHh.js → monitorAlert-B-fTYPn6.js} +15 -15
  215. package/dist/{monitorAlert-CxC81qAu.cjs → monitorAlert-qmVSQ1lc.cjs} +1 -1
  216. package/dist/{monitorData-DnWDsgTT.js → monitorData-Dopc660L.js} +7 -7
  217. package/dist/{monitorData-CVkL2ukF.cjs → monitorData-YhGSUq3H.cjs} +1 -1
  218. package/dist/{monitorSpeedChart-CKxwWE0i.cjs → monitorSpeedChart-Brj_YHsO.cjs} +1 -1
  219. package/dist/{monitorSpeedChart-CHpQsrDt.js → monitorSpeedChart-Dsvr_QPB.js} +1 -1
  220. package/dist/{mxa-UU7rQDd8.cjs → mxa-BzdI7BLB.cjs} +1 -1
  221. package/dist/{mxa-Cbnwonqc.js → mxa-D4WkyBYZ.js} +7 -7
  222. package/dist/{myValue-DzARZpdg.cjs → myValue-C0tq-asC.cjs} +1 -1
  223. package/dist/{myValue-DBxx1jtk.js → myValue-DYtBtOJ2.js} +2 -2
  224. package/dist/{myValueList-BVbeDsWn.cjs → myValueList-BJctRTNd.cjs} +1 -1
  225. package/dist/{myValueList-BbtPVr5y.js → myValueList-Ddpn1S68.js} +2 -2
  226. package/dist/objectList-Csf0hVwo.cjs +1 -0
  227. package/dist/objectList-G4wXFDwe.js +2040 -0
  228. package/dist/{objectListAPP-CYxy9UjL.js → objectListAPP-BrmUj4At.js} +49 -51
  229. package/dist/objectListAPP-UZN4iuTn.cjs +1 -0
  230. package/dist/{photo-DPOhq559.js → photo-BEPeK7U8.js} +2 -2
  231. package/dist/{photo-BRMACjXO.cjs → photo-BYH_qg5O.cjs} +1 -1
  232. package/dist/{pie-B7HO9F24.cjs → pie-B57zDxJV.cjs} +1 -1
  233. package/dist/{pie-CUqy6VGE.js → pie-CEVKe1lL.js} +2 -2
  234. package/dist/{placeholder-D-BpaT59.cjs → placeholder-BezBEQGo.cjs} +1 -1
  235. package/dist/{placeholder-DsyLsZM5.js → placeholder-Bwv3VyEg.js} +1 -1
  236. package/dist/{pressBtn-IefW25bT.js → pressBtn-1LCNz2gE.js} +33 -33
  237. package/dist/{pressBtn-DZz7PZ7o.cjs → pressBtn-CJZTyY8I.cjs} +1 -1
  238. package/dist/{processTable-Bm2HnUrZ.js → processTable-CHDazqah.js} +2 -2
  239. package/dist/{processTable-kVFr2ntb.cjs → processTable-HtDeg1by.cjs} +1 -1
  240. package/dist/{progressBar-00yP_jc2.cjs → progressBar-BP4SmPZK.cjs} +1 -1
  241. package/dist/{progressBar-C7RKpdcE.js → progressBar-C3NcWUrS.js} +2 -2
  242. package/dist/{progressCircle-BBkwMkI0.js → progressCircle-Bo9-Qva_.js} +48 -48
  243. package/dist/{progressCircle-CzqibMlZ.cjs → progressCircle-CDqK1iFt.cjs} +1 -1
  244. package/dist/{qrcode-DaHlY7Vv.js → qrcode-VmYwvClG.js} +2 -2
  245. package/dist/{qrcode-4NUAsx0h.cjs → qrcode-qD6tOm4F.cjs} +1 -1
  246. package/dist/{raceBar-WhOgwnlP.js → raceBar-DR2-luKW.js} +2 -2
  247. package/dist/{raceBar-BVsHg94d.cjs → raceBar-uAs91hyk.cjs} +1 -1
  248. package/dist/{rad-BlEn2Yx1.js → rad-1Jy1KDzt.js} +2 -2
  249. package/dist/{rad-sMtJPs8L.cjs → rad-D7-YZJNO.cjs} +1 -1
  250. package/dist/{radarMapViewer-C1_FFYFi.js → radarMapViewer-ByQXe0Mu.js} +2 -2
  251. package/dist/{radarMapViewer-CzhHFpRX.cjs → radarMapViewer-KPhNE5XX.cjs} +1 -1
  252. package/dist/{rainfallFilterBar-Bt2TbXV6.js → rainfallFilterBar-C1obotPf.js} +2 -2
  253. package/dist/{rainfallFilterBar-F7DU_nqK.cjs → rainfallFilterBar-CVQpQp82.cjs} +1 -1
  254. package/dist/{rainfallTimeCurve-C5tBf1lx.js → rainfallTimeCurve-B2rEx3T_.js} +3 -3
  255. package/dist/{rainfallTimeCurve-DaXSW7dI.cjs → rainfallTimeCurve-DU2tt-Ls.cjs} +1 -1
  256. package/dist/{rangeLin-Cr4NRYc9.cjs → rangeLin-COsJkCky.cjs} +1 -1
  257. package/dist/{rangeLin-Bral8Ev4.js → rangeLin-CdfUCFQr.js} +8 -8
  258. package/dist/{realtimeEvolutionMap-CCisvZz8.cjs → realtimeEvolutionMap-B7GT8MOq.cjs} +1 -1
  259. package/dist/{realtimeEvolutionMap-xJwuPatp.js → realtimeEvolutionMap-aR63xPW_.js} +2 -2
  260. package/dist/{regionBar-C8myvRfQ.cjs → regionBar-BYF7IaGA.cjs} +1 -1
  261. package/dist/{regionBar-D1iKcs2-.js → regionBar-DB-secNe.js} +2 -2
  262. package/dist/{request-C-rUicMg.js → request-CBsG4ipL.js} +1 -1
  263. package/dist/{request-Cxljxwu9.cjs → request-CvdHjG34.cjs} +1 -1
  264. package/dist/{retainer1-CC6TO-vq.cjs → retainer1-1CFk4InO.cjs} +1 -1
  265. package/dist/{retainer1-BvzeaTtU.js → retainer1-CMzTlM5Z.js} +3 -3
  266. package/dist/{retainer2-BeakFCgo.js → retainer2-DW4ewYX7.js} +3 -3
  267. package/dist/{retainer2-CmdgkB1y.cjs → retainer2-DliOH7it.cjs} +1 -1
  268. package/dist/{retainerRecordList-C7lDliOb.js → retainerRecordList-Bcm6leuD.js} +254 -275
  269. package/dist/retainerRecordList-DV7Tx39d.cjs +1 -0
  270. package/dist/retainerRecordListAPP-BDRwp8T3.js +1219 -0
  271. package/dist/retainerRecordListAPP-CJ-u0Tj2.cjs +1 -0
  272. package/dist/{ringTopN-BaKY-79s.js → ringTopN-Duq0pzm_.js} +2 -2
  273. package/dist/{ringTopN-Wfvu1-jE.cjs → ringTopN-rd2UwH9f.cjs} +1 -1
  274. package/dist/{riskRegionTable-ovBbwMl2.js → riskRegionTable-BE_ggcEV.js} +2 -2
  275. package/dist/{riskRegionTable-C7ee9wQX.cjs → riskRegionTable-CbPB8mlY.cjs} +1 -1
  276. package/dist/{sankey-BmWOGLSZ.cjs → sankey-BqBn6_rx.cjs} +1 -1
  277. package/dist/{sankey-K5BLueeX.js → sankey-CnKm9PZe.js} +2 -2
  278. package/dist/{scd-CMVoKjwE.js → scd-BaBLoem8.js} +456 -449
  279. package/dist/scd-BgJ5P7co.cjs +1 -0
  280. package/dist/{sideMenu-BbiMVHw1.cjs → sideMenu-BgiQL2P1.cjs} +1 -1
  281. package/dist/{sideMenu-L_dYXVgD.js → sideMenu-CUal1UQY.js} +2 -2
  282. package/dist/{slopeStability-WUcwG1vB.js → slopeStability-B9YbQLCE.js} +25 -25
  283. package/dist/{slopeStability-BWVxuRRV.cjs → slopeStability-Y2tDzJeh.cjs} +1 -1
  284. package/dist/{speedCurve-uwPuIJp0.js → speedCurve-DERBMtE1.js} +2 -2
  285. package/dist/{speedCurve-QTXe81e1.cjs → speedCurve-Kll2RRJ8.cjs} +1 -1
  286. package/dist/{stressFilterBar-DcqWlqsx.cjs → stressFilterBar-BGI4gVfE.cjs} +1 -1
  287. package/dist/{stressFilterBar-CnFNp7BR.js → stressFilterBar-CHRWFnpP.js} +2 -2
  288. package/dist/{stressTimeCurve-C-qycuZ2.cjs → stressTimeCurve-DE5KiXEt.cjs} +1 -1
  289. package/dist/{stressTimeCurve-C3r3LUBt.js → stressTimeCurve-hrlqSYS3.js} +3 -3
  290. package/dist/{swiper-wWrsPbDA.cjs → swiper-CnGllhBQ.cjs} +1 -1
  291. package/dist/{swiper-JShIvM0E.js → swiper-DNHC412s.js} +2 -2
  292. package/dist/{terminalConfigList-DVhEvcTB.js → terminalConfigList-BlHAsyCm.js} +2 -2
  293. package/dist/{terminalConfigList-nQqB1W5s.cjs → terminalConfigList-C45EANO4.cjs} +1 -1
  294. package/dist/{terminalList-BkMuHXZw.cjs → terminalList-CNI3_FGb.cjs} +1 -1
  295. package/dist/{terminalList-wAz6t4Ib.js → terminalList-UGjkhyf4.js} +2 -2
  296. package/dist/{terminalListAPP-CePxWgcL.cjs → terminalListAPP-6fPXF-yJ.cjs} +1 -1
  297. package/dist/{terminalListAPP-DuLN2OVq.js → terminalListAPP-CIJZMdxI.js} +2 -2
  298. package/dist/{textbox-DxXuhIyj.js → textbox-BD_LQ0EN.js} +2 -2
  299. package/dist/{textbox-BBi-Lg1Z.cjs → textbox-yNPnOaan.cjs} +1 -1
  300. package/dist/{timeQueryBar-BCTeL04F.cjs → timeQueryBar-3qiV0IV9.cjs} +1 -1
  301. package/dist/{timeQueryBar-DtngkLJX.js → timeQueryBar-B-uPtN25.js} +1 -1
  302. package/dist/{timeSeries-DJZnExBA.cjs → timeSeries-BTUuojvj.cjs} +1 -1
  303. package/dist/{timeSeries-CrdyAYs2.js → timeSeries-DdQI4oZU.js} +3 -3
  304. package/dist/{timeSeriesCurve-8_n0JJyf.cjs → timeSeriesCurve-Cj_FbK4x.cjs} +1 -1
  305. package/dist/{timeSeriesCurve-8_exdGlQ.js → timeSeriesCurve-TGXshTzl.js} +3 -3
  306. package/dist/{toggleBtn-DExYfMvi.js → toggleBtn-BMxqm5WG.js} +2 -2
  307. package/dist/{toggleBtn-B6dJ5cAt.cjs → toggleBtn-BXcQfnTB.cjs} +1 -1
  308. package/dist/{trajectoryConfigPanel-B2fwoe-I.cjs → trajectoryConfigPanel-CqoKO0hL.cjs} +1 -1
  309. package/dist/{trajectoryConfigPanel-Ce1SoMtw.js → trajectoryConfigPanel-uRLWdXUb.js} +1 -1
  310. package/dist/{trajectoryScatter-h32teAQ0.js → trajectoryScatter-DPE4cC8N.js} +2 -2
  311. package/dist/{trajectoryScatter-CVLEXMPO.cjs → trajectoryScatter-Dph8PSdN.cjs} +1 -1
  312. package/dist/{universalConfigPanel-CxbrIc2Z.js → universalConfigPanel-CI1CuBmr.js} +1 -1
  313. package/dist/{universalConfigPanel-cRzJmx3l.cjs → universalConfigPanel-Db-pC67o.cjs} +1 -1
  314. package/dist/{universalTable-BssAi-QH.js → universalTable-DMrgtBrw.js} +2 -2
  315. package/dist/{universalTable-V604pFVr.cjs → universalTable-dQObEQog.cjs} +1 -1
  316. package/dist/{video-BjmIbrRS.js → video-DEhLie80.js} +2 -2
  317. package/dist/{video-B8JeGpBc.cjs → video-DbsKQhVD.cjs} +1 -1
  318. package/dist/{videoMonitor-CVkFwlZq.js → videoMonitor-BS6_LYUb.js} +12 -12
  319. package/dist/{videoMonitor-B6FzkJlS.cjs → videoMonitor-DLBtivXO.cjs} +1 -1
  320. package/dist/vlu-DXk_wQf-.cjs +1 -0
  321. package/dist/vlu-DaSjPY3I.js +149 -0
  322. package/dist/{warningOverview-DDOm2wwB.js → warningOverview-CKCEs_Jj.js} +3 -3
  323. package/dist/{warningOverview-4M-WX3Ob.cjs → warningOverview-DAUlXzr0.cjs} +1 -1
  324. package/dist/{weather-BGrOQFPM.cjs → weather-BAI0IWNH.cjs} +1 -1
  325. package/dist/{weather-CETxcsJS.js → weather-XUj6pFwM.js} +2 -2
  326. package/dist/{windLin-B3YXltBn.js → windLin-Bt4q2eUT.js} +2 -2
  327. package/dist/{windLin-B6uEtUnB.cjs → windLin-C9dsCT1w.cjs} +1 -1
  328. package/package.json +1 -1
  329. package/dist/BaseComponent-CaCkjmmb.cjs +0 -1
  330. package/dist/arrayCard-BYZWRop3.cjs +0 -1
  331. package/dist/arrayCard-CVVWnZDk.js +0 -131
  332. package/dist/bar-1K14ZPKy.cjs +0 -2
  333. package/dist/clt-BCHpLoab.cjs +0 -1
  334. package/dist/clt-Ba9Ov5WY.js +0 -296
  335. package/dist/cmc-CdDCboSm.cjs +0 -1
  336. package/dist/cmc-CsVB4uz3.js +0 -277
  337. package/dist/controlRecordListAPP-BktJCkFK.cjs +0 -1
  338. package/dist/controlRecordListAPP-CSt8rFZX.js +0 -502
  339. package/dist/evn-B2F6pbqY.js +0 -158
  340. package/dist/evn-B6WNZ0pv.cjs +0 -1
  341. package/dist/gasStationList-CN2y3zri.cjs +0 -1
  342. package/dist/gasStationList-CifrfkH0.js +0 -1239
  343. package/dist/index-BzWbqJIl.cjs +0 -612
  344. package/dist/mixiotObjectListApi-BwIQvSS-.js +0 -67
  345. package/dist/mixiotObjectListApi-ClirV2tM.cjs +0 -1
  346. package/dist/objectList-Cpu0yqsK.js +0 -1740
  347. package/dist/objectList-D5E8PU66.cjs +0 -1
  348. package/dist/objectListAPP-Cr4uoJuN.cjs +0 -1
  349. package/dist/retainerRecordList-C9xVt3Yk.cjs +0 -1
  350. package/dist/retainerRecordListAPP-BRmG7UnF.cjs +0 -1
  351. package/dist/retainerRecordListAPP-Cjip5JHS.js +0 -1070
  352. package/dist/scd-CCNgUI2Q.cjs +0 -1
  353. package/dist/vlu-CHHDngO6.js +0 -142
  354. package/dist/vlu-Dv1vt9r0.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";var pt=Object.defineProperty,ht=Object.defineProperties;var mt=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var ft=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable;var J=(t,r,i)=>r in t?pt(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,U=(t,r)=>{for(var i in r||(r={}))ft.call(r,i)&&J(t,i,r[i]);if(K)for(var i of K(r))gt.call(r,i)&&J(t,i,r[i]);return t},$=(t,r)=>ht(t,mt(r));var tt=(t,r,i)=>new Promise((h,_)=>{var v=e=>{try{s(i.next(e))}catch(o){_(o)}},n=e=>{try{s(i.throw(e))}catch(o){_(o)}},s=e=>e.done?h(e.value):Promise.resolve(e.value).then(v,n);s((i=i.apply(t,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const vt=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/icon/style/css");const w=require("vue"),yt=require("./BaseComponent-CaCkjmmb.cjs"),V=require("./index-BzWbqJIl.cjs"),_t=require("./titleStyle-NSnz6cUg.cjs"),bt=require("@element-plus/icons-vue"),et=require("./ele-bmp-icon-BBI0-SX7.cjs"),it=3.141592653589793*3e3/180,T=3.141592653589793,nt=6378245,ot=.006693421622965943;function wt(t,r){var i=Math.sqrt(t*t+r*r)+2e-5*Math.sin(r*it),h=Math.atan2(r,t)+3e-6*Math.cos(t*it),_=i*Math.cos(h)+.0065,v=i*Math.sin(h)+.006;return[_,v]}function Mt(t,r){if(kt(t,r))return[t,r];{var i=Ct(t-105,r-35),h=Bt(t-105,r-35),_=r/180*T,v=Math.sin(_);v=1-ot*v*v;var n=Math.sqrt(v);i=i*180/(nt*(1-ot)/(v*n)*T),h=h*180/(nt/n*Math.cos(_)*T);const s=r+i;return[t+h,s]}}function xt(t,r){const i=Mt(t,r);return wt(i[0],i[1])}function Ct(t,r){var i=-100+2*t+3*r+.2*r*r+.1*t*r+.2*Math.sqrt(Math.abs(t));return i+=(20*Math.sin(6*t*T)+20*Math.sin(2*t*T))*2/3,i+=(20*Math.sin(r*T)+40*Math.sin(r/3*T))*2/3,i+=(160*Math.sin(r/12*T)+320*Math.sin(r*T/30))*2/3,i}function Bt(t,r){var i=300+t+2*r+.1*t*t+.1*t*r+.1*Math.sqrt(Math.abs(t));return i+=(20*Math.sin(6*t*T)+20*Math.sin(2*t*T))*2/3,i+=(20*Math.sin(t*T)+40*Math.sin(t/3*T))*2/3,i+=(150*Math.sin(t/12*T)+300*Math.sin(t/30*T))*2/3,i}function kt(t,r){return t<72.004||t>137.8347||r<.8293||r>55.8271||!1}var St={"bm-map":["click","dblclick","rightclick","rightdblclick","maptypechange","mousemove","mouseover","mouseout","movestart","moving","moveend","zoomstart","zoomend","addoverlay","addcontrol","removecontrol","removeoverlay","clearoverlays","dragstart","dragging","dragend","addtilelayer","removetilelayer","load","resize","hotspotclick","hotspotover","hotspotout","tilesloaded","touchstart","touchmove","touchend","longpress"],"bm-geolocation":["locationSuccess","locationError"],"bm-overview-map":["viewchanged","viewchanging"],"bm-marker":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","infowindowclose","infowindowopen","dragstart","dragging","dragend","rightclick"],"bm-polyline":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-polygon":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-circle":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-label":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","rightclick"],"bm-info-window":["close","open","maximize","restore","clickclose"],"bm-ground":["click","dblclick"],"bm-autocomplete":["onconfirm","onhighlight"],"bm-point-collection":["click","mouseover","mouseout"]};function lt(t,r){const i=r||St[this.$options.name];i&&i.forEach(h=>{let v=h.slice(0,2)==="on"?h.slice(2):h;const n=this.$attrs["on"+v.replace(v[0],v[0].toUpperCase())];n&&t.addEventListener(h,n)})}function G(t,r={}){const{lng:i,lat:h}=r;return new t.Point(i,h)}function D(t,r={}){const{width:i,height:h}=r;return new t.Size(i,h)}function rt(t,r={}){const{url:i,size:h,opts:_={}}=r;let v={anchor:_.anchor&&D(t,_.anchor),imageSize:_.imageSize&&D(t,_.imageSize),imageOffset:_.imageOffset&&D(t,_.imageOffset),infoWindowAnchor:_.infoWindowAnchor&&D(t,_.infoWindowAnchor),printImageUrl:_.printImageUrl};return Q(v),new t.Icon(i,D(t,h),v)}function Ot(t,r={}){const{content:i,opts:h}=r;let _={offset:h.offset&&D(t,h.offset),position:h.position&&G(t,h.position),enableMassClear:h.enableMassClear};return Q(_),new t.Label(i,_)}const at=t=>Object.prototype.toString.call(t).slice(8,-1),Q=t=>{Object.keys(t).forEach(r=>{typeof t[r]=="undefined"&&delete t[r]})};let W={v:"3.0",type:"API"};const Et=(t={})=>{W=Object.assign(W,t),W.ak||console.error("请配置ak:百度地图开发者平台申请的密钥")},N=()=>W;var Z=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},X={exports:{}};function Y(){}Y.prototype={on:function(t,r,i){var h=this.e||(this.e={});return(h[t]||(h[t]=[])).push({fn:r,ctx:i}),this},once:function(t,r,i){var h=this;function _(){h.off(t,_),r.apply(i,arguments)}return _._=r,this.on(t,_,i)},emit:function(t){var r=[].slice.call(arguments,1),i=((this.e||(this.e={}))[t]||[]).slice(),h=0,_=i.length;for(h;h<_;h++)i[h].fn.apply(i[h].ctx,r);return this},off:function(t,r){var i=this.e||(this.e={}),h=i[t],_=[];if(h&&r)for(var v=0,n=h.length;v<n;v++)h[v].fn!==r&&h[v].fn._!==r&&_.push(h[v]);return _.length?i[t]=_:delete i[t],this}};X.exports=Y;X.exports.TinyEmitter=Y;var Pt=X.exports,L=new Pt,I={$on:(...t)=>L.on(...t),$once:(...t)=>L.once(...t),$off:(...t)=>L.off(...t),$emit:(...t)=>L.emit(...t)};const st={API:{"2.0":{setMapStyle:"setMapStyle",NavigationControl:"NavigationControl"},"3.0":{setMapStyle:"setMapStyleV2",NavigationControl:"NavigationControl"}},WebGL:{setMapStyle:"setMapStyleV2",NavigationControl:"NavigationControl3D"}},F=t=>{const r=N();return r.type=="WebGL"?st[r.type][t]:st[r.type][r.v][t]};let ut;new Promise(t=>{ut=t});var q=(t,r)=>{const i=t.__vccOpts||t;for(const[h,_]of r)i[h]=_;return i};const zt={name:"bm-map",inheritAttrs:!1,emits:["ready","init","animationed"],props:{ak:{type:String},v:{type:String},type:{type:String},center:{type:[Object,String]},zoom:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},highResolution:{type:Boolean,default:!0},mapClick:{type:Boolean,default:!0},mapType:{type:String},dragging:{type:Boolean,default:!0},scrollWheelZoom:{type:Boolean,default:!1},doubleClickZoom:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},inertialDragging:{type:Boolean,default:!0},continuousZoom:{type:Boolean,default:!0},pinchToZoom:{type:Boolean,default:!0},autoResize:{type:Boolean,default:!0},theme:{type:Array},mapStyle:{type:Object},hasAnimation:{type:Boolean,default:!0},defaultAnimation:{type:Boolean,default:!0},preserveDrawingBuffer:{type:Boolean,default:!1}},watch:{center(t,r){const{map:i,zoom:h}=this;at(t)==="String"&&t!==r&&this.setCenterZoom(i,t,h)},"center.lng"(t,r){const{BMap:i,map:h,zoom:_,center:v}=this;t!==r&&t>=-180&&t<=180&&this.setCenterZoom(h,new i.Point(t,v.lat),_)},"center.lat"(t,r){const{BMap:i,map:h,zoom:_,center:v}=this;t!==r&&t>=-74&&t<=74&&this.setCenterZoom(h,new i.Point(v.lng,t),_)},zoom(t,r){const{map:i}=this;t!==r&&t>=3&&t<=19&&i.setZoom(t)},minZoom(t){const{map:r}=this;r.setMinZoom(t)},maxZoom(t){const{map:r}=this;r.setMaxZoom(t)},highResolution(){this.reset()},mapClick(){this.reset()},mapType(t){const{map:r}=this;r.setMapType(window[t])},dragging(t){const{map:r}=this;t?r.enableDragging():r.disableDragging()},scrollWheelZoom(t){const{map:r}=this;t?r.enableScrollWheelZoom():r.disableScrollWheelZoom()},doubleClickZoom(t){const{map:r}=this;t?r.enableDoubleClickZoom():r.disableDoubleClickZoom()},keyboard(t){const{map:r}=this;t?r.enableKeyboard():r.disableKeyboard()},inertialDragging(t){const{map:r}=this;t?r.enableInertialDragging():r.disableInertialDragging()},continuousZoom(t){const{map:r}=this;t?r.enableContinuousZoom():r.disableContinuousZoom()},pinchToZoom(t){const{map:r}=this;t?r.enablePinchToZoom():r.disablePinchToZoom()},autoResize(t){const{map:r}=this;t?r.enableAutoResize():r.disableAutoResize()},theme(t){const{map:r}=this;r[F("setMapStyle")]({styleJson:t})},mapStyle:{handler(t){const{map:r,theme:i}=this;!i&&r[F("setMapStyle")](t)},deep:!0}},methods:{setMapOptions(){const{map:t,minZoom:r,maxZoom:i,mapType:h,dragging:_,scrollWheelZoom:v,doubleClickZoom:n,keyboard:s,inertialDragging:e,continuousZoom:o,pinchToZoom:c,autoResize:p}=this;r&&t.setMinZoom(r),i&&t.setMaxZoom(i),h&&t.setMapType(window[h]),_?t.enableDragging():t.disableDragging(),v?t.enableScrollWheelZoom():t.disableScrollWheelZoom(),n?t.enableDoubleClickZoom():t.disableDoubleClickZoom(),s?t.enableKeyboard():t.disableKeyboard(),e?t.enableInertialDragging():t.disableInertialDragging(),o?t.enableContinuousZoom():t.disableContinuousZoom(),c?t.enablePinchToZoom():t.disablePinchToZoom(),p?t.enableAutoResize():t.disableAutoResize()},init(t){if(this.map)return;let r=this.$refs.view;const i=new t.Map(r,{enableHighResolution:this.highResolution,enableMapClick:this.mapClick,preserveDrawingBuffer:this.preserveDrawingBuffer}),h=Math.random().toString();this.mapKey=h,this.map=i;const{setMapOptions:_,zoom:v,getCenterPoint:n,theme:s,mapStyle:e}=this;_(),lt.call(this,i),i.reset(),this.setCenterZoom(i,n(),v),s?i[F("setMapStyle")]({styleJson:s}):e&&i[F("setMapStyle")](e);let o=0;this.$emit("init",{BMap:t,map:i,mapKey:h}),I.$emit("init",{BMap:t,map:i,mapKey:h}),i.addEventListener("tilesloaded",()=>{o||(o++,this.$emit("ready",{BMap:t,map:i,mapKey:h}),I.$emit("ready",{BMap:t,map:i,mapKey:h}))}),i.addEventListener("loaded",()=>{this.$emit("loaded",{BMap:t,map:i,mapKey:h}),I.$emit("loaded",{BMap:t,map:i,mapKey:h})})},setCenterZoom(t,r,i){N().type==="WebGL"&&(!this.hasAnimation||!this.defaultAnimation)?t.setCenter(r,{noAnimation:!this.hasAnimation,callback:()=>{t.setZoom(i,{noAnimation:!this.hasAnimation,zoomCenter:r,callback:()=>{this.$emit("animationed",{BMap:this.BMap,map:t})}})}}):t.centerAndZoom(r,i)},getCenterPoint(){const{center:t,BMap:r}=this;switch(at(t)){case"String":return t;case"Object":return new r.Point(t.lng,t.lat);default:return new r.Point}},initMap(t){this.BMap=t,this.init(t),ut(t)},getMapScript(){return window.BMap?window.BMap._preloader?window.BMap._preloader:Promise.resolve(window.BMap):(window.BMap={},window.BMap._preloader=new Promise((t,r)=>{window._initBaiduMap=function(){window.BMap=N().type=="WebGL"?window.BMapGL:window.BMap,t(window.BMap),window.document.body.removeChild(i),window.BMap._preloader=null,window._initBaiduMap=null};const i=document.createElement("script");window.document.body.appendChild(i),N().type==="WebGL"?i.src=`https://api.map.baidu.com/api?v=1.0&type=webgl&ak=${N().ak}&callback=_initBaiduMap`:i.src=`https://api.map.baidu.com/api?v=${N().v}&ak=${N().ak}&callback=_initBaiduMap`}),window.BMap._preloader)},reset(){const{getMapScript:t,initMap:r}=this;t().then(r)}},created(){const t={};this.ak&&(t.ak=this.ak),this.v&&(t.v=this.v),this.type&&(t.type=this.type),Et(t)},mounted(){this.reset()},data(){return{hasBmView:!1,map:null,BMap:null,name:"bm-map",mapKey:""}}},Tt={key:0,ref:"view",style:{width:"100%",height:"100%"}};function At(t,r,i,h,_,v){return w.openBlock(),w.createElementBlock("div",{class:w.normalizeClass(t.$attrs.class),style:w.normalizeStyle(t.$attrs.style)},[_.hasBmView?w.createCommentVNode("",!0):(w.openBlock(),w.createElementBlock("div",Tt,null,512)),w.renderSlot(t.$slots,"default")],6)}var Dt=q(zt,[["render",At]]);const Nt={control:{unload:"removeControl"},layer:{unload:"removeTileLayer"},overlay:{unload:"removeOverlay"},contextMenu:{unload:"removeContextMenu"}},R=t=>t.abstract||t.name!=="bm-map"?R(t.$parent):t;function It(){const{unload:t,renderByParent:r,$parent:i,ready:h}=this;I.$off("ready",h),r&&i.reload(),t()}const Rt=(t={})=>({emits:["ready","init"],computed:{renderByParent(){return this.$parent.preventChildrenRender}},created(){const r=R(this.$parent),i=r.map,{ready:h,_init:_}=this;i?h():I.$on("ready",({mapKey:v})=>this.emitCallBack(v,h)),i?this.init({BMap:r.BMap,map:i}):I.$on("init",({mapKey:v})=>this.emitCallBack(v,_))},mounted(){const i=R(this.$parent).map,{mountedReady:h}=this;i?h():I.$on("ready",({mapKey:_})=>this.emitCallBack(_,h))},unmounted:It,methods:{emitCallBack(r,i){const h=R(this.$parent);r==h.mapKey&&i()},_init(){const r=R(this.$parent),i=this.BMap=r.BMap,h=this.map=r.map;this.init({BMap:i,map:h})},init(){},ready(){const r=R(this.$parent),i=this.BMap=r.BMap,h=this.map=r.map;this.load(),this.$emit("ready",{BMap:i,map:h})},mountedReady(){this.mountedLoad()},transmitEvent(r){this.$emit(r.type.replace(/^on/,""),r)},reload(){this&&this.BMap&&this.$nextTick(()=>{this.unload(),this.$nextTick(()=>{this.load(),this.mountedLoad()})})},unload(){const{map:r,originInstance:i}=this;try{switch(t.type){case"search":return i.clearResults();case"autoComplete":case"lushu":return i.dispose();case"markerClusterer":return i.clearMarkers();default:r[Nt[t.type].unload](i)}}catch(h){}},mountedLoad(){}}});var ct=t=>Rt({type:t});const Zt={name:"bm-marker",mixins:[ct("overlay")],inject:{Cluster:{default:()=>({})}},props:{position:{},offset:{},icon:{},massClear:{type:Boolean,default:!0},dragging:{type:Boolean,default:!1},clicking:{type:Boolean,default:!0},raiseOnDrag:{type:Boolean,default:!1},draggingCursor:{type:String},rotation:{type:Number},shadow:{type:Object},title:{type:String},label:{type:Object},animation:{type:String},top:{type:Boolean,default:!1},zIndex:{type:Number,default:0}},watch:{"position.lng"(t,r){const{BMap:i,originInstance:h,position:_,renderByParent:v,$parent:n}=this;t!==r&&t>=-180&&t<=180&&h.setPosition(G(i,{lng:t,lat:_.lat})),v&&n.reload()},"position.lat"(t,r){const{BMap:i,originInstance:h,position:_,renderByParent:v,$parent:n}=this;t!==r&&t>=-74&&t<=74&&h.setPosition(G(i,{lng:_.lng,lat:t})),v&&n.reload()},"offset.width"(t,r){const{BMap:i,originInstance:h}=this;t!==r&&h.setOffset(new i.Size(t,this.offset.height))},"offset.height"(t,r){const{BMap:i,originInstance:h}=this;t!==r&&h.setOffset(new i.Size(this.offset.width,t))},icon:{deep:!0,handler(t){const{BMap:r,originInstance:i,rotation:h}=this;i&&i.setIcon(rt(r,t)),h&&i&&i.setRotation(h)}},massClear(t){t?this.originInstance.enableMassClear():this.originInstance.disableMassClear()},dragging(t){t?this.originInstance.enableDragging():this.originInstance.disableDragging()},clicking(){this.reload()},raiseOnDrag(){this.reload()},draggingCursor(t){this.originInstance.setDraggingCursor(t)},rotation(t){this.originInstance.setRotation(t)},shadow(t){this.originInstance.setShadow(t)},title(t){this.originInstance.setTitle(t)},label(t){this.reload()},animation(t){this.originInstance.setAnimation(window[t])},top(t){this.originInstance.setTop(t)},zIndex(t){this.originInstance.setZIndex(t)}},methods:{load(){var t,r;const{BMap:i,map:h,position:_,offset:v,icon:n,massClear:s,dragging:e,clicking:o,raiseOnDrag:c,draggingCursor:p,rotation:f,shadow:a,title:d,label:y,animation:x,top:u,renderByParent:B,$parent:O,zIndex:z}=this;let k={offset:v,icon:n&&rt(i,n),enableMassClear:s,enableDragging:e,enableClicking:o,raiseOnDrag:c,draggingCursor:p,rotation:f,shadow:a,title:d};Q(k);const l=new i.Marker(new i.Point(_.lng,_.lat),k);this.originInstance=l,y&&l&&l.setLabel(Ot(i,y)),l.setTop(u),l.setZIndex(z),lt.call(this,l),B?O.reload():h.addOverlay(l),l.setAnimation(window[x]),(r=(t=this.Cluster)==null?void 0:t.addMaker)==null||r.call(t,this)}},beforeUnmount(){var t,r;(r=(t=this.Cluster)==null?void 0:t.removeMaker)==null||r.call(t,this)}};function jt(t,r,i,h,_,v){return w.openBlock(),w.createElementBlock("div",null,[w.renderSlot(t.$slots,"default")])}var Lt=q(Zt,[["render",jt]]),dt={exports:{}};(function(t,r){(function(i,h){t.exports=h()})(Z,function(){var i=typeof window!="undefined"?window:typeof Z!="undefined"?Z:this;function h(a,d){return d={exports:{}},a(d,d.exports,i),d.exports}var _=h(function(a,d,y){(function(x,u){typeof d=="object"?a.exports=u():(x.BMapLib=x.BMapLib||{},x.BMapLib.TextIconOverlay=x.BMapLib.TextIconOverlay||u())})(i,function(){var x,u=x=u||{version:"1.3.8"},B={};u.guid="$BAIDU$",B[u.guid]=B[u.guid]||{},u.dom=u.dom||{},u.dom.g=function(l){return typeof l=="string"||l instanceof String?document.getElementById(l):l&&l.nodeName&&(l.nodeType==1||l.nodeType==9)?l:null},u.g=u.G=u.dom.g,u.dom.getDocument=function(l){return l=u.dom.g(l),l.nodeType==9?l:l.ownerDocument||l.document},u.lang=u.lang||{},u.lang.isString=function(l){return Object.prototype.toString.call(l)=="[object String]"},u.isString=u.lang.isString,u.dom._g=function(l){return u.lang.isString(l)?document.getElementById(l):l},u._g=u.dom._g,u.browser=u.browser||{},/msie (\d+\.\d)/i.test(navigator.userAgent)&&(u.browser.ie=u.ie=document.documentMode||+RegExp.$1),u.dom.getComputedStyle=function(l,m){l=u.dom._g(l);var g=u.dom.getDocument(l),M;return g.defaultView&&g.defaultView.getComputedStyle&&(M=g.defaultView.getComputedStyle(l,null),M)?M[m]||M.getPropertyValue(m):""},u.dom._styleFixer=u.dom._styleFixer||{},u.dom._styleFilter=u.dom._styleFilter||[],u.dom._styleFilter.filter=function(l,m,g){for(var M=0,b=u.dom._styleFilter,E;E=b[M];M++)(E=E[g])&&(m=E(l,m));return m},u.string=u.string||{},u.string.toCamelCase=function(l){return l.indexOf("-")<0&&l.indexOf("_")<0?l:l.replace(/[-_][^-_]/g,function(m){return m.charAt(1).toUpperCase()})},u.dom.getStyle=function(l,m){var g=u.dom;l=g.g(l),m=u.string.toCamelCase(m);var M=l.style[m]||(l.currentStyle?l.currentStyle[m]:"")||g.getComputedStyle(l,m);if(!M){var b=g._styleFixer[m];b&&(M=b.get?b.get(l):u.dom.getStyle(l,b))}return(b=g._styleFilter)&&(M=b.filter(m,M,"get")),M},u.getStyle=u.dom.getStyle,/opera\/(\d+\.\d)/i.test(navigator.userAgent)&&(u.browser.opera=+RegExp.$1),u.browser.isWebkit=/webkit/i.test(navigator.userAgent),u.browser.isGecko=/gecko/i.test(navigator.userAgent)&&!/like gecko/i.test(navigator.userAgent),u.browser.isStrict=document.compatMode=="CSS1Compat",u.dom.getPosition=function(l){l=u.dom.g(l);var m=u.dom.getDocument(l),g=u.browser,M=u.dom.getStyle;g.isGecko>0&&m.getBoxObjectFor&&M(l,"position")=="absolute"&&(l.style.top===""||l.style.left);var b={left:0,top:0},E=g.ie&&!g.isStrict?m.body:m.documentElement,C,S;if(l==E)return b;if(l.getBoundingClientRect){S=l.getBoundingClientRect(),b.left=Math.floor(S.left)+Math.max(m.documentElement.scrollLeft,m.body.scrollLeft),b.top=Math.floor(S.top)+Math.max(m.documentElement.scrollTop,m.body.scrollTop),b.left-=m.documentElement.clientLeft,b.top-=m.documentElement.clientTop;var P=m.body,A=parseInt(M(P,"borderLeftWidth")),j=parseInt(M(P,"borderTopWidth"));g.ie&&!g.isStrict&&(b.left-=isNaN(A)?2:A,b.top-=isNaN(j)?2:j)}else{C=l;do{if(b.left+=C.offsetLeft,b.top+=C.offsetTop,g.isWebkit>0&&M(C,"position")=="fixed"){b.left+=m.body.scrollLeft,b.top+=m.body.scrollTop;break}C=C.offsetParent}while(C&&C!=l);for((g.opera>0||g.isWebkit>0&&M(l,"position")=="absolute")&&(b.top-=m.body.offsetTop),C=l.offsetParent;C&&C!=m.body;)b.left-=C.scrollLeft,(!g.opera||C.tagName!="TR")&&(b.top-=C.scrollTop),C=C.offsetParent}return b},u.event=u.event||{},u.event._listeners=u.event._listeners||[],u.event.on=function(l,m,g){m=m.replace(/^on/i,""),l=u.dom._g(l);var M=function(P){g.call(l,P)},b=u.event._listeners,E=u.event._eventFilter,C,S=m;return m=m.toLowerCase(),E&&E[m]&&(C=E[m](l,m,M),S=C.type,M=C.listener),l.addEventListener?l.addEventListener(S,M,!1):l.attachEvent&&l.attachEvent("on"+S,M),b[b.length]=[l,m,g,M,S],l},u.on=u.event.on,(function(){var l=B[u.guid];u.lang.guid=function(){return"TANGRAM__"+(l._counter++).toString(36)},l._counter=l._counter||1})(),B[u.guid]._instances=B[u.guid]._instances||{},u.lang.isFunction=function(l){return Object.prototype.toString.call(l)=="[object Function]"},u.lang.Class=function(l){this.guid=l||u.lang.guid(),B[u.guid]._instances[this.guid]=this},B[u.guid]._instances=B[u.guid]._instances||{},u.lang.Class.prototype.dispose=function(){delete B[u.guid]._instances[this.guid];for(var l in this)u.lang.isFunction(this[l])||delete this[l];this.disposed=!0},u.lang.Class.prototype.toString=function(){return"[object "+(this._className||"Object")+"]"},u.lang.Event=function(l,m){this.type=l,this.returnValue=!0,this.target=m||null,this.currentTarget=null},u.lang.Class.prototype.addEventListener=function(l,m,g){if(u.lang.isFunction(m)){!this.__listeners&&(this.__listeners={});var M=this.__listeners,b;if(typeof g=="string"&&g){if(/[^\w\-]/.test(g))throw"nonstandard key:"+g;m.hashCode=g,b=g}l.indexOf("on")!=0&&(l="on"+l),typeof M[l]!="object"&&(M[l]={}),b=b||u.lang.guid(),m.hashCode=b,M[l][b]=m}},u.lang.Class.prototype.removeEventListener=function(l,m){if(!(typeof m!="undefined"&&(u.lang.isFunction(m)&&!(m=m.hashCode)||!u.lang.isString(m)))){!this.__listeners&&(this.__listeners={}),l.indexOf("on")!=0&&(l="on"+l);var g=this.__listeners;if(g[l])if(typeof m!="undefined")g[l][m]&&delete g[l][m];else for(var M in g[l])delete g[l][M]}},u.lang.Class.prototype.dispatchEvent=function(l,m){u.lang.isString(l)&&(l=new u.lang.Event(l)),!this.__listeners&&(this.__listeners={}),m=m||{};for(var g in m)l[g]=m[g];var g,M=this.__listeners,b=l.type;if(l.target=l.target||this,l.currentTarget=this,b.indexOf("on")!=0&&(b="on"+b),u.lang.isFunction(this[b])&&this[b].apply(this,arguments),typeof M[b]=="object")for(g in M[b])M[b][g].apply(this,arguments);return l.returnValue},u.lang.inherits=function(l,m,g){var M,b,E=l.prototype,C=new Function;C.prototype=m.prototype,b=l.prototype=new C;for(M in E)b[M]=E[M];l.prototype.constructor=l,l.superClass=m.prototype,typeof g=="string"&&(b._className=g)},u.inherits=u.lang.inherits;var O="http://api.map.baidu.com/library/TextIconOverlay/1.2/src/images/m",z="png",k=function(l,m,g){try{BMap}catch(M){throw Error("Baidu Map JS API is not ready yet!")}x.lang.inherits(k,BMap.Overlay,"TextIconOverlay"),this._position=l,this._text=m,this._options=g||{},this._styles=this._options.styles||[],!this._styles.length&&this._setupDefaultStyles()};return k.prototype._setupDefaultStyles=function(){for(var l=[53,56,66,78,90],m=0,g;g=l[m];m++)this._styles.push({url:O+m+"."+z,size:new BMap.Size(g,g)})},k.prototype.initialize=function(l){return this._map=l,this._domElement=document.createElement("div"),this._updateCss(),this._updateText(),this._updatePosition(),this._bind(),this._map.getPanes().markerMouseTarget.appendChild(this._domElement),this._domElement},k.prototype.draw=function(){this._map&&this._updatePosition()},k.prototype.getText=function(){return this._text},k.prototype.setText=function(l){l&&(!this._text||this._text.toString()!=l.toString())&&(this._text=l,this._updateText(),this._updateCss(),this._updatePosition())},k.prototype.getPosition=function(){return this._position},k.prototype.setPosition=function(l){l&&(!this._position||!this._position.equals(l))&&(this._position=l,this._updatePosition())},k.prototype.getStyleByText=function(l,m){var g=parseInt(l),M=parseInt(g/10);return M=Math.max(0,M),M=Math.min(M,m.length-1),m[M]},k.prototype._updateCss=function(){if(this._domElement){var l=this.getStyleByText(this._text,this._styles);this._domElement.style.cssText=this._buildCssText(l)}},k.prototype._updateText=function(){this._domElement&&(this._domElement.innerHTML=this._text)},k.prototype._updatePosition=function(){if(this._domElement&&this._position){var l=this._domElement.style,m=this._map.pointToOverlayPixel(this._position);m.x-=Math.ceil(parseInt(l.width)/2),m.y-=Math.ceil(parseInt(l.height)/2),l.left=m.x+"px",l.top=m.y+"px"}},k.prototype._buildCssText=function(l){var m=l.url,g=l.size,M=l.anchor,b=l.offset,E=l.textColor||"black",C=l.textSize||10,S=[];if(x.browser.ie<7)S.push('filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="'+m+'");');else{S.push("background-image:url("+m+");");var P="0 0";b instanceof BMap.Size&&(P=b.width+"px "+b.height+"px"),S.push("background-position:"+P+";")}return g instanceof BMap.Size&&(M instanceof BMap.Size?(M.height>0&&M.height<g.height&&S.push("height:"+(g.height-M.height)+"px; padding-top:"+M.height+"px;"),M.width>0&&M.width<g.width&&S.push("width:"+(g.width-M.width)+"px; padding-left:"+M.width+"px;")):(S.push("height:"+g.height+"px; line-height:"+g.height+"px;"),S.push("width:"+g.width+"px; text-align:center;"))),S.push("cursor:pointer; color:"+E+"; position:absolute; font-size:"+C+"px; font-family:Arial,sans-serif; font-weight:bold"),S.join("")},k.prototype._bind=function(){if(!this._domElement)return;var l=this,m=this._map,g=x.lang.Event;function M(b,E){var C=b.srcElement||b.target,S=b.clientX||b.pageX,P=b.clientY||b.pageY;if(b&&E&&S&&P&&C){var A=x.dom.getPosition(m.getContainer());E.pixel=new BMap.Pixel(S-A.left,P-A.top),E.point=m.pixelToPoint(E.pixel)}return E}x.event.on(this._domElement,"mouseover",function(b){l.dispatchEvent(M(b,new g("onmouseover")))}),x.event.on(this._domElement,"mouseout",function(b){l.dispatchEvent(M(b,new g("onmouseout")))}),x.event.on(this._domElement,"click",function(b){l.dispatchEvent(M(b,new g("onclick")))})},k})}),v=_&&typeof _=="object"&&"default"in _?_.default:_,n=function(a,d,y){d=s(d);var x=a.pointToPixel(d.getNorthEast()),u=a.pointToPixel(d.getSouthWest());x.x+=y,x.y-=y,u.x-=y,u.y+=y;var B=a.pixelToPoint(x),O=a.pixelToPoint(u);return new BMap.Bounds(O,B)},s=function(a){var d=e(a.getNorthEast().lng,-180,180),y=e(a.getSouthWest().lng,-180,180),x=e(a.getNorthEast().lat,-74,74),u=e(a.getSouthWest().lat,-74,74);return new BMap.Bounds(new BMap.Point(y,u),new BMap.Point(d,x))},e=function(a,d,y){return d&&(a=Math.max(a,d)),y&&(a=Math.min(a,y)),a},o=function(a){return Object.prototype.toString.call(a)==="[object Array]"},c=function(a,d){var y=-1;if(o(d)){if(d.indexOf)y=d.indexOf(a);else for(var x=0,u;u=d[x];x++)if(u===a){y=x;break}}return y},p=function(a,d){try{BMap}catch(B){throw Error("Baidu Map JS API is not ready yet!")}if(a){this._map=a,this._markers=[],this._clusters=[];var y=d||{};this._gridSize=y.gridSize||60,this._maxZoom=y.maxZoom||18,this._minClusterSize=y.minClusterSize||2,this._isAverageCenter=!1,y.isAverageCenter!=null&&(this._isAverageCenter=y.isAverageCenter),this._styles=y.styles||[];var x=this;this._map.addEventListener("zoomend",function(){x._redraw()}),this._map.addEventListener("moveend",function(){x._redraw()});var u=y.markers;o(u)&&this.addMarkers(u)}};p.prototype.addMarkers=function(a){if(a.length){for(var d=0,y=a.length;d<y;d++)this._pushMarkerTo(a[d]);this._createClusters()}},p.prototype._pushMarkerTo=function(a){var d=c(a,this._markers);d===-1&&(a.isInCluster=!1,this._markers.push(a))},p.prototype.addMarker=function(a){this._pushMarkerTo(a),this._createClusters()},p.prototype._createClusters=function(){var a=this._map.getBounds();if(a.getCenter())for(var d=n(this._map,a,this._gridSize),y=0,x;x=this._markers[y];y++)!x.isInCluster&&d.containsPoint(x.getPosition())&&this._addToClosestCluster(x)},p.prototype._addToClosestCluster=function(a){var d=4e6,y=null;a.getPosition();for(var x=0,u;u=this._clusters[x];x++){var B=u.getCenter();if(B){var O=this._map.getDistance(B,a.getPosition());O<d&&(d=O,y=u)}}if(y&&y.isMarkerInClusterBounds(a))y.addMarker(a);else{var u=new f(this);u.addMarker(a),this._clusters.push(u)}},p.prototype._clearLastClusters=function(){for(var a=0,d;d=this._clusters[a];a++)d.remove();this._clusters=[],this._removeMarkersFromCluster()},p.prototype._removeMarkersFromCluster=function(){for(var a=0,d;d=this._markers[a];a++)d.isInCluster=!1},p.prototype._removeMarkersFromMap=function(){for(var a=0,d;d=this._markers[a];a++){d.isInCluster=!1;var y=d.getLabel();this._map.removeOverlay(d),d.setLabel(y)}},p.prototype._removeMarker=function(a){var d=c(a,this._markers);return d===-1?!1:(this._map.removeOverlay(a),this._markers.splice(d,1),!0)},p.prototype.removeMarker=function(a){var d=this._removeMarker(a);return d&&(this._clearLastClusters(),this._createClusters()),d},p.prototype.removeMarkers=function(a){for(var d=!1,y=0;y<a.length;y++){var x=this._removeMarker(a[y]);d=d||x}return d&&(this._clearLastClusters(),this._createClusters()),d},p.prototype.clearMarkers=function(){this._clearLastClusters(),this._removeMarkersFromMap(),this._markers=[]},p.prototype._redraw=function(){this._clearLastClusters(),this._createClusters()},p.prototype.getGridSize=function(){return this._gridSize},p.prototype.setGridSize=function(a){this._gridSize=a,this._redraw()},p.prototype.getMaxZoom=function(){return this._maxZoom},p.prototype.setMaxZoom=function(a){this._maxZoom=a,this._redraw()},p.prototype.getStyles=function(){return this._styles},p.prototype.setStyles=function(a){this._styles=a,this._redraw()},p.prototype.getMinClusterSize=function(){return this._minClusterSize},p.prototype.setMinClusterSize=function(a){this._minClusterSize=a,this._redraw()},p.prototype.isAverageCenter=function(){return this._isAverageCenter},p.prototype.getMap=function(){return this._map},p.prototype.getMarkers=function(){return this._markers},p.prototype.getClustersCount=function(){for(var a=0,d=0,y;y=this._clusters[d];d++)y.isReal()&&a++;return a};function f(a){this._markerClusterer=a,this._map=a.getMap(),this._minClusterSize=a.getMinClusterSize(),this._isAverageCenter=a.isAverageCenter(),this._center=null,this._markers=[],this._gridBounds=null,this._isReal=!1,this._clusterMarker=new v(this._center,this._markers.length,{styles:this._markerClusterer.getStyles()})}return f.prototype.addMarker=function(a){if(this.isMarkerInCluster(a))return!1;if(!this._center)this._center=a.getPosition(),this.updateGridBounds();else if(this._isAverageCenter){var d=this._markers.length+1,y=(this._center.lat*(d-1)+a.getPosition().lat)/d,x=(this._center.lng*(d-1)+a.getPosition().lng)/d;this._center=new BMap.Point(x,y),this.updateGridBounds()}a.isInCluster=!0,this._markers.push(a);var u=this._markers.length;if(u<this._minClusterSize)return this._map.addOverlay(a),!0;if(u===this._minClusterSize)for(var B=0;B<u;B++){var O=this._markers[B].getLabel();this._markers[B].getMap()&&this._map.removeOverlay(this._markers[B]),this._markers[B].setLabel(O)}return this._map.addOverlay(this._clusterMarker),this._isReal=!0,this.updateClusterMarker(),!0},f.prototype.isMarkerInCluster=function(a){if(this._markers.indexOf)return this._markers.indexOf(a)!=-1;for(var d=0,y;y=this._markers[d];d++)if(y===a)return!0;return!1},f.prototype.isMarkerInClusterBounds=function(a){return this._gridBounds.containsPoint(a.getPosition())},f.prototype.isReal=function(a){return this._isReal},f.prototype.updateGridBounds=function(){var a=new BMap.Bounds(this._center,this._center);this._gridBounds=n(this._map,a,this._markerClusterer.getGridSize())},f.prototype.updateClusterMarker=function(){if(this._map.getZoom()>this._markerClusterer.getMaxZoom()){this._clusterMarker&&this._map.removeOverlay(this._clusterMarker);for(var a=0,d;d=this._markers[a];a++)this._map.addOverlay(d);return}if(this._markers.length<this._minClusterSize){this._clusterMarker.hide();return}this._clusterMarker.setPosition(this._center),this._clusterMarker.setText(this._markers.length),this._clusterMarker.addEventListener&&!this._clusterMarker._hasClickEvent&&this._clusterMarker.addEventListener("click",function(y){this._clusterMarker._hasClickEvent=!0,this._markers&&this._map.setViewport(this.getBounds())}.bind(this))},f.prototype.remove=function(){for(var a=0;this._markers[a];a++){var d=this._markers[a].getLabel();this._markers[a].getMap()&&this._map.removeOverlay(this._markers[a]),this._markers[a].setLabel(d)}this._map.removeOverlay(this._clusterMarker),this._markers.length=0,delete this._markers},f.prototype.getBounds=function(){for(var a=new BMap.Bounds(this._center,this._center),d=0,y;y=this._markers[d];d++)a.extend(y.getPosition());return a},f.prototype.getCenter=function(){return this._center},p})})(dt);var Ft=dt.exports;const H=[],Ht={name:"bml-marker-clusterer",mixins:[ct("markerClusterer")],provide(){return{Cluster:this}},props:{gridSize:{type:Number},maxZoom:{type:Number},minClusterSize:{type:Number},styles:{type:Array,default(){return[]}},averageCenter:{type:Boolean,default:!1}},data(){return{}},watch:{gridSize:{handler(t){const{BMap:r,originInstance:i}=this;i.setGridSize(t)},deep:!0},maxZoom(t){const{originInstance:r}=this;r.setMaxZoom(t)},minClusterSize:{handler(t){const{BMap:r,originInstance:i}=this;i.setMinClusterSize(t)},deep:!0},styles:{handler(t){const{BMap:r,originInstance:i}=this,h=JSON.parse(JSON.stringify(t)).map(_=>(_.size=_.size&&D(r,_.size),_));i.setStyles(h)},deep:!0},averageCenter(t){this.reload()}},methods:{load(){const{BMap:t,map:r,gridSize:i,minClusterSize:h,maxZoom:_,styles:v,averageCenter:n}=this;this.originInstance=new Ft(r,{gridSize:i||60,maxZoom:_,minClusterSize:h||2,styles:v.map(s=>(s.size=D(t,s.size),s)),isAverageCenter:n}),this.$nextTick(()=>{const s=H.map(e=>e.originInstance).filter(e=>e instanceof t.Marker);this.originInstance.addMarkers(s)})},addMaker(t){H.push(t)},removeMaker(t){H.splice(H.indexOf(t),1)}},beforeCreate(){this.preventChildrenRender=!0}};function Wt(t,r,i,h,_,v){return w.openBlock(),w.createElementBlock("span",null,[w.renderSlot(t.$slots,"default")])}var Vt=q(Ht,[["render",Wt]]),Gt={exports:{}};(function(t,r){(function(i,h){t.exports=h()})(Z,function(){var i={};i.dom={},i.dom.g=function(n){return typeof n=="string"||n instanceof String?document.getElementById(n):n&&n.nodeName&&(n.nodeType==1||n.nodeType==9)?n:null},i.g=i.G=i.dom.g,i.lang=i.lang||{},i.lang.isString=function(n){return Object.prototype.toString.call(n)=="[object String]"},i.isString=i.lang.isString,i.dom._g=function(n){return i.lang.isString(n)?document.getElementById(n):n},i._g=i.dom._g,i.dom.getDocument=function(n){return n=i.dom.g(n),n.nodeType==9?n:n.ownerDocument||n.document},i.browser=i.browser||{},i.browser.ie=i.ie=/msie (\d+\.\d+)/i.test(navigator.userAgent)?document.documentMode||+RegExp.$1:void 0,i.dom.getComputedStyle=function(n,s){n=i.dom._g(n);var e=i.dom.getDocument(n),o;return e.defaultView&&e.defaultView.getComputedStyle&&(o=e.defaultView.getComputedStyle(n,null),o)?o[s]||o.getPropertyValue(s):""},i.dom._styleFixer=i.dom._styleFixer||{},i.dom._styleFilter=i.dom._styleFilter||[],i.dom._styleFilter.filter=function(n,s,e){for(var o=0,c=i.dom._styleFilter,p;p=c[o];o++)(p=p[e])&&(s=p(n,s));return s},i.string=i.string||{},i.string.toCamelCase=function(n){return n.indexOf("-")<0&&n.indexOf("_")<0?n:n.replace(/[-_][^-_]/g,function(s){return s.charAt(1).toUpperCase()})},i.dom.getStyle=function(n,s){var e=i.dom;n=e.g(n),s=i.string.toCamelCase(s);var o=n.style[s]||(n.currentStyle?n.currentStyle[s]:"")||e.getComputedStyle(n,s);if(!o){var c=e._styleFixer[s];c&&(o=c.get?c.get(n):i.dom.getStyle(n,c))}return(c=e._styleFilter)&&(o=c.filter(s,o,"get")),o},i.getStyle=i.dom.getStyle,i.dom._NAME_ATTRS=(function(){var n={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",usemap:"useMap",frameborder:"frameBorder"};return i.browser.ie<8?(n.for="htmlFor",n.class="className"):(n.htmlFor="for",n.className="class"),n})(),i.dom.setAttr=function(n,s,e){return n=i.dom.g(n),s=="style"?n.style.cssText=e:(s=i.dom._NAME_ATTRS[s]||s,n.setAttribute(s,e)),n},i.setAttr=i.dom.setAttr,i.dom.setAttrs=function(n,s){n=i.dom.g(n);for(var e in s)i.dom.setAttr(n,e,s[e]);return n},i.setAttrs=i.dom.setAttrs,i.dom.create=function(n,s){var e=document.createElement(n),o=s||{};return i.dom.setAttrs(e,o)},i.object=i.object||{},i.extend=i.object.extend=function(n,s){for(var e in s)s.hasOwnProperty(e)&&(n[e]=s[e]);return n};var h=function(n,s,e){try{BMap}catch(o){throw Error("Baidu Map JS API is not ready yet!")}!s||s.length<1||(this._map=n,this._path=s,this.i=0,this._setTimeoutQuene=[],this._projection=this._map.getMapType().getProjection(),this._opts={icon:null,speed:4e3,defaultContent:"",showInfoWindow:!1},this._setOptions(e),this._rotation=0,!this._opts.icon instanceof BMap.Icon&&(this._opts.icon=defaultIcon))};h.prototype._setOptions=function(n){if(n)for(var s in n)n.hasOwnProperty(s)&&(this._opts[s]=n[s])},h.prototype.start=function(){var n=this,s=n._path.length;if(this._opts.onstart&&this._opts.onstart(n),n.i&&n.i<s-1)if(n._fromPause)n._fromStop||n._moveNext(++n.i);else return;else!n._marker&&n._addMarker(),n._timeoutFlag=setTimeout(function(){!n._overlay&&n._addInfoWin(),n._moveNext(n.i)},400);this._fromPause=!1,this._fromStop=!1},h.prototype.stop=function(){this.i=0,this._fromStop=!0,clearInterval(this._intervalFlag),this._clearTimeout();for(var n=0,s=this._opts.landmarkPois,e=s.length;n<e;n++)s[n].bShow=!1;this._opts.onstop&&this._opts.onstop(this)},h.prototype.pause=function(){clearInterval(this._intervalFlag),this._fromPause=!0,this._clearTimeout(),this._opts.onpause&&this._opts.onpause(this)},h.prototype.hideInfoWindow=function(){this._opts.showInfoWindow=!1,this._overlay&&(this._overlay._div.style.visibility="hidden")},h.prototype.showInfoWindow=function(){this._opts.showInfoWindow=!0,this._overlay&&(this._overlay._div.style.visibility="visible")},h.prototype.dispose=function(){clearInterval(this._intervalFlag),this._setTimeoutQuene&&this._clearTimeout(),this._map&&(this._map.removeOverlay(this._overlay),this._map.removeOverlay(this._marker))},i.object.extend(h.prototype,{_addMarker:function(n){this._marker&&(this.stop(),this._map.removeOverlay(this._marker),clearTimeout(this._timeoutFlag)),this._overlay&&this._map.removeOverlay(this._overlay);var s=new BMap.Marker(this._path[0]);this._opts.icon&&s.setIcon(this._opts.icon),this._map.addOverlay(s),s.setAnimation(BMAP_ANIMATION_DROP),this._marker=s},_addInfoWin:function(){var n=this;!_.prototype.initialize&&v();var s=new _(n._marker.getPosition(),n._opts.defaultContent);s.setRelatedClass(this),this._overlay=s,this._map.addOverlay(s),this._opts.showInfoWindow?this.showInfoWindow():this.hideInfoWindow()},_getMercator:function(n){return this._map.getMapType().getProjection().lngLatToPoint(n)},_getDistance:function(n,s){return Math.sqrt(Math.pow(n.x-s.x,2)+Math.pow(n.y-s.y,2))},_move:function(n,s,e){var o=this,c=0,p=10,f=this._opts.speed/(1e3/p),a=this._projection.lngLatToPoint(n),d=this._projection.lngLatToPoint(s),y=Math.round(o._getDistance(a,d)/f);if(y<1){o._moveNext(++o.i);return}o._intervalFlag=setInterval(function(){if(c>=y){if(clearInterval(o._intervalFlag),o.i>o._path.length)return;o._moveNext(++o.i),o._opts.onmove(o)}else{c++;var x=e(a.x,d.x,c,y),u=e(a.y,d.y,c,y),B=o._projection.pointToLngLat(new BMap.Pixel(x,u));if(c==1){var O=null;o.i-1>=0&&(O=o._path[o.i-1]),o._opts.enableRotation==!0&&o.setRotation(O,n,s),o._opts.autoView&&(o._map.getBounds().containsPoint(B)||o._map.setCenter(B))}o._marker.setPosition(B),o._setInfoWin(B)}},p)},setRotation:function(n,s,e){var o=this,c=0;if(s=o._map.pointToPixel(s),e=o._map.pointToPixel(e),e.x!=s.x){var p=(e.y-s.y)/(e.x-s.x),f=Math.atan(p);c=f*360/(2*Math.PI),e.x<s.x?c=-c+90+90:c=-c,o._marker.setRotation(-c)}else{var a=e.y-s.y,d=0;a>0?d=-1:d=1,o._marker.setRotation(-d*90)}},linePixellength:function(n,s){return Math.sqrt(Math.abs(n.x-s.x)*Math.abs(n.x-s.x)+Math.abs(n.y-s.y)*Math.abs(n.y-s.y))},pointToPoint:function(n,s){return Math.abs(n.x-s.x)*Math.abs(n.x-s.x)+Math.abs(n.y-s.y)*Math.abs(n.y-s.y)},_moveNext:function(n){var s=this;n<this._path.length-1?s._move(s._path[n],s._path[n+1],s._tween.linear):s.stop()},moveNext:function(n){var s=this;n<this._path.length-1?s._move(s._path[n],s._path[n+1],s._tween.linear):s.stop()},_setInfoWin:function(n){var s=this;s._overlay.setPosition(n,s._marker.getIcon().size);var e=s._troughPointIndex(n);e!=-1?(clearInterval(s._intervalFlag),s._overlay.setHtml(s._opts.landmarkPois[e].html),s._overlay.setPosition(n,s._marker.getIcon().size),s._pauseForView(e)):s._overlay.setHtml(s._opts.defaultContent)},_pauseForView:function(n){var s=this,e=setTimeout(function(){s._moveNext(++s.i)},s._opts.landmarkPois[n].pauseTime*1e3);s._setTimeoutQuene.push(e)},_clearTimeout:function(){for(var n in this._setTimeoutQuene)clearTimeout(this._setTimeoutQuene[n]);this._setTimeoutQuene.length=0},_tween:{linear:function(n,s,e,o){var c=n,p=s-n,f=e,a=o;return p*f/a+c}},_troughPointIndex:function(n){for(var s=this._opts.landmarkPois,e,o=0,c=s.length;o<c;o++)if(!s[o].bShow&&(e=this._map.getDistance(new BMap.Point(s[o].lng,s[o].lat),n),e<10))return s[o].bShow=!0,o;return-1}});function _(n,s){this._point=n,this._html=s}function v(){_.prototype=new BMap.Overlay,_.prototype.initialize=function(n){var s=this._div=i.dom.create("div",{style:"border:solid 1px #ccc;width:auto;min-width:50px;text-align:center;position:absolute;background:#fff;color:#000;font-size:12px;border-radius: 10px;padding:5px;white-space: nowrap;"});return s.innerHTML=this._html,n.getPanes().floatPane.appendChild(s),this._map=n,s},_.prototype.draw=function(){this.setPosition(this.lushuMain._marker.getPosition(),this.lushuMain._marker.getIcon().size)},i.object.extend(_.prototype,{setPosition:function(n,s){var e=this._map.pointToOverlayPixel(n),o=i.dom.getStyle(this._div,"width"),c=i.dom.getStyle(this._div,"height"),p=parseInt(this._div.clientWidth||o,10);parseInt(this._div.clientHeight||c,10),this._div.style.left=e.x-p/2+"px",this._div.style.bottom=-(e.y-s.height)+"px"},setHtml:function(n){this._div.innerHTML=n},setRelatedClass:function(n){this.lushuMain=n}})}return h})})(Gt);var Qt={exports:{}};(function(t,r){(function(i,h){t.exports=h()})(Z,function(){function i(v,n,s){var e,o,c=v.prototype,p=new Function;p.prototype=n.prototype,o=v.prototype=new p;for(e in c)o[e]=c[e];v.prototype.constructor=v,v.superClass=n.prototype,o._className=s}var h=(function(){var v=function(o){var c={data:[],heatmap:o};this.max=1,this.get=function(p){return c[p]},this.set=function(p,f){c[p]=f}};v.prototype={addDataPoint:function(e,o){if(!(e<0||o<0)){var c=this,p=c.get("heatmap"),f=c.get("data");if(f[e]||(f[e]=[]),f[e][o]||(f[e][o]=0),f[e][o]+=arguments.length<3?1:arguments[2],c.set("data",f),c.max<f[e][o]){p.get("actx").clearRect(0,0,p.get("width"),p.get("height")),c.setDataSet({max:f[e][o],data:f},!0);return}p.drawAlpha(e,o,f[e][o],!0)}},setDataSet:function(e,o){var c=this,p=c.get("heatmap"),f=[],a=e.data,d=a.length;if(p.clear(),this.max=e.max,p.get("legend")&&p.get("legend").update(e.max),o!=null&&o){for(var y in a)if(y!==void 0)for(var x in a[y])x!==void 0&&p.drawAlpha(y,x,a[y][x],!1)}else for(;d--;){var u=a[d];p.drawAlpha(u.x,u.y,u.count,!1),f[u.x]||(f[u.x]=[]),f[u.x][u.y]||(f[u.x][u.y]=0),f[u.x][u.y]=u.count}p.colorize(),this.set("data",a)},exportDataSet:function(){var e=this,o=e.get("data"),c=[];for(var p in o)if(p!==void 0)for(var f in o[p])f!==void 0&&c.push({x:parseInt(p,10),y:parseInt(f,10),count:o[p][f]});return{max:e.max,data:c}},generateRandomDataSet:function(e){var o=this.get("heatmap"),c=o.get("width"),p=o.get("height"),f={},a=Math.floor(Math.random()*1e3+1);f.max=a;for(var d=[];e--;)d.push({x:Math.floor(Math.random()*c+1),y:Math.floor(Math.random()*p+1),count:Math.floor(Math.random()*a+1)});f.data=d,this.setDataSet(f)}};var n=function(o){this.config=o;var c={element:null,labelsEl:null,gradientCfg:null,ctx:null};this.get=function(p){return c[p]},this.set=function(p,f){c[p]=f},this.init()};n.prototype={init:function(){var e=this,o=e.config,c=o.title||"Legend",p=o.position,f=o.offset||10;o.gradient;var a=document.createElement("ul"),d,y,x="";e.processGradientObject(),p.indexOf("t")>-1?x+="top:"+f+"px;":x+="bottom:"+f+"px;",p.indexOf("l")>-1?x+="left:"+f+"px;":x+="right:"+f+"px;",d=document.createElement("div"),d.style.cssText="border-radius:5px;position:absolute;"+x+"font-family:Helvetica; width:256px;z-index:10000000000; background:rgba(255,255,255,1);padding:10px;border:1px solid black;margin:0;",d.innerHTML="<h3 style='padding:0;margin:0;text-align:center;font-size:16px;'>"+c+"</h3>",a.style.cssText="position:relative;font-size:12px;display:block;list-style:none;list-style-type:none;margin:0;height:15px;",y=document.createElement("div"),y.style.cssText=["position:relative;display:block;width:256px;height:15px;border-bottom:1px solid black; background-image:url(",e.createGradientImage(),");"].join(""),d.appendChild(a),d.appendChild(y),e.set("element",d),e.set("labelsEl",a),e.update(1)},processGradientObject:function(){var e=this,o=this.config.gradient,c=[];for(var p in o)o.hasOwnProperty(p)&&c.push({stop:p,value:o[p]});c.sort(function(f,a){return f.stop-a.stop}),c.unshift({stop:0,value:"rgba(0,0,0,0)"}),e.set("gradientArr",c)},createGradientImage:function(){var e=this,o=e.get("gradientArr"),c=o.length,p=document.createElement("canvas"),f=p.getContext("2d"),a;p.width="256",p.height="15",a=f.createLinearGradient(0,5,256,10);for(var d=0;d<c;d++)a.addColorStop(1/(c-1)*d,o[d].value);f.fillStyle=a,f.fillRect(0,5,256,10),f.strokeStyle="black",f.beginPath();for(var d=0;d<c;d++)f.moveTo((1/(c-1)*d*256>>0)+.5,0),f.lineTo((1/(c-1)*d*256>>0)+.5,d==0?15:5);return f.moveTo(255.5,0),f.lineTo(255.5,15),f.moveTo(255.5,4.5),f.lineTo(0,4.5),f.stroke(),e.set("ctx",f),p.toDataURL()},getElement:function(){return this.get("element")},update:function(e){for(var o=this,c=o.get("gradientArr"),p=o.get("ctx"),f=o.get("labelsEl"),a,d="",y,x=0;x<c.length;x++)a=e*c[x].stop>>0,y=p.measureText(a).width/2>>0,x==0&&(y=0),x==c.length-1&&(y*=2),d+='<li style="position:absolute;left:'+(((1/(c.length-1)*x*256||0)>>0)-y+.5)+'px">'+a+"</li>";f.innerHTML=d}};var s=function(o){var c={radius:40,element:{},canvas:{},acanvas:{},ctx:{},actx:{},legend:null,visible:!0,width:0,height:0,max:!1,gradient:!1,opacity:180,premultiplyAlpha:!1,bounds:{l:1e3,r:0,t:1e3,b:0},debug:!1};this.store=new v(this),this.get=function(p){return c[p]},this.set=function(p,f){c[p]=f},this.configure(o),this.init()};return s.prototype={configure:function(e){var o=this;if(o.set("radius",e.radius||40),o.set("element",e.element instanceof Object?e.element:document.getElementById(e.element)),o.set("visible",e.visible!=null?e.visible:!0),o.set("max",e.max||!1),o.set("gradient",e.gradient||{.45:"rgb(0,0,255)",.55:"rgb(0,255,255)",.65:"rgb(0,255,0)",.95:"yellow",1:"rgb(255,0,0)"}),o.set("opacity",parseInt(255/(100/e.opacity),10)||180),o.set("width",e.width||0),o.set("height",e.height||0),o.set("debug",e.debug),e.legend){var c=e.legend;c.gradient=o.get("gradient"),o.set("legend",new n(c))}},resize:function(){var e=this,o=e.get("element"),c=e.get("canvas"),p=e.get("acanvas");c.width=p.width=e.get("width")||o.style.width.replace(/px/,"")||e.getWidth(o),this.set("width",c.width),c.height=p.height=e.get("height")||o.style.height.replace(/px/,"")||e.getHeight(o),this.set("height",c.height)},init:function(){var e=this,o=document.createElement("canvas"),c=document.createElement("canvas"),p=o.getContext("2d"),f=c.getContext("2d"),a=e.get("element");e.initColorPalette(),e.set("canvas",o),e.set("ctx",p),e.set("acanvas",c),e.set("actx",f),e.resize(),o.style.cssText=c.style.cssText="position:absolute;top:0;left:0;z-index:10000000;",e.get("visible")||(o.style.display="none"),a.appendChild(o),e.get("legend")&&a.appendChild(e.get("legend").getElement()),e.get("debug")&&document.body.appendChild(c),f.shadowOffsetX=15e3,f.shadowOffsetY=15e3,f.shadowBlur=15},initColorPalette:function(){var e=this,o=document.createElement("canvas"),c=e.get("gradient"),p,f,a;o.width="1",o.height="256",p=o.getContext("2d"),f=p.createLinearGradient(0,0,1,256),a=p.getImageData(0,0,1,1),a.data[0]=a.data[3]=64,a.data[1]=a.data[2]=0,p.putImageData(a,0,0),a=p.getImageData(0,0,1,1),e.set("premultiplyAlpha",a.data[0]<60||a.data[0]>70);for(var d in c)f.addColorStop(d,c[d]);p.fillStyle=f,p.fillRect(0,0,1,256),e.set("gradient",p.getImageData(0,0,1,256).data)},getWidth:function(e){var o=e.offsetWidth;return e.style.paddingLeft&&(o+=e.style.paddingLeft),e.style.paddingRight&&(o+=e.style.paddingRight),o},getHeight:function(e){var o=e.offsetHeight;return e.style.paddingTop&&(o+=e.style.paddingTop),e.style.paddingBottom&&(o+=e.style.paddingBottom),o},colorize:function(e,o){var c=this,p=c.get("width"),f=c.get("radius"),a=c.get("height"),d=c.get("actx"),y=c.get("ctx"),x=f*3,u=c.get("premultiplyAlpha"),B=c.get("gradient"),O=c.get("opacity"),z=c.get("bounds"),k,l,m,g,M,b,E,C,S;e!=null&&o!=null?(e+x>p&&(e=p-x),e<0&&(e=0),o<0&&(o=0),o+x>a&&(o=a-x),k=e,l=o,g=e+x,m=o+x):(z.l<0?k=0:k=z.l,z.r>p?g=p:g=z.r,z.t<0?l=0:l=z.t,z.b>a?m=a:m=z.b),M=d.getImageData(k,l,g-k,m-l),b=M.data.length;for(var P=3;P<b;P+=4)E=M.data[P],C=E*4,C&&(S=E<O?E:O,M.data[P-3]=B[C],M.data[P-2]=B[C+1],M.data[P-1]=B[C+2],u&&(M.data[P-3]/=255/S,M.data[P-2]/=255/S,M.data[P-1]/=255/S),M.data[P]=S);y.putImageData(M,k,l)},drawAlpha:function(e,o,c,p){var f=this,a=f.get("radius"),d=f.get("actx");f.get("max");var y=f.get("bounds"),x=e-1.5*a>>0,u=o-1.5*a>>0,B=e+1.5*a>>0,O=o+1.5*a>>0;d.shadowColor="rgba(0,0,0,"+(c?c/f.store.max:"0.1")+")",d.shadowOffsetX=15e3,d.shadowOffsetY=15e3,d.shadowBlur=15,d.beginPath(),d.arc(e-15e3,o-15e3,a,0,Math.PI*2,!0),d.closePath(),d.fill(),p?f.colorize(x,u):(x<y.l&&(y.l=x),u<y.t&&(y.t=u),B>y.r&&(y.r=B),O>y.b&&(y.b=O))},toggleDisplay:function(){var e=this,o=e.get("visible"),c=e.get("canvas");o?c.style.display="none":c.style.display="block",e.set("visible",!o)},getImageData:function(){return this.get("canvas").toDataURL()},clear:function(){var e=this,o=e.get("width"),c=e.get("height");e.store.set("data",[]),e.get("ctx").clearRect(0,0,o,c),e.get("actx").clearRect(0,0,o,c)},cleanup:function(){var e=this;e.get("element").removeChild(e.get("canvas"))}},{create:function(e){return new s(e)},util:{mousePosition:function(e){var o,c;if(e.layerX?(o=e.layerX,c=e.layerY):e.offsetX&&(o=e.offsetX,c=e.offsetY),typeof o!="undefined")return[o,c]}}}})(),_=function(v){try{BMap}catch(s){throw Error("Baidu Map JS API is not ready yet!")}if(!_._isExtended){_._isExtended=!0,i(_,BMap.Overlay,"HeatmapOverlay");var n=new _(v);this.__proto__=n.__proto__}this.conf=v,this.heatmap=null,this.latlngs=[],this.bounds=null,this._moveendHandler=this._moveendHandler.bind(this)};return _.prototype.initialize=function(v){this._map=v;var n=document.createElement("div");return n.style.position="absolute",n.style.top=0,n.style.left=0,n.style.border=0,n.style.width=this._map.getSize().width+"px",n.style.height=this._map.getSize().height+"px",this.conf.element=n,v.getPanes().mapPane.appendChild(n),this.heatmap=h.create(this.conf),this._div=n,n},_.prototype.draw=function(){var v=this._map.getBounds();if(!v.equals(this.bounds)){this.bounds=v;var n=this._map.pointToOverlayPixel(v.getNorthEast()),s=this._map.pointToOverlayPixel(v.getSouthWest());if(!(!n||!s)){var e=n.y,o=s.x,c=s.y-n.y,p=n.x-s.x;if(this.conf.element.style.left=o+"px",this.conf.element.style.top=e+"px",this.conf.element.style.width=p+"px",this.conf.element.style.height=c+"px",this.heatmap.store.get("heatmap").resize(),this.latlngs.length>0){this.heatmap.clear();for(var f=this.latlngs.length,a={max:this.heatmap.store.max,data:[]};f--;){var d=this.latlngs[f].latlng;if(v.containsPoint(d)){var y=this._map.pointToOverlayPixel(d),x=new BMap.Pixel(y.x-o,y.y-e),u=this.pixelTransform(x);a.data.push({x:u.x,y:u.y,count:this.latlngs[f].c})}}this.heatmap.store.setDataSet(a)}}}},_.prototype.pixelTransform=function(v){for(var n=this.heatmap.get("width"),s=this.heatmap.get("height");v.x<0;)v.x+=n;for(;v.x>n;)v.x-=n;for(;v.y<0;)v.y+=s;for(;v.y>s;)v.y-=s;return v.x=v.x>>0,v.y=v.y>>0,v},_.prototype._moveendHandler=function(v){this.setDataSet(this._data),delete this._data,this._map.removeEventListener("moveend",this._moveendHandler)},_.prototype.setDataSet=function(v){if(this._map){var n=this._map.getBounds(),s=this._map.pointToOverlayPixel(n.getNorthEast()),e=this._map.pointToOverlayPixel(n.getSouthWest());(!s||!e)&&(this._data=v,this._map.addEventListener("moveend",this._moveendHandler));var o={max:v.max,data:[]},c=v.data,p=c.length;for(this.latlngs=[];p--;){var f=new BMap.Point(c[p].lng,c[p].lat);if(this.latlngs.push({latlng:f,c:c[p].count}),!!n.containsPoint(f)){var a=this._map.pointToOverlayPixel(f),d=this._map.pointToOverlayPixel(n.getSouthWest()).x,y=this._map.pointToOverlayPixel(n.getNorthEast()).y,x=new BMap.Pixel(a.x-d,a.y-y),u=this.pixelTransform(x);o.data.push({x:u.x,y:u.y,count:c[p].count})}}this.heatmap.clear(),this.heatmap.store.setDataSet(o)}},_.prototype.addDataPoint=function(v,n,s){var e=new BMap.Point(v,n),o=this.pixelTransform(this._map.pointToOverlayPixel(e));this.heatmap.store.addDataPoint(o.x,o.y,s),this.latlngs.push({latlng:e,c:s})},_.prototype.toggle=function(){this.heatmap.toggleDisplay()},_})})(Qt);var Xt={exports:{}};(function(t,r){(function(i,h){t.exports=h()})(Z,function(){function i(v,n){try{BMap}catch(o){throw Error("Baidu Map JS API is not ready yet!")}var s=h(v),e=new BMap.Polyline(s,n);return e.addEventListener("lineupdate",function(){this.isEditing&&this.enableEditing()}),e.cornerPoints=v,e.editMarkers=[],e.enableEditing=function(){var o=this;if(o.map){o.disableEditing();for(var c=0;c<o.cornerPoints.length;c++){var p=new BMap.Marker(o.cornerPoints[c],{icon:new BMap.Icon("http://api.map.baidu.com/library/CurveLine/1.5/src/circle.png",new BMap.Size(16,16)),enableDragging:!0,raiseOnDrag:!0});p.addEventListener("dragend",function(){o.cornerPoints.length=0;for(var f=0;f<o.editMarkers.length;f++)o.cornerPoints.push(o.editMarkers[f].getPosition());var a=h(o.cornerPoints);o.setPath(a)}),p.index=c,o.editMarkers.push(p),o.map.addOverlay(p)}}o.isEditing=!0},e.disableEditing=function(){this.isEditing=!1;for(var o=0;o<this.editMarkers.length;o++)this.map.removeOverlay(this.editMarkers[o]),this.editMarkers[o]=null;this.editMarkers.length=0},e.getPath=function(){return s},e}function h(v){for(var n=[],s=0;s<v.length-1;s++){var e=_(v[s],v[s+1]);e&&e.length>0&&(n=n.concat(e))}return n}function _(v,n){var s=[];if(!v||!n||!(v instanceof BMap.Point)||!(n instanceof BMap.Point))return null;var e=function(g){return 1-2*g+g*g},o=function(g){return 2*g-2*g*g},c=function(g){return g*g},p=30,f,a,d,y,x,u,B=0,O=0;if(typeof n=="undefined"){typeof s!="undefined"&&(s=[]);return}var z=parseFloat(v.lat),k=parseFloat(n.lat),l=parseFloat(v.lng),m=parseFloat(n.lng);for(m>l&&parseFloat(m-l)>180&&l<0&&(l=parseFloat(360+l)),l>m&&parseFloat(l-m)>180&&m<0&&(m=parseFloat(360+m)),u=0,k==z?(f=0,a=l-m):m==l?(f=Math.PI/2,a=z-k):(f=Math.atan((k-z)/(m-l)),a=(k-z)/Math.sin(f)),u==0&&(u=f+Math.PI/5),d=a/2,x=d*Math.cos(u)+l,y=d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ANAqbeFUDdbsMM1Xnc1BPd7NDd8ajdUljtAN7tdJbc0wnuMlntoHvdYbvthE3ePnTNaq/eRQ7sslns7ADOPpwN7aDczRoM/gcOBxc+ETHdgf/tVMnswQrs0STtjM0A06Td9PDdlZPnyB3c3WsA3i8OXTndYJseL49e3kUP7nUu7MWH3jb+7m2i3dYC3M8n3R2kzMTr3hhE7mDi4QP47Tk50Og57dbE3WBrHhvb3WBpEOvT3b38wO2azfBcHn3X3iKf7QfB4PGy7Omj582QwOT/7bTU3WuO3PAA3M8RDYkS7pk37m2fzNmF7rCBHryT3bxB7hzN7Xwu7glX4QTm0N09Dj0WzWYw7qSe3r04Dqbl3mk67MF5Has74Q5h4Rz3zu497u7v7u8B7v8j7v9F7v9n7v+J7v+r7v/N7v/v7vAB/wAj/wBF/wBn/wCJ/wCr/wDN/wDv/wEB/xEj/xFF/xFn/xGJ/xGr/xHN/xHu/xAQEAOw==",qt={class:"mix-body"},Kt={key:0},Jt={class:"w-[80px] h-[80px]"},Ut=["src"],$t={class:"bdmap-base-info"},te={class:"flex"},ee={class:"name"},ie={class:"value"},ne={class:"flex"},oe={class:"name"},re={class:"value"},ae={class:"flex"},se={class:"name"},le={class:"value"},ue={key:1,class:"w-[100%] h-[100%] p-[12px] text-[13px] text-[#999]"},ce={DEFAULT_ICON:et.DEFAULT_ICON,ACTIVE_ICON:et.ACTIVE_ICON,NAME_CN:"百度地图",NAME_EN:"Baidu Map",ORDER:2,PLATFORM:["pc","screen","mobile"]},de={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,lng:113.933782,lat:22.582649,zoom:10},pe={baiduMapAk:""},he={DEFAULT:ce,OPTIONS:de,COMMON:pe},me=w.defineComponent($(U({},he),{__name:"bmp",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(t){const{proxy:r}=w.getCurrentInstance(),i="bmp_"+Math.random().toString(16).substring(4,12);let h=null,_=null;const v=t;class n extends yt.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#73bff9"),titleColor:this.getOptionValue("titleColor","#111"),radiusSize:this.getOptionValue("radiusSize",4),zoom:this.getOptionValue("zoom",10),lng:this.getOptionValue("lng",113.933782),lat:this.getOptionValue("lat",22.582649),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){var M;this.Style.value=this.extractStyles(),this.applyTheme(),c.zoom=this.Style.value.zoom,c.center.lat=this.Style.value.lat,c.center.lng=this.Style.value.lng;const g=((M=this.props.conf)==null?void 0:M.common)||{};if(c.ak=g.baiduMapAk||"",_&&h){const b=new _.Point(this.Style.value.lng,this.Style.value.lat);h.centerAndZoom(b,this.Style.value.zoom)}}}const s=new n(v,"bmp");s.setupLifecycle();const e=s.getStyle(),o=w.computed(()=>_t.generateTitleStyle(v.conf.options)),c=w.reactive({zoom:10,ak:"",center:{lat:22.582649,lng:113.933782}}),p=w.ref([]),f=w.ref({}),a=w.ref(0),d=w.ref(0),y=w.ref(!1),x=({BMap:m,map:g})=>{h=g,_=m,v.mode==="preview"&&u()},u=()=>tt(null,null,function*(){const{result:m}=yield V.api.post("get_object_list"),g=/^(\-|\+)?(((\d|[1-9]\d|1[0-7]\d|0{1,3})\.\d{0,6})|(\d|[1-9]\d|1[0-7]\d|0{1,3})|180\.0{0,6}|180)$/,M=/^(\-|\+)?([0-8]?\d{1}\.\d{0,6}|90\.0{0,6}|[0-8]?\d{1}|90)$/;p.value=[];let b=!1;m.data.forEach(C=>{let S="";if(C.gis||C.gis.split(", ").length>1){const A=C.gis.split(", ");if(g.test(A[1])&&M.test(A[0])&&Number(A[1])&&Number(A[0])){const j=xt(Number(A[1]),Number(A[0]));S=j[1]+","+j[0]}else S=C.custom_gis}else S=C.custom_gis;const P=S.split(",");P.length>=2&&!b&&(c.center.lng=Number(P[1]),c.center.lat=Number(P[0]),b=!0),S.length>1&&p.value.push({center:{lng:P[1],lat:P[0]},image:C.image,address:C.address||C.province+C.city,name:C.name,uid:C.uid,desc:C.description})}),!b&&p.value[0]&&(c.center=p.value[0].center);const E=new _.Point(c.center.lng,c.center.lat);h.centerAndZoom(E,e.value.zoom)}),B=(m,g)=>{a.value=m.pixel.y+10+"px",d.value=m.pixel.x+10+"px",f.value=g,g.address||k(g),y.value=!0},O=m=>console.log(m),z=w.computed(()=>f.value.image?r.config.file_url+"/"+f.value.image:Yt),k=m=>{const g=`${m.center.lat},${m.center.lng}`,M={ak:c.ak,location:g,coordtype:"bd09ll",output:"json",extensions_poi:1};V.api.getLocation("/bdMapAddress",M).then(b=>{b.status===0&&(f.value.address=b.result.formatted_address_poi||b.result.formatted_address)})},l=m=>{if(m){let g=location.href;g.indexOf("?object_id=")>-1&&(g=g.split("?object_id=")[0]),location.href=g+"?object_id="+m,location.reload()}};return(m,g)=>{const M=vt.ElIcon;return w.openBlock(),w.createElementBlock("div",{class:"mix-component",style:w.normalizeStyle({background:w.unref(e).bgColor,borderRadius:`${w.unref(e).radiusSize}px`})},[w.createElementVNode("div",{class:"mix-title",style:w.normalizeStyle(o.value)},w.toDisplayString(t.conf.caption||t.conf.name),5),w.createElementVNode("div",qt,[c.ak?(w.openBlock(),w.createElementBlock("div",{key:0,class:"map-wrap",id:i},[w.createVNode(w.unref(Dt),{class:"bm-view relative",center:c.center,"map-click":!1,zoom:c.zoom,ak:c.ak,v:"3.0",type:"API",onMovestart:g[2]||(g[2]=b=>y.value=!1),onZoomstart:g[3]||(g[3]=b=>y.value=!1),onClick:g[4]||(g[4]=b=>O("close")),"scroll-wheel-zoom":!0,onReady:x},{default:w.withCtx(()=>[p.value.length?(w.openBlock(),w.createElementBlock("div",Kt,[w.createVNode(w.unref(Vt),null,{default:w.withCtx(()=>[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(p.value,b=>(w.openBlock(),w.createBlock(w.unref(Lt),{onClick:E=>B(E,b),key:b.uid,position:b.center},null,8,["onClick","position"]))),128))]),_:1})])):w.createCommentVNode("",!0),y.value?(w.openBlock(),w.createElementBlock("div",{key:1,class:"index-bdmap-equipment",style:w.normalizeStyle({top:a.value,left:d.value}),onClick:g[1]||(g[1]=b=>l(f.value))},[w.createElementVNode("div",Jt,[w.createElementVNode("img",{src:z.value,class:"w-[100%] h-[100%]"},null,8,Ut)]),w.createElementVNode("div",$t,[w.createElementVNode("div",te,[w.createElementVNode("span",ee,w.toDisplayString(m.$t("component.map.deviceNumber"))+":",1),w.createElementVNode("span",ie,w.toDisplayString(f.value.uid),1)]),w.createElementVNode("div",ne,[w.createElementVNode("span",oe,w.toDisplayString(m.$t("component.map.deviceName"))+":",1),w.createElementVNode("span",re,w.toDisplayString(f.value.name),1)]),w.createElementVNode("div",ae,[w.createElementVNode("span",se,w.toDisplayString(m.$t("component.map.address"))+":",1),w.createElementVNode("span",le,w.toDisplayString(f.value.address),1)])]),w.createVNode(M,{class:"close-icon"},{default:w.withCtx(()=>[w.createVNode(w.unref(bt.Close),{onClick:g[0]||(g[0]=w.withModifiers(b=>y.value=!1,["stop"]))})]),_:1})],4)):w.createCommentVNode("",!0)]),_:1},8,["center","zoom","ak"])])):(w.openBlock(),w.createElementBlock("div",ue,w.toDisplayString(m.$t("component.map.apiKeyRequired")),1))]),w.renderSlot(m.$slots,"default",{},void 0,!0)],4)}}})),fe=V._export_sfc(me,[["__scopeId","data-v-d1ccdc00"]]);exports.default=fe;
1
+ "use strict";var pt=Object.defineProperty,ht=Object.defineProperties;var mt=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var ft=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable;var J=(t,r,i)=>r in t?pt(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,U=(t,r)=>{for(var i in r||(r={}))ft.call(r,i)&&J(t,i,r[i]);if(K)for(var i of K(r))gt.call(r,i)&&J(t,i,r[i]);return t},$=(t,r)=>ht(t,mt(r));var tt=(t,r,i)=>new Promise((h,_)=>{var v=e=>{try{s(i.next(e))}catch(o){_(o)}},n=e=>{try{s(i.throw(e))}catch(o){_(o)}},s=e=>e.done?h(e.value):Promise.resolve(e.value).then(v,n);s((i=i.apply(t,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const vt=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/icon/style/css");const w=require("vue"),yt=require("./BaseComponent-BmhMoM4H.cjs"),V=require("./index-77aUdspY.cjs"),_t=require("./titleStyle-NSnz6cUg.cjs"),bt=require("@element-plus/icons-vue"),et=require("./ele-bmp-icon-BBI0-SX7.cjs"),it=3.141592653589793*3e3/180,T=3.141592653589793,nt=6378245,ot=.006693421622965943;function wt(t,r){var i=Math.sqrt(t*t+r*r)+2e-5*Math.sin(r*it),h=Math.atan2(r,t)+3e-6*Math.cos(t*it),_=i*Math.cos(h)+.0065,v=i*Math.sin(h)+.006;return[_,v]}function Mt(t,r){if(kt(t,r))return[t,r];{var i=Ct(t-105,r-35),h=Bt(t-105,r-35),_=r/180*T,v=Math.sin(_);v=1-ot*v*v;var n=Math.sqrt(v);i=i*180/(nt*(1-ot)/(v*n)*T),h=h*180/(nt/n*Math.cos(_)*T);const s=r+i;return[t+h,s]}}function xt(t,r){const i=Mt(t,r);return wt(i[0],i[1])}function Ct(t,r){var i=-100+2*t+3*r+.2*r*r+.1*t*r+.2*Math.sqrt(Math.abs(t));return i+=(20*Math.sin(6*t*T)+20*Math.sin(2*t*T))*2/3,i+=(20*Math.sin(r*T)+40*Math.sin(r/3*T))*2/3,i+=(160*Math.sin(r/12*T)+320*Math.sin(r*T/30))*2/3,i}function Bt(t,r){var i=300+t+2*r+.1*t*t+.1*t*r+.1*Math.sqrt(Math.abs(t));return i+=(20*Math.sin(6*t*T)+20*Math.sin(2*t*T))*2/3,i+=(20*Math.sin(t*T)+40*Math.sin(t/3*T))*2/3,i+=(150*Math.sin(t/12*T)+300*Math.sin(t/30*T))*2/3,i}function kt(t,r){return t<72.004||t>137.8347||r<.8293||r>55.8271||!1}var St={"bm-map":["click","dblclick","rightclick","rightdblclick","maptypechange","mousemove","mouseover","mouseout","movestart","moving","moveend","zoomstart","zoomend","addoverlay","addcontrol","removecontrol","removeoverlay","clearoverlays","dragstart","dragging","dragend","addtilelayer","removetilelayer","load","resize","hotspotclick","hotspotover","hotspotout","tilesloaded","touchstart","touchmove","touchend","longpress"],"bm-geolocation":["locationSuccess","locationError"],"bm-overview-map":["viewchanged","viewchanging"],"bm-marker":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","infowindowclose","infowindowopen","dragstart","dragging","dragend","rightclick"],"bm-polyline":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-polygon":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-circle":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-label":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","rightclick"],"bm-info-window":["close","open","maximize","restore","clickclose"],"bm-ground":["click","dblclick"],"bm-autocomplete":["onconfirm","onhighlight"],"bm-point-collection":["click","mouseover","mouseout"]};function lt(t,r){const i=r||St[this.$options.name];i&&i.forEach(h=>{let v=h.slice(0,2)==="on"?h.slice(2):h;const n=this.$attrs["on"+v.replace(v[0],v[0].toUpperCase())];n&&t.addEventListener(h,n)})}function G(t,r={}){const{lng:i,lat:h}=r;return new t.Point(i,h)}function D(t,r={}){const{width:i,height:h}=r;return new t.Size(i,h)}function rt(t,r={}){const{url:i,size:h,opts:_={}}=r;let v={anchor:_.anchor&&D(t,_.anchor),imageSize:_.imageSize&&D(t,_.imageSize),imageOffset:_.imageOffset&&D(t,_.imageOffset),infoWindowAnchor:_.infoWindowAnchor&&D(t,_.infoWindowAnchor),printImageUrl:_.printImageUrl};return Q(v),new t.Icon(i,D(t,h),v)}function Ot(t,r={}){const{content:i,opts:h}=r;let _={offset:h.offset&&D(t,h.offset),position:h.position&&G(t,h.position),enableMassClear:h.enableMassClear};return Q(_),new t.Label(i,_)}const at=t=>Object.prototype.toString.call(t).slice(8,-1),Q=t=>{Object.keys(t).forEach(r=>{typeof t[r]=="undefined"&&delete t[r]})};let W={v:"3.0",type:"API"};const Et=(t={})=>{W=Object.assign(W,t),W.ak||console.error("请配置ak:百度地图开发者平台申请的密钥")},N=()=>W;var Z=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},X={exports:{}};function Y(){}Y.prototype={on:function(t,r,i){var h=this.e||(this.e={});return(h[t]||(h[t]=[])).push({fn:r,ctx:i}),this},once:function(t,r,i){var h=this;function _(){h.off(t,_),r.apply(i,arguments)}return _._=r,this.on(t,_,i)},emit:function(t){var r=[].slice.call(arguments,1),i=((this.e||(this.e={}))[t]||[]).slice(),h=0,_=i.length;for(h;h<_;h++)i[h].fn.apply(i[h].ctx,r);return this},off:function(t,r){var i=this.e||(this.e={}),h=i[t],_=[];if(h&&r)for(var v=0,n=h.length;v<n;v++)h[v].fn!==r&&h[v].fn._!==r&&_.push(h[v]);return _.length?i[t]=_:delete i[t],this}};X.exports=Y;X.exports.TinyEmitter=Y;var Pt=X.exports,L=new Pt,I={$on:(...t)=>L.on(...t),$once:(...t)=>L.once(...t),$off:(...t)=>L.off(...t),$emit:(...t)=>L.emit(...t)};const st={API:{"2.0":{setMapStyle:"setMapStyle",NavigationControl:"NavigationControl"},"3.0":{setMapStyle:"setMapStyleV2",NavigationControl:"NavigationControl"}},WebGL:{setMapStyle:"setMapStyleV2",NavigationControl:"NavigationControl3D"}},F=t=>{const r=N();return r.type=="WebGL"?st[r.type][t]:st[r.type][r.v][t]};let ut;new Promise(t=>{ut=t});var q=(t,r)=>{const i=t.__vccOpts||t;for(const[h,_]of r)i[h]=_;return i};const zt={name:"bm-map",inheritAttrs:!1,emits:["ready","init","animationed"],props:{ak:{type:String},v:{type:String},type:{type:String},center:{type:[Object,String]},zoom:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},highResolution:{type:Boolean,default:!0},mapClick:{type:Boolean,default:!0},mapType:{type:String},dragging:{type:Boolean,default:!0},scrollWheelZoom:{type:Boolean,default:!1},doubleClickZoom:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},inertialDragging:{type:Boolean,default:!0},continuousZoom:{type:Boolean,default:!0},pinchToZoom:{type:Boolean,default:!0},autoResize:{type:Boolean,default:!0},theme:{type:Array},mapStyle:{type:Object},hasAnimation:{type:Boolean,default:!0},defaultAnimation:{type:Boolean,default:!0},preserveDrawingBuffer:{type:Boolean,default:!1}},watch:{center(t,r){const{map:i,zoom:h}=this;at(t)==="String"&&t!==r&&this.setCenterZoom(i,t,h)},"center.lng"(t,r){const{BMap:i,map:h,zoom:_,center:v}=this;t!==r&&t>=-180&&t<=180&&this.setCenterZoom(h,new i.Point(t,v.lat),_)},"center.lat"(t,r){const{BMap:i,map:h,zoom:_,center:v}=this;t!==r&&t>=-74&&t<=74&&this.setCenterZoom(h,new i.Point(v.lng,t),_)},zoom(t,r){const{map:i}=this;t!==r&&t>=3&&t<=19&&i.setZoom(t)},minZoom(t){const{map:r}=this;r.setMinZoom(t)},maxZoom(t){const{map:r}=this;r.setMaxZoom(t)},highResolution(){this.reset()},mapClick(){this.reset()},mapType(t){const{map:r}=this;r.setMapType(window[t])},dragging(t){const{map:r}=this;t?r.enableDragging():r.disableDragging()},scrollWheelZoom(t){const{map:r}=this;t?r.enableScrollWheelZoom():r.disableScrollWheelZoom()},doubleClickZoom(t){const{map:r}=this;t?r.enableDoubleClickZoom():r.disableDoubleClickZoom()},keyboard(t){const{map:r}=this;t?r.enableKeyboard():r.disableKeyboard()},inertialDragging(t){const{map:r}=this;t?r.enableInertialDragging():r.disableInertialDragging()},continuousZoom(t){const{map:r}=this;t?r.enableContinuousZoom():r.disableContinuousZoom()},pinchToZoom(t){const{map:r}=this;t?r.enablePinchToZoom():r.disablePinchToZoom()},autoResize(t){const{map:r}=this;t?r.enableAutoResize():r.disableAutoResize()},theme(t){const{map:r}=this;r[F("setMapStyle")]({styleJson:t})},mapStyle:{handler(t){const{map:r,theme:i}=this;!i&&r[F("setMapStyle")](t)},deep:!0}},methods:{setMapOptions(){const{map:t,minZoom:r,maxZoom:i,mapType:h,dragging:_,scrollWheelZoom:v,doubleClickZoom:n,keyboard:s,inertialDragging:e,continuousZoom:o,pinchToZoom:c,autoResize:p}=this;r&&t.setMinZoom(r),i&&t.setMaxZoom(i),h&&t.setMapType(window[h]),_?t.enableDragging():t.disableDragging(),v?t.enableScrollWheelZoom():t.disableScrollWheelZoom(),n?t.enableDoubleClickZoom():t.disableDoubleClickZoom(),s?t.enableKeyboard():t.disableKeyboard(),e?t.enableInertialDragging():t.disableInertialDragging(),o?t.enableContinuousZoom():t.disableContinuousZoom(),c?t.enablePinchToZoom():t.disablePinchToZoom(),p?t.enableAutoResize():t.disableAutoResize()},init(t){if(this.map)return;let r=this.$refs.view;const i=new t.Map(r,{enableHighResolution:this.highResolution,enableMapClick:this.mapClick,preserveDrawingBuffer:this.preserveDrawingBuffer}),h=Math.random().toString();this.mapKey=h,this.map=i;const{setMapOptions:_,zoom:v,getCenterPoint:n,theme:s,mapStyle:e}=this;_(),lt.call(this,i),i.reset(),this.setCenterZoom(i,n(),v),s?i[F("setMapStyle")]({styleJson:s}):e&&i[F("setMapStyle")](e);let o=0;this.$emit("init",{BMap:t,map:i,mapKey:h}),I.$emit("init",{BMap:t,map:i,mapKey:h}),i.addEventListener("tilesloaded",()=>{o||(o++,this.$emit("ready",{BMap:t,map:i,mapKey:h}),I.$emit("ready",{BMap:t,map:i,mapKey:h}))}),i.addEventListener("loaded",()=>{this.$emit("loaded",{BMap:t,map:i,mapKey:h}),I.$emit("loaded",{BMap:t,map:i,mapKey:h})})},setCenterZoom(t,r,i){N().type==="WebGL"&&(!this.hasAnimation||!this.defaultAnimation)?t.setCenter(r,{noAnimation:!this.hasAnimation,callback:()=>{t.setZoom(i,{noAnimation:!this.hasAnimation,zoomCenter:r,callback:()=>{this.$emit("animationed",{BMap:this.BMap,map:t})}})}}):t.centerAndZoom(r,i)},getCenterPoint(){const{center:t,BMap:r}=this;switch(at(t)){case"String":return t;case"Object":return new r.Point(t.lng,t.lat);default:return new r.Point}},initMap(t){this.BMap=t,this.init(t),ut(t)},getMapScript(){return window.BMap?window.BMap._preloader?window.BMap._preloader:Promise.resolve(window.BMap):(window.BMap={},window.BMap._preloader=new Promise((t,r)=>{window._initBaiduMap=function(){window.BMap=N().type=="WebGL"?window.BMapGL:window.BMap,t(window.BMap),window.document.body.removeChild(i),window.BMap._preloader=null,window._initBaiduMap=null};const i=document.createElement("script");window.document.body.appendChild(i),N().type==="WebGL"?i.src=`https://api.map.baidu.com/api?v=1.0&type=webgl&ak=${N().ak}&callback=_initBaiduMap`:i.src=`https://api.map.baidu.com/api?v=${N().v}&ak=${N().ak}&callback=_initBaiduMap`}),window.BMap._preloader)},reset(){const{getMapScript:t,initMap:r}=this;t().then(r)}},created(){const t={};this.ak&&(t.ak=this.ak),this.v&&(t.v=this.v),this.type&&(t.type=this.type),Et(t)},mounted(){this.reset()},data(){return{hasBmView:!1,map:null,BMap:null,name:"bm-map",mapKey:""}}},Tt={key:0,ref:"view",style:{width:"100%",height:"100%"}};function At(t,r,i,h,_,v){return w.openBlock(),w.createElementBlock("div",{class:w.normalizeClass(t.$attrs.class),style:w.normalizeStyle(t.$attrs.style)},[_.hasBmView?w.createCommentVNode("",!0):(w.openBlock(),w.createElementBlock("div",Tt,null,512)),w.renderSlot(t.$slots,"default")],6)}var Dt=q(zt,[["render",At]]);const Nt={control:{unload:"removeControl"},layer:{unload:"removeTileLayer"},overlay:{unload:"removeOverlay"},contextMenu:{unload:"removeContextMenu"}},R=t=>t.abstract||t.name!=="bm-map"?R(t.$parent):t;function It(){const{unload:t,renderByParent:r,$parent:i,ready:h}=this;I.$off("ready",h),r&&i.reload(),t()}const Rt=(t={})=>({emits:["ready","init"],computed:{renderByParent(){return this.$parent.preventChildrenRender}},created(){const r=R(this.$parent),i=r.map,{ready:h,_init:_}=this;i?h():I.$on("ready",({mapKey:v})=>this.emitCallBack(v,h)),i?this.init({BMap:r.BMap,map:i}):I.$on("init",({mapKey:v})=>this.emitCallBack(v,_))},mounted(){const i=R(this.$parent).map,{mountedReady:h}=this;i?h():I.$on("ready",({mapKey:_})=>this.emitCallBack(_,h))},unmounted:It,methods:{emitCallBack(r,i){const h=R(this.$parent);r==h.mapKey&&i()},_init(){const r=R(this.$parent),i=this.BMap=r.BMap,h=this.map=r.map;this.init({BMap:i,map:h})},init(){},ready(){const r=R(this.$parent),i=this.BMap=r.BMap,h=this.map=r.map;this.load(),this.$emit("ready",{BMap:i,map:h})},mountedReady(){this.mountedLoad()},transmitEvent(r){this.$emit(r.type.replace(/^on/,""),r)},reload(){this&&this.BMap&&this.$nextTick(()=>{this.unload(),this.$nextTick(()=>{this.load(),this.mountedLoad()})})},unload(){const{map:r,originInstance:i}=this;try{switch(t.type){case"search":return i.clearResults();case"autoComplete":case"lushu":return i.dispose();case"markerClusterer":return i.clearMarkers();default:r[Nt[t.type].unload](i)}}catch(h){}},mountedLoad(){}}});var ct=t=>Rt({type:t});const Zt={name:"bm-marker",mixins:[ct("overlay")],inject:{Cluster:{default:()=>({})}},props:{position:{},offset:{},icon:{},massClear:{type:Boolean,default:!0},dragging:{type:Boolean,default:!1},clicking:{type:Boolean,default:!0},raiseOnDrag:{type:Boolean,default:!1},draggingCursor:{type:String},rotation:{type:Number},shadow:{type:Object},title:{type:String},label:{type:Object},animation:{type:String},top:{type:Boolean,default:!1},zIndex:{type:Number,default:0}},watch:{"position.lng"(t,r){const{BMap:i,originInstance:h,position:_,renderByParent:v,$parent:n}=this;t!==r&&t>=-180&&t<=180&&h.setPosition(G(i,{lng:t,lat:_.lat})),v&&n.reload()},"position.lat"(t,r){const{BMap:i,originInstance:h,position:_,renderByParent:v,$parent:n}=this;t!==r&&t>=-74&&t<=74&&h.setPosition(G(i,{lng:_.lng,lat:t})),v&&n.reload()},"offset.width"(t,r){const{BMap:i,originInstance:h}=this;t!==r&&h.setOffset(new i.Size(t,this.offset.height))},"offset.height"(t,r){const{BMap:i,originInstance:h}=this;t!==r&&h.setOffset(new i.Size(this.offset.width,t))},icon:{deep:!0,handler(t){const{BMap:r,originInstance:i,rotation:h}=this;i&&i.setIcon(rt(r,t)),h&&i&&i.setRotation(h)}},massClear(t){t?this.originInstance.enableMassClear():this.originInstance.disableMassClear()},dragging(t){t?this.originInstance.enableDragging():this.originInstance.disableDragging()},clicking(){this.reload()},raiseOnDrag(){this.reload()},draggingCursor(t){this.originInstance.setDraggingCursor(t)},rotation(t){this.originInstance.setRotation(t)},shadow(t){this.originInstance.setShadow(t)},title(t){this.originInstance.setTitle(t)},label(t){this.reload()},animation(t){this.originInstance.setAnimation(window[t])},top(t){this.originInstance.setTop(t)},zIndex(t){this.originInstance.setZIndex(t)}},methods:{load(){var t,r;const{BMap:i,map:h,position:_,offset:v,icon:n,massClear:s,dragging:e,clicking:o,raiseOnDrag:c,draggingCursor:p,rotation:f,shadow:a,title:d,label:y,animation:x,top:u,renderByParent:B,$parent:O,zIndex:z}=this;let k={offset:v,icon:n&&rt(i,n),enableMassClear:s,enableDragging:e,enableClicking:o,raiseOnDrag:c,draggingCursor:p,rotation:f,shadow:a,title:d};Q(k);const l=new i.Marker(new i.Point(_.lng,_.lat),k);this.originInstance=l,y&&l&&l.setLabel(Ot(i,y)),l.setTop(u),l.setZIndex(z),lt.call(this,l),B?O.reload():h.addOverlay(l),l.setAnimation(window[x]),(r=(t=this.Cluster)==null?void 0:t.addMaker)==null||r.call(t,this)}},beforeUnmount(){var t,r;(r=(t=this.Cluster)==null?void 0:t.removeMaker)==null||r.call(t,this)}};function jt(t,r,i,h,_,v){return w.openBlock(),w.createElementBlock("div",null,[w.renderSlot(t.$slots,"default")])}var Lt=q(Zt,[["render",jt]]),dt={exports:{}};(function(t,r){(function(i,h){t.exports=h()})(Z,function(){var i=typeof window!="undefined"?window:typeof Z!="undefined"?Z:this;function h(a,d){return d={exports:{}},a(d,d.exports,i),d.exports}var _=h(function(a,d,y){(function(x,u){typeof d=="object"?a.exports=u():(x.BMapLib=x.BMapLib||{},x.BMapLib.TextIconOverlay=x.BMapLib.TextIconOverlay||u())})(i,function(){var x,u=x=u||{version:"1.3.8"},B={};u.guid="$BAIDU$",B[u.guid]=B[u.guid]||{},u.dom=u.dom||{},u.dom.g=function(l){return typeof l=="string"||l instanceof String?document.getElementById(l):l&&l.nodeName&&(l.nodeType==1||l.nodeType==9)?l:null},u.g=u.G=u.dom.g,u.dom.getDocument=function(l){return l=u.dom.g(l),l.nodeType==9?l:l.ownerDocument||l.document},u.lang=u.lang||{},u.lang.isString=function(l){return Object.prototype.toString.call(l)=="[object String]"},u.isString=u.lang.isString,u.dom._g=function(l){return u.lang.isString(l)?document.getElementById(l):l},u._g=u.dom._g,u.browser=u.browser||{},/msie (\d+\.\d)/i.test(navigator.userAgent)&&(u.browser.ie=u.ie=document.documentMode||+RegExp.$1),u.dom.getComputedStyle=function(l,m){l=u.dom._g(l);var g=u.dom.getDocument(l),M;return g.defaultView&&g.defaultView.getComputedStyle&&(M=g.defaultView.getComputedStyle(l,null),M)?M[m]||M.getPropertyValue(m):""},u.dom._styleFixer=u.dom._styleFixer||{},u.dom._styleFilter=u.dom._styleFilter||[],u.dom._styleFilter.filter=function(l,m,g){for(var M=0,b=u.dom._styleFilter,E;E=b[M];M++)(E=E[g])&&(m=E(l,m));return m},u.string=u.string||{},u.string.toCamelCase=function(l){return l.indexOf("-")<0&&l.indexOf("_")<0?l:l.replace(/[-_][^-_]/g,function(m){return m.charAt(1).toUpperCase()})},u.dom.getStyle=function(l,m){var g=u.dom;l=g.g(l),m=u.string.toCamelCase(m);var M=l.style[m]||(l.currentStyle?l.currentStyle[m]:"")||g.getComputedStyle(l,m);if(!M){var b=g._styleFixer[m];b&&(M=b.get?b.get(l):u.dom.getStyle(l,b))}return(b=g._styleFilter)&&(M=b.filter(m,M,"get")),M},u.getStyle=u.dom.getStyle,/opera\/(\d+\.\d)/i.test(navigator.userAgent)&&(u.browser.opera=+RegExp.$1),u.browser.isWebkit=/webkit/i.test(navigator.userAgent),u.browser.isGecko=/gecko/i.test(navigator.userAgent)&&!/like gecko/i.test(navigator.userAgent),u.browser.isStrict=document.compatMode=="CSS1Compat",u.dom.getPosition=function(l){l=u.dom.g(l);var m=u.dom.getDocument(l),g=u.browser,M=u.dom.getStyle;g.isGecko>0&&m.getBoxObjectFor&&M(l,"position")=="absolute"&&(l.style.top===""||l.style.left);var b={left:0,top:0},E=g.ie&&!g.isStrict?m.body:m.documentElement,C,S;if(l==E)return b;if(l.getBoundingClientRect){S=l.getBoundingClientRect(),b.left=Math.floor(S.left)+Math.max(m.documentElement.scrollLeft,m.body.scrollLeft),b.top=Math.floor(S.top)+Math.max(m.documentElement.scrollTop,m.body.scrollTop),b.left-=m.documentElement.clientLeft,b.top-=m.documentElement.clientTop;var P=m.body,A=parseInt(M(P,"borderLeftWidth")),j=parseInt(M(P,"borderTopWidth"));g.ie&&!g.isStrict&&(b.left-=isNaN(A)?2:A,b.top-=isNaN(j)?2:j)}else{C=l;do{if(b.left+=C.offsetLeft,b.top+=C.offsetTop,g.isWebkit>0&&M(C,"position")=="fixed"){b.left+=m.body.scrollLeft,b.top+=m.body.scrollTop;break}C=C.offsetParent}while(C&&C!=l);for((g.opera>0||g.isWebkit>0&&M(l,"position")=="absolute")&&(b.top-=m.body.offsetTop),C=l.offsetParent;C&&C!=m.body;)b.left-=C.scrollLeft,(!g.opera||C.tagName!="TR")&&(b.top-=C.scrollTop),C=C.offsetParent}return b},u.event=u.event||{},u.event._listeners=u.event._listeners||[],u.event.on=function(l,m,g){m=m.replace(/^on/i,""),l=u.dom._g(l);var M=function(P){g.call(l,P)},b=u.event._listeners,E=u.event._eventFilter,C,S=m;return m=m.toLowerCase(),E&&E[m]&&(C=E[m](l,m,M),S=C.type,M=C.listener),l.addEventListener?l.addEventListener(S,M,!1):l.attachEvent&&l.attachEvent("on"+S,M),b[b.length]=[l,m,g,M,S],l},u.on=u.event.on,(function(){var l=B[u.guid];u.lang.guid=function(){return"TANGRAM__"+(l._counter++).toString(36)},l._counter=l._counter||1})(),B[u.guid]._instances=B[u.guid]._instances||{},u.lang.isFunction=function(l){return Object.prototype.toString.call(l)=="[object Function]"},u.lang.Class=function(l){this.guid=l||u.lang.guid(),B[u.guid]._instances[this.guid]=this},B[u.guid]._instances=B[u.guid]._instances||{},u.lang.Class.prototype.dispose=function(){delete B[u.guid]._instances[this.guid];for(var l in this)u.lang.isFunction(this[l])||delete this[l];this.disposed=!0},u.lang.Class.prototype.toString=function(){return"[object "+(this._className||"Object")+"]"},u.lang.Event=function(l,m){this.type=l,this.returnValue=!0,this.target=m||null,this.currentTarget=null},u.lang.Class.prototype.addEventListener=function(l,m,g){if(u.lang.isFunction(m)){!this.__listeners&&(this.__listeners={});var M=this.__listeners,b;if(typeof g=="string"&&g){if(/[^\w\-]/.test(g))throw"nonstandard key:"+g;m.hashCode=g,b=g}l.indexOf("on")!=0&&(l="on"+l),typeof M[l]!="object"&&(M[l]={}),b=b||u.lang.guid(),m.hashCode=b,M[l][b]=m}},u.lang.Class.prototype.removeEventListener=function(l,m){if(!(typeof m!="undefined"&&(u.lang.isFunction(m)&&!(m=m.hashCode)||!u.lang.isString(m)))){!this.__listeners&&(this.__listeners={}),l.indexOf("on")!=0&&(l="on"+l);var g=this.__listeners;if(g[l])if(typeof m!="undefined")g[l][m]&&delete g[l][m];else for(var M in g[l])delete g[l][M]}},u.lang.Class.prototype.dispatchEvent=function(l,m){u.lang.isString(l)&&(l=new u.lang.Event(l)),!this.__listeners&&(this.__listeners={}),m=m||{};for(var g in m)l[g]=m[g];var g,M=this.__listeners,b=l.type;if(l.target=l.target||this,l.currentTarget=this,b.indexOf("on")!=0&&(b="on"+b),u.lang.isFunction(this[b])&&this[b].apply(this,arguments),typeof M[b]=="object")for(g in M[b])M[b][g].apply(this,arguments);return l.returnValue},u.lang.inherits=function(l,m,g){var M,b,E=l.prototype,C=new Function;C.prototype=m.prototype,b=l.prototype=new C;for(M in E)b[M]=E[M];l.prototype.constructor=l,l.superClass=m.prototype,typeof g=="string"&&(b._className=g)},u.inherits=u.lang.inherits;var O="http://api.map.baidu.com/library/TextIconOverlay/1.2/src/images/m",z="png",k=function(l,m,g){try{BMap}catch(M){throw Error("Baidu Map JS API is not ready yet!")}x.lang.inherits(k,BMap.Overlay,"TextIconOverlay"),this._position=l,this._text=m,this._options=g||{},this._styles=this._options.styles||[],!this._styles.length&&this._setupDefaultStyles()};return k.prototype._setupDefaultStyles=function(){for(var l=[53,56,66,78,90],m=0,g;g=l[m];m++)this._styles.push({url:O+m+"."+z,size:new BMap.Size(g,g)})},k.prototype.initialize=function(l){return this._map=l,this._domElement=document.createElement("div"),this._updateCss(),this._updateText(),this._updatePosition(),this._bind(),this._map.getPanes().markerMouseTarget.appendChild(this._domElement),this._domElement},k.prototype.draw=function(){this._map&&this._updatePosition()},k.prototype.getText=function(){return this._text},k.prototype.setText=function(l){l&&(!this._text||this._text.toString()!=l.toString())&&(this._text=l,this._updateText(),this._updateCss(),this._updatePosition())},k.prototype.getPosition=function(){return this._position},k.prototype.setPosition=function(l){l&&(!this._position||!this._position.equals(l))&&(this._position=l,this._updatePosition())},k.prototype.getStyleByText=function(l,m){var g=parseInt(l),M=parseInt(g/10);return M=Math.max(0,M),M=Math.min(M,m.length-1),m[M]},k.prototype._updateCss=function(){if(this._domElement){var l=this.getStyleByText(this._text,this._styles);this._domElement.style.cssText=this._buildCssText(l)}},k.prototype._updateText=function(){this._domElement&&(this._domElement.innerHTML=this._text)},k.prototype._updatePosition=function(){if(this._domElement&&this._position){var l=this._domElement.style,m=this._map.pointToOverlayPixel(this._position);m.x-=Math.ceil(parseInt(l.width)/2),m.y-=Math.ceil(parseInt(l.height)/2),l.left=m.x+"px",l.top=m.y+"px"}},k.prototype._buildCssText=function(l){var m=l.url,g=l.size,M=l.anchor,b=l.offset,E=l.textColor||"black",C=l.textSize||10,S=[];if(x.browser.ie<7)S.push('filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="'+m+'");');else{S.push("background-image:url("+m+");");var P="0 0";b instanceof BMap.Size&&(P=b.width+"px "+b.height+"px"),S.push("background-position:"+P+";")}return g instanceof BMap.Size&&(M instanceof BMap.Size?(M.height>0&&M.height<g.height&&S.push("height:"+(g.height-M.height)+"px; padding-top:"+M.height+"px;"),M.width>0&&M.width<g.width&&S.push("width:"+(g.width-M.width)+"px; padding-left:"+M.width+"px;")):(S.push("height:"+g.height+"px; line-height:"+g.height+"px;"),S.push("width:"+g.width+"px; text-align:center;"))),S.push("cursor:pointer; color:"+E+"; position:absolute; font-size:"+C+"px; font-family:Arial,sans-serif; font-weight:bold"),S.join("")},k.prototype._bind=function(){if(!this._domElement)return;var l=this,m=this._map,g=x.lang.Event;function M(b,E){var C=b.srcElement||b.target,S=b.clientX||b.pageX,P=b.clientY||b.pageY;if(b&&E&&S&&P&&C){var A=x.dom.getPosition(m.getContainer());E.pixel=new BMap.Pixel(S-A.left,P-A.top),E.point=m.pixelToPoint(E.pixel)}return E}x.event.on(this._domElement,"mouseover",function(b){l.dispatchEvent(M(b,new g("onmouseover")))}),x.event.on(this._domElement,"mouseout",function(b){l.dispatchEvent(M(b,new g("onmouseout")))}),x.event.on(this._domElement,"click",function(b){l.dispatchEvent(M(b,new g("onclick")))})},k})}),v=_&&typeof _=="object"&&"default"in _?_.default:_,n=function(a,d,y){d=s(d);var x=a.pointToPixel(d.getNorthEast()),u=a.pointToPixel(d.getSouthWest());x.x+=y,x.y-=y,u.x-=y,u.y+=y;var B=a.pixelToPoint(x),O=a.pixelToPoint(u);return new BMap.Bounds(O,B)},s=function(a){var d=e(a.getNorthEast().lng,-180,180),y=e(a.getSouthWest().lng,-180,180),x=e(a.getNorthEast().lat,-74,74),u=e(a.getSouthWest().lat,-74,74);return new BMap.Bounds(new BMap.Point(y,u),new BMap.Point(d,x))},e=function(a,d,y){return d&&(a=Math.max(a,d)),y&&(a=Math.min(a,y)),a},o=function(a){return Object.prototype.toString.call(a)==="[object Array]"},c=function(a,d){var y=-1;if(o(d)){if(d.indexOf)y=d.indexOf(a);else for(var x=0,u;u=d[x];x++)if(u===a){y=x;break}}return y},p=function(a,d){try{BMap}catch(B){throw Error("Baidu Map JS API is not ready yet!")}if(a){this._map=a,this._markers=[],this._clusters=[];var y=d||{};this._gridSize=y.gridSize||60,this._maxZoom=y.maxZoom||18,this._minClusterSize=y.minClusterSize||2,this._isAverageCenter=!1,y.isAverageCenter!=null&&(this._isAverageCenter=y.isAverageCenter),this._styles=y.styles||[];var x=this;this._map.addEventListener("zoomend",function(){x._redraw()}),this._map.addEventListener("moveend",function(){x._redraw()});var u=y.markers;o(u)&&this.addMarkers(u)}};p.prototype.addMarkers=function(a){if(a.length){for(var d=0,y=a.length;d<y;d++)this._pushMarkerTo(a[d]);this._createClusters()}},p.prototype._pushMarkerTo=function(a){var d=c(a,this._markers);d===-1&&(a.isInCluster=!1,this._markers.push(a))},p.prototype.addMarker=function(a){this._pushMarkerTo(a),this._createClusters()},p.prototype._createClusters=function(){var a=this._map.getBounds();if(a.getCenter())for(var d=n(this._map,a,this._gridSize),y=0,x;x=this._markers[y];y++)!x.isInCluster&&d.containsPoint(x.getPosition())&&this._addToClosestCluster(x)},p.prototype._addToClosestCluster=function(a){var d=4e6,y=null;a.getPosition();for(var x=0,u;u=this._clusters[x];x++){var B=u.getCenter();if(B){var O=this._map.getDistance(B,a.getPosition());O<d&&(d=O,y=u)}}if(y&&y.isMarkerInClusterBounds(a))y.addMarker(a);else{var u=new f(this);u.addMarker(a),this._clusters.push(u)}},p.prototype._clearLastClusters=function(){for(var a=0,d;d=this._clusters[a];a++)d.remove();this._clusters=[],this._removeMarkersFromCluster()},p.prototype._removeMarkersFromCluster=function(){for(var a=0,d;d=this._markers[a];a++)d.isInCluster=!1},p.prototype._removeMarkersFromMap=function(){for(var a=0,d;d=this._markers[a];a++){d.isInCluster=!1;var y=d.getLabel();this._map.removeOverlay(d),d.setLabel(y)}},p.prototype._removeMarker=function(a){var d=c(a,this._markers);return d===-1?!1:(this._map.removeOverlay(a),this._markers.splice(d,1),!0)},p.prototype.removeMarker=function(a){var d=this._removeMarker(a);return d&&(this._clearLastClusters(),this._createClusters()),d},p.prototype.removeMarkers=function(a){for(var d=!1,y=0;y<a.length;y++){var x=this._removeMarker(a[y]);d=d||x}return d&&(this._clearLastClusters(),this._createClusters()),d},p.prototype.clearMarkers=function(){this._clearLastClusters(),this._removeMarkersFromMap(),this._markers=[]},p.prototype._redraw=function(){this._clearLastClusters(),this._createClusters()},p.prototype.getGridSize=function(){return this._gridSize},p.prototype.setGridSize=function(a){this._gridSize=a,this._redraw()},p.prototype.getMaxZoom=function(){return this._maxZoom},p.prototype.setMaxZoom=function(a){this._maxZoom=a,this._redraw()},p.prototype.getStyles=function(){return this._styles},p.prototype.setStyles=function(a){this._styles=a,this._redraw()},p.prototype.getMinClusterSize=function(){return this._minClusterSize},p.prototype.setMinClusterSize=function(a){this._minClusterSize=a,this._redraw()},p.prototype.isAverageCenter=function(){return this._isAverageCenter},p.prototype.getMap=function(){return this._map},p.prototype.getMarkers=function(){return this._markers},p.prototype.getClustersCount=function(){for(var a=0,d=0,y;y=this._clusters[d];d++)y.isReal()&&a++;return a};function f(a){this._markerClusterer=a,this._map=a.getMap(),this._minClusterSize=a.getMinClusterSize(),this._isAverageCenter=a.isAverageCenter(),this._center=null,this._markers=[],this._gridBounds=null,this._isReal=!1,this._clusterMarker=new v(this._center,this._markers.length,{styles:this._markerClusterer.getStyles()})}return f.prototype.addMarker=function(a){if(this.isMarkerInCluster(a))return!1;if(!this._center)this._center=a.getPosition(),this.updateGridBounds();else if(this._isAverageCenter){var d=this._markers.length+1,y=(this._center.lat*(d-1)+a.getPosition().lat)/d,x=(this._center.lng*(d-1)+a.getPosition().lng)/d;this._center=new BMap.Point(x,y),this.updateGridBounds()}a.isInCluster=!0,this._markers.push(a);var u=this._markers.length;if(u<this._minClusterSize)return this._map.addOverlay(a),!0;if(u===this._minClusterSize)for(var B=0;B<u;B++){var O=this._markers[B].getLabel();this._markers[B].getMap()&&this._map.removeOverlay(this._markers[B]),this._markers[B].setLabel(O)}return this._map.addOverlay(this._clusterMarker),this._isReal=!0,this.updateClusterMarker(),!0},f.prototype.isMarkerInCluster=function(a){if(this._markers.indexOf)return this._markers.indexOf(a)!=-1;for(var d=0,y;y=this._markers[d];d++)if(y===a)return!0;return!1},f.prototype.isMarkerInClusterBounds=function(a){return this._gridBounds.containsPoint(a.getPosition())},f.prototype.isReal=function(a){return this._isReal},f.prototype.updateGridBounds=function(){var a=new BMap.Bounds(this._center,this._center);this._gridBounds=n(this._map,a,this._markerClusterer.getGridSize())},f.prototype.updateClusterMarker=function(){if(this._map.getZoom()>this._markerClusterer.getMaxZoom()){this._clusterMarker&&this._map.removeOverlay(this._clusterMarker);for(var a=0,d;d=this._markers[a];a++)this._map.addOverlay(d);return}if(this._markers.length<this._minClusterSize){this._clusterMarker.hide();return}this._clusterMarker.setPosition(this._center),this._clusterMarker.setText(this._markers.length),this._clusterMarker.addEventListener&&!this._clusterMarker._hasClickEvent&&this._clusterMarker.addEventListener("click",function(y){this._clusterMarker._hasClickEvent=!0,this._markers&&this._map.setViewport(this.getBounds())}.bind(this))},f.prototype.remove=function(){for(var a=0;this._markers[a];a++){var d=this._markers[a].getLabel();this._markers[a].getMap()&&this._map.removeOverlay(this._markers[a]),this._markers[a].setLabel(d)}this._map.removeOverlay(this._clusterMarker),this._markers.length=0,delete this._markers},f.prototype.getBounds=function(){for(var a=new BMap.Bounds(this._center,this._center),d=0,y;y=this._markers[d];d++)a.extend(y.getPosition());return a},f.prototype.getCenter=function(){return this._center},p})})(dt);var Ft=dt.exports;const H=[],Ht={name:"bml-marker-clusterer",mixins:[ct("markerClusterer")],provide(){return{Cluster:this}},props:{gridSize:{type:Number},maxZoom:{type:Number},minClusterSize:{type:Number},styles:{type:Array,default(){return[]}},averageCenter:{type:Boolean,default:!1}},data(){return{}},watch:{gridSize:{handler(t){const{BMap:r,originInstance:i}=this;i.setGridSize(t)},deep:!0},maxZoom(t){const{originInstance:r}=this;r.setMaxZoom(t)},minClusterSize:{handler(t){const{BMap:r,originInstance:i}=this;i.setMinClusterSize(t)},deep:!0},styles:{handler(t){const{BMap:r,originInstance:i}=this,h=JSON.parse(JSON.stringify(t)).map(_=>(_.size=_.size&&D(r,_.size),_));i.setStyles(h)},deep:!0},averageCenter(t){this.reload()}},methods:{load(){const{BMap:t,map:r,gridSize:i,minClusterSize:h,maxZoom:_,styles:v,averageCenter:n}=this;this.originInstance=new Ft(r,{gridSize:i||60,maxZoom:_,minClusterSize:h||2,styles:v.map(s=>(s.size=D(t,s.size),s)),isAverageCenter:n}),this.$nextTick(()=>{const s=H.map(e=>e.originInstance).filter(e=>e instanceof t.Marker);this.originInstance.addMarkers(s)})},addMaker(t){H.push(t)},removeMaker(t){H.splice(H.indexOf(t),1)}},beforeCreate(){this.preventChildrenRender=!0}};function Wt(t,r,i,h,_,v){return w.openBlock(),w.createElementBlock("span",null,[w.renderSlot(t.$slots,"default")])}var Vt=q(Ht,[["render",Wt]]),Gt={exports:{}};(function(t,r){(function(i,h){t.exports=h()})(Z,function(){var i={};i.dom={},i.dom.g=function(n){return typeof n=="string"||n instanceof String?document.getElementById(n):n&&n.nodeName&&(n.nodeType==1||n.nodeType==9)?n:null},i.g=i.G=i.dom.g,i.lang=i.lang||{},i.lang.isString=function(n){return Object.prototype.toString.call(n)=="[object String]"},i.isString=i.lang.isString,i.dom._g=function(n){return i.lang.isString(n)?document.getElementById(n):n},i._g=i.dom._g,i.dom.getDocument=function(n){return n=i.dom.g(n),n.nodeType==9?n:n.ownerDocument||n.document},i.browser=i.browser||{},i.browser.ie=i.ie=/msie (\d+\.\d+)/i.test(navigator.userAgent)?document.documentMode||+RegExp.$1:void 0,i.dom.getComputedStyle=function(n,s){n=i.dom._g(n);var e=i.dom.getDocument(n),o;return e.defaultView&&e.defaultView.getComputedStyle&&(o=e.defaultView.getComputedStyle(n,null),o)?o[s]||o.getPropertyValue(s):""},i.dom._styleFixer=i.dom._styleFixer||{},i.dom._styleFilter=i.dom._styleFilter||[],i.dom._styleFilter.filter=function(n,s,e){for(var o=0,c=i.dom._styleFilter,p;p=c[o];o++)(p=p[e])&&(s=p(n,s));return s},i.string=i.string||{},i.string.toCamelCase=function(n){return n.indexOf("-")<0&&n.indexOf("_")<0?n:n.replace(/[-_][^-_]/g,function(s){return s.charAt(1).toUpperCase()})},i.dom.getStyle=function(n,s){var e=i.dom;n=e.g(n),s=i.string.toCamelCase(s);var o=n.style[s]||(n.currentStyle?n.currentStyle[s]:"")||e.getComputedStyle(n,s);if(!o){var c=e._styleFixer[s];c&&(o=c.get?c.get(n):i.dom.getStyle(n,c))}return(c=e._styleFilter)&&(o=c.filter(s,o,"get")),o},i.getStyle=i.dom.getStyle,i.dom._NAME_ATTRS=(function(){var n={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",usemap:"useMap",frameborder:"frameBorder"};return i.browser.ie<8?(n.for="htmlFor",n.class="className"):(n.htmlFor="for",n.className="class"),n})(),i.dom.setAttr=function(n,s,e){return n=i.dom.g(n),s=="style"?n.style.cssText=e:(s=i.dom._NAME_ATTRS[s]||s,n.setAttribute(s,e)),n},i.setAttr=i.dom.setAttr,i.dom.setAttrs=function(n,s){n=i.dom.g(n);for(var e in s)i.dom.setAttr(n,e,s[e]);return n},i.setAttrs=i.dom.setAttrs,i.dom.create=function(n,s){var e=document.createElement(n),o=s||{};return i.dom.setAttrs(e,o)},i.object=i.object||{},i.extend=i.object.extend=function(n,s){for(var e in s)s.hasOwnProperty(e)&&(n[e]=s[e]);return n};var h=function(n,s,e){try{BMap}catch(o){throw Error("Baidu Map JS API is not ready yet!")}!s||s.length<1||(this._map=n,this._path=s,this.i=0,this._setTimeoutQuene=[],this._projection=this._map.getMapType().getProjection(),this._opts={icon:null,speed:4e3,defaultContent:"",showInfoWindow:!1},this._setOptions(e),this._rotation=0,!this._opts.icon instanceof BMap.Icon&&(this._opts.icon=defaultIcon))};h.prototype._setOptions=function(n){if(n)for(var s in n)n.hasOwnProperty(s)&&(this._opts[s]=n[s])},h.prototype.start=function(){var n=this,s=n._path.length;if(this._opts.onstart&&this._opts.onstart(n),n.i&&n.i<s-1)if(n._fromPause)n._fromStop||n._moveNext(++n.i);else return;else!n._marker&&n._addMarker(),n._timeoutFlag=setTimeout(function(){!n._overlay&&n._addInfoWin(),n._moveNext(n.i)},400);this._fromPause=!1,this._fromStop=!1},h.prototype.stop=function(){this.i=0,this._fromStop=!0,clearInterval(this._intervalFlag),this._clearTimeout();for(var n=0,s=this._opts.landmarkPois,e=s.length;n<e;n++)s[n].bShow=!1;this._opts.onstop&&this._opts.onstop(this)},h.prototype.pause=function(){clearInterval(this._intervalFlag),this._fromPause=!0,this._clearTimeout(),this._opts.onpause&&this._opts.onpause(this)},h.prototype.hideInfoWindow=function(){this._opts.showInfoWindow=!1,this._overlay&&(this._overlay._div.style.visibility="hidden")},h.prototype.showInfoWindow=function(){this._opts.showInfoWindow=!0,this._overlay&&(this._overlay._div.style.visibility="visible")},h.prototype.dispose=function(){clearInterval(this._intervalFlag),this._setTimeoutQuene&&this._clearTimeout(),this._map&&(this._map.removeOverlay(this._overlay),this._map.removeOverlay(this._marker))},i.object.extend(h.prototype,{_addMarker:function(n){this._marker&&(this.stop(),this._map.removeOverlay(this._marker),clearTimeout(this._timeoutFlag)),this._overlay&&this._map.removeOverlay(this._overlay);var s=new BMap.Marker(this._path[0]);this._opts.icon&&s.setIcon(this._opts.icon),this._map.addOverlay(s),s.setAnimation(BMAP_ANIMATION_DROP),this._marker=s},_addInfoWin:function(){var n=this;!_.prototype.initialize&&v();var s=new _(n._marker.getPosition(),n._opts.defaultContent);s.setRelatedClass(this),this._overlay=s,this._map.addOverlay(s),this._opts.showInfoWindow?this.showInfoWindow():this.hideInfoWindow()},_getMercator:function(n){return this._map.getMapType().getProjection().lngLatToPoint(n)},_getDistance:function(n,s){return Math.sqrt(Math.pow(n.x-s.x,2)+Math.pow(n.y-s.y,2))},_move:function(n,s,e){var o=this,c=0,p=10,f=this._opts.speed/(1e3/p),a=this._projection.lngLatToPoint(n),d=this._projection.lngLatToPoint(s),y=Math.round(o._getDistance(a,d)/f);if(y<1){o._moveNext(++o.i);return}o._intervalFlag=setInterval(function(){if(c>=y){if(clearInterval(o._intervalFlag),o.i>o._path.length)return;o._moveNext(++o.i),o._opts.onmove(o)}else{c++;var x=e(a.x,d.x,c,y),u=e(a.y,d.y,c,y),B=o._projection.pointToLngLat(new BMap.Pixel(x,u));if(c==1){var O=null;o.i-1>=0&&(O=o._path[o.i-1]),o._opts.enableRotation==!0&&o.setRotation(O,n,s),o._opts.autoView&&(o._map.getBounds().containsPoint(B)||o._map.setCenter(B))}o._marker.setPosition(B),o._setInfoWin(B)}},p)},setRotation:function(n,s,e){var o=this,c=0;if(s=o._map.pointToPixel(s),e=o._map.pointToPixel(e),e.x!=s.x){var p=(e.y-s.y)/(e.x-s.x),f=Math.atan(p);c=f*360/(2*Math.PI),e.x<s.x?c=-c+90+90:c=-c,o._marker.setRotation(-c)}else{var a=e.y-s.y,d=0;a>0?d=-1:d=1,o._marker.setRotation(-d*90)}},linePixellength:function(n,s){return Math.sqrt(Math.abs(n.x-s.x)*Math.abs(n.x-s.x)+Math.abs(n.y-s.y)*Math.abs(n.y-s.y))},pointToPoint:function(n,s){return Math.abs(n.x-s.x)*Math.abs(n.x-s.x)+Math.abs(n.y-s.y)*Math.abs(n.y-s.y)},_moveNext:function(n){var s=this;n<this._path.length-1?s._move(s._path[n],s._path[n+1],s._tween.linear):s.stop()},moveNext:function(n){var s=this;n<this._path.length-1?s._move(s._path[n],s._path[n+1],s._tween.linear):s.stop()},_setInfoWin:function(n){var s=this;s._overlay.setPosition(n,s._marker.getIcon().size);var e=s._troughPointIndex(n);e!=-1?(clearInterval(s._intervalFlag),s._overlay.setHtml(s._opts.landmarkPois[e].html),s._overlay.setPosition(n,s._marker.getIcon().size),s._pauseForView(e)):s._overlay.setHtml(s._opts.defaultContent)},_pauseForView:function(n){var s=this,e=setTimeout(function(){s._moveNext(++s.i)},s._opts.landmarkPois[n].pauseTime*1e3);s._setTimeoutQuene.push(e)},_clearTimeout:function(){for(var n in this._setTimeoutQuene)clearTimeout(this._setTimeoutQuene[n]);this._setTimeoutQuene.length=0},_tween:{linear:function(n,s,e,o){var c=n,p=s-n,f=e,a=o;return p*f/a+c}},_troughPointIndex:function(n){for(var s=this._opts.landmarkPois,e,o=0,c=s.length;o<c;o++)if(!s[o].bShow&&(e=this._map.getDistance(new BMap.Point(s[o].lng,s[o].lat),n),e<10))return s[o].bShow=!0,o;return-1}});function _(n,s){this._point=n,this._html=s}function v(){_.prototype=new BMap.Overlay,_.prototype.initialize=function(n){var s=this._div=i.dom.create("div",{style:"border:solid 1px #ccc;width:auto;min-width:50px;text-align:center;position:absolute;background:#fff;color:#000;font-size:12px;border-radius: 10px;padding:5px;white-space: nowrap;"});return s.innerHTML=this._html,n.getPanes().floatPane.appendChild(s),this._map=n,s},_.prototype.draw=function(){this.setPosition(this.lushuMain._marker.getPosition(),this.lushuMain._marker.getIcon().size)},i.object.extend(_.prototype,{setPosition:function(n,s){var e=this._map.pointToOverlayPixel(n),o=i.dom.getStyle(this._div,"width"),c=i.dom.getStyle(this._div,"height"),p=parseInt(this._div.clientWidth||o,10);parseInt(this._div.clientHeight||c,10),this._div.style.left=e.x-p/2+"px",this._div.style.bottom=-(e.y-s.height)+"px"},setHtml:function(n){this._div.innerHTML=n},setRelatedClass:function(n){this.lushuMain=n}})}return h})})(Gt);var Qt={exports:{}};(function(t,r){(function(i,h){t.exports=h()})(Z,function(){function i(v,n,s){var e,o,c=v.prototype,p=new Function;p.prototype=n.prototype,o=v.prototype=new p;for(e in c)o[e]=c[e];v.prototype.constructor=v,v.superClass=n.prototype,o._className=s}var h=(function(){var v=function(o){var c={data:[],heatmap:o};this.max=1,this.get=function(p){return c[p]},this.set=function(p,f){c[p]=f}};v.prototype={addDataPoint:function(e,o){if(!(e<0||o<0)){var c=this,p=c.get("heatmap"),f=c.get("data");if(f[e]||(f[e]=[]),f[e][o]||(f[e][o]=0),f[e][o]+=arguments.length<3?1:arguments[2],c.set("data",f),c.max<f[e][o]){p.get("actx").clearRect(0,0,p.get("width"),p.get("height")),c.setDataSet({max:f[e][o],data:f},!0);return}p.drawAlpha(e,o,f[e][o],!0)}},setDataSet:function(e,o){var c=this,p=c.get("heatmap"),f=[],a=e.data,d=a.length;if(p.clear(),this.max=e.max,p.get("legend")&&p.get("legend").update(e.max),o!=null&&o){for(var y in a)if(y!==void 0)for(var x in a[y])x!==void 0&&p.drawAlpha(y,x,a[y][x],!1)}else for(;d--;){var u=a[d];p.drawAlpha(u.x,u.y,u.count,!1),f[u.x]||(f[u.x]=[]),f[u.x][u.y]||(f[u.x][u.y]=0),f[u.x][u.y]=u.count}p.colorize(),this.set("data",a)},exportDataSet:function(){var e=this,o=e.get("data"),c=[];for(var p in o)if(p!==void 0)for(var f in o[p])f!==void 0&&c.push({x:parseInt(p,10),y:parseInt(f,10),count:o[p][f]});return{max:e.max,data:c}},generateRandomDataSet:function(e){var o=this.get("heatmap"),c=o.get("width"),p=o.get("height"),f={},a=Math.floor(Math.random()*1e3+1);f.max=a;for(var d=[];e--;)d.push({x:Math.floor(Math.random()*c+1),y:Math.floor(Math.random()*p+1),count:Math.floor(Math.random()*a+1)});f.data=d,this.setDataSet(f)}};var n=function(o){this.config=o;var c={element:null,labelsEl:null,gradientCfg:null,ctx:null};this.get=function(p){return c[p]},this.set=function(p,f){c[p]=f},this.init()};n.prototype={init:function(){var e=this,o=e.config,c=o.title||"Legend",p=o.position,f=o.offset||10;o.gradient;var a=document.createElement("ul"),d,y,x="";e.processGradientObject(),p.indexOf("t")>-1?x+="top:"+f+"px;":x+="bottom:"+f+"px;",p.indexOf("l")>-1?x+="left:"+f+"px;":x+="right:"+f+"px;",d=document.createElement("div"),d.style.cssText="border-radius:5px;position:absolute;"+x+"font-family:Helvetica; width:256px;z-index:10000000000; background:rgba(255,255,255,1);padding:10px;border:1px solid black;margin:0;",d.innerHTML="<h3 style='padding:0;margin:0;text-align:center;font-size:16px;'>"+c+"</h3>",a.style.cssText="position:relative;font-size:12px;display:block;list-style:none;list-style-type:none;margin:0;height:15px;",y=document.createElement("div"),y.style.cssText=["position:relative;display:block;width:256px;height:15px;border-bottom:1px solid black; background-image:url(",e.createGradientImage(),");"].join(""),d.appendChild(a),d.appendChild(y),e.set("element",d),e.set("labelsEl",a),e.update(1)},processGradientObject:function(){var e=this,o=this.config.gradient,c=[];for(var p in o)o.hasOwnProperty(p)&&c.push({stop:p,value:o[p]});c.sort(function(f,a){return f.stop-a.stop}),c.unshift({stop:0,value:"rgba(0,0,0,0)"}),e.set("gradientArr",c)},createGradientImage:function(){var e=this,o=e.get("gradientArr"),c=o.length,p=document.createElement("canvas"),f=p.getContext("2d"),a;p.width="256",p.height="15",a=f.createLinearGradient(0,5,256,10);for(var d=0;d<c;d++)a.addColorStop(1/(c-1)*d,o[d].value);f.fillStyle=a,f.fillRect(0,5,256,10),f.strokeStyle="black",f.beginPath();for(var d=0;d<c;d++)f.moveTo((1/(c-1)*d*256>>0)+.5,0),f.lineTo((1/(c-1)*d*256>>0)+.5,d==0?15:5);return f.moveTo(255.5,0),f.lineTo(255.5,15),f.moveTo(255.5,4.5),f.lineTo(0,4.5),f.stroke(),e.set("ctx",f),p.toDataURL()},getElement:function(){return this.get("element")},update:function(e){for(var o=this,c=o.get("gradientArr"),p=o.get("ctx"),f=o.get("labelsEl"),a,d="",y,x=0;x<c.length;x++)a=e*c[x].stop>>0,y=p.measureText(a).width/2>>0,x==0&&(y=0),x==c.length-1&&(y*=2),d+='<li style="position:absolute;left:'+(((1/(c.length-1)*x*256||0)>>0)-y+.5)+'px">'+a+"</li>";f.innerHTML=d}};var s=function(o){var c={radius:40,element:{},canvas:{},acanvas:{},ctx:{},actx:{},legend:null,visible:!0,width:0,height:0,max:!1,gradient:!1,opacity:180,premultiplyAlpha:!1,bounds:{l:1e3,r:0,t:1e3,b:0},debug:!1};this.store=new v(this),this.get=function(p){return c[p]},this.set=function(p,f){c[p]=f},this.configure(o),this.init()};return s.prototype={configure:function(e){var o=this;if(o.set("radius",e.radius||40),o.set("element",e.element instanceof Object?e.element:document.getElementById(e.element)),o.set("visible",e.visible!=null?e.visible:!0),o.set("max",e.max||!1),o.set("gradient",e.gradient||{.45:"rgb(0,0,255)",.55:"rgb(0,255,255)",.65:"rgb(0,255,0)",.95:"yellow",1:"rgb(255,0,0)"}),o.set("opacity",parseInt(255/(100/e.opacity),10)||180),o.set("width",e.width||0),o.set("height",e.height||0),o.set("debug",e.debug),e.legend){var c=e.legend;c.gradient=o.get("gradient"),o.set("legend",new n(c))}},resize:function(){var e=this,o=e.get("element"),c=e.get("canvas"),p=e.get("acanvas");c.width=p.width=e.get("width")||o.style.width.replace(/px/,"")||e.getWidth(o),this.set("width",c.width),c.height=p.height=e.get("height")||o.style.height.replace(/px/,"")||e.getHeight(o),this.set("height",c.height)},init:function(){var e=this,o=document.createElement("canvas"),c=document.createElement("canvas"),p=o.getContext("2d"),f=c.getContext("2d"),a=e.get("element");e.initColorPalette(),e.set("canvas",o),e.set("ctx",p),e.set("acanvas",c),e.set("actx",f),e.resize(),o.style.cssText=c.style.cssText="position:absolute;top:0;left:0;z-index:10000000;",e.get("visible")||(o.style.display="none"),a.appendChild(o),e.get("legend")&&a.appendChild(e.get("legend").getElement()),e.get("debug")&&document.body.appendChild(c),f.shadowOffsetX=15e3,f.shadowOffsetY=15e3,f.shadowBlur=15},initColorPalette:function(){var e=this,o=document.createElement("canvas"),c=e.get("gradient"),p,f,a;o.width="1",o.height="256",p=o.getContext("2d"),f=p.createLinearGradient(0,0,1,256),a=p.getImageData(0,0,1,1),a.data[0]=a.data[3]=64,a.data[1]=a.data[2]=0,p.putImageData(a,0,0),a=p.getImageData(0,0,1,1),e.set("premultiplyAlpha",a.data[0]<60||a.data[0]>70);for(var d in c)f.addColorStop(d,c[d]);p.fillStyle=f,p.fillRect(0,0,1,256),e.set("gradient",p.getImageData(0,0,1,256).data)},getWidth:function(e){var o=e.offsetWidth;return e.style.paddingLeft&&(o+=e.style.paddingLeft),e.style.paddingRight&&(o+=e.style.paddingRight),o},getHeight:function(e){var o=e.offsetHeight;return e.style.paddingTop&&(o+=e.style.paddingTop),e.style.paddingBottom&&(o+=e.style.paddingBottom),o},colorize:function(e,o){var c=this,p=c.get("width"),f=c.get("radius"),a=c.get("height"),d=c.get("actx"),y=c.get("ctx"),x=f*3,u=c.get("premultiplyAlpha"),B=c.get("gradient"),O=c.get("opacity"),z=c.get("bounds"),k,l,m,g,M,b,E,C,S;e!=null&&o!=null?(e+x>p&&(e=p-x),e<0&&(e=0),o<0&&(o=0),o+x>a&&(o=a-x),k=e,l=o,g=e+x,m=o+x):(z.l<0?k=0:k=z.l,z.r>p?g=p:g=z.r,z.t<0?l=0:l=z.t,z.b>a?m=a:m=z.b),M=d.getImageData(k,l,g-k,m-l),b=M.data.length;for(var P=3;P<b;P+=4)E=M.data[P],C=E*4,C&&(S=E<O?E:O,M.data[P-3]=B[C],M.data[P-2]=B[C+1],M.data[P-1]=B[C+2],u&&(M.data[P-3]/=255/S,M.data[P-2]/=255/S,M.data[P-1]/=255/S),M.data[P]=S);y.putImageData(M,k,l)},drawAlpha:function(e,o,c,p){var f=this,a=f.get("radius"),d=f.get("actx");f.get("max");var y=f.get("bounds"),x=e-1.5*a>>0,u=o-1.5*a>>0,B=e+1.5*a>>0,O=o+1.5*a>>0;d.shadowColor="rgba(0,0,0,"+(c?c/f.store.max:"0.1")+")",d.shadowOffsetX=15e3,d.shadowOffsetY=15e3,d.shadowBlur=15,d.beginPath(),d.arc(e-15e3,o-15e3,a,0,Math.PI*2,!0),d.closePath(),d.fill(),p?f.colorize(x,u):(x<y.l&&(y.l=x),u<y.t&&(y.t=u),B>y.r&&(y.r=B),O>y.b&&(y.b=O))},toggleDisplay:function(){var e=this,o=e.get("visible"),c=e.get("canvas");o?c.style.display="none":c.style.display="block",e.set("visible",!o)},getImageData:function(){return this.get("canvas").toDataURL()},clear:function(){var e=this,o=e.get("width"),c=e.get("height");e.store.set("data",[]),e.get("ctx").clearRect(0,0,o,c),e.get("actx").clearRect(0,0,o,c)},cleanup:function(){var e=this;e.get("element").removeChild(e.get("canvas"))}},{create:function(e){return new s(e)},util:{mousePosition:function(e){var o,c;if(e.layerX?(o=e.layerX,c=e.layerY):e.offsetX&&(o=e.offsetX,c=e.offsetY),typeof o!="undefined")return[o,c]}}}})(),_=function(v){try{BMap}catch(s){throw Error("Baidu Map JS API is not ready yet!")}if(!_._isExtended){_._isExtended=!0,i(_,BMap.Overlay,"HeatmapOverlay");var n=new _(v);this.__proto__=n.__proto__}this.conf=v,this.heatmap=null,this.latlngs=[],this.bounds=null,this._moveendHandler=this._moveendHandler.bind(this)};return _.prototype.initialize=function(v){this._map=v;var n=document.createElement("div");return n.style.position="absolute",n.style.top=0,n.style.left=0,n.style.border=0,n.style.width=this._map.getSize().width+"px",n.style.height=this._map.getSize().height+"px",this.conf.element=n,v.getPanes().mapPane.appendChild(n),this.heatmap=h.create(this.conf),this._div=n,n},_.prototype.draw=function(){var v=this._map.getBounds();if(!v.equals(this.bounds)){this.bounds=v;var n=this._map.pointToOverlayPixel(v.getNorthEast()),s=this._map.pointToOverlayPixel(v.getSouthWest());if(!(!n||!s)){var e=n.y,o=s.x,c=s.y-n.y,p=n.x-s.x;if(this.conf.element.style.left=o+"px",this.conf.element.style.top=e+"px",this.conf.element.style.width=p+"px",this.conf.element.style.height=c+"px",this.heatmap.store.get("heatmap").resize(),this.latlngs.length>0){this.heatmap.clear();for(var f=this.latlngs.length,a={max:this.heatmap.store.max,data:[]};f--;){var d=this.latlngs[f].latlng;if(v.containsPoint(d)){var y=this._map.pointToOverlayPixel(d),x=new BMap.Pixel(y.x-o,y.y-e),u=this.pixelTransform(x);a.data.push({x:u.x,y:u.y,count:this.latlngs[f].c})}}this.heatmap.store.setDataSet(a)}}}},_.prototype.pixelTransform=function(v){for(var n=this.heatmap.get("width"),s=this.heatmap.get("height");v.x<0;)v.x+=n;for(;v.x>n;)v.x-=n;for(;v.y<0;)v.y+=s;for(;v.y>s;)v.y-=s;return v.x=v.x>>0,v.y=v.y>>0,v},_.prototype._moveendHandler=function(v){this.setDataSet(this._data),delete this._data,this._map.removeEventListener("moveend",this._moveendHandler)},_.prototype.setDataSet=function(v){if(this._map){var n=this._map.getBounds(),s=this._map.pointToOverlayPixel(n.getNorthEast()),e=this._map.pointToOverlayPixel(n.getSouthWest());(!s||!e)&&(this._data=v,this._map.addEventListener("moveend",this._moveendHandler));var o={max:v.max,data:[]},c=v.data,p=c.length;for(this.latlngs=[];p--;){var f=new BMap.Point(c[p].lng,c[p].lat);if(this.latlngs.push({latlng:f,c:c[p].count}),!!n.containsPoint(f)){var a=this._map.pointToOverlayPixel(f),d=this._map.pointToOverlayPixel(n.getSouthWest()).x,y=this._map.pointToOverlayPixel(n.getNorthEast()).y,x=new BMap.Pixel(a.x-d,a.y-y),u=this.pixelTransform(x);o.data.push({x:u.x,y:u.y,count:c[p].count})}}this.heatmap.clear(),this.heatmap.store.setDataSet(o)}},_.prototype.addDataPoint=function(v,n,s){var e=new BMap.Point(v,n),o=this.pixelTransform(this._map.pointToOverlayPixel(e));this.heatmap.store.addDataPoint(o.x,o.y,s),this.latlngs.push({latlng:e,c:s})},_.prototype.toggle=function(){this.heatmap.toggleDisplay()},_})})(Qt);var Xt={exports:{}};(function(t,r){(function(i,h){t.exports=h()})(Z,function(){function i(v,n){try{BMap}catch(o){throw Error("Baidu Map JS API is not ready yet!")}var s=h(v),e=new BMap.Polyline(s,n);return e.addEventListener("lineupdate",function(){this.isEditing&&this.enableEditing()}),e.cornerPoints=v,e.editMarkers=[],e.enableEditing=function(){var o=this;if(o.map){o.disableEditing();for(var c=0;c<o.cornerPoints.length;c++){var p=new BMap.Marker(o.cornerPoints[c],{icon:new BMap.Icon("http://api.map.baidu.com/library/CurveLine/1.5/src/circle.png",new BMap.Size(16,16)),enableDragging:!0,raiseOnDrag:!0});p.addEventListener("dragend",function(){o.cornerPoints.length=0;for(var f=0;f<o.editMarkers.length;f++)o.cornerPoints.push(o.editMarkers[f].getPosition());var a=h(o.cornerPoints);o.setPath(a)}),p.index=c,o.editMarkers.push(p),o.map.addOverlay(p)}}o.isEditing=!0},e.disableEditing=function(){this.isEditing=!1;for(var o=0;o<this.editMarkers.length;o++)this.map.removeOverlay(this.editMarkers[o]),this.editMarkers[o]=null;this.editMarkers.length=0},e.getPath=function(){return s},e}function h(v){for(var n=[],s=0;s<v.length-1;s++){var e=_(v[s],v[s+1]);e&&e.length>0&&(n=n.concat(e))}return n}function _(v,n){var s=[];if(!v||!n||!(v instanceof BMap.Point)||!(n instanceof BMap.Point))return null;var e=function(g){return 1-2*g+g*g},o=function(g){return 2*g-2*g*g},c=function(g){return g*g},p=30,f,a,d,y,x,u,B=0,O=0;if(typeof n=="undefined"){typeof s!="undefined"&&(s=[]);return}var z=parseFloat(v.lat),k=parseFloat(n.lat),l=parseFloat(v.lng),m=parseFloat(n.lng);for(m>l&&parseFloat(m-l)>180&&l<0&&(l=parseFloat(360+l)),l>m&&parseFloat(l-m)>180&&m<0&&(m=parseFloat(360+m)),u=0,k==z?(f=0,a=l-m):m==l?(f=Math.PI/2,a=z-k):(f=Math.atan((k-z)/(m-l)),a=(k-z)/Math.sin(f)),u==0&&(u=f+Math.PI/5),d=a/2,x=d*Math.cos(u)+l,y=d*Math.sin(u)+z,B=0;B<p+1;B++)s.push(new BMap.Point(l*e(O)+x*o(O)+m*c(O),z*e(O)+y*o(O)+k*c(O))),O=O+1/p;return s}return i})})(Xt);const Yt="data:image/gif;base64,R0lGODlhLAHIAPcAAAAAAAEBAQICAgMDAwQEBAUFBQYGBgcHBwgICAkJCQoKCgsLCwwMDA0NDQ4ODg8PDxAQEBERERISEhMTExQUFBUVFRYWFhcXFxgYGBkZGRoaGhsbGxwcHB0d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7QfB4PGy7Omj582QwOT/7bTU3WuO3PAA3M8RDYkS7pk37m2fzNmF7rCBHryT3bxB7hzN7Xwu7glX4QTm0N09Dj0WzWYw7qSe3r04Dqbl3mk67MF5Has74Q5h4Rz3zu497u7v7u8B7v8j7v9F7v9n7v+J7v+r7v/N7v/v7vAB/wAj/wBF/wBn/wCJ/wCr/wDN/wDv/wEB/xEj/xFF/xFn/xGJ/xGr/xHN/xHu/xAQEAOw==",qt={class:"mix-body"},Kt={key:0},Jt={class:"w-[80px] h-[80px]"},Ut=["src"],$t={class:"bdmap-base-info"},te={class:"flex"},ee={class:"name"},ie={class:"value"},ne={class:"flex"},oe={class:"name"},re={class:"value"},ae={class:"flex"},se={class:"name"},le={class:"value"},ue={key:1,class:"w-[100%] h-[100%] p-[12px] text-[13px] text-[#999]"},ce={DEFAULT_ICON:et.DEFAULT_ICON,ACTIVE_ICON:et.ACTIVE_ICON,NAME_CN:"百度地图",NAME_EN:"Baidu Map",ORDER:2,PLATFORM:["pc","screen","mobile"]},de={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,lng:113.933782,lat:22.582649,zoom:10},pe={baiduMapAk:""},he={DEFAULT:ce,OPTIONS:de,COMMON:pe},me=w.defineComponent($(U({},he),{__name:"bmp",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(t){const{proxy:r}=w.getCurrentInstance(),i="bmp_"+Math.random().toString(16).substring(4,12);let h=null,_=null;const v=t;class n extends yt.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#73bff9"),titleColor:this.getOptionValue("titleColor","#111"),radiusSize:this.getOptionValue("radiusSize",4),zoom:this.getOptionValue("zoom",10),lng:this.getOptionValue("lng",113.933782),lat:this.getOptionValue("lat",22.582649),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){var M;this.Style.value=this.extractStyles(),this.applyTheme(),c.zoom=this.Style.value.zoom,c.center.lat=this.Style.value.lat,c.center.lng=this.Style.value.lng;const g=((M=this.props.conf)==null?void 0:M.common)||{};if(c.ak=g.baiduMapAk||"",_&&h){const b=new _.Point(this.Style.value.lng,this.Style.value.lat);h.centerAndZoom(b,this.Style.value.zoom)}}}const s=new n(v,"bmp");s.setupLifecycle();const e=s.getStyle(),o=w.computed(()=>_t.generateTitleStyle(v.conf.options)),c=w.reactive({zoom:10,ak:"",center:{lat:22.582649,lng:113.933782}}),p=w.ref([]),f=w.ref({}),a=w.ref(0),d=w.ref(0),y=w.ref(!1),x=({BMap:m,map:g})=>{h=g,_=m,v.mode==="preview"&&u()},u=()=>tt(null,null,function*(){const{result:m}=yield V.api.post("get_object_list"),g=/^(\-|\+)?(((\d|[1-9]\d|1[0-7]\d|0{1,3})\.\d{0,6})|(\d|[1-9]\d|1[0-7]\d|0{1,3})|180\.0{0,6}|180)$/,M=/^(\-|\+)?([0-8]?\d{1}\.\d{0,6}|90\.0{0,6}|[0-8]?\d{1}|90)$/;p.value=[];let b=!1;m.data.forEach(C=>{let S="";if(C.gis||C.gis.split(", ").length>1){const A=C.gis.split(", ");if(g.test(A[1])&&M.test(A[0])&&Number(A[1])&&Number(A[0])){const j=xt(Number(A[1]),Number(A[0]));S=j[1]+","+j[0]}else S=C.custom_gis}else S=C.custom_gis;const P=S.split(",");P.length>=2&&!b&&(c.center.lng=Number(P[1]),c.center.lat=Number(P[0]),b=!0),S.length>1&&p.value.push({center:{lng:P[1],lat:P[0]},image:C.image,address:C.address||C.province+C.city,name:C.name,uid:C.uid,desc:C.description})}),!b&&p.value[0]&&(c.center=p.value[0].center);const E=new _.Point(c.center.lng,c.center.lat);h.centerAndZoom(E,e.value.zoom)}),B=(m,g)=>{a.value=m.pixel.y+10+"px",d.value=m.pixel.x+10+"px",f.value=g,g.address||k(g),y.value=!0},O=m=>console.log(m),z=w.computed(()=>f.value.image?r.config.file_url+"/"+f.value.image:Yt),k=m=>{const g=`${m.center.lat},${m.center.lng}`,M={ak:c.ak,location:g,coordtype:"bd09ll",output:"json",extensions_poi:1};V.api.getLocation("/bdMapAddress",M).then(b=>{b.status===0&&(f.value.address=b.result.formatted_address_poi||b.result.formatted_address)})},l=m=>{if(m){let g=location.href;g.indexOf("?object_id=")>-1&&(g=g.split("?object_id=")[0]),location.href=g+"?object_id="+m,location.reload()}};return(m,g)=>{const M=vt.ElIcon;return w.openBlock(),w.createElementBlock("div",{class:"mix-component",style:w.normalizeStyle({background:w.unref(e).bgColor,borderRadius:`${w.unref(e).radiusSize}px`})},[w.createElementVNode("div",{class:"mix-title",style:w.normalizeStyle(o.value)},w.toDisplayString(t.conf.caption||t.conf.name),5),w.createElementVNode("div",qt,[c.ak?(w.openBlock(),w.createElementBlock("div",{key:0,class:"map-wrap",id:i},[w.createVNode(w.unref(Dt),{class:"bm-view relative",center:c.center,"map-click":!1,zoom:c.zoom,ak:c.ak,v:"3.0",type:"API",onMovestart:g[2]||(g[2]=b=>y.value=!1),onZoomstart:g[3]||(g[3]=b=>y.value=!1),onClick:g[4]||(g[4]=b=>O("close")),"scroll-wheel-zoom":!0,onReady:x},{default:w.withCtx(()=>[p.value.length?(w.openBlock(),w.createElementBlock("div",Kt,[w.createVNode(w.unref(Vt),null,{default:w.withCtx(()=>[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(p.value,b=>(w.openBlock(),w.createBlock(w.unref(Lt),{onClick:E=>B(E,b),key:b.uid,position:b.center},null,8,["onClick","position"]))),128))]),_:1})])):w.createCommentVNode("",!0),y.value?(w.openBlock(),w.createElementBlock("div",{key:1,class:"index-bdmap-equipment",style:w.normalizeStyle({top:a.value,left:d.value}),onClick:g[1]||(g[1]=b=>l(f.value))},[w.createElementVNode("div",Jt,[w.createElementVNode("img",{src:z.value,class:"w-[100%] h-[100%]"},null,8,Ut)]),w.createElementVNode("div",$t,[w.createElementVNode("div",te,[w.createElementVNode("span",ee,w.toDisplayString(m.$t("component.map.deviceNumber"))+":",1),w.createElementVNode("span",ie,w.toDisplayString(f.value.uid),1)]),w.createElementVNode("div",ne,[w.createElementVNode("span",oe,w.toDisplayString(m.$t("component.map.deviceName"))+":",1),w.createElementVNode("span",re,w.toDisplayString(f.value.name),1)]),w.createElementVNode("div",ae,[w.createElementVNode("span",se,w.toDisplayString(m.$t("component.map.address"))+":",1),w.createElementVNode("span",le,w.toDisplayString(f.value.address),1)])]),w.createVNode(M,{class:"close-icon"},{default:w.withCtx(()=>[w.createVNode(w.unref(bt.Close),{onClick:g[0]||(g[0]=w.withModifiers(b=>y.value=!1,["stop"]))})]),_:1})],4)):w.createCommentVNode("",!0)]),_:1},8,["center","zoom","ak"])])):(w.openBlock(),w.createElementBlock("div",ue,w.toDisplayString(m.$t("component.map.apiKeyRequired")),1))]),w.renderSlot(m.$slots,"default",{},void 0,!0)],4)}}})),fe=V._export_sfc(me,[["__scopeId","data-v-d1ccdc00"]]);exports.default=fe;
@@ -1 +1 @@
1
- "use strict";var j=Object.defineProperty,H=Object.defineProperties;var G=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var D=(r,o,i)=>o in r?j(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i,v=(r,o)=>{for(var i in o||(o={}))Q.call(o,i)&&D(r,i,o[i]);if(A)for(var i of A(o))X.call(o,i)&&D(r,i,o[i]);return r},C=(r,o)=>H(r,G(o));var M=(r,o,i)=>new Promise((E,h)=>{var N=p=>{try{g(i.next(p))}catch(x){h(x)}},b=p=>{try{g(i.throw(p))}catch(x){h(x)}},g=p=>p.done?E(p.value):Promise.resolve(p.value).then(N,b);g((i=i.apply(r,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=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/collapse/style/css");require("element-plus/es/components/collapse-item/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),q=require("@element-plus/icons-vue"),Y=require("./BaseComponent-CaCkjmmb.cjs"),B=require("./index-BzWbqJIl.cjs"),P=require("./ele-box-icon-NZ0BTjhm.cjs"),Z=["onClick"],K=["onClick"],ee={key:1,class:"slot-placeholder"},te={key:2,class:"slot-actions"},oe={class:"component-selector"},ne={class:"component-grid"},le=["onClick"],ae={class:"comp-icon"},re=["src","alt"],ie={class:"comp-name"},ce={DEFAULT_ICON:P.DEFAULT_ICON,ACTIVE_ICON:P.ACTIVE_ICON,NAME_CN:"组合盒子",NAME_EN:"Box",ORDER:0,PLATFORM:["pc","screen","mobile"]},se={layoutType:{value:"horizontal",type:"select",label:"布局方式",options:[{label:"水平排列",value:"horizontal"},{label:"垂直排列",value:"vertical"},{label:"自由布局",value:"free"},{label:"网格布局",value:"grid"}]},slotCount:{value:2,type:"number",label:"插槽数量",min:1,max:12},gridCols:{value:2,type:"number",label:"网格列数",min:1,max:6},gap:{value:8,type:"number",label:"间距(px)",min:0,max:50},padding:{value:8,type:"number",label:"内边距(px)",min:0,max:50},backgroundColor:{value:"transparent",type:"color",label:"背景色"},borderWidth:{value:0,type:"number",label:"边框宽度",min:0,max:10},borderColor:{value:"#e5e7eb",type:"color",label:"边框颜色"},borderRadius:{value:4,type:"number",label:"圆角(px)",min:0,max:50},slotsConfig:{value:"[]",type:"textarea",label:"插槽配置(JSON)",placeholder:'[{"x":0,"y":0,"w":50,"h":100},{"x":50,"y":0,"w":50,"h":100}]'}},de=[],ue=[],pe=[],me={},ye={DEFAULT:ce,OPTIONS:se,DATA:de,PARAMS:ue,SOURCE:pe,COMMON:me},fe=e.defineComponent(C(v({},ye),{__name:"box",props:{conf:{type:Object,default:()=>({data:[],options:{}})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){const o=r,i=e.shallowRef({}),E=e.ref({}),h=e.ref(!1),N=e.ref([]),b=e.ref(-1),g=e.ref(-1);e.onMounted(()=>M(null,null,function*(){i.value=B.elements.loadComponents(),E.value=yield B.elements.getElementsMap()}));class p extends Y.BaseComponent{extractStyles(){return{layoutType:this.getOptionValue("layoutType","horizontal"),slotCount:this.getOptionValue("slotCount",2),gridCols:this.getOptionValue("gridCols",2),gap:this.getOptionValue("gap",8),padding:this.getOptionValue("padding",8),backgroundColor:this.getOptionValue("backgroundColor","transparent"),borderWidth:this.getOptionValue("borderWidth",0),borderColor:this.getOptionValue("borderColor","#e5e7eb"),borderRadius:this.getOptionValue("borderRadius",4),slotsConfig:this.getOptionValue("slotsConfig","[]")}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),$()}}const x=new p(o,"box");x.setupLifecycle();const y=x.getStyle(),_=e.ref([]),$=()=>{var O,V,l,c,s,T,I,z;const t=((O=y.value)==null?void 0:O.slotCount)||2,n=((V=y.value)==null?void 0:V.layoutType)||"horizontal",a=((l=o.conf)==null?void 0:l.slots)||[];let u=[];try{const d=((c=y.value)==null?void 0:c.slotsConfig)||"[]";u=JSON.parse(d)}catch(d){u=[]}const k=[];for(let d=0;d<t;d++){const m=a[d],f=u[d];let w={x:0,y:0,w:100,h:100};n==="free"&&f?w={x:(s=f.x)!=null?s:0,y:(T=f.y)!=null?T:0,w:(I=f.w)!=null?I:50,h:(z=f.h)!=null?z:100}:n==="horizontal"?w={x:100/t*d,y:0,w:100/t,h:100}:n==="vertical"&&(w={x:0,y:100/t*d,w:100,h:100/t}),k.push(C(v({id:(m==null?void 0:m.id)||`slot-${Date.now()}-${d}`,name:(m==null?void 0:m.name)||(f==null?void 0:f.name)||`插槽 ${d+1}`},w),{component:(m==null?void 0:m.component)||null}))}_.value=k,o.conf&&(o.conf.slots=k)},R=e.computed(()=>{const t=y.value,n=(t==null?void 0:t.layoutType)||"horizontal",a={width:"100%",height:"100%",backgroundColor:(t==null?void 0:t.backgroundColor)||"transparent",borderWidth:`${(t==null?void 0:t.borderWidth)||0}px`,borderStyle:(t==null?void 0:t.borderWidth)>0?"solid":"none",borderColor:(t==null?void 0:t.borderColor)||"#e5e7eb",borderRadius:`${(t==null?void 0:t.borderRadius)||4}px`,padding:`${(t==null?void 0:t.padding)||8}px`,boxSizing:"border-box",overflow:"hidden"};return n==="horizontal"?C(v({},a),{display:"flex",flexDirection:"row",gap:`${(t==null?void 0:t.gap)||8}px`}):n==="vertical"?C(v({},a),{display:"flex",flexDirection:"column",gap:`${(t==null?void 0:t.gap)||8}px`}):n==="grid"?C(v({},a),{display:"grid",gridTemplateColumns:`repeat(${(t==null?void 0:t.gridCols)||2}, 1fr)`,gap:`${(t==null?void 0:t.gap)||8}px`}):C(v({},a),{position:"relative"})}),J=t=>{var a;const n=((a=y.value)==null?void 0:a.layoutType)||"horizontal";return n==="free"?{position:"absolute",left:`${t.x}%`,top:`${t.y}%`,width:`${t.w}%`,height:`${t.h}%`}:{flex:n==="horizontal"||n==="vertical"?1:void 0,minWidth:0,minHeight:0,overflow:"hidden"}},L=(t,n)=>{o.mode==="edit"&&(t.component||(b.value=n,h.value=!0))},F=(t,n)=>{var u;if(o.mode!=="edit"||!t.component)return;g.value=n;const a=new CustomEvent("box-component-selected",{bubbles:!0,detail:{component:t.component,boxId:(u=o.conf)==null?void 0:u.id,slotIndex:n}});document.dispatchEvent(a)},W=t=>{if(b.value<0)return;const a=B.elements.getAllExposedProps()[t.type]||{},u={id:`box-comp-${Date.now()}`,type:t.type,i:`box-comp-${Date.now()}`,x:0,y:0,w:1,h:1,options:JSON.parse(JSON.stringify(a.OPTIONS||{})),data:JSON.parse(JSON.stringify(a.DATA||[])),common:JSON.parse(JSON.stringify(a.COMMON||{}))};_.value[b.value].component=u,o.conf&&(o.conf.slots=_.value),h.value=!1,b.value=-1},U=t=>{_.value[t].component=null,o.conf&&(o.conf.slots=_.value)};return e.watch(()=>{var t,n,a;return[(t=y.value)==null?void 0:t.slotCount,(n=y.value)==null?void 0:n.layoutType,(a=y.value)==null?void 0:a.slotsConfig]},()=>{$()},{deep:!0}),(t,n)=>{const a=S.ElIcon,u=S.ElButton,k=S.ElCollapseItem,O=S.ElCollapse,V=S.ElDialog;return e.openBlock(),e.createElementBlock("div",{class:"box-container",style:e.normalizeStyle(R.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(l,c)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:e.normalizeClass(["box-slot",{"slot-empty":!l.component,"slot-hover":r.mode==="edit"&&!l.component}]),style:e.normalizeStyle(J(l)),onClick:e.withModifiers(s=>L(l,c),["stop"])},[l.component&&i.value[l.component.type]?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["slot-component-wrapper",{"slot-component-selected":r.mode==="edit"&&g.value===c}]),onClick:e.withModifiers(s=>F(l,c),["stop"])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value[l.component.type]),{conf:l.component,theme:r.theme,mode:r.mode,class:"slot-component"},null,8,["conf","theme","mode"]))],10,K)):r.mode==="edit"?(e.openBlock(),e.createElementBlock("div",ee,[e.createVNode(a,{size:24},{default:e.withCtx(()=>[e.createVNode(e.unref(q.Plus))]),_:1}),e.createElementVNode("span",null,e.toDisplayString(l.name||`插槽 ${c+1}`),1)])):e.createCommentVNode("",!0),r.mode==="edit"&&l.component?(e.openBlock(),e.createElementBlock("div",te,[e.createVNode(u,{type:"danger",size:"small",circle:"",onClick:e.withModifiers(s=>U(c),["stop"])},{default:e.withCtx(()=>[e.createVNode(a,null,{default:e.withCtx(()=>[e.createVNode(e.unref(q.Close))]),_:1})]),_:1},8,["onClick"])])):e.createCommentVNode("",!0)],14,Z))),128)),e.renderSlot(t.$slots,"default",{},void 0,!0),e.createVNode(V,{modelValue:h.value,"onUpdate:modelValue":n[1]||(n[1]=l=>h.value=l),title:"选择组件",width:"600px","append-to-body":!0,"close-on-click-modal":!0,"destroy-on-close":""},{default:e.withCtx(()=>[e.createElementVNode("div",oe,[e.createVNode(O,{modelValue:N.value,"onUpdate:modelValue":n[0]||(n[0]=l=>N.value=l)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(l,c)=>(e.openBlock(),e.createBlock(k,{key:c,title:l.name,name:c},{default:e.withCtx(()=>[e.createElementVNode("div",ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.data,s=>(e.openBlock(),e.createElementBlock("div",{key:s.type,class:"component-item",onClick:T=>W(s)},[e.createElementVNode("div",ae,[e.createElementVNode("img",{src:s.default_icon,alt:s.name},null,8,re)]),e.createElementVNode("div",ie,e.toDisplayString(s.name),1)],8,le))),128))])]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),_:1},8,["modelValue"])],4)}}})),he=B._export_sfc(fe,[["__scopeId","data-v-61ed94fc"]]);exports.default=he;
1
+ "use strict";var j=Object.defineProperty,H=Object.defineProperties;var G=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var D=(r,o,i)=>o in r?j(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i,v=(r,o)=>{for(var i in o||(o={}))Q.call(o,i)&&D(r,i,o[i]);if(A)for(var i of A(o))X.call(o,i)&&D(r,i,o[i]);return r},C=(r,o)=>H(r,G(o));var M=(r,o,i)=>new Promise((E,h)=>{var N=p=>{try{g(i.next(p))}catch(x){h(x)}},b=p=>{try{g(i.throw(p))}catch(x){h(x)}},g=p=>p.done?E(p.value):Promise.resolve(p.value).then(N,b);g((i=i.apply(r,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=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/collapse/style/css");require("element-plus/es/components/collapse-item/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),q=require("@element-plus/icons-vue"),Y=require("./BaseComponent-BmhMoM4H.cjs"),B=require("./index-77aUdspY.cjs"),P=require("./ele-box-icon-NZ0BTjhm.cjs"),Z=["onClick"],K=["onClick"],ee={key:1,class:"slot-placeholder"},te={key:2,class:"slot-actions"},oe={class:"component-selector"},ne={class:"component-grid"},le=["onClick"],ae={class:"comp-icon"},re=["src","alt"],ie={class:"comp-name"},ce={DEFAULT_ICON:P.DEFAULT_ICON,ACTIVE_ICON:P.ACTIVE_ICON,NAME_CN:"组合盒子",NAME_EN:"Box",ORDER:0,PLATFORM:["pc","screen","mobile"]},se={layoutType:{value:"horizontal",type:"select",label:"布局方式",options:[{label:"水平排列",value:"horizontal"},{label:"垂直排列",value:"vertical"},{label:"自由布局",value:"free"},{label:"网格布局",value:"grid"}]},slotCount:{value:2,type:"number",label:"插槽数量",min:1,max:12},gridCols:{value:2,type:"number",label:"网格列数",min:1,max:6},gap:{value:8,type:"number",label:"间距(px)",min:0,max:50},padding:{value:8,type:"number",label:"内边距(px)",min:0,max:50},backgroundColor:{value:"transparent",type:"color",label:"背景色"},borderWidth:{value:0,type:"number",label:"边框宽度",min:0,max:10},borderColor:{value:"#e5e7eb",type:"color",label:"边框颜色"},borderRadius:{value:4,type:"number",label:"圆角(px)",min:0,max:50},slotsConfig:{value:"[]",type:"textarea",label:"插槽配置(JSON)",placeholder:'[{"x":0,"y":0,"w":50,"h":100},{"x":50,"y":0,"w":50,"h":100}]'}},de=[],ue=[],pe=[],me={},ye={DEFAULT:ce,OPTIONS:se,DATA:de,PARAMS:ue,SOURCE:pe,COMMON:me},fe=e.defineComponent(C(v({},ye),{__name:"box",props:{conf:{type:Object,default:()=>({data:[],options:{}})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){const o=r,i=e.shallowRef({}),E=e.ref({}),h=e.ref(!1),N=e.ref([]),b=e.ref(-1),g=e.ref(-1);e.onMounted(()=>M(null,null,function*(){i.value=B.elements.loadComponents(),E.value=yield B.elements.getElementsMap()}));class p extends Y.BaseComponent{extractStyles(){return{layoutType:this.getOptionValue("layoutType","horizontal"),slotCount:this.getOptionValue("slotCount",2),gridCols:this.getOptionValue("gridCols",2),gap:this.getOptionValue("gap",8),padding:this.getOptionValue("padding",8),backgroundColor:this.getOptionValue("backgroundColor","transparent"),borderWidth:this.getOptionValue("borderWidth",0),borderColor:this.getOptionValue("borderColor","#e5e7eb"),borderRadius:this.getOptionValue("borderRadius",4),slotsConfig:this.getOptionValue("slotsConfig","[]")}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),$()}}const x=new p(o,"box");x.setupLifecycle();const y=x.getStyle(),_=e.ref([]),$=()=>{var O,V,l,c,s,T,I,z;const t=((O=y.value)==null?void 0:O.slotCount)||2,n=((V=y.value)==null?void 0:V.layoutType)||"horizontal",a=((l=o.conf)==null?void 0:l.slots)||[];let u=[];try{const d=((c=y.value)==null?void 0:c.slotsConfig)||"[]";u=JSON.parse(d)}catch(d){u=[]}const k=[];for(let d=0;d<t;d++){const m=a[d],f=u[d];let w={x:0,y:0,w:100,h:100};n==="free"&&f?w={x:(s=f.x)!=null?s:0,y:(T=f.y)!=null?T:0,w:(I=f.w)!=null?I:50,h:(z=f.h)!=null?z:100}:n==="horizontal"?w={x:100/t*d,y:0,w:100/t,h:100}:n==="vertical"&&(w={x:0,y:100/t*d,w:100,h:100/t}),k.push(C(v({id:(m==null?void 0:m.id)||`slot-${Date.now()}-${d}`,name:(m==null?void 0:m.name)||(f==null?void 0:f.name)||`插槽 ${d+1}`},w),{component:(m==null?void 0:m.component)||null}))}_.value=k,o.conf&&(o.conf.slots=k)},R=e.computed(()=>{const t=y.value,n=(t==null?void 0:t.layoutType)||"horizontal",a={width:"100%",height:"100%",backgroundColor:(t==null?void 0:t.backgroundColor)||"transparent",borderWidth:`${(t==null?void 0:t.borderWidth)||0}px`,borderStyle:(t==null?void 0:t.borderWidth)>0?"solid":"none",borderColor:(t==null?void 0:t.borderColor)||"#e5e7eb",borderRadius:`${(t==null?void 0:t.borderRadius)||4}px`,padding:`${(t==null?void 0:t.padding)||8}px`,boxSizing:"border-box",overflow:"hidden"};return n==="horizontal"?C(v({},a),{display:"flex",flexDirection:"row",gap:`${(t==null?void 0:t.gap)||8}px`}):n==="vertical"?C(v({},a),{display:"flex",flexDirection:"column",gap:`${(t==null?void 0:t.gap)||8}px`}):n==="grid"?C(v({},a),{display:"grid",gridTemplateColumns:`repeat(${(t==null?void 0:t.gridCols)||2}, 1fr)`,gap:`${(t==null?void 0:t.gap)||8}px`}):C(v({},a),{position:"relative"})}),J=t=>{var a;const n=((a=y.value)==null?void 0:a.layoutType)||"horizontal";return n==="free"?{position:"absolute",left:`${t.x}%`,top:`${t.y}%`,width:`${t.w}%`,height:`${t.h}%`}:{flex:n==="horizontal"||n==="vertical"?1:void 0,minWidth:0,minHeight:0,overflow:"hidden"}},L=(t,n)=>{o.mode==="edit"&&(t.component||(b.value=n,h.value=!0))},F=(t,n)=>{var u;if(o.mode!=="edit"||!t.component)return;g.value=n;const a=new CustomEvent("box-component-selected",{bubbles:!0,detail:{component:t.component,boxId:(u=o.conf)==null?void 0:u.id,slotIndex:n}});document.dispatchEvent(a)},W=t=>{if(b.value<0)return;const a=B.elements.getAllExposedProps()[t.type]||{},u={id:`box-comp-${Date.now()}`,type:t.type,i:`box-comp-${Date.now()}`,x:0,y:0,w:1,h:1,options:JSON.parse(JSON.stringify(a.OPTIONS||{})),data:JSON.parse(JSON.stringify(a.DATA||[])),common:JSON.parse(JSON.stringify(a.COMMON||{}))};_.value[b.value].component=u,o.conf&&(o.conf.slots=_.value),h.value=!1,b.value=-1},U=t=>{_.value[t].component=null,o.conf&&(o.conf.slots=_.value)};return e.watch(()=>{var t,n,a;return[(t=y.value)==null?void 0:t.slotCount,(n=y.value)==null?void 0:n.layoutType,(a=y.value)==null?void 0:a.slotsConfig]},()=>{$()},{deep:!0}),(t,n)=>{const a=S.ElIcon,u=S.ElButton,k=S.ElCollapseItem,O=S.ElCollapse,V=S.ElDialog;return e.openBlock(),e.createElementBlock("div",{class:"box-container",style:e.normalizeStyle(R.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(l,c)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:e.normalizeClass(["box-slot",{"slot-empty":!l.component,"slot-hover":r.mode==="edit"&&!l.component}]),style:e.normalizeStyle(J(l)),onClick:e.withModifiers(s=>L(l,c),["stop"])},[l.component&&i.value[l.component.type]?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["slot-component-wrapper",{"slot-component-selected":r.mode==="edit"&&g.value===c}]),onClick:e.withModifiers(s=>F(l,c),["stop"])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value[l.component.type]),{conf:l.component,theme:r.theme,mode:r.mode,class:"slot-component"},null,8,["conf","theme","mode"]))],10,K)):r.mode==="edit"?(e.openBlock(),e.createElementBlock("div",ee,[e.createVNode(a,{size:24},{default:e.withCtx(()=>[e.createVNode(e.unref(q.Plus))]),_:1}),e.createElementVNode("span",null,e.toDisplayString(l.name||`插槽 ${c+1}`),1)])):e.createCommentVNode("",!0),r.mode==="edit"&&l.component?(e.openBlock(),e.createElementBlock("div",te,[e.createVNode(u,{type:"danger",size:"small",circle:"",onClick:e.withModifiers(s=>U(c),["stop"])},{default:e.withCtx(()=>[e.createVNode(a,null,{default:e.withCtx(()=>[e.createVNode(e.unref(q.Close))]),_:1})]),_:1},8,["onClick"])])):e.createCommentVNode("",!0)],14,Z))),128)),e.renderSlot(t.$slots,"default",{},void 0,!0),e.createVNode(V,{modelValue:h.value,"onUpdate:modelValue":n[1]||(n[1]=l=>h.value=l),title:"选择组件",width:"600px","append-to-body":!0,"close-on-click-modal":!0,"destroy-on-close":""},{default:e.withCtx(()=>[e.createElementVNode("div",oe,[e.createVNode(O,{modelValue:N.value,"onUpdate:modelValue":n[0]||(n[0]=l=>N.value=l)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(l,c)=>(e.openBlock(),e.createBlock(k,{key:c,title:l.name,name:c},{default:e.withCtx(()=>[e.createElementVNode("div",ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.data,s=>(e.openBlock(),e.createElementBlock("div",{key:s.type,class:"component-item",onClick:T=>W(s)},[e.createElementVNode("div",ae,[e.createElementVNode("img",{src:s.default_icon,alt:s.name},null,8,re)]),e.createElementVNode("div",ie,e.toDisplayString(s.name),1)],8,le))),128))])]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),_:1},8,["modelValue"])],4)}}})),he=B._export_sfc(fe,[["__scopeId","data-v-61ed94fc"]]);exports.default=he;
@@ -35,8 +35,8 @@ import "element-plus/es/components/button/style/css";
35
35
  import "element-plus/es/components/icon/style/css";
36
36
  import { defineComponent as me, shallowRef as fe, ref as w, onMounted as ye, computed as ve, watch as he, openBlock as d, createElementBlock as f, normalizeStyle as j, Fragment as I, renderList as M, withModifiers as R, normalizeClass as H, createBlock as q, resolveDynamicComponent as be, createVNode as C, withCtx as k, unref as G, createElementVNode as $, toDisplayString as Q, createCommentVNode as X, renderSlot as ge } from "vue";
37
37
  import { Plus as Ce, Close as xe } from "@element-plus/icons-vue";
38
- import { B as _e } from "./BaseComponent-NnwLq7Cf.js";
39
- import { w as P, _ as Oe } from "./index-D5BukPPY.js";
38
+ import { B as _e } from "./BaseComponent-CQaDWNO0.js";
39
+ import { v as P, _ as Oe } from "./index-BZpYmpDy.js";
40
40
  import { A as Se, D as we } from "./ele-box-icon-Brlhb3oN.js";
41
41
  const ke = ["onClick"], $e = ["onClick"], Ne = {
42
42
  key: 1,
@@ -22,7 +22,7 @@ import "element-plus/es/components/checkbox/style/css";
22
22
  import "element-plus/es/components/date-picker/style/css";
23
23
  import { defineComponent as Ie, useCssVars as Ee, computed as B, ref as u, onMounted as Re, openBlock as r, createElementBlock as c, Fragment as x, renderList as A, createElementVNode as o, toDisplayString as m, normalizeClass as U, createVNode as a, withCtx as p, createTextVNode as f, unref as ae, createBlock as Se, createCommentVNode as we, renderSlot as Te } from "vue";
24
24
  import { Delete as Ae, Upload as Ue } from "@element-plus/icons-vue";
25
- import { l as Oe, d as G, _ as Ne } from "./index-D5BukPPY.js";
25
+ import { l as Oe, d as G, _ as Ne } from "./index-BZpYmpDy.js";
26
26
  import { A as Pe, D as ze } from "./ele-ctrSet-icon-BtKGrCid.js";
27
27
  const Le = { class: "chart-config-panel" }, Fe = {
28
28
  key: 0,
@@ -1 +1 @@
1
- "use strict";var se=Object.defineProperty,re=Object.defineProperties;var ie=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var ce=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable;var Q=(c,a,r)=>a in c?se(c,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[a]=r,q=(c,a)=>{for(var r in a||(a={}))ce.call(a,r)&&Q(c,r,a[r]);if(G)for(var r of G(a))de.call(a,r)&&Q(c,r,a[r]);return c},R=(c,a)=>re(c,ie(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/date-picker/style/css");const e=require("vue"),X=require("@element-plus/icons-vue"),b=require("./index-BzWbqJIl.cjs"),H=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),ue={class:"chart-config-panel"},pe={key:0,class:"config-section"},ve={class:"section-header"},me={class:"section-title"},fe={class:"granularity-switch"},ge={class:"quick-range"},Ve=["onClick"],Ce={class:"date-inputs"},ye={key:1,class:"config-section"},Ne={class:"section-header"},be={class:"section-title"},ke={class:"time-list-actions"},_e={class:"selected-count"},Ee={class:"time-list"},he={key:2,class:"config-section"},De={class:"section-title"},xe={key:3,class:"config-section"},Ye={class:"section-title"},Se={class:"direction-tabs"},Be=["onClick"],Me={key:4,class:"config-section"},we={class:"section-title"},Te={class:"range-inputs"},Ie={key:5,class:"config-section"},qe={class:"section-title"},Re={class:"range-inputs"},Ae={key:6,class:"config-section"},Oe={class:"section-title"},Ue={class:"function-options"},Pe={key:7,class:"config-section"},Fe={DEFAULT_ICON:H.DEFAULT_ICON,ACTIVE_ICON:H.ACTIVE_ICON,NAME_CN:"图表配置面板",NAME_EN:"Chart Config Panel",ORDER:14,PLATFORM:["pc","screen"]},Le={bindId:{value:"",type:"string",label:"component.deepDisplacement.bindId"},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},accentColor:{value:"#409eff",type:"color",label:"component.options.accentColor"},borderColor:{value:"#e5e5e5",type:"color",label:"component.options.borderColor"}},ze=[{type:"timeRange",label:"时间段",targetId:""},{type:"timeList",label:"采集时间列表",targetId:""},{type:"direction",label:"位移方向",targetId:""},{type:"dispSwitch",label:"累计/相对切换",targetId:""}],je=["type","label","targetId"],$e=[],Ge={useAlias:!1,multiObject:!1,source:""},Qe={DEFAULT:Fe,OPTIONS:Le,DATA:ze,PARAMS:je,SOURCE:$e,COMMON:Ge},Xe=e.defineComponent(R(q({},Qe),{__name:"chartConfigPanel",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){e.useCssVars(l=>({v7cc69559:y.value.bgColor,v520c1f5c:y.value.borderColor,v07166a9e:y.value.textColor,v66046274:y.value.accentColor}));const a=b.useLinkStore(),r=c,y=e.computed(()=>{var t,i,n,u,g;const{options:l}=r.conf||{};return{bindId:((t=l==null?void 0:l.bindId)==null?void 0:t.value)||"",bgColor:((i=l==null?void 0:l.bgColor)==null?void 0:i.value)||"#ffffff",textColor:((n=l==null?void 0:l.textColor)==null?void 0:n.value)||"#333333",accentColor:((u=l==null?void 0:l.accentColor)==null?void 0:u.value)||"#409eff",borderColor:((g=l==null?void 0:l.borderColor)==null?void 0:g.value)||"#e5e5e5"}}),A=e.computed(()=>{var l;return((l=r.conf)==null?void 0:l.data)||[]}),O=e.computed(()=>y.value.bindId||r.uid||""),k=e.ref("day"),U=e.ref("week"),p=e.ref(""),f=e.ref(""),J=[{label:"近7天",value:"week"},{label:"近30天",value:"month"},{label:"近90天",value:"quarter"}],_=e.ref([]),v=e.ref([]),N=e.ref(!0),Y=e.ref("relative"),S=e.ref("total"),K=[{label:"合",value:"total"},{label:"X轴",value:"x"},{label:"Y轴",value:"y"}],B=e.ref(""),M=e.ref(""),w=e.ref(""),T=e.ref(""),E=e.ref(!0),h=e.ref(!0),P=()=>({granularity:k.value,startDate:p.value,endDate:f.value,selectedTimes:v.value,chartType:Y.value,direction:S.value,dispRange:{min:parseFloat(B.value)||null,max:parseFloat(M.value)||null},relativeDispRange:{min:parseFloat(w.value)||null,max:parseFloat(T.value)||null},showDisp:E.value,showRelativeDisp:h.value}),d=()=>{const l=P(),t=A.value,i=O.value;i&&(console.log("[ConfigPanel] 广播配置 (uid):",i,l),a.publish("deepDisplacement","chartConfigPanel",{objectId:i,type:"config",fv:l})),t.forEach(n=>{const u=n.targetId;u&&(n.type==="dispSwitch"?u.split(",").map(V=>V.trim()).forEach((V,C)=>{if(!V)return;const I=C===0?E.value:h.value;a.publish("deepDisplacement","chartConfigPanel",{objectId:V,type:"bindConfig",fv:R(q({},l),{visible:I})})}):a.publish("deepDisplacement","chartConfigPanel",{objectId:u,type:"bindConfig",fv:l}))})},F=l=>{k.value=l,d()},L=l=>{U.value=l;const t=b.dayjs();f.value=t.format("YYYY-MM-DD"),l==="week"?p.value=t.subtract(7,"day").format("YYYY-MM-DD"):l==="month"?p.value=t.subtract(30,"day").format("YYYY-MM-DD"):l==="quarter"&&(p.value=t.subtract(90,"day").format("YYYY-MM-DD")),j(),d()},z=()=>{p.value&&f.value&&(j(),d())},j=()=>{const l=b.dayjs(p.value),t=b.dayjs(f.value),i=[];let n=t;for(;n.isAfter(l)||n.isSame(l);)i.push(n.format("YYYY-MM-DD")),n=n.subtract(1,"day");_.value=i,v.value=[...i],N.value=!0},W=l=>{v.value=l?[..._.value]:[],d()},Z=()=>{v.value=[],N.value=!1,d()},ee=()=>{N.value=v.value.length===_.value.length,d()},te=()=>{d()},le=l=>{S.value=l,d()},D=()=>{d()},$=()=>{d()},oe=()=>{const l=O.value;l&&a.publish("deepDisplacement",{objectId:l,type:"export",fv:{type:"chart",config:P()},source:"chartConfigPanel"})};return e.onMounted(()=>{L("week"),setTimeout(d,300)}),(l,t)=>{const i=m.ElDatePicker,n=m.ElCheckbox,u=m.ElIcon,g=m.ElButton,V=m.ElCheckboxGroup,C=m.ElRadio,I=m.ElRadioGroup,x=m.ElInput;return e.openBlock(),e.createElementBlock("div",ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,(s,ae)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:ae},[s.type==="timeRange"?(e.openBlock(),e.createElementBlock("div",pe,[e.createElementVNode("div",ve,[e.createElementVNode("span",me,e.toDisplayString(s.label||"时间段"),1),e.createElementVNode("div",fe,[e.createElementVNode("span",{class:e.normalizeClass(["switch-item",{active:k.value==="day"}]),onClick:t[0]||(t[0]=o=>F("day"))},"日均",2),e.createElementVNode("span",{class:e.normalizeClass(["switch-item",{active:k.value==="hour"}]),onClick:t[1]||(t[1]=o=>F("hour"))},"小时",2)])]),e.createElementVNode("div",ge,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(J,o=>e.createElementVNode("span",{key:o.value,class:e.normalizeClass(["range-item",{active:U.value===o.value}]),onClick:ne=>L(o.value)},e.toDisplayString(o.label),11,Ve)),64))]),e.createElementVNode("div",Ce,[e.createVNode(i,{modelValue:p.value,"onUpdate:modelValue":t[2]||(t[2]=o=>p.value=o),type:"date",placeholder:"开始日期",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",size:"small",class:"date-picker",onChange:z},null,8,["modelValue"]),e.createVNode(i,{modelValue:f.value,"onUpdate:modelValue":t[3]||(t[3]=o=>f.value=o),type:"date",placeholder:"结束日期",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",size:"small",class:"date-picker",onChange:z},null,8,["modelValue"])])])):s.type==="timeList"?(e.openBlock(),e.createElementBlock("div",ye,[e.createElementVNode("div",Ne,[e.createElementVNode("span",be,e.toDisplayString(s.label||"采集时间列表"),1)]),e.createElementVNode("div",ke,[e.createVNode(n,{modelValue:N.value,"onUpdate:modelValue":t[4]||(t[4]=o=>N.value=o),onChange:W},{default:e.withCtx(()=>[...t[13]||(t[13]=[e.createTextVNode("全选",-1)])]),_:1},8,["modelValue"]),e.createVNode(g,{size:"small",text:"",onClick:Z},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(e.unref(X.Delete))]),_:1}),t[14]||(t[14]=e.createTextVNode("清空",-1))]),_:1}),e.createElementVNode("span",_e,[t[15]||(t[15]=e.createTextVNode("已选 ",-1)),e.createElementVNode("em",null,e.toDisplayString(v.value.length),1),t[16]||(t[16]=e.createTextVNode(" 项",-1))])]),e.createElementVNode("div",Ee,[e.createVNode(V,{modelValue:v.value,"onUpdate:modelValue":t[5]||(t[5]=o=>v.value=o),onChange:ee},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,o=>(e.openBlock(),e.createBlock(n,{key:o,value:o,class:"time-checkbox"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])])])):s.type==="chartType"?(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("div",De,e.toDisplayString(s.label||"图类型"),1),e.createVNode(I,{modelValue:Y.value,"onUpdate:modelValue":t[6]||(t[6]=o=>Y.value=o),class:"chart-type-group",onChange:te},{default:e.withCtx(()=>[e.createVNode(C,{value:"relative"},{default:e.withCtx(()=>[...t[17]||(t[17]=[e.createTextVNode("相对位移",-1)])]),_:1}),e.createVNode(C,{value:"cluster"},{default:e.withCtx(()=>[...t[18]||(t[18]=[e.createTextVNode("滑面聚类判识",-1)])]),_:1}),e.createVNode(C,{value:"borehole"},{default:e.withCtx(()=>[...t[19]||(t[19]=[e.createTextVNode("钻孔柱状图",-1)])]),_:1}),e.createVNode(C,{value:"sensor"},{default:e.withCtx(()=>[...t[20]||(t[20]=[e.createTextVNode("传感器分布图",-1)])]),_:1})]),_:1},8,["modelValue"])])):s.type==="direction"?(e.openBlock(),e.createElementBlock("div",xe,[e.createElementVNode("div",Ye,e.toDisplayString(s.label||"位移方向"),1),e.createElementVNode("div",Se,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(K,o=>e.createElementVNode("span",{key:o.value,class:e.normalizeClass(["direction-item",{active:S.value===o.value}]),onClick:ne=>le(o.value)},e.toDisplayString(o.label),11,Be)),64))])])):s.type==="dispRange"?(e.openBlock(),e.createElementBlock("div",Me,[e.createElementVNode("div",we,e.toDisplayString(s.label||"累计位移区间"),1),e.createElementVNode("div",Te,[e.createVNode(x,{modelValue:B.value,"onUpdate:modelValue":t[7]||(t[7]=o=>B.value=o),size:"small",placeholder:"最小值",class:"range-input",onChange:D},null,8,["modelValue"]),t[21]||(t[21]=e.createElementVNode("span",{class:"range-sep"},"~",-1)),e.createVNode(x,{modelValue:M.value,"onUpdate:modelValue":t[8]||(t[8]=o=>M.value=o),size:"small",placeholder:"最大值",class:"range-input",onChange:D},null,8,["modelValue"]),t[22]||(t[22]=e.createElementVNode("span",{class:"range-unit"},"mm",-1))])])):s.type==="relativeDispRange"?(e.openBlock(),e.createElementBlock("div",Ie,[e.createElementVNode("div",qe,e.toDisplayString(s.label||"相对位移区间"),1),e.createElementVNode("div",Re,[e.createVNode(x,{modelValue:w.value,"onUpdate:modelValue":t[9]||(t[9]=o=>w.value=o),size:"small",placeholder:"最小值",class:"range-input",onChange:D},null,8,["modelValue"]),t[23]||(t[23]=e.createElementVNode("span",{class:"range-sep"},"~",-1)),e.createVNode(x,{modelValue:T.value,"onUpdate:modelValue":t[10]||(t[10]=o=>T.value=o),size:"small",placeholder:"最大值",class:"range-input",onChange:D},null,8,["modelValue"]),t[24]||(t[24]=e.createElementVNode("span",{class:"range-unit"},"mm",-1))])])):s.type==="dispSwitch"?(e.openBlock(),e.createElementBlock("div",Ae,[e.createElementVNode("div",Oe,e.toDisplayString(s.label||"功能"),1),e.createElementVNode("div",Ue,[e.createVNode(n,{modelValue:E.value,"onUpdate:modelValue":t[11]||(t[11]=o=>E.value=o),onChange:$},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("累计位移",-1)])]),_:1},8,["modelValue"]),e.createVNode(n,{modelValue:h.value,"onUpdate:modelValue":t[12]||(t[12]=o=>h.value=o),onChange:$},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("相对位移",-1)])]),_:1},8,["modelValue"])])])):s.type==="export"?(e.openBlock(),e.createElementBlock("div",Pe,[e.createVNode(g,{size:"small",onClick:oe,class:"export-btn"},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(e.unref(X.Upload))]),_:1}),e.createTextVNode(e.toDisplayString(s.label||"导出图"),1)]),_:2},1024)])):e.createCommentVNode("",!0)],64))),128)),e.renderSlot(l.$slots,"default",{},void 0,!0)])}}})),He=b._export_sfc(Xe,[["__scopeId","data-v-8b0e3d68"]]);exports.default=He;
1
+ "use strict";var se=Object.defineProperty,re=Object.defineProperties;var ie=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var ce=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable;var Q=(c,a,r)=>a in c?se(c,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[a]=r,q=(c,a)=>{for(var r in a||(a={}))ce.call(a,r)&&Q(c,r,a[r]);if(G)for(var r of G(a))de.call(a,r)&&Q(c,r,a[r]);return c},R=(c,a)=>re(c,ie(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/date-picker/style/css");const e=require("vue"),X=require("@element-plus/icons-vue"),b=require("./index-77aUdspY.cjs"),H=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),ue={class:"chart-config-panel"},pe={key:0,class:"config-section"},ve={class:"section-header"},me={class:"section-title"},fe={class:"granularity-switch"},ge={class:"quick-range"},Ve=["onClick"],Ce={class:"date-inputs"},ye={key:1,class:"config-section"},Ne={class:"section-header"},be={class:"section-title"},ke={class:"time-list-actions"},_e={class:"selected-count"},Ee={class:"time-list"},he={key:2,class:"config-section"},De={class:"section-title"},xe={key:3,class:"config-section"},Ye={class:"section-title"},Se={class:"direction-tabs"},Be=["onClick"],Me={key:4,class:"config-section"},we={class:"section-title"},Te={class:"range-inputs"},Ie={key:5,class:"config-section"},qe={class:"section-title"},Re={class:"range-inputs"},Ae={key:6,class:"config-section"},Oe={class:"section-title"},Ue={class:"function-options"},Pe={key:7,class:"config-section"},Fe={DEFAULT_ICON:H.DEFAULT_ICON,ACTIVE_ICON:H.ACTIVE_ICON,NAME_CN:"图表配置面板",NAME_EN:"Chart Config Panel",ORDER:14,PLATFORM:["pc","screen"]},Le={bindId:{value:"",type:"string",label:"component.deepDisplacement.bindId"},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},accentColor:{value:"#409eff",type:"color",label:"component.options.accentColor"},borderColor:{value:"#e5e5e5",type:"color",label:"component.options.borderColor"}},ze=[{type:"timeRange",label:"时间段",targetId:""},{type:"timeList",label:"采集时间列表",targetId:""},{type:"direction",label:"位移方向",targetId:""},{type:"dispSwitch",label:"累计/相对切换",targetId:""}],je=["type","label","targetId"],$e=[],Ge={useAlias:!1,multiObject:!1,source:""},Qe={DEFAULT:Fe,OPTIONS:Le,DATA:ze,PARAMS:je,SOURCE:$e,COMMON:Ge},Xe=e.defineComponent(R(q({},Qe),{__name:"chartConfigPanel",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){e.useCssVars(l=>({v7cc69559:y.value.bgColor,v520c1f5c:y.value.borderColor,v07166a9e:y.value.textColor,v66046274:y.value.accentColor}));const a=b.useLinkStore(),r=c,y=e.computed(()=>{var t,i,n,u,g;const{options:l}=r.conf||{};return{bindId:((t=l==null?void 0:l.bindId)==null?void 0:t.value)||"",bgColor:((i=l==null?void 0:l.bgColor)==null?void 0:i.value)||"#ffffff",textColor:((n=l==null?void 0:l.textColor)==null?void 0:n.value)||"#333333",accentColor:((u=l==null?void 0:l.accentColor)==null?void 0:u.value)||"#409eff",borderColor:((g=l==null?void 0:l.borderColor)==null?void 0:g.value)||"#e5e5e5"}}),A=e.computed(()=>{var l;return((l=r.conf)==null?void 0:l.data)||[]}),O=e.computed(()=>y.value.bindId||r.uid||""),k=e.ref("day"),U=e.ref("week"),p=e.ref(""),f=e.ref(""),J=[{label:"近7天",value:"week"},{label:"近30天",value:"month"},{label:"近90天",value:"quarter"}],_=e.ref([]),v=e.ref([]),N=e.ref(!0),Y=e.ref("relative"),S=e.ref("total"),K=[{label:"合",value:"total"},{label:"X轴",value:"x"},{label:"Y轴",value:"y"}],B=e.ref(""),M=e.ref(""),w=e.ref(""),T=e.ref(""),E=e.ref(!0),h=e.ref(!0),P=()=>({granularity:k.value,startDate:p.value,endDate:f.value,selectedTimes:v.value,chartType:Y.value,direction:S.value,dispRange:{min:parseFloat(B.value)||null,max:parseFloat(M.value)||null},relativeDispRange:{min:parseFloat(w.value)||null,max:parseFloat(T.value)||null},showDisp:E.value,showRelativeDisp:h.value}),d=()=>{const l=P(),t=A.value,i=O.value;i&&(console.log("[ConfigPanel] 广播配置 (uid):",i,l),a.publish("deepDisplacement","chartConfigPanel",{objectId:i,type:"config",fv:l})),t.forEach(n=>{const u=n.targetId;u&&(n.type==="dispSwitch"?u.split(",").map(V=>V.trim()).forEach((V,C)=>{if(!V)return;const I=C===0?E.value:h.value;a.publish("deepDisplacement","chartConfigPanel",{objectId:V,type:"bindConfig",fv:R(q({},l),{visible:I})})}):a.publish("deepDisplacement","chartConfigPanel",{objectId:u,type:"bindConfig",fv:l}))})},F=l=>{k.value=l,d()},L=l=>{U.value=l;const t=b.dayjs();f.value=t.format("YYYY-MM-DD"),l==="week"?p.value=t.subtract(7,"day").format("YYYY-MM-DD"):l==="month"?p.value=t.subtract(30,"day").format("YYYY-MM-DD"):l==="quarter"&&(p.value=t.subtract(90,"day").format("YYYY-MM-DD")),j(),d()},z=()=>{p.value&&f.value&&(j(),d())},j=()=>{const l=b.dayjs(p.value),t=b.dayjs(f.value),i=[];let n=t;for(;n.isAfter(l)||n.isSame(l);)i.push(n.format("YYYY-MM-DD")),n=n.subtract(1,"day");_.value=i,v.value=[...i],N.value=!0},W=l=>{v.value=l?[..._.value]:[],d()},Z=()=>{v.value=[],N.value=!1,d()},ee=()=>{N.value=v.value.length===_.value.length,d()},te=()=>{d()},le=l=>{S.value=l,d()},D=()=>{d()},$=()=>{d()},oe=()=>{const l=O.value;l&&a.publish("deepDisplacement",{objectId:l,type:"export",fv:{type:"chart",config:P()},source:"chartConfigPanel"})};return e.onMounted(()=>{L("week"),setTimeout(d,300)}),(l,t)=>{const i=m.ElDatePicker,n=m.ElCheckbox,u=m.ElIcon,g=m.ElButton,V=m.ElCheckboxGroup,C=m.ElRadio,I=m.ElRadioGroup,x=m.ElInput;return e.openBlock(),e.createElementBlock("div",ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,(s,ae)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:ae},[s.type==="timeRange"?(e.openBlock(),e.createElementBlock("div",pe,[e.createElementVNode("div",ve,[e.createElementVNode("span",me,e.toDisplayString(s.label||"时间段"),1),e.createElementVNode("div",fe,[e.createElementVNode("span",{class:e.normalizeClass(["switch-item",{active:k.value==="day"}]),onClick:t[0]||(t[0]=o=>F("day"))},"日均",2),e.createElementVNode("span",{class:e.normalizeClass(["switch-item",{active:k.value==="hour"}]),onClick:t[1]||(t[1]=o=>F("hour"))},"小时",2)])]),e.createElementVNode("div",ge,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(J,o=>e.createElementVNode("span",{key:o.value,class:e.normalizeClass(["range-item",{active:U.value===o.value}]),onClick:ne=>L(o.value)},e.toDisplayString(o.label),11,Ve)),64))]),e.createElementVNode("div",Ce,[e.createVNode(i,{modelValue:p.value,"onUpdate:modelValue":t[2]||(t[2]=o=>p.value=o),type:"date",placeholder:"开始日期",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",size:"small",class:"date-picker",onChange:z},null,8,["modelValue"]),e.createVNode(i,{modelValue:f.value,"onUpdate:modelValue":t[3]||(t[3]=o=>f.value=o),type:"date",placeholder:"结束日期",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",size:"small",class:"date-picker",onChange:z},null,8,["modelValue"])])])):s.type==="timeList"?(e.openBlock(),e.createElementBlock("div",ye,[e.createElementVNode("div",Ne,[e.createElementVNode("span",be,e.toDisplayString(s.label||"采集时间列表"),1)]),e.createElementVNode("div",ke,[e.createVNode(n,{modelValue:N.value,"onUpdate:modelValue":t[4]||(t[4]=o=>N.value=o),onChange:W},{default:e.withCtx(()=>[...t[13]||(t[13]=[e.createTextVNode("全选",-1)])]),_:1},8,["modelValue"]),e.createVNode(g,{size:"small",text:"",onClick:Z},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(e.unref(X.Delete))]),_:1}),t[14]||(t[14]=e.createTextVNode("清空",-1))]),_:1}),e.createElementVNode("span",_e,[t[15]||(t[15]=e.createTextVNode("已选 ",-1)),e.createElementVNode("em",null,e.toDisplayString(v.value.length),1),t[16]||(t[16]=e.createTextVNode(" 项",-1))])]),e.createElementVNode("div",Ee,[e.createVNode(V,{modelValue:v.value,"onUpdate:modelValue":t[5]||(t[5]=o=>v.value=o),onChange:ee},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,o=>(e.openBlock(),e.createBlock(n,{key:o,value:o,class:"time-checkbox"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])])])):s.type==="chartType"?(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("div",De,e.toDisplayString(s.label||"图类型"),1),e.createVNode(I,{modelValue:Y.value,"onUpdate:modelValue":t[6]||(t[6]=o=>Y.value=o),class:"chart-type-group",onChange:te},{default:e.withCtx(()=>[e.createVNode(C,{value:"relative"},{default:e.withCtx(()=>[...t[17]||(t[17]=[e.createTextVNode("相对位移",-1)])]),_:1}),e.createVNode(C,{value:"cluster"},{default:e.withCtx(()=>[...t[18]||(t[18]=[e.createTextVNode("滑面聚类判识",-1)])]),_:1}),e.createVNode(C,{value:"borehole"},{default:e.withCtx(()=>[...t[19]||(t[19]=[e.createTextVNode("钻孔柱状图",-1)])]),_:1}),e.createVNode(C,{value:"sensor"},{default:e.withCtx(()=>[...t[20]||(t[20]=[e.createTextVNode("传感器分布图",-1)])]),_:1})]),_:1},8,["modelValue"])])):s.type==="direction"?(e.openBlock(),e.createElementBlock("div",xe,[e.createElementVNode("div",Ye,e.toDisplayString(s.label||"位移方向"),1),e.createElementVNode("div",Se,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(K,o=>e.createElementVNode("span",{key:o.value,class:e.normalizeClass(["direction-item",{active:S.value===o.value}]),onClick:ne=>le(o.value)},e.toDisplayString(o.label),11,Be)),64))])])):s.type==="dispRange"?(e.openBlock(),e.createElementBlock("div",Me,[e.createElementVNode("div",we,e.toDisplayString(s.label||"累计位移区间"),1),e.createElementVNode("div",Te,[e.createVNode(x,{modelValue:B.value,"onUpdate:modelValue":t[7]||(t[7]=o=>B.value=o),size:"small",placeholder:"最小值",class:"range-input",onChange:D},null,8,["modelValue"]),t[21]||(t[21]=e.createElementVNode("span",{class:"range-sep"},"~",-1)),e.createVNode(x,{modelValue:M.value,"onUpdate:modelValue":t[8]||(t[8]=o=>M.value=o),size:"small",placeholder:"最大值",class:"range-input",onChange:D},null,8,["modelValue"]),t[22]||(t[22]=e.createElementVNode("span",{class:"range-unit"},"mm",-1))])])):s.type==="relativeDispRange"?(e.openBlock(),e.createElementBlock("div",Ie,[e.createElementVNode("div",qe,e.toDisplayString(s.label||"相对位移区间"),1),e.createElementVNode("div",Re,[e.createVNode(x,{modelValue:w.value,"onUpdate:modelValue":t[9]||(t[9]=o=>w.value=o),size:"small",placeholder:"最小值",class:"range-input",onChange:D},null,8,["modelValue"]),t[23]||(t[23]=e.createElementVNode("span",{class:"range-sep"},"~",-1)),e.createVNode(x,{modelValue:T.value,"onUpdate:modelValue":t[10]||(t[10]=o=>T.value=o),size:"small",placeholder:"最大值",class:"range-input",onChange:D},null,8,["modelValue"]),t[24]||(t[24]=e.createElementVNode("span",{class:"range-unit"},"mm",-1))])])):s.type==="dispSwitch"?(e.openBlock(),e.createElementBlock("div",Ae,[e.createElementVNode("div",Oe,e.toDisplayString(s.label||"功能"),1),e.createElementVNode("div",Ue,[e.createVNode(n,{modelValue:E.value,"onUpdate:modelValue":t[11]||(t[11]=o=>E.value=o),onChange:$},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("累计位移",-1)])]),_:1},8,["modelValue"]),e.createVNode(n,{modelValue:h.value,"onUpdate:modelValue":t[12]||(t[12]=o=>h.value=o),onChange:$},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("相对位移",-1)])]),_:1},8,["modelValue"])])])):s.type==="export"?(e.openBlock(),e.createElementBlock("div",Pe,[e.createVNode(g,{size:"small",onClick:oe,class:"export-btn"},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(e.unref(X.Upload))]),_:1}),e.createTextVNode(e.toDisplayString(s.label||"导出图"),1)]),_:2},1024)])):e.createCommentVNode("",!0)],64))),128)),e.renderSlot(l.$slots,"default",{},void 0,!0)])}}})),He=b._export_sfc(Xe,[["__scopeId","data-v-8b0e3d68"]]);exports.default=He;
@@ -1,4 +1,4 @@
1
- "use strict";var $=Object.defineProperty,A=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var j=(r,a,i)=>a in r?$(r,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[a]=i,E=(r,a)=>{for(var i in a||(a={}))w.call(a,i)&&j(r,i,a[i]);if(_)for(var i of _(a))D.call(a,i)&&j(r,i,a[i]);return r},V=(r,a)=>A(r,q(a));var k=(r,a,i)=>new Promise((m,g)=>{var x=S=>{try{u(i.next(S))}catch(C){g(C)}},N=S=>{try{u(i.throw(S))}catch(C){g(C)}},u=S=>S.done?m(S.value):Promise.resolve(S.value).then(x,N);u((i=i.apply(r,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),z=require("./index-BzWbqJIl.cjs");require("element-plus");const H=require("./EChartComponentBase-D7_ZiE7P.cjs"),L=require("./titleStyle-NSnz6cUg.cjs"),B=require("./ele-circleBar-icon-Da0-L9sa.cjs"),T=require("./installCanvasRenderer-CyhM1Qpl.cjs"),R=require("./install-DV5cEgNV.cjs"),F=require("./install-CltTFs4e.cjs"),M=require("./install-nDY6w-GK.cjs"),P=require("./echarts-BB8O2KSA.cjs"),U={class:"mix-body"},W=["id"],K={class:"bar-wrap"},G={DEFAULT_ICON:B.DEFAULT_ICON,ACTIVE_ICON:B.ACTIVE_ICON,NAME_CN:"环形图",NAME_EN:"CircleBar",ORDER:2,PLATFORM:["pc","screen","mobile"]},J={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#e5e5e5",radiusSize:8,textSize:12,barHeight:10,isHideTitle:!1,showTotal:!0,fixed:{value:2,type:"number",label:"component.options.circleBar_fixed",dependent:"showTotal"},totalText:{value:"总数",type:"string",label:"component.options.circleBar_totalText",dependent:"showTotal"}},I=[{name:"参数一",fv:"",color:"#4162ff",object_id:"",default:"10",value:10},{name:"参数二",fv:"",color:"#3bbc6a",object_id:"",default:"10",value:10},{name:"参数三",fv:"",color:"#e24359",object_id:"",default:"10",value:10}],Q=["name","fv","object_id","color","default"],X=["mosaic","statistics","calculate"],Y={useAlias:!1,multiObject:!1,source:"mosaic"},Z={DEFAULT:G,OPTIONS:J,DATA:I,PARAMS:Q,SOURCE:X,COMMON:Y},ee=t.defineComponent(V(E({},Z),{__name:"circleBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){T.use([R.install,F.install,T.install,T.install$1,M.install]);const a=r,i=z.useLinkStore();let m=0;class g extends H.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),barColor:this.getOptionValue("barColor","#e5e5e5"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),barHeight:this.getOptionValue("barHeight",10),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return k(this,null,function*(){var o;this.Style.value=this.extractStyles(),this.applyTheme(),(o=this.props.conf.data)!=null&&o.length||(this.props.conf.data=I),this.props.conf.data.forEach(e=>{e.default!==void 0&&e.default!==""&&(e.value=Number(e.default)||0)}),m=this.props.conf.data.reduce((e,l)=>e+Number(l.value||0),0),t.nextTick(()=>this.initChart())})}initChart(){var e,l,n;const o=document.querySelector(`#${this.echartId}`);o&&(this.chartObj||(this.chartObj=P.init(o),this.setupResizeListener(o)),(e=this.chartObj)==null||e.setOption(this.getChartOption(),!0),this.props.mode==="preview"&&((l=this.chartObj)==null||l.off("click"),(n=this.chartObj)==null||n.on("click",d=>{var v,h,s,f,p,b;const c=d==null?void 0:d.name;if(typeof c=="string"&&c){const y=((h=(v=this.props.conf)==null?void 0:v.options)==null?void 0:h.linkChannel)==="custom"?(f=(s=this.props.conf)==null?void 0:s.options)==null?void 0:f.customChannel:(b=(p=this.props.conf)==null?void 0:p.options)==null?void 0:b.linkChannel;i.publish(y||"circleBar","circleBar",{objectId:"",deviceId:"",type:"select",fieldKey:c,fv:E({key:c},d),source:"circleBar"})}})))}getChartOption(){var c,v,h,s,f,p;const{data:o,options:e,name:l}=this.props.conf,n=o.map((b,y)=>b.color||z.COLORS[y]),d=o.map(b=>({value:b.value||0,name:b.name}));return{title:{zlevel:0,show:(c=e==null?void 0:e.showTotal)==null?void 0:c.value,text:[`{value|${m.toFixed(((v=e==null?void 0:e.fixed)==null?void 0:v.value)||2)}}`,`{name|${((h=e==null?void 0:e.totalText)==null?void 0:h.value)||"总数"}}`].join(`
1
+ "use strict";var $=Object.defineProperty,A=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var j=(r,a,i)=>a in r?$(r,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[a]=i,E=(r,a)=>{for(var i in a||(a={}))w.call(a,i)&&j(r,i,a[i]);if(_)for(var i of _(a))D.call(a,i)&&j(r,i,a[i]);return r},V=(r,a)=>A(r,q(a));var k=(r,a,i)=>new Promise((m,g)=>{var x=S=>{try{u(i.next(S))}catch(C){g(C)}},N=S=>{try{u(i.throw(S))}catch(C){g(C)}},u=S=>S.done?m(S.value):Promise.resolve(S.value).then(x,N);u((i=i.apply(r,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),z=require("./index-77aUdspY.cjs");require("element-plus");const H=require("./EChartComponentBase-D9EUh4BZ.cjs"),L=require("./titleStyle-NSnz6cUg.cjs"),B=require("./ele-circleBar-icon-Da0-L9sa.cjs"),T=require("./installCanvasRenderer-CyhM1Qpl.cjs"),R=require("./install-DV5cEgNV.cjs"),F=require("./install-CltTFs4e.cjs"),M=require("./install-nDY6w-GK.cjs"),P=require("./echarts-BB8O2KSA.cjs"),U={class:"mix-body"},W=["id"],K={class:"bar-wrap"},G={DEFAULT_ICON:B.DEFAULT_ICON,ACTIVE_ICON:B.ACTIVE_ICON,NAME_CN:"环形图",NAME_EN:"CircleBar",ORDER:2,PLATFORM:["pc","screen","mobile"]},J={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#e5e5e5",radiusSize:8,textSize:12,barHeight:10,isHideTitle:!1,showTotal:!0,fixed:{value:2,type:"number",label:"component.options.circleBar_fixed",dependent:"showTotal"},totalText:{value:"总数",type:"string",label:"component.options.circleBar_totalText",dependent:"showTotal"}},I=[{name:"参数一",fv:"",color:"#4162ff",object_id:"",default:"10",value:10},{name:"参数二",fv:"",color:"#3bbc6a",object_id:"",default:"10",value:10},{name:"参数三",fv:"",color:"#e24359",object_id:"",default:"10",value:10}],Q=["name","fv","object_id","color","default"],X=["mosaic","statistics","calculate"],Y={useAlias:!1,multiObject:!1,source:"mosaic"},Z={DEFAULT:G,OPTIONS:J,DATA:I,PARAMS:Q,SOURCE:X,COMMON:Y},ee=t.defineComponent(V(E({},Z),{__name:"circleBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){T.use([R.install,F.install,T.install,T.install$1,M.install]);const a=r,i=z.useLinkStore();let m=0;class g extends H.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),barColor:this.getOptionValue("barColor","#e5e5e5"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),barHeight:this.getOptionValue("barHeight",10),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return k(this,null,function*(){var o;this.Style.value=this.extractStyles(),this.applyTheme(),(o=this.props.conf.data)!=null&&o.length||(this.props.conf.data=I),this.props.conf.data.forEach(e=>{e.default!==void 0&&e.default!==""&&(e.value=Number(e.default)||0)}),m=this.props.conf.data.reduce((e,l)=>e+Number(l.value||0),0),t.nextTick(()=>this.initChart())})}initChart(){var e,l,n;const o=document.querySelector(`#${this.echartId}`);o&&(this.chartObj||(this.chartObj=P.init(o),this.setupResizeListener(o)),(e=this.chartObj)==null||e.setOption(this.getChartOption(),!0),this.props.mode==="preview"&&((l=this.chartObj)==null||l.off("click"),(n=this.chartObj)==null||n.on("click",d=>{var v,h,s,f,p,b;const c=d==null?void 0:d.name;if(typeof c=="string"&&c){const y=((h=(v=this.props.conf)==null?void 0:v.options)==null?void 0:h.linkChannel)==="custom"?(f=(s=this.props.conf)==null?void 0:s.options)==null?void 0:f.customChannel:(b=(p=this.props.conf)==null?void 0:p.options)==null?void 0:b.linkChannel;i.publish(y||"circleBar","circleBar",{objectId:"",deviceId:"",type:"select",fieldKey:c,fv:E({key:c},d),source:"circleBar"})}})))}getChartOption(){var c,v,h,s,f,p;const{data:o,options:e,name:l}=this.props.conf,n=o.map((b,y)=>b.color||z.COLORS[y]),d=o.map(b=>({value:b.value||0,name:b.name}));return{title:{zlevel:0,show:(c=e==null?void 0:e.showTotal)==null?void 0:c.value,text:[`{value|${m.toFixed(((v=e==null?void 0:e.fixed)==null?void 0:v.value)||2)}}`,`{name|${((h=e==null?void 0:e.totalText)==null?void 0:h.value)||"总数"}}`].join(`
2
2
  `),textStyle:{rich:{value:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,fontWeight:"bold",lineHeight:this.Style.value.textSize+8},name:{color:this.Style.value.textColor,lineHeight:this.Style.value.textSize+8,fontSize:this.Style.value.textSize}}},top:"center",left:"center"},color:n,series:[{name:l,type:"pie",radius:["50%","85%"],center:["50%","50%"],data:d,label:{position:"center",show:!1,color:"inherit"},emphasis:{scale:0,label:{show:(s=e==null?void 0:e.showTotal)==null?void 0:s.value,fontSize:((f=e==null?void 0:e.textSize)==null?void 0:f.value)||12,fontWeight:"bold",formatter:`{d}%
3
3
  {b}`,lineHeight:(((p=e==null?void 0:e.textSize)==null?void 0:p.value)||12)+8}}}]}}setHistoryData(o){var d,c,v;if(!o||!(o!=null&&o.length))return;const{data:e,options:l}=this.props.conf,n=this.chartObj.getOption();m=0,n.series[0].data.forEach((h,s)=>{var f;h.value=(f=o[s].data[0])!=null?f:0,m+=h.value,e[s].value=h.value}),(d=n.title)!=null&&d[0]&&(n.title[0].text=[`{value|${m.toFixed(((c=l==null?void 0:l.fixed)==null?void 0:c.value)||2)}}`,`{name|${((v=l==null?void 0:l.totalText)==null?void 0:v.value)||"总数"}}`].join(`
4
4
  `)),this.chartObj.setOption(n,!0)}setSocketData(o){var d,c,v,h;if(!o||!this.chartObj)return;const{data:e,options:l}=this.props.conf,n=this.chartObj.getOption();e.forEach((s,f)=>{var b,y;const p=this.extractDataValue(o,s.fv);s.value=p!=null?p:0,(y=(b=n.series)==null?void 0:b[0])!=null&&y.data&&(n.series[0].data[f].value=p!=null?p:0)}),m=e.reduce((s,f)=>s+Number(f.value||0),0),(d=n.title)!=null&&d[0]&&(n.title[0].text=[`{value|${m.toFixed(((c=l==null?void 0:l.fixed)==null?void 0:c.value)||2)}}`,`{name|${((v=l==null?void 0:l.totalText)==null?void 0:v.value)||"总数"}}`].join(`
@@ -27,9 +27,9 @@ var A = (l, o, i) => new Promise((m, _) => {
27
27
  c((i = i.apply(l, o)).next());
28
28
  });
29
29
  import { defineComponent as M, computed as P, openBlock as N, createElementBlock as E, normalizeStyle as C, unref as b, createElementVNode as S, toDisplayString as k, Fragment as U, renderList as W, renderSlot as q, nextTick as K } from "vue";
30
- import { l as G, C as V, _ as J } from "./index-D5BukPPY.js";
30
+ import { l as G, C as V, _ as J } from "./index-BZpYmpDy.js";
31
31
  import "element-plus";
32
- import { E as Q } from "./EChartComponentBase-C3gcATBZ.js";
32
+ import { E as Q } from "./EChartComponentBase-i76OGL3z.js";
33
33
  import { g as X } from "./titleStyle-BT5GlpAb.js";
34
34
  import { A as Y, D as Z } from "./ele-circleBar-icon-DNBUxt0A.js";
35
35
  import { u as tt, i as et, a as at } from "./installCanvasRenderer-oDYkyVFy.js";