@arcgis/core 5.1.0-next.81 → 5.1.0-next.82

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 (171) hide show
  1. package/analysis/ShadowCast/DiscreteOptions.d.ts +12 -0
  2. package/analysis/ShadowCast/TotalDurationOptions.d.ts +12 -0
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/040884cec4b84dd1bb17.js +1 -0
  5. package/assets/esri/core/workers/chunks/05c5f68e117fc58ae801.js +1 -0
  6. package/assets/esri/core/workers/chunks/074f5e6aaeafca13bf72.js +1 -0
  7. package/assets/esri/core/workers/chunks/{7bd1d624f4f4a11a31e8.js → 086d7cdfa92a649c9f7b.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{0eed2b1b06355ab89013.js → 0c074c46d106ca4d3bad.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{c758e16b57c96ce88294.js → 1768f1a7e3caa6074d91.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{85d3475667c503ec4fc6.js → 186bfde8c552e3b42302.js} +1 -1
  11. package/assets/esri/core/workers/chunks/1a35121a0c2595a41fdb.js +1 -0
  12. package/assets/esri/core/workers/chunks/1ab66600579fa4232d7b.js +1 -0
  13. package/assets/esri/core/workers/chunks/1e3fe89970c57a883fe5.js +1 -0
  14. package/assets/esri/core/workers/chunks/{824051af00e7a1f05ed0.js → 230e0e43f8e771950397.js} +1 -1
  15. package/assets/esri/core/workers/chunks/26f804c92077c11c626d.js +1 -0
  16. package/assets/esri/core/workers/chunks/28a45bd26eb5c9b3ec7c.js +1 -0
  17. package/assets/esri/core/workers/chunks/38f1a86b8dd9ee684ee5.js +596 -0
  18. package/assets/esri/core/workers/chunks/{71fe127734f33d020a44.js → 475394218caaa4cd3e86.js} +1 -1
  19. package/assets/esri/core/workers/chunks/475409026288f0981ce2.js +1 -0
  20. package/assets/esri/core/workers/chunks/4e206957b28253ddc1a3.js +1 -0
  21. package/assets/esri/core/workers/chunks/5cc38ac051d3d0557920.js +1 -0
  22. package/assets/esri/core/workers/chunks/{992cd87ba0ab6346f692.js → 64e268ebac0b62076f81.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{003fd7745966fe03510c.js → 65ac73de5bb133c6bf89.js} +1 -1
  24. package/assets/esri/core/workers/chunks/6675d56f49d07a97dc40.js +1 -0
  25. package/assets/esri/core/workers/chunks/{484d6c1b0fe1633515b7.js → 72f8f4cfa0842d325fb0.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{283d39dfb1625b5a74db.js → 747e258f57f0543c836e.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{dd4f431511edd975a53b.js → 7acf82763aeba44049d0.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{5d8e944b192aad4cf986.js → 7b505112c7e6d9b7a239.js} +1 -1
  29. package/assets/esri/core/workers/chunks/7b8466f892a38a53c600.js +1 -0
  30. package/assets/esri/core/workers/chunks/{77dd719516138afb1a2a.js → 8af9a78cf316581ea482.js} +1 -1
  31. package/assets/esri/core/workers/chunks/988e91cc6cf88c34c2de.js +1 -0
  32. package/assets/esri/core/workers/chunks/9c402657f63a4d5668d0.js +1 -0
  33. package/assets/esri/core/workers/chunks/9ea23cd4b2664c08b670.js +1 -0
  34. package/assets/esri/core/workers/chunks/9f51a69b8f1937a8794a.js +1 -0
  35. package/assets/esri/core/workers/chunks/a28124bba6b43efd74cc.js +1 -0
  36. package/assets/esri/core/workers/chunks/af762422a65c551dcd54.js +1 -0
  37. package/assets/esri/core/workers/chunks/{056fd7847caaff2c9514.js → af8bc56cf1404afc3028.js} +1 -1
  38. package/assets/esri/core/workers/chunks/b9e163f4a898e50cc854.js +1 -0
  39. package/assets/esri/core/workers/chunks/{444f0f51b3ee0b9845a5.js → bb2f6b0fcdfb8b158e26.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{4af39fa53bc0b79101ed.js → bc8a74da48b08309875f.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{026d3fa331caec1ea3d2.js → bf4dd8e50704e4040966.js} +1 -1
  42. package/assets/esri/core/workers/chunks/c19e3f6027b6526de359.js +1 -0
  43. package/assets/esri/core/workers/chunks/ce4dfc3a470230ddc9e4.js +1 -0
  44. package/assets/esri/core/workers/chunks/{8ea4584e07ccc85caabd.js → d11de13537b623739e14.js} +1 -1
  45. package/assets/esri/core/workers/chunks/d897412b99b9fba44bb4.js +1 -0
  46. package/assets/esri/core/workers/chunks/{035dbb0217f83108fa89.js → db86a1119e4e58ecfbda.js} +1 -1
  47. package/assets/esri/core/workers/chunks/dcb7a3ff59677b1cf0f1.js +1 -0
  48. package/assets/esri/core/workers/chunks/{5fe97253f80c797fad7f.js → df8a3d3cac454d42e14d.js} +1 -1
  49. package/assets/esri/core/workers/chunks/dfe1139124fda0d6c059.js +1 -0
  50. package/assets/esri/core/workers/chunks/{8b8f391f27774aec6db9.js → e0b27bceb397482bd0e8.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{84821dff3bcc51161802.js → e89dc473f46a5584d2ef.js} +32 -32
  52. package/assets/esri/core/workers/chunks/{01ee18782a50279f907e.js → f4220b6eab0865318033.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{42336e0d1ef88737b078.js → f468c6ea2818a1f97e19.js} +1 -1
  54. package/assets/esri/core/workers/chunks/fce2306a1b31c6680f90.js +1 -0
  55. package/assets/esri/core/workers/chunks/fcf51697c361e0075cc2.js +1 -0
  56. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
  57. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
  58. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +15 -0
  59. package/assets/esri/themes/dark/main.css +1 -1
  60. package/assets/esri/themes/light/main.css +1 -1
  61. package/assets/esri/themes/light/view.css +1 -1
  62. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer.json +1 -1
  63. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_en.json +1 -1
  64. package/chunks/ShadowCastVisualize.glsl.js +33 -15
  65. package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
  66. package/chunks/arcgis-knowledge-client-core.js +1 -1
  67. package/config.js +1 -1
  68. package/core/workers/registry.js +1 -1
  69. package/form/elements/inputs/MultipleChoiceInput.d.ts +6 -6
  70. package/form/elements/inputs/MultipleChoiceInput.js +1 -1
  71. package/kernel.js +1 -1
  72. package/layers/BaseDynamicLayer.js +1 -1
  73. package/layers/BaseTileLayer.js +1 -1
  74. package/layers/ElevationLayer.js +1 -1
  75. package/layers/MapImageLayer.js +1 -1
  76. package/layers/TileLayer.js +1 -1
  77. package/layers/WMSLayer.js +1 -1
  78. package/layers/WMTSLayer.js +1 -1
  79. package/layers/WebTileLayer.js +1 -1
  80. package/layers/mixins/ArcGISImageService.js +1 -1
  81. package/layers/mixins/TiledImagery.js +1 -1
  82. package/layers/support/imageBitmapUtils.js +1 -1
  83. package/package.json +1 -1
  84. package/request/process.js +1 -1
  85. package/rest/knowledgeGraph/CreateReplicaResponse.d.ts +37 -0
  86. package/rest/knowledgeGraph/CreateReplicaResponse.js +2 -0
  87. package/rest/knowledgeGraph/ReplicaDefinition.d.ts +91 -0
  88. package/rest/knowledgeGraph/ReplicaDefinition.js +2 -0
  89. package/rest/knowledgeGraph/ReplicasInformationResponse.d.ts +24 -0
  90. package/rest/knowledgeGraph/ReplicasInformationResponse.js +2 -0
  91. package/rest/knowledgeGraph/UnregisterReplicaResponse.d.ts +44 -0
  92. package/rest/knowledgeGraph/UnregisterReplicaResponse.js +2 -0
  93. package/rest/knowledgeGraph/wasmInterface/replicaToWasmEncodedFactories.js +2 -0
  94. package/rest/knowledgeGraph/wasmInterface/wasmToReplicaFactories.js +2 -0
  95. package/rest/knowledgeGraphService.d.ts +50 -1
  96. package/rest/knowledgeGraphService.js +1 -1
  97. package/support/revision.js +1 -1
  98. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
  99. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
  100. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/FillShader.js +1 -1
  101. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
  102. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
  103. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
  104. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  105. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  106. package/views/2d/layers/BaseDynamicLayerView2D.js +1 -1
  107. package/views/2d/layers/MapImageLayerView2D.js +1 -1
  108. package/views/2d/layers/TileLayerView2D.js +1 -1
  109. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  110. package/views/2d/layers/WMSLayerView2D.js +1 -1
  111. package/views/2d/layers/WMTSLayerView2D.js +1 -1
  112. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  113. package/views/3d/layers/ElevationLayerView3D.js +1 -1
  114. package/views/3d/layers/ImageryTileLayerView3D.js +1 -1
  115. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  116. package/views/3d/layers/IntegratedMesh3DTilesLayerWorker.js +2 -0
  117. package/views/3d/layers/IntegratedMesh3DTilesLayerWorkerHandle.js +2 -0
  118. package/views/3d/layers/TileLayerView3D.js +1 -1
  119. package/views/3d/layers/WMTSLayerView3D.js +1 -1
  120. package/views/3d/layers/graphics/tessellationUtils.js +1 -1
  121. package/views/3d/layers/support/IntegratedMesh3DTilesVertexProcessing.js +2 -0
  122. package/views/3d/layers/support/makeScheduleFunction.js +1 -1
  123. package/views/3d/support/renderInfoUtils/polygon.js +1 -1
  124. package/views/3d/terrain/TerrainData.js +1 -1
  125. package/views/3d/terrain/TerrainSurface.js +1 -1
  126. package/views/3d/terrain/Tile.js +1 -1
  127. package/views/3d/terrain/TileRenderer.js +1 -1
  128. package/views/3d/terrain/terrainUtils.js +1 -1
  129. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
  130. package/views/3d/webgl-engine/materials/VisualVariablePassParameters.js +1 -1
  131. package/views/3d/webgl-engine/shaders/ShadowCastVisualize.glsl.js +1 -1
  132. package/views/3d/webgl-engine/shaders/colorRampParameters.js +2 -0
  133. package/views/support/TextureCompressionWorker.js +1 -1
  134. package/views/support/TextureCompressionWorkerHandle.js +1 -1
  135. package/views/webgl/Texture.js +1 -1
  136. package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
  137. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  138. package/widgets/OrientedImageryViewer/css.js +1 -1
  139. package/widgets/OrientedImageryViewer.js +1 -1
  140. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  141. package/assets/esri/core/workers/chunks/05c3146d87d917606193.js +0 -1
  142. package/assets/esri/core/workers/chunks/0b77c124b743067e4155.js +0 -1
  143. package/assets/esri/core/workers/chunks/11241781baaed346af52.js +0 -1
  144. package/assets/esri/core/workers/chunks/1d9560eb8b21b9e76616.js +0 -1
  145. package/assets/esri/core/workers/chunks/2bd69a7734d170e190ed.js +0 -1
  146. package/assets/esri/core/workers/chunks/2c87c3112a43db8624f6.js +0 -1
  147. package/assets/esri/core/workers/chunks/3a58708217a9c11836ab.js +0 -1
  148. package/assets/esri/core/workers/chunks/3bbf684ee2484eb44c9f.js +0 -1
  149. package/assets/esri/core/workers/chunks/49fb9c47070641bce9a9.js +0 -1
  150. package/assets/esri/core/workers/chunks/5417308eba30e668b1ee.js +0 -1
  151. package/assets/esri/core/workers/chunks/62b3e933f548ce354b99.js +0 -1
  152. package/assets/esri/core/workers/chunks/6e70e922331704b92a08.js +0 -1
  153. package/assets/esri/core/workers/chunks/7c7c11c0fde8b63e330b.js +0 -1
  154. package/assets/esri/core/workers/chunks/7cee7ffaf941a4fe23b0.js +0 -596
  155. package/assets/esri/core/workers/chunks/7f55eef696e9ed717bfc.js +0 -1
  156. package/assets/esri/core/workers/chunks/89dbea6f436d45a3b185.js +0 -1
  157. package/assets/esri/core/workers/chunks/9d216e30d04ea21fc8a2.js +0 -1
  158. package/assets/esri/core/workers/chunks/a5d8d6f3c0c8de474efd.js +0 -1
  159. package/assets/esri/core/workers/chunks/a809b811121099a87a98.js +0 -1
  160. package/assets/esri/core/workers/chunks/c02ba921c0a32d2021e3.js +0 -1
  161. package/assets/esri/core/workers/chunks/c3c19b62d948d53118a8.js +0 -1
  162. package/assets/esri/core/workers/chunks/c46a4adea39636a96d03.js +0 -1
  163. package/assets/esri/core/workers/chunks/c5507480344176fad241.js +0 -1
  164. package/assets/esri/core/workers/chunks/c6030271bd6d39b6e1db.js +0 -1
  165. package/assets/esri/core/workers/chunks/d1a7d13e1d48abcd7bf1.js +0 -1
  166. package/assets/esri/core/workers/chunks/dcbc4072c18278c2b67d.js +0 -1
  167. package/assets/esri/core/workers/chunks/e610d24539a675fb054b.js +0 -1
  168. package/assets/esri/core/workers/chunks/ecb7ede6a8e6c05e4c6c.js +0 -1
  169. package/assets/esri/core/workers/chunks/f227b34cce6843df0fb6.js +0 -1
  170. package/request/ImageWithType.js +0 -2
  171. package/views/3d/layers/support/fetchTile.js +0 -2
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9616],{5482(t,e,n){function i(t,e,n,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,n,o):r(e,n))||o);return s>3&&o&&Object.defineProperty(e,n,o),o}function r(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var i,r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=e[Symbol.asyncDispose]}if(void 0===i){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=e[Symbol.dispose],n&&(r=i)}if("function"!=typeof i)throw new TypeError("Object not disposable.");r&&(i=function(){try{r.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:i,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>i,hk:()=>o,mS:()=>r}),Object.create,Object.create;var s="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var i=new Error(n);return i.name="SuppressedError",i.error=t,i.suppressed=e,i};function o(t){function e(e){t.error=t.hasError?new s(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,i=0;return function r(){for(;n=t.stack.pop();)try{if(!n.async&&1===i)return i=0,t.stack.push(n),Promise.resolve().then(r);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return i|=2,Promise.resolve(s).then(r,function(t){return e(t),r()})}else i|=1}catch(t){e(t)}if(1===i)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},69052(t,e,n){n.d(e,{hr:()=>r,ie:()=>h,uC:()=>a});var i=n(34727);class r{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return s(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,i.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+o(this.range,t-e,n)}minimalMonotonic(t,e,n){return s(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,i=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(i)?n:i}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function s(t,e,n,i,r=0,s=!1){return(i-=r)<e?i+=o(t,e-i):i>n&&(i-=o(t,i-n)),s&&i===n&&(i=e),i+r}function o(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const a=new r(0,2*Math.PI),h=(new r(-Math.PI,Math.PI),new r(0,360))},5443(t,e,n){n.d(e,{A:()=>p});var i,r=n(5482),s=n(799),o=n(91429),a=n(91075),h=n(86738),l=n(16930),u=n(94078),m=n(12176),c=n(21325),f=n(28735);function x(t,e,n){return null==e?n:null==n?e:t(e,n)}let p=i=class extends a.A{constructor(...t){super(...t),this.type="extent",this.xmin=0,this.ymin=0,this.mmin=void 0,this.zmin=void 0,this.xmax=0,this.ymax=0,this.mmax=void 0,this.zmax=void 0}normalizeCtorArgs(t,e,n,i,r){return function(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}(t)?{spatialReference:t,xmin:0,ymin:0,xmax:0,ymax:0}:"object"==typeof t?(t.spatialReference=null==t.spatialReference?l.A.WGS84:t.spatialReference,t):{xmin:t,ymin:e,xmax:n,ymax:i,spatialReference:r??l.A.WGS84}}static fromPoint(t){return new i({xmin:t.x,ymin:t.y,zmin:t.z,xmax:t.x,ymax:t.y,zmax:t.z,spatialReference:t.spatialReference})}get cache(){return this.commitProperty("xmin"),this.commitProperty("ymin"),this.commitProperty("zmin"),this.commitProperty("mmin"),this.commitProperty("xmax"),this.commitProperty("ymax"),this.commitProperty("zmax"),this.commitProperty("mmax"),this.commitProperty("spatialReference"),{}}get center(){const t=new h.A({x:.5*(this.xmin+this.xmax),y:.5*(this.ymin+this.ymax),spatialReference:this.spatialReference});return this.hasZ&&(t.z=.5*(this.zmin+this.zmax)),this.hasM&&(t.m=.5*(this.mmin+this.mmax)),t}get extent(){return this.clone()}get hasM(){return null!=this.mmin&&null!=this.mmax}get hasZ(){return null!=this.zmin&&null!=this.zmax}get height(){return Math.abs(this.ymax-this.ymin)}get width(){return Math.abs(this.xmax-this.xmin)}centerAt(t){const e=this.center;return null!=t.z&&this.hasZ?this.offset(t.x-e.x,t.y-e.y,t.z-e.z):this.offset(t.x-e.x,t.y-e.y)}clone(){const t=new i;return t.xmin=this.xmin,t.ymin=this.ymin,t.xmax=this.xmax,t.ymax=this.ymax,t.spatialReference=this.spatialReference,null!=this.zmin&&(t.zmin=this.zmin,t.zmax=this.zmax),null!=this.mmin&&(t.mmin=this.mmin,t.mmax=this.mmax),t}contains(t){if(!t)return!1;const e=this.spatialReference,n=t.spatialReference;return e&&n&&!e.equals(n)&&(0,f.y7)(e,n)&&(t=e.isWebMercator?(0,f.Gh)(t):(0,f.ci)(t,!0)),"point"===t.type?(0,u.qz)(this,t):"extent"===t.type&&(0,u.gH)(this,t)}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,n=t.spatialReference;return e&&n&&!e.equals(n)&&(0,f.y7)(e,n)&&(t=e.isWebMercator?(0,f.Gh)(t):(0,f.ci)(t,!0)),this.xmin===t.xmin&&this.ymin===t.ymin&&this.zmin===t.zmin&&this.mmin===t.mmin&&this.xmax===t.xmax&&this.ymax===t.ymax&&this.zmax===t.zmax&&this.mmax===t.mmax}expand(t){const e=.5*(1-t),n=this.width*e,i=this.height*e;if(this.xmin+=n,this.ymin+=i,this.xmax-=n,this.ymax-=i,this.hasZ){const t=(this.zmax-this.zmin)*e;this.zmin+=t,this.zmax-=t}if(this.hasM){const t=(this.mmax-this.mmin)*e;this.mmin+=t,this.mmax-=t}return this}intersects(t){if(null==t)return!1;"mesh"===t.type&&(t=t.extent);const e=this.spatialReference,n=t.spatialReference;return e&&n&&!(0,c.aI)(e,n)&&(0,f.y7)(e,n)&&(t=e.isWebMercator?(0,f.Gh)(t):(0,f.ci)(t,!0)),(0,m.xK)(t.type)(this,t)}normalize(){const t=this._normalize(!1,!0);return Array.isArray(t)?t:[t]}offset(t,e,n){return this.xmin+=t,this.ymin+=e,this.xmax+=t,this.ymax+=e,null!=n&&(this.zmin+=n,this.zmax+=n),this}shiftCentralMeridian(){return this._normalize(!0)}union(t){return this===t||(this.xmin=Math.min(this.xmin,t.xmin),this.ymin=Math.min(this.ymin,t.ymin),this.xmax=Math.max(this.xmax,t.xmax),this.ymax=Math.max(this.ymax,t.ymax),(this.hasZ||t.hasZ)&&(this.zmin=x(Math.min,this.zmin,t.zmin),this.zmax=x(Math.max,this.zmax,t.zmax)),(this.hasM||t.hasM)&&(this.mmin=x(Math.min,this.mmin,t.mmin),this.mmax=x(Math.max,this.mmax,t.mmax))),this}intersection(t){return this===t?this:null!=t&&this.intersects(t)?(this.xmin=Math.max(this.xmin,t.xmin),this.ymin=Math.max(this.ymin,t.ymin),this.xmax=Math.min(this.xmax,t.xmax),this.ymax=Math.min(this.ymax,t.ymax),(this.hasZ||t.hasZ)&&(this.zmin=x(Math.max,this.zmin,t.zmin),this.zmax=x(Math.min,this.zmax,t.zmax)),(this.hasM||t.hasM)&&(this.mmin=x(Math.max,this.mmin,t.mmin),this.mmax=x(Math.min,this.mmax,t.mmax)),this):null}toJSON(t){return this.write({},t)}_shiftCM(t=(0,c.Vp)(this.spatialReference)){if(!t||!this.spatialReference)return this;const e=this.spatialReference,n=this._getCM(t);if(n){const i=e.isWebMercator?(0,f.ci)(n):n;this.xmin-=n.x,this.xmax-=n.x,e.isWebMercator||(i.x=y(i.x,t).x),this.spatialReference=new l.A((0,s.HC)((e.isWGS84?t.altTemplate:null)??t.wkTemplate,{Central_Meridian:i.x}))}return this}_getCM(t){let e=null;const[n,i]=t.valid,r=this.xmin,s=this.xmax;return r>=n&&r<=i&&s>=n&&s<=i||(e=this.center),e}_normalize(t,e,n){const i=this.spatialReference;if(!i)return this;const r=n??(0,c.Vp)(i);if(null==r)return this;const s=this._getParts(r).map(t=>t.extent);if(s.length<2)return s[0]||this;if(s.length>2)return t?this._shiftCM(r):this.set({xmin:r.valid[0],xmax:r.valid[1]});if(t)return this._shiftCM(r);if(e)return s;let o=!0,a=!0;return s.forEach(t=>{t.hasZ||(o=!1),t.hasM||(a=!1)}),{rings:s.map(t=>{const e=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(o){const n=(t.zmax-t.zmin)/2;for(let t=0;t<e.length;t++)e[t].push(n)}if(a){const n=(t.mmax-t.mmin)/2;for(let t=0;t<e.length;t++)e[t].push(n)}return e}),hasZ:o,hasM:a,spatialReference:i}}_getParts(t){let e=this.cache._parts;if(!e){e=[];const{ymin:n,ymax:r,spatialReference:s}=this,o=this.width,a=this.xmin,h=this.xmax;let l;t=t||(0,c.Vp)(s);const[u,m]=t.valid;l=y(this.xmin,t);const f=l.x,x=l.frameId;l=y(this.xmax,t);const p=l.x,d=l.frameId,g=f===p&&o>0;if(o>2*m){const t=new i(a<h?f:p,n,m,r,s),o=new i(u,n,a<h?p:f,r,s),l=new i(0,n,m,r,s),c=new i(u,n,0,r,s),y=[],g=[];t.contains(l)&&y.push(x),t.contains(c)&&g.push(x),o.contains(l)&&y.push(d),o.contains(c)&&g.push(d);for(let t=x+1;t<d;t++)y.push(t),g.push(t);e.push({extent:t,frameIds:[x]},{extent:o,frameIds:[d]},{extent:l,frameIds:y},{extent:c,frameIds:g})}else f>p||g?e.push({extent:new i(f,n,m,r,s),frameIds:[x]},{extent:new i(u,n,p,r,s),frameIds:[d]}):e.push({extent:new i(f,n,p,r,s),frameIds:[x]});this.cache._parts=e}const n=this.hasZ,r=this.hasM;if(n||r){const t={};n&&(t.zmin=this.zmin,t.zmax=this.zmax),r&&(t.mmin=this.mmin,t.mmax=this.mmax);for(let n=0;n<e.length;n++)e[n].extent.set(t)}return e}};function y(t,e){const[n,i]=e.valid,r=2*i;let s,o=0;return t>i?(s=Math.ceil(Math.abs(t-i)/r),t-=s*r,o=s):t<n&&(s=Math.ceil(Math.abs(t-n)/r),t+=s*r,o=-s),{x:t,frameId:o}}(0,r.Cg)([(0,o.MZ)({readOnly:!0})],p.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],p.prototype,"center",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],p.prototype,"extent",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],p.prototype,"hasM",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],p.prototype,"hasZ",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],p.prototype,"height",null),(0,r.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:l.A.WGS84})],p.prototype,"spatialReference",void 0),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],p.prototype,"width",null),(0,r.Cg)([(0,o.MZ)({type:Number,json:{type:[Number,String],write:{enabled:!0,allowNull:!0}}})],p.prototype,"xmin",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],p.prototype,"ymin",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},read:t=>t??void 0,write:{overridePolicy(){return{enabled:this.hasM}}}}})],p.prototype,"mmin",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],p.prototype,"zmin",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],p.prototype,"xmax",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],p.prototype,"ymax",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},read:t=>t??void 0,write:{overridePolicy(){return{enabled:this.hasM}}}}})],p.prototype,"mmax",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],p.prototype,"zmax",void 0),p=i=(0,r.Cg)([(0,o.$K)("esri.geometry.Extent")],p),p.prototype.toJSON.isDefaultToJSON=!0},91075(t,e,n){n.d(e,{A:()=>h});var i=n(5482),r=n(25482),s=n(91429),o=n(16930),a=n(36005);let h=class extends r.o{constructor(...t){super(...t),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=o.A.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(t,e){if(t instanceof o.A)return t;if(null!=t){const n=new o.A;return n.read(t,e),n}return t}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(t){return this.cache[t]}setCacheValue(t,e){this.cache[t]=e}};(0,i.Cg)([(0,s.MZ)()],h.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],h.prototype,"cache",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],h.prototype,"extent",null),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],h.prototype,"hasM",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],h.prototype,"hasZ",void 0),(0,i.Cg)([(0,s.MZ)({type:o.A,json:{write:!0},value:o.A.WGS84})],h.prototype,"spatialReference",void 0),(0,i.Cg)([(0,a.w)("spatialReference")],h.prototype,"readSpatialReference",null),h=(0,i.Cg)([(0,s.$K)("esri.geometry.Geometry")],h)},86738(t,e,n){n.d(e,{A:()=>M});var i=n(5482),r=n(69622),s=n(53966),o=n(91429),a=n(56507),h=n(91075),l=n(16930),u=n(21325),m=n(28735);function c({x:t,y:e,spatialReference:n},i=[0,0]){if(n){if((0,u.K8)(n))return(0,m.tD)(t,e,i);if((0,u.EA)(n))return i[0]=t,i[1]=e,i}return null}const f=[0,0];var x,p=n(43937),y=n(36005);const d=[0,0];function g(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}let M=x=class extends h.A{static copy(t,e){e._set("x",t._get("x")),e._set("y",t._get("y")),e._set("z",t._get("z")),e._set("m",t._get("m"));const n=t._get("spatialReference");e._set("spatialReference",r.A.isFrozen(n)?n:n.clone())}constructor(...t){super(...t),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(t,e,n,i,r){let o;if(Array.isArray(t))o=t,r=e,t=o[0],e=o[1],n=o[2],i=o[3];else if(t&&"object"==typeof t){if(o=t,t=null!=o.x?o.x:o.longitude,e=null!=o.y?o.y:o.latitude,n=o.z,i=o.m,(r=o.spatialReference)&&"esri.geometry.SpatialReference"!==r.declaredClass&&(r=new l.A(r)),null!=o.longitude||null!=o.latitude)if(null==o.longitude)s.A.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==o.latitude)s.A.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!o.declaredClass&&r?.isWebMercator){const n=(0,m.je)(o.longitude,o.latitude,d);t=n[0],e=n[1]}}else g(n)?(r=n,n=null):g(i)&&(r=i,i=null);const a={x:t,y:e};return null==a.x&&null!=a.y?s.A.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==a.y&&null!=a.x&&s.A.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=r&&(a.spatialReference=r),null!=n&&(a.z=n),null!=i&&(a.m=i),a}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(t){t!==(void 0!==this._get("m"))&&(this._set("m",t?0:void 0),this._set("hasM",t))}get hasZ(){return void 0!==this.z}set hasZ(t){t!==(void 0!==this._get("z"))&&(this._set("z",t?0:void 0),this._set("hasZ",t))}get latitude(){return c(this,f)?.[1]??null}set latitude(t){const{spatialReference:e,x:n}=this;null!=t&&e&&(e.isWebMercator?this._set("y",(0,m.je)(n,t,d)[1]):e.isGeographic&&this._set("y",t),this._set("latitude",t))}get longitude(){return c(this,f)?.[0]??null}set longitude(t){const{y:e,spatialReference:n}=this;null!=t&&n&&(n.isWebMercator?this._set("x",(0,m.je)(t,e,d)[0]):n.isGeographic&&this._set("x",t),this._set("longitude",t))}writeX(t,e,n){e[n]=isNaN(t)?"NaN":t}readX(t){return"string"==typeof t?NaN:t}clone(){const t=new x;return t.x=this.x,t.y=this.y,t.z=this.z,t.m=this.m,t.spatialReference=this.spatialReference,t}copy(t){return x.copy(t,this),this}equals(t){if(null==t)return!1;const{x:e,y:n,z:i,m:r,spatialReference:s}=this,{z:o,m:a}=t;let{x:h,y:l,spatialReference:u}=t;if(!s.equals(u))if(s.isWebMercator&&u.isWGS84)[h,l]=(0,m.je)(h,l),u=s;else{if(!s.isWGS84||!u.isWebMercator)return!1;[h,l]=(0,m.tD)(h,l),u=s}return e===h&&n===l&&i===o&&r===a&&s.wkid===u.wkid}offset(t,e,n){return this.x+=t,this.y+=e,null!=n&&(this.z=(this.z??0)+n),this}normalize(){if(!this.spatialReference)return this;const t=(0,u.Vp)(this.spatialReference);if(!t)return this;let e=this.x;const[n,i]=t.valid,r=2*i;let s;return e>i?(s=Math.ceil(Math.abs(e-i)/r),e-=s*r):e<n&&(s=Math.ceil(Math.abs(e-n)/r),e+=s*r),this._set("x",e),this}distance(t){return function(t,e){const n=t.x-e.x,i=t.y-e.y,r=null!=t.z&&null!=e.z?t.z-e.z:0;return Math.sqrt(n*n+i*i+r*r)}(this,t)}toArray(){const t=this.hasZ,e=this.hasM;return t&&e?[this.x,this.y,this.z,this.m]:t?[this.x,this.y,this.z]:e?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],M.prototype,"hasM",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],M.prototype,"hasZ",null),(0,i.Cg)([(0,o.MZ)({type:Number})],M.prototype,"latitude",null),(0,i.Cg)([(0,o.MZ)({type:Number})],M.prototype,"longitude",null),(0,i.Cg)([(0,o.MZ)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,o.wg)(t=>isNaN(t)?t:(0,a.GB)(t))],M.prototype,"x",void 0),(0,i.Cg)([(0,p.K)("x")],M.prototype,"writeX",null),(0,i.Cg)([(0,y.w)("x")],M.prototype,"readX",null),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],M.prototype,"y",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],M.prototype,"z",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],M.prototype,"m",void 0),M=x=(0,i.Cg)([(0,o.$K)("esri.geometry.Point")],M),M.prototype.toJSON.isDefaultToJSON=!0},21276(t,e,n){n.d(e,{H:()=>s,f:()=>r});var i=n(49186);function r(t){if(t&&"object"==typeof t&&"type"in t&&"mesh"===t.type)throw new i.A("internal:mesh","Mesh geometries are not supported for this operation")}function s(t){t.forEach(r)}},19419(t,e,n){n.d(e,{$9:()=>z,C:()=>s,HY:()=>w,IO:()=>m,Ie:()=>C,Rj:()=>M,VL:()=>x,VY:()=>a,Wc:()=>y,aI:()=>Z,bx:()=>c,cY:()=>b,fA:()=>o,fT:()=>f,gR:()=>v,gX:()=>d,ib:()=>g,nw:()=>u,qv:()=>P,tK:()=>l,uJ:()=>p,vt:()=>r,w1:()=>h}),n(34727);var i=n(5443);function r(t=S){return[t[0],t[1],t[2],t[3]]}function s(t,e){return t!==e&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]),t}function o(t,e,n,i,s=r()){return s[0]=t,s[1]=e,s[2]=n,s[3]=i,s}function a(t,e=r()){return e[0]=t.xmin,e[1]=t.ymin,e[2]=t.xmax,e[3]=t.ymax,e}function h(t,e,n=new i.A){return n.xmin=t[0],n.ymin=t[1],n.xmax=t[2],n.ymax=t[3],n.spatialReference=e,n}function l(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function u(t,e){e<t[0]&&(t[0]=e),e>t[2]&&(t[2]=e)}function m(t,e){e<t[1]&&(t[1]=e),e>t[3]&&(t[3]=e)}function c(t,{xmin:e,ymin:n,xmax:i,ymax:r}){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],i),t[3]=Math.max(t[3],r)}function f(t,e,n){if(null!=e)if("length"in e)R(e)?(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[2]),n[3]=Math.max(t[3],e[3])):2!==e.length&&3!==e.length||(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[0]),n[3]=Math.max(t[3],e[1]));else switch(e.type){case"extent":n[0]=Math.min(t[0],e.xmin),n[1]=Math.min(t[1],e.ymin),n[2]=Math.max(t[2],e.xmax),n[3]=Math.max(t[3],e.ymax);break;case"point":n[0]=Math.min(t[0],e.x),n[1]=Math.min(t[1],e.y),n[2]=Math.max(t[2],e.x),n[3]=Math.max(t[3],e.y)}else s(n,t)}function x(t){return null==t||t[0]>=t[2]?0:t[2]-t[0]}function p(t){return null==t||t[1]>=t[3]?0:t[3]-t[1]}function y(t){return x(t)*p(t)}function d(t,e=[0,0]){return e[0]=(t[0]+t[2])/2,e[1]=(t[1]+t[3])/2,e}function g(t){const e=x(t),n=p(t);return Math.sqrt(e*e+n*n)}function M(t,e,n){return e>=t[0]&&n>=t[1]&&e<=t[2]&&n<=t[3]}function w(t,e){return Math.max(e[0],t[0])<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])<=Math.min(e[3],t[3])}function z(t,e,n){return Math.max(e[0],t[0])-n<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])-n<=Math.min(e[3],t[3])}function v(t,e){return e[0]>=t[0]&&e[2]<=t[2]&&e[1]>=t[1]&&e[3]<=t[3]}function b(t,e,n,i){return i??=t,i[0]=t[0]+e,i[1]=t[1]+n,i[2]=t[2]+e,i[3]=t[3]+n,i}function C(t){return t?s(t,P):r(P)}function R(t){return null!=t&&4===t.length}function Z(t,e){return R(t)&&R(e)?t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]:t===e}const P=[1/0,1/0,-1/0,-1/0],S=[0,0,0,0]},94078(t,e,n){n.d(e,{CW:()=>a,F8:()=>h,gH:()=>o,m3:()=>u,qz:()=>r,rL:()=>s,t1:()=>m});const i=[0,0];function r(t,e){return null!=e&&l(t,e.x,e.y,e.z)}function s(t,e){if(!e.points?.length)return!1;for(const n of e.points)if(!a(t,n))return!1;return!0}function o(t,e){const{xmin:n,ymin:i,zmin:r,xmax:s,ymax:o,zmax:a}=e;return t.hasZ&&e.hasZ?l(t,n,i,r)&&l(t,n,o,r)&&l(t,s,o,r)&&l(t,s,i,r)&&l(t,n,i,a)&&l(t,n,o,a)&&l(t,s,o,a)&&l(t,s,i,a):l(t,n,i)&&l(t,n,o)&&l(t,s,o)&&l(t,s,i)}function a(t,e){return l(t,e[0],e[1])}function h(t,e){return l(t,e[0],e[1],e[2])}function l(t,e,n,i){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax&&(null==i||!t.hasZ||i>=t.zmin&&i<=t.zmax)}function u(t,e){return i[1]=e.y,i[0]=e.x,function(t,e){return m(t.rings,e)}(t,i)}function m(t,e){if(!t||t.length<1)return!1;if(function(t){return!Array.isArray(t[0][0])}(t))return c(!1,t,e);let n=!1;for(let i=0,r=t.length;i<r;i++)n=c(n,t[i],e);return n}function c(t,e,n){const[i,r]=n;let s=t,o=0;for(let t=0,n=e.length;t<n;t++){o++,o===n&&(o=0);const[a,h]=e[t],[l,u]=e[o];(h<r&&u>=r||u<r&&h>=r)&&a+(r-h)/(u-h)*(l-a)<i&&(s=!s)}return s}},12176(t,e,n){n.d(e,{Ql:()=>y,fA:()=>f,xB:()=>s,xK:()=>d});var i=n(94078);function r(t,e){return(0,i.qz)(t,e)}function s(t,e){const n=t.hasZ&&e.hasZ;let i,r,s;if(t.xmin<=e.xmin){if(i=e.xmin,t.xmax<i)return!1}else if(i=t.xmin,e.xmax<i)return!1;if(t.ymin<=e.ymin){if(r=e.ymin,t.ymax<r)return!1}else if(r=t.ymin,e.ymax<r)return!1;if(n&&e.hasZ)if(t.zmin<=e.zmin){if(s=e.zmin,t.zmax<s)return!1}else if(s=t.zmin,e.zmax<s)return!1;return!0}function o(t,e){const{points:n,hasZ:r}=e,s=r?i.F8:i.CW;for(const e of n)if(s(t,e))return!0;return!1}const a=[0,0],h=[0,0],l=[0,0],u=[0,0],m=[a,h,l,u],c=[[l,a],[a,h],[h,u],[u,l]];function f(t,e){return function(t,e){a[0]=t.xmin,a[1]=t.ymax,h[0]=t.xmax,h[1]=t.ymax,l[0]=t.xmin,l[1]=t.ymin,u[0]=t.xmax,u[1]=t.ymin;for(const t of m)if((0,i.t1)(e,t))return!0;for(const n of e){if(!n.length)continue;let e=n[0];if((0,i.CW)(t,e))return!0;for(let r=1;r<n.length;r++){const s=n[r];if((0,i.CW)(t,s)||p(e,s,c))return!0;e=s}}return!1}(t,e.rings)}function x(t,e){a[0]=t.xmin,a[1]=t.ymax,h[0]=t.xmax,h[1]=t.ymax,l[0]=t.xmin,l[1]=t.ymin,u[0]=t.xmax,u[1]=t.ymin;const n=e.paths;for(const e of n){if(!n.length)continue;let r=e[0];if((0,i.CW)(t,r))return!0;for(let n=1;n<e.length;n++){const s=e[n];if((0,i.CW)(t,s)||p(r,s,c))return!0;r=s}}return!1}function p(t,e,n){for(let i=0;i<n.length;i++)if(y(t,e,n[i][0],n[i][1]))return!0;return!1}function y(t,e,n,i,r){const[s,o]=t,[a,h]=e,[l,u]=n,[m,c]=i,f=m-l,x=s-l,p=a-s,y=c-u,d=o-u,g=h-o,M=y*p-f*g;if(0===M)return!1;const w=(f*d-y*x)/M,z=(p*d-g*x)/M;return w>=0&&w<=1&&z>=0&&z<=1&&(r&&(r[0]=s+w*(a-s),r[1]=o+w*(h-o)),!0)}function d(t){switch(t){case"esriGeometryEnvelope":case"extent":return s;case"esriGeometryMultipoint":case"multipoint":return o;case"esriGeometryPoint":case"point":return r;case"esriGeometryMultiPatch":case"multipatch":case"esriGeometryPolygon":case"polygon":return f;case"esriGeometryPolyline":case"polyline":return x}}},28735(t,e,n){n.d(e,{Cv:()=>y,Gh:()=>M,ci:()=>w,je:()=>d,jg:()=>m,tD:()=>g,y7:()=>p,yw:()=>u});var i=n(4718),r=n(21276),s=n(16930),o=n(79258),a=n(21325);function h(t){return 57.29577951308232*t}function l(t){return.017453292519943*t}function u(t){return t/o.$O.radius}function m(t){return Math.PI/2-2*Math.atan(Math.exp(-t/o.$O.radius))}function c(t){return null!=t.wkid||null!=t.wkt}const f=[0,0];function x(t,e,n,i,r){const s=t,o=r;if(o.spatialReference=n,"x"in s&&"x"in o)[o.x,o.y]=e(s.x,s.y,f,i);else if("xmin"in s&&"xmin"in o)[o.xmin,o.ymin]=e(s.xmin,s.ymin,f,i),[o.xmax,o.ymax]=e(s.xmax,s.ymax,f,i);else if("paths"in s&&"paths"in o||"rings"in s&&"rings"in o){const t="paths"in s?s.paths:s.rings,n=[];let r;for(let s=0;s<t.length;s++){const o=t[s];r=[],n.push(r);for(let t=0;t<o.length;t++)r.push(e(o[t][0],o[t][1],[0,0],i)),o[t].length>2&&r[t].push(o[t][2]),o[t].length>3&&r[t].push(o[t][3])}"paths"in o?o.paths=n:o.rings=n}else if("points"in s&&"points"in o){const t=s.points,n=[];for(let r=0;r<t.length;r++)n[r]=e(t[r][0],t[r][1],[0,0],i),t[r].length>2&&n[r].push(t[r][2]),t[r].length>3&&n[r].push(t[r][3]);o.points=n}return r}function p(t,e){const n=t&&(c(t)?t:t.spatialReference),i=e&&(c(e)?e:e.spatialReference);return!(t&&"type"in t&&"mesh"===t.type||e&&"type"in e&&"mesh"===e.type||!n||!i)&&(!!(0,a.aI)(i,n)||(0,a.K8)(i)&&(0,a.oT)(n)||(0,a.K8)(n)&&(0,a.oT)(i))}function y(t,e){if(null==t)return null;const n=t.spatialReference,r=e&&(c(e)?e:e.spatialReference);return p(n,r)?(0,a.aI)(n,r)?(0,i.o8)(t):(0,a.K8)(r)?x(t,d,s.A.WebMercator,!1,(0,i.o8)(t)):(0,a.oT)(r)?x(t,g,s.A.WGS84,!1,(0,i.o8)(t)):null:null}function d(t,e,n=[0,0]){e>89.99999?e=89.99999:e<-89.99999&&(e=-89.99999);const i=l(e);return n[0]=l(t)*o.$O.radius,n[1]=o.$O.halfSemiMajorAxis*Math.log((1+Math.sin(i))/(1-Math.sin(i))),n}function g(t,e,n=[0,0],i=!1){if(t===a.Mc[0])n[0]=-180;else if(t===a.Mc[1])n[0]=180;else{const e=h(t/o.$O.radius);n[0]=i?e:e-360*Math.floor((e+180)/360)}return n[1]=h(Math.PI/2-2*Math.atan(Math.exp(-e/o.$O.radius))),n}function M(t,e=!1,n=(0,i.o8)(t)){return(0,r.f)(t),(0,r.f)(n),x(t,d,s.A.WebMercator,e,n)}function w(t,e=!1,n=(0,i.o8)(t)){return(0,r.f)(t),(0,r.f)(n),x(t,g,s.A.WGS84,e,n)}},49616(t,e,n){n.r(e),n.d(e,{default:()=>l});var i=n(5482),r=n(91429),s=n(19419),o=n(69052);n(21325);var a=n(97441);let h=class{constructor(){this._tileData=new Map}async generateStreamlines(t){const{flowData:e,flowExtentInfo:n,needsMagnitude:i,simulationSettings:r,startPositions:s}=t,o=u((0,a.DE)(r,e),r,n.modelSize,i,s);return{result:{streamlines:o},transferList:o?.map(t=>t.vertices.buffer)}}async generateTiledStreamlines(t){const{flowDataTiles:e,flowExtentInfo:n,needsMagnitude:i,reset:r,simulationSettings:h,startPositions:l}=t;this._updateTileData(e,r);const m=u(function(t,e,n){const[i,r]=n.modelSize;let h=null;const l=new Map;e.forEach(e=>{l.set(e.lij,(0,a.DE)(t,e))});const u=(t,e,n)=>(0,s.Rj)(t.extent,e,n);return(a,m)=>{const c=Math.round(a),f=Math.round(m);if(!t.wrapAround&&(c<0||c>=i||f<0||f>=r))return[0,0];const[x,p]=function(t,e,n,i){const{extent:r,modelSize:a,valid:h}=t,[l,u,m]=r,c=function(t,e,n){if(null!=n&&t>e){const[i,r]=n;return r-t+(e-i)}return e-t}(l,m,h);let f=e/a[0]*c+l;return null!=h&&i&&(f=new o.hr(h[0],h[1]).normalize(f)),[f,(a[1]-n)/a[1]*(0,s.uJ)(r)+u]}(n,a,m,!0);if(!function(t,e,n){const{extent:i,valid:r}=t,[s,o,a,h]=i;return!(n<o||n>h)&&(null!=r&&s>a?e>=a||e<=s:e>=s&&e<=a)}(n,x,p))return[0,0];if(null==h||!u(h,x,p)){h=null;for(const[t,n]of e)if(u(n,x,p)){h=n;break}}if(null==h?.data)return[0,0];const y=l.get(h.lij);if(null==y)return[0,0];const{width:d,height:g,extent:M}=h;return y((x-M[0])/(0,s.VL)(M)*d,g-(p-M[1])/(0,s.uJ)(M)*g)}}(h,this._tileData,n),h,n.modelSize,i,l);return{result:{streamlines:m},transferList:m?.map(t=>t.vertices.buffer)??[]}}_updateTileData(t,e){if(e)for(const e of this._tileData.keys())t.has(e)||this._tileData.delete(e);t.forEach((t,e)=>{"delete"===t.type?this._tileData.delete(e):"on-worker"!==t.type&&"invalid"!==t.type&&this._tileData.set(e,t.data)})}};h=(0,i.Cg)([(0,r.$K)("esri.views.3d.support.flow.FlowWorker")],h);const l=h;function u(t,e,n,i,r){if(null==t)return;const s=(0,a.S1)(e,t,n[0],n[1],{positions:r}),o=[],h=function(t){return t?4:3}(i);for(const{vertices:t,stage:e}of s){const n=new Float32Array(t.length*h);for(let e=0;e<t.length;e++)n[e*h]=t[e].x,n[e*h+1]=t[e].y,n[e*h+2]=t[e].time,i&&(n[e*h+3]=t[e].speed);o.push({vertices:n,stage:e,hasMagnitude:i})}return o}},97441(t,e,n){n.d(e,{DE:()=>h,S1:()=>o,dF:()=>a}),n(44208),n(53966);var i=n(34727),r=n(87811),s=n(78659);function o(t,e,n,i,s){if(t.density<=0)return[];const{positions:o}=s,a=[],h=new r.A,m=1/Math.max(t.lineCollisionWidth,1),c=Math.round(n*m),f=Math.round(i*m),x=new Int32Array(c*f);for(let t=0;t<x.length;t++)x[t]=-1;const p={raster:x,width:c,height:f,resolutionFactor:m},y={},d=t.lineSpacing/Math.sqrt(t.density),g=Math.floor(i/d),M=Math.floor(n/d);for(let t=0;t<g;t++){const e=t*d;for(let n=0;n<M;n++){const i=n*d;y[`${n}-${t}`]={x:i,y:e,positions:[]}}}for(const{x:t,y:e}of o){const n=y[`${Math.floor(t/d)}-${Math.floor(e/d)}`];n&&n.positions.push([t,e])}const w=[];for(const t in y){const e=y[t];if(0===e.positions.length)w.push({x:e.x+d/2,y:e.y+d/2,sort:.66+.33*h.getFloat(),stage:0});else{const[t]=e.positions.splice(0,1);w.push({x:t[0],y:t[1],sort:.33*h.getFloat(),stage:1});for(const[t,n]of e.positions)w.push({x:t,y:n,sort:.33+.33*h.getFloat(),stage:2})}}w.sort((t,e)=>t.sort-e.sort);for(const{x:r,y:s,stage:o}of w){if(a.length>=t.maxNumberOfStreamlines)break;const m=t.onlyForwardTracing?l(1,t,e,r,s,[n,i],a.length,p):u(t,e,r,s,[n,i],a.length,h,p);m.length<2||a.push({stage:o,vertices:m})}return a}function a(t){for(let e=0;e<t.mask.length;e++)0===t.mask[e]&&(t.data[2*e]=0,t.data[2*e+1]=0)}function h(t,e){const n=function(t,e,n,i){if(0===i)return t;const r=Math.round(3*i),s=new Array(2*r+1);let o=0;for(let t=-r;t<=r;t++){const e=Math.exp(-t*t/(i*i));s[t+r]=e,o+=e}for(let t=-r;t<=r;t++)s[t+r]/=o;const a=new Float32Array(t.length);for(let i=0;i<n;i++)for(let n=0;n<e;n++){let o=0,h=0;for(let a=-r;a<=r;a++){if(n+a<0||n+a>=e)continue;const l=s[a+r];o+=l*t[2*(i*e+(n+a))],h+=l*t[2*(i*e+(n+a))+1]}a[2*(i*e+n)]=o,a[2*(i*e+n)+1]=h}const h=new Float32Array(t.length);for(let t=0;t<e;t++)for(let i=0;i<n;i++){let o=0,l=0;for(let h=-r;h<=r;h++){if(i+h<0||i+h>=n)continue;const u=s[h+r];o+=u*a[2*((i+h)*e+t)],l+=u*a[2*((i+h)*e+t)+1]}h[2*(i*e+t)]=o,h[2*(i*e+t)+1]=l}return h}(e.data,e.width,e.height,t.smoothing);return t.interpolate?(t,i)=>{const r=Math.floor(t),s=Math.floor(i);if(r<0||r>=e.width)return[0,0];if(s<0||s>=e.height)return[0,0];const o=t-r,a=i-s,h=r,l=s,u=r<e.width-1?r+1:r,m=s<e.height-1?s+1:s,c=n[2*(l*e.width+h)],f=n[2*(l*e.width+u)],x=n[2*(m*e.width+h)],p=n[2*(m*e.width+u)],y=n[2*(l*e.width+h)+1],d=n[2*(l*e.width+u)+1];return[(c*(1-a)+x*a)*(1-o)+(f*(1-a)+p*a)*o,(y*(1-a)+n[2*(m*e.width+h)+1]*a)*(1-o)+(d*(1-a)+n[2*(m*e.width+u)+1]*a)*o]}:(t,i)=>{const r=Math.round(t),s=Math.round(i);return r<0||r>=e.width||s<0||s>=e.height?[0,0]:[n[2*(s*e.width+r)],n[2*(s*e.width+r)+1]]}}function l(t,e,n,r,o,a,h,l){const u=[],{raster:m,width:c,height:f,resolutionFactor:x}=l;let p=r,y=o,d=(0,s.Kp)(0),[g,M]=n(p,y);g*=e.velocityScale,M*=e.velocityScale;const w=Math.sqrt(g*g+M*M);let z,v;u.push({x:p,y,time:d,speed:w});for(let r=0;r<e.verticesPerLine;r++){let[r,o]=n(p,y);r*=e.velocityScale,o*=e.velocityScale;const l=Math.sqrt(r*r+o*o);if(l<e.minSpeedThreshold)return u;const g=t*r/l,M=t*o/l;p+=g*e.segmentLength,y+=M*e.segmentLength,e.wrapAround&&(p=(0,i.OS)(p,a[0]));const w=t*e.segmentLength/l;if(d=(0,s.Kp)(d+w),Math.acos(g*z+M*v)>e.maxTurnAngle)return u;if(e.collisions){let t=Math.round(p*x);const n=Math.round(y*x);if(e.wrapAround&&(t=(0,i.OS)(t,c)),t<0||t>c-1||n<0||n>f-1)return u;const r=m[n*c+t];if(-1!==r&&r!==h)return u;m[n*c+t]=h}u.push({x:p,y,time:d,speed:l}),z=g,v=M}return u}function u(t,e,n,i,r,s,o,a){const h=Math.round((.2+.6*o.getFloat())*t.verticesPerLine),u=t.verticesPerLine-h,m=l(-1,{...t,verticesPerLine:u},e,n,i,r,s,a),c=l(1,{...t,verticesPerLine:h},e,n,i,r,s,a),f=m.reverse();return f.splice(-1,1),f.concat(c)}n(5443),n(21325)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9616],{5482(t,e,n){function i(t,e,n,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,n,o):r(e,n))||o);return s>3&&o&&Object.defineProperty(e,n,o),o}function r(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var i,r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=e[Symbol.asyncDispose]}if(void 0===i){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=e[Symbol.dispose],n&&(r=i)}if("function"!=typeof i)throw new TypeError("Object not disposable.");r&&(i=function(){try{r.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:i,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>i,hk:()=>o,mS:()=>r}),Object.create,Object.create;var s="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var i=new Error(n);return i.name="SuppressedError",i.error=t,i.suppressed=e,i};function o(t){function e(e){t.error=t.hasError?new s(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,i=0;return function r(){for(;n=t.stack.pop();)try{if(!n.async&&1===i)return i=0,t.stack.push(n),Promise.resolve().then(r);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return i|=2,Promise.resolve(s).then(r,function(t){return e(t),r()})}else i|=1}catch(t){e(t)}if(1===i)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},69052(t,e,n){n.d(e,{hr:()=>r,ie:()=>h,uC:()=>a});var i=n(34727);class r{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return s(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,i.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+o(this.range,t-e,n)}minimalMonotonic(t,e,n){return s(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,i=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(i)?n:i}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function s(t,e,n,i,r=0,s=!1){return(i-=r)<e?i+=o(t,e-i):i>n&&(i-=o(t,i-n)),s&&i===n&&(i=e),i+r}function o(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const a=new r(0,2*Math.PI),h=(new r(-Math.PI,Math.PI),new r(0,360))},5443(t,e,n){n.d(e,{A:()=>p});var i,r=n(5482),s=n(799),o=n(91429),a=n(91075),h=n(86738),l=n(16930),u=n(94078),m=n(12176),c=n(21325),f=n(28735);function x(t,e,n){return null==e?n:null==n?e:t(e,n)}let p=i=class extends a.A{constructor(...t){super(...t),this.type="extent",this.xmin=0,this.ymin=0,this.mmin=void 0,this.zmin=void 0,this.xmax=0,this.ymax=0,this.mmax=void 0,this.zmax=void 0}normalizeCtorArgs(t,e,n,i,r){return function(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}(t)?{spatialReference:t,xmin:0,ymin:0,xmax:0,ymax:0}:"object"==typeof t?(t.spatialReference=null==t.spatialReference?l.A.WGS84:t.spatialReference,t):{xmin:t,ymin:e,xmax:n,ymax:i,spatialReference:r??l.A.WGS84}}static fromPoint(t){return new i({xmin:t.x,ymin:t.y,zmin:t.z,xmax:t.x,ymax:t.y,zmax:t.z,spatialReference:t.spatialReference})}get cache(){return this.commitProperty("xmin"),this.commitProperty("ymin"),this.commitProperty("zmin"),this.commitProperty("mmin"),this.commitProperty("xmax"),this.commitProperty("ymax"),this.commitProperty("zmax"),this.commitProperty("mmax"),this.commitProperty("spatialReference"),{}}get center(){const t=new h.A({x:.5*(this.xmin+this.xmax),y:.5*(this.ymin+this.ymax),spatialReference:this.spatialReference});return this.hasZ&&(t.z=.5*(this.zmin+this.zmax)),this.hasM&&(t.m=.5*(this.mmin+this.mmax)),t}get extent(){return this.clone()}get hasM(){return null!=this.mmin&&null!=this.mmax}get hasZ(){return null!=this.zmin&&null!=this.zmax}get height(){return Math.abs(this.ymax-this.ymin)}get width(){return Math.abs(this.xmax-this.xmin)}centerAt(t){const e=this.center;return null!=t.z&&this.hasZ?this.offset(t.x-e.x,t.y-e.y,t.z-e.z):this.offset(t.x-e.x,t.y-e.y)}clone(){const t=new i;return t.xmin=this.xmin,t.ymin=this.ymin,t.xmax=this.xmax,t.ymax=this.ymax,t.spatialReference=this.spatialReference,null!=this.zmin&&(t.zmin=this.zmin,t.zmax=this.zmax),null!=this.mmin&&(t.mmin=this.mmin,t.mmax=this.mmax),t}contains(t){if(!t)return!1;const e=this.spatialReference,n=t.spatialReference;return e&&n&&!e.equals(n)&&(0,f.y7)(e,n)&&(t=e.isWebMercator?(0,f.Gh)(t):(0,f.ci)(t,!0)),"point"===t.type?(0,u.qz)(this,t):"extent"===t.type&&(0,u.gH)(this,t)}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,n=t.spatialReference;return e&&n&&!e.equals(n)&&(0,f.y7)(e,n)&&(t=e.isWebMercator?(0,f.Gh)(t):(0,f.ci)(t,!0)),this.xmin===t.xmin&&this.ymin===t.ymin&&this.zmin===t.zmin&&this.mmin===t.mmin&&this.xmax===t.xmax&&this.ymax===t.ymax&&this.zmax===t.zmax&&this.mmax===t.mmax}expand(t){const e=.5*(1-t),n=this.width*e,i=this.height*e;if(this.xmin+=n,this.ymin+=i,this.xmax-=n,this.ymax-=i,this.hasZ){const t=(this.zmax-this.zmin)*e;this.zmin+=t,this.zmax-=t}if(this.hasM){const t=(this.mmax-this.mmin)*e;this.mmin+=t,this.mmax-=t}return this}intersects(t){if(null==t)return!1;"mesh"===t.type&&(t=t.extent);const e=this.spatialReference,n=t.spatialReference;return e&&n&&!(0,c.aI)(e,n)&&(0,f.y7)(e,n)&&(t=e.isWebMercator?(0,f.Gh)(t):(0,f.ci)(t,!0)),(0,m.xK)(t.type)(this,t)}normalize(){const t=this._normalize(!1,!0);return Array.isArray(t)?t:[t]}offset(t,e,n){return this.xmin+=t,this.ymin+=e,this.xmax+=t,this.ymax+=e,null!=n&&(this.zmin+=n,this.zmax+=n),this}shiftCentralMeridian(){return this._normalize(!0)}union(t){return this===t||(this.xmin=Math.min(this.xmin,t.xmin),this.ymin=Math.min(this.ymin,t.ymin),this.xmax=Math.max(this.xmax,t.xmax),this.ymax=Math.max(this.ymax,t.ymax),(this.hasZ||t.hasZ)&&(this.zmin=x(Math.min,this.zmin,t.zmin),this.zmax=x(Math.max,this.zmax,t.zmax)),(this.hasM||t.hasM)&&(this.mmin=x(Math.min,this.mmin,t.mmin),this.mmax=x(Math.max,this.mmax,t.mmax))),this}intersection(t){return this===t?this:null!=t&&this.intersects(t)?(this.xmin=Math.max(this.xmin,t.xmin),this.ymin=Math.max(this.ymin,t.ymin),this.xmax=Math.min(this.xmax,t.xmax),this.ymax=Math.min(this.ymax,t.ymax),(this.hasZ||t.hasZ)&&(this.zmin=x(Math.max,this.zmin,t.zmin),this.zmax=x(Math.min,this.zmax,t.zmax)),(this.hasM||t.hasM)&&(this.mmin=x(Math.max,this.mmin,t.mmin),this.mmax=x(Math.min,this.mmax,t.mmax)),this):null}toJSON(t){return this.write({},t)}_shiftCM(t=(0,c.Vp)(this.spatialReference)){if(!t||!this.spatialReference)return this;const e=this.spatialReference,n=this._getCM(t);if(n){const i=e.isWebMercator?(0,f.ci)(n):n;this.xmin-=n.x,this.xmax-=n.x,e.isWebMercator||(i.x=y(i.x,t).x),this.spatialReference=new l.A((0,s.HC)((e.isWGS84?t.altTemplate:null)??t.wkTemplate,{Central_Meridian:i.x}))}return this}_getCM(t){let e=null;const[n,i]=t.valid,r=this.xmin,s=this.xmax;return r>=n&&r<=i&&s>=n&&s<=i||(e=this.center),e}_normalize(t,e,n){const i=this.spatialReference;if(!i)return this;const r=n??(0,c.Vp)(i);if(null==r)return this;const s=this._getParts(r).map(t=>t.extent);if(s.length<2)return s[0]||this;if(s.length>2)return t?this._shiftCM(r):this.set({xmin:r.valid[0],xmax:r.valid[1]});if(t)return this._shiftCM(r);if(e)return s;let o=!0,a=!0;return s.forEach(t=>{t.hasZ||(o=!1),t.hasM||(a=!1)}),{rings:s.map(t=>{const e=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(o){const n=(t.zmax-t.zmin)/2;for(let t=0;t<e.length;t++)e[t].push(n)}if(a){const n=(t.mmax-t.mmin)/2;for(let t=0;t<e.length;t++)e[t].push(n)}return e}),hasZ:o,hasM:a,spatialReference:i}}_getParts(t){let e=this.cache._parts;if(!e){e=[];const{ymin:n,ymax:r,spatialReference:s}=this,o=this.width,a=this.xmin,h=this.xmax;let l;t=t||(0,c.Vp)(s);const[u,m]=t.valid;l=y(this.xmin,t);const f=l.x,x=l.frameId;l=y(this.xmax,t);const p=l.x,d=l.frameId,g=f===p&&o>0;if(o>2*m){const t=new i(a<h?f:p,n,m,r,s),o=new i(u,n,a<h?p:f,r,s),l=new i(0,n,m,r,s),c=new i(u,n,0,r,s),y=[],g=[];t.contains(l)&&y.push(x),t.contains(c)&&g.push(x),o.contains(l)&&y.push(d),o.contains(c)&&g.push(d);for(let t=x+1;t<d;t++)y.push(t),g.push(t);e.push({extent:t,frameIds:[x]},{extent:o,frameIds:[d]},{extent:l,frameIds:y},{extent:c,frameIds:g})}else f>p||g?e.push({extent:new i(f,n,m,r,s),frameIds:[x]},{extent:new i(u,n,p,r,s),frameIds:[d]}):e.push({extent:new i(f,n,p,r,s),frameIds:[x]});this.cache._parts=e}const n=this.hasZ,r=this.hasM;if(n||r){const t={};n&&(t.zmin=this.zmin,t.zmax=this.zmax),r&&(t.mmin=this.mmin,t.mmax=this.mmax);for(let n=0;n<e.length;n++)e[n].extent.set(t)}return e}};function y(t,e){const[n,i]=e.valid,r=2*i;let s,o=0;return t>i?(s=Math.ceil(Math.abs(t-i)/r),t-=s*r,o=s):t<n&&(s=Math.ceil(Math.abs(t-n)/r),t+=s*r,o=-s),{x:t,frameId:o}}(0,r.Cg)([(0,o.MZ)({readOnly:!0})],p.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],p.prototype,"center",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],p.prototype,"extent",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],p.prototype,"hasM",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],p.prototype,"hasZ",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],p.prototype,"height",null),(0,r.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:l.A.WGS84})],p.prototype,"spatialReference",void 0),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],p.prototype,"width",null),(0,r.Cg)([(0,o.MZ)({type:Number,json:{type:[Number,String],write:{enabled:!0,allowNull:!0}}})],p.prototype,"xmin",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],p.prototype,"ymin",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},read:t=>t??void 0,write:{overridePolicy(){return{enabled:this.hasM}}}}})],p.prototype,"mmin",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],p.prototype,"zmin",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],p.prototype,"xmax",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],p.prototype,"ymax",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},read:t=>t??void 0,write:{overridePolicy(){return{enabled:this.hasM}}}}})],p.prototype,"mmax",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],p.prototype,"zmax",void 0),p=i=(0,r.Cg)([(0,o.$K)("esri.geometry.Extent")],p),p.prototype.toJSON.isDefaultToJSON=!0},91075(t,e,n){n.d(e,{A:()=>h});var i=n(5482),r=n(25482),s=n(91429),o=n(16930),a=n(36005);let h=class extends r.o{constructor(...t){super(...t),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=o.A.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(t,e){if(t instanceof o.A)return t;if(null!=t){const n=new o.A;return n.read(t,e),n}return t}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(t){return this.cache[t]}setCacheValue(t,e){this.cache[t]=e}};(0,i.Cg)([(0,s.MZ)()],h.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],h.prototype,"cache",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],h.prototype,"extent",null),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],h.prototype,"hasM",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],h.prototype,"hasZ",void 0),(0,i.Cg)([(0,s.MZ)({type:o.A,json:{write:!0},value:o.A.WGS84})],h.prototype,"spatialReference",void 0),(0,i.Cg)([(0,a.w)("spatialReference")],h.prototype,"readSpatialReference",null),h=(0,i.Cg)([(0,s.$K)("esri.geometry.Geometry")],h)},86738(t,e,n){n.d(e,{A:()=>M});var i=n(5482),r=n(69622),s=n(53966),o=n(91429),a=n(56507),h=n(91075),l=n(16930),u=n(21325),m=n(28735);function c({x:t,y:e,spatialReference:n},i=[0,0]){if(n){if((0,u.K8)(n))return(0,m.tD)(t,e,i);if((0,u.EA)(n))return i[0]=t,i[1]=e,i}return null}const f=[0,0];var x,p=n(43937),y=n(36005);const d=[0,0];function g(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}let M=x=class extends h.A{static copy(t,e){e._set("x",t._get("x")),e._set("y",t._get("y")),e._set("z",t._get("z")),e._set("m",t._get("m"));const n=t._get("spatialReference");e._set("spatialReference",r.A.isFrozen(n)?n:n.clone())}constructor(...t){super(...t),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(t,e,n,i,r){let o;if(Array.isArray(t))o=t,r=e,t=o[0],e=o[1],n=o[2],i=o[3];else if(t&&"object"==typeof t){if(o=t,t=null!=o.x?o.x:o.longitude,e=null!=o.y?o.y:o.latitude,n=o.z,i=o.m,(r=o.spatialReference)&&"esri.geometry.SpatialReference"!==r.declaredClass&&(r=new l.A(r)),null!=o.longitude||null!=o.latitude)if(null==o.longitude)s.A.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==o.latitude)s.A.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!o.declaredClass&&r?.isWebMercator){const n=(0,m.je)(o.longitude,o.latitude,d);t=n[0],e=n[1]}}else g(n)?(r=n,n=null):g(i)&&(r=i,i=null);const a={x:t,y:e};return null==a.x&&null!=a.y?s.A.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==a.y&&null!=a.x&&s.A.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=r&&(a.spatialReference=r),null!=n&&(a.z=n),null!=i&&(a.m=i),a}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(t){t!==(void 0!==this._get("m"))&&(this._set("m",t?0:void 0),this._set("hasM",t))}get hasZ(){return void 0!==this.z}set hasZ(t){t!==(void 0!==this._get("z"))&&(this._set("z",t?0:void 0),this._set("hasZ",t))}get latitude(){return c(this,f)?.[1]??null}set latitude(t){const{spatialReference:e,x:n}=this;null!=t&&e&&(e.isWebMercator?this._set("y",(0,m.je)(n,t,d)[1]):e.isGeographic&&this._set("y",t),this._set("latitude",t))}get longitude(){return c(this,f)?.[0]??null}set longitude(t){const{y:e,spatialReference:n}=this;null!=t&&n&&(n.isWebMercator?this._set("x",(0,m.je)(t,e,d)[0]):n.isGeographic&&this._set("x",t),this._set("longitude",t))}writeX(t,e,n){e[n]=isNaN(t)?"NaN":t}readX(t){return"string"==typeof t?NaN:t}clone(){const t=new x;return t.x=this.x,t.y=this.y,t.z=this.z,t.m=this.m,t.spatialReference=this.spatialReference,t}copy(t){return x.copy(t,this),this}equals(t){if(null==t)return!1;const{x:e,y:n,z:i,m:r,spatialReference:s}=this,{z:o,m:a}=t;let{x:h,y:l,spatialReference:u}=t;if(!s.equals(u))if(s.isWebMercator&&u.isWGS84)[h,l]=(0,m.je)(h,l),u=s;else{if(!s.isWGS84||!u.isWebMercator)return!1;[h,l]=(0,m.tD)(h,l),u=s}return e===h&&n===l&&i===o&&r===a&&s.wkid===u.wkid}offset(t,e,n){return this.x+=t,this.y+=e,null!=n&&(this.z=(this.z??0)+n),this}normalize(){if(!this.spatialReference)return this;const t=(0,u.Vp)(this.spatialReference);if(!t)return this;let e=this.x;const[n,i]=t.valid,r=2*i;let s;return e>i?(s=Math.ceil(Math.abs(e-i)/r),e-=s*r):e<n&&(s=Math.ceil(Math.abs(e-n)/r),e+=s*r),this._set("x",e),this}distance(t){return function(t,e){const n=t.x-e.x,i=t.y-e.y,r=null!=t.z&&null!=e.z?t.z-e.z:0;return Math.sqrt(n*n+i*i+r*r)}(this,t)}toArray(){const t=this.hasZ,e=this.hasM;return t&&e?[this.x,this.y,this.z,this.m]:t?[this.x,this.y,this.z]:e?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],M.prototype,"hasM",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],M.prototype,"hasZ",null),(0,i.Cg)([(0,o.MZ)({type:Number})],M.prototype,"latitude",null),(0,i.Cg)([(0,o.MZ)({type:Number})],M.prototype,"longitude",null),(0,i.Cg)([(0,o.MZ)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,o.wg)(t=>isNaN(t)?t:(0,a.GB)(t))],M.prototype,"x",void 0),(0,i.Cg)([(0,p.K)("x")],M.prototype,"writeX",null),(0,i.Cg)([(0,y.w)("x")],M.prototype,"readX",null),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],M.prototype,"y",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],M.prototype,"z",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],M.prototype,"m",void 0),M=x=(0,i.Cg)([(0,o.$K)("esri.geometry.Point")],M),M.prototype.toJSON.isDefaultToJSON=!0},21276(t,e,n){n.d(e,{H:()=>s,f:()=>r});var i=n(49186);function r(t){if(t&&"object"==typeof t&&"type"in t&&"mesh"===t.type)throw new i.A("internal:mesh","Mesh geometries are not supported for this operation")}function s(t){t.forEach(r)}},19419(t,e,n){n.d(e,{$9:()=>z,C:()=>s,HY:()=>w,IO:()=>m,Ie:()=>C,Rj:()=>M,VL:()=>x,VY:()=>a,Wc:()=>y,aI:()=>Z,bx:()=>c,cY:()=>b,fA:()=>o,fT:()=>f,gR:()=>v,gX:()=>d,ib:()=>g,nw:()=>u,qv:()=>P,tK:()=>l,uJ:()=>p,vt:()=>r,w1:()=>h}),n(34727);var i=n(5443);function r(t=S){return[t[0],t[1],t[2],t[3]]}function s(t,e){return t!==e&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]),t}function o(t,e,n,i,s=r()){return s[0]=t,s[1]=e,s[2]=n,s[3]=i,s}function a(t,e=r()){return e[0]=t.xmin,e[1]=t.ymin,e[2]=t.xmax,e[3]=t.ymax,e}function h(t,e,n=new i.A){return n.xmin=t[0],n.ymin=t[1],n.xmax=t[2],n.ymax=t[3],n.spatialReference=e,n}function l(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function u(t,e){e<t[0]&&(t[0]=e),e>t[2]&&(t[2]=e)}function m(t,e){e<t[1]&&(t[1]=e),e>t[3]&&(t[3]=e)}function c(t,{xmin:e,ymin:n,xmax:i,ymax:r}){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],i),t[3]=Math.max(t[3],r)}function f(t,e,n){if(null!=e)if("length"in e)R(e)?(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[2]),n[3]=Math.max(t[3],e[3])):2!==e.length&&3!==e.length||(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[0]),n[3]=Math.max(t[3],e[1]));else switch(e.type){case"extent":n[0]=Math.min(t[0],e.xmin),n[1]=Math.min(t[1],e.ymin),n[2]=Math.max(t[2],e.xmax),n[3]=Math.max(t[3],e.ymax);break;case"point":n[0]=Math.min(t[0],e.x),n[1]=Math.min(t[1],e.y),n[2]=Math.max(t[2],e.x),n[3]=Math.max(t[3],e.y)}else s(n,t)}function x(t){return null==t||t[0]>=t[2]?0:t[2]-t[0]}function p(t){return null==t||t[1]>=t[3]?0:t[3]-t[1]}function y(t){return x(t)*p(t)}function d(t,e=[0,0]){return e[0]=(t[0]+t[2])/2,e[1]=(t[1]+t[3])/2,e}function g(t){const e=x(t),n=p(t);return Math.sqrt(e*e+n*n)}function M(t,e,n){return e>=t[0]&&n>=t[1]&&e<=t[2]&&n<=t[3]}function w(t,e){return Math.max(e[0],t[0])<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])<=Math.min(e[3],t[3])}function z(t,e,n){return Math.max(e[0],t[0])-n<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])-n<=Math.min(e[3],t[3])}function v(t,e){return e[0]>=t[0]&&e[2]<=t[2]&&e[1]>=t[1]&&e[3]<=t[3]}function b(t,e,n,i){return i??=t,i[0]=t[0]+e,i[1]=t[1]+n,i[2]=t[2]+e,i[3]=t[3]+n,i}function C(t){return t?s(t,P):r(P)}function R(t){return null!=t&&4===t.length}function Z(t,e){return R(t)&&R(e)?t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]:t===e}const P=[1/0,1/0,-1/0,-1/0],S=[0,0,0,0]},94078(t,e,n){n.d(e,{CW:()=>a,F8:()=>h,gH:()=>o,m3:()=>u,qz:()=>r,rL:()=>s,t1:()=>m});const i=[0,0];function r(t,e){return null!=e&&l(t,e.x,e.y,e.z)}function s(t,e){if(!e.points?.length)return!1;for(const n of e.points)if(!a(t,n))return!1;return!0}function o(t,e){const{xmin:n,ymin:i,zmin:r,xmax:s,ymax:o,zmax:a}=e;return t.hasZ&&e.hasZ?l(t,n,i,r)&&l(t,n,o,r)&&l(t,s,o,r)&&l(t,s,i,r)&&l(t,n,i,a)&&l(t,n,o,a)&&l(t,s,o,a)&&l(t,s,i,a):l(t,n,i)&&l(t,n,o)&&l(t,s,o)&&l(t,s,i)}function a(t,e){return l(t,e[0],e[1])}function h(t,e){return l(t,e[0],e[1],e[2])}function l(t,e,n,i){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax&&(null==i||!t.hasZ||i>=t.zmin&&i<=t.zmax)}function u(t,e){return i[1]=e.y,i[0]=e.x,function(t,e){return m(t.rings,e)}(t,i)}function m(t,e){if(!t||t.length<1)return!1;if(function(t){return!Array.isArray(t[0][0])}(t))return c(!1,t,e);let n=!1;for(let i=0,r=t.length;i<r;i++)n=c(n,t[i],e);return n}function c(t,e,n){const[i,r]=n;let s=t,o=0;for(let t=0,n=e.length;t<n;t++){o++,o===n&&(o=0);const[a,h]=e[t],[l,u]=e[o];(h<r&&u>=r||u<r&&h>=r)&&a+(r-h)/(u-h)*(l-a)<i&&(s=!s)}return s}},12176(t,e,n){n.d(e,{Ql:()=>y,fA:()=>f,xB:()=>s,xK:()=>d});var i=n(94078);function r(t,e){return(0,i.qz)(t,e)}function s(t,e){const n=t.hasZ&&e.hasZ;let i,r,s;if(t.xmin<=e.xmin){if(i=e.xmin,t.xmax<i)return!1}else if(i=t.xmin,e.xmax<i)return!1;if(t.ymin<=e.ymin){if(r=e.ymin,t.ymax<r)return!1}else if(r=t.ymin,e.ymax<r)return!1;if(n&&e.hasZ)if(t.zmin<=e.zmin){if(s=e.zmin,t.zmax<s)return!1}else if(s=t.zmin,e.zmax<s)return!1;return!0}function o(t,e){const{points:n,hasZ:r}=e,s=r?i.F8:i.CW;for(const e of n)if(s(t,e))return!0;return!1}const a=[0,0],h=[0,0],l=[0,0],u=[0,0],m=[a,h,l,u],c=[[l,a],[a,h],[h,u],[u,l]];function f(t,e){return function(t,e){a[0]=t.xmin,a[1]=t.ymax,h[0]=t.xmax,h[1]=t.ymax,l[0]=t.xmin,l[1]=t.ymin,u[0]=t.xmax,u[1]=t.ymin;for(const t of m)if((0,i.t1)(e,t))return!0;for(const n of e){if(!n.length)continue;let e=n[0];if((0,i.CW)(t,e))return!0;for(let r=1;r<n.length;r++){const s=n[r];if((0,i.CW)(t,s)||p(e,s,c))return!0;e=s}}return!1}(t,e.rings)}function x(t,e){a[0]=t.xmin,a[1]=t.ymax,h[0]=t.xmax,h[1]=t.ymax,l[0]=t.xmin,l[1]=t.ymin,u[0]=t.xmax,u[1]=t.ymin;const n=e.paths;for(const e of n){if(!n.length)continue;let r=e[0];if((0,i.CW)(t,r))return!0;for(let n=1;n<e.length;n++){const s=e[n];if((0,i.CW)(t,s)||p(r,s,c))return!0;r=s}}return!1}function p(t,e,n){for(let i=0;i<n.length;i++)if(y(t,e,n[i][0],n[i][1]))return!0;return!1}function y(t,e,n,i,r){const[s,o]=t,[a,h]=e,[l,u]=n,[m,c]=i,f=m-l,x=s-l,p=a-s,y=c-u,d=o-u,g=h-o,M=y*p-f*g;if(0===M)return!1;const w=(f*d-y*x)/M,z=(p*d-g*x)/M;return w>=0&&w<=1&&z>=0&&z<=1&&(r&&(r[0]=s+w*(a-s),r[1]=o+w*(h-o)),!0)}function d(t){switch(t){case"esriGeometryEnvelope":case"extent":return s;case"esriGeometryMultipoint":case"multipoint":return o;case"esriGeometryPoint":case"point":return r;case"esriGeometryMultiPatch":case"multipatch":case"esriGeometryPolygon":case"polygon":return f;case"esriGeometryPolyline":case"polyline":return x}}},28735(t,e,n){n.d(e,{Cv:()=>p,Gh:()=>g,ci:()=>M,je:()=>y,jg:()=>u,tD:()=>d,y7:()=>x});var i=n(4718),r=n(21276),s=n(16930),o=n(79258),a=n(21325);function h(t){return 57.29577951308232*t}function l(t){return.017453292519943*t}function u(t){return Math.PI/2-2*Math.atan(Math.exp(-t/o.$O.radius))}function m(t){return null!=t.wkid||null!=t.wkt}const c=[0,0];function f(t,e,n,i,r){const s=t,o=r;if(o.spatialReference=n,"x"in s&&"x"in o)[o.x,o.y]=e(s.x,s.y,c,i);else if("xmin"in s&&"xmin"in o)[o.xmin,o.ymin]=e(s.xmin,s.ymin,c,i),[o.xmax,o.ymax]=e(s.xmax,s.ymax,c,i);else if("paths"in s&&"paths"in o||"rings"in s&&"rings"in o){const t="paths"in s?s.paths:s.rings,n=[];let r;for(let s=0;s<t.length;s++){const o=t[s];r=[],n.push(r);for(let t=0;t<o.length;t++)r.push(e(o[t][0],o[t][1],[0,0],i)),o[t].length>2&&r[t].push(o[t][2]),o[t].length>3&&r[t].push(o[t][3])}"paths"in o?o.paths=n:o.rings=n}else if("points"in s&&"points"in o){const t=s.points,n=[];for(let r=0;r<t.length;r++)n[r]=e(t[r][0],t[r][1],[0,0],i),t[r].length>2&&n[r].push(t[r][2]),t[r].length>3&&n[r].push(t[r][3]);o.points=n}return r}function x(t,e){const n=t&&(m(t)?t:t.spatialReference),i=e&&(m(e)?e:e.spatialReference);return!(t&&"type"in t&&"mesh"===t.type||e&&"type"in e&&"mesh"===e.type||!n||!i)&&(!!(0,a.aI)(i,n)||(0,a.K8)(i)&&(0,a.oT)(n)||(0,a.K8)(n)&&(0,a.oT)(i))}function p(t,e){if(null==t)return null;const n=t.spatialReference,r=e&&(m(e)?e:e.spatialReference);return x(n,r)?(0,a.aI)(n,r)?(0,i.o8)(t):(0,a.K8)(r)?f(t,y,s.A.WebMercator,!1,(0,i.o8)(t)):(0,a.oT)(r)?f(t,d,s.A.WGS84,!1,(0,i.o8)(t)):null:null}function y(t,e,n=[0,0]){e>89.99999?e=89.99999:e<-89.99999&&(e=-89.99999);const i=l(e);return n[0]=l(t)*o.$O.radius,n[1]=o.$O.halfSemiMajorAxis*Math.log((1+Math.sin(i))/(1-Math.sin(i))),n}function d(t,e,n=[0,0],i=!1){if(t===a.Mc[0])n[0]=-180;else if(t===a.Mc[1])n[0]=180;else{const e=h(t/o.$O.radius);n[0]=i?e:e-360*Math.floor((e+180)/360)}return n[1]=h(Math.PI/2-2*Math.atan(Math.exp(-e/o.$O.radius))),n}function g(t,e=!1,n=(0,i.o8)(t)){return(0,r.f)(t),(0,r.f)(n),f(t,y,s.A.WebMercator,e,n)}function M(t,e=!1,n=(0,i.o8)(t)){return(0,r.f)(t),(0,r.f)(n),f(t,d,s.A.WGS84,e,n)}},49616(t,e,n){n.r(e),n.d(e,{default:()=>l});var i=n(5482),r=n(91429),s=n(19419),o=n(69052);n(21325);var a=n(97441);let h=class{constructor(){this._tileData=new Map}async generateStreamlines(t){const{flowData:e,flowExtentInfo:n,needsMagnitude:i,simulationSettings:r,startPositions:s}=t,o=u((0,a.DE)(r,e),r,n.modelSize,i,s);return{result:{streamlines:o},transferList:o?.map(t=>t.vertices.buffer)}}async generateTiledStreamlines(t){const{flowDataTiles:e,flowExtentInfo:n,needsMagnitude:i,reset:r,simulationSettings:h,startPositions:l}=t;this._updateTileData(e,r);const m=u(function(t,e,n){const[i,r]=n.modelSize;let h=null;const l=new Map;e.forEach(e=>{l.set(e.lij,(0,a.DE)(t,e))});const u=(t,e,n)=>(0,s.Rj)(t.extent,e,n);return(a,m)=>{const c=Math.round(a),f=Math.round(m);if(!t.wrapAround&&(c<0||c>=i||f<0||f>=r))return[0,0];const[x,p]=function(t,e,n,i){const{extent:r,modelSize:a,valid:h}=t,[l,u,m]=r,c=function(t,e,n){if(null!=n&&t>e){const[i,r]=n;return r-t+(e-i)}return e-t}(l,m,h);let f=e/a[0]*c+l;return null!=h&&i&&(f=new o.hr(h[0],h[1]).normalize(f)),[f,(a[1]-n)/a[1]*(0,s.uJ)(r)+u]}(n,a,m,!0);if(!function(t,e,n){const{extent:i,valid:r}=t,[s,o,a,h]=i;return!(n<o||n>h)&&(null!=r&&s>a?e>=a||e<=s:e>=s&&e<=a)}(n,x,p))return[0,0];if(null==h||!u(h,x,p)){h=null;for(const[t,n]of e)if(u(n,x,p)){h=n;break}}if(null==h?.data)return[0,0];const y=l.get(h.lij);if(null==y)return[0,0];const{width:d,height:g,extent:M}=h;return y((x-M[0])/(0,s.VL)(M)*d,g-(p-M[1])/(0,s.uJ)(M)*g)}}(h,this._tileData,n),h,n.modelSize,i,l);return{result:{streamlines:m},transferList:m?.map(t=>t.vertices.buffer)??[]}}_updateTileData(t,e){if(e)for(const e of this._tileData.keys())t.has(e)||this._tileData.delete(e);t.forEach((t,e)=>{"delete"===t.type?this._tileData.delete(e):"on-worker"!==t.type&&"invalid"!==t.type&&this._tileData.set(e,t.data)})}};h=(0,i.Cg)([(0,r.$K)("esri.views.3d.support.flow.FlowWorker")],h);const l=h;function u(t,e,n,i,r){if(null==t)return;const s=(0,a.S1)(e,t,n[0],n[1],{positions:r}),o=[],h=function(t){return t?4:3}(i);for(const{vertices:t,stage:e}of s){const n=new Float32Array(t.length*h);for(let e=0;e<t.length;e++)n[e*h]=t[e].x,n[e*h+1]=t[e].y,n[e*h+2]=t[e].time,i&&(n[e*h+3]=t[e].speed);o.push({vertices:n,stage:e,hasMagnitude:i})}return o}},97441(t,e,n){n.d(e,{DE:()=>h,S1:()=>o,dF:()=>a}),n(44208),n(53966);var i=n(34727),r=n(87811),s=n(78659);function o(t,e,n,i,s){if(t.density<=0)return[];const{positions:o}=s,a=[],h=new r.A,m=1/Math.max(t.lineCollisionWidth,1),c=Math.round(n*m),f=Math.round(i*m),x=new Int32Array(c*f);for(let t=0;t<x.length;t++)x[t]=-1;const p={raster:x,width:c,height:f,resolutionFactor:m},y={},d=t.lineSpacing/Math.sqrt(t.density),g=Math.floor(i/d),M=Math.floor(n/d);for(let t=0;t<g;t++){const e=t*d;for(let n=0;n<M;n++){const i=n*d;y[`${n}-${t}`]={x:i,y:e,positions:[]}}}for(const{x:t,y:e}of o){const n=y[`${Math.floor(t/d)}-${Math.floor(e/d)}`];n&&n.positions.push([t,e])}const w=[];for(const t in y){const e=y[t];if(0===e.positions.length)w.push({x:e.x+d/2,y:e.y+d/2,sort:.66+.33*h.getFloat(),stage:0});else{const[t]=e.positions.splice(0,1);w.push({x:t[0],y:t[1],sort:.33*h.getFloat(),stage:1});for(const[t,n]of e.positions)w.push({x:t,y:n,sort:.33+.33*h.getFloat(),stage:2})}}w.sort((t,e)=>t.sort-e.sort);for(const{x:r,y:s,stage:o}of w){if(a.length>=t.maxNumberOfStreamlines)break;const m=t.onlyForwardTracing?l(1,t,e,r,s,[n,i],a.length,p):u(t,e,r,s,[n,i],a.length,h,p);m.length<2||a.push({stage:o,vertices:m})}return a}function a(t){for(let e=0;e<t.mask.length;e++)0===t.mask[e]&&(t.data[2*e]=0,t.data[2*e+1]=0)}function h(t,e){const n=function(t,e,n,i){if(0===i)return t;const r=Math.round(3*i),s=new Array(2*r+1);let o=0;for(let t=-r;t<=r;t++){const e=Math.exp(-t*t/(i*i));s[t+r]=e,o+=e}for(let t=-r;t<=r;t++)s[t+r]/=o;const a=new Float32Array(t.length);for(let i=0;i<n;i++)for(let n=0;n<e;n++){let o=0,h=0;for(let a=-r;a<=r;a++){if(n+a<0||n+a>=e)continue;const l=s[a+r];o+=l*t[2*(i*e+(n+a))],h+=l*t[2*(i*e+(n+a))+1]}a[2*(i*e+n)]=o,a[2*(i*e+n)+1]=h}const h=new Float32Array(t.length);for(let t=0;t<e;t++)for(let i=0;i<n;i++){let o=0,l=0;for(let h=-r;h<=r;h++){if(i+h<0||i+h>=n)continue;const u=s[h+r];o+=u*a[2*((i+h)*e+t)],l+=u*a[2*((i+h)*e+t)+1]}h[2*(i*e+t)]=o,h[2*(i*e+t)+1]=l}return h}(e.data,e.width,e.height,t.smoothing);return t.interpolate?(t,i)=>{const r=Math.floor(t),s=Math.floor(i);if(r<0||r>=e.width)return[0,0];if(s<0||s>=e.height)return[0,0];const o=t-r,a=i-s,h=r,l=s,u=r<e.width-1?r+1:r,m=s<e.height-1?s+1:s,c=n[2*(l*e.width+h)],f=n[2*(l*e.width+u)],x=n[2*(m*e.width+h)],p=n[2*(m*e.width+u)],y=n[2*(l*e.width+h)+1],d=n[2*(l*e.width+u)+1];return[(c*(1-a)+x*a)*(1-o)+(f*(1-a)+p*a)*o,(y*(1-a)+n[2*(m*e.width+h)+1]*a)*(1-o)+(d*(1-a)+n[2*(m*e.width+u)+1]*a)*o]}:(t,i)=>{const r=Math.round(t),s=Math.round(i);return r<0||r>=e.width||s<0||s>=e.height?[0,0]:[n[2*(s*e.width+r)],n[2*(s*e.width+r)+1]]}}function l(t,e,n,r,o,a,h,l){const u=[],{raster:m,width:c,height:f,resolutionFactor:x}=l;let p=r,y=o,d=(0,s.Kp)(0),[g,M]=n(p,y);g*=e.velocityScale,M*=e.velocityScale;const w=Math.sqrt(g*g+M*M);let z,v;u.push({x:p,y,time:d,speed:w});for(let r=0;r<e.verticesPerLine;r++){let[r,o]=n(p,y);r*=e.velocityScale,o*=e.velocityScale;const l=Math.sqrt(r*r+o*o);if(l<e.minSpeedThreshold)return u;const g=t*r/l,M=t*o/l;p+=g*e.segmentLength,y+=M*e.segmentLength,e.wrapAround&&(p=(0,i.OS)(p,a[0]));const w=t*e.segmentLength/l;if(d=(0,s.Kp)(d+w),Math.acos(g*z+M*v)>e.maxTurnAngle)return u;if(e.collisions){let t=Math.round(p*x);const n=Math.round(y*x);if(e.wrapAround&&(t=(0,i.OS)(t,c)),t<0||t>c-1||n<0||n>f-1)return u;const r=m[n*c+t];if(-1!==r&&r!==h)return u;m[n*c+t]=h}u.push({x:p,y,time:d,speed:l}),z=g,v=M}return u}function u(t,e,n,i,r,s,o,a){const h=Math.round((.2+.6*o.getFloat())*t.verticesPerLine),u=t.verticesPerLine-h,m=l(-1,{...t,verticesPerLine:u},e,n,i,r,s,a),c=l(1,{...t,verticesPerLine:h},e,n,i,r,s,a),f=m.reverse();return f.splice(-1,1),f.concat(c)}n(5443),n(21325)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3636],{69052(t,e,s){s.d(e,{hr:()=>n,ie:()=>u,uC:()=>o});var r=s(34727);class n{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,s=!1){return i(this.range,this.min,this.max,t,e,s)}clamp(t,e=0){return(0,r.qE)(t-e,this.min,this.max)+e}monotonic(t,e,s){return t<e?e:e+a(this.range,t-e,s)}minimalMonotonic(t,e,s){return i(this.range,t,t+this.range,e,s)}center(t,e,s){return e=this.monotonic(t,e,s),this.normalize((t+e)/2,s)}diff(t,e,s){return this.monotonic(t,e,s)-t}shortestSignedDiff(t,e){t=this.normalize(t);const s=(e=this.normalize(e))-t,r=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(s)<Math.abs(r)?s:r}contains(t,e,s){return e=this.minimalMonotonic(t,e),(s=this.minimalMonotonic(t,s))>t&&s<e}}function i(t,e,s,r,n=0,i=!1){return(r-=n)<e?r+=a(t,e-r):r>s&&(r-=a(t,r-s)),i&&r===s&&(r=e),r+n}function a(t,e,s=0){return Math.ceil((e-s)/t)*t+s}const o=new n(0,2*Math.PI),u=(new n(-Math.PI,Math.PI),new n(0,360))},82534(t,e,s){function r(){return[0,0,0,1]}function n(t){return[t[0],t[1],t[2],t[3]]}s.d(e,{o8:()=>n,vt:()=>r,zK:()=>i});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:n,create:r,fromValues:function(t,e,s,r){return[t,e,s,r]}},Symbol.toStringTag,{value:"Module"}))},67026(t,e,s){s.d(e,{A6:()=>y,Xd:()=>l,Xr:()=>d,hZ:()=>g,lw:()=>p,t2:()=>F,x8:()=>c});var r=s(29242),n=s(82534),i=s(51850),a=s(34304),o=s(35522),u=s(78955);function c(t,e,s){s*=.5;const r=Math.sin(s);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(s),t}function l(t,e){const s=2*Math.acos(e[3]),r=Math.sin(s/2);return r>(0,a.FD)()?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),s}function p(t,e,s){const r=e[0],n=e[1],i=e[2],a=e[3],o=s[0],u=s[1],c=s[2],l=s[3];return t[0]=r*l+a*o+n*c-i*u,t[1]=n*l+a*u+i*o-r*c,t[2]=i*l+a*c+r*u-n*o,t[3]=a*l-r*o-n*u-i*c,t}function h(t,e,s,r){const n=e[0],i=e[1],o=e[2],u=e[3];let c,l,p,h,d,f=s[0],y=s[1],m=s[2],g=s[3];return l=n*f+i*y+o*m+u*g,l<0&&(l=-l,f=-f,y=-y,m=-m,g=-g),1-l>(0,a.FD)()?(c=Math.acos(l),p=Math.sin(c),h=Math.sin((1-r)*c)/p,d=Math.sin(r*c)/p):(h=1-r,d=r),t[0]=h*n+d*f,t[1]=h*i+d*y,t[2]=h*o+d*m,t[3]=h*u+d*g,t}function d(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function f(t,e){const s=e[0]+e[4]+e[8];let r;if(s>0)r=Math.sqrt(s+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{let s=0;e[4]>e[0]&&(s=1),e[8]>e[3*s+s]&&(s=2);const n=(s+1)%3,i=(s+2)%3;r=Math.sqrt(e[3*s+s]-e[3*n+n]-e[3*i+i]+1),t[s]=.5*r,r=.5/r,t[3]=(e[3*n+i]-e[3*i+n])*r,t[n]=(e[3*n+s]+e[3*s+n])*r,t[i]=(e[3*i+s]+e[3*s+i])*r}return t}function y(t,e,s,r){const n=.5*Math.PI/180;e*=n,s*=n,r*=n;const i=Math.sin(e),a=Math.cos(e),o=Math.sin(s),u=Math.cos(s),c=Math.sin(r),l=Math.cos(r);return t[0]=i*u*l-a*o*c,t[1]=a*o*l+i*u*c,t[2]=a*u*c-i*o*l,t[3]=a*u*l+i*o*c,t}const m=u.C,g=u.hZ,S=u.WQ,v=p,b=u.hs,A=u.Om,x=u.Cc,_=u.Bw,M=_,w=u.m3,R=w,q=u.S8,F=u.t2,I=u.aI,E=(0,i.vt)(),C=(0,i.fA)(1,0,0),O=(0,i.fA)(0,1,0),P=(0,n.vt)(),T=(0,n.vt)(),N=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:S,calculateW:function(t,e){const s=e[0],r=e[1],n=e[2];return t[0]=s,t[1]=r,t[2]=n,t[3]=Math.sqrt(Math.abs(1-s*s-r*r-n*n)),t},conjugate:d,copy:m,dot:A,equals:I,exactEquals:F,fromEuler:y,fromMat3:f,getAxisAngle:l,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){const s=e[0],r=e[1],n=e[2],i=e[3],a=s*s+r*r+n*n+i*i,o=a?1/a:0;return t[0]=-s*o,t[1]=-r*o,t[2]=-n*o,t[3]=i*o,t},len:M,length:_,lerp:x,mul:v,multiply:p,normalize:q,random:function(t){const e=a.Ov,s=e(),r=e(),n=e(),i=Math.sqrt(1-s),o=Math.sqrt(s);return t[0]=i*Math.sin(2*Math.PI*r),t[1]=i*Math.cos(2*Math.PI*r),t[2]=o*Math.sin(2*Math.PI*n),t[3]=o*Math.cos(2*Math.PI*n),t},rotateX:function(t,e,s){s*=.5;const r=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(s),u=Math.cos(s);return t[0]=r*u+a*o,t[1]=n*u+i*o,t[2]=i*u-n*o,t[3]=a*u-r*o,t},rotateY:function(t,e,s){s*=.5;const r=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(s),u=Math.cos(s);return t[0]=r*u-i*o,t[1]=n*u+a*o,t[2]=i*u+r*o,t[3]=a*u-n*o,t},rotateZ:function(t,e,s){s*=.5;const r=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(s),u=Math.cos(s);return t[0]=r*u+n*o,t[1]=n*u-r*o,t[2]=i*u+a*o,t[3]=a*u-i*o,t},rotationTo:function(t,e,s){const r=(0,o.Om)(e,s);return r<-.999999?((0,o.$A)(E,C,e),(0,o.Il)(E)<1e-6&&(0,o.$A)(E,O,e),(0,o.S8)(E,E),c(t,E,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,o.$A)(E,e,s),t[0]=E[0],t[1]=E[1],t[2]=E[2],t[3]=1+r,q(t,t))},scale:b,set:g,setAxes:function(t,e,s,r){const n=N;return n[0]=s[0],n[3]=s[1],n[6]=s[2],n[1]=r[0],n[4]=r[1],n[7]=r[2],n[2]=-e[0],n[5]=-e[1],n[8]=-e[2],q(t,f(t,n))},setAxisAngle:c,slerp:h,sqlerp:function(t,e,s,r,n,i){return h(P,e,n,i),h(T,s,r,i),h(t,P,T,2*i*(1-i)),t},sqrLen:R,squaredLength:w,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},56512(t,e,s){function r(t){let e,s,r=[],n=!1;return function(...i){return n&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let s=0;s<t.length;++s)if(t[s]!==e[s])return!1;return!0}(i,r)||(s=t.apply(this,i),e=this,r=i,n=!0),s}}s.d(e,{B:()=>r})},69397(t,e,s){s.d(e,{Qf:()=>u,Qh:()=>a,RS:()=>n,Ul:()=>d,i5:()=>h,lM:()=>i,qK:()=>l});var r=s(34275);const n=16;function i(t){if(!t)return 0;let e=l;for(const s in t)t.hasOwnProperty(s)&&(e+=o(t[s],!1));return e}function a(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return c(t,8);let s=p;for(let r=0;r<e;r++)s+=o(t[r]);return s}(t);let e=l;for(const s in t)t.hasOwnProperty(s)&&(e+=o(t[s]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?a(t):l;case"string":return function(t){return 32+t.length}(t);case"number":return n;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+h:Array.isArray(e)?c(e,n):0:0),0)}function c(t,e){return p+t.length*e}const l=32,p=16,h=145,d=64},95696(t,e,s){s.d(e,{A:()=>c});var r,n=s(5482),i=s(69540),a=s(25482),o=s(91429),u=s(93223);let c=class extends((0,i.OU)(a.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,n.Cg)([(0,u.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=r=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c)},18251(t,e,s){s.r(e),s.d(e,{default:()=>c});var r=s(5482),n=s(69540),i=s(25482),a=s(91429),o=s(51850),u=s(93223);let c=class extends((0,n.OU)(i.o)){constructor(t){super(t),this.type="local",this.origin=(0,o.vt)()}};(0,r.Cg)([(0,u.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r.Cg)([(0,a.$K)("esri.geometry.support.MeshLocalVertexSpace")],c)},73836(t,e,s){s.d(e,{A:()=>d});var r=s(5482),n=s(69540),i=s(25482),a=s(91429),o=s(58083),u=s(9093),c=s(67026),l=s(82534),p=s(51850),h=s(24770);let d=class extends((0,n.OU)(i.o)){constructor(t){super(t),this.translation=(0,p.vt)(),this.rotationAxis=(0,p.ci)(h.up),this.rotationAngle=0,this.scale=(0,p.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,p.o8)((0,h.yo)(t)),this.rotationAngle=(0,h.g7)(t)}get localMatrix(){const t=(0,u.vt)();return(0,c.x8)(f,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,o.o1)(t,f,this.translation,this.scale),t}get localMatrixInverse(){return(0,o.B8)((0,u.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,o.t2)(this.localMatrix,t.localMatrix)}};(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"translation",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAxis",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAngle",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"scale",void 0),(0,r.Cg)([(0,a.MZ)()],d.prototype,"rotation",null),(0,r.Cg)([(0,a.MZ)()],d.prototype,"localMatrix",null),(0,r.Cg)([(0,a.MZ)()],d.prototype,"localMatrixInverse",null),d=(0,r.Cg)([(0,a.$K)("esri.geometry.support.MeshTransform")],d);const f=(0,l.vt)()},24770(t,e,s){s.d(e,{$I:()=>g,AU:()=>f,Cr:()=>p,g7:()=>m,i4:()=>l,ui:()=>h,up:()=>v,vt:()=>c,yo:()=>y});var r=s(34727),n=s(58083),i=s(67026),a=s(82534),o=s(35522),u=s(51850);function c(t=v){return[t[0],t[1],t[2],t[3]]}function l(t,e,s=c()){return(0,o.C)(s,t),s[3]=e,s}function p(t,e,s){return(0,o.$A)(s,t,e),(0,o.S8)(s,s),s[3]=-(0,o.g7)(t,e),s}function h(t,e=c()){const s=(0,n.l)(b,t);return S(e,(0,r.KJ)((0,i.Xd)(e,s))),e}function d(t,e,s=c()){return(0,i.x8)(b,t,g(t)),(0,i.x8)(A,e,g(e)),(0,i.lw)(b,A,b),S(s,(0,r.KJ)((0,i.Xd)(s,b)))}function f(t,e,s,r=c()){return l(u.Cw,t,x),l(u.JP,e,_),l(u.Cb,s,M),d(x,_,x),d(x,M,r),r}function y(t){return t}function m(t){return t[3]}function g(t){return(0,r.kU)(t[3])}function S(t,e){return t[3]=e,t}const v=[0,0,1,0],b=(0,a.vt)(),A=(0,a.vt)(),x=(c(),c()),_=c(),M=c()},31411(t,e,s){s.d(e,{GS:()=>M,gh:()=>R});var r=s(49186),n=s(56512),i=s(65864),a=s(4305),o=s(50954),u=s(52006),c=s(49663),l=s(46068),p=s(15507);const h=1e-6,d=[0,0];function f(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class y{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:s,maxSegmentsPerCurve:r,minSegmentsPerCurve:n}){const i=s*s,a=e*e,o=1/r,u=this.interpolate(0),c=this.interpolate(1);(0,p.kb)(this.curveStart,u)>h&&t.push(u),this.initialize(u,c);const l=1/n;for(let t=n-1;t>0;t--){const e=t*l;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<o||(0===i||!isFinite(i)||(0,p.kb)(this.arcStart,this.arcEnd)<i)&&(0===a||!isFinite(a)||this.getDeviation2()<a)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,p.kb)(this.curveEnd,c)>h&&t.push([...this.curveEnd]),t}}class m extends y{constructor(t,e){const[s,r,n]=e.b;super(t,s),this._controlPointsStack=[],this._curveControlPoints=[r,n],this._arcControlPoints=[r,n],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:s,tStart:r,tEnd:n}=this,[i,a]=this._arcControlPoints,o=(t-r)/(n-r),u=(0,p.RS)([],e,i,o),c=(0,p.RS)(d,i,a,o),l=(0,p.RS)([],a,s,o),h=(0,p.RS)([],u,c,o),f=(0,p.RS)([],c,l,o),y=(0,p.RS)([],h,f,o);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([f,l]),this.tEndStack.push(t),this.arcEndStack.push(y),this._arcControlPoints[0]=u,this._arcControlPoints[1]=h,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:s}=this,[r,n]=this._curveControlPoints;return(0,a.B4)(e,r,n,s,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[s,r]=this._arcControlPoints;return Math.max((0,p.yE)(s,t,e),(0,p.yE)(r,t,e))}}class g extends y{constructor(t,e){const[s]=e.a;super(t,s),this._derivedEllipse=(0,l.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,l.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,p.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function S(t,e,s,{cx:r,cy:n,radius:i,thetaStart:a,thetaEnd:o,isInvalid:u},{maxDeviation:c,maxSegmentLength:l,maxSegmentsPerCurve:d,minSegmentsPerCurve:f}){if(u)return t.push([...s]),t;const y=2*i,m=[r+i*Math.cos(a),n+i*Math.sin(a)],g=[r+i*Math.cos(o),n+i*Math.sin(o)];(0,p.kb)(e,m)>h&&t.push(m);const S=Math.abs(o-a),v=l>0&&l<y?2*Math.asin(l/y):S,b=c>0&&c<=i?2*Math.acos(1-c/i):S,A=Math.min(v,b),x=Math.min(d,Math.max(f,Math.ceil(Math.abs(S/A)))),_=1/x;for(let e=1;e<x;e++){const s=e*_,u=a*(1-s)+o*s;t.push([r+i*Math.cos(u),n+i*Math.sin(u)])}return t.push(g),(0,p.kb)(s,g)>h&&t.push([...s]),t}function v(t,e,s,r){return new m(e,s).densify(t,r)}function b(t,e,s,r){const n=(0,o.pM)(e,s),[i]=s.c;return S(t,e,i,n,r)}function A(t,e,s,r){const n=(0,c.io)(e,s),[i]=s.a;return S(t,e,i,n,r)}function x(t,e,s,r){const[n,i,a,o,u,c,l]=s.a;return 0===c||0===l?(t.push([...n]),t):new g(e,s).densify(t,r)}function _(t,e,s,r){return(0,u.Xq)(s)?(t.push([...s]),t):(0,u.n1)(s)?v(t,e,s,r):(0,u.aO)(s)?b(t,e,s,r):(0,u.DA)(s)?A(t,e,s,r):x(t,e,s,r)}function M(t,e={}){if(!(0,u.Ed)(t))return t;const s=f(e),r=(0,u.FD)(t),n=[];for(const t of r){const e=[];for(let r=0;r<t.length-1;r++){const n=r+1,i=[...(0,u.yP)(t[r])];0===r&&e.push(i),_(e,i,t[n],s)}n.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:n,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:n,spatialReference:t.spatialReference}}const w=(0,n.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function R(t,e,n){const a=new Set(e);return await async function(t,e,n){let i=null;for(const a of t)if(a&&(0,u.Ed)(a)&&null==a.spatialReference.xyTolerance&&(0,u.V8)(a,e)){const t=a.spatialReference;if(!t)throw new r.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=q(t);if(n.has(e))a.spatialReference=n.get(e);else{i||(i=await Promise.all([s.e(6042),s.e(1878),s.e(8885),s.e(5756),s.e(3299),s.e(6312)]).then(s.bind(s,78125)));const o=i.fromSpatialReference(t),u=o?.getTolerance();if(null==u)throw new r.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const c=a.spatialReference.clone();c.read({xyTolerance:u}),a.spatialReference=c,n.set(e,c)}}}(t,a,n),t.map(t=>{if(!t||!(0,u.Ed)(t))return t;const s=t.spatialReference.xyTolerance;if(null==s)return t;const r=w(s);return(0,i.rS)(function(t,e,s){if(!(0,u.Ed)(t))return t;const r=new Set(e),n=f(s),i=(0,u.FD)(t),a=[];let o=!1;for(const t of i){const e=[];for(let s=0;s<t.length-1;s++){const i=s+1,a=[...(0,u.yP)(t[s])];0===s&&e.push(a);const c=t[i];(0,u.Xq)(c)?e.push([...c]):(0,u.n1)(c)&&!r.has("cubic-bezier")?v(e,a,c,n):(0,u.aO)(c)&&!r.has("circular-arc")?b(e,a,c,n):(0,u.DA)(c)&&!r.has("elliptic-arc")?A(e,a,c,n):(0,u.wY)(c)&&!r.has("elliptic-arc")?x(e,a,c,n):(e.push((0,u.tk)(c)),o=!0)}a.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...o?{curvePaths:a}:{paths:a}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...o?{curveRings:a}:{rings:a}}}(t,e,r))})}function q(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},63579(t,e,s){s.d(e,{Bq:()=>u,Qp:()=>o,WN:()=>m,dK:()=>g,eN:()=>d,fH:()=>y,in:()=>f,yr:()=>c});var r=s(11254),n=s(4576),i=s(17676),a=s(20557);class o{constructor(t,e,s){this.assetName=t,this.assetMimeType=e,this.parts=s}equals(t){return this===t||this.assetName===t.assetName&&this.assetMimeType===t.assetMimeType&&(0,n.aI)(this.parts,t.parts,(t,e)=>t.equals(e))}isOnService(t){return this.parts.every(e=>e.isOnService(t))}makeHash(){let t="";for(const e of this.parts)t+=e.partHash;return t}async toBlob(t){const{parts:e}=this;if(1===e.length)return e[0].toBlob(t);const s=await Promise.all(e.map(e=>e.toBlob(t)));return(0,i.Te)(t),new Blob(s)}}class u{constructor(t,e){this.partUrl=t,this.partHash=e}equals(t){return this===t||this.partUrl===t.partUrl&&this.partHash===t.partHash}isOnService(t){return this.partUrl.startsWith(`${t.path}/assets/`)}async toBlob(t){const{data:e}=await(0,r.A)(this.partUrl,{responseType:"blob"});return(0,i.Te)(t),e}}function c(t){return function(t){switch(t?.type){case"client":return Array.isArray(t.files)?t.files.some(h):h(t.files);case"service":return t.assets.some(h);case"loadable":return!0;default:return!1}}(t?.source)}const l=/^(model\/gltf\+json)|(model\/gltf-binary)$/,p=/\.(gltf|glb)/i;function h(t){if(t instanceof File){const{type:e,name:s}=t;return l.test(e)||p.test(s)}return l.test(t.assetMimeType)||p.test(t.assetName)}function d(t,e){if(!t)return!1;const{source:s}=t;return function(t,e){return"service"===t.type&&t.assets.every(t=>t.isOnService(e))}(s,e)}function f(t,e){if(t===e)return!0;const{source:s}=t,{source:r}=e;if(s===r)return!0;if("service"===s.type&&"service"===r.type){if(s.assets.length!==r.assets.length)return!1;const t=(t,e)=>t.assetName<e.assetName?-1:t.assetName>e.assetName?1:0,e=[...s.assets].sort(t),n=[...r.assets].sort(t);for(let t=0;t<e.length;++t)if(!e[t].equals(n[t]))return!1;return!0}return!1}function y(t,e){return t instanceof File?(0,a.rq)(t,e):(0,a.z$)(t.assetMimeType,t.assetName,e)}function m(t){switch(t.type){case"client":return Array.isArray(t.files)?t.files:[t.files];case"service":return t.assets;case"loadable":return}}function g(t){return!!t.original}},27615(t,e,s){s.d(e,{CK:()=>u,Hq:()=>o,MW:()=>c,TE:()=>l,yJ:()=>p});var r=s(35522),n=s(86738),i=s(95696),a=s(18251);function o(t){return null!=t.origin}function u(t){return o(t.vertexSpace)}function c(t,e){if(!o(t))return null;const[s,r,i]=t.origin;return new n.A({x:s,y:r,z:i,spatialReference:e})}function l(t,e){const{x:s,y:r,z:n,spatialReference:o}=t,u=[s,r,n??0];return"local"===(e?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(o))?new a.default({origin:u}):new i.A({origin:u})}function p(t,e){return t.type===e.type&&(t.origin===e.origin||null!=t.origin&&null!=e.origin&&(0,r.t2)(t.origin,e.origin))}},17136(t,e,s){s.d(e,{Y_:()=>E,O7:()=>F,el:()=>q});var r=s(92602),n=s(69052),i=s(49186),a=s(53966),o=s(39829),u=s(82799),c=s(16930),l=s(80754),p=s(21325),h=s(28735),d=s(52006),f=s(31411),y=s(11254),m=s(60408),g=s(65864),S=s(2272),v=s(84952),b=s(92300);const A=()=>a.A.getLogger("esri.geometry.support.normalizeUtils");function x(t){return"polygon"===t[0].type}function _(t){return"polyline"===t[0].type}function M(t,e,s){const r=1e6;if(e){const e=(0,d.Ed)(t)?(0,f.GS)(t,{maxSegmentLength:r}):function(t,e){if(!(t instanceof u.A||t instanceof o.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw A().error(t),new i.A("internal:geometry",t)}const s=(0,l.r8)(t),r=[];for(const t of s){const s=[];r.push(s),s.push([t[0][0],t[0][1]]);for(let r=0;r<t.length-1;r++){const n=t[r][0],i=t[r][1],a=t[r+1][0],o=t[r+1][1],u=Math.sqrt((a-n)*(a-n)+(o-i)*(o-i)),c=(o-i)/u,l=(a-n)/u,p=u/e;if(p>1){for(let t=1;t<=p-1;t++){const r=t*e,a=l*r+n,o=c*r+i;s.push([a,o])}const t=(u+Math.floor(p-1)*e)/2,r=l*t+n,a=c*t+i;s.push([r,a])}s.push([a,o])}}return function(t){return"polygon"===t.type}(t)?new o.A({rings:r,spatialReference:t.spatialReference}):new u.A({paths:r,spatialReference:t.spatialReference})}(t,r);t=(0,h.ci)(e,!0)}return s&&(t=(0,l.kS)(t,s)),t}function w(t,e,s){if(Array.isArray(t)){const r=t[0];if(r>e){const s=(0,l.kd)(r,e);t[0]=r+s*(-2*e)}else if(r<s){const e=(0,l.kd)(r,s);t[0]=r+e*(-2*s)}}else{const r=t.x;if(r>e){const s=(0,l.kd)(r,e);t=t.clone().offset(s*(-2*e),0)}else if(r<s){const e=(0,l.kd)(r,s);t=t.clone().offset(e*(-2*s),0)}}return t}function R(t,e){let s=-1;for(let r=0;r<e.cutIndexes.length;r++){const n=e.cutIndexes[r],i=e.geometries[r],a=(0,l.r8)(i);for(let t=0;t<a.length;t++){const e=a[t];e.some(s=>{if(s[0]<180)return!0;{let s=0;for(let t=0;t<e.length;t++){const r=e[t][0];s=r>s?r:s}s=Number(s.toFixed(9));const r=-360*(0,l.kd)(s,180);for(let s=0;s<e.length;s++){const e=i.getPoint(t,s);i.setPoint(t,s,e.clone().offset(r,0))}return!0}})}if(n===s){if(x(t))for(const e of(0,l.r8)(i))t[n]=t[n].addRing(e);else if(_(t))for(const e of(0,l.r8)(i))t[n]=t[n].addPath(e)}else s=n,t[n]=i}return t}async function q(t,e,s){if(!Array.isArray(t))return q([t],e);e&&"string"!=typeof e&&A().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof e?e:e?.url??r.A.geometryServiceUrl;let i,a,c,d,f,x,_,F,I=0;const E=[],C=[];for(const e of t)if(null!=e)if(i||(i=e.spatialReference,a=(0,p.Vp)(i),c=i.isWebMercator,x=c?102100:4326,d=l.j7[x].maxX,f=l.j7[x].minX,_=l.j7[x].plus180Line,F=l.j7[x].minus180Line),a)if("mesh"===e.type)C.push(e);else if("point"===e.type)C.push(w(e.clone(),d,f));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>w(t,d,f)),C.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,a);C.push(t.rings?new o.A(t):t)}else if(e.extent){const t=e.extent,s=(0,l.kd)(t.xmin,f)*(2*d);let r=0===s?e.clone():(0,l.kS)(e.clone(),s);t.offset(s,0);let{xmin:n,xmax:i}=t;n=Number(n.toFixed(9)),i=Number(i.toFixed(9)),t.intersects(_)&&i!==d?(I=i>I?i:I,r=M(r,c),E.push(r),C.push("cut")):t.intersects(F)&&n!==f?(I=i*(2*d)>I?i*(2*d):I,r=M(r,c,360),E.push(r),C.push("cut")):C.push(r)}else C.push(e.clone());else C.push(e);else C.push(e);let O=(0,l.kd)(I,d),P=-90;const T=O,N=new u.A;for(;O>0;){const t=360*O-180;N.addPath([[t,P],[t,-1*P]]),P*=-1,O--}if(E.length>0&&T>0){const e=R(E,await async function(t,e,s,r){const n=(0,S.Dl)(t),i=e[0].spatialReference,a={...r,responseType:"json",query:{...n.query,f:"json",sr:(0,p.YX)(i),target:JSON.stringify({geometryType:(0,m.$B)(e[0]),geometries:e}),cutter:JSON.stringify(s)}},o=await(0,y.A)(n.path+"/cut",a),{cutIndexes:u,geometries:c=[]}=o.data;return{cutIndexes:u,geometries:c.map(t=>{const e=(0,g.rS)(t);return e.spatialReference=i,e})}}(n,E,N,s)),r=[],i=[];for(let s=0;s<C.length;s++){const n=C[s];if("cut"!==n)i.push(n);else{const n=e.shift(),a=t[s];null!=a&&"polygon"===a.type&&a.rings&&a.rings.length>1&&n.rings.length>=a.rings.length?(r.push(n),i.push("simplify")):i.push(c?(0,h.Gh)(n):n)}}if(!r.length)return i;const a=await async function(t,e,s){const r="string"==typeof t?(0,v.An)(t):t,n=e[0].spatialReference,i=(0,m.$B)(e[0]),a={...s,query:{...r.query,f:"json",sr:(0,p.YX)(n),geometries:JSON.stringify((0,b.X)(e))}},{data:o}=await(0,y.A)(r.path+"/simplify",a);return(0,b.V)(o.geometries,i,n)}(n,r,s),o=[];for(let t=0;t<i.length;t++){const e=i[t];"simplify"!==e?o.push(e):o.push(c?(0,h.Gh)(a.shift()):a.shift())}return o}const D=[];for(let t=0;t<C.length;t++){const e=C[t];if("cut"!==e)D.push(e);else{const t=E.shift();D.push(!0===c?(0,h.Gh)(t):t)}}return D}function F(t,e,s){const r=(0,p.Vp)(s);if(null==r)return t;const[n,i]=r.valid,a=2*i;let o=0,u=0;e>i?o=Math.ceil(Math.abs(e-i)/a):e<n&&(o=-Math.ceil(Math.abs(e-n)/a)),t>i?u=Math.ceil(Math.abs(t-i)/a):t<n&&(u=-Math.ceil(Math.abs(t-n)/a));let c=t+(o-u)*a;const l=c-e;return l>i?c-=a:l<n&&(c+=a),c}function I(t){const e=(0,p.Vp)(t);if(null==e)return null;const[s,r]=e.valid;return new n.hr(s,r)}const E=I(c.A.WGS84);I(c.A.WebMercator)},80754(t,e,s){s.d(e,{j7:()=>o,kS:()=>c,kd:()=>u,r8:()=>l});var r=s(82799),n=s(16930),i=s(60408),a=s(52006);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function u(t,e){return Math.ceil((t-e)/(2*e))}function c(t,e){if((0,a.Ed)(t))for(const s of function(t){return(0,i.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of s){if((0,a.aO)(t)){const[s,r]=t.c;s[0]+=e,r[0]+=e;continue}if((0,a.FG)(t)){const[s,r]=t.a;s[0]+=e,r[0]+=e;continue}if((0,a.n1)(t)){const[s,r,n]=t.b;s[0]+=e,r[0]+=e,n[0]+=e;continue}t[0]+=e}for(const s of l(t))for(const t of s)t[0]+=e;return t}function l(t){return(0,i.Bi)(t)?t.rings:t.paths}},99352(t,e,s){s.d(e,{F:()=>r,P:()=>n});const r={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},n={supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}},65515(t,e,s){s.r(e),s.d(e,{default:()=>Y});var r=s(5482),n=s(92602),i=s(11254),a=s(4576),o=s(49186),u=s(44208),c=s(66552),l=s(92474),p=s(53966),h=s(93637),d=s(17676),f=s(36708),y=s(84952),m=s(13069),g=s(91429),S=s(5443),v=s(16930),b=s(95696),A=s(27615),x=s(63579),_=s(52106),M=s(86211);function w(t){return"object"==typeof t&&null!=t&&"objectId"in t&&!!t.objectId}function R(t){return"object"==typeof t&&null!=t&&"globalId"in t&&!!t.globalId}function q(t){return t.every(R)}var F=s(91218),I=s(65864),E=s(73836),C=s(21325);async function O(t,e,s){const{geometry:r}=e,n={...e.attributes};if(null!=s&&"mesh"===r?.type){const{transformFieldRoles:e}=s,{origin:i,spatialReference:a,vertexSpace:o}=r,u=r.transform??new E.A,c="local"===o.type,l=t.spatialReference,p=l.isGeographic,h=(0,C.aI)(l,a),d=(0,F.isEqualBaseGCS)(a,l)&&(0,F.canProjectWithoutEngine)(a,l);if(!(c&&p&&d||!c&&!p&&h))return null;const f=(0,F.projectWithoutEngine)(i,a,l);if(null==f)return null;if(n[e.originX]=f.x,n[e.originY]=f.y,n[e.originZ]=f.z??0,null!=u){const{translation:t,scale:s,rotation:r}=u,i=c?1:(0,M.KX)(a)/(0,M.KX)(l);n[e.translationX]=t[0]*i,n[e.translationY]=t[2]*i,n[e.translationZ]=-t[1]*i,n[e.scaleX]=s[0],n[e.scaleY]=s[2],n[e.scaleZ]=s[1],n[e.rotationX]=r[0],n[e.rotationY]=r[2],n[e.rotationZ]=-r[1],n[e.rotationDeg]=r[3]}return{attributes:n}}return null==r?{attributes:n}:"mesh"===r.type||"extent"===r.type?null:{geometry:r.toJSON(),attributes:n}}async function P(t,e){const s=await Promise.all((e.addAttachments??[]).map(e=>T(t,e))),r=await Promise.all((e.updateAttachments??[]).map(e=>T(t,e))),n=e.deleteAttachments??[];return s.length||r.length||n.length?{adds:s,updates:r,deletes:[...n]}:null}async function T(t,e){const{feature:s,attachment:r}=e,{globalId:n,name:i,contentType:a,data:o,uploadId:u}=r,c={globalId:n};if(s&&("attributes"in s?c.parentGlobalId=s.attributes?.[t.globalIdField]:s.globalId&&(c.parentGlobalId=s.globalId)),u)c.uploadId=u;else if(o){const t=await(0,y._0)(o);t&&(c.contentType=t.mediaType,c.data=t.data),o instanceof File&&(c.name=o.name)}return i&&(c.name=i),a&&(c.contentType=a),c}function N(t,e,s){if(!e||0===e.length)return[];if(s&&q(e))return e.map(t=>t.globalId);if(function(t){return t.every(w)}(e))return e.map(t=>t.objectId);const r=s?t.globalIdField:t.objectIdField;return r?e.map(t=>t.getAttribute(r)):[]}function D(t){const e=!0===t.success?null:t.error||{code:void 0,description:"Feature edit failed"};return{objectId:t.objectId,globalId:t.globalId,error:e?new o.A("feature-layer-source:edit-failure",e.description,{code:e.code}):null}}function k(t,e){return new _.A({attributes:t.attributes,geometry:(0,I.rS)({...t.geometry,spatialReference:e})})}function Z(t,e){return{adds:t?.adds?.map(t=>k(t,e))||[],updates:t?.updates?.map(t=>({original:k(t[0],e),current:k(t[1],e)}))||[],deletes:t?.deletes?.map(t=>k(t,e))||[],spatialReference:e}}var Q=s(64714),j=s(64314),J=s(60694),V=s(15426),U=s(20557),G=s(99199),B=s(96520),X=s(61956),z=s(79677),L=s(20816);const $=new c.J({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),W=new c.J({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let Y=class extends l.x_{constructor(t){super(t),this.type="feature-layer",this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer"]),this.refresh=(0,d.sg)(async()=>{await this.load();const t=this.sourceJSON.editingInfo?.lastEditDate;if(null==t)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const e=t!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:e,updates:e?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}}),this._ongoingAssetUploads=new Map}load(t){const e=this.layer.sourceJSON,s=this._fetchService(e,{...t}).then(()=>this.layer.setUserPrivileges(this.sourceJSON.serviceItemId,t)).then(()=>this._ensureLatestMetadata(t));return this.addResolvingPromise(s),Promise.resolve(this)}initialize(){this.addHandles([(0,f.wB)(()=>{const t=this.layer;return t&&"lastEditsEventDate"in t?t.lastEditsEventDate:null},t=>this._handleLastEditsEventChange(t))])}destroy(){this._removeEditInterceptor()}get queryTask(){const{capabilities:t,parsedUrl:e,gdbVersion:s,spatialReference:r,fieldsIndex:n,uniqueIdFields:i}=this.layer,a="infoFor3D"in this.layer?this.layer.infoFor3D:null,o="dynamicDataSource"in this.layer?this.layer.dynamicDataSource:null,c=(0,u.A)("featurelayer-pbf")&&t?.query.supportsFormatPBF&&null==a,l=c&&t?.query.supportsFormatPBFWithCurves,p=t?.operations?.supportsQueryAttachments??!1,h=t?.query?.relativeTimeBinWindow??0,d=e.path;return new j.A({dynamicDataSource:o,fieldsIndex:n,gdbVersion:s,infoFor3D:a,pbfSupported:c,pbfSupportedWithCurves:l,queryAttachmentsSupported:p,relativeTimeBinWindow:h,sourceSpatialReference:r,uniqueIdFields:i,url:d})}async addAttachment(t,e){await this.load();const{layer:s}=this;await(0,V.VA)(s,"editing");const r=t.attributes[s.objectIdField],n=s.parsedUrl.path+"/"+r+"/addAttachment",a=this._getLayerRequestOptions(),o=this._getFormDataForAttachment(e,a.query);try{return D((await(0,i.A)(n,{body:o})).data.addAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(r,t)}}async updateAttachment(t,e,s){await this.load();const{layer:r}=this;await(0,V.VA)(r,"editing");const n=t.attributes[r.objectIdField],a=r.parsedUrl.path+"/"+n+"/updateAttachment",o=this._getLayerRequestOptions({query:{attachmentId:e}}),u=this._getFormDataForAttachment(s,o.query);try{return D((await(0,i.A)(a,{body:u})).data.updateAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(n,t)}}async applyEdits(t,e){await this.load();const{layer:s}=this;await(0,V.VA)(s,"editing");const r="infoFor3D"in s?s.infoFor3D:null,n=null!=r,u=n||(e?.globalIdUsed??!1),c=n?await this._uploadMeshesAndGetAssetMapEditsJSON(t):null,l=t.addFeatures?.map(t=>O(this.layer,t,r))??[],p=(await Promise.all(l)).filter(a.Ru),h=t.updateFeatures?.map(t=>O(this.layer,t,r))??[],d=(await Promise.all(h)).filter(a.Ru),f=N(this.layer,t.deleteFeatures,u);(0,B.u)(p,d,s.spatialReference);const y=await P(this.layer,t),m=s.capabilities.editing.supportsAsyncApplyEdits&&n,g=e?.gdbVersion||s.gdbVersion,S={gdbVersion:g,rollbackOnFailure:e?.rollbackOnFailureEnabled,useGlobalIds:u,returnEditMoment:e?.returnEditMoment,trueCurveClient:e?.editsRespectTrueCurves,usePreviousEditMoment:e?.usePreviousEditMoment,async:m};await(0,L.ZJ)(this.layer.url,g,!0);const v=(0,L.w5)(this.layer.url,g||null);if(await(0,L.We)(s.url,g,s.historicMoment))throw new o.A("feature-layer-source:historic-version","Editing a historic version is not allowed");e?.returnServiceEditsOption?(S.edits=JSON.stringify([{id:s.layerId,adds:p.length?p:null,updates:d.length?d:null,deletes:f.length?f:null,attachments:y,assetMaps:c}]),S.returnServiceEditsOption=$.toJSON(e?.returnServiceEditsOption),S.returnServiceEditsInSourceSR=e?.returnServiceEditsInSourceSR):(S.adds=p.length?JSON.stringify(p):null,S.updates=d.length?JSON.stringify(d):null,S.deletes=f.length?u?JSON.stringify(f):f.join(","):null,S.attachments=y&&JSON.stringify(y),S.assetMaps=null!=c?JSON.stringify(c):void 0);const b=this._getLayerRequestOptions({method:"post",query:S});v&&(b.authMode="immediate",b.query.returnEditMoment=!0,b.query.sessionId=L.TA);const A=e?.returnServiceEditsOption?s.url:s.parsedUrl.path;let x;try{x=m?await this._asyncApplyEdits(A+"/applyEdits",b):await(0,i.A)(A+"/applyEdits",b)}catch(t){if(!function(t){const e=t.details.raw,s=+e.code,r=+e.extendedCode;return 500===s&&(-2147217144===r||-2147467261===r)}(t))throw t;b.authMode="immediate",x=m?await this._asyncApplyEdits(A+"/applyEdits",b):await(0,i.A)(A+"/applyEdits",b)}return this._createEditsResult(x)}async deleteAttachments(t,e){await this.load();const{layer:s}=this;await(0,V.VA)(s,"editing");const r=t.attributes[s.objectIdField],n=s.parsedUrl.path+"/"+r+"/deleteAttachments";try{return(await(0,i.A)(n,this._getLayerRequestOptions({query:{attachmentIds:e.join(",")},method:"post"}))).data.deleteAttachmentResults.map(D)}catch(t){throw this._createAttachmentErrorResult(r,t)}}fetchRecomputedExtents(t={}){const e=t.signal;return this.load({signal:e}).then(async()=>{const e=this._getLayerRequestOptions({...t,query:{returnUpdates:!0}}),{layerId:s,url:r}=this.layer,{data:n}=await(0,i.A)(`${r}/${s}`,e),{id:a,extent:o,fullExtent:u,timeExtent:c}=n,l=o||u;return{id:a,fullExtent:l&&S.A.fromJSON(l),timeExtent:c&&z.A.fromJSON({start:c[0],end:c[1]})}})}async queryAttachments(t,e={}){await this.load();const s=this._getLayerRequestOptions(e);return this.queryTask.executeAttachmentQuery(t,s)}async queryFeatures(t,e){await this.load();const s=await this.queryTask.execute(t,{...e,query:this._createRequestQueryOptions(e)});if(t.outStatistics?.length&&s.features.length){const e=new Map;if(s.features.forEach(s=>{const r=s.attributes;t.outStatistics?.forEach(({outStatisticFieldName:t})=>{if(t){const s=t.toLowerCase();s&&s in r&&t!==s&&(r[t]=r[s],delete r[s],e.set(s,t))}})}),null!=s.fields)for(const t of s.fields){const s=e.get(t.name.toLowerCase());null!=s&&(t.name=s)}}return s}async queryFeaturesJSON(t,e){return await this.load(),this.queryTask.executeJSON(t,{...e,query:this._createRequestQueryOptions(e)})}async queryObjectIds(t,e){return await this.load(),this.queryTask.executeForIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryFeatureCount(t,e){return await this.load(),this.queryTask.executeForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryExtent(t,e){return await this.load(),this.queryTask.executeForExtent(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeatures(t,e){return await this.load(),this.queryTask.executeRelationshipQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeaturesCount(t,e){return await this.load(),this.queryTask.executeRelationshipQueryForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryPivot(t,e){return await this.load(),this.queryTask.executePivotQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopFeatures(t,e){return await this.load(),this.queryTask.executeTopFeaturesQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryAttributeBins(t,e){return await this.load(),this.queryTask.executeAttributeBinsQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopObjectIds(t,e){return await this.load(),this.queryTask.executeForTopIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopExtents(t,e){return await this.load(),this.queryTask.executeForTopExtents(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopCount(t,e){return await this.load(),this.queryTask.executeForTopCount(t,{...e,query:this._createRequestQueryOptions(e)})}async fetchPublishingStatus(){if(!(0,J.Wo)(this.layer.url))return"unavailable";const t=(0,y.fj)(this.layer.url,"status"),e=await(0,i.A)(t,{query:{f:"json"}});return W.fromJSON(e.data.status)}async uploadAssets(t,e){const{uploadAssets:r}=await s.e(1384).then(s.bind(s,31384));return r(t,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},e)}_handleLastEditsEventChange(t){const e=this.layer;if(null==t||!("capabilities"in e)||!("effectiveCapabilities"in e))return;if(e.capabilities?.operations?.supportsEditing||!e.effectiveCapabilities?.operations?.supportsEditing)return;const s=e.url;null!=s&&("layerId"in e&&(0,y.fj)(s,e.layerId.toString()),this._getOrCreateEditInterceptor(s).before=e=>{const s=e.requestOptions.method??"auto";if("auto"===s||"head"===s){const s=e.requestOptions.query??{};s._ts=t.getTime(),e.requestOptions.query=s}})}_getOrCreateEditInterceptor(t){return null==this._editInterceptor&&(this._editInterceptor={urls:t},n.A.request.internalInterceptors.push(this._editInterceptor)),this._editInterceptor}_removeEditInterceptor(){null!=this._editInterceptor&&((0,a.TF)(n.A.request.internalInterceptors,this._editInterceptor),this._editInterceptor=null)}async _asyncApplyEdits(t,e){const s=(await(0,i.A)(t,e)).data.statusUrl;for(;;){const t=(await(0,i.A)(s,{query:{f:"json"},responseType:"json"})).data;switch(t.status){case"Completed":return(0,i.A)(t.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed (undefined response status)")}await(0,d.Pl)(H)}}_createRequestQueryOptions(t){const e={...this.layer.customParameters,token:this.layer.apiKey,...t?.query};return this.layer.datesInUnknownTimezone&&(e.timeReferenceUnknownClient=!0),e}async _fetchService(t,e){if(!t){const s={};(0,u.A)("featurelayer-advanced-symbols")&&(s.returnAdvancedSymbols=!0),e?.cacheBust&&(s._ts=Date.now());const{data:r}=await(0,i.A)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:s,signal:e?.signal}));t=r}this.layer.applyPreferredHost(t),this.sourceJSON=await this._patchServiceJSON(t,e?.signal);const s=t.type;if(!this.supportedSourceTypes.has(s))throw new o.A("feature-layer-source:unsupported-type",`Source type "${s}" is not supported`)}async _patchServiceJSON(t,e){if("Table"!==t.type&&t.geometryType&&!t?.drawingInfo?.renderer&&!t.defaultSymbol){const e=(0,Q.F0)(t.geometryType).renderer;(0,h.sM)("drawingInfo.renderer",e,t)}if("esriGeometryMultiPatch"===t.geometryType&&t.infoFor3D&&(t.geometryType="mesh"),null==t.extent)try{const{data:s}=await(0,i.A)(this.layer.url,this._getLayerRequestOptions({signal:e}));s.spatialReference&&(t.extent={xmin:0,ymin:0,xmax:0,ymax:0,spatialReference:s.spatialReference})}catch(t){(0,d.QP)(t)}return t}async _ensureLatestMetadata(t){if(this.layer.userHasUpdateItemPrivileges&&this.sourceJSON.cacheMaxAge>0)return this._fetchService(null,{...t,cacheBust:!0})}async _uploadMeshesAndGetAssetMapEditsJSON(t){const{addAssetFeatures:e}=t;if(!e?.length)return null;if(await this._areAllAssetsAlreadyMapped(e))return null;const r=t.addFeatures.filter(t=>t.geometry);if(e.length!==r.length+t.updateFeatures.length)throw new o.A("feature-layer-source:unsupported-mesh-edits","Mixing attribute only edits with mesh geometry edits is not currently supported");const n=new Array,i=new Map;for(const t of e){const{geometry:e}=t,{vertexSpace:r}=e;if((0,A.Hq)(r))n.push(e);else{const r=e.origin,{convertMeshVertexSpace:a}=await Promise.all([s.e(6860),s.e(4496)]).then(s.bind(s,28846)),o=await a(e,new b.A({origin:[r.x,r.y,r.z??0]}));i.set(o,e),t.geometry=o,n.push(o)}}await this.uploadAssets(n);for(const[t,e]of i)e.addExternalSources(t.metadata.externalSources.items);return{adds:this._getAssetMapEditsJSON(e),updates:[],deletes:[]}}_getAssetMapEditsJSON(t){const e=new Array,s=this.layer.globalIdField,r=this.layer.parsedUrl;for(const n of t){const t=n.geometry,{metadata:i}=t,a=i.getExternalSourcesOnService(r),o=n.getAttribute(s);if(0===a.length){p.A.getLogger(this).error(`Skipping feature ${o}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);continue}const{source:u}=a.find(x.dK)??a[0];for(const t of u.assets)1===t.parts.length?e.push({globalId:(0,m.yS)(),parentGlobalId:o,assetName:t.assetName,assetHash:t.parts[0].partHash,flags:[]}):p.A.getLogger(this).error(`Skipping asset ${t.assetName}. It does not have exactly one part, so we cannot map it to a feature.`)}return e}_createEditsResult(t){const e=t.data,{layerId:s}=this.layer,r=[];let n=null;if(Array.isArray(e))for(const t of e)r.push({id:t.id,editedFeatures:t.editedFeatures}),t.id===s&&(n={addResults:t.addResults??[],updateResults:t.updateResults??[],deleteResults:t.deleteResults??[],attachments:t.attachments,editMoment:t.editMoment});else n=e;const i=function(t){const e=t?.assetMaps;if(e){for(const t of e.addResults)t.success||p.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${t.globalId}.`);for(const t of e.updateResults)t.success||p.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${t.globalId}.`)}const s=t?.attachments,r={addFeatureResults:t?.addResults?.map(D)??[],updateFeatureResults:t?.updateResults?.map(D)??[],deleteFeatureResults:t?.deleteResults?.map(D)??[],addAttachmentResults:s?.addResults?s.addResults.map(D):[],updateAttachmentResults:s?.updateResults?s.updateResults.map(D):[],deleteAttachmentResults:s?.deleteResults?s.deleteResults.map(D):[]};return t?.editMoment&&(r.editMoment=t.editMoment),r}(n);if(r.length>0){i.editedFeatureResults=[];for(const t of r){const{editedFeatures:e}=t,s=e?.spatialReference?new v.A(e.spatialReference):null;i.editedFeatureResults.push({layerId:t.id,editedFeatures:Z(e,s)})}}return i}_createAttachmentErrorResult(t,e){const s=e.details.messages?.[0]||e.message,r=e.details.httpStatus||e.details.messageCode;return{objectId:t,globalId:null,error:new o.A("feature-layer-source:attachment-failure",s,{code:r})}}_getFormDataForAttachment(t,e){const s=t instanceof FormData?t:t&&t.elements?new FormData(t):null;if(s)for(const t in e){const r=e[t];null!=r&&(s.set?s.set(t,r):s.append(t,r))}return s}_getLayerRequestOptions(t={}){const{layer:e,layer:{parsedUrl:s,gdbVersion:r}}=this;return{...t,query:{gdbVersion:r,layer:"dynamicDataSource"in e&&e.dynamicDataSource?JSON.stringify({source:e.dynamicDataSource}):void 0,...s.query,f:"json",...this._createRequestQueryOptions(t)},responseType:"json"}}async _areAllAssetsAlreadyMapped(t){const{layer:e}=this,{globalIdField:s,parsedUrl:r}=e,n="infoFor3D"in e?e.infoFor3D:null;if(null==n||null==s)return!1;const i=(0,U.JZ)(n);if(null==i)return!1;const o=(0,y.fj)(r.path,`../${i.id}`),u=new Array;for(const e of t){if(!(e.geometry.metadata.getExternalSourcesOnService(r).length>0))return!1;u.push(e)}const c=u.map(t=>t.getAttribute(s)).filter(a.Ru);if(0===c.length)return!1;const{assetMapFieldRoles:{parentGlobalId:l,assetHash:p}}=n,h=new X.A({where:`${l} IN (${c.map(t=>`'${t}'`)})`,outFields:[p,l],returnGeometry:!1}),d=await(0,G.s)(o,h),{features:f}=d;return 0!==f.length&&!u.some(t=>{const e=t.getAttribute(s);if(!e)return!0;const{metadata:n}=t.geometry,i=f.filter(t=>t.getAttribute(l)===e);if(0===i.length)return!0;const a=i.map(t=>t.getAttribute(p));return n.getExternalSourcesOnService(r).flatMap(({source:t})=>t.assets.flatMap(t=>t.parts.map(t=>t.partHash))).some(t=>a.every(e=>t!==e))})}};(0,r.Cg)([(0,g.MZ)()],Y.prototype,"type",void 0),(0,r.Cg)([(0,g.MZ)({constructOnly:!0})],Y.prototype,"layer",void 0),(0,r.Cg)([(0,g.MZ)({constructOnly:!0})],Y.prototype,"supportedSourceTypes",void 0),(0,r.Cg)([(0,g.MZ)({readOnly:!0})],Y.prototype,"queryTask",null),Y=(0,r.Cg)([(0,g.$K)("esri.layers.graphics.sources.FeatureLayerSource")],Y);const H=1e3},64314(t,e,s){s.d(e,{A:()=>w});var r=s(5482),n=s(69622),i=s(49186),a=s(44208),o=s(17676),u=s(84952),c=s(91429),l=s(21325),p=s(20557),h=s(2272),d=s(65615),f=s(20615),y=s(74910),m=s(78286),g=s(99199),S=s(62815),v=s(63746);class b{constructor(t){this._options=t,this.featureSet={features:[]},this.parseOnly=null,this._transformInPlace=null,this._transformInPlaceXY=null,this._finishVertex=b._finishVertexNonPoint,this._attributesClass=null,this._previousX=0,this._previousY=0,this._point=null,this._lengths=null,this._vertex=[],this._part=null,this._parts=null,this._i=0}queryGeometryType(){return this.featureSet.queryGeometryType}queryGeometry(){return this.featureSet.queryGeometry}idField(t){"string"==typeof t&&(this.featureSet.objectIdFieldName=t)}finish(){this._options.applyTransform&&(this.featureSet.transform=null);const{spatialReference:t,features:e}=this.featureSet;if(t)for(const{geometry:s}of e)s&&(s.spatialReference=t)}feature(){this._attributesClass??=(0,v._7)(this.featureSet.fields?.map(t=>t.name)??[]),this.featureSet.features.push({attributes:new this._attributesClass}),this._options.applyTransform&&this._setVertexTransformer()}centroid([t,e]){this.featureSet.features.at(-1).centroid={x:t,y:e}}geometry(t,e,s){this._previousX=this._previousY=0,this._lengths=s;let r,{hasZ:n,hasM:i}=this.featureSet;switch(n??=!1,i??=!1,this._i=0,this._vertex=[0,0],n&&this._vertex.push(0),i&&this._vertex.push(0),this._finishVertex=b._finishVertexNonPoint,e){case"esriGeometryPoint":this._point={x:0,y:0},r=this._point,this._finishVertex=n?i?b._finishVertexPointXYZM:b._finishVertexPointXYZ:i?b._finishVertexPointXYM:b._finishVertexPointXY;break;case"esriGeometryMultipoint":r={points:[],hasZ:n,hasM:i},this._part=r.points,this._parts=[];break;case"esriGeometryPolyline":r={paths:[],hasZ:n,hasM:i},this._parts=r.paths,this._part=[];break;case"esriGeometryPolygon":r={rings:[],hasZ:n,hasM:i},this._parts=r.rings,this._part=[]}1===t?(this.featureSet.queryGeometry=r,this.featureSet.queryGeometryType=e,this._options.applyTransform||this._setVertexTransformer()):this.featureSet.features.at(-1).geometry=r}coord(t){const e=this._vertex;e[this._i++]=t,this._i<e.length||(this._i=0,this._transformInPlace&&(e[0]+=this._previousX,e[1]+=this._previousY,[this._previousX,this._previousY]=e,this._transformInPlace(e)),this._finishVertex(this))}curvedGeometry(t,e,s,r){let n,{hasZ:i,hasM:a}=this.featureSet;switch(i??=!1,a??=!1,t){case"esriGeometryPoint":case"esriGeometryMultipoint":throw new Error(`Curved ${t} does not make sense`);case"esriGeometryPolyline":n={paths:[],curvePaths:[],hasZ:i,hasM:a},this._parts=n.curvePaths,this._part=[];break;case"esriGeometryPolygon":n={rings:[],curveRings:[],hasZ:i,hasM:a},this._parts=n.curveRings,this._part=[]}this.featureSet.features.at(-1).geometry=n}startCurvedPart(t){this._part.push(this._transform(t))}finishCurvedPart(t){this._parts.push(this._part),this._part=[]}lineSegment(t,e){this._part.push(this._transform(e))}bezierSegment(t,e,s,r){this._part.push({b:[this._transform(e),this._transformXY(s),this._transformXY(r)]})}circularArcSegment(t,e,s){this._part.push({c:[this._transform(e),this._transformXY(s)]})}ellipticArcSegment(t,e,s,r,n,i,a,o){this._part.push({a:[this._transform(e),this._transformXY(s),r,n,i,a,o]})}static _finishVertexPointXY({_point:t,_vertex:e}){[t.x,t.y]=e}static _finishVertexPointXYZ({_point:t,_vertex:e}){[t.x,t.y,t.z]=e}static _finishVertexPointXYM({_point:t,_vertex:e}){[t.x,t.y,t.m]=e}static _finishVertexPointXYZM({_point:t,_vertex:e}){[t.x,t.y,t.z,t.m]=e}static _finishVertexNonPoint(t){const{_part:e,_parts:s,_lengths:r,_vertex:n}=t;e.push([...n]),e.length<r[s.length]||(t._previousX=t._previousY=0,t._part=[],s.push(e))}_setVertexTransformer(){const{sourceSpatialReference:t}=this._options,{spatialReference:e,hasZ:s,transform:r}=this.featureSet,n=s?(0,S.d)(t,e):1;this._transformInPlace??=(0,v.Mv)(this.featureSet,n),this._transformInPlaceXY??=(0,v.Mv)({transform:r})}_transform(t){const e=[...t];return this._transformInPlace?.(e),e}_transformXY(t){const e=[t[0],t[1]];return this._transformInPlaceXY?.(e),e}}var A=s(80893),x=s(22671),_=s(61956);async function M(t,e,s,r){const n=(0,h.Dl)(t),i={...s},a=_.A.from(e),o=!a.quantizationParameters;return await(0,A.IJ)(n,a,new b({sourceSpatialReference:a.sourceSpatialReference,applyTransform:o}),i,r)}let w=class extends n.A{constructor(t){super(t),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.pbfSupportedWithCurves=!1,this.queryAttachmentsSupported=!1,this.relativeTimeBinWindow=0,this.sourceSpatialReference=null,this.uniqueIdFields=null,this.url=null}get parsedUrl(){return(0,u.An)(this.url)}async execute(t,e){const s=await this.executeJSON(t,e);return this.featureSetFromJSON(t,s,e)}async executeJSON(t,e){const s=this._normalizeQuery(t),r=null!=t.outStatistics?.[0],n=(0,a.A)("featurelayer-pbf-statistics");let i;if(this.pbfSupported&&(!r||n)&&(!t.returnTrueCurves||this.pbfSupportedWithCurves))try{i=await M(this.url,s,e,{uniqueIdFields:this.uniqueIdFields})}catch(t){if("query:parsing-pbf"!==t.name)throw t;this.pbfSupported=!1}return i??=await(0,g.e)(this.url,s,e,{uniqueIdFields:this.uniqueIdFields}),this._normalizeFields(i.fields),i}async featureSetFromJSON(t,e,r){if(!this._queryGet3DObjectFormat(t)||null==this.infoFor3D||!e.features)return x.A.fromJSON(e);const{meshFeatureSetFromJSON:n}=await(0,o.qr)(Promise.all([s.e(6860),s.e(7005),s.e(6754),s.e(4934),s.e(7634),s.e(8883)]).then(s.bind(s,40050)),r);return n(t,this.infoFor3D,e)}executeForCount(t,e){return(0,f.I)(this.url,this._normalizeQuery(t),e,{uniqueIdFields:this.uniqueIdFields})}executeForExtent(t,e){return(0,y.L)(this.url,this._normalizeQuery(t),e)}executeForIds(t,e){return(0,m.V)(this.url,this._normalizeQuery(t),e,{uniqueIdFields:this.uniqueIdFields})}async executeRelationshipQuery(t,e){const[{default:r},{executeRelationshipQuery:n}]=await(0,o.qr)(Promise.all([Promise.resolve().then(s.bind(s,26591)),s.e(1763).then(s.bind(s,71763))]),e);let i=r.from(t);return(this.gdbVersion||this.dynamicDataSource)&&(i=i.clone(),i.gdbVersion=i.gdbVersion||this.gdbVersion,i.dynamicDataSource=i.dynamicDataSource||this.dynamicDataSource),n(this.url,i,e)}async executeRelationshipQueryForCount(t,e){const[{default:r},{executeRelationshipQueryForCount:n}]=await(0,o.qr)(Promise.all([Promise.resolve().then(s.bind(s,26591)),s.e(1763).then(s.bind(s,71763))]),e);let i=r.from(t);return(this.gdbVersion||this.dynamicDataSource)&&(i=i.clone(),i.gdbVersion=i.gdbVersion||this.gdbVersion,i.dynamicDataSource=i.dynamicDataSource||this.dynamicDataSource),n(this.url,i,e)}async executeAttachmentQuery(t,e){const{executeAttachmentQuery:r,fetchAttachments:n,processAttachmentQueryResult:i}=await(0,o.qr)(s.e(9239).then(s.bind(s,9239)),e),a=(0,h.Dl)(this.url);return i(a,await(this.queryAttachmentsSupported?r(a,t,e):n(a,t,e)))}async executeAttributeBinsQuery(t,e){const{executeAttributeBinsQuery:r}=await(0,o.qr)(s.e(3103).then(s.bind(s,33103)),e);return r(this.parsedUrl,t,e)}async executePivotQuery(t,e){const{executePivotQuery:r}=await(0,o.qr)(s.e(566).then(s.bind(s,80566)),e);return r(this.parsedUrl,t,e)}async executeTopFeaturesQuery(t,e){const{executeTopFeaturesQuery:r}=await(0,o.qr)(s.e(1273).then(s.bind(s,11273)),e);return r(this.parsedUrl,t,this.sourceSpatialReference,e)}async executeForTopIds(t,e){const{executeForTopIds:r}=await(0,o.qr)(s.e(1277).then(s.bind(s,21277)),e);return r(this.parsedUrl,t,e)}async executeForTopExtents(t,e){const{executeForTopExtents:r}=await(0,o.qr)(s.e(8018).then(s.bind(s,8018)),e);return r(this.parsedUrl,t,e)}async executeForTopCount(t,e){const{executeForTopCount:r}=await(0,o.qr)(s.e(980).then(s.bind(s,10980)),e);return r(this.parsedUrl,t,e)}_normalizeQuery(t){let e=_.A.from(t);e.sourceSpatialReference=e.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(e=e===t?e.clone():e,e.gdbVersion=t.gdbVersion||this.gdbVersion,e.dynamicDataSource=t.dynamicDataSource?d.A.from(t.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:s}=this,r=this._queryGet3DObjectFormat(t);if(null!=s&&r){if(e=e===t?e.clone():e,e.formatOf3DObjects=r,e.outSpatialReference&&!(0,l.aI)(e.outSpatialReference,this.sourceSpatialReference))throw new i.A("query:unsupported-out-spatial-reference","3D object feature services do not support projection of geometries");if(null==e.outFields||!e.outFields.includes("*")){e=e===t?e.clone():e,null==e.outFields&&(e.outFields=[]);const{originX:r,originY:n,originZ:i,translationX:a,translationY:o,translationZ:u,scaleX:c,scaleY:l,scaleZ:p,rotationX:h,rotationY:d,rotationZ:f,rotationDeg:y}=s.transformFieldRoles;e.outFields.push(r,n,i,a,o,u,c,l,p,h,d,f,y)}}return e}_normalizeFields(t){if(null!=this.fieldsIndex&&null!=t)for(const e of t){const t=this.fieldsIndex.get(e.name);t&&Object.assign(e,t.toJSON())}}_queryGet3DObjectFormat({returnGeometry:t,multipatchOption:e,outStatistics:s}){return!0!==t||"xyFootprint"===e||s?null:(0,p.Hz)(this.infoFor3D)}};(0,r.Cg)([(0,c.MZ)({type:d.A})],w.prototype,"dynamicDataSource",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"gdbVersion",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"infoFor3D",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],w.prototype,"parsedUrl",null),(0,r.Cg)([(0,c.MZ)()],w.prototype,"pbfSupported",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"pbfSupportedWithCurves",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"queryAttachmentsSupported",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"relativeTimeBinWindow",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"sourceSpatialReference",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"uniqueIdFields",void 0),(0,r.Cg)([(0,c.MZ)({type:String})],w.prototype,"url",void 0),w=(0,r.Cg)([(0,c.$K)("esri.layers.graphics.sources.support.QueryTask")],w)},64714(t,e,s){s.d(e,{F0:()=>o,Vx:()=>l,e2:()=>h,f:()=>d});var r=s(44208),n=s(4718),i=s(99352),a=s(93470);function o(t){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===t||"esriGeometryMultipoint"===t?a.Cb:"esriGeometryPolyline"===t?a.yM:a.WR}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let c=1;function l(t,e){if((0,r.A)("esri-csp-restrictions"))return()=>e?{[e]:null,...t}:{...t};try{let s="";e&&(s+=`this${p(e)} = null;`);for(const e in t)s+=`this${p(e)} = ${JSON.stringify(t[e])};`;const r=new Function(`\n return class AttributesClass$${c++} {\n constructor() {\n ${s};\n }\n }\n `)();return()=>new r}catch(s){return()=>e?{[e]:null,...t}:{...t}}}function p(t){return u.test(t)?`.${t}`:`[${JSON.stringify(t)}]`}function h(t={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.o8)(t)}}]}function d(t,e){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:t},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:e,supportsDelete:e,supportsEditing:e,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:e,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i.P,editing:{supportsGeometryUpdate:e,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:e,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},92300(t,e,s){s.d(e,{V:()=>a,X:()=>i});var r=s(60408),n=s(65864);function i(t){return{geometryType:(0,r.$B)(t[0]),geometries:t.map(t=>t.toJSON())}}function a(t,e,s){const r=(0,n.xD)(e);return t.map(t=>{const e=r.fromJSON(t);return e.spatialReference=s,e})}},20615(t,e,s){s.d(e,{I:()=>a});var r=s(2272),n=s(80893),i=s(61956);function a(t,e,s,a){return(0,n.gW)((0,r.Dl)(t),i.A.from(e),s,a)}},74910(t,e,s){s.d(e,{L:()=>o});var r=s(5443),n=s(2272),i=s(80893),a=s(61956);async function o(t,e,s){const o=(0,n.Dl)(t),u=await(0,i.Jf)(o,a.A.from(e),{...s}),c=u.extent;return!c||isNaN(c.xmin)||isNaN(c.ymin)||isNaN(c.xmax)||isNaN(c.ymax)?{count:u.count,extent:null}:{count:u.count,extent:r.A.fromJSON(c)}}},78286(t,e,s){s.d(e,{V:()=>a});var r=s(2272),n=s(80893),i=s(61956);async function a(t,e,s,a){const o=(0,r.Dl)(t),u=await(0,n.Pk)(o,i.A.from(e),s,a);return u.objectIds??function(t){if(t)return function(t){return!Array.isArray(t[0])}(t)?t:t.map(t=>JSON.stringify(t))}(u.uniqueIds)??[]}},99199(t,e,s){s.d(e,{e:()=>u,s:()=>o});var r=s(2272),n=s(80893),i=s(22671),a=s(61956);async function o(t,e,s,r){const n=await u(t,e,s,r);return i.A.fromJSON(n)}function u(t,e,s,i){const o=(0,r.Dl)(t),u={...s},c=a.A.from(e);return(0,n.eW)(o,c,c.sourceSpatialReference,u,i)}},63746(t,e,s){function r(t){return class{constructor(){for(const e of t)this[e]=null}}}function n(t,e=1){const{transform:s,hasZ:r,hasM:n}=t;if(null==s)return r&&1!==e?t=>{t[2]*=e}:null;const[i,a]=function(t,e,s,r){let{scale:n,translate:i,originPosition:a}=t;return"upperLeft"===a&&(n=n.map((t,e)=>1===e?-t:t)),e&&(n=n.map((t,e)=>2===e?t*r:t),i=i.map((t,e)=>2===e?t*r:t)),!e&&s&&(n=n.filter((t,e)=>2!==e),i=i.filter((t,e)=>2!==e)),[n,i]}(s,r,n,e),o=t.hasZ?3:2;return t=>{for(let e=0;e<t.length&&(e!==o||0!==t[e]);++e)t[e]=t[e]*i[e]+a[e]}}s.d(e,{Mv:()=>n,_7:()=>r}),s(53966)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3636],{69052(t,e,s){s.d(e,{hr:()=>n,ie:()=>u,uC:()=>o});var r=s(34727);class n{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,s=!1){return i(this.range,this.min,this.max,t,e,s)}clamp(t,e=0){return(0,r.qE)(t-e,this.min,this.max)+e}monotonic(t,e,s){return t<e?e:e+a(this.range,t-e,s)}minimalMonotonic(t,e,s){return i(this.range,t,t+this.range,e,s)}center(t,e,s){return e=this.monotonic(t,e,s),this.normalize((t+e)/2,s)}diff(t,e,s){return this.monotonic(t,e,s)-t}shortestSignedDiff(t,e){t=this.normalize(t);const s=(e=this.normalize(e))-t,r=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(s)<Math.abs(r)?s:r}contains(t,e,s){return e=this.minimalMonotonic(t,e),(s=this.minimalMonotonic(t,s))>t&&s<e}}function i(t,e,s,r,n=0,i=!1){return(r-=n)<e?r+=a(t,e-r):r>s&&(r-=a(t,r-s)),i&&r===s&&(r=e),r+n}function a(t,e,s=0){return Math.ceil((e-s)/t)*t+s}const o=new n(0,2*Math.PI),u=(new n(-Math.PI,Math.PI),new n(0,360))},82534(t,e,s){function r(){return[0,0,0,1]}function n(t){return[t[0],t[1],t[2],t[3]]}s.d(e,{o8:()=>n,vt:()=>r,zK:()=>i});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:n,create:r,fromValues:function(t,e,s,r){return[t,e,s,r]}},Symbol.toStringTag,{value:"Module"}))},67026(t,e,s){s.d(e,{A6:()=>y,Xd:()=>l,Xr:()=>d,hZ:()=>g,lw:()=>p,t2:()=>F,x8:()=>c});var r=s(29242),n=s(82534),i=s(51850),a=s(34304),o=s(35522),u=s(78955);function c(t,e,s){s*=.5;const r=Math.sin(s);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(s),t}function l(t,e){const s=2*Math.acos(e[3]),r=Math.sin(s/2);return r>(0,a.FD)()?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),s}function p(t,e,s){const r=e[0],n=e[1],i=e[2],a=e[3],o=s[0],u=s[1],c=s[2],l=s[3];return t[0]=r*l+a*o+n*c-i*u,t[1]=n*l+a*u+i*o-r*c,t[2]=i*l+a*c+r*u-n*o,t[3]=a*l-r*o-n*u-i*c,t}function h(t,e,s,r){const n=e[0],i=e[1],o=e[2],u=e[3];let c,l,p,h,d,f=s[0],y=s[1],m=s[2],g=s[3];return l=n*f+i*y+o*m+u*g,l<0&&(l=-l,f=-f,y=-y,m=-m,g=-g),1-l>(0,a.FD)()?(c=Math.acos(l),p=Math.sin(c),h=Math.sin((1-r)*c)/p,d=Math.sin(r*c)/p):(h=1-r,d=r),t[0]=h*n+d*f,t[1]=h*i+d*y,t[2]=h*o+d*m,t[3]=h*u+d*g,t}function d(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function f(t,e){const s=e[0]+e[4]+e[8];let r;if(s>0)r=Math.sqrt(s+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{let s=0;e[4]>e[0]&&(s=1),e[8]>e[3*s+s]&&(s=2);const n=(s+1)%3,i=(s+2)%3;r=Math.sqrt(e[3*s+s]-e[3*n+n]-e[3*i+i]+1),t[s]=.5*r,r=.5/r,t[3]=(e[3*n+i]-e[3*i+n])*r,t[n]=(e[3*n+s]+e[3*s+n])*r,t[i]=(e[3*i+s]+e[3*s+i])*r}return t}function y(t,e,s,r){const n=.5*Math.PI/180;e*=n,s*=n,r*=n;const i=Math.sin(e),a=Math.cos(e),o=Math.sin(s),u=Math.cos(s),c=Math.sin(r),l=Math.cos(r);return t[0]=i*u*l-a*o*c,t[1]=a*o*l+i*u*c,t[2]=a*u*c-i*o*l,t[3]=a*u*l+i*o*c,t}const m=u.C,g=u.hZ,S=u.WQ,v=p,b=u.hs,A=u.Om,x=u.Cc,_=u.Bw,M=_,w=u.m3,R=w,q=u.S8,F=u.t2,I=u.aI,E=(0,i.vt)(),C=(0,i.fA)(1,0,0),O=(0,i.fA)(0,1,0),P=(0,n.vt)(),T=(0,n.vt)(),N=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:S,calculateW:function(t,e){const s=e[0],r=e[1],n=e[2];return t[0]=s,t[1]=r,t[2]=n,t[3]=Math.sqrt(Math.abs(1-s*s-r*r-n*n)),t},conjugate:d,copy:m,dot:A,equals:I,exactEquals:F,fromEuler:y,fromMat3:f,getAxisAngle:l,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){const s=e[0],r=e[1],n=e[2],i=e[3],a=s*s+r*r+n*n+i*i,o=a?1/a:0;return t[0]=-s*o,t[1]=-r*o,t[2]=-n*o,t[3]=i*o,t},len:M,length:_,lerp:x,mul:v,multiply:p,normalize:q,random:function(t){const e=a.Ov,s=e(),r=e(),n=e(),i=Math.sqrt(1-s),o=Math.sqrt(s);return t[0]=i*Math.sin(2*Math.PI*r),t[1]=i*Math.cos(2*Math.PI*r),t[2]=o*Math.sin(2*Math.PI*n),t[3]=o*Math.cos(2*Math.PI*n),t},rotateX:function(t,e,s){s*=.5;const r=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(s),u=Math.cos(s);return t[0]=r*u+a*o,t[1]=n*u+i*o,t[2]=i*u-n*o,t[3]=a*u-r*o,t},rotateY:function(t,e,s){s*=.5;const r=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(s),u=Math.cos(s);return t[0]=r*u-i*o,t[1]=n*u+a*o,t[2]=i*u+r*o,t[3]=a*u-n*o,t},rotateZ:function(t,e,s){s*=.5;const r=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(s),u=Math.cos(s);return t[0]=r*u+n*o,t[1]=n*u-r*o,t[2]=i*u+a*o,t[3]=a*u-i*o,t},rotationTo:function(t,e,s){const r=(0,o.Om)(e,s);return r<-.999999?((0,o.$A)(E,C,e),(0,o.Il)(E)<1e-6&&(0,o.$A)(E,O,e),(0,o.S8)(E,E),c(t,E,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,o.$A)(E,e,s),t[0]=E[0],t[1]=E[1],t[2]=E[2],t[3]=1+r,q(t,t))},scale:b,set:g,setAxes:function(t,e,s,r){const n=N;return n[0]=s[0],n[3]=s[1],n[6]=s[2],n[1]=r[0],n[4]=r[1],n[7]=r[2],n[2]=-e[0],n[5]=-e[1],n[8]=-e[2],q(t,f(t,n))},setAxisAngle:c,slerp:h,sqlerp:function(t,e,s,r,n,i){return h(P,e,n,i),h(T,s,r,i),h(t,P,T,2*i*(1-i)),t},sqrLen:R,squaredLength:w,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},56512(t,e,s){function r(t){let e,s,r=[],n=!1;return function(...i){return n&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let s=0;s<t.length;++s)if(t[s]!==e[s])return!1;return!0}(i,r)||(s=t.apply(this,i),e=this,r=i,n=!0),s}}s.d(e,{B:()=>r})},69397(t,e,s){s.d(e,{Qf:()=>u,Qh:()=>a,RS:()=>n,Ul:()=>d,i5:()=>h,lM:()=>i,qK:()=>l});var r=s(34275);const n=16;function i(t){if(!t)return 0;let e=l;for(const s in t)t.hasOwnProperty(s)&&(e+=o(t[s],!1));return e}function a(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return c(t,8);let s=p;for(let r=0;r<e;r++)s+=o(t[r]);return s}(t);let e=l;for(const s in t)t.hasOwnProperty(s)&&(e+=o(t[s]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?a(t):l;case"string":return function(t){return 32+t.length}(t);case"number":return n;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+h:Array.isArray(e)?c(e,n):0:0),0)}function c(t,e){return p+t.length*e}const l=32,p=16,h=145,d=64},95696(t,e,s){s.d(e,{A:()=>c});var r,n=s(5482),i=s(69540),a=s(25482),o=s(91429),u=s(93223);let c=class extends((0,i.OU)(a.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,n.Cg)([(0,u.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=r=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c)},18251(t,e,s){s.r(e),s.d(e,{default:()=>c});var r=s(5482),n=s(69540),i=s(25482),a=s(91429),o=s(51850),u=s(93223);let c=class extends((0,n.OU)(i.o)){constructor(t){super(t),this.type="local",this.origin=(0,o.vt)()}};(0,r.Cg)([(0,u.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r.Cg)([(0,a.$K)("esri.geometry.support.MeshLocalVertexSpace")],c)},73836(t,e,s){s.d(e,{A:()=>d});var r=s(5482),n=s(69540),i=s(25482),a=s(91429),o=s(58083),u=s(9093),c=s(67026),l=s(82534),p=s(51850),h=s(24770);let d=class extends((0,n.OU)(i.o)){constructor(t){super(t),this.translation=(0,p.vt)(),this.rotationAxis=(0,p.ci)(h.up),this.rotationAngle=0,this.scale=(0,p.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,p.o8)((0,h.yo)(t)),this.rotationAngle=(0,h.g7)(t)}get localMatrix(){const t=(0,u.vt)();return(0,c.x8)(f,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,o.o1)(t,f,this.translation,this.scale),t}get localMatrixInverse(){return(0,o.B8)((0,u.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,o.t2)(this.localMatrix,t.localMatrix)}};(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"translation",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAxis",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAngle",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"scale",void 0),(0,r.Cg)([(0,a.MZ)()],d.prototype,"rotation",null),(0,r.Cg)([(0,a.MZ)()],d.prototype,"localMatrix",null),(0,r.Cg)([(0,a.MZ)()],d.prototype,"localMatrixInverse",null),d=(0,r.Cg)([(0,a.$K)("esri.geometry.support.MeshTransform")],d);const f=(0,l.vt)()},24770(t,e,s){s.d(e,{$I:()=>g,AU:()=>f,Cr:()=>p,g7:()=>m,i4:()=>l,ui:()=>h,up:()=>v,vt:()=>c,yo:()=>y});var r=s(34727),n=s(58083),i=s(67026),a=s(82534),o=s(35522),u=s(51850);function c(t=v){return[t[0],t[1],t[2],t[3]]}function l(t,e,s=c()){return(0,o.C)(s,t),s[3]=e,s}function p(t,e,s){return(0,o.$A)(s,t,e),(0,o.S8)(s,s),s[3]=-(0,o.g7)(t,e),s}function h(t,e=c()){const s=(0,n.l)(b,t);return S(e,(0,r.KJ)((0,i.Xd)(e,s))),e}function d(t,e,s=c()){return(0,i.x8)(b,t,g(t)),(0,i.x8)(A,e,g(e)),(0,i.lw)(b,A,b),S(s,(0,r.KJ)((0,i.Xd)(s,b)))}function f(t,e,s,r=c()){return l(u.Cw,t,x),l(u.JP,e,_),l(u.Cb,s,M),d(x,_,x),d(x,M,r),r}function y(t){return t}function m(t){return t[3]}function g(t){return(0,r.kU)(t[3])}function S(t,e){return t[3]=e,t}const v=[0,0,1,0],b=(0,a.vt)(),A=(0,a.vt)(),x=(c(),c()),_=c(),M=c()},31411(t,e,s){s.d(e,{GS:()=>M,gh:()=>R});var r=s(49186),n=s(56512),i=s(65864),a=s(4305),o=s(50954),u=s(52006),c=s(49663),l=s(46068),p=s(15507);const h=1e-6,d=[0,0];function f(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class y{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:s,maxSegmentsPerCurve:r,minSegmentsPerCurve:n}){const i=s*s,a=e*e,o=1/r,u=this.interpolate(0),c=this.interpolate(1);(0,p.kb)(this.curveStart,u)>h&&t.push(u),this.initialize(u,c);const l=1/n;for(let t=n-1;t>0;t--){const e=t*l;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<o||(0===i||!isFinite(i)||(0,p.kb)(this.arcStart,this.arcEnd)<i)&&(0===a||!isFinite(a)||this.getDeviation2()<a)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,p.kb)(this.curveEnd,c)>h&&t.push([...this.curveEnd]),t}}class m extends y{constructor(t,e){const[s,r,n]=e.b;super(t,s),this._controlPointsStack=[],this._curveControlPoints=[r,n],this._arcControlPoints=[r,n],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:s,tStart:r,tEnd:n}=this,[i,a]=this._arcControlPoints,o=(t-r)/(n-r),u=(0,p.RS)([],e,i,o),c=(0,p.RS)(d,i,a,o),l=(0,p.RS)([],a,s,o),h=(0,p.RS)([],u,c,o),f=(0,p.RS)([],c,l,o),y=(0,p.RS)([],h,f,o);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([f,l]),this.tEndStack.push(t),this.arcEndStack.push(y),this._arcControlPoints[0]=u,this._arcControlPoints[1]=h,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:s}=this,[r,n]=this._curveControlPoints;return(0,a.B4)(e,r,n,s,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[s,r]=this._arcControlPoints;return Math.max((0,p.yE)(s,t,e),(0,p.yE)(r,t,e))}}class g extends y{constructor(t,e){const[s]=e.a;super(t,s),this._derivedEllipse=(0,l.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,l.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,p.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function S(t,e,s,{cx:r,cy:n,radius:i,thetaStart:a,thetaEnd:o,isInvalid:u},{maxDeviation:c,maxSegmentLength:l,maxSegmentsPerCurve:d,minSegmentsPerCurve:f}){if(u)return t.push([...s]),t;const y=2*i,m=[r+i*Math.cos(a),n+i*Math.sin(a)],g=[r+i*Math.cos(o),n+i*Math.sin(o)];(0,p.kb)(e,m)>h&&t.push(m);const S=Math.abs(o-a),v=l>0&&l<y?2*Math.asin(l/y):S,b=c>0&&c<=i?2*Math.acos(1-c/i):S,A=Math.min(v,b),x=Math.min(d,Math.max(f,Math.ceil(Math.abs(S/A)))),_=1/x;for(let e=1;e<x;e++){const s=e*_,u=a*(1-s)+o*s;t.push([r+i*Math.cos(u),n+i*Math.sin(u)])}return t.push(g),(0,p.kb)(s,g)>h&&t.push([...s]),t}function v(t,e,s,r){return new m(e,s).densify(t,r)}function b(t,e,s,r){const n=(0,o.pM)(e,s),[i]=s.c;return S(t,e,i,n,r)}function A(t,e,s,r){const n=(0,c.io)(e,s),[i]=s.a;return S(t,e,i,n,r)}function x(t,e,s,r){const[n,i,a,o,u,c,l]=s.a;return 0===c||0===l?(t.push([...n]),t):new g(e,s).densify(t,r)}function _(t,e,s,r){return(0,u.Xq)(s)?(t.push([...s]),t):(0,u.n1)(s)?v(t,e,s,r):(0,u.aO)(s)?b(t,e,s,r):(0,u.DA)(s)?A(t,e,s,r):x(t,e,s,r)}function M(t,e={}){if(!(0,u.Ed)(t))return t;const s=f(e),r=(0,u.FD)(t),n=[];for(const t of r){const e=[];for(let r=0;r<t.length-1;r++){const n=r+1,i=[...(0,u.yP)(t[r])];0===r&&e.push(i),_(e,i,t[n],s)}n.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:n,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:n,spatialReference:t.spatialReference}}const w=(0,n.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function R(t,e,n){const a=new Set(e);return await async function(t,e,n){let i=null;for(const a of t)if(a&&(0,u.Ed)(a)&&null==a.spatialReference.xyTolerance&&(0,u.V8)(a,e)){const t=a.spatialReference;if(!t)throw new r.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=q(t);if(n.has(e))a.spatialReference=n.get(e);else{i||(i=await Promise.all([s.e(6042),s.e(1878),s.e(8885),s.e(5756),s.e(3299),s.e(6312)]).then(s.bind(s,78125)));const o=i.fromSpatialReference(t),u=o?.getTolerance();if(null==u)throw new r.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const c=a.spatialReference.clone();c.read({xyTolerance:u}),a.spatialReference=c,n.set(e,c)}}}(t,a,n),t.map(t=>{if(!t||!(0,u.Ed)(t))return t;const s=t.spatialReference.xyTolerance;if(null==s)return t;const r=w(s);return(0,i.rS)(function(t,e,s){if(!(0,u.Ed)(t))return t;const r=new Set(e),n=f(s),i=(0,u.FD)(t),a=[];let o=!1;for(const t of i){const e=[];for(let s=0;s<t.length-1;s++){const i=s+1,a=[...(0,u.yP)(t[s])];0===s&&e.push(a);const c=t[i];(0,u.Xq)(c)?e.push([...c]):(0,u.n1)(c)&&!r.has("cubic-bezier")?v(e,a,c,n):(0,u.aO)(c)&&!r.has("circular-arc")?b(e,a,c,n):(0,u.DA)(c)&&!r.has("elliptic-arc")?A(e,a,c,n):(0,u.wY)(c)&&!r.has("elliptic-arc")?x(e,a,c,n):(e.push((0,u.tk)(c)),o=!0)}a.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...o?{curvePaths:a}:{paths:a}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...o?{curveRings:a}:{rings:a}}}(t,e,r))})}function q(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},63579(t,e,s){s.d(e,{Bq:()=>u,Qp:()=>o,WN:()=>m,dK:()=>g,eN:()=>d,fH:()=>y,in:()=>f,yr:()=>c});var r=s(11254),n=s(4576),i=s(17676),a=s(20557);class o{constructor(t,e,s){this.assetName=t,this.assetMimeType=e,this.parts=s}equals(t){return this===t||this.assetName===t.assetName&&this.assetMimeType===t.assetMimeType&&(0,n.aI)(this.parts,t.parts,(t,e)=>t.equals(e))}isOnService(t){return this.parts.every(e=>e.isOnService(t))}makeHash(){let t="";for(const e of this.parts)t+=e.partHash;return t}async toBlob(t){const{parts:e}=this;if(1===e.length)return e[0].toBlob(t);const s=await Promise.all(e.map(e=>e.toBlob(t)));return(0,i.Te)(t),new Blob(s)}}class u{constructor(t,e){this.partUrl=t,this.partHash=e}equals(t){return this===t||this.partUrl===t.partUrl&&this.partHash===t.partHash}isOnService(t){return this.partUrl.startsWith(`${t.path}/assets/`)}async toBlob(t){const{data:e}=await(0,r.A)(this.partUrl,{responseType:"blob"});return(0,i.Te)(t),e}}function c(t){return function(t){switch(t?.type){case"client":return Array.isArray(t.files)?t.files.some(h):h(t.files);case"service":return t.assets.some(h);case"loadable":return!0;default:return!1}}(t?.source)}const l=/^(model\/gltf\+json)|(model\/gltf-binary)$/,p=/\.(gltf|glb)/i;function h(t){if(t instanceof File){const{type:e,name:s}=t;return l.test(e)||p.test(s)}return l.test(t.assetMimeType)||p.test(t.assetName)}function d(t,e){if(!t)return!1;const{source:s}=t;return function(t,e){return"service"===t.type&&t.assets.every(t=>t.isOnService(e))}(s,e)}function f(t,e){if(t===e)return!0;const{source:s}=t,{source:r}=e;if(s===r)return!0;if("service"===s.type&&"service"===r.type){if(s.assets.length!==r.assets.length)return!1;const t=(t,e)=>t.assetName<e.assetName?-1:t.assetName>e.assetName?1:0,e=[...s.assets].sort(t),n=[...r.assets].sort(t);for(let t=0;t<e.length;++t)if(!e[t].equals(n[t]))return!1;return!0}return!1}function y(t,e){return t instanceof File?(0,a.rq)(t,e):(0,a.z$)(t.assetMimeType,t.assetName,e)}function m(t){switch(t.type){case"client":return Array.isArray(t.files)?t.files:[t.files];case"service":return t.assets;case"loadable":return}}function g(t){return!!t.original}},27615(t,e,s){s.d(e,{CK:()=>u,Hq:()=>o,MW:()=>c,TE:()=>l,yJ:()=>p});var r=s(35522),n=s(86738),i=s(95696),a=s(18251);function o(t){return null!=t.origin}function u(t){return o(t.vertexSpace)}function c(t,e){if(!o(t))return null;const[s,r,i]=t.origin;return new n.A({x:s,y:r,z:i,spatialReference:e})}function l(t,e){const{x:s,y:r,z:n,spatialReference:o}=t,u=[s,r,n??0];return"local"===(e?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(o))?new a.default({origin:u}):new i.A({origin:u})}function p(t,e){return t.type===e.type&&(t.origin===e.origin||null!=t.origin&&null!=e.origin&&(0,r.t2)(t.origin,e.origin))}},17136(t,e,s){s.d(e,{Y_:()=>E,O7:()=>F,el:()=>q});var r=s(92602),n=s(69052),i=s(49186),a=s(53966),o=s(39829),u=s(82799),c=s(16930),l=s(80754),p=s(21325),h=s(28735),d=s(52006),f=s(31411),y=s(11254),m=s(60408),g=s(65864),S=s(2272),v=s(84952),b=s(92300);const A=()=>a.A.getLogger("esri.geometry.support.normalizeUtils");function x(t){return"polygon"===t[0].type}function _(t){return"polyline"===t[0].type}function M(t,e,s){const r=1e6;if(e){const e=(0,d.Ed)(t)?(0,f.GS)(t,{maxSegmentLength:r}):function(t,e){if(!(t instanceof u.A||t instanceof o.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw A().error(t),new i.A("internal:geometry",t)}const s=(0,l.r8)(t),r=[];for(const t of s){const s=[];r.push(s),s.push([t[0][0],t[0][1]]);for(let r=0;r<t.length-1;r++){const n=t[r][0],i=t[r][1],a=t[r+1][0],o=t[r+1][1],u=Math.sqrt((a-n)*(a-n)+(o-i)*(o-i)),c=(o-i)/u,l=(a-n)/u,p=u/e;if(p>1){for(let t=1;t<=p-1;t++){const r=t*e,a=l*r+n,o=c*r+i;s.push([a,o])}const t=(u+Math.floor(p-1)*e)/2,r=l*t+n,a=c*t+i;s.push([r,a])}s.push([a,o])}}return function(t){return"polygon"===t.type}(t)?new o.A({rings:r,spatialReference:t.spatialReference}):new u.A({paths:r,spatialReference:t.spatialReference})}(t,r);t=(0,h.ci)(e,!0)}return s&&(t=(0,l.kS)(t,s)),t}function w(t,e,s){if(Array.isArray(t)){const r=t[0];if(r>e){const s=(0,l.kd)(r,e);t[0]=r+s*(-2*e)}else if(r<s){const e=(0,l.kd)(r,s);t[0]=r+e*(-2*s)}}else{const r=t.x;if(r>e){const s=(0,l.kd)(r,e);t=t.clone().offset(s*(-2*e),0)}else if(r<s){const e=(0,l.kd)(r,s);t=t.clone().offset(e*(-2*s),0)}}return t}function R(t,e){let s=-1;for(let r=0;r<e.cutIndexes.length;r++){const n=e.cutIndexes[r],i=e.geometries[r],a=(0,l.r8)(i);for(let t=0;t<a.length;t++){const e=a[t];e.some(s=>{if(s[0]<180)return!0;{let s=0;for(let t=0;t<e.length;t++){const r=e[t][0];s=r>s?r:s}s=Number(s.toFixed(9));const r=-360*(0,l.kd)(s,180);for(let s=0;s<e.length;s++){const e=i.getPoint(t,s);i.setPoint(t,s,e.clone().offset(r,0))}return!0}})}if(n===s){if(x(t))for(const e of(0,l.r8)(i))t[n]=t[n].addRing(e);else if(_(t))for(const e of(0,l.r8)(i))t[n]=t[n].addPath(e)}else s=n,t[n]=i}return t}async function q(t,e,s){if(!Array.isArray(t))return q([t],e);e&&"string"!=typeof e&&A().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof e?e:e?.url??r.A.geometryServiceUrl;let i,a,c,d,f,x,_,F,I=0;const E=[],C=[];for(const e of t)if(null!=e)if(i||(i=e.spatialReference,a=(0,p.Vp)(i),c=i.isWebMercator,x=c?102100:4326,d=l.j7[x].maxX,f=l.j7[x].minX,_=l.j7[x].plus180Line,F=l.j7[x].minus180Line),a)if("mesh"===e.type)C.push(e);else if("point"===e.type)C.push(w(e.clone(),d,f));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>w(t,d,f)),C.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,a);C.push(t.rings?new o.A(t):t)}else if(e.extent){const t=e.extent,s=(0,l.kd)(t.xmin,f)*(2*d);let r=0===s?e.clone():(0,l.kS)(e.clone(),s);t.offset(s,0);let{xmin:n,xmax:i}=t;n=Number(n.toFixed(9)),i=Number(i.toFixed(9)),t.intersects(_)&&i!==d?(I=i>I?i:I,r=M(r,c),E.push(r),C.push("cut")):t.intersects(F)&&n!==f?(I=i*(2*d)>I?i*(2*d):I,r=M(r,c,360),E.push(r),C.push("cut")):C.push(r)}else C.push(e.clone());else C.push(e);else C.push(e);let O=(0,l.kd)(I,d),P=-90;const T=O,N=new u.A;for(;O>0;){const t=360*O-180;N.addPath([[t,P],[t,-1*P]]),P*=-1,O--}if(E.length>0&&T>0){const e=R(E,await async function(t,e,s,r){const n=(0,S.Dl)(t),i=e[0].spatialReference,a={...r,responseType:"json",query:{...n.query,f:"json",sr:(0,p.YX)(i),target:JSON.stringify({geometryType:(0,m.$B)(e[0]),geometries:e}),cutter:JSON.stringify(s)}},o=await(0,y.A)(n.path+"/cut",a),{cutIndexes:u,geometries:c=[]}=o.data;return{cutIndexes:u,geometries:c.map(t=>{const e=(0,g.rS)(t);return e.spatialReference=i,e})}}(n,E,N,s)),r=[],i=[];for(let s=0;s<C.length;s++){const n=C[s];if("cut"!==n)i.push(n);else{const n=e.shift(),a=t[s];null!=a&&"polygon"===a.type&&a.rings&&a.rings.length>1&&n.rings.length>=a.rings.length?(r.push(n),i.push("simplify")):i.push(c?(0,h.Gh)(n):n)}}if(!r.length)return i;const a=await async function(t,e,s){const r="string"==typeof t?(0,v.An)(t):t,n=e[0].spatialReference,i=(0,m.$B)(e[0]),a={...s,query:{...r.query,f:"json",sr:(0,p.YX)(n),geometries:JSON.stringify((0,b.X)(e))}},{data:o}=await(0,y.A)(r.path+"/simplify",a);return(0,b.V)(o.geometries,i,n)}(n,r,s),o=[];for(let t=0;t<i.length;t++){const e=i[t];"simplify"!==e?o.push(e):o.push(c?(0,h.Gh)(a.shift()):a.shift())}return o}const D=[];for(let t=0;t<C.length;t++){const e=C[t];if("cut"!==e)D.push(e);else{const t=E.shift();D.push(!0===c?(0,h.Gh)(t):t)}}return D}function F(t,e,s){const r=(0,p.Vp)(s);if(null==r)return t;const[n,i]=r.valid,a=2*i;let o=0,u=0;e>i?o=Math.ceil(Math.abs(e-i)/a):e<n&&(o=-Math.ceil(Math.abs(e-n)/a)),t>i?u=Math.ceil(Math.abs(t-i)/a):t<n&&(u=-Math.ceil(Math.abs(t-n)/a));let c=t+(o-u)*a;const l=c-e;return l>i?c-=a:l<n&&(c+=a),c}function I(t){const e=(0,p.Vp)(t);if(null==e)return null;const[s,r]=e.valid;return new n.hr(s,r)}const E=I(c.A.WGS84);I(c.A.WebMercator)},80754(t,e,s){s.d(e,{j7:()=>o,kS:()=>c,kd:()=>u,r8:()=>l});var r=s(82799),n=s(16930),i=s(60408),a=s(52006);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function u(t,e){return Math.ceil((t-e)/(2*e))}function c(t,e){if((0,a.Ed)(t))for(const s of function(t){return(0,i.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of s){if((0,a.aO)(t)){const[s,r]=t.c;s[0]+=e,r[0]+=e;continue}if((0,a.FG)(t)){const[s,r]=t.a;s[0]+=e,r[0]+=e;continue}if((0,a.n1)(t)){const[s,r,n]=t.b;s[0]+=e,r[0]+=e,n[0]+=e;continue}t[0]+=e}for(const s of l(t))for(const t of s)t[0]+=e;return t}function l(t){return(0,i.Bi)(t)?t.rings:t.paths}},99352(t,e,s){s.d(e,{F:()=>r,P:()=>n});const r={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},n={supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}},65515(t,e,s){s.r(e),s.d(e,{default:()=>Y});var r=s(5482),n=s(92602),i=s(11254),a=s(4576),o=s(49186),u=s(44208),c=s(66552),l=s(92474),p=s(53966),h=s(93637),d=s(17676),f=s(36708),y=s(84952),m=s(13069),g=s(91429),S=s(5443),v=s(16930),b=s(95696),A=s(27615),x=s(63579),_=s(52106),M=s(86211);function w(t){return"object"==typeof t&&null!=t&&"objectId"in t&&!!t.objectId}function R(t){return"object"==typeof t&&null!=t&&"globalId"in t&&!!t.globalId}function q(t){return t.every(R)}var F=s(91218),I=s(65864),E=s(73836),C=s(21325);async function O(t,e,s){const{geometry:r}=e,n={...e.attributes};if(null!=s&&"mesh"===r?.type){const{transformFieldRoles:e}=s,{origin:i,spatialReference:a,vertexSpace:o}=r,u=r.transform??new E.A,c="local"===o.type,l=t.spatialReference,p=l.isGeographic,h=(0,C.aI)(l,a),d=(0,F.isEqualBaseGCS)(a,l)&&(0,F.canProjectWithoutEngine)(a,l);if(!(c&&p&&d||!c&&!p&&h))return null;const f=(0,F.projectWithoutEngine)(i,a,l);if(null==f)return null;if(n[e.originX]=f.x,n[e.originY]=f.y,n[e.originZ]=f.z??0,null!=u){const{translation:t,scale:s,rotation:r}=u,i=c?1:(0,M.KX)(a)/(0,M.KX)(l);n[e.translationX]=t[0]*i,n[e.translationY]=t[2]*i,n[e.translationZ]=-t[1]*i,n[e.scaleX]=s[0],n[e.scaleY]=s[2],n[e.scaleZ]=s[1],n[e.rotationX]=r[0],n[e.rotationY]=r[2],n[e.rotationZ]=-r[1],n[e.rotationDeg]=r[3]}return{attributes:n}}return null==r?{attributes:n}:"mesh"===r.type||"extent"===r.type?null:{geometry:r.toJSON(),attributes:n}}async function P(t,e){const s=await Promise.all((e.addAttachments??[]).map(e=>T(t,e))),r=await Promise.all((e.updateAttachments??[]).map(e=>T(t,e))),n=e.deleteAttachments??[];return s.length||r.length||n.length?{adds:s,updates:r,deletes:[...n]}:null}async function T(t,e){const{feature:s,attachment:r}=e,{globalId:n,name:i,contentType:a,data:o,uploadId:u}=r,c={globalId:n};if(s&&("attributes"in s?c.parentGlobalId=s.attributes?.[t.globalIdField]:s.globalId&&(c.parentGlobalId=s.globalId)),u)c.uploadId=u;else if(o){const t=await(0,y._0)(o);t&&(c.contentType=t.mediaType,c.data=t.data),o instanceof File&&(c.name=o.name)}return i&&(c.name=i),a&&(c.contentType=a),c}function N(t,e,s){if(!e||0===e.length)return[];if(s&&q(e))return e.map(t=>t.globalId);if(function(t){return t.every(w)}(e))return e.map(t=>t.objectId);const r=s?t.globalIdField:t.objectIdField;return r?e.map(t=>t.getAttribute(r)):[]}function D(t){const e=!0===t.success?null:t.error||{code:void 0,description:"Feature edit failed"};return{objectId:t.objectId,globalId:t.globalId,error:e?new o.A("feature-layer-source:edit-failure",e.description,{code:e.code}):null}}function k(t,e){return new _.A({attributes:t.attributes,geometry:(0,I.rS)({...t.geometry,spatialReference:e})})}function Z(t,e){return{adds:t?.adds?.map(t=>k(t,e))||[],updates:t?.updates?.map(t=>({original:k(t[0],e),current:k(t[1],e)}))||[],deletes:t?.deletes?.map(t=>k(t,e))||[],spatialReference:e}}var Q=s(64714),j=s(64314),J=s(60694),V=s(15426),U=s(20557),G=s(99199),B=s(96520),X=s(61956),z=s(79677),L=s(20816);const $=new c.J({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),W=new c.J({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let Y=class extends l.x_{constructor(t){super(t),this.type="feature-layer",this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer"]),this.refresh=(0,d.sg)(async()=>{await this.load();const t=this.sourceJSON.editingInfo?.lastEditDate;if(null==t)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const e=t!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:e,updates:e?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}}),this._ongoingAssetUploads=new Map}load(t){const e=this.layer.sourceJSON,s=this._fetchService(e,{...t}).then(()=>this.layer.setUserPrivileges(this.sourceJSON.serviceItemId,t)).then(()=>this._ensureLatestMetadata(t));return this.addResolvingPromise(s),Promise.resolve(this)}initialize(){this.addHandles([(0,f.wB)(()=>{const t=this.layer;return t&&"lastEditsEventDate"in t?t.lastEditsEventDate:null},t=>this._handleLastEditsEventChange(t))])}destroy(){this._removeEditInterceptor()}get queryTask(){const{capabilities:t,parsedUrl:e,gdbVersion:s,spatialReference:r,fieldsIndex:n,uniqueIdFields:i}=this.layer,a="infoFor3D"in this.layer?this.layer.infoFor3D:null,o="dynamicDataSource"in this.layer?this.layer.dynamicDataSource:null,c=(0,u.A)("featurelayer-pbf")&&t?.query.supportsFormatPBF&&null==a,l=c&&t?.query.supportsFormatPBFWithCurves,p=t?.operations?.supportsQueryAttachments??!1,h=t?.query?.relativeTimeBinWindow??0,d=e.path;return new j.A({dynamicDataSource:o,fieldsIndex:n,gdbVersion:s,infoFor3D:a,pbfSupported:c,pbfSupportedWithCurves:l,queryAttachmentsSupported:p,relativeTimeBinWindow:h,sourceSpatialReference:r,uniqueIdFields:i,url:d})}async addAttachment(t,e){await this.load();const{layer:s}=this;await(0,V.VA)(s,"editing");const r=t.attributes[s.objectIdField],n=s.parsedUrl.path+"/"+r+"/addAttachment",a=this._getLayerRequestOptions(),o=this._getFormDataForAttachment(e,a.query);try{return D((await(0,i.A)(n,{body:o})).data.addAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(r,t)}}async updateAttachment(t,e,s){await this.load();const{layer:r}=this;await(0,V.VA)(r,"editing");const n=t.attributes[r.objectIdField],a=r.parsedUrl.path+"/"+n+"/updateAttachment",o=this._getLayerRequestOptions({query:{attachmentId:e}}),u=this._getFormDataForAttachment(s,o.query);try{return D((await(0,i.A)(a,{body:u})).data.updateAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(n,t)}}async applyEdits(t,e){await this.load();const{layer:s}=this;await(0,V.VA)(s,"editing");const r="infoFor3D"in s?s.infoFor3D:null,n=null!=r,u=n||(e?.globalIdUsed??!1),c=n?await this._uploadMeshesAndGetAssetMapEditsJSON(t):null,l=t.addFeatures?.map(t=>O(this.layer,t,r))??[],p=(await Promise.all(l)).filter(a.Ru),h=t.updateFeatures?.map(t=>O(this.layer,t,r))??[],d=(await Promise.all(h)).filter(a.Ru),f=N(this.layer,t.deleteFeatures,u);(0,B.u)(p,d,s.spatialReference);const y=await P(this.layer,t),m=s.capabilities.editing.supportsAsyncApplyEdits&&n,g=e?.gdbVersion||s.gdbVersion,S={gdbVersion:g,rollbackOnFailure:e?.rollbackOnFailureEnabled,useGlobalIds:u,returnEditMoment:e?.returnEditMoment,trueCurveClient:e?.editsRespectTrueCurves,usePreviousEditMoment:e?.usePreviousEditMoment,async:m};await(0,L.ZJ)(this.layer.url,g,!0);const v=(0,L.w5)(this.layer.url,g||null);if(await(0,L.We)(s.url,g,s.historicMoment))throw new o.A("feature-layer-source:historic-version","Editing a historic version is not allowed");e?.returnServiceEditsOption?(S.edits=JSON.stringify([{id:s.layerId,adds:p.length?p:null,updates:d.length?d:null,deletes:f.length?f:null,attachments:y,assetMaps:c}]),S.returnServiceEditsOption=$.toJSON(e?.returnServiceEditsOption),S.returnServiceEditsInSourceSR=e?.returnServiceEditsInSourceSR):(S.adds=p.length?JSON.stringify(p):null,S.updates=d.length?JSON.stringify(d):null,S.deletes=f.length?u?JSON.stringify(f):f.join(","):null,S.attachments=y&&JSON.stringify(y),S.assetMaps=null!=c?JSON.stringify(c):void 0);const b=this._getLayerRequestOptions({method:"post",query:S});v&&(b.authMode="immediate",b.query.returnEditMoment=!0,b.query.sessionId=L.TA);const A=e?.returnServiceEditsOption?s.url:s.parsedUrl.path;let x;try{x=m?await this._asyncApplyEdits(A+"/applyEdits",b):await(0,i.A)(A+"/applyEdits",b)}catch(t){if(!function(t){const e=t.details.raw,s=+e.code,r=+e.extendedCode;return 500===s&&(-2147217144===r||-2147467261===r)}(t))throw t;b.authMode="immediate",x=m?await this._asyncApplyEdits(A+"/applyEdits",b):await(0,i.A)(A+"/applyEdits",b)}return this._createEditsResult(x)}async deleteAttachments(t,e){await this.load();const{layer:s}=this;await(0,V.VA)(s,"editing");const r=t.attributes[s.objectIdField],n=s.parsedUrl.path+"/"+r+"/deleteAttachments";try{return(await(0,i.A)(n,this._getLayerRequestOptions({query:{attachmentIds:e.join(",")},method:"post"}))).data.deleteAttachmentResults.map(D)}catch(t){throw this._createAttachmentErrorResult(r,t)}}fetchRecomputedExtents(t={}){const e=t.signal;return this.load({signal:e}).then(async()=>{const e=this._getLayerRequestOptions({...t,query:{returnUpdates:!0}}),{layerId:s,url:r}=this.layer,{data:n}=await(0,i.A)(`${r}/${s}`,e),{id:a,extent:o,fullExtent:u,timeExtent:c}=n,l=o||u;return{id:a,fullExtent:l&&S.A.fromJSON(l),timeExtent:c&&z.A.fromJSON({start:c[0],end:c[1]})}})}async queryAttachments(t,e={}){await this.load();const s=this._getLayerRequestOptions(e);return this.queryTask.executeAttachmentQuery(t,s)}async queryFeatures(t,e){await this.load();const s=await this.queryTask.execute(t,{...e,query:this._createRequestQueryOptions(e)});if(t.outStatistics?.length&&s.features.length){const e=new Map;if(s.features.forEach(s=>{const r=s.attributes;t.outStatistics?.forEach(({outStatisticFieldName:t})=>{if(t){const s=t.toLowerCase();s&&s in r&&t!==s&&(r[t]=r[s],delete r[s],e.set(s,t))}})}),null!=s.fields)for(const t of s.fields){const s=e.get(t.name.toLowerCase());null!=s&&(t.name=s)}}return s}async queryFeaturesJSON(t,e){return await this.load(),this.queryTask.executeJSON(t,{...e,query:this._createRequestQueryOptions(e)})}async queryObjectIds(t,e){return await this.load(),this.queryTask.executeForIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryFeatureCount(t,e){return await this.load(),this.queryTask.executeForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryExtent(t,e){return await this.load(),this.queryTask.executeForExtent(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeatures(t,e){return await this.load(),this.queryTask.executeRelationshipQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeaturesCount(t,e){return await this.load(),this.queryTask.executeRelationshipQueryForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryPivot(t,e){return await this.load(),this.queryTask.executePivotQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopFeatures(t,e){return await this.load(),this.queryTask.executeTopFeaturesQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryAttributeBins(t,e){return await this.load(),this.queryTask.executeAttributeBinsQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopObjectIds(t,e){return await this.load(),this.queryTask.executeForTopIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopExtents(t,e){return await this.load(),this.queryTask.executeForTopExtents(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopCount(t,e){return await this.load(),this.queryTask.executeForTopCount(t,{...e,query:this._createRequestQueryOptions(e)})}async fetchPublishingStatus(){if(!(0,J.Wo)(this.layer.url))return"unavailable";const t=(0,y.fj)(this.layer.url,"status"),e=await(0,i.A)(t,{query:{f:"json"}});return W.fromJSON(e.data.status)}async uploadAssets(t,e){const{uploadAssets:r}=await s.e(1384).then(s.bind(s,31384));return r(t,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},e)}_handleLastEditsEventChange(t){const e=this.layer;if(null==t||!("capabilities"in e)||!("effectiveCapabilities"in e))return;if(e.capabilities?.operations?.supportsEditing||!e.effectiveCapabilities?.operations?.supportsEditing)return;const s=e.url;null!=s&&("layerId"in e&&(0,y.fj)(s,e.layerId.toString()),this._getOrCreateEditInterceptor(s).before=e=>{const s=e.requestOptions.method??"auto";if("auto"===s||"head"===s){const s=e.requestOptions.query??{};s._ts=t.getTime(),e.requestOptions.query=s}})}_getOrCreateEditInterceptor(t){return null==this._editInterceptor&&(this._editInterceptor={urls:t},n.A.request.internalInterceptors.push(this._editInterceptor)),this._editInterceptor}_removeEditInterceptor(){null!=this._editInterceptor&&((0,a.TF)(n.A.request.internalInterceptors,this._editInterceptor),this._editInterceptor=null)}async _asyncApplyEdits(t,e){const s=(await(0,i.A)(t,e)).data.statusUrl;for(;;){const t=(await(0,i.A)(s,{query:{f:"json"},responseType:"json"})).data;switch(t.status){case"Completed":return(0,i.A)(t.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed (undefined response status)")}await(0,d.Pl)(H)}}_createRequestQueryOptions(t){const e={...this.layer.customParameters,token:this.layer.apiKey,...t?.query};return this.layer.datesInUnknownTimezone&&(e.timeReferenceUnknownClient=!0),e}async _fetchService(t,e){if(!t){const s={};(0,u.A)("featurelayer-advanced-symbols")&&(s.returnAdvancedSymbols=!0),e?.cacheBust&&(s._ts=Date.now());const{data:r}=await(0,i.A)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:s,signal:e?.signal}));t=r}this.layer.applyPreferredHost(t),this.sourceJSON=await this._patchServiceJSON(t,e?.signal);const s=t.type;if(!this.supportedSourceTypes.has(s))throw new o.A("feature-layer-source:unsupported-type",`Source type "${s}" is not supported`)}async _patchServiceJSON(t,e){if("Table"!==t.type&&t.geometryType&&!t?.drawingInfo?.renderer&&!t.defaultSymbol){const e=(0,Q.F0)(t.geometryType).renderer;(0,h.sM)("drawingInfo.renderer",e,t)}if("esriGeometryMultiPatch"===t.geometryType&&t.infoFor3D&&(t.geometryType="mesh"),null==t.extent)try{const{data:s}=await(0,i.A)(this.layer.url,this._getLayerRequestOptions({signal:e}));s.spatialReference&&(t.extent={xmin:0,ymin:0,xmax:0,ymax:0,spatialReference:s.spatialReference})}catch(t){(0,d.QP)(t)}return t}async _ensureLatestMetadata(t){if(this.layer.userHasUpdateItemPrivileges&&this.sourceJSON.cacheMaxAge>0)return this._fetchService(null,{...t,cacheBust:!0})}async _uploadMeshesAndGetAssetMapEditsJSON(t){const{addAssetFeatures:e}=t;if(!e?.length)return null;if(await this._areAllAssetsAlreadyMapped(e))return null;const r=t.addFeatures.filter(t=>t.geometry);if(e.length!==r.length+t.updateFeatures.length)throw new o.A("feature-layer-source:unsupported-mesh-edits","Mixing attribute only edits with mesh geometry edits is not currently supported");const n=new Array,i=new Map;for(const t of e){const{geometry:e}=t,{vertexSpace:r}=e;if((0,A.Hq)(r))n.push(e);else{const r=e.origin,{convertMeshVertexSpace:a}=await s.e(8846).then(s.bind(s,28846)),o=await a(e,new b.A({origin:[r.x,r.y,r.z??0]}));i.set(o,e),t.geometry=o,n.push(o)}}await this.uploadAssets(n);for(const[t,e]of i)e.addExternalSources(t.metadata.externalSources.items);return{adds:this._getAssetMapEditsJSON(e),updates:[],deletes:[]}}_getAssetMapEditsJSON(t){const e=new Array,s=this.layer.globalIdField,r=this.layer.parsedUrl;for(const n of t){const t=n.geometry,{metadata:i}=t,a=i.getExternalSourcesOnService(r),o=n.getAttribute(s);if(0===a.length){p.A.getLogger(this).error(`Skipping feature ${o}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);continue}const{source:u}=a.find(x.dK)??a[0];for(const t of u.assets)1===t.parts.length?e.push({globalId:(0,m.yS)(),parentGlobalId:o,assetName:t.assetName,assetHash:t.parts[0].partHash,flags:[]}):p.A.getLogger(this).error(`Skipping asset ${t.assetName}. It does not have exactly one part, so we cannot map it to a feature.`)}return e}_createEditsResult(t){const e=t.data,{layerId:s}=this.layer,r=[];let n=null;if(Array.isArray(e))for(const t of e)r.push({id:t.id,editedFeatures:t.editedFeatures}),t.id===s&&(n={addResults:t.addResults??[],updateResults:t.updateResults??[],deleteResults:t.deleteResults??[],attachments:t.attachments,editMoment:t.editMoment});else n=e;const i=function(t){const e=t?.assetMaps;if(e){for(const t of e.addResults)t.success||p.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${t.globalId}.`);for(const t of e.updateResults)t.success||p.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${t.globalId}.`)}const s=t?.attachments,r={addFeatureResults:t?.addResults?.map(D)??[],updateFeatureResults:t?.updateResults?.map(D)??[],deleteFeatureResults:t?.deleteResults?.map(D)??[],addAttachmentResults:s?.addResults?s.addResults.map(D):[],updateAttachmentResults:s?.updateResults?s.updateResults.map(D):[],deleteAttachmentResults:s?.deleteResults?s.deleteResults.map(D):[]};return t?.editMoment&&(r.editMoment=t.editMoment),r}(n);if(r.length>0){i.editedFeatureResults=[];for(const t of r){const{editedFeatures:e}=t,s=e?.spatialReference?new v.A(e.spatialReference):null;i.editedFeatureResults.push({layerId:t.id,editedFeatures:Z(e,s)})}}return i}_createAttachmentErrorResult(t,e){const s=e.details.messages?.[0]||e.message,r=e.details.httpStatus||e.details.messageCode;return{objectId:t,globalId:null,error:new o.A("feature-layer-source:attachment-failure",s,{code:r})}}_getFormDataForAttachment(t,e){const s=t instanceof FormData?t:t&&t.elements?new FormData(t):null;if(s)for(const t in e){const r=e[t];null!=r&&(s.set?s.set(t,r):s.append(t,r))}return s}_getLayerRequestOptions(t={}){const{layer:e,layer:{parsedUrl:s,gdbVersion:r}}=this;return{...t,query:{gdbVersion:r,layer:"dynamicDataSource"in e&&e.dynamicDataSource?JSON.stringify({source:e.dynamicDataSource}):void 0,...s.query,f:"json",...this._createRequestQueryOptions(t)},responseType:"json"}}async _areAllAssetsAlreadyMapped(t){const{layer:e}=this,{globalIdField:s,parsedUrl:r}=e,n="infoFor3D"in e?e.infoFor3D:null;if(null==n||null==s)return!1;const i=(0,U.JZ)(n);if(null==i)return!1;const o=(0,y.fj)(r.path,`../${i.id}`),u=new Array;for(const e of t){if(!(e.geometry.metadata.getExternalSourcesOnService(r).length>0))return!1;u.push(e)}const c=u.map(t=>t.getAttribute(s)).filter(a.Ru);if(0===c.length)return!1;const{assetMapFieldRoles:{parentGlobalId:l,assetHash:p}}=n,h=new X.A({where:`${l} IN (${c.map(t=>`'${t}'`)})`,outFields:[p,l],returnGeometry:!1}),d=await(0,G.s)(o,h),{features:f}=d;return 0!==f.length&&!u.some(t=>{const e=t.getAttribute(s);if(!e)return!0;const{metadata:n}=t.geometry,i=f.filter(t=>t.getAttribute(l)===e);if(0===i.length)return!0;const a=i.map(t=>t.getAttribute(p));return n.getExternalSourcesOnService(r).flatMap(({source:t})=>t.assets.flatMap(t=>t.parts.map(t=>t.partHash))).some(t=>a.every(e=>t!==e))})}};(0,r.Cg)([(0,g.MZ)()],Y.prototype,"type",void 0),(0,r.Cg)([(0,g.MZ)({constructOnly:!0})],Y.prototype,"layer",void 0),(0,r.Cg)([(0,g.MZ)({constructOnly:!0})],Y.prototype,"supportedSourceTypes",void 0),(0,r.Cg)([(0,g.MZ)({readOnly:!0})],Y.prototype,"queryTask",null),Y=(0,r.Cg)([(0,g.$K)("esri.layers.graphics.sources.FeatureLayerSource")],Y);const H=1e3},64314(t,e,s){s.d(e,{A:()=>w});var r=s(5482),n=s(69622),i=s(49186),a=s(44208),o=s(17676),u=s(84952),c=s(91429),l=s(21325),p=s(20557),h=s(2272),d=s(65615),f=s(20615),y=s(74910),m=s(78286),g=s(99199),S=s(62815),v=s(63746);class b{constructor(t){this._options=t,this.featureSet={features:[]},this.parseOnly=null,this._transformInPlace=null,this._transformInPlaceXY=null,this._finishVertex=b._finishVertexNonPoint,this._attributesClass=null,this._previousX=0,this._previousY=0,this._point=null,this._lengths=null,this._vertex=[],this._part=null,this._parts=null,this._i=0}queryGeometryType(){return this.featureSet.queryGeometryType}queryGeometry(){return this.featureSet.queryGeometry}idField(t){"string"==typeof t&&(this.featureSet.objectIdFieldName=t)}finish(){this._options.applyTransform&&(this.featureSet.transform=null);const{spatialReference:t,features:e}=this.featureSet;if(t)for(const{geometry:s}of e)s&&(s.spatialReference=t)}feature(){this._attributesClass??=(0,v._7)(this.featureSet.fields?.map(t=>t.name)??[]),this.featureSet.features.push({attributes:new this._attributesClass}),this._options.applyTransform&&this._setVertexTransformer()}centroid([t,e]){this.featureSet.features.at(-1).centroid={x:t,y:e}}geometry(t,e,s){this._previousX=this._previousY=0,this._lengths=s;let r,{hasZ:n,hasM:i}=this.featureSet;switch(n??=!1,i??=!1,this._i=0,this._vertex=[0,0],n&&this._vertex.push(0),i&&this._vertex.push(0),this._finishVertex=b._finishVertexNonPoint,e){case"esriGeometryPoint":this._point={x:0,y:0},r=this._point,this._finishVertex=n?i?b._finishVertexPointXYZM:b._finishVertexPointXYZ:i?b._finishVertexPointXYM:b._finishVertexPointXY;break;case"esriGeometryMultipoint":r={points:[],hasZ:n,hasM:i},this._part=r.points,this._parts=[];break;case"esriGeometryPolyline":r={paths:[],hasZ:n,hasM:i},this._parts=r.paths,this._part=[];break;case"esriGeometryPolygon":r={rings:[],hasZ:n,hasM:i},this._parts=r.rings,this._part=[]}1===t?(this.featureSet.queryGeometry=r,this.featureSet.queryGeometryType=e,this._options.applyTransform||this._setVertexTransformer()):this.featureSet.features.at(-1).geometry=r}coord(t){const e=this._vertex;e[this._i++]=t,this._i<e.length||(this._i=0,this._transformInPlace&&(e[0]+=this._previousX,e[1]+=this._previousY,[this._previousX,this._previousY]=e,this._transformInPlace(e)),this._finishVertex(this))}curvedGeometry(t,e,s,r){let n,{hasZ:i,hasM:a}=this.featureSet;switch(i??=!1,a??=!1,t){case"esriGeometryPoint":case"esriGeometryMultipoint":throw new Error(`Curved ${t} does not make sense`);case"esriGeometryPolyline":n={paths:[],curvePaths:[],hasZ:i,hasM:a},this._parts=n.curvePaths,this._part=[];break;case"esriGeometryPolygon":n={rings:[],curveRings:[],hasZ:i,hasM:a},this._parts=n.curveRings,this._part=[]}this.featureSet.features.at(-1).geometry=n}startCurvedPart(t){this._part.push(this._transform(t))}finishCurvedPart(t){this._parts.push(this._part),this._part=[]}lineSegment(t,e){this._part.push(this._transform(e))}bezierSegment(t,e,s,r){this._part.push({b:[this._transform(e),this._transformXY(s),this._transformXY(r)]})}circularArcSegment(t,e,s){this._part.push({c:[this._transform(e),this._transformXY(s)]})}ellipticArcSegment(t,e,s,r,n,i,a,o){this._part.push({a:[this._transform(e),this._transformXY(s),r,n,i,a,o]})}static _finishVertexPointXY({_point:t,_vertex:e}){[t.x,t.y]=e}static _finishVertexPointXYZ({_point:t,_vertex:e}){[t.x,t.y,t.z]=e}static _finishVertexPointXYM({_point:t,_vertex:e}){[t.x,t.y,t.m]=e}static _finishVertexPointXYZM({_point:t,_vertex:e}){[t.x,t.y,t.z,t.m]=e}static _finishVertexNonPoint(t){const{_part:e,_parts:s,_lengths:r,_vertex:n}=t;e.push([...n]),e.length<r[s.length]||(t._previousX=t._previousY=0,t._part=[],s.push(e))}_setVertexTransformer(){const{sourceSpatialReference:t}=this._options,{spatialReference:e,hasZ:s,transform:r}=this.featureSet,n=s?(0,S.d)(t,e):1;this._transformInPlace??=(0,v.Mv)(this.featureSet,n),this._transformInPlaceXY??=(0,v.Mv)({transform:r})}_transform(t){const e=[...t];return this._transformInPlace?.(e),e}_transformXY(t){const e=[t[0],t[1]];return this._transformInPlaceXY?.(e),e}}var A=s(80893),x=s(22671),_=s(61956);async function M(t,e,s,r){const n=(0,h.Dl)(t),i={...s},a=_.A.from(e),o=!a.quantizationParameters;return await(0,A.IJ)(n,a,new b({sourceSpatialReference:a.sourceSpatialReference,applyTransform:o}),i,r)}let w=class extends n.A{constructor(t){super(t),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.pbfSupportedWithCurves=!1,this.queryAttachmentsSupported=!1,this.relativeTimeBinWindow=0,this.sourceSpatialReference=null,this.uniqueIdFields=null,this.url=null}get parsedUrl(){return(0,u.An)(this.url)}async execute(t,e){const s=await this.executeJSON(t,e);return this.featureSetFromJSON(t,s,e)}async executeJSON(t,e){const s=this._normalizeQuery(t),r=null!=t.outStatistics?.[0],n=(0,a.A)("featurelayer-pbf-statistics");let i;if(this.pbfSupported&&(!r||n)&&(!t.returnTrueCurves||this.pbfSupportedWithCurves))try{i=await M(this.url,s,e,{uniqueIdFields:this.uniqueIdFields})}catch(t){if("query:parsing-pbf"!==t.name)throw t;this.pbfSupported=!1}return i??=await(0,g.e)(this.url,s,e,{uniqueIdFields:this.uniqueIdFields}),this._normalizeFields(i.fields),i}async featureSetFromJSON(t,e,r){if(!this._queryGet3DObjectFormat(t)||null==this.infoFor3D||!e.features)return x.A.fromJSON(e);const{meshFeatureSetFromJSON:n}=await(0,o.qr)(Promise.all([s.e(1843),s.e(7005),s.e(5408),s.e(7634),s.e(8883)]).then(s.bind(s,40050)),r);return n(t,this.infoFor3D,e)}executeForCount(t,e){return(0,f.I)(this.url,this._normalizeQuery(t),e,{uniqueIdFields:this.uniqueIdFields})}executeForExtent(t,e){return(0,y.L)(this.url,this._normalizeQuery(t),e)}executeForIds(t,e){return(0,m.V)(this.url,this._normalizeQuery(t),e,{uniqueIdFields:this.uniqueIdFields})}async executeRelationshipQuery(t,e){const[{default:r},{executeRelationshipQuery:n}]=await(0,o.qr)(Promise.all([Promise.resolve().then(s.bind(s,26591)),s.e(1763).then(s.bind(s,71763))]),e);let i=r.from(t);return(this.gdbVersion||this.dynamicDataSource)&&(i=i.clone(),i.gdbVersion=i.gdbVersion||this.gdbVersion,i.dynamicDataSource=i.dynamicDataSource||this.dynamicDataSource),n(this.url,i,e)}async executeRelationshipQueryForCount(t,e){const[{default:r},{executeRelationshipQueryForCount:n}]=await(0,o.qr)(Promise.all([Promise.resolve().then(s.bind(s,26591)),s.e(1763).then(s.bind(s,71763))]),e);let i=r.from(t);return(this.gdbVersion||this.dynamicDataSource)&&(i=i.clone(),i.gdbVersion=i.gdbVersion||this.gdbVersion,i.dynamicDataSource=i.dynamicDataSource||this.dynamicDataSource),n(this.url,i,e)}async executeAttachmentQuery(t,e){const{executeAttachmentQuery:r,fetchAttachments:n,processAttachmentQueryResult:i}=await(0,o.qr)(s.e(9239).then(s.bind(s,9239)),e),a=(0,h.Dl)(this.url);return i(a,await(this.queryAttachmentsSupported?r(a,t,e):n(a,t,e)))}async executeAttributeBinsQuery(t,e){const{executeAttributeBinsQuery:r}=await(0,o.qr)(s.e(3103).then(s.bind(s,33103)),e);return r(this.parsedUrl,t,e)}async executePivotQuery(t,e){const{executePivotQuery:r}=await(0,o.qr)(s.e(566).then(s.bind(s,80566)),e);return r(this.parsedUrl,t,e)}async executeTopFeaturesQuery(t,e){const{executeTopFeaturesQuery:r}=await(0,o.qr)(s.e(1273).then(s.bind(s,11273)),e);return r(this.parsedUrl,t,this.sourceSpatialReference,e)}async executeForTopIds(t,e){const{executeForTopIds:r}=await(0,o.qr)(s.e(1277).then(s.bind(s,21277)),e);return r(this.parsedUrl,t,e)}async executeForTopExtents(t,e){const{executeForTopExtents:r}=await(0,o.qr)(s.e(8018).then(s.bind(s,8018)),e);return r(this.parsedUrl,t,e)}async executeForTopCount(t,e){const{executeForTopCount:r}=await(0,o.qr)(s.e(980).then(s.bind(s,10980)),e);return r(this.parsedUrl,t,e)}_normalizeQuery(t){let e=_.A.from(t);e.sourceSpatialReference=e.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(e=e===t?e.clone():e,e.gdbVersion=t.gdbVersion||this.gdbVersion,e.dynamicDataSource=t.dynamicDataSource?d.A.from(t.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:s}=this,r=this._queryGet3DObjectFormat(t);if(null!=s&&r){if(e=e===t?e.clone():e,e.formatOf3DObjects=r,e.outSpatialReference&&!(0,l.aI)(e.outSpatialReference,this.sourceSpatialReference))throw new i.A("query:unsupported-out-spatial-reference","3D object feature services do not support projection of geometries");if(null==e.outFields||!e.outFields.includes("*")){e=e===t?e.clone():e,null==e.outFields&&(e.outFields=[]);const{originX:r,originY:n,originZ:i,translationX:a,translationY:o,translationZ:u,scaleX:c,scaleY:l,scaleZ:p,rotationX:h,rotationY:d,rotationZ:f,rotationDeg:y}=s.transformFieldRoles;e.outFields.push(r,n,i,a,o,u,c,l,p,h,d,f,y)}}return e}_normalizeFields(t){if(null!=this.fieldsIndex&&null!=t)for(const e of t){const t=this.fieldsIndex.get(e.name);t&&Object.assign(e,t.toJSON())}}_queryGet3DObjectFormat({returnGeometry:t,multipatchOption:e,outStatistics:s}){return!0!==t||"xyFootprint"===e||s?null:(0,p.Hz)(this.infoFor3D)}};(0,r.Cg)([(0,c.MZ)({type:d.A})],w.prototype,"dynamicDataSource",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"gdbVersion",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"infoFor3D",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],w.prototype,"parsedUrl",null),(0,r.Cg)([(0,c.MZ)()],w.prototype,"pbfSupported",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"pbfSupportedWithCurves",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"queryAttachmentsSupported",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"relativeTimeBinWindow",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"sourceSpatialReference",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"uniqueIdFields",void 0),(0,r.Cg)([(0,c.MZ)({type:String})],w.prototype,"url",void 0),w=(0,r.Cg)([(0,c.$K)("esri.layers.graphics.sources.support.QueryTask")],w)},64714(t,e,s){s.d(e,{F0:()=>o,Vx:()=>l,e2:()=>h,f:()=>d});var r=s(44208),n=s(4718),i=s(99352),a=s(93470);function o(t){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===t||"esriGeometryMultipoint"===t?a.Cb:"esriGeometryPolyline"===t?a.yM:a.WR}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let c=1;function l(t,e){if((0,r.A)("esri-csp-restrictions"))return()=>e?{[e]:null,...t}:{...t};try{let s="";e&&(s+=`this${p(e)} = null;`);for(const e in t)s+=`this${p(e)} = ${JSON.stringify(t[e])};`;const r=new Function(`\n return class AttributesClass$${c++} {\n constructor() {\n ${s};\n }\n }\n `)();return()=>new r}catch(s){return()=>e?{[e]:null,...t}:{...t}}}function p(t){return u.test(t)?`.${t}`:`[${JSON.stringify(t)}]`}function h(t={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.o8)(t)}}]}function d(t,e){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:t},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:e,supportsDelete:e,supportsEditing:e,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:e,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i.P,editing:{supportsGeometryUpdate:e,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:e,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},92300(t,e,s){s.d(e,{V:()=>a,X:()=>i});var r=s(60408),n=s(65864);function i(t){return{geometryType:(0,r.$B)(t[0]),geometries:t.map(t=>t.toJSON())}}function a(t,e,s){const r=(0,n.xD)(e);return t.map(t=>{const e=r.fromJSON(t);return e.spatialReference=s,e})}},20615(t,e,s){s.d(e,{I:()=>a});var r=s(2272),n=s(80893),i=s(61956);function a(t,e,s,a){return(0,n.gW)((0,r.Dl)(t),i.A.from(e),s,a)}},74910(t,e,s){s.d(e,{L:()=>o});var r=s(5443),n=s(2272),i=s(80893),a=s(61956);async function o(t,e,s){const o=(0,n.Dl)(t),u=await(0,i.Jf)(o,a.A.from(e),{...s}),c=u.extent;return!c||isNaN(c.xmin)||isNaN(c.ymin)||isNaN(c.xmax)||isNaN(c.ymax)?{count:u.count,extent:null}:{count:u.count,extent:r.A.fromJSON(c)}}},78286(t,e,s){s.d(e,{V:()=>a});var r=s(2272),n=s(80893),i=s(61956);async function a(t,e,s,a){const o=(0,r.Dl)(t),u=await(0,n.Pk)(o,i.A.from(e),s,a);return u.objectIds??function(t){if(t)return function(t){return!Array.isArray(t[0])}(t)?t:t.map(t=>JSON.stringify(t))}(u.uniqueIds)??[]}},99199(t,e,s){s.d(e,{e:()=>u,s:()=>o});var r=s(2272),n=s(80893),i=s(22671),a=s(61956);async function o(t,e,s,r){const n=await u(t,e,s,r);return i.A.fromJSON(n)}function u(t,e,s,i){const o=(0,r.Dl)(t),u={...s},c=a.A.from(e);return(0,n.eW)(o,c,c.sourceSpatialReference,u,i)}},63746(t,e,s){function r(t){return class{constructor(){for(const e of t)this[e]=null}}}function n(t,e=1){const{transform:s,hasZ:r,hasM:n}=t;if(null==s)return r&&1!==e?t=>{t[2]*=e}:null;const[i,a]=function(t,e,s,r){let{scale:n,translate:i,originPosition:a}=t;return"upperLeft"===a&&(n=n.map((t,e)=>1===e?-t:t)),e&&(n=n.map((t,e)=>2===e?t*r:t),i=i.map((t,e)=>2===e?t*r:t)),!e&&s&&(n=n.filter((t,e)=>2!==e),i=i.filter((t,e)=>2!==e)),[n,i]}(s,r,n,e),o=t.hasZ?3:2;return t=>{for(let e=0;e<t.length&&(e!==o||0!==t[e]);++e)t[e]=t[e]*i[e]+a[e]}}s.d(e,{Mv:()=>n,_7:()=>r}),s(53966)}}]);