@arcgis/core 4.30.0-next.20240213 → 4.30.0-next.20240215
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/TimeExtent.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/08ba549f9c4afc42a21c.js +1 -0
- package/assets/esri/core/workers/chunks/114afcee6a66415cd123.js +1 -0
- package/assets/esri/core/workers/chunks/1320562881294ce93806.js +1 -0
- package/assets/esri/core/workers/chunks/13451fa3e4b02ca2beb0.js +1 -0
- package/assets/esri/core/workers/chunks/{a384f29cb3256401962a.js → 1629a8c2085dce59cd1b.js} +1 -1
- package/assets/esri/core/workers/chunks/18512caeeb03b9759ab1.js +1 -0
- package/assets/esri/core/workers/chunks/{cc1c958aad790a44048b.js → 1ca28af7c516d8283bb0.js} +1 -1
- package/assets/esri/core/workers/chunks/1f8a0fb32b96e50f5909.js +1 -0
- package/assets/esri/core/workers/chunks/{abab3abb8ea7610d9fb8.js → 21e7a88478f5d15e0e71.js} +1 -1
- package/assets/esri/core/workers/chunks/24452a26b0c5322c7d2b.js +1 -0
- package/assets/esri/core/workers/chunks/25b88787ead0cc44cda4.js +1 -0
- package/assets/esri/core/workers/chunks/2649166d1a462c7f8338.js +1 -0
- package/assets/esri/core/workers/chunks/2c96771a365f8f70e996.js +1 -0
- package/assets/esri/core/workers/chunks/352e7f8d694f3f217a2d.js +1 -0
- package/assets/esri/core/workers/chunks/392214a3a1d712eda155.js +1 -0
- package/assets/esri/core/workers/chunks/397f15b5bce6838db084.js +1 -0
- package/assets/esri/core/workers/chunks/3bf281e979408b9363ed.js +1 -0
- package/assets/esri/core/workers/chunks/4edc667148d023b5b5af.js +1 -0
- package/assets/esri/core/workers/chunks/51e4f771bfe352967c97.js +1 -0
- package/assets/esri/core/workers/chunks/55cd747e06bb59d1a328.js +1 -0
- package/assets/esri/core/workers/chunks/5638d95e600ff271c5b1.js +1 -0
- package/assets/esri/core/workers/chunks/563d172caa15ea1b510d.js +1108 -0
- package/assets/esri/core/workers/chunks/58f088b08e12c5435dbc.js +1 -0
- package/assets/esri/core/workers/chunks/5aef1e898618f8dda2c9.js +1 -0
- package/assets/esri/core/workers/chunks/608be8ebf772aefc36a5.js +1 -0
- package/assets/esri/core/workers/chunks/64df2521b2814d2fb918.js +1 -0
- package/assets/esri/core/workers/chunks/65070fb591f6ef8313c3.js +1 -0
- package/assets/esri/core/workers/chunks/656ec8a14df0e4b68433.js +1 -0
- package/assets/esri/core/workers/chunks/6601fe99d587b9dff3c7.js +1 -0
- package/assets/esri/core/workers/chunks/{274e623323e24250ca46.js → 6ac424af4f2825fabceb.js} +1 -1
- package/assets/esri/core/workers/chunks/{eb2d6f1ee63b40ae0736.js → 774b655498289b1b36bb.js} +1 -1
- package/assets/esri/core/workers/chunks/781bb63af571568358e3.js +1 -0
- package/assets/esri/core/workers/chunks/9e54d2cbe42f5552aaca.js +1 -0
- package/assets/esri/core/workers/chunks/{f03d62ab7806b68d0b62.js → 9fbf61675e2a5374f754.js} +1 -1
- package/assets/esri/core/workers/chunks/a5253543eae1708d11b9.js +1 -0
- package/assets/esri/core/workers/chunks/aa9b46bcb75c96731de3.js +1 -0
- package/assets/esri/core/workers/chunks/cfb8b6b5e9c21d582cf4.js +1 -0
- package/assets/esri/core/workers/chunks/d1b2372084c1e8c60f79.js +1 -0
- package/assets/esri/core/workers/chunks/{1c6914ded7db720f7bf7.js → daf6eab5dd198ca9a67b.js} +1 -1
- package/assets/esri/core/workers/chunks/e03edeaf3af46495449e.js +1 -0
- package/assets/esri/core/workers/chunks/e685214698fbc84276dd.js +1 -0
- package/assets/esri/core/workers/chunks/ebb294c82207f3ff9f04.js +1 -0
- package/assets/esri/core/workers/chunks/ec20e23aec9370df8a55.js +1 -0
- package/assets/esri/core/workers/chunks/{e4da908079417cc2f495.js → ee0c77889059815a31b2.js} +1 -1
- package/assets/esri/core/workers/chunks/f68b7bb88c444a7cbbd2.js +1 -0
- package/assets/esri/core/workers/chunks/f90bbebd2dc07a77ce09.js +1 -0
- package/assets/esri/core/workers/chunks/fa388680ff976a6b30f6.js +1 -0
- package/chunks/vec32.js +1 -1
- package/interfaces.d.ts +135 -68
- package/layers/WFSLayer.js +1 -1
- package/layers/buildingSublayers/BuildingComponentSublayer.js +1 -1
- package/layers/graphics/applyEditsUtils.js +1 -1
- package/layers/graphics/editingSupport.js +1 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/save/featureLayerUtils.js +1 -1
- package/layers/support/arcgisLayers.js +1 -1
- package/layers/support/fetchService.js +1 -1
- package/layers/support/fromPortalItem.js +1 -1
- package/networks/Network.js +1 -1
- package/package.json +1 -1
- package/portal/Portal.js +1 -1
- package/portal/PortalGroup.js +1 -1
- package/portal/PortalUser.js +1 -1
- package/portal/support/geometryServiceUtils.js +1 -1
- package/portal/support/layersLoader.js +1 -1
- package/portal/support/loadUtils.js +1 -1
- package/portal/support/portalLayers.js +1 -1
- package/renderers/visualVariables/SizeVariable.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/wasmToUpdateResponseFactories.js +1 -1
- package/rest/networks/support/Association.js +1 -1
- package/rest/places.js +1 -1
- package/rest/query/operations/pbfJSONFeatureSet.js +1 -1
- package/rest/support/ImageSampleParameters.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
- package/support/elevationInfoUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/cim/defaultCIMValues.js +1 -1
- package/symbols/cim/utils.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
- package/views/2d/engine/webgl/collisions/CollisionEngine.js +1 -1
- package/views/2d/engine/webgl/definitions.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
- package/views/2d/layers/features/Processor.js +1 -1
- package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
- package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
- package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
- package/views/2d/layers/features/schema/processor/VisualVariablesSchema.js +1 -1
- package/views/2d/layers/features/sources/strategies/SnapshotLoadStrategy.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
- package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
- package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
- package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
- package/views/3d/support/orientedBoundingBox.js +1 -1
- package/views/3d/terrain/OverlayFramebufferObject.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/webgl/RenderNode.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +9 -7
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceConstants.js +5 -0
- package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +8 -8
- package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
- package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
- package/views/3d/webgl-engine/lib/GLTextureMaterial.js +1 -1
- package/views/3d/webgl-engine/lib/ObjectAndLayerIdRenderHelper.js +1 -1
- package/views/draw/DrawGraphicTool.js +1 -1
- package/views/draw/DrawOperation.js +1 -1
- package/views/draw/drawSurfaces.js +1 -1
- package/views/interactive/snapping/SnappingManager.js +1 -1
- package/views/interactive/snapping/SnappingOptions.js +1 -1
- package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
- package/views/layers/ImageryTileLayerView.js +1 -1
- package/webdoc/support/webdocLoadUtils.js +1 -1
- package/webdoc/support/webdocSaveUtils.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/components/FooterActions.js +1 -1
- package/widgets/Editor/support/EditorItem.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/Grid.js +1 -1
- package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/Features/FeaturesViewModel.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Print/PrintViewModel.js +1 -1
- package/widgets/Print.js +1 -1
- package/widgets/Search/support/locatorUtils.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/00b9e92f8df245a83921.js +0 -1
- package/assets/esri/core/workers/chunks/02a6c43ec17e7223fac5.js +0 -1
- package/assets/esri/core/workers/chunks/02ee044597c89c86b934.js +0 -1
- package/assets/esri/core/workers/chunks/05ebb9cec0e1826b283f.js +0 -1
- package/assets/esri/core/workers/chunks/143ccb14c9e915dd1412.js +0 -1
- package/assets/esri/core/workers/chunks/24649b410b757599a549.js +0 -1
- package/assets/esri/core/workers/chunks/24d19abc680b341d13bb.js +0 -1
- package/assets/esri/core/workers/chunks/2519b207894132d5ea91.js +0 -1
- package/assets/esri/core/workers/chunks/30f9b2a3417cbcfeecca.js +0 -1
- package/assets/esri/core/workers/chunks/42ab9c282bb267c3db03.js +0 -1
- package/assets/esri/core/workers/chunks/478815fc19b452d8317d.js +0 -1
- package/assets/esri/core/workers/chunks/49afeac45250b15b5f36.js +0 -1
- package/assets/esri/core/workers/chunks/50bb67f2eeace5d50673.js +0 -1
- package/assets/esri/core/workers/chunks/50cdc59426ba859027e2.js +0 -1
- package/assets/esri/core/workers/chunks/5401ec9c9fd62dcac6ec.js +0 -1
- package/assets/esri/core/workers/chunks/554d86df71821d671d2c.js +0 -1
- package/assets/esri/core/workers/chunks/58c5861d060c808813a1.js +0 -1
- package/assets/esri/core/workers/chunks/5dbb3ef6fdd25ac632ad.js +0 -1
- package/assets/esri/core/workers/chunks/61c4bb58ef9f2d99c75e.js +0 -1
- package/assets/esri/core/workers/chunks/6e50220f8e2d392e2855.js +0 -1
- package/assets/esri/core/workers/chunks/6fd8047741a0df006ddd.js +0 -1
- package/assets/esri/core/workers/chunks/7709248f59520aee6f51.js +0 -1
- package/assets/esri/core/workers/chunks/8852a64918caf80fc414.js +0 -1
- package/assets/esri/core/workers/chunks/8d119dc0a92ad3612daa.js +0 -1
- package/assets/esri/core/workers/chunks/94dfb80ab23dda92918b.js +0 -1
- package/assets/esri/core/workers/chunks/9ebbc75ba5c623a322aa.js +0 -1
- package/assets/esri/core/workers/chunks/a5babc10f47c24651d15.js +0 -1
- package/assets/esri/core/workers/chunks/a74c59cf5d1c4e63a4e1.js +0 -1
- package/assets/esri/core/workers/chunks/ada5d6fd70bd3e403442.js +0 -1
- package/assets/esri/core/workers/chunks/b95d69d84d60ac9828b9.js +0 -1
- package/assets/esri/core/workers/chunks/be562536212360943388.js +0 -1
- package/assets/esri/core/workers/chunks/ce823fc2d0e0095f398c.js +0 -1
- package/assets/esri/core/workers/chunks/d06d36815c2121484a13.js +0 -1
- package/assets/esri/core/workers/chunks/d5f06a7b0ea7951c8dd0.js +0 -1
- package/assets/esri/core/workers/chunks/ddc71fe66c7a49082920.js +0 -1
- package/assets/esri/core/workers/chunks/de6d54df7ae32694fd70.js +0 -1
- package/assets/esri/core/workers/chunks/f13c4b9692dad5802a32.js +0 -1106
- package/assets/esri/core/workers/chunks/f1e8f7d1a98b9e207b1b.js +0 -1
- package/assets/esri/core/workers/chunks/f9e9675f1c2287231653.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3536],{25228:(t,e,n)=>{n.d(e,{c:()=>h});var r,i=n(41948),o=n(40504),s=n(94360),l=n(1580),a=(n(9456),n(66360),n(72052),n(33600)),u=n(12552),c=n(18996),p=n(28484);let d=r=class extends o.am{static get allTime(){return y}static get empty(){return f}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,n=this.end?.getTime()??this.end,r=t.start?.getTime()??t.start,i=t.end?.getTime()??t.end;return e===r&&n===i}expandTo(t,e=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();let n=this.start;n&&(n=(0,s.aU)(n,t,e));let i=this.end;if(i){const n=(0,s.aU)(i,t,e);i=i.getTime()===n.getTime()?n:(0,s.g1)(n,1,t,e)}return new r({start:n,end:i})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return r.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,n=this.end?.getTime()??1/0,i=t.start?.getTime()??-1/0,o=t.end?.getTime()??1/0;let s,l;return i>=e&&i<=n?s=i:e>=i&&e<=o&&(s=e),n>=i&&n<=o?l=n:o>=e&&o<=n&&(l=o),null==s||null==l||isNaN(s)||isNaN(l)?r.empty:new r({start:s===-1/0?null:new Date(s),end:l===1/0?null:new Date(l)})}offset(t,e,n=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();const i=new r,{start:o,end:l}=this;return null!=o&&(i.start=(0,s.g1)(o,t,e,n)),null!=l&&(i.end=(0,s.g1)(l,t,e,n)),i}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return y.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,n=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new r({start:e,end:n})}};(0,i._)([(0,l.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,i._)([(0,a.E)("end")],d.prototype,"readEnd",null),(0,i._)([(0,c.G)("end")],d.prototype,"writeEnd",null),(0,i._)([(0,l.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,i._)([(0,l.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,i._)([(0,l.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,i._)([(0,a.E)("start")],d.prototype,"readStart",null),(0,i._)([(0,c.G)("start")],d.prototype,"writeStart",null),d=r=(0,i._)([(0,u.c)("esri.TimeExtent")],d);const y=new d,f=new d({start:void 0,end:void 0}),h=d},56573:(t,e,n)=>{n.d(e,{c:()=>y});var r=n(41948),i=n(43780),o=n(92400),s=n(3856),l=n(22156),a=n(40504),u=n(1580),c=(n(9456),n(66360),n(12552));let p=0,d=class extends((0,a.Ib)((0,s.q)((0,l.MR)(i.c)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${p++}`,this.title=null}get parent(){return this._get("parent")}set parent(t){const e=this.parent;if(null!=e)switch(e.type){case"line-of-sight":case"dimension":e.releaseAnalysis(this);break;case"2d":case"3d":e.analyses.includes(this)&&e.analyses.remove(this)}this._set("parent",t)}get isEditable(){return this.requiredPropertiesForEditing.every(o.G6)}};(0,r._)([(0,u.qq)({type:String,constructOnly:!0,clonable:!1})],d.prototype,"id",void 0),(0,r._)([(0,u.qq)({type:String})],d.prototype,"title",void 0),(0,r._)([(0,u.qq)({clonable:!1,value:null})],d.prototype,"parent",null),(0,r._)([(0,u.qq)({readOnly:!0})],d.prototype,"isEditable",null),d=(0,r._)([(0,c.c)("esri.analysis.Analysis")],d);const y=d},3856:(t,e,n)=>{n.d(e,{m:()=>p,q:()=>c});var r=n(41948),i=n(43780),o=(n(9456),n(62088)),s=(n(66360),n(70680)),l=n(71448),a=n(20916),u=n(12552);const c=t=>{let e=class extends t{clone(){const t=(0,a.m6)(this);(0,s.EN)(t,"unable to clone instance of non-accessor class");const e=t.metadata,n=t.store,r={},i=new Map;for(const t in e){const s=e[t],a=n?.originOf(t),u=s.clonable;if(s.readOnly||!1===u||a!==l.sT.USER&&a!==l.sT.DEFAULTS&&a!==l.sT.WEB_MAP&&a!==l.sT.WEB_SCENE)continue;const c=this[t];let p=null;p="function"==typeof u?u(c):"reference"===u?c:(0,o.gx)(c),null!=c&&null==p||(a===l.sT.DEFAULTS?i.set(t,p):r[t]=p)}const u=new(0,Object.getPrototypeOf(this).constructor)(r);if(i.size){const t=(0,a.m6)(u)?.store;if(t)for(const[e,n]of i)t.set(e,n,l.sT.DEFAULTS)}return u}};return e=(0,r._)([(0,u.c)("esri.core.Clonable")],e),e};let p=class extends(c(i.c)){};p=(0,r._)([(0,u.c)("esri.core.Clonable")],p)},22156:(t,e,n)=>{n.d(e,{MR:()=>s,qm:()=>l});var r=n(41948),i=n(12552);let o=0;const s=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return e=(0,r._)([(0,i.c)("esri.core.Identifiable")],e),e},l=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:o++})}};return e=(0,r._)([(0,i.c)("esri.core.NumericIdentifiable")],e),e};let a=class extends(s(class{})){};a=(0,r._)([(0,i.c)("esri.core.Identifiable")],a)},77380:(t,e,n)=>{n.d(e,{I:()=>h,Y:()=>r});const r={Base64:0,Hex:1,String:2,Raw:3},i=8,o=(1<<i)-1;function s(t,e){const n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function l(t){const e=[];for(let n=0,r=t.length*i;n<r;n+=i)e[n>>5]|=(t.charCodeAt(n/i)&o)<<n%32;return e}function a(t){const e=[];for(let n=0,r=32*t.length;n<r;n+=i)e.push(String.fromCharCode(t[n>>5]>>>n%32&o));return e.join("")}function u(t,e,n,r,i,o){return s(function(t,e){return t<<e|t>>>32-e}(s(s(e,t),s(r,o)),i),n)}function c(t,e,n,r,i,o,s){return u(e&n|~e&r,t,e,i,o,s)}function p(t,e,n,r,i,o,s){return u(e&r|n&~r,t,e,i,o,s)}function d(t,e,n,r,i,o,s){return u(e^n^r,t,e,i,o,s)}function y(t,e,n,r,i,o,s){return u(n^(e|~r),t,e,i,o,s)}function f(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;let n=1732584193,r=-271733879,i=-1732584194,o=271733878;for(let e=0;e<t.length;e+=16){const l=n,a=r,u=i,f=o;n=c(n,r,i,o,t[e],7,-680876936),o=c(o,n,r,i,t[e+1],12,-389564586),i=c(i,o,n,r,t[e+2],17,606105819),r=c(r,i,o,n,t[e+3],22,-1044525330),n=c(n,r,i,o,t[e+4],7,-176418897),o=c(o,n,r,i,t[e+5],12,1200080426),i=c(i,o,n,r,t[e+6],17,-1473231341),r=c(r,i,o,n,t[e+7],22,-45705983),n=c(n,r,i,o,t[e+8],7,1770035416),o=c(o,n,r,i,t[e+9],12,-1958414417),i=c(i,o,n,r,t[e+10],17,-42063),r=c(r,i,o,n,t[e+11],22,-1990404162),n=c(n,r,i,o,t[e+12],7,1804603682),o=c(o,n,r,i,t[e+13],12,-40341101),i=c(i,o,n,r,t[e+14],17,-1502002290),r=c(r,i,o,n,t[e+15],22,1236535329),n=p(n,r,i,o,t[e+1],5,-165796510),o=p(o,n,r,i,t[e+6],9,-1069501632),i=p(i,o,n,r,t[e+11],14,643717713),r=p(r,i,o,n,t[e],20,-373897302),n=p(n,r,i,o,t[e+5],5,-701558691),o=p(o,n,r,i,t[e+10],9,38016083),i=p(i,o,n,r,t[e+15],14,-660478335),r=p(r,i,o,n,t[e+4],20,-405537848),n=p(n,r,i,o,t[e+9],5,568446438),o=p(o,n,r,i,t[e+14],9,-1019803690),i=p(i,o,n,r,t[e+3],14,-187363961),r=p(r,i,o,n,t[e+8],20,1163531501),n=p(n,r,i,o,t[e+13],5,-1444681467),o=p(o,n,r,i,t[e+2],9,-51403784),i=p(i,o,n,r,t[e+7],14,1735328473),r=p(r,i,o,n,t[e+12],20,-1926607734),n=d(n,r,i,o,t[e+5],4,-378558),o=d(o,n,r,i,t[e+8],11,-2022574463),i=d(i,o,n,r,t[e+11],16,1839030562),r=d(r,i,o,n,t[e+14],23,-35309556),n=d(n,r,i,o,t[e+1],4,-1530992060),o=d(o,n,r,i,t[e+4],11,1272893353),i=d(i,o,n,r,t[e+7],16,-155497632),r=d(r,i,o,n,t[e+10],23,-1094730640),n=d(n,r,i,o,t[e+13],4,681279174),o=d(o,n,r,i,t[e],11,-358537222),i=d(i,o,n,r,t[e+3],16,-722521979),r=d(r,i,o,n,t[e+6],23,76029189),n=d(n,r,i,o,t[e+9],4,-640364487),o=d(o,n,r,i,t[e+12],11,-421815835),i=d(i,o,n,r,t[e+15],16,530742520),r=d(r,i,o,n,t[e+2],23,-995338651),n=y(n,r,i,o,t[e],6,-198630844),o=y(o,n,r,i,t[e+7],10,1126891415),i=y(i,o,n,r,t[e+14],15,-1416354905),r=y(r,i,o,n,t[e+5],21,-57434055),n=y(n,r,i,o,t[e+12],6,1700485571),o=y(o,n,r,i,t[e+3],10,-1894986606),i=y(i,o,n,r,t[e+10],15,-1051523),r=y(r,i,o,n,t[e+1],21,-2054922799),n=y(n,r,i,o,t[e+8],6,1873313359),o=y(o,n,r,i,t[e+15],10,-30611744),i=y(i,o,n,r,t[e+6],15,-1560198380),r=y(r,i,o,n,t[e+13],21,1309151649),n=y(n,r,i,o,t[e+4],6,-145523070),o=y(o,n,r,i,t[e+11],10,-1120210379),i=y(i,o,n,r,t[e+2],15,718787259),r=y(r,i,o,n,t[e+9],21,-343485551),n=s(n,l),r=s(r,a),i=s(i,u),o=s(o,f)}return[n,r,i,o]}function h(t,e=r.Hex){const n=e||r.Base64,o=f(l(t),t.length*i);switch(n){case r.Raw:return o;case r.Hex:return function(t){const e="0123456789abcdef",n=[];for(let r=0,i=4*t.length;r<i;r++)n.push(e.charAt(t[r>>2]>>r%4*8+4&15)+e.charAt(t[r>>2]>>r%4*8&15));return n.join("")}(o);case r.String:return a(o);case r.Base64:return function(t){const e=[];for(let n=0,r=4*t.length;n<r;n+=3){const r=(t[n>>2]>>n%4*8&255)<<16|(t[n+1>>2]>>(n+1)%4*8&255)<<8|t[n+2>>2]>>(n+2)%4*8&255;for(let i=0;i<4;i++)8*n+6*i>32*t.length?e.push("="):e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-i)&63))}return e.join("")}(o)}}},90636:(t,e,n)=>{n.d(e,{O:()=>y});var r=n(20744),i=n(77380),o=n(4644),s=n(28176),l=n(63564),a=n(44296),u=n(71448),c=n(1580),p=n(73960),d=n(91952);function y(t){const e=t?.origins??[void 0];return(n,r)=>{const i=function(t,e,n){if("resource"===t?.type)return function(t,e,n){const r=(0,a.EF)(e,n);return{type:String,read:(t,e,n)=>{const i=(0,d.r)(t,e,n);return r.type===String?i:"function"==typeof r.type?new r.type({url:i}):void 0},write:{writer(e,i,l,a){if(!a?.resources)return"string"==typeof e?void(i[l]=(0,d.t)(e,a)):void(i[l]=e.write({},a));const c=function(t){return null==t?null:"string"==typeof t?t:t.url}(e),y=(0,d.t)(c,{...a,verifyItemRelativeUrls:a?.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},d.M.NO),g=r.type!==String&&(!(0,o.w)(this)||a?.origin&&this.originIdOf(n)>(0,u.CQ)(a.origin)),v={object:this,propertyName:n,value:e,targetUrl:y,dest:i,targetPropertyName:l,context:a,params:t};a?.portalItem&&y&&!(0,s.ic)(y)?g&&t?.contentAddressed?f(v):g?function(t){const{context:e,targetUrl:n,params:r,value:i,dest:o,targetPropertyName:l}=t;if(!e.portalItem)return;const a=e.portalItem.resourceFromPath(n),u=m(i,n,e),c=(0,p.e)(u),d=(0,s.wt)(a.path),y=r?.compress??!1;c===d?(e.resources&&h({...t,resource:a,content:u,compress:y,updates:e.resources.toUpdate}),o[l]=n):f(t)}(v):function({context:t,targetUrl:e,dest:n,targetPropertyName:r}){t.portalItem&&t.resources&&(t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(e),compress:!1}),n[r]=e)}(v):a?.portalItem&&(null==y||null!=(0,d.i)(y)||(0,s.ue)(y)||g)?f(v):i[l]=y}}}}(t,e,n);switch(t?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:t,write:e}=d.b;return{read:t,write:e}}}}(t,n,r);for(const t of e){const e=(0,c.aq)(n,t,r);for(const t in i)e[t]=i[t]}}}function f(t){const{targetUrl:e,params:n,value:o,context:a,dest:u,targetPropertyName:c}=t;if(!a.portalItem)return;const y=(0,d.p)(e),f=m(o,e,a);if(n?.contentAddressed&&"json"!==f.type)return void a.messages?.push(new r.c("persistable:contentAddressingUnsupported",`Property "${c}" is trying to serializing a resource with content of type ${f.type} with content addressing. Content addressing is only supported for json resources.`,{content:f}));const g=n?.contentAddressed&&"json"===f.type?(0,i.I)(f.jsonString):y?.filename??(0,l.g1)(),v=(0,s.kn)(n?.prefix??y?.prefix,g),b=`${v}.${(0,p.e)(f)}`;if(n?.contentAddressed&&a.resources&&"json"===f.type){const t=a.resources.toKeep.find((({resource:t})=>t.path===b))??a.resources.toAdd.find((({resource:t})=>t.path===b));if(t)return void(u[c]=t.resource.itemRelativeUrl)}const q=a.portalItem.resourceFromPath(b);(0,s.ue)(e)&&a.resources&&a.resources.pendingOperations.push((0,s.SW)(e).then((t=>{q.path=`${v}.${(0,p.e)({type:"blob",blob:t})}`,u[c]=q.itemRelativeUrl})).catch((()=>{})));const w=n?.compress??!1;a.resources&&h({...t,resource:q,content:f,compress:w,updates:a.resources.toAdd}),u[c]=q.itemRelativeUrl}function h({object:t,propertyName:e,updates:n,resource:r,content:i,compress:o}){n.push({resource:r,content:i,compress:o,finish:n=>{!function(t,e,n){"string"==typeof t[e]?t[e]=n.url:t[e].url=n.url}(t,e,n)}})}function m(t,e,n){return"string"==typeof t?{type:"url",url:e}:{type:"json",jsonString:JSON.stringify(t.toJSON(n))}}},4644:(t,e,n)=>{function r(t){return t&&"getAtOrigin"in t&&"originOf"in t}n.d(e,{w:()=>r})},57896:(t,e,n)=>{n.d(e,{Eq:()=>d,KG:()=>g,_8:()=>m,_I:()=>u,aE:()=>a,du:()=>h,on:()=>p}),n(40196),n(2952);var r=n(60976),i=n(38912),o=n(70680),s=n(10860),l=n(37176);function a(t,e,n={}){return c(t,e,n,y)}function u(t,e,n={}){return c(t,e,n,f)}function c(t,e,n={},r){let i=null;const s=n.once?(t,n)=>{r(t)&&((0,o.oR)(i),e(t,n))}:(t,n)=>{r(t)&&e(t,n)};if(i=(0,l.M9)(t,s,n.sync,n.equals),n.initial){const e=t();s(e,e)}return i}function p(t,e,n,s={}){let l=null,u=null,c=null;function p(){l&&u&&(u.remove(),s.onListenerRemove?.(l),l=null,u=null)}function d(t){s.once&&s.once&&(0,o.oR)(c),n(t)}const y=a(t,((t,n)=>{p(),(0,r.sh)(t)&&(l=t,u=(0,r.on)(t,e,d),s.onListenerAdd?.(t))}),{sync:s.sync,initial:!0});return c=(0,i.uU)((()=>{y.remove(),p()})),c}function d(t,e){return function(t,e,n){if((0,s.wv)(n))return Promise.reject((0,s.Uh)());const r=t();if(e?.(r))return Promise.resolve(r);let l=null;function a(){l=(0,o.oR)(l)}return new Promise(((r,o)=>{l=(0,i.Ip)([(0,s.wD)(n,(()=>{a(),o((0,s.Uh)())})),c(t,(t=>{a(),r(t)}),{sync:!1,once:!0},e??y)])}))}(t,f,e)}function y(t){return!0}function f(t){return!!t}n(41168);const h={sync:!0},m={initial:!0},g={sync:!0,initial:!0}},63564:(t,e,n)=>{n.d(e,{Mr:()=>s,cf:()=>o,g1:()=>i});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function o(){return`{${i().toUpperCase()}}`}function s(){return`{${i()}}`}},77048:(t,e,n)=>{n.d(e,{C6:()=>c,FZ:()=>y,K:()=>v,K8:()=>a,MZ:()=>l,Qv:()=>f,Su:()=>i,WK:()=>o,WO:()=>d,WU:()=>s,eC:()=>u,is:()=>m,mK:()=>p,qy:()=>h,yK:()=>g});var r=n(95247);function i(t=b){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e,n,r,o,s,l=i()){return l[0]=t,l[1]=e,l[2]=n,l[3]=r,l[4]=o,l[5]=s,l}function s(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.c(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function a(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function u(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function c(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function p(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function y(t){return t?d(t,v):i(v)}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function h(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function m(t){return 6===t.length}function g(t,e,n){if(null==t||null==e)return t===e;if(!m(t)||!m(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}n(83372);const v=[1/0,1/0,1/0,-1/0,-1/0,-1/0],b=[0,0,0,0,0,0];i()},81436:(t,e,n)=>{n.d(e,{c:()=>b});var r=n(41948),i=(n(60708),n(2600)),o=n(20744),s=n(77860),l=n(22156),a=n(95800),u=n(66360),c=n(10860),p=n(28176),d=n(1580),y=(n(9456),n(72052),n(12552)),f=n(6220),h=n(95247),m=n(56156);let g=0,v=class extends(s.c.EventedMixin((0,l.MR)(a.c))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new h.c(-180,-90,180,90,m.c.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.c.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await n.e(9232).then(n.bind(n,69232))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:r}=await n.e(2259).then(n.bind(n,12259));try{return await r(e)}catch(t){const n=e?.portalItem,r=n?.id||"unset",i=n?.portal?.url||f.default.portalUrl;throw u.c.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+r+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,c.mA)(t)||u.c.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,p.as)(this.url)}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,i.c)(t,{query:{f:"json"},responseType:"json"})).data;throw new o.c("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,d.qq)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,r._)([(0,d.qq)({type:h.c})],v.prototype,"fullExtent",void 0),(0,r._)([(0,d.qq)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,r._)([(0,d.qq)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,r._)([(0,d.qq)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,r._)([(0,d.qq)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,r._)([(0,d.qq)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,r._)([(0,d.qq)({clonable:!1})],v.prototype,"parent",void 0),(0,r._)([(0,d.qq)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,r._)([(0,d.qq)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,r._)([(0,d.qq)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,r._)([(0,d.qq)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,r._)([(0,d.qq)({type:m.c})],v.prototype,"spatialReference",void 0),(0,r._)([(0,d.qq)({type:String})],v.prototype,"title",void 0),(0,r._)([(0,d.qq)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,r._)([(0,d.qq)()],v.prototype,"url",void 0),(0,r._)([(0,d.qq)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,r._)([(0,y.c)("esri.layers.Layer")],v);const b=v},91884:(t,e,n)=>{n.r(e),n.d(e,{default:()=>M});var r=n(41948),i=n(56573);function o(t,e){return s(t)===s(e)}function s(t){if(null==t)return null;const e=null!=t.layer?t.layer.id:"";let n=null;return n=null!=t.objectId?t.objectId:null!=t.layer&&"objectIdField"in t.layer&&null!=t.layer.objectIdField&&null!=t.attributes?t.attributes[t.layer.objectIdField]:t.uid,null==n?null:`o-${e}-${n}`}const l={json:{write:{writer:function(t,e){null!=t?.layer?.objectIdField&&null!=t.attributes&&(e.feature={layerId:t.layer.id,objectId:t.attributes[t.layer.objectIdField]})},target:{"feature.layerId":{type:[Number,String]},"feature.objectId":{type:[Number,String]}}},origins:{"web-scene":{read:function(t){if(null!=t.layerId&&null!=t.objectId)return{uid:null,layer:{id:t.layerId,objectIdField:"ObjectId"},attributes:{ObjectId:t.objectId}}}}}}};var a=n(43780),u=n(3856),c=n(40504),p=n(70680),d=n(1580),y=(n(9456),n(66360),n(72052),n(12552)),f=n(90636),h=n(67776),m=n(27136);let g=class extends((0,c.Ib)((0,u.q)(a.c))){constructor(t){super(t),this.position=null,this.elevationInfo=null,this.feature=null}equals(t){return(0,p.O4)(this.position,t.position)&&(0,p.O4)(this.elevationInfo,t.elevationInfo)&&o(this.feature,t.feature)}};(0,r._)([(0,d.qq)({type:h.c,json:{write:{isRequired:!0}}})],g.prototype,"position",void 0),(0,r._)([(0,d.qq)({type:m.c}),(0,f.O)()],g.prototype,"elevationInfo",void 0),(0,r._)([(0,d.qq)(l)],g.prototype,"feature",void 0),g=(0,r._)([(0,y.c)("esri.analysis.LineOfSightAnalysisObserver")],g);const v=g;let b=class extends((0,c.Ib)(u.m)){constructor(t){super(t),this.position=null,this.elevationInfo=null,this.feature=null}equals(t){return(0,p.O4)(this.position,t.position)&&(0,p.O4)(this.elevationInfo,t.elevationInfo)&&o(this.feature,t.feature)}};(0,r._)([(0,d.qq)({type:h.c}),(0,f.O)()],b.prototype,"position",void 0),(0,r._)([(0,d.qq)({type:m.c}),(0,f.O)()],b.prototype,"elevationInfo",void 0),(0,r._)([(0,d.qq)(l)],b.prototype,"feature",void 0),b=(0,r._)([(0,y.c)("esri.analysis.LineOfSightAnalysisTarget")],b);const q=b;var w=n(2952),I=n(30604),_=n(57896),x=n(60074),E=n(77048),j=n(69204);const O=w.c.ofType(q);let T=class extends i.c{constructor(t){super(t),this.type="line-of-sight",this.observer=null,this.extent=null}initialize(){this.addHandles((0,_.aE)((()=>this._computeExtent()),(t=>{null==t?.pending&&this._set("extent",null!=t?t.extent:null)}),_.KG))}get targets(){return this._get("targets")||new O}set targets(t){this._set("targets",(0,I.q)(t,this.targets,O))}get spatialReference(){return null!=this.observer?.position?this.observer.position.spatialReference:null}get requiredPropertiesForEditing(){return[this.observer?.position]}async waitComputeExtent(){const t=this._computeExtent();return null!=t?t.pending:Promise.resolve()}_computeExtent(){const t=this.spatialReference;if(null==this.observer?.position||null==t)return null;const e=t=>"absolute-height"===(0,j.m6)(t.position,t.elevationInfo),n=this.observer.position,r=(0,E.WK)(n.x,n.y,n.z,n.x,n.y,n.z);for(const e of this.targets)if(null!=e.position){const n=(0,x.projectOrLoad)(e.position,t);if(null!=n.pending)return{pending:n.pending,extent:null};if(null!=n.geometry){const{x:t,y:e,z:i}=n.geometry;(0,E.K8)(r,[t,e,i])}}const i=(0,E.WU)(r,t);return e(this.observer)&&this.targets.every(e)||(i.zmin=void 0,i.zmax=void 0),{pending:null,extent:i}}clear(){this.observer=null,this.targets.removeAll()}};(0,r._)([(0,d.qq)({type:["line-of-sight"]})],T.prototype,"type",void 0),(0,r._)([(0,d.qq)({type:v,json:{read:!0,write:!0}})],T.prototype,"observer",void 0),(0,r._)([(0,d.qq)({cast:I.W,type:O,nonNullable:!0,json:{read:!0,write:!0}})],T.prototype,"targets",null),(0,r._)([(0,d.qq)({value:null,readOnly:!0})],T.prototype,"extent",void 0),(0,r._)([(0,d.qq)({readOnly:!0})],T.prototype,"spatialReference",null),(0,r._)([(0,d.qq)({readOnly:!0})],T.prototype,"requiredPropertiesForEditing",null),T=(0,r._)([(0,y.c)("esri.analysis.LineOfSightAnalysis")],T);const S=T;var A=n(26496),U=n(81436),N=n(66576);const R=w.c.ofType(q);let L=class extends((0,N.Y)((0,A.U)(U.c))){constructor(t){super(t),this.type="line-of-sight",this.operationalLayerType="LineOfSightLayer",this.analysis=new S,this.opacity=1}initialize(){this.addHandles((0,_.aE)((()=>this.analysis),((t,e)=>{null!=e&&e.parent===this&&(e.parent=null),null!=t&&(t.parent=this)}),_.KG))}async load(){return null!=this.analysis&&this.addResolvingPromise(this.analysis.waitComputeExtent()),this}get observer(){return this.analysis?.observer}set observer(t){const{analysis:e}=this;e&&(e.observer=t)}get targets(){return null!=this.analysis?this.analysis.targets:new w.c}set targets(t){(0,I.q)(t,this.analysis?.targets)}get fullExtent(){return null!=this.analysis?this.analysis.extent:null}get spatialReference(){return null!=this.analysis?this.analysis.spatialReference:null}releaseAnalysis(t){this.analysis===t&&(this.analysis=new S)}};(0,r._)([(0,d.qq)({json:{read:!1},readOnly:!0})],L.prototype,"type",void 0),(0,r._)([(0,d.qq)({type:["LineOfSightLayer"]})],L.prototype,"operationalLayerType",void 0),(0,r._)([(0,d.qq)({type:v,json:{read:!0,write:{isRequired:!0,ignoreOrigin:!0}}})],L.prototype,"observer",null),(0,r._)([(0,d.qq)({type:R,json:{read:!0,write:{ignoreOrigin:!0}}})],L.prototype,"targets",null),(0,r._)([(0,d.qq)({nonNullable:!0,json:{read:!1,write:!1}})],L.prototype,"analysis",void 0),(0,r._)([(0,d.qq)({readOnly:!0})],L.prototype,"fullExtent",null),(0,r._)([(0,d.qq)({readOnly:!0})],L.prototype,"spatialReference",null),(0,r._)([(0,d.qq)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],L.prototype,"opacity",void 0),(0,r._)([(0,d.qq)({type:["show","hide"]})],L.prototype,"listMode",void 0),L=(0,r._)([(0,y.c)("esri.layers.LineOfSightLayer")],L);const M=L},73960:(t,e,n)=>{n.d(e,{e:()=>i});var r=n(28176);function i(t){return o[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){const e=(0,r.wt)(t);return a[e]||s}(t.url)}(t)]||l}const o={},s="text/plain",l=o[s],a={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in a)o[a[t]]=t},69204:(t,e,n)=>{function r(t,e){return e?.mode?e.mode:function(t){return t?u:c}(t).mode}function i(t,e){return r(null!=t&&t.hasZ,e)}function o(t,e,n){return n&&n.mode!==e?`${t} only support ${e} elevation mode`:null}function s(t,e,n){return n?.mode===e?`${t} do not support ${e} elevation mode`:null}function l(t,e){return null!=e?.featureExpressionInfo&&"0"!==e.featureExpressionInfo.expression?`${t} do not support featureExpressionInfo`:null}function a(t,e){e&&t.warn(".elevationInfo=",e)}n.d(e,{A$:()=>a,Ez:()=>o,W8:()=>l,ay:()=>s,m6:()=>i}),n(35764);const u={mode:"absolute-height",offset:0},c={mode:"on-the-ground",offset:null}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2612],{13452:(e,t,r)=>{r.d(t,{c:()=>p});var s=r(41948),i=r(3856),n=r(40504),o=r(94360),a=r(1580),l=(r(9456),r(66360),r(72052),r(9968)),u=r(12552),c=r(4736);let d=class extends((0,i.q)(n.am)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.QJ)(this.value,this.unit,"milliseconds")}};(0,s._)([(0,l.G)(c.e,{nonNullable:!0})],d.prototype,"unit",void 0),(0,s._)([(0,a.qq)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,s._)([(0,u.c)("esri.TimeInterval")],d);const p=d},54792:(e,t,r)=>{r.d(t,{c:()=>n});var s=r(67432),i=r(9592);class n{constructor(e=(e=>e.values().next().value)){this._peeker=e,this._observable=new i.n,this._items=new Set}get length(){return(0,s.am)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,s.am)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){const t=this.length;return this._items.forEach((t=>{e(t)||this._items.delete(t)})),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,s.am)(this._observable),yield*this._items}}},44247:(e,t,r)=>{async function s(e,t){const{WhereClause:s}=await Promise.all([r.e(3220),r.e(988)]).then(r.bind(r,63220));return s.create(e,t)}function i(e,t){return null!=e&&""!==e?null!=t&&""!==t?`(${e}) AND (${t})`:e:t}r.d(t,{_:()=>i,u:()=>s})},75824:(e,t,r)=>{r.d(t,{Md:()=>n,m0:()=>o,qG:()=>i});var s=r(39452);class i{}function n(e){return e instanceof s.C?e===i.instance:"unknown"===e?.toString().toLowerCase()}function o(e){return n(e)?i.instance:e}i.instance=new s._C("Etc/UTC")},46448:(e,t,r)=>{r.d(t,{c:()=>u});var s=r(38912),i=r(10860),n=r(54792),o=r(13056),a=r(25512),l=r(38432);class u{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new n.c}destroy(){this.close()}get closed(){return!this._clients?.length}open(e,t){return new Promise(((r,s)=>{let n=!0;const o=e=>{(0,i.wp)(t.signal),n&&(n=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length,this._inUseClients.length=e.length;for(let n=0;n<e.length;++n){const a=e[n];(0,i.eW)(a)?this._clientPromises[n]=a.then((e=>(this._clients[n]=new l.default(e,t,this._ongoingJobsQueue),o(r),this._clients[n])),(()=>(o(s),null))):(this._clients[n]=new l.default(a,t,this._ongoingJobsQueue),this._clientPromises[n]=Promise.resolve(this._clients[n]),o(r))}}))}broadcast(e,t,r){const s=new Array(this._clientPromises.length);for(let i=0;i<this._clientPromises.length;++i){const n=this._clientPromises[i];s[i]=n.then((s=>s?.invoke(e,t,r)))}return s}close(){let e;for(;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,i.Uh)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clientPromises)e.then((e=>e?.close()));this._clients.length=0,this._clientPromises.length=0,this._inUseClients.length=0,(0,o.S)(this)}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const s=(0,i.qG)();this._ongoingJobsQueue.push({methodName:e,data:t,invokeOptions:r,resolver:s});for(let e=0;e<this._clientPromises.length;e++){const t=this._clients[e];t?t.jobAdded():this._clientPromises[e].then((e=>e?.jobAdded()))}return s.promise}createInvokeProxy(e){return(0,a.Y)(this,e)}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,s.Ip)(this._clients.map((r=>r.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let r=t.length;for(let s=0;s<this._clientPromises.length;++s)this._clientPromises[s].then((i=>{i&&(t[s]=i.openPort()),0==--r&&e(t)}))}))}get test(){return{numClients:this._clients.length}}}},13056:(e,t,r)=>{r.d(t,{S:()=>n,s:()=>i});const s=new FinalizationRegistry((e=>{e.close()}));function i(e,t){s.register(e,t,t)}function n(e){s.unregister(e)}},35268:(e,t,r)=>{r.d(t,{eU:()=>G});var s=r(20744),i=r(9456),n=r(10860),o=r(46448),a=r(13056),l=r(38432),u=r(66360),c=r(70680),d=r(2600),p=r(28176);const h={async request(e,t){const r=e.options,s=r.responseType;r.signal=t?.signal,r.responseType="native"===s||"native-request-init"===s?"native-request-init":s&&["blob","json","text"].includes(s)&&(0,p.OO)(e.url)?.after?s:"array-buffer";const i=await(0,d.c)(e.url,r),n={data:i.data,httpStatus:i.httpStatus,ssl:i.ssl};switch(i.requestOptions?.responseType){case"native-request-init":return delete n.data.signal,n;case"blob":n.data=await n.data.arrayBuffer();break;case"json":n.data=(new TextEncoder).encode(JSON.stringify(n.data)).buffer;break;case"text":n.data=(new TextEncoder).encode(n.data).buffer}return{result:n,transferList:[n.data]}}};var m=r(31056),f=r(24832),y=r(6220),g=(r(2016),r(47620));const w={};var v=r(52324);class _{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...r)=>e[t](...r)}))}}class b{constructor(){this._dispatcher=new _,this._workerPostMessage({type:m.MessageType.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,v.o)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,v.o)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,m.mO)(e);if(t&&t.type===m.MessageType.OPEN){const{modulePath:e,jobId:r}=t;let s=await l.default.loadWorker(e);s||(s=await import(e));const i=l.default.connect(s);this._workerPostMessage({type:m.MessageType.OPENED,jobId:r,data:i})}}}var q=r(89960),x=r(69880);const F=()=>u.c.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:I}=m.MessageType;let E,O;const S="Failed to create Worker. Fallback to execute module in main thread";async function T(e){return new Promise((t=>{function r(i){const n=(0,m.mO)(i);n&&n.type===I&&(e.removeEventListener("message",r),e.removeEventListener("error",s),t(e))}function s(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",s),F().warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new b).addEventListener("message",r),e.addEventListener("error",s)}e.addEventListener("message",r),e.addEventListener("error",s)}))}let R=0;const{ABORT:P,INVOKE:k,OPEN:N,OPENED:j,RESPONSE:C}=m.MessageType;class M{static async create(e){const t=await async function(){if(!(0,i.c)("esri-workers"))return T(new b);if(!E&&!O)try{const e='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,s)=>{if(t){if(t.aborted)return s(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:ABORT,jobId:n}),s(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:s}),self.postMessage({type:INVOKE,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,fullVersion:r}=configuration.kernelInfo,{revision:t,fullVersion:n,version:s}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\\nModules version: ${r}\\nAssets version: ${n??s}\\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case OPEN:let n;function t(e){const o=n.connect(e);self.postMessage({type:OPENED,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],(e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((e=>(n=e.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case RESPONSE:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split('"{CONFIGURATION}"').join(`'${function(){let e;if(null!=y.default.default){const t={...y.default};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(y.default));e.assetsPath=(0,p.WM)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,p.WM)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,q.a8)(),e.has={"esri-csp-restrictions":(0,i.c)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,i.c)("esri-2d-update-debug"),"esri-2d-log-updating":(0,i.c)("esri-2d-log-updating"),"featurelayer-pbf":(0,i.c)("featurelayer-pbf"),"featurelayer-fast-triangulation-enabled":(0,i.c)("featurelayer-fast-triangulation-enabled"),"featurelayer-simplify-thresholds":(0,i.c)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,i.c)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,i.c)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,i.c)("featurelayer-query-max-depth"),"featurelayer-query-pausing-enabled":(0,i.c)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-enabled":(0,i.c)("featurelayer-snapshot-enabled"),"esri-atomics":(0,i.c)("esri-atomics"),"esri-shared-array-buffer":(0,i.c)("esri-shared-array-buffer"),"esri-tiles-debug":(0,i.c)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,i.c)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,i.c)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,p.WM)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,p.WM)(e.workers.workerPath):e.workers.workerPath=(0,p.WM)((0,f.O)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=y.default.workers.loaderConfig,r=function(e){const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages?.concat()||[],paths:{...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=w.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,q.a8)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),s={buildDate:x.W,fullVersion:g.c1,revision:x.m};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:s})}()}'`);E=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){O=e||{}}let e;if(E)try{e=new Worker(E,{name:"esri-worker-"+R++})}catch(t){F().warn(S,O),e=new b}else F().warn(S,O),e=new b;return T(e)}();return new M(t,e)}constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),u.c.getLogger("esri.core.workers.WorkerOwner").error(e)}))}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,s=(0,m.EH)();return new Promise(((t,i)=>{const o={resolve:t,reject:i,abortHandle:(0,n.Ij)(r,(()=>{this._outJobs.delete(s),this._post({type:P,jobId:s})}))};this._outJobs.set(s,o),this._post({type:N,jobId:s,modulePath:e})}))}_onMessage(e){const t=(0,m.mO)(e);if(t)switch(t.type){case j:this._onOpenedMessage(t);break;case C:this._onResponseMessage(t);break;case P:this._onAbortMessage(t);break;case k:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,s=t.get(r);s&&(s.controller&&s.controller.abort(),t.delete(r))}_onInvokeMessage(e){const{methodName:t,jobId:r,data:s,abortable:i}=e,o=i?new AbortController:null,a=this._inJobs,l=h[t];let u;try{if("function"!=typeof l)throw new TypeError(`${t} is not a function`);u=l.call(null,s,{signal:o?o.signal:null})}catch(e){return void this._post({type:C,jobId:r,error:(0,m.O)(e)})}(0,n.eW)(u)?(a.set(r,{controller:o,promise:u}),u.then((e=>{a.has(r)&&(a.delete(r),this._post({type:C,jobId:r},e))}),(e=>{a.has(r)&&(a.delete(r),e||(e={message:"Error encountered at method"+t}),(0,n.mA)(e)||this._post({type:C,jobId:r,error:(0,m.O)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:C,jobId:r},u)}_onOpenedMessage(e){const{jobId:t,data:r}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,c.oR)(s.abortHandle),s.resolve(r))}_onResponseMessage(e){const{jobId:t,error:r,data:i}=e,n=this._outJobs.get(t);n&&(this._outJobs.delete(t),(0,c.oR)(n.abortHandle),r?n.reject(s.c.fromJSON(JSON.parse(r))):n.resolve(i))}_post(e,t,r){return(0,m.E9)(this.worker,e,t,r)}}const U=(0,i.c)("host-browser")?Math.min(navigator.hardwareConcurrency-1,(0,i.c)("workers-pool-size")):0;let A=(0,i.c)("esri-mobile")?Math.min(U,3):U;A||(A=(0,i.c)("safari")&&(0,i.c)("mac")?7:2);let D=0;const L=[];async function J(e,t){const r=new o.c,{registryTarget:s,...i}=t;return await r.open(e,i),s&&(0,a.s)(s,r),r}async function G(e,t={}){if("string"!=typeof e)throw new s.c("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";if((0,i.c)("host-webworker")&&!(0,i.c)("esri-workers")&&(r="local"),"local"===r){let r=await l.default.loadWorker(e);r||(r=await import(e)),(0,n.wp)(t.signal);const s=t.client||r;return J([l.default.connect(r)],{...t,client:s})}if(await async function(){if(H)return H;W=new AbortController;const e=[];for(let t=0;t<A;t++){const r=M.create(t).then((e=>(L[t]=e,e)));e.push(r)}return H=Promise.all(e),H}(),(0,n.wp)(t.signal),"dedicated"===r){const r=D++%A;return J([await L[r].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const r=Math.min(t.maxNumWorkers,A);if(r<A){const s=new Array(r);for(let i=0;i<r;++i){const r=D++%A;s[i]=L[r].open(e,t)}return J(s,t)}}return J(L.map((r=>r.open(e,t))),t)}let W,H=null},77048:(e,t,r)=>{r.d(t,{C6:()=>c,FZ:()=>h,K:()=>w,K8:()=>l,MZ:()=>a,Qv:()=>m,Su:()=>i,WK:()=>n,WO:()=>p,WU:()=>o,eC:()=>u,is:()=>y,mK:()=>d,qy:()=>f,yK:()=>g});var s=r(95247);function i(e=v){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function n(e,t,r,s,n,o,a=i()){return a[0]=e,a[1]=t,a[2]=r,a[3]=s,a[4]=n,a[5]=o,a}function o(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new s.c(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 a(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 l(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 u(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 c(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 d(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 p(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 h(e){return e?p(e,w):i(w)}function m(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function f(e,t,r,s,i){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=s,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function y(e){return 6===e.length}function g(e,t,r){if(null==e||null==t)return e===t;if(!y(e)||!y(t))return!1;if(r){for(let s=0;s<e.length;s++)if(!r(e[s],t[s]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r(83372);const w=[1/0,1/0,1/0,-1/0,-1/0,-1/0],v=[0,0,0,0,0,0];i()},53440:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Z});var s=r(41948),i=(r(60708),r(82692)),n=(r(99704),r(73868),r(90200),r(12836),r(63718),r(2360),r(64624),r(24948),r(70236),r(37284)),o=r(26496),a=r(58820),l=r(28176),u=r(1580),c=r(53368),d=(r(72052),r(9456)),p=r(12552),h=r(18996),m=r(97492),f=r(81436),y=r(20744),g=r(95800),w=r(66360),v=r(10860),_=r(35268),b=r(17724),q=r(44808),x=r(59500),F=r(28484),I=r(95247);let E=class extends g.c{constructor(){super(...arguments),this._connection=null,this._workerHandler=null,this.capabilities=(0,b.G4)(!1,!1),this.type="wfs",this.refresh=(0,v.Cu)((async()=>{await this.load();const e={customParameters:this.layer.customParameters,maxRecordCount:this.layer.maxRecordCount,maxTotalRecordCount:this.layer.maxTotalRecordCount,maxPageCount:this.layer.maxPageCount},{extent:t}=await this._workerHandler.refresh(e);return t&&(this.sourceJSON.extent=t),{dataChanged:!0,updates:{extent:this.sourceJSON.extent}}}))}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._startWorker({signal:t})),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null,this._workerHandler=null}async openPorts(){return await this.load(),this._connection.openPorts()}async queryFeatures(e,t={}){const r=await this.queryFeaturesJSON(e,t);return x.c.fromJSON(r)}async queryFeaturesJSON(e,t={}){return await this.load(t),this._workerHandler.queryFeatures(e?e.toJSON():void 0,t)}async queryFeatureCount(e,t={}){return await this.load(t),this._workerHandler.queryFeatureCount(e?e.toJSON():void 0,t)}async queryObjectIds(e,t={}){return await this.load(t),this._workerHandler.queryObjectIds(e?e.toJSON():void 0,t)}async queryExtent(e,t={}){await this.load(t);const r=await this._workerHandler.queryExtent(e?e.toJSON():void 0,t);return{count:r.count,extent:I.c.fromJSON(r.extent)}}async querySnapping(e,t={}){return await this.load(t),this._workerHandler.querySnapping(e,t)}async _createLoadOptions(e){const{url:t,customParameters:r,name:s,namespaceUri:i,fields:n,geometryType:o,maxRecordCount:a,maxPageCount:l,maxTotalRecordCount:u,swapXY:c}=this.layer,d="defaults"===this.layer.originOf("spatialReference")?void 0:this.layer.spatialReference;if(!t)throw new y.c("wfs-layer:missing-url","WFSLayer must be created with a url");this.wfsCapabilities||(this.wfsCapabilities=await(0,q.iO)(t,{customParameters:r,...e}));const p=["fields","geometryType","name","namespaceUri","swapXY"].some((e=>null==this.layer[e])),h=p?await(0,q.O8)(this.wfsCapabilities,s,i,{spatialReference:d,customParameters:r,signal:e?.signal}):{...(0,q.k1)(n??[]),geometryType:o,name:s,namespaceUri:i,spatialReference:d,swapXY:c},f=(0,q.oZ)(this.wfsCapabilities.readFeatureTypes(),h.name,h.namespaceUri),g=m.U.toJSON(h.geometryType),{operations:w}=this.wfsCapabilities,v=w.GetFeature.url,_=w.GetFeature.outputFormat;return{customParameters:r,featureType:f,fields:h.fields?.map((e=>e.toJSON()))??[],geometryField:h.geometryField,geometryType:g,getFeatureUrl:v,getFeatureOutputFormat:_,maxRecordCount:a,maxPageCount:l,maxTotalRecordCount:u,objectIdField:h.objectIdField,spatialReference:h.spatialReference?.toJSON(),swapXY:!!h.swapXY}}async _startWorker(e){const[t,r]=await(0,v.Dv)([this._createLoadOptions(e),(0,_.eU)("WFSSourceWorker",{...e,strategy:(0,d.c)("feature-layers-workers")?"dedicated":"local",registryTarget:this})]),s=t.error||r.error||null,i=r.value||null;if(s)throw i&&i.close(),s;const n=t.value;this._connection=r.value,this._workerHandler=this._connection.createInvokeProxy();const o=await this._workerHandler.load(n,e);for(const e of o.warnings)w.c.getLogger(this.layer).warn("#load()",`${e.message} (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{warning:e});this.sourceJSON={dateFieldsTimeReference:{timeZoneIANA:F.Gw},extent:o.extent,fields:n.fields,geometryType:n.geometryType,objectIdField:n.objectIdField,geometryField:n.geometryField,drawingInfo:(0,b.w7)(n.geometryType),name:n.featureType.title,wfsInfo:{name:n.featureType.name,featureUrl:n.getFeatureUrl,maxFeatures:n.maxRecordCount,swapXY:n.swapXY,supportedSpatialReferences:n.featureType.supportedSpatialReferences,version:"2.0.0",wfsNamespace:n.featureType.namespaceUri}}}};(0,s._)([(0,u.qq)()],E.prototype,"capabilities",void 0),(0,s._)([(0,u.qq)({constructOnly:!0})],E.prototype,"layer",void 0),(0,s._)([(0,u.qq)()],E.prototype,"sourceJSON",void 0),(0,s._)([(0,u.qq)()],E.prototype,"type",void 0),(0,s._)([(0,u.qq)()],E.prototype,"wfsCapabilities",void 0),E=(0,s._)([(0,p.c)("esri.layers.graphics.sources.WFSSource")],E);var O,S=r(25216),T=r(28584),R=r(13116),P=r(66888),k=r(66576),N=r(30112),j=r(98768),C=r(26916),M=r(3116),U=r(19560),A=r(21488),D=r(600),L=r(81732),J=r(564),G=r(6168),W=r(34880),H=r(95776),z=r(65548),$=r(56156);const B=(0,L.l)();let Q=O=class extends((0,N.W)((0,T.G)((0,P.c)((0,R.w)((0,S.W)((0,U.u)((0,C.G)((0,M.I)((0,k.Y)((0,j.K)((0,o.U)(f.c)))))))))))){static fromWFSLayerInfo(e){const{customParameters:t,fields:r,geometryField:s,geometryType:i,name:n,namespaceUri:o,objectIdField:a,spatialReference:l,swapXY:u,url:c,wfsCapabilities:d}=e;return new O({customParameters:t,fields:r,geometryField:s,geometryType:i,name:n,namespaceUri:o,objectIdField:a,spatialReference:l,swapXY:u,url:c,wfsCapabilities:d})}constructor(e){super(e),this.copyright=null,this.customParameters=null,this.dateFieldsTimeZone=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.featureUrl=void 0,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="WFS",this.maxRecordCount=3e3,this.maxPageCount=10,this.maxTotalRecordCount=2e5,this.mode=0,this.name=null,this.namespaceUri=null,this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new E({layer:this}),this.spatialReference=$.c.WGS84,this.spatialReferences=[4326],this.swapXY=void 0,this.title="WFS",this.type="wfs",this.url=null,this.version=void 0}destroy(){this.source?.destroy()}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WFS"]},e).then((()=>this.source.load(e))).then((()=>{this.read(this.source.sourceJSON,{origin:"service",url:this.parsedUrl}),this.revert(["objectIdField","fields","timeInfo","spatialReference","name","namespaceUri"],"service"),(0,J.Gi)(this.renderer,this.fieldsIndex),(0,J.Wc)(this.timeInfo,this.fieldsIndex)}))),Promise.resolve(this)}get capabilities(){return this.source?.capabilities}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")||0)+1}get defaultPopupTemplate(){return this.createPopupTemplate()}writeFields(e,t,r){const s=e.filter((e=>e.name!==q.Av));this.geometryField&&s.unshift(new D.c({name:this.geometryField,alias:this.geometryField,type:"geometry"})),(0,a.qQ)(r,s.map((e=>e.toJSON())),t)}get parsedUrl(){return(0,l.as)(this.url)}set renderer(e){(0,J.Gi)(e,this.fieldsIndex),this._set("renderer",e)}get wfsCapabilities(){return this.source?.wfsCapabilities}set wfsCapabilities(e){this.source&&(this.source.wfsCapabilities=e)}createPopupTemplate(e){return(0,z.Ap)(this,e)}createQuery(){const e=new H.c({returnGeometry:!0,outFields:["*"],where:this.definitionExpression||"1=1"}),{timeOffset:t,timeExtent:r}=this;return e.timeExtent=null!=t&&null!=r?r.offset(-t.value,t.unit):r||null,e}getFieldDomain(e,t){return this.getField(e)?.domain}getField(e){return this.fieldsIndex?.get(e)}queryFeatures(e,t){return this.load().then((()=>this.source.queryFeatures(H.c.from(e)||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=t.sourceLayer=this;return e}))}queryObjectIds(e,t){return this.load().then((()=>this.source.queryObjectIds(H.c.from(e)||this.createQuery(),t)))}queryFeatureCount(e,t){return this.load().then((()=>this.source.queryFeatureCount(H.c.from(e)||this.createQuery(),t)))}queryExtent(e,t){return this.load().then((()=>this.source.queryExtent(H.c.from(e)||this.createQuery(),t)))}async hasDataChanged(){try{const{dataChanged:e,updates:t}=await this.source.refresh();return null!=t&&this.read(t,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0}),e}catch{}return!1}};(0,s._)([(0,u.qq)({readOnly:!0})],Q.prototype,"capabilities",null),(0,s._)([(0,u.qq)({type:String})],Q.prototype,"copyright",void 0),(0,s._)([(0,u.qq)({readOnly:!0})],Q.prototype,"createQueryVersion",null),(0,s._)([(0,u.qq)({json:{name:"wfsInfo.customParameters",write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0),ignoreOrigin:!0})}}})],Q.prototype,"customParameters",void 0),(0,s._)([(0,u.qq)((0,F.SM)("dateFieldsTimeReference"))],Q.prototype,"dateFieldsTimeZone",void 0),(0,s._)([(0,u.qq)({readOnly:!0})],Q.prototype,"defaultPopupTemplate",null),(0,s._)([(0,u.qq)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Q.prototype,"definitionExpression",void 0),(0,s._)([(0,u.qq)({type:String})],Q.prototype,"displayField",void 0),(0,s._)([(0,u.qq)(A.Kg)],Q.prototype,"elevationInfo",void 0),(0,s._)([(0,u.qq)({type:String,readOnly:!0,json:{name:"wfsInfo.featureUrl",write:{ignoreOrigin:!0,isRequired:!0}}})],Q.prototype,"featureUrl",void 0),(0,s._)([(0,u.qq)({type:[D.c],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],Q.prototype,"fields",void 0),(0,s._)([(0,h.G)("fields")],Q.prototype,"writeFields",null),(0,s._)([(0,u.qq)(B.fieldsIndex)],Q.prototype,"fieldsIndex",void 0),(0,s._)([(0,u.qq)({type:I.c,json:{name:"extent"}})],Q.prototype,"fullExtent",void 0),(0,s._)([(0,u.qq)()],Q.prototype,"geometryField",void 0),(0,s._)([(0,u.qq)({type:String,json:{read:{source:"layerDefinition.geometryType",reader:m.U.read},write:{target:"layerDefinition.geometryType",writer:m.U.write,ignoreOrigin:!0},origins:{service:{read:m.U.read}}}})],Q.prototype,"geometryType",void 0),(0,s._)([(0,u.qq)({type:String})],Q.prototype,"id",void 0),(0,s._)([(0,u.qq)(A.Wu)],Q.prototype,"labelsVisible",void 0),(0,s._)([(0,u.qq)({type:[G.c],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:W.E},write:!0}})],Q.prototype,"labelingInfo",void 0),(0,s._)([(0,u.qq)(A.Uj)],Q.prototype,"legendEnabled",void 0),(0,s._)([(0,u.qq)({type:["show","hide"]})],Q.prototype,"listMode",void 0),(0,s._)([(0,u.qq)({type:String})],Q.prototype,"objectIdField",void 0),(0,s._)([(0,u.qq)({type:["WFS"]})],Q.prototype,"operationalLayerType",void 0),(0,s._)([(0,u.qq)({type:c.Ab,json:{name:"wfsInfo.maxFeatures",write:{ignoreOrigin:!0,isRequired:!0}}})],Q.prototype,"maxRecordCount",void 0),(0,s._)([(0,u.qq)({type:c.Ab})],Q.prototype,"maxPageCount",void 0),(0,s._)([(0,u.qq)({type:c.Ab})],Q.prototype,"maxTotalRecordCount",void 0),(0,s._)([(0,u.qq)({type:[0],readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],Q.prototype,"mode",void 0),(0,s._)([(0,u.qq)({type:String,json:{name:"wfsInfo.name",write:{ignoreOrigin:!0,isRequired:!0}}})],Q.prototype,"name",void 0),(0,s._)([(0,u.qq)({type:String,json:{name:"wfsInfo.wfsNamespace",write:{ignoreOrigin:!0,isRequired:!0}}})],Q.prototype,"namespaceUri",void 0),(0,s._)([(0,u.qq)(A.ms)],Q.prototype,"opacity",void 0),(0,s._)([(0,u.qq)(B.outFields)],Q.prototype,"outFields",void 0),(0,s._)([(0,u.qq)({readOnly:!0})],Q.prototype,"parsedUrl",null),(0,s._)([(0,u.qq)(A.Ou)],Q.prototype,"popupEnabled",void 0),(0,s._)([(0,u.qq)({type:i.c,json:{name:"popupInfo",write:!0}})],Q.prototype,"popupTemplate",void 0),(0,s._)([(0,u.qq)({types:n.U,json:{origins:{service:{name:"drawingInfo.renderer"},"web-scene":{types:n.Q,name:"layerDefinition.drawingInfo.renderer",write:!0}},name:"layerDefinition.drawingInfo.renderer",write:{ignoreOrigin:!0}}})],Q.prototype,"renderer",null),(0,s._)([(0,u.qq)(A.Q9)],Q.prototype,"screenSizePerspectiveEnabled",void 0),(0,s._)([(0,u.qq)({readOnly:!0})],Q.prototype,"source",void 0),(0,s._)([(0,u.qq)({type:$.c,json:{name:"layerDefinition.spatialReference",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"extent.spatialReference"}}}})],Q.prototype,"spatialReference",void 0),(0,s._)([(0,u.qq)({readOnly:!0,type:[c.Ab],json:{name:"wfsInfo.supportedSpatialReferences",write:{ignoreOrigin:!0,isRequired:!0}}})],Q.prototype,"spatialReferences",void 0),(0,s._)([(0,u.qq)({type:Boolean,value:!1,json:{name:"wfsInfo.swapXY",write:{ignoreOrigin:!0,isRequired:!0}}})],Q.prototype,"swapXY",void 0),(0,s._)([(0,u.qq)({json:{write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"name"}}}})],Q.prototype,"title",void 0),(0,s._)([(0,u.qq)({json:{read:!1},readOnly:!0})],Q.prototype,"type",void 0),(0,s._)([(0,u.qq)(A.qW)],Q.prototype,"url",void 0),(0,s._)([(0,u.qq)({type:String,readOnly:!0,json:{name:"wfsInfo.version",write:{ignoreOrigin:!0,isRequired:!0}}})],Q.prototype,"version",void 0),(0,s._)([(0,u.qq)()],Q.prototype,"wfsCapabilities",null),Q=O=(0,s._)([(0,p.c)("esri.layers.WFSLayer")],Q);const Z=Q},34888:(e,t,r)=>{r.d(t,{ED:()=>i,_M:()=>s});class s{constructor(e=null,t={},r,s){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=s,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new s(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}clone(){const e=this.geometry?.clone(),t=new s(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t.geohashX=this.geohashX,t.geohashY=this.geohashY,t}}function i(e){return!!e.geometry?.coords?.length}},85152:(e,t,r)=>{r.d(t,{c:()=>s});class s{constructor(e=[],t=[],r=!1){this.lengths=e??[],this.coords=t??[],this.hasIndeterminateRingOrder=r}static fromRect(e){const[t,r,i,n]=e,o=i-t,a=n-r;return new s([5],[t,r,o,0,0,a,-o,0,0,-a])}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let r=0;r<this.lengths.length;r++){const s=this.lengths[r];for(let r=0;r<s;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=s}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let s=0;for(const e of r){for(let r=1;r<e;r++)t[2*(s+r)]+=t[2*(s+r)-2],t[2*(s+r)+1]+=t[2*(s+r)-1];s+=e}return e}clone(e){if(0===this.lengths.length)return new s([],[this.coords[0],this.coords[1]]);const t=2*(0===this.lengths.length?1:this.lengths.reduce(((e,t)=>e+t))),r=this.coords.slice(0,t);return e?(e.set(r),new s(this.lengths,e,this.hasIndeterminateRingOrder)):new s(Array.from(this.lengths),Array.from(r),this.hasIndeterminateRingOrder)}}},13136:(e,t,r)=>{r.d(t,{u:()=>s});const s={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},17724:(e,t,r)=>{r.d(t,{G4:()=>p,GA:()=>c,QD:()=>d,w7:()=>a});var s=r(9456),i=r(62088),n=r(13136),o=r(9504);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.qe:"esriGeometryPolyline"===e?o.MZ:o.yq}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function c(e,t){if((0,s.c)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this.${t} = null;`;for(const t in e)r+=`this${l.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch(r){return()=>({[t]:null,...e})}}function d(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.ct)(e)}}]}function p(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:n.u,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},13116:(e,t,r)=>{r.d(t,{w:()=>O});var s,i=r(41948),n=r(1580),o=(r(9456),r(66360),r(72052),r(12552)),a=r(20744),l=r(40504),u=r(58820),c=r(24676),d=r(60708),p=r(25228),h=r(14628),m=r(62088),f=r(95776);const y=new h.O({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),g=new h.O({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let w=s=class extends l.am{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:r,spatialRelationship:s,timeExtent:i,objectIds:n,units:o,distance:a}=this;return new f.c({geometry:(0,m.ct)(r),objectIds:(0,m.ct)(n),spatialRelationship:s,timeExtent:(0,m.ct)(i),where:t,units:o,distance:a,...e})}clone(){const{where:e,geometry:t,spatialRelationship:r,timeExtent:i,objectIds:n,units:o,distance:a}=this;return new s({geometry:(0,m.ct)(t),objectIds:(0,m.ct)(n),spatialRelationship:r,timeExtent:(0,m.ct)(i),where:e,units:o,distance:a})}};(0,i._)([(0,n.qq)({type:String,json:{write:!0}})],w.prototype,"where",void 0),(0,i._)([(0,n.qq)({types:d.Su,json:{write:!0}})],w.prototype,"geometry",void 0),(0,i._)([(0,n.qq)({type:y.apiValues,json:{name:"spatialRel",read:{reader:y.read},write:{allowNull:!1,writer:y.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],w.prototype,"spatialRelationship",void 0),(0,i._)([(0,n.qq)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"distance",void 0),(0,i._)([(0,n.qq)({type:[Number],json:{write:!0}})],w.prototype,"objectIds",void 0),(0,i._)([(0,n.qq)({type:g.apiValues,json:{read:g.read,write:{writer:g.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"units",void 0),(0,i._)([(0,n.qq)({type:p.c,json:{write:!0}})],w.prototype,"timeExtent",void 0),w=s=(0,i._)([(0,o.c)("esri.layers.support.FeatureFilter")],w);const v=w;var _;const b={read:{reader:c.gH},write:{writer:c.GA,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},q={read:{reader:c.gH},write:{writer:c.GA,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},x={name:"showExcludedLabels",default:!0};let F=_=class extends l.am{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const r=super.write(e,t);if(t?.origin){if(r.filter){const e=Object.keys(r.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new a.c("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in r)return t.messages?.push(new a.c("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return r}clone(){return new _({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,i._)([(0,n.qq)({type:v,json:{write:{allowNull:!0,writer(e,t,r,s){const i=e?.write({},s);i&&0!==Object.keys(i).length?(0,u.qQ)(r,i,t):(0,u.qQ)(r,null,t)}}}})],F.prototype,"filter",void 0),(0,i._)([(0,n.qq)({json:{write:!0,origins:{"web-map":b,"portal-item":b}}})],F.prototype,"includedEffect",void 0),(0,i._)([(0,n.qq)({json:{write:!0,origins:{"web-map":q,"portal-item":q}}})],F.prototype,"excludedEffect",void 0),(0,i._)([(0,n.qq)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":x,"portal-item":x}}})],F.prototype,"excludedLabelsVisible",void 0),F=_=(0,i._)([(0,o.c)("esri.layers.support.FeatureEffect")],F);const I=F,E={write:{allowNull:!0}},O=e=>{let t=class extends e{constructor(){super(...arguments),this.featureEffect=null}};return(0,i._)([(0,n.qq)({type:I,json:{origins:{"web-map":E,"portal-item":E}}})],t.prototype,"featureEffect",void 0),t=(0,i._)([(0,o.c)("esri.layers.mixins.FeatureEffectLayer")],t),t}},30112:(e,t,r)=>{r.d(t,{W:()=>c});var s=r(41948),i=r(58820),n=r(1580),o=(r(9456),r(66360),r(72052),r(12552)),a=r(35968);function l(e,t,r){if(!e)return null;const s=e.find((e=>!!e.field));if(!s)return null;const i=new a.c;return i.read(s,r),[i]}function u(e,t,r,s){const n=e.find((e=>!!e.field));n&&(0,i.qQ)(r,[n.toJSON()],t)}const c=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,s._)([(0,n.qq)({type:[a.c],json:{origins:{"web-scene":{write:!1,read:!1}},read:{source:"layerDefinition.orderBy",reader:l},write:{target:"layerDefinition.orderBy",writer:u}}})],t.prototype,"orderBy",void 0),t=(0,s._)([(0,o.c)("esri.layers.mixins.OrderedLayer")],t),t}},19560:(e,t,r)=>{r.d(t,{u:()=>p});var s=r(41948),i=r(25228),n=r(13452),o=r(1580),a=(r(9456),r(66360),r(72052),r(33600)),l=r(12552),u=r(564),c=r(99336),d=r(4736);const p=e=>{let t=class extends e{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 s=r.timeOffset,i=d.e.fromJSON(r.timeOffsetUnits);return s&&i?new n.c({value:s,unit:i}):null}set timeInfo(e){(0,u.Wc)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,s._)([(0,o.qq)({type:i.c,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,s._)([(0,o.qq)({type:n.c})],t.prototype,"timeOffset",void 0),(0,s._)([(0,a.E)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,s._)([(0,o.qq)({value:null,type:c.c,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,s._)([(0,o.qq)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,s._)([(0,l.c)("esri.layers.mixins.TemporalLayer")],t),t}},16424:(e,t,r)=>{r.d(t,{c:()=>p});var s=r(20744),i=r(40504),n=r(66360),o=r(86916),a=r(75824),l=r(564),u=r(28484),c=r(39452);const d=new Map;class p{static fromJSON(e){return new p(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new p(e.fields??[],y(e))}static fromLayerJSON(e){return new p(e.fields??[],y(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const r=[];for(const e of this.fields){const t=e?.name,s=m(t);if(t&&s){const i=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(i,e),this._normalizedFieldsMap.set(s,e),r.push(`${i}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,l.gp)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,l.iW)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,l.Mz)(e)||(0,l.w1)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,l.Mz)(e)||(0,l.w1)(e)||e.nullable||void 0!==(0,l.gB)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(h(e))??this._normalizedFieldsMap.get(m(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(n.c.getLogger("esri.layers.support.FieldsIndex").error(new s.c("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.Gw):f.has(t.type)?u.OI:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.OI?a.qG.instance:t===u.Gw?c.Kq.utcInstance:(0,o.wJ)(d,t,(()=>c._C.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,l.eM)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,i.wt)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function h(e){return e.trim().toLowerCase()}function m(e){return(0,l.gP)(e)?.toLowerCase()??""}const f=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function y(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:s,editFieldsInfo:i}=e,n=(s?"startField"in s?s.startField:s.startTimeField:"")??"",o=(s?"endField"in s?s.endField:s.endTimeField:"")??"",a=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,u.Mt)(e.dateFieldsTimeReference):null,l=i?function(e){return"timeZone"in e}(i)?i.timeZone??a:i.dateFieldsTimeReference?(0,u.Mt)(i.dateFieldsTimeReference):a??u.Gw:null,c=s?function(e){return"timeZone"in e}(s)?s.timeZone??a:s.timeReference?(0,u.Mt)(s.timeReference):a:null,d=new Map([[h(i?.creationDateField??""),l],[h(i?.editDateField??""),l],[h(n),c],[h(o),c]]);for(const{name:s,type:i}of e.fields)if(f.has(i))t.set(s,u.OI);else if("date"!==i&&"esriFieldTypeDate"!==i)t.set(s,null);else if(r)t.set(s,u.OI);else{const e=d.get(h(s??""))??a;t.set(s,e)}return t}},35968:(e,t,r)=>{r.d(t,{c:()=>d});var s,i=r(41948),n=r(14628),o=r(40504),a=r(1580),l=(r(9456),r(66360),r(72052),r(12552));const u=new n.O({asc:"ascending",desc:"descending"});let c=s=class extends o.am{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,i._)([(0,a.qq)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,i._)([(0,a.qq)({type:String,json:{write:!0}})],c.prototype,"valueExpression",void 0),(0,i._)([(0,a.qq)({type:u.apiValues,json:{read:u.read,write:u.write}})],c.prototype,"order",void 0),c=s=(0,i._)([(0,l.c)("esri.layers.support.OrderByInfo")],c);const d=c},99336:(e,t,r)=>{r.d(t,{c:()=>f});var s=r(41948),i=r(25228),n=r(13452),o=r(3856),a=r(40504),l=r(1580),u=(r(9456),r(66360),r(72052),r(33600)),c=r(12552),d=r(18996),p=r(28484);function h(e,t){return n.c.fromJSON({value:e,unit:t})}let m=class extends((0,o.q)(a.am)){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}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),s=new Date(t.timeExtent[1]);return new i.c({start:r,end:s})}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]: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,s._)([(0,l.qq)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],m.prototype,"cumulative",void 0),(0,s._)([(0,l.qq)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"endField",void 0),(0,s._)([(0,l.qq)({type:i.c,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"fullTimeExtent",void 0),(0,s._)([(0,u.E)("fullTimeExtent",["timeExtent"])],m.prototype,"readFullTimeExtent",null),(0,s._)([(0,d.G)("fullTimeExtent")],m.prototype,"writeFullTimeExtent",null),(0,s._)([(0,l.qq)({type:Boolean,json:{write:!0}})],m.prototype,"hasLiveData",void 0),(0,s._)([(0,l.qq)({type:n.c,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"interval",void 0),(0,s._)([(0,u.E)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],m.prototype,"readInterval",null),(0,s._)([(0,d.G)("interval")],m.prototype,"writeInterval",null),(0,s._)([(0,l.qq)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"startField",void 0),(0,s._)([(0,l.qq)((0,p.SM)("timeReference",!0))],m.prototype,"timeZone",void 0),(0,s._)([(0,l.qq)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"trackIdField",void 0),(0,s._)([(0,l.qq)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],m.prototype,"useTime",void 0),m=(0,s._)([(0,c.c)("esri.layers.support.TimeInfo")],m);const f=m},36408:(e,t,r)=>{r.d(t,{M:()=>s});const s=new(r(14628).O)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},4144:(e,t,r)=>{r.d(t,{GC:()=>x,I5:()=>f,Wi:()=>g,Y$:()=>m,cF:()=>y,wf:()=>w,y6:()=>h});var s=r(88264);const i="__begin__",n="__end__",o=new RegExp(i,"ig"),a=new RegExp(n,"ig"),l=new RegExp("^"+i,"i"),u=new RegExp(n+"$","i"),c='"',d=c+" + ",p=" + "+c;function h(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function m(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function f(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=h(e.labelExpression),t.type="conventional"),t}function y(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return w(t.expression);case"arcade":return t.expression}return null}function g(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(v);return t?.[1].trim()||null}(t.expression);case"arcade":return x(t.expression)}return null}function w(e){let t;return e?(t=(0,s.qq)(e,(e=>i+'$feature["'+e+'"]'+n)),t=l.test(t)?t.replace(l,""):c+t,t=u.test(t)?t.replace(u,""):t+c,t=t.replaceAll(o,d).replaceAll(a,p)):t='""',t}const v=/^\s*\{([^}]+)\}\s*$/i,_=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,q=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])([\w\s]+)(\1)\s*\));?\s*$/i;function x(e){if(!e)return null;let t=_.exec(e)||b.exec(e);return t?t[1]||t[3]:(t=q.exec(e),t?t[2]:null)}},4736:(e,t,r)=>{r.d(t,{e:()=>s});const s=(0,r(14628).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},59500:(e,t,r)=>{r.d(t,{c:()=>v});var s,i=r(41948),n=r(60708),o=r(6444),a=r(14628),l=r(40504),u=r(62088),c=r(1580),d=(r(9456),r(66360),r(33600)),p=r(12552),h=r(18996),m=r(56156),f=r(6704),y=r(600);const g=new a.O({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=s=class extends l.am{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){const r=m.c.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){const i=e[t],n=o.c.fromJSON(i),a=i.geometry?.spatialReference;null==n.geometry||a||(n.geometry.spatialReference=r);const l=i.aggregateGeometries,u=n.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],s=l[e],i=s?.spatialReference;null==t||i||(t.spatialReference=r)}s.push(n)}return s}writeGeometryType(e,t,r,s){if(e)return void g.write(e,t,r,s);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,s)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,s=(0,f.h4)(e);return s&&!r&&t.spatialReference&&(s.spatialReference=m.c.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,u.ct)({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,i]}=e,n=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-s)/t)),(e=>Math.round((i-e)/r)));for(let e=0,t=n.length;e<t;e++)o?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[s,i],scale:[n,o]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,(e=>e*n+s),(e=>i-e*o),a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}_quantizePoints(e,t,r){let s,i;const n=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=r(a[1]);e===s&&o===i||(n.push([e-s,o-i]),s=e,i=o)}else s=t(a[0]),i=r(a[1]),n.push([s,i])}return n.length>0?n: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,f.Cs)(e)?e.rings:e.paths,i=[];for(let e=0,n=s.length;e<n;e++){const n=s[e],o=this._quantizePoints(n,t,r);o&&i.push(o)}return i.length>0?((0,f.Cs)(e)?e.rings=i:e.paths=i,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,i){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 n=(0,f.Cs)(e)?e.rings:e.paths;let o,a;for(let e=0,s=n.length;e<s;e++){const s=n[e];for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(o+=i[0],a+=i[1]):(o=i[0],a=i[1]),i[0]=t(o),i[1]=r(a)}}if(s&&i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2]),r[3]=i(r[3])}}else if(s)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(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)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let o,a;for(let e=0,s=n.length;e<s;e++){const s=n[e];e>0?(o+=s[0],a+=s[1]):(o=s[0],a=s[1]),s[0]=t(o),s[1]=r(a)}if(s&&i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=s(t[2]),t[3]=i(t[3])}else if(s)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=s(t[2])}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2])}}:null}};(0,i._)([(0,c.qq)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,i._)([(0,c.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,i._)([(0,c.qq)({type:[o.c],json:{write:!0}})],w.prototype,"features",void 0),(0,i._)([(0,d.E)("features")],w.prototype,"readFeatures",null),(0,i._)([(0,c.qq)({type:[y.c],json:{write:!0}})],w.prototype,"fields",void 0),(0,i._)([(0,c.qq)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,i._)([(0,h.G)("geometryType")],w.prototype,"writeGeometryType",null),(0,i._)([(0,c.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,i._)([(0,c.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,i._)([(0,c.qq)({types:n.Su,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,i._)([(0,d.E)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,i._)([(0,c.qq)({type:m.c,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,i._)([(0,h.G)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,i._)([(0,c.qq)({json:{write:!0}})],w.prototype,"transform",void 0),w=s=(0,i._)([(0,p.c)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const v=w}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2296],{44728:(e,t,r)=>{r.d(t,{c:()=>c});var i,n,s=r(46988),o=r(53648),l=r(53368);function a(e){return(0,o.qk)((0,l.Wu)(e),0,255)}function d(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}function u(e,t){const r=e.toString(16).padStart(2,"0");return t?r.substring(0,1):r}class p{static blendColors(e,t,r,i=new p){return i.r=Math.round(e.r+(t.r-e.r)*r),i.g=Math.round(e.g+(t.g-e.g)*r),i.b=Math.round(e.b+(t.b-e.b)*r),i.a=e.a+(t.a-e.a)*r,i._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),i=r[1];if("rgb"===i&&3===e.length||"rgba"===i&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),p.fromArray(r,t)}return p.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===i&&3===e.length||"hsla"===i&&4===e.length)return p.fromArray((0,s.ec)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new p){if("#"!==e[0]||isNaN(Number(`0x${e.substring(1)}`)))return null;switch(e.length){case 4:case 5:{const r=parseInt(e.substring(1,2),16),i=parseInt(e.substring(2,3),16),n=parseInt(e.substring(3,4),16),s=5===e.length?15:parseInt(e.substring(4),16);return p.fromArray([r+16*r,i+16*i,n+16*n,(s+16*s)/255],t)}case 7:case 9:{const r=parseInt(e.substring(1,3),16),i=parseInt(e.substring(3,5),16),n=parseInt(e.substring(5,7),16),s=7===e.length?255:parseInt(e.substring(7),16);return p.fromArray([r,i,n,s/255],t)}default:return null}}static fromArray(e,t=new p){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,s.kv)(e)?(0,s.SQ)(e):null;return r&&p.fromArray(r,t)||p.fromRgb(e,t)||p.fromHex(e,t)}static fromJSON(e){return null!=e?new p([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}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){return"string"==typeof e?p.fromString(e,this):Array.isArray(e)?p.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof p||this._sanitize()),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,i=3===r||4===r,n=4===r||8===r,s=`#${u(this.r,i)}${u(this.g,i)}${u(this.b,i)}${n?u(Math.round(255*this.a),i):""}`;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=p.AlphaMode.ALWAYS){const t=a(this.r),r=a(this.g),i=a(this.b);return e===p.AlphaMode.ALWAYS||1!==this.a?[t,r,i,a(255*this.a)]:[t,r,i]}clone(){return new p(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=Math.round(d(this.r,0,255)),this.g=Math.round(d(this.g,0,255)),this.b=Math.round(d(this.b,0,255)),this.a=d(this.a,0,1),this}_set(e,t,r,i){this.r=e,this.g=t,this.b=r,this.a=i}}p.prototype.declaredClass="esri.Color",(n=(i=p||(p={})).AlphaMode||(i.AlphaMode={}))[n.ALWAYS=0]="ALWAYS",n[n.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const c=p},25228:(e,t,r)=>{r.d(t,{c:()=>m});var i,n=r(41948),s=r(40504),o=r(94360),l=r(1580),a=(r(9456),r(66360),r(72052),r(33600)),d=r(12552),u=r(18996),p=r(28484);let c=i=class extends s.am{static get allTime(){return h}static get empty(){return y}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,o.aU)(r,e,t));let n=this.end;if(n){const r=(0,o.aU)(n,e,t);n=n.getTime()===r.getTime()?r:(0,o.g1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let o,l;return n>=t&&n<=r?o=n:t>=n&&t<=s&&(o=t),r>=n&&r<=s?l=r:s>=t&&s<=r&&(l=s),null==o||null==l||isNaN(o)||isNaN(l)?i.empty:new i({start:o===-1/0?null:new Date(o),end:l===1/0?null:new Date(l)})}offset(e,t,r=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();const n=new i,{start:s,end:l}=this;return null!=s&&(n.start=(0,o.g1)(s,e,t,r)),null!=l&&(n.end=(0,o.g1)(l,e,t,r)),n}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n._)([(0,l.qq)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,n._)([(0,a.E)("end")],c.prototype,"readEnd",null),(0,n._)([(0,u.G)("end")],c.prototype,"writeEnd",null),(0,n._)([(0,l.qq)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,n._)([(0,l.qq)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,n._)([(0,l.qq)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,n._)([(0,a.E)("start")],c.prototype,"readStart",null),(0,n._)([(0,u.G)("start")],c.prototype,"writeStart",null),c=i=(0,n._)([(0,d.c)("esri.TimeExtent")],c);const h=new c,y=new c({start:void 0,end:void 0}),m=c},3856:(e,t,r)=>{r.d(t,{m:()=>p,q:()=>u});var i=r(41948),n=r(43780),s=(r(9456),r(62088)),o=(r(66360),r(70680)),l=r(71448),a=r(20916),d=r(12552);const u=e=>{let t=class extends e{clone(){const e=(0,a.m6)(this);(0,o.EN)(e,"unable to clone instance of non-accessor class");const t=e.metadata,r=e.store,i={},n=new Map;for(const e in t){const o=t[e],a=r?.originOf(e),d=o.clonable;if(o.readOnly||!1===d||a!==l.sT.USER&&a!==l.sT.DEFAULTS&&a!==l.sT.WEB_MAP&&a!==l.sT.WEB_SCENE)continue;const u=this[e];let p=null;p="function"==typeof d?d(u):"reference"===d?u:(0,s.gx)(u),null!=u&&null==p||(a===l.sT.DEFAULTS?n.set(e,p):i[e]=p)}const d=new(0,Object.getPrototypeOf(this).constructor)(i);if(n.size){const e=(0,a.m6)(d)?.store;if(e)for(const[t,r]of n)e.set(t,r,l.sT.DEFAULTS)}return d}};return t=(0,i._)([(0,d.c)("esri.core.Clonable")],t),t};let p=class extends(u(n.c)){};p=(0,i._)([(0,d.c)("esri.core.Clonable")],p)},22156:(e,t,r)=>{r.d(t,{MR:()=>o,qm:()=>l});var i=r(41948),n=r(12552);let s=0;const o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return t=(0,i._)([(0,n.c)("esri.core.Identifiable")],t),t},l=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return t=(0,i._)([(0,n.c)("esri.core.NumericIdentifiable")],t),t};let a=class extends(o(class{})){};a=(0,i._)([(0,n.c)("esri.core.Identifiable")],a)},75824:(e,t,r)=>{r.d(t,{Md:()=>s,m0:()=>o,qG:()=>n});var i=r(39452);class n{}function s(e){return e instanceof i.C?e===n.instance:"unknown"===e?.toString().toLowerCase()}function o(e){return s(e)?n.instance:e}n.instance=new i._C("Etc/UTC")},63564:(e,t,r)=>{r.d(t,{Mr:()=>o,cf:()=>s,g1:()=>n});const i="randomUUID"in crypto;function n(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${n().toUpperCase()}}`}function o(){return`{${n()}}`}},13819:(e,t,r)=>{r.d(t,{c:()=>b});var i,n=r(41948),s=r(92400),o=r(14628),l=r(40504),a=r(24296),d=r(69504),u=r(1580),p=(r(9456),r(66360),r(33600)),c=r(12552),h=r(18996);const y=(0,o.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=y.jsonValues.slice();(0,s.sH)(m,"orthometric");const f=(0,o.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let g=i=class extends l.am{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return y.write(e,t,r)}readHeightModel(e,t,r){return y.read(e)||(r?.messages&&r.messages.push(function(e,t){return new d.c("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,a.oG)(e)||f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,a._2)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new d.c("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,n._)([(0,u.qq)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],g.prototype,"heightModel",void 0),(0,n._)([(0,h.G)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,n._)([(0,p.E)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,n._)([(0,u.qq)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:f.write}}}})],g.prototype,"heightUnit",void 0),(0,n._)([(0,p.E)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,n._)([(0,p.E)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,n._)([(0,u.qq)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,n._)([(0,p.E)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=i=(0,n._)([(0,c.c)("esri.geometry.HeightModelInfo")],g);const b=g},81436:(e,t,r)=>{r.d(t,{c:()=>b});var i=r(41948),n=(r(60708),r(2600)),s=r(20744),o=r(77860),l=r(22156),a=r(95800),d=r(66360),u=r(10860),p=r(28176),c=r(1580),h=(r(9456),r(72052),r(12552)),y=r(6220),m=r(95247),f=r(56156);let g=0,v=class extends(o.c.EventedMixin((0,l.MR)(a.c))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.c(-180,-90,180,90,f.c.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.c.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(9232).then(r.bind(r,69232))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(2259).then(r.bind(r,12259));try{return await i(t)}catch(e){const r=t?.portalItem,i=r?.id||"unset",n=r?.portal?.url||y.default.portalUrl;throw d.c.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,u.mA)(e)||d.c.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,p.as)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.c)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.c("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,c.qq)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i._)([(0,c.qq)({type:m.c})],v.prototype,"fullExtent",void 0),(0,i._)([(0,c.qq)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i._)([(0,c.qq)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i._)([(0,c.qq)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i._)([(0,c.qq)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i._)([(0,c.qq)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i._)([(0,c.qq)({clonable:!1})],v.prototype,"parent",void 0),(0,i._)([(0,c.qq)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i._)([(0,c.qq)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,i._)([(0,c.qq)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i._)([(0,c.qq)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i._)([(0,c.qq)({type:f.c})],v.prototype,"spatialReference",void 0),(0,i._)([(0,c.qq)({type:String})],v.prototype,"title",void 0),(0,i._)([(0,c.qq)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i._)([(0,c.qq)()],v.prototype,"url",void 0),(0,i._)([(0,c.qq)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i._)([(0,h.c)("esri.layers.Layer")],v);const b=v},21680:(e,t,r)=>{r.r(t),r.d(t,{default:()=>te});var i=r(41948),n=r(82692),s=r(2600),o=r(20744),l=r(62088),a=r(66360),d=r(26496),u=r(58820),p=r(10860),c=r(28176),h=r(1580),y=(r(9456),r(33600)),m=r(12552),f=r(18996),g=r(81436),v=r(38724),b=r(16660),w=r(28584),q=r(66576),_=r(98768),S=r(3116),T=r(87072),F=r(53368),I=r(9968),x=r(40504);r(72052);let C=class extends x.am{constructor(e){super(e),this.field=null,this.type=null}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}};(0,i._)([(0,h.qq)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],C.prototype,"field",void 0),(0,i._)([(0,h.qq)({readOnly:!0,nonNullable:!0,json:{read:!1}})],C.prototype,"type",void 0),C=(0,i._)([(0,m.c)("esri.layers.pointCloudFilters.PointCloudFilter")],C);const j=C;var N;let E=N=class extends j{constructor(e){super(e),this.requiredClearBits=null,this.requiredSetBits=null,this.type="bitfield"}clone(){return new N({field:this.field,requiredClearBits:(0,l.ct)(this.requiredClearBits),requiredSetBits:(0,l.ct)(this.requiredSetBits)})}};(0,i._)([(0,h.qq)({type:[F.Ab],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredSetBits}}}}})],E.prototype,"requiredClearBits",void 0),(0,i._)([(0,h.qq)({type:[F.Ab],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredClearBits}}}}})],E.prototype,"requiredSetBits",void 0),(0,i._)([(0,I.G)({pointCloudBitfieldFilter:"bitfield"})],E.prototype,"type",void 0),E=N=(0,i._)([(0,m.c)("esri.layers.pointCloudFilters.PointCloudBitfieldFilter")],E);const O=E;var R;let V=R=class extends j{constructor(e){super(e),this.includedReturns=[],this.type="return"}clone(){return new R({field:this.field,includedReturns:(0,l.ct)(this.includedReturns)})}};(0,i._)([(0,h.qq)({type:[["firstOfMany","last","lastOfMany","single"]],json:{write:{enabled:!0,isRequired:!0}}})],V.prototype,"includedReturns",void 0),(0,i._)([(0,I.G)({pointCloudReturnFilter:"return"})],V.prototype,"type",void 0),V=R=(0,i._)([(0,m.c)("esri.layers.pointCloudFilters.PointCloudReturnFilter")],V);const P=V;var A;let M=A=class extends j{constructor(e){super(e),this.mode="exclude",this.type="value",this.values=[]}clone(){return new A({field:this.field,mode:this.mode,values:(0,l.ct)(this.values)})}};(0,i._)([(0,h.qq)({type:["exclude","include"],json:{write:{enabled:!0,isRequired:!0}}})],M.prototype,"mode",void 0),(0,i._)([(0,I.G)({pointCloudValueFilter:"value"})],M.prototype,"type",void 0),(0,i._)([(0,h.qq)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],M.prototype,"values",void 0),M=A=(0,i._)([(0,m.c)("esri.layers.pointCloudFilters.PointCloudValueFilter")],M);const U={key:"type",base:j,typeMap:{value:M,bitfield:O,return:P}};var D,L=r(21488),B=r(600),k=r(81732),G=r(83336),$=r(12432),z=r(96220);let H=D=class extends z.c{constructor(e){super(e),this.type="point-cloud-rgb",this.field=null}clone(){return new D({...this.cloneProperties(),field:(0,l.ct)(this.field)})}};(0,i._)([(0,I.G)({pointCloudRGBRenderer:"point-cloud-rgb"})],H.prototype,"type",void 0),(0,i._)([(0,h.qq)({type:String,json:{write:!0}})],H.prototype,"field",void 0),H=D=(0,i._)([(0,m.c)("esri.renderers.PointCloudRGBRenderer")],H);const K=H;var Z=r(56185),J=r(53224);const W={key:"type",base:z.c,typeMap:{"point-cloud-class-breaks":$.c,"point-cloud-rgb":K,"point-cloud-stretch":Z.c,"point-cloud-unique-value":J.c},errorContext:"renderer"};var Y=r(69204),X=r(65548);const Q=(0,k.l)();let ee=class extends((0,T.G6)((0,b.u)((0,q.Y)((0,_.K)((0,S.I)((0,d.U)((0,w.G)((0,v.C)(g.c))))))))){constructor(...e){super(...e),this.operationalLayerType="PointCloudLayer",this.popupEnabled=!0,this.popupTemplate=null,this.opacity=1,this.filters=[],this.fields=null,this.fieldsIndex=null,this.outFields=null,this.path=null,this.legendEnabled=!0,this.renderer=null,this.type="point-cloud"}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}get defaultPopupTemplate(){return this.attributeStorageInfo?this.createPopupTemplate():null}getFieldDomain(e){const t=this.fieldsIndex.get(e);return t?.domain?t.domain:null}readServiceFields(e,t,r){return Array.isArray(e)?e.map((e=>{const t=new B.c;return"FieldTypeInteger"===e.type&&((e=(0,l.ct)(e)).type="esriFieldTypeInteger"),t.read(e,r),t})):Array.isArray(t.attributeStorageInfo)?t.attributeStorageInfo.map((e=>new B.c({name:e.name,type:"ELEVATION"===e.name?"double":"integer"}))):null}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}writeRenderer(e,t,r,i){(0,u.qQ)("layerDefinition.drawingInfo.renderer",e.write({},i),t)}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(p.CE).then((()=>this._fetchService(t)));return this.addResolvingPromise(r),Promise.resolve(this)}createPopupTemplate(e){const t=(0,X.Ap)(this,e);return t&&(this._formatPopupTemplateReturnsField(t),this._formatPopupTemplateRGBField(t)),t}_formatPopupTemplateReturnsField(e){const t=this.fieldsIndex.get("RETURNS");if(!t)return;const r=e.fieldInfos?.find((e=>e.fieldName===t.name));if(!r)return;const i=new G.c({name:"pcl-returns-decoded",title:t.alias||t.name,expression:`\n var returnValue = $feature.${t.name};\n return (returnValue % 16) + " / " + Floor(returnValue / 16);\n `});e.expressionInfos=[...e.expressionInfos||[],i],r.fieldName="expression/pcl-returns-decoded"}_formatPopupTemplateRGBField(e){const t=this.fieldsIndex.get("RGB");if(!t)return;const r=e.fieldInfos?.find((e=>e.fieldName===t.name));if(!r)return;const i=new G.c({name:"pcl-rgb-decoded",title:t.alias||t.name,expression:`\n var rgb = $feature.${t.name};\n var red = Floor(rgb / 65536, 0);\n var green = Floor((rgb - (red * 65536)) / 256,0);\n var blue = rgb - (red * 65536) - (green * 256);\n\n return "rgb(" + red + "," + green + "," + blue + ")";\n `});e.expressionInfos=[...e.expressionInfos||[],i],r.fieldName="expression/pcl-rgb-decoded"}async queryCachedStatistics(e,t){if(await this.load(t),!this.attributeStorageInfo)throw new o.c("scenelayer:no-cached-statistics","Cached statistics are not available for this layer");const r=this.fieldsIndex.get(e);if(!r)throw new o.c("pointcloudlayer:field-unexisting",`Field '${e}' does not exist on the layer`);for(const e of this.attributeStorageInfo)if(e.name===r.name){const r=(0,c.kn)(this.parsedUrl.path,`./statistics/${e.key}`);return(0,s.c)(r,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:t?t.signal:null}).then((e=>e.data))}throw new o.c("pointcloudlayer:no-cached-statistics","Cached statistics for this attribute are not available")}async saveAs(e,t){return this._debouncedSaveOperations(T.UJ.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"point-cloud"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"point-cloud"};return this._debouncedSaveOperations(T.UJ.SAVE,e)}validateLayer(e){if(e.layerType&&"PointCloud"!==e.layerType)throw new o.c("pointcloudlayer:layer-type-not-supported","PointCloudLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o.c("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"});if(this.version.major>2)throw new o.c("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"})}hasCachedStatistics(e){return null!=this.attributeStorageInfo&&this.attributeStorageInfo.some((t=>t.name===e))}_getTypeKeywords(){return["PointCloud"]}_validateElevationInfo(){const e=this.elevationInfo;(0,Y.A$)(a.c.getLogger(this),(0,Y.Ez)("Point cloud layers","absolute-height",e)),(0,Y.A$)(a.c.getLogger(this),(0,Y.W8)("Point cloud layers",e))}};(0,i._)([(0,h.qq)({type:["PointCloudLayer"]})],ee.prototype,"operationalLayerType",void 0),(0,i._)([(0,h.qq)(L.Ou)],ee.prototype,"popupEnabled",void 0),(0,i._)([(0,h.qq)({type:n.c,json:{name:"popupInfo",write:!0}})],ee.prototype,"popupTemplate",void 0),(0,i._)([(0,h.qq)({readOnly:!0,json:{read:!1}})],ee.prototype,"defaultPopupTemplate",null),(0,i._)([(0,h.qq)({readOnly:!0,json:{write:!1,read:!1,origins:{"web-document":{write:!1,read:!1}}}})],ee.prototype,"opacity",void 0),(0,i._)([(0,h.qq)({type:["show","hide"]})],ee.prototype,"listMode",void 0),(0,i._)([(0,h.qq)({types:[U],json:{origins:{service:{read:{source:"filters"}}},name:"layerDefinition.filters",write:!0}})],ee.prototype,"filters",void 0),(0,i._)([(0,h.qq)({type:[B.c]})],ee.prototype,"fields",void 0),(0,i._)([(0,h.qq)(Q.fieldsIndex)],ee.prototype,"fieldsIndex",void 0),(0,i._)([(0,y.E)("service","fields",["fields","attributeStorageInfo"])],ee.prototype,"readServiceFields",null),(0,i._)([(0,h.qq)(Q.outFields)],ee.prototype,"outFields",void 0),(0,i._)([(0,h.qq)({readOnly:!0})],ee.prototype,"attributeStorageInfo",void 0),(0,i._)([(0,h.qq)(L.Kg)],ee.prototype,"elevationInfo",null),(0,i._)([(0,h.qq)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],ee.prototype,"path",void 0),(0,i._)([(0,h.qq)(L.Uj)],ee.prototype,"legendEnabled",void 0),(0,i._)([(0,h.qq)({types:W,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:{target:{"layerDefinition.drawingInfo.renderer":{types:W},"layerDefinition.drawingInfo.transparency":{type:Number}}}}})],ee.prototype,"renderer",void 0),(0,i._)([(0,f.G)("renderer")],ee.prototype,"writeRenderer",null),(0,i._)([(0,h.qq)({json:{read:!1},readOnly:!0})],ee.prototype,"type",void 0),ee=(0,i._)([(0,m.c)("esri.layers.PointCloudLayer")],ee);const te=ee},28584:(e,t,r)=>{r.d(t,{G:()=>o});var i=r(41948),n=r(1580),s=(r(9456),r(66360),r(72052),r(12552));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,n.qq)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,s.c)("esri.layers.mixins.CustomParametersMixin")],t),t}},98768:(e,t,r)=>{r.d(t,{K:()=>_});var i=r(41948),n=r(6220),s=r(47620),o=r(2600),l=r(40196),a=r(20744),d=r(66360),u=r(70680),p=r(10860),c=r(28176),h=r(1580),y=(r(9456),r(72052),r(33600)),m=r(12552),f=r(18996),g=r(71068),v=r(54872),b=r(9764),w=r(53039),q=r(46940);const _=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.mG)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new b.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await Promise.all([r.e(8828),r.e(4132)]).then(r.bind(r,94132));return(0,p.wp)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,p.mA)(e)||d.c.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,p.CE)(e),!0))))}async setUserPrivileges(e,t){if(!n.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,p.CE)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,q.CI)(r);let n,o;if(i)n=r.portal.url;else try{n=await(0,g.mK)(this.url,t)}catch(e){(0,p.CE)(e)}if(!n||!(0,c.Cs)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.CE)(e)}if(!o)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new b.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return(0,q.CI)(r)}catch(e){(0,p.CE)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.CE)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=r,null==r?.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 i=`${r.owningSystemUrl}/sharing/rest`,n=v.c.getDefault();if(n&&n.loaded&&(0,c.k7)(n.restUrl)===(0,c.k7)(i))return n.user;const a=`${i}/community/self`,d=null!=e?e.signal:null,u=await(0,l.aG)((0,o.c)(a,{authMode:"no-prompt",query:{f:"json"},signal:d}));return u.ok?w.c.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.c.getDefault());return r&&i&&!(0,c.kF)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.c("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,i._)([(0,h.qq)({type:b.default})],t.prototype,"portalItem",null),(0,i._)([(0,y.E)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,f.G)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,h.qq)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,m.c)("esri.layers.mixins.PortalLayer")],t),t},S={credential:null,user:null}},3116:(e,t,r)=>{r.d(t,{I:()=>o});var i=r(41948),n=r(1580),s=(r(9456),r(66360),r(72052),r(12552));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,n.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,n.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,n.qq)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,s.c)("esri.layers.mixins.ScaleRangeLayer")],t),t}},600:(e,t,r)=>{r.d(t,{c:()=>f});var i,n=r(41948),s=r(14628),o=r(40504),l=r(1580),a=r(53368),d=(r(72052),r(9456),r(9968)),u=r(33600),p=r(12552),c=r(89812),h=r(36408);const y=new s.O({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=i=class extends o.am{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?y.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,n._)([(0,l.qq)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,n._)([(0,l.qq)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,n._)([(0,l.qq)()],m.prototype,"description",void 0),(0,n._)([(0,u.E)("description")],m.prototype,"readDescription",null),(0,n._)([(0,l.qq)({types:c.i2,json:{read:{reader:c.h4},write:!0}})],m.prototype,"domain",void 0),(0,n._)([(0,l.qq)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,n._)([(0,l.qq)({type:a.Ab,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,n._)([(0,l.qq)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,n._)([(0,l.qq)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,n._)([(0,d.G)(h.M)],m.prototype,"type",void 0),(0,n._)([(0,l.qq)()],m.prototype,"valueType",void 0),(0,n._)([(0,u.E)("valueType",["description"])],m.prototype,"readValueType",null),(0,n._)([(0,l.qq)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=i=(0,n._)([(0,p.c)("esri.layers.support.Field")],m);const f=m},16424:(e,t,r)=>{r.d(t,{c:()=>c});var i=r(20744),n=r(40504),s=r(66360),o=r(86916),l=r(75824),a=r(564),d=r(28484),u=r(39452);const p=new Map;class c{static fromJSON(e){return new c(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new c(e.fields??[],f(e))}static fromLayerJSON(e){return new c(e.fields??[],f(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const r=[];for(const e of this.fields){const t=e?.name,i=y(t);if(t&&i){const n=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(i,e),r.push(`${n}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.gp)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.iW)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.Mz)(e)||(0,a.w1)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.Mz)(e)||(0,a.w1)(e)||e.nullable||void 0!==(0,a.gB)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(h(e))??this._normalizedFieldsMap.get(y(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(s.c.getLogger("esri.layers.support.FieldsIndex").error(new i.c("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),d.Gw):m.has(t.type)?d.OI:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===d.OI?l.qG.instance:t===d.Gw?u.Kq.utcInstance:(0,o.wJ)(p,t,(()=>u._C.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.eM)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,n.wt)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function h(e){return e.trim().toLowerCase()}function y(e){return(0,a.gP)(e)?.toLowerCase()??""}const m=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function f(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:n}=e,s=(i?"startField"in i?i.startField:i.startTimeField:"")??"",o=(i?"endField"in i?i.endField:i.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,d.Mt)(e.dateFieldsTimeReference):null,a=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.dateFieldsTimeReference?(0,d.Mt)(n.dateFieldsTimeReference):l??d.Gw:null,u=i?function(e){return"timeZone"in e}(i)?i.timeZone??l:i.timeReference?(0,d.Mt)(i.timeReference):l:null,p=new Map([[h(n?.creationDateField??""),a],[h(n?.editDateField??""),a],[h(s),u],[h(o),u]]);for(const{name:i,type:n}of e.fields)if(m.has(n))t.set(i,d.OI);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(i,null);else if(r)t.set(i,d.OI);else{const e=p.get(h(i??""))??l;t.set(i,e)}return t}},89812:(e,t,r)=>{r.d(t,{h4:()=>T,i2:()=>S}),r(9456);var i,n=r(41948),s=r(62088),o=r(1580),l=(r(66360),r(9968)),a=r(12552),d=r(40504);r(72052);let u=i=class extends d.am{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n._)([(0,o.qq)({type:[String,Number],json:{write:!0}})],u.prototype,"code",void 0),u=i=(0,n._)([(0,a.c)("esri.layers.support.CodedValue")],u);const p=new(r(14628).O)({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends d.am{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,n._)([(0,l.G)(p)],c.prototype,"type",void 0),c=(0,n._)([(0,a.c)("esri.layers.support.Domain")],c);const h=c;var y;let m=y=class extends h{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,s.ct)(this.codedValues),name:this.name})}};(0,n._)([(0,o.qq)({type:[u],json:{write:!0}})],m.prototype,"codedValues",void 0),(0,n._)([(0,l.G)({codedValue:"coded-value"})],m.prototype,"type",void 0),m=y=(0,n._)([(0,a.c)("esri.layers.support.CodedValueDomain")],m);const f=m;var g;r(20744);let v=g=class extends h{constructor(e){super(e),this.type="inherited"}clone(){return new g}};(0,n._)([(0,l.G)({inherited:"inherited"})],v.prototype,"type",void 0),v=g=(0,n._)([(0,a.c)("esri.layers.support.InheritedDomain")],v);const b=v;var w;let q=w=class extends h{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new w({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n._)([(0,o.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],q.prototype,"maxValue",void 0),(0,n._)([(0,o.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],q.prototype,"minValue",void 0),(0,n._)([(0,l.G)({range:"range"})],q.prototype,"type",void 0),q=w=(0,n._)([(0,a.c)("esri.layers.support.RangeDomain")],q);const _=q,S={key:"type",base:h,typeMap:{range:q,"coded-value":f,inherited:b}};function T(e){if(!e?.type)return null;switch(e.type){case"range":return _.fromJSON(e);case"codedValue":return f.fromJSON(e);case"inherited":return b.fromJSON(e)}return null}},81732:(e,t,r)=>{r.d(t,{l:()=>a});var i=r(9456),n=r(66360),s=r(600),o=r(16424),l=r(564);function a(){return{fields:{type:[s.c],value:null,set:function(e){if(e&&(0,i.c)("big-integer-warning-enabled")){const t=e.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(t.length){const e=t.map((e=>`'${e.name}'`)).join(", ");n.c.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.c.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||n.c.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.OO)(this.fieldsIndex,e)}}}}},36408:(e,t,r)=>{r.d(t,{M:()=>i});const i=new(r(14628).O)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},12432:(e,t,r)=>{r.d(t,{c:()=>v});var i,n=r(41948),s=r(62088),o=r(1580),l=(r(9456),r(66360),r(9968)),a=r(12552),d=r(96220),u=r(89584),p=r(44728),c=r(40504),h=r(53368);let y=i=class extends c.am{constructor(){super(...arguments),this.description=null,this.label=null,this.minValue=0,this.maxValue=0,this.color=null}clone(){return new i({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,color:(0,s.ct)(this.color)})}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],y.prototype,"description",void 0),(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,n._)([(0,o.qq)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],y.prototype,"minValue",void 0),(0,n._)([(0,o.qq)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],y.prototype,"maxValue",void 0),(0,n._)([(0,o.qq)({type:p.c,json:{type:[h.Ab],write:!0}})],y.prototype,"color",void 0),y=i=(0,n._)([(0,a.c)("esri.renderers.support.pointCloud.ColorClassBreakInfo")],y);const m=y;var f;let g=f=class extends d.c{constructor(e){super(e),this.type="point-cloud-class-breaks",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.colorClassBreakInfos=null}clone(){return new f({...this.cloneProperties(),field:this.field,fieldTransformType:this.fieldTransformType,colorClassBreakInfos:(0,s.ct)(this.colorClassBreakInfos),legendOptions:(0,s.ct)(this.legendOptions)})}};(0,n._)([(0,l.G)({pointCloudClassBreaksRenderer:"point-cloud-class-breaks"})],g.prototype,"type",void 0),(0,n._)([(0,o.qq)({json:{write:!0},type:String})],g.prototype,"field",void 0),(0,n._)([(0,o.qq)({type:u.i,json:{write:!0}})],g.prototype,"legendOptions",void 0),(0,n._)([(0,o.qq)({type:d.c.fieldTransformTypeKebabDict.apiValues,json:{type:d.c.fieldTransformTypeKebabDict.jsonValues,read:d.c.fieldTransformTypeKebabDict.read,write:d.c.fieldTransformTypeKebabDict.write}})],g.prototype,"fieldTransformType",void 0),(0,n._)([(0,o.qq)({type:[m],json:{write:!0}})],g.prototype,"colorClassBreakInfos",void 0),g=f=(0,n._)([(0,a.c)("esri.renderers.PointCloudClassBreaksRenderer")],g);const v=g},96220:(e,t,r)=>{r.d(t,{c:()=>T});var i,n=r(41948),s=r(14628),o=r(40504),l=r(62088),a=r(1580),d=(r(9456),r(66360),r(12552));r(72052);let u=i=class extends o.am{constructor(){super(...arguments),this.field=null,this.minValue=0,this.maxValue=255}clone(){return new i({field:this.field,minValue:this.minValue,maxValue:this.maxValue})}};(0,n._)([(0,a.qq)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],u.prototype,"minValue",void 0),(0,n._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],u.prototype,"maxValue",void 0),u=i=(0,n._)([(0,d.c)("esri.renderers.support.pointCloud.ColorModulation")],u);const p=u,c=new s.O({pointCloudFixedSizeAlgorithm:"fixed-size",pointCloudSplatAlgorithm:"splat"});let h=class extends o.am{};(0,n._)([(0,a.qq)({type:c.apiValues,readOnly:!0,nonNullable:!0,json:{type:c.jsonValues,read:!1,write:c.write}})],h.prototype,"type",void 0),h=(0,n._)([(0,d.c)("esri.renderers.support.pointCloud.PointSizeAlgorithm")],h);const y=h;var m,f=r(9968);let g=m=class extends y{constructor(){super(...arguments),this.type="fixed-size",this.size=0,this.useRealWorldSymbolSizes=null}clone(){return new m({size:this.size,useRealWorldSymbolSizes:this.useRealWorldSymbolSizes})}};(0,n._)([(0,f.G)({pointCloudFixedSizeAlgorithm:"fixed-size"})],g.prototype,"type",void 0),(0,n._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],g.prototype,"size",void 0),(0,n._)([(0,a.qq)({type:Boolean,json:{write:!0}})],g.prototype,"useRealWorldSymbolSizes",void 0),g=m=(0,n._)([(0,d.c)("esri.renderers.support.pointCloud.PointSizeFixedSizeAlgorithm")],g);const v=g;var b;let w=b=class extends y{constructor(){super(...arguments),this.type="splat",this.scaleFactor=1}clone(){return new b({scaleFactor:this.scaleFactor})}};(0,n._)([(0,f.G)({pointCloudSplatAlgorithm:"splat"})],w.prototype,"type",void 0),(0,n._)([(0,a.qq)({type:Number,value:1,nonNullable:!0,json:{write:!0}})],w.prototype,"scaleFactor",void 0),w=b=(0,n._)([(0,d.c)("esri.renderers.support.pointCloud.PointSizeSplatAlgorithm")],w);const q={key:"type",base:y,typeMap:{"fixed-size":v,splat:w}},_=(0,s.w)()({pointCloudClassBreaksRenderer:"point-cloud-class-breaks",pointCloudRGBRenderer:"point-cloud-rgb",pointCloudStretchRenderer:"point-cloud-stretch",pointCloudUniqueValueRenderer:"point-cloud-unique-value"});let S=class extends o.am{constructor(e){super(e),this.type=void 0,this.pointSizeAlgorithm=null,this.colorModulation=null,this.pointsPerInch=10}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}cloneProperties(){return{pointSizeAlgorithm:(0,l.ct)(this.pointSizeAlgorithm),colorModulation:(0,l.ct)(this.colorModulation),pointsPerInch:(0,l.ct)(this.pointsPerInch)}}};(0,n._)([(0,a.qq)({type:_.apiValues,readOnly:!0,nonNullable:!0,json:{type:_.jsonValues,read:!1,write:_.write}})],S.prototype,"type",void 0),(0,n._)([(0,a.qq)({types:q,json:{write:!0}})],S.prototype,"pointSizeAlgorithm",void 0),(0,n._)([(0,a.qq)({type:p,json:{write:!0}})],S.prototype,"colorModulation",void 0),(0,n._)([(0,a.qq)({json:{write:!0},nonNullable:!0,type:Number})],S.prototype,"pointsPerInch",void 0),S=(0,n._)([(0,d.c)("esri.renderers.PointCloudRenderer")],S),(S||(S={})).fieldTransformTypeKebabDict=new s.O({none:"none",lowFourBit:"low-four-bit",highFourBit:"high-four-bit",absoluteValue:"absolute-value",moduloTen:"modulo-ten"});const T=S},56185:(e,t,r)=>{r.d(t,{c:()=>h});var i,n=r(41948),s=r(62088),o=r(1580),l=(r(9456),r(66360),r(9968)),a=r(12552),d=r(96220),u=r(89584),p=r(83060);let c=i=class extends d.c{constructor(e){super(e),this.type="point-cloud-stretch",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.stops=null}clone(){return new i({...this.cloneProperties(),field:(0,s.ct)(this.field),fieldTransformType:(0,s.ct)(this.fieldTransformType),stops:(0,s.ct)(this.stops),legendOptions:(0,s.ct)(this.legendOptions)})}};(0,n._)([(0,l.G)({pointCloudStretchRenderer:"point-cloud-stretch"})],c.prototype,"type",void 0),(0,n._)([(0,o.qq)({json:{write:!0},type:String})],c.prototype,"field",void 0),(0,n._)([(0,o.qq)({type:u.i,json:{write:!0}})],c.prototype,"legendOptions",void 0),(0,n._)([(0,o.qq)({type:d.c.fieldTransformTypeKebabDict.apiValues,json:{type:d.c.fieldTransformTypeKebabDict.jsonValues,read:d.c.fieldTransformTypeKebabDict.read,write:d.c.fieldTransformTypeKebabDict.write}})],c.prototype,"fieldTransformType",void 0),(0,n._)([(0,o.qq)({type:[p.c],json:{write:!0}})],c.prototype,"stops",void 0),c=i=(0,n._)([(0,a.c)("esri.renderers.PointCloudStretchRenderer")],c);const h=c},53224:(e,t,r)=>{r.d(t,{c:()=>v});var i,n=r(41948),s=r(62088),o=r(1580),l=(r(9456),r(66360),r(9968)),a=r(12552),d=r(96220),u=r(89584),p=r(44728),c=r(40504),h=r(53368);let y=i=class extends c.am{constructor(){super(...arguments),this.description=null,this.label=null,this.values=null,this.color=null}clone(){return new i({description:this.description,label:this.label,values:(0,s.ct)(this.values),color:(0,s.ct)(this.color)})}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],y.prototype,"description",void 0),(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,n._)([(0,o.qq)({type:[String],json:{write:!0}})],y.prototype,"values",void 0),(0,n._)([(0,o.qq)({type:p.c,json:{type:[h.Ab],write:!0}})],y.prototype,"color",void 0),y=i=(0,n._)([(0,a.c)("esri.renderers.support.pointCloud.ColorUniqueValueInfo")],y);const m=y;var f;let g=f=class extends d.c{constructor(e){super(e),this.type="point-cloud-unique-value",this.field=null,this.fieldTransformType=null,this.colorUniqueValueInfos=null,this.legendOptions=null}clone(){return new f({...this.cloneProperties(),field:(0,s.ct)(this.field),fieldTransformType:(0,s.ct)(this.fieldTransformType),colorUniqueValueInfos:(0,s.ct)(this.colorUniqueValueInfos),legendOptions:(0,s.ct)(this.legendOptions)})}};(0,n._)([(0,l.G)({pointCloudUniqueValueRenderer:"point-cloud-unique-value"})],g.prototype,"type",void 0),(0,n._)([(0,o.qq)({json:{write:!0},type:String})],g.prototype,"field",void 0),(0,n._)([(0,o.qq)({type:d.c.fieldTransformTypeKebabDict.apiValues,json:{type:d.c.fieldTransformTypeKebabDict.jsonValues,read:d.c.fieldTransformTypeKebabDict.read,write:d.c.fieldTransformTypeKebabDict.write}})],g.prototype,"fieldTransformType",void 0),(0,n._)([(0,o.qq)({type:[m],json:{write:!0}})],g.prototype,"colorUniqueValueInfos",void 0),(0,n._)([(0,o.qq)({type:u.i,json:{write:!0}})],g.prototype,"legendOptions",void 0),g=f=(0,n._)([(0,a.c)("esri.renderers.PointCloudUniqueValueRenderer")],g);const v=g},89584:(e,t,r)=>{r.d(t,{i:()=>a});var i,n=r(41948),s=r(40504),o=r(1580),l=(r(9456),r(66360),r(72052),r(12552));let a=i=class extends s.am{constructor(){super(...arguments),this.title=null}clone(){return new i({title:this.title})}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=i=(0,n._)([(0,l.c)("esri.renderers.support.LegendOptions")],a)},83060:(e,t,r)=>{r.d(t,{c:()=>c});var i,n=r(41948),s=r(44728),o=r(40504),l=r(1580),a=r(53368),d=(r(72052),r(9456),r(12552)),u=r(18996);let p=i=class extends o.am{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,r){t[r]=e??0}clone(){return new i({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,n._)([(0,l.qq)({type:s.c,json:{type:[a.Ab],write:!0}})],p.prototype,"color",void 0),(0,n._)([(0,l.qq)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,n._)([(0,l.qq)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"value",void 0),(0,n._)([(0,u.G)("value")],p.prototype,"writeValue",null),p=i=(0,n._)([(0,d.c)("esri.renderers.visualVariables.support.ColorStop")],p);const c=p},69204:(e,t,r)=>{function i(e,t){return t?.mode?t.mode:function(e){return e?d:u}(e).mode}function n(e,t){return i(null!=e&&e.hasZ,t)}function s(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function o(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function l(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function a(e,t){t&&e.warn(".elevationInfo=",t)}r.d(t,{A$:()=>a,Ez:()=>s,W8:()=>l,ay:()=>o,m6:()=>n}),r(35764);const d={mode:"absolute-height",offset:0},u={mode:"on-the-ground",offset:null}},65548:(e,t,r)=>{r.d(t,{Ap:()=>d});var i=r(82692),n=r(564),s=r(3739),o=(r(73312),r(67300),r(18480),r(72944)),l=(r(53568),r(15024),r(63116),r(13428)),a=r(76992);function d({displayField:e,editFieldsInfo:t,fields:r,objectIdField:a,title:d},h){if(!r)return null;const m=function(e,t){const r=t?.visibleFieldNames;return function(e,t){const r=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===r&&(e=e.slice()),e.sort(p),e}(e.fields??[],t?.ignoreFieldTypes||y).map((t=>new l.c({fieldName:t.name,isEditable:(0,n.Yn)(t,e),label:t.alias,format:c(t),visible:u(t,{...e,visibleFieldNames:r})})))}({editFieldsInfo:t,fields:r,objectIdField:a},h);if(!m.length)return null;const f=function(e){const t=(0,n.G2)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:d,fields:r,displayField:e}),g=[new o.c,new s.c];return new i.c({title:f,content:g,fieldInfos:m})}const u=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.iY)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:h(e)?-1:h(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function c(e){switch(e.type){case"small-integer":case"integer":case"single":return new a.c({digitSeparator:!0,places:0});case"double":return new a.c({digitSeparator:!0,places:2});case"string":return(0,n.Gm)(e.name)?new a.c({digitSeparator:!0,places:0}):null;default:return null}}function h(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())}const y=["geometry","blob","raster","guid","xml"]}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7024],{25228:(e,t,r)=>{r.d(t,{c:()=>m});var i,o=r(41948),n=r(40504),s=r(94360),a=r(1580),l=(r(9456),r(66360),r(72052),r(33600)),p=r(12552),c=r(18996),u=r(28484);let d=i=class extends n.am{static get allTime(){return y}static get empty(){return h}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,o=e.end?.getTime()??e.end;return t===i&&r===o}expandTo(e,t=u.OX){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,s.aU)(r,e,t));let o=this.end;if(o){const r=(0,s.aU)(o,e,t);o=o.getTime()===r.getTime()?r:(0,s.g1)(r,1,e,t)}return new i({start:r,end:o})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,o=e.start?.getTime()??-1/0,n=e.end?.getTime()??1/0;let s,a;return o>=t&&o<=r?s=o:t>=o&&t<=n&&(s=t),r>=o&&r<=n?a=r:n>=t&&n<=r&&(a=n),null==s||null==a||isNaN(s)||isNaN(a)?i.empty:new i({start:s===-1/0?null:new Date(s),end:a===1/0?null:new Date(a)})}offset(e,t,r=u.OX){if(this.isEmpty||this.isAllTime)return this.clone();const o=new i,{start:n,end:a}=this;return null!=n&&(o.start=(0,s.g1)(n,e,t,r)),null!=a&&(o.end=(0,s.g1)(a,e,t,r)),o}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return y.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,o._)([(0,a.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,o._)([(0,l.E)("end")],d.prototype,"readEnd",null),(0,o._)([(0,c.G)("end")],d.prototype,"writeEnd",null),(0,o._)([(0,a.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,o._)([(0,a.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,o._)([(0,a.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,o._)([(0,l.E)("start")],d.prototype,"readStart",null),(0,o._)([(0,c.G)("start")],d.prototype,"writeStart",null),d=i=(0,o._)([(0,p.c)("esri.TimeExtent")],d);const y=new d,h=new d({start:void 0,end:void 0}),m=d},22156:(e,t,r)=>{r.d(t,{MR:()=>s,qm:()=>a});var i=r(41948),o=r(12552);let n=0;const s=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return t=(0,i._)([(0,o.c)("esri.core.Identifiable")],t),t},a=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:n++})}};return t=(0,i._)([(0,o.c)("esri.core.NumericIdentifiable")],t),t};let l=class extends(s(class{})){};l=(0,i._)([(0,o.c)("esri.core.Identifiable")],l)},77380:(e,t,r)=>{r.d(t,{I:()=>m,Y:()=>i});const i={Base64:0,Hex:1,String:2,Raw:3},o=8,n=(1<<o)-1;function s(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e){const t=[];for(let r=0,i=e.length*o;r<i;r+=o)t[r>>5]|=(e.charCodeAt(r/o)&n)<<r%32;return t}function l(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=o)t.push(String.fromCharCode(e[r>>5]>>>r%32&n));return t.join("")}function p(e,t,r,i,o,n){return s(function(e,t){return e<<t|e>>>32-t}(s(s(t,e),s(i,n)),o),r)}function c(e,t,r,i,o,n,s){return p(t&r|~t&i,e,t,o,n,s)}function u(e,t,r,i,o,n,s){return p(t&i|r&~i,e,t,o,n,s)}function d(e,t,r,i,o,n,s){return p(t^r^i,e,t,o,n,s)}function y(e,t,r,i,o,n,s){return p(r^(t|~i),e,t,o,n,s)}function h(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,o=-1732584194,n=271733878;for(let t=0;t<e.length;t+=16){const a=r,l=i,p=o,h=n;r=c(r,i,o,n,e[t],7,-680876936),n=c(n,r,i,o,e[t+1],12,-389564586),o=c(o,n,r,i,e[t+2],17,606105819),i=c(i,o,n,r,e[t+3],22,-1044525330),r=c(r,i,o,n,e[t+4],7,-176418897),n=c(n,r,i,o,e[t+5],12,1200080426),o=c(o,n,r,i,e[t+6],17,-1473231341),i=c(i,o,n,r,e[t+7],22,-45705983),r=c(r,i,o,n,e[t+8],7,1770035416),n=c(n,r,i,o,e[t+9],12,-1958414417),o=c(o,n,r,i,e[t+10],17,-42063),i=c(i,o,n,r,e[t+11],22,-1990404162),r=c(r,i,o,n,e[t+12],7,1804603682),n=c(n,r,i,o,e[t+13],12,-40341101),o=c(o,n,r,i,e[t+14],17,-1502002290),i=c(i,o,n,r,e[t+15],22,1236535329),r=u(r,i,o,n,e[t+1],5,-165796510),n=u(n,r,i,o,e[t+6],9,-1069501632),o=u(o,n,r,i,e[t+11],14,643717713),i=u(i,o,n,r,e[t],20,-373897302),r=u(r,i,o,n,e[t+5],5,-701558691),n=u(n,r,i,o,e[t+10],9,38016083),o=u(o,n,r,i,e[t+15],14,-660478335),i=u(i,o,n,r,e[t+4],20,-405537848),r=u(r,i,o,n,e[t+9],5,568446438),n=u(n,r,i,o,e[t+14],9,-1019803690),o=u(o,n,r,i,e[t+3],14,-187363961),i=u(i,o,n,r,e[t+8],20,1163531501),r=u(r,i,o,n,e[t+13],5,-1444681467),n=u(n,r,i,o,e[t+2],9,-51403784),o=u(o,n,r,i,e[t+7],14,1735328473),i=u(i,o,n,r,e[t+12],20,-1926607734),r=d(r,i,o,n,e[t+5],4,-378558),n=d(n,r,i,o,e[t+8],11,-2022574463),o=d(o,n,r,i,e[t+11],16,1839030562),i=d(i,o,n,r,e[t+14],23,-35309556),r=d(r,i,o,n,e[t+1],4,-1530992060),n=d(n,r,i,o,e[t+4],11,1272893353),o=d(o,n,r,i,e[t+7],16,-155497632),i=d(i,o,n,r,e[t+10],23,-1094730640),r=d(r,i,o,n,e[t+13],4,681279174),n=d(n,r,i,o,e[t],11,-358537222),o=d(o,n,r,i,e[t+3],16,-722521979),i=d(i,o,n,r,e[t+6],23,76029189),r=d(r,i,o,n,e[t+9],4,-640364487),n=d(n,r,i,o,e[t+12],11,-421815835),o=d(o,n,r,i,e[t+15],16,530742520),i=d(i,o,n,r,e[t+2],23,-995338651),r=y(r,i,o,n,e[t],6,-198630844),n=y(n,r,i,o,e[t+7],10,1126891415),o=y(o,n,r,i,e[t+14],15,-1416354905),i=y(i,o,n,r,e[t+5],21,-57434055),r=y(r,i,o,n,e[t+12],6,1700485571),n=y(n,r,i,o,e[t+3],10,-1894986606),o=y(o,n,r,i,e[t+10],15,-1051523),i=y(i,o,n,r,e[t+1],21,-2054922799),r=y(r,i,o,n,e[t+8],6,1873313359),n=y(n,r,i,o,e[t+15],10,-30611744),o=y(o,n,r,i,e[t+6],15,-1560198380),i=y(i,o,n,r,e[t+13],21,1309151649),r=y(r,i,o,n,e[t+4],6,-145523070),n=y(n,r,i,o,e[t+11],10,-1120210379),o=y(o,n,r,i,e[t+2],15,718787259),i=y(i,o,n,r,e[t+9],21,-343485551),r=s(r,a),i=s(i,l),o=s(o,p),n=s(n,h)}return[r,i,o,n]}function m(e,t=i.Hex){const r=t||i.Base64,n=h(a(e),e.length*o);switch(r){case i.Raw:return n;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,o=4*e.length;i<o;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(n);case i.String:return l(n);case i.Base64:return function(e){const t=[];for(let r=0,i=4*e.length;r<i;r+=3){const i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let o=0;o<4;o++)8*r+6*o>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-o)&63))}return t.join("")}(n)}}},90636:(e,t,r)=>{r.d(t,{O:()=>y});var i=r(20744),o=r(77380),n=r(4644),s=r(28176),a=r(63564),l=r(44296),p=r(71448),c=r(1580),u=r(73960),d=r(91952);function y(e){const t=e?.origins??[void 0];return(r,i)=>{const o=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const i=(0,l.EF)(t,r);return{type:String,read:(e,t,r)=>{const o=(0,d.r)(e,t,r);return i.type===String?o:"function"==typeof i.type?new i.type({url:o}):void 0},write:{writer(t,o,a,l){if(!l?.resources)return"string"==typeof t?void(o[a]=(0,d.t)(t,l)):void(o[a]=t.write({},l));const c=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),y=(0,d.t)(c,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},d.M.NO),g=i.type!==String&&(!(0,n.w)(this)||l?.origin&&this.originIdOf(r)>(0,p.CQ)(l.origin)),v={object:this,propertyName:r,value:t,targetUrl:y,dest:o,targetPropertyName:a,context:l,params:e};l?.portalItem&&y&&!(0,s.ic)(y)?g&&e?.contentAddressed?h(v):g?function(e){const{context:t,targetUrl:r,params:i,value:o,dest:n,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),p=f(o,r,t),c=(0,u.e)(p),d=(0,s.wt)(l.path),y=i?.compress??!1;c===d?(t.resources&&m({...e,resource:l,content:p,compress:y,updates:t.resources.toUpdate}),n[a]=r):h(e)}(v):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(v):l?.portalItem&&(null==y||null!=(0,d.i)(y)||(0,s.ue)(y)||g)?h(v):o[a]=y}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=d.b;return{read:e,write:t}}}}(e,r,i);for(const e of t){const t=(0,c.aq)(r,e,i);for(const e in o)t[e]=o[e]}}}function h(e){const{targetUrl:t,params:r,value:n,context:l,dest:p,targetPropertyName:c}=e;if(!l.portalItem)return;const y=(0,d.p)(t),h=f(n,t,l);if(r?.contentAddressed&&"json"!==h.type)return void l.messages?.push(new i.c("persistable:contentAddressingUnsupported",`Property "${c}" is trying to serializing a resource with content of type ${h.type} with content addressing. Content addressing is only supported for json resources.`,{content:h}));const g=r?.contentAddressed&&"json"===h.type?(0,o.I)(h.jsonString):y?.filename??(0,a.g1)(),v=(0,s.kn)(r?.prefix??y?.prefix,g),q=`${v}.${(0,u.e)(h)}`;if(r?.contentAddressed&&l.resources&&"json"===h.type){const e=l.resources.toKeep.find((({resource:e})=>e.path===q))??l.resources.toAdd.find((({resource:e})=>e.path===q));if(e)return void(p[c]=e.resource.itemRelativeUrl)}const _=l.portalItem.resourceFromPath(q);(0,s.ue)(t)&&l.resources&&l.resources.pendingOperations.push((0,s.SW)(t).then((e=>{_.path=`${v}.${(0,u.e)({type:"blob",blob:e})}`,p[c]=_.itemRelativeUrl})).catch((()=>{})));const w=r?.compress??!1;l.resources&&m({...e,resource:_,content:h,compress:w,updates:l.resources.toAdd}),p[c]=_.itemRelativeUrl}function m({object:e,propertyName:t,updates:r,resource:i,content:o,compress:n}){r.push({resource:i,content:o,compress:n,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function f(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},57896:(e,t,r)=>{r.d(t,{Eq:()=>d,KG:()=>g,_8:()=>f,_I:()=>p,aE:()=>l,du:()=>m,on:()=>u}),r(40196),r(2952);var i=r(60976),o=r(38912),n=r(70680),s=r(10860),a=r(37176);function l(e,t,r={}){return c(e,t,r,y)}function p(e,t,r={}){return c(e,t,r,h)}function c(e,t,r={},i){let o=null;const s=r.once?(e,r)=>{i(e)&&((0,n.oR)(o),t(e,r))}:(e,r)=>{i(e)&&t(e,r)};if(o=(0,a.M9)(e,s,r.sync,r.equals),r.initial){const t=e();s(t,t)}return o}function u(e,t,r,s={}){let a=null,p=null,c=null;function u(){a&&p&&(p.remove(),s.onListenerRemove?.(a),a=null,p=null)}function d(e){s.once&&s.once&&(0,n.oR)(c),r(e)}const y=l(e,((e,r)=>{u(),(0,i.sh)(e)&&(a=e,p=(0,i.on)(e,t,d),s.onListenerAdd?.(e))}),{sync:s.sync,initial:!0});return c=(0,o.uU)((()=>{y.remove(),u()})),c}function d(e,t){return function(e,t,r){if((0,s.wv)(r))return Promise.reject((0,s.Uh)());const i=e();if(t?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,n.oR)(a)}return new Promise(((i,n)=>{a=(0,o.Ip)([(0,s.wD)(r,(()=>{l(),n((0,s.Uh)())})),c(e,(e=>{l(),i(e)}),{sync:!1,once:!0},t??y)])}))}(e,h,t)}function y(e){return!0}function h(e){return!!e}r(41168);const m={sync:!0},f={initial:!0},g={sync:!0,initial:!0}},63564:(e,t,r)=>{r.d(t,{Mr:()=>s,cf:()=>n,g1:()=>o});const i="randomUUID"in crypto;function o(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${o().toUpperCase()}}`}function s(){return`{${o()}}`}},13819:(e,t,r)=>{r.d(t,{c:()=>q});var i,o=r(41948),n=r(92400),s=r(14628),a=r(40504),l=r(24296),p=r(69504),c=r(1580),u=(r(9456),r(66360),r(33600)),d=r(12552),y=r(18996);const h=(0,s.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=h.jsonValues.slice();(0,n.sH)(m,"orthometric");const f=(0,s.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let g=i=class extends a.am{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return h.write(e,t,r)}readHeightModel(e,t,r){return h.read(e)||(r?.messages&&r.messages.push(function(e,t){return new p.c("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.oG)(e)||f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l._2)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new p.c("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,o._)([(0,c.qq)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],g.prototype,"heightModel",void 0),(0,o._)([(0,y.G)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,o._)([(0,u.E)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,o._)([(0,c.qq)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:f.write}}}})],g.prototype,"heightUnit",void 0),(0,o._)([(0,u.E)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,o._)([(0,u.E)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,o._)([(0,c.qq)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,o._)([(0,u.E)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=i=(0,o._)([(0,d.c)("esri.geometry.HeightModelInfo")],g);const q=g},96584:(e,t,r)=>{r.r(t),r.d(t,{default:()=>G});var i,o=r(41948),n=r(20744),s=r(66360),a=r(26496),l=r(10860),p=r(57896),c=r(1580),u=(r(9456),r(72052),r(33600)),d=r(12552),y=r(90636),h=r(81436),m=r(38724),f=r(16660),g=r(28584),v=r(66576),q=r(98768),_=r(3116),w=r(87072),b=r(21488),S=r(44104),I=r(2600),x=r(2952),U=r(40504),T=r(28176),E=(r(60708),r(62088)),P=r(69504),R=r(18996),M=r(60074),j=r(7488);let N=i=class extends U.am{constructor(e){super(e),this.geometry=null,this.type="clip"}writeGeometry(e,t,r,i){if(i.layer?.spatialReference&&!i.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,M.canProjectWithoutEngine)(e.spatialReference,i.layer.spatialReference))return void(i?.messages&&i.messages.push(new P.c("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:i.layer.spatialReference,context:i})));const o=new j.c;(0,M.projectPolygon)(e,o,i.layer.spatialReference),t[r]=o.toJSON(i)}else t[r]=e.toJSON(i);delete t[r].spatialReference}clone(){return new i({geometry:(0,E.ct)(this.geometry),type:this.type})}};(0,o._)([(0,c.qq)({type:j.c}),(0,y.O)()],N.prototype,"geometry",void 0),(0,o._)([(0,R.G)(["web-scene","portal-item"],"geometry")],N.prototype,"writeGeometry",null),(0,o._)([(0,c.qq)({type:["clip","mask","replace"],nonNullable:!0}),(0,y.O)()],N.prototype,"type",void 0),N=i=(0,o._)([(0,d.c)("esri.layers.support.SceneModification")],N);const O=N;var C;let A=C=class extends((0,U.Ib)(x.c.ofType(O))){constructor(e){super(e),this.url=null}clone(){return new C({url:this.url,items:this.items.map((e=>e.clone()))})}toJSON(e){return this.toArray().map((t=>t.toJSON(e))).filter((e=>!!e.geometry))}static fromJSON(e,t){const r=new C;for(const i of e)r.add(O.fromJSON(i,t));return r}static async fromUrl(e,t,r){const i={url:(0,T.as)(e),origin:"service"},o=await(0,I.c)(e,{responseType:"json",signal:r?.signal}),n=t.toJSON(),s=[];for(const e of o.data)s.push(O.fromJSON({...e,geometry:{...e.geometry,spatialReference:n}},i));return new C({url:e,items:s})}};(0,o._)([(0,c.qq)({type:String})],A.prototype,"url",void 0),A=C=(0,o._)([(0,d.c)("esri.layers.support.SceneModifications")],A);const D=A;var k=r(69204),L=r(91952);let F=class extends((0,w.G6)((0,f.u)((0,v.Y)((0,q.K)((0,_.I)((0,a.U)((0,g.G)((0,m.C)(h.c))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.path=null}initialize(){this.addHandles((0,p.on)((()=>this.modifications),"after-changes",(()=>this.modifications=this.modifications),p.du))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,r){this._modificationsSource={url:(0,L.f)(e,r),context:r}}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,l.CE)(e)}if(await this._fetchService(t),null!=this._modificationsSource){const t=await D.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then((()=>{}),(()=>{}))}async saveAs(e,t){return this._debouncedSaveOperations(w.UJ.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"};return this._debouncedSaveOperations(w.UJ.SAVE,e)}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new n.c("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new n.c("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new n.c("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}_validateElevationInfo(){const e=this.elevationInfo,t="Integrated mesh layers";(0,k.A$)(s.c.getLogger(this),(0,k.Ez)(t,"absolute-height",e)),(0,k.A$)(s.c.getLogger(this),(0,k.W8)(t,e))}};(0,o._)([(0,c.qq)({type:String,readOnly:!0})],F.prototype,"geometryType",void 0),(0,o._)([(0,c.qq)({type:["show","hide"]})],F.prototype,"listMode",void 0),(0,o._)([(0,c.qq)({type:["IntegratedMeshLayer"]})],F.prototype,"operationalLayerType",void 0),(0,o._)([(0,c.qq)({json:{read:!1},readOnly:!0})],F.prototype,"type",void 0),(0,o._)([(0,c.qq)({type:S.yq,readOnly:!0})],F.prototype,"nodePages",void 0),(0,o._)([(0,c.qq)({type:[S.a],readOnly:!0})],F.prototype,"materialDefinitions",void 0),(0,o._)([(0,c.qq)({type:[S.G4],readOnly:!0})],F.prototype,"textureSetDefinitions",void 0),(0,o._)([(0,c.qq)({type:[S.iK],readOnly:!0})],F.prototype,"geometryDefinitions",void 0),(0,o._)([(0,c.qq)({readOnly:!0})],F.prototype,"serviceUpdateTimeStamp",void 0),(0,o._)([(0,c.qq)({type:D}),(0,y.O)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],F.prototype,"modifications",void 0),(0,o._)([(0,u.E)(["web-scene","portal-item"],"modifications")],F.prototype,"readModifications",null),(0,o._)([(0,c.qq)(b.Kg)],F.prototype,"elevationInfo",null),(0,o._)([(0,c.qq)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],F.prototype,"path",void 0),F=(0,o._)([(0,d.c)("esri.layers.IntegratedMeshLayer")],F);const G=F},81436:(e,t,r)=>{r.d(t,{c:()=>q});var i=r(41948),o=(r(60708),r(2600)),n=r(20744),s=r(77860),a=r(22156),l=r(95800),p=r(66360),c=r(10860),u=r(28176),d=r(1580),y=(r(9456),r(72052),r(12552)),h=r(6220),m=r(95247),f=r(56156);let g=0,v=class extends(s.c.EventedMixin((0,a.MR)(l.c))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.c(-180,-90,180,90,f.c.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.c.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(9232).then(r.bind(r,69232))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(2259).then(r.bind(r,12259));try{return await i(t)}catch(e){const r=t?.portalItem,i=r?.id||"unset",o=r?.portal?.url||h.default.portalUrl;throw p.c.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,c.mA)(e)||p.c.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,u.as)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,o.c)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.c("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,d.qq)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i._)([(0,d.qq)({type:m.c})],v.prototype,"fullExtent",void 0),(0,i._)([(0,d.qq)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i._)([(0,d.qq)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i._)([(0,d.qq)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i._)([(0,d.qq)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i._)([(0,d.qq)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i._)([(0,d.qq)({clonable:!1})],v.prototype,"parent",void 0),(0,i._)([(0,d.qq)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i._)([(0,d.qq)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,i._)([(0,d.qq)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i._)([(0,d.qq)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i._)([(0,d.qq)({type:f.c})],v.prototype,"spatialReference",void 0),(0,i._)([(0,d.qq)({type:String})],v.prototype,"title",void 0),(0,i._)([(0,d.qq)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i._)([(0,d.qq)()],v.prototype,"url",void 0),(0,i._)([(0,d.qq)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i._)([(0,y.c)("esri.layers.Layer")],v);const q=v},28584:(e,t,r)=>{r.d(t,{G:()=>s});var i=r(41948),o=r(1580),n=(r(9456),r(66360),r(72052),r(12552));const s=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,o.qq)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,n.c)("esri.layers.mixins.CustomParametersMixin")],t),t}},98768:(e,t,r)=>{r.d(t,{K:()=>b});var i=r(41948),o=r(6220),n=r(47620),s=r(2600),a=r(40196),l=r(20744),p=r(66360),c=r(70680),u=r(10860),d=r(28176),y=r(1580),h=(r(9456),r(72052),r(33600)),m=r(12552),f=r(18996),g=r(71068),v=r(54872),q=r(9764),_=r(53039),w=r(46940);const b=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.mG)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new q.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:i}=await Promise.all([r.e(8828),r.e(4132)]).then(r.bind(r,94132));return(0,u.wp)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,u.mA)(e)||p.c.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,u.CE)(e),!0))))}async setUserPrivileges(e,t){if(!o.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:o}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",o)}catch(e){(0,u.CE)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,w.CI)(r);let o,s;if(i)o=r.portal.url;else try{o=await(0,g.mK)(this.url,t)}catch(e){(0,u.CE)(e)}if(!o||!(0,d.Cs)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;s=await(n.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,u.CE)(e)}if(!s)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new q.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return(0,w.CI)(r)}catch(e){(0,u.CE)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,u.CE)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const r=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=n.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,o=v.c.getDefault();if(o&&o.loaded&&(0,d.k7)(o.restUrl)===(0,d.k7)(i))return o.user;const l=`${i}/community/self`,p=null!=e?e.signal:null,c=await(0,a.aG)((0,s.c)(l,{authMode:"no-prompt",query:{f:"json"},signal:p}));return c.ok?_.c.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.c.getDefault());return r&&i&&!(0,d.kF)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.c("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,i._)([(0,y.qq)({type:q.default})],t.prototype,"portalItem",null),(0,i._)([(0,h.E)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,f.G)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,y.qq)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,y.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,y.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,y.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,m.c)("esri.layers.mixins.PortalLayer")],t),t},S={credential:null,user:null}},3116:(e,t,r)=>{r.d(t,{I:()=>s});var i=r(41948),o=r(1580),n=(r(9456),r(66360),r(72052),r(12552));const s=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,o.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,o.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,o.qq)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,n.c)("esri.layers.mixins.ScaleRangeLayer")],t),t}},44104:(e,t,r)=>{r.d(t,{G4:()=>y,a:()=>u,iK:()=>g,yq:()=>l});var i=r(41948),o=r(40504),n=r(1580),s=(r(9456),r(66360),r(72052),r(9968)),a=r(12552);let l=class extends o.am{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,i._)([(0,n.qq)({type:Number})],l.prototype,"nodesPerPage",void 0),(0,i._)([(0,n.qq)({type:Number})],l.prototype,"rootIndex",void 0),(0,i._)([(0,n.qq)({type:String})],l.prototype,"lodSelectionMetricType",void 0),l=(0,i._)([(0,a.c)("esri.layer.support.I3SNodePageDefinition")],l);let p=class extends o.am{constructor(){super(...arguments),this.factor=1}};(0,i._)([(0,n.qq)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],p.prototype,"id",void 0),(0,i._)([(0,n.qq)({type:Number})],p.prototype,"factor",void 0),p=(0,i._)([(0,a.c)("esri.layer.support.I3SMaterialTexture")],p);let c=class extends o.am{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,i._)([(0,n.qq)({type:[Number]})],c.prototype,"baseColorFactor",void 0),(0,i._)([(0,n.qq)({type:p})],c.prototype,"baseColorTexture",void 0),(0,i._)([(0,n.qq)({type:p})],c.prototype,"metallicRoughnessTexture",void 0),(0,i._)([(0,n.qq)({type:Number})],c.prototype,"metallicFactor",void 0),(0,i._)([(0,n.qq)({type:Number})],c.prototype,"roughnessFactor",void 0),c=(0,i._)([(0,a.c)("esri.layer.support.I3SMaterialPBRMetallicRoughness")],c);let u=class extends o.am{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,i._)([(0,s.G)({opaque:"opaque",mask:"mask",blend:"blend"})],u.prototype,"alphaMode",void 0),(0,i._)([(0,n.qq)({type:Number})],u.prototype,"alphaCutoff",void 0),(0,i._)([(0,n.qq)({type:Boolean})],u.prototype,"doubleSided",void 0),(0,i._)([(0,s.G)({none:"none",back:"back",front:"front"})],u.prototype,"cullFace",void 0),(0,i._)([(0,n.qq)({type:p})],u.prototype,"normalTexture",void 0),(0,i._)([(0,n.qq)({type:p})],u.prototype,"occlusionTexture",void 0),(0,i._)([(0,n.qq)({type:p})],u.prototype,"emissiveTexture",void 0),(0,i._)([(0,n.qq)({type:[Number]})],u.prototype,"emissiveFactor",void 0),(0,i._)([(0,n.qq)({type:c})],u.prototype,"pbrMetallicRoughness",void 0),u=(0,i._)([(0,a.c)("esri.layer.support.I3SMaterialDefinition")],u);let d=class extends o.am{};(0,i._)([(0,n.qq)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>null!=e?e:`${t.index}`}}})],d.prototype,"name",void 0),(0,i._)([(0,s.G)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],d.prototype,"format",void 0),d=(0,i._)([(0,a.c)("esri.layer.support.I3STextureFormat")],d);let y=class extends o.am{constructor(){super(...arguments),this.atlas=!1}};(0,i._)([(0,n.qq)({type:[d]})],y.prototype,"formats",void 0),(0,i._)([(0,n.qq)({type:Boolean})],y.prototype,"atlas",void 0),y=(0,i._)([(0,a.c)("esri.layer.support.I3STextureSetDefinition")],y);let h=class extends o.am{};(0,i._)([(0,s.G)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],h.prototype,"type",void 0),(0,i._)([(0,n.qq)({type:Number})],h.prototype,"component",void 0),h=(0,i._)([(0,a.c)("esri.layer.support.I3SGeometryAttribute")],h);let m=class extends o.am{};(0,i._)([(0,s.G)({draco:"draco"})],m.prototype,"encoding",void 0),(0,i._)([(0,n.qq)({type:[String]})],m.prototype,"attributes",void 0),m=(0,i._)([(0,a.c)("esri.layer.support.I3SGeometryCompressedAttributes")],m);let f=class extends o.am{constructor(){super(...arguments),this.offset=0}};(0,i._)([(0,n.qq)({type:Number})],f.prototype,"offset",void 0),(0,i._)([(0,n.qq)({type:h})],f.prototype,"position",void 0),(0,i._)([(0,n.qq)({type:h})],f.prototype,"normal",void 0),(0,i._)([(0,n.qq)({type:h})],f.prototype,"uv0",void 0),(0,i._)([(0,n.qq)({type:h})],f.prototype,"color",void 0),(0,i._)([(0,n.qq)({type:h})],f.prototype,"uvRegion",void 0),(0,i._)([(0,n.qq)({type:h})],f.prototype,"featureId",void 0),(0,i._)([(0,n.qq)({type:h})],f.prototype,"faceRange",void 0),(0,i._)([(0,n.qq)({type:m})],f.prototype,"compressedAttributes",void 0),f=(0,i._)([(0,a.c)("esri.layer.support.I3SGeometryBuffer")],f);let g=class extends o.am{};(0,i._)([(0,s.G)({triangle:"triangle"})],g.prototype,"topology",void 0),(0,i._)([(0,n.qq)()],g.prototype,"geometryBuffers",void 0),g=(0,i._)([(0,a.c)("esri.layer.support.I3SGeometryDefinition")],g)},73960:(e,t,r)=>{r.d(t,{e:()=>o});var i=r(28176);function o(e){return n[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.wt)(e);return l[t]||s}(e.url)}(e)]||a}const n={},s="text/plain",a=n[s],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)n[l[e]]=e},69204:(e,t,r)=>{function i(e,t){return t?.mode?t.mode:function(e){return e?p:c}(e).mode}function o(e,t){return i(null!=e&&e.hasZ,t)}function n(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function s(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function a(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function l(e,t){t&&e.warn(".elevationInfo=",t)}r.d(t,{A$:()=>l,Ez:()=>n,W8:()=>a,ay:()=>s,m6:()=>o}),r(35764);const p={mode:"absolute-height",offset:0},c={mode:"on-the-ground",offset:null}}}]);
|