@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 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[525],{52106(e,t,i){i.d(t,{A:()=>b});var n,r,s=i(5482),o=i(37838),a=i(69540),l=i(51447),u=i(25482),c=i(53966),p=i(36708),d=i(24326),m=i(91429),h=i(12195),g=i(65864),y=i(50498),f=i(55156),M=i(60950),w=i(54339),I=i(94128),A=i(33910);function v(e){if(null==e)return null;const t={};for(const i in e){const n=e[i];n&&(t[i]=n.toJSON())}return 0!==Object.keys(t).length?t:null}let b=class extends((0,a.OU)(u.o)){static{n=I.Z}static{r=this}constructor(e){super(e),this[n]=!0,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,d.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new r({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,M.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[i,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,f.I)(this.origin);if(e)return(0,w.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,w.r)(this,t):null}getGlobalId(){const e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:v(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,n){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(r.action=n),"attributes"===e&&(r.attributeName=n),this.layer.graphicChanged(r)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,s.Cg)([(0,m.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const n=(0,g.rS)(e[i]);n&&(t[i]=n)}return 0!==Object.keys(t).length?t:null}}})],b.prototype,"aggregateGeometries",null),(0,s.Cg)([(0,m.MZ)({value:null})],b.prototype,"attributes",null),(0,s.Cg)([(0,m.MZ)({value:null,types:y.yR,json:{read:g.rS}})],b.prototype,"geometry",null),(0,s.Cg)([(0,m.MZ)({type:Boolean})],b.prototype,"isAggregate",void 0),(0,s.Cg)([(0,m.MZ)({clonable:!1})],b.prototype,"layer",void 0),(0,s.Cg)([(0,m.MZ)({clonable:"reference"})],b.prototype,"origin",void 0),(0,s.Cg)([(0,m.MZ)({type:o.A,value:null})],b.prototype,"popupTemplate",null),(0,s.Cg)([(0,m.MZ)({clonable:"reference"})],b.prototype,"sourceLayer",void 0),(0,s.Cg)([(0,m.MZ)({value:null,types:A.Es})],b.prototype,"symbol",null),(0,s.Cg)([(0,m.MZ)({clonable:!1,json:{read:!1,write:!1}})],b.prototype,"_version",void 0),(0,s.Cg)([(0,m.MZ)({type:Boolean,value:!0})],b.prototype,"visible",null),b=r=(0,s.Cg)([(0,m.$K)("esri.Graphic")],b)},69052(e,t,i){i.d(t,{hr:()=>r,ie:()=>l,uC:()=>a});var n=i(34727);class r{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return s(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,n.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+o(this.range,e-t,i)}minimalMonotonic(e,t,i){return s(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);const i=(t=this.normalize(t))-e,n=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(n)?i:n}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function s(e,t,i,n,r=0,s=!1){return(n-=r)<t?n+=o(e,t-n):n>i&&(n-=o(e,n-i)),s&&n===i&&(n=t),n+r}function o(e,t,i=0){return Math.ceil((t-i)/e)*e+i}const a=new r(0,2*Math.PI),l=(new r(-Math.PI,Math.PI),new r(0,360))},6797(e,t,i){i.d(t,{Ui:()=>d});var n=i(69622),r=i(7762),s=i(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof n.A}function l(e){return e instanceof r.A?Object.keys(e.items):a(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof r.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const i=e.diff;if(i&&"function"==typeof i)return i(e,t);const n=l(e),r=l(t);if(0===n.length&&0===r.length)return;if(!n.length||!r.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=r.filter(e=>!n.includes(e)),d=n.filter(e=>!r.includes(e)),m=n.filter(i=>r.includes(i)&&u(e,i)!==u(t,i)).concat(s,d).sort(),h=c(e);if(h&&o.has(h)&&m.length)return{type:"complete",oldValue:e,newValue:t};let g;const y=a(e)&&a(t);for(const n of m){const r=u(e,n),s=u(t,n);let o;if((y||"function"!=typeof r&&"function"!=typeof s)&&r!==s&&(null!=r||null!=s)){if(i&&i[n]&&"function"==typeof i[n])o=i[n]?.(r,s);else if(r instanceof Date&&s instanceof Date){if(r.getTime()===s.getTime())continue;o={type:"complete",oldValue:r,newValue:s}}else o="object"==typeof r&&"object"==typeof s&&c(r)===c(s)?p(r,s):{type:"complete",oldValue:r,newValue:s};null!=o&&(null!=g?g.diff[n]=o:g={type:"partial",diff:{[n]:o}})}}return g}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},9093(e,t,i){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}i.d(t,{o8:()=>r,vt:()=>n,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:n,fromValues:function(e,t,i,n,r,s,o,a,l,u,c,p,d,m,h,g){return[e,t,i,n,r,s,o,a,l,u,c,p,d,m,h,g]}},Symbol.toStringTag,{value:"Module"}))},35522(e,t,i){i.d(t,{$A:()=>S,Bw:()=>s,C:()=>o,Cc:()=>x,DI:()=>v,Il:()=>O,Io:()=>M,Ln:()=>f,Om:()=>C,Qr:()=>p,Re:()=>u,S8:()=>b,T9:()=>g,WQ:()=>l,Z0:()=>D,_S:()=>m,aI:()=>B,ei:()=>T,fw:()=>N,g7:()=>L,gL:()=>j,hG:()=>w,hZ:()=>a,hs:()=>y,jb:()=>z,jk:()=>h,lo:()=>_,lw:()=>c,m3:()=>I,oW:()=>E,t2:()=>R,tn:()=>d,uE:()=>F,xg:()=>H,ze:()=>A});var n=i(51850),r=i(34304);function s(e){const t=e[0],i=e[1],n=e[2];return Math.sqrt(t*t+i*i+n*n)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,i,n){return e[0]=t,e[1]=i,e[2]=n,e}function l(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function u(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function c(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function p(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e[2]=t[2]/i[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function m(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function h(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e}function g(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e}function y(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function f(e,t,i,n){return e[0]=t[0]+i[0]*n,e[1]=t[1]+i[1]*n,e[2]=t[2]+i[2]*n,e}function M(e,t){const i=t[0]-e[0],n=t[1]-e[1],r=t[2]-e[2];return Math.sqrt(i*i+n*n+r*r)}function w(e,t){const i=t[0]-e[0],n=t[1]-e[1],r=t[2]-e[2];return i*i+n*n+r*r}function I(e){const t=e[0],i=e[1],n=e[2];return t*t+i*i+n*n}function A(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function v(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function b(e,t){const i=t[0],n=t[1],r=t[2];let s=i*i+n*n+r*r;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function C(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function S(e,t,i){const n=t[0],r=t[1],s=t[2],o=i[0],a=i[1],l=i[2];return e[0]=r*l-s*a,e[1]=s*o-n*l,e[2]=n*a-r*o,e}function x(e,t,i,n){const r=t[0],s=t[1],o=t[2];return e[0]=r+n*(i[0]-r),e[1]=s+n*(i[1]-s),e[2]=o+n*(i[2]-o),e}function D(e,t,i){const n=t[0],r=t[1],s=t[2];return e[0]=i[0]*n+i[4]*r+i[8]*s+i[12],e[1]=i[1]*n+i[5]*r+i[9]*s+i[13],e[2]=i[2]*n+i[6]*r+i[10]*s+i[14],e}function T(e,t,i){const n=t[0],r=t[1],s=t[2];return e[0]=n*i[0]+r*i[3]+s*i[6],e[1]=n*i[1]+r*i[4]+s*i[7],e[2]=n*i[2]+r*i[5]+s*i[8],e}function j(e,t,i){return N(e,t,i[0],i[1],i[2],i[3])}function N(e,t,i,n,r,s){const o=t[0],a=t[1],l=t[2],u=n*l-r*a,c=r*o-i*l,p=i*a-n*o,d=n*p-r*c,m=r*u-i*p,h=i*c-n*u,g=2*s;return e[0]=o+u*g+2*d,e[1]=a+c*g+2*m,e[2]=l+p*g+2*h,e}function L(e,t){b(Z,e),b(k,t);const i=C(Z,k);return i>1?0:i<-1?Math.PI:Math.acos(i)}const Z=(0,n.vt)(),k=(0,n.vt)();function R(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function B(e,t){if(e===t)return!0;const i=e[0],n=e[1],s=e[2],o=t[0],a=t[1],l=t[2],u=(0,r.FD)();return Math.abs(i-o)<=u*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-a)<=u*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function E(e,t,i){const n=i[0]-t[0],r=i[1]-t[1],s=i[2]-t[2];let o=n*n+r*r+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=n*o,e[1]=r*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const z=u,P=c,U=p,H=M,_=w,O=s,F=I;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:L,bezier:function(e,t,i,n,r,s){const o=1-s,a=o*o,l=s*s,u=a*o,c=3*s*a,p=3*l*o,d=l*s;return e[0]=t[0]*u+i[0]*c+n[0]*p+r[0]*d,e[1]=t[1]*u+i[1]*c+n[1]*p+r[1]*d,e[2]=t[2]*u+i[2]*c+n[2]*p+r[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,i=1){return e[0]=Math.min(Math.max(e[0],t),i),e[1]=Math.min(Math.max(e[1],t),i),e[2]=Math.min(Math.max(e[2],t),i),e},copy:o,cross:S,crossAndNormalize:function(e,t,i){const n=t[0],r=t[1],s=t[2],o=i[0],a=i[1],l=i[2],u=r*l-s*a,c=s*o-n*l,p=n*a-r*o,d=Math.sqrt(u*u+c*c+p*p);return e[0]=u/d,e[1]=c/d,e[2]=p/d,e},direction:E,dist:H,distance:M,div:U,divide:p,dot:C,equals:B,exactEquals:R,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,i,n,r,s){const o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,u=o*(s-1),c=o*(3-2*s);return e[0]=t[0]*a+i[0]*l+n[0]*u+r[0]*c,e[1]=t[1]*a+i[1]*l+n[1]*u+r[1]*c,e[2]=t[2]*a+i[2]*l+n[2]*u+r[2]*c,e},inverse:v,len:O,length:s,lerp:x,max:g,min:h,mul:P,multiply:c,negate:A,normalize:b,random:function(e,t=1){const i=r.Ov,n=2*i()*Math.PI,s=2*i()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(n)*o,e[1]=Math.sin(n)*o,e[2]=s*t,e},rotateX:function(e,t,i,n){const r=[],s=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],s[0]=r[0],s[1]=r[1]*Math.cos(n)-r[2]*Math.sin(n),s[2]=r[1]*Math.sin(n)+r[2]*Math.cos(n),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateY:function(e,t,i,n){const r=[],s=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],s[0]=r[2]*Math.sin(n)+r[0]*Math.cos(n),s[1]=r[1],s[2]=r[2]*Math.cos(n)-r[0]*Math.sin(n),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateZ:function(e,t,i,n){const r=[],s=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],s[0]=r[0]*Math.cos(n)-r[1]*Math.sin(n),s[1]=r[0]*Math.sin(n)+r[1]*Math.cos(n),s[2]=r[2],e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:y,scaleAndAdd:f,set:a,sign:m,sqrDist:_,sqrLen:F,squaredDistance:w,squaredLength:I,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:z,subtract:u,transformMat3:T,transformMat4:D,transformQuat:j,transformQuatValues:N},Symbol.toStringTag,{value:"Module"}))},83027(e,t,i){i.d(t,{h:()=>n});const n=i(29953).ho},4197(e,t,i){i.d(t,{Vj:()=>l,cj:()=>a,jh:()=>s,l5:()=>o});var n=i(34275),r=i(9093);function s(e){return e<=n.y9?new Array(e).fill(0):new Float64Array(e)}function o(e,t,i){return Array.isArray(e)?e.slice(t,t+i):e.subarray(t,t+i)}function a(e){return[...e]}function l(e){const t=(0,r.vt)();for(let i=0;i<16;++i)t[i]=e[i];return t}},70328(e,t,i){i.d(t,{BI:()=>w,DC:()=>p,Ej:()=>m,Ie:()=>f,Jt:()=>M,Ne:()=>h,RF:()=>c,aI:()=>A,fA:()=>o,gE:()=>l,hZ:()=>y,iT:()=>d,is:()=>I,qv:()=>v,vI:()=>g,vY:()=>a,v_:()=>b,vt:()=>s,w1:()=>u}),i(35522);var n=i(5443),r=(i(19419),i(4197));function s(e=b){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,i,n,r,o,a=s()){return a[0]=e,a[1]=t,a[2]=i,a[3]=n,a[4]=r,a[5]=o,a}function a(e,t=s()){return function(e,t,i,n=s()){return y(n,v),function(e,t,i=0,n=t.length/3){let r=e[0],s=e[1],o=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)r=Math.min(r,t[i+3*e]),s=Math.min(s,t[i+3*e+1]),o=Math.min(o,t[i+3*e+2]),a=Math.max(a,t[i+3*e]),l=Math.max(l,t[i+3*e+1]),u=Math.max(u,t[i+3*e+2]);e[0]=r,e[1]=s,e[2]=o,e[3]=a,e[4]=l,e[5]=u}(n,e,t,i),n}(e,0,e.length/3,t)}function l(e,t=(0,r.jh)(24)){const[i,n,s,o,a,l]=e;return t[0]=i,t[1]=n,t[2]=s,t[3]=i,t[4]=n,t[5]=l,t[6]=i,t[7]=a,t[8]=s,t[9]=i,t[10]=a,t[11]=l,t[12]=o,t[13]=n,t[14]=s,t[15]=o,t[16]=n,t[17]=l,t[18]=o,t[19]=a,t[20]=s,t[21]=o,t[22]=a,t[23]=l,t}function u(e,t){const i=isFinite(e[2])||isFinite(e[5]);return new n.A(i?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function m(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function h(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function g(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function y(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function f(e){return e?y(e,v):s(v)}function M(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function w(e,t,i,n,r){return e[0]=t,e[1]=i,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function I(e){return 6===e.length}function A(e,t,i){if(null==e||null==t)return e===t;if(!I(e)||!I(t))return!1;if(i){for(let n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const v=[1/0,1/0,1/0,-1/0,-1/0,-1/0],b=[0,0,0,0,0,0];s()},31411(e,t,i){i.d(t,{GS:()=>C,gh:()=>x});var n=i(49186),r=i(56512),s=i(65864),o=i(4305),a=i(50954),l=i(52006),u=i(49663),c=i(46068),p=i(15507);const d=1e-6,m=[0,0];function h(e){return{maxSegmentLength:e.maxSegmentLength??0,maxDeviation:e.maxDeviation??0,maxSegmentsPerCurve:e.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(e.minSegmentsPerCurve??1,1)}}class g{constructor(e,t){this.curveStart=e,this.curveEnd=t,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(e,t){this.tStart=0,this.arcStart=e,this.tEndStack.push(1),this.arcEndStack.push(t)}splitAt(e){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(e),this.arcEndStack.push(this.interpolate(e))}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(e,{maxDeviation:t,maxSegmentLength:i,maxSegmentsPerCurve:n,minSegmentsPerCurve:r}){const s=i*i,o=t*t,a=1/n,l=this.interpolate(0),u=this.interpolate(1);(0,p.kb)(this.curveStart,l)>d&&e.push(l),this.initialize(l,u);const c=1/r;for(let e=r-1;e>0;e--){const t=e*c;this.pop(),this.splitAt(t)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===s||!isFinite(s)||(0,p.kb)(this.arcStart,this.arcEnd)<s)&&(0===o||!isFinite(o)||this.getDeviation2()<o)?(e.push(this.arcEnd),this.next()):this.splitInHalf();return(0,p.kb)(this.curveEnd,u)>d&&e.push([...this.curveEnd]),e}}class y extends g{constructor(e,t){const[i,n,r]=t.b;super(e,i),this._controlPointsStack=[],this._curveControlPoints=[n,r],this._arcControlPoints=[n,r],this._controlPointsStack.push(this._arcControlPoints)}splitAt(e){const{arcStart:t,arcEnd:i,tStart:n,tEnd:r}=this,[s,o]=this._arcControlPoints,a=(e-n)/(r-n),l=(0,p.RS)([],t,s,a),u=(0,p.RS)(m,s,o,a),c=(0,p.RS)([],o,i,a),d=(0,p.RS)([],l,u,a),h=(0,p.RS)([],u,c,a),g=(0,p.RS)([],d,h,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([h,c]),this.tEndStack.push(e),this.arcEndStack.push(g),this._arcControlPoints[0]=l,this._arcControlPoints[1]=d,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(e){const{curveStart:t,curveEnd:i}=this,[n,r]=this._curveControlPoints;return(0,o.B4)(t,n,r,i,e)}getDeviation2(){const{arcStart:e,arcEnd:t}=this,[i,n]=this._arcControlPoints;return Math.max((0,p.yE)(i,e,t),(0,p.yE)(n,e,t))}}class f extends g{constructor(e,t){const[i]=t.a;super(e,i),this._derivedEllipse=(0,c.SW)(e,t)}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(e){return(0,c.Uk)(this._derivedEllipse,e)}getDeviation2(){return(0,p.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function M(e,t,i,{cx:n,cy:r,radius:s,thetaStart:o,thetaEnd:a,isInvalid:l},{maxDeviation:u,maxSegmentLength:c,maxSegmentsPerCurve:m,minSegmentsPerCurve:h}){if(l)return e.push([...i]),e;const g=2*s,y=[n+s*Math.cos(o),r+s*Math.sin(o)],f=[n+s*Math.cos(a),r+s*Math.sin(a)];(0,p.kb)(t,y)>d&&e.push(y);const M=Math.abs(a-o),w=c>0&&c<g?2*Math.asin(c/g):M,I=u>0&&u<=s?2*Math.acos(1-u/s):M,A=Math.min(w,I),v=Math.min(m,Math.max(h,Math.ceil(Math.abs(M/A)))),b=1/v;for(let t=1;t<v;t++){const i=t*b,l=o*(1-i)+a*i;e.push([n+s*Math.cos(l),r+s*Math.sin(l)])}return e.push(f),(0,p.kb)(i,f)>d&&e.push([...i]),e}function w(e,t,i,n){return new y(t,i).densify(e,n)}function I(e,t,i,n){const r=(0,a.pM)(t,i),[s]=i.c;return M(e,t,s,r,n)}function A(e,t,i,n){const r=(0,u.io)(t,i),[s]=i.a;return M(e,t,s,r,n)}function v(e,t,i,n){const[r,s,o,a,l,u,c]=i.a;return 0===u||0===c?(e.push([...r]),e):new f(t,i).densify(e,n)}function b(e,t,i,n){return(0,l.Xq)(i)?(e.push([...i]),e):(0,l.n1)(i)?w(e,t,i,n):(0,l.aO)(i)?I(e,t,i,n):(0,l.DA)(i)?A(e,t,i,n):v(e,t,i,n)}function C(e,t={}){if(!(0,l.Ed)(e))return e;const i=h(t),n=(0,l.FD)(e),r=[];for(const e of n){const t=[];for(let n=0;n<e.length-1;n++){const r=n+1,s=[...(0,l.yP)(e[n])];0===n&&t.push(s),b(t,s,e[r],i)}r.push(t)}return"curvePaths"in e?{...void 0!==e.hasZ?{hasZ:e.hasZ}:{},...void 0!==e.hasM?{hasM:e.hasM}:{},paths:r,spatialReference:e.spatialReference}:{...void 0!==e.hasZ?{hasZ:e.hasZ}:{},...void 0!==e.hasM?{hasM:e.hasM}:{},rings:r,spatialReference:e.spatialReference}}const S=(0,r.B)(e=>({maxDeviation:0,maxSegmentLength:100*e,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function x(e,t,r){const o=new Set(t);return await async function(e,t,r){let s=null;for(const o of e)if(o&&(0,l.Ed)(o)&&null==o.spatialReference.xyTolerance&&(0,l.V8)(o,t)){const e=o.spatialReference;if(!e)throw new n.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const t=D(e);if(r.has(t))o.spatialReference=r.get(t);else{s||(s=await Promise.all([i.e(6042),i.e(1878),i.e(8885),i.e(5756),i.e(3299),i.e(6312)]).then(i.bind(i,78125)));const a=s.fromSpatialReference(e),l=a?.getTolerance();if(null==l)throw new n.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 u=o.spatialReference.clone();u.read({xyTolerance:l}),o.spatialReference=u,r.set(t,u)}}}(e,o,r),e.map(e=>{if(!e||!(0,l.Ed)(e))return e;const i=e.spatialReference.xyTolerance;if(null==i)return e;const n=S(i);return(0,s.rS)(function(e,t,i){if(!(0,l.Ed)(e))return e;const n=new Set(t),r=h(i),s=(0,l.FD)(e),o=[];let a=!1;for(const e of s){const t=[];for(let i=0;i<e.length-1;i++){const s=i+1,o=[...(0,l.yP)(e[i])];0===i&&t.push(o);const u=e[s];(0,l.Xq)(u)?t.push([...u]):(0,l.n1)(u)&&!n.has("cubic-bezier")?w(t,o,u,r):(0,l.aO)(u)&&!n.has("circular-arc")?I(t,o,u,r):(0,l.DA)(u)&&!n.has("elliptic-arc")?A(t,o,u,r):(0,l.wY)(u)&&!n.has("elliptic-arc")?v(t,o,u,r):(t.push((0,l.tk)(u)),a=!0)}o.push(t)}return"curvePaths"in e?{...void 0!==e.hasZ?{hasZ:e.hasZ}:{},...void 0!==e.hasM?{hasM:e.hasM}:{},spatialReference:e.spatialReference,...a?{curvePaths:o}:{paths:o}}:{hasZ:e.hasZ,hasM:e.hasM,spatialReference:e.spatialReference,...a?{curveRings:o}:{rings:o}}}(e,t,n))})}function D(e){if(null!=e.wkid)return`${e.wkid}`;if(null!=e.wkt)return e.wkt;const t="toJSON"in e&&"function"==typeof e.toJSON?e.toJSON():e;return JSON.stringify(t)}},17136(e,t,i){i.d(t,{Y_:()=>N,O7:()=>T,el:()=>D});var n=i(92602),r=i(69052),s=i(49186),o=i(53966),a=i(39829),l=i(82799),u=i(16930),c=i(80754),p=i(21325),d=i(28735),m=i(52006),h=i(31411),g=i(11254),y=i(60408),f=i(65864),M=i(2272),w=i(84952),I=i(92300);const A=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function v(e){return"polygon"===e[0].type}function b(e){return"polyline"===e[0].type}function C(e,t,i){const n=1e6;if(t){const t=(0,m.Ed)(e)?(0,h.GS)(e,{maxSegmentLength:n}):function(e,t){if(!(e instanceof l.A||e instanceof a.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw A().error(e),new s.A("internal:geometry",e)}const i=(0,c.r8)(e),n=[];for(const e of i){const i=[];n.push(i),i.push([e[0][0],e[0][1]]);for(let n=0;n<e.length-1;n++){const r=e[n][0],s=e[n][1],o=e[n+1][0],a=e[n+1][1],l=Math.sqrt((o-r)*(o-r)+(a-s)*(a-s)),u=(a-s)/l,c=(o-r)/l,p=l/t;if(p>1){for(let e=1;e<=p-1;e++){const n=e*t,o=c*n+r,a=u*n+s;i.push([o,a])}const e=(l+Math.floor(p-1)*t)/2,n=c*e+r,o=u*e+s;i.push([n,o])}i.push([o,a])}}return function(e){return"polygon"===e.type}(e)?new a.A({rings:n,spatialReference:e.spatialReference}):new l.A({paths:n,spatialReference:e.spatialReference})}(e,n);e=(0,d.ci)(t,!0)}return i&&(e=(0,c.kS)(e,i)),e}function S(e,t,i){if(Array.isArray(e)){const n=e[0];if(n>t){const i=(0,c.kd)(n,t);e[0]=n+i*(-2*t)}else if(n<i){const t=(0,c.kd)(n,i);e[0]=n+t*(-2*i)}}else{const n=e.x;if(n>t){const i=(0,c.kd)(n,t);e=e.clone().offset(i*(-2*t),0)}else if(n<i){const t=(0,c.kd)(n,i);e=e.clone().offset(t*(-2*i),0)}}return e}function x(e,t){let i=-1;for(let n=0;n<t.cutIndexes.length;n++){const r=t.cutIndexes[n],s=t.geometries[n],o=(0,c.r8)(s);for(let e=0;e<o.length;e++){const t=o[e];t.some(i=>{if(i[0]<180)return!0;{let i=0;for(let e=0;e<t.length;e++){const n=t[e][0];i=n>i?n:i}i=Number(i.toFixed(9));const n=-360*(0,c.kd)(i,180);for(let i=0;i<t.length;i++){const t=s.getPoint(e,i);s.setPoint(e,i,t.clone().offset(n,0))}return!0}})}if(r===i){if(v(e))for(const t of(0,c.r8)(s))e[r]=e[r].addRing(t);else if(b(e))for(const t of(0,c.r8)(s))e[r]=e[r].addPath(t)}else i=r,e[r]=s}return e}async function D(e,t,i){if(!Array.isArray(e))return D([e],t);t&&"string"!=typeof t&&A().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof t?t:t?.url??n.A.geometryServiceUrl;let s,o,u,m,h,v,b,T,j=0;const N=[],L=[];for(const t of e)if(null!=t)if(s||(s=t.spatialReference,o=(0,p.Vp)(s),u=s.isWebMercator,v=u?102100:4326,m=c.j7[v].maxX,h=c.j7[v].minX,b=c.j7[v].plus180Line,T=c.j7[v].minus180Line),o)if("mesh"===t.type)L.push(t);else if("point"===t.type)L.push(S(t.clone(),m,h));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>S(e,m,h)),L.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,o);L.push(e.rings?new a.A(e):e)}else if(t.extent){const e=t.extent,i=(0,c.kd)(e.xmin,h)*(2*m);let n=0===i?t.clone():(0,c.kS)(t.clone(),i);e.offset(i,0);let{xmin:r,xmax:s}=e;r=Number(r.toFixed(9)),s=Number(s.toFixed(9)),e.intersects(b)&&s!==m?(j=s>j?s:j,n=C(n,u),N.push(n),L.push("cut")):e.intersects(T)&&r!==h?(j=s*(2*m)>j?s*(2*m):j,n=C(n,u,360),N.push(n),L.push("cut")):L.push(n)}else L.push(t.clone());else L.push(t);else L.push(t);let Z=(0,c.kd)(j,m),k=-90;const R=Z,B=new l.A;for(;Z>0;){const e=360*Z-180;B.addPath([[e,k],[e,-1*k]]),k*=-1,Z--}if(N.length>0&&R>0){const t=x(N,await async function(e,t,i,n){const r=(0,M.Dl)(e),s=t[0].spatialReference,o={...n,responseType:"json",query:{...r.query,f:"json",sr:(0,p.YX)(s),target:JSON.stringify({geometryType:(0,y.$B)(t[0]),geometries:t}),cutter:JSON.stringify(i)}},a=await(0,g.A)(r.path+"/cut",o),{cutIndexes:l,geometries:u=[]}=a.data;return{cutIndexes:l,geometries:u.map(e=>{const t=(0,f.rS)(e);return t.spatialReference=s,t})}}(r,N,B,i)),n=[],s=[];for(let i=0;i<L.length;i++){const r=L[i];if("cut"!==r)s.push(r);else{const r=t.shift(),o=e[i];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&r.rings.length>=o.rings.length?(n.push(r),s.push("simplify")):s.push(u?(0,d.Gh)(r):r)}}if(!n.length)return s;const o=await async function(e,t,i){const n="string"==typeof e?(0,w.An)(e):e,r=t[0].spatialReference,s=(0,y.$B)(t[0]),o={...i,query:{...n.query,f:"json",sr:(0,p.YX)(r),geometries:JSON.stringify((0,I.X)(t))}},{data:a}=await(0,g.A)(n.path+"/simplify",o);return(0,I.V)(a.geometries,s,r)}(r,n,i),a=[];for(let e=0;e<s.length;e++){const t=s[e];"simplify"!==t?a.push(t):a.push(u?(0,d.Gh)(o.shift()):o.shift())}return a}const E=[];for(let e=0;e<L.length;e++){const t=L[e];if("cut"!==t)E.push(t);else{const e=N.shift();E.push(!0===u?(0,d.Gh)(e):e)}}return E}function T(e,t,i){const n=(0,p.Vp)(i);if(null==n)return e;const[r,s]=n.valid,o=2*s;let a=0,l=0;t>s?a=Math.ceil(Math.abs(t-s)/o):t<r&&(a=-Math.ceil(Math.abs(t-r)/o)),e>s?l=Math.ceil(Math.abs(e-s)/o):e<r&&(l=-Math.ceil(Math.abs(e-r)/o));let u=e+(a-l)*o;const c=u-t;return c>s?u-=o:c<r&&(u+=o),u}function j(e){const t=(0,p.Vp)(e);if(null==t)return null;const[i,n]=t.valid;return new r.hr(i,n)}const N=j(u.A.WGS84);j(u.A.WebMercator)},80754(e,t,i){i.d(t,{j7:()=>a,kS:()=>u,kd:()=>l,r8:()=>c});var n=i(82799),r=i(16930),s=i(60408),o=i(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,o.Ed)(e))for(const i of function(e){return(0,s.Bi)(e)?e.curveRings:e.curvePaths}(e))for(const e of i){if((0,o.aO)(e)){const[i,n]=e.c;i[0]+=t,n[0]+=t;continue}if((0,o.FG)(e)){const[i,n]=e.a;i[0]+=t,n[0]+=t;continue}if((0,o.n1)(e)){const[i,n,r]=e.b;i[0]+=t,n[0]+=t,r[0]+=t;continue}e[0]+=t}for(const i of c(e))for(const e of i)e[0]+=t;return e}function c(e){return(0,s.Bi)(e)?e.rings:e.paths}},99959(e,t,i){i.d(t,{A:()=>s});var n=i(5482),r=i(91429);let s=class{};s=(0,n.Cg)([(0,r.$K)("esri.graphic.GraphicOrigin")],s)},55156(e,t,i){i.d(t,{I:()=>r,e:()=>n});const n=Symbol("idFieldsProviderSymbol");function r(e){return(t=e)&&n in t?e[n]:void 0;var t}},89808(e,t,i){i.d(t,{Q:()=>n});const n=Symbol("getSliceableSymbol")},54339(e,t,i){function n(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const i=[];for(const n of t.fieldNames)i.push(e.attributes[n]??null);return JSON.stringify(i)}}}function r(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>n,r:()=>r})},69208(e,t,i){i.d(t,{d:()=>s});var n=i(5482),r=i(91429);const s=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,n.Cg)([(0,r.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],i.prototype,"customParameters",void 0),i=(0,n.Cg)([(0,r.$K)("esri.layers.mixins.CustomParametersMixin")],i),i}},8303(e,t,i){i.d(t,{A:()=>A});var n=i(5482),r=i(92602),s=i(70333),o=i(11254),a=i(60999),l=i(49186),u=i(53966),c=i(97768),p=i(17676),d=i(84952),m=i(91429),h=i(77548),g=i(20655),y=i(80812),f=i(41318),M=i(10407),w=i(36005),I=i(43937);const A=e=>{const t=e;let A=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new y.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:n}=await i.e(1204).then(i.bind(i,41204));return(0,p.Te)(t),await n({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!r.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:n},content:{updateItem:r}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",r)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const n=!s.id?.findCredential(this.url),r=e===i.id;if(r&&i.portal.user)return this._getUserPrivileges(i,n);let o,a;if(r)o=i.portal.url;else try{o=await(0,h.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,d.b8)(o,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(r?await i.reload():(i=new y.default({id:e,portal:{url:o}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,n)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const i=(0,M.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const i=v.credential===t?v.user:await this._fetchEditingUser(e);return v.credential=t,v.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=s.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const n=`${i.owningSystemUrl}/sharing/rest`,r=g.A.getDefault();if(r&&r.loaded&&(0,d.S8)(r.restUrl)===(0,d.S8)(n))return r.user;const l=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,a.Ke)((0,o.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?f.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||g.A.getDefault());return i&&n&&!(0,d.ut)(n.restUrl,i.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,n.Cg)([(0,m.MZ)({type:y.default})],A.prototype,"portalItem",null),(0,n.Cg)([(0,w.w)("web-document","portalItem",["itemId"])],A.prototype,"readPortalItem",null),(0,n.Cg)([(0,I.K)("web-document","portalItem",{itemId:{type:String}})],A.prototype,"writePortalItem",null),(0,n.Cg)([(0,m.MZ)({clonable:!1})],A.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasUpdateItemPrivileges",void 0),A=(0,n.Cg)([(0,m.$K)("esri.layers.mixins.PortalLayer")],A),A},v={credential:null,user:null}},72545(e,t,i){i.d(t,{G:()=>c});var n=i(5482),r=i(91429),s=i(47520),o=i(34251),a=i(69409),l=i(12711),u=i(491);const c=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this._rasterJobHandlerConfig={instance:null,refCount:0,connectionPromise:null}}get _rasterJobHandler(){return this._rasterJobHandlerConfig.instance}increaseRasterJobHandlerUsage(){this._rasterJobHandlerConfig.refCount++}decreaseRasterJobHandlerUsage(){this._rasterJobHandlerConfig.refCount--,this._rasterJobHandlerConfig.refCount<=0&&this._shutdownJobHandler()}async convertVectorFieldData(e,t,i){if(null==e)return null;const n=this._rasterJobHandler;return n?n.convertVectorFieldData({pixelBlock:e,dataType:t},i):(0,o.FI)(e,t)}async sampleVectorFieldData(e,t){const i=this._rasterJobHandler;return i?i.sampleVectorFieldData(e,t):(0,o.Wu)(e.pixelBlock,e.srcDataType,e.tileSize,e.offset,e.maximumVoidPercentage)}async createFlowMesh(e,t){const i=this._rasterJobHandler;return i?i.createFlowMesh(e,t):(0,u.CW)(e.meshType,e.simulationSettings,e.flowData,e.startInfo,null!=t.signal?t.signal:(new AbortController).signal)}async highlightPixels(e,t){const i=this,{bandIds:n}=i,r="imagery"===i.type?i.rasterInfo:i.raster.rasterInfo,o=n?.length?n:(0,l.ci)(r),a=e.highlightOptions.map(e=>{const t={...e},i="bandId"in t?[t.bandId??0]:[t.xBandId,t.yBandId];for(let e=0;e<i.length;e++){const t=i[e];if(null==t)return;const n=o?.length?o.indexOf(t):t;if(n<0||n>2)return;i[e]=n}return"bandId"in t?t.bandId=i[0]:(t.xBandId=i[0],t.yBandId=i[1]),t}).filter(e=>null!=e);if(0===a.length)return;const u=this._rasterJobHandler;u?await u.highlightPixels({...e,highlightOptions:a},t):(0,s._F)({...e,highlightOptions:a})}_initJobHandler(){const{_rasterJobHandlerConfig:e}=this;if(e.connectionPromise)return e.connectionPromise;const t=new a.A;return e.connectionPromise=t.initialize().then(()=>{e.instance=t,this.notifyChange("_rasterJobHandler")},()=>{}),e.connectionPromise}_shutdownJobHandler(){const{_rasterJobHandlerConfig:e}=this;e.instance?.destroy(),e.instance=null,e.connectionPromise=null,e.refCount=0,this.notifyChange("_rasterJobHandler"),this._cachedRendererJson=void 0}async _updateSymbolizer(e,t,i,n){const r=this._rasterJobHandlerConfig.instance;if(!r)return;const s=(0,l.$P)({...t.toJSON(),variableName:i});JSON.stringify(this._cachedRendererJson)!==JSON.stringify(s)&&(n&&(e.rasterInfo=n),e.rendererJSON=s,e.bind(),await r.updateSymbolizer(e),this._cachedRendererJson=t.toJSON())}async _symbolize(e,t){const{pixelData:i,bandIds:n,simpleStretchParams:r}=e,s=this._rasterJobHandler;if(s){const e=await s.symbolize({...i,simpleStretchParams:r,bandIds:n},t);return{extent:i.extent,pixelBlock:e}}const o=e.symbolizer.symbolize({...i,simpleStretchParams:r,bandIds:n});return{extent:i.extent,pixelBlock:o}}};return(0,n.Cg)([(0,r.MZ)({clonable:!1})],i.prototype,"_rasterJobHandler",null),(0,n.Cg)([(0,r.MZ)({clonable:!1})],i.prototype,"_cachedRendererJson",void 0),(0,n.Cg)([(0,r.MZ)({clonable:!1})],i.prototype,"_rasterJobHandlerConfig",void 0),i=(0,n.Cg)([(0,r.$K)("esri.layers.mixins.RasterJobHandlerMixin")],i),i}},82935(e,t,i){i.d(t,{B:()=>d,e:()=>m});var n=i(5482),r=i(91429),s=i(89317),o=i(30524),a=i(96184),l=i(73133),u=i(79677),c=i(10184),p=i(36005);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:s.K}}},m=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const n=i.timeOffset,r=l.j.fromJSON(i.timeOffsetUnits);return n&&r?new c.A({value:n,unit:r}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,o.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n.Cg)([(0,r.MZ)({type:u.A,json:{write:!1}})],i.prototype,"timeExtent",void 0),(0,n.Cg)([(0,r.MZ)({type:c.A})],i.prototype,"timeOffset",void 0),(0,n.Cg)([(0,p.w)("service","timeOffset",["timeInfo.exportOptions"])],i.prototype,"readOffset",null),(0,n.Cg)([(0,r.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],i.prototype,"timeInfo",null),(0,n.Cg)([(0,r.MZ)(d)],i.prototype,"useViewTime",void 0),i=(0,n.Cg)([(0,r.$K)("esri.layers.mixins.TemporalLayer")],i),i}},7548(e,t,i){function n(e){return"Function"===e?.datasetFormat}function r(e){return n(e)?e.primaryRasters.rasters:[e]}function s(e,t,i,n){const{x:r,y:s}=t,{x:o,y:a}=i,{xmin:l,xmax:u,ymin:c,ymax:p}=e,{width:d,height:m}=e,h=d/o,g=m/a,y=Math.min(h,g),f=y<=1?0:Math.min(.1,y/100),M=Math.floor((l-r)/o+f),w=Math.floor((s-p)/a+f),I=Math.floor((u-r)/o-f),A=Math.floor((s-c)/a-f);return{ul:{x:M,y:w},width:n>0&&h<.1?0:I-M+1,height:n>0&&g<.1?0:A-w+1}}i.d(t,{$g:()=>s,pb:()=>r,qg:()=>n})},4366(e,t,i){i.d(t,{$E:()=>S,DY:()=>w,NG:()=>C,QW:()=>l,Rp:()=>g,XU:()=>y,Xg:()=>b,ct:()=>f,fy:()=>M,xx:()=>u,z2:()=>I});var n=i(4576),r=i(86738),s=i(12359),o=i(45617);function a(e,t,i){const n=t.shift();if(0===i.length){const e=[];i.push({sliceId:-1,multidimensionalDefinition:e})}const r=i.length;for(let t=0;t<r;t++){const t=i.shift().multidimensionalDefinition;n.values?.forEach(r=>{i.push({sliceId:-1,multidimensionalDefinition:[...t,{variableName:e,dimensionName:n.name,values:[r]}]})})}t.length&&a(e,t,i)}function l(e,t){const i=[];let n=0;return(t?e.variables.filter(e=>e.name.toLowerCase()===t.toLowerCase()):[...e.variables].sort((e,t)=>e.name>t.name?1:-1)).forEach(e=>{const t=[],r=[...e.dimensions].sort((e,t)=>e.name>t.name?-1:1);a(e.name,r,t),t.forEach(e=>{i.push({...e,sliceId:n++})})}),i}function u(e,t,i){let n=e;if(t&&(t=[...t].sort((e,t)=>e.dimensionName<t.dimensionName?-1:1)).forEach(({dimensionName:e,values:t,isSlice:i})=>{t.length&&(n=n.filter(n=>{const r=n.multidimensionalDefinition.find(t=>t.dimensionName===e);if(null==r)return!1;const s=r.values[0];return"number"==typeof s?"number"==typeof t[0]?t.includes(s):t.some(e=>e[0]<=s&&e[1]>=s):"number"==typeof t[0]?t.some(e=>s[0]<=e&&s[1]>=e):i?t.some(e=>e[0]===s[0]&&e[0]===s[1]):t.some(e=>e[0]>=s[0]&&e[0]<=s[1]||e[1]>=s[0]&&e[1]<=s[1]||e[0]<s[0]&&e[1]>s[1])}))}),n.length&&null!=i?.start&&null!=i.end){const e=i.start.getTime(),t=i.end.getTime(),r=n[0].multidimensionalDefinition.findIndex(e=>"StdTime"===e.dimensionName);r>-1&&(n=n.filter(i=>{const n=i.multidimensionalDefinition[r].values[0];return e<=n&&t>=n}))}return n.map(e=>e.sliceId)}function c(e,t){return Array.isArray(e)?t[0]===t[1]?e[0]===t[0]||e[1]===t[0]:e[0]>=t[0]&&e[0]<=t[1]&&e[1]>=t[0]&&e[1]<=t[1]:e>=t[0]&&e<=t[1]}function p(e,t){return e[0]<=t[0]&&e[1]>=t[0]||e[0]<=t[1]&&e[1]>=t[1]||e[0]>=t[0]&&e[1]<=t[1]}function d(e){return 1===e.length?[e[0],e[0]]:[e[0],e[e.length-1]]}function m(e,t,i){if(!t?.subsetDefinitions?.length)return e;let n;if(i){const{variables:r}=t;if(r.length&&!r.includes(i))return null;const s=t.subsetDefinitions.find(t=>t.dimensionName===e.name&&t.variableName===i);if(!s?.values?.length)return e;n=d(s.values)}else{const i=t.dimensions.find(({name:t})=>t===e.name);n=i?.extent}const r=n;if(!r?.length)return e;const s=e.values.filter(e=>c(e,r));return{...e,extent:[...r],values:s}}function h(e,t,i){if(!t?.subsetDefinitions?.length)return!1;const{variables:n}=t;if(n.length&&e.some(({variableName:e})=>e&&!n.includes(e)))return!0;for(let n=0;n<e.length;n++){const r=e[n],s=t.subsetDefinitions.find(e=>(""===r.variableName||e.variableName===r.variableName)&&e.dimensionName===r.dimensionName);if(s?.values.length){const e=d(s.values);if(r.isSlice||2!==r.values.length||Array.isArray(r.values[0])||r.values[0]===r.values[1]||!i){if(r.values.some(t=>!c(t,e)))return!0}else if(!p(r.values,e))return!0}}return!1}function g(e,t){if(null==e)return{isOutside:!1};const{geometry:i,timeExtent:n,multidimensionalDefinition:a}=t;let l=null;if(null!=n&&(l=function(e,t){const i=e.dimensions.find(({name:e})=>"StdTime"===e);if(null==i||null==t.start&&null==t.end)return t;t=t.clone();const{start:n,end:r}=t.toJSON(),s=n===r?[n]:null!=n&&null!=r?[n,r]:[n??r];return 2===s.length&&i?.extent.length&&(s[0]=Math.max(s[0],i.extent[0]),s[1]=Math.min(s[1],i.extent[1]??i.extent[0]),s[1]<s[0])||h([new o.A({variableName:"",dimensionName:"StdTime",isSlice:1===s.length,values:s})],e,!0)?null:(t.start=new Date(s[0]),t.end=new Date(s[1]??s[0]),t)}(e,n),null==l))return{isOutside:!0};const{areaOfInterest:u}=e;if(u&&i){const e=function(e){switch(e.type){case"point":return e;case"extent":return e.center;case"polygon":{const t=(0,s.Ve)(e);return t?r.A.fromJSON(t):null}}return null}(i);if(e&&!u.contains(e))return{isOutside:!0}}return null!=a&&a.length&&h(a,e,!0)?{isOutside:!0}:{isOutside:!1,intersection:{geometry:i,timeExtent:l,multidimensionalDefinition:a}}}function y(e){const{rasterInfo:t,multidimensionalSubset:i}=e,{multidimensionalInfo:n}=t;if(null==n)return null;let r=e.multidimensionalDefinition?.length?e.multidimensionalDefinition:M(t,{multidimensionalSubset:i});if(!r?.length)return null;if(r.some(e=>!e.dimensionName)){const{variableName:e}=r[0],n=M(t,{multidimensionalSubset:i,variableName:e});n?.forEach(e=>{const t=r?.find(({dimensionName:t})=>t===e.dimensionName);t?.values?.length&&(e.values=t.values,e.isSlice=t.isSlice)}),r=n}const{timeExtent:s}=e;if(null!=r&&null!=s&&(null!=s.start||null!=s.end)){r=r.map(e=>e.clone());const e=n.variables.find(({name:e})=>e===r[0].variableName)?.dimensions?.find(({name:e})=>"StdTime"===e),t=r.find(({dimensionName:e})=>"StdTime"===e);if(!e||!t)return null;const{start:i,end:o}=s,a=null==i?null:i.getTime(),l=null==o?null:o.getTime(),u=a??l,c=l??a;if(null!=e.values){const i=e.values.filter(e=>{if(Array.isArray(e)){if(u===c)return e[0]<=u&&e[1]>=u;const t=e[0]<=u&&e[1]>u||e[0]<c&&e[1]>=c,i=e[0]>=u&&e[1]<=c||e[0]<u&&e[1]>c;return t||i}return u===c?e===u:e>=u&&e<=c});if(i.length){const e=i.sort((e,t)=>{const i=Array.isArray(e)?e[0]:e,n=Array.isArray(e)?e[1]:e,r=Array.isArray(t)?t[0]:t,s=Array.isArray(t)?t[1]:t;return u===c?i-r:Math.abs(n-c)-Math.abs(s-c)})[0];t.values=[e]}else r=null}else if(e.hasRegularIntervals&&e.extent){const[i,n]=e.extent;u>n||c<i?r=null:t.values=u===c?[u]:[Math.max(i,u),Math.min(n,c)]}}return null!=r&&h(r,i)?null:r}function f(e,t={}){const{multidimensionalInfo:i,keyProperties:n}=e;if(null==i)return null;const{variableName:r,multidimensionalSubset:s,multidimensionalDefinition:o}=t,a=null!=o?o[0]?.variableName:null,l=r||a||n?.DefaultVariable;let{variables:u}=i;return s?.variables?.length&&(u=u.filter(({name:e})=>s.variables.includes(e))),l?u.find(({name:e})=>e===l)??u[0]:u[0]}function M(e,t={}){const i=f(e,t);if(!i)return null;const n=[],{dimensions:r,name:s}=i;if(0===r.length)return[new o.A({variableName:s,dimensionName:"",values:[],isSlice:!0})];for(let e=0;e<r.length;e++){const i=m(r[e],t.multidimensionalSubset,s);if(!i)return null;const{values:a,extent:l}=i;let u=a?.[0]??l?.[0];"stdz"===i.name.toLowerCase()&&!i.hasRanges&&l&&Math.abs(l[1])<=Math.abs(l[0])&&(u=a?.length?a[a.length-1]:l[1]),n.push(new o.A({variableName:s,dimensionName:i.name,values:[u],isSlice:!t.useRangeForRangedDimensionInfo||!!i.hasRanges}))}return n}function w(e){return!!e?.length&&e.some(e=>{if(null==e.values)return!0;const t=e.values.length;return 0===t||t>1||!e.isSlice&&Array.isArray(e.values[0])})}function I(e,t){if(null==t||null==e)return null;let i=t.variables.map(e=>({...e}));return e?.variables?.length&&(i=i.filter(({name:t})=>e.variables.includes(t)),i.forEach(t=>{t.dimensions=t.dimensions.map(i=>m(i,e,t.name)).filter(n.Ru)})),i}function A(e,t){const{values:i}=t;if(i?.length){const t=Array.isArray(i[0]),n=Array.isArray(e);return t!==n?-1:t&&n?i.findIndex(t=>t[0]===e[0]&&t[1]===e[1]):i.indexOf(e)}const{extent:n}=t;if(Array.isArray(e)||!n||e<n[0]||e>n[1])return-1;const r=t.interval||1;if("ISO8601"!==t.unit)return Math.round((e-n[0])/r);const s=n[0];let o=-1;switch(t.intervalUnit?.toLowerCase()||"days"){case"seconds":o=Math.round((e-s)/1e3/r);break;case"minutes":o=Math.round((e-s)/6e4/r);break;case"hours":o=Math.round((e-s)/36e5/r);break;case"days":o=Math.round((e-s)/864e5/r);break;case"months":{const t=new Date(e).getUTCFullYear()-new Date(s).getUTCFullYear(),i=new Date(s).getUTCMonth(),n=new Date(e).getUTCMonth();o=0===t?n-i:n+11-i+12*(t-1)}break;case"years":o=Math.round((new Date(e).getUTCFullYear()-new Date(s).getUTCFullYear())/r);break;case"decades":o=Math.round((new Date(e).getUTCFullYear()-new Date(s).getUTCFullYear())/10/r)}return o}function v(e){let t=e.values?.length;if(t)return t;const{extent:i,unit:n}=e,r=e.interval||1,s=i?i[1]-i[0]:0;if("ISO8601"!==n)return Math.round(s/r);switch(e.intervalUnit?.toLowerCase()??"seconds"){case"seconds":t=Math.round(s/1e3/r);break;case"minutes":t=Math.round(s/6e4/r);break;case"hours":t=Math.round(s/36e5/r);break;case"days":t=Math.round(s/864e5/r);break;case"months":if(i){const e=new Date(i[1]).getUTCFullYear()-new Date(i[0]).getUTCFullYear(),n=new Date(i[0]).getUTCMonth(),r=new Date(i[1]).getUTCMonth();t=0===e?r-n+1:r+11-n+12*(e-1)+1}else t=0;break;case"years":t=i?Math.round((new Date(i[1]).getUTCFullYear()-new Date(i[0]).getUTCFullYear())/r):0;break;case"decades":t=i?Math.round((new Date(i[1]).getUTCFullYear()-new Date(i[0]).getUTCFullYear())/10/r):0;break;default:t=0}return t}function b(e){if(2!==e.extent?.length||!e.interval)return[];const{extent:[t,i],interval:n}=e;if("ISO8601"===e.unit){const r=e.intervalUnit?.toLowerCase()??"days";return["decades","years","months","days","hours","minutes","seconds"].includes(r)?function(e,t,i,n){const r=[];let s=e;const o=new Date(e);for(;s<=t;)switch(r.push(s),n){case"decades":o.setUTCFullYear(o.getUTCFullYear()+10*i),s=o.getTime();break;case"years":o.setUTCFullYear(o.getUTCFullYear()+i),s=o.getTime();break;case"months":o.setUTCMonth(o.getUTCMonth()+i),s=o.getTime();break;case"days":s+=864e5*i;break;case"hours":s+=36e5*i;break;case"minutes":s+=6e4*i;break;case"seconds":s+=1e3*i}return 1===r.length?r[1]=t:r[r.length-1]=t,r}(t,i,n,r):[]}const r=Math.round((i-t)/n);return Array.from({length:r},(e,s)=>s===r-1?i:t+s*n)}function C(e,t){let i=0;const n=e[0].variableName,r=[...t.variables].sort((e,t)=>e.name>t.name?1:-1);for(let t=0;t<r.length;t++){const s=r[t],o=[...s.dimensions].sort((e,t)=>e.name>t.name?-1:1);if(s.name!==n){i+=o.map(e=>v(e)).reduce((e,t)=>e*t);continue}const a=o.map(e=>v(e)),l=o.length;for(let t=0;t<l;t++){const n=e.find(e=>e.dimensionName===o[t].name);if(null==n)return null;const r=A(n.values[0],o[t]);if(-1===r)return null;a.shift(),i+=t===l-1?r:r*a.reduce((e,t)=>e*t)}break}return i}function S(e){return Math.round(24*(e-25569)*3600*1e3)}},45617(e,t,i){i.d(t,{A:()=>u});var n,r=i(5482),s=i(25482),o=i(4718),a=i(91429),l=i(56507);let u=n=class extends s.o{constructor(e){super(e),this.variableName=null,this.dimensionName=null,this.values=[],this.isSlice=!1}clone(){return new n({variableName:this.variableName,dimensionName:this.dimensionName,values:(0,o.o8)(this.values),isSlice:this.isSlice})}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"variableName",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"dimensionName",void 0),(0,r.Cg)([(0,a.MZ)({type:l.gK.array(l.gK.oneOf([l.gK.native(Number),l.gK.array(l.gK.native(Number))])),json:{write:!0}})],u.prototype,"values",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],u.prototype,"isSlice",void 0),u=n=(0,r.Cg)([(0,a.$K)("esri.layers.support.DimensionalDefinition")],u)},85675(e,t,i){i.d(t,{A:()=>f});var n,r=i(5482),s=i(66552),o=i(25482),a=i(4718),l=i(91429),u=i(56507),c=i(86738),p=i(45617),d=i(22796),m=i(36005),h=i(43937);const g=(0,s.O)()({MT_FIRST:"first",MT_LAST:"last",MT_MIN:"min",MT_MAX:"max",MT_MEAN:"mean",MT_BLEND:"blend",MT_SUM:"sum"}),y=(0,s.O)()({esriMosaicNone:"none",esriMosaicCenter:"center",esriMosaicNadir:"nadir",esriMosaicViewpoint:"viewpoint",esriMosaicAttribute:"attribute",esriMosaicLockRaster:"lock-raster",esriMosaicNorthwest:"northwest",esriMosaicSeamline:"seamline"});let f=n=class extends o.o{constructor(e){super(e),this.ascending=!0,this.itemRasterFunction=null,this.lockRasterIds=null,this.method="none",this.multidimensionalDefinition=null,this.objectIds=null,this.operation="first",this.sortField=null,this.sortValue=null,this.viewpoint=null,this.where=null}readAscending(e,t){return null!=t.ascending?t.ascending:null==t.sortAscending||t.sortAscending}readMethod(e,t){return function(e){let t;switch(e?e.toLowerCase().replace("esrimosaic",""):""){case"byattribute":case"attribute":t="esriMosaicAttribute";break;case"lockraster":t="esriMosaicLockRaster";break;case"center":t="esriMosaicCenter";break;case"northwest":t="esriMosaicNorthwest";break;case"nadir":t="esriMosaicNadir";break;case"viewpoint":t="esriMosaicViewpoint";break;case"seamline":t="esriMosaicSeamline";break;default:t="esriMosaicNone"}return y.fromJSON(t)}(t.mosaicMethod||t.defaultMosaicMethod)}writeMultidimensionalDefinition(e,t,i){null!=e&&(e=e.filter(({variableName:e,dimensionName:t})=>e&&"*"!==e||t)).length&&(t[i]=e.map(e=>e.toJSON()))}readOperation(e,t){const i=t.mosaicOperation,n=t.mosaicOperator?.toLowerCase(),r=i||(n?g.toJSON(n):null);return g.fromJSON(r)||"first"}castSortValue(e){return null==e||"string"==typeof e||"number"==typeof e?e:`${e}`}clone(){return new n({ascending:this.ascending,itemRasterFunction:(0,a.o8)(this.itemRasterFunction),lockRasterIds:(0,a.o8)(this.lockRasterIds),method:this.method,multidimensionalDefinition:(0,a.o8)(this.multidimensionalDefinition),objectIds:(0,a.o8)(this.objectIds),operation:this.operation,sortField:this.sortField,sortValue:this.sortValue,viewpoint:(0,a.o8)(this.viewpoint),where:this.where})}};(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"ascending",void 0),(0,r.Cg)([(0,m.w)("ascending",["ascending","sortAscending"])],f.prototype,"readAscending",null),(0,r.Cg)([(0,l.MZ)({type:d.A,json:{name:"itemRenderingRule",write:!0}})],f.prototype,"itemRasterFunction",void 0),(0,r.Cg)([(0,l.MZ)({type:[u.jz],json:{write:{overridePolicy(){return{enabled:"lock-raster"===this.method}}}}})],f.prototype,"lockRasterIds",void 0),(0,r.Cg)([(0,l.MZ)({type:y.apiValues,json:{type:y.jsonValues,write:{target:"mosaicMethod",writer:y.write,isRequired:!0}}})],f.prototype,"method",void 0),(0,r.Cg)([(0,m.w)("method",["mosaicMethod","defaultMosaicMethod"])],f.prototype,"readMethod",null),(0,r.Cg)([(0,l.MZ)({type:[p.A],json:{write:!0}})],f.prototype,"multidimensionalDefinition",void 0),(0,r.Cg)([(0,h.K)("multidimensionalDefinition")],f.prototype,"writeMultidimensionalDefinition",null),(0,r.Cg)([(0,l.MZ)({type:[u.jz],json:{name:"fids",write:!0}})],f.prototype,"objectIds",void 0),(0,r.Cg)([(0,l.MZ)({type:g.apiValues,json:{type:g.jsonValues,read:{reader:g.read},write:{target:"mosaicOperation",writer:g.write}}})],f.prototype,"operation",void 0),(0,r.Cg)([(0,m.w)("operation",["mosaicOperation","mosaicOperator"])],f.prototype,"readOperation",null),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:{overridePolicy(){return{enabled:"attribute"===this.method}}}}})],f.prototype,"sortField",void 0),(0,r.Cg)([(0,l.MZ)({type:[String,Number],json:{write:{allowNull:!0,overridePolicy(){return{enabled:"attribute"===this.method,allowNull:!0}}}}})],f.prototype,"sortValue",void 0),(0,r.Cg)([(0,l.wg)("sortValue")],f.prototype,"castSortValue",null),(0,r.Cg)([(0,l.MZ)({type:c.A,json:{write:!0}})],f.prototype,"viewpoint",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],f.prototype,"where",void 0),f=n=(0,r.Cg)([(0,l.$K)("esri.layers.support.MosaicRule")],f)},43577(e,t,i){i.d(t,{A:()=>m});var n,r=i(5482),s=i(25482),o=i(91429),a=i(5443),l=i(91075),u=i(39829),c=i(65864),p=i(45617);const d={base:l.A,key:"type",typeMap:{extent:a.A,polygon:u.A}};let m=n=class extends s.o{constructor(e){super(e),this.areaOfInterest=null,this.subsetDefinitions=null}get dimensions(){const{subsetDefinitions:e}=this;if(null==e||0===e.length)return[];const t=new Map;e.forEach(e=>{if(!e.dimensionName)return;let i,n;if(Array.isArray(e.values[0])){const t=e.values;i=t[0][0],n=t[e.values.length-1][1]}else{const t=e.values;i=t[0],n=t[e.values.length-1]}if(t.has(e.dimensionName)){const r=t.get(e.dimensionName);r[0]=Math.min(i,r[0]),r[1]=Math.max(n,r[1])}else t.set(e.dimensionName,[i,n])});const i=[];for(const e of t)i.push({name:e[0],extent:e[1]});return i}get variables(){const{subsetDefinitions:e}=this;if(null==e||0===e.length)return[];const t=new Set;return e.forEach(e=>{e.variableName&&t.add(e.variableName)}),[...t]}clone(){const e=this.subsetDefinitions?.map(e=>e.clone()),t=this.areaOfInterest?this.areaOfInterest.clone():this.areaOfInterest;return new n({areaOfInterest:t,subsetDefinitions:e})}};(0,r.Cg)([(0,o.MZ)({types:d,json:{read:c.rS,write:!0}})],m.prototype,"areaOfInterest",void 0),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"dimensions",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"variables",null),(0,r.Cg)([(0,o.MZ)({type:[p.A],json:{write:!0}})],m.prototype,"subsetDefinitions",void 0),m=n=(0,r.Cg)([(0,o.$K)("esri.layers.support.MultidimensionalSubset")],m)},22796(e,t,i){i.d(t,{A:()=>N});var n=i(5482),r=i(25482),s=i(4718),o=i(91429),a=i(66552),l=i(56507),u=i(13868);let c=class extends r.o{constructor(){super(...arguments),this.pixelType="unknown"}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],c.prototype,"name",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,n.Cg)([(0,o.MZ)({type:l.jz,json:{type:l.jz,write:!0,name:"_object_id"}})],c.prototype,"id",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{type:u.e8.jsonValues,read:u.e8.read,write:{writer:u.e8.write,isRequired:!0}}})],c.prototype,"pixelType",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),c=(0,n.Cg)([(0,o.$K)("esri.layers.support.RasterFunctionInfo")],c);const p=c;let d=class extends r.o{constructor(){super(...arguments),this.isDataset=!1,this.isPublic=!1,this.type="RasterFunctionVariable"}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{type:l.jz,write:!0,name:"_object_id"}})],d.prototype,"id",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"isDataset",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"isPublic",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"value",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"type",void 0),d=(0,n.Cg)([(0,o.$K)("esri.layers.support.RasterFunctionVariable")],d);const m={key:"type",base:null,typeMap:{RasterFunctionVariable:d}};let h=class extends r.o{};(0,n.Cg)([(0,o.MZ)({types:m,json:{types:m,name:"MatchVariable"}})],h.prototype,"matchVariable",void 0),(0,n.Cg)([(0,o.MZ)({types:m,json:{types:m,name:"UnionDimension"}})],h.prototype,"unionDimension",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{type:l.jz,write:!0,name:"_object_id"}})],h.prototype,"id",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"type",void 0),h=(0,n.Cg)([(0,o.$K)("esri.layers.support.RasterFunctionProperties")],h);const g=h,y=new a.J({0:"mosaic",1:"item",2:"item-group"},{useNumericKeys:!0});let f=class extends r.o{constructor(){super(...arguments),this.description="",this.functionType="mosaic",this.type="RasterFunctionTemplate"}};(0,n.Cg)([(0,o.MZ)({type:[String],json:{write:!0}})],f.prototype,"aliases",void 0),(0,n.Cg)([(0,o.MZ)({type:Object,json:{write:{isRequired:!0}}})],f.prototype,"arguments",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],f.prototype,"description",void 0),(0,n.Cg)([(0,o.MZ)({type:p,json:{write:{isRequired:!0},name:"function"}})],f.prototype,"functionInfo",void 0),(0,n.Cg)([(0,o.MZ)({type:y.apiValues,json:{type:[0,1,2],read:y.read,write:{writer:y.write,isRequired:!0}}})],f.prototype,"functionType",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],f.prototype,"group",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],f.prototype,"help",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{type:l.jz,write:!0,name:"_object_id"}})],f.prototype,"id",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],f.prototype,"name",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0,name:"definition"}})],f.prototype,"queryDefinition",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],f.prototype,"tag",void 0),(0,n.Cg)([(0,o.MZ)({type:g,json:{write:!0}})],f.prototype,"properties",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],f.prototype,"thumbnail",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],f.prototype,"thumbnailEx",void 0),(0,n.Cg)([(0,o.MZ)({json:{type:["RasterFunctionTemplate"],write:!0}})],f.prototype,"type",void 0),f=(0,n.Cg)([(0,o.$K)("esri.layers.support.RasterFunctionTemplate")],f);var M,w=i(36005),I=i(43937),A=i(93223);const v=new Set(["raster","raster2","dem","fillraster"]),b=new Set(["rasters"]),C=e=>e?.rasterFunction?N.fromJSON(e):e,S=e=>e&&e instanceof N?e.toJSON():e,x=e=>e?.functionName&&!e.declaredClass,D=e=>x(e)?new N(e):e,T=e=>e?f.fromJSON({type:"RasterFunctionTemplate",...e}):void 0,j={types:{key:"type",base:null,typeMap:{RasterFunctionTemplate:f}},json:{write:!0,name:"rasterFunctionDefinition",read:T}};let N=M=class extends r.o{constructor(e){super(e),this.functionName=null,this.outputPixelType="unknown",this.variableName=null,this.functionDefinition=null}set functionArguments(e){if(e){const t=Object.keys(e);if(t.some(t=>v.has(t.toLowerCase())&&x(e[t]))||t.some(t=>b.has(t.toLowerCase())&&Array.isArray(e[t])&&e[t].some(e=>x(e)))){e=(0,s.o8)(e);for(const i of t)v.has(i.toLowerCase())?e[i]=D(e[i]):b.has(i.toLowerCase())&&Array.isArray(e[i])&&(e[i]=e[i].map(e=>D(e)))}}this._set("functionArguments",e)}readFunctionArguments(e){return(e=>{if(null==e)return null;e=(0,s.o8)(e);const t={};for(const i of Object.keys(e))v.has(i.toLowerCase())?t[i]=C(e[i]):b.has(i.toLowerCase())&&Array.isArray(e[i])?t[i]=e[i].map(C):t[i]=e[i];return t})(e)}writeFunctionArguments(e,t,i){const n={};for(const t of Object.keys(e))v.has(t.toLowerCase())?n[t]=S(e[t]):b.has(t.toLowerCase())&&Array.isArray(e[t])?n[t]=e[t].map(S):n[t]=S(e[t]);t[i]=n}readFunctionName(e,t){const i=t.rasterFunctionInfos;return t.name||(i?.length&&"None"!==i[0].name?i[0].name:t.rasterFunction||t.rasterFunctionDefinition?.name)}get rasterFunctionDefinition(){return this.functionDefinition?.toJSON()}set rasterFunctionDefinition(e){this.functionDefinition=T(e)}get hasClipFunction(){return this.rasterFunctionDefinition?JSON.stringify(this.rasterFunctionDefinition).includes('"type":"ClipFunction"'):JSON.stringify(this).includes('"rasterFunction":"Clip"')}clone(){return new M({functionName:this.functionName,functionArguments:(0,s.o8)(this.functionArguments),outputPixelType:this.outputPixelType,variableName:this.variableName,rasterFunctionDefinition:(0,s.o8)(this.rasterFunctionDefinition)})}};(0,n.Cg)([(0,o.MZ)({json:{type:Object,name:"rasterFunctionArguments"}})],N.prototype,"functionArguments",null),(0,n.Cg)([(0,w.w)("functionArguments")],N.prototype,"readFunctionArguments",null),(0,n.Cg)([(0,I.K)("functionArguments")],N.prototype,"writeFunctionArguments",null),(0,n.Cg)([(0,o.MZ)({json:{type:String,write:{target:"rasterFunction"}}})],N.prototype,"functionName",void 0),(0,n.Cg)([(0,w.w)("functionName",["rasterFunction","rasterFunctionInfos","rasterFunctionDefinition"])],N.prototype,"readFunctionName",null),(0,n.Cg)([(0,A.e)({C128:"c128",C64:"c64",F32:"f32",F64:"f64",S16:"s16",S32:"s32",S8:"s8",U1:"u1",U16:"u16",U2:"u2",U32:"u32",U4:"u4",U8:"u8",UNKNOWN:"unknown"},{ignoreUnknown:!1,default:"unknown"})],N.prototype,"outputPixelType",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{read:!0,write:!0}})],N.prototype,"variableName",void 0),(0,n.Cg)([(0,o.MZ)()],N.prototype,"rasterFunctionDefinition",null),(0,n.Cg)([(0,o.MZ)(j)],N.prototype,"functionDefinition",void 0),(0,n.Cg)([(0,o.MZ)()],N.prototype,"hasClipFunction",null),N=M=(0,n.Cg)([(0,o.$K)("esri.layers.support.RasterFunction")],N)},69409(e,t,i){i.d(t,{A:()=>l});var n=i(49186),r=i(97768),s=i(17676),o=i(83027),a=i(14140);class l{constructor(){this._workerThread=null,this._destroyed=!1,this._onClientConnectedHandle=null,this._symbolizerState=null,this._rasterFunctionState=null}async initialize(){const e=await(0,o.h)("RasterWorker");this._destroyed?e.close():(this._onClientConnectedHandle=(0,r.xt)(this._onClientConnectedHandle),this._workerThread=e,this._onClientConnectedHandle=e.onClientConnected(e=>{this._symbolizerState&&e.invoke("updateSymbolizer",this._symbolizerState).catch(e=>(0,s.jH)(e)),this._rasterFunctionState&&e.invoke("updateRasterFunction",this._rasterFunctionState).catch(e=>(0,s.jH)(e))}))}destroy(){this._destroyed=!0,this._onClientConnectedHandle=(0,r.xt)(this._onClientConnectedHandle),this._workerThread&&(this._workerThread.close(),this._workerThread=null)}async convertVectorFieldData(e,t){u(this._workerThread);const i=e.pixelBlock.getTransferableObject().pixelBlock,n=await this._workerThread.invoke("convertVectorFieldData",{pixelBlock:i,type:e.dataType},t);return n?new a.A(n):null}async convertPixelBlockToFeatures(e,t){u(this._workerThread);const i=await this._workerThread.invoke("convertPixelBlockToFeatures",{pixelBlock:e.pixelBlock.toJSON(),extent:e.extent.toJSON(),fieldNames:e.fieldNames,skipFactor:e.skipFactor,pixelIdOffset:e.pixelIdOffset,imageRowSize:e.imageRowSize},t),n=e.extent.spatialReference?.toJSON();return i.forEach(e=>e.geometry.spatialReference=n),i}computeStatisticsHistograms(e,t){u(this._workerThread);const{transferList:i,pixelBlock:n}=e.pixelBlock.getTransferableObject();return t?.transferPixelsToWorker&&(t={...t,transferList:i}),this._workerThread.invoke("computeStatisticsHistograms",{...e,pixelBlock:n},t)}sampleVectorFieldData(e,t){u(this._workerThread);const{transferList:i,pixelBlock:n}=e.pixelBlock.getTransferableObject();return t?.transferPixelsToWorker&&(t={...t,transferList:i}),this._workerThread.invoke("sampleVectorFieldData",{...e,pixelBlock:n},t)}async transformPixels(e,t){u(this._workerThread);const{transferList:i,pixelBlock:n}=e.pixelBlock.getTransferableObject();t?.transferPixelsToWorker&&(t={...t,transferList:i});const r=await this._workerThread.invoke("transformPixels",{...e,pixelBlock:n},t);return a.A.fromJSON(r)}async compositeBands(e,t){u(this._workerThread);const i=e.pixelBlocks.map(e=>e?.getTransferableObject()),n={pixelBlocks:i.map(e=>e?.pixelBlock)};if(t?.transferPixelsToWorker){const e=i.flatMap(e=>e?.transferList).filter(e=>null!=e);t={...t,transferList:e}}const r=await this._workerThread.invoke("compositeBands",n,t);return r?a.A.fromJSON(r):null}async decode(e,t){u(this._workerThread);const i=await this._workerThread.invoke("decode",e,{...t,transferList:[e.data]});return i?new a.A(i):null}async symbolize(e,t){u(this._workerThread);const i=e.pixelBlock?.getTransferableObject().pixelBlock,n={extent:e.extent?.toJSON(),pixelBlock:i,simpleStretchParams:e.simpleStretchParams,bandIds:e.bandIds},r=await this._workerThread.invoke("symbolize",n,t);return r?new a.A(r):null}async highlightPixels(e,t){u(this._workerThread);const i={pixelBlock:e.pixelBlock?.toJSON(),renderedPixelBlock:e.renderedPixelBlock?.toJSON(),highlightOptions:e.highlightOptions},n=await this._workerThread.invoke("highlightPixels",i,t);e.renderedPixelBlock.pixels=n.pixels,e.renderedPixelBlock.mask=n.mask,e.renderedPixelBlock.maskIsAlpha=n.maskIsAlpha}async updateSymbolizer(e,t){u(this._workerThread);const i=e?.rendererJSON?.histograms;this._symbolizerState={symbolizerJSON:e.toJSON(),histograms:i},await Promise.all(this._workerThread.broadcast("updateSymbolizer",this._symbolizerState,t))}async updateRasterFunction(e,t){u(this._workerThread),this._rasterFunctionState={rasterFunctionJSON:e.toJSON()},await Promise.all(this._workerThread.broadcast("updateRasterFunction",this._rasterFunctionState,t))}async process(e,t){u(this._workerThread);const i=await this._workerThread.invoke("process",{extent:e.extent?.toJSON(),primaryPixelSizes:e.primaryPixelSizes?.map(e=>null!=e?e.toJSON():null),primaryPixelBlocks:e.primaryPixelBlocks.map(e=>e?.getTransferableObject().pixelBlock),primaryRasterIds:e.primaryRasterIds,parameters:e.parameters},t);return i?new a.A(i):null}async stretch(e,t){if(u(this._workerThread),!e?.pixelBlock)return null;const i={srcPixelBlock:e.pixelBlock.getTransferableObject().pixelBlock,stretchParams:e.stretchParams},n=await this._workerThread.invoke("stretch",i,t);return n?new a.A(n):null}async split(e,t){if(u(this._workerThread),!e?.pixelBlock)return null;const i={srcPixelBlock:e.pixelBlock.getTransferableObject().pixelBlock,tileSize:e.tileSize,maximumPyramidLevel:e.maximumPyramidLevel,useBilinear:e.useBilinear},n=await this._workerThread.invoke("split",i,t);return n&&n.forEach((e,t)=>{n.set(t,e?a.A.fromJSON(e):null)}),n}async clipTile(e,t){if(u(this._workerThread),!e?.pixelBlock)return null;const i=e.pixelBlock.getTransferableObject().pixelBlock,n={...e,pixelBlock:i},r=await this._workerThread.invoke("clipTile",n,t);return r?a.A.fromJSON(r):null}async estimateStatisticsHistograms(e,t){if(u(this._workerThread),!e?.pixelBlock)return null;const i={srcPixelBlock:e.pixelBlock.getTransferableObject().pixelBlock};return await this._workerThread.invoke("estimateStatisticsHistograms",i,t)}async mosaicAndTransform(e,t){if(u(this._workerThread),!e?.srcPixelBlocks?.length)return{pixelBlock:null};const i=e.srcPixelBlocks.map(e=>e?.getTransferableObject()),n={...e,srcPixelBlocks:i.map(e=>e?.pixelBlock)};if(t?.transferPixelsToWorker){const e=i.flatMap(e=>e?.transferList).filter(e=>null!=e);t={...t,transferList:e}}const r=await this._workerThread.invoke("mosaicAndTransform",n,t);return{pixelBlock:r.pixelBlock?new a.A(r.pixelBlock):null,localNorthDirections:r.localNorthDirections}}async createFlowMesh(e,t){u(this._workerThread);const i={buffer:e.flowData.data.buffer,maskBuffer:e.flowData.mask.buffer,width:e.flowData.width,height:e.flowData.height},{meshType:n,simulationSettings:r,startInfo:s}=e,o=await this._workerThread.invoke("createFlowMesh",{meshType:n,flowData:i,simulationSettings:r,startInfo:s},{...t,transferList:[i.buffer,i.maskBuffer]});return{vertexData:new Float32Array(o.vertexBuffer),indexData:new Uint32Array(o.indexBuffer),pathData:new Float32Array(o.pathBuffer)}}getProjectionOffsetGrid(e,t){u(this._workerThread);const i=null!=e.datumTransformation?e.datumTransformation.steps.map(e=>({wkid:e.wkid,wkt:e.wkt,isInverse:e.isInverse})):null,n=null!=e.rasterTransform?e.rasterTransform.toJSON():null,r={projectedExtent:e.projectedExtent.toJSON(),srcBufferExtent:e.srcBufferExtent.toJSON(),pixelSize:e.pixelSize,hasWrapAround:e.hasWrapAround,spacing:e.spacing,datumTransformationSteps:i,rasterTransform:n,isAdaptive:e.isAdaptive,includeGCSGrid:e.includeGCSGrid};return this._workerThread.invoke("getProjectionOffsetGrid",r,t)}}function u(e){if(null==e)throw new n.A("raster-jobhandler:no-connection","no available worker connection")}},96184(e,t,i){i.d(t,{A:()=>m});var n=i(5482),r=i(69540),s=i(25482),o=i(91429),a=i(79677),l=i(10184),u=i(56400),c=i(36005),p=i(43937);function d(e,t){return l.A.fromJSON({value:e,unit:t})}let m=class extends((0,r.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?a.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?d(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?d(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],m.prototype,"cumulative",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"endField",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"fullTimeExtent",void 0),(0,n.Cg)([(0,c.w)("fullTimeExtent",["timeExtent"])],m.prototype,"readFullTimeExtent",null),(0,n.Cg)([(0,p.K)("fullTimeExtent")],m.prototype,"writeFullTimeExtent",null),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"hasLiveData",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"interval",void 0),(0,n.Cg)([(0,c.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],m.prototype,"readInterval",null),(0,n.Cg)([(0,p.K)("interval")],m.prototype,"writeInterval",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"startField",void 0),(0,n.Cg)([(0,o.MZ)((0,u.P6)("timeReference",!0))],m.prototype,"timeZone",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"trackIdField",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],m.prototype,"useTime",void 0),(0,n.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],m.prototype,"stops",void 0),m=(0,n.Cg)([(0,o.$K)("esri.layers.support.TimeInfo")],m)},74797(e,t,i){i.d(t,{AL:()=>M,DV:()=>g,ER:()=>r,F_:()=>a,Nd:()=>m,Oo:()=>s,dy:()=>d,eS:()=>v,h4:()=>b,jC:()=>f,nq:()=>h,rZ:()=>p,y6:()=>y});var n=i(20437);const r="Raster.",s="Raster.Dim.",o=".Max",a={servicePixelValue:"Raster.ServicePixelValue",rawServicePixelValue:"Raster.ServicePixelValue.Raw",itemPixelValue:"Raster.ItemPixelValue",magnitude:"Raster.Magnitude",direction:"Raster.Direction",variable:"Raster.Variable"},l=new Map([["quarters","Quarter"],["months","Month"],["weeks","Week of the year"],["days","Day of the year"]]);function u(e,t){return new n.A({name:e,alias:t,domain:null,editable:!1,length:50,type:"string"})}function c(e,t){return new n.A({name:e,alias:t,domain:null,editable:!1,type:"double"})}function p(e){return u(a.servicePixelValue,e??"Service Pixel Value")}function d(e){return u(a.rawServicePixelValue,e??"Raw Service Pixel Value")}function m(){return u(a.itemPixelValue,"Item Pixel Value")}function h(e){return u(`${a.servicePixelValue}.${e}`,e)}function g(e){return c(`${a.magnitude}`,"Magnitude"+(e?` (${e})`:""))}function y(){return c(`${a.direction}`,"Direction (°)")}function f(e){return e.fields.filter(e=>"oid"!==e.type&&"value"!==e.name.toLowerCase()).map(e=>{const t=e.clone();return t.name=`${r}${e.name}`,t})}function M(e){const t=new Set,i=new Set,r=new Map;return e.variables.forEach(({dimensions:e})=>{e.forEach(e=>{if(e.recurring)r.set(e.name,e.unit);else{const n="ISO8601"===e.unit?.trim()||"stdtime"===e.name?.trim()?.toLowerCase()?t:i;n.add(e.name),e.hasRanges&&n.add(`${e.name}${o}`)}})}),[u(a.variable,"Variable"),...[...t].map(e=>function(e,t){return new n.A({name:e,alias:t,domain:null,editable:!1,type:"date"})}(`${s}${e}`,I(e))),...[...i].map(e=>c(`${s}${e}`,I(e))),...[...r].map(([e,t])=>c(`${s}${e}`,w(e,t)))]}function w(e,t){return t=t?.toLowerCase(),t&&l.has(t)?l.get(t):I(e)}function I(e){const t=e.endsWith(o),i=t?e.slice(0,-4):e,n="StdTime"===i?"Standard Time":"StdZ"===i?"Standard Z":i;return t?`${n} Max`:n}function A(e,t){return t?new Date(e):e}function v(e,t,i){i?.length&&(t[a.variable]=i[0].variableName,i.forEach(({dimensionName:i,values:n})=>{if(i&&n?.length){const r=`${s}${i}`,a=e.find(({name:e})=>e===r);if(!a)return;const l="date"===a.type,u=n[0];if(Array.isArray(u)){if(t[`${s}${i}`]=A(u[0],l),null!=u[1]){const n=`${s}${i}${o}`;if(e.some(({name:e})=>e===n)){const e=A(u[1],l);t[n]=e}}}else t[`${s}${i}`]=A(u,l)}}))}function b(e,t){if(t.pixelType.startsWith("f")&&e.forEach(({format:e,fieldName:t})=>{e&&t&&/^raster\.(item|service)pixelvalue/i.test(t)&&(e.places=2)}),t.multidimensionalInfo){const i=t.multidimensionalInfo.variables.flatMap(({dimensions:e})=>e);e.forEach(({format:e,fieldName:t})=>{if(e&&t?.startsWith(s)){const n=t.slice(s.length),r=`${n}${o}`,a=i.find(({name:e})=>e===n||e===r);a?.values?.every(e=>Number.isInteger(e))&&(e.places=0)}})}}},5757(e,t,i){i.d(t,{B:()=>r,P:()=>n});const n=Symbol("PopupTemplateInstance");function r(e){return null!=e&&"object"==typeof e&&n in e}},10407(e,t,i){i.d(t,{It:()=>m,LG:()=>o,OM:()=>u,Sm:()=>c,Y:()=>a,bK:()=>l,mm:()=>d,sQ:()=>p});var n=i(91218),r=i(16930),s=i(28735);function o(e,t){if(!a(e,t)){const i=e.typeKeywords;i?i.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,d.HOSTED_SERVICE)}function u(e,t){const i=e.typeKeywords;if(i){const e=i.indexOf(t);e>-1&&i.splice(e,1)}}function c(e,t,i){i?o(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let i;if(t.length>1)for(const e of t)i?e.width>i.width&&(i=e):i=e;else i=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const i=r.A.WGS84;return await(0,n.initializeProjection)(t,i),(0,n.project)(e,i)}(i)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function m(e){const{portal:t,isOrgItem:i,itemControl:n}=e,r=t.user?.privileges;let s=!r||r.includes("features:user:edit"),o=!!i&&!!r?.includes("features:user:fullEdit");const a="update"===n||"admin"===n;return a?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:a}}}},67730(e,t,i){i.d(t,{A:()=>y});var n,r=i(5482),s=i(68197),o=i(66552),a=i(25482),l=i(90629),u=i(91429),c=i(56507),p=i(63988),d=i(30943),m=i(20061),h=i(93223);const g=new o.J({flow_from:"flow-from",flow_to:"flow-to"});let y=n=class extends((0,p.h)(a.o)){constructor(e){super(e),this.density=.8,this.color=new s.A([255,255,255,1]),this.flowSpeed=10,this.trailLength=100,this.continuous=!0,this.perturb=null,this.smoothing=0,this.flowRepresentation="flow-from",this.type="flow",this.authoringInfo=null,this.legendOptions=null,this.trailCap="butt",this.background="none"}get maxPathLength(){return this._get("maxPathLength")??200}set maxPathLength(e){this._set("maxPathLength",e)}get trailWidth(){return this._get("trailWidth")??1.5}set trailWidth(e){this._set("trailWidth",e)}get visualVariables(){return super.visualVariables}set visualVariables(e){super.visualVariables=e}clone(){const{density:e,maxPathLength:t,trailWidth:i,flowSpeed:r,trailLength:s,smoothing:o,flowRepresentation:a,trailCap:l,background:u}=this,c=this.color.clone(),p=(this.visualVariables||[]).map(e=>e.clone()),d=this.authoringInfo?.clone(),m=this.legendOptions?.clone();return new n({density:e,color:c,maxPathLength:t,trailWidth:i,flowSpeed:r,trailLength:s,trailCap:l,background:u,smoothing:o,flowRepresentation:a,visualVariables:p,authoringInfo:d,legendOptions:m})}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}};(0,r.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],y.prototype,"density",void 0),(0,r.Cg)([(0,u.MZ)({type:s.A,json:{type:[c.jz],write:{allowNull:!0}}})],y.prototype,"color",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,cast:l.cr,json:{write:!0}})],y.prototype,"maxPathLength",null),(0,r.Cg)([(0,u.MZ)({type:Number,cast:l.cr,json:{write:!0}})],y.prototype,"trailWidth",null),(0,r.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],y.prototype,"flowSpeed",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],y.prototype,"trailLength",void 0),(0,r.Cg)([(0,u.MZ)()],y.prototype,"continuous",void 0),(0,r.Cg)([(0,u.MZ)()],y.prototype,"perturb",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,cast:l.cr,json:{write:!1}})],y.prototype,"smoothing",void 0),(0,r.Cg)([(0,u.MZ)({type:g.apiValues,json:{type:g.jsonValues,read:{reader:g.read},write:{writer:g.write}}})],y.prototype,"flowRepresentation",void 0),(0,r.Cg)([(0,h.e)({flowRenderer:"flow"}),(0,u.MZ)({json:{write:{isRequired:!0}}})],y.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)({type:d.A,json:{write:!0}})],y.prototype,"authoringInfo",void 0),(0,r.Cg)([(0,u.MZ)({type:m.A,json:{write:!0}})],y.prototype,"legendOptions",void 0),(0,r.Cg)([(0,u.MZ)({type:["butt","round"],json:{write:!0}})],y.prototype,"trailCap",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{origins:{"web-scene":{write:!1}},write:!0}})],y.prototype,"background",void 0),y=n=(0,r.Cg)([(0,u.$K)("esri.renderers.FlowRenderer")],y)},80498(e,t,i){i.d(t,{A:()=>d});var n=i(5482),r=i(25482),s=i(91429),o=i(68197),a=i(56507);let l=class extends r.o{constructor(e){super(e),this.value=null,this.label=null,this.color=null}};(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:{isRequired:!0}}})],l.prototype,"value",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"label",void 0),(0,n.Cg)([(0,s.MZ)({type:o.A,json:{type:[a.jz],write:{isRequired:!0}}})],l.prototype,"color",void 0),l=(0,n.Cg)([(0,s.$K)("esri.renderers.support.ColormapInfo")],l);var u,c=i(67369),p=i(93223);let d=u=class extends r.o{constructor(e){super(e),this.colormapInfos=null,this.type="raster-colormap"}static createFromColormap(e,t){if(!e)return null;const i=5===e[0].length,n=[...e].sort((e,t)=>e[0]-t[0]).map(e=>l.fromJSON({value:e[0],color:i?e.slice(1,5):e.slice(1,4).concat([255]),label:t?t[e[0]]??"":e[0]}));return new u({colormapInfos:n})}static createFromColorramp(e){const t=(0,c.R8)(e);return u.createFromColormap(t)}clone(){return new u({colormapInfos:this.colormapInfos.map(e=>e.toJSON())})}extractColormap(){return this.colormapInfos.map(({value:e,color:t})=>[e,t.r,t.g,t.b,t.a>1?t.a:255*t.a&255]).sort((e,t)=>e[0]-t[0])}};(0,n.Cg)([(0,s.MZ)({type:[l],json:{write:{isRequired:!0}}})],d.prototype,"colormapInfos",void 0),(0,n.Cg)([(0,p.e)({rasterColormap:"raster-colormap"}),(0,s.MZ)({json:{write:{isRequired:!0}}})],d.prototype,"type",void 0),d=u=(0,n.Cg)([(0,s.$K)("esri.renderers.RasterColormapRenderer")],d)},46981(e,t,i){i.d(t,{A:()=>p});var n,r=i(5482),s=i(25482),o=i(4718),a=i(91429),l=i(95349),u=i(36005),c=i(93223);let p=n=class extends s.o{constructor(e){super(e),this.altitude=45,this.azimuth=315,this.colorRamp=null,this.hillshadeType="traditional",this.pixelSizePower=.664,this.pixelSizeFactor=.024,this.scalingType="none",this.type="raster-shaded-relief",this.zFactor=1}readColorRamp(e){return(0,l.r)(e)}clone(){return new n({hillshadeType:this.hillshadeType,altitude:this.altitude,azimuth:this.azimuth,zFactor:this.zFactor,scalingType:this.scalingType,pixelSizeFactor:this.pixelSizeFactor,pixelSizePower:this.pixelSizePower,colorRamp:(0,o.o8)(this.colorRamp)})}};(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:{isRequired:!0}}})],p.prototype,"altitude",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:{isRequired:!0}}})],p.prototype,"azimuth",void 0),(0,r.Cg)([(0,a.MZ)({types:l.g,json:{write:!0}})],p.prototype,"colorRamp",void 0),(0,r.Cg)([(0,u.w)("colorRamp")],p.prototype,"readColorRamp",null),(0,r.Cg)([(0,a.MZ)({type:["traditional","multi-directional"],json:{write:{isRequired:!0}}})],p.prototype,"hillshadeType",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"pixelSizePower",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"pixelSizeFactor",void 0),(0,r.Cg)([(0,a.MZ)({type:["none","adjusted"],json:{write:{isRequired:!0}}})],p.prototype,"scalingType",void 0),(0,r.Cg)([(0,c.e)({rasterShadedRelief:"raster-shaded-relief"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],p.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:{isRequired:!0}}})],p.prototype,"zFactor",void 0),p=n=(0,r.Cg)([(0,a.$K)("esri.renderers.RasterShadedReliefRenderer")],p)},36280(e,t,i){i.d(t,{A:()=>m});var n,r=i(5482),s=i(25482),o=i(4718),a=i(91429),l=i(70274),u=i(95349),c=i(36005),p=i(43937),d=i(93223);let m=n=class extends s.o{constructor(e){super(e),this.colorRamp=null,this.computeGamma=!1,this.dynamicRangeAdjustment=!1,this.gamma=[],this.maxPercent=null,this.minPercent=null,this.numberOfStandardDeviations=null,this.outputMax=null,this.outputMin=null,this.sigmoidStrengthLevel=null,this.histograms=null,this.customStatistics=null,this.useGamma=!1,this.stretchType="none",this.type="raster-stretch"}readColorRamp(e){if(e)return(0,u.r)(e)}readCustomStatistics(e){return e?.map(e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]}))}writeCustomStatistics(e,t,i){e?.length&&(t[i]=e.map(e=>[e.min,e.max,e.avg??0,e.stddev??1]))}readStretchType(e,t){let i=t.stretchType;return"number"==typeof i&&(i=l.x[i]),l.u.read(i)}clone(){return new n({stretchType:this.stretchType,outputMin:this.outputMin,outputMax:this.outputMax,useGamma:this.useGamma,computeGamma:this.computeGamma,customStatistics:(0,o.o8)(this.customStatistics),gamma:(0,o.o8)(this.gamma),sigmoidStrengthLevel:this.sigmoidStrengthLevel,numberOfStandardDeviations:this.numberOfStandardDeviations,minPercent:this.minPercent,maxPercent:this.maxPercent,colorRamp:(0,o.o8)(this.colorRamp),histograms:(0,o.o8)(this.histograms),dynamicRangeAdjustment:this.dynamicRangeAdjustment})}};(0,r.Cg)([(0,a.MZ)({types:u.g,json:{write:!0}})],m.prototype,"colorRamp",void 0),(0,r.Cg)([(0,c.w)("colorRamp")],m.prototype,"readColorRamp",null),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"computeGamma",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:{target:"dra"},read:{source:"dra"}}})],m.prototype,"dynamicRangeAdjustment",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],m.prototype,"gamma",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"maxPercent",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"minPercent",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"numberOfStandardDeviations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"max"},write:{target:"max"}}})],m.prototype,"outputMax",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"min"},write:{target:"min"}}})],m.prototype,"outputMin",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"sigmoidStrengthLevel",void 0),(0,r.Cg)([(0,a.MZ)()],m.prototype,"histograms",void 0),(0,r.Cg)([(0,a.MZ)({json:{type:[[Number]],name:"statistics",write:!0}})],m.prototype,"customStatistics",void 0),(0,r.Cg)([(0,c.w)("customStatistics")],m.prototype,"readCustomStatistics",null),(0,r.Cg)([(0,p.K)("customStatistics")],m.prototype,"writeCustomStatistics",null),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"useGamma",void 0),(0,r.Cg)([(0,a.MZ)({type:l.u.apiValues,json:{type:l.u.jsonValues,write:l.u.write}})],m.prototype,"stretchType",void 0),(0,r.Cg)([(0,c.w)("stretchType",["stretchType"])],m.prototype,"readStretchType",null),(0,r.Cg)([(0,d.e)({rasterStretch:"raster-stretch"})],m.prototype,"type",void 0),m=n=(0,r.Cg)([(0,a.$K)("esri.renderers.RasterStretchRenderer")],m)},18031(e,t,i){i.d(t,{A:()=>j});var n,r=i(5482),s=i(68197),o=i(52106),a=i(66552),l=i(25482),u=i(4718),c=i(91429),p=i(86738),d=i(17136),m=i(34251),h=i(86162),g=i(63988),y=i(88542),f=i(23461),M=i(48940),w=i(29266),I=i(58592),A=i(31593),v=i(53930),b=i(37531),C=i(36005),S=i(93223);const x=new Set(["esriMetersPerSecond","esriKilometersPerHour","esriKnots","esriFeetPerSecond","esriMilesPerHour"]),D=new a.J({beaufort_ft:"beaufort-ft",beaufort_km:"beaufort-km",beaufort_kn:"beaufort-kn",beaufort_m:"beaufort-m",beaufort_mi:"beaufort-mi",classified_arrow:"classified-arrow",ocean_current_kn:"ocean-current-kn",ocean_current_m:"ocean-current-m",simple_scalar:"simple-scalar",single_arrow:"single-arrow",wind_speed:"wind-barb"}),T=new a.J({flow_from:"flow-from",flow_to:"flow-to"});let j=n=class extends((0,g.h)(l.o)){constructor(e){super(e),this.attributeField="Magnitude",this.flowRepresentation="flow-from",this.rotationType="arithmetic",this.style="single-arrow",this.symbolTileSize=50,this.type="vector-field"}readInputUnit(e,t){return x.has(e)?m.MD.fromJSON(e):null}readOutputUnit(e,t){return x.has(e)?m.MD.fromJSON(e):null}get styleRenderer(){const e=this.style,t=this.attributeField,i=this._createStyleRenderer(e);return i.field=t,i}get visualVariables(){return super.visualVariables}set visualVariables(e){super.visualVariables=e}get sizeVariables(){const e=[];if(this.visualVariables)for(const t of this.visualVariables)"size"===t.type&&e.push(t);if(0===e.length){const t=new M.A({field:"Magnitude",minSize:.2*this.symbolTileSize,maxSize:.8*this.symbolTileSize});this.visualVariables?this.visualVariables.push(t):this._set("visualVariables",[t]),e.push(t)}return e}get rotationVariables(){const e=[];if(this.visualVariables)for(const t of this.visualVariables)"rotation"===t.type&&e.push(t);if(0===e.length){const t=new f.A({field:"Direction",rotationType:this.rotationType});this.visualVariables?this.visualVariables.push(t):this._set("visualVariables",[t]),e.push(t)}return e}clone(){return new n({attributeField:this.attributeField,flowRepresentation:this.flowRepresentation,rotationType:this.rotationType,symbolTileSize:this.symbolTileSize,style:this.style,visualVariables:(0,u.o8)(this.visualVariables),inputUnit:this.inputUnit,outputUnit:this.outputUnit})}async getGraphicsFromPixelData(e,t=!1,i=[]){const n=new Array,r=(0,m.KL)(this.inputUnit,this.outputUnit),s=this.rotationVariables[0]?.rotationType||this.rotationType,a=t?(0,m.FI)(e.pixelBlock,"vector-uv",s,r):(0,m.Rn)(e.pixelBlock,"vector-magdir",r);if(null==a)return n;const l=e.extent,u=null!=a.mask&&a.mask.length>0;let c=0;const h=(l.xmax-l.xmin)/a.width,g=(l.ymax-l.ymin)/a.height;for(let e=0;e<a.height;e++)for(let t=0;t<a.width;t++,c++){let r=new p.A({x:l.xmin+t*h+h/2,y:l.ymax-e*g-g/2,spatialReference:l.spatialReference});r=(await(0,d.el)(r))[0];const s=i.some(e=>e.intersects(r));if((!u||a.mask[c])&&!s){const e={Magnitude:a.pixels[0][c],Direction:a.pixels[1][c]},t=new o.A({geometry:new p.A({x:r.x,y:r.y,spatialReference:l.spatialReference}),attributes:e});t.symbol=this._getVisualVariablesAppliedSymbol(t),n.push(t)}}return n}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getClassBreakInfos(){return this.styleRenderer?.classBreakInfos}getDefaultSymbol(){return this.styleRenderer?.defaultSymbol}_getDefaultSymbol(e){return new v.A({path:"M14,32 14,18 9,23 16,3 22,23 17,18 17,32 z",outline:new A.A({width:0}),size:20,color:e||new s.A([0,92,230])})}_getVisualVariablesAppliedSymbol(e){if(!e)return;const t=this.styleRenderer?.getSymbol(e)?.clone(),i=this.sizeVariables,n=this.rotationVariables;if(i&&i.length&&this.sizeVariables.forEach(i=>(0,b.UQ)(t,(0,w.Yz)([i],e))),n&&n.length){const i="flow-to"===this.flowRepresentation==("ocean-current-kn"===this.style||"ocean-current-m"===this.style)?0:180;e.attributes.Direction=e.attributes.Direction+i,this.rotationVariables.forEach(i=>(0,b.GG)(t,(0,w.UT)(i,e),i.axis))}return t}_createStyleRenderer(e){let t={defaultSymbol:this._getDefaultSymbol(),classBreakInfos:[]};switch(e){case"single-arrow":t=this._createSingleArrowRenderer();break;case"beaufort-kn":t=this._createBeaufortKnotsRenderer();break;case"beaufort-m":t=this._createBeaufortMeterRenderer();break;case"beaufort-ft":t=this._createBeaufortFeetRenderer();break;case"beaufort-mi":t=this._createBeaufortMilesRenderer();break;case"beaufort-km":t=this._createBeaufortKilometersRenderer();break;case"ocean-current-m":t=this._createCurrentMeterRenderer();break;case"ocean-current-kn":t=this._createCurrentKnotsRenderer();break;case"simple-scalar":t=this._createSimpleScalarRenderer();break;case"wind-barb":t=this._createWindBarbsRenderer();break;case"classified-arrow":t=this._createClassifiedArrowRenderer()}return new h.A(t)}_createSingleArrowRenderer(){return{defaultSymbol:this._getDefaultSymbol()}}_createBeaufortKnotsRenderer(){return{defaultSymbol:this._getDefaultSymbol(new s.A([214,47,39])),classBreakInfos:this._getClassBreaks([0,1,3,6,10,16,21,27,33,40,47,55,63],[[40,146,199],[89,162,186],[129,179,171],[160,194,155],[191,212,138],[218,230,119],[250,250,100],[252,213,83],[252,179,102],[250,141,52],[247,110,42],[240,71,29]])}}_createBeaufortMeterRenderer(){return{defaultSymbol:this._getDefaultSymbol(new s.A([214,47,39])),classBreakInfos:this._getClassBreaks([0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7],[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortFeetRenderer(){const e=this._getDefaultSymbol(new s.A([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map(e=>3.28084*e),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortMilesRenderer(){const e=this._getDefaultSymbol(new s.A([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map(e=>2.23694*e),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortKilometersRenderer(){const e=this._getDefaultSymbol(new s.A([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map(e=>3.6*e),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createCurrentMeterRenderer(){return{defaultSymbol:this._getDefaultSymbol(new s.A([177,177,177])),classBreakInfos:this._getClassBreaks([0,.5,1,1.5,2],[[78,26,153],[179,27,26],[202,128,26],[177,177,177]])}}_createCurrentKnotsRenderer(){return{defaultSymbol:this._getDefaultSymbol(new s.A([177,177,177])),classBreakInfos:this._getClassBreaks([0,.25,.5,1,1.5,2,2.5,3,3.5,4],[[0,0,0],[0,37,100],[78,26,153],[151,0,100],[179,27,26],[177,78,26],[202,128,26],[177,179,52],[177,177,177]])}}_createClassifiedArrowRenderer(){const e=this._getDefaultSymbol(new s.A([56,168,0]));let t=[0,1e-6,3.5,7,10.5,14];if(this.sizeVariables?.length){const e=this.sizeVariables[0].minDataValue,i=this.sizeVariables[0].maxDataValue;if(null!=e&&null!=i){const n=(i-e)/5;t=Array.from({length:5},(t,i)=>e+n*i),t[5]=i}}return{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[56,168,0],[139,309,0],[255,255,0],[255,128,0],[255,0,0]])}}_createSimpleScalarRenderer(){return{defaultSymbol:I.A.fromJSON({imageData:"iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAQAAABLVLlLAAAABGdBTUEAAYagMeiWXwAAAAJiS0dEAACqjSMyAAAACXBIWXMAAABIAAAASABGyWs+AAAC3ElEQVRIx9XXvW4cVRQH8N982btpsIREJECyiCXsxX4DKh6AliqGKCBBE2SlwlHgAbBD/AKmyEYUeQ1KahPZSZQvBCkQLTHZ7KGY8Xodz4w3a1NwbzVzz/znfJ//zbStVC5q3icKak9GAs2QIdDx3PtW/S011NW3p+M5Eomh11ipTIKe6+4LQzHaQ+G+63pIZNJJQXMpljwTwj1brpgx5w1zZlyx5Z4QnllEIm2xeeSUHBf0hV0bejo1Uh09G3aFvgXk7cCJFBc9EdaRVuHJJaOdKyTV2TVhYLMduNR0Q9gxL5GaaTDw8GzejrDRBpxWoGsySRW0dttKuattwNkIlFw2YXgzOdYq4Ox49PlM+JrKd5OusjTWhBuVxUfMX/KXXZ3WEmkuqa67wspR4BTbwtKr/5u4fFgStse/T7EifFPnnYl9zPq4vmUOPrRndgoHjDti1gOPqlyXoifcRNGQzUd31lDyfHmob1Gp35vSr+P6vilcQ5Egtyd8YF/ySg9NhPM+9M/IOaHwp5+PSZayXTvCogEUwlatC3J8LLwYtcWB8EuDXQVuCkV5/B4eNHb7wGBs87LBDS+xjdVSn09wq1G8dFM+9tSUhIGneLvUdniKxKpTYljCpu3j7rVWlHj/P23v4NPGUEyeCQnexe9lJjzEQqMjJs+EzNAX6B98dBZVRmroJx95x/A/6gln18EyfCUsl+qdXb/tjvfbw+mwforpUOBz4XLVoBwAn3aWnfeH246NyBXhrq7TTN5lNSP9RkU+puUJm3W2Tsdq0nZWM07srk7MwQrZSRysjjGWBLRJNsNbfj2JMR4AbxpU1XLAb9Mxfpsq5EjMuuiR8L0JiHOOBX3hiUvOmavN0nMueSzcceFk0BK4pMqLo7vDD1Z0qrtDx7Itt4Xwm9UqbMmk8S0Dtuzb2pvOU99Z1nLTOfleNmvfZfP2pYZmPfajwosKdDBNpacNpVGGsWX9CyDI8Xq/Sj6QAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE0LTExLTEwVDAzOjE3OjU4LTA1OjAwF+tHyQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNC0xMS0xMFQwMzoxNzo1OC0wNTowMGa2/3UAAAAASUVORK5CYII=",height:20,width:20,type:"esriPMS",angle:0})}}_createWindBarbsRenderer(){const e=Array.from(Array(31).keys()).map(e=>5*e),t=[{range:"0-5",path:"M20 20 M5 20 A15 15 0 1 0 35 20 A15 15 0 1 0 5 20 M20 20 M10 20 A10 10 0 1 0 30 20 A10 10 0 1 0 10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTIwIDIwIE01IDIwIEExNSAxNSAwIDEgMCAzNSAyMCBBMTUgMTUgMCAxIDAgNSAyMCBNMjAgMjAgTTEwIDIwIEExMCAxMCAwIDEgMCAzMCAyMCBBMTAgMTAgMCAxIDAgMTAgMjAiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"5-10",path:"M25 0 L25 40 M25 35 L17.5 37.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"10-15",path:"M25 0 L25 40 L10 45 L25 40",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"15-20",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L17.5 37.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjEyIDAgMTUgNDUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"20-25",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"25-30",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L17.5 32.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIEwyNSAzNSBNMjUgMzAgTDE3LjUgMzIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"30-35",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"35-40",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"40-45",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"45-50",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"50-55",path:"M25 0 L25 40 L10 40 L25 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"55-60",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L17.5 32.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxNy41IDMyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"60-65",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"65-70",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"70-75",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"75-80",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"80-85",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"85-90",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L17.5 17.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxNy41IDE3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"90-95",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"95-100",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20 L25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCBMMjUgMTUgTTI1IDEwIEwxNy41IDEyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"100-105",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"105-110",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDE3LjUgMjcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"110-115",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"115-120",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDE3LjUgMjIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"120-125",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"125-130",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L17.5 17.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDE3LjUgMTcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"130-135",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"135-140",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDE3LjUgMTIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"140-145",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"145-150",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IE0yNSAxMCBNMjUgNSBMMTcuNSA3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="}],i=I.A.fromJSON({imageData:"iVBORw0KGgoAAAANSUhEUgAAACgAAAApCAQAAADtq6NDAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAEY0lEQVRIx5XXWWxWRRQH8N+d+31tUdGAVjGglYJABFEBY91jfDAg7piYaFTccA++uMQEFRcSXlATtxiXqMQt4G4iisYl0ai4sIQYtVFZ1KIFKdTS0l4f7vRCS5fPebozc+bM/2z/Mzcx0AgSiUxXnKfIdMn875FIhX53U2n/B/s+kKM4UINTjTBZImixxnrv+9a2iL6zEoUBXcoudrWj/OtHm3wt02lfU9Qao9OnHvIhgmww84MEl1qnxfNmGrqHxAizLdPpC6chGcAxKGGcL+30gOERf1BSpUqVslQSV8d5ReZFe8VQ9avufJn31cWwlJV7iafKStGOE/1qvfH9qUxxu8ydUdmuSKbGO8YUdT2inKLG69pM70tliktl5qIkCAJGmusDG7Vqsc0WjZa4UBlBiA5YZIcjYzB7qDtH5kaUJFLs7RGZTZ42W4PRRmtwvbdt1+wGiaS4drEtDttdZYIDNVuAclR3vA3+dI3qHqmVSy7U6Tv1MScCPvPR7nIpFlsdCy3FdTLPGhK92e2CUITjMJ9ocwKxnsZqc3O3JwMma3d6UVLnyVxB4aXemZqvPqLdpJhW3KVVbY4yYImPo6M5Urv50fj+0z/FG9YaEiENs8UtMfXUaTeTePNHlhXfA1UU+2lyD1Il3Gtt9+adfpNG7dNlpg2U/T3KYLZ2dUWFdTgp3/rQ4sK973qnInV5TIf40x3dhvrJPBiqyWUo4wAtLqhQYS71qK+QKOFRywmGK/kpikzV6WMKhh58vGWs4TIJNjiEYLIuP8Tt4/zmLyqk+AyrJSbF+Qq1DgqRUPMxyl+9q3IQhX/rMCJ6tEunriDs1oSyQZKlr9AkhT2ZIARbJfaJS1vtVbHB+Rgi0RK/y1q1BWsEEyLoz40xtGKcARPVWB1BTPO7f4LNtpkUl1aoMbViLyZo0GRjPD3BxnxjqXeLYlvhqYrzMMG3HoyJXa3JjfnGlbYYFlP7Jh3qKsKY4hQ7TY0nG+xwRL61n63mxHtqNHosigyMLmClNwvuecFnOZB88nNBDzNkzhxEZaKMBVoKapggMzvHHXBEpNSSFAvtcFRsVn0bW8LlMmcXs+c0Kne3gRR32+zg4uXwjC6zit6Wt4a8LXVfcp/MtQXHn2ynGbuCmb8GvvFeJLEE82ReU9/n6+dkq2x3buG9Wn94smcgAw631RPR7BTH+kbmHReZoEpOdEe7zWqZl40s0JWs9Hmv7hjBHqPDwsjGKVJnWWqjbdZp1KhJi0aPmxYZsIRhlttgeF+Jlke41QcOQKoqilSb6HJzSvNG3G/UoWnxwsmt+sVaYwd63dRbqdnMyCPVeyRPvpYgdavM22oGKoMUVRbJfOWMwidJ8Zzb1UvmWK/VVUXzHaTjjrVYh1897HT7xxYEVUaa5SWb/WO+YUWa9SrwvigzM8YlzlYv2GSdVCYxxlBtVnnFq5olwp5/BEk/OLsf5LUmG2+inRJdVvjZ97ZH9/zP34ug1O91pf4p+D+JYBpvrKxfbwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNC0xMS0xMFQwMzoxMjowOS0wNTowMB9ViV0AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTQtMTEtMTBUMDM6MTI6MDktMDU6MDBuCDHhAAAAAElFTkSuQmCC",height:20,width:20,type:"esriPMS",angle:0}),n=e.map((n,r)=>{let s;if(r!==e.length-1)if(0===r)s={minValue:n,maxValue:e[r+1],symbol:i};else{const i=I.A.fromJSON({type:"esriPMS",imageData:t[r].imageData,contentType:"image/svg+xml",height:32,width:32,angle:0});s={minValue:n,maxValue:e[r+1],symbol:i}}return new y.A(s)});return{defaultSymbol:i,classBreakInfos:n}}_getClassBreaks(e,t){return t.map((t,i)=>new y.A({minValue:e[i],maxValue:e[i+1],symbol:this._getDefaultSymbol(new s.A(t))}))}};(0,r.Cg)([(0,c.MZ)({type:["Magnitude"],json:{write:!0}})],j.prototype,"attributeField",void 0),(0,r.Cg)([(0,c.MZ)({type:T.apiValues,json:{type:T.jsonValues,read:{reader:T.read},write:{writer:T.write}}})],j.prototype,"flowRepresentation",void 0),(0,r.Cg)([(0,c.MZ)({type:["geographic","arithmetic"],json:{write:!0}})],j.prototype,"rotationType",void 0),(0,r.Cg)([(0,c.MZ)({type:D.apiValues,json:{type:D.jsonValues,read:{reader:D.read},write:{writer:D.write}}})],j.prototype,"style",void 0),(0,r.Cg)([(0,c.MZ)({json:{write:!0}})],j.prototype,"symbolTileSize",void 0),(0,r.Cg)([(0,c.MZ)({type:m.MD.apiValues,json:{type:m.MD.jsonValues,write:{writer:m.MD.write}}})],j.prototype,"inputUnit",void 0),(0,r.Cg)([(0,C.w)("inputUnit")],j.prototype,"readInputUnit",null),(0,r.Cg)([(0,c.MZ)({type:m.MD.apiValues,json:{type:m.MD.jsonValues,read:{reader:m.MD.read},write:{writer:m.MD.write}}})],j.prototype,"outputUnit",void 0),(0,r.Cg)([(0,C.w)("outputUnit")],j.prototype,"readOutputUnit",null),(0,r.Cg)([(0,S.e)({vectorField:"vector-field"})],j.prototype,"type",void 0),(0,r.Cg)([(0,c.MZ)({type:h.A})],j.prototype,"styleRenderer",null),(0,r.Cg)([(0,c.MZ)({type:M.A})],j.prototype,"sizeVariables",null),(0,r.Cg)([(0,c.MZ)({type:f.A})],j.prototype,"rotationVariables",null),j=n=(0,r.Cg)([(0,c.$K)("esri.renderers.VectorFieldRenderer")],j)},12711(e,t,i){i.d(t,{$P:()=>R,I8:()=>I,Mm:()=>b,PD:()=>A,ci:()=>D,fp:()=>v,m7:()=>x,w6:()=>C});var n=i(68197),r=(i(86211),i(7548)),s=i(20437),o=(i(86162),i(67730),i(80498)),a=(i(46981),i(36280)),l=i(93618),u=i(18031),c=i(30943),p=(i(88542),i(67369)),d=i(88178),m=i(94833),h=(i(2024),i(48940)),g=(i(72500),i(9760),i(84892),i(1626)),y=i(94985);const f=g.A.fromJSON({type:"multipart",colorRamps:[{algorithm:"esriCIELabAlgorithm",fromColor:[0,0,255],toColor:[0,255,255]},{algorithm:"esriCIELabAlgorithm",fromColor:[0,255,255],toColor:[255,255,0]},{algorithm:"esriCIELabAlgorithm",fromColor:[255,255,0],toColor:[255,0,0]}]}),M=g.A.fromJSON(p.vj[0]),w=new Set(["scientific","standard-time","vector-uv","vector-magdir","vector-u","vector-v","vector-magnitude","vector-direction"]);function I(e){return e.presetRenderers?.find(({method:t,value:i})=>"raster-function-template"===t?i===e.rasterFunctionName:"variable"===t&&i===e.variableName)}function A(e,t){const{attributeTable:i,colormap:r}=e;if((0,d.rd)(e)){const t=function(e){if(!(0,d.rd)(e))return null;let t;if(null!=e.statistics&&e.statistics.length&&("vector-magdir"===e.dataType||"vector-uv"===e.dataType)){const{minMagnitude:i,maxMagnitude:n}=function(e,t){let i,n;if("vector-magdir"===e)i=t[0].min,n=t[0].max;else{const e=t[0].min,r=t[0].max,s=t[1].min,o=t[1].max;i=0,n=Math.max(Math.abs(e),Math.abs(s),Math.abs(r),Math.abs(o))}return{minMagnitude:i,maxMagnitude:n}}(e.dataType,e.statistics);t=[new h.A({field:"Magnitude",minSize:10,maxSize:40,minDataValue:i,maxDataValue:n})]}const i=null!=e.multidimensionalInfo?Z.get(e.multidimensionalInfo.variables[0].unit):void 0,n=new u.A({visualVariables:t,inputUnit:i,rotationType:"geographic"});return n.visualVariables=[...n.sizeVariables,...n.rotationVariables],n}(e);if(null!=t)return t}if(t?.rasterFunctionColorRamp){const i=S(e,t);return i.colorRamp=t.rasterFunctionColorRamp,i}if(null!=r){const t=function(e){if(!(0,d.FA)(e))return null;let t;const{attributeTable:i,colormap:n}=e;if(null!=i){const e=L(i,"value"),n=N(i,null,!0);"string"===n.type&&(t={},i.features.forEach(i=>{const r=i.attributes;t[r[e.name]]=n?r[n.name]:r[e.name]}))}return o.A.createFromColormap(n,t)}(e);if(null!=t)return t}if(null!=i){const t=function(e,t){if(!(0,d.hu)(e,t))return null;const{attributeTable:i,statistics:r}=e,s=N(i,t),o=L(i,"red"),a=L(i,"green"),u=L(i,"blue"),h=new c.A,g=[],f=new Set,w=!!(o&&a&&u);if(null!=i)i.features.forEach(e=>{const t=e.attributes[s.name];if(!f.has(e.attributes[s.name])&&null!=t){f.add(t);const r=w&&("single"===o.type||"double"===o.type)&&("single"===a.type||"double"===a.type)&&("single"===u.type||"double"===u.type)&&!i.features.some(e=>e.attributes[o.name]>1||e.attributes[a.name]>1||e.attributes[u.name]>1),l=r?255:1;g.push(new m.A({value:e.attributes[s.name],label:e.attributes[s.name]+"",symbol:new y.A({style:"solid",outline:null,color:new n.A(w?[e.attributes[o.name]*l,e.attributes[a.name]*l,e.attributes[u.name]*l,1]:[0,0,0,0])})}))}});else if(r?.[0])for(let e=r[0].min;e<=r[0].max;e++)g.push(new m.A({value:e,label:e.toString(),symbol:new y.A({style:"solid",outline:null,color:new n.A([0,0,0,0])})}));if(g.sort((e,t)=>e.value&&"string"==typeof e.value.valueOf()?0:e.value>t.value?1:-1),!w){const e=(0,p.R8)(M,{numColors:g.length});g.forEach((t,i)=>t.symbol.color=new n.A(e[i].slice(1,4))),h.colorRamp=M}return new l.A({field:s.name,uniqueValueInfos:g,authoringInfo:h})}(e);if(null!=t)return t}return S(e,t)}function v(e,t=!1){const i=["raster-stretch"];return(0,d.FA)(e,t)&&i.push("raster-colormap"),(0,d.hu)(e)&&i.push("unique-value"),(0,d.xX)(e,t)&&i.push("class-breaks"),(0,d.iL)(e)&&i.push("raster-shaded-relief"),(0,d.rd)(e)&&i.push("vector-field"),(0,d.QJ)(e)&&i.push("flow"),i}function b(e){return(0,r.qg)(e)&&"Colormap"===e.rasterFunction.functionName?e.rasterFunction.colorRamp:void 0}function C(e,t,i){const n=i?.toLowerCase().replace("bicubic","cubic"),r=["nearest","bilinear","cubic","majority"].find(e=>e===n);return"Map"===t?r??"bilinear":"standard-time"===e.dataType?r??"nearest":"thematic"===e.dataType||e.attributeTable||e.colormap?"nearest"===r||"majority"===r?r:"nearest":r??"bilinear"}function S(e,t){e=x(e,t?.variableName);const{bandCount:i}=e;let{bandIds:n,stretchType:r}=t||{};n?.some(e=>e>=i)&&(n=null);let s=e.statistics,o=e.histograms;i>1?(n=n?.length?n:D(e),s=null==s?null:n?.map(e=>s[e]),o=null==o?null:n?.map(e=>o[e])):n=[0],null==r&&(r=function(e){let t="percent-clip";const{pixelType:i,dataType:n,histograms:r,statistics:s,multidimensionalInfo:o}=e,a=w.has(n)||"generic"===n&&null!=o;return"u8"!==i||"processed"!==n&&null!=r&&null!=s?"u8"===i||"elevation"===n||a?t="min-max":null!=r?t="percent-clip":null!=s&&(t="min-max"):t="none",t}(e)),t?.includeStatisticsInStretch&&("percent-clip"===r||"histogram-equalization"===r)&&e.statistics?.length&&(r="min-max");let l=!1;switch(r){case"none":l=!1;break;case"percent-clip":l=!o?.length;break;default:l=!s?.length}const{dataType:u}=e,c=1===n?.length&&w.has(u)?f:null,p=new a.A({stretchType:r,dynamicRangeAdjustment:l,colorRamp:c,outputMin:0,outputMax:255,gamma:1===n?.length?[1]:[1,1,1],useGamma:!1});return"percent-clip"===r?p.maxPercent=p.minPercent=.25:"standard-deviation"===r&&(p.numberOfStandardDeviations=2),l||null==e.multidimensionalInfo&&!t?.includeStatisticsInStretch||("percent-clip"===r?p.histograms=o:"min-max"!==r&&"standard-deviation"!==r||(p.customStatistics=s?.map(e=>({...e})))),p}function x(e,t){const{multidimensionalInfo:i}=e;if(!t||!i)return e;const n=i.variables.find(e=>e.name===t);if(!n)return e;if(e=e.clone(),n){const{statistics:t,histograms:i}=n;t?.length&&(e.statistics=t.map(e=>({min:e.min,max:e.max,avg:e.avg,stddev:e.stddev}))),i?.length&&(e.histograms=i)}return e}function D(e){const t=e.bandCount;if(1===t)return null;if(2===t)return[0];const{bandInfos:i}=e;let n;if(i.length===t){const{red:e,green:t,blue:r,nir:s}=function(e){const t={};for(let i=0;i<e.length;i++){const n=e[i].name.toLowerCase();"red"===n?t.red=i:"green"===n?t.green=i:"blue"===n?t.blue=i:"nearinfrared"!==n&&"nearinfrared_1"!==n&&"nir"!==n||(t.nir=i)}if(null==t.blue||null==t.green||null==t.red||null==t.nir){const i=j(e);if(t.blue??=T(i,480),t.green??=T(i,550),t.red??=T(i,660),null==t.nir){const n=j(e,800);t.nir=T(n,810)??T(i,810)}}return t}(i);null!=e&&null!=t&&null!=r?n=[e,t,r]:null!=s&&null!=e&&null!=t&&(n=[s,e,t])}return!n&&t>=3&&(n=[0,1,2]),n}function T(e,t,i=60){let n,r=i;for(const i of e){const e=Math.abs(i.wavelength-t);e<=r&&(r=e,n=i.index)}return n}function j(e,t){return e.map(({name:e,minWavelength:i,maxWavelength:n},r)=>/thermal/i.test(e)||/pan/i.test(e)||null!=t&&null!=n&&n<t?null:{wavelength:null!=i&&null!=n?(i+n)/2:i??n??0,index:r}).filter(e=>null!=e)}function N(e,t,i){let n;return null!=e?(n=t?e.fields.find(e=>t.toLowerCase()===e.name.toLowerCase()):function(e){let t;for(let i=0;i<e.length;i++){const n=e[i].name.toLowerCase();if("string"===e[i].type){if(n.startsWith("class")){t=e[i];break}null==t&&(n.endsWith("name")||n.endsWith("type"))&&(t=e[i])}}return t}(e.fields),n||(i||(n=e.fields.find(e=>"string"===e.type)),n||(n=L(e,"value")))):n=new s.A({name:"value"}),n}function L(e,t){return null==e?null:e.fields.find(e=>e.name.toLowerCase()===t)}const Z=new Map([["m/s","meter-per-second"],["km/h","kilometer-per-hour"],["knots","knots"],["ft/s","feet-per-second"],["mph","mile-per-hour"]]);function k(e){return{color:e.symbolLayers[0].material?.color,type:"esriSFS",style:"esriSFSSolid"}}function R(e){if("uniqueValue"===e.type){const t=e.uniqueValueInfos,i=t?.[0].symbol;return i?.symbolLayers?.length&&(e.uniqueValueInfos=t?.map(e=>({value:e.value,label:e.label,symbol:e.symbol?k(e.symbol):null}))),e}if("classBreaks"===e.type){const t=e.classBreakInfos,i=t[0].symbol;return i?.symbolLayers?.length&&(e.classBreakInfos=t.map(e=>({classMinValue:e.classMinValue,classMaxValue:e.classMaxValue,label:e.label,symbol:e.symbol?k(e.symbol):null}))),e}return e}},94359(e,t,i){i.d(t,{Gj:()=>d,LF:()=>h,uy:()=>p});var n=i(86162),r=i(67730),s=i(80498),o=i(46981),a=i(36280),l=i(93618),u=i(18031),c=i(59923);const p={key:"type",base:null,typeMap:{"class-breaks":n.A,flow:r.A,"raster-colormap":s.A,"raster-shaded-relief":o.A,"raster-stretch":a.A,"unique-value":l.A,"vector-field":u.A}},d={...p,typeMap:{...p.typeMap}};delete d.typeMap["vector-field"];const m={classBreaks:n.A,flowRenderer:r.A,rasterColormap:s.A,rasterShadedRelief:o.A,rasterStretch:a.A,uniqueValue:l.A,vectorField:u.A};function h(e,t){if(!e)return null;if("classBreaks"===e.type&&e.classificationMethod){const t=e.authoringInfo||{classificationMethod:""};t.classificationMethod=e.classificationMethod,e.authoringInfo=t}"vectorField"===e.type&&e.visualVariables&&!Array.isArray(e.visualVariables)&&(e.visualVariables=[e.visualVariables]);const i=function(e){return e&&m[e.type]||null}(e);if(i){const n=new i;return n.read(e,t),n}return t?.messages&&e&&(0,c.Yc)(t,"warning","renderer",`Renderers of type '${e.type??"unknown"} are not supported`,{definition:e}),null}},98205(e,t,i){i.d(t,{KZ:()=>a,eh:()=>o,gf:()=>s,of:()=>r,uY:()=>n});const n=Symbol("SizeVariableInstance");function r(e){return null!=e&&"object"==typeof e&&n in e}function s(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function a(e,t){const i=t||o(e),n=e.valueUnit||"unknown";return"unknown"===i?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===n?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}},92300(e,t,i){i.d(t,{V:()=>o,X:()=>s});var n=i(60408),r=i(65864);function s(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function o(e,t,i){const n=(0,r.xD)(t);return e.map(e=>{const t=n.fromJSON(e);return t.spatialReference=i,t})}},22671(e,t,i){i.d(t,{A:()=>M});var n,r=i(5482),s=i(52106),o=i(66552),a=i(25482),l=i(4718),u=i(91429),c=i(16930),p=i(60408),d=i(65864),m=i(50498),h=i(20437),g=i(36005),y=i(43937);const f=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let M=n=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,i,n){if(e)return void f.write(e,t,i,n);const{features:r}=this;if(r)for(const e of r)if(null!=e?.geometry)return void f.write(e.geometry.type,t,i,n)}readQueryGeometry(e,t){if(!e)return null;const i=!!e.spatialReference,n=(0,d.rS)(e);return n&&!i&&t.spatialReference&&(n.spatialReference=c.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:i}=this;if(i)for(const e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let i=0;i<t.features.length;i++){const n=t.features[i];if(n.geometry){const t=e?.[i];n.geometry=t?.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,i],translate:[n,r]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-n)/t),e=>Math.round((r-e)/i));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:i}=this;if(!i)return this;const{translate:[n,r],scale:[s,o]}=i;let a=null,l=null;if(this.hasZ&&null!=i?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=i;a=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=i;l=i=>null==i?i:i*t+e}const u=this._getHydrationFunction(e,e=>e*s+n,e=>r-e*o,a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,i){const n=c.A.fromJSON(t.spatialReference),r=[];for(let t=0;t<e.length;t++){const s=e[t],o=i.fromJSON(s),a=s.geometry?.spatialReference;null==o.geometry||a||(o.geometry.spatialReference=n);const l=s.aggregateGeometries,u=o.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],i=l[e],r=i?.spatialReference;null==t||r||(t.spatialReference=n)}r.push(o)}return r}_quantizePoints(e,t,i){let n,r;const s=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=i(a[1]);e===n&&o===r||(s.push([e-n,o-r]),n=e,r=o)}else n=t(a[0]),r=i(a[1]),s.push([n,r])}return s.length>0?s:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,p.Bi)(e)?e.rings:e.paths,r=[];for(let e=0,s=n.length;e<s;e++){const s=n[e],o=this._quantizePoints(s,t,i);o&&r.push(o)}return r.length>0?((0,p.Bi)(e)?e.rings=r:e.paths=r,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,i);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,n,r){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,p.Bi)(e)?e.rings:e.paths;let o,a;for(let e=0,n=s.length;e<n;e++){const n=s[e];for(let e=0,r=n.length;e<r;e++){const r=n[e];e>0?(o+=r[0],a+=r[1]):(o=r[0],a=r[1]),r[0]=t(o),r[1]=i(a)}}if(n&&r)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2]),i[3]=r(i[3])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2])}}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),r&&null!=e.mmax&&null!=e.mmin&&(e.mmax=r(e.mmax),e.mmin=r(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,a;for(let e=0,n=s.length;e<n;e++){const n=s[e];e>0?(o+=n[0],a+=n[1]):(o=n[0],a=n[1]),n[0]=t(o),n[1]=i(a)}if(n&&r)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2]),t[3]=r(t[3])}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2])}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=r(t[2])}}:null}};(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],M.prototype,"displayFieldName",void 0),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"exceededTransferLimit",void 0),(0,r.Cg)([(0,u.MZ)({type:[s.A],json:{write:!0}})],M.prototype,"features",void 0),(0,r.Cg)([(0,g.w)("features")],M.prototype,"readFeatures",null),(0,r.Cg)([(0,u.MZ)({type:[h.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,r.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:f.read}}})],M.prototype,"geometryType",void 0),(0,r.Cg)([(0,y.K)("geometryType")],M.prototype,"writeGeometryType",null),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasM",void 0),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasZ",void 0),(0,r.Cg)([(0,u.MZ)({types:m.yR,json:{write:!0}})],M.prototype,"queryGeometry",void 0),(0,r.Cg)([(0,g.w)("queryGeometry")],M.prototype,"readQueryGeometry",null),(0,r.Cg)([(0,u.MZ)({type:c.A,json:{write:!0}})],M.prototype,"spatialReference",void 0),(0,r.Cg)([(0,y.K)("spatialReference")],M.prototype,"writeSpatialReference",null),(0,r.Cg)([(0,u.MZ)({json:{write:!0}})],M.prototype,"transform",void 0),M=n=(0,r.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],M),M.prototype.toJSON.isDefaultToJSON=!0},22048(e,t,i){i.d(t,{A:()=>y});var n,r=i(5482),s=i(25482),o=i(4718),a=i(91429),l=i(86738),u=i(60408),c=i(65864),p=i(50498),d=i(85675),m=i(22796),h=i(79677),g=i(43937);let y=n=class extends s.o{constructor(e){super(e),this.geometry=null,this.mosaicRule=null,this.rasterFunction=null,this.pixelSize=null,this.raster=void 0,this.timeExtent=null}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,u.$B)(e),t[i]=e.toJSON())}clone(){return new n((0,o.o8)({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,pixelSize:this.pixelSize,raster:this.raster,timeExtent:this.timeExtent}))}};(0,r.Cg)([(0,a.MZ)({types:p.yR,json:{read:c.rS}})],y.prototype,"geometry",void 0),(0,r.Cg)([(0,g.K)("geometry")],y.prototype,"writeGeometry",null),(0,r.Cg)([(0,a.MZ)({type:d.A,json:{write:!0}})],y.prototype,"mosaicRule",void 0),(0,r.Cg)([(0,a.MZ)({type:m.A,json:{write:!0,name:"renderingRule"}})],y.prototype,"rasterFunction",void 0),(0,r.Cg)([(0,a.MZ)({type:l.A,json:{write:!0}})],y.prototype,"pixelSize",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],y.prototype,"raster",void 0),(0,r.Cg)([(0,a.MZ)({type:h.A,json:{read:{source:"time"},write:{target:"time"}}})],y.prototype,"timeExtent",void 0),y=n=(0,r.Cg)([(0,a.$K)("esri.rest.support.ImageHistogramParameters")],y)},49410(e,t,i){i.d(t,{A:()=>a});var n=i(5482),r=i(25482),s=i(91429),o=i(86738);let a=class extends r.o{constructor(e){super(e),this.attributes=null,this.location=null,this.locationId=null,this.rasterId=null,this.resolution=null,this.pixelValue=null}};(0,n.Cg)([(0,s.MZ)({json:{write:!0}})],a.prototype,"attributes",void 0),(0,n.Cg)([(0,s.MZ)({type:o.A,json:{write:!0}})],a.prototype,"location",void 0),(0,n.Cg)([(0,s.MZ)({json:{write:!0}})],a.prototype,"locationId",void 0),(0,n.Cg)([(0,s.MZ)({json:{write:!0}})],a.prototype,"rasterId",void 0),(0,n.Cg)([(0,s.MZ)({json:{write:!0}})],a.prototype,"resolution",void 0),(0,n.Cg)([(0,s.MZ)({json:{write:!0}})],a.prototype,"pixelValue",void 0),a=(0,n.Cg)([(0,s.$K)("esri.rest.support.ImageSample")],a)},34606(e,t,i){i.d(t,{A:()=>f});var n,r=i(5482),s=i(25482),o=i(4718),a=i(91429),l=i(48526),u=i(86738),c=i(60408),p=i(65864),d=i(50498),m=i(85675),h=i(13868),g=i(79677),y=i(43937);let f=n=class extends s.o{constructor(e){super(e),this.geometry=null,this.interpolation="nearest",this.mosaicRule=null,this.outFields=null,this.pixelSize=null,this.raster=void 0,this.returnFirstValueOnly=!0,this.sampleDistance=null,this.sampleCount=null,this.sliceId=null,this.timeExtent=null}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,c.$B)(e),t[i]=e.toJSON())}set locations(e){if(e?.length){const t=new l.A({spatialReference:e[0].spatialReference,points:e.map(({x:e,y:t})=>[e,t])});this._set("locations",e),this.geometry=t}}clone(){return new n((0,o.o8)({geometry:this.geometry,locations:this.locations,interpolation:this.interpolation,mosaicRule:this.mosaicRule,outFields:this.outFields,raster:this.raster,returnFirstValueOnly:this.returnFirstValueOnly,sampleDistance:this.sampleDistance,sampleCount:this.sampleCount,sliceId:this.sliceId,pixelSize:this.pixelSize,timeExtent:this.timeExtent}))}};(0,r.Cg)([(0,a.MZ)({types:d.yR,json:{read:p.rS}})],f.prototype,"geometry",void 0),(0,r.Cg)([(0,y.K)("geometry")],f.prototype,"writeGeometry",null),(0,r.Cg)([(0,a.MZ)({type:[u.A]})],f.prototype,"locations",null),(0,r.Cg)([(0,a.MZ)({type:String,json:{type:h.SZ.jsonValues,read:h.SZ.read,write:h.SZ.write}})],f.prototype,"interpolation",void 0),(0,r.Cg)([(0,a.MZ)({type:m.A,json:{write:!0}})],f.prototype,"mosaicRule",void 0),(0,r.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],f.prototype,"outFields",void 0),(0,r.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],f.prototype,"pixelSize",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"raster",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"returnFirstValueOnly",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],f.prototype,"sampleDistance",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],f.prototype,"sampleCount",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],f.prototype,"sliceId",void 0),(0,r.Cg)([(0,a.MZ)({type:g.A,json:{read:{source:"time"},write:{target:"time"}}})],f.prototype,"timeExtent",void 0),f=n=(0,r.Cg)([(0,a.$K)("esri.rest.support.ImageSampleParameters")],f)},29127(e,t,i){i.d(t,{A:()=>a});var n=i(5482),r=i(25482),s=i(91429),o=i(49410);let a=class extends r.o{constructor(e){super(e),this.samples=[]}};(0,n.Cg)([(0,s.MZ)({type:[o.A],json:{write:!0}})],a.prototype,"samples",void 0),a=(0,n.Cg)([(0,s.$K)("esri.rest.support.ImageSampleResult")],a)},30291(e,t,i){i.d(t,{tn:()=>u});var n=i(37838),r=i(30524),s=i(41227),o=i(89893),a=i(66159),l=i(68780);function u({displayField:e,editFieldsInfo:t,fields:i,objectIdField:l,title:u},m){if(!i)return null;const g=function(e,t){const i=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:i}){const n=e;return t&&(e=e.filter(e=>!t.includes(e.type))),e===n&&(e=e.slice()),!0!==i&&e.sort(p),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||h,sortDisabled:t?.sortDisabled}).map(t=>new s.A({fieldName:t.name,isEditable:(0,r.R$)(t,e),label:t.alias,format:d(t),visible:c(t,{...e,visibleFieldNames:i})}))}({editFieldsInfo:t,fields:i,objectIdField:l},m);if(!g.length)return null;const y=function(e){const t=(0,r.mB)(e),{titleBase:i}=e;return t?`${i}: {${t.trim()}}`:i??""}({titleBase:u,fields:i,displayField:e}),f=[new a.A,new o.A];return new n.A({title:y,content:f,fieldInfos:g})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,r.Bz)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:m(e)?-1:m(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function d(e){switch(e.type){case"small-integer":case"integer":return new l.A({digitSeparator:!0,places:0});case"single":case"double":return new l.A({digitSeparator:!0,places:2});case"string":return(0,r.JL)(e.name)?new l.A({digitSeparator:!0,places:0}):void 0;default:return}}function m(e){if("name"===(e.name&&e.name.toLowerCase()))return!0;const t=e.alias?.toLowerCase();return"name"===t}const h=["geometry","blob","raster","guid","xml"]}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1728],{71728(e,t,i){i.r(t),i.d(t,{default:()=>P});var a=i(5482),n=i(67996),s=i(7762),o=i(51447),r=i(49186),l=i(53966),h=i(91869),d=i(25728),c=i(17676),p=i(36708),u=i(91429),y=i(35666),g=i(5443),m=i(86738),f=i(82799),M=i(12359),L=i(4146),w=i(90708),C=i(15375);const b={MULTIPLIER:"multiplier",ABSOLUTE:"absolute-value"};var k=i(24137),T=i(62796),v=i(40736),N=i(69860),E=i(30504),D=i(63074),x=i(34287),A=i(25036),I=i(10873),_=i(8460),S=i(2555),R=i(56400);let z=class extends((0,x.q)((0,D.dM)((0,A.j)((0,d.M)(L.A))))){constructor(e){if(super(e),this.url=null,this.dataPreloadedInLocalCache=!1,this.initializationLinkChartConfig=null,this.membershipModified=!0,this._currentLinkChartConfig={layoutMode:"organic-standard"},this._graphTypeLookup=new Map,this.dataManager=null,this.knowledgeGraph=null,this.layers=new(s.A.ofType(T.A)),this.entityLinkChartDiagramLookup=new Map,this.relationshipLinkChartDiagramLookup=new Map,this.linkChartExtent=new g.A({xmin:-1e-7,ymin:-1e-7,xmax:1e-7,ymax:1e-7}),this.memberEntityTypes=null,this.memberRelationshipTypes=null,this.operationalLayerType="LinkChartLayer",this.sublayerIdsCache=new Map,this.tables=new(s.A.ofType(T.A)),this.type="link-chart",this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1,this.chronologicalAuxiliaryGraphics=null,this._originalInclusionList=e?.initializationInclusionModeDefinition,e?.dataPreloadedInLocalCache&&!e?.initializationInclusionModeDefinition)throw new r.A("knowledge-graph:linkchart-layer-constructor","If creating a link chart composite layer and configured that data is already loaded in the cache, you must specify an inclusion list so the Composite Layer knows what records belong to it");this.addHandles((0,p.wB)(()=>this.layers.concat(this.tables),(e,t)=>this._handleSublayersChange(e,t),p.OH))}normalizeCtorArgs(e){if(!e)return{};const{url:t,dataPreloadedInLocalCache:i,initializationLinkChartConfig:a}=e;let{title:n}=e;return!n&&e?.url&&(n=(0,v.$L)(e.url)),{url:t,title:n,dataPreloadedInLocalCache:i,initializationLinkChartConfig:a}}_initializeLayerProperties(e){const t=new Set;let i=[],a=[];if(e.inclusionModeDefinition&&(!e.inclusionModeDefinition.namedTypeDefinitions||e.inclusionModeDefinition.namedTypeDefinitions.size<1))throw new r.A("knowledge-graph:composite-layer-constructor","If an explicit inclusion definition is defined, at least one namedTypeDefinition must also be defined");e.inclusionModeDefinition?.generateAllSublayers?(i=e.knowledgeGraph.dataModel.entityTypes??[],a=e.knowledgeGraph.dataModel.relationshipTypes??[]):e.inclusionModeDefinition?.namedTypeDefinitions&&e.inclusionModeDefinition?.namedTypeDefinitions.size>0?e.inclusionModeDefinition?.namedTypeDefinitions.forEach((n,s)=>{const o=this._graphTypeLookup.get(s);if(!o)return l.A.getLogger(this).warn(`A named type, ${s}, was in the inclusion list that wasn't in the data model and will be removed`),void e.inclusionModeDefinition?.namedTypeDefinitions.delete(s);"relationship"===o.type?t.has(s)||(t.add(s),a.push(o)):"entity"===o.type?t.has(s)||(t.add(s),i.push(o)):(l.A.getLogger(this).warn(`A named type, ${s}, was in the inclusion list that wasn't properly modeled and will be removed`),e.inclusionModeDefinition?.namedTypeDefinitions.delete(s))}):(i=e.knowledgeGraph.dataModel.entityTypes??[],a=e.knowledgeGraph.dataModel.relationshipTypes??[]);const n=new k.P({knowledgeGraph:e.knowledgeGraph,inclusionModeDefinition:e.inclusionModeDefinition});this.knowledgeGraph=e.knowledgeGraph,this.memberEntityTypes=i,this.memberRelationshipTypes=a,this.dataManager=n}load(e){const t=async()=>{const e=[],t=[];this.loadLayerAssumingLocalCache(),this._layersLoadedFromAuthoritativeItem()||await(0,v.qN)(this),this.dataManager.inclusionModeDefinition&&(this.dataManager.inclusionModeDefinition.generateAllSublayers=!1),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.forEach(e=>{e.useAllData=!1}),await this._initializeDiagram(),this.layers.forEach(i=>{t.push(i.refreshCachedQueryEngine()),e.push(new Promise(e=>{i.on("layerview-create",()=>{e(null)})}))}),this.tables.forEach(e=>{t.push(e.refreshCachedQueryEngine())}),await Promise.all(t)};return this.addResolvingPromise(new Promise(i=>{(0,S.fetchKnowledgeGraph)(this.url).then(async a=>{a.dataModel.entityTypes?.forEach(e=>{e.name&&this._graphTypeLookup.set(e.name,e)}),a.dataModel.relationshipTypes?.forEach(e=>{e.name&&this._graphTypeLookup.set(e.name,e)});const s=this.linkChart?.linkChartProperties;6===s?.originIdOf("entitiesUrl")&&(this.membershipModified=!1,this._originalInclusionList=await n.XW.fetchAndConvertSerializedLinkChart({entitiesUrl:s?.entitiesUrl,relationshipsUrl:s?.relationshipsUrl},{signal:e?.signal}),this._alignLayersDataModelAndInclusionDefinition(a.dataModel),this.initializationLinkChartConfig={layoutSettings:s?.layoutSettings??void 0,layoutMode:(0,E.k5)(s.layoutType)}),this._initializeLayerProperties({knowledgeGraph:a,inclusionModeDefinition:this._originalInclusionList}),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.size||(this.dataManager.inclusionModeDefinition={generateAllSublayers:!1,namedTypeDefinitions:new Map},this.dataManager.knowledgeGraph.dataModel.entityTypes?.forEach(e=>{e.name&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.set(e.name,{useAllData:!0})}),this.dataManager.knowledgeGraph.dataModel.relationshipTypes?.forEach(e=>{e.name&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.set(e.name,{useAllData:!0})}));const{edit:o,fullEdit:r,updateItem:l}=await(0,v.N1)(a.serviceDefinition.serviceItemId,this.url,e);if(this._set("userHasEditingPrivileges",o),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",l),this.read({dateFieldsTimeReference:a.serviceDefinition.dateFieldsTimeReference},{origin:"service"}),this.dataPreloadedInLocalCache){const e=N.A.getInstance();for(const[t,i]of this.dataManager.inclusionModeDefinition?.namedTypeDefinitions??[])for(const a of i.members?.values()??[]){const i=e.readFromStoreById(`${t}__${a.id}`);i&&(0,h.tE)(this.dataManager.sublayerCaches,t,()=>new Map).set(a.id,i)}await t()}else{const i="geographic-organic-standard"===this.initializationLinkChartConfig?.layoutMode;this.addResolvingPromise(this.dataManager.refreshCacheContent(void 0,!1,i,!0).then(async()=>{(0,c.Te)(e),await t()}))}i(null)})})),Promise.resolve(this)}set initializationInclusionModeDefinition(e){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("initializationInclusionModeDefinition",e):l.A.getLogger(this).error("#initializationInclusionModeDefinition","initializationInclusionModeDefinition cannot be changed after the layer is loaded.")}get linkChart(){return this.parent}get sublayerCapabilities(){return(0,v.hZ)(this.knowledgeGraph)}async addRecords(e,t){let i=[];t?.cascadeAddRelationshipEndNodes&&this.dataManager.knowledgeGraph.dataModel&&(i=await(0,E.aq)(e,this.dataManager.knowledgeGraph));const a=e.concat(i).filter(e=>!this.sublayerIdsCache.get(e.typeName)?.has(e.id));a.length>0&&(this.membershipModified=!0),await this._handleNewRecords(a,t)}async createSublayerForNamedType(e){await this.load();const t=this._graphTypeLookup.get(e);if(!t)throw new r.A("knowledge-graph:missing-type","The specified type does not exist in the knowledge graph.");if(this.dataManager.sublayerCaches.has(e))throw new r.A("knowledge-graph:duplicate-type","The specified type already exists as a sublayer.");this.dataManager.sublayerCaches.set(e,new Map),(0,h.tE)(this.sublayerIdsCache,e,()=>new Set);const i=this._createSublayer(t);return"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.set(e,{useAllData:!1,members:new Map}),i.geometryType?this.layers.push(i):this.tables.push(i),await(0,v.qN)(this,[e]),this._refreshNamedTypes(),i}async removeRecords(e,{cascadeRemoveRelationships:t=!0,recalculateLayout:i=!1,overrideMembershipCheck:a=!1}={cascadeRemoveRelationships:!0,recalculateLayout:!1,overrideMembershipCheck:!1}){let n=[];for(const t of e)(a||!1===this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(t.typeName)?.useAllData&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(t.typeName)?.members?.has(t.id))&&n.push(t);if(t){const e=new Set,t=[];for(const t of n)if(this.dataManager.nodeConnectionsLookup.has(t.id))for(const i of this.dataManager.nodeConnectionsLookup.get(t.id))e.add(i);for(const i of e)if(this.dataManager.memberIdTypeLookup.has(i))for(const e of this.dataManager.memberIdTypeLookup.get(i))this.dataManager.relationshipTypeNames.has(e)&&t.push({id:i,typeName:e});n=n.concat(t)}this.dataManager.removeFromLayer(n);for(const e of n)this.sublayerIdsCache.get(e.typeName)?.delete(e.id),this.dataManager.relationshipTypeNames.has(e.typeName)?this.relationshipLinkChartDiagramLookup.delete(e.id):this.entityLinkChartDiagramLookup.delete(e.id);const s=i?void 0:this.getCurrentNodeLocations();await this._calculateLayoutWithSublayerTimeInfo(this._currentLinkChartConfig.layoutMode,{layoutSettings:this._currentLinkChartConfig.layoutSettings,lockedEntityLocations:s}),n.length>0&&(this.membershipModified=!0);const o=[];return this.layers.forEach(e=>{o.push(e.refreshCachedQueryEngine())}),await Promise.all(o),this._refreshNamedTypes(),n}async expand(e,t){let i=[];try{const a=await this.dataManager.getConnectedRecordIds(e,t?.relationshipTypeNames,t);i=a.filter(e=>!this.sublayerIdsCache.get(e.typeName)?.has(e.id)),await this._handleNewRecords(i,t),a.length>0&&(this.membershipModified=!0),(0,c.Te)(t?.signal)}catch(e){throw(0,c.zf)(e)&&i.length>0&&await this.removeRecords(i,{overrideMembershipCheck:!0}),e}return{records:i}}loadLayerAssumingLocalCache(){const e=[...this.memberRelationshipTypes,...this.memberEntityTypes];this.layers.length||0===this.originIdOf("tables")?0===this.originIdOf("layers")?this._createSublayers(e,this.layers,e=>!!e.geometryType):this._updateSublayers(e,this.layers):this.layers=new s.A,this.tables.length||0===this.originIdOf("layers")?0===this.originIdOf("tables")?this._createSublayers(e,this.tables,e=>!e.geometryType):this._updateSublayers(e,this.tables):this.tables=new s.A,this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach((e,t)=>{const i=(0,h.tE)(this.sublayerIdsCache,t,()=>new Set);e.members?.forEach(({id:e,linkChartLocation:a})=>{if(i.add(e),a){const i="coords"in a&&"lengths"in a?a:(0,w.Ux)(a);this.dataManager.relationshipTypeNames.has(t)?this.relationshipLinkChartDiagramLookup.set(e,i):this.entityLinkChartDiagramLookup.set(e,i)}})})}async calculateLinkChartLayout(e="organic-standard",t){const i=[],a=[],n=[];this.dataManager.sublayerCaches.forEach((e,t)=>{this.dataManager.entityTypeNames.has(t)?e.forEach(e=>{i.push({typeName:t,feature:e})}):this.dataManager.relationshipTypeNames.has(t)&&e.forEach(e=>{a.push({typeName:t,feature:e})})}),this.entityLinkChartDiagramLookup=new Map,this.relationshipLinkChartDiagramLookup=new Map;const s=new Map,o=new Map,d=new Map,p=new Map,u=new Uint8Array(i.length),y=new Float64Array(i.length),L=new Float64Array(i.length),b=new Float64Array(i.length),k=new Float64Array(i.length),T=new Uint32Array(a.length),v=new Uint32Array(a.length),N=new Float64Array(a.length),E=new Float64Array(a.length),D=[];let x=!1;const A=new g.A({xmin:-1e-7,ymin:-1e-7,xmax:1e-7,ymax:1e-7});let I,S="organic-standard",R=0,z=0;const P=_.i6.apply;switch(S="geographic-organic-standard"===e?"organic-standard":e,S){case"organic-standard":I=_.pM.apply;break;case"organic-community":I=_.Tu.apply;break;case"hierarchical-bottom-to-top":I=_.$C.apply;break;case"radial-root-centric":I=_.vJ.apply;break;case"tree-left-to-right":I=_.Xq.apply;break;default:I=_.Wg.apply}let F=!1;i.forEach(({typeName:i,feature:a})=>{if("chronological-mono-timeline"!==e&&"chronological-multi-timeline"!==e&&t?.lockedEntityLocations?.has(a.attributes[C.dr])){"geographic-organic-standard"===e&&this.dataManager.geographicLookup.has(i)?u[R]=2:u[R]=0;const n=t.lockedEntityLocations.get(a.attributes[C.dr]);y[R]=n.x,L[R]=n.y}else if("geographic-organic-standard"===e&&this.dataManager.geographicLookup.has(i)){u[R]=2;let e=null;const t=a.attributes[this.dataManager.geographicLookup.get(i).name],n=this.dataManager.geographicLookup.get(i)?.geometryType;switch(n){case"esriGeometryPoint":y[R]=t?.x,L[R]=t?.y;break;case"esriGeometryPolygon":{const i=t?(0,M.Ve)(t):null;e=i?m.A.fromJSON(i):null,null!=e?.x&&null!=e?.y?(y[R]=e.x,L[R]=e.y):u[R]=1;break}case"esriGeometryPolyline":case"esriGeometryMultipoint":e=t?.extent?.center,null!=e?.x&&null!=e?.y?(y[R]=e.x,L[R]=e.y):u[R]=1;break;default:u[R]=1}(null==y[R]||null==L[R]||Number.isNaN(y[R])||Number.isNaN(L[R]))&&(u[R]=1,y[R]=0,L[R]=0)}else if("chronological-mono-timeline"===e||"chronological-multi-timeline"===e){!F&&t?.lockedEntityLocations?.has(a.attributes[C.dr])&&(F=!0);const e=t?.timeInfoByTypeName?.get(i),n=e?.startField,s=n&&e?.startField?a.attributes[n]:null;b[R]=s?new Date(s).getTime():NaN;const o=e?.endField,r=o&&e?.endField?a.attributes[o]:null;k[R]=r?new Date(r).getTime():NaN,y[R]=0,L[R]=0,u[R]=1}else u[R]=1,y[R]=0,L[R]=0;t?.rootEntityIds?.has(a.attributes[C.dr])&&(u[R]|=4),p.set(a.attributes[C.dr],R),D[R]={feature:a,typeName:i},R++}),F&&l.A.getLogger(this).warn("Locked node locations are not supported for chronological layout at this time. Requested node locations were ignored");let O=!1;const Z=new Map;a.forEach(i=>{const a=i.feature.attributes[C.Cz],s=i.feature.attributes[C.KQ],o=p.get(a),r=p.get(s),l=t?.timeInfoByTypeName?.get(i.typeName),h=t?.timeInfoByTypeName?l?.startField:null,d=h?i.feature.attributes[h]:null,c=l?.endField,u=c?i.feature.attributes[c]:null;if(void 0!==o&&void 0!==r){let t=a+"-"+s;"chronological-mono-timeline"!==e&&"chronological-multi-timeline"!==e||(t=t+"-"+d+"-"+u);const l=Z.get(t),h=l?.has(i.typeName);h||(T[z]=o,v[z]=r,"chronological-mono-timeline"!==e&&"chronological-multi-timeline"!==e||(N[z]=d?new Date(d).getTime():NaN,E[z]=u?new Date(u).getTime():NaN),void 0===l?Z.set(t,new Map([[i.typeName,z]])):l.set(i.typeName,z),z++),n.push(i)}else O=!0,this.relationshipLinkChartDiagramLookup.set(a,null)}),O&&l.A.getLogger(this).warn("A relationship is a member of this layer that has either origin or destination entity nodes that are not members. The diagram geometry will be set to null");const G=this._validateOrganicLayoutSettings(e,t?.layoutSettings?.organicLayoutSettings),U=this._convertValidatedOrganicSettingsToCalculationSettings(G);await(0,_.Hh)();let B=1,H=null;if("chronological-mono-timeline"===e||"chronological-multi-timeline"===e){let i;({status:B,links:H,graphics:i}=P(()=>t?.signal?.aborted??!1,u,y,L,b,k,T.subarray(0,z),v.subarray(0,z),N.subarray(0,z),E.subarray(0,z),"chronological-multi-timeline"===e,t?.layoutSettings?.chronologicalLayoutSettings)),0===B&&(this.chronologicalAuxiliaryGraphics=i)}else({status:B,links:H}=I(()=>t?.signal?.aborted??!1,u,y,L,T.subarray(0,z),v.subarray(0,z),U.computationBudgetTime,U.idealEdgeLengthMultiplier,U.repulsionRadiusMultiplier));if((0,c.Te)(t?.signal),1===B)throw new r.A("knowledge-graph:layout-failed","Attempting to arrange the records in the specified layout failed");if(2===B)throw(0,c.NK)();for(let e=0;e<D.length;e++){if(L[e]>84.9999?L[e]=84.9999:L[e]<-84.9999&&(L[e]=-84.9999),y[e]>179.9999?y[e]=179.9999:y[e]<-179.9999&&(y[e]=-179.9999),D[e].feature.attributes[C.T1]=new m.A(y[e],L[e]),s.has(D[e].typeName)){const t=s.get(D[e].typeName);t?.set(D[e].feature.attributes[C.dr],D[e].feature)}else{const t=new Map;t.set(D[e].feature.attributes[C.dr],D[e].feature),s.set(D[e].typeName,t)}d.set(D[e].feature.attributes[C.dr],D[e].feature);const t=(0,w.Ux)(D[e].feature.attributes[C.T1]);this.entityLinkChartDiagramLookup.set(D[e].feature.attributes[C.dr],D[e].feature.attributes[C.T1]?t:null);const i=(0,h.tE)(this.dataManager.inclusionModeDefinition.namedTypeDefinitions,D[e].typeName,()=>({useAllData:!1,members:new Map}));(0,h.tE)(i.members,D[e].feature.attributes[C.dr],()=>({id:D[e].feature.attributes[C.dr],linkChartLocation:void 0})).linkChartLocation=D[e].feature.attributes[C.T1];const{x:a,y:n}=D[e].feature.attributes[C.T1];if(x)A.xmin=Math.min(A.xmin,a),A.xmax=Math.max(A.xmax,a),A.ymin=Math.min(A.ymin,n),A.ymax=Math.max(A.ymax,n);else{const e=1e-7;A.xmin=a-e,A.xmax=a+e,A.ymin=n-e,A.ymax=n+e,x=!0}}if(this.linkChartExtent.xmin=A.xmin,this.linkChartExtent.xmax=A.xmax,this.linkChartExtent.ymin=A.ymin,this.linkChartExtent.ymax=A.ymax,!H)throw new r.A("knowledge-graph:layout-failed","Attempting to retrieve link geometry from diagram engine failed");const j=new Map,Q=new Map,$=new Map,q=new Set;for(let i=0;i<n.length;i++){const a=[],s=n[i],r=s.feature.attributes[C.Cz],c=s.feature.attributes[C.KQ];let u=r+"-"+c;if("chronological-mono-timeline"===e||"chronological-multi-timeline"===e){const e=t?.timeInfoByTypeName?.get(s.typeName),i=t?.timeInfoByTypeName?e?.startField:null,a=i?s.feature.attributes[i]:null,n=e?.endField;u+="-"+a+"-"+(n?s.feature.attributes[n]:null)}const y=Z.get(u).get(s.typeName),g=0===y?0:H?.vertexEndIndex[y-1];if(!q.has(y)){if(q.add(y),2===H.types[y]){const e=[H.vertices[2*g],H.vertices[2*g+1]],t=[H.vertices[2*(g+1)],H.vertices[2*(g+1)+1]],i=[.5*(e[0]+t[0]),.5*(e[1]+t[1])],n=[i[0]-e[0],i[1]-e[1]],s=[i[0]+n[1],i[1]-n[0]],o=[i[0]-n[1],i[1]+n[0]];a.push(e),a.push(s),a.push(t),a.push(o),a.push(e)}else{if(0!==H.types[y]){l.A.getLogger(this).warn("A relationship generated an unsupported link geometry type. It will not be rendered");continue}for(let e=g;e<H.vertexEndIndex[y];e++)a.push([H.vertices[2*e],H.vertices[2*e+1]])}if("chronological-mono-timeline"!==e&&"chronological-multi-timeline"!==e){const e=D[p.get(r)]?.feature.attributes[C.T1],t=D[p.get(c)]?.feature.attributes[C.T1];a[0][0]===e.x&&a[0][1]===e.y||(a[0]=[e.x,e.y]),a[a.length-1][0]===t.x&&a[a.length-1][1]===t.y||(a[a.length-1]=[t.x,t.y])}for(let e=1;e<a.length-1;e++)a[e][1]>85.5?a[e][1]=85.5:a[e][1]<-85.5&&(a[e][1]=-85.5),a[e][0]>179.9999?a[e][0]=179.9999:a[e][0]<-179.9999&&(a[e][0]=-179.9999);j.has(u)?j.get(u).push(a):j.set(u,[a])}const m=j.get(u);Q.has(u)||(Q.set(u,new Map),$.set(u,new Map));const M=Q.get(u),L=$.get(u);M.has(s.typeName)||(M.set(s.typeName,m.shift()),L.set(s.typeName,0));const b=M.get(s.typeName);L.set(s.typeName,L.get(s.typeName)+1);const k=new f.A({paths:[b]});if(s.feature.attributes[C.T1]=k,o.has(s.typeName)){const e=o.get(s.typeName);e?.set(s.feature.attributes[C.dr],s.feature)}else{const e=new Map;e.set(s.feature.attributes[C.dr],s.feature),o.set(s.typeName,e)}d.set(s.feature.attributes[C.dr],s.feature);const T=(0,w.Ux)(s.feature.attributes[C.T1]);this.relationshipLinkChartDiagramLookup.set(s.feature.attributes[C.dr],s.feature.attributes[C.T1]?T:null);const v=(0,h.tE)(this.dataManager.inclusionModeDefinition.namedTypeDefinitions,s.typeName,()=>({useAllData:!1,members:new Map}));(0,h.tE)(v.members,s.feature.attributes[C.dr],()=>({id:s.feature.attributes[C.dr],linkChartLocation:void 0})).linkChartLocation=T}for(const e of n)e.feature.attributes[C.M1]=$.get(e.feature.attributes[C.Cz]+"-"+e.feature.attributes[C.KQ])?.get(e.typeName)??null;return this._currentLinkChartConfig={layoutMode:e,layoutSettings:t?.layoutSettings?.clone()},{nodes:s,links:o,idMap:d}}async applyNewLinkChartLayout(e="organic-standard",t){let{lockedNodeLocations:i,lockedEntityLocations:a,...n}=t??{};!a&&i?((0,o.io)(l.A.getLogger(this),"lockedNodeLocations is deprecated in 5.0. Use lockedEntityLocations instead.",{replacement:"Use lockedEntityLocations instead.",version:"5.0"}),a=i):a&&i&&(0,o.io)(l.A.getLogger(this),"Both lockedNodeLocations (deprecated in 5.0) and lockedEntityLocations are defined. Use lockedEntityLocations only instead.",{replacement:"Use lockedEntityLocations instead.",version:"5.0"});const s=[];await this._calculateLayoutWithSublayerTimeInfo(e,{...n,lockedEntityLocations:a}),this.layers.forEach(e=>{s.push(e.refreshCachedQueryEngine())}),this.membershipModified=!0,await Promise.all(s),this._refreshNamedTypes()}getCurrentNodeLocations(){const e=new Map;for(const[t,i]of this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.entries()??[])this.dataManager.relationshipTypeNames.has(t)||i?.members?.forEach(t=>{const i=t.linkChartLocation;let a;const n=t.id;i&&(a="x"in i?{x:i.x,y:i.y}:{x:i.coords[0],y:i.coords[1]},e.set(n,new m.A({x:a.x,y:a.y})))});return e}async refreshLinkChartCache(e){await this.dataManager.refreshCacheContent(e);const t=[];this.layers.forEach(e=>{t.push(e.refreshCachedQueryEngine())}),await Promise.all(t),this._refreshNamedTypes()}async connectBetweenEntities(e,t){if(!e.length)return{records:[]};let i=[];try{let a=[];for(const e of this.dataManager.relationshipTypeNames){const t=this.sublayerIdsCache.get(e);t&&(a=a.concat(Array.from(t.keys())))}i=await this.dataManager.getRelationshipsBetweenNodes(e,a,t),await this._handleNewRecords(i,t),(0,c.Te)(t)}catch(e){throw(0,c.zf)(e)&&this.removeRecords(i),e}return{records:i}}async connectFromEntities(e,t){if(!e.length)return{records:[]};let i=[];try{let a=[];for(const e of this.dataManager.relationshipTypeNames){const t=this.sublayerIdsCache.get(e);t&&(a=a.concat(Array.from(t.keys())))}let n=[];for(const e of this.dataManager.entityTypeNames){const t=this.sublayerIdsCache.get(e);t&&(n=n.concat(Array.from(t)))}i=await this.dataManager.getRelationshipsFromNodes(e,n,a,t),await this._handleNewRecords(i,t),i.length>0&&(this.membershipModified=!0),(0,c.Te)(t)}catch(e){throw(0,c.zf)(e)&&this.removeRecords(i),e}return{records:i}}getCurrentLayout(){return this._currentLinkChartConfig.layoutMode}async _calculateLayoutWithSublayerTimeInfo(e="organic-standard",t){const i=new Map;this.layers.forEach(e=>{i.set(e.objectType.name,e.timeInfo)}),await this.calculateLinkChartLayout(e,{timeInfoByTypeName:i,...t}),this.linkChart?.handleChronologicalOverlay()}async _handleNewRecords(e,t){const i=new Set,a=[],n=this.layers.concat(this.tables);for(const t of e)this._graphTypeLookup.has(t.typeName)&&(!1===n.some(e=>e.objectType.name===t.typeName)&&(this.dataManager.sublayerCaches.set(t.typeName,new Map),i.add(t.typeName)),(0,h.tE)(this.sublayerIdsCache,t.typeName,()=>new Set).add(t.id),a.push(t));this.dataManager.addToLayer(a);for(const e of i){const t=this._graphTypeLookup.get(e);if(t){const i=this._createSublayer(t);"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e),i.geometryType?this.layers.push(i):this.tables.push(i)}}await(0,v.qN)(this,Array.from(i),t),await this.dataManager.refreshCacheContent(e.map(e=>e.id),void 0,void 0,void 0,t);const s={layoutSettings:this._currentLinkChartConfig.layoutSettings,lockedEntityLocations:new Map};for(const[e,t]of this.entityLinkChartDiagramLookup.entries())t&&s.lockedEntityLocations.set(e,new m.A(t.coords[0],t.coords[1]));await this.applyNewLinkChartLayout(this._currentLinkChartConfig.layoutMode,s)}_createSublayers(e,t,i){e.forEach(e=>{const a=this._createSublayer(e);i(a)&&t.push(a),this._updateSublayerCaches(e)})}_updateSublayers(e,t){t.forEach(t=>{t.parentCompositeLayer=this;const i=e.find(e=>e.type===t.graphType&&e.name===t.graphTypeName);i&&(t.objectType=i,t.read({title:i.name},{origin:"service"}),this._updateSublayerCaches(i))})}_updateSublayerCaches({name:e}){if(!e)return;const t=this.dataManager.sublayerCaches;t.has(e)||t.set(e,new Map)}_layersLoadedFromAuthoritativeItem(){const e=this.originIdOf("layers");return e>=3&&e<7}async _initializeDiagram(){this.initializationLinkChartConfig?this.initializationLinkChartConfig.doNotRecalculateLayout?(this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach((e,t)=>{e?.members?.forEach(e=>{const i=e.linkChartLocation;let a;const n=e.id;if(!i)return;a="x"in i?{x:i.x,y:i.y}:{x:i.coords[0],y:i.coords[1]};const s=(0,w.Ux)(a);this.dataManager.relationshipTypeNames.has(t)?this.relationshipLinkChartDiagramLookup.set(n,s):this.entityLinkChartDiagramLookup.set(n,s),this.linkChartExtent.xmin>a.x&&(this.linkChartExtent.xmin=a.x),this.linkChartExtent.xmax<a.x&&(this.linkChartExtent.xmax=a.x),this.linkChartExtent.ymin>a.y&&(this.linkChartExtent.ymin=a.y),this.linkChartExtent.ymax<a.y&&(this.linkChartExtent.ymax=a.y)})}),this.memberRelationshipTypes.forEach(e=>{e.name&&this.dataManager.sublayerCaches.get(e.name)?.forEach(e=>{const t=this.relationshipLinkChartDiagramLookup.get(e.attributes[C.Cz]),i=this.relationshipLinkChartDiagramLookup.get(e.attributes[C.KQ]);if(t&&i){const a=(0,w.Ux)(new f.A({paths:[[[t.coords[0],t.coords[1]],[i.coords[0],i.coords[1]]]]}));this.relationshipLinkChartDiagramLookup.set(e.attributes[C.dr],a)}else this.relationshipLinkChartDiagramLookup.set(e.attributes[C.dr],null)})})):await this._calculateLayoutWithSublayerTimeInfo(this.initializationLinkChartConfig.layoutMode,{lockedEntityLocations:this.getCurrentNodeLocations(),...this.initializationLinkChartConfig}):await this._calculateLayoutWithSublayerTimeInfo("organic-standard",{lockedEntityLocations:this.getCurrentNodeLocations()})}_refreshNamedTypes(){for(const e of this.layers)e.emit("refresh",{dataChanged:!0});for(const e of this.tables)e.emit("refresh",{dataChanged:!0})}_validateOrganicLayoutSettings(e,t){const i=e=>"number"==typeof e&&!isNaN(e),a=e=>i(e)&&e>=0,n={};if(!new Set(["organic-standard","organic-community","geographic-organic-standard","chronological-multi-timeline","chronological-mono-timeline"]).has(e)||!t)return n;const{computationBudgetTime:s,autoRepulsionRadius:o,repulsionRadiusMultiplier:r,absoluteIdealEdgeLength:h,multiplicativeIdealEdgeLength:d,idealEdgeLengthType:c}=t;return(e=>i(e)&&e>=1)(s)?n.computationBudgetTime=s:s&&l.A.getLogger(this).warn("Invalid layout computationBudgetTime setting, will revert to default setting"),n.autoRepulsionRadius=o,!o&&(e=>i(e)&&e>=1)(r)?n.repulsionRadiusMultiplier=r:o||(n.autoRepulsionRadius=!0,l.A.getLogger(this).warn("Invalid layout repulsionRadiusMultiplier setting, will revert to default setting")),"geographic-organic-standard"===e&&((e=>Object.values(b).includes(e))(c)?n.idealEdgeLengthType=c:void 0!==c&&l.A.getLogger(this).warn('Invalid layout idealEdgeLengthType setting, will revert to "multiplier" setting'),"absolute-value"===c&&a(h)?n.absoluteIdealEdgeLength=h:"absolute-value"===c&&void 0!==h?l.A.getLogger(this).warn("Invalid layout idealEdgeLength setting, will revert to default setting"):"multiplier"===c&&a(d)?n.multiplicativeIdealEdgeLength=d:"multiplier"===c&&void 0!==d&&l.A.getLogger(this).warn("Invalid layout idealEdgeLength setting, will revert to default setting")),n}_convertValidatedOrganicSettingsToCalculationSettings(e){let t=e.idealEdgeLengthType===b.ABSOLUTE?e.absoluteIdealEdgeLength:e.multiplicativeIdealEdgeLength;return e.idealEdgeLengthType===b.ABSOLUTE&&(void 0===t?t=-1:t*=-1),{computationBudgetTime:e.computationBudgetTime??void 0,repulsionRadiusMultiplier:e.repulsionRadiusMultiplier&&!e.autoRepulsionRadius?e.repulsionRadiusMultiplier:void 0,idealEdgeLengthMultiplier:t}}_createSublayer(e){return new T.A({objectType:e,parentCompositeLayer:this,graphType:e.type})}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null}),this.removeHandles("sublayers-owner")),e&&(e.forEach(e=>{e.parent=this}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this}),e.on("after-remove",({item:e})=>{e.parent=null})],"sublayers-owner"))}_alignLayersDataModelAndInclusionDefinition(e){const t=new Set((e.entityTypes??[]).map(e=>e.name).concat((e.relationshipTypes??[]).map(e=>e.name))),i=new Set((e.entityTypes??[]).map(e=>e.name)),a=new Set((e.relationshipTypes??[]).map(e=>e.name));if(this.layers){for(const e of this.layers)!e.graphType&&t.has(e.graphTypeName)&&(e.graphType=i.has(e.graphTypeName)?"entity":"relationship");const e=this.layers.filter(e=>t.has(e.graphTypeName)&&("entity"===e.graphType?i.has(e.graphTypeName):a.has(e.graphTypeName)));this.setAtOrigin("layers",e,(0,y.OL)(this.originIdOf("layers")))}else this.layers=new s.A;if(this.layers&&this._originalInclusionList){const e=new Set(this._originalInclusionList.namedTypeDefinitions.keys()),t=this.tables?.map(e=>e.graphTypeName)??[],i=this.layers.map(e=>e.graphTypeName).concat(t);for(const t of i)e.has(t)||this._originalInclusionList.namedTypeDefinitions.set(t,{useAllData:!1,members:new Map});const a=[];for(const e of this._originalInclusionList.namedTypeDefinitions.keys())i.includes(e)||(l.A.getLogger(this).warn(`A named type, ${e}, was in the serialized feature collection but did not have a sublayer config in the item, so will be removed`),a.push(e));for(const e of a)this._originalInclusionList.namedTypeDefinitions.delete(e)}}};(0,a.Cg)([(0,u.MZ)(I.OZ)],z.prototype,"url",void 0),(0,a.Cg)([(0,u.MZ)()],z.prototype,"dataPreloadedInLocalCache",void 0),(0,a.Cg)([(0,u.MZ)()],z.prototype,"initializationLinkChartConfig",void 0),(0,a.Cg)([(0,u.MZ)()],z.prototype,"membershipModified",void 0),(0,a.Cg)([(0,u.MZ)()],z.prototype,"dataManager",void 0),(0,a.Cg)([(0,u.MZ)()],z.prototype,"initializationInclusionModeDefinition",null),(0,a.Cg)([(0,u.MZ)()],z.prototype,"knowledgeGraph",void 0),(0,a.Cg)([(0,u.MZ)({type:s.A.ofType(T.A),json:{write:{ignoreOrigin:!0}}})],z.prototype,"layers",void 0),(0,a.Cg)([(0,u.MZ)({readOnly:!0})],z.prototype,"linkChart",null),(0,a.Cg)([(0,u.MZ)()],z.prototype,"entityLinkChartDiagramLookup",void 0),(0,a.Cg)([(0,u.MZ)()],z.prototype,"relationshipLinkChartDiagramLookup",void 0),(0,a.Cg)([(0,u.MZ)()],z.prototype,"linkChartExtent",void 0),(0,a.Cg)([(0,u.MZ)()],z.prototype,"memberEntityTypes",void 0),(0,a.Cg)([(0,u.MZ)()],z.prototype,"memberRelationshipTypes",void 0),(0,a.Cg)([(0,u.MZ)({type:["LinkChartLayer"]})],z.prototype,"operationalLayerType",void 0),(0,a.Cg)([(0,u.MZ)()],z.prototype,"sublayerCapabilities",null),(0,a.Cg)([(0,u.MZ)()],z.prototype,"sublayerIdsCache",void 0),(0,a.Cg)([(0,u.MZ)({type:s.A.ofType(T.A),json:{write:{ignoreOrigin:!0}}})],z.prototype,"tables",void 0),(0,a.Cg)([(0,u.MZ)({json:{read:!1}})],z.prototype,"type",void 0),(0,a.Cg)([(0,u.MZ)({readOnly:!0})],z.prototype,"userHasEditingPrivileges",void 0),(0,a.Cg)([(0,u.MZ)({readOnly:!0})],z.prototype,"userHasFullEditingPrivileges",void 0),(0,a.Cg)([(0,u.MZ)({readOnly:!0})],z.prototype,"userHasUpdateItemPrivileges",void 0),(0,a.Cg)([(0,u.MZ)({json:{read:!1}})],z.prototype,"chronologicalAuxiliaryGraphics",void 0),(0,a.Cg)([(0,u.MZ)((0,R.P6)("dateFieldsTimeReference"))],z.prototype,"dateFieldsTimeZone",void 0),z=(0,a.Cg)([(0,u.$K)("esri.layers.LinkChartLayer")],z);const P=z}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2288],{92288(e,n,t){t.r(n),t.d(n,{registerFunctions:()=>T});var r=t(92602),o=t(47609),i=t(66395),a=t(85935),s=t(78878),l=t(80672),u=t(91075),c=t(91218),f=t(16930),p=t(28735),d=t(80812),h=t(11254),g=t(56507),m=t(60408),y=t(2272),w=t(92300),R=t(5482),v=t(25482),M=t(91429),A=t(21325);let S=class extends v.o{constructor(e){super(e),this.geometries=[],this.outSpatialReference=null,this.transformation=null,this.transformForward=null}toJSON(){const e=this.geometries.map(e=>e.toJSON()),n=this.geometries[0],t={};return t.outSR=(0,A.YX)(this.outSpatialReference),t.inSR=(0,A.YX)(n.spatialReference),t.geometries=JSON.stringify({geometryType:(0,m.$B)(n),geometries:e}),this.transformation&&(t.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(t.transformForward=this.transformForward),t}};(0,R.Cg)([(0,M.MZ)()],S.prototype,"geometries",void 0),(0,R.Cg)([(0,M.MZ)({type:f.A,json:{read:{source:"outSR"}}})],S.prototype,"outSpatialReference",void 0),(0,R.Cg)([(0,M.MZ)()],S.prototype,"transformation",void 0),(0,R.Cg)([(0,M.MZ)()],S.prototype,"transformForward",void 0),S=(0,R.Cg)([(0,M.$K)("esri.rest.support.ProjectParameters")],S);const j=(0,g.dp)(S);var x=t(25927),C=t(42538),I=t(40662),k=t(42095),P=t(23150),O=t(54218);let G=null;function b(e,n,t,r,o){if(null===e)return null;if((0,O.Kg)(e)||(0,O.Et)(e))return e;if((0,s.e)(e))return e.toJSDate();if((0,s.e)(e))return e.toJSDate();if((0,s.f)(e))return e.toStorageFormat();if((0,s.g)(e))return e.toStorageString();if((0,s.n)(e)){const i={};for(const a of e.keys())i[a]=b(e.field(a),n,t,r,o),i[a]instanceof u.A&&o.push({container:i,indexer:a});return i}if((0,O.cy)(e)){const i=e.map(e=>b(e,n,t,r,o));for(let e=0;e<i.length;e++)i[e]instanceof u.A&&o.push({container:i,indexer:e});return i}return(0,s.h)(e)?e.spatialReference.isWGS84?e:e.spatialReference.isWebMercator&&n?(0,p.ci)(e):e:void 0}function Z(e,n){if(!e)return null;const t={};for(const r in e)t[r]=$(e[r],n);return t}function $(e,n){return null===e?null:(0,O.cy)(e)?e.map(e=>$(e,n)):e instanceof x.A?{graphTypeName:e.typeName,id:e.id,graphType:"entity",properties:Z(e.properties,n)}:e instanceof I.A?{graphType:"object",properties:Z(e.properties,n)}:e instanceof P.A?{graphTypeName:e.typeName,id:e.id,graphType:"relationship",originId:e.originId??null,destinationId:e.destinationId??null,properties:Z(e.properties,n)}:e instanceof k.A?{graphType:"path",path:e.path?e.path.map(e=>$(e,n)):null}:(0,s.h)(e)?function(e,n){if(!e)return e;if(e.spatialReference.isWGS84&&n.spatialReference.isWebMercator)return(0,p.Gh)(e);if(e.spatialReference.equals(n.spatialReference))return e;throw new a.D$(n,"WrongSpatialReference",null)}(e,n):(0,O.Kg)(e)||(0,O.Et)(e)||(0,O.$P)(e)?e:null}function T(e){"async"===e.mode&&(e.functions.knowledgegraphbyportalitem=function(n,r){return e.standardFunctionAsync(n,r,(e,i,u)=>{if((0,s.B)(u,2,2,n,r),!(u[0]instanceof o.A))throw new a.D$(n,"PortalRequired",r);const c=(0,s.s)(u[1]);return async function(e,n){const r=new d.default({portal:e,id:n});return await r.load(),null===G&&(G=await Promise.all([t.e(2869),t.e(4050),t.e(3910),t.e(217),t.e(2555),t.e(8340)]).then(t.bind(t,2555))),await G.fetchKnowledgeGraph(r.url)}((0,l.RI)(n,u[0]),c)})},e.signatures.push({name:"knowledgegraphbyportalitem",min:2,max:2}),e.functions.querygraph=function(n,o){return e.standardFunctionAsync(n,o,async(e,l,u)=>{(0,s.B)(u,2,4,n,o);const p=u[0];if(!(0,s.o)(p))throw new a.D$(n,"InvalidParameter",o);const d=u[1];if(!(0,O.Kg)(d))throw new a.D$(n,"InvalidParameter",o);null===G&&(G=await Promise.all([t.e(2869),t.e(4050),t.e(3910),t.e(217),t.e(2555),t.e(8340)]).then(t.bind(t,2555)));let g=null;const R=(0,s.J)(u[2],null);if(!(R instanceof i.A||null===R))throw new a.D$(n,"InvalidParameter",o);if(R){let e=[];g=b(R,!0,!1,n,e),e=e.filter(e=>!e.container[e.indexer].spatialReference.isWGS84),e.length>0&&await async function(e){const n=r.A.geometryServiceUrl??"";if(!n){(0,c.isLoaded)()||await(0,c.load)();for(const n of e)n.container[n.indexer]=(0,c.project)(n.container[n.indexer],f.A.WGS84);return}const t=e.map(e=>e.container[e.indexer]),o=new S({geometries:t,outSpatialReference:f.A.WGS84}),i=await async function(e,n){n=j(n);const t=(0,y.Dl)(e),r={...t.query,f:"json",...n.toJSON()},o=n.outSpatialReference,i=(0,m.$B)(n.geometries[0]),a=(0,y.jV)(r,void 0);return(0,h.A)(t.path+"/project",a).then(({data:{geometries:e}})=>(0,w.V)(e,i,o))}(n,o);for(let n=0;n<i.length;n++){const t=e[n];t.container[t.indexer]=i[n]}}(e)}const v=(0,s.J)(u[3],!1),M=new C.A({openCypherQuery:d,bindParameters:g,provenanceBehavior:v?"include":"exclude"});(p?.serviceDefinition?.currentVersion??11.3)>11.2&&(M.outputSpatialReference=n.spatialReference);const A=(await G.executeQueryStreaming(p,M)).resultRowsStream.getReader(),x=[];try{for(;;){const{done:e,value:t}=await A.read();if(e)break;if((0,O.cy)(t))for(const e of t)x.push($(e,n));else{const e=[];for(const r of t)e.push($(t[r],n));x.push(e)}}}catch(e){throw e}return i.A.convertJsonToArcade(x,(0,s.K)(n),!1,!0)})},e.signatures.push({name:"querygraph",min:2,max:4}))}},69540(e,n,t){t.d(n,{OU:()=>c,Pw:()=>f});var r=t(5482),o=t(69622),i=(t(44208),t(4718)),a=(t(53966),t(97768)),s=t(88620),l=t(64108);const u=Symbol("ClonableMixin"),c=e=>{var n;const t=e;let o=class extends t{constructor(){super(...arguments),this[n]=!0}static{n=u}clone(e){const n=(0,s.oY)(this);(0,a.Lw)(n,"unable to clone instance of non-accessor class");const t=n.metadata,r=n.store,o={},l=new Map;for(const n in t){const a=t[n],s=r?.originOf(n),u=a.clonable;if(a.readOnly||!1===u||7!==s&&0!==s&&5!==s&&4!==s)continue;const c=this[n];let f=null;if("function"==typeof u)f=u(c,e);else if("reference"===u)f=c;else if(f=(0,i.TU)(c,e),null!=c&&null==f)continue;0===s?l.set(n,f):o[n]=f}const u=new(0,Object.getPrototypeOf(this).constructor)(o);if(l.size){const e=(0,s.oY)(u)?.store;if(e)for(const[n,t]of l)e.set(n,t,0)}return u}};return o=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],o),o},f=c(o.A)},159(e,n,t){t.d(n,{A:()=>u});var r,o=t(5482),i=t(69540),a=t(25482),s=t(91429),l=t(99157);let u=r=class extends((0,i.OU)(a.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new r;for(let n=this.steps.length-1;n>=0;n--){const t=this.steps[n];e.steps.push(t.getInverse())}return e}};(0,o.Cg)([(0,s.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=r=(0,o.Cg)([(0,s.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,n,t){t.d(n,{A:()=>l});var r,o=t(5482),i=t(69540),a=t(25482),s=t(91429);let l=r=class extends((0,i.OU)(a.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,o.Cg)([(0,s.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,n,t)=>{n[t]=!e}}})],l.prototype,"isInverse",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=r=(0,o.Cg)([(0,s.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(e,n,t){t.r(n),t.d(n,{projectBuffer:()=>o});var r=t(49208);function o(e,n,t,o,i,a,s=Math.floor(e.length/3)){const l=(0,r.jd)(n,i);if(null==l)return!1;if(l===r.pO){if(e===o&&t===a)return!0;const n=t+3*s;for(let r=t,i=a;r<n;r++,i++)o[i]=e[r]??0;return!0}const u=t+3*s;for(let n=t,r=a;n<u;n+=3,r+=3)l(e,n,o,r);return!0}},49208(e,n,t){t.d(n,{Tp:()=>f,jd:()=>c,pO:()=>d,w5:()=>u});var r=t(34727),o=t(86211),i=t(73941),a=t(79258),s=t(34403),l=t(21325);const u={2:{5:d,7:null,9:null,10:d,1:M,6:null,8:null,0:null,3:g,11:m,2:d,4:C},5:{5:d,7:null,9:null,10:d,1:M,6:null,8:null,0:null,3:g,11:m,2:d,4:C},7:{5:null,7:d,9:null,10:d,1:null,6:v,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:d,10:d,1:null,6:null,8:R,0:null,3:null,11:null,2:null,4:null},3:{5:h,7:null,9:null,10:h,1:function(e,n,t,r){const o=e[n]/b,i=G-2*Math.atan(Math.exp(-e[n+1]/b)),a=b+(e[n+2]??0),s=Math.cos(i)*a;t[r]=Math.cos(o)*s,t[r+1]=Math.sin(o)*s,t[r+2]=Math.sin(i)*a},6:null,8:null,0:null,3:d,11:function(e,n,t,r){h(e,n,t,r),m(t,r,t,r)},2:h,4:function(e,n,t,r){h(e,n,t,r),C(t,r,t,r)}},4:{5:I,7:null,9:null,10:I,1:function(e,n,t,r){I(e,n,t,r),M(t,r,t,r)},6:null,8:null,0:null,3:function(e,n,t,r){I(e,n,t,r),g(t,r,t,r)},11:function(e,n,t,r){I(e,n,t,r),m(t,r,t,r)},2:I,4:d},1:{5:x,7:null,9:null,10:x,1:d,6:null,8:null,0:null,3:function(e,n,t,r){x(e,n,t,r),g(t,r,t,r)},11:function(e,n,t,r){x(e,n,t,r),m(t,r,t,r)},2:x,4:function(e,n,t,r){x(e,n,t,r),C(t,r,t,r)}},6:{5:null,7:j,9:null,10:j,1:null,6:d,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:S,10:S,1:null,6:null,8:d,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:d,3:null,11:null,2:null,4:null},10:{5:d,7:d,9:d,10:d,1:M,6:v,8:R,0:null,3:g,11:m,2:d,4:C},11:{5:y,7:null,9:null,10:y,1:function(e,n,t,r){y(e,n,t,r),M(t,r,t,r)},6:null,8:null,0:null,3:function(e,n,t,r){y(e,n,t,r),g(t,r,t,r)},11:d,2:y,4:function(e,n,t,r){y(e,n,t,r),C(t,r,t,r)}}};function c(e,n){return f(e,n)?.projector}function f(e,n){if(null==e||null==n)return null;if(k.source.spatialReference===e&&k.dest.spatialReference===n)return k;const t=p(e,k.source),r=p(n,k.dest);return 0===t&&0===r?(0,l.aI)(e,n)?k.projector=d:k.projector=null:k.projector=u[t][r],k}function p(e,n){return e?n.spatialReference===e?n.spatialReferenceId:(n.spatialReference=e,"metersPerUnit"in n&&(n.metersPerUnit=(0,o.GA)(e,1)),(0,i.jA)(e)?n.spatialReferenceId=1:(0,l.oT)(e)?n.spatialReferenceId=2:(0,l.K8)(e)?n.spatialReferenceId=3:(0,l.r1)(e)?n.spatialReferenceId=11:e.wkt===i.Ro.wkt?n.spatialReferenceId=4:4490===e.wkid?n.spatialReferenceId=5:e.wkt===i.FY.wkt?n.spatialReferenceId=6:e.wkt===i.LJ.wkt?n.spatialReferenceId=8:(0,i.q8)(e)?n.spatialReferenceId=7:(0,i.KQ)(e)?n.spatialReferenceId=9:n.spatialReferenceId=0):0}function d(e,n,t,r){e!==t&&(t[r++]=e[n++],t[r++]=e[n++],t[r]=e[n]??0)}function h(e,n,t,r){t[r]=O*(e[n]/b),t[r+1]=O*(G-2*Math.atan(Math.exp(-e[n+1]/b))),t[r+2]=e[n+2]??0}function g(e,n,t,o){!function(e,n,t,o,i){const a=.4999999*Math.PI,s=(0,r.qE)(P*e[n+1],-a,a),l=Math.sin(s);t[o++]=P*e[n]*i.radius,t[o++]=i.halfSemiMajorAxis*Math.log((1+l)/(1-l)),t[o]=e[n+2]??0}(e,n,t,o,a.$O)}function m(e,n,t,r){t[r]=e[n]*Z,t[r+1]=e[n+1]*Z,t[r+2]=e[n+2]??0}function y(e,n,t,r){t[r]=e[n]*$,t[r+1]=e[n+1]*$,t[r+2]=e[n+2]??0}function w(e,n,t,r,o){const i=o+(e[n+2]??0),a=P*e[n],s=P*e[n+1],l=Math.cos(s)*i;t[r]=Math.cos(a)*l,t[r+1]=Math.sin(a)*l,t[r+2]=Math.sin(s)*i}function R(e,n,t,r){w(e,n,t,r,a.Sw.radius)}function v(e,n,t,r){w(e,n,t,r,a.sH.radius)}function M(e,n,t,r){w(e,n,t,r,a.$O.radius)}function A(e,n,t,o,i){const a=e[n],s=e[n+1],l=e[n+2]??0,u=Math.sqrt(a*a+s*s+l*l),c=(0,r.YN)(l/(0===u?1:u)),f=Math.atan2(s,a);t[o++]=O*f,t[o++]=O*c,t[o]=u-i}function S(e,n,t,r){A(e,n,t,r,a.Sw.radius)}function j(e,n,t,r){A(e,n,t,r,a.sH.radius)}function x(e,n,t,r){A(e,n,t,r,a.$O.radius)}function C(e,n,t,r){!function(e,n,t,r,o){const i=P*e[n],a=P*e[n+1],s=e[n+2]??0,l=Math.sin(a),u=Math.cos(a),c=o.radius/Math.sqrt(1-o.eccentricitySquared*l*l);t[r++]=(c+s)*u*Math.cos(i),t[r++]=(c+s)*u*Math.sin(i),t[r++]=(c*(1-o.eccentricitySquared)+s)*l}(e,n,t,r,a.$O)}function I(e,n,t,r){const o=s.TP,i=e[n],l=e[n+1],u=e[n+2]??0;let c,f,p,d,h,g,m,y,w,R,v,M,A,S,j,x,C,I,k,P,G;c=Math.abs(u),f=i*i+l*l,p=Math.sqrt(f),d=f+u*u,h=Math.sqrt(d),P=Math.atan2(l,i),g=u*u/d,m=f/d,S=o.a2/h,j=o.a3-o.a4/h,m>.3?(y=c/h*(1+m*(o.a1+S+g*j)/h),k=Math.asin(y),R=y*y,w=Math.sqrt(1-R)):(w=p/h*(1-g*(o.a5-S-m*j)/h),k=Math.acos(w),R=1-w*w,y=Math.sqrt(R)),v=1-a.$O.eccentricitySquared*R,M=a.$O.radius/Math.sqrt(v),A=o.a6*M,S=p-M*w,j=c-A*y,C=w*S+y*j,x=w*j-y*S,I=x/(A/v+C),k+=I,G=C+x*I/2,u<0&&(k=-k),t[r++]=O*P,t[r++]=O*k,t[r]=G}const k={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:d},P=(0,r.kU)(1),O=(0,r.KJ)(1),G=.5*Math.PI,b=a.$O.radius,Z=b*Math.PI/180,$=180/(b*Math.PI)},91218(e,n,t){t.r(n),t.d(n,{canProjectWithoutEngine:()=>U,initializeProjection:()=>Q,isEqualBaseGCS:()=>E,isLoaded:()=>b,isLoadedOrLoad:()=>Z,isLoadedOrLoadFor:()=>$,load:()=>K,project:()=>q,projectAsync:()=>W,projectExtent:()=>oe,projectMany:()=>N,projectMultipoint:()=>X,projectOrLoad:()=>L,projectOrLoadMany:()=>B,projectPoint:()=>H,projectPolygon:()=>te,projectPolyline:()=>ee,projectWithoutEngine:()=>Y,requiresLoad:()=>T,test:()=>J,tryProject:()=>z,unload:()=>F});var r=t(49186),o=t(17676),i=t(62788),a=t(95488),s=t(51850),l=t(21276),u=t(73941),c=t(5443),f=t(91075),p=t(48526),d=t(86738),h=t(39829),g=t(82799),m=t(16930),y=t(98764),w=t(159),R=t(9762),v=t(49208);function M(e,n,t,r,o,i){return A[0]=e,A[1]=n,A[2]=t,(0,R.projectBuffer)(A,r,0,o,i,0)}const A=(0,s.vt)();var S=t(60408),j=t(21325),x=t(52006);let C=null,I=null,k=null,P=null,O={};const G=new a.I;function b(){return!!(I?.isLoaded()&&k?.isLoaded()&&P?.isLoaded())}function Z(){return!!b()||((0,i.gc)(G),K(),!1)}function $(e,n){return!e||!n||U(e,n)||Z()}function T(e,n){return!U(e,n)&&!b()}async function K(e){null==C&&(C=Promise.all([t.e(3276).then(t.bind(t,83276)).then(e=>(I=e,I.load())),t.e(8377).then(t.bind(t,8377)).then(e=>(k=e,k.load())),t.e(2158).then(t.bind(t,12158)).then(e=>(P=e,P.load()))])),await C,(0,o.Te)(e),G.notify()}function q(e,n,t){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),N(e,e[0].spatialReference,n,t)):((0,l.f)(e),N([e],e.spatialReference,n,t)[0])}function N(e,n,t,r){if(null==n||null==t)return e;if(U(n,t,r))return e.map(e=>Y(e,n,t));if(null==r?.geographicTransformation&&(0,u.jA)(n))return N(e.map(e=>Y(e,n,m.A.WGS84)),m.A.WGS84,t,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,u.jA)(t))return N(e,n,m.A.WGS84).map(e=>Y(e,m.A.WGS84,t));if(!b())throw new D;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:P.getTransformation(n,t,r.areaOfInterestExtent)||new w.A};else if(!r?.areaOfInterestExtent){const e=function(e,n){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",n.wkid?.toString()??"-1",n.wkt?.toString()??"",n.wkt2?.toString()??""].join()}(n,t);let o=O[e];o||(o=P.getTransformation(n,t)||new w.A,O[e]=o),r={geographicTransformation:o,zConversionDisabled:r?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=n),e[0]instanceof f.A?I.executeMany(e,t,r):k.executeMany(e,t,r)}function z(e,n,t){try{return q(e,n,t)}catch(e){return null}}function L(e,n){const t=B([e],n);return null!=t.pending?{pending:t.pending,geometry:null}:null!=t.geometries?{pending:null,geometry:t.geometries[0]}:{pending:null,geometry:null}}function B(e,n,t){if(!b())for(const t of e)if(null!=t&&!(0,j.aI)(t.spatialReference,n)&&(0,j.fn)(t.spatialReference)&&(0,j.fn)(n)&&!U(t.spatialReference,n))return(0,i.gc)(G),{pending:K(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,j.aI)(e.spatialReference,n)?e:(0,j.fn)(e.spatialReference)&&(0,j.fn)(n)?q(e,n,t):null)}}class D extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function F(){C=null,I=null,k=null,P=null,O={}}const J={get loadPromise(){return C}};async function W(e,n,t){if((0,o.Te)(t),!e)return e;const r=B(Array.isArray(e)?e:[e],n,t);if(r.pending)return await r.pending,(0,o.Te)(t),W(e,n,t);const i=r.geometries??[];return Array.isArray(e)?i:i[0]}function U(e,n,t){return!(t?.areaOfInterestExtent||t?.extendedParams||t?.geographicTransformation)&&(!!(0,j.aI)(e,n)||(0,j.fn)(e)&&(0,j.fn)(n)&&!!(0,v.jd)(e,n))}function E(e,n){if((0,j.aI)(e,n))return!0;if(!(0,j.fn)(e)||!(0,j.fn)(n))return!1;const t=(0,j.oT)(e)||(0,j.K8)(e)||(0,j.x1)(e),r=(0,j.oT)(n)||(0,j.K8)(n)||(0,j.x1)(n);return t&&r}async function Q(e,n,t,r){if(b())return(0,o.NO)(r);if(Array.isArray(e)){for(const{source:n,dest:t,options:o}of e)if(n&&t&&!U(n,t,o))return K(r)}else if(e&&n&&!U(e,n,t))return K(r);return(0,o.NO)(r)}function Y(e,n,t){return e?(0,S.fT)(e)?V(e,n,new d.A,t,0):(0,S.ZC)(e)?ie(e,n,new c.A,t,0):(0,S.Bi)(e)?re(e,n,new h.A,t,0):(0,S.Rg)(e)?ne(e,n,new g.A,t,0):(0,S.U9)(e)?_(e,n,new p.A,t,0):null:null}function H(e,n,t=n.spatialReference,r=0){return null!=t&&null!=e.spatialReference&&null!=V(e,e.spatialReference,n,t,r)}function V(e,n,t,r,o){ue[0]=e.x,ue[1]=e.y;const i=e.z;return ue[2]=void 0!==i?i:o,(0,R.projectBuffer)(ue,n,0,ue,r,0)?(t.x=ue[0],t.y=ue[1],t.spatialReference=r,void 0!==i||(0,u.xP)(r)?(t.z=ue[2],t.hasZ=!0):(t.z=void 0,t.hasZ=!1),void 0===e.m?(t.m=void 0,t.hasM=!1):(t.m=e.m,t.hasM=!0),t):null}function X(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=_(e,e.spatialReference,n,t,r)}function _(e,n,t,r,o){const{points:i,hasZ:a,hasM:s}=e,l=[],u=i.length,c=[];for(const e of i)c.push(e[0],e[1],a?e[2]:o);if(!(0,R.projectBuffer)(c,n,0,c,r,0,u))return null;const f=le(a,r);for(let e=0;e<u;++e){const n=3*e,t=c[n],r=c[n+1];f&&s?l.push([t,r,c[n+2],i[e][3]]):f?l.push([t,r,c[n+2]]):s?l.push([t,r,i[e][2]]):l.push([t,r])}return t.points=l,t.spatialReference=r,t.hasZ=a,t.hasM=s,t}function ee(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=ne(e,e.spatialReference,n,t,r)}function ne(e,n,t,r,o){const{curvePaths:i,paths:a,hasZ:s,hasM:l}=e;if(!(i?se(i,s??!1,l??!1,n,t.curvePaths=[],r,o):ae(a,s??!1,l??!1,n,t.paths,r,o)))return null;const u=le(s,r);return t.spatialReference=r,t.hasZ=u,t.hasM=l,t}function te(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=re(e,e.spatialReference,n,t,r)}function re(e,n,t,r,o){const{curveRings:i,rings:a,hasZ:s,hasM:l}=e;return(i?se(i,s??!1,l??!1,n,t.curveRings=[],r,o):ae(a,s??!1,l??!1,n,t.rings,r,o))?(t.spatialReference=r,t.hasZ=le(s,r),t.hasM=l,t):null}function oe(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=ie(e,e.spatialReference,n,t,r)}function ie(e,n,t,r,o){const{xmin:i,ymin:a,xmax:s,ymax:l,hasZ:u,hasM:c}=e;if(!M(i,a,u?e.zmin:o,n,ue,r))return null;const f=le(u,r);return t.xmin=ue[0],t.ymin=ue[1],f&&(t.zmin=ue[2]),M(s,l,u?e.zmax:o,n,ue,r)?(t.xmax=ue[0],t.ymax=ue[1],f&&(t.zmax=ue[2]),c&&(t.mmin=e.mmin,t.mmax=e.mmax),t.spatialReference=r,t):null}function ae(e,n,t,r,o,i,a=0){const s=new Array;for(const t of e)for(const e of t)s.push(e[0],e[1],n?e[2]:a);if(!(0,R.projectBuffer)(s,r,0,s,i,0))return!1;let l=0;o.length=0;const u=n?3:2,c=le(n,i);for(const n of e){const e=new Array;for(const r of n){const n=s.slice(l,l+=3);c||n.pop(),t&&n.push(r[u]),e.push(n)}o.push(e)}return!0}function se(e,n,t,r,o,i,a=0){const s=new Array;for(const t of e)for(const e of t){if((0,x.FG)(e))return!1;if((0,x.aO)(e)){const[t,r]=e.c;s.push(t[0],t[1],n?t[2]:a,r[0],r[1],a);continue}if((0,x.n1)(e)){const[t,r,o]=e.b;s.push(t[0],t[1],n?t[2]:a,r[0],r[1],a,o[0],o[1],a);continue}const t=e;s.push(t[0],t[1],n?t[2]:a)}if(!(0,R.projectBuffer)(s,r,0,s,i,0))return!1;let l=0;o.length=0;const u=n?3:2,c=le(n,i);for(const n of e){const e=new Array;for(const r of n){const n=s.slice(l,l+=3);if(c||n.pop(),t&&n.push((0,x.yP)(r)[u]),(0,x.FG)(r))return!1;if((0,x.aO)(r)){const t=s[l++],r=s[l++];++l,e.push({c:[n,[t,r]]});continue}if((0,x.n1)(r)){const t=s[l++],r=s[l++];++l;const o=s[l++],i=s[l++];++l,e.push({b:[n,[t,r],[o,i]]});continue}e.push(n)}o.push(e)}return!0}function le(e,n){return e||(0,u.xP)(n)||(0,j.aI)(n,y.Y0)}const ue=(0,s.vt)()},98764(e,n,t){t.d(n,{GD:()=>a,Y0:()=>u,lO:()=>c});var r=t(73941),o=t(16930),i=t(21325);const a=new o.A(r.fv),s=new o.A(r.FY),l=new o.A(r.LJ),u=new o.A(r.Ro);function c(e){const n=f.get(e);if(n)return n;let t=a;if(e)if(e===s)t=s;else if(e===l)t=l;else{const n=e.wkid,r=e.latestWkid;if(null!=n||null!=r)(0,i.tl)(n)||(0,i.tl)(r)?t=s:((0,i.ZL)(n)||(0,i.ZL)(r))&&(t=l);else{const n=e.wkt2??e.wkt;if(n){const e=n.toUpperCase();e===p?t=s:e===d&&(t=l)}}}return f.set(e,t),t}const f=new Map,p=s.wkt.toUpperCase(),d=l.wkt.toUpperCase()},34403(e,n,t){t.d(n,{TP:()=>a});var r=t(79258);Math.PI;const o=r.$O.radius,i=r.$O.eccentricitySquared,a={a1:o*i,a2:o*i*o*i,a3:o*i*i/2,a4:o*i*o*i*2.5,a5:o*i+o*i*i/2,a6:1-i};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius},92300(e,n,t){t.d(n,{V:()=>a,X:()=>i});var r=t(60408),o=t(65864);function i(e){return{geometryType:(0,r.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function a(e,n,t){const r=(0,o.xD)(n);return e.map(e=>{const n=r.fromJSON(e);return n.spatialReference=t,n})}},25927(e,n,t){t.d(n,{A:()=>s});var r=t(5482),o=t(91429),i=t(86738),a=t(54238);let s=class extends a.A{constructor(e){super(e),this.layoutGeometry=null}};(0,r.Cg)([(0,o.MZ)({type:i.A,json:{write:!0}})],s.prototype,"layoutGeometry",void 0),s=(0,r.Cg)([(0,o.$K)("esri.rest.knowledgeGraph.Entity")],s)},54238(e,n,t){t.d(n,{A:()=>a});var r=t(5482),o=t(91429),i=t(77901);let a=class extends i.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"typeName",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"id",void 0),a=(0,r.Cg)([(0,o.$K)("esri.rest.knowledgeGraph.GraphNamedObject")],a)},77901(e,n,t){t.d(n,{A:()=>a});var r=t(5482),o=t(25482),i=t(91429);let a=class extends o.o{constructor(e){super(e),this.properties={}}};(0,r.Cg)([(0,i.MZ)({json:{write:!0}})],a.prototype,"properties",void 0),a=(0,r.Cg)([(0,i.$K)("esri.rest.knowledgeGraph.GraphObject")],a)},42538(e,n,t){t.d(n,{A:()=>l});var r=t(5482),o=t(91429),i=t(16930),a=t(69622);let s=class extends a.A{constructor(e){super(e),this.openCypherQuery=""}};(0,r.Cg)([(0,o.MZ)()],s.prototype,"openCypherQuery",void 0),s=(0,r.Cg)([(0,o.$K)("esri.rest.knowledgeGraph.GraphQuery")],s);let l=class extends s{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,r.Cg)([(0,o.MZ)()],l.prototype,"bindParameters",void 0),(0,r.Cg)([(0,o.MZ)()],l.prototype,"bindGeometryQuantizationParameters",void 0),(0,r.Cg)([(0,o.MZ)()],l.prototype,"outputQuantizationParameters",void 0),(0,r.Cg)([(0,o.MZ)({type:i.A})],l.prototype,"outputSpatialReference",void 0),(0,r.Cg)([(0,o.MZ)()],l.prototype,"provenanceBehavior",void 0),l=(0,r.Cg)([(0,o.$K)("esri.rest.knowledgeGraph.GraphQueryStreaming")],l)},40662(e,n,t){t.d(n,{A:()=>a});var r=t(5482),o=t(91429),i=t(77901);let a=class extends i.A{constructor(e){super(e)}};a=(0,r.Cg)([(0,o.$K)("esri.rest.knowledgeGraph.ObjectValue")],a)},42095(e,n,t){t.d(n,{A:()=>s});var r=t(5482),o=t(25482),i=t(91429),a=t(77901);let s=class extends o.o{constructor(e){super(e),this.path=[]}};(0,r.Cg)([(0,i.MZ)({type:[a.A],json:{write:!0}})],s.prototype,"path",void 0),s=(0,r.Cg)([(0,i.$K)("esri.rest.knowledgeGraph.Path")],s)},23150(e,n,t){t.d(n,{A:()=>s});var r=t(5482),o=t(91429),i=t(82799),a=t(54238);let s=class extends a.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"originId",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"destinationId",void 0),(0,r.Cg)([(0,o.MZ)({type:i.A,json:{write:!0}})],s.prototype,"layoutGeometry",void 0),s=(0,r.Cg)([(0,o.$K)("esri.rest.knowledgeGraph.Relationship")],s)}}]);