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 _0x136b(){const _0x49fdd4=['setTimeIndex','Native\x20volume\x20opacity\x20must\x20be\x20finite.\x20原生体积透明度必须是有限数。','depthTest','1491345KSJTcM','auto','setSource','screenSpaceError','loadController','abs','statistics','densityScale','show','\x20must\x20be\x20a\x20positive\x20finite\x20number.\x20','Cartesian3','onError','690KHDMMX','A\x20destroyed\x20native\x20Mars3D\x20volume\x20cannot\x20be\x20used.\x20已销毁的\x20Mars3D\x20原生体积不能继续使用。','createCustomShader','timeCount','21ApvHge','readyPromise','2250tpILcy','TRANSLUCENT','customShader','remove','primitive','cesium','UNLIT','4627RKznCk','6408216nVhtZq','colorStops','texturesByteLength','opacity','quality','scene','nearestSampling','source','76164yjeQfB','5117800NwBOky','4AAsFIy','colorMode','maxBounds','end','VoxelPrimitive','abort','\x20必须是正有限数。','smooth','CustomShaderTranslucencyMode','min','UniformType','setShow','stepSize','CustomShader','aborted','requestRender','primitives','replacePrimitive','max','assertAlive','opacityStops','184581bkFRnj','replaceCustomShader','start','updateBounds','update','destroyed','u_densityScale','LightingModel','updateShaderUniforms','verticalScale','map','shown','signal','destroy','performance','9YypaKS','isFinite','330346iuZsGq','FLOAT','timeIndex'];_0x136b=function(){return _0x49fdd4;};return _0x136b();}const _0x456ae8=_0xc1f7;(function(_0x20ffb0,_0xbd7d22){const _0x5407f2=_0xc1f7,_0x111c93=_0x20ffb0();while(!![]){try{const _0x308a07=-parseInt(_0x5407f2(0x1a0))/0x1+parseInt(_0x5407f2(0x1b1))/0x2*(parseInt(_0x5407f2(0x177))/0x3)+parseInt(_0x5407f2(0x18b))/0x4*(-parseInt(_0x5407f2(0x1b7))/0x5)+-parseInt(_0x5407f2(0x173))/0x6*(parseInt(_0x5407f2(0x180))/0x7)+parseInt(_0x5407f2(0x18a))/0x8*(-parseInt(_0x5407f2(0x1af))/0x9)+parseInt(_0x5407f2(0x179))/0xa*(parseInt(_0x5407f2(0x189))/0xb)+-parseInt(_0x5407f2(0x181))/0xc;if(_0x308a07===_0xbd7d22)break;else _0x111c93['push'](_0x111c93['shift']());}catch(_0x298513){_0x111c93['push'](_0x111c93['shift']());}}}(_0x136b,0xef9ff));import{createNativeVoxelFragmentShader}from'./nativeVoxelShader';import{createNativeVoxelProvider}from'./nativeVoxelProvider';function _0xc1f7(_0x534a5b,_0x49465a){const _0x136b4b=_0x136b();return _0xc1f7=function(_0xc1f73c,_0x1c9afb){_0xc1f73c=_0xc1f73c-0x168;let _0xef84ff=_0x136b4b[_0xc1f73c];return _0xef84ff;},_0xc1f7(_0x534a5b,_0x49465a);}import{loadNativeVoxelData}from'./voxelData';const getError=_0x183807=>_0x183807 instanceof Error?_0x183807:new Error(String(_0x183807)),getStepSize=_0x36e9a3=>{const _0x4fe8fb=_0xc1f7;if(_0x36e9a3===_0x4fe8fb(0x185))return 0.65;if(_0x36e9a3===_0x4fe8fb(0x1ae))return 1.8;if(_0x36e9a3===_0x4fe8fb(0x168))return 1.15;return 0x1;},validatePositive=(_0x36a9b0,_0x308908)=>{const _0x1e87cd=_0xc1f7;if(!(_0x36a9b0>0x0)||!Number['isFinite'](_0x36a9b0))throw new Error(_0x308908+_0x1e87cd(0x170)+_0x308908+_0x1e87cd(0x191));return _0x36a9b0;},clampOpacity=_0x214b2d=>{const _0x48cf89=_0xc1f7;if(!Number[_0x48cf89(0x1b0)](_0x214b2d))throw new Error(_0x48cf89(0x1b5));return Math[_0x48cf89(0x19d)](0x0,Math['min'](0x1,_0x214b2d));};export class Mars3dNativeVolumeRenderer{[_0x456ae8(0x178)];[_0x456ae8(0x1aa)];['cesium'];['onError'];['primitive']=null;[_0x456ae8(0x188)];[_0x456ae8(0x1b3)];[_0x456ae8(0x185)];[_0x456ae8(0x184)];[_0x456ae8(0x16e)];['verticalScale'];[_0x456ae8(0x182)];[_0x456ae8(0x19f)];[_0x456ae8(0x18c)];[_0x456ae8(0x1ab)];[_0x456ae8(0x1a5)]=![];['loadController']=null;constructor(_0x2e7fd2,_0x5d6804,_0x556915){const _0x57bf5b=_0x456ae8;this[_0x57bf5b(0x1aa)]=_0x2e7fd2,this[_0x57bf5b(0x17e)]=_0x5d6804,this[_0x57bf5b(0x172)]=_0x556915[_0x57bf5b(0x172)],this[_0x57bf5b(0x188)]=_0x556915['source'],this['timeIndex']=_0x556915[_0x57bf5b(0x1b3)]??0x0,this[_0x57bf5b(0x185)]=_0x556915[_0x57bf5b(0x185)]??'balanced',this[_0x57bf5b(0x184)]=clampOpacity(_0x556915['opacity']??0.3),this[_0x57bf5b(0x16e)]=validatePositive(_0x556915[_0x57bf5b(0x16e)]??0x64,'densityScale'),this[_0x57bf5b(0x1a9)]=validatePositive(_0x556915['verticalScale']??0x1,_0x57bf5b(0x1a9)),this['colorStops']=[..._0x556915[_0x57bf5b(0x182)]],this[_0x57bf5b(0x19f)]=[..._0x556915[_0x57bf5b(0x19f)]],this[_0x57bf5b(0x18c)]=_0x556915[_0x57bf5b(0x18c)]??_0x57bf5b(0x192),this['shown']=_0x556915[_0x57bf5b(0x16f)]??!![],this[_0x57bf5b(0x178)]=this[_0x57bf5b(0x19c)]();}get[_0x456ae8(0x16d)](){const _0x2c3054=_0x456ae8,_0x4d7c1e=this[_0x2c3054(0x17d)]?.[_0x2c3054(0x16d)];if(!_0x4d7c1e)return null;return{'texturesByteLength':_0x4d7c1e[_0x2c3054(0x183)]??0x0,'visited':_0x4d7c1e['visited']??0x0,'numberOfTilesWithContentReady':_0x4d7c1e['numberOfTilesWithContentReady']??0x0};}[_0x456ae8(0x196)](_0x13622b){const _0x3ff091=_0x456ae8;this[_0x3ff091(0x19e)](),this['shown']=_0x13622b;if(this[_0x3ff091(0x17d)])this['primitive'][_0x3ff091(0x16f)]=_0x13622b;this[_0x3ff091(0x1aa)]['scene'][_0x3ff091(0x19a)]();}[_0x456ae8(0x1a4)](_0xa6031a){const _0x3aa481=_0x456ae8;this[_0x3aa481(0x19e)]();if(_0xa6031a['quality']){this[_0x3aa481(0x185)]=_0xa6031a['quality'];if(this[_0x3aa481(0x17d)])this[_0x3aa481(0x17d)][_0x3aa481(0x197)]=getStepSize(this[_0x3aa481(0x185)]);}if(_0xa6031a[_0x3aa481(0x184)]!==undefined)this['opacity']=clampOpacity(_0xa6031a[_0x3aa481(0x184)]);if(_0xa6031a[_0x3aa481(0x16e)]!==undefined)this[_0x3aa481(0x16e)]=validatePositive(_0xa6031a[_0x3aa481(0x16e)],_0x3aa481(0x16e));_0xa6031a[_0x3aa481(0x1a9)]!==undefined&&(this[_0x3aa481(0x1a9)]=validatePositive(_0xa6031a[_0x3aa481(0x1a9)],_0x3aa481(0x1a9)),this[_0x3aa481(0x1a3)]());const _0x165d9e=_0xa6031a[_0x3aa481(0x182)]!==undefined||_0xa6031a[_0x3aa481(0x19f)]!==undefined||_0xa6031a[_0x3aa481(0x18c)]!==undefined;if(_0xa6031a[_0x3aa481(0x182)])this[_0x3aa481(0x182)]=[..._0xa6031a[_0x3aa481(0x182)]];if(_0xa6031a['opacityStops'])this[_0x3aa481(0x19f)]=[..._0xa6031a[_0x3aa481(0x19f)]];if(_0xa6031a[_0x3aa481(0x18c)])this[_0x3aa481(0x18c)]=_0xa6031a[_0x3aa481(0x18c)];if(_0x165d9e)this[_0x3aa481(0x1a1)]();this[_0x3aa481(0x1a8)](),this['map']['scene'][_0x3aa481(0x19a)]();}async[_0x456ae8(0x169)](_0x255e2c){const _0x4f9ff3=_0x456ae8;this[_0x4f9ff3(0x19e)](),this[_0x4f9ff3(0x188)]=_0x255e2c,this[_0x4f9ff3(0x1b3)]=Math['min'](this[_0x4f9ff3(0x1b3)],_0x255e2c['metadata'][_0x4f9ff3(0x176)]-0x1),await this[_0x4f9ff3(0x19c)]();}async[_0x456ae8(0x1b4)](_0x534683){const _0x55003b=_0x456ae8;this['assertAlive']();if(_0x534683===this[_0x55003b(0x1b3)])return;this[_0x55003b(0x1b3)]=_0x534683,await this[_0x55003b(0x19c)]();}[_0x456ae8(0x1ad)](){const _0x4e42c0=_0x456ae8;if(this['destroyed'])return;this[_0x4e42c0(0x1a5)]=!![],this[_0x4e42c0(0x16b)]?.[_0x4e42c0(0x190)](),this[_0x4e42c0(0x16b)]=null;if(this[_0x4e42c0(0x17d)])this['map'][_0x4e42c0(0x186)][_0x4e42c0(0x19b)][_0x4e42c0(0x17c)](this['primitive']);this['primitive']=null;}async[_0x456ae8(0x19c)](){const _0x580084=_0x456ae8;this['loadController']?.[_0x580084(0x190)]();const _0x57e509=new AbortController();this[_0x580084(0x16b)]=_0x57e509;try{const _0x116eb2=await loadNativeVoxelData(this[_0x580084(0x188)],this[_0x580084(0x1b3)],_0x57e509[_0x580084(0x1ac)]);if(this[_0x580084(0x1a5)]||_0x57e509[_0x580084(0x1ac)][_0x580084(0x199)])return;const _0xcfb03c=createNativeVoxelProvider(this[_0x580084(0x17e)],this[_0x580084(0x188)],_0x116eb2,this[_0x580084(0x1a9)]),_0x34f20e=this[_0x580084(0x175)](),_0x29f6be=new this[(_0x580084(0x17e))][(_0x580084(0x18f))]({'provider':_0xcfb03c,'customShader':_0x34f20e,'calculateStatistics':!![]});_0x29f6be[_0x580084(0x16f)]=this[_0x580084(0x1ab)],_0x29f6be[_0x580084(0x197)]=getStepSize(this['quality']),_0x29f6be[_0x580084(0x16a)]=0x8,_0x29f6be[_0x580084(0x1b6)]=!![],_0x29f6be[_0x580084(0x187)]=![];const _0x11e135=this[_0x580084(0x17d)];this['primitive']=this[_0x580084(0x1aa)][_0x580084(0x186)][_0x580084(0x19b)]['add'](_0x29f6be);if(_0x11e135)this['map'][_0x580084(0x186)]['primitives'][_0x580084(0x17c)](_0x11e135);this[_0x580084(0x1aa)][_0x580084(0x186)][_0x580084(0x19a)]();}catch(_0x4b1005){if(_0x57e509[_0x580084(0x1ac)][_0x580084(0x199)])return;const _0x3bbc38=getError(_0x4b1005);this['onError']?.(_0x3bbc38);throw _0x3bbc38;}finally{if(this[_0x580084(0x16b)]===_0x57e509)this['loadController']=null;}}['createCustomShader'](){const _0x171f14=_0x456ae8;return new this[(_0x171f14(0x17e))][(_0x171f14(0x198))]({'uniforms':{'u_opacity':{'type':this[_0x171f14(0x17e)][_0x171f14(0x195)][_0x171f14(0x1b2)],'value':this[_0x171f14(0x184)]},'u_densityScale':{'type':this[_0x171f14(0x17e)]['UniformType'][_0x171f14(0x1b2)],'value':this[_0x171f14(0x16e)]}},'lightingModel':this[_0x171f14(0x17e)][_0x171f14(0x1a7)][_0x171f14(0x17f)],'translucencyMode':this['cesium'][_0x171f14(0x193)][_0x171f14(0x17a)],'fragmentShaderText':createNativeVoxelFragmentShader(this[_0x171f14(0x182)],this['opacityStops'],this[_0x171f14(0x18c)])});}[_0x456ae8(0x1a1)](){const _0x960cda=_0x456ae8;if(!this['primitive'])return;const _0x3600de=this[_0x960cda(0x17d)][_0x960cda(0x17b)];this[_0x960cda(0x17d)][_0x960cda(0x17b)]=this[_0x960cda(0x175)](),_0x3600de['destroy']();}[_0x456ae8(0x1a8)](){const _0x159c17=_0x456ae8;this['primitive']?.['customShader']['setUniform']('u_opacity',this[_0x159c17(0x184)]),this['primitive']?.[_0x159c17(0x17b)]['setUniform'](_0x159c17(0x1a6),this['densityScale']);}[_0x456ae8(0x1a3)](){const _0x5a9aba=_0x456ae8;if(!this[_0x5a9aba(0x17d)])return;const {xAxis:_0x255b2d,yAxis:_0x17381a,zAxis:_0x36836a}=this[_0x5a9aba(0x188)]['metadata'],_0x14739d=Math['min'](_0x17381a[_0x5a9aba(0x1a2)],_0x17381a[_0x5a9aba(0x18e)]);this[_0x5a9aba(0x17d)]['minBounds']=new this['cesium']['Cartesian3'](Math[_0x5a9aba(0x194)](_0x255b2d[_0x5a9aba(0x1a2)],_0x255b2d[_0x5a9aba(0x18e)])*Math['PI']/0xb4,Math[_0x5a9aba(0x194)](_0x36836a['start'],_0x36836a[_0x5a9aba(0x18e)])*Math['PI']/0xb4,_0x14739d),this['primitive'][_0x5a9aba(0x18d)]=new this[(_0x5a9aba(0x17e))][(_0x5a9aba(0x171))](Math[_0x5a9aba(0x19d)](_0x255b2d['start'],_0x255b2d[_0x5a9aba(0x18e)])*Math['PI']/0xb4,Math[_0x5a9aba(0x19d)](_0x36836a[_0x5a9aba(0x1a2)],_0x36836a[_0x5a9aba(0x18e)])*Math['PI']/0xb4,_0x14739d+Math[_0x5a9aba(0x16c)](_0x17381a[_0x5a9aba(0x18e)]-_0x17381a['start'])*this['verticalScale']);}['assertAlive'](){const _0x5f3c21=_0x456ae8;if(this[_0x5f3c21(0x1a5)])throw new Error(_0x5f3c21(0x174));}}
1
+ const _0x215af0=_0x4276;function _0x4276(_0x265447,_0x2712e1){const _0x5b350c=_0x5b35();return _0x4276=function(_0x4276e2,_0x3b47cf){_0x4276e2=_0x4276e2-0xb8;let _0x4bc1fd=_0x5b350c[_0x4276e2];return _0x4bc1fd;},_0x4276(_0x265447,_0x2712e1);}(function(_0x517d9c,_0x12bb01){const _0x3ba09a=_0x4276,_0x5237a7=_0x517d9c();while(!![]){try{const _0xe014aa=parseInt(_0x3ba09a(0xfa))/0x1*(parseInt(_0x3ba09a(0xfe))/0x2)+-parseInt(_0x3ba09a(0xe8))/0x3+-parseInt(_0x3ba09a(0xeb))/0x4*(parseInt(_0x3ba09a(0xca))/0x5)+-parseInt(_0x3ba09a(0xe0))/0x6*(parseInt(_0x3ba09a(0xc2))/0x7)+-parseInt(_0x3ba09a(0xd0))/0x8+parseInt(_0x3ba09a(0xf2))/0x9+parseInt(_0x3ba09a(0xe4))/0xa*(parseInt(_0x3ba09a(0xec))/0xb);if(_0xe014aa===_0x12bb01)break;else _0x5237a7['push'](_0x5237a7['shift']());}catch(_0x41806b){_0x5237a7['push'](_0x5237a7['shift']());}}}(_0x5b35,0x32d42));import{createNativeVoxelFragmentShader}from'./nativeVoxelShader';import{createNativeVoxelProvider}from'./nativeVoxelProvider';import{loadNativeVoxelData}from'./voxelData';function _0x5b35(){const _0x43ce39=['Cartesian3','setTimeIndex','customShader','show','requestRender','end','cesium','1AAMscV','source','colorMode','visited','770018IlbHBY','update','map','LightingModel','aborted','minBounds','opacityStops','\x20必须是正有限数。','UniformType','quality','updateBounds','performance','balanced','TRANSLUCENT','1149631KQABVv','u_densityScale','createCustomShader','auto','readyPromise','smooth','onError','isFinite','110mLzxSQ','updateShaderUniforms','destroy','setUniform','abort','shown','2099752mcSoQB','opacity','primitive','A\x20destroyed\x20native\x20Mars3D\x20volume\x20cannot\x20be\x20used.\x20已销毁的\x20Mars3D\x20原生体积不能继续使用。','numberOfTilesWithContentReady','timeIndex','Native\x20volume\x20opacity\x20must\x20be\x20finite.\x20原生体积透明度必须是有限数。','replaceCustomShader','signal','statistics','UNLIT','assertAlive','max','\x20must\x20be\x20a\x20positive\x20finite\x20number.\x20','destroyed','scene','12xvrAaq','loadController','replacePrimitive','verticalScale','20TTBjBP','nearestSampling','densityScale','colorStops','450072wlkjzo','stepSize','min','74988VkgqPy','5098313bimfda','start','remove','FLOAT','CustomShader','primitives','446508nHdclV'];_0x5b35=function(){return _0x43ce39;};return _0x5b35();}const getError=_0x2c8af2=>_0x2c8af2 instanceof Error?_0x2c8af2:new Error(String(_0x2c8af2)),getStepSize=_0x4ec531=>{const _0x5f5c9e=_0x4276;if(_0x4ec531===_0x5f5c9e(0xbd))return 0.65;if(_0x4ec531===_0x5f5c9e(0xbf))return 1.8;if(_0x4ec531===_0x5f5c9e(0xc5))return 1.15;return 0x1;},validatePositive=(_0xeeb2d4,_0x1d952f)=>{const _0x1bc2ef=_0x4276;if(!(_0xeeb2d4>0x0)||!Number['isFinite'](_0xeeb2d4))throw new Error(_0x1d952f+_0x1bc2ef(0xdd)+_0x1d952f+_0x1bc2ef(0xbb));return _0xeeb2d4;},clampOpacity=_0x5b7300=>{const _0x1ac69d=_0x4276;if(!Number[_0x1ac69d(0xc9)](_0x5b7300))throw new Error(_0x1ac69d(0xd6));return Math[_0x1ac69d(0xdc)](0x0,Math[_0x1ac69d(0xea)](0x1,_0x5b7300));};export class Mars3dNativeVolumeRenderer{[_0x215af0(0xc6)];['map'];['cesium'];['onError'];['primitive']=null;['source'];[_0x215af0(0xd5)];['quality'];[_0x215af0(0xd1)];[_0x215af0(0xe6)];['verticalScale'];[_0x215af0(0xe7)];[_0x215af0(0xba)];[_0x215af0(0xfc)];[_0x215af0(0xcf)];[_0x215af0(0xde)]=![];[_0x215af0(0xe1)]=null;constructor(_0x553f4a,_0x30aa32,_0x3f32d8){const _0xd59512=_0x215af0;this[_0xd59512(0x100)]=_0x553f4a,this['cesium']=_0x30aa32,this[_0xd59512(0xc8)]=_0x3f32d8[_0xd59512(0xc8)],this['source']=_0x3f32d8['source'],this[_0xd59512(0xd5)]=_0x3f32d8[_0xd59512(0xd5)]??0x0,this['quality']=_0x3f32d8['quality']??_0xd59512(0xc0),this[_0xd59512(0xd1)]=clampOpacity(_0x3f32d8[_0xd59512(0xd1)]??0.3),this['densityScale']=validatePositive(_0x3f32d8[_0xd59512(0xe6)]??0x64,_0xd59512(0xe6)),this[_0xd59512(0xe3)]=validatePositive(_0x3f32d8[_0xd59512(0xe3)]??0x1,'verticalScale'),this['colorStops']=[..._0x3f32d8[_0xd59512(0xe7)]],this[_0xd59512(0xba)]=[..._0x3f32d8[_0xd59512(0xba)]],this[_0xd59512(0xfc)]=_0x3f32d8[_0xd59512(0xfc)]??_0xd59512(0xc7),this[_0xd59512(0xcf)]=_0x3f32d8['show']??!![],this[_0xd59512(0xc6)]=this[_0xd59512(0xe2)]();}get['statistics'](){const _0x257b67=_0x215af0,_0x10e427=this['primitive']?.[_0x257b67(0xd9)];if(!_0x10e427)return null;return{'texturesByteLength':_0x10e427['texturesByteLength']??0x0,'visited':_0x10e427[_0x257b67(0xfd)]??0x0,'numberOfTilesWithContentReady':_0x10e427[_0x257b67(0xd4)]??0x0};}['setShow'](_0x474fd8){const _0x2afe2a=_0x215af0;this['assertAlive'](),this['shown']=_0x474fd8;if(this[_0x2afe2a(0xd2)])this['primitive']['show']=_0x474fd8;this[_0x2afe2a(0x100)][_0x2afe2a(0xdf)][_0x2afe2a(0xf7)]();}[_0x215af0(0xff)](_0x245546){const _0x1104d=_0x215af0;this[_0x1104d(0xdb)]();if(_0x245546[_0x1104d(0xbd)]){this[_0x1104d(0xbd)]=_0x245546[_0x1104d(0xbd)];if(this[_0x1104d(0xd2)])this[_0x1104d(0xd2)][_0x1104d(0xe9)]=getStepSize(this[_0x1104d(0xbd)]);}if(_0x245546[_0x1104d(0xd1)]!==undefined)this[_0x1104d(0xd1)]=clampOpacity(_0x245546[_0x1104d(0xd1)]);if(_0x245546[_0x1104d(0xe6)]!==undefined)this[_0x1104d(0xe6)]=validatePositive(_0x245546[_0x1104d(0xe6)],_0x1104d(0xe6));_0x245546['verticalScale']!==undefined&&(this[_0x1104d(0xe3)]=validatePositive(_0x245546['verticalScale'],'verticalScale'),this[_0x1104d(0xbe)]());const _0x4f25d9=_0x245546['colorStops']!==undefined||_0x245546[_0x1104d(0xba)]!==undefined||_0x245546[_0x1104d(0xfc)]!==undefined;if(_0x245546[_0x1104d(0xe7)])this[_0x1104d(0xe7)]=[..._0x245546[_0x1104d(0xe7)]];if(_0x245546[_0x1104d(0xba)])this['opacityStops']=[..._0x245546['opacityStops']];if(_0x245546[_0x1104d(0xfc)])this[_0x1104d(0xfc)]=_0x245546[_0x1104d(0xfc)];if(_0x4f25d9)this[_0x1104d(0xd7)]();this[_0x1104d(0xcb)](),this[_0x1104d(0x100)][_0x1104d(0xdf)][_0x1104d(0xf7)]();}async['setSource'](_0x4a2d1b){const _0x6fd355=_0x215af0;this[_0x6fd355(0xdb)](),this[_0x6fd355(0xfb)]=_0x4a2d1b,this['timeIndex']=Math[_0x6fd355(0xea)](this[_0x6fd355(0xd5)],_0x4a2d1b['metadata']['timeCount']-0x1),await this['replacePrimitive']();}async[_0x215af0(0xf4)](_0x4e76f9){const _0x3e5240=_0x215af0;this['assertAlive']();if(_0x4e76f9===this[_0x3e5240(0xd5)])return;this[_0x3e5240(0xd5)]=_0x4e76f9,await this[_0x3e5240(0xe2)]();}[_0x215af0(0xcc)](){const _0x5d5fbd=_0x215af0;if(this[_0x5d5fbd(0xde)])return;this[_0x5d5fbd(0xde)]=!![],this[_0x5d5fbd(0xe1)]?.[_0x5d5fbd(0xce)](),this[_0x5d5fbd(0xe1)]=null;if(this[_0x5d5fbd(0xd2)])this[_0x5d5fbd(0x100)][_0x5d5fbd(0xdf)][_0x5d5fbd(0xf1)][_0x5d5fbd(0xee)](this[_0x5d5fbd(0xd2)]);this[_0x5d5fbd(0xd2)]=null;}async[_0x215af0(0xe2)](){const _0x2225c2=_0x215af0;this[_0x2225c2(0xe1)]?.['abort']();const _0x17ae46=new AbortController();this['loadController']=_0x17ae46;try{const _0x1cee61=await loadNativeVoxelData(this[_0x2225c2(0xfb)],this[_0x2225c2(0xd5)],_0x17ae46[_0x2225c2(0xd8)]);if(this['destroyed']||_0x17ae46[_0x2225c2(0xd8)][_0x2225c2(0xb8)])return;const _0x264bbf=createNativeVoxelProvider(this[_0x2225c2(0xf9)],this[_0x2225c2(0xfb)],_0x1cee61,this[_0x2225c2(0xe3)]),_0x46933f=this[_0x2225c2(0xc4)](),_0x3f17a8=new this[(_0x2225c2(0xf9))]['VoxelPrimitive']({'provider':_0x264bbf,'customShader':_0x46933f,'calculateStatistics':!![]});_0x3f17a8[_0x2225c2(0xf6)]=this[_0x2225c2(0xcf)],_0x3f17a8['stepSize']=getStepSize(this[_0x2225c2(0xbd)]),_0x3f17a8['screenSpaceError']=0x8,_0x3f17a8['depthTest']=!![],_0x3f17a8[_0x2225c2(0xe5)]=![];const _0x147954=this['primitive'];this[_0x2225c2(0xd2)]=this[_0x2225c2(0x100)][_0x2225c2(0xdf)][_0x2225c2(0xf1)]['add'](_0x3f17a8);if(_0x147954)this[_0x2225c2(0x100)]['scene'][_0x2225c2(0xf1)]['remove'](_0x147954);this['map'][_0x2225c2(0xdf)][_0x2225c2(0xf7)]();}catch(_0x3aeeb6){if(_0x17ae46['signal'][_0x2225c2(0xb8)])return;const _0x452251=getError(_0x3aeeb6);this[_0x2225c2(0xc8)]?.(_0x452251);throw _0x452251;}finally{if(this[_0x2225c2(0xe1)]===_0x17ae46)this[_0x2225c2(0xe1)]=null;}}[_0x215af0(0xc4)](){const _0x5e34d6=_0x215af0;return new this[(_0x5e34d6(0xf9))][(_0x5e34d6(0xf0))]({'uniforms':{'u_opacity':{'type':this[_0x5e34d6(0xf9)][_0x5e34d6(0xbc)][_0x5e34d6(0xef)],'value':this['opacity']},'u_densityScale':{'type':this['cesium'][_0x5e34d6(0xbc)][_0x5e34d6(0xef)],'value':this[_0x5e34d6(0xe6)]}},'lightingModel':this[_0x5e34d6(0xf9)][_0x5e34d6(0x101)][_0x5e34d6(0xda)],'translucencyMode':this[_0x5e34d6(0xf9)]['CustomShaderTranslucencyMode'][_0x5e34d6(0xc1)],'fragmentShaderText':createNativeVoxelFragmentShader(this[_0x5e34d6(0xe7)],this['opacityStops'],this[_0x5e34d6(0xfc)])});}[_0x215af0(0xd7)](){const _0x390ccd=_0x215af0;if(!this[_0x390ccd(0xd2)])return;const _0x4e0acd=this[_0x390ccd(0xd2)][_0x390ccd(0xf5)];this[_0x390ccd(0xd2)][_0x390ccd(0xf5)]=this['createCustomShader'](),_0x4e0acd['destroy']();}[_0x215af0(0xcb)](){const _0x2d9d5b=_0x215af0;this[_0x2d9d5b(0xd2)]?.[_0x2d9d5b(0xf5)][_0x2d9d5b(0xcd)]('u_opacity',this[_0x2d9d5b(0xd1)]),this['primitive']?.[_0x2d9d5b(0xf5)][_0x2d9d5b(0xcd)](_0x2d9d5b(0xc3),this[_0x2d9d5b(0xe6)]);}[_0x215af0(0xbe)](){const _0x4374c5=_0x215af0;if(!this[_0x4374c5(0xd2)])return;const {xAxis:_0x480edf,yAxis:_0x542ee7,zAxis:_0x550184}=this[_0x4374c5(0xfb)]['metadata'],_0x1f25fe=Math[_0x4374c5(0xea)](_0x542ee7[_0x4374c5(0xed)],_0x542ee7['end']);this[_0x4374c5(0xd2)][_0x4374c5(0xb9)]=new this['cesium'][(_0x4374c5(0xf3))](Math[_0x4374c5(0xea)](_0x480edf['start'],_0x480edf[_0x4374c5(0xf8)])*Math['PI']/0xb4,Math['min'](_0x550184['start'],_0x550184[_0x4374c5(0xf8)])*Math['PI']/0xb4,_0x1f25fe),this[_0x4374c5(0xd2)]['maxBounds']=new this[(_0x4374c5(0xf9))]['Cartesian3'](Math['max'](_0x480edf['start'],_0x480edf[_0x4374c5(0xf8)])*Math['PI']/0xb4,Math[_0x4374c5(0xdc)](_0x550184[_0x4374c5(0xed)],_0x550184[_0x4374c5(0xf8)])*Math['PI']/0xb4,_0x1f25fe+Math['abs'](_0x542ee7[_0x4374c5(0xf8)]-_0x542ee7[_0x4374c5(0xed)])*this['verticalScale']);}[_0x215af0(0xdb)](){const _0xb877de=_0x215af0;if(this[_0xb877de(0xde)])throw new Error(_0xb877de(0xd3));}}
@@ -1 +1 @@
1
- function _0x1a0b(_0x43b289,_0x3e1df3){const _0x57151e=_0x5715();return _0x1a0b=function(_0x1a0b4a,_0x28ce65){_0x1a0b4a=_0x1a0b4a-0xa6;let _0x2a290d=_0x57151e[_0x1a0b4a];return _0x2a290d;},_0x1a0b(_0x43b289,_0x3e1df3);}const _0xb5a9bf=_0x1a0b;(function(_0x142298,_0x456d26){const _0x57599a=_0x1a0b,_0x41827d=_0x142298();while(!![]){try{const _0x4dbb4b=parseInt(_0x57599a(0xf6))/0x1+-parseInt(_0x57599a(0xab))/0x2+parseInt(_0x57599a(0xed))/0x3+-parseInt(_0x57599a(0xce))/0x4+parseInt(_0x57599a(0xa7))/0x5*(-parseInt(_0x57599a(0xb3))/0x6)+parseInt(_0x57599a(0xd4))/0x7+-parseInt(_0x57599a(0xa6))/0x8;if(_0x4dbb4b===_0x456d26)break;else _0x41827d['push'](_0x41827d['shift']());}catch(_0x51f781){_0x41827d['push'](_0x41827d['shift']());}}}(_0x5715,0xe4aa3));import{LiveUpdateScheduler}from'./liveUpdateScheduler';function _0x5715(){const _0x3238f1=['destroyed','Math','Material','uniforms','12894476oBhvgq','scene','sync','Cartesian3','MaterialSupport','dirtySliceIds','Rectangle','entries','source','remove','pending','createAltitudeGeometry','map','schedule','removeListener','slices','getContext','destroy','metadata','rebuild','min','get','vertexFormat','postRender','has','5379378GBvJmQ','RectangleGeometry','VERTEX_FORMAT','start','keys','Primitive','verticalScale','shown','visible','1864768cIdyVs','removePending','createColor','delete','cesium','17733064sBCBeN','5nSVCml','EllipsoidSurfaceAppearance','createElement','canvas','782824MevvQM','zAxis','filter','Image','getAxis','replace','end','WallGeometry','11171526eOIUPB','TEXTURED','createRenderState','rebuildScheduler','data','fromRadians','primitives','yAxis','pixels','position','cancel','add','requestRender','setShow','values','primitive','createWallGeometry','MaterialAppearance','max','abs','Color','width','set','show','state','height','axis','373540EOQRxG','toRadians'];_0x5715=function(){return _0x3238f1;};return _0x5715();}import{createNativeAxisSliceImage,nativeAxisPositionToIndex}from'./nativeSliceAtlas';export class NativeAxisSliceRenderer{[_0xb5a9bf(0xe0)];[_0xb5a9bf(0xfa)];[_0xb5a9bf(0xdb)]=new Map();[_0xb5a9bf(0xde)]=new Map();[_0xb5a9bf(0xd9)]=new Set();[_0xb5a9bf(0xb6)];[_0xb5a9bf(0xcb)]=null;[_0xb5a9bf(0xf4)]=!![];[_0xb5a9bf(0xd0)]=![];constructor(_0x9c7aab,_0x502696){const _0x52c37b=_0xb5a9bf;this[_0x52c37b(0xe0)]=_0x9c7aab,this[_0x52c37b(0xfa)]=_0x502696,this[_0x52c37b(0xb6)]=new LiveUpdateScheduler(()=>this[_0x52c37b(0xe7)](),0x3c);}[_0xb5a9bf(0xd6)](_0x256c3b,_0x30b5f4=![]){const _0x172486=_0xb5a9bf;if(this[_0x172486(0xd0)])return;const _0x3c53c2=new Map(this[_0x172486(0xcb)]?.[_0x172486(0xe3)][_0x172486(0xe0)](_0xccd78c=>[_0xccd78c['id'],_0xccd78c])??[]);for(const _0x242e75 of _0x256c3b[_0x172486(0xe3)]){const _0x3a3e1d=_0x3c53c2[_0x172486(0xe9)](_0x242e75['id']);if(!_0x3a3e1d||_0x3a3e1d[_0x172486(0xcd)]!==_0x242e75[_0x172486(0xcd)]||_0x3a3e1d['position']!==_0x242e75['position']||_0x3a3e1d['visible']!==_0x242e75[_0x172486(0xf5)])this[_0x172486(0xd9)][_0x172486(0xbe)](_0x242e75['id']);}this['state']=_0x256c3b;if(_0x30b5f4){for(const _0x309713 of _0x256c3b[_0x172486(0xe3)])this[_0x172486(0xd9)][_0x172486(0xbe)](_0x309713['id']);this[_0x172486(0xb6)]['cancel'](),this[_0x172486(0xe7)]();}else this[_0x172486(0xb6)][_0x172486(0xe1)]();}[_0xb5a9bf(0xc0)](_0x416ff4){const _0x367b23=_0xb5a9bf;this[_0x367b23(0xf4)]=_0x416ff4;for(const _0x33a965 of this[_0x367b23(0xdb)][_0x367b23(0xc1)]())_0x33a965[_0x367b23(0xc2)]['show']=_0x416ff4;this[_0x367b23(0xe0)][_0x367b23(0xd5)]['requestRender']();}[_0xb5a9bf(0xe5)](){const _0x50b3ab=_0xb5a9bf;if(this[_0x50b3ab(0xd0)])return;this[_0x50b3ab(0xd0)]=!![],this[_0x50b3ab(0xb6)][_0x50b3ab(0xbd)]();for(const _0x3ac40c of[...this['entries'][_0x50b3ab(0xf1)](),...this[_0x50b3ab(0xde)][_0x50b3ab(0xf1)]()])this[_0x50b3ab(0xdd)](_0x3ac40c);this[_0x50b3ab(0xcb)]=null;}['rebuild'](){const _0x79f7bd=_0xb5a9bf,_0x3eb69f=this[_0x79f7bd(0xcb)];if(!_0x3eb69f||this['destroyed'])return;const _0x4c4af2=new Set(_0x3eb69f[_0x79f7bd(0xe3)][_0x79f7bd(0xad)](_0x4cec27=>_0x4cec27[_0x79f7bd(0xf5)])['map'](_0x1305c1=>_0x1305c1['id']));for(const _0x17c335 of new Set([...this[_0x79f7bd(0xdb)]['keys'](),...this['pending'][_0x79f7bd(0xf1)](),...this[_0x79f7bd(0xd9)]])){if(_0x4c4af2['has'](_0x17c335))continue;this[_0x79f7bd(0xdd)](_0x17c335),this[_0x79f7bd(0xd9)]['delete'](_0x17c335);}for(const _0x46fbcf of _0x3eb69f[_0x79f7bd(0xe3)]){if(!_0x46fbcf[_0x79f7bd(0xf5)])continue;if(this[_0x79f7bd(0xd9)][_0x79f7bd(0xec)](_0x46fbcf['id'])||!this[_0x79f7bd(0xdb)][_0x79f7bd(0xec)](_0x46fbcf['id'])&&!this[_0x79f7bd(0xde)][_0x79f7bd(0xec)](_0x46fbcf['id']))this['replace'](_0x46fbcf,_0x3eb69f);this[_0x79f7bd(0xd9)][_0x79f7bd(0xf9)](_0x46fbcf['id']);}this['map'][_0x79f7bd(0xd5)]['requestRender']();}[_0xb5a9bf(0xb0)](_0x26d8a0,_0x155d37){const _0x1c1d6c=_0xb5a9bf;this['removePending'](_0x26d8a0['id']);const _0x47e4cf=this[_0x1c1d6c(0xdb)][_0x1c1d6c(0xe9)](_0x26d8a0['id']),_0x2fc652=createNativeAxisSliceImage(_0x155d37[_0x1c1d6c(0xb7)],_0x26d8a0['axis'],nativeAxisPositionToIndex(this[_0x1c1d6c(0xaf)](_0x155d37[_0x1c1d6c(0xdc)],_0x26d8a0[_0x1c1d6c(0xcd)]),_0x26d8a0[_0x1c1d6c(0xbc)]),_0x155d37),_0x4da3b5=document[_0x1c1d6c(0xa9)](_0x1c1d6c(0xaa));_0x4da3b5[_0x1c1d6c(0xc8)]=_0x2fc652['width'],_0x4da3b5[_0x1c1d6c(0xcc)]=_0x2fc652[_0x1c1d6c(0xcc)];const _0x2c757e=_0x4da3b5[_0x1c1d6c(0xe4)]('2d');if(!_0x2c757e)throw new Error('Native\x20axis\x20slice\x20requires\x20a\x202D\x20canvas\x20context.\x20原生轴切片需要\x202D\x20画布上下文。');_0x2c757e['putImageData'](new ImageData(new Uint8ClampedArray(_0x2fc652[_0x1c1d6c(0xbb)]),_0x2fc652[_0x1c1d6c(0xc8)],_0x2fc652['height']),0x0,0x0);const _0x20fe0a=new this[(_0x1c1d6c(0xfa))][(_0x1c1d6c(0xd2))]({'fabric':{'type':_0x1c1d6c(0xae),'uniforms':{'image':_0x4da3b5,'color':this[_0x1c1d6c(0xf8)](_0x47e4cf?0x0:0x1)}}}),_0x2eaac3=_0x26d8a0[_0x1c1d6c(0xcd)]==='y'?this['createAltitudeGeometry'](_0x155d37[_0x1c1d6c(0xdc)],_0x26d8a0['position'],_0x155d37[_0x1c1d6c(0xf3)]):this[_0x1c1d6c(0xc3)](_0x155d37[_0x1c1d6c(0xdc)],_0x26d8a0,_0x155d37[_0x1c1d6c(0xf3)]),_0xc393b5=_0x26d8a0['axis']==='y'?new this['cesium']['EllipsoidSurfaceAppearance']({'material':_0x20fe0a,'aboveGround':!![],'faceForward':!![],'flat':!![],'translucent':!![],'renderState':this['createRenderState']()}):new this[(_0x1c1d6c(0xfa))][(_0x1c1d6c(0xc4))]({'material':_0x20fe0a,'materialSupport':this[_0x1c1d6c(0xfa)]['MaterialAppearance'][_0x1c1d6c(0xd8)]['TEXTURED'],'faceForward':!![],'flat':!![],'translucent':!![],'closed':![],'renderState':this[_0x1c1d6c(0xb5)]()}),_0x26c3d4=new this['cesium'][(_0x1c1d6c(0xf2))]({'geometryInstances':new this[(_0x1c1d6c(0xfa))]['GeometryInstance']({'geometry':_0x2eaac3}),'appearance':_0xc393b5,'asynchronous':![],'allowPicking':![],'releaseGeometryInstances':!![],'compressVertices':!![]});_0x26c3d4[_0x1c1d6c(0xca)]=_0x47e4cf?!![]:this[_0x1c1d6c(0xf4)];const _0x56f48f=this[_0x1c1d6c(0xe0)]['scene'][_0x1c1d6c(0xb9)][_0x1c1d6c(0xbe)](_0x26c3d4);if(!_0x47e4cf){this[_0x1c1d6c(0xdb)][_0x1c1d6c(0xc9)](_0x26d8a0['id'],{'primitive':_0x56f48f,'material':_0x20fe0a});return;}const _0x550d6a={'primitive':_0x56f48f,'material':_0x20fe0a},_0xef3565=this[_0x1c1d6c(0xe0)][_0x1c1d6c(0xd5)][_0x1c1d6c(0xeb)]['addEventListener'](()=>{const _0x3f3cf8=_0x1c1d6c;if(!_0x56f48f['ready']||this[_0x3f3cf8(0xde)][_0x3f3cf8(0xe9)](_0x26d8a0['id'])!==_0x550d6a)return;_0x550d6a['removeListener']?.(),_0x20fe0a[_0x3f3cf8(0xd3)]['color']=this['createColor'](0x1),_0x56f48f[_0x3f3cf8(0xca)]=this[_0x3f3cf8(0xf4)],_0x47e4cf['primitive'][_0x3f3cf8(0xca)]=![],this[_0x3f3cf8(0xe0)][_0x3f3cf8(0xd5)][_0x3f3cf8(0xb9)]['remove'](_0x47e4cf[_0x3f3cf8(0xc2)]),this[_0x3f3cf8(0xdb)][_0x3f3cf8(0xc9)](_0x26d8a0['id'],{'primitive':_0x56f48f,'material':_0x20fe0a}),this[_0x3f3cf8(0xde)]['delete'](_0x26d8a0['id']),this[_0x3f3cf8(0xe0)][_0x3f3cf8(0xd5)][_0x3f3cf8(0xbf)]();});if(_0xef3565)_0x550d6a[_0x1c1d6c(0xe2)]=_0xef3565;this['pending'][_0x1c1d6c(0xc9)](_0x26d8a0['id'],_0x550d6a);}[_0xb5a9bf(0xdf)](_0x54a421,_0x2d8d56,_0xe111ef){const _0x40eacd=_0xb5a9bf,{xAxis:_0x5ba6b7,yAxis:_0x1e9dfe,zAxis:_0x5707dc}=_0x54a421['metadata'],_0x1d7ae6=Math['min'](_0x1e9dfe[_0x40eacd(0xf0)],_0x1e9dfe[_0x40eacd(0xb1)]),_0x2dcfc3=_0x1d7ae6+(_0x2d8d56-_0x1d7ae6)*_0xe111ef;return new this[(_0x40eacd(0xfa))][(_0x40eacd(0xee))]({'rectangle':this[_0x40eacd(0xfa)][_0x40eacd(0xda)]['fromDegrees'](Math[_0x40eacd(0xe8)](_0x5ba6b7['start'],_0x5ba6b7[_0x40eacd(0xb1)]),Math[_0x40eacd(0xe8)](_0x5707dc['start'],_0x5707dc[_0x40eacd(0xb1)]),Math[_0x40eacd(0xc5)](_0x5ba6b7[_0x40eacd(0xf0)],_0x5ba6b7['end']),Math[_0x40eacd(0xc5)](_0x5707dc[_0x40eacd(0xf0)],_0x5707dc[_0x40eacd(0xb1)])),'height':_0x2dcfc3,'granularity':this[_0x40eacd(0xfa)][_0x40eacd(0xd1)][_0x40eacd(0xcf)](0.5),'vertexFormat':this[_0x40eacd(0xfa)][_0x40eacd(0xa8)][_0x40eacd(0xef)]});}['createWallGeometry'](_0x3b714a,_0x5a7400,_0x35d690){const _0xbbc9f9=_0xb5a9bf,{xAxis:_0x38a8f8,yAxis:_0x41c844,zAxis:_0x11b4ad}=_0x3b714a[_0xbbc9f9(0xe6)],_0x65ac67=Math['min'](_0x38a8f8[_0xbbc9f9(0xf0)],_0x38a8f8[_0xbbc9f9(0xb1)]),_0x30ad3c=Math['max'](_0x38a8f8[_0xbbc9f9(0xf0)],_0x38a8f8[_0xbbc9f9(0xb1)]),_0x38a44b=Math['min'](_0x11b4ad[_0xbbc9f9(0xf0)],_0x11b4ad[_0xbbc9f9(0xb1)]),_0x788375=Math[_0xbbc9f9(0xc5)](_0x11b4ad[_0xbbc9f9(0xf0)],_0x11b4ad['end']),_0x4a0c67=_0x5a7400[_0xbbc9f9(0xcd)]==='x'?[this['cesium'][_0xbbc9f9(0xd7)]['fromRadians'](this[_0xbbc9f9(0xfa)][_0xbbc9f9(0xd1)]['toRadians'](_0x5a7400['position']),this[_0xbbc9f9(0xfa)][_0xbbc9f9(0xd1)][_0xbbc9f9(0xcf)](_0x38a44b)),this['cesium'][_0xbbc9f9(0xd7)]['fromRadians'](this[_0xbbc9f9(0xfa)]['Math']['toRadians'](_0x5a7400[_0xbbc9f9(0xbc)]),this[_0xbbc9f9(0xfa)][_0xbbc9f9(0xd1)][_0xbbc9f9(0xcf)](_0x788375))]:[this[_0xbbc9f9(0xfa)][_0xbbc9f9(0xd7)]['fromRadians'](this[_0xbbc9f9(0xfa)][_0xbbc9f9(0xd1)][_0xbbc9f9(0xcf)](_0x65ac67),this[_0xbbc9f9(0xfa)][_0xbbc9f9(0xd1)][_0xbbc9f9(0xcf)](_0x5a7400['position'])),this[_0xbbc9f9(0xfa)]['Cartesian3'][_0xbbc9f9(0xb8)](this[_0xbbc9f9(0xfa)][_0xbbc9f9(0xd1)][_0xbbc9f9(0xcf)](_0x30ad3c),this[_0xbbc9f9(0xfa)][_0xbbc9f9(0xd1)]['toRadians'](_0x5a7400[_0xbbc9f9(0xbc)]))],_0x2cd6bc=Math[_0xbbc9f9(0xe8)](_0x41c844[_0xbbc9f9(0xf0)],_0x41c844[_0xbbc9f9(0xb1)]);return this['cesium'][_0xbbc9f9(0xb2)]['fromConstantHeights']({'positions':_0x4a0c67,'minimumHeight':_0x2cd6bc,'maximumHeight':_0x2cd6bc+Math[_0xbbc9f9(0xc6)](_0x41c844['end']-_0x41c844[_0xbbc9f9(0xf0)])*_0x35d690,'granularity':this[_0xbbc9f9(0xfa)][_0xbbc9f9(0xd1)][_0xbbc9f9(0xcf)](0.25),'vertexFormat':this[_0xbbc9f9(0xfa)][_0xbbc9f9(0xc4)]['MaterialSupport'][_0xbbc9f9(0xb4)][_0xbbc9f9(0xea)]});}['getAxis'](_0x21f838,_0x3cd213){const _0x5c3563=_0xb5a9bf;if(_0x3cd213==='x')return _0x21f838[_0x5c3563(0xe6)]['xAxis'];if(_0x3cd213==='y')return _0x21f838['metadata'][_0x5c3563(0xba)];return _0x21f838['metadata'][_0x5c3563(0xac)];}[_0xb5a9bf(0xf8)](_0x6286a2){const _0x1eeff3=_0xb5a9bf;return new this[(_0x1eeff3(0xfa))][(_0x1eeff3(0xc7))](0x1,0x1,0x1,_0x6286a2);}[_0xb5a9bf(0xb5)](){return{'depthTest':{'enabled':!![]},'depthMask':![],'cull':{'enabled':![]}};}[_0xb5a9bf(0xf7)](_0x225e25){const _0x3e4970=_0xb5a9bf,_0x1d119c=this[_0x3e4970(0xde)][_0x3e4970(0xe9)](_0x225e25);if(!_0x1d119c)return;_0x1d119c['removeListener']?.(),this['map'][_0x3e4970(0xd5)][_0x3e4970(0xb9)][_0x3e4970(0xdd)](_0x1d119c[_0x3e4970(0xc2)]),this[_0x3e4970(0xde)][_0x3e4970(0xf9)](_0x225e25);}[_0xb5a9bf(0xdd)](_0x5d8773){const _0x1e227b=_0xb5a9bf;this[_0x1e227b(0xf7)](_0x5d8773);const _0x8fe044=this['entries'][_0x1e227b(0xe9)](_0x5d8773);if(!_0x8fe044)return;this['map'][_0x1e227b(0xd5)][_0x1e227b(0xb9)][_0x1e227b(0xdd)](_0x8fe044[_0x1e227b(0xc2)]),this['entries'][_0x1e227b(0xf9)](_0x5d8773);}}
1
+ const _0x15620f=_0x5987;(function(_0xb0dc28,_0x30a641){const _0x3aea1e=_0x5987,_0x5b4df8=_0xb0dc28();while(!![]){try{const _0x239e6b=-parseInt(_0x3aea1e(0xa7))/0x1+-parseInt(_0x3aea1e(0x9e))/0x2+-parseInt(_0x3aea1e(0xac))/0x3+-parseInt(_0x3aea1e(0x9d))/0x4*(-parseInt(_0x3aea1e(0xb5))/0x5)+-parseInt(_0x3aea1e(0x8a))/0x6*(parseInt(_0x3aea1e(0x93))/0x7)+-parseInt(_0x3aea1e(0xa4))/0x8+parseInt(_0x3aea1e(0xa6))/0x9;if(_0x239e6b===_0x30a641)break;else _0x5b4df8['push'](_0x5b4df8['shift']());}catch(_0x11d778){_0x5b4df8['push'](_0x5b4df8['shift']());}}}(_0x45f7,0xe476c));function _0x5987(_0x5e84f1,_0x403f1e){const _0x45f714=_0x45f7();return _0x5987=function(_0x5987d5,_0x4d5b6d){_0x5987d5=_0x5987d5-0x81;let _0x2c457d=_0x45f714[_0x5987d5];return _0x2c457d;},_0x5987(_0x5e84f1,_0x403f1e);}import{LiveUpdateScheduler}from'./liveUpdateScheduler';import{createNativeAxisSliceImage,nativeAxisPositionToIndex}from'./nativeSliceAtlas';function _0x45f7(){const _0x4049a6=['keys','removeListener','zAxis','RectangleGeometry','TEXTURED','getContext','state','pending','sync','WallGeometry','postRender','createAltitudeGeometry','visible','replace','rebuild','abs','MaterialSupport','end','getAxis','add','get','cancel','cesium','source','scene','primitives','show','addEventListener','setShow','6ExJlkf','shown','GeometryInstance','dirtySliceIds','VERTEX_FORMAT','pixels','createRenderState','verticalScale','uniforms','8541428scDbmw','has','fromConstantHeights','MaterialAppearance','destroyed','createElement','Color','requestRender','createColor','createWallGeometry','1856XcBCGE','1325680cFgLJd','xAxis','removePending','entries','remove','delete','2355584kRIDSz','slices','40799412AFEEfW','1219666LoltDX','axis','Rectangle','map','vertexFormat','4277238eGbAcA','schedule','toRadians','EllipsoidSurfaceAppearance','fromRadians','min','Math','height','rebuildScheduler','13205HQEqop','width','max','metadata','start','Cartesian3','set','Material','primitive','position','Image','Native\x20axis\x20slice\x20requires\x20a\x202D\x20canvas\x20context.\x20原生轴切片需要\x202D\x20画布上下文。'];_0x45f7=function(){return _0x4049a6;};return _0x45f7();}export class NativeAxisSliceRenderer{['map'];['cesium'];[_0x15620f(0xa1)]=new Map();['pending']=new Map();[_0x15620f(0x8d)]=new Set();[_0x15620f(0xb4)];['state']=null;[_0x15620f(0x8b)]=!![];[_0x15620f(0x97)]=![];constructor(_0x3238ec,_0x54e414){const _0x5e8e0f=_0x15620f;this[_0x5e8e0f(0xaa)]=_0x3238ec,this[_0x5e8e0f(0x83)]=_0x54e414,this[_0x5e8e0f(0xb4)]=new LiveUpdateScheduler(()=>this[_0x5e8e0f(0xcf)](),0x3c);}[_0x15620f(0xc9)](_0x2de8c5,_0x15f920=![]){const _0x1a408d=_0x15620f;if(this['destroyed'])return;const _0x576225=new Map(this[_0x1a408d(0xc7)]?.[_0x1a408d(0xa5)][_0x1a408d(0xaa)](_0x3d0e35=>[_0x3d0e35['id'],_0x3d0e35])??[]);for(const _0x54f568 of _0x2de8c5['slices']){const _0x1626d7=_0x576225[_0x1a408d(0x81)](_0x54f568['id']);if(!_0x1626d7||_0x1626d7[_0x1a408d(0xa8)]!==_0x54f568[_0x1a408d(0xa8)]||_0x1626d7[_0x1a408d(0xbe)]!==_0x54f568['position']||_0x1626d7[_0x1a408d(0xcd)]!==_0x54f568['visible'])this[_0x1a408d(0x8d)]['add'](_0x54f568['id']);}this[_0x1a408d(0xc7)]=_0x2de8c5;if(_0x15f920){for(const _0x391f9d of _0x2de8c5[_0x1a408d(0xa5)])this[_0x1a408d(0x8d)][_0x1a408d(0xd4)](_0x391f9d['id']);this[_0x1a408d(0xb4)][_0x1a408d(0x82)](),this[_0x1a408d(0xcf)]();}else this[_0x1a408d(0xb4)][_0x1a408d(0xad)]();}[_0x15620f(0x89)](_0x512d49){const _0x3d66e1=_0x15620f;this[_0x3d66e1(0x8b)]=_0x512d49;for(const _0x468f64 of this[_0x3d66e1(0xa1)]['values']())_0x468f64[_0x3d66e1(0xbd)]['show']=_0x512d49;this[_0x3d66e1(0xaa)][_0x3d66e1(0x85)][_0x3d66e1(0x9a)]();}['destroy'](){const _0xcce27c=_0x15620f;if(this[_0xcce27c(0x97)])return;this[_0xcce27c(0x97)]=!![],this[_0xcce27c(0xb4)]['cancel']();for(const _0x212f9e of[...this[_0xcce27c(0xa1)][_0xcce27c(0xc1)](),...this['pending'][_0xcce27c(0xc1)]()])this[_0xcce27c(0xa2)](_0x212f9e);this[_0xcce27c(0xc7)]=null;}[_0x15620f(0xcf)](){const _0x136ace=_0x15620f,_0x34e90d=this[_0x136ace(0xc7)];if(!_0x34e90d||this[_0x136ace(0x97)])return;const _0x4a5a98=new Set(_0x34e90d['slices']['filter'](_0x1507d1=>_0x1507d1[_0x136ace(0xcd)])['map'](_0x4215f1=>_0x4215f1['id']));for(const _0x39ff6a of new Set([...this[_0x136ace(0xa1)][_0x136ace(0xc1)](),...this[_0x136ace(0xc8)][_0x136ace(0xc1)](),...this[_0x136ace(0x8d)]])){if(_0x4a5a98[_0x136ace(0x94)](_0x39ff6a))continue;this[_0x136ace(0xa2)](_0x39ff6a),this[_0x136ace(0x8d)]['delete'](_0x39ff6a);}for(const _0xac74d1 of _0x34e90d[_0x136ace(0xa5)]){if(!_0xac74d1[_0x136ace(0xcd)])continue;if(this[_0x136ace(0x8d)][_0x136ace(0x94)](_0xac74d1['id'])||!this[_0x136ace(0xa1)][_0x136ace(0x94)](_0xac74d1['id'])&&!this[_0x136ace(0xc8)][_0x136ace(0x94)](_0xac74d1['id']))this[_0x136ace(0xce)](_0xac74d1,_0x34e90d);this[_0x136ace(0x8d)][_0x136ace(0xa3)](_0xac74d1['id']);}this['map'][_0x136ace(0x85)][_0x136ace(0x9a)]();}[_0x15620f(0xce)](_0xb4a7fd,_0xb44bd8){const _0x6d7271=_0x15620f;this[_0x6d7271(0xa0)](_0xb4a7fd['id']);const _0x2e76ec=this[_0x6d7271(0xa1)][_0x6d7271(0x81)](_0xb4a7fd['id']),_0x37bebe=createNativeAxisSliceImage(_0xb44bd8['data'],_0xb4a7fd[_0x6d7271(0xa8)],nativeAxisPositionToIndex(this[_0x6d7271(0xd3)](_0xb44bd8[_0x6d7271(0x84)],_0xb4a7fd[_0x6d7271(0xa8)]),_0xb4a7fd[_0x6d7271(0xbe)]),_0xb44bd8),_0x587927=document[_0x6d7271(0x98)]('canvas');_0x587927[_0x6d7271(0xb6)]=_0x37bebe[_0x6d7271(0xb6)],_0x587927[_0x6d7271(0xb3)]=_0x37bebe[_0x6d7271(0xb3)];const _0x2ffc20=_0x587927[_0x6d7271(0xc6)]('2d');if(!_0x2ffc20)throw new Error(_0x6d7271(0xc0));_0x2ffc20['putImageData'](new ImageData(new Uint8ClampedArray(_0x37bebe[_0x6d7271(0x8f)]),_0x37bebe[_0x6d7271(0xb6)],_0x37bebe['height']),0x0,0x0);const _0x21455a=new this[(_0x6d7271(0x83))][(_0x6d7271(0xbc))]({'fabric':{'type':_0x6d7271(0xbf),'uniforms':{'image':_0x587927,'color':this['createColor'](_0x2e76ec?0x0:0x1)}}}),_0x2f58a1=_0xb4a7fd['axis']==='y'?this['createAltitudeGeometry'](_0xb44bd8[_0x6d7271(0x84)],_0xb4a7fd[_0x6d7271(0xbe)],_0xb44bd8[_0x6d7271(0x91)]):this['createWallGeometry'](_0xb44bd8[_0x6d7271(0x84)],_0xb4a7fd,_0xb44bd8[_0x6d7271(0x91)]),_0xd089c2=_0xb4a7fd[_0x6d7271(0xa8)]==='y'?new this['cesium'][(_0x6d7271(0xaf))]({'material':_0x21455a,'aboveGround':!![],'faceForward':!![],'flat':!![],'translucent':!![],'renderState':this['createRenderState']()}):new this[(_0x6d7271(0x83))][(_0x6d7271(0x96))]({'material':_0x21455a,'materialSupport':this['cesium'][_0x6d7271(0x96)][_0x6d7271(0xd1)][_0x6d7271(0xc5)],'faceForward':!![],'flat':!![],'translucent':!![],'closed':![],'renderState':this[_0x6d7271(0x90)]()}),_0x3605ff=new this[(_0x6d7271(0x83))]['Primitive']({'geometryInstances':new this['cesium'][(_0x6d7271(0x8c))]({'geometry':_0x2f58a1}),'appearance':_0xd089c2,'asynchronous':![],'allowPicking':![],'releaseGeometryInstances':!![],'compressVertices':!![]});_0x3605ff[_0x6d7271(0x87)]=_0x2e76ec?!![]:this[_0x6d7271(0x8b)];const _0x415d8d=this[_0x6d7271(0xaa)][_0x6d7271(0x85)][_0x6d7271(0x86)][_0x6d7271(0xd4)](_0x3605ff);if(!_0x2e76ec){this['entries'][_0x6d7271(0xbb)](_0xb4a7fd['id'],{'primitive':_0x415d8d,'material':_0x21455a});return;}const _0x4132ad={'primitive':_0x415d8d,'material':_0x21455a},_0x44d04e=this['map'][_0x6d7271(0x85)][_0x6d7271(0xcb)][_0x6d7271(0x88)](()=>{const _0x5d50f5=_0x6d7271;if(!_0x415d8d['ready']||this['pending'][_0x5d50f5(0x81)](_0xb4a7fd['id'])!==_0x4132ad)return;_0x4132ad[_0x5d50f5(0xc2)]?.(),_0x21455a[_0x5d50f5(0x92)]['color']=this[_0x5d50f5(0x9b)](0x1),_0x415d8d['show']=this['shown'],_0x2e76ec[_0x5d50f5(0xbd)][_0x5d50f5(0x87)]=![],this[_0x5d50f5(0xaa)][_0x5d50f5(0x85)]['primitives'][_0x5d50f5(0xa2)](_0x2e76ec['primitive']),this[_0x5d50f5(0xa1)][_0x5d50f5(0xbb)](_0xb4a7fd['id'],{'primitive':_0x415d8d,'material':_0x21455a}),this[_0x5d50f5(0xc8)][_0x5d50f5(0xa3)](_0xb4a7fd['id']),this['map'][_0x5d50f5(0x85)]['requestRender']();});if(_0x44d04e)_0x4132ad['removeListener']=_0x44d04e;this[_0x6d7271(0xc8)][_0x6d7271(0xbb)](_0xb4a7fd['id'],_0x4132ad);}[_0x15620f(0xcc)](_0x11ff5e,_0x43a1f2,_0x5d55af){const _0x474e3c=_0x15620f,{xAxis:_0x1e3ad3,yAxis:_0x405c84,zAxis:_0x49d79b}=_0x11ff5e['metadata'],_0x51bbba=Math[_0x474e3c(0xb1)](_0x405c84[_0x474e3c(0xb9)],_0x405c84[_0x474e3c(0xd2)]),_0x2e2132=_0x51bbba+(_0x43a1f2-_0x51bbba)*_0x5d55af;return new this[(_0x474e3c(0x83))][(_0x474e3c(0xc4))]({'rectangle':this[_0x474e3c(0x83)][_0x474e3c(0xa9)]['fromDegrees'](Math['min'](_0x1e3ad3[_0x474e3c(0xb9)],_0x1e3ad3['end']),Math['min'](_0x49d79b[_0x474e3c(0xb9)],_0x49d79b[_0x474e3c(0xd2)]),Math[_0x474e3c(0xb7)](_0x1e3ad3[_0x474e3c(0xb9)],_0x1e3ad3[_0x474e3c(0xd2)]),Math[_0x474e3c(0xb7)](_0x49d79b[_0x474e3c(0xb9)],_0x49d79b[_0x474e3c(0xd2)])),'height':_0x2e2132,'granularity':this[_0x474e3c(0x83)][_0x474e3c(0xb2)][_0x474e3c(0xae)](0.5),'vertexFormat':this[_0x474e3c(0x83)][_0x474e3c(0xaf)][_0x474e3c(0x8e)]});}[_0x15620f(0x9c)](_0x19b146,_0x2cd40d,_0x1e5a43){const _0x293b4f=_0x15620f,{xAxis:_0x4a92ee,yAxis:_0x2b07d4,zAxis:_0xcaa8f8}=_0x19b146[_0x293b4f(0xb8)],_0x114923=Math[_0x293b4f(0xb1)](_0x4a92ee[_0x293b4f(0xb9)],_0x4a92ee['end']),_0x38584a=Math[_0x293b4f(0xb7)](_0x4a92ee[_0x293b4f(0xb9)],_0x4a92ee[_0x293b4f(0xd2)]),_0x4aecb9=Math[_0x293b4f(0xb1)](_0xcaa8f8['start'],_0xcaa8f8[_0x293b4f(0xd2)]),_0x385eaf=Math[_0x293b4f(0xb7)](_0xcaa8f8['start'],_0xcaa8f8[_0x293b4f(0xd2)]),_0x5b094b=_0x2cd40d[_0x293b4f(0xa8)]==='x'?[this[_0x293b4f(0x83)]['Cartesian3'][_0x293b4f(0xb0)](this[_0x293b4f(0x83)]['Math'][_0x293b4f(0xae)](_0x2cd40d[_0x293b4f(0xbe)]),this[_0x293b4f(0x83)][_0x293b4f(0xb2)]['toRadians'](_0x4aecb9)),this[_0x293b4f(0x83)][_0x293b4f(0xba)]['fromRadians'](this[_0x293b4f(0x83)]['Math']['toRadians'](_0x2cd40d[_0x293b4f(0xbe)]),this[_0x293b4f(0x83)][_0x293b4f(0xb2)][_0x293b4f(0xae)](_0x385eaf))]:[this[_0x293b4f(0x83)][_0x293b4f(0xba)][_0x293b4f(0xb0)](this[_0x293b4f(0x83)][_0x293b4f(0xb2)][_0x293b4f(0xae)](_0x114923),this[_0x293b4f(0x83)]['Math'][_0x293b4f(0xae)](_0x2cd40d[_0x293b4f(0xbe)])),this[_0x293b4f(0x83)]['Cartesian3']['fromRadians'](this[_0x293b4f(0x83)][_0x293b4f(0xb2)][_0x293b4f(0xae)](_0x38584a),this[_0x293b4f(0x83)][_0x293b4f(0xb2)]['toRadians'](_0x2cd40d[_0x293b4f(0xbe)]))],_0x2f19cd=Math[_0x293b4f(0xb1)](_0x2b07d4[_0x293b4f(0xb9)],_0x2b07d4['end']);return this[_0x293b4f(0x83)][_0x293b4f(0xca)][_0x293b4f(0x95)]({'positions':_0x5b094b,'minimumHeight':_0x2f19cd,'maximumHeight':_0x2f19cd+Math[_0x293b4f(0xd0)](_0x2b07d4[_0x293b4f(0xd2)]-_0x2b07d4['start'])*_0x1e5a43,'granularity':this[_0x293b4f(0x83)][_0x293b4f(0xb2)]['toRadians'](0.25),'vertexFormat':this['cesium'][_0x293b4f(0x96)][_0x293b4f(0xd1)][_0x293b4f(0xc5)][_0x293b4f(0xab)]});}['getAxis'](_0x653948,_0x2f3f85){const _0x24e5d5=_0x15620f;if(_0x2f3f85==='x')return _0x653948[_0x24e5d5(0xb8)][_0x24e5d5(0x9f)];if(_0x2f3f85==='y')return _0x653948[_0x24e5d5(0xb8)]['yAxis'];return _0x653948[_0x24e5d5(0xb8)][_0x24e5d5(0xc3)];}['createColor'](_0x3d339d){const _0x1dfb56=_0x15620f;return new this[(_0x1dfb56(0x83))][(_0x1dfb56(0x99))](0x1,0x1,0x1,_0x3d339d);}[_0x15620f(0x90)](){return{'depthTest':{'enabled':!![]},'depthMask':![],'cull':{'enabled':![]}};}[_0x15620f(0xa0)](_0x30bef7){const _0x56d01d=_0x15620f,_0x521cce=this[_0x56d01d(0xc8)]['get'](_0x30bef7);if(!_0x521cce)return;_0x521cce[_0x56d01d(0xc2)]?.(),this[_0x56d01d(0xaa)][_0x56d01d(0x85)]['primitives'][_0x56d01d(0xa2)](_0x521cce[_0x56d01d(0xbd)]),this[_0x56d01d(0xc8)][_0x56d01d(0xa3)](_0x30bef7);}['remove'](_0x36dfd3){const _0xd8c313=_0x15620f;this[_0xd8c313(0xa0)](_0x36dfd3);const _0x569d23=this[_0xd8c313(0xa1)][_0xd8c313(0x81)](_0x36dfd3);if(!_0x569d23)return;this[_0xd8c313(0xaa)][_0xd8c313(0x85)][_0xd8c313(0x86)]['remove'](_0x569d23[_0xd8c313(0xbd)]),this[_0xd8c313(0xa1)][_0xd8c313(0xa3)](_0x36dfd3);}}
@@ -1 +1 @@
1
- (function(_0xc13c97,_0x519405){const _0x760e8a=_0x20e7,_0x516fb5=_0xc13c97();while(!![]){try{const _0x4ab67b=parseInt(_0x760e8a(0x18a))/0x1*(parseInt(_0x760e8a(0x197))/0x2)+parseInt(_0x760e8a(0x19e))/0x3+-parseInt(_0x760e8a(0x191))/0x4+parseInt(_0x760e8a(0x18f))/0x5*(-parseInt(_0x760e8a(0x193))/0x6)+parseInt(_0x760e8a(0x18d))/0x7*(-parseInt(_0x760e8a(0x182))/0x8)+-parseInt(_0x760e8a(0x189))/0x9*(parseInt(_0x760e8a(0x196))/0xa)+parseInt(_0x760e8a(0x1a5))/0xb;if(_0x4ab67b===_0x519405)break;else _0x516fb5['push'](_0x516fb5['shift']());}catch(_0xe2bc5){_0x516fb5['push'](_0x516fb5['shift']());}}}(_0x45eb,0xeeedd));import{prepareWebgpuVolumeTransfer,sampleVolumeTransferColor,sampleVolumeTransferOpacity}from'../volume-scene/volumeTransfer';export const nativeAxisPositionToIndex=(_0x8a001f,_0x383cee)=>{const _0x571cd5=_0x20e7;if(!Number[_0x571cd5(0x184)](_0x383cee))throw new Error('Native\x20slice\x20position\x20must\x20be\x20finite.\x20原生切片位置必须是有限数。');const _0x31c75b=Math['min'](_0x8a001f[_0x571cd5(0x181)],_0x8a001f[_0x571cd5(0x199)]),_0x56d18b=Math[_0x571cd5(0x1a1)](_0x8a001f[_0x571cd5(0x181)],_0x8a001f[_0x571cd5(0x199)]),_0x1419e=_0x31c75b===_0x56d18b?0x0:(Math[_0x571cd5(0x1a1)](_0x31c75b,Math['min'](_0x56d18b,_0x383cee))-_0x31c75b)/(_0x56d18b-_0x31c75b);return Math[_0x571cd5(0x19b)](_0x1419e*Math[_0x571cd5(0x1a1)](0x0,_0x8a001f[_0x571cd5(0x190)]-0x1));};export const createNativeSliceAtlasLayout=(_0x3bf28d,_0x256980,_0x3934e3,_0x261baa=0x1)=>{const _0x18bc44=_0x20e7;if(!Number[_0x18bc44(0x186)](_0x3bf28d)||_0x3bf28d<0x1)throw new RangeError(_0x18bc44(0x19a));if(!Number['isSafeInteger'](_0x256980)||_0x256980<0x1||!Number[_0x18bc44(0x186)](_0x3934e3)||_0x3934e3<0x1)throw new RangeError('Native\x20slice\x20dimensions\x20must\x20be\x20positive\x20integers.\x20原生切片尺寸必须为正整数。');if(!Number[_0x18bc44(0x186)](_0x261baa)||_0x261baa<0x0)throw new RangeError(_0x18bc44(0x198));const _0x197da6=Math['ceil'](Math[_0x18bc44(0x1a3)](_0x3bf28d*_0x3934e3/_0x256980)),_0x3acb12=Math['ceil'](_0x3bf28d/_0x197da6),_0x2fe8ce=_0x256980+_0x261baa*0x2,_0xb092ba=_0x3934e3+_0x261baa*0x2,_0x1a8306=_0x197da6*_0x2fe8ce,_0x3803ad=_0x3acb12*_0xb092ba,_0x2b90ac=Array[_0x18bc44(0x188)]({'length':_0x3bf28d},(_0xdcf6da,_0x2fee13)=>{const _0xfdd819=_0x18bc44,_0xd26658=_0x2fee13%_0x197da6*_0x2fe8ce+_0x261baa,_0x3019c2=Math[_0xfdd819(0x18e)](_0x2fee13/_0x197da6)*_0xb092ba+_0x261baa;return{'x':_0xd26658,'y':_0x3019c2,'width':_0x256980,'height':_0x3934e3,'uMinimum':(_0xd26658+0.5)/_0x1a8306,'uMaximum':(_0xd26658+_0x256980-0.5)/_0x1a8306,'vMinimum':0x1-(_0x3019c2+_0x3934e3-0.5)/_0x3803ad,'vMaximum':0x1-(_0x3019c2+0.5)/_0x3803ad};});return{'width':_0x1a8306,'height':_0x3803ad,'columns':_0x197da6,'rows':_0x3acb12,'layers':_0x2b90ac};};const sampleValue=(_0x404ec1,_0x11f14b,_0x508fa3,_0x33caac,_0x282849,_0x445a6d)=>{const _0xf2a0de=_0x20e7,[_0x1b536f,_0x2ee708,_0x3fae5e]=_0x404ec1[_0xf2a0de(0x187)],_0x1663e0=Math[_0xf2a0de(0x1a1)](0x0,Math['min'](_0x1b536f-0x1,(_0x508fa3+0.5)*_0x1b536f/_0x282849-0.5)),_0x434f96=Math[_0xf2a0de(0x1a1)](0x0,Math[_0xf2a0de(0x183)](_0x3fae5e-0x1,_0x3fae5e-(_0x33caac+0.5)*_0x3fae5e/_0x445a6d-0.5)),_0x4b7f71=Math[_0xf2a0de(0x18e)](_0x1663e0),_0x57b737=Math[_0xf2a0de(0x183)](_0x1b536f-0x1,_0x4b7f71+0x1),_0x39d2cf=Math[_0xf2a0de(0x18e)](_0x434f96),_0x369f04=Math[_0xf2a0de(0x183)](_0x3fae5e-0x1,_0x39d2cf+0x1),_0xdf2fb1=_0x1663e0-_0x4b7f71,_0xf04187=_0x434f96-_0x39d2cf,_0x184bdf=(_0x23ef6f,_0x436c0d)=>_0x404ec1[_0xf2a0de(0x194)][(_0x436c0d*_0x2ee708+_0x11f14b)*_0x1b536f+_0x23ef6f],_0x3aead1=_0x184bdf(_0x4b7f71,_0x39d2cf)*(0x1-_0xdf2fb1)+_0x184bdf(_0x57b737,_0x39d2cf)*_0xdf2fb1,_0x5b4431=_0x184bdf(_0x4b7f71,_0x369f04)*(0x1-_0xdf2fb1)+_0x184bdf(_0x57b737,_0x369f04)*_0xdf2fb1;return _0x3aead1*(0x1-_0xf04187)+_0x5b4431*_0xf04187;};function _0x20e7(_0x9f28e0,_0x47eba6){const _0x45ebd2=_0x45eb();return _0x20e7=function(_0x20e7b2,_0x188e59){_0x20e7b2=_0x20e7b2-0x180;let _0x2dae67=_0x45ebd2[_0x20e7b2];return _0x2dae67;},_0x20e7(_0x9f28e0,_0x47eba6);}export const createNativeSliceAtlas=(_0x4e70c4,_0x3cbc24)=>{const _0x4428fb=_0x20e7,_0x554511=createNativeSliceAtlasLayout(_0x4e70c4[_0x4428fb(0x187)][0x1],_0x3cbc24[_0x4428fb(0x1a4)],_0x3cbc24[_0x4428fb(0x1a2)]),_0x4754b4=new Uint8ClampedArray(_0x554511[_0x4428fb(0x19d)]*_0x554511[_0x4428fb(0x19c)]*0x4),_0x5d1858=prepareWebgpuVolumeTransfer(_0x3cbc24[_0x4428fb(0x18b)],_0x3cbc24['opacityStops']),_0x4b9a7a=(_0x3dd683,_0x2252d7,_0x1f8faf)=>{const _0x1c2766=_0x4428fb,_0x370bae=(_0x2252d7*_0x554511[_0x1c2766(0x19d)]+_0x3dd683)*0x4;_0x4754b4[_0x370bae]=_0x4754b4[_0x1f8faf],_0x4754b4[_0x370bae+0x1]=_0x4754b4[_0x1f8faf+0x1],_0x4754b4[_0x370bae+0x2]=_0x4754b4[_0x1f8faf+0x2],_0x4754b4[_0x370bae+0x3]=_0x4754b4[_0x1f8faf+0x3];};for(let _0x2c7045=0x0;_0x2c7045<_0x554511['layers'][_0x4428fb(0x1a0)];_0x2c7045+=0x1){const _0x49aef1=_0x554511['layers'][_0x2c7045];let _0x33a8d4=_0x49aef1[_0x4428fb(0x19d)],_0x426f0f=_0x49aef1[_0x4428fb(0x19c)],_0x46893a=-0x1,_0x3ec8f8=-0x1;for(let _0x492710=0x0;_0x492710<_0x49aef1['height'];_0x492710+=0x1){for(let _0x3920f4=0x0;_0x3920f4<_0x49aef1['width'];_0x3920f4+=0x1){const _0x3d69fa=sampleValue(_0x4e70c4,_0x2c7045,_0x3920f4,_0x492710,_0x49aef1[_0x4428fb(0x19d)],_0x49aef1[_0x4428fb(0x19c)]),_0x5a094a=sampleVolumeTransferColor(_0x3d69fa,_0x5d1858[_0x4428fb(0x18b)],0x1,_0x3cbc24[_0x4428fb(0x185)]),_0xd325c2=_0x3d69fa<=0x0?0x0:sampleVolumeTransferOpacity(_0x3d69fa,_0x5d1858[_0x4428fb(0x195)],_0x3cbc24['colorMode']),_0x1f9186=((_0x49aef1['y']+_0x492710)*_0x554511[_0x4428fb(0x19d)]+_0x49aef1['x']+_0x3920f4)*0x4;_0x4754b4[_0x1f9186]=Math['round'](_0x5a094a[0x0]*0xff),_0x4754b4[_0x1f9186+0x1]=Math['round'](_0x5a094a[0x1]*0xff),_0x4754b4[_0x1f9186+0x2]=Math[_0x4428fb(0x19b)](_0x5a094a[0x2]*0xff),_0x4754b4[_0x1f9186+0x3]=Math[_0x4428fb(0x19b)](_0x5a094a[0x3]*_0xd325c2*0xff),_0x4754b4[_0x1f9186+0x3]>0x0&&(_0x33a8d4=Math['min'](_0x33a8d4,_0x3920f4),_0x426f0f=Math[_0x4428fb(0x183)](_0x426f0f,_0x492710),_0x46893a=Math['max'](_0x46893a,_0x3920f4),_0x3ec8f8=Math[_0x4428fb(0x1a1)](_0x3ec8f8,_0x492710));}}_0x49aef1[_0x4428fb(0x192)]=_0x46893a<0x0?null:{'west':_0x33a8d4/_0x49aef1[_0x4428fb(0x19d)],'south':0x1-(_0x3ec8f8+0x1)/_0x49aef1[_0x4428fb(0x19c)],'east':(_0x46893a+0x1)/_0x49aef1[_0x4428fb(0x19d)],'north':0x1-_0x426f0f/_0x49aef1['height']};for(let _0x944d59=0x0;_0x944d59<_0x49aef1[_0x4428fb(0x19d)];_0x944d59+=0x1){_0x4b9a7a(_0x49aef1['x']+_0x944d59,_0x49aef1['y']-0x1,(_0x49aef1['y']*_0x554511[_0x4428fb(0x19d)]+_0x49aef1['x']+_0x944d59)*0x4),_0x4b9a7a(_0x49aef1['x']+_0x944d59,_0x49aef1['y']+_0x49aef1[_0x4428fb(0x19c)],((_0x49aef1['y']+_0x49aef1[_0x4428fb(0x19c)]-0x1)*_0x554511['width']+_0x49aef1['x']+_0x944d59)*0x4);}for(let _0x54b8b1=-0x1;_0x54b8b1<=_0x49aef1[_0x4428fb(0x19c)];_0x54b8b1+=0x1){_0x4b9a7a(_0x49aef1['x']-0x1,_0x49aef1['y']+_0x54b8b1,((_0x49aef1['y']+Math['max'](0x0,Math[_0x4428fb(0x183)](_0x49aef1[_0x4428fb(0x19c)]-0x1,_0x54b8b1)))*_0x554511[_0x4428fb(0x19d)]+_0x49aef1['x'])*0x4),_0x4b9a7a(_0x49aef1['x']+_0x49aef1['width'],_0x49aef1['y']+_0x54b8b1,((_0x49aef1['y']+Math[_0x4428fb(0x1a1)](0x0,Math['min'](_0x49aef1[_0x4428fb(0x19c)]-0x1,_0x54b8b1)))*_0x554511[_0x4428fb(0x19d)]+_0x49aef1['x']+_0x49aef1[_0x4428fb(0x19d)]-0x1)*0x4);}}return{'layout':_0x554511,'pixels':_0x4754b4};};function _0x45eb(){const _0x28fbea=['layerHeight','sqrt','layerWidth','38896517orxjrF','toUpperCase','start','27568lDYirm','min','isFinite','colorMode','isSafeInteger','dimensions','from','164907jcIqOn','10lXjFNe','colorStops','Native\x20','91BKIZuh','floor','15HhBJaT','count','6582368dWrFkp','contentBounds','578562FxWarD','values','opacityStops','530vnKNDq','27866ZYMuaB','Native\x20slice\x20padding\x20must\x20be\x20a\x20non-negative\x20integer.\x20原生切片边距必须为非负整数。','end','Native\x20slice\x20layer\x20count\x20must\x20be\x20a\x20positive\x20integer.\x20原生切片层数必须为正整数。','round','height','width','762198WBzEOV','\x20切片索引越界。','length','max'];_0x45eb=function(){return _0x28fbea;};return _0x45eb();}export const createNativeAxisSliceImage=(_0x2fb1ec,_0x9e32f8,_0x59a690,_0x180050)=>{const _0x426872=_0x20e7,[_0x53670a,_0x531eaa,_0x1d8d51]=_0x2fb1ec[_0x426872(0x187)],_0x255cd6=_0x9e32f8==='x'?_0x53670a:_0x9e32f8==='y'?_0x531eaa:_0x1d8d51;if(!Number[_0x426872(0x186)](_0x59a690)||_0x59a690<0x0||_0x59a690>=_0x255cd6)throw new RangeError(_0x426872(0x18c)+_0x9e32f8[_0x426872(0x180)]()+'\x20slice\x20index\x20is\x20out\x20of\x20range.\x20原生\x20'+_0x9e32f8[_0x426872(0x180)]()+_0x426872(0x19f));const _0x1b1c5a=_0x9e32f8==='x'?_0x1d8d51:_0x53670a,_0x5b243e=_0x9e32f8==='y'?_0x1d8d51:_0x531eaa,_0x695d0a=new Uint8ClampedArray(_0x1b1c5a*_0x5b243e*0x4),_0x36766a=prepareWebgpuVolumeTransfer(_0x180050[_0x426872(0x18b)],_0x180050[_0x426872(0x195)]),_0x5b5cdc=(_0x57eb9b,_0x23dccb,_0x4fe427)=>_0x2fb1ec['values'][(_0x4fe427*_0x531eaa+_0x23dccb)*_0x53670a+_0x57eb9b];for(let _0x4a253c=0x0;_0x4a253c<_0x5b243e;_0x4a253c+=0x1){for(let _0x4e9074=0x0;_0x4e9074<_0x1b1c5a;_0x4e9074+=0x1){const _0x13b4a=_0x9e32f8==='x'?_0x5b5cdc(_0x59a690,_0x531eaa-_0x4a253c-0x1,_0x4e9074):_0x9e32f8==='y'?_0x5b5cdc(_0x4e9074,_0x59a690,_0x1d8d51-_0x4a253c-0x1):_0x5b5cdc(_0x4e9074,_0x531eaa-_0x4a253c-0x1,_0x59a690),_0xc9d209=sampleVolumeTransferColor(_0x13b4a,_0x36766a[_0x426872(0x18b)],0x1,_0x180050['colorMode']),_0x33cc54=_0x13b4a<=0x0?0x0:sampleVolumeTransferOpacity(_0x13b4a,_0x36766a[_0x426872(0x195)],_0x180050[_0x426872(0x185)]),_0x8d1576=(_0x4a253c*_0x1b1c5a+_0x4e9074)*0x4;_0x695d0a[_0x8d1576]=Math['round'](_0xc9d209[0x0]*0xff),_0x695d0a[_0x8d1576+0x1]=Math[_0x426872(0x19b)](_0xc9d209[0x1]*0xff),_0x695d0a[_0x8d1576+0x2]=Math['round'](_0xc9d209[0x2]*0xff),_0x695d0a[_0x8d1576+0x3]=Math[_0x426872(0x19b)](_0xc9d209[0x3]*_0x33cc54*0xff);}}return{'width':_0x1b1c5a,'height':_0x5b243e,'pixels':_0x695d0a};};
1
+ (function(_0x57fb28,_0x3839dc){const _0x4cbebf=_0x2a36,_0x33899d=_0x57fb28();while(!![]){try{const _0x5e070d=parseInt(_0x4cbebf(0xc8))/0x1+parseInt(_0x4cbebf(0xba))/0x2+parseInt(_0x4cbebf(0xb2))/0x3*(-parseInt(_0x4cbebf(0xbc))/0x4)+parseInt(_0x4cbebf(0xb5))/0x5*(-parseInt(_0x4cbebf(0xbf))/0x6)+-parseInt(_0x4cbebf(0xc0))/0x7+parseInt(_0x4cbebf(0xc7))/0x8*(-parseInt(_0x4cbebf(0xb4))/0x9)+-parseInt(_0x4cbebf(0xaf))/0xa*(-parseInt(_0x4cbebf(0xcf))/0xb);if(_0x5e070d===_0x3839dc)break;else _0x33899d['push'](_0x33899d['shift']());}catch(_0x575af7){_0x33899d['push'](_0x33899d['shift']());}}}(_0x4121,0xb37ab));import{prepareWebgpuVolumeTransfer,sampleVolumeTransferColor,sampleVolumeTransferOpacity}from'../volume-scene/volumeTransfer';function _0x4121(){const _0x509d84=['height','floor','9755119CNXpcY','Native\x20slice\x20position\x20must\x20be\x20finite.\x20原生切片位置必须是有限数。','Native\x20slice\x20padding\x20must\x20be\x20a\x20non-negative\x20integer.\x20原生切片边距必须为非负整数。','opacityStops','max','colorMode','20XucHuN','dimensions','width','27deKUVY','length','9GVBJHV','5NymYrk','from','start','ceil','end','1456424YdITDH','contentBounds','299876jNUppK','Native\x20','round','4566918mTXnDH','3048143TOtctw','min','Native\x20slice\x20dimensions\x20must\x20be\x20positive\x20integers.\x20原生切片尺寸必须为正整数。','\x20slice\x20index\x20is\x20out\x20of\x20range.\x20原生\x20','layerHeight','sqrt','isSafeInteger','4888808MjHClz','715701GGTElI','layerWidth','isFinite','values','colorStops'];_0x4121=function(){return _0x509d84;};return _0x4121();}export const nativeAxisPositionToIndex=(_0x2f1a92,_0x552694)=>{const _0x16af0c=_0x2a36;if(!Number[_0x16af0c(0xca)](_0x552694))throw new Error(_0x16af0c(0xd0));const _0x29a93e=Math[_0x16af0c(0xc1)](_0x2f1a92['start'],_0x2f1a92[_0x16af0c(0xb9)]),_0xca7fc7=Math[_0x16af0c(0xad)](_0x2f1a92[_0x16af0c(0xb7)],_0x2f1a92['end']),_0x3e4e8f=_0x29a93e===_0xca7fc7?0x0:(Math['max'](_0x29a93e,Math[_0x16af0c(0xc1)](_0xca7fc7,_0x552694))-_0x29a93e)/(_0xca7fc7-_0x29a93e);return Math[_0x16af0c(0xbe)](_0x3e4e8f*Math['max'](0x0,_0x2f1a92['count']-0x1));};export const createNativeSliceAtlasLayout=(_0x2f08ae,_0x51bcaa,_0x49fe9e,_0x2a4aad=0x1)=>{const _0x219e7a=_0x2a36;if(!Number[_0x219e7a(0xc6)](_0x2f08ae)||_0x2f08ae<0x1)throw new RangeError('Native\x20slice\x20layer\x20count\x20must\x20be\x20a\x20positive\x20integer.\x20原生切片层数必须为正整数。');if(!Number[_0x219e7a(0xc6)](_0x51bcaa)||_0x51bcaa<0x1||!Number[_0x219e7a(0xc6)](_0x49fe9e)||_0x49fe9e<0x1)throw new RangeError(_0x219e7a(0xc2));if(!Number[_0x219e7a(0xc6)](_0x2a4aad)||_0x2a4aad<0x0)throw new RangeError(_0x219e7a(0xd1));const _0x406d48=Math[_0x219e7a(0xb8)](Math[_0x219e7a(0xc5)](_0x2f08ae*_0x49fe9e/_0x51bcaa)),_0x4413fb=Math['ceil'](_0x2f08ae/_0x406d48),_0x2832ae=_0x51bcaa+_0x2a4aad*0x2,_0xf0c89b=_0x49fe9e+_0x2a4aad*0x2,_0x11a060=_0x406d48*_0x2832ae,_0x49c54f=_0x4413fb*_0xf0c89b,_0x5b4df1=Array[_0x219e7a(0xb6)]({'length':_0x2f08ae},(_0x5ac77a,_0x79b0b)=>{const _0x811e93=_0x219e7a,_0x39ca34=_0x79b0b%_0x406d48*_0x2832ae+_0x2a4aad,_0x176c85=Math[_0x811e93(0xce)](_0x79b0b/_0x406d48)*_0xf0c89b+_0x2a4aad;return{'x':_0x39ca34,'y':_0x176c85,'width':_0x51bcaa,'height':_0x49fe9e,'uMinimum':(_0x39ca34+0.5)/_0x11a060,'uMaximum':(_0x39ca34+_0x51bcaa-0.5)/_0x11a060,'vMinimum':0x1-(_0x176c85+_0x49fe9e-0.5)/_0x49c54f,'vMaximum':0x1-(_0x176c85+0.5)/_0x49c54f};});return{'width':_0x11a060,'height':_0x49c54f,'columns':_0x406d48,'rows':_0x4413fb,'layers':_0x5b4df1};};function _0x2a36(_0x107c29,_0x38b121){const _0x412109=_0x4121();return _0x2a36=function(_0x2a3669,_0x5787bb){_0x2a3669=_0x2a3669-0xad;let _0x58eab7=_0x412109[_0x2a3669];return _0x58eab7;},_0x2a36(_0x107c29,_0x38b121);}const sampleValue=(_0x386c17,_0x4651f5,_0x2ba98e,_0x4b5315,_0x4afaf8,_0x102a46)=>{const _0x56eb8d=_0x2a36,[_0x6ddd60,_0x2dabf6,_0x4d9dd5]=_0x386c17[_0x56eb8d(0xb0)],_0x54d0be=Math['max'](0x0,Math[_0x56eb8d(0xc1)](_0x6ddd60-0x1,(_0x2ba98e+0.5)*_0x6ddd60/_0x4afaf8-0.5)),_0x5a5ac0=Math[_0x56eb8d(0xad)](0x0,Math[_0x56eb8d(0xc1)](_0x4d9dd5-0x1,_0x4d9dd5-(_0x4b5315+0.5)*_0x4d9dd5/_0x102a46-0.5)),_0x4a9d84=Math[_0x56eb8d(0xce)](_0x54d0be),_0x58f3f8=Math[_0x56eb8d(0xc1)](_0x6ddd60-0x1,_0x4a9d84+0x1),_0x105751=Math['floor'](_0x5a5ac0),_0x117cb7=Math['min'](_0x4d9dd5-0x1,_0x105751+0x1),_0x37ea9e=_0x54d0be-_0x4a9d84,_0x3551f3=_0x5a5ac0-_0x105751,_0x2a5d13=(_0x1c0f35,_0x44c35f)=>_0x386c17[_0x56eb8d(0xcb)][(_0x44c35f*_0x2dabf6+_0x4651f5)*_0x6ddd60+_0x1c0f35],_0x5ae75b=_0x2a5d13(_0x4a9d84,_0x105751)*(0x1-_0x37ea9e)+_0x2a5d13(_0x58f3f8,_0x105751)*_0x37ea9e,_0x36ec89=_0x2a5d13(_0x4a9d84,_0x117cb7)*(0x1-_0x37ea9e)+_0x2a5d13(_0x58f3f8,_0x117cb7)*_0x37ea9e;return _0x5ae75b*(0x1-_0x3551f3)+_0x36ec89*_0x3551f3;};export const createNativeSliceAtlas=(_0x40e62b,_0x40828a)=>{const _0x44ad39=_0x2a36,_0x1cda72=createNativeSliceAtlasLayout(_0x40e62b[_0x44ad39(0xb0)][0x1],_0x40828a[_0x44ad39(0xc9)],_0x40828a[_0x44ad39(0xc4)]),_0x94e846=new Uint8ClampedArray(_0x1cda72[_0x44ad39(0xb1)]*_0x1cda72[_0x44ad39(0xcd)]*0x4),_0x313e44=prepareWebgpuVolumeTransfer(_0x40828a[_0x44ad39(0xcc)],_0x40828a[_0x44ad39(0xd2)]),_0x9d898e=(_0x2f2b5a,_0x59d27a,_0x586612)=>{const _0x5d2332=(_0x59d27a*_0x1cda72['width']+_0x2f2b5a)*0x4;_0x94e846[_0x5d2332]=_0x94e846[_0x586612],_0x94e846[_0x5d2332+0x1]=_0x94e846[_0x586612+0x1],_0x94e846[_0x5d2332+0x2]=_0x94e846[_0x586612+0x2],_0x94e846[_0x5d2332+0x3]=_0x94e846[_0x586612+0x3];};for(let _0x3118f0=0x0;_0x3118f0<_0x1cda72['layers'][_0x44ad39(0xb3)];_0x3118f0+=0x1){const _0x398f57=_0x1cda72['layers'][_0x3118f0];let _0x507b52=_0x398f57[_0x44ad39(0xb1)],_0x80b92e=_0x398f57[_0x44ad39(0xcd)],_0x20b976=-0x1,_0x43e4a5=-0x1;for(let _0x5acd90=0x0;_0x5acd90<_0x398f57['height'];_0x5acd90+=0x1){for(let _0x209fd8=0x0;_0x209fd8<_0x398f57[_0x44ad39(0xb1)];_0x209fd8+=0x1){const _0x40d134=sampleValue(_0x40e62b,_0x3118f0,_0x209fd8,_0x5acd90,_0x398f57[_0x44ad39(0xb1)],_0x398f57['height']),_0x5f4da5=sampleVolumeTransferColor(_0x40d134,_0x313e44[_0x44ad39(0xcc)],0x1,_0x40828a[_0x44ad39(0xae)]),_0x52e8b3=_0x40d134<=0x0?0x0:sampleVolumeTransferOpacity(_0x40d134,_0x313e44[_0x44ad39(0xd2)],_0x40828a[_0x44ad39(0xae)]),_0x3926a4=((_0x398f57['y']+_0x5acd90)*_0x1cda72[_0x44ad39(0xb1)]+_0x398f57['x']+_0x209fd8)*0x4;_0x94e846[_0x3926a4]=Math[_0x44ad39(0xbe)](_0x5f4da5[0x0]*0xff),_0x94e846[_0x3926a4+0x1]=Math['round'](_0x5f4da5[0x1]*0xff),_0x94e846[_0x3926a4+0x2]=Math[_0x44ad39(0xbe)](_0x5f4da5[0x2]*0xff),_0x94e846[_0x3926a4+0x3]=Math[_0x44ad39(0xbe)](_0x5f4da5[0x3]*_0x52e8b3*0xff),_0x94e846[_0x3926a4+0x3]>0x0&&(_0x507b52=Math['min'](_0x507b52,_0x209fd8),_0x80b92e=Math['min'](_0x80b92e,_0x5acd90),_0x20b976=Math[_0x44ad39(0xad)](_0x20b976,_0x209fd8),_0x43e4a5=Math[_0x44ad39(0xad)](_0x43e4a5,_0x5acd90));}}_0x398f57[_0x44ad39(0xbb)]=_0x20b976<0x0?null:{'west':_0x507b52/_0x398f57[_0x44ad39(0xb1)],'south':0x1-(_0x43e4a5+0x1)/_0x398f57[_0x44ad39(0xcd)],'east':(_0x20b976+0x1)/_0x398f57[_0x44ad39(0xb1)],'north':0x1-_0x80b92e/_0x398f57[_0x44ad39(0xcd)]};for(let _0x24cf34=0x0;_0x24cf34<_0x398f57[_0x44ad39(0xb1)];_0x24cf34+=0x1){_0x9d898e(_0x398f57['x']+_0x24cf34,_0x398f57['y']-0x1,(_0x398f57['y']*_0x1cda72[_0x44ad39(0xb1)]+_0x398f57['x']+_0x24cf34)*0x4),_0x9d898e(_0x398f57['x']+_0x24cf34,_0x398f57['y']+_0x398f57['height'],((_0x398f57['y']+_0x398f57[_0x44ad39(0xcd)]-0x1)*_0x1cda72[_0x44ad39(0xb1)]+_0x398f57['x']+_0x24cf34)*0x4);}for(let _0x57d12c=-0x1;_0x57d12c<=_0x398f57[_0x44ad39(0xcd)];_0x57d12c+=0x1){_0x9d898e(_0x398f57['x']-0x1,_0x398f57['y']+_0x57d12c,((_0x398f57['y']+Math[_0x44ad39(0xad)](0x0,Math[_0x44ad39(0xc1)](_0x398f57['height']-0x1,_0x57d12c)))*_0x1cda72[_0x44ad39(0xb1)]+_0x398f57['x'])*0x4),_0x9d898e(_0x398f57['x']+_0x398f57[_0x44ad39(0xb1)],_0x398f57['y']+_0x57d12c,((_0x398f57['y']+Math[_0x44ad39(0xad)](0x0,Math[_0x44ad39(0xc1)](_0x398f57[_0x44ad39(0xcd)]-0x1,_0x57d12c)))*_0x1cda72[_0x44ad39(0xb1)]+_0x398f57['x']+_0x398f57[_0x44ad39(0xb1)]-0x1)*0x4);}}return{'layout':_0x1cda72,'pixels':_0x94e846};};export const createNativeAxisSliceImage=(_0x262ed9,_0x870e7b,_0x2c4c64,_0x5ffcda)=>{const _0xad571d=_0x2a36,[_0x10712d,_0x4327de,_0x5e2902]=_0x262ed9[_0xad571d(0xb0)],_0x552d8c=_0x870e7b==='x'?_0x10712d:_0x870e7b==='y'?_0x4327de:_0x5e2902;if(!Number[_0xad571d(0xc6)](_0x2c4c64)||_0x2c4c64<0x0||_0x2c4c64>=_0x552d8c)throw new RangeError(_0xad571d(0xbd)+_0x870e7b['toUpperCase']()+_0xad571d(0xc3)+_0x870e7b['toUpperCase']()+'\x20切片索引越界。');const _0x192715=_0x870e7b==='x'?_0x5e2902:_0x10712d,_0x5ccca9=_0x870e7b==='y'?_0x5e2902:_0x4327de,_0x34edf0=new Uint8ClampedArray(_0x192715*_0x5ccca9*0x4),_0x2488ab=prepareWebgpuVolumeTransfer(_0x5ffcda[_0xad571d(0xcc)],_0x5ffcda[_0xad571d(0xd2)]),_0x34eb7b=(_0x1a18ca,_0x5b40f7,_0x179a67)=>_0x262ed9[_0xad571d(0xcb)][(_0x179a67*_0x4327de+_0x5b40f7)*_0x10712d+_0x1a18ca];for(let _0x25bc6a=0x0;_0x25bc6a<_0x5ccca9;_0x25bc6a+=0x1){for(let _0x5204d3=0x0;_0x5204d3<_0x192715;_0x5204d3+=0x1){const _0x4020e1=_0x870e7b==='x'?_0x34eb7b(_0x2c4c64,_0x4327de-_0x25bc6a-0x1,_0x5204d3):_0x870e7b==='y'?_0x34eb7b(_0x5204d3,_0x2c4c64,_0x5e2902-_0x25bc6a-0x1):_0x34eb7b(_0x5204d3,_0x4327de-_0x25bc6a-0x1,_0x2c4c64),_0x1cc06b=sampleVolumeTransferColor(_0x4020e1,_0x2488ab[_0xad571d(0xcc)],0x1,_0x5ffcda[_0xad571d(0xae)]),_0x43827d=_0x4020e1<=0x0?0x0:sampleVolumeTransferOpacity(_0x4020e1,_0x2488ab[_0xad571d(0xd2)],_0x5ffcda[_0xad571d(0xae)]),_0x52db05=(_0x25bc6a*_0x192715+_0x5204d3)*0x4;_0x34edf0[_0x52db05]=Math['round'](_0x1cc06b[0x0]*0xff),_0x34edf0[_0x52db05+0x1]=Math[_0xad571d(0xbe)](_0x1cc06b[0x1]*0xff),_0x34edf0[_0x52db05+0x2]=Math['round'](_0x1cc06b[0x2]*0xff),_0x34edf0[_0x52db05+0x3]=Math[_0xad571d(0xbe)](_0x1cc06b[0x3]*_0x43827d*0xff);}}return{'width':_0x192715,'height':_0x5ccca9,'pixels':_0x34edf0};};
@@ -1 +1 @@
1
- function _0x1fc1(_0x1b9920,_0x3d8448){const _0x150241=_0x1502();return _0x1fc1=function(_0x1fc167,_0x963e6a){_0x1fc167=_0x1fc167-0x15a;let _0x185326=_0x150241[_0x1fc167];return _0x185326;},_0x1fc1(_0x1b9920,_0x3d8448);}function _0x1502(){const _0x45a0fb=['567978EFdkpQ','fromScale','Matrix4','704938lZZNOG','min','radii','end','some','4862752indSwH','1472364MIJqwI','values','Ellipsoid','30YDbMyl','1269380kESlEu','3zaCUtG','dimensions','value','start','max','Cartesian3','metadata','fromMetadataArray','Native\x20voxel\x20tile\x20coordinate\x20is\x20out\x20of\x20range.\x20原生体素瓦片坐标越界。','27495162FapemC','673975FFlkCq','ceil','round','log2','SCALAR','resolve','map','ELLIPSOID','MetadataType','WGS84'];_0x1502=function(){return _0x45a0fb;};return _0x1502();}(function(_0x308720,_0x481e44){const _0x26df92=_0x1fc1,_0x11830b=_0x308720();while(!![]){try{const _0xd46e4c=-parseInt(_0x26df92(0x175))/0x1+-parseInt(_0x26df92(0x172))/0x2*(parseInt(_0x26df92(0x15e))/0x3)+-parseInt(_0x26df92(0x17b))/0x4+-parseInt(_0x26df92(0x168))/0x5*(parseInt(_0x26df92(0x15c))/0x6)+parseInt(_0x26df92(0x15d))/0x7+-parseInt(_0x26df92(0x17a))/0x8+parseInt(_0x26df92(0x167))/0x9;if(_0xd46e4c===_0x481e44)break;else _0x11830b['push'](_0x11830b['shift']());}catch(_0x48a79a){_0x11830b['push'](_0x11830b['shift']());}}}(_0x1502,0x91e11));const degreesToRadians=_0x56f04b=>_0x56f04b*Math['PI']/0xb4,TILE_DIMENSIONS=[0x40,0x40,0x20],MAXIMUM_AVAILABLE_LEVELS=0x3,getAvailableLevels=_0x6a4cfb=>{const _0x5acf87=_0x1fc1,_0x1f940f=[_0x6a4cfb[_0x5acf87(0x15f)][0x0],_0x6a4cfb[_0x5acf87(0x15f)][0x2],_0x6a4cfb[_0x5acf87(0x15f)][0x1]],_0x4c571e=_0x1f940f[_0x5acf87(0x16e)]((_0x57da7a,_0x5165c1)=>_0x57da7a/TILE_DIMENSIONS[_0x5165c1]);return Math[_0x5acf87(0x176)](MAXIMUM_AVAILABLE_LEVELS,Math['max'](0x1,Math[_0x5acf87(0x169)](Math[_0x5acf87(0x16b)](Math['max'](..._0x4c571e)))+0x1));},getMaximumTileCount=_0x54a6c6=>{let _0xab6092=0x0;for(let _0x2d8482=0x0;_0x2d8482<_0x54a6c6;_0x2d8482+=0x1)_0xab6092+=0x8**_0x2d8482;return _0xab6092;};export const createNativeVoxelTile=(_0x55ceac,_0x1ff93d,_0x2b7341,_0x4ac80c,_0x97d5e8)=>{const _0x42bdfa=_0x1fc1,_0x45589a=0x2**_0x1ff93d;if([_0x2b7341,_0x4ac80c,_0x97d5e8][_0x42bdfa(0x179)](_0xd2dcf7=>_0xd2dcf7<0x0||_0xd2dcf7>=_0x45589a))throw new RangeError(_0x42bdfa(0x166));const [_0xfdc230,_0x1d6cc8,_0x3972c8]=TILE_DIMENSIONS,[_0x30c974,_0x347c9f,_0x2871e1]=_0x55ceac[_0x42bdfa(0x15f)],_0x56bc16=new Uint8Array(_0xfdc230*_0x1d6cc8*_0x3972c8);for(let _0x1b2164=0x0;_0x1b2164<_0x3972c8;_0x1b2164+=0x1){const _0x429e1a=(_0x97d5e8+(_0x1b2164+0.5)/_0x3972c8)/_0x45589a,_0x34560e=Math[_0x42bdfa(0x162)](0x0,Math[_0x42bdfa(0x176)](_0x347c9f-0x1,Math['round'](_0x429e1a*_0x347c9f-0.5)));for(let _0xc0ae8b=0x0;_0xc0ae8b<_0x1d6cc8;_0xc0ae8b+=0x1){const _0x57c961=(_0x4ac80c+(_0xc0ae8b+0.5)/_0x1d6cc8)/_0x45589a,_0x54a830=Math[_0x42bdfa(0x162)](0x0,Math['min'](_0x2871e1-0x1,Math[_0x42bdfa(0x16a)](_0x57c961*_0x2871e1-0.5)));for(let _0x19d4c6=0x0;_0x19d4c6<_0xfdc230;_0x19d4c6+=0x1){const _0x251df5=(_0x2b7341+(_0x19d4c6+0.5)/_0xfdc230)/_0x45589a,_0x2d8748=Math[_0x42bdfa(0x162)](0x0,Math[_0x42bdfa(0x176)](_0x30c974-0x1,Math[_0x42bdfa(0x16a)](_0x251df5*_0x30c974-0.5)));_0x56bc16[(_0x1b2164*_0x1d6cc8+_0xc0ae8b)*_0xfdc230+_0x19d4c6]=_0x55ceac[_0x42bdfa(0x15a)][(_0x54a830*_0x347c9f+_0x34560e)*_0x30c974+_0x2d8748];}}}return _0x56bc16;};export const createNativeVoxelProvider=(_0x57262b,_0x23f29f,_0x235100,_0x3f5f13)=>{const _0x289ad6=_0x1fc1,{xAxis:_0x6264bb,yAxis:_0x3e81b2,zAxis:_0x5c668c}=_0x23f29f[_0x289ad6(0x164)],_0x242903=Math[_0x289ad6(0x176)](_0x3e81b2[_0x289ad6(0x161)],_0x3e81b2[_0x289ad6(0x178)]),_0x39318d=_0x242903+Math['abs'](_0x3e81b2[_0x289ad6(0x178)]-_0x3e81b2['start'])*_0x3f5f13,_0x421271=new _0x57262b['Cartesian3'](degreesToRadians(Math[_0x289ad6(0x176)](_0x6264bb[_0x289ad6(0x161)],_0x6264bb['end'])),degreesToRadians(Math[_0x289ad6(0x176)](_0x5c668c[_0x289ad6(0x161)],_0x5c668c['end'])),_0x242903),_0x362984=new _0x57262b['Cartesian3'](degreesToRadians(Math[_0x289ad6(0x162)](_0x6264bb[_0x289ad6(0x161)],_0x6264bb['end'])),degreesToRadians(Math[_0x289ad6(0x162)](_0x5c668c['start'],_0x5c668c[_0x289ad6(0x178)])),_0x39318d),_0x280f40=new _0x57262b[(_0x289ad6(0x163))](TILE_DIMENSIONS[0x0],TILE_DIMENSIONS[0x1],TILE_DIMENSIONS[0x2]),_0x73844a=new _0x57262b[(_0x289ad6(0x163))](0x0,0x0,0x0),_0x376391=getAvailableLevels(_0x235100);return{'globalTransform':_0x57262b[_0x289ad6(0x174)][_0x289ad6(0x173)](_0x57262b[_0x289ad6(0x15b)][_0x289ad6(0x171)][_0x289ad6(0x177)]),'shapeTransform':_0x57262b[_0x289ad6(0x174)]['IDENTITY'],'shape':_0x57262b['VoxelShapeType'][_0x289ad6(0x16f)],'minBounds':_0x421271,'maxBounds':_0x362984,'dimensions':_0x280f40,'paddingBefore':_0x73844a,'paddingAfter':_0x73844a,'names':[_0x289ad6(0x160)],'types':[_0x57262b[_0x289ad6(0x170)][_0x289ad6(0x16c)]],'componentTypes':[_0x57262b['MetadataComponentType']['UINT8']],'minimumValues':[[_0x235100['minimumValue']]],'maximumValues':[[_0x235100['maximumValue']]],'maximumTileCount':getMaximumTileCount(_0x376391),'availableLevels':_0x376391,'requestData':(_0x444190={})=>{const _0x584fbd=_0x289ad6,{tileLevel:tileLevel=0x0,tileX:tileX=0x0,tileY:tileY=0x0,tileZ:tileZ=0x0}=_0x444190;if(tileLevel<0x0||tileLevel>=_0x376391)return undefined;const _0x1ad834=createNativeVoxelTile(_0x235100,tileLevel,tileX,tileY,tileZ);return Promise[_0x584fbd(0x16d)](_0x57262b['VoxelContent'][_0x584fbd(0x165)]([_0x1ad834]));}};};
1
+ function _0xac11(_0x4c542f,_0x5b5c6d){const _0x30f163=_0x30f1();return _0xac11=function(_0xac11be,_0x50799e){_0xac11be=_0xac11be-0xc7;let _0x335f2c=_0x30f163[_0xac11be];return _0x335f2c;},_0xac11(_0x4c542f,_0x5b5c6d);}function _0x30f1(){const _0x382122=['WGS84','MetadataComponentType','min','473484eNltmO','resolve','max','VoxelContent','UINT8','MetadataType','IDENTITY','40537BvXKrl','713998tsNMVH','233898SzYiUz','end','dimensions','log2','86985iJLaMJ','radii','start','SCALAR','Matrix4','minimumValue','ELLIPSOID','6500710ZXkMvc','some','2835288NMYRod','1IdKtSe','Cartesian3','fromScale','VoxelShapeType','maximumValue','126eXfBzR','round','abs','value','520OzDBix'];_0x30f1=function(){return _0x382122;};return _0x30f1();}(function(_0x3cd13d,_0x36e821){const _0x13250d=_0xac11,_0x3c8ae0=_0x3cd13d();while(!![]){try{const _0x1b7348=-parseInt(_0x13250d(0xd2))/0x1*(-parseInt(_0x13250d(0xe7))/0x2)+parseInt(_0x13250d(0xe8))/0x3+parseInt(_0x13250d(0xdf))/0x4+-parseInt(_0x13250d(0xc8))/0x5*(-parseInt(_0x13250d(0xd7))/0x6)+-parseInt(_0x13250d(0xe6))/0x7*(parseInt(_0x13250d(0xdb))/0x8)+parseInt(_0x13250d(0xd1))/0x9+-parseInt(_0x13250d(0xcf))/0xa;if(_0x1b7348===_0x36e821)break;else _0x3c8ae0['push'](_0x3c8ae0['shift']());}catch(_0x2a8991){_0x3c8ae0['push'](_0x3c8ae0['shift']());}}}(_0x30f1,0x32973));const degreesToRadians=_0x5f13f6=>_0x5f13f6*Math['PI']/0xb4,TILE_DIMENSIONS=[0x40,0x40,0x20],MAXIMUM_AVAILABLE_LEVELS=0x3,getAvailableLevels=_0x25ca94=>{const _0x3e7ae8=_0xac11,_0x19fd64=[_0x25ca94[_0x3e7ae8(0xea)][0x0],_0x25ca94['dimensions'][0x2],_0x25ca94['dimensions'][0x1]],_0x522b99=_0x19fd64['map']((_0x6ef564,_0x4cfdcb)=>_0x6ef564/TILE_DIMENSIONS[_0x4cfdcb]);return Math[_0x3e7ae8(0xde)](MAXIMUM_AVAILABLE_LEVELS,Math[_0x3e7ae8(0xe1)](0x1,Math['ceil'](Math[_0x3e7ae8(0xc7)](Math[_0x3e7ae8(0xe1)](..._0x522b99)))+0x1));},getMaximumTileCount=_0x467bfa=>{let _0x36f990=0x0;for(let _0x463235=0x0;_0x463235<_0x467bfa;_0x463235+=0x1)_0x36f990+=0x8**_0x463235;return _0x36f990;};export const createNativeVoxelTile=(_0x251057,_0x3ad76e,_0x4e697c,_0x12a832,_0x1a55ca)=>{const _0x3569cd=_0xac11,_0xc05a40=0x2**_0x3ad76e;if([_0x4e697c,_0x12a832,_0x1a55ca][_0x3569cd(0xd0)](_0x17e369=>_0x17e369<0x0||_0x17e369>=_0xc05a40))throw new RangeError('Native\x20voxel\x20tile\x20coordinate\x20is\x20out\x20of\x20range.\x20原生体素瓦片坐标越界。');const [_0x78ba71,_0x108010,_0xf1c97f]=TILE_DIMENSIONS,[_0x58de84,_0x50b019,_0x558a2b]=_0x251057['dimensions'],_0x1fde78=new Uint8Array(_0x78ba71*_0x108010*_0xf1c97f);for(let _0x568c48=0x0;_0x568c48<_0xf1c97f;_0x568c48+=0x1){const _0x2f7d8f=(_0x1a55ca+(_0x568c48+0.5)/_0xf1c97f)/_0xc05a40,_0x102c77=Math['max'](0x0,Math[_0x3569cd(0xde)](_0x50b019-0x1,Math['round'](_0x2f7d8f*_0x50b019-0.5)));for(let _0x468086=0x0;_0x468086<_0x108010;_0x468086+=0x1){const _0x36d148=(_0x12a832+(_0x468086+0.5)/_0x108010)/_0xc05a40,_0x7e41ed=Math['max'](0x0,Math['min'](_0x558a2b-0x1,Math[_0x3569cd(0xd8)](_0x36d148*_0x558a2b-0.5)));for(let _0xb3654a=0x0;_0xb3654a<_0x78ba71;_0xb3654a+=0x1){const _0xbc7f1a=(_0x4e697c+(_0xb3654a+0.5)/_0x78ba71)/_0xc05a40,_0x45a880=Math[_0x3569cd(0xe1)](0x0,Math[_0x3569cd(0xde)](_0x58de84-0x1,Math[_0x3569cd(0xd8)](_0xbc7f1a*_0x58de84-0.5)));_0x1fde78[(_0x568c48*_0x108010+_0x468086)*_0x78ba71+_0xb3654a]=_0x251057['values'][(_0x7e41ed*_0x50b019+_0x102c77)*_0x58de84+_0x45a880];}}}return _0x1fde78;};export const createNativeVoxelProvider=(_0x394178,_0x683015,_0x59d740,_0xc07844)=>{const _0x5f2317=_0xac11,{xAxis:_0x21e20a,yAxis:_0x3f24d8,zAxis:_0x551a66}=_0x683015['metadata'],_0x46b681=Math[_0x5f2317(0xde)](_0x3f24d8['start'],_0x3f24d8[_0x5f2317(0xe9)]),_0x453d03=_0x46b681+Math[_0x5f2317(0xd9)](_0x3f24d8[_0x5f2317(0xe9)]-_0x3f24d8[_0x5f2317(0xca)])*_0xc07844,_0x531e2e=new _0x394178[(_0x5f2317(0xd3))](degreesToRadians(Math['min'](_0x21e20a[_0x5f2317(0xca)],_0x21e20a[_0x5f2317(0xe9)])),degreesToRadians(Math['min'](_0x551a66['start'],_0x551a66[_0x5f2317(0xe9)])),_0x46b681),_0x3612e1=new _0x394178[(_0x5f2317(0xd3))](degreesToRadians(Math['max'](_0x21e20a[_0x5f2317(0xca)],_0x21e20a[_0x5f2317(0xe9)])),degreesToRadians(Math[_0x5f2317(0xe1)](_0x551a66[_0x5f2317(0xca)],_0x551a66['end'])),_0x453d03),_0x1e5cbb=new _0x394178[(_0x5f2317(0xd3))](TILE_DIMENSIONS[0x0],TILE_DIMENSIONS[0x1],TILE_DIMENSIONS[0x2]),_0xf5547c=new _0x394178['Cartesian3'](0x0,0x0,0x0),_0x32d899=getAvailableLevels(_0x59d740);return{'globalTransform':_0x394178[_0x5f2317(0xcc)][_0x5f2317(0xd4)](_0x394178['Ellipsoid'][_0x5f2317(0xdc)][_0x5f2317(0xc9)]),'shapeTransform':_0x394178['Matrix4'][_0x5f2317(0xe5)],'shape':_0x394178[_0x5f2317(0xd5)][_0x5f2317(0xce)],'minBounds':_0x531e2e,'maxBounds':_0x3612e1,'dimensions':_0x1e5cbb,'paddingBefore':_0xf5547c,'paddingAfter':_0xf5547c,'names':[_0x5f2317(0xda)],'types':[_0x394178[_0x5f2317(0xe4)][_0x5f2317(0xcb)]],'componentTypes':[_0x394178[_0x5f2317(0xdd)][_0x5f2317(0xe3)]],'minimumValues':[[_0x59d740[_0x5f2317(0xcd)]]],'maximumValues':[[_0x59d740[_0x5f2317(0xd6)]]],'maximumTileCount':getMaximumTileCount(_0x32d899),'availableLevels':_0x32d899,'requestData':(_0x416299={})=>{const _0x2b414c=_0x5f2317,{tileLevel:tileLevel=0x0,tileX:tileX=0x0,tileY:tileY=0x0,tileZ:tileZ=0x0}=_0x416299;if(tileLevel<0x0||tileLevel>=_0x32d899)return undefined;const _0x4ccb97=createNativeVoxelTile(_0x59d740,tileLevel,tileX,tileY,tileZ);return Promise[_0x2b414c(0xe0)](_0x394178[_0x2b414c(0xe2)]['fromMetadataArray']([_0x4ccb97]));}};};
@@ -1 +1 @@
1
- const _0x542fb7=_0x5f44;(function(_0x47eae2,_0x459d28){const _0x14918e=_0x5f44,_0x28323f=_0x47eae2();while(!![]){try{const _0x667572=-parseInt(_0x14918e(0x1de))/0x1+-parseInt(_0x14918e(0x1fd))/0x2+-parseInt(_0x14918e(0x1fa))/0x3*(parseInt(_0x14918e(0x1e8))/0x4)+-parseInt(_0x14918e(0x1f1))/0x5*(-parseInt(_0x14918e(0x1f0))/0x6)+-parseInt(_0x14918e(0x1ec))/0x7*(-parseInt(_0x14918e(0x200))/0x8)+-parseInt(_0x14918e(0x1ef))/0x9*(-parseInt(_0x14918e(0x1fe))/0xa)+-parseInt(_0x14918e(0x1ed))/0xb*(-parseInt(_0x14918e(0x1e5))/0xc);if(_0x667572===_0x459d28)break;else _0x28323f['push'](_0x28323f['shift']());}catch(_0x5236b7){_0x28323f['push'](_0x28323f['shift']());}}}(_0x5d36,0x838a5));import{prepareWebgpuVolumeTransfer}from'../volume-scene/volumeTransfer';const toShaderFloat=_0x3eb38c=>{const _0x3f4f88=_0x5f44;if(_0x3eb38c===Number[_0x3f4f88(0x1e3)])return _0x3f4f88(0x1fc);if(_0x3eb38c===Number[_0x3f4f88(0x1e9)])return _0x3f4f88(0x1f2);if(!Number[_0x3f4f88(0x1ea)](_0x3eb38c))throw new Error(_0x3f4f88(0x1f3)+_0x3eb38c+_0x3f4f88(0x1e6));return Number['isInteger'](_0x3eb38c)?_0x3eb38c+'.0':String(_0x3eb38c);},colorExpression=_0x2d32f0=>'vec3('+toShaderFloat(_0x2d32f0[0x0])+',\x20'+toShaderFloat(_0x2d32f0[0x1])+',\x20'+toShaderFloat(_0x2d32f0[0x2])+')',createColorFunction=(_0x109a83,_0x43dbd6,_0x21e453)=>{const _0xbf3640=_0x5f44,_0x2a7bee=prepareWebgpuVolumeTransfer(_0x109a83,_0x21e453)[_0xbf3640(0x1e2)],_0x42e41d=[_0xbf3640(0x1f7),'\x20\x20\x20\x20if\x20(value\x20<=\x20'+toShaderFloat(_0x2a7bee[0x0][_0xbf3640(0x1f8)])+_0xbf3640(0x1eb)+colorExpression(_0x2a7bee[0x0][_0xbf3640(0x1e4)])+';'];for(let _0x11660e=0x1;_0x11660e<_0x2a7bee[_0xbf3640(0x1e7)];_0x11660e+=0x1){const _0x495a25=_0x2a7bee[_0x11660e-0x1],_0x5c3682=_0x2a7bee[_0x11660e],_0xea511d=_0x43dbd6===_0xbf3640(0x1f6)?colorExpression(_0x495a25['color']):'mix('+colorExpression(_0x495a25['color'])+',\x20'+colorExpression(_0x5c3682[_0xbf3640(0x1e4)])+_0xbf3640(0x1f4)+toShaderFloat(_0x495a25[_0xbf3640(0x1f8)])+')\x20/\x20max('+toShaderFloat(_0x5c3682[_0xbf3640(0x1f8)]-_0x495a25[_0xbf3640(0x1f8)])+_0xbf3640(0x1f5);_0x42e41d[_0xbf3640(0x1ee)](_0xbf3640(0x1df)+toShaderFloat(_0x5c3682[_0xbf3640(0x1f8)])+_0xbf3640(0x1eb)+_0xea511d+';');}return _0x42e41d[_0xbf3640(0x1ee)](_0xbf3640(0x1ff)+colorExpression(_0x2a7bee[_0x2a7bee[_0xbf3640(0x1e7)]-0x1][_0xbf3640(0x1e4)])+';','}'),_0x42e41d['join']('\x0a');},createOpacityFunction=(_0x1ec1b8,_0x557e20)=>{const _0x102003=_0x5f44;if(_0x1ec1b8['length']===0x0)throw new Error(_0x102003(0x1e1));const _0x28b330=[_0x102003(0x1e0),_0x102003(0x1df)+toShaderFloat(_0x1ec1b8[0x0][_0x102003(0x1f8)])+_0x102003(0x1eb)+toShaderFloat(_0x1ec1b8[0x0]['opacity'])+';'];for(let _0x14e7be=0x1;_0x14e7be<_0x1ec1b8['length'];_0x14e7be+=0x1){const _0x5160cb=_0x1ec1b8[_0x14e7be-0x1],_0xac5033=_0x1ec1b8[_0x14e7be],_0x199ed6=_0x557e20===_0x102003(0x1f6)?toShaderFloat(_0x5160cb[_0x102003(0x1fb)]):'mix('+toShaderFloat(_0x5160cb[_0x102003(0x1fb)])+',\x20'+toShaderFloat(_0xac5033[_0x102003(0x1fb)])+_0x102003(0x1f4)+toShaderFloat(_0x5160cb[_0x102003(0x1f8)])+')\x20/\x20max('+toShaderFloat(_0xac5033[_0x102003(0x1f8)]-_0x5160cb[_0x102003(0x1f8)])+',\x200.000001),\x200.0,\x201.0))';_0x28b330[_0x102003(0x1ee)](_0x102003(0x1df)+toShaderFloat(_0xac5033[_0x102003(0x1f8)])+_0x102003(0x1eb)+_0x199ed6+';');}return _0x28b330['push'](_0x102003(0x1ff)+toShaderFloat(_0x1ec1b8[_0x1ec1b8['length']-0x1]['opacity'])+';','}'),_0x28b330['join']('\x0a');};function _0x5d36(){const _0x1f7f87=['value','\x0a\x0avoid\x20fragmentMain(FragmentInput\x20fsInput,\x20inout\x20czm_modelMaterial\x20material)\x20{\x0a\x20\x20\x20\x20float\x20value\x20=\x20float(fsInput.metadata.value)\x20*\x20255.0;\x0a\x20\x20\x20\x20float\x20opacity\x20=\x20sampleTransferOpacity(value);\x0a\x20\x20\x20\x20material.diffuse\x20=\x20sampleTransferColor(value);\x0a\x20\x20\x20\x20material.alpha\x20=\x201.0\x20-\x20exp(-opacity\x20*\x20u_opacity\x20*\x20u_densityScale\x20*\x200.0008);\x0a}','564GvhMqW','opacity','3.402823466e38','957980krCjFJ','577770KBzgYJ','\x20\x20\x20\x20return\x20','65672pUArcB','90418jJxrYY','\x20\x20\x20\x20if\x20(value\x20<=\x20','float\x20sampleTransferOpacity(float\x20value)\x20{','Native\x20volume\x20opacity\x20stops\x20cannot\x20be\x20empty.\x20原生体积透明度节点不能为空。','colorStops','POSITIVE_INFINITY','color','4037556FazapY','.\x20Shader\x20数值必须有限或为无穷。','length','13084bsMHFI','NEGATIVE_INFINITY','isFinite',')\x20return\x20','112csoYGb','22moYMvp','push','63UsjNpK','237432LBviQJ','65svmVfB','-3.402823466e38','Shader\x20value\x20must\x20be\x20finite\x20or\x20infinity:\x20',',\x20clamp((value\x20-\x20',',\x200.000001),\x200.0,\x201.0))','step','vec3\x20sampleTransferColor(float\x20value)\x20{'];_0x5d36=function(){return _0x1f7f87;};return _0x5d36();}function _0x5f44(_0x22e19d,_0x434f52){const _0x5d362c=_0x5d36();return _0x5f44=function(_0x5f44ca,_0x3f52c4){_0x5f44ca=_0x5f44ca-0x1de;let _0x4bd5b8=_0x5d362c[_0x5f44ca];return _0x4bd5b8;},_0x5f44(_0x22e19d,_0x434f52);}export const createNativeVoxelFragmentShader=(_0x358d76,_0x1711d6,_0x4e97e4)=>createColorFunction(_0x358d76,_0x4e97e4,_0x1711d6)+'\x0a\x0a'+createOpacityFunction(_0x1711d6,_0x4e97e4)+_0x542fb7(0x1f9);
1
+ function _0x388c(){const _0x10397a=['opacity','color','3.402823466e38','373308oyWYzM',',\x200.000001),\x200.0,\x201.0))','isFinite','push','\x0a\x0avoid\x20fragmentMain(FragmentInput\x20fsInput,\x20inout\x20czm_modelMaterial\x20material)\x20{\x0a\x20\x20\x20\x20float\x20value\x20=\x20float(fsInput.metadata.value)\x20*\x20255.0;\x0a\x20\x20\x20\x20float\x20opacity\x20=\x20sampleTransferOpacity(value);\x0a\x20\x20\x20\x20material.diffuse\x20=\x20sampleTransferColor(value);\x0a\x20\x20\x20\x20material.alpha\x20=\x201.0\x20-\x20exp(-opacity\x20*\x20u_opacity\x20*\x20u_densityScale\x20*\x200.0008);\x0a}','1568uZqgXs','305xJhXpa','1281506BJsmCn','join','POSITIVE_INFINITY','\x20\x20\x20\x20return\x20','Shader\x20value\x20must\x20be\x20finite\x20or\x20infinity:\x20','value',',\x20clamp((value\x20-\x20','NEGATIVE_INFINITY','10610WQTCTG','22190663NQmmen','46186mJPwbZ',')\x20return\x20','length','colorStops','isInteger','1413QiMrfA','step','1689MiFXDs',')\x20/\x20max(','4292oeXBmA','vec3(','12xLfAJw','\x20\x20\x20\x20if\x20(value\x20<=\x20','.\x20Shader\x20数值必须有限或为无穷。','float\x20sampleTransferOpacity(float\x20value)\x20{','mix(','96268DpYiNM'];_0x388c=function(){return _0x10397a;};return _0x388c();}const _0x13fc85=_0x2ab2;function _0x2ab2(_0x1fc027,_0x3e13ea){const _0x388ceb=_0x388c();return _0x2ab2=function(_0x2ab219,_0x3f57fd){_0x2ab219=_0x2ab219-0x113;let _0x450469=_0x388ceb[_0x2ab219];return _0x450469;},_0x2ab2(_0x1fc027,_0x3e13ea);}(function(_0x12856c,_0x47a5a3){const _0x47e647=_0x2ab2,_0x572cd7=_0x12856c();while(!![]){try{const _0x2f9224=-parseInt(_0x47e647(0x133))/0x1+-parseInt(_0x47e647(0x121))/0x2*(-parseInt(_0x47e647(0x11f))/0x3)+-parseInt(_0x47e647(0x128))/0x4*(-parseInt(_0x47e647(0x132))/0x5)+-parseInt(_0x47e647(0x12c))/0x6+-parseInt(_0x47e647(0x118))/0x7*(-parseInt(_0x47e647(0x131))/0x8)+-parseInt(_0x47e647(0x11d))/0x9*(-parseInt(_0x47e647(0x116))/0xa)+parseInt(_0x47e647(0x117))/0xb*(-parseInt(_0x47e647(0x123))/0xc);if(_0x2f9224===_0x47a5a3)break;else _0x572cd7['push'](_0x572cd7['shift']());}catch(_0x3071ac){_0x572cd7['push'](_0x572cd7['shift']());}}}(_0x388c,0xbd365));import{prepareWebgpuVolumeTransfer}from'../volume-scene/volumeTransfer';const toShaderFloat=_0x26b373=>{const _0x129262=_0x2ab2;if(_0x26b373===Number[_0x129262(0x135)])return _0x129262(0x12b);if(_0x26b373===Number[_0x129262(0x115)])return'-3.402823466e38';if(!Number[_0x129262(0x12e)](_0x26b373))throw new Error(_0x129262(0x137)+_0x26b373+_0x129262(0x125));return Number[_0x129262(0x11c)](_0x26b373)?_0x26b373+'.0':String(_0x26b373);},colorExpression=_0x371f4d=>_0x13fc85(0x122)+toShaderFloat(_0x371f4d[0x0])+',\x20'+toShaderFloat(_0x371f4d[0x1])+',\x20'+toShaderFloat(_0x371f4d[0x2])+')',createColorFunction=(_0x3385b5,_0x4a268a,_0x2d597e)=>{const _0x59c901=_0x13fc85,_0x51fd45=prepareWebgpuVolumeTransfer(_0x3385b5,_0x2d597e)[_0x59c901(0x11b)],_0x17e072=['vec3\x20sampleTransferColor(float\x20value)\x20{',_0x59c901(0x124)+toShaderFloat(_0x51fd45[0x0][_0x59c901(0x113)])+')\x20return\x20'+colorExpression(_0x51fd45[0x0][_0x59c901(0x12a)])+';'];for(let _0x29f48e=0x1;_0x29f48e<_0x51fd45[_0x59c901(0x11a)];_0x29f48e+=0x1){const _0x38729d=_0x51fd45[_0x29f48e-0x1],_0x549ca0=_0x51fd45[_0x29f48e],_0x159d0c=_0x4a268a===_0x59c901(0x11e)?colorExpression(_0x38729d[_0x59c901(0x12a)]):'mix('+colorExpression(_0x38729d['color'])+',\x20'+colorExpression(_0x549ca0['color'])+',\x20clamp((value\x20-\x20'+toShaderFloat(_0x38729d[_0x59c901(0x113)])+')\x20/\x20max('+toShaderFloat(_0x549ca0[_0x59c901(0x113)]-_0x38729d['value'])+_0x59c901(0x12d);_0x17e072[_0x59c901(0x12f)]('\x20\x20\x20\x20if\x20(value\x20<=\x20'+toShaderFloat(_0x549ca0[_0x59c901(0x113)])+_0x59c901(0x119)+_0x159d0c+';');}return _0x17e072[_0x59c901(0x12f)]('\x20\x20\x20\x20return\x20'+colorExpression(_0x51fd45[_0x51fd45[_0x59c901(0x11a)]-0x1][_0x59c901(0x12a)])+';','}'),_0x17e072[_0x59c901(0x134)]('\x0a');},createOpacityFunction=(_0x392df,_0x5ad951)=>{const _0x1aad6e=_0x13fc85;if(_0x392df[_0x1aad6e(0x11a)]===0x0)throw new Error('Native\x20volume\x20opacity\x20stops\x20cannot\x20be\x20empty.\x20原生体积透明度节点不能为空。');const _0x40db7d=[_0x1aad6e(0x126),_0x1aad6e(0x124)+toShaderFloat(_0x392df[0x0][_0x1aad6e(0x113)])+')\x20return\x20'+toShaderFloat(_0x392df[0x0]['opacity'])+';'];for(let _0x4a9652=0x1;_0x4a9652<_0x392df[_0x1aad6e(0x11a)];_0x4a9652+=0x1){const _0x15c415=_0x392df[_0x4a9652-0x1],_0x29d760=_0x392df[_0x4a9652],_0xf895de=_0x5ad951===_0x1aad6e(0x11e)?toShaderFloat(_0x15c415['opacity']):_0x1aad6e(0x127)+toShaderFloat(_0x15c415[_0x1aad6e(0x129)])+',\x20'+toShaderFloat(_0x29d760['opacity'])+_0x1aad6e(0x114)+toShaderFloat(_0x15c415['value'])+_0x1aad6e(0x120)+toShaderFloat(_0x29d760['value']-_0x15c415[_0x1aad6e(0x113)])+_0x1aad6e(0x12d);_0x40db7d[_0x1aad6e(0x12f)]('\x20\x20\x20\x20if\x20(value\x20<=\x20'+toShaderFloat(_0x29d760[_0x1aad6e(0x113)])+')\x20return\x20'+_0xf895de+';');}return _0x40db7d[_0x1aad6e(0x12f)](_0x1aad6e(0x136)+toShaderFloat(_0x392df[_0x392df[_0x1aad6e(0x11a)]-0x1][_0x1aad6e(0x129)])+';','}'),_0x40db7d[_0x1aad6e(0x134)]('\x0a');};export const createNativeVoxelFragmentShader=(_0xfdbbd5,_0x3ee3d9,_0x4de036)=>createColorFunction(_0xfdbbd5,_0x4de036,_0x3ee3d9)+'\x0a\x0a'+createOpacityFunction(_0x3ee3d9,_0x4de036)+_0x13fc85(0x130);
@@ -1 +1 @@
1
- (function(_0x523f9d,_0xdecf5d){const _0x44fca3=_0xf038,_0x2270c4=_0x523f9d();while(!![]){try{const _0x5672c4=-parseInt(_0x44fca3(0x7d))/0x1*(-parseInt(_0x44fca3(0x8e))/0x2)+parseInt(_0x44fca3(0x79))/0x3+-parseInt(_0x44fca3(0x8d))/0x4+parseInt(_0x44fca3(0x7a))/0x5+-parseInt(_0x44fca3(0x80))/0x6+-parseInt(_0x44fca3(0x84))/0x7*(-parseInt(_0x44fca3(0x77))/0x8)+-parseInt(_0x44fca3(0x81))/0x9*(-parseInt(_0x44fca3(0x88))/0xa);if(_0x5672c4===_0xdecf5d)break;else _0x2270c4['push'](_0x2270c4['shift']());}catch(_0x17ffdb){_0x2270c4['push'](_0x2270c4['shift']());}}}(_0x2399,0x28278));function _0x2399(){const _0x5a03f6=['14ZxLPxL','Native\x20voxel\x20chunk\x20requires\x20','Native\x20voxel\x20time\x20index\x20is\x20out\x20of\x20range:\x20','\x20values\x20but\x20received\x20','40DrDitq','length','metadata','count','NEGATIVE_INFINITY','602392hfQqnV','311662woFgFi','isFinite','max','.\x20原生体素块数据数量不匹配。','636976gyYWBQ','.\x20原生体素时间索引越界。','68181AoCoMY','1251700FpLgWb','valueScale','round','1VCZHQV','readChunk','min','1963488inghdd','121896KMrNFt','values','isSafeInteger'];_0x2399=function(){return _0x5a03f6;};return _0x2399();}const getSourceIndex=(_0x633008,_0x54b951,_0x4afa5a)=>_0x4afa5a['start']<=_0x4afa5a['end']?_0x633008:_0x54b951-_0x633008-0x1;function _0xf038(_0x35fef2,_0xe22aa3){const _0x2399c6=_0x2399();return _0xf038=function(_0xf03801,_0x15f293){_0xf03801=_0xf03801-0x76;let _0x19ac9b=_0x2399c6[_0xf03801];return _0x19ac9b;},_0xf038(_0x35fef2,_0xe22aa3);}export const normalizeNativeVoxelValues=(_0x16f2d0,_0x12d4e7)=>{const _0x2ff78d=_0xf038,{width:_0x160592,height:_0x479632,depth:_0x10a919}=_0x16f2d0,_0x45af0d=_0x160592*_0x479632*_0x10a919;if(_0x16f2d0[_0x2ff78d(0x82)][_0x2ff78d(0x89)]!==_0x45af0d)throw new Error(_0x2ff78d(0x85)+_0x45af0d+_0x2ff78d(0x87)+_0x16f2d0[_0x2ff78d(0x82)]['length']+_0x2ff78d(0x76));const _0xbaf74e=new Uint8Array(_0x45af0d),_0x2649af=_0x12d4e7['metadata'][_0x2ff78d(0x7b)]??0x1,_0x31b76e=_0x12d4e7[_0x2ff78d(0x8a)]['noData'];let _0x5dd6ea=Number['POSITIVE_INFINITY'],_0x491986=Number[_0x2ff78d(0x8c)];for(let _0x507eef=0x0;_0x507eef<_0x10a919;_0x507eef+=0x1){const _0x2b6f7a=getSourceIndex(_0x507eef,_0x10a919,_0x12d4e7[_0x2ff78d(0x8a)]['zAxis']);for(let _0x51c014=0x0;_0x51c014<_0x479632;_0x51c014+=0x1){const _0x51d911=getSourceIndex(_0x51c014,_0x479632,_0x12d4e7[_0x2ff78d(0x8a)]['yAxis']);for(let _0x1e585e=0x0;_0x1e585e<_0x160592;_0x1e585e+=0x1){const _0x3682dc=getSourceIndex(_0x1e585e,_0x160592,_0x12d4e7[_0x2ff78d(0x8a)]['xAxis']),_0x1bfe26=(_0x2b6f7a*_0x479632+_0x51d911)*_0x160592+_0x3682dc,_0x43bd13=(_0x507eef*_0x479632+_0x51c014)*_0x160592+_0x1e585e,_0x35e43d=_0x16f2d0[_0x2ff78d(0x82)][_0x1bfe26],_0xe87057=Number[_0x2ff78d(0x8f)](_0x35e43d)&&_0x35e43d!==_0x31b76e?_0x35e43d*_0x2649af:0x0,_0x5e0f09=Math[_0x2ff78d(0x90)](0x0,Math[_0x2ff78d(0x7f)](0xff,Math[_0x2ff78d(0x7c)](_0xe87057)));_0xbaf74e[_0x43bd13]=_0x5e0f09,_0x5e0f09>0x0&&(_0x5dd6ea=Math[_0x2ff78d(0x7f)](_0x5dd6ea,_0x5e0f09),_0x491986=Math[_0x2ff78d(0x90)](_0x491986,_0x5e0f09));}}}if(!Number[_0x2ff78d(0x8f)](_0x5dd6ea))_0x5dd6ea=0x0;if(!Number[_0x2ff78d(0x8f)](_0x491986))_0x491986=0x0;return{'values':_0xbaf74e,'dimensions':[_0x160592,_0x479632,_0x10a919],'minimumValue':_0x5dd6ea,'maximumValue':_0x491986};};export const loadNativeVoxelData=async(_0x2140a1,_0x364a0f,_0xb9c3d2)=>{const _0x2ff170=_0xf038,{xAxis:_0x22795a,yAxis:_0x218d6f,zAxis:_0x345095,timeCount:_0xeeb348}=_0x2140a1[_0x2ff170(0x8a)];if(!Number[_0x2ff170(0x83)](_0x364a0f)||_0x364a0f<0x0||_0x364a0f>=_0xeeb348)throw new RangeError(_0x2ff170(0x86)+_0x364a0f+_0x2ff170(0x78));const _0x4e6dda=await _0x2140a1[_0x2ff170(0x7e)](_0x364a0f,{'xStart':0x0,'xCount':_0x22795a[_0x2ff170(0x8b)],'levelStart':0x0,'levelCount':_0x218d6f[_0x2ff170(0x8b)],'sourceYStart':0x0,'sourceYCount':_0x345095[_0x2ff170(0x8b)]},_0xb9c3d2);return _0xb9c3d2?.['throwIfAborted'](),normalizeNativeVoxelValues(_0x4e6dda,_0x2140a1);};
1
+ const _0x1e8097=_0x58a1;(function(_0x375e8b,_0x4ba787){const _0x269863=_0x58a1,_0x456d0c=_0x375e8b();while(!![]){try{const _0x3c3ad9=-parseInt(_0x269863(0xd4))/0x1*(-parseInt(_0x269863(0xc7))/0x2)+-parseInt(_0x269863(0xcc))/0x3*(-parseInt(_0x269863(0xd5))/0x4)+-parseInt(_0x269863(0xca))/0x5+parseInt(_0x269863(0xd0))/0x6*(-parseInt(_0x269863(0xce))/0x7)+-parseInt(_0x269863(0xc1))/0x8+-parseInt(_0x269863(0xc6))/0x9+parseInt(_0x269863(0xbc))/0xa;if(_0x3c3ad9===_0x4ba787)break;else _0x456d0c['push'](_0x456d0c['shift']());}catch(_0x50b783){_0x456d0c['push'](_0x456d0c['shift']());}}}(_0x152f,0x42c4b));function _0x58a1(_0x2e641c,_0x32a5a5){const _0x152fb7=_0x152f();return _0x58a1=function(_0x58a183,_0x347c76){_0x58a183=_0x58a183-0xbc;let _0x383f84=_0x152fb7[_0x58a183];return _0x383f84;},_0x58a1(_0x2e641c,_0x32a5a5);}const getSourceIndex=(_0x2e4354,_0x5df1c4,_0xe64f4)=>_0xe64f4['start']<=_0xe64f4[_0x1e8097(0xcf)]?_0x2e4354:_0x5df1c4-_0x2e4354-0x1;export const normalizeNativeVoxelValues=(_0x5d32bd,_0x10ed01)=>{const _0x3a792a=_0x1e8097,{width:_0x4dc72f,height:_0x5b2ada,depth:_0x5ad1f0}=_0x5d32bd,_0x5dccb4=_0x4dc72f*_0x5b2ada*_0x5ad1f0;if(_0x5d32bd[_0x3a792a(0xbe)][_0x3a792a(0xcb)]!==_0x5dccb4)throw new Error('Native\x20voxel\x20chunk\x20requires\x20'+_0x5dccb4+'\x20values\x20but\x20received\x20'+_0x5d32bd[_0x3a792a(0xbe)][_0x3a792a(0xcb)]+'.\x20原生体素块数据数量不匹配。');const _0xaca08d=new Uint8Array(_0x5dccb4),_0xdb3e77=_0x10ed01['metadata'][_0x3a792a(0xc8)]??0x1,_0x104090=_0x10ed01[_0x3a792a(0xc2)]['noData'];let _0xc1fbdd=Number['POSITIVE_INFINITY'],_0x3c5ec4=Number[_0x3a792a(0xd2)];for(let _0x21ad19=0x0;_0x21ad19<_0x5ad1f0;_0x21ad19+=0x1){const _0x27a149=getSourceIndex(_0x21ad19,_0x5ad1f0,_0x10ed01['metadata'][_0x3a792a(0xc5)]);for(let _0x799542=0x0;_0x799542<_0x5b2ada;_0x799542+=0x1){const _0x543804=getSourceIndex(_0x799542,_0x5b2ada,_0x10ed01[_0x3a792a(0xc2)][_0x3a792a(0xc0)]);for(let _0x51c8ee=0x0;_0x51c8ee<_0x4dc72f;_0x51c8ee+=0x1){const _0x56e2be=getSourceIndex(_0x51c8ee,_0x4dc72f,_0x10ed01[_0x3a792a(0xc2)][_0x3a792a(0xbd)]),_0x3fcb9c=(_0x27a149*_0x5b2ada+_0x543804)*_0x4dc72f+_0x56e2be,_0x374faf=(_0x21ad19*_0x5b2ada+_0x799542)*_0x4dc72f+_0x51c8ee,_0x1fc6dc=_0x5d32bd['values'][_0x3fcb9c],_0x5cabb2=Number[_0x3a792a(0xc3)](_0x1fc6dc)&&_0x1fc6dc!==_0x104090?_0x1fc6dc*_0xdb3e77:0x0,_0x2a4b3d=Math['max'](0x0,Math['min'](0xff,Math[_0x3a792a(0xbf)](_0x5cabb2)));_0xaca08d[_0x374faf]=_0x2a4b3d,_0x2a4b3d>0x0&&(_0xc1fbdd=Math['min'](_0xc1fbdd,_0x2a4b3d),_0x3c5ec4=Math[_0x3a792a(0xc4)](_0x3c5ec4,_0x2a4b3d));}}}if(!Number[_0x3a792a(0xc3)](_0xc1fbdd))_0xc1fbdd=0x0;if(!Number['isFinite'](_0x3c5ec4))_0x3c5ec4=0x0;return{'values':_0xaca08d,'dimensions':[_0x4dc72f,_0x5b2ada,_0x5ad1f0],'minimumValue':_0xc1fbdd,'maximumValue':_0x3c5ec4};};function _0x152f(){const _0x5b5871=['.\x20原生体素时间索引越界。','68ArRfUu','4zDFvRt','7818770WiQEyi','xAxis','values','round','yAxis','3950136PqfXCd','metadata','isFinite','max','zAxis','797175hRYsAz','6596JHlgJb','valueScale','count','2375650GAqkUi','length','1119669YjYziV','throwIfAborted','7wRDYrR','end','290454jieSgt','isSafeInteger','NEGATIVE_INFINITY'];_0x152f=function(){return _0x5b5871;};return _0x152f();}export const loadNativeVoxelData=async(_0x29bef1,_0x38d9d8,_0x48b77b)=>{const _0x307b7e=_0x1e8097,{xAxis:_0x41d96c,yAxis:_0x201b7d,zAxis:_0x5b70d0,timeCount:_0x116b86}=_0x29bef1['metadata'];if(!Number[_0x307b7e(0xd1)](_0x38d9d8)||_0x38d9d8<0x0||_0x38d9d8>=_0x116b86)throw new RangeError('Native\x20voxel\x20time\x20index\x20is\x20out\x20of\x20range:\x20'+_0x38d9d8+_0x307b7e(0xd3));const _0x3ec5fe=await _0x29bef1['readChunk'](_0x38d9d8,{'xStart':0x0,'xCount':_0x41d96c[_0x307b7e(0xc9)],'levelStart':0x0,'levelCount':_0x201b7d[_0x307b7e(0xc9)],'sourceYStart':0x0,'sourceYCount':_0x5b70d0[_0x307b7e(0xc9)]},_0x48b77b);return _0x48b77b?.[_0x307b7e(0xcd)](),normalizeNativeVoxelValues(_0x3ec5fe,_0x29bef1);};
@@ -1 +1 @@
1
- const _0x56dfbb=_0x79ae;(function(_0x1eedb4,_0x397fa8){const _0x188fe6=_0x79ae,_0x483cd6=_0x1eedb4();while(!![]){try{const _0x10d548=-parseInt(_0x188fe6(0x15d))/0x1+parseInt(_0x188fe6(0x166))/0x2+parseInt(_0x188fe6(0x168))/0x3+parseInt(_0x188fe6(0x16f))/0x4*(-parseInt(_0x188fe6(0x15e))/0x5)+parseInt(_0x188fe6(0x177))/0x6*(parseInt(_0x188fe6(0x184))/0x7)+-parseInt(_0x188fe6(0x17b))/0x8*(-parseInt(_0x188fe6(0x163))/0x9)+parseInt(_0x188fe6(0x160))/0xa*(-parseInt(_0x188fe6(0x173))/0xb);if(_0x10d548===_0x397fa8)break;else _0x483cd6['push'](_0x483cd6['shift']());}catch(_0x25ccdb){_0x483cd6['push'](_0x483cd6['shift']());}}}(_0x6277,0x70cfc));import{validateVolumeMetadata}from'./volumeValidation';export const defaultVolumeBrickWidth=0x100;function _0x6277(){const _0x3ba569=['yAxis','xAxis','halo','maxTextureDimension3D','metadata','maxTextureDimension3D\x20must\x20be\x20a\x20positive\x20integer.\x20maxTextureDimension3D\x20必须是正整数。','countX','memoryLimitBytes','27622KgyhRL','101190GnxEoi','2205245xZOqmh','height','18134060NKFARU','count','Volume\x20memory\x20budget\x20is\x20invalid.\x20体积内存预算无效。','114174TxBgvP','isInteger','reservedBytes','1716930cXlGUN','zAxis','2502648DbdEcM','max','Volume\x20brick\x20coordinate\x20is\x20out\x20of\x20range.\x20体积分块坐标越界。','min','BYTES_PER_ELEMENT','shape','countZ','4GWHpoT','width','Volume\x20brick\x20halo\x20must\x20be\x20a\x20positive\x20integer.\x20体积分块\x20halo\x20必须是正整数。','ceil','11EHEUUG','floor','brickCount','\x20must\x20be\x20a\x20positive\x20integer.\x20体积分块\x20','534YKRuTU','isSafeInteger','countY','depth','488SGmXGn'];_0x6277=function(){return _0x3ba569;};return _0x6277();}export const defaultVolumeBrickHeight=0x8;export const defaultVolumeBrickDepth=0x100;export const defaultVolumeBrickHalo=0x1;export const defaultVolumeMemoryLimitBytes=0x200*0x400*0x400;const validateBrickShape=_0x477f41=>{const _0x451382=_0x79ae;for(const [_0x3f84e5,_0x20deba]of[[_0x477f41[_0x451382(0x170)],_0x451382(0x170)],[_0x477f41[_0x451382(0x15f)],_0x451382(0x15f)],[_0x477f41[_0x451382(0x17a)],_0x451382(0x17a)]]){if(!Number[_0x451382(0x164)](_0x3f84e5)||_0x3f84e5<=0x0)throw new Error('Volume\x20brick\x20'+_0x20deba+_0x451382(0x176)+_0x20deba+'\x20必须是正整数。');}if(!Number[_0x451382(0x164)](_0x477f41[_0x451382(0x17e)])||_0x477f41[_0x451382(0x17e)]<0x1)throw new Error(_0x451382(0x171));},alignBytes=(_0x35932f,_0x3aac2d)=>Math[_0x56dfbb(0x172)](_0x35932f/_0x3aac2d)*_0x3aac2d;export const resolveVolumeBrickShape=(_0x1bcaff={})=>{const _0xf869ea=_0x56dfbb,_0x5189bd={'width':_0x1bcaff[_0xf869ea(0x170)]??defaultVolumeBrickWidth,'height':_0x1bcaff[_0xf869ea(0x15f)]??defaultVolumeBrickHeight,'depth':_0x1bcaff['depth']??defaultVolumeBrickDepth,'halo':_0x1bcaff[_0xf869ea(0x17e)]??defaultVolumeBrickHalo};return validateBrickShape(_0x5189bd),_0x5189bd;};export const createVolumeBrickLayout=(_0x31dc55,_0x5e407f={})=>{const _0x397397=_0x56dfbb;validateVolumeMetadata(_0x31dc55);const _0x5298b2=resolveVolumeBrickShape(_0x5e407f),_0xe8fa3f=Math['ceil'](_0x31dc55['xAxis'][_0x397397(0x161)]/_0x5298b2[_0x397397(0x170)]),_0x1925b8=Math[_0x397397(0x172)](_0x31dc55['yAxis'][_0x397397(0x161)]/_0x5298b2[_0x397397(0x15f)]),_0x4e0217=Math['ceil'](_0x31dc55[_0x397397(0x167)][_0x397397(0x161)]/_0x5298b2[_0x397397(0x17a)]);return{'shape':_0x5298b2,'countX':_0xe8fa3f,'countY':_0x1925b8,'countZ':_0x4e0217,'brickCount':_0xe8fa3f*_0x1925b8*_0x4e0217};};function _0x79ae(_0xaef258,_0x2ad9fe){const _0x6277cb=_0x6277();return _0x79ae=function(_0x79ae71,_0x4119a9){_0x79ae71=_0x79ae71-0x15d;let _0x25aa74=_0x6277cb[_0x79ae71];return _0x25aa74;},_0x79ae(_0xaef258,_0x2ad9fe);}export const createVolumeBrickKey=_0x397841=>_0x397841['x']+':'+_0x397841['y']+':'+_0x397841['z'];export const createVolumeBrickDescriptor=(_0x328198,_0x427a6c,_0x331867)=>{const _0x35af2a=_0x56dfbb;if(!Number[_0x35af2a(0x164)](_0x331867['x'])||!Number[_0x35af2a(0x164)](_0x331867['y'])||!Number['isInteger'](_0x331867['z'])||_0x331867['x']<0x0||_0x331867['x']>=_0x427a6c['countX']||_0x331867['y']<0x0||_0x331867['y']>=_0x427a6c[_0x35af2a(0x179)]||_0x331867['z']<0x0||_0x331867['z']>=_0x427a6c['countZ'])throw new Error(_0x35af2a(0x16a));const _0x10781e=_0x331867['x']*_0x427a6c[_0x35af2a(0x16d)]['width'],_0x272f9b=_0x331867['y']*_0x427a6c['shape'][_0x35af2a(0x15f)],_0x4b0754=_0x331867['z']*_0x427a6c[_0x35af2a(0x16d)][_0x35af2a(0x17a)],_0x4cd6e7=Math['min'](_0x427a6c['shape'][_0x35af2a(0x170)],_0x328198[_0x35af2a(0x17d)]['count']-_0x10781e),_0x558388=Math[_0x35af2a(0x16b)](_0x427a6c['shape']['height'],_0x328198['yAxis'][_0x35af2a(0x161)]-_0x272f9b),_0x29e8ec=Math['min'](_0x427a6c[_0x35af2a(0x16d)]['depth'],_0x328198[_0x35af2a(0x167)][_0x35af2a(0x161)]-_0x4b0754),_0xf23af0=_0x427a6c[_0x35af2a(0x16d)][_0x35af2a(0x17e)],_0x2dd2a0=Math[_0x35af2a(0x169)](0x0,_0x10781e-_0xf23af0),_0x3ed8f3=Math[_0x35af2a(0x169)](0x0,_0x272f9b-_0xf23af0),_0x26d15f=Math['max'](0x0,_0x4b0754-_0xf23af0),_0x1ae915=Math[_0x35af2a(0x16b)](_0x328198[_0x35af2a(0x17d)][_0x35af2a(0x161)],_0x10781e+_0x4cd6e7+_0xf23af0),_0x3b7e45=Math[_0x35af2a(0x16b)](_0x328198[_0x35af2a(0x17c)][_0x35af2a(0x161)],_0x272f9b+_0x558388+_0xf23af0),_0x247aeb=Math[_0x35af2a(0x16b)](_0x328198[_0x35af2a(0x167)][_0x35af2a(0x161)],_0x4b0754+_0x29e8ec+_0xf23af0),_0x4eef00=_0x427a6c[_0x35af2a(0x16d)][_0x35af2a(0x170)]+_0xf23af0*0x2,_0x2755bc=_0x427a6c[_0x35af2a(0x16d)][_0x35af2a(0x15f)]+_0xf23af0*0x2,_0x1080f5=_0x427a6c[_0x35af2a(0x16d)][_0x35af2a(0x17a)]+_0xf23af0*0x2;return{'key':createVolumeBrickKey(_0x331867),'coordinate':_0x331867,'coreRange':{'xStart':_0x10781e,'xCount':_0x4cd6e7,'levelStart':_0x272f9b,'levelCount':_0x558388,'sourceYStart':_0x4b0754,'sourceYCount':_0x29e8ec},'readRange':{'xStart':_0x2dd2a0,'xCount':_0x1ae915-_0x2dd2a0,'levelStart':_0x3ed8f3,'levelCount':_0x3b7e45-_0x3ed8f3,'sourceYStart':_0x26d15f,'sourceYCount':_0x247aeb-_0x26d15f},'physicalWidth':_0x4eef00,'physicalHeight':_0x2755bc,'physicalDepth':_0x1080f5,'byteLength':_0x4eef00*_0x2755bc*_0x1080f5*Float32Array[_0x35af2a(0x16c)]};};export const createVolumeBrickDescriptors=(_0x131cc4,_0xbda8e9)=>{const _0x4f04ad=_0x56dfbb,_0x4d2191=[];for(let _0x50af75=0x0;_0x50af75<_0xbda8e9[_0x4f04ad(0x16e)];_0x50af75+=0x1)for(let _0x280dd9=0x0;_0x280dd9<_0xbda8e9[_0x4f04ad(0x179)];_0x280dd9+=0x1)for(let _0x738692=0x0;_0x738692<_0xbda8e9['countX'];_0x738692+=0x1)_0x4d2191['push'](createVolumeBrickDescriptor(_0x131cc4,_0xbda8e9,{'x':_0x738692,'y':_0x280dd9,'z':_0x50af75}));return _0x4d2191;};export const calculateVolumeAtlasLayout=_0x4c80bb=>{const _0x3d23cb=_0x56dfbb,_0x301a28=createVolumeBrickLayout(_0x4c80bb[_0x3d23cb(0x180)],_0x4c80bb['brickShape']),_0x409a6d=_0x301a28[_0x3d23cb(0x16d)],_0x30d52e=_0x409a6d[_0x3d23cb(0x170)]+_0x409a6d[_0x3d23cb(0x17e)]*0x2,_0x21ec79=_0x409a6d[_0x3d23cb(0x15f)]+_0x409a6d[_0x3d23cb(0x17e)]*0x2,_0x5554ba=_0x409a6d['depth']+_0x409a6d[_0x3d23cb(0x17e)]*0x2,_0x1d8f72=_0x4c80bb[_0x3d23cb(0x17f)],_0x51a08d=_0x4c80bb[_0x3d23cb(0x183)]??defaultVolumeMemoryLimitBytes,_0x398943=_0x4c80bb[_0x3d23cb(0x165)]??0x0;if(!Number[_0x3d23cb(0x164)](_0x1d8f72)||_0x1d8f72<=0x0)throw new Error(_0x3d23cb(0x181));if(!Number[_0x3d23cb(0x178)](_0x51a08d)||_0x51a08d<=0x0||!Number[_0x3d23cb(0x178)](_0x398943)||_0x398943<0x0||_0x398943>=_0x51a08d)throw new Error(_0x3d23cb(0x162));const _0x3ecbd4=Math[_0x3d23cb(0x16b)](_0x301a28[_0x3d23cb(0x182)],Math['floor'](_0x1d8f72/_0x30d52e)),_0x1132c6=Math['min'](_0x301a28[_0x3d23cb(0x179)],Math[_0x3d23cb(0x174)](_0x1d8f72/_0x21ec79)),_0x10a1df=Math[_0x3d23cb(0x16b)](_0x301a28['countZ'],Math[_0x3d23cb(0x174)](_0x1d8f72/_0x5554ba));if(_0x3ecbd4<0x1||_0x1132c6<0x1||_0x10a1df<0x1)throw new Error('Device\x20maxTextureDimension3D\x20cannot\x20fit\x20one\x20physical\x20volume\x20brick.\x20设备\x20maxTextureDimension3D\x20无法容纳一个物理体积分块。');const _0x155a01=_0x30d52e*_0x21ec79*_0x5554ba*Float32Array[_0x3d23cb(0x16c)],_0x51dce0=alignBytes(_0x301a28[_0x3d23cb(0x175)]*Uint32Array[_0x3d23cb(0x16c)],0x100),_0x1b4a31=_0x51a08d-_0x398943-_0x51dce0,_0x70e7f2=Math[_0x3d23cb(0x174)](_0x1b4a31/_0x155a01);if(_0x70e7f2<0x1)throw new Error('Volume\x20memory\x20limit\x20cannot\x20fit\x20one\x20physical\x20brick\x20and\x20page\x20table.\x20体积内存上限无法容纳一个物理分块和页表。');const _0x3d7fd3=Math[_0x3d23cb(0x16b)](_0x301a28[_0x3d23cb(0x175)],_0x70e7f2,_0x3ecbd4*_0x1132c6*_0x10a1df);let _0x2f9c58=0x1,_0x4fdb0f=0x1,_0x322877=0x1,_0x1ea070=0x1;for(let _0x2d92b1=0x1;_0x2d92b1<=_0x3ecbd4;_0x2d92b1+=0x1){for(let _0x551910=0x1;_0x551910<=_0x10a1df;_0x551910+=0x1){const _0xe1413f=Math['min'](_0x1132c6,Math['floor'](_0x3d7fd3/(_0x2d92b1*_0x551910))),_0x2d68ba=_0x2d92b1*_0xe1413f*_0x551910;_0x2d68ba>_0x1ea070&&(_0x2f9c58=_0x2d92b1,_0x4fdb0f=_0xe1413f,_0x322877=_0x551910,_0x1ea070=_0x2d68ba);}}const _0x56ee10=_0x1ea070*_0x155a01;return{'brickLayout':_0x301a28,'slotCountX':_0x2f9c58,'slotCountY':_0x4fdb0f,'slotCountZ':_0x322877,'capacity':_0x1ea070,'atlasWidth':_0x2f9c58*_0x30d52e,'atlasHeight':_0x4fdb0f*_0x21ec79,'atlasDepth':_0x322877*_0x5554ba,'bytesPerBrick':_0x155a01,'atlasBytes':_0x56ee10,'pageTableBytes':_0x51dce0,'reservedBytes':_0x398943,'estimatedBytes':_0x56ee10+_0x51dce0+_0x398943,'memoryLimitBytes':_0x51a08d};};
1
+ const _0x8c165b=_0x20bd;(function(_0x31a77d,_0x2e2496){const _0x3f392c=_0x20bd,_0x1a84b8=_0x31a77d();while(!![]){try{const _0x4761d3=-parseInt(_0x3f392c(0x12f))/0x1*(parseInt(_0x3f392c(0x114))/0x2)+parseInt(_0x3f392c(0x12d))/0x3+-parseInt(_0x3f392c(0x116))/0x4*(-parseInt(_0x3f392c(0x119))/0x5)+-parseInt(_0x3f392c(0x122))/0x6+parseInt(_0x3f392c(0x11d))/0x7+parseInt(_0x3f392c(0x11b))/0x8+parseInt(_0x3f392c(0x110))/0x9;if(_0x4761d3===_0x2e2496)break;else _0x1a84b8['push'](_0x1a84b8['shift']());}catch(_0x1d9a04){_0x1a84b8['push'](_0x1a84b8['shift']());}}}(_0x2f6d,0x4e3a2));function _0x2f6d(){const _0x1b2cca=['brickCount','Volume\x20memory\x20budget\x20is\x20invalid.\x20体积内存预算无效。','274iiAdSP','BYTES_PER_ELEMENT','1084EkNKkE','\x20必须是正整数。','countX','8150yfUPOf','shape','2243576VunyvX','Volume\x20brick\x20halo\x20must\x20be\x20a\x20positive\x20integer.\x20体积分块\x20halo\x20必须是正整数。','607418YkArqZ','reservedBytes','maxTextureDimension3D','isInteger','xAxis','1983678fTmxSH','zAxis','width','memoryLimitBytes','ceil','Volume\x20brick\x20coordinate\x20is\x20out\x20of\x20range.\x20体积分块坐标越界。','height','count','floor','countZ','Volume\x20brick\x20','226542MELetK','depth','3931pHIiqg','yAxis','countY','isSafeInteger','halo','min','push','2746017lfuvxC','brickShape'];_0x2f6d=function(){return _0x1b2cca;};return _0x2f6d();}import{validateVolumeMetadata}from'./volumeValidation';export const defaultVolumeBrickWidth=0x100;export const defaultVolumeBrickHeight=0x8;export const defaultVolumeBrickDepth=0x100;export const defaultVolumeBrickHalo=0x1;export const defaultVolumeMemoryLimitBytes=0x200*0x400*0x400;const validateBrickShape=_0x4bc81b=>{const _0x239144=_0x20bd;for(const [_0x2347c1,_0x954a6]of[[_0x4bc81b[_0x239144(0x124)],_0x239144(0x124)],[_0x4bc81b[_0x239144(0x128)],_0x239144(0x128)],[_0x4bc81b[_0x239144(0x12e)],_0x239144(0x12e)]]){if(!Number[_0x239144(0x120)](_0x2347c1)||_0x2347c1<=0x0)throw new Error(_0x239144(0x12c)+_0x954a6+'\x20must\x20be\x20a\x20positive\x20integer.\x20体积分块\x20'+_0x954a6+_0x239144(0x117));}if(!Number[_0x239144(0x120)](_0x4bc81b[_0x239144(0x133)])||_0x4bc81b[_0x239144(0x133)]<0x1)throw new Error(_0x239144(0x11c));},alignBytes=(_0x19acff,_0xcdbee0)=>Math[_0x8c165b(0x126)](_0x19acff/_0xcdbee0)*_0xcdbee0;export const resolveVolumeBrickShape=(_0x71a051={})=>{const _0x3cd8ab=_0x8c165b,_0x657f74={'width':_0x71a051[_0x3cd8ab(0x124)]??defaultVolumeBrickWidth,'height':_0x71a051[_0x3cd8ab(0x128)]??defaultVolumeBrickHeight,'depth':_0x71a051[_0x3cd8ab(0x12e)]??defaultVolumeBrickDepth,'halo':_0x71a051[_0x3cd8ab(0x133)]??defaultVolumeBrickHalo};return validateBrickShape(_0x657f74),_0x657f74;};export const createVolumeBrickLayout=(_0x1351b2,_0x48c3f2={})=>{const _0x27a6bc=_0x8c165b;validateVolumeMetadata(_0x1351b2);const _0x7c1eeb=resolveVolumeBrickShape(_0x48c3f2),_0x4f3b40=Math[_0x27a6bc(0x126)](_0x1351b2[_0x27a6bc(0x121)][_0x27a6bc(0x129)]/_0x7c1eeb[_0x27a6bc(0x124)]),_0x520db5=Math[_0x27a6bc(0x126)](_0x1351b2[_0x27a6bc(0x130)][_0x27a6bc(0x129)]/_0x7c1eeb[_0x27a6bc(0x128)]),_0x280250=Math['ceil'](_0x1351b2[_0x27a6bc(0x123)][_0x27a6bc(0x129)]/_0x7c1eeb[_0x27a6bc(0x12e)]);return{'shape':_0x7c1eeb,'countX':_0x4f3b40,'countY':_0x520db5,'countZ':_0x280250,'brickCount':_0x4f3b40*_0x520db5*_0x280250};};export const createVolumeBrickKey=_0x463f4c=>_0x463f4c['x']+':'+_0x463f4c['y']+':'+_0x463f4c['z'];export const createVolumeBrickDescriptor=(_0x2dae97,_0xeb4c0f,_0x947655)=>{const _0x811ac4=_0x8c165b;if(!Number[_0x811ac4(0x120)](_0x947655['x'])||!Number[_0x811ac4(0x120)](_0x947655['y'])||!Number['isInteger'](_0x947655['z'])||_0x947655['x']<0x0||_0x947655['x']>=_0xeb4c0f['countX']||_0x947655['y']<0x0||_0x947655['y']>=_0xeb4c0f[_0x811ac4(0x131)]||_0x947655['z']<0x0||_0x947655['z']>=_0xeb4c0f[_0x811ac4(0x12b)])throw new Error(_0x811ac4(0x127));const _0x5cb67c=_0x947655['x']*_0xeb4c0f['shape']['width'],_0x1840d2=_0x947655['y']*_0xeb4c0f[_0x811ac4(0x11a)][_0x811ac4(0x128)],_0x265df1=_0x947655['z']*_0xeb4c0f[_0x811ac4(0x11a)][_0x811ac4(0x12e)],_0xde65ce=Math[_0x811ac4(0x134)](_0xeb4c0f['shape'][_0x811ac4(0x124)],_0x2dae97['xAxis'][_0x811ac4(0x129)]-_0x5cb67c),_0x26d552=Math[_0x811ac4(0x134)](_0xeb4c0f[_0x811ac4(0x11a)][_0x811ac4(0x128)],_0x2dae97[_0x811ac4(0x130)][_0x811ac4(0x129)]-_0x1840d2),_0x1c20cd=Math[_0x811ac4(0x134)](_0xeb4c0f[_0x811ac4(0x11a)][_0x811ac4(0x12e)],_0x2dae97[_0x811ac4(0x123)][_0x811ac4(0x129)]-_0x265df1),_0x5f18ea=_0xeb4c0f[_0x811ac4(0x11a)][_0x811ac4(0x133)],_0x3692c7=Math['max'](0x0,_0x5cb67c-_0x5f18ea),_0x187aa4=Math['max'](0x0,_0x1840d2-_0x5f18ea),_0x164d3d=Math['max'](0x0,_0x265df1-_0x5f18ea),_0x37bc0c=Math[_0x811ac4(0x134)](_0x2dae97[_0x811ac4(0x121)][_0x811ac4(0x129)],_0x5cb67c+_0xde65ce+_0x5f18ea),_0x6fd6fb=Math[_0x811ac4(0x134)](_0x2dae97[_0x811ac4(0x130)][_0x811ac4(0x129)],_0x1840d2+_0x26d552+_0x5f18ea),_0x54f077=Math[_0x811ac4(0x134)](_0x2dae97[_0x811ac4(0x123)][_0x811ac4(0x129)],_0x265df1+_0x1c20cd+_0x5f18ea),_0x3966d9=_0xeb4c0f[_0x811ac4(0x11a)][_0x811ac4(0x124)]+_0x5f18ea*0x2,_0x4d09f4=_0xeb4c0f['shape']['height']+_0x5f18ea*0x2,_0x283b4a=_0xeb4c0f[_0x811ac4(0x11a)][_0x811ac4(0x12e)]+_0x5f18ea*0x2;return{'key':createVolumeBrickKey(_0x947655),'coordinate':_0x947655,'coreRange':{'xStart':_0x5cb67c,'xCount':_0xde65ce,'levelStart':_0x1840d2,'levelCount':_0x26d552,'sourceYStart':_0x265df1,'sourceYCount':_0x1c20cd},'readRange':{'xStart':_0x3692c7,'xCount':_0x37bc0c-_0x3692c7,'levelStart':_0x187aa4,'levelCount':_0x6fd6fb-_0x187aa4,'sourceYStart':_0x164d3d,'sourceYCount':_0x54f077-_0x164d3d},'physicalWidth':_0x3966d9,'physicalHeight':_0x4d09f4,'physicalDepth':_0x283b4a,'byteLength':_0x3966d9*_0x4d09f4*_0x283b4a*Float32Array[_0x811ac4(0x115)]};};export const createVolumeBrickDescriptors=(_0x5d467e,_0x3bcc5d)=>{const _0x23ee00=_0x8c165b,_0x244342=[];for(let _0x34a34d=0x0;_0x34a34d<_0x3bcc5d[_0x23ee00(0x12b)];_0x34a34d+=0x1)for(let _0xd6f1dd=0x0;_0xd6f1dd<_0x3bcc5d[_0x23ee00(0x131)];_0xd6f1dd+=0x1)for(let _0x8f83d1=0x0;_0x8f83d1<_0x3bcc5d[_0x23ee00(0x118)];_0x8f83d1+=0x1)_0x244342[_0x23ee00(0x135)](createVolumeBrickDescriptor(_0x5d467e,_0x3bcc5d,{'x':_0x8f83d1,'y':_0xd6f1dd,'z':_0x34a34d}));return _0x244342;};function _0x20bd(_0x489af9,_0x14a991){const _0x2f6da3=_0x2f6d();return _0x20bd=function(_0x20bd58,_0x51d64d){_0x20bd58=_0x20bd58-0x110;let _0xffc3e3=_0x2f6da3[_0x20bd58];return _0xffc3e3;},_0x20bd(_0x489af9,_0x14a991);}export const calculateVolumeAtlasLayout=_0x2639c6=>{const _0x5ee519=_0x8c165b,_0x32bc16=createVolumeBrickLayout(_0x2639c6['metadata'],_0x2639c6[_0x5ee519(0x111)]),_0x179efb=_0x32bc16[_0x5ee519(0x11a)],_0x662ac4=_0x179efb[_0x5ee519(0x124)]+_0x179efb[_0x5ee519(0x133)]*0x2,_0x400ec4=_0x179efb[_0x5ee519(0x128)]+_0x179efb[_0x5ee519(0x133)]*0x2,_0x186bf3=_0x179efb[_0x5ee519(0x12e)]+_0x179efb[_0x5ee519(0x133)]*0x2,_0x2da128=_0x2639c6[_0x5ee519(0x11f)],_0xeecc72=_0x2639c6[_0x5ee519(0x125)]??defaultVolumeMemoryLimitBytes,_0x1f68ed=_0x2639c6[_0x5ee519(0x11e)]??0x0;if(!Number['isInteger'](_0x2da128)||_0x2da128<=0x0)throw new Error('maxTextureDimension3D\x20must\x20be\x20a\x20positive\x20integer.\x20maxTextureDimension3D\x20必须是正整数。');if(!Number['isSafeInteger'](_0xeecc72)||_0xeecc72<=0x0||!Number[_0x5ee519(0x132)](_0x1f68ed)||_0x1f68ed<0x0||_0x1f68ed>=_0xeecc72)throw new Error(_0x5ee519(0x113));const _0x2b10f3=Math[_0x5ee519(0x134)](_0x32bc16[_0x5ee519(0x118)],Math[_0x5ee519(0x12a)](_0x2da128/_0x662ac4)),_0xb358db=Math[_0x5ee519(0x134)](_0x32bc16[_0x5ee519(0x131)],Math[_0x5ee519(0x12a)](_0x2da128/_0x400ec4)),_0x235dd4=Math['min'](_0x32bc16[_0x5ee519(0x12b)],Math['floor'](_0x2da128/_0x186bf3));if(_0x2b10f3<0x1||_0xb358db<0x1||_0x235dd4<0x1)throw new Error('Device\x20maxTextureDimension3D\x20cannot\x20fit\x20one\x20physical\x20volume\x20brick.\x20设备\x20maxTextureDimension3D\x20无法容纳一个物理体积分块。');const _0x401d66=_0x662ac4*_0x400ec4*_0x186bf3*Float32Array[_0x5ee519(0x115)],_0x3609e4=alignBytes(_0x32bc16[_0x5ee519(0x112)]*Uint32Array[_0x5ee519(0x115)],0x100),_0x104d35=_0xeecc72-_0x1f68ed-_0x3609e4,_0x25e272=Math[_0x5ee519(0x12a)](_0x104d35/_0x401d66);if(_0x25e272<0x1)throw new Error('Volume\x20memory\x20limit\x20cannot\x20fit\x20one\x20physical\x20brick\x20and\x20page\x20table.\x20体积内存上限无法容纳一个物理分块和页表。');const _0x6a7e62=Math[_0x5ee519(0x134)](_0x32bc16[_0x5ee519(0x112)],_0x25e272,_0x2b10f3*_0xb358db*_0x235dd4);let _0x48e388=0x1,_0x711a1a=0x1,_0x24b26d=0x1,_0x2bedc6=0x1;for(let _0x4d74c8=0x1;_0x4d74c8<=_0x2b10f3;_0x4d74c8+=0x1){for(let _0x3f28a9=0x1;_0x3f28a9<=_0x235dd4;_0x3f28a9+=0x1){const _0x2366c5=Math[_0x5ee519(0x134)](_0xb358db,Math[_0x5ee519(0x12a)](_0x6a7e62/(_0x4d74c8*_0x3f28a9))),_0x21adc4=_0x4d74c8*_0x2366c5*_0x3f28a9;_0x21adc4>_0x2bedc6&&(_0x48e388=_0x4d74c8,_0x711a1a=_0x2366c5,_0x24b26d=_0x3f28a9,_0x2bedc6=_0x21adc4);}}const _0xe2bf8c=_0x2bedc6*_0x401d66;return{'brickLayout':_0x32bc16,'slotCountX':_0x48e388,'slotCountY':_0x711a1a,'slotCountZ':_0x24b26d,'capacity':_0x2bedc6,'atlasWidth':_0x48e388*_0x662ac4,'atlasHeight':_0x711a1a*_0x400ec4,'atlasDepth':_0x24b26d*_0x186bf3,'bytesPerBrick':_0x401d66,'atlasBytes':_0xe2bf8c,'pageTableBytes':_0x3609e4,'reservedBytes':_0x1f68ed,'estimatedBytes':_0xe2bf8c+_0x3609e4+_0x1f68ed,'memoryLimitBytes':_0xeecc72};};
@@ -1 +1 @@
1
- const _0x20f837=_0x3794;(function(_0x23dae0,_0x34fa46){const _0x422002=_0x3794,_0x22b58b=_0x23dae0();while(!![]){try{const _0x3b7401=parseInt(_0x422002(0x90))/0x1*(-parseInt(_0x422002(0x71))/0x2)+parseInt(_0x422002(0x76))/0x3*(-parseInt(_0x422002(0x7f))/0x4)+-parseInt(_0x422002(0x8d))/0x5*(parseInt(_0x422002(0x89))/0x6)+parseInt(_0x422002(0x9e))/0x7+parseInt(_0x422002(0x8c))/0x8*(-parseInt(_0x422002(0x94))/0x9)+-parseInt(_0x422002(0x8b))/0xa*(-parseInt(_0x422002(0x97))/0xb)+parseInt(_0x422002(0x98))/0xc;if(_0x3b7401===_0x34fa46)break;else _0x22b58b['push'](_0x22b58b['shift']());}catch(_0x50d4c7){_0x22b58b['push'](_0x22b58b['shift']());}}}(_0x4f0e,0x2903e));function _0x4f0e(){const _0x51ebe4=['33eFxJCN','1394460AMIzNG','nextRequestGeneration','map','values','has','Volume\x20frame\x20index\x20must\x20be\x20a\x20non-negative\x20integer.\x20体积帧索引必须是非负整数。','727776vXFltF','key','commit','currentSourceRevision','resident','Volume\x20source\x20revision\x20must\x20be\x20a\x20non-negative\x20integer.\x20体积数据源\x20revision\x20必须是非负整数。','135914lPKQDN','from','state','delete','Maximum\x20volume\x20uploads\x20must\x20be\x20a\x20non-negative\x20integer.\x20最大体积上传数必须是非负整数。','3MiDkTy','freeSlots','length','Volume\x20brick\x20residency\x20capacity\x20must\x20be\x20a\x20positive\x20integer.\x20体积分块驻留容量必须是正整数。','capacity','loading','requestGeneration','kind','clear','677644PvbrfQ','slotIndex','isInteger','entries','distance','reset','sort','push','locked-slice','sourceRevision','6hNDOep','preview-slice','939430skdLnf','72vjmkTa','270735vLNaTO','pop','localeCompare','1kdRtbJ','set','cancel','lastUsedFrame','42489JXdELc','getEntries','get'];_0x4f0e=function(){return _0x51ebe4;};return _0x4f0e();}const demandPriority=_0x47a443=>{const _0x2d89=_0x3794;if(_0x47a443===_0x2d89(0x8a))return 0x0;if(_0x47a443===_0x2d89(0x87))return 0x1;if(_0x47a443==='route-profile')return 0x2;return 0x3;},preferDemand=(_0x511836,_0x53f52e)=>{const _0x18df22=_0x3794,_0x271dd1=demandPriority(_0x511836[_0x18df22(0x7d)])-demandPriority(_0x53f52e[_0x18df22(0x7d)]);if(_0x271dd1!==0x0)return _0x271dd1<0x0?_0x511836:_0x53f52e;return _0x511836[_0x18df22(0x83)]<=_0x53f52e['distance']?_0x511836:_0x53f52e;};function _0x3794(_0x31e52f,_0x30c69c){const _0x4f0e2d=_0x4f0e();return _0x3794=function(_0x379429,_0x3cfeb5){_0x379429=_0x379429-0x6c;let _0x1091de=_0x4f0e2d[_0x379429];return _0x1091de;},_0x3794(_0x31e52f,_0x30c69c);}export class VolumeBrickResidency{[_0x20f837(0x7a)];[_0x20f837(0x82)]=new Map();['freeSlots'];[_0x20f837(0x6e)]=-0x1;[_0x20f837(0x99)]=0x1;constructor(_0x2c8a3f){const _0x43d235=_0x20f837;this[_0x43d235(0x7a)]=_0x2c8a3f;if(!Number[_0x43d235(0x81)](_0x2c8a3f)||_0x2c8a3f<=0x0)throw new Error(_0x43d235(0x79));this['freeSlots']=Array[_0x43d235(0x72)]({'length':_0x2c8a3f},(_0x54d062,_0x55f29)=>_0x2c8a3f-_0x55f29-0x1);}[_0x20f837(0x95)](){const _0x57baa3=_0x20f837;return Array[_0x57baa3(0x72)](this[_0x57baa3(0x82)][_0x57baa3(0x9b)](),_0x58af48=>({..._0x58af48}));}[_0x20f837(0x84)](_0x381c5b=-0x1){const _0x59165c=_0x20f837,_0x49e193=this[_0x59165c(0x95)]();this['entries'][_0x59165c(0x7e)](),this[_0x59165c(0x77)][_0x59165c(0x78)]=0x0;for(let _0x1e3de8=this['capacity']-0x1;_0x1e3de8>=0x0;_0x1e3de8-=0x1)this['freeSlots'][_0x59165c(0x86)](_0x1e3de8);return this[_0x59165c(0x6e)]=_0x381c5b,_0x49e193;}['plan'](_0xe11af5,_0x474cf1,_0x11f6e6,_0x3cb058){const _0x36d91a=_0x20f837;if(!Number[_0x36d91a(0x81)](_0x474cf1)||_0x474cf1<0x0)throw new Error(_0x36d91a(0x70));if(!Number[_0x36d91a(0x81)](_0x11f6e6)||_0x11f6e6<0x0)throw new Error(_0x36d91a(0x9d));if(!Number[_0x36d91a(0x81)](_0x3cb058)||_0x3cb058<0x0)throw new Error(_0x36d91a(0x75));const _0x47dd18=[];if(_0x474cf1!==this['currentSourceRevision'])_0x47dd18[_0x36d91a(0x86)](...this[_0x36d91a(0x84)](_0x474cf1));const _0x47e9e9=new Map();for(const _0x1a6b34 of _0xe11af5){if(_0x1a6b34[_0x36d91a(0x6c)][_0x36d91a(0x78)]===0x0||!Number['isFinite'](_0x1a6b34['distance'])||_0x1a6b34[_0x36d91a(0x83)]<0x0)throw new Error('Volume\x20brick\x20demand\x20is\x20invalid.\x20体积分块需求无效。');const _0x4944c6=_0x47e9e9[_0x36d91a(0x96)](_0x1a6b34[_0x36d91a(0x6c)]);_0x47e9e9[_0x36d91a(0x91)](_0x1a6b34[_0x36d91a(0x6c)],_0x4944c6?preferDemand(_0x4944c6,_0x1a6b34):_0x1a6b34);}const _0x4c86a9=Array[_0x36d91a(0x72)](_0x47e9e9[_0x36d91a(0x9b)]())[_0x36d91a(0x85)]((_0x3f8b49,_0x100d83)=>{const _0x39a7b0=_0x36d91a,_0x308221=demandPriority(_0x3f8b49['kind'])-demandPriority(_0x100d83['kind']);if(_0x308221!==0x0)return _0x308221;if(_0x3f8b49[_0x39a7b0(0x83)]!==_0x100d83['distance'])return _0x3f8b49[_0x39a7b0(0x83)]-_0x100d83['distance'];const _0x93cf29=this['entries'][_0x39a7b0(0x96)](_0x3f8b49['key'])?.[_0x39a7b0(0x93)]??-0x1,_0x12fdfc=this['entries']['get'](_0x100d83[_0x39a7b0(0x6c)])?.[_0x39a7b0(0x93)]??-0x1;if(_0x93cf29!==_0x12fdfc)return _0x12fdfc-_0x93cf29;return _0x3f8b49[_0x39a7b0(0x6c)]['localeCompare'](_0x100d83[_0x39a7b0(0x6c)]);}),_0x1b5b6f=_0x4c86a9['slice'](0x0,this[_0x36d91a(0x7a)]),_0x12af77=new Set(_0x1b5b6f[_0x36d91a(0x9a)](_0x58eabd=>_0x58eabd[_0x36d91a(0x6c)]));for(const _0x4fa71f of _0x1b5b6f){const _0x214854=this[_0x36d91a(0x82)][_0x36d91a(0x96)](_0x4fa71f[_0x36d91a(0x6c)]);if(_0x214854)_0x214854[_0x36d91a(0x93)]=_0x11f6e6;}const _0x1a3262=[];for(const _0x4c2b3a of _0x1b5b6f){if(_0x1a3262[_0x36d91a(0x78)]>=_0x3cb058||this[_0x36d91a(0x82)][_0x36d91a(0x9c)](_0x4c2b3a['key']))continue;let _0x1a2417=this[_0x36d91a(0x77)][_0x36d91a(0x8e)]();if(_0x1a2417===undefined){const _0x2b7334=Array['from'](this['entries'][_0x36d91a(0x9b)]())['filter'](_0x27ef3f=>!_0x12af77[_0x36d91a(0x9c)](_0x27ef3f[_0x36d91a(0x6c)]))[_0x36d91a(0x85)]((_0x33526c,_0x17c072)=>_0x33526c[_0x36d91a(0x93)]-_0x17c072[_0x36d91a(0x93)]||_0x33526c[_0x36d91a(0x6c)][_0x36d91a(0x8f)](_0x17c072[_0x36d91a(0x6c)]))[0x0];if(!_0x2b7334)break;this[_0x36d91a(0x82)][_0x36d91a(0x74)](_0x2b7334[_0x36d91a(0x6c)]),_0x47dd18[_0x36d91a(0x86)]({..._0x2b7334}),_0x1a2417=_0x2b7334['slotIndex'];}const _0x25f99f={'key':_0x4c2b3a[_0x36d91a(0x6c)],'slotIndex':_0x1a2417,'state':_0x36d91a(0x7b),'sourceRevision':_0x474cf1,'requestGeneration':this[_0x36d91a(0x99)],'lastUsedFrame':_0x11f6e6};this[_0x36d91a(0x99)]+=0x1,this[_0x36d91a(0x82)]['set'](_0x25f99f['key'],_0x25f99f),_0x1a3262['push']({'key':_0x25f99f[_0x36d91a(0x6c)],'slotIndex':_0x25f99f['slotIndex'],'sourceRevision':_0x25f99f[_0x36d91a(0x88)],'requestGeneration':_0x25f99f['requestGeneration']});}let _0x27912e=0x0,_0x48671d=0x0;for(const _0x76a53f of this['entries'][_0x36d91a(0x9b)]())_0x76a53f[_0x36d91a(0x73)]===_0x36d91a(0x6f)?_0x27912e+=0x1:_0x48671d+=0x1;return{'selectedKeys':_0x1b5b6f[_0x36d91a(0x9a)](_0x471c0b=>_0x471c0b[_0x36d91a(0x6c)]),'loads':_0x1a3262,'evicted':_0x47dd18,'residentCount':_0x27912e,'pendingCount':_0x48671d,'budgetLimited':_0x4c86a9[_0x36d91a(0x78)]>this['capacity']};}[_0x20f837(0x6d)](_0x116460){const _0x562e86=_0x20f837,_0x256957=this[_0x562e86(0x82)][_0x562e86(0x96)](_0x116460[_0x562e86(0x6c)]);if(!_0x256957||_0x256957['slotIndex']!==_0x116460[_0x562e86(0x80)]||_0x256957[_0x562e86(0x88)]!==_0x116460[_0x562e86(0x88)]||_0x256957[_0x562e86(0x7c)]!==_0x116460['requestGeneration']||_0x116460[_0x562e86(0x88)]!==this[_0x562e86(0x6e)])return![];return _0x256957[_0x562e86(0x73)]=_0x562e86(0x6f),!![];}[_0x20f837(0x92)](_0x4efecc){const _0xa777f2=_0x20f837,_0x25234c=this['entries'][_0xa777f2(0x96)](_0x4efecc[_0xa777f2(0x6c)]);if(!_0x25234c||_0x25234c[_0xa777f2(0x73)]!==_0xa777f2(0x7b)||_0x25234c[_0xa777f2(0x7c)]!==_0x4efecc['requestGeneration']||_0x25234c[_0xa777f2(0x88)]!==_0x4efecc[_0xa777f2(0x88)])return![];return this[_0xa777f2(0x82)][_0xa777f2(0x74)](_0x25234c['key']),this['freeSlots'][_0xa777f2(0x86)](_0x25234c[_0xa777f2(0x80)]),!![];}}
1
+ const _0x3d53aa=_0x4eac;(function(_0x505b8a,_0x5e2437){const _0x3b8ff0=_0x4eac,_0x20b228=_0x505b8a();while(!![]){try{const _0x236fc5=-parseInt(_0x3b8ff0(0x85))/0x1+parseInt(_0x3b8ff0(0x96))/0x2*(-parseInt(_0x3b8ff0(0x80))/0x3)+parseInt(_0x3b8ff0(0x8e))/0x4+-parseInt(_0x3b8ff0(0x8f))/0x5+-parseInt(_0x3b8ff0(0x6f))/0x6+-parseInt(_0x3b8ff0(0x7a))/0x7*(-parseInt(_0x3b8ff0(0x73))/0x8)+parseInt(_0x3b8ff0(0x82))/0x9;if(_0x236fc5===_0x5e2437)break;else _0x20b228['push'](_0x20b228['shift']());}catch(_0x35423f){_0x20b228['push'](_0x20b228['shift']());}}}(_0x1fd0,0xec489));function _0x4eac(_0x365b65,_0x57e068){const _0x1fd04d=_0x1fd0();return _0x4eac=function(_0x4eac9b,_0x4b1716){_0x4eac9b=_0x4eac9b-0x6d;let _0x2ddb60=_0x1fd04d[_0x4eac9b];return _0x2ddb60;},_0x4eac(_0x365b65,_0x57e068);}const demandPriority=_0x56d55d=>{const _0x4487f7=_0x4eac;if(_0x56d55d===_0x4487f7(0x8a))return 0x0;if(_0x56d55d===_0x4487f7(0x84))return 0x1;if(_0x56d55d===_0x4487f7(0x91))return 0x2;return 0x3;},preferDemand=(_0x3c1552,_0x19a811)=>{const _0x6536b1=_0x4eac,_0x994a36=demandPriority(_0x3c1552[_0x6536b1(0x74)])-demandPriority(_0x19a811[_0x6536b1(0x74)]);if(_0x994a36!==0x0)return _0x994a36<0x0?_0x3c1552:_0x19a811;return _0x3c1552[_0x6536b1(0x87)]<=_0x19a811[_0x6536b1(0x87)]?_0x3c1552:_0x19a811;};export class VolumeBrickResidency{[_0x3d53aa(0x6e)];['entries']=new Map();[_0x3d53aa(0x99)];[_0x3d53aa(0x90)]=-0x1;[_0x3d53aa(0x88)]=0x1;constructor(_0x1a5783){const _0x3ed10b=_0x3d53aa;this[_0x3ed10b(0x6e)]=_0x1a5783;if(!Number[_0x3ed10b(0x8d)](_0x1a5783)||_0x1a5783<=0x0)throw new Error('Volume\x20brick\x20residency\x20capacity\x20must\x20be\x20a\x20positive\x20integer.\x20体积分块驻留容量必须是正整数。');this[_0x3ed10b(0x99)]=Array[_0x3ed10b(0x93)]({'length':_0x1a5783},(_0xe2fac8,_0x28d6f6)=>_0x1a5783-_0x28d6f6-0x1);}[_0x3d53aa(0x9d)](){const _0x2d9116=_0x3d53aa;return Array['from'](this[_0x2d9116(0x7b)][_0x2d9116(0x8c)](),_0x19f23e=>({..._0x19f23e}));}['reset'](_0x2887ba=-0x1){const _0x193d04=_0x3d53aa,_0x59463a=this[_0x193d04(0x9d)]();this[_0x193d04(0x7b)]['clear'](),this[_0x193d04(0x99)][_0x193d04(0x9c)]=0x0;for(let _0x1d7f8b=this[_0x193d04(0x6e)]-0x1;_0x1d7f8b>=0x0;_0x1d7f8b-=0x1)this[_0x193d04(0x99)][_0x193d04(0x79)](_0x1d7f8b);return this[_0x193d04(0x90)]=_0x2887ba,_0x59463a;}[_0x3d53aa(0x7f)](_0x52b000,_0x5e967a,_0x29d201,_0x374693){const _0x18f9cb=_0x3d53aa;if(!Number[_0x18f9cb(0x8d)](_0x5e967a)||_0x5e967a<0x0)throw new Error(_0x18f9cb(0x7c));if(!Number[_0x18f9cb(0x8d)](_0x29d201)||_0x29d201<0x0)throw new Error('Volume\x20frame\x20index\x20must\x20be\x20a\x20non-negative\x20integer.\x20体积帧索引必须是非负整数。');if(!Number[_0x18f9cb(0x8d)](_0x374693)||_0x374693<0x0)throw new Error(_0x18f9cb(0x78));const _0x90d036=[];if(_0x5e967a!==this[_0x18f9cb(0x90)])_0x90d036['push'](...this[_0x18f9cb(0x7d)](_0x5e967a));const _0x7f506d=new Map();for(const _0x288832 of _0x52b000){if(_0x288832[_0x18f9cb(0x81)][_0x18f9cb(0x9c)]===0x0||!Number[_0x18f9cb(0x75)](_0x288832[_0x18f9cb(0x87)])||_0x288832['distance']<0x0)throw new Error(_0x18f9cb(0x95));const _0xd28e6d=_0x7f506d[_0x18f9cb(0x94)](_0x288832[_0x18f9cb(0x81)]);_0x7f506d[_0x18f9cb(0x86)](_0x288832['key'],_0xd28e6d?preferDemand(_0xd28e6d,_0x288832):_0x288832);}const _0x3ec2ce=Array[_0x18f9cb(0x93)](_0x7f506d['values']())['sort']((_0x4349db,_0x14d624)=>{const _0x30e428=_0x18f9cb,_0x26433a=demandPriority(_0x4349db[_0x30e428(0x74)])-demandPriority(_0x14d624[_0x30e428(0x74)]);if(_0x26433a!==0x0)return _0x26433a;if(_0x4349db[_0x30e428(0x87)]!==_0x14d624['distance'])return _0x4349db[_0x30e428(0x87)]-_0x14d624['distance'];const _0x457bf4=this[_0x30e428(0x7b)]['get'](_0x4349db[_0x30e428(0x81)])?.[_0x30e428(0x83)]??-0x1,_0x3447a3=this['entries']['get'](_0x14d624['key'])?.[_0x30e428(0x83)]??-0x1;if(_0x457bf4!==_0x3447a3)return _0x3447a3-_0x457bf4;return _0x4349db[_0x30e428(0x81)][_0x30e428(0x98)](_0x14d624[_0x30e428(0x81)]);}),_0x14b2c0=_0x3ec2ce[_0x18f9cb(0x6d)](0x0,this[_0x18f9cb(0x6e)]),_0x9584f=new Set(_0x14b2c0[_0x18f9cb(0x72)](_0x505392=>_0x505392['key']));for(const _0x151ac8 of _0x14b2c0){const _0x302891=this[_0x18f9cb(0x7b)][_0x18f9cb(0x94)](_0x151ac8[_0x18f9cb(0x81)]);if(_0x302891)_0x302891[_0x18f9cb(0x83)]=_0x29d201;}const _0x379460=[];for(const _0x1b3707 of _0x14b2c0){if(_0x379460[_0x18f9cb(0x9c)]>=_0x374693||this[_0x18f9cb(0x7b)][_0x18f9cb(0x76)](_0x1b3707[_0x18f9cb(0x81)]))continue;let _0x98ceb3=this[_0x18f9cb(0x99)][_0x18f9cb(0x77)]();if(_0x98ceb3===undefined){const _0x159470=Array[_0x18f9cb(0x93)](this[_0x18f9cb(0x7b)][_0x18f9cb(0x8c)]())['filter'](_0x32e0a2=>!_0x9584f['has'](_0x32e0a2[_0x18f9cb(0x81)]))['sort']((_0x408307,_0x4cd2c4)=>_0x408307[_0x18f9cb(0x83)]-_0x4cd2c4[_0x18f9cb(0x83)]||_0x408307[_0x18f9cb(0x81)][_0x18f9cb(0x98)](_0x4cd2c4[_0x18f9cb(0x81)]))[0x0];if(!_0x159470)break;this[_0x18f9cb(0x7b)][_0x18f9cb(0x7e)](_0x159470[_0x18f9cb(0x81)]),_0x90d036['push']({..._0x159470}),_0x98ceb3=_0x159470[_0x18f9cb(0x71)];}const _0xe6f3f={'key':_0x1b3707[_0x18f9cb(0x81)],'slotIndex':_0x98ceb3,'state':_0x18f9cb(0x97),'sourceRevision':_0x5e967a,'requestGeneration':this[_0x18f9cb(0x88)],'lastUsedFrame':_0x29d201};this[_0x18f9cb(0x88)]+=0x1,this[_0x18f9cb(0x7b)][_0x18f9cb(0x86)](_0xe6f3f[_0x18f9cb(0x81)],_0xe6f3f),_0x379460['push']({'key':_0xe6f3f[_0x18f9cb(0x81)],'slotIndex':_0xe6f3f[_0x18f9cb(0x71)],'sourceRevision':_0xe6f3f[_0x18f9cb(0x70)],'requestGeneration':_0xe6f3f[_0x18f9cb(0x9b)]});}let _0xff4d8e=0x0,_0x2a2516=0x0;for(const _0x488dc6 of this['entries']['values']())_0x488dc6[_0x18f9cb(0x9a)]===_0x18f9cb(0x92)?_0xff4d8e+=0x1:_0x2a2516+=0x1;return{'selectedKeys':_0x14b2c0[_0x18f9cb(0x72)](_0x1da41e=>_0x1da41e[_0x18f9cb(0x81)]),'loads':_0x379460,'evicted':_0x90d036,'residentCount':_0xff4d8e,'pendingCount':_0x2a2516,'budgetLimited':_0x3ec2ce[_0x18f9cb(0x9c)]>this[_0x18f9cb(0x6e)]};}[_0x3d53aa(0x89)](_0x41b7a2){const _0x53944b=_0x3d53aa,_0x1d4a41=this['entries'][_0x53944b(0x94)](_0x41b7a2[_0x53944b(0x81)]);if(!_0x1d4a41||_0x1d4a41[_0x53944b(0x71)]!==_0x41b7a2['slotIndex']||_0x1d4a41['sourceRevision']!==_0x41b7a2['sourceRevision']||_0x1d4a41[_0x53944b(0x9b)]!==_0x41b7a2[_0x53944b(0x9b)]||_0x41b7a2[_0x53944b(0x70)]!==this[_0x53944b(0x90)])return![];return _0x1d4a41[_0x53944b(0x9a)]=_0x53944b(0x92),!![];}[_0x3d53aa(0x8b)](_0x570d28){const _0x1d7709=_0x3d53aa,_0x14b76d=this[_0x1d7709(0x7b)][_0x1d7709(0x94)](_0x570d28[_0x1d7709(0x81)]);if(!_0x14b76d||_0x14b76d[_0x1d7709(0x9a)]!==_0x1d7709(0x97)||_0x14b76d['requestGeneration']!==_0x570d28[_0x1d7709(0x9b)]||_0x14b76d[_0x1d7709(0x70)]!==_0x570d28[_0x1d7709(0x70)])return![];return this[_0x1d7709(0x7b)][_0x1d7709(0x7e)](_0x14b76d['key']),this['freeSlots'][_0x1d7709(0x79)](_0x14b76d['slotIndex']),!![];}}function _0x1fd0(){const _0x2dfd65=['loading','localeCompare','freeSlots','state','requestGeneration','length','getEntries','slice','capacity','11109966KHluGv','sourceRevision','slotIndex','map','3890808BeKrSm','kind','isFinite','has','pop','Maximum\x20volume\x20uploads\x20must\x20be\x20a\x20non-negative\x20integer.\x20最大体积上传数必须是非负整数。','push','7hERSeb','entries','Volume\x20source\x20revision\x20must\x20be\x20a\x20non-negative\x20integer.\x20体积数据源\x20revision\x20必须是非负整数。','reset','delete','plan','1362IYcoJH','key','18974241WKysVE','lastUsedFrame','locked-slice','1171287MQozJv','set','distance','nextRequestGeneration','commit','preview-slice','cancel','values','isInteger','7739584MRUere','2155665ybgVwh','currentSourceRevision','route-profile','resident','from','get','Volume\x20brick\x20demand\x20is\x20invalid.\x20体积分块需求无效。','474ryJlPS'];_0x1fd0=function(){return _0x2dfd65;};return _0x1fd0();}
@@ -1 +1 @@
1
- const _0x5ab5aa=_0x57d4;function _0x5d9d(){const _0xdc5e88=['2ObeQtj','minimumPitchDegrees','atan2','sin','matrices','1435580wyNlQU','asin','42jNxfAn','POSITIVE_INFINITY','setState','tan','相机裁剪距离必须满足\x200\x20<=\x20near\x20<\x20far。','84110DYgzPY','4hvkOXV','fovYDegrees','aspect','exp','orbit','near','position','far','rotateSpeed','projection','53454oUhhhv','275JrYKvC','cos','226555GWnYYF','maximumPitch','cameraState','orthographic','dolly','9CqARhs','minimumDistance','maximumPitchDegrees','maximumDistance','hypot','2436568UvTRWB','zoomSpeed','min','255279JawmdH','perspective','createProjectionMatrix','state','type','panSpeed','4358784RQypnd','height','max','透视相机参数无效。','target'];_0x5d9d=function(){return _0xdc5e88;};return _0x5d9d();}function _0x57d4(_0x83908d,_0x59e3dc){const _0x5d9dd9=_0x5d9d();return _0x57d4=function(_0x57d470,_0x330572){_0x57d470=_0x57d470-0x1f0;let _0x33be42=_0x5d9dd9[_0x57d470];return _0x33be42;},_0x57d4(_0x83908d,_0x59e3dc);}(function(_0x2059d8,_0x2c55b7){const _0x393a55=_0x57d4,_0x483717=_0x2059d8();while(!![]){try{const _0x3be4f4=-parseInt(_0x393a55(0x211))/0x1*(parseInt(_0x393a55(0x21c))/0x2)+parseInt(_0x393a55(0x201))/0x3*(parseInt(_0x393a55(0x1f7))/0x4)+-parseInt(_0x393a55(0x221))/0x5+-parseInt(_0x393a55(0x1f1))/0x6*(-parseInt(_0x393a55(0x204))/0x7)+-parseInt(_0x393a55(0x20e))/0x8*(-parseInt(_0x393a55(0x209))/0x9)+-parseInt(_0x393a55(0x1f6))/0xa*(parseInt(_0x393a55(0x202))/0xb)+parseInt(_0x393a55(0x217))/0xc;if(_0x3be4f4===_0x2c55b7)break;else _0x483717['push'](_0x483717['shift']());}catch(_0x2bbe43){_0x483717['push'](_0x483717['shift']());}}}(_0x5d9d,0x26f12));import{createLookAtMatrix,createOrthographicMatrix,createPerspectiveMatrix,invertMatrix,multiplyMatrices}from'./matrix';const DEFAULT_POSITION=[0x0,0x1,0x2],DEFAULT_TARGET=[0x0,0x0,0x0],DEFAULT_UP=[0x0,0x1,0x0],DEFAULT_PROJECTION={'type':'perspective','fovYDegrees':0x2d,'near':0.01,'far':0x2710},DEGREE_TO_RADIAN=Math['PI']/0xb4,cloneVector=_0x22ca94=>[_0x22ca94[0x0],_0x22ca94[0x1],_0x22ca94[0x2]],cloneProjection=_0x48b325=>_0x48b325[_0x5ab5aa(0x215)]==='perspective'?{..._0x48b325}:{..._0x48b325},cloneState=_0xf7a409=>({'position':cloneVector(_0xf7a409[_0x5ab5aa(0x1fd)]),'target':cloneVector(_0xf7a409[_0x5ab5aa(0x21b)]),'up':cloneVector(_0xf7a409['up']),'projection':cloneProjection(_0xf7a409[_0x5ab5aa(0x200)])}),subtractVector=(_0x23488b,_0x6578c6)=>[_0x23488b[0x0]-_0x6578c6[0x0],_0x23488b[0x1]-_0x6578c6[0x1],_0x23488b[0x2]-_0x6578c6[0x2]],addVector=(_0x111871,_0x952d56)=>[_0x111871[0x0]+_0x952d56[0x0],_0x111871[0x1]+_0x952d56[0x1],_0x111871[0x2]+_0x952d56[0x2]],scaleVector=(_0x231d18,_0x1e337b)=>[_0x231d18[0x0]*_0x1e337b,_0x231d18[0x1]*_0x1e337b,_0x231d18[0x2]*_0x1e337b],crossVector=(_0x1215d6,_0x74d474)=>[_0x1215d6[0x1]*_0x74d474[0x2]-_0x1215d6[0x2]*_0x74d474[0x1],_0x1215d6[0x2]*_0x74d474[0x0]-_0x1215d6[0x0]*_0x74d474[0x2],_0x1215d6[0x0]*_0x74d474[0x1]-_0x1215d6[0x1]*_0x74d474[0x0]],normalizeVector=_0x143385=>{const _0x3b2864=Math['hypot'](_0x143385[0x0],_0x143385[0x1],_0x143385[0x2]);if(_0x3b2864===0x0)return[0x0,0x0,0x0];return scaleVector(_0x143385,0x1/_0x3b2864);},clamp=(_0x27b2d5,_0x53f97b,_0x39effd)=>Math[_0x5ab5aa(0x210)](_0x39effd,Math[_0x5ab5aa(0x219)](_0x53f97b,_0x27b2d5)),validateProjection=_0x168842=>{const _0x413c43=_0x5ab5aa;if(!(_0x168842[_0x413c43(0x1fc)]>=0x0&&_0x168842[_0x413c43(0x1fe)]>_0x168842[_0x413c43(0x1fc)]))throw new Error(_0x413c43(0x1f5));if(_0x168842[_0x413c43(0x215)]==='perspective'&&!(_0x168842['near']>0x0&&_0x168842[_0x413c43(0x1f8)]>0x0&&_0x168842[_0x413c43(0x1f8)]<0xb4))throw new Error(_0x413c43(0x21a));if(_0x168842[_0x413c43(0x215)]==='orthographic'&&!(_0x168842[_0x413c43(0x218)]>0x0))throw new Error('正交相机高度必须大于\x200。');},resolveInitialState=_0x29ea5e=>{const _0x26ce65=_0x5ab5aa,_0x1488a1={'position':_0x29ea5e['state']?.['position']?cloneVector(_0x29ea5e[_0x26ce65(0x214)][_0x26ce65(0x1fd)]):cloneVector(DEFAULT_POSITION),'target':_0x29ea5e['state']?.['target']?cloneVector(_0x29ea5e['state'][_0x26ce65(0x21b)]):cloneVector(DEFAULT_TARGET),'up':_0x29ea5e['state']?.['up']?cloneVector(_0x29ea5e[_0x26ce65(0x214)]['up']):cloneVector(DEFAULT_UP),'projection':_0x29ea5e[_0x26ce65(0x214)]?.[_0x26ce65(0x200)]?cloneProjection(_0x29ea5e[_0x26ce65(0x214)][_0x26ce65(0x200)]):cloneProjection(DEFAULT_PROJECTION)};return validateProjection(_0x1488a1[_0x26ce65(0x200)]),_0x1488a1;};export class VolumeCamera{['cameraState'];[_0x5ab5aa(0x1f9)];[_0x5ab5aa(0x1ff)];[_0x5ab5aa(0x216)];[_0x5ab5aa(0x20f)];[_0x5ab5aa(0x20a)];[_0x5ab5aa(0x20c)];['minimumPitch'];[_0x5ab5aa(0x205)];constructor(_0x4cafd9={}){const _0x370b31=_0x5ab5aa;this[_0x370b31(0x206)]=resolveInitialState(_0x4cafd9),this['aspect']=_0x4cafd9[_0x370b31(0x1f9)]??0x1,this[_0x370b31(0x1ff)]=_0x4cafd9[_0x370b31(0x1ff)]??0.005,this[_0x370b31(0x216)]=_0x4cafd9['panSpeed']??0x1,this['zoomSpeed']=_0x4cafd9['zoomSpeed']??0.0015,this[_0x370b31(0x20a)]=_0x4cafd9['minimumDistance']??0.001,this['maximumDistance']=_0x4cafd9[_0x370b31(0x20c)]??Number[_0x370b31(0x1f2)],this['minimumPitch']=(_0x4cafd9[_0x370b31(0x21d)]??-0x59)*DEGREE_TO_RADIAN,this['maximumPitch']=(_0x4cafd9[_0x370b31(0x20b)]??0x59)*DEGREE_TO_RADIAN;if(!(this['aspect']>0x0))throw new Error('相机宽高比必须大于\x200。');}get[_0x5ab5aa(0x214)](){const _0x4c341c=_0x5ab5aa;return cloneState(this[_0x4c341c(0x206)]);}get[_0x5ab5aa(0x220)](){const _0x48e8b0=_0x5ab5aa,_0x300b13=createLookAtMatrix(this[_0x48e8b0(0x206)][_0x48e8b0(0x1fd)],this[_0x48e8b0(0x206)]['target'],this[_0x48e8b0(0x206)]['up']),_0x1187ea=this[_0x48e8b0(0x213)](),_0x1ffc5e=multiplyMatrices(_0x1187ea,_0x300b13);return{'view':_0x300b13,'projection':_0x1187ea,'viewProjection':_0x1ffc5e,'inverseViewProjection':invertMatrix(_0x1ffc5e)};}[_0x5ab5aa(0x1f3)](_0x4fbf95){const _0xb49b22=_0x5ab5aa;validateProjection(_0x4fbf95[_0xb49b22(0x200)]),this['cameraState']=cloneState(_0x4fbf95);}['setAspect'](_0x41c58e){const _0x3939ae=_0x5ab5aa;if(!(_0x41c58e>0x0)||!Number['isFinite'](_0x41c58e))throw new Error('相机宽高比必须是大于\x200\x20的有限数。');this[_0x3939ae(0x1f9)]=_0x41c58e;}['setProjectionType'](_0x359508){const _0x135b27=_0x5ab5aa;if(_0x359508===this[_0x135b27(0x206)][_0x135b27(0x200)][_0x135b27(0x215)])return;const _0x1922da=Math['hypot'](...subtractVector(this['cameraState']['position'],this[_0x135b27(0x206)][_0x135b27(0x21b)]));if(_0x359508==='orthographic'){const _0x4a7eef=this[_0x135b27(0x206)][_0x135b27(0x200)],_0x480aa0=_0x4a7eef[_0x135b27(0x215)]==='perspective'?_0x4a7eef['fovYDegrees']*DEGREE_TO_RADIAN:0x2d*DEGREE_TO_RADIAN;this[_0x135b27(0x206)][_0x135b27(0x200)]={'type':_0x359508,'height':0x2*_0x1922da*Math['tan'](_0x480aa0/0x2),'near':_0x4a7eef['near'],'far':_0x4a7eef[_0x135b27(0x1fe)]};return;}const _0x4c4237=this[_0x135b27(0x206)][_0x135b27(0x200)],_0x4995b8=0x2d,_0x4042d8=_0x4c4237[_0x135b27(0x215)]===_0x135b27(0x207)?_0x4c4237[_0x135b27(0x218)]/(0x2*Math[_0x135b27(0x1f4)](_0x4995b8*DEGREE_TO_RADIAN/0x2)):_0x1922da,_0x4d457c=normalizeVector(subtractVector(this[_0x135b27(0x206)][_0x135b27(0x1fd)],this['cameraState']['target']));this[_0x135b27(0x206)]['position']=addVector(this[_0x135b27(0x206)][_0x135b27(0x21b)],scaleVector(_0x4d457c,_0x4042d8)),this[_0x135b27(0x206)]['projection']={'type':_0x359508,'fovYDegrees':_0x4995b8,'near':_0x4c4237[_0x135b27(0x1fc)],'far':_0x4c4237[_0x135b27(0x1fe)]};}[_0x5ab5aa(0x1fb)](_0x23e25d,_0x12a8be){const _0x502d98=_0x5ab5aa,_0x2c77a1=subtractVector(this[_0x502d98(0x206)]['position'],this[_0x502d98(0x206)][_0x502d98(0x21b)]),_0x56dbb5=Math[_0x502d98(0x20d)](..._0x2c77a1);if(_0x56dbb5===0x0)return;const _0x3dd47a=Math[_0x502d98(0x21e)](_0x2c77a1[0x0],_0x2c77a1[0x2])-_0x23e25d*this[_0x502d98(0x1ff)],_0x119e1a=clamp(Math[_0x502d98(0x1f0)](_0x2c77a1[0x1]/_0x56dbb5)+_0x12a8be*this[_0x502d98(0x1ff)],this['minimumPitch'],this[_0x502d98(0x205)]),_0x306c4b=Math[_0x502d98(0x203)](_0x119e1a)*_0x56dbb5;this[_0x502d98(0x206)][_0x502d98(0x1fd)]=addVector(this[_0x502d98(0x206)]['target'],[Math[_0x502d98(0x21f)](_0x3dd47a)*_0x306c4b,Math[_0x502d98(0x21f)](_0x119e1a)*_0x56dbb5,Math[_0x502d98(0x203)](_0x3dd47a)*_0x306c4b]);}['pan'](_0x25ff6f,_0x29373e,_0x20e767){const _0xa131e5=_0x5ab5aa;if(!(_0x20e767>0x0))return;const _0x5b1ca7=normalizeVector(subtractVector(this['cameraState'][_0xa131e5(0x21b)],this[_0xa131e5(0x206)][_0xa131e5(0x1fd)])),_0x5e37f0=normalizeVector(crossVector(_0x5b1ca7,this[_0xa131e5(0x206)]['up'])),_0x167ad2=normalizeVector(crossVector(_0x5e37f0,_0x5b1ca7)),_0x1a530d=Math[_0xa131e5(0x20d)](...subtractVector(this[_0xa131e5(0x206)][_0xa131e5(0x1fd)],this[_0xa131e5(0x206)][_0xa131e5(0x21b)])),_0xa035f2=this[_0xa131e5(0x206)][_0xa131e5(0x200)]['type']===_0xa131e5(0x207)?this[_0xa131e5(0x206)]['projection'][_0xa131e5(0x218)]:0x2*_0x1a530d*Math['tan'](this[_0xa131e5(0x206)]['projection']['fovYDegrees']*DEGREE_TO_RADIAN/0x2),_0x48de72=_0xa035f2/_0x20e767*this[_0xa131e5(0x216)],_0x438715=addVector(scaleVector(_0x5e37f0,-_0x25ff6f*_0x48de72),scaleVector(_0x167ad2,_0x29373e*_0x48de72));this[_0xa131e5(0x206)][_0xa131e5(0x1fd)]=addVector(this[_0xa131e5(0x206)][_0xa131e5(0x1fd)],_0x438715),this[_0xa131e5(0x206)][_0xa131e5(0x21b)]=addVector(this['cameraState'][_0xa131e5(0x21b)],_0x438715);}[_0x5ab5aa(0x208)](_0x43751c){const _0x141ad5=_0x5ab5aa,_0x32f5da=Math[_0x141ad5(0x1fa)](_0x43751c*this['zoomSpeed']);if(this['cameraState'][_0x141ad5(0x200)][_0x141ad5(0x215)]===_0x141ad5(0x207)){this[_0x141ad5(0x206)][_0x141ad5(0x200)]={...this['cameraState'][_0x141ad5(0x200)],'height':Math[_0x141ad5(0x219)](this[_0x141ad5(0x20a)],this[_0x141ad5(0x206)][_0x141ad5(0x200)][_0x141ad5(0x218)]*_0x32f5da)};return;}const _0x9659c7=subtractVector(this[_0x141ad5(0x206)]['position'],this[_0x141ad5(0x206)][_0x141ad5(0x21b)]),_0x437288=clamp(Math[_0x141ad5(0x20d)](..._0x9659c7)*_0x32f5da,this['minimumDistance'],this[_0x141ad5(0x20c)]);this[_0x141ad5(0x206)][_0x141ad5(0x1fd)]=addVector(this[_0x141ad5(0x206)][_0x141ad5(0x21b)],scaleVector(normalizeVector(_0x9659c7),_0x437288));}[_0x5ab5aa(0x213)](){const _0x1c8f45=_0x5ab5aa,_0x4fb677=this[_0x1c8f45(0x206)][_0x1c8f45(0x200)];return _0x4fb677[_0x1c8f45(0x215)]===_0x1c8f45(0x212)?createPerspectiveMatrix(_0x4fb677[_0x1c8f45(0x1f8)]*DEGREE_TO_RADIAN,this['aspect'],_0x4fb677['near'],_0x4fb677[_0x1c8f45(0x1fe)]):createOrthographicMatrix(_0x4fb677[_0x1c8f45(0x218)],this[_0x1c8f45(0x1f9)],_0x4fb677[_0x1c8f45(0x1fc)],_0x4fb677[_0x1c8f45(0x1fe)]);}}
1
+ const _0xaea395=_0x42f1;(function(_0xd22287,_0x3b72f3){const _0x2e2d09=_0x42f1,_0x1b5553=_0xd22287();while(!![]){try{const _0x3d385f=-parseInt(_0x2e2d09(0x1d7))/0x1+parseInt(_0x2e2d09(0x1b1))/0x2+-parseInt(_0x2e2d09(0x1a9))/0x3*(parseInt(_0x2e2d09(0x1aa))/0x4)+parseInt(_0x2e2d09(0x1a8))/0x5*(parseInt(_0x2e2d09(0x1d9))/0x6)+-parseInt(_0x2e2d09(0x1b8))/0x7*(-parseInt(_0x2e2d09(0x1ca))/0x8)+-parseInt(_0x2e2d09(0x1ae))/0x9*(-parseInt(_0x2e2d09(0x1ad))/0xa)+-parseInt(_0x2e2d09(0x1bf))/0xb*(parseInt(_0x2e2d09(0x1d2))/0xc);if(_0x3d385f===_0x3b72f3)break;else _0x1b5553['push'](_0x1b5553['shift']());}catch(_0x2e2a13){_0x1b5553['push'](_0x1b5553['shift']());}}}(_0x378a,0x1aea7));import{createLookAtMatrix,createOrthographicMatrix,createPerspectiveMatrix,invertMatrix,multiplyMatrices}from'./matrix';function _0x378a(){const _0x436f86=['isFinite','projection','215636qMxqkA','hypot','18156JUrqRo','dolly','235LHwkEr','204990zqmQrd','8aiOyrb','maximumPitch','aspect','753310XnBPQf','18JmFOKz','maximumDistance','asin','165566xtvsyo','sin','相机宽高比必须大于\x200。','orbit','cos','minimumDistance','cameraState','150269QWszNX','exp','透视相机参数无效。','panSpeed','target','setState','type','5489sdhKsR','max','far','state','atan2','matrices','createProjectionMatrix','position','zoomSpeed','perspective','setAspect','40eHQqcB','相机宽高比必须是大于\x200\x20的有限数。','fovYDegrees','orthographic','minimumPitch','setProjectionType','near','maximumPitchDegrees','492qHPXtE','rotateSpeed','height'];_0x378a=function(){return _0x436f86;};return _0x378a();}function _0x42f1(_0x10d658,_0x165029){const _0x378a35=_0x378a();return _0x42f1=function(_0x42f114,_0x49d420){_0x42f114=_0x42f114-0x1a7;let _0x3f02f4=_0x378a35[_0x42f114];return _0x3f02f4;},_0x42f1(_0x10d658,_0x165029);}const DEFAULT_POSITION=[0x0,0x1,0x2],DEFAULT_TARGET=[0x0,0x0,0x0],DEFAULT_UP=[0x0,0x1,0x0],DEFAULT_PROJECTION={'type':_0xaea395(0x1c8),'fovYDegrees':0x2d,'near':0.01,'far':0x2710},DEGREE_TO_RADIAN=Math['PI']/0xb4,cloneVector=_0xc96e3d=>[_0xc96e3d[0x0],_0xc96e3d[0x1],_0xc96e3d[0x2]],cloneProjection=_0x2ed29c=>_0x2ed29c['type']==='perspective'?{..._0x2ed29c}:{..._0x2ed29c},cloneState=_0x32e735=>({'position':cloneVector(_0x32e735[_0xaea395(0x1c6)]),'target':cloneVector(_0x32e735[_0xaea395(0x1bc)]),'up':cloneVector(_0x32e735['up']),'projection':cloneProjection(_0x32e735[_0xaea395(0x1d6)])}),subtractVector=(_0x2e22d3,_0x5d55ba)=>[_0x2e22d3[0x0]-_0x5d55ba[0x0],_0x2e22d3[0x1]-_0x5d55ba[0x1],_0x2e22d3[0x2]-_0x5d55ba[0x2]],addVector=(_0x2aa386,_0xdf65ac)=>[_0x2aa386[0x0]+_0xdf65ac[0x0],_0x2aa386[0x1]+_0xdf65ac[0x1],_0x2aa386[0x2]+_0xdf65ac[0x2]],scaleVector=(_0x3d66b4,_0x19b1f5)=>[_0x3d66b4[0x0]*_0x19b1f5,_0x3d66b4[0x1]*_0x19b1f5,_0x3d66b4[0x2]*_0x19b1f5],crossVector=(_0x15d670,_0x29280c)=>[_0x15d670[0x1]*_0x29280c[0x2]-_0x15d670[0x2]*_0x29280c[0x1],_0x15d670[0x2]*_0x29280c[0x0]-_0x15d670[0x0]*_0x29280c[0x2],_0x15d670[0x0]*_0x29280c[0x1]-_0x15d670[0x1]*_0x29280c[0x0]],normalizeVector=_0x16d760=>{const _0x1f123b=Math['hypot'](_0x16d760[0x0],_0x16d760[0x1],_0x16d760[0x2]);if(_0x1f123b===0x0)return[0x0,0x0,0x0];return scaleVector(_0x16d760,0x1/_0x1f123b);},clamp=(_0x32bc58,_0xf3df76,_0x211d40)=>Math['min'](_0x211d40,Math[_0xaea395(0x1c0)](_0xf3df76,_0x32bc58)),validateProjection=_0x567043=>{const _0x3173e1=_0xaea395;if(!(_0x567043[_0x3173e1(0x1d0)]>=0x0&&_0x567043[_0x3173e1(0x1c1)]>_0x567043[_0x3173e1(0x1d0)]))throw new Error('相机裁剪距离必须满足\x200\x20<=\x20near\x20<\x20far。');if(_0x567043[_0x3173e1(0x1be)]===_0x3173e1(0x1c8)&&!(_0x567043[_0x3173e1(0x1d0)]>0x0&&_0x567043['fovYDegrees']>0x0&&_0x567043[_0x3173e1(0x1cc)]<0xb4))throw new Error(_0x3173e1(0x1ba));if(_0x567043[_0x3173e1(0x1be)]===_0x3173e1(0x1cd)&&!(_0x567043['height']>0x0))throw new Error('正交相机高度必须大于\x200。');},resolveInitialState=_0x2f4e5f=>{const _0x345c94=_0xaea395,_0x1f0347={'position':_0x2f4e5f[_0x345c94(0x1c2)]?.[_0x345c94(0x1c6)]?cloneVector(_0x2f4e5f[_0x345c94(0x1c2)][_0x345c94(0x1c6)]):cloneVector(DEFAULT_POSITION),'target':_0x2f4e5f[_0x345c94(0x1c2)]?.[_0x345c94(0x1bc)]?cloneVector(_0x2f4e5f[_0x345c94(0x1c2)][_0x345c94(0x1bc)]):cloneVector(DEFAULT_TARGET),'up':_0x2f4e5f[_0x345c94(0x1c2)]?.['up']?cloneVector(_0x2f4e5f[_0x345c94(0x1c2)]['up']):cloneVector(DEFAULT_UP),'projection':_0x2f4e5f[_0x345c94(0x1c2)]?.[_0x345c94(0x1d6)]?cloneProjection(_0x2f4e5f['state']['projection']):cloneProjection(DEFAULT_PROJECTION)};return validateProjection(_0x1f0347['projection']),_0x1f0347;};export class VolumeCamera{[_0xaea395(0x1b7)];[_0xaea395(0x1ac)];['rotateSpeed'];['panSpeed'];[_0xaea395(0x1c7)];[_0xaea395(0x1b6)];['maximumDistance'];[_0xaea395(0x1ce)];[_0xaea395(0x1ab)];constructor(_0x440acf={}){const _0x48ea6b=_0xaea395;this[_0x48ea6b(0x1b7)]=resolveInitialState(_0x440acf),this['aspect']=_0x440acf[_0x48ea6b(0x1ac)]??0x1,this[_0x48ea6b(0x1d3)]=_0x440acf[_0x48ea6b(0x1d3)]??0.005,this['panSpeed']=_0x440acf[_0x48ea6b(0x1bb)]??0x1,this[_0x48ea6b(0x1c7)]=_0x440acf['zoomSpeed']??0.0015,this['minimumDistance']=_0x440acf[_0x48ea6b(0x1b6)]??0.001,this[_0x48ea6b(0x1af)]=_0x440acf[_0x48ea6b(0x1af)]??Number['POSITIVE_INFINITY'],this['minimumPitch']=(_0x440acf['minimumPitchDegrees']??-0x59)*DEGREE_TO_RADIAN,this[_0x48ea6b(0x1ab)]=(_0x440acf[_0x48ea6b(0x1d1)]??0x59)*DEGREE_TO_RADIAN;if(!(this[_0x48ea6b(0x1ac)]>0x0))throw new Error(_0x48ea6b(0x1b3));}get[_0xaea395(0x1c2)](){const _0xc45c62=_0xaea395;return cloneState(this[_0xc45c62(0x1b7)]);}get[_0xaea395(0x1c4)](){const _0x58d962=_0xaea395,_0x208cd1=createLookAtMatrix(this['cameraState'][_0x58d962(0x1c6)],this[_0x58d962(0x1b7)]['target'],this[_0x58d962(0x1b7)]['up']),_0x5aa55b=this[_0x58d962(0x1c5)](),_0x11dc58=multiplyMatrices(_0x5aa55b,_0x208cd1);return{'view':_0x208cd1,'projection':_0x5aa55b,'viewProjection':_0x11dc58,'inverseViewProjection':invertMatrix(_0x11dc58)};}[_0xaea395(0x1bd)](_0x475b5c){const _0x3dbfcb=_0xaea395;validateProjection(_0x475b5c['projection']),this[_0x3dbfcb(0x1b7)]=cloneState(_0x475b5c);}[_0xaea395(0x1c9)](_0x4530c1){const _0x16f784=_0xaea395;if(!(_0x4530c1>0x0)||!Number[_0x16f784(0x1d5)](_0x4530c1))throw new Error(_0x16f784(0x1cb));this[_0x16f784(0x1ac)]=_0x4530c1;}[_0xaea395(0x1cf)](_0xcc4edb){const _0x3e1499=_0xaea395;if(_0xcc4edb===this[_0x3e1499(0x1b7)][_0x3e1499(0x1d6)][_0x3e1499(0x1be)])return;const _0x125786=Math[_0x3e1499(0x1d8)](...subtractVector(this[_0x3e1499(0x1b7)][_0x3e1499(0x1c6)],this[_0x3e1499(0x1b7)][_0x3e1499(0x1bc)]));if(_0xcc4edb===_0x3e1499(0x1cd)){const _0xaec08a=this['cameraState'][_0x3e1499(0x1d6)],_0x147155=_0xaec08a[_0x3e1499(0x1be)]===_0x3e1499(0x1c8)?_0xaec08a[_0x3e1499(0x1cc)]*DEGREE_TO_RADIAN:0x2d*DEGREE_TO_RADIAN;this['cameraState']['projection']={'type':_0xcc4edb,'height':0x2*_0x125786*Math['tan'](_0x147155/0x2),'near':_0xaec08a[_0x3e1499(0x1d0)],'far':_0xaec08a[_0x3e1499(0x1c1)]};return;}const _0x2e40e5=this['cameraState']['projection'],_0x1d1aca=0x2d,_0x3760f0=_0x2e40e5[_0x3e1499(0x1be)]===_0x3e1499(0x1cd)?_0x2e40e5[_0x3e1499(0x1d4)]/(0x2*Math['tan'](_0x1d1aca*DEGREE_TO_RADIAN/0x2)):_0x125786,_0x1746de=normalizeVector(subtractVector(this[_0x3e1499(0x1b7)]['position'],this[_0x3e1499(0x1b7)]['target']));this[_0x3e1499(0x1b7)][_0x3e1499(0x1c6)]=addVector(this[_0x3e1499(0x1b7)][_0x3e1499(0x1bc)],scaleVector(_0x1746de,_0x3760f0)),this[_0x3e1499(0x1b7)][_0x3e1499(0x1d6)]={'type':_0xcc4edb,'fovYDegrees':_0x1d1aca,'near':_0x2e40e5['near'],'far':_0x2e40e5[_0x3e1499(0x1c1)]};}[_0xaea395(0x1b4)](_0x1d5a23,_0x2e3325){const _0x38fc59=_0xaea395,_0x55c224=subtractVector(this[_0x38fc59(0x1b7)][_0x38fc59(0x1c6)],this[_0x38fc59(0x1b7)][_0x38fc59(0x1bc)]),_0x4c5db4=Math[_0x38fc59(0x1d8)](..._0x55c224);if(_0x4c5db4===0x0)return;const _0x103bb7=Math[_0x38fc59(0x1c3)](_0x55c224[0x0],_0x55c224[0x2])-_0x1d5a23*this[_0x38fc59(0x1d3)],_0x5b69c7=clamp(Math[_0x38fc59(0x1b0)](_0x55c224[0x1]/_0x4c5db4)+_0x2e3325*this['rotateSpeed'],this[_0x38fc59(0x1ce)],this[_0x38fc59(0x1ab)]),_0x37e39c=Math[_0x38fc59(0x1b5)](_0x5b69c7)*_0x4c5db4;this['cameraState'][_0x38fc59(0x1c6)]=addVector(this[_0x38fc59(0x1b7)]['target'],[Math[_0x38fc59(0x1b2)](_0x103bb7)*_0x37e39c,Math['sin'](_0x5b69c7)*_0x4c5db4,Math['cos'](_0x103bb7)*_0x37e39c]);}['pan'](_0x29d9e0,_0x57bd94,_0x57e593){const _0x52a7bc=_0xaea395;if(!(_0x57e593>0x0))return;const _0x56796a=normalizeVector(subtractVector(this[_0x52a7bc(0x1b7)][_0x52a7bc(0x1bc)],this[_0x52a7bc(0x1b7)][_0x52a7bc(0x1c6)])),_0x25709a=normalizeVector(crossVector(_0x56796a,this['cameraState']['up'])),_0x2bd1b8=normalizeVector(crossVector(_0x25709a,_0x56796a)),_0x32a93b=Math['hypot'](...subtractVector(this[_0x52a7bc(0x1b7)][_0x52a7bc(0x1c6)],this['cameraState'][_0x52a7bc(0x1bc)])),_0x4f7b01=this[_0x52a7bc(0x1b7)][_0x52a7bc(0x1d6)][_0x52a7bc(0x1be)]==='orthographic'?this[_0x52a7bc(0x1b7)][_0x52a7bc(0x1d6)][_0x52a7bc(0x1d4)]:0x2*_0x32a93b*Math['tan'](this[_0x52a7bc(0x1b7)][_0x52a7bc(0x1d6)][_0x52a7bc(0x1cc)]*DEGREE_TO_RADIAN/0x2),_0x2d33f5=_0x4f7b01/_0x57e593*this[_0x52a7bc(0x1bb)],_0x5d8e60=addVector(scaleVector(_0x25709a,-_0x29d9e0*_0x2d33f5),scaleVector(_0x2bd1b8,_0x57bd94*_0x2d33f5));this[_0x52a7bc(0x1b7)]['position']=addVector(this[_0x52a7bc(0x1b7)][_0x52a7bc(0x1c6)],_0x5d8e60),this['cameraState'][_0x52a7bc(0x1bc)]=addVector(this[_0x52a7bc(0x1b7)][_0x52a7bc(0x1bc)],_0x5d8e60);}[_0xaea395(0x1a7)](_0x1fe70b){const _0x318681=_0xaea395,_0x4a9665=Math[_0x318681(0x1b9)](_0x1fe70b*this['zoomSpeed']);if(this[_0x318681(0x1b7)][_0x318681(0x1d6)]['type']===_0x318681(0x1cd)){this['cameraState'][_0x318681(0x1d6)]={...this[_0x318681(0x1b7)][_0x318681(0x1d6)],'height':Math[_0x318681(0x1c0)](this[_0x318681(0x1b6)],this[_0x318681(0x1b7)]['projection'][_0x318681(0x1d4)]*_0x4a9665)};return;}const _0x1ee249=subtractVector(this['cameraState'][_0x318681(0x1c6)],this[_0x318681(0x1b7)][_0x318681(0x1bc)]),_0x472efa=clamp(Math[_0x318681(0x1d8)](..._0x1ee249)*_0x4a9665,this[_0x318681(0x1b6)],this[_0x318681(0x1af)]);this['cameraState']['position']=addVector(this[_0x318681(0x1b7)][_0x318681(0x1bc)],scaleVector(normalizeVector(_0x1ee249),_0x472efa));}[_0xaea395(0x1c5)](){const _0x3f36b3=_0xaea395,_0x49a600=this[_0x3f36b3(0x1b7)]['projection'];return _0x49a600[_0x3f36b3(0x1be)]===_0x3f36b3(0x1c8)?createPerspectiveMatrix(_0x49a600['fovYDegrees']*DEGREE_TO_RADIAN,this[_0x3f36b3(0x1ac)],_0x49a600[_0x3f36b3(0x1d0)],_0x49a600[_0x3f36b3(0x1c1)]):createOrthographicMatrix(_0x49a600['height'],this[_0x3f36b3(0x1ac)],_0x49a600[_0x3f36b3(0x1d0)],_0x49a600['far']);}}
@@ -1 +1 @@
1
- function _0x65ac(_0x292211,_0x206c48){const _0x41bfe0=_0x41bf();return _0x65ac=function(_0x65ac28,_0x93bb1){_0x65ac28=_0x65ac28-0x19e;let _0x59e296=_0x41bfe0[_0x65ac28];return _0x59e296;},_0x65ac(_0x292211,_0x206c48);}const _0x531360=_0x65ac;(function(_0xb72269,_0x36e452){const _0x577845=_0x65ac,_0x39c7c3=_0xb72269();while(!![]){try{const _0xba9453=parseInt(_0x577845(0x1a5))/0x1*(parseInt(_0x577845(0x1a4))/0x2)+parseInt(_0x577845(0x1a3))/0x3*(parseInt(_0x577845(0x1a8))/0x4)+parseInt(_0x577845(0x1a1))/0x5*(-parseInt(_0x577845(0x1a0))/0x6)+parseInt(_0x577845(0x1aa))/0x7*(-parseInt(_0x577845(0x19f))/0x8)+parseInt(_0x577845(0x1a6))/0x9*(-parseInt(_0x577845(0x1a2))/0xa)+-parseInt(_0x577845(0x1ab))/0xb*(parseInt(_0x577845(0x19e))/0xc)+parseInt(_0x577845(0x1a9))/0xd;if(_0xba9453===_0x36e452)break;else _0x39c7c3['push'](_0x39c7c3['shift']());}catch(_0x4204c9){_0x39c7c3['push'](_0x39c7c3['shift']());}}}(_0x41bf,0x97756));function _0x41bf(){const _0x5cee2a=['77CfLImk','1025832OXjiSt','1438616bGDCQs','6481290VTIYsu','5GawjuQ','90IMVOXJ','331161YMynrk','1290646JfOIcy','1HncmXy','1136007imbDiq','create','36VpHiUr','30363749CviSCv','21vZPrHd'];_0x41bf=function(){return _0x5cee2a;};return _0x41bf();}import{VolumeScene}from'./volumeScene';export const createVolumeScene=_0x334e2a=>VolumeScene[_0x531360(0x1a7)](_0x334e2a);
1
+ const _0x3defb8=_0x29d5;(function(_0x5e4c7c,_0x47ed30){const _0x61ff4f=_0x29d5,_0x30905e=_0x5e4c7c();while(!![]){try{const _0x2235de=-parseInt(_0x61ff4f(0x138))/0x1*(-parseInt(_0x61ff4f(0x133))/0x2)+parseInt(_0x61ff4f(0x13c))/0x3*(parseInt(_0x61ff4f(0x136))/0x4)+parseInt(_0x61ff4f(0x13d))/0x5*(parseInt(_0x61ff4f(0x137))/0x6)+-parseInt(_0x61ff4f(0x134))/0x7*(-parseInt(_0x61ff4f(0x135))/0x8)+-parseInt(_0x61ff4f(0x131))/0x9*(parseInt(_0x61ff4f(0x139))/0xa)+-parseInt(_0x61ff4f(0x13b))/0xb*(parseInt(_0x61ff4f(0x130))/0xc)+-parseInt(_0x61ff4f(0x132))/0xd*(-parseInt(_0x61ff4f(0x12f))/0xe);if(_0x2235de===_0x47ed30)break;else _0x30905e['push'](_0x30905e['shift']());}catch(_0x456c8f){_0x30905e['push'](_0x30905e['shift']());}}}(_0x3671,0x7eb38));import{VolumeScene}from'./volumeScene';function _0x29d5(_0x4da919,_0x437e26){const _0x3671b8=_0x3671();return _0x29d5=function(_0x29d551,_0x585199){_0x29d551=_0x29d551-0x12f;let _0x58af66=_0x3671b8[_0x29d551];return _0x58af66;},_0x29d5(_0x4da919,_0x437e26);}export const createVolumeScene=_0x14a9f2=>VolumeScene[_0x3defb8(0x13a)](_0x14a9f2);function _0x3671(){const _0x1a2f5b=['2433544fsPnCm','16GRwMut','243462cGVDQC','672073xUGBhR','10KGGZBb','create','99zGYuCn','44271lUKuLw','35aNKmWl','14VPQHkV','242532BjsayP','8833743SgKhpm','4719793jAmpKJ','2GQkZzX','7ibURqK'];_0x3671=function(){return _0x1a2f5b;};return _0x3671();}