m4-w-fast 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/index.mjs +1 -1
  4. package/dist/intersect.worker.js +2 -2
  5. package/dist/isoBands.worker.js +1 -1
  6. package/dist/m4-w-fast.umd.js +1 -1
  7. package/dist/raster-leaflet/index.cjs +2 -2
  8. package/dist/raster-leaflet/index.js +1 -1
  9. package/dist/raster-leaflet/index.mjs +2 -2
  10. package/dist/raster-leaflet/m4-w-raster-leaflet.umd.js +2 -2
  11. package/dist/raster-mars3d/cesiumRasterPlaneRenderer.js +1 -1
  12. package/dist/raster-mars3d/cesiumRasterTextureAdapter.js +1 -1
  13. package/dist/raster-mars3d/index.cjs +2 -2
  14. package/dist/raster-mars3d/index.js +1 -1
  15. package/dist/raster-mars3d/index.mjs +2 -2
  16. package/dist/raster-mars3d/m4-w-raster-mars3d.umd.js +2 -2
  17. package/dist/raster-mars3d/mars3dRasterImageryProvider.js +1 -1
  18. package/dist/raster-mars3d/mars3dRasterPlaneLayer.js +1 -1
  19. package/dist/raster-mars3d/rasterPlaneGeometry.js +1 -1
  20. package/dist/raster-mars3d/rasterPlaneGridChunks.js +1 -1
  21. package/dist/raster-mars3d/rasterPlaneMaterial.js +1 -1
  22. package/dist/raster-overlay/color.js +1 -1
  23. package/dist/raster-overlay/core.js +1 -1
  24. package/dist/raster-overlay/index.cjs +2 -2
  25. package/dist/raster-overlay/index.js +1 -1
  26. package/dist/raster-overlay/index.mjs +2 -2
  27. package/dist/raster-overlay/leaflet-renderers/createRenderer.js +1 -1
  28. package/dist/raster-overlay/leafletLayer.js +1 -1
  29. package/dist/raster-overlay/m4-w-raster-overlay.umd.js +2 -2
  30. package/dist/raster-overlay/query.js +1 -1
  31. package/dist/raster-overlay/rendering/createRasterRenderer.js +1 -1
  32. package/dist/raster-overlay/rendering/index.js +1 -1
  33. package/dist/raster-overlay/rendering/rasterRenderState.js +1 -1
  34. package/dist/raster-overlay/rendering/webgl2RasterRenderer.js +1 -1
  35. package/dist/raster-overlay/rendering/webgpuRasterRenderer.js +1 -1
  36. package/dist/raster-rendering/index.cjs +2 -2
  37. package/dist/raster-rendering/index.js +1 -1
  38. package/dist/raster-rendering/index.mjs +2 -2
  39. package/dist/raster-rendering/m4-w-raster-rendering.umd.js +2 -2
  40. package/dist/raster-rendering/webgpuRasterTileRenderer.js +1 -1
  41. package/dist/readFile.js +1 -1
  42. package/dist/rendering/index.js +1 -1
  43. package/dist/rendering/webgl2/baseWebgl2Renderer.js +1 -1
  44. package/dist/rendering/webgl2/index.js +1 -1
  45. package/dist/rendering/webgl2/webgl2CoverageResources.js +1 -1
  46. package/dist/rendering/webgl2/webgl2VisualizationResources.js +1 -1
  47. package/dist/rendering/webgpu/baseWebgpuRenderer.js +1 -1
  48. package/dist/rendering/webgpu/index.js +1 -1
  49. package/dist/rendering/webgpu/visualizationParams.js +1 -1
  50. package/dist/rendering/webgpu/visualizationResources.js +1 -1
  51. package/dist/rendering/webgpu/webgpuCoverageResources.js +1 -1
  52. package/dist/road-overlay/coordinateTransform.js +1 -1
  53. package/dist/road-overlay/index.cjs +2 -2
  54. package/dist/road-overlay/index.js +1 -1
  55. package/dist/road-overlay/index.mjs +2 -2
  56. package/dist/road-overlay/leaflet-renderers/createRenderer.js +1 -1
  57. package/dist/road-overlay/leafletLayer.js +1 -1
  58. package/dist/road-overlay/m4-w-road-overlay.umd.js +2 -2
  59. package/dist/road-overlay/options.js +1 -1
  60. package/dist/road-overlay/rendering/index.js +1 -1
  61. package/dist/road-overlay/rendering/roadRenderState.js +1 -1
  62. package/dist/road-overlay/rendering/webgl2RoadRenderer.js +1 -1
  63. package/dist/road-overlay/rendering/webgpuRoadRenderer.js +1 -1
  64. package/dist/road-overlay/roadData.js +1 -1
  65. package/dist/road-overlay/roadGeometry.js +1 -1
  66. package/dist/road-overlay/roadMesh.js +1 -1
  67. package/dist/shared/coordinate-shader/webgl2/index.js +1 -1
  68. package/dist/shared/coordinate-shader/webgpu/index.js +1 -1
  69. package/dist/shared/map/index.js +1 -1
  70. package/dist/shared/map/leaflet.js +1 -1
  71. package/dist/shared/polygon/contains.js +1 -1
  72. package/dist/shared/polygon/index.js +1 -1
  73. package/dist/shared/polygon/polygonMesh.js +1 -1
  74. package/dist/shared/shader/assemble.js +1 -1
  75. package/dist/shared/visualization/index.js +1 -1
  76. package/dist/shared/visualization/shader/webgl2/index.js +1 -1
  77. package/dist/shared/visualization/shader/webgpu/index.js +1 -1
  78. package/dist/shared/visualization/utils.js +1 -1
  79. package/dist/volume-data/index.cjs +1 -0
  80. package/dist/volume-data/index.d.ts +5 -0
  81. package/dist/volume-data/index.js +1 -0
  82. package/dist/volume-data/index.mjs +1 -0
  83. package/dist/volume-data/input.d.ts +2 -0
  84. package/dist/volume-data/input.js +1 -0
  85. package/dist/volume-data/loadVolumeSource.d.ts +2 -0
  86. package/dist/volume-data/loadVolumeSource.js +1 -0
  87. package/dist/volume-data/m4-w-volume-data.umd.js +1 -0
  88. package/dist/volume-data/parserRegistry.d.ts +5 -0
  89. package/dist/volume-data/parserRegistry.js +1 -0
  90. package/dist/volume-data/radarGridVolumeMetadata.d.ts +2 -0
  91. package/dist/volume-data/radarGridVolumeMetadata.js +1 -0
  92. package/dist/volume-data/radarGridVolumeParser.d.ts +2 -0
  93. package/dist/volume-data/radarGridVolumeParser.js +1 -0
  94. package/dist/volume-data/radarGridVolumeSource.d.ts +3 -0
  95. package/dist/volume-data/radarGridVolumeSource.js +1 -0
  96. package/dist/volume-data/volumeDataError.d.ts +5 -0
  97. package/dist/volume-data/volumeDataError.js +1 -0
  98. package/dist/volume-data/volumeDataTypes.d.ts +54 -0
  99. package/dist/volume-data/volumeDataTypes.js +1 -0
  100. package/dist/volume-data/zipArchive.d.ts +6 -0
  101. package/dist/volume-data/zipArchive.js +1 -0
  102. package/dist/volume-mars3d/createMars3dVolumeScene.js +1 -1
  103. package/dist/volume-mars3d/index.cjs +1 -1
  104. package/dist/volume-mars3d/index.js +1 -1
  105. package/dist/volume-mars3d/index.mjs +1 -1
  106. package/dist/volume-mars3d/m4-w-volume-mars3d.umd.js +1 -1
  107. package/dist/volume-mars3d/mars3dCanvasCompensation.js +1 -1
  108. package/dist/volume-mars3d/mars3dRaymarchShader.js +1 -1
  109. package/dist/volume-mars3d/mars3dVolumeLayer.js +1 -1
  110. package/dist/volume-mars3d/mars3dVolumeRenderer.js +1 -1
  111. package/dist/volume-mars3d-native/index.cjs +1 -1
  112. package/dist/volume-mars3d-native/index.js +1 -1
  113. package/dist/volume-mars3d-native/index.mjs +1 -1
  114. package/dist/volume-mars3d-native/liveUpdateScheduler.js +1 -1
  115. package/dist/volume-mars3d-native/m4-w-volume-mars3d-native.umd.js +1 -1
  116. package/dist/volume-mars3d-native/mars3dNativeSliceLayer.js +1 -1
  117. package/dist/volume-mars3d-native/mars3dNativeSliceRenderer.js +1 -1
  118. package/dist/volume-mars3d-native/mars3dNativeVolumeLayer.js +1 -1
  119. package/dist/volume-mars3d-native/mars3dNativeVolumeRenderer.js +1 -1
  120. package/dist/volume-mars3d-native/nativeAxisSliceRenderer.js +1 -1
  121. package/dist/volume-mars3d-native/nativeSliceAtlas.js +1 -1
  122. package/dist/volume-mars3d-native/nativeVoxelProvider.js +1 -1
  123. package/dist/volume-mars3d-native/nativeVoxelShader.js +1 -1
  124. package/dist/volume-mars3d-native/voxelData.js +1 -1
  125. package/dist/volume-scene/brickLayout.js +1 -1
  126. package/dist/volume-scene/brickResidency.js +1 -1
  127. package/dist/volume-scene/camera.js +1 -1
  128. package/dist/volume-scene/createVolumeScene.js +1 -1
  129. package/dist/volume-scene/geographicVolume.js +1 -1
  130. package/dist/volume-scene/inMemoryVolumeSource.js +1 -1
  131. package/dist/volume-scene/index.cjs +1 -1
  132. package/dist/volume-scene/index.js +1 -1
  133. package/dist/volume-scene/index.mjs +1 -1
  134. package/dist/volume-scene/m4-w-volume-scene.umd.js +1 -1
  135. package/dist/volume-scene/matrix.js +1 -1
  136. package/dist/volume-scene/rendering/webgpu/index.js +1 -1
  137. package/dist/volume-scene/rendering/webgpu/webgpuBrickAtlas.js +1 -1
  138. package/dist/volume-scene/rendering/webgpu/webgpuSceneAttachments.js +1 -1
  139. package/dist/volume-scene/rendering/webgpu/webgpuSceneMeshResources.js +1 -1
  140. package/dist/volume-scene/rendering/webgpu/webgpuSliceResources.js +1 -1
  141. package/dist/volume-scene/rendering/webgpu/webgpuTransferResources.js +1 -1
  142. package/dist/volume-scene/rendering/webgpu/webgpuVolumeSceneRenderer.js +1 -1
  143. package/dist/volume-scene/routeProfileMesh.js +1 -1
  144. package/dist/volume-scene/sliceInteractionController.js +1 -1
  145. package/dist/volume-scene/sliceMarkerOverlay.js +1 -1
  146. package/dist/volume-scene/sliceState.js +1 -1
  147. package/dist/volume-scene/volumeBrickData.js +1 -1
  148. package/dist/volume-scene/volumeScene.js +1 -1
  149. package/dist/volume-scene/volumeTransfer.js +1 -1
  150. package/dist/volume-scene/volumeValidation.js +1 -1
  151. package/dist/volume-section/createHorizontalRasterGrid.d.ts +3 -0
  152. package/dist/volume-section/createHorizontalRasterGrid.js +1 -0
  153. package/dist/volume-section/createVolumeSection.d.ts +3 -0
  154. package/dist/volume-section/createVolumeSection.js +1 -0
  155. package/dist/volume-section/createVolumeSectionRasterGrid.d.ts +3 -0
  156. package/dist/volume-section/createVolumeSectionRasterGrid.js +1 -0
  157. package/dist/volume-section/createVolumeSectionRouteProfile.d.ts +3 -0
  158. package/dist/volume-section/createVolumeSectionRouteProfile.js +1 -0
  159. package/dist/volume-section/geographic.d.ts +3 -0
  160. package/dist/volume-section/geographic.js +1 -0
  161. package/dist/volume-section/gridLayerStatistics.d.ts +9 -0
  162. package/dist/volume-section/gridLayerStatistics.js +1 -0
  163. package/dist/volume-section/index.cjs +1 -0
  164. package/dist/volume-section/index.d.ts +8 -0
  165. package/dist/volume-section/index.js +1 -0
  166. package/dist/volume-section/index.mjs +1 -0
  167. package/dist/volume-section/m4-w-volume-section.umd.js +1 -0
  168. package/dist/volume-section/routeSampling.d.ts +9 -0
  169. package/dist/volume-section/routeSampling.js +1 -0
  170. package/dist/volume-section/volumeSectionTypes.d.ts +39 -0
  171. package/dist/volume-section/volumeSectionTypes.js +1 -0
  172. package/package.json +58 -12
