@arcgis/core 4.28.0-next.20230818 → 4.28.0-next.20230821

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 (200) hide show
  1. package/arcade/functions/centroid.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/003744a45b07865f1be9.js +1 -0
  4. package/assets/esri/core/workers/chunks/034accc7cab6c88a3b31.js +1 -0
  5. package/assets/esri/core/workers/chunks/05ab09713d599687afa3.js +1 -0
  6. package/assets/esri/core/workers/chunks/{3724f23b6f5ac8ec2568.js → 12b8fe0374fa9ab4ca09.js} +1 -1
  7. package/assets/esri/core/workers/chunks/16d1a72014074e87ecb9.js +1 -0
  8. package/assets/esri/core/workers/chunks/{e4b6565c16430b28ad93.js → 19857e5420cdf23c5f2e.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{1a804dea42c0fb5e5c07.js → 1bab408eaffd2c18976d.js} +1 -1
  10. package/assets/esri/core/workers/chunks/201365f53509e3f78e17.js +1 -0
  11. package/assets/esri/core/workers/chunks/{2031451b82ff70fb201a.js → 2f48f4a9a0a056ac5e1c.js} +1 -1
  12. package/assets/esri/core/workers/chunks/318b51fdee09c1fd750f.js +1 -0
  13. package/assets/esri/core/workers/chunks/{5b799dc155adeb728c74.js → 3361e3e8385f8de8820c.js} +1 -1
  14. package/assets/esri/core/workers/chunks/3ce1870c28ab6ac3648e.js +1 -0
  15. package/assets/esri/core/workers/chunks/41929e4531787389804b.js +1 -0
  16. package/assets/esri/core/workers/chunks/{55ac725127c5ea9fb942.js → 4e39252f40bc57be9d12.js} +1 -1
  17. package/assets/esri/core/workers/chunks/4e496b03ce24b1206f86.js +1 -0
  18. package/assets/esri/core/workers/chunks/{ee5f17c1790dc07f9d9e.js → 50455c84131b634ca6b4.js} +1 -1
  19. package/assets/esri/core/workers/chunks/54513578f735d274a20e.js +1 -0
  20. package/assets/esri/core/workers/chunks/{d46f8ef92e79d12384c9.js → 587437526ea77f764986.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{ab720e2f0a35138564b2.js → 5ffabd1a90c5b08109aa.js} +1 -1
  22. package/assets/esri/core/workers/chunks/6108d72faf48a592c8ba.js +1 -0
  23. package/assets/esri/core/workers/chunks/6479439afae01f9bb5e6.js +1 -0
  24. package/assets/esri/core/workers/chunks/69306dfc89e877539223.js +1 -0
  25. package/assets/esri/core/workers/chunks/6db4a6f9d25691830829.js +1 -0
  26. package/assets/esri/core/workers/chunks/{61393fd3376ea599a447.js → 76e27cece1559ae815df.js} +1 -1
  27. package/assets/esri/core/workers/chunks/81526909c0fa11639038.js +1 -0
  28. package/assets/esri/core/workers/chunks/873111ddf4813cdd4903.js +1 -0
  29. package/assets/esri/core/workers/chunks/8d4f1170394a8be15da9.js +1 -0
  30. package/assets/esri/core/workers/chunks/8d8bdfda09c24e363f78.js +1 -0
  31. package/assets/esri/core/workers/chunks/9b54b5bdb6367c36f6e9.js +1 -0
  32. package/assets/esri/core/workers/chunks/b2752e038c5fa3c21e49.js +1 -0
  33. package/assets/esri/core/workers/chunks/{dd3b7cfc6f78552249a4.js → b78dc6cbe14e5817b4d9.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{e31d0c7363cbceeb5ac9.js → c35b850fbfcb28133235.js} +1 -1
  35. package/assets/esri/core/workers/chunks/c83e1be4ee64320cf2fe.js +1 -0
  36. package/assets/esri/core/workers/chunks/c88869d2a647c22dc3e6.js +1 -0
  37. package/assets/esri/core/workers/chunks/cb0a5bc6deaa98026bb5.js +1 -0
  38. package/assets/esri/core/workers/chunks/{767467738aeabec14abd.js → d0c4367a197b193e95d4.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{f113141e254505116b82.js → d1cc2c050423595e54e0.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{7f34945036495ad7c3f8.js → d2a8bf2d090b94cb294b.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{08af7f7f1950a59a8e47.js → d6c96a20e9640b433719.js} +4 -4
  42. package/assets/esri/core/workers/chunks/da5453e67d00ff546640.js +1 -0
  43. package/assets/esri/core/workers/chunks/daa79c14150c12d8bc3d.js +1 -0
  44. package/assets/esri/core/workers/chunks/ef03b78659c72de93076.js +1 -0
  45. package/assets/esri/core/workers/chunks/{c3cace5b25b5170228ba.js → f2fe89b6ac6bf6817e71.js} +1 -1
  46. package/assets/esri/core/workers/chunks/f3554627664a419e00fa.js +1 -0
  47. package/assets/esri/themes/base/_core.scss +2 -0
  48. package/assets/esri/themes/base/widgets/_DirectionalPad.scss +76 -0
  49. package/assets/esri/themes/base/widgets/_Editor.scss +65 -4
  50. package/assets/esri/themes/base/widgets/_UtilityNetworkAssociations.scss +97 -39
  51. package/assets/esri/themes/dark/main.css +1 -1
  52. package/assets/esri/themes/light/main.css +1 -1
  53. package/assets/esri/themes/light/view.css +1 -1
  54. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad.json +1 -0
  55. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_en.json +1 -0
  56. package/assets/esri/widgets/Editor/t9n/Editor.json +1 -1
  57. package/assets/esri/widgets/Editor/t9n/Editor_en.json +1 -1
  58. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-caps/butt.png +0 -0
  59. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-caps/round.png +0 -0
  60. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-caps/square.png +0 -0
  61. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/dash-dot.png +0 -0
  62. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/dash.png +0 -0
  63. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/dot.png +0 -0
  64. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/long-dash-dot-dot.png +0 -0
  65. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/long-dash-dot.png +0 -0
  66. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/long-dash.png +0 -0
  67. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/short-dash-dot-dot.png +0 -0
  68. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/short-dash-dot.png +0 -0
  69. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/short-dash.png +0 -0
  70. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/short-dot.png +0 -0
  71. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/solid.png +0 -0
  72. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations.json +1 -1
  73. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_en.json +1 -1
  74. package/chunks/HighlightBlur.glsl.js +3 -3
  75. package/chunks/HighlightDownsample.glsl.js +24 -6
  76. package/chunks/SSAO.glsl.js +2 -2
  77. package/core/timeUtils.js +1 -1
  78. package/interfaces.d.ts +182 -2
  79. package/intl/date.js +1 -1
  80. package/layers/FeatureLayer.js +1 -1
  81. package/layers/ImageryLayer.js +1 -1
  82. package/layers/ImageryTileLayer.js +1 -1
  83. package/layers/StreamLayer.js +1 -1
  84. package/layers/SubtypeGroupLayer.js +1 -1
  85. package/layers/VoxelWasmPerSceneView.js +1 -1
  86. package/layers/graphics/sources/support/uploads.js +1 -1
  87. package/layers/mixins/ArcGISImageService.js +1 -1
  88. package/layers/mixins/ImageryTileMixin.js +1 -1
  89. package/layers/save/featureLayerUtils.js +1 -1
  90. package/layers/save/imageryUtils.js +1 -1
  91. package/layers/save/streamLayerUtils.js +1 -1
  92. package/libs/maquette-advanced-projector/utils.js +1 -1
  93. package/package.json +1 -1
  94. package/popup/support/FieldInfoFormat.js +1 -1
  95. package/portal/PortalItem.js +1 -1
  96. package/support/revision.js +1 -1
  97. package/views/2d/navigation/MapViewNavigation.js +1 -1
  98. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  99. package/views/3d/externalRenderers/ExternalRendererStore.js +1 -1
  100. package/views/3d/layers/i3s/PointRenderer.js +1 -1
  101. package/views/3d/support/LaserLineRenderer.js +1 -1
  102. package/views/3d/terrain/OverlayRenderer.js +1 -1
  103. package/views/3d/terrain/TerrainRenderer.js +1 -1
  104. package/views/3d/terrain/TerrainSurface.js +1 -1
  105. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  106. package/views/3d/webgl-engine/effects/RenderPlugin.js +1 -1
  107. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  108. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  109. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  110. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  111. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  112. package/views/3d/webgl-engine/lib/GLMaterialRepository.js +1 -1
  113. package/views/3d/webgl-engine/lib/GLMaterials.js +1 -1
  114. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  115. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  116. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  117. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  118. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  119. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  120. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  121. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  122. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  123. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  124. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  125. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  126. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  127. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  128. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  129. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  130. package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
  131. package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
  132. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  133. package/views/3d/webgl-engine/shaders/HighlightDownsample.glsl.js +1 -1
  134. package/views/draw/DrawGraphicTool.js +1 -1
  135. package/views/draw/DrawOperation.js +1 -1
  136. package/views/interactive/sketch/constraints.js +1 -1
  137. package/views/interactive/sketch/normalizedPoint.js +1 -1
  138. package/views/interactive/snapping/SnappingManager.js +1 -1
  139. package/views/interactive/snapping/candidates/IntersectionSnappingCandidate.js +1 -1
  140. package/views/interactive/tooltip/TooltipEditableField.js +1 -1
  141. package/views/interactive/tooltip/TooltipEditableFieldAngle.js +1 -1
  142. package/views/interactive/tooltip/constraintUtils.js +5 -0
  143. package/views/support/angularMeasurementUtils.js +1 -1
  144. package/widgets/Compass/CompassViewModel.js +1 -1
  145. package/widgets/Compass/utils.js +5 -0
  146. package/widgets/DirectionalPad/DirectionalPadViewModel.d.ts +4 -0
  147. package/widgets/DirectionalPad/DirectionalPadViewModel.js +5 -0
  148. package/widgets/DirectionalPad/VisibleElements.js +5 -0
  149. package/widgets/DirectionalPad/constants.js +5 -0
  150. package/widgets/DirectionalPad/css.js +5 -0
  151. package/widgets/DirectionalPad/utils.js +5 -0
  152. package/widgets/DirectionalPad.d.ts +4 -0
  153. package/widgets/DirectionalPad.js +5 -0
  154. package/widgets/Editor/EditorViewModel.js +1 -1
  155. package/widgets/Editor/Upload.js +1 -1
  156. package/widgets/Editor/components/CreateFeaturesPanelContent.js +1 -1
  157. package/widgets/Editor/components/UploadDetails.js +1 -1
  158. package/widgets/Editor/modelUploadUtils.js +1 -1
  159. package/widgets/Editor.js +1 -1
  160. package/widgets/ElevationProfile/support/chartUtils.js +1 -1
  161. package/widgets/ElevationProfile.js +1 -1
  162. package/widgets/Feature/FeatureViewModel.js +1 -1
  163. package/widgets/Feature/support/featureUtils.js +1 -1
  164. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  165. package/widgets/FeatureForm/FieldInput.js +1 -1
  166. package/widgets/FeatureForm/FormExpressionsManager.js +1 -1
  167. package/widgets/FeatureForm/InputBase.js +1 -1
  168. package/widgets/FeatureForm.js +1 -1
  169. package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsLineSymbolPicker.js +5 -0
  170. package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
  171. package/widgets/UtilityNetworkAssociations/VisibleElements.js +5 -0
  172. package/widgets/UtilityNetworkAssociations/VisibleElementsSettingsPane.js +5 -0
  173. package/widgets/UtilityNetworkAssociations.js +1 -1
  174. package/assets/esri/core/workers/chunks/11abbbf97093b55e2417.js +0 -1
  175. package/assets/esri/core/workers/chunks/1b2a081f2c3b97ba7e00.js +0 -1
  176. package/assets/esri/core/workers/chunks/235f333177ed7ea21e01.js +0 -1
  177. package/assets/esri/core/workers/chunks/3725dd14c2da0f47198f.js +0 -1
  178. package/assets/esri/core/workers/chunks/39467e1da18924cfb9b6.js +0 -1
  179. package/assets/esri/core/workers/chunks/42595c4870c673ed451c.js +0 -1
  180. package/assets/esri/core/workers/chunks/481cdd2a4bc40c6fef66.js +0 -1
  181. package/assets/esri/core/workers/chunks/54893132e70c515ea7e3.js +0 -1
  182. package/assets/esri/core/workers/chunks/6509a4198972b323d9b6.js +0 -1
  183. package/assets/esri/core/workers/chunks/68598d2806d4aa3d8acc.js +0 -1
  184. package/assets/esri/core/workers/chunks/718d2e8ea61f3b7b70c5.js +0 -1
  185. package/assets/esri/core/workers/chunks/7bce4b5eec630ef57f1e.js +0 -1
  186. package/assets/esri/core/workers/chunks/81df7304f97d1fc3ba16.js +0 -1
  187. package/assets/esri/core/workers/chunks/8706dc9f852df9b2095d.js +0 -1
  188. package/assets/esri/core/workers/chunks/8ef26aac0fe7feb8c324.js +0 -1
  189. package/assets/esri/core/workers/chunks/91e61da22f258d9e86c5.js +0 -1
  190. package/assets/esri/core/workers/chunks/9f039bf79b34d8fd75ae.js +0 -1
  191. package/assets/esri/core/workers/chunks/a1f3352301472e4b8956.js +0 -1
  192. package/assets/esri/core/workers/chunks/a20fd9e7db37b3c3b041.js +0 -1
  193. package/assets/esri/core/workers/chunks/aa83dce42d64034a0a13.js +0 -1
  194. package/assets/esri/core/workers/chunks/c8c8471b59700914ee9d.js +0 -1
  195. package/assets/esri/core/workers/chunks/cdcf0a5e05283d37b3ac.js +0 -1
  196. package/assets/esri/core/workers/chunks/d4f9106bf2ea5d66d96a.js +0 -1
  197. package/assets/esri/core/workers/chunks/e6bfbc4347fa13db4df2.js +0 -1
  198. package/assets/esri/core/workers/chunks/f1d5487f2d828fb142ba.js +0 -1
  199. package/assets/esri/core/workers/chunks/f97f165d05439e668e05.js +0 -1
  200. package/assets/esri/core/workers/chunks/fe973d8155c22d73a4f9.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1054,5732],{92835:(e,t,r)=>{r.d(t,{Z:()=>p});var o,n=r(43697),s=r(96674),i=r(35463),a=r(5600),l=(r(75215),r(67676),r(80442),r(71715)),u=r(52011),h=r(30556);let d=o=class extends s.wq{static get allTime(){return c}static get empty(){return m}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(o.allTime)}get isEmpty(){return this.equals(o.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new o({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,o=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===o&&r===n}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,i.JE)(r,e,t));let n=this.end;if(n){const r=(0,i.JE)(n,e,t);n=n.getTime()===r.getTime()?r:(0,i.Nm)(r,1,e,t)}return new o({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return o.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let i,a;if(n>=t&&n<=r?i=n:t>=n&&t<=s&&(i=t),r>=n&&r<=s?a=r:s>=t&&s<=r&&(a=s),null!=i&&null!=a&&!isNaN(i)&&!isNaN(a)){const e=new o;return e.start=i===-1/0?null:new Date(i),e.end=a===1/0?null:new Date(a),e}return o.empty}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime)return this.clone();const n=new o,{start:s,end:a}=this;return null!=s&&(n.start=(0,i.Nm)(s,e,t,r)),null!=a&&(n.end=(0,i.Nm)(a,e,t,r)),n}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return c.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new o({start:t,end:r})}};(0,n._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,n._)([(0,l.r)("end")],d.prototype,"readEnd",null),(0,n._)([(0,h.c)("end")],d.prototype,"writeEnd",null),(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,n._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,n._)([(0,l.r)("start")],d.prototype,"readStart",null),(0,n._)([(0,h.c)("start")],d.prototype,"writeStart",null),d=o=(0,n._)([(0,u.j)("esri.TimeExtent")],d);const c=new d,m=new d({start:void 0,end:void 0}),p=d},5732:(e,t,r)=>{r.d(t,{c:()=>o,g:()=>n});var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},25929:(e,t,r)=>{r.d(t,{M:()=>p,a:()=>f,e:()=>c,f:()=>n,i:()=>h,p:()=>d,r:()=>i,t:()=>s,w:()=>a});var o=r(17452);function n(e,t){const r=t&&t.url&&t.url.path;if(e&&r&&(e=(0,o.hF)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,o.PF)(e,t.portalItem.itemUrl);null!=r&&u.test(r)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return m(e,t&&t.portal)}function s(e,t,r=p.YES){if(null==e)return e;!(0,o.YP)(e)&&t&&t.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let n=(0,o.hF)(e);if(t){const r=t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.rootPath||t.url&&t.url.path;if(r){const s=m(r,t.portal),i=m(n,t.portal);n=(0,o.PF)(i,s,s),null!=n&&n!==i&&n!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=c(n,t?.portal),(0,o.YP)(n)&&(n=(0,o.Fv)(n)),t?.resources&&t?.portalItem&&!(0,o.YP)(n)&&!(0,o.HK)(n)&&r===p.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n),compress:!1}),n}function i(e,t,r){return n(e,r)}function a(e,t,r,o){const n=s(e,o);void 0!==n&&(t[r]=n)}const l=/\/items\/([^\/]+)\/resources\/(.*)/,u=/^\.\/resources\//;function h(e){const t=e?.match(l)??null;return t?.[1]??null}function d(e){const t=e?.match(l)??null;if(null==t)return null;const r=t[2],n=r.lastIndexOf("/");if(-1===n){const{path:e,extension:t}=(0,o.fZ)(r);return{prefix:null,filename:e,extension:t}}const{path:s,extension:i}=(0,o.fZ)(r.slice(n+1));return{prefix:r.slice(0,n),filename:s,extension:i}}function c(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,o.Ie)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function m(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,n=(0,o.TI)();return(0,o.D6)(n,`${n.scheme}://${r}`)?(0,o.Ie)(e,t.portalHostname,r):(0,o.Ie)(e,r,t.portalHostname)}var p,y;(y=p||(p={}))[y.YES=0]="YES",y[y.NO=1]="NO";const f=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return p},ensureMainOnlineDomain:c,fromJSON:n,itemIdFromResourceUrl:h,prefixAndFilenameFromResourceUrl:d,read:i,toJSON:s,write:a},Symbol.toStringTag,{value:"Module"}))},10699:(e,t,r)=>{r.d(t,{IG:()=>i,iv:()=>a});var o=r(43697),n=r(52011);let s=0;const i=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return t=(0,o._)([(0,n.j)("esri.core.Identifiable")],t),t},a=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return t=(0,o._)([(0,n.j)("esri.core.NumericIdentifiable")],t),t};let l=class extends(i(class{})){};l=(0,o._)([(0,n.j)("esri.core.Identifiable")],l)},35463:(e,t,r)=>{r.d(t,{JE:()=>a,Nm:()=>i,rJ:()=>l});var o=r(90344),n=r(17126);const s={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function i(e,t,r,o="system"){const s=h(o),i=n.ou.fromJSDate(e,{zone:s}),a="decades"===r||"centuries"===r?"year":u(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),i.plus({[a]:t}).toJSDate()}function a(e,t,r="system"){const o=h(r),s=n.ou.fromJSDate(e,{zone:o});if("decades"===t||"centuries"===t){const e=s.startOf("year"),{year:r}=e,o=r-r%("decades"===t?10:100);return e.set({year:o}).toJSDate()}const i=u(t);return s.startOf(i).toJSDate()}function l(e,t,r){return 0===e?0:e*s[t]/s[r]}function u(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"}}function h(e){const t=(0,o.f1)(e);return t?new n.vF(t):n.Oh.instance}},90344:(e,t,r)=>{r.d(t,{LJ:()=>T,Xr:()=>g,Ze:()=>_,cZ:()=>u,f1:()=>D,i$:()=>C,o8:()=>S,p6:()=>I});var o=r(35454),n=r(70171),s=r(17126);const i={year:void 0,month:void 0,day:void 0,weekday:void 0},a={hour:void 0,minute:void 0,second:void 0},l={timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},u={timeZone:"Etc/UTC"},h={year:"numeric",month:"numeric",day:"numeric"},d={year:"numeric",month:"long",day:"numeric"},c={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},p={hour:"numeric",minute:"numeric"},y={...p,second:"numeric"},f={"short-date":h,"short-date-short-time":{...h,...p},"short-date-short-time-24":{...h,...p,hour12:!1},"short-date-long-time":{...h,...y},"short-date-long-time-24":{...h,...y,hour12:!1},"short-date-le":h,"short-date-le-short-time":{...h,...p},"short-date-le-short-time-24":{...h,...p,hour12:!1},"short-date-le-long-time":{...h,...y},"short-date-le-long-time-24":{...h,...y,hour12:!1},"long-month-day-year":d,"long-month-day-year-short-time":{...d,...p},"long-month-day-year-short-time-24":{...d,...p,hour12:!1},"long-month-day-year-long-time":{...d,...y},"long-month-day-year-long-time-24":{...d,...y,hour12:!1},"day-short-month-year":c,"day-short-month-year-short-time":{...c,...p},"day-short-month-year-short-time-24":{...c,...p,hour12:!1},"day-short-month-year-long-time":{...c,...y},"day-short-month-year-long-time-24":{...c,...y,hour12:!1},"long-date":m,"long-date-short-time":{...m,...p},"long-date-short-time-24":{...m,...p,hour12:!1},"long-date-long-time":{...m,...y},"long-date-long-time-24":{...m,...y,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":p,"long-time":y},g=(0,o.w)()({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"}),v={ar:"ar-u-nu-latn-ca-gregory"};let b=new WeakMap;const w=f["short-date-short-time"];function _(e){return f[e]}function I(e,t=w){return function(e){let t=b.get(e);if(!t){const r=(0,n.Kd)(),o=v[r]||r,s=D(e.timeZone??"system"),i={...e,timeZone:s};t=new Intl.DateTimeFormat(o,i),b.set(e,t)}return t}(t).format(e)}function S(e,t=w){return I(new Date(e),{...t,...u,...a})}function T(e,t=w){return I(new Date(`1970-01-01T${e}Z`),{...t,...u,...i})}function C(e,t=w){const r=s.ou.fromISO(e,{setZone:!0}),o=(0,n.Kd)(),i=v[o]??o;return r.toLocaleString({...l,...t},{locale:i})}function D(e){switch(e){case"system":return;case"unknown":return"UTC";default:return e}}(0,n.Ze)((()=>{b=new WeakMap}))},3723:(e,t,r)=>{r.r(t),r.d(t,{default:()=>L});var o=r(43697),n=r(68773),s=r(3172),i=(r(9790),r(16453)),a=r(95330),l=r(17452),u=r(5600),h=(r(75215),r(67676),r(80442),r(71715)),d=r(52011),c=r(6570),m=r(8744),p=r(87085),y=r(71612),f=r(38009),g=r(16859),v=r(34760),b=r(72965),w=r(21506),_=r(89164),I=r(4095),S=r(37898),T=r(77987),C=r(20256);const D=["atom","xml"],P={base:_.Z,key:"type",typeMap:{"simple-line":I.Z},errorContext:"symbol"},E={base:_.Z,key:"type",typeMap:{"picture-marker":S.Z,"simple-marker":T.Z},errorContext:"symbol"},U={base:_.Z,key:"type",typeMap:{"simple-fill":C.Z},errorContext:"symbol"};let Z=class extends((0,y.h)((0,v.Q)((0,f.q)((0,g.I)((0,b.M)((0,i.R)(p.Z))))))){constructor(...e){super(...e),this.description=null,this.fullExtent=null,this.legendEnabled=!0,this.lineSymbol=null,this.pointSymbol=null,this.polygonSymbol=null,this.operationalLayerType="GeoRSS",this.url=null,this.type="geo-rss"}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readFeatureCollections(e,t){return t.featureCollection.layers.forEach((e=>{const t=e.layerDefinition.drawingInfo.renderer.symbol;t&&"esriSFS"===t.type&&t.outline?.style.includes("esriSFS")&&(t.outline.style="esriSLSSolid")})),t.featureCollection.layers}get hasPoints(){return this._hasGeometry("esriGeometryPoint")}get hasPolylines(){return this._hasGeometry("esriGeometryPolyline")}get hasPolygons(){return this._hasGeometry("esriGeometryPolygon")}get title(){const e=this._get("title");return e&&"defaults"!==this.originOf("title")?e:this.url?(0,l.vt)(this.url,D)||"GeoRSS":e||""}set title(e){this._set("title",e)}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service","Feature Service","Feature Collection","Scene Service"]},e).catch(a.r9).then((()=>this._fetchService(t))).then((e=>{this.read(e,{origin:"service"})}))),Promise.resolve(this)}async hasDataChanged(){const e=await this._fetchService();return this.read(e,{origin:"service",ignoreDefaults:!0}),!0}async _fetchService(e){const t=this.spatialReference,{data:r}=await(0,s.Z)(n.default.geoRSSServiceUrl,{query:{url:this.url,refresh:!!this.loaded||void 0,outSR:(0,m.oR)(t)?void 0:t.wkid??JSON.stringify(t)},signal:e});return r}_hasGeometry(e){return this.featureCollections?.some((t=>t.featureSet?.geometryType===e&&t.featureSet.features?.length>0))??!1}};(0,o._)([(0,u.Cb)()],Z.prototype,"description",void 0),(0,o._)([(0,u.Cb)()],Z.prototype,"featureCollections",void 0),(0,o._)([(0,h.r)("service","featureCollections",["featureCollection.layers"])],Z.prototype,"readFeatureCollections",null),(0,o._)([(0,u.Cb)({type:c.Z,json:{name:"lookAtExtent"}})],Z.prototype,"fullExtent",void 0),(0,o._)([(0,u.Cb)(w.id)],Z.prototype,"id",void 0),(0,o._)([(0,u.Cb)(w.rn)],Z.prototype,"legendEnabled",void 0),(0,o._)([(0,u.Cb)({types:P,json:{write:!0}})],Z.prototype,"lineSymbol",void 0),(0,o._)([(0,u.Cb)({type:["show","hide"]})],Z.prototype,"listMode",void 0),(0,o._)([(0,u.Cb)({types:E,json:{write:!0}})],Z.prototype,"pointSymbol",void 0),(0,o._)([(0,u.Cb)({types:U,json:{write:!0}})],Z.prototype,"polygonSymbol",void 0),(0,o._)([(0,u.Cb)({type:["GeoRSS"]})],Z.prototype,"operationalLayerType",void 0),(0,o._)([(0,u.Cb)(w.HQ)],Z.prototype,"url",void 0),(0,o._)([(0,u.Cb)({json:{origins:{service:{read:{source:"name",reader:e=>e||void 0}}}}})],Z.prototype,"title",null),(0,o._)([(0,u.Cb)({readOnly:!0,json:{read:!1},value:"geo-rss"})],Z.prototype,"type",void 0),Z=(0,o._)([(0,d.j)("esri.layers.GeoRSSLayer")],Z);const L=Z},87085:(e,t,r)=>{r.d(t,{Z:()=>b});var o=r(43697),n=(r(66577),r(3172)),s=r(20102),i=r(32448),a=r(10699),l=r(83379),u=r(92604),h=r(95330),d=r(17452),c=r(5600),m=(r(75215),r(67676),r(80442),r(52011)),p=r(68773),y=r(6570),f=r(82971);let g=0,v=class extends(i.Z.EventedMixin((0,a.IG)(l.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.Z(-180,-90,180,90,f.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(3529).then(r.bind(r,63529))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:o}=await r.e(8008).then(r.bind(r,28008));try{return await o(t)}catch(e){const r=t&&t.portalItem,o=r&&r.id||"unset",n=r&&r.portal&&r.portal.url||p.default.portalUrl;throw u.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+o+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,h.D_)(e)||u.Z.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,d.mN)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.Z)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,o._)([(0,c.Cb)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,o._)([(0,c.Cb)({type:y.Z})],v.prototype,"fullExtent",void 0),(0,o._)([(0,c.Cb)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,o._)([(0,c.Cb)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,o._)([(0,c.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,o._)([(0,c.Cb)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,o._)([(0,c.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,o._)([(0,c.Cb)({clonable:!1})],v.prototype,"parent",void 0),(0,o._)([(0,c.Cb)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,o._)([(0,c.Cb)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,o._)([(0,c.Cb)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,o._)([(0,c.Cb)({type:f.Z})],v.prototype,"spatialReference",void 0),(0,o._)([(0,c.Cb)({type:String})],v.prototype,"title",void 0),(0,o._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,o._)([(0,c.Cb)()],v.prototype,"url",void 0),(0,o._)([(0,c.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,o._)([(0,m.j)("esri.layers.Layer")],v);const b=v},16859:(e,t,r)=>{r.d(t,{I:()=>I});var o=r(43697),n=r(68773),s=r(40330),i=r(3172),a=r(66643),l=r(20102),u=r(92604),h=r(70586),d=r(95330),c=r(17452),m=r(5600),p=(r(75215),r(67676),r(80442),r(71715)),y=r(52011),f=r(30556),g=r(84230),v=r(48522),b=r(15235),w=r(86082),_=r(14661);const I=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,h.SC)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new b.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const{load:o}=await r.e(8062).then(r.bind(r,18062));return(0,d.k_)(t),await o({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,d.D_)(e)||u.Z.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,d.r9)(e),!0))))}async setUserPrivileges(e,t){if(!n.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:o},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",o),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,d.r9)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const o=e===r.id;if(o&&r.portal.user)return(0,_.Ss)(r);let n,i;if(o)n=r.portal.url;else try{n=await(0,g.oP)(this.url,t)}catch(e){(0,d.r9)(e)}if(!n||!(0,c.Zo)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;i=await(s.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.r9)(e)}if(!i)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(o?await r.reload():(r=new b.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return(0,_.Ss)(r)}catch(e){(0,d.r9)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.r9)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=r,null==r||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const o=`${r.owningSystemUrl}/sharing/rest`,n=v.Z.getDefault();if(n&&n.loaded&&(0,c.Fv)(n.restUrl)===(0,c.Fv)(o))return n.user;const l=`${o}/community/self`,u=null!=e?e.signal:null,h=await(0,a.q6)((0,i.Z)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?w.Z.fromJSON(h.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,o=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||v.Z.getDefault());return r&&o&&!(0,c.tm)(o.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,o._)([(0,m.Cb)({type:b.default})],t.prototype,"portalItem",null),(0,o._)([(0,p.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,o._)([(0,f.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,o._)([(0,m.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,o._)([(0,m.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,o._)([(0,m.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,o._)([(0,m.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,o._)([(0,y.j)("esri.layers.mixins.PortalLayer")],t),t},S={credential:null,user:null}},34760:(e,t,r)=>{r.d(t,{Q:()=>g});var o=r(43697),n=r(92604),s=r(95330),i=r(5600),a=r(90578),l=(r(67676),r(80442),r(52011)),u=r(46791),h=(r(66643),r(20102),r(26258),r(87538));const d=new u.Z,c=new WeakMap;function m(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:m(t,e%t):0}let p=0,y=0;function f(){const e=Date.now();let t=!1;for(const r of d){const o=r.deref();o?o.refreshInterval&&e-(c.get(o)??0)+5>=6e4*o.refreshInterval&&(c.set(o,e),o.refresh(e)):t=!0}if(t)for(let e=d.length-1;e>=0;e--)d.at(e).deref()||d.removeAt(e)}(0,h.EH)((()=>{const e=Date.now();let t=0;for(const r of d){const o=r.deref();o&&(t=m(Math.round(6e4*o.refreshInterval),t),o.refreshInterval?c.get(o)||c.set(o,e):c.delete(o))}if(t!==y){if(y=t,clearInterval(p),0===y)return void(p=0);p=setInterval(f,y)}}));const g=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,s.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{this.destroyed||function(e){(function(e){return null!=e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e})(e)&&d.push(new WeakRef(e))}(this)}),(()=>{}))}destroy(){!function(e){const t=d.find((t=>t.deref()===e));t&&d.remove(t)}(this)}castRefreshInterval(e){return e>=.1?e:e<=0?0:.1}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,s.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{n.Z.getLogger(this).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}get test(){const e=this;return{set refreshInterval(t){e._set("refreshInterval",t)}}}};return(0,o._)([(0,i.Cb)({type:Number,json:{write:!0}})],t.prototype,"refreshInterval",void 0),(0,o._)([(0,a.p)("refreshInterval")],t.prototype,"castRefreshInterval",null),(0,o._)([(0,i.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,o._)([(0,i.Cb)({readOnly:!0})],t.prototype,"refreshParameters",null),t=(0,o._)([(0,l.j)("esri.layers.mixins.RefreshableLayer")],t),t}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4828,5732],{92835:(t,e,n)=>{n.d(e,{Z:()=>p});var r,o=n(43697),i=n(96674),s=n(35463),a=n(5600),l=(n(75215),n(67676),n(80442),n(71715)),u=n(52011),c=n(30556);let h=r=class extends i.wq{static get allTime(){return d}static get empty(){return m}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,n=this.end?.getTime()??this.end,r=t.start?.getTime()??t.start,o=t.end?.getTime()??t.end;return e===r&&n===o}expandTo(t,e="system"){if(this.isEmpty||this.isAllTime)return this.clone();let n=this.start;n&&(n=(0,s.JE)(n,t,e));let o=this.end;if(o){const n=(0,s.JE)(o,t,e);o=o.getTime()===n.getTime()?n:(0,s.Nm)(n,1,t,e)}return new r({start:n,end:o})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return r.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,n=this.end?.getTime()??1/0,o=t.start?.getTime()??-1/0,i=t.end?.getTime()??1/0;let s,a;if(o>=e&&o<=n?s=o:e>=o&&e<=i&&(s=e),n>=o&&n<=i?a=n:i>=e&&i<=n&&(a=i),null!=s&&null!=a&&!isNaN(s)&&!isNaN(a)){const t=new r;return t.start=s===-1/0?null:new Date(s),t.end=a===1/0?null:new Date(a),t}return r.empty}offset(t,e,n="system"){if(this.isEmpty||this.isAllTime)return this.clone();const o=new r,{start:i,end:a}=this;return null!=i&&(o.start=(0,s.Nm)(i,t,e,n)),null!=a&&(o.end=(0,s.Nm)(a,t,e,n)),o}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return d.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,n=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new r({start:e,end:n})}};(0,o._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,o._)([(0,l.r)("end")],h.prototype,"readEnd",null),(0,o._)([(0,c.c)("end")],h.prototype,"writeEnd",null),(0,o._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,o._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,o._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,o._)([(0,l.r)("start")],h.prototype,"readStart",null),(0,o._)([(0,c.c)("start")],h.prototype,"writeStart",null),h=r=(0,o._)([(0,u.j)("esri.TimeExtent")],h);const d=new h,m=new h({start:void 0,end:void 0}),p=h},5732:(t,e,n)=>{n.d(e,{c:()=>r,g:()=>o});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},21787:(t,e,n)=>{n.d(e,{b:()=>l,c:()=>i,d:()=>c,e:()=>a,f:()=>o,i:()=>d,m:()=>u,t:()=>s});var r=n(46851);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function i(t,e,n,r,o,i,s,a,l,u){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=i,t[5]=s,t[6]=a,t[7]=l,t[8]=u,t}function s(t,e){if(t===e){const n=e[1],r=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=o}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function a(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],l=e[6],u=e[7],c=e[8],h=c*s-a*u,d=-c*i+a*l,m=u*i-s*l;let p=n*h+r*d+o*m;return p?(p=1/p,t[0]=h*p,t[1]=(-c*r+o*u)*p,t[2]=(a*r-o*s)*p,t[3]=d*p,t[4]=(c*n-o*l)*p,t[5]=(-a*n+o*i)*p,t[6]=m*p,t[7]=(-u*n+r*l)*p,t[8]=(s*n-r*i)*p,t):null}function l(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],l=e[6],u=e[7],c=e[8];return t[0]=s*c-a*u,t[1]=o*u-r*c,t[2]=r*a-o*s,t[3]=a*l-i*c,t[4]=n*c-o*l,t[5]=o*i-n*a,t[6]=i*u-s*l,t[7]=r*l-n*u,t[8]=n*s-r*i,t}function u(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=n[0],m=n[1],p=n[2],f=n[3],y=n[4],g=n[5],_=n[6],x=n[7],v=n[8];return t[0]=d*r+m*s+p*u,t[1]=d*o+m*a+p*c,t[2]=d*i+m*l+p*h,t[3]=f*r+y*s+g*u,t[4]=f*o+y*a+g*c,t[5]=f*i+y*l+g*h,t[6]=_*r+x*s+v*u,t[7]=_*o+x*a+v*c,t[8]=_*i+x*l+v*h,t}function c(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],m=e[11],p=e[12],f=e[13],y=e[14],g=e[15],_=n*a-r*s,x=n*l-o*s,v=n*u-i*s,b=r*l-o*a,M=r*u-i*a,w=o*u-i*l,P=c*f-h*p,I=c*y-d*p,R=c*g-m*p,S=h*y-d*f,C=h*g-m*f,T=d*g-m*y;let Z=_*T-x*C+v*S+b*R-M*I+w*P;return Z?(Z=1/Z,t[0]=(a*T-l*C+u*S)*Z,t[1]=(l*R-s*T-u*I)*Z,t[2]=(s*C-a*R+u*P)*Z,t[3]=(o*C-r*T-i*S)*Z,t[4]=(n*T-o*R+i*I)*Z,t[5]=(r*R-n*C-i*P)*Z,t[6]=(f*w-y*M+g*b)*Z,t[7]=(y*v-p*w-g*x)*Z,t[8]=(p*M-f*v+g*_)*Z,t):null}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function d(t){const e=(0,r.g)(),n=t[0],o=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],h=t[8];return Math.abs(1-(n*n+s*s+u*u))<=e&&Math.abs(1-(o*o+a*a+c*c))<=e&&Math.abs(1-(i*i+l*l+h*h))<=e}const m=u,p=h;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:l,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],i=t[4],s=t[5],a=t[6],l=t[7],u=t[8];return e*(u*i-s*l)+n*(-u*o+s*a)+r*(l*o-i*a)},equals:function(t,e){const n=t[0],o=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],h=t[8],d=e[0],m=e[1],p=e[2],f=e[3],y=e[4],g=e[5],_=e[6],x=e[7],v=e[8],b=(0,r.g)();return Math.abs(n-d)<=b*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(o-m)<=b*Math.max(1,Math.abs(o),Math.abs(m))&&Math.abs(i-p)<=b*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(s-f)<=b*Math.max(1,Math.abs(s),Math.abs(f))&&Math.abs(a-y)<=b*Math.max(1,Math.abs(a),Math.abs(y))&&Math.abs(l-g)<=b*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(u-_)<=b*Math.max(1,Math.abs(u),Math.abs(_))&&Math.abs(c-x)<=b*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(h-v)<=b*Math.max(1,Math.abs(h),Math.abs(v))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:o,fromQuat:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=n+n,a=r+r,l=o+o,u=n*s,c=r*s,h=r*a,d=o*s,m=o*a,p=o*l,f=i*s,y=i*a,g=i*l;return t[0]=1-h-p,t[3]=c-g,t[6]=d+y,t[1]=c+g,t[4]=1-u-p,t[7]=m-f,t[2]=d-y,t[5]=m+f,t[8]=1-u-h,t},fromRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:a,isOrthoNormal:d,mul:m,multiply:u,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:c,normalFromMat4Legacy:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[4],s=e[5],a=e[6],l=e[8],u=e[9],c=e[10],h=c*s-a*u,d=-c*i+a*l,m=u*i-s*l,p=n*h+r*d+o*m;if(!p)return null;const f=1/p;return t[0]=h*f,t[1]=(-c*r+o*u)*f,t[2]=(a*r-o*s)*f,t[3]=d*f,t[4]=(c*n-o*l)*f,t[5]=(-a*n+o*i)*f,t[6]=m*f,t[7]=(-u*n+r*l)*f,t[8]=(s*n-r*i)*f,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=Math.sin(n),m=Math.cos(n);return t[0]=m*r+d*s,t[1]=m*o+d*a,t[2]=m*i+d*l,t[3]=m*s-d*r,t[4]=m*a-d*o,t[5]=m*l-d*i,t[6]=u,t[7]=c,t[8]=h,t},scale:function(t,e,n){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=i*e[6],t[7]=i*e[7],t[8]=i*e[8],t},scaleByVec2:function(t,e,n){const r=n[0],o=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:p,subtract:h,translate:function(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=n[0],m=n[1];return t[0]=r,t[1]=o,t[2]=i,t[3]=s,t[4]=a,t[5]=l,t[6]=d*r+m*s+u,t[7]=d*o+m*a+c,t[8]=d*i+m*l+h,t},transpose:s},Symbol.toStringTag,{value:"Module"}))},46521:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,i,s,a,l){return[t,e,n,r,o,i,s,a,l]}function i(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>i,c:()=>r,f:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:i,fromValues:o},Symbol.toStringTag,{value:"Module"}))},25929:(t,e,n)=>{n.d(e,{M:()=>p,a:()=>y,e:()=>d,f:()=>o,i:()=>c,p:()=>h,r:()=>s,t:()=>i,w:()=>a});var r=n(17452);function o(t,e){const n=e&&e.url&&e.url.path;if(t&&n&&(t=(0,r.hF)(t,n,{preserveProtocolRelative:!0}),e.portalItem&&e.readResourcePaths)){const n=(0,r.PF)(t,e.portalItem.itemUrl);null!=n&&u.test(n)&&e.readResourcePaths.push(e.portalItem.resourceFromPath(n).path)}return m(t,e&&e.portal)}function i(t,e,n=p.YES){if(null==t)return t;!(0,r.YP)(t)&&e&&e.blockedRelativeUrls&&e.blockedRelativeUrls.push(t);let o=(0,r.hF)(t);if(e){const n=e.verifyItemRelativeUrls&&e.verifyItemRelativeUrls.rootPath||e.url&&e.url.path;if(n){const i=m(n,e.portal),s=m(o,e.portal);o=(0,r.PF)(s,i,i),null!=o&&o!==s&&o!==t&&e.verifyItemRelativeUrls&&e.verifyItemRelativeUrls.writtenUrls.push(o)}}return o=d(o,e?.portal),(0,r.YP)(o)&&(o=(0,r.Fv)(o)),e?.resources&&e?.portalItem&&!(0,r.YP)(o)&&!(0,r.HK)(o)&&n===p.YES&&e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(o),compress:!1}),o}function s(t,e,n){return o(t,n)}function a(t,e,n,r){const o=i(t,r);void 0!==o&&(e[n]=o)}const l=/\/items\/([^\/]+)\/resources\/(.*)/,u=/^\.\/resources\//;function c(t){const e=t?.match(l)??null;return e?.[1]??null}function h(t){const e=t?.match(l)??null;if(null==e)return null;const n=e[2],o=n.lastIndexOf("/");if(-1===o){const{path:t,extension:e}=(0,r.fZ)(n);return{prefix:null,filename:t,extension:e}}const{path:i,extension:s}=(0,r.fZ)(n.slice(o+1));return{prefix:n.slice(0,o),filename:i,extension:s}}function d(t,e){return e&&!e.isPortal&&e.urlKey&&e.customBaseUrl?(0,r.Ie)(t,`${e.urlKey}.${e.customBaseUrl}`,e.portalHostname):t}function m(t,e){if(!e||e.isPortal||!e.urlKey||!e.customBaseUrl)return t;const n=`${e.urlKey}.${e.customBaseUrl}`,o=(0,r.TI)();return(0,r.D6)(o,`${o.scheme}://${n}`)?(0,r.Ie)(t,e.portalHostname,n):(0,r.Ie)(t,n,e.portalHostname)}var p,f;(f=p||(p={}))[f.YES=0]="YES",f[f.NO=1]="NO";const y=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return p},ensureMainOnlineDomain:d,fromJSON:o,itemIdFromResourceUrl:c,prefixAndFilenameFromResourceUrl:h,read:s,toJSON:i,write:a},Symbol.toStringTag,{value:"Module"}))},88764:(t,e,n)=>{n.d(e,{q:()=>l});var r,o,i,s=n(5732),a={exports:{}};r=a,o=function(){function t(n,r,o,i,s){for(;i>o;){if(i-o>600){var a=i-o+1,l=r-o+1,u=Math.log(a),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(a-c)/a)*(l-a/2<0?-1:1);t(n,r,Math.max(o,Math.floor(r-l*c/a+h)),Math.min(i,Math.floor(r+(a-l)*c/a+h)),s)}var d=n[r],m=o,p=i;for(e(n,o,r),s(n[i],d)>0&&e(n,o,i);m<p;){for(e(n,m,p),m++,p--;s(n[m],d)<0;)m++;for(;s(n[p],d)>0;)p--}0===s(n[o],d)?e(n,o,p):e(n,++p,i),p<=r&&(o=p+1),r<=p&&(i=p-1)}}function e(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function n(t,e){return t<e?-1:t>e?1:0}return function(e,r,o,i,s){t(e,r,o||0,i||e.length-1,s||n)}},void 0!==(i=o())&&(r.exports=i);const l=(0,s.g)(a.exports)},4307:(t,e,n)=>{n.d(e,{d:()=>l,l:()=>d,r:()=>p,s:()=>o,t:()=>m});var r=n(46851);function o(t,e,n){return t[0]=e,t[1]=n,t}function i(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function a(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function l(t,e){const n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function u(t,e){const n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function c(t){const e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function h(t){const e=t[0],n=t[1];return e*e+n*n}function d(t,e,n,r){const o=e[0],i=e[1];return t[0]=o+r*(n[0]-o),t[1]=i+r*(n[1]-i),t}function m(t,e,n){const r=e[0],o=e[1];return t[0]=n[0]*r+n[2]*o+n[4],t[1]=n[1]*r+n[3]*o+n[5],t}function p(t,e,n,r){const o=e[0]-n[0],i=e[1]-n[1],s=Math.sin(r),a=Math.cos(r);return t[0]=o*a-i*s+n[0],t[1]=o*s+i*a+n[1],t}const f=c,y=i,g=s,_=a,x=l,v=u,b=h;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},angle:function(t,e){const n=t[0],r=t[1],o=e[0],i=e[1];let s=n*n+r*r;s>0&&(s=1/Math.sqrt(s));let a=o*o+i*i;a>0&&(a=1/Math.sqrt(a));const l=(n*o+r*i)*s*a;return l>1?0:l<-1?Math.PI:Math.acos(l)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},cross:function(t,e,n){const r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},dist:x,distance:l,div:_,divide:a,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:function(t,e){const n=t[0],o=t[1],i=e[0],s=e[1],a=(0,r.g)();return Math.abs(n-i)<=a*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(o-s)<=a*Math.max(1,Math.abs(o),Math.abs(s))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:f,length:c,lerp:d,max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},mul:g,multiply:s,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:function(t,e){const n=e[0],r=e[1];let o=n*n+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o),t},projectAndScale:function(t,e,n,r,o){let i=e[0]-n[0],s=e[1]-n[1];const a=(r[0]*i+r[1]*s)*(o-1);return i=r[0]*a,s=r[1]*a,t[0]=e[0]+i,t[1]=e[1]+s,t},random:function(t,e){e=e||1;const n=2*(0,r.R)()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},rotate:p,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},set:o,sqrDist:v,sqrLen:b,squaredDistance:u,squaredLength:h,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:y,subtract:i,transformMat2:function(t,e,n){const r=e[0],o=e[1];return t[0]=n[0]*r+n[2]*o,t[1]=n[1]*r+n[3]*o,t},transformMat2d:m,transformMat3:function(t,e,n){const r=e[0],o=e[1];return t[0]=n[0]*r+n[3]*o+n[6],t[1]=n[1]*r+n[4]*o+n[7],t},transformMat4:function(t,e,n){const r=e[0],o=e[1];return t[0]=n[0]*r+n[4]*o+n[12],t[1]=n[1]*r+n[5]*o+n[13],t}},Symbol.toStringTag,{value:"Module"}))},97323:(t,e,n)=>{function r(){return[0,0]}function o(t,e){return[t,e]}function i(t,e){return new Float64Array(t,e,2)}function s(){return o(1,1)}function a(){return o(1,0)}function l(){return o(0,1)}n.d(e,{a:()=>r,c:()=>i,f:()=>o});const u=s(),c=a(),h=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:c,UNIT_Y:h,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,createView:i,fromArray:function(t,e=[0,0]){const n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:o,ones:s,unitX:a,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},10699:(t,e,n)=>{n.d(e,{IG:()=>s,iv:()=>a});var r=n(43697),o=n(52011);let i=0;const s=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+i++})}};return e=(0,r._)([(0,o.j)("esri.core.Identifiable")],e),e},a=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:i++})}};return e=(0,r._)([(0,o.j)("esri.core.NumericIdentifiable")],e),e};let l=class extends(s(class{})){};l=(0,r._)([(0,o.j)("esri.core.Identifiable")],l)},70921:(t,e,n)=>{n.d(e,{R:()=>i,Z:()=>o});var r=n(46791);function o(t,e,n=r.Z){return e||(e=new n),e===t||(e.removeAll(),(o=t)&&(Array.isArray(o)||"items"in o&&Array.isArray(o.items))?e.addMany(t):t&&e.add(t)),e;var o}function i(t){return t}},70163:(t,e,n)=>{n.d(e,{Jl:()=>c,n$:()=>h});var r=n(3172),o=n(20102),i=n(95330),s=n(17452),a=n(49917);let l=null,u=!0;function c(t,e,n,r){if(!e||!n)throw new Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(t,e,n)}catch(t){u=!1}const o=function(t,e,n){return n||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),n=l),n.getContext("2d").createImageData(t,e)}(e,n,r);return o.data.set(t,0),o}async function h(t,e){const{arrayBuffer:l,mediaType:u}=await async function(t,e){const n=(0,s.sJ)(t);if(n?.isBase64)return{arrayBuffer:(0,a.R)(n.data),mediaType:n.mediaType};const o=await(0,r.Z)(t,{responseType:"array-buffer",...e});return{arrayBuffer:o.data,mediaType:o.getHeader("Content-Type")}}(t,e),c="image/png"===u;if("image/gif"===u){const{isAnimatedGIF:t,parseGif:r}=await n.e(3310).then(n.bind(n,83310));if(t(l))return r(l,e)}if(c){const{isAnimatedPNG:t,parseApng:r}=await n.e(4492).then(n.bind(n,54492));if(t(l))return r(l,e)}return async function(t,e){const n=window.URL.createObjectURL(t);try{const{data:t}=await(0,r.Z)(n,{...e,responseType:"image"});return t}catch(t){if(!(0,i.D_)(t))throw new o.Z("invalid-image",`Could not fetch requested image at ${n}`);throw t}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:u}),e)}},24133:(t,e,n)=>{n.d(e,{Q:()=>s});var r=n(67676),o=n(44553),i=n(88764);class s{constructor(t=9,e){this._compareMinX=c,this._compareMinY=h,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),x.prune(),v.prune(),b.prune(),M.prune()}all(t){this._all(this._data,t)}search(t,e){let n=this._data;const r=this._toBBox;if(g(t,n))for(x.clear();n;){for(let o=0,i=n.children.length;o<i;o++){const i=n.children[o],s=n.leaf?r(i):i;g(t,s)&&(n.leaf?e(i):y(t,s)?this._all(i,e):x.push(i))}n=x.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!g(t,e))return!1;for(x.clear();e;){for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],i=e.leaf?n(o):o;if(g(t,i)){if(e.leaf||y(t,i))return!0;x.push(o)}}e=x.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new I([]),this}remove(t){if(!t)return this;let e,n=this._data,o=null,i=0,s=!1;const a=this._toBBox(t);for(b.clear(),M.clear();n||b.length>0;){if(n||(n=b.pop(),o=b.data[b.length-1],i=M.pop()??0,s=!0),n.leaf&&(e=(0,r.cq)(n.children,t,n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),b.push(n),this._condense(b),this;s||n.leaf||!y(n,a)?o?(i++,n=o.children[i],s=!1):n=null:(b.push(n),M.push(i),i=0,o=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let n=t;for(v.clear();n;){if(!0===n.leaf)for(const t of n.children)e(t);else v.pushArray(n.children);n=v.pop()??null}}_build(t,e,n,r){const o=n-e+1;let i=this._maxEntries;if(o<=i){const r=new I(t.slice(e,n+1));return a(r,this._toBBox),r}r||(r=Math.ceil(Math.log(o)/Math.log(i)),i=Math.ceil(o/i**(r-1)));const s=new R([]);s.height=r;const l=Math.ceil(o/i),u=l*Math.ceil(Math.sqrt(i));_(t,e,n,u,this._compareMinX);for(let o=e;o<=n;o+=u){const e=Math.min(o+u-1,n);_(t,o,e,l,this._compareMinY);for(let n=o;n<=e;n+=l){const o=Math.min(n+l-1,e);s.children.push(this._build(t,n,o,r-1))}}return a(s,this._toBBox),s}_chooseSubtree(t,e,n,r){for(;r.push(e),!0!==e.leaf&&r.length-1!==n;){let n,r=1/0,o=1/0;for(let i=0,s=e.children.length;i<s;i++){const s=e.children[i],a=d(s),l=p(t,s)-a;l<o?(o=l,r=a<r?a:r,n=s):l===o&&a<r&&(r=a,n=s)}e=n||e.children[0]}return e}_insert(t,e,n){const r=this._toBBox,o=n?t:r(t);b.clear();const i=this._chooseSubtree(o,this._data,e,b);for(i.children.push(t),u(i,o);e>=0&&b.data[e].children.length>this._maxEntries;)this._split(b,e),e--;this._adjustParentBBoxes(o,b,e)}_split(t,e){const n=t.data[e],r=n.children.length,o=this._minEntries;this._chooseSplitAxis(n,o,r);const i=this._chooseSplitIndex(n,o,r);if(!i)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const s=n.children.splice(i,n.children.length-i),l=n.leaf?new I(s):new R(s);l.height=n.height,a(n,this._toBBox),a(l,this._toBBox),e?t.data[e-1].children.push(l):this._splitRoot(n,l)}_splitRoot(t,e){this._data=new R([t,e]),this._data.height=t.height+1,a(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let r,o,i;r=o=1/0;for(let s=e;s<=n-e;s++){const e=l(t,0,s,this._toBBox),a=l(t,s,n,this._toBBox),u=f(e,a),c=d(e)+d(a);u<r?(r=u,i=s,o=c<o?c:o):u===r&&c<o&&(o=c,i=s)}return i}_chooseSplitAxis(t,e,n){const r=t.leaf?this._compareMinX:c,o=t.leaf?this._compareMinY:h;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,o)&&t.children.sort(r)}_allDistMargin(t,e,n,r){t.children.sort(r);const o=this._toBBox,i=l(t,0,e,o),s=l(t,n-e,n,o);let a=m(i)+m(s);for(let r=e;r<n-e;r++){const e=t.children[r];u(i,t.leaf?o(e):e),a+=m(i)}for(let r=n-e-1;r>=e;r--){const e=t.children[r];u(s,t.leaf?o(e):e),a+=m(s)}return a}_adjustParentBBoxes(t,e,n){for(let r=n;r>=0;r--)u(e.data[r],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const o=t.data[e-1],i=o.children;i.splice((0,r.cq)(i,n,i.length,o.indexHint),1)}else this.clear();else a(n,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function a(t,e){l(t,0,t.children.length,e,t)}function l(t,e,n,r,o){o||(o=new I([])),o.minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let i,s=e;s<n;s++)i=t.children[s],u(o,t.leaf?r(i):i);return o}function u(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function c(t,e){return t.minX-e.minX}function h(t,e){return t.minY-e.minY}function d(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function f(t,e){const n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),o=Math.min(t.maxX,e.maxX),i=Math.min(t.maxY,e.maxY);return Math.max(0,o-n)*Math.max(0,i-r)}function y(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function g(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function _(t,e,n,r,o){const s=[e,n];for(;s.length;){const e=s.pop(),n=s.pop();if(e-n<=r)continue;const a=n+Math.ceil((e-n)/r/2)*r;(0,i.q)(t,a,n,e,o),s.push(n,a,a,e)}}const x=new o.Z,v=new o.Z,b=new o.Z,M=new o.Z({deallocator:void 0});class w{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class P extends w{constructor(){super(...arguments),this.height=1,this.indexHint=new r.SO}}class I extends P{constructor(t){super(),this.children=t,this.leaf=!0}}class R extends P{constructor(t){super(),this.children=t,this.leaf=!1}}},17445:(t,e,n)=>{n.d(e,{N1:()=>d,YP:()=>l,Z_:()=>f,gx:()=>u,nn:()=>y,on:()=>h,tX:()=>g}),n(66643),n(46791);var r=n(91460),o=n(50758),i=n(70586),s=n(95330),a=n(26258);function l(t,e,n={}){return c(t,e,n,m)}function u(t,e,n={}){return c(t,e,n,p)}function c(t,e,n={},r){let o=null;const s=n.once?(t,n)=>{r(t)&&((0,i.hw)(o),e(t,n))}:(t,n)=>{r(t)&&e(t,n)};if(o=(0,a.aQ)(t,s,n.sync,n.equals),n.initial){const e=t();s(e,e)}return o}function h(t,e,n,s={}){let a=null,u=null,c=null;function h(){a&&u&&(u.remove(),s.onListenerRemove?.(a),a=null,u=null)}function d(t){s.once&&s.once&&(0,i.hw)(c),n(t)}const m=l(t,((t,n)=>{h(),(0,r.vT)(t)&&(a=t,u=(0,r.on)(t,e,d),s.onListenerAdd?.(t))}),{sync:s.sync,initial:!0});return c=(0,o.kB)((()=>{m.remove(),h()})),c}function d(t,e){return function(t,e,n){if((0,s.Hc)(n))return Promise.reject((0,s.zE)());const r=t();if(e?.(r))return Promise.resolve(r);let a=null;function l(){a=(0,i.hw)(a)}return new Promise(((r,i)=>{a=(0,o.AL)([(0,s.fu)(n,(()=>{l(),i((0,s.zE)())})),c(t,(t=>{l(),r(t)}),{sync:!1,once:!0},e??m)])}))}(t,p,e)}function m(t){return!0}function p(t){return!!t}n(87538);const f={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},35463:(t,e,n)=>{n.d(e,{JE:()=>a,Nm:()=>s,rJ:()=>l});var r=n(90344),o=n(17126);const i={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function s(t,e,n,r="system"){const i=c(r),s=o.ou.fromJSDate(t,{zone:i}),a="decades"===n||"centuries"===n?"year":u(n);return"decades"===n&&(e*=10),"centuries"===n&&(e*=100),s.plus({[a]:e}).toJSDate()}function a(t,e,n="system"){const r=c(n),i=o.ou.fromJSDate(t,{zone:r});if("decades"===e||"centuries"===e){const t=i.startOf("year"),{year:n}=t,r=n-n%("decades"===e?10:100);return t.set({year:r}).toJSDate()}const s=u(e);return i.startOf(s).toJSDate()}function l(t,e,n){return 0===t?0:t*i[e]/i[n]}function u(t){switch(t){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"}}function c(t){const e=(0,r.f1)(t);return e?new o.vF(e):o.Oh.instance}},41123:(t,e,n)=>{n.d(e,{D:()=>o,z:()=>i});const r="randomUUID"in crypto;function o(){if(r)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function i(){return`{${o()}}`}},73913:(t,e,n)=>{n.d(e,{Sy:()=>l,UZ:()=>s,XZ:()=>a,x3:()=>u});var r=n(58901),o=n(82971),i=n(33955);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.Z.WebMercator}),minus180Line:new r.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.Z({paths:[[[180,-180],[180,180]]],spatialReference:o.Z.WGS84}),minus180Line:new r.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:o.Z.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){const n=u(t);for(const t of n)for(const n of t)n[0]+=e;return t}function u(t){return(0,i.oU)(t)?t.rings:t.paths}},90344:(t,e,n)=>{n.d(e,{LJ:()=>P,Xr:()=>g,Ze:()=>b,cZ:()=>u,f1:()=>R,i$:()=>I,o8:()=>w,p6:()=>M});var r=n(35454),o=n(70171),i=n(17126);const s={year:void 0,month:void 0,day:void 0,weekday:void 0},a={hour:void 0,minute:void 0,second:void 0},l={timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},u={timeZone:"Etc/UTC"},c={year:"numeric",month:"numeric",day:"numeric"},h={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},p={hour:"numeric",minute:"numeric"},f={...p,second:"numeric"},y={"short-date":c,"short-date-short-time":{...c,...p},"short-date-short-time-24":{...c,...p,hour12:!1},"short-date-long-time":{...c,...f},"short-date-long-time-24":{...c,...f,hour12:!1},"short-date-le":c,"short-date-le-short-time":{...c,...p},"short-date-le-short-time-24":{...c,...p,hour12:!1},"short-date-le-long-time":{...c,...f},"short-date-le-long-time-24":{...c,...f,hour12:!1},"long-month-day-year":h,"long-month-day-year-short-time":{...h,...p},"long-month-day-year-short-time-24":{...h,...p,hour12:!1},"long-month-day-year-long-time":{...h,...f},"long-month-day-year-long-time-24":{...h,...f,hour12:!1},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...p},"day-short-month-year-short-time-24":{...d,...p,hour12:!1},"day-short-month-year-long-time":{...d,...f},"day-short-month-year-long-time-24":{...d,...f,hour12:!1},"long-date":m,"long-date-short-time":{...m,...p},"long-date-short-time-24":{...m,...p,hour12:!1},"long-date-long-time":{...m,...f},"long-date-long-time-24":{...m,...f,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":p,"long-time":f},g=(0,r.w)()({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"}),_={ar:"ar-u-nu-latn-ca-gregory"};let x=new WeakMap;const v=y["short-date-short-time"];function b(t){return y[t]}function M(t,e=v){return function(t){let e=x.get(t);if(!e){const n=(0,o.Kd)(),r=_[n]||n,i=R(t.timeZone??"system"),s={...t,timeZone:i};e=new Intl.DateTimeFormat(r,s),x.set(t,e)}return e}(e).format(t)}function w(t,e=v){return M(new Date(t),{...e,...u,...a})}function P(t,e=v){return M(new Date(`1970-01-01T${t}Z`),{...e,...u,...s})}function I(t,e=v){const n=i.ou.fromISO(t,{setZone:!0}),r=(0,o.Kd)(),s=_[r]??r;return n.toLocaleString({...l,...e},{locale:s})}function R(t){switch(t){case"system":return;case"unknown":return"UTC";default:return t}}(0,o.Ze)((()=>{x=new WeakMap}))},87085:(t,e,n)=>{n.d(e,{Z:()=>x});var r=n(43697),o=(n(66577),n(3172)),i=n(20102),s=n(32448),a=n(10699),l=n(83379),u=n(92604),c=n(95330),h=n(17452),d=n(5600),m=(n(75215),n(67676),n(80442),n(52011)),p=n(68773),f=n(6570),y=n(82971);let g=0,_=class extends(s.Z.EventedMixin((0,a.IG)(l.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.Z(-180,-90,180,90,y.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await n.e(3529).then(n.bind(n,63529))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:r}=await n.e(8008).then(n.bind(n,28008));try{return await r(e)}catch(t){const n=e&&e.portalItem,r=n&&n.id||"unset",o=n&&n.portal&&n.portal.url||p.default.portalUrl;throw u.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+r+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,c.D_)(t)||u.Z.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,h.mN)(this.url)}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,o.Z)(t,{query:{f:"json"},responseType:"json"})).data;throw new i.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,d.Cb)({type:String})],_.prototype,"attributionDataUrl",void 0),(0,r._)([(0,d.Cb)({type:f.Z})],_.prototype,"fullExtent",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],_.prototype,"hasAttributionData",null),(0,r._)([(0,d.Cb)({type:String,clonable:!1})],_.prototype,"id",void 0),(0,r._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],_.prototype,"legendEnabled",void 0),(0,r._)([(0,d.Cb)({type:["show","hide","hide-children"]})],_.prototype,"listMode",void 0),(0,r._)([(0,d.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],_.prototype,"opacity",void 0),(0,r._)([(0,d.Cb)({clonable:!1})],_.prototype,"parent",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,r._)([(0,d.Cb)({type:Boolean})],_.prototype,"popupEnabled",void 0),(0,r._)([(0,d.Cb)({type:Boolean})],_.prototype,"attributionVisible",void 0),(0,r._)([(0,d.Cb)({type:y.Z})],_.prototype,"spatialReference",void 0),(0,r._)([(0,d.Cb)({type:String})],_.prototype,"title",void 0),(0,r._)([(0,d.Cb)({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),(0,r._)([(0,d.Cb)()],_.prototype,"url",void 0),(0,r._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],_.prototype,"visible",void 0),_=(0,r._)([(0,m.j)("esri.layers.Layer")],_);const x=_},57765:(t,e,n)=>{n.r(e),n.d(e,{default:()=>ie});var r=n(43697),o=n(46791),i=n(20102),s=n(92604),a=n(16453),l=n(5600),u=n(90578),c=(n(67676),n(80442),n(71715)),h=n(52011),d=n(30556),m=n(87085),p=n(71612),f=n(38009),y=n(72965),g=n(3172),_=n(70163),x=n(17452),v=n(41123),b=(n(75215),n(10699)),M=n(96674),w=n(83379),P=n(92036),I=n(21787),R=n(46521),S=n(4307),C=n(17896);const T=(0,n(65617).c)(),Z=(0,R.c)(),B=(0,R.c)(),L=(0,R.c)();function O(t,e,n){return(0,C.s)(T,e[0],e[1],1),(0,C.t)(T,T,(0,I.t)(Z,n)),0===T[2]?(0,S.s)(t,T[0],T[1]):(0,S.s)(t,T[0]/T[2],T[1]/T[2])}function j(t,e,n){return E(B,e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]),E(L,n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),(0,I.m)(t,(0,I.b)(B,B),L),0!==t[8]&&(t[0]/=t[8],t[1]/=t[8],t[2]/=t[8],t[3]/=t[8],t[4]/=t[8],t[5]/=t[8],t[6]/=t[8],t[7]/=t[8],t[8]/=t[8]),t}function E(t,e,n,r,o,i,s,a,l){(0,I.c)(t,e,r,i,n,o,s,1,1,1),(0,C.s)(T,a,l,1),(0,I.b)(Z,t);const[u,c,h]=(0,C.t)(T,T,(0,I.t)(Z,Z));return(0,I.c)(Z,u,0,0,0,c,0,0,0,h),(0,I.m)(t,Z,t)}var Y=n(62357),D=n(97323),X=n(94139),A=n(38913),U=n(73615),N=n(82971),z=n(2368);let q=class extends z.j{projectOrWarn(t,e){if(null==t)return t;const{geometry:n,pending:r}=(0,U.projectOrLoad)(t,e);return r?null:r||n?n:(s.Z.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:t,sourceSpatialReference:t.spatialReference,targetSpatialReference:e}),null)}};q=(0,r._)([(0,h.j)("esri.layers.support.GeoreferenceBase")],q);const F=q,H=(0,R.c)(),V=(0,D.a)();let J=class extends P.Z{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,r._)([(0,l.Cb)()],J.prototype,"sourcePoint",void 0),(0,r._)([(0,l.Cb)({type:X.Z})],J.prototype,"mapPoint",void 0),J=(0,r._)([(0,h.j)("esri.layers.support.ControlPoint")],J);let k=class extends((0,M.eC)(F)){constructor(t){super(t),this.controlPoints=null,this.height=0,this.type="control-points",this.width=0}readControlPoints(t,e){const n=N.Z.fromJSON(e.spatialReference),r=(0,R.f)(...e.coefficients,1);return t.map((t=>((0,S.s)(V,t.x,t.y),O(V,V,r),{sourcePoint:t,mapPoint:new X.Z({x:V[0],y:V[1],spatialReference:n})})))}writeControlPoints(t,e,n,r){if(null!=this.transform)null!=t&&W(t[0])&&(e.controlPoints=t.map((t=>{const e=t.sourcePoint;return{x:e.x,y:e.y}})),e.spatialReference=t[0].mapPoint.spatialReference.toJSON(),e.coefficients=this.transform.slice(0,8));else{const t=new i.Z("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration.",{layer:r?.layer,georeference:this});r?.messages?r.messages.push(t):s.Z.getLogger(this).error(t.name,t.message)}}get coords(){if(null==this.controlPoints)return null;const t=this._updateTransform(H);if(null==t||!W(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return function(t,e,n,r){const o=(0,D.f)(0,n),i=(0,D.f)(0,0),s=(0,D.f)(e,0),a=(0,D.f)(e,n);return O(o,o,t),O(i,i,t),O(s,s,t),O(a,a,t),new A.Z({rings:[[o,i,s,a,o]],spatialReference:r})}(t,this.width,this.height,e)}set coords(t){if(null==this.controlPoints||!W(this.controlPoints[0]))return;const e=this.controlPoints[0].mapPoint.spatialReference;if(null==(t=this.projectOrWarn(t,e)))return;const{width:n,height:r}=this,{rings:[[o,i,s,a]]}=t,l={sourcePoint:(0,Y.vW)(0,r),mapPoint:new X.Z({x:o[0],y:o[1],spatialReference:e})},u={sourcePoint:(0,Y.vW)(0,0),mapPoint:new X.Z({x:i[0],y:i[1],spatialReference:e})},c={sourcePoint:(0,Y.vW)(n,0),mapPoint:new X.Z({x:s[0],y:s[1],spatialReference:e})},h={sourcePoint:(0,Y.vW)(n,r),mapPoint:new X.Z({x:a[0],y:a[1],spatialReference:e})};W(l)&&W(u)&&W(c)&&W(h)&&(st(H,l,u,c,h),this.controlPoints=this.controlPoints.map((({sourcePoint:t})=>((0,S.s)(V,t.x,t.y),O(V,V,H),{sourcePoint:t,mapPoint:new X.Z({x:V[0],y:V[1],spatialReference:e})}))))}get inverseTransform(){return null==this.transform?null:(0,I.e)((0,R.c)(),this.transform)}get transform(){return this._updateTransform()}toMap(t){if(null==t||null==this.transform||null==this.controlPoints||!W(this.controlPoints[0]))return null;(0,S.s)(V,t.x,t.y);const e=this.controlPoints[0].mapPoint.spatialReference;return O(V,V,this.transform),new X.Z({x:V[0],y:V[1],spatialReference:e})}toSource(t){if(null==t||null==this.inverseTransform||null==this.controlPoints||!W(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return t=t.normalize(),null==(t=(0,U.projectOrLoad)(t,e).geometry)?null:((0,S.s)(V,t.x,t.y),O(V,V,this.inverseTransform),(0,Y.vW)(V[0],V[1]))}_updateTransform(t){const{controlPoints:e,width:n,height:r}=this;if(!(null!=e&&n>0&&r>0))return null;const[o,i,s,a]=e;if(!W(o))return null;const l=o.mapPoint.spatialReference,u=this._projectControlPoint(i,l),c=this._projectControlPoint(s,l),h=this._projectControlPoint(a,l);if(!u.valid||!c.valid||!h.valid)return null;if(!W(u.controlPoint))return null;null==t&&(t=(0,R.c)());let d=null;return d=W(c.controlPoint)&&W(h.controlPoint)?st(t,o,u.controlPoint,c.controlPoint,h.controlPoint):W(c.controlPoint)?function(t,e,n,r){return it(G,tt,e),it($,et,n),it(K,nt,r),(0,S.l)(Q,G,$,.5),(0,S.r)(Q,K,Q,Math.PI),(0,S.l)(rt,tt,et,.5),(0,S.r)(rt,nt,rt,Math.PI),ct(t,G,$,K,Q,tt,et,nt,rt)}(t,o,u.controlPoint,c.controlPoint):function(t,e,n){return it(G,tt,e),it($,et,n),(0,S.r)(K,$,G,ot),(0,S.r)(Q,G,$,ot),(0,S.r)(nt,et,tt,-ot),(0,S.r)(rt,tt,et,-ot),ct(t,G,$,K,Q,tt,et,nt,rt)}(t,o,u.controlPoint),d.every((t=>0===t))?null:d}_projectControlPoint(t,e){if(!W(t))return{valid:!0,controlPoint:t};const{sourcePoint:n,mapPoint:r}=t,{geometry:o,pending:i}=(0,U.projectOrLoad)(r,e);return i?{valid:!1,controlPoint:null}:i||o?{valid:!0,controlPoint:{sourcePoint:n,mapPoint:o}}:(s.Z.getLogger(this).warn("map point could not be projected to the spatial reference",{georeference:this,controlPoint:t,sourceSpatialReference:r.spatialReference,targetSpatialReference:e}),{valid:!1,controlPoint:null})}};function W(t){return null!=t&&null!=t.sourcePoint&&null!=t.mapPoint}(0,r._)([(0,l.Cb)({type:[J],json:{write:{allowNull:!1,isRequired:!0}}})],k.prototype,"controlPoints",void 0),(0,r._)([(0,c.r)("controlPoints")],k.prototype,"readControlPoints",null),(0,r._)([(0,d.c)("controlPoints")],k.prototype,"writeControlPoints",null),(0,r._)([(0,l.Cb)()],k.prototype,"coords",null),(0,r._)([(0,l.Cb)({json:{write:!0}})],k.prototype,"height",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],k.prototype,"inverseTransform",null),(0,r._)([(0,l.Cb)({readOnly:!0})],k.prototype,"transform",null),(0,r._)([(0,l.Cb)({json:{write:!0}})],k.prototype,"width",void 0),k=(0,r._)([(0,h.j)("esri.layers.support.ControlPointsGeoreference")],k);const G=(0,D.a)(),$=(0,D.a)(),K=(0,D.a)(),Q=(0,D.a)(),tt=(0,D.a)(),et=(0,D.a)(),nt=(0,D.a)(),rt=(0,D.a)(),ot=Math.PI/2;function it(t,e,n){(0,S.s)(t,n.sourcePoint.x,n.sourcePoint.y),(0,S.s)(e,n.mapPoint.x,n.mapPoint.y)}function st(t,e,n,r,o){return it(G,tt,e),it($,et,n),it(K,nt,r),it(Q,rt,o),ct(t,G,$,K,Q,tt,et,nt,rt)}const at=new Array(8).fill(0),lt=new Array(8).fill(0);function ut(t,e,n,r,o){return t[0]=e[0],t[1]=e[1],t[2]=n[0],t[3]=n[1],t[4]=r[0],t[5]=r[1],t[6]=o[0],t[7]=o[1],t}function ct(t,e,n,r,o,i,s,a,l){return j(t,ut(at,e,n,r,o),ut(lt,i,s,a,l))}const ht=k;let dt=class extends F{constructor(t){super(t),this.bottomLeft=null,this.bottomRight=null,this.topLeft=null,this.topRight=null,this.type="corners"}get coords(){let{topLeft:t,topRight:e,bottomLeft:n,bottomRight:r}=this;if(null==t||null==e||null==n||null==r)return null;const o=t.spatialReference;return e=this.projectOrWarn(e,o),n=this.projectOrWarn(n,o),r=this.projectOrWarn(r,o),null==e||null==n||null==r?null:new A.Z({rings:[[[n.x,n.y],[t.x,t.y],[e.x,e.y],[r.x,r.y],[n.x,n.y]]],spatialReference:o})}set coords(t){const{topLeft:e}=this;if(null==e)return;const n=e.spatialReference;if(null==(t=this.projectOrWarn(t,n)))return;const{rings:[[r,o,i,s]]}=t;this.bottomLeft=new X.Z({x:r[0],y:r[1],spatialReference:n}),this.topLeft=new X.Z({x:o[0],y:o[1],spatialReference:n}),this.topRight=new X.Z({x:i[0],y:i[1],spatialReference:n}),this.bottomRight=new X.Z({x:s[0],y:s[1],spatialReference:n})}};(0,r._)([(0,l.Cb)()],dt.prototype,"coords",null),(0,r._)([(0,l.Cb)({type:X.Z})],dt.prototype,"bottomLeft",void 0),(0,r._)([(0,l.Cb)({type:X.Z})],dt.prototype,"bottomRight",void 0),(0,r._)([(0,l.Cb)({type:X.Z})],dt.prototype,"topLeft",void 0),(0,r._)([(0,l.Cb)({type:X.Z})],dt.prototype,"topRight",void 0),dt=(0,r._)([(0,h.j)("esri.layers.support.CornersGeoreference")],dt);const mt=dt;var pt=n(22021),ft=n(46851),yt=n(6570);let gt=class extends F{constructor(t){super(t),this.extent=null,this.rotation=0,this.type="extent-and-rotation"}get coords(){if(null==this.extent)return null;const{xmin:t,ymin:e,xmax:n,ymax:r,spatialReference:o}=this.extent;let i;if(this.rotation){const{x:o,y:s}=this.extent.center,a=_t(o,s,this.rotation);i=[a(t,e),a(t,r),a(n,r),a(n,e)],i.push(i[0])}else i=[[t,e],[t,r],[n,r],[n,e],[t,e]];return new A.Z({rings:[i],spatialReference:o})}set coords(t){if(null==t||null==this.extent)return;const e=this.extent.spatialReference;if(null==(t=this.projectOrWarn(t,e))||null==t.extent)return;const{rings:[[n,r,o]],extent:{center:{x:i,y:s}}}=t,a=(0,pt.BV)(Math.PI/2-Math.atan2(r[1]-n[1],r[0]-n[0])),l=_t(i,s,-a),[u,c]=l(n[0],n[1]),[h,d]=l(o[0],o[1]);this.extent=new yt.Z({xmin:u,ymin:c,xmax:h,ymax:d,spatialReference:e}),this.rotation=a}};function _t(t,e,n){const r=(0,ft.t)(n),o=Math.cos(r),i=Math.sin(r);return(n,r)=>[o*(n-t)+i*(r-e)+t,o*(r-e)-i*(n-t)+e]}(0,r._)([(0,l.Cb)()],gt.prototype,"coords",null),(0,r._)([(0,l.Cb)({type:yt.Z})],gt.prototype,"extent",void 0),(0,r._)([(0,l.Cb)({type:Number})],gt.prototype,"rotation",void 0),gt=(0,r._)([(0,h.j)("esri.layers.support.ExtentAndRotationGeoreference")],gt);const xt={key:"type",base:F,typeMap:{"control-points":ht,corners:mt,"extent-and-rotation":gt}};let vt=class extends((0,b.iv)((0,M.eC)(w.Z))){constructor(t){super(t),this.georeference=null,this.opacity=1}readGeoreference(t){return ht.fromJSON(t)}};(0,r._)([(0,l.Cb)({types:xt,json:{write:!0}})],vt.prototype,"georeference",void 0),(0,r._)([(0,c.r)("georeference")],vt.prototype,"readGeoreference",null),(0,r._)([(0,l.Cb)()],vt.prototype,"opacity",void 0),vt=(0,r._)([(0,h.j)("esri.layers.support.MediaElementBase")],vt);const bt=vt;var Mt=n(66094),wt=n(25929);let Pt=class extends bt{constructor(t){super(t),this.animationOptions=null,this.content=null,this.image=null,this.type="image",this.image=null}load(){const t=this.image;if("string"==typeof t){const e=(0,_.n$)(t).then((t=>{this._set("content",t)}));this.addResolvingPromise(e)}else if(t instanceof HTMLImageElement){const e=t.decode().then((()=>{this._set("content",t)}));this.addResolvingPromise(e)}else t?this._set("content",t):this.addResolvingPromise(Promise.reject(new i.Z("image-element:invalid-image-type","Invalid image type",{image:t})));return Promise.resolve(this)}readImage(t,e,n){return(0,wt.f)(e.url,n)}writeImage(t,e,n,r){if(null==t)return;const o=r?.portalItem,i=r?.resources;if(!o||!i)return void("string"==typeof t&&(e[n]=(0,wt.t)(t,r)));const s="string"!=typeof t||(0,x.HK)(t)||(0,x.jc)(t)?null:t;if(s){if(null==(0,wt.i)(s))return void(e[n]=s);const t=(0,wt.t)(s,{...r,verifyItemRelativeUrls:r&&r.verifyItemRelativeUrls?{writtenUrls:r.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},wt.M.NO);if(o&&t&&!(0,x.YP)(t))return i.toKeep.push({resource:o.resourceFromPath(t),compress:!1}),void(e[n]=t)}e[n]="<pending>",i.pendingOperations.push(Rt(t).then((t=>{const r=function(t,e){const n=(0,v.D)(),r=`${(0,x.v_)("media",n)}.${(0,Mt.B)(t)}`;return e.resourceFromPath(r)}(t,o);e[n]=r.itemRelativeUrl,i.toAdd.push({resource:r,content:t,compress:!1,finish:t=>{this.image=t.url}})})))}};(0,r._)([(0,l.Cb)()],Pt.prototype,"animationOptions",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],Pt.prototype,"content",void 0),(0,r._)([(0,l.Cb)({json:{name:"url",type:String}})],Pt.prototype,"image",void 0),(0,r._)([(0,c.r)("image",["url"])],Pt.prototype,"readImage",null),(0,r._)([(0,d.c)("image")],Pt.prototype,"writeImage",null),(0,r._)([(0,l.Cb)({readOnly:!0,json:{name:"mediaType"}})],Pt.prototype,"type",void 0),Pt=(0,r._)([(0,h.j)("esri.layers.support.ImageElement")],Pt);const It=Pt;async function Rt(t){if("string"==typeof t){if((0,x.jc)(t)){const{data:e}=await(0,g.Z)(t,{responseType:"blob"});return e}return(0,x.HK)(t)?(0,x.fw)(t):Rt((await(0,g.Z)(t,{responseType:"image"})).data)}return new Promise((e=>function(t){if(t instanceof HTMLCanvasElement)return t;const e=t instanceof HTMLImageElement?t.naturalWidth:t.width,n=t instanceof HTMLImageElement?t.naturalHeight:t.height,r=document.createElement("canvas"),o=r.getContext("2d");return r.width=e,r.height=n,t instanceof HTMLImageElement?o.drawImage(t,0,0,t.width,t.height):t instanceof ImageData&&o.putImageData(t,0,0),r}(t).toBlob(e)))}n(66577);var St=n(70921),Ct=n(32448),Tt=n(609),Zt=n(95330),Bt=n(17445),Lt=n(24470),Ot=n(87416),jt=n(8744),Et=n(37549),Yt=n(20322),Dt=n(86662),Xt=n(33955),At=n(73913);function Ut(t,e,n){if(Array.isArray(t)){const r=t[0];if(r>e){const n=(0,At.XZ)(r,e);t[0]=r+n*(-2*e)}else if(r<n){const e=(0,At.XZ)(r,n);t[0]=r+e*(-2*n)}}else{const r=t.x;if(r>e){const n=(0,At.XZ)(r,e);t.x+=n*(-2*e)}else if(r<n){const e=(0,At.XZ)(r,n);t.x+=e*(-2*n)}}return t}function Nt(t,e){const n=[],{ymin:r,ymax:o,xmin:i,xmax:s}=t,a=t.xmax-t.xmin,[l,u]=e.valid,{x:c,frameId:h}=zt(t.xmin,e),{x:d,frameId:m}=zt(t.xmax,e),p=c===d&&a>0;if(a>2*u){const t={xmin:i<s?c:d,ymin:r,xmax:u,ymax:o},e={xmin:l,ymin:r,xmax:i<s?d:c,ymax:o},a={xmin:0,ymin:r,xmax:u,ymax:o},p={xmin:l,ymin:r,xmax:0,ymax:o},f=[],y=[];qt(t,a)&&f.push(h),qt(t,p)&&y.push(h),qt(e,a)&&f.push(m),qt(e,p)&&y.push(m);for(let t=h+1;t<m;t++)f.push(t),y.push(t);n.push(new Vt(t,[h]),new Vt(e,[m]),new Vt(a,f),new Vt(p,y))}else c>d||p?n.push(new Vt({xmin:c,ymin:r,xmax:u,ymax:o},[h]),new Vt({xmin:l,ymin:r,xmax:d,ymax:o},[m])):n.push(new Vt({xmin:c,ymin:r,xmax:d,ymax:o},[h]));return n}function zt(t,e){const[n,r]=e.valid,o=2*r;let i,s=0;return t>r?(i=Math.ceil(Math.abs(t-r)/o),t-=i*o,s=i):t<n&&(i=Math.ceil(Math.abs(t-n)/o),t+=i*o,s=-i),{x:t,frameId:s}}function qt(t,e){const{xmin:n,ymin:r,xmax:o,ymax:i}=e;return Ft(t,n,r)&&Ft(t,n,i)&&Ft(t,o,i)&&Ft(t,o,r)}function Ft(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function Ht(t,e,n=!0){const r=!(0,Xt.l9)(t);if(r&&(0,Dt.Zy)(t),n)return(new kt).cut(t,e);const o=r?t.rings:t.paths,i=r?4:2,s=o.length,a=-2*e;for(let t=0;t<s;t++){const e=o[t];if(e&&e.length>=i){const t=[];for(const n of e)t.push([n[0]+a,n[1]]);o.push(t)}}return r?t.rings=o:t.paths=o,t}class Vt{constructor(t,e){this.extent=t,this.frameIds=e}}const Jt=(0,Lt.Ue)();class kt{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(const t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(const n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);const r=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=r;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t[0],t[1],this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide==-1){const n=this._intersect(this._prevPt,t);this._lineTo(this._xCut,n,0),this._prevSide=0,this._lineTo(t[0],t[1],e)}else this._lineTo(t[0],t[1],e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e,n){this._closed?(this._lineIn.push([n<=0?t:this._xCut,e]),this._lineOut.push([n>=0?t:this._xCut,e])):(n<=0&&this._lineIn.push([t,e]),n>=0&&this._lineOut.push([t,e]))}_lineTo(t,e,n){this._closed?(this._addPolyVertex(this._lineIn,n<=0?t:this._xCut,e),this._addPolyVertex(this._lineOut,n>=0?t:this._xCut,e)):n<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push([t,e])):n>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push([t,e])):this._prevSide<0?(this._lineIn.push([t,e]),this._lineOut.push([t,e])):this._prevSide>0&&(this._lineOut.push([t,e]),this._lineIn.push([t,e]))}_addPolyVertex(t,e,n){const r=t.length;r>1&&t[r-1][0]===e&&t[r-2][0]===e?t[r-1][1]=n:t.push([e,n])}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0][1]=t[e-2][1],t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const n=(this._xCut-t[0])/(e[0]-t[0]);return t[1]+n*(e[1]-t[1])}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}let Wt=class extends P.Z{constructor(t){super(t)}get bounds(){const t=this.coords;return null==t||null==t.extent?null:(0,Lt.oJ)(t.extent)}get coords(){const t=this.element.georeference?.coords;return(0,U.projectOrLoad)(t,this.spatialReference).geometry}get normalizedCoords(){return A.Z.fromJSON(function(t,e){if(null==t)return null;const n=t.spatialReference,r=(0,jt.C5)(n),o=(0,M.AK)(t)?t.toJSON():t;if(!r)return o;const i=(0,jt.sS)(n)?102100:4326,s=At.UZ[i].maxX,a=At.UZ[i].minX;if((0,Xt.wp)(o))return Ut(o,s,a);if((0,Xt.aW)(o))return o.points=o.points.map((t=>Ut(t,s,a))),o;if((0,Xt.YX)(o))return function(t,e){if(!e)return t;const n=Nt(t,e).map((t=>t.extent));return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map((t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]))}}(o,r);if((0,Xt.oU)(o)||(0,Xt.l9)(o)){const t=(0,Yt.$P)(Jt,o),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},r=(0,At.XZ)(n.xmin,a)*(2*s),i=0===r?o:(0,At.Sy)(o,r);return n.xmin+=r,n.xmax+=r,n.xmax>s?Ht(i,s,e):n.xmin<a?Ht(i,a,e):i}return o}(this.coords,!0))}get normalizedBounds(){const t=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=t?(0,Lt.oJ)(t):null}};(0,r._)([(0,l.Cb)()],Wt.prototype,"spatialReference",void 0),(0,r._)([(0,l.Cb)()],Wt.prototype,"element",void 0),(0,r._)([(0,l.Cb)()],Wt.prototype,"bounds",null),(0,r._)([(0,l.Cb)()],Wt.prototype,"coords",null),(0,r._)([(0,l.Cb)()],Wt.prototype,"normalizedCoords",null),(0,r._)([(0,l.Cb)()],Wt.prototype,"normalizedBounds",null),Wt=(0,r._)([(0,h.j)("esri.layers.support.MediaElementView")],Wt);var Gt=n(91460);let $t=class extends bt{constructor(t){super(t),this.autoplay=!0,this.content=null,this.type="video"}load(){const t=this.video;if("string"==typeof t){const e=document.createElement("video");e.src=t,e.crossOrigin="anonymous",e.autoplay=!0,e.muted=!0,e.loop=!0,this.addResolvingPromise(this._loadVideo(e).then((()=>{this._set("content",e)})))}else t instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(t).then((()=>{this._set("content",t)}))):this.addResolvingPromise(Promise.reject(new i.Z("video-element:invalid-video-type","Invalid video type",{video:t})));return Promise.resolve(this)}set video(t){"not-loaded"===this.loadStatus?this._set("video",t):s.Z.getLogger(this).error("#video","video cannot be changed after the element is loaded.")}_loadVideo(t){return new Promise(((e,n)=>{const r=(0,Gt.IH)(t,"canplay",(()=>{this.removeHandles("canplay"),this.autoplay?t.play().then(e,n):e()}));this.addHandles(r,"canplay"),"anonymous"!==t.crossOrigin&&(t.crossOrigin="anonymous",t.src?.includes("blob:")||(t.src=t.src))}))}};(0,r._)([(0,l.Cb)()],$t.prototype,"autoplay",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],$t.prototype,"content",void 0),(0,r._)([(0,l.Cb)()],$t.prototype,"video",null),$t=(0,r._)([(0,h.j)("esri.layers.support.VideoElement")],$t);const Kt=$t,Qt={key:"type",defaultKeyValue:"image",base:bt,typeMap:{image:It,video:Kt}},te=o.Z.ofType(Qt);let ee=class extends(w.Z.LoadableMixin((0,Tt.v)(Ct.Z.EventedAccessor))){constructor(t){super(t),this._index=new Et.H,this._elementViewsMap=new Map,this._elementsIndexes=new Map,this._elementsChangedHandler=t=>{for(const e of t.removed){const t=this._elementViewsMap.get(e);this._elementViewsMap.delete(e),this._index.delete(t),this.removeHandles(t),t.destroy(),this.notifyChange("fullExtent")}const{spatialReference:e}=this;for(const n of t.added){if(this._elementViewsMap.get(n))continue;const t=new Wt({spatialReference:e,element:n});this._elementViewsMap.set(n,t);const r=(0,Bt.YP)((()=>t.coords),(()=>this._updateIndexForElement(t,!1)));this._updateIndexForElement(t,!0),this.addHandles(r,t)}this._elementsIndexes.clear(),this.elements.forEach(((t,e)=>this._elementsIndexes.set(t,e))),this.emit("refresh")},this.elements=new te}async load(t){if((0,Zt.k_)(t),!this.spatialReference){const t=this.elements.find((t=>null!=t.georeference&&null!=t.georeference.coords));this._set("spatialReference",t?t.georeference.coords.spatialReference:N.Z.WGS84)}return this._elementsChangedHandler({added:this.elements.items,removed:[]}),this.addHandles(this.elements.on("change",this._elementsChangedHandler)),this}destroy(){this._index.clear(),this._elementViewsMap.clear(),this._elementsIndexes.clear()}set elements(t){this._set("elements",(0,St.Z)(t,this._get("elements"),te))}get fullExtent(){if("not-loaded"===this.loadStatus)return null;const t=this._index.fullBounds;return null==t?null:new yt.Z({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:this.spatialReference})}set spatialReference(t){"not-loaded"===this.loadStatus?this._set("spatialReference",t):s.Z.getLogger(this).error("#spatialReference","spatialReference cannot be changed after the source is loaded.")}async queryElements(t,e){await this.load(),await(0,U.initializeProjection)(t.spatialReference,this.spatialReference,null,e);const n=(0,jt.fS)(t.spatialReference,this.spatialReference)?t:(0,U.project)(t,this.spatialReference);if(!n)return[];const r=n.normalize(),o=[];for(const t of r)this._index.forEachInBounds((0,Lt.oJ)(t),(({normalizedCoords:e,element:n})=>{null!=e&&(0,Ot.Nl)(t,e)&&o.push(n)}));return o.sort(((t,e)=>this._elementsIndexes.get(t)-this._elementsIndexes.get(e))),o}_updateIndexForElement(t,e){const n=t.normalizedBounds,r=this._index.has(t),o=null!=n;this._index.delete(t),o&&this._index.set(t,n),this.notifyChange("fullExtent"),e||(r!==o?this.emit("refresh"):this.emit("change",{element:t.element}))}};(0,r._)([(0,l.Cb)()],ee.prototype,"elements",null),(0,r._)([(0,l.Cb)({readOnly:!0})],ee.prototype,"fullExtent",null),(0,r._)([(0,l.Cb)()],ee.prototype,"spatialReference",null),ee=(0,r._)([(0,h.j)("esri.layers.support.LocalMediaElementSource")],ee);const ne=ee;function re(t){return"object"==typeof t&&null!=t&&"type"in t}let oe=class extends((0,p.h)((0,y.M)((0,f.q)((0,a.R)(m.Z))))){constructor(t){super(t),this.effectiveSource=null,this.copyright=null,this.operationalLayerType="MediaLayer",this.spatialReference=null,this.type="media",this.source=new ne}load(t){const e=this.source;if(!e)return this.addResolvingPromise(Promise.reject(new i.Z("media-layer:source-missing","Set 'MediaLayer.source' before loading the layer."))),Promise.resolve(this);const n=re(e)?new ne({elements:new o.Z([e])}):e;this._set("effectiveSource",n),this.spatialReference&&(n.spatialReference=this.spatialReference);const r=n.load(t).then((()=>{this.spatialReference=n.spatialReference}));return this.addResolvingPromise(r),Promise.resolve(this)}destroy(){this.effectiveSource?.destroy(),this.source?.destroy()}get fullExtent(){return this.loaded?this.effectiveSource.fullExtent:null}set source(t){"not-loaded"===this.loadStatus?this._set("source",t):s.Z.getLogger(this).error("#source","source cannot be changed after the layer is loaded.")}castSource(t){return t?Array.isArray(t)?new ne({elements:new o.Z(t)}):t instanceof o.Z?new ne({elements:t}):t:null}readSource(t,e,n){const r="image"===e.mediaType?new It:"video"===e.mediaType?new Kt:null;return r?.read(e,n),r}writeSource(t,e,n,r){t&&re(t)&&"image"===t.type?t.write(e,r):r?.messages&&r?.messages?.push(new i.Z("media-layer:unsupported-source","source must be an 'ImageElement'"))}};(0,r._)([(0,l.Cb)({readOnly:!0})],oe.prototype,"effectiveSource",void 0),(0,r._)([(0,l.Cb)({type:String})],oe.prototype,"copyright",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],oe.prototype,"fullExtent",null),(0,r._)([(0,l.Cb)({type:["MediaLayer"]})],oe.prototype,"operationalLayerType",void 0),(0,r._)([(0,l.Cb)({type:["show","hide"]})],oe.prototype,"listMode",void 0),(0,r._)([(0,l.Cb)({nonNullable:!0,json:{write:{enabled:!0,allowNull:!1}}})],oe.prototype,"source",null),(0,r._)([(0,u.p)("source")],oe.prototype,"castSource",null),(0,r._)([(0,c.r)("source",["url"])],oe.prototype,"readSource",null),(0,r._)([(0,d.c)("source")],oe.prototype,"writeSource",null),(0,r._)([(0,l.Cb)()],oe.prototype,"spatialReference",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],oe.prototype,"type",void 0),oe=(0,r._)([(0,h.j)("esri.layers.MediaLayer")],oe);const ie=oe},37549:(t,e,n)=>{n.d(e,{H:()=>a});var r=n(80442),o=n(24133),i=n(24470);const s={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new o.Q(9,(0,r.Z)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach(((n,r)=>{t[e++]=r})),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((t=>this._idByBounds.has(t)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,i.cS)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,n){(function(t){s.minX=t[0],s.minY=t[1],s.maxX=t[2],s.maxY=t[3]})(e),t.search(s,n)}(this._index,t,(t=>e(this._idByBounds.get(t))))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},66094:(t,e,n)=>{n.d(e,{B:()=>o});var r=n(17452);function o(t){return i[function(t){return t instanceof Blob?t.type:function(t){const e=(0,r.Ml)(t);return l[e]||s}(t.url)}(t)]||a}const i={},s="text/plain",a=i[s],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in l)i[l[t]]=t}}]);