@arcgis/core 5.2.0-next.126 → 5.2.0-next.128

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 (234) hide show
  1. package/WebScene.js +1 -1
  2. package/applications/Components/basemapToggleUtils.d.ts +53 -0
  3. package/applications/Components/basemapToggleUtils.js +2 -0
  4. package/applications/SceneViewer/sceneViewerUtils.d.ts +14 -1
  5. package/applications/SceneViewer/sceneViewerUtils.js +1 -1
  6. package/applications/WebEditor/sketchUtils.js +1 -1
  7. package/arcgisGlobal.d.ts +1 -0
  8. package/assets/esri/core/libs/libtess/libtess-f32.wasm +0 -0
  9. package/assets/esri/core/libs/libtess/libtess-f64.wasm +0 -0
  10. package/assets/esri/core/workers/RemoteClient.js +1 -1
  11. package/assets/esri/core/workers/chunks/{e35eb93c0fb1f6de8db0.js → 00d9e41deecf5828975c.js} +1 -1
  12. package/assets/esri/core/workers/chunks/038d2b80d96237c25b6f.js +1 -0
  13. package/assets/esri/core/workers/chunks/{ab8a1140bf31f46f8ebf.js → 1262918b2161d79851c0.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{d3ef23923424ad8c5048.js → 1c2723f9630e7d597843.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{9ca98fffd43e63d5ade3.js → 1c33aa349beea9a3792f.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{54eeb4cac4fa092359ab.js → 2226c20c38e20713bcb5.js} +2 -2
  17. package/assets/esri/core/workers/chunks/{54eeb4cac4fa092359ab.js.LICENSE.txt → 2226c20c38e20713bcb5.js.LICENSE.txt} +2 -2
  18. package/assets/esri/core/workers/chunks/{4d18451e0ea6ca54101a.js → 2ebad7e588b26e74cefe.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{a8258636096416c837a2.js → 3b7dff15a0058ea29886.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{4716693eca44e8f89f5c.js → 3bf56c33876ba56c4b21.js} +1 -1
  21. package/assets/esri/core/workers/chunks/3c6ee445e49da0076ac1.js +1 -0
  22. package/assets/esri/core/workers/chunks/3f045f09ac95e7f22a97.js +1 -0
  23. package/assets/esri/core/workers/chunks/500f6d6f0ffa235cae85.js +1 -0
  24. package/assets/esri/core/workers/chunks/{56acda1eed3a013430e2.js → 58fb92775d668cfd295c.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{e6637f9176566382ed3e.js → 606cca69eaea84bfcdc6.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{fdbda3d2afea25142b86.js → 6267a1fe1603daa399b4.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{b013b70e40dfb6ce013e.js → 668ec0bdfb2095e90c9e.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{806f96ad09e882be41af.js → 67fd2cdb2e6834bfa710.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{5fe5ef5ccf480634d159.js → 75294f515c7f8393181c.js} +1 -1
  30. package/assets/esri/core/workers/chunks/75879ae88fd87b089a87.js +1 -0
  31. package/assets/esri/core/workers/chunks/761ea719ec1b4d562db2.js +1 -0
  32. package/assets/esri/core/workers/chunks/{24673aac70d6c949b6fa.js → 86d7a3ae672a51b75fcc.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{30604a29df320d7a4c6b.js → 88e11b645a1361f1bdbe.js} +1 -1
  34. package/assets/esri/core/workers/chunks/89dad6c1bfd81e4d7f8e.js +1 -0
  35. package/assets/esri/core/workers/chunks/{8daed13400d9e63e65ae.js → 8a842cde240aef12e417.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{c692e583e87af58f6d91.js → 8b0d6205ceeec1ab446f.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{57ab87e70ef85b9405f9.js → 8cb216404a6254bc695c.js} +1 -0
  38. package/assets/esri/core/workers/chunks/92509dd25996c6390a31.js +1 -0
  39. package/assets/esri/core/workers/chunks/9ccc2c8f7416943cc373.js +29 -0
  40. package/assets/esri/core/workers/chunks/a0a9c41400ae98df1912.js +1 -0
  41. package/assets/esri/core/workers/chunks/{b96358d475dc98034aa4.js → a15ed056e7493ddf3b4c.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{25e212fe9a2ea37c9e81.js → a3a33ffa34f4d645ddfe.js} +1 -1
  43. package/assets/esri/core/workers/chunks/af0704494398f33aa315.js +1 -0
  44. package/assets/esri/core/workers/chunks/{ce1ccf9ec90b786591e5.js → b396c4b4bb144200acc7.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{97602019a1ccad22a03a.js → bbfb80a6983574007ce5.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{d5f72670634e73c0b53a.js → bcf2e5cf6b9c6d0442bb.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{17218d714cb07b607c2f.js → c35e9dee87937f483a3d.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{85739ed6af0f0a3cb302.js → c94bdfed831c775e04c0.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{2e3fd81653dc0d86456c.js → cfeba0ffb7fdc2a9af05.js} +1 -1
  50. package/assets/esri/core/workers/chunks/d1187ad6cc4959683819.js +1 -0
  51. package/assets/esri/core/workers/chunks/d94a2b3b2ef49af9c2e3.js +1 -0
  52. package/assets/esri/core/workers/chunks/{cb7cb7d57c4e7f76600f.js → dc92710a8fdfb9135e55.js} +1 -1
  53. package/assets/esri/core/workers/chunks/ec187933b42fe65594b7.js +1 -0
  54. package/assets/esri/core/workers/chunks/eec5a93dbc258a90b6de.js +1 -0
  55. package/assets/esri/core/workers/chunks/{e1ae83ff3e0225708d4d.js → f479b4a4cee4bb2e046c.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{78abd6c42f39e6f6ffbb.js → f983296b6f4a62a911eb.js} +1 -1
  57. package/assets/esri/images/portal/gaussiansplatlayer16.png +0 -0
  58. package/assets/esri/images/portal/knowledgegraphlayer16.png +0 -0
  59. package/assets/esri/images/portal/propresentation16.png +0 -0
  60. package/assets/esri/images/portal/urbanproject16.png +0 -0
  61. package/assets/esri/images/support/loading-throb.gif +0 -0
  62. package/assets/esri/layers/raster/formats/lerc-wasm.wasm +0 -0
  63. package/assets/esri/themes/base/icons/style.scss +0 -0
  64. package/assets/esri/themes/base/icons/variables.scss +0 -0
  65. package/assets/esri/themes/base/images/files/archive-32.svg +0 -0
  66. package/assets/esri/themes/base/images/files/cad-32.svg +0 -0
  67. package/assets/esri/themes/base/images/files/code-32.svg +0 -0
  68. package/assets/esri/themes/base/images/files/csv-32.svg +0 -0
  69. package/assets/esri/themes/base/images/files/excel-32.svg +0 -0
  70. package/assets/esri/themes/base/images/files/generic-32.svg +0 -0
  71. package/assets/esri/themes/base/images/files/gpx-32.svg +0 -0
  72. package/assets/esri/themes/base/images/files/image-32.svg +0 -0
  73. package/assets/esri/themes/base/images/files/pdf-32.svg +0 -0
  74. package/assets/esri/themes/base/images/files/report-32.svg +0 -0
  75. package/assets/esri/themes/base/images/files/sound-32.svg +0 -0
  76. package/assets/esri/themes/base/images/files/text-32.svg +0 -0
  77. package/assets/esri/themes/base/images/files/video-32.svg +0 -0
  78. package/assets/esri/themes/base/images/files/word-32.svg +0 -0
  79. package/assets/esri/themes/base/images/files/zip-32.svg +0 -0
  80. package/assets/esri/themes/base/images/loading-throb.gif +0 -0
  81. package/assets/esri/themes/base/widgets/_Bookmarks.scss +0 -0
  82. package/assets/esri/themes/base/widgets/_Tooltip.scss +42 -3
  83. package/assets/esri/themes/dark/main.css +1 -1
  84. package/assets/esri/themes/light/main.css +1 -1
  85. package/assets/esri/themes/light/view.css +1 -1
  86. package/assets/esri/views/interactive/tooltip/t9n/messages.en.json +1 -1
  87. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.en.json +1 -1
  88. package/chunks/GlobalIllumination.glsl.js +1 -0
  89. package/config.js +1 -1
  90. package/core/Accessor.d.ts +1 -1
  91. package/core/lang.js +1 -1
  92. package/core/units.js +1 -1
  93. package/geometry/HeightModelInfo.js +1 -1
  94. package/geometry/ellipsoidUtils.js +1 -1
  95. package/geometry/support/heightModelInfoUtils.js +1 -1
  96. package/interfaces.d.ts +1 -0
  97. package/kernel.js +1 -1
  98. package/layers/ElevationLayer.js +1 -1
  99. package/layers/OrientedImageryLayer.js +1 -1
  100. package/layers/ParquetLayer.d.ts +21 -13
  101. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  102. package/layers/graphics/dehydratedFeatures.js +1 -1
  103. package/layers/graphics/transferFeatures.js +2 -0
  104. package/layers/mixins/FeatureLayerBase.js +1 -1
  105. package/layers/mixins/HeightModelInfoMixin.js +2 -0
  106. package/layers/mixins/SceneService.js +1 -1
  107. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  108. package/layers/raster/datasets/RasterFactory.js +1 -1
  109. package/package.json +3 -3
  110. package/popup/FeatureContentCollection.d.ts +15 -25
  111. package/popup/FeatureContentCollection.js +1 -1
  112. package/rest/query/operations/pbfDehydratedFeatureSet.js +1 -1
  113. package/rest/query/operations/pbfFeatureServiceParser.js +1 -1
  114. package/support/revision.js +1 -1
  115. package/symbols/cim/callouts/calloutAnalysisUtils.js +2 -0
  116. package/symbols/cim/callouts/effects/BackgroundCallout.js +1 -1
  117. package/symbols/cim/callouts/effects/BalloonCallout.js +1 -1
  118. package/symbols/cim/callouts/effects/PointSymbolCallout.js +1 -1
  119. package/symbols/cim/callouts/effects/SimpleLineCallout.js +1 -1
  120. package/symbols/cim/callouts/effects/calloutUtils.js +1 -1
  121. package/symbols/cim/cimAnalyzer.js +1 -1
  122. package/views/2d/engine/webgl/ClipMesh.js +1 -1
  123. package/views/2d/engine/webgl/mesh/factories/CalloutMeshWriterCoordinator.js +1 -1
  124. package/views/2d/engine/webgl/mesh/factories/MeshWriterGroupCoordinator.js +1 -1
  125. package/views/2d/engine/webgl/mesh/templates/templateUtils.js +1 -1
  126. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
  127. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedPolyMeshWriters.js +1 -1
  128. package/views/2d/engine/webgl/shaderGraph/techniques/fill/AFillMeshWriter.js +1 -1
  129. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillMeshWriter.js +1 -1
  130. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillMeshWriter.js +1 -1
  131. package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillMeshWriter.js +1 -1
  132. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillMeshWriter.js +1 -1
  133. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillMeshWriter.js +1 -1
  134. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  135. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeMeshWriter.js +1 -1
  136. package/views/2d/engine/webgl/shaderGraph/techniques/line/LineMeshWriter.js +1 -1
  137. package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineMeshWriter.js +1 -1
  138. package/views/2d/engine/webgl/shaderGraph/techniques/markers/ComputedMarkerParams.js +1 -1
  139. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
  140. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/CalloutMeshWriterPolicy.js +1 -1
  141. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
  142. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterReferences.js +1 -1
  143. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  144. package/views/2d/engine/webgl/util/AnnotationMatcher.js +1 -1
  145. package/views/2d/engine/webgl/util/Matcher.js +1 -1
  146. package/views/2d/layers/LayerView2D.js +1 -1
  147. package/views/2d/layers/support/annodime/MatcherGeometryOverride.js +1 -1
  148. package/views/2d/layers/support/annodime/PrivateMatcherGeometryOverrideEffect.js +1 -1
  149. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +1 -1
  150. package/views/3d/analysis/LineOfSight/LineOfSightItemManipulatedObject3D.js +1 -1
  151. package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
  152. package/views/3d/analysis/LineOfSight/LineOfSightPlacementController.js +1 -1
  153. package/views/3d/analysis/LineOfSight/LineOfSightRootPlugin.js +1 -1
  154. package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +1 -1
  155. package/views/3d/analysis/LineOfSight/lineOfSightPlacementUtils.js +1 -1
  156. package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +5 -3
  157. package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
  158. package/views/3d/analysis/Viewshed/ViewshedPlacementRootPlugin.js +1 -1
  159. package/views/3d/camera/constraintUtils/surfaceCollision.js +1 -1
  160. package/views/3d/camera/intersectionUtils.js +1 -1
  161. package/views/3d/interactive/editingTools/manipulatedObjectUtils.js +1 -1
  162. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  163. package/views/3d/interactive/editingTools/tooltipUtils3D.js +1 -1
  164. package/views/3d/layers/I3SMeshView3D.js +1 -1
  165. package/views/3d/layers/graphics/FeatureGraphics3DGraphicsPipeline.js +1 -1
  166. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  167. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  168. package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
  169. package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
  170. package/views/3d/layers/i3s/I3SClientMaterialUtil.js +1 -1
  171. package/views/3d/layers/support/FeatureMemory.js +2 -0
  172. package/views/3d/layers/support/FeatureTile.js +1 -1
  173. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  174. package/views/3d/layers/support/featureReference.js +1 -1
  175. package/views/3d/navigation/modes/GroundNavigationMode3D.js +1 -1
  176. package/views/3d/state/Constraints.js +1 -1
  177. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  178. package/views/3d/state/utils/OffsetCorrectionController.js +1 -1
  179. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  180. package/views/3d/support/PBFDecoder.js +1 -1
  181. package/views/3d/support/PBFDecoderWorker.js +1 -1
  182. package/views/3d/support/QualityProfile.js +1 -1
  183. package/views/3d/support/popupHitTest.js +1 -1
  184. package/views/3d/terrain/TerrainRenderer.js +1 -1
  185. package/views/3d/terrain/TerrainSurface.js +1 -1
  186. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  187. package/views/3d/webgl-engine/materials/stippleTextureRepository.js +1 -1
  188. package/views/DOMContainer.d.ts +2 -2
  189. package/views/DOMContainer.js +1 -1
  190. package/views/PopupView.d.ts +1 -1
  191. package/views/SceneView.js +1 -1
  192. package/views/ToolViewManager.js +1 -1
  193. package/views/interactive/options/TooltipVisibleElements.d.ts +11 -1
  194. package/views/interactive/options/TooltipVisibleElements.js +1 -1
  195. package/views/interactive/tooltip/components/ElevationModeSelect.js +2 -0
  196. package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
  197. package/views/interactive/tooltip/content/TooltipContent.js +1 -1
  198. package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
  199. package/views/interactive/tooltip/infos/SketchTooltipInfo.js +1 -1
  200. package/views/support/hitTestSelectUtils.js +1 -1
  201. package/widgets/BasemapToggle/BasemapToggleViewModel.d.ts +1 -0
  202. package/widgets/BasemapToggle/BasemapToggleViewModel.js +1 -1
  203. package/widgets/BasemapToggle.js +1 -1
  204. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +9 -1
  205. package/widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.js +1 -1
  206. package/widgets/BatchAttributeForm.js +1 -1
  207. package/widgets/DirectionalPad/DirectionalPadViewModel.d.ts +1 -0
  208. package/widgets/DirectionalPad/DirectionalPadViewModel.js +1 -1
  209. package/widgets/DirectionalPad.js +1 -1
  210. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  211. package/widgets/Editor/legacy/UpdateFeatureWorkflow.js +1 -1
  212. package/widgets/Editor/workflowUtils.js +1 -1
  213. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  214. package/widgets/OrientedImageryViewer/utils.js +1 -1
  215. package/widgets/Popup/types.d.ts +0 -7
  216. package/widgets/Popup.d.ts +7 -7
  217. package/widgets/TimeSlider/TimeSliderViewModel.d.ts +2 -0
  218. package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
  219. package/widgets/TimeSlider.js +1 -1
  220. package/assets/esri/core/workers/chunks/0a2b7c691a577cb3d189.js +0 -1
  221. package/assets/esri/core/workers/chunks/2146c25c01c9fc11b16c.js +0 -1
  222. package/assets/esri/core/workers/chunks/4678a8170d8a3ccd1a7b.js +0 -1
  223. package/assets/esri/core/workers/chunks/56e97b98dcb8a3f2bcb7.js +0 -1
  224. package/assets/esri/core/workers/chunks/6c3535aa7250c08b9e5b.js +0 -1
  225. package/assets/esri/core/workers/chunks/6e75f09fb9452bd5f9fb.js +0 -1
  226. package/assets/esri/core/workers/chunks/7441d121f00ce747c08e.js +0 -1
  227. package/assets/esri/core/workers/chunks/76548469fe1b9c3b2051.js +0 -1
  228. package/assets/esri/core/workers/chunks/82ce034b5ba54de9b970.js +0 -29
  229. package/assets/esri/core/workers/chunks/ba435cc73956d9c64a11.js +0 -1
  230. package/assets/esri/core/workers/chunks/c77496c350004ee66eb2.js +0 -1
  231. package/assets/esri/core/workers/chunks/d371d9279b30548efa02.js +0 -1
  232. package/assets/esri/core/workers/chunks/dc52e036547612949d32.js +0 -1
  233. package/assets/esri/core/workers/chunks/e5ee64e2fb5bfcb716d8.js +0 -1
  234. package/views/2d/engine/webgl/mesh/bufcut.js +0 -2
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[909],{92009(e,a,r){r.d(a,{L:()=>u});var t=r(70333),n=r(56507),l=r(49186),i=r(17676),s=r(60694),o=r(20655),y=r(80812);async function u(e,a){const r=(0,s.qg)(e);if(!r)throw new l.A("invalid-url","Invalid scene service url");const u={...a,sceneServerUrl:r.url.path,layerId:r.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const a=(await c(e)).serviceItemId;if(!a)return null;const r=new y.default({id:a,apiKey:e.apiKey}),l=await async function(e){const a=t.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const r=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,n.A)(r,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,i.QP)(e)}return null}(e);null!=l&&(r.portal=new o.A({url:l}));try{return await r.load({signal:e.signal})}catch(e){return(0,i.QP)(e),null}}(u),null==u.sceneLayerItem)return f(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const d=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const r=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!r)return null;const t=new y.default({portal:r.portal,id:r.id});return await t.load(),t}catch(e){return(0,i.QP)(e),null}}(u);if(!d?.url)throw new l.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=d;const m=await f(d.url,u);return m.portalItem=d,m}async function c(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const r=await(0,n.A)(e.sceneServerUrl,a);e.rootDocument=r.data}catch{e.rootDocument={}}return e.rootDocument}async function f(e,a){const r=(0,s.qg)(e);if(!r)throw new l.A("invalid-feature-service-url","Invalid feature service url");const t=r.url.path,i=a.layerId;if(null==i)return{serverUrl:t};const o=c(a),y=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(y?.layers?.[0]||y?.tables?.[0])?.customParameters,f=e=>{const r={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.A)(t,r)},d=f("anonymous").catch(()=>f("no-prompt")),[m,w]=await Promise.all([d,o]),L=w?.layers,h=m.data&&m.data.layers;if(!Array.isArray(h))throw new Error("expected layers array");if(Array.isArray(L)){for(let e=0;e<Math.min(L.length,h.length);e++)if(L[e].id===i)return{serverUrl:t,layerId:h[e].id}}else if(null!=i&&i<h.length)return{serverUrl:t,layerId:h[i].id};throw new Error("could not find matching associated sublayer")}},23154(e,a,r){r.d(a,{A6:()=>s,Aq:()=>w,Jo:()=>m,QM:()=>i});var t=r(77548),n=r(7861);const l=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function i(e,a){const{serviceJSON:r,layersJSON:t,...n}=await s(e,a);u(r);const l={serviceJSON:r,...n};return t&&(u(t),l.layersJSON=t),l}async function s(e,a){const{loadContext:r,...l}=a||{},i=r?await r.fetchServiceMetadata(e,l):await(0,n.L)(e,l),s=(0,t.G$)();d(i);const o={serviceJSON:i,preferredHost:s};if((i.currentVersion??0)<10.5)return o;const y=`${(0,t.$x)()??e}/layers`,u=r?await r.fetchServiceMetadata(y,l):await(0,n.L)(y,l);return d(u),o.layersJSON={layers:u.layers,tables:u.tables},o}function o(e){return l.has(e.type)}function y(e){return"Table"===e.type}function u(e){e.layers=e.layers?.filter(o),e.tables=e.tables?.filter(y)}function c(e){e.type||="Feature Layer"}function f(e){e.type||="Table"}function d(e){e.layers?.forEach(c),e.tables?.forEach(f)}function m(e){if(!e)return"FeatureLayer";switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationFeatureLayer"}return null}function w(e,a){if(!e)return a?"Table":"ArcGISFeatureLayer";switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Feature Layer":return"ArcGISFeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Table":return"Table";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer";default:return null}}},2976(e,a,r){const t={AnnotationFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(2889),r.e(5278),r.e(4674),r.e(7283),r.e(1954)]).then(()=>r(20737))).default,BingMapsLayer:async()=>(await Promise.all([r.e(6914),r.e(7865),r.e(5732),r.e(6684)]).then(()=>r(17029))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(5620),r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(7005),r.e(9480),r.e(2629),r.e(647)]).then(()=>r(82411))).default,CSVLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(3813)]).then(()=>r(68695))).default,CatalogLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(9789),r.e(4674),r.e(893),r.e(7283),r.e(7013),r.e(7067),r.e(7925)]).then(()=>r(83508))).default,DimensionFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(2889),r.e(5278),r.e(4674),r.e(7283),r.e(3376)]).then(()=>r(25077))).default,DimensionLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(6619)]).then(()=>r(71493))).default,ElevationLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9953),r.e(8732),r.e(2231)]).then(()=>r(38732))).default,FeatureLayer:async()=>(await Promise.all([r.e(5620),r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(3075)]).then(()=>r(18589))).default,GaussianSplatLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(1133),r.e(6475)]).then(()=>r(36475))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(903)]).then(()=>r(15481))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2363)]).then(()=>r(63201))).default,GeospatialPDFLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9187),r.e(8885),r.e(9117),r.e(7865),r.e(2292),r.e(9953),r.e(564),r.e(3299),r.e(2869),r.e(3910),r.e(5130),r.e(2754),r.e(8605),r.e(9859),r.e(5485),r.e(4642),r.e(4907)]).then(()=>r(44907))).default,GroupLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(9866),r.e(6569)]).then(()=>r(85989))).default,ImageryLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(893),r.e(5130),r.e(8605),r.e(2254),r.e(7772),r.e(8768)]).then(()=>r(87772))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(5130),r.e(2754),r.e(8605),r.e(9859),r.e(9235),r.e(2254),r.e(1003),r.e(2806),r.e(7870)]).then(()=>r(90124))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9953),r.e(1133),r.e(6451),r.e(8241)]).then(()=>r(61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9953),r.e(7552),r.e(7005),r.e(9480),r.e(1133),r.e(5847),r.e(1859),r.e(6451),r.e(1721)]).then(()=>r(49013))).default,KMLLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(564),r.e(2869),r.e(3910),r.e(1214),r.e(5051),r.e(4473),r.e(8273)]).then(()=>r(162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(9789),r.e(9696),r.e(359),r.e(5752),r.e(3902),r.e(4720),r.e(4934),r.e(8692)]).then(()=>r(28692))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(3888),r.e(9695)]).then(()=>r(49695))).default,LinkChartLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(9789),r.e(9696),r.e(359),r.e(5752),r.e(3902),r.e(4720),r.e(4934),r.e(3309)]).then(()=>r(93309))).default,MapImageLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(4674),r.e(893),r.e(8470),r.e(1474)]).then(()=>r(7656))).default,MapNotesLayer:async()=>(await Promise.all([r.e(5620),r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(4720),r.e(2469)]).then(()=>r(96299))).default,MediaLayer:async()=>(await Promise.all([r.e(5620),r.e(9917),r.e(6914),r.e(7865),r.e(5485),r.e(528)]).then(()=>r(99557))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(2629),r.e(5977)]).then(()=>r(65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(919),r.e(349)]).then(()=>r(40349))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(5620),r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(6854)]).then(()=>r(16852))).default,ParquetLayer:async()=>(await Promise.all([r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(3661),r.e(7320),r.e(99)]).then(()=>r(99680))).default,PointCloudLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2869),r.e(7984),r.e(7515)]).then(()=>r(77885))).default,RouteLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(564),r.e(2869),r.e(3910),r.e(1214),r.e(5051),r.e(4473),r.e(2561)]).then(()=>r(39622))).default,SceneLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2292),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(7005),r.e(9480),r.e(2629),r.e(1086)]).then(()=>r(2e4))).default,StreamLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(8593)]).then(()=>r(79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(5620),r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(2889),r.e(5278),r.e(9789),r.e(4674),r.e(7283),r.e(4451)]).then(()=>r(97483))).default,TileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(4674),r.e(893),r.e(8470),r.e(6200)]).then(()=>r(71756))).default,UnknownLayer:async()=>(await Promise.all([r.e(9917),r.e(3928)]).then(()=>r(146))).default,UnsupportedLayer:async()=>(await Promise.all([r.e(9917),r.e(2819)]).then(()=>r(45165))).default,VectorTileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(9953),r.e(5228),r.e(8744),r.e(8659)]).then(()=>r(50638))).default,VideoLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(3910),r.e(4674),r.e(2565)]).then(()=>r(86875))).default,ViewshedLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(3888),r.e(6650)]).then(()=>r(96650))).default,VoxelLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2869),r.e(4443)]).then(()=>r(21005))).default,WCSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(5130),r.e(2754),r.e(8605),r.e(9859),r.e(9235),r.e(2254),r.e(2806),r.e(2061)]).then(()=>r(20521))).default,WFSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(5411)]).then(()=>r(21901))).default,WMSLayer:async()=>(await Promise.all([r.e(5620),r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(2869),r.e(3910),r.e(805)]).then(()=>r(51904))).default,WMTSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(919),r.e(309)]).then(()=>r(20309))).default,WebTileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(919)]).then(()=>r(47314))).default};r.d(a,["U",0,t])},7861(e,a,r){r.d(a,{L:()=>n});var t=r(56507);async function n(e,a){return(await(0,t.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[909],{92009(e,a,r){r.d(a,{L:()=>u});var t=r(70333),n=r(56507),l=r(49186),i=r(17676),s=r(60694),o=r(20655),y=r(80812);async function u(e,a){const r=(0,s.qg)(e);if(!r)throw new l.A("invalid-url","Invalid scene service url");const u={...a,sceneServerUrl:r.url.path,layerId:r.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const a=(await c(e)).serviceItemId;if(!a)return null;const r=new y.default({id:a,apiKey:e.apiKey}),l=await async function(e){const a=t.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const r=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,n.A)(r,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,i.QP)(e)}return null}(e);null!=l&&(r.portal=new o.A({url:l}));try{return await r.load({signal:e.signal})}catch(e){return(0,i.QP)(e),null}}(u),null==u.sceneLayerItem)return f(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const d=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const r=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!r)return null;const t=new y.default({portal:r.portal,id:r.id});return await t.load(),t}catch(e){return(0,i.QP)(e),null}}(u);if(!d?.url)throw new l.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=d;const m=await f(d.url,u);return m.portalItem=d,m}async function c(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const r=await(0,n.A)(e.sceneServerUrl,a);e.rootDocument=r.data}catch{e.rootDocument={}}return e.rootDocument}async function f(e,a){const r=(0,s.qg)(e);if(!r)throw new l.A("invalid-feature-service-url","Invalid feature service url");const t=r.url.path,i=a.layerId;if(null==i)return{serverUrl:t};const o=c(a),y=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(y?.layers?.[0]||y?.tables?.[0])?.customParameters,f=e=>{const r={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.A)(t,r)},d=f("anonymous").catch(()=>f("no-prompt")),[m,w]=await Promise.all([d,o]),L=w?.layers,h=m.data&&m.data.layers;if(!Array.isArray(h))throw new Error("expected layers array");if(Array.isArray(L)){for(let e=0;e<Math.min(L.length,h.length);e++)if(L[e].id===i)return{serverUrl:t,layerId:h[e].id}}else if(null!=i&&i<h.length)return{serverUrl:t,layerId:h[i].id};throw new Error("could not find matching associated sublayer")}},23154(e,a,r){r.d(a,{A6:()=>s,Aq:()=>w,Jo:()=>m,QM:()=>i});var t=r(77548),n=r(7861);const l=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function i(e,a){const{serviceJSON:r,layersJSON:t,...n}=await s(e,a);u(r);const l={serviceJSON:r,...n};return t&&(u(t),l.layersJSON=t),l}async function s(e,a){const{loadContext:r,...l}=a||{},i=r?await r.fetchServiceMetadata(e,l):await(0,n.L)(e,l),s=(0,t.G$)();d(i);const o={serviceJSON:i,preferredHost:s};if((i.currentVersion??0)<10.5)return o;const y=`${(0,t.$x)()??e}/layers`,u=r?await r.fetchServiceMetadata(y,l):await(0,n.L)(y,l);return d(u),o.layersJSON={layers:u.layers,tables:u.tables},o}function o(e){return l.has(e.type)}function y(e){return"Table"===e.type}function u(e){e.layers=e.layers?.filter(o),e.tables=e.tables?.filter(y)}function c(e){e.type||="Feature Layer"}function f(e){e.type||="Table"}function d(e){e.layers?.forEach(c),e.tables?.forEach(f)}function m(e){if(!e)return"FeatureLayer";switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationFeatureLayer"}return null}function w(e,a){if(!e)return a?"Table":"ArcGISFeatureLayer";switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Feature Layer":return"ArcGISFeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Table":return"Table";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer";default:return null}}},2976(e,a,r){const t={AnnotationFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(2889),r.e(5278),r.e(4674),r.e(7283),r.e(1954)]).then(()=>r(20737))).default,BingMapsLayer:async()=>(await Promise.all([r.e(6914),r.e(7865),r.e(5732),r.e(6684)]).then(()=>r(17029))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(7005),r.e(9480),r.e(2629),r.e(647)]).then(()=>r(82411))).default,CSVLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(3813)]).then(()=>r(68695))).default,CatalogLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(9789),r.e(4674),r.e(893),r.e(7283),r.e(7013),r.e(7067),r.e(7925)]).then(()=>r(83508))).default,DimensionFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(2889),r.e(5278),r.e(4674),r.e(7283),r.e(3376)]).then(()=>r(25077))).default,DimensionLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(6619)]).then(()=>r(71493))).default,ElevationLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9953),r.e(8732),r.e(2231)]).then(()=>r(38732))).default,FeatureLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(3075)]).then(()=>r(18589))).default,GaussianSplatLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(1133),r.e(6475)]).then(()=>r(36475))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(903)]).then(()=>r(15481))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2363)]).then(()=>r(63201))).default,GeospatialPDFLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9187),r.e(8885),r.e(9117),r.e(7865),r.e(2292),r.e(9953),r.e(564),r.e(3299),r.e(2869),r.e(3910),r.e(5130),r.e(2754),r.e(8605),r.e(9859),r.e(5485),r.e(4642),r.e(4907)]).then(()=>r(44907))).default,GroupLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(9866),r.e(6569)]).then(()=>r(85989))).default,ImageryLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(893),r.e(5130),r.e(8605),r.e(2254),r.e(7772),r.e(8768)]).then(()=>r(87772))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(5130),r.e(2754),r.e(8605),r.e(9859),r.e(9235),r.e(2254),r.e(1003),r.e(2806),r.e(7870)]).then(()=>r(90124))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9953),r.e(1133),r.e(6451),r.e(8241)]).then(()=>r(61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9953),r.e(7552),r.e(7005),r.e(9480),r.e(1133),r.e(5847),r.e(1859),r.e(6451),r.e(1379)]).then(()=>r(49013))).default,KMLLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(564),r.e(2869),r.e(3910),r.e(1214),r.e(5051),r.e(4473),r.e(8273)]).then(()=>r(162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(9789),r.e(9696),r.e(359),r.e(5752),r.e(3902),r.e(4720),r.e(4934),r.e(8692)]).then(()=>r(28692))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(3888),r.e(9695)]).then(()=>r(49695))).default,LinkChartLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(9789),r.e(9696),r.e(359),r.e(5752),r.e(3902),r.e(4720),r.e(4934),r.e(3309)]).then(()=>r(93309))).default,MapImageLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(4674),r.e(893),r.e(8470),r.e(1474)]).then(()=>r(7656))).default,MapNotesLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(4720),r.e(2469)]).then(()=>r(96299))).default,MediaLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5485),r.e(528)]).then(()=>r(99557))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(2629),r.e(5977)]).then(()=>r(65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(919),r.e(349)]).then(()=>r(40349))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(6854)]).then(()=>r(16852))).default,ParquetLayer:async()=>(await Promise.all([r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(3661),r.e(7320),r.e(99)]).then(()=>r(99680))).default,PointCloudLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2869),r.e(7984),r.e(7515)]).then(()=>r(77885))).default,RouteLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(564),r.e(2869),r.e(3910),r.e(1214),r.e(5051),r.e(4473),r.e(2561)]).then(()=>r(39622))).default,SceneLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2292),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(7005),r.e(9480),r.e(2629),r.e(5854)]).then(()=>r(2e4))).default,StreamLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(8593)]).then(()=>r(79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(2889),r.e(5278),r.e(9789),r.e(4674),r.e(7283),r.e(4451)]).then(()=>r(97483))).default,TileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(4674),r.e(893),r.e(8470),r.e(6200)]).then(()=>r(71756))).default,UnknownLayer:async()=>(await Promise.all([r.e(9917),r.e(3928)]).then(()=>r(146))).default,UnsupportedLayer:async()=>(await Promise.all([r.e(9917),r.e(2819)]).then(()=>r(45165))).default,VectorTileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(9953),r.e(5228),r.e(8744),r.e(8659)]).then(()=>r(50638))).default,VideoLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(3910),r.e(4674),r.e(2565)]).then(()=>r(86875))).default,ViewshedLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(3888),r.e(6650)]).then(()=>r(96650))).default,VoxelLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2869),r.e(4443)]).then(()=>r(21005))).default,WCSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(5130),r.e(2754),r.e(8605),r.e(9859),r.e(9235),r.e(2254),r.e(2806),r.e(2061)]).then(()=>r(20521))).default,WFSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(9953),r.e(564),r.e(2869),r.e(3910),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(4473),r.e(5278),r.e(1017),r.e(5411)]).then(()=>r(21901))).default,WMSLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(2292),r.e(5732),r.e(2869),r.e(3910),r.e(805)]).then(()=>r(51904))).default,WMTSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(919),r.e(309)]).then(()=>r(20309))).default,WebTileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(919)]).then(()=>r(47314))).default};r.d(a,["U",0,t])},7861(e,a,r){r.d(a,{L:()=>n});var t=r(56507);async function n(e,a){return(await(0,t.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3981],{32488(t,e,n){n.d(e,{A:()=>M});const s=[["(",")"],[")","("],["<",">"],[">","<"],["[","]"],["]","["],["{","}"],["}","{"],["«","»"],["»","«"],["‹","›"],["›","‹"],["⁽","⁾"],["⁾","⁽"],["₍","₎"],["₎","₍"],["≤","≥"],["≥","≤"],["〈","〉"],["〉","〈"],["﹙","﹚"],["﹚","﹙"],["﹛","﹜"],["﹜","﹛"],["﹝","﹞"],["﹞","﹝"],["﹤","﹥"],["﹥","﹤"]],i=["آ","أ","إ","ا"],r=["ﻵ","ﻷ","ﻹ","ﻻ"],o=["ﻶ","ﻸ","ﻺ","ﻼ"],a=["ا","ب","ت","ث","ج","ح","خ","د","ذ","ر","ز","س","ش","ص","ض","ط","ظ","ع","غ","ف","ق","ك","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ی","ئ","ؤ"],h=["ﺍ","ﺏ","ﺕ","ﺙ","ﺝ","ﺡ","ﺥ","ﺩ","ﺫ","ﺭ","ﺯ","ﺱ","ﺵ","ﺹ","ﺽ","ﻁ","ﻅ","ﻉ","ﻍ","ﻑ","ﻕ","ﻙ","ﻝ","ﻡ","ﻥ","ﻩ","ﻭ","ﻱ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯼ","ﺉ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺉ","ﺅ"],l=["ﺎ","ﺐ","ﺖ","ﺚ","ﺞ","ﺢ","ﺦ","ﺪ","ﺬ","ﺮ","ﺰ","ﺲ","ﺶ","ﺺ","ﺾ","ﻂ","ﻆ","ﻊ","ﻎ","ﻒ","ﻖ","ﻚ","ﻞ","ﻢ","ﻦ","ﻪ","ﻮ","ﻲ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯽ","ﺊ","ﺆ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺊ","ﺆ"],c=["ﺎ","ﺒ","ﺘ","ﺜ","ﺠ","ﺤ","ﺨ","ﺪ","ﺬ","ﺮ","ﺰ","ﺴ","ﺸ","ﺼ","ﻀ","ﻄ","ﻈ","ﻌ","ﻐ","ﻔ","ﻘ","ﻜ","ﻠ","ﻤ","ﻨ","ﻬ","ﻮ","ﻴ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯿ","ﺌ","ﺆ","ﹱ","ﹲ","ﹴ","ﹷ","ﹹ","ﹻ","ﹽ","ﹿ","ﺀ","ﺌ","ﺆ"],u=["ﺍ","ﺑ","ﺗ","ﺛ","ﺟ","ﺣ","ﺧ","ﺩ","ﺫ","ﺭ","ﺯ","ﺳ","ﺷ","ﺻ","ﺿ","ﻃ","ﻇ","ﻋ","ﻏ","ﻓ","ﻗ","ﻛ","ﻟ","ﻣ","ﻧ","ﻫ","ﻭ","ﻳ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯾ","ﺋ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺋ","ﺅ"],f=["ء","آ","أ","ؤ","إ","ا","ة","د","ذ","ر","ز","و","ى"],d=["ً","ً","ٌ","؟","ٍ","؟","َ","َ","ُ","ُ","ِ","ِ","ّ","ّ","ْ","ْ","ء","آ","آ","أ","أ","ؤ","ؤ","إ","إ","ئ","ئ","ئ","ئ","ا","ا","ب","ب","ب","ب","ة","ة","ت","ت","ت","ت","ث","ث","ث","ث","ج","ج","ج","ج","ح","ح","ح","ح","خ","خ","خ","خ","د","د","ذ","ذ","ر","ر","ز","ز","س","س","س","س","ش","ش","ش","ش","ص","ص","ص","ص","ض","ض","ض","ض","ط","ط","ط","ط","ظ","ظ","ظ","ظ","ع","ع","ع","ع","غ","غ","غ","غ","ف","ف","ف","ف","ق","ق","ق","ق","ك","ك","ك","ك","ل","ل","ل","ل","م","م","م","م","ن","ن","ن","ن","ه","ه","ه","ه","و","و","ى","ى","ي","ي","ي","ي","ﻵ","ﻶ","ﻷ","ﻸ","ﻹ","ﻺ","ﻻ","ﻼ","؟","؟","؟"],g=["ء","ف"],y=["غ","ي"],p=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],x=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],_=10,m=11,I=12,P=18,b=["UBAT_L","UBAT_R","UBAT_EN","UBAT_AN","UBAT_ON","UBAT_B","UBAT_S","UBAT_AL","UBAT_WS","UBAT_CS","UBAT_ES","UBAT_ET","UBAT_NSM","UBAT_LRE","UBAT_RLE","UBAT_PDF","UBAT_LRO","UBAT_RLO","UBAT_BN"],w=[100,0,0,0,0,101,102,103,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,104,4,4,4,0,4,0,4,0,4,4,4,0,0,4,4,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,0,0,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,105,7,7,106,107],T=[[P,P,P,P,P,P,P,P,P,6,5,6,8,5,P,P,P,P,P,P,P,P,P,P,P,P,P,P,5,5,5,6,8,4,4,m,m,m,4,4,4,4,4,_,9,_,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,P,P,P,P,P,P,5,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,9,4,m,m,m,m,4,4,4,4,0,4,4,P,4,4,m,m,2,2,4,0,4,4,4,2,0,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,4,4,4,4,4,4,4,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,1,I,1,I,I,1,I,I,1,I,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4],[3,3,3,3,4,4,4,4,7,m,m,7,9,7,4,4,I,I,I,I,I,I,I,I,I,I,I,7,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,3,3,3,3,3,3,3,3,3,3,m,3,3,7,7,7,I,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,I,I,I,I,I,I,I,3,4,I,I,I,I,I,I,7,7,I,I,4,I,I,I,I,7,7,2,2,2,2,2,2,2,2,2,2,7,7,7,7,7,7],[7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,7,7,I,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,I,I,I,I,I,I,I,I,I,I,I,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,I,I,I,I,I,I,I,I,I,1,1,4,4,4,4,1,4,4,4,4,4],[8,8,8,8,8,8,8,8,8,8,8,P,P,P,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,m,m,m,m,m,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,P,P,P,P,P,4,4,4,4,4,P,P,P,P,P,P,2,0,4,4,2,2,2,2,2,2,_,_,4,4,4,0,2,2,2,2,2,2,2,2,2,2,_,_,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4],[0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,4,4,4,4,4,1,I,1,1,1,1,1,1,1,1,1,1,_,1,1,1,1,1,1,1,1,1,1,1,1,1,4,1,1,1,1,1,4,1,4,1,1,4,1,1,4,1,1,1,1,1,1,1,1,1,1,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7],[I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,I,I,I,I,I,I,I,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,9,4,4,9,4,4,4,4,4,4,4,4,4,m,4,4,_,_,4,4,4,4,4,m,m,4,4,4,4,4,7,7,7,7,7,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,P],[4,4,4,m,m,m,4,4,4,4,4,_,9,_,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,4,4,4,m,m,4,4,4,m,m,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4]];class M{constructor(){this.inputFormat="ILYNN",this.outputFormat="VLNNN",this.sourceToTarget=[],this.targetToSource=[],this.levels=[]}bidiTransform(t,e,n){if(this.sourceToTarget=[],this.targetToSource=[],!t)return"";if(function(t,e,n){j=[],J=[];for(let s=0;s<n;s++)t[s]=s,e[s]=s,j[s]=s}(this.sourceToTarget,this.targetToSource,t.length),!this.checkParameters(e,n))return t;e=this.inputFormat,n=this.outputFormat;let s=t;const a=H,c=W(e.charAt(1)),f=W(n.charAt(1)),g=(e.startsWith("I")?"L":e.charAt(0))+c,y=(n.startsWith("I")?"L":n.charAt(0))+f,p=e.charAt(2)+n.charAt(2);a.defInFormat=g,a.defOutFormat=y,a.defSwap=p;const x=A(t,g,y,p,a);let _=!1;return"R"===n.charAt(1)?_=!0:"C"!==n.charAt(1)&&"D"!==n.charAt(1)||(_="rtl"===this.checkContextual(x)),this.sourceToTarget=j,this.targetToSource=function(t){const e=new Array(t.length);for(let n=0;n<t.length;n++)e[t[n]]=n;return e}(this.sourceToTarget),K=this.targetToSource,s=e.charAt(3)===n.charAt(3)?x:"S"===n.charAt(3)?function(t,e){if(0===e.length)return"";void 0===t&&(t=!0);const n=(e=String(e)).split("");let s=0,i=1,a=n.length;t||(s=n.length-1,i=-1,a=1);const c=function(t,e,n,s){let i=0;const a=[];let c=0;for(let f=e;f*n<s;f+=n)if(z(t[f])||G(t[f])){if("ل"===t[f]&&D(t,f+n,n,s)){t[f]=Y(t[f+n],0===i?r:o),f+=n,Z(t,f,n,s),a[c]=f,c++,i=0;continue}const e=t[f];1===i?t[f]=V(t,f+n,n,s)?O(t[f]):E(t[f],l):!0===V(t,f+n,n,s)?t[f]=E(t[f],u):t[f]=E(t[f],h),G(e)||(i=1),!0===U(e)&&(i=0)}else i=0;return a}(n,s,i,a);let f="";for(let e=0;e<n.length;e++)B(c,c.length,e)>-1?(q(K,e,!t,-1),j.splice(e,1)):f+=n[e];return f}(_,x):function(t,e){if(0===t.length)return"";void 0===e&&(e=!0);let n="";const s=(t=String(t)).split("");for(let r=0;r<t.length;r++){let o=!1;if(s[r]>="ﹰ"&&s[r]<"\ufeff"){const a=t.charCodeAt(r);s[r]>="ﻵ"&&s[r]<="ﻼ"?(e?(r>0&&" "===s[r-1]?n=n.slice(0,-1)+"ل":(n+="ل",o=!0),n+=i[(a-65269)/2]):(n+=i[(a-65269)/2],n+="ل",r+1<t.length&&" "===s[r+1]?r++:o=!0),o&&(q(K,r,!0,1),j.splice(r,0,j[r]))):n+=d[a-65136]}else n+=s[r]}return n}(x,_),this.sourceToTarget=j,this.targetToSource=K,this.levels=J,s}_inputFormatSetter(t){if(!et.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.inputFormat=t}_outputFormatSetter(t){if(!et.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.outputFormat=t}checkParameters(t,e){return t?this._inputFormatSetter(t):t=this.inputFormat,e?this._outputFormatSetter(e):e=this.outputFormat,t!==e}checkContextual(t){let e=S(t);if("ltr"!==e&&"rtl"!==e){try{e=document.dir.toLowerCase()}catch(t){}"ltr"!==e&&"rtl"!==e&&(e="ltr")}return e}hasBidiChar(t){return nt.test(t)}}function A(t,e,n,s,i){const r=function(t,e,n){if(void 0===e.inFormat&&(e.inFormat=n.defInFormat),void 0===e.outFormat&&(e.outFormat=n.defOutFormat),void 0===e.swap&&(e.swap=n.defSwap),e.inFormat===e.outFormat)return e;const s=e.inFormat.slice(0,1),i=e.outFormat.slice(0,1);let r,o=e.inFormat.slice(1,4),a=e.outFormat.slice(1,4);return o.startsWith("C")&&(r=S(t),o="ltr"===r||"rtl"===r?r.toUpperCase():"L"===e.inFormat.charAt(2)?"LTR":"RTL",e.inFormat=s+o),a.startsWith("C")&&(r=S(t),"rtl"===r?a="RTL":"ltr"===r?(r=function(t){const e=t.split("");return e.reverse(),S(e.join(""))}(t),a=r.toUpperCase()):a="L"===e.outFormat.charAt(2)?"LTR":"RTL",e.outFormat=i+a),e}(t,{inFormat:e,outFormat:n,swap:s},i);if(r.inFormat===r.outFormat)return t;e=r.inFormat,n=r.outFormat,s=r.swap;const o=e.slice(0,1),a=e.slice(1,4),h=n.slice(0,1),l=n.slice(1,4);if(i.inFormat=e,i.outFormat=n,i.swap=s,"L"===o&&"VLTR"===n){if("LTR"===a)return i.dir=X,L(t,i);if("RTL"===a)return i.dir=tt,L(t,i)}if("V"===o&&"V"===h)return i.dir="RTL"===a?tt:X,N(t,i);if("L"===o&&"VRTL"===n)return"LTR"===a?(i.dir=X,t=L(t,i)):(i.dir=tt,t=L(t,i)),N(t);if("VLTR"===e&&"LLTR"===n)return i.dir=X,L(t,i);if("V"===o&&"L"===h&&a!==l)return t=N(t),"RTL"===a?A(t,"LLTR","VLTR",s,i):A(t,"LRTL","VRTL",s,i);if("VRTL"===e&&"LRTL"===n)return A(t,"LRTL","VRTL",s,i);if("L"===o&&"L"===h){const e=i.swap;return i.swap=e.slice(0,1)+"N","RTL"===a?(i.dir=tt,t=L(t,i),i.swap="N"+e.slice(1,3),i.dir=X,t=L(t,i)):(i.dir=X,t=L(t,i),i.swap="N"+e.slice(1,3),t=A(t,"VLTR","LRTL",i.swap,i)),t}return t}function S(t){const e=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(t);return e?e[0]<="z"?"ltr":"rtl":""}function L(t,e){const n=t.split(""),s=[];return v(n,s,e),function(t,e,n){if(0!==n.hiLevel&&n.swap[0]!==n.swap[1])for(let n=0;n<t.length;n++)1===e[n]&&(t[n]=F(t[n]))}(n,s,e),R(2,n,s,e),R(1,n,s,e),J=s,n.join("")}function v(t,e,n){const s=t.length,i=n.dir?x:p;let r=0,o=-1;const a=[],h=[];n.hiLevel=n.dir,n.lastArabic=!1,n.hasUbatAl=!1,n.hasUbatB=!1,n.hasUbatS=!1;for(let e=0;e<s;e++)a[e]=k(t[e]);for(let l=0;l<s;l++){const s=r,c=C(t,a,h,l,n);h[l]=c,r=i[s][c];const u=240&r;r&=15;const f=i[r][Q];if(e[l]=f,u>0)if(16===u){for(let t=o;t<l;t++)e[t]=1;o=-1}else o=-1;if(i[r][$])-1===o&&(o=l);else if(o>-1){for(let t=o;t<l;t++)e[t]=f;o=-1}5===a[l]&&(e[l]=0),n.hiLevel|=f}n.hasUbatS&&function(t,e,n,s){for(let i=0;i<n;i++)if(6===t[i]){e[i]=s.dir;for(let n=i-1;n>=0&&8===t[n];n--)e[n]=s.dir}}(a,e,s,n)}function k(t){const e=t.charCodeAt(0),n=w[e>>8];return n<100?n:T[n-100][255&e]}function N(t,e){const n=t.split("");if(e){const t=[];v(n,t,e),J=t}return n.reverse(),j.reverse(),n.join("")}function B(t,e,n){for(let s=0;s<e;s++)if(t[s]===n)return s;return-1}function z(t){for(let e=0;e<g.length;e++)if(t>=g[e]&&t<=y[e])return!0;return!1}function V(t,e,n,s){for(;e*n<s&&G(t[e]);)e+=n;return!!(e*n<s&&z(t[e]))}function D(t,e,n,s){for(;e*n<s&&G(t[e]);)e+=n;let r=" ";if(!(e*n<s))return!1;r=t[e];for(let t=0;t<i.length;t++)if(i[t]===r)return!0;return!1}function R(t,e,n,s){if(s.hiLevel<t)return;if(1===t&&s.dir===tt&&!s.hasUbatB)return e.reverse(),void j.reverse();const i=e.length;let r,o,a,h,l,c=0;for(;c<i;){if(n[c]>=t){for(r=c+1;r<i&&n[r]>=t;)r++;for(o=c,a=r-1;o<a;o++,a--)h=e[o],e[o]=e[a],e[a]=h,l=j[o],j[o]=j[a],j[a]=l;c=r}c++}}function C(t,e,n,s,i){const r=e[s];return{UBAT_L:()=>(i.lastArabic=!1,0),UBAT_R:()=>(i.lastArabic=!1,1),UBAT_ON:()=>4,UBAT_AN:()=>3,UBAT_EN:()=>i.lastArabic?3:2,UBAT_AL:()=>(i.lastArabic=!0,i.hasUbatAl=!0,1),UBAT_WS:()=>4,UBAT_CS:()=>{let t,r;return s<1||s+1>=e.length||2!==(t=n[s-1])&&3!==t||2!==(r=e[s+1])&&3!==r?4:(i.lastArabic&&(r=3),r===t?r:4)},UBAT_ES:()=>2===(s>0?n[s-1]:5)&&s+1<e.length&&2===e[s+1]?2:4,UBAT_ET:()=>{if(s>0&&2===n[s-1])return 2;if(i.lastArabic)return 4;let t=s+1;const r=e.length;for(;t<r&&11===e[t];)t++;return t<r&&2===e[t]?2:4},UBAT_NSM:()=>{if("VLTR"===i.inFormat){const n=e.length;let i=s+1;for(;i<n&&12===e[i];)i++;if(i<n){const n=t[s].charCodeAt(0),r=n>=1425&&n<=2303||64286===n,o=e[i];if(r&&(1===o||7===o))return 1}}return s<1||5===e[s-1]?4:n[s-1]},UBAT_B:()=>(i.lastArabic=!0,i.hasUbatB=!0,i.dir),UBAT_S:()=>(i.hasUbatS=!0,4),UBAT_LRE:()=>(i.lastArabic=!1,4),UBAT_RLE:()=>(i.lastArabic=!1,4),UBAT_LRO:()=>(i.lastArabic=!1,4),UBAT_RLO:()=>(i.lastArabic=!1,4),UBAT_PDF:()=>(i.lastArabic=!1,4),UBAT_BN:()=>4}[b[r]]()}function F(t){let e,n=0,i=s.length-1;for(;n<=i;)if(e=Math.floor((n+i)/2),t<s[e][0])i=e-1;else{if(!(t>s[e][0]))return s[e][1];n=e+1}return t}function U(t){for(let e=0;e<f.length;e++)if(f[e]===t)return!0;return!1}function O(t){for(let e=0;e<a.length;e++)if(t===a[e])return c[e];return t}function E(t,e){for(let n=0;n<a.length;n++)if(t===a[n])return e[n];return t}function G(t){return t>="ً"&&t<="ٕ"}function W(t){return"L"===t?"LTR":"R"===t?"RTL":"C"===t?"CLR":"D"===t?"CRL":""}function Z(t,e,n,s){for(;e*n<s&&G(t[e]);)e+=n;return e*n<s&&(t[e]=" ",!0)}function Y(t,e){for(let n=0;n<i.length;n++)if(t===i[n])return e[n];return t}function q(t,e,n,s){for(let i=0;i<t.length;i++)(t[i]>e||!n&&t[i]===e)&&(t[i]+=s)}let j=[],K=[],J=[];const H={dir:0,defInFormat:"LLTR",defSwap:"YN",inFormat:"LLTR",outFormat:"VLTR",swap:"YN",hiLevel:0,lastArabic:!1,hasUbatAl:!1,defOutFormat:""},Q=5,$=6,X=0,tt=1,et=/^[(I|V)][(L|RCD)][(Y|N)][(S|N)]N$/,nt=/[\u0591-\u06ff\ufb1d-\ufefc]/},95488(t,e,n){n.d(e,{I:()=>i});var s=n(11406);class i extends s.T{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},34304(t,e,n){n.d(e,{DF:()=>h,FD:()=>i,ct:()=>l});let s=1e-6;function i(){return s}const r=Math.random,o=Math.PI/180,a=180/Math.PI;function h(t){return t*o}function l(t){return t*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:r,equals:function(t,e){return Math.abs(t-e)<=s*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:i,setEpsilon:function(t){s=t},toDegree:l,toRadian:h},Symbol.toStringTag,{value:"Module"})),n.d(e,["Ov",0,r])},51624(t,e,n){n.d(e,{A:()=>l});var s=n(44208),i=n(69397),r=n(93687);const o=4294967296,a=new TextDecoder("utf-8"),h=(0,s.A)("safari")||(0,s.A)("ios")?6:(0,s.A)("ff")?12:32;class l{constructor(t,e,n=0,s=t?.byteLength??0){this._tag=0,this._dataType=99,this._init(t,e,n,s)}[Symbol.dispose](){this.release()}_init(t,e,n,s){this._data=t,this._dataView=e,this._pos=n,this._end=s}get usedMemory(){return 64+(0,i.Qf)(this._data)}asUnsafe(){return this}clone(){return new l(this._data,this._dataView,this._pos,this._end)}clonePooled(){return l.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(t,e,n=0,s=t?.byteLength??0){const i=l.pool.acquire();return i._init(t,e,n,s),i}pos(){return this._pos}move(t){this._pos=t}nextTag(t){for(;;){if(this._pos===this._end)return!1;const e=this._decodeVarint();if(this._tag=e>>3,this._dataType=7&e,!t||t===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const t=this._decodeVarint();return this._tag=t>>3,this._dataType=7&t,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let t=4294967295;if(t=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return t;throw new Error("Varint overflow")}getPackedEnd(){const t=this.getUInt32();return this._pos+t}getUInt64(){return this._decodeVarint()}getSInt32(){const t=this.getUInt32();return t>>>1^-(1&t)}getSInt64(){return this._decodeSVarint()}getBool(){const t=0!==this._data[this._pos];return this._skip(1),t}getEnum(){return this._decodeVarint()}getFixed64(){const t=this._dataView,e=this._pos,n=t.getUint32(e,!0)+t.getUint32(e+4,!0)*o;return this._skip(8),n}getSFixed64(){const t=this._dataView,e=this._pos,n=t.getUint32(e,!0)+t.getInt32(e+4,!0)*o;return this._skip(8),n}getDouble(){const t=this._dataView.getFloat64(this._pos,!0);return this._skip(8),t}getFixed32(){const t=this._dataView.getUint32(this._pos,!0);return this._skip(4),t}getSFixed32(){const t=this._dataView.getInt32(this._pos,!0);return this._skip(4),t}getFloat(){const t=this._dataView.getFloat32(this._pos,!0);return this._skip(4),t}getString(){const t=this._getLength(),e=this._pos,n=this._toString(this._data,e,e+t);return this._skip(t),n}getBytes(){const t=this._getLength(),e=this._pos,n=this._toBytes(this._data,e,e+t);return this._skip(t),n}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(t,e,n,s){const i=this.getMessage(),r=t(i,e,n,s);return i.release(),r}processMessage(t){const e=this.getMessage(),n=t(e);return e.release(),n}getMessage(){const t=this._getLength(),e=l.pool.acquire();return e._init(this._data,this._dataView,this._pos,this._pos+t),this._skip(t),e}release(){l.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(t){this._skip(t)}_skip(t){if(this._pos+t>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=t}_decodeVarint(){const t=this._data;let e=this._pos,n=0,s=0;if(this._end-e>=10)do{if(s=t[e++],n|=127&s,!(128&s))break;if(s=t[e++],n|=(127&s)<<7,!(128&s))break;if(s=t[e++],n|=(127&s)<<14,!(128&s))break;if(s=t[e++],n|=(127&s)<<21,!(128&s))break;if(s=t[e++],n+=268435456*(127&s),!(128&s))break;if(s=t[e++],n+=34359738368*(127&s),!(128&s))break;if(s=t[e++],n+=4398046511104*(127&s),!(128&s))break;if(s=t[e++],n+=562949953421312*(127&s),!(128&s))break;if(s=t[e++],n+=72057594037927940*(127&s),!(128&s))break;if(s=t[e++],n+=0x8000000000000000*(127&s),!(128&s))break;throw new Error("Varint too long!")}while(0);else{let i=1;for(;e!==this._end&&(s=t[e],128&s);)++e,n+=(127&s)*i,i*=128;if(e===this._end)throw new Error("Varint overrun!");++e,n+=s*i}return this._pos=e,n}_decodeSVarint(){const t=this._data;let e,n=0,s=0;const i=1&t[this._pos];if(s=t[this._pos++],n|=127&s,!(128&s))return i?-(n+1)/2:n/2;if(s=t[this._pos++],n|=(127&s)<<7,!(128&s))return i?-(n+1)/2:n/2;if(s=t[this._pos++],n|=(127&s)<<14,!(128&s))return i?-(n+1)/2:n/2;if(s=t[this._pos++],n|=(127&s)<<21,!(128&s))return i?-(n+1)/2:n/2;if(s=t[this._pos++],n+=268435456*(127&s),!(128&s))return i?-(n+1)/2:n/2;if(s=t[this._pos++],n+=34359738368*(127&s),!(128&s))return i?-(n+1)/2:n/2;if(s=t[this._pos++],n+=4398046511104*(127&s),!(128&s))return i?-(n+1)/2:n/2;if(e=BigInt(n),s=t[this._pos++],e+=0x2000000000000n*BigInt(127&s),!(128&s))return Number(i?-(e+1n)/2n:e/2n);if(s=t[this._pos++],e+=0x100000000000000n*BigInt(127&s),!(128&s))return Number(i?-(e+1n)/2n:e/2n);if(s=t[this._pos++],e+=0x8000000000000000n*BigInt(127&s),!(128&s))return Number(i?-(e+1n)/2n:e/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(t,e,n){if((n=Math.min(this._end,n))-e>h){const s=t.subarray(e,n);return a.decode(s)}let s="",i="";for(let r=e;r<n;++r){const e=t[r];128&e?i+="%"+e.toString(16):(s+=decodeURIComponent(i)+String.fromCharCode(e),i="")}return i.length&&(s+=decodeURIComponent(i)),s}_toBytes(t,e,n){return n=Math.min(this._end,n),new Uint8Array(t.buffer,e,n-e)}static{this.pool=new r.A(()=>new l(null,null),void 0,t=>{t._data=null,t._dataView=null})}}},36745(t,e,n){n.d(e,{z:()=>a});var s=n(4718),i=n(51118),r=n(60408),o=n(92722);class a{static fromOptimized(t,e,n=1){return(new h).initialize(t,e,n)}static fromJSON(t){const[e,n]=c(t),s=(0,r.Pv)(t),i=(0,r.W0)(t);return(new u).initialize(e,n,s,i,1)}static fromOptimizedCIM(t,e,n=1){return(new f).initialize(t,e,n)}static fromJSONCIM(t,e=1){const[n,s]=c(t),i=(0,r.Pv)(t),o=(0,r.W0)(t);return(new d).initialize(n,s,i,o,e)}static fromFeatureSetReader(t){const e=t.readGeometryForDisplay(),n=t.geometryType;return e&&n?this.fromOptimized(e,n):null}static fromFeatureSetReaderCIM(t){const e=t.readGeometryForDisplay(),n=t.geometryType;return e&&n?this.fromOptimizedCIM(e,n):null}static createEmptyOptimized(t,e=!1,n=!1,s=1){return(new f).initialize(new o.A([],[],e,n),t,s)}static createEmptyJSON(t,e=!1,n=!1){return(new u).initialize([],t,e,n,1)}static createEmptyOptimizedCIM(t,e=!1,n=!1,s=1){return(new f).initialize(new o.A([],[],e,n),t,s)}static createEmptyJSONCIM(t,e=!1,n=!1,s=1){return(new d).initialize([],t,e,n,s)}asJSON(){const t=(0,i.x)(this),{hasZ:e,hasM:n}=this;return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat(),hasZ:e,hasM:n}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1],z:e?t[0][0][2]:void 0,m:n?t[0][0][e?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:t,hasZ:e,hasM:n}:{paths:t,hasZ:e,hasM:n}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,n=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;const s=t,i=e;for(;this.nextPoint();)n+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return n+=(t-s)*(e+i),-.5*n}invertY(){this.yFactor*=-1}}class h extends a{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(t,e,n){return this.geometryType=e,this._stride=t.stride,this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=n,this}reset(){this.initialize(this._geometry,this.geometryType,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){const e=this._pathOffset+t*this._stride;return e>=0&&e<this._end&&(this._pointOffset=e,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){const t=this._end,e=this._geometry.coords,n=this._pathOffset;return(new h).initialize(new o.A([this.pathSize],e.slice(n,t),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){const t=this._end,e=this._stride,n=this._geometry.coords;let s=0;for(let i=this._pathOffset+e;i<t;i+=e){const t=n[i-e],r=n[i-e+1],o=n[i]-t,a=n[i+1]-r;s+=Math.sqrt(o*o+a*a)}return s}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,e){this._geometry.coords.push(t,e),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(const e of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){const e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){const t=this._geometry.clone();if(1!==this.yFactor)for(let e=1;e<t.coords.length;e+=this._stride)t.coords[e]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){const t=this._geometry.coords,e=this._pathOffset,n=this._end-this._stride;for(let s=0;s<this._stride;s++)if(t[e+s]!==t[n+s])return!1;return!0}clone(){return(new h).initialize(this._geometry.clone(),this.geometryType,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((t,e)=>t+e)}get pathSize(){const{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){const t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function l(t){const e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function c(t){return(0,r.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,r.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,r.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,r.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,r.fT)(t)?[[[l(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class u extends a{initialize(t,e,n,s,i){return this._paths=t,this.geometryType=e,this.hasZ=n,this.hasM=s,this._pathIndex=this._pointIndex=-1,this.yFactor=i,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){const t=this._currentPath.length,e=this._currentPath;let n=0;for(let s=1;s<t;s++){const t=e[s-1],i=e[s],r=t[0],o=t[1],a=i[0]-r,h=i[1]-o;n+=Math.sqrt(a*a+h*h)}return n}startPath(){this._paths.push([])}getCurrentPath(){return(new u).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,e){this._paths[this.totalSize-1].push([t,e])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){const e=(0,i.x)(t);for(const t of e)this.pushPath(t)}asOptimized(){const{hasZ:t,hasM:e}=this,n=new o.A([],[],t,e),{coords:s,lengths:i}=n;if("esriGeometryPoint"===this.geometryType)s.push(...this._paths[0][0]),i.length=0;else for(const n of this._paths){for(const i of n)s.push(i[0]),s.push(i[1]*this.yFactor),t&&s.push(i[2]),e&&s.push(i[this._mIndex]);i.push(n.length)}return n}isClosed(){const t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}clone(){return(new u).initialize((0,s.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(t=>t.length).reduce((t,e)=>t+e)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class f extends h{initialize(t,e,n){return super.initialize(t,e,n),this._controlPoints||(this._controlPoints=this._controlPoints=new Array(this.totalSize).fill(void 0).map(t=>new Set)),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){const t=(new f).initialize(this._geometry.clone(),this.geometryType,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class d extends u{initialize(t,e,n,s,i){return super.initialize(t,e,n,s,i)}clone(){return(new d).initialize((0,s.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},51118(t,e,n){function s(t){const e=[];for(t.reset();t.nextPath();){const n=[];for(;t.nextPoint();){const e=[t.x,t.y];t.hasZ&&e.push(t.z),t.hasM&&e.push(t.m),n.push(e)}e.push(n)}return t.reset(),e}function i(t){const e=[];for(;t.nextPoint();)e.push([t.x,t.y]);return t.seekPathStart(),e}n.d(e,{A:()=>i,x:()=>s})},537(t,e,n){n.d(e,{B$:()=>p,LJ:()=>x,Pj:()=>I,Rg:()=>g,Yz:()=>_,z8:()=>y});var s=n(19419),i=n(79567),r=n(52006);function o(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function a(t){return void 0!==t.points}function h(t){return void 0!==t.x&&void 0!==t.y}function l(t){return void 0!==t.paths}function c(t){return void 0!==t.rings}function u(t){return function(e,n){return null==e?n:null==n?e:t(e,n)}}const f=u(Math.min),d=u(Math.max);function g(t,e){return l(e)?_(t,e.curvePaths??e.paths,!1,!1)??t:c(e)?_(t,e.curveRings??e.rings,!1,!1)??t:a(e)?I(t,e.points,!1,!1,!1,!1):o(e)?m(t,e):(h(e)&&(t[0]=e.x,t[1]=e.y,t[2]=e.x,t[3]=e.y),t)}function y(t){let e,n,i,r;for(t.reset(),e=i=1/0,n=r=-1/0;t.nextPath();){const s=p(t);e=Math.min(s[0],e),i=Math.min(s[1],i),n=Math.max(s[2],n),r=Math.max(s[3],r)}return(0,s.vt)([e,i,n,r])}function p(t){let e,n,i,r;for(e=i=1/0,n=r=-1/0;t.nextPoint();)e=Math.min(t.x,e),i=Math.min(t.y,i),n=Math.max(t.x,n),r=Math.max(t.y,r);return(0,s.vt)([e,i,n,r])}function x(t,e){return l(e)?_(t,e.curvePaths??e.paths,!0,!1)??t:c(e)?_(t,e.curveRings??e.rings,!0,!1)??t:a(e)?I(t,e.points,!0,!1,!0,!1):o(e)?m(t,e,0,0,!0,!1):(h(e)&&(t[0]=e.x,t[1]=e.y,t[2]=e.z,t[3]=e.x,t[4]=e.y,t[5]=e.z),t)}function _(t,e,n,o){const a=n?3:2;if(!e.length||!e[0].length)return null;let h,l,c,u,[g,y]=(0,r.yP)(e[0][0]),p=g,x=y;for(let t=0;t<e.length;t++){const _=e[t];for(let t=0;t<_.length;t++){const e=(0,r.yP)(_[t]),[m,I]=e;if(g=f(g,m),y=f(y,I),p=d(p,m),x=d(x,I),n&&e.length>2){const t=e[2];h=f(h,t),l=d(l,t)}if(o&&e.length>a){const t=e[a];c=f(c,t),u=d(u,t)}const P=_[t];if((0,r.Xq)(P)||t<1)continue;const b=(0,r.yP)(_[t-1]),w=(0,s.fA)(g,y,p,x);[g,y,p,x]=(0,i.e)(w,b,P)}}return n?o?(t[0]=g,t[1]=y,t[2]=h,t[3]=c,t[4]=p,t[5]=x,t[6]=l,t[7]=u,t.length=8,t):(t[0]=g,t[1]=y,t[2]=h,t[3]=p,t[4]=x,t[5]=l,t.length=6,t):o?(t[0]=g,t[1]=y,t[2]=c,t[3]=p,t[4]=x,t[5]=u,t.length=6,t):(t[0]=g,t[1]=y,t[2]=p,t[3]=x,t.length=4,t)}function m(t,e,n,s,i,r){const o=e.xmin,a=e.xmax,h=e.ymin,l=e.ymax;let c=e.zmin,u=e.zmax,f=e.mmin,d=e.mmax;return i?(c=c||0,u=u||0,r?(f=f||0,d=d||0,t[0]=o,t[1]=h,t[2]=c,t[3]=f,t[4]=a,t[5]=l,t[6]=u,t[7]=d,t):(t[0]=o,t[1]=h,t[2]=c,t[3]=a,t[4]=l,t[5]=u,t)):r?(f=f||0,d=d||0,t[0]=o,t[1]=h,t[2]=f,t[3]=a,t[4]=l,t[5]=d,t):(t[0]=o,t[1]=h,t[2]=a,t[3]=l,t)}function I(t,e,n,s,i,r){const o=n?3:2,a=s&&r,h=n&&i;if(!e.length||!e[0].length)return null;let l,c,u,g,[y,p]=e[0],[x,_]=e[0];for(let t=0;t<e.length;t++){const n=e[t],[s,i]=n;if(y=f(y,s),p=f(p,i),x=d(x,s),_=d(_,i),h&&n.length>2){const t=n[2];l=f(l,t),c=d(c,t)}if(a&&n.length>o){const t=n[o];u=f(l,t),g=d(c,t)}}return i?(l=l||0,c=c||0,r?(u=u||0,g=g||0,t[0]=y,t[1]=p,t[2]=l,t[3]=u,t[4]=x,t[5]=_,t[6]=c,t[7]=g,t):(t[0]=y,t[1]=p,t[2]=l,t[3]=x,t[4]=_,t[5]=c,t)):r?(u=u||0,g=g||0,t[0]=y,t[1]=p,t[2]=u,t[3]=x,t[4]=_,t[5]=g,t):(t[0]=y,t[1]=p,t[2]=x,t[3]=_,t)}},12359(t,e,n){n.d(e,{IK:()=>c,TP:()=>u,Ve:()=>a,Z4:()=>r,l8:()=>o,w2:()=>l});var s=n(51118),i=n(95108);function r({xmin:t,xmax:e,ymin:n,ymax:s,zmin:i,zmax:r,hasZ:o}){const a=[(t+e)/2,(n+s)/2];return o&&a.push((i+r)/2),a}function o(t){return function(t,e){if(!t?.length)return null;const n=[],s=[],r=e?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let n=0,i=t.length;n<i;n++){const i=h(t[n],e,r);i&&s.push(i)}if(s.sort((t,n)=>{let s=t[2]-n[2];return 0===s&&e&&(s=t[4]-n[4]),s}),s.length&&(n[0]=s[0][0],n[1]=s[0][1],e&&(n[2]=s[0][3]),(n[0]<r[0]||n[0]>r[1]||n[1]<r[2]||n[1]>r[3]||e&&(n[2]<r[4]||n[2]>r[5]))&&(n.length=0)),!n.length){const s=t[0]&&t[0].length?function(t,e){const n=e?[0,0,0]:[0,0],s=e?[0,0,0]:[0,0];let r=0,o=0,a=0,h=0;for(let l=0,c=t.length;l<c-1;l++){const c=t[l],u=t[l+1];if(c&&u){n[0]=c[0],n[1]=c[1],s[0]=u[0],s[1]=u[1],e&&c.length>2&&u.length>2&&(n[2]=c[2],s[2]=u[2]);const t=(0,i.R3)(n,s);if(t){r+=t;const n=(0,i.t9)(c,u);o+=t*n[0],a+=t*n[1],e&&n.length>2&&(h+=t*n[2])}}}return r>0?e?[o/r,a/r,h/r]:[o/r,a/r]:t.length?t[0]:null}(t[0],e):null;if(!s)return null;n[0]=s[0],n[1]=s[1],e&&s.length>2&&(n[2]=s[2])}return n}(t.rings,t.hasZ??!1)}function a(t){const e=o(t);if(!e)return null;const{hasZ:n,spatialReference:s}=t,[i,r,a]=e;return isNaN(i)||isNaN(r)||n&&isNaN(a)?null:{x:i,y:r,z:n?a:void 0,spatialReference:s}}function h(t,e,n){let s=0,i=0,r=0,o=0,a=0;const h=t.length?t[0][0]:0,l=t.length?t[0][1]:0,c=t.length&&e?t[0][2]:0;for(let u=0;u<t.length;u++){const f=t[u],d=t[(u+1)%t.length],[g,y,p]=f,x=g-h,_=y-l,[m,I,P]=d,b=m-h,w=I-l,T=x*w-b*_;if(o+=T,s+=(x+b)*T,i+=(_+w)*T,e&&f.length>2&&d.length>2){const t=p-c,e=P-c,n=x*e-b*t;r+=(t+e)*n,a+=n}g<n[0]&&(n[0]=g),g>n[1]&&(n[1]=g),y<n[2]&&(n[2]=y),y>n[3]&&(n[3]=y),e&&(p<n[4]&&(n[4]=p),p>n[5]&&(n[5]=p))}if(o>0&&(o*=-1),a>0&&(a*=-1),!o)return null;o*=.5,a*=.5;const u=[s/(6*o)+h,i/(6*o)+l,o];return e&&(n[4]===n[5]||0===a?(u[3]=(n[4]+n[5])/2,u[4]=0):(u[3]=r/(6*a)+c,u[4]=a)),u}function l(t,e){let n=0,s=0,i=0;t.nextPoint();const r=t.pathSize?t.x:0,o=t.pathSize?t.y:0;for(let a=0;a<t.pathSize;a++){t.seekInPath(a);const h=[t.x,t.y];t.seekInPath((a+1)%t.pathSize);const l=[t.x,t.y],[c,u]=h,f=c-r,d=u-o,[g,y]=l,p=g-r,x=y-o,_=f*x-p*d;i+=_,n+=(f+p)*_,s+=(d+x)*_,c<e[0]&&(e[0]=c),c>e[1]&&(e[1]=c),u<e[2]&&(e[2]=u),u>e[3]&&(e[3]=u)}return i>0&&(i*=-1),i?(i*=.5,[n/(6*i)+r,s/(6*i)+o,i]):null}function c(t){const{hasZ:e,totalSize:n}=t;if(0===n)return null;const r=[],o=[],a=e?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];for(t.reset();t.nextPath();){const e=h((0,s.A)(t),t.hasZ,a);e&&o.push(e)}if(o.sort((t,n)=>{let s=t[2]-n[2];return 0===s&&e&&(s=t[4]-n[4]),s}),o.length&&(r[0]=o[0][0],r[1]=o[0][1],e&&(r[2]=o[0][3]),(r[0]<a[0]||r[0]>a[1]||r[1]<a[2]||r[1]>a[3]||e&&(r[2]<a[4]||r[2]>a[5]))&&(r.length=0)),!r.length){t.reset(),t.nextPath();const n=t.pathSize?function(t){const{hasZ:e}=t,n=e?[0,0,0]:[0,0],s=e?[0,0,0]:[0,0];let r=0,o=0,a=0,h=0;if(t.nextPoint()){let l=t.x,c=t.y,u=t.z;for(;t.nextPoint();){const f=t.x,d=t.y,g=t.z;n[0]=l,n[1]=c,s[0]=f,s[1]=d,e&&(n[2]=u,s[2]=g);const y=(0,i.R3)(n,s);if(y){r+=y;const t=(0,i.t9)(n,s);o+=y*t[0],a+=y*t[1],e&&t.length>2&&(h+=y*t[2])}l=f,c=d,u=g}}return r>0?e?[o/r,a/r,h/r]:[o/r,a/r]:t.pathSize?(t.seekPathStart(),t.nextPoint(),[t.x,t.y]):null}(t):null;if(!n)return null;r[0]=n[0],r[1]=n[1],e&&n.length>2&&(r[2]=n[2])}return r}function u(t){let e=0;for(t.reset();t.nextPath();)e+=t.getCurrentRingArea();if(e<1e-6){const e=c(t);return e?[e[0],e[1]]:null}const n=[0,0];if(t.reset(),!t.nextPath()||!t.nextPoint())return null;const s=[t.x,t.y];for(t.reset();t.nextPath();)d(n,s,t);return n[0]*=1/e,n[1]*=1/e,n[0]+=s[0],n[1]+=s[1],n}const f=1/3;function d(t,e,n){if(!t||!n||n.pathSize<3)return null;n.nextPoint();const s=n.x,i=n.y;n.nextPoint();let r,o=n.x-s,a=n.y-i,h=0,l=0;for(;n.nextPoint();)h=n.x-s,l=n.y-i,r=.5*f*(h*a-l*o),t[0]+=r*(o+h),t[1]+=r*(a+l),o=h,a=l;const c=n.getCurrentRingArea(),u=[s,i];return u[0]-=e[0],u[1]-=e[1],u[0]*=c,u[1]*=c,t[0]+=u[0],t[1]+=u[1],t}},95108(t,e,n){n.d(e,{$3:()=>c,Ng:()=>a,R3:()=>i,Xf:()=>o,Yl:()=>l,gR:()=>r,m3:()=>f,t9:()=>h});var s=n(4576);function i(t,e){const n=e[0]-t[0],s=e[1]-t[1];if(t.length>2&&e.length>2){const i=t[2]-e[2];return Math.sqrt(n*n+s*s+i*i)}return Math.sqrt(n*n+s*s)}function r(t,e,n,s){const[i,r]=e,[o,a]=n,[h,l]=s,c=h-o,u=l-a,f=c*c+u*u,d=(i-o)*c+(r-a)*u,g=Math.min(1,Math.max(0,d/f));return t[0]=o+c*g,t[1]=a+u*g,t}function o(t,e,n){let s,i,r,o,h=!1,l=1/0;for(n.reset();n.nextPath();)if(n.nextPoint())for(s=n.x,i=n.y;n.nextPoint();)r=n.x,o=n.y,i>e!=o>e&&t<(r-s)*(e-i)/(o-i)+s&&(h=!h),l=Math.min(l,a(t,e,s,i,r,o)),s=r,i=o;return 0===l?0:(h?1:-1)*Math.sqrt(l)}function a(t,e,n,s,i,r){let o=n,a=s,h=i-o,l=r-a;if(0!==h||0!==l){const n=((t-o)*h+(e-a)*l)/(h*h+l*l);n>1?(o=i,a=r):n>0&&(o+=h*n,a+=l*n)}return h=t-o,l=e-a,h*h+l*l}function h(t,e){return function(t,e,n){const s=t[0]+n*(e[0]-t[0]),i=t[1]+n*(e[1]-t[1]);return t.length>2&&e.length>2?[s,i,t[2]+n*(e[2]-t[2])]:[s,i]}(t,e,.5)}function l(t){const e=t.length;let n=0;for(let s=0;s<e-1;++s)n+=i(t[s],t[s+1]);return n}function c(t,e=0,n=1){let s=0;const i=t.length;let r=t[0];for(let o=1;o<i;o++){const i=t[o];s+=(i[e]-r[e])*(i[n]+r[n]),r=i}if(u(t)){const i=t[0];s+=(i[e]-r[e])*(i[n]+r[n])}return s>=0}function u(t){const e=t.length;return e>0&&!(0,s.aI)(t[0],t[e-1])}function f(t){if("rings"in t)for(const e of t.rings)u(e)&&e.push(e[0].slice())}n(52006)},52006(t,e,n){function s(t){return"curveRings"in t&&!!t.curveRings?.length||"curvePaths"in t&&!!t.curvePaths?.length}function i(t){return"curveRings"in t?t.curveRings:t.curvePaths}function r(t){return"b"in t}function o(t){return"c"in t}function a(t){return Array.isArray(t)}function h(t){return"a"in t}function l(t){return"a"in t&&4===t.a.length}function c(t){return"a"in t&&7===t.a.length}function u(t,e){return i(t).flat().some(t=>function(t,e){return!(a(t)||(r(t)?e.has("cubic-bezier"):o(t)?e.has("circular-arc"):!l(t)&&!c(t)||e.has("elliptic-arc")))}(t,e))}function f(t){return a(t)?t:r(t)?t.b[0]:o(t)?t.c[0]:t.a[0]}function d(t){if(r(t)){const[e,n,s]=t.b;return{b:[[...e],[...n],[...s]]}}if(o(t)){const[e,n]=t.c;return{c:[[...e],[...n]]}}if(a(t))return[...t];if(l(t)){const[e,n,s,i]=t.a;return{a:[[...e],[...n],s,i]}}if(c(t)){const[e,n,s,i,r,o,a]=t.a;return{a:[[...e],[...n],s,i,r,o,a]}}return t}n.d(e,{DA:()=>l,Ed:()=>s,FD:()=>i,FG:()=>h,V8:()=>u,Xq:()=>a,aO:()=>o,n1:()=>r,tk:()=>d,wY:()=>c,yP:()=>f}),n(4576)},78957(t,e,n){n.d(e,{d:()=>c,R:()=>P});class s{constructor(t=i){this._data=[],this._compare=t}get size(){return this._data.length}enqueue(t){if(null==t)return;const{_data:e,_compare:n}=this;e.push(t);let s=e.length-1>>>0;const i=e[s];for(;s>0;){const t=s-1>>1,r=e[t];if(!(n(r,i)<=0))break;e[t]=i,e[s]=r,s=t}}dequeue(){const{_data:t,_compare:e}=this,n=t[0],s=t.pop();if(0===t.length)return n;t[0]=s;let i=0;const r=t.length,o=t[0];let a,h,l=null;for(;;){const n=2*i+1,s=2*i+2;if(l=null,n<r&&(a=t[n],e(a,o)>0&&(l=n)),s<r&&(h=t[s],(null===l&&e(h,o)<=0||null!==l&&e(h,a)<=0)&&(l=s)),null===l)break;t[i]=t[l],t[l]=o,i=l}return n}}const i=(t,e)=>t<e?-1:t>e?1:0;var r=n(19419),o=n(537),a=n(12359),h=n(95108),l=n(12176);function c(t){if(0===t.totalSize)return null;const e=(0,o.z8)(t);if(!e)return null;const n=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*222045e-19;let s=0,i=0;t.reset();for(let e=0;t.nextPath();e++){const n=t.getCurrentRingArea();n>i&&(i=n,s=e)}if(t.seekPath(s),0===t.pathSize)return null;t.seekPathStart();const h=(0,o.B$)(t);if(Math.abs(i)<=2*n*n)return[(h[0]+h[2])/2,(h[1]+h[3])/2];t.seekPathStart();const l=(0,a.w2)(t,(0,r.vt)());if(null===l)return null;if(t.totalPoints<4)return l;const c=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],g=[NaN,NaN,NaN,NaN],y=[NaN,NaN,NaN,NaN];let p=!1,I=f(l,t,!0);0===I.distance&&(p=!0,c[0][0]=l[0],c[0][1]=l[1],I=f(l,t,!1)),g[0]=I.distance,y[0]=0;const P=[NaN,NaN];let b=!1,w=.25,T=-1,M=NaN;do{if(M=NaN,c[1]=d(t,x(h[0],h[2],w),0,e),isNaN(c[1][0])||isNaN(c[1][1])||(I=f(c[1],t,!1),M=I.distance),!isNaN(M)&&M>n&&u(c[1],t))b=!0,g[1]=M,y[1]=_(c[1],l);else if(!isNaN(M)&&M>T&&(T=M,P[0]=c[1][0],P[1]=c[1][1]),w-=.01,w<.1){if(!(T>=0))break;b=!0,g[1]=T,c[1][0]=P[0],c[1][1]=P[1],y[1]=_(c[1],l)}}while(!b);b=!1,w=.5,T=-1;let A=.01,S=1;do{if(M=NaN,c[2]=d(t,x(h[0],h[2],w),0,e),isNaN(c[2][0])||isNaN(c[2][1])||(I=f(c[2],t,!1),M=I.distance),!isNaN(M)&&M>n&&u(c[2],t))b=!0,g[2]=M,y[2]=_(c[2],l);else if(!isNaN(M)&&M>T)T=M,P[0]=c[2][0],P[1]=c[2][1];else if(M>T&&(T=M,P[0]=c[2][0],P[1]=c[2][1]),w=.5+A*S,A+=.01,S*=-1,w<.3||w>.7){if(!(T>=0))break;b=!0,g[2]=T,c[2][0]=P[0],c[2][1]=P[1],y[2]=_(c[2],l)}}while(!b);b=!1,w=.75,T=-1;do{if(M=NaN,c[3]=d(t,x(h[0],h[2],w),0,e),isNaN(c[3][0])||isNaN(c[3][1])||(I=f(c[3],t,!1),M=I.distance),!isNaN(M)&&M>n&&u(c[3],t))b=!0,g[3]=M,y[3]=_(c[3],l);else if(M>T&&(T=M,P[0]=c[3][0],P[1]=c[3][1]),w+=.01,w>.9){if(!(T>=0))break;b=!0,g[3]=T,c[3][0]=P[0],c[3][1]=P[1],y[3]=_(c[3],l)}}while(!b);const L=[0,1,2,3],v=p?0:1;let k;for(let t=v;t<4;t++)for(let t=v;t<3;t++){const e=y[t],n=y[t+1];m(e,n)>0&&(k=L[t],L[t]=L[t+1],L[t+1]=k,y[t]=n,y[t+1]=e)}let N=v,B=0,z=0;for(let t=v;t<4;t++){switch(t){case 0:z=2*g[L[t]];break;case 1:z=1.66666666*g[L[t]];break;case 2:z=1.33333333*g[L[t]];break;case 3:z=g[L[t]]}z>B&&(B=z,N=L[t])}return c[N]}function u(t,e){let n,s,i,r,o=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(n=e.x,s=e.y;e.nextPoint();n=i,s=r)i=e.x,r=e.y,s>t[1]!=r>t[1]&&((i-n)*(t[1]-s)-(r-s)*(t[0]-n)>0?o++:o--);return 0!==o}function f(t,e,n){if(n&&u(t,e))return{coord:t,distance:0};let s=1/0,i=0,r=0,o=[0,0],a=[0,0];const l=[0,0];for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(o[0]=e.x,o[1]=e.y;e.nextPoint();o=a){a=[e.x,e.y],(0,h.gR)(l,t,o,a);const n=_(t,l);n<s&&(s=n,i=l[0],r=l[1])}return{coord:[i,r],distance:Math.sqrt(s)}}function d(t,e,n,s){const i=[e,0];let o=1/0,a=1/0,h=!1,c=!1;const u=[[e,s[1]-1],[e,s[3]+1]],f=[0,0],d=[0,0],p=[0,0],x=[[0,0],[0,0]],_=(0,r.vt)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(x[0][0]=t.x,x[0][1]=t.y;t.nextPoint();x[0][0]=x[1][0],x[0][1]=x[1][1]){if(x[1][0]=t.x,x[1][1]=t.y,null===g(_,x))continue;if(d[0]=u[0][0],d[1]=u[0][1],p[0]=u[1][0],p[1]=u[1][1],0===y(_,d,p))continue;if(!(0,l.Ql)(u[0],u[1],x[0],x[1],f))continue;const e=f[1];o>a?e<o&&(o=e,h=!0):e<a&&(a=e,c=!0)}return h&&c?i[1]=(o+a)/2:i[0]=i[1]=NaN,i}function g(t,e){if(e.length<2)return null;t||(t=(0,r.vt)());const[n,s]=e[0],[i,o]=e[1];return t[0]=Math.min(n,i),t[1]=Math.min(s,o),t[2]=Math.max(n,i),t[3]=Math.max(s,o),t}function y(t,e,n){let s=p(e,t),i=p(n,t);const r=t[0],o=t[1],a=t[2],h=t[3];if(s&i)return 0;if(!(s|i))return 4;const l=(s?1:0)|(i?2:0);do{const l=n[0]-e[0],c=n[1]-e[1];if(l>c)3&s?(1&s?(e[1]+=c*(r-e[0])/l,e[0]=r):(e[1]+=c*(a-e[0])/l,e[0]=a),s=p(e,t)):3&i?(1&i?(n[1]+=c*(r-n[0])/l,n[0]=r):(n[1]+=c*(a-n[0])/l,n[0]=a),i=p(n,t)):s?(4&s?(e[0]+=l*(o-e[1])/c,e[1]=o):(e[0]+=l*(h-e[1])/c,e[1]=h),s=p(e,t)):(4&i?(n[0]+=l*(o-n[1])/c,n[1]=o):(n[0]+=l*(h-n[1])/c,n[1]=h),i=p(n,t));else if(12&s?(4&s?(e[0]+=l*(o-e[1])/c,e[1]=o):(e[0]+=l*(h-e[1])/c,e[1]=h),s=p(e,t)):12&i?(4&i?(n[0]+=l*(o-n[1])/c,n[1]=o):(n[0]+=l*(h-n[1])/c,n[1]=h),i=p(n,t)):s?(1&s?(e[1]+=c*(r-e[0])/l,e[0]=r):(e[1]+=c*(a-e[0])/l,e[0]=a),s=p(e,t)):(1&i?(n[1]+=c*(r-n[0])/l,n[0]=r):(n[1]+=c*(a-n[0])/l,n[0]=a),i=p(n,t)),s&i)return 0}while(s|i);return l}function p(t,e){return(t[0]<e[0]?1:0)|(t[0]>e[2]?1:0)<<1|(t[1]<e[1]?1:0)<<2|(t[1]>e[3]?1:0)<<3}function x(t,e,n){return t+(e-t)*n}function _(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function m(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;const n=isNaN(t),s=isNaN(e);return n<s?-1:n>s?1:0}class I{constructor(t,e,n,s){this.x=t,this.y=e,this.cellSize=n,this.distancefromCellCenter=(0,h.Xf)(t,e,s),this.maxDistanceToPolygon=this.distancefromCellCenter+this.cellSize*Math.SQRT2}}function P(t){if(!t.nextPath()||!t.pathSize)return null;const e=(0,o.B$)(t),n=e[2]-e[0],i=e[3]-e[1];if(0===n||0===i)return[e[0]+n/2,e[1]+i/2];const r=Math.max(Math.min(n,i)/100,1),h=new s((t,e)=>e.maxDistanceToPolygon-t.maxDistanceToPolygon),l=Math.min(n,i);let c=l/2,u=0,f=0;for(u=e[0];u<e[2];u+=l)for(f=e[1];f<e[3];f+=l)h.enqueue(new I(u+c,f+c,c,t));t.reset(),t.nextPath();const d=(0,a.IK)(t);if(null===d)return null;let g,y=new I(d[0],d[1],0,t);for(;h.size>0;)g=h.dequeue(),g.distancefromCellCenter>y.distancefromCellCenter&&(y=g),g.maxDistanceToPolygon-y.distancefromCellCenter<=r||(c=g.cellSize/2,h.enqueue(new I(g.x-c,g.y-c,c,t)),h.enqueue(new I(g.x+c,g.y-c,c,t)),h.enqueue(new I(g.x-c,g.y+c,c,t)),h.enqueue(new I(g.x+c,g.y+c,c,t)));return[y.x,y.y]}},97770(t,e,n){n.d(e,{Ey:()=>B,F8:()=>N,J2:()=>S,Yq:()=>v,_m:()=>L,iS:()=>k,wj:()=>z});var s=n(66552),i=n(73444),r=n(98623),o=n(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},h={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},l={timeZone:"UTC"},c={year:"numeric",month:"numeric",day:"numeric"},u={year:"numeric",month:"long",day:"numeric"},f={year:"numeric",month:"short",day:"numeric"},d={year:"numeric",month:"long",weekday:"long",day:"numeric"},g={hour:"numeric",minute:"numeric"},y={...g,second:"numeric"},p={hourCycle:"h23"},x={...g,...p},_={...y,...p},m={"short-date":c,"short-date-short-time":{...c,...g},"short-date-short-time-24":{...c,...x},"short-date-long-time":{...c,...y},"short-date-long-time-24":{...c,..._},"short-date-le":c,"short-date-le-short-time":{...c,...g},"short-date-le-short-time-24":{...c,...x},"short-date-le-long-time":{...c,...y},"short-date-le-long-time-24":{...c,..._},"long-month-day-year":u,"long-month-day-year-short-time":{...u,...g},"long-month-day-year-short-time-24":{...u,...x},"long-month-day-year-long-time":{...u,...y},"long-month-day-year-long-time-24":{...u,..._},"day-short-month-year":f,"day-short-month-year-short-time":{...f,...g},"day-short-month-year-short-time-24":{...f,...x},"day-short-month-year-long-time":{...f,...y},"day-short-month-year-long-time-24":{...f,..._},"long-date":d,"long-date-short-time":{...d,...g},"long-date-short-time-24":{...d,...x},"long-date-long-time":{...d,...y},"long-date-long-time-24":{...d,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":g,"long-time":y},I=(0,s.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),P={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},b=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),w=b.find(({type:t})=>"month"===t)?.value.toLowerCase();function T(){const t=(0,i.lR)();return(t&&P[t])??(0,i.QC)()}"mart"!==w&&(P.bs="sr-Latn-CS");let M=new WeakMap;const A=m["short-date-short-time"];function S(t){return m[t]}function L(t){const{dateStyle:e,timeStyle:n,hour12:s,year:i,month:r}=t,o={};return e?o.dateStyle=e:i&&(o.year=i,o.month=r||void 0),n&&!o.year&&(o.timeStyle=n,o.hour12="auto"===s?void 0:"always"===s),o}function v(t,e=A){return function(t){let e=M.get(t);if(!e){const n=T(),s=z(t.timeZone??"system"),i={...t,timeZone:s};e=new Intl.DateTimeFormat(n,i),M.set(t,e)}return e}(e).format(t)}function k(t,e=A){return v(new Date(t),{...e,...l,...h})}function N(t,e=A){return v(new Date(`1970-01-01T${t}Z`),{...e,...l,...a})}function B(t,e=A){const n=o.c9.fromISO(t,{setZone:!0});if(!n.isValid)return t;if(e.timeZone)return v(n.toJSDate(),e);const s=0===n.offset?"UTC":e.timeZone,i={...e,timeZone:s};return n.toLocaleString(i,{locale:T()})}function z(t){switch(t){case"system":return r.N;case r.L:return"UTC";default:return t}}(0,i.Ml)(()=>{M=new WeakMap}),n.d(e,["_v",0,I])},73444(t,e,n){n.d(e,{JK:()=>h,Ml:()=>p,QC:()=>u,lR:()=>c,oQ:()=>g});var s=n(36563);let i;n(44208);const r=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){const t=o?.getAttribute("lang"),e=globalThis.navigator?.language;return r??t??e??"en"}function h(){return void 0===i&&(i=a()),i}const l=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function c(t=h()){return f(t)?.language}function u(t=h()){const e=f(t);return e?.language&&e?.extlang?t.replace(`${e.language}-`,""):t}function f(t=h()){return l.exec(t)?.groups}const d=[];function g(t){return d.push(t),(0,s.hA)(()=>{d.splice(d.indexOf(t),1)})}new Map;const y=[];function p(t){return y.push(t),(0,s.hA)(()=>y.splice(y.indexOf(t),1))}function x(){const t=a();i!==t&&([...y].forEach(e=>e(t)),i=t,[...d].forEach(e=>e(t)))}globalThis.addEventListener?.("languagechange",x),o&&new MutationObserver(()=>{x()}).observe(o,{attributeFilter:["lang"]})},92722(t,e,n){n.d(e,{A:()=>i});var s=n(69397);class i{constructor(t=[],e=[],n=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:s}){return new i(t,e,n||!1,s||!1)}static fromRect([t,e,n,s]){const r=n-t,o=s-e;return new i([5],[t,e,r,0,0,o,-r,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:s}=this;let i=this.coords[s*e],r=this.coords[s*e+1];for(let o=1;o<n;o+=1){const n=s*(e+o),a=this.coords[n],h=this.coords[n+1];t+=-.5*(a-i)*(h+r),i=a,r=h}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const s of this.lengths){for(let i=0;i<s;i++){const s=n*(e+i);t(this.coords[s],this.coords[s+1])}e+=s}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let s=0;const{stride:i}=this;for(const t of n){for(let n=1;n<t;n++){const t=i*(s+n);e[t]+=e[t-i],e[t+1]+=e[t+1-i]}s+=t}return t}clone(t){if(this.isPoint)return new i([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:s}=this,r=this.coords.slice(0,s*n);return t?(t.set(r),new i(e,t,this.hasZ,this.hasM)):new i(e,Array.from(r),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,s=0;e<n.length;e+=t)n[s++]=this.coords[e],n[s++]=this.coords[e+1];return new i(this.lengths,n,!1,!1)}}},98623(t,e,n){const s=Intl.DateTimeFormat().resolvedOptions().timeZone;n.d(e,["L",0,"unknown","N",0,s])},36984(t,e,n){n.r(e),n.d(e,{default:()=>X});var s=n(17676),i=n(29953),r=n(6774),o=n(13195);function a(t){return 746===t||747===t||!(t<4352)&&(t>=12704&&t<=12735||t>=12544&&t<=12591||t>=65072&&t<=65103&&!(t>=65097&&t<=65103)||t>=63744&&t<=64255||t>=13056&&t<=13311||t>=11904&&t<=12031||t>=12736&&t<=12783||t>=12288&&t<=12351&&!(t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||t>=13312&&t<=19903||t>=19968&&t<=40959||t>=12800&&t<=13055||t>=12592&&t<=12687||t>=43360&&t<=43391||t>=55216&&t<=55295||t>=4352&&t<=4607||t>=44032&&t<=55215||t>=12352&&t<=12447||t>=12272&&t<=12287||t>=12688&&t<=12703||t>=12032&&t<=12255||t>=12784&&t<=12799||t>=12448&&t<=12543&&12540!==t||t>=65280&&t<=65519&&!(65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||t>=65104&&t<=65135&&!(t>=65112&&t<=65118||t>=65123&&t<=65126)||t>=5120&&t<=5759||t>=6320&&t<=6399||t>=65040&&t<=65055||t>=19904&&t<=19967||t>=40960&&t<=42127||t>=42128&&t<=42191)}function h(t){return!(t<11904)&&(t>=12704&&t<=12735||t>=12544&&t<=12591||t>=65072&&t<=65103||t>=63744&&t<=64255||t>=13056&&t<=13311||t>=11904&&t<=12031||t>=12736&&t<=12783||t>=12288&&t<=12351||t>=13312&&t<=19903||t>=19968&&t<=40959||t>=12800&&t<=13055||t>=65280&&t<=65519||t>=12352&&t<=12447||t>=12272&&t<=12287||t>=12032&&t<=12255||t>=12784&&t<=12799||t>=12448&&t<=12543||t>=65040&&t<=65055||t>=42128&&t<=42191||t>=40960&&t<=42127)}function l(t){switch(t){case 10:case 32:case 38:case 40:case 41:case 43:case 45:case 47:case 173:case 183:case 8203:case 8208:case 8211:case 8231:return!0}return!1}function c(t){switch(t){case 9:case 10:case 11:case 12:case 13:case 32:return!0}return!1}var u=n(18989);class f{constructor(t,e,n,s,i,r,o){this._glyphItems=t,this._maxWidth=e,this._lineHeight=n,this._letterSpacing=s,this._hAnchor=i,this._vAnchor=r,this._justify=o}getShaping(t,e,n){const s=this._letterSpacing,i=this._lineHeight,r=this._justify,o=this._maxWidth,u=[];let f=0,d=0;for(const e of t){const t=e.codePointAt(0);if(null==t)continue;const i=n&&a(t);let r;for(const e of this._glyphItems)if(r=e[t],r)break;u.push({codePoint:t,x:f,y:d,vertical:i,glyphItem:r}),r&&(f+=r.shaping.xAdvance+s)}let g=f;o>0&&(g=f/Math.max(1,Math.ceil(f/o)));const y=t.includes("​"),p=[],x=u.length;for(let t=0;t<x-1;t++){const e=u[t].codePoint,n=h(e);if(l(e)||n){let s=0;if(10===e)s-=1e4;else if(n&&y)s+=150;else{40!==e&&65288!==e||(s+=50);const n=u[t+1].codePoint;41!==n&&65289!==n||(s+=50)}p.push(this._buildBreak(t+1,u[t].x,g,p,s,!1))}}const _=this._optimalBreaks(this._buildBreak(x,f,g,p,0,!0));let m=0;const I=e?-i:i;let P=0;for(let t=0;t<_.length;t++){const e=_[t];let n=P;for(;n<e&&c(u[n].codePoint);)u[n].glyphItem=null,++n;let s=e-1;for(;s>n&&c(u[s].codePoint);)u[s].glyphItem=null,--s;if(n<=s){const t=u[n].x;for(let e=n;e<=s;e++)u[e].x-=t,u[e].y=d;let e=u[s].x;u[s].glyphItem&&(e+=u[s].glyphItem.shaping.xAdvance),m=Math.max(e,m),r&&this._applyJustification(u,n,s)}P=e,d+=I}if(u.length>0){const t=_.length-1,n=(r-this._hAnchor)*m;let s=(-this._vAnchor*(t+1)+.5)*i;e&&t&&(s+=t*i);for(const t of u)t.x+=n,t.y+=s}return u.filter(t=>t.glyphItem)}static getTextBox(t,e){if(!t.length)return null;let n=1/0,s=1/0,i=0,r=0;for(const o of t){const t=o.glyphItem.shaping.xAdvance,a=o.x,h=o.y-17,l=a+t,c=h+e;n=Math.min(n,a),i=Math.max(i,l),s=Math.min(s,h),r=Math.max(r,c)}return{x:n,y:s,width:i-n,height:r-s}}static getBox(t){if(!t.length)return null;let e=1/0,n=1/0,s=0,i=0;for(const r of t){const{height:t,left:o,top:a,width:h}=r.glyphItem.rect,l=r.x,c=r.y-(t-Math.abs(a)),u=l+h+o,f=c+t;e=Math.min(e,l),s=Math.max(s,u),n=Math.min(n,c),i=Math.max(i,f)}return{x:e,y:n,width:s-e,height:i-n}}static addDecoration(t,e){const n=t.length;if(0===n)return;const s={rect:new u.A(4,0,4,8),sdf:!0,page:0};let i=t[0].x+t[0].glyphItem.rect.left,r=t[0].y;for(let o=1;o<n;o++){const n=t[o];if(n.y!==r){const a=t[o-1].x+t[o-1].glyphItem.rect.left+t[o-1].glyphItem.rect.width;t.push({codePoint:0,x:i,y:r+e-3,vertical:!1,glyphItem:{mosaicItem:s,rect:{width:a-i,height:8,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0},code:0}}),r=n.y,i=n.x+n.glyphItem.rect.left}}const o=t[n-1].x+t[n-1].glyphItem.rect.left+t[n-1].glyphItem.rect.width;t.push({codePoint:0,x:i,y:r+e-3,vertical:!1,glyphItem:{mosaicItem:s,rect:{width:o-i,height:8,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0},code:0}})}_breakScore(t,e,n,s){const i=(t-e)*(t-e);return s?t<e?i/2:2*i:i+Math.abs(n)*n}_buildBreak(t,e,n,s,i,r){let o=null,a=this._breakScore(e,n,i,r);for(const t of s){const s=e-t.x,h=this._breakScore(s,n,i,r)+t.score;h<=a&&(o=t,a=h)}return{index:t,x:e,score:a,previousBreak:o}}_optimalBreaks(t){return t?this._optimalBreaks(t.previousBreak).concat(t.index):[]}_applyJustification(t,e,n){const s=t[n],i=s.vertical?24:s.glyphItem?s.glyphItem.shaping.xAdvance:0,r=(s.x+i)*this._justify;for(let s=e;s<=n;s++)t[s].x-=r}}const d=.5;class g{constructor(t,e,n=0,s=-1,i=d){this.x=t,this.y=e,this.angle=n,this.segment=s,this.minzoom=i}}class y{constructor(t,e,n,s,i,r=d,a=o.MG){this.anchor=t,this.labelAngle=e,this.glyphAngle=n,this.page=s,this.alternateVerticalGlyph=i,this.minzoom=r,this.maxzoom=a}}class p{constructor(t,e,n,s,i,r,o,a,h,l,c,u){this.tl=t,this.tr=e,this.bl=n,this.br=s,this.mosaicRect=i,this.labelAngle=r,this.minAngle=o,this.maxAngle=a,this.anchor=h,this.minzoom=l,this.maxzoom=c,this.page=u}}class x{constructor(t){this.shapes=t}}class _{getIconPlacement(t,e,n){const s=new r.bR(t.x,t.y),i=0===n.rotationAlignment,a=n.keepUpright;let h=n.rotate*o.os;i&&(h+=t.angle);const l=new x([]);return l.iconColliders=[],this._addIconPlacement(l,s,e,n,h),i&&a&&this._addIconPlacement(l,s,e,n,h+o.Jo),l}_addIconPlacement(t,e,n,s,i){const a=n.rasterizationScale,h=n.width/a,l=n.height/a,c=s.offset;let u=c[0],f=c[1];switch(s.anchor){case 0:u-=h/2,f-=l/2;break;case 1:f-=l/2;break;case 2:u-=h,f-=l/2;break;case 3:u-=h/2;break;case 4:u-=h/2,f-=l;break;case 5:break;case 7:f-=l;break;case 6:u-=h;break;case 8:u-=h,f-=l}const g=n.rect,y=2/a,x=u-y,_=f-y,m=x+g.width/a,I=_+g.height/a,P=new r.bR(x,_),b=new r.bR(m,I),w=new r.bR(x,I),T=new r.bR(m,_);if(0!==i){const t=Math.cos(i),e=Math.sin(i);P.rotate(t,e),b.rotate(t,e),w.rotate(t,e),T.rotate(t,e)}const M=new p(P,T,w,b,g,i,0,256,e,d,o.MG,0);t.shapes.push(M);{const n=s.size,r=s.padding,a={xTile:e.x,yTile:e.y,dxPixels:u*n-r,dyPixels:f*n-r,hard:!s.optional,partIndex:0,width:h*n+2*r,height:l*n+2*r,angle:i,minLod:d,maxLod:o.MG};t.iconColliders.push(a)}}getTextPlacement(t,e,n,s){const i=new r.bR(t.x,t.y),{keepUpright:a,rotate:h,rotationAlignment:l,size:c}=s,u=h*o.os,g=0===l,_=a,m=s.padding;let I=d;const P=g?t.angle:0,b=t.segment>=0&&g,w=[],T=[],M=!b;let A=Number.POSITIVE_INFINITY,S=Number.NEGATIVE_INFINITY,L=A,v=S;const k=(b||g)&&_,N=c/24;let B=!1;for(const t of e)if(t.vertical){B=!0;break}let z,V=0,D=0;if(!b&&B){const t=f.getTextBox(e,24*s.lineHeight);switch(s.anchor){case 1:V=t.height/2,D=-t.width/2;break;case 2:V=-t.height/2,D=t.width/2;break;case 3:V=t.height/2,D=t.width/2;break;case 4:V=-t.height/2,D=-t.width/2;break;case 5:V=t.height;break;case 7:D=-t.width;break;case 6:D=t.width;break;case 8:V=-t.height}}V+=24*s.offset[0],D+=24*s.offset[1];for(const a of e){const e=a.glyphItem?.mosaicItem,h=a.glyphItem?.rect;if(!e||e.rect.isEmpty)continue;const l=e.rect,c=e.page;if(w&&M){if(void 0!==z&&z!==a.y){let e,n,i,r;B?(e=-v+V,n=A+D,i=v-L,r=S-A):(e=A+V,n=L+D,i=S-A,r=v-L);const a={xTile:t.x,yTile:t.y,dxPixels:e*N-m,dyPixels:n*N-m,hard:!s.optional,partIndex:1,width:i*N+2*m,height:r*N+2*m,angle:u,minLod:d,maxLod:o.MG};w.push(a),A=Number.POSITIVE_INFINITY,S=Number.NEGATIVE_INFINITY,L=A,v=S}z=a.y}const f=[];if(b){const e=.5*h.width,s=(a.x+h.left-3+e)*N*8;if(I=this._placeGlyph(t,I,s,n,t.segment,1,a.vertical,c,f),_&&(I=this._placeGlyph(t,I,s,n,t.segment,-1,a.vertical,c,f)),I>=2)break}else f.push(new y(i,P,P,c,!1)),g&&_&&f.push(new y(i,P+o.Jo,P+o.Jo,c,!1));const x=a.x+h.left,R=a.y-17-h.top,C=x+h.width,F=R+h.height;let U,O,E,G,W,Z,Y,q;if(!b&&B)if(a.vertical){const t=(x+C)/2-h.height/2,e=(R+F)/2+h.width/2;U=new r.bR(-e-3+V,t-3+D),O=new r.bR(U.x+l.width,U.y+l.height),E=new r.bR(U.x,O.y),G=new r.bR(O.x,U.y)}else U=new r.bR(3-R+V,x-3+D),O=new r.bR(U.x-l.height,U.y+l.width),E=new r.bR(O.x,U.y),G=new r.bR(U.x,O.y);else U=new r.bR(x-3+V,R-3+D),O=new r.bR(U.x+l.width,U.y+l.height),E=new r.bR(U.x,O.y),G=new r.bR(O.x,U.y);for(const e of f){let n,i,o,c;if(e.alternateVerticalGlyph){if(!W){const t=(R+F)/2+D;W=new r.bR((x+C)/2+V-h.height/2-3,t+h.width/2+3),Z=new r.bR(W.x+l.height,W.y-l.width),Y=new r.bR(Z.x,W.y),q=new r.bR(W.x,Z.y)}n=W,i=Y,o=q,c=Z}else n=U,i=E,o=G,c=O;const f=R,d=F,g=e.glyphAngle+u;if(0!==g){const t=Math.cos(g),e=Math.sin(g);n=n.clone(),i=i?.clone(),o=o?.clone(),c=c?.clone(),n.rotate(t,e),c?.rotate(t,e),i?.rotate(t,e),o?.rotate(t,e)}let y=0,_=256;if(b&&B?a.vertical?e.alternateVerticalGlyph?(y=32,_=96):(y=224,_=32):(y=224,_=96):(y=192,_=64),T.push(new p(n,o,i,c,l,e.labelAngle,y,_,e.anchor,e.minzoom,e.maxzoom,e.page)),w&&(!k||this._legible(e.labelAngle)))if(M)x<A&&(A=x),f<L&&(L=f),C>S&&(S=C),d>v&&(v=d);else if(e.minzoom<2){const n={xTile:t.x,yTile:t.y,dxPixels:(x+V)*N-m,dyPixels:(f+V)*N-m,hard:!s.optional,partIndex:1,width:(C-x)*N+2*m,height:(d-f)*N+2*m,angle:g,minLod:e.minzoom,maxLod:e.maxzoom};w.push(n)}}}if(I>=2)return null;if(w&&M){let e,n,i,r;B?(e=-v+V,n=A+D,i=v-L,r=S-A):(e=A+V,n=L+D,i=S-A,r=v-L);const a={xTile:t.x,yTile:t.y,dxPixels:e*N-m,dyPixels:n*N-m,hard:!s.optional,partIndex:1,width:i*N+2*m,height:r*N+2*m,angle:u,minLod:d,maxLod:o.MG};w.push(a)}const R=new x(T);return w&&w.length>0&&(R.textColliders=w),R}_legible(t){const e=(0,o.z0)(t);return e<65||e>=193}_placeGlyph(t,e,n,s,i,a,h,l,c){let u=a;const f=u<0?(0,o.Wh)(t.angle+o.Jo,o.pJ):t.angle;let d=0;n<0&&(u*=-1,n*=-1,d=o.Jo),u>0&&++i;let g=new r.bR(t.x,t.y),p=s[i],x=o.MG;if(s.length<=i)return x;for(;;){const t=p.x-g.x,r=p.y-g.y,a=Math.sqrt(t*t+r*r),_=Math.max(n/a,e),m=t/a,I=r/a,P=(0,o.Wh)(Math.atan2(I,m)+d,o.pJ);if(c.push(new y(g,f,P,l,!1,_,x)),h&&c.push(new y(g,f,P,l,!0,_,x)),_<=e)return _;g=p.clone();do{if(i+=u,s.length<=i||i<0)return _;p=s[i]}while(g.isEqual(p));let b=p.x-g.x,w=p.y-g.y;const T=Math.sqrt(b*b+w*w);b*=a/T,w*=a/T,g.x-=b,g.y-=w,x=_}}}var m=n(51624),I=n(15585);class P{constructor(t,e,n=0){this.values={},this._geometry=void 0,this._pbfGeometry=null,this.featureIndex=n;const s=e.keys,i=e.values,r=t.asUnsafe();for(;r.next();)switch(r.tag()){case 1:this.id=r.getUInt64();break;case 2:{const t=r.getMessage().asUnsafe(),e=this.values;for(;!t.empty();){const n=t.getUInt32(),r=t.getUInt32();e[s[n]]=i[r]}t.release();break}case 3:this.type=r.getUInt32();break;case 4:this._pbfGeometry=r.getMessage();break;default:r.skip()}}getGeometry(t){if(void 0!==this._geometry)return this._geometry;if(!this._pbfGeometry)return null;const e=this._pbfGeometry.asUnsafe();let n,s;this._pbfGeometry=null,t?t.reset(this.type):n=[];let i,o=1,a=0,h=0,l=0;for(;!e.empty();){if(0===a){const t=e.getUInt32();o=7&t,a=t>>3}switch(a--,o){case 1:h+=e.getSInt32(),l+=e.getSInt32(),t?t.moveTo(h,l):n&&(s&&n.push(s),s=[],s.push(new r.bR(h,l)));break;case 2:h+=e.getSInt32(),l+=e.getSInt32(),t?t.lineTo(h,l):s&&s.push(new r.bR(h,l));break;case 7:t?t.close():s&&!s[0].equals(h,l)&&s.push(s[0].clone());break;default:throw e.release(),new Error("Invalid path operation")}}return t?i=t.result():n&&(s&&n.push(s),i=n),e.release(),this._geometry=i,i}}n(44208);class b{constructor(t){this._array=[],this._stride=t}get array(){return this._array}get index(){return 4*this._array.length/this._stride}get itemSize(){return this._stride}get sizeInBytes(){return 4*this._array.length}reset(){this.array.length=0}toBuffer(){return new Uint32Array(this._array).buffer}}class w extends b{constructor(){super(12)}add(t,e,n){const s=this.array;s.push(t),s.push(e),s.push(n)}}class T{constructor(t){this.extent=4096,this.keys=[],this.values=[],this._pbfLayer=t.clone();const e=t.asUnsafe();for(;e.next();)switch(e.tag()){case 1:this.name=e.getString();break;case 3:this.keys.push(e.getString());break;case 4:this.values.push(e.processMessage(T._parseValue));break;case 5:this.extent=e.getUInt32();break;default:e.skip()}}getData(){return this._pbfLayer}static _parseValue(t){for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getInt64();case 5:return t.getUInt64();case 6:return t.getSInt64();case 7:return t.getBool();default:t.skip()}return null}}var M=n(89518);class A extends b{constructor(t){super(t)}add(t,e,n,s,i,r,o,a,h,l,c,u){const f=this.array;let d=(0,M.M9)(t,e);f.push(d);const g=31;d=(0,M.Ss)(Math.round(g*n),Math.round(g*s),Math.round(g*i),Math.round(g*r)),f.push(d),d=(0,M.Ss)(Math.round(g*o),Math.round(g*a),Math.round(g*h),Math.round(g*l)),f.push(d),d=(0,M.M9)(c,0),f.push(d),u&&f.push(...u)}}class S extends b{constructor(t){super(t)}add(t,e,n){const s=this.array;s.push((0,M.M9)(t,e)),n&&s.push(...n)}}class L extends b{constructor(t){super(t)}add(t,e,n,s,i,r,o){const a=this.array,h=this.index;let l=(0,M.M9)(t,e);return a.push(l),l=(0,M.Ss)(Math.round(15*n),Math.round(15*s),i,r),a.push(l),o&&a.push(...o),h}}class v extends b{constructor(t){super(t)}add(t,e,n,s,i,r,a,h,l,c,u,f){const d=this.array;let g=(0,M.M9)(t,e);d.push(g),g=(0,M.M9)(Math.round(8*n),Math.round(8*s)),d.push(g),g=(0,M.M9)((0,M.ws)(i/4,r/4),(0,M.ws)(h,l)),d.push(g),g=(0,M.M9)((0,M.ws)(0,(0,o.z0)(a)),(0,M.ws)(10*c,Math.min(10*u,255))),d.push(g),f&&d.push(...f)}}class k extends b{constructor(t){super(t)}add(t,e,n,s,i){const r=this.array,o=(0,M.M9)(2*t+n,2*e+s);r.push(o),i&&r.push(...i)}}class N{constructor(t,e,n){this.layerExtent=4096,this._features=[],this.layer=t,this.zoom=e,this._spriteInfo=n,this._filter=t.getFeatureFilter()}pushFeature(t){this._filter&&!this._filter.filter(t,this.zoom)||this._features.push(t)}hasFeatures(){return this._features.length>0}getResources(t,e,n){}}class B extends N{constructor(t,e,n,s,i){super(t,e,n),this.type=4,this._circleVertexBuffer=s,this._circleIndexBuffer=i}get circleIndexStart(){return this._circleIndexStart}get circleIndexCount(){return this._circleIndexCount}processFeatures(t){const e=this._circleVertexBuffer,n=this._circleIndexBuffer;this._circleIndexStart=3*n.index,this._circleIndexCount=0;const s=this.layer,i=this.zoom;t&&t.setExtent(this.layerExtent);for(const r of this._features){const o=r.getGeometry(t);if(!o)continue;const a=s.circleMaterial.encodeAttributes(r,i,s);for(const t of o)if(t)for(const s of t){const t=e.index;e.add(s.x,s.y,0,0,a),e.add(s.x,s.y,0,1,a),e.add(s.x,s.y,1,0,a),e.add(s.x,s.y,1,1,a),n.add(t,t+1,t+2),n.add(t+1,t+2,t+3),this._circleIndexCount+=6}}}serialize(){let t=6;t+=this.layerUIDs.length,t+=this._circleVertexBuffer.array.length,t+=this._circleIndexBuffer.array.length;const e=new Uint32Array(t),n=new Int32Array(e.buffer);let s=0;e[s++]=this.type,e[s++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[s++]=this.layerUIDs[t];e[s++]=this._circleIndexStart,e[s++]=this._circleIndexCount,e[s++]=this._circleVertexBuffer.array.length;for(let t=0;t<this._circleVertexBuffer.array.length;t++)n[s++]=this._circleVertexBuffer.array[t];e[s++]=this._circleIndexBuffer.array.length;for(let t=0;t<this._circleIndexBuffer.array.length;t++)e[s++]=this._circleIndexBuffer.array[t];return e.buffer}}var z=n(98291),V=n(83349);class D extends N{constructor(t,e,n,s,i,r,o){super(t,e,n),this.type=1,this._patternMap=new Map,this._fillVertexBuffer=s,this._fillIndexBuffer=i,this._outlineVertexBuffer=r,this._outlineIndexBuffer=o}get fillIndexStart(){return this._fillIndexStart}get fillIndexCount(){return this._fillIndexCount}get outlineIndexStart(){return this._outlineIndexStart}get outlineIndexCount(){return this._outlineIndexCount}getResources(t,e,n){const s=this.layer,i=this.zoom,r=s.getPaintProperty("fill-pattern");if(r)if(r.isDataDriven)for(const t of this._features)e(r.getValue(i,t),!0);else e(r.getValue(i),!0)}processFeatures(t){this._fillIndexStart=3*this._fillIndexBuffer.index,this._fillIndexCount=0,this._outlineIndexStart=3*this._outlineIndexBuffer.index,this._outlineIndexCount=0;const e=this.layer,n=this.zoom,{fillMaterial:s,outlineMaterial:i,hasDataDrivenFill:r,hasDataDrivenOutline:o}=e;t&&t.setExtent(this.layerExtent);const a=e.getPaintProperty("fill-pattern"),h=a?.isDataDriven;let l=!a&&e.getPaintValue("fill-antialias",n);if(e.outlineUsesFillColor){if(l&&!e.hasDataDrivenOpacity){const t=e.getPaintValue("fill-opacity",n),s=e.getPaintValue("fill-opacity",n+1);t<1&&s<1&&(l=!1)}if(l&&!e.hasDataDrivenColor){const t=e.getPaintValue("fill-color",n),s=e.getPaintValue("fill-color",n+1);t[3]<1&&s[3]<1&&(l=!1)}}const c=this._features,u=t?.validateTessellation;if(h){const r=[];for(const h of c){const c=a.getValue(n,h),u=this._spriteInfo[c];if(!u?.rect)continue;const f=s.encodeAttributes(h,n,e,u),d=l&&o?i.encodeAttributes(h,n,e):[],g=h.getGeometry(t);r.push({ddFillAttributes:f,ddOutlineAttributes:d,page:u.page,geometry:g}),r.sort((t,e)=>t.page-e.page)}for(const{ddFillAttributes:t,ddOutlineAttributes:n,page:s,geometry:i}of r)this._processFeature(i,l,e.outlineUsesFillColor,t,n,u,s)}else for(const a of c){const h=r?s.encodeAttributes(a,n,e):null,c=l&&o?i.encodeAttributes(a,n,e):null,f=a.getGeometry(t);this._processFeature(f,l,e.outlineUsesFillColor,h,c,u)}}serialize(){let t=10;t+=this.layerUIDs.length,t+=this._fillVertexBuffer.array.length,t+=this._fillIndexBuffer.array.length,t+=this._outlineVertexBuffer.array.length,t+=this._outlineIndexBuffer.array.length,t+=3*this._patternMap.size+1;const e=new Uint32Array(t),n=new Int32Array(e.buffer);let s=0;e[s++]=this.type,e[s++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[s++]=this.layerUIDs[t];e[s++]=this._fillIndexStart,e[s++]=this._fillIndexCount,e[s++]=this._outlineIndexStart,e[s++]=this._outlineIndexCount;const i=this._patternMap,r=i.size;if(e[s++]=r,r>0)for(const[t,[n,r]]of i)e[s++]=t,e[s++]=n,e[s++]=r;e[s++]=this._fillVertexBuffer.array.length;for(let t=0;t<this._fillVertexBuffer.array.length;t++)n[s++]=this._fillVertexBuffer.array[t];e[s++]=this._fillIndexBuffer.array.length;for(let t=0;t<this._fillIndexBuffer.array.length;t++)e[s++]=this._fillIndexBuffer.array[t];e[s++]=this._outlineVertexBuffer.array.length;for(let t=0;t<this._outlineVertexBuffer.array.length;t++)n[s++]=this._outlineVertexBuffer.array[t];e[s++]=this._outlineIndexBuffer.array.length;for(let t=0;t<this._outlineIndexBuffer.array.length;t++)e[s++]=this._outlineIndexBuffer.array[t];return e.buffer}_processFeature(t,e,n,s,i,r,o){if(!t)return;const a=t.length,h=!i||0===i.length;if(e&&(!n||h))for(let e=0;e<a;e++)this._processOutline(t[e],i);let l;for(let e=0;e<a;e++){const n=D._area(t[e]);n>32?(void 0!==l&&this._processFill(t,l,s,r,o),l=[e]):n<-32&&void 0!==l&&l.push(e)}void 0!==l&&this._processFill(t,l,s,r,o)}_processOutline(t,e){const n=this._outlineVertexBuffer,s=this._outlineIndexBuffer,i=s.index;let o,a,h;const l=new r.bR(0,0),c=new r.bR(0,0),u=new r.bR(0,0);let f=-1,d=-1,g=-1,y=-1,p=-1,x=!1,_=t.length;if(_<2)return;const m=t[0];let I=t[_-1];for(;_&&I.isEqual(m);)--_,I=t[_-1];if(!(_-0<2)){for(let i=0;i<_;++i){0===i?(o=t[_-1],a=t[0],h=t[1],l.assignSub(a,o),l.normalize(),l.rightPerpendicular()):(o=a,a=h,h=i!==_-1?t[i+1]:t[0],l.assign(c));const r=this._isClipEdge(o,a);-1===y&&(x=r),c.assignSub(h,a),c.normalize(),c.rightPerpendicular();const m=l.x*c.y-l.y*c.x;u.assignAdd(l,c),u.normalize();const I=-u.x*-l.x+-u.y*-l.y;let P=Math.abs(0!==I?1/I:1);P>8&&(P=8),m>=0?(g=n.add(a.x,a.y,l.x,l.y,0,1,e),-1===y&&(y=g),f>=0&&d>=0&&g>=0&&!r&&s.add(f,d,g),d=n.add(a.x,a.y,P*-u.x,P*-u.y,0,-1,e),-1===p&&(p=d),f>=0&&d>=0&&g>=0&&!r&&s.add(f,d,g),f=d,d=g,g=n.add(a.x,a.y,u.x,u.y,0,1,e),f>=0&&d>=0&&g>=0&&!r&&s.add(f,d,g),d=n.add(a.x,a.y,c.x,c.y,0,1,e),f>=0&&d>=0&&g>=0&&!r&&s.add(f,d,g)):(g=n.add(a.x,a.y,P*u.x,P*u.y,0,1,e),-1===y&&(y=g),f>=0&&d>=0&&g>=0&&!r&&s.add(f,d,g),d=n.add(a.x,a.y,-l.x,-l.y,0,-1,e),-1===p&&(p=d),f>=0&&d>=0&&g>=0&&!r&&s.add(f,d,g),f=d,d=g,g=n.add(a.x,a.y,-u.x,-u.y,0,-1,e),f>=0&&d>=0&&g>=0&&!r&&s.add(f,d,g),f=n.add(a.x,a.y,-c.x,-c.y,0,-1,e),f>=0&&d>=0&&g>=0&&!r&&s.add(f,d,g))}f>=0&&d>=0&&y>=0&&!x&&s.add(f,d,y),f>=0&&y>=0&&p>=0&&!x&&s.add(f,p,y),this._outlineIndexCount+=3*(s.index-i)}}_processFill(t,e,n,s,i){let r;e.length>1&&(r=[]);let o=0;for(const n of e)0!==o&&r.push(o),o+=t[n].length;const a=2*o,h=z.A.acquire();for(const n of e){const e=t[n],s=e.length;for(let t=0;t<s;++t)h.push(e[t].x,e[t].y)}const l=(0,V.e)(h,r,2);if(V.e.deviation(h,r,2,l)>0){const s=e.map(e=>t[e].length),{buffer:r,vertexCount:o}=(0,I.QT)(h,s);if(o>0){const t=this._fillVertexBuffer.index;for(let t=0;t<o;t++)this._fillVertexBuffer.add(r[2*t],r[2*t+1],n);for(let e=0;e<o;e+=3){const n=t+e;this._fillIndexBuffer.add(n,n+1,n+2)}if(void 0!==i){const t=this._patternMap,e=t.get(i);e?e[1]+=o:t.set(i,[this._fillIndexStart+this._fillIndexCount,o])}this._fillIndexCount+=o}}else{const t=l.length;if(t>0){const e=this._fillVertexBuffer.index;let s=0;for(;s<a;)this._fillVertexBuffer.add(h[s++],h[s++],n);let r=0;for(;r<t;)this._fillIndexBuffer.add(e+l[r++],e+l[r++],e+l[r++]);if(void 0!==i){const e=this._patternMap,n=e.get(i);n?n[1]+=t:e.set(i,[this._fillIndexStart+this._fillIndexCount,t])}this._fillIndexCount+=t}}z.A.release(h)}_isClipEdge(t,e){return t.x===e.x?t.x<=-64||t.x>=4160:t.y===e.y&&(t.y<=-64||t.y>=4160)}static _area(t){let e=0;const n=t.length-1;for(let s=0;s<n;s++)e+=(t[s].x-t[s+1].x)*(t[s].y+t[s+1].y);return e+=(t[n].x-t[0].x)*(t[n].y+t[0].y),.5*e}}var R=n(83773);class C extends N{constructor(t,e,n,s,i){super(t,e,n),this.type=2,this._tessellationOptions={pixelCoordRatio:8,halfWidth:0,offset:0},this._patternMap=new Map,this.tessellationProperties={_lineVertexBuffer:null,_lineIndexBuffer:null,_ddValues:null},this.tessellationProperties._lineVertexBuffer=s,this.tessellationProperties._lineIndexBuffer=i,this._lineTessellator=new R.i(F(this.tessellationProperties),U(this.tessellationProperties),t.canUseThinTessellation)}get lineIndexStart(){return this._lineIndexStart}get lineIndexCount(){return this._lineIndexCount}getResources(t,e,n){const s=this.layer,i=this.zoom,r=s.getPaintProperty("line-pattern"),o=s.getPaintProperty("line-dasharray"),a=s.getLayoutProperty("line-cap");if(!r&&!o)return;const h=a?.getValue(i)||0,l=a?.isDataDriven,c=r?.isDataDriven,u=o?.isDataDriven;if(c||u)for(const t of this._features)e(c?r.getValue(i,t):this._getDashArrayKey(t,i,s,o,l,a,h));else if(r)e(r.getValue(i));else if(o){const t=o.getValue(i);e(s.getDashKey(t,h))}}processFeatures(t){this._lineIndexStart=3*this.tessellationProperties._lineIndexBuffer.index,this._lineIndexCount=0;const e=this.layer,n=this.zoom,s=this._features,i=this._tessellationOptions,{hasDataDrivenLine:r,lineMaterial:o}=e;t&&t.setExtent(this.layerExtent);const a=e.getPaintProperty("line-pattern"),h=e.getPaintProperty("line-dasharray"),l=a?.isDataDriven,c=h?.isDataDriven;let u;u=e.getLayoutProperty("line-cap");const f=u?.isDataDriven?u:null,d=f?null:e.getLayoutValue("line-cap",n),g=d||0,y=!!f;u=e.getLayoutProperty("line-join");const p=u?.isDataDriven?u:null,x=p?null:e.getLayoutValue("line-join",n);u=e.getLayoutProperty("line-miter-limit");const _=u?.isDataDriven?u:null,m=_?null:e.getLayoutValue("line-miter-limit",n);u=e.getLayoutProperty("line-round-limit");const I=u?.isDataDriven?u:null,P=I?null:e.getLayoutValue("line-round-limit",n);u=e.getPaintProperty("line-width");const b=u?.isDataDriven?u:null,w=b?null:e.getPaintValue("line-width",n);u=e.getPaintProperty("line-offset");const T=u?.isDataDriven?u:null,M=T?null:e.getPaintValue("line-offset",n);if(l||c){const r=[];for(const i of s){const s=l?a.getValue(n,i):this._getDashArrayKey(i,n,e,h,y,f,g),c=this._spriteInfo[s];if(!c?.rect)continue;const u=o.encodeAttributes(i,n,e,c),A=i.getGeometry(t);r.push({ddAttributes:u,page:c.page,cap:f?f.getValue(n,i):d,join:p?p.getValue(n,i):x,miterLimit:_?_.getValue(n,i):m,roundLimit:I?I.getValue(n,i):P,halfWidth:.5*(b?b.getValue(n,i):w),offset:T?T.getValue(n,i):M,geometry:A})}r.sort((t,e)=>t.page-e.page),i.textured=!0;for(const{ddAttributes:t,page:e,cap:n,join:s,miterLimit:o,roundLimit:a,halfWidth:h,offset:l,geometry:c}of r)i.capType=n,i.joinType=s,i.miterLimit=o,i.roundLimit=a,i.halfWidth=h,i.offset=l,this._processFeature(c,t,e)}else{if(a){const t=a.getValue(n),e=this._spriteInfo[t];if(!e?.rect)return}i.textured=!(!a&&!h),i.capType=d,i.joinType=x,i.miterLimit=m,i.roundLimit=P,i.halfWidth=.5*w,i.offset=M;for(const a of s){const s=r?o.encodeAttributes(a,n,e):null;f&&(i.capType=f.getValue(n,a)),p&&(i.joinType=p.getValue(n,a)),_&&(i.miterLimit=_.getValue(n,a)),I&&(i.roundLimit=I.getValue(n,a)),b&&(i.halfWidth=.5*b.getValue(n,a)),T&&(i.offset=T.getValue(n,a));const h=a.getGeometry(t);this._processFeature(h,s)}}}serialize(){let t=6;t+=this.layerUIDs.length,t+=this.tessellationProperties._lineVertexBuffer.array.length,t+=this.tessellationProperties._lineIndexBuffer.array.length,t+=3*this._patternMap.size+1;const e=new Uint32Array(t),n=new Int32Array(e.buffer);let s=0;e[s++]=this.type,e[s++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[s++]=this.layerUIDs[t];e[s++]=this._lineIndexStart,e[s++]=this._lineIndexCount;const i=this._patternMap,r=i.size;if(e[s++]=r,r>0)for(const[t,[n,r]]of i)e[s++]=t,e[s++]=n,e[s++]=r;e[s++]=this.tessellationProperties._lineVertexBuffer.array.length;for(let t=0;t<this.tessellationProperties._lineVertexBuffer.array.length;t++)n[s++]=this.tessellationProperties._lineVertexBuffer.array[t];e[s++]=this.tessellationProperties._lineIndexBuffer.array.length;for(let t=0;t<this.tessellationProperties._lineIndexBuffer.array.length;t++)e[s++]=this.tessellationProperties._lineIndexBuffer.array[t];return e.buffer}_processFeature(t,e,n){if(!t)return;const s=t.length;for(let i=0;i<s;i++)this._processGeometry(t[i],e,n)}_processGeometry(t,e,n){if(t.length<2)return;let s,i,r=t[0],o=1;for(;o<t.length;)s=t[o].x-r.x,i=t[o].y-r.y,s*s+i*i<1e-6?t.splice(o,1):(r=t[o],++o);if(t.length<2)return;const a=this.tessellationProperties._lineIndexBuffer,h=3*a.index;this._tessellationOptions.initialDistance=0,this._tessellationOptions.wrapDistance=65535,this.tessellationProperties._ddValues=e,this._lineTessellator.tessellate(t,this._tessellationOptions);const l=3*a.index-h;if(void 0!==n){const t=this._patternMap,e=t.get(n);e?e[1]+=l:t.set(n,[h+this._lineIndexCount,l])}this._lineIndexCount+=l}_getDashArrayKey(t,e,n,s,i,r,o){const a=i?r.getValue(e,t):o,h=s.getValue(e,t);return n.getDashKey(h,a)}}const F=t=>(e,n,s,i,r,o,a,h,l,c,u)=>(t._lineVertexBuffer.add(e,n,a,h,s,i,r,o,l,c,u,t._ddValues),t._lineVertexBuffer.index-1),U=t=>(e,n,s)=>{t._lineIndexBuffer.add(e,n,s)};var O=n(32488),E=n(97768),G=n(799),W=n(36745),Z=n(78957),Y=n(92722);function q(t){let e=0;for(let n=0,s=t.length-1;n<t.length;s=n++)e+=(t[s].x-t[n].x)*(t[n].y+t[s].y);return.5*e}var j=n(4264);function K(t,e){return t.iconMosaicItem&&e.iconMosaicItem?t.iconMosaicItem.page===e.iconMosaicItem.page?0:t.iconMosaicItem.page-e.iconMosaicItem.page:t.iconMosaicItem&&!e.iconMosaicItem?1:!t.iconMosaicItem&&e.iconMosaicItem?-1:0}class J extends N{constructor(t,e,n,s,i,r,o,a,h){super(e,n,h.getSpriteItems()),this.type=3,this._markerMap=new Map,this._glyphMap=new Map,this._glyphBufferDataStorage=new Map,this._isIconSDF=!1,this._sourceTileKey=t,this._iconVertexBuffer=s,this._iconIndexBuffer=i,this._textVertexBuffer=r,this._textIndexBuffer=o,this._placementEngine=a,this._workerTileHandler=h}get markerPageMap(){return this._markerMap}get glyphsPageMap(){return this._glyphMap}get symbolInstances(){return this._symbolInstances}static{this._bidiEngine=new O.A}getResources(t,e,n){const s=this.layer,i=this.zoom;t&&t.setExtent(this.layerExtent);const r=s.getLayoutProperty("icon-image"),o=s.getLayoutProperty("text-field");let a=s.getLayoutProperty("text-transform"),h=s.getLayoutProperty("text-font");const l=[];let c,u,f,d;r&&!r.isDataDriven&&(c=r.getValue(i)),o&&!o.isDataDriven&&(u=o.getValue(i)),a&&a.isDataDriven||(f=s.getLayoutValue("text-transform",i),a=null),h&&h.isDataDriven||(d=s.getLayoutValue("text-font",i),h=null);for(const g of this._features){const y=g.getGeometry(t);if(!y||0===y.length)continue;let p,x;r&&(p=r.isDataDriven?r.getValue(i,g):this._replaceKeys(c,g.values),p&&e(p));let _=!1;if(o&&(x=o.isDataDriven?o.getValue(i,g):this._replaceKeys(u,g.values),x)){switch(x=x.replaceAll("\\n","\n"),a&&(f=a.getValue(i,g)),f){case 2:x=x.toLowerCase();break;case 1:x=x.toUpperCase()}if(J._bidiEngine.hasBidiChar(x)){let t;t="rtl"===J._bidiEngine.checkContextual(x)?"IDNNN":"ICNNN",x=J._bidiEngine.bidiTransform(x,t,"VLYSN"),_=!0}if(x.length>0){h&&(d=h.getValue(i,g));for(const t of d){let e=n[t];e||(e=n[t]=new Set);for(const t of x){const n=t.codePointAt(0);null!=n&&e.add(n)}}}}if(!p&&!x)continue;const m=s.getLayoutValue("symbol-sort-key",i,g),I={feature:g,sprite:p,label:x,rtl:_,geometry:y,hash:(x?(0,G.Wm)(x):0)^(p?(0,G.Wm)(p):0),priority:m,textFont:d};l.push(I)}this._symbolFeatures=l}processFeatures(t){t&&t.setExtent(this.layerExtent);const e=this.layer,n=this.zoom,s=e.getLayoutValue("symbol-placement",n),i=0!==s,r=8*e.getLayoutValue("symbol-spacing",n),a=e.getLayoutProperty("icon-image"),h=e.getLayoutProperty("text-field"),l=a?new j.aR(e,n,i):null,c=h?new j.uU(e,n,i):null,u=this._workerTileHandler;let d;a&&(d=u.getSpriteItems()),this._iconIndexStart=3*this._iconIndexBuffer.index,this._textIndexStart=3*this._textIndexBuffer.index,this._iconIndexCount=0,this._textIndexCount=0,this._markerMap.clear(),this._glyphMap.clear();const y=[];let p=1;c?.size&&(p=c.size/24);const x=c?c.maxAngle*o.os:0,_=c?8*c.size:0;for(const t of this._symbolFeatures){let o,a;l&&d&&t.sprite&&(o=d[t.sprite],o&&o.sdf&&(this._isIconSDF=!0)),o&&l.update(n,t.feature);let h=0;const m=t.label;if(m){(0,E.Lw)(c),c.update(n,t.feature);const e=i&&0===c.rotationAlignment?c.keepUpright:c.writingMode&&c.writingMode.includes(1);let s=.5;switch(c.anchor){case 5:case 1:case 7:s=0;break;case 6:case 2:case 8:s=1}let r=.5;switch(c.anchor){case 5:case 3:case 6:r=0;break;case 7:case 4:case 8:r=1}let o=.5;switch(c.justify){case 0:o=s;break;case 1:o=0;break;case 3:o=1}const l=24*c.letterSpacing,d=i?0:24*c.maxWidth,g=24*c.lineHeight,y=t.textFont.map(t=>u.getGlyphItems(t));if(a=new f(y,d,g,l,s,r,o).getShaping(m,t.rtl,e),a&&a.length>0){let t=1e30,e=-1e30;for(const n of a)t=Math.min(t,n.x),e=Math.max(e,n.x);h=(e-t+48)*p*8}}const I=J._getPlacementCandidates(e,s,t.feature,t.geometry);for(const e of I){let{vertices:n}=e;const u=[];if(1===s){if(a?.length&&c?.size){const t=8*c.size*(2+Math.min(2,4*Math.abs(c.offset[1])));n=J._smoothVertices(n,t)}J._pushAnchors(u,n,r,h)}else 2===s?J._pushCenterAnchor(u,n):3===t.feature.type?e.anchor?u.push(e.anchor):J._pushCentroid(u,n):u.push(new g(n[0].x,n[0].y));for(const e of u){if(e.x<0||e.x>4096||e.y<0||e.y>4096)continue;if(i&&h>0&&0===c?.rotationAlignment&&!J._honorsTextMaxAngle(n,e,h,x,_))continue;const s={shaping:a,line:n,iconMosaicItem:o,anchor:e,symbolFeature:t,textColliders:[],iconColliders:[],textVertexRanges:[],iconVertexRanges:[]};y.push(s),this._processFeature(s,l,c)}}}y.sort(K),this._addPlacedGlyphs(),this._symbolInstances=y}serialize(){let t=14;t+=this.layerUIDs.length,t+=3*this.markerPageMap.size,t+=3*this.glyphsPageMap.size,t+=J._symbolsSerializationLength(this._symbolInstances),t+=this._iconVertexBuffer.array.length,t+=this._iconIndexBuffer.array.length,t+=this._textVertexBuffer.array.length,t+=this._textIndexBuffer.array.length;const e=new Uint32Array(t),n=new Int32Array(e.buffer),s=new Float32Array(e.buffer),[i,r,o]=this._sourceTileKey.split("/");let a=0;e[a++]=this.type,e[a++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[a++]=this.layerUIDs[t];e[a++]=this._isIconSDF?1:0,e[a++]=parseFloat(i),e[a++]=parseFloat(r),e[a++]=parseFloat(o),e[a++]=this.markerPageMap.size;for(const[t,[n,s]]of this.markerPageMap)e[a++]=t,e[a++]=n,e[a++]=s;e[a++]=this.glyphsPageMap.size;for(const[t,[n,s]]of this.glyphsPageMap)e[a++]=t,e[a++]=n,e[a++]=s;e[a++]=this._iconVertexBuffer.index/4,e[a++]=this._textVertexBuffer.index/4,a=J.serializeSymbols(e,n,s,a,this._symbolInstances),e[a++]=this._iconVertexBuffer.array.length;for(let t=0;t<this._iconVertexBuffer.array.length;t++)n[a++]=this._iconVertexBuffer.array[t];e[a++]=this._iconIndexBuffer.array.length;for(let t=0;t<this._iconIndexBuffer.array.length;t++)e[a++]=this._iconIndexBuffer.array[t];e[a++]=this._textVertexBuffer.array.length;for(let t=0;t<this._textVertexBuffer.array.length;t++)n[a++]=this._textVertexBuffer.array[t];e[a++]=this._textIndexBuffer.array.length;for(let t=0;t<this._textIndexBuffer.array.length;t++)e[a++]=this._textIndexBuffer.array[t];return e.buffer}static _symbolsSerializationLength(t){let e=0;e+=1;for(const n of t||[]){e+=5,e+=1;for(const t of n.textColliders)e+=10;for(const t of n.iconColliders)e+=10;e+=1,e+=2*n.textVertexRanges.length,e+=1,e+=2*n.iconVertexRanges.length}return e}static serializeSymbols(t,e,n,s,i){i=i||[],e[s++]=i.length;for(const t of i){e[s++]=t.anchor.x,e[s++]=t.anchor.y,e[s++]=t.symbolFeature.hash,e[s++]=t.symbolFeature.priority,e[s++]=t.symbolFeature.feature.featureIndex,e[s++]=t.textColliders.length+t.iconColliders.length;for(const i of t.textColliders)e[s++]=i.xTile,e[s++]=i.yTile,e[s++]=i.dxPixels,e[s++]=i.dyPixels,e[s++]=i.hard?1:0,e[s++]=i.partIndex,n[s++]=i.minLod,n[s++]=i.maxLod,e[s++]=i.width,e[s++]=i.height;for(const i of t.iconColliders)e[s++]=i.xTile,e[s++]=i.yTile,e[s++]=i.dxPixels,e[s++]=i.dyPixels,e[s++]=i.hard?1:0,e[s++]=i.partIndex,n[s++]=i.minLod,n[s++]=i.maxLod,e[s++]=i.width,e[s++]=i.height;e[s++]=t.textVertexRanges.length;for(const[n,i]of t.textVertexRanges)e[s++]=n,e[s++]=i;e[s++]=t.iconVertexRanges.length;for(const[n,i]of t.iconVertexRanges)e[s++]=n,e[s++]=i}return s}_replaceKeys(t,e){return t.replaceAll(/{([^{}]+)}/g,(t,n)=>n in e?e[n]:"")}_processFeature(t,e,n){const{line:s,iconMosaicItem:i,shaping:r,anchor:a}=t,h=this.zoom,l=this.layer,c=!!i;let u=!0;c&&(u=e?.optional||!i);const f=r&&r.length>0,d=!f||n?.optional;let g,y;if(c&&(g=this._placementEngine.getIconPlacement(a,i,e)),(g||u)&&(f&&(y=this._placementEngine.getTextPlacement(a,r,s,n)),y||d)){if(g&&y||(d||u?d||y?u||g||(y=null):g=null:(g=null,y=null)),y){const e=l.hasDataDrivenText?l.textMaterial.encodeAttributes(t.symbolFeature.feature,h,l):null;if(this._storePlacedGlyphs(t,y.shapes,h,n.rotationAlignment,e),y.textColliders){t.textColliders=y.textColliders;for(const t of y.textColliders){t.minLod=Math.max(h+(0,o.p6)(t.minLod),0),t.maxLod=Math.min(h+(0,o.p6)(t.maxLod),25);const e=t.angle;if(e){const n=Math.cos(e),s=Math.sin(e),i=t.dxPixels*n-t.dyPixels*s,r=t.dxPixels*s+t.dyPixels*n,o=(t.dxPixels+t.width)*n-t.dyPixels*s,a=(t.dxPixels+t.width)*s+t.dyPixels*n,h=t.dxPixels*n-(t.dyPixels+t.height)*s,l=t.dxPixels*s+(t.dyPixels+t.height)*n,c=(t.dxPixels+t.width)*n-(t.dyPixels+t.height)*s,u=(t.dxPixels+t.width)*s+(t.dyPixels+t.height)*n,f=Math.min(i,o,h,c),d=Math.max(i,o,h,c),g=Math.min(r,a,l,u),y=Math.max(r,a,l,u);t.dxPixels=f,t.dyPixels=g,t.width=d-f,t.height=y-g}}}}if(g){const n=l.hasDataDrivenIcon?l.iconMaterial.encodeAttributes(t.symbolFeature.feature,h,l):null;if(this._addPlacedIcons(t,g.shapes,h,i.page,1===e.rotationAlignment,n),g.iconColliders){t.iconColliders=g.iconColliders;for(const t of g.iconColliders){t.minLod=Math.max(h+(0,o.p6)(t.minLod),0),t.maxLod=Math.min(h+(0,o.p6)(t.maxLod),25);const e=t.angle;if(e){const n=Math.cos(e),s=Math.sin(e),i=t.dxPixels*n-t.dyPixels*s,r=t.dxPixels*s+t.dyPixels*n,o=(t.dxPixels+t.width)*n-t.dyPixels*s,a=(t.dxPixels+t.width)*s+t.dyPixels*n,h=t.dxPixels*n-(t.dyPixels+t.height)*s,l=t.dxPixels*s+(t.dyPixels+t.height)*n,c=(t.dxPixels+t.width)*n-(t.dyPixels+t.height)*s,u=(t.dxPixels+t.width)*s+(t.dyPixels+t.height)*n,f=Math.min(i,o,h,c),d=Math.max(i,o,h,c),g=Math.min(r,a,l,u),y=Math.max(r,a,l,u);t.dxPixels=f,t.dyPixels=g,t.width=d-f,t.height=y-g}}}}}}_addPlacedIcons(t,e,n,s,i,r){const a=Math.max(n-1,0),h=this._iconVertexBuffer,l=this._iconIndexBuffer,c=this._markerMap;for(const u of e){const e=i?0:Math.max(n+(0,o.p6)(u.minzoom),a),f=i?25:Math.min(n+(0,o.p6)(u.maxzoom),25);if(f<=e)continue;const d=u.tl,g=u.tr,y=u.bl,p=u.br,x=u.mosaicRect,_=u.labelAngle,m=u.minAngle,I=u.maxAngle,P=u.anchor,b=h.index,w=x.x,T=x.y,M=w+x.width,A=T+x.height,S=h.index;h.add(P.x,P.y,d.x,d.y,w,T,_,m,I,e,f,r),h.add(P.x,P.y,g.x,g.y,M,T,_,m,I,e,f,r),h.add(P.x,P.y,y.x,y.y,w,A,_,m,I,e,f,r),h.add(P.x,P.y,p.x,p.y,M,A,_,m,I,e,f,r),t.iconVertexRanges.length>0&&t.iconVertexRanges[0][0]+t.iconVertexRanges[0][1]===S?t.iconVertexRanges[0][1]+=4:t.iconVertexRanges.push([S,4]),l.add(b,b+1,b+2),l.add(b+1,b+2,b+3),c.has(s)?c.get(s)[1]+=6:c.set(s,[this._iconIndexStart+this._iconIndexCount,6]),this._iconIndexCount+=6}}_addPlacedGlyphs(){const t=this._textVertexBuffer,e=this._textIndexBuffer,n=this._glyphMap;for(const[s,i]of this._glyphBufferDataStorage)for(const r of i){const i=t.index,o=r.symbolInstance,a=r.ddAttributes,h=t.index;t.add(r.glyphAnchor[0],r.glyphAnchor[1],r.tl[0],r.tl[1],r.xmin,r.ymin,r.labelAngle,r.minAngle,r.maxAngle,r.minLod,r.maxLod,a),t.add(r.glyphAnchor[0],r.glyphAnchor[1],r.tr[0],r.tr[1],r.xmax,r.ymin,r.labelAngle,r.minAngle,r.maxAngle,r.minLod,r.maxLod,a),t.add(r.glyphAnchor[0],r.glyphAnchor[1],r.bl[0],r.bl[1],r.xmin,r.ymax,r.labelAngle,r.minAngle,r.maxAngle,r.minLod,r.maxLod,a),t.add(r.glyphAnchor[0],r.glyphAnchor[1],r.br[0],r.br[1],r.xmax,r.ymax,r.labelAngle,r.minAngle,r.maxAngle,r.minLod,r.maxLod,a),o.textVertexRanges.length>0&&o.textVertexRanges[0][0]+o.textVertexRanges[0][1]===h?o.textVertexRanges[0][1]+=4:o.textVertexRanges.push([h,4]),e.add(i,i+1,i+2),e.add(i+1,i+2,i+3),n.has(s)?n.get(s)[1]+=6:n.set(s,[this._textIndexStart+this._textIndexCount,6]),this._textIndexCount+=6}this._glyphBufferDataStorage.clear()}_storePlacedGlyphs(t,e,n,s,i){const r=Math.max(n-1,0),a=1===s;let h,l,c,u,f,d,g,y,p,x,_;for(const s of e)h=a?0:Math.max(n+(0,o.p6)(s.minzoom),r),l=a?25:Math.min(n+(0,o.p6)(s.maxzoom),25),l<=h||(c=s.tl,u=s.tr,f=s.bl,d=s.br,g=s.labelAngle,y=s.minAngle,p=s.maxAngle,x=s.anchor,_=s.mosaicRect,this._glyphBufferDataStorage.has(s.page)||this._glyphBufferDataStorage.set(s.page,[]),this._glyphBufferDataStorage.get(s.page).push({glyphAnchor:[x.x,x.y],tl:[c.x,c.y],tr:[u.x,u.y],bl:[f.x,f.y],br:[d.x,d.y],xmin:_.x,ymin:_.y,xmax:_.x+_.width,ymax:_.y+_.height,labelAngle:g,minAngle:y,maxAngle:p,minLod:h,maxLod:l,placementLod:r,symbolInstance:t,ddAttributes:i}))}static _pushAnchors(t,e,n,s){n+=s;let i=0;const a=e.length-1;for(let t=0;t<a;t++)i+=r.bR.distance(e[t],e[t+1]);let h=s||n;if(h*=.5,i<=h)return;const l=h/i;let c=0,u=-(n=i/Math.max(Math.round(i/n),1))/2;const f=e.length-1;for(let s=0;s<f;s++){const i=e[s],r=e[s+1],a=r.x-i.x,h=r.y-i.y,f=Math.sqrt(a*a+h*h);let d;for(;u+n<c+f;){u+=n;const e=(u-c)/f,y=(0,o.GW)(i.x,r.x,e),p=(0,o.GW)(i.y,r.y,e);void 0===d&&(d=Math.atan2(h,a)),t.push(new g(y,p,d,s,l))}c+=f}}static _pushCenterAnchor(t,e){let n=0;const s=e.length-1;for(let t=0;t<s;t++)n+=r.bR.distance(e[t],e[t+1]);const i=n/2;let a=0;const h=e.length-1;for(let n=0;n<h;n++){const s=e[n],r=e[n+1],h=r.x-s.x,l=r.y-s.y,c=Math.sqrt(h*h+l*l);if(i<a+c){const e=(i-a)/c,u=(0,o.GW)(s.x,r.x,e),f=(0,o.GW)(s.y,r.y,e),d=Math.atan2(l,h);return void t.push(new g(u,f,d,n,0))}a+=c}}static _deviation(t,e,n){const s=(e.x-t.x)*(n.x-e.x)+(e.y-t.y)*(n.y-e.y),i=(e.x-t.x)*(n.y-e.y)-(e.y-t.y)*(n.x-e.x);return Math.atan2(i,s)}static _honorsTextMaxAngle(t,e,n,s,i){let o=0;const a=n/2;let h=new r.bR(e.x,e.y),l=e.segment+1;for(;o>-a;){if(--l,l<0)return!1;o-=r.bR.distance(t[l],h),h=t[l]}o+=r.bR.distance(t[l],t[l+1]);const c=[];let u=0;const f=t.length;for(;o<a;){const e=t[l];let n,a=l;do{if(++a,a===f)return!1;n=t[a]}while(n.isEqual(e));let h,d=a;do{if(++d,d===f)return!1;h=t[d]}while(h.isEqual(n));const g=this._deviation(e,n,h);for(c.push({deviation:g,distToAnchor:o}),u+=g;o-c[0].distToAnchor>i;)u-=c.shift().deviation;if(Math.abs(u)>s)return!1;o+=r.bR.distance(n,h),l=a}return!0}static _smoothVertices(t,e){if(e<=0)return t;let n=t.length;if(n<3)return t;const s=[];let i=0,o=0;s.push(0);for(let e=1;e<n;e++){const n=r.bR.distance(t[e],t[e-1]);n>0&&(i+=n,s.push(i),o++,o!==e&&(t[o]=t[e]))}if(n=o+1,n<3)return t;e=Math.min(e,.2*i);const a=t[0].x,h=t[0].y,l=t[n-1].x,c=t[n-1].y,u=r.bR.sub(t[0],t[1]);u.normalize(),t[0].x+=e*u.x,t[0].y+=e*u.y,u.assignSub(t[n-1],t[n-2]),u.normalize(),t[n-1].x+=e*u.x,t[n-1].y+=e*u.y,s[0]-=e,s[n-1]+=e;const f=[];f.push(new r.bR(a,h));const d=1e-6,g=.5*e;for(let i=1;i<n-1;i++){let o=0,a=0,h=0;for(let n=i-1;n>=0;n--){const r=g+s[n+1]-s[i];if(r<0)break;const l=s[n+1]-s[n],c=s[i]-s[n]<g?1:r/l;if(c<d)break;const u=c*c,f=c*r-.5*u*l,y=c*l/e,p=t[n+1],x=t[n].x-p.x,_=t[n].y-p.y;o+=y/f*(p.x*c*r+.5*u*(r*x-l*p.x)-u*c*l*x/3),a+=y/f*(p.y*c*r+.5*u*(r*_-l*p.y)-u*c*l*_/3),h+=y}for(let r=i+1;r<n;r++){const n=g-s[r-1]+s[i];if(n<0)break;const l=s[r]-s[r-1],c=s[r]-s[i]<g?1:n/l;if(c<d)break;const u=c*c,f=c*n-.5*u*l,y=c*l/e,p=t[r-1],x=t[r].x-p.x,_=t[r].y-p.y;o+=y/f*(p.x*c*n+.5*u*(n*x-l*p.x)-u*c*l*x/3),a+=y/f*(p.y*c*n+.5*u*(n*_-l*p.y)-u*c*l*_/3),h+=y}f.push(new r.bR(o/h,a/h))}return f.push(new r.bR(l,c)),t[0].x=a,t[0].y=h,t[n-1].x=l,t[n-1].y=c,f}static _getPlacementCandidates(t,e,n,s){if(0!==e||3!==n.type||"geojson"!==t.sourceType)return s.map(t=>({anchor:null,vertices:t}));const i=function(t){let e=null,n=0,s=[],i=0;for(const r of t){const t=q(r);t>0?(i>n&&(n=i,e=s),s=[r],i=t):t<0&&s.length>0&&(s.push(r),i+=t)}if(i>n&&(e=s),!e)return null;const r=e.map(t=>t.length),o=[];for(const t of e)for(const e of t)o.push(e.x,e.y);const a=W.z.fromOptimized(new Y.A(r,o),"esriGeometryPolygon"),h=(0,Z.R)(a);return h?{x:h[0],y:h[1],vertices:e[0]}:null}(s);return i?[{anchor:new g(i.x,i.y),vertices:i.vertices}]:[]}static _pushCentroid(t,e){const n=4096,s=4096,i=e.length-1;let r=0,o=0,a=0,h=e[0].x,l=e[0].y;h>n&&(h=n),h<0&&(h=0),l>s&&(l=s),l<0&&(l=0);for(let t=1;t<i;t++){let i=e[t].x,c=e[t].y,u=e[t+1].x,f=e[t+1].y;i>n&&(i=n),i<0&&(i=0),c>s&&(c=s),c<0&&(c=0),u>n&&(u=n),u<0&&(u=0),f>s&&(f=s),f<0&&(f=0);const d=(i-h)*(f-l)-(u-h)*(c-l);r+=d*(h+i+u),o+=d*(l+c+f),a+=d}r/=3*a,o/=3*a,isNaN(r)||isNaN(o)||t.push(new g(r,o))}}class H{constructor(t,e,n,s,i,a,h){if(this._pbfTiles={},this._tileClippers={},this._client=n,this._tile=e,this._sourceDataMaxLOD=s,this._baseUrl=h,a){this._styleLayerUIDs=new Set;for(const t of a)this._styleLayerUIDs.add(t)}this._styleRepository=i,this._layers=this._styleRepository?.layers??[];const[l,c,u]=e.tileKey.split("/").map(parseFloat);this._level=l;const f=(0,o.IU)(this._level);for(const e of Object.keys(t)){const n=t[e];if(this._pbfTiles[e]=new m.A(new Uint8Array(n.protobuff),new DataView(n.protobuff)),n.refKey){const[t]=n.refKey.split("/").map(parseFloat),s=l-t;if(s>0){const t=(1<<s)-1,n=c&t,i=u&t;this._tileClippers[e]=new r.O3(s,n,i,8,f)}}this._tileClippers[e]||(this._tileClippers[e]=new r.Ox)}}_canParseStyleLayer(t){return!this._styleLayerUIDs||this._styleLayerUIDs.has(t)}async parse(t){const e=(0,I.If)(),n=this._initialize(t),{returnedBuckets:s}=n;this._processLayers(n),this._linkReferences(n),this._filterFeatures(n);const i=[],r=new Set,o=(t,e)=>{r.has(t)||(i.push({name:t,repeat:e}),r.add(t))},a={};for(const t of s)t.getResources(t.tileClipper,o,a);if(4===this._tile.status)return[];const h=this._fetchResources(i,a,t);return Promise.all([...h,e]).then(()=>this._processFeatures(n.returnedBuckets))}_initialize(t){const e=t?.signal;return{signal:e,sourceNameToTileData:this._parseTileData(this._pbfTiles),layers:this._layers,zoom:this._level,sourceNameToTileClipper:this._tileClippers,sourceNameToUniqueSourceLayerBuckets:{},sourceNameToUniqueSourceLayers:{},returnedBuckets:[],layerIdToBucket:{},referencerUIDToReferencedId:new Map}}_processLayers(t){const{sourceNameToTileData:e,zoom:n,layers:s,sourceNameToTileClipper:i,sourceNameToUniqueSourceLayerBuckets:r,sourceNameToUniqueSourceLayers:o,returnedBuckets:a,layerIdToBucket:h,referencerUIDToReferencedId:l}=t,c=this._sourceDataMaxLOD;for(let t=s.length-1;t>=0;t--){const u=s[t];if(n<c){if(u.minzoom&&n<Math.floor(u.minzoom)||u.maxzoom&&n>=u.maxzoom)continue}else if(u.maxzoom&&n>=u.maxzoom)continue;if(0===u.type||!this._canParseStyleLayer(u.uid)||!e[u.source]||!i[u.source])continue;const f=e[u.source],d=i[u.source],g=u.sourceLayer,y=f[g];if(y){let t=o[u.source];if(t||(t=o[u.source]=new Set),t.add(u.sourceLayer),u.refLayerId)l.set(u.uid,u.refLayerId);else{const t=this._createBucket(u);if(t){t.layerUIDs=[u.uid],t.layerExtent=y.extent,t.tileClipper=d;let e=r[u.source];e||(e=r[u.source]={});let n=e[g];n||(n=e[g]=[]),n.push(t),a.push(t),h[u.id]=t}}}}}_linkReferences(t){const{layerIdToBucket:e,referencerUIDToReferencedId:n}=t;n.forEach((t,n)=>{e[t]&&e[t].layerUIDs.push(n)})}_filterFeatures(t){const{signal:e,sourceNameToTileData:n,sourceNameToUniqueSourceLayerBuckets:i,sourceNameToUniqueSourceLayers:r}=t,o=10*this._level,a=10*(this._level+1),h=[],l=[];for(const t of Object.keys(r))r[t].forEach(e=>{h.push(e),l.push(t)});for(let t=0;t<h.length;t++){const r=l[t],c=h[t];if(!n[r]||!i[r])continue;const u=n[r][c],f=i[r][c];if(!f||0===f.length)continue;if((0,s.G4)(e))return;let d=0;const g=u.getData();for(;g.nextTag(2);){const t=g.getMessage(),e=new P(t,u,d++);t.release();const n=e.values;if(n){const t=n._minzoom;if(t&&t>=a)continue;const e=n._maxzoom;if(e&&e<=o)continue}for(const t of f)t.pushFeature(e)}}}_fetchResources(t,e,n){const s=[],i=this._tile.getWorkerTileHandler();let r,o;t.length>0&&(r=i.fetchSprites(t,this._client,n),s.push(r));for(const t in e){const r=e[t];r.size>0&&(o=i.fetchGlyphs(this._baseUrl,t,r,n),s.push(o))}return s}_processFeatures(t){const e=t.filter(t=>t.hasFeatures()||this._canParseStyleLayer(t.layer.uid));for(const t of e)t.processFeatures(t.tileClipper);return e}_parseTileData(t){const e={};for(const n of Object.keys(t)){const s=t[n],i={};for(;s.next();)switch(s.tag()){case 3:{const t=s.getMessage(),e=new T(t);t.release(),i[e.name]=e;break}default:s.skip()}e[n]=i}return e}_createBucket(t){switch(t.type){case 0:return null;case 1:return this._createFillBucket(t);case 2:return this._createLineBucket(t);case 4:return this._createCircleBucket(t);case 3:return this._createSymbolBucket(t)}}_createFillBucket(t){return new D(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new S(t.fillMaterial.getStride()),new w,new L(t.outlineMaterial.getStride()),new w)}_createLineBucket(t){return new C(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new A(t.lineMaterial.getStride()),new w)}_createCircleBucket(t){return new B(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new k(t.circleMaterial.getStride()),new w)}_createSymbolBucket(t){const e=this._tile;return new J(e.tileKey,t,this._level,new v(t.iconMaterial.getStride()),new w,new v(t.textMaterial.getStride()),new w,e.placementEngine,e.getWorkerTileHandler())}}class Q{constructor(t,e,n,s){this.status=0,this.placementEngine=new _,this.tileKey=t,this.refKeys=e,this._workerTileHandler=n,this._styleRepository=s}release(){this.tileKey="",this.refKeys=null,this.status=0,this._workerTileHandler=null}async parse(t,e){const n=e?.signal;if(null!=n){const t=()=>{n.removeEventListener("abort",t),this.status=4};n.addEventListener("abort",t)}let i;const r={bucketsWithData:[],emptyBuckets:null};try{i=await this._parse(t,e)}catch(t){if((0,s.zf)(t))throw t;return{result:r,transferList:[]}}this.status=2;const o=r.bucketsWithData,a=[];for(const t of i)if(t.hasFeatures()){const e=t.serialize();o.push(e)}else a.push(t.layer.uid);const h=[...o];let l=null;return a.length>0&&(l=Uint32Array.from(a),h.push(l.buffer)),r.emptyBuckets=l,{result:r,transferList:h}}setObsolete(){this.status=4}getLayers(){return this._workerTileHandler.getLayers()}getWorkerTileHandler(){return this._workerTileHandler}async _parse(t,e){const n=t.sourceName2DataAndRefKey;return 0===Object.keys(n).length?[]:(this.status=3,new H(n,this,e.client,t.sourceDataMaxLOD,this._styleRepository,t.styleLayerUIDs,t.baseUrl).parse(e))}}var $=n(45013);class X{constructor(){this._spriteInfo={},this._glyphInfo={},this._sourceDataMaxLOD=25}reset(){return this._spriteInfo={},this._glyphInfo={},Promise.resolve()}getLayers(){return this._styleRepository?.layers??[]}async createTileAndParse(t,e){const{key:n}=t,i={};for(const e of Object.keys(t.sourceName2DataAndRefKey)){const n=t.sourceName2DataAndRefKey[e];i[e]=n.refKey}const r=new Q(n,i,this,this._styleRepository);this.initializeGlyphWorker(void 0,e);try{return await r.parse({...t,sourceDataMaxLOD:this._sourceDataMaxLOD},e)}catch(t){if(r.setObsolete(),r.release(),!(0,s.zf)(t))throw t;return null}}initializeGlyphWorker(t,e){return this._loaded??=(async()=>{const t=await e.client.invoke("openGlyphPorts"),n=await(0,i.N1)(t,{maxNumberOfConcurrentJobs:20});this._glyphWorker=n.createInvokeProxy()})()}updateStyle(t){if(!t||0===t.length||!this._styleRepository)return;const e=this._styleRepository;for(const n of t){const t=n.type,s=n.data;switch(t){case 0:e.setPaintProperties(s.layer,s.paint);break;case 1:e.setLayoutProperties(s.layer,s.layout);break;case 3:e.deleteStyleLayer(s.layer);break;case 2:e.setStyleLayer(s.layer,s.index);break;case 4:this._spriteInfo={}}}}setStyle(t){const{style:e,sourceDataMaxLOD:n}=t;this._styleRepository=new $.A(e),this._sourceDataMaxLOD=n,this._spriteInfo={},this._glyphInfo={}}fetchSprites(t,e,n){const s=[],i=this._spriteInfo;for(const e of t)void 0===i[e.name]&&s.push(e);return 0===s.length?Promise.resolve():e.invoke("getSprites",s,{signal:n?.signal}).then(t=>{for(const e in t){const n=t[e];i[e]=n}})}getSpriteItems(){return this._spriteInfo}async fetchGlyphs(t,e,n,s){const i=[];let r=this._glyphInfo[e];if(r?n.forEach(t=>{r[t]||i.push(t)}):(r=this._glyphInfo[e]=[],n.forEach(t=>i.push(t))),0===i.length)return;if(await this._loaded,!this._glyphWorker)return void console.error("Failed to fetch glyphs: no worker connection");const o=String.fromCodePoint(...i),a=await this._glyphWorker.getGlyphItems(o,!1,t,e,!0,s);if(a)for(const t of a.glyphs)r[t.code]=t}getGlyphItems(t){return this._glyphInfo[t]}}},18989(t,e,n){n.d(e,{A:()=>s});class s{constructor(t=0,e=0,n=0,s=0){this.x=t,this.y=e,this.width=n,this.height=s}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1560,3075,4500,5651,6854,7925],{52106(e,t,r){r.d(t,{A:()=>x});var i,o,n=r(32198),s=r(37838),l=r(69540),a=r(51447),p=r(25482),u=r(53966),c=r(36708),y=r(24326),d=r(91429),g=r(12195),f=r(65864),h=r(50498),m=r(55156),v=r(60950),w=r(54339),b=r(94128),C=r(33910);const M=Symbol("meshGeometryHandles");function S(e){if(null==e)return null;const t={};for(const r in e){const i=e[r];i&&(t[r]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let x=class extends((0,l.OU)(p.o)){static{i=b.Z}static{o=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,y.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new o({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,m.I)(this.origin);if(e)return(0,w.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,w.r)(this,t):null}getGlobalId(){const e=(0,m.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:S(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,g.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const o={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(o.action=i),"attributes"===e&&(o.attributeName=i),this.layer.graphicChanged(o)}_watchMeshGeometryChanges(){this.removeHandles(M);const e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,c.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],M)}};(0,n.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const i=(0,f.rS)(e[r]);i&&(t[r]=i)}return 0!==Object.keys(t).length?t:null}}})],x.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,d.MZ)({value:null})],x.prototype,"attributes",null),(0,n.Cg)([(0,d.MZ)({value:null,types:h.yR,json:{read:f.rS}})],x.prototype,"geometry",null),(0,n.Cg)([(0,d.MZ)()],x.prototype,"distance",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean})],x.prototype,"isAggregate",void 0),(0,n.Cg)([(0,d.MZ)({clonable:!1})],x.prototype,"layer",void 0),(0,n.Cg)([(0,d.MZ)({clonable:"reference"})],x.prototype,"origin",void 0),(0,n.Cg)([(0,d.MZ)({type:s.A,value:null})],x.prototype,"popupTemplate",null),(0,n.Cg)([(0,d.MZ)({clonable:"reference"})],x.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,d.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],x.prototype,"statisticsAggregatedIds",void 0),(0,n.Cg)([(0,d.MZ)({value:null,types:C.Es})],x.prototype,"symbol",null),(0,n.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],x.prototype,"_version",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,value:!0})],x.prototype,"visible",null),x=o=(0,n.Cg)([(0,d.$K)("esri.Graphic")],x)},19334(e,t,r){r.d(t,{e:()=>s});var i=r(54639),o=r(14112);class n{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(e){return this._geometry}toGxGeometry(e){return e.fromAccessorGeometry(this._geometry)}}function s(e){if(null==e)return null;switch(e.type){case"point":if((0,o.e6)(e))return null;break;case"polygon":if((0,o.Wq)(e))return null;break;case"polyline":if((0,o.IY)(e))return null;break;case"multipoint":if((0,o.DG)(e))return null;break;case"extent":if((0,o.As)(e))return null;break;default:return null}const t=i.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new n(e));return t.asAccessorGeometry(),t}},36983(e,t,r){r.d(t,{R:()=>p,p:()=>u});var i=r(54639),o=r(14112),n=r(16930),s=r(60408),l=r(65864);class a{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){const t=(0,l.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function p(e,t){if(null==e||"object"!=typeof e)return null;let r=t;if("spatialReference"in e&&(e.spatialReference instanceof n.A?r=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(r=new n.A,r.read(e.spatialReference))),null==r)throw new Error("Spatial reference required");return(0,s.fT)(e)?u("point",e,r):(0,s.Rg)(e)?u("polyline",e,r):(0,s.Bi)(e)?u("polygon",e,r):(0,s.U9)(e)?u("multipoint",e,r):(0,s.ZC)(e)?u("extent",e,r):null}function u(e,t,r){if(null==t)return null;let n=!1,s=!1;switch(e){case"point":if((0,o.e6)(t))return null;n=void 0!==t.z,s=void 0!==t.m;break;case"polygon":if((0,o.Wq)(t))return null;n=!0===t.hasZ,s=!0===t.hasM;break;case"polyline":if((0,o.IY)(t))return null;n=!0===t.hasZ,s=!0===t.hasM;break;case"multipoint":if((0,o.DG)(t))return null;n=!0===t.hasZ,s=!0===t.hasM;break;case"extent":if((0,o.As)(t))return null;n=null!=t.zmin&&null!=t.zmax,s=null!=t.mmin&&null!=t.mmax;break;default:throw new Error("Unsupported geometry type: "+t.type)}return i.R.of(e,r,n,s,new a(t))}},14112(e,t,r){function i(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function o(e){if(0===(e.curveRings??e.rings).length)return!0;for(const t of e.curveRings??e.rings)if(t.length>0)return!1;return!0}function n(e){if(0===(e.curvePaths??e.paths).length)return!0;for(const t of e.curvePaths??e.paths)if(t.length>0)return!1;return!0}function s(e){return 0===e.points.length}function l(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}r.d(t,{As:()=>l,DG:()=>s,IY:()=>n,Wq:()=>o,e6:()=>i})},6797(e,t,r){r.d(t,{Ui:()=>y});var i=r(69622),o=r(7762),n=r(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof i.A}function a(e){return e instanceof o.A?Object.keys(e.items):l(e)?(0,n.oY)(e).keys():e?Object.keys(e):[]}function p(e,t){return e instanceof o.A?e.items[t]:e[t]}function u(e){return e?e.declaredClass:null}function c(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const i=a(e),o=a(t);if(0===i.length&&0===o.length)return;if(!i.length||!o.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const n=o.filter(e=>!i.includes(e)),y=i.filter(e=>!o.includes(e)),d=i.filter(r=>o.includes(r)&&p(e,r)!==p(t,r)).concat(n,y).sort(),g=u(e);if(g&&s.has(g)&&d.length)return{type:"complete",oldValue:e,newValue:t};let f;const h=l(e)&&l(t);for(const i of d){const o=p(e,i),n=p(t,i);let s;if((h||"function"!=typeof o&&"function"!=typeof n)&&o!==n&&(null!=o||null!=n)){if(r&&r[i]&&"function"==typeof r[i])s=r[i]?.(o,n);else if(o instanceof Date&&n instanceof Date){if(o.getTime()===n.getTime())continue;s={type:"complete",oldValue:o,newValue:n}}else s="object"==typeof o&&"object"==typeof n&&u(o)===u(n)?c(o,n):{type:"complete",oldValue:o,newValue:n};null!=s&&(null!=f?f.diff[i]=s:f={type:"partial",diff:{[i]:s}})}}return f}function y(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&u(e)!==u(t)?{type:"complete",oldValue:e,newValue:t}:c(e,t)}},55156(e,t,r){r.d(t,{I:()=>o});const i=Symbol("idFieldsProviderSymbol");function o(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},16852(e,t,r){r.r(t),r.d(t,{default:()=>Z});var i=r(32198),o=r(49186),n=r(93637),s=r(91429),l=r(16930),a=r(55156),p=r(60950),u=r(89808),c=r(99959);const y=Symbol("isOrientedImageryGraphicOrigin");var d;class g extends c.A{get[(d=y,p.ym)](){return this.layer}get[a.e](){return this.layer}get[u.Q](){return this.layer}constructor(e){super(),this[d]=!0,this.type="oriented-imagery",this.layer=e}get id(){return this.layer.id}}var f=r(18589),h=r(23281),m=r(20437),v=r(43440),w=r(79677);const b=new Set(["demPathPrefix","demPathSuffix","depthImagePathPrefix","depthImagePathSuffix","elevationSource","horizontalMeasurementUnit","imageGeometryField","imageReferenceField","referenceIDField","sequenceOrderField","sequenceOrderFields","verticalMeasurementUnit","videoPathPrefix","videoPathSuffix","timeAnimation","visibilityTimeExtent"]),C=new Set(["elevationSource"]),M=(e,t)=>!b.has(t)&&e;function S(e,t,r,i){const{name:o,write:n,read:s}=((e,t,r)=>{const i=`orientedImageryProperties.${e}`,o={allowNull:C.has(e),ignoreOrigin:!0};return{name:i,write:t?{...o,target:i,writer:t}:o,read:r?{ignoreOrigin:!0,source:i,reader:r}:{ignoreOrigin:!0}}})(e,t,r),l={name:o,write:n,read:s,origins:{service:{name:`orientedImageryInfo.${o}`,write:t,read:r},"web-scene":{name:o,write:M(n,e),read:M(s,e)},"web-map":{name:o,write:n,read:s}}};return i&&l.origins?(l.type=i,l.origins["web-map"].type=i,l.origins["web-scene"].type=i,l):l}let x=class extends f.default{constructor(e){super(e),this.attributeTableTemplate=null,this.cameraHeading=null,this.cameraHeight=null,this.cameraPitch=null,this.cameraRoll=null,this.coveragePercent=null,this.demPathPrefix=null,this.demPathSuffix=null,this.depthImagePathPrefix=null,this.depthImagePathSuffix=null,this.elevationSource=null,this.farDistance=null,this.geometryType="point",this.graphicOrigin=new g(this),this.horizontalFieldOfView=null,this.horizontalMeasurementUnit=null,this.imageGeometryField="ImageGeometry",this.imagePathPrefix=null,this.imagePathSuffix=null,this.imageReferenceField="OIObjectID",this.imageRotation=null,this.maximumDistance=null,this.nearDistance=null,this.operationalLayerType="OrientedImageryLayer",this.orientationAccuracy=null,this.orientedImageryType=null,this.referenceIDField="OBJECTID",this.sequenceOrderField="SequenceOrder",this.sequenceOrderFields=[],this.subtypeField=null,this.subtypes=null,this.supportedSourceTypes=new Set(["Oriented Imagery Layer"]),this.type="oriented-imagery",this.timeIntervalUnit="days",this.verticalFieldOfView=null,this.verticalMeasurementUnit=null,this.verticalSearchRange=null,this.videoPathPrefix=null,this.videoPathSuffix=null,this.virtualCacheDirectory=null,this.dataStoreID=null,this.imageAccessPaths=null,this.visibilityTimeExtent=null}get effectiveElevationSource(){const{elevationSource:e,demPathPrefix:t,demPathSuffix:r}=this;return(0,h.eR)(e,t,r)}get effectiveSequenceOrderField(){const{sequenceOrderField:e,fields:t,sequenceOrderFields:r}=this;return(0,h.o)(e,t,r)}get fieldConfigurations(){return super.fieldConfigurations}set fieldConfigurations(e){super.fieldConfigurations=e}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}findFirstValidLayerId(e){return e.layers?.find(({type:e})=>!!e&&this.supportedSourceTypes.has(e))?.id}_verifySource(){if(super._verifySource(),"point"!==this.geometryType)throw new o.A("oriented-imagery-layer:invalid-geometry-type","OrientedImageryLayer only supports point geometry type")}};(0,i.Cg)([(0,s.MZ)({type:v.A,json:{write:!1,read:!1}})],x.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:S("cameraHeading")})],x.prototype,"cameraHeading",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:S("cameraHeight")})],x.prototype,"cameraHeight",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:S("cameraPitch")})],x.prototype,"cameraPitch",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:S("cameraRoll")})],x.prototype,"cameraRoll",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:S("coveragePercent")})],x.prototype,"coveragePercent",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:S("demPathPrefix")})],x.prototype,"demPathPrefix",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:S("demPathSuffix")})],x.prototype,"demPathSuffix",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:S("depthImagePathPrefix")})],x.prototype,"depthImagePathPrefix",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:S("depthImagePathSuffix")})],x.prototype,"depthImagePathSuffix",void 0),(0,i.Cg)([(0,s.MZ)({type:Object,json:S("elevationSource")})],x.prototype,"elevationSource",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],x.prototype,"effectiveElevationSource",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],x.prototype,"effectiveSequenceOrderField",null),(0,i.Cg)([(0,s.MZ)({type:Number,json:S("farDistance")})],x.prototype,"farDistance",void 0),(0,i.Cg)([(0,s.MZ)({type:[m.A]})],x.prototype,"fields",void 0),(0,i.Cg)([(0,s.MZ)()],x.prototype,"geometryType",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0,clonable:!1})],x.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:S("horizontalFieldOfView")})],x.prototype,"horizontalFieldOfView",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:S("horizontalMeasurementUnit")})],x.prototype,"horizontalMeasurementUnit",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{...S("imageGeometryField"),default:"ImageGeometry"}})],x.prototype,"imageGeometryField",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:S("imagePathPrefix")})],x.prototype,"imagePathPrefix",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:S("imagePathSuffix")})],x.prototype,"imagePathSuffix",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{...S("imageReferenceField"),default:"OIObjectID"}})],x.prototype,"imageReferenceField",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:S("imageRotation")})],x.prototype,"imageRotation",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:S("maximumDistance")})],x.prototype,"maximumDistance",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:S("nearDistance")})],x.prototype,"nearDistance",void 0),(0,i.Cg)([(0,s.MZ)({type:["OrientedImageryLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0}}}}})],x.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,s.MZ)({json:{...S("orientationAccuracy",(e,t,r)=>{(0,n.sM)(r,e.join(";"),t)},e=>{const t=e?.split(";")?.map(Number);return(0,h.Qv)(t)?(0,h.Yp)(t):[0,0,0,0,0,0,0,0]},String)}})],x.prototype,"orientationAccuracy",void 0),(0,i.Cg)([(0,s.MZ)({json:{...S("orientedImageryType",h.fs.write,h.fs.read,h.fs.jsonValues.slice(1))}})],x.prototype,"orientedImageryType",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{...S("referenceIDField"),default:"OBJECTID"}})],x.prototype,"referenceIDField",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{...S("sequenceOrderField"),default:"SequenceOrder"}})],x.prototype,"sequenceOrderField",void 0),(0,i.Cg)([(0,s.MZ)({json:{...S("sequenceOrderFields",function(e,t,r){e?.length&&(0,n.sM)(r,e,t)}),default:[]}})],x.prototype,"sequenceOrderFields",void 0),(0,i.Cg)([(0,s.MZ)({type:l.A})],x.prototype,"spatialReference",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],x.prototype,"subtypeField",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],x.prototype,"subtypes",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!1},value:"oriented-imagery",readOnly:!0})],x.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:h.RR.apiValues,json:{...S("timeIntervalUnit",h.RR.write,h.RR.read,h.RR.jsonValues)}})],x.prototype,"timeIntervalUnit",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:S("verticalFieldOfView")})],x.prototype,"verticalFieldOfView",void 0),(0,i.Cg)([(0,s.MZ)({type:h.l6.apiValues,json:{...S("verticalMeasurementUnit",h.l6.write,h.l6.read,h.l6.jsonValues)}})],x.prototype,"verticalMeasurementUnit",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:S("verticalSearchRange")})],x.prototype,"verticalSearchRange",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:S("videoPathPrefix")})],x.prototype,"videoPathPrefix",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:S("videoPathSuffix")})],x.prototype,"videoPathSuffix",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.orientedImageryProperties.virtualCacheDirectory",read:!0}}}})],x.prototype,"virtualCacheDirectory",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.dsid",read:!0}}}})],x.prototype,"dataStoreID",void 0),(0,i.Cg)([(0,s.MZ)({type:Object,readOnly:!0,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.imageAccessPaths",read:!0}}}})],x.prototype,"imageAccessPaths",void 0),(0,i.Cg)([(0,s.MZ)({type:w.A,json:{origins:{"web-scene":{write:!1,read:!1}}}})],x.prototype,"visibilityTimeExtent",void 0),x=(0,i.Cg)([(0,s.$K)("esri.layers.OrientedImageryLayer")],x);const Z=x},52136(e,t,r){var i=r(32198),o=r(91429);r.d(t,["p",0,e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i.Cg)([(0,o.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},32756(e,t,r){r.d(t,{Rr:()=>l});var i=r(32198),o=r(93637),n=r(91429),s=r(91880);function l(e,t,r){if(!e)return null;const i=e.find(e=>!!e.field);if(!i)return null;const o=new s.A;return o.read(i,r),[o]}const a={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,i){const n=e.find(e=>!!e.field);n&&(0,o.sM)(r,[n.toJSON()],t)}}}};r.d(t,["fY",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,n.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},63490(e,t,r){r.d(t,{Mr:()=>a,TH:()=>l});var i=r(32198),o=r(69540),n=r(25482),s=r(91429);let l=class extends((0,o.OU)(n.o)){constructor(){super(...arguments),this.url=null}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],l.prototype,"lod",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"rasterFunction",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"url",void 0),l=(0,i.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],l);let a=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.constantElevation=null}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"constantElevation",void 0),a=(0,i.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],a),r.d(t,["E1",0,e=>null!=e&&"number"==typeof e.constantElevation])},23281(e,t,r){r.d(t,{eR:()=>M,Qv:()=>T,fs:()=>Z,Yp:()=>N,o:()=>O,RR:()=>S,l6:()=>x});var i=r(66552),o=(r(86211),r(28735),r(32198)),n=r(69540),s=r(25482),l=r(91429),a=r(69622),p=r(21325);let u=class extends a.A{set horizontalWKID(e){e?(0,p.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,p.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:o}=this;return e?.length>1&&!Number.isNaN(t)&&r?.length>1&&i?.length>1&&o?.length>1}};(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"affineTransformations",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"focalLength",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"principalOffsetPoint",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"radialDistortionCoefficients",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"tangentialDistortionCoefficients",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"horizontalWKID",null),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"verticalWKID",null),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"x",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"y",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"z",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"type",void 0),u=(0,o.Cg)([(0,l.$K)("esri.layers.orientedImagery.core.CameraOrientation")],u);const c=u;let y=class extends((0,n.OU)((0,s.T)(c))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,heading:s,pitch:l,roll:a,affineTransformations:p,focalLength:u,principalOffsetPoint:c,radialDistortionCoefficients:y,tangentialDistortionCoefficients:d}=this,g=[e,t,r,i,o,n,s,l,a];return this.isAdvanced&&(p?.forEach(e=>g.push(e)),g.push(u),c?.forEach(e=>g.push(e)),y?.forEach(e=>g.push(e)),d?.forEach(e=>g.push(e))),g.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],y.prototype,"type",void 0),(0,o.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],y.prototype,"affineTransformations",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],y.prototype,"focalLength",void 0),(0,o.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],y.prototype,"principalOffsetPoint",void 0),(0,o.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],y.prototype,"radialDistortionCoefficients",void 0),(0,o.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],y.prototype,"tangentialDistortionCoefficients",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],y.prototype,"heading",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],y.prototype,"pitch",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],y.prototype,"roll",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],y.prototype,"x",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],y.prototype,"y",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],y.prototype,"z",void 0),y=(0,o.Cg)([(0,l.$K)("esri.layers.orientedImagery.core.CameraOrientationHPR")],y);const d=y;let g=class extends((0,n.OU)((0,s.T)(c))){constructor(){super(...arguments),this.type=4}toString(){const{type:e,latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:o,properties:n}=this,s=`${n}`.split("|");return s.splice(1,1),`${e}|${t}|${r}|${i}|${o}|${s.join("|")}`}};(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],g.prototype,"type",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0},type:Number})],g.prototype,"latitude",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0},type:Number})],g.prototype,"longitude",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0},type:Number})],g.prototype,"ellipsoidRadius",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0},type:Number})],g.prototype,"squaredEccentricity",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],g.prototype,"properties",void 0),g=(0,o.Cg)([(0,l.$K)("esri.layers.orientedImagery.core.CameraOrientationLTP")],g);const f=g;let h=class extends((0,n.OU)((0,s.T)(c))){constructor(){super(...arguments),this.type=2}toString(){const{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,omega:s,phi:l,kappa:a,affineTransformations:p,focalLength:u,principalOffsetPoint:c,radialDistortionCoefficients:y,tangentialDistortionCoefficients:d}=this,g=[e,t,r,i,o,n,s,l,a];return this.isAdvanced&&(p?.forEach(e=>g.push(e)),g.push(u),c?.forEach(e=>g.push(e)),y?.forEach(e=>g.push(e)),d?.forEach(e=>g.push(e))),g.map(e=>isNaN(e)?"":e).join("|")}};(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],h.prototype,"type",void 0),(0,o.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],h.prototype,"affineTransformations",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],h.prototype,"focalLength",void 0),(0,o.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],h.prototype,"principalOffsetPoint",void 0),(0,o.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],h.prototype,"radialDistortionCoefficients",void 0),(0,o.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],h.prototype,"tangentialDistortionCoefficients",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],h.prototype,"omega",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],h.prototype,"phi",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],h.prototype,"kappa",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],h.prototype,"x",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],h.prototype,"y",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],h.prototype,"z",void 0),h=(0,o.Cg)([(0,l.$K)("esri.layers.orientedImagery.core.CameraOrientationOPK")],h);const m=h;let v=class extends((0,n.OU)((0,s.T)(c))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:o}=this;return e?.length>1||!Number.isNaN(t)||r?.length>1||i?.length>1||o?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,yaw:s,pitch:l,roll:a,affineTransformations:p,focalLength:u,principalOffsetPoint:c,radialDistortionCoefficients:y,tangentialDistortionCoefficients:d}=this,g=[e,t,r,i,o,n,s,l,a];return this.isAdvanced&&(p?.forEach(e=>g.push(e)),g.push(u),c?.forEach(e=>g.push(e)),c?.forEach(e=>g.push(e)),y?.forEach(e=>g.push(e)),d?.forEach(e=>g.push(e))),g.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,o.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,o.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,o.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,o.Cg)([(0,l.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],v.prototype,"yaw",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,o.Cg)([(0,l.$K)("esri.layers.orientedImagery.core.CameraOrientationYPR")],v);const w=v,b=new Map;b.set("2",{desc:"Using Omega Phi Kappa",constructor:m}),b.set("1",{desc:"Using Heading, Pitch and Roll",constructor:d}),b.set("3",{desc:"Using Yaw, Pitch and Roll",constructor:w}),b.set("4",{desc:"Using Local Tangent Plane",constructor:f});var C=r(63490);function M(e,t,r){return e?(0,C.E1)(e)?new C.Mr(e):function(e,t,r){let{url:i}=e;return i?(i=function(e,t,r){return t&&(e=`${t}${e}`),r&&(e+=`${r}`),e}(i,t,r),new C.TH({...e,url:i})):null}(e,t,r):e}const S=new i.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),x=new i.J({Feet:"feet",Meter:"meter"}),Z=new i.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique",Terrestrial360Video:"terrestrial-360-video",TerrestrialFrameVideo:"terrestrial-frame-video",Aerial360Video:"aerial-360-video",AerialFrameVideo:"aerial-frame-video","":null}),j=new Map;j.set("1",function(e){const[t,r,i,o,n,s,l,a,p,u,c,y,d,g,f,h,m,v,w,b,C,M]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,heading:s,pitch:l,roll:a,...I([p,u,c,y,d,g],[h,m],[v,w,b],[C,M],f)}}),j.set("3",function(e){const[t,r,i,o,n,s,l,a,p,u,c,y,d,g,f,h,m,v,w,b,C,M]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,yaw:s,pitch:l,roll:a,...I([p,u,c,y,d,g],[h,m],[v,w,b],[C,M],f)}}),j.set("2",function(e){const[t,r,i,o,n,s,l,a,p,u,c,y,d,g,f,h,m,v,w,b,C,M]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,omega:s,phi:l,kappa:a,...I([p,u,c,y,d,g],[h,m],[v,w,b],[C,M],f)}}),j.set("4",function(e){const[t,r,i,o,n,...s]=e.slice(1),l=j.get(n),a=b.get(n)?.constructor;return l&&a?{latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:o,properties:new a(l([n,"",...s]))}:null});const P=e=>{const t=e.map(e=>parseFloat(e)).filter(e=>!isNaN(e));if(t.length===e.length)return t};function I(e,t,r,i,o){const n=P(e),s=P(t),l=P(r),a=P(i);return{affineTransformations:6===n?.length?n:void 0,focalLength:6===n?.length?parseFloat(o):void 0,principalOffsetPoint:2!==s?.length?[0,0]:s,radialDistortionCoefficients:3!==l?.length?[0,0,0]:l,tangentialDistortionCoefficients:2!==a?.length?[0,0]:a}}function T(e){return Array.isArray(e)&&e?.length>5&&!e.some(isNaN)}function N(e){for(e=e.slice(0,8);e.length<8;)e.push(0);return e}function O(e,t,r){const i=function(e,t){return e?.length?e.map(({field:e,order:r})=>{const i=t.find(t=>t.name.toLowerCase()===e.toLowerCase());return i?{fieldName:i.name,sortOrder:"desc"===r?.toLowerCase()?"desc":"asc"}:null}).filter(e=>null!=e):null}(r,t);if(i?.length)return i;if(!e){const e=t.find(e=>e.name.toLocaleLowerCase()==="sequenceorder".toLocaleLowerCase());return e?[{fieldName:e.name,sortOrder:"asc"}]:null}const o=t.find(t=>t.name.toLowerCase()===e.trim().toLowerCase());return o?[{fieldName:o.name,sortOrder:"asc"}]:null}},28032(e,t,r){r.d(t,{A:()=>a});var i=r(32198),o=r(69540),n=r(25482),s=r(91429),l=r(56400);let a=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,s.MZ)()],a.prototype,"creatorField",void 0),(0,i.Cg)([(0,s.MZ)()],a.prototype,"creationDateField",void 0),(0,i.Cg)([(0,s.MZ)()],a.prototype,"editorField",void 0),(0,i.Cg)([(0,s.MZ)()],a.prototype,"editDateField",void 0),(0,i.Cg)([(0,s.MZ)()],a.prototype,"realm",void 0),(0,i.Cg)([(0,s.MZ)((0,l.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,i.Cg)([(0,s.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,r){r.d(t,{A:()=>p});var i=r(32198),o=r(69540),n=r(66552),s=r(25482),l=r(91429);const a=new n.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"drawingTool",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,i.Cg)([(0,l.$K)("esri.layers.support.FeatureTemplate")],p)},33143(e,t,r){r.d(t,{A:()=>c});var i=r(32198),o=r(69540),n=r(25482),s=r(91429),l=r(8631),a=r(29005),p=r(36005),u=r(43937);let c=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,l.r)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],c.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],c.prototype,"domains",void 0),(0,i.Cg)([(0,p.w)("domains")],c.prototype,"readDomains",null),(0,i.Cg)([(0,u.K)("domains")],c.prototype,"writeDomains",null),(0,i.Cg)([(0,s.MZ)({type:[a.A],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureType")],c)},46499(e,t,r){r.d(t,{A:()=>x});var i,o,n=r(32198),s=(r(44208),r(66552)),l=r(25482),a=r(4718),p=r(90629),u=r(91429),c=r(90360),y=r(73913),d=r(32730),g=r(77548),f=r(59868),h=r(73838),m=r(33910),v=r(36005),w=r(43937);const b=new s.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function C(e,t,r){return{enabled:!(0,g.TU)(r?.layer)}}function M(e){return!e||"service"!==e.origin&&!("map-image"===e.layer?.type)}function S(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let x=class extends l.o{static{i=d.vK}static{o=this}static evaluateWhere(e,t){const r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;const i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){const e=r(t[i[0]],i[1],i[2]),o=i[3],n=r(t[i[4]],i[5],i[6]);switch(o){case"AND":return e&&n;case"OR":return e||n}}return!1}catch(e){}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=f.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){const r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,d.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){const t=(0,d.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&M(i))e=new y.A({expression:this.getLabelExpressionArcade()});else if(!e)return;const o=e.toJSON(i);o.expression&&(t[r]=o)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,d.XJ)(this)}getLabelExpressionArcade(){return(0,d.BI)(this)}getLabelExpressionSingleField(){return(0,d.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new o({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,a.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],x.prototype,"name",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:C}}}}})],x.prototype,"allowOverrun",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:C}}}}})],x.prototype,"deconflictionStrategy",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&S(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],x.prototype,"labelExpression",void 0),(0,n.Cg)([(0,v.w)("labelExpression")],x.prototype,"readLabelExpression",null),(0,n.Cg)([(0,w.K)("labelExpression")],x.prototype,"writeLabelExpression",null),(0,n.Cg)([(0,u.MZ)({type:y.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return M(e)||S(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],x.prototype,"labelExpressionInfo",void 0),(0,n.Cg)([(0,w.K)("labelExpressionInfo")],x.prototype,"writeLabelExpressionInfo",null),(0,n.Cg)([(0,u.MZ)({type:b.apiValues,json:{type:b.jsonValues,read:b.read,write:b.write}})],x.prototype,"labelPlacement",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],x.prototype,"offsetDistance",void 0),(0,n.Cg)([(0,u.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],x.prototype,"labelPosition",void 0),(0,n.Cg)([(0,u.MZ)({type:Number})],x.prototype,"maxScale",void 0),(0,n.Cg)([(0,w.K)("maxScale")],x.prototype,"writeMaxScale",null),(0,n.Cg)([(0,u.MZ)({type:Number})],x.prototype,"minScale",void 0),(0,n.Cg)([(0,w.K)("minScale")],x.prototype,"writeMinScale",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:C}}}}})],x.prototype,"repeatLabel",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,cast:p.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:C}}}}})],x.prototype,"repeatLabelDistance",null),(0,n.Cg)([(0,u.MZ)({types:m.em,json:{types:m.em,origins:{"portal-item":{types:m.em,read:{reader:(0,c.C)({types:m.em})},default:null},"web-scene":{types:m.Rv,read:{reader:(0,c.C)({types:m.Rv})},write:h.oO,default:null}},write:h.oO,default:null}})],x.prototype,"symbol",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"useCodedValues",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],x.prototype,"where",void 0),x=o=(0,n.Cg)([(0,u.$K)("esri.layers.support.LabelClass")],x)},73913(e,t,r){r.d(t,{A:()=>u});var i,o=r(32198),n=r(25482),s=r(91429),l=r(32730),a=r(36005),p=r(43937);let u=class extends n.o{static{i=this}constructor(e){super(e),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,l.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,l.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({expression:this.expression,title:this.title,value:this.value})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],u.prototype,"expression",void 0),(0,o.Cg)([(0,a.w)("expression",["expression","value"])],u.prototype,"readExpression",null),(0,o.Cg)([(0,p.K)("expression")],u.prototype,"writeExpression",null),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"title",void 0),(0,o.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],u.prototype,"value",void 0),u=i=(0,o.Cg)([(0,s.$K)("esri.layers.support.LabelExpressionInfo")],u)},37352(e,t,r){r.d(t,{A:()=>a});var i,o=r(32198),n=r(7762),s=r(25482),l=r(91429);let a=i=class extends s.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.LayerFloorInfo")],a)},91880(e,t,r){r.d(t,{A:()=>p});var i,o=r(32198),n=r(66552),s=r(25482),l=r(91429);const a=new n.J({asc:"ascending",desc:"descending"});let p=class extends s.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,o.Cg)([(0,l.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],p.prototype,"order",void 0),p=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],p)},45067(e,t,r){r.d(t,{A:()=>u});var i=r(32198),o=r(69540),n=r(66552),s=r(25482),l=r(91429);const a=new n.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),p=new n.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let u=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"cardinality",void 0),(0,i.Cg)([(0,l.MZ)({json:{name:"catalogID"}})],u.prototype,"catalogId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"composite",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyField",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:p.read,write:p.write}})],u.prototype,"role",void 0),u=(0,i.Cg)([(0,l.$K)("esri.layers.support.Relationship")],u)},41560(e,t,r){r.d(t,{Ch:()=>s,mW:()=>n});var i=r(34727),o=r(39516);function n(e,t){return{...t,filterMode:e.mode}}function s(e,t,r){const n=function(e){if("manual"===p(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],u(r)),t[1]=Math.min(t[1],c(i));return t}(e);if(n&&((0,i.gg)(t,n[0])||(0,i.ZH)(r,n[1])))return"";const s=Array.from(l(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;const o=u(e.at(0)?.minScale),n=c(e.at(-1)?.maxScale);if((0,i.ZH)(o,t)||(0,i.gg)(n,r))return!0;for(let t=0;t<e.length-1;t++){const r=e[t],o=e[t+1];if((0,i.ZH)(u(o.minScale),c(r.maxScale)))return!0}return!1}(s,t,r)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,o.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,r){if("manual"===p(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,o){return e=u(e),r=u(r),t=c(t),!(!(0,i.Sp)(r,e)&&(o??r)>e||(0,i.Hx)(t,r)||void 0!==o&&(0,i.Sp)(o,e))}function p(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||Number.POSITIVE_INFINITY}function c(e){return e||0}},39383(e,t,r){r.d(t,{w:()=>a,z:()=>c});var i=r(49186),o=r(53966),n=r(46499);const s=()=>o.A.getLogger("esri.layers.support.labelingInfo"),l=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{const i=new n.A;if(i.read(e,r),i.labelExpression){const e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(l,(t,r)=>`[${function(e,t){if(!t)return e;const r=e.toLowerCase();for(let e=0;e<t.length;e++){const i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const p=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],u={esriGeometryPoint:p,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:p,esriGeometryEnvelope:null};function c(e,t){const r=[];for(const o of e){const e=o.labelPlacement,n=u[t];if(!o.symbol)return s().warn("No ILabelClass symbol specified."),[];if(!n)return s().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(n.includes(e))r.push(o);else{const i=n[0];e&&s().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);const l=o.clone();l.labelPlacement=i,r.push(l)}}return r}},98205(e,t,r){r.d(t,{KZ:()=>l,eh:()=>s,gf:()=>n,of:()=>o});const i=Symbol("SizeVariableInstance");function o(e){return null!=e&&"object"==typeof e&&i in e}function n(e){return null!=e&&!isNaN(e)&&isFinite(e)}function s(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function l(e,t){const r=t||s(e),i=e.valueUnit||"unknown";return"unknown"===r?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===i?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}r.d(t,["uY",0,i])},22671(e,t,r){r.d(t,{A:()=>v});var i,o=r(32198),n=r(52106),s=r(66552),l=r(25482),a=r(4718),p=r(91429),u=r(16930),c=r(60408),y=r(65864),d=r(50498),g=r(20437),f=r(36005),h=r(43937);const m=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);const{features:o}=this;if(o)for(const e of o)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,y.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=u.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,o]}=e,n=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((o-e)/r));for(let e=0,t=n.length;e<t;e++)s?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,o],scale:[n,s]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const p=this._getHydrationFunction(e,e=>e*n+i,e=>o-e*s,l,a);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const i=u.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){const n=e[t],s=r.fromJSON(n),l=n.geometry?.spatialReference;null==s.geometry||l||(s.geometry.spatialReference=i);const a=n.aggregateGeometries,p=s.aggregateGeometries;if(a&&null!=p)for(const e in p){const t=p[e],r=a[e],o=r?.spatialReference;null==t||o||(t.spatialReference=i)}o.push(s)}return o}_quantizePoints(e,t,r){let i,o;const n=[];for(let s=0,l=e.length;s<l;s++){const l=e[s];if(s>0){const e=t(l[0]),s=r(l[1]);e===i&&s===o||(n.push([e-i,s-o]),i=e,o=s)}else i=t(l[0]),o=r(l[1]),n.push([i,o])}return n.length>0?n:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,c.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,n=i.length;e<n;e++){const n=i[e],s=this._quantizePoints(n,t,r);s&&o.push(s)}return o.length>0?((0,c.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,c.Bi)(e)?e.rings:e.paths;let s,l;for(let e=0,i=n.length;e<i;e++){const i=n[e];for(let e=0,o=i.length;e<o;e++){const o=i[e];e>0?(s+=o[0],l+=o[1]):(s=o[0],l=o[1]),o[0]=t(s),o[1]=r(l)}}if(i&&o)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=o(r[3])}}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(o)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let s,l;for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(s+=i[0],l+=i[1]):(s=i[0],l=i[1]),i[0]=t(s),i[1]=r(l)}if(i&&o)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2])}else if(o)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,p.MZ)({type:[n.A],json:{write:!0}})],v.prototype,"features",void 0),(0,o.Cg)([(0,f.w)("features")],v.prototype,"readFeatures",null),(0,o.Cg)([(0,p.MZ)({type:[g.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,o.Cg)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,o.Cg)([(0,h.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,o.Cg)([(0,p.MZ)({types:d.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,f.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,p.MZ)({type:u.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,o.Cg)([(0,h.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,o.Cg)([(0,p.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){var i=r(32198),o=r(66552),n=r(53966),s=r(91429),l=r(93223);const a=(0,o.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),p="percent-of-total",u="field";r.d(t,["K",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&u||r&&p||null,t&&r&&n.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==u&&e!==p||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,l.e)(a,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,a])},93470(e,t,r){const i=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,o,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,n])}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3359,5740],{46130(e,t,r){r.d(t,{v:()=>n});var a=r(76553);function n(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,a.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},76553(e,t,r){function a(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>a})},33359(e,t,r){r.d(t,{save:()=>U,saveAs:()=>k});var a=r(4576),n=(r(49186),r(71530)),o=r(60694),s=r(23154),i=(r(20655),r(80812),r(88788)),l=r(10407);const u="Feature Service",c="feature-layer-utils",y=`${c}-save`,f=`${c}-save-as`;function p(e){const t=e?.type;return("feature"===t||"subtype-group"===t||"oriented-imagery"===t||"dimension-feature"===t||"annotation-feature"===t)&&"feature-layer"===e?.source?.type}function m(e){return{isValid:p(e)&&(!("dynamicDataSource"in e)||!e.dynamicDataSource),errorMessage:"Feature layer should be a layer or table in a map or feature service"}}function d(e,t){const r=(0,i.m)(e,"portal-item");return t?.isTable&&(r.layerContainerType="tables"),r}function w(e){const t=[],r=[];for(const{layer:a,layerJSON:n}of e)h(a)?r.push(n):t.push(n);return{layers:t,tables:r}}function h(e,t){return e.isTable}function L(e){return w([e])}async function b(e,t){return/\/\d+\/?$/.test(e.url)?L(t[0]):async function(e,t){if(e.reverse(),!t)return w(e);const a=await async function(e,t){let a,n=await e.fetchData("json");if(!function(e){return!!(e&&Array.isArray(e.layers)&&Array.isArray(e.tables))}(n)||(0,l.Y)(e,l.mm.HOSTED_SERVICE))a=!0;else{if(function(e){return[...e.layers,...e.tables].every(e=>"layerType"in e&&!!e.layerType)}(n))return n;a=!1}n??={},function(e){e.layers??=[],e.tables??=[]}(n);const{layer:{url:o,customParameters:i,apiKey:u}}=t[0];return await async function(e,t,a,n){const{url:o,customParameters:i,apiKey:l}=t,{serviceJSON:u,layersJSON:c}=await(0,s.A6)(o,{customParameters:i,apiKey:l});if(!n)return void A(e,u);const y=g(e.layers,u.layers,a),f=g(e.tables,u.tables,a);e.layers=y.itemResources,e.tables=f.itemResources,A(e,u);const p=[...y.added,...f.added],m=c?[...c.layers,...c.tables]:[];await async function(e,t,a,n){const o=await async function(e){const t=new Set,a=[];for(const{type:n}of e){const e=(0,s.Jo)(n);if(e&&!t.has(n))switch(t.add(n),e){case"AnnotationFeatureLayer":a.push(r.e(737).then(()=>r(20737)).then(e=>e.default));break;case"CatalogLayer":a.push(Promise.all([r.e(1214),r.e(5051),r.e(4473),r.e(9789),r.e(893),r.e(7013),r.e(7067)]).then(()=>r(83508)).then(e=>e.default));break;case"DimensionFeatureLayer":a.push(r.e(5077).then(()=>r(25077)).then(e=>e.default));break;case"FeatureLayer":a.push(Promise.all([r.e(5620),r.e(9953),r.e(1214),r.e(5051),r.e(4473),r.e(1017),r.e(9789),r.e(8589),r.e(4500)]).then(()=>r(18589)).then(e=>e.default));break;case"OrientedImageryLayer":a.push(Promise.all([r.e(5620),r.e(9953),r.e(1214),r.e(5051),r.e(4473),r.e(1017),r.e(9789),r.e(8589),r.e(5651)]).then(()=>r(16852)).then(e=>e.default))}}const n=await Promise.all(a),o=new Map;return Array.from(t).forEach((e,t)=>{o.set(e,n[t])}),o}(t),i=[];for(const{id:e,type:r}of t){const t=o.get(r);t&&i.push(new t({url:a,layerId:e,sourceJSON:n.find(({id:t})=>t===e)}))}await Promise.allSettled(i.map(e=>e.load()));for(const t of i){const{layerId:r,loaded:a}=t;if(!a||!("defaultPopupTemplate"in t)||!t.defaultPopupTemplate)continue;const n={id:r,popupInfo:t.defaultPopupTemplate.toJSON()};I(t,"ArcGISFeatureLayer"===t.operationalLayerType?n:{...n,layerType:t.operationalLayerType},e)}}(e,p,o,m)}(n,{url:o??"",customParameters:i,apiKey:u},t.map(e=>e.layer.layerId),a),n}(t,e);for(const t of e)I(t.layer,t.layerJSON,a);return function(e,t){const r=[],a=[];for(const{layer:e}of t){const{isTable:t,layerId:n}=e;t?a.push(n):r.push(n)}S(e.layers,r),S(e.tables,a)}(a,e),a}(t,e)}function S(e,t){if(e.length<2)return;const r=[];for(const{id:t}of e)r.push(t);(0,a.aI)(r.sort(T),t.slice().sort(T))&&e.sort((e,r)=>{const a=t.indexOf(e.id),n=t.indexOf(r.id);return a<n?-1:a>n?1:0})}function T(e,t){return e<t?-1:e>t?1:0}function g(e,t,r){const n=(0,a.iv)(e,t,(e,t)=>e.id===t.id);e=e.filter(e=>!n.removed.some(t=>t.id===e.id));const o=n.added;for(const{id:t}of o)e.push({id:t});return{itemResources:e,added:o.filter(({id:e})=>!r.includes(e))}}function I(e,t,r){e.isTable?v(r.tables,t):v(r.layers,t)}function v(e,t){const r=e.findIndex(({id:e})=>e===t.id);-1===r?e.push(t):e[r]=t}function A(e,t){const r=e.layers??[],a=e.tables??[],n=[...t.layers??[],...t.tables??[]];for(const e of[...r,...a]){const{id:t}=e;if("layerType"in e&&e.layerType)continue;const r=n.find(({id:e})=>e===t);if(!r)continue;const o=(0,s.Aq)(r.type,a.includes(e));o&&O(0,o)&&P(o)&&(e.layerType=o)}}function O(e,t){return"ArcGISFeatureLayer"!==t&&"Table"!==t}function P(e){return"ArcGISFeatureLayer"!==e&&"Table"!==e}function N(e){if(!("layerType"in e))return!!e.charts?.length;switch(e.layerType){case"CatalogLayer":return!!e.footprintLayer?.charts?.length;case"OrientedImageryLayer":return!!e.charts?.length;case"SubtypeGroupLayer":return!!e.layers.some(e=>!!e.charts?.length);case"SubtypeGroupTable":return!!e.tables.some(e=>!!e.charts?.length)}return!1}function E(e,t){let r=0,a=0,n=0,o=0,s=0,i=0,u=0;for(const e of[...t.layers,...t.tables])if(N(e)&&u++,"layerType"in e)switch(e.layerType){case"CatalogLayer":r++;break;case"OrientedImageryLayer":a++;break;case"ParcelLayer":s++;break;case"SubtypeGroupLayer":n++;break;case"SubtypeGroupTable":o++;break;case"UtilityNetworkLayer":i++}(0,l.Sm)(e,l.mm.CATALOG_LAYER,r>0),(0,l.Sm)(e,l.mm.ORIENTED_IMAGERY_LAYER,a>0),(0,l.Sm)(e,l.mm.PARCEL_FABRIC,s>0),(0,l.Sm)(e,l.mm.SUBTYPE_GROUP_LAYER,n>0),(0,l.Sm)(e,l.mm.SUBTYPE_GROUP_TABLE,o>0),(0,l.Sm)(e,l.mm.UTILITY_NETWORK,i>0),(0,l.Sm)(e,l.mm.CHARTS,u>0)}function R(e,t,r){E(t,r)}async function C(e,t,r){const{url:a,layerId:n,title:s,fullExtent:i,isTable:u}=e,c=(0,o.qg)(a);t.url=("FeatureServer"===c?.serverType?a:`${a}/${n}`)??null,t.title||=s,t.extent=null,u||null==i||(t.extent=await(0,l.sQ)(i)),function(e,t,r){(0,l.OM)(t,l.mm.METADATA),(0,l.Sm)(t,l.mm.MULTI_LAYER,e.length>1),(0,l.Sm)(t,l.mm.SINGLE_LAYER,1===e.length),(0,l.Sm)(t,l.mm.TABLE,r.tables.length>0&&0===r.layers.length),E(t,r)}([e],t,r)}async function U(e,t){return(0,n.UN)({layer:e,itemType:u,validateLayer:m,createJSONContext:t=>d(t,e),createItemData:(e,t)=>b(t,[e]),errorNamePrefix:y,setItemProperties:R},t)}async function k(e,t,r){return(0,n.Uh)({layer:e,itemType:u,validateLayer:m,createJSONContext:t=>d(t,e),createItemData:(e,t)=>Promise.resolve(L(e)),errorNamePrefix:f,newItem:t,setItemProperties:C},r)}},71530(e,t,r){r.d(t,{UN:()=>L,Uh:()=>b});var a=r(49186),n=r(46130),o=r(20655),s=r(80812),i=r(88788),l=r(10407),u=r(26121);async function c(e){const{layer:t,errorNamePrefix:r,validateLayer:n}=e;await t.load(),function(e,t,r){const n=r(e);if(!n.isValid)throw new a.A(`${t}:invalid-parameters`,n.errorMessage,{layer:e})}(t,r,n)}function y(e,t){return`Layer (title: ${e.title}, id: ${e.id}) of type '${e.declaredClass}' ${t}`}function f(e){const{item:t,errorNamePrefix:r,layer:n,validateItem:o}=e;if(function(e){const{item:t,itemType:r,additionalItemType:n,errorNamePrefix:o,layer:s}=e,i=[r];if(n&&i.push(n),!i.includes(t.type)){const e=i.map(e=>`'${e}'`).join(", ");throw new a.A(`${o}:portal-item-wrong-type`,`Portal item type should be one of: "${e}"`,{item:t,layer:s})}}(e),o){const e=o(t);if(!e.isValid)throw new a.A(`${r}:invalid-parameters`,e.errorMessage,{layer:n})}}function p(e){const{layer:t,errorNamePrefix:r}=e,{portalItem:n}=t;if(!n)throw new a.A(`${r}:portal-item-not-set`,y(t,"requires the portalItem property to be set"));if(!n.loaded)throw new a.A(`${r}:portal-item-not-loaded`,y(t,"cannot be saved to a portal item that does not exist or is inaccessible"));f({...e,item:n})}function m(e){const{newItem:t,itemType:r}=e;let a=s.default.from(t);return a.id&&(a=a.clone(),a.id=null),a.type??=r,a.portal??=o.A.getDefault(),f({...e,item:a}),a}function d(e){return(0,i.m)(e,"portal-item")}async function w(e,t,r){"beforeSave"in e&&"function"==typeof e.beforeSave&&await e.beforeSave();const a=e.write({},t);return await Promise.all(t.resources?.pendingOperations??[]),(0,u.ci)(t,{errorName:"layer-write:unsupported"},r),a}function h(e){(0,l.LG)(e,l.mm.JSAPI),e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t))}async function L(e,t){const{layer:r,createItemData:a,createJSONContext:o,setItemProperties:s,saveResources:i,supplementalUnsupportedErrors:l}=e;await c(e),p(e);const u=r.portalItem,y=o?o(u):d(u),f=await w(r,y,{...t,supplementalUnsupportedErrors:l}),m=await a({layer:r,layerJSON:f},u);return await(s?.(r,u,m)),h(u),await u.update({data:m}),(0,n.v)(y),await(i?.(u,y)),u}async function b(e,t){const{layer:r,createItemData:a,createJSONContext:o,setItemProperties:s,saveResources:i,supplementalUnsupportedErrors:l}=e;await c(e);const u=m(e),y=o?o(u):d(u),f=await w(r,y,{...t,supplementalUnsupportedErrors:l}),p=await a({layer:r,layerJSON:f},u);return await s(r,u,p),h(u),await async function(e,t,r){const a=e.portal;await a.signIn(),await a.user.addItem({item:e,data:t,folder:r?.folder})}(u,p,t),r.portalItem=u,(0,n.v)(y),await(i?.(u,y)),u}},23154(e,t,r){r.d(t,{A6:()=>i,Aq:()=>d,Jo:()=>m,QM:()=>s});var a=r(77548),n=r(7861);const o=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function s(e,t){const{serviceJSON:r,layersJSON:a,...n}=await i(e,t);c(r);const o={serviceJSON:r,...n};return a&&(c(a),o.layersJSON=a),o}async function i(e,t){const{loadContext:r,...o}=t||{},s=r?await r.fetchServiceMetadata(e,o):await(0,n.L)(e,o),i=(0,a.G$)();p(s);const l={serviceJSON:s,preferredHost:i};if((s.currentVersion??0)<10.5)return l;const u=`${(0,a.$x)()??e}/layers`,c=r?await r.fetchServiceMetadata(u,o):await(0,n.L)(u,o);return p(c),l.layersJSON={layers:c.layers,tables:c.tables},l}function l(e){return o.has(e.type)}function u(e){return"Table"===e.type}function c(e){e.layers=e.layers?.filter(l),e.tables=e.tables?.filter(u)}function y(e){e.type||="Feature Layer"}function f(e){e.type||="Table"}function p(e){e.layers?.forEach(y),e.tables?.forEach(f)}function m(e){if(!e)return"FeatureLayer";switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationFeatureLayer"}return null}function d(e,t){if(!e)return t?"Table":"ArcGISFeatureLayer";switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Feature Layer":return"ArcGISFeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Table":return"Table";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer";default:return null}}},88788(e,t,r){r.d(t,{m:()=>s,v:()=>o});var a=r(84952),n=r(20655);function o(e,t){return{...i(e,t),readResourcePaths:[]}}function s(e,t,r){const n=(0,a.An)(r?.forceNewItemContext?null:e.itemUrl);return{...i(e,t,r),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:n?{rootPath:n.path,writtenUrls:[]}:null,resources:r?.withResources?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function i(e,t,r){return{origin:t,url:(0,a.An)(r?.forceNewItemContext?null:e.itemUrl),portal:e.portal||n.A.getDefault(),portalItem:e}}},7861(e,t,r){r.d(t,{L:()=>n});var a=r(56507);async function n(e,t){return(await(0,a.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}})).data}},26121(e,t,r){r.d(t,{I6:()=>l,ci:()=>i,dL:()=>s});var a=r(49186),n=r(77548),o=r(59923);async function s(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function i(e,t,r){let n=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new a.A(e,t,r));if(e.blockedRelativeUrls&&(n=n.concat(e.blockedRelativeUrls.map(e=>(0,o.GL)("url",`Relative url '${e}' is not supported`)))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:a}=r;e&&(n=n.filter(({name:e})=>!(o.MG.has(e)||t.includes(e)))),a&&(n=n.filter(e=>"web-document-write:property-required"!==e.name))}if(n.length>0)throw new a.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:n})}function l(e){return(0,n.qd)(e).some(e=>!!e.charts?.length)}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3359,5740],{46130(e,t,r){r.d(t,{v:()=>n});var a=r(76553);function n(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,a.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},76553(e,t,r){function a(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>a})},33359(e,t,r){r.d(t,{save:()=>U,saveAs:()=>k});var a=r(4576),n=(r(49186),r(71530)),o=r(60694),s=r(23154),i=(r(20655),r(80812),r(88788)),l=r(10407);const u="Feature Service",c="feature-layer-utils",y=`${c}-save`,f=`${c}-save-as`;function p(e){const t=e?.type;return("feature"===t||"subtype-group"===t||"oriented-imagery"===t||"dimension-feature"===t||"annotation-feature"===t)&&"feature-layer"===e?.source?.type}function m(e){return{isValid:p(e)&&(!("dynamicDataSource"in e)||!e.dynamicDataSource),errorMessage:"Feature layer should be a layer or table in a map or feature service"}}function d(e,t){const r=(0,i.m)(e,"portal-item");return t?.isTable&&(r.layerContainerType="tables"),r}function w(e){const t=[],r=[];for(const{layer:a,layerJSON:n}of e)h(a)?r.push(n):t.push(n);return{layers:t,tables:r}}function h(e,t){return e.isTable}function L(e){return w([e])}async function b(e,t){return/\/\d+\/?$/.test(e.url)?L(t[0]):async function(e,t){if(e.reverse(),!t)return w(e);const a=await async function(e,t){let a,n=await e.fetchData("json");if(!function(e){return!!(e&&Array.isArray(e.layers)&&Array.isArray(e.tables))}(n)||(0,l.Y)(e,l.mm.HOSTED_SERVICE))a=!0;else{if(function(e){return[...e.layers,...e.tables].every(e=>"layerType"in e&&!!e.layerType)}(n))return n;a=!1}n??={},function(e){e.layers??=[],e.tables??=[]}(n);const{layer:{url:o,customParameters:i,apiKey:u}}=t[0];return await async function(e,t,a,n){const{url:o,customParameters:i,apiKey:l}=t,{serviceJSON:u,layersJSON:c}=await(0,s.A6)(o,{customParameters:i,apiKey:l});if(!n)return void A(e,u);const y=g(e.layers,u.layers,a),f=g(e.tables,u.tables,a);e.layers=y.itemResources,e.tables=f.itemResources,A(e,u);const p=[...y.added,...f.added],m=c?[...c.layers,...c.tables]:[];await async function(e,t,a,n){const o=await async function(e){const t=new Set,a=[];for(const{type:n}of e){const e=(0,s.Jo)(n);if(e&&!t.has(n))switch(t.add(n),e){case"AnnotationFeatureLayer":a.push(r.e(737).then(()=>r(20737)).then(e=>e.default));break;case"CatalogLayer":a.push(Promise.all([r.e(1214),r.e(5051),r.e(4473),r.e(9789),r.e(893),r.e(7013),r.e(7067)]).then(()=>r(83508)).then(e=>e.default));break;case"DimensionFeatureLayer":a.push(r.e(5077).then(()=>r(25077)).then(e=>e.default));break;case"FeatureLayer":a.push(Promise.all([r.e(6361),r.e(9953),r.e(1214),r.e(5051),r.e(4473),r.e(1017),r.e(9789),r.e(8589),r.e(4500)]).then(()=>r(18589)).then(e=>e.default));break;case"OrientedImageryLayer":a.push(Promise.all([r.e(6361),r.e(9953),r.e(1214),r.e(5051),r.e(4473),r.e(1017),r.e(9789),r.e(8589),r.e(5651)]).then(()=>r(16852)).then(e=>e.default))}}const n=await Promise.all(a),o=new Map;return Array.from(t).forEach((e,t)=>{o.set(e,n[t])}),o}(t),i=[];for(const{id:e,type:r}of t){const t=o.get(r);t&&i.push(new t({url:a,layerId:e,sourceJSON:n.find(({id:t})=>t===e)}))}await Promise.allSettled(i.map(e=>e.load()));for(const t of i){const{layerId:r,loaded:a}=t;if(!a||!("defaultPopupTemplate"in t)||!t.defaultPopupTemplate)continue;const n={id:r,popupInfo:t.defaultPopupTemplate.toJSON()};I(t,"ArcGISFeatureLayer"===t.operationalLayerType?n:{...n,layerType:t.operationalLayerType},e)}}(e,p,o,m)}(n,{url:o??"",customParameters:i,apiKey:u},t.map(e=>e.layer.layerId),a),n}(t,e);for(const t of e)I(t.layer,t.layerJSON,a);return function(e,t){const r=[],a=[];for(const{layer:e}of t){const{isTable:t,layerId:n}=e;t?a.push(n):r.push(n)}S(e.layers,r),S(e.tables,a)}(a,e),a}(t,e)}function S(e,t){if(e.length<2)return;const r=[];for(const{id:t}of e)r.push(t);(0,a.aI)(r.sort(T),t.slice().sort(T))&&e.sort((e,r)=>{const a=t.indexOf(e.id),n=t.indexOf(r.id);return a<n?-1:a>n?1:0})}function T(e,t){return e<t?-1:e>t?1:0}function g(e,t,r){const n=(0,a.iv)(e,t,(e,t)=>e.id===t.id);e=e.filter(e=>!n.removed.some(t=>t.id===e.id));const o=n.added;for(const{id:t}of o)e.push({id:t});return{itemResources:e,added:o.filter(({id:e})=>!r.includes(e))}}function I(e,t,r){e.isTable?v(r.tables,t):v(r.layers,t)}function v(e,t){const r=e.findIndex(({id:e})=>e===t.id);-1===r?e.push(t):e[r]=t}function A(e,t){const r=e.layers??[],a=e.tables??[],n=[...t.layers??[],...t.tables??[]];for(const e of[...r,...a]){const{id:t}=e;if("layerType"in e&&e.layerType)continue;const r=n.find(({id:e})=>e===t);if(!r)continue;const o=(0,s.Aq)(r.type,a.includes(e));o&&O(0,o)&&P(o)&&(e.layerType=o)}}function O(e,t){return"ArcGISFeatureLayer"!==t&&"Table"!==t}function P(e){return"ArcGISFeatureLayer"!==e&&"Table"!==e}function N(e){if(!("layerType"in e))return!!e.charts?.length;switch(e.layerType){case"CatalogLayer":return!!e.footprintLayer?.charts?.length;case"OrientedImageryLayer":return!!e.charts?.length;case"SubtypeGroupLayer":return!!e.layers.some(e=>!!e.charts?.length);case"SubtypeGroupTable":return!!e.tables.some(e=>!!e.charts?.length)}return!1}function E(e,t){let r=0,a=0,n=0,o=0,s=0,i=0,u=0;for(const e of[...t.layers,...t.tables])if(N(e)&&u++,"layerType"in e)switch(e.layerType){case"CatalogLayer":r++;break;case"OrientedImageryLayer":a++;break;case"ParcelLayer":s++;break;case"SubtypeGroupLayer":n++;break;case"SubtypeGroupTable":o++;break;case"UtilityNetworkLayer":i++}(0,l.Sm)(e,l.mm.CATALOG_LAYER,r>0),(0,l.Sm)(e,l.mm.ORIENTED_IMAGERY_LAYER,a>0),(0,l.Sm)(e,l.mm.PARCEL_FABRIC,s>0),(0,l.Sm)(e,l.mm.SUBTYPE_GROUP_LAYER,n>0),(0,l.Sm)(e,l.mm.SUBTYPE_GROUP_TABLE,o>0),(0,l.Sm)(e,l.mm.UTILITY_NETWORK,i>0),(0,l.Sm)(e,l.mm.CHARTS,u>0)}function R(e,t,r){E(t,r)}async function C(e,t,r){const{url:a,layerId:n,title:s,fullExtent:i,isTable:u}=e,c=(0,o.qg)(a);t.url=("FeatureServer"===c?.serverType?a:`${a}/${n}`)??null,t.title||=s,t.extent=null,u||null==i||(t.extent=await(0,l.sQ)(i)),function(e,t,r){(0,l.OM)(t,l.mm.METADATA),(0,l.Sm)(t,l.mm.MULTI_LAYER,e.length>1),(0,l.Sm)(t,l.mm.SINGLE_LAYER,1===e.length),(0,l.Sm)(t,l.mm.TABLE,r.tables.length>0&&0===r.layers.length),E(t,r)}([e],t,r)}async function U(e,t){return(0,n.UN)({layer:e,itemType:u,validateLayer:m,createJSONContext:t=>d(t,e),createItemData:(e,t)=>b(t,[e]),errorNamePrefix:y,setItemProperties:R},t)}async function k(e,t,r){return(0,n.Uh)({layer:e,itemType:u,validateLayer:m,createJSONContext:t=>d(t,e),createItemData:(e,t)=>Promise.resolve(L(e)),errorNamePrefix:f,newItem:t,setItemProperties:C},r)}},71530(e,t,r){r.d(t,{UN:()=>L,Uh:()=>b});var a=r(49186),n=r(46130),o=r(20655),s=r(80812),i=r(88788),l=r(10407),u=r(26121);async function c(e){const{layer:t,errorNamePrefix:r,validateLayer:n}=e;await t.load(),function(e,t,r){const n=r(e);if(!n.isValid)throw new a.A(`${t}:invalid-parameters`,n.errorMessage,{layer:e})}(t,r,n)}function y(e,t){return`Layer (title: ${e.title}, id: ${e.id}) of type '${e.declaredClass}' ${t}`}function f(e){const{item:t,errorNamePrefix:r,layer:n,validateItem:o}=e;if(function(e){const{item:t,itemType:r,additionalItemType:n,errorNamePrefix:o,layer:s}=e,i=[r];if(n&&i.push(n),!i.includes(t.type)){const e=i.map(e=>`'${e}'`).join(", ");throw new a.A(`${o}:portal-item-wrong-type`,`Portal item type should be one of: "${e}"`,{item:t,layer:s})}}(e),o){const e=o(t);if(!e.isValid)throw new a.A(`${r}:invalid-parameters`,e.errorMessage,{layer:n})}}function p(e){const{layer:t,errorNamePrefix:r}=e,{portalItem:n}=t;if(!n)throw new a.A(`${r}:portal-item-not-set`,y(t,"requires the portalItem property to be set"));if(!n.loaded)throw new a.A(`${r}:portal-item-not-loaded`,y(t,"cannot be saved to a portal item that does not exist or is inaccessible"));f({...e,item:n})}function m(e){const{newItem:t,itemType:r}=e;let a=s.default.from(t);return a.id&&(a=a.clone(),a.id=null),a.type??=r,a.portal??=o.A.getDefault(),f({...e,item:a}),a}function d(e){return(0,i.m)(e,"portal-item")}async function w(e,t,r){"beforeSave"in e&&"function"==typeof e.beforeSave&&await e.beforeSave();const a=e.write({},t);return await Promise.all(t.resources?.pendingOperations??[]),(0,u.ci)(t,{errorName:"layer-write:unsupported"},r),a}function h(e){(0,l.LG)(e,l.mm.JSAPI),e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t))}async function L(e,t){const{layer:r,createItemData:a,createJSONContext:o,setItemProperties:s,saveResources:i,supplementalUnsupportedErrors:l}=e;await c(e),p(e);const u=r.portalItem,y=o?o(u):d(u),f=await w(r,y,{...t,supplementalUnsupportedErrors:l}),m=await a({layer:r,layerJSON:f},u);return await(s?.(r,u,m)),h(u),await u.update({data:m}),(0,n.v)(y),await(i?.(u,y)),u}async function b(e,t){const{layer:r,createItemData:a,createJSONContext:o,setItemProperties:s,saveResources:i,supplementalUnsupportedErrors:l}=e;await c(e);const u=m(e),y=o?o(u):d(u),f=await w(r,y,{...t,supplementalUnsupportedErrors:l}),p=await a({layer:r,layerJSON:f},u);return await s(r,u,p),h(u),await async function(e,t,r){const a=e.portal;await a.signIn(),await a.user.addItem({item:e,data:t,folder:r?.folder})}(u,p,t),r.portalItem=u,(0,n.v)(y),await(i?.(u,y)),u}},23154(e,t,r){r.d(t,{A6:()=>i,Aq:()=>d,Jo:()=>m,QM:()=>s});var a=r(77548),n=r(7861);const o=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function s(e,t){const{serviceJSON:r,layersJSON:a,...n}=await i(e,t);c(r);const o={serviceJSON:r,...n};return a&&(c(a),o.layersJSON=a),o}async function i(e,t){const{loadContext:r,...o}=t||{},s=r?await r.fetchServiceMetadata(e,o):await(0,n.L)(e,o),i=(0,a.G$)();p(s);const l={serviceJSON:s,preferredHost:i};if((s.currentVersion??0)<10.5)return l;const u=`${(0,a.$x)()??e}/layers`,c=r?await r.fetchServiceMetadata(u,o):await(0,n.L)(u,o);return p(c),l.layersJSON={layers:c.layers,tables:c.tables},l}function l(e){return o.has(e.type)}function u(e){return"Table"===e.type}function c(e){e.layers=e.layers?.filter(l),e.tables=e.tables?.filter(u)}function y(e){e.type||="Feature Layer"}function f(e){e.type||="Table"}function p(e){e.layers?.forEach(y),e.tables?.forEach(f)}function m(e){if(!e)return"FeatureLayer";switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationFeatureLayer"}return null}function d(e,t){if(!e)return t?"Table":"ArcGISFeatureLayer";switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Feature Layer":return"ArcGISFeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Table":return"Table";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer";default:return null}}},88788(e,t,r){r.d(t,{m:()=>s,v:()=>o});var a=r(84952),n=r(20655);function o(e,t){return{...i(e,t),readResourcePaths:[]}}function s(e,t,r){const n=(0,a.An)(r?.forceNewItemContext?null:e.itemUrl);return{...i(e,t,r),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:n?{rootPath:n.path,writtenUrls:[]}:null,resources:r?.withResources?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function i(e,t,r){return{origin:t,url:(0,a.An)(r?.forceNewItemContext?null:e.itemUrl),portal:e.portal||n.A.getDefault(),portalItem:e}}},7861(e,t,r){r.d(t,{L:()=>n});var a=r(56507);async function n(e,t){return(await(0,a.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}})).data}},26121(e,t,r){r.d(t,{I6:()=>l,ci:()=>i,dL:()=>s});var a=r(49186),n=r(77548),o=r(59923);async function s(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function i(e,t,r){let n=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new a.A(e,t,r));if(e.blockedRelativeUrls&&(n=n.concat(e.blockedRelativeUrls.map(e=>(0,o.GL)("url",`Relative url '${e}' is not supported`)))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:a}=r;e&&(n=n.filter(({name:e})=>!(o.MG.has(e)||t.includes(e)))),a&&(n=n.filter(e=>"web-document-write:property-required"!==e.name))}if(n.length>0)throw new a.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:n})}function l(e){return(0,n.qd)(e).some(e=>!!e.charts?.length)}}}]);