@arcgis/core 5.2.0-next.48 → 5.2.0-next.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/applications/Components/OrientedImageryViewer/PanoramicViewer/utils.d.ts +33 -0
  2. package/applications/Components/OrientedImageryViewer/PanoramicViewer/utils.js +2 -0
  3. package/arcgisGlobal.d.ts +2 -0
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/031ccf2e1583beebdf24.js +1 -0
  6. package/assets/esri/core/workers/chunks/0474af7687466d8befd2.js +1 -0
  7. package/assets/esri/core/workers/chunks/{f9b2727b41943d83d4ca.js → 0a413d917f3d19440fc1.js} +1 -1
  8. package/assets/esri/core/workers/chunks/0b2ca406761c63529a6a.js +1 -0
  9. package/assets/esri/core/workers/chunks/{c369d4266f38e9ea6592.js → 1119a33245138e7b3914.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{6fbcf1b85461c6c6c127.js → 172571397c66f992d08c.js} +1 -1
  11. package/assets/esri/core/workers/chunks/18edf2846d7546285e5e.js +1 -0
  12. package/assets/esri/core/workers/chunks/{7759a489205a874e13bb.js → 1b0557fcb058fc450230.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{7d0ff52748fd4eb0334d.js → 1bc45872d22d61dbd7d1.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{835643f716f7058a2722.js → 1cf8fb704c48ac3d3b15.js} +1 -1
  15. package/assets/esri/core/workers/chunks/25cb56c3b538d00e7693.js +1 -0
  16. package/assets/esri/core/workers/chunks/{2c0d92c0e3511775401a.js → 35cbf00f0c37a86517af.js} +1 -1
  17. package/assets/esri/core/workers/chunks/382d9491c2a56c1925fe.js +1 -0
  18. package/assets/esri/core/workers/chunks/3af2b9d6d5466cb2b957.js +256 -0
  19. package/assets/esri/core/workers/chunks/{c3766d98f0a70897647f.js → 3bc2943035391b44d4cf.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{bd8b180c61a80e60568c.js → 40f7bb0ebd918d76f078.js} +1 -1
  21. package/assets/esri/core/workers/chunks/43b39abd49c4a8ce891f.js +1 -0
  22. package/assets/esri/core/workers/chunks/{821176ee3be724621bb0.js → 461c2de938bf4c9b1442.js} +1 -1
  23. package/assets/esri/core/workers/chunks/4ee7232ea41fa41c5ed4.js +29 -0
  24. package/assets/esri/core/workers/chunks/50674ba5f24129d61d89.js +1 -0
  25. package/assets/esri/core/workers/chunks/547a2fe53139f705f95e.js +1 -0
  26. package/assets/esri/core/workers/chunks/5ce09c4d06e98b1e9251.js +1 -0
  27. package/assets/esri/core/workers/chunks/{4d9433f127aef76f3449.js → 5dbd28fce73751d2d1aa.js} +1 -1
  28. package/assets/esri/core/workers/chunks/5ec8b02e097cf6718462.js +1 -0
  29. package/assets/esri/core/workers/chunks/5f54d927dc77e92cf145.js +1 -0
  30. package/assets/esri/core/workers/chunks/63e3d338751240479335.js +1 -0
  31. package/assets/esri/core/workers/chunks/6ccd5fa5e35dc70fcd5d.js +1 -0
  32. package/assets/esri/core/workers/chunks/6e520ef645c5edcd499a.js +1 -0
  33. package/assets/esri/core/workers/chunks/{68d898037feb0aee3138.js → 78add8e6b54b51eaa299.js} +1 -1
  34. package/assets/esri/core/workers/chunks/7b61f56d0f766421eaef.js +1 -0
  35. package/assets/esri/core/workers/chunks/7f2f2a92dce3f68e579b.js +1 -0
  36. package/assets/esri/core/workers/chunks/{e7e3ea7af928b49b226c.js → 801a664f21e0218bc705.js} +1 -1
  37. package/assets/esri/core/workers/chunks/8d21e2dabc5165f1c8ca.js +1 -0
  38. package/assets/esri/core/workers/chunks/9008090a5d8431ddfa22.js +1 -0
  39. package/assets/esri/core/workers/chunks/{71ce1009dadcae8f8094.js → 95b3b8fe45ef4ac6b277.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{78918035144c3c76df71.js → 96cec8a02ca96175d602.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{bab71e1b8b93d09d4809.js → 99eccf9ce53582cfa5b5.js} +1 -1
  42. package/assets/esri/core/workers/chunks/9b7cb96acea388d86fa4.js +1 -0
  43. package/assets/esri/core/workers/chunks/{ff2c4f648f77850922d5.js → 9e474465d069cb9e94f5.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{ae9f9e975d7a9d442fa5.js → ab5aa4280ed0cb7fcbe9.js} +1 -1
  45. package/assets/esri/core/workers/chunks/b49952541d189b4b9f7e.js +1 -0
  46. package/assets/esri/core/workers/chunks/{fed6c75485601cd3afa1.js → baac90da0703891d59c4.js} +1 -1
  47. package/assets/esri/core/workers/chunks/bb552089b34d6811fb03.js +1 -0
  48. package/assets/esri/core/workers/chunks/{b30237361d87cf982e41.js → d1af0bd611a3dc549858.js} +64 -59
  49. package/assets/esri/core/workers/chunks/d2cb3d5ef0a9285afb78.js +1 -0
  50. package/assets/esri/core/workers/chunks/d560ed96dde5ca3a5583.js +1 -0
  51. package/assets/esri/core/workers/chunks/dc1787d88b11ed985159.js +1 -0
  52. package/assets/esri/core/workers/chunks/{399e23d777a043efa9f1.js → dd95f50dac3f33cdb6d2.js} +1 -1
  53. package/assets/esri/core/workers/chunks/ddb92c815d17c67a45e6.js +1 -0
  54. package/assets/esri/core/workers/chunks/{52efa4ded11c1e71f04f.js → e2e2162adbfb9b46bede.js} +1 -1
  55. package/assets/esri/core/workers/chunks/e4353f0792f45aa6a62f.js +1 -0
  56. package/assets/esri/core/workers/chunks/eac8cae89da9ce2f4946.js +1 -0
  57. package/assets/esri/core/workers/chunks/edf87407dd20685c82ab.js +1 -0
  58. package/assets/esri/core/workers/chunks/{be6caade351e89f84251.js → ee7c8a7f384ea6393487.js} +107 -82
  59. package/assets/esri/core/workers/chunks/f1299b4fc760ccca1518.js +1 -0
  60. package/assets/esri/core/workers/chunks/f244632f7934a4b72c91.js +1 -0
  61. package/assets/esri/core/workers/chunks/fc639c730115e07a4a1a.js +1 -0
  62. package/assets/esri/libs/dxtEncoder/dxt_encoder.wasm +0 -0
  63. package/chunks/Component.glsl.js +104 -67
  64. package/chunks/LineMarker.glsl.js +31 -31
  65. package/chunks/RibbonLine.glsl.js +60 -49
  66. package/chunks/dxt_encoder.js +1 -1
  67. package/chunks/vec3.js +1 -1
  68. package/config.js +1 -1
  69. package/core/has.js +1 -1
  70. package/geometry/support/aaBoundingBox.js +1 -1
  71. package/geometry/support/buffer/math/vec3.js +1 -1
  72. package/geometry/support/frustum.js +1 -1
  73. package/geometry/support/meshUtils/extent.js +1 -1
  74. package/geometry/support/meshUtils/vertexSpaceConversion.js +1 -1
  75. package/kernel.js +1 -1
  76. package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
  77. package/layers/orientedImagery/transformations/utils.js +1 -1
  78. package/package.json +1 -1
  79. package/support/revision.js +1 -1
  80. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  81. package/symbols/cim/CIMSymbolHelper.js +1 -1
  82. package/symbols/cim/TextRasterizer.js +1 -1
  83. package/symbols/cim/cimAnalyzer.js +1 -1
  84. package/symbols/cim/richTextUtils.js +2 -0
  85. package/views/2d/engine/webgl/TextureManager.js +1 -1
  86. package/views/2d/engine/webgl/definitions.js +1 -1
  87. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  88. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  89. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  90. package/views/2d/engine/webgl/util/DimensionMatcher.js +1 -1
  91. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  92. package/views/2d/layers/features/schema/processor/symbols/SymbolSchema.js +1 -1
  93. package/views/2d/layers/support/annodime/DimensionInfo.js +1 -1
  94. package/views/2d/layers/support/annodime/dimensionUtils.js +1 -1
  95. package/views/3d/analysis/LineOfSight/LineOfSightReshapeTool3D.js +1 -1
  96. package/views/3d/analysis/Viewshed/ViewshedConfiguration.js +1 -1
  97. package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
  98. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  99. package/views/3d/analysis/Viewshed/ViewshedSubVisualization.js +1 -1
  100. package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
  101. package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
  102. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  103. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  104. package/views/3d/focusAreaUtils.js +1 -1
  105. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  106. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  107. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  108. package/views/3d/layers/graphics/wosrLoader.js +1 -1
  109. package/views/3d/layers/i3s/meshUtils.js +1 -1
  110. package/views/3d/webgl/RenderCamera.js +1 -1
  111. package/views/3d/webgl/RenderNode.js +1 -1
  112. package/views/3d/webgl-engine/collections/Component/Material/Component.glsl.js +1 -1
  113. package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBuffer.glsl.js +2 -2
  114. package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +2 -2
  115. package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +36 -25
  116. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +17 -10
  117. package/views/3d/webgl-engine/lib/BoundingInfo.js +1 -1
  118. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  119. package/views/3d/webgl-engine/lib/PolygonIntersections2D.js +1 -1
  120. package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
  121. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  122. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  123. package/views/3d/webgl-engine/lib/lodRendering/LodLevel.js +1 -1
  124. package/views/3d/webgl-engine/lib/screenPolygonOverlapUtils.js +1 -1
  125. package/views/3d/webgl-engine/lib/screenPolygonTriangleIntersections.js +1 -1
  126. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  127. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  128. package/views/3d/webgl-engine/shaders/AnimatedLine.glsl.js +8 -5
  129. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  130. package/views/3d/webgl-engine/shaders/RibbonLineLayouts.js +1 -1
  131. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  132. package/views/3d/webgl-engine/shaders/RibbonLineTextureBuffer.glsl.js +1 -1
  133. package/views/SceneView.js +1 -1
  134. package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
  135. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorkerHandle.js +1 -1
  136. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
  137. package/views/selection/SelectionOperation.js +1 -1
  138. package/views/support/DefaultsFromMap.js +1 -1
  139. package/views/support/LayerViewManager.js +1 -1
  140. package/views/support/TextureCompressionWorker.js +1 -1
  141. package/views/webgl/RenderingContext.js +1 -1
  142. package/widgets/Editor.js +1 -1
  143. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  144. package/widgets/OrientedImageryViewer/services/SuperimposeService.js +1 -1
  145. package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
  146. package/widgets/PanoramicViewer/support/PanoramicTileNode.d.ts +63 -0
  147. package/widgets/PanoramicViewer/support/PanoramicTileNode.js +1 -1
  148. package/widgets/PanoramicViewer/support/PanoramicTilePyramid.d.ts +66 -0
  149. package/widgets/PanoramicViewer/support/PanoramicTilePyramid.js +1 -1
  150. package/widgets/PanoramicViewer/utils.js +1 -1
  151. package/widgets/Sketch/VisibleElements.d.ts +0 -10
  152. package/widgets/Sketch.js +1 -1
  153. package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
  154. package/widgets/support/SelectionToolbar.js +1 -1
  155. package/widgets/support/Selector3D/selectorUtils.js +2 -0
  156. package/assets/esri/core/workers/chunks/0e64e20fedfe01a1985f.js +0 -1
  157. package/assets/esri/core/workers/chunks/0f674c625f24ac73e25a.js +0 -1
  158. package/assets/esri/core/workers/chunks/15351354afcbf840a23d.js +0 -29
  159. package/assets/esri/core/workers/chunks/1843a762f7051f61af43.js +0 -1
  160. package/assets/esri/core/workers/chunks/1d1f5578c7d8619f7a46.js +0 -1
  161. package/assets/esri/core/workers/chunks/2015f4def2ef201bdab8.js +0 -1
  162. package/assets/esri/core/workers/chunks/20c363a113dc068de9e0.js +0 -1
  163. package/assets/esri/core/workers/chunks/24d936d459c538187af6.js +0 -1
  164. package/assets/esri/core/workers/chunks/272c8ab189217240d05f.js +0 -1
  165. package/assets/esri/core/workers/chunks/2e121eac97ae72a8b49a.js +0 -1
  166. package/assets/esri/core/workers/chunks/327899182a4dace428eb.js +0 -1
  167. package/assets/esri/core/workers/chunks/32ca15d928d51b380068.js +0 -1
  168. package/assets/esri/core/workers/chunks/3e1a7e4c674057807e3a.js +0 -1
  169. package/assets/esri/core/workers/chunks/4e2baa60c5d5197b2271.js +0 -1
  170. package/assets/esri/core/workers/chunks/519c0b51b1ba42fb71d7.js +0 -1
  171. package/assets/esri/core/workers/chunks/57fa3c0e7892c2eef3ee.js +0 -261
  172. package/assets/esri/core/workers/chunks/68b615bbd27fadcfcb66.js +0 -1
  173. package/assets/esri/core/workers/chunks/69d740ab18510156f5d6.js +0 -1
  174. package/assets/esri/core/workers/chunks/8d21f3d6edbcd7b335d0.js +0 -1
  175. package/assets/esri/core/workers/chunks/9a97f6cda2f36941efae.js +0 -1
  176. package/assets/esri/core/workers/chunks/9ceeae787dc7c194d60e.js +0 -1
  177. package/assets/esri/core/workers/chunks/a90f7b1c6c69b6033b4c.js +0 -1
  178. package/assets/esri/core/workers/chunks/b32bdf5730953c2fb16b.js +0 -1
  179. package/assets/esri/core/workers/chunks/b5d23efa584c74955d5b.js +0 -1
  180. package/assets/esri/core/workers/chunks/b83f2bbd634f57a5e8f9.js +0 -1
  181. package/assets/esri/core/workers/chunks/bb8e9b8343b83dd1ba3c.js +0 -1
  182. package/assets/esri/core/workers/chunks/bef1990159c0e49e7d27.js +0 -1
  183. package/assets/esri/core/workers/chunks/bf287f0e2ecb4532dc00.js +0 -1
  184. package/assets/esri/core/workers/chunks/c5e36544b2d1792e4c5f.js +0 -1
  185. package/assets/esri/core/workers/chunks/cba3316910ff088f4d77.js +0 -1
  186. package/assets/esri/core/workers/chunks/de9573871f64c01e9f01.js +0 -1
  187. package/assets/esri/core/workers/chunks/e232459f0b00110e07ac.js +0 -1
  188. package/assets/esri/core/workers/chunks/ee6bb6cd16f99421c76b.js +0 -1
  189. package/assets/esri/core/workers/chunks/fd2ba6f76645ba503cbb.js +0 -1
  190. package/views/3d/analysis/Viewshed/ViewshedTool2.js +0 -2
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2197,8050],{65529(e,t,n){var a=n(69622),i=n(36563);const r=e=>{const t=e;return class extends t{constructor(){super(...arguments),this._listenersMap=null}clearEvents(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clearEvents()}emit(e,t){let n=this._listenersMap?.get(e);if(!n)return!1;let a=!1;for(const e of n.slice()){const n="deref"in e?e.deref():e;n?n?.call(this,t):a=!0}return a&&(n=n.filter(e=>!("deref"in e)||null!=e.deref()),this._listenersMap.set(e,n)),n.length>0}on(e,t){if(Array.isArray(e)){const n=e.map(e=>this.on(e,t));return(0,i.vE)(n)}if(e.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;const n=this._listenersMap.get(e)||[];return n.push(t),this._listenersMap.set(e,n),(0,i.hA)(()=>{const n=this._listenersMap?.get(e),a=n?.indexOf(t)??-1;a>=0&&n.splice(a,1)})}once(e,t){const n=this.on(e,e=>{n.remove();const a="deref"in t?t.deref():t;a?.call(null,e)});return n}hasEventListener(e){const t=this._listenersMap?.get(e);return null!=t&&t.length>0}}},o=r(class{}),s=o,l=r(a.A);n.d(t,["Zt",0,r,"a$",0,o,"bk",0,s,"nJ",0,l])},3483(e,t,n){function a(e,t){for(const n of e.values())if(t(n))return!0;return!1}function i(e,t){if(t)for(const n of t)null!=n&&e.add(n)}function r(e,t){null!=t&&e.add(t)}function o(e,t){const n=new Set;return i(n,e),i(n,t),n}function s(e,t){const n=new Set;for(const a of t)e.has(a)&&n.add(a);return n}function l(e,t){if(!e||!t)return!1;if(e===t)return!0;for(const n of e)if(!t.has(n))return!1;return!0}function u(e,t){if(null==e&&null==t)return!0;if(null==e||null==t||e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function d(e,t){const n=new Set(e);for(const e of t)n.delete(e);return n}n.d(t,{E$:()=>s,FB:()=>i,KC:()=>o,Yy:()=>l,aI:()=>u,bw:()=>a,iv:()=>d,kb:()=>r})},95488(e,t,n){n.d(t,{I:()=>i});var a=n(11406);class i extends a.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},51850(e,t,n){function a(){return[0,0,0]}function i(e){return[e[0],e[1],e[2]]}function r(e,t,n){return[e,t,n]}function o(e,t,n){return[e,t,n]}function s(e,t=[0,0,0]){const n=Math.min(3,e.length);for(let a=0;a<n;++a)t[a]=e[a];return t}function l(){return[0,0,0]}function u(){return r(1,1,1)}function d(){return r(1,0,0)}function c(){return r(0,1,0)}function m(){return r(0,0,1)}n.d(t,{CN:()=>o,S:()=>u,Ul:()=>l,ci:()=>s,fA:()=>r,o8:()=>i,vt:()=>a});const f=[0,0,0],h=u(),y=d(),T=c(),g=m();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_X:y,UNIT_Y:T,UNIT_Z:g,ZEROS:f,clone:i,create:a,freeze:o,fromArray:s,fromValues:r,ones:u,unitX:d,unitY:c,unitZ:m,zeros:l},Symbol.toStringTag,{value:"Module"})),n.d(t,["Cb",0,g,"Cw",0,y,"JP",0,T,"Un",0,h,"uY",0,f])},39516(e,t,n){let a;async function i(e,t){const i=await async function(){return null==a&&(a=Promise.all([n.e(9696),n.e(4800),n.e(4123)]).then(n.bind(n,44123)).then(e=>new e.WhereClauseCache(500,500))),a}(),r=i.get(e,t);if(null==r)throw i.getError(e,t);return r}function r(e,t){return e||=null,t||=null,"1=1"===e?t??e:"1=1"===t?e??t:e&&t?`(${e}) AND (${t})`:e??t}function o(e,t){return e||=null,t||=null,"1=1"===e||"1=1"===t||e===t?"1=1"===e?e:t:e&&t?`(${e}) OR (${t})`:e??t}n.d(t,{GP:()=>i,IW:()=>o,mA:()=>r}),n(3330),n(56400)},3330(e,t,n){n.d(t,{GB:()=>i,Qo:()=>o,Y4:()=>r});var a=n(92647);class i{static{this.instance=a.mQ.parseSpecifier("UTC")}}function r(e){return e instanceof a.bo?e===i.instance:"unknown"===e?.toString().toLowerCase()}function o(e){return r(e)?i.instance:e}},88930(e,t,n){n.d(t,{S1:()=>s,lL:()=>u,mi:()=>l,rb:()=>d,t:()=>c});var a=n(97770),i=(n(98623),n(92647));const r=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function s(e,t,n,r="system"){if("unknown"===n)return e;const o=new i.oh((0,a.wj)(r)),s=i.c9.fromJSDate(e,{zone:o}),l="decades"===n||"centuries"===n?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(n);return"decades"===n&&(t*=10),"centuries"===n&&(t*=100),s.plus({[l]:t}).toJSDate()}function l(e,t,n="milliseconds"){const a=e.getTime(),i=c(t,n,"milliseconds");return new Date(a+i)}function u(e,t,n="system"){const{unit:r}=t,o=Math.max(1,Math.trunc(t.value)),s=new i.oh((0,a.wj)(n)),l=i.c9.fromJSDate(e,{zone:s}),u=e=>e-e%o;switch(r){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{const e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=l.startOf("year"),t=("decades"===r?10:"centuries"===r?100:1)*o,n=e.year-e.year%t;return e.set({year:n}).toJSDate()}case"unknown":return e}}function d(e){const t=r.exec(e);if(!t)return null;const{hh:n,mm:a,ss:i,ms:s}=t.groups;return Number(n)*o.hours+Number(a)*o.minutes+Number(i||0)*o.seconds+Number(s||0)}function c(e,t,n){return 0===e?0:e*o[t]/o[n]}},97770(e,t,n){n.d(t,{Ey:()=>I,F8:()=>D,J2:()=>E,Yq:()=>_,_m:()=>k,iS:()=>N,wj:()=>L});var a=n(66552),i=n(73444),r=n(98623),o=n(92647);const s={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},d={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},m={year:"numeric",month:"short",day:"numeric"},f={year:"numeric",month:"long",weekday:"long",day:"numeric"},h={hour:"numeric",minute:"numeric"},y={...h,second:"numeric"},T={hourCycle:"h23"},g={...h,...T},p={...y,...T},S={"short-date":d,"short-date-short-time":{...d,...h},"short-date-short-time-24":{...d,...g},"short-date-long-time":{...d,...y},"short-date-long-time-24":{...d,...p},"short-date-le":d,"short-date-le-short-time":{...d,...h},"short-date-le-short-time-24":{...d,...g},"short-date-le-long-time":{...d,...y},"short-date-le-long-time-24":{...d,...p},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...h},"long-month-day-year-short-time-24":{...c,...g},"long-month-day-year-long-time":{...c,...y},"long-month-day-year-long-time-24":{...c,...p},"day-short-month-year":m,"day-short-month-year-short-time":{...m,...h},"day-short-month-year-short-time-24":{...m,...g},"day-short-month-year-long-time":{...m,...y},"day-short-month-year-long-time-24":{...m,...p},"long-date":f,"long-date-short-time":{...f,...h},"long-date-short-time-24":{...f,...g},"long-date-long-time":{...f,...y},"long-date-long-time-24":{...f,...p},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":h,"long-time":y},A=(0,a.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"}),b={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},M=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),F=M.find(({type:e})=>"month"===e)?.value.toLowerCase();function w(){const e=(0,i.lR)();return(e&&b[e])??(0,i.QC)()}"mart"!==F&&(b.bs="sr-Latn-CS");let v=new WeakMap;const C=S["short-date-short-time"];function E(e){return S[e]}function k(e){const{dateStyle:t,timeStyle:n,hour12:a,year:i,month:r}=e,o={};return t?o.dateStyle=t:i&&(o.year=i,o.month=r||void 0),n&&!o.year&&(o.timeStyle=n,o.hour12="auto"===a?void 0:"always"===a),o}function _(e,t=C){return function(e){let t=v.get(e);if(!t){const n=w(),a=L(e.timeZone??"system"),i={...e,timeZone:a};t=new Intl.DateTimeFormat(n,i),v.set(e,t)}return t}(t).format(e)}function N(e,t=C){return _(new Date(e),{...t,...u,...l})}function D(e,t=C){return _(new Date(`1970-01-01T${e}Z`),{...t,...u,...s})}function I(e,t=C){const n=o.c9.fromISO(e,{setZone:!0});if(!n.isValid)return e;if(t.timeZone)return _(n.toJSDate(),t);const a=0===n.offset?"UTC":t.timeZone,i={...t,timeZone:a};return n.toLocaleString(i,{locale:w()})}function L(e){switch(e){case"system":return r.N;case r.L:return"UTC";default:return e}}(0,i.Ml)(()=>{v=new WeakMap}),n.d(t,["_v",0,A])},73444(e,t,n){n.d(t,{JK:()=>l,Ml:()=>T,QC:()=>c,lR:()=>d,oQ:()=>h});var a=n(36563);let i;n(44208);const r=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function s(){const e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return r??e??t??"en"}function l(){return void 0===i&&(i=s()),i}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function d(e=l()){return m(e)?.language}function c(e=l()){const t=m(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function m(e=l()){return u.exec(e)?.groups}const f=[];function h(e){return f.push(e),(0,a.hA)(()=>{f.splice(f.indexOf(e),1)})}new Map;const y=[];function T(e){return y.push(e),(0,a.hA)(()=>y.splice(y.indexOf(e),1))}function g(){const e=s();i!==e&&([...y].forEach(t=>t(e)),i=e,[...f].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},95466(e,t,n){n.d(t,{A:()=>u});var a=n(49186),i=n(53966),r=n(12195),o=n(30524),s=n(98623),l=n(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],c(e))}static fromLayerJSON(e){return new u(e.fields??[],c(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const n=[];for(const e of this.fields){const t=e?.name,a=(0,o.GZ)(t);if(t&&a){const i=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(i,e),this._normalizedFieldsMap.set(a,e),n.push(`${i}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,o.te)(e)||(0,o.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,o.te)(e)||(0,o.Xz)(e)||e.nullable||void 0!==(0,o.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(i.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new a.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):d.has(t.type)?s.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,r.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const d=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function c(e){const t=new Map;if(!e.fields)return t;const n=!0===e.datesInUnknownTimezone,{timeInfo:a,editFieldsInfo:i}=e,r=(a?"startField"in a?a.startField:a.startTimeField:"")??"",u=(a?"endField"in a?a.endField:a.endTimeField:"")??"",c=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,m=i?function(e){return"timeZone"in e}(i)?i.timeZone??c:i.dateFieldsTimeReference?(0,l.ZS)(i.dateFieldsTimeReference):c??"UTC":null,f=a?function(e){return"timeZone"in e}(a)?a.timeZone??c:a.timeReference?(0,l.ZS)(a.timeReference):c:null,h=new Map([[(0,o.NF)(i?.creationDateField??""),m],[(0,o.NF)(i?.editDateField??""),m],[(0,o.NF)(r),f],[(0,o.NF)(u),f]]);for(const{name:a,type:i}of e.fields)if(d.has(i))t.set(a,s.L);else if("date"!==i&&"esriFieldTypeDate"!==i)t.set(a,null);else if(n)t.set(a,s.L);else{const e=h.get((0,o.NF)(a??""))??c;t.set(a,e)}return t}},68463(e,t,n){n.d(t,{A5:()=>g});var a=n(3483),i=n(97768),r=n(54218),o=n(92647);const s=["HH:mm:ss.SSS","HH:mm:ss","HH:mm","TT"];function l(e){if(!e||!(0,r.Kg)(e))return null;const t=o.c9.fromFormat(e,"yyyy-MM-dd");return t.isValid?t:null}function u(e){return e&&(0,r.Kg)(e)?(0,i.Pb)(s,t=>{const n=o.c9.fromFormat(e,t);return n.isValid?n:null})??null:null}function d(e){if(!e||!(0,r.Kg)(e))return null;const t=o.c9.fromISO(e);return t.isValid?t:null}const c=new Set(["integer","small-integer","long","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"]);function m(e){return null!=e&&c.has(e.type)}function f(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function h(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function y(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}const T=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]);function g(e,t){const n=t??e?.domain;if(!n||"range"!==n.type)return;const a="range"in n?n.range[0]:n.minValue,i="range"in n?n.range[1]:n.maxValue,r=m(e);return f(e)||y(e)||h(e)?{...p(e,i,a),isInteger:r}:{min:null!=a&&"number"==typeof a?a:null,max:null!=i&&"number"==typeof i?i:null,rawMin:a,rawMax:i,isInteger:r}}function p(e,t,n){return f(e)?{min:l(n)?.toMillis(),max:l(t)?.toMillis(),rawMin:n,rawMax:t}:y(e)?{min:u(n)?.toMillis(),max:u(t)?.toMillis(),rawMin:n,rawMax:t}:h(e)?{min:d(n)?.toMillis(),max:d(t)?.toMillis(),rawMin:n,rawMax:t}:{max:null,min:null}}(0,a.KC)(c,T)},30524(e,t,n){n.d(t,{Ah:()=>Y,Bz:()=>I,CJ:()=>te,DB:()=>g,Dx:()=>b,GZ:()=>Te,JL:()=>ce,Jl:()=>N,Kl:()=>de,NF:()=>ye,OG:()=>X,OH:()=>K,R$:()=>D,R3:()=>P,Vb:()=>he,WA:()=>J,WX:()=>Q,XT:()=>ee,Xz:()=>H,_b:()=>x,_w:()=>p,e7:()=>fe,eX:()=>w,hL:()=>A,lD:()=>L,mB:()=>M,nw:()=>me,rS:()=>d,rq:()=>S,sv:()=>y,te:()=>W,uo:()=>ue,vE:()=>q,yM:()=>R,yp:()=>f,zD:()=>j}),n(49186);var a=n(93637),i=n(3483),r=(n(39516),n(68463),n(69309)),o=n(54218),s=n(43668);const l=/^([0-9_])/,u=/[^a-z0-9_\u0080-\uffff]+/gi;function d(e){return null==e?null:e.trim().replaceAll(u,"_").replace(l,"F$1")||null}const c=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],m=["field","normalizationField"];function f(e,t){if(null!=e&&null!=t)for(const n of Array.isArray(e)?e:[e])if(h(c,n,t),"visualVariables"in n&&n.visualVariables)for(const e of n.visualVariables)h(m,e,t)}function h(e,t,n){if(e)for(const i of e){const e=(0,a.wc)(i,t),r=e&&"function"!=typeof e&&n.get(e);r&&(0,a.sM)(i,r.name,t)}}function y(e,t){if(null!=e&&t?.fields?.length)if("startField"in e){const n=t.get(e.startField),a=t.get(e.endField);e.startField=n?.name??null,e.endField=a?.name??null}else{const n=t.get(e.startTimeField),a=t.get(e.endTimeField);e.startTimeField=n?.name??null,e.endTimeField=a?.name??null}}const T=new Set;function g(e,t){return e&&t?(T.clear(),p(T,e,t),Array.from(T).sort()):[]}function p(e,t,n){if(n)if(t?.fields?.length)if(n.includes("*"))for(const{name:n}of t.fields)e.add(n);else for(const a of n)S(e,t,a);else{if(n.includes("*"))return e.clear(),void e.add("*");for(const t of n)null!=t&&e.add(t)}}function S(e,t,n){if("string"==typeof n)if(t){const a=t.get(n);a&&e.add(a.name)}else e.add(n)}function A(e,t){return null==t||null==e?[]:t.includes("*")?(e.fields??[]).map(e=>e.name):t}async function b(e,t,n,a){if(!a)return;const i=(0,r.o)(a);if(i)S(e,t,i);else{const{arcadeUtils:i}=await(0,s.l)(),r=i.extractFieldNames(a,n?.partitions??t?.fields?.map(e=>e.name));for(const a of r)S(e,n?.index??t,a)}}function M({displayField:e,fields:t}){return e||(t?.length?function(e){return F(e,"name-or-title")||F(e,"unique-identifier")||F(e,"type-or-category")||function(e){for(const t of e){if(!t?.name)continue;const e=t.name.toLowerCase();if(e.includes("name")||e.includes("title"))return t.name}return null}(e)}(t):null)}function F(e,t){for(const n of e)if(n?.valueType&&n.valueType===t)return n.name;return null}function w(e){return e?g(e.fieldsIndex,k(e)):[]}const v=new Set(["oid","global-id","guid"]),C=new Set(["oid","global-id"]),E=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^shape$/i,/^shape_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/objectid/i,/^perimeter_/i,/_perimeter$/i,/_i$/i];function k(e){if(!e)return[];const t="editFieldsInfo"in e&&e.editFieldsInfo;if(!t)return[];const{creationDateField:n,creatorField:a,editDateField:i,editorField:r}=t;return[n,a,i,r].filter(Boolean)}function _(e){return k(e).map(e=>e.toLowerCase())}function N(e){return!!e.type}function D(e,t){return!!e.editable&&N(e)&&!v.has(e.type)&&!_(t).includes(e.name?.toLowerCase()??"")}function I(e,t){const n=e.name?.toLowerCase()??"";return!(null!=t?.objectIdField&&n===t.objectIdField.toLowerCase()||null!=t?.globalIdField&&n===t.globalIdField.toLowerCase()||function(e){const t=new Set;_(e).forEach(e=>t.add(e)),function(e){if(!e)return[];const t=e.geometryFieldsInfo;return t?g(e.fieldsIndex,[t.shapeAreaField,t.shapeLengthField]):[]}(e).forEach(e=>t.add(e.toLowerCase()));const n=e&&"infoFor3D"in e?e.infoFor3D:void 0;return n&&(Object.values(n.assetMapFieldRoles).forEach(e=>t.add(e.toLowerCase())),Object.values(n.transformFieldRoles).forEach(e=>t.add(e.toLowerCase()))),Array.from(t)}(t).includes(n)||C.has(e.type)||E.some(e=>e.test(n)))}function L(e){const t=e.defaultValue;return void 0!==t&&$(e,t)?t:e.nullable?null:void 0}function x(e){const t="string"==typeof e?{type:e}:e;return R(t)?255:"esriFieldTypeDate"===t.type||"date"===t.type?8:void 0}function V(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function Z(e){return null===e||V(e)}function U(e){return null===e||Number.isInteger(e)}function O(){return!0}function $(e,t){let n;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"big-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":case"esriFieldTypeBigInteger":n=e.nullable?U:Number.isInteger;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":n=e.nullable?Z:V;break;case"string":case"esriFieldTypeString":n=e.nullable?o.CO:o.Kg;break;default:n=O}return 1===arguments.length?n:n(t)}const z=new Set(["integer","small-integer","big-integer","long","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"]),G=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]),B=(0,i.KC)(z,G);function P(e){return null!=e&&z.has(e.type)}function J(e){return null!=e&&B.has(e.type)}function R(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}function q(e){return null!=e&&("date"===e.type||"esriFieldTypeDate"===e.type)}function j(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function Y(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function K(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}function W(e){return null!=e&&("oid"===e.type||"esriFieldTypeOID"===e.type)}function H(e){return null!=e&&("global-id"===e.type||"esriFieldTypeGlobalID"===e.type)}function X(e,t){return null===te(e,t)}function Q(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function ee(e){return parseFloat(e.replaceAll("_",""))}function te(e,t){return null==e||e.nullable&&null===t?null:$(e,t)?J(e)&&!function(e,t){const n="string"==typeof e?ne(e):e;if(!n)return!1;const a=n.min,i=n.max;return n.isInteger?Number.isInteger(t)&&t>=a&&t<=i:t>=a&&t<=i}(e.type,Number(t))?"numeric-range-validation-error::out-of-range":null:"type-validation-error::invalid-type"}function ne(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return ae;case"esriFieldTypeInteger":case"esriFieldTypeLong":case"integer":case"long":return ie;case"esriFieldTypeBigInteger":case"big-integer":return re;case"esriFieldTypeSingle":case"single":return se;case"esriFieldTypeDouble":case"double":return le}}const ae={min:-32768,max:32767,isInteger:!0,rawMin:-32768,rawMax:32767},ie={min:-2147483648,max:2147483647,isInteger:!0,rawMin:-2147483648,rawMax:2147483647},re={min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,isInteger:!0,rawMin:-Number.MAX_SAFE_INTEGER,rawMax:Number.MAX_SAFE_INTEGER},oe=(2-2**-23)*2**127,se={min:-oe,max:oe,isInteger:!1,rawMin:-oe,rawMax:oe},le={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1,rawMin:-Number.MAX_VALUE,rawMax:Number.MAX_VALUE};function ue(e,t,n){switch(e){case"domain-validation-error::invalid-coded-value":return`Value ${n} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case"domain-validation-error::value-out-of-range":return`Value ${n} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case"type-validation-error::invalid-type":return`Value ${n} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case"numeric-range-validation-error::out-of-range":{const{min:e,max:a}=ne(t.type);return`Value ${n} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${a}`}}}function de(e,t){return!function(e,t){if(!e?.attributes||!t)return!0;const n=new Set(Object.keys(e.attributes));let a=!1;for(const e of t)if(!n.has(e)){a=!0;break}return a}(e,t)}function ce(e){return!!e&&["raster.itempixelvalue","raster.servicepixelvalue"].some(t=>e.toLowerCase().startsWith(t))}function me(e){const t=e?.match(/{[^}]+}/g);return t?t.map(e=>e.slice(1,-1).split(":")[0].trim()):[]}function fe(e,t){const{statisticType:n,onStatisticField:a,onStatisticExpression:i}=e,r=t.get(a),o=J(r),s=i?.returnType;switch(n){case"avg":case"avg_angle":return r?o||q(r)?"double":null:s&&"number"===s?"double":null;case"count":return"integer";case"min":case"max":return r?o||function(e){return null!=e&&("date"===e.type||"date-only"===e.type||"time-only"===e.type||"timestamp-offset"===e.type)}(r)?r?.type??null:null:s&&"number"===s?"double":null;case"sum":return r?o?r?.type??null:null:s&&"number"===s?"double":null;case"mode":return r?r?.type??null:s?"number"===s?"double":"string":null;default:return null}}function he(e){const{fieldName:t,fieldsMap:n,normalizedFieldsMap:a}=e;if(!t)return;let i=n.get(t);return i||(i=n.get(ye(t))??a.get(Te(t)),i&&n.set(t,i),i)}function ye(e){return e.trim().toLowerCase()}function Te(e){return d(e)?.toLowerCase()??""}},9760(e,t,n){n.d(t,{A:()=>d});var a=n(5482),i=n(66552),r=n(25482),o=n(91429),s=n(93223);const l=new i.J({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),u=new i.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let d=class extends r.o{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,a.Cg)([(0,s.e)({classBreaksDef:"class-breaks-definition"})],d.prototype,"type",void 0),(0,a.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"breakCount",void 0),(0,a.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"classificationField",void 0),(0,a.Cg)([(0,o.MZ)({type:String,json:{read:l.read,write:l.write}})],d.prototype,"classificationMethod",void 0),(0,a.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"normalizationField",void 0),(0,a.Cg)([(0,o.MZ)({json:{read:u.read,write:u.write}})],d.prototype,"normalizationType",void 0),(0,a.Cg)([(0,o.MZ)({value:null,json:{write:!0}})],d.prototype,"standardDeviationInterval",null),(0,a.Cg)([(0,o.MZ)({value:null,json:{write:!0}})],d.prototype,"definedInterval",null),d=(0,a.Cg)([(0,o.$K)("esri.rest.support.ClassBreaksDefinition")],d)},84892(e,t,n){n.d(t,{t:()=>r});var a=n(53966);function i(e,t){return Number(e.toFixed(t))}function r(e,t){const{normalizationTotal:n}=e;return{classBreaks:o(e,t),normalizationTotal:n}}function o(e,t){const n=e.definition,{classificationMethod:a,normalizationType:r,definedInterval:o}=n,u=n.breakCount??1,d=[];let c=e.values;if(0===c.length)return[];c=c.sort((e,t)=>e-t);const[m,f]=t??[c.at(0),c.at(-1)];if("equal-interval"===a)if(c.length>=u){const e=(f-m)/u;let t=m;for(let n=1;n<u;n++){const a=i(m+n*e,6);d.push({minValue:t,maxValue:a,label:s(t,a,r)}),t=a}d.push({minValue:t,maxValue:f,label:s(t,f,r)})}else c.forEach(e=>{d.push({minValue:e,maxValue:e,label:s(e,e,r)})});else if("natural-breaks"===a){const t=function(e){const t=[],n=[];let a=Number.MIN_VALUE,i=1,r=-1;for(let o=0;o<e.length;o++){const s=e[o];s===a?(i++,n[r]=i):null!==s&&(t.push(s),a=s,i=1,n.push(i),r++)}return{uniqueValues:t,valueFrequency:n}}(c),n=e.valueFrequency||t.valueFrequency,a=l(t.uniqueValues,n,u);let o=m;for(let e=1;e<u;e++)if(t.uniqueValues.length>e){const n=i(t.uniqueValues[a[e]],6);d.push({minValue:o,maxValue:n,label:s(o,n,r)}),o=n}d.push({minValue:o,maxValue:f,label:s(o,f,r)})}else if("quantile"===a)if(c.length>=u&&m!==f){let e=m,t=Math.ceil(c.length/u),n=0;for(let a=1;a<u;a++){let i=t+n-1;i>c.length&&(i=c.length-1),i<0&&(i=0),d.push({minValue:e,maxValue:c[i],label:s(e,c[i],r)}),e=c[i],n+=t,t=Math.ceil((c.length-n)/(u-a))}d.push({minValue:e,maxValue:f,label:s(e,f,r)})}else{let e=-1;for(let t=0;t<c.length;t++){const n=c[t];n!==e&&(e=n,d.push({minValue:e,maxValue:n,label:s(e,n,r)}),e=n)}}else if("standard-deviation"===a){const e=function(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/=e.length,t}(c),t=function(e,t){let n=0;for(let a=0;a<e.length;a++){const i=e[a];n+=(i-t)*(i-t)}return n/=e.length,Math.sqrt(n)}(c,e);if(0===t)d.push({minValue:c[0],maxValue:c[0],label:s(c[0],c[0],r)});else{const n=function(e,t,n,a,i){let r=Math.max(a-e,t-a)/i/n;return r=r>=1?1:r>=.5?.5:.25,r}(m,f,u,e,t)*t;let a=0,o=m;for(let t=u;t>=1;t--){const l=i(e-(t-.5)*n,6);d.push({minValue:o,maxValue:l,label:s(o,l,r)}),o=l,a++}let l=i(e+.5*n,6);d.push({minValue:o,maxValue:l,label:s(o,l,r)}),o=l,a++;for(let t=1;t<=u;t++)l=a===2*u?f:i(e+(t+.5)*n,6),d.push({minValue:o,maxValue:l,label:s(o,l,r)}),o=l,a++}}else if("defined-interval"===a){if(!o)return d;const[e,n]=t??[c.at(0),c.at(-1)],a=Math.ceil((n-e)/o);let l=e;for(let t=1;t<a;t++){const n=i(e+t*o,6);d.push({minValue:l,maxValue:n,label:s(l,n,r)}),l=n}d.push({minValue:l,maxValue:n,label:s(l,n,r)})}return d}function s(e,t,n){let a=null;return a=e===t?n&&"percent-of-total"===n?e+"%":e.toString():n&&"percent-of-total"===n?e+"% - "+t+"%":e+" - "+t,a}function l(e,t,n){const a=e.length,i=[];n>a&&(n=a);for(let e=0;e<n;e++)i.push(Math.round(e*a/n-1));i.push(a-1);let r=u(i,e,t,n);return function(e,t,n,a,i,r){let o=0,s=0,l=0,u=0,c=!0;for(let m=0;m<2&&c;m++){0===m&&(c=!1);for(let m=0;m<r-1;m++)for(;n[m+1]+1!==n[m+2];){n[m+1]=n[m+1]+1;const r=d(m,n,a,i);l=r.sbMean,o=r.sbSdcm;const f=d(m+1,n,a,i);if(u=f.sbMean,s=f.sbSdcm,!(o+s<t[m]+t[m+1])){n[m+1]=n[m+1]-1;break}t[m]=o,t[m+1]=s,e[m]=l,e[m+1]=u,c=!0}for(let m=r-1;m>0;m--)for(;n[m]!==n[m-1]+1;){n[m]=n[m]-1;const r=d(m-1,n,a,i);l=r.sbMean,o=r.sbSdcm;const f=d(m,n,a,i);if(u=f.sbMean,s=f.sbSdcm,!(o+s<t[m-1]+t[m])){n[m]=n[m]+1;break}t[m-1]=o,t[m]=s,e[m-1]=l,e[m]=u,c=!0}}return c}(r.mean,r.sdcm,i,e,t,n)&&(r=u(i,e,t,n)),i}function u(e,t,n,a){let i=[],r=[],o=[],s=0;const l=[],u=[];for(let i=0;i<a;i++){const a=d(i,e,t,n);l.push(a.sbMean),u.push(a.sbSdcm),s+=u[i]}let c,m=s,f=!0;for(;f||s<m;){f=!1,i=[];for(let t=0;t<a;t++)i.push(e[t]);for(let n=0;n<a;n++)for(let i=e[n]+1;i<=e[n+1];i++)if(c=t[i],n>0&&i!==e[n+1]&&Math.abs(c-l[n])>Math.abs(c-l[n-1]))e[n]=i;else if(n<a-1&&e[n]!==i-1&&Math.abs(c-l[n])>Math.abs(c-l[n+1])){e[n+1]=i-1;break}m=s,s=0,r=[],o=[];for(let i=0;i<a;i++){r.push(l[i]),o.push(u[i]);const a=d(i,e,t,n);l[i]=a.sbMean,u[i]=a.sbSdcm,s+=u[i]}}if(s>m){for(let t=0;t<a;t++)e[t]=i[t],l[t]=r[t],u[t]=o[t];s=m}return{mean:l,sdcm:u}}function d(e,t,n,i){let r=0,o=0;for(let a=t[e]+1;a<=t[e+1];a++){const e=i[a];r+=n[a]*e,o+=e}o<=0&&a.A.getLogger("esri.rest.support.generateRendererUtils").warn("Exception in Natural Breaks calculation");const s=r/o;let l=0;for(let a=t[e]+1;a<=t[e+1];a++)l+=i[a]*(n[a]-s)**2;return{sbMean:s,sbSdcm:l}}},69309(e,t,n){function a(e){if(!e)return;const t=e.match(i);return t?.groups?t.groups.doubleQuoted??t.groups.singleQuoted??t.groups.dotNotation:void 0}n.d(t,{D:()=>r,o:()=>a});const i=/^(\$feature\[(?:"(?<doubleQuoted>[^"]+)"|'(?<singleQuoted>[^']+)')\]|\$feature\.(?<dotNotation>[a-z_][a-z0-9_]*))$/i;function r(e){return e.match(o)?.[1]?.replaceAll("\\'","'")??null}const o=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/},54218(e,t,n){function a(e){return"number"==typeof e}function i(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function r(e){return"boolean"==typeof e}function o(e){return"string"==typeof e||e instanceof String}function s(e){return null==e||o(e)}function l(e){return Array.isArray(e)}function u(e){return e instanceof Date}n.d(t,{$P:()=>u,CO:()=>s,Et:()=>a,Fq:()=>i,Kg:()=>o,Lm:()=>r,cy:()=>l})},43668(e,t,n){let a;function i(){return a||(a=(async()=>{const[e,t,a]=await Promise.all([Promise.all([n.e(708),n.e(9696),n.e(4800),n.e(1695),n.e(5098)]).then(n.bind(n,25098)),n.e(8010).then(n.bind(n,8010)),Promise.all([n.e(4800),n.e(1695),n.e(6343)]).then(n.bind(n,76343))]);return{arcade:e.arcade,arcadeUtils:e,batchExec:t,aiServices:a,Dictionary:e.Dictionary,Feature:e.arcadeFeature,Voxel:e.Voxel,Pixel:e.Pixel}})()),a}n.d(t,{l:()=>i})},98623(e,t,n){const a=Intl.DateTimeFormat().resolvedOptions().timeZone;n.d(t,["L",0,"unknown","N",0,a])},56400(e,t,n){n.d(t,{ZS:()=>u,S3:()=>f,hv:()=>d,wr:()=>c,P6:()=>l});var a=n(91869),i=n(3330),r=n(98623);const o=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var s=n(92647);function l(e,t=!1){return{json:{read:{source:e,reader:(t,n)=>n[e]?u(n[e]):null},write:!!t&&{allowNull:!0,writer(t,n){n[e]=t?function(e){return{timeZoneIANA:e}}(t):null}}}}}function u(e,t="system"){return e?function(e){return"timeZoneIANA"in e}(e)?e.timeZoneIANA:function(e,t="system"){if(!e||!o.has(e.timeZone))return t;const n=o.get(e.timeZone);return function(e){return e.startsWith("UTC")}(e.timeZone)||e.respectsDaylightSaving?n:function(e){const t=s.c9.local().setZone(e),n=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===n?"Etc/UTC":`Etc/GMT${s.mQ.instance(-n).formatOffset(0,"narrow")}`}(n)}(e,t):t}function d(e,t,n,a,i){if(t&&"date"===i)return{timeZone:"UTC",timeZoneName:void 0};const o=a.hour,s=n===r.L;return{timeZone:s?"timestamp-offset"===i?void 0:e??"UTC":n,timeZoneName:s&&o?"shortOffset":void 0}}function c(e){const t=new Set(["etc/utc","etc/gmt","gmt"]),n=new Set(Intl.supportedValuesOf("timeZone").map(e=>e.toLowerCase()));return"system"===e||e===r.L||t.has(e.toLowerCase())||n.has(e.toLowerCase())}const m=new Map;function f(e){return e===r.L?i.GB.instance:"UTC"===e||"Etc/UTC"===e?s.mQ.utcInstance:(0,a.tE)(m,e,()=>s.oh.create(e))}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2197,8050],{65529(e,t,n){var a=n(69622),i=n(36563);const r=e=>{const t=e;return class extends t{constructor(){super(...arguments),this._listenersMap=null}clearEvents(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clearEvents()}emit(e,t){let n=this._listenersMap?.get(e);if(!n)return!1;let a=!1;for(const e of n.slice()){const n="deref"in e?e.deref():e;n?n?.call(this,t):a=!0}return a&&(n=n.filter(e=>!("deref"in e)||null!=e.deref()),this._listenersMap.set(e,n)),n.length>0}on(e,t){if(Array.isArray(e)){const n=e.map(e=>this.on(e,t));return(0,i.vE)(n)}if(e.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;const n=this._listenersMap.get(e)||[];return n.push(t),this._listenersMap.set(e,n),(0,i.hA)(()=>{const n=this._listenersMap?.get(e),a=n?.indexOf(t)??-1;a>=0&&n.splice(a,1)})}once(e,t){const n=this.on(e,e=>{n.remove();const a="deref"in t?t.deref():t;a?.call(null,e)});return n}hasEventListener(e){const t=this._listenersMap?.get(e);return null!=t&&t.length>0}}},o=r(class{}),s=o,l=r(a.A);n.d(t,["Zt",0,r,"a$",0,o,"bk",0,s,"nJ",0,l])},3483(e,t,n){function a(e,t){for(const n of e.values())if(t(n))return!0;return!1}function i(e,t){if(t)for(const n of t)null!=n&&e.add(n)}function r(e,t){null!=t&&e.add(t)}function o(e,t){const n=new Set;return i(n,e),i(n,t),n}function s(e,t){const n=new Set;for(const a of t)e.has(a)&&n.add(a);return n}function l(e,t){if(!e||!t)return!1;if(e===t)return!0;for(const n of e)if(!t.has(n))return!1;return!0}function u(e,t){if(null==e&&null==t)return!0;if(null==e||null==t||e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function d(e,t){const n=new Set(e);for(const e of t)n.delete(e);return n}n.d(t,{E$:()=>s,FB:()=>i,KC:()=>o,Yy:()=>l,aI:()=>u,bw:()=>a,iv:()=>d,kb:()=>r})},95488(e,t,n){n.d(t,{I:()=>i});var a=n(11406);class i extends a.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},51850(e,t,n){function a(){return[0,0,0]}function i(e){return[e[0],e[1],e[2]]}function r(e,t,n){return[e,t,n]}function o(e,t,n){return[e,t,n]}function s(e,t=[0,0,0]){const n=Math.min(3,e.length);for(let a=0;a<n;++a)t[a]=e[a];return t}function l(){return[0,0,0]}function u(){return r(1,1,1)}function d(){return r(1,0,0)}function c(){return r(0,1,0)}function m(){return r(0,0,1)}n.d(t,{CN:()=>o,S:()=>u,Ul:()=>l,ci:()=>s,fA:()=>r,o8:()=>i,vt:()=>a});const f=[0,0,0],h=u(),y=d(),T=c(),g=m();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_X:y,UNIT_Y:T,UNIT_Z:g,ZEROS:f,clone:i,create:a,freeze:o,fromArray:s,fromValues:r,ones:u,unitX:d,unitY:c,unitZ:m,zeros:l},Symbol.toStringTag,{value:"Module"})),n.d(t,["Cb",0,g,"Cw",0,y,"JP",0,T,"Un",0,h,"uY",0,f])},39516(e,t,n){let a;async function i(e,t){const i=await async function(){return null==a&&(a=Promise.all([n.e(9696),n.e(4800),n.e(4123)]).then(n.bind(n,44123)).then(e=>new e.WhereClauseCache(500,500))),a}(),r=i.get(e,t);if(null==r)throw i.getError(e,t);return r}function r(e,t){return e||=null,t||=null,"1=1"===e?t??e:"1=1"===t?e??t:e&&t?`(${e}) AND (${t})`:e??t}function o(e,t){return e||=null,t||=null,"1=1"===e||"1=1"===t||e===t?"1=1"===e?e:t:e&&t?`(${e}) OR (${t})`:e??t}n.d(t,{GP:()=>i,IW:()=>o,mA:()=>r}),n(3330),n(56400)},3330(e,t,n){n.d(t,{GB:()=>i,Qo:()=>o,Y4:()=>r});var a=n(92647);class i{static{this.instance=a.mQ.parseSpecifier("UTC")}}function r(e){return e instanceof a.bo?e===i.instance:"unknown"===e?.toString().toLowerCase()}function o(e){return r(e)?i.instance:e}},88930(e,t,n){n.d(t,{S1:()=>s,lL:()=>u,mi:()=>l,rb:()=>d,t:()=>c});var a=n(97770),i=(n(98623),n(92647));const r=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function s(e,t,n,r="system"){if("unknown"===n)return e;const o=new i.oh((0,a.wj)(r)),s=i.c9.fromJSDate(e,{zone:o}),l="decades"===n||"centuries"===n?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(n);return"decades"===n&&(t*=10),"centuries"===n&&(t*=100),s.plus({[l]:t}).toJSDate()}function l(e,t,n="milliseconds"){const a=e.getTime(),i=c(t,n,"milliseconds");return new Date(a+i)}function u(e,t,n="system"){const{unit:r}=t,o=Math.max(1,Math.trunc(t.value)),s=new i.oh((0,a.wj)(n)),l=i.c9.fromJSDate(e,{zone:s}),u=e=>e-e%o;switch(r){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{const e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=l.startOf("year"),t=("decades"===r?10:"centuries"===r?100:1)*o,n=e.year-e.year%t;return e.set({year:n}).toJSDate()}case"unknown":return e}}function d(e){const t=r.exec(e);if(!t)return null;const{hh:n,mm:a,ss:i,ms:s}=t.groups;return Number(n)*o.hours+Number(a)*o.minutes+Number(i||0)*o.seconds+Number(s||0)}function c(e,t,n){return 0===e?0:e*o[t]/o[n]}},97770(e,t,n){n.d(t,{Ey:()=>I,F8:()=>D,J2:()=>E,Yq:()=>_,_m:()=>k,iS:()=>N,wj:()=>L});var a=n(66552),i=n(73444),r=n(98623),o=n(92647);const s={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},d={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},m={year:"numeric",month:"short",day:"numeric"},f={year:"numeric",month:"long",weekday:"long",day:"numeric"},h={hour:"numeric",minute:"numeric"},y={...h,second:"numeric"},T={hourCycle:"h23"},g={...h,...T},p={...y,...T},S={"short-date":d,"short-date-short-time":{...d,...h},"short-date-short-time-24":{...d,...g},"short-date-long-time":{...d,...y},"short-date-long-time-24":{...d,...p},"short-date-le":d,"short-date-le-short-time":{...d,...h},"short-date-le-short-time-24":{...d,...g},"short-date-le-long-time":{...d,...y},"short-date-le-long-time-24":{...d,...p},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...h},"long-month-day-year-short-time-24":{...c,...g},"long-month-day-year-long-time":{...c,...y},"long-month-day-year-long-time-24":{...c,...p},"day-short-month-year":m,"day-short-month-year-short-time":{...m,...h},"day-short-month-year-short-time-24":{...m,...g},"day-short-month-year-long-time":{...m,...y},"day-short-month-year-long-time-24":{...m,...p},"long-date":f,"long-date-short-time":{...f,...h},"long-date-short-time-24":{...f,...g},"long-date-long-time":{...f,...y},"long-date-long-time-24":{...f,...p},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":h,"long-time":y},A=(0,a.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"}),b={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},M=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),F=M.find(({type:e})=>"month"===e)?.value.toLowerCase();function w(){const e=(0,i.lR)();return(e&&b[e])??(0,i.QC)()}"mart"!==F&&(b.bs="sr-Latn-CS");let v=new WeakMap;const C=S["short-date-short-time"];function E(e){return S[e]}function k(e){const{dateStyle:t,timeStyle:n,hour12:a,year:i,month:r}=e,o={};return t?o.dateStyle=t:i&&(o.year=i,o.month=r||void 0),n&&!o.year&&(o.timeStyle=n,o.hour12="auto"===a?void 0:"always"===a),o}function _(e,t=C){return function(e){let t=v.get(e);if(!t){const n=w(),a=L(e.timeZone??"system"),i={...e,timeZone:a};t=new Intl.DateTimeFormat(n,i),v.set(e,t)}return t}(t).format(e)}function N(e,t=C){return _(new Date(e),{...t,...u,...l})}function D(e,t=C){return _(new Date(`1970-01-01T${e}Z`),{...t,...u,...s})}function I(e,t=C){const n=o.c9.fromISO(e,{setZone:!0});if(!n.isValid)return e;if(t.timeZone)return _(n.toJSDate(),t);const a=0===n.offset?"UTC":t.timeZone,i={...t,timeZone:a};return n.toLocaleString(i,{locale:w()})}function L(e){switch(e){case"system":return r.N;case r.L:return"UTC";default:return e}}(0,i.Ml)(()=>{v=new WeakMap}),n.d(t,["_v",0,A])},73444(e,t,n){n.d(t,{JK:()=>l,Ml:()=>T,QC:()=>c,lR:()=>d,oQ:()=>h});var a=n(36563);let i;n(44208);const r=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function s(){const e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return r??e??t??"en"}function l(){return void 0===i&&(i=s()),i}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function d(e=l()){return m(e)?.language}function c(e=l()){const t=m(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function m(e=l()){return u.exec(e)?.groups}const f=[];function h(e){return f.push(e),(0,a.hA)(()=>{f.splice(f.indexOf(e),1)})}new Map;const y=[];function T(e){return y.push(e),(0,a.hA)(()=>y.splice(y.indexOf(e),1))}function g(){const e=s();i!==e&&([...y].forEach(t=>t(e)),i=e,[...f].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},95466(e,t,n){n.d(t,{A:()=>u});var a=n(49186),i=n(53966),r=n(12195),o=n(30524),s=n(98623),l=n(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],c(e))}static fromLayerJSON(e){return new u(e.fields??[],c(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const n=[];for(const e of this.fields){const t=e?.name,a=(0,o.GZ)(t);if(t&&a){const i=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(i,e),this._normalizedFieldsMap.set(a,e),n.push(`${i}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,o.te)(e)||(0,o.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,o.te)(e)||(0,o.Xz)(e)||e.nullable||void 0!==(0,o.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(i.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new a.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):d.has(t.type)?s.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,r.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const d=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function c(e){const t=new Map;if(!e.fields)return t;const n=!0===e.datesInUnknownTimezone,{timeInfo:a,editFieldsInfo:i}=e,r=(a?"startField"in a?a.startField:a.startTimeField:"")??"",u=(a?"endField"in a?a.endField:a.endTimeField:"")??"",c=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,m=i?function(e){return"timeZone"in e}(i)?i.timeZone??c:i.dateFieldsTimeReference?(0,l.ZS)(i.dateFieldsTimeReference):c??"UTC":null,f=a?function(e){return"timeZone"in e}(a)?a.timeZone??c:a.timeReference?(0,l.ZS)(a.timeReference):c:null,h=new Map([[(0,o.NF)(i?.creationDateField??""),m],[(0,o.NF)(i?.editDateField??""),m],[(0,o.NF)(r),f],[(0,o.NF)(u),f]]);for(const{name:a,type:i}of e.fields)if(d.has(i))t.set(a,s.L);else if("date"!==i&&"esriFieldTypeDate"!==i)t.set(a,null);else if(n)t.set(a,s.L);else{const e=h.get((0,o.NF)(a??""))??c;t.set(a,e)}return t}},68463(e,t,n){n.d(t,{A5:()=>g});var a=n(3483),i=n(97768),r=n(54218),o=n(92647);const s=["HH:mm:ss.SSS","HH:mm:ss","HH:mm","TT"];function l(e){if(!e||!(0,r.Kg)(e))return null;const t=o.c9.fromFormat(e,"yyyy-MM-dd");return t.isValid?t:null}function u(e){return e&&(0,r.Kg)(e)?(0,i.Pb)(s,t=>{const n=o.c9.fromFormat(e,t);return n.isValid?n:null})??null:null}function d(e){if(!e||!(0,r.Kg)(e))return null;const t=o.c9.fromISO(e);return t.isValid?t:null}const c=new Set(["integer","small-integer","long","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"]);function m(e){return null!=e&&c.has(e.type)}function f(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function h(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function y(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}const T=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]);function g(e,t){const n=t??e?.domain;if(!n||"range"!==n.type)return;const a="range"in n?n.range[0]:n.minValue,i="range"in n?n.range[1]:n.maxValue,r=m(e);return f(e)||y(e)||h(e)?{...p(e,i,a),isInteger:r}:{min:null!=a&&"number"==typeof a?a:null,max:null!=i&&"number"==typeof i?i:null,rawMin:a,rawMax:i,isInteger:r}}function p(e,t,n){return f(e)?{min:l(n)?.toMillis(),max:l(t)?.toMillis(),rawMin:n,rawMax:t}:y(e)?{min:u(n)?.toMillis(),max:u(t)?.toMillis(),rawMin:n,rawMax:t}:h(e)?{min:d(n)?.toMillis(),max:d(t)?.toMillis(),rawMin:n,rawMax:t}:{max:null,min:null}}(0,a.KC)(c,T)},30524(e,t,n){n.d(t,{Ah:()=>Y,Bz:()=>I,CJ:()=>te,DB:()=>g,Dx:()=>b,GZ:()=>Te,JL:()=>ce,Jl:()=>N,Kl:()=>de,NF:()=>ye,OG:()=>X,OH:()=>K,R$:()=>D,R3:()=>P,Vb:()=>he,WA:()=>J,WX:()=>Q,XT:()=>ee,Xz:()=>H,_b:()=>x,_w:()=>p,e7:()=>fe,eX:()=>w,hL:()=>A,lD:()=>L,mB:()=>M,nw:()=>me,rS:()=>d,rq:()=>S,sv:()=>y,te:()=>W,uo:()=>ue,vE:()=>q,yM:()=>R,yp:()=>f,zD:()=>j}),n(49186);var a=n(93637),i=n(3483),r=(n(39516),n(68463),n(69309)),o=n(54218),s=n(43668);const l=/^([0-9_])/,u=/[^a-z0-9_\u0080-\uffff]+/gi;function d(e){return null==e?null:e.trim().replaceAll(u,"_").replace(l,"F$1")||null}const c=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],m=["field","normalizationField"];function f(e,t){if(null!=e&&null!=t)for(const n of Array.isArray(e)?e:[e])if(h(c,n,t),"visualVariables"in n&&n.visualVariables)for(const e of n.visualVariables)h(m,e,t)}function h(e,t,n){if(e)for(const i of e){const e=(0,a.wc)(i,t),r=e&&"function"!=typeof e&&n.get(e);r&&(0,a.sM)(i,r.name,t)}}function y(e,t){if(null!=e&&t?.fields?.length)if("startField"in e){const n=t.get(e.startField),a=t.get(e.endField);e.startField=n?.name??null,e.endField=a?.name??null}else{const n=t.get(e.startTimeField),a=t.get(e.endTimeField);e.startTimeField=n?.name??null,e.endTimeField=a?.name??null}}const T=new Set;function g(e,t){return e&&t?(T.clear(),p(T,e,t),Array.from(T).sort()):[]}function p(e,t,n){if(n)if(t?.fields?.length)if(n.includes("*"))for(const{name:n}of t.fields)e.add(n);else for(const a of n)S(e,t,a);else{if(n.includes("*"))return e.clear(),void e.add("*");for(const t of n)null!=t&&e.add(t)}}function S(e,t,n){if("string"==typeof n)if(t){const a=t.get(n);a&&e.add(a.name)}else e.add(n)}function A(e,t){return null==t||null==e?[]:t.includes("*")?(e.fields??[]).map(e=>e.name):t}async function b(e,t,n,a){if(!a)return;const i=(0,r.o)(a);if(i)S(e,t,i);else{const{arcadeUtils:i}=await(0,s.l)(),r=i.extractFieldNames(a,n?.partitions??t?.fields?.map(e=>e.name));for(const a of r)S(e,n?.index??t,a)}}function M({displayField:e,fields:t}){return e||(t?.length?function(e){return F(e,"name-or-title")||F(e,"unique-identifier")||F(e,"type-or-category")||function(e){for(const t of e){if(!t?.name)continue;const e=t.name.toLowerCase();if(e.includes("name")||e.includes("title"))return t.name}return null}(e)}(t):null)}function F(e,t){for(const n of e)if(n?.valueType&&n.valueType===t)return n.name;return null}function w(e){return e?g(e.fieldsIndex,k(e)):[]}const v=new Set(["oid","global-id","guid"]),C=new Set(["oid","global-id"]),E=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^shape$/i,/^shape_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/objectid/i,/^perimeter_/i,/_perimeter$/i,/_i$/i];function k(e){if(!e)return[];const t="editFieldsInfo"in e&&e.editFieldsInfo;if(!t)return[];const{creationDateField:n,creatorField:a,editDateField:i,editorField:r}=t;return[n,a,i,r].filter(Boolean)}function _(e){return k(e).map(e=>e.toLowerCase())}function N(e){return!!e.type}function D(e,t){return!!e.editable&&N(e)&&!v.has(e.type)&&!_(t).includes(e.name?.toLowerCase()??"")}function I(e,t){const n=e.name?.toLowerCase()??"";return!(null!=t?.objectIdField&&n===t.objectIdField.toLowerCase()||null!=t?.globalIdField&&n===t.globalIdField.toLowerCase()||function(e){const t=new Set;_(e).forEach(e=>t.add(e)),function(e){if(!e)return[];const t=e.geometryFieldsInfo;return t?g(e.fieldsIndex,[t.shapeAreaField,t.shapeLengthField]):[]}(e).forEach(e=>t.add(e.toLowerCase()));const n=e&&"infoFor3D"in e?e.infoFor3D:void 0;return n&&(Object.values(n.assetMapFieldRoles).forEach(e=>t.add(e.toLowerCase())),Object.values(n.transformFieldRoles).forEach(e=>t.add(e.toLowerCase()))),Array.from(t)}(t).includes(n)||C.has(e.type)||E.some(e=>e.test(n)))}function L(e){const t=e.defaultValue;return void 0!==t&&$(e,t)?t:e.nullable?null:void 0}function x(e){const t="string"==typeof e?{type:e}:e;return R(t)?255:"esriFieldTypeDate"===t.type||"date"===t.type?8:void 0}function V(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function Z(e){return null===e||V(e)}function U(e){return null===e||Number.isInteger(e)}function O(){return!0}function $(e,t){let n;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"big-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":case"esriFieldTypeBigInteger":n=e.nullable?U:Number.isInteger;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":n=e.nullable?Z:V;break;case"string":case"esriFieldTypeString":n=e.nullable?o.CO:o.Kg;break;default:n=O}return 1===arguments.length?n:n(t)}const z=new Set(["integer","small-integer","big-integer","long","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"]),G=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]),B=(0,i.KC)(z,G);function P(e){return null!=e&&z.has(e.type)}function J(e){return null!=e&&B.has(e.type)}function R(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}function q(e){return null!=e&&("date"===e.type||"esriFieldTypeDate"===e.type)}function j(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function Y(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function K(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}function W(e){return null!=e&&("oid"===e.type||"esriFieldTypeOID"===e.type)}function H(e){return null!=e&&("global-id"===e.type||"esriFieldTypeGlobalID"===e.type)}function X(e,t){return null===te(e,t)}function Q(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function ee(e){return parseFloat(e.replaceAll("_",""))}function te(e,t){return null==e||e.nullable&&null===t?null:$(e,t)?J(e)&&!function(e,t){const n="string"==typeof e?ne(e):e;if(!n)return!1;const a=n.min,i=n.max;return n.isInteger?Number.isInteger(t)&&t>=a&&t<=i:t>=a&&t<=i}(e.type,Number(t))?"numeric-range-validation-error::out-of-range":null:"type-validation-error::invalid-type"}function ne(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return ae;case"esriFieldTypeInteger":case"esriFieldTypeLong":case"integer":case"long":return ie;case"esriFieldTypeBigInteger":case"big-integer":return re;case"esriFieldTypeSingle":case"single":return se;case"esriFieldTypeDouble":case"double":return le}}const ae={min:-32768,max:32767,isInteger:!0,rawMin:-32768,rawMax:32767},ie={min:-2147483648,max:2147483647,isInteger:!0,rawMin:-2147483648,rawMax:2147483647},re={min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,isInteger:!0,rawMin:-Number.MAX_SAFE_INTEGER,rawMax:Number.MAX_SAFE_INTEGER},oe=(2-2**-23)*2**127,se={min:-oe,max:oe,isInteger:!1,rawMin:-oe,rawMax:oe},le={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1,rawMin:-Number.MAX_VALUE,rawMax:Number.MAX_VALUE};function ue(e,t,n){switch(e){case"domain-validation-error::invalid-coded-value":return`Value ${n} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case"domain-validation-error::value-out-of-range":return`Value ${n} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case"type-validation-error::invalid-type":return`Value ${n} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case"numeric-range-validation-error::out-of-range":{const{min:e,max:a}=ne(t.type);return`Value ${n} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${a}`}}}function de(e,t){return!function(e,t){if(!e?.attributes||!t)return!0;const n=new Set(Object.keys(e.attributes));let a=!1;for(const e of t)if(!n.has(e)){a=!0;break}return a}(e,t)}function ce(e){return!!e&&["raster.itempixelvalue","raster.servicepixelvalue"].some(t=>e.toLowerCase().startsWith(t))}function me(e){const t=e?.match(/{[^}]+}/g);return t?t.map(e=>e.slice(1,-1).split(":")[0].trim()):[]}function fe(e,t){const{statisticType:n,onStatisticField:a,onStatisticExpression:i}=e,r=t.get(a),o=J(r),s=i?.returnType;switch(n){case"avg":case"avg_angle":return r?o||q(r)?"double":null:s&&"number"===s?"double":null;case"count":return"integer";case"min":case"max":return r?o||function(e){return null!=e&&("date"===e.type||"date-only"===e.type||"time-only"===e.type||"timestamp-offset"===e.type)}(r)?r?.type??null:null:s&&"number"===s?"double":null;case"sum":return r?o?r?.type??null:null:s&&"number"===s?"double":null;case"mode":return r?r?.type??null:s?"number"===s?"double":"string":null;default:return null}}function he(e){const{fieldName:t,fieldsMap:n,normalizedFieldsMap:a}=e;if(!t)return;let i=n.get(t);return i||(i=n.get(ye(t))??a.get(Te(t)),i&&n.set(t,i),i)}function ye(e){return e.trim().toLowerCase()}function Te(e){return d(e)?.toLowerCase()??""}},9760(e,t,n){n.d(t,{A:()=>d});var a=n(5482),i=n(66552),r=n(25482),o=n(91429),s=n(93223);const l=new i.J({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),u=new i.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let d=class extends r.o{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,a.Cg)([(0,s.e)({classBreaksDef:"class-breaks-definition"})],d.prototype,"type",void 0),(0,a.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"breakCount",void 0),(0,a.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"classificationField",void 0),(0,a.Cg)([(0,o.MZ)({type:String,json:{read:l.read,write:l.write}})],d.prototype,"classificationMethod",void 0),(0,a.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"normalizationField",void 0),(0,a.Cg)([(0,o.MZ)({json:{read:u.read,write:u.write}})],d.prototype,"normalizationType",void 0),(0,a.Cg)([(0,o.MZ)({value:null,json:{write:!0}})],d.prototype,"standardDeviationInterval",null),(0,a.Cg)([(0,o.MZ)({value:null,json:{write:!0}})],d.prototype,"definedInterval",null),d=(0,a.Cg)([(0,o.$K)("esri.rest.support.ClassBreaksDefinition")],d)},84892(e,t,n){n.d(t,{t:()=>r});var a=n(53966);function i(e,t){return Number(e.toFixed(t))}function r(e,t){const{normalizationTotal:n}=e;return{classBreaks:o(e,t),normalizationTotal:n}}function o(e,t){const n=e.definition,{classificationMethod:a,normalizationType:r,definedInterval:o}=n,u=n.breakCount??1,d=[];let c=e.values;if(0===c.length)return[];c=c.sort((e,t)=>e-t);const[m,f]=t??[c.at(0),c.at(-1)];if("equal-interval"===a)if(c.length>=u){const e=(f-m)/u;let t=m;for(let n=1;n<u;n++){const a=i(m+n*e,6);d.push({minValue:t,maxValue:a,label:s(t,a,r)}),t=a}d.push({minValue:t,maxValue:f,label:s(t,f,r)})}else c.forEach(e=>{d.push({minValue:e,maxValue:e,label:s(e,e,r)})});else if("natural-breaks"===a){const t=function(e){const t=[],n=[];let a=Number.MIN_VALUE,i=1,r=-1;for(let o=0;o<e.length;o++){const s=e[o];s===a?(i++,n[r]=i):null!==s&&(t.push(s),a=s,i=1,n.push(i),r++)}return{uniqueValues:t,valueFrequency:n}}(c),n=e.valueFrequency||t.valueFrequency,a=l(t.uniqueValues,n,u);let o=m;for(let e=1;e<u;e++)if(t.uniqueValues.length>e){const n=i(t.uniqueValues[a[e]],6);d.push({minValue:o,maxValue:n,label:s(o,n,r)}),o=n}d.push({minValue:o,maxValue:f,label:s(o,f,r)})}else if("quantile"===a)if(c.length>=u&&m!==f){let e=m,t=Math.ceil(c.length/u),n=0;for(let a=1;a<u;a++){let i=t+n-1;i>c.length&&(i=c.length-1),i<0&&(i=0),d.push({minValue:e,maxValue:c[i],label:s(e,c[i],r)}),e=c[i],n+=t,t=Math.ceil((c.length-n)/(u-a))}d.push({minValue:e,maxValue:f,label:s(e,f,r)})}else{let e=-1;for(let t=0;t<c.length;t++){const n=c[t];n!==e&&(e=n,d.push({minValue:e,maxValue:n,label:s(e,n,r)}),e=n)}}else if("standard-deviation"===a){const e=function(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/=e.length,t}(c),t=function(e,t){let n=0;for(let a=0;a<e.length;a++){const i=e[a];n+=(i-t)*(i-t)}return n/=e.length,Math.sqrt(n)}(c,e);if(0===t)d.push({minValue:c[0],maxValue:c[0],label:s(c[0],c[0],r)});else{const n=function(e,t,n,a,i){let r=Math.max(a-e,t-a)/i/n;return r=r>=1?1:r>=.5?.5:.25,r}(m,f,u,e,t)*t;let a=0,o=m;for(let t=u;t>=1;t--){const l=i(e-(t-.5)*n,6);d.push({minValue:o,maxValue:l,label:s(o,l,r)}),o=l,a++}let l=i(e+.5*n,6);d.push({minValue:o,maxValue:l,label:s(o,l,r)}),o=l,a++;for(let t=1;t<=u;t++)l=a===2*u?f:i(e+(t+.5)*n,6),d.push({minValue:o,maxValue:l,label:s(o,l,r)}),o=l,a++}}else if("defined-interval"===a){if(!o)return d;const[e,n]=t??[c.at(0),c.at(-1)],a=Math.ceil((n-e)/o);let l=e;for(let t=1;t<a;t++){const n=i(e+t*o,6);d.push({minValue:l,maxValue:n,label:s(l,n,r)}),l=n}d.push({minValue:l,maxValue:n,label:s(l,n,r)})}return d}function s(e,t,n){let a=null;return a=e===t?n&&"percent-of-total"===n?e+"%":e.toString():n&&"percent-of-total"===n?e+"% - "+t+"%":e+" - "+t,a}function l(e,t,n){const a=e.length,i=[];n>a&&(n=a);for(let e=0;e<n;e++)i.push(Math.round(e*a/n-1));i.push(a-1);let r=u(i,e,t,n);return function(e,t,n,a,i,r){let o=0,s=0,l=0,u=0,c=!0;for(let m=0;m<2&&c;m++){0===m&&(c=!1);for(let m=0;m<r-1;m++)for(;n[m+1]+1!==n[m+2];){n[m+1]=n[m+1]+1;const r=d(m,n,a,i);l=r.sbMean,o=r.sbSdcm;const f=d(m+1,n,a,i);if(u=f.sbMean,s=f.sbSdcm,!(o+s<t[m]+t[m+1])){n[m+1]=n[m+1]-1;break}t[m]=o,t[m+1]=s,e[m]=l,e[m+1]=u,c=!0}for(let m=r-1;m>0;m--)for(;n[m]!==n[m-1]+1;){n[m]=n[m]-1;const r=d(m-1,n,a,i);l=r.sbMean,o=r.sbSdcm;const f=d(m,n,a,i);if(u=f.sbMean,s=f.sbSdcm,!(o+s<t[m-1]+t[m])){n[m]=n[m]+1;break}t[m-1]=o,t[m]=s,e[m-1]=l,e[m]=u,c=!0}}return c}(r.mean,r.sdcm,i,e,t,n)&&(r=u(i,e,t,n)),i}function u(e,t,n,a){let i=[],r=[],o=[],s=0;const l=[],u=[];for(let i=0;i<a;i++){const a=d(i,e,t,n);l.push(a.sbMean),u.push(a.sbSdcm),s+=u[i]}let c,m=s,f=!0;for(;f||s<m;){f=!1,i=[];for(let t=0;t<a;t++)i.push(e[t]);for(let n=0;n<a;n++)for(let i=e[n]+1;i<=e[n+1];i++)if(c=t[i],n>0&&i!==e[n+1]&&Math.abs(c-l[n])>Math.abs(c-l[n-1]))e[n]=i;else if(n<a-1&&e[n]!==i-1&&Math.abs(c-l[n])>Math.abs(c-l[n+1])){e[n+1]=i-1;break}m=s,s=0,r=[],o=[];for(let i=0;i<a;i++){r.push(l[i]),o.push(u[i]);const a=d(i,e,t,n);l[i]=a.sbMean,u[i]=a.sbSdcm,s+=u[i]}}if(s>m){for(let t=0;t<a;t++)e[t]=i[t],l[t]=r[t],u[t]=o[t];s=m}return{mean:l,sdcm:u}}function d(e,t,n,i){let r=0,o=0;for(let a=t[e]+1;a<=t[e+1];a++){const e=i[a];r+=n[a]*e,o+=e}o<=0&&a.A.getLogger("esri.rest.support.generateRendererUtils").warn("Exception in Natural Breaks calculation");const s=r/o;let l=0;for(let a=t[e]+1;a<=t[e+1];a++)l+=i[a]*(n[a]-s)**2;return{sbMean:s,sbSdcm:l}}},69309(e,t,n){function a(e){if(!e)return;const t=e.match(i);return t?.groups?t.groups.doubleQuoted??t.groups.singleQuoted??t.groups.dotNotation:void 0}n.d(t,{D:()=>r,o:()=>a});const i=/^(\$feature\[(?:"(?<doubleQuoted>[^"]+)"|'(?<singleQuoted>[^']+)')\]|\$feature\.(?<dotNotation>[a-z_][a-z0-9_]*))$/i;function r(e){return e.match(o)?.[1]?.replaceAll("\\'","'")??null}const o=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/},54218(e,t,n){function a(e){return"number"==typeof e}function i(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function r(e){return"boolean"==typeof e}function o(e){return"string"==typeof e||e instanceof String}function s(e){return null==e||o(e)}function l(e){return Array.isArray(e)}function u(e){return e instanceof Date}n.d(t,{$P:()=>u,CO:()=>s,Et:()=>a,Fq:()=>i,Kg:()=>o,Lm:()=>r,cy:()=>l})},43668(e,t,n){let a;function i(){return a||(a=(async()=>{const[e,t,a]=await Promise.all([Promise.all([n.e(708),n.e(9696),n.e(4800),n.e(3470),n.e(5349),n.e(5098)]).then(n.bind(n,25098)),n.e(8010).then(n.bind(n,8010)),Promise.all([n.e(4800),n.e(3470),n.e(5349),n.e(6343)]).then(n.bind(n,76343))]);return{arcade:e.arcade,arcadeUtils:e,batchExec:t,aiServices:a,Dictionary:e.Dictionary,Feature:e.arcadeFeature,Voxel:e.Voxel,Pixel:e.Pixel}})()),a}n.d(t,{l:()=>i})},98623(e,t,n){const a=Intl.DateTimeFormat().resolvedOptions().timeZone;n.d(t,["L",0,"unknown","N",0,a])},56400(e,t,n){n.d(t,{ZS:()=>u,S3:()=>f,hv:()=>d,wr:()=>c,P6:()=>l});var a=n(91869),i=n(3330),r=n(98623);const o=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var s=n(92647);function l(e,t=!1){return{json:{read:{source:e,reader:(t,n)=>n[e]?u(n[e]):null},write:!!t&&{allowNull:!0,writer(t,n){n[e]=t?function(e){return{timeZoneIANA:e}}(t):null}}}}}function u(e,t="system"){return e?function(e){return"timeZoneIANA"in e}(e)?e.timeZoneIANA:function(e,t="system"){if(!e||!o.has(e.timeZone))return t;const n=o.get(e.timeZone);return function(e){return e.startsWith("UTC")}(e.timeZone)||e.respectsDaylightSaving?n:function(e){const t=s.c9.local().setZone(e),n=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===n?"Etc/UTC":`Etc/GMT${s.mQ.instance(-n).formatOffset(0,"narrow")}`}(n)}(e,t):t}function d(e,t,n,a,i){if(t&&"date"===i)return{timeZone:"UTC",timeZoneName:void 0};const o=a.hour,s=n===r.L;return{timeZone:s?"timestamp-offset"===i?void 0:e??"UTC":n,timeZoneName:s&&o?"shortOffset":void 0}}function c(e){const t=new Set(["etc/utc","etc/gmt","gmt"]),n=new Set(Intl.supportedValuesOf("timeZone").map(e=>e.toLowerCase()));return"system"===e||e===r.L||t.has(e.toLowerCase())||n.has(e.toLowerCase())}const m=new Map;function f(e){return e===r.L?i.GB.instance:"UTC"===e||"Etc/UTC"===e?s.mQ.utcInstance:(0,a.tE)(m,e,()=>s.oh.create(e))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9619],{15142(t,e,n){n.d(e,{A:()=>o});var i=n(4576),s=n(21818);const r=(t,e,n,i)=>{let s=e,r=e;const a=n>>>1,h=t[s-1];for(;r<=a;){r=s<<1,r<n&&i(t[r-1],t[r])<0&&++r;const e=t[r-1];if(i(e,h)<=0)break;t[s-1]=e,s=r}t[s-1]=h},a=(t,e)=>t<e?-1:t>e?1:0;function h(t,e,n,i){void 0===e&&(e=0),void 0===n&&(n=t.length),void 0===i&&(i=a);for(let s=n>>>1;s>e;s--)r(t,s,n,i);const s=e+1;for(let a=n-1;a>e;a--){const n=t[e];t[e]=t[a],t[a]=n,r(t,s,a,i)}}function*l(t,e,n,i){void 0===e&&(e=0),void 0===n&&(n=t.length),void 0===i&&(i=a);for(let s=n>>>1;s>e;s--)r(t,s,n,i),yield;const s=e+1;for(let a=n-1;a>e;a--){const n=t[e];t[e]=t[a],t[a]=n,r(t,s,a,i),yield}}class o{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new i.vW,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),void 0!==t.deallocator&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>u(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){const e=new Array;for(let n=0;n<this._length;n++){const i=this.data[n];t(i)&&e.push(i)}return e}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,e){const n=this.data.indexOf(t,e);return-1!==n&&n<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let e=t;e<this._length;++e)this.data[e]=this._deallocator(this.data[e]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,e=t.length){for(let n=0;n<e;n++)this.data[this._length++]=t[n]}pushAll(t){for(const e of t)this.data[this._length++]=e}fill(t,e){for(let n=0;n<e;n++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));const t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,u(this)}pop(){if(0===this.length)return;const t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){const e=(0,i.qh)(this.data,(0,s.z)(t),this.length,this._hint);if(-1!==e)return this.data.splice(e,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex((0,i.qh)(this.data,(0,s.z)(t),this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,e=t.length,n){this.length=(0,i.mW)(this.data,t,this.length,e,this._hint,n),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,e){if(t>=this.length||e>=this.length||t===e)return;const n=this.data[t];this.data[t]=this.data[e],this.data[e]=n}sort(t){h(this.data,0,this.length,t)}iterableSort(t){return l(this.data,0,this.length,t)}some(t,e){for(let n=0;n<this.length;++n)if(t.call(e,this.data[n],n,this.data))return!0;return!1}find(t,e){const{data:n,length:i}=this;for(let s=0;s<i;++s)if(t.call(e,n[s]))return n[s]}filterInPlace(t,e){let n=0;for(let i=0;i<this._length;++i){const s=this.data[i];t.call(e,s,i,this.data)&&(this.data[i]=this.data[n],this.data[n]=s,n++)}if(this._deallocator)for(let t=n;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=n,this._shrink(),this}forAll(t,e){const{data:n,length:i}=this;for(let s=0;s<i;++s)t.call(e,n[s],s,n)}forEach(t,e){this.data.slice(0,this.length).forEach(t,e)}map(t,e){const n=new Array(this.length);for(let i=0;i<this.length;++i)n[i]=t.call(e,this.data[i],i,this.data);return n}reduce(t,e){let n=e;for(let e=0;e<this.length;++e)n=t(n,this.data[e],e,this.data);return n}has(t){const e=this.length,n=this.data;for(let i=0;i<e;++i)if(n[i]===t)return!0;return!1}*[Symbol.iterator](){const{data:t,length:e}=this;for(let n=0;n<e;++n)yield t[n]}}function u(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}},34727(t,e,n){n.d(e,{$8:()=>A,Cc:()=>h,Hx:()=>_,Io:()=>v,KJ:()=>u,OS:()=>x,Sp:()=>f,XM:()=>c,YN:()=>d,ZH:()=>p,b6:()=>k,cU:()=>s,gg:()=>g,hs:()=>l,kU:()=>o,mP:()=>a,or:()=>E,pF:()=>L,qE:()=>r});const i=new Float32Array(1);function s(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function r(t,e,n){return Math.min(Math.max(t,e),n)}function a(t,e){return 0===e?0:Math.ceil(t/e)*e}function h(t,e,n){return t+(e-t)*n}function l(t,e,n,i,s){return h(i,s,(t-e)/(n-e))}function o(t){return t*Math.PI/180}function u(t){return 180*t/Math.PI}function c(t){return Math.acos(r(t,-1,1))}function d(t){return Math.asin(r(t,-1,1))}function f(t,e,n=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=n}function g(t,e,n=1e-6){return!f(t,e,n)&&t>e}function p(t,e,n=1e-6){return!f(t,e,n)&&t<e}function _(t,e,n=1e-6){return f(t,e,n)||t>e}const b=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function m(t){return b.setFloat64(0,t),b.getBigInt64(0)}const y=1000000n,M=w(1);function w(t){const e=m(t=Math.abs(t)),n=function(t){return b.setBigInt64(0,t),b.getFloat64(0)}(e<=y?y:e-y);return Math.abs(t-n)}function v(t,e,n=M){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=n&&w(Math.min(Math.abs(t),Math.abs(e)))<n)return Math.abs(t-e)<=n;const i=m(t),s=m(e);return i<0==s<0&&!((i<s?s-i:i-s)>y)}function k(t,e,n=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;const i=Math.abs(t-e),s=Math.abs(t),r=Math.abs(e);if(0===t||0===e||s<1e-12&&r<1e-12){if(i>.01*n)return!1}else if(i/(s+r)>n)return!1;return!0}function A(t){return I(Math.max(-N,Math.min(t,N)))}function I(t){return i[0]=t,i[0]}function E(t){const e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],i=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(f(e,1)&&f(n,1)&&f(i,1))}function x(t,e){return(t%e+e)%e}const N=I(34028234663852886e22);function L(t,e,n){if(void 0===n||0===+n)return Math[t](e);if(e=+e,n=+n,isNaN(e)||"number"!=typeof n||n%1!=0)return NaN;let i=e.toString().split("e");return i=(e=Math[t](+(i[0]+"e"+(i[1]?+i[1]-n:-n)))).toString().split("e"),+(i[0]+"e"+(i[1]?+i[1]+n:n))}n.d(e,["pq",0,N])},71936(t,e,n){n.r(e),n.d(e,{default:()=>l});var i=n(1843);function s(t,e){return e.push(t.buffer),{buffer:t.buffer,layout:new i.l5(t.layout)}}var r=n(3055),a=n(93406),h=n(44801);class l{async extract(t){const e=o(t),n=(0,h.o6)(e),i=[e.data.buffer];return{result:u(n,i),transferList:i}}async extractComponentsEdgeLocations(t){const e=o(t),n=(0,h.hx)(e.data,e.skipDeduplicate,e.indices,e.indicesLength),i=[];return{result:s((0,a.K)(n,d).regular.instancesData,i),transferList:i}}async extractEdgeLocations(t){const e=o(t),n=(0,h.hx)(e.data,e.skipDeduplicate,e.indices,e.indicesLength),i=[];return{result:s((0,a.K)(n,c).regular.instancesData,i),transferList:i}}}function o(t){return{data:r.I$.createView(t.dataBuffer),indices:"Uint32Array"===t.indicesType?new Uint32Array(t.indices):"Uint16Array"===t.indicesType?new Uint16Array(t.indices):"Uint8Array"===t.indicesType?new Uint8Array(t.indices):t.indices,indicesLength:t.indicesLength,writerSettings:t.writerSettings,skipDeduplicate:t.skipDeduplicate}}function u(t,e){return e.push(t.regular.lodInfo.lengths.buffer),e.push(t.silhouette.lodInfo.lengths.buffer),{regular:{instancesData:s(t.regular.instancesData,e),lodInfo:{lengths:t.regular.lodInfo.lengths.buffer}},silhouette:{instancesData:s(t.silhouette.instancesData,e),lodInfo:{lengths:t.silhouette.lodInfo.lengths.buffer}},averageEdgeLength:t.averageEdgeLength}}const c=new class{allocate(t){return h.Jb.createBuffer(t)}trim(t,e){return t.slice(0,e)}write(t,e,n){t.position0.setVec(e,n.position0),t.position1.setVec(e,n.position1)}},d=new class{allocate(t){return h.HY.createBuffer(t)}trim(t,e){return t.slice(0,e)}write(t,e,n){t.position0.setVec(e,n.position0),t.position1.setVec(e,n.position1),t.componentIndex.set(e,n.componentIndex)}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5404],{95404(e,r,t){t.d(r,{computeObjectLayerResourceSize:()=>c}),t(11254);var i=t(49186),n=t(66344),o=t(51850),s=t(70328),l=t(8887);let u=new n.q(50);async function c(e,r=null){if(!e.isPrimitive){const r=e.resource?.href;if(!r)throw new i.A("symbol:invalid-resource","The symbol does not have a valid resource");const n=u.get(r);if(null!=n)return n;const{fetch:l}=await Promise.all([t.e(1843),t.e(7005),t.e(894),t.e(7340)]).then(t.bind(t,49261)),c=await l(r,{disableTextures:!0,spherical:!0}),a=(0,s.Ej)(c.referenceBoundingBox,(0,o.vt)());return u.put(r,a),a}if(!e.resource?.primitive)throw new i.A("symbol:invalid-resource","The symbol does not have a valid resource");const n=(0,s.vt)((0,l.Fq)(e.resource.primitive));if(null!=r)for(let e=0;e<n.length;e++)n[e]*=r;return(0,s.Ej)(n,(0,o.vt)())}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5404],{95404(e,r,t){t.d(r,{computeObjectLayerResourceSize:()=>c}),t(11254);var i=t(49186),n=t(66344),o=t(51850),s=t(70328),l=t(8887);let u=new n.q(50);async function c(e,r=null){if(!e.isPrimitive){const r=e.resource?.href;if(!r)throw new i.A("symbol:invalid-resource","The symbol does not have a valid resource");const n=u.get(r);if(null!=n)return n;const{fetch:l}=await Promise.all([t.e(1843),t.e(7005),t.e(8371),t.e(9578)]).then(t.bind(t,77691)),c=await l(r,{disableTextures:!0,spherical:!0}),a=(0,s.Ej)(c.referenceBoundingBox,(0,o.vt)());return u.put(r,a),a}if(!e.resource?.primitive)throw new i.A("symbol:invalid-resource","The symbol does not have a valid resource");const n=(0,s.vt)((0,l.Fq)(e.resource.primitive));if(null!=r)for(let e=0;e<n.length;e++)n[e]*=r;return(0,s.Ej)(n,(0,o.vt)())}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[958],{52106(e,t,i){i.d(t,{A:()=>I});var r,s,n=i(5482),o=i(37838),a=i(69540),l=i(51447),u=i(25482),d=i(53966),p=i(36708),c=i(24326),h=i(91429),y=i(12195),g=i(65864),f=i(50498),m=i(55156),b=i(60950),v=i(54339),M=i(94128),w=i(33910);function C(e){if(null==e)return null;const t={};for(const i in e){const r=e[i];r&&(t[i]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let I=class extends((0,a.OU)(u.o)){static{r=M.Z}static{s=this}constructor(e){super(e),this[r]=!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,c.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(d.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}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),"mesh"!==e?.type&&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 s({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,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[i,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 i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,m.I)(this.origin);if(e)return(0,v.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,v.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:C(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,y.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 i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const s={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(s.action=r),"attributes"===e&&(s.attributeName=r),this.layer.graphicChanged(s)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.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,p.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&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",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,n.Cg)([(0,h.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const r=(0,g.rS)(e[i]);r&&(t[i]=r)}return 0!==Object.keys(t).length?t:null}}})],I.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,h.MZ)({value:null})],I.prototype,"attributes",null),(0,n.Cg)([(0,h.MZ)({value:null,types:f.yR,json:{read:g.rS}})],I.prototype,"geometry",null),(0,n.Cg)([(0,h.MZ)()],I.prototype,"distance",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean})],I.prototype,"isAggregate",void 0),(0,n.Cg)([(0,h.MZ)({clonable:!1})],I.prototype,"layer",void 0),(0,n.Cg)([(0,h.MZ)({clonable:"reference"})],I.prototype,"origin",void 0),(0,n.Cg)([(0,h.MZ)({type:o.A,value:null})],I.prototype,"popupTemplate",null),(0,n.Cg)([(0,h.MZ)({clonable:"reference"})],I.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,h.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],I.prototype,"statisticsAggregatedIds",void 0),(0,n.Cg)([(0,h.MZ)({value:null,types:w.Es})],I.prototype,"symbol",null),(0,n.Cg)([(0,h.MZ)({clonable:!1,json:{read:!1,write:!1}})],I.prototype,"_version",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean,value:!0})],I.prototype,"visible",null),I=s=(0,n.Cg)([(0,h.$K)("esri.Graphic")],I)},4902(e,t,i){var r=i(5482),s=i(64108);let n=0;const o=e=>{const t=e;let i=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return i=(0,r.Cg)([(0,s.$)("esri.core.Identifiable")],i),i};o(class{}),i.d(t,["s",0,o])},16494(e,t,i){var r=i(17632);const s=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),n=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],o=new r.I({whiteList:s,onTagAttr:(e,t,i)=>{const r=`${t}="${i}"`;if(n.includes(t))return r},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),a=new r.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1);i.d(t,["Nd",0,a,"W5",0,o])},55156(e,t,i){i.d(t,{I:()=>s});const r=Symbol("idFieldsProviderSymbol");function s(e){return(t=e)&&r in t?e[r]:void 0;var t}i.d(t,["e",0,r])},4146(e,t,i){i.d(t,{A:()=>b});var r=i(5482),s=i(11254),n=i(49186),o=i(65529),a=i(4902),l=i(92474),u=i(53966),d=i(17676),p=i(84952),c=i(91429),h=i(5443),y=i(16930),g=i(92602),f=i(79677);let m=0,b=class extends((0,o.Zt)((0,a.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new h.A(-180,-90,180,90,y.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+m++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([i.e(812),i.e(7982)]).then(i.bind(i,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:r}=await Promise.all([i.e(812),i.e(5613),i.e(909)]).then(i.bind(i,45613));try{return await r(t)}catch(e){const i=t?.portalItem,r=i?.id||"unset",s=i?.portal?.url||g.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+r+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,d.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,p.An)(this.url)}createLayerView(e,t){return Promise.reject(new n.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,r.Cg)([(0,c.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,r.Cg)([(0,c.MZ)({type:h.A})],b.prototype,"fullExtent",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,r.Cg)([(0,c.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,r.Cg)([(0,c.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,c.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,r.Cg)([(0,c.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,r.Cg)([(0,c.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,r.Cg)([(0,c.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,c.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,r.Cg)([(0,c.MZ)({type:y.A})],b.prototype,"spatialReference",void 0),(0,r.Cg)([(0,c.MZ)({type:String})],b.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,r.Cg)([(0,c.MZ)()],b.prototype,"url",void 0),(0,r.Cg)([(0,c.MZ)({type:f.A})],b.prototype,"visibilityTimeExtent",void 0),(0,r.Cg)([(0,c.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,r.Cg)([(0,c.$K)("esri.layers.Layer")],b)},52136(e,t,i){var r=i(5482),s=i(91429);i.d(t,["p",0,e=>{const t=e;let i=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,r.Cg)([(0,s.MZ)({type:String})],i.prototype,"apiKey",null),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.APIKeyMixin")],i),i}])},47685(e,t,i){i.d(t,{Mk:()=>h,Zk:()=>p});var r=i(5482),s=i(65529),n=i(4718),o=i(91429),a=i(20816);const l=new s.bk;function u(e){return l.on("apply-edits",new WeakRef(e))}function d(e){return l.on("update-moment",new WeakRef(e))}function p(e,t,i=null,r=!1){const s=Promise.withResolvers();return r=null==t||r,l.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:s.promise}),s}const c=Symbol();function h(e){return null!=e&&"object"==typeof e&&c in e}function y(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function g(e,t,i){const r=new URL(e).host,s=a.Z3.get(r),n=e=>!e||e===s;return n(t)&&n(i)||t===i}i.d(t,["w6",0,e=>{var t;const i=e;let s=class extends i{static{t=c}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:i,gdbVersion:r,mayReceiveServiceEdits:s,result:o}=e,a=t===this.url,l=null!=i&&null!=this.layerId&&i===this.layerId,u=null!=i&&this.relationships?.some(e=>e.relatedTableId===i),d=y(this),p=y(this)&&g(t,r,this.gdbVersion);if(!a||d&&!p||!l&&!u&&!s)return;const c=o.then(e=>{if(this.lastEditsEventDate=new Date,l&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,n.o8)(e)),e;const i=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(i){const{adds:t,updates:r,deletes:s}=i.editedFeatures,o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:s?s.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:r?r.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return this.emit("edits",o),o}const s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,s.historicMoment)&&this.emit("edits",s),s}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));c.catch(()=>{}),this.emit("apply-edits",{result:c})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:i,moment:r}=e,s=t===this.url,n=y(this),o=y(this)&&g(t,i,this.gdbVersion),a=y(this)&&!g(t,this.gdbVersion,null);s&&n&&o&&a&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then(()=>{this.addHandles(u(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(d(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,i){return"historicMoment"in this&&this.historicMoment!==i&&(0,a.w5)(e,t)}};return(0,r.Cg)([(0,o.MZ)()],s.prototype,"lastEditsEventDate",void 0),s=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.EditBusLayer")],s),s}])},32756(e,t,i){i.d(t,{Rr:()=>a});var r=i(5482),s=i(93637),n=i(91429),o=i(91880);function a(e,t,i){if(!e)return null;const r=e.find(e=>!!e.field);if(!r)return null;const s=new o.A;return s.read(r,i),[s]}const l={type:[o.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,i,r){const n=e.find(e=>!!e.field);n&&(0,s.sM)(i,[n.toJSON()],t)}}}};i.d(t,["fY",0,e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,r.Cg)([(0,n.MZ)(l)],i.prototype,"orderBy",void 0),i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.OrderedLayer")],i),i},"ne",0,l])},28032(e,t,i){i.d(t,{A:()=>l});var r=i(5482),s=i(69540),n=i(25482),o=i(91429),a=i(56400);let l=class extends((0,s.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,r.Cg)([(0,o.MZ)()],l.prototype,"creatorField",void 0),(0,r.Cg)([(0,o.MZ)()],l.prototype,"creationDateField",void 0),(0,r.Cg)([(0,o.MZ)()],l.prototype,"editorField",void 0),(0,r.Cg)([(0,o.MZ)()],l.prototype,"editDateField",void 0),(0,r.Cg)([(0,o.MZ)()],l.prototype,"realm",void 0),(0,r.Cg)([(0,o.MZ)((0,a.P6)("dateFieldsTimeReference",!0))],l.prototype,"timeZone",void 0),l=(0,r.Cg)([(0,o.$K)("esri.layers.support.EditFieldsInfo")],l)},33143(e,t,i){i.d(t,{A:()=>p});var r=i(5482),s=i(69540),n=i(25482),o=i(91429),a=i(8631),l=i(29005),u=i(36005),d=i(43937);let p=class extends((0,s.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 i of Object.keys(e))t[i]=(0,a.r)(e[i]);return t}writeDomains(e,t){const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r.Cg)([(0,o.MZ)({json:{write:!0}})],p.prototype,"id",void 0),(0,r.Cg)([(0,o.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,r.Cg)([(0,o.MZ)({json:{write:!0}})],p.prototype,"domains",void 0),(0,r.Cg)([(0,u.w)("domains")],p.prototype,"readDomains",null),(0,r.Cg)([(0,d.K)("domains")],p.prototype,"writeDomains",null),(0,r.Cg)([(0,o.MZ)({type:[l.A],json:{write:!0}})],p.prototype,"templates",void 0),p=(0,r.Cg)([(0,o.$K)("esri.layers.support.FeatureType")],p)},37352(e,t,i){i.d(t,{A:()=>l});var r,s=i(5482),n=i(7762),o=i(25482),a=i(91429);let l=r=class extends o.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.A}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"floorField",void 0),(0,s.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllMode",void 0),(0,s.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllLevelIds",void 0),l=r=(0,s.Cg)([(0,a.$K)("esri.layers.support.LayerFloorInfo")],l)},91880(e,t,i){i.d(t,{A:()=>u});var r,s=i(5482),n=i(66552),o=i(25482),a=i(91429);const l=new n.J({asc:"ascending",desc:"descending"});let u=class extends o.o{static{r=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new r({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,s.Cg)([(0,a.MZ)({type:l.apiValues,json:{type:l.jsonValues,read:l.read,write:l.write}})],u.prototype,"order",void 0),u=r=(0,s.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],u)},45067(e,t,i){i.d(t,{A:()=>d});var r=i(5482),s=i(69540),n=i(66552),o=i(25482),a=i(91429);const l=new n.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new n.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let d=class extends((0,s.OU)(o.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,r.Cg)([(0,a.MZ)({json:{read:l.read,write:l.write}})],d.prototype,"cardinality",void 0),(0,r.Cg)([(0,a.MZ)({json:{name:"catalogID"}})],d.prototype,"catalogId",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"composite",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"id",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"keyField",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"keyFieldInRelationshipTable",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"name",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"relatedTableId",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"relationshipTableId",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:u.read,write:u.write}})],d.prototype,"role",void 0),d=(0,r.Cg)([(0,a.$K)("esri.layers.support.Relationship")],d)},17311(e,t,i){i.d(t,{A:()=>h});var r=i(5482),s=i(69622),n=i(4576),o=i(60999),a=i(7762),l=i(16494),u=i(91429),d=i(30524),p=i(43668);const c=/<br\s*\/*>/gi;let h=class extends s.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,o.UT)(()=>(0,p.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??Promise.all([i.e(4560),i.e(9301)]).then(i.bind(i,99301)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new a.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const i=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(i.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:i,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(i,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const i=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of i){const i=t.split("."),r=this.fieldsIndex.get(i.at(-1)??"");r&&e.add(r.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const i of t){const t=this.fieldsIndex.get(i);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,i){const r=t.getObjectId()??t.attributes?.[e.objectIdField];return(await this.getTitles(e,[t],i)).get(r)??""}async getTitles(e,t,i){const r=new Map,s=i?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:n}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);i?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:o,workingTitle:a}=this,u=a&&o;t.forEach(t=>{const d=t.getObjectId()??t.attributes[e.objectIdField];let p=u?n({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:o,globalAttributes:this._createFormattedAttributes(e,t,s).global,layer:e,text:a}):"";i?.removeHTML&&(p=l.Nd.sanitize(p).replaceAll(c," ")),r.set(d,p)})}catch{}return r}async _checkAndReQueryGraphics(e,t){const i=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(n.Ru);if(i.length!==t.length)return t;if(t.some(e=>!(0,d.Kl)(e,this.requiredFields))){const r=e.createQuery();r.where="1=1",r.outFields=[...this.requiredFields],r.objectIds=i;const s=await e.queryFeatures(r);if(s?.features.length===t.length)return s.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const i of e){if(!i.fieldName)continue;const e=this.fieldsIndex.get(i.fieldName),r=e?.name??i.fieldName;i.fieldName=r,t.set(r.toLowerCase(),i)}return t}_createFormattedAttributes(e,t,i="system"){const r=this.effectivePopupTemplate?.fieldInfos??[],s={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const i=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{s[`expression/${e.name}`]=e.func({vars:{$feature:i}})}catch{}}const n={...t.attributes,...s};return{global:this._featureUtils.formatAttributes({fieldInfos:r,attributes:n,graphic:t,timeZone:i,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,d.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,r.Cg)([(0,u.MZ)({readOnly:!0})],h.prototype,"_arcadeTask",null),(0,r.Cg)([(0,u.MZ)()],h.prototype,"_featureUtils",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],h.prototype,"featureUtilsPromise",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],h.prototype,"calculatedExpressions",null),(0,r.Cg)([(0,u.MZ)()],h.prototype,"displayField",void 0),(0,r.Cg)([(0,u.MZ)()],h.prototype,"effectivePopupTemplate",void 0),(0,r.Cg)([(0,u.MZ)()],h.prototype,"expressionsUsedInTitle",null),(0,r.Cg)([(0,u.MZ)()],h.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,u.MZ)()],h.prototype,"fieldInfoMap",null),(0,r.Cg)([(0,u.MZ)()],h.prototype,"fields",void 0),(0,r.Cg)([(0,u.MZ)()],h.prototype,"objectIdField",void 0),(0,r.Cg)([(0,u.MZ)()],h.prototype,"requiredFields",null),h=(0,r.Cg)([(0,u.$K)("esri.layers.support.TitleCreator")],h)},77548(e,t,i){i.d(t,{Gh:()=>S,tk:()=>T,BR:()=>F,p2:()=>I,qd:()=>A,wI:()=>x,G$:()=>j,$x:()=>Z,Ov:()=>v,cM:()=>c,UC:()=>h,Qz:()=>y,OP:()=>_,TU:()=>b,F2:()=>g,XX:()=>m,Qi:()=>M,jy:()=>w});var r=i(70333),s=i(11254),n=i(7762),o=(i(84952),i(36563)),a=i(36708),l=i(4146);const u=new WeakMap;function d(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,a.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||d(t))},t=>u.set(e,t),a.pc),(0,o.hA)(()=>u.delete(e))]),u.get(e))}function p(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function c(e){return p(e,"knowledge-graph")&&"layers"in e}function h(e){return p(e,"knowledge-graph-sublayer")}function y(e){return p(e,"link-chart")&&"layers"in e}function g(e){return p(e,"subtype-group")&&"sublayers"in e}function f(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}i(16215);const m={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function b(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function v(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function M(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function w(e){return function(e){return p(e,"catalog-footprint")}(e)||function(e){return p(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return p(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function C(e){const t=e?.type;return"binning"===t||"cluster"===t}function I(e,t){if(!w(e))return;const i=t?.graphic,r="featureReduction"in e?e.featureReduction:null;if(i){if(i.isAggregate){const e=i.origin;return e&&"featureReductionProvider"in e&&r?C(r)?r:null:void 0}return e}return t?.checkFeatureReduction&&r?C(r)?r:null:e}async function x(e,t){const i=r.id?.findServerInfo(e);if(null!=i?.currentVersion)return i.owningSystemUrl||null;const n=e.toLowerCase().indexOf("/rest/services");if(-1===n)return null;const o=`${e.slice(0,n)}/rest/info`,a=null!=t?t.signal:null,{data:l}=await(0,s.A)(o,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function F(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"parquet":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function T(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function A(e){const t=new n.A;for(const i of e.allLayers.concat(e.allTables))d(i)||f(i)||"annotation-feature"===i.type||"dimension-feature"===i.type||("charts"in i&&t.push(i),"subtype-group"===i.type&&t.push(...i.sublayers));return t}function Z(e,t){return null}function j(e){return null}function _(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function S(e,t){if(!t||!_(e))return;const i=(e.url,null);i&&(e.url=i)}},5757(e,t,i){i.d(t,{B:()=>s});const r=Symbol("PopupTemplateInstance");function s(e){return null!=e&&"object"==typeof e&&r in e}i.d(t,["P",0,r])},98205(e,t,i){i.d(t,{KZ:()=>a,eh:()=>o,gf:()=>n,of:()=>s});const r=Symbol("SizeVariableInstance");function s(e){return null!=e&&"object"==typeof e&&r in e}function n(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function a(e,t){const i=t||o(e),r=e.valueUnit||"unknown";return"unknown"===i?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===r?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}i.d(t,["uY",0,r])},22671(e,t,i){i.d(t,{A:()=>b});var r,s=i(5482),n=i(52106),o=i(66552),a=i(25482),l=i(4718),u=i(91429),d=i(16930),p=i(60408),c=i(65864),h=i(50498),y=i(20437),g=i(36005),f=i(43937);const m=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=r=class extends a.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,i,r){if(e)return void m.write(e,t,i,r);const{features:s}=this;if(s)for(const e of s)if(null!=e?.geometry)return void m.write(e.geometry.type,t,i,r)}readQueryGeometry(e,t){if(!e)return null;const i=!!e.spatialReference,r=(0,c.rS)(e);return r&&!i&&t.spatialReference&&(r.spatialReference=d.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:i}=this;if(i)for(const e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,l.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 i=0;i<t.features.length;i++){const r=t.features[i];if(r.geometry){const t=e?.[i];r.geometry=t?.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,i],translate:[r,s]}=e,n=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-r)/t),e=>Math.round((s-e)/i));for(let e=0,t=n.length;e<t;e++)o?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:i}=this;if(!i)return this;const{translate:[r,s],scale:[n,o]}=i;let a=null,l=null;if(this.hasZ&&null!=i?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=i;a=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=i;l=i=>null==i?i:i*t+e}const u=this._getHydrationFunction(e,e=>e*n+r,e=>s-e*o,a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,i){const r=d.A.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){const n=e[t],o=i.fromJSON(n),a=n.geometry?.spatialReference;null==o.geometry||a||(o.geometry.spatialReference=r);const l=n.aggregateGeometries,u=o.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],i=l[e],s=i?.spatialReference;null==t||s||(t.spatialReference=r)}s.push(o)}return s}_quantizePoints(e,t,i){let r,s;const n=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=i(a[1]);e===r&&o===s||(n.push([e-r,o-s]),r=e,s=o)}else r=t(a[0]),s=i(a[1]),n.push([r,s])}return n.length>0?n:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,p.Bi)(e)?e.rings:e.paths,s=[];for(let e=0,n=r.length;e<n;e++){const n=r[e],o=this._quantizePoints(n,t,i);o&&s.push(o)}return s.length>0?((0,p.Bi)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,i);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,r,s){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,p.Bi)(e)?e.rings:e.paths;let o,a;for(let e=0,r=n.length;e<r;e++){const r=n[e];for(let e=0,s=r.length;e<s;e++){const s=r[e];e>0?(o+=s[0],a+=s[1]):(o=s[0],a=s[1]),s[0]=t(o),s[1]=i(a)}}if(r&&s)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2]),i[3]=s(i[3])}}else if(r)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2])}}else if(s)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=s(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let o,a;for(let e=0,r=n.length;e<r;e++){const r=n[e];e>0?(o+=r[0],a+=r[1]):(o=r[0],a=r[1]),r[0]=t(o),r[1]=i(a)}if(r&&s)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=r(t[2]),t[3]=s(t[3])}else if(r)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=r(t[2])}else if(s)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=s(t[2])}}:null}};(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,s.Cg)([(0,u.MZ)({type:[n.A],json:{write:!0}})],b.prototype,"features",void 0),(0,s.Cg)([(0,g.w)("features")],b.prototype,"readFeatures",null),(0,s.Cg)([(0,u.MZ)({type:[y.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,s.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],b.prototype,"geometryType",void 0),(0,s.Cg)([(0,f.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,s.Cg)([(0,u.MZ)({types:h.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,s.Cg)([(0,g.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,s.Cg)([(0,u.MZ)({type:d.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,s.Cg)([(0,f.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,s.Cg)([(0,u.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=r=(0,s.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},16215(e,t,i){i.d(t,{S:()=>s});const r=Symbol("BasemapInstance");function s(e){return null!=e&&"object"==typeof e&&r in e}i.d(t,["Y",0,r])},20816(e,t,i){i.d(t,{We:()=>a,ZJ:()=>l,w5:()=>u});var r=i(11254);const s=(0,i(13069).vD)(),n=new Map,o=new Map;async function a(e,t,i){if(!e||!i)return!1;if(!t)return!0;const s=new URL(e).host;let o=n.get(s);if(!o){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");o=(await(0,r.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return o===t}async function l(e,t,r=!1){if(!e||!t)return!0;const n=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),a=o.get(n)?.entries();if(a)for(const[e,o]of a)if(o.name===t){const t=!o.stack?.hasForwardEdits();if(!t&&r){const[{deleteForwardEdits:t},{default:r}]=await Promise.all([i.e(2186).then(i.bind(i,32186)),i.e(2558).then(i.bind(i,32558))]),a=await t(n,e,new r({sessionId:s,moment:o.moment}));return a.success&&o.stack?.clearForwardEdits(),a.success}return t}return!0}function u(e,t){if(!e)return!1;const i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=o.get(i)?.entries();if(r)for(const[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map,i.d(t,["TA",0,s,"Z3",0,n])}}]);