@arcgis/core 5.2.0-next.93 → 5.2.0-next.95

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 (190) hide show
  1. package/arcade/arcadeAsyncRuntime.js +1 -1
  2. package/arcade/arcadeCompiler.js +1 -1
  3. package/arcade/functions/portal.js +2 -0
  4. package/arcade/treeAnalysis.js +1 -1
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/{c4a0d3149947a1d2c484.js → 05662a663f761dd3dea5.js} +1 -1
  7. package/assets/esri/core/workers/chunks/0be98adfef79fc5036f0.js +1 -0
  8. package/assets/esri/core/workers/chunks/0df9864ecebe6a2b973f.js +1 -0
  9. package/assets/esri/core/workers/chunks/10c13c36c42c5ac41d12.js +1 -0
  10. package/assets/esri/core/workers/chunks/{e50adcfb392adfb3f79c.js → 1b311ff39dede07865df.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{188c6ff5f4664827c254.js → 1c803eef9a8fdabc61e3.js} +2 -2
  12. package/assets/esri/core/workers/chunks/1d7f633f158062eb3f64.js +1 -0
  13. package/assets/esri/core/workers/chunks/1f047dd747e7c1916dc7.js +1684 -0
  14. package/assets/esri/core/workers/chunks/2524e2385f61a6898411.js +1 -0
  15. package/assets/esri/core/workers/chunks/26737d061c7cfbbab95c.js +1 -0
  16. package/assets/esri/core/workers/chunks/{91de343844ac578e7c93.js → 2b6d261fe79fe186fb22.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{8a87e1a89a0d8c6203a7.js → 2e51764c8aa31096cb2a.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{da8a314800944706511b.js → 36e35a8067b18f59cc05.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{d270b49c037085503016.js → 3a9435569ba460ff7e3d.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{5d9c92c4e60a4696fdad.js → 471027e4280bd51167b0.js} +1 -1
  21. package/assets/esri/core/workers/chunks/4c088c26d5d546c95c90.js +1 -0
  22. package/assets/esri/core/workers/chunks/{e594b6db9caee1f7b9fc.js → 4d700cb028f6306b163e.js} +1 -1
  23. package/assets/esri/core/workers/chunks/5168bd8ab6233dc9c32a.js +1 -0
  24. package/assets/esri/core/workers/chunks/{cd02a6078443b8f63927.js → 5b8591486f33627f5389.js} +1 -1
  25. package/assets/esri/core/workers/chunks/5d6733dcee9c2ef00072.js +1 -0
  26. package/assets/esri/core/workers/chunks/{a89dbef8155d7c4354da.js → 5edf77618ca51819d7c4.js} +2 -2
  27. package/assets/esri/core/workers/chunks/6057a79c68c33ee4a193.js +1 -0
  28. package/assets/esri/core/workers/chunks/{48726010778d6004e347.js → 63127e3b22e7eac6003d.js} +2 -2
  29. package/assets/esri/core/workers/chunks/{ff83d0337ac489ab08de.js → 678585509706755c0434.js} +2 -2
  30. package/assets/esri/core/workers/chunks/{2754ba5cc094028a7a3c.js → 691e9cc541cfaebe1776.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{32f11b4aeae1ef00e466.js → 6baae3e856d904fef9b1.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{aed7b80145b22c246098.js → 6cbc30b31f0bb39c73ca.js} +1 -1
  33. package/assets/esri/core/workers/chunks/6cc03ef97d7731153b9a.js +1 -0
  34. package/assets/esri/core/workers/chunks/{d44338bf5edafa3ca926.js → 6f01bd01b13662eb3bd7.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{76e7d3cde2da4bdd7820.js → 74cd9df85c4560bb8e52.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{97e41500fc2d24a88938.js → 7b70d6fdfa7a19ffffb0.js} +1 -1
  37. package/assets/esri/core/workers/chunks/7bb3411a86cdd736d555.js +1 -0
  38. package/assets/esri/core/workers/chunks/7ddb5800777fbecee3a8.js +1 -0
  39. package/assets/esri/core/workers/chunks/7eae9053065d3d38e54e.js +1 -0
  40. package/assets/esri/core/workers/chunks/7efc51324cfc8e08c756.js +1 -0
  41. package/assets/esri/core/workers/chunks/{e90076ac1cf88a83a7f9.js → 80f38ab2b7ae61e6f301.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{5aa23b0f4521ba9a07ad.js → 854f42f16fdb40000aae.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{24c44541046576fee7e0.js → 87094044458b0ea5cb0f.js} +2 -2
  44. package/assets/esri/core/workers/chunks/909ee7d2a0eec773037a.js +1 -0
  45. package/assets/esri/core/workers/chunks/92a6559a6999b26362d7.js +1 -0
  46. package/assets/esri/core/workers/chunks/{3a65693964e3976d8035.js → 9df38cadebf8e6fd746c.js} +1 -1
  47. package/assets/esri/core/workers/chunks/a0eb882a5a81d25b9153.js +1 -0
  48. package/assets/esri/core/workers/chunks/{20f6e681ccd8bf884b77.js → a72983c3621810d4b1af.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{9226205850e35b7fc610.js → a8aa8cb60b30f0983e7e.js} +1 -1
  50. package/assets/esri/core/workers/chunks/a8e9aa5461c71c88e2e5.js +1 -0
  51. package/assets/esri/core/workers/chunks/{1ab8307ba9981124f669.js → af6b9fd77b1792fbb66e.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{19e93d4d37018e3ee849.js → b102ae764c14d8b32ace.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{1554feab934e8e1bcd28.js → b333de4dea14c5db0a4d.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{d7d5275d8b3c9430de1f.js → b7c0da9d255d5e48320d.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{6b9dbf43c0659e55c539.js → be0417df35a7d99af675.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{a46ac0be9aabc4cfedc7.js → cc3186dcbbf5edff8b9e.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{6fd0d9431b141f2a3252.js → cefb70d633c220cbedf9.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{69c9a12c97ead8963817.js → d1304d414b1fa725168a.js} +1 -1
  59. package/assets/esri/core/workers/chunks/d453627894e6e5b02023.js +1 -0
  60. package/assets/esri/core/workers/chunks/e4380706b629729f2212.js +1 -0
  61. package/assets/esri/core/workers/chunks/e5b6fa57cc4028fbd401.js +1 -0
  62. package/assets/esri/core/workers/chunks/e7fdad0c07beb3614b60.js +1 -0
  63. package/assets/esri/core/workers/chunks/ea1877ce00da3b585a30.js +1 -0
  64. package/assets/esri/core/workers/chunks/{0336f4f8498a22347720.js → ea5ee1b12b43594592a0.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{c4fef90cf08bbe4f0bb5.js → eafc591e1a98000d54ef.js} +1 -1
  66. package/assets/esri/core/workers/chunks/f331c24247d132589859.js +1 -0
  67. package/assets/esri/core/workers/chunks/f5867d8ba73c67ac27d2.js +1 -0
  68. package/assets/esri/core/workers/chunks/{b7ed5f130661e9ca00b9.js → f5a058a0ce006bce2a2a.js} +1 -1
  69. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  70. package/chunks/{GlowBlur.glsl.js → BlurEmission.glsl.js} +3 -3
  71. package/chunks/EmissionComposite.glsl.js +3 -3
  72. package/chunks/Fog.glsl.js +8 -6
  73. package/chunks/RibbonLine.glsl.js +52 -52
  74. package/chunks/bundle.js +1 -1
  75. package/chunks/portal.js +2 -0
  76. package/config.js +1 -1
  77. package/core/timeUtils.d.ts +62 -0
  78. package/core/timeUtils.js +1 -1
  79. package/kernel.js +1 -1
  80. package/layers/AnnotationFeatureLayer.d.ts +0 -1
  81. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  82. package/layers/support/AnnotationFeatureSublayer.js +1 -1
  83. package/libs/parquet/parquet.js +1 -1
  84. package/package.json +3 -3
  85. package/rest/imageService/fetchRasterInfo.js +1 -1
  86. package/support/revision.js +1 -1
  87. package/symbols/cim/types.d.ts +2 -1
  88. package/views/2d/engine/Stage.js +1 -1
  89. package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
  90. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  91. package/views/2d/engine/webgl/Painter.js +1 -1
  92. package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
  93. package/views/2d/engine/webgl/shaderGraph/techniques/Technique.js +1 -1
  94. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
  95. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
  96. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTechnique.js +1 -1
  97. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileStencilTechnique.js +1 -1
  98. package/views/2d/layers/AnnotationFeatureLayerView2D.js +1 -1
  99. package/views/2d/layers/features/FeatureContainer.js +1 -1
  100. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
  101. package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
  102. package/views/2d/layers/graphics/GraphicContainer.js +1 -1
  103. package/views/2d/layers/graphics/HighlightGraphicContainer.js +1 -1
  104. package/views/3d/environment/CloudyWeather.js +1 -1
  105. package/views/3d/environment/SunnyWeather.js +1 -1
  106. package/views/3d/layers/I3SMeshView3D.js +1 -1
  107. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  108. package/views/3d/state/ViewStateManager.js +1 -1
  109. package/views/3d/support/GaussianSplatSortWorker.js +1 -1
  110. package/views/3d/support/buffer/InterleavedLayout.js +1 -1
  111. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  112. package/views/3d/terrain/TileCompositor.js +1 -1
  113. package/views/3d/webgl/RenderCamera.js +1 -1
  114. package/views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js +1 -1
  115. package/views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js +1 -5
  116. package/views/3d/webgl-engine/effects/clouds/CloudsParameters.js +1 -1
  117. package/views/3d/webgl-engine/effects/clouds/CloudsPresets.js +1 -1
  118. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  119. package/views/3d/webgl-engine/effects/fog/Fog.glsl.js +1 -1
  120. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  121. package/views/3d/webgl-engine/effects/fog/FogTechnique.js +1 -1
  122. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  123. package/views/3d/webgl-engine/effects/glow/{GlowBlur.glsl.js → BlurEmission.glsl.js} +1 -1
  124. package/views/3d/webgl-engine/effects/glow/BlurEmission.js +2 -0
  125. package/views/3d/webgl-engine/effects/glow/BlurEmissionTechnique.js +2 -0
  126. package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +37 -0
  127. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowAccumulator.js +1 -1
  128. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  129. package/views/3d/webgl-engine/lib/BufferGeometry.js +2 -0
  130. package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
  131. package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
  132. package/views/3d/webgl-engine/lib/EmissionCompositeTechnique.js +1 -1
  133. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  134. package/views/3d/webgl-engine/lib/GeometryBaseInstance.js +1 -1
  135. package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
  136. package/views/3d/webgl-engine/lib/RenderContext.js +1 -1
  137. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  138. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  139. package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
  140. package/views/3d/webgl-engine/lib/rendererUtils.js +1 -1
  141. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  142. package/views/3d/webgl-engine/materials/renderers/Instance.js +1 -1
  143. package/views/3d/webgl-engine/materials/renderers/MergedBuffer.js +1 -1
  144. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  145. package/views/3d/webgl-engine/materials/renderers/VaoWriter.js +1 -1
  146. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  147. package/views/3d/webgl-engine/shaders/EmissiveTechniqueConfiguration.js +1 -1
  148. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  149. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  150. package/views/3d/webgl-engine/shaders/floatBlendScale.glsl.js +1 -1
  151. package/views/SceneView.d.ts +1 -0
  152. package/views/SceneView.js +1 -1
  153. package/views/popupAdapter.js +1 -1
  154. package/assets/esri/core/workers/chunks/0846855843f85661e974.js +0 -1
  155. package/assets/esri/core/workers/chunks/15f4f7e34e14e3cf52e6.js +0 -1
  156. package/assets/esri/core/workers/chunks/19ab024f6f732fd6c69b.js +0 -1
  157. package/assets/esri/core/workers/chunks/22c94f9a69b2157f8dbd.js +0 -1
  158. package/assets/esri/core/workers/chunks/2ec44ebc48beeba11201.js +0 -1
  159. package/assets/esri/core/workers/chunks/30376f00cda1165a2504.js +0 -1
  160. package/assets/esri/core/workers/chunks/349b0c7febc46267441d.js +0 -1684
  161. package/assets/esri/core/workers/chunks/423c2692df662b3dddd4.js +0 -1
  162. package/assets/esri/core/workers/chunks/46f8c7ae7fb356c3410d.js +0 -1
  163. package/assets/esri/core/workers/chunks/4bf7c0c874d30b1c0760.js +0 -1
  164. package/assets/esri/core/workers/chunks/5bf2ce280ea35ea4c96b.js +0 -1
  165. package/assets/esri/core/workers/chunks/7253a439c98200e3e748.js +0 -1
  166. package/assets/esri/core/workers/chunks/75b90fb05e4a2d32b7bb.js +0 -1
  167. package/assets/esri/core/workers/chunks/7e41cee4a0ae75e1490d.js +0 -1
  168. package/assets/esri/core/workers/chunks/848a9f0e5373bbf289a5.js +0 -1
  169. package/assets/esri/core/workers/chunks/95a3f09751bff63f4fab.js +0 -1
  170. package/assets/esri/core/workers/chunks/98d614d6fc9de8ebaf94.js +0 -1
  171. package/assets/esri/core/workers/chunks/b2e2234fdf8e05bc3312.js +0 -1
  172. package/assets/esri/core/workers/chunks/bb23e670736bcace8b6f.js +0 -1
  173. package/assets/esri/core/workers/chunks/bdfffa5f88b559a4b42d.js +0 -1
  174. package/assets/esri/core/workers/chunks/c352696478b48a2090d5.js +0 -1
  175. package/assets/esri/core/workers/chunks/c91042f8bf886056a29c.js +0 -1
  176. package/assets/esri/core/workers/chunks/d58d6b55b2749a535eb3.js +0 -1
  177. package/assets/esri/core/workers/chunks/ec69dd546c312ba97110.js +0 -1
  178. package/assets/esri/core/workers/chunks/f247f3c5148fa0237a7c.js +0 -1
  179. package/assets/esri/core/workers/chunks/f4d351b4cd9d1aa10632.js +0 -1
  180. package/assets/esri/core/workers/chunks/fbc7576ed12964059da6.js +0 -1
  181. package/chunks/GlowComposite.glsl.js +0 -37
  182. package/views/3d/webgl-engine/effects/glow/Glow.js +0 -2
  183. package/views/3d/webgl-engine/effects/glow/GlowBlurTechnique.js +0 -2
  184. package/views/3d/webgl-engine/effects/glow/GlowComposite.glsl.js +0 -2
  185. package/views/3d/webgl-engine/effects/glow/GlowCompositeTechnique.js +0 -2
  186. /package/assets/esri/core/workers/chunks/{188c6ff5f4664827c254.js.LICENSE.txt → 1c803eef9a8fdabc61e3.js.LICENSE.txt} +0 -0
  187. /package/assets/esri/core/workers/chunks/{a89dbef8155d7c4354da.js.LICENSE.txt → 5edf77618ca51819d7c4.js.LICENSE.txt} +0 -0
  188. /package/assets/esri/core/workers/chunks/{48726010778d6004e347.js.LICENSE.txt → 63127e3b22e7eac6003d.js.LICENSE.txt} +0 -0
  189. /package/assets/esri/core/workers/chunks/{ff83d0337ac489ab08de.js.LICENSE.txt → 678585509706755c0434.js.LICENSE.txt} +0 -0
  190. /package/assets/esri/core/workers/chunks/{24c44541046576fee7e0.js.LICENSE.txt → 87094044458b0ea5cb0f.js.LICENSE.txt} +0 -0
package/chunks/bundle.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- class e{static __wrap(t){t>>>=0;const _=Object.create(e.prototype);return _.__wbg_ptr=t,O.register(_,_.__wbg_ptr,_),_}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,O.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_columndescriptor_free(e,0)}compressedSize(){return ke.columndescriptor_compressedSize(this.__wbg_ptr)}compression(){let e,t;try{const _=ke.columndescriptor_compression(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{ke.__wbindgen_free(e,t,1)}}distinctCount(){const e=ke.columndescriptor_distinctCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}encodings(){return ke.columndescriptor_encodings(this.__wbg_ptr)}logicalType(){const e=ke.columndescriptor_logicalType(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],1*e[1],1)),t}maxValue(){return ke.columndescriptor_maxValue(this.__wbg_ptr)}minValue(){return ke.columndescriptor_minValue(this.__wbg_ptr)}name(){let e,t;try{const _=ke.columndescriptor_name(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{ke.__wbindgen_free(e,t,1)}}nullCount(){const e=ke.columndescriptor_nullCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}numValues(){return ke.columndescriptor_numValues(this.__wbg_ptr)}pageEncodings(){const e=ke.columndescriptor_pageEncodings(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ee(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],4*e[1],4)),t}physicalType(){const e=ke.columndescriptor_physicalType(this.__wbg_ptr);return k[e]}uncompressedSize(){return ke.columndescriptor_uncompressedSize(this.__wbg_ptr)}}Symbol.dispose&&(e.prototype[Symbol.dispose]=e.prototype.free);class t{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,T.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_columnid_free(e,0)}}Symbol.dispose&&(t.prototype[Symbol.dispose]=t.prototype.free);const _=Object.freeze({PBF:0,0:"PBF"});class r{static __wrap(e){e>>>=0;const t=Object.create(r.prototype);return t.__wbg_ptr=e,I.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,I.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_displayoptimizationxzbuilder_free(e,0)}addLevel(e){N(e,c);var t=e.__destroy_into_raw();ke.displayoptimizationxzbuilder_addLevel(this.__wbg_ptr,t)}static new(){const e=ke.displayoptimizationxzbuilder_new();return r.__wrap(e)}setCodeField(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationxzbuilder_setCodeField(this.__wbg_ptr,t,_)}setEncoding(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce,r=ke.displayoptimizationxzbuilder_setEncoding(this.__wbg_ptr,t,_);if(r[1])throw Fe(r[0])}setFullExtent(e){ke.displayoptimizationxzbuilder_setFullExtent(this.__wbg_ptr,e)}setGeometryType(e){ke.displayoptimizationxzbuilder_setGeometryType(this.__wbg_ptr,e)}setHasM(e){ke.displayoptimizationxzbuilder_setHasM(this.__wbg_ptr,e)}setHasZ(e){ke.displayoptimizationxzbuilder_setHasZ(this.__wbg_ptr,e)}setMaxLevel(e){ke.displayoptimizationxzbuilder_setMaxLevel(this.__wbg_ptr,e)}setSpatialReference(e,t){var _=we(t)?0:ze(t,ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce;const n=ke.displayoptimizationxzbuilder_setSpatialReference(this.__wbg_ptr,we(e)?4294967297:e>>>0,_,r);if(n[1])throw Fe(n[0])}}Symbol.dispose&&(r.prototype[Symbol.dispose]=r.prototype.free);class n{static __wrap(e){e>>>=0;const t=Object.create(n.prototype);return t.__wbg_ptr=e,M.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,M.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_displayoptimizationzbuilder_free(e,0)}static new(){const e=ke.displayoptimizationzbuilder_new();return n.__wrap(e)}setCodeField(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationzbuilder_setCodeField(this.__wbg_ptr,t,_)}setCooordinatePrecision(e){ke.displayoptimizationzbuilder_setCooordinatePrecision(this.__wbg_ptr,e)}setFullExtent(e){ke.displayoptimizationzbuilder_setFullExtent(this.__wbg_ptr,e)}setHasM(e){ke.displayoptimizationzbuilder_setHasM(this.__wbg_ptr,e)}setHasZ(e){ke.displayoptimizationzbuilder_setHasZ(this.__wbg_ptr,e)}setMColumn(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationzbuilder_setMColumn(this.__wbg_ptr,t,_)}setSpatialReference(e,t){var _=we(t)?0:ze(t,ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce;const n=ke.displayoptimizationzbuilder_setSpatialReference(this.__wbg_ptr,we(e)?4294967297:e>>>0,_,r);if(n[1])throw Fe(n[0])}setXColumn(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationzbuilder_setXColumn(this.__wbg_ptr,t,_)}setYColumn(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationzbuilder_setYColumn(this.__wbg_ptr,t,_)}setZColumn(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationzbuilder_setZColumn(this.__wbg_ptr,t,_)}}Symbol.dispose&&(n.prototype[Symbol.dispose]=n.prototype.free);class i{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,P.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_extent_free(e,0)}get xmax(){return ke.__wbg_get_extent_xmax(this.__wbg_ptr)}get xmin(){return ke.__wbg_get_extent_xmin(this.__wbg_ptr)}get ymax(){return ke.__wbg_get_extent_ymax(this.__wbg_ptr)}get ymin(){return ke.__wbg_get_extent_ymin(this.__wbg_ptr)}set xmax(e){ke.__wbg_set_extent_xmax(this.__wbg_ptr,e)}set xmin(e){ke.__wbg_set_extent_xmin(this.__wbg_ptr,e)}set ymax(e){ke.__wbg_set_extent_ymax(this.__wbg_ptr,e)}set ymin(e){ke.__wbg_set_extent_ymin(this.__wbg_ptr,e)}}Symbol.dispose&&(i.prototype[Symbol.dispose]=i.prototype.free);class s{static __wrap(e){e>>>=0;const t=Object.create(s.prototype);return t.__wbg_ptr=e,j.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,j.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_fieldmetadata_free(e,0)}get type(){const e=ke.fieldmetadata_esri_type(this.__wbg_ptr);return C[e]}get logicalType(){const e=ke.fieldmetadata_logical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],1*e[1],1)),t}get name(){let e,t;try{const _=ke.fieldmetadata_name(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{ke.__wbindgen_free(e,t,1)}}get physicalType(){const e=ke.fieldmetadata_physical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],1*e[1],1)),t}get is_nested(){return 0!==ke.__wbg_get_fieldmetadata_is_nested(this.__wbg_ptr)}set is_nested(e){ke.__wbg_set_fieldmetadata_is_nested(this.__wbg_ptr,e)}}Symbol.dispose&&(s.prototype[Symbol.dispose]=s.prototype.free);class o{static __wrap(e){e>>>=0;const t=Object.create(o.prototype);return t.__wbg_ptr=e,A.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,A.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_geometryfield_free(e,0)}static fromLocation(e,t,_,r){const n=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=Ce,s=ze(t,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=Ce,u=ke.geometryfield_fromLocation(n,i,s,a,_,r);if(u[2])throw Fe(u[1]);return o.__wrap(u[0])}static fromWkb(e,t,_){const r=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),n=Ce,i=ke.geometryfield_fromWkb(r,n,t,_);if(i[2])throw Fe(i[1]);return o.__wrap(i[0])}}Symbol.dispose&&(o.prototype[Symbol.dispose]=o.prototype.free);class a{static __wrap(e){e>>>=0;const t=Object.create(a.prototype);return t.__wbg_ptr=e,U.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_geometryinfo_free(e,0)}static new(){const e=ke.geometryinfo_new();if(e[2])throw Fe(e[1]);return a.__wrap(e[0])}setGeometry(e){N(e,o);var t=e.__destroy_into_raw();ke.geometryinfo_setGeometry(this.__wbg_ptr,t)}setOptmizationXZ(e){N(e,r);var t=e.__destroy_into_raw();const _=ke.geometryinfo_setOptmizationXZ(this.__wbg_ptr,t);if(_[1])throw Fe(_[0])}setOptmizationZ(e){N(e,n);var t=e.__destroy_into_raw();const _=ke.geometryinfo_setOptmizationZ(this.__wbg_ptr,t);if(_[1])throw Fe(_[0])}}Symbol.dispose&&(a.prototype[Symbol.dispose]=a.prototype.free);const u=Object.freeze({Point:0,0:"Point",Polygon:1,1:"Polygon",Polyline:2,2:"Polyline",Multipoint:3,3:"Multipoint"});class c{static __wrap(e){e>>>=0;const t=Object.create(c.prototype);return t.__wbg_ptr=e,L.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,L.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_multiscalegeometryfield_free(e,0)}get level(){return ke.__wbg_get_multiscalegeometryfield_level(this.__wbg_ptr)}get resolution(){return ke.__wbg_get_multiscalegeometryfield_resolution(this.__wbg_ptr)}has_field(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;return 0!==ke.multiscalegeometryfield_has_field(this.__wbg_ptr,t,_)}static new(e,t,_,r,n){const i=ze(_,ke.__wbindgen_malloc,ke.__wbindgen_realloc),s=Ce,o=he(r,ke.__wbindgen_malloc),a=Ce,u=he(n,ke.__wbindgen_malloc),l=Ce,g=ke.multiscalegeometryfield_new(e,t,i,s,o,a,u,l);return c.__wrap(g)}set level(e){ke.__wbg_set_multiscalegeometryfield_level(this.__wbg_ptr,e)}set resolution(e){ke.__wbg_set_multiscalegeometryfield_resolution(this.__wbg_ptr,e)}}Symbol.dispose&&(c.prototype[Symbol.dispose]=c.prototype.free);class l{static __wrap(e){e>>>=0;const t=Object.create(l.prototype);return t.__wbg_ptr=e,W.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,W.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_pageencodingdescriptor_free(e,0)}count(){return ke.pageencodingdescriptor_count(this.__wbg_ptr)}encoding(){let e,t;try{const _=ke.pageencodingdescriptor_encoding(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{ke.__wbindgen_free(e,t,1)}}pageType(){let e,t;try{const _=ke.pageencodingdescriptor_pageType(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{ke.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(l.prototype[Symbol.dispose]=l.prototype.free);class g{static __wrap(e){e>>>=0;const t=Object.create(g.prototype);return t.__wbg_ptr=e,E.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_parquetchunk_free(e,0)}boundsXMax(e){const t=ke.parquetchunk_boundsXMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsXMin(e){const t=ke.parquetchunk_boundsXMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMax(e){const t=ke.parquetchunk_boundsYMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMin(e){const t=ke.parquetchunk_boundsYMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}coordinateStride(){return ke.parquetchunk_coordinateStride(this.__wbg_ptr)>>>0}static deserialize(e){const t=ye(e,ke.__wbindgen_malloc),_=Ce,r=ke.parquetchunk_deserialize(t,_);return g.__wrap(r)}hasColumn(e){return 0!==ke.parquetchunk_hasColumn(this.__wbg_ptr,e)}hasM(){return 0!==ke.parquetchunk_hasM(this.__wbg_ptr)}hasZ(){return 0!==ke.parquetchunk_hasZ(this.__wbg_ptr)}insertPatch(e){N(e,b);var t=e.__destroy_into_raw();ke.parquetchunk_insertPatch(this.__wbg_ptr,t)}insertPatchBytes(e){const t=ye(e,ke.__wbindgen_malloc),_=Ce;ke.parquetchunk_insertPatchBytes(this.__wbg_ptr,t,_)}readAttribute(e,t){return ke.parquetchunk_readAttribute(this.__wbg_ptr,e,t)}readCoordsUnsafe(e){return ke.parquetchunk_readCoordsUnsafe(this.__wbg_ptr,e)}readIdsUnsafe(){return ke.parquetchunk_readIdsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(e){return ke.parquetchunk_readLengthsUnsafe(this.__wbg_ptr,e)}readPointCoordsQuantizedUnsafe(){return ke.parquetchunk_readPointCoordsQuantizedUnsafe(this.__wbg_ptr)}readPointCoordsUnsafe(){return ke.parquetchunk_readPointCoordsUnsafe(this.__wbg_ptr)}rowGroup(){return ke.parquetchunk_rowGroup(this.__wbg_ptr)>>>0}rowId(e){return ke.parquetchunk_rowId(this.__wbg_ptr,e)}serialize(){const e=ke.parquetchunk_serialize(this.__wbg_ptr);var t=_e(e[0],e[1]).slice();return ke.__wbindgen_free(e[0],1*e[1],1),t}size(){return ke.parquetchunk_size(this.__wbg_ptr)>>>0}transformGeometry(e,t,_,r,n,i){N(e,w);const s=ke.parquetchunk_transformGeometry(this.__wbg_ptr,e.__wbg_ptr,t,_,r,n,i);return 16777215===s?void 0:0!==s}}Symbol.dispose&&(g.prototype[Symbol.dispose]=g.prototype.free);class p{static __wrap(e){e>>>=0;const t=Object.create(p.prototype);return t.__wbg_ptr=e,G.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_parquetfile_free(e,0)}byteLength(){return ke.parquetfile_byteLength(this.__wbg_ptr)}columnIndex(e,t){return ke.parquetfile_columnIndex(this.__wbg_ptr,e,t)}compressionCodecs(){const e=ke.parquetfile_compressionCodecs(this.__wbg_ptr);var t=ee(e[0],e[1]).slice();return ke.__wbindgen_free(e[0],4*e[1],4),t}createChunkPatch(e,t,_,r){const n=fe(t,ke.__wbindgen_malloc),i=Ce,s=me(_,ke.__wbindgen_malloc),o=Ce;return ke.parquetfile_createChunkPatch(this.__wbg_ptr,e,n,i,s,o,we(r)?0:Q(r))}createdBy(){const e=ke.parquetfile_createdBy(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],1*e[1],1)),t}diagnosticsSnapshot(){const e=ke.parquetfile_diagnosticsSnapshot(this.__wbg_ptr);if(e[2])throw Fe(e[1]);return Fe(e[0])}executeQuery(e,t,_){N(e,d);return ke.parquetfile_executeQuery(this.__wbg_ptr,e.__wbg_ptr,t,we(_)?0:Q(_))}fields(e){const t=ke.parquetfile_fields(this.__wbg_ptr,e);var _=ee(t[0],t[1]).slice();return ke.__wbindgen_free(t[0],4*t[1],4),_}static fromBinary(e,t){const _=ye(e,ke.__wbindgen_malloc),r=Ce;let n=0;we(t)||(N(t,a),n=t.__destroy_into_raw());return ke.parquetfile_fromBinary(_,r,n)}static fromUrl(e,t,_,r){const n=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=Ce;let s=0;we(r)||(N(r,a),s=r.__destroy_into_raw());return ke.parquetfile_fromUrl(n,i,t,_,s)}getColumnDescriptor(t){const _=ze(t,ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce,n=ke.parquetfile_getColumnDescriptor(this.__wbg_ptr,_,r);return e.__wrap(n)}getColumnDescriptors(){const e=ke.parquetfile_getColumnDescriptors(this.__wbg_ptr);var t=ee(e[0],e[1]).slice();return ke.__wbindgen_free(e[0],4*e[1],4),t}getColumnId(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce,r=ke.parquetfile_getColumnId(this.__wbg_ptr,t,_);return 4294967297===r?void 0:r}keyValueMetadata(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce,r=ke.parquetfile_keyValueMetadata(this.__wbg_ptr,t,_);let n;return 0!==r[0]&&(n=ue(r[0],r[1]).slice(),ke.__wbindgen_free(r[0],1*r[1],1)),n}keys(){const e=ke.parquetfile_keys(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ee(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],4*e[1],4)),t}numColumns(){return ke.parquetfile_numColumns(this.__wbg_ptr)>>>0}numFields(){return ke.parquetfile_numFields(this.__wbg_ptr)>>>0}numRows(){return ke.parquetfile_numRows(this.__wbg_ptr)>>>0}offsetIndex(e,t){return ke.parquetfile_offsetIndex(this.__wbg_ptr,e,t)}readAttribute(e,t,_){return ke.parquetfile_readAttribute(this.__wbg_ptr,e,t,_)}rowGroups(){const e=ke.parquetfile_rowGroups(this.__wbg_ptr);var t=ee(e[0],e[1]).slice();return ke.__wbindgen_free(e[0],4*e[1],4),t}updateChunkFields(e,t,_){N(e,g);const r=me(t,ke.__wbindgen_malloc),n=Ce;return ke.parquetfile_updateChunkFields(this.__wbg_ptr,e.__wbg_ptr,r,n,we(_)?0:Q(_))}version(){return ke.parquetfile_version(this.__wbg_ptr)}}Symbol.dispose&&(p.prototype[Symbol.dispose]=p.prototype.free);class b{static __wrap(e){e>>>=0;const t=Object.create(b.prototype);return t.__wbg_ptr=e,D.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_parquetpatchchunk_free(e,0)}static deserialize(e){const t=ye(e,ke.__wbindgen_malloc),_=Ce,r=ke.parquetpatchchunk_deserialize(t,_);return b.__wrap(r)}serialize(){const e=ke.parquetpatchchunk_serialize(this.__wbg_ptr);var t=_e(e[0],e[1]).slice();return ke.__wbindgen_free(e[0],1*e[1],1),t}}Symbol.dispose&&(b.prototype[Symbol.dispose]=b.prototype.free);class w{static __wrap(e){e>>>=0;const t=Object.create(w.prototype);return t.__wbg_ptr=e,Z.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_quantizedgeometrybuffer_free(e,0)}static new(){const e=ke.quantizedgeometrybuffer_new();return w.__wrap(e)}readCoordsUnsafe(){return ke.quantizedgeometrybuffer_readCoordsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(){return ke.quantizedgeometrybuffer_readLengthsUnsafe(this.__wbg_ptr)}}Symbol.dispose&&(w.prototype[Symbol.dispose]=w.prototype.free);class d{static __wrap(e){e>>>=0;const t=Object.create(d.prototype);return t.__wbg_ptr=e,B.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,B.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_query_free(e,0)}static new(){const e=ke.query_new();return d.__wrap(e)}setExtent(e){ke.query_setExtent(this.__wbg_ptr,e)}setIds(e){const t=fe(e,ke.__wbindgen_malloc),_=Ce;ke.query_setIds(this.__wbg_ptr,t,_)}setOutFields(e){const t=me(e,ke.__wbindgen_malloc),_=Ce;ke.query_setOutFields(this.__wbg_ptr,t,_)}setOutSpatialReference(e){const t=ke.query_setOutSpatialReference(this.__wbg_ptr,e);if(t[1])throw Fe(t[0])}setPostFilterCount(e){ke.query_setPostFilterCount(this.__wbg_ptr,e)}setPostFilterStart(e){ke.query_setPostFilterStart(this.__wbg_ptr,e)}setPreFilterCount(e){ke.query_setPreFilterCount(this.__wbg_ptr,e)}setPreFilterStart(e){ke.query_setPreFilterStart(this.__wbg_ptr,e)}setQuantizationTransform(e){ke.query_setQuantizationTransform(this.__wbg_ptr,e)}setReturnGeometry(e){ke.query_setReturnGeometry(this.__wbg_ptr,e)}setReturnM(e){ke.query_setReturnM(this.__wbg_ptr,e)}setReturnZ(e){ke.query_setReturnZ(this.__wbg_ptr,e)}setSourceResolution(e){ke.query_setSourceResolution(this.__wbg_ptr,e)}setWhere(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.query_setWhere(this.__wbg_ptr,t,_)}setWhereEvaluator(e){ke.query_setWhereEvaluator(this.__wbg_ptr,e)}setWhereFields(e){const t=me(e,ke.__wbindgen_malloc),_=Ce;ke.query_setWhereFields(this.__wbg_ptr,t,_)}}Symbol.dispose&&(d.prototype[Symbol.dispose]=d.prototype.free);class f{static __wrap(e){e>>>=0;const t=Object.create(f.prototype);return t.__wbg_ptr=e,X.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_querystream_free(e,0)}next(e){return ke.querystream_next(this.__wbg_ptr,we(e)?0:Q(e))}}Symbol.dispose&&(f.prototype[Symbol.dispose]=f.prototype.free);class y{static __wrap(e){e>>>=0;const t=Object.create(y.prototype);return t.__wbg_ptr=e,H.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_rangeproviderjs_free(e,0)}static new(e,t){const _=ke.rangeproviderjs_new(e,t);return y.__wrap(_)}static withFetch(){const e=ke.rangeproviderjs_withFetch();return y.__wrap(e)}}Symbol.dispose&&(y.prototype[Symbol.dispose]=y.prototype.free);class h{static __wrap(e){e>>>=0;const t=Object.create(h.prototype);return t.__wbg_ptr=e,V.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_rowgroup_free(e,0)}columnDescriptorForAttribute(t){const _=ze(t,ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce,n=ke.rowgroup_columnDescriptorForAttribute(this.__wbg_ptr,_,r);return e.__wrap(n)}}Symbol.dispose&&(h.prototype[Symbol.dispose]=h.prototype.free);class m{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_rowgroupid_free(e,0)}}function z(){ke.enableTracing()}function F(e,t,_,r,n){const i=ke.getXZCodeRanges(e,t,_,r,n);if(i[2])throw Fe(i[1]);return Fe(i[0])}function q(e,t,_,r,n,i,s){const o=ke.queryIntersectsXYStatistics(e,t,_,r,n,i,s);if(o[2])throw Fe(o[1]);return 0!==o[0]}function x(e,t,_,r,n,i,s){const o=ke.queryIntersectsXZStatistics(e,t,_,r,n,i,s);if(o[2])throw Fe(o[1]);return 0!==o[0]}function S(){const t={__proto__:null,__wbg_String_8564e559799eccda:function(e,t){const _=ze(String(t),ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce;ne().setInt32(e+4,r,!0),ne().setInt32(e+0,_,!0)},__wbg___wbindgen_is_function_3baa9db1a987f47d:function(e){return"function"==typeof e},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(e){return void 0===e},__wbg___wbindgen_number_get_c7f42aed0525c451:function(e,t){const _="number"==typeof t?t:void 0;ne().setFloat64(e+8,we(_)?0:_,!0),ne().setInt32(e+0,!we(_),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(e,t){const _="string"==typeof t?t:void 0;var r=we(_)?0:ze(_,ke.__wbindgen_malloc,ke.__wbindgen_realloc),n=Ce;ne().setInt32(e+4,n,!0),ne().setInt32(e+0,r,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(e,t){throw new Error(ue(e,t))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(e){e._wbg_cb_unref()},__wbg_aborted_072e5543dce0fc05:function(e){return e.aborted},__wbg_apply_4c35bd236dda9c14:function(){return be(function(e,t,_){return e.apply(t,_)},arguments)},__wbg_call_86e39d65afc3d9db:function(){return be(function(e,t,_,r,n){return e.call(t,_,r,n)},arguments)},__wbg_call_a24592a6f349a97e:function(){return be(function(e,t,_){return e.call(t,_)},arguments)},__wbg_columndescriptor_new:function(t){return e.__wrap(t)},__wbg_error_a6fa202b58aa1cd3:function(e,t){let _,r;try{_=e,r=t,console.error(ue(e,t))}finally{ke.__wbindgen_free(_,r,1)}},__wbg_fieldmetadata_new:function(e){return s.__wrap(e)},__wbg_get_6011fa3a58f61074:function(){return be(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_get_unchecked_17f53dad852b9588:function(e,t){return e[t>>>0]},__wbg_length_3d4ecd04bd8d22f1:function(e){return e.length},__wbg_length_9f1775224cf1d815:function(e){return e.length},__wbg_new_0c7403db6e782f19:function(e){return new Uint8Array(e)},__wbg_new_227d7c05414eb861:function(){return new Error},__wbg_new_5e360d2ff7b9e1c3:function(e,t){return new Error(ue(e,t))},__wbg_new_682678e2f47e32bc:function(){return new Array},__wbg_new_8bc2b540bbfdbb81:function(e){return new Uint32Array(e)},__wbg_new_aa8d0fa9762c29bd:function(){return new Object},__wbg_new_from_slice_158b7b5c2056cc2c:function(e,t){return new Int16Array(K(e,t))},__wbg_new_from_slice_3115b094b1002246:function(e,t){return new Float64Array(J(e,t))},__wbg_new_no_args_a5300b4b3ea60351:function(e,t){return new Function(ue(e,t))},__wbg_new_typed_323f37fd55ab048d:function(e,t){try{var _={a:e,b:t},r=(e,t)=>{const r=_.a;_.a=0;try{return v(r,_.b,e,t)}finally{_.a=r}};return new Promise(r)}finally{_.a=0}},__wbg_new_with_length_223c4ea248649e55:function(e){return new Array(e>>>0)},__wbg_pageencodingdescriptor_new:function(e){return l.__wrap(e)},__wbg_parquetchunk_new:function(e){return g.__wrap(e)},__wbg_parquetfile_new:function(e){return p.__wrap(e)},__wbg_parquetpatchchunk_new:function(e){return b.__wrap(e)},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(e,t,_){Uint8Array.prototype.set.call(_e(e,t),_)},__wbg_push_471a5b068a5295f6:function(e,t){return e.push(t)},__wbg_querystream_new:function(e){return f.__wrap(e)},__wbg_queueMicrotask_5d15a957e6aa920e:function(e){queueMicrotask(e)},__wbg_queueMicrotask_f8819e5ffc402f36:function(e){return e.queueMicrotask},__wbg_resolve_e6c466bc1052f16c:function(e){return Promise.resolve(e)},__wbg_rowgroup_new:function(e){return h.__wrap(e)},__wbg_set_3bf1de9fab0cd644:function(e,t,_){e[t>>>0]=_},__wbg_set_6be42768c690e380:function(e,t,_){e[t]=_},__wbg_set_name_f49c6e6bbfc8a63b:function(e,t,_){e.name=ue(t,_)},__wbg_stack_3b0d974bbf31e44f:function(e,t){const _=ze(t.stack,ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce;ne().setInt32(e+4,r,!0),ne().setInt32(e+0,_,!0)},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){const e="undefined"==typeof global?null:global;return we(e)?0:Q(e)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){const e="undefined"==typeof globalThis?null:globalThis;return we(e)?0:Q(e)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){const e="undefined"==typeof self?null:self;return we(e)?0:Q(e)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){const e="undefined"==typeof window?null:window;return we(e)?0:Q(e)},__wbg_then_792e0c862b060889:function(e,t,_){return e.then(t,_)},__wbg_then_8e16ee11f05e4827:function(e,t){return e.then(t)},__wbg_valueOf_25e11684e38026ef:function(e){return e.valueOf()},__wbg_valueOf_91a54faf8ce0976a:function(e){return e.valueOf()},__wbindgen_cast_0000000000000001:function(e,t){return de(e,t,R)},__wbindgen_cast_0000000000000002:function(e){return e},__wbindgen_cast_0000000000000003:function(e){return e},__wbindgen_cast_0000000000000004:function(e,t){return J(e,t)},__wbindgen_cast_0000000000000005:function(e,t){return K(e,t)},__wbindgen_cast_0000000000000006:function(e,t){return te(e,t)},__wbindgen_cast_0000000000000007:function(e,t){return _e(e,t)},__wbindgen_cast_0000000000000008:function(e,t){return ue(e,t)},__wbindgen_cast_0000000000000009:function(e,t){var _=_e(e,t).slice();ke.__wbindgen_free(e,1*t,1);return _},__wbindgen_init_externref_table:function(){const e=ke.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}};return{__proto__:null,"./bundle_bg.js":t}}function R(e,t,_){const r=ke.wasm_bindgen__convert__closures_____invoke__h0f8118aa5481cebe(e,t,_);if(r[1])throw Fe(r[0])}function v(e,t,_,r){ke.wasm_bindgen__convert__closures_____invoke__h40273f30e88f7d49(e,t,_,r)}Symbol.dispose&&(m.prototype[Symbol.dispose]=m.prototype.free);const k=["boolean","int32","int64","int96","float","double","byte-array","fixed-byte-array"],C=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],O="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_columndescriptor_free(e>>>0,1)),T="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_columnid_free(e>>>0,1)),I="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_displayoptimizationxzbuilder_free(e>>>0,1)),M="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_displayoptimizationzbuilder_free(e>>>0,1)),P="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_extent_free(e>>>0,1)),j="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_fieldmetadata_free(e>>>0,1)),A="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_geometryfield_free(e>>>0,1)),U="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_geometryinfo_free(e>>>0,1)),L="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_multiscalegeometryfield_free(e>>>0,1)),W="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_pageencodingdescriptor_free(e>>>0,1)),E="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_parquetchunk_free(e>>>0,1)),G="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_parquetfile_free(e>>>0,1)),D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_parquetpatchchunk_free(e>>>0,1)),Z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_quantizedgeometrybuffer_free(e>>>0,1)),B="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_query_free(e>>>0,1)),X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_querystream_free(e>>>0,1)),H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_rangeproviderjs_free(e>>>0,1)),V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_rowgroup_free(e>>>0,1)),Y="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_rowgroupid_free(e>>>0,1));function Q(e){const t=ke.__externref_table_alloc();return ke.__wbindgen_externrefs.set(t,e),t}function N(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}const $="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbindgen_destroy_closure(e.a,e.b));function J(e,t){return e>>>=0,se().subarray(e/8,e/8+t)}function K(e,t){return e>>>=0,ae().subarray(e/2,e/2+t)}function ee(e,t){e>>>=0;const _=ne(),r=[];for(let n=e;n<e+4*t;n+=4)r.push(ke.__wbindgen_externrefs.get(_.getUint32(n,!0)));return ke.__externref_drop_slice(e,t),r}function te(e,t){return e>>>=0,le().subarray(e/4,e/4+t)}function _e(e,t){return e>>>=0,pe().subarray(e/1,e/1+t)}let re=null;function ne(){return(null===re||!0===re.buffer.detached||void 0===re.buffer.detached&&re.buffer!==ke.memory.buffer)&&(re=new DataView(ke.memory.buffer)),re}let ie=null;function se(){return null!==ie&&0!==ie.byteLength||(ie=new Float64Array(ke.memory.buffer)),ie}let oe=null;function ae(){return null!==oe&&0!==oe.byteLength||(oe=new Int16Array(ke.memory.buffer)),oe}function ue(e,t){return Re(e>>>=0,t)}let ce=null;function le(){return null!==ce&&0!==ce.byteLength||(ce=new Uint32Array(ke.memory.buffer)),ce}let ge=null;function pe(){return null!==ge&&0!==ge.byteLength||(ge=new Uint8Array(ke.memory.buffer)),ge}function be(e,t){try{return e.apply(this,t)}catch(_){const e=Q(_);ke.__wbindgen_exn_store(e)}}function we(e){return null==e}function de(e,t,_){const r={a:e,b:t,cnt:1},n=(...e)=>{r.cnt++;const t=r.a;r.a=0;try{return _(t,r.b,...e)}finally{r.a=t,n._wbg_cb_unref()}};return n._wbg_cb_unref=()=>{0===--r.cnt&&(ke.__wbindgen_destroy_closure(r.a,r.b),r.a=0,$.unregister(r))},$.register(n,r,r),n}function fe(e,t){const _=t(4*e.length,4)>>>0;return le().set(e,_/4),Ce=e.length,_}function ye(e,t){const _=t(1*e.length,1)>>>0;return pe().set(e,_/1),Ce=e.length,_}function he(e,t){const _=t(8*e.length,8)>>>0;return se().set(e,_/8),Ce=e.length,_}function me(e,t){const _=t(4*e.length,4)>>>0;for(let r=0;r<e.length;r++){const t=Q(e[r]);ne().setUint32(_+4*r,t,!0)}return Ce=e.length,_}function ze(e,t,_){if(void 0===_){const _=ve.encode(e),r=t(_.length,1)>>>0;return pe().subarray(r,r+_.length).set(_),Ce=_.length,r}let r=e.length,n=t(r,1)>>>0;const i=pe();let s=0;for(;s<r;s++){const t=e.charCodeAt(s);if(t>127)break;i[n+s]=t}if(s!==r){0!==s&&(e=e.slice(s)),n=_(n,r,r=s+3*e.length,1)>>>0;const t=pe().subarray(n+s,n+r);s+=ve.encodeInto(e,t).written,n=_(n,r,s,1)>>>0}return Ce=s,n}function Fe(e){const t=ke.__wbindgen_externrefs.get(e);return ke.__externref_table_dealloc(e),t}let qe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});qe.decode();const xe=2146435072;let Se=0;function Re(e,t){return Se+=t,Se>=xe&&(qe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),qe.decode(),Se=t),qe.decode(pe().subarray(e,e+t))}const ve=new TextEncoder;"encodeInto"in ve||(ve.encodeInto=function(e,t){const _=ve.encode(e);return t.set(_),{read:e.length,written:_.length}});let ke,Ce=0;function Oe(e,t){return ke=e.exports,re=null,ie=null,oe=null,ce=null,ge=null,ke.__wbindgen_start(),ke}async function Te(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(r){if(!(e.ok&&_(e.type))||"application/wasm"===e.headers.get("Content-Type"))throw r;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r)}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const _=await WebAssembly.instantiate(e,t);return _ instanceof WebAssembly.Instance?{instance:_,module:e}:_}function _(e){switch(e){case"basic":case"cors":case"default":return!0}return!1}}function Ie(e){if(void 0!==ke)return ke;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=S();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));return Oe(new WebAssembly.Instance(e,t))}async function Me(e){if(void 0!==ke)return ke;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead"));const t=S();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:_,module:r}=await Te(await e,t);return Oe(_)}export{e as ColumnDescriptor,t as ColumnId,_ as DisplayEncoding,r as DisplayOptimizationXZBuilder,n as DisplayOptimizationZBuilder,i as Extent,s as FieldMetadata,o as GeometryField,a as GeometryInfo,u as GeometryType,c as MultiscaleGeometryField,l as PageEncodingDescriptor,g as ParquetChunk,p as ParquetFile,b as ParquetPatchChunk,w as QuantizedGeometryBuffer,d as Query,f as QueryStream,y as RangeProviderJs,h as RowGroup,m as RowGroupId,Me as default,z as enableTracing,F as getXZCodeRanges,Ie as initSync,q as queryIntersectsXYStatistics,x as queryIntersectsXZStatistics};
2
+ class e{static __wrap(t){t>>>=0;const _=Object.create(e.prototype);return _.__wbg_ptr=t,O.register(_,_.__wbg_ptr,_),_}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,O.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_columndescriptor_free(e,0)}compressedSize(){return ke.columndescriptor_compressedSize(this.__wbg_ptr)}compression(){let e,t;try{const _=ke.columndescriptor_compression(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{ke.__wbindgen_free(e,t,1)}}distinctCount(){const e=ke.columndescriptor_distinctCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}encodings(){return ke.columndescriptor_encodings(this.__wbg_ptr)}logicalType(){const e=ke.columndescriptor_logicalType(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],1*e[1],1)),t}maxValue(){return ke.columndescriptor_maxValue(this.__wbg_ptr)}minValue(){return ke.columndescriptor_minValue(this.__wbg_ptr)}name(){let e,t;try{const _=ke.columndescriptor_name(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{ke.__wbindgen_free(e,t,1)}}nullCount(){const e=ke.columndescriptor_nullCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}numValues(){return ke.columndescriptor_numValues(this.__wbg_ptr)}pageEncodings(){const e=ke.columndescriptor_pageEncodings(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ee(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],4*e[1],4)),t}physicalType(){const e=ke.columndescriptor_physicalType(this.__wbg_ptr);return k[e]}uncompressedSize(){return ke.columndescriptor_uncompressedSize(this.__wbg_ptr)}}Symbol.dispose&&(e.prototype[Symbol.dispose]=e.prototype.free);class t{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,T.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_columnid_free(e,0)}}Symbol.dispose&&(t.prototype[Symbol.dispose]=t.prototype.free);const _=Object.freeze({PBF:0,0:"PBF"});class r{static __wrap(e){e>>>=0;const t=Object.create(r.prototype);return t.__wbg_ptr=e,I.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,I.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_displayoptimizationxzbuilder_free(e,0)}addLevel(e){N(e,c);var t=e.__destroy_into_raw();ke.displayoptimizationxzbuilder_addLevel(this.__wbg_ptr,t)}static new(){const e=ke.displayoptimizationxzbuilder_new();return r.__wrap(e)}setCodeField(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationxzbuilder_setCodeField(this.__wbg_ptr,t,_)}setEncoding(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce,r=ke.displayoptimizationxzbuilder_setEncoding(this.__wbg_ptr,t,_);if(r[1])throw Fe(r[0])}setFullExtent(e){ke.displayoptimizationxzbuilder_setFullExtent(this.__wbg_ptr,e)}setGeometryType(e){ke.displayoptimizationxzbuilder_setGeometryType(this.__wbg_ptr,e)}setHasM(e){ke.displayoptimizationxzbuilder_setHasM(this.__wbg_ptr,e)}setHasZ(e){ke.displayoptimizationxzbuilder_setHasZ(this.__wbg_ptr,e)}setMaxLevel(e){ke.displayoptimizationxzbuilder_setMaxLevel(this.__wbg_ptr,e)}setSpatialReference(e,t){var _=we(t)?0:ze(t,ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce;const n=ke.displayoptimizationxzbuilder_setSpatialReference(this.__wbg_ptr,we(e)?4294967297:e>>>0,_,r);if(n[1])throw Fe(n[0])}}Symbol.dispose&&(r.prototype[Symbol.dispose]=r.prototype.free);class n{static __wrap(e){e>>>=0;const t=Object.create(n.prototype);return t.__wbg_ptr=e,M.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,M.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_displayoptimizationzbuilder_free(e,0)}static new(){const e=ke.displayoptimizationzbuilder_new();return n.__wrap(e)}setCodeField(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationzbuilder_setCodeField(this.__wbg_ptr,t,_)}setCooordinatePrecision(e){ke.displayoptimizationzbuilder_setCooordinatePrecision(this.__wbg_ptr,e)}setFullExtent(e){ke.displayoptimizationzbuilder_setFullExtent(this.__wbg_ptr,e)}setHasM(e){ke.displayoptimizationzbuilder_setHasM(this.__wbg_ptr,e)}setHasZ(e){ke.displayoptimizationzbuilder_setHasZ(this.__wbg_ptr,e)}setMColumn(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationzbuilder_setMColumn(this.__wbg_ptr,t,_)}setSpatialReference(e,t){var _=we(t)?0:ze(t,ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce;const n=ke.displayoptimizationzbuilder_setSpatialReference(this.__wbg_ptr,we(e)?4294967297:e>>>0,_,r);if(n[1])throw Fe(n[0])}setXColumn(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationzbuilder_setXColumn(this.__wbg_ptr,t,_)}setYColumn(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationzbuilder_setYColumn(this.__wbg_ptr,t,_)}setZColumn(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationzbuilder_setZColumn(this.__wbg_ptr,t,_)}}Symbol.dispose&&(n.prototype[Symbol.dispose]=n.prototype.free);class i{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,P.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_extent_free(e,0)}get xmax(){return ke.__wbg_get_extent_xmax(this.__wbg_ptr)}get xmin(){return ke.__wbg_get_extent_xmin(this.__wbg_ptr)}get ymax(){return ke.__wbg_get_extent_ymax(this.__wbg_ptr)}get ymin(){return ke.__wbg_get_extent_ymin(this.__wbg_ptr)}set xmax(e){ke.__wbg_set_extent_xmax(this.__wbg_ptr,e)}set xmin(e){ke.__wbg_set_extent_xmin(this.__wbg_ptr,e)}set ymax(e){ke.__wbg_set_extent_ymax(this.__wbg_ptr,e)}set ymin(e){ke.__wbg_set_extent_ymin(this.__wbg_ptr,e)}}Symbol.dispose&&(i.prototype[Symbol.dispose]=i.prototype.free);class s{static __wrap(e){e>>>=0;const t=Object.create(s.prototype);return t.__wbg_ptr=e,j.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,j.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_fieldmetadata_free(e,0)}get type(){const e=ke.fieldmetadata_esri_type(this.__wbg_ptr);return C[e]}get logicalType(){const e=ke.fieldmetadata_logical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],1*e[1],1)),t}get name(){let e,t;try{const _=ke.fieldmetadata_name(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{ke.__wbindgen_free(e,t,1)}}get physicalType(){const e=ke.fieldmetadata_physical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],1*e[1],1)),t}get is_nested(){return 0!==ke.__wbg_get_fieldmetadata_is_nested(this.__wbg_ptr)}set is_nested(e){ke.__wbg_set_fieldmetadata_is_nested(this.__wbg_ptr,e)}}Symbol.dispose&&(s.prototype[Symbol.dispose]=s.prototype.free);class o{static __wrap(e){e>>>=0;const t=Object.create(o.prototype);return t.__wbg_ptr=e,A.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,A.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_geometryfield_free(e,0)}static fromLocation(e,t,_,r){const n=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=Ce,s=ze(t,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=Ce,u=ke.geometryfield_fromLocation(n,i,s,a,_,r);if(u[2])throw Fe(u[1]);return o.__wrap(u[0])}static fromWkb(e,t,_){const r=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),n=Ce,i=ke.geometryfield_fromWkb(r,n,t,_);if(i[2])throw Fe(i[1]);return o.__wrap(i[0])}}Symbol.dispose&&(o.prototype[Symbol.dispose]=o.prototype.free);class a{static __wrap(e){e>>>=0;const t=Object.create(a.prototype);return t.__wbg_ptr=e,U.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_geometryinfo_free(e,0)}static new(){const e=ke.geometryinfo_new();if(e[2])throw Fe(e[1]);return a.__wrap(e[0])}setGeometry(e){N(e,o);var t=e.__destroy_into_raw();ke.geometryinfo_setGeometry(this.__wbg_ptr,t)}setOptmizationXZ(e){N(e,r);var t=e.__destroy_into_raw();const _=ke.geometryinfo_setOptmizationXZ(this.__wbg_ptr,t);if(_[1])throw Fe(_[0])}setOptmizationZ(e){N(e,n);var t=e.__destroy_into_raw();const _=ke.geometryinfo_setOptmizationZ(this.__wbg_ptr,t);if(_[1])throw Fe(_[0])}}Symbol.dispose&&(a.prototype[Symbol.dispose]=a.prototype.free);const u=Object.freeze({Point:0,0:"Point",Polygon:1,1:"Polygon",Polyline:2,2:"Polyline",Multipoint:3,3:"Multipoint"});class c{static __wrap(e){e>>>=0;const t=Object.create(c.prototype);return t.__wbg_ptr=e,L.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,L.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_multiscalegeometryfield_free(e,0)}get level(){return ke.__wbg_get_multiscalegeometryfield_level(this.__wbg_ptr)}get resolution(){return ke.__wbg_get_multiscalegeometryfield_resolution(this.__wbg_ptr)}has_field(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;return 0!==ke.multiscalegeometryfield_has_field(this.__wbg_ptr,t,_)}static new(e,t,_,r,n){const i=ze(_,ke.__wbindgen_malloc,ke.__wbindgen_realloc),s=Ce,o=he(r,ke.__wbindgen_malloc),a=Ce,u=he(n,ke.__wbindgen_malloc),l=Ce,g=ke.multiscalegeometryfield_new(e,t,i,s,o,a,u,l);return c.__wrap(g)}set level(e){ke.__wbg_set_multiscalegeometryfield_level(this.__wbg_ptr,e)}set resolution(e){ke.__wbg_set_multiscalegeometryfield_resolution(this.__wbg_ptr,e)}}Symbol.dispose&&(c.prototype[Symbol.dispose]=c.prototype.free);class l{static __wrap(e){e>>>=0;const t=Object.create(l.prototype);return t.__wbg_ptr=e,W.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,W.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_pageencodingdescriptor_free(e,0)}count(){return ke.pageencodingdescriptor_count(this.__wbg_ptr)}encoding(){let e,t;try{const _=ke.pageencodingdescriptor_encoding(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{ke.__wbindgen_free(e,t,1)}}pageType(){let e,t;try{const _=ke.pageencodingdescriptor_pageType(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{ke.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(l.prototype[Symbol.dispose]=l.prototype.free);class g{static __wrap(e){e>>>=0;const t=Object.create(g.prototype);return t.__wbg_ptr=e,E.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_parquetchunk_free(e,0)}boundsXMax(e){const t=ke.parquetchunk_boundsXMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsXMin(e){const t=ke.parquetchunk_boundsXMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMax(e){const t=ke.parquetchunk_boundsYMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMin(e){const t=ke.parquetchunk_boundsYMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}coordinateStride(){return ke.parquetchunk_coordinateStride(this.__wbg_ptr)>>>0}static deserialize(e){const t=ye(e,ke.__wbindgen_malloc),_=Ce,r=ke.parquetchunk_deserialize(t,_);return g.__wrap(r)}hasColumn(e){return 0!==ke.parquetchunk_hasColumn(this.__wbg_ptr,e)}hasM(){return 0!==ke.parquetchunk_hasM(this.__wbg_ptr)}hasZ(){return 0!==ke.parquetchunk_hasZ(this.__wbg_ptr)}insertPatch(e){N(e,b);var t=e.__destroy_into_raw();ke.parquetchunk_insertPatch(this.__wbg_ptr,t)}insertPatchBytes(e){const t=ye(e,ke.__wbindgen_malloc),_=Ce;ke.parquetchunk_insertPatchBytes(this.__wbg_ptr,t,_)}readAttribute(e,t){return ke.parquetchunk_readAttribute(this.__wbg_ptr,e,t)}readCoordsUnsafe(e){return ke.parquetchunk_readCoordsUnsafe(this.__wbg_ptr,e)}readIdsUnsafe(){return ke.parquetchunk_readIdsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(e){return ke.parquetchunk_readLengthsUnsafe(this.__wbg_ptr,e)}readPointCoordsQuantizedUnsafe(){return ke.parquetchunk_readPointCoordsQuantizedUnsafe(this.__wbg_ptr)}readPointCoordsUnsafe(){return ke.parquetchunk_readPointCoordsUnsafe(this.__wbg_ptr)}rowGroup(){return ke.parquetchunk_rowGroup(this.__wbg_ptr)>>>0}rowId(e){return ke.parquetchunk_rowId(this.__wbg_ptr,e)}serialize(){const e=ke.parquetchunk_serialize(this.__wbg_ptr);var t=_e(e[0],e[1]).slice();return ke.__wbindgen_free(e[0],1*e[1],1),t}size(){return ke.parquetchunk_size(this.__wbg_ptr)>>>0}transformGeometry(e,t,_,r,n,i){N(e,w);const s=ke.parquetchunk_transformGeometry(this.__wbg_ptr,e.__wbg_ptr,t,_,r,n,i);return 16777215===s?void 0:0!==s}}Symbol.dispose&&(g.prototype[Symbol.dispose]=g.prototype.free);class p{static __wrap(e){e>>>=0;const t=Object.create(p.prototype);return t.__wbg_ptr=e,G.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_parquetfile_free(e,0)}byteLength(){return ke.parquetfile_byteLength(this.__wbg_ptr)}columnIndex(e,t){return ke.parquetfile_columnIndex(this.__wbg_ptr,e,t)}compressionCodecs(){const e=ke.parquetfile_compressionCodecs(this.__wbg_ptr);var t=ee(e[0],e[1]).slice();return ke.__wbindgen_free(e[0],4*e[1],4),t}createChunkPatch(e,t,_,r){const n=fe(t,ke.__wbindgen_malloc),i=Ce,s=me(_,ke.__wbindgen_malloc),o=Ce;return ke.parquetfile_createChunkPatch(this.__wbg_ptr,e,n,i,s,o,we(r)?0:Q(r))}createdBy(){const e=ke.parquetfile_createdBy(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],1*e[1],1)),t}diagnosticsSnapshot(){const e=ke.parquetfile_diagnosticsSnapshot(this.__wbg_ptr);if(e[2])throw Fe(e[1]);return Fe(e[0])}executeQuery(e,t,_){N(e,d);return ke.parquetfile_executeQuery(this.__wbg_ptr,e.__wbg_ptr,t,we(_)?0:Q(_))}fields(e){const t=ke.parquetfile_fields(this.__wbg_ptr,e);var _=ee(t[0],t[1]).slice();return ke.__wbindgen_free(t[0],4*t[1],4),_}static fromBinary(e,t){const _=ye(e,ke.__wbindgen_malloc),r=Ce;let n=0;we(t)||(N(t,a),n=t.__destroy_into_raw());return ke.parquetfile_fromBinary(_,r,n)}static fromUrl(e,t,_,r){const n=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=Ce;let s=0;we(r)||(N(r,a),s=r.__destroy_into_raw());return ke.parquetfile_fromUrl(n,i,t,_,s)}getColumnDescriptor(t){const _=ze(t,ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce,n=ke.parquetfile_getColumnDescriptor(this.__wbg_ptr,_,r);return e.__wrap(n)}getColumnDescriptors(){const e=ke.parquetfile_getColumnDescriptors(this.__wbg_ptr);var t=ee(e[0],e[1]).slice();return ke.__wbindgen_free(e[0],4*e[1],4),t}getColumnId(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce,r=ke.parquetfile_getColumnId(this.__wbg_ptr,t,_);return 4294967297===r?void 0:r}keyValueMetadata(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce,r=ke.parquetfile_keyValueMetadata(this.__wbg_ptr,t,_);let n;return 0!==r[0]&&(n=ue(r[0],r[1]).slice(),ke.__wbindgen_free(r[0],1*r[1],1)),n}keys(){const e=ke.parquetfile_keys(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ee(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],4*e[1],4)),t}numColumns(){return ke.parquetfile_numColumns(this.__wbg_ptr)>>>0}numFields(){return ke.parquetfile_numFields(this.__wbg_ptr)>>>0}numRows(){return ke.parquetfile_numRows(this.__wbg_ptr)>>>0}offsetIndex(e,t){return ke.parquetfile_offsetIndex(this.__wbg_ptr,e,t)}readAttribute(e,t,_){const r=ke.parquetfile_readAttribute(this.__wbg_ptr,e,t,_);if(r[2])throw Fe(r[1]);return Fe(r[0])}rowGroups(){const e=ke.parquetfile_rowGroups(this.__wbg_ptr);var t=ee(e[0],e[1]).slice();return ke.__wbindgen_free(e[0],4*e[1],4),t}updateChunkFields(e,t,_){N(e,g);const r=me(t,ke.__wbindgen_malloc),n=Ce;return ke.parquetfile_updateChunkFields(this.__wbg_ptr,e.__wbg_ptr,r,n,we(_)?0:Q(_))}version(){return ke.parquetfile_version(this.__wbg_ptr)}}Symbol.dispose&&(p.prototype[Symbol.dispose]=p.prototype.free);class b{static __wrap(e){e>>>=0;const t=Object.create(b.prototype);return t.__wbg_ptr=e,D.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_parquetpatchchunk_free(e,0)}static deserialize(e){const t=ye(e,ke.__wbindgen_malloc),_=Ce,r=ke.parquetpatchchunk_deserialize(t,_);return b.__wrap(r)}serialize(){const e=ke.parquetpatchchunk_serialize(this.__wbg_ptr);var t=_e(e[0],e[1]).slice();return ke.__wbindgen_free(e[0],1*e[1],1),t}}Symbol.dispose&&(b.prototype[Symbol.dispose]=b.prototype.free);class w{static __wrap(e){e>>>=0;const t=Object.create(w.prototype);return t.__wbg_ptr=e,Z.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_quantizedgeometrybuffer_free(e,0)}static new(){const e=ke.quantizedgeometrybuffer_new();return w.__wrap(e)}readCoordsUnsafe(){return ke.quantizedgeometrybuffer_readCoordsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(){return ke.quantizedgeometrybuffer_readLengthsUnsafe(this.__wbg_ptr)}}Symbol.dispose&&(w.prototype[Symbol.dispose]=w.prototype.free);class d{static __wrap(e){e>>>=0;const t=Object.create(d.prototype);return t.__wbg_ptr=e,B.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,B.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_query_free(e,0)}static new(){const e=ke.query_new();return d.__wrap(e)}setExtent(e){ke.query_setExtent(this.__wbg_ptr,e)}setIds(e){const t=fe(e,ke.__wbindgen_malloc),_=Ce;ke.query_setIds(this.__wbg_ptr,t,_)}setOutFields(e){const t=me(e,ke.__wbindgen_malloc),_=Ce;ke.query_setOutFields(this.__wbg_ptr,t,_)}setOutSpatialReference(e){const t=ke.query_setOutSpatialReference(this.__wbg_ptr,e);if(t[1])throw Fe(t[0])}setPostFilterCount(e){ke.query_setPostFilterCount(this.__wbg_ptr,e)}setPostFilterStart(e){ke.query_setPostFilterStart(this.__wbg_ptr,e)}setPreFilterCount(e){ke.query_setPreFilterCount(this.__wbg_ptr,e)}setPreFilterStart(e){ke.query_setPreFilterStart(this.__wbg_ptr,e)}setQuantizationTransform(e){ke.query_setQuantizationTransform(this.__wbg_ptr,e)}setReturnGeometry(e){ke.query_setReturnGeometry(this.__wbg_ptr,e)}setReturnM(e){ke.query_setReturnM(this.__wbg_ptr,e)}setReturnZ(e){ke.query_setReturnZ(this.__wbg_ptr,e)}setSourceResolution(e){ke.query_setSourceResolution(this.__wbg_ptr,e)}setWhere(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.query_setWhere(this.__wbg_ptr,t,_)}setWhereEvaluator(e){ke.query_setWhereEvaluator(this.__wbg_ptr,e)}setWhereFields(e){const t=me(e,ke.__wbindgen_malloc),_=Ce;ke.query_setWhereFields(this.__wbg_ptr,t,_)}}Symbol.dispose&&(d.prototype[Symbol.dispose]=d.prototype.free);class f{static __wrap(e){e>>>=0;const t=Object.create(f.prototype);return t.__wbg_ptr=e,X.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_querystream_free(e,0)}next(e){return ke.querystream_next(this.__wbg_ptr,we(e)?0:Q(e))}}Symbol.dispose&&(f.prototype[Symbol.dispose]=f.prototype.free);class y{static __wrap(e){e>>>=0;const t=Object.create(y.prototype);return t.__wbg_ptr=e,H.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_rangeproviderjs_free(e,0)}static new(e,t){const _=ke.rangeproviderjs_new(e,t);return y.__wrap(_)}static withFetch(){const e=ke.rangeproviderjs_withFetch();return y.__wrap(e)}}Symbol.dispose&&(y.prototype[Symbol.dispose]=y.prototype.free);class h{static __wrap(e){e>>>=0;const t=Object.create(h.prototype);return t.__wbg_ptr=e,V.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_rowgroup_free(e,0)}columnDescriptorForAttribute(t){const _=ze(t,ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce,n=ke.rowgroup_columnDescriptorForAttribute(this.__wbg_ptr,_,r);return e.__wrap(n)}}Symbol.dispose&&(h.prototype[Symbol.dispose]=h.prototype.free);class m{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_rowgroupid_free(e,0)}}function z(){ke.enableTracing()}function F(e,t,_,r,n){const i=ke.getXZCodeRanges(e,t,_,r,n);if(i[2])throw Fe(i[1]);return Fe(i[0])}function q(e,t,_,r,n,i,s){const o=ke.queryIntersectsXYStatistics(e,t,_,r,n,i,s);if(o[2])throw Fe(o[1]);return 0!==o[0]}function x(e,t,_,r,n,i,s){const o=ke.queryIntersectsXZStatistics(e,t,_,r,n,i,s);if(o[2])throw Fe(o[1]);return 0!==o[0]}function S(){const t={__proto__:null,__wbg_String_8564e559799eccda:function(e,t){const _=ze(String(t),ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce;ne().setInt32(e+4,r,!0),ne().setInt32(e+0,_,!0)},__wbg___wbindgen_is_function_3baa9db1a987f47d:function(e){return"function"==typeof e},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(e){return void 0===e},__wbg___wbindgen_number_get_c7f42aed0525c451:function(e,t){const _="number"==typeof t?t:void 0;ne().setFloat64(e+8,we(_)?0:_,!0),ne().setInt32(e+0,!we(_),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(e,t){const _="string"==typeof t?t:void 0;var r=we(_)?0:ze(_,ke.__wbindgen_malloc,ke.__wbindgen_realloc),n=Ce;ne().setInt32(e+4,n,!0),ne().setInt32(e+0,r,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(e,t){throw new Error(ue(e,t))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(e){e._wbg_cb_unref()},__wbg_aborted_072e5543dce0fc05:function(e){return e.aborted},__wbg_apply_4c35bd236dda9c14:function(){return be(function(e,t,_){return e.apply(t,_)},arguments)},__wbg_call_86e39d65afc3d9db:function(){return be(function(e,t,_,r,n){return e.call(t,_,r,n)},arguments)},__wbg_call_a24592a6f349a97e:function(){return be(function(e,t,_){return e.call(t,_)},arguments)},__wbg_columndescriptor_new:function(t){return e.__wrap(t)},__wbg_error_a6fa202b58aa1cd3:function(e,t){let _,r;try{_=e,r=t,console.error(ue(e,t))}finally{ke.__wbindgen_free(_,r,1)}},__wbg_fieldmetadata_new:function(e){return s.__wrap(e)},__wbg_get_6011fa3a58f61074:function(){return be(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_get_unchecked_17f53dad852b9588:function(e,t){return e[t>>>0]},__wbg_length_3d4ecd04bd8d22f1:function(e){return e.length},__wbg_length_9f1775224cf1d815:function(e){return e.length},__wbg_new_0c7403db6e782f19:function(e){return new Uint8Array(e)},__wbg_new_227d7c05414eb861:function(){return new Error},__wbg_new_5e360d2ff7b9e1c3:function(e,t){return new Error(ue(e,t))},__wbg_new_682678e2f47e32bc:function(){return new Array},__wbg_new_8bc2b540bbfdbb81:function(e){return new Uint32Array(e)},__wbg_new_aa8d0fa9762c29bd:function(){return new Object},__wbg_new_from_slice_158b7b5c2056cc2c:function(e,t){return new Int16Array(K(e,t))},__wbg_new_from_slice_3115b094b1002246:function(e,t){return new Float64Array(J(e,t))},__wbg_new_no_args_a5300b4b3ea60351:function(e,t){return new Function(ue(e,t))},__wbg_new_typed_323f37fd55ab048d:function(e,t){try{var _={a:e,b:t},r=(e,t)=>{const r=_.a;_.a=0;try{return v(r,_.b,e,t)}finally{_.a=r}};return new Promise(r)}finally{_.a=0}},__wbg_new_with_length_223c4ea248649e55:function(e){return new Array(e>>>0)},__wbg_pageencodingdescriptor_new:function(e){return l.__wrap(e)},__wbg_parquetchunk_new:function(e){return g.__wrap(e)},__wbg_parquetfile_new:function(e){return p.__wrap(e)},__wbg_parquetpatchchunk_new:function(e){return b.__wrap(e)},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(e,t,_){Uint8Array.prototype.set.call(_e(e,t),_)},__wbg_push_471a5b068a5295f6:function(e,t){return e.push(t)},__wbg_querystream_new:function(e){return f.__wrap(e)},__wbg_queueMicrotask_5d15a957e6aa920e:function(e){queueMicrotask(e)},__wbg_queueMicrotask_f8819e5ffc402f36:function(e){return e.queueMicrotask},__wbg_resolve_e6c466bc1052f16c:function(e){return Promise.resolve(e)},__wbg_rowgroup_new:function(e){return h.__wrap(e)},__wbg_set_3bf1de9fab0cd644:function(e,t,_){e[t>>>0]=_},__wbg_set_6be42768c690e380:function(e,t,_){e[t]=_},__wbg_set_name_f49c6e6bbfc8a63b:function(e,t,_){e.name=ue(t,_)},__wbg_stack_3b0d974bbf31e44f:function(e,t){const _=ze(t.stack,ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce;ne().setInt32(e+4,r,!0),ne().setInt32(e+0,_,!0)},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){const e="undefined"==typeof global?null:global;return we(e)?0:Q(e)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){const e="undefined"==typeof globalThis?null:globalThis;return we(e)?0:Q(e)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){const e="undefined"==typeof self?null:self;return we(e)?0:Q(e)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){const e="undefined"==typeof window?null:window;return we(e)?0:Q(e)},__wbg_then_792e0c862b060889:function(e,t,_){return e.then(t,_)},__wbg_then_8e16ee11f05e4827:function(e,t){return e.then(t)},__wbg_valueOf_25e11684e38026ef:function(e){return e.valueOf()},__wbg_valueOf_91a54faf8ce0976a:function(e){return e.valueOf()},__wbindgen_cast_0000000000000001:function(e,t){return de(e,t,R)},__wbindgen_cast_0000000000000002:function(e){return e},__wbindgen_cast_0000000000000003:function(e){return e},__wbindgen_cast_0000000000000004:function(e,t){return J(e,t)},__wbindgen_cast_0000000000000005:function(e,t){return K(e,t)},__wbindgen_cast_0000000000000006:function(e,t){return te(e,t)},__wbindgen_cast_0000000000000007:function(e,t){return _e(e,t)},__wbindgen_cast_0000000000000008:function(e,t){return ue(e,t)},__wbindgen_cast_0000000000000009:function(e,t){var _=_e(e,t).slice();ke.__wbindgen_free(e,1*t,1);return _},__wbindgen_init_externref_table:function(){const e=ke.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}};return{__proto__:null,"./bundle_bg.js":t}}function R(e,t,_){const r=ke.wasm_bindgen__convert__closures_____invoke__h0082ca4dbd10b7c6(e,t,_);if(r[1])throw Fe(r[0])}function v(e,t,_,r){ke.wasm_bindgen__convert__closures_____invoke__h44661d48f0e51fa5(e,t,_,r)}Symbol.dispose&&(m.prototype[Symbol.dispose]=m.prototype.free);const k=["boolean","int32","int64","int96","float","double","byte-array","fixed-byte-array"],C=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],O="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_columndescriptor_free(e>>>0,1)),T="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_columnid_free(e>>>0,1)),I="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_displayoptimizationxzbuilder_free(e>>>0,1)),M="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_displayoptimizationzbuilder_free(e>>>0,1)),P="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_extent_free(e>>>0,1)),j="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_fieldmetadata_free(e>>>0,1)),A="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_geometryfield_free(e>>>0,1)),U="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_geometryinfo_free(e>>>0,1)),L="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_multiscalegeometryfield_free(e>>>0,1)),W="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_pageencodingdescriptor_free(e>>>0,1)),E="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_parquetchunk_free(e>>>0,1)),G="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_parquetfile_free(e>>>0,1)),D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_parquetpatchchunk_free(e>>>0,1)),Z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_quantizedgeometrybuffer_free(e>>>0,1)),B="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_query_free(e>>>0,1)),X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_querystream_free(e>>>0,1)),H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_rangeproviderjs_free(e>>>0,1)),V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_rowgroup_free(e>>>0,1)),Y="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_rowgroupid_free(e>>>0,1));function Q(e){const t=ke.__externref_table_alloc();return ke.__wbindgen_externrefs.set(t,e),t}function N(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}const $="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbindgen_destroy_closure(e.a,e.b));function J(e,t){return e>>>=0,se().subarray(e/8,e/8+t)}function K(e,t){return e>>>=0,ae().subarray(e/2,e/2+t)}function ee(e,t){e>>>=0;const _=ne(),r=[];for(let n=e;n<e+4*t;n+=4)r.push(ke.__wbindgen_externrefs.get(_.getUint32(n,!0)));return ke.__externref_drop_slice(e,t),r}function te(e,t){return e>>>=0,le().subarray(e/4,e/4+t)}function _e(e,t){return e>>>=0,pe().subarray(e/1,e/1+t)}let re=null;function ne(){return(null===re||!0===re.buffer.detached||void 0===re.buffer.detached&&re.buffer!==ke.memory.buffer)&&(re=new DataView(ke.memory.buffer)),re}let ie=null;function se(){return null!==ie&&0!==ie.byteLength||(ie=new Float64Array(ke.memory.buffer)),ie}let oe=null;function ae(){return null!==oe&&0!==oe.byteLength||(oe=new Int16Array(ke.memory.buffer)),oe}function ue(e,t){return Re(e>>>=0,t)}let ce=null;function le(){return null!==ce&&0!==ce.byteLength||(ce=new Uint32Array(ke.memory.buffer)),ce}let ge=null;function pe(){return null!==ge&&0!==ge.byteLength||(ge=new Uint8Array(ke.memory.buffer)),ge}function be(e,t){try{return e.apply(this,t)}catch(_){const e=Q(_);ke.__wbindgen_exn_store(e)}}function we(e){return null==e}function de(e,t,_){const r={a:e,b:t,cnt:1},n=(...e)=>{r.cnt++;const t=r.a;r.a=0;try{return _(t,r.b,...e)}finally{r.a=t,n._wbg_cb_unref()}};return n._wbg_cb_unref=()=>{0===--r.cnt&&(ke.__wbindgen_destroy_closure(r.a,r.b),r.a=0,$.unregister(r))},$.register(n,r,r),n}function fe(e,t){const _=t(4*e.length,4)>>>0;return le().set(e,_/4),Ce=e.length,_}function ye(e,t){const _=t(1*e.length,1)>>>0;return pe().set(e,_/1),Ce=e.length,_}function he(e,t){const _=t(8*e.length,8)>>>0;return se().set(e,_/8),Ce=e.length,_}function me(e,t){const _=t(4*e.length,4)>>>0;for(let r=0;r<e.length;r++){const t=Q(e[r]);ne().setUint32(_+4*r,t,!0)}return Ce=e.length,_}function ze(e,t,_){if(void 0===_){const _=ve.encode(e),r=t(_.length,1)>>>0;return pe().subarray(r,r+_.length).set(_),Ce=_.length,r}let r=e.length,n=t(r,1)>>>0;const i=pe();let s=0;for(;s<r;s++){const t=e.charCodeAt(s);if(t>127)break;i[n+s]=t}if(s!==r){0!==s&&(e=e.slice(s)),n=_(n,r,r=s+3*e.length,1)>>>0;const t=pe().subarray(n+s,n+r);s+=ve.encodeInto(e,t).written,n=_(n,r,s,1)>>>0}return Ce=s,n}function Fe(e){const t=ke.__wbindgen_externrefs.get(e);return ke.__externref_table_dealloc(e),t}let qe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});qe.decode();const xe=2146435072;let Se=0;function Re(e,t){return Se+=t,Se>=xe&&(qe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),qe.decode(),Se=t),qe.decode(pe().subarray(e,e+t))}const ve=new TextEncoder;"encodeInto"in ve||(ve.encodeInto=function(e,t){const _=ve.encode(e);return t.set(_),{read:e.length,written:_.length}});let ke,Ce=0;function Oe(e,t){return ke=e.exports,re=null,ie=null,oe=null,ce=null,ge=null,ke.__wbindgen_start(),ke}async function Te(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(r){if(!(e.ok&&_(e.type))||"application/wasm"===e.headers.get("Content-Type"))throw r;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r)}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const _=await WebAssembly.instantiate(e,t);return _ instanceof WebAssembly.Instance?{instance:_,module:e}:_}function _(e){switch(e){case"basic":case"cors":case"default":return!0}return!1}}function Ie(e){if(void 0!==ke)return ke;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=S();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));return Oe(new WebAssembly.Instance(e,t))}async function Me(e){if(void 0!==ke)return ke;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead"));const t=S();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:_,module:r}=await Te(await e,t);return Oe(_)}export{e as ColumnDescriptor,t as ColumnId,_ as DisplayEncoding,r as DisplayOptimizationXZBuilder,n as DisplayOptimizationZBuilder,i as Extent,s as FieldMetadata,o as GeometryField,a as GeometryInfo,u as GeometryType,c as MultiscaleGeometryField,l as PageEncodingDescriptor,g as ParquetChunk,p as ParquetFile,b as ParquetPatchChunk,w as QuantizedGeometryBuffer,d as Query,f as QueryStream,y as RangeProviderJs,h as RowGroup,m as RowGroupId,Me as default,z as enableTracing,F as getXZCodeRanges,Ie as initSync,q as queryIntersectsXYStatistics,x as queryIntersectsXZStatistics};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{convertJsonValueToImmutableArcadeValue as e}from"../arcade/containerUtils.js";import r from"../arcade/Dictionary.js";import{StringEnum as t}from"../arcade/enum.js";import{ArcadeExecutionError as s}from"../arcade/executionError.js";import{E as n,n as o,l}from"./languageUtils.js";import{getPortal as a}from"../arcade/portalUtils.js";import i from"../core/Logger.js";import{isString as c}from"../support/guards.js";const d=new t(["title","owner","created","modified"]),u=new t(["asc","desc"]),f=new t(["groupMember"]);function m(t){"async"===t.mode&&(t.functions.getgroups=function(m,p){return t.standardFunctionAsync(m,p,async(t,m,p)=>{if(n(p,0,2,m),null!=p[0]&&!o(p[0]))throw new s("InvalidParameter",m);const g=a(t,p[0]??null),w={start:1,num:100},h=p[1];if(null==h)w.searchUserAccess="groupMember";else{if(!l(h))throw new s("InvalidParameter",m);{const e=h.hasField("q")?h.field("q"):null;if(c(e))w.q=e;else if(null!=e)throw new s("InvalidParameter",m);const r=h.hasField("filter")?h.field("filter"):null;if(c(r))w.filter=r;else if(null!=r)throw new s("InvalidParameter",m);const t=h.hasField("sortOrder")?h.field("sortOrder"):null;if(null!=t&&!c(t))throw new s("InvalidParameter",m);const n=null==t?"asc":u.get(t),o=h.hasField("sortField")?h.field("sortField"):null;if(c(o))w.sortField=d.get(o),w.sortOrder=n;else if(null!=o)throw new s("InvalidParameter",m);const l=h.hasField("searchUserAccess")?h.field("searchUserAccess"):null;if(c(l))w.searchUserAccess=f.get(l);else if(null!=l)throw new s("InvalidParameter",m);if(null==w.q&&null==w.filter&&null==w.searchUserAccess)throw new s("InvalidParameter",m)}}const y=[];for(;;){let n;try{n=await g.request(g.restUrl+"/community/groups",{query:w,authMode:"no-prompt"})}catch(j){return null!=j&&"object"==typeof j&&"message"in j&&"string"==typeof j.message&&t.console(`GetGroups error: ${j.message}`),i.getLogger("esri.arcade.functions.portal").error(j),null}if(t.abortSignal.aborted)throw new s("Cancelled",m);for(const t of n.results)y.push(new r({id:e(t.id),title:e(t.title),owner:e(t.owner),description:e(t.description),snippet:e(t.snippet),tags:e(t.tags),typeKeywords:e(t.typeKeywords),phone:e(t.phone),created:e(t.created),modified:e(t.modified),orgId:e(t.orgId)}));if(null==n.nextStart||n.nextStart<=w.start)break;w.start=n.nextStart}return y})})}const p=Object.freeze(Object.defineProperty({__proto__:null,registerFunctions:m},Symbol.toStringTag,{value:"Module"}));export{p as P,m as r};
package/config.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="5.2.0-next.93";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}s.defaultAssetsPath=s.assetsPath}export{s as default};
2
+ import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="5.2.0-next.95";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}s.defaultAssetsPath=s.assetsPath}export{s as default};
@@ -7,6 +7,30 @@ import type TimeInterval from "../time/TimeInterval.js";
7
7
  import type { TimeUnit } from "./units.js";
8
8
  import type { TimeZone } from "../time/types.js";
9
9
 
10
+ /**
11
+ * Gregorian wall-clock parts used to convert between an instant and a time zone.
12
+ *
13
+ * @internal
14
+ */
15
+ export interface ZonedDateTimeParts {
16
+ /** @internal */
17
+ year: number;
18
+ /** @internal */
19
+ month: number;
20
+ /** @internal */
21
+ day: number;
22
+ /** @internal */
23
+ hour: number;
24
+ /** @internal */
25
+ minute: number;
26
+ /** @internal */
27
+ second: number;
28
+ /** @internal */
29
+ millisecond: number;
30
+ /** @internal */
31
+ offsetMinutes: number;
32
+ }
33
+
10
34
  /**
11
35
  * Returns the addition or subtraction of a quantity of temporal units. Computations are performed on local dates, not UTC.
12
36
  *
@@ -38,6 +62,44 @@ import type { TimeZone } from "../time/types.js";
38
62
  */
39
63
  export function offsetDate(date: Date, offset: number, unit: TimeUnit, timeZone?: TimeZone): Date;
40
64
 
65
+ /**
66
+ * Returns the Gregorian wall-clock parts and UTC offset for an instant in a time zone.
67
+ *
68
+ * Use this when a consumer needs to display an instant in an IANA time zone or obtain the zone's effective offset.
69
+ *
70
+ * @param date - The instant to convert.
71
+ * @param timeZone - The time zone in which to express the instant.
72
+ * @returns The wall-clock parts and offset, or `null` when the date or time zone is invalid or before the common era.
73
+ * @internal
74
+ */
75
+ export function getZonedDateTimeParts(date: Date, timeZone: TimeZone): ZonedDateTimeParts | null;
76
+
77
+ /**
78
+ * Formats Gregorian calendar date parts as a date-only ISO string.
79
+ *
80
+ * @param parts - The calendar date to format.
81
+ * @returns The formatted date, or an empty string when the date is invalid.
82
+ * @internal
83
+ */
84
+ export function formatCalendarDate(parts: Pick<ZonedDateTimeParts, "year" | "month" | "day">): string;
85
+
86
+ /**
87
+ * Converts a local date and time (as a time zone offset) to a JavaScript Date.
88
+ *
89
+ * Skipped wall times move forward by the transition gap. Repeated wall times use the earlier instant.
90
+ *
91
+ * @param date - The calendar date to convert.
92
+ * @param minutesSinceMidnight - The wall-clock time in minutes since midnight.
93
+ * @param timeZone - The time zone in which to interpret the calendar date and time.
94
+ * @returns The corresponding instant, or `null` when the date, time, or time zone is invalid.
95
+ * @internal
96
+ */
97
+ export function createZonedDate(date: {
98
+ day: number;
99
+ month: number;
100
+ year: number;
101
+ }, minutesSinceMidnight: number, timeZone: TimeZone): Date | null;
102
+
41
103
  /**
42
104
  * Truncates or "rounds down" dates to the specified time unit. Computations are performed on local dates, not UTC.
43
105
  *
package/core/timeUtils.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{resolveTimeZone as e}from"../intl/date.js";import{system as t}from"../time/constants.js";import{IANAZone as s,DateTime as n}from"luxon";const r=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function u(r,o,u,c=t){if("unknown"===u)return r;const a=new s(e(c)),i=n.fromJSDate(r,{zone:a}),l="decades"===u||"centuries"===u?"year":y(u);return"decades"===u&&(o*=10),"centuries"===u&&(o*=100),i.plus({[l]:o}).toJSDate()}function c(e,t,s="milliseconds"){const n=e.getTime(),r=h(t,s,"milliseconds");return new Date(n+r)}function a(r,o,u=t){const{unit:c}=o,a=Math.max(1,Math.trunc(o.value)),i=new s(e(u)),l=n.fromJSDate(r,{zone:i}),m=e=>e-e%a;switch(c){case"milliseconds":return l.startOf("second").plus({millisecond:m(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:m(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:m(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:m(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:m(l.day-1)}).toJSDate();case"weeks":{const e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:m(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:m(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=l.startOf("year"),t=("decades"===c?10:"centuries"===c?100:1)*a,s=e.year-e.year%t;return e.set({year:s}).toJSDate()}case"unknown":return r}}function i(e,t,s="milliseconds"){const n=new Date(h(t,s,"milliseconds"));return n.setUTCFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n}function l(e,t="milliseconds"){const s=h(e.getUTCHours(),"hours","milliseconds"),n=h(e.getUTCMinutes(),"minutes","milliseconds"),r=h(e.getUTCSeconds(),"seconds","milliseconds");return h(s+n+r+e.getUTCMilliseconds(),"milliseconds",t)}function m(e){const t=r.exec(e);if(!t)return null;const{hh:s,mm:n,ss:u,ms:c}=t.groups;return Number(s)*o.hours+Number(n)*o.minutes+Number(u||0)*o.seconds+Number(c||0)}function d(e,t){const s=new Date(e);return s.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),s}function f(e){const t=new Date(0);return t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0),t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t}function h(e,t,s){if(0===e)return 0;return e*o[t]/o[s]}function w(e){return e instanceof Date&&!isNaN(e.getTime())}function D(e,t){return e&&t?e.intersection(t):e||t}function y(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}export{h as convertTime,w as isValidDate,i as makeUTCTime,D as mergeTimeExtents,o as millisecondsPerTimeUnit,u as offsetDate,c as offsetDateUTC,d as resetUTCDate,m as timeOnlyToMilliseconds,l as timeSinceUTCMidnight,a as truncateDate,f as truncateLocalTime};
2
+ import{resolveTimeZone as e}from"../intl/date.js";import{system as t}from"../time/constants.js";import{IANAZone as n,DateTime as s}from"luxon";const o=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,r={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function u(o,r,u,i=t){if("unknown"===u)return o;const c=new n(e(i)),a=s.fromJSDate(o,{zone:c}),l="decades"===u||"centuries"===u?"year":S(u);return"decades"===u&&(r*=10),"centuries"===u&&(r*=100),a.plus({[l]:r}).toJSDate()}function i(e,t,n="milliseconds"){const s=e.getTime(),o=w(t,n,"milliseconds");return new Date(s+o)}function c(t,n){const o=s.fromJSDate(t,{zone:e(n)});if(!o.isValid)return null;const{year:r,month:u,day:i,hour:c,minute:a,second:l,millisecond:m,offset:d}=o;return{year:r,month:u,day:i,hour:c,minute:a,second:l,millisecond:m,offsetMinutes:d}}function a({year:e,month:t,day:n}){return s.fromObject({year:e,month:t,day:n},{zone:"UTC"}).toISODate()??""}function l({year:t,month:n,day:o},r,u){const i=Math.round(w(r,"minutes","milliseconds")),c={year:t,month:n,day:o,hour:Math.floor(w(i,"milliseconds","hours")),minute:Math.floor(w(i,"milliseconds","minutes"))%60,second:Math.floor(w(i,"milliseconds","seconds"))%60,millisecond:i%w(1,"seconds","milliseconds")};if(![t,n,o,c.hour,c.minute,c.second,c.millisecond].every(Number.isInteger))return null;const a=s.fromObject(c,{zone:e(u)});if(!a.isValid)return null;return a.getPossibleOffsets().reduce((e,t)=>t.toMillis()<e.toMillis()?t:e).toJSDate()}function m(o,r,u=t){const{unit:i}=r,c=Math.max(1,Math.trunc(r.value)),a=new n(e(u)),l=s.fromJSDate(o,{zone:a}),m=e=>e-e%c;switch(i){case"milliseconds":return l.startOf("second").plus({millisecond:m(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:m(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:m(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:m(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:m(l.day-1)}).toJSDate();case"weeks":{const e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:m(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:m(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=l.startOf("year"),t=("decades"===i?10:"centuries"===i?100:1)*c,n=e.year-e.year%t;return e.set({year:n}).toJSDate()}case"unknown":return o}}function d(e,t,n="milliseconds"){const s=new Date(w(t,n,"milliseconds"));return s.setUTCFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),s}function f(e,t="milliseconds"){const n=w(e.getUTCHours(),"hours","milliseconds"),s=w(e.getUTCMinutes(),"minutes","milliseconds"),o=w(e.getUTCSeconds(),"seconds","milliseconds");return w(n+s+o+e.getUTCMilliseconds(),"milliseconds",t)}function h(e){const t=o.exec(e);if(!t)return null;const{hh:n,mm:s,ss:u,ms:i}=t.groups;return Number(n)*r.hours+Number(s)*r.minutes+Number(u||0)*r.seconds+Number(i||0)}function y(e,t){const n=new Date(e);return n.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n}function D(e){const t=new Date(0);return t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0),t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t}function w(e,t,n){if(0===e)return 0;return e*r[t]/r[n]}function g(e){return e instanceof Date&&!isNaN(e.getTime())}function M(e,t){return e&&t?e.intersection(t):e||t}function S(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}export{w as convertTime,l as createZonedDate,a as formatCalendarDate,c as getZonedDateTimeParts,g as isValidDate,d as makeUTCTime,M as mergeTimeExtents,r as millisecondsPerTimeUnit,u as offsetDate,i as offsetDateUTC,y as resetUTCDate,h as timeOnlyToMilliseconds,f as timeSinceUTCMidnight,m as truncateDate,D as truncateLocalTime};
package/kernel.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.2";let r,s=e;function i(o){r=o}function t(e){const s=r?.findCredential(e);return s?.token?o(e,"token",s.token):e}s="5.2.0-next.93",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,s as fullVersion,r as id,i as setId,e as version};
2
+ import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.2";let r,s=e;function i(o){r=o}function t(e){const s=r?.findCredential(e);return s?.token?o(e,"token",s.token):e}s="5.2.0-next.95",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,s as fullVersion,r as id,i as setId,e as version};
@@ -111,7 +111,6 @@ export interface AnnotationFeatureLayerEvents extends EditBusLayerEvents, Refres
111
111
  * > - The AnnotationFeatureLayer requires `ZOrder`, `AnnotationClassID`, `Element`, `SymbolID`, `Status` fields
112
112
  * > for proper functionality. If a required field is not present, the layer will fail. See [Annotation Fields](https://doc.esri.com/en/arcgis-pro/latest/help/data/annotation/managing-annotation-feature-class-properties.html)
113
113
  * > for more information on required fields.
114
- * > - The AnnotationFeatureLayer does not support annotation features with `CIMTextGraphic`. Annotation features with `CIMTextGraphic` will not be displayed in the view.
115
114
  * >
116
115
  * > The following features are not currently supported in this release. Future releases will see increased functionality and support for additional features.
117
116
  * > - Editing
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__addDisposableResource as e,__disposeResources as t}from"tslib";import{toConst as s}from"../../../../core/compilerUtils.js";import r from"../../../../core/Error.js";import i from"../../../../core/Handles.js";import has from"../../../../core/has.js";import a from"../../../../core/Logger.js";import{onAbortOrThrow as n,throwIfAborted as o}from"../../../../core/promiseUtils.js";import{QueueProcessor as u}from"../../../../core/QueueProcessor.js";import{parseWhereClause as l}from"../../../../core/sql.js";import{getMetersPerUnitForSR as c}from"../../../../core/units.js";import p from"../../../../geometry/SpatialReference.js";import{set as d,create as f,expandWithAABB as h,expandWithRect as m,negativeInfinity as y}from"../../../../geometry/support/aaBoundingBox.js";import{copy as g,negativeInfinity as _,create as w,expandWithRect as x}from"../../../../geometry/support/aaBoundingRect.js";import{isWebMercator as F,isWGS84 as S}from"../../../../geometry/support/spatialReferenceUtils.js";import{convertToGeometry as I}from"../../featureConversionUtils.js";import{getFieldNamesFromStatistics as v}from"../../data/attributeSupport.js";import{getQueryResultExtent as R,getQueryBoundingRects as q,QueryEngine as b}from"../../data/QueryEngine.js";import{queryCapabilities as C}from"../../data/QueryEngineCapabilities.js";import{QueryEngineResult as E}from"../../data/QueryEngineResult.js";import{normalizeQueryLike as P}from"../../data/queryUtils.js";import{createFileProvider as O}from"../parquet/createFileProvider.js";import{readFieldStatistic as M}from"../parquet/ParquetFileStatistics.js";import{createDrawingInfo as T}from"./clientSideDefaults.js";import{getParquetFileId as j,getParquetRowId as Q,getParquetObjectId as A}from"./parquetIdUtils.js";import B from"../../../support/Field.js";import G from"../../../support/FieldsIndex.js";import{isNumericField as N}from"../../../support/fieldUtils.js";import{fromParquetGeometryEncodingJSON as D}from"../../../support/parquetEncodingUtils.js";import{completeParquetLayerInfo as z,fromParquetJSONGeometryType as V,toParquetJSONGeometryType as k}from"../../../support/parquetUtils.js";import{loadParquetModule as W}from"../../../../libs/parquet/loadParquetModule.js";import{normalizeColumnPath as U}from"../../../../libs/parquet/parquet.js";import{FeatureStoreQueryAdapter as Z}from"../../../../views/2d/layers/features/FeatureStoreQueryAdapter.js";import{FeatureSnapshotSourceChunk as J}from"../../../../views/2d/layers/features/sources/strategies/chunks/FeatureSnapshotSourceChunk.js";import{FeatureSourceChunkStore as L}from"../../../../views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js";import{FeatureMetadata as H}from"../../../../views/2d/layers/features/support/FeatureMetadata.js";import{FeatureSetReaderParquet as X}from"../../../../views/2d/layers/features/support/FeatureSetReaderParquet.js";const Y=new Z,$=4,K="__OBJECTID",ee=new TextDecoder,te=8e3,se=2e7,re=8,ie=2;class ae{constructor(e,t){this._files=e,this._createFileStream=t,this._fileIndex=0,this._streamIndex=0,this._streams=[],this._pending=new Set,this._resolvedCount=0}async next(e){for(await this._fill(e);this._pending.size>0;){o(e),await this._fill(e);const t=await ne(this._pending);if(this._pending.delete(t.read),this._resolvedCount++,null!=t.chunk)return t.chunk}return null}async _fill(e){for(this._removeDone();this._pending.size<re;){const t=this._getOrCreateNextStream(e);if(null==t)return;this._pending.add(t.read(e))}}_getOrCreateNextStream(e){const t=this._resolvedCount>=re?re:ie;if(this._fileIndex<this._files.length&&this._streams.length<t){const t=this._files[this._fileIndex++],s=new oe(t.id,this._createFileStream(t,e));return this._streams.push(s),s}return this._getNextStream()}_getNextStream(){const e=this._streams.length;for(let t=0;t<e;t++){const s=(this._streamIndex+t)%e,r=this._streams[s];if(r.canRead)return this._streamIndex=(s+1)%e,r}return null}_removeDone(){let e=this._streamIndex;for(let t=this._streams.length-1;t>=0;t--)this._streams[t].done&&(this._streams.splice(t,1),t<e&&e--);this._streamIndex=this._streams.length>0?e%this._streams.length:0}}function ne(e){return Promise.race(Array.from(e,async e=>({read:e,chunk:await e})))}class oe{constructor(e,t){this._fileId=e,this._stream=t,this._readCount=0,this._reachedEnd=!1}get canRead(){return!this._reachedEnd}get done(){return this._reachedEnd&&0===this._readCount}async read(e){this._readCount++;try{const t=await this._stream,s=await t.next(e);return null==s?(this._reachedEnd=!0,null):{fileId:this._fileId,chunk:s}}finally{this._readCount--}}}class ue{constructor(){this._hasZ=!1,this._hasM=!1,this._queue=new u({concurrency:$,process:(e,t)=>this._executeQuery(e,t)}),this._streams=new Map,this._streamIdCounter=0,this._indexMap={},this._handles=new i}async load(e){const t=e.spatialReference?p.fromJSON(e.spatialReference):void 0;if(t&&!t.isWGS84&&!t.isWebMercator)throw new r("parquet:unsupported-projection","Only WGS84 and Web Mercator are supported");this._customParameters=e.customParameters,this._loadParameters=e,await this._updateProvider(O(e.provider,null,()=>this._customParameters));const s=await this._provider.getMetadata(),i=await z(s,{fields:e.fields?.map(e=>B.fromJSON(e)),geometryEncoding:e.geometryEncoding?D(e.geometryEncoding):null,geometryType:e.geometryType?V(e.geometryType):null,displayOptimization:e.displayOptimization,spatialReference:t});if(this._hasZ=!!s?.hasZ,this._hasM=!!s?.hasM,!i.fields)throw new r("parquet:unsupported","Fields must be defined");let n;if(i.spatialReference&&i.geometryType){if(!i.spatialReference)throw new r("parquet:unsupported","SpatialReference must be defined");if(!i.spatialReference.isGeographic&&!i.spatialReference.isWebMercator)throw new r("parquet:unsupported-projection","Only WGS84 and Web Mercator are supported");i.spatialReference.isGeographic&&!i.spatialReference.isWGS84&&(a.getLogger("parquet:unsupported-projection").warn("Found a geographic projection that is not WGS84. Handling as WGS84.",{spatialReference:i.spatialReference}),i.spatialReference=p.WGS84),n={geometry:i.geometryEncoding?{geometryType:k(i.geometryType),spatialReference:i.spatialReference.toJSON(),encoding:i.geometryEncoding.toJSON()}:null,displayOptimization:i.displayOptimization}}this.setCustomParameters(e.customParameters),this._displayOptimization=i.displayOptimization,await this._provider.updateGeometryInfo(n),this._capabilities=qe(await this._getFileStatistics(),this._hasZ,this._hasM);const o=await this._provider.getFiles();if(!o.length)return{layerDefinition:{},capabilities:qe(null,this._hasZ,this._hasM)};const u=await o[0].file;i.file=u;const{fields:l}=i;if(null==l)throw new r("parquet-layer:missing-metadata","Unable to create parquet source: cannot infer fields",l);l.push(new B({name:K,type:"oid",alias:K}));for(const r of l){const e=u.getColumnId(r.name);null!=e&&(this._indexMap[r.name]=e)}const c=new G(l.map(e=>e.toJSON()));this._fieldsIndex=c;const d=k(i.geometryType??"point");return this._metadata=H.createFeature({fieldsIndex:c.toJSON(),geometryType:d,hasZ:this._hasZ,hasM:this._hasM,featureIdInfo:{type:"object-id",fieldName:K},subtypes:null,subtypeField:null,types:null,typeIdField:null,globalIdField:null,spatialReference:i.spatialReference,outSpatialReference:null,attributeSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null}),this._queryEngineParams={fieldsIndex:this._metadata.fieldsIndex,geometryType:d,featureIdInfo:{type:"object-id",fieldName:K},hasM:this._hasM,hasZ:this._hasZ,spatialReference:i.spatialReference?.toJSON()??{wkid:4326},aggregateAdapter:null,timeInfo:null,definitionExpression:null},this._fullExtent=s?.extent?s.extent:await this._tryDeriveParquetFullExtent(i),{capabilities:this._capabilities,layerDefinition:{fields:i.fields?.map(e=>e.toJSON()),drawingInfo:T(d),extent:this._fullExtent??void 0,geometryType:d,geometryEncoding:i.geometryEncoding?.toJSON(),displayOptimization:i.displayOptimization}}}destroy(){this._provider.destroy(),this._queue.destroy();for(const{handle:e}of this._streams.values())e.remove();this._streams.clear(),this._indexMap={},this._handles.removeAll()}async reload(e){this.destroy(),await this.load(e)}set remoteClient(e){this._source=e.createInvokeProxy("")}setCustomParameters(e){this._customParameters=e}getIndexMap(){return this._indexMap}async updateFileProvider(e){this._loadParameters={...this._loadParameters,provider:e};const t=O(e,this._provider.getGeometryInfo(),()=>this._customParameters);await this._updateProvider(t)}async getDiagnosticsSnapshot(){const e=await this._provider.getFiles();return{files:await Promise.all(e.map(e=>e.getDiagnosticsSnapshot()))}}async getColumnIndex(e){return(await this._getFileInfoById(e.fileId)).getColumnIndex(e.rowGroupIndex,e.columnIndex)}async getOffsetIndex(e){return(await this._getFileInfoById(e.fileId)).getOffsetIndex(e.rowGroupIndex,e.columnIndex)}async queryFeatures(e,t){const s=await P(e,null,this._queryEngineParams.spatialReference);if(this._validateQuery(s),be(s)||(s.resultRecordCount=s.resultRecordCount?Math.min(s.resultRecordCount,te):te,s.resultOffset=s.resultOffset??0),s.outStatistics)return this._queryStatistics(s,t);s.returnDistinctValues&&(s.returnGeometry=void 0);return(await this._enqueueQuery(s,t)).createQueryResponse()}async queryFeatureCount(e,t){const s=await P(e,null,this._queryEngineParams.spatialReference);if(this._validateQuery(s),!de(s))return this._getFeatureCount();s.outFields=void 0,s.returnGeometry=void 0;return(await this._enqueueQuery(s,t)).createQueryResponseForCount()}async queryObjectIds(e,t){const s=await P(e,null,this._queryEngineParams.spatialReference);if(this._validateQuery(s),!de(s))return Array.from({length:await this._getFeatureCount()},(e,t)=>t);s.resultRecordCount=s.resultRecordCount?Math.min(s.resultRecordCount,8e3):8e3,s.resultOffset=s.resultOffset??0,s.returnGeometry=void 0,s.outFields=void 0;return(await this._enqueueQuery(s,t)).items.map(e=>e.getObjectId())}async queryAttributeBins(e,t={}){throw new r("parquet:unsupported","queryAttributeBins not supported.")}async queryExtent(e,t){const r=await P(e,null,this._queryEngineParams.spatialReference);if(this._validateQuery(r),this._fullExtent&&!de(r))return{count:await this._getFeatureCount(),extent:this._fullExtent};const i=s(this._metadata.spatialReference);r.returnGeometry=!0,r.outFields=void 0;const a=d(f(),y),n=f(),o=await this._enqueueQuery(r,t);let u=0;for(const s of o.items)s.getBounds(n)&&(h(a,n),u+=1);return{count:u,extent:R(a,i,r.outSR?s(r.outSR):i.toJSON(),i,!1)}}async queryStream(e,t){if(!t.signal)throw new Error("InternalError: AbortSignal must be passed");const s=await this._getCandidateFiles(e),r=new ae(s,async(t,s)=>{const r=await t.file,i=await this._createParquetDisplayQuery(r,t.id,e);return r.executeQuery(i,te,s)}),i=this._streamIdCounter++,a=n(t.signal,e=>{const t=this._streams.get(i);null!=t&&(t.handle.remove(),this._streams.delete(i))});return this._streams.set(i,{stream:r,handle:a}),i}async getStreamNext(e,t){if(!t.signal)throw new Error("InternalError: AbortSignal must be passed");const s=this._streams.get(e);if(!s)return{result:null};const r=await s.stream.next(t.signal);if(null==r)return s.handle.remove(),this._streams.delete(e),{result:null};const i=r.chunk.serialize().buffer,a={fileId:r.fileId,buffer:i};return i instanceof ArrayBuffer?{result:a,transferList:[i]}:{result:a}}async getStreamNextFeatures(e,t){const{result:s}=await this.getStreamNext(e,t);if(null==s)return null;const r=(await W()).ParquetChunk.deserialize(new Uint8Array(s.buffer)),i=new X(this._metadata,this._indexMap,r,s.fileId),a=[];for(;i.next();){const e=I(i.readGeometryWorldSpace(),i.geometryType,i.hasZ,i.hasM),t=i.readAttributes();a.push({attributes:t,geometry:e})}return{features:a}}async createPatch(e,t,s,r,i){if(!i.signal)throw new Error("InternalError: AbortSignal must be passed");const a=await this._getFileInfoById(e),n=await a.file;return(await n.createChunkPatch(t,s,r,i.signal)).serialize().buffer}async _updateProvider(e){const t=this._provider;this._handles.removeAll(),this._provider=e,this._handles.add([e.events.on("rangeRead",e=>{this._source.onRangeRead(e)}),e.events.on("sourceChanged",async()=>{await this.reload(this._loadParameters),await this._source.onSourceChange()})]),await(t?.destroy())}async _getCandidateFiles(e){const t=await this._provider.getFiles(),s=await this._getSpatialFilePruning(e);if(null==s)return t;const r=t.filter(e=>this._mayIncludeFileForSpatialPruning(e,s));return"xz"===s.type?ve(r,s):r}async _queryStatistics(e,t){const s=await P({...e},null,this._queryEngineParams.spatialReference);if(s.returnGeometry=void 0,me(s,this._fieldsIndex)){const e=await this._getStatisticsFromFiles(s);if(e)return e}return(await this._enqueueQuery(s,t)).createQueryResponse()}async _getStatisticsFromFiles(e){const t=await this._provider.getFiles(),s={},r=[];for(const i of e.outStatistics??[]){const e=_e(i,t);if(!e.available)return null;s[i.outStatisticFieldName]=e.value,r.push(ge(i,this._fieldsIndex))}return{fields:r,features:[{attributes:s}]}}async _getSpatialFilePruning(e){if("tile"!==e.type&&("arcade"!==e.type||null==e.extent))return null;const t=this._displayOptimization,s=t?.index;if(null==s)return null;const r=e.outSpatialReference.wkid;if(null==s.wkid||null==r)return null;const i=s.wkid,a=await W();switch(s.type){case"xz":return{type:"xz",fieldName:U(s.code),intersects:(t,n)=>a.queryIntersectsXZStatistics(s.fullExtent,e.extent,r,i,s.maxLevel,t,n)};case"z":return{type:"xy",xFieldName:U(s.xColumn),yFieldName:U(s.yColumn),intersects:(t,s,n,o)=>a.queryIntersectsXYStatistics(e.extent,r,i,t,s,n,o)}}}_mayIncludeFileForSpatialPruning(e,t){switch(t.type){case"xz":{const s=Ie(e,t);return"null-only"!==s?.type&&("bounds"!==s?.type||t.intersects(s.minValue,s.maxValue))}case"xy":{const s=e.statistics.statistics.get(t.xFieldName),r=e.statistics.statistics.get(t.yFieldName);return"null-only"!==s?.type&&"null-only"!==r?.type&&("bounds"!==s?.type||"bounds"!==r?.type||t.intersects(s.minValue,s.maxValue,r.minValue,r.maxValue))}}}async _tryDeriveParquetFullExtent(s){if(!s.spatialReference)return null;if(null==this._fullExtent&&"location"===s.geometryEncoding?.type){const i=await this._provider.getFiles(),{xField:a,yField:n}=s.geometryEncoding,o=d(f(),y);let u=!1;for(const s of i){const i=await s.file;for(const s of i.rowGroups()){const i={stack:[],error:void 0,hasError:!1};try{const t=e(i,s.columnDescriptorForAttribute(a),!1),r=e(i,s.columnDescriptorForAttribute(n),!1),l=M(t),c=M(r);if("bounds"===l?.type&&"bounds"===c?.type){const e=[l.minValue,c.minValue,l.maxValue,c.maxValue];m(o,e),u=!0}s.free()}catch(r){i.error=r,i.hasError=!0}finally{t(i)}}}return u?{xmin:o[0],ymin:o[1],xmax:o[3],ymax:o[4],spatialReference:s.spatialReference?.toJSON()}:null}return null}async _getFileInfoById(e){const t=await this._provider.getFiles();for(const s of t)if(s.id===e)return s;throw new Error(`InternalError: File ${e} does not exist`)}async _getFileStatistics(){return{featureCount:await this._getFeatureCount(),byteLength:await this._getByteLength()}}async _getFile(e){return(await this._getFileInfoById(e)).file}async _createParquetQuery(e,t,s,r,i){const a=(await W()).Query.new();null!=s&&a.setPreFilterStart(s),null!=r&&a.setPreFilterCount(r),null!=i&&a.setPostFilterCount(i);const n=await this._getRequiredFields(e);a.setOutFields(n),(e.geometry||e.returnGeometry)&&a.setReturnGeometry(!0),a.setReturnZ(!!e.returnZ),a.setReturnM(!!e.returnM);const o=this._tryGetGeneralizedGeometryResolution(e);null!=o&&a.setSourceResolution(o);const u=e.geometry?.spatialReference??this._queryEngineParams.spatialReference,l=u.wkid;if(e.geometry&&(F(u)||S(u))){const t=g(w(),_);for(const s of q(e.geometry))x(t,s);a.setOutSpatialReference(l),a.setExtent({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]})}if(e.where){const{id:s,file:r}=t;await this._setWhereClause(a,await r,s,e.where)}return a}async _createParquetDisplayQuery(e,t,s){const r=(await W()).Query.new();if("tile"===s.type){r.setExtent(s.extent),r.setQuantizationTransform(s.transform);const e=this._sourceResolution(s.resolution,s.outSpatialReference);null!=e&&r.setSourceResolution(e)}else"arcade"===s.type&&null!=s.extent&&r.setExtent(s.extent);return r.setOutFields(s.outFields.filter(e=>null!=this._indexMap[e])),r.setOutSpatialReference(s.outSpatialReference.wkid),r.setReturnGeometry(s.returnGeometry),r.setReturnZ(s.returnZ),r.setReturnM(s.returnM),s.where&&await this._setWhereClause(r,e,t,s.where),r}async _getFeatureCount(){return(await this._provider.getFiles()).map(e=>e.statistics.rowCount).reduce((e,t)=>e+t,0)}async _getByteLength(){return(await this._provider.getFiles()).map(e=>e.statistics.byteSize).reduce((e,t)=>e+t,0)}_validateQuery(e){if(!this._capabilities.query.supportsStatistics&&e.outStatistics)throw new r("parquet:unsupported","Statistics queries are not supported",{query:e});if(!this._capabilities.query.supportsOrderBy&&e.orderByFields?.length)throw new r("parquet:unsupported","Queries using orderBy are not supported",{query:e});if(!this._capabilities.query.supportsDistinct&&e.returnDistinctValues)throw new r("parquet:unsupported","Queries using returnDistinctValues are not supported",{query:e})}async _setWhereClause(e,t,s,i){const a=this._indexMap,n=this._fieldsIndex,o={getAttribute(e,r){const i=a[r];if(null==i){const t=n.get(r);if("__OBJECTID"===t?.name){const t=e.row+e.rowGroupStart;return A(s,t)}return null}const o=t.readAttribute(e.rowGroup,e.row,i);if(null==o)return null;const u=n.get(r);return"esriFieldTypeString"===u.type||"esriFieldTypeDateOnly"===u.type||"esriFieldTypeTimeOnly"===u.type||"esriFieldTypeTimestampOffset"===u.type?ee.decode(o):o}},u=await l(i,this._fieldsIndex);if(!u.isStandardized)throw new r("sql-parse-error","expression is not standardized");const c=(e,t,s)=>u.testFeatureCompiled({rowGroup:e,row:t,rowGroupStart:s},o,null),p=u.fieldNames.map(e=>n.get(e)).filter(e=>e&&null!=this._indexMap[e?.name]);e.setWhere(i),e.setWhereEvaluator(c),e.setWhereFields(p.map(e=>e.name))}async*_streamFeatures(e,t,s,r,i){const a=await this._provider.getFiles();let n=0;for(const o of a){const a=n,u=n+o.statistics.rowCount;if(n+=o.statistics.rowCount,null!=t&&t>=u)continue;const l=null!=t?Math.max(t-a,0):null;let c=s;if(null!=s){const e=t??0,r=e+s,i=Math.max(e,a),n=Math.min(r,u);c=Math.max(n-i,0)}if(0===c)continue;const p=await this._createParquetQuery(e,o,l,c,r),d=await o.file,f=await d.executeQuery(p,te),h=async()=>{const e=await f.next(i);if(!e)return null;const t=new X(this._metadata,this._indexMap,e,o.id);return Se([new J(t,null,0,!1)],this._queryEngineParams)};let m=await h();for(;null!=m;)yield m,m=await h()}}async _queryFeaturesWithQueryEnginePagination(e,t){const s=[],r=this._streamFeatures(e,null,null,null,t);let i=await r.next();for(;!i.done;){const a=await i.value.executeQueryForOpaqueFeatures({...e,where:void 0},t);for(const e of a)s.push(e);i=await r.next()}return s}async _queryFeaturesWithUpfrontPagination(e,t){let s,r,i,a=e.resultOffset??0,n=e.resultRecordCount??te;fe(e)?he(e)||(i=a+n):(a&&(s=a,a=0),r=e.resultRecordCount);const o=[],u=this._streamFeatures(e,s,r,i,t);let l=await u.next();for(;!l.done&&n>0;){const s=await l.value.executeQueryForOpaqueFeatures({...e,where:void 0},t);for(const e of s)if(a>0)a--;else if(o.push(e),--n<=0)return o;l=await u.next()}return o}_enqueueQuery(e,t){return this._queue.push(e,t)}async _executeQuery(e,t){if(e.objectIds?.length){const s=new Map;for(const t of e.objectIds){const e=j(t),r=Q(t);let i=s.get(e);i||(i=[],s.set(e,i)),i.push(r)}const r=[];for(const[i,a]of s.entries()){const s=await this._executeFileIdQuery(e,i,a,t);for(const e of s)r.push(e)}return new E(r,e,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,hasM:this._hasM,hasZ:this._hasZ,featureAdapter:Y,featureIdInfo:this._queryEngineParams.featureIdInfo})}if("1=1"===e.where&&(e.where=null),e.resultOffset??=0,e.resultRecordCount??=await this._getFeatureCount(),e.resultRecordCount>se){if(!(this._displayOptimization&&e.geometry))throw new r("parquet:cannot-execute-query","Unable to execute query, dataset is too large.")}const s=!!e.orderByFields?.length||!!e.outStatistics?.length||!!e.returnDistinctValues,i=s?await this._queryFeaturesWithQueryEnginePagination(e,t):await this._queryFeaturesWithUpfrontPagination(e,t);return s||(e.resultOffset=0),new E(i,e,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,hasM:this._hasM,hasZ:this._hasZ,featureAdapter:Y,featureIdInfo:this._queryEngineParams.featureIdInfo})}async _executeFileIdQuery(e,t,s,r){const i=await this._getRequiredFields(e),a=(await W()).Query.new();a.setOutFields(i),a.setReturnGeometry(!!e.returnGeometry),a.setReturnZ(!!e.returnZ),a.setReturnM(!!e.returnM),a.setIds(new Uint32Array(s));const n=await this._getFile(t),o=await n.executeQuery(a,te,r);let u=await o.next(r),l=0;const c=[];for(;null!=u;){const e=new X(this._metadata,this._indexMap,u,t),s=new J(e,null,l++,!1);c.push(s),u=await o.next(r)}return Se(c,this._queryEngineParams).executeQueryForOpaqueFeatures(e,r)}async _getRequiredFields(e){const t=new Set;if(e.outStatistics)for(const s of v(this._fieldsIndex,e.outStatistics,e.groupByFieldsForStatistics))t.add(s);else if(e.outFields)for(const s of e.outFields)t.add(s);return(t.has("*")?this._fieldsIndex.fields.map(e=>e.name):Array.from(t)).filter(e=>null!=this._indexMap[e])}_tryGetGeneralizedGeometryResolution(e){if(!this._displayOptimization)return null;const t=e.outSR??this._queryEngineParams.spatialReference;if(!F(t)&&!S(t))return null;const s=e.quantizationParameters?.tolerance??e.maxAllowableOffset;return s?this._sourceResolution(s,t):null}_sourceResolution(e,t){const s=this._queryEngineParams.spatialReference,r=e*(c(t)/c(s));return!Number.isFinite(r)||r<=0?null:r}}function le(e){switch(e){case"fullText":case"having":case"timeExtent":case"historicMoment":case"aggregateIds":case"uniqueIds":case"gdbVersion":case"objectIds":case"where":case"geometry":case"resultOffset":case"resultRecordCount":return!0;default:return!1}}function ce(e){switch(e){case"fullText":case"having":case"timeExtent":case"historicMoment":case"aggregateIds":case"uniqueIds":case"gdbVersion":case"objectIds":case"where":case"geometry":return!0;default:return!1}}function pe(e){switch(e){case"fullText":case"having":case"timeExtent":return!0;case"historicMoment":case"aggregateIds":case"uniqueIds":case"gdbVersion":case"objectIds":case"where":case"resultOffset":case"geometry":case"resultRecordCount":return!1}return!1}function de(e){for(const t in e){const s=t;if(le(s)&&null!==e[s])return!0}return!1}function fe(e){for(const t in e){const s=t;if(ce(s)&&null!==e[s])return!0}return!1}function he(e){for(const t in e){const s=t;if(pe(s)&&null!==e[s])return!0}return!1}function me(e,t){return!!e.outStatistics?.length&&!de(e)&&!e.groupByFieldsForStatistics?.length&&!e.orderByFields?.length&&!e.returnDistinctValues&&!e.returnAggIds&&e.outStatistics.every(e=>ye(e,t))}function ye(e,t){switch(e.statisticType){case"count":return"1"===e.onStatisticField||null!=t.get(e.onStatisticField);case"min":case"max":{const s=t.get(e.onStatisticField);return null!=s&&N(s)}default:return!1}}function ge(e,t){const s="exceedslimit"!==e.statisticType?t.get(e.onStatisticField):null,r="min"!==e.statisticType&&"max"!==e.statisticType||"esriFieldTypeDate"!==s?.type?"esriFieldTypeDouble":s.type;return{name:e.outStatisticFieldName,alias:e.outStatisticFieldName,type:r}}function _e(e,t){switch(e.statisticType){case"count":return we(e,t);case"min":return xe(e,t,Math.min);case"max":return xe(e,t,Math.max);default:return{available:!1,value:null}}}function we(e,t){if("count"!==e.statisticType)return{available:!1,value:null};if("1"===e.onStatisticField)return{available:!0,value:t.reduce((e,t)=>e+t.statistics.rowCount,0)};let s=0;for(const r of t){const t=r.statistics.statistics.get(e.onStatisticField);if(null==t||null==t.nullCount)return{available:!1,value:null};s+=r.statistics.rowCount-t.nullCount}return{available:!0,value:s}}function xe(e,t,s){if("min"!==e.statisticType&&"max"!==e.statisticType)return{available:!1,value:null};let r=null;const i="min"===e.statisticType?"minValue":"maxValue";for(const a of t){const t=a.statistics.statistics.get(e.onStatisticField);if(null==t)return{available:!1,value:null};switch(t.type){case"null-only":continue;case"unknown":return{available:!1,value:null};case"bounds":{const e=Fe(t[i]);if(null==e)return{available:!1,value:null};r=null==r?e:s(r,e);break}}}return{available:!0,value:r}}function Fe(e){return"number"==typeof e&&Number.isFinite(e)?e:null}function Se(e,t){const s=new L;for(const r of e)s.insert(r);return new b({...t,featureStore:s})}function Ie(e,t){return e.statistics.statistics.get(t.fieldName)??null}function ve(e,t){return e.slice().sort((e,s)=>{const r=Re(e,t),i=Re(s,t);return r===i?0:r<i?-1:1})}function Re(e,t){const s=Ie(e,t);return"bounds"!==s?.type?Number.POSITIVE_INFINITY:s.maxValue-s.minValue}function qe(e,t,s){const r=e?.featureCount;let i=!1;return null!=r&&r<has("parquetlayer-full-query-feature-count")&&(i=!0),{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:s,supportsTrueCurve:!1,supportsZ:t},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},query:{...C,maxRecordCount:te,supportsOrderBy:i,supportsDistinct:!0,supportsStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1}},queryAttributeBins:{supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportsStackBy:!1,supportsSplitBy:!1,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsTrueCurveUpdate:!1,supportsTrueCurveUpdateByTrueCurveClientsOnly:!0,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUploadWithItemId:!1,supportsUpdateWithoutM:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}function be(e){return!!(e.objectIds?.length||e.outStatistics||e.orderByFields?.length||e.returnDistinctValues)}export{ue as default};
2
+ import{__addDisposableResource as e,__disposeResources as t}from"tslib";import{toConst as s}from"../../../../core/compilerUtils.js";import r from"../../../../core/Error.js";import i from"../../../../core/Handles.js";import has from"../../../../core/has.js";import a from"../../../../core/Logger.js";import{onAbortOrThrow as n,throwIfAborted as o}from"../../../../core/promiseUtils.js";import{QueueProcessor as u}from"../../../../core/QueueProcessor.js";import{parseWhereClause as l}from"../../../../core/sql.js";import{getMetersPerUnitForSR as c}from"../../../../core/units.js";import p from"../../../../geometry/SpatialReference.js";import{set as d,create as f,expandWithAABB as h,expandWithRect as m,negativeInfinity as y}from"../../../../geometry/support/aaBoundingBox.js";import{copy as g,negativeInfinity as _,create as w,expandWithRect as x}from"../../../../geometry/support/aaBoundingRect.js";import{isWebMercator as F,isWGS84 as S}from"../../../../geometry/support/spatialReferenceUtils.js";import{convertToGeometry as I}from"../../featureConversionUtils.js";import{getFieldNamesFromStatistics as v}from"../../data/attributeSupport.js";import{getQueryResultExtent as R,getQueryBoundingRects as q,QueryEngine as b}from"../../data/QueryEngine.js";import{queryCapabilities as C}from"../../data/QueryEngineCapabilities.js";import{QueryEngineResult as E}from"../../data/QueryEngineResult.js";import{normalizeQueryLike as P}from"../../data/queryUtils.js";import{createFileProvider as O}from"../parquet/createFileProvider.js";import{readFieldStatistic as M}from"../parquet/ParquetFileStatistics.js";import{createDrawingInfo as j}from"./clientSideDefaults.js";import{getParquetFileId as Q,getParquetRowId as T,getParquetObjectId as A}from"./parquetIdUtils.js";import B from"../../../support/Field.js";import G from"../../../support/FieldsIndex.js";import{isNumericField as N}from"../../../support/fieldUtils.js";import{fromParquetGeometryEncodingJSON as D}from"../../../support/parquetEncodingUtils.js";import{completeParquetLayerInfo as z,fromParquetJSONGeometryType as V,toParquetJSONGeometryType as k}from"../../../support/parquetUtils.js";import{loadParquetModule as W}from"../../../../libs/parquet/loadParquetModule.js";import{normalizeColumnPath as U,readParquetFileAttribute as Z}from"../../../../libs/parquet/parquet.js";import{FeatureStoreQueryAdapter as J}from"../../../../views/2d/layers/features/FeatureStoreQueryAdapter.js";import{FeatureSnapshotSourceChunk as L}from"../../../../views/2d/layers/features/sources/strategies/chunks/FeatureSnapshotSourceChunk.js";import{FeatureSourceChunkStore as H}from"../../../../views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js";import{FeatureMetadata as X}from"../../../../views/2d/layers/features/support/FeatureMetadata.js";import{FeatureSetReaderParquet as Y}from"../../../../views/2d/layers/features/support/FeatureSetReaderParquet.js";const $=new J,K=4,ee="__OBJECTID",te=8e3,se=2e7,re=8,ie=2;class ae{constructor(e,t){this._files=e,this._createFileStream=t,this._fileIndex=0,this._streamIndex=0,this._streams=[],this._pending=new Set,this._resolvedCount=0}async next(e){for(await this._fill(e);this._pending.size>0;){o(e),await this._fill(e);const t=await ne(this._pending);if(this._pending.delete(t.read),this._resolvedCount++,null!=t.chunk)return t.chunk}return null}async _fill(e){for(this._removeDone();this._pending.size<re;){const t=this._getOrCreateNextStream(e);if(null==t)return;this._pending.add(t.read(e))}}_getOrCreateNextStream(e){const t=this._resolvedCount>=re?re:ie;if(this._fileIndex<this._files.length&&this._streams.length<t){const t=this._files[this._fileIndex++],s=new oe(t.id,this._createFileStream(t,e));return this._streams.push(s),s}return this._getNextStream()}_getNextStream(){const e=this._streams.length;for(let t=0;t<e;t++){const s=(this._streamIndex+t)%e,r=this._streams[s];if(r.canRead)return this._streamIndex=(s+1)%e,r}return null}_removeDone(){let e=this._streamIndex;for(let t=this._streams.length-1;t>=0;t--)this._streams[t].done&&(this._streams.splice(t,1),t<e&&e--);this._streamIndex=this._streams.length>0?e%this._streams.length:0}}function ne(e){return Promise.race(Array.from(e,async e=>({read:e,chunk:await e})))}class oe{constructor(e,t){this._fileId=e,this._stream=t,this._readCount=0,this._reachedEnd=!1}get canRead(){return!this._reachedEnd}get done(){return this._reachedEnd&&0===this._readCount}async read(e){this._readCount++;try{const t=await this._stream,s=await t.next(e);return null==s?(this._reachedEnd=!0,null):{fileId:this._fileId,chunk:s}}finally{this._readCount--}}}class ue{constructor(){this._hasZ=!1,this._hasM=!1,this._queue=new u({concurrency:K,process:(e,t)=>this._executeQuery(e,t)}),this._streams=new Map,this._streamIdCounter=0,this._indexMap={},this._handles=new i}async load(e){const t=e.spatialReference?p.fromJSON(e.spatialReference):void 0;if(t&&!t.isWGS84&&!t.isWebMercator)throw new r("parquet:unsupported-projection","Only WGS84 and Web Mercator are supported");this._customParameters=e.customParameters,this._loadParameters=e,await this._updateProvider(O(e.provider,null,()=>this._customParameters));const s=await this._provider.getMetadata(),i=await z(s,{fields:e.fields?.map(e=>B.fromJSON(e)),geometryEncoding:e.geometryEncoding?D(e.geometryEncoding):null,geometryType:e.geometryType?V(e.geometryType):null,displayOptimization:e.displayOptimization,spatialReference:t});if(this._hasZ=!!s?.hasZ,this._hasM=!!s?.hasM,!i.fields)throw new r("parquet:unsupported","Fields must be defined");let n;if(i.spatialReference&&i.geometryType){if(!i.spatialReference)throw new r("parquet:unsupported","SpatialReference must be defined");if(!i.spatialReference.isGeographic&&!i.spatialReference.isWebMercator)throw new r("parquet:unsupported-projection","Only WGS84 and Web Mercator are supported");i.spatialReference.isGeographic&&!i.spatialReference.isWGS84&&(a.getLogger("parquet:unsupported-projection").warn("Found a geographic projection that is not WGS84. Handling as WGS84.",{spatialReference:i.spatialReference}),i.spatialReference=p.WGS84),n={geometry:i.geometryEncoding?{geometryType:k(i.geometryType),spatialReference:i.spatialReference.toJSON(),encoding:i.geometryEncoding.toJSON()}:null,displayOptimization:i.displayOptimization}}this.setCustomParameters(e.customParameters),this._displayOptimization=i.displayOptimization,await this._provider.updateGeometryInfo(n),this._capabilities=qe(await this._getFileStatistics(),this._hasZ,this._hasM);const o=await this._provider.getFiles();if(!o.length)return{layerDefinition:{},capabilities:qe(null,this._hasZ,this._hasM)};const u=await o[0].file;i.file=u;const{fields:l}=i;if(null==l)throw new r("parquet-layer:missing-metadata","Unable to create parquet source: cannot infer fields",l);l.push(new B({name:ee,type:"oid",alias:ee}));for(const r of l){const e=u.getColumnId(r.name);null!=e&&(this._indexMap[r.name]=e)}const c=new G(l.map(e=>e.toJSON()));this._fieldsIndex=c;const d=k(i.geometryType??"point");return this._metadata=X.createFeature({fieldsIndex:c.toJSON(),geometryType:d,hasZ:this._hasZ,hasM:this._hasM,featureIdInfo:{type:"object-id",fieldName:ee},subtypes:null,subtypeField:null,types:null,typeIdField:null,globalIdField:null,spatialReference:i.spatialReference,outSpatialReference:null,attributeSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null}),this._queryEngineParams={fieldsIndex:this._metadata.fieldsIndex,geometryType:d,featureIdInfo:{type:"object-id",fieldName:ee},hasM:this._hasM,hasZ:this._hasZ,spatialReference:i.spatialReference?.toJSON()??{wkid:4326},aggregateAdapter:null,timeInfo:null,definitionExpression:null},this._fullExtent=s?.extent?s.extent:await this._tryDeriveParquetFullExtent(i),{capabilities:this._capabilities,layerDefinition:{fields:i.fields?.map(e=>e.toJSON()),drawingInfo:j(d),extent:this._fullExtent??void 0,geometryType:d,geometryEncoding:i.geometryEncoding?.toJSON(),displayOptimization:i.displayOptimization}}}destroy(){this._provider.destroy(),this._queue.destroy();for(const{handle:e}of this._streams.values())e.remove();this._streams.clear(),this._indexMap={},this._handles.removeAll()}async reload(e){this.destroy(),await this.load(e)}set remoteClient(e){this._source=e.createInvokeProxy("")}setCustomParameters(e){this._customParameters=e}getIndexMap(){return this._indexMap}async updateFileProvider(e){this._loadParameters={...this._loadParameters,provider:e};const t=O(e,this._provider.getGeometryInfo(),()=>this._customParameters);await this._updateProvider(t)}async getDiagnosticsSnapshot(){const e=await this._provider.getFiles();return{files:await Promise.all(e.map(e=>e.getDiagnosticsSnapshot()))}}async getColumnIndex(e){return(await this._getFileInfoById(e.fileId)).getColumnIndex(e.rowGroupIndex,e.columnIndex)}async getOffsetIndex(e){return(await this._getFileInfoById(e.fileId)).getOffsetIndex(e.rowGroupIndex,e.columnIndex)}async queryFeatures(e,t){const s=await P(e,null,this._queryEngineParams.spatialReference);if(this._validateQuery(s),be(s)||(s.resultRecordCount=s.resultRecordCount?Math.min(s.resultRecordCount,te):te,s.resultOffset=s.resultOffset??0),s.outStatistics)return this._queryStatistics(s,t);s.returnDistinctValues&&(s.returnGeometry=void 0);return(await this._enqueueQuery(s,t)).createQueryResponse()}async queryFeatureCount(e,t){const s=await P(e,null,this._queryEngineParams.spatialReference);if(this._validateQuery(s),!de(s))return this._getFeatureCount();s.outFields=void 0,s.returnGeometry=void 0;return(await this._enqueueQuery(s,t)).createQueryResponseForCount()}async queryObjectIds(e,t){const s=await P(e,null,this._queryEngineParams.spatialReference);if(this._validateQuery(s),!de(s))return Array.from({length:await this._getFeatureCount()},(e,t)=>t);s.resultRecordCount=s.resultRecordCount?Math.min(s.resultRecordCount,8e3):8e3,s.resultOffset=s.resultOffset??0,s.returnGeometry=void 0,s.outFields=void 0;return(await this._enqueueQuery(s,t)).items.map(e=>e.getObjectId())}async queryAttributeBins(e,t={}){throw new r("parquet:unsupported","queryAttributeBins not supported.")}async queryExtent(e,t){const r=await P(e,null,this._queryEngineParams.spatialReference);if(this._validateQuery(r),this._fullExtent&&!de(r))return{count:await this._getFeatureCount(),extent:this._fullExtent};const i=s(this._metadata.spatialReference);r.returnGeometry=!0,r.outFields=void 0;const a=d(f(),y),n=f(),o=await this._enqueueQuery(r,t);let u=0;for(const s of o.items)s.getBounds(n)&&(h(a,n),u+=1);return{count:u,extent:R(a,i,r.outSR?s(r.outSR):i.toJSON(),i,!1)}}async queryStream(e,t){if(!t.signal)throw new Error("InternalError: AbortSignal must be passed");const s=await this._getCandidateFiles(e),r=new ae(s,async(t,s)=>{const r=await t.file,i=await this._createParquetDisplayQuery(r,t.id,e);return r.executeQuery(i,te,s)}),i=this._streamIdCounter++,a=n(t.signal,e=>{const t=this._streams.get(i);null!=t&&(t.handle.remove(),this._streams.delete(i))});return this._streams.set(i,{stream:r,handle:a}),i}async getStreamNext(e,t){if(!t.signal)throw new Error("InternalError: AbortSignal must be passed");const s=this._streams.get(e);if(!s)return{result:null};const r=await s.stream.next(t.signal);if(null==r)return s.handle.remove(),this._streams.delete(e),{result:null};const i=r.chunk.serialize().buffer,a={fileId:r.fileId,buffer:i};return i instanceof ArrayBuffer?{result:a,transferList:[i]}:{result:a}}async getStreamNextFeatures(e,t){const{result:s}=await this.getStreamNext(e,t);if(null==s)return null;const r=(await W()).ParquetChunk.deserialize(new Uint8Array(s.buffer)),i=new Y(this._metadata,this._indexMap,r,s.fileId),a=[];for(;i.next();){const e=I(i.readGeometryWorldSpace(),i.geometryType,i.hasZ,i.hasM),t=i.readAttributes();a.push({attributes:t,geometry:e})}return{features:a}}async createPatch(e,t,s,r,i){if(!i.signal)throw new Error("InternalError: AbortSignal must be passed");const a=await this._getFileInfoById(e),n=await a.file;return(await n.createChunkPatch(t,s,r,i.signal)).serialize().buffer}async _updateProvider(e){const t=this._provider;this._handles.removeAll(),this._provider=e,this._handles.add([e.events.on("rangeRead",e=>{this._source.onRangeRead(e)}),e.events.on("sourceChanged",async()=>{await this.reload(this._loadParameters),await this._source.onSourceChange()})]),await(t?.destroy())}async _getCandidateFiles(e){const t=await this._provider.getFiles(),s=await this._getSpatialFilePruning(e);if(null==s)return t;const r=t.filter(e=>this._mayIncludeFileForSpatialPruning(e,s));return"xz"===s.type?ve(r,s):r}async _queryStatistics(e,t){const s=await P({...e},null,this._queryEngineParams.spatialReference);if(s.returnGeometry=void 0,me(s,this._fieldsIndex)){const e=await this._getStatisticsFromFiles(s);if(e)return e}return(await this._enqueueQuery(s,t)).createQueryResponse()}async _getStatisticsFromFiles(e){const t=await this._provider.getFiles(),s={},r=[];for(const i of e.outStatistics??[]){const e=_e(i,t);if(!e.available)return null;s[i.outStatisticFieldName]=e.value,r.push(ge(i,this._fieldsIndex))}return{fields:r,features:[{attributes:s}]}}async _getSpatialFilePruning(e){if("tile"!==e.type&&("arcade"!==e.type||null==e.extent))return null;const t=this._displayOptimization,s=t?.index;if(null==s)return null;const r=e.outSpatialReference.wkid;if(null==s.wkid||null==r)return null;const i=s.wkid,a=await W();switch(s.type){case"xz":return{type:"xz",fieldName:U(s.code),intersects:(t,n)=>a.queryIntersectsXZStatistics(s.fullExtent,e.extent,r,i,s.maxLevel,t,n)};case"z":return{type:"xy",xFieldName:U(s.xColumn),yFieldName:U(s.yColumn),intersects:(t,s,n,o)=>a.queryIntersectsXYStatistics(e.extent,r,i,t,s,n,o)}}}_mayIncludeFileForSpatialPruning(e,t){switch(t.type){case"xz":{const s=Ie(e,t);return"null-only"!==s?.type&&("bounds"!==s?.type||t.intersects(s.minValue,s.maxValue))}case"xy":{const s=e.statistics.statistics.get(t.xFieldName),r=e.statistics.statistics.get(t.yFieldName);return"null-only"!==s?.type&&"null-only"!==r?.type&&("bounds"!==s?.type||"bounds"!==r?.type||t.intersects(s.minValue,s.maxValue,r.minValue,r.maxValue))}}}async _tryDeriveParquetFullExtent(s){if(!s.spatialReference)return null;if(null==this._fullExtent&&"location"===s.geometryEncoding?.type){const i=await this._provider.getFiles(),{xField:a,yField:n}=s.geometryEncoding,o=d(f(),y);let u=!1;for(const s of i){const i=await s.file;for(const s of i.rowGroups()){const i={stack:[],error:void 0,hasError:!1};try{const t=e(i,s.columnDescriptorForAttribute(a),!1),r=e(i,s.columnDescriptorForAttribute(n),!1),l=M(t),c=M(r);if("bounds"===l?.type&&"bounds"===c?.type){const e=[l.minValue,c.minValue,l.maxValue,c.maxValue];m(o,e),u=!0}s.free()}catch(r){i.error=r,i.hasError=!0}finally{t(i)}}}return u?{xmin:o[0],ymin:o[1],xmax:o[3],ymax:o[4],spatialReference:s.spatialReference?.toJSON()}:null}return null}async _getFileInfoById(e){const t=await this._provider.getFiles();for(const s of t)if(s.id===e)return s;throw new Error(`InternalError: File ${e} does not exist`)}async _getFileStatistics(){return{featureCount:await this._getFeatureCount(),byteLength:await this._getByteLength()}}async _getFile(e){return(await this._getFileInfoById(e)).file}async _createParquetQuery(e,t,s,r,i){const a=(await W()).Query.new();null!=s&&a.setPreFilterStart(s),null!=r&&a.setPreFilterCount(r),null!=i&&a.setPostFilterCount(i);const n=await this._getRequiredFields(e);a.setOutFields(n),(e.geometry||e.returnGeometry)&&a.setReturnGeometry(!0),a.setReturnZ(!!e.returnZ),a.setReturnM(!!e.returnM);const o=this._tryGetGeneralizedGeometryResolution(e);null!=o&&a.setSourceResolution(o);const u=e.geometry?.spatialReference??this._queryEngineParams.spatialReference,l=u.wkid;if(e.geometry&&(F(u)||S(u))){const t=g(w(),_);for(const s of q(e.geometry))x(t,s);a.setOutSpatialReference(l),a.setExtent({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]})}if(e.where){const{id:s,file:r}=t;await this._setWhereClause(a,await r,s,e.where)}return a}async _createParquetDisplayQuery(e,t,s){const r=(await W()).Query.new();if("tile"===s.type){r.setExtent(s.extent),r.setQuantizationTransform(s.transform);const e=this._sourceResolution(s.resolution,s.outSpatialReference);null!=e&&r.setSourceResolution(e)}else"arcade"===s.type&&null!=s.extent&&r.setExtent(s.extent);return r.setOutFields(s.outFields.filter(e=>null!=this._indexMap[e])),r.setOutSpatialReference(s.outSpatialReference.wkid),r.setReturnGeometry(s.returnGeometry),r.setReturnZ(s.returnZ),r.setReturnM(s.returnM),s.where&&await this._setWhereClause(r,e,t,s.where),r}async _getFeatureCount(){return(await this._provider.getFiles()).map(e=>e.statistics.rowCount).reduce((e,t)=>e+t,0)}async _getByteLength(){return(await this._provider.getFiles()).map(e=>e.statistics.byteSize).reduce((e,t)=>e+t,0)}_validateQuery(e){if(!this._capabilities.query.supportsStatistics&&e.outStatistics)throw new r("parquet:unsupported","Statistics queries are not supported",{query:e});if(!this._capabilities.query.supportsOrderBy&&e.orderByFields?.length)throw new r("parquet:unsupported","Queries using orderBy are not supported",{query:e});if(!this._capabilities.query.supportsDistinct&&e.returnDistinctValues)throw new r("parquet:unsupported","Queries using returnDistinctValues are not supported",{query:e})}async _setWhereClause(e,t,s,i){const a=this._indexMap,n=this._fieldsIndex,o={getAttribute(e,r){const i=a[r];if(null==i){const t=n.get(r);if("__OBJECTID"===t?.name){const t=e.row+e.rowGroupStart;return A(s,t)}return null}const o=n.get(r);return Z(t,e.rowGroup,e.row,i,o.type)}},u=await l(i,this._fieldsIndex);if(!u.isStandardized)throw new r("sql-parse-error","expression is not standardized");const c=(e,t,s)=>u.testFeatureCompiled({rowGroup:e,row:t,rowGroupStart:s},o,null),p=u.fieldNames.map(e=>n.get(e)).filter(e=>e&&null!=this._indexMap[e?.name]);e.setWhere(i),e.setWhereEvaluator(c),e.setWhereFields(p.map(e=>e.name))}async*_streamFeatures(e,t,s,r,i){const a=await this._provider.getFiles();let n=0;for(const o of a){const a=n,u=n+o.statistics.rowCount;if(n+=o.statistics.rowCount,null!=t&&t>=u)continue;const l=null!=t?Math.max(t-a,0):null;let c=s;if(null!=s){const e=t??0,r=e+s,i=Math.max(e,a),n=Math.min(r,u);c=Math.max(n-i,0)}if(0===c)continue;const p=await this._createParquetQuery(e,o,l,c,r),d=await o.file,f=await d.executeQuery(p,te),h=async()=>{const e=await f.next(i);if(!e)return null;const t=new Y(this._metadata,this._indexMap,e,o.id);return Se([new L(t,null,0,!1)],this._queryEngineParams)};let m=await h();for(;null!=m;)yield m,m=await h()}}async _queryFeaturesWithQueryEnginePagination(e,t){const s=[],r=this._streamFeatures(e,null,null,null,t);let i=await r.next();for(;!i.done;){const a=await i.value.executeQueryForOpaqueFeatures({...e,where:void 0},t);for(const e of a)s.push(e);i=await r.next()}return s}async _queryFeaturesWithUpfrontPagination(e,t){let s,r,i,a=e.resultOffset??0,n=e.resultRecordCount??te;fe(e)?he(e)||(i=a+n):(a&&(s=a,a=0),r=e.resultRecordCount);const o=[],u=this._streamFeatures(e,s,r,i,t);let l=await u.next();for(;!l.done&&n>0;){const s=await l.value.executeQueryForOpaqueFeatures({...e,where:void 0},t);for(const e of s)if(a>0)a--;else if(o.push(e),--n<=0)return o;l=await u.next()}return o}_enqueueQuery(e,t){return this._queue.push(e,t)}async _executeQuery(e,t){if(e.objectIds?.length){const s=new Map;for(const t of e.objectIds){const e=Q(t),r=T(t);let i=s.get(e);i||(i=[],s.set(e,i)),i.push(r)}const r=[];for(const[i,a]of s.entries()){const s=await this._executeFileIdQuery(e,i,a,t);for(const e of s)r.push(e)}return new E(r,e,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,hasM:this._hasM,hasZ:this._hasZ,featureAdapter:$,featureIdInfo:this._queryEngineParams.featureIdInfo})}if("1=1"===e.where&&(e.where=null),e.resultOffset??=0,e.resultRecordCount??=await this._getFeatureCount(),e.resultRecordCount>se){if(!(this._displayOptimization&&e.geometry))throw new r("parquet:cannot-execute-query","Unable to execute query, dataset is too large.")}const s=!!e.orderByFields?.length||!!e.outStatistics?.length||!!e.returnDistinctValues,i=s?await this._queryFeaturesWithQueryEnginePagination(e,t):await this._queryFeaturesWithUpfrontPagination(e,t);return s||(e.resultOffset=0),new E(i,e,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,hasM:this._hasM,hasZ:this._hasZ,featureAdapter:$,featureIdInfo:this._queryEngineParams.featureIdInfo})}async _executeFileIdQuery(e,t,s,r){const i=await this._getRequiredFields(e),a=(await W()).Query.new();a.setOutFields(i),a.setReturnGeometry(!!e.returnGeometry),a.setReturnZ(!!e.returnZ),a.setReturnM(!!e.returnM),a.setIds(new Uint32Array(s));const n=await this._getFile(t),o=await n.executeQuery(a,te,r);let u=await o.next(r),l=0;const c=[];for(;null!=u;){const e=new Y(this._metadata,this._indexMap,u,t),s=new L(e,null,l++,!1);c.push(s),u=await o.next(r)}return Se(c,this._queryEngineParams).executeQueryForOpaqueFeatures(e,r)}async _getRequiredFields(e){const t=new Set;if(e.outStatistics)for(const s of v(this._fieldsIndex,e.outStatistics,e.groupByFieldsForStatistics))t.add(s);else if(e.outFields)for(const s of e.outFields)t.add(s);return(t.has("*")?this._fieldsIndex.fields.map(e=>e.name):Array.from(t)).filter(e=>null!=this._indexMap[e])}_tryGetGeneralizedGeometryResolution(e){if(!this._displayOptimization)return null;const t=e.outSR??this._queryEngineParams.spatialReference;if(!F(t)&&!S(t))return null;const s=e.quantizationParameters?.tolerance??e.maxAllowableOffset;return s?this._sourceResolution(s,t):null}_sourceResolution(e,t){const s=this._queryEngineParams.spatialReference,r=e*(c(t)/c(s));return!Number.isFinite(r)||r<=0?null:r}}function le(e){switch(e){case"fullText":case"having":case"timeExtent":case"historicMoment":case"aggregateIds":case"uniqueIds":case"gdbVersion":case"objectIds":case"where":case"geometry":case"resultOffset":case"resultRecordCount":return!0;default:return!1}}function ce(e){switch(e){case"fullText":case"having":case"timeExtent":case"historicMoment":case"aggregateIds":case"uniqueIds":case"gdbVersion":case"objectIds":case"where":case"geometry":return!0;default:return!1}}function pe(e){switch(e){case"fullText":case"having":case"timeExtent":return!0;case"historicMoment":case"aggregateIds":case"uniqueIds":case"gdbVersion":case"objectIds":case"where":case"resultOffset":case"geometry":case"resultRecordCount":return!1}return!1}function de(e){for(const t in e){const s=t;if(le(s)&&null!==e[s])return!0}return!1}function fe(e){for(const t in e){const s=t;if(ce(s)&&null!==e[s])return!0}return!1}function he(e){for(const t in e){const s=t;if(pe(s)&&null!==e[s])return!0}return!1}function me(e,t){return!!e.outStatistics?.length&&!de(e)&&!e.groupByFieldsForStatistics?.length&&!e.orderByFields?.length&&!e.returnDistinctValues&&!e.returnAggIds&&e.outStatistics.every(e=>ye(e,t))}function ye(e,t){switch(e.statisticType){case"count":return"1"===e.onStatisticField||null!=t.get(e.onStatisticField);case"min":case"max":{const s=t.get(e.onStatisticField);return null!=s&&N(s)}default:return!1}}function ge(e,t){const s="exceedslimit"!==e.statisticType?t.get(e.onStatisticField):null,r="min"!==e.statisticType&&"max"!==e.statisticType||"esriFieldTypeDate"!==s?.type?"esriFieldTypeDouble":s.type;return{name:e.outStatisticFieldName,alias:e.outStatisticFieldName,type:r}}function _e(e,t){switch(e.statisticType){case"count":return we(e,t);case"min":return xe(e,t,Math.min);case"max":return xe(e,t,Math.max);default:return{available:!1,value:null}}}function we(e,t){if("count"!==e.statisticType)return{available:!1,value:null};if("1"===e.onStatisticField)return{available:!0,value:t.reduce((e,t)=>e+t.statistics.rowCount,0)};let s=0;for(const r of t){const t=r.statistics.statistics.get(e.onStatisticField);if(null==t||null==t.nullCount)return{available:!1,value:null};s+=r.statistics.rowCount-t.nullCount}return{available:!0,value:s}}function xe(e,t,s){if("min"!==e.statisticType&&"max"!==e.statisticType)return{available:!1,value:null};let r=null;const i="min"===e.statisticType?"minValue":"maxValue";for(const a of t){const t=a.statistics.statistics.get(e.onStatisticField);if(null==t)return{available:!1,value:null};switch(t.type){case"null-only":continue;case"unknown":return{available:!1,value:null};case"bounds":{const e=Fe(t[i]);if(null==e)return{available:!1,value:null};r=null==r?e:s(r,e);break}}}return{available:!0,value:r}}function Fe(e){return"number"==typeof e&&Number.isFinite(e)?e:null}function Se(e,t){const s=new H;for(const r of e)s.insert(r);return new b({...t,featureStore:s})}function Ie(e,t){return e.statistics.statistics.get(t.fieldName)??null}function ve(e,t){return e.slice().sort((e,s)=>{const r=Re(e,t),i=Re(s,t);return r===i?0:r<i?-1:1})}function Re(e,t){const s=Ie(e,t);return"bounds"!==s?.type?Number.POSITIVE_INFINITY:s.maxValue-s.minValue}function qe(e,t,s){const r=e?.featureCount;let i=!1;return null!=r&&r<has("parquetlayer-full-query-feature-count")&&(i=!0),{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:s,supportsTrueCurve:!1,supportsZ:t},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},query:{...C,maxRecordCount:te,supportsOrderBy:i,supportsDistinct:!0,supportsStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1}},queryAttributeBins:{supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportsStackBy:!1,supportsSplitBy:!1,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsTrueCurveUpdate:!1,supportsTrueCurveUpdateByTrueCurveClientsOnly:!0,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUploadWithItemId:!1,supportsUpdateWithoutM:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}function be(e){return!!(e.objectIds?.length||e.outStatistics||e.orderByFields?.length||e.returnDistinctValues)}export{ue as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t}from"tslib";import{ClonableMixin as e}from"../../core/Clonable.js";import{IdentifiableMixin as r}from"../../core/Identifiable.js";import{Loadable as o}from"../../core/Loadable.js";import{property as i,subclass as p}from"../../core/accessorSupport/decorators.js";import n from"../../graphic/AnnotationFeatureGraphicOrigin.js";let a=class extends(e(r(o))){constructor(t){super(t),this.parent=null,this.subtypeCode=null,this.type="annotation-feature-sublayer",this.visible=!0}get graphicOrigin(){return new n(this.parent,this)}get title(){return this.parent?.subtypes?.find(t=>t.code===this.subtypeCode)?.name??null}};t([i({readOnly:!0,clonable:!1})],a.prototype,"graphicOrigin",null),t([i({clonable:!1})],a.prototype,"parent",void 0),t([i({type:Number})],a.prototype,"subtypeCode",void 0),t([i({readOnly:!0})],a.prototype,"title",null),t([i({readOnly:!0})],a.prototype,"type",void 0),t([i({type:Boolean})],a.prototype,"visible",void 0),a=t([p("esri.layers.support.AnnotationFeatureSublayer")],a);export{a as default};
2
+ import{__decorate as t}from"tslib";import{ClonableMixin as e}from"../../core/Clonable.js";import{IdentifiableMixin as o}from"../../core/Identifiable.js";import{Loadable as r}from"../../core/Loadable.js";import{property as i,subclass as p}from"../../core/accessorSupport/decorators.js";import a from"../../graphic/AnnotationFeatureGraphicOrigin.js";let n=class extends(e(o(r))){constructor(t){super(t),this.maxScale=0,this.minScale=0,this.parent=null,this.subtypeCode=null,this.type="annotation-feature-sublayer",this.visible=!0}get graphicOrigin(){return new a(this.parent,this)}get title(){return this.parent?.subtypes?.find(t=>t.code===this.subtypeCode)?.name??null}};t([i({readOnly:!0,clonable:!1})],n.prototype,"graphicOrigin",null),t([i()],n.prototype,"maxScale",void 0),t([i()],n.prototype,"minScale",void 0),t([i({clonable:!1})],n.prototype,"parent",void 0),t([i({type:Number})],n.prototype,"subtypeCode",void 0),t([i({readOnly:!0})],n.prototype,"title",null),t([i({readOnly:!0})],n.prototype,"type",void 0),t([i({type:Boolean})],n.prototype,"visible",void 0),n=t([p("esri.layers.support.AnnotationFeatureSublayer")],n);export{n as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import e from"../../core/Error.js";import n from"../../core/Logger.js";import{latitudeFieldNames as t,longitudeFieldNames as o}from"../../layers/support/locationUtils.js";import{loadParquetModule as r}from"./loadParquetModule.js";const i=()=>n.getLogger("esri.layers.ParquetLayer"),l=new Set(["uncompressed","snappy","gzip"]),u=new Set(["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong"]);function s(n,t){switch(t){case"esriGeometryPoint":return n.GeometryType.Point;case"esriGeometryPolygon":case"polygon":return n.GeometryType.Polygon;case"esriGeometryPolyline":case"polyline":return n.GeometryType.Polyline;case"esriGeometryMultipoint":case"multipoint":return n.GeometryType.Multipoint;default:throw new e("parquet",`Found unexpected GeometryType: ${t}`)}}function a(e,n){const t=n.encoding,o=s(e,n.geometryType),r=n.spatialReference.wkid;if(null==r)throw new Error("InternalError: Wkid must be defined.");switch(t.type){case"wkb":return e.GeometryField.fromWkb(t.field,r,o);case"location":{const{yField:n,xField:i}=t;return e.GeometryField.fromLocation(n,i,r,o)}}}function m(e,n){const t=e.GeometryInfo.new();n.geometry&&t.setGeometry(a(e,n.geometry));const o=n.displayOptimization;if(o){const{index:n}=o;if("z"===n.type){const o=e.DisplayOptimizationZBuilder.new();o.setCodeField(f(n.code)),o.setXColumn(f(n.xColumn)),o.setYColumn(f(n.yColumn)),null!=n.zColumn&&o.setZColumn(f(n.zColumn)),null!=n.mColumn&&o.setMColumn(f(n.mColumn)),o.setCooordinatePrecision(n.coordinatePrecision),o.setFullExtent(n.fullExtent),o.setSpatialReference(n.wkid,null==n.wkid?n.wkt:void 0),o.setHasZ(!!n.zColumn),o.setHasM(!!n.mColumn),n.zColumn&&o.setZColumn(f(n.zColumn)),n.mColumn&&o.setMColumn(f(n.mColumn)),t.setOptmizationZ(o)}if("xz"===n.type){const o=s(e,n.geometryType),r=e.DisplayOptimizationXZBuilder.new();r.setCodeField(f(n.code)),r.setEncoding(n.encoding),r.setFullExtent(n.fullExtent),r.setGeometryType(o),r.setSpatialReference(n.wkid,null==n.wkid?n.wkt:void 0),r.setMaxLevel(n.maxLevel),r.setHasZ(n.hasZ??!1),r.setHasM(n.hasM??!1);for(const t of n.levels??[]){const n=new Float64Array(t.transform.translate),o=new Float64Array(t.transform.scale),i=f(t.column);r.addLevel(e.MultiscaleGeometryField.new(t.level,t.resolution,i,n,o))}t.setOptmizationXZ(r)}}return t}async function c(n,t){const o=await r(),i=t.geometryInfo?m(o,t.geometryInfo):null,l=t.provider.fetchRange.bind(t.provider),u=t.provider.fetchLength.bind(t.provider);try{return await o.ParquetFile.fromUrl(n,l,u,i)}catch(s){throw new e("parquet","Failed to parse file",{error:s})}}function p(e){const n=e.keyValueMetadata("geo");return null!=n?JSON.parse(n):null}function y(n){if(n.keyValueMetadata("esri"))throw new e("parquet:unsupported","File was created using an unsupported experimental display index. Please regenerate the file.");const t=n.keyValueMetadata("geodisplay");if(null!=t){return{present:!0,optimization:d({index:JSON.parse(t)})}}const o=n.keyValueMetadata("org.apache.spark.sql.parquet.row.metadata");if(null!=o){const e=JSON.parse(o);for(const n of e.fields)if(null!=n.metadata&&w(n.metadata)){if(!h(n.metadata))return i().warn("parquet:protocol-violation","Ignoring display optimization, found invalid column path",{index:n.metadata}),{present:!0,optimization:null};const e=g(n.metadata,n.name);return null==e?(i().warn("parquet:protocol-violation","Ignoring display optimization, Spark display column paths must be non-empty strings",{index:n.metadata}),{present:!0,optimization:null}):{present:!0,optimization:d({index:e})}}}return{present:!1,optimization:null}}function d(e){if(!h(e.index))return i().warn("parquet:protocol-violation","Ignoring display optimization, found invalid column path",{index:e.index}),null;if("xz"===e.index.type&&(e.index.geometryType=E(e.index.geometryType),"esri-pbf"===e.index.encoding&&(e.index.encoding="esriPBF"),"esriPBF"!==e.index.encoding))return i().warn("parquet:unsupported",`Encoding for display index must be of type esriPBF, but found ${e.index.encoding}`),null;const{xmin:n,ymin:t,xmax:o,ymax:r}=e.index.fullExtent;return Number.isFinite(n)&&Number.isFinite(t)&&Number.isFinite(o)&&Number.isFinite(r)?e:(i().warn("parquet:protocol-violation","Ignoring display optimization, found bad extent",{index:e.index}),null)}function f(e){return Array.isArray(e)?e.join("."):e}function g(e,n){if("z"===e.type){const t=x(e.code,n),o=x(e.xColumn,n),r=x(e.yColumn,n),i=null==e.zColumn?e.zColumn:x(e.zColumn,n),l=null==e.mColumn?e.mColumn:x(e.mColumn,n);return null==t||null==o||null==r||null===i||null===l?null:{...e,code:t,xColumn:o,yColumn:r,...null==i?{}:{zColumn:i},...null==l?{}:{mColumn:l}}}const t=x(e.code,n),o=[];for(const r of e.levels){const e=x(r.column,n);if(null==e)return null;o.push({...r,column:e})}return null==t?null:{...e,code:t,levels:o}}function x(e,n){return"string"==typeof e&&e.length>0?[n,e]:null}function w(e){return"object"==typeof e&&null!=e&&"type"in e&&("z"===e.type||"xz"===e.type)}function h(e){return"z"===e.type?C(e.code)&&C(e.xColumn)&&C(e.yColumn)&&(null==e.zColumn||C(e.zColumn))&&(null==e.mColumn||C(e.mColumn)):C(e.code)&&Array.isArray(e.levels)&&e.levels.every(e=>"object"==typeof e&&null!=e&&"column"in e&&C(e.column))}function C(e){return"string"==typeof e&&e.length>0||Array.isArray(e)&&2===e.length&&e.every(e=>"string"==typeof e&&e.length>0)}function z(e){if(null==e)return null;const n=e.ordering,t=e.lod;if(null==n&&null==t)return null;if("xz"!==n?.type||null==t||n.geometry_column!==e.primary_column||t.geometry_column!==e.primary_column||n.geometry_column!==t.geometry_column||20!==n.max_level||!G(n.extent)||"pbf"!==t.encoding)return M(e,"ordering and lod must form a valid primary-column XZ pair");const o=e.columns[e.primary_column],r=v(o);if(null==r||!F(t.orientation,r.geometryType))return M(e,"geometry type, dimensions, or LOD orientation is invalid");const i=k(t.levels),l=R(o)?.wkid;if(null==i||null==l)return M(e,"LOD levels or spatial reference is invalid");const[u,s,a,m]=n.extent;return{index:{type:"xz",code:"geokey",wkid:l,wkt:null,encoding:"esriPBF",fullExtent:{xmin:u,ymin:s,xmax:a,ymax:m},geometryType:r.geometryType,maxLevel:n.max_level,hasZ:r.hasZ,hasM:r.hasM,levels:i}}}function M(e,n){return i().warn("parquet:protocol-violation",`Ignoring GeoParquet ordering and LOD extensions: ${n}`,{lod:e.lod,ordering:e.ordering}),null}function v(e){if(null==e||0===e.geometry_types.length)return null;let n,t;for(const o of e.geometry_types){const e=/^(LineString|MultiLineString|Polygon|MultiPolygon)(?: (Z|M|ZM))?$/.exec(o);if(null==e)return null;const r="LineString"===e[1]||"MultiLineString"===e[1]?"polyline":"polygon";if(null!=n&&n!==r||null!=t&&t!==(e[2]??""))return null;n=r,t=e[2]??""}return null==n||null==t?null:{geometryType:n,hasZ:"Z"===t||"ZM"===t,hasM:"M"===t||"ZM"===t}}function F(e,n){return"polygon"===n?"clockwise"===e:null==e}function k(e){if(!Array.isArray(e)||0===e.length)return null;const n=new Set,t=e.slice().sort((e,n)=>n.resolution-e.resolution),o=[];for(const[r,i]of t.entries()){if(!P(i.column)||!Number.isFinite(i.resolution)||i.resolution<=0||n.has(i.resolution)||!b(i.transform))return null;n.add(i.resolution),o.push({column:i.column,level:r,resolution:i.resolution,transform:i.transform})}return o}function P(e){return Array.isArray(e)&&2===e.length&&"geolod"===e[0]&&"string"==typeof e[1]&&e[1].length>0}function b(e){return Z(e?.scale,!0)&&Z(e?.translate,!1)}function Z(e,n){return Array.isArray(e)&&4===e.length&&e.every(e=>"number"==typeof e&&Number.isFinite(e)&&(!n||e>0))}function G(e){return Z(e,!1)&&e[0]<e[2]&&e[1]<e[3]}function T(e){q(e);const n=L(e),t=p(e),o=y(e),r=o.present?o.optimization:z(t),i=S(t,n),{hasZ:l,hasM:u}=A(t,r);let s,a;if(i)switch(i.type){case"location":a={wkid:4326},s="esriGeometryPoint";break;case"wkb":if(t){const e=t.primary_column,n=t.columns[e];s=N(n),a=R(n)}}if(r){const e=r.index;!a&&e.wkid&&(a={wkid:e.wkid}),s||(s="z"===e.type?"esriGeometryPoint":I(e.geometryType))}return{geoMetadata:t,displayOptimization:r,hasZ:l,hasM:u,geometryEncoding:i,geometryInfo:a&&s?{geometry:i?{geometryType:s,spatialReference:a,encoding:i}:null,displayOptimization:r}:null,geometryType:s,spatialReference:a,extent:$(t,r,a),fields:n}}function q(n){for(const t of n.compressionCodecs())if(!l.has(t))throw new e("parquet:unsupported",`Compression codec ${t} is unsupported. Must be of type ${Array.from(l).join(",")}`)}function L(e){return e.fields(!1).map(e=>({name:e.name,alias:e.name,type:e.type}))}function S(e,n){if(null!=e){const n=e.primary_column;return{type:"wkb",field:n,orientation:"counterclockwise"===e.columns[n].orientation?"counter-clockwise":null}}const t=_(n.filter(e=>u.has(e.type)).map(e=>e.name));return t.latitudeFieldName&&t.longitudeFieldName?{type:"location",xField:t.longitudeFieldName,yField:t.latitudeFieldName}:null}function _(e){const n=e.map(e=>e.toLowerCase());return{longitudeFieldName:e[n.indexOf(o.find(e=>n.includes(e)))],latitudeFieldName:e[n.indexOf(t.find(e=>n.includes(e)))]}}function N(n){const{geometry_types:t}=n,o=new Set;for(const e of t){const n=O(e);n&&o.add(n)}if(o.size>1)throw new e("parquet:unsupported","Parquet mixed geometry types are not supported",{geometryTypes:o});return 1===o.size?o.values().next().value:void 0}function O(e){switch(e.replace(/ (?:Z|M|ZM)$/u,"")){case"Point":return"esriGeometryPoint";case"Polygon":case"MultiPolygon":return"esriGeometryPolygon";case"LineString":case"MultiLineString":return"esriGeometryPolyline";case"MultiPoint":return"esriGeometryMultipoint";default:return null}}function A(e,n){const t=n?.index;if("z"===t?.type)return{hasZ:null!=t.zColumn,hasM:null!=t.mColumn};if("xz"===t?.type)return{hasZ:!0===t.hasZ,hasM:!0===t.hasM};const o=e?.columns[e.primary_column]?.geometry_types??[];return{hasZ:o.some(e=>/ (?:Z|ZM)$/u.test(e)),hasM:o.some(e=>/ (?:M|ZM)$/u.test(e))}}function I(e){switch(e){case"polygon":return"esriGeometryPolygon";case"polyline":return"esriGeometryPolyline";case"multipoint":return"esriGeometryMultipoint"}}function E(n){switch(n.toLowerCase()){case"polygon":return"polygon";case"polyline":return"polyline";case"multipoint":return"multipoint";default:throw new e("parquet:unsupported",`Geometry type ${n} is unsupported`)}}function R(e){const n=e.crs?.id?.code;return"number"==typeof n?{wkid:n}:"OGC"===e.crs?.id?.authority&&"CRS84"===n?{wkid:4326}:void 0}function $(e,n,t){if(!t)return null;const o=e?e.columns[e.primary_column]:null,r=o?.bbox;if(r?.every(e=>Number.isFinite(e)))switch(r.length){case 4:return{xmin:r[0],ymin:r[1],xmax:r[2],ymax:r[3],spatialReference:t};case 6:return{xmin:r[0],ymin:r[1],xmax:r[3],ymax:r[4],spatialReference:t};default:i().warn("parquet:protocol-violation","Invalid Geoparquet file. BoundingBox size must be 4 or 6.",{geoMetadata:e})}const l=n?.index.fullExtent;return l?{...l,spatialReference:t}:null}export{c as createParquetFile,f as normalizeColumnPath,p as readGeoMetadata,T as readMetadata};
2
+ import e from"../../core/Error.js";import n from"../../core/Logger.js";import{latitudeFieldNames as t,longitudeFieldNames as o}from"../../layers/support/locationUtils.js";import{loadParquetModule as r}from"./loadParquetModule.js";const i=()=>n.getLogger("esri.layers.ParquetLayer"),l=864e5,u=new Set(["uncompressed","snappy","gzip"]),a=new TextDecoder,s=new Set(["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong"]);function m(n,t){switch(t){case"esriGeometryPoint":return n.GeometryType.Point;case"esriGeometryPolygon":case"polygon":return n.GeometryType.Polygon;case"esriGeometryPolyline":case"polyline":return n.GeometryType.Polyline;case"esriGeometryMultipoint":case"multipoint":return n.GeometryType.Multipoint;default:throw new e("parquet",`Found unexpected GeometryType: ${t}`)}}function c(e,n){const t=n.encoding,o=m(e,n.geometryType),r=n.spatialReference.wkid;if(null==r)throw new Error("InternalError: Wkid must be defined.");switch(t.type){case"wkb":return e.GeometryField.fromWkb(t.field,r,o);case"location":{const{yField:n,xField:i}=t;return e.GeometryField.fromLocation(n,i,r,o)}}}function p(e,n){const t=e.GeometryInfo.new();n.geometry&&t.setGeometry(c(e,n.geometry));const o=n.displayOptimization;if(o){const{index:n}=o;if("z"===n.type){const o=e.DisplayOptimizationZBuilder.new();o.setCodeField(x(n.code)),o.setXColumn(x(n.xColumn)),o.setYColumn(x(n.yColumn)),null!=n.zColumn&&o.setZColumn(x(n.zColumn)),null!=n.mColumn&&o.setMColumn(x(n.mColumn)),o.setCooordinatePrecision(n.coordinatePrecision),o.setFullExtent(n.fullExtent),o.setSpatialReference(n.wkid,null==n.wkid?n.wkt:void 0),o.setHasZ(!!n.zColumn),o.setHasM(!!n.mColumn),n.zColumn&&o.setZColumn(x(n.zColumn)),n.mColumn&&o.setMColumn(x(n.mColumn)),t.setOptmizationZ(o)}if("xz"===n.type){const o=m(e,n.geometryType),r=e.DisplayOptimizationXZBuilder.new();r.setCodeField(x(n.code)),r.setEncoding(n.encoding),r.setFullExtent(n.fullExtent),r.setGeometryType(o),r.setSpatialReference(n.wkid,null==n.wkid?n.wkt:void 0),r.setMaxLevel(n.maxLevel),r.setHasZ(n.hasZ??!1),r.setHasM(n.hasM??!1);for(const t of n.levels??[]){const n=new Float64Array(t.transform.translate),o=new Float64Array(t.transform.scale),i=x(t.column);r.addLevel(e.MultiscaleGeometryField.new(t.level,t.resolution,i,n,o))}t.setOptmizationXZ(r)}}return t}async function y(n,t){const o=await r(),i=t.geometryInfo?p(o,t.geometryInfo):null,l=t.provider.fetchRange.bind(t.provider),u=t.provider.fetchLength.bind(t.provider);try{return await o.ParquetFile.fromUrl(n,l,u,i)}catch(a){throw new e("parquet","Failed to parse file",{error:a})}}function d(e){const n=e.keyValueMetadata("geo");return null!=n?JSON.parse(n):null}function f(n){if(n.keyValueMetadata("esri"))throw new e("parquet:unsupported","File was created using an unsupported experimental display index. Please regenerate the file.");const t=n.keyValueMetadata("geodisplay");if(null!=t){return{present:!0,optimization:g({index:JSON.parse(t)})}}const o=n.keyValueMetadata("org.apache.spark.sql.parquet.row.metadata");if(null!=o){const e=JSON.parse(o);for(const n of e.fields)if(null!=n.metadata&&z(n.metadata)){if(!F(n.metadata))return i().warn("parquet:protocol-violation","Ignoring display optimization, found invalid column path",{index:n.metadata}),{present:!0,optimization:null};const e=C(n.metadata,n.name);return null==e?(i().warn("parquet:protocol-violation","Ignoring display optimization, Spark display column paths must be non-empty strings",{index:n.metadata}),{present:!0,optimization:null}):{present:!0,optimization:g({index:e})}}}return{present:!1,optimization:null}}function g(e){if(!F(e.index))return i().warn("parquet:protocol-violation","Ignoring display optimization, found invalid column path",{index:e.index}),null;if("xz"===e.index.type&&(e.index.geometryType=V(e.index.geometryType),"esri-pbf"===e.index.encoding&&(e.index.encoding="esriPBF"),"esriPBF"!==e.index.encoding))return i().warn("parquet:unsupported",`Encoding for display index must be of type esriPBF, but found ${e.index.encoding}`),null;const{xmin:n,ymin:t,xmax:o,ymax:r}=e.index.fullExtent;return Number.isFinite(n)&&Number.isFinite(t)&&Number.isFinite(o)&&Number.isFinite(r)?e:(i().warn("parquet:protocol-violation","Ignoring display optimization, found bad extent",{index:e.index}),null)}function x(e){return Array.isArray(e)?e.join("."):e}function w(e,n,t,o,r){const i=N(e.readAttribute(n,t),o);return r&&null!=i&&"esriFieldTypeDate"===o?new Date(i):i}function h(e,n,t,o,r){return N(e.readAttribute(n,t,o),r)}function C(e,n){if("z"===e.type){const t=M(e.code,n),o=M(e.xColumn,n),r=M(e.yColumn,n),i=null==e.zColumn?e.zColumn:M(e.zColumn,n),l=null==e.mColumn?e.mColumn:M(e.mColumn,n);return null==t||null==o||null==r||null===i||null===l?null:{...e,code:t,xColumn:o,yColumn:r,...null==i?{}:{zColumn:i},...null==l?{}:{mColumn:l}}}const t=M(e.code,n),o=[];for(const r of e.levels){const e=M(r.column,n);if(null==e)return null;o.push({...r,column:e})}return null==t?null:{...e,code:t,levels:o}}function M(e,n){return"string"==typeof e&&e.length>0?[n,e]:null}function z(e){return"object"==typeof e&&null!=e&&"type"in e&&("z"===e.type||"xz"===e.type)}function F(e){return"z"===e.type?v(e.code)&&v(e.xColumn)&&v(e.yColumn)&&(null==e.zColumn||v(e.zColumn))&&(null==e.mColumn||v(e.mColumn)):v(e.code)&&Array.isArray(e.levels)&&e.levels.every(e=>"object"==typeof e&&null!=e&&"column"in e&&v(e.column))}function v(e){return"string"==typeof e&&e.length>0||Array.isArray(e)&&2===e.length&&e.every(e=>"string"==typeof e&&e.length>0)}function b(e){if(null==e)return null;const n=e.ordering,t=e.lod;if(null==n&&null==t)return null;if("xz"!==n?.type||null==t||n.geometry_column!==e.primary_column||t.geometry_column!==e.primary_column||n.geometry_column!==t.geometry_column||20!==n.max_level||!L(n.extent)||"pbf"!==t.encoding)return k(e,"ordering and lod must form a valid primary-column XZ pair");const o=e.columns[e.primary_column],r=T(o);if(null==r||!P(t.orientation,r.geometryType))return k(e,"geometry type, dimensions, or LOD orientation is invalid");const i=Z(t.levels),l=X(o)?.wkid;if(null==i||null==l)return k(e,"LOD levels or spatial reference is invalid");const[u,a,s,m]=n.extent;return{index:{type:"xz",code:"geokey",wkid:l,wkt:null,encoding:"esriPBF",fullExtent:{xmin:u,ymin:a,xmax:s,ymax:m},geometryType:r.geometryType,maxLevel:n.max_level,hasZ:r.hasZ,hasM:r.hasM,levels:i}}}function k(e,n){return i().warn("parquet:protocol-violation",`Ignoring GeoParquet ordering and LOD extensions: ${n}`,{lod:e.lod,ordering:e.ordering}),null}function T(e){if(null==e||0===e.geometry_types.length)return null;let n,t;for(const o of e.geometry_types){const e=/^(LineString|MultiLineString|Polygon|MultiPolygon)(?: (Z|M|ZM))?$/.exec(o);if(null==e)return null;const r="LineString"===e[1]||"MultiLineString"===e[1]?"polyline":"polygon";if(null!=n&&n!==r||null!=t&&t!==(e[2]??""))return null;n=r,t=e[2]??""}return null==n||null==t?null:{geometryType:n,hasZ:"Z"===t||"ZM"===t,hasM:"M"===t||"ZM"===t}}function P(e,n){return"polygon"===n?"clockwise"===e:null==e}function Z(e){if(!Array.isArray(e)||0===e.length)return null;const n=new Set,t=e.slice().sort((e,n)=>n.resolution-e.resolution),o=[];for(const[r,i]of t.entries()){if(!G(i.column)||!Number.isFinite(i.resolution)||i.resolution<=0||n.has(i.resolution)||!S(i.transform))return null;n.add(i.resolution),o.push({column:i.column,level:r,resolution:i.resolution,transform:i.transform})}return o}function G(e){return Array.isArray(e)&&2===e.length&&"geolod"===e[0]&&"string"==typeof e[1]&&e[1].length>0}function S(e){return q(e?.scale,!0)&&q(e?.translate,!1)}function q(e,n){return Array.isArray(e)&&4===e.length&&e.every(e=>"number"==typeof e&&Number.isFinite(e)&&(!n||e>0))}function L(e){return q(e,!1)&&e[0]<e[2]&&e[1]<e[3]}function O(e){A(e);const n=_(e),t=d(e),o=f(e),r=o.present?o.optimization:b(t),i=$(t,n),{hasZ:l,hasM:u}=j(t,r);let a,s;if(i)switch(i.type){case"location":s={wkid:4326},a="esriGeometryPoint";break;case"wkb":if(t){const e=t.primary_column,n=t.columns[e];a=R(n),s=X(n)}}if(r){const e=r.index;!s&&e.wkid&&(s={wkid:e.wkid}),a||(a="z"===e.type?"esriGeometryPoint":H(e.geometryType))}return{geoMetadata:t,displayOptimization:r,hasZ:l,hasM:u,geometryEncoding:i,geometryInfo:s&&a?{geometry:i?{geometryType:a,spatialReference:s,encoding:i}:null,displayOptimization:r}:null,geometryType:a,spatialReference:s,extent:J(t,r,s),fields:n}}function A(n){for(const t of n.compressionCodecs())if(!u.has(t))throw new e("parquet:unsupported",`Compression codec ${t} is unsupported. Must be of type ${Array.from(u).join(",")}`)}function _(e){const n=[];for(const t of e.fields(!1))n.push({name:t.name,alias:t.name,type:t.type});return n}function N(e,n){return null==e?e:"esriFieldTypeDateOnly"===n?I(e):"esriFieldTypeTimeOnly"===n?E(e):"esriFieldTypeString"===n||"esriFieldTypeTimestampOffset"===n?a.decode(e):e}function I(e){return new Date(e*l).toISOString().slice(0,10)}function E(e){const n=Math.floor(e/3600),t=Math.floor(e%3600/60),o=e%60;return`${n.toString().padStart(2,"0")}:${t.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}`}function $(e,n){if(null!=e){const n=e.primary_column;return{type:"wkb",field:n,orientation:"counterclockwise"===e.columns[n].orientation?"counter-clockwise":null}}const t=D(n.filter(e=>s.has(e.type)).map(e=>e.name));return t.latitudeFieldName&&t.longitudeFieldName?{type:"location",xField:t.longitudeFieldName,yField:t.latitudeFieldName}:null}function D(e){const n=e.map(e=>e.toLowerCase());return{longitudeFieldName:e[n.indexOf(o.find(e=>n.includes(e)))],latitudeFieldName:e[n.indexOf(t.find(e=>n.includes(e)))]}}function R(n){const{geometry_types:t}=n,o=new Set;for(const e of t){const n=B(e);n&&o.add(n)}if(o.size>1)throw new e("parquet:unsupported","Parquet mixed geometry types are not supported",{geometryTypes:o});return 1===o.size?o.values().next().value:void 0}function B(e){switch(e.replace(/ (?:Z|M|ZM)$/u,"")){case"Point":return"esriGeometryPoint";case"Polygon":case"MultiPolygon":return"esriGeometryPolygon";case"LineString":case"MultiLineString":return"esriGeometryPolyline";case"MultiPoint":return"esriGeometryMultipoint";default:return null}}function j(e,n){const t=n?.index;if("z"===t?.type)return{hasZ:null!=t.zColumn,hasM:null!=t.mColumn};if("xz"===t?.type)return{hasZ:!0===t.hasZ,hasM:!0===t.hasM};const o=e?.columns[e.primary_column]?.geometry_types??[];return{hasZ:o.some(e=>/ (?:Z|ZM)$/u.test(e)),hasM:o.some(e=>/ (?:M|ZM)$/u.test(e))}}function H(e){switch(e){case"polygon":return"esriGeometryPolygon";case"polyline":return"esriGeometryPolyline";case"multipoint":return"esriGeometryMultipoint"}}function V(n){switch(n.toLowerCase()){case"polygon":return"polygon";case"polyline":return"polyline";case"multipoint":return"multipoint";default:throw new e("parquet:unsupported",`Geometry type ${n} is unsupported`)}}function X(e){const n=e.crs?.id?.code;return"number"==typeof n?{wkid:n}:"OGC"===e.crs?.id?.authority&&"CRS84"===n?{wkid:4326}:void 0}function J(e,n,t){if(!t)return null;const o=e?e.columns[e.primary_column]:null,r=o?.bbox;if(r?.every(e=>Number.isFinite(e)))switch(r.length){case 4:return{xmin:r[0],ymin:r[1],xmax:r[2],ymax:r[3],spatialReference:t};case 6:return{xmin:r[0],ymin:r[1],xmax:r[3],ymax:r[4],spatialReference:t};default:i().warn("parquet:protocol-violation","Invalid Geoparquet file. BoundingBox size must be 4 or 6.",{geoMetadata:e})}const l=n?.index.fullExtent;return l?{...l,spatialReference:t}:null}export{y as createParquetFile,x as normalizeColumnPath,d as readGeoMetadata,O as readMetadata,w as readParquetChunkAttribute,h as readParquetFileAttribute};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/core",
3
- "version": "5.2.0-next.93",
3
+ "version": "5.2.0-next.95",
4
4
  "description": "ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -20,11 +20,11 @@
20
20
  "license": "SEE LICENSE IN LICENSE.md",
21
21
  "dependencies": {
22
22
  "@amcharts/amcharts5": "~5.20.3",
23
- "@arcgis/toolkit": "5.2.0-next.93",
23
+ "@arcgis/toolkit": "5.2.0-next.95",
24
24
  "@esri/arcgis-html-sanitizer": "~4.1.0",
25
25
  "@esri/calcite-components": "^5.2.0-next.52",
26
26
  "@vaadin/grid": "~25.2.9",
27
- "@zip.js/zip.js": "~2.8.60",
27
+ "@zip.js/zip.js": "~2.8.61",
28
28
  "luxon": "~3.7.2",
29
29
  "marked": "~18.0.11",
30
30
  "tslib": "^2.8.1"
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import e from"../../request.js";import t from"../../geometry/Extent.js";import a from"../../geometry/Point.js";import i from"../../geometry/SpatialReference.js";import n from"../../layers/support/RasterInfo.js";import l from"../../layers/support/RasterStorageInfo.js";import{parseUrl as s,encode as r,asValidOptions as o}from"../utils.js";import u from"../support/FeatureSet.js";async function m(m,f,c){const d=s(m),{rasterFunction:p,sourceJSON:h}=f||{},g=p?JSON.stringify(p.rasterFunctionDefinition||p):null,x=r({...d.query,renderingRule:g,f:"json"}),y=o(x,c);m=d.path;const v=h||await e(m,y).then(e=>e.data),b=v.hasRasterAttributeTable?e(`${m}/rasterAttributeTable`,y):null,S=v.hasColormap?e(`${m}/colormap`,y):null,V=v.hasHistograms?e(`${m}/histograms`,y):null,D=v.currentVersion>=10.3?e(`${m}/keyProperties`,y):null,I=v.hasMultidimensions?e(`${m}/multidimensionalInfo`,y):null,T=v.currentVersion>=10.81?e(`${m}/statistics`,y):null,R=await Promise.allSettled([b,S,V,D,I,T]),j=t.fromJSON(v.extent),w=Math.ceil(j.width/v.pixelSizeX-.1),M=Math.ceil(j.height/v.pixelSizeY-.1),N=i.fromJSON(v.spatialReference||v.extent.spatialReference),O="fulfilled"===R[0].status?R[0].value?.data:null,C=O?.features?.length?u.fromJSON(O):null,J="fulfilled"===R[1].status?R[1].value?.data.colormap:null,k=J?.length?J:null,P="fulfilled"===R[2].status?R[2].value?.data.histograms:null,$=P?.[0]?.counts?.length?P:null,z="fulfilled"===R[3].status?R[3].value?.data??{}:{},F="fulfilled"===R[4].status?R[4].value?.data.multidimensionalInfo:null,E=F?.variables?.length?F:null;E&&E.variables.forEach(e=>{e.statistics?.length&&e.statistics.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),e.dimensions?.forEach(e=>{"StdTime"!==e.name||e.recurring||e.unit||(e.unit="ISO8601")})});let H=null;const L="fulfilled"===R[5].status?R[5].value?.data.statistics:null;if(L&&L.length===v.bandCount)H=L.map(e=>({avg:e.mean,count:e.count,max:e.max,median:e.median,min:e.min,mode:e.mode,stddev:e.standardDeviation,sum:e.sum}));else if(v.minValues&&v.minValues.length===v.bandCount){H=[];for(let e=0;e<v.minValues.length;e++)H.push({min:v.minValues[e],max:v.maxValues[e],avg:v.meanValues[e],stddev:v.stdvValues[e]})}const{defaultVariable:A,serviceDataType:q}=v;A&&A!==z.DefaultVariable&&(z.DefaultVariable=A),q?.includes("esriImageServiceDataTypeVector")&&!q.includes(z.DataType)&&(z.DataType=q.replace("esriImageServiceDataType",""));let B=v.noDataValue;v.noDataValues?.length&&v.noDataValues.some(e=>e!==B)&&(B=v.noDataValues);const W=v.transposeInfo?new l({blockWidth:256,blockHeight:256,pyramidBlockWidth:256,pyramidBlockHeight:256,pyramidScalingFactor:2,compression:"lerc",origin:new a({x:v.extent.xmin,y:v.extent.ymax,spatialReference:N}),firstPyramidLevel:1,maximumPyramidLevel:Math.max(0,Math.round(Math.log(Math.max(w,M))/Math.LN2-8)),transposeInfo:v.transposeInfo}):void 0;return new n({width:w,height:M,bandCount:v.bandCount,extent:t.fromJSON(v.extent),spatialReference:N,pixelSize:new a({x:v.pixelSizeX,y:v.pixelSizeY,spatialReference:N}),pixelType:v.pixelType.toLowerCase(),statistics:H,attributeTable:C,colormap:k,histograms:$,keyProperties:z,noDataValue:B,multidimensionalInfo:E,storageInfo:W})}function f(e,t,a){return m(e,{sourceJSON:t},a)}function c(e,t,a){return m(e,{rasterFunction:t},a)}function d(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}export{f as fetchServiceRasterInfo,c as generateRasterInfo,d as patchServiceInfo};
2
+ import e from"../../request.js";import t from"../../geometry/Extent.js";import a from"../../geometry/Point.js";import n from"../../geometry/SpatialReference.js";import l from"../../layers/support/RasterInfo.js";import i from"../../layers/support/RasterStorageInfo.js";import{parseUrl as s,encode as o,asValidOptions as r}from"../utils.js";import u from"../support/FeatureSet.js";async function m(m,d,c){const f=s(m),{rasterFunction:p,sourceJSON:h}=d||{},g=p?JSON.stringify(p.rasterFunctionDefinition||p):null,x=o({...f.query,renderingRule:g,f:"json"}),v=r(x,c);m=f.path;const y=h||await e(m,v).then(e=>e.data),{currentVersion:b}=y,S=y.hasRasterAttributeTable?e(`${m}/rasterAttributeTable`,v):null,D=y.hasColormap?e(`${m}/colormap`,v):null,V=y.hasHistograms?e(`${m}/histograms`,v):null,I=b>=10.3?e(`${m}/keyProperties`,v):null,T=y.hasMultidimensions?e(`${m}/multidimensionalInfo`,v):null,R=(p?b>=10.91:b>=10.81)?e(`${m}/statistics`,v):null,j=await Promise.allSettled([S,D,V,I,T,R]),w=t.fromJSON(y.extent),M=Math.ceil(w.width/y.pixelSizeX-.1),N=Math.ceil(w.height/y.pixelSizeY-.1),O=n.fromJSON(y.spatialReference||y.extent.spatialReference),C="fulfilled"===j[0].status?j[0].value?.data:null,J=C?.features?.length?u.fromJSON(C):null,k="fulfilled"===j[1].status?j[1].value?.data.colormap:null,P=k?.length?k:null,$="fulfilled"===j[2].status?j[2].value?.data.histograms:null,z=$?.[0]?.counts?.length?$:null,F="fulfilled"===j[3].status?j[3].value?.data??{}:{},E="fulfilled"===j[4].status?j[4].value?.data.multidimensionalInfo:null,H=E?.variables?.length?E:null;H&&H.variables.forEach(e=>{e.statistics?.length&&e.statistics.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),e.dimensions?.forEach(e=>{"StdTime"!==e.name||e.recurring||e.unit||(e.unit="ISO8601")})});let L=null;const A="fulfilled"===j[5].status?j[5].value?.data.statistics:null;A&&A.length===y.bandCount&&(L=A.map(e=>({avg:e.mean,count:e.count,max:e.max,median:e.median,min:e.min,mode:e.mode,stddev:e.standardDeviation,sum:e.sum})));const q=y.minValues?.length===y.bandCount?y.minValues.map((e,t)=>({min:e,max:y.maxValues[t],avg:y.meanValues[t],stddev:y.stdvValues[t]})):null;(null==q||null==L||L.some((e,t)=>e.min!==q[t]?.min||e.max!==q[t]?.max||e.avg!==q[t]?.avg||e.stddev!==q[t]?.stddev))&&(L=q);const{defaultVariable:B,serviceDataType:W}=y;B&&B!==F.DefaultVariable&&(F.DefaultVariable=B),W?.includes("esriImageServiceDataTypeVector")&&!W.includes(F.DataType)&&(F.DataType=W.replace("esriImageServiceDataType",""));let X=y.noDataValue;y.noDataValues?.length&&y.noDataValues.some(e=>e!==X)&&(X=y.noDataValues);const Y=y.transposeInfo?new i({blockWidth:256,blockHeight:256,pyramidBlockWidth:256,pyramidBlockHeight:256,pyramidScalingFactor:2,compression:"lerc",origin:new a({x:y.extent.xmin,y:y.extent.ymax,spatialReference:O}),firstPyramidLevel:1,maximumPyramidLevel:Math.max(0,Math.round(Math.log(Math.max(M,N))/Math.LN2-8)),transposeInfo:y.transposeInfo}):void 0;return new l({width:M,height:N,bandCount:y.bandCount,extent:t.fromJSON(y.extent),spatialReference:O,pixelSize:new a({x:y.pixelSizeX,y:y.pixelSizeY,spatialReference:O}),pixelType:y.pixelType.toLowerCase(),statistics:L,attributeTable:J,colormap:P,histograms:z,keyProperties:F,noDataValue:X,multidimensionalInfo:H,storageInfo:Y})}function d(e,t,a){return m(e,{sourceJSON:t},a)}function c(e,t,a){return m(e,{rasterFunction:t},a)}function f(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}export{d as fetchServiceRasterInfo,c as generateRasterInfo,f as patchServiceInfo};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- const c="20260831",f="5e0cf952a325fa7823d9c47b12dffe65c39750b0";export{c as buildDate,f as revision};
2
+ const e="20260902",c="c36997bd6a7ed9d9fc3e7108721d1b7c392e0e26";export{e as buildDate,c as revision};
@@ -512,7 +512,8 @@ export interface CIMGeometricEffectBuffer extends CIMGeometricEffectBase {
512
512
  }
513
513
 
514
514
  /**
515
- * Represents the circular sector geometric effect which creates a dynamic sector from a point.
515
+ * Represents the circular sector geometric effect which creates a dynamic sector with a specified radius from a point.
516
+ * A start angle and an end angle define the width of the sector.
516
517
  *
517
518
  * ```json
518
519
  * {