@arcgis/core 4.26.0 → 4.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/arcade/Feature.js +1 -1
  2. package/arcade/arcadeTimeUtils.js +1 -1
  3. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/009cd8f27d2357ec9317.js +1 -0
  6. package/assets/esri/core/workers/chunks/03081e28fe59ba2e8040.js +1 -0
  7. package/assets/esri/core/workers/chunks/17ce4b146825adcca307.js +1 -0
  8. package/assets/esri/core/workers/chunks/186f2d0c94fa1eca4959.js +1 -0
  9. package/assets/esri/core/workers/chunks/1fd48420dfbbfdb3b051.js +1 -0
  10. package/assets/esri/core/workers/chunks/226bfa115acb8542f21c.js +1 -0
  11. package/assets/esri/core/workers/chunks/{25abc848a128b24ff66e.js → 3808f33563757fad703d.js} +1 -1
  12. package/assets/esri/core/workers/chunks/38ebf5d20576609566f9.js +1 -0
  13. package/assets/esri/core/workers/chunks/4125b10b1d009f35e75e.js +1 -0
  14. package/assets/esri/core/workers/chunks/48d35993b6ffb76e56e9.js +1 -0
  15. package/assets/esri/core/workers/chunks/5022862c5658e7bb0e04.js +1 -0
  16. package/assets/esri/core/workers/chunks/55782608bee89fa0d6e1.js +1 -0
  17. package/assets/esri/core/workers/chunks/5598996bcf60741aa734.js +1 -0
  18. package/assets/esri/core/workers/chunks/592e9834aa896cdd0e86.js +1 -0
  19. package/assets/esri/core/workers/chunks/5a5e4983c526bf08c7f1.js +1 -0
  20. package/assets/esri/core/workers/chunks/{a6d34147e7dbb1e4609c.js → 5f8acce073b8da5ac6ae.js} +1 -1
  21. package/assets/esri/core/workers/chunks/611c27efa10e4e04d8b6.js +1 -0
  22. package/assets/esri/core/workers/chunks/6ecf0bb8e16159160cde.js +1 -0
  23. package/assets/esri/core/workers/chunks/81949c9d14a8d75c45b6.js +1 -0
  24. package/assets/esri/core/workers/chunks/843a8b87ebecc246598a.js +1 -0
  25. package/assets/esri/core/workers/chunks/84c0a8d41eec91bb5142.js +1 -0
  26. package/assets/esri/core/workers/chunks/85c6a2c7239d0cf73a44.js +1 -0
  27. package/assets/esri/core/workers/chunks/8f3262f33d635cf9f046.js +1 -0
  28. package/assets/esri/core/workers/chunks/9054fd0707a15d037bb9.js +1 -0
  29. package/assets/esri/core/workers/chunks/a2e5b67c1c65a93f3c75.js +1 -0
  30. package/assets/esri/core/workers/chunks/a6e57062917ce1a0afa9.js +1 -0
  31. package/assets/esri/core/workers/chunks/b8b6df646ecf5482c5b4.js +1 -0
  32. package/assets/esri/core/workers/chunks/bcdd71e7475777f0f1bb.js +1 -0
  33. package/assets/esri/core/workers/chunks/{97ba79f9bceb42405573.js → bce1d4d6449a646834a1.js} +1 -1
  34. package/assets/esri/core/workers/chunks/c999e9dd748ae449d66e.js +1 -0
  35. package/assets/esri/core/workers/chunks/cb177fb86cf8cec95e87.js +1 -0
  36. package/assets/esri/core/workers/chunks/{3c557a5728c76843561f.js → d3498d28fd01a0ad3899.js} +1 -1
  37. package/assets/esri/core/workers/chunks/dd698ada6b7c03cfd25c.js +1 -0
  38. package/assets/esri/core/workers/chunks/e26acb83eae5eec87ca1.js +1 -0
  39. package/assets/esri/core/workers/chunks/eca1b840c009e5477b80.js +1 -0
  40. package/assets/esri/core/workers/chunks/fbe981e42e92a32d922d.js +1 -0
  41. package/config.js +1 -1
  42. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  43. package/package.json +1 -1
  44. package/support/revision.js +1 -1
  45. package/views/2d/layers/features/sources/BaseFeatureSource.js +1 -1
  46. package/views/2d/layers/features/sources/DataTileSource.js +1 -1
  47. package/views/layers/ImageryTileLayerView.js +1 -1
  48. package/widgets/Editor.js +1 -1
  49. package/assets/esri/core/workers/chunks/03a811b5a912d83792dd.js +0 -1
  50. package/assets/esri/core/workers/chunks/0923c0641ca9d9a52efc.js +0 -1
  51. package/assets/esri/core/workers/chunks/1aff09c90f287eeba408.js +0 -1
  52. package/assets/esri/core/workers/chunks/1faf0e2aeabe003e2f64.js +0 -1
  53. package/assets/esri/core/workers/chunks/29662688eedc6df54d4b.js +0 -1
  54. package/assets/esri/core/workers/chunks/2b94b1bc4634f0518890.js +0 -1
  55. package/assets/esri/core/workers/chunks/3664d97f0c2819690cf9.js +0 -1
  56. package/assets/esri/core/workers/chunks/3d457f987e2089d67e89.js +0 -1
  57. package/assets/esri/core/workers/chunks/41d25407888326c91566.js +0 -1
  58. package/assets/esri/core/workers/chunks/4503194b1b1d8908a386.js +0 -1
  59. package/assets/esri/core/workers/chunks/4a264b7cfd0a4bc62be9.js +0 -1
  60. package/assets/esri/core/workers/chunks/4cddaa79af86b0981baa.js +0 -1
  61. package/assets/esri/core/workers/chunks/582d12138e6eea62d6fe.js +0 -1
  62. package/assets/esri/core/workers/chunks/5e9869849d999aac5756.js +0 -1
  63. package/assets/esri/core/workers/chunks/636b4e080d701d5856c7.js +0 -1
  64. package/assets/esri/core/workers/chunks/69c89c01783250811b56.js +0 -1
  65. package/assets/esri/core/workers/chunks/72c827a5388a4b1112e3.js +0 -1
  66. package/assets/esri/core/workers/chunks/7db8a429ef7bf11c5bb6.js +0 -1
  67. package/assets/esri/core/workers/chunks/8d52093b6c4bfd087a12.js +0 -1
  68. package/assets/esri/core/workers/chunks/9b449a036598479ad0b0.js +0 -1
  69. package/assets/esri/core/workers/chunks/9c67598554e0d2b2c14a.js +0 -1
  70. package/assets/esri/core/workers/chunks/9f8aad19c5973e201604.js +0 -1
  71. package/assets/esri/core/workers/chunks/9ff12db2f3dcd5749053.js +0 -1
  72. package/assets/esri/core/workers/chunks/a0e3b837262d6d64f605.js +0 -1
  73. package/assets/esri/core/workers/chunks/a213fb1cd2b5da2b7027.js +0 -1
  74. package/assets/esri/core/workers/chunks/aa864f9ad6b9a92ab328.js +0 -1
  75. package/assets/esri/core/workers/chunks/bb6e4affafef9855b8fd.js +0 -1
  76. package/assets/esri/core/workers/chunks/bd711b7229aa5cfa063b.js +0 -1
  77. package/assets/esri/core/workers/chunks/e384e1daec50f8cdcdd1.js +0 -1
  78. package/assets/esri/core/workers/chunks/eccc725bc3f8047171f7.js +0 -1
  79. package/assets/esri/core/workers/chunks/f3b59aa3b33e3ee70bec.js +0 -1
  80. package/assets/esri/core/workers/chunks/f7ed302a233d4cfb9060.js +0 -1
  81. package/assets/esri/core/workers/chunks/fd03ba4613f8973f8c86.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7374],{84552:(e,t,r)=>{r.d(t,{Z:()=>h});var i=r(43697),s=r(2368),n=r(96674),a=r(35463),l=r(5600),o=(r(75215),r(67676),r(36030)),d=r(52011),u=r(78981);let p=class extends((0,s.J)(n.wq)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,a.rJ)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,o.J)(u.v,{nonNullable:!0})],p.prototype,"unit",void 0),(0,i._)([(0,l.Cb)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,i._)([(0,d.j)("esri.TimeInterval")],p);const h=p},3920:(e,t,r)=>{r.d(t,{p:()=>d,r:()=>u});var i=r(43697),s=r(15923),n=r(61247),a=r(5600),l=r(52011),o=r(72762);const d=e=>{let t=class extends e{destroy(){this.destroyed||(this._get("handles")?.destroy(),this._get("updatingHandles")?.destroy())}get handles(){return this._get("handles")||new n.Z}get updatingHandles(){return this._get("updatingHandles")||new o.t}};return(0,i._)([(0,a.Cb)({readOnly:!0})],t.prototype,"handles",null),(0,i._)([(0,a.Cb)({readOnly:!0})],t.prototype,"updatingHandles",null),t=(0,i._)([(0,l.j)("esri.core.HandleOwner")],t),t};let u=class extends(d(s.Z)){};u=(0,i._)([(0,l.j)("esri.core.HandleOwner")],u)},72762:(e,t,r)=>{r.d(t,{t:()=>p});var i=r(43697),s=r(15923),n=r(61247),a=r(70586),l=r(17445),o=r(1654),d=r(5600),u=r(52011);let p=class extends s.Z{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._handles=new n.Z,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll(),this._handles.destroy()}add(e,t,r={}){return this._installWatch(e,t,r,l.YP)}addWhen(e,t,r={}){return this._installWatch(e,t,r,l.gx)}addOnCollectionChange(e,t,{initial:r=!1,final:i=!1}={}){const s=++this._handleId;return this._handles.add([(0,l.on)(e,"after-changes",this._createSyncUpdatingCallback(),l.Z_),(0,l.on)(e,"change",t,{onListenerAdd:r?e=>t({added:e.toArray(),removed:[]}):void 0,onListenerRemove:i?e=>t({added:[],removed:e.toArray()}):void 0})],s),{remove:()=>this._handles.remove(s)}}addPromise(e){if((0,a.Wi)(e))return e;const t=++this._handleId;this._handles.add({remove:()=>{this._pendingPromises.delete(e)&&(0!==this._pendingPromises.size||this._handles.has(h)||this._set("updating",!1))}},t),this._pendingPromises.add(e),this._set("updating",!0);const r=()=>this._handles.remove(t);return e.then(r,r),e}removeAll(){this._pendingPromises.clear(),this._handles.removeAll(),this._set("updating",!1)}_installWatch(e,t,r={},i){const s=++this._handleId;r.sync||this._installSyncUpdatingWatch(e,s);const n=i(e,t,r);return this._handles.add(n,s),{remove:()=>this._handles.remove(s)}}_installSyncUpdatingWatch(e,t){const r=this._createSyncUpdatingCallback(),i=(0,l.YP)(e,r,{sync:!0,equals:()=>!1});return this._handles.add(i,t),i}_createSyncUpdatingCallback(){return()=>{this._handles.remove(h),++this._scheduleHandleId;const e=this._scheduleHandleId;this._get("updating")||this._set("updating",!0),this._handles.add((0,o.Os)((()=>{e===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this._handles.remove(h))})),h)}}};(0,i._)([(0,d.Cb)({readOnly:!0})],p.prototype,"updating",void 0),p=(0,i._)([(0,u.j)("esri.core.support.WatchUpdatingTracking")],p);const h=-42},91040:(e,t,r)=>{r.d(t,{yZ:()=>s});var i=r(67900);function s(e,t){const r=t||e.extent,s=e.width,n=(0,i.c9)(r&&r.spatialReference);return r&&s?r.width/s*n*i.hd*96:0}},27374:(e,t,r)=>{r.r(t),r.d(t,{default:()=>q});var i=r(43697),s=r(3172),n=r(92835),a=r(20102),l=r(3920),o=r(68668),d=r(70586),u=r(16453),p=r(95330),h=r(5600),y=r(75215),c=(r(67676),r(71715)),m=r(52011),f=r(30556),g=r(31263),v=r(6570),b=r(91040),_=r(87085),w=r(54295),S=r(7944),x=r(17287),I=r(71612),C=r(17017),T=r(38009),O=r(16859),E=r(34760),U=r(72965),L=r(10343),N=r(28294),j=r(21506),P=r(15923),F=r(42033);function D(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;const r=e.filter((e=>""!==e)).map((e=>`'${e}'`));return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var Z=r(32073);const R={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let J=class extends((0,l.p)(P.Z)){constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map((e=>{const t=D(this.floors,e);return e.toExportImageJSON(t)}));return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,Z.FN)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.handles.remove("layer"),e&&this.handles.add([e.allSublayers.on("change",(()=>this.notifyChange("visibleSublayers"))),e.on("sublayer-update",(e=>this.notifyChange(R[e.propertyName])))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map((e=>e.id)).join(","):"show:-1":null}get layerDefs(){const e=!!this.floors?.length,t=this.visibleSublayers.filter((t=>null!=t.definitionExpression||e&&null!=t.floorInfo));return t.length?JSON.stringify(t.reduce(((e,t)=>{const r=D(this.floors,t),i=(0,F._)(r,t.definitionExpression);return(0,d.pC)(i)&&(e[t.id]=i),e}),{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers"),this.commitProperty("timeExtent");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=t=>{const i=this.scale,s=0===i,n=0===t.minScale||i<=t.minScale,a=0===t.maxScale||i>=t.maxScale;t.visible&&(s||n&&a)&&(t.sublayers?t.sublayers.forEach(r):e.unshift(t))};t&&t.forEach(r);const i=this._get("visibleSublayers");return!i||i.length!==e.length||i.some(((t,r)=>e[r]!==t))?e:i}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,i._)([(0,h.Cb)({readOnly:!0})],J.prototype,"dynamicLayers",null),(0,i._)([(0,h.Cb)()],J.prototype,"floors",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],J.prototype,"hasDynamicLayers",null),(0,i._)([(0,h.Cb)()],J.prototype,"layer",null),(0,i._)([(0,h.Cb)({readOnly:!0})],J.prototype,"layers",null),(0,i._)([(0,h.Cb)({readOnly:!0})],J.prototype,"layerDefs",null),(0,i._)([(0,h.Cb)({type:Number})],J.prototype,"scale",void 0),(0,i._)([(0,h.Cb)(j.qG)],J.prototype,"timeExtent",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],J.prototype,"version",null),(0,i._)([(0,h.Cb)({readOnly:!0})],J.prototype,"visibleSublayers",null),J=(0,i._)([(0,m.j)("esri.layers.mixins.ExportImageParameters")],J);var M=r(90082),k=r(49867),A=r(60199),H=r(80216);let V=class extends((0,I.h)((0,N.n)((0,U.M)((0,L.x)((0,S.O)((0,x.Y)((0,T.q)((0,O.I)((0,u.R)((0,E.Q)((0,w.V)((0,C.N)((0,l.p)(_.Z)))))))))))))){constructor(...e){super(...e),this.dateFieldsTimeReference=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeReference=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=(0,d.pC)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(p.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;const s=e.slice().reverse().flatten((({sublayers:e})=>e&&e.toArray().reverse())).toArray();let n=!1;if(this.capabilities&&this.capabilities.operations.supportsExportMap&&this.capabilities.exportMap?.supportsDynamicLayers){const e=(0,g.M9)(i.origin);if(e===g.s3.PORTAL_ITEM){const e=this.createSublayersForOrigin("service").sublayers;n=(0,Z.QV)(s,e,g.s3.SERVICE)}else if(e>g.s3.PORTAL_ITEM){const e=this.createSublayersForOrigin("portal-item");n=(0,Z.QV)(s,e.sublayers,(0,g.M9)(e.origin))}}const a=[],l={writeSublayerStructure:n,...i};let o=n;s.forEach((e=>{const t=e.write({},l);a.push(t),o=o||"user"===e.originOf("visible")})),a.some((e=>Object.keys(e).length>1))&&(t.layers=a),o&&(t.visibleLayers=s.filter((e=>e.visible)).map((e=>e.id)))}createExportImageParameters(e,t,r,i){const s=i&&i.pixelRatio||1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian());const n=new J({layer:this,floors:i?.floors,scale:(0,b.yZ)({extent:e,width:t})*s}),a=n.toJSON();n.destroy();const l=!i||!i.rotation||this.version<10.3?{}:{rotation:-i.rotation},o=e&&e.spatialReference,d=o.wkid||JSON.stringify(o.toJSON());a.dpi*=s;const u={};if(i?.timeExtent){const{start:e,end:t}=i.timeExtent.toJSON();u.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(u.time="null,null");return{bbox:e&&e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:d,imageSR:d,size:t+","+r,...a,...l,...u}}async fetchImage(e,t,r,i){const{data:s}=await this._fetchImage("image",e,t,r,i);return s}async fetchImageBitmap(e,t,r,i){const{data:s,url:n}=await this._fetchImage("blob",e,t,r,i);return(0,M.g)(s,n)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,s.default)(this.url,t),{extent:i,fullExtent:a,timeExtent:l}=r,o=i||a;return{fullExtent:o&&v.Z.fromJSON(o),timeExtent:l&&n.Z.fromJSON({start:l[0],end:l[1]})}}loadAll(){return(0,o.G)(this,(e=>{e(this.allSublayers)}))}serviceSupportsSpatialReference(e){return(0,A.D)(this,e)}async _fetchImage(e,t,r,i,n){const l={responseType:e,signal:n?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,i,n),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},o=this.parsedUrl.path+"/export";if(null!=l.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new a.Z("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:l.query});try{const{data:e}=await(0,s.default)(o,l);return{data:e,url:o}}catch(e){if((0,p.D_)(e))throw e;throw new a.Z("mapimagelayer:image-fetch-error",`Unable to load image: ${o}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await(0,s.default)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}};(0,i._)([(0,h.Cb)({type:H.Z})],V.prototype,"dateFieldsTimeReference",void 0),(0,i._)([(0,h.Cb)({type:Boolean})],V.prototype,"datesInUnknownTimezone",void 0),(0,i._)([(0,h.Cb)()],V.prototype,"dpi",void 0),(0,i._)([(0,h.Cb)()],V.prototype,"gdbVersion",void 0),(0,i._)([(0,h.Cb)()],V.prototype,"imageFormat",void 0),(0,i._)([(0,c.r)("imageFormat",["supportedImageFormatTypes"])],V.prototype,"readImageFormat",null),(0,i._)([(0,h.Cb)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],V.prototype,"imageMaxHeight",void 0),(0,i._)([(0,h.Cb)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],V.prototype,"imageMaxWidth",void 0),(0,i._)([(0,h.Cb)()],V.prototype,"imageTransparency",void 0),(0,i._)([(0,h.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],V.prototype,"isReference",void 0),(0,i._)([(0,h.Cb)({json:{read:!1,write:!1}})],V.prototype,"labelsVisible",void 0),(0,i._)([(0,h.Cb)({type:["ArcGISMapServiceLayer"]})],V.prototype,"operationalLayerType",void 0),(0,i._)([(0,h.Cb)({json:{read:!1,write:!1}})],V.prototype,"popupEnabled",void 0),(0,i._)([(0,h.Cb)({type:H.Z})],V.prototype,"preferredTimeReference",void 0),(0,i._)([(0,h.Cb)()],V.prototype,"sourceJSON",void 0),(0,i._)([(0,h.Cb)({json:{write:{ignoreOrigin:!0}}})],V.prototype,"sublayers",void 0),(0,i._)([(0,f.c)("sublayers",{layers:{type:[k.Z]},visibleLayers:{type:[y.z8]}})],V.prototype,"writeSublayers",null),(0,i._)([(0,h.Cb)({type:["show","hide","hide-children"]})],V.prototype,"listMode",void 0),(0,i._)([(0,h.Cb)({json:{read:!1},readOnly:!0,value:"map-image"})],V.prototype,"type",void 0),(0,i._)([(0,h.Cb)(j.HQ)],V.prototype,"url",void 0),V=(0,i._)([(0,m.j)("esri.layers.MapImageLayer")],V);const q=V},17287:(e,t,r)=>{r.d(t,{Y:()=>d});var i=r(43697),s=r(92604),n=r(70586),a=r(5600),l=(r(75215),r(67676),r(52011)),o=r(66677);const d=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.Qc)(this.url);if((0,n.pC)(e)&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,o.Nm)(e,s.Z.getLogger(this.declaredClass)))}};return(0,i._)([(0,a.Cb)()],t.prototype,"title",null),(0,i._)([(0,a.Cb)({type:String})],t.prototype,"url",null),t=(0,i._)([(0,l.j)("esri.layers.mixins.ArcGISService")],t),t}},28294:(e,t,r)=>{r.d(t,{n:()=>h});var i=r(43697),s=r(92835),n=r(84552),a=r(5600),l=(r(75215),r(67676),r(71715)),o=r(52011),d=r(35671),u=r(76259),p=r(78981);const h=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,s=p.v.fromJSON(r.timeOffsetUnits);return i&&s?new n.Z({value:i,unit:s}):null}set timeInfo(e){(0,d.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,a.Cb)({type:s.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,a.Cb)({type:n.Z})],t.prototype,"timeOffset",void 0),(0,i._)([(0,l.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,a.Cb)({value:null,type:u.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,a.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,o.j)("esri.layers.mixins.TemporalLayer")],t),t}},76259:(e,t,r)=>{r.d(t,{Z:()=>f});var i=r(43697),s=r(92835),n=r(84552),a=r(2368),l=r(96674),o=r(70586),d=r(5600),u=(r(75215),r(67676),r(71715)),p=r(52011),h=r(30556),y=r(80216);function c(e,t){return n.Z.fromJSON({value:e,unit:t})}let m=class extends((0,a.J)(l.wq)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new s.Z({start:r,end:i})}writeFullTimeExtent(e,t){e&&(0,o.pC)(e.start)&&(0,o.pC)(e.end)?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?c(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?c(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,d.Cb)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],m.prototype,"cumulative",void 0),(0,i._)([(0,d.Cb)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"endField",void 0),(0,i._)([(0,d.Cb)({type:s.Z,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"fullTimeExtent",void 0),(0,i._)([(0,u.r)("fullTimeExtent",["timeExtent"])],m.prototype,"readFullTimeExtent",null),(0,i._)([(0,h.c)("fullTimeExtent")],m.prototype,"writeFullTimeExtent",null),(0,i._)([(0,d.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"hasLiveData",void 0),(0,i._)([(0,d.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"interval",void 0),(0,i._)([(0,u.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],m.prototype,"readInterval",null),(0,i._)([(0,h.c)("interval")],m.prototype,"writeInterval",null),(0,i._)([(0,d.Cb)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"startField",void 0),(0,i._)([(0,d.Cb)({type:y.Z,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"timeReference",void 0),(0,i._)([(0,d.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"trackIdField",void 0),(0,i._)([(0,d.Cb)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],m.prototype,"useTime",void 0),m=(0,i._)([(0,p.j)("esri.layers.support.TimeInfo")],m);const f=m},60199:(e,t,r)=>{r.d(t,{D:()=>n});var i=r(66677);const s=[];function n(e,t){if((0,i.M8)(e.url??""))return!0;const{wkid:r}=t;for(const t of s){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}s.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102901;t<=102955;t++)e.add(t);return e}]),s.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),s.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),s.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),s.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}]),s.push([10.7,()=>{const e=new Set([8387,8391,8427,8545,8682,8685,8818,31370,104022,104024,104975]);for(let t=8065;t<=8068;t++)e.add(t);for(let t=8082;t<=8083;t++)e.add(t);for(let t=8379;t<=8385;t++)e.add(t);for(let t=8836;t<=8840;t++)e.add(t);for(let t=8857;t<=8860;t++)e.add(t);for(let t=53035;t<=53037;t++)e.add(t);for(let t=54090;t<=54091;t++)e.add(t);for(let t=102498;t<=102499;t++)e.add(t);return e}]),s.push([10.61,()=>new Set([102497])]),s.push([10.6,()=>{const e=new Set([7803,7805,7887,8086,8232,8237,8240,8246,8249,8252,8255,9019,9391]);for(let t=7755;t<=7787;t++)e.add(t);for(let t=7791;t<=7795;t++)e.add(t);for(let t=7799;t<=7801;t++)e.add(t);for(let t=7825;t<=7831;t++)e.add(t);for(let t=7877;t<=7878;t++)e.add(t);for(let t=7882;t<=7883;t++)e.add(t);for(let t=7991;t<=7992;t++)e.add(t);for(let t=8042;t<=8043;t++)e.add(t);for(let t=8058;t<=8059;t++)e.add(t);for(let t=8311;t<=8348;t++)e.add(t);for(let t=9060;t<=9067;t++)e.add(t);for(let t=102562;t<=102568;t++)e.add(t);for(let t=102799;t<=102900;t++)e.add(t);return e}]),s.push([10.51,()=>{const e=new Set([7683,7881,7886,7899,8888,9e3]);for(let t=8013;t<=8032;t++)e.add(t);for(let t=9053;t<=9057;t++)e.add(t);for(let t=104017;t<=104018;t++)e.add(t);for(let t=104971;t<=104974;t++)e.add(t);return e}]),s.push([10.5,()=>{const e=new Set([6962,7035,7037,7039,7041,7084,7086,7133,7798,102399]);for(let t=4087;t<=4088;t++)e.add(t);for(let t=5896;t<=5899;t++)e.add(t);for(let t=7005;t<=7007;t++)e.add(t);for(let t=7057;t<=7070;t++)e.add(t);for(let t=7073;t<=7082;t++)e.add(t);for(let t=7109;t<=7128;t++)e.add(t);for(let t=7844;t<=7859;t++)e.add(t);return e}])},78981:(e,t,r)=>{r.d(t,{v:()=>i});const i=(0,r(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8239],{37140:(e,t,r)=>{function o(){const e=new Float32Array(4);return e[3]=1,e}function n(e){const t=new Float32Array(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}r.d(t,{b:()=>n,c:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,clone:n,create:o,createView:function(e,t){return new Float32Array(e,t,4)},fromValues:function(e,t,r,o){const n=new Float32Array(4);return n[0]=e,n[1]=t,n[2]=r,n[3]=o,n}},Symbol.toStringTag,{value:"Module"}))},3920:(e,t,r)=>{r.d(t,{p:()=>u,r:()=>l});var o=r(43697),n=r(15923),s=r(61247),i=r(5600),a=r(52011),p=r(72762);const u=e=>{let t=class extends e{destroy(){this.destroyed||(this._get("handles")?.destroy(),this._get("updatingHandles")?.destroy())}get handles(){return this._get("handles")||new s.Z}get updatingHandles(){return this._get("updatingHandles")||new p.t}};return(0,o._)([(0,i.Cb)({readOnly:!0})],t.prototype,"handles",null),(0,o._)([(0,i.Cb)({readOnly:!0})],t.prototype,"updatingHandles",null),t=(0,o._)([(0,a.j)("esri.core.HandleOwner")],t),t};let l=class extends(u(n.Z)){};l=(0,o._)([(0,a.j)("esri.core.HandleOwner")],l)},42033:(e,t,r)=>{r.d(t,{E:()=>n,_:()=>s});var o=r(70586);async function n(e,t){const{WhereClause:o}=await r.e(1534).then(r.bind(r,41534));return o.create(e,t)}function s(e,t){return(0,o.pC)(e)?(0,o.pC)(t)?`(${e}) AND (${t})`:e:t}},72762:(e,t,r)=>{r.d(t,{t:()=>c});var o=r(43697),n=r(15923),s=r(61247),i=r(70586),a=r(17445),p=r(1654),u=r(5600),l=r(52011);let c=class extends n.Z{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._handles=new s.Z,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll(),this._handles.destroy()}add(e,t,r={}){return this._installWatch(e,t,r,a.YP)}addWhen(e,t,r={}){return this._installWatch(e,t,r,a.gx)}addOnCollectionChange(e,t,{initial:r=!1,final:o=!1}={}){const n=++this._handleId;return this._handles.add([(0,a.on)(e,"after-changes",this._createSyncUpdatingCallback(),a.Z_),(0,a.on)(e,"change",t,{onListenerAdd:r?e=>t({added:e.toArray(),removed:[]}):void 0,onListenerRemove:o?e=>t({added:[],removed:e.toArray()}):void 0})],n),{remove:()=>this._handles.remove(n)}}addPromise(e){if((0,i.Wi)(e))return e;const t=++this._handleId;this._handles.add({remove:()=>{this._pendingPromises.delete(e)&&(0!==this._pendingPromises.size||this._handles.has(d)||this._set("updating",!1))}},t),this._pendingPromises.add(e),this._set("updating",!0);const r=()=>this._handles.remove(t);return e.then(r,r),e}removeAll(){this._pendingPromises.clear(),this._handles.removeAll(),this._set("updating",!1)}_installWatch(e,t,r={},o){const n=++this._handleId;r.sync||this._installSyncUpdatingWatch(e,n);const s=o(e,t,r);return this._handles.add(s,n),{remove:()=>this._handles.remove(n)}}_installSyncUpdatingWatch(e,t){const r=this._createSyncUpdatingCallback(),o=(0,a.YP)(e,r,{sync:!0,equals:()=>!1});return this._handles.add(o,t),o}_createSyncUpdatingCallback(){return()=>{this._handles.remove(d),++this._scheduleHandleId;const e=this._scheduleHandleId;this._get("updating")||this._set("updating",!0),this._handles.add((0,p.Os)((()=>{e===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this._handles.remove(d))})),d)}}};(0,o._)([(0,u.Cb)({readOnly:!0})],c.prototype,"updating",void 0),c=(0,o._)([(0,l.j)("esri.core.support.WatchUpdatingTracking")],c);const d=-42},58995:(e,t,r)=>{r.d(t,{rS:()=>u});var o=r(2109),n=r(82971),s=r(8744);const i=new n.Z(o.kU),a=new n.Z(o.JL),p=new n.Z(o.mM);function u(e){return e&&((0,s.BZ)(e)||(0,s.fS)(e,a))?a:e&&((0,s.V2)(e)||(0,s.fS)(e,p))?p:i}new n.Z(o.pn)},62073:(e,t,r)=>{r(22021),r(17896);var o,n,s=r(65617);r(29268),r(61277),r(12981),(0,s.c)(),(0,s.c)(),(0,s.c)(),(0,s.c)(),(0,s.c)(),(0,s.c)(),(0,s.c)(),(0,s.c)(),(0,s.c)(),(0,s.c)(),(n=o||(o={}))[n.NONE=0]="NONE",n[n.CLAMP=1]="CLAMP",n[n.INFINITE_MIN=4]="INFINITE_MIN",n[n.INFINITE_MAX=8]="INFINITE_MAX",o.INFINITE_MIN,o.INFINITE_MAX,o.INFINITE_MAX},70082:(e,t,r)=>{r.d(t,{Z:()=>c});var o=r(43697),n=r(2368),s=r(35454),i=r(96674),a=r(5600),p=(r(75215),r(67676),r(52011));const u=new s.X({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let l=class extends((0,n.J)(i.wq)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,o._)([(0,a.Cb)({json:{write:!0}})],l.prototype,"name",void 0),(0,o._)([(0,a.Cb)({json:{write:!0}})],l.prototype,"description",void 0),(0,o._)([(0,a.Cb)({json:{read:u.read,write:u.write}})],l.prototype,"drawingTool",void 0),(0,o._)([(0,a.Cb)({json:{write:!0}})],l.prototype,"prototype",void 0),(0,o._)([(0,a.Cb)({json:{write:!0}})],l.prototype,"thumbnail",void 0),l=(0,o._)([(0,p.j)("esri.layers.support.FeatureTemplate")],l);const c=l},16451:(e,t,r)=>{r.d(t,{Z:()=>y});var o=r(43697),n=r(2368),s=r(96674),i=r(5600),a=(r(75215),r(67676),r(71715)),p=r(52011),u=r(30556),l=r(72729),c=r(70082);let d=class extends((0,n.J)(s.wq)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,l.im)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,o._)([(0,i.Cb)({json:{write:!0}})],d.prototype,"id",void 0),(0,o._)([(0,i.Cb)({json:{write:!0}})],d.prototype,"name",void 0),(0,o._)([(0,i.Cb)({json:{write:!0}})],d.prototype,"domains",void 0),(0,o._)([(0,a.r)("domains")],d.prototype,"readDomains",null),(0,o._)([(0,u.c)("domains")],d.prototype,"writeDomains",null),(0,o._)([(0,i.Cb)({type:[c.Z],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,o._)([(0,p.j)("esri.layers.support.FeatureType")],d);const y=d},14147:(e,t,r)=>{r.d(t,{W:()=>l});var o=r(40330),n=r(3172),s=r(70586),i=r(95330),a=r(19238),p=r(65587),u=r(15235);class l{constructor(e,t,r,o){this._parsedUrl=e,this._portalItem=t,this._apiKey=r,this.signal=o,this._rootDocument=null;const n=this._parsedUrl?.path.match(/^(.*)\/SceneServer\/layers\/([\d]*)\/?$/i);n&&(this._urlParts={root:n[1],layerId:parseInt(n[2],10)})}async fetch(){if(!this._urlParts)return null;const e=this._portalItem??await this._portalItemFromServiceItemId();if((0,s.Wi)(e))return this._loadFromUrl();const t=await this._findAndLoadRelatedPortalItem(e);return(0,s.Wi)(t)?null:this._loadFeatureLayerFromPortalItem(t)}async fetchPortalItem(){if(!this._urlParts)return null;const e=this._portalItem??await this._portalItemFromServiceItemId();return(0,s.Wi)(e)?null:this._findAndLoadRelatedPortalItem(e)}async _fetchRootDocument(){if((0,s.pC)(this._rootDocument))return this._rootDocument;if((0,s.Wi)(this._urlParts))return this._rootDocument={},{};const e={query:{f:"json",token:this._apiKey},responseType:"json",signal:this.signal},t=`${this._urlParts.root}/SceneServer`;try{const r=await(0,n.default)(t,e);this._rootDocument=r.data}catch{this._rootDocument={}}return this._rootDocument}async _fetchServiceOwningPortalUrl(){const e=this._parsedUrl?.path,t=e?o.id?.findServerInfo(e):null;if(t?.owningSystemUrl)return t.owningSystemUrl;const r=e?e.replace(/(.*\/rest)\/.*/i,"$1")+"/info":null;try{const e=(await(0,n.default)(r,{query:{f:"json"},responseType:"json",signal:this.signal})).data.owningSystemUrl;if(e)return e}catch(e){(0,i.r9)(e)}return null}async _findAndLoadRelatedPortalItem(e){try{return(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:this.signal})).find((e=>"Feature Service"===e.type))||null}catch(e){return(0,i.r9)(e),null}}async _loadFeatureLayerFromPortalItem(e){await e.load({signal:this.signal});const t=await this._findMatchingAssociatedSublayerUrl(e.url??"");return new a.default({url:t,portalItem:e}).load({signal:this.signal})}async _loadFromUrl(){const e=await this._findMatchingAssociatedSublayerUrl(`${this._urlParts?.root}/FeatureServer`);return new a.default({url:e}).load({signal:this.signal})}async _findMatchingAssociatedSublayerUrl(e){const t=e.replace(/^(.*FeatureServer)(\/[\d]*\/?)?$/i,"$1"),r={query:{f:"json"},responseType:"json",authMode:"no-prompt",signal:this.signal},o=this._urlParts?.layerId,s=this._fetchRootDocument(),i=(0,n.default)(t,r),[a,p]=await Promise.all([i,s]),u=p&&p.layers,l=a.data&&a.data.layers;if(!Array.isArray(l))throw new Error("expected layers array");if(Array.isArray(u)){for(let e=0;e<Math.min(u.length,l.length);e++)if(u[e].id===o)return`${t}/${l[e].id}`}else if(null!=o&&o<l.length)return`${t}/${l[o].id}`;throw new Error("could not find matching associated sublayer")}async _portalItemFromServiceItemId(){const e=(await this._fetchRootDocument()).serviceItemId;if(!e)return null;const t=new u.default({id:e,apiKey:this._apiKey}),r=await this._fetchServiceOwningPortalUrl();(0,s.pC)(r)&&(t.portal=new p.Z({url:r}));try{return t.load({signal:this.signal})}catch(e){return(0,i.r9)(e),null}}}},51161:(e,t,r)=>{r.d(t,{H3:()=>g,QI:()=>c,U4:()=>p,Yh:()=>y});var o=r(43697),n=r(96674),s=r(5600),i=(r(75215),r(67676),r(36030)),a=r(52011);let p=class extends n.wq{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,o._)([(0,s.Cb)({type:Number})],p.prototype,"nodesPerPage",void 0),(0,o._)([(0,s.Cb)({type:Number})],p.prototype,"rootIndex",void 0),(0,o._)([(0,s.Cb)({type:String})],p.prototype,"lodSelectionMetricType",void 0),p=(0,o._)([(0,a.j)("esri.layer.support.I3SNodePageDefinition")],p);let u=class extends n.wq{constructor(){super(...arguments),this.factor=1}};(0,o._)([(0,s.Cb)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],u.prototype,"id",void 0),(0,o._)([(0,s.Cb)({type:Number})],u.prototype,"factor",void 0),u=(0,o._)([(0,a.j)("esri.layer.support.I3SMaterialTexture")],u);let l=class extends n.wq{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,o._)([(0,s.Cb)({type:[Number]})],l.prototype,"baseColorFactor",void 0),(0,o._)([(0,s.Cb)({type:u})],l.prototype,"baseColorTexture",void 0),(0,o._)([(0,s.Cb)({type:u})],l.prototype,"metallicRoughnessTexture",void 0),(0,o._)([(0,s.Cb)({type:Number})],l.prototype,"metallicFactor",void 0),(0,o._)([(0,s.Cb)({type:Number})],l.prototype,"roughnessFactor",void 0),l=(0,o._)([(0,a.j)("esri.layer.support.I3SMaterialPBRMetallicRoughness")],l);let c=class extends n.wq{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,o._)([(0,i.J)({opaque:"opaque",mask:"mask",blend:"blend"})],c.prototype,"alphaMode",void 0),(0,o._)([(0,s.Cb)({type:Number})],c.prototype,"alphaCutoff",void 0),(0,o._)([(0,s.Cb)({type:Boolean})],c.prototype,"doubleSided",void 0),(0,o._)([(0,i.J)({none:"none",back:"back",front:"front"})],c.prototype,"cullFace",void 0),(0,o._)([(0,s.Cb)({type:u})],c.prototype,"normalTexture",void 0),(0,o._)([(0,s.Cb)({type:u})],c.prototype,"occlusionTexture",void 0),(0,o._)([(0,s.Cb)({type:u})],c.prototype,"emissiveTexture",void 0),(0,o._)([(0,s.Cb)({type:[Number]})],c.prototype,"emissiveFactor",void 0),(0,o._)([(0,s.Cb)({type:l})],c.prototype,"pbrMetallicRoughness",void 0),c=(0,o._)([(0,a.j)("esri.layer.support.I3SMaterialDefinition")],c);let d=class extends n.wq{};(0,o._)([(0,s.Cb)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>null!=e?e:`${t.index}`}}})],d.prototype,"name",void 0),(0,o._)([(0,i.J)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],d.prototype,"format",void 0),d=(0,o._)([(0,a.j)("esri.layer.support.I3STextureFormat")],d);let y=class extends n.wq{constructor(){super(...arguments),this.atlas=!1}};(0,o._)([(0,s.Cb)({type:[d]})],y.prototype,"formats",void 0),(0,o._)([(0,s.Cb)({type:Boolean})],y.prototype,"atlas",void 0),y=(0,o._)([(0,a.j)("esri.layer.support.I3STextureSetDefinition")],y);let h=class extends n.wq{};(0,o._)([(0,i.J)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],h.prototype,"type",void 0),(0,o._)([(0,s.Cb)({type:Number})],h.prototype,"component",void 0),h=(0,o._)([(0,a.j)("esri.layer.support.I3SGeometryAttribute")],h);let f=class extends n.wq{};(0,o._)([(0,i.J)({draco:"draco"})],f.prototype,"encoding",void 0),(0,o._)([(0,s.Cb)({type:[String]})],f.prototype,"attributes",void 0),f=(0,o._)([(0,a.j)("esri.layer.support.I3SGeometryCompressedAttributes")],f);let m=class extends n.wq{constructor(){super(...arguments),this.offset=0}};(0,o._)([(0,s.Cb)({type:Number})],m.prototype,"offset",void 0),(0,o._)([(0,s.Cb)({type:h})],m.prototype,"position",void 0),(0,o._)([(0,s.Cb)({type:h})],m.prototype,"normal",void 0),(0,o._)([(0,s.Cb)({type:h})],m.prototype,"uv0",void 0),(0,o._)([(0,s.Cb)({type:h})],m.prototype,"color",void 0),(0,o._)([(0,s.Cb)({type:h})],m.prototype,"uvRegion",void 0),(0,o._)([(0,s.Cb)({type:h})],m.prototype,"featureId",void 0),(0,o._)([(0,s.Cb)({type:h})],m.prototype,"faceRange",void 0),(0,o._)([(0,s.Cb)({type:f})],m.prototype,"compressedAttributes",void 0),m=(0,o._)([(0,a.j)("esri.layer.support.I3SGeometryBuffer")],m);let g=class extends n.wq{};(0,o._)([(0,i.J)({triangle:"triangle"})],g.prototype,"topology",void 0),(0,o._)([(0,s.Cb)()],g.prototype,"geometryBuffers",void 0),g=(0,o._)([(0,a.j)("esri.layer.support.I3SGeometryDefinition")],g)},56765:(e,t,r)=>{r.d(t,{Z:()=>l});var o,n=r(43697),s=r(46791),i=r(96674),a=r(5600),p=(r(75215),r(67676),r(52011));let u=o=class extends i.wq{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new s.Z}clone(){return new o({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],u.prototype,"floorField",void 0),(0,n._)([(0,a.Cb)({json:{read:!1,write:!1}})],u.prototype,"viewAllMode",void 0),(0,n._)([(0,a.Cb)({json:{read:!1,write:!1}})],u.prototype,"viewAllLevelIds",void 0),u=o=(0,n._)([(0,p.j)("esri.layers.support.LayerFloorInfo")],u);const l=u},15506:(e,t,r)=>{r.d(t,{C:()=>o});const o={analytics:{supportsCacheHint:!1},attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1,supportsCacheHint:!1,supportsResize:!1},data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},query:{maxRecordCount:0,maxRecordCountFactor:0,standardMaxRecordCount:0,supportsCacheHint:!1,supportsCentroid:!1,supportsCompactGeometry:!1,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}},72064:(e,t,r)=>{r.d(t,{h:()=>c});var o=r(80442),n=r(70586),s=r(66677);const i={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function a(e,t,r){return!!(e&&e.hasOwnProperty(t)?e[t]:r)}function p(e,t,r){return e&&e.hasOwnProperty(t)?e[t]:r}function u(e){const t=e?.supportedSpatialAggregationStatistics?.map((e=>e.toLowerCase()));return{envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function l(e,t){const r=e?.supportedOperationsWithCacheHint?.map((e=>e.toLowerCase()));return!!r?.includes(t.toLowerCase())}function c(e,t){return{analytics:d(e),attachment:y(e),data:h(e),metadata:f(e),operations:m(e.capabilities,e,t),query:g(e,t),queryRelated:w(e),queryTopFeatures:b(e),editing:C(e)}}function d(e){return{supportsCacheHint:l(e.advancedQueryCapabilities,"queryAnalytics")}}function y(e){const t=e.attachmentProperties,r={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:l(e.advancedQueryCapabilities,"queryAttachments"),supportsResize:a(e,"supportsAttachmentsResizing",!1)};return t&&Array.isArray(t)&&t.forEach((e=>{const t=i[e.name];t&&(r[t]=!!e.isEnabled)})),r}function h(e){return{isVersioned:a(e,"isDataVersioned",!1),supportsAttachment:a(e,"hasAttachments",!1),supportsM:a(e,"hasM",!1),supportsZ:a(e,"hasZ",!1)}}function f(e){return{supportsAdvancedFieldProperties:a(e,"supportsFieldDescriptionProperty",!1)}}function m(e,t,r){const o=e?e.toLowerCase().split(",").map((e=>e.trim())):[],i=r?(0,s.Qc)(r):null,p=o.includes((0,n.pC)(i)&&"MapServer"===i.serverType?"data":"query"),u=o.includes("editing")&&!t.datesInUnknownTimezone;let l=u&&o.includes("create"),c=u&&o.includes("delete"),d=u&&o.includes("update");const y=o.includes("changetracking"),h=t.advancedQueryCapabilities;return u&&!(l||c||d)&&(l=c=d=!0),{supportsCalculate:a(t,"supportsCalculate",!1),supportsTruncate:a(t,"supportsTruncate",!1),supportsValidateSql:a(t,"supportsValidateSql",!1),supportsAdd:l,supportsDelete:c,supportsEditing:u,supportsChangeTracking:y,supportsQuery:p,supportsQueryAnalytics:a(h,"supportsQueryAnalytic",!1),supportsQueryAttachments:a(h,"supportsQueryAttachments",!1),supportsQueryTopFeatures:a(h,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:a(t,"supportsAttachmentsResizing",!1),supportsSync:o.includes("sync"),supportsUpdate:d,supportsExceedsLimitStatistics:a(t,"supportsExceedsLimitStatistics",!1)}}function g(e,t){const r=e.advancedQueryCapabilities,n=e.ownershipBasedAccessControlForFeatures,i=e.archivingInfo,c=e.currentVersion,d=t?.includes("MapServer"),y=!d||c>=(0,o.Z)("mapserver-pbf-version-support"),h=(0,s.M8)(t),f=new Set((e.supportedQueryFormats??"").split(",").map((e=>e.toLowerCase().trim())));return{supportsStatistics:a(r,"supportsStatistics",e.supportsStatistics),supportsPercentileStatistics:a(r,"supportsPercentileStatistics",!1),supportsSpatialAggregationStatistics:a(r,"supportsSpatialAggregationStatistics",!1),supportedSpatialAggregationStatistics:u(r),supportsCentroid:a(r,"supportsReturningGeometryCentroid",!1),supportsDistance:a(r,"supportsQueryWithDistance",!1),supportsDistinct:a(r,"supportsDistinct",e.supportsAdvancedQueries),supportsExtent:a(r,"supportsReturningQueryExtent",!1),supportsGeometryProperties:a(r,"supportsReturningGeometryProperties",!1),supportsHavingClause:a(r,"supportsHavingClause",!1),supportsOrderBy:a(r,"supportsOrderBy",e.supportsAdvancedQueries),supportsPagination:a(r,"supportsPagination",!1),supportsQuantization:a(e,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:a(e,"supportsQuantizationEditMode",!1),supportsQueryGeometry:a(e,"supportsReturningQueryGeometry",!1),supportsResultType:a(r,"supportsQueryWithResultType",!1),supportsMaxRecordCountFactor:a(r,"supportsMaxRecordCountFactor",!1),supportsSqlExpression:a(r,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:a(e,"useStandardizedQueries",!1),supportsTopFeaturesQuery:a(r,"supportsTopFeaturesQuery",!1),supportsQueryByOthers:a(n,"allowOthersToQuery",!0),supportsHistoricMoment:a(i,"supportsQueryWithHistoricMoment",!1),supportsFormatPBF:y&&f.has("pbf"),supportsDisjointSpatialRelationship:a(r,"supportsDisjointSpatialRel",!1),supportsCacheHint:a(r,"supportsQueryWithCacheHint",!1)||l(r,"query"),supportsDefaultSpatialReference:a(r,"supportsDefaultSR",!1),supportsCompactGeometry:h,supportsFullTextSearch:a(r,"supportsFullTextSearch",!1),maxRecordCountFactor:p(e,"maxRecordCountFactor",void 0),maxRecordCount:p(e,"maxRecordCount",void 0),standardMaxRecordCount:p(e,"standardMaxRecordCount",void 0),tileMaxRecordCount:p(e,"tileMaxRecordCount",void 0)}}function w(e){const t=e.advancedQueryCapabilities,r=a(t,"supportsAdvancedQueryRelated",!1);return{supportsPagination:a(t,"supportsQueryRelatedPagination",!1),supportsCount:r,supportsOrderBy:r,supportsCacheHint:l(t,"queryRelated")}}function b(e){return{supportsCacheHint:l(e.advancedQueryCapabilities,"queryTopFilter")}}function C(e){const t=e.ownershipBasedAccessControlForFeatures;return{supportsGeometryUpdate:a(e,"allowGeometryUpdates",!0),supportsGlobalId:a(e,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:a(e,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:a(e,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:a(e,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:a(e,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:a(t,"allowAnonymousToDelete",!0),supportsDeleteByOthers:a(t,"allowOthersToDelete",!0),supportsUpdateByAnonymous:a(t,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:a(t,"allowOthersToUpdate",!0)}}},51706:(e,t,r)=>{var o,n;function s(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function i(e){return null!=e&&!isNaN(e)&&isFinite(e)}function a(e){return e.valueExpression?o.Expression:e.field&&"string"==typeof e.field?o.Field:o.Unknown}function p(e,t){const r=t||a(e),s=e.valueUnit||"unknown";return r===o.Unknown?n.Constant:e.stops?n.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?n.ClampedLinear:"unknown"===s?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?n.Proportional:n.Additive:n.Identity:n.RealWorldSize}r.d(t,{PS:()=>a,QW:()=>p,RY:()=>o,hL:()=>n,iY:()=>s,qh:()=>i}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(o||(o={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(n||(n={}))},28694:(e,t,r)=>{r.d(t,{p:()=>s});var o=r(70586),n=r(69285);function s(e,t,r){if(!r||!r.features||!r.hasZ)return;const s=(0,n.k)(r.geometryType,t,e.outSpatialReference);if(!(0,o.Wi)(s))for(const e of r.features)s(e.geometry)}},56545:(e,t,r)=>{r.d(t,{Z:()=>d});var o,n=r(43697),s=r(96674),i=r(22974),a=r(5600),p=r(75215),u=r(52011),l=r(30556);let c=o=class extends s.wq{constructor(e){super(e),this.attachmentTypes=null,this.attachmentsWhere=null,this.cacheHint=void 0,this.keywords=null,this.globalIds=null,this.name=null,this.num=null,this.objectIds=null,this.returnMetadata=!1,this.size=null,this.start=null,this.where=null}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}clone(){return new o((0,i.d9)({attachmentTypes:this.attachmentTypes,attachmentsWhere:this.attachmentsWhere,cacheHint:this.cacheHint,keywords:this.keywords,where:this.where,globalIds:this.globalIds,name:this.name,num:this.num,objectIds:this.objectIds,returnMetadata:this.returnMetadata,size:this.size,start:this.start}))}};(0,n._)([(0,a.Cb)({type:[String],json:{write:!0}})],c.prototype,"attachmentTypes",void 0),(0,n._)([(0,a.Cb)({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],c.prototype,"attachmentsWhere",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],c.prototype,"cacheHint",void 0),(0,n._)([(0,a.Cb)({type:[String],json:{write:!0}})],c.prototype,"keywords",void 0),(0,n._)([(0,a.Cb)({type:[Number],json:{write:!0}})],c.prototype,"globalIds",void 0),(0,n._)([(0,a.Cb)({json:{write:!0}})],c.prototype,"name",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],c.prototype,"num",void 0),(0,n._)([(0,a.Cb)({type:[Number],json:{write:!0}})],c.prototype,"objectIds",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{default:!1,write:!0}})],c.prototype,"returnMetadata",void 0),(0,n._)([(0,a.Cb)({type:[Number],json:{write:!0}})],c.prototype,"size",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],c.prototype,"start",void 0),(0,n._)([(0,l.c)("start"),(0,l.c)("num")],c.prototype,"writeStart",null),(0,n._)([(0,a.Cb)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],c.prototype,"where",void 0),c=o=(0,n._)([(0,u.j)("esri.rest.support.AttachmentQuery")],c),c.from=(0,p.se)(c);const d=c},74889:(e,t,r)=>{r.d(t,{Z:()=>C});var o,n=r(43697),s=r(66577),i=r(38171),a=r(35454),p=r(96674),u=r(22974),l=r(70586),c=r(5600),d=(r(75215),r(71715)),y=r(52011),h=r(30556),f=r(82971),m=r(33955),g=r(1231);const w=new a.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=o=class extends p.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=f.Z.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){const n=e[t],s=i.Z.fromJSON(n),a=n.geometry&&n.geometry.spatialReference;(0,l.pC)(s.geometry)&&!a&&(s.geometry.spatialReference=r);const p=n.aggregateGeometries,u=s.aggregateGeometries;if(p&&(0,l.pC)(u))for(const e in u){const t=u[e],o=p[e]?.spatialReference;(0,l.pC)(t)&&!o&&(t.spatialReference=r)}o.push(s)}return o}writeGeometryType(e,t,r,o){if(e)return void w.write(e,t,r,o);const{features:n}=this;if(n)for(const e of n)if(e&&(0,l.pC)(e.geometry))return void w.write(e.geometry.type,t,r,o)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,o=(0,m.im)(e);return o&&!r&&t.spatialReference&&(o.spatialReference=f.Z.fromJSON(t.spatialReference)),o}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&(0,l.pC)(e.geometry)&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new o(this.cloneProperties())}cloneProperties(){return(0,u.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const o=t.features[r];if(o.geometry){const t=e&&e[r];o.geometry=t&&t.toJSON()||o.geometry}}return t}quantize(e){const{scale:[t,r],translate:[o,n]}=e,s=this.features,i=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-o)/t)),(e=>Math.round((n-e)/r)));for(let e=0,t=s.length;e<t;e++)i?.((0,l.Wg)(s[e].geometry))||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[o,n],scale:[s,i]}=r,a=this._getHydrationFunction(e,(e=>e*s+o),(e=>n-e*i));for(const{geometry:e}of t)(0,l.pC)(e)&&a&&a(e);return this.transform=null,this}_quantizePoints(e,t,r){let o,n;const s=[];for(let i=0,a=e.length;i<a;i++){const a=e[i];if(i>0){const e=t(a[0]),i=r(a[1]);e===o&&i===n||(s.push([e-o,i-n]),o=e,n=i)}else o=t(a[0]),n=r(a[1]),s.push([o,n])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const o=(0,m.oU)(e)?e.rings:e.paths,n=[];for(let e=0,s=o.length;e<s;e++){const s=o[e],i=this._quantizePoints(s,t,r);i&&n.push(i)}return n.length>0?((0,m.oU)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const o=this._quantizePoints(e.points,t,r);return o&&o.length>0?(e.points=o,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y)}:"polyline"===e||"polygon"===e?e=>{const o=(0,m.oU)(e)?e.rings:e.paths;let n,s;for(let e=0,i=o.length;e<i;e++){const i=o[e];for(let e=0,o=i.length;e<o;e++){const o=i[e];e>0?(n+=o[0],s+=o[1]):(n=o[0],s=o[1]),o[0]=t(n),o[1]=r(s)}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax)}:"multipoint"===e?e=>{const o=e.points;let n,s;for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(n+=i[0],s+=i[1]):(n=i[0],s=i[1]),i[0]=t(n),i[1]=r(s)}}:null}};(0,n._)([(0,c.Cb)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,n._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,n._)([(0,c.Cb)({type:[i.Z],json:{write:!0}})],b.prototype,"features",void 0),(0,n._)([(0,d.r)("features")],b.prototype,"readFeatures",null),(0,n._)([(0,c.Cb)({type:[g.Z],json:{write:!0}})],b.prototype,"fields",void 0),(0,n._)([(0,c.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:w.read}}})],b.prototype,"geometryType",void 0),(0,n._)([(0,h.c)("geometryType")],b.prototype,"writeGeometryType",null),(0,n._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,n._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,n._)([(0,c.Cb)({types:s.qM,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,n._)([(0,d.r)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,n._)([(0,c.Cb)({type:f.Z,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,n._)([(0,h.c)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,n._)([(0,c.Cb)({json:{write:!0}})],b.prototype,"transform",void 0),b=o=(0,n._)([(0,y.j)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0;const C=b},58333:(e,t,r)=>{r.d(t,{ET:()=>s,I4:()=>n,eG:()=>p,lF:()=>i,lj:()=>l,qP:()=>a,wW:()=>u});const o=[252,146,31,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:o,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:o},i={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},p={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},l={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}},91891:(e,t,r)=>{r.d(t,{I_:()=>d,W7:()=>f,qM:()=>g});var o=r(20102),n=r(22974),s=r(92604),i=r(25683),a=r(35065);const p=s.Z.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function u(e,t,r){let n="",s=0;for(;s<r;){const i=e[t+s];if(i<128)n+=String.fromCharCode(i),s++;else if(i>=192&&i<224){if(s+1>=r)throw new o.Z("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const a=(31&i)<<6|63&e[t+s+1];n+=String.fromCharCode(a),s+=2}else if(i>=224&&i<240){if(s+2>=r)throw new o.Z("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(15&i)<<12|(63&e[t+s+1])<<6|63&e[t+s+2];n+=String.fromCharCode(a),s+=3}else{if(!(i>=240&&i<248))throw new o.Z("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(s+3>=r)throw new o.Z("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(7&i)<<18|(63&e[t+s+1])<<12|(63&e[t+s+2])<<6|63&e[t+s+3];if(a>=65536){const e=55296+(a-65536>>10),t=56320+(1023&a);n+=String.fromCharCode(e,t)}else n+=String.fromCharCode(a);s+=4}}}return n}function l(e,t){const r={byteOffset:0,byteCount:0,fields:Object.create(null)};let o=0;for(let n=0;n<t.length;n++){const s=t[n],i=s.valueType||s.type,a=b[i];r.fields[s.property]=a(e,o),o+=w[i].BYTES_PER_ELEMENT}return r.byteCount=o,r}function c(e,t,r){const n=[];let s,i,a=0;for(i=0;i<e;i+=1){if(s=t[i],s>0){if(n.push(u(r,a,s-1)),0!==r[a+s-1])throw new o.Z("string-array-error","Invalid string array: missing null termination.")}else n.push(null);a+=s}return n}function d(e,t){return new(0,w[t.valueType])(e,t.byteOffset,t.count*t.valuesPerElement)}function y(e,t,r){const s=null!=t.header?l(e,t.header):{byteOffset:0,byteCount:0,fields:{count:r}},i={header:s,byteOffset:s.byteCount,byteCount:0,entries:Object.create(null)};let a=s.byteCount;for(let e=0;e<t.ordering.length;e++){const r=t.ordering[e],p=(0,n.d9)(t[r]);if(p.count=s.fields.count??0,"String"===p.valueType){if(p.byteOffset=a,p.byteCount=s.fields[r+"ByteCount"],"UTF-8"!==p.encoding)throw new o.Z("unsupported-encoding","Unsupported String encoding.",{encoding:p.encoding});if(p.timeEncoding&&"ECMA_ISO8601"!==p.timeEncoding)throw new o.Z("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:p.timeEncoding})}else{if(!C(p.valueType))throw new o.Z("unsupported-value-type","Unsupported binary valueType",{valueType:p.valueType});{const e=v(p.valueType);a+=a%e!=0?e-a%e:0,p.byteOffset=a,p.byteCount=e*p.valuesPerElement*p.count}}a+=p.byteCount??0,i.entries[r]=p}return i.byteCount=a-i.byteOffset,i}function h(e,t,r){if(t!==e&&p.error(`Invalid ${r} buffer size\n expected: ${e}, actual: ${t})`),t<e)throw new o.Z("buffer-too-small","Binary buffer is too small",{expectedSize:e,actualSize:t})}function f(e,t){const r=l(e,t&&t.header);let o=r.byteCount;const n={isDraco:!1,header:r,byteOffset:r.byteCount,byteCount:0,vertexAttributes:{}},s=r.fields,i=null!=s.vertexCount?s.vertexCount:s.count;for(const e of t.ordering){if(!t.vertexAttributes[e])continue;const r={...t.vertexAttributes[e],byteOffset:o,count:i},s=m[e]?m[e]:"_"+e;n.vertexAttributes[s]=r,o+=v(r.valueType)*r.valuesPerElement*i}const a=s.faceCount;if(t.faces&&a){n.faces={};for(const e of t.ordering){if(!t.faces[e])continue;const r={...t.faces[e],byteOffset:o,count:a};n.faces[e]=r,o+=v(r.valueType)*r.valuesPerElement*a}}const p=s.featureCount;if(t.featureAttributes&&t.featureAttributeOrder&&p){n.featureAttributes={};for(const e of t.featureAttributeOrder){if(!t.featureAttributes[e])continue;const r={...t.featureAttributes[e],byteOffset:o,count:p};n.featureAttributes[e]=r,o+=("UInt64"===r.valueType?8:v(r.valueType))*r.valuesPerElement*p}}return h(o,e.byteLength,"geometry"),n.byteCount=o-n.byteOffset,n}const m={position:a.T.POSITION,normal:a.T.NORMAL,color:a.T.COLOR,uv0:a.T.UV0,region:a.T.UVREGION};function g(e,t,r){if("lepcc-rgb"===e.encoding)return(0,i.IT)(t);if("lepcc-intensity"===e.encoding)return(0,i.ti)(t);if(null!=e.encoding&&""!==e.encoding)throw new o.Z("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");e["attributeByteCounts "]&&!e.attributeByteCounts&&(p.warn("Warning: Trailing space in 'attributeByteCounts '."),e.attributeByteCounts=e["attributeByteCounts "]),"ObjectIds"===e.ordering[0]&&e.hasOwnProperty("objectIds")&&(p.warn("Warning: Case error in objectIds"),e.ordering[0]="objectIds");const n=y(t,e,r);h(n.byteOffset+n.byteCount,t.byteLength,"attribute");const s=n.entries.attributeValues||n.entries.objectIds;if(s){if("String"===s.valueType){const e=n.entries.attributeByteCounts,r=d(t,e),o=function(e,t){return new Uint8Array(e,t.byteOffset,t.byteCount)}(t,s);return s.timeEncoding?function(e,t,r){return c(e,t,r).map((e=>{const t=e?Date.parse(e):null;return t&&!Number.isNaN(t)?t:null}))}(e.count,r,o):c(e.count,r,o)}return d(t,s)}throw new o.Z("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const w={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},b={Float32:(e,t)=>new DataView(e,0).getFloat32(t,!0),Float64:(e,t)=>new DataView(e,0).getFloat64(t,!0),UInt8:(e,t)=>new DataView(e,0).getUint8(t),Int8:(e,t)=>new DataView(e,0).getInt8(t),UInt16:(e,t)=>new DataView(e,0).getUint16(t,!0),Int16:(e,t)=>new DataView(e,0).getInt16(t,!0),UInt32:(e,t)=>new DataView(e,0).getUint32(t,!0),Int32:(e,t)=>new DataView(e,0).getInt32(t,!0)};function C(e){return w.hasOwnProperty(e)}function v(e){return C(e)?w[e].BYTES_PER_ELEMENT:0}},77397:(e,t,r)=>{r.d(t,{xe:()=>C});var o=r(3172),n=(r(67676),r(20102),r(80442),r(95330)),s=r(1533),i=(r(21787),r(46521)),a=(r(52138),r(13598)),p=(r(51305),r(37140)),u=(r(17896),r(65617)),l=(r(2109),r(44547),r(82971),r(58995),r(24470)),c=(r(8744),r(14165),r(91891));r(22303);var d,y,h=r(88669);(y=d||(d={}))[y.INVISIBLE=0]="INVISIBLE",y[y.TRANSPARENT=1]="TRANSPARENT",y[y.OPAQUE=2]="OPAQUE";(0,h.f)(0,0,0,.2),d.OPAQUE;(0,h.f)(0,0,0,.2),d.OPAQUE,r(6206);var f=r(94961),m=r(72119);r(98766),r(60437),r(62073),r(64822),(0,f.a)(),(0,u.c)(),(0,u.c)(),(0,h.c)(),(0,i.c)(),(()=>{const e=new Int8Array(162);let t=0;const r=r=>{for(let o=0;o<r.length;o++)e[t+o]=r[o];t+=6};r([6,2,3,1,5,4]),r([0,2,3,1,5,4]),r([0,2,3,7,5,4]),r([0,1,3,2,6,4]),r([0,1,3,2,0,0]),r([0,1,5,7,3,2]),r([0,1,3,7,6,4]),r([0,1,3,7,6,2]),r([0,1,5,7,6,2]),r([0,1,5,4,6,2]),r([0,1,5,4,0,0]),r([0,1,3,7,5,4]),r([0,2,6,4,0,0]),r([0,0,0,0,0,0]),r([1,3,7,5,0,0]),r([2,3,7,6,4,0]),r([2,3,7,6,0,0]),r([2,3,1,5,7,6]),r([0,1,5,7,6,2]),r([0,1,5,7,6,4]),r([0,1,3,7,6,4]),r([4,5,7,6,2,0]),r([4,5,7,6,0,0]),r([4,5,1,3,7,6]),r([0,2,3,7,5,4]),r([6,2,3,7,5,4]),r([6,2,3,1,5,4])})(),(0,u.c)(),(0,u.c)(),(0,u.c)(),(0,f.a)();var g,w,b=r(51417);function C(e,t,r,s,i){const a=[];for(const o of t)if(o&&i.includes(o.name)){const t=`${e}/nodes/${r}/attributes/${o.key}/0`;a.push({url:t,storageInfo:o})}return(0,n.as)(a.map((e=>(0,o.default)(e.url,{responseType:"array-buffer"}).then((t=>(0,c.qM)(e.storageInfo,t.data)))))).then((e=>{const t=[];for(const r of s){const o={};for(let t=0;t<e.length;t++){const n=e[t].value;null!=n&&(o[a[t].storageInfo.name]=v(n,r))}t.push(o)}return t}))}function v(e,t){if(!e)return null;const r=e[t];return(0,s.z3)(e)?-32768===r?null:r:(0,s.Hx)(e)?-2147483648===r?null:r:r!=r?null:r}(0,l.Ue)(),(w=g||(g={}))[w.OUTSIDE=0]="OUTSIDE",w[w.INTERSECTS_CENTER_OUTSIDE=1]="INTERSECTS_CENTER_OUTSIDE",w[w.INTERSECTS_CENTER_INSIDE=2]="INTERSECTS_CENTER_INSIDE",w[w.INSIDE=3]="INSIDE";const _=new Array(24);new b.a(_,3,!0),(0,u.c)(),(0,u.c)(),(0,i.c)(),(0,a.c)(),(0,p.c)(),(0,l.Ue)(),(0,l.Ue)(),function(e=[0,0,0],t=[-1,-1,-1],r=(0,f.a)()){(0,u.a)(e),(0,m.b)(t),(0,p.b)(r)}(),(0,u.c)(),new Array(72),(0,a.c)()},25683:(e,t,r)=>{r.d(t,{Gi:()=>a,IT:()=>c,ti:()=>y});var o=r(20102);const n=!0;function s(e,t,r){return{identifier:String.fromCharCode.apply(null,new Uint8Array(e,r+0,10)),version:t.getUint16(r+10,n),checksum:t.getUint32(r+12,n)}}function i(e,t){return{sizeLo:e.getUint32(t+0,n),sizeHi:e.getUint32(t+4,n),minX:e.getFloat64(t+8,n),minY:e.getFloat64(t+16,n),minZ:e.getFloat64(t+24,n),maxX:e.getFloat64(t+32,n),maxY:e.getFloat64(t+40,n),maxZ:e.getFloat64(t+48,n),errorX:e.getFloat64(t+56,n),errorY:e.getFloat64(t+64,n),errorZ:e.getFloat64(t+72,n),count:e.getUint32(t+80,n),reserved:e.getUint32(t+84,n)}}function a(e){const t=new DataView(e,0);let r=0;const{identifier:n,version:a}=s(e,t,r);if(r+=16,"LEPCC "!==n)throw new o.Z("lepcc-decode-error","Bad identifier");if(a>1)throw new o.Z("lepcc-decode-error","Unknown version");const u=i(t,r);if(r+=88,u.sizeHi*2**32+u.sizeLo!==e.byteLength)throw new o.Z("lepcc-decode-error","Bad size");const l=new Float64Array(3*u.count),c=[],d=[],y=[],h=[];if(r=p(e,r,c),r=p(e,r,d),r=p(e,r,y),r=p(e,r,h),r!==e.byteLength)throw new o.Z("lepcc-decode-error","Bad length");let f=0,m=0;for(let e=0;e<c.length;e++){m+=c[e];let t=0;for(let r=0;r<d[e];r++){t+=y[f];const e=h[f];l[3*f]=Math.min(u.maxX,u.minX+2*u.errorX*t),l[3*f+1]=Math.min(u.maxY,u.minY+2*u.errorY*m),l[3*f+2]=Math.min(u.maxZ,u.minZ+2*u.errorZ*e),f++}}return{errorX:u.errorX,errorY:u.errorY,errorZ:u.errorZ,result:l}}function p(e,t,r){const o=[];t=u(e,t,o);const n=[];for(let s=0;s<o.length;s++){n.length=0,t=u(e,t,n);for(let e=0;e<n.length;e++)r.push(n[e]+o[s])}return t}function u(e,t,r){const s=new DataView(e,t),i=s.getUint8(0),a=31&i,p=!!(32&i),u=(192&i)>>6;let l=0;if(0===u)l=s.getUint32(1,n),t+=5;else if(1===u)l=s.getUint16(1,n),t+=3;else{if(2!==u)throw new o.Z("lepcc-decode-error","Bad count type");l=s.getUint8(1),t+=2}if(p)throw new o.Z("lepcc-decode-error","LUT not implemented");const c=Math.ceil(l*a/8),d=new Uint8Array(e,t,c);let y=0,h=0,f=0;const m=-1>>>32-a;for(let e=0;e<l;e++){for(;h<a;)y|=d[f]<<h,h+=8,f+=1;r[e]=y&m,y>>>=a,h-=a,h+a>32&&(y|=d[f-1]>>8-h)}return t+f}function l(e,t){return{sizeLo:e.getUint32(t+0,n),sizeHi:e.getUint32(t+4,n),count:e.getUint32(t+8,n),colorMapCount:e.getUint16(t+12,n),lookupMethod:e.getUint8(t+14),compressionMethod:e.getUint8(t+15)}}function c(e){const t=new DataView(e,0);let r=0;const{identifier:n,version:i}=s(e,t,r);if(r+=16,"ClusterRGB"!==n)throw new o.Z("lepcc-decode-error","Bad identifier");if(i>1)throw new o.Z("lepcc-decode-error","Unknown version");const a=l(t,r);if(r+=16,a.sizeHi*2**32+a.sizeLo!==e.byteLength)throw new o.Z("lepcc-decode-error","Bad size");if((2===a.lookupMethod||1===a.lookupMethod)&&0===a.compressionMethod){if(3*a.colorMapCount+a.count+r!==e.byteLength||a.colorMapCount>256)throw new o.Z("lepcc-decode-error","Bad count");const t=new Uint8Array(e,r,3*a.colorMapCount),n=new Uint8Array(e,r+3*a.colorMapCount,a.count),s=new Uint8Array(3*a.count);for(let e=0;e<a.count;e++){const r=n[e];s[3*e]=t[3*r],s[3*e+1]=t[3*r+1],s[3*e+2]=t[3*r+2]}return s}if(0===a.lookupMethod&&0===a.compressionMethod){if(3*a.count+r!==e.byteLength||0!==a.colorMapCount)throw new o.Z("lepcc-decode-error","Bad count");return new Uint8Array(e,r).slice()}if(a.lookupMethod<=2&&1===a.compressionMethod){if(r+3!==e.byteLength||1!==a.colorMapCount)throw new o.Z("lepcc-decode-error","Bad count");const n=t.getUint8(r),s=t.getUint8(r+1),i=t.getUint8(r+2),p=new Uint8Array(3*a.count);for(let e=0;e<a.count;e++)p[3*e]=n,p[3*e+1]=s,p[3*e+2]=i;return p}throw new o.Z("lepcc-decode-error","Bad method "+a.lookupMethod+","+a.compressionMethod)}function d(e,t){return{sizeLo:e.getUint32(t+0,n),sizeHi:e.getUint32(t+4,n),count:e.getUint32(t+8,n),scaleFactor:e.getUint16(t+12,n),bitsPerPoint:e.getUint8(t+14),reserved:e.getUint8(t+15)}}function y(e){const t=new DataView(e,0);let r=0;const{identifier:n,version:i}=s(e,t,r);if(r+=16,"Intensity "!==n)throw new o.Z("lepcc-decode-error","Bad identifier");if(i>1)throw new o.Z("lepcc-decode-error","Unknown version");const a=d(t,r);if(r+=16,a.sizeHi*2**32+a.sizeLo!==e.byteLength)throw new o.Z("lepcc-decode-error","Bad size");const p=new Uint16Array(a.count);if(8===a.bitsPerPoint){if(a.count+r!==e.byteLength)throw new o.Z("lepcc-decode-error","Bad size");const t=new Uint8Array(e,r,a.count);for(let e=0;e<a.count;e++)p[e]=t[e]*a.scaleFactor}else if(16===a.bitsPerPoint){if(2*a.count+r!==e.byteLength)throw new o.Z("lepcc-decode-error","Bad size");const t=new Uint16Array(e,r,a.count);for(let e=0;e<a.count;e++)p[e]=t[e]*a.scaleFactor}else{const t=[];if(u(e,r,t)!==e.byteLength)throw new o.Z("lepcc-decode-error","Bad size");for(let e=0;e<a.count;e++)p[e]=t[e]*a.scaleFactor}return p}},19833:(e,t,r)=>{r.d(t,{V:()=>i,e:()=>s});var o=r(70586),n=r(35671);async function s(e,t=e.popupTemplate){if((0,o.Wi)(t))return[];const r=await t.getRequiredFields(e.fieldsIndex),{lastEditInfoEnabled:s}=t,{objectIdField:i,typeIdField:a,globalIdField:p,relationships:u}=e;if(r.includes("*"))return["*"];const l=s?await(0,n.CH)(e):[],c=(0,n.Q0)(e.fieldsIndex,[...r,...l]);return a&&c.push(a),c&&i&&e.fieldsIndex?.has(i)&&!c.includes(i)&&c.push(i),c&&p&&e.fieldsIndex?.has(p)&&!c.includes(p)&&c.push(p),u&&u.forEach((t=>{const{keyField:r}=t;c&&r&&e.fieldsIndex?.has(r)&&!c.includes(r)&&c.push(r)})),c}function i(e,t){return e.popupTemplate?e.popupTemplate:(0,o.pC)(t)&&t.defaultPopupTemplateEnabled&&(0,o.pC)(e.defaultPopupTemplate)?e.defaultPopupTemplate:null}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9327],{92835:(e,t,i)=>{i.d(t,{Z:()=>g});var r,s=i(43697),n=i(96674),o=i(70586),l=i(35463),a=i(5600),u=(i(75215),i(67676),i(71715)),c=i(52011),h=i(30556);let p=r=class extends n.wq{static get allTime(){return d}static get empty(){return y}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?e.getTime():null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.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 r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=(0,o.pC)(this.start)?this.start.getTime():this.start,i=(0,o.pC)(this.end)?this.end.getTime():this.end,r=(0,o.pC)(e.start)?e.start.getTime():e.start,s=(0,o.pC)(e.end)?e.end.getTime():e.end;return t===r&&i===s}expandTo(e){if(this.isEmpty||this.isAllTime)return this.clone();const t=(0,o.yw)(this.start,(t=>(0,l.JE)(t,e))),i=(0,o.yw)(this.end,(t=>{const i=(0,l.JE)(t,e);return t.getTime()===i.getTime()?i:(0,l.Nm)(i,1,e)}));return new r({start:t,end:i})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=(0,o.R2)(this.start,-1/0,(e=>e.getTime())),i=(0,o.R2)(this.end,1/0,(e=>e.getTime())),s=(0,o.R2)(e.start,-1/0,(e=>e.getTime())),n=(0,o.R2)(e.end,1/0,(e=>e.getTime()));let l,a;if(s>=t&&s<=i?l=s:t>=s&&t<=n&&(l=t),i>=s&&i<=n?a=i:n>=t&&n<=i&&(a=n),null!=l&&null!=a&&!isNaN(l)&&!isNaN(a)){const e=new r;return e.start=l===-1/0?null:new Date(l),e.end=a===1/0?null:new Date(a),e}return r.empty}offset(e,t){if(this.isEmpty||this.isAllTime)return this.clone();const i=new r,{start:s,end:n}=this;return(0,o.pC)(s)&&(i.start=(0,l.Nm)(s,e,t)),(0,o.pC)(n)&&(i.end=(0,l.Nm)(n,e,t)),i}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=(0,o.pC)(this.start)&&(0,o.pC)(e.start)?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,i=(0,o.pC)(this.end)&&(0,o.pC)(e.end)?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:i})}};(0,s._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,s._)([(0,u.r)("end")],p.prototype,"readEnd",null),(0,s._)([(0,h.c)("end")],p.prototype,"writeEnd",null),(0,s._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,s._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,s._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,s._)([(0,u.r)("start")],p.prototype,"readStart",null),(0,s._)([(0,h.c)("start")],p.prototype,"writeStart",null),p=r=(0,s._)([(0,c.j)("esri.TimeExtent")],p);const d=new p,y=new p({start:void 0,end:void 0}),g=p},46521:(e,t,i)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function s(e,t,i,r,s,n,o,l,a){return[e,t,i,r,s,n,o,l,a]}function n(e,t){return new Float64Array(e,t,9)}i.d(t,{a:()=>n,c:()=>r,f:()=>s}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},create:r,createView:n,fromValues:s},Symbol.toStringTag,{value:"Module"}))},51305:(e,t,i)=>{i.d(t,{c:()=>d,g:()=>c,j:()=>I,k:()=>g,m:()=>h,s:()=>u});var r=i(46521),s=i(94961),n=i(65617),o=i(46851),l=i(17896),a=i(98766);function u(e,t,i){i*=.5;const r=Math.sin(i);return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=Math.cos(i),e}function c(e,t){const i=2*Math.acos(t[3]),r=Math.sin(i/2);return r>(0,o.g)()?(e[0]=t[0]/r,e[1]=t[1]/r,e[2]=t[2]/r):(e[0]=1,e[1]=0,e[2]=0),i}function h(e,t,i){const r=t[0],s=t[1],n=t[2],o=t[3],l=i[0],a=i[1],u=i[2],c=i[3];return e[0]=r*c+o*l+s*u-n*a,e[1]=s*c+o*a+n*l-r*u,e[2]=n*c+o*u+r*a-s*l,e[3]=o*c-r*l-s*a-n*u,e}function p(e,t,i,r){const s=t[0],n=t[1],l=t[2],a=t[3];let u,c,h,p,d,y=i[0],g=i[1],m=i[2],f=i[3];return c=s*y+n*g+l*m+a*f,c<0&&(c=-c,y=-y,g=-g,m=-m,f=-f),1-c>(0,o.g)()?(u=Math.acos(c),h=Math.sin(u),p=Math.sin((1-r)*u)/h,d=Math.sin(r*u)/h):(p=1-r,d=r),e[0]=p*s+d*y,e[1]=p*n+d*g,e[2]=p*l+d*m,e[3]=p*a+d*f,e}function d(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function y(e,t){const i=t[0]+t[4]+t[8];let r;if(i>0)r=Math.sqrt(i+1),e[3]=.5*r,r=.5/r,e[0]=(t[5]-t[7])*r,e[1]=(t[6]-t[2])*r,e[2]=(t[1]-t[3])*r;else{let i=0;t[4]>t[0]&&(i=1),t[8]>t[3*i+i]&&(i=2);const s=(i+1)%3,n=(i+2)%3;r=Math.sqrt(t[3*i+i]-t[3*s+s]-t[3*n+n]+1),e[i]=.5*r,r=.5/r,e[3]=(t[3*s+n]-t[3*n+s])*r,e[s]=(t[3*s+i]+t[3*i+s])*r,e[n]=(t[3*n+i]+t[3*i+n])*r}return e}function g(e,t,i,r){const s=.5*Math.PI/180;t*=s,i*=s,r*=s;const n=Math.sin(t),o=Math.cos(t),l=Math.sin(i),a=Math.cos(i),u=Math.sin(r),c=Math.cos(r);return e[0]=n*a*c-o*l*u,e[1]=o*l*c+n*a*u,e[2]=o*a*u-n*l*c,e[3]=o*a*c+n*l*u,e}const m=a.c,f=a.s,b=a.a,v=h,_=a.b,w=a.d,S=a.l,C=a.e,x=C,V=a.f,j=V,M=a.n,I=a.g,R=a.h,z=(0,n.c)(),D=(0,n.f)(1,0,0),q=(0,n.f)(0,1,0),A=(0,s.a)(),N=(0,s.a)(),T=(0,r.c)();Object.freeze(Object.defineProperty({__proto__:null,add:b,calculateW:function(e,t){const i=t[0],r=t[1],s=t[2];return e[0]=i,e[1]=r,e[2]=s,e[3]=Math.sqrt(Math.abs(1-i*i-r*r-s*s)),e},conjugate:d,copy:m,dot:w,equals:R,exactEquals:I,fromEuler:g,fromMat3:y,getAxisAngle:c,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){const i=t[0],r=t[1],s=t[2],n=t[3],o=i*i+r*r+s*s+n*n,l=o?1/o:0;return e[0]=-i*l,e[1]=-r*l,e[2]=-s*l,e[3]=n*l,e},len:x,length:C,lerp:S,mul:v,multiply:h,normalize:M,random:function(e){const t=o.R,i=t(),r=t(),s=t(),n=Math.sqrt(1-i),l=Math.sqrt(i);return e[0]=n*Math.sin(2*Math.PI*r),e[1]=n*Math.cos(2*Math.PI*r),e[2]=l*Math.sin(2*Math.PI*s),e[3]=l*Math.cos(2*Math.PI*s),e},rotateX:function(e,t,i){i*=.5;const r=t[0],s=t[1],n=t[2],o=t[3],l=Math.sin(i),a=Math.cos(i);return e[0]=r*a+o*l,e[1]=s*a+n*l,e[2]=n*a-s*l,e[3]=o*a-r*l,e},rotateY:function(e,t,i){i*=.5;const r=t[0],s=t[1],n=t[2],o=t[3],l=Math.sin(i),a=Math.cos(i);return e[0]=r*a-n*l,e[1]=s*a+o*l,e[2]=n*a+r*l,e[3]=o*a-s*l,e},rotateZ:function(e,t,i){i*=.5;const r=t[0],s=t[1],n=t[2],o=t[3],l=Math.sin(i),a=Math.cos(i);return e[0]=r*a+s*l,e[1]=s*a-r*l,e[2]=n*a+o*l,e[3]=o*a-n*l,e},rotationTo:function(e,t,i){const r=(0,l.e)(t,i);return r<-.999999?((0,l.f)(z,D,t),(0,l.u)(z)<1e-6&&(0,l.f)(z,q,t),(0,l.n)(z,z),u(e,z,Math.PI),e):r>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,l.f)(z,t,i),e[0]=z[0],e[1]=z[1],e[2]=z[2],e[3]=1+r,M(e,e))},scale:_,set:f,setAxes:function(e,t,i,r){const s=T;return s[0]=i[0],s[3]=i[1],s[6]=i[2],s[1]=r[0],s[4]=r[1],s[7]=r[2],s[2]=-t[0],s[5]=-t[1],s[8]=-t[2],M(e,y(e,s))},setAxisAngle:u,slerp:p,sqlerp:function(e,t,i,r,s,n){return p(A,t,s,n),p(N,i,r,n),p(e,A,N,2*n*(1-n)),e},sqrLen:j,squaredLength:V,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"}))},94961:(e,t,i)=>{function r(){return[0,0,0,1]}function s(e){return[e[0],e[1],e[2],e[3]]}function n(e,t){return new Float64Array(e,t,4)}i.d(t,{I:()=>o,a:()=>r,b:()=>s,c:()=>n});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:s,create:r,createView:n,fromValues:function(e,t,i,r){return[e,t,i,r]}},Symbol.toStringTag,{value:"Module"}))},35270:(e,t,i)=>{i.d(t,{B7:()=>a,St:()=>s,VL:()=>o,h$:()=>n,rW:()=>u});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function s(e){return r[e]||r[e.toLowerCase()]}function n(e){return r[e]??r[e.toLowerCase()]}function o(e){return[...n(e)]}function l(e,t,i){i<0&&++i,i>1&&--i;const r=6*i;return r<1?e+(t-e)*r:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}function a(e,t,i,r=1){const s=(e%360+360)%360/360,n=i<=.5?i*(t+1):i+t-i*t,o=2*i-n;return[Math.round(255*l(o,n,s+1/3)),Math.round(255*l(o,n,s)),Math.round(255*l(o,n,s-1/3)),r]}function u(e){const t=e.length>5,i=t?8:4,r=(1<<i)-1,s=t?1:17,n=t?9===e.length:5===e.length;let o=Number("0x"+e.substr(1));if(isNaN(o))return null;const l=[0,0,0,1];let a;return n&&(a=o&r,o>>=i,l[3]=s*a/255),a=o&r,o>>=i,l[2]=s*a,a=o&r,o>>=i,l[1]=s*a,a=o&r,o>>=i,l[0]=s*a,l}},46791:(e,t,i)=>{i.d(t,{Z:()=>z});var r,s=i(43697),n=i(3894),o=i(32448),l=i(22974),a=i(70586),u=i(71143);!function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"}(r||(r={}));var c,h=i(1654),p=i(5600),d=i(75215),y=i(52421),g=i(52011),m=i(58971),f=i(10661);const b=new u.Z(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}},void 0,(e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1})),v=()=>{};function _(e){return e?e instanceof R?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function w(e){if(e&&e.length)return e[0]}function S(e,t,i,r){const s=Math.min(e.length-i,t.length-r);let n=0;for(;n<s&&e[i+n]===t[r+n];)n++;return n}function C(e,t,i,r){t&&t.forEach(((t,s,n)=>{e.push(t),C(e,i.call(r,t,s,n),i,r)}))}const x=new Set,V=new Set,j=new Set,M=new Map;let I=0,R=c=class extends o.Z.EventedAccessor{static isCollection(e){return null!=e&&e instanceof c}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new f.s,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:I++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof c?{items:e}:e:{}}destroy(){this.removeAll()}*[Symbol.iterator](){yield*this.items}get items(){return(0,m.it)(this._observable),this._items}set items(e){this._emitBeforeChanges(r.ADD)||(this._splice(0,this.length,_(e)),this._emitAfterChanges(r.ADD))}hasEventListener(e){return"change"===e?this._chgListeners.length>0:this._emitter.hasEventListener(e)}on(e,t){if("change"===e){const e=this._chgListeners,i={removed:!1,callback:t};return e.push(i),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),{remove(){this.remove=v,i.removed=!0,e.splice(e.indexOf(i),1)}}}return this._emitter.on(e,t)}once(e,t){const i=this.on(e,t);return{remove(){i.remove()}}}add(e,t){if((0,m.it)(this._observable),this._emitBeforeChanges(r.ADD))return this;const i=this.getNextIndex(t??null);return this._splice(i,0,[e]),this._emitAfterChanges(r.ADD),this}addMany(e,t=this._items.length){if((0,m.it)(this._observable),!e||!e.length)return this;if(this._emitBeforeChanges(r.ADD))return this;const i=this.getNextIndex(t);return this._splice(i,0,_(e)),this._emitAfterChanges(r.ADD),this}at(e){if((0,m.it)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,m.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return[];const e=this._splice(0,this.length)||[];return this._emitAfterChanges(r.REMOVE),e}clone(){return(0,m.it)(this._observable),this._createNewInstance({items:this._items.map(l.d9)})}concat(...e){(0,m.it)(this._observable);const t=e.map(_);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,m.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const i=(0,a.j0)(this._splice(0,this.length)),s=i.length;for(let r=0;r<s;r++)e.call(t,i[r],r,i);this._emitAfterChanges(r.REMOVE)}every(e,t){return(0,m.it)(this._observable),this._items.every(e,t)}filter(e,t){let i;return(0,m.it)(this._observable),i=2===arguments.length?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:i})}find(e,t){return(0,m.it)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,m.it)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,m.it)(this._observable);const i=[];return C(i,this,e,t),new c(i)}forEach(e,t){return(0,m.it)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,m.it)(this._observable),this._items[e]}getNextIndex(e){(0,m.it)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,m.it)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,m.it)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,m.it)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,m.it)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,m.it)(this._observable);const i=this._items.map(e,t);return new c({items:i})}reorder(e,t=this.length-1){(0,m.it)(this._observable);const i=this.indexOf(e);if(-1!==i){if(t<0?t=0:t>=this.length&&(t=this.length-1),i!==t){if(this._emitBeforeChanges(r.MOVE))return e;this._splice(i,1),this._splice(t,0,[e]),this._emitAfterChanges(r.MOVE)}return e}}pop(){if((0,m.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const e=w(this._splice(this.length-1,1));return this._emitAfterChanges(r.REMOVE),e}push(...e){return(0,m.it)(this._observable),this._emitBeforeChanges(r.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(r.ADD)),this.length}reduce(e,t){(0,m.it)(this._observable);const i=this._items;return 2===arguments.length?i.reduce(e,t):i.reduce(e)}reduceRight(e,t){(0,m.it)(this._observable);const i=this._items;return 2===arguments.length?i.reduceRight(e,t):i.reduceRight(e)}remove(e){return(0,m.it)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,m.it)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(r.REMOVE))return;const t=w(this._splice(e,1));return this._emitAfterChanges(r.REMOVE),t}removeMany(e){if((0,m.it)(this._observable),!e||!e.length||this._emitBeforeChanges(r.REMOVE))return[];const t=e instanceof c?e.toArray():e,i=this._items,s=[],n=t.length;for(let e=0;e<n;e++){const r=t[e],n=i.indexOf(r);if(n>-1){const r=1+S(t,i,e+1,n+1),o=this._splice(n,r);o&&o.length>0&&s.push.apply(s,o),e+=r-1}}return this._emitAfterChanges(r.REMOVE),s}reverse(){if((0,m.it)(this._observable),this._emitBeforeChanges(r.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(r.MOVE),this}shift(){if((0,m.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const e=w(this._splice(0,1));return this._emitAfterChanges(r.REMOVE),e}slice(e=0,t=this.length){return(0,m.it)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,m.it)(this._observable),this._items.some(e,t)}sort(e){if((0,m.it)(this._observable),!this.length||this._emitBeforeChanges(r.MOVE))return this;const t=(0,a.j0)(this._splice(0,this.length));return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(r.MOVE),this}splice(e,t,...i){(0,m.it)(this._observable);const s=(t?r.REMOVE:0)|(i.length?r.ADD:0);if(this._emitBeforeChanges(s))return[];const n=this._splice(e,t,i)||[];return this._emitAfterChanges(s),n}toArray(){return(0,m.it)(this._observable),this._items.slice()}toJSON(){return(0,m.it)(this._observable),this.toArray()}toLocaleString(){return(0,m.it)(this._observable),this._items.toLocaleString()}toString(){return(0,m.it)(this._observable),this._items.toString()}unshift(...e){return(0,m.it)(this._observable),!e.length||this._emitBeforeChanges(r.ADD)||(this._splice(0,0,e),this._emitAfterChanges(r.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,i){const r=this._items,s=this.itemType;let n,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=(0,h.Os)((()=>this._dispatchChange()))),t){if(o=r.splice(e,t),this.hasEventListener("before-remove")){const t=b.acquire();t.target=this,t.cancellable=!0;for(let i=0,s=o.length;i<s;i++)n=o[i],t.reset(n),this.emit("before-remove",t),t.defaultPrevented&&(o.splice(i,1),r.splice(e,0,n),e+=1,i-=1,s-=1);b.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=b.acquire();e.target=this,e.cancellable=!1;const t=o.length;for(let i=0;i<t;i++)e.reset(o[i]),this.emit("after-remove",e);b.release(e)}}if(i&&i.length){if(s){const e=[];for(const t of i){const i=s.ensureType(t);null==i&&null!=t||e.push(i)}i=e}const t=this.hasEventListener("before-add"),n=this.hasEventListener("after-add"),o=e===this.length;if(t||n){const s=b.acquire();s.target=this,s.cancellable=!0;const l=b.acquire();l.target=this,l.cancellable=!1;for(const a of i)t?(s.reset(a),this.emit("before-add",s),s.defaultPrevented||(o?r.push(a):r.splice(e++,0,a),this._set("length",r.length),n&&(l.reset(a),this.emit("after-add",l)))):(o?r.push(a):r.splice(e++,0,a),this._set("length",r.length),l.reset(a),this.emit("after-add",l));b.release(l),b.release(s)}else{if(o)for(const e of i)r.push(e);else r.splice(e,0,...i);this._set("length",r.length)}}return(i&&i.length||o&&o.length)&&this._notifyChangeEvent(i,o),o}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const i=b.acquire();i.target=this,i.cancellable=!0,i.type=e,this.emit("before-changes",i),t=i.defaultPrevented,b.release(i)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=b.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),b.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;x.clear(),V.clear(),j.clear();for(const{added:t,removed:i}of e){if(t)if(0===j.size&&0===V.size)for(const e of t)x.add(e);else for(const e of t)V.has(e)?(j.add(e),V.delete(e)):j.has(e)||x.add(e);if(i)if(0===j.size&&0===x.size)for(const e of i)V.add(e);else for(const e of i)x.has(e)?x.delete(e):(j.delete(e),V.add(e))}const i=n.Z.acquire();x.forEach((e=>{i.push(e)}));const r=n.Z.acquire();V.forEach((e=>{r.push(e)}));const s=this._items,o=t.items,l=n.Z.acquire();if(j.forEach((e=>{o.indexOf(e)!==s.indexOf(e)&&l.push(e)})),t.listeners&&(i.length||r.length||l.length)){const e={target:this,added:i,removed:r,moved:l},s=t.listeners.length;for(let i=0;i<s;i++){const r=t.listeners[i];r.removed||r.callback.call(this,e)}}n.Z.release(i),n.Z.release(r),n.Z.release(l)}x.clear(),V.clear(),j.clear()}};R.ofType=e=>{if(!e)return c;if(M.has(e))return M.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const i in e.typeMap){const r=e.typeMap[i].prototype.declaredClass;t?t+=` | ${r}`:t=r}let i=class extends c{};return(0,s._)([(0,y.c)({Type:e,ensureType:"function"==typeof e?(0,d.se)(e):(0,d.N7)(e)})],i.prototype,"itemType",void 0),i=(0,s._)([(0,g.j)(`esri.core.Collection<${t}>`)],i),M.set(e,i),i},(0,s._)([(0,p.Cb)()],R.prototype,"length",void 0),(0,s._)([(0,p.Cb)()],R.prototype,"items",null),R=c=(0,s._)([(0,g.j)("esri.core.Collection")],R);const z=R},68251:(e,t,i)=>{i.d(t,{BV:()=>o});var r=i(22021);class s{constructor(e,t){this.min=e,this.max=t,this.range=t-e}ndiff(e,t=0){return Math.ceil((e-t)/this.range)*this.range+t}_normalize(e,t,i,r=0,s=!1){return(i-=r)<e?i+=this.ndiff(e-i):i>t&&(i-=this.ndiff(i-t)),s&&i===t&&(i=e),i+r}normalize(e,t=0,i=!1){return this._normalize(this.min,this.max,e,t,i)}clamp(e,t=0){return(0,r.uZ)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+this.ndiff(e-t,i)}minimalMonotonic(e,t,i){return this._normalize(e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);const i=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(r)?i:r}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function n(e){for(const t in e){const i=e[t];i instanceof Function&&(e[t]=i.bind(e))}return e}n(new s(0,2*Math.PI)),n(new s(-Math.PI,Math.PI));const o=n(new s(0,360))},28576:(e,t,i)=>{i.d(t,{B:()=>h});var r=i(81153),s=i(17452),n=i(41123),o=i(7628),l=i(31263),a=i(5600),u=i(66094),c=i(25929);function h(e){const t=e?.origins??[void 0];return(i,n)=>{const h=function(e,t,i){if("resource"===e?.type)return function(e,t,i){const n=(0,o.Oe)(t,i);return{type:String,read:(e,t,i)=>{const r=(0,c.r)(e,t,i);return n.type===String?r:"function"==typeof n.type?new n.type({url:r}):void 0},write:{writer(t,o,a,h){if(!h||!h.resources)return"string"==typeof t?void(o[a]=(0,c.t)(t,h)):void(o[a]=t.write({},h));const g=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),m=(0,c.t)(g,{...h,verifyItemRelativeUrls:h&&h.verifyItemRelativeUrls?{writtenUrls:h.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},c.M.NO),f=n.type!==String&&(!(0,r.l)(this)||h&&h.origin&&this.originIdOf(i)>(0,l.M9)(h.origin)),b={object:this,propertyName:i,value:t,targetUrl:m,dest:o,targetPropertyName:a,context:h,params:e};h&&h.portalItem&&m&&!(0,s.YP)(m)?f?function(e){const{context:t,targetUrl:i,params:r,value:n,dest:o,targetPropertyName:l}=e;if(!t.portalItem)return;const a=t.portalItem.resourceFromPath(i),c=y(n,i,t),h=(0,u.B)(c),g=(0,s.Ml)(a.path),m=r?.compress??!1;h===g?(t.resources&&d({...e,resource:a,content:c,compress:m,updates:t.resources.toUpdate}),o[l]=i):p(e)}(b):function({context:e,targetUrl:t,dest:i,targetPropertyName:r}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),i[r]=t)}(b):h&&h.portalItem&&(null==m||null!=(0,c.i)(m)||(0,s.jc)(m)||f)?p(b):o[a]=m}}}}(e,t,i);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=c.a;return{read:e,write:t}}}}(e,i,n);for(const e of t){const t=(0,a.CJ)(i,e,n);for(const e in h)t[e]=h[e]}}}function p(e){const{targetUrl:t,params:r,value:o,context:l,dest:a,targetPropertyName:h}=e;if(!l.portalItem)return;const p=(0,c.p)(t),g=p?.filename??(0,n.D)(),m=r?.prefix??p?.prefix,f=y(o,t,l),b=(0,s.v_)(m,g),v=`${b}.${(0,u.B)(f)}`,_=l.portalItem.resourceFromPath(v);(0,s.jc)(t)&&l.resources&&l.resources.pendingOperations.push(async function(e){const t=(await Promise.resolve().then(i.bind(i,3172))).default,{data:r}=await t(e,{responseType:"blob"});return r}(t).then((e=>{_.path=`${b}.${(0,u.B)(e)}`,a[h]=_.itemRelativeUrl})).catch((()=>{})));const w=r?.compress??!1;l.resources&&d({...e,resource:_,content:f,compress:w,updates:l.resources.toAdd}),a[h]=_.itemRelativeUrl}function d({object:e,propertyName:t,updates:i,resource:r,content:s,compress:n}){i.push({resource:r,content:s,compress:n,finish:i=>{!function(e,t,i){"string"==typeof e[t]?e[t]=i.url:e[t].url=i.url}(e,t,i)}})}function y(e,t,i){return"string"==typeof e?{url:t}:new Blob([JSON.stringify(e.toJSON(i))],{type:"application/json"})}},52421:(e,t,i)=>{function r(e){return(t,i)=>{t[i]=e}}i.d(t,{c:()=>r})},70921:(e,t,i)=>{i.d(t,{R:()=>n,Z:()=>s});var r=i(46791);function s(e,t,i=r.Z){return t||(t=new i),t===e||(t.removeAll(),(s=e)&&(Array.isArray(s)||"items"in s&&Array.isArray(s.items))?t.addMany(e):e&&t.add(e)),t;var s}function n(e){return e}},35463:(e,t,i)=>{i.d(t,{JE:()=>o,Nm:()=>n,rJ:()=>l}),i(80442);const r={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},s={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 n(e,t,i){const r=new Date(e.getTime());if(t&&i){const e=s[i],{getter:n,setter:o,multiplier:l}=e;if("months"===i){const e=function(e,t){const i=new Date(e,t+1,1);return i.setDate(0),i.getDate()}(r.getFullYear(),r.getMonth()+t);r.getDate()>e&&r.setDate(e)}r[o](r[n]()+t*l)}return r}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 l(e,t,i){return 0===e?0:e*r[t]/r[i]}},79235:(e,t,i)=>{i.d(t,{Z:()=>v});var r,s=i(43697),n=i(67676),o=i(35454),l=i(96674),a=i(67900),u=i(20941),c=i(5600),h=(i(75215),i(71715)),p=i(52011),d=i(30556);const y=(0,o.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),g=y.jsonValues.slice();(0,n.e$)(g,"orthometric");const m=(0,o.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let f=r=class extends l.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return y.write(e,t,i)}readHeightModel(e,t,i){return y.read(e)||(i&&i.messages&&i.messages.push(function(e,t){return new u.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return m.read(e)||(i&&i.messages&&i.messages.push(b(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,a.$C)(e)||m.read(e)||(i&&i.messages&&i.messages.push(b(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,a.cM)(t);return new r({heightModel:e.heightModel,heightUnit:i,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function b(e,t){return new u.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s._)([(0,c.Cb)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g,default:"ellipsoidal"}}}})],f.prototype,"heightModel",void 0),(0,s._)([(0,d.c)("web-scene","heightModel")],f.prototype,"writeHeightModel",null),(0,s._)([(0,h.r)(["web-scene","service"],"heightModel")],f.prototype,"readHeightModel",null),(0,s._)([(0,c.Cb)({type:m.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m.jsonValues,write:m.write}}}})],f.prototype,"heightUnit",void 0),(0,s._)([(0,h.r)("web-scene","heightUnit")],f.prototype,"readHeightUnit",null),(0,s._)([(0,h.r)("service","heightUnit")],f.prototype,"readHeightUnitService",null),(0,s._)([(0,c.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"vertCRS",void 0),(0,s._)([(0,h.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],f.prototype,"readVertCRS",null),f=r=(0,s._)([(0,p.j)("esri.geometry.HeightModelInfo")],f);const v=f},28865:(e,t,i)=>{i.r(t),i.d(t,{default:()=>Ye});var r=i(43697),s=i(46791),n=i(20102),o=i(92604),l=i(70586),a=i(16453),u=i(95330),c=i(5600),h=i(75215),p=(i(67676),i(71715)),d=i(52011),y=i(17896),g=i(65617),m=i(6570),f=i(87085),b=i(54295),v=i(17287),_=i(38009),w=i(16859),S=i(72965),C=i(20559),x=i(66677),V=i(21506),j=i(1231),M=i(2368),I=i(68251),R=i(96674),z=i(28576),D=i(51305),q=i(94961),A=i(46851);const N=(0,g.c)(),T=(0,q.a)(),E=(0,q.a)(),F=(0,q.a)(),Z=(0,g.f)(0,0,1),L=(0,g.f)(0,1,0),O=(0,g.f)(1,0,0);function k(e){(0,y.c)(N,e),(0,y.n)(N,N);const t=Math.atan2(N[1],N[0]),i=(0,D.s)((0,q.a)(),Z,-t);(0,y.q)(N,N,i);const r=-1*Math.atan2(N[2],N[0]);return[(0,A.a)(t)+270,(0,A.a)(r)+90]}function P(e,t){return(0,D.s)(E,Z,(0,A.t)(e-270)),(0,D.s)(F,L,(0,A.t)(t-90)),(0,D.m)(T,E,F),(0,y.c)(N,O),(0,y.q)(N,N,T),(0,y.n)(N,N),[N[0],N[1],N[2]]}var B=i(90578);let U=class extends((0,M.J)(R.wq)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=k(this.normal);return I.BV.normalize((0,h.q9)(e),0,!0)}set orientation(e){const t=P(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=k(this.normal);return I.BV.normalize((0,h.q9)(t),0,!0)}set tilt(e){const t=P(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,r._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],U.prototype,"enabled",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],U.prototype,"label",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,B.p)((e=>I.BV.normalize((0,h.q9)(e),0,!0)))],U.prototype,"orientation",null),(0,r._)([(0,c.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,B.p)((e=>I.BV.normalize((0,h.q9)(e),0,!0)))],U.prototype,"tilt",null),(0,r._)([(0,c.Cb)({type:[Number],json:{write:!0}})],U.prototype,"normal",void 0),(0,r._)([(0,c.Cb)({type:[Number],json:{write:!0}})],U.prototype,"point",void 0),U=(0,r._)([(0,d.j)("esri.layers.voxel.VoxelSlice")],U);const $=U;var J=i(25929);let Y=class extends((0,M.J)(R.wq)){constructor(){super(...arguments),this.enabled=!0,this.href=null,this.id=null,this.label="",this.normal=null,this.point=null,this.sizeInPixel=null,this.slices=null,this.timeId=0,this.variableId=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=k(this.normal);return I.BV.normalize((0,h.q9)(e),0,!0)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=k(this.normal);return I.BV.normalize((0,h.q9)(t),0,!0)}};(0,r._)([(0,c.Cb)({type:Boolean,json:{default:!0,write:!0}})],Y.prototype,"enabled",void 0),(0,r._)([(0,c.Cb)({type:String,json:{origins:{service:{read:J.r}},write:{enabled:!0,isRequired:!0}}}),(0,z.B)({origins:["web-scene"],type:"resource",prefix:"sections",compress:!0})],Y.prototype,"href",void 0),(0,r._)([(0,c.Cb)({type:h.z8,json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"id",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],Y.prototype,"label",void 0),(0,r._)([(0,c.Cb)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],Y.prototype,"orientation",null),(0,r._)([(0,c.Cb)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],Y.prototype,"tilt",null),(0,r._)([(0,c.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"normal",void 0),(0,r._)([(0,c.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"point",void 0),(0,r._)([(0,c.Cb)({type:[h.z8],json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"sizeInPixel",void 0),(0,r._)([(0,c.Cb)({type:[$],json:{write:!0}})],Y.prototype,"slices",void 0),(0,r._)([(0,c.Cb)({type:h.z8,json:{default:0,write:!0}})],Y.prototype,"timeId",void 0),(0,r._)([(0,c.Cb)({type:h.z8,json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"variableId",void 0),Y=(0,r._)([(0,d.j)("esri.layers.voxel.VoxelSection")],Y);const H=Y;let W=class extends R.wq{constructor(){super(...arguments),this.diffuseFactor=.5,this.specularFactor=.5}};(0,r._)([(0,c.Cb)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],W.prototype,"diffuseFactor",void 0),(0,r._)([(0,c.Cb)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],W.prototype,"specularFactor",void 0),W=(0,r._)([(0,d.j)("esri.layers.voxel.VoxelSimpleShading")],W);const X=W;let G=class extends R.wq{constructor(){super(...arguments),this.continuity=null,this.hasNoData=!1,this.noData=0,this.offset=0,this.scale=1,this.type=null}};(0,r._)([(0,c.Cb)({type:["discrete","continuous"],json:{write:!0}})],G.prototype,"continuity",void 0),(0,r._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],G.prototype,"hasNoData",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{write:!0}})],G.prototype,"noData",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{write:!0}})],G.prototype,"offset",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{write:!0}})],G.prototype,"scale",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],G.prototype,"type",void 0),G=(0,r._)([(0,d.j)("esri.layers.voxel.VoxelFormat")],G);const K=G;let Q=class extends R.wq{constructor(){super(...arguments),this.id=null,this.description="",this.name=null,this.originalFormat=null,this.renderingFormat=null,this.unit="",this.volumeId=0,this.type=null}};(0,r._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"id",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],Q.prototype,"description",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"name",void 0),(0,r._)([(0,c.Cb)({type:K,json:{write:!0}})],Q.prototype,"originalFormat",void 0),(0,r._)([(0,c.Cb)({type:K,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"renderingFormat",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],Q.prototype,"unit",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{write:!0}})],Q.prototype,"volumeId",void 0),(0,r._)([(0,c.Cb)({type:["stc-hot-spot-results","stc-cluster-outlier-results","stc-estimated-bin","generic-nearest-interpolated"],json:{write:!0}})],Q.prototype,"type",void 0),Q=(0,r._)([(0,d.j)("esri.layers.voxel.VoxelVariable")],Q);const ee=Q;var te=i(22974),ie=i(22303);let re=class extends((0,M.J)(R.wq)){constructor(){super(...arguments),this.color=ie.Z.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label="",this.colorLocked=!1}};(0,r._)([(0,c.Cb)({type:ie.Z,json:{type:[h.z8],write:{enabled:!0,isRequired:!0}}})],re.prototype,"color",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],re.prototype,"value",void 0),(0,r._)([(0,c.Cb)({type:Boolean,json:{default:!0,write:!0}})],re.prototype,"enabled",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],re.prototype,"label",void 0),(0,r._)([(0,c.Cb)({type:Boolean,json:{default:!1,write:!0}})],re.prototype,"colorLocked",void 0),re=(0,r._)([(0,d.j)("esri.layers.voxel.VoxelIsosurface")],re);const se=re;var ne=i(70921),oe=i(22021);let le=class extends((0,M.J)(R.wq)){constructor(){super(...arguments),this.color=null,this.position=0}};(0,r._)([(0,c.Cb)({type:ie.Z,json:{type:[h.z8],write:{enabled:!0,isRequired:!0}}})],le.prototype,"color",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],le.prototype,"position",void 0),le=(0,r._)([(0,d.j)("esri.layers.voxel.VoxelColorStop")],le);const ae=le;let ue=class extends((0,M.J)(R.wq)){constructor(){super(...arguments),this.opacity=1,this.position=0}};(0,r._)([(0,c.Cb)({type:Number,json:{name:"alpha",write:{enabled:!0,isRequired:!0}}})],ue.prototype,"opacity",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ue.prototype,"position",void 0),ue=(0,r._)([(0,d.j)("esri.layers.voxel.VoxelOpacityStop")],ue);const ce=ue;let he=class extends((0,M.J)(R.wq)){constructor(){super(...arguments),this.enabled=!1,this.range=null}};(0,r._)([(0,c.Cb)({type:Boolean,json:{default:!1,write:!0}})],he.prototype,"enabled",void 0),(0,r._)([(0,c.Cb)({type:[Number],json:{write:!0}})],he.prototype,"range",void 0),he=(0,r._)([(0,d.j)("esri.layers.voxel.VoxelRangeFilter")],he);const pe=he;var de,ye;(ye=de||(de={}))[ye.Color=1]="Color",ye[ye.Alpha=2]="Alpha",ye[ye.Both=3]="Both";let ge=class extends((0,M.J)(R.wq)){constructor(e){super(e),this.interpolation=null,this.stretchRange=null,this.rangeFilter=null,this._colorMapSize=256,this.colorStops=new(s.Z.ofType(ae)),this.opacityStops=new(s.Z.ofType(ce))}set colorStops(e){this._set("colorStops",(0,ne.Z)(e,this._get("colorStops"),s.Z.ofType(ae)))}set opacityStops(e){this._set("opacityStops",(0,ne.Z)(e,this._get("opacityStops"),s.Z.ofType(ce)))}getPreviousNext(e,t,i){let r=e;for(;--r>0&&t[r].type!==i&&t[r].type!==de.Both;);let s=e;const n=t.length;for(;++s<n&&t[s].type!==i&&t[s].type!==de.Both;);return[r,s]}get rasterizedTransferFunction(){const e=[];if(this.colorStops.length<2)return e;const t=[],i=[];for(const t of this.colorStops){if(!t.color)return e;i.push({color:{r:t.color.r,g:t.color.g,b:t.color.b,a:Math.round(255*(1-t.color.a))},position:t.position,type:de.Color})}if(0===this.opacityStops.length)for(const e of i)t.push({color:e.color,position:e.position});else{for(const e of this.opacityStops){const t=(0,oe.uZ)(e.position,0,1),r=Math.round(255*(0,oe.uZ)(1-e.opacity,0,1));let s=!1;for(const e of i)if(e.type===de.Color&&Math.abs(e.position-t)<1e-5){e.color.a=r,e.type=de.Both,s=!0;break}s||i.push({color:{r:0,g:0,b:0,a:r},position:e.position,type:de.Alpha})}i.sort(((e,t)=>e.position<t.position?-1:1));const e=i.length;for(let t=0;t<e;++t){const r=i[t];if(r.type!==de.Both)if(r.type===de.Color){const[s,n]=this.getPreviousNext(t,i,de.Alpha);if(-1!==s&&n!==e){const e=(r.position-i[s].position)/(i[n].position-i[s].position);r.color.a=Math.round((0,oe.t7)(i[s].color.a,i[n].color.a,e))}else r.color.a=-1!==s?i[s].color.a:i[n].color.a}else{const[s,n]=this.getPreviousNext(t,i,de.Color);if(-1!==s&&n!==e){const e=(r.position-i[s].position)/(i[n].position-i[s].position),t=i[s].color,o=i[n].color;["r","g","b"].forEach((i=>{r.color[i]=Math.round((0,oe.t7)(t[i],o[i],e))}))}else["r","g","b"].forEach(-1!==s?e=>{r.color[e]=i[s][e]}:e=>{r.color[e]=i[n][e]})}}for(const e of i)t.push({color:e.color,position:e.position})}t[0].position=0,t[t.length-1].position=1;let r=0,s=1;for(let i=0;i<this._colorMapSize;++i){const n=i/this._colorMapSize;for(;n>t[s].position;)r=s++;const o=(n-t[r].position)/(t[s].position-t[r].position),l=t[r].color,a=t[s].color,u=new ie.Z;["r","g","b"].forEach((e=>{u[e]=Math.round((0,oe.t7)(l[e],a[e],o))})),u.a=(0,oe.uZ)(1-(0,oe.t7)(l.a,a.a,o)/255,0,1),e.push(u)}return e}getColorForContinuousDataValue(e,t){const i=this.rasterizedTransferFunction;if(this.colorStops.length<2||!Array.isArray(this.stretchRange)||this.stretchRange.length<2||i.length<256)return null;let r=this.stretchRange[0],s=this.stretchRange[1];if(r>s){const e=r;r=s,s=e}e=(0,oe.uZ)(e,r,s);const n=i[Math.round((e-r)/(s-r)*(this._colorMapSize-1))].clone();return t||(n.a=1),n}};(0,r._)([(0,c.Cb)({type:["linear","nearest"],json:{write:!0}})],ge.prototype,"interpolation",void 0),(0,r._)([(0,c.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],ge.prototype,"stretchRange",void 0),(0,r._)([(0,c.Cb)({type:s.Z.ofType(ae),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.colorStops&&this.colorStops.length>0}}}}})],ge.prototype,"colorStops",null),(0,r._)([(0,c.Cb)({type:s.Z.ofType(ce),json:{read:{source:"alphaStops"},write:{enabled:!0,target:"alphaStops",overridePolicy(){return{enabled:!!this.opacityStops&&this.opacityStops.length>0}}}}})],ge.prototype,"opacityStops",null),(0,r._)([(0,c.Cb)({type:pe,json:{write:!0}})],ge.prototype,"rangeFilter",void 0),(0,r._)([(0,c.Cb)({type:[ie.Z],clonable:!1,json:{read:!1}})],ge.prototype,"rasterizedTransferFunction",null),ge=(0,r._)([(0,d.j)("esri.layers.voxel.VoxelTransferFunctionStyle")],ge);const me=ge;let fe=class extends((0,M.J)(R.wq)){constructor(){super(...arguments),this.color=ie.Z.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label=""}};(0,r._)([(0,c.Cb)({type:ie.Z,json:{type:[h.z8],write:{enabled:!0,isRequired:!0}}})],fe.prototype,"color",void 0),(0,r._)([(0,c.Cb)({type:h.z8,json:{write:{enabled:!0,isRequired:!0}}})],fe.prototype,"value",void 0),(0,r._)([(0,c.Cb)({type:Boolean,json:{default:!0,write:!0}})],fe.prototype,"enabled",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],fe.prototype,"label",void 0),fe=(0,r._)([(0,d.j)("esri.layers.voxel.VoxelUniqueValue")],fe);const be=fe;var ve;let _e=ve=class extends R.wq{constructor(e){super(e),this.variableId=0,this.label="",this.transferFunction=null,this.uniqueValues=null,this.isosurfaces=null,this.uniqueValues=new(s.Z.ofType(be)),this.isosurfaces=new(s.Z.ofType(se))}clone(){return new ve({variableId:this.variableId,label:this.label,transferFunction:(0,te.d9)(this.transferFunction),uniqueValues:(0,te.d9)(this.uniqueValues),isosurfaces:(0,te.d9)(this.isosurfaces)})}};(0,r._)([(0,c.Cb)({type:h.z8,json:{write:{enabled:!0,isRequired:!0}}})],_e.prototype,"variableId",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],_e.prototype,"label",void 0),(0,r._)([(0,c.Cb)({type:me,json:{write:{enabled:!0,overridePolicy(){return{enabled:!this.uniqueValues||this.uniqueValues.length<1}}}}})],_e.prototype,"transferFunction",void 0),(0,r._)([(0,c.Cb)({type:s.Z.ofType(be),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.uniqueValues&&this.uniqueValues.length>0}}}}})],_e.prototype,"uniqueValues",void 0),(0,r._)([(0,c.Cb)({type:s.Z.ofType(se),json:{write:{enabled:!0,overridePolicy(){const e=!this.uniqueValues||this.uniqueValues.length<1,t=!!this.isosurfaces&&this.isosurfaces.length>0;return{enabled:e&&t}}}}})],_e.prototype,"isosurfaces",void 0),_e=ve=(0,r._)([(0,d.j)("esri.layers.voxel.VoxelVariableStyle")],_e);const we=_e;var Se=i(94139),Ce=i(82971),xe=i(8744);let Ve=class extends R.wq{constructor(){super(...arguments),this.values=null}};(0,r._)([(0,c.Cb)({type:[Number],json:{write:!0}})],Ve.prototype,"values",void 0),Ve=(0,r._)([(0,d.j)("esri.layers.voxel.VoxelIrregularSpacing")],Ve);const je=Ve;let Me=class extends R.wq{constructor(){super(...arguments),this.scale=1,this.offset=0}};(0,r._)([(0,c.Cb)({type:Number,json:{write:!0}})],Me.prototype,"scale",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{write:!0}})],Me.prototype,"offset",void 0),Me=(0,r._)([(0,d.j)("esri.layers.voxel.VoxelRegularSpacing")],Me);const Ie=Me;let Re=class extends R.wq{constructor(){super(...arguments),this.irregularSpacing=null,this.isPositiveUp=!0,this.isWrappedDateLine=!1,this.label=null,this.name=null,this.quantity=null,this.regularSpacing=null,this.size=0,this.unit=null}get isRegular(){return(null==this.irregularSpacing||void 0===this.irregularSpacing)&&null!==this.regularSpacing}getRange(){return this.isRegular?[this.regularSpacing.offset,this.regularSpacing.offset+this.regularSpacing.scale*(this.size-1)]:Array.isArray(this.irregularSpacing?.values)&&this.irregularSpacing.values.length>1?[this.irregularSpacing.values[0],this.irregularSpacing.values[this.irregularSpacing.values.length-1]]:[0,0]}};(0,r._)([(0,c.Cb)({type:je,json:{write:!0}})],Re.prototype,"irregularSpacing",void 0),(0,r._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],Re.prototype,"isPositiveUp",void 0),(0,r._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],Re.prototype,"isWrappedDateLine",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],Re.prototype,"label",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],Re.prototype,"name",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],Re.prototype,"quantity",void 0),(0,r._)([(0,c.Cb)({type:Ie,json:{write:!0}})],Re.prototype,"regularSpacing",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{write:!0}})],Re.prototype,"size",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],Re.prototype,"unit",void 0),(0,r._)([(0,c.Cb)({type:Boolean,json:{read:!1}})],Re.prototype,"isRegular",null),Re=(0,r._)([(0,d.j)("esri.layers.voxel.VoxelDimension")],Re);const ze=Re,De="esri.layers.voxel.VoxelVolume",qe=o.Z.getLogger(De);let Ae=class extends R.wq{constructor(e){super(e),this.id=0,this.dimensions=null,this.spatialReference=Ce.Z.WGS84}get zDimension(){if(!this.dimensions)return-1;if(!Array.isArray(this.dimensions))return-1;if(4!==this.dimensions.length)return-1;for(let e=2;e<4;++e)if(this.dimensions[e].size>0)return e;return-1}get isValid(){return!(!this.dimensions||!Array.isArray(this.dimensions)||4!==this.dimensions.length||this.dimensions[0].size<1||this.dimensions[1].size<1||-1===this.zDimension||this.dimensions[this.zDimension].size<1)}get originInLayerSpace3D(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),i=this.dimensions[2],r=i.isRegular?i.getRange():[0,i.size];return[e[0],t[0],r[0]]}get voxelSizeInLayerSpaceSigned(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),i=this.dimensions[2],r=i.isRegular?i.getRange():[0,i.size],s=[this.sizeInVoxels[0],this.sizeInVoxels[1],this.sizeInVoxels[2]];for(let e=0;e<3;++e)s[e]<2?s[e]=1:s[e]-=1;return i.isRegular&&!i.isPositiveUp&&(s[2]*=-1),[(e[1]-e[0])/s[0],(t[1]-t[0])/s[1],(r[1]-r[0])/s[2]]}get volumeType(){if(this.isValid){const e=this.dimensions[2].size>0,t=this.dimensions[3].size>0;if(!e&&t)return"xyt";if(e&&t)return"xyzt"}return"xyz"}get sizeInVoxels(){if(!this.isValid)return[0,0,0];const e=this.zDimension;return[this.dimensions[0].size,this.dimensions[1].size,this.dimensions[e].size]}computeVoxelSpaceLocation(e){if(!this.isValid)return[0,0,0];if("xyt"===this.volumeType)return qe.error("computeVoxelSpacePosition cannot be used with XYT volumes."),[0,0,0];if(!(0,xe.fS)(this.spatialReference,e.spatialReference))return qe.error("pos argument should have the same spatial reference as the VoxelLayer."),[0,0,0];const t=(0,g.f)(e.x,e.y,e.z??0);(0,y.b)(t,t,this.originInLayerSpace3D),(0,y.C)(t,t,this.voxelSizeInLayerSpaceSigned);const i=this.dimensions[this.zDimension];if(!i.isRegular&&Array.isArray(i.irregularSpacing?.values)&&i.irregularSpacing.values.length>1){const r=e.z??0,s=i.irregularSpacing.values,n=i.isPositiveUp?1:-1,o=s.reduce(((e,t)=>Math.abs(n*t-r)<Math.abs(n*e-r)?t:e));for(let e=0;e<s.length;++e)if(s[e]===o){t[2]=e;break}}return[t[0],t[1],t[2]]}computeLayerSpaceLocation(e){if(!this.isValid)return new Se.Z({x:0,y:0,spatialReference:this.spatialReference});const t=(0,g.d)(e);if((0,y.B)(t,t,this.voxelSizeInLayerSpaceSigned),(0,y.a)(t,t,this.originInLayerSpace3D),"xyt"===this.volumeType)return new Se.Z({x:t[0],y:t[1],spatialReference:this.spatialReference});const i=this.dimensions[this.zDimension];return i.isRegular||Array.isArray(i.irregularSpacing?.values)&&(e[2]<0?t[2]=i.irregularSpacing.values[0]:e[2]<i.irregularSpacing.values.length?t[2]=i.irregularSpacing.values[e[2]]:t[2]=i.irregularSpacing.values[i.irregularSpacing.values.length-1],i.isPositiveUp||(t[2]*=-1)),new Se.Z({x:t[0],y:t[1],z:t[2],spatialReference:this.spatialReference})}};(0,r._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Ae.prototype,"id",void 0),(0,r._)([(0,c.Cb)({type:[ze],json:{write:{enabled:!0,isRequired:!0}}})],Ae.prototype,"dimensions",void 0),(0,r._)([(0,c.Cb)({type:Ce.Z,json:{read:{enabled:!1}}})],Ae.prototype,"spatialReference",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{read:!1}})],Ae.prototype,"zDimension",null),(0,r._)([(0,c.Cb)({type:[Boolean],json:{read:!1}})],Ae.prototype,"isValid",null),(0,r._)([(0,c.Cb)({type:[Number],json:{read:!1}})],Ae.prototype,"originInLayerSpace3D",null),(0,r._)([(0,c.Cb)({type:[Number],json:{read:!1}})],Ae.prototype,"voxelSizeInLayerSpaceSigned",null),(0,r._)([(0,c.Cb)({type:["xyz","xyzt","xyt"],json:{read:{enabled:!1}}})],Ae.prototype,"volumeType",null),(0,r._)([(0,c.Cb)({type:[Number],json:{read:!1}})],Ae.prototype,"sizeInVoxels",null),Ae=(0,r._)([(0,d.j)(De)],Ae);const Ne=Ae;var Te;let Ee=Te=class extends R.wq{constructor(){super(...arguments),this.apronWidth=1,this.brickSize=[32,32,32],this.maxLodLevel=0,this.nodeSize=[4,4,4]}isValid(){const e=new Te;return e.apronWidth===this.apronWidth&&e.maxLodLevel===this.maxLodLevel&&!!this.brickSize&&!!this.nodeSize&&!(!Array.isArray(this.brickSize)||!Array.isArray(this.nodeSize))&&3===this.brickSize.length&&3===this.nodeSize.length&&32===this.brickSize[0]&&32===this.brickSize[1]&&32===this.brickSize[2]&&4===this.nodeSize[0]&&4===this.nodeSize[1]&&4===this.nodeSize[2]}};(0,r._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Ee.prototype,"apronWidth",void 0),(0,r._)([(0,c.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Ee.prototype,"brickSize",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Ee.prototype,"maxLodLevel",void 0),(0,r._)([(0,c.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Ee.prototype,"nodeSize",void 0),Ee=Te=(0,r._)([(0,d.j)("esri.layers.voxel.VoxelVolumeIndex")],Ee);const Fe=Ee;let Ze=class extends((0,M.J)(R.wq)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=k(this.normal);return I.BV.normalize((0,h.q9)(e),0,!0)}set orientation(e){const t=P(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=k(this.normal);return I.BV.normalize((0,h.q9)(t),0,!0)}set tilt(e){const t=P(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,r._)([(0,c.Cb)({type:Boolean,json:{default:!0,write:!0}})],Ze.prototype,"enabled",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],Ze.prototype,"label",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,B.p)((e=>I.BV.normalize((0,h.q9)(e),0,!0)))],Ze.prototype,"orientation",null),(0,r._)([(0,c.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,B.p)((e=>I.BV.normalize((0,h.q9)(e),0,!0)))],Ze.prototype,"tilt",null),(0,r._)([(0,c.Cb)({type:[Number],json:{write:!0}})],Ze.prototype,"normal",void 0),(0,r._)([(0,c.Cb)({type:[Number],json:{write:!0}})],Ze.prototype,"point",void 0),Ze=(0,r._)([(0,d.j)("esri.layers.voxel.VoxelDynamicSection")],Ze);const Le=Ze;var Oe;let ke=Oe=class extends R.wq{constructor(e){super(e),this.volumeId=0,this.verticalExaggeration=1,this.exaggerationMode="scale-height",this.verticalOffset=0,this.slices=new(s.Z.ofType($)),this.dynamicSections=new(s.Z.ofType(Le))}set slices(e){this._set("slices",(0,ne.Z)(e,this._get("slices"),s.Z.ofType($)))}set dynamicSections(e){this._set("dynamicSections",(0,ne.Z)(e,this._get("dynamicSections"),s.Z.ofType(Le)))}clone(){return new Oe({volumeId:this.volumeId,verticalExaggeration:this.verticalExaggeration,exaggerationMode:this.exaggerationMode,verticalOffset:this.verticalOffset,slices:(0,te.d9)(this.slices),dynamicSections:(0,te.d9)(this.dynamicSections)})}};(0,r._)([(0,c.Cb)({type:h.z8,json:{write:{enabled:!0,isRequired:!0}}})],ke.prototype,"volumeId",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{default:1,write:!0}})],ke.prototype,"verticalExaggeration",void 0),(0,r._)([(0,c.Cb)({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],ke.prototype,"exaggerationMode",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{default:0,write:!0}})],ke.prototype,"verticalOffset",void 0),(0,r._)([(0,c.Cb)({type:s.Z.ofType($),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],ke.prototype,"slices",null),(0,r._)([(0,c.Cb)({type:s.Z.ofType(Le),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],ke.prototype,"dynamicSections",null),ke=Oe=(0,r._)([(0,d.j)("esri.layers.voxel.VoxelVolumeStyle")],ke);const Pe=ke;var Be=i(32163);const Ue="esri.layers.VoxelLayer",$e=o.Z.getLogger(Ue);let Je=class extends((0,C.Vt)((0,v.Y)((0,_.q)((0,w.I)((0,S.M)((0,a.R)((0,b.V)(f.Z)))))))){constructor(e){super(e),this.serviceRoot="",this.operationalLayerType="Voxel",this.legendEnabled=!0,this.title=null,this.sections=null,this.currentVariableId=0,this.volumeStyles=null,this.renderMode="volume",this.variableStyles=null,this.enableSlices=!0,this.enableSections=!0,this.enableDynamicSections=!0,this.enableIsosurfaces=!0,this.shading=new X,this.opacity=1,this.variables=new s.Z,this.volumes=new s.Z,this.index=null,this.minScale=0,this.maxScale=0,this.type="voxel",this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.fullExtent=null,this.popupEnabled=!0,this.popupTemplate=null,this.test=null,this.volumeStyles=new(s.Z.ofType(Pe)),this.variableStyles=new(s.Z.ofType(we)),this.sections=new(s.Z.ofType(H)),e?.constantUpscaling&&(this.test={constantUpscaling:!0})}set url(e){this._set("url",(0,x.Nm)(e,$e))}load(e){const t=(0,l.pC)(e)?e.signal:null,i=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.r9).then((()=>this._fetchService(t))).then((()=>this.serviceRoot=this.url));return this.addResolvingPromise(i),Promise.resolve(this)}read(e,t){super.read(e,t);for(const e of this.volumes)e.spatialReference=this.spatialReference}readVersion(e,t){return super.parseVersionString(e)}validateLayer(e){if(e.layerType&&e.layerType!==this.operationalLayerType)throw new n.Z("voxel-layer:layer-type-not-supported","VoxelLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor)||this.version.major<3)throw new n.Z("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"});if(this.version.major>3)throw new n.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"})}readFullExtent(e,t,i){if(null!=e&&"object"==typeof e){const r=m.Z.fromJSON(e,i);if(0===r.zmin&&0===r.zmax&&Array.isArray(t.volumes)){const e=Ne.fromJSON(t.volumes[0]);if(e.isValid&&"xyt"!==e.volumeType){const t=e.dimensions[2];if(t.isRegular){let e=t.regularSpacing.offset,i=t.regularSpacing.offset+t.regularSpacing.scale*(t.size-1);if(e>i){const t=e;e=i,i=t}r.zmin=e,r.zmax=i}}}return r}return null}get voxelFields(){const e=[new j.Z({name:"Voxel.ServiceValue",alias:"Value",domain:null,editable:!1,length:128,type:"string"}),new j.Z({name:"Voxel.ServiceVariableLabel",alias:"Variable",domain:null,editable:!1,length:128,type:"string"}),new j.Z({name:"Voxel.Position",alias:"Voxel Position",domain:null,editable:!1,length:128,type:"string"})],t=this.getVolume(null);if((0,l.pC)(t)){if("xyzt"===t.volumeType||"xyt"===t.volumeType){const t=new j.Z({name:"Voxel.ServiceLocalTime",alias:"Local Time",domain:null,editable:!1,length:128,type:"string"});e.push(t);const i=new j.Z({name:"Voxel.ServiceNativeTime",alias:"Native Time",domain:null,editable:!1,length:128,type:"string"});e.push(i)}if("xyt"!==t.volumeType){const t=new j.Z({name:"Voxel.ServiceDepth",alias:"Depth",domain:null,editable:!1,length:128,type:"string"});e.push(t)}}return e}get defaultPopupTemplate(){return this.createPopupTemplate()}createPopupTemplate(e){const t=this.voxelFields,i=this.title;return(0,Be.eZ)({fields:t,title:i},e)}getConfiguration(){const e={layerType:this.operationalLayerType,version:this.version.versionString,name:this.title,spatialReference:this.spatialReference,fullExtent:this.fullExtent,volumes:this.volumes.toJSON(),variables:this.variables.toJSON(),index:this.index?.toJSON(),sections:this.getSections(),style:{volumeStyles:this.getVolumeStyles(),currentVariableId:this.currentVariableId,renderMode:this.renderMode,variableStyles:this.getVariableStyles(),enableSections:this.enableSections,enableDynamicSections:this.enableDynamicSections,enableIsosurfaces:this.enableIsosurfaces,enableSlices:this.enableSlices,shading:this.shading}};return e.index&&this.index?.isValid()?JSON.stringify(e):""}getVariableStyle(e){let t=-1;if(t=(0,l.pC)(e)?e:this.currentVariableId,!this.variableStyles||-1===t)return null;const i=this.variableStyles.findIndex((e=>e.variableId===t));return i<0?null:this.variableStyles.getItemAt(i)}getVariable(e){let t=-1;if(t=(0,l.pC)(e)?e:this.currentVariableId,!this.variables||-1===t)return null;const i=this.variables.findIndex((e=>e.id===t));return i<0?null:this.variables.getItemAt(i)}getVolume(e){const t=this.getVariable(e);return(0,l.pC)(t)?this.volumes.find((({id:e})=>e===t.volumeId)):null}getVolumeStyle(e){const t=this.getVariable(e);return(0,l.pC)(t)?this.volumeStyles.find((({volumeId:e})=>e===t.volumeId)):null}getColorForContinuousDataValue(e,t,i){const r=this.getVariable(e);if((0,l.Wi)(r)||"continuous"!==r.renderingFormat?.continuity)return null;if(!this.variableStyles)return null;const s=this.variableStyles.findIndex((t=>t.variableId===e));if(s<0)return null;const n=this.variableStyles.getItemAt(s);return n.transferFunction?n.transferFunction.getColorForContinuousDataValue(t,i):null}getSections(){const e=[];for(const t of this.sections)e.push(new H({enabled:t.enabled,href:t.href,id:t.id,label:t.label,normal:t.normal,point:t.point,sizeInPixel:t.sizeInPixel,slices:t.slices,timeId:t.timeId,variableId:t.variableId}));return e}getVariableStyles(){const e=[];for(const t of this.variableStyles){const i=this._getVariable(t);if((0,l.pC)(i)){const r=t.clone();r.isosurfaces.length>4&&(r.isosurfaces=r.isosurfaces.slice(0,3),$e.error("A maximum of 4 isosurfaces are supported for Voxel Layers."));for(const e of r.isosurfaces)if(!e.colorLocked){const t=this.getColorForContinuousDataValue(r.variableId,e.value,!1);null===t||t.equals(e.color)||(e.color=t)}if("continuous"===i.renderingFormat.continuity)(null===r.transferFunction||r.transferFunction.colorStops.length<2)&&$e.error(`VoxelVariableStyle for variable ${i.id} is invalid. At least 2 color stops are required in the transferFunction for continuous Voxel Layer variables.`),null!==r.transferFunction&&(Array.isArray(r.transferFunction.stretchRange)&&2===r.transferFunction.stretchRange.length||($e.error(`VoxelVariableStyle for variable ${i.id} is invalid. The stretchRange of the transferFunction for continuous Voxel Layer variables must be of the form [minimumDataValue, maximumDataValue].`),r.transferFunction.stretchRange=[0,1],r.transferFunction.colorStops.removeAll()));else if("discrete"===i.renderingFormat.continuity)if(0===t.uniqueValues.length)$e.error(`VoxelVariableStyle for variable ${i.id} is invalid. Unique values are required for discrete Voxel Layer variables.`);else for(const e of t.uniqueValues)null!==e.label&&void 0!==e.label||null===e.value||void 0===e.value||(e.label=e.value.toString());e.push(r)}else $e.error(`VoxelVariable ID=${t.variableId} doesn't exist, VoxelVariableStyle for this VoxelVariable will be ignored.`)}return e}getVolumeStyles(){const e=[];for(const t of this.volumeStyles){const i=this._getVolumeFromVolumeId(t.volumeId);if((0,l.pC)(i)){const r=t.clone();for(const e of r.slices)this._isPlaneValid(e,[0,1,i.zDimension],i.dimensions)||(e.enabled=!1,e.label="invalid");for(const e of r.dynamicSections)this._isPlaneValid(e,[0,1,i.zDimension],i.dimensions)||(e.enabled=!1,e.label="invalid");e.push(r)}else $e.error(`VoxelVolume ID=${t.volumeId} doesn't exist, VoxelVolumeStyle for this VoxelVolume will be ignored.`)}return e}_getVariable(e){const t=e.variableId;for(const e of this.variables)if(e.id===t)return e;return null}_getVolumeFromVolumeId(e){for(const t of this.volumes)if(t.id===e)return t;return null}_isPlaneValid(e,t,i){if(!e.point)return!1;if(!Array.isArray(e.point)||3!==e.point.length)return!1;if(!e.normal)return!1;if(!Array.isArray(e.normal)||3!==e.normal.length)return!1;for(let r=0;r<3;++r){const s=e.point[r];if(s<0||s>=i[t[r]].size)return!1}const r=(0,g.f)(e.normal[0],e.normal[1],e.normal[2]);return(0,y.n)(r,r),!(Math.abs(r[0])+Math.abs(r[1])+Math.abs(r[2])<1e-6||(e.normal[0]=r[0],e.normal[1]=r[1],e.normal[2]=r[2],0))}};(0,r._)([(0,c.Cb)({type:["Voxel"]})],Je.prototype,"operationalLayerType",void 0),(0,r._)([(0,c.Cb)(V.rn)],Je.prototype,"legendEnabled",void 0),(0,r._)([(0,c.Cb)({json:{write:!0}})],Je.prototype,"title",void 0),(0,r._)([(0,c.Cb)(V.HQ)],Je.prototype,"url",null),(0,r._)([(0,c.Cb)({type:s.Z.ofType(H),json:{origins:{"web-scene":{name:"layerDefinition.sections",write:!0}}}})],Je.prototype,"sections",void 0),(0,r._)([(0,c.Cb)({type:h.z8,json:{origins:{"web-scene":{name:"layerDefinition.style.currentVariableId",write:{enabled:!0,isRequired:!0,ignoreOrigin:!0}},service:{name:"style.currentVariableId"}}}})],Je.prototype,"currentVariableId",void 0),(0,r._)([(0,c.Cb)({type:s.Z.ofType(Pe),json:{origins:{"web-scene":{name:"layerDefinition.style.volumeStyles",write:!0},service:{name:"style.volumeStyles"}}}})],Je.prototype,"volumeStyles",void 0),(0,r._)([(0,c.Cb)({type:["volume","surfaces"],json:{origins:{"web-scene":{name:"layerDefinition.style.renderMode",write:!0},service:{name:"style.renderMode"}}}})],Je.prototype,"renderMode",void 0),(0,r._)([(0,c.Cb)({type:s.Z.ofType(we),json:{origins:{"web-scene":{name:"layerDefinition.style.variableStyles",write:!0},service:{name:"style.variableStyles"}}}})],Je.prototype,"variableStyles",void 0),(0,r._)([(0,c.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSlices",write:!0},service:{name:"style.enableSlices"}}}})],Je.prototype,"enableSlices",void 0),(0,r._)([(0,c.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSections",write:!0},service:{name:"style.enableSections"}}}})],Je.prototype,"enableSections",void 0),(0,r._)([(0,c.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableDynamicSections",write:!0},service:{name:"style.enableDynamicSections"}}}})],Je.prototype,"enableDynamicSections",void 0),(0,r._)([(0,c.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableIsosurfaces",write:!0},service:{name:"style.enableIsosurfaces"}}}})],Je.prototype,"enableIsosurfaces",void 0),(0,r._)([(0,c.Cb)({type:X,json:{origins:{"web-scene":{name:"layerDefinition.style.shading",write:!0},service:{name:"style.shading"}}}})],Je.prototype,"shading",void 0),(0,r._)([(0,c.Cb)({type:["show","hide"]})],Je.prototype,"listMode",void 0),(0,r._)([(0,c.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0,json:{read:!1,write:!1,origins:{"web-scene":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],Je.prototype,"opacity",void 0),(0,r._)([(0,c.Cb)({type:s.Z.ofType(ee)})],Je.prototype,"variables",void 0),(0,r._)([(0,c.Cb)({type:s.Z.ofType(Ne)})],Je.prototype,"volumes",void 0),(0,r._)([(0,c.Cb)({type:Fe})],Je.prototype,"index",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{name:"layerDefinition.minScale",read:!1,write:!1,origins:{service:{read:!1,write:!1}}}})],Je.prototype,"minScale",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{name:"layerDefinition.maxScale",read:!1,write:!1,origins:{service:{read:!1,write:!1}}}})],Je.prototype,"maxScale",void 0),(0,r._)([(0,c.Cb)({json:{read:!1},readOnly:!0})],Je.prototype,"type",void 0),(0,r._)([(0,c.Cb)({readOnly:!0,json:{name:"serviceVersion"}})],Je.prototype,"version",void 0),(0,r._)([(0,p.r)("service","version")],Je.prototype,"readVersion",null),(0,r._)([(0,c.Cb)({type:m.Z})],Je.prototype,"fullExtent",void 0),(0,r._)([(0,p.r)("service","fullExtent",["fullExtent"])],Je.prototype,"readFullExtent",null),(0,r._)([(0,c.Cb)({readOnly:!0,clonable:!1,json:{read:!1}})],Je.prototype,"voxelFields",null),(0,r._)([(0,c.Cb)(V.C_)],Je.prototype,"popupEnabled",void 0),(0,r._)([(0,c.Cb)({readOnly:!0})],Je.prototype,"defaultPopupTemplate",null),Je=(0,r._)([(0,d.j)(Ue)],Je);const Ye=Je},66094:(e,t,i)=>{i.d(t,{B:()=>s});var r=i(17452);function s(e){return n[function(e){return e instanceof Blob?e.type:function(e){const t=(0,r.Ml)(e);return a[t]||o}(e.url)}(e)]||l}const n={},o="text/plain",l=n[o],a={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in a)n[a[e]]=e},32163:(e,t,i)=>{i.d(t,{eZ:()=>h});var r=i(51773),s=i(35671),n=i(84649),o=(i(63801),i(48074),i(38745),i(9190)),l=(i(10214),i(71423),i(44951),i(422)),a=i(63061);const u=["oid","global-id"],c=["oid","global-id","guid"];function h({displayField:e,editFieldsInfo:t,fields:i,objectIdField:a,title:u},c){if(!i)return null;const h=function({editFieldsInfo:e,fields:t,objectIdField:i},r){return function(e,t){const i=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===i&&(e=e.slice()),e.sort(y),e}(t??[],r?.ignoreFieldTypes||v).map((t=>new l.Z({fieldName:t.name,isEditable:m(t,e),label:t.alias,format:f(t),visible:d(t,{editFieldsInfo:e,objectIdField:i,visibleFieldNames:r?.visibleFieldNames})})))}({editFieldsInfo:t,fields:i,objectIdField:a},c);if(!h.length)return null;const p=function(e){const t=(0,s.O5)(e),{titleBase:i}=e;return t?`${i}: {${t.trim()}}`:i??""}({titleBase:u,fields:i,displayField:e}),g=[new o.Z,new n.Z];return new r.Z({title:p,content:g,fieldInfos:h})}const p=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/shape/i,/perimeter/i,/objectid/i,/_i$/i],d=(e,{editFieldsInfo:t,objectIdField:i,visibleFieldNames:r})=>r?r.has(e.name):!(g(e.name,t)||i&&e.name===i||u.includes(e.type)||p.some((t=>t.test(e.name))));function y(e,t){return"oid"===e.type?-1:"oid"===t.type?1:b(e)?-1:b(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function g(e,t){if(!e||!t)return!1;const{creationDateField:i,creatorField:r,editDateField:s,editorField:n}=t;return[i&&i.toLowerCase(),r&&r.toLowerCase(),s&&s.toLowerCase(),n&&n.toLowerCase()].includes(e.toLowerCase())}function m(e,t){return e.editable&&!c.includes(e.type)&&!g(e.name,t)}function f(e){switch(e.type){case"small-integer":case"integer":case"single":return new a.Z({digitSeparator:!0,places:0});case"double":return new a.Z({digitSeparator:!0,places:2});case"date":return new a.Z({dateFormat:"long-month-day-year"});default:return"string"===e.type&&(0,s.Ec)(e.name)?new a.Z({digitSeparator:!0,places:0}):null}}function b(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())}const v=["geometry","blob","raster","guid","xml"]}}]);