@@ -1 +1 @@
1
- (function(_0x543daf,_0x22392b){const _0x1cc10f=_0x5b0d,_0x11fa11=_0x543daf();while(!![]){try{const _0x206692=parseInt(_0x1cc10f(0x19f))/0x1+-parseInt(_0x1cc10f(0x1a3))/0x2+-parseInt(_0x1cc10f(0x1a2))/0x3*(parseInt(_0x1cc10f(0x19d))/0x4)+-parseInt(_0x1cc10f(0x1a1))/0x5+parseInt(_0x1cc10f(0x1a0))/0x6+-parseInt(_0x1cc10f(0x19e))/0x7*(-parseInt(_0x1cc10f(0x19c))/0x8)+parseInt(_0x1cc10f(0x1a4))/0x9;if(_0x206692===_0x22392b)break;else _0x11fa11['push'](_0x11fa11['shift']());}catch(_0x445c40){_0x11fa11['push'](_0x11fa11['shift']());}}}(_0x26df,0xafefd));import{createRasterRenderer}from'../rendering';export const createRasterLeafletRenderer=(_0x5245fb,_0x1823a3)=>{return createRasterRenderer(_0x5245fb,_0x1823a3);};function _0x5b0d(_0x247fb5,_0x51159f){const _0x26df5f=_0x26df();return _0x5b0d=function(_0x5b0d2e,_0x248088){_0x5b0d2e=_0x5b0d2e-0x19c;let _0x76f381=_0x26df5f[_0x5b0d2e];return _0x76f381;},_0x5b0d(_0x247fb5,_0x51159f);}function _0x26df(){const _0x21fc00=['994nIQndR','82742wlNrNM','3270288vrPadI','5518890rNQIsf','451404bswNIv','1399474QwtKgX','17089794bKtICd','8336omZFnu','4tsiFGk'];_0x26df=function(){return _0x21fc00;};return _0x26df();}
1
+ function _0x4f40(_0x5098f0,_0x21d1b0){const _0x521f1c=_0x521f();return _0x4f40=function(_0x4f40b7,_0x52207e){_0x4f40b7=_0x4f40b7-0x1e7;let _0x5b9ecc=_0x521f1c[_0x4f40b7];return _0x5b9ecc;},_0x4f40(_0x5098f0,_0x21d1b0);}(function(_0x553dfe,_0x4cd87b){const _0x2ee991=_0x4f40,_0x51ce5d=_0x553dfe();while(!![]){try{const _0x2e6f39=-parseInt(_0x2ee991(0x1f0))/0x1+parseInt(_0x2ee991(0x1e8))/0x2*(parseInt(_0x2ee991(0x1ed))/0x3)+parseInt(_0x2ee991(0x1ea))/0x4*(-parseInt(_0x2ee991(0x1ee))/0x5)+-parseInt(_0x2ee991(0x1ef))/0x6*(-parseInt(_0x2ee991(0x1e7))/0x7)+parseInt(_0x2ee991(0x1f2))/0x8+parseInt(_0x2ee991(0x1eb))/0x9*(-parseInt(_0x2ee991(0x1f1))/0xa)+parseInt(_0x2ee991(0x1e9))/0xb*(parseInt(_0x2ee991(0x1ec))/0xc);if(_0x2e6f39===_0x4cd87b)break;else _0x51ce5d['push'](_0x51ce5d['shift']());}catch(_0x5be554){_0x51ce5d['push'](_0x51ce5d['shift']());}}}(_0x521f,0xb79b6));import{createRasterRenderer}from'../rendering';export const createRasterLeafletRenderer=(_0x5dd769,_0x591975)=>{return createRasterRenderer(_0x5dd769,_0x591975);};function _0x521f(){const _0x20b1d3=['2113001dClhnZ','164bbcMLQ','4567365gHUPMY','12MsNpCP','392151hdFBoC','16595RRSQWi','1698IAgWez','485794azxqjf','10VsRmnk','263664kuqPFL','5404nzPsrv','22KgQKGP'];_0x521f=function(){return _0x20b1d3;};return _0x521f();}
@@ -1 +1 @@
1
- function _0x52bb(){const _0x1fda56=['borderRadius','initializationPromise','setColorMode','30NFGcyq','unknown','zoom','EPSG3857','render','hideTooltipElement','CRS','catch','getZoomedBoundsTopLeft','setParams','latLngToLayerPoint','style','valueScale','lng','setOpacity','X:\x20','getViewport','outside-clip','getNorthWest','remove','map','tooltip','getPixelOrigin','top','none','NaN','\x0aValue:\x20','latLng','setColorStops','lat','zoomanim','10px','fixed','onHover','height','name','renderer','enabled','requestRender','isTooltipEnabled','containerPointToLayerPoint','options','resolve','getZoomScale','block','3px','layerPointToLatLng','setSampleMode','tooltipElement','DomUtil','675588uAuZIq','bottom','renderImmediately','3042576gQcRom','innerHTML','cancelAnimationFrame','#fff','left','error','11BbFlIz','rgba(0,\x200,\x200,\x200.72)','1704hVvYmk','absolute','createTooltipElement','301032Dkynny','background','max','sampleMode','leaflet-layer\x20leaflet-zoom-animated\x20raster-leaflet-layer','1130dSkBbX','renderFrame','mouseEventToContainerPoint','getContainer','getPanes','handleZoomAnimation','mouseout','color','queryValueAt','handleMapClick','originalEvent','lineHeight','width','raster:hover','div','devicePixelRatio','opacity','getZoom','create','1000EtAmJG','moveend\x20zoomend\x20resize\x20viewreset','130291IEzgqh','updateTooltipElement','Layer','code','tooltipOptions','round','setQueryOutsideClip','right','10iBZrtA','display','data','redraw','51GhxhJP','add','mousemove','formatter','position','handleMapChanged','fire','constructor','1509750WRlUEY','handleRenderError','length','renderedZoom','queryValueAtLatLng','grid','pointerEvents','_latLngBoundsToNewLayerBounds','appendChild','onAdd','removeTooltipElement','syncCanvasToMap','setColorRange','min','pane','clip','\x0aY:\x20','setPosition','colorRange','canvas','off','crs','requestAnimationFrame','栅格图层渲染失败','12px','handleMouseOut','getPane','click','setClipMode','handleMouseMove','colorStops','setGrid','queryOutsideClip','renderedViewport','onRemove','onClick','latlng','padding'];_0x52bb=function(){return _0x1fda56;};return _0x52bb();}const _0x498a0c=_0x4877;(function(_0x3b3cf6,_0x11aeb2){const _0x157710=_0x4877,_0x1cafa2=_0x3b3cf6();while(!![]){try{const _0x5b66fc=-parseInt(_0x157710(0x1d3))/0x1*(parseInt(_0x157710(0x1b2))/0x2)+parseInt(_0x157710(0x1aa))/0x3*(parseInt(_0x157710(0x1c5))/0x4)+parseInt(_0x157710(0x1db))/0x5+-parseInt(_0x157710(0x16d))/0x6*(-parseInt(_0x157710(0x1c7))/0x7)+-parseInt(_0x157710(0x1ad))/0x8+-parseInt(_0x157710(0x1a2))/0x9*(parseInt(_0x157710(0x1cf))/0xa)+-parseInt(_0x157710(0x1a8))/0xb*(-parseInt(_0x157710(0x19f))/0xc);if(_0x5b66fc===_0x11aeb2)break;else _0x1cafa2['push'](_0x1cafa2['shift']());}catch(_0x39cc45){_0x1cafa2['push'](_0x1cafa2['shift']());}}}(_0x52bb,0x2e186));import*as _0x331f93 from'leaflet';function _0x4877(_0x4e03e7,_0x15d590){const _0x52bb93=_0x52bb();return _0x4877=function(_0x4877b4,_0x5dce65){_0x4877b4=_0x4877b4-0x15f;let _0x405b15=_0x52bb93[_0x4877b4];return _0x405b15;},_0x4877(_0x4e03e7,_0x15d590);}import{validateRasterGrid,createGridFromParams,loadRasterGrid}from'./core';import{normalizeColorStops}from'./color';import{queryRasterValue}from'./query';import{createRasterLeafletRenderer}from'./leaflet-renderers/createRenderer';import{resolveLeafletCrs}from'../shared/map';import{containsPolygonCoordinate}from'../shared/polygon';class RasterLeafletLayerImpl extends _0x331f93[_0x498a0c(0x1c9)]{['canvas']=null;[_0x498a0c(0x181)]=null;['renderFrame']=0x0;[_0x498a0c(0x191)];[_0x498a0c(0x165)]=null;[_0x498a0c(0x1de)]=0x0;[_0x498a0c(0x16b)]=null;[_0x498a0c(0x1e0)];['colorRange'];[_0x498a0c(0x162)];[_0x498a0c(0x1b0)];[_0x498a0c(0x18e)];[_0x498a0c(0x167)];[_0x498a0c(0x1cb)];['tooltipElement']=null;[_0x498a0c(0x1ea)];[_0x498a0c(0x164)];['handleMapChanged']=()=>{const _0x576387=_0x498a0c;this[_0x576387(0x1e6)](),this[_0x576387(0x1a1)]();};constructor(_0x486b6b){const _0x5e022f=_0x498a0c;super(_0x486b6b),this[_0x5e022f(0x191)]=_0x486b6b[_0x5e022f(0x191)],this[_0x5e022f(0x1e0)]=_0x486b6b['grid'],this[_0x5e022f(0x1ed)]=_0x486b6b[_0x5e022f(0x1ed)]??null,this['colorStops']=[..._0x486b6b[_0x5e022f(0x162)]],this[_0x5e022f(0x1b0)]=_0x486b6b[_0x5e022f(0x1b0)]??'interpolate',this[_0x5e022f(0x18e)]=_0x486b6b['onHover']??null,this[_0x5e022f(0x167)]=_0x486b6b[_0x5e022f(0x167)]??null,this['tooltipOptions']=_0x486b6b[_0x5e022f(0x182)]??null,this[_0x5e022f(0x1ea)]=_0x486b6b[_0x5e022f(0x1ea)]??null,this[_0x5e022f(0x164)]=_0x486b6b['queryOutsideClip']??![];}[_0x498a0c(0x1e4)](_0x2ab471){const _0x169a76=_0x498a0c;this[_0x169a76(0x181)]=_0x2ab471,this['canvas']=_0x331f93[_0x169a76(0x19e)][_0x169a76(0x1c4)](_0x169a76(0x1ee),_0x169a76(0x1b1)),this[_0x169a76(0x1ee)][_0x169a76(0x178)][_0x169a76(0x1d7)]=_0x169a76(0x1ab),this[_0x169a76(0x1ee)]['style'][_0x169a76(0x1e1)]=_0x169a76(0x185);const _0x2ad4e4=this['options'][_0x169a76(0x1e9)]?_0x2ab471[_0x169a76(0x1f5)](this[_0x169a76(0x196)][_0x169a76(0x1e9)]):_0x2ab471[_0x169a76(0x1b6)]()['overlayPane'];_0x2ad4e4?.[_0x169a76(0x1e3)](this[_0x169a76(0x1ee)]),this['createTooltipElement'](),this[_0x169a76(0x1e6)](),this[_0x169a76(0x1de)]=_0x2ab471[_0x169a76(0x1c3)](),_0x2ab471['on'](_0x169a76(0x1c6),this[_0x169a76(0x1d8)]),_0x2ab471['on'](_0x169a76(0x18b),this['handleZoomAnimation']),_0x2ab471['on']('mousemove',this[_0x169a76(0x161)]),_0x2ab471['on'](_0x169a76(0x15f),this[_0x169a76(0x1bb)]),_0x2ab471['on'](_0x169a76(0x1b8),this[_0x169a76(0x1f4)]);const _0x579535=this[_0x169a76(0x1ee)],_0x4b5423=_0x2ab471[_0x169a76(0x196)][_0x169a76(0x1f0)]??_0x331f93[_0x169a76(0x173)][_0x169a76(0x170)],_0x7e3c28=resolveLeafletCrs(_0x4b5423);if(!_0x7e3c28){const _0x4d011a=_0x4b5423[_0x169a76(0x1ca)]??_0x4b5423[_0x169a76(0x1da)]?.[_0x169a76(0x190)]??_0x169a76(0x16e);throw new Error('不支持的\x20Leaflet\x20CRS:'+_0x4d011a);}return this['initializationPromise']=Promise[_0x169a76(0x197)](this[_0x169a76(0x191)]['initialize'](_0x579535,_0x7e3c28)),void this[_0x169a76(0x16b)]['then'](()=>{const _0x4e7640=_0x169a76;if(this[_0x4e7640(0x1ee)]!==_0x579535||!this[_0x4e7640(0x181)])return;this['requestRender']();})[_0x169a76(0x174)](_0xfc5bc7=>{const _0x2a5e23=_0x169a76;console[_0x2a5e23(0x1a7)]('栅格渲染器初始化失败',_0xfc5bc7);}),this;}[_0x498a0c(0x166)](_0x31e24a){const _0x21d394=_0x498a0c;return _0x31e24a[_0x21d394(0x1ef)](_0x21d394(0x1c6),this[_0x21d394(0x1d8)]),_0x31e24a['off']('zoomanim',this[_0x21d394(0x1b7)]),_0x31e24a[_0x21d394(0x1ef)](_0x21d394(0x1d5),this[_0x21d394(0x161)]),_0x31e24a[_0x21d394(0x1ef)]('click',this[_0x21d394(0x1bb)]),_0x31e24a['off']('mouseout',this[_0x21d394(0x1f4)]),this[_0x21d394(0x1b3)]&&(window[_0x21d394(0x1a4)](this['renderFrame']),this[_0x21d394(0x1b3)]=0x0),this['renderer']['destroy'](),this['initializationPromise']=null,this[_0x21d394(0x1e5)](),this[_0x21d394(0x1ee)]?.[_0x21d394(0x180)](),this[_0x21d394(0x1ee)]=null,this[_0x21d394(0x181)]=null,this;}async[_0x498a0c(0x176)](_0x174022){const _0x1d3be2=_0x498a0c;await this[_0x1d3be2(0x163)](createGridFromParams(_0x174022));}async['setSource'](_0x43fb7d){const _0x289b69=_0x498a0c;await this[_0x289b69(0x163)](await loadRasterGrid(_0x43fb7d));}[_0x498a0c(0x1d2)](){const _0xd1085e=_0x498a0c;this['syncCanvasToMap'](),this[_0xd1085e(0x193)]();}['getCanvas'](){const _0x34f6b4=_0x498a0c;return this[_0x34f6b4(0x1ee)];}async[_0x498a0c(0x163)](_0x240da3){const _0x3b697c=_0x498a0c,_0x2b9d55=validateRasterGrid(_0x240da3);this[_0x3b697c(0x16b)]&&await this[_0x3b697c(0x16b)],this[_0x3b697c(0x1e0)]=_0x2b9d55,await this[_0x3b697c(0x191)][_0x3b697c(0x163)](_0x2b9d55),this[_0x3b697c(0x193)]();}[_0x498a0c(0x189)](_0x460c41){const _0x1a52bf=_0x498a0c,_0x2da2db=normalizeColorStops(_0x460c41);this[_0x1a52bf(0x162)]=_0x2da2db,this[_0x1a52bf(0x191)][_0x1a52bf(0x189)](_0x2da2db),this[_0x1a52bf(0x193)]();}['setColorRange'](_0xa61788){const _0x263e4a=_0x498a0c;this[_0x263e4a(0x191)][_0x263e4a(0x1e7)](_0xa61788),this['colorRange']=_0xa61788,this[_0x263e4a(0x193)]();}[_0x498a0c(0x16c)](_0x28522c){const _0x22d913=_0x498a0c;this[_0x22d913(0x191)][_0x22d913(0x16c)](_0x28522c),this['requestRender']();}[_0x498a0c(0x19c)](_0x293bdb){const _0x27bfca=_0x498a0c;this['renderer'][_0x27bfca(0x19c)](_0x293bdb),this[_0x27bfca(0x1b0)]=_0x293bdb,this[_0x27bfca(0x193)]();}[_0x498a0c(0x17b)](_0x15b1d3){const _0x5e3597=_0x498a0c;this[_0x5e3597(0x191)][_0x5e3597(0x17b)](_0x15b1d3),this[_0x5e3597(0x193)]();}[_0x498a0c(0x1ba)](_0xdfc8ed){const _0x42de10=_0x498a0c;if(!this[_0x42de10(0x164)]&&this['clip']&&!containsPolygonCoordinate(this[_0x42de10(0x1ea)][_0x42de10(0x1d1)],_0xdfc8ed['x'],_0xdfc8ed['y']))return{'x':_0xdfc8ed['x'],'y':_0xdfc8ed['y'],'rawValue':Number[_0x42de10(0x186)],'value':Number[_0x42de10(0x186)],'valueScale':this[_0x42de10(0x1e0)][_0x42de10(0x179)],'gridX':-0x1,'gridY':-0x1,'valid':![],'visible':![],'reason':_0x42de10(0x17e)};return queryRasterValue(this['grid'],_0xdfc8ed,{'colorRange':this['getQueryColorRange'](),'sampleMode':this[_0x42de10(0x1b0)]});}[_0x498a0c(0x1cd)](_0x569729){const _0x4bf9b9=_0x498a0c;this['queryOutsideClip']=_0x569729;if(!_0x569729)this[_0x4bf9b9(0x172)]();}['setClipMode'](_0x862484){const _0x188b82=_0x498a0c;this['renderer'][_0x188b82(0x160)](_0x862484),this[_0x188b82(0x193)]();}[_0x498a0c(0x1df)](_0x552003){const _0x8b8c5=_0x498a0c,_0x4c78c0=_0x331f93[_0x8b8c5(0x188)](_0x552003);return this[_0x8b8c5(0x1ba)]({'x':_0x4c78c0[_0x8b8c5(0x17a)],'y':_0x4c78c0[_0x8b8c5(0x18a)]});}[_0x498a0c(0x1e6)](){const _0x444900=_0x498a0c;if(!this[_0x444900(0x181)]||!this[_0x444900(0x1ee)])return;const _0x27fd78=this[_0x444900(0x181)]['getSize'](),_0x3c1b66=Math[_0x444900(0x1cc)](_0x27fd78['x']*0.5),_0x1edef=Math[_0x444900(0x1cc)](_0x27fd78['y']*0.5),_0x2a733a=this[_0x444900(0x181)][_0x444900(0x195)]([-_0x3c1b66,-_0x1edef]),_0x2a18e3=window[_0x444900(0x1c1)]||0x1,_0x2243f4=_0x27fd78['x']+_0x3c1b66*0x2,_0x5189a2=_0x27fd78['y']+_0x1edef*0x2,_0x8aec87=Math[_0x444900(0x1af)](0x1,Math[_0x444900(0x1cc)](_0x2243f4*_0x2a18e3)),_0x19682d=Math['max'](0x1,Math['round'](_0x5189a2*_0x2a18e3));_0x331f93[_0x444900(0x19e)][_0x444900(0x1ec)](this['canvas'],_0x2a733a),this[_0x444900(0x1ee)][_0x444900(0x178)][_0x444900(0x1be)]=_0x2243f4+'px',this[_0x444900(0x1ee)]['style'][_0x444900(0x18f)]=_0x5189a2+'px',this[_0x444900(0x165)]={'height':_0x5189a2,'left':_0x2a733a['x'],'top':_0x2a733a['y'],'width':_0x2243f4},(this['canvas']['width']!==_0x8aec87||this[_0x444900(0x1ee)][_0x444900(0x18f)]!==_0x19682d)&&(this[_0x444900(0x1ee)][_0x444900(0x1be)]=_0x8aec87,this['canvas'][_0x444900(0x18f)]=_0x19682d);}[_0x498a0c(0x193)](){const _0x3e0819=_0x498a0c;if(this[_0x3e0819(0x1b3)])return;this[_0x3e0819(0x1b3)]=window[_0x3e0819(0x1f1)](()=>{const _0x26d33b=_0x3e0819;this['renderFrame']=0x0,void this['render']()[_0x26d33b(0x174)](_0x3b9c58=>{const _0x5a661e=_0x26d33b;this[_0x5a661e(0x1dc)](_0x3b9c58);});});}['renderImmediately'](){const _0x2aee72=_0x498a0c;this[_0x2aee72(0x1b3)]&&(window[_0x2aee72(0x1a4)](this['renderFrame']),this[_0x2aee72(0x1b3)]=0x0),void this[_0x2aee72(0x171)]()[_0x2aee72(0x174)](_0x556398=>{this['handleRenderError'](_0x556398);});}async['render'](){const _0x1a679d=_0x498a0c,_0x4cfd94=this[_0x1a679d(0x16b)];if(!_0x4cfd94)return;await _0x4cfd94;if(this['initializationPromise']!==_0x4cfd94)return;const _0x5172f3=this['getViewport']();if(!_0x5172f3)return;await this[_0x1a679d(0x191)][_0x1a679d(0x171)](_0x5172f3);if(this[_0x1a679d(0x16b)]!==_0x4cfd94)return;this['renderedZoom']=this['map']?.['getZoom']()??this['renderedZoom'];}[_0x498a0c(0x17d)](){const _0x421236=_0x498a0c;if(!this['map']||!this[_0x421236(0x1ee)])return null;const _0x597e92=window[_0x421236(0x1c1)]||0x1,_0x2905fc=this['renderedViewport'],_0x3e2bce=_0x2905fc?this[_0x421236(0x181)][_0x421236(0x183)]()[_0x421236(0x1d4)]([_0x2905fc[_0x421236(0x1a6)],_0x2905fc['top']]):this[_0x421236(0x181)][_0x421236(0x183)]();return{'canvasWidth':this['canvas'][_0x421236(0x1be)],'canvasHeight':this[_0x421236(0x1ee)][_0x421236(0x18f)],'cssWidth':this[_0x421236(0x1ee)][_0x421236(0x1be)]/_0x597e92,'cssHeight':this['canvas'][_0x421236(0x18f)]/_0x597e92,'devicePixelRatio':_0x597e92,'zoom':this[_0x421236(0x181)][_0x421236(0x1c3)](),'worldTopLeftX':_0x3e2bce['x'],'worldTopLeftY':_0x3e2bce['y']};}['handleZoomAnimation']=_0x2904e3=>{const _0x17568a=_0x498a0c;if(!this['map']||!this[_0x17568a(0x1ee)]||!this[_0x17568a(0x165)])return;const _0x19910c=this[_0x17568a(0x181)][_0x17568a(0x198)](_0x2904e3[_0x17568a(0x16f)],this[_0x17568a(0x1de)]),_0x456a82=_0x331f93['latLngBounds'](this[_0x17568a(0x181)][_0x17568a(0x19b)]([this['renderedViewport']['left'],this[_0x17568a(0x165)][_0x17568a(0x184)]+this['renderedViewport'][_0x17568a(0x18f)]]),this[_0x17568a(0x181)]['layerPointToLatLng']([this[_0x17568a(0x165)][_0x17568a(0x1a6)]+this[_0x17568a(0x165)][_0x17568a(0x1be)],this[_0x17568a(0x165)]['top']])),_0x3e07ae=this[_0x17568a(0x175)](_0x456a82,_0x2904e3[_0x17568a(0x16f)],_0x2904e3['center']);_0x331f93[_0x17568a(0x19e)]['setTransform'](this[_0x17568a(0x1ee)],_0x3e07ae,_0x19910c);};[_0x498a0c(0x175)](_0x3c695e,_0x27f411,_0x3dd3a0){const _0x579f14=_0x498a0c;if(!this[_0x579f14(0x181)])return _0x331f93['point'](0x0,0x0);const _0x59fde2=this[_0x579f14(0x181)];if(_0x59fde2[_0x579f14(0x1e2)])return _0x59fde2[_0x579f14(0x1e2)](_0x3c695e,_0x27f411,_0x3dd3a0)[_0x579f14(0x1e8)]??_0x331f93['point'](0x0,0x0);return this[_0x579f14(0x181)][_0x579f14(0x177)](_0x3c695e[_0x579f14(0x17f)]());}[_0x498a0c(0x1dc)](_0x4e160a){const _0x1edc3f=_0x498a0c;console['error'](_0x1edc3f(0x1f2),_0x4e160a);}['getQueryColorRange'](){const _0x576885=_0x498a0c;if(this[_0x576885(0x1ed)])return this[_0x576885(0x1ed)];const _0x53753f=this[_0x576885(0x162)][0x0],_0xe15257=this[_0x576885(0x162)][this[_0x576885(0x162)][_0x576885(0x1dd)]-0x1];return{'minValue':_0x53753f[_0x576885(0x1e8)],'maxValue':_0xe15257['max']};}[_0x498a0c(0x161)]=_0x48f7f5=>{const _0x23376e=_0x498a0c,_0x3da618=this[_0x23376e(0x1df)](_0x48f7f5[_0x23376e(0x168)]);this[_0x23376e(0x1c8)](_0x3da618,_0x48f7f5),this[_0x23376e(0x18e)]?.(_0x3da618),this[_0x23376e(0x1d9)](_0x23376e(0x1bf),{'result':_0x3da618,'latlng':_0x48f7f5[_0x23376e(0x168)],'originalEvent':_0x48f7f5['originalEvent']});};[_0x498a0c(0x1bb)]=_0x1d5566=>{const _0x4e6eec=_0x498a0c,_0x56ce2b=this['queryValueAtLatLng'](_0x1d5566[_0x4e6eec(0x168)]);this[_0x4e6eec(0x167)]?.(_0x56ce2b),this[_0x4e6eec(0x1d9)]('raster:click',{'result':_0x56ce2b,'latlng':_0x1d5566[_0x4e6eec(0x168)],'originalEvent':_0x1d5566[_0x4e6eec(0x1bc)]});};[_0x498a0c(0x1f4)]=()=>{const _0x3c6ce1=_0x498a0c;this[_0x3c6ce1(0x172)]();};['isTooltipEnabled'](){const _0x4b7757=_0x498a0c;return this[_0x4b7757(0x1cb)]?.[_0x4b7757(0x192)]===!![];}[_0x498a0c(0x172)](){const _0x4a0e85=_0x498a0c;if(!this['tooltipElement'])return;this[_0x4a0e85(0x19d)]['style']['display']=_0x4a0e85(0x185);}[_0x498a0c(0x1ac)](){const _0x1a8133=_0x498a0c;if(!this[_0x1a8133(0x181)]||!this[_0x1a8133(0x194)]())return;const _0x24c237=this[_0x1a8133(0x181)][_0x1a8133(0x1b5)](),_0x5acdaf=_0x331f93['DomUtil'][_0x1a8133(0x1c4)](_0x1a8133(0x1c0),'raster-tooltip',_0x24c237);_0x5acdaf[_0x1a8133(0x178)][_0x1a8133(0x1d7)]=_0x1a8133(0x1ab),_0x5acdaf[_0x1a8133(0x178)]['zIndex']='1000',_0x5acdaf[_0x1a8133(0x178)][_0x1a8133(0x1e1)]=_0x1a8133(0x185),_0x5acdaf[_0x1a8133(0x178)]['display']=_0x1a8133(0x185),_0x5acdaf[_0x1a8133(0x178)][_0x1a8133(0x169)]='4px\x206px',_0x5acdaf[_0x1a8133(0x178)]['fontSize']=_0x1a8133(0x1f3),_0x5acdaf[_0x1a8133(0x178)][_0x1a8133(0x1bd)]='18px',_0x5acdaf[_0x1a8133(0x178)][_0x1a8133(0x1b9)]=_0x1a8133(0x1a5),_0x5acdaf[_0x1a8133(0x178)][_0x1a8133(0x1ae)]=_0x1a8133(0x1a9),_0x5acdaf[_0x1a8133(0x178)][_0x1a8133(0x16a)]=_0x1a8133(0x19a),this[_0x1a8133(0x19d)]=_0x5acdaf;}[_0x498a0c(0x1e5)](){const _0x3491e0=_0x498a0c;this[_0x3491e0(0x19d)]?.[_0x3491e0(0x180)](),this[_0x3491e0(0x19d)]=null;}['formatTooltipContent'](_0x1baf53){const _0x22c432=_0x498a0c;if(this[_0x22c432(0x1cb)]?.[_0x22c432(0x1d6)])return this[_0x22c432(0x1cb)][_0x22c432(0x1d6)](_0x1baf53);return _0x22c432(0x17c)+_0x1baf53['x']+_0x22c432(0x1eb)+_0x1baf53['y']+_0x22c432(0x187)+_0x1baf53['value'];}[_0x498a0c(0x1c8)](_0x26e388,_0x4c2056){const _0x3d5a3a=_0x498a0c;if(!this['tooltipElement']||!this[_0x3d5a3a(0x194)]())return;this[_0x3d5a3a(0x19d)][_0x3d5a3a(0x1a3)]=this['formatTooltipContent'](_0x26e388),this[_0x3d5a3a(0x19d)]['style'][_0x3d5a3a(0x1d0)]=_0x3d5a3a(0x199);if(this[_0x3d5a3a(0x1cb)]?.[_0x3d5a3a(0x1d7)]===_0x3d5a3a(0x18d)){this['tooltipElement'][_0x3d5a3a(0x178)][_0x3d5a3a(0x1a6)]=_0x3d5a3a(0x18c),this[_0x3d5a3a(0x19d)][_0x3d5a3a(0x178)][_0x3d5a3a(0x1a0)]=_0x3d5a3a(0x18c),this['tooltipElement'][_0x3d5a3a(0x178)][_0x3d5a3a(0x184)]='',this[_0x3d5a3a(0x19d)][_0x3d5a3a(0x178)][_0x3d5a3a(0x1ce)]='';return;}const _0x5bb2bb=this[_0x3d5a3a(0x181)]?.[_0x3d5a3a(0x1b4)](_0x4c2056['originalEvent']);if(!_0x5bb2bb)return;this[_0x3d5a3a(0x19d)]['style'][_0x3d5a3a(0x1a6)]=_0x5bb2bb['x']+0xc+'px',this[_0x3d5a3a(0x19d)][_0x3d5a3a(0x178)][_0x3d5a3a(0x184)]=_0x5bb2bb['y']+0xc+'px',this[_0x3d5a3a(0x19d)][_0x3d5a3a(0x178)][_0x3d5a3a(0x1ce)]='',this[_0x3d5a3a(0x19d)][_0x3d5a3a(0x178)][_0x3d5a3a(0x1a0)]='';}}export const createRasterLeafletLayer=_0x3ed74b=>{const _0x5b652a=_0x498a0c,_0x290986=validateRasterGrid(_0x3ed74b['grid']),_0x50c856=normalizeColorStops(_0x3ed74b[_0x5b652a(0x162)]),_0x30c99d=createRasterLeafletRenderer(_0x3ed74b['rendererType'],{'colorRange':_0x3ed74b['colorRange'],'colorStops':_0x50c856,'grid':_0x290986,'opacity':_0x3ed74b[_0x5b652a(0x1c2)],'colorMode':_0x3ed74b['colorMode'],'sampleMode':_0x3ed74b[_0x5b652a(0x1b0)],'clip':_0x3ed74b[_0x5b652a(0x1ea)]});return new RasterLeafletLayerImpl({'pane':_0x3ed74b[_0x5b652a(0x1e9)],'renderer':_0x30c99d,'grid':_0x290986,'colorRange':_0x3ed74b[_0x5b652a(0x1ed)],'sampleMode':_0x3ed74b[_0x5b652a(0x1b0)],'colorStops':_0x50c856,'onHover':_0x3ed74b[_0x5b652a(0x18e)],'onClick':_0x3ed74b[_0x5b652a(0x167)],'tooltip':_0x3ed74b[_0x5b652a(0x182)],'clip':_0x3ed74b[_0x5b652a(0x1ea)],'queryOutsideClip':_0x3ed74b[_0x5b652a(0x164)]});};
1
+ const _0x6c44e8=_0x5d3a;(function(_0x9e9815,_0x50f5ec){const _0x168e13=_0x5d3a,_0x40df3f=_0x9e9815();while(!![]){try{const _0x555069=parseInt(_0x168e13(0x12a))/0x1*(-parseInt(_0x168e13(0x100))/0x2)+-parseInt(_0x168e13(0x124))/0x3+parseInt(_0x168e13(0x158))/0x4+parseInt(_0x168e13(0x148))/0x5*(-parseInt(_0x168e13(0xef))/0x6)+parseInt(_0x168e13(0x159))/0x7+-parseInt(_0x168e13(0x173))/0x8+parseInt(_0x168e13(0xec))/0x9*(parseInt(_0x168e13(0xf9))/0xa);if(_0x555069===_0x50f5ec)break;else _0x40df3f['push'](_0x40df3f['shift']());}catch(_0x583bf6){_0x40df3f['push'](_0x40df3f['shift']());}}}(_0x21ec,0xca509));import*as _0x733758 from'leaflet';import{validateRasterGrid,createGridFromParams,loadRasterGrid}from'./core';function _0x21ec(){const _0x2332e7=['latLngBounds','handleMapChanged','containerPointToLayerPoint','raster:click','min','clip','NaN','getSize','colorRange','18230rVpcLt','remove','createTooltipElement','interpolate','12px','mouseEventToContainerPoint','isTooltipEnabled','158EBHdnk','render','canvas','onHover','latLngToLayerPoint','colorStops','handleMouseOut','absolute','setTransform','requestAnimationFrame','outside-clip','zoomanim','unknown','display','fire','getPane','renderedViewport','_latLngBoundsToNewLayerBounds','mouseout','18px','moveend\x20zoomend\x20resize\x20viewreset','point','tooltipElement','overlayPane','onAdd','none','catch','center','setOpacity','latlng','borderRadius','click','fixed','syncCanvasToMap','onRemove','grid','3212007rwpyWJ','removeTooltipElement','getPanes','queryOutsideClip','formatTooltipContent','div','5955ZFjylC','1000','layerPointToLatLng','setClipMode','redraw','getNorthWest','renderFrame','then','handleMouseMove','width','handleMapClick','code','3px','10px','style','latLng','initialize','appendChild','setSampleMode','color','initializationPromise','renderImmediately','getPixelOrigin','map','lng','getCanvas','lat','options','length','fontSize','4896530lOkrCI','add','setGrid','innerHTML','pointerEvents','Layer','setSource','getQueryColorRange','enabled','setPosition','updateTooltipElement','getZoomedBoundsTopLeft','top','getZoom','height','position','3566596CHDvKs','10060071Yheifh','left','rgba(0,\x200,\x200,\x200.72)','requestRender','handleRenderError','resolve','handleZoomAnimation','round','queryValueAtLatLng','pane','devicePixelRatio','DomUtil','valueScale','tooltipOptions','queryValueAt','raster:hover','hideTooltipElement','getViewport','setColorStops','create','zIndex','cancelAnimationFrame','right','\x0aY:\x20','tooltip','renderedZoom','12926072MWYwNt','originalEvent','setColorRange','栅格图层渲染失败','4px\x206px','onClick','off','setColorMode','max','getContainer','background','formatter','leaflet-layer\x20leaflet-zoom-animated\x20raster-leaflet-layer','setQueryOutsideClip','renderer','sampleMode','13014XLfwZR','mousemove','bottom','6rADmab'];_0x21ec=function(){return _0x2332e7;};return _0x21ec();}import{normalizeColorStops}from'./color';import{queryRasterValue}from'./query';function _0x5d3a(_0x57536e,_0xe9ee1a){const _0x21ecd0=_0x21ec();return _0x5d3a=function(_0x5d3a7f,_0x342491){_0x5d3a7f=_0x5d3a7f-0xe4;let _0x364d80=_0x21ecd0[_0x5d3a7f];return _0x364d80;},_0x5d3a(_0x57536e,_0xe9ee1a);}import{createRasterLeafletRenderer}from'./leaflet-renderers/createRenderer';import{resolveLeafletCrs}from'../shared/map';import{containsPolygonCoordinate}from'../shared/polygon';class RasterLeafletLayerImpl extends _0x733758[_0x6c44e8(0x14d)]{[_0x6c44e8(0x102)]=null;['map']=null;[_0x6c44e8(0x130)]=0x0;[_0x6c44e8(0xea)];[_0x6c44e8(0x110)]=null;[_0x6c44e8(0x172)]=0x0;['initializationPromise']=null;[_0x6c44e8(0x123)];[_0x6c44e8(0xf8)];[_0x6c44e8(0x105)];[_0x6c44e8(0xeb)];['onHover'];[_0x6c44e8(0x178)];['tooltipOptions'];[_0x6c44e8(0x116)]=null;[_0x6c44e8(0xf5)];[_0x6c44e8(0x127)];[_0x6c44e8(0xf1)]=()=>{const _0x174588=_0x6c44e8;this[_0x174588(0x121)](),this['renderImmediately']();};constructor(_0x44dd6d){const _0x399244=_0x6c44e8;super(_0x44dd6d),this[_0x399244(0xea)]=_0x44dd6d['renderer'],this[_0x399244(0x123)]=_0x44dd6d[_0x399244(0x123)],this[_0x399244(0xf8)]=_0x44dd6d[_0x399244(0xf8)]??null,this[_0x399244(0x105)]=[..._0x44dd6d['colorStops']],this['sampleMode']=_0x44dd6d[_0x399244(0xeb)]??_0x399244(0xfc),this['onHover']=_0x44dd6d[_0x399244(0x103)]??null,this[_0x399244(0x178)]=_0x44dd6d['onClick']??null,this['tooltipOptions']=_0x44dd6d[_0x399244(0x171)]??null,this[_0x399244(0xf5)]=_0x44dd6d['clip']??null,this[_0x399244(0x127)]=_0x44dd6d['queryOutsideClip']??![];}[_0x6c44e8(0x118)](_0xaae3bd){const _0x48c740=_0x6c44e8;this[_0x48c740(0x141)]=_0xaae3bd,this[_0x48c740(0x102)]=_0x733758[_0x48c740(0x164)][_0x48c740(0x16c)](_0x48c740(0x102),_0x48c740(0xe8)),this[_0x48c740(0x102)][_0x48c740(0x138)][_0x48c740(0x157)]=_0x48c740(0x107),this[_0x48c740(0x102)][_0x48c740(0x138)]['pointerEvents']=_0x48c740(0x119);const _0x14eafd=this[_0x48c740(0x145)]['pane']?_0xaae3bd[_0x48c740(0x10f)](this[_0x48c740(0x145)][_0x48c740(0x162)]):_0xaae3bd[_0x48c740(0x126)]()[_0x48c740(0x117)];_0x14eafd?.[_0x48c740(0x13b)](this[_0x48c740(0x102)]),this[_0x48c740(0xfb)](),this[_0x48c740(0x121)](),this[_0x48c740(0x172)]=_0xaae3bd[_0x48c740(0x155)](),_0xaae3bd['on'](_0x48c740(0x114),this['handleMapChanged']),_0xaae3bd['on'](_0x48c740(0x10b),this[_0x48c740(0x15f)]),_0xaae3bd['on'](_0x48c740(0xed),this[_0x48c740(0x132)]),_0xaae3bd['on'](_0x48c740(0x11f),this[_0x48c740(0x134)]),_0xaae3bd['on'](_0x48c740(0x112),this[_0x48c740(0x106)]);const _0x539aa5=this[_0x48c740(0x102)],_0x59c037=_0xaae3bd[_0x48c740(0x145)]['crs']??_0x733758['CRS']['EPSG3857'],_0x2c9ffa=resolveLeafletCrs(_0x59c037);if(!_0x2c9ffa){const _0xa95672=_0x59c037[_0x48c740(0x135)]??_0x59c037['constructor']?.['name']??_0x48c740(0x10c);throw new Error('不支持的\x20Leaflet\x20CRS:'+_0xa95672);}return this[_0x48c740(0x13e)]=Promise[_0x48c740(0x15e)](this[_0x48c740(0xea)][_0x48c740(0x13a)](_0x539aa5,_0x2c9ffa)),void this[_0x48c740(0x13e)][_0x48c740(0x131)](()=>{const _0x47895d=_0x48c740;if(this[_0x47895d(0x102)]!==_0x539aa5||!this[_0x47895d(0x141)])return;this['requestRender']();})[_0x48c740(0x11a)](_0x959f38=>{console['error']('栅格渲染器初始化失败',_0x959f38);}),this;}[_0x6c44e8(0x122)](_0x37f572){const _0x1a51cc=_0x6c44e8;return _0x37f572['off'](_0x1a51cc(0x114),this[_0x1a51cc(0xf1)]),_0x37f572['off'](_0x1a51cc(0x10b),this['handleZoomAnimation']),_0x37f572[_0x1a51cc(0x179)](_0x1a51cc(0xed),this[_0x1a51cc(0x132)]),_0x37f572['off'](_0x1a51cc(0x11f),this['handleMapClick']),_0x37f572[_0x1a51cc(0x179)]('mouseout',this[_0x1a51cc(0x106)]),this[_0x1a51cc(0x130)]&&(window[_0x1a51cc(0x16e)](this[_0x1a51cc(0x130)]),this[_0x1a51cc(0x130)]=0x0),this['renderer']['destroy'](),this[_0x1a51cc(0x13e)]=null,this[_0x1a51cc(0x125)](),this['canvas']?.[_0x1a51cc(0xfa)](),this[_0x1a51cc(0x102)]=null,this[_0x1a51cc(0x141)]=null,this;}async['setParams'](_0x3eb3e9){const _0xec0884=_0x6c44e8;await this[_0xec0884(0x14a)](createGridFromParams(_0x3eb3e9));}async[_0x6c44e8(0x14e)](_0x4cf3c0){const _0x2210bb=_0x6c44e8;await this[_0x2210bb(0x14a)](await loadRasterGrid(_0x4cf3c0));}[_0x6c44e8(0x12e)](){const _0x1f249d=_0x6c44e8;this[_0x1f249d(0x121)](),this[_0x1f249d(0x15c)]();}[_0x6c44e8(0x143)](){const _0xee380e=_0x6c44e8;return this[_0xee380e(0x102)];}async[_0x6c44e8(0x14a)](_0x1c4f59){const _0xec7cc3=_0x6c44e8,_0x3518f9=validateRasterGrid(_0x1c4f59);this[_0xec7cc3(0x13e)]&&await this[_0xec7cc3(0x13e)],this[_0xec7cc3(0x123)]=_0x3518f9,await this[_0xec7cc3(0xea)]['setGrid'](_0x3518f9),this[_0xec7cc3(0x15c)]();}[_0x6c44e8(0x16b)](_0x1dbac7){const _0x103756=_0x6c44e8,_0x338ba0=normalizeColorStops(_0x1dbac7);this['colorStops']=_0x338ba0,this[_0x103756(0xea)][_0x103756(0x16b)](_0x338ba0),this[_0x103756(0x15c)]();}[_0x6c44e8(0x175)](_0x1abc35){const _0x59838f=_0x6c44e8;this[_0x59838f(0xea)][_0x59838f(0x175)](_0x1abc35),this['colorRange']=_0x1abc35,this['requestRender']();}[_0x6c44e8(0x17a)](_0x191d99){const _0x1aa3e5=_0x6c44e8;this[_0x1aa3e5(0xea)][_0x1aa3e5(0x17a)](_0x191d99),this[_0x1aa3e5(0x15c)]();}[_0x6c44e8(0x13c)](_0x121f34){const _0x3017e9=_0x6c44e8;this['renderer'][_0x3017e9(0x13c)](_0x121f34),this[_0x3017e9(0xeb)]=_0x121f34,this[_0x3017e9(0x15c)]();}[_0x6c44e8(0x11c)](_0x139456){const _0x18338e=_0x6c44e8;this[_0x18338e(0xea)]['setOpacity'](_0x139456),this[_0x18338e(0x15c)]();}[_0x6c44e8(0x167)](_0xf2afeb){const _0x3a5520=_0x6c44e8;if(!this[_0x3a5520(0x127)]&&this['clip']&&!containsPolygonCoordinate(this[_0x3a5520(0xf5)]['data'],_0xf2afeb['x'],_0xf2afeb['y']))return{'x':_0xf2afeb['x'],'y':_0xf2afeb['y'],'rawValue':Number['NaN'],'value':Number[_0x3a5520(0xf6)],'valueScale':this[_0x3a5520(0x123)][_0x3a5520(0x165)],'gridX':-0x1,'gridY':-0x1,'valid':![],'visible':![],'reason':_0x3a5520(0x10a)};return queryRasterValue(this[_0x3a5520(0x123)],_0xf2afeb,{'colorRange':this[_0x3a5520(0x14f)](),'sampleMode':this[_0x3a5520(0xeb)]});}[_0x6c44e8(0xe9)](_0x5ecc5f){const _0x242761=_0x6c44e8;this[_0x242761(0x127)]=_0x5ecc5f;if(!_0x5ecc5f)this[_0x242761(0x169)]();}[_0x6c44e8(0x12d)](_0x217a9c){this['renderer']['setClipMode'](_0x217a9c),this['requestRender']();}['queryValueAtLatLng'](_0x391f44){const _0xf9e425=_0x6c44e8,_0x42472f=_0x733758[_0xf9e425(0x139)](_0x391f44);return this[_0xf9e425(0x167)]({'x':_0x42472f[_0xf9e425(0x142)],'y':_0x42472f[_0xf9e425(0x144)]});}[_0x6c44e8(0x121)](){const _0xc8a4c4=_0x6c44e8;if(!this[_0xc8a4c4(0x141)]||!this[_0xc8a4c4(0x102)])return;const _0x22693b=this[_0xc8a4c4(0x141)][_0xc8a4c4(0xf7)](),_0x11c79b=Math['round'](_0x22693b['x']*0.5),_0x28a1ca=Math[_0xc8a4c4(0x160)](_0x22693b['y']*0.5),_0x4f460c=this[_0xc8a4c4(0x141)][_0xc8a4c4(0xf2)]([-_0x11c79b,-_0x28a1ca]),_0x2f2d16=window[_0xc8a4c4(0x163)]||0x1,_0x16787d=_0x22693b['x']+_0x11c79b*0x2,_0x3c4e8e=_0x22693b['y']+_0x28a1ca*0x2,_0x2c24c6=Math[_0xc8a4c4(0xe4)](0x1,Math[_0xc8a4c4(0x160)](_0x16787d*_0x2f2d16)),_0x42176c=Math[_0xc8a4c4(0xe4)](0x1,Math[_0xc8a4c4(0x160)](_0x3c4e8e*_0x2f2d16));_0x733758[_0xc8a4c4(0x164)][_0xc8a4c4(0x151)](this[_0xc8a4c4(0x102)],_0x4f460c),this['canvas'][_0xc8a4c4(0x138)][_0xc8a4c4(0x133)]=_0x16787d+'px',this[_0xc8a4c4(0x102)][_0xc8a4c4(0x138)][_0xc8a4c4(0x156)]=_0x3c4e8e+'px',this[_0xc8a4c4(0x110)]={'height':_0x3c4e8e,'left':_0x4f460c['x'],'top':_0x4f460c['y'],'width':_0x16787d},(this[_0xc8a4c4(0x102)][_0xc8a4c4(0x133)]!==_0x2c24c6||this[_0xc8a4c4(0x102)][_0xc8a4c4(0x156)]!==_0x42176c)&&(this[_0xc8a4c4(0x102)][_0xc8a4c4(0x133)]=_0x2c24c6,this[_0xc8a4c4(0x102)][_0xc8a4c4(0x156)]=_0x42176c);}[_0x6c44e8(0x15c)](){const _0x38732e=_0x6c44e8;if(this[_0x38732e(0x130)])return;this[_0x38732e(0x130)]=window[_0x38732e(0x109)](()=>{const _0x4eb6f0=_0x38732e;this[_0x4eb6f0(0x130)]=0x0,void this[_0x4eb6f0(0x101)]()[_0x4eb6f0(0x11a)](_0x185386=>{const _0x40f549=_0x4eb6f0;this[_0x40f549(0x15d)](_0x185386);});});}[_0x6c44e8(0x13f)](){const _0x2fb14c=_0x6c44e8;this['renderFrame']&&(window[_0x2fb14c(0x16e)](this[_0x2fb14c(0x130)]),this[_0x2fb14c(0x130)]=0x0),void this[_0x2fb14c(0x101)]()[_0x2fb14c(0x11a)](_0x3d198a=>{const _0x1a7de8=_0x2fb14c;this[_0x1a7de8(0x15d)](_0x3d198a);});}async[_0x6c44e8(0x101)](){const _0xedd54a=_0x6c44e8,_0x31c467=this[_0xedd54a(0x13e)];if(!_0x31c467)return;await _0x31c467;if(this[_0xedd54a(0x13e)]!==_0x31c467)return;const _0x485549=this[_0xedd54a(0x16a)]();if(!_0x485549)return;await this[_0xedd54a(0xea)][_0xedd54a(0x101)](_0x485549);if(this['initializationPromise']!==_0x31c467)return;this[_0xedd54a(0x172)]=this['map']?.[_0xedd54a(0x155)]()??this[_0xedd54a(0x172)];}[_0x6c44e8(0x16a)](){const _0xcde2e3=_0x6c44e8;if(!this[_0xcde2e3(0x141)]||!this[_0xcde2e3(0x102)])return null;const _0x376037=window[_0xcde2e3(0x163)]||0x1,_0x15d344=this['renderedViewport'],_0x1bcd1a=_0x15d344?this[_0xcde2e3(0x141)][_0xcde2e3(0x140)]()[_0xcde2e3(0x149)]([_0x15d344[_0xcde2e3(0x15a)],_0x15d344['top']]):this['map'][_0xcde2e3(0x140)]();return{'canvasWidth':this[_0xcde2e3(0x102)][_0xcde2e3(0x133)],'canvasHeight':this[_0xcde2e3(0x102)]['height'],'cssWidth':this[_0xcde2e3(0x102)][_0xcde2e3(0x133)]/_0x376037,'cssHeight':this['canvas'][_0xcde2e3(0x156)]/_0x376037,'devicePixelRatio':_0x376037,'zoom':this[_0xcde2e3(0x141)][_0xcde2e3(0x155)](),'worldTopLeftX':_0x1bcd1a['x'],'worldTopLeftY':_0x1bcd1a['y']};}[_0x6c44e8(0x15f)]=_0x308bb5=>{const _0x9b0a5d=_0x6c44e8;if(!this[_0x9b0a5d(0x141)]||!this[_0x9b0a5d(0x102)]||!this[_0x9b0a5d(0x110)])return;const _0x125b77=this['map']['getZoomScale'](_0x308bb5['zoom'],this['renderedZoom']),_0x249299=_0x733758[_0x9b0a5d(0xf0)](this[_0x9b0a5d(0x141)][_0x9b0a5d(0x12c)]([this[_0x9b0a5d(0x110)][_0x9b0a5d(0x15a)],this[_0x9b0a5d(0x110)][_0x9b0a5d(0x154)]+this[_0x9b0a5d(0x110)][_0x9b0a5d(0x156)]]),this['map'][_0x9b0a5d(0x12c)]([this[_0x9b0a5d(0x110)]['left']+this['renderedViewport'][_0x9b0a5d(0x133)],this[_0x9b0a5d(0x110)][_0x9b0a5d(0x154)]])),_0x52f058=this['getZoomedBoundsTopLeft'](_0x249299,_0x308bb5['zoom'],_0x308bb5[_0x9b0a5d(0x11b)]);_0x733758[_0x9b0a5d(0x164)][_0x9b0a5d(0x108)](this['canvas'],_0x52f058,_0x125b77);};[_0x6c44e8(0x153)](_0x4d9983,_0x285756,_0x15ba17){const _0x5b607e=_0x6c44e8;if(!this['map'])return _0x733758[_0x5b607e(0x115)](0x0,0x0);const _0x19e1ca=this[_0x5b607e(0x141)];if(_0x19e1ca[_0x5b607e(0x111)])return _0x19e1ca[_0x5b607e(0x111)](_0x4d9983,_0x285756,_0x15ba17)[_0x5b607e(0xf4)]??_0x733758[_0x5b607e(0x115)](0x0,0x0);return this[_0x5b607e(0x141)][_0x5b607e(0x104)](_0x4d9983[_0x5b607e(0x12f)]());}['handleRenderError'](_0x471c64){const _0x1cfe07=_0x6c44e8;console['error'](_0x1cfe07(0x176),_0x471c64);}[_0x6c44e8(0x14f)](){const _0x3648b1=_0x6c44e8;if(this['colorRange'])return this['colorRange'];const _0x5cb0b5=this[_0x3648b1(0x105)][0x0],_0x3baad5=this[_0x3648b1(0x105)][this[_0x3648b1(0x105)][_0x3648b1(0x146)]-0x1];return{'minValue':_0x5cb0b5[_0x3648b1(0xf4)],'maxValue':_0x3baad5['max']};}['handleMouseMove']=_0xe4a93f=>{const _0x25a436=_0x6c44e8,_0x5e08fe=this['queryValueAtLatLng'](_0xe4a93f['latlng']);this[_0x25a436(0x152)](_0x5e08fe,_0xe4a93f),this[_0x25a436(0x103)]?.(_0x5e08fe),this[_0x25a436(0x10e)](_0x25a436(0x168),{'result':_0x5e08fe,'latlng':_0xe4a93f[_0x25a436(0x11d)],'originalEvent':_0xe4a93f[_0x25a436(0x174)]});};[_0x6c44e8(0x134)]=_0xc9cdb5=>{const _0x35cc29=_0x6c44e8,_0x4a5c13=this[_0x35cc29(0x161)](_0xc9cdb5[_0x35cc29(0x11d)]);this['onClick']?.(_0x4a5c13),this[_0x35cc29(0x10e)](_0x35cc29(0xf3),{'result':_0x4a5c13,'latlng':_0xc9cdb5['latlng'],'originalEvent':_0xc9cdb5[_0x35cc29(0x174)]});};['handleMouseOut']=()=>{const _0x592dcd=_0x6c44e8;this[_0x592dcd(0x169)]();};[_0x6c44e8(0xff)](){const _0x43eaf5=_0x6c44e8;return this['tooltipOptions']?.[_0x43eaf5(0x150)]===!![];}[_0x6c44e8(0x169)](){const _0x256251=_0x6c44e8;if(!this[_0x256251(0x116)])return;this[_0x256251(0x116)][_0x256251(0x138)]['display']=_0x256251(0x119);}[_0x6c44e8(0xfb)](){const _0x339a45=_0x6c44e8;if(!this[_0x339a45(0x141)]||!this['isTooltipEnabled']())return;const _0x2ad474=this[_0x339a45(0x141)][_0x339a45(0xe5)](),_0x3cd9a0=_0x733758[_0x339a45(0x164)][_0x339a45(0x16c)](_0x339a45(0x129),'raster-tooltip',_0x2ad474);_0x3cd9a0[_0x339a45(0x138)][_0x339a45(0x157)]='absolute',_0x3cd9a0[_0x339a45(0x138)][_0x339a45(0x16d)]=_0x339a45(0x12b),_0x3cd9a0[_0x339a45(0x138)][_0x339a45(0x14c)]='none',_0x3cd9a0[_0x339a45(0x138)][_0x339a45(0x10d)]='none',_0x3cd9a0[_0x339a45(0x138)]['padding']=_0x339a45(0x177),_0x3cd9a0['style'][_0x339a45(0x147)]=_0x339a45(0xfd),_0x3cd9a0[_0x339a45(0x138)]['lineHeight']=_0x339a45(0x113),_0x3cd9a0['style'][_0x339a45(0x13d)]='#fff',_0x3cd9a0[_0x339a45(0x138)][_0x339a45(0xe6)]=_0x339a45(0x15b),_0x3cd9a0['style'][_0x339a45(0x11e)]=_0x339a45(0x136),this['tooltipElement']=_0x3cd9a0;}['removeTooltipElement'](){const _0x2f3409=_0x6c44e8;this['tooltipElement']?.['remove'](),this[_0x2f3409(0x116)]=null;}[_0x6c44e8(0x128)](_0x93b9d8){const _0x64341f=_0x6c44e8;if(this[_0x64341f(0x166)]?.[_0x64341f(0xe7)])return this[_0x64341f(0x166)][_0x64341f(0xe7)](_0x93b9d8);return'X:\x20'+_0x93b9d8['x']+_0x64341f(0x170)+_0x93b9d8['y']+'\x0aValue:\x20'+_0x93b9d8['value'];}[_0x6c44e8(0x152)](_0x37ac2f,_0x28167d){const _0x487941=_0x6c44e8;if(!this[_0x487941(0x116)]||!this[_0x487941(0xff)]())return;this[_0x487941(0x116)][_0x487941(0x14b)]=this[_0x487941(0x128)](_0x37ac2f),this[_0x487941(0x116)][_0x487941(0x138)][_0x487941(0x10d)]='block';if(this['tooltipOptions']?.[_0x487941(0x157)]===_0x487941(0x120)){this[_0x487941(0x116)][_0x487941(0x138)][_0x487941(0x15a)]=_0x487941(0x137),this[_0x487941(0x116)][_0x487941(0x138)][_0x487941(0xee)]=_0x487941(0x137),this['tooltipElement'][_0x487941(0x138)][_0x487941(0x154)]='',this[_0x487941(0x116)]['style'][_0x487941(0x16f)]='';return;}const _0x4cfd5b=this[_0x487941(0x141)]?.[_0x487941(0xfe)](_0x28167d[_0x487941(0x174)]);if(!_0x4cfd5b)return;this[_0x487941(0x116)][_0x487941(0x138)][_0x487941(0x15a)]=_0x4cfd5b['x']+0xc+'px',this[_0x487941(0x116)][_0x487941(0x138)][_0x487941(0x154)]=_0x4cfd5b['y']+0xc+'px',this[_0x487941(0x116)][_0x487941(0x138)][_0x487941(0x16f)]='',this[_0x487941(0x116)][_0x487941(0x138)][_0x487941(0xee)]='';}}export const createRasterLeafletLayer=_0x412001=>{const _0x3e8b15=_0x6c44e8,_0x57d8a9=validateRasterGrid(_0x412001[_0x3e8b15(0x123)]),_0x38f7a0=normalizeColorStops(_0x412001['colorStops']),_0x367be4=createRasterLeafletRenderer(_0x412001['rendererType'],{'colorRange':_0x412001['colorRange'],'colorStops':_0x38f7a0,'grid':_0x57d8a9,'opacity':_0x412001['opacity'],'colorMode':_0x412001['colorMode'],'sampleMode':_0x412001[_0x3e8b15(0xeb)],'clip':_0x412001[_0x3e8b15(0xf5)]});return new RasterLeafletLayerImpl({'pane':_0x412001[_0x3e8b15(0x162)],'renderer':_0x367be4,'grid':_0x57d8a9,'colorRange':_0x412001[_0x3e8b15(0xf8)],'sampleMode':_0x412001['sampleMode'],'colorStops':_0x38f7a0,'onHover':_0x412001[_0x3e8b15(0x103)],'onClick':_0x412001[_0x3e8b15(0x178)],'tooltip':_0x412001[_0x3e8b15(0x171)],'clip':_0x412001[_0x3e8b15(0xf5)],'queryOutsideClip':_0x412001[_0x3e8b15(0x127)]});};