@arcgis/core 5.1.0-next.44 → 5.1.0-next.45
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/applications/Components/featureUtils.d.ts +11 -7
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{45cf181c1945e6c77a4b.js → 0155e5679ded9de5c327.js} +1 -1
- package/assets/esri/core/workers/chunks/128799741dd3c6fc69b9.js +1 -0
- package/assets/esri/core/workers/chunks/13eb0162d95b4d27389c.js +1 -0
- package/assets/esri/core/workers/chunks/1a481f3ae3146682eb00.js +1 -0
- package/assets/esri/core/workers/chunks/1cce2f8837ad765acf44.js +1 -0
- package/assets/esri/core/workers/chunks/2379c64b0ca30814a815.js +1 -0
- package/assets/esri/core/workers/chunks/23a9070e9362b8439770.js +1 -0
- package/assets/esri/core/workers/chunks/{9aa1ad8b436b5b0dd5f5.js → 288bd32831e94e81653e.js} +1 -1
- package/assets/esri/core/workers/chunks/2b3a8a53cd68f666676b.js +1 -0
- package/assets/esri/core/workers/chunks/{4d16b6ac52e25bd7e6aa.js → 32a51ce8e1a362115c89.js} +1 -1
- package/assets/esri/core/workers/chunks/{392941013107bbd96503.js → 365ad1ffd496ed86637b.js} +1 -1
- package/assets/esri/core/workers/chunks/375eac59c9f88c7572db.js +2 -0
- package/assets/esri/core/workers/chunks/{eab74d830c2eaa9d133b.js → 4869e2f35aaf6b058281.js} +1 -1
- package/assets/esri/core/workers/chunks/{10941b50f5933d168df6.js → 521a671182b0f79e3624.js} +1 -1
- package/assets/esri/core/workers/chunks/{c2f3fc1b34a6782b431f.js → 5351e71ce7839636d06d.js} +1 -1
- package/assets/esri/core/workers/chunks/5b515b5741733bcb4645.js +1 -0
- package/assets/esri/core/workers/chunks/{1669f1bf959c4e3083da.js → 5c0b3c76a7bc971c61dc.js} +1 -1
- package/assets/esri/core/workers/chunks/{5f81f9e586b3ba0c34d4.js → 5c830cce32710d70dfa6.js} +1 -1
- package/assets/esri/core/workers/chunks/5e9bd5ed6ecee5b15127.js +1 -0
- package/assets/esri/core/workers/chunks/617328964d480d4a3a45.js +1 -0
- package/assets/esri/core/workers/chunks/650614a9e4871714c42e.js +1 -0
- package/assets/esri/core/workers/chunks/66baacbef23291eab853.js +1 -0
- package/assets/esri/core/workers/chunks/7278cc37e85f0242f19b.js +1 -0
- package/assets/esri/core/workers/chunks/{3c597d8ef898627b8f93.js → 768bbc910be6c65ac107.js} +1 -1
- package/assets/esri/core/workers/chunks/{a1f36240a31057f998da.js → 79dc7045d9a2d43ba8df.js} +1 -1
- package/assets/esri/core/workers/chunks/{f9da5c81535eaffc8b9c.js → 7f07f490c6fcc794c8d9.js} +1 -1
- package/assets/esri/core/workers/chunks/{2b386374330d96387aec.js → 851fc5290497991ba001.js} +1 -1
- package/assets/esri/core/workers/chunks/{c9f5d72b86ecb2a30587.js → 8cafdd4addd366795600.js} +1 -1
- package/assets/esri/core/workers/chunks/{30cdb2d1d9f018f1642d.js → 9032c040b214b5af775b.js} +1 -1
- package/assets/esri/core/workers/chunks/{ff8ec6369c8a1bee9bb4.js → 908f171b9c512d738dea.js} +1 -1
- package/assets/esri/core/workers/chunks/{c7799ba861ac5af08e6a.js → 92d4e962284e13ba2fc5.js} +1 -1
- package/assets/esri/core/workers/chunks/970d971551e42f7ae08d.js +1 -0
- package/assets/esri/core/workers/chunks/9802770413ad814dab29.js +1 -0
- package/assets/esri/core/workers/chunks/{6e8cfe69617876ee0dac.js → a69f1879735a031f62e9.js} +1 -1
- package/assets/esri/core/workers/chunks/{af804beb43d4d10c54d9.js → a9f35127c3f5bf42036b.js} +1 -1
- package/assets/esri/core/workers/chunks/beb53b372d356800f333.js +1 -0
- package/assets/esri/core/workers/chunks/{3c7ee71f0d8582e6d78f.js → bf4d2f42d31861ea1046.js} +1 -1
- package/assets/esri/core/workers/chunks/c2aa3b1344b42a904234.js +1 -0
- package/assets/esri/core/workers/chunks/{4140d4c8b6b122fc2cd4.js → ca88a364ef911526102e.js} +1 -1
- package/assets/esri/core/workers/chunks/cdeb6aec578a1c07d663.js +1 -0
- package/assets/esri/core/workers/chunks/cf5e4cf9b1aa37eeb6b0.js +1 -0
- package/assets/esri/core/workers/chunks/d0adf059085ddf7151dd.js +1 -0
- package/assets/esri/core/workers/chunks/d2af5342fbe80e2d8c60.js +1 -0
- package/assets/esri/core/workers/chunks/d3d024b3d2bb8fbbf760.js +1 -0
- package/assets/esri/core/workers/chunks/{c0cc4ca138db47052845.js → dbafe96ce37bb82d0584.js} +1 -1
- package/assets/esri/core/workers/chunks/e4e0c5a45cf32973d5d5.js +1 -0
- package/assets/esri/core/workers/chunks/{6cc5c37d6bdaf5483bd4.js → e5927f9d0e757ec4c22a.js} +1 -1
- package/assets/esri/core/workers/chunks/{465cc0e00f03cdb640b2.js → e7402dfd683f82878360.js} +1 -1
- package/assets/esri/core/workers/chunks/{8838ff9668b472af16a1.js → ef0eae13408cbf83a64f.js} +1 -1
- package/assets/esri/core/workers/chunks/f1767b8ba82fdd9bd947.js +1 -0
- package/assets/esri/core/workers/chunks/{fb69a0bb025b7a5ec588.js → f6e3954ddbb5993d56df.js} +1 -1
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
- package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
- package/assets/esri/themes/base/widgets/_Grid.scss +5 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/Jpg.js +1 -1
- package/chunks/Zlib.js +1 -1
- package/chunks/lyr3DMain.js +1 -1
- package/chunks/lyr3DWorker.js +1 -1
- package/chunks/vxlLayer.js +1 -1
- package/config.js +1 -1
- package/geometry/support/zscale.js +1 -1
- package/kernel.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/graphics/featureConversionUtils.js +1 -1
- package/layers/ogc/ogcFeatureUtils.js +1 -1
- package/layers/raster/formats/ImageCanvasDecoder.js +1 -1
- package/layers/raster/formats/JpgPlus.js +1 -1
- package/layers/raster/formats/RasterCodec.js +1 -1
- package/layers/raster/formats/TiffDecoder.js +1 -1
- package/layers/save/featureLayerUtils.js +1 -1
- package/layers/save/groupLayerUtils.js +1 -1
- package/layers/save/mapImageLayerUtils.js +1 -1
- package/layers/support/SubtypeSublayer.js +1 -1
- package/layers/support/layerUtils.js +1 -1
- package/package.json +2 -2
- package/rest/query/operations/pbfFeatureSetUtils.js +1 -1
- package/rest/query/operations/pbfFlatFeatureSet.js +1 -1
- package/rest/query/operations/pbfOptimizedFeatureSet.js +1 -1
- package/support/revision.js +1 -1
- package/third-party-notices.txt +2 -2
- package/views/2d/engine/ManagedCanvas.js +1 -1
- package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.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/AProcessorStrategy.js +1 -1
- package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
- package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
- package/views/3d/layers/i3s/I3SClientMaterialUtil.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentDrawParameters.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/effects/WeatherFader.js +1 -1
- package/views/interactive/GraphicManipulator.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
- package/widgets/Editor/EditorViewModel.d.ts +1 -1
- package/widgets/Editor.d.ts +2 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/Sketch/support/PluginManager.js +1 -1
- package/assets/esri/core/workers/chunks/02a0a58ca5916db1db19.js +0 -1
- package/assets/esri/core/workers/chunks/03c8453ae72a4e190252.js +0 -1
- package/assets/esri/core/workers/chunks/0e669a04999feb9f98c9.js +0 -1
- package/assets/esri/core/workers/chunks/244dd7a948ca8a7dc6ef.js +0 -1
- package/assets/esri/core/workers/chunks/26cafd20c8d03c274389.js +0 -1
- package/assets/esri/core/workers/chunks/2cd0934163cb627ce251.js +0 -1
- package/assets/esri/core/workers/chunks/2fa86dacc8a12a6a6c43.js +0 -1
- package/assets/esri/core/workers/chunks/3e26f9af6b8c75bad97a.js +0 -1
- package/assets/esri/core/workers/chunks/5a6a6e7151085a3cd3dd.js +0 -1
- package/assets/esri/core/workers/chunks/5eb9fdb076488de9cd83.js +0 -1
- package/assets/esri/core/workers/chunks/65865c25487d23dd2e31.js +0 -1
- package/assets/esri/core/workers/chunks/65ea5028eb12457a3aeb.js +0 -1
- package/assets/esri/core/workers/chunks/8333561a938bcdf6c2e6.js +0 -1
- package/assets/esri/core/workers/chunks/848c6989a6a222c7a1d8.js +0 -2
- package/assets/esri/core/workers/chunks/91718795fc4ca6516ac7.js +0 -1
- package/assets/esri/core/workers/chunks/9b80569819cd1c72a9ff.js +0 -1
- package/assets/esri/core/workers/chunks/a4a2e7bc3369434c5cfa.js +0 -1
- package/assets/esri/core/workers/chunks/b056b4c79bcd542dd1d2.js +0 -1
- package/assets/esri/core/workers/chunks/b553264db0f10bb8c5f7.js +0 -1
- package/assets/esri/core/workers/chunks/c4f64195e44986644993.js +0 -1
- package/assets/esri/core/workers/chunks/ca6012135929b028ea1b.js +0 -1
- package/assets/esri/core/workers/chunks/de79645e559a2d1ffa67.js +0 -1
- package/assets/esri/core/workers/chunks/df5788d42787ee8bf523.js +0 -1
- package/assets/esri/core/workers/chunks/f0e6a26a3625068b08ab.js +0 -1
- package/assets/esri/core/workers/chunks/f36a234ef35faf8ca04d.js +0 -1
- /package/assets/esri/core/workers/chunks/{848c6989a6a222c7a1d8.js.LICENSE.txt → 375eac59c9f88c7572db.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3447,8599],{46140(e,t,r){r.d(t,{A:()=>o});var i=r(49186);class o{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new o(this.major,this.minor,this._context)}static parse(e,t=""){const[r,n]=e.split("."),s=/^\s*\d+\s*$/;if(!r?.match||!s.test(r))throw new i.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!n?.match||!s.test(n))throw new i.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const a=parseInt(r,10),l=parseInt(n,10);return new o(a,l,t)}}},62815(e,t,r){r.d(t,{N:()=>a,d:()=>l});var i=r(86211),o=r(73941),n=r(21325),s=r(52006);function a(e,t,r){const i=l(t,r);if(1!==i)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,i);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const r of e.curvePaths)for(const e of r){const r=(0,s.yP)(e);r.length>2&&(r[2]*=t)}if(e.paths)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}}(e,i);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const r of e.curveRings)for(const e of r){const r=(0,s.yP)(e);r.length>2&&(r[2]*=t)}if(e.rings)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}}(e,i);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,i);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,i);default:return}}function l(e,t){return null==e||null==t||(e.vcsWkid??null)!==(t.vcsWkid??null)||(0,n.aI)(e,t)||(0,o.xP)(e)||(0,o.xP)(t)?1:(0,i.G9)(e)/(0,i.G9)(t)}},16852(e,t,r){r.r(t),r.d(t,{default:()=>D});var i=r(5482),o=r(49186),n=r(4718),s=r(93637),a=r(91429),l=r(16930),p=r(55156),c=r(60950),u=r(89808),d=r(99959);const y=Symbol("isOrientedImageryGraphicOrigin");var f;class h extends d.A{get[(f=y,c.ym)](){return this.layer}get[p.e](){return this.layer}get[u.Q](){return this.layer}constructor(e){super(),this[f]=!0,this.type="oriented-imagery",this.layer=e}get id(){return this.layer.id}}var g=r(29784),m=r(82935),v=r(23281),w=r(20437),C=r(43440),M=r(79677),b=r(43937);const j=new Set(["demPathPrefix","demPathSuffix","depthImagePathPrefix","depthImagePathSuffix","elevationSource","horizontalMeasurementUnit","imageGeometryField","imageReferenceField","referenceIDField","sequenceOrderField","verticalMeasurementUnit","videoPathPrefix","videoPathSuffix","timeAnimation","visibilityTimeExtent"]),x=new Set(["elevationSource"]),Z=(e,t)=>!j.has(t)&&e;function S(e,t,r,i){const{name:o,write:n,read:s}=((e,t,r)=>{const i=`orientedImageryProperties.${e}`,o={allowNull:x.has(e),ignoreOrigin:!0};return{name:i,write:t?{...o,target:i,writer:t}:o,read:r?{ignoreOrigin:!0,source:i,reader:r}:{ignoreOrigin:!0}}})(e,t,r),a={name:o,write:n,read:s,origins:{service:{name:`orientedImageryInfo.${o}`,write:t,read:r},"web-scene":{name:o,write:Z(n,e),read:Z(s,e)},"web-map":{name:o,write:n,read:s}}};return i&&a.origins?(a.type=i,a.origins["web-map"].type=i,a.origins["web-scene"].type=i,a):a}let T=class extends g.default{constructor(e){super(e),this.attributeTableTemplate=null,this.cameraHeading=null,this.cameraHeight=null,this.cameraPitch=null,this.cameraRoll=null,this.coveragePercent=null,this.demPathPrefix=null,this.demPathSuffix=null,this.depthImagePathPrefix=null,this.depthImagePathSuffix=null,this.elevationSource=null,this.farDistance=null,this.geometryType="point",this.graphicOrigin=new h(this),this.horizontalFieldOfView=null,this.horizontalMeasurementUnit=null,this.imageGeometryField="ImageGeometry",this.imagePathPrefix=null,this.imagePathSuffix=null,this.imageReferenceField="OIObjectID",this.imageRotation=null,this.maximumDistance=null,this.nearDistance=null,this.operationalLayerType="OrientedImageryLayer",this.orientationAccuracy=null,this.orientedImageryType=null,this.referenceIDField="OBJECTID",this.sequenceOrderField="SequenceOrder",this.supportedSourceTypes=new Set(["Oriented Imagery Layer"]),this.type="oriented-imagery",this.timeIntervalUnit="days",this.useViewTime=!0,this.verticalFieldOfView=null,this.verticalMeasurementUnit=null,this.verticalSearchRange=null,this.videoPathPrefix=null,this.videoPathSuffix=null,this.virtualCacheDirectory=null,this.dataStoreID=null,this.visibilityTimeExtent=null}get effectiveElevationSource(){const{elevationSource:e,demPathPrefix:t,demPathSuffix:r}=this;return(0,v.eR)(e,t,r)}get effectiveSequenceOrderField(){const{sequenceOrderField:e,fields:t}=this;return t.find(t=>t.name.toLowerCase()===e?.toLowerCase())?.name??"SequenceOrder"}set fieldConfigurations(e){}get fieldConfigurations(){}writePopupTemplate(e,t,r,i){e&&(t[r]=e.toJSON(i))}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}findFirstValidLayerId(e){return e.layers?.find(({type:e})=>!!e&&this.supportedSourceTypes.has(e))?.id}_verifySource(){if(super._verifySource(),"point"!==this.geometryType)throw new o.A("oriented-imagery-layer:invalid-geometry-type","OrientedImageryLayer only supports point geometry type")}};var P;(0,i.Cg)([(0,a.MZ)({type:C.A,json:{write:!1,read:!1}})],T.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:S("cameraHeading")})],T.prototype,"cameraHeading",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:S("cameraHeight")})],T.prototype,"cameraHeight",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:S("cameraPitch")})],T.prototype,"cameraPitch",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:S("cameraRoll")})],T.prototype,"cameraRoll",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:S("coveragePercent")})],T.prototype,"coveragePercent",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:S("demPathPrefix")})],T.prototype,"demPathPrefix",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:S("demPathSuffix")})],T.prototype,"demPathSuffix",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:S("depthImagePathPrefix")})],T.prototype,"depthImagePathPrefix",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:S("depthImagePathSuffix")})],T.prototype,"depthImagePathSuffix",void 0),(0,i.Cg)([(0,a.MZ)({type:Object,json:S("elevationSource")})],T.prototype,"elevationSource",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],T.prototype,"effectiveElevationSource",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],T.prototype,"effectiveSequenceOrderField",null),(0,i.Cg)([(0,a.MZ)({type:Number,json:S("farDistance")})],T.prototype,"farDistance",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!1}})],T.prototype,"fieldConfigurations",null),(0,i.Cg)([(0,a.MZ)({type:[w.A]})],T.prototype,"fields",void 0),(0,i.Cg)([(0,a.MZ)()],T.prototype,"geometryType",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0,clonable:!1})],T.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:S("horizontalFieldOfView")})],T.prototype,"horizontalFieldOfView",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:S("horizontalMeasurementUnit")})],T.prototype,"horizontalMeasurementUnit",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{...S("imageGeometryField"),default:"ImageGeometry"}})],T.prototype,"imageGeometryField",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:S("imagePathPrefix")})],T.prototype,"imagePathPrefix",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:S("imagePathSuffix")})],T.prototype,"imagePathSuffix",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{...S("imageReferenceField"),default:"OIObjectID"}})],T.prototype,"imageReferenceField",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:S("imageRotation")})],T.prototype,"imageRotation",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:S("maximumDistance")})],T.prototype,"maximumDistance",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:S("nearDistance")})],T.prototype,"nearDistance",void 0),(0,i.Cg)([(0,a.MZ)({type:["OrientedImageryLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0}}}}})],T.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,a.MZ)({json:{...S("orientationAccuracy",(e,t,r)=>{(0,s.sM)(r,e.join(";"),t)},e=>{const t=e?.split(";")?.map(Number);return(0,v.Qv)(t)?(0,v.Yp)(t):[0,0,0,0,0,0,0,0]},String)}})],T.prototype,"orientationAccuracy",void 0),(0,i.Cg)([(0,a.MZ)({json:{...S("orientedImageryType",v.fs.write,v.fs.read,v.fs.jsonValues.slice(1))}})],T.prototype,"orientedImageryType",void 0),(0,i.Cg)([(0,b.K)("popupTemplate")],T.prototype,"writePopupTemplate",null),(0,i.Cg)([(0,a.MZ)({type:String,json:{...S("referenceIDField"),default:"OBJECTID"}})],T.prototype,"referenceIDField",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{...S("sequenceOrderField"),default:"SequenceOrder"}})],T.prototype,"sequenceOrderField",void 0),(0,i.Cg)([(0,a.MZ)({type:l.A})],T.prototype,"spatialReference",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!1},value:"oriented-imagery",readOnly:!0})],T.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:v.RR.apiValues,json:{...S("timeIntervalUnit",v.RR.write,v.RR.read,v.RR.jsonValues)}})],T.prototype,"timeIntervalUnit",void 0),(0,i.Cg)([(0,a.MZ)((P=(0,n.o8)(m.B),P.json?(P.json.origins=P.json.origins??{},P.json.origins["web-scene"]={write:!1,read:!1},P):P))],T.prototype,"useViewTime",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:S("verticalFieldOfView")})],T.prototype,"verticalFieldOfView",void 0),(0,i.Cg)([(0,a.MZ)({type:v.l6.apiValues,json:{...S("verticalMeasurementUnit",v.l6.write,v.l6.read,v.l6.jsonValues)}})],T.prototype,"verticalMeasurementUnit",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:S("verticalSearchRange")})],T.prototype,"verticalSearchRange",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:S("videoPathPrefix")})],T.prototype,"videoPathPrefix",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:S("videoPathSuffix")})],T.prototype,"videoPathSuffix",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.orientedImageryProperties.virtualCacheDirectory",read:!0}}}})],T.prototype,"virtualCacheDirectory",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.dsid",read:!0}}}})],T.prototype,"dataStoreID",void 0),(0,i.Cg)([(0,a.MZ)({type:M.A,json:{origins:{"web-scene":{write:!1,read:!1}}}})],T.prototype,"visibilityTimeExtent",void 0),T=(0,i.Cg)([(0,a.$K)("esri.layers.OrientedImageryLayer")],T);const D=T},32756(e,t,r){r.d(t,{Rr:()=>a,fY:()=>p,ne:()=>l});var i=r(5482),o=r(93637),n=r(91429),s=r(91880);function a(e,t,r){if(!e)return null;const i=e.find(e=>!!e.field);if(!i)return null;const o=new s.A;return o.read(i,r),[o]}const l={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,i){const n=e.find(e=>!!e.field);n&&(0,o.sM)(r,[n.toJSON()],t)}}}},p=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,n.MZ)(l)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.OrderedLayer")],r),r}},63490(e,t,r){r.d(t,{E1:()=>p,Mr:()=>l,TH:()=>a});var i=r(5482),o=r(69540),n=r(25482),s=r(91429);let a=class extends((0,o.OU)(n.o)){constructor(){super(...arguments),this.url=null}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"lod",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"rasterFunction",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"url",void 0),a=(0,i.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],a);let l=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.constantElevation=null}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],l.prototype,"constantElevation",void 0),l=(0,i.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],l);const p=e=>null!=e&&"number"==typeof e.constantElevation},23281(e,t,r){r.d(t,{eR:()=>b,Qv:()=>D,fs:()=>Z,Yp:()=>N,RR:()=>j,l6:()=>x});var i=r(66552),o=(r(86211),r(28735),r(5482)),n=r(69540),s=r(25482),a=r(91429),l=r(69622),p=r(21325);let c=class extends l.A{set horizontalWKID(e){e?(0,p.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,p.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:o}=this;return e?.length>1&&!Number.isNaN(t)&&r?.length>1&&i?.length>1&&o?.length>1}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"affineTransformations",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"focalLength",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"principalOffsetPoint",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"radialDistortionCoefficients",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"tangentialDistortionCoefficients",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"horizontalWKID",null),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"verticalWKID",null),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"x",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"y",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"z",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"type",void 0),c=(0,o.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientation")],c);const u=c;let d=class extends((0,n.OU)((0,s.T)(u))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,heading:s,pitch:a,roll:l,affineTransformations:p,focalLength:c,principalOffsetPoint:u,radialDistortionCoefficients:d,tangentialDistortionCoefficients:y}=this,f=[e,t,r,i,o,n,s,a,l];return this.isAdvanced&&(p?.forEach(e=>f.push(e)),f.push(c),u?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),y?.forEach(e=>f.push(e))),f.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"affineTransformations",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"focalLength",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"principalOffsetPoint",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"radialDistortionCoefficients",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"tangentialDistortionCoefficients",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"heading",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"pitch",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"roll",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"x",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"y",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"z",void 0),d=(0,o.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationHPR")],d);const y=d;let f=class extends((0,n.OU)((0,s.T)(u))){constructor(){super(...arguments),this.type=4}toString(){const{type:e,latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:o,properties:n}=this,s=`${n}`.split("|");return s.splice(1,1),`${e}|${t}|${r}|${i}|${o}|${s.join("|")}`}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],f.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"latitude",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"longitude",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"ellipsoidRadius",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"squaredEccentricity",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],f.prototype,"properties",void 0),f=(0,o.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationLTP")],f);const h=f;let g=class extends((0,n.OU)((0,s.T)(u))){constructor(){super(...arguments),this.type=2}toString(){const{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,omega:s,phi:a,kappa:l,affineTransformations:p,focalLength:c,principalOffsetPoint:u,radialDistortionCoefficients:d,tangentialDistortionCoefficients:y}=this,f=[e,t,r,i,o,n,s,a,l];return this.isAdvanced&&(p?.forEach(e=>f.push(e)),f.push(c),u?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),y?.forEach(e=>f.push(e))),f.map(e=>isNaN(e)?"":e).join("|")}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],g.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"affineTransformations",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"focalLength",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"principalOffsetPoint",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"radialDistortionCoefficients",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"tangentialDistortionCoefficients",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"omega",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"phi",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"kappa",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"x",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"y",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"z",void 0),g=(0,o.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationOPK")],g);const m=g;let v=class extends((0,n.OU)((0,s.T)(u))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:o}=this;return e?.length>1||!Number.isNaN(t)||r?.length>1||i?.length>1||o?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,yaw:s,pitch:a,roll:l,affineTransformations:p,focalLength:c,principalOffsetPoint:u,radialDistortionCoefficients:d,tangentialDistortionCoefficients:y}=this,f=[e,t,r,i,o,n,s,a,l];return this.isAdvanced&&(p?.forEach(e=>f.push(e)),f.push(c),u?.forEach(e=>f.push(e)),u?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),y?.forEach(e=>f.push(e))),f.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"yaw",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,o.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationYPR")],v);const w=v,C=new Map;C.set("2",{desc:"Using Omega Phi Kappa",constructor:m}),C.set("1",{desc:"Using Heading, Pitch and Roll",constructor:y}),C.set("3",{desc:"Using Yaw, Pitch and Roll",constructor:w}),C.set("4",{desc:"Using Local Tangent Plane",constructor:h});var M=r(63490);function b(e,t,r){return e?(0,M.E1)(e)?new M.Mr(e):function(e,t,r){let{url:i}=e;return i?(i=function(e,t,r){return t&&(e=`${t}${e}`),r&&(e+=`${r}`),e}(i,t,r),new M.TH({...e,url:i})):null}(e,t,r):e}const j=new i.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),x=new i.J({Feet:"feet",Meter:"meter"}),Z=new i.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique",Terrestrial360Video:"terrestrial-360-video",TerrestrialFrameVideo:"terrestrial-frame-video",Aerial360Video:"aerial-360-video",AerialFrameVideo:"aerial-frame-video","":null}),S=new Map;S.set("1",function(e){const[t,r,i,o,n,s,a,l,p,c,u,d,y,f,h,g,m,v,w,C,M,b]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,heading:s,pitch:a,roll:l,...P([p,c,u,d,y,f],[g,m],[v,w,C],[M,b],h)}}),S.set("3",function(e){const[t,r,i,o,n,s,a,l,p,c,u,d,y,f,h,g,m,v,w,C,M,b]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,yaw:s,pitch:a,roll:l,...P([p,c,u,d,y,f],[g,m],[v,w,C],[M,b],h)}}),S.set("2",function(e){const[t,r,i,o,n,s,a,l,p,c,u,d,y,f,h,g,m,v,w,C,M,b]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,omega:s,phi:a,kappa:l,...P([p,c,u,d,y,f],[g,m],[v,w,C],[M,b],h)}}),S.set("4",function(e){const[t,r,i,o,n,...s]=e.slice(1),a=S.get(n),l=C.get(n)?.constructor;return a&&l?{latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:o,properties:new l(a([n,"",...s]))}:null});const T=e=>{const t=e.map(e=>parseFloat(e)).filter(e=>!isNaN(e));if(t.length===e.length)return t};function P(e,t,r,i,o){const n=T(e),s=T(t),a=T(r),l=T(i);return{affineTransformations:6===n?.length?n:void 0,focalLength:6===n?.length?parseFloat(o):void 0,principalOffsetPoint:2!==s?.length?[0,0]:s,radialDistortionCoefficients:3!==a?.length?[0,0,0]:a,tangentialDistortionCoefficients:2!==l?.length?[0,0]:l}}function D(e){return Array.isArray(e)&&e?.length>5&&!e.some(isNaN)}function N(e){for(e=e.slice(0,8);e.length<8;)e.push(0);return e}},33143(e,t,r){r.d(t,{A:()=>u});var i=r(5482),o=r(69540),n=r(25482),s=r(91429),a=r(8631),l=r(29005),p=r(36005),c=r(43937);let u=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,a.r)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"domains",void 0),(0,i.Cg)([(0,p.w)("domains")],u.prototype,"readDomains",null),(0,i.Cg)([(0,c.K)("domains")],u.prototype,"writeDomains",null),(0,i.Cg)([(0,s.MZ)({type:[l.A],json:{write:!0}})],u.prototype,"templates",void 0),u=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureType")],u)},91880(e,t,r){r.d(t,{A:()=>p});var i,o=r(5482),n=r(66552),s=r(25482),a=r(91429);const l=new n.J({asc:"ascending",desc:"descending"});let p=class extends s.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,o.Cg)([(0,a.MZ)({type:l.apiValues,json:{type:l.jsonValues,read:l.read,write:l.write}})],p.prototype,"order",void 0),p=i=(0,o.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],p)},73681(e,t,r){r.d(t,{n:()=>l});var i=r(49186),o=r(53966),n=r(46140),s=r(95466),a=r(55674);class l{static async from(e,t,r){const s=e.dictionary_version?n.A.parse(e.dictionary_version):null,c=new Set(e.itemsNames),u={};if(t)for(const e in t)u[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)u.hasOwnProperty(t.name)||(u[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))d.delete(e);d.size&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const y=await(0,a.xR)(e.expression,null,u);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const f=!s||!s.greaterEqual(4,0);f&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const h=new p(r,f);return new l(f,c,y,h)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new s.A(t)}}class p extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},61760(e,t,r){r.d(t,{PU:()=>s,YW:()=>l,ex:()=>o,hv:()=>a,zp:()=>n}),r(34727);var i=r(90629);r(78955),r(91829);const o=2.4;function n(e){return(0,i.PN)(e*o)}function s(e){return(0,i.Lz)(e)/o}function a(e,t,r){const i=Math.sqrt(e**2+t**2)/r;return i>1?0:3/(Math.PI*r**2)*(1-i**2)**2}function l(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}},58501(e,t,r){r.d(t,{q:()=>o});var i=r(62815);function o(e,t,r){if(!r?.features||!r.hasZ)return;const o=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(o)for(const e of r.features)o(e.geometry)}},22671(e,t,r){r.d(t,{A:()=>v});var i,o=r(5482),n=r(52106),s=r(66552),a=r(25482),l=r(4718),p=r(91429),c=r(16930),u=r(60408),d=r(65864),y=r(50498),f=r(20437),h=r(36005),g=r(43937);const m=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);const{features:o}=this;if(o)for(const e of o)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,d.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=c.A.fromJSON(t.spatialReference)),i}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 i(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,o]}=e,n=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((o-e)/r));for(let e=0,t=n.length;e<t;e++)s?.(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:[i,o],scale:[n,s]}=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 p=this._getHydrationFunction(e,e=>e*n+i,e=>o-e*s,a,l);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const i=c.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){const n=e[t],s=r.fromJSON(n),a=n.geometry?.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=i);const l=n.aggregateGeometries,p=s.aggregateGeometries;if(l&&null!=p)for(const e in p){const t=p[e],r=l[e],o=r?.spatialReference;null==t||o||(t.spatialReference=i)}o.push(s)}return o}_quantizePoints(e,t,r){let i,o;const n=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=r(a[1]);e===i&&s===o||(n.push([e-i,s-o]),i=e,o=s)}else i=t(a[0]),o=r(a[1]),n.push([i,o])}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 i=(0,u.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,n=i.length;e<n;e++){const n=i[e],s=this._quantizePoints(n,t,r);s&&o.push(s)}return o.length>0?((0,u.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,u.Bi)(e)?e.rings:e.paths;let s,a;for(let e=0,i=n.length;e<i;e++){const i=n[e];for(let e=0,o=i.length;e<o;e++){const o=i[e];e>0?(s+=o[0],a+=o[1]):(s=o[0],a=o[1]),o[0]=t(s),o[1]=r(a)}}if(i&&o)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]),r[3]=o(r[3])}}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])}}else if(o)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]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let s,a;for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(s+=i[0],a+=i[1]):(s=i[0],a=i[1]),i[0]=t(s),i[1]=r(a)}if(i&&o)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2])}else if(o)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,p.MZ)({type:[n.A],json:{write:!0}})],v.prototype,"features",void 0),(0,o.Cg)([(0,h.w)("features")],v.prototype,"readFeatures",null),(0,o.Cg)([(0,p.MZ)({type:[f.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,o.Cg)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,o.Cg)([(0,g.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,o.Cg)([(0,p.MZ)({types:y.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,h.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,p.MZ)({type:c.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,o.Cg)([(0,g.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,o.Cg)([(0,p.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},55674(e,t,r){r.d(t,{Ad:()=>y,Gj:()=>g,QY:()=>d,lL:()=>m,xR:()=>f});var i=r(66131),o=r(49186),n=(r(44208),r(44729)),s=r(15032),a=r(65864),l=r(95466),p=r(43668),c=r(98623);const u=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const r of u)t.hasArcadeDependency(r)&&e.add(r);return e}function y(e,t){return h.create(e,t,null,["$feature","$view"])}function f(e,t,r){return h.create(e,t,r,["$feature","$view","$config"])}class h{static async create(e,t,r,i){const{arcade:n,Dictionary:s}=await(0,p.l)();let a;try{a=n.parseScript(e)}catch(t){throw new o.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=n.scriptUsesGeometryEngine(a);l&&await n.enableGeometrySupport(),await n.loadDependentModules(new Set,a,null,!1,l);const c={vars:i.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},u=n.compileScript(a,c);let d=null;null!=r&&(d=new s(r),d.immutable=!0);const y=new s;return y.immutable=!1,y.setField("scale",0),new h(e,n,a,u,t,y,d,s)}constructor(e,t,r,i,o,n,s,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=i,this._spatialReference=o,this._viewDict=n,this._configDict=s,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new g,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:o,currentEnd:n}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=o?null!=r?i.lY.epochToArcadeDate(o,r):i.lY.unknownEpochToArcadeDate(o):void 0,currentEnd:null!=n?null!=r?i.lY.epochToArcadeDate(n,r):i.lY.unknownEpochToArcadeDate(n):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class g{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const i=t??new l.A(m(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===c.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return n.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??c.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function m(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7694,9028],{38961(e,t,r){r.d(t,{A:()=>u});var i=r(5482),s=r(7762),o=r(36708),n=r(10107),l=r(64108),a=r(80559);let p=class extends s.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,a.fm)(()=>this._refresh(),o.OH))}destroy(){this.getCollections=null}_refresh(){const e=this.getCollections?.();if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t)}_createNewInstance(e){return new s.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const i of t)if(i){if(r(i)){const t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(i);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i.Cg)([(0,n.MZ)()],p.prototype,"getCollections",void 0),(0,i.Cg)([(0,n.MZ)()],p.prototype,"getChildrenFunction",void 0),(0,i.Cg)([(0,n.MZ)()],p.prototype,"itemFilterFunction",void 0),p=(0,i.Cg)([(0,l.$)("esri.core.CollectionFlattener")],p);const u=p},81583(e,t,r){r.d(t,{L:()=>l,g:()=>n});var i=r(60999),s=r(7762),o=r(92474);async function n(e,t){return await e.load(),l(e,t)}async function l(e,t){const r=[],n=(...e)=>{for(const t of e)null!=t&&(Array.isArray(t)?n(...t):s.A.isCollection(t)?t.forEach(e=>n(e)):(0,o.Zm)(t)&&r.push(t))};t(n);let l=null;if(await(0,i.Tj)(r,async e=>{const t=await(0,i.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1!==t.ok||l||(l=t)}),l)throw l.error;return e}},16494(e,t,r){r.d(t,{Nd:()=>l,W5:()=>n});var i=r(17632);const s=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),o=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],n=new i.I({whiteList:s,onTagAttr:(e,t,r)=>{const i=`${t}="${r}"`;if(o.includes(t))return i},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),l=new i.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1)},62815(e,t,r){r.d(t,{N:()=>l,d:()=>a});var i=r(86211),s=r(73941),o=r(21325),n=r(52006);function l(e,t,r){const i=a(t,r);if(1!==i)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,i);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const r of e.curvePaths)for(const e of r){const r=(0,n.yP)(e);r.length>2&&(r[2]*=t)}if(e.paths)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}}(e,i);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const r of e.curveRings)for(const e of r){const r=(0,n.yP)(e);r.length>2&&(r[2]*=t)}if(e.rings)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}}(e,i);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,i);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,i);default:return}}function a(e,t){return null==e||null==t||(e.vcsWkid??null)!==(t.vcsWkid??null)||(0,o.aI)(e,t)||(0,s.xP)(e)||(0,s.xP)(t)?1:(0,i.G9)(e)/(0,i.G9)(t)}},82411(e,t,r){r.r(t),r.d(t,{default:()=>tt});var i=r(5482),s=r(7762),o=r(38961),n=r(49186),l=r(36563),a=r(4718),p=r(81583),u=r(53966),d=r(25728),y=r(17676),c=r(36708),h=r(84952),g=r(91429),f=r(16930),m=r(4146),v=r(52106),b=r(37838),C=r(11254),w=r(66552),M=r(92474),Z=r(61893),F=r(5443),x=r(55156),T=r(60950),S=r(89808),I=r(99959);const A=Symbol("isBuildingGraphicOrigin");var j;class O extends I.A{get[(j=A,T.ym)](){return this.sublayer}get[x.e](){return this.sublayer}get[S.Q](){return this.sublayer}constructor(e){super(),this[j]=!0,this.type="building",this.sublayer=e}get layer(){return this.sublayer.layer}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var _=r(29784),P=r(69622),L=r(4902),R=r(56507),E=r(10873),N=r(36005);let k=class extends((0,L.s)((0,d.M)(P.A))){constructor(e){super(e),this.title="",this.id=-1,this.modelName=null,this.isEmpty=null,this.legendEnabled=!0,this.visible=!0,this.opacity=1}readTitle(e,t){return"string"==typeof t.alias?t.alias:"string"==typeof t.name?t.name:""}readIdOnlyOnce(e){return-1!==this.id?this.id:"number"==typeof e?e:-1}};(0,i.Cg)([(0,g.MZ)({type:String,json:{origins:{"web-scene":{write:!0},"portal-item":{write:!0}}}})],k.prototype,"title",void 0),(0,i.Cg)([(0,N.w)("service","title",["alias","name"])],k.prototype,"readTitle",null),(0,i.Cg)([(0,g.MZ)()],k.prototype,"layer",void 0),(0,i.Cg)([(0,g.MZ)({type:R.jz,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,isRequired:!0}}})],k.prototype,"id",void 0),(0,i.Cg)([(0,N.w)("service","id")],k.prototype,"readIdOnlyOnce",null),(0,i.Cg)([(0,g.MZ)((0,E.Qo)(String))],k.prototype,"modelName",void 0),(0,i.Cg)([(0,g.MZ)((0,E.Qo)(Boolean))],k.prototype,"isEmpty",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,nonNullable:!0})],k.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],k.prototype,"visible",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],k.prototype,"opacity",void 0),k=(0,i.Cg)([(0,g.$K)("esri.layers.buildingSublayers.BuildingSublayer")],k);var q=r(4071),B=r(15426),$=r(17036),K=r(95466),U=r(30524),G=r(83898),Q=r(50805),D=r(41214),z=r(61956),J=r(54218),V=r(30291),W=r(88625),H=r(5682),Y=r(45671),X=r(93223);const ee=(0,$.p)();let te=class extends((0,M.WV)((0,Z.g)(k))){constructor(e){super(e),this.type="building-component",this.nodePages=null,this.materialDefinitions=[],this.textureSetDefinitions=[],this.geometryDefinitions=[],this.indexInfo=null,this.serviceUpdateTimeStamp=null,this.store=null,this.attributeStorageInfo=[],this.fields=[],this.associatedLayer=null,this.outFields=null,this.listMode="show",this.renderer=null,this.definitionExpression=null,this.popupEnabled=!0,this.popupTemplate=null,this.layerType="3d-object"}initialize(){this._set("graphicOrigin",new O(this))}get parsedUrl(){return this.layer?{path:`${this.layer.parsedUrl?.path}/sublayers/${this.id}`,query:this.layer.parsedUrl?.query}:{path:""}}get fieldsIndex(){return new K.A(this.fields)}readAssociatedLayer(e,t){const r=this.layer.associatedFeatureServiceItem,i=t.associatedLayerID;return null!=r&&"number"==typeof i?new _.default({portalItem:r,customParameters:this.customParameters,layerId:i}):null}get objectIdField(){if(null!=this.fields)for(const e of this.fields)if("oid"===e.type)return e.name;return""}get globalIdField(){if(null!=this.fields)for(const e of this.fields)if("global-id"===e.type)return e.name;return""}get displayField(){return null!=this.associatedLayer?this.associatedLayer.displayField:void 0}get apiKey(){return this.layer.apiKey}get customParameters(){return this.layer.customParameters}get fullExtent(){return this.layer.fullExtent}get spatialReference(){return this.layer.spatialReference}get version(){return this.layer.version}get elevationInfo(){return this.layer.elevationInfo}get minScale(){return this.layer.minScale}get maxScale(){return this.layer.maxScale}get effectiveScaleRange(){return this.layer.effectiveScaleRange}get defaultPopupTemplate(){return this.createPopupTemplate()}load(e){const t=null!=e?e.signal:null,r=this._fetchService(t).then(()=>{this.indexInfo=(0,G.F)(this.parsedUrl.path,this.rootNode,this.nodePages,this.customParameters,this.apiKey,u.A.getLogger(this),t)});return this.addResolvingPromise(r),Promise.resolve(this)}createPopupTemplate(e){return(0,V.tn)(this,e)}async _fetchService(e){const t=(await(0,C.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,{origin:"service",url:this.parsedUrl})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getField(e)?.domain??null;return this.associatedLayer?(0,B.Vq)(this.associatedLayer,e,t,r):r}getFeatureType(e){return e&&null!=this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return null!=this.associatedLayer?this.associatedLayer.types??[]:[]}get typeIdField(){return null!=this.associatedLayer?this.associatedLayer.typeIdField:null}get geometryType(){return"3d-object"===this.layerType?"mesh":"point"}get profile(){return"3d-object"===this.layerType?"mesh-pyramids":"points"}get capabilities(){const e=null!=this.associatedLayer&&this.associatedLayer.capabilities?this.associatedLayer.capabilities:q.P,{query:t,operations:{supportsQuery:r},data:{supportsZ:i,supportsM:s,isVersioned:o}}=e;return{query:t,operations:{supportsQuery:r},data:{supportsZ:i,supportsM:s,isVersioned:o}}}createQuery(){const e=new z.A;return"mesh"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryExtent(e||this.createQuery(),t))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatureCount(e||this.createQuery(),t))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatures(e||this.createQuery(),t)).then(e=>{if(e?.features)for(const t of e.features)t.layer=this.layer,t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}async queryObjectIds(e,t){const r=await this._getAssociatedLayerForQuery();return(await r.queryObjectIds(e||this.createQuery(),t)).filter(J.Et)}async queryCachedAttributes(e,t){const r=(0,U.hL)(this.fieldsIndex,await(0,Y.TO)(this,(0,Y.D8)(this)));return(0,H.s1)(this.parsedUrl.path,this.attributeStorageInfo,e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new n.A("scenelayer:feature-not-in-cached-data","Feature not found in cached data");return new v.A({attributes:r[0],layer:this,sourceLayer:this})}getFieldUsageInfo(e){return this.fieldsIndex.has(e)?{supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1}:{supportsLabelingInfo:!1,supportsRenderer:!0,supportsPopupTemplate:!0,supportsLayerQuery:null!=this.associatedLayer}}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return null!=e&&e.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),null==this.associatedLayer)throw new n.A("buildingscenelayer:query-not-available","BuildingSceneLayer component layer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new n.A("buildingscenelayer:query-not-available","BuildingSceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}};(0,i.Cg)([(0,g.MZ)({readOnly:!0})],te.prototype,"parsedUrl",null),(0,i.Cg)([(0,g.MZ)({type:Q.W4,readOnly:!0})],te.prototype,"nodePages",void 0),(0,i.Cg)([(0,g.MZ)({type:[Q.uV],readOnly:!0})],te.prototype,"materialDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({type:[Q.Ot],readOnly:!0})],te.prototype,"textureSetDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({type:[Q.L0],readOnly:!0})],te.prototype,"geometryDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],te.prototype,"serviceUpdateTimeStamp",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],te.prototype,"store",void 0),(0,i.Cg)([(0,g.MZ)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],te.prototype,"rootNode",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],te.prototype,"attributeStorageInfo",void 0),(0,i.Cg)([(0,g.MZ)(ee.fields)],te.prototype,"fields",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],te.prototype,"fieldsIndex",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:_.default})],te.prototype,"associatedLayer",void 0),(0,i.Cg)([(0,N.w)("service","associatedLayer",["associatedLayerID"])],te.prototype,"readAssociatedLayer",null),(0,i.Cg)([(0,g.MZ)(ee.outFields)],te.prototype,"outFields",void 0),(0,i.Cg)([(0,g.MZ)({type:String,readOnly:!0})],te.prototype,"objectIdField",null),(0,i.Cg)([(0,g.MZ)({type:String,readOnly:!0})],te.prototype,"globalIdField",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:String,json:{read:!1}})],te.prototype,"displayField",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:String})],te.prototype,"apiKey",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:String})],te.prototype,"customParameters",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:F.A})],te.prototype,"fullExtent",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:f.A})],te.prototype,"spatialReference",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],te.prototype,"version",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:W.A})],te.prototype,"elevationInfo",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:Number})],te.prototype,"minScale",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:Number})],te.prototype,"maxScale",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:Number})],te.prototype,"effectiveScaleRange",null),(0,i.Cg)([(0,g.MZ)({type:["hide","show"],json:{write:!0}})],te.prototype,"listMode",void 0),(0,i.Cg)([(0,g.MZ)({types:D.XJ,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],te.prototype,"renderer",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],te.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,g.MZ)(E.M6)],te.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:b.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],te.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],te.prototype,"normalReferenceFrame",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],te.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],te.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,g.MZ)()],te.prototype,"types",null),(0,i.Cg)([(0,g.MZ)()],te.prototype,"typeIdField",null),(0,i.Cg)([(0,g.MZ)({json:{write:!1}}),(0,X.e)(new w.J({"3DObject":"3d-object",Point:"point"}))],te.prototype,"layerType",void 0),(0,i.Cg)([(0,g.MZ)()],te.prototype,"geometryType",null),(0,i.Cg)([(0,g.MZ)()],te.prototype,"profile",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],te.prototype,"capabilities",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],te.prototype,"statisticsInfo",void 0),te=(0,i.Cg)([(0,g.$K)("esri.layers.buildingSublayers.BuildingComponentSublayer")],te);var re=r(67076);function ie(e,t){e.forEach(e=>{t(e),"building-group"===e.type&&ie(e.sublayers,t)})}const se={type:s.A,readOnly:!0,json:{origins:{service:{read:{source:"sublayers",reader:oe}}},read:!1}};function oe(e,t,r){if(e&&Array.isArray(e))return new s.A(e.map(e=>{const t=function(e){return"group"===e.layerType?ne:te}(e);if(t){const i=new t;return i.read(e,r),i}return r?.messages&&e&&r.messages.push(new re.A("building-scene-layer:unsupported-sublayer-type","Building scene sublayer of type '"+(e.type||"unknown")+"' are not supported",{definition:e,context:r})),null}))}let ne=class extends k{constructor(e){super(e),this.type="building-group",this.listMode="show",this.sublayers=null}loadAll(){return(0,p.L)(this,e=>ie(this.sublayers,t=>{"building-group"!==t.type&&e(t)}))}static{this.sublayersProperty=se}static{this.readSublayers=oe}};(0,i.Cg)([(0,g.MZ)({type:["hide","show","hide-children"],json:{write:!0}})],ne.prototype,"listMode",void 0),(0,i.Cg)([(0,g.MZ)(se)],ne.prototype,"sublayers",void 0),ne=(0,i.Cg)([(0,g.$K)("esri.layers.buildingSublayers.BuildingGroupSublayer")],ne);var le=r(52136),ae=r(18768),pe=r(69208),ue=r(16131),de=r(8303),ye=r(25036),ce=r(58947),he=r(92009),ge=r(25482),fe=r(13069);let me=class extends ge.o{constructor(){super(...arguments),this.type=null}};(0,i.Cg)([(0,g.MZ)({type:String,readOnly:!0,json:{write:{isRequired:!0}}})],me.prototype,"type",void 0),me=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFilterAuthoringInfo")],me);const ve=me;var be;let Ce=be=class extends ge.o{constructor(){super(...arguments),this.filterType=null,this.filterValues=null}clone(){return new be({filterType:this.filterType,filterValues:(0,a.o8)(this.filterValues)})}};(0,i.Cg)([(0,g.MZ)({type:String,json:{write:{isRequired:!0}}})],Ce.prototype,"filterType",void 0),(0,i.Cg)([(0,g.MZ)({type:[String],json:{write:{isRequired:!0}}})],Ce.prototype,"filterValues",void 0),Ce=be=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFilterAuthoringInfoType")],Ce);const we=Ce;var Me;const Ze=s.A.ofType(we);let Fe=Me=class extends ge.o{clone(){return new Me({filterTypes:(0,a.o8)(this.filterTypes)})}};(0,i.Cg)([(0,g.MZ)({type:Ze,json:{write:{isRequired:!0}}})],Fe.prototype,"filterTypes",void 0),Fe=Me=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFilterAuthoringInfoBlock")],Fe);const xe=Fe;var Te;const Se=s.A.ofType(xe);let Ie=Te=class extends ve{constructor(){super(...arguments),this.type="checkbox"}clone(){return new Te({filterBlocks:(0,a.o8)(this.filterBlocks)})}};(0,i.Cg)([(0,g.MZ)({type:["checkbox"]})],Ie.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({type:Se,json:{write:{isRequired:!0}}})],Ie.prototype,"filterBlocks",void 0),Ie=Te=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFilterAuthoringInfoCheckbox")],Ie);const Ae=Ie;var je=r(69540);let Oe=class extends((0,je.OU)(ge.o)){};(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],Oe.prototype,"type",void 0),Oe=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFilterMode")],Oe);const _e=Oe;let Pe=class extends _e{constructor(e){super(e),this.type="solid"}};(0,i.Cg)([(0,g.MZ)({type:["solid"],readOnly:!0,json:{write:{isRequired:!0}}})],Pe.prototype,"type",void 0),Pe=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFilterModeSolid")],Pe);const Le=Pe;var Re=r(51734);let Ee=class extends _e{constructor(e){super(e),this.type="wire-frame",this.edges=null}};(0,i.Cg)([(0,X.e)({wireFrame:"wire-frame"})],Ee.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)(Re.J)],Ee.prototype,"edges",void 0),Ee=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFilterModeWireFrame")],Ee);const Ne=Ee;let ke=class extends _e{constructor(e){super(e),this.type="x-ray"}};(0,i.Cg)([(0,g.MZ)({type:["x-ray"],readOnly:!0,json:{write:{isRequired:!0}}})],ke.prototype,"type",void 0),ke=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFilterModeXRay")],ke);const qe=ke;var Be;let $e=Be=class extends ge.o{constructor(e){super(e),this.filterExpression=null,this.filterMode=new Le,this.title=""}clone(){return new Be({filterExpression:this.filterExpression,filterMode:(0,a.o8)(this.filterMode),title:this.title})}};(0,i.Cg)([(0,g.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],$e.prototype,"filterExpression",void 0),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,types:{key:"type",base:_e,typeMap:{solid:Le,"wire-frame":Ne,"x-ray":qe}},json:{read:e=>{switch(e?.type){case"solid":return Le.fromJSON(e);case"wireFrame":return Ne.fromJSON(e);case"x-ray":return qe.fromJSON(e);default:return}},write:{enabled:!0,isRequired:!0}}})],$e.prototype,"filterMode",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],$e.prototype,"title",void 0),$e=Be=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFilterBlock")],$e);const Ke=$e;var Ue;const Ge=s.A.ofType(Ke);let Qe=Ue=class extends ge.o{constructor(e){super(e),this.description=null,this.filterBlocks=null,this.id=(0,fe.lk)(),this.name=null}clone(){return new Ue({description:this.description,filterBlocks:(0,a.o8)(this.filterBlocks),id:this.id,name:this.name,filterAuthoringInfo:(0,a.o8)(this.filterAuthoringInfo)})}};(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],Qe.prototype,"description",void 0),(0,i.Cg)([(0,g.MZ)({type:Ge,json:{write:{enabled:!0,isRequired:!0}}})],Qe.prototype,"filterBlocks",void 0),(0,i.Cg)([(0,g.MZ)({types:{key:"type",base:ve,typeMap:{checkbox:Ae}},json:{read:e=>"checkbox"===e?.type?Ae.fromJSON(e):null,write:!0}})],Qe.prototype,"filterAuthoringInfo",void 0),(0,i.Cg)([(0,g.MZ)({type:String,constructOnly:!0,json:{write:{enabled:!0,isRequired:!0}}})],Qe.prototype,"id",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Qe.prototype,"name",void 0),Qe=Ue=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFilter")],Qe);let De=class extends ge.o{constructor(e){super(e),this.fieldName=null,this.modelName=null,this.label=null,this.min=null,this.max=null,this.mostFrequentValues=null,this.subLayerIds=null}};(0,i.Cg)([(0,g.MZ)({type:String})],De.prototype,"fieldName",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],De.prototype,"modelName",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],De.prototype,"label",void 0),(0,i.Cg)([(0,g.MZ)({type:Number})],De.prototype,"min",void 0),(0,i.Cg)([(0,g.MZ)({type:Number})],De.prototype,"max",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:e=>Array.isArray(e)&&(e.every(e=>"string"==typeof e)||e.every(e=>"number"==typeof e))?e.slice():null}})],De.prototype,"mostFrequentValues",void 0),(0,i.Cg)([(0,g.MZ)({type:[Number]})],De.prototype,"subLayerIds",void 0),De=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFieldStatistics")],De);const ze=De;let Je=class extends((0,M.WV)((0,Z.g)(ge.o))){constructor(e){super(e),this.url=null,this.customParameters=null}get fields(){return this.loaded||"loading"===this.loadStatus?this._get("fields"):(u.A.getLogger(this).error("building summary statistics are not loaded"),null)}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._fetchService(t)),Promise.resolve(this)}async _fetchService(e){const t=(await(0,C.A)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,{origin:"service"})}};(0,i.Cg)([(0,g.MZ)({constructOnly:!0,type:String})],Je.prototype,"url",void 0),(0,i.Cg)([(0,g.MZ)({constructOnly:!0})],Je.prototype,"customParameters",void 0),(0,i.Cg)([(0,g.MZ)({constructOnly:!0})],Je.prototype,"apiKey",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:[ze],json:{read:{source:"summary"}}})],Je.prototype,"fields",null),Je=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingSummaryStatistics")],Je);var Ve=r(24212);const We=s.A.ofType(Qe),He=(0,a.o8)(ne.sublayersProperty),Ye=He.json?.origins;Ye&&(Ye["web-scene"]={type:[te],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}},Ye["portal-item"]={type:[te],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}});let Xe=class extends((0,ce.w6)((0,ae.b)((0,ue.q)((0,de.A)((0,ye.j)((0,d.M)((0,pe.d)((0,le.p)(m.A))))))))){constructor(e){super(e),this.operationalLayerType="BuildingSceneLayer",this.allSublayers=new o.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>"building-group"===e.type?e.sublayers:null}),this.sublayers=null,this._allSublayerOverrides=null,this.filters=new We,this.activeFilterId=null,this.summaryStatistics=null,this.outFields=null,this.legendEnabled=!0,this.type="building-scene"}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e??{}}destroy(){this.allSublayers.destroy()}readSublayers(e,t,r){const i=ne.readSublayers(e,t,r);return ie(i,e=>e.layer=this),this._allSublayerOverrides&&(function(e,t){t.forEach(t=>et(e,t))}(i,this._allSublayerOverrides),this._allSublayerOverrides=null),i}write(e,t){return e=super.write(e,t),!t||"web-scene"!==t.origin&&"portal-item"!==t.origin||(this.sublayers?function(e,t,r){const i=[];ie(e,e=>{const t=e.write({},r);Object.keys(t).length>1&&i.push(t)}),i.length>0&&(t.sublayers=i)}(this.sublayers,e,t):this._allSublayerOverrides&&function(e,t,r){const i=r?.origin&&e.get(r.origin);i&&(t.sublayers=[],i.overrides.forEach(e=>{t.sublayers.push((0,a.o8)(e))}))}(this._allSublayerOverrides,e,t)),e}read(e,t){if(super.read(e,t),("web-scene"===t?.origin||"portal-item"===t?.origin)&&Array.isArray(e?.sublayers)){const r=function(e,t){const r=new Map;for(const i of e)null!=i&&"object"==typeof i&&"number"==typeof i.id?r.set(i.id,i):t.messages?.push(new n.A("building-scene-layer:invalid-sublayer-override","Invalid value for sublayer override. Not an object or no id specified.",{value:i}));return{overrides:r,context:t}}(e.sublayers,t);this.sublayers?et(this.sublayers,r):(this._allSublayerOverrides??=new Map,this._allSublayerOverrides.set(t.origin,r))}}readSummaryStatistics(e,t){if("string"==typeof t.statisticsHRef&&this.parsedUrl){const e=(0,h.fj)(this.parsedUrl.path,t.statisticsHRef);return new Je({url:e,apiKey:this.apiKey,customParameters:this.customParameters})}return null}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(y.QP).then(()=>this._fetchService(t)).then(()=>this._fetchAssociatedFeatureService(t));return this.addResolvingPromise(r),Promise.resolve(this)}loadAll(){return(0,p.g)(this,e=>{ie(this.sublayers,t=>{"building-group"!==t.type&&e(t)}),this.summaryStatistics&&e(this.summaryStatistics)})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"};return this._debouncedSaveOperations(0,e)}validateLayer(e){if(!e.layerType||"Building"!==e.layerType)throw new n.A("buildingscenelayer:layer-type-not-supported","BuildingSceneLayer does not support this layer type",{layerType:e.layerType})}_getTypeKeywords(){return["Building"]}async _fetchAssociatedFeatureService(e){try{const{portalItem:t}=await(0,he.L)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e});this.associatedFeatureServiceItem=t}catch(e){(0,y.QZ)(this._logWarningOnPopupEnabled())}}async _logWarningOnPopupEnabled(){const e=new AbortController;this.addHandles((0,l.rE)(e)),await(0,c.C_)(()=>this.allSublayers.filter(e=>"building-component"===e.type).some(e=>e.popupEnabled&&null!=e.popupTemplate),e.signal);const t=this.allSublayers.filter(e=>"building-component"===e.type).filter(e=>e.popupEnabled&&null!=e.popupTemplate),r=[],i=[];for(const e of t){const t=e.title??`untitled ${e.id}`;e.attributeStorageInfo?r.push(t):i.push(t)}const s="\n ",o=r.length>0?`\nThe following sublayers will fall back to binary attributes for Popups:${s}${r.join(s)}`:"",n=i.length>0?`\nThe following sublayers have no binary attributes and will not work with Popups:${s}${i.join(s)}`:"";u.A.getLogger(this).warn(`Associated FeatureLayer could not be loaded for this BuildingSceneLayer: ${this.title}.`,o,n)}_validateElevationInfo(e){const t="Building scene layers";(0,Ve.XF)(u.A.getLogger(this),(0,Ve.B)(t,"absolute-height",e)),(0,Ve.XF)(u.A.getLogger(this),(0,Ve.tW)(t,e))}};function et(e,t){const{overrides:r,context:i}=t;ie(e,e=>e.read(r.get(e.id),i))}(0,i.Cg)([(0,g.MZ)({type:["BuildingSceneLayer"]})],Xe.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Xe.prototype,"allSublayers",void 0),(0,i.Cg)([(0,g.MZ)(He)],Xe.prototype,"sublayers",void 0),(0,i.Cg)([(0,N.w)("service","sublayers")],Xe.prototype,"readSublayers",null),(0,i.Cg)([(0,g.MZ)({type:We,nonNullable:!0,json:{write:!0}})],Xe.prototype,"filters",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],Xe.prototype,"activeFilterId",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:Je})],Xe.prototype,"summaryStatistics",void 0),(0,i.Cg)([(0,N.w)("summaryStatistics",["statisticsHRef"])],Xe.prototype,"readSummaryStatistics",null),(0,i.Cg)([(0,g.MZ)({type:[String],json:{read:!1}})],Xe.prototype,"outFields",void 0),(0,i.Cg)([(0,g.MZ)(E.Fm)],Xe.prototype,"fullExtent",void 0),(0,i.Cg)([(0,g.MZ)(E.fV)],Xe.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:["show","hide","hide-children"]})],Xe.prototype,"listMode",void 0),(0,i.Cg)([(0,g.MZ)((0,E.Qo)(f.A))],Xe.prototype,"spatialReference",void 0),(0,i.Cg)([(0,g.MZ)(E.Yj)],Xe.prototype,"elevationInfo",null),(0,i.Cg)([(0,g.MZ)({json:{read:!1},readOnly:!0})],Xe.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)()],Xe.prototype,"associatedFeatureServiceItem",void 0),Xe=(0,i.Cg)([(0,g.$K)("esri.layers.BuildingSceneLayer")],Xe);const tt=Xe},32756(e,t,r){r.d(t,{Rr:()=>l,fY:()=>p,ne:()=>a});var i=r(5482),s=r(93637),o=r(91429),n=r(91880);function l(e,t,r){if(!e)return null;const i=e.find(e=>!!e.field);if(!i)return null;const s=new n.A;return s.read(i,r),[s]}const a={type:[n.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,i){const o=e.find(e=>!!e.field);o&&(0,s.sM)(r,[o.toJSON()],t)}}}},p=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,o.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r}},28032(e,t,r){r.d(t,{A:()=>a});var i=r(5482),s=r(69540),o=r(25482),n=r(91429),l=r(56400);let a=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,n.MZ)()],a.prototype,"creatorField",void 0),(0,i.Cg)([(0,n.MZ)()],a.prototype,"creationDateField",void 0),(0,i.Cg)([(0,n.MZ)()],a.prototype,"editorField",void 0),(0,i.Cg)([(0,n.MZ)()],a.prototype,"editDateField",void 0),(0,i.Cg)([(0,n.MZ)()],a.prototype,"realm",void 0),(0,i.Cg)([(0,n.MZ)((0,l.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,i.Cg)([(0,n.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,r){r.d(t,{A:()=>p});var i=r(5482),s=r(69540),o=r(66552),n=r(25482),l=r(91429);const a=new o.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends((0,s.OU)(n.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"drawingTool",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,i.Cg)([(0,l.$K)("esri.layers.support.FeatureTemplate")],p)},33143(e,t,r){r.d(t,{A:()=>d});var i=r(5482),s=r(69540),o=r(25482),n=r(91429),l=r(8631),a=r(29005),p=r(36005),u=r(43937);let d=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,l.r)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i.Cg)([(0,p.w)("domains")],d.prototype,"readDomains",null),(0,i.Cg)([(0,u.K)("domains")],d.prototype,"writeDomains",null),(0,i.Cg)([(0,n.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i.Cg)([(0,n.$K)("esri.layers.support.FeatureType")],d)},91880(e,t,r){r.d(t,{A:()=>p});var i,s=r(5482),o=r(66552),n=r(25482),l=r(91429);const a=new o.J({asc:"ascending",desc:"descending"});let p=class extends n.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,s.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,s.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,s.Cg)([(0,l.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],p.prototype,"order",void 0),p=i=(0,s.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],p)},45067(e,t,r){r.d(t,{A:()=>u});var i=r(5482),s=r(69540),o=r(66552),n=r(25482),l=r(91429);const a=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),p=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let u=class extends((0,s.OU)(n.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"cardinality",void 0),(0,i.Cg)([(0,l.MZ)({json:{name:"catalogID"}})],u.prototype,"catalogId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"composite",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyField",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:p.read,write:p.write}})],u.prototype,"role",void 0),u=(0,i.Cg)([(0,l.$K)("esri.layers.support.Relationship")],u)},17311(e,t,r){r.d(t,{A:()=>c});var i=r(5482),s=r(69622),o=r(4576),n=r(60999),l=r(7762),a=r(16494),p=r(91429),u=r(30524),d=r(43668);const y=/<br\s*\/*>/gi;let c=class extends s.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,n.UT)(()=>(0,d.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??Promise.all([r.e(4560),r.e(9926)]).then(r.bind(r,29926)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new l.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const r=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(r.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:r,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(r,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const r=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of r){const r=t.split("."),i=this.fieldsIndex.get(r.at(-1)??"");i&&e.add(i.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const r of t){const t=this.fieldsIndex.get(r);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,r){const i=t.getObjectId()??t.attributes[e.objectIdField];return(await this.getTitles(e,[t],r)).get(i)??""}async getTitles(e,t,r){const i=new Map,s=r?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:o}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);r?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:n,workingTitle:l}=this,p=l&&n;t.forEach(t=>{const u=t.getObjectId()??t.attributes[e.objectIdField];let d=p?o({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:n,globalAttributes:this._createFormattedAttributes(e,t,s).global,layer:e,text:l}):"";r?.removeHTML&&(d=a.Nd.sanitize(d).replaceAll(y," ")),i.set(u,d)})}catch{}return i}async _checkAndReQueryGraphics(e,t){const r=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(o.Ru);if(r.length!==t.length)return t;if(t.some(e=>!(0,u.Kl)(e,this.requiredFields))){const i=e.createQuery();i.where="1=1",i.outFields=[...this.requiredFields],i.objectIds=r;const s=await e.queryFeatures(i);if(s?.features.length===t.length)return s.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const r of e){if(!r.fieldName)continue;const e=this.fieldsIndex.get(r.fieldName),i=e?.name??r.fieldName;r.fieldName=i,t.set(i.toLowerCase(),r)}return t}_createFormattedAttributes(e,t,r="system"){const i=this.effectivePopupTemplate?.fieldInfos??[],s={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const r=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{s[`expression/${e.name}`]=e.func({vars:{$feature:r}})}catch{}}const o={...t.attributes,...s};return{global:this._featureUtils.formatAttributes({fieldInfos:i,attributes:o,graphic:t,timeZone:r,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,u.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,i.Cg)([(0,p.MZ)({readOnly:!0})],c.prototype,"_arcadeTask",null),(0,i.Cg)([(0,p.MZ)()],c.prototype,"_featureUtils",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],c.prototype,"featureUtilsPromise",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],c.prototype,"calculatedExpressions",null),(0,i.Cg)([(0,p.MZ)()],c.prototype,"displayField",void 0),(0,i.Cg)([(0,p.MZ)()],c.prototype,"effectivePopupTemplate",void 0),(0,i.Cg)([(0,p.MZ)()],c.prototype,"expressionsUsedInTitle",null),(0,i.Cg)([(0,p.MZ)()],c.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,p.MZ)()],c.prototype,"fieldInfoMap",null),(0,i.Cg)([(0,p.MZ)()],c.prototype,"fields",void 0),(0,i.Cg)([(0,p.MZ)()],c.prototype,"objectIdField",void 0),(0,i.Cg)([(0,p.MZ)()],c.prototype,"requiredFields",null),c=(0,i.Cg)([(0,p.$K)("esri.layers.support.TitleCreator")],c)},41560(e,t,r){r.d(t,{Ch:()=>n,mW:()=>o});var i=r(34727),s=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function n(e,t,r){const o=function(e){if("manual"===p(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],u(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(o&&((0,i.gg)(t,o[0])||(0,i.ZH)(r,o[1])))return"";const n=Array.from(l(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;const s=u(e.at(0)?.minScale),o=d(e.at(-1)?.maxScale);if((0,i.ZH)(s,t)||(0,i.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){const r=e[t],s=e[t+1];if((0,i.ZH)(u(s.minScale),d(r.maxScale)))return!0}return!1}(n,t,r)?"1=1":n.map(e=>e.where||"1=1").reduce((e,t)=>(0,s.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,r){if("manual"===p(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,s){return e=u(e),r=u(r),t=d(t),!(!(0,i.Sp)(r,e)&&(s??r)>e||(0,i.Hx)(t,r)||void 0!==s&&(0,i.Sp)(s,e))}function p(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||Number.POSITIVE_INFINITY}function d(e){return e||0}},58501(e,t,r){r.d(t,{q:()=>s});var i=r(62815);function s(e,t,r){if(!r?.features||!r.hasZ)return;const s=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(s)for(const e of r.features)s(e.geometry)}},22671(e,t,r){r.d(t,{A:()=>v});var i,s=r(5482),o=r(52106),n=r(66552),l=r(25482),a=r(4718),p=r(91429),u=r(16930),d=r(60408),y=r(65864),c=r(50498),h=r(20437),g=r(36005),f=r(43937);const m=new n.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,o.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);const{features:s}=this;if(s)for(const e of s)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,y.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=u.A.fromJSON(t.spatialReference)),i}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 i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,s]}=e,o=this.features,n=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((s-e)/r));for(let e=0,t=o.length;e<t;e++)n?.(o[e].geometry)||(o.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:[i,s],scale:[o,n]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const p=this._getHydrationFunction(e,e=>e*o+i,e=>s-e*n,l,a);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const i=u.A.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){const o=e[t],n=r.fromJSON(o),l=o.geometry?.spatialReference;null==n.geometry||l||(n.geometry.spatialReference=i);const a=o.aggregateGeometries,p=n.aggregateGeometries;if(a&&null!=p)for(const e in p){const t=p[e],r=a[e],s=r?.spatialReference;null==t||s||(t.spatialReference=i)}s.push(n)}return s}_quantizePoints(e,t,r){let i,s;const o=[];for(let n=0,l=e.length;n<l;n++){const l=e[n];if(n>0){const e=t(l[0]),n=r(l[1]);e===i&&n===s||(o.push([e-i,n-s]),i=e,s=n)}else i=t(l[0]),s=r(l[1]),o.push([i,s])}return o.length>0?o: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 i=(0,d.Bi)(e)?e.rings:e.paths,s=[];for(let e=0,o=i.length;e<o;e++){const o=i[e],n=this._quantizePoints(o,t,r);n&&s.push(n)}return s.length>0?((0,d.Bi)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,s){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,d.Bi)(e)?e.rings:e.paths;let n,l;for(let e=0,i=o.length;e<i;e++){const i=o[e];for(let e=0,s=i.length;e<s;e++){const s=i[e];e>0?(n+=s[0],l+=s[1]):(n=s[0],l=s[1]),s[0]=t(n),s[1]=r(l)}}if(i&&s)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=s(r[3])}}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(s)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(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),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let n,l;for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(n+=i[0],l+=i[1]):(n=i[0],l=i[1]),i[0]=t(n),i[1]=r(l)}if(i&&s)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2]),t[3]=s(t[3])}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2])}else if(s)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=s(t[2])}}:null}};(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,s.Cg)([(0,p.MZ)({type:[o.A],json:{write:!0}})],v.prototype,"features",void 0),(0,s.Cg)([(0,g.w)("features")],v.prototype,"readFeatures",null),(0,s.Cg)([(0,p.MZ)({type:[h.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,s.Cg)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,s.Cg)([(0,f.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,s.Cg)([(0,p.MZ)({types:c.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,s.Cg)([(0,g.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,s.Cg)([(0,p.MZ)({type:u.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,s.Cg)([(0,f.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,s.Cg)([(0,p.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7694,7820,8782,8801],{52106(e,t,r){r.d(t,{A:()=>I});var n,i,o=r(5482),s=r(37838),l=r(69540),a=r(51447),u=r(25482),c=r(53966),p=r(36708),d=r(24326),f=r(91429),h=r(12195),y=r(65864),g=r(50498),m=r(55156),b=r(60950),w=r(54339),v=r(94128),M=r(33910);function C(e){if(null==e)return null;const t={};for(const r in e){const n=e[r];n&&(t[r]=n.toJSON())}return 0!==Object.keys(t).length?t:null}let I=class extends((0,l.OU)(u.o)){static{n=v.Z}static{i=this}constructor(e){super(e),this[n]=!0,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,d.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,m.I)(this.origin);if(e)return(0,w.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,w.r)(this,t):null}getGlobalId(){const e=(0,m.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:C(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,n){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(i.action=n),"attributes"===e&&(i.attributeName=n),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,o.Cg)([(0,f.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const n=(0,y.rS)(e[r]);n&&(t[r]=n)}return 0!==Object.keys(t).length?t:null}}})],I.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,f.MZ)({value:null})],I.prototype,"attributes",null),(0,o.Cg)([(0,f.MZ)({value:null,types:g.yR,json:{read:y.rS}})],I.prototype,"geometry",null),(0,o.Cg)([(0,f.MZ)({type:Boolean})],I.prototype,"isAggregate",void 0),(0,o.Cg)([(0,f.MZ)({clonable:!1})],I.prototype,"layer",void 0),(0,o.Cg)([(0,f.MZ)({clonable:"reference"})],I.prototype,"origin",void 0),(0,o.Cg)([(0,f.MZ)({type:s.A,value:null})],I.prototype,"popupTemplate",null),(0,o.Cg)([(0,f.MZ)({clonable:"reference"})],I.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,f.MZ)({value:null,types:M.Es})],I.prototype,"symbol",null),(0,o.Cg)([(0,f.MZ)({clonable:!1,json:{read:!1,write:!1}})],I.prototype,"_version",void 0),(0,o.Cg)([(0,f.MZ)({type:Boolean,value:!0})],I.prototype,"visible",null),I=i=(0,o.Cg)([(0,f.$K)("esri.Graphic")],I)},6797(e,t,r){r.d(t,{Ui:()=>d});var n=r(69622),i=r(7762),o=r(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof n.A}function a(e){return e instanceof i.A?Object.keys(e.items):l(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof i.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const n=a(e),i=a(t);if(0===n.length&&0===i.length)return;if(!n.length||!i.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const o=i.filter(e=>!n.includes(e)),d=n.filter(e=>!i.includes(e)),f=n.filter(r=>i.includes(r)&&u(e,r)!==u(t,r)).concat(o,d).sort(),h=c(e);if(h&&s.has(h)&&f.length)return{type:"complete",oldValue:e,newValue:t};let y;const g=l(e)&&l(t);for(const n of f){const i=u(e,n),o=u(t,n);let s;if((g||"function"!=typeof i&&"function"!=typeof o)&&i!==o&&(null!=i||null!=o)){if(r&&r[n]&&"function"==typeof r[n])s=r[n]?.(i,o);else if(i instanceof Date&&o instanceof Date){if(i.getTime()===o.getTime())continue;s={type:"complete",oldValue:i,newValue:o}}else s="object"==typeof i&&"object"==typeof o&&c(i)===c(o)?p(i,o):{type:"complete",oldValue:i,newValue:o};null!=s&&(null!=y?y.diff[n]=s:y={type:"partial",diff:{[n]:s}})}}return y}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},85334(e,t,r){r.d(t,{$:()=>m,IB:()=>s,Iy:()=>M,N2:()=>b,RH:()=>v,ZD:()=>w});var n=r(68197),i=r(4576),o=r(4718);function s(e){return"r"in e&&"g"in e&&"b"in e}function l(e){return"h"in e&&"s"in e&&"v"in e}function a(e){return"l"in e&&"a"in e&&"b"in e}function u(e){return"l"in e&&"c"in e&&"h"in e}r(34727),r(78955),r(91829);const c=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],p=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function d(e,t){const r=[];let n,i;if(e[0].length!==t.length)throw new Error("dimensions do not match");const o=e.length,s=e[0].length;let l=0;for(n=0;n<o;n++){for(l=0,i=0;i<s;i++)l+=e[n][i]*t[i];r.push(l)}return r}function f(e){const t=[e.r/255,e.g/255,e.b/255].map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4),r=d(c,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function h(e){const t=d(p,[e.x/100,e.y/100,e.z/100]).map(e=>{const t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))});return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function y(e){const t=[e.x/95.047,e.y/100,e.z/108.883].map(e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29);return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function g(e){const t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map(e=>e>6/29?e**3:3*(6/29)**2*(e-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function m(e){return s(e)?e:u(e)?function(e){return h(g(function(e){const t=e.l,r=e.c,n=e.h;return{l:t,a:r*Math.cos(n),b:r*Math.sin(n)}}(e)))}(e):a(e)?function(e){return h(g(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?h(e):l(e)?function(e){const t=(e.h+360)%360/60,r=e.s/100,n=e.v/100*255,i=n*r,o=i*(1-Math.abs(t%2-1));let s;switch(Math.floor(t)){case 0:s={r:i,g:o,b:0};break;case 1:s={r:o,g:i,b:0};break;case 2:s={r:0,g:i,b:o};break;case 3:s={r:0,g:o,b:i};break;case 4:s={r:o,g:0,b:i};break;case 5:case 6:s={r:i,g:0,b:o};break;default:s={r:0,g:0,b:0}}return s.r=Math.round(s.r+n-i),s.g=Math.round(s.g+n-i),s.b=Math.round(s.b+n-i),s}(e):e}function b(e){return l(e)?e:function(e){const t=e.r,r=e.g,n=e.b,i=Math.max(t,r,n),o=i-Math.min(t,r,n);let s=i,l=0===o?0:i===t?(r-n)/o%6:i===r?(n-t)/o+2:(t-r)/o+4,a=0===o?0:o/s;return l<0&&(l+=6),l*=60,a*=100,s*=100/255,{h:l,s:a,v:s}}(m(e))}function w(e){return a(e)?e:function(e){return y(f(e))}(m(e))}function v(e){return u(e)?e:function(e){return function(e){const t=e.l,r=e.a,n=e.b,i=Math.sqrt(r*r+n*n);let o=Math.atan2(n,r);return o=o>0?o:o+2*Math.PI,{l:t,c:i,h:o}}(y(f(e)))}(m(e))}function M(e,t,r={}){if(0===e.length||t<=0)return[];if(1===(e=e.map(e=>"string"==typeof e?new n.A(e):e)).length||1===t){const r=[],n=e[0];for(let e=0;e<t;e++)r.push(n.clone());return r}if(r.shuffle&&(e=(0,i.k4)((0,o.o8)(e),r.seed)),e.length>=t){const r=[],n=(e.length-1)/(t-1);for(let i=0;i<t;i++){const t=Math.round(i*n);r.push(e[t].clone())}return r}return function(e,t,r={}){const n=[],o=e.length-1,s=Math.ceil((t-e.length)/o);e:for(let i=0;i<o;i++){const o=e[i],l=e[i+1];for(let i=1;i<=s;i++){const a=i/(s+1);if(n.push(I(o,l,a,r)),n.length+e.length===t)break e}}return[...e.map(e=>e.clone()),...(0,i.k4)(n,r.seed??1)]}(e,t,r)}const C=(e,t)=>{const r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,e+r))};function I(e,t,r,o={}){const s=e.r,l=e.g,a=e.b,u=t.r,c=t.g,p=t.b,d=Math.round(s+(u-s)*r),f=Math.round(l+(c-l)*r),h=Math.round(a+(p-a)*r);if(!o.offset)return new n.A([d,f,h]);const y=(0,i.Mo)(o.seed);return new n.A([C(d,y),C(f,y),C(h,y)])}},9093(e,t,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>i,vt:()=>n,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:n,fromValues:function(e,t,r,n,i,o,s,l,a,u,c,p,d,f,h,y){return[e,t,r,n,i,o,s,l,a,u,c,p,d,f,h,y]}},Symbol.toStringTag,{value:"Module"}))},81583(e,t,r){r.d(t,{L:()=>l,g:()=>s});var n=r(60999),i=r(7762),o=r(92474);async function s(e,t){return await e.load(),l(e,t)}async function l(e,t){const r=[],s=(...e)=>{for(const t of e)null!=t&&(Array.isArray(t)?s(...t):i.A.isCollection(t)?t.forEach(e=>s(e)):(0,o.Zm)(t)&&r.push(t))};t(s);let l=null;if(await(0,n.Tj)(r,async e=>{const t=await(0,n.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1!==t.ok||l||(l=t)}),l)throw l.error;return e}},16494(e,t,r){r.d(t,{Nd:()=>l,W5:()=>s});var n=r(17632);const i=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),o=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],s=new n.I({whiteList:i,onTagAttr:(e,t,r)=>{const n=`${t}="${r}"`;if(o.includes(t))return n},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),l=new n.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1)},13069(e,t,r){r.d(t,{AG:()=>l,lk:()=>i,vD:()=>s,yS:()=>o});const n="randomUUID"in crypto;function i(){if(n)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 o(){return`{${i().toUpperCase()}}`}function s(){return`{${i()}}`}function l(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},159(e,t,r){r.d(t,{A:()=>u});var n,i=r(5482),o=r(69540),s=r(25482),l=r(91429),a=r(99157);let u=n=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new n;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,i.Cg)([(0,l.MZ)({type:[a.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=n=(0,i.Cg)([(0,l.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,r){r.d(t,{A:()=>a});var n,i=r(5482),o=r(69540),s=r(25482),l=r(91429);let a=n=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new n({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,l.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,r)=>{t[r]=!e}}})],a.prototype,"isInverse",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],a.prototype,"wkt",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],a.prototype,"wkid",void 0),a=n=(0,i.Cg)([(0,l.$K)("esri.geometry.operators.support.GeographicTransformationStep")],a)},9762(e,t,r){r.r(t),r.d(t,{projectBuffer:()=>i});var n=r(49208);function i(e,t,r,i,o,s,l=Math.floor(e.length/3)){const a=(0,n.jd)(t,o);if(null==a)return!1;if(a===n.pO){if(e===i&&r===s)return!0;const t=r+3*l;for(let n=r,o=s;n<t;n++,o++)i[o]=e[n]??0;return!0}const u=r+3*l;for(let t=r,n=s;t<u;t+=3,n+=3)a(e,t,i,n);return!0}},49208(e,t,r){r.d(t,{Tp:()=>p,jd:()=>c,pO:()=>f,w5:()=>u});var n=r(34727),i=r(86211),o=r(73941),s=r(79258),l=r(34403),a=r(21325);const u={2:{5:f,7:null,9:null,10:f,1:M,6:null,8:null,0:null,3:y,11:g,2:f,4:A},5:{5:f,7:null,9:null,10:f,1:M,6:null,8:null,0:null,3:y,11:g,2:f,4:A},7:{5:null,7:f,9:null,10:f,1:null,6:v,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:f,10:f,1:null,6:null,8:w,0:null,3:null,11:null,2:null,4:null},3:{5:h,7:null,9:null,10:h,1:function(e,t,r,n){const i=e[t]/Z,o=k-2*Math.atan(Math.exp(-e[t+1]/Z)),s=Z+(e[t+2]??0),l=Math.cos(o)*s;r[n]=Math.cos(i)*l,r[n+1]=Math.sin(i)*l,r[n+2]=Math.sin(o)*s},6:null,8:null,0:null,3:f,11:function(e,t,r,n){h(e,t,r,n),g(r,n,r,n)},2:h,4:function(e,t,r,n){h(e,t,r,n),A(r,n,r,n)}},4:{5:x,7:null,9:null,10:x,1:function(e,t,r,n){x(e,t,r,n),M(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){x(e,t,r,n),y(r,n,r,n)},11:function(e,t,r,n){x(e,t,r,n),g(r,n,r,n)},2:x,4:f},1:{5:F,7:null,9:null,10:F,1:f,6:null,8:null,0:null,3:function(e,t,r,n){F(e,t,r,n),y(r,n,r,n)},11:function(e,t,r,n){F(e,t,r,n),g(r,n,r,n)},2:F,4:function(e,t,r,n){F(e,t,r,n),A(r,n,r,n)}},6:{5:null,7:T,9:null,10:T,1:null,6:f,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:I,10:I,1:null,6:null,8:f,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:f,3:null,11:null,2:null,4:null},10:{5:f,7:f,9:f,10:f,1:M,6:v,8:w,0:null,3:y,11:g,2:f,4:A},11:{5:m,7:null,9:null,10:m,1:function(e,t,r,n){m(e,t,r,n),M(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){m(e,t,r,n),y(r,n,r,n)},11:f,2:m,4:function(e,t,r,n){m(e,t,r,n),A(r,n,r,n)}}};function c(e,t){return p(e,t)?.projector}function p(e,t){if(null==e||null==t)return null;if(S.source.spatialReference===e&&S.dest.spatialReference===t)return S;const r=d(e,S.source),n=d(t,S.dest);return 0===r&&0===n?(0,a.aI)(e,t)?S.projector=f:S.projector=null:S.projector=u[r][n],S}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.GA)(e,1)),(0,o.jA)(e)?t.spatialReferenceId=1:(0,a.oT)(e)?t.spatialReferenceId=2:(0,a.K8)(e)?t.spatialReferenceId=3:(0,a.r1)(e)?t.spatialReferenceId=11:e.wkt===o.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===o.FY.wkt?t.spatialReferenceId=6:e.wkt===o.LJ.wkt?t.spatialReferenceId=8:(0,o.q8)(e)?t.spatialReferenceId=7:(0,o.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function f(e,t,r,n){e!==r&&(r[n++]=e[t++],r[n++]=e[t++],r[n]=e[t]??0)}function h(e,t,r,n){r[n]=O*(e[t]/Z),r[n+1]=O*(k-2*Math.atan(Math.exp(-e[t+1]/Z))),r[n+2]=e[t+2]??0}function y(e,t,r,i){!function(e,t,r,i,o){const s=.4999999*Math.PI,l=(0,n.qE)(j*e[t+1],-s,s),a=Math.sin(l);r[i++]=j*e[t]*o.radius,r[i++]=o.halfSemiMajorAxis*Math.log((1+a)/(1-a)),r[i]=e[t+2]??0}(e,t,r,i,s.$O)}function g(e,t,r,n){r[n]=e[t]*_,r[n+1]=e[t+1]*_,r[n+2]=e[t+2]??0}function m(e,t,r,n){r[n]=e[t]*R,r[n+1]=e[t+1]*R,r[n+2]=e[t+2]??0}function b(e,t,r,n,i){const o=i+(e[t+2]??0),s=j*e[t],l=j*e[t+1],a=Math.cos(l)*o;r[n]=Math.cos(s)*a,r[n+1]=Math.sin(s)*a,r[n+2]=Math.sin(l)*o}function w(e,t,r,n){b(e,t,r,n,s.Sw.radius)}function v(e,t,r,n){b(e,t,r,n,s.sH.radius)}function M(e,t,r,n){b(e,t,r,n,s.$O.radius)}function C(e,t,r,i,o){const s=e[t],l=e[t+1],a=e[t+2]??0,u=Math.sqrt(s*s+l*l+a*a),c=(0,n.YN)(a/(0===u?1:u)),p=Math.atan2(l,s);r[i++]=O*p,r[i++]=O*c,r[i]=u-o}function I(e,t,r,n){C(e,t,r,n,s.Sw.radius)}function T(e,t,r,n){C(e,t,r,n,s.sH.radius)}function F(e,t,r,n){C(e,t,r,n,s.$O.radius)}function A(e,t,r,n){!function(e,t,r,n,i){const o=j*e[t],s=j*e[t+1],l=e[t+2]??0,a=Math.sin(s),u=Math.cos(s),c=i.radius/Math.sqrt(1-i.eccentricitySquared*a*a);r[n++]=(c+l)*u*Math.cos(o),r[n++]=(c+l)*u*Math.sin(o),r[n++]=(c*(1-i.eccentricitySquared)+l)*a}(e,t,r,n,s.$O)}function x(e,t,r,n){const i=l.TP,o=e[t],a=e[t+1],u=e[t+2]??0;let c,p,d,f,h,y,g,m,b,w,v,M,C,I,T,F,A,x,S,j,k;c=Math.abs(u),p=o*o+a*a,d=Math.sqrt(p),f=p+u*u,h=Math.sqrt(f),j=Math.atan2(a,o),y=u*u/f,g=p/f,I=i.a2/h,T=i.a3-i.a4/h,g>.3?(m=c/h*(1+g*(i.a1+I+y*T)/h),S=Math.asin(m),w=m*m,b=Math.sqrt(1-w)):(b=d/h*(1-y*(i.a5-I-g*T)/h),S=Math.acos(b),w=1-b*b,m=Math.sqrt(w)),v=1-s.$O.eccentricitySquared*w,M=s.$O.radius/Math.sqrt(v),C=i.a6*M,I=d-M*b,T=c-C*m,A=b*I+m*T,F=b*T-m*I,x=F/(C/v+A),S+=x,k=A+F*x/2,u<0&&(S=-S),r[n++]=O*j,r[n++]=O*S,r[n]=k}const S={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:f},j=(0,n.kU)(1),O=(0,n.KJ)(1),k=.5*Math.PI,Z=s.$O.radius,_=Z*Math.PI/180,R=180/(Z*Math.PI)},91218(e,t,r){r.r(t),r.d(t,{canProjectWithoutEngine:()=>K,initializeProjection:()=>B,isEqualBaseGCS:()=>H,isLoaded:()=>Z,isLoadedOrLoad:()=>_,isLoadedOrLoadFor:()=>R,load:()=>P,project:()=>L,projectAsync:()=>V,projectExtent:()=>ie,projectMany:()=>N,projectMultipoint:()=>Y,projectOrLoad:()=>$,projectOrLoadMany:()=>G,projectPoint:()=>W,projectPolygon:()=>re,projectPolyline:()=>ee,projectWithoutEngine:()=>J,requiresLoad:()=>E,test:()=>D,tryProject:()=>q,unload:()=>z});var n=r(49186),i=r(17676),o=r(62788),s=r(95488),l=r(51850),a=r(21276),u=r(73941),c=r(5443),p=r(91075),d=r(48526),f=r(86738),h=r(39829),y=r(82799),g=r(16930),m=r(98764),b=r(159),w=r(9762),v=r(49208);function M(e,t,r,n,i,o){return C[0]=e,C[1]=t,C[2]=r,(0,w.projectBuffer)(C,n,0,i,o,0)}const C=(0,l.vt)();var I=r(60408),T=r(21325),F=r(52006);let A=null,x=null,S=null,j=null,O={};const k=new s.I;function Z(){return!!(x?.isLoaded()&&S?.isLoaded()&&j?.isLoaded())}function _(){return!!Z()||((0,o.gc)(k),P(),!1)}function R(e,t){return!e||!t||K(e,t)||_()}function E(e,t){return!K(e,t)&&!Z()}async function P(e){null==A&&(A=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(x=e,x.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(S=e,S.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(j=e,j.load()))])),await A,(0,i.Te)(e),k.notify()}function L(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),N(e,e[0].spatialReference,t,r)):((0,a.f)(e),N([e],e.spatialReference,t,r)[0])}function N(e,t,r,n){if(null==t||null==r)return e;if(K(t,r,n))return e.map(e=>J(e,t,r));if(null==n?.geographicTransformation&&(0,u.jA)(t))return N(e.map(e=>J(e,t,g.A.WGS84)),g.A.WGS84,r,{zConversionDisabled:n?.zConversionDisabled});if(null==n?.geographicTransformation&&(0,u.jA)(r))return N(e,t,g.A.WGS84).map(e=>J(e,g.A.WGS84,r));if(!Z())throw new U;if(!n?.geographicTransformation)if(n?.extendedParams)n={...n,geographicTransformation:j.getTransformation(t,r,n.areaOfInterestExtent)||new b.A};else if(!n?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,r);let i=O[e];i||(i=j.getTransformation(t,r)||new b.A,O[e]=i),n={geographicTransformation:i,zConversionDisabled:n?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?x.executeMany(e,r,n):S.executeMany(e,r,n)}function q(e,t,r){try{return L(e,t,r)}catch(e){return null}}function $(e,t){const r=G([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function G(e,t,r){if(!Z())for(const r of e)if(null!=r&&!(0,T.aI)(r.spatialReference,t)&&(0,T.fn)(r.spatialReference)&&(0,T.fn)(t)&&!K(r.spatialReference,t))return(0,o.gc)(k),{pending:P(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,T.aI)(e.spatialReference,t)?e:(0,T.fn)(e.spatialReference)&&(0,T.fn)(t)?L(e,t,r):null)}}class U extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function z(){A=null,x=null,S=null,j=null,O={}}const D={get loadPromise(){return A}};async function V(e,t,r){if((0,i.Te)(r),!e)return e;const n=G(Array.isArray(e)?e:[e],t,r);if(n.pending)return await n.pending,(0,i.Te)(r),V(e,t,r);const o=n.geometries??[];return Array.isArray(e)?o:o[0]}function K(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,T.aI)(e,t)||(0,T.fn)(e)&&(0,T.fn)(t)&&!!(0,v.jd)(e,t))}function H(e,t){if((0,T.aI)(e,t))return!0;if(!(0,T.fn)(e)||!(0,T.fn)(t))return!1;const r=(0,T.oT)(e)||(0,T.K8)(e)||(0,T.x1)(e),n=(0,T.oT)(t)||(0,T.K8)(t)||(0,T.x1)(t);return r&&n}async function B(e,t,r,n){if(Z())return(0,i.NO)(n);if(Array.isArray(e)){for(const{source:t,dest:r,options:i}of e)if(t&&r&&!K(t,r,i))return P(n)}else if(e&&t&&!K(e,t,r))return P(n);return(0,i.NO)(n)}function J(e,t,r){return e?(0,I.fT)(e)?Q(e,t,new f.A,r,0):(0,I.ZC)(e)?oe(e,t,new c.A,r,0):(0,I.Bi)(e)?ne(e,t,new h.A,r,0):(0,I.Rg)(e)?te(e,t,new y.A,r,0):(0,I.U9)(e)?X(e,t,new d.A,r,0):null:null}function W(e,t,r=t.spatialReference,n=0){return null!=r&&null!=e.spatialReference&&null!=Q(e,e.spatialReference,t,r,n)}function Q(e,t,r,n,i){ue[0]=e.x,ue[1]=e.y;const o=e.z;return ue[2]=void 0!==o?o:i,(0,w.projectBuffer)(ue,t,0,ue,n,0)?(r.x=ue[0],r.y=ue[1],r.spatialReference=n,void 0!==o||(0,u.xP)(n)?(r.z=ue[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function Y(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=X(e,e.spatialReference,t,r,n)}function X(e,t,r,n,i){const{points:o,hasZ:s,hasM:l}=e,a=[],u=o.length,c=[];for(const e of o)c.push(e[0],e[1],s?e[2]:i);if(!(0,w.projectBuffer)(c,t,0,c,n,0,u))return null;const p=ae(s,n);for(let e=0;e<u;++e){const t=3*e,r=c[t],n=c[t+1];p&&l?a.push([r,n,c[t+2],o[e][3]]):p?a.push([r,n,c[t+2]]):l?a.push([r,n,o[e][2]]):a.push([r,n])}return r.points=a,r.spatialReference=n,r.hasZ=s,r.hasM=l,r}function ee(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=te(e,e.spatialReference,t,r,n)}function te(e,t,r,n,i){const{curvePaths:o,paths:s,hasZ:l,hasM:a}=e;if(!(o?le(o,l??!1,a??!1,t,r.curvePaths=[],n,i):se(s,l??!1,a??!1,t,r.paths,n,i)))return null;const u=ae(l,n);return r.spatialReference=n,r.hasZ=u,r.hasM=a,r}function re(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=ne(e,e.spatialReference,t,r,n)}function ne(e,t,r,n,i){const{curveRings:o,rings:s,hasZ:l,hasM:a}=e;return(o?le(o,l??!1,a??!1,t,r.curveRings=[],n,i):se(s,l??!1,a??!1,t,r.rings,n,i))?(r.spatialReference=n,r.hasZ=ae(l,n),r.hasM=a,r):null}function ie(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=oe(e,e.spatialReference,t,r,n)}function oe(e,t,r,n,i){const{xmin:o,ymin:s,xmax:l,ymax:a,hasZ:u,hasM:c}=e;if(!M(o,s,u?e.zmin:i,t,ue,n))return null;const p=ae(u,n);return r.xmin=ue[0],r.ymin=ue[1],p&&(r.zmin=ue[2]),M(l,a,u?e.zmax:i,t,ue,n)?(r.xmax=ue[0],r.ymax=ue[1],p&&(r.zmax=ue[2]),c&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=n,r):null}function se(e,t,r,n,i,o,s=0){const l=new Array;for(const r of e)for(const e of r)l.push(e[0],e[1],t?e[2]:s);if(!(0,w.projectBuffer)(l,n,0,l,o,0))return!1;let a=0;i.length=0;const u=t?3:2,c=ae(t,o);for(const t of e){const e=new Array;for(const n of t){const t=l.slice(a,a+=3);c||t.pop(),r&&t.push(n[u]),e.push(t)}i.push(e)}return!0}function le(e,t,r,n,i,o,s=0){const l=new Array;for(const r of e)for(const e of r){if((0,F.FG)(e))return!1;if((0,F.aO)(e)){const[r,n]=e.c;l.push(r[0],r[1],t?r[2]:s,n[0],n[1],s);continue}if((0,F.n1)(e)){const[r,n,i]=e.b;l.push(r[0],r[1],t?r[2]:s,n[0],n[1],s,i[0],i[1],s);continue}const r=e;l.push(r[0],r[1],t?r[2]:s)}if(!(0,w.projectBuffer)(l,n,0,l,o,0))return!1;let a=0;i.length=0;const u=t?3:2,c=ae(t,o);for(const t of e){const e=new Array;for(const n of t){const t=l.slice(a,a+=3);if(c||t.pop(),r&&t.push((0,F.yP)(n)[u]),(0,F.FG)(n))return!1;if((0,F.aO)(n)){const r=l[a++],n=l[a++];++a,e.push({c:[t,[r,n]]});continue}if((0,F.n1)(n)){const r=l[a++],n=l[a++];++a;const i=l[a++],o=l[a++];++a,e.push({b:[t,[r,n],[i,o]]});continue}e.push(t)}i.push(e)}return!0}function ae(e,t){return e||(0,u.xP)(t)||(0,T.aI)(t,m.Y0)}const ue=(0,l.vt)()},98764(e,t,r){r.d(t,{GD:()=>s,Y0:()=>u,lO:()=>c});var n=r(73941),i=r(16930),o=r(21325);const s=new i.A(n.fv),l=new i.A(n.FY),a=new i.A(n.LJ),u=new i.A(n.Ro);function c(e){const t=p.get(e);if(t)return t;let r=s;if(e)if(e===l)r=l;else if(e===a)r=a;else{const t=e.wkid,n=e.latestWkid;if(null!=t||null!=n)(0,o.tl)(t)||(0,o.tl)(n)?r=l:((0,o.ZL)(t)||(0,o.ZL)(n))&&(r=a);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===d?r=l:e===f&&(r=a)}}}return p.set(e,r),r}const p=new Map,d=l.wkt.toUpperCase(),f=a.wkt.toUpperCase()},4197(e,t,r){r.d(t,{Vj:()=>u,cj:()=>a,jh:()=>o,l5:()=>l,xm:()=>s});var n=r(34275),i=r(9093);function o(e){return e<=n.y9?new Array(e).fill(0):new Float64Array(e)}function s(e){return((0,n.iu)(e)?e.byteLength/8:e.length)<=n.y9?Array.from(e):new Float64Array(e)}function l(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function a(e){return[...e]}function u(e){const t=(0,i.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>w,DC:()=>p,Ej:()=>f,Ie:()=>m,Jt:()=>b,Ne:()=>h,RF:()=>c,aI:()=>M,fA:()=>s,gE:()=>a,hZ:()=>g,iT:()=>d,is:()=>v,qv:()=>C,vI:()=>y,vY:()=>l,v_:()=>I,vt:()=>o,w1:()=>u});var n=r(5443),i=(r(19419),r(4197));function o(e=I){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,r,n,i,s,l=o()){return l[0]=e,l[1]=t,l[2]=r,l[3]=n,l[4]=i,l[5]=s,l}function l(e,t=o()){return function(e,t,r,n=o()){return g(n,C),function(e,t,r=0,n=t.length/3){let i=e[0],o=e[1],s=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<n;e++)i=Math.min(i,t[r+3*e]),o=Math.min(o,t[r+3*e+1]),s=Math.min(s,t[r+3*e+2]),l=Math.max(l,t[r+3*e]),a=Math.max(a,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=i,e[1]=o,e[2]=s,e[3]=l,e[4]=a,e[5]=u}(n,e,t,r),n}(e,0,e.length/3,t)}function a(e,t=(0,i.jh)(24)){const[r,n,o,s,l,a]=e;return t[0]=r,t[1]=n,t[2]=o,t[3]=r,t[4]=n,t[5]=a,t[6]=r,t[7]=l,t[8]=o,t[9]=r,t[10]=l,t[11]=a,t[12]=s,t[13]=n,t[14]=o,t[15]=s,t[16]=n,t[17]=a,t[18]=s,t[19]=l,t[20]=o,t[21]=s,t[22]=l,t[23]=a,t}function u(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new n.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function f(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function h(e,t,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 y(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function g(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function m(e){return e?g(e,C):o(C)}function b(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function w(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function v(e){return 6===e.length}function M(e,t,r){if(null==e||null==t)return e===t;if(!v(e)||!v(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const C=[1/0,1/0,1/0,-1/0,-1/0,-1/0],I=[0,0,0,0,0,0];o()},34403(e,t,r){r.d(t,{TP:()=>s});var n=r(79258);Math.PI;const i=n.$O.radius,o=n.$O.eccentricitySquared,s={a1:i*o,a2:i*o*i*o,a3:i*o*o/2,a4:i*o*i*o*2.5,a5:i*o+i*o*o/2,a6:1-o};n.$O.radius,n.$O.flattening,n.Sw.radius,n.Sw.flattening,n.sH.radius,n.sH.flattening,n.sH.radius},55156(e,t,r){r.d(t,{I:()=>i,e:()=>n});const n=Symbol("idFieldsProviderSymbol");function i(e){return(t=e)&&n in t?e[n]:void 0;var t}},97483(e,t,r){r.r(t),r.d(t,{default:()=>qe});var n=r(5482),i=r(69540),o=r(7762),s=r(49186),l=r(81583),a=r(91869),u=r(25728),c=r(17676),p=r(36708),d=r(39516),f=r(91429),h=r(4146),y=r(52136),g=r(18768),m=r(63074),b=r(69208),w=r(6455),v=r(47685),M=r(10086),C=r(16131),I=r(8303),T=r(54310),F=r(25036),A=r(82935),x=r(60694),S=r(10873),j=r(15426),O=r(17036),k=r(30524),Z=r(85334),_=r(90360),R=r(86162),E=r(92438),P=r(96576),L=r(93618),N=r(62046),q=r(37531);const $={key:"type",base:E.A,errorContext:"renderer",typeMap:{simple:P.A,"unique-value":L.A,"class-breaks":R.A}},G=(0,_.C)({types:$}),U=["#ed5151","#149ece","#a7c636","#9e559c","#fc921f","#ffde3e","#f789d8","#b7814a","#3caf99","#6b6bd6","#b54779","#7f7f7f"];var z=r(37838),D=r(4902),V=r(4718),K=r(92474),H=r(53966),B=r(97768),J=r(93637),W=r(89317),Q=r(78247),Y=r(16930),X=r(55156),ee=r(60950),te=r(89808),re=r(99959);const ne=Symbol("isSubtypeGroupGraphicOriginSymbol");var ie;class oe extends re.A{get[(ie=ne,ee.ym)](){return this.sublayer}get[X.e](){return this.sublayer}get[te.Q](){return this.layer}constructor(e){super(),this[ie]=!0,this.type="subtype-group",this.sublayer=e}get layer(){return this.sublayer.parent}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var se=r(29005),le=r(46499),ae=r(39383),ue=r(17311),ce=r(54546),pe=r(61956),de=r(30291),fe=r(59868),he=r(43440),ye=r(43937),ge=r(36005);const me=(0,O.p)();let be=0;function we(e,t){let r=e.json.write;return"object"!=typeof r&&(r=e.json.write={}),r.ignoreOrigin=!0,t?.spatialOnly&&(r.layerContainerTypes=W.K),e}function ve(e){const t={write:{ignoreOrigin:!0}};return e?.name&&(t.name=e.name),"object"==typeof t.write&&(e?.spatialOnly&&(t.write.layerContainerTypes=W.K),e?.target&&(t.write.target=e.target)),t}function Me(e){switch(e){case"point":case"multipoint":return fe.UK.clone();case"polyline":return fe.A7.clone();case"polygon":case"multipatch":return fe.Cx.clone();default:return null}}function Ce(e){return Te(e,"user")===e}function Ie(e){return Te(e,"service")}function Te(e,t){const r=e.parent?.getAtOrigin("sublayers",t);return r?.find(({subtypeCode:t})=>t===e.subtypeCode)}function Fe(e,t){return null==e?null:t.subtypes?.find(t=>t.code===e)}function Ae(e,t){let r=null;switch(t.geometryType){case"esriGeometryPoint":case"esriGeometryMultipoint":r="point";break;case"esriGeometryPolyline":r="line";break;case"esriGeometryPolygon":case"esriGeometryMultiPatch":r="polygon";break;default:t.type,r=null}const n={},i=Fe(e,t);if(null!=i){const{defaultValues:e}=i;for(const t in e)n[t]=e[t]}return n[t.subtypeField]=e,new se.A({name:"New Feature",drawingTool:r,prototype:{attributes:n}})}let xe=class extends((0,u.M)((0,i.OU)((0,D.s)(K.x_)))){constructor(e){super(e),this.attributeTableTemplate=null,this.charts=null,this.editingEnabled=!0,this.fieldOverrides=null,this.fieldsIndex=null,this.formTemplate=null,this.graphicOrigin=new oe(this),this.id=`${Date.now().toString(16)}-subtype-sublayer-${be++}`,this.type="subtype-sublayer",this.labelsVisible=!0,this.labelingInfo=null,this.layerType="ArcGISFeatureLayer",this.legendEnabled=!0,this.listMode="show",this.minScale=0,this.maxScale=0,this.opacity=1,this.parent=null,this.popupEnabled=!0,this.popupTemplate=null,this.subtypeCode=null,this.visible=!0}load(e){return(0,k.yp)(this.renderer,this.fieldsIndex),Promise.resolve(this)}get _titleCreator(){const e=this._get("_titleCreator");return(0,B.pR)(e),new ue.A({fieldsIndex:this.fieldsIndex,objectIdField:this.objectIdField,displayField:this.parent?.displayField??"",fields:this.fields,effectivePopupTemplate:this.popupTemplate??this.defaultPopupTemplate})}get capabilities(){return this.parent?.capabilities}get effectiveCapabilities(){return this.parent?.effectiveCapabilities}get effectiveEditingEnabled(){const{parent:e}=this;return e?e.effectiveEditingEnabled&&this.editingEnabled:this.editingEnabled}get elevationInfo(){return this.parent?.elevationInfo}get featureTitleFields(){return[...this._titleCreator.requiredFields]}writeFieldOverrides(e,t,r){const{fields:n,parent:i}=this;let o;if(n){o=[];let e=0;n.forEach(({name:t,alias:r,editable:n,visible:s})=>{if(!s)return;const l=i?.fields?.find(e=>e.name===t);if(!l)return;const a={name:t};let u=!1;r!==l.alias&&(a.alias=r,u=!0),n!==l.editable&&(a.editable=n,u=!0),o.push(a),u&&e++}),0===e&&o.length===n.length&&(o=null)}else o=(0,V.o8)(e);o?.length&&(0,J.sM)(r,o,t)}get fields(){const{parent:e,fieldOverrides:t,subtypeCode:r}=this,n=e?.fields;if(!e||!n?.length)return null;const{subtypes:i,subtypeField:o}=e,s=i?.find(e=>e.code===r),l=s?.defaultValues,a=s?.domains,u=[];for(const e of n){const n=e.clone(),{name:i}=n,s=t?.find(e=>e.name===i);if(n.visible=!t?.length||!!s,s){const{alias:e,editable:t}=s;e&&(n.alias=e),!1===t&&(n.editable=!1)}const c=l?.[i]??null;n.defaultValue=i===o?r:c;const p=a?.[i]??null;n.domain=i===o?null:p?"inherited"===p.type?n.domain:p.clone():null,u.push(n)}return u}get floorInfo(){return this.parent?.floorInfo}get isTable(){return!!this.parent?.isTable}get geometryType(){return this.parent?.geometryType}get globalIdField(){return this.parent?this.parent.globalIdField:(H.A.getLogger(this).error(Oe("globalIdField")),null)}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}get objectIdField(){return this.parent||H.A.getLogger(this).error(Oe("objectIdField")),this.parent?.objectIdField}get defaultPopupTemplate(){return this.createPopupTemplate()}get relationships(){return this.parent?.relationships}set renderer(e){(0,k.yp)(e,this.fieldsIndex),this._override("renderer",e)}get renderer(){if(this._isOverridden("renderer"))return this._get("renderer");const{parent:e}=this;return e&&!e.isTable&&"mesh"!==e.geometryType?(Ce(this)?(0,V.o8)(Ie(this)?.renderer):null)??function(e){return new P.A({symbol:Me(e)})}(e.geometryType):null}readRendererFromService(e,t,r){if("Table"===t.type)return null;const n=t.drawingInfo?.renderer,i=G(n,t,r);let o;const{subtypeCode:s}=this;if(null!=s&&function(e,t){return!(!t||"unique-value"!==e?.type||null==e.field||e.field.toLowerCase()!==t.toLowerCase()||e.field2||e.field3||e.valueExpression)}(i,t.subtypeField)){const e=i.uniqueValueInfos?.find(({value:e})=>(e="number"==typeof e?String(e):e)===String(s));e&&(o=new P.A({symbol:e.symbol}))}else"simple"!==i?.type||i.visualVariables?.length||(o=i);return o}readRenderer(e,t,r){const n=t?.layerDefinition?.drawingInfo?.renderer;if(n)return G(n,t,r)||void 0}get spatialReference(){return this.parent?.spatialReference??Y.A.WGS84}get subtypeField(){return this.parent?.subtypeField}get templates(){return this._isOverridden("templates")?this._get("templates"):(0,V.o8)(Ce(this)?Ie(this)?.templates:Te(this,"portal-item")?.templates||Ie(this)?.templates)}set templates(e){this._override("templates",e)}readTemplatesFromService(e,t){return[Ae(this.subtypeCode,t)]}get title(){if(this._isOverridden("title"))return this._get("title");const e=Ce(this)?Ie(this):null;return e?.title}set title(e){this._override("title",e)}readTitleFromService(e,t){const r=Fe(this.subtypeCode,t);return null!=r?r.name:null}get url(){return this.parent?.url}get userHasUpdateItemPrivileges(){return!!this.parent?.userHasUpdateItemPrivileges}async addAttachment(e,t){const{parent:r}=this;if(!r)throw Oe("addAttachment");if(e.getAttribute(r.subtypeField)!==this.subtypeCode)throw new s.A("subtype-sublayer:addAttachment","The feature provided does not belong to this SubtypeSublayer");return r.addAttachment(e,t)}async updateAttachment(e,t,r){const{parent:n}=this;if(!n)throw Oe("updateAttachment");if(e.getAttribute(n.subtypeField)!==this.subtypeCode)throw new s.A("subtype-sublayer:updateAttachment","The feature provided does not belong to this SubtypeSublayer");return n.updateAttachment(e,t,r)}async deleteAttachments(e,t){const{parent:r}=this;if(!r)throw Oe("deleteAttachments");if(e.getAttribute(r.subtypeField)!==this.subtypeCode)throw new s.A("subtype-sublayer:deleteAttachments","The feature provided does not belong to this SubtypeSublayer");return r.deleteAttachments(e,t)}async applyEdits(e,t){if(!this.parent)throw Oe("applyEdits");return this.parent.applyEdits(e,t)}createPopupTemplate(e){let t=this;const{parent:r,fields:n,title:i}=this;if(r){const{displayField:e,editFieldsInfo:o,objectIdField:s}=r;t={displayField:e,editFieldsInfo:o,fields:n,objectIdField:s,title:i}}return(0,de.tn)(t,e)}createQuery(){if(!this.parent)throw Oe("createQuery");const e=(0,j.VZ)(this.parent),t=`${this.parent.subtypeField}=${this.subtypeCode}`;return e.where=(0,d.mA)(t,this.parent.definitionExpression),e}getFeatureTitle(e,t){return this._titleCreator.getTitle(this,e,t)}getFeatureTitles(e,t){return this._titleCreator.getTitles(this,e,t)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){if(!t?.excludeImpliedDomains&&this.parent){const t=(0,j.pc)(this.parent,e);if(t)return t}return this._getLayerDomain(e)}async queryAttachments(e,t){const r=await this.load();if(!r.parent)throw Oe("queryAttachments");const n=e instanceof ce.A?e.clone():new ce.A(e);return n.where=je(n.where,r.parent.subtypeField,r.subtypeCode),r.parent.queryAttachments(n,t)}async queryFeatureCount(e,t){const r=await this.load();if(!r.parent)throw Oe("queryFeatureCount");return r.parent.queryFeatureCount(Se(r.parent,r,e),t)}async queryFeatures(e,t){const r=await this.load();if(!r.parent)throw Oe("queryFeatures");return r.parent.queryFeatures(Se(r.parent,r,e),t)}async queryObjectIds(e,t){const r=await this.load();if(!r.parent)throw Oe("queryObjectIds");return r.parent.queryObjectIds(Se(r.parent,r,e),t)}async queryRelatedFeatures(e,t){const r=await this.load();if(!r.parent)throw Oe("queryRelatedFeatures");return r.parent.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){const r=await this.load();if(!r.parent)throw Oe("queryRelatedFeaturesCount");return r.parent.queryRelatedFeaturesCount(e,t)}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}};(0,n.Cg)([(0,f.MZ)({clonable:!1,readOnly:!0})],xe.prototype,"_titleCreator",null),(0,n.Cg)([(0,f.MZ)({type:he.A,json:ve({name:"attributeTableInfo"})})],xe.prototype,"attributeTableTemplate",void 0),(0,n.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],xe.prototype,"capabilities",null),(0,n.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],xe.prototype,"effectiveCapabilities",null),(0,n.Cg)([(0,f.MZ)({json:ve()})],xe.prototype,"charts",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,nonNullable:!0,json:ve({name:"enableEditing"})})],xe.prototype,"editingEnabled",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],xe.prototype,"effectiveEditingEnabled",null),(0,n.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],xe.prototype,"elevationInfo",null),(0,n.Cg)([(0,f.MZ)({clonable:!1,readOnly:!0})],xe.prototype,"featureTitleFields",null),(0,n.Cg)([(0,f.MZ)({json:{name:"layerDefinition.fieldOverrides",origins:{service:{read:!1}},write:{ignoreOrigin:!0,allowNull:!0}}})],xe.prototype,"fieldOverrides",void 0),(0,n.Cg)([(0,ye.K)("fieldOverrides")],xe.prototype,"writeFieldOverrides",null),(0,n.Cg)([(0,f.MZ)({...me.fields,readOnly:!0,json:{read:!1}})],xe.prototype,"fields",null),(0,n.Cg)([(0,f.MZ)(me.fieldsIndex)],xe.prototype,"fieldsIndex",void 0),(0,n.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],xe.prototype,"floorInfo",null),(0,n.Cg)([(0,f.MZ)({type:Q.A,json:ve({name:"formInfo"})})],xe.prototype,"formTemplate",void 0),(0,n.Cg)([(0,f.MZ)({readOnly:!0,clonable:!1})],xe.prototype,"graphicOrigin",void 0),(0,n.Cg)([(0,f.MZ)({type:String,clonable:!1,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0}}})],xe.prototype,"id",void 0),(0,n.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],xe.prototype,"isTable",null),(0,n.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],xe.prototype,"geometryType",null),(0,n.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],xe.prototype,"globalIdField",null),(0,n.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],xe.prototype,"type",void 0),(0,n.Cg)([(0,f.MZ)(we((0,V.o8)(S.kF)))],xe.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,f.MZ)({type:[le.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",origins:{service:{read:!1}},read:{reader:ae.w},write:{ignoreOrigin:!0,layerContainerTypes:W.K}}})],xe.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,f.MZ)({type:["ArcGISFeatureLayer"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,layerContainerTypes:W.K}}})],xe.prototype,"layerType",void 0),(0,n.Cg)([(0,f.MZ)(we((0,V.o8)(S.fV)))],xe.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,f.MZ)({type:["show","hide"]})],xe.prototype,"listMode",void 0),(0,n.Cg)([(0,f.MZ)((()=>{const e=(0,V.o8)(S.hn);return e.json.origins.service.read=!1,we(e,{spatialOnly:!0})})())],xe.prototype,"minScale",void 0),(0,n.Cg)([(0,f.MZ)((()=>{const e=(0,V.o8)(S.hG);return e.json.origins.service.read=!1,we(e,{spatialOnly:!0})})())],xe.prototype,"maxScale",void 0),(0,n.Cg)([(0,f.MZ)({readOnly:!0})],xe.prototype,"effectiveScaleRange",null),(0,n.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],xe.prototype,"objectIdField",null),(0,n.Cg)([(0,f.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0,json:ve({spatialOnly:!0})})],xe.prototype,"opacity",void 0),(0,n.Cg)([(0,f.MZ)({clonable:!1})],xe.prototype,"parent",void 0),(0,n.Cg)([(0,f.MZ)(we((0,V.o8)(S.M6)))],xe.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,f.MZ)({type:z.A,json:ve({name:"popupInfo"})})],xe.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,f.MZ)({readOnly:!0})],xe.prototype,"defaultPopupTemplate",null),(0,n.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],xe.prototype,"relationships",null),(0,n.Cg)([(0,f.MZ)({types:$,json:ve({target:"layerDefinition.drawingInfo.renderer",spatialOnly:!0})})],xe.prototype,"renderer",null),(0,n.Cg)([(0,ge.w)("service","renderer",["drawingInfo.renderer","subtypeField","type"])],xe.prototype,"readRendererFromService",null),(0,n.Cg)([(0,ge.w)("renderer",["layerDefinition.drawingInfo.renderer"])],xe.prototype,"readRenderer",null),(0,n.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],xe.prototype,"spatialReference",null),(0,n.Cg)([(0,f.MZ)({type:Number,json:{origins:{service:{read:!1}},write:{ignoreOrigin:!0}}})],xe.prototype,"subtypeCode",void 0),(0,n.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],xe.prototype,"subtypeField",null),(0,n.Cg)([(0,f.MZ)({type:[se.A],json:ve({name:"layerDefinition.templates"})})],xe.prototype,"templates",null),(0,n.Cg)([(0,ge.w)("service","templates",["geometryType","subtypeField","subtypes","type"])],xe.prototype,"readTemplatesFromService",null),(0,n.Cg)([(0,f.MZ)({type:String,json:ve()})],xe.prototype,"title",null),(0,n.Cg)([(0,ge.w)("service","title",["subtypes"])],xe.prototype,"readTitleFromService",null),(0,n.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],xe.prototype,"url",null),(0,n.Cg)([(0,f.MZ)({readOnly:!0})],xe.prototype,"userHasUpdateItemPrivileges",null),(0,n.Cg)([(0,f.MZ)({type:Boolean,nonNullable:!0,json:ve({name:"visibility",spatialOnly:!0})})],xe.prototype,"visible",void 0),xe=(0,n.Cg)([(0,f.$K)("esri.layers.support.SubtypeSublayer")],xe);const Se=(e,t,r)=>{if(!r)return t.createQuery();const n=pe.A.from(r);return n.where=je(n.where,e.subtypeField,t.subtypeCode),n},je=(e,t,r)=>{const n=new RegExp(`${t}\\s*=\\s*\\d+`),i=`${t}=${r}`,o=e??"";return n.test(o)?o.replace(n,i):(0,d.mA)(i,o)},Oe=e=>new s.A("subtype-sublayer:parent-missing",`This sublayer must have a parent SubtypeGroupLayer in order to use ${e}`);var ke=r(96184),Ze=r(91908),_e=r(54218),Re=r(59923);const Ee="SubtypeGroupLayer";function Pe(e,t){const r=[];for(const n of e){const e=new xe;e.read(n,t),r.push(e)}return r}const Le=(0,O.p)();let Ne=class extends((0,M.j)((0,w.FJ)((0,v.w6)((0,m.dM)((0,A.e)((0,F.j)((0,T.J)((0,g.b)((0,C.q)((0,I.A)((0,u.M)((0,b.d)((0,y.p)((0,i.OU)(h.A))))))))))))))){constructor(...e){super(...e),this._sublayerLookup=new Map,this.fields=null,this.fieldsIndex=null,this.outFields=null,this.sublayers=new(o.A.ofType(xe)),this.useUniqueColorsForSublayers=!0,this.supportedSourceTypes=new Set(["Feature Layer","Table"]),this.timeInfo=null,this.title="Layer",this.type="subtype-group",this._debouncedSaveOperations=(0,c.sg)(async(e,t,n)=>{const{save:i,saveAs:o}=await r.e(5740).then(r.bind(r,33359));switch(e){case 0:return i(this,t);case 1:return o(this,n,t)}}),this.addHandles((0,p.wB)(()=>this.sublayers,(e,t)=>this._handleSublayersChange(e,t),p.OH))}destroy(){this.source?.destroy()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Feature Service"]},e).catch(c.QP).then(async()=>{if(!this.url)throw new s.A("subtype-grouplayer:missing-url-or-source","SubtypeGroupLayer must be created with either a url or a portal item");if(null==this.layerId)throw new s.A("subtype-grouplayer:missing-layerid","layerId is required for a SubtypeGroupLayer created with url");this._initLayerProperties(await this.createGraphicsSource(t))}).then(()=>(0,j.VA)(this,"load",e));return this.addResolvingPromise(r),Promise.resolve(this)}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}get effectiveEditingEnabled(){return(0,j.C$)(this)}get operationalLayerType(){return this.isTable?"SubtypeGroupTable":"SubtypeGroupLayer"}set source(e){this._get("source")!==e&&this._set("source",e)}readTitleFromService(e,{name:t}){return this.url?(0,x.yG)(this.url,t):t}async addAttachment(e,t){const r=await(0,j.Xl)(this,e,t,Ee);return this.lastEditsEventDate=new Date,r}async updateAttachment(e,t,r){const n=await(0,j.bt)(this,e,t,r,Ee);return this.lastEditsEventDate=new Date,n}async applyEdits(e,t){return(0,j.ct)(this,e,t)}async createGraphicsSource(e){const{default:t}=await(0,c.qr)(Promise.all([r.e(893),r.e(3636),r.e(9062)]).then(r.bind(r,65515)),e);return new t({layer:this,supportedSourceTypes:this.supportedSourceTypes}).load({signal:e})}createQuery(){const e=(0,j.VZ)(this),t=this.sublayers.map(e=>e.subtypeCode);return e.where=(0,d.mA)(`${this.subtypeField} IN (${t.join(",")})`,this.definitionExpression),e}async deleteAttachments(e,t){const r=await(0,j.mm)(this,e,t,Ee);return this.lastEditsEventDate=new Date,r}async fetchRecomputedExtents(e){return(0,j.WP)(this,e,Ee)}findSublayerForFeature(e){const t=this.fieldsIndex.get(this.subtypeField),r=e.attributes[t.name];return this.findSublayerForSubtypeCode(r)}findSublayerForSubtypeCode(e){return this._sublayerLookup.get(e)}getFieldDomain(e,t){if(!t?.excludeImpliedDomains){const t=(0,j.pc)(this,e);if(t)return t}const r=(0,j.Nv)(this,t?.feature);if(r){const t=r.domains?.[e];return"inherited"===t?.type?this._getLayerDomain(e):t}return this._getLayerDomain(e)}loadAll(){return(0,l.g)(this,e=>{e(this.sublayers)})}async queryAttachments(e,t){return(0,j.lV)(this,e,t,Ee)}async queryFeatures(e,t){const r=await this.load(),n=pe.A.from(e)??r.createQuery(),i=n.outFields??[];i.includes(this.subtypeField)||(i.push(this.subtypeField),n.outFields=i);const o=await r.source.queryFeatures(n,t);if(o?.features)for(const e of o.features){const t=this.findSublayerForFeature(e);e.origin=t?.graphicOrigin,e.layer=e.sourceLayer=this.findSublayerForFeature(e)}return o}async queryObjectIds(e,t){return(await(0,j.sg)(this,e,t,Ee)).filter(_e.Et)}async queryFeatureCount(e,t){return(0,j.Ye)(this,e,t,Ee)}async queryExtent(e,t){return(0,j.B5)(this,e,t,Ee)}async queryRelatedFeatures(e,t){return(0,j.hM)(this,e,t,Ee)}async queryRelatedFeaturesCount(e,t){return(0,j.S2)(this,e,t,Ee)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}write(e,t){const{origin:r,layerContainerType:n,messages:i}=t;if(this.isTable){if("web-scene"===r||"web-map"===r&&"tables"!==n)return(0,Re.U4)(t,this,"a table source cannot be written to web scenes and web maps"),null}else if(this.loaded&&"web-map"===r&&"tables"===n)return(0,Re.U4)(t,this,"a non-table source cannot be written to tables in web maps"),null;return this.sublayers?.length?super.write(e,t):(i?.push(new s.A("web-document-write:invalid-property",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' has invalid value for 'sublayers' property. 'sublayers' collection should contain at least one sublayer`,{layer:this})),null)}serviceSupportsSpatialReference(e){return!!this.loaded&&(0,Ze.D)(this,e)}async getFeatureTitle(e,t){const r=this.findSublayerForFeature(e);return r?await r.getFeatureTitle(e,t):this._getFeatureTitleForUnknownSublayer(e)}async getFeatureTitles(e,t){const r=new Map,n=new Map,i=[n];e.forEach(e=>{const t=this.findSublayerForFeature(e);if(t)(0,a.tE)(r,t,()=>[]).push(e);else{const t=e.getObjectId()??e.attributes[this.objectIdField];n.set(t,this._getFeatureTitleForUnknownSublayer(e))}});const o=await Promise.all(Array.from(r).map(([e,r])=>e.getFeatureTitles(r,t)));return o.forEach(e=>i.push(e)),new Map(i.flatMap(e=>[...e]))}get featureTitleFields(){const e=new Set;for(const t of this.sublayers){const r=t.featureTitleFields;for(const t of r)e.add(t)}return[...e]}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}_initLayerProperties(e){this._set("source",e);const{sourceJSON:t}=e;if(t&&(this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})),!this.subtypes?.length)throw new s.A("subtype-grouplayer:missing-subtypes","SubtypeGroupLayer must be created using a layer with subtypes");this._verifyFields(),(0,k.sv)(this.timeInfo,this.fieldsIndex)}async hasDataChanged(){return(0,j.jp)(this)}_verifyFields(){const e=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("SubtypeGroupLayer: 'objectIdField' property is not defined (url: "+e+")"),this.isTable||-1!==e.search(/\/FeatureServer\//i)||this.fields?.some(e=>"geometry"===e.type)||console.log("SubtypeGroupLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null}),this.removeHandles("sublayers-owner"),this._sublayerLookup.clear()),e&&(e.forEach(e=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),e.on("after-remove",({item:e})=>{e.parent=null,this._sublayerLookup.delete(e.subtypeCode)})],"sublayers-owner"))}_getFeatureTitleForUnknownSublayer(e){const{displayField:t,fieldsIndex:r,objectIdField:n}=this;if(t&&r.has(t))return e.attributes[r.get(t).name]??"";const i=e.getObjectId();return null!=i?i.toString():n&&r.has(n)?e.attributes[r.get(n).name]??"":""}};(0,n.Cg)([(0,f.MZ)({readOnly:!0})],Ne.prototype,"createQueryVersion",null),(0,n.Cg)([(0,f.MZ)({readOnly:!0})],Ne.prototype,"editingEnabled",null),(0,n.Cg)([(0,f.MZ)({readOnly:!0})],Ne.prototype,"effectiveEditingEnabled",null),(0,n.Cg)([(0,f.MZ)({...Le.fields,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],Ne.prototype,"fields",void 0),(0,n.Cg)([(0,f.MZ)(Le.fieldsIndex)],Ne.prototype,"fieldsIndex",void 0),(0,n.Cg)([(0,f.MZ)(S.id)],Ne.prototype,"id",void 0),(0,n.Cg)([(0,f.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],Ne.prototype,"listMode",void 0),(0,n.Cg)([(0,f.MZ)({type:["SubtypeGroupLayer","SubtypeGroupTable"],json:{name:"layerType",read:{enabled:!0},write:{enabled:!0,ignoreOrigin:!0,isRequired:!0},origins:{"web-document":{name:"layerType",read:{enabled:!0},write:{enabled:!0,ignoreOrigin:!0,isRequired:!0}},"portal-item":{name:"layerType",read:{enabled:!0},write:{enabled:!0,ignoreOrigin:!0,isRequired:!0}}}}})],Ne.prototype,"operationalLayerType",null),(0,n.Cg)([(0,f.MZ)(Le.outFields)],Ne.prototype,"outFields",void 0),(0,n.Cg)([(0,f.MZ)({clonable:!1})],Ne.prototype,"source",null),(0,n.Cg)([(0,f.MZ)({type:o.A.ofType(xe),json:{origins:{service:{read:{source:"subtypes",reader(e,t,r){let n=null;if(this.useUniqueColorsForSublayers){const i=function(e,t){const r=e.drawingInfo?.renderer,n=r?G(r,e,t):null;if("simple"===n?.type)return(0,q.Sx)(n.symbol,null)?n.symbol.clone():null}(t,r);n=i?function(e,t){return(0,Z.Iy)(U,e,{offset:!0,shuffle:!0}).reverse().map(e=>{const r=t.clone();return"cim"===r.type?(0,N.Fe)(r,e):(0,q.dt)(r,e),new P.A({symbol:r})})}(e.length,i):null}const i=e.map(({code:e},i)=>{const o=new xe({subtypeCode:e});o.read(t,r);const s=n?.[i];return s&&o.read({drawingInfo:{renderer:s.toJSON()}},r),o});return new(o.A.ofType(xe))(i)}}}},read:{source:["layers","tables"],reader(e,t,r){let n;return"SubtypeGroupLayer"===t.layerType&&t.layers?.length?n=Pe(t.layers,r):"SubtypeGroupTable"===t.layerType&&t.tables?.length&&(n=Pe(t.tables,r)),new(o.A.ofType(xe))(n)}},write:{ignoreOrigin:!0,writer(e,t,r,n){const i=[];for(const t of e){const e=t.write({},n);i.push(e)}this.isTable?t.tables=i:t.layers=i}}}})],Ne.prototype,"sublayers",void 0),(0,n.Cg)([(0,f.MZ)()],Ne.prototype,"useUniqueColorsForSublayers",void 0),(0,n.Cg)([(0,f.MZ)({type:ke.A})],Ne.prototype,"timeInfo",void 0),(0,n.Cg)([(0,f.MZ)({json:{origins:{"portal-item":{write:{enabled:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}}}})],Ne.prototype,"title",void 0),(0,n.Cg)([(0,ge.w)("service","title",["name"])],Ne.prototype,"readTitleFromService",null),(0,n.Cg)([(0,f.MZ)({json:{read:!1}})],Ne.prototype,"type",void 0),(0,n.Cg)([(0,f.MZ)({clonable:!1,readOnly:!0})],Ne.prototype,"featureTitleFields",null),Ne=(0,n.Cg)([(0,f.$K)("esri.layers.SubtypeGroupLayer")],Ne);const qe=Ne},54339(e,t,r){function n(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const r=[];for(const n of t.fieldNames)r.push(e.attributes[n]??null);return JSON.stringify(r)}}}function i(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>n,r:()=>i})},52136(e,t,r){r.d(t,{p:()=>o});var n=r(5482),i=r(91429);const o=e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,n.Cg)([(0,i.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.APIKeyMixin")],r),r}},28032(e,t,r){r.d(t,{A:()=>a});var n=r(5482),i=r(69540),o=r(25482),s=r(91429),l=r(56400);let a=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,n.Cg)([(0,s.MZ)()],a.prototype,"creatorField",void 0),(0,n.Cg)([(0,s.MZ)()],a.prototype,"creationDateField",void 0),(0,n.Cg)([(0,s.MZ)()],a.prototype,"editorField",void 0),(0,n.Cg)([(0,s.MZ)()],a.prototype,"editDateField",void 0),(0,n.Cg)([(0,s.MZ)()],a.prototype,"realm",void 0),(0,n.Cg)([(0,s.MZ)((0,l.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,n.Cg)([(0,s.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,r){r.d(t,{A:()=>u});var n=r(5482),i=r(69540),o=r(66552),s=r(25482),l=r(91429);const a=new o.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"drawingTool",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,n.Cg)([(0,l.$K)("esri.layers.support.FeatureTemplate")],u)},37352(e,t,r){r.d(t,{A:()=>a});var n,i=r(5482),o=r(7762),s=r(25482),l=r(91429);let a=n=class extends s.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.A}clone(){return new n({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,i.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=n=(0,i.Cg)([(0,l.$K)("esri.layers.support.LayerFloorInfo")],a)},45067(e,t,r){r.d(t,{A:()=>c});var n=r(5482),i=r(69540),o=r(66552),s=r(25482),l=r(91429);const a=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let c=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,n.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],c.prototype,"cardinality",void 0),(0,n.Cg)([(0,l.MZ)({json:{name:"catalogID"}})],c.prototype,"catalogId",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"composite",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"id",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyField",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyFieldInRelationshipTable",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"name",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"relatedTableId",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"relationshipTableId",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:u.read,write:u.write}})],c.prototype,"role",void 0),c=(0,n.Cg)([(0,l.$K)("esri.layers.support.Relationship")],c)},17311(e,t,r){r.d(t,{A:()=>f});var n=r(5482),i=r(69622),o=r(4576),s=r(60999),l=r(7762),a=r(16494),u=r(91429),c=r(30524),p=r(43668);const d=/<br\s*\/*>/gi;let f=class extends i.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,s.UT)(()=>(0,p.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??Promise.all([r.e(4560),r.e(9926)]).then(r.bind(r,29926)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new l.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const r=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(r.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:r,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(r,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const r=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of r){const r=t.split("."),n=this.fieldsIndex.get(r.at(-1)??"");n&&e.add(n.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const r of t){const t=this.fieldsIndex.get(r);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,r){const n=t.getObjectId()??t.attributes[e.objectIdField];return(await this.getTitles(e,[t],r)).get(n)??""}async getTitles(e,t,r){const n=new Map,i=r?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:o}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);r?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:s,workingTitle:l}=this,u=l&&s;t.forEach(t=>{const c=t.getObjectId()??t.attributes[e.objectIdField];let p=u?o({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:s,globalAttributes:this._createFormattedAttributes(e,t,i).global,layer:e,text:l}):"";r?.removeHTML&&(p=a.Nd.sanitize(p).replaceAll(d," ")),n.set(c,p)})}catch{}return n}async _checkAndReQueryGraphics(e,t){const r=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(o.Ru);if(r.length!==t.length)return t;if(t.some(e=>!(0,c.Kl)(e,this.requiredFields))){const n=e.createQuery();n.where="1=1",n.outFields=[...this.requiredFields],n.objectIds=r;const i=await e.queryFeatures(n);if(i?.features.length===t.length)return i.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const r of e){if(!r.fieldName)continue;const e=this.fieldsIndex.get(r.fieldName),n=e?.name??r.fieldName;r.fieldName=n,t.set(n.toLowerCase(),r)}return t}_createFormattedAttributes(e,t,r="system"){const n=this.effectivePopupTemplate?.fieldInfos??[],i={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const r=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{i[`expression/${e.name}`]=e.func({vars:{$feature:r}})}catch{}}const o={...t.attributes,...i};return{global:this._featureUtils.formatAttributes({fieldInfos:n,attributes:o,graphic:t,timeZone:r,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,c.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,n.Cg)([(0,u.MZ)({readOnly:!0})],f.prototype,"_arcadeTask",null),(0,n.Cg)([(0,u.MZ)()],f.prototype,"_featureUtils",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],f.prototype,"featureUtilsPromise",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],f.prototype,"calculatedExpressions",null),(0,n.Cg)([(0,u.MZ)()],f.prototype,"displayField",void 0),(0,n.Cg)([(0,u.MZ)()],f.prototype,"effectivePopupTemplate",void 0),(0,n.Cg)([(0,u.MZ)()],f.prototype,"expressionsUsedInTitle",null),(0,n.Cg)([(0,u.MZ)()],f.prototype,"fieldsIndex",void 0),(0,n.Cg)([(0,u.MZ)()],f.prototype,"fieldInfoMap",null),(0,n.Cg)([(0,u.MZ)()],f.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)()],f.prototype,"objectIdField",void 0),(0,n.Cg)([(0,u.MZ)()],f.prototype,"requiredFields",null),f=(0,n.Cg)([(0,u.$K)("esri.layers.support.TitleCreator")],f)},41560(e,t,r){r.d(t,{Ch:()=>s,mW:()=>o});var n=r(34727),i=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function s(e,t,r){const o=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:r,maxScale:n}of e.filters)t[0]=Math.max(t[0],c(r)),t[1]=Math.min(t[1],p(n));return t}(e);if(o&&((0,n.gg)(t,o[0])||(0,n.ZH)(r,o[1])))return"";const s=Array.from(l(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;const i=c(e.at(0)?.minScale),o=p(e.at(-1)?.maxScale);if((0,n.ZH)(i,t)||(0,n.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){const r=e[t],i=e[t+1];if((0,n.ZH)(c(i.minScale),p(r.maxScale)))return!0}return!1}(s,t,r)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,i.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,r){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const n of e.filters)a(n.minScale,n.maxScale,t,r)&&(yield n)}}function a(e,t,r,i){return e=c(e),r=c(r),t=p(t),!(!(0,n.Sp)(r,e)&&(i??r)>e||(0,n.Hx)(t,r)||void 0!==i&&(0,n.Sp)(i,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function p(e){return e||0}},32730(e,t,r){r.d(t,{BI:()=>f,D3:()=>p,XJ:()=>d,lc:()=>c,mX:()=>y,rU:()=>h,tH:()=>v});var n=r(799);const i="__begin__",o="__end__",s=new RegExp(i,"ig"),l=new RegExp(o,"ig"),a=new RegExp("^"+i,"i"),u=new RegExp(o+"$","i");function c(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function p(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function d(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=c(e.labelExpression),t.type="conventional"),t}function f(e){const t=d(e);if(!t)return null;switch(t.type){case"conventional":return y(t.expression);case"arcade":return t.expression}return null}function h(e){const t=d(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(g);return t?.[1].trim()||null}(t.expression);case"arcade":return v(t.expression)}return null}function y(e){let t;return e?(t=(0,n.HC)(e,e=>i+'$feature["'+e+'"]'+o),t=a.test(t)?t.replace(a,""):'"'+t,t=u.test(t)?t.replace(u,""):t+'"',t=t.replaceAll(s,'" + ').replaceAll(l,' + "')):t='""',t}const g=/^\s*\{([^}]+)\}\s*$/i,m=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,w=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function v(e){if(!e)return null;let t=m.exec(e)||b.exec(e);return t?t[1]||t[3]:(t=w.exec(e),t?t[2]:null)}},41366(e,t,r){r.d(t,{K:()=>p,Q:()=>a});var n=r(5482),i=r(66552),o=r(53966),s=r(91429),l=r(93223);const a=(0,i.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field",p=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&c||r&&u||null,t&&r&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==c&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,n.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,n.Cg)([(0,l.e)(a,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,n.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r}},62046(e,t,r){r.d(t,{Fe:()=>c,KU:()=>h,Nk:()=>o});var n=r(68197),i=r(93397);function o(e){const t=[];return s((0,i.lW)(e),t),t.length?new n.A((0,i.e6)(t[0])):null}function s(e,t){if(!e)return;let r;r="CIMTextSymbol"===e.type?e.symbol:e;const n="CIMPolygonSymbol"===e.type;if(r?.symbolLayers)for(const e of r.symbolLayers)if(!(e.colorLocked||n&&((0,i.mA)(e)||(0,i.MM)(e)&&e.markerPlacement&&(0,i.zr)(e.markerPlacement))))switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor&&l(t,e.tintColor);break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{s(e.symbol,t)});break;case"CIMSolidStroke":case"CIMSolidFill":l(t,e.color);break;case"CIMGradientFill":a(t,e);break;case"CIMHatchFill":s(e.lineSymbol,t)}}function l(e,t){for(const r of e)if(r.join(".")===t.join("."))return;e.push(t)}function a(e,t){const r=t.colorRamp?.type;switch(r){case"CIMMultipartColorRamp":t.colorRamp.colorRamps?.forEach(t=>{"CIMLinearContinuousColorRamp"===t.type&&u(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":u(e,t.colorRamp)}}function u(e,t){t&&(t.fromColor&&l(e,t.fromColor),t.toColor&&l(e,t.toColor))}function c(e,t,r){t instanceof n.A||(t=new n.A(t));const o=(0,i.lW)(e);o&&p(o,t,r)}function p(e,t,r){if(!e)return;let n;n="CIMTextSymbol"===e.type?e.symbol:e;const o="CIMPolygonSymbol"===n?.type;if(n?.symbolLayers)for(const e of n.symbolLayers){if(e.colorLocked)continue;if(o)if(r){const{layersToColor:t}=r;if(((0,i.mA)(e)||(0,i.MM)(e)&&e.markerPlacement&&(0,i.zr)(e.markerPlacement))&&"fill"===t||(0,i.jn)(e)&&"outline"===t)continue}else if((0,i.mA)(e)||(0,i.MM)(e)&&e.markerPlacement&&(0,i.zr)(e.markerPlacement))continue;const n=t.toArray();switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor=n;break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{p(e.symbol,t,r)});break;case"CIMSolidStroke":case"CIMSolidFill":e.color=n;break;case"CIMGradientFill":d(e,t);break;case"CIMHatchFill":p(e.lineSymbol,t,r)}}}function d(e,t){const r=e.colorRamp?.type;switch(r){case"CIMMultipartColorRamp":e.colorRamp.colorRamps?.forEach(e=>{"CIMLinearContinuousColorRamp"===e.type&&f(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":f(e.colorRamp,t)}}function f(e,t){if(e&&(e.fromColor&&(e.fromColor=t.toArray()),e.toColor)){const r=t.clone();r.a=0,e.toColor=r.toArray()}}function h(e,t,r=!1){const n=(0,i.lW)(e);if(r&&(t=360-t),"CIMTextSymbol"!==n?.type){if("CIMPointSymbol"===n?.type&&n.symbolLayers){const e=t-(n.angle||0);for(const t of n.symbolLayers)if((0,i.MM)(t)){let r=t.rotation||0;t.rotateClockwise?r-=e:r+=e,t.rotation=r}n.angle=t}}else n.angle=t}},37531(e,t,r){r.d(t,{dt:()=>d,GG:()=>m,UQ:()=>g,Sx:()=>c});var n=r(68197),i=r(60999),o=r(51850),s=(r(76369),r(62046)),l=(r(2741),r(11254),r(66344));new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),new l.q(1e3),new n.A([128,128,128]);var a=r(28975),u=r(33910);function c(e,t){if(!e)return null;let r=null;return(0,u.wk)(e)?r=function(e){const t=e.symbolLayers;if(!t)return null;let r=null;return t.forEach(e=>{"object"===e.type&&e.resource?.href||(r="water"===e.type?e.color:e.material?e.material.color:null)}),r?new n.A(r):null}(e):(0,u.$y)(e)&&(r="cim"===e.type?(0,s.Nk)(e):e.color?new n.A(e.color):null),r?p(r,t):null}function p(e,t){if(null==t||null==e)return e;const r=e.toRgba();return r[3]=r[3]*t,new n.A(r)}function d(e,t,r){e&&(t||null!=r)&&(t&&(t=new n.A(t)),(0,u.wk)(e)?function(e,t,r){const i=e.symbolLayers;if(!i)return;const o=(e,i=!1)=>{let o=t??e??null;return null!=r?.override&&(!o&&i&&(o=new n.A([255,255,255])),o&&(o.a=r.override)),p(o,r?.add)};i.forEach(e=>{if("water"===e.type)return void(e.color=p(e.color,r?.add));const t=null!=e.material?e.material.color:null,n=o(t,"icon"===e.type&&null!=e.resource?.href);null==e.material?e.material=new a.A({color:n}):e.material.color=n,"outline"in e&&e.outline?.color&&null!=r?.add&&(e.outline.color=p(e.outline.color,r.add)),"marker"in e&&null!=e.marker&&(e.marker.color=o(e.marker.color))})}(e,t,r):(0,u.$y)(e)&&function(e,t,r){t=t??e.color,null!=r?.override&&t&&(t.a=r.override),t&&(e.color=p(t,r?.add)),"outline"in e&&e.outline?.color&&(e.outline.color=p(e.outline.color,r?.add))}(e,t,r))}function f(e){for(const t of e)if("number"==typeof t)return t;return null}function h(e,t,r){for(let n=0;n<3;n++){const i=e[n];switch(i){case"symbol-value":{const e=r[n];return null!=e?e/t[n]:1}case"proportional":break;default:if(null!=i&&t[n])return i/t[n]}}return null}function y(e,t,r,n){switch(e){case"proportional":return r*n;case"symbol-value":return null!=t?t:r;default:return e}}async function g(e,t){if(e&&t)return(0,u.wk)(e)?async function(e,t){const n=e.symbolLayers;n&&await(0,i.jJ)(n,async e=>async function(e,t){switch(e.type){case"extrude":!function(e,t){const r=t[2];"number"==typeof r&&(e.size=r)}(e,t);break;case"icon":case"line":case"text":!function(e,t){const r=f(t);null!=r&&(e.size=r)}(e,t);break;case"path":!function(e,t){const r=h(t,o.Un,[e.width,void 0,e.height]);null!=r&&(e.width=y(t[0],e.width,1,r),e.height=y(t[2],e.height,1,r))}(e,t);break;case"object":await async function(e,t){const{resourceSize:n,symbolSize:i}=await async function(e){const{computeObjectLayerResourceSize:t}=await r.e(5404).then(r.bind(r,95404)),n=await t(e,10),{width:i,height:o,depth:s}=e,l=[i,s,o];let a=1;for(let e=0;e<3;e++){const t=l[e];if(null!=t){a=t/n[e];break}}for(let e=0;e<3;e++)null==l[e]&&(l[e]=n[e]*a);return{resourceSize:n,symbolSize:l}}(e),o=h(t,n,i);null!=o&&(e.width=y(t[0],i[0],n[0],o),e.depth=y(t[1],i[1],n[1],o),e.height=y(t[2],i[2],n[2],o))}(e,t)}}(e,t))}(e,t):void((0,u.$y)(e)&&function(e,t){const r=f(t);if(null!=r)switch(e.type){case"simple-marker":e.size=r;break;case"picture-marker":{const t=e.width/e.height;t>1?(e.width=r,e.height=r*t):(e.width=r*t,e.height=r);break}case"simple-line":e.width=r;break;case"text":e.font.size=r}}(e,t))}function m(e,t,r){if(e&&null!=t)if((0,u.wk)(e)){const n=e.symbolLayers;n&&n.forEach(e=>{if("object"===e.type)switch(r){case"tilt":e.tilt=(e.tilt??0)+t;break;case"roll":e.roll=(e.roll??0)+t;break;default:e.heading=(e.heading??0)+t}"icon"===e.type&&(e.angle+=t)})}else if((0,u.$y)(e))switch(e.type){case"simple-marker":case"picture-marker":case"text":e.angle+=t;break;case"cim":(0,s.KU)(e,t,!0)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9062],{62815(e,t,n){n.d(t,{N:()=>l,d:()=>a});var o=n(86211),r=n(73941),s=n(21325),i=n(52006);function l(e,t,n){const o=a(t,n);if(1!==o)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const n of e.curvePaths)for(const e of n){const n=(0,i.yP)(e);n.length>2&&(n[2]*=t)}if(e.paths)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const n of e.curveRings)for(const e of n){const n=(0,i.yP)(e);n.length>2&&(n[2]*=t)}if(e.rings)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return}}function a(e,t){return null==e||null==t||(e.vcsWkid??null)!==(t.vcsWkid??null)||(0,s.aI)(e,t)||(0,r.xP)(e)||(0,r.xP)(t)?1:(0,o.G9)(e)/(0,o.G9)(t)}},96520(e,t,n){n.d(t,{u:()=>a});var o=n(86211),r=n(21325),s=n(52006);function i(e,t,n){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e)t.length>2&&(t[2]*=n)}function l(e,t,n){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e){const e=(0,s.yP)(t);e.length>2&&(e[2]*=n)}}function a(e,t,n){if(!e&&!t||!n)return;const r=(0,o.G9)(n);f(e,n,r),f(t,n,r)}function f(e,t,n){if(e)for(const o of e)u(o.geometry,t,n)}function u(e,t,n){if(!e?.spatialReference||(0,r.aI)(e.spatialReference,t))return;const s=(0,o.G9)(e.spatialReference)/n;if(1!==s)if("x"in e)null!=e.z&&(e.z*=s);else if("curveRings"in e)l(e,e.curveRings,s);else if("curvePaths"in e)l(e,e.curvePaths,s);else if("rings"in e)i(e,e.rings,s);else if("paths"in e)i(e,e.paths,s);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=s)}},58501(e,t,n){n.d(t,{q:()=>r});var o=n(62815);function r(e,t,n){if(!n?.features||!n.hasZ)return;const r=(0,o.N)(n.geometryType,t,e.outSpatialReference);if(r)for(const e of n.features)r(e.geometry)}},22671(e,t,n){n.d(t,{A:()=>v});var o,r=n(5482),s=n(52106),i=n(66552),l=n(25482),a=n(4718),f=n(91429),u=n(16930),c=n(60408),p=n(65864),y=n(50498),h=n(20437),m=n(36005),g=n(43937);const d=new i.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=o=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,n,o){if(e)return void d.write(e,t,n,o);const{features:r}=this;if(r)for(const e of r)if(null!=e?.geometry)return void d.write(e.geometry.type,t,n,o)}readQueryGeometry(e,t){if(!e)return null;const n=!!e.spatialReference,o=(0,p.rS)(e);return o&&!n&&t.spatialReference&&(o.spatialReference=u.A.fromJSON(t.spatialReference)),o}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:n}=this;if(n)for(const e of n)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new o(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let n=0;n<t.features.length;n++){const o=t.features[n];if(o.geometry){const t=e?.[n];o.geometry=t?.toJSON()||o.geometry}}return t}quantize(e){const{scale:[t,n],translate:[o,r]}=e,s=this.features,i=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-o)/t),e=>Math.round((r-e)/n));for(let e=0,t=s.length;e<t;e++)i?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:n}=this;if(!n)return this;const{translate:[o,r],scale:[s,i]}=n;let l=null,a=null;if(this.hasZ&&null!=n?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=n;l=n=>n*t+e}if(this.hasM&&null!=n?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=n;a=n=>null==n?n:n*t+e}const f=this._getHydrationFunction(e,e=>e*s+o,e=>r-e*i,l,a);for(const{geometry:e}of t)null!=e&&f&&f(e);return this.transform=null,this}readFeaturesWithClass(e,t,n){const o=u.A.fromJSON(t.spatialReference),r=[];for(let t=0;t<e.length;t++){const s=e[t],i=n.fromJSON(s),l=s.geometry?.spatialReference;null==i.geometry||l||(i.geometry.spatialReference=o);const a=s.aggregateGeometries,f=i.aggregateGeometries;if(a&&null!=f)for(const e in f){const t=f[e],n=a[e],r=n?.spatialReference;null==t||r||(t.spatialReference=o)}r.push(i)}return r}_quantizePoints(e,t,n){let o,r;const s=[];for(let i=0,l=e.length;i<l;i++){const l=e[i];if(i>0){const e=t(l[0]),i=n(l[1]);e===o&&i===r||(s.push([e-o,i-r]),o=e,r=i)}else o=t(l[0]),r=n(l[1]),s.push([o,r])}return s.length>0?s:null}_getQuantizationFunction(e,t,n){return"point"===e?e=>(e.x=t(e.x),e.y=n(e.y),e):"polyline"===e||"polygon"===e?e=>{const o=(0,c.Bi)(e)?e.rings:e.paths,r=[];for(let e=0,s=o.length;e<s;e++){const s=o[e],i=this._quantizePoints(s,t,n);i&&r.push(i)}return r.length>0?((0,c.Bi)(e)?e.rings=r:e.paths=r,e):null}:"multipoint"===e?e=>{const o=this._quantizePoints(e.points,t,n);return o&&o.length>0?(e.points=o,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,n,o,r){return"point"===e?e=>{e.x=t(e.x),e.y=n(e.y),o&&(e.z=o(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,c.Bi)(e)?e.rings:e.paths;let i,l;for(let e=0,o=s.length;e<o;e++){const o=s[e];for(let e=0,r=o.length;e<r;e++){const r=o[e];e>0?(i+=r[0],l+=r[1]):(i=r[0],l=r[1]),r[0]=t(i),r[1]=n(l)}}if(o&&r)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=o(n[2]),n[3]=r(n[3])}}else if(o)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=o(n[2])}}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=r(n[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=n(e.ymin),e.xmax=t(e.xmax),e.ymax=n(e.ymax),o&&null!=e.zmax&&null!=e.zmin&&(e.zmax=o(e.zmax),e.zmin=o(e.zmin)),r&&null!=e.mmax&&null!=e.mmin&&(e.mmax=r(e.mmax),e.mmin=r(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let i,l;for(let e=0,o=s.length;e<o;e++){const o=s[e];e>0?(i+=o[0],l+=o[1]):(i=o[0],l=o[1]),o[0]=t(i),o[1]=n(l)}if(o&&r)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=o(t[2]),t[3]=r(t[3])}else if(o)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=o(t[2])}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=r(t[2])}}:null}};(0,r.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,r.Cg)([(0,f.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,r.Cg)([(0,f.MZ)({type:[s.A],json:{write:!0}})],v.prototype,"features",void 0),(0,r.Cg)([(0,m.w)("features")],v.prototype,"readFeatures",null),(0,r.Cg)([(0,f.MZ)({type:[h.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,r.Cg)([(0,f.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:d.read}}})],v.prototype,"geometryType",void 0),(0,r.Cg)([(0,g.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,r.Cg)([(0,f.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,r.Cg)([(0,f.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,r.Cg)([(0,f.MZ)({types:y.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,r.Cg)([(0,m.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,r.Cg)([(0,f.MZ)({type:u.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,r.Cg)([(0,g.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,r.Cg)([(0,f.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=o=(0,r.Cg)([(0,f.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0}}]);
|