@arcgis/core 5.1.0-next.95 → 5.1.0-next.96
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.
- package/Graphic.d.ts +16 -1
- package/Graphic.js +1 -1
- package/applications/MapViewer/templateUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0175098da590a7109539.js +1 -0
- package/assets/esri/core/workers/chunks/0e6feed31340cf3c1966.js +1 -0
- package/assets/esri/core/workers/chunks/26f28406056ddc0e159c.js +1 -0
- package/assets/esri/core/workers/chunks/27d6ad4ca5ab8c9d62cd.js +1 -0
- package/assets/esri/core/workers/chunks/{23241e6093e245f9c774.js → 2b00229c238aae70b948.js} +1 -1
- package/assets/esri/core/workers/chunks/{6b4c99c7648f37feec00.js → 308e1b0aea941958de44.js} +1 -1
- package/assets/esri/core/workers/chunks/34c11e7c8762fe0c19fb.js +1 -0
- package/assets/esri/core/workers/chunks/34e026549ba2822b8ebd.js +1 -0
- package/assets/esri/core/workers/chunks/4020f95d8131493f799e.js +1 -0
- package/assets/esri/core/workers/chunks/40bc7c65b708fcc80fab.js +1 -0
- package/assets/esri/core/workers/chunks/{8de61993e114f453579b.js → 40e887e87ae24ace27a5.js} +1 -1
- package/assets/esri/core/workers/chunks/4255ad7601c7a7621b71.js +1 -0
- package/assets/esri/core/workers/chunks/{5853925d2f7fb550bd2e.js → 44b5e4640fe547285e0c.js} +1 -1
- package/assets/esri/core/workers/chunks/58c15c42e6a618386a2f.js +1 -0
- package/assets/esri/core/workers/chunks/6d59a9cf533ebc590f70.js +1 -0
- package/assets/esri/core/workers/chunks/{0f527961805cd45c14e2.js → 708bd77e6d723e3f0aa8.js} +1 -1
- package/assets/esri/core/workers/chunks/7485d59d60d61737d662.js +1 -0
- package/assets/esri/core/workers/chunks/7dc9ff66e1eceadbae24.js +1 -0
- package/assets/esri/core/workers/chunks/9954928d6430e2bfdb1a.js +1 -0
- package/assets/esri/core/workers/chunks/9a29b7f9e6281ee40c37.js +1 -0
- package/assets/esri/core/workers/chunks/9f4a9b193485f88d4461.js +1 -0
- package/assets/esri/core/workers/chunks/a001e7e8a39f27284d87.js +1 -0
- package/assets/esri/core/workers/chunks/a93a058678c8c8996d54.js +1 -0
- package/assets/esri/core/workers/chunks/acb8cff06142f828fb78.js +1 -0
- package/assets/esri/core/workers/chunks/{bf73232057ebc1ecc0ad.js → b06cc59068d32baaaa87.js} +1 -1
- package/assets/esri/core/workers/chunks/b63cbf6c2c9ec1b02b9a.js +1 -0
- package/assets/esri/core/workers/chunks/b891d95b7858665cd6c1.js +1 -0
- package/assets/esri/core/workers/chunks/bfb417d72d0c90e116fe.js +1 -0
- package/assets/esri/core/workers/chunks/c0c693c2e0043ecba4a5.js +1 -0
- package/assets/esri/core/workers/chunks/{fa869bfe4366f7f49cca.js → e5f8c73349407c25956b.js} +1 -1
- package/assets/esri/core/workers/chunks/e8a885b576da3ec145d3.js +1 -0
- package/assets/esri/core/workers/chunks/{bd721bbc7afc75d3bddb.js → eda51e512eff551ad858.js} +1 -1
- package/assets/esri/core/workers/chunks/f27397379c6c88bc6ef4.js +1 -0
- package/assets/esri/core/workers/chunks/f91a2c69a93295cf4de6.js +1 -0
- package/assets/esri/core/workers/chunks/fec3fffcf854a6226df4.js +1 -0
- package/chunks/GaussianSplat.glsl.js +9 -9
- package/chunks/NativeLine.glsl.js +4 -4
- package/config.js +1 -1
- package/kernel.js +1 -1
- package/layers/SceneLayer.d.ts +59 -32
- package/layers/graphics/data/QueryEngineCapabilities.js +1 -1
- package/layers/graphics/sources/OGCFeatureSource.js +1 -1
- package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
- package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/raster/formats/Lerc.js +1 -1
- package/layers/raster/formats/RasterCodec.js +1 -1
- package/layers/scene/ModelFileInfo.d.ts +6 -2
- package/layers/scene/ModelInfo.d.ts +16 -7
- package/layers/scene/types.d.ts +2 -0
- package/layers/support/ExportImageServiceParameters.js +1 -1
- package/layers/support/capabilities.js +1 -1
- package/layers/support/serviceCapabilitiesUtils.js +1 -1
- package/layers/types.d.ts +25 -2
- package/package.json +1 -1
- package/rest/knowledgeGraph/CreateReplicaResponse.d.ts +5 -4
- package/rest/knowledgeGraph/wasmInterface/wasmToReplicaFactories.js +1 -1
- package/rest/query/operations/queryUtils.js +1 -1
- package/rest/support/OutDistance.js +1 -1
- package/rest/support/Query.d.ts +39 -1
- package/rest/support/Query.js +1 -1
- package/support/revision.js +1 -1
- package/tables/AttributeTableTemplate.d.ts +1 -1
- package/tables/elements/AttributeTableGroupElement.d.ts +1 -1
- package/tables/support/tablesUtils.d.ts +2 -2
- package/tables/support/templateUtils.d.ts +136 -0
- package/tables/support/templateUtils.js +2 -0
- package/tables/support/types.d.ts +90 -0
- package/views/2d/engine/webgl/definitions.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/attributes.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/LineMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/BaseLayerView2D.d.ts +2 -2
- package/views/2d/layers/BaseLayerViewGL2D.d.ts +2 -2
- package/views/3d/support/QualityProfile.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatIntersectionHandler.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianTile.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +6 -19
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +40 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/ReactiveGraphic.js +1 -1
- package/widgets/BatchAttributeForm/expressions/types.d.ts +1 -0
- package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +52 -1
- package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/BatchFormInputs.d.ts +3 -0
- package/widgets/BatchAttributeForm/inputs/BatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/inputs/EditableInput.d.ts +2 -0
- package/widgets/BatchAttributeForm/inputs/EditableInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
- package/widgets/BatchAttributeForm/types.d.ts +79 -0
- package/widgets/Editor/Edits.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/0ab1384282afc8731857.js +0 -1
- package/assets/esri/core/workers/chunks/130abc6a353e4d79a1b1.js +0 -1
- package/assets/esri/core/workers/chunks/1a68a249540fda9083a9.js +0 -1
- package/assets/esri/core/workers/chunks/1ae016e4f5e39c34a941.js +0 -1
- package/assets/esri/core/workers/chunks/2f6ba01ea8b8f193bea5.js +0 -1
- package/assets/esri/core/workers/chunks/31837f2f8859e2cf2efd.js +0 -1
- package/assets/esri/core/workers/chunks/41e811138c96d85fd3e8.js +0 -1
- package/assets/esri/core/workers/chunks/43b5cfb34b11c4124b51.js +0 -1
- package/assets/esri/core/workers/chunks/44b30dfce12824ee1f33.js +0 -1
- package/assets/esri/core/workers/chunks/4644e1b00fd4e628219d.js +0 -1
- package/assets/esri/core/workers/chunks/5648379d1ed4ca02eedd.js +0 -1
- package/assets/esri/core/workers/chunks/6666cd3bf1a3d175dc8c.js +0 -1
- package/assets/esri/core/workers/chunks/7536f0683e488159d8bd.js +0 -1
- package/assets/esri/core/workers/chunks/8bfe4841c83eb3abfbe8.js +0 -1
- package/assets/esri/core/workers/chunks/a12fd6a445f42326642f.js +0 -1
- package/assets/esri/core/workers/chunks/a8e2fbbfbdf1c3203d5e.js +0 -1
- package/assets/esri/core/workers/chunks/a94674826e5893c9d197.js +0 -1
- package/assets/esri/core/workers/chunks/b2504657d3ef8769005e.js +0 -1
- package/assets/esri/core/workers/chunks/b90db0829da3f96e4a19.js +0 -1
- package/assets/esri/core/workers/chunks/bd9dae2d5ec199f8e9ba.js +0 -1
- package/assets/esri/core/workers/chunks/be19d4a6fb9b1c923127.js +0 -1
- package/assets/esri/core/workers/chunks/c2589e5e0e0f81a378c2.js +0 -1
- package/assets/esri/core/workers/chunks/c33f1f722499a5c6fc11.js +0 -1
- package/assets/esri/core/workers/chunks/e03713dee3205c96d53f.js +0 -1
- package/assets/esri/core/workers/chunks/ead6e4d0a515c0913bee.js +0 -1
- package/assets/esri/core/workers/chunks/f95e3333a65a0c09fd1e.js +0 -1
- package/assets/esri/core/workers/chunks/ffb8fa77297578afef7c.js +0 -1
- package/tables/types.d.ts +0 -18
- package/widgets/FeatureTable/support/templateUtils.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4460],{52106(e,t,r){r.d(t,{A:()=>Z});var s,o,i=r(5482),n=r(37838),l=r(69540),a=r(51447),u=r(25482),p=r(53966),d=r(36708),h=r(24326),c=r(91429),y=r(12195),g=r(65864),m=r(50498),f=r(55156),v=r(60950),C=r(54339),M=r(94128),b=r(33910);function w(e){if(null==e)return null;const t={};for(const r in e){const s=e[r];s&&(t[r]=s.toJSON())}return 0!==Object.keys(t).length?t:null}let Z=class extends((0,l.OU)(u.o)){static{s=M.Z}static{o=this}constructor(e){super(e),this[s]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,h.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(p.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 o({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,f.I)(this.origin);if(e)return(0,C.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,C.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(){const e={aggregateGeometries:w(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,y.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,s){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const o={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(o.action=s),"attributes"===e&&(o.attributeName=s),this.layer.graphicChanged(o)}_watchMeshGeometryChanges(){this.addHandles([(0,d.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,d.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,i.Cg)([(0,c.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const s=(0,g.rS)(e[r]);s&&(t[r]=s)}return 0!==Object.keys(t).length?t:null}}})],Z.prototype,"aggregateGeometries",null),(0,i.Cg)([(0,c.MZ)({value:null})],Z.prototype,"attributes",null),(0,i.Cg)([(0,c.MZ)({value:null,types:m.yR,json:{read:g.rS}})],Z.prototype,"geometry",null),(0,i.Cg)([(0,c.MZ)()],Z.prototype,"distance",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean})],Z.prototype,"isAggregate",void 0),(0,i.Cg)([(0,c.MZ)({clonable:!1})],Z.prototype,"layer",void 0),(0,i.Cg)([(0,c.MZ)({clonable:"reference"})],Z.prototype,"origin",void 0),(0,i.Cg)([(0,c.MZ)({type:n.A,value:null})],Z.prototype,"popupTemplate",null),(0,i.Cg)([(0,c.MZ)({clonable:"reference"})],Z.prototype,"sourceLayer",void 0),(0,i.Cg)([(0,c.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],Z.prototype,"statisticsAggregatedIds",void 0),(0,i.Cg)([(0,c.MZ)({value:null,types:b.Es})],Z.prototype,"symbol",null),(0,i.Cg)([(0,c.MZ)({clonable:!1,json:{read:!1,write:!1}})],Z.prototype,"_version",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,value:!0})],Z.prototype,"visible",null),Z=o=(0,i.Cg)([(0,c.$K)("esri.Graphic")],Z)},4902(e,t,r){r.d(t,{s:()=>n});var s=r(5482),o=r(64108);let i=0;const n=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+i++})}};return r=(0,s.Cg)([(0,o.$)("esri.core.Identifiable")],r),r};n(class{})},92474(e,t,r){r.d(t,{WV:()=>h,Zm:()=>y,x_:()=>c});var s=r(5482),o=r(49186),i=r(97768),n=r(61893),l=r(17676),a=r(67076),u=r(10107),p=r(64108);const d="loaded",h=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise(e=>{const t=this.load.bind(this);this.load=r=>{const s=new Promise((e,t)=>{const s=(0,l.NY)(r,t);this.destroyed&&t(new o.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(e,t).finally(()=>{s&&s.remove()})});if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const e=this._loadController=new AbortController;t({signal:e.signal})}return e(),s}})),this.when(()=>{this._set("loadStatus",d),this._loadController=null},e=>{this.destroyed||(this._set("loadStatus","failed"),this._set("loadError",e),this._loadController=null)})}destroy(){this._loadController&&(this._loadController=(0,i.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===d}get loadWarnings(){return this._get("loadWarnings")}load(e){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new o.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,s.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loaded",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loadError",void 0),(0,s.Cg)([(0,u.MZ)({clonable:!1})],r.prototype,"loadStatus",void 0),(0,s.Cg)([(0,u.MZ)({type:[a.A],readOnly:!0})],r.prototype,"loadWarnings",null),r=(0,s.Cg)([(0,p.$)("esri.core.Loadable")],r),r},c=h(n.Z);function y(e){return!(!e||!e.load)}},61893(e,t,r){r.d(t,{Z:()=>p,g:()=>u});var s=r(5482),o=r(69622),i=r(36563),n=r(17676),l=r(64108);class a{constructor(){this._resolver=Promise.withResolvers(),this._status=0,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=1,this._cleanUp()},()=>{this._status=2,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return 1===this._status}isRejected(){return 2===this._status}isFulfilled(){return 0!==this._status}abort(){this._resolver.reject((0,n.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const e=Promise.withResolvers(),t=[...this._resolvingPromises,e.promise],r=this._allPromise=Promise.all(t);r.then(()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()},e=>{this.isFulfilled()||this._allPromise!==r||(0,n.zf)(e)||this._resolver.reject(e)}),e.resolve()}}const u=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),this._promiseProps=new a,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(e,t){return this._promiseProps.promise.then(()=>this).then(e,t)}catch(e){return this.when(null,e)}addResolvingPromise(e){e&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in e?e.when():e)}addResolvingTask(e){e&&!this._promiseProps.isFulfilled()&&(this.addHandles((0,i.rE)(e)),this._promiseProps.addResolvingPromise(e.promise))}};return r=(0,s.Cg)([(0,l.$)("esri.core.Promise")],r),r},p=u(o.A)},16494(e,t,r){r.d(t,{Nd:()=>l,W5:()=>n});var s=r(17632);const o=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),i=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],n=new s.I({whiteList:o,onTagAttr:(e,t,r)=>{const s=`${t}="${r}"`;if(i.includes(t))return s},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),l=new s.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1)},55156(e,t,r){r.d(t,{I:()=>o,e:()=>s});const s=Symbol("idFieldsProviderSymbol");function o(e){return(t=e)&&s in t?e[s]:void 0;var t}},4146(e,t,r){r.d(t,{A:()=>v});var s=r(5482),o=r(11254),i=r(49186),n=r(65529),l=r(4902),a=r(92474),u=r(53966),p=r(17676),d=r(84952),h=r(91429),c=r(5443),y=r(16930),g=r(92602),m=r(79677);let f=0,v=class extends((0,n.Zt)((0,l.s)(a.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new c.A(-180,-90,180,90,y.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+f++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:s}=await Promise.all([r.e(812),r.e(5613),r.e(909)]).then(r.bind(r,45613));try{return await s(t)}catch(e){const r=t?.portalItem,s=r?.id||"unset",o=r?.portal?.url||g.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+s+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,p.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,d.An)(this.url)}createLayerView(e,t){return Promise.reject(new i.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,o.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new i.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,s.Cg)([(0,h.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,s.Cg)([(0,h.MZ)({type:c.A})],v.prototype,"fullExtent",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,s.Cg)([(0,h.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,s.Cg)([(0,h.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,s.Cg)([(0,h.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,s.Cg)([(0,h.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,s.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,s.Cg)([(0,h.MZ)({type:y.A})],v.prototype,"spatialReference",void 0),(0,s.Cg)([(0,h.MZ)({type:String})],v.prototype,"title",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,s.Cg)([(0,h.MZ)()],v.prototype,"url",void 0),(0,s.Cg)([(0,h.MZ)({type:m.A})],v.prototype,"visibilityTimeExtent",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,s.Cg)([(0,h.$K)("esri.layers.Layer")],v)},52136(e,t,r){r.d(t,{p:()=>i});var s=r(5482),o=r(91429);const i=e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,s.Cg)([(0,o.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,s.Cg)([(0,o.$K)("esri.layers.mixins.APIKeyMixin")],r),r}},32756(e,t,r){r.d(t,{Rr:()=>l,fY:()=>u,ne:()=>a});var s=r(5482),o=r(93637),i=r(91429),n=r(91880);function l(e,t,r){if(!e)return null;const s=e.find(e=>!!e.field);if(!s)return null;const o=new n.A;return o.read(s,r),[o]}const a={type:[n.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,s){const i=e.find(e=>!!e.field);i&&(0,o.sM)(r,[i.toJSON()],t)}}}},u=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,s.Cg)([(0,i.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,s.Cg)([(0,i.$K)("esri.layers.mixins.OrderedLayer")],r),r}},28032(e,t,r){r.d(t,{A:()=>a});var s=r(5482),o=r(69540),i=r(25482),n=r(91429),l=r(56400);let a=class extends((0,o.OU)(i.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,s.Cg)([(0,n.MZ)()],a.prototype,"creatorField",void 0),(0,s.Cg)([(0,n.MZ)()],a.prototype,"creationDateField",void 0),(0,s.Cg)([(0,n.MZ)()],a.prototype,"editorField",void 0),(0,s.Cg)([(0,n.MZ)()],a.prototype,"editDateField",void 0),(0,s.Cg)([(0,n.MZ)()],a.prototype,"realm",void 0),(0,s.Cg)([(0,n.MZ)((0,l.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,s.Cg)([(0,n.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,r){r.d(t,{A:()=>u});var s=r(5482),o=r(69540),i=r(66552),n=r(25482),l=r(91429);const a=new i.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,s.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,s.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,s.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"drawingTool",void 0),(0,s.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,s.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,s.Cg)([(0,l.$K)("esri.layers.support.FeatureTemplate")],u)},33143(e,t,r){r.d(t,{A:()=>d});var s=r(5482),o=r(69540),i=r(25482),n=r(91429),l=r(8631),a=r(29005),u=r(36005),p=r(43937);let d=class extends((0,o.OU)(i.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,l.r)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,s.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,s.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,s.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,s.Cg)([(0,u.w)("domains")],d.prototype,"readDomains",null),(0,s.Cg)([(0,p.K)("domains")],d.prototype,"writeDomains",null),(0,s.Cg)([(0,n.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,s.Cg)([(0,n.$K)("esri.layers.support.FeatureType")],d)},37352(e,t,r){r.d(t,{A:()=>a});var s,o=r(5482),i=r(7762),n=r(25482),l=r(91429);let a=s=class extends n.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new i.A}clone(){return new s({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=s=(0,o.Cg)([(0,l.$K)("esri.layers.support.LayerFloorInfo")],a)},91880(e,t,r){r.d(t,{A:()=>u});var s,o=r(5482),i=r(66552),n=r(25482),l=r(91429);const a=new i.J({asc:"ascending",desc:"descending"});let u=class extends n.o{static{s=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new s({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,o.Cg)([(0,l.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],u.prototype,"order",void 0),u=s=(0,o.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],u)},45067(e,t,r){r.d(t,{A:()=>p});var s=r(5482),o=r(69540),i=r(66552),n=r(25482),l=r(91429);const a=new i.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new i.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let p=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,s.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"cardinality",void 0),(0,s.Cg)([(0,l.MZ)({json:{name:"catalogID"}})],p.prototype,"catalogId",void 0),(0,s.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"composite",void 0),(0,s.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"id",void 0),(0,s.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyField",void 0),(0,s.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyFieldInRelationshipTable",void 0),(0,s.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"name",void 0),(0,s.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"relatedTableId",void 0),(0,s.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"relationshipTableId",void 0),(0,s.Cg)([(0,l.MZ)({json:{read:u.read,write:u.write}})],p.prototype,"role",void 0),p=(0,s.Cg)([(0,l.$K)("esri.layers.support.Relationship")],p)},17311(e,t,r){r.d(t,{A:()=>c});var s=r(5482),o=r(69622),i=r(4576),n=r(60999),l=r(7762),a=r(16494),u=r(91429),p=r(30524),d=r(43668);const h=/<br\s*\/*>/gi;let c=class extends o.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,n.UT)(()=>(0,d.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??Promise.all([r.e(4560),r.e(9301)]).then(r.bind(r,99301)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new l.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const r=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(r.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:r,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(r,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const r=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of r){const r=t.split("."),s=this.fieldsIndex.get(r.at(-1)??"");s&&e.add(s.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const r of t){const t=this.fieldsIndex.get(r);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,r){const s=t.getObjectId()??t.attributes[e.objectIdField];return(await this.getTitles(e,[t],r)).get(s)??""}async getTitles(e,t,r){const s=new Map,o=r?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:i}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);r?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:n,workingTitle:l}=this,u=l&&n;t.forEach(t=>{const p=t.getObjectId()??t.attributes[e.objectIdField];let d=u?i({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:n,globalAttributes:this._createFormattedAttributes(e,t,o).global,layer:e,text:l}):"";r?.removeHTML&&(d=a.Nd.sanitize(d).replaceAll(h," ")),s.set(p,d)})}catch{}return s}async _checkAndReQueryGraphics(e,t){const r=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(i.Ru);if(r.length!==t.length)return t;if(t.some(e=>!(0,p.Kl)(e,this.requiredFields))){const s=e.createQuery();s.where="1=1",s.outFields=[...this.requiredFields],s.objectIds=r;const o=await e.queryFeatures(s);if(o?.features.length===t.length)return o.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const r of e){if(!r.fieldName)continue;const e=this.fieldsIndex.get(r.fieldName),s=e?.name??r.fieldName;r.fieldName=s,t.set(s.toLowerCase(),r)}return t}_createFormattedAttributes(e,t,r="system"){const s=this.effectivePopupTemplate?.fieldInfos??[],o={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const r=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{o[`expression/${e.name}`]=e.func({vars:{$feature:r}})}catch{}}const i={...t.attributes,...o};return{global:this._featureUtils.formatAttributes({fieldInfos:s,attributes:i,graphic:t,timeZone:r,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,p.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,s.Cg)([(0,u.MZ)({readOnly:!0})],c.prototype,"_arcadeTask",null),(0,s.Cg)([(0,u.MZ)()],c.prototype,"_featureUtils",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],c.prototype,"featureUtilsPromise",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],c.prototype,"calculatedExpressions",null),(0,s.Cg)([(0,u.MZ)()],c.prototype,"displayField",void 0),(0,s.Cg)([(0,u.MZ)()],c.prototype,"effectivePopupTemplate",void 0),(0,s.Cg)([(0,u.MZ)()],c.prototype,"expressionsUsedInTitle",null),(0,s.Cg)([(0,u.MZ)()],c.prototype,"fieldsIndex",void 0),(0,s.Cg)([(0,u.MZ)()],c.prototype,"fieldInfoMap",null),(0,s.Cg)([(0,u.MZ)()],c.prototype,"fields",void 0),(0,s.Cg)([(0,u.MZ)()],c.prototype,"objectIdField",void 0),(0,s.Cg)([(0,u.MZ)()],c.prototype,"requiredFields",null),c=(0,s.Cg)([(0,u.$K)("esri.layers.support.TitleCreator")],c)},77548(e,t,r){r.d(t,{Gh:()=>F,tk:()=>A,BR:()=>P,p2:()=>S,qd:()=>T,wI:()=>_,G$:()=>I,$x:()=>O,Ov:()=>C,cM:()=>h,UC:()=>c,W_:()=>M,Qz:()=>y,OP:()=>x,TU:()=>v,F2:()=>g,XX:()=>f,Qi:()=>b,jy:()=>w});var s=r(70333),o=r(11254),i=r(7762),n=(r(84952),r(36563)),l=r(36708),a=r(4146);const u=new WeakMap;function p(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,l.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof a.A)&&("catalog-dynamic-group"===t.type||p(t))},t=>u.set(e,t),l.pc),(0,n.hA)(()=>u.delete(e))]),u.get(e))}function d(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function h(e){return d(e,"knowledge-graph")&&"layers"in e}function c(e){return d(e,"knowledge-graph-sublayer")}function y(e){return d(e,"link-chart")&&"layers"in e}function g(e){return d(e,"subtype-group")&&"sublayers"in e}function m(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const f={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function v(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function C(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function M(e){const t=e?.type;return("feature"===t||"subtype-group"===t||"oriented-imagery"===t)&&"feature-layer"===e?.source?.type}function b(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function w(e){return function(e){return d(e,"catalog-footprint")}(e)||function(e){return d(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return d(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function Z(e){const t=e?.type;return"binning"===t||"cluster"===t}function S(e,t){if(!w(e))return;const r=t?.graphic,s="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){const e=r.origin;return e&&"featureReductionProvider"in e&&s?Z(s)?s:null:void 0}return e}return t?.checkFeatureReduction&&s?Z(s)?s:null:e}async function _(e,t){const r=s.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const i=e.toLowerCase().indexOf("/rest/services");if(-1===i)return null;const n=`${e.slice(0,i)}/rest/info`,l=null!=t?t.signal:null,{data:a}=await(0,o.A)(n,{query:{f:"json"},responseType:"json",signal:l});return a?.owningSystemUrl||null}function P(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function A(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function T(e){const t=new i.A;for(const r of e.allLayers.concat(e.allTables))p(r)||m(r)||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function O(e,t){return null}function I(e){return null}function x(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function F(e,t){if(!t||!x(e))return;const r=(e.url,null);r&&(e.url=r)}},5757(e,t,r){r.d(t,{B:()=>o,P:()=>s});const s=Symbol("PopupTemplateInstance");function o(e){return null!=e&&"object"==typeof e&&s in e}},20655(e,t,r){r.d(t,{A:()=>T});var s=r(5482),o=r(92602),i=r(70333),n=r(11254),l=r(49186),a=r(44208),u=r(25482),p=r(92474),d=r(97768),h=r(17676),c=r(91429),y=r(56507),g=r(5443),m=r(73444);let f;var v=r(96360),C=r(16405),M=r(69622);let b=class extends M.A{constructor(e){super(e),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,s.Cg)([(0,c.MZ)()],b.prototype,"nextQueryParams",void 0),(0,s.Cg)([(0,c.MZ)()],b.prototype,"queryParams",void 0),(0,s.Cg)([(0,c.MZ)()],b.prototype,"results",void 0),(0,s.Cg)([(0,c.MZ)()],b.prototype,"total",void 0),b=(0,s.Cg)([(0,c.$K)("esri.portal.PortalQueryResult")],b);var w,Z=r(41318),S=r(926),_=r(36005);let P;const A={PortalGroup:()=>Promise.resolve({default:v.A}),PortalItem:()=>r.e(812).then(r.bind(r,80812)),PortalUser:()=>Promise.resolve({default:Z.A})};let T=class extends((0,u.T)(p.x_)){static{w=this}static{this.AUTH_MODE_ANONYMOUS="anonymous"}static{this.AUTH_MODE_AUTO="auto"}static{this.AUTH_MODE_IMMEDIATE="immediate"}static{this.AUTH_MODE_NO_PROMPT="no-prompt"}constructor(e){super(e),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.g3DTilesGalleryGroupQuery=null,this.g3dTilesEnabled=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=o.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e}destroy(){O.unregister(this),this.defaultBasemap=(0,d.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,d.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,d.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,d.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(e){if(e)for(const t of e)o.A.request.trustedServers.includes(t)||o.A.request.trustedServers.push(t);return e}readDefaultBasemap(e){return this._readBasemap(e)}readDefaultDevBasemap(e){return this._readBasemap(e)}readDefaultVectorBasemap(e){return this._readBasemap(e)}get extraQuery(){const e=this.user?.orgId,t=!e||this.canSearchPublic;return this.id&&!t?`orgid:${this.id}`:null}get hasAPIKey(){return(0,S.Jn)(this.restUrl)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get loaded(){return super.loaded}get restUrl(){let e=this.url;if(e){const t=e.indexOf("/sharing");e=t>0?e.slice(0,t):this.url.replace(/\/+$/,""),e+="/sharing/rest"}return e}get thumbnailUrl(){const e=this.restUrl,t=this.thumbnail;return e&&t?this._normalizeSSL(e+"/portals/self/resources/"+t):null}readUrlKey(e){return e?e.toLowerCase():e}readUser(e){let t=null;return e&&(t=Z.A.fromJSON(e),t.portal=this),t}load(e){const t=Promise.all([r.e(812),r.e(3116)]).then(r.bind(r,83116)).then(({default:t})=>{(0,h.Te)(e),P=t}).then(()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,e)).then(e=>{if(!this.hasAPIKey&&i.id){const e=i.id;this.credential=e.findCredential(this.restUrl),this.credential||this.authMode!==w.AUTH_MODE_AUTO&&this.authMode!==w.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=e.on("credential-create",function(e){const t=i.id;return()=>{const r=e.deref();r&&t.findCredential(r.restUrl)&&r.signIn().catch(()=>{})}}(new WeakRef(this))),O.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=e,this.read(e)});return this.addResolvingPromise(t),Promise.resolve(this)}async createElevationLayers(){await this.load();const e=this._getHelperService("defaultElevationLayers"),t=(await Promise.all([r.e(8278),r.e(9953),r.e(812),r.e(9186),r.e(709)]).then(r.bind(r,38732))).default;return e?e.map(e=>new t({id:e.id,url:e.url})):[]}async fetchBasemaps(e,t){const r=await this._fetchBasemaps(e,t);if(!0===t?.include3d&&!1!==this.use3dBasemaps){if(this.g3dTilesEnabled&&this.g3DTilesGalleryGroupQuery&&(0,a.A)("enable-feature:basemap-groundlayers")){const e=await this._fetchBasemaps3D(this.g3DTilesGalleryGroupQuery,t);r.unshift(...e)}const s=await this._fetchBasemaps3D(e,t);r.unshift(...s)}return r}async fetchDefault3DBasemap(e){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const t=new C.A;t.query=this.default3DBasemapQuery,t.disableExtraQuery=!0;const r=(await this.queryItems(t,e)).results.find(e=>"Web Scene"===e.type);return r?new P({portalItem:r}):null}fetchCategorySchema(e){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",e).then(e=>e.categorySchema):(0,h.G4)(e)?Promise.reject((0,h.NK)()):Promise.resolve([])}async fetchClassificationSchema(e){return this.hasClassificationSchema?this.request(this.restUrl+"/portals/self/classification/classificationSchema",e).then(e=>e.classificationSchema):null}fetchFeaturedGroups(e){const t=this.featuredGroups,r=new C.A({num:100,sortField:"title"});if(t?.length){const s=[];for(const e of t)s.push(`(title:"${e.title}" AND owner:${e.owner})`);return r.query=s.join(" OR "),this.queryGroups(r,e).then(e=>e.results)}return(0,h.G4)(e)?Promise.reject((0,h.NK)()):Promise.resolve([])}fetchRegions(e){const t=this.user?.culture||this.culture||(0,m.JK)();return this.request(this.restUrl+"/portals/regions",{...e,query:{culture:t}})}fetchSettings(e){const t=this.user?.culture||this.culture||(0,m.JK)();return this.request(this.restUrl+"/portals/self/settings",{...e,query:{culture:t}})}static getDefault(){return f&&!f.destroyed||(f=new w),f}queryGroups(e,t){return this.queryPortal("/community/groups",e,"PortalGroup",t)}queryItems(e,t){return this.queryPortal("/search",e,"PortalItem",t)}queryUsers(e,t){return e.sortField||(e.sortField="username"),this.queryPortal("/community/users",e,"PortalUser",t)}fetchSelf(e=this.authMode,t=!1,r){const s=this.restUrl+"/portals/self",o={authMode:e,query:{culture:(0,m.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===o.authMode&&(o.authMode="no-prompt"),t&&(o.query.default=!0),this.request(s,o)}queryPortal(e,t,r,s){const o=(0,y.dp)(C.A,t),i=t=>this.request(this.restUrl+e,{...o.toRequestOptions(this),...s}).then(e=>{const r=o.clone();return r.start=e.nextStart,new b({nextQueryParams:r,queryParams:o,total:e.total,results:w._resultsToTypedArray(t,{portal:this},e,s)})}).then(e=>Promise.all(e.results.map(t=>"function"==typeof t.when?t.when():e)).then(()=>e,t=>((0,h.QP)(t),e)));return r&&A[r]?A[r]().then(({default:e})=>((0,h.Te)(s),i(e))):i()}signIn(){if(this.hasAPIKey)return this.load().then(()=>{if(!this.user)throw new l.A("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")});if(this.authMode===w.AUTH_MODE_ANONYMOUS||this.authMode===w.AUTH_MODE_NO_PROMPT&&!i.id)return Promise.reject(new l.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const e=e=>Promise.resolve().then(()=>"not-loaded"===this.loadStatus?(e||(this.authMode="immediate"),this.load().then(()=>null)):"loading"===this.loadStatus?this.load().then(()=>this.credential?null:(this.credential=e,this.fetchSelf("immediate"))):this.user&&this.credential===e?null:(this.credential=e,this.fetchSelf("immediate"))).then(e=>{e&&(this.sourceJSON=e,this.read(e))});return i.id?i.id.getCredential(this.restUrl,{prompt:this.authMode!==w.AUTH_MODE_NO_PROMPT}).then(t=>e(t)):e(this.credential)}normalizeUrl(e){const t=this.credential?.token;return this._normalizeSSL(t?e+(e.includes("?")?"&":"?")+"token="+t:e)}requestToTypedArray(e,t,r){return this.request(e,t).then(e=>{const t=w._resultsToTypedArray(r,{portal:this},e);return Promise.all(t.map(t=>"function"==typeof t.when?t.when():e)).then(()=>t,()=>t)})}request(e,t={}){const r={f:"json",...t.query},{authMode:s=(this.authMode===w.AUTH_MODE_ANONYMOUS||this.authMode===w.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:o=null,cacheBust:i=!1,method:l="auto",responseType:a="json",signal:u}=t,p={authMode:s,body:o,cacheBust:i,method:l,query:r,responseType:a,timeout:0,signal:u};return t.withCredentials&&(p.withCredentials=!0),(0,n.A)(this._normalizeSSL(e),p).then(e=>e.data)}toJSON(){throw new l.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new w({sourceJSON:e})}_getHelperService(e){const t=this.helperServices?.[e];if(!t)throw new l.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${e}"`);return t}async _fetchBasemaps(e,t){const r=new C.A;r.query=e||((0,S.Dd)()?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const s=await this.queryGroups(r,t);if(!s.total)return[];const o=s.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=o.sortField||"name",r.sortOrder=o.sortOrder||"desc";const i=await o.queryItems(r,t);return i.total?i.results.filter(e=>"Web Map"===e.type).map(e=>new P({portalItem:e})):[]}async _fetchBasemaps3D(e,t){const r=e||this.basemapGalleryGroupQuery3D;if(!r)return[];if((0,S.Dd)())return[];const s=new C.A({query:r,disableExtraQuery:!0}),o=await this.queryGroups(s,t);if(!o.total)return[];const i=o.results[0];s.num=100,s.query='type:"Web Scene"',s.sortField=i.sortField||"name",s.sortOrder=i.sortOrder||"desc";const n=await i.queryItems(s,t);return n.total?n.results.filter(e=>"Web Scene"===e.type).map(e=>new P({portalItem:e})):[]}_normalizeSSL(e){return e.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(e){if(e){const t=P.fromJSON(e);return t.portalItem={portal:this},t}return null}static _resultsToTypedArray(e,t,r,s){let o;if(r){const i=null!=s?s.signal:null;o=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(e||t)&&(o=o.map(r=>{const s=Object.assign(e?e.fromJSON(r):r,t);return"function"==typeof s.load&&s.load(i),s}))}else o=[];return o}};(0,s.Cg)([(0,c.MZ)()],T.prototype,"access",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"allSSL",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"authMode",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"authorizedCrossOriginDomains",void 0),(0,s.Cg)([(0,_.w)("authorizedCrossOriginDomains")],T.prototype,"readAuthorizedCrossOriginDomains",null),(0,s.Cg)([(0,c.MZ)()],T.prototype,"basemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],T.prototype,"basemapGalleryGroupQuery3D",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"g3DTilesGalleryGroupQuery"}})],T.prototype,"g3DTilesGalleryGroupQuery",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"g3dTilesEnabled"}})],T.prototype,"g3dTilesEnabled",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"bingKey",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"canListApps",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"canListData",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"canListPreProvisionedItems",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"canProvisionDirectPurchase",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"canSearchPublic",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"canShareBingPublic",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"canSharePublic",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"canSignInArcGIS",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"canSignInIDP",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"colorSetsGroupQuery",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"commentsEnabled",void 0),(0,s.Cg)([(0,c.MZ)({type:Date})],T.prototype,"created",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"credential",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"culture",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"currentVersion",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"customBaseUrl",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"default3DBasemapQuery",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"defaultBasemap",void 0),(0,s.Cg)([(0,_.w)("defaultBasemap")],T.prototype,"readDefaultBasemap",null),(0,s.Cg)([(0,c.MZ)()],T.prototype,"defaultDevBasemap",void 0),(0,s.Cg)([(0,_.w)("defaultDevBasemap")],T.prototype,"readDefaultDevBasemap",null),(0,s.Cg)([(0,c.MZ)({type:g.A})],T.prototype,"defaultExtent",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"defaultVectorBasemap",void 0),(0,s.Cg)([(0,_.w)("defaultVectorBasemap")],T.prototype,"readDefaultVectorBasemap",null),(0,s.Cg)([(0,c.MZ)()],T.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"devBasemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"eueiEnabled",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],T.prototype,"extraQuery",null),(0,s.Cg)([(0,c.MZ)()],T.prototype,"featuredGroups",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"featuredItemsGroupQuery",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"galleryTemplatesGroupQuery",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"layoutGroupQuery",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"livingAtlasGroupQuery",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],T.prototype,"hasAPIKey",null),(0,s.Cg)([(0,c.MZ)()],T.prototype,"hasCategorySchema",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"hasClassificationSchema",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"helpBase",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"helperServices",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"helpMap",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"homePageFeaturedContent",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"homePageFeaturedContentCount",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"httpPort",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"httpsPort",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"id",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"ipCntryCode",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],T.prototype,"isOrganization",null),(0,s.Cg)([(0,c.MZ)()],T.prototype,"isPortal",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"isReadOnly",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],T.prototype,"itemPageUrl",null),(0,s.Cg)([(0,c.MZ)()],T.prototype,"layerTemplatesGroupQuery",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"maxTokenExpirationMinutes",void 0),(0,s.Cg)([(0,c.MZ)({type:Date})],T.prototype,"modified",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"name",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"portalHostname",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"portalMode",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"portalProperties",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"region",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"recycleBinEnabled",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],T.prototype,"restUrl",null),(0,s.Cg)([(0,c.MZ)()],T.prototype,"rotatorPanels",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"showHomePageDescription",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"staticImagesUrl",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"2DStylesGroupQuery"}})],T.prototype,"stylesGroupQuery2d",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"stylesGroupQuery"}})],T.prototype,"stylesGroupQuery3d",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"supportsHostedServices",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"symbolSetsGroupQuery",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"templatesGroupQuery",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"thumbnail",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],T.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,c.MZ)()],T.prototype,"units",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"url",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"urlKey",void 0),(0,s.Cg)([(0,_.w)("urlKey")],T.prototype,"readUrlKey",null),(0,s.Cg)([(0,c.MZ)()],T.prototype,"user",void 0),(0,s.Cg)([(0,_.w)("user")],T.prototype,"readUser",null),(0,s.Cg)([(0,c.MZ)()],T.prototype,"use3dBasemaps",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"useDefault3dBasemap",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"useStandardizedQuery",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"useVectorBasemaps",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"vectorBasemapGalleryGroupQuery",void 0),T=w=(0,s.Cg)([(0,c.$K)("esri.portal.Portal")],T);const O=new FinalizationRegistry(e=>{e.remove()})},96360(e,t,r){r.d(t,{A:()=>p});var s,o=r(5482),i=r(49186),n=r(25482),l=r(91429),a=r(56507),u=r(16405);let p=s=class extends n.o{constructor(e){super(e),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const e=this.url,t=this.thumbnail;return e&&t&&this.portal?this.portal?.normalizeUrl(`${e}/info/${t}?f=json`):null}get url(){const e=this.portal?.restUrl;return e?e+"/community/groups/"+this.id:null}fetchCategorySchema(e){return this.portal.request(this.url+"/categorySchema",e).then(t=>{const r=t.categorySchema||[];return r.some(e=>"contentCategorySetsGroupQuery.LivingAtlas"===e.source)?this._fetchCategorySchemaSet("LivingAtlas",e):r})}fetchMembers(e){return this.portal.request(this.url+"/users",e)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}toJSON(){throw new i.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const t=new s({sourceJSON:e});return t.read(e),t}queryItems(e,t){let r=(0,a.dp)(u.A,e);const s=this.portal;return parseFloat(s.currentVersion)>5?(r=r||new u.A,s.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",t)):(r=r?r.clone():new u.A,r.query="group:"+this.id+(r.query?" "+r.query:""),s.queryItems(r,t))}_fetchCategorySchemaSet(e,t){const r=this.portal;return r.fetchSelf(r.authMode,!0,t).then(e=>{const s=e.contentCategorySetsGroupQuery;if(s){const e=new u.A({disableExtraQuery:!0,num:1,query:s});return r.queryGroups(e,t)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")}).then(r=>{if(r.total){const s=r.results[0],o=new u.A({num:1,query:`typekeywords:"${e}"`});return s.queryItems(o,t)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")}).then(e=>e.total?e.results[0].fetchData("json",t).then(e=>{const t=e?.categorySchema;return t?.length?t:[]}):[])}};(0,o.Cg)([(0,l.MZ)()],p.prototype,"access",void 0),(0,o.Cg)([(0,l.MZ)({type:Date})],p.prototype,"created",void 0),(0,o.Cg)([(0,l.MZ)()],p.prototype,"description",void 0),(0,o.Cg)([(0,l.MZ)()],p.prototype,"id",void 0),(0,o.Cg)([(0,l.MZ)()],p.prototype,"isInvitationOnly",void 0),(0,o.Cg)([(0,l.MZ)({type:Date})],p.prototype,"modified",void 0),(0,o.Cg)([(0,l.MZ)()],p.prototype,"owner",void 0),(0,o.Cg)([(0,l.MZ)()],p.prototype,"portal",void 0),(0,o.Cg)([(0,l.MZ)()],p.prototype,"snippet",void 0),(0,o.Cg)([(0,l.MZ)()],p.prototype,"sortField",void 0),(0,o.Cg)([(0,l.MZ)()],p.prototype,"sortOrder",void 0),(0,o.Cg)([(0,l.MZ)()],p.prototype,"sourceJSON",void 0),(0,o.Cg)([(0,l.MZ)()],p.prototype,"tags",void 0),(0,o.Cg)([(0,l.MZ)()],p.prototype,"thumbnail",void 0),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"thumbnailUrl",null),(0,o.Cg)([(0,l.MZ)()],p.prototype,"title",void 0),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"url",null),p=s=(0,o.Cg)([(0,l.$K)("esri.portal.PortalGroup")],p)},16405(e,t,r){r.d(t,{A:()=>c});var s,o=r(5482),i=r(69622),n=r(66552),l=r(4718),a=r(91429),u=r(5443),p=r(16930),d=r(28735);const h=new n.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let c=s=class extends i.A{constructor(e){super(e),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(e){"asc"!==e&&"desc"!==e||this._set("sortOrder",e)}clone(){return new s({categories:this.categories?(0,l.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(e,t){let r=[];this.categories&&(r=this.categories.map(e=>Array.isArray(e)?JSON.stringify(e):e));let s="";if(this.extent){const e=(0,d.Cv)(this.extent,p.A.WGS84);null!=e&&(s=`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`)}let o=this.query;const i=e.extraQuery;!this.disableExtraQuery&&i&&(o=o?"("+o+") AND "+i:i);const n={categories:r,bbox:s,q:o,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(n.sortField=this.sortField.split(",").map(e=>h.toJSON(e.trim())).join(","),n.sortOrder=this.sortOrder),{query:{...t,...n}}}};(0,o.Cg)([(0,a.MZ)()],c.prototype,"categories",void 0),(0,o.Cg)([(0,a.MZ)()],c.prototype,"disableExtraQuery",void 0),(0,o.Cg)([(0,a.MZ)({type:u.A})],c.prototype,"extent",void 0),(0,o.Cg)([(0,a.MZ)()],c.prototype,"filter",void 0),(0,o.Cg)([(0,a.MZ)()],c.prototype,"num",void 0),(0,o.Cg)([(0,a.MZ)()],c.prototype,"query",void 0),(0,o.Cg)([(0,a.MZ)()],c.prototype,"sortField",void 0),(0,o.Cg)([(0,a.MZ)()],c.prototype,"sortOrder",null),(0,o.Cg)([(0,a.MZ)()],c.prototype,"start",void 0),c=s=(0,o.Cg)([(0,a.$K)("esri.portal.PortalQueryParams")],c)},41318(e,t,r){r.d(t,{A:()=>p});var s=r(5482),o=r(49186),i=r(25482),n=r(91429);let l=class extends i.o{constructor(e){super(e),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const e=this.portal?.restUrl;return e?`${e}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new o.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,s.Cg)([(0,n.MZ)({type:Date})],l.prototype,"created",void 0),(0,s.Cg)([(0,n.MZ)()],l.prototype,"id",void 0),(0,s.Cg)([(0,n.MZ)()],l.prototype,"portal",void 0),(0,s.Cg)([(0,n.MZ)()],l.prototype,"title",void 0),(0,s.Cg)([(0,n.MZ)({readOnly:!0})],l.prototype,"url",null),(0,s.Cg)([(0,n.MZ)()],l.prototype,"username",void 0),l=(0,s.Cg)([(0,n.$K)("esri.portal.PortalFolder")],l);var a,u=r(96360);let p=a=class extends i.o{constructor(e){super(e),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.id=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userLicenseTypeId=null,this.userType=null}get thumbnailUrl(){const e=this.url,t=this.thumbnail;return e&&t?this.portal.normalizeUrl(`${e}/info/${t}?f=json`):null}get userContentUrl(){const e=this.portal?.restUrl;return e?`${e}/content/users/${this.id}`:null}get url(){const e=this.portal?.restUrl;return e?`${e}/community/users/${this.id}`:null}addItem(e){const t=e&&e.item,r=e?.data,s=e?.folder,o={method:"post"};t&&(o.query=t.createPostQuery(),null!=r&&("string"==typeof r?o.query.text=r:"object"==typeof r&&(o.query.text=JSON.stringify(r))));let i=this.userContentUrl;return s&&(i+="/"+("string"==typeof s?s:s.id)),this.portal.request(i+"/addItem",o).then(e=>(t.id=e.id,t.portal=this.portal,t.loaded?t.reload():t.load()))}async deleteItem(e,t=!1){let r=this.userContentUrl;e.ownerFolder&&(r+="/"+e.ownerFolder);const s=t?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${e.id}/delete`,{method:"post",query:s}),e.id=null,e.portal=null}async deleteItems(e,t=!1){e=e.slice();const r=this.userContentUrl+"/deleteItems",s=[],i=e.map(e=>e.id);if(i.length){const n={method:"post",query:{items:i.join(","),permanentDelete:t}},l=await this.portal.request(r,n);for(const t of l.results){const r=e.find(e=>t.itemId===e.id),i=t.success;let n=null;i?(r.id=null,r.portal=null):t.error&&(n=new o.A("portal:delete-item-failed",t.error.message,t.error)),s.push({item:r,success:i,error:n})}}return s}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then(e=>{let t;return t=e&&e.folders?e.folders.map(e=>{const t=l.fromJSON(e);return t.portal=this.portal,t}):[],t})}fetchGroups(){return this.portal.request(this.url??"").then(e=>{let t;return t=e&&e.groups?e.groups.map(e=>{const t=u.A.fromJSON(e);return t.portal=this.portal,t}):[],t})}async fetchItems(e){e??={};let t=this.userContentUrl??"";e.folder&&(t+="/"+e.folder.id);const{default:s}=await r.e(812).then(r.bind(r,80812)),o={folders:!1,inRecycleBin:!!e.inRecycleBin||null,foldersContent:!(e.folder||!e.includeSubfolderItems)||null,num:e.num||10,start:e.start||1,sortField:e.sortField||"created",sortOrder:e.sortOrder||"asc"},i=await this.portal.request(t,{query:o});let n;return i?.items?(n=i.items.map(e=>{const t=s.fromJSON(e);return t.portal=this.portal,t}),await Promise.all(n.map(e=>e.load())),{items:n,nextStart:i.nextStart,total:i.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then(e=>e.tags)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}queryFavorites(e){return this.favGroupId?(this._favGroup||(this._favGroup=new u.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(e)):Promise.reject(new o.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(e,t){const r=this.userContentUrl,s=t?{folderID:"string"==typeof t?t:t.id}:null;await this.portal.request(r+`/items/${e.id}/restore`,{method:"post",query:s})}toJSON(){throw new o.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const t=new a({sourceJSON:e});return t.read(e),t}};(0,s.Cg)([(0,n.MZ)()],p.prototype,"access",void 0),(0,s.Cg)([(0,n.MZ)({type:Date})],p.prototype,"created",void 0),(0,s.Cg)([(0,n.MZ)()],p.prototype,"culture",void 0),(0,s.Cg)([(0,n.MZ)()],p.prototype,"description",void 0),(0,s.Cg)([(0,n.MZ)()],p.prototype,"email",void 0),(0,s.Cg)([(0,n.MZ)()],p.prototype,"favGroupId",void 0),(0,s.Cg)([(0,n.MZ)()],p.prototype,"fullName",void 0),(0,s.Cg)([(0,n.MZ)()],p.prototype,"id",void 0),(0,s.Cg)([(0,n.MZ)({type:Date})],p.prototype,"modified",void 0),(0,s.Cg)([(0,n.MZ)()],p.prototype,"orgId",void 0),(0,s.Cg)([(0,n.MZ)()],p.prototype,"portal",void 0),(0,s.Cg)([(0,n.MZ)()],p.prototype,"preferredView",void 0),(0,s.Cg)([(0,n.MZ)()],p.prototype,"privileges",void 0),(0,s.Cg)([(0,n.MZ)()],p.prototype,"region",void 0),(0,s.Cg)([(0,n.MZ)()],p.prototype,"role",void 0),(0,s.Cg)([(0,n.MZ)()],p.prototype,"roleId",void 0),(0,s.Cg)([(0,n.MZ)()],p.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,n.MZ)()],p.prototype,"thumbnail",void 0),(0,s.Cg)([(0,n.MZ)({readOnly:!0})],p.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,n.MZ)()],p.prototype,"units",void 0),(0,s.Cg)([(0,n.MZ)({readOnly:!0})],p.prototype,"userContentUrl",null),(0,s.Cg)([(0,n.MZ)({readOnly:!0})],p.prototype,"url",null),(0,s.Cg)([(0,n.MZ)()],p.prototype,"username",void 0),(0,s.Cg)([(0,n.MZ)()],p.prototype,"userLicenseTypeId",void 0),(0,s.Cg)([(0,n.MZ)()],p.prototype,"userType",void 0),p=a=(0,s.Cg)([(0,n.$K)("esri.portal.PortalUser")],p)},98205(e,t,r){r.d(t,{KZ:()=>l,eh:()=>n,gf:()=>i,of:()=>o,uY:()=>s});const s=Symbol("SizeVariableInstance");function o(e){return null!=e&&"object"==typeof e&&s in e}function i(e){return null!=e&&!isNaN(e)&&isFinite(e)}function n(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function l(e,t){const r=t||n(e),s=e.valueUnit||"unknown";return"unknown"===r?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===s?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}},22671(e,t,r){r.d(t,{A:()=>v});var s,o=r(5482),i=r(52106),n=r(66552),l=r(25482),a=r(4718),u=r(91429),p=r(16930),d=r(60408),h=r(65864),c=r(50498),y=r(20437),g=r(36005),m=r(43937);const f=new n.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=s=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,i.A)}writeGeometryType(e,t,r,s){if(e)return void f.write(e,t,r,s);const{features:o}=this;if(o)for(const e of o)if(null!=e?.geometry)return void f.write(e.geometry.type,t,r,s)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,s=(0,h.rS)(e);return s&&!r&&t.spatialReference&&(s.spatialReference=p.A.fromJSON(t.spatialReference)),s}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new s(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const s=t.features[r];if(s.geometry){const t=e?.[r];s.geometry=t?.toJSON()||s.geometry}}return t}quantize(e){const{scale:[t,r],translate:[s,o]}=e,i=this.features,n=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-s)/t),e=>Math.round((o-e)/r));for(let e=0,t=i.length;e<t;e++)n?.(i[e].geometry)||(i.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[s,o],scale:[i,n]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*i+s,e=>o-e*n,l,a);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const s=p.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){const i=e[t],n=r.fromJSON(i),l=i.geometry?.spatialReference;null==n.geometry||l||(n.geometry.spatialReference=s);const a=i.aggregateGeometries,u=n.aggregateGeometries;if(a&&null!=u)for(const e in u){const t=u[e],r=a[e],o=r?.spatialReference;null==t||o||(t.spatialReference=s)}o.push(n)}return o}_quantizePoints(e,t,r){let s,o;const i=[];for(let n=0,l=e.length;n<l;n++){const l=e[n];if(n>0){const e=t(l[0]),n=r(l[1]);e===s&&n===o||(i.push([e-s,n-o]),s=e,o=n)}else s=t(l[0]),o=r(l[1]),i.push([s,o])}return i.length>0?i:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const s=(0,d.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,i=s.length;e<i;e++){const i=s[e],n=this._quantizePoints(i,t,r);n&&o.push(n)}return o.length>0?((0,d.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{const s=this._quantizePoints(e.points,t,r);return s&&s.length>0?(e.points=s,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,s,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),s&&(e.z=s(e.z))}:"polyline"===e||"polygon"===e?e=>{const i=(0,d.Bi)(e)?e.rings:e.paths;let n,l;for(let e=0,s=i.length;e<s;e++){const s=i[e];for(let e=0,o=s.length;e<o;e++){const o=s[e];e>0?(n+=o[0],l+=o[1]):(n=o[0],l=o[1]),o[0]=t(n),o[1]=r(l)}}if(s&&o)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2]),r[3]=o(r[3])}}else if(s)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}else if(o)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),s&&null!=e.zmax&&null!=e.zmin&&(e.zmax=s(e.zmax),e.zmin=s(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{const i=e.points;let n,l;for(let e=0,s=i.length;e<s;e++){const s=i[e];e>0?(n+=s[0],l+=s[1]):(n=s[0],l=s[1]),s[0]=t(n),s[1]=r(l)}if(s&&o)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=s(t[2]),t[3]=o(t[3])}else if(s)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=s(t[2])}else if(o)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,u.MZ)({type:[i.A],json:{write:!0}})],v.prototype,"features",void 0),(0,o.Cg)([(0,g.w)("features")],v.prototype,"readFeatures",null),(0,o.Cg)([(0,u.MZ)({type:[y.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,o.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:f.read}}})],v.prototype,"geometryType",void 0),(0,o.Cg)([(0,m.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,o.Cg)([(0,u.MZ)({types:c.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,g.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,u.MZ)({type:p.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,o.Cg)([(0,m.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=s=(0,o.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},94128(e,t,r){r.d(t,{D:()=>o,Z:()=>s});const s=Symbol("GraphicInstance");function o(e){return null!=e&&"object"==typeof e&&s in e}},16215(e,t,r){r.d(t,{S:()=>o,Y:()=>s});const s=Symbol("BasemapInstance");function o(e){return null!=e&&"object"==typeof e&&s in e}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6705],{68197(e,t,r){r.d(t,{A:()=>u});var n=r(40876),i=r(4576),s=r(34727),a=r(56507);function o(e){return(0,s.qE)((0,a.Vr)(e),0,255)}function l(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class u{static blendColors(e,t,r,n=new u){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=(0,n.lT)(e);return r?u.fromArray(r,t):null}static fromHex(e,t=new u){const r=(0,n.oW)(e);return r?u.fromArray(r,t):null}static fromArray(e,t=new u){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,n.Eq)(e);return r?u.fromArray(r,t):null}static fromJSON(e){return null!=e?new u([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){if("string"==typeof e)u.fromString(e,this);else if((0,i.yc)(e))u.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,i=4===r||8===r,s=`#${l(this.r,n)}${l(this.g,n)}${l(this.b,n)}${i?l(Math.round(255*this.a),n):""}`;return t?s.toUpperCase():s}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=o(this.r),r=o(this.g),n=o(this.b);return 0===e||1!==this.a?[t,r,n,o(255*this.a)]:[t,r,n]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}u.prototype.declaredClass="esri.Color"},52106(e,t,r){r.d(t,{A:()=>x});var n,i,s=r(5482),a=r(37838),o=r(69540),l=r(51447),u=r(25482),c=r(53966),p=r(36708),h=r(24326),d=r(91429),f=r(12195),m=r(65864),g=r(50498),y=r(55156),b=r(60950),v=r(54339),w=r(94128),M=r(33910);function I(e){if(null==e)return null;const t={};for(const r in e){const n=e[r];n&&(t[r]=n.toJSON())}return 0!==Object.keys(t).length?t:null}let x=class extends((0,o.OU)(u.o)){static{n=w.Z}static{i=this}constructor(e){super(e),this[n]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,h.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 i({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,y.I)(this.origin);if(e)return(0,v.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){const e=(0,y.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:I(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,f.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,n){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(i.action=n),"attributes"===e&&(i.attributeName=n),this.layer.graphicChanged(i)}_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,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const n=(0,m.rS)(e[r]);n&&(t[r]=n)}return 0!==Object.keys(t).length?t:null}}})],x.prototype,"aggregateGeometries",null),(0,s.Cg)([(0,d.MZ)({value:null})],x.prototype,"attributes",null),(0,s.Cg)([(0,d.MZ)({value:null,types:g.yR,json:{read:m.rS}})],x.prototype,"geometry",null),(0,s.Cg)([(0,d.MZ)()],x.prototype,"distance",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean})],x.prototype,"isAggregate",void 0),(0,s.Cg)([(0,d.MZ)({clonable:!1})],x.prototype,"layer",void 0),(0,s.Cg)([(0,d.MZ)({clonable:"reference"})],x.prototype,"origin",void 0),(0,s.Cg)([(0,d.MZ)({type:a.A,value:null})],x.prototype,"popupTemplate",null),(0,s.Cg)([(0,d.MZ)({clonable:"reference"})],x.prototype,"sourceLayer",void 0),(0,s.Cg)([(0,d.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],x.prototype,"statisticsAggregatedIds",void 0),(0,s.Cg)([(0,d.MZ)({value:null,types:M.Es})],x.prototype,"symbol",null),(0,s.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],x.prototype,"_version",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,value:!0})],x.prototype,"visible",null),x=i=(0,s.Cg)([(0,d.$K)("esri.Graphic")],x)},40876(e,t,r){r.d(t,{Eq:()=>d,G1:()=>m,TS:()=>s,Tf:()=>b,V6:()=>i,Vm:()=>f,ay:()=>l,c1:()=>g,c4:()=>a,j5:()=>u,lT:()=>p,oW:()=>c,xV:()=>w});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return!!n[e]||!!n[e.toLowerCase()]}function s(e){return n[e]??n[e.toLowerCase()]}function a(e){return[...s(e)]}function o(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,n=1){const i=(e%360+360)%360/360,s=r<=.5?r*(t+1):r+t-r*t,a=2*r-s;return[Math.round(255*o(a,s,i+1/3)),Math.round(255*o(a,s,i)),Math.round(255*o(a,s,i-1/3)),n]}function u(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,i=t?1:17,s=t?9===e.length:5===e.length;let a=Number("0x"+e.slice(1));if(isNaN(a))return null;const o=[0,0,0,1];let l;return s&&(l=a&n,a>>=r,o[3]=i*l/255),l=a&n,a>>=r,o[2]=i*l,l=a&n,a>>=r,o[1]=i*l,l=a&n,a>>=r,o[0]=i*l,o}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),n=parseInt(e.slice(3,4),16),i=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,n+16*n,(i+16*i)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function p(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),h(t)}return h(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function h(e){return e[0]=g(e[0]),e[1]=g(e[1]),e[2]=g(e[2]),e[3]=4===e.length?m(e[3]):1,e}function d(e){let t=i(e)?s(e):null;return t??=p(e),t??=c(e),t}function f(e){const t=d(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function m(e){return y(e,0,1)}function g(e){return Math.round(y(e,0,255))}function y(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const b=2.2,v=1/b;function w(e){return e**v}},38961(e,t,r){r.d(t,{A:()=>c});var n=r(5482),i=r(7762),s=r(36708),a=r(10107),o=r(64108),l=r(80559);let u=class extends i.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,l.fm)(()=>this._refresh(),s.OH))}destroy(){this.getCollections=null}_refresh(){const e=this.getCollections?.();if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t)}_createNewInstance(e){return new i.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const n of t)if(n){if(r(n)){const t=this.indexOf(n,e);t>=0?t!==e&&this.reorder(n,e):this.add(n,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(n);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,n.Cg)([(0,a.MZ)()],u.prototype,"getCollections",void 0),(0,n.Cg)([(0,a.MZ)()],u.prototype,"getChildrenFunction",void 0),(0,n.Cg)([(0,a.MZ)()],u.prototype,"itemFilterFunction",void 0),u=(0,n.Cg)([(0,o.$)("esri.core.CollectionFlattener")],u);const c=u},60999(e,t,r){r.d(t,{DZ:()=>f,Ke:()=>d,Tj:()=>c,UT:()=>m,aD:()=>y,jJ:()=>u});var n=r(5482),i=r(69622),s=r(97768),a=r(17676),o=r(10107),l=r(64108);function u(e,t,r){return(0,a.Lx)(e.map((e,n)=>t.apply(r,[e,n])))}async function c(e,t,r){return(await(0,a.Lx)(e.map((e,n)=>t.apply(r,[e,n])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function h(e){return{ok:!1,error:e}}async function d(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return h(e)}}async function f(e){try{return p(await e)}catch(e){return(0,a.QP)(e),h(e)}}function m(e,t){return new g(e,t)}let g=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=h(e),this._cleanup()}),this._abortHandle=(0,a.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,o.MZ)()],g.prototype,"value",null),(0,n.Cg)([(0,o.MZ)()],g.prototype,"error",null),(0,n.Cg)([(0,o.MZ)()],g.prototype,"finished",null),(0,n.Cg)([(0,o.MZ)()],g.prototype,"promise",void 0),(0,n.Cg)([(0,o.MZ)()],g.prototype,"_result",void 0),g=(0,n.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],g);class y{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,n.hk)(t)}}}},9093(e,t,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(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]]}r.d(t,{o8:()=>i,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:i,create:n,fromValues:function(e,t,r,n,i,s,a,o,l,u,c,p,h,d,f,m){return[e,t,r,n,i,s,a,o,l,u,c,p,h,d,f,m]}},Symbol.toStringTag,{value:"Module"}))},35522(e,t,r){r.d(t,{$A:()=>A,Bw:()=>s,C:()=>a,Cc:()=>S,DI:()=>I,Il:()=>$,Io:()=>b,Ln:()=>y,Om:()=>C,Qr:()=>p,Re:()=>u,S8:()=>x,T9:()=>m,WQ:()=>l,Z0:()=>E,_S:()=>d,aI:()=>L,ei:()=>T,fw:()=>O,g7:()=>P,gL:()=>_,hG:()=>v,hZ:()=>o,hs:()=>g,jb:()=>Z,jk:()=>f,lo:()=>G,lw:()=>c,m3:()=>w,oW:()=>j,t2:()=>F,tn:()=>h,uE:()=>B,xg:()=>q,ze:()=>M});var n=r(51850),i=r(34304);function s(e){const t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function c(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function p(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function h(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function d(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function f(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function m(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function g(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function y(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e}function b(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(r*r+n*n+i*i)}function v(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return r*r+n*n+i*i}function w(e){const t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function M(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function I(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function x(e,t){const r=t[0],n=t[1],i=t[2];let s=r*r+n*n+i*i;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 A(e,t,r){const n=t[0],i=t[1],s=t[2],a=r[0],o=r[1],l=r[2];return e[0]=i*l-s*o,e[1]=s*a-n*l,e[2]=n*o-i*a,e}function S(e,t,r,n){const i=t[0],s=t[1],a=t[2];return e[0]=i+n*(r[0]-i),e[1]=s+n*(r[1]-s),e[2]=a+n*(r[2]-a),e}function E(e,t,r){const n=t[0],i=t[1],s=t[2];return e[0]=r[0]*n+r[4]*i+r[8]*s+r[12],e[1]=r[1]*n+r[5]*i+r[9]*s+r[13],e[2]=r[2]*n+r[6]*i+r[10]*s+r[14],e}function T(e,t,r){const n=t[0],i=t[1],s=t[2];return e[0]=n*r[0]+i*r[3]+s*r[6],e[1]=n*r[1]+i*r[4]+s*r[7],e[2]=n*r[2]+i*r[5]+s*r[8],e}function _(e,t,r){return O(e,t,r[0],r[1],r[2],r[3])}function O(e,t,r,n,i,s){const a=t[0],o=t[1],l=t[2],u=n*l-i*o,c=i*a-r*l,p=r*o-n*a,h=n*p-i*c,d=i*u-r*p,f=r*c-n*u,m=2*s;return e[0]=a+u*m+2*h,e[1]=o+c*m+2*d,e[2]=l+p*m+2*f,e}function P(e,t){x(R,e),x(N,t);const r=C(R,N);return r>1?0:r<-1?Math.PI:Math.acos(r)}const R=(0,n.vt)(),N=(0,n.vt)();function F(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function L(e,t){if(e===t)return!0;const r=e[0],n=e[1],s=e[2],a=t[0],o=t[1],l=t[2],u=(0,i.FD)();return Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function j(e,t,r){const n=r[0]-t[0],i=r[1]-t[1],s=r[2]-t[2];let a=n*n+i*i+s*s;return a>0?(a=1/Math.sqrt(a),e[0]=n*a,e[1]=i*a,e[2]=s*a,e):(e[0]=0,e[1]=0,e[2]=0,e)}const Z=u,k=c,U=p,q=b,G=v,$=s,B=w;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:l,angle:P,bezier:function(e,t,r,n,i,s){const a=1-s,o=a*a,l=s*s,u=o*a,c=3*s*o,p=3*l*a,h=l*s;return e[0]=t[0]*u+r[0]*c+n[0]*p+i[0]*h,e[1]=t[1]*u+r[1]*c+n[1]*p+i[1]*h,e[2]=t[2]*u+r[2]*c+n[2]*p+i[2]*h,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,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:a,cross:A,crossAndNormalize:function(e,t,r){const n=t[0],i=t[1],s=t[2],a=r[0],o=r[1],l=r[2],u=i*l-s*o,c=s*a-n*l,p=n*o-i*a,h=Math.sqrt(u*u+c*c+p*p);return e[0]=u/h,e[1]=c/h,e[2]=p/h,e},direction:j,dist:q,distance:b,div:U,divide:p,dot:C,equals:L,exactEquals:F,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,r,n,i,s){const a=s*s,o=a*(2*s-3)+1,l=a*(s-2)+s,u=a*(s-1),c=a*(3-2*s);return e[0]=t[0]*o+r[0]*l+n[0]*u+i[0]*c,e[1]=t[1]*o+r[1]*l+n[1]*u+i[1]*c,e[2]=t[2]*o+r[2]*l+n[2]*u+i[2]*c,e},inverse:I,len:$,length:s,lerp:S,max:m,min:f,mul:k,multiply:c,negate:M,normalize:x,random:function(e,t=1){const r=i.Ov,n=2*r()*Math.PI,s=2*r()-1,a=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(n)*a,e[1]=Math.sin(n)*a,e[2]=s*t,e},rotateX:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[0],s[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),s[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateY:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),s[1]=i[1],s[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateZ:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),s[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),s[2]=i[2],e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[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:g,scaleAndAdd:y,set:o,sign:d,sqrDist:G,sqrLen:B,squaredDistance:v,squaredLength:w,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:Z,subtract:u,transformMat3:T,transformMat4:E,transformQuat:_,transformQuatValues:O},Symbol.toStringTag,{value:"Module"}))},16494(e,t,r){r.d(t,{Nd:()=>o,W5:()=>a});var n=r(17632);const i=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),s=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],a=new n.I({whiteList:i,onTagAttr:(e,t,r)=>{const n=`${t}="${r}"`;if(s.includes(t))return n},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),o=new n.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1)},90629(e,t,r){r.d(t,{Lz:()=>i,PN:()=>s,cr:()=>a,gs:()=>l,r_:()=>u,tc:()=>o});const n=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function i(e){return e?e/72*96:0}function s(e){return e?72*e/96:0}function a(e){if("string"==typeof e){const t=e.match(n);if(t){const r=Number(t[1]),n=t[3]&&t[3].toLowerCase(),i=e.startsWith("-"),a="px"===n?s(r):r;return i?-a:a}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function o(e=0,t=0){return{x:e,y:t}}function l(e=0,t=0){return[e,t]}function u(e=0,t=0,r=0){return[e,t,r]}},159(e,t,r){r.d(t,{A:()=>u});var n,i=r(5482),s=r(69540),a=r(25482),o=r(91429),l=r(99157);let u=n=class extends((0,s.OU)(a.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new n;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,i.Cg)([(0,o.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=n=(0,i.Cg)([(0,o.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,r){r.d(t,{A:()=>l});var n,i=r(5482),s=r(69540),a=r(25482),o=r(91429);let l=n=class extends((0,s.OU)(a.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new n({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,o.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,r)=>{t[r]=!e}}})],l.prototype,"isInverse",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=n=(0,i.Cg)([(0,o.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(e,t,r){r.r(t),r.d(t,{projectBuffer:()=>i});var n=r(49208);function i(e,t,r,i,s,a,o=Math.floor(e.length/3)){const l=(0,n.jd)(t,s);if(null==l)return!1;if(l===n.pO){if(e===i&&r===a)return!0;const t=r+3*o;for(let n=r,s=a;n<t;n++,s++)i[s]=e[n]??0;return!0}const u=r+3*o;for(let t=r,n=a;t<u;t+=3,n+=3)l(e,t,i,n);return!0}},49208(e,t,r){r.d(t,{Tp:()=>p,jd:()=>c,pO:()=>d,w5:()=>u});var n=r(34727),i=r(86211),s=r(73941),a=r(79258),o=r(34403),l=r(21325);const u={2:{5:d,7:null,9:null,10:d,1:M,6:null,8:null,0:null,3:m,11:g,2:d,4:S},5:{5:d,7:null,9:null,10:d,1:M,6:null,8:null,0:null,3:m,11:g,2:d,4:S},7:{5:null,7:d,9:null,10:d,1:null,6:w,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:v,0:null,3:null,11:null,2:null,4:null},3:{5:f,7:null,9:null,10:f,1:function(e,t,r,n){const i=e[t]/R,s=P-2*Math.atan(Math.exp(-e[t+1]/R)),a=R+(e[t+2]??0),o=Math.cos(s)*a;r[n]=Math.cos(i)*o,r[n+1]=Math.sin(i)*o,r[n+2]=Math.sin(s)*a},6:null,8:null,0:null,3:d,11:function(e,t,r,n){f(e,t,r,n),g(r,n,r,n)},2:f,4:function(e,t,r,n){f(e,t,r,n),S(r,n,r,n)}},4:{5:E,7:null,9:null,10:E,1:function(e,t,r,n){E(e,t,r,n),M(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){E(e,t,r,n),m(r,n,r,n)},11:function(e,t,r,n){E(e,t,r,n),g(r,n,r,n)},2:E,4:d},1:{5:A,7:null,9:null,10:A,1:d,6:null,8:null,0:null,3:function(e,t,r,n){A(e,t,r,n),m(r,n,r,n)},11:function(e,t,r,n){A(e,t,r,n),g(r,n,r,n)},2:A,4:function(e,t,r,n){A(e,t,r,n),S(r,n,r,n)}},6:{5:null,7:C,9:null,10:C,1:null,6:d,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:x,10:x,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:w,8:v,0:null,3:m,11:g,2:d,4:S},11:{5:y,7:null,9:null,10:y,1:function(e,t,r,n){y(e,t,r,n),M(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){y(e,t,r,n),m(r,n,r,n)},11:d,2:y,4:function(e,t,r,n){y(e,t,r,n),S(r,n,r,n)}}};function c(e,t){return p(e,t)?.projector}function p(e,t){if(null==e||null==t)return null;if(T.source.spatialReference===e&&T.dest.spatialReference===t)return T;const r=h(e,T.source),n=h(t,T.dest);return 0===r&&0===n?(0,l.aI)(e,t)?T.projector=d:T.projector=null:T.projector=u[r][n],T}function h(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,l.oT)(e)?t.spatialReferenceId=2:(0,l.K8)(e)?t.spatialReferenceId=3:(0,l.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,s.q8)(e)?t.spatialReferenceId=7:(0,s.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function d(e,t,r,n){e!==r&&(r[n++]=e[t++],r[n++]=e[t++],r[n]=e[t]??0)}function f(e,t,r,n){r[n]=O*(e[t]/R),r[n+1]=O*(P-2*Math.atan(Math.exp(-e[t+1]/R))),r[n+2]=e[t+2]??0}function m(e,t,r,i){!function(e,t,r,i,s){const a=.4999999*Math.PI,o=(0,n.qE)(_*e[t+1],-a,a),l=Math.sin(o);r[i++]=_*e[t]*s.radius,r[i++]=s.halfSemiMajorAxis*Math.log((1+l)/(1-l)),r[i]=e[t+2]??0}(e,t,r,i,a.$O)}function g(e,t,r,n){r[n]=e[t]*N,r[n+1]=e[t+1]*N,r[n+2]=e[t+2]??0}function y(e,t,r,n){r[n]=e[t]*F,r[n+1]=e[t+1]*F,r[n+2]=e[t+2]??0}function b(e,t,r,n,i){const s=i+(e[t+2]??0),a=_*e[t],o=_*e[t+1],l=Math.cos(o)*s;r[n]=Math.cos(a)*l,r[n+1]=Math.sin(a)*l,r[n+2]=Math.sin(o)*s}function v(e,t,r,n){b(e,t,r,n,a.Sw.radius)}function w(e,t,r,n){b(e,t,r,n,a.sH.radius)}function M(e,t,r,n){b(e,t,r,n,a.$O.radius)}function I(e,t,r,i,s){const a=e[t],o=e[t+1],l=e[t+2]??0,u=Math.sqrt(a*a+o*o+l*l),c=(0,n.YN)(l/(0===u?1:u)),p=Math.atan2(o,a);r[i++]=O*p,r[i++]=O*c,r[i]=u-s}function x(e,t,r,n){I(e,t,r,n,a.Sw.radius)}function C(e,t,r,n){I(e,t,r,n,a.sH.radius)}function A(e,t,r,n){I(e,t,r,n,a.$O.radius)}function S(e,t,r,n){!function(e,t,r,n,i){const s=_*e[t],a=_*e[t+1],o=e[t+2]??0,l=Math.sin(a),u=Math.cos(a),c=i.radius/Math.sqrt(1-i.eccentricitySquared*l*l);r[n++]=(c+o)*u*Math.cos(s),r[n++]=(c+o)*u*Math.sin(s),r[n++]=(c*(1-i.eccentricitySquared)+o)*l}(e,t,r,n,a.$O)}function E(e,t,r,n){const i=o.TP,s=e[t],l=e[t+1],u=e[t+2]??0;let c,p,h,d,f,m,g,y,b,v,w,M,I,x,C,A,S,E,T,_,P;c=Math.abs(u),p=s*s+l*l,h=Math.sqrt(p),d=p+u*u,f=Math.sqrt(d),_=Math.atan2(l,s),m=u*u/d,g=p/d,x=i.a2/f,C=i.a3-i.a4/f,g>.3?(y=c/f*(1+g*(i.a1+x+m*C)/f),T=Math.asin(y),v=y*y,b=Math.sqrt(1-v)):(b=h/f*(1-m*(i.a5-x-g*C)/f),T=Math.acos(b),v=1-b*b,y=Math.sqrt(v)),w=1-a.$O.eccentricitySquared*v,M=a.$O.radius/Math.sqrt(w),I=i.a6*M,x=h-M*b,C=c-I*y,S=b*x+y*C,A=b*C-y*x,E=A/(I/w+S),T+=E,P=S+A*E/2,u<0&&(T=-T),r[n++]=O*_,r[n++]=O*T,r[n]=P}const T={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:d},_=(0,n.kU)(1),O=(0,n.KJ)(1),P=.5*Math.PI,R=a.$O.radius,N=R*Math.PI/180,F=180/(R*Math.PI)},91218(e,t,r){r.r(t),r.d(t,{canProjectWithoutEngine:()=>D,initializeProjection:()=>V,isEqualBaseGCS:()=>W,isLoaded:()=>R,isLoadedOrLoad:()=>N,isLoadedOrLoadFor:()=>F,load:()=>j,project:()=>Z,projectAsync:()=>z,projectExtent:()=>ie,projectMany:()=>k,projectMultipoint:()=>Q,projectOrLoad:()=>q,projectOrLoadMany:()=>G,projectPoint:()=>K,projectPolygon:()=>re,projectPolyline:()=>ee,projectWithoutEngine:()=>J,requiresLoad:()=>L,test:()=>H,tryProject:()=>U,unload:()=>B});var n=r(49186),i=r(17676),s=r(62788),a=r(95488),o=r(51850),l=r(21276),u=r(73941),c=r(5443),p=r(91075),h=r(48526),d=r(86738),f=r(39829),m=r(82799),g=r(16930),y=r(98764),b=r(159),v=r(9762),w=r(49208);function M(e,t,r,n,i,s){return I[0]=e,I[1]=t,I[2]=r,(0,v.projectBuffer)(I,n,0,i,s,0)}const I=(0,o.vt)();var x=r(60408),C=r(21325),A=r(52006);let S=null,E=null,T=null,_=null,O={};const P=new a.I;function R(){return!!(E?.isLoaded()&&T?.isLoaded()&&_?.isLoaded())}function N(){return!!R()||((0,s.gc)(P),j(),!1)}function F(e,t){return!e||!t||D(e,t)||N()}function L(e,t){return!D(e,t)&&!R()}async function j(e){null==S&&(S=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(E=e,E.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(T=e,T.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(_=e,_.load()))])),await S,(0,i.Te)(e),P.notify()}function Z(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),k(e,e[0].spatialReference,t,r)):((0,l.f)(e),k([e],e.spatialReference,t,r)[0])}function k(e,t,r,n){if(null==t||null==r)return e;if(D(t,r,n))return e.map(e=>J(e,t,r));if(null==n?.geographicTransformation&&(0,u.jA)(t))return k(e.map(e=>J(e,t,g.A.WGS84)),g.A.WGS84,r,{zConversionDisabled:n?.zConversionDisabled});if(null==n?.geographicTransformation&&(0,u.jA)(r))return k(e,t,g.A.WGS84).map(e=>J(e,g.A.WGS84,r));if(!R())throw new $;if(!n?.geographicTransformation)if(n?.extendedParams)n={...n,geographicTransformation:_.getTransformation(t,r,n.areaOfInterestExtent)||new b.A};else if(!n?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,r);let i=O[e];i||(i=_.getTransformation(t,r)||new b.A,O[e]=i),n={geographicTransformation:i,zConversionDisabled:n?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?E.executeMany(e,r,n):T.executeMany(e,r,n)}function U(e,t,r){try{return Z(e,t,r)}catch(e){return null}}function q(e,t){const r=G([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function G(e,t,r){if(!R())for(const r of e)if(null!=r&&!(0,C.aI)(r.spatialReference,t)&&(0,C.fn)(r.spatialReference)&&(0,C.fn)(t)&&!D(r.spatialReference,t))return(0,s.gc)(P),{pending:j(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,C.aI)(e.spatialReference,t)?e:(0,C.fn)(e.spatialReference)&&(0,C.fn)(t)?Z(e,t,r):null)}}class $ extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function B(){S=null,E=null,T=null,_=null,O={}}const H={get loadPromise(){return S}};async function z(e,t,r){if((0,i.Te)(r),!e)return e;const n=G(Array.isArray(e)?e:[e],t,r);if(n.pending)return await n.pending,(0,i.Te)(r),z(e,t,r);const s=n.geometries??[];return Array.isArray(e)?s:s[0]}function D(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,C.aI)(e,t)||(0,C.fn)(e)&&(0,C.fn)(t)&&!!(0,w.jd)(e,t))}function W(e,t){if((0,C.aI)(e,t))return!0;if(!(0,C.fn)(e)||!(0,C.fn)(t))return!1;const r=(0,C.oT)(e)||(0,C.K8)(e)||(0,C.x1)(e),n=(0,C.oT)(t)||(0,C.K8)(t)||(0,C.x1)(t);return r&&n}async function V(e,t,r,n){if(R())return(0,i.NO)(n);if(Array.isArray(e)){for(const{source:t,dest:r,options:i}of e)if(t&&r&&!D(t,r,i))return j(n)}else if(e&&t&&!D(e,t,r))return j(n);return(0,i.NO)(n)}function J(e,t,r){return e?(0,x.fT)(e)?Y(e,t,new d.A,r,0):(0,x.ZC)(e)?se(e,t,new c.A,r,0):(0,x.Bi)(e)?ne(e,t,new f.A,r,0):(0,x.Rg)(e)?te(e,t,new m.A,r,0):(0,x.U9)(e)?X(e,t,new h.A,r,0):null:null}function K(e,t,r=t.spatialReference,n=0){return null!=r&&null!=e.spatialReference&&null!=Y(e,e.spatialReference,t,r,n)}function Y(e,t,r,n,i){ue[0]=e.x,ue[1]=e.y;const s=e.z;return ue[2]=void 0!==s?s:i,(0,v.projectBuffer)(ue,t,0,ue,n,0)?(r.x=ue[0],r.y=ue[1],r.spatialReference=n,void 0!==s||(0,u.xP)(n)?(r.z=ue[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function Q(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=X(e,e.spatialReference,t,r,n)}function X(e,t,r,n,i){const{points:s,hasZ:a,hasM:o}=e,l=[],u=s.length,c=[];for(const e of s)c.push(e[0],e[1],a?e[2]:i);if(!(0,v.projectBuffer)(c,t,0,c,n,0,u))return null;const p=le(a,n);for(let e=0;e<u;++e){const t=3*e,r=c[t],n=c[t+1];p&&o?l.push([r,n,c[t+2],s[e][3]]):p?l.push([r,n,c[t+2]]):o?l.push([r,n,s[e][2]]):l.push([r,n])}return r.points=l,r.spatialReference=n,r.hasZ=a,r.hasM=o,r}function ee(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=te(e,e.spatialReference,t,r,n)}function te(e,t,r,n,i){const{curvePaths:s,paths:a,hasZ:o,hasM:l}=e;if(!(s?oe(s,o??!1,l??!1,t,r.curvePaths=[],n,i):ae(a,o??!1,l??!1,t,r.paths,n,i)))return null;const u=le(o,n);return r.spatialReference=n,r.hasZ=u,r.hasM=l,r}function re(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=ne(e,e.spatialReference,t,r,n)}function ne(e,t,r,n,i){const{curveRings:s,rings:a,hasZ:o,hasM:l}=e;return(s?oe(s,o??!1,l??!1,t,r.curveRings=[],n,i):ae(a,o??!1,l??!1,t,r.rings,n,i))?(r.spatialReference=n,r.hasZ=le(o,n),r.hasM=l,r):null}function ie(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=se(e,e.spatialReference,t,r,n)}function se(e,t,r,n,i){const{xmin:s,ymin:a,xmax:o,ymax:l,hasZ:u,hasM:c}=e;if(!M(s,a,u?e.zmin:i,t,ue,n))return null;const p=le(u,n);return r.xmin=ue[0],r.ymin=ue[1],p&&(r.zmin=ue[2]),M(o,l,u?e.zmax:i,t,ue,n)?(r.xmax=ue[0],r.ymax=ue[1],p&&(r.zmax=ue[2]),c&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=n,r):null}function ae(e,t,r,n,i,s,a=0){const o=new Array;for(const r of e)for(const e of r)o.push(e[0],e[1],t?e[2]:a);if(!(0,v.projectBuffer)(o,n,0,o,s,0))return!1;let l=0;i.length=0;const u=t?3:2,c=le(t,s);for(const t of e){const e=new Array;for(const n of t){const t=o.slice(l,l+=3);c||t.pop(),r&&t.push(n[u]),e.push(t)}i.push(e)}return!0}function oe(e,t,r,n,i,s,a=0){const o=new Array;for(const r of e)for(const e of r){if((0,A.FG)(e))return!1;if((0,A.aO)(e)){const[r,n]=e.c;o.push(r[0],r[1],t?r[2]:a,n[0],n[1],a);continue}if((0,A.n1)(e)){const[r,n,i]=e.b;o.push(r[0],r[1],t?r[2]:a,n[0],n[1],a,i[0],i[1],a);continue}const r=e;o.push(r[0],r[1],t?r[2]:a)}if(!(0,v.projectBuffer)(o,n,0,o,s,0))return!1;let l=0;i.length=0;const u=t?3:2,c=le(t,s);for(const t of e){const e=new Array;for(const n of t){const t=o.slice(l,l+=3);if(c||t.pop(),r&&t.push((0,A.yP)(n)[u]),(0,A.FG)(n))return!1;if((0,A.aO)(n)){const r=o[l++],n=o[l++];++l,e.push({c:[t,[r,n]]});continue}if((0,A.n1)(n)){const r=o[l++],n=o[l++];++l;const i=o[l++],s=o[l++];++l,e.push({b:[t,[r,n],[i,s]]});continue}e.push(t)}i.push(e)}return!0}function le(e,t){return e||(0,u.xP)(t)||(0,C.aI)(t,y.Y0)}const ue=(0,o.vt)()},98764(e,t,r){r.d(t,{GD:()=>a,Y0:()=>u,lO:()=>c});var n=r(73941),i=r(16930),s=r(21325);const a=new i.A(n.fv),o=new i.A(n.FY),l=new i.A(n.LJ),u=new i.A(n.Ro);function c(e){const t=p.get(e);if(t)return t;let r=a;if(e)if(e===o)r=o;else if(e===l)r=l;else{const t=e.wkid,n=e.latestWkid;if(null!=t||null!=n)(0,s.tl)(t)||(0,s.tl)(n)?r=o:((0,s.ZL)(t)||(0,s.ZL)(n))&&(r=l);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===h?r=o:e===d&&(r=l)}}}return p.set(e,r),r}const p=new Map,h=o.wkt.toUpperCase(),d=l.wkt.toUpperCase()},4197(e,t,r){r.d(t,{Vj:()=>l,cj:()=>o,jh:()=>s,l5:()=>a});var n=r(34275),i=r(9093);function s(e){return e<=n.y9?new Array(e).fill(0):new Float64Array(e)}function a(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function o(e){return[...e]}function l(e){const t=(0,i.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>v,DC:()=>p,Ej:()=>d,Ie:()=>y,Jt:()=>b,Ne:()=>f,RF:()=>c,aI:()=>M,fA:()=>a,gE:()=>l,hZ:()=>g,iT:()=>h,is:()=>w,qv:()=>I,vI:()=>m,vY:()=>o,v_:()=>x,vt:()=>s,w1:()=>u}),r(35522);var n=r(5443),i=(r(19419),r(4197));function s(e=x){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function a(e,t,r,n,i,a,o=s()){return o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i,o[5]=a,o}function o(e,t=s()){return function(e,t,r,n=s()){return g(n,I),function(e,t,r=0,n=t.length/3){let i=e[0],s=e[1],a=e[2],o=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)i=Math.min(i,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),a=Math.min(a,t[r+3*e+2]),o=Math.max(o,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=i,e[1]=s,e[2]=a,e[3]=o,e[4]=l,e[5]=u}(n,e,t,r),n}(e,0,e.length/3,t)}function l(e,t=(0,i.jh)(24)){const[r,n,s,a,o,l]=e;return t[0]=r,t[1]=n,t[2]=s,t[3]=r,t[4]=n,t[5]=l,t[6]=r,t[7]=o,t[8]=s,t[9]=r,t[10]=o,t[11]=l,t[12]=a,t[13]=n,t[14]=s,t[15]=a,t[16]=n,t[17]=l,t[18]=a,t[19]=o,t[20]=s,t[21]=a,t[22]=o,t[23]=l,t}function u(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new n.A(r?{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 h(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 d(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 f(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function m(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function g(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 y(e){return e?g(e,I):s(I)}function b(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 v(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function w(e){return 6===e.length}function M(e,t,r){if(null==e||null==t)return e===t;if(!w(e)||!w(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const I=[1/0,1/0,1/0,-1/0,-1/0,-1/0],x=[0,0,0,0,0,0];s()},34403(e,t,r){r.d(t,{TP:()=>a});var n=r(79258);Math.PI;const i=n.$O.radius,s=n.$O.eccentricitySquared,a={a1:i*s,a2:i*s*i*s,a3:i*s*s/2,a4:i*s*i*s*2.5,a5:i*s+i*s*s/2,a6:1-s};n.$O.radius,n.$O.flattening,n.Sw.radius,n.Sw.flattening,n.sH.radius,n.sH.flattening,n.sH.radius},83960(e,t,r){r.d(t,{X_:()=>s,oW:()=>o,zx:()=>a});var n=r(34727),i=r(86211);function s(e,t){const r=t||e.extent,n=e.width,s=(0,i.GA)(r?.spatialReference);return r&&n?r.width/n*s*i.dy*96:0}function a(e,t,r){return function(e,t){return 0===t||(0,n.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,n.Sp)(e,t)||e>t}(e,r)}function o(e,t){return(0,n.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},50498(e,t,r){r.d(t,{Ye:()=>p,gy:()=>c,iI:()=>d,yR:()=>h});var n=r(66552),i=r(5443),s=r(91075),a=r(48526),o=r(86738),l=r(39829),u=r(82799);const c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),p=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),h={base:s.A,key:"type",typeMap:{extent:i.A,multipoint:a.A,point:o.A,polyline:u.A,polygon:l.A}},d=new n.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},55156(e,t,r){r.d(t,{I:()=>i,e:()=>n});const n=Symbol("idFieldsProviderSymbol");function i(e){return(t=e)&&n in t?e[n]:void 0;var t}},51904(e,t,r){r.r(t),r.d(t,{default:()=>Ae});var n=r(5482),i=r(92602),s=r(52106),a=r(37838),o=r(11254),l=r(7762),u=r(38961),c=r(49186),p=r(66552),h=r(4718),d=r(25728),f=r(17676),m=r(36708),g=r(16494),y=r(84952),b=r(91429),v=r(56507),w=r(49422),M=r(5443),I=r(16930),x=r(83960),C=r(21325),A=r(4146),S=r(63074),E=r(34287),T=r(8303),_=r(54310),O=r(25036),P=r(82935),R=r(38458),N=r(60694),F=r(10873),L=r(69622);const j={visible:"visibleSublayers"};let Z=class extends L.A{constructor(e){super(e),this.scale=0}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.sublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("wms-sublayer-update",e=>this.notifyChange(j[e.propertyName]))],"layer"))}get layers(){return this.visibleSublayers.filter(({name:e})=>e).map(({name:e})=>e).join()}get version(){this.commitProperty("layers");const e=this.layer;return e&&e.commitProperty("imageTransparency"),(this._get("version")||0)+1}get visibleSublayers(){const{layer:e,scale:t}=this,r=e?.sublayers,n=[],i=e=>{const{minScale:r,maxScale:s,sublayers:a,visible:o}=e;o&&(0===t||(0===r||t<=r)&&(0===s||t>=s))&&(a?a.forEach(i):n.push(e))};return r?.forEach(i),n}toJSON(){const{layer:e,layers:t}=this,{imageFormat:r,imageTransparency:n,version:i}=e;return{format:r,request:"GetMap",service:"WMS",styles:"",transparent:n?"TRUE":"FALSE",version:i,layers:t}}};(0,n.Cg)([(0,b.MZ)()],Z.prototype,"layer",null),(0,n.Cg)([(0,b.MZ)({readOnly:!0})],Z.prototype,"layers",null),(0,n.Cg)([(0,b.MZ)({type:Number})],Z.prototype,"scale",void 0),(0,n.Cg)([(0,b.MZ)({readOnly:!0})],Z.prototype,"version",null),(0,n.Cg)([(0,b.MZ)({readOnly:!0})],Z.prototype,"visibleSublayers",null),Z=(0,n.Cg)([(0,b.$K)("esri.layers.support.ExportWMSImageParameters")],Z);var k,U=r(33446),q=r(4902),G=r(36005);let $=0,B=k=class extends((0,q.s)((0,d.M)(L.A))){constructor(e){super(e),this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.legendUrl=null,this.legendEnabled=!0,this.layer=null,this.maxScale=0,this.minScale=0,this.name=null,this.parent=null,this.popupEnabled=!1,this.queryable=!1,this.spatialReferences=null,this.title=null,this.addHandles([(0,m.on)(()=>this.sublayers,"after-add",({item:e})=>{e.parent=this,e.layer=this.layer},m.OH),(0,m.on)(()=>this.sublayers,"after-remove",({item:e})=>{e.layer=e.parent=null},m.OH),(0,m.wB)(()=>this.sublayers,(e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=this,t.layer=this.layer},m.OH),(0,m.wB)(()=>this.layer,e=>{if(this.sublayers)for(const t of this.sublayers)t.layer=e},m.OH)])}get id(){return this._get("id")??$++}set id(e){this._set("id",e)}readLegendUrl(e,t){return t.legendUrl??t.legendURL??null}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}get sublayers(){return this._get("sublayers")}set sublayers(e){this._set("sublayers",e)}castSublayers(e){return(0,v.dp)(l.A.ofType(k),e)}set visible(e){this._setAndNotifyLayer("visible",e)}clone(){const e=new k;return this.hasOwnProperty("description")&&(e.description=this.description),this.hasOwnProperty("fullExtent")&&(e.fullExtent=this.fullExtent.clone()),this.hasOwnProperty("fullExtents")&&(e.fullExtents=this.fullExtents?.map(e=>e.clone())??null),this.hasOwnProperty("legendUrl")&&(e.legendUrl=this.legendUrl),this.hasOwnProperty("legendEnabled")&&(e.legendEnabled=this.legendEnabled),this.hasOwnProperty("layer")&&(e.layer=this.layer),this.hasOwnProperty("name")&&(e.name=this.name),this.hasOwnProperty("parent")&&(e.parent=this.parent),this.hasOwnProperty("queryable")&&(e.queryable=this.queryable),this.hasOwnProperty("sublayers")&&(e.sublayers=this.sublayers?.map(e=>e.clone())),this.hasOwnProperty("spatialReferences")&&(e.spatialReferences=this.spatialReferences?.map(e=>e)),this.hasOwnProperty("visible")&&(e.visible=this.visible),this.hasOwnProperty("title")&&(e.title=this.title),e}_setAndNotifyLayer(e,t){const r=this.layer;this._get(e)!==t&&(this._set(e,t),r&&r.emit("wms-sublayer-update",{propertyName:e,id:this.id}))}};(0,n.Cg)([(0,b.MZ)()],B.prototype,"description",void 0),(0,n.Cg)([(0,b.MZ)({readOnly:!0})],B.prototype,"dimensions",void 0),(0,n.Cg)([(0,b.MZ)({type:M.A,json:{name:"extent"}})],B.prototype,"fullExtent",void 0),(0,n.Cg)([(0,b.MZ)()],B.prototype,"fullExtents",void 0),(0,n.Cg)([(0,b.MZ)({type:Number,json:{write:{enabled:!1,overridePolicy:()=>({ignoreOrigin:!0,enabled:!0})}}})],B.prototype,"id",null),(0,n.Cg)([(0,b.MZ)({type:String,json:{name:"legendUrl",write:{ignoreOrigin:!0}}})],B.prototype,"legendUrl",void 0),(0,n.Cg)([(0,G.w)("legendUrl",["legendUrl","legendURL"])],B.prototype,"readLegendUrl",null),(0,n.Cg)([(0,b.MZ)({type:Boolean,json:{name:"showLegend",origins:{"web-map":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],B.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,b.MZ)()],B.prototype,"layer",void 0),(0,n.Cg)([(0,b.MZ)()],B.prototype,"maxScale",void 0),(0,n.Cg)([(0,b.MZ)()],B.prototype,"minScale",void 0),(0,n.Cg)([(0,b.MZ)({readOnly:!0})],B.prototype,"effectiveScaleRange",null),(0,n.Cg)([(0,b.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],B.prototype,"name",void 0),(0,n.Cg)([(0,b.MZ)()],B.prototype,"parent",void 0),(0,n.Cg)([(0,b.MZ)({type:Boolean,json:{read:{source:"showPopup"},write:{ignoreOrigin:!0,target:"showPopup"}}})],B.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,b.MZ)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],B.prototype,"queryable",void 0),(0,n.Cg)([(0,b.MZ)()],B.prototype,"sublayers",null),(0,n.Cg)([(0,b.wg)("sublayers")],B.prototype,"castSublayers",null),(0,n.Cg)([(0,b.MZ)({type:[Number],json:{read:{source:"spatialReferences"}}})],B.prototype,"spatialReferences",void 0),(0,n.Cg)([(0,b.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],B.prototype,"title",void 0),(0,n.Cg)([(0,b.MZ)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"}}})],B.prototype,"visible",null),B=k=(0,n.Cg)([(0,b.$K)("esri.layers.support.WMSSublayer")],B);var H=r(4576),z=r(92647);const D={84:4326,83:4269,27:4267};function W(e){if(!e)return null;const t={idCounter:-1};"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/xml"));const r=e.documentElement;if("ServiceExceptionReport"===r.nodeName){const e=Array.prototype.slice.call(r.childNodes).map(e=>e.textContent).join("\r\n");throw new c.A("wmslayer:wms-capabilities-xml-is-not-valid","The server returned errors when the WMS capabilities were requested.",e)}const n=Y("Capability",r),i=Y("Service",r),s=n&&Y("Request",n);if(!n||!i||!s)return null;const a=Y("Layer",n);if(!a)return null;const o="WMS_Capabilities"===r.nodeName||"WMT_MS_Capabilities"===r.nodeName?r.getAttribute("version"):"1.3.0",l=X("Title",i,"")||X("Name",i,""),u=X("AccessConstraints",i,""),p=/^none$/i.test(u)?"":u,h=X("Abstract",i,""),d=parseInt(X("MaxWidth",i,"5000"),10),f=parseInt(X("MaxHeight",i,"5000"),10),m=re(s,"GetMap"),g=te(s,"GetMap"),y=ie(a,o,t);if(!y)return null;let b,v=0;const w=Array.prototype.slice.call(n.childNodes),M=y.sublayers??[],I=e=>{null!=e&&M.push(e)};w.forEach(e=>{"Layer"===e.nodeName&&(0===v?b=e:1===v?(y.name&&(y.name="",I(ie(b,o,t))),I(ie(e,o,t))):I(ie(e,o,t)),v++)});const x=y.sublayers??[],C=y.fullExtents??[];0===x.length&&x.push(y),y.extent??=x[0].extent;const A=y.spatialReferences.length>0?y.spatialReferences:V(y),S=te(s,"GetFeatureInfo"),E=S?re(s,"GetFeatureInfo"):null,T=J(x),_=y.minScale||0,O=y.maxScale||0,P=y.dimensions??[],R=T.reduce((e,t)=>e.concat(t.dimensions??[]),[]),N=P.concat(R).filter(ae);let F=null;if(N.length){const e=N.map(e=>{const{extent:t}=e;return function(e){return Array.isArray(e)&&e.length>0&&e[0]instanceof Date}(t)?t.map(e=>e.getTime()):t?.map(e=>[e.min.getTime(),e.max.getTime()])}).flat(2).filter(H.Ru),{start:t,end:r}=e.reduce((e,t)=>({start:Math.min(e.start,t),end:Math.max(e.end,t)}),{start:1/0,end:-1/0});F={startTimeField:null,endTimeField:null,trackIdField:void 0,timeExtent:[t,r]}}return{copyright:p,description:h,dimensions:P,extent:y.extent,fullExtents:C,featureInfoFormats:E,featureInfoUrl:S,mapUrl:g,maxWidth:d,maxHeight:f,maxScale:O,minScale:_,layers:T,spatialReferences:A,supportedImageFormatTypes:m,timeInfo:F,title:l,version:o}}function V(e){if(e.spatialReferences.length>0)return e.spatialReferences;if(e.sublayers)for(const t of e.sublayers){const e=V(t);if(e.length>0)return e}return[]}function J(e){let t=[];for(const r of e)t.push(r),r.sublayers?.length&&(t=t.concat(J(r.sublayers)),delete r.sublayers);return t}function K(e,t,r){return t.getAttribute(e)??r}function Y(e,t){for(let r=0;r<t.childNodes.length;r++){const n=t.childNodes[r];if(se(n)&&n.nodeName===e)return n}return null}function Q(e,t){if(null==t)return[];const r=[];for(let n=0;n<t.childNodes.length;n++){const i=t.childNodes[n];se(i)&&i.nodeName===e&&r.push(i)}return r}function X(e,t,r){return Y(e,t)?.textContent??r}function ee(e,t,r){const n=parseFloat(e.getAttribute("minx")??"0"),i=parseFloat(e.getAttribute("miny")??"0"),s=parseFloat(e.getAttribute("maxx")??"0"),a=parseFloat(e.getAttribute("maxy")??"0");return{xmin:r?isNaN(i)?-Number.MAX_VALUE:i:isNaN(n)?-Number.MAX_VALUE:n,ymin:r?isNaN(n)?-Number.MAX_VALUE:n:isNaN(i)?-Number.MAX_VALUE:i,xmax:r?isNaN(a)?Number.MAX_VALUE:a:isNaN(s)?Number.MAX_VALUE:s,ymax:r?isNaN(s)?Number.MAX_VALUE:s:isNaN(a)?Number.MAX_VALUE:a,spatialReference:{wkid:t}}}function te(e,t){const r=Y(t,e);if(r){const e=Y("DCPType",r);if(e){const t=Y("HTTP",e);if(t){const e=Y("Get",t);if(e){let t=function(e,t,r){const n=Y("OnlineResource",r);return n?K("xlink:href",n,null):null}(0,0,e);if(t){const e=t.indexOf("&");return-1!==e&&e===t.length-1&&(t=t.slice(0,-1)),function(e,t){const r=[],n=(0,y.An)(e);for(const e in n.query)n.query.hasOwnProperty(e)&&(t.includes(e.toLowerCase())||r.push(e+"="+n.query[e]));return n.path+(r.length?"?"+r.join("&"):"")}(t,["service","request"])}}}}}return null}function re(e,t){const r=Q("Operation",e);if(!r.length)return Q("Format",Y(t,e)).map(({textContent:e})=>e).filter(H.Ru);const n=[];for(const e of r)if(e.getAttribute("name")===t){const t=Q("Format",e);for(const{textContent:e}of t)null!=e&&n.push(e)}return n}function ne(e,t,r){const n=Y(t,e);if(!n)return r;const{textContent:i}=n;if(null==i||""===i)return r;const s=Number(i);return isNaN(s)?r:s}function ie(e,t,r){if(!e)return null;const n=e.getAttribute("queryable")?.toLowerCase(),i="1"===n||"true"===n,s={id:r.idCounter++,fullExtents:[],parentLayerId:null,queryable:i,spatialReferences:[],sublayers:null},a=Y("LatLonBoundingBox",e),o=Y("EX_GeographicBoundingBox",e),l=a?ee(a,4326):o?{xmin:parseFloat(X("westBoundLongitude",o,"0")),ymin:parseFloat(X("southBoundLatitude",o,"0")),xmax:parseFloat(X("eastBoundLongitude",o,"0")),ymax:parseFloat(X("northBoundLatitude",o,"0")),spatialReference:{wkid:4326}}:{xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:{wkid:4326}};s.minScale=ne(e,"MaxScaleDenominator",0),s.maxScale=ne(e,"MinScaleDenominator",0);const u=["1.0.0","1.1.0","1.1.1"].includes(t)?"SRS":"CRS";return Array.prototype.slice.call(e.childNodes).forEach(e=>{if("Name"===e.nodeName)s.name=e.textContent||"";else if("Title"===e.nodeName)s.title=e.textContent||"";else if("Abstract"===e.nodeName)s.description=e.textContent||"";else if("BoundingBox"===e.nodeName){const r=e.getAttribute(u),n=r?.indexOf(":");if(n&&n>-1){let i=parseInt(r.slice(n+1),10);0===i||isNaN(i)||(i=D[i]??i);const a="1.3.0"===t?ee(e,i,(0,R.m)(i)):ee(e,i);a&&s.fullExtents&&s.fullExtents.push(a)}}else if(e.nodeName===u)(e.textContent?.split(" ")??[]).forEach(e=>{let t=NaN;if(e.includes(":")){const[r,n]=e.toUpperCase().split(":");"CRS"!==r&&"EPSG"!==r||(t=parseInt(n,10))}else t=parseInt(e,10);if(0!==t&&!isNaN(t)){const e=D[t]??t;s.spatialReferences.includes(e)||s.spatialReferences.push(e)}});else if("Style"!==e.nodeName||s.legendUrl){if("Layer"===e.nodeName){const n=ie(e,t,r);n&&(n.parentLayerId=s.id,s.sublayers||(s.sublayers=[]),s.sublayers.push(n))}}else{const t=Y("LegendURL",e);if(t){const e=Y("OnlineResource",t);e&&(s.legendUrl=e.getAttribute("xlink:href"))}}}),s.extent=l,s.dimensions=Q("Dimension",e).filter(e=>e.getAttribute("name")&&e.getAttribute("units")&&e.textContent).map(e=>{const t=e.getAttribute("name"),r=e.getAttribute("units"),n=e.textContent,i=e.getAttribute("unitSymbol")??void 0,s=e.getAttribute("default")??void 0,a="0"!==K("default",e,"0"),o="0"!==K("nearestValue",e,"0"),l="0"!==K("current",e,"0");return ae({name:t,units:r})?{name:"time",units:"ISO8601",extent:ue(n),default:ue(s),multipleValues:a,nearestValue:o,current:l}:function(e){return/^elevation$/i.test(e.name)&&/^(epsg|crs):\d+$/i.test(e.units)}({name:t,units:r})?{name:"elevation",units:r,extent:oe(n),unitSymbol:i,default:oe(s),multipleValues:a,nearestValue:o}:{name:t,units:r,extent:le(n),unitSymbol:i,default:le(s),multipleValues:a,nearestValue:o}}),s}function se(e){return e.nodeType===Node.ELEMENT_NODE}function ae(e){return/^time$/i.test(e.name)&&/^iso8601$/i.test(e.units)}function oe(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map(e=>{const t=e.split("/");return t.length<2?null:{min:parseFloat(t[0]),max:parseFloat(t[1]),resolution:t.length>=3&&"0"!==t[2]?parseFloat(t[2]):void 0}}).filter(H.Ru):r.map(e=>parseFloat(e))}function le(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map(e=>{const t=e.split("/");return t.length<2?null:{min:t[0],max:t[1],resolution:t.length>=3&&"0"!==t[2]?t[2]:void 0}}).filter(H.Ru):r}function ue(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map(e=>{const t=e.split("/");return t.length<2?null:{min:ce(t[0]),max:ce(t[1]),resolution:t.length>=3&&"0"!==t[2]?pe(t[2]):void 0}}).filter(H.Ru):r.map(e=>ce(e))}function ce(e){return z.c9.fromISO(e,{zone:z.mQ.utcInstance}).toJSDate()}function pe(e){const t=e.match(/(?:p(\d+y|\d+(?:\.|,)\d+y)?(\d+m|\d+(?:\.|,)\d+m)?(\d+d|\d+(?:\.|,)\d+d)?)?(?:t(\d+h|\d+(?:\.|,)\d+h)?(\d+m|\d+(?:\.|,)\d+m)?(\d+s|\d+(?:\.|,)\d+s)?)?/i);return t?{years:he(t[1]),months:he(t[2]),days:he(t[3]),hours:he(t[4]),minutes:he(t[5]),seconds:he(t[6])}:null}function he(e){if(!e)return 0;const t=e.match(/(?:\d+(?:\.|,)\d+|\d+)/);if(!t)return 0;const r=t[0].replace(",",".");return Number(r)}function de(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}function fe(e){if(!e||e.isAllTime||e.isEmpty)return;const{start:t,end:r}=e;return t&&t.getTime()===r?.getTime()?`${de(t)}`:`${t?de(t):"0000-01-01T00:00:00Z"}/${r?de(r):"9999-12-31T23:59:59Z"}`}const me=new Set([102100,3857,102113,900913]),ge=new Set([3395,54004]);var ye=r(79677),be=r(10184),ve=r(43937);const we=new p.J({bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml"},{ignoreUnknown:!1});function Me(e){return"text/html"===e}function Ie(e){return"text/plain"===e}let xe=class extends((0,S.dM)((0,P.e)((0,_.J)((0,O.j)((0,E.q)((0,T.A)((0,d.M)(A.A)))))))){constructor(...e){super(...e),this.allSublayers=new u.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.customParameters=null,this.customLayerParameters=null,this.copyright=null,this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.featureInfoFormats=null,this.featureInfoUrl=null,this.fetchFeatureInfoFunction=null,this.imageFormat=null,this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.legendEnabled=!0,this.mapUrl=null,this.isReference=null,this.operationalLayerType="WMS",this.spatialReference=null,this.spatialReferences=null,this.sublayers=null,this.type="wms",this.version=null,this.addHandles([(0,m.on)(()=>this.sublayers,"after-add",({item:e})=>{e.parent=e.layer=this},m.OH),(0,m.on)(()=>this.sublayers,"after-remove",({item:e})=>{e.layer=e.parent=null},m.OH),(0,m.wB)(()=>this.sublayers,(e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=t.layer=this},m.OH)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this.allSublayers.destroy()}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WMS"]},e).catch(f.QP).then(()=>this._fetchService(t)).then(()=>this._checkLayerValidity())),Promise.resolve(this)}get timeInfo(){return super.timeInfo}set timeInfo(e){super.timeInfo=e}readFullExtentFromItemOrMap(e,t){const r=t.extent;return r?new M.A({xmin:r[0][0],ymin:r[0][1],xmax:r[1][0],ymax:r[1][1]}):null}writeFullExtent(e,t){t.extent=[[e.xmin,e.ymin],[e.xmax,e.ymax]]}get featureInfoFormat(){return null==this.featureInfoFormats?null:this.featureInfoFormats.find(Me)??this.featureInfoFormats.find(Ie)??null}set featureInfoFormat(e){null==e?(this.revertToOrigin("featureInfoFormat","service"),this._clearOverride("featureInfoFormat")):(Me(e)||Ie(e))&&this._override("featureInfoFormat",e)}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("image/png")?"image/png":r&&r[0]}readSpatialReferenceFromItemOrDocument(e,t){return new I.A(t.spatialReferences[0])}writeSpatialReferences(e,t){const r=this.spatialReference?.wkid;e&&r?(t.spatialReferences=e.filter(e=>e!==r),t.spatialReferences.unshift(r)):t.spatialReferences=e}readSublayersFromItemOrMap(e,t,r){return Ce(t.layers,r,t.visibleLayers)}readSublayers(e,t,r){return Ce(t.layers,r)}writeSublayers(e,t,r,n){t.layers=[];const i=new Map,s=e.flatten(({sublayers:e})=>e??[]);for(const e of s)if("number"==typeof e.parent?.id){const t=i.get(e.parent.id);null!=t?t.push(e.id):i.set(e.parent.id,[e.id])}for(const e of s){const r={sublayer:e,...n},s=e.write({parentLayerId:"number"==typeof e.parent?.id?e.parent.id:-1},r);if(i.has(e.id)&&(s.sublayerIds=i.get(e.id)),!e.sublayers&&e.name){const n=e.write({},r);delete n.id,t.layers.push(n)}}t.visibleLayers=s.filter(({visible:e,sublayers:t})=>e&&!t).map(({name:e})=>e).toArray()}set url(e){if(!e)return void this._set("url",e);const{path:t,query:r}=(0,y.An)(e);for(const e in r)/^(request|service)$/i.test(e)&&delete r[e];const n=(0,y.a6)(t,r??{});this._set("url",n)}createExportImageParameters(e,t,r,n){const i=n?.pixelRatio??1,s=(0,x.X_)({extent:e,width:t})*i,a=new Z({layer:this,scale:s}),{xmin:o,ymin:l,xmax:u,ymax:c,spatialReference:p}=e,h=function(e,t){let r=e.wkid;return null==t?r:(null!=r&&t.includes(r)||!e.latestWkid||(r=e.latestWkid),null!=r&&me.has(r)?t.find(e=>me.has(e))||t.find(e=>ge.has(e))||102100:r)}(p,this.spatialReferences),d="1.3.0"===this.version&&(0,R.m)(h)?`${l},${o},${c},${u}`:`${o},${l},${u},${c}`,f=a.toJSON(),m="1.3.0"===this.version?"crs":"srs";return{bbox:d,[m]:null==h||isNaN(h)?void 0:"EPSG:"+h,...f}}async fetchImage(e,t,r,n){const i=this.mapUrl,s=this.createExportImageParameters(e,t,r,n);if(!s.layers){const e=document.createElement("canvas");return e.width=t,e.height=r,e}const a=fe(n?.timeExtent),l={responseType:"image",query:this._mixCustomParameters({width:t,height:r,...s,time:a,...this.refreshParameters}),signal:n?.signal};return(0,o.A)(i??"",l).then(e=>e.data)}async fetchImageBitmap(e,t,r,n){const i=this.mapUrl??"",s=this.createExportImageParameters(e,t,r,n);if(!s.layers){const e=document.createElement("canvas");return e.width=t,e.height=r,e}const a=fe(n?.timeExtent),l={responseType:"blob",query:this._mixCustomParameters({width:t,height:r,...s,time:a,...this.refreshParameters}),signal:n?.signal},{data:u}=await(0,o.A)(i,l);return(0,U.mn)(u,i,n)}fetchFeatureInfo(e,t,r,n,i){const s=(0,x.X_)({extent:e,width:t}),a=function(e){const t=e.filter(e=>e.popupEnabled&&e.name&&e.queryable);return t.length?t.map(({name:e})=>e).join():null}(new Z({layer:this,scale:s}).visibleSublayers);if(null==this.featureInfoUrl||null==a)return Promise.resolve([]);if(null==this.fetchFeatureInfoFunction&&null==this.featureInfoFormat)return Promise.resolve([]);const o="1.3.0"===this.version?{I:n,J:i}:{x:n,y:i},l={query_layers:a,request:"GetFeatureInfo",info_format:this.featureInfoFormat,feature_count:25,width:t,height:r,...o},u={...this.createExportImageParameters(e,t,r),...l},c=this._mixCustomParameters(u);return null!=this.fetchFeatureInfoFunction?this.fetchFeatureInfoFunction(c):this._defaultFetchFeatureInfoFunction((0,y.a6)(this.featureInfoUrl,c))}findSublayerById(e){return this.allSublayers.find(t=>t.id===e)}findSublayerByName(e){return this.allSublayers.find(t=>t.name===e)}serviceSupportsSpatialReference(e){return(0,N.bd)(this.url)||null!=this.spatialReferences&&this.spatialReferences.some(t=>{const r=900913===t?I.A.WebMercator:new I.A({wkid:t});return(0,C.aI)(r,e)})}_defaultFetchFeatureInfoFunction(e){const t=document.createElement("iframe");t.src=(0,y.yM)(g.W5.sanitizeUrl((0,y.s2)(e))),t.style.border="none",t.style.margin="0",t.style.width="100%",t.setAttribute("sandbox","");const r=new a.A({title:this.title,content:t}),n=new s.A({sourceLayer:this,popupTemplate:r});return Promise.resolve([n])}async _fetchService(e){if(!this.resourceInfo&&this.parsedUrl?.path){const{path:t,query:r}=this.parsedUrl,{data:n}=await(0,o.A)(t,{query:{SERVICE:"WMS",REQUEST:"GetCapabilities",...r,...this.customParameters},responseType:"xml",signal:e});this.resourceInfo=W(n)}if(this.parsedUrl){const e=new y.s0(this.parsedUrl.path),{httpsDomains:t}=i.A.request;"https"!==e.scheme||e.port&&"443"!==e.port||!e.host||t.includes(e.host)||t.push(e.host)}this.read(this.resourceInfo,{origin:"service"})}_checkLayerValidity(){if(!this.allSublayers.length)throw new c.A("wmslayer:empty-layer","The layer doesn't have any sublayer")}_mixCustomParameters(e){if(!this.customLayerParameters&&!this.customParameters)return e;const t={...this.customParameters,...this.customLayerParameters};for(const r in t)e[r.toLowerCase()]=t[r];return e}};function Ce(e,t,r){e=e??[];const n=new Map;e.every(e=>null==e.id)&&(e=(0,h.o8)(e)).forEach((e,t)=>e.id=t);for(const i of e){const e=new B;e.read(i,t),r&&!r.includes(e.name)&&(e.visible=!1),n.set(e.id,e)}const i=[];for(const t of e){const e=null!=t.id?n.get(t.id):null;if(e)if(null!=t.parentLayerId&&t.parentLayerId>=0){const r=n.get(t.parentLayerId);if(!r)continue;r.sublayers||(r.sublayers=new l.A),r.sublayers.push(e)}else i.push(e)}return i}(0,n.Cg)([(0,b.MZ)({type:ye.A})],xe.prototype,"timeExtent",void 0),(0,n.Cg)([(0,b.MZ)({type:be.A})],xe.prototype,"timeOffset",void 0),(0,n.Cg)([(0,b.MZ)({readOnly:!0})],xe.prototype,"allSublayers",void 0),(0,n.Cg)([(0,b.MZ)({json:{type:Object,write:!0}})],xe.prototype,"customParameters",void 0),(0,n.Cg)([(0,b.MZ)({json:{type:Object,write:!0}})],xe.prototype,"customLayerParameters",void 0),(0,n.Cg)([(0,b.MZ)({type:String,json:{write:!0}})],xe.prototype,"copyright",void 0),(0,n.Cg)([(0,b.MZ)()],xe.prototype,"description",void 0),(0,n.Cg)([(0,b.MZ)({readOnly:!0})],xe.prototype,"dimensions",void 0),(0,n.Cg)([(0,b.MZ)({json:{type:[[Number]],read:{source:"extent"},write:{target:"extent"},origins:{"web-document":{write:{ignoreOrigin:!0}},"portal-item":{write:{ignoreOrigin:!0}}}}})],xe.prototype,"fullExtent",void 0),(0,n.Cg)([(0,G.w)(["web-document","portal-item"],"fullExtent",["extent"])],xe.prototype,"readFullExtentFromItemOrMap",null),(0,n.Cg)([(0,ve.K)(["web-document","portal-item"],"fullExtent",{extent:{type:[[Number]]}})],xe.prototype,"writeFullExtent",null),(0,n.Cg)([(0,b.MZ)({type:[M.A]})],xe.prototype,"fullExtents",void 0),(0,n.Cg)([(0,b.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],xe.prototype,"featureInfoFormat",null),(0,n.Cg)([(0,b.MZ)({type:[String],readOnly:!0})],xe.prototype,"featureInfoFormats",void 0),(0,n.Cg)([(0,b.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],xe.prototype,"featureInfoUrl",void 0),(0,n.Cg)([(0,b.MZ)()],xe.prototype,"fetchFeatureInfoFunction",void 0),(0,n.Cg)([(0,b.MZ)({type:String,json:{origins:{"web-document":{default:"image/png",type:we.jsonValues,read:{reader:we.read,source:"format"},write:{writer:we.write,target:"format"}}}}})],xe.prototype,"imageFormat",void 0),(0,n.Cg)([(0,G.w)("imageFormat",["supportedImageFormatTypes"])],xe.prototype,"readImageFormat",null),(0,n.Cg)([(0,b.MZ)({type:Number,json:{read:{source:"maxHeight"},write:{target:"maxHeight"}}})],xe.prototype,"imageMaxHeight",void 0),(0,n.Cg)([(0,b.MZ)({type:Number,json:{read:{source:"maxWidth"},write:{target:"maxWidth"}}})],xe.prototype,"imageMaxWidth",void 0),(0,n.Cg)([(0,b.MZ)()],xe.prototype,"imageTransparency",void 0),(0,n.Cg)([(0,b.MZ)(F.fV)],xe.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,b.MZ)({type:["show","hide","hide-children"]})],xe.prototype,"listMode",void 0),(0,n.Cg)([(0,b.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],xe.prototype,"mapUrl",void 0),(0,n.Cg)([(0,b.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],xe.prototype,"isReference",void 0),(0,n.Cg)([(0,b.MZ)({type:["WMS"]})],xe.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,b.MZ)()],xe.prototype,"resourceInfo",void 0),(0,n.Cg)([(0,b.MZ)({type:I.A,json:{origins:{service:{read:{source:"extent.spatialReference"}}},write:!1}})],xe.prototype,"spatialReference",void 0),(0,n.Cg)([(0,G.w)(["web-document","portal-item"],"spatialReference",["spatialReferences"])],xe.prototype,"readSpatialReferenceFromItemOrDocument",null),(0,n.Cg)([(0,b.MZ)({type:[v.jz],json:{read:!1,origins:{service:{read:!0},"web-document":{read:!1,write:{ignoreOrigin:!0}},"portal-item":{read:!1,write:{ignoreOrigin:!0}}}}})],xe.prototype,"spatialReferences",void 0),(0,n.Cg)([(0,ve.K)(["web-document","portal-item"],"spatialReferences")],xe.prototype,"writeSpatialReferences",null),(0,n.Cg)([(0,b.MZ)({type:l.A.ofType(B),json:{write:{target:"layers",overridePolicy(e,t,r){if(function(e,t){return e.some(e=>{for(const r in e)if((0,w.R)(e,r,null,t))return!0;return!1})}(this.allSublayers,r))return{ignoreOrigin:!0}}}}})],xe.prototype,"sublayers",void 0),(0,n.Cg)([(0,G.w)(["web-document","portal-item"],"sublayers",["layers","visibleLayers"])],xe.prototype,"readSublayersFromItemOrMap",null),(0,n.Cg)([(0,G.w)("service","sublayers",["layers"])],xe.prototype,"readSublayers",null),(0,n.Cg)([(0,ve.K)("sublayers",{layers:{type:[B]},visibleLayers:{type:[String]}})],xe.prototype,"writeSublayers",null),(0,n.Cg)([(0,b.MZ)({json:{read:!1},readOnly:!0,value:"wms"})],xe.prototype,"type",void 0),(0,n.Cg)([(0,b.MZ)(F.OZ)],xe.prototype,"url",null),(0,n.Cg)([(0,b.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],xe.prototype,"version",void 0),xe=(0,n.Cg)([(0,b.$K)("esri.layers.WMSLayer")],xe);const Ae=xe},54339(e,t,r){function n(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const r=[];for(const n of t.fieldNames)r.push(e.attributes[n]??null);return JSON.stringify(r)}}}function i(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>n,r:()=>i})},8303(e,t,r){r.d(t,{A:()=>I});var n=r(5482),i=r(92602),s=r(70333),a=r(11254),o=r(60999),l=r(49186),u=r(36563),c=r(53966),p=r(97768),h=r(17676),d=r(84952),f=r(91429),m=r(77548),g=r(20655),y=r(80812),b=r(41318),v=r(10407),w=r(36005),M=r(43937);const I=e=>{const t=e;let I=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.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,r){if(t.itemId)return new y.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:n}=await r.e(1204).then(r.bind(r,41204));return(0,h.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,h.zf)(e)||c.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:t}=await r.e(1204).then(r.bind(r,41204)),n=new AbortController,i=(0,u.rE)(n);return this.addHandles(i,"reloadFromPortal"),await t({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},{signal:n.signal})}catch(e){throw(0,h.zf)(e)||c.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,h.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,h.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const n=!s.id?.findCredential(this.url),i=e===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,n);let a,o;if(i)a=r.portal.url;else try{a=await(0,m.wI)(this.url,t)}catch(e){(0,h.QP)(e)}if(!a||!(0,d.b8)(a,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${a}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,h.QP)(e)}const l=!0,u=!1,c=!1;if(!o)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(i?await r.reload():(r=new y.default({id:e,portal:{url:a}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,h.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const r=(0,v.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,h.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 r=x.credential===t?x.user:await this._fetchEditingUser(e);return x.credential=t,x.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,i=g.A.getDefault();if(i&&i.loaded&&(0,d.S8)(i.restUrl)===(0,d.S8)(n))return i.user;const l=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,o.Ke)((0,a.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?b.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||g.A.getDefault());return r&&n&&!(0,d.ut)(n.restUrl,r.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,f.MZ)({type:y.default})],I.prototype,"portalItem",null),(0,n.Cg)([(0,w.w)("web-document","portalItem",["itemId"])],I.prototype,"readPortalItem",null),(0,n.Cg)([(0,M.K)("web-document","portalItem",{itemId:{type:String}})],I.prototype,"writePortalItem",null),(0,n.Cg)([(0,f.MZ)({clonable:!1})],I.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasUpdateItemPrivileges",void 0),I=(0,n.Cg)([(0,f.$K)("esri.layers.mixins.PortalLayer")],I),I},x={credential:null,user:null}},82935(e,t,r){r.d(t,{B:()=>h,e:()=>d});var n=r(5482),i=r(91429),s=r(89317),a=r(30524),o=r(96184),l=r(73133),u=r(79677),c=r(10184),p=r(36005);const h={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:s.K}}},d=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const n=r.timeOffset,i=l.j.fromJSON(r.timeOffsetUnits);return n&&i?new c.A({value:n,unit:i}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n.Cg)([(0,i.MZ)({type:u.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,n.Cg)([(0,i.MZ)({type:c.A})],r.prototype,"timeOffset",void 0),(0,n.Cg)([(0,p.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,n.Cg)([(0,i.MZ)({value:null,type:o.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,n.Cg)([(0,i.MZ)(h)],r.prototype,"useViewTime",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.TemporalLayer")],r),r}},38458(e,t,r){r.d(t,{m:()=>i});const n=[[3819,3819],[3821,3824],[3889,3889],[3906,3906],[4001,4025],[4027,4036],[4039,4047],[4052,4055],[4074,4075],[4080,4081],[4120,4176],[4178,4185],[4188,4216],[4218,4289],[4291,4304],[4306,4319],[4322,4326],[4463,4463],[4470,4470],[4475,4475],[4483,4483],[4490,4490],[4555,4558],[4600,4646],[4657,4765],[4801,4811],[4813,4821],[4823,4824],[4901,4904],[5013,5013],[5132,5132],[5228,5229],[5233,5233],[5246,5246],[5252,5252],[5264,5264],[5324,5340],[5354,5354],[5360,5360],[5365,5365],[5370,5373],[5381,5381],[5393,5393],[5451,5451],[5464,5464],[5467,5467],[5489,5489],[5524,5524],[5527,5527],[5546,5546],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3038,3051],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3150,3151],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3389,3390],[3416,3417],[3833,3841],[3844,3850],[3854,3854],[3873,3885],[3907,3910],[4026,4026],[4037,4038],[4417,4417],[4434,4434],[4491,4554],[4839,4839],[5048,5048],[5105,5130],[5253,5259],[5269,5275],[5343,5349],[5479,5482],[5518,5519],[5520,5520],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]];function i(e){return null!=e&&n.some(([t,r])=>e>=t&&e<=r)}},96184(e,t,r){r.d(t,{A:()=>d});var n=r(5482),i=r(69540),s=r(25482),a=r(91429),o=r(79677),l=r(10184),u=r(56400),c=r(36005),p=r(43937);function h(e,t){return l.A.fromJSON({value:e,unit:t})}let d=class extends((0,i.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?o.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?h(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?h(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],d.prototype,"cumulative",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],d.prototype,"endField",void 0),(0,n.Cg)([(0,a.MZ)({type:o.A,json:{write:{enabled:!0,allowNull:!0}}})],d.prototype,"fullTimeExtent",void 0),(0,n.Cg)([(0,c.w)("fullTimeExtent",["timeExtent"])],d.prototype,"readFullTimeExtent",null),(0,n.Cg)([(0,p.K)("fullTimeExtent")],d.prototype,"writeFullTimeExtent",null),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"hasLiveData",void 0),(0,n.Cg)([(0,a.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],d.prototype,"interval",void 0),(0,n.Cg)([(0,c.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],d.prototype,"readInterval",null),(0,n.Cg)([(0,p.K)("interval")],d.prototype,"writeInterval",null),(0,n.Cg)([(0,a.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],d.prototype,"startField",void 0),(0,n.Cg)([(0,a.MZ)((0,u.P6)("timeReference",!0))],d.prototype,"timeZone",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],d.prototype,"trackIdField",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],d.prototype,"useTime",void 0),(0,n.Cg)([(0,a.MZ)({type:[Date],json:{read:!1}})],d.prototype,"stops",void 0),d=(0,n.Cg)([(0,a.$K)("esri.layers.support.TimeInfo")],d)},33446(e,t,r){r.d(t,{Cp:()=>a,mn:()=>s});var n=r(49186),i=r(17676);async function s(e,t,r){let s;try{s=await o(e,r)}catch(e){throw new n.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,i.Te)(r),s}async function a(e,t,r,s,a){let l;try{l=await o(e,a)}catch(e){throw new n.A("request:server",`Unable to load tile ${t}/${r}/${s}`,{error:e,level:t,row:r,col:s})}return(0,i.Te)(a),l}async function o(e,t){const r=await createImageBitmap(e,{imageOrientation:t?.imageOrientation??"none"}),n=t?.type??(e instanceof Blob?e.type.startsWith("image/")?e.type:t?.allowDeriveTypeFromData?await async function(e){return e.byteLength<2?"unknown":137===e[0]&&80===e[1]?"image/png":71===e[0]&&73===e[1]?"image/gif":66===e[0]&&77===e[1]?"image/bmp":255===e[0]&&216===e[1]?"image/jpeg":"unknown"}(await e.bytes()):void 0:void 0);return new l(r,n)}class l{constructor(e,t){this.bitmap=e,this.type=t}get isOpaque(){return"image/jpeg"===this.type}}},5757(e,t,r){r.d(t,{B:()=>i,P:()=>n});const n=Symbol("PopupTemplateInstance");function i(e){return null!=e&&"object"==typeof e&&n in e}},10407(e,t,r){r.d(t,{It:()=>d,LG:()=>a,OM:()=>u,Sm:()=>c,Y:()=>o,bK:()=>l,mm:()=>h,sQ:()=>p});var n=r(91218),i=r(16930),s=r(28735);function a(e,t){if(!o(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function o(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return o(e,h.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function c(e,t,r){r?a(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=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 r=i.A.WGS84;return await(0,n.initializeProjection)(t,r),(0,n.project)(e,r)}(r)}const h={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 d(e){const{portal:t,isOrgItem:r,itemControl:n}=e,i=t.user?.privileges;let s=!i||i.includes("features:user:edit"),a=!!r&&!!i?.includes("features:user:fullEdit");const o="update"===n||"admin"===n;return o?a=s=!0:a&&(s=!0),{features:{edit:s,fullEdit:a},content:{updateItem:o}}}}}]);
|