@arcgis/core 4.28.0-next.20230621 → 4.28.0-next.20230622
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/05c0fdbfc82538f2f68d.js +1 -0
- package/assets/esri/core/workers/chunks/0bd95f46a0a9005a19f9.js +1 -0
- package/assets/esri/core/workers/chunks/19b4f02fb2392d964582.js +1 -0
- package/assets/esri/core/workers/chunks/26212a08ea383547335b.js +1 -0
- package/assets/esri/core/workers/chunks/{2420ec029236ab31d908.js → 2882a55a971af1f7858b.js} +1 -1
- package/assets/esri/core/workers/chunks/303238fc2fcdbb277981.js +1 -0
- package/assets/esri/core/workers/chunks/42dfebbe964f2b44ffab.js +1 -0
- package/assets/esri/core/workers/chunks/{4b235d1b6a72773cd4f4.js → 57bb8516fa998a0fba78.js} +1 -1
- package/assets/esri/core/workers/chunks/6208f2dfa9dfd3bca000.js +1 -0
- package/assets/esri/core/workers/chunks/64008bde5d3ffd9f2499.js +1 -0
- package/assets/esri/core/workers/chunks/{c1dfbda75abc748a6ca4.js → 6aa42f510969014db3f4.js} +1 -1
- package/assets/esri/core/workers/chunks/{cfe379a78a983373b3ac.js → 7304f45f5622a68253e4.js} +1 -1
- package/assets/esri/core/workers/chunks/733b70d6e5c466a67e9c.js +1 -0
- package/assets/esri/core/workers/chunks/7694521b44681d52b713.js +1 -0
- package/assets/esri/core/workers/chunks/80aa79040c0a7d039c3d.js +1 -0
- package/assets/esri/core/workers/chunks/91f957cd49a95a8a95f5.js +1 -0
- package/assets/esri/core/workers/chunks/{42b6315e21c4c1345ba5.js → 9f5337a80963e0b3c009.js} +1 -1
- package/assets/esri/core/workers/chunks/a16458b4653b284b4b80.js +1 -0
- package/assets/esri/core/workers/chunks/a54f361506012be46fdb.js +1 -0
- package/assets/esri/core/workers/chunks/{cfc3dcca2b69d20d5375.js → c0b9cc091efd5db827de.js} +1 -1
- package/assets/esri/core/workers/chunks/ce7f575a6c2053c7ca17.js +1 -0
- package/assets/esri/core/workers/chunks/d24f7ef6eca8c91b90b4.js +1 -0
- package/assets/esri/core/workers/chunks/dbd86e4b7983873cbe7c.js +1 -0
- package/assets/esri/core/workers/chunks/{3c3f65913006b84b2289.js → de20572d334abd4a7d82.js} +1 -1
- package/assets/esri/core/workers/chunks/{c8702e53a8ad6cf6ab85.js → dede2b4948f1f07a9859.js} +1 -1
- package/assets/esri/core/workers/chunks/e3f7d464f6d74523fc13.js +1 -0
- package/assets/esri/core/workers/chunks/f6040205c50e2795a1a0.js +1 -0
- package/assets/esri/core/workers/chunks/{915734255a79bff3ef0f.js → fcd54e9e64c2864f183c.js} +1 -1
- package/assets/esri/t9n/common.json +1 -1
- package/assets/esri/t9n/common_en.json +1 -1
- package/assets/esri/themes/base/_core.scss +6 -2
- package/assets/esri/themes/base/_mixins.scss +0 -147
- package/assets/esri/themes/base/widgets/_AreaMeasurement2D.scss +0 -8
- package/assets/esri/themes/base/widgets/_AreaMeasurement3D.scss +0 -8
- package/assets/esri/themes/base/widgets/_DirectLineMeasurement3D.scss +0 -1
- package/assets/esri/themes/base/widgets/_DistanceMeasurement2D.scss +0 -1
- package/assets/esri/themes/base/widgets/_MeasurementWidgetContent.scss +58 -0
- package/assets/esri/themes/base/widgets/_UnitSelect.scss +14 -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/assets/esri/widgets/AreaMeasurement2D/t9n/AreaMeasurement2D.json +1 -1
- package/assets/esri/widgets/AreaMeasurement2D/t9n/AreaMeasurement2D_en.json +1 -1
- package/assets/esri/widgets/AreaMeasurement3D/t9n/AreaMeasurement3D.json +1 -1
- package/assets/esri/widgets/AreaMeasurement3D/t9n/AreaMeasurement3D_en.json +1 -1
- package/assets/esri/widgets/DirectLineMeasurement3D/t9n/DirectLineMeasurement3D.json +1 -1
- package/assets/esri/widgets/DirectLineMeasurement3D/t9n/DirectLineMeasurement3D_en.json +1 -1
- package/assets/esri/widgets/DistanceMeasurement2D/t9n/DistanceMeasurement2D.json +1 -1
- package/assets/esri/widgets/DistanceMeasurement2D/t9n/DistanceMeasurement2D_en.json +1 -1
- package/core/promiseUtils.js +1 -1
- package/geometry/projection.js +1 -1
- package/interfaces.d.ts +270 -5
- package/layers/LinkChartLayer.d.ts +4 -0
- package/layers/LinkChartLayer.js +1 -1
- package/layers/support/TileInfoTilemapCache.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
- package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/CloudsGenerator.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Labeler.js +1 -1
- package/views/3d/layers/graphics/labelPlacement.js +1 -1
- package/views/3d/state/ViewState.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/support/DisplayQualityProfile.js +1 -1
- package/views/3d/support/MemoryController.js +1 -1
- package/views/3d/support/SceneViewPerformanceInfo.js +1 -1
- package/views/3d/support/cameraUtils.js +1 -1
- package/views/3d/support/viewpointUtils.js +1 -1
- package/views/3d/terrain/OverlayFramebufferObject.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/webgl-engine/Stage.js +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js +0 -1
- package/views/3d/webgl-engine/lib/Highlight.js +1 -1
- package/views/3d/webgl-engine/lib/OffscreenRendering.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/SSAOHelper.js +1 -1
- package/views/3d/webgl-engine/lib/SmaaRenderPass.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/widgets/AreaMeasurement2D.js +1 -1
- package/widgets/AreaMeasurement3D.js +1 -1
- package/widgets/DirectLineMeasurement3D.js +1 -1
- package/widgets/DistanceMeasurement2D.js +1 -1
- package/widgets/FeatureForm/FieldInput.js +1 -1
- package/widgets/support/MeasurementWidgetContent.js +5 -0
- package/widgets/support/UnitSelect.js +5 -0
- package/assets/esri/core/workers/chunks/07f16ea775b39a1a4a7b.js +0 -1
- package/assets/esri/core/workers/chunks/1bbc868d2430103951eb.js +0 -1
- package/assets/esri/core/workers/chunks/1d2ef88a8d028adef102.js +0 -1
- package/assets/esri/core/workers/chunks/39ae4b9b766f674bc6f2.js +0 -1
- package/assets/esri/core/workers/chunks/3b3d676b609c47a77164.js +0 -1
- package/assets/esri/core/workers/chunks/3d9a8cb638cf9b8ca4b3.js +0 -1
- package/assets/esri/core/workers/chunks/45629ff775e77234b227.js +0 -1
- package/assets/esri/core/workers/chunks/642510b0371311ff8e16.js +0 -1
- package/assets/esri/core/workers/chunks/7e4013f8c31c9a9438c6.js +0 -1
- package/assets/esri/core/workers/chunks/82939ead43848a13f765.js +0 -1
- package/assets/esri/core/workers/chunks/8b6b963230df56850580.js +0 -1
- package/assets/esri/core/workers/chunks/a9e9297267614c4c4f3b.js +0 -1
- package/assets/esri/core/workers/chunks/b31974524932e638df8c.js +0 -1
- package/assets/esri/core/workers/chunks/b75b4b132dbd9cb9d372.js +0 -1
- package/assets/esri/core/workers/chunks/cad7a2092ea7f51dbd8b.js +0 -1
- package/assets/esri/core/workers/chunks/d2a127f7bb0e2ba14a13.js +0 -1
- package/assets/esri/core/workers/chunks/e097f41bbfac00250477.js +0 -1
- package/assets/esri/core/workers/chunks/e55f80b774e090a0aa04.js +0 -1
- package/assets/esri/core/workers/chunks/e668c7e2e61aae6ca6e0.js +0 -1
- package/assets/esri/core/workers/chunks/f0299d93a95f40ea7cf7.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5995,5732,9880],{92835:(e,t,s)=>{s.d(t,{Z:()=>f});var i,n=s(43697),r=s(96674),o=s(35463),a=s(5600),l=(s(75215),s(67676),s(80442),s(71715)),h=s(52011),u=s(30556);let c=i=class extends r.wq{static get allTime(){return d}static get empty(){return _}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?e.getTime():null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?e.getTime():null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=null!=this.start?this.start.getTime():this.start,s=null!=this.end?this.end.getTime():this.end,i=null!=e.start?e.start.getTime():e.start,n=null!=e.end?e.end.getTime():e.end;return t===i&&s===n}expandTo(e){if(this.isEmpty||this.isAllTime)return this.clone();let t=this.start;t&&(t=(0,o.JE)(t,e));let s=this.end;if(s){const t=(0,o.JE)(s,e);s=s.getTime()===t.getTime()?t:(0,o.Nm)(t,1,e)}return new i({start:t,end:s})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,s=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,r=e.end?.getTime()??1/0;let o,a;if(n>=t&&n<=s?o=n:t>=n&&t<=r&&(o=t),s>=n&&s<=r?a=s:r>=t&&r<=s&&(a=r),null!=o&&null!=a&&!isNaN(o)&&!isNaN(a)){const e=new i;return e.start=o===-1/0?null:new Date(o),e.end=a===1/0?null:new Date(a),e}return i.empty}offset(e,t){if(this.isEmpty||this.isAllTime)return this.clone();const s=new i,{start:n,end:r}=this;return null!=n&&(s.start=(0,o.Nm)(n,e,t)),null!=r&&(s.end=(0,o.Nm)(r,e,t)),s}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,s=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:s})}};(0,n._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,n._)([(0,l.r)("end")],c.prototype,"readEnd",null),(0,n._)([(0,u.c)("end")],c.prototype,"writeEnd",null),(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,n._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,n._)([(0,l.r)("start")],c.prototype,"readStart",null),(0,n._)([(0,u.c)("start")],c.prototype,"writeStart",null),c=i=(0,n._)([(0,h.j)("esri.TimeExtent")],c);const d=new c,_=new c({start:void 0,end:void 0}),f=c},99880:(e,t,s)=>{s.d(t,{V:()=>l});var i=s(68773),n=(s(3172),s(20102)),r=s(92604),o=s(81271);const a=r.Z.getLogger("esri.assets");function l(e){if(!i.default.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.Z("assets:path-not-set","config.assetsPath is not set");return(0,o.v_)(i.default.assetsPath,e)}},5732:(e,t,s)=>{s.d(t,{c:()=>i,g:()=>n});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},91303:(e,t,s)=>{var i;s.d(t,{Y:()=>i}),function(e){e[e.KILOBYTES=1024]="KILOBYTES",e[e.MEGABYTES=1048576]="MEGABYTES",e[e.GIGABYTES=1073741824]="GIGABYTES"}(i||(i={}))},2368:(e,t,s)=>{s.d(t,{J:()=>u,j:()=>c});var i=s(43697),n=s(92036),r=(s(80442),s(22974)),o=(s(92604),s(70586)),a=s(31263),l=s(1153),h=s(52011);const u=e=>{let t=class extends e{clone(){const e=(0,l.vw)(this);(0,o.O3)(e,"unable to clone instance of non-accessor class");const t=e.metadatas,s=e.store,i={},n=new Map;for(const e in t){const o=t[e],l=s?.originOf(e),h=o.clonable;if(o.readOnly||!1===h||l!==a.s3.USER&&l!==a.s3.DEFAULTS&&l!==a.s3.WEB_MAP&&l!==a.s3.WEB_SCENE)continue;const u=this[e];let c=null;c="function"==typeof h?h(u):"reference"===h?u:(0,r.Vo)(u),null!=u&&null==c||(l===a.s3.DEFAULTS?n.set(e,c):i[e]=c)}const h=new(0,Object.getPrototypeOf(this).constructor)(i);if(n.size){const e=(0,l.vw)(h)?.store;if(e)for(const[t,s]of n)e.set(t,s,a.s3.DEFAULTS)}return h}};return t=(0,i._)([(0,h.j)("esri.core.Clonable")],t),t};let c=class extends(u(n.Z)){};c=(0,i._)([(0,h.j)("esri.core.Clonable")],c)},32448:(e,t,s)=>{s.d(t,{Z:()=>l});var i=s(43697),n=s(92036),r=s(50758),o=s(52011);class a{constructor(){this._emitter=new a.EventEmitter(this)}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}}!function(e){class t{constructor(e=null){this._target=e,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(e,t){const s=this._listenersMap&&this._listenersMap.get(e);if(!s)return!1;const i=this._target||this;return[...s].forEach((e=>{e.call(i,t)})),s.length>0}on(e,t){if(Array.isArray(e)){const s=e.map((e=>this.on(e,t)));return(0,r.AL)(s)}if(e.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap||(this._listenersMap=new Map);const s=this._listenersMap.get(e)||[];return s.push(t),this._listenersMap.set(e,s),(0,r.kB)((()=>{const s=this._listenersMap&&this._listenersMap.get(e)||[],i=s.indexOf(t);i>=0&&s.splice(i,1)}))}once(e,t){const s=this.on(e,(e=>{s.remove(),t.call(null,e)}));return s}hasEventListener(e){const t=this._listenersMap&&this._listenersMap.get(e);return null!=t&&t.length>0}}e.EventEmitter=t,e.EventedMixin=e=>{let s=class extends e{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};return s=(0,i._)([(0,o.j)("esri.core.Evented")],s),s};let s=class extends n.Z{constructor(){super(...arguments),this._emitter=new a.EventEmitter(this)}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};s=(0,i._)([(0,o.j)("esri.core.Evented")],s),e.EventedAccessor=s}(a||(a={}));const l=a},13867:(e,t,s)=>{s.d(t,{z:()=>n});var i=s(69801);class n{constructor(e,t){this._storage=new i.WJ,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this),t&&this._storage.registerRemoveFunc("",t)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,s=1){this._storage.put(this,e,t,s,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},69801:(e,t,s)=>{s.d(t,{WJ:()=>a,Xq:()=>o});var i,n,r=s(44553);(n=i||(i={}))[n.ALL=0]="ALL",n[n.SOME=1]="SOME";class o{constructor(e,t,s){this.name=e,this._storage=t,this.id=l+++":",this.size=0,this.maxSize=0,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),s&&(this._storage.registerRemoveFunc(this.id,s),this._removeFunc=!0)}destroy(){this._storage.clear(this),this._removeFunc&&this._storage.deregisterRemoveFunc(this.id),this._storage.deregister(this),this._storage=null}get hitRate(){return this._hit/(this._hit+this._miss)}get sizeAll(){return this._storage.size}resetHitRate(){this._hit=this._miss=0}put(e,t,s,i=0){this._storage.put(this,e,t,s,i)}get(e){const t=this._storage.get(this,e);return void 0===t?++this._miss:++this._hit,t}peek(e){return this._storage.peek(this,e)}pop(e){const t=this._storage.pop(this,e);return void 0===t?++this._miss:++this._hit,t}updateSize(e,t,s){this._storage.updateSize(this,e,t,s)}clear(){this._storage.clear(this)}clearAll(){this._storage.clearAll()}get performanceInfo(){return this._storage.performanceInfo}resetStats(){this._storage.resetStats()}}class a{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new r.Z,this._users=new r.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(e){this._users.push(e)}deregister(e){this._users.removeUnordered(e)}registerRemoveFunc(e,t){this._removeFuncs.push([e,t])}deregisterRemoveFunc(e){this._removeFuncs.filterInPlace((t=>t[0]!==e))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,0),this._checkSizeLimits()}put(e,t,s,n,r){t=e.id+t;const o=this._db.get(t);if(o&&(this._size-=o.size,e.size-=o.size,this._db.delete(t),o.entry!==s&&this._notifyRemove(t,o.entry,i.ALL)),n>this._maxSize)return void this._notifyRemove(t,s,i.ALL);if(void 0===s)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return void console.warn("Refusing to cache entry with invalid size "+n);const a=1+Math.max(r,-3)- -3;this._db.set(t,{entry:s,size:n,lifetime:a,lives:a}),this._size+=n,e.size+=n,this._checkSizeLimits()}updateSize(e,t,s,n){t=e.id+t;const r=this._db.get(t);if(r&&r.entry===s){for(this._size-=r.size,e.size-=r.size;n>this._maxSize;){const e=this._notifyRemove(t,s,i.SOME);if(!(null!=e&&e>0))return void this._db.delete(t);n=e}r.size=n,this._size+=n,e.size+=n,this._checkSizeLimits()}}pop(e,t){t=e.id+t;const s=this._db.get(t);if(s)return this._size-=s.size,e.size-=s.size,this._db.delete(t),++this._hit,s.entry;++this._miss}get(e,t){t=e.id+t;const s=this._db.get(t);if(void 0!==s)return this._db.delete(t),s.lives=s.lifetime,this._db.set(t,s),++this._hit,s.entry;++this._miss}peek(e,t){const s=this._db.get(e.id+t);return s?++this._hit:++this._miss,s?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},s=new Array;this._db.forEach(((e,i)=>{const n=e.lifetime;s[n]=(s[n]||0)+e.size,this._users.forAll((s=>{const{id:n,name:r}=s;if(i.startsWith(n)){const s=t[r]||0;t[r]=s+e.size}}))}));const i={};this._users.forAll((e=>{const s=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const n=t[s]||0;t[s]=n,i[s]=Math.round(100*e.hitRate)+"%"}else i[s]="0%"}));const n=Object.keys(t);n.sort(((e,s)=>t[s]-t[e])),n.forEach((s=>e[s]=Math.round(t[s]/2**20)+"MB / "+i[s]));for(let t=s.length-1;t>=0;--t){const i=s[t];i&&(e["Priority "+(t+-3-1)]=Math.round(i/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forAll((e=>e.resetHitRate()))}clear(e){const t=e.id;this._db.forEach(((e,s)=>{s.startsWith(t)&&(this._size-=e.size,this._db.delete(s),this._notifyRemove(s,e.entry,i.ALL))})),e.size=0}clearAll(){this._db.forEach(((e,t)=>this._notifyRemove(t,e.entry,i.ALL))),this._users.forEach((e=>e.size=0)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,s){let i;return this._removeFuncs.some((n=>{if(e.startsWith(n[0])){const e=n[1](t,s);return"number"==typeof e&&(i=e),!0}return!1})),i}_checkSizeLimits(){if(this._size>this._maxSize)for(const[e,t]of this._db)if(this._purgeItem(e,t),this._size<=.9*this.maxSize)return;this._users.forEach((e=>{if(e.maxSize>0&&e.size>e.maxSize)for(const[t,s]of this._db)if(t.startsWith(e.id)&&(this._purgeItem(t,s,e),e.size<=.9*e.maxSize))return}))}_purgeItem(e,t,s=this._users.find((t=>e.startsWith(t.id)))){if(this._db.delete(e),t.lives<=1){this._size-=t.size,s&&(s.size-=t.size);const n=this._notifyRemove(e,t.entry,i.SOME);null!=n&&n>0&&(this._size+=n,s&&(s.size+=n),t.lives=t.lifetime,t.size=n,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}let l=0},10661:(e,t,s)=>{s.d(t,{s:()=>n});var i=s(42100);class n extends i.s{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},66643:(e,t,s)=>{s.d(t,{Ed:()=>h,UI:()=>u,mt:()=>f,q6:()=>_,vr:()=>p});var i=s(43697),n=s(92036),r=s(70586),o=s(95330),a=s(5600),l=s(52011);function h(e,t,s){return(0,o.as)(e.map(((e,i)=>t.apply(s,[e,i]))))}async function u(e,t,s){return(await(0,o.as)(e.map(((e,i)=>t.apply(s,[e,i]))))).map((e=>e.value))}function c(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function _(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return c(await e)}catch(e){return d(e)}}async function f(e){try{return c(await e)}catch(e){return(0,o.r9)(e),d(e)}}function p(e,t){return new g(e,t)}let g=class extends n.Z{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,r.IM)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:s}=this._abortController;this.promise=e(s),this.promise.then((e=>{this._result=c(e),this._cleanup()}),(e=>{this._result=d(e),this._cleanup()})),this._abortHandle=(0,o.fu)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,r.hw)(this._abortHandle),this._abortController=null}};(0,i._)([(0,a.Cb)()],g.prototype,"value",null),(0,i._)([(0,a.Cb)()],g.prototype,"error",null),(0,i._)([(0,a.Cb)()],g.prototype,"finished",null),(0,i._)([(0,a.Cb)()],g.prototype,"promise",void 0),(0,i._)([(0,a.Cb)()],g.prototype,"_result",void 0),g=(0,i._)([(0,l.j)("esri.core.asyncUtils.ReactiveTask")],g)},43090:(e,t,s)=>{function i(e){return 32+e.length}function n(e){if(!e)return 0;let t=l;for(const s in e)if(e.hasOwnProperty(s)){const n=e[s];switch(typeof n){case"string":t+=i(n);break;case"number":t+=16;break;case"boolean":t+=4}}return t}function r(e){if(!e)return 0;if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return 32+8*t;let s=h;for(let i=0;i<t;i++)s+=o(e[i]);return s}(e);let t=l;for(const s in e)e.hasOwnProperty(s)&&(t+=o(e[s]));return t}function o(e){switch(typeof e){case"object":return r(e);case"string":return i(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(e,t){return h+e.length*t}s.d(t,{Ul:()=>r,do:()=>a,f2:()=>n});const l=32,h=32},24133:(e,t,s)=>{s.d(t,{Q:()=>o});var i=s(67676),n=s(44553),r=s(88764);class o{constructor(e=9,t){this._compareMinX=u,this._compareMinY=c,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),v.prune(),E.prune(),b.prune(),x.prune()}all(e){this._all(this._data,e)}search(e,t){let s=this._data;const i=this._toBBox;if(m(e,s))for(v.clear();s;){for(let n=0,r=s.children.length;n<r;n++){const r=s.children[n],o=s.leaf?i(r):r;m(e,o)&&(s.leaf?t(r):g(e,o)?this._all(r,t):v.push(r))}s=v.pop()}}collides(e){let t=this._data;const s=this._toBBox;if(!m(e,t))return!1;for(v.clear();t;){for(let i=0,n=t.children.length;i<n;i++){const n=t.children[i],r=t.leaf?s(n):n;if(m(e,r)){if(t.leaf||g(e,r))return!0;v.push(n)}}t=v.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,s=e.length;t<s;t++)this.insert(e[t]);return this}let t=this._build(e.slice(0,e.length),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new F([]),this}remove(e){if(!e)return this;let t,s=this._data,n=null,r=0,o=!1;const a=this._toBBox(e);for(b.clear(),x.clear();s||b.length>0;){if(s||(s=b.pop(),n=b.data[b.length-1],r=x.pop()??0,o=!0),s.leaf&&(t=(0,i.cq)(s.children,e,s.children.length,s.indexHint),-1!==t))return s.children.splice(t,1),b.push(s),this._condense(b),this;o||s.leaf||!g(s,a)?n?(r++,s=n.children[r],o=!1):s=null:(b.push(s),x.push(r),r=0,n=s,s=s.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_all(e,t){let s=e;for(E.clear();s;){if(!0===s.leaf)for(const e of s.children)t(e);else E.pushArray(s.children);s=E.pop()??null}}_build(e,t,s,i){const n=s-t+1;let r=this._maxEntries;if(n<=r){const i=new F(e.slice(t,s+1));return a(i,this._toBBox),i}i||(i=Math.ceil(Math.log(n)/Math.log(r)),r=Math.ceil(n/r**(i-1)));const o=new S([]);o.height=i;const l=Math.ceil(n/r),h=l*Math.ceil(Math.sqrt(r));y(e,t,s,h,this._compareMinX);for(let n=t;n<=s;n+=h){const t=Math.min(n+h-1,s);y(e,n,t,l,this._compareMinY);for(let s=n;s<=t;s+=l){const n=Math.min(s+l-1,t);o.children.push(this._build(e,s,n,i-1))}}return a(o,this._toBBox),o}_chooseSubtree(e,t,s,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==s;){let s,i=1/0,n=1/0;for(let r=0,o=t.children.length;r<o;r++){const o=t.children[r],a=d(o),l=f(e,o)-a;l<n?(n=l,i=a<i?a:i,s=o):l===n&&a<i&&(i=a,s=o)}t=s||t.children[0]}return t}_insert(e,t,s){const i=this._toBBox,n=s?e:i(e);b.clear();const r=this._chooseSubtree(n,this._data,t,b);for(r.children.push(e),h(r,n);t>=0&&b.data[t].children.length>this._maxEntries;)this._split(b,t),t--;this._adjustParentBBoxes(n,b,t)}_split(e,t){const s=e.data[t],i=s.children.length,n=this._minEntries;this._chooseSplitAxis(s,n,i);const r=this._chooseSplitIndex(s,n,i);if(!r)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const o=s.children.splice(r,s.children.length-r),l=s.leaf?new F(o):new S(o);l.height=s.height,a(s,this._toBBox),a(l,this._toBBox),t?e.data[t-1].children.push(l):this._splitRoot(s,l)}_splitRoot(e,t){this._data=new S([e,t]),this._data.height=e.height+1,a(this._data,this._toBBox)}_chooseSplitIndex(e,t,s){let i,n,r;i=n=1/0;for(let o=t;o<=s-t;o++){const t=l(e,0,o,this._toBBox),a=l(e,o,s,this._toBBox),h=p(t,a),u=d(t)+d(a);h<i?(i=h,r=o,n=u<n?u:n):h===i&&u<n&&(n=u,r=o)}return r}_chooseSplitAxis(e,t,s){const i=e.leaf?this._compareMinX:u,n=e.leaf?this._compareMinY:c;this._allDistMargin(e,t,s,i)<this._allDistMargin(e,t,s,n)&&e.children.sort(i)}_allDistMargin(e,t,s,i){e.children.sort(i);const n=this._toBBox,r=l(e,0,t,n),o=l(e,s-t,s,n);let a=_(r)+_(o);for(let i=t;i<s-t;i++){const t=e.children[i];h(r,e.leaf?n(t):t),a+=_(r)}for(let i=s-t-1;i>=t;i--){const t=e.children[i];h(o,e.leaf?n(t):t),a+=_(o)}return a}_adjustParentBBoxes(e,t,s){for(let i=s;i>=0;i--)h(t.data[i],e)}_condense(e){for(let t=e.length-1;t>=0;t--){const s=e.data[t];if(0===s.children.length)if(t>0){const n=e.data[t-1],r=n.children;r.splice((0,i.cq)(r,s,r.length,n.indexHint),1)}else this.clear();else a(s,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function a(e,t){l(e,0,e.children.length,t,e)}function l(e,t,s,i,n){n||(n=new F([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let r,o=t;o<s;o++)r=e.children[o],h(n,e.leaf?i(r):r);return n}function h(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function u(e,t){return e.minX-t.minX}function c(e,t){return e.minY-t.minY}function d(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function _(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function p(e,t){const s=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),n=Math.min(e.maxX,t.maxX),r=Math.min(e.maxY,t.maxY);return Math.max(0,n-s)*Math.max(0,r-i)}function g(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function m(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function y(e,t,s,i,n){const o=[t,s];for(;o.length;){const t=o.pop(),s=o.pop();if(t-s<=i)continue;const a=s+Math.ceil((t-s)/i/2)*i;(0,r.q)(e,a,s,t,n),o.push(s,a,a,t)}}const v=new n.Z,E=new n.Z,b=new n.Z,x=new n.Z({deallocator:void 0});class w{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class C extends w{constructor(){super(...arguments),this.height=1,this.indexHint=new i.SO}}class F extends C{constructor(e){super(),this.children=e,this.leaf=!0}}class S extends C{constructor(e){super(),this.children=e,this.leaf=!1}}},17445:(e,t,s)=>{s.d(t,{N1:()=>d,YP:()=>l,Z_:()=>p,gx:()=>h,nn:()=>g,on:()=>c,tX:()=>m});var i=s(91460),n=s(50758),r=s(70586),o=s(95330),a=s(26258);function l(e,t,s={}){return u(e,t,s,_)}function h(e,t,s={}){return u(e,t,s,f)}function u(e,t,s={},i){let n=null;const o=s.once?(e,s)=>{i(e)&&((0,r.hw)(n),t(e,s))}:(e,s)=>{i(e)&&t(e,s)};if(n=(0,a.aQ)(e,o,s.sync,s.equals),s.initial){const t=e();o(t,t)}return n}function c(e,t,s,o={}){let a=null,h=null,u=null;function c(){a&&h&&(h.remove(),o.onListenerRemove?.(a),a=null,h=null)}function d(e){o.once&&o.once&&(0,r.hw)(u),s(e)}const _=l(e,((e,s)=>{c(),(0,i.vT)(e)&&(a=e,h=(0,i.on)(e,t,d),o.onListenerAdd?.(e))}),{sync:o.sync,initial:!0});return u=(0,n.kB)((()=>{_.remove(),c()})),u}function d(e,t){return function(e,t,s){if((0,o.Hc)(s))return Promise.reject((0,o.zE)());const i=e();if(t?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,r.hw)(a)}return new Promise(((i,r)=>{a=(0,n.AL)([(0,o.fu)(s,(()=>{l(),r((0,o.zE)())})),u(e,(e=>{l(),i(e)}),{sync:!1,once:!0},t??_)])}))}(e,f,t)}function _(e){return!0}function f(e){return!!e}s(87538);const p={sync:!0},g={initial:!0},m={sync:!0,initial:!0}},72762:(e,t,s)=>{s.d(t,{t:()=>u});var i=s(43697),n=s(92036),r=s(50758),o=s(17445),a=s(1654),l=s(5600),h=s(52011);let u=class extends n.Z{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll()}add(e,t,s={}){return this._installWatch(e,t,s,o.YP)}addWhen(e,t,s={}){return this._installWatch(e,t,s,o.gx)}addOnCollectionChange(e,t,{initial:s=!1,final:i=!1}={}){const n=++this._handleId;return this.addHandles([(0,o.on)(e,"after-changes",this._createSyncUpdatingCallback(),o.Z_),(0,o.on)(e,"change",t,{onListenerAdd:s?e=>t({added:e.toArray(),removed:[]}):void 0,onListenerRemove:i?e=>t({added:[],removed:e.toArray()}):void 0})],n),(0,r.kB)((()=>this.removeHandles(n)))}addPromise(e){if(null==e)return e;const t=++this._handleId;this.addHandles((0,r.kB)((()=>{this._pendingPromises.delete(e)&&(0!==this._pendingPromises.size||this.hasHandles(c)||this._set("updating",!1))})),t),this._pendingPromises.add(e),this._set("updating",!0);const s=()=>this.removeHandles(t);return e.then(s,s),e}removeAll(){this._pendingPromises.clear(),this.removeAllHandles(),this._set("updating",!1)}_installWatch(e,t,s={},i){const n=++this._handleId;s.sync||this._installSyncUpdatingWatch(e,n);const o=i(e,t,s);return this.addHandles(o,n),(0,r.kB)((()=>this.removeHandles(n)))}_installSyncUpdatingWatch(e,t){const s=this._createSyncUpdatingCallback(),i=(0,o.YP)(e,s,{sync:!0,equals:()=>!1});return this.addHandles(i,t),i}_createSyncUpdatingCallback(){return()=>{this.removeHandles(c),++this._scheduleHandleId;const e=this._scheduleHandleId;this._get("updating")||this._set("updating",!0),this.addHandles((0,a.Os)((()=>{e===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this.removeHandles(c))})),c)}}};(0,i._)([(0,l.Cb)({readOnly:!0})],u.prototype,"updating",void 0),u=(0,i._)([(0,h.j)("esri.core.support.WatchUpdatingTracking")],u);const c=-42},35463:(e,t,s)=>{s.d(t,{JE:()=>o,Nm:()=>r,rJ:()=>a}),s(80442);const i={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},n={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function r(e,t,s){const i=new Date(e.getTime());if(t&&s){const e=n[s],{getter:r,setter:o,multiplier:a}=e;if("months"===s){const e=function(e,t){const s=new Date(e,t+1,1);return s.setDate(0),s.getDate()}(i.getFullYear(),i.getMonth()+t);i.getDate()>e&&i.setDate(e)}i[o](i[r]()+t*a)}return i}function o(e,t){switch(t){case"milliseconds":return new Date(e.getTime());case"seconds":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());case"minutes":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes());case"hours":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours());case"days":return new Date(e.getFullYear(),e.getMonth(),e.getDate());case"weeks":return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay());case"months":return new Date(e.getFullYear(),e.getMonth(),1);case"years":return new Date(e.getFullYear(),0,1);case"decades":return new Date(e.getFullYear()-e.getFullYear()%10,0,1);case"centuries":return new Date(e.getFullYear()-e.getFullYear()%100,0,1);default:return new Date}}function a(e,t,s){return 0===e?0:e*i[t]/i[s]}},37549:(e,t,s)=>{s.d(t,{H:()=>a});var i=s(80442),n=s(24133),r=s(24470);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.Q(9,(0,i.Z)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach(((s,i)=>{e[t++]=i})),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((e=>this._idByBounds.has(e)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,r.cS)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,s){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,s)}(this._index,e,(e=>t(this._idByBounds.get(e))))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},57191:(e,t,s)=>{s.d(t,{Z:()=>g});var i=s(20102),n=s(32448),r=s(92604),o=s(60437),a=s(24470),l=s(98732),h=s(37549),u=s(29730),c=s(70272),d=s(5428);const _={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t)=>new c.u_(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>(null==e.centroid&&(e.centroid=(0,u.Y)(new d.Z,e.geometry,t.hasZ,t.hasM)),e.centroid)};var f=s(11490);const p=(0,o.Ue)();class g{constructor(e){this.geometryInfo=e,this._boundsStore=new h.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new n.Z,this.featureAdapter=_}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach((t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,s,i,n]=this.fullBounds;return{xmin:t,ymin:s,xmax:i,ymax:n,spatialReference:(0,f.S2)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const s of e){const e=this._boundsStore.get(s.objectId);e&&t((0,o.JR)(p,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach((t=>e(t)))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,(e=>{t(this._featuresById.get(e))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let e=!1;this._featuresById.forEach(((t,s)=>{this._markedIds.has(s)||(e=!0,this._remove(t))})),this._markedIds.clear(),e&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void r.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new i.Z("featurestore:invalid-feature","feature id is missing",{feature:e}));const s=this._featuresById.get(t);let n;if(this._markedIds.add(t),s?(e.displayId=s.displayId,n=this._boundsStore.get(t),this._boundsStore.delete(t)):null!=this.onFeatureAdd&&this.onFeatureAdd(e),null==e.geometry||!e.geometry.coords||!e.geometry.coords.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);n=(0,l.$)(null!=n?n:(0,a.Ue)(),e.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=n&&this._boundsStore.set(t,n),this._featuresById.set(t,e)}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._markedIds.delete(t),this._boundsStore.delete(t),this._featuresById.delete(t),e}}},39450:(e,t,s)=>{s.d(t,{Z:()=>u});var i,n=s(43697),r=s(96674),o=s(5600),a=s(75215),l=(s(67676),s(80442),s(52011));let h=i=class extends r.wq{constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new i({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,n._)([(0,o.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],h.prototype,"cols",void 0),(0,n._)([(0,o.Cb)({type:a.z8,json:{write:!0}})],h.prototype,"level",void 0),(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"levelValue",void 0),(0,n._)([(0,o.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],h.prototype,"origin",void 0),(0,n._)([(0,o.Cb)({type:Number,json:{write:!0}})],h.prototype,"resolution",void 0),(0,n._)([(0,o.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],h.prototype,"rows",void 0),(0,n._)([(0,o.Cb)({type:Number,json:{write:!0}})],h.prototype,"scale",void 0),h=i=(0,n._)([(0,l.j)("esri.layers.support.LOD")],h);const u=h},11145:(e,t,s)=>{s.d(t,{Z:()=>C});var i,n=s(43697),r=s(35454),o=s(96674),a=s(67900),l=s(5600),h=s(75215),u=(s(67676),s(80442),s(71715)),c=s(52011),d=s(30556),_=s(94139),f=s(82971),p=s(24470),g=s(8744),m=s(40488),y=s(39450),v=s(43077);const E=new r.X({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let b=i=class extends o.wq{static create(e={}){const{resolutionFactor:t=1,scales:s,size:n=256,spatialReference:r=f.Z.WebMercator,numLODs:o=24}=e;if(!(0,g.JY)(r)){const e=[];if(s)for(let t=0;t<s.length;t++){const i=s[t];e.push(new y.Z({level:t,scale:i,resolution:i}))}else{let t=5e-4;for(let s=o-1;s>=0;s--)e.unshift(new y.Z({level:s,scale:t,resolution:t})),t*=2}return new i({dpi:96,lods:e,origin:new _.Z(0,0,r),size:[n,n],spatialReference:r})}const l=(0,g.C5)(r),h=e.origin?new _.Z({x:e.origin.x,y:e.origin.y,spatialReference:r}):new _.Z(l?{x:l.origin[0],y:l.origin[1],spatialReference:r}:{x:0,y:0,spatialReference:r}),u=1/(39.37*(0,a.c9)(r)*96),c=[];if(s)for(let e=0;e<s.length;e++){const t=s[e],i=t*u;c.push(new y.Z({level:e,scale:t,resolution:i}))}else{let e=(0,g.sT)(r)?512/n*591657527.5917094:256/n*591657527.591555;const s=Math.ceil(o/t);c.push(new y.Z({level:0,scale:e,resolution:e*u}));for(let i=1;i<s;i++){const s=e/2**t,n=s*u;c.push(new y.Z({level:i,scale:s,resolution:n})),e=s}}return new i({dpi:96,lods:c,origin:h,size:[n,n],spatialReference:r})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const s=(0,g.C5)(e);return e.isWrappable&&!!s&&Math.abs(s.origin[0]-t.x)<=s.dx}return!1}readOrigin(e,t){return _.Z.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,s=0;const i=[],n=this._levelToLOD={};e&&(t=-1/0,s=1/0,e.forEach((e=>{i.push(e.scale),t=e.scale>t?e.scale:t,s=e.scale<s?e.scale:s,n[e.level]=e}))),this._set("scales",i),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const s=Math.floor(e),i=s+1;return t[s]/(t[s]/t[i])**(e-s)}scaleToZoom(e){const t=this.scales,s=t.length-1;let i=0;for(;i<s;i++){const s=t[i],n=t[i+1];if(s<=e)return i;if(n===e)return i+1;if(s>e&&n<e)return i+Math.log(s/e)/Math.log(s/n)}return i}snapScale(e,t=.95){const s=this.scaleToZoom(e);return s%Math.floor(s)>=t?this.zoomToScale(Math.ceil(s)):this.zoomToScale(Math.floor(s))}tileAt(e,t,s,i){const n=this.lodAt(e);if(!n)return null;let r,o;if("number"==typeof t)r=t,o=s;else if((0,g.fS)(t.spatialReference,this.spatialReference))r=t.x,o=t.y,i=s;else{const e=(0,m.iV)(t,this.spatialReference);if(null==e)return null;r=e.x,o=e.y,i=s}const a=n.resolution*this.size[0],l=n.resolution*this.size[1];return i||(i=new v.f(null,0,0,0,(0,p.Ue)())),i.level=e,i.row=Math.floor((this.origin.y-o)/l+.001),i.col=Math.floor((r-this.origin.x)/a+.001),this.updateTileInfo(i),i}updateTileInfo(e,t=i.ExtrapolateOptions.NONE){let s=this.lodAt(e.level);if(!s&&t===i.ExtrapolateOptions.POWER_OF_TWO){const t=this.lods[this.lods.length-1];t.level<e.level&&(s=t)}if(!s)return;const n=e.level-s.level,r=s.resolution*this.size[0]/2**n,o=s.resolution*this.size[1]/2**n;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=(0,p.Ue)()),e.extent[0]=this.origin.x+e.col*r,e.extent[1]=this.origin.y-(e.row+1)*o,e.extent[2]=e.extent[0]+r,e.extent[3]=e.extent[1]+o}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const s=this.lodAt(t.level);if(null==s)return null;const{resolution:i}=s,n=i*this.size[0],r=i*this.size[1];return e[0]=this.origin.x+t.col*n,e[1]=this.origin.y-(t.row+1)*r,e[2]=e[0]+n,e[3]=e[1]+r,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return i.fromJSON(this.write({}))}getOrCreateCompatible(e,t){if(256===this.size[0]&&256===this.size[1])return 256===e?this:null;const s=[],n=this.lods.length;for(let e=0;e<n;e++){const i=this.lods[e],n=i.resolution*t;s.push(new y.Z({level:i.level,scale:i.scale,resolution:n}))}return new i({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:s})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let s=0;s<e.length;s++){const i=e[s];this._upsampleLevels[i.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/i.resolution:0},t=i}}};var x,w;(0,n._)([(0,l.Cb)({type:Number,json:{write:!0}})],b.prototype,"compressionQuality",void 0),(0,n._)([(0,l.Cb)({type:Number,json:{write:!0}})],b.prototype,"dpi",void 0),(0,n._)([(0,l.Cb)({type:String,json:{read:E.read,write:E.write,origins:{"web-scene":{read:!1,write:!1}}}})],b.prototype,"format",void 0),(0,n._)([(0,l.Cb)({readOnly:!0})],b.prototype,"isWrappable",null),(0,n._)([(0,l.Cb)({type:_.Z,json:{write:!0}})],b.prototype,"origin",void 0),(0,n._)([(0,u.r)("origin")],b.prototype,"readOrigin",null),(0,n._)([(0,l.Cb)({type:[y.Z],value:null,json:{write:!0}})],b.prototype,"lods",null),(0,n._)([(0,l.Cb)({readOnly:!0})],b.prototype,"scales",void 0),(0,n._)([(0,l.Cb)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],b.prototype,"size",void 0),(0,n._)([(0,u.r)("size",["rows","cols"])],b.prototype,"readSize",null),(0,n._)([(0,d.c)("size",{cols:{type:h.z8},rows:{type:h.z8}})],b.prototype,"writeSize",null),(0,n._)([(0,l.Cb)({type:f.Z,json:{write:!0}})],b.prototype,"spatialReference",void 0),b=i=(0,n._)([(0,c.j)("esri.layers.support.TileInfo")],b),x=b||(b={}),(w=x.ExtrapolateOptions||(x.ExtrapolateOptions={}))[w.NONE=0]="NONE",w[w.POWER_OF_TWO=1]="POWER_OF_TWO";const C=b},43077:(e,t,s)=>{s.d(t,{f:()=>i});class i{constructor(e,t,s,i,n=void 0){this.id=e,this.level=t,this.row=s,this.col=i,this.extent=n}}},99282:(e,t,s)=>{s.d(t,{a:()=>r});var i=s(67900),n=s(68441);const r={unknown:1,inches:(0,i.En)(1,"meters","inches"),feet:(0,i.En)(1,"meters","feet"),"us-feet":(0,i.En)(1,"meters","us-feet"),yards:(0,i.En)(1,"meters","yards"),miles:(0,i.En)(1,"meters","miles"),"nautical-miles":(0,i.En)(1,"meters","nautical-miles"),millimeters:(0,i.En)(1,"meters","millimeters"),centimeters:(0,i.En)(1,"meters","centimeters"),decimeters:(0,i.En)(1,"meters","decimeters"),meters:(0,i.En)(1,"meters","meters"),kilometers:(0,i.En)(1,"meters","kilometers"),"decimal-degrees":1/(0,i.ty)(1,"meters",n.sv.radius)}},28694:(e,t,s)=>{s.d(t,{p:()=>n});var i=s(69285);function n(e,t,s){if(!s||!s.features||!s.hasZ)return;const n=(0,i.k)(s.geometryType,t,e.outSpatialReference);if(null!=n)for(const e of s.features)n(e.geometry)}},86787:(e,t,s)=>{s.d(t,{Z:()=>E});var i,n=s(43697),r=s(35454),o=s(96674),a=s(70586),l=s(5600),h=(s(75215),s(67676),s(80442),s(71715)),u=s(52011),c=s(30556),d=s(35671);let _=i=class extends o.wq{constructor(e){super(e)}async collectRequiredFields(e,t){return(0,d.io)(e,t,this.expression)}clone(){return new i({expression:this.expression,title:this.title})}equals(e){return this.expression===e.expression&&this.title===e.title}};(0,n._)([(0,l.Cb)({type:String,json:{write:!0}})],_.prototype,"expression",void 0),(0,n._)([(0,l.Cb)({type:String,json:{write:!0}})],_.prototype,"title",void 0),_=i=(0,n._)([(0,u.j)("esri.layers.support.FeatureExpressionInfo")],_);const f=_;var p,g=s(12541);const m=(0,r.w)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),y=new r.X({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let v=p=class extends o.wq{constructor(e){super(e),this.offset=null}readFeatureExpressionInfo(e,t){return null!=e?e:t.featureExpression&&0===t.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,t,s,i){t[s]=e.write({},i),"0"===e.expression&&(t.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:t}=this;return this._isOverridden("mode")?this._get("mode"):null!=e||t?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,t){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,t):null}clone(){return new p({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})}equals(e){return this.mode===e.mode&&this.offset===e.offset&&this.unit===e.unit&&(0,a._W)(this.featureExpressionInfo,e.featureExpressionInfo)}};(0,n._)([(0,l.Cb)({type:f,json:{write:!0}})],v.prototype,"featureExpressionInfo",void 0),(0,n._)([(0,h.r)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],v.prototype,"readFeatureExpressionInfo",null),(0,n._)([(0,c.c)("featureExpressionInfo",{featureExpressionInfo:{type:f},"featureExpression.value":{type:[0]}})],v.prototype,"writeFeatureExpressionInfo",null),(0,n._)([(0,l.Cb)({type:m.apiValues,nonNullable:!0,json:{type:m.jsonValues,read:m.read,write:{writer:m.write,isRequired:!0}}})],v.prototype,"mode",null),(0,n._)([(0,l.Cb)({type:Number,json:{write:!0}})],v.prototype,"offset",void 0),(0,n._)([(0,l.Cb)({type:g.f9,json:{type:String,read:y.read,write:y.write}})],v.prototype,"unit",null),v=p=(0,n._)([(0,u.j)("esri.layers.support.ElevationInfo")],v);const E=v},12541:(e,t,s)=>{s.d(t,{Z7:()=>n,f9:()=>r});var i=s(99282);function n(e){return 1/(i.a[e]||1)}const r=function(){const e=Object.keys(i.a);return e.sort(),e}()},65967:(e,t,s)=>{s.r(t),s.d(t,{default:()=>ve});var i=s(43697),n=s(32448),r=s(95330),o=s(17445),a=s(5600),l=(s(75215),s(67676)),h=(s(80442),s(52011)),u=s(72762),c=s(82971),d=s(57191),_=s(64106),f=s(11145),p=s(14165),g=s(86787),m=s(13867),y=s(30175),v=s(67900),E=s(12541);function b(e=!1,t){if(e){const{elevationInfo:e,alignPointsInFeatures:s,spatialReference:i}=t;return new w(e,s,i)}return new x}class x{async alignCandidates(e,t){return e}notifyElevationSourceChange(){}}class w{constructor(e,t,s){this._elevationInfo=e,this._alignPointsInFeatures=t,this.spatialReference=s,this._alignmentsCache=new m.z(1024),this._cacheVersion=0,this._metersPerVerticalUnit=(0,v._R)(s)}async alignCandidates(e,t){const s=this._elevationInfo;return null==s||"absolute-height"!==s.mode||s.featureExpressionInfo?this._alignComputedElevationCandidates(e,t):(this._alignAbsoluteElevationCandidates(e,s),e)}notifyElevationSourceChange(){this._alignmentsCache.clear(),this._cacheVersion++}_alignAbsoluteElevationCandidates(e,t){const{offset:s,unit:i}=t;if(null==s)return;const n=s*((0,E.Z7)(i??"meters")/this._metersPerVerticalUnit);for(const t of e)switch(t.type){case"edge":t.start.z+=n,t.end.z+=n;continue;case"vertex":t.target.z+=n;continue}}async _alignComputedElevationCandidates(e,t){const s=new Map;for(const t of e)(0,y.s1)(s,t.objectId,S).push(t);const[i,n,o]=this._prepareQuery(s),a=await this._alignPointsInFeatures(i,t);if((0,r.k_)(t),o!==this._cacheVersion)return this._alignComputedElevationCandidates(e,t);this._applyCacheAndResponse(i,a,n);const{drapedObjectIds:l,failedObjectIds:h}=a,u=[];for(const t of e){const{objectId:e}=t;l.has(e)&&"edge"===t.type&&(t.draped=!0),h.has(e)||u.push(t)}return u}_prepareQuery(e){const t=[],s=[];for(const[i,n]of e){const e=[];for(const t of n)this._addToQueriesOrCachedResult(i,t.target,e,s),"edge"===t.type&&(this._addToQueriesOrCachedResult(i,t.start,e,s),this._addToQueriesOrCachedResult(i,t.end,e,s));0!==e.length&&t.push({objectId:i,points:e})}return[t,s,this._cacheVersion]}_addToQueriesOrCachedResult(e,t,s,i){const n=F(e,t),r=this._alignmentsCache.get(n);null==r?s.push(t):i.push(new C(t,r))}_applyCacheAndResponse(e,{elevations:t,drapedObjectIds:s,failedObjectIds:i},n){for(const e of n)e.apply();let r=0;const o=this._alignmentsCache;for(const{objectId:n,points:a}of e){if(i.has(n)){r+=a.length;continue}const e=!s.has(n);for(const s of a){const i=F(n,s),a=t[r++];s.z=a,e&&o.put(i,a,1)}}}}class C{constructor(e,t){this.point=e,this.z=t}apply(){this.point.z=this.z}}function F(e,{x:t,y:s,z:i}){return`${e}-${t}-${s}-${i??0}}`}function S(){return[]}class T{filter(e,t){return t}notifyElevationSourceChange(){}}class I{filter(e,t){const{point:s,distance:i}=e,{z:n}=s;if(null==n)return t;if(0===t.length)return t;const r=function(e){return"number"==typeof e?{x:e,y:e,z:e}:e}(i),o=this._updateCandidatesTo3D(t,s,r).filter(z);return o.sort(R),o}_updateCandidatesTo3D(e,t,s){for(const i of e)switch(i.type){case"edge":A(i,t,s);continue;case"vertex":O(i,t,s);continue}return e}}function z(e){return e.distance<=1}function M(e=!1){return e?new I:new T}function A(e,t,{x:s,y:i,z:n}){const{start:r,end:o,target:a}=e;e.draped||function(e,t,s,i){const n=i.x-s.x,r=i.y-s.y,o=i.z-s.z,a=n*n+r*r+o*o,l=(t.x-s.x)*n+(t.y-s.y)*r+o*(t.z-s.z),h=Math.min(1,Math.max(0,l/a)),u=s.x+n*h,c=s.y+r*h,d=s.z+o*h;e.x=u,e.y=c,e.z=d}(a,t,r,o);const l=(t.x-a.x)/s,h=(t.y-a.y)/i,u=(t.z-a.z)/n;e.distance=Math.sqrt(l*l+h*h+u*u)}function O(e,t,{x:s,y:i,z:n}){const{target:r}=e,o=(t.x-r.x)/s,a=(t.y-r.y)/i,l=(t.z-r.z)/n,h=Math.sqrt(o*o+a*a+l*l);e.distance=h}function R(e,t){return e.distance-t.distance}var B=s(22974),D=s(19153);function P(e=!1,t){return e?new j(t):new H}class H{async fetch(){return[]}notifySymbologyChange(){}}class j{constructor(e){this._getSymbologyCandidates=e,this._candidatesCache=new m.z(1024),this._cacheVersion=0}async fetch(e,t){if(0===e.length)return[];const s=[],i=[],n=this._candidatesCache;for(const t of e){const e=k(t),r=n.get(e);if(r)for(const e of r)i.push((0,B.d9)(e));else s.push(t),n.put(e,[],1)}if(0===s.length)return i;const o=this._cacheVersion,{candidates:a,sourceCandidateIndices:l}=await this._getSymbologyCandidates(s,t);if((0,r.k_)(t),o!==this._cacheVersion)return this.fetch(e,t);const h=[],{length:u}=a;for(let e=0;e<u;++e){const t=a[e],i=k(s[l[e]]),r=n.get(i);r.push(t),n.put(i,r,r.length),h.push((0,B.d9)(t))}return i.concat(h)}notifySymbologyChange(){this._candidatesCache.clear(),this._cacheVersion++}}function k(e){switch(e.type){case"vertex":{const{objectId:t,target:s}=e,i=`${t}-vertex-${s.x}-${s.y}-${s.z??0}`;return(0,D.hP)(i).toString()}case"edge":{const{objectId:t,start:s,end:i}=e,n=`${t}-edge-${s.x}-${s.y}-${s.z??0}-to-${i.x}-${i.y}-${i.z??0}`;return(0,D.hP)(n).toString()}default:return""}}var N=s(92036);let Z=class extends N.Z{constructor(){super(...arguments),this.updating=!1,this._pending=[]}push(e,t){this._pending.push({promise:e,callback:t}),1===this._pending.length&&this._process()}_process(){if(!this._pending.length)return void(this.updating=!1);this.updating=!0;const e=this._pending[0];e.promise.then((t=>e.callback(t))).catch((()=>{})).then((()=>{this._pending.shift(),this._process()}))}};(0,i._)([(0,a.Cb)()],Z.prototype,"updating",void 0),Z=(0,i._)([(0,h.j)("esri.core.AsyncSequence")],Z);var Y,L=s(66643),U=s(50758),X=s(92604),q=s(6570),V=s(24470),W=s(98732),J=s(66677),G=s(78760),$=s(34599);class Q{constructor(e,t){this.data=e,this.resolution=t,this.state={type:Y.CREATED},this.alive=!0}process(e){switch(this.state.type){case Y.CREATED:return this.state=this._gotoFetchCount(this.state,e),this.state.task.promise.then(e.resume,e.resume);case Y.FETCH_COUNT:break;case Y.FETCHED_COUNT:return this.state=this._gotoFetchFeatures(this.state,e),this.state.task.promise.then(e.resume,e.resume);case Y.FETCH_FEATURES:break;case Y.FETCHED_FEATURES:this.state=this._goToDone(this.state,e);case Y.DONE:}return null}get debugInfo(){return{data:this.data,featureCount:this._featureCount,state:this._stateToString}}get _featureCount(){switch(this.state.type){case Y.CREATED:case Y.FETCH_COUNT:return 0;case Y.FETCHED_COUNT:return this.state.featureCount;case Y.FETCH_FEATURES:return this.state.previous.featureCount;case Y.FETCHED_FEATURES:return this.state.features.length;case Y.DONE:return this.state.previous.features.length}}get _stateToString(){switch(this.state.type){case Y.CREATED:return"created";case Y.FETCH_COUNT:return"fetch-count";case Y.FETCHED_COUNT:return"fetched-count";case Y.FETCH_FEATURES:return"fetch-features";case Y.FETCHED_FEATURES:return"fetched-features";case Y.DONE:return"done"}}_gotoFetchCount(e,t){return{type:Y.FETCH_COUNT,previous:e,task:(0,L.vr)((async e=>{const s=await(0,L.mt)(t.fetchCount(this,e));this.state.type===Y.FETCH_COUNT&&(this.state=this._gotoFetchedCount(this.state,s.ok?s.value:1/0))}))}}_gotoFetchedCount(e,t){return{type:Y.FETCHED_COUNT,featureCount:t,previous:e}}_gotoFetchFeatures(e,t){return{type:Y.FETCH_FEATURES,previous:e,task:(0,L.vr)((async s=>{const i=await(0,L.mt)(t.fetchFeatures(this,e.featureCount,s));this.state.type===Y.FETCH_FEATURES&&(this.state=this._gotoFetchedFeatures(this.state,i.ok?i.value:[]))}))}}_gotoFetchedFeatures(e,t){return{type:Y.FETCHED_FEATURES,previous:e,features:t}}_goToDone(e,t){return t.finish(this,e.features),{type:Y.DONE,previous:e}}reset(){const e=this.state;switch(this.state={type:Y.CREATED},e.type){case Y.CREATED:case Y.FETCHED_COUNT:case Y.FETCHED_FEATURES:case Y.DONE:break;case Y.FETCH_COUNT:case Y.FETCH_FEATURES:e.task.abort()}}intersects(e){return null==e||!this.data.extent||((0,V.oJ)(e,K),(0,V.kK)(this.data.extent,K))}}!function(e){e[e.CREATED=0]="CREATED",e[e.FETCH_COUNT=1]="FETCH_COUNT",e[e.FETCHED_COUNT=2]="FETCHED_COUNT",e[e.FETCH_FEATURES=3]="FETCH_FEATURES",e[e.FETCHED_FEATURES=4]="FETCHED_FEATURES",e[e.DONE=5]="DONE"}(Y||(Y={}));const K=(0,V.Ue)();let ee=class extends N.Z{get _minimumVerticesPerFeature(){switch(this.store?.featureStore.geometryType){case"esriGeometryPoint":case"esriGeometryMultipoint":return 1;case"esriGeometryPolygon":return 4;case"esriGeometryPolyline":return 2}}set filter(e){const t=this._get("filter"),s=this._filterProperties(e);JSON.stringify(t)!==JSON.stringify(s)&&this._set("filter",s)}set customParameters(e){const t=this._get("customParameters");JSON.stringify(t)!==JSON.stringify(e)&&this._set("customParameters",e)}get _configuration(){return{filter:this.filter,customParameters:this.customParameters,tileInfo:this.tileInfo,tileSize:this.tileSize}}set tileInfo(e){const t=this._get("tileInfo");t!==e&&(null!=e&&null!=t&&JSON.stringify(e)===JSON.stringify(t)||(this._set("tileInfo",e),this.store.tileInfo=e))}set tileSize(e){this._get("tileSize")!==e&&this._set("tileSize",e)}get updating(){return this.updatingExcludingEdits||this._pendingEdits.updating}get updatingExcludingEdits(){return this._updatingHandles.updating}get hasZ(){return this.store.featureStore.hasZ}constructor(e){super(e),this.tilesOfInterest=[],this.availability=0,this._pendingTiles=new Map,this._updatingHandles=new u.t,this._pendingEdits=new Z,this._pendingEditsAbortController=new AbortController}initialize(){this._initializeFetchExtent(),this._updatingHandles.add((()=>this._configuration),(()=>this.refresh())),this._updatingHandles.add((()=>this.tilesOfInterest),((e,t)=>{(0,l.fS)(e,t,(({id:e},{id:t})=>e===t))||this._process()}),o.Z_)}destroy(){this._pendingTiles.forEach((e=>this._deletePendingTile(e))),this._pendingTiles.clear(),this.store.destroy(),this.tilesOfInterest.length=0,this._pendingEditsAbortController.abort(),this._pendingEditsAbortController=null,this._updatingHandles.destroy()}refresh(){this.store.refresh(),this._pendingTiles.forEach((e=>this._deletePendingTile(e))),this._process()}applyEdits(e){this._pendingEdits.push(e,(async e=>{if(0===e.addedFeatures.length&&0===e.updatedFeatures.length&&0===e.deletedFeatures.length)return;for(const[,e]of this._pendingTiles)e.reset();const t={...e,deletedFeatures:e.deletedFeatures.map((({objectId:e,globalId:t})=>e&&-1!==e?e:this._lookupObjectIdByGlobalId(t)))};await this._updatingHandles.addPromise(this.store.processEdits(t,((e,t)=>this._queryFeaturesById(e,t)),this._pendingEditsAbortController.signal)),this._processPendingTiles()}))}_initializeFetchExtent(){if(!this.capabilities.query.supportsExtent||!(0,J.M8)(this.url))return;const e=(0,L.vr)((async e=>{try{const t=await(0,$.Vr)(this.url,new p.Z({where:"1=1",outSpatialReference:this.spatialReference,cacheHint:this.capabilities.query.supportsCacheHint??void 0}),{query:this._configuration.customParameters,signal:e});this.store.extent=q.Z.fromJSON(t.data?.extent)}catch(e){(0,r.r9)(e),X.Z.getLogger(this).warn("Failed to fetch data extent",e)}}));this._updatingHandles.addPromise(e.promise.then((()=>this._process()))),this.addHandles((0,U.kB)((()=>e.abort())))}get debugInfo(){return{numberOfFeatures:this.store.featureStore.numFeatures,tilesOfInterest:this.tilesOfInterest,pendingTiles:Array.from(this._pendingTiles.values()).map((e=>e.debugInfo)),storedTiles:this.store.debugInfo}}_process(){this._markTilesNotAlive(),this._createPendingTiles(),this._deletePendingTiles(),this._processPendingTiles()}_markTilesNotAlive(){for(const[,e]of this._pendingTiles)e.alive=!1}_createPendingTiles(){const e=this._collectMissingTilesInfo();if(this._setAvailability(null==e?1:e.coveredArea/e.fullArea),null!=e)for(const{data:t,resolution:s}of e.missingTiles){const e=this._pendingTiles.get(t.id);e?(e.resolution=s,e.alive=!0):this._createPendingTile(t,s)}}_collectMissingTilesInfo(){let e=null;for(let t=this.tilesOfInterest.length-1;t>=0;t--){const s=this.tilesOfInterest[t],i=this.store.process(s,((e,t)=>this._verifyTileComplexity(e,t)));null==e?e=i:e.prepend(i)}return e}_deletePendingTiles(){for(const[,e]of this._pendingTiles)e.alive||this._deletePendingTile(e)}_processPendingTiles(){const e={fetchCount:(e,t)=>this._fetchCount(e,t),fetchFeatures:(e,t,s)=>this._fetchFeatures(e,t,s),finish:(e,t)=>this._finishPendingTile(e,t),resume:()=>this._processPendingTiles()};if(this._ensureFetchAllCounts(e))for(const[,t]of this._pendingTiles)this._verifyTileComplexity(this.store.getFeatureCount(t.data),t.resolution)&&this._updatingHandles.addPromise(t.process(e))}_verifyTileComplexity(e,t){return this._verifyVertexComplexity(e)&&this._verifyFeatureDensity(e,t)}_verifyVertexComplexity(e){return e*this._minimumVerticesPerFeature<ie}_verifyFeatureDensity(e,t){if(null==this.tileInfo)return!1;const s=this.tileSize*t;return e*(ne/(s*s))<re}_ensureFetchAllCounts(e){let t=!0;for(const[,s]of this._pendingTiles)s.state.type<Y.FETCHED_COUNT&&this._updatingHandles.addPromise(s.process(e)),s.state.type<=Y.FETCH_COUNT&&(t=!1);return t}_finishPendingTile(e,t){this.store.add(e.data,t),this._deletePendingTile(e),this._updateAvailability()}_updateAvailability(){const e=this._collectMissingTilesInfo();this._setAvailability(null==e?1:e.coveredArea/e.fullArea)}_setAvailability(e){this._set("availability",e)}_createPendingTile(e,t){const s=new Q(e,t);return this._pendingTiles.set(e.id,s),s}_deletePendingTile(e){e.reset(),this._pendingTiles.delete(e.data.id)}async _fetchCount(e,t){return this.store.fetchCount(e.data,this.url,this._createCountQuery(e),{query:this.customParameters,timeout:se,signal:t})}async _fetchFeatures(e,t,s){let i=0;const n=[];let r=0,o=t;for(;;){const a=this._createFeaturesQuery(e),l=this._setPagingParameters(a,i,o),{features:h,exceededTransferLimit:u}=await this._queryFeatures(a,s);l&&(i+=a.num),r+=h.length;for(const e of h)n.push(e);if(o=t-r,!l||!u||o<=0)return n}}_filterProperties(e){return null==e?{where:"1=1",gdbVersion:void 0,timeExtent:void 0}:{where:e.where||"1=1",timeExtent:e.timeExtent,gdbVersion:e.gdbVersion}}_lookupObjectIdByGlobalId(e){const t=this.globalIdField,s=this.objectIdField;if(null==t)throw new Error("Expected globalIdField to be defined");let i=null;if(this.store.featureStore.forEach((n=>{e===n.attributes[t]&&(i=n.objectId??n.attributes[s])})),null==i)throw new Error(`Expected to find a feature with globalId ${e}`);return i}_queryFeaturesById(e,t){const s=this._createFeaturesQuery();return s.objectIds=e,this._queryFeatures(s,t)}_queryFeatures(e,t){return this.capabilities.query.supportsFormatPBF?this._queryFeaturesPBF(e,t):this._queryFeaturesJSON(e,t)}async _queryFeaturesPBF(e,t){const{sourceSpatialReference:s}=this,{data:i}=await(0,$.qp)(this.url,e,new G.J({sourceSpatialReference:s}),{query:this._configuration.customParameters,timeout:se,signal:t});return(0,W.lM)(i)}async _queryFeaturesJSON(e,t){const{sourceSpatialReference:s}=this,{data:i}=await(0,$.JT)(this.url,e,s,{query:this._configuration.customParameters,timeout:se,signal:t});return(0,W.h_)(i,this.objectIdField)}_createCountQuery(e){const t=this._createBaseQuery(e);return this.capabilities.query.supportsCacheHint&&(t.cacheHint=!0),t}_createFeaturesQuery(e=null){const t=this._createBaseQuery(e);return t.outFields=this.globalIdField?[this.globalIdField,this.objectIdField]:[this.objectIdField],t.returnGeometry=!0,null!=e&&(this.capabilities.query.supportsResultType?t.resultType="tile":this.capabilities.query.supportsCacheHint&&(t.cacheHint=!0)),t}_createBaseQuery(e){const t=new p.Z({returnZ:this.hasZ,returnM:!1,geometry:null!=this.tileInfo&&null!=e?(0,V.HH)(e.data.extent,this.tileInfo.spatialReference):void 0}),s=this._configuration.filter;return null!=s&&(t.where=s.where,t.gdbVersion=s.gdbVersion,t.timeExtent=s.timeExtent),t.outSpatialReference=this.spatialReference,t}_setPagingParameters(e,t,s){if(!this.capabilities.query.supportsPagination)return!1;const{supportsMaxRecordCountFactor:i,supportsCacheHint:n,tileMaxRecordCount:r,maxRecordCount:o,supportsResultType:a}=this.capabilities.query,l=i?p.Z.MAX_MAX_RECORD_COUNT_FACTOR:1,h=l*((a||n)&&r?r:o||te);return e.start=t,i?(e.maxRecordCountFactor=Math.min(l,Math.ceil(s/h)),e.num=Math.min(s,e.maxRecordCountFactor*h)):e.num=Math.min(s,h),!0}};(0,i._)([(0,a.Cb)({constructOnly:!0})],ee.prototype,"url",void 0),(0,i._)([(0,a.Cb)({constructOnly:!0})],ee.prototype,"objectIdField",void 0),(0,i._)([(0,a.Cb)({constructOnly:!0})],ee.prototype,"globalIdField",void 0),(0,i._)([(0,a.Cb)({constructOnly:!0})],ee.prototype,"capabilities",void 0),(0,i._)([(0,a.Cb)({constructOnly:!0})],ee.prototype,"sourceSpatialReference",void 0),(0,i._)([(0,a.Cb)({constructOnly:!0})],ee.prototype,"spatialReference",void 0),(0,i._)([(0,a.Cb)({constructOnly:!0})],ee.prototype,"store",void 0),(0,i._)([(0,a.Cb)({readOnly:!0})],ee.prototype,"_minimumVerticesPerFeature",null),(0,i._)([(0,a.Cb)()],ee.prototype,"filter",null),(0,i._)([(0,a.Cb)()],ee.prototype,"customParameters",null),(0,i._)([(0,a.Cb)({readOnly:!0})],ee.prototype,"_configuration",null),(0,i._)([(0,a.Cb)()],ee.prototype,"tileInfo",null),(0,i._)([(0,a.Cb)()],ee.prototype,"tileSize",null),(0,i._)([(0,a.Cb)()],ee.prototype,"tilesOfInterest",void 0),(0,i._)([(0,a.Cb)({readOnly:!0})],ee.prototype,"updating",null),(0,i._)([(0,a.Cb)({readOnly:!0})],ee.prototype,"updatingExcludingEdits",null),(0,i._)([(0,a.Cb)({readOnly:!0})],ee.prototype,"availability",void 0),(0,i._)([(0,a.Cb)()],ee.prototype,"hasZ",null),ee=(0,i._)([(0,h.j)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceTiledFetcher")],ee);const te=2e3,se=6e5,ie=1e6,ne=25,re=1;var oe=s(43090),ae=s(91303),le=s(37549),he=s(43077);class ue{constructor(){this._store=new Map,this._byteSize=0}set(e,t){this.delete(e),this._store.set(e,t),this._byteSize+=t.byteSize}delete(e){const t=this._store.get(e);return!!this._store.delete(e)&&(null!=t&&(this._byteSize-=t.byteSize),!0)}get(e){return this._used(e),this._store.get(e)}has(e){return this._used(e),this._store.has(e)}clear(){this._store.clear()}applyByteSizeLimit(e,t){for(const[s,i]of this._store){if(this._byteSize<=e)break;this.delete(s),t(i)}}values(){return this._store.values()}[Symbol.iterator](){return this._store[Symbol.iterator]()}_used(e){const t=this._store.get(e);t&&(this._store.delete(e),this._store.set(e,t))}}let ce=class extends N.Z{constructor(e){super(e),this.tileInfo=null,this.extent=null,this.maximumByteSize=10*ae.Y.MEGABYTES,this._tileBounds=new le.H,this._tiles=new ue,this._refCounts=new Map,this._tileFeatureCounts=new Map,this._tmpBoundingRect=(0,V.Ue)()}add(e,t){const s=[];for(const e of t)this._referenceFeature(e.objectId)===me.ADDED&&s.push(e);this._addTileStorage(e,new Set(t.map((e=>e.objectId))),function(e){return e.reduce(((e,t)=>e+function(e){return 32+function(e){if(null==e)return 0;const t=(0,oe.do)(e.lengths,4);return 32+(0,oe.do)(e.coords,8)+t}(e.geometry)+(0,oe.f2)(e.attributes)}(t)),0)}(t)),this.featureStore.addMany(s),this._tiles.applyByteSizeLimit(this.maximumByteSize,(e=>this._removeTileStorage(e)))}destroy(){this.clear(),this._tileFeatureCounts.clear()}clear(){this.featureStore.clear(),this._tileBounds.clear(),this._tiles.clear(),this._refCounts.clear()}refresh(){this.clear(),this._tileFeatureCounts.clear()}processEdits(e,t,s){return this._processEditsDelete(e.deletedFeatures.concat(e.updatedFeatures)),this._processEditsRefetch(e.addedFeatures.concat(e.updatedFeatures),t,s)}_addTileStorage(e,t,s){const i=e.id;this._tiles.set(i,new de(e,t,s)),this._tileBounds.set(i,e.extent),this._tileFeatureCounts.set(i,t.size)}_remove({id:e}){const t=this._tiles.get(e);t&&this._removeTileStorage(t)}_removeTileStorage(e){const t=[];for(const s of e.objectIds)this._unreferenceFeature(s)===me.REMOVED&&t.push(s);this.featureStore.removeManyById(t);const s=e.data.id;this._tiles.delete(s),this._tileBounds.delete(s)}_processEditsDelete(e){this.featureStore.removeManyById(e);for(const[,t]of this._tiles){for(const s of e)t.objectIds.delete(s);this._tileFeatureCounts.set(t.data.id,t.objectIds.size)}for(const t of e)this._refCounts.delete(t)}async _processEditsRefetch(e,t,s){const i=(await t(e,s)).features,{hasZ:n,hasM:r}=this.featureStore;for(const e of i){const t=(0,W.$)(this._tmpBoundingRect,e.geometry,n,r);null!=t&&this._tileBounds.forEachInBounds(t,(t=>{const s=this._tiles.get(t);this.featureStore.add(e);const i=e.objectId;s.objectIds.has(i)||(s.objectIds.add(i),this._referenceFeature(i),this._tileFeatureCounts.set(s.data.id,s.objectIds.size))}))}}process(e,t=(()=>!0)){if(null==this.tileInfo||!e.extent||null!=this.extent&&!(0,V.kK)((0,V.oJ)(this.extent,this._tmpBoundingRect),e.extent))return new fe(e);if(this._tiles.has(e.id))return new fe(e);const s=this._createTileTree(e,this.tileInfo);return this._simplify(s,t,null,0,1),this._collectMissingTiles(e,s,this.tileInfo)}get debugInfo(){return Array.from(this._tiles.values()).map((({data:e})=>({data:e,featureCount:this._tileFeatureCounts.get(e.id)||0})))}getFeatureCount(e){return this._tileFeatureCounts.get(e.id)??0}async fetchCount(e,t,s,i){const n=this._tileFeatureCounts.get(e.id);if(null!=n)return n;const r=await(0,$.hH)(t,s,i);return this._tileFeatureCounts.set(e.id,r.data.count),r.data.count}_createTileTree(e,t){const s=new _e(e.level,e.row,e.col);return t.updateTileInfo(s,f.Z.ExtrapolateOptions.POWER_OF_TWO),this._tileBounds.forEachInBounds(e.extent,(i=>{const n=this._tiles.get(i)?.data;n&&this._tilesAreRelated(e,n)&&this._populateChildren(s,n,t,this._tileFeatureCounts.get(n.id)||0)})),s}_tilesAreRelated(e,t){if(!e||!t)return!1;if(e.level===t.level)return e.row===t.row&&e.col===t.col;const s=e.level<t.level,i=s?e:t,n=s?t:e,r=1<<n.level-i.level;return Math.floor(n.row/r)===i.row&&Math.floor(n.col/r)===i.col}_populateChildren(e,t,s,i){const n=t.level-e.level-1;if(n<0)return void(e.isLeaf=!0);const r=t.row>>n,o=t.col>>n,a=e.row<<1,l=o-(e.col<<1)+(r-a<<1),h=e.children[l];if(null!=h)this._populateChildren(h,t,s,i);else{const n=new _e(e.level+1,r,o);s.updateTileInfo(n,f.Z.ExtrapolateOptions.POWER_OF_TWO),e.children[l]=n,this._populateChildren(n,t,s,i)}}_simplify(e,t,s,i,n){const r=n*n;if(e.isLeaf)return t(this.getFeatureCount(e),n)?0:(this._remove(e),null!=s&&(s.children[i]=null),r);const o=n/2,a=o*o;let l=0;for(let s=0;s<e.children.length;s++){const i=e.children[s];l+=null!=i?this._simplify(i,t,e,s,o):a}return 0===l?this._mergeChildren(e):1-l/r<ge&&(this._purge(e),null!=s&&(s.children[i]=null),l=r),l}_mergeChildren(e){const t=new Set;let s=0;this._forEachLeaf(e,(e=>{const i=this._tiles.get(e.id);if(i){s+=i.byteSize;for(const e of i.objectIds)t.has(e)||(t.add(e),this._referenceFeature(e));this._remove(e)}})),this._addTileStorage(e,t,s),e.isLeaf=!0,e.children[0]=e.children[1]=e.children[2]=e.children[3]=null,this._tileFeatureCounts.set(e.id,t.size)}_forEachLeaf(e,t){for(const s of e.children)null!=s&&(s.isLeaf?t(s):this._forEachLeaf(s,t))}_purge(e){if(null!=e)if(e.isLeaf)this._remove(e);else for(let t=0;t<e.children.length;t++){const s=e.children[t];this._purge(s),e.children[t]=null}}_collectMissingTiles(e,t,s){const i=new pe(s,e,this.extent);return this._collectMissingTilesRecurse(t,i,1),i.info}_collectMissingTilesRecurse(e,t,s){if(e.isLeaf)return;if(!e.hasChildren)return void t.addMissing(e.level,e.row,e.col,s);const i=s/2;for(let s=0;s<e.children.length;s++){const n=e.children[s];null==n?t.addMissing(e.level+1,(e.row<<1)+((2&s)>>1),(e.col<<1)+(1&s),i):this._collectMissingTilesRecurse(n,t,i)}}_referenceFeature(e){const t=(this._refCounts.get(e)||0)+1;return this._refCounts.set(e,t),1===t?me.ADDED:me.UNCHANGED}_unreferenceFeature(e){const t=(this._refCounts.get(e)||0)-1;return 0===t?(this._refCounts.delete(e),me.REMOVED):(t>0&&this._refCounts.set(e,t),me.UNCHANGED)}get test(){return{tiles:Array.from(this._tiles.values()).map((e=>`${e.data.id}:[${Array.from(e.objectIds)}]`)),featureReferences:Array.from(this._refCounts.keys()).map((e=>`${e}:${this._refCounts.get(e)}`))}}};(0,i._)([(0,a.Cb)({constructOnly:!0})],ce.prototype,"featureStore",void 0),(0,i._)([(0,a.Cb)()],ce.prototype,"tileInfo",void 0),(0,i._)([(0,a.Cb)()],ce.prototype,"extent",void 0),(0,i._)([(0,a.Cb)()],ce.prototype,"maximumByteSize",void 0),ce=(0,i._)([(0,h.j)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceTileStore")],ce);class de{constructor(e,t,s){this.data=e,this.objectIds=t,this.byteSize=s}}class _e{constructor(e,t,s){this.level=e,this.row=t,this.col=s,this.isLeaf=!1,this.extent=null,this.children=[null,null,null,null]}get hasChildren(){return!this.isLeaf&&(null!=this.children[0]||null!=this.children[1]||null!=this.children[2]||null!=this.children[3])}}class fe{constructor(e,t=[]){this.missingTiles=t,this.fullArea=0,this.coveredArea=0,this.fullArea=(0,V.SO)(e.extent),this.coveredArea=this.fullArea}prepend(e){this.missingTiles=e.missingTiles.concat(this.missingTiles),this.coveredArea+=e.coveredArea,this.fullArea+=e.fullArea}}class pe{constructor(e,t,s){this._tileInfo=e,this._extent=null,this.info=new fe(t),null!=s&&(this._extent=(0,V.oJ)(s))}addMissing(e,t,s,i){const n=new he.f(null,e,t,s);this._tileInfo.updateTileInfo(n,f.Z.ExtrapolateOptions.POWER_OF_TWO),null==n.extent||null!=this._extent&&!(0,V.kK)(this._extent,n.extent)||(this.info.missingTiles.push({data:n,resolution:i}),this.info.coveredArea-=(0,V.SO)(n.extent))}}const ge=.18751;var me;!function(e){e[e.ADDED=0]="ADDED",e[e.REMOVED=1]="REMOVED",e[e.UNCHANGED=2]="UNCHANGED"}(me||(me={}));let ye=class extends n.Z.EventedAccessor{constructor(){super(...arguments),this._isInitializing=!0,this.remoteClient=null,this._whenSetup=(0,r.hh)(),this._elevationAligner=b(),this._elevationFilter=M(),this._symbologyCandidatesFetcher=P(),this._updatingHandles=new u.t,this._editsUpdatingHandles=new u.t,this._pendingApplyEdits=new Map,this._alignPointsInFeatures=async(e,t)=>{const s={points:e},i=await this.remoteClient.invoke("alignElevation",s,{signal:t});return(0,r.k_)(t),i},this._getSymbologyCandidates=async(e,t)=>{const s={candidates:e,spatialReference:this._spatialReference.toJSON()},i=await this.remoteClient.invoke("getSymbologyCandidates",s,{signal:t});return(0,r.k_)(t),i}}get updating(){return this.updatingExcludingEdits||this._editsUpdatingHandles.updating||this._featureFetcher.updating}get updatingExcludingEdits(){return this._featureFetcher.updatingExcludingEdits||this._isInitializing||this._updatingHandles.updating}destroy(){this._featureFetcher?.destroy(),this._queryEngine?.destroy(),this._featureStore?.clear()}async setup(e){if(this.destroyed)return{result:{}};const{geometryType:t,objectIdField:s,timeInfo:i,fields:n}=e.serviceInfo,{hasZ:r}=e,a=c.Z.fromJSON(e.spatialReference);this._spatialReference=a,this._featureStore=new d.Z({...e.serviceInfo,hasZ:r,hasM:!1}),this._queryEngine=new _.q({spatialReference:e.spatialReference,featureStore:this._featureStore,geometryType:t,fields:n,hasZ:r,hasM:!1,objectIdField:s,timeInfo:i}),this._featureFetcher=new ee({store:new ce({featureStore:this._featureStore}),url:e.serviceInfo.url,objectIdField:e.serviceInfo.objectIdField,globalIdField:e.serviceInfo.globalIdField,capabilities:e.serviceInfo.capabilities,spatialReference:a,sourceSpatialReference:c.Z.fromJSON(e.serviceInfo.spatialReference)});const l="3d"===e.configuration.viewType;return this._elevationAligner=b(l,{elevationInfo:null!=e.elevationInfo?g.Z.fromJSON(e.elevationInfo):null,alignPointsInFeatures:this._alignPointsInFeatures,spatialReference:a}),this._elevationFilter=M(l),this.addHandles([(0,o.YP)((()=>this._featureFetcher.availability),(e=>this.emit("notify-availability",{availability:e})),o.Z_),(0,o.YP)((()=>this.updating),(()=>this._notifyUpdating()))]),this._whenSetup.resolve(),this._isInitializing=!1,this.configure(e.configuration)}async configure(e){return await this._updatingHandles.addPromise(this._whenSetup.promise),this._updateFeatureFetcherConfiguration(e),{result:{}}}async fetchCandidates(e,t){await this._whenSetup.promise,(0,r.k_)(t);const s=function(e){return{point:e.point,mode:e.mode,distance:e.distance,returnEdge:e.returnEdge,returnVertex:e.returnVertex,query:null!=e.filter?e.filter:{where:"1=1"}}}(e),i=null!=t?t.signal:null,n=await this._queryEngine.executeQueryForSnapping(s,i);(0,r.k_)(i);const o=await this._elevationAligner.alignCandidates(n.candidates,i);(0,r.k_)(i);const a=await this._symbologyCandidatesFetcher.fetch(o,i);(0,r.k_)(i);const l=0===a.length?o:o.concat(a);return{result:{candidates:this._elevationFilter.filter(s,l)}}}async updateTiles(e,t){return await this._updatingHandles.addPromise(this._whenSetup.promise),(0,r.k_)(t),this._featureFetcher.tileSize=e.tileSize,this._featureFetcher.tilesOfInterest=e.tiles,this._featureFetcher.tileInfo=null!=e.tileInfo?f.Z.fromJSON(e.tileInfo):null,Ee}async refresh(e,t){return await this._updatingHandles.addPromise(this._whenSetup.promise),(0,r.k_)(t),this._featureFetcher.refresh(),Ee}async whenNotUpdating(e,t){return await this._updatingHandles.addPromise(this._whenSetup.promise),(0,r.k_)(t),await(0,o.N1)((()=>!this.updatingExcludingEdits),t),(0,r.k_)(t),Ee}async getDebugInfo(e,t){return(0,r.k_)(t),{result:this._featureFetcher.debugInfo}}async beginApplyEdits(e,t){this._updatingHandles.addPromise(this._whenSetup.promise),(0,r.k_)(t);const s=(0,r.hh)();return this._pendingApplyEdits.set(e.id,s),this._featureFetcher.applyEdits(s.promise),this._editsUpdatingHandles.addPromise(s.promise),Ee}async endApplyEdits(e,t){const s=this._pendingApplyEdits.get(e.id);return s&&s.resolve(e.edits),(0,r.k_)(t),Ee}async notifyElevationSourceChange(e,t){return this._elevationAligner.notifyElevationSourceChange(),Ee}async notifySymbologyChange(e,t){return this._symbologyCandidatesFetcher.notifySymbologyChange(),Ee}async setSymbologySnappingSupported(e){return this._symbologyCandidatesFetcher=P(e,this._getSymbologyCandidates),Ee}_updateFeatureFetcherConfiguration(e){this._featureFetcher.filter=null!=e.filter?p.Z.fromJSON(e.filter):null,this._featureFetcher.customParameters=e.customParameters}_notifyUpdating(){this.emit("notify-updating",{updating:this.updating})}};(0,i._)([(0,a.Cb)({readOnly:!0})],ye.prototype,"updating",null),(0,i._)([(0,a.Cb)({readOnly:!0})],ye.prototype,"updatingExcludingEdits",null),(0,i._)([(0,a.Cb)()],ye.prototype,"_isInitializing",void 0),ye=(0,i._)([(0,h.j)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceSnappingSourceWorker")],ye);const ve=ye,Ee={result:{}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3215],{6570:(t,n,e)=>{e.d(n,{Z:()=>g});var i,r=e(43697),s=e(19153),a=e(5600),h=(e(75215),e(67676),e(80442),e(52011)),o=e(9361),l=e(94139),m=e(82971),u=e(54102),c=e(87416),x=e(8744),f=e(40488);function p(t,n,e){return null==n?e:null==e?n:t(n,e)}let y=i=class extends o.Z{constructor(...t){super(...t),this.type="extent",this.xmin=0,this.ymin=0,this.mmin=void 0,this.zmin=void 0,this.xmax=0,this.ymax=0,this.mmax=void 0,this.zmax=void 0}normalizeCtorArgs(t,n,e,i,r){return function(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}(t)?{spatialReference:t,xmin:0,ymin:0,xmax:0,ymax:0}:"object"==typeof t?(t.spatialReference=null==t.spatialReference?m.Z.WGS84:t.spatialReference,t):{xmin:t,ymin:n,xmax:e,ymax:i,spatialReference:r??m.Z.WGS84}}static fromBounds(t,n){return new i({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:n})}static fromPoint(t){return new i({xmin:t.x,ymin:t.y,zmin:t.z,xmax:t.x,ymax:t.y,zmax:t.z,spatialReference:t.spatialReference})}get cache(){return this.commitProperty("xmin"),this.commitProperty("ymin"),this.commitProperty("zmin"),this.commitProperty("mmin"),this.commitProperty("xmax"),this.commitProperty("ymax"),this.commitProperty("zmax"),this.commitProperty("mmax"),this.commitProperty("spatialReference"),{}}get center(){const t=new l.Z({x:.5*(this.xmin+this.xmax),y:.5*(this.ymin+this.ymax),spatialReference:this.spatialReference});return this.hasZ&&(t.z=.5*(this.zmin+this.zmax)),this.hasM&&(t.m=.5*(this.mmin+this.mmax)),t}get extent(){return this.clone()}get hasM(){return null!=this.mmin&&null!=this.mmax}get hasZ(){return null!=this.zmin&&null!=this.zmax}get height(){return Math.abs(this.ymax-this.ymin)}get width(){return Math.abs(this.xmax-this.xmin)}centerAt(t){const n=this.center;return null!=t.z&&this.hasZ?this.offset(t.x-n.x,t.y-n.y,t.z-n.z):this.offset(t.x-n.x,t.y-n.y)}clone(){const t=new i;return t.xmin=this.xmin,t.ymin=this.ymin,t.xmax=this.xmax,t.ymax=this.ymax,t.spatialReference=this.spatialReference,null!=this.zmin&&(t.zmin=this.zmin,t.zmax=this.zmax),null!=this.mmin&&(t.mmin=this.mmin,t.mmax=this.mmax),t}contains(t){if(!t)return!1;const n=this.spatialReference,e=t.spatialReference;return n&&e&&!n.equals(e)&&(0,f.Q8)(n,e)&&(t=n.isWebMercator?(0,f.$)(t):(0,f.Sx)(t,!0)),"point"===t.type?(0,u.aV)(this,t):"extent"===t.type&&(0,u.uP)(this,t)}equals(t){if(this===t)return!0;if(null==t)return!1;const n=this.spatialReference,e=t.spatialReference;return n&&e&&!n.equals(e)&&(0,f.Q8)(n,e)&&(t=n.isWebMercator?(0,f.$)(t):(0,f.Sx)(t,!0)),this.xmin===t.xmin&&this.ymin===t.ymin&&this.zmin===t.zmin&&this.mmin===t.mmin&&this.xmax===t.xmax&&this.ymax===t.ymax&&this.zmax===t.zmax&&this.mmax===t.mmax}expand(t){const n=.5*(1-t),e=this.width*n,i=this.height*n;if(this.xmin+=e,this.ymin+=i,this.xmax-=e,this.ymax-=i,this.hasZ){const t=(this.zmax-this.zmin)*n;this.zmin+=t,this.zmax-=t}if(this.hasM){const t=(this.mmax-this.mmin)*n;this.mmin+=t,this.mmax-=t}return this}intersects(t){if(null==t)return!1;"mesh"===t.type&&(t=t.extent);const n=this.spatialReference,e=t.spatialReference;return n&&e&&!(0,x.fS)(n,e)&&(0,f.Q8)(n,e)&&(t=n.isWebMercator?(0,f.$)(t):(0,f.Sx)(t,!0)),(0,c.IY)(t.type)(this,t)}normalize(){const t=this._normalize(!1,!0);return Array.isArray(t)?t:[t]}offset(t,n,e){return this.xmin+=t,this.ymin+=n,this.xmax+=t,this.ymax+=n,null!=e&&(this.zmin+=e,this.zmax+=e),this}shiftCentralMeridian(){return this._normalize(!0)}union(t){return this===t||(this.xmin=Math.min(this.xmin,t.xmin),this.ymin=Math.min(this.ymin,t.ymin),this.xmax=Math.max(this.xmax,t.xmax),this.ymax=Math.max(this.ymax,t.ymax),(this.hasZ||t.hasZ)&&(this.zmin=p(Math.min,this.zmin,t.zmin),this.zmax=p(Math.max,this.zmax,t.zmax)),(this.hasM||t.hasM)&&(this.mmin=p(Math.min,this.mmin,t.mmin),this.mmax=p(Math.max,this.mmax,t.mmax))),this}intersection(t){return this===t?this:null!=t&&this.intersects(t)?(this.xmin=Math.max(this.xmin,t.xmin),this.ymin=Math.max(this.ymin,t.ymin),this.xmax=Math.min(this.xmax,t.xmax),this.ymax=Math.min(this.ymax,t.ymax),(this.hasZ||t.hasZ)&&(this.zmin=p(Math.max,this.zmin,t.zmin),this.zmax=p(Math.min,this.zmax,t.zmax)),(this.hasM||t.hasM)&&(this.mmin=p(Math.max,this.mmin,t.mmin),this.mmax=p(Math.min,this.mmax,t.mmax)),this):null}toJSON(t){return this.write({},t)}_shiftCM(t=(0,x.C5)(this.spatialReference)){if(!t||!this.spatialReference)return this;const n=this.spatialReference,e=this._getCM(t);if(e){const i=n.isWebMercator?(0,f.Sx)(e):e;this.xmin-=e.x,this.xmax-=e.x,n.isWebMercator||(i.x=this._normalizeX(i.x,t).x),this.spatialReference=new m.Z((0,s.gx)((n.isWGS84?t.altTemplate:null)??t.wkTemplate,{Central_Meridian:i.x}))}return this}_getCM(t){let n=null;const[e,i]=t.valid,r=this.xmin,s=this.xmax;return r>=e&&r<=i&&s>=e&&s<=i||(n=this.center),n}_normalize(t,n,e){const i=this.spatialReference;if(!i)return this;const r=e??(0,x.C5)(i);if(null==r)return this;const s=this._getParts(r).map((t=>t.extent));if(s.length<2)return s[0]||this;if(s.length>2)return t?this._shiftCM(r):this.set({xmin:r.valid[0],xmax:r.valid[1]});if(t)return this._shiftCM(r);if(n)return s;let a=!0,h=!0;return s.forEach((t=>{t.hasZ||(a=!1),t.hasM||(h=!1)})),{rings:s.map((t=>{const n=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(a){const e=(t.zmax-t.zmin)/2;for(let t=0;t<n.length;t++)n[t].push(e)}if(h){const e=(t.mmax-t.mmin)/2;for(let t=0;t<n.length;t++)n[t].push(e)}return n})),hasZ:a,hasM:h,spatialReference:i}}_getParts(t){let n=this.cache._parts;if(!n){n=[];const{ymin:e,ymax:r,spatialReference:s}=this,a=this.width,h=this.xmin,o=this.xmax;let l;t=t||(0,x.C5)(s);const[m,u]=t.valid;l=this._normalizeX(this.xmin,t);const c=l.x,f=l.frameId;l=this._normalizeX(this.xmax,t);const p=l.x,y=l.frameId,g=c===p&&a>0;if(a>2*u){const t=new i(h<o?c:p,e,u,r,s),a=new i(m,e,h<o?p:c,r,s),l=new i(0,e,u,r,s),x=new i(m,e,0,r,s),g=[],d=[];t.contains(l)&&g.push(f),t.contains(x)&&d.push(f),a.contains(l)&&g.push(y),a.contains(x)&&d.push(y);for(let t=f+1;t<y;t++)g.push(t),d.push(t);n.push({extent:t,frameIds:[f]},{extent:a,frameIds:[y]},{extent:l,frameIds:g},{extent:x,frameIds:d})}else c>p||g?n.push({extent:new i(c,e,u,r,s),frameIds:[f]},{extent:new i(m,e,p,r,s),frameIds:[y]}):n.push({extent:new i(c,e,p,r,s),frameIds:[f]});this.cache._parts=n}const e=this.hasZ,r=this.hasM;if(e||r){const t={};e&&(t.zmin=this.zmin,t.zmax=this.zmax),r&&(t.mmin=this.mmin,t.mmax=this.mmax);for(let e=0;e<n.length;e++)n[e].extent.set(t)}return n}_normalizeX(t,n){const[e,i]=n.valid,r=2*i;let s,a=0;return t>i?(s=Math.ceil(Math.abs(t-i)/r),t-=s*r,a=s):t<e&&(s=Math.ceil(Math.abs(t-e)/r),t+=s*r,a=-s),{x:t,frameId:a}}};(0,r._)([(0,a.Cb)({readOnly:!0})],y.prototype,"cache",null),(0,r._)([(0,a.Cb)({readOnly:!0})],y.prototype,"center",null),(0,r._)([(0,a.Cb)({readOnly:!0})],y.prototype,"extent",null),(0,r._)([(0,a.Cb)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],y.prototype,"hasM",null),(0,r._)([(0,a.Cb)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],y.prototype,"hasZ",null),(0,r._)([(0,a.Cb)({readOnly:!0})],y.prototype,"height",null),(0,r._)([(0,a.Cb)({readOnly:!0})],y.prototype,"width",null),(0,r._)([(0,a.Cb)({type:Number,json:{type:[Number,String],write:{enabled:!0,allowNull:!0}}})],y.prototype,"xmin",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],y.prototype,"ymin",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],y.prototype,"mmin",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],y.prototype,"zmin",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],y.prototype,"xmax",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],y.prototype,"ymax",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],y.prototype,"mmax",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],y.prototype,"zmax",void 0),y=i=(0,r._)([(0,h.j)("esri.geometry.Extent")],y),y.prototype.toJSON.isDefaultToJSON=!0;const g=y},65091:(t,n,e)=>{e.d(n,{Z:()=>p});var i,r=e(43697),s=e(22974),a=e(5600),h=(e(75215),e(52011)),o=e(30556),l=e(6570),m=e(9361),u=e(94139),c=e(16238);function x(t){return(n,e)=>null==n?e:null==e?n:t(n,e)}let f=i=class extends m.Z{constructor(...t){super(...t),this.points=[],this.type="multipoint"}normalizeCtorArgs(t,n){if(!t&&!n)return{};const e={};Array.isArray(t)?(e.points=t,e.spatialReference=n):function(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}(t)?e.spatialReference=t:(t.points&&(e.points=t.points),t.spatialReference&&(e.spatialReference=t.spatialReference),t.hasZ&&(e.hasZ=t.hasZ),t.hasM&&(e.hasM=t.hasM));const i=e.points&&e.points[0];return i&&(void 0===e.hasZ&&void 0===e.hasM?(e.hasZ=i.length>2,e.hasM=!1):void 0===e.hasZ?e.hasZ=i.length>3:void 0===e.hasM&&(e.hasM=i.length>3)),e}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=this.points;if(!t.length)return null;const n=new l.Z,e=this.hasZ,i=this.hasM,r=e?3:2,s=t[0],a=x(Math.min),h=x(Math.max);let o,m,u,c,[f,p]=s,[y,g]=s;for(let n=0,s=t.length;n<s;n++){const s=t[n],[l,x]=s;if(f=a(f,l),p=a(p,x),y=h(y,l),g=h(g,x),e&&s.length>2){const t=s[2];o=a(o,t),u=h(u,t)}if(i&&s.length>r){const t=s[r];m=a(m,t),c=h(c,t)}}return n.xmin=f,n.ymin=p,n.xmax=y,n.ymax=g,n.spatialReference=this.spatialReference,e?(n.zmin=o,n.zmax=u):(n.zmin=void 0,n.zmax=void 0),i?(n.mmin=m,n.mmax=c):(n.mmin=void 0,n.mmax=void 0),n}writePoints(t,n){n.points=(0,s.d9)(this.points)}addPoint(t){return(0,c.l)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}clone(){const t={points:(0,s.d9)(this.points),spatialReference:this.spatialReference};return this.hasZ&&(t.hasZ=!0),this.hasM&&(t.hasM=!0),new i(t)}getPoint(t){if(!this._validateInputs(t))return null;const n=this.points[t],e={x:n[0],y:n[1],spatialReference:this.spatialReference};let i=2;return this.hasZ&&(e.z=n[2],i=3),this.hasM&&(e.m=n[i]),new u.Z(e)}removePoint(t){if(!this._validateInputs(t))return null;const n=new u.Z(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),n}setPoint(t,n){return this._validateInputs(t)?((0,c.l)(this,n),Array.isArray(n)||(n=n.toArray()),this.points[t]=n,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,r._)([(0,a.Cb)({readOnly:!0})],f.prototype,"cache",null),(0,r._)([(0,a.Cb)()],f.prototype,"extent",null),(0,r._)([(0,a.Cb)({type:[[Number]],json:{write:{isRequired:!0}}})],f.prototype,"points",void 0),(0,r._)([(0,o.c)("points")],f.prototype,"writePoints",null),f=i=(0,r._)([(0,h.j)("esri.geometry.Multipoint")],f),f.prototype.toJSON.isDefaultToJSON=!0;const p=f},38913:(t,n,e)=>{e.d(n,{Z:()=>P});var i,r=e(43697),s=e(67676),a=e(22974),h=e(5600),o=(e(75215),e(52011)),l=e(30556),m=e(6570),u=e(9361),c=e(94139),x=e(82971),f=e(35308),p=e(54102),y=e(86662),g=e(49600),d=e(87416),M=e(40488),z=e(16238);function v(t){return!Array.isArray(t[0])}let Z=i=class extends u.Z{static fromExtent(t){const n=t.clone().normalize(),e=t.spatialReference;let r=!1,s=!1;for(const t of n)t.hasZ&&(r=!0),t.hasM&&(s=!0);const a={rings:n.map((t=>{const n=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(r&&t.hasZ){const e=t.zmin+.5*(t.zmax-t.zmin);for(let t=0;t<n.length;t++)n[t].push(e)}if(s&&t.hasM){const e=t.mmin+.5*(t.mmax-t.mmin);for(let t=0;t<n.length;t++)n[t].push(e)}return n})),spatialReference:e};return r&&(a.hasZ=!0),s&&(a.hasM=!0),new i(a)}constructor(...t){super(...t),this.rings=[],this.type="polygon"}normalizeCtorArgs(t,n){let e,i,r=null,s=null;return t&&!Array.isArray(t)?(r=t.rings??null,n||(t.spatialReference?n=t.spatialReference:t.rings||(n=t)),e=t.hasZ,i=t.hasM):r=t,r=r||[],n=n||x.Z.WGS84,r.length&&r[0]&&null!=r[0][0]&&"number"==typeof r[0][0]&&(r=[r]),s=r[0]&&r[0][0],s&&(void 0===e&&void 0===i?(e=s.length>2,i=s.length>3):void 0===e?e=i?s.length>3:s.length>2:void 0===i&&(i=e?s.length>3:s.length>2)),{rings:r,spatialReference:n,hasZ:e,hasM:i}}get cache(){return this.commitProperty("rings"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get centroid(){const t=(0,f.tO)(this);if(!t||isNaN(t[0])||isNaN(t[1])||this.hasZ&&isNaN(t[2]))return null;const n=new c.Z;return n.x=t[0],n.y=t[1],n.spatialReference=this.spatialReference,this.hasZ&&(n.z=t[2]),n}get extent(){const{spatialReference:t}=this,n=(0,g._w)(this);if(!n)return null;const e=new m.Z(n);return e.spatialReference=t,e}get isSelfIntersecting(){return(0,d.Ff)(this.rings)}writeRings(t,n){n.rings=(0,a.d9)(this.rings)}addRing(t){if(!t)return;const n=this.rings,e=n.length;if(v(t)){const i=[];for(let n=0,e=t.length;n<e;n++)i[n]=t[n].toArray();n[e]=i}else n[e]=t.concat();return this.notifyChange("rings"),this}clone(){const t=new i;return t.spatialReference=this.spatialReference,t.rings=(0,a.d9)(this.rings),t.hasZ=this.hasZ,t.hasM=this.hasM,t}equals(t){if(this===t)return!0;if(null==t)return!1;const n=this.spatialReference,e=t.spatialReference;if(null!=n!=(null!=e))return!1;if(null!=n&&null!=e&&!n.equals(e))return!1;if(this.rings.length!==t.rings.length)return!1;const i=([t,n,e,i],[r,s,a,h])=>t===r&&n===s&&(null==e&&null==a||e===a)&&(null==i&&null==h||i===h);for(let n=0;n<this.rings.length;n++){const e=this.rings[n],r=t.rings[n];if(!(0,s.fS)(e,r,i))return!1}return!0}contains(t){if(!t)return!1;const n=(0,M.iV)(t,this.spatialReference);return(0,p.CI)(this,null!=n?n:t)}isClockwise(t){let n;return n=v(t)?t.map((t=>this.hasZ?this.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])):t,(0,y.bu)(n)}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.rings[t][n],i=this.hasZ,r=this.hasM;return i&&!r?new c.Z(e[0],e[1],e[2],void 0,this.spatialReference):r&&!i?new c.Z(e[0],e[1],void 0,e[2],this.spatialReference):i&&r?new c.Z(e[0],e[1],e[2],e[3],this.spatialReference):new c.Z(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,z.l)(this,e),Array.isArray(e)||(e=e.toArray()),this.rings[t].splice(n,0,e),this.notifyChange("rings"),this):this}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new c.Z(this.rings[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("rings"),e}removeRing(t){if(!this._validateInputs(t,null))return null;const n=this.rings.splice(t,1)[0],e=this.spatialReference,i=n.map((t=>new c.Z(t,e)));return this.notifyChange("rings"),i}setPoint(t,n,e){return this._validateInputs(t,n)?((0,z.l)(this,e),Array.isArray(e)||(e=e.toArray()),this.rings[t][n]=e,this.notifyChange("rings"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.rings.length)return!1;if(null!=n){const i=this.rings[t];if(e&&(n<0||n>i.length))return!1;if(!e&&(n<0||n>=i.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,r._)([(0,h.Cb)({readOnly:!0})],Z.prototype,"cache",null),(0,r._)([(0,h.Cb)({readOnly:!0})],Z.prototype,"centroid",null),(0,r._)([(0,h.Cb)({readOnly:!0})],Z.prototype,"extent",null),(0,r._)([(0,h.Cb)({readOnly:!0})],Z.prototype,"isSelfIntersecting",null),(0,r._)([(0,h.Cb)({type:[[[Number]]],json:{write:{isRequired:!0}}})],Z.prototype,"rings",void 0),(0,r._)([(0,l.c)("rings")],Z.prototype,"writeRings",null),Z=i=(0,r._)([(0,o.j)("esri.geometry.Polygon")],Z),Z.prototype.toJSON.isDefaultToJSON=!0;const P=Z},58901:(t,n,e)=>{e.d(n,{Z:()=>y});var i,r=e(43697),s=e(22974),a=e(5600),h=(e(75215),e(52011)),o=e(30556),l=e(6570),m=e(9361),u=e(94139),c=e(82971),x=e(49600),f=e(16238);let p=i=class extends m.Z{constructor(...t){super(...t),this.paths=[],this.type="polyline"}normalizeCtorArgs(t,n){let e,i,r=null,s=null;return t&&!Array.isArray(t)?(r=t.paths??null,n||(t.spatialReference?n=t.spatialReference:t.paths||(n=t)),e=t.hasZ,i=t.hasM):r=t,r=r||[],n=n||c.Z.WGS84,r.length&&r[0]&&null!=r[0][0]&&"number"==typeof r[0][0]&&(r=[r]),s=r[0]&&r[0][0],s&&(void 0===e&&void 0===i?(e=s.length>2,i=!1):void 0===e?e=!i&&s.length>3:void 0===i&&(i=!e&&s.length>3)),{paths:r,spatialReference:n,hasZ:e,hasM:i}}get cache(){return this.commitProperty("paths"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const{spatialReference:t}=this,n=(0,x.Wn)(this);if(!n)return null;const e=new l.Z(n);return e.spatialReference=t,e}writePaths(t,n){n.paths=(0,s.d9)(this.paths)}addPath(t){if(!t)return;const n=this.paths,e=n.length;if(function(t){return!Array.isArray(t[0])}(t)){const i=[];for(let n=0,e=t.length;n<e;n++)i[n]=t[n].toArray();n[e]=i}else n[e]=t.concat();return this.notifyChange("paths"),this}clone(){const t=new i;return t.spatialReference=this.spatialReference,t.paths=(0,s.d9)(this.paths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.paths[t][n],i=this.hasZ,r=this.hasM;return i&&!r?new u.Z(e[0],e[1],e[2],void 0,this.spatialReference):r&&!i?new u.Z(e[0],e[1],void 0,e[2],this.spatialReference):i&&r?new u.Z(e[0],e[1],e[2],e[3],this.spatialReference):new u.Z(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,f.l)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t].splice(n,0,e),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const n=this.paths.splice(t,1)[0],e=this.spatialReference,i=n.map((t=>new u.Z(t,e)));return this.notifyChange("paths"),i}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new u.Z(this.paths[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("paths"),e}setPoint(t,n,e){return this._validateInputs(t,n)?((0,f.l)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t][n]=e,this.notifyChange("paths"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=n){const i=this.paths[t];if(e&&(n<0||n>i.length))return!1;if(!e&&(n<0||n>=i.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,r._)([(0,a.Cb)({readOnly:!0})],p.prototype,"cache",null),(0,r._)([(0,a.Cb)({readOnly:!0})],p.prototype,"extent",null),(0,r._)([(0,a.Cb)({type:[[[Number]]],json:{write:{isRequired:!0}}})],p.prototype,"paths",void 0),(0,r._)([(0,o.c)("paths")],p.prototype,"writePaths",null),p=i=(0,r._)([(0,h.j)("esri.geometry.Polyline")],p),p.prototype.toJSON.isDefaultToJSON=!0;const y=p},95961:(t,n,e)=>{function i(t){const n=[];for(t.reset();t.nextPath();){const e=[];for(;t.nextPoint();)e.push([t.x,t.y]);n.push(e)}return t.reset(),n}function r(t){const n=[];for(;t.nextPoint();)n.push([t.x,t.y]);return t.seekPathStart(),n}e.d(n,{M:()=>i,l:()=>r})},24470:(t,n,e)=>{e.d(n,{Gv:()=>g,HH:()=>o,SO:()=>m,Ue:()=>r,al:()=>a,cS:()=>f,fS:()=>y,jE:()=>u,jn:()=>l,kK:()=>c,oJ:()=>h,r3:()=>x}),e(80442),e(22021);var i=e(6570);function r(t=d){return[t[0],t[1],t[2],t[3]]}function s(t,n){return t!==n&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3]),t}function a(t,n,e,i,s=r()){return s[0]=t,s[1]=n,s[2]=e,s[3]=i,s}function h(t,n=r()){return n[0]=t.xmin,n[1]=t.ymin,n[2]=t.xmax,n[3]=t.ymax,n}function o(t,n){return new i.Z({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:n})}function l(t,n,e){if(null!=n)if("length"in n)p(n)?(e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e[3]=Math.max(t[3],n[3])):2!==n.length&&3!==n.length||(e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.max(t[2],n[0]),e[3]=Math.max(t[3],n[1]));else switch(n.type){case"extent":e[0]=Math.min(t[0],n.xmin),e[1]=Math.min(t[1],n.ymin),e[2]=Math.max(t[2],n.xmax),e[3]=Math.max(t[3],n.ymax);break;case"point":e[0]=Math.min(t[0],n.x),e[1]=Math.min(t[1],n.y),e[2]=Math.max(t[2],n.x),e[3]=Math.max(t[3],n.y)}else s(e,t)}function m(t){return function(t){return null==t||t[0]>=t[2]?0:t[2]-t[0]}(t)*function(t){return t[1]>=t[3]?0:t[3]-t[1]}(t)}function u(t,n,e){return n>=t[0]&&e>=t[1]&&n<=t[2]&&e<=t[3]}function c(t,n){return Math.max(n[0],t[0])<=Math.min(n[2],t[2])&&Math.max(n[1],t[1])<=Math.min(n[3],t[3])}function x(t,n){return n[0]>=t[0]&&n[2]<=t[2]&&n[1]>=t[1]&&n[3]<=t[3]}function f(t){return t?s(t,g):r(g)}function p(t){return null!=t&&4===t.length}function y(t,n){return p(t)&&p(n)?t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]:t===n}const g=[1/0,1/0,-1/0,-1/0],d=[0,0,0,0]},20322:(t,n,e)=>{e.d(n,{$P:()=>c,C6:()=>y,Cs:()=>x,Yg:()=>p,l1:()=>f,lC:()=>d});var i=e(24470);function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function s(t){return void 0!==t.points}function a(t){return void 0!==t.x&&void 0!==t.y}function h(t){return void 0!==t.paths}function o(t){return void 0!==t.rings}function l(t){return function(n,e){return null==n?e:null==e?n:t(n,e)}}const m=l(Math.min),u=l(Math.max);function c(t,n){return h(n)?y(t,n.paths,!1,!1):o(n)?y(t,n.rings,!1,!1):s(n)?d(t,n.points,!1,!1,!1,!1):r(n)?g(t,n):(a(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.x,t[3]=n.y),t)}function x(t){let n,e,r,s;for(t.reset(),n=r=1/0,e=s=-1/0;t.nextPath();){const i=f(t);n=Math.min(i[0],n),r=Math.min(i[1],r),e=Math.max(i[2],e),s=Math.max(i[3],s)}return(0,i.Ue)([n,r,e,s])}function f(t){let n,e,r,s;for(n=r=1/0,e=s=-1/0;t.nextPoint();)n=Math.min(t.x,n),r=Math.min(t.y,r),e=Math.max(t.x,e),s=Math.max(t.y,s);return(0,i.Ue)([n,r,e,s])}function p(t,n){return h(n)?y(t,n.paths,!0,!1):o(n)?y(t,n.rings,!0,!1):s(n)?d(t,n.points,!0,!1,!0,!1):r(n)?g(t,n,0,0,!0,!1):(a(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.z,t[3]=n.x,t[4]=n.y,t[5]=n.z),t)}function y(t,n,e,i){const r=e?3:2;if(!n.length||!n[0].length)return null;let s,a,h,o,[l,c]=n[0][0],[x,f]=n[0][0];for(let t=0;t<n.length;t++){const p=n[t];for(let t=0;t<p.length;t++){const n=p[t],[y,g]=n;if(l=m(l,y),c=m(c,g),x=u(x,y),f=u(f,g),e&&n.length>2){const t=n[2];s=m(s,t),a=u(a,t)}if(i&&n.length>r){const t=n[r];h=m(s,t),o=u(a,t)}}}return e?i?(t[0]=l,t[1]=c,t[2]=s,t[3]=h,t[4]=x,t[5]=f,t[6]=a,t[7]=o,t.length=8,t):(t[0]=l,t[1]=c,t[2]=s,t[3]=x,t[4]=f,t[5]=a,t.length=6,t):i?(t[0]=l,t[1]=c,t[2]=h,t[3]=x,t[4]=f,t[5]=o,t.length=6,t):(t[0]=l,t[1]=c,t[2]=x,t[3]=f,t.length=4,t)}function g(t,n,e,i,r,s){const a=n.xmin,h=n.xmax,o=n.ymin,l=n.ymax;let m=n.zmin,u=n.zmax,c=n.mmin,x=n.mmax;return r?(m=m||0,u=u||0,s?(c=c||0,x=x||0,t[0]=a,t[1]=o,t[2]=m,t[3]=c,t[4]=h,t[5]=l,t[6]=u,t[7]=x,t):(t[0]=a,t[1]=o,t[2]=m,t[3]=h,t[4]=l,t[5]=u,t)):s?(c=c||0,x=x||0,t[0]=a,t[1]=o,t[2]=c,t[3]=h,t[4]=l,t[5]=x,t):(t[0]=a,t[1]=o,t[2]=h,t[3]=l,t)}function d(t,n,e,i,r,s){const a=e?3:2,h=i&&s,o=e&&r;if(!n.length||!n[0].length)return null;let l,c,x,f,[p,y]=n[0],[g,d]=n[0];for(let t=0;t<n.length;t++){const e=n[t],[i,r]=e;if(p=m(p,i),y=m(y,r),g=u(g,i),d=u(d,r),o&&e.length>2){const t=e[2];l=m(l,t),c=u(c,t)}if(h&&e.length>a){const t=e[a];x=m(l,t),f=u(c,t)}}return r?(l=l||0,c=c||0,s?(x=x||0,f=f||0,t[0]=p,t[1]=y,t[2]=l,t[3]=x,t[4]=g,t[5]=d,t[6]=c,t[7]=f,t):(t[0]=p,t[1]=y,t[2]=l,t[3]=g,t[4]=d,t[5]=c,t)):s?(x=x||0,f=f||0,t[0]=p,t[1]=y,t[2]=x,t[3]=g,t[4]=d,t[5]=f,t):(t[0]=p,t[1]=y,t[2]=g,t[3]=d,t)}},35308:(t,n,e)=>{e.d(n,{$G:()=>s,DS:()=>h,NA:()=>m,Vm:()=>o,tO:()=>a});var i=e(95961),r=e(86662);function s(t){return t?t.hasZ?[t.xmax-t.xmin/2,t.ymax-t.ymin/2,t.zmax-t.zmin/2]:[t.xmax-t.xmin/2,t.ymax-t.ymin/2]:null}function a(t){return t?function(t,n){if(!t||!t.length)return null;const e=[],i=[],s=n?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let e=0,r=t.length;e<r;e++){const r=h(t[e],n,s);r&&i.push(r)}if(i.sort(((t,e)=>{let i=t[2]-e[2];return 0===i&&n&&(i=t[4]-e[4]),i})),i.length&&(e[0]=i[0][0],e[1]=i[0][1],n&&(e[2]=i[0][3]),(e[0]<s[0]||e[0]>s[1]||e[1]<s[2]||e[1]>s[3]||n&&(e[2]<s[4]||e[2]>s[5]))&&(e.length=0)),!e.length){const i=t[0]&&t[0].length?function(t,n){const e=n?[0,0,0]:[0,0],i=n?[0,0,0]:[0,0];let s=0,a=0,h=0,o=0;for(let l=0,m=t.length;l<m-1;l++){const m=t[l],u=t[l+1];if(m&&u){e[0]=m[0],e[1]=m[1],i[0]=u[0],i[1]=u[1],n&&m.length>2&&u.length>2&&(e[2]=m[2],i[2]=u[2]);const t=(0,r.xA)(e,i);if(t){s+=t;const e=(0,r.Gi)(m,u);a+=t*e[0],h+=t*e[1],n&&e.length>2&&(o+=t*e[2])}}}return s>0?n?[a/s,h/s,o/s]:[a/s,h/s]:t.length?t[0]:null}(t[0],n):null;if(!i)return null;e[0]=i[0],e[1]=i[1],n&&i.length>2&&(e[2]=i[2])}return e}(t.rings,t.hasZ??!1):null}function h(t,n,e){let i=0,r=0,s=0,a=0,h=0;const o=t.length?t[0][0]:0,l=t.length?t[0][1]:0,m=t.length&&n?t[0][2]:0;for(let u=0;u<t.length;u++){const c=t[u],x=t[(u+1)%t.length],[f,p,y]=c,g=f-o,d=p-l,[M,z,v]=x,Z=M-o,P=z-l,R=g*P-Z*d;if(a+=R,i+=(g+Z)*R,r+=(d+P)*R,n&&c.length>2&&x.length>2){const t=y-m,n=v-m,e=g*n-Z*t;s+=(t+n)*e,h+=e}f<e[0]&&(e[0]=f),f>e[1]&&(e[1]=f),p<e[2]&&(e[2]=p),p>e[3]&&(e[3]=p),n&&(y<e[4]&&(e[4]=y),y>e[5]&&(e[5]=y))}if(a>0&&(a*=-1),h>0&&(h*=-1),!a)return null;a*=.5,h*=.5;const u=[i/(6*a)+o,r/(6*a)+l,a];return n&&(e[4]===e[5]||0===h?(u[3]=(e[4]+e[5])/2,u[4]=0):(u[3]=s/(6*h)+m,u[4]=h)),u}function o(t){const{hasZ:n,numPaths:e}=t;if(0===e)return null;const s=[],a=[],o=n?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];for(t.reset();t.nextPath();){const n=h((0,i.l)(t),t.hasZ,o);n&&a.push(n)}if(a.sort(((t,e)=>{let i=t[2]-e[2];return 0===i&&n&&(i=t[4]-e[4]),i})),a.length&&(s[0]=a[0][0],s[1]=a[0][1],n&&(s[2]=a[0][3]),(s[0]<o[0]||s[0]>o[1]||s[1]<o[2]||s[1]>o[3]||n&&(s[2]<o[4]||s[2]>o[5]))&&(s.length=0)),!s.length){t.reset(),t.nextPath();const e=t.numPoints?function(t){const{hasZ:n}=t,e=n?[0,0,0]:[0,0],i=n?[0,0,0]:[0,0];let s=0,a=0,h=0,o=0;if(t.nextPoint()){let l=t.x,m=t.y,u=t.z;for(;t.nextPoint();){const c=t.x,x=t.y,f=t.z;e[0]=l,e[1]=m,i[0]=c,i[1]=x,n&&(e[2]=u,i[2]=f);const p=(0,r.xA)(e,i);if(p){s+=p;const t=(0,r.Gi)(e,i);a+=p*t[0],h+=p*t[1],n&&t.length>2&&(o+=p*t[2])}l=c,m=x,u=f}}return s>0?n?[a/s,h/s,o/s]:[a/s,h/s]:t.numPoints?(t.seekPathStart(),t.nextPoint(),[t.x,t.y]):null}(t):null;if(!e)return null;s[0]=e[0],s[1]=e[1],n&&e.length>2&&(s[2]=e[2])}return s}const l=1e-6;function m(t){let n=0;for(t.reset();t.nextPath();)n+=(0,r.VK)(t);if(n<l){const n=o(t);return n?[n[0],n[1]]:null}const e=[0,0];if(t.reset(),!t.nextPath()||!t.nextPoint())return null;const i=[t.x,t.y];for(t.reset();t.nextPath();)c(e,i,t);return e[0]*=1/n,e[1]*=1/n,e[0]+=i[0],e[1]+=i[1],e}const u=1/3;function c(t,n,e){if(!t||!e||e.numPoints<3)return null;e.nextPoint();const i=e.x,s=e.y;e.nextPoint();let a,h=e.x-i,o=e.y-s,l=0,m=0;for(;e.nextPoint();)l=e.x-i,m=e.y-s,a=.5*u*(l*o-m*h),t[0]+=a*(h+l),t[1]+=a*(o+m),h=l,o=m;const c=(0,r.VK)(e),x=[i,s];return x[0]-=n[0],x[1]-=n[1],x[0]*=c,x[1]*=c,t[0]+=x[0],t[1]+=x[1],t}},54102:(t,n,e)=>{e.d(n,{CI:()=>m,OQ:()=>h,Qg:()=>o,aV:()=>r,lQ:()=>s,uP:()=>a,wP:()=>u});const i=[0,0];function r(t,n){return null!=n&&l(t,n.x,n.y,n.z)}function s(t,n){if(!n.points||n.points.length)return!1;for(const e of n.points)if(!h(t,e))return!1;return!0}function a(t,n){const{xmin:e,ymin:i,zmin:r,xmax:s,ymax:a,zmax:h}=n;return t.hasZ&&n.hasZ?l(t,e,i,r)&&l(t,e,a,r)&&l(t,s,a,r)&&l(t,s,i,r)&&l(t,e,i,h)&&l(t,e,a,h)&&l(t,s,a,h)&&l(t,s,i,h):l(t,e,i)&&l(t,e,a)&&l(t,s,a)&&l(t,s,i)}function h(t,n){return l(t,n[0],n[1])}function o(t,n){return l(t,n[0],n[1],n[2])}function l(t,n,e,i){return n>=t.xmin&&n<=t.xmax&&e>=t.ymin&&e<=t.ymax&&(null==i||!t.hasZ||i>=t.zmin&&i<=t.zmax)}function m(t,n){return i[1]=n.y,i[0]=n.x,function(t,n){return u(t.rings,n)}(t,i)}function u(t,n){if(!t)return!1;if(function(t){return!Array.isArray(t[0][0])}(t))return c(!1,t,n);let e=!1;for(let i=0,r=t.length;i<r;i++)e=c(e,t[i],n);return e}function c(t,n,e){const[i,r]=e;let s=t,a=0;for(let t=0,e=n.length;t<e;t++){a++,a===e&&(a=0);const[h,o]=n[t],[l,m]=n[a];(o<r&&m>=r||m<r&&o>=r)&&h+(r-o)/(m-o)*(l-h)<i&&(s=!s)}return s}},86662:(t,n,e)=>{e.d(n,{Gi:()=>l,Sm:()=>x,Tx:()=>a,VK:()=>f,Zy:()=>c,bu:()=>m,ko:()=>h,xA:()=>s});var i=e(67676),r=e(62155);function s(t,n){const e=n[0]-t[0],i=n[1]-t[1];if(t.length>2&&n.length>2){const r=t[2]-n[2];return Math.sqrt(e*e+i*i+r*r)}return Math.sqrt(e*e+i*i)}function a(t,n,e,i){const[r,s]=n,[a,h]=e[i],[o,l]=e[i+1],m=o-a,u=l-h,c=m*m+u*u,x=(r-a)*m+(s-h)*u,f=Math.min(1,Math.max(0,x/c));return t[0]=a+m*f,t[1]=h+u*f,t}function h(t,n,e){let i,r,s,a,h=!1,l=1/0;for(e.reset();e.nextPath();)if(e.nextPoint())for(i=e.x,r=e.y;e.nextPoint();)s=e.x,a=e.y,r>n!=a>n&&t<(s-i)*(n-r)/(a-r)+i&&(h=!h),l=Math.min(l,o(t,n,i,r,s,a)),i=s,r=a;return 0===l?0:(h?1:-1)*Math.sqrt(l)}function o(t,n,e,i,r,s){let a=e,h=i,o=r-a,l=s-h;if(0!==o||0!==l){const e=((t-a)*o+(n-h)*l)/(o*o+l*l);e>1?(a=r,h=s):e>0&&(a+=o*e,h+=l*e)}return o=t-a,l=n-h,o*o+l*l}function l(t,n){return function(t,n,e){const i=t[0]+e*(n[0]-t[0]),r=t[1]+e*(n[1]-t[1]);return t.length>2&&n.length>2?[i,r,t[2]+e*(n[2]-t[2])]:[i,r]}(t,n,.5)}function m(t,n=r.R.X,e=r.R.Y){let i=0;const s=t.length;let a=t[0];for(let r=0;r<s-1;r++){const s=t[r+1];i+=(s[n]-a[n])*(s[e]+a[e]),a=s}return i>=0}function u(t){const n=t.length;return n>2&&(0,i.fS)(t[0],t[n-1])}function c(t){if("rings"in t)for(const n of t.rings)u(n)||n.push(n[0].slice())}function x(t){if(!t||t.length<3)return 0;let n=0;const e=t.length-1;for(let i=0;i<e;i++)n+=(t[i][0]-t[i+1][0])*(t[i][1]+t[i+1][1]);return n+=(t[e][0]-t[0][0])*(t[e][1]+t[0][1]),-.5*n}function f(t){if(!t||t.numPoints<3)return 0;let n,e,i=0;if(t.seekPathStart(),!t.nextPoint())return 0;n=t.x,e=t.y;const r=n,s=e;for(;t.nextPoint();)i+=(n-t.x)*(e+t.y),n=t.x,e=t.y;return i+=(n-r)*(e+s),-.5*i}e(8744)},49600:(t,n,e)=>{e.d(n,{Wn:()=>c,_w:()=>u,aO:()=>m});var i=e(20322);const r=[];function s(t,n,e,i){return{xmin:t,ymin:n,xmax:e,ymax:i}}function a(t,n,e,i,r,s){return{xmin:t,ymin:n,zmin:e,xmax:i,ymax:r,zmax:s}}function h(t,n,e,i,r,s){return{xmin:t,ymin:n,mmin:e,xmax:i,ymax:r,mmax:s}}function o(t,n,e,i,r,s,a,h){return{xmin:t,ymin:n,zmin:e,mmin:i,xmax:r,ymax:s,zmax:a,mmax:h}}function l(t,n=!1,e=!1){return n?e?o(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]):a(t[0],t[1],t[2],t[3],t[4],t[5]):e?h(t[0],t[1],t[2],t[3],t[4],t[5]):s(t[0],t[1],t[2],t[3])}function m(t){return t?function(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}(t)?t:function(t){return void 0!==t.x&&void 0!==t.y}(t)?function(t){const{x:n,y:e,z:i,m:r}=t,l=null!=r;return null!=i?l?o(n,e,i,r,n,e,i,r):a(n,e,i,n,e,i):l?h(n,e,r,n,e,r):s(n,e,n,e)}(t):function(t){return void 0!==t.rings}(t)?u(t):function(t){return void 0!==t.paths}(t)?c(t):function(t){return void 0!==t.points}(t)?function(t){const{hasZ:n,hasM:e,points:s}=t;return l((0,i.lC)(r,s,n??!1,e??!1),n,e)}(t):null:null}function u(t){const{hasZ:n,hasM:e,rings:s}=t,a=(0,i.C6)(r,s,n??!1,e??!1);return a?l(a,n,e):null}function c(t){const{hasZ:n,hasM:e,paths:s}=t,a=(0,i.C6)(r,s,n??!1,e??!1);return a?l(a,n,e):null}},87416:(t,n,e)=>{e.d(n,{Ff:()=>y,IY:()=>M,Nl:()=>x,UT:()=>d,h_:()=>s});var i=e(54102);function r(t,n){return(0,i.aV)(t,n)}function s(t,n){const e=t.hasZ&&n.hasZ;let i,r,s;if(t.xmin<=n.xmin){if(i=n.xmin,t.xmax<i)return!1}else if(i=t.xmin,n.xmax<i)return!1;if(t.ymin<=n.ymin){if(r=n.ymin,t.ymax<r)return!1}else if(r=t.ymin,n.ymax<r)return!1;if(e&&n.hasZ)if(t.zmin<=n.zmin){if(s=n.zmin,t.zmax<s)return!1}else if(s=t.zmin,n.zmax<s)return!1;return!0}function a(t,n){const{points:e,hasZ:r}=n,s=r?i.Qg:i.OQ;for(const n of e)if(s(t,n))return!0;return!1}const h=[0,0],o=[0,0],l=[0,0],m=[0,0],u=[h,o,l,m],c=[[l,h],[h,o],[o,m],[m,l]];function x(t,n){return function(t,n){h[0]=t.xmin,h[1]=t.ymax,o[0]=t.xmax,o[1]=t.ymax,l[0]=t.xmin,l[1]=t.ymin,m[0]=t.xmax,m[1]=t.ymin;for(const t of u)if((0,i.wP)(n,t))return!0;for(const e of n){if(!e.length)continue;let n=e[0];if((0,i.OQ)(t,n))return!0;for(let r=1;r<e.length;r++){const s=e[r];if((0,i.OQ)(t,s)||g(n,s,c))return!0;n=s}}return!1}(t,n.rings)}function f(t,n){h[0]=t.xmin,h[1]=t.ymax,o[0]=t.xmax,o[1]=t.ymax,l[0]=t.xmin,l[1]=t.ymin,m[0]=t.xmax,m[1]=t.ymin;const e=n.paths;for(const n of e){if(!e.length)continue;let r=n[0];if((0,i.OQ)(t,r))return!0;for(let e=1;e<n.length;e++){const s=n[e];if((0,i.OQ)(t,s)||g(r,s,c))return!0;r=s}}return!1}const p=[0,0];function y(t){for(let n=0;n<t.length;n++){const e=t[n];for(let i=0;i<e.length-1;i++){const r=e[i],s=e[i+1];for(let e=n+1;e<t.length;e++)for(let n=0;n<t[e].length-1;n++){const i=t[e][n],a=t[e][n+1];if(d(r,s,i,a,p)&&!(p[0]===r[0]&&p[1]===r[1]||p[0]===i[0]&&p[1]===i[1]||p[0]===s[0]&&p[1]===s[1]||p[0]===a[0]&&p[1]===a[1]))return!0}}const i=e.length;if(!(i<=4))for(let t=0;t<i-3;t++){let n=i-1;0===t&&(n=i-2);const r=e[t],s=e[t+1];for(let i=t+2;i<n;i++){const t=e[i],n=e[i+1];if(d(r,s,t,n,p)&&!(p[0]===r[0]&&p[1]===r[1]||p[0]===t[0]&&p[1]===t[1]||p[0]===s[0]&&p[1]===s[1]||p[0]===n[0]&&p[1]===n[1]))return!0}}}return!1}function g(t,n,e){for(let i=0;i<e.length;i++)if(d(t,n,e[i][0],e[i][1]))return!0;return!1}function d(t,n,e,i,r){const[s,a]=t,[h,o]=n,[l,m]=e,[u,c]=i,x=u-l,f=s-l,p=h-s,y=c-m,g=a-m,d=o-a,M=y*p-x*d;if(0===M)return!1;const z=(x*g-y*f)/M,v=(p*g-d*f)/M;return z>=0&&z<=1&&v>=0&&v<=1&&(r&&(r[0]=s+z*(h-s),r[1]=a+z*(o-a)),!0)}function M(t){switch(t){case"esriGeometryEnvelope":case"extent":return s;case"esriGeometryMultipoint":case"multipoint":return a;case"esriGeometryPoint":case"point":return r;case"esriGeometryPolygon":case"polygon":return x;case"esriGeometryPolyline":case"polyline":return f}}},16238:(t,n,e)=>{function i(t,n,e=!1){let{hasM:i,hasZ:r}=t;Array.isArray(n)?4!==n.length||i||r?3===n.length&&e&&!i?(r=!0,i=!1):3===n.length&&i&&r&&(i=!1,r=!1):(i=!0,r=!0):(r=!r&&n.hasZ&&(!i||n.hasM),i=!i&&n.hasM&&(!r||n.hasZ)),t.hasZ=r,t.hasM=i}e.d(n,{l:()=>i})}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1622],{6570:(t,n,e)=>{e.d(n,{Z:()=>g});var i,r=e(43697),s=e(19153),a=e(5600),o=(e(75215),e(67676),e(80442),e(52011)),h=e(9361),l=e(94139),u=e(82971),m=e(54102),c=e(87416),f=e(8744),x=e(40488);function p(t,n,e){return null==n?e:null==e?n:t(n,e)}let y=i=class extends h.Z{constructor(...t){super(...t),this.type="extent",this.xmin=0,this.ymin=0,this.mmin=void 0,this.zmin=void 0,this.xmax=0,this.ymax=0,this.mmax=void 0,this.zmax=void 0}normalizeCtorArgs(t,n,e,i,r){return function(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}(t)?{spatialReference:t,xmin:0,ymin:0,xmax:0,ymax:0}:"object"==typeof t?(t.spatialReference=null==t.spatialReference?u.Z.WGS84:t.spatialReference,t):{xmin:t,ymin:n,xmax:e,ymax:i,spatialReference:r??u.Z.WGS84}}static fromBounds(t,n){return new i({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:n})}static fromPoint(t){return new i({xmin:t.x,ymin:t.y,zmin:t.z,xmax:t.x,ymax:t.y,zmax:t.z,spatialReference:t.spatialReference})}get cache(){return this.commitProperty("xmin"),this.commitProperty("ymin"),this.commitProperty("zmin"),this.commitProperty("mmin"),this.commitProperty("xmax"),this.commitProperty("ymax"),this.commitProperty("zmax"),this.commitProperty("mmax"),this.commitProperty("spatialReference"),{}}get center(){const t=new l.Z({x:.5*(this.xmin+this.xmax),y:.5*(this.ymin+this.ymax),spatialReference:this.spatialReference});return this.hasZ&&(t.z=.5*(this.zmin+this.zmax)),this.hasM&&(t.m=.5*(this.mmin+this.mmax)),t}get extent(){return this.clone()}get hasM(){return null!=this.mmin&&null!=this.mmax}get hasZ(){return null!=this.zmin&&null!=this.zmax}get height(){return Math.abs(this.ymax-this.ymin)}get width(){return Math.abs(this.xmax-this.xmin)}centerAt(t){const n=this.center;return null!=t.z&&this.hasZ?this.offset(t.x-n.x,t.y-n.y,t.z-n.z):this.offset(t.x-n.x,t.y-n.y)}clone(){const t=new i;return t.xmin=this.xmin,t.ymin=this.ymin,t.xmax=this.xmax,t.ymax=this.ymax,t.spatialReference=this.spatialReference,null!=this.zmin&&(t.zmin=this.zmin,t.zmax=this.zmax),null!=this.mmin&&(t.mmin=this.mmin,t.mmax=this.mmax),t}contains(t){if(!t)return!1;const n=this.spatialReference,e=t.spatialReference;return n&&e&&!n.equals(e)&&(0,x.Q8)(n,e)&&(t=n.isWebMercator?(0,x.$)(t):(0,x.Sx)(t,!0)),"point"===t.type?(0,m.aV)(this,t):"extent"===t.type&&(0,m.uP)(this,t)}equals(t){if(this===t)return!0;if(null==t)return!1;const n=this.spatialReference,e=t.spatialReference;return n&&e&&!n.equals(e)&&(0,x.Q8)(n,e)&&(t=n.isWebMercator?(0,x.$)(t):(0,x.Sx)(t,!0)),this.xmin===t.xmin&&this.ymin===t.ymin&&this.zmin===t.zmin&&this.mmin===t.mmin&&this.xmax===t.xmax&&this.ymax===t.ymax&&this.zmax===t.zmax&&this.mmax===t.mmax}expand(t){const n=.5*(1-t),e=this.width*n,i=this.height*n;if(this.xmin+=e,this.ymin+=i,this.xmax-=e,this.ymax-=i,this.hasZ){const t=(this.zmax-this.zmin)*n;this.zmin+=t,this.zmax-=t}if(this.hasM){const t=(this.mmax-this.mmin)*n;this.mmin+=t,this.mmax-=t}return this}intersects(t){if(null==t)return!1;"mesh"===t.type&&(t=t.extent);const n=this.spatialReference,e=t.spatialReference;return n&&e&&!(0,f.fS)(n,e)&&(0,x.Q8)(n,e)&&(t=n.isWebMercator?(0,x.$)(t):(0,x.Sx)(t,!0)),(0,c.IY)(t.type)(this,t)}normalize(){const t=this._normalize(!1,!0);return Array.isArray(t)?t:[t]}offset(t,n,e){return this.xmin+=t,this.ymin+=n,this.xmax+=t,this.ymax+=n,null!=e&&(this.zmin+=e,this.zmax+=e),this}shiftCentralMeridian(){return this._normalize(!0)}union(t){return this===t||(this.xmin=Math.min(this.xmin,t.xmin),this.ymin=Math.min(this.ymin,t.ymin),this.xmax=Math.max(this.xmax,t.xmax),this.ymax=Math.max(this.ymax,t.ymax),(this.hasZ||t.hasZ)&&(this.zmin=p(Math.min,this.zmin,t.zmin),this.zmax=p(Math.max,this.zmax,t.zmax)),(this.hasM||t.hasM)&&(this.mmin=p(Math.min,this.mmin,t.mmin),this.mmax=p(Math.max,this.mmax,t.mmax))),this}intersection(t){return this===t?this:null!=t&&this.intersects(t)?(this.xmin=Math.max(this.xmin,t.xmin),this.ymin=Math.max(this.ymin,t.ymin),this.xmax=Math.min(this.xmax,t.xmax),this.ymax=Math.min(this.ymax,t.ymax),(this.hasZ||t.hasZ)&&(this.zmin=p(Math.max,this.zmin,t.zmin),this.zmax=p(Math.min,this.zmax,t.zmax)),(this.hasM||t.hasM)&&(this.mmin=p(Math.max,this.mmin,t.mmin),this.mmax=p(Math.min,this.mmax,t.mmax)),this):null}toJSON(t){return this.write({},t)}_shiftCM(t=(0,f.C5)(this.spatialReference)){if(!t||!this.spatialReference)return this;const n=this.spatialReference,e=this._getCM(t);if(e){const i=n.isWebMercator?(0,x.Sx)(e):e;this.xmin-=e.x,this.xmax-=e.x,n.isWebMercator||(i.x=this._normalizeX(i.x,t).x),this.spatialReference=new u.Z((0,s.gx)((n.isWGS84?t.altTemplate:null)??t.wkTemplate,{Central_Meridian:i.x}))}return this}_getCM(t){let n=null;const[e,i]=t.valid,r=this.xmin,s=this.xmax;return r>=e&&r<=i&&s>=e&&s<=i||(n=this.center),n}_normalize(t,n,e){const i=this.spatialReference;if(!i)return this;const r=e??(0,f.C5)(i);if(null==r)return this;const s=this._getParts(r).map((t=>t.extent));if(s.length<2)return s[0]||this;if(s.length>2)return t?this._shiftCM(r):this.set({xmin:r.valid[0],xmax:r.valid[1]});if(t)return this._shiftCM(r);if(n)return s;let a=!0,o=!0;return s.forEach((t=>{t.hasZ||(a=!1),t.hasM||(o=!1)})),{rings:s.map((t=>{const n=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(a){const e=(t.zmax-t.zmin)/2;for(let t=0;t<n.length;t++)n[t].push(e)}if(o){const e=(t.mmax-t.mmin)/2;for(let t=0;t<n.length;t++)n[t].push(e)}return n})),hasZ:a,hasM:o,spatialReference:i}}_getParts(t){let n=this.cache._parts;if(!n){n=[];const{ymin:e,ymax:r,spatialReference:s}=this,a=this.width,o=this.xmin,h=this.xmax;let l;t=t||(0,f.C5)(s);const[u,m]=t.valid;l=this._normalizeX(this.xmin,t);const c=l.x,x=l.frameId;l=this._normalizeX(this.xmax,t);const p=l.x,y=l.frameId,g=c===p&&a>0;if(a>2*m){const t=new i(o<h?c:p,e,m,r,s),a=new i(u,e,o<h?p:c,r,s),l=new i(0,e,m,r,s),f=new i(u,e,0,r,s),g=[],d=[];t.contains(l)&&g.push(x),t.contains(f)&&d.push(x),a.contains(l)&&g.push(y),a.contains(f)&&d.push(y);for(let t=x+1;t<y;t++)g.push(t),d.push(t);n.push({extent:t,frameIds:[x]},{extent:a,frameIds:[y]},{extent:l,frameIds:g},{extent:f,frameIds:d})}else c>p||g?n.push({extent:new i(c,e,m,r,s),frameIds:[x]},{extent:new i(u,e,p,r,s),frameIds:[y]}):n.push({extent:new i(c,e,p,r,s),frameIds:[x]});this.cache._parts=n}const e=this.hasZ,r=this.hasM;if(e||r){const t={};e&&(t.zmin=this.zmin,t.zmax=this.zmax),r&&(t.mmin=this.mmin,t.mmax=this.mmax);for(let e=0;e<n.length;e++)n[e].extent.set(t)}return n}_normalizeX(t,n){const[e,i]=n.valid,r=2*i;let s,a=0;return t>i?(s=Math.ceil(Math.abs(t-i)/r),t-=s*r,a=s):t<e&&(s=Math.ceil(Math.abs(t-e)/r),t+=s*r,a=-s),{x:t,frameId:a}}};(0,r._)([(0,a.Cb)({readOnly:!0})],y.prototype,"cache",null),(0,r._)([(0,a.Cb)({readOnly:!0})],y.prototype,"center",null),(0,r._)([(0,a.Cb)({readOnly:!0})],y.prototype,"extent",null),(0,r._)([(0,a.Cb)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],y.prototype,"hasM",null),(0,r._)([(0,a.Cb)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],y.prototype,"hasZ",null),(0,r._)([(0,a.Cb)({readOnly:!0})],y.prototype,"height",null),(0,r._)([(0,a.Cb)({readOnly:!0})],y.prototype,"width",null),(0,r._)([(0,a.Cb)({type:Number,json:{type:[Number,String],write:{enabled:!0,allowNull:!0}}})],y.prototype,"xmin",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],y.prototype,"ymin",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],y.prototype,"mmin",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],y.prototype,"zmin",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],y.prototype,"xmax",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],y.prototype,"ymax",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],y.prototype,"mmax",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],y.prototype,"zmax",void 0),y=i=(0,r._)([(0,o.j)("esri.geometry.Extent")],y),y.prototype.toJSON.isDefaultToJSON=!0;const g=y},65091:(t,n,e)=>{e.d(n,{Z:()=>p});var i,r=e(43697),s=e(22974),a=e(5600),o=(e(75215),e(52011)),h=e(30556),l=e(6570),u=e(9361),m=e(94139),c=e(16238);function f(t){return(n,e)=>null==n?e:null==e?n:t(n,e)}let x=i=class extends u.Z{constructor(...t){super(...t),this.points=[],this.type="multipoint"}normalizeCtorArgs(t,n){if(!t&&!n)return{};const e={};Array.isArray(t)?(e.points=t,e.spatialReference=n):function(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}(t)?e.spatialReference=t:(t.points&&(e.points=t.points),t.spatialReference&&(e.spatialReference=t.spatialReference),t.hasZ&&(e.hasZ=t.hasZ),t.hasM&&(e.hasM=t.hasM));const i=e.points&&e.points[0];return i&&(void 0===e.hasZ&&void 0===e.hasM?(e.hasZ=i.length>2,e.hasM=!1):void 0===e.hasZ?e.hasZ=i.length>3:void 0===e.hasM&&(e.hasM=i.length>3)),e}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=this.points;if(!t.length)return null;const n=new l.Z,e=this.hasZ,i=this.hasM,r=e?3:2,s=t[0],a=f(Math.min),o=f(Math.max);let h,u,m,c,[x,p]=s,[y,g]=s;for(let n=0,s=t.length;n<s;n++){const s=t[n],[l,f]=s;if(x=a(x,l),p=a(p,f),y=o(y,l),g=o(g,f),e&&s.length>2){const t=s[2];h=a(h,t),m=o(m,t)}if(i&&s.length>r){const t=s[r];u=a(u,t),c=o(c,t)}}return n.xmin=x,n.ymin=p,n.xmax=y,n.ymax=g,n.spatialReference=this.spatialReference,e?(n.zmin=h,n.zmax=m):(n.zmin=void 0,n.zmax=void 0),i?(n.mmin=u,n.mmax=c):(n.mmin=void 0,n.mmax=void 0),n}writePoints(t,n){n.points=(0,s.d9)(this.points)}addPoint(t){return(0,c.l)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}clone(){const t={points:(0,s.d9)(this.points),spatialReference:this.spatialReference};return this.hasZ&&(t.hasZ=!0),this.hasM&&(t.hasM=!0),new i(t)}getPoint(t){if(!this._validateInputs(t))return null;const n=this.points[t],e={x:n[0],y:n[1],spatialReference:this.spatialReference};let i=2;return this.hasZ&&(e.z=n[2],i=3),this.hasM&&(e.m=n[i]),new m.Z(e)}removePoint(t){if(!this._validateInputs(t))return null;const n=new m.Z(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),n}setPoint(t,n){return this._validateInputs(t)?((0,c.l)(this,n),Array.isArray(n)||(n=n.toArray()),this.points[t]=n,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,r._)([(0,a.Cb)({readOnly:!0})],x.prototype,"cache",null),(0,r._)([(0,a.Cb)()],x.prototype,"extent",null),(0,r._)([(0,a.Cb)({type:[[Number]],json:{write:{isRequired:!0}}})],x.prototype,"points",void 0),(0,r._)([(0,h.c)("points")],x.prototype,"writePoints",null),x=i=(0,r._)([(0,o.j)("esri.geometry.Multipoint")],x),x.prototype.toJSON.isDefaultToJSON=!0;const p=x},38913:(t,n,e)=>{e.d(n,{Z:()=>z});var i,r=e(43697),s=e(67676),a=e(22974),o=e(5600),h=(e(75215),e(52011)),l=e(30556),u=e(6570),m=e(9361),c=e(94139),f=e(82971),x=e(35308),p=e(54102),y=e(86662),g=e(49600),d=e(87416),M=e(40488),v=e(16238);function P(t){return!Array.isArray(t[0])}let Z=i=class extends m.Z{static fromExtent(t){const n=t.clone().normalize(),e=t.spatialReference;let r=!1,s=!1;for(const t of n)t.hasZ&&(r=!0),t.hasM&&(s=!0);const a={rings:n.map((t=>{const n=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(r&&t.hasZ){const e=t.zmin+.5*(t.zmax-t.zmin);for(let t=0;t<n.length;t++)n[t].push(e)}if(s&&t.hasM){const e=t.mmin+.5*(t.mmax-t.mmin);for(let t=0;t<n.length;t++)n[t].push(e)}return n})),spatialReference:e};return r&&(a.hasZ=!0),s&&(a.hasM=!0),new i(a)}constructor(...t){super(...t),this.rings=[],this.type="polygon"}normalizeCtorArgs(t,n){let e,i,r=null,s=null;return t&&!Array.isArray(t)?(r=t.rings??null,n||(t.spatialReference?n=t.spatialReference:t.rings||(n=t)),e=t.hasZ,i=t.hasM):r=t,r=r||[],n=n||f.Z.WGS84,r.length&&r[0]&&null!=r[0][0]&&"number"==typeof r[0][0]&&(r=[r]),s=r[0]&&r[0][0],s&&(void 0===e&&void 0===i?(e=s.length>2,i=s.length>3):void 0===e?e=i?s.length>3:s.length>2:void 0===i&&(i=e?s.length>3:s.length>2)),{rings:r,spatialReference:n,hasZ:e,hasM:i}}get cache(){return this.commitProperty("rings"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get centroid(){const t=(0,x.tO)(this);if(!t||isNaN(t[0])||isNaN(t[1])||this.hasZ&&isNaN(t[2]))return null;const n=new c.Z;return n.x=t[0],n.y=t[1],n.spatialReference=this.spatialReference,this.hasZ&&(n.z=t[2]),n}get extent(){const{spatialReference:t}=this,n=(0,g._w)(this);if(!n)return null;const e=new u.Z(n);return e.spatialReference=t,e}get isSelfIntersecting(){return(0,d.Ff)(this.rings)}writeRings(t,n){n.rings=(0,a.d9)(this.rings)}addRing(t){if(!t)return;const n=this.rings,e=n.length;if(P(t)){const i=[];for(let n=0,e=t.length;n<e;n++)i[n]=t[n].toArray();n[e]=i}else n[e]=t.concat();return this.notifyChange("rings"),this}clone(){const t=new i;return t.spatialReference=this.spatialReference,t.rings=(0,a.d9)(this.rings),t.hasZ=this.hasZ,t.hasM=this.hasM,t}equals(t){if(this===t)return!0;if(null==t)return!1;const n=this.spatialReference,e=t.spatialReference;if(null!=n!=(null!=e))return!1;if(null!=n&&null!=e&&!n.equals(e))return!1;if(this.rings.length!==t.rings.length)return!1;const i=([t,n,e,i],[r,s,a,o])=>t===r&&n===s&&(null==e&&null==a||e===a)&&(null==i&&null==o||i===o);for(let n=0;n<this.rings.length;n++){const e=this.rings[n],r=t.rings[n];if(!(0,s.fS)(e,r,i))return!1}return!0}contains(t){if(!t)return!1;const n=(0,M.iV)(t,this.spatialReference);return(0,p.CI)(this,null!=n?n:t)}isClockwise(t){let n;return n=P(t)?t.map((t=>this.hasZ?this.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])):t,(0,y.bu)(n)}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.rings[t][n],i=this.hasZ,r=this.hasM;return i&&!r?new c.Z(e[0],e[1],e[2],void 0,this.spatialReference):r&&!i?new c.Z(e[0],e[1],void 0,e[2],this.spatialReference):i&&r?new c.Z(e[0],e[1],e[2],e[3],this.spatialReference):new c.Z(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,v.l)(this,e),Array.isArray(e)||(e=e.toArray()),this.rings[t].splice(n,0,e),this.notifyChange("rings"),this):this}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new c.Z(this.rings[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("rings"),e}removeRing(t){if(!this._validateInputs(t,null))return null;const n=this.rings.splice(t,1)[0],e=this.spatialReference,i=n.map((t=>new c.Z(t,e)));return this.notifyChange("rings"),i}setPoint(t,n,e){return this._validateInputs(t,n)?((0,v.l)(this,e),Array.isArray(e)||(e=e.toArray()),this.rings[t][n]=e,this.notifyChange("rings"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.rings.length)return!1;if(null!=n){const i=this.rings[t];if(e&&(n<0||n>i.length))return!1;if(!e&&(n<0||n>=i.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,r._)([(0,o.Cb)({readOnly:!0})],Z.prototype,"cache",null),(0,r._)([(0,o.Cb)({readOnly:!0})],Z.prototype,"centroid",null),(0,r._)([(0,o.Cb)({readOnly:!0})],Z.prototype,"extent",null),(0,r._)([(0,o.Cb)({readOnly:!0})],Z.prototype,"isSelfIntersecting",null),(0,r._)([(0,o.Cb)({type:[[[Number]]],json:{write:{isRequired:!0}}})],Z.prototype,"rings",void 0),(0,r._)([(0,l.c)("rings")],Z.prototype,"writeRings",null),Z=i=(0,r._)([(0,h.j)("esri.geometry.Polygon")],Z),Z.prototype.toJSON.isDefaultToJSON=!0;const z=Z},58901:(t,n,e)=>{e.d(n,{Z:()=>y});var i,r=e(43697),s=e(22974),a=e(5600),o=(e(75215),e(52011)),h=e(30556),l=e(6570),u=e(9361),m=e(94139),c=e(82971),f=e(49600),x=e(16238);let p=i=class extends u.Z{constructor(...t){super(...t),this.paths=[],this.type="polyline"}normalizeCtorArgs(t,n){let e,i,r=null,s=null;return t&&!Array.isArray(t)?(r=t.paths??null,n||(t.spatialReference?n=t.spatialReference:t.paths||(n=t)),e=t.hasZ,i=t.hasM):r=t,r=r||[],n=n||c.Z.WGS84,r.length&&r[0]&&null!=r[0][0]&&"number"==typeof r[0][0]&&(r=[r]),s=r[0]&&r[0][0],s&&(void 0===e&&void 0===i?(e=s.length>2,i=!1):void 0===e?e=!i&&s.length>3:void 0===i&&(i=!e&&s.length>3)),{paths:r,spatialReference:n,hasZ:e,hasM:i}}get cache(){return this.commitProperty("paths"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const{spatialReference:t}=this,n=(0,f.Wn)(this);if(!n)return null;const e=new l.Z(n);return e.spatialReference=t,e}writePaths(t,n){n.paths=(0,s.d9)(this.paths)}addPath(t){if(!t)return;const n=this.paths,e=n.length;if(function(t){return!Array.isArray(t[0])}(t)){const i=[];for(let n=0,e=t.length;n<e;n++)i[n]=t[n].toArray();n[e]=i}else n[e]=t.concat();return this.notifyChange("paths"),this}clone(){const t=new i;return t.spatialReference=this.spatialReference,t.paths=(0,s.d9)(this.paths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.paths[t][n],i=this.hasZ,r=this.hasM;return i&&!r?new m.Z(e[0],e[1],e[2],void 0,this.spatialReference):r&&!i?new m.Z(e[0],e[1],void 0,e[2],this.spatialReference):i&&r?new m.Z(e[0],e[1],e[2],e[3],this.spatialReference):new m.Z(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,x.l)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t].splice(n,0,e),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const n=this.paths.splice(t,1)[0],e=this.spatialReference,i=n.map((t=>new m.Z(t,e)));return this.notifyChange("paths"),i}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new m.Z(this.paths[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("paths"),e}setPoint(t,n,e){return this._validateInputs(t,n)?((0,x.l)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t][n]=e,this.notifyChange("paths"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=n){const i=this.paths[t];if(e&&(n<0||n>i.length))return!1;if(!e&&(n<0||n>=i.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,r._)([(0,a.Cb)({readOnly:!0})],p.prototype,"cache",null),(0,r._)([(0,a.Cb)({readOnly:!0})],p.prototype,"extent",null),(0,r._)([(0,a.Cb)({type:[[[Number]]],json:{write:{isRequired:!0}}})],p.prototype,"paths",void 0),(0,r._)([(0,h.c)("paths")],p.prototype,"writePaths",null),p=i=(0,r._)([(0,o.j)("esri.geometry.Polyline")],p),p.prototype.toJSON.isDefaultToJSON=!0;const y=p},95961:(t,n,e)=>{function i(t){const n=[];for(t.reset();t.nextPath();){const e=[];for(;t.nextPoint();)e.push([t.x,t.y]);n.push(e)}return t.reset(),n}function r(t){const n=[];for(;t.nextPoint();)n.push([t.x,t.y]);return t.seekPathStart(),n}e.d(n,{M:()=>i,l:()=>r})},24470:(t,n,e)=>{e.d(n,{Gv:()=>g,HH:()=>h,SO:()=>u,Ue:()=>r,al:()=>a,cS:()=>x,fS:()=>y,jE:()=>m,jn:()=>l,kK:()=>c,oJ:()=>o,r3:()=>f}),e(80442),e(22021);var i=e(6570);function r(t=d){return[t[0],t[1],t[2],t[3]]}function s(t,n){return t!==n&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3]),t}function a(t,n,e,i,s=r()){return s[0]=t,s[1]=n,s[2]=e,s[3]=i,s}function o(t,n=r()){return n[0]=t.xmin,n[1]=t.ymin,n[2]=t.xmax,n[3]=t.ymax,n}function h(t,n){return new i.Z({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:n})}function l(t,n,e){if(null!=n)if("length"in n)p(n)?(e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e[3]=Math.max(t[3],n[3])):2!==n.length&&3!==n.length||(e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.max(t[2],n[0]),e[3]=Math.max(t[3],n[1]));else switch(n.type){case"extent":e[0]=Math.min(t[0],n.xmin),e[1]=Math.min(t[1],n.ymin),e[2]=Math.max(t[2],n.xmax),e[3]=Math.max(t[3],n.ymax);break;case"point":e[0]=Math.min(t[0],n.x),e[1]=Math.min(t[1],n.y),e[2]=Math.max(t[2],n.x),e[3]=Math.max(t[3],n.y)}else s(e,t)}function u(t){return function(t){return null==t||t[0]>=t[2]?0:t[2]-t[0]}(t)*function(t){return t[1]>=t[3]?0:t[3]-t[1]}(t)}function m(t,n,e){return n>=t[0]&&e>=t[1]&&n<=t[2]&&e<=t[3]}function c(t,n){return Math.max(n[0],t[0])<=Math.min(n[2],t[2])&&Math.max(n[1],t[1])<=Math.min(n[3],t[3])}function f(t,n){return n[0]>=t[0]&&n[2]<=t[2]&&n[1]>=t[1]&&n[3]<=t[3]}function x(t){return t?s(t,g):r(g)}function p(t){return null!=t&&4===t.length}function y(t,n){return p(t)&&p(n)?t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]:t===n}const g=[1/0,1/0,-1/0,-1/0],d=[0,0,0,0]},20322:(t,n,e)=>{e.d(n,{$P:()=>c,C6:()=>y,Cs:()=>f,Yg:()=>p,l1:()=>x,lC:()=>d});var i=e(24470);function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function s(t){return void 0!==t.points}function a(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths}function h(t){return void 0!==t.rings}function l(t){return function(n,e){return null==n?e:null==e?n:t(n,e)}}const u=l(Math.min),m=l(Math.max);function c(t,n){return o(n)?y(t,n.paths,!1,!1):h(n)?y(t,n.rings,!1,!1):s(n)?d(t,n.points,!1,!1,!1,!1):r(n)?g(t,n):(a(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.x,t[3]=n.y),t)}function f(t){let n,e,r,s;for(t.reset(),n=r=1/0,e=s=-1/0;t.nextPath();){const i=x(t);n=Math.min(i[0],n),r=Math.min(i[1],r),e=Math.max(i[2],e),s=Math.max(i[3],s)}return(0,i.Ue)([n,r,e,s])}function x(t){let n,e,r,s;for(n=r=1/0,e=s=-1/0;t.nextPoint();)n=Math.min(t.x,n),r=Math.min(t.y,r),e=Math.max(t.x,e),s=Math.max(t.y,s);return(0,i.Ue)([n,r,e,s])}function p(t,n){return o(n)?y(t,n.paths,!0,!1):h(n)?y(t,n.rings,!0,!1):s(n)?d(t,n.points,!0,!1,!0,!1):r(n)?g(t,n,0,0,!0,!1):(a(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.z,t[3]=n.x,t[4]=n.y,t[5]=n.z),t)}function y(t,n,e,i){const r=e?3:2;if(!n.length||!n[0].length)return null;let s,a,o,h,[l,c]=n[0][0],[f,x]=n[0][0];for(let t=0;t<n.length;t++){const p=n[t];for(let t=0;t<p.length;t++){const n=p[t],[y,g]=n;if(l=u(l,y),c=u(c,g),f=m(f,y),x=m(x,g),e&&n.length>2){const t=n[2];s=u(s,t),a=m(a,t)}if(i&&n.length>r){const t=n[r];o=u(s,t),h=m(a,t)}}}return e?i?(t[0]=l,t[1]=c,t[2]=s,t[3]=o,t[4]=f,t[5]=x,t[6]=a,t[7]=h,t.length=8,t):(t[0]=l,t[1]=c,t[2]=s,t[3]=f,t[4]=x,t[5]=a,t.length=6,t):i?(t[0]=l,t[1]=c,t[2]=o,t[3]=f,t[4]=x,t[5]=h,t.length=6,t):(t[0]=l,t[1]=c,t[2]=f,t[3]=x,t.length=4,t)}function g(t,n,e,i,r,s){const a=n.xmin,o=n.xmax,h=n.ymin,l=n.ymax;let u=n.zmin,m=n.zmax,c=n.mmin,f=n.mmax;return r?(u=u||0,m=m||0,s?(c=c||0,f=f||0,t[0]=a,t[1]=h,t[2]=u,t[3]=c,t[4]=o,t[5]=l,t[6]=m,t[7]=f,t):(t[0]=a,t[1]=h,t[2]=u,t[3]=o,t[4]=l,t[5]=m,t)):s?(c=c||0,f=f||0,t[0]=a,t[1]=h,t[2]=c,t[3]=o,t[4]=l,t[5]=f,t):(t[0]=a,t[1]=h,t[2]=o,t[3]=l,t)}function d(t,n,e,i,r,s){const a=e?3:2,o=i&&s,h=e&&r;if(!n.length||!n[0].length)return null;let l,c,f,x,[p,y]=n[0],[g,d]=n[0];for(let t=0;t<n.length;t++){const e=n[t],[i,r]=e;if(p=u(p,i),y=u(y,r),g=m(g,i),d=m(d,r),h&&e.length>2){const t=e[2];l=u(l,t),c=m(c,t)}if(o&&e.length>a){const t=e[a];f=u(l,t),x=m(c,t)}}return r?(l=l||0,c=c||0,s?(f=f||0,x=x||0,t[0]=p,t[1]=y,t[2]=l,t[3]=f,t[4]=g,t[5]=d,t[6]=c,t[7]=x,t):(t[0]=p,t[1]=y,t[2]=l,t[3]=g,t[4]=d,t[5]=c,t)):s?(f=f||0,x=x||0,t[0]=p,t[1]=y,t[2]=f,t[3]=g,t[4]=d,t[5]=x,t):(t[0]=p,t[1]=y,t[2]=g,t[3]=d,t)}},35308:(t,n,e)=>{e.d(n,{$G:()=>s,DS:()=>o,NA:()=>u,Vm:()=>h,tO:()=>a});var i=e(95961),r=e(86662);function s(t){return t?t.hasZ?[t.xmax-t.xmin/2,t.ymax-t.ymin/2,t.zmax-t.zmin/2]:[t.xmax-t.xmin/2,t.ymax-t.ymin/2]:null}function a(t){return t?function(t,n){if(!t||!t.length)return null;const e=[],i=[],s=n?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let e=0,r=t.length;e<r;e++){const r=o(t[e],n,s);r&&i.push(r)}if(i.sort(((t,e)=>{let i=t[2]-e[2];return 0===i&&n&&(i=t[4]-e[4]),i})),i.length&&(e[0]=i[0][0],e[1]=i[0][1],n&&(e[2]=i[0][3]),(e[0]<s[0]||e[0]>s[1]||e[1]<s[2]||e[1]>s[3]||n&&(e[2]<s[4]||e[2]>s[5]))&&(e.length=0)),!e.length){const i=t[0]&&t[0].length?function(t,n){const e=n?[0,0,0]:[0,0],i=n?[0,0,0]:[0,0];let s=0,a=0,o=0,h=0;for(let l=0,u=t.length;l<u-1;l++){const u=t[l],m=t[l+1];if(u&&m){e[0]=u[0],e[1]=u[1],i[0]=m[0],i[1]=m[1],n&&u.length>2&&m.length>2&&(e[2]=u[2],i[2]=m[2]);const t=(0,r.xA)(e,i);if(t){s+=t;const e=(0,r.Gi)(u,m);a+=t*e[0],o+=t*e[1],n&&e.length>2&&(h+=t*e[2])}}}return s>0?n?[a/s,o/s,h/s]:[a/s,o/s]:t.length?t[0]:null}(t[0],n):null;if(!i)return null;e[0]=i[0],e[1]=i[1],n&&i.length>2&&(e[2]=i[2])}return e}(t.rings,t.hasZ??!1):null}function o(t,n,e){let i=0,r=0,s=0,a=0,o=0;const h=t.length?t[0][0]:0,l=t.length?t[0][1]:0,u=t.length&&n?t[0][2]:0;for(let m=0;m<t.length;m++){const c=t[m],f=t[(m+1)%t.length],[x,p,y]=c,g=x-h,d=p-l,[M,v,P]=f,Z=M-h,z=v-l,w=g*z-Z*d;if(a+=w,i+=(g+Z)*w,r+=(d+z)*w,n&&c.length>2&&f.length>2){const t=y-u,n=P-u,e=g*n-Z*t;s+=(t+n)*e,o+=e}x<e[0]&&(e[0]=x),x>e[1]&&(e[1]=x),p<e[2]&&(e[2]=p),p>e[3]&&(e[3]=p),n&&(y<e[4]&&(e[4]=y),y>e[5]&&(e[5]=y))}if(a>0&&(a*=-1),o>0&&(o*=-1),!a)return null;a*=.5,o*=.5;const m=[i/(6*a)+h,r/(6*a)+l,a];return n&&(e[4]===e[5]||0===o?(m[3]=(e[4]+e[5])/2,m[4]=0):(m[3]=s/(6*o)+u,m[4]=o)),m}function h(t){const{hasZ:n,numPaths:e}=t;if(0===e)return null;const s=[],a=[],h=n?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];for(t.reset();t.nextPath();){const n=o((0,i.l)(t),t.hasZ,h);n&&a.push(n)}if(a.sort(((t,e)=>{let i=t[2]-e[2];return 0===i&&n&&(i=t[4]-e[4]),i})),a.length&&(s[0]=a[0][0],s[1]=a[0][1],n&&(s[2]=a[0][3]),(s[0]<h[0]||s[0]>h[1]||s[1]<h[2]||s[1]>h[3]||n&&(s[2]<h[4]||s[2]>h[5]))&&(s.length=0)),!s.length){t.reset(),t.nextPath();const e=t.numPoints?function(t){const{hasZ:n}=t,e=n?[0,0,0]:[0,0],i=n?[0,0,0]:[0,0];let s=0,a=0,o=0,h=0;if(t.nextPoint()){let l=t.x,u=t.y,m=t.z;for(;t.nextPoint();){const c=t.x,f=t.y,x=t.z;e[0]=l,e[1]=u,i[0]=c,i[1]=f,n&&(e[2]=m,i[2]=x);const p=(0,r.xA)(e,i);if(p){s+=p;const t=(0,r.Gi)(e,i);a+=p*t[0],o+=p*t[1],n&&t.length>2&&(h+=p*t[2])}l=c,u=f,m=x}}return s>0?n?[a/s,o/s,h/s]:[a/s,o/s]:t.numPoints?(t.seekPathStart(),t.nextPoint(),[t.x,t.y]):null}(t):null;if(!e)return null;s[0]=e[0],s[1]=e[1],n&&e.length>2&&(s[2]=e[2])}return s}const l=1e-6;function u(t){let n=0;for(t.reset();t.nextPath();)n+=(0,r.VK)(t);if(n<l){const n=h(t);return n?[n[0],n[1]]:null}const e=[0,0];if(t.reset(),!t.nextPath()||!t.nextPoint())return null;const i=[t.x,t.y];for(t.reset();t.nextPath();)c(e,i,t);return e[0]*=1/n,e[1]*=1/n,e[0]+=i[0],e[1]+=i[1],e}const m=1/3;function c(t,n,e){if(!t||!e||e.numPoints<3)return null;e.nextPoint();const i=e.x,s=e.y;e.nextPoint();let a,o=e.x-i,h=e.y-s,l=0,u=0;for(;e.nextPoint();)l=e.x-i,u=e.y-s,a=.5*m*(l*h-u*o),t[0]+=a*(o+l),t[1]+=a*(h+u),o=l,h=u;const c=(0,r.VK)(e),f=[i,s];return f[0]-=n[0],f[1]-=n[1],f[0]*=c,f[1]*=c,t[0]+=f[0],t[1]+=f[1],t}},54102:(t,n,e)=>{e.d(n,{CI:()=>u,OQ:()=>o,Qg:()=>h,aV:()=>r,lQ:()=>s,uP:()=>a,wP:()=>m});const i=[0,0];function r(t,n){return null!=n&&l(t,n.x,n.y,n.z)}function s(t,n){if(!n.points||n.points.length)return!1;for(const e of n.points)if(!o(t,e))return!1;return!0}function a(t,n){const{xmin:e,ymin:i,zmin:r,xmax:s,ymax:a,zmax:o}=n;return t.hasZ&&n.hasZ?l(t,e,i,r)&&l(t,e,a,r)&&l(t,s,a,r)&&l(t,s,i,r)&&l(t,e,i,o)&&l(t,e,a,o)&&l(t,s,a,o)&&l(t,s,i,o):l(t,e,i)&&l(t,e,a)&&l(t,s,a)&&l(t,s,i)}function o(t,n){return l(t,n[0],n[1])}function h(t,n){return l(t,n[0],n[1],n[2])}function l(t,n,e,i){return n>=t.xmin&&n<=t.xmax&&e>=t.ymin&&e<=t.ymax&&(null==i||!t.hasZ||i>=t.zmin&&i<=t.zmax)}function u(t,n){return i[1]=n.y,i[0]=n.x,function(t,n){return m(t.rings,n)}(t,i)}function m(t,n){if(!t)return!1;if(function(t){return!Array.isArray(t[0][0])}(t))return c(!1,t,n);let e=!1;for(let i=0,r=t.length;i<r;i++)e=c(e,t[i],n);return e}function c(t,n,e){const[i,r]=e;let s=t,a=0;for(let t=0,e=n.length;t<e;t++){a++,a===e&&(a=0);const[o,h]=n[t],[l,u]=n[a];(h<r&&u>=r||u<r&&h>=r)&&o+(r-h)/(u-h)*(l-o)<i&&(s=!s)}return s}},86662:(t,n,e)=>{e.d(n,{Gi:()=>l,Sm:()=>f,Tx:()=>a,VK:()=>x,Zy:()=>c,bu:()=>u,ko:()=>o,xA:()=>s});var i=e(67676),r=e(62155);function s(t,n){const e=n[0]-t[0],i=n[1]-t[1];if(t.length>2&&n.length>2){const r=t[2]-n[2];return Math.sqrt(e*e+i*i+r*r)}return Math.sqrt(e*e+i*i)}function a(t,n,e,i){const[r,s]=n,[a,o]=e[i],[h,l]=e[i+1],u=h-a,m=l-o,c=u*u+m*m,f=(r-a)*u+(s-o)*m,x=Math.min(1,Math.max(0,f/c));return t[0]=a+u*x,t[1]=o+m*x,t}function o(t,n,e){let i,r,s,a,o=!1,l=1/0;for(e.reset();e.nextPath();)if(e.nextPoint())for(i=e.x,r=e.y;e.nextPoint();)s=e.x,a=e.y,r>n!=a>n&&t<(s-i)*(n-r)/(a-r)+i&&(o=!o),l=Math.min(l,h(t,n,i,r,s,a)),i=s,r=a;return 0===l?0:(o?1:-1)*Math.sqrt(l)}function h(t,n,e,i,r,s){let a=e,o=i,h=r-a,l=s-o;if(0!==h||0!==l){const e=((t-a)*h+(n-o)*l)/(h*h+l*l);e>1?(a=r,o=s):e>0&&(a+=h*e,o+=l*e)}return h=t-a,l=n-o,h*h+l*l}function l(t,n){return function(t,n,e){const i=t[0]+e*(n[0]-t[0]),r=t[1]+e*(n[1]-t[1]);return t.length>2&&n.length>2?[i,r,t[2]+e*(n[2]-t[2])]:[i,r]}(t,n,.5)}function u(t,n=r.R.X,e=r.R.Y){let i=0;const s=t.length;let a=t[0];for(let r=0;r<s-1;r++){const s=t[r+1];i+=(s[n]-a[n])*(s[e]+a[e]),a=s}return i>=0}function m(t){const n=t.length;return n>2&&(0,i.fS)(t[0],t[n-1])}function c(t){if("rings"in t)for(const n of t.rings)m(n)||n.push(n[0].slice())}function f(t){if(!t||t.length<3)return 0;let n=0;const e=t.length-1;for(let i=0;i<e;i++)n+=(t[i][0]-t[i+1][0])*(t[i][1]+t[i+1][1]);return n+=(t[e][0]-t[0][0])*(t[e][1]+t[0][1]),-.5*n}function x(t){if(!t||t.numPoints<3)return 0;let n,e,i=0;if(t.seekPathStart(),!t.nextPoint())return 0;n=t.x,e=t.y;const r=n,s=e;for(;t.nextPoint();)i+=(n-t.x)*(e+t.y),n=t.x,e=t.y;return i+=(n-r)*(e+s),-.5*i}e(8744)},49600:(t,n,e)=>{e.d(n,{Wn:()=>c,_w:()=>m,aO:()=>u});var i=e(20322);const r=[];function s(t,n,e,i){return{xmin:t,ymin:n,xmax:e,ymax:i}}function a(t,n,e,i,r,s){return{xmin:t,ymin:n,zmin:e,xmax:i,ymax:r,zmax:s}}function o(t,n,e,i,r,s){return{xmin:t,ymin:n,mmin:e,xmax:i,ymax:r,mmax:s}}function h(t,n,e,i,r,s,a,o){return{xmin:t,ymin:n,zmin:e,mmin:i,xmax:r,ymax:s,zmax:a,mmax:o}}function l(t,n=!1,e=!1){return n?e?h(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]):a(t[0],t[1],t[2],t[3],t[4],t[5]):e?o(t[0],t[1],t[2],t[3],t[4],t[5]):s(t[0],t[1],t[2],t[3])}function u(t){return t?function(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}(t)?t:function(t){return void 0!==t.x&&void 0!==t.y}(t)?function(t){const{x:n,y:e,z:i,m:r}=t,l=null!=r;return null!=i?l?h(n,e,i,r,n,e,i,r):a(n,e,i,n,e,i):l?o(n,e,r,n,e,r):s(n,e,n,e)}(t):function(t){return void 0!==t.rings}(t)?m(t):function(t){return void 0!==t.paths}(t)?c(t):function(t){return void 0!==t.points}(t)?function(t){const{hasZ:n,hasM:e,points:s}=t;return l((0,i.lC)(r,s,n??!1,e??!1),n,e)}(t):null:null}function m(t){const{hasZ:n,hasM:e,rings:s}=t,a=(0,i.C6)(r,s,n??!1,e??!1);return a?l(a,n,e):null}function c(t){const{hasZ:n,hasM:e,paths:s}=t,a=(0,i.C6)(r,s,n??!1,e??!1);return a?l(a,n,e):null}},87416:(t,n,e)=>{e.d(n,{Ff:()=>y,IY:()=>M,Nl:()=>f,UT:()=>d,h_:()=>s});var i=e(54102);function r(t,n){return(0,i.aV)(t,n)}function s(t,n){const e=t.hasZ&&n.hasZ;let i,r,s;if(t.xmin<=n.xmin){if(i=n.xmin,t.xmax<i)return!1}else if(i=t.xmin,n.xmax<i)return!1;if(t.ymin<=n.ymin){if(r=n.ymin,t.ymax<r)return!1}else if(r=t.ymin,n.ymax<r)return!1;if(e&&n.hasZ)if(t.zmin<=n.zmin){if(s=n.zmin,t.zmax<s)return!1}else if(s=t.zmin,n.zmax<s)return!1;return!0}function a(t,n){const{points:e,hasZ:r}=n,s=r?i.Qg:i.OQ;for(const n of e)if(s(t,n))return!0;return!1}const o=[0,0],h=[0,0],l=[0,0],u=[0,0],m=[o,h,l,u],c=[[l,o],[o,h],[h,u],[u,l]];function f(t,n){return function(t,n){o[0]=t.xmin,o[1]=t.ymax,h[0]=t.xmax,h[1]=t.ymax,l[0]=t.xmin,l[1]=t.ymin,u[0]=t.xmax,u[1]=t.ymin;for(const t of m)if((0,i.wP)(n,t))return!0;for(const e of n){if(!e.length)continue;let n=e[0];if((0,i.OQ)(t,n))return!0;for(let r=1;r<e.length;r++){const s=e[r];if((0,i.OQ)(t,s)||g(n,s,c))return!0;n=s}}return!1}(t,n.rings)}function x(t,n){o[0]=t.xmin,o[1]=t.ymax,h[0]=t.xmax,h[1]=t.ymax,l[0]=t.xmin,l[1]=t.ymin,u[0]=t.xmax,u[1]=t.ymin;const e=n.paths;for(const n of e){if(!e.length)continue;let r=n[0];if((0,i.OQ)(t,r))return!0;for(let e=1;e<n.length;e++){const s=n[e];if((0,i.OQ)(t,s)||g(r,s,c))return!0;r=s}}return!1}const p=[0,0];function y(t){for(let n=0;n<t.length;n++){const e=t[n];for(let i=0;i<e.length-1;i++){const r=e[i],s=e[i+1];for(let e=n+1;e<t.length;e++)for(let n=0;n<t[e].length-1;n++){const i=t[e][n],a=t[e][n+1];if(d(r,s,i,a,p)&&!(p[0]===r[0]&&p[1]===r[1]||p[0]===i[0]&&p[1]===i[1]||p[0]===s[0]&&p[1]===s[1]||p[0]===a[0]&&p[1]===a[1]))return!0}}const i=e.length;if(!(i<=4))for(let t=0;t<i-3;t++){let n=i-1;0===t&&(n=i-2);const r=e[t],s=e[t+1];for(let i=t+2;i<n;i++){const t=e[i],n=e[i+1];if(d(r,s,t,n,p)&&!(p[0]===r[0]&&p[1]===r[1]||p[0]===t[0]&&p[1]===t[1]||p[0]===s[0]&&p[1]===s[1]||p[0]===n[0]&&p[1]===n[1]))return!0}}}return!1}function g(t,n,e){for(let i=0;i<e.length;i++)if(d(t,n,e[i][0],e[i][1]))return!0;return!1}function d(t,n,e,i,r){const[s,a]=t,[o,h]=n,[l,u]=e,[m,c]=i,f=m-l,x=s-l,p=o-s,y=c-u,g=a-u,d=h-a,M=y*p-f*d;if(0===M)return!1;const v=(f*g-y*x)/M,P=(p*g-d*x)/M;return v>=0&&v<=1&&P>=0&&P<=1&&(r&&(r[0]=s+v*(o-s),r[1]=a+v*(h-a)),!0)}function M(t){switch(t){case"esriGeometryEnvelope":case"extent":return s;case"esriGeometryMultipoint":case"multipoint":return a;case"esriGeometryPoint":case"point":return r;case"esriGeometryPolygon":case"polygon":return f;case"esriGeometryPolyline":case"polyline":return x}}},33955:(t,n,e)=>{e.d(n,{Ji:()=>p,YX:()=>l,aW:()=>u,im:()=>x,l9:()=>c,oU:()=>f,q9:()=>g,wp:()=>m});var i=e(6570),r=e(9361),s=e(65091),a=e(94139),o=e(38913),h=e(58901);function l(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function u(t){return void 0!==t.points}function m(t){return void 0!==t.x&&void 0!==t.y}function c(t){return void 0!==t.paths}function f(t){return void 0!==t.rings}function x(t){return null==t?null:t instanceof r.Z?t:m(t)?a.Z.fromJSON(t):c(t)?h.Z.fromJSON(t):f(t)?o.Z.fromJSON(t):u(t)?s.Z.fromJSON(t):l(t)?i.Z.fromJSON(t):null}function p(t){return t?m(t)?"esriGeometryPoint":c(t)?"esriGeometryPolyline":f(t)?"esriGeometryPolygon":l(t)?"esriGeometryEnvelope":u(t)?"esriGeometryMultipoint":null:null}const y={esriGeometryPoint:a.Z,esriGeometryPolyline:h.Z,esriGeometryPolygon:o.Z,esriGeometryEnvelope:i.Z,esriGeometryMultipoint:s.Z};function g(t){return t&&y[t]||null}},82397:(t,n,e)=>{e.d(n,{G6:()=>p,Ie:()=>x,J9:()=>c,RF:()=>m,U1:()=>f,vY:()=>a}),e(33955);const i=(t,n,e)=>[n,e],r=(t,n,e)=>[n,e,t[2]],s=(t,n,e)=>[n,e,t[2],t[3]];function a(t){return t?{originPosition:"upper-left"===t.originPosition?"upperLeft":"lower-left"===t.originPosition?"lowerLeft":t.originPosition,scale:t.tolerance?[t.tolerance,t.tolerance]:[1,1],translate:null!=t.extent?[t.extent.xmin,t.extent.ymax]:[0,0]}:null}function o({scale:t,translate:n},e){return e*t[0]+n[0]}function h({scale:t,translate:n},e){return n[1]-e*t[1]}function l(t,n,e){const i=new Array(e.length);if(!e.length)return i;const[r,s]=t.scale;let a=o(t,e[0][0]),l=h(t,e[0][1]);i[0]=n(e[0],a,l);for(let t=1;t<e.length;t++){const o=e[t];a+=o[0]*r,l-=o[1]*s,i[t]=n(o,a,l)}return i}function u(t,n,e){const i=new Array(e.length);for(let r=0;r<e.length;r++)i[r]=l(t,n,e[r]);return i}function m(t,n,e,i,r){return n.x=function({scale:t,translate:n},e){return Math.round((e-n[0])/t[0])}(t,e.x),n.y=function({scale:t,translate:n},e){return Math.round((n[1]-e)/t[1])}(t,e.y),n!==e&&(i&&(n.z=e.z),r&&(n.m=e.m)),n}function c(t,n,e,a,o){return null!=e&&(n.points=function(t,n,e,a){return l(t,e?a?s:r:a?r:i,n)}(t,e.points,a,o)),n}function f(t,n,e,i,r){return null==e||(n.x=o(t,e.x),n.y=h(t,e.y),n!==e&&(i&&(n.z=e.z),r&&(n.m=e.m))),n}function x(t,n,e,a,o){return null!=e&&(n.rings=function(t,n,e,a){return u(t,e?a?s:r:a?r:i,n)}(t,e.rings,a,o)),n}function p(t,n,e,a,o){return null!=e&&(n.paths=function(t,n,e,a){return u(t,e?a?s:r:a?r:i,n)}(t,e.paths,a,o)),n}},86973:(t,n,e)=>{e.d(n,{M:()=>r,P:()=>s});var i=e(35454);const r=(0,i.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),s=(0,i.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},16238:(t,n,e)=>{function i(t,n,e=!1){let{hasM:i,hasZ:r}=t;Array.isArray(n)?4!==n.length||i||r?3===n.length&&e&&!i?(r=!0,i=!1):3===n.length&&i&&r&&(i=!1,r=!1):(i=!0,r=!0):(r=!r&&n.hasZ&&(!i||n.hasM),i=!i&&n.hasM&&(!r||n.hasZ)),t.hasZ=r,t.hasM=i}e.d(n,{l:()=>i})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4196,9880],{99880:(e,t,r)=>{r.d(t,{V:()=>l});var n=r(68773),s=(r(3172),r(20102)),i=r(92604),o=r(81271);const a=i.Z.getLogger("esri.assets");function l(e){if(!n.default.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new s.Z("assets:path-not-set","config.assetsPath is not set");return(0,o.v_)(n.default.assetsPath,e)}},32448:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(43697),s=r(92036),i=r(50758),o=r(52011);class a{constructor(){this._emitter=new a.EventEmitter(this)}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}}!function(e){class t{constructor(e=null){this._target=e,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(e,t){const r=this._listenersMap&&this._listenersMap.get(e);if(!r)return!1;const n=this._target||this;return[...r].forEach((e=>{e.call(n,t)})),r.length>0}on(e,t){if(Array.isArray(e)){const r=e.map((e=>this.on(e,t)));return(0,i.AL)(r)}if(e.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap||(this._listenersMap=new Map);const r=this._listenersMap.get(e)||[];return r.push(t),this._listenersMap.set(e,r),(0,i.kB)((()=>{const r=this._listenersMap&&this._listenersMap.get(e)||[],n=r.indexOf(t);n>=0&&r.splice(n,1)}))}once(e,t){const r=this.on(e,(e=>{r.remove(),t.call(null,e)}));return r}hasEventListener(e){const t=this._listenersMap&&this._listenersMap.get(e);return null!=t&&t.length>0}}e.EventEmitter=t,e.EventedMixin=e=>{let r=class extends e{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};return r=(0,n._)([(0,o.j)("esri.core.Evented")],r),r};let r=class extends s.Z{constructor(){super(...arguments),this._emitter=new a.EventEmitter(this)}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};r=(0,n._)([(0,o.j)("esri.core.Evented")],r),e.EventedAccessor=r}(a||(a={}));const l=a},10699:(e,t,r)=>{r.d(t,{IG:()=>o,iv:()=>a});var n=r(43697),s=r(52011);let i=0;const o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+i++})}};return t=(0,n._)([(0,s.j)("esri.core.Identifiable")],t),t},a=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:i++})}};return t=(0,n._)([(0,s.j)("esri.core.NumericIdentifiable")],t),t};let l=class extends(o(class{})){};l=(0,n._)([(0,s.j)("esri.core.Identifiable")],l)},10661:(e,t,r)=>{r.d(t,{s:()=>s});var n=r(42100);class s extends n.s{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},66643:(e,t,r)=>{r.d(t,{Ed:()=>u,UI:()=>c,mt:()=>f,q6:()=>p,vr:()=>y});var n=r(43697),s=r(92036),i=r(70586),o=r(95330),a=r(5600),l=r(52011);function u(e,t,r){return(0,o.as)(e.map(((e,n)=>t.apply(r,[e,n]))))}async function c(e,t,r){return(await(0,o.as)(e.map(((e,n)=>t.apply(r,[e,n]))))).map((e=>e.value))}function d(e){return{ok:!0,value:e}}function h(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return d(await e)}catch(e){return h(e)}}async function f(e){try{return d(await e)}catch(e){return(0,o.r9)(e),h(e)}}function y(e,t){return new b(e,t)}let b=class extends s.Z{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,i.IM)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then((e=>{this._result=d(e),this._cleanup()}),(e=>{this._result=h(e),this._cleanup()})),this._abortHandle=(0,o.fu)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,i.hw)(this._abortHandle),this._abortController=null}};(0,n._)([(0,a.Cb)()],b.prototype,"value",null),(0,n._)([(0,a.Cb)()],b.prototype,"error",null),(0,n._)([(0,a.Cb)()],b.prototype,"finished",null),(0,n._)([(0,a.Cb)()],b.prototype,"promise",void 0),(0,n._)([(0,a.Cb)()],b.prototype,"_result",void 0),b=(0,n._)([(0,l.j)("esri.core.asyncUtils.ReactiveTask")],b)},94443:(e,t,r)=>{r.d(t,{ME:()=>f,Su:()=>y,tz:()=>p});var n=r(20102),s=r(50758),i=r(95330),o=r(70171);const a=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,l={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function u(e){return e in l}Object.keys(l);const c=[],d=new Map;function h(e){for(const t of d.keys())b(e.pattern,t)&&d.delete(t)}function p(e){return c.includes(e)||(h(e),c.unshift(e)),(0,s.kB)((()=>{const t=c.indexOf(e);t>-1&&(c.splice(t,1),h(e))}))}async function f(e){const t=(0,o.Kd)();d.has(e)||d.set(e,async function(e,t){const r=[];for(const n of c)if(b(n.pattern,e))try{return await n.fetchMessageBundle(e,t)}catch(e){r.push(e)}if(r.length)throw new n.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r});throw new n.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const r=d.get(e);return r&&await _.add(r),r}function y(e){if(!a.test(e))return null;const t=a.exec(e);if(null===t)return null;const[,r,n]=t,s=r+(n?"-"+n.toUpperCase():"");return u(s)?s:u(r)?r:null}function b(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,o.Ze)((()=>{d.clear()}));const _=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,i.hh)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},87085:(e,t,r)=>{r.d(t,{Z:()=>g});var n=r(43697),s=(r(66577),r(3172)),i=r(20102),o=r(32448),a=r(10699),l=r(83379),u=r(92604),c=r(95330),d=r(81271),h=r(5600),p=(r(75215),r(67676),r(80442),r(52011)),f=r(68773),y=r(6570),b=r(82971);let _=0,m=class extends(o.Z.EventedMixin((0,a.IG)(l.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.Z(-180,-90,180,90,b.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+_++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=b.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(3529).then(r.bind(r,63529))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:n}=await r.e(8008).then(r.bind(r,28008));try{return await n(t)}catch(e){const r=t&&t.portalItem,n=r&&r.id||"unset",s=r&&r.portal&&r.portal.url||f.default.portalUrl;throw u.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+n+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,c.D_)(e)||u.Z.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,d.mN)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new i.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,n._)([(0,h.Cb)({type:String})],m.prototype,"attributionDataUrl",void 0),(0,n._)([(0,h.Cb)({type:y.Z})],m.prototype,"fullExtent",void 0),(0,n._)([(0,h.Cb)({readOnly:!0})],m.prototype,"hasAttributionData",null),(0,n._)([(0,h.Cb)({type:String,clonable:!1})],m.prototype,"id",void 0),(0,n._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],m.prototype,"legendEnabled",void 0),(0,n._)([(0,h.Cb)({type:["show","hide","hide-children"]})],m.prototype,"listMode",void 0),(0,n._)([(0,h.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],m.prototype,"opacity",void 0),(0,n._)([(0,h.Cb)({clonable:!1})],m.prototype,"parent",void 0),(0,n._)([(0,h.Cb)({readOnly:!0})],m.prototype,"parsedUrl",null),(0,n._)([(0,h.Cb)({type:Boolean})],m.prototype,"popupEnabled",void 0),(0,n._)([(0,h.Cb)({type:Boolean})],m.prototype,"attributionVisible",void 0),(0,n._)([(0,h.Cb)({type:b.Z})],m.prototype,"spatialReference",void 0),(0,n._)([(0,h.Cb)({type:String})],m.prototype,"title",void 0),(0,n._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],m.prototype,"type",void 0),(0,n._)([(0,h.Cb)()],m.prototype,"url",void 0),(0,n._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],m.prototype,"visible",void 0),m=(0,n._)([(0,p.j)("esri.layers.Layer")],m);const g=m},84230:(e,t,r)=>{r.d(t,{A2:()=>o,S1:()=>c,fb:()=>i,ln:()=>d,oP:()=>u,rQ:()=>a,y2:()=>l});var n=r(40330),s=r(3172);const i={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function o(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function a(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function l(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}async function u(e,t){const r=n.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const i=e.toLowerCase().indexOf("/rest/services");if(-1===i)return null;const o=`${e.substring(0,i)}/rest/info`,a=null!=t?t.signal:null,{data:l}=await(0,s.default)(o,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function c(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function d(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}},14661:(e,t,r)=>{r.d(t,{$o:()=>c,Fj:()=>l,Kz:()=>d,Ss:()=>h,_$:()=>a,ck:()=>u,qj:()=>o});var n=r(44547),s=r(82971),i=r(40488);function o(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,d.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}async function c(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,i.Sx)(e);const r=s.Z.WGS84;return await(0,n.initializeProjection)(t,r),(0,n.iV)(e,r)}(r)}const d={DEVELOPER_BASEMAP:"DeveloperBasemap",JSAPI:"ArcGIS API for JavaScript",METADATA:"Metadata",MULTI_LAYER:"Multilayer",SINGLE_LAYER:"Singlelayer",TABLE:"Table",HOSTED_SERVICE:"Hosted Service",LOCAL_SCENE:"ViewingMode-Local"};function h(e){const{portal:t,isOrgItem:r,itemControl:n}=e,s=t.user?.privileges;let i=!s||s.includes("features:user:edit"),o=!!r&&!!s?.includes("features:user:fullEdit");const a="update"===n||"admin"===n;return a?o=i=!0:o&&(i=!0),{features:{edit:i,fullEdit:o},content:{updateItem:a}}}}}]);
|