@arcgis/core 4.34.0-next.54 → 4.34.0-next.56

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 (391) hide show
  1. package/WebScene.js +1 -1
  2. package/analysis/ElevationProfile/ElevationProfileGroundLine.d.ts +4 -0
  3. package/analysis/ElevationProfile/ElevationProfileGroundLine.js +5 -0
  4. package/analysis/ElevationProfile/ElevationProfileInputLine.d.ts +4 -0
  5. package/analysis/ElevationProfile/ElevationProfileInputLine.js +5 -0
  6. package/analysis/ElevationProfile/ElevationProfileLine.d.ts +4 -0
  7. package/analysis/ElevationProfile/ElevationProfileLine.js +5 -0
  8. package/analysis/ElevationProfile/ElevationProfileLineChartOptions.d.ts +4 -0
  9. package/analysis/ElevationProfile/{LineChartOptions.js → ElevationProfileLineChartOptions.js} +1 -1
  10. package/analysis/ElevationProfile/ElevationProfileLineViewOptions.d.ts +4 -0
  11. package/analysis/ElevationProfile/{LineViewOptions.js → ElevationProfileLineViewOptions.js} +1 -1
  12. package/analysis/ElevationProfile/ElevationProfileQueryLine.d.ts +4 -0
  13. package/analysis/ElevationProfile/ElevationProfileQueryLine.js +5 -0
  14. package/analysis/ElevationProfile/ElevationProfileSceneLine.d.ts +4 -0
  15. package/analysis/ElevationProfile/ElevationProfileSceneLine.js +5 -0
  16. package/analysis/ElevationProfile/ElevationProfileUnits.d.ts +4 -0
  17. package/analysis/ElevationProfile/{Units.js → ElevationProfileUnits.js} +1 -1
  18. package/analysis/ElevationProfile/ElevationProfileViewOptions.d.ts +4 -0
  19. package/analysis/ElevationProfile/{ViewOptions.js → ElevationProfileViewOptions.js} +1 -1
  20. package/analysis/ElevationProfile/elevationProfileLineTypes.js +1 -1
  21. package/analysis/ElevationProfileAnalysis.js +1 -1
  22. package/applications/KnowledgeStudio/resourceSerializationUtils.js +1 -1
  23. package/assets/esri/core/workers/RemoteClient.js +1 -1
  24. package/assets/esri/core/workers/chunks/01e8b9dc77a57d1c2a52.js +1 -0
  25. package/assets/esri/core/workers/chunks/027cfcde29fe87aa2ffe.js +1 -0
  26. package/assets/esri/core/workers/chunks/0a4586e596413ef7a4b5.js +1 -0
  27. package/assets/esri/core/workers/chunks/10b46438885916d18425.js +1 -0
  28. package/assets/esri/core/workers/chunks/1166ed298cf5ca7ad444.js +1 -0
  29. package/assets/esri/core/workers/chunks/13797036850dcc3671c3.js +1 -0
  30. package/assets/esri/core/workers/chunks/18ceea59e469a0f2721b.js +1 -0
  31. package/assets/esri/core/workers/chunks/199a17b0a0f75cbaed16.js +1 -0
  32. package/assets/esri/core/workers/chunks/1eee7cf11df01a52c1bf.js +1 -0
  33. package/assets/esri/core/workers/chunks/{ac41b882f9cbf8d56f0c.js → 222f981e876f60ae282f.js} +1 -1
  34. package/assets/esri/core/workers/chunks/22334a464f798b5279b2.js +1 -0
  35. package/assets/esri/core/workers/chunks/{99b9392946d776a62997.js → 23e600e368ac829680b5.js} +1 -1
  36. package/assets/esri/core/workers/chunks/24ac204d8a045aa821be.js +1 -0
  37. package/assets/esri/core/workers/chunks/27197b0a2ffb2b6104ea.js +1 -0
  38. package/assets/esri/core/workers/chunks/{93af38d29d066f27ed28.js → 2cb14d040e67a261b31c.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{0021118bafefd1e47ff7.js → 31c088966ccfff2ea1db.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{c9c109d43a1e5160955d.js → 3490d47cac7c8dec70cd.js} +2 -2
  41. package/assets/esri/core/workers/chunks/3d800fbc449bea18b1cd.js +1 -0
  42. package/assets/esri/core/workers/chunks/43a56c8fa4e5be18c12a.js +1 -0
  43. package/assets/esri/core/workers/chunks/4874aabdb5c60ca66216.js +1 -0
  44. package/assets/esri/core/workers/chunks/4b58da6cb91f7bf6af8b.js +1 -0
  45. package/assets/esri/core/workers/chunks/{cac060a187f3a27a19ba.js → 4d5abcf57a6ded4750ba.js} +1 -1
  46. package/assets/esri/core/workers/chunks/527557b603400189d49a.js +1 -0
  47. package/assets/esri/core/workers/chunks/{d0bf1fc6e3c198bc565d.js → 57486b18421a3c9690d0.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{4bd92232928b832dea76.js → 5900dde7a201a7d47469.js} +1 -1
  49. package/assets/esri/core/workers/chunks/5f518931a660b3c4f519.js +1 -0
  50. package/assets/esri/core/workers/chunks/63f3e46bfa820436161c.js +1 -0
  51. package/assets/esri/core/workers/chunks/66f3659ba18f92cd623e.js +1 -0
  52. package/assets/esri/core/workers/chunks/67355372ac5fd8a15d18.js +1 -0
  53. package/assets/esri/core/workers/chunks/{b0ee061747bef6729bb9.js → 6801b92bce7a918fda6f.js} +1 -1
  54. package/assets/esri/core/workers/chunks/6940bb6524938894a246.js +1 -0
  55. package/assets/esri/core/workers/chunks/6b11476b2004b4db576e.js +1 -0
  56. package/assets/esri/core/workers/chunks/{5691d504ffe5592bc40f.js → 6dc0009889f2b7cc8cff.js} +1 -1
  57. package/assets/esri/core/workers/chunks/71cac356874b36f9a383.js +1 -0
  58. package/assets/esri/core/workers/chunks/{69dc5a7abc1fda2474ad.js → 722931d1a60be461e521.js} +1 -1
  59. package/assets/esri/core/workers/chunks/79ab06fb4c91ac8da323.js +1 -0
  60. package/assets/esri/core/workers/chunks/{0a4357af5b8c0532b439.js → 7bdfc7c7ce1d94c00745.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{0ce671588de2858516d2.js → 83737d86584bf1b32368.js} +1 -1
  62. package/assets/esri/core/workers/chunks/853b9f29b4d62fa621b9.js +1 -0
  63. package/assets/esri/core/workers/chunks/855f25ce748aaef44b1a.js +1 -0
  64. package/assets/esri/core/workers/chunks/{71acded1b3c0057917a1.js → 862fe2f96d4b777ff5b8.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{98ea12c7a000a30f3dc0.js → 87f68c2b9361bd3f8cac.js} +1 -1
  66. package/assets/esri/core/workers/chunks/8fa50cac57b6e1ecec76.js +1 -0
  67. package/assets/esri/core/workers/chunks/9307108821d82c131654.js +1 -0
  68. package/assets/esri/core/workers/chunks/97ae2fdb6cb98249f5fa.js +1 -0
  69. package/assets/esri/core/workers/chunks/9a20390602126995f831.js +1 -0
  70. package/assets/esri/core/workers/chunks/9b10e70f28873cff44f5.js +1 -0
  71. package/assets/esri/core/workers/chunks/9cdeead9d444e8d95477.js +1 -0
  72. package/assets/esri/core/workers/chunks/a778a72456fefdf40115.js +1 -0
  73. package/assets/esri/core/workers/chunks/a999f804fc2f00b2e7ae.js +1 -0
  74. package/assets/esri/core/workers/chunks/adf11d31f95481f89a55.js +1 -0
  75. package/assets/esri/core/workers/chunks/ae73ac81bd10614c2b53.js +1 -0
  76. package/assets/esri/core/workers/chunks/af4412e79275c5a87539.js +1 -0
  77. package/assets/esri/core/workers/chunks/{7a8d740d1226719a578a.js → b457b7dd907f06278bee.js} +1 -1
  78. package/assets/esri/core/workers/chunks/{81e518dd62bd95611d00.js → b47688e3263099540873.js} +1 -1
  79. package/assets/esri/core/workers/chunks/c7d4c296011c5393bcaa.js +1 -0
  80. package/assets/esri/core/workers/chunks/c86e339e45900c54c9f5.js +1 -0
  81. package/assets/esri/core/workers/chunks/c91217d977a6baaee74a.js +1 -0
  82. package/assets/esri/core/workers/chunks/{a1d3f1c221389eb6090c.js → c95e6bef8c97cf647869.js} +1 -1
  83. package/assets/esri/core/workers/chunks/{e1b25b1ce3bd4f0f2cda.js → cb57cdff976d2d4b0b41.js} +1 -1
  84. package/assets/esri/core/workers/chunks/cbec768cd98caff212f2.js +1 -0
  85. package/assets/esri/core/workers/chunks/{9fef330b241f958b55df.js → d0124b0dd62b331afe58.js} +1 -1
  86. package/assets/esri/core/workers/chunks/d3a7747f23e91d1f1b5e.js +1 -0
  87. package/assets/esri/core/workers/chunks/d3ae88fcde2d7fb3e2e2.js +1 -0
  88. package/assets/esri/core/workers/chunks/{b6a201e86f9caef45ff0.js → d42fd0effc560eefb14b.js} +1 -1
  89. package/assets/esri/core/workers/chunks/d81c4afad4abe2d1d0b9.js +1 -0
  90. package/assets/esri/core/workers/chunks/{2da12a64d3baef4aaaa1.js → d87fdc64a5cc6be4bd69.js} +1 -1
  91. package/assets/esri/core/workers/chunks/db5d3feeb61ccb5ede98.js +1 -0
  92. package/assets/esri/core/workers/chunks/dfb12f42b8d319ffa5fc.js +1 -0
  93. package/assets/esri/core/workers/chunks/{aab349d4624b78ef429f.js → e6bf4f3f6868dc9028e3.js} +1 -1
  94. package/assets/esri/core/workers/chunks/e982cf44906eb26164f2.js +1 -0
  95. package/assets/esri/core/workers/chunks/{081b22fa73ef7b696409.js → ead1acf95c3385630da8.js} +2 -2
  96. package/assets/esri/core/workers/chunks/f1c50f37a81c672263a1.js +1 -0
  97. package/assets/esri/core/workers/chunks/f74b0cdc1c2b56bac5f0.js +1 -0
  98. package/assets/esri/core/workers/chunks/f807e7fc90e0e7ce6b67.js +1 -0
  99. package/assets/esri/core/workers/chunks/{fae6030a81cb91a91b69.js → faf4002f9547a0cc4e33.js} +1 -1
  100. package/assets/esri/core/workers/chunks/ff323db554c9e09749e8.js +1 -0
  101. package/assets/esri/core/workers/chunks/{fe55833c80cf59df9c2b.js → ff42b24b48019a03d841.js} +1 -1
  102. package/assets/esri/core/workers/chunks/{e10c5405f956b2cc59e4.js → ff4e15a872de94d2b438.js} +1 -1
  103. package/assets/esri/core/workers/chunks/{ff7962063d132c1ec814.js → ff8a4bf1bceb362d67ab.js} +1 -1
  104. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  105. package/chunks/Laserlines.glsl.js +1 -1
  106. package/chunks/LineSeries.js +1 -1
  107. package/chunks/Theme.js +1 -1
  108. package/chunks/boundedPlane.js +1 -1
  109. package/chunks/bundle.js +1 -1
  110. package/chunks/chartUtilsAm5.js +1 -1
  111. package/chunks/sphere.js +1 -1
  112. package/chunks/vec42.js +1 -1
  113. package/config.js +1 -1
  114. package/core/ArrayPool.js +1 -1
  115. package/core/Collection.js +1 -1
  116. package/core/ObjectPool.js +1 -1
  117. package/core/accessorSupport/Properties.js +1 -1
  118. package/core/accessorSupport/watch.js +1 -1
  119. package/core/arrayUtils.js +1 -1
  120. package/core/has.js +1 -1
  121. package/core/libs/gl-matrix-2/math/quat.js +1 -1
  122. package/core/libs/gl-matrix-2/math/vec4.js +1 -1
  123. package/core/pbf.js +1 -1
  124. package/core/typedArrayUtil.js +1 -1
  125. package/geohash/GeohashCell.js +1 -1
  126. package/geohash/GeohashTree.js +1 -1
  127. package/geometry/Multipoint.js +1 -1
  128. package/geometry/support/DoubleArray.js +1 -1
  129. package/geometry/support/boundedPlane.js +1 -1
  130. package/geometry/support/coordsUtils.js +1 -1
  131. package/geometry/support/extentUtils.js +1 -1
  132. package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
  133. package/geometry/support/sphere.js +1 -1
  134. package/graphic/KMLGraphicOrigin.js +5 -0
  135. package/graphic/isKMLGraphicOrigin.js +5 -0
  136. package/interfaces.d.ts +147 -142
  137. package/kernel.js +1 -1
  138. package/layers/KMLLayer.js +1 -1
  139. package/layers/SceneLayer.js +1 -1
  140. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  141. package/layers/graphics/sources/ParquetSource.js +1 -1
  142. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  143. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  144. package/layers/support/ElevationQuery.js +1 -1
  145. package/layers/support/KMLSublayer.js +1 -1
  146. package/layers/support/featureReductionUtils.js +1 -1
  147. package/layers/support/kmlUtils.js +1 -1
  148. package/package.json +1 -1
  149. package/renderers/support/colorRampUtils.js +1 -1
  150. package/rest/knowledgeGraphService.js +1 -1
  151. package/support/requestUtils.js +1 -1
  152. package/support/revision.js +1 -1
  153. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  154. package/views/2d/engine/Container.js +1 -1
  155. package/views/2d/engine/DisplayObject.js +1 -1
  156. package/views/2d/engine/flow/dataUtils.js +1 -1
  157. package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
  158. package/views/2d/engine/webgl/DisplayEntity.js +1 -1
  159. package/views/2d/engine/webgl/DisplayRecord.js +1 -1
  160. package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
  161. package/views/2d/engine/webgl/FeatureTile.js +1 -1
  162. package/views/2d/engine/webgl/PooledUint32Array.js +1 -1
  163. package/views/2d/engine/webgl/cpuMapped/Buffer.js +1 -1
  164. package/views/2d/engine/webgl/cpuMapped/MappedMesh.js +1 -1
  165. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  166. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  167. package/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +1 -1
  168. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  169. package/views/2d/layers/KMLLayerView2D.js +1 -1
  170. package/views/2d/layers/features/FeatureContainer.js +1 -1
  171. package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
  172. package/views/2d/layers/features/FeatureSourceEventLog.js +1 -1
  173. package/views/2d/layers/features/FeatureSpatialIndex.js +1 -1
  174. package/views/2d/layers/features/Processor.js +1 -1
  175. package/views/2d/layers/features/RenderState.js +1 -1
  176. package/views/2d/layers/features/aggregation/AccumulatedStatistics.js +1 -1
  177. package/views/2d/layers/features/aggregation/GeohashSpatialIndex.js +1 -1
  178. package/views/2d/layers/features/aggregation/GridCell.js +1 -1
  179. package/views/2d/layers/features/aggregation/GridSpatialIndex.js +1 -1
  180. package/views/2d/layers/features/processor/AProcessorStrategy.js +1 -1
  181. package/views/2d/layers/features/schema/processor/LabelMatcherSchema.js +1 -1
  182. package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
  183. package/views/2d/layers/features/schema/processor/symbols/SymbolSchema.js +1 -1
  184. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  185. package/views/2d/layers/features/sources/strategies/chunks/ASourceChunk.js +1 -1
  186. package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
  187. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  188. package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
  189. package/views/2d/layers/features/support/FeatureSetCache.js +1 -1
  190. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  191. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  192. package/views/2d/layers/features/support/FeatureSetReaderPBFHeader.js +1 -1
  193. package/views/2d/layers/features/support/StaticBitSet.js +1 -1
  194. package/views/2d/tiling/TileCoverage.js +1 -1
  195. package/views/2d/tiling/TileKey.js +1 -1
  196. package/views/3d/FocusAreasView.js +1 -1
  197. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementPathHelper.js +1 -1
  198. package/views/3d/analysis/ElevationProfile/{HoveredPointVisualization.js → ElevationProfileHoveredPointVisualization.js} +1 -1
  199. package/views/3d/analysis/ElevationProfile/ElevationProfileHoveredPointsVisualization.js +5 -0
  200. package/views/3d/analysis/ElevationProfile/ElevationProfileInputVisualization.js +5 -0
  201. package/views/3d/analysis/ElevationProfile/ElevationProfileLinesVisualization.js +5 -0
  202. package/views/3d/analysis/ElevationProfile/ElevationProfileSceneLineComputation.js +5 -0
  203. package/views/3d/analysis/ElevationProfile/ElevationProfileVisualization.js +5 -0
  204. package/views/3d/analysis/ElevationProfileAnalysisView3D.js +1 -1
  205. package/views/3d/analysis/Slice/SliceController.js +1 -1
  206. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  207. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  208. package/views/3d/analysis/Viewshed/{ArrowManipulator.js → ViewshedArrowManipulator.js} +1 -1
  209. package/views/3d/analysis/Viewshed/{FieldOfViewManipulation.js → ViewshedFieldOfViewManipulation.js} +1 -1
  210. package/views/3d/analysis/Viewshed/ViewshedScaleOrientManipulation.js +5 -0
  211. package/views/3d/analysis/Viewshed/ViewshedShapeVisualElement.js +5 -0
  212. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  213. package/views/3d/analysis/Viewshed/ViewshedSubVisualization.js +5 -0
  214. package/views/3d/analysis/Viewshed/ViewshedVisualization.js +1 -1
  215. package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
  216. package/views/3d/camera/constraintUtils/distance.js +1 -1
  217. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentRotate.js +1 -1
  218. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
  219. package/views/3d/interactive/editingTools/transform/extentTransform/extentUtils.js +1 -1
  220. package/views/3d/layers/I3SMeshView3D.js +1 -1
  221. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  222. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  223. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  224. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  225. package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
  226. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  227. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  228. package/views/3d/layers/i3s/I3SClientMaterialUtil.js +1 -1
  229. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  230. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  231. package/views/3d/layers/i3s/I3SNode.js +1 -1
  232. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  233. package/views/3d/state/ViewState.js +1 -1
  234. package/views/3d/state/ViewStateManager.js +1 -1
  235. package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
  236. package/views/3d/support/ViewSlice.js +1 -1
  237. package/views/3d/support/orientedBoundingBox.js +1 -1
  238. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  239. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  240. package/views/3d/support/pointsOfInterest/Focus.js +1 -1
  241. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  242. package/views/3d/terrain/ScaleRangeQueries.js +1 -1
  243. package/views/3d/terrain/SphericalPatch.js +1 -1
  244. package/views/3d/terrain/TerrainRenderer.js +1 -1
  245. package/views/3d/terrain/TerrainSurface.js +1 -1
  246. package/views/3d/terrain/Tile.js +1 -1
  247. package/views/3d/terrain/TilePerLayerInfo.js +1 -1
  248. package/views/3d/webgl-engine/core/material/MaterialBase.js +1 -1
  249. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  250. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  251. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  252. package/views/3d/webgl-engine/lib/SliceHelper.js +1 -1
  253. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  254. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  255. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  256. package/views/3d/webgl-engine/lib/lodRendering/InstanceOctree.js +1 -1
  257. package/views/3d/webgl-engine/lib/octreeUtils.js +1 -1
  258. package/views/3d/webgl-engine/materials/internal/MaterialUtil.js +1 -1
  259. package/views/analysis/ElevationProfile/ElevationProfileController.js +5 -0
  260. package/views/analysis/ElevationProfile/{ProfileGenerationError.js → ElevationProfileGenerationError.js} +1 -1
  261. package/views/analysis/ElevationProfile/ElevationProfileGroundLineComputation.js +5 -0
  262. package/views/analysis/ElevationProfile/ElevationProfileInputLineComputation.js +5 -0
  263. package/views/analysis/ElevationProfile/ElevationProfileLineComputation.js +5 -0
  264. package/views/analysis/ElevationProfile/ElevationProfileQueryLineComputation.js +5 -0
  265. package/views/analysis/ElevationProfile/ElevationProfileResult.d.ts +4 -0
  266. package/views/analysis/ElevationProfile/ElevationProfileResult.js +5 -0
  267. package/views/analysis/ElevationProfile/elevationProfileGenerationUtils.js +5 -0
  268. package/views/analysis/ElevationProfile/elevationProfileGeometryUtils.js +5 -0
  269. package/views/draw/DrawOperation.js +1 -1
  270. package/views/draw/MultipointDrawAction.js +1 -1
  271. package/views/draw/PointDrawAction.js +1 -1
  272. package/views/draw/PolygonDrawAction.js +1 -1
  273. package/views/draw/PolylineDrawAction.js +1 -1
  274. package/views/draw/SegmentDrawAction.js +1 -1
  275. package/views/draw/support/Box.js +1 -1
  276. package/views/draw/support/GraphicMover.js +1 -1
  277. package/views/draw/support/Reshape.js +1 -1
  278. package/views/draw/support/drawUtils.js +1 -1
  279. package/views/draw/support/reshapeTooltipUtils.js +1 -1
  280. package/views/input/InputManager.js +1 -1
  281. package/views/interactive/editGeometry/EditGeometry.js +1 -1
  282. package/views/interactive/editGeometry/EditGeometryOperations.js +1 -1
  283. package/views/interactive/editGeometry/operations/AppendVertex.js +1 -1
  284. package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
  285. package/views/interactive/sketch/constraints.js +1 -1
  286. package/views/interactive/snapping/featureSources/featureServiceSource/tileUtils.js +1 -1
  287. package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
  288. package/views/interactive/snapping/featureSources/sceneLayerSource/sceneLayerSnappingUtils.js +1 -1
  289. package/views/interactive/tooltip/infos/SelectedVertexTooltipInfo.js +1 -1
  290. package/views/layers/FeatureLayerView.js +1 -1
  291. package/views/support/PropertiesPool.js +1 -1
  292. package/webscene/spec-certification/api.js +1 -1
  293. package/webscene/spec-certification/compare.js +1 -1
  294. package/webscene/spec-certification/spec.js +1 -1
  295. package/widgets/ElevationProfile/ElevationProfileLine.d.ts +2 -2
  296. package/widgets/ElevationProfile/support/profileUtils.js +1 -1
  297. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  298. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  299. package/widgets/OrientedImageryViewer.js +1 -1
  300. package/widgets/Sketch/SketchViewModel.js +1 -1
  301. package/widgets/Sketch/support/sketchUtils.js +1 -1
  302. package/analysis/ElevationProfile/GroundLine.d.ts +0 -4
  303. package/analysis/ElevationProfile/GroundLine.js +0 -5
  304. package/analysis/ElevationProfile/InputLine.d.ts +0 -4
  305. package/analysis/ElevationProfile/InputLine.js +0 -5
  306. package/analysis/ElevationProfile/Line.d.ts +0 -4
  307. package/analysis/ElevationProfile/Line.js +0 -5
  308. package/analysis/ElevationProfile/LineChartOptions.d.ts +0 -4
  309. package/analysis/ElevationProfile/LineViewOptions.d.ts +0 -4
  310. package/analysis/ElevationProfile/QueryLine.d.ts +0 -4
  311. package/analysis/ElevationProfile/QueryLine.js +0 -5
  312. package/analysis/ElevationProfile/SceneLine.d.ts +0 -4
  313. package/analysis/ElevationProfile/SceneLine.js +0 -5
  314. package/analysis/ElevationProfile/Units.d.ts +0 -4
  315. package/analysis/ElevationProfile/ViewOptions.d.ts +0 -4
  316. package/assets/esri/core/workers/chunks/02902303e5585a16ebea.js +0 -1
  317. package/assets/esri/core/workers/chunks/0445de3a8968c0734c91.js +0 -1
  318. package/assets/esri/core/workers/chunks/09268dc856c3d5ce178f.js +0 -1
  319. package/assets/esri/core/workers/chunks/0f51e51db83f303ce5a6.js +0 -1
  320. package/assets/esri/core/workers/chunks/14c6ae4feb4859cfa7c5.js +0 -1
  321. package/assets/esri/core/workers/chunks/17776d9d3558d45ea7b5.js +0 -1
  322. package/assets/esri/core/workers/chunks/1cbd59918c60a1a21494.js +0 -1
  323. package/assets/esri/core/workers/chunks/20a2b3d1f826e9059884.js +0 -1
  324. package/assets/esri/core/workers/chunks/250b1629becca0410f2a.js +0 -1
  325. package/assets/esri/core/workers/chunks/2efa4d8fe5454f8b2a05.js +0 -1
  326. package/assets/esri/core/workers/chunks/3149a86cd25684dcb0b3.js +0 -1
  327. package/assets/esri/core/workers/chunks/3800764932a1c32cb29f.js +0 -1
  328. package/assets/esri/core/workers/chunks/38f84294fb2fb4663ba5.js +0 -1
  329. package/assets/esri/core/workers/chunks/3c57b2e13628b5c1f6de.js +0 -1
  330. package/assets/esri/core/workers/chunks/3eb3af0b6cf3c2f28131.js +0 -1
  331. package/assets/esri/core/workers/chunks/43bd338bb0de375b9bb7.js +0 -1
  332. package/assets/esri/core/workers/chunks/4622a3e64d3c4aafa56b.js +0 -1
  333. package/assets/esri/core/workers/chunks/47f2e905ef42e36897aa.js +0 -1
  334. package/assets/esri/core/workers/chunks/50e9eafb118d2a221f10.js +0 -1
  335. package/assets/esri/core/workers/chunks/55588e668b6acb6aa390.js +0 -1
  336. package/assets/esri/core/workers/chunks/5b112471dca94b2e8462.js +0 -1
  337. package/assets/esri/core/workers/chunks/5dfe1aed10095385c066.js +0 -1
  338. package/assets/esri/core/workers/chunks/5fc414fc2cfc68828c5b.js +0 -1
  339. package/assets/esri/core/workers/chunks/7389841fabe0f319f1e5.js +0 -1
  340. package/assets/esri/core/workers/chunks/772e81e9162e2240a7a6.js +0 -1
  341. package/assets/esri/core/workers/chunks/8c81156b1605a16acc29.js +0 -1
  342. package/assets/esri/core/workers/chunks/8e0559cc6295008fcdf7.js +0 -1
  343. package/assets/esri/core/workers/chunks/8f6ff09e7d2f01b79faf.js +0 -1
  344. package/assets/esri/core/workers/chunks/944fa8261aad94ae0542.js +0 -1
  345. package/assets/esri/core/workers/chunks/9639a6f6fab52a501bf7.js +0 -1
  346. package/assets/esri/core/workers/chunks/998c38974372720b1c52.js +0 -1
  347. package/assets/esri/core/workers/chunks/9e479e7e2e51476c3d27.js +0 -1
  348. package/assets/esri/core/workers/chunks/a1e179dd6de9c8769b02.js +0 -1
  349. package/assets/esri/core/workers/chunks/a6493607b98783bf1ef2.js +0 -1
  350. package/assets/esri/core/workers/chunks/a7530dcb08b43e37bbb2.js +0 -1
  351. package/assets/esri/core/workers/chunks/a829969ed44cdb814f27.js +0 -1
  352. package/assets/esri/core/workers/chunks/b2a035befeeff1a55ad8.js +0 -1
  353. package/assets/esri/core/workers/chunks/b4251e10621fb3ad03a3.js +0 -1
  354. package/assets/esri/core/workers/chunks/b9f5672093727c6f92c9.js +0 -1
  355. package/assets/esri/core/workers/chunks/ba45dccb4dab5a74d224.js +0 -1
  356. package/assets/esri/core/workers/chunks/c51e2a048df152abd901.js +0 -1
  357. package/assets/esri/core/workers/chunks/cda27c0fafd687dfa72e.js +0 -1
  358. package/assets/esri/core/workers/chunks/d1842745a7699879a1e1.js +0 -1
  359. package/assets/esri/core/workers/chunks/d578c3880eaf2dd62324.js +0 -1
  360. package/assets/esri/core/workers/chunks/ddd6597a66ec6b972f9c.js +0 -1
  361. package/assets/esri/core/workers/chunks/de499e33035b56b6697d.js +0 -1
  362. package/assets/esri/core/workers/chunks/e28d3ed65c3a76a044c8.js +0 -1
  363. package/assets/esri/core/workers/chunks/e3f68f7b408a08d7cd5d.js +0 -1
  364. package/assets/esri/core/workers/chunks/e9716995ce0c3683eafc.js +0 -1
  365. package/assets/esri/core/workers/chunks/ed25bf087f52e5d3e71b.js +0 -1
  366. package/assets/esri/core/workers/chunks/ee0286b5f5475f2d853f.js +0 -1
  367. package/assets/esri/core/workers/chunks/f8505bf69795f5293a79.js +0 -1
  368. package/assets/esri/core/workers/chunks/f92e608931b1c168cb45.js +0 -1
  369. package/views/3d/analysis/ElevationProfile/HoveredPointsVisualization.js +0 -5
  370. package/views/3d/analysis/ElevationProfile/InputVisualization.js +0 -5
  371. package/views/3d/analysis/ElevationProfile/ProfileLinesVisualization.js +0 -5
  372. package/views/3d/analysis/ElevationProfile/SceneLineComputation.js +0 -5
  373. package/views/3d/analysis/ElevationProfile/Visualization.js +0 -5
  374. package/views/3d/analysis/Viewshed/ScaleOrientManipulation.js +0 -5
  375. package/views/3d/analysis/Viewshed/ViewshedAnalysisVisualization.js +0 -5
  376. package/views/3d/interactive/visualElements/ViewshedShapeVisualElement.js +0 -5
  377. package/views/analysis/ElevationProfile/Controller.js +0 -5
  378. package/views/analysis/ElevationProfile/GroundLineComputation.js +0 -5
  379. package/views/analysis/ElevationProfile/InputLineComputation.js +0 -5
  380. package/views/analysis/ElevationProfile/LineComputation.js +0 -5
  381. package/views/analysis/ElevationProfile/QueryLineComputation.js +0 -5
  382. package/views/analysis/ElevationProfile/Result.d.ts +0 -4
  383. package/views/analysis/ElevationProfile/Result.js +0 -5
  384. package/views/analysis/ElevationProfile/geometryUtils.js +0 -5
  385. package/views/analysis/ElevationProfile/profileGenerationUtils.js +0 -5
  386. /package/assets/esri/core/workers/chunks/{c9c109d43a1e5160955d.js.LICENSE.txt → 3490d47cac7c8dec70cd.js.LICENSE.txt} +0 -0
  387. /package/views/analysis/ElevationProfile/{elevationQuerySourceUtils.js → elevationProfileQuerySourceUtils.js} +0 -0
  388. /package/views/analysis/ElevationProfile/{statisticsUtils.js → elevationProfileStatisticsUtils.js} +0 -0
  389. /package/views/analysis/ElevationProfile/{traversalUtils.js → elevationProfileTraversalUtils.js} +0 -0
  390. /package/views/analysis/ElevationProfile/{unitUtils.js → elevationProfileUnitUtils.js} +0 -0
  391. /package/views/analysis/ElevationProfile/{visualizationUtils.js → elevationProfileVisualizationUtils.js} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[655],{16405:(t,e,r)=>{r.d(e,{A:()=>c});var s,o=r(31635),i=r(65008),l=r(66552),a=r(4718),n=r(10107),u=(r(44208),r(53966),r(40608)),p=r(5443),d=r(16930),h=r(28735);const y=new l.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let c=s=class extends i.A{constructor(t){super(t),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(t){"asc"!==t&&"desc"!==t||this._set("sortOrder",t)}clone(){return new s({categories:this.categories?(0,a.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(t,e){let r=[];this.categories&&(r=this.categories.map(t=>Array.isArray(t)?JSON.stringify(t):t));let s="";if(this.extent){const t=(0,h.Cv)(this.extent,d.A.WGS84);null!=t&&(s=`${t.xmin},${t.ymin},${t.xmax},${t.ymax}`)}let o=this.query;!this.disableExtraQuery&&t.extraQuery&&(o="("+o+")"+t.extraQuery);const i={categories:r,bbox:s,q:o,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(i.sortField=this.sortField.split(",").map(t=>y.toJSON(t.trim())).join(","),i.sortOrder=this.sortOrder),{query:{...e,...i}}}};(0,o.Cg)([(0,n.MZ)()],c.prototype,"categories",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"disableExtraQuery",void 0),(0,o.Cg)([(0,n.MZ)({type:p.A})],c.prototype,"extent",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"filter",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"num",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"query",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"sortField",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"sortOrder",null),(0,o.Cg)([(0,n.MZ)()],c.prototype,"start",void 0),c=s=(0,o.Cg)([(0,u.$)("esri.portal.PortalQueryParams")],c)},20655:(t,e,r)=>{r.d(e,{A:()=>b});var s=r(31635),o=r(92602),i=r(70333),l=r(78888),a=r(49186),n=r(25482),u=r(92474),p=r(97768),d=r(74887),h=r(10107),y=r(56507),c=(r(44208),r(87811),r(36005)),m=r(40608),g=r(5443),C=r(73444);let v;var f=r(96360),M=r(16405),Z=r(65008);r(53966);let S=class extends Z.A{constructor(t){super(t),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,s.Cg)([(0,h.MZ)()],S.prototype,"nextQueryParams",void 0),(0,s.Cg)([(0,h.MZ)()],S.prototype,"queryParams",void 0),(0,s.Cg)([(0,h.MZ)()],S.prototype,"results",void 0),(0,s.Cg)([(0,h.MZ)()],S.prototype,"total",void 0),S=(0,s.Cg)([(0,m.$)("esri.portal.PortalQueryResult")],S);var P,_=r(41318),O=r(926);let w;const A={PortalGroup:()=>Promise.resolve({default:f.A}),PortalItem:()=>r.e(812).then(r.bind(r,80812)),PortalUser:()=>Promise.resolve({default:_.A})};let b=class extends((0,n.T)(u.x_)){static{P=this}static{this.AUTH_MODE_ANONYMOUS="anonymous"}static{this.AUTH_MODE_AUTO="auto"}static{this.AUTH_MODE_IMMEDIATE="immediate"}static{this.AUTH_MODE_NO_PROMPT="no-prompt"}constructor(t){super(t),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=o.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(t){return"string"==typeof t?{url:t}:t}destroy(){q.unregister(this),this.defaultBasemap=(0,p.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,p.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,p.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,p.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(t){if(t)for(const e of t)o.A.request.trustedServers.includes(e)||o.A.request.trustedServers.push(e);return t}readDefaultBasemap(t){return this._readBasemap(t)}readDefaultDevBasemap(t){return this._readBasemap(t)}readDefaultVectorBasemap(t){return this._readBasemap(t)}get extraQuery(){const t=this.user?.orgId,e=!t||this.canSearchPublic;return this.id&&!e?` AND orgid:${this.id}`:null}get hasAPIKey(){return(0,O.Jn)(this.restUrl)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get loaded(){return super.loaded}get restUrl(){let t=this.url;if(t){const e=t.indexOf("/sharing");t=e>0?t.slice(0,e):this.url.replace(/\/+$/,""),t+="/sharing/rest"}return t}get thumbnailUrl(){const t=this.restUrl,e=this.thumbnail;return t&&e?this._normalizeSSL(t+"/portals/self/resources/"+e):null}readUrlKey(t){return t?t.toLowerCase():t}readUser(t){let e=null;return t&&(e=_.A.fromJSON(t),e.portal=this),e}load(t){const e=Promise.all([r.e(812),r.e(3116)]).then(r.bind(r,83116)).then(({default:e})=>{(0,d.Te)(t),w=e}).then(()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,t)).then(t=>{if(!this.hasAPIKey&&i.id){const t=i.id;this.credential=t.findCredential(this.restUrl),this.credential||this.authMode!==P.AUTH_MODE_AUTO&&this.authMode!==P.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=t.on("credential-create",function(t){const e=i.id;return()=>{const r=t.deref();r&&e.findCredential(r.restUrl)&&r.signIn().catch(()=>{})}}(new WeakRef(this))),q.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=t,this.read(t)});return this.addResolvingPromise(e),Promise.resolve(this)}async createElevationLayers(){await this.load();const t=this._getHelperService("defaultElevationLayers"),e=(await Promise.all([r.e(6131),r.e(9953),r.e(812),r.e(9186),r.e(5751),r.e(788)]).then(r.bind(r,68611))).default;return t?t.map(t=>new e({id:t.id,url:t.url})):[]}async fetchBasemaps(t,e){const r=await this._fetchBasemaps(t,e);if(!0===e?.include3d&&!1!==this.use3dBasemaps){const s=await this._fetchBasemaps3D(t,e);r.unshift(...s)}return r}async fetchDefault3DBasemap(t){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const e=new M.A;e.query=this.default3DBasemapQuery,e.disableExtraQuery=!0;const r=(await this.queryItems(e,t)).results.find(t=>"Web Scene"===t.type);return r?new w({portalItem:r}):null}fetchCategorySchema(t){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",t).then(t=>t.categorySchema):(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}async fetchClassificationSchema(t){return this.hasClassificationSchema?this.request(this.restUrl+"/portals/self/classification/classificationSchema",t).then(t=>t.classificationSchema):null}fetchFeaturedGroups(t){const e=this.featuredGroups,r=new M.A({num:100,sortField:"title"});if(e?.length){const s=[];for(const t of e)s.push(`(title:"${t.title}" AND owner:${t.owner})`);return r.query=s.join(" OR "),this.queryGroups(r,t).then(t=>t.results)}return(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}fetchRegions(t){const e=this.user?.culture||this.culture||(0,C.JK)();return this.request(this.restUrl+"/portals/regions",{...t,query:{culture:e}})}fetchSettings(t){const e=this.user?.culture||this.culture||(0,C.JK)();return this.request(this.restUrl+"/portals/self/settings",{...t,query:{culture:e}})}static getDefault(){return v&&!v.destroyed||(v=new P),v}queryGroups(t,e){return this.queryPortal("/community/groups",t,"PortalGroup",e)}queryItems(t,e){return this.queryPortal("/search",t,"PortalItem",e)}queryUsers(t,e){return t.sortField||(t.sortField="username"),this.queryPortal("/community/users",t,"PortalUser",e)}fetchSelf(t=this.authMode,e=!1,r){const s=this.restUrl+"/portals/self",o={authMode:t,query:{culture:(0,C.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===o.authMode&&(o.authMode="no-prompt"),e&&(o.query.default=!0),this.request(s,o)}queryPortal(t,e,r,s){const o=(0,y.dp)(M.A,e),i=e=>this.request(this.restUrl+t,{...o.toRequestOptions(this),...s}).then(t=>{const r=o.clone();return r.start=t.nextStart,new S({nextQueryParams:r,queryParams:o,total:t.total,results:P._resultsToTypedArray(e,{portal:this},t,s)})}).then(t=>Promise.all(t.results.map(e=>"function"==typeof e.when?e.when():t)).then(()=>t,e=>((0,d.QP)(e),t)));return r&&A[r]?A[r]().then(({default:t})=>((0,d.Te)(s),i(t))):i()}signIn(){if(this.hasAPIKey)return this.load().then(()=>{if(!this.user)throw new a.A("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")});if(this.authMode===P.AUTH_MODE_ANONYMOUS||this.authMode===P.AUTH_MODE_NO_PROMPT&&!i.id)return Promise.reject(new a.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const t=t=>Promise.resolve().then(()=>"not-loaded"===this.loadStatus?(t||(this.authMode="immediate"),this.load().then(()=>null)):"loading"===this.loadStatus?this.load().then(()=>this.credential?null:(this.credential=t,this.fetchSelf("immediate"))):this.user&&this.credential===t?null:(this.credential=t,this.fetchSelf("immediate"))).then(t=>{t&&(this.sourceJSON=t,this.read(t))});return i.id?i.id.getCredential(this.restUrl,{prompt:this.authMode!==P.AUTH_MODE_NO_PROMPT}).then(e=>t(e)):t(this.credential)}normalizeUrl(t){const e=this.credential?.token;return this._normalizeSSL(e?t+(t.includes("?")?"&":"?")+"token="+e:t)}requestToTypedArray(t,e,r){return this.request(t,e).then(t=>{const e=P._resultsToTypedArray(r,{portal:this},t);return Promise.all(e.map(e=>"function"==typeof e.when?e.when():t)).then(()=>e,()=>e)})}request(t,e={}){const r={f:"json",...e.query},{authMode:s=(this.authMode===P.AUTH_MODE_ANONYMOUS||this.authMode===P.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:o=null,cacheBust:i=!1,method:a="auto",responseType:n="json",signal:u}=e,p={authMode:s,body:o,cacheBust:i,method:a,query:r,responseType:n,timeout:0,signal:u};return e.withCredentials&&(p.withCredentials=!0),(0,l.A)(this._normalizeSSL(t),p).then(t=>t.data)}toJSON(){throw new a.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");return new P({sourceJSON:t})}_getHelperService(t){const e=this.helperServices?.[t];if(!e)throw new a.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${t}"`);return e}async _fetchBasemaps(t,e){const r=new M.A;r.query=t||((0,O.Dd)()?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const s=await this.queryGroups(r,e);if(!s.total)return[];const o=s.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=o.sortField||"name",r.sortOrder=o.sortOrder||"desc";const i=await o.queryItems(r,e);return i.total?i.results.filter(t=>"Web Map"===t.type).map(t=>new w({portalItem:t})):[]}async _fetchBasemaps3D(t,e){const r=t||this.basemapGalleryGroupQuery3D;if(!r)return[];if((0,O.Dd)())return[];const s=new M.A({query:r,disableExtraQuery:!0}),o=await this.queryGroups(s,e);if(!o.total)return[];const i=o.results[0];s.num=100,s.query='type:"Web Scene"',s.sortField=i.sortField||"name",s.sortOrder=i.sortOrder||"desc";const l=await i.queryItems(s,e);return l.total?l.results.filter(t=>"Web Scene"===t.type).map(t=>new w({portalItem:t})):[]}_normalizeSSL(t){return t.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(t){if(t){const e=w.fromJSON(t);return e.portalItem={portal:this},e}return null}static _resultsToTypedArray(t,e,r,s){let o;if(r){const i=null!=s?s.signal:null;o=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(t||e)&&(o=o.map(r=>{const s=Object.assign(t?t.fromJSON(r):r,e);return"function"==typeof s.load&&s.load(i),s}))}else o=[];return o}};(0,s.Cg)([(0,h.MZ)()],b.prototype,"access",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"allSSL",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"authMode",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"authorizedCrossOriginDomains",void 0),(0,s.Cg)([(0,c.w)("authorizedCrossOriginDomains")],b.prototype,"readAuthorizedCrossOriginDomains",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"basemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],b.prototype,"basemapGalleryGroupQuery3D",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"bingKey",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canListApps",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canListData",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canListPreProvisionedItems",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canProvisionDirectPurchase",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canSearchPublic",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canShareBingPublic",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canSharePublic",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canSignInArcGIS",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canSignInIDP",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"colorSetsGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"commentsEnabled",void 0),(0,s.Cg)([(0,h.MZ)({type:Date})],b.prototype,"created",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"credential",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"culture",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"currentVersion",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"customBaseUrl",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"default3DBasemapQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"defaultBasemap",void 0),(0,s.Cg)([(0,c.w)("defaultBasemap")],b.prototype,"readDefaultBasemap",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"defaultDevBasemap",void 0),(0,s.Cg)([(0,c.w)("defaultDevBasemap")],b.prototype,"readDefaultDevBasemap",null),(0,s.Cg)([(0,h.MZ)({type:g.A})],b.prototype,"defaultExtent",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"defaultVectorBasemap",void 0),(0,s.Cg)([(0,c.w)("defaultVectorBasemap")],b.prototype,"readDefaultVectorBasemap",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"description",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"devBasemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"eueiEnabled",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],b.prototype,"extraQuery",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"featuredGroups",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"featuredItemsGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"galleryTemplatesGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"layoutGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"livingAtlasGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],b.prototype,"hasAPIKey",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"hasCategorySchema",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"hasClassificationSchema",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"helpBase",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"helperServices",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"helpMap",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"homePageFeaturedContent",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"homePageFeaturedContentCount",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"httpPort",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"httpsPort",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"id",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"ipCntryCode",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],b.prototype,"isOrganization",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"isPortal",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"isReadOnly",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],b.prototype,"itemPageUrl",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"layerTemplatesGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"maxTokenExpirationMinutes",void 0),(0,s.Cg)([(0,h.MZ)({type:Date})],b.prototype,"modified",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"name",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"portalHostname",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"portalMode",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"portalProperties",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"region",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"recycleBinEnabled",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],b.prototype,"restUrl",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"rotatorPanels",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"showHomePageDescription",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"staticImagesUrl",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"2DStylesGroupQuery"}})],b.prototype,"stylesGroupQuery2d",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"stylesGroupQuery"}})],b.prototype,"stylesGroupQuery3d",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"supportsHostedServices",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"symbolSetsGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"templatesGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"thumbnail",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],b.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"units",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"url",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"urlKey",void 0),(0,s.Cg)([(0,c.w)("urlKey")],b.prototype,"readUrlKey",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"user",void 0),(0,s.Cg)([(0,c.w)("user")],b.prototype,"readUser",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"use3dBasemaps",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"useDefault3dBasemap",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"useStandardizedQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"useVectorBasemaps",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"vectorBasemapGalleryGroupQuery",void 0),b=P=(0,s.Cg)([(0,m.$)("esri.portal.Portal")],b);const q=new FinalizationRegistry(t=>{t.remove()})},41318:(t,e,r)=>{r.d(e,{A:()=>d});var s=r(31635),o=r(49186),i=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(40608));let n=class extends i.o{constructor(t){super(t),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new o.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,s.Cg)([(0,l.MZ)({type:Date})],n.prototype,"created",void 0),(0,s.Cg)([(0,l.MZ)()],n.prototype,"id",void 0),(0,s.Cg)([(0,l.MZ)()],n.prototype,"portal",void 0),(0,s.Cg)([(0,l.MZ)()],n.prototype,"title",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],n.prototype,"url",null),(0,s.Cg)([(0,l.MZ)()],n.prototype,"username",void 0),n=(0,s.Cg)([(0,a.$)("esri.portal.PortalFolder")],n);var u,p=r(96360);let d=u=class extends i.o{constructor(t){super(t),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.id=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userLicenseTypeId=null,this.userType=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e?this.portal.normalizeUrl(`${t}/info/${e}?f=json`):null}get userContentUrl(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.id}`:null}get url(){const t=this.portal?.restUrl;return t?`${t}/community/users/${this.id}`:null}addItem(t){const e=t&&t.item,r=t?.data,s=t?.folder,o={method:"post"};e&&(o.query=e.createPostQuery(),null!=r&&("string"==typeof r?o.query.text=r:"object"==typeof r&&(o.query.text=JSON.stringify(r))));let i=this.userContentUrl;return s&&(i+="/"+("string"==typeof s?s:s.id)),this.portal.request(i+"/addItem",o).then(t=>(e.id=t.id,e.portal=this.portal,e.loaded?e.reload():e.load()))}async deleteItem(t,e=!1){let r=this.userContentUrl;t.ownerFolder&&(r+="/"+t.ownerFolder);const s=e?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${t.id}/delete`,{method:"post",query:s}),t.id=null,t.portal=null}async deleteItems(t,e=!1){t=t.slice();const r=this.userContentUrl+"/deleteItems",s=[],i=t.map(t=>t.id);if(i.length){const l={method:"post",query:{items:i.join(","),permanentDelete:e}},a=await this.portal.request(r,l);for(const e of a.results){const r=t.find(t=>e.itemId===t.id),i=e.success;let l=null;i?(r.id=null,r.portal=null):e.error&&(l=new o.A("portal:delete-item-failed",e.error.message,e.error)),s.push({item:r,success:i,error:l})}}return s}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then(t=>{let e;return e=t&&t.folders?t.folders.map(t=>{const e=n.fromJSON(t);return e.portal=this.portal,e}):[],e})}fetchGroups(){return this.portal.request(this.url??"").then(t=>{let e;return e=t&&t.groups?t.groups.map(t=>{const e=p.A.fromJSON(t);return e.portal=this.portal,e}):[],e})}async fetchItems(t){t??={};let e=this.userContentUrl??"";t.folder&&(e+="/"+t.folder.id);const{default:s}=await r.e(812).then(r.bind(r,80812)),o={folders:!1,inRecycleBin:!!t.inRecycleBin||null,foldersContent:!(t.folder||!t.includeSubfolderItems)||null,num:t.num||10,start:t.start||1,sortField:t.sortField||"created",sortOrder:t.sortOrder||"asc"},i=await this.portal.request(e,{query:o});let l;return i?.items?(l=i.items.map(t=>{const e=s.fromJSON(t);return e.portal=this.portal,e}),await Promise.all(l.map(t=>t.load())),{items:l,nextStart:i.nextStart,total:i.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then(t=>t.tags)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}queryFavorites(t){return this.favGroupId?(this._favGroup||(this._favGroup=new p.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(t)):Promise.reject(new o.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(t,e){const r=this.userContentUrl,s=e?{folderID:"string"==typeof e?e:e.id}:null;await this.portal.request(r+`/items/${t.id}/restore`,{method:"post",query:s})}toJSON(){throw new o.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new u({sourceJSON:t});return e.read(t),e}};(0,s.Cg)([(0,l.MZ)()],d.prototype,"access",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],d.prototype,"created",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"culture",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"description",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"email",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"favGroupId",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"fullName",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"id",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],d.prototype,"modified",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"orgId",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"portal",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"preferredView",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"privileges",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"region",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"role",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"roleId",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"thumbnail",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,l.MZ)()],d.prototype,"units",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"userContentUrl",null),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"url",null),(0,s.Cg)([(0,l.MZ)()],d.prototype,"username",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"userLicenseTypeId",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"userType",void 0),d=u=(0,s.Cg)([(0,a.$)("esri.portal.PortalUser")],d)},61893:(t,e,r)=>{r.d(e,{Z:()=>p,g:()=>u});var s=r(31635),o=r(65008),i=r(36563),l=r(74887),a=r(40608);class n{constructor(){this._resolver=(0,l.Tw)(),this._status=0,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=1,this._cleanUp()},()=>{this._status=2,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return 1===this._status}isRejected(){return 2===this._status}isFulfilled(){return 0!==this._status}abort(){this._resolver.reject((0,l.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const t=(0,l.Tw)(),e=[...this._resolvingPromises,t.promise],r=this._allPromise=Promise.all(e);r.then(()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()},t=>{this.isFulfilled()||this._allPromise!==r||(0,l.zf)(t)||this._resolver.reject(t)}),t.resolve()}}const u=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),this._promiseProps=new n,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(t,e){return this._promiseProps.promise.then(()=>this).then(t,e)}catch(t){return this.when(null,t)}addResolvingPromise(t){t&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in t?t.when():t)}addResolvingTask(t){t&&!this._promiseProps.isFulfilled()&&(this.addHandles((0,i.rE)(t)),this._promiseProps.addResolvingPromise(t.promise))}};return r=(0,s.Cg)([(0,a.$)("esri.core.Promise")],r),r},p=u(o.A)},92474:(t,e,r)=>{r.d(e,{WV:()=>h,Zm:()=>c,x_:()=>y});var s=r(31635),o=r(49186),i=r(97768),l=r(61893),a=r(74887),n=r(67076),u=r(10107),p=r(40608);const d="loaded",h=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise(t=>{const e=this.load.bind(this);this.load=r=>{const s=new Promise((t,e)=>{const s=(0,a.NY)(r,e);this.destroyed&&e(new o.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(t,e).finally(()=>{s&&s.remove()})});if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const t=this._loadController=new AbortController;e({signal:t.signal})}return t(),s}})),this.when(()=>{this._set("loadStatus",d),this._loadController=null},t=>{this.destroyed||(this._set("loadStatus","failed"),this._set("loadError",t),this._loadController=null)})}destroy(){this._loadController&&(this._loadController=(0,i.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===d}get loadWarnings(){return this._get("loadWarnings")}load(t){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new o.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,s.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loaded",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loadError",void 0),(0,s.Cg)([(0,u.MZ)({clonable:!1})],r.prototype,"loadStatus",void 0),(0,s.Cg)([(0,u.MZ)({type:[n.A],readOnly:!0})],r.prototype,"loadWarnings",null),r=(0,s.Cg)([(0,p.$)("esri.core.Loadable")],r),r},y=h(l.Z);function c(t){return!(!t||!t.load)}},96360:(t,e,r)=>{r.d(e,{A:()=>d});var s,o=r(31635),i=r(49186),l=r(25482),a=r(10107),n=r(56507),u=(r(44208),r(87811),r(40608)),p=r(16405);let d=s=class extends l.o{constructor(t){super(t),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e&&this.portal?this.portal?.normalizeUrl(`${t}/info/${e}?f=json`):null}get url(){const t=this.portal?.restUrl;return t?t+"/community/groups/"+this.id:null}fetchCategorySchema(t){return this.portal.request(this.url+"/categorySchema",t).then(e=>{const r=e.categorySchema||[];return r.some(t=>"contentCategorySetsGroupQuery.LivingAtlas"===t.source)?this._fetchCategorySchemaSet("LivingAtlas",t):r})}fetchMembers(t){return this.portal.request(this.url+"/users",t)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}toJSON(){throw new i.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new s({sourceJSON:t});return e.read(t),e}queryItems(t,e){let r=(0,n.dp)(p.A,t);const s=this.portal;return parseFloat(s.currentVersion)>5?(r=r||new p.A,s.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",e)):(r=r?r.clone():new p.A,r.query="group:"+this.id+(r.query?" "+r.query:""),s.queryItems(r,e))}_fetchCategorySchemaSet(t,e){const r=this.portal;return r.fetchSelf(r.authMode,!0,e).then(t=>{const s=t.contentCategorySetsGroupQuery;if(s){const t=new p.A({disableExtraQuery:!0,num:1,query:s});return r.queryGroups(t,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")}).then(r=>{if(r.total){const s=r.results[0],o=new p.A({num:1,query:`typekeywords:"${t}"`});return s.queryItems(o,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")}).then(t=>t.total?t.results[0].fetchData("json",e).then(t=>{const e=t?.categorySchema;return e?.length?e:[]}):[])}};(0,o.Cg)([(0,a.MZ)()],d.prototype,"access",void 0),(0,o.Cg)([(0,a.MZ)({type:Date})],d.prototype,"created",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"description",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"id",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"isInvitationOnly",void 0),(0,o.Cg)([(0,a.MZ)({type:Date})],d.prototype,"modified",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"owner",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"portal",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"snippet",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"sortField",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"sortOrder",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"sourceJSON",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"tags",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"thumbnail",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,o.Cg)([(0,a.MZ)()],d.prototype,"title",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"url",null),d=s=(0,o.Cg)([(0,u.$)("esri.portal.PortalGroup")],d)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[655],{16405:(t,e,r)=>{r.d(e,{A:()=>c});var s,o=r(31635),i=r(65008),l=r(66552),a=r(4718),n=r(10107),u=(r(44208),r(53966),r(40608)),p=r(5443),d=r(16930),h=r(28735);const y=new l.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let c=s=class extends i.A{constructor(t){super(t),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(t){"asc"!==t&&"desc"!==t||this._set("sortOrder",t)}clone(){return new s({categories:this.categories?(0,a.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(t,e){let r=[];this.categories&&(r=this.categories.map(t=>Array.isArray(t)?JSON.stringify(t):t));let s="";if(this.extent){const t=(0,h.Cv)(this.extent,d.A.WGS84);null!=t&&(s=`${t.xmin},${t.ymin},${t.xmax},${t.ymax}`)}let o=this.query;!this.disableExtraQuery&&t.extraQuery&&(o="("+o+")"+t.extraQuery);const i={categories:r,bbox:s,q:o,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(i.sortField=this.sortField.split(",").map(t=>y.toJSON(t.trim())).join(","),i.sortOrder=this.sortOrder),{query:{...e,...i}}}};(0,o.Cg)([(0,n.MZ)()],c.prototype,"categories",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"disableExtraQuery",void 0),(0,o.Cg)([(0,n.MZ)({type:p.A})],c.prototype,"extent",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"filter",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"num",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"query",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"sortField",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"sortOrder",null),(0,o.Cg)([(0,n.MZ)()],c.prototype,"start",void 0),c=s=(0,o.Cg)([(0,u.$)("esri.portal.PortalQueryParams")],c)},20655:(t,e,r)=>{r.d(e,{A:()=>b});var s=r(31635),o=r(92602),i=r(70333),l=r(78888),a=r(49186),n=r(25482),u=r(92474),p=r(97768),d=r(74887),h=r(10107),y=r(56507),c=(r(44208),r(87811),r(36005)),m=r(40608),g=r(5443),C=r(73444);let v;var f=r(96360),M=r(16405),Z=r(65008);r(53966);let S=class extends Z.A{constructor(t){super(t),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,s.Cg)([(0,h.MZ)()],S.prototype,"nextQueryParams",void 0),(0,s.Cg)([(0,h.MZ)()],S.prototype,"queryParams",void 0),(0,s.Cg)([(0,h.MZ)()],S.prototype,"results",void 0),(0,s.Cg)([(0,h.MZ)()],S.prototype,"total",void 0),S=(0,s.Cg)([(0,m.$)("esri.portal.PortalQueryResult")],S);var P,_=r(41318),O=r(926);let w;const A={PortalGroup:()=>Promise.resolve({default:f.A}),PortalItem:()=>r.e(812).then(r.bind(r,80812)),PortalUser:()=>Promise.resolve({default:_.A})};let b=class extends((0,n.T)(u.x_)){static{P=this}static{this.AUTH_MODE_ANONYMOUS="anonymous"}static{this.AUTH_MODE_AUTO="auto"}static{this.AUTH_MODE_IMMEDIATE="immediate"}static{this.AUTH_MODE_NO_PROMPT="no-prompt"}constructor(t){super(t),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=o.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(t){return"string"==typeof t?{url:t}:t}destroy(){q.unregister(this),this.defaultBasemap=(0,p.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,p.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,p.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,p.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(t){if(t)for(const e of t)o.A.request.trustedServers.includes(e)||o.A.request.trustedServers.push(e);return t}readDefaultBasemap(t){return this._readBasemap(t)}readDefaultDevBasemap(t){return this._readBasemap(t)}readDefaultVectorBasemap(t){return this._readBasemap(t)}get extraQuery(){const t=this.user?.orgId,e=!t||this.canSearchPublic;return this.id&&!e?` AND orgid:${this.id}`:null}get hasAPIKey(){return(0,O.Jn)(this.restUrl)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get loaded(){return super.loaded}get restUrl(){let t=this.url;if(t){const e=t.indexOf("/sharing");t=e>0?t.slice(0,e):this.url.replace(/\/+$/,""),t+="/sharing/rest"}return t}get thumbnailUrl(){const t=this.restUrl,e=this.thumbnail;return t&&e?this._normalizeSSL(t+"/portals/self/resources/"+e):null}readUrlKey(t){return t?t.toLowerCase():t}readUser(t){let e=null;return t&&(e=_.A.fromJSON(t),e.portal=this),e}load(t){const e=Promise.all([r.e(812),r.e(3116)]).then(r.bind(r,83116)).then(({default:e})=>{(0,d.Te)(t),w=e}).then(()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,t)).then(t=>{if(!this.hasAPIKey&&i.id){const t=i.id;this.credential=t.findCredential(this.restUrl),this.credential||this.authMode!==P.AUTH_MODE_AUTO&&this.authMode!==P.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=t.on("credential-create",function(t){const e=i.id;return()=>{const r=t.deref();r&&e.findCredential(r.restUrl)&&r.signIn().catch(()=>{})}}(new WeakRef(this))),q.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=t,this.read(t)});return this.addResolvingPromise(e),Promise.resolve(this)}async createElevationLayers(){await this.load();const t=this._getHelperService("defaultElevationLayers"),e=(await Promise.all([r.e(6131),r.e(9953),r.e(812),r.e(9186),r.e(3340),r.e(788)]).then(r.bind(r,68611))).default;return t?t.map(t=>new e({id:t.id,url:t.url})):[]}async fetchBasemaps(t,e){const r=await this._fetchBasemaps(t,e);if(!0===e?.include3d&&!1!==this.use3dBasemaps){const s=await this._fetchBasemaps3D(t,e);r.unshift(...s)}return r}async fetchDefault3DBasemap(t){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const e=new M.A;e.query=this.default3DBasemapQuery,e.disableExtraQuery=!0;const r=(await this.queryItems(e,t)).results.find(t=>"Web Scene"===t.type);return r?new w({portalItem:r}):null}fetchCategorySchema(t){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",t).then(t=>t.categorySchema):(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}async fetchClassificationSchema(t){return this.hasClassificationSchema?this.request(this.restUrl+"/portals/self/classification/classificationSchema",t).then(t=>t.classificationSchema):null}fetchFeaturedGroups(t){const e=this.featuredGroups,r=new M.A({num:100,sortField:"title"});if(e?.length){const s=[];for(const t of e)s.push(`(title:"${t.title}" AND owner:${t.owner})`);return r.query=s.join(" OR "),this.queryGroups(r,t).then(t=>t.results)}return(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}fetchRegions(t){const e=this.user?.culture||this.culture||(0,C.JK)();return this.request(this.restUrl+"/portals/regions",{...t,query:{culture:e}})}fetchSettings(t){const e=this.user?.culture||this.culture||(0,C.JK)();return this.request(this.restUrl+"/portals/self/settings",{...t,query:{culture:e}})}static getDefault(){return v&&!v.destroyed||(v=new P),v}queryGroups(t,e){return this.queryPortal("/community/groups",t,"PortalGroup",e)}queryItems(t,e){return this.queryPortal("/search",t,"PortalItem",e)}queryUsers(t,e){return t.sortField||(t.sortField="username"),this.queryPortal("/community/users",t,"PortalUser",e)}fetchSelf(t=this.authMode,e=!1,r){const s=this.restUrl+"/portals/self",o={authMode:t,query:{culture:(0,C.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===o.authMode&&(o.authMode="no-prompt"),e&&(o.query.default=!0),this.request(s,o)}queryPortal(t,e,r,s){const o=(0,y.dp)(M.A,e),i=e=>this.request(this.restUrl+t,{...o.toRequestOptions(this),...s}).then(t=>{const r=o.clone();return r.start=t.nextStart,new S({nextQueryParams:r,queryParams:o,total:t.total,results:P._resultsToTypedArray(e,{portal:this},t,s)})}).then(t=>Promise.all(t.results.map(e=>"function"==typeof e.when?e.when():t)).then(()=>t,e=>((0,d.QP)(e),t)));return r&&A[r]?A[r]().then(({default:t})=>((0,d.Te)(s),i(t))):i()}signIn(){if(this.hasAPIKey)return this.load().then(()=>{if(!this.user)throw new a.A("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")});if(this.authMode===P.AUTH_MODE_ANONYMOUS||this.authMode===P.AUTH_MODE_NO_PROMPT&&!i.id)return Promise.reject(new a.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const t=t=>Promise.resolve().then(()=>"not-loaded"===this.loadStatus?(t||(this.authMode="immediate"),this.load().then(()=>null)):"loading"===this.loadStatus?this.load().then(()=>this.credential?null:(this.credential=t,this.fetchSelf("immediate"))):this.user&&this.credential===t?null:(this.credential=t,this.fetchSelf("immediate"))).then(t=>{t&&(this.sourceJSON=t,this.read(t))});return i.id?i.id.getCredential(this.restUrl,{prompt:this.authMode!==P.AUTH_MODE_NO_PROMPT}).then(e=>t(e)):t(this.credential)}normalizeUrl(t){const e=this.credential?.token;return this._normalizeSSL(e?t+(t.includes("?")?"&":"?")+"token="+e:t)}requestToTypedArray(t,e,r){return this.request(t,e).then(t=>{const e=P._resultsToTypedArray(r,{portal:this},t);return Promise.all(e.map(e=>"function"==typeof e.when?e.when():t)).then(()=>e,()=>e)})}request(t,e={}){const r={f:"json",...e.query},{authMode:s=(this.authMode===P.AUTH_MODE_ANONYMOUS||this.authMode===P.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:o=null,cacheBust:i=!1,method:a="auto",responseType:n="json",signal:u}=e,p={authMode:s,body:o,cacheBust:i,method:a,query:r,responseType:n,timeout:0,signal:u};return e.withCredentials&&(p.withCredentials=!0),(0,l.A)(this._normalizeSSL(t),p).then(t=>t.data)}toJSON(){throw new a.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");return new P({sourceJSON:t})}_getHelperService(t){const e=this.helperServices?.[t];if(!e)throw new a.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${t}"`);return e}async _fetchBasemaps(t,e){const r=new M.A;r.query=t||((0,O.Dd)()?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const s=await this.queryGroups(r,e);if(!s.total)return[];const o=s.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=o.sortField||"name",r.sortOrder=o.sortOrder||"desc";const i=await o.queryItems(r,e);return i.total?i.results.filter(t=>"Web Map"===t.type).map(t=>new w({portalItem:t})):[]}async _fetchBasemaps3D(t,e){const r=t||this.basemapGalleryGroupQuery3D;if(!r)return[];if((0,O.Dd)())return[];const s=new M.A({query:r,disableExtraQuery:!0}),o=await this.queryGroups(s,e);if(!o.total)return[];const i=o.results[0];s.num=100,s.query='type:"Web Scene"',s.sortField=i.sortField||"name",s.sortOrder=i.sortOrder||"desc";const l=await i.queryItems(s,e);return l.total?l.results.filter(t=>"Web Scene"===t.type).map(t=>new w({portalItem:t})):[]}_normalizeSSL(t){return t.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(t){if(t){const e=w.fromJSON(t);return e.portalItem={portal:this},e}return null}static _resultsToTypedArray(t,e,r,s){let o;if(r){const i=null!=s?s.signal:null;o=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(t||e)&&(o=o.map(r=>{const s=Object.assign(t?t.fromJSON(r):r,e);return"function"==typeof s.load&&s.load(i),s}))}else o=[];return o}};(0,s.Cg)([(0,h.MZ)()],b.prototype,"access",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"allSSL",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"authMode",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"authorizedCrossOriginDomains",void 0),(0,s.Cg)([(0,c.w)("authorizedCrossOriginDomains")],b.prototype,"readAuthorizedCrossOriginDomains",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"basemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],b.prototype,"basemapGalleryGroupQuery3D",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"bingKey",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canListApps",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canListData",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canListPreProvisionedItems",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canProvisionDirectPurchase",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canSearchPublic",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canShareBingPublic",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canSharePublic",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canSignInArcGIS",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canSignInIDP",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"colorSetsGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"commentsEnabled",void 0),(0,s.Cg)([(0,h.MZ)({type:Date})],b.prototype,"created",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"credential",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"culture",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"currentVersion",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"customBaseUrl",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"default3DBasemapQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"defaultBasemap",void 0),(0,s.Cg)([(0,c.w)("defaultBasemap")],b.prototype,"readDefaultBasemap",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"defaultDevBasemap",void 0),(0,s.Cg)([(0,c.w)("defaultDevBasemap")],b.prototype,"readDefaultDevBasemap",null),(0,s.Cg)([(0,h.MZ)({type:g.A})],b.prototype,"defaultExtent",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"defaultVectorBasemap",void 0),(0,s.Cg)([(0,c.w)("defaultVectorBasemap")],b.prototype,"readDefaultVectorBasemap",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"description",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"devBasemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"eueiEnabled",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],b.prototype,"extraQuery",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"featuredGroups",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"featuredItemsGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"galleryTemplatesGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"layoutGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"livingAtlasGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],b.prototype,"hasAPIKey",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"hasCategorySchema",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"hasClassificationSchema",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"helpBase",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"helperServices",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"helpMap",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"homePageFeaturedContent",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"homePageFeaturedContentCount",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"httpPort",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"httpsPort",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"id",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"ipCntryCode",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],b.prototype,"isOrganization",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"isPortal",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"isReadOnly",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],b.prototype,"itemPageUrl",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"layerTemplatesGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"maxTokenExpirationMinutes",void 0),(0,s.Cg)([(0,h.MZ)({type:Date})],b.prototype,"modified",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"name",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"portalHostname",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"portalMode",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"portalProperties",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"region",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"recycleBinEnabled",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],b.prototype,"restUrl",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"rotatorPanels",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"showHomePageDescription",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"staticImagesUrl",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"2DStylesGroupQuery"}})],b.prototype,"stylesGroupQuery2d",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"stylesGroupQuery"}})],b.prototype,"stylesGroupQuery3d",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"supportsHostedServices",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"symbolSetsGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"templatesGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"thumbnail",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],b.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"units",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"url",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"urlKey",void 0),(0,s.Cg)([(0,c.w)("urlKey")],b.prototype,"readUrlKey",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"user",void 0),(0,s.Cg)([(0,c.w)("user")],b.prototype,"readUser",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"use3dBasemaps",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"useDefault3dBasemap",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"useStandardizedQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"useVectorBasemaps",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"vectorBasemapGalleryGroupQuery",void 0),b=P=(0,s.Cg)([(0,m.$)("esri.portal.Portal")],b);const q=new FinalizationRegistry(t=>{t.remove()})},41318:(t,e,r)=>{r.d(e,{A:()=>d});var s=r(31635),o=r(49186),i=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(40608));let n=class extends i.o{constructor(t){super(t),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new o.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,s.Cg)([(0,l.MZ)({type:Date})],n.prototype,"created",void 0),(0,s.Cg)([(0,l.MZ)()],n.prototype,"id",void 0),(0,s.Cg)([(0,l.MZ)()],n.prototype,"portal",void 0),(0,s.Cg)([(0,l.MZ)()],n.prototype,"title",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],n.prototype,"url",null),(0,s.Cg)([(0,l.MZ)()],n.prototype,"username",void 0),n=(0,s.Cg)([(0,a.$)("esri.portal.PortalFolder")],n);var u,p=r(96360);let d=u=class extends i.o{constructor(t){super(t),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.id=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userLicenseTypeId=null,this.userType=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e?this.portal.normalizeUrl(`${t}/info/${e}?f=json`):null}get userContentUrl(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.id}`:null}get url(){const t=this.portal?.restUrl;return t?`${t}/community/users/${this.id}`:null}addItem(t){const e=t&&t.item,r=t?.data,s=t?.folder,o={method:"post"};e&&(o.query=e.createPostQuery(),null!=r&&("string"==typeof r?o.query.text=r:"object"==typeof r&&(o.query.text=JSON.stringify(r))));let i=this.userContentUrl;return s&&(i+="/"+("string"==typeof s?s:s.id)),this.portal.request(i+"/addItem",o).then(t=>(e.id=t.id,e.portal=this.portal,e.loaded?e.reload():e.load()))}async deleteItem(t,e=!1){let r=this.userContentUrl;t.ownerFolder&&(r+="/"+t.ownerFolder);const s=e?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${t.id}/delete`,{method:"post",query:s}),t.id=null,t.portal=null}async deleteItems(t,e=!1){t=t.slice();const r=this.userContentUrl+"/deleteItems",s=[],i=t.map(t=>t.id);if(i.length){const l={method:"post",query:{items:i.join(","),permanentDelete:e}},a=await this.portal.request(r,l);for(const e of a.results){const r=t.find(t=>e.itemId===t.id),i=e.success;let l=null;i?(r.id=null,r.portal=null):e.error&&(l=new o.A("portal:delete-item-failed",e.error.message,e.error)),s.push({item:r,success:i,error:l})}}return s}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then(t=>{let e;return e=t&&t.folders?t.folders.map(t=>{const e=n.fromJSON(t);return e.portal=this.portal,e}):[],e})}fetchGroups(){return this.portal.request(this.url??"").then(t=>{let e;return e=t&&t.groups?t.groups.map(t=>{const e=p.A.fromJSON(t);return e.portal=this.portal,e}):[],e})}async fetchItems(t){t??={};let e=this.userContentUrl??"";t.folder&&(e+="/"+t.folder.id);const{default:s}=await r.e(812).then(r.bind(r,80812)),o={folders:!1,inRecycleBin:!!t.inRecycleBin||null,foldersContent:!(t.folder||!t.includeSubfolderItems)||null,num:t.num||10,start:t.start||1,sortField:t.sortField||"created",sortOrder:t.sortOrder||"asc"},i=await this.portal.request(e,{query:o});let l;return i?.items?(l=i.items.map(t=>{const e=s.fromJSON(t);return e.portal=this.portal,e}),await Promise.all(l.map(t=>t.load())),{items:l,nextStart:i.nextStart,total:i.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then(t=>t.tags)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}queryFavorites(t){return this.favGroupId?(this._favGroup||(this._favGroup=new p.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(t)):Promise.reject(new o.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(t,e){const r=this.userContentUrl,s=e?{folderID:"string"==typeof e?e:e.id}:null;await this.portal.request(r+`/items/${t.id}/restore`,{method:"post",query:s})}toJSON(){throw new o.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new u({sourceJSON:t});return e.read(t),e}};(0,s.Cg)([(0,l.MZ)()],d.prototype,"access",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],d.prototype,"created",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"culture",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"description",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"email",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"favGroupId",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"fullName",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"id",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],d.prototype,"modified",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"orgId",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"portal",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"preferredView",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"privileges",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"region",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"role",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"roleId",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"thumbnail",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,l.MZ)()],d.prototype,"units",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"userContentUrl",null),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"url",null),(0,s.Cg)([(0,l.MZ)()],d.prototype,"username",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"userLicenseTypeId",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"userType",void 0),d=u=(0,s.Cg)([(0,a.$)("esri.portal.PortalUser")],d)},61893:(t,e,r)=>{r.d(e,{Z:()=>p,g:()=>u});var s=r(31635),o=r(65008),i=r(36563),l=r(74887),a=r(40608);class n{constructor(){this._resolver=(0,l.Tw)(),this._status=0,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=1,this._cleanUp()},()=>{this._status=2,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return 1===this._status}isRejected(){return 2===this._status}isFulfilled(){return 0!==this._status}abort(){this._resolver.reject((0,l.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const t=(0,l.Tw)(),e=[...this._resolvingPromises,t.promise],r=this._allPromise=Promise.all(e);r.then(()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()},t=>{this.isFulfilled()||this._allPromise!==r||(0,l.zf)(t)||this._resolver.reject(t)}),t.resolve()}}const u=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),this._promiseProps=new n,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(t,e){return this._promiseProps.promise.then(()=>this).then(t,e)}catch(t){return this.when(null,t)}addResolvingPromise(t){t&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in t?t.when():t)}addResolvingTask(t){t&&!this._promiseProps.isFulfilled()&&(this.addHandles((0,i.rE)(t)),this._promiseProps.addResolvingPromise(t.promise))}};return r=(0,s.Cg)([(0,a.$)("esri.core.Promise")],r),r},p=u(o.A)},92474:(t,e,r)=>{r.d(e,{WV:()=>h,Zm:()=>c,x_:()=>y});var s=r(31635),o=r(49186),i=r(97768),l=r(61893),a=r(74887),n=r(67076),u=r(10107),p=r(40608);const d="loaded",h=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise(t=>{const e=this.load.bind(this);this.load=r=>{const s=new Promise((t,e)=>{const s=(0,a.NY)(r,e);this.destroyed&&e(new o.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(t,e).finally(()=>{s&&s.remove()})});if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const t=this._loadController=new AbortController;e({signal:t.signal})}return t(),s}})),this.when(()=>{this._set("loadStatus",d),this._loadController=null},t=>{this.destroyed||(this._set("loadStatus","failed"),this._set("loadError",t),this._loadController=null)})}destroy(){this._loadController&&(this._loadController=(0,i.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===d}get loadWarnings(){return this._get("loadWarnings")}load(t){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new o.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,s.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loaded",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loadError",void 0),(0,s.Cg)([(0,u.MZ)({clonable:!1})],r.prototype,"loadStatus",void 0),(0,s.Cg)([(0,u.MZ)({type:[n.A],readOnly:!0})],r.prototype,"loadWarnings",null),r=(0,s.Cg)([(0,p.$)("esri.core.Loadable")],r),r},y=h(l.Z);function c(t){return!(!t||!t.load)}},96360:(t,e,r)=>{r.d(e,{A:()=>d});var s,o=r(31635),i=r(49186),l=r(25482),a=r(10107),n=r(56507),u=(r(44208),r(87811),r(40608)),p=r(16405);let d=s=class extends l.o{constructor(t){super(t),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e&&this.portal?this.portal?.normalizeUrl(`${t}/info/${e}?f=json`):null}get url(){const t=this.portal?.restUrl;return t?t+"/community/groups/"+this.id:null}fetchCategorySchema(t){return this.portal.request(this.url+"/categorySchema",t).then(e=>{const r=e.categorySchema||[];return r.some(t=>"contentCategorySetsGroupQuery.LivingAtlas"===t.source)?this._fetchCategorySchemaSet("LivingAtlas",t):r})}fetchMembers(t){return this.portal.request(this.url+"/users",t)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}toJSON(){throw new i.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new s({sourceJSON:t});return e.read(t),e}queryItems(t,e){let r=(0,n.dp)(p.A,t);const s=this.portal;return parseFloat(s.currentVersion)>5?(r=r||new p.A,s.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",e)):(r=r?r.clone():new p.A,r.query="group:"+this.id+(r.query?" "+r.query:""),s.queryItems(r,e))}_fetchCategorySchemaSet(t,e){const r=this.portal;return r.fetchSelf(r.authMode,!0,e).then(t=>{const s=t.contentCategorySetsGroupQuery;if(s){const t=new p.A({disableExtraQuery:!0,num:1,query:s});return r.queryGroups(t,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")}).then(r=>{if(r.total){const s=r.results[0],o=new p.A({num:1,query:`typekeywords:"${t}"`});return s.queryItems(o,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")}).then(t=>t.total?t.results[0].fetchData("json",e).then(t=>{const e=t?.categorySchema;return e?.length?e:[]}):[])}};(0,o.Cg)([(0,a.MZ)()],d.prototype,"access",void 0),(0,o.Cg)([(0,a.MZ)({type:Date})],d.prototype,"created",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"description",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"id",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"isInvitationOnly",void 0),(0,o.Cg)([(0,a.MZ)({type:Date})],d.prototype,"modified",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"owner",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"portal",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"snippet",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"sortField",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"sortOrder",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"sourceJSON",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"tags",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"thumbnail",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,o.Cg)([(0,a.MZ)()],d.prototype,"title",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"url",null),d=s=(0,o.Cg)([(0,u.$)("esri.portal.PortalGroup")],d)}}]);
@@ -2,7 +2,7 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{deg2rad as e}from"../core/mathUtils.js";import{set as i}from"../core/libs/gl-matrix-2/math/vec2.js";import{create as t}from"../core/libs/gl-matrix-2/factories/vec2f64.js";import{t as n,d as a,n as o,l as r,j as l,c as s,h as c,f as d}from"./vec32.js";import{create as f}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{t as p}from"./vec42.js";import{create as g}from"../core/libs/gl-matrix-2/factories/vec4f64.js";import{pointAt as h}from"../geometry/support/lineSegment.js";import{fromPositionAndNormal as m,create as u}from"../geometry/support/plane.js";import{x as w,e as x,c as v}from"./sphere.js";import{Laserline as P}from"../views/3d/webgl-engine/core/shaderLibrary/Laserline.glsl.js";import{ScreenSpacePass as b}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{Float2PassUniform as D}from"../views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js";import{Float3BindUniform as M}from"../views/3d/webgl-engine/core/shaderModules/Float3BindUniform.js";import{Float3PassUniform as S}from"../views/3d/webgl-engine/core/shaderModules/Float3PassUniform.js";import{Float4PassUniform as C}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{FloatBindUniform as L}from"../views/3d/webgl-engine/core/shaderModules/FloatBindUniform.js";import{FloatPassUniform as j}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as A}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{ShaderBuilder as V}from"../views/webgl/ShaderBuilder.js";const y=e(6);function O(e){const i=new V;i.include(b),i.include(P,e);const t=i.fragment;if(e.lineVerticalPlaneEnabled||e.heightManifoldEnabled)if(t.uniforms.add(new j("maxPixelDistance",(i,t)=>e.heightManifoldEnabled?2*t.camera.computeScreenPixelSizeAt(i.heightManifoldTarget):2*t.camera.computeScreenPixelSizeAt(i.lineVerticalPlaneSegment.origin))),t.code.add(A`float planeDistancePixels(vec4 plane, vec3 pos) {
5
+ import{deg2rad as e}from"../core/mathUtils.js";import{set as i}from"../core/libs/gl-matrix-2/math/vec2.js";import{create as t}from"../core/libs/gl-matrix-2/factories/vec2f64.js";import{t as n,d as a,n as o,l as r,j as l,c as s,h as c,f as d}from"./vec32.js";import{create as f}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{t as p}from"./vec42.js";import{create as g}from"../core/libs/gl-matrix-2/factories/vec4f64.js";import{pointAt as h}from"../geometry/support/lineSegment.js";import{fromPositionAndNormal as m,create as u}from"../geometry/support/plane.js";import{y as w,e as x,c as v}from"./sphere.js";import{Laserline as P}from"../views/3d/webgl-engine/core/shaderLibrary/Laserline.glsl.js";import{ScreenSpacePass as b}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{Float2PassUniform as D}from"../views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js";import{Float3BindUniform as M}from"../views/3d/webgl-engine/core/shaderModules/Float3BindUniform.js";import{Float3PassUniform as S}from"../views/3d/webgl-engine/core/shaderModules/Float3PassUniform.js";import{Float4PassUniform as C}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{FloatBindUniform as L}from"../views/3d/webgl-engine/core/shaderModules/FloatBindUniform.js";import{FloatPassUniform as j}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as A}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{ShaderBuilder as V}from"../views/webgl/ShaderBuilder.js";const y=e(6);function O(e){const i=new V;i.include(b),i.include(P,e);const t=i.fragment;if(e.lineVerticalPlaneEnabled||e.heightManifoldEnabled)if(t.uniforms.add(new j("maxPixelDistance",(i,t)=>e.heightManifoldEnabled?2*t.camera.computeScreenPixelSizeAt(i.heightManifoldTarget):2*t.camera.computeScreenPixelSizeAt(i.lineVerticalPlaneSegment.origin))),t.code.add(A`float planeDistancePixels(vec4 plane, vec3 pos) {
6
6
  float dist = dot(plane.xyz, pos) + plane.w;
7
7
  float width = fwidth(dist);
8
8
  dist /= min(width, maxPixelDistance);