@arcgis/core 4.33.0-next.20250602 → 4.33.0-next.20250604
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0155e6806621f3588ffa.js +1 -0
- package/assets/esri/core/workers/chunks/074498a4d685223ec058.js +1 -0
- package/assets/esri/core/workers/chunks/0ff6f15d46d7ddf6fe4d.js +1 -0
- package/assets/esri/core/workers/chunks/18011c691e0aca4144dd.js +1 -0
- package/assets/esri/core/workers/chunks/1f315f0eeb26dad1addd.js +1 -0
- package/assets/esri/core/workers/chunks/{614bc3f05873b37af091.js → 28677588ec75bc08ade9.js} +1 -1
- package/assets/esri/core/workers/chunks/3145218abe59b5e99ff8.js +1 -0
- package/assets/esri/core/workers/chunks/{32537e2b014bc3d82f5c.js → 369978472cc9ee6a00b5.js} +17 -17
- package/assets/esri/core/workers/chunks/3b63edcd34f832ac7bd8.js +1 -0
- package/assets/esri/core/workers/chunks/{539541dec5fcf3b657aa.js → 3f58da371633967a61ca.js} +1 -1
- package/assets/esri/core/workers/chunks/{f48eb59b94ba8b7d4d72.js → 4079e307a0fce4516aa4.js} +1 -1
- package/assets/esri/core/workers/chunks/47cbed70c7eeb72e0203.js +1 -0
- package/assets/esri/core/workers/chunks/49089731ecfe7e8bb2f6.js +1 -0
- package/assets/esri/core/workers/chunks/5853b2af6ac8be2c69d8.js +1 -0
- package/assets/esri/core/workers/chunks/5e539ce4751bcfa57145.js +1 -0
- package/assets/esri/core/workers/chunks/64f5f27e7c5649d79cbc.js +1 -0
- package/assets/esri/core/workers/chunks/{6b0ae9ccdd1acef5b5b4.js → 679d7baea233faf3fdbc.js} +1 -1
- package/assets/esri/core/workers/chunks/{5222523fff30d07f88de.js → 6a86fee4e945e61d9639.js} +1 -1
- package/assets/esri/core/workers/chunks/6c196bc0bf1522ae3434.js +1 -0
- package/assets/esri/core/workers/chunks/7317346ed8d7c5bb859d.js +1 -0
- package/assets/esri/core/workers/chunks/74276044cb75b51967f2.js +1 -0
- package/assets/esri/core/workers/chunks/7fa46d1e9fcd8c0c6302.js +1 -0
- package/assets/esri/core/workers/chunks/86c12fcaf8d0c96a52ba.js +1 -0
- package/assets/esri/core/workers/chunks/91d484960df25ec9554b.js +1 -0
- package/assets/esri/core/workers/chunks/948c5454881e661c3bdc.js +1 -0
- package/assets/esri/core/workers/chunks/97b69fec3e87f11210ba.js +1 -0
- package/assets/esri/core/workers/chunks/{fda48126f67e80034404.js → 998819aade3898f52414.js} +1 -1
- package/assets/esri/core/workers/chunks/{427318722815bef1496b.js → a08ce98672ab94d19613.js} +1 -1
- package/assets/esri/core/workers/chunks/a693cd3af2e995972252.js +1 -0
- package/assets/esri/core/workers/chunks/a6fb75929e456f87f804.js +1 -0
- package/assets/esri/core/workers/chunks/aaa564c84ee8ea36fbb4.js +1 -0
- package/assets/esri/core/workers/chunks/af0d7a7cbbaad47a49c6.js +1 -0
- package/assets/esri/core/workers/chunks/af2f2df3c43b49ad1a70.js +1 -0
- package/assets/esri/core/workers/chunks/b72137c63b7f2a525d9e.js +1 -0
- package/assets/esri/core/workers/chunks/c2264451d12f1fbaad22.js +1 -0
- package/assets/esri/core/workers/chunks/c23cc0eaaf737af3ac35.js +1 -0
- package/assets/esri/core/workers/chunks/{1db026cc25338dbc208e.js → c6fa79ce324122e08dbb.js} +1 -1
- package/assets/esri/core/workers/chunks/c8856370bae65d9eeb2b.js +1 -0
- package/assets/esri/core/workers/chunks/{562800b0af52a38a311b.js → cf25f487fe4eb1579aee.js} +1 -1
- package/assets/esri/core/workers/chunks/cfc5e0ec9b0290407383.js +1 -0
- package/assets/esri/core/workers/chunks/{06877ea5b9df7de89aff.js → d0372bac0c5f4fbed468.js} +1 -1
- package/assets/esri/core/workers/chunks/d28d874c1337b69fedc0.js +1 -0
- package/assets/esri/core/workers/chunks/{0fd826e7f64a37aaaa1e.js → d942cb9cf82b1c056979.js} +1 -1
- package/assets/esri/core/workers/chunks/df84863cb0600f658541.js +1 -0
- package/assets/esri/core/workers/chunks/e7589c39b13295af8f1d.js +1 -0
- package/assets/esri/core/workers/chunks/fe3703ec198cbfebec30.js +1 -0
- package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_en.json +1 -1
- package/chunks/FocusAreaMask.glsl.js +1 -1
- package/core/urlUtils.js +1 -1
- package/interfaces.d.ts +133 -75
- package/layers/CatalogLayer.js +1 -1
- package/layers/FeatureLayer.js +1 -1
- package/layers/VideoLayer.js +1 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/mixins/FeatureLayerBase.js +1 -1
- package/layers/support/arcgisLayers.js +1 -1
- package/layers/support/fetchService.js +1 -1
- package/layers/support/layerUtils.js +1 -1
- package/layers/video/videoUtils.js +1 -1
- package/networks/UtilityNetwork.js +1 -1
- package/package.json +1 -1
- package/portal/support/layersLoader.js +1 -1
- package/portal/support/loadUtils.js +1 -1
- package/portal/support/portalLayers.js +1 -1
- package/rest/networks/queryAssociations.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/animationUtils.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/support/cimSymbolUtils.js +1 -1
- package/undoredo/support/Services.js +1 -1
- package/views/2d/engine/vectorTiles/decluttering/SymbolDeclutterer.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedPolyMeshWriters.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/attributes.js +1 -1
- package/views/2d/layers/VideoLayerView2D.js +1 -1
- package/views/3d/FocusAreasView.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaOutlineItem.js +1 -1
- package/views/SelectionManager.js +1 -1
- package/webscene/Slide.js +1 -1
- package/widgets/BasemapLayerList.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/CatalogLayerList.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/support/SketchController.js +1 -1
- package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
- package/widgets/FeatureForm/VisibleElements.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/LayerList.js +1 -1
- package/widgets/ShadowCast/DiscreteOptions.js +1 -1
- package/widgets/ShadowCast/DurationOptions.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/ShadowCast/ShadowCastVisibleElements.js +1 -1
- package/widgets/ShadowCast/ThresholdOptions.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/TableList.js +1 -1
- package/widgets/VideoPlayer/VideoPlayerViewModel.js +1 -1
- package/widgets/VideoPlayer/components/SettingsButton.js +1 -1
- package/widgets/VideoPlayer.js +1 -1
- package/widgets/support/UtilityNetworkAssociations/utils/isFromElement.js +1 -1
- package/assets/esri/core/workers/chunks/21de4516bf5c9630edfd.js +0 -1
- package/assets/esri/core/workers/chunks/248a198f97871a8d6dd6.js +0 -1
- package/assets/esri/core/workers/chunks/2c9a228d8e53d688fe5e.js +0 -1
- package/assets/esri/core/workers/chunks/2dbd18df5c691c8d0a61.js +0 -1
- package/assets/esri/core/workers/chunks/34f55bb89ddf26b10260.js +0 -1
- package/assets/esri/core/workers/chunks/3bec10a4f01757590c1c.js +0 -1
- package/assets/esri/core/workers/chunks/53e8c061f36516c3c3e4.js +0 -1
- package/assets/esri/core/workers/chunks/543b8dc8baa21b99147b.js +0 -1
- package/assets/esri/core/workers/chunks/5a01bd7a9ee24be7bac4.js +0 -1
- package/assets/esri/core/workers/chunks/5d3246b8fc50f9d9e2c4.js +0 -1
- package/assets/esri/core/workers/chunks/66e4cb2479bed1384ed5.js +0 -1
- package/assets/esri/core/workers/chunks/7174150bf7595c22f976.js +0 -1
- package/assets/esri/core/workers/chunks/74d18c22fa1c178bd9df.js +0 -1
- package/assets/esri/core/workers/chunks/77dbb1d5d5e1a6ced932.js +0 -1
- package/assets/esri/core/workers/chunks/7a2189614f2dad49ffcd.js +0 -1
- package/assets/esri/core/workers/chunks/8249b5de5c15461a6787.js +0 -1
- package/assets/esri/core/workers/chunks/8385c13ac10e595374cb.js +0 -1
- package/assets/esri/core/workers/chunks/85efb318cda7260221ae.js +0 -1
- package/assets/esri/core/workers/chunks/87623ebe32c6ae9cb223.js +0 -1
- package/assets/esri/core/workers/chunks/8b86c75426c55b29ebed.js +0 -1
- package/assets/esri/core/workers/chunks/8c4b26d86483646c70d2.js +0 -1
- package/assets/esri/core/workers/chunks/a036503087baa1f9fd00.js +0 -1
- package/assets/esri/core/workers/chunks/a61fa2853307830ec577.js +0 -1
- package/assets/esri/core/workers/chunks/b6c3a2d93a59df9a1418.js +0 -1
- package/assets/esri/core/workers/chunks/ba015f4f72714820a12f.js +0 -1
- package/assets/esri/core/workers/chunks/c3d95f7f4370486eed2c.js +0 -1
- package/assets/esri/core/workers/chunks/c3df693d1bce8f189fa2.js +0 -1
- package/assets/esri/core/workers/chunks/cefcecbeef4f0a46f58c.js +0 -1
- package/assets/esri/core/workers/chunks/e04bcc98a557f77cc6fa.js +0 -1
- package/assets/esri/core/workers/chunks/e7bebf0d272cc3922982.js +0 -1
- package/assets/esri/core/workers/chunks/f1e87720b425d7fb348a.js +0 -1
- package/assets/esri/core/workers/chunks/f2863c501d62dece5fdd.js +0 -1
- package/assets/esri/core/workers/chunks/f9e1b73976027e17cd03.js +0 -1
- package/assets/esri/core/workers/chunks/fd207a40faf882d3b2a3.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2083],{6455:(e,t,i)=>{i.d(t,{FJ:()=>_,Dp:()=>b,KV:()=>T});var n=i(90237),r=i(93637),s=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(89317),l=i(69540),d=i(5503),p=i(25482),u=i(43937),c=i(83960),h=i(13069);const y={write:{overridePolicy:(e,t,i)=>({enabled:!i||"scale"===i.filterMode})}};let m=class extends(l.A.ClonableMixin(p.A)){constructor(e){super(e),this.id=(0,h.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"id",void 0),(0,n._)([(0,s.MZ)({type:Number,json:y})],m.prototype,"maxScale",void 0),(0,n._)([(0,s.MZ)({type:Number,json:y})],m.prototype,"minScale",void 0),(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"title",void 0),(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),m=(0,n._)([(0,o.$)("esri.layers.support.DisplayFilter")],m);var f=i(41560);let g=class extends(l.A.ClonableMixin(p.A)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(d.A.ofType(m)),this.mode="manual"}writeFilters(e,t,i,n){const r=e.toArray();"scale"===this.mode&&r.sort(((e,t)=>{const i=(0,c.oW)(t.minScale,e.minScale),n=e.maxScale-t.maxScale;return 0===i?n:i})),t[i]=r.map((e=>e.toJSON(n)))}write(e,t){return super.write(e,(0,f.mW)(this,t))}};(0,n._)([(0,s.MZ)({type:String,json:{write:{overridePolicy:(e,t,i)=>({enabled:"manual"===i.filterMode,isRequired:!0})}}})],g.prototype,"activeFilterId",void 0),(0,n._)([(0,s.MZ)({type:d.A.ofType(m),nonNullable:!0,json:{write:!0}})],g.prototype,"filters",void 0),(0,n._)([(0,u.K)("filters")],g.prototype,"writeFilters",null),(0,n._)([(0,s.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],g.prototype,"mode",void 0),g=(0,n._)([(0,o.$)("esri.layers.support.DisplayFilterInfo")],g);const _=e=>{let t=class extends e{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,n._)([(0,s.MZ)(b)],t.prototype,"displayFilterEnabled",void 0),(0,n._)([(0,s.MZ)(T)],t.prototype,"displayFilterInfo",void 0),t=(0,n._)([(0,o.$)("esri.layers.mixins.DisplayFilteredLayer")],t),t},b={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:a.K,writer(e,t,i){(0,r.sM)(i,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},T={type:g,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:a.K},origins:{"web-scene":{write:!1,read:!1}}}}},6518:(e,t,i)=>{i.d(t,{F:()=>a});var n=i(44208),r=i(75503),s=i(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.w(9,(0,n.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach(((i,n)=>{e[t++]=n})),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((e=>this._idByBounds.has(e)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,s.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,i){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,i)}(this._index,e,(e=>t(this._idByBounds.get(e))))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},8460:(e,t,i)=>{i.d(t,{$C:()=>_,Hh:()=>o,J:()=>d,JT:()=>l,Tu:()=>f,Wg:()=>g,Xq:()=>T,i6:()=>w,pM:()=>m,tx:()=>a,vJ:()=>b});var n=i(2741);let r,s=null;function o(){return r||(r=i.e(3666).then(i.bind(i,3666)).then((e=>e.l)).then((({default:e})=>e({locateFile:e=>(0,n.s)(`esri/libs/linkchartlayout/${e}`)}))).then((e=>{!function(e){s=e}(e)})),r)}var a,l,d,p,u;(u=a||(a={}))[u.None=0]="None",u[u.IsMovable=1]="IsMovable",u[u.IsGeographic=2]="IsGeographic",u[u.IsRoot=4]="IsRoot",u[u.IsOld=8]="IsOld",function(e){e[e.Success=0]="Success",e[e.Error=1]="Error",e[e.Canceled=2]="Canceled"}(l||(l={})),function(e){e[e.Regular=0]="Regular",e[e.Curved=1]="Curved",e[e.Recursive=2]="Recursive"}(d||(d={})),function(e){e[e.right=0]="right",e[e.left=1]="left",e[e.top=2]="top",e[e.bottom=3]="bottom"}(p||(p={}));const c={none:0,"start-only":1,"start-and-end":2};function h(e){const t={timeDirection:"right",timeBannerUTCOffsetInMinutes:0,eventsTicksVisualization:"start-and-end",showDurationLineForNonZeroDurationEntityEvents:!0,durationLineWidth:5,entityPositionAtDurationRatio:1,showNonZeroDurationIntervalBounds:!1,separateTimeOverlaps:!0,separateTimelineOverlaps:!0,moveFirstBends:!0,secondBendRatio:.3,lineSeparationMultiplier:1,spaceSeparatedLinesEvenly:!1,useBezierCurves:!1,separatedLineShapeRatio:0,...e?.toJSON()??{},eventsTicksVisualization:e?.eventsTicksVisualization??"start-and-end"};return{...t,timeDirection:{value:p[t.timeDirection]??p.right},eventsTicksVisualization:{value:c[t.eventsTicksVisualization]??c["start-and-end"]}}}function y(e,t,i,n,r,o){const a=i.length,d=r.length,p=Float64Array.BYTES_PER_ELEMENT,u=Uint32Array.BYTES_PER_ELEMENT,c=Uint8Array.BYTES_PER_ELEMENT,h=16+a*(c+2*p)+d*(2*u),y=s._malloc(h);try{const c=y+16-y%16,h=c+a*p,m=h+a*p,f=m+d*u,g=f+d*u,_=()=>[s.HEAPF64.subarray(c>>3,(c>>3)+a),s.HEAPF64.subarray(h>>3,(h>>3)+a),s.HEAPU32.subarray(m>>2,(m>>2)+d),s.HEAPU32.subarray(f>>2,(f>>2)+d),s.HEAPU8.subarray(g,g+a)],[b,T,w,I,M]=_();b.set(i),T.set(n),w.set(r),I.set(o),M.set(t);const v=e(a,g,c,h,d,m,f);let E=null,x=null;if(v.value===l.Success){const e=s.getLayoutLinksTypes(),t=s.getLayoutLinksVerticesEndIndices(),i=s.getLayoutLinksVertices(),n=s.countLayoutLinksVertices();!d||e&&t?n&&!i?v.value=l.Error:(E={types:new Uint8Array(s.HEAPU8.subarray(e,e+d)),vertexEndIndex:new Uint32Array(s.HEAPU32.subarray(t>>2,(t>>2)+d)),vertices:new Float64Array(s.HEAPF64.subarray(i>>3,(i>>3)+2*n))},x=s.getAuxiliaryGraphicElements()):v.value=l.Error}const[A,S,N,L,C]=_();return i.set(A),n.set(S),r.set(N),o.set(L),t.set(C),{status:v.value,links:E,graphics:x}}finally{s._free(y),s.cleanupLayout()}}var m,f,g,_,b,T,w,I,M;!function(e){e.getMinIdealEdgeLength=function(){return s.getMinIdealEdgeLength()},e.apply=function(e,t,i,n,r,o,a=2,l=1,d=-1){return y(((t,i,n,r,o,p,u)=>s.applyForceDirectedLayout(e,t,i,n,r,o,p,u,a,l,d)),t,i,n,r,o)}}(m||(m={})),function(e){e.apply=function(e,t,i,n,r,o,a=2,l=1,d=-1){return y(((t,i,n,r,o,p,u)=>s.applyCommunityLayout(e,t,i,n,r,o,p,u,a,l,d)),t,i,n,r,o)}}(f||(f={})),function(e){e.apply=function(e,t,i,n,r,o){return y(((t,i,n,r,o,a,l)=>s.applySimpleLayout(e,t,i,n,r,o,a,l)),t,i,n,r,o)}}(g||(g={})),function(e){e.apply=function(e,t,i,n,r,o){return y(((t,i,n,r,o,a,l)=>s.applyHierarchicalLayout(e,t,i,n,r,o,a,l)),t,i,n,r,o)}}(_||(_={})),function(e){e.apply=function(e,t,i,n,r,o){return y(((t,i,n,r,o,a,l)=>s.applyRadialTreeLayout(e,t,i,n,r,o,a,l)),t,i,n,r,o)}}(b||(b={})),function(e){e.apply=function(e,t,i,n,r,o){return y(((t,i,n,r,o,a,l)=>s.applySmartTreeLayout(e,t,i,n,r,o,a,l)),t,i,n,r,o)}}(T||(T={})),function(e){e.apply=function(e,t,i,n,r,o,a,d,p,u,c,m){return y(((t,i,n,a,d,y,f)=>{if(r.length!==t)return{value:l.Error};if(o.length!==t)return{value:l.Error};if(p.length!==d)return{value:l.Error};if(u.length!==d)return{value:l.Error};const g=Float64Array.BYTES_PER_ELEMENT,_=16,b=s._malloc(_+t*g),T=s._malloc(_+t*g),w=s._malloc(_+d*g),I=s._malloc(_+d*g),M=b+_-b%_,v=T+_-T%_,E=w+_-w%_,x=I+_-I%_;try{return s.HEAPF64.subarray(M>>3,(M>>3)+t).set(r),s.HEAPF64.subarray(v>>3,(v>>3)+t).set(o),s.HEAPF64.subarray(E>>3,(E>>3)+d).set(p),s.HEAPF64.subarray(x>>3,(x>>3)+d).set(u),s.applyChronologicalLayout(e,t,i,n,a,M,v,d,y,f,E,x,c,h(m))}finally{s._free(b),s._free(T),s._free(w),s._free(I)}}),t,i,n,a,d)}}(w||(w={})),function(e){e[e.Undirected=0]="Undirected",e[e.Directed=1]="Directed",e[e.Reversed=2]="Reversed"}(I||(I={})),function(e){e[e.ByCC_Raw=0]="ByCC_Raw",e[e.ByCC_NormalizeGlobally=1]="ByCC_NormalizeGlobally",e[e.ByCC_NormalizeByCC=2]="ByCC_NormalizeByCC"}(M||(M={}))},15375:(e,t,i)=>{i.d(t,{BL:()=>l,Cz:()=>r,KQ:()=>s,M1:()=>a,T1:()=>o,dr:()=>n});const n="ESRI__ID",r="ESRI__OriginID",s="ESRI__DestID",o="ESRI__LayoutGeometry",a="ESRI__AggregationCount",l="LC.ESRI__IsSpatial"},17036:(e,t,i)=>{i.d(t,{p:()=>l});var n=i(44208),r=i(53966),s=i(20437),o=i(95466),a=i(30524);function l(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,n.A)("big-integer-warning-enabled")){const t=e.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(t.length){const e=t.map((e=>`'${e.name}'`)).join(", ");r.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const i=this.fieldsIndex?.has(t);i||r.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,a.DB)(this.fieldsIndex,e)}}}}},23150:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(90237),r=i(10107),s=(i(44208),i(53966),i(87811),i(40608)),o=i(82799),a=i(54238);let l=class extends a.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,n._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"originId",void 0),(0,n._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"destinationId",void 0),(0,n._)([(0,r.MZ)({type:o.A,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,n._)([(0,s.$)("esri.rest.knowledgeGraph.Relationship")],l)},25927:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(90237),r=i(10107),s=(i(44208),i(53966),i(87811),i(40608)),o=i(86738),a=i(54238);let l=class extends a.A{constructor(e){super(e),this.layoutGeometry=null}};(0,n._)([(0,r.MZ)({type:o.A,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,n._)([(0,s.$)("esri.rest.knowledgeGraph.Entity")],l)},26253:(e,t,i)=>{i.d(t,{T:()=>u});var n=i(90237),r=i(69540),s=i(25482),o=i(88930),a=i(10107),l=(i(44208),i(53966),i(87811),i(93223)),d=i(40608),p=i(73133);let u=class extends(r.A.ClonableMixin(s.A)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,n._)([(0,l.e)(p.j,{nonNullable:!0})],u.prototype,"unit",void 0),(0,n._)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,n._)([(0,d.$)("esri.time.TimeInterval")],u)},30504:(e,t,i)=>{i.d(t,{k5:()=>d,aq:()=>l,Wq:()=>p}),i(52106);var n=i(49186),r=(i(86738),i(39829),i(82799),i(94194),i(69860),i(8460),i(66552));(0,r.O)()({none:"none",startAndEnd:"start-and-end",startOnly:"start-only"}),(0,r.O)()({absoluteValue:"absolute-value",multiplier:"multiplier"});const s=new Map([["basic-grid","basic-grid"],["geographic-organic-standard","geographic-organic-standard"],["hierarchical-bottom-to-top","hierarchical-bottom-to-top"],["hierarchical-top-to-bottom","hierarchical-bottom-to-top"],["organic-community","organic-community"],["organic-fusiform","organic-standard"],["organic-leaf-circle","organic-standard"],["organic-standard","organic-standard"],["radial-node-centric","radial-root-centric"],["radial-root-centric","radial-root-centric"],["tree-bottom-to-top","tree-left-to-right"],["tree-left-to-right","tree-left-to-right"],["tree-right-to-left","tree-left-to-right"],["tree-top-to-bottom","tree-left-to-right"],["chronological-mono-timeline","chronological-mono-timeline"],["chronological-multi-timeline","chronological-multi-timeline"]]);var o=i(8916),a=i(42538);async function l(e,t,i){const n=[],r=function(e,t){const i=new Map;if(t.dataModel?.relationshipTypes)for(const e of t.dataModel.relationshipTypes)e.name&&i.set(e.name,[]);for(const t of e)i.has(t.typeName)&&i.get(t.typeName)?.push(t.id);return i}(e,t),s={},l=[];for(const[e,t]of r){if(t.length<1)continue;const i=`${e}_ids`;s[i]=t,l.push(`MATCH (n)-[r:${e}]->(m) WHERE id(r) in $${i} RETURN id(n), labels(n)[0], id(m), labels(m)[0]`)}if(0===l.length)return[];const d=l.join(" UNION "),p=new a.A({openCypherQuery:d,bindParameters:s}),u=(await(0,o.executeQueryStreaming)(t,p,i?.requestOptions)).resultRowsStream.getReader();for(;;){const{done:e,value:t}=await u.read();if(e)break;for(const e of t)n.push({id:e[0],typeName:e[1]}),n.push({id:e[2],typeName:e[3]})}return n}i(40863),i(94985),i(68249);const d=e=>s.get(e)??"radial-root-centric";function p(e){if(!e.spatialReference.isWGS84)throw new n.A("knowledge-graph:layer-support-utils","The utilsExtentToInBoundsRings function only supports WGS84 spatial references.");return e.clone().normalize().map((e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]))}},37730:(e,t,i)=>{i.d(t,{T:()=>r});var n=i(43334);const r={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t)=>new n.Om(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)}},40662:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(90237),r=(i(53966),i(44208),i(87811),i(49186),i(40608)),s=i(77901);let o=class extends s.A{constructor(e){super(e)}};o=(0,n._)([(0,r.$)("esri.rest.knowledgeGraph.ObjectValue")],o)},42095:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(90237),r=i(25482),s=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(77901);let l=class extends r.A{constructor(e){super(e),this.path=[]}};(0,n._)([(0,s.MZ)({type:[a.A],json:{write:!0}})],l.prototype,"path",void 0),l=(0,n._)([(0,o.$)("esri.rest.knowledgeGraph.Path")],l)},42538:(e,t,i)=>{i.d(t,{A:()=>d});var n=i(90237),r=i(10107),s=(i(44208),i(53966),i(87811),i(40608)),o=i(16930),a=i(69622);let l=class extends a.A{constructor(e){super(e),this.openCypherQuery=""}};(0,n._)([(0,r.MZ)()],l.prototype,"openCypherQuery",void 0),l=(0,n._)([(0,s.$)("esri.rest.knowledgeGraph.GraphQuery")],l);let d=class extends l{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,n._)([(0,r.MZ)()],d.prototype,"bindParameters",void 0),(0,n._)([(0,r.MZ)()],d.prototype,"bindGeometryQuantizationParameters",void 0),(0,n._)([(0,r.MZ)()],d.prototype,"outputQuantizationParameters",void 0),(0,n._)([(0,r.MZ)({type:o.A})],d.prototype,"outputSpatialReference",void 0),(0,n._)([(0,r.MZ)()],d.prototype,"provenanceBehavior",void 0),d=(0,n._)([(0,s.$)("esri.rest.knowledgeGraph.GraphQueryStreaming")],d)},54238:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(90237),r=i(10107),s=(i(44208),i(53966),i(87811),i(40608)),o=i(77901);let a=class extends o.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,n._)([(0,r.MZ)({type:String,json:{write:!0}})],a.prototype,"typeName",void 0),(0,n._)([(0,r.MZ)({type:String,json:{write:!0}})],a.prototype,"id",void 0),a=(0,n._)([(0,s.$)("esri.rest.knowledgeGraph.GraphNamedObject")],a)},64714:(e,t,i)=>{i.d(t,{F0:()=>a,Vx:()=>p,e2:()=>c,f:()=>h});var n=i(44208),r=i(4718),s=i(99352),o=i(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let d=1;function p(e,t){if((0,n.A)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let i=`this${u(t)} = null;`;for(const t in e)i+=`this${u(t)} = ${JSON.stringify(e[t])};`;const n=new Function(`\n return class AttributesClass$${d++} {\n constructor() {\n ${i};\n }\n }\n `)();return()=>new n}catch(i){return()=>({[t]:null,...e})}}function u(e){return l.test(e)?`.${e}`:`["${e}"]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,r.o8)(e)}}]}function h(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:s.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:s.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},67996:(e,t,i)=>{i.d(t,{cZ:()=>R,XW:()=>j,fe:()=>F});var n,r=i(78888),s=i(49186),o=i(91869),a=(i(90708),i(92722)),l=i(16930);class d{constructor(){this.version="",this.queryResult=new p}}class p{constructor(){this.featureResult=new u}}class u{constructor(){this.objectIdFieldName="",this.uniqueIdField=new c,this.globalIdFieldName="",this.geohashFieldName="",this.geometryProperties=new h,this.geometryType=null,this.spatialReference=new l.A,this.exceededTransferLimit=!1,this.hasZ=!1,this.hasM=!1,this.transform=new y,this.fields=[],this.fieldNameToAttributeIndexMap={},this.values=[],this.features=[],this.geometryFields=[]}}class c{constructor(){this.name="",this.isSystemMaintained=!1}}class h{constructor(){this.shapeAreaFieldName="",this.shapeLengthFieldName="",this.units=""}}class y{constructor(){this.quantizeOriginPosition="upperLeft",this.scale=new m,this.translate=new f}}class m{constructor(){this.xScale=0,this.yScale=0,this.mScale=0,this.zScale=0}}class f{constructor(){this.xTranslate=0,this.yTranslate=0,this.mTranslate=0,this.zTranslate=0}}class g{constructor(){this.name="",this.fieldType="esriFieldTypeString",this.alias="",this.sqlType="sqlTypeVarchar",this.domain="",this.defaultValue=""}}class _{constructor(){this.attributes=[],this.compressedGeometry=new b,this.centroid=new b,this.aggregateGeometries=[]}}class b{constructor(){this.geometryType=null,this.lengths=[],this.coords=[]}}!function(e){e.ELEMENTUID="ELEMENTUID",e.TYPENAME="TYPENAME"}(n||(n={}));const T=[n.ELEMENTUID,n.TYPENAME];var w,I;!function(e){e[e.ELEMENTUID=0]="ELEMENTUID",e[e.TYPENAME=1]="TYPENAME"}(w||(w={})),function(e){e[e.ELEMENTUID=0]="ELEMENTUID",e[e.TYPENAME=1]="TYPENAME",e[e.FROMUID=2]="FROMUID",e[e.TOUID=3]="TOUID"}(I||(I={}));var M,v,E,x,A=i(45724),S=i(35448);function N(e){const t=new b;t.geometryType=S.bV[e.geometry_type.value];const i=[],n=[];for(let t=0;t<e.lengths.length;t++)i.push(e.lengths[t]);for(let t=0;t<e.coords.length;t++)n.push(e.coords[t]);return t.lengths=i,t.coords=n,t}function L(e){const t=new g;return t.name=e.name,t.alias=e.alias,t.fieldType=S.r5[e.field_type.value],t.sqlType=E[e.sql_type.value],t.domain=e.domain,t.defaultValue=e.default_value,t}function C(e){const t=L(e);return t.geometryType=S.bV[e.geometry_type.value],t}function D(e){const t=new y;t.quantizeOriginPosition=v[e.quantizeOriginPosition.value];const i=t.scale,n=e.scale;i.xScale=n.xScale,i.yScale=n.yScale,i.mScale=n.mScale,i.zScale=n.zScale;const r=t.translate,s=e.translate;return r.xTranslate=s.xTranslate,r.yTranslate=s.yTranslate,r.mTranslate=s.mTranslate,r.zTranslate=s.zTranslate,t}async function R(e,t){t??=!1;const i={generateAllSublayers:t,namedTypeDefinitions:new Map};return await async function(e){const t=await(0,r.A)(e,{responseType:"array-buffer"}),i=await t.data;return async function(e){const t=new((await(0,A.I)()).MapOfObjectIdentifierSetsDecoder),i=t.decode(new Uint8Array(e)),n=new Map;if(0!==i.error_code)throw new s.A("knowledge-graph:layer-support-utils",i.error_message);const r=t.get_map_of_identifier_sets(),o=r.keys,a=o.size();for(let e=0;e<a;e++){const t=o.get(e),i=r.query_identifier_set(t),a=[];if(i.id_array_type.value===x.GLOBALID_ARRAY){const e=i.get_globalid_array(),t=e.count();for(let i=0;i<t;i++)a.push(e.get_globalid_at(i))}else if(i.id_array_type.value===x.IDENTIFIER_ARRAY){const e=i.get_identifier_array(),t=e.count();for(let i=0;i<t;i++)a.push(e.get_identifier_at(i).toString())}else if(i.id_array_type.value===x.STRING_ARRAY){const e=i.get_string_array(),t=e.count();for(let i=0;i<t;i++)a.push(e.get_string_at(i))}else{if(i.id_array_type.value!==x.OID_ARRAY)throw new s.A("knowledge-graph:layer-support-utils","Tried to encode an unexpected ID Array type.");{const e=i.get_oid_array(),t=e.count();for(let i=0;i<t;i++)a.push(e.get_objectid_at(i).toString())}}n.set(t,a)}return t.delete(),n}(new Uint8Array(i))}(e).then((e=>{!function(e,t){for(const[i,n]of e){const e=(0,o.tE)(t.namedTypeDefinitions,i,(()=>({useAllData:!1,members:new Map})));for(const t of n)e.members.has(t)||e.members.set(t,{id:t})}}(e,i)})),i}async function F(e){const t=await(0,A.I)(),i=new t.MapOfObjectIdentifierSets;!function(e,t,i){for(const[n,r]of i.namedTypeDefinitions){if(!r.members||r.useAllData)continue;const i=r.members.keys();let s=!1,o=!0;const a=new t.ObjectIdArray,l=new t.StringArray,d=new t.GlobalIdArray,p=new t.IdentifierArray,u=new t.ObjectIdentifierSet;for(const e of i)o&&(s=!isNaN(Number(e)),o=!1),s?a.add_objectid(Number(e)):(l.add_string(e),d.add_globalid(e)),p.add_identifier(e);u.set_oid_array(a),u.set_string_array(l),u.set_globalid_array(d),u.set_identifier_array(p),a.delete(),l.delete(),d.delete(),p.delete(),e.put_identifier_set(n,u),u.delete()}}(i,t,e);const n=new t.MapOfObjectIdentifierSetsEncoder;try{n.set_map_of_identifier_sets(i),n.encode();const e=n.get_encoding_result();if(0!==e.error.error_code)throw new s.A("knowledge-graph:layer-support-utils",e.error.error_message);const t=structuredClone(e.get_byte_buffer());return n.delete(),t}finally{i.delete()}}async function k(e){const t=await(0,r.A)(e,{responseType:"array-buffer"});return async function(e){const t=new((await(0,A.I)()).FeatureCollectionDecoder),i=t.decode(new Uint8Array(e));if(0!==i.error_code)throw new s.A("knowledge-graph:layer-support-utils",i.error_message);const n=function(e){const t=new d;t.version=e.version;const i=e.get_query_result();if(0!==i.results_type.value)throw new Error("Got a non-feature collection type");const n=i.get_feature_result(),r=t.queryResult.featureResult;r.objectIdFieldName=n.objectid_field_name,r.exceededTransferLimit=n.exceeded_transfer_limit,r.hasM=n.has_m,r.hasZ=n.has_z,r.geometryType=S.bV[n.geometry_type.value],r.globalIdFieldName=n.globalid_field_name,r.geohashFieldName=n.geohash_field_name;const s=r.uniqueIdField,o=n.unique_id_field;s.name=o.name,s.isSystemMaintained=o.isSystemMaintained;const a=r.geometryProperties,l=n.geometry_properties;a.shapeAreaFieldName=l.shapeAreaFieldName,a.shapeLengthFieldName=l.shapeLengthFieldName,a.units=l.units;const p=r.spatialReference,u=n.spatial_reference;p.wkid=u.wkid,p.latestWkid=u.latestWkid,p.vcsWkid=u.vcsWkid,p.latestVcsWkid=u.latestVcsWkid,p.wkt=u.wkt,r.transform=D(n.transform);const c=r.fields,h=r.fieldNameToAttributeIndexMap,y=n.fields,m=y.size();for(let e=0;e<m;e++){const t=y.get(e),i=L(t);c.push(i),h[i.name]=e,t.delete()}y.delete();const f=r.values,g=n.values_count();for(let e=0;e<g;e++)f.push(n.get_value_at(e));const b=r.features,w=n.features,I=w.size();if(I>0)for(const e of T)if(void 0===h[e])throw new Error(`Feature collection missing required attribute: ${e}`);for(let e=0;e<I;e++){const t=new _,i=w.get(e),n=t.attributes,r=i.attributes_count();for(let e=0;e<r;e++)n.push(i.get_attribute_at(e));const s=i.get_compressed_geometry();s&&(t.compressedGeometry=N(s),t.centroid=N(i.get_centroid()));const o=t.aggregateGeometries,a=i.aggregate_geometries,l=a.size();for(let e=0;e<l;e++){const t=a.get(e),i=N(t);o.push(i),t.delete()}a.delete(),b.push(t),i.delete()}w.delete();const M=r.geometryFields,v=n.geometry_fields,E=v.size();for(let e=0;e<E;e++){const t=v.get(e),i=C(t);M.push(i),t.delete()}return v.delete(),t}(t.get_feature_collection());return t.delete(),n}(await t.data)}function B(e,t){if(!e?.queryResult?.featureResult)return t;const i=e.queryResult.featureResult.fieldNameToAttributeIndexMap;for(const r of e.queryResult.featureResult.features){const e=r.attributes[i[n.TYPENAME]],s=(0,o.tE)(t.namedTypeDefinitions,e,(()=>({useAllData:!1,members:new Map}))),l=r.attributes[i[n.ELEMENTUID]];if(r.compressedGeometry?.coords?.length>0){let e=r.compressedGeometry.lengths;"esriGeometryPoint"===r.compressedGeometry.geometryType&&(e=[]),s.members.set(l,{id:l,linkChartLocation:new a.A(e,r.compressedGeometry.coords)})}else s.members.set(l,{id:l})}return t}!function(e){e[e.featureResult=0]="featureResult",e[e.countResult=1]="countResult",e[e.idsResult=2]="idsResult"}(M||(M={})),function(e){e[e.upperLeft=0]="upperLeft",e[e.lowerLeft=1]="lowerLeft"}(v||(v={})),function(e){e[e.sqlTypeBigInt=0]="sqlTypeBigInt",e[e.sqlTypeBinary=1]="sqlTypeBinary",e[e.sqlTypeBit=2]="sqlTypeBit",e[e.sqlTypeChar=3]="sqlTypeChar",e[e.sqlTypeDate=4]="sqlTypeDate",e[e.sqlTypeDecimal=5]="sqlTypeDecimal",e[e.sqlTypeDouble=6]="sqlTypeDouble",e[e.sqlTypeFloat=7]="sqlTypeFloat",e[e.sqlTypeGeometry=8]="sqlTypeGeometry",e[e.sqlTypeGUID=9]="sqlTypeGUID",e[e.sqlTypeInteger=10]="sqlTypeInteger",e[e.sqlTypeLongNVarchar=11]="sqlTypeLongNVarchar",e[e.sqlTypeLongVarbinary=12]="sqlTypeLongVarbinary",e[e.sqlTypeLongVarchar=13]="sqlTypeLongVarchar",e[e.sqlTypeNChar=14]="sqlTypeNChar",e[e.sqlTypeNVarChar=15]="sqlTypeNVarChar",e[e.sqlTypeOther=16]="sqlTypeOther",e[e.sqlTypeReal=17]="sqlTypeReal",e[e.sqlTypeSmallInt=18]="sqlTypeSmallInt",e[e.sqlTypeSqlXml=19]="sqlTypeSqlXml",e[e.sqlTypeTime=20]="sqlTypeTime",e[e.sqlTypeTimestamp=21]="sqlTypeTimestamp",e[e.sqlTypeTimestamp2=22]="sqlTypeTimestamp2",e[e.sqlTypeTinyInt=23]="sqlTypeTinyInt",e[e.sqlTypeVarbinary=24]="sqlTypeVarbinary",e[e.sqlTypeVarchar=25]="sqlTypeVarchar"}(E||(E={})),function(e){e[e.OID_ARRAY=0]="OID_ARRAY",e[e.GLOBALID_ARRAY=1]="GLOBALID_ARRAY",e[e.STRING_ARRAY=2]="STRING_ARRAY",e[e.IDENTIFIER_ARRAY=3]="IDENTIFIER_ARRAY"}(x||(x={}));const j={fetchAndConvertSerializedLinkChart:e=>async function(e){const t=[],i={generateAllSublayers:!1,namedTypeDefinitions:new Map};return e.entitiesUrl&&t.push(k(e.entitiesUrl).then((e=>{B(e,i)}))),e.relationshipsUrl&&t.push(k(e.relationshipsUrl).then((e=>{B(e,i)}))),await Promise.all(t),i}(e)}},69860:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(65864),r=i(90708),s=i(43334),o=i(15375);class a{constructor(){this._featureLookup=new Map}static getInstance(){return a.instance||(a.instance=new a),a.instance}static resetInstance(){a.instance&&(a.instance=null)}deleteFromStore(e){e.forEach((e=>{this._featureLookup.delete(e)}))}readFromStoreByList(e){const t=[];return e.forEach((e=>{const i=this.readFromStoreById(e);i&&t.push(i)})),t}readFromStoreById(e){return this._featureLookup.get(e)??null}writeToStore(e,t,i){const a=[];return e.forEach((e=>{if(!e?.id)return;e.properties||(e.properties=[]);let l,d=null;if(i&&e.properties[i]&&(d=(0,r.Ux)(e.properties[i])),"originId"in e&&"destinationId"in e&&(e.properties[o.Cz]=e.originId,e.properties[o.KQ]=e.destinationId),e.properties[t]=e.id,e.id&&this._featureLookup.has(e.id)&&this._featureLookup.get(e.id).attributes){const r=this._featureLookup.get(e.id),o=JSON.parse(JSON.stringify(Object.assign(r.attributes,e.properties)));i&&e.properties[i]&&(o[i]=(0,n.rS)(e.properties[i])),l=new s.Om(d?JSON.parse(JSON.stringify(d)):r?.geometry?JSON.parse(JSON.stringify(r.geometry)):null,o,null,e.properties[t])}else l=new s.Om(d?JSON.parse(JSON.stringify(d)):null,e.properties,null,e.properties[t]);this._featureLookup.set(`${e.typeName?`${e.typeName}__${e.id}`:e.id}`,l),a.push(l)})),a}}},70643:(e,t,i)=>{i.d(t,{A:()=>ie});var n=i(90237),r=i(13874),s=i(4718),o=i(53966),a=i(92071),l=(i(29953),i(10107)),d=(i(44208),i(40608)),p=i(43937),u=i(35666),c=i(5443),h=i(86738),y=i(39829),m=i(82799),f=i(98988),g=i(16930),_=i(21325),b=i(50498),T=i(4146),w=i(83221),I=i(68298),M=i(64714),v=i(15375);i(87811);const E=(0,i(17036).p)(),x=e=>{let t=class extends e{constructor(){super(...arguments),this.fields=[],this.fieldsIndex=null}};return(0,n._)([(0,l.MZ)(E.fields)],t.prototype,"fields",void 0),(0,n._)([(0,l.MZ)(E.fieldsIndex)],t.prototype,"fieldsIndex",void 0),t=(0,n._)([(0,d.$)("esri.layers.knowledgeGraph.KnowledgeGraphSublayerBase")],t),t};var A=i(85342),S=i(63074),N=i(6455),L=i(87718),C=i(76294),D=i(32756),R=i(54310),F=i(25036),k=i(82935),B=i(10873),j=i(13213),O=i(20437),Z=i(30524),$=i(46499),q=i(39383),G=i(96184),P=i(96576),U=i(65494),Y=i(41214),z=i(22671),Q=i(61956),X=i(30291),H=i(37531),V=i(61322);function J(e){if(!e.json)return e;e.json.write=W(e.json.write);const t=e.json.origins;if(!t)return e;let i;for(i in t){const e=t[i];e&&(e.write=W(e.write))}return e}function W(e){return"object"==typeof e&&e?(!1!==e.enabled&&(e.overridePolicy=function(e){const{target:t,writer:i,overridePolicy:n,...r}=e;return function(e,t){const i=ee.call(this,e,t);return i.enabled?{...r,...i}:i}}(e)),e):!0===e?K():e}function K(){return{overridePolicy:ee}}function ee(e,t){const i=!!this.geometryType;let n={enabled:i};return i&&(n={...n,...te.call(this,e,t)}),n}function te(e,t){return{ignoreOrigin:this.originIdOf(t)>u.Gr.DEFAULTS}}let ie=class extends(x((0,N.FJ)((0,C.J)((0,L.F)((0,S.dM)((0,D.fY)((0,k.e)((0,F.j)((0,R.J)((0,a.P)(T.A))))))))))){constructor(e){super(e),this.blendMode="normal",this.capabilities=(0,M.f)(!1,!1),this.charts=null,this.definitionExpression=null,this.displayField="",this.displayFilterEnabled=!0,this.displayFilterInfo=null,this.effect=null,this.elevationInfo=null,this.featureEffect=null,this.graphType=null,this.labelsVisible=!0,this.layerType=null,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.objectIdField=v.dr,this.objectType=null,this.opacity=1,this.orderBy=null,this.parent=null,this.parentCompositeLayer=null,this.persistenceEnabled=!0,this.popupEnabled=!0,this.popupTemplate=null,this.refreshInterval=0,this.source={openPorts:()=>this.load().then((()=>{const e=new MessageChannel;return new V.default(e.port1,{channel:e,client:{queryFeatures:(e,t={})=>{const i=Q.A.fromJSON(e);return this.queryFeaturesJSON(i,t)}}}),[e.port2]}))},this.type="knowledge-graph-sublayer",this.useViewTime=!0,this.visible=!0}get defaultPopupTemplate(){return this.createPopupTemplate()}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}get fields(){const e=[];return this.objectType?.properties?.forEach((t=>{const i="esriFieldTypeOID"===t.fieldType?"esriFieldTypeInteger":t.fieldType;e.push(O.A.fromJSON({name:t.name,type:i,alias:t.alias,defaultValue:t.defaultValue,editable:t.editable,nullable:t.nullable}))})),e.push(O.A.fromJSON({name:this.objectIdField,type:"esriFieldTypeString",alias:this.objectIdField,editable:!1}),O.A.fromJSON({name:v.M1,type:"esriFieldTypeInteger",alias:v.M1,editable:!1}),O.A.fromJSON({name:v.BL,type:"esriFieldTypeInteger",alias:v.BL,editable:!1})),e}get geometryType(){if("link-chart"===this.parentCompositeLayer?.type)return"relationship"===this.graphType?"polyline":"point";const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.geometryType;return t&&"esriGeometryNull"!==t?b.gy.fromJSON(t):null}get geometryFieldName(){if("link-chart"===this.parentCompositeLayer?.type)return v.T1;const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name);return e?.name??null}get graphTypeName(){return this.objectType?.name}get hasM(){const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.name,i=t?this.objectType?.properties?.[t]:null;return i?.hasM??!1}get hasZ(){const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.name,i=t?this.objectType?.properties?.[t]:null;return i?.hasZ??!1}set labelingInfo(e){this._set("labelingInfo",e)}get labelingInfo(){if(this._isOverridden("labelingInfo"))return this._get("labelingInfo");if(!this.objectType||!this.parentCompositeLayer||!this.graphTypeName)return null;const e=this.objectType.properties?(0,A.MY)(this.objectType.properties):"ESRI__ID";return"link-chart"===this.parentCompositeLayer.type?(0,A.iW)(this.graphType,this.graphTypeName,e):(0,A.e$)(this.graphTypeName,this.geometryType,e)}set renderer(e){(0,Z.yp)(e,this.fieldsIndex),this._set("renderer",e)}get renderer(){if(this._isOverridden("renderer"))return this._get("renderer");const e=this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel,t=[...e?.entityTypes??[],...e?.relationshipTypes??[]].map((e=>e.name)).indexOf(this.graphTypeName),i=(0,A.Td)(t);if("link-chart"===this.parentCompositeLayer?.type){if("relationship"===this.graphType)return new P.A({type:"simple",symbol:(0,A.UT)(i)});const e=(0,U.r)((0,M.F0)(b.gy.toJSON("point")).renderer);return(0,H.dt)(e.symbol,i),e}const n=(0,U.r)((0,M.F0)(b.gy.toJSON(this.geometryType)).renderer);return(0,H.dt)(n.symbol,i),n}get spatialReference(){return this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel?.spatialReference??g.A.WGS84}set timeInfo(e){this._set("timeInfo",e)}get title(){return this._isOverridden("title")?this._get("title"):this.graphTypeName}set title(e){this._set("title",e)}writeTitle(e,t){t.title=e??"Layer"}createPopupTemplate(e){return(0,X.tn)(this,e)}createQuery(){return new Q.A({where:"1=1",outFields:["*"]})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){return null}async queryFeatures(e,t){await this.load();const{resolvedQuery:i,queryEngine:n}=await this._setupQueryObjects(e),r=z.A.fromJSON(await n.executeQuery(i.toJSON(),t?.signal));return r.features.forEach((e=>{e.sourceLayer=this})),r}async queryFeaturesJSON(e,t){await this.load();const{resolvedQuery:i,queryEngine:n}=await this._setupQueryObjects(e);return await n.executeQuery(i.toJSON(),t?.signal)}async queryFeatureCount(e,t){await this.load();const{resolvedQuery:i,queryEngine:n}=await this._setupQueryObjects(e);return n.executeQueryForCount(i.toJSON(),t?.signal)}async queryExtent(e={},t){await this.load();const i={...e,returnGeometry:!0},{resolvedQuery:n,queryEngine:r}=await this._setupQueryObjects(i),s=await r.executeQueryForExtent(n.toJSON(),t?.signal);let o;return o=null!=s.extent?.xmin&&null!=s.extent?.xmax&&null!=s.extent?.ymin&&null!=s.extent?.ymax?new c.A(s.extent):new c.A,{count:s.count,extent:o}}async queryObjectIds(e,t){await this.load();const i=Q.A.from(e);let n;if("link-chart"===this.parentCompositeLayer.type&&this._cachedQueryEngine)n=this._cachedQueryEngine;else{const e=await this.parentCompositeLayer.dataManager.getData(i,this,t);n=this.loadQueryEngine(e)}return await n.executeQueryForIds(i.toJSON(),t?.signal)}loadQueryEngine(e){const t=new w.A({geometryType:b.gy.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ}),i=new I.do({fieldsIndex:this.fieldsIndex.toJSON(),geometryType:b.gy.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ,featureIdInfo:{type:"object-id",fieldName:this.objectIdField},spatialReference:this.spatialReference.toJSON(),timeInfo:this.timeInfo?.toJSON(),featureStore:t});return i.featureStore.addMany(e),i}async refreshCachedQueryEngine(){const e=await this.parentCompositeLayer.dataManager.getData(new Q.A({where:"1=1",outFields:[v.dr]}),this);this._cachedQueryEngine=this.loadQueryEngine(e)}load(e){return this.addResolvingPromise(this.parent.load(e).then((()=>(0,Z.sv)(this.timeInfo,this.fieldsIndex)))),Promise.resolve(this)}async _setupQueryObjects(e,t){const i=Q.A.from(e),n=i.geometry;if(n&&!n.spatialReference?.isWGS84&&(await(0,f.initializeProjection)(n.spatialReference,_.KK),i.geometry=(0,f.project)(n instanceof y.A||n instanceof m.A||n instanceof h.A?n:n.extent,_.KK)),"link-chart"===this.parentCompositeLayer.type&&this._cachedQueryEngine)return{resolvedQuery:i,queryEngine:this._cachedQueryEngine};const r=await this.parentCompositeLayer.dataManager.getData(i,this,t);return{resolvedQuery:i,queryEngine:this.loadQueryEngine(r)}}};(0,n._)([(0,l.MZ)(J((0,s.o8)(S.sU)))],ie.prototype,"blendMode",void 0),(0,n._)([(0,l.MZ)()],ie.prototype,"capabilities",void 0),(0,n._)([(0,l.MZ)({json:{origins:{"web-scene":{write:!1}},write:K()}})],ie.prototype,"charts",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],ie.prototype,"defaultPopupTemplate",null),(0,n._)([(0,l.MZ)({type:String,json:{origins:{service:{read:!1}},name:"layerDefinition.definitionExpression",write:{ignoreOrigin:!0}}})],ie.prototype,"definitionExpression",void 0),(0,n._)([(0,l.MZ)()],ie.prototype,"displayField",void 0),(0,n._)([(0,l.MZ)(J((0,s.o8)(N.Dp)))],ie.prototype,"displayFilterEnabled",void 0),(0,n._)([(0,l.MZ)(J((0,s.o8)(N.KV)))],ie.prototype,"displayFilterInfo",void 0),(0,n._)([(0,l.MZ)(J((0,s.o8)(S.LF)))],ie.prototype,"effect",void 0),(0,n._)([(0,l.MZ)()],ie.prototype,"elevationInfo",void 0),(0,n._)([(0,l.MZ)(J((0,s.o8)(L.Y)))],ie.prototype,"featureEffect",void 0),(0,n._)([(0,l.MZ)(J((0,s.o8)(j.d)))],ie.prototype,"featureReduction",null),(0,n._)([(0,l.MZ)()],ie.prototype,"fields",null),(0,n._)([(0,l.MZ)()],ie.prototype,"geometryType",null),(0,n._)([(0,l.MZ)()],ie.prototype,"geometryFieldName",null),(0,n._)([(0,l.MZ)({type:["entity","relationship"],nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],ie.prototype,"graphType",void 0),(0,n._)([(0,l.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],ie.prototype,"graphTypeName",null),(0,n._)([(0,l.MZ)()],ie.prototype,"hasM",null),(0,n._)([(0,l.MZ)()],ie.prototype,"hasZ",null),(0,n._)([(0,l.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0}}})],ie.prototype,"id",void 0),(0,n._)([(0,l.MZ)({type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",default:!1,write:{overridePolicy(){return{enabled:!!this.geometryType,alwaysWriteDefaults:!0,ignoreOrigin:!0}}}}})],ie.prototype,"labelsVisible",void 0),(0,n._)([(0,l.MZ)({type:[$.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:function(e,t,i){const n=[["ESRI__AGGREGATION_COUNT",v.M1],["ESRI__ORIGIN_ID",v.Cz],["ESRI__DESTINATION_ID",v.KQ],["ESRI__LAYOUT_GEOMETRY",v.T1]];try{for(const t of e)for(const[e,i]of n)t.labelExpression=t.labelExpression?.replaceAll(e,i),t.labelExpressionInfo?.expression&&(t.labelExpressionInfo.expression=t.labelExpressionInfo.expression.replaceAll(e,i))}catch(e){o.A.getLogger(this).warn("Error updating labelingInfo",e)}return(0,q.w)(e,t,i)},write:K()}})],ie.prototype,"labelingInfo",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1,write:{writer(e,t){switch(this.parentCompositeLayer?.type){case"link-chart":t.layerType="LinkChartSubLayer";break;case"knowledge-graph":t.layerType=this.geometryType?"KnowledgeGraphSubLayer":"KnowledgeGraphSubTable"}},isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],ie.prototype,"layerType",void 0),(0,n._)([(0,l.MZ)(J((0,s.o8)(B.fV)))],ie.prototype,"legendEnabled",void 0),(0,n._)([(0,l.MZ)(J((0,s.o8)(B.hG)))],ie.prototype,"maxScale",void 0),(0,n._)([(0,l.MZ)(J((0,s.o8)(B.hn)))],ie.prototype,"minScale",void 0),(0,n._)([(0,l.MZ)()],ie.prototype,"objectIdField",void 0),(0,n._)([(0,l.MZ)()],ie.prototype,"objectType",void 0),(0,n._)([(0,l.MZ)(J((0,s.o8)(B.ke)))],ie.prototype,"opacity",void 0),(0,n._)([(0,l.MZ)(J((0,s.o8)(D.ne)))],ie.prototype,"orderBy",void 0),(0,n._)([(0,l.MZ)({clonable:!1})],ie.prototype,"parent",void 0),(0,n._)([(0,l.MZ)()],ie.prototype,"parentCompositeLayer",void 0),(0,n._)([(0,l.MZ)(J((0,s.o8)(B.M6)))],ie.prototype,"popupEnabled",void 0),(0,n._)([(0,l.MZ)({type:r.A,json:{name:"popupInfo",write:{ignoreOrigin:!0}}})],ie.prototype,"popupTemplate",void 0),(0,n._)([(0,l.MZ)({type:Number,json:{write:{overridePolicy:te}}})],ie.prototype,"refreshInterval",void 0),(0,n._)([(0,l.MZ)({types:Y.Hg,json:{name:"layerDefinition.drawingInfo.renderer",write:K()}})],ie.prototype,"renderer",null),(0,n._)([(0,l.MZ)()],ie.prototype,"source",void 0),(0,n._)([(0,l.MZ)()],ie.prototype,"spatialReference",null),(0,n._)([(0,l.MZ)({type:G.A,json:{name:"layerDefinition.timeInfo",write:!0,origins:{"web-document":{name:"layerDefinition.timeInfo",read:!0,write:!0},"portal-item":{name:"layerDefinition.timeInfo",read:!0,write:!0}}}})],ie.prototype,"timeInfo",null),(0,n._)([(0,l.MZ)({type:String,json:{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],ie.prototype,"title",null),(0,n._)([(0,p.K)("title")],ie.prototype,"writeTitle",null),(0,n._)([(0,l.MZ)({json:{read:!1}})],ie.prototype,"type",void 0),(0,n._)([(0,l.MZ)(J((0,s.o8)(k.B)))],ie.prototype,"useViewTime",void 0),(0,n._)([(0,l.MZ)({type:Boolean,json:{name:"visibility",write:K()}})],ie.prototype,"visible",void 0),ie=(0,n._)([(0,d.$)("esri.layers.knowledgeGraph.KnowledgeGraphSublayer")],ie)},73133:(e,t,i)=>{i.d(t,{j:()=>n});const n=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},75503:(e,t,i)=>{i.d(t,{E:()=>E,w:()=>a});var n=i(4576),r=i(21818),s=(i(44208),i(3694)),o=i(11006);class a{constructor(e=9,t){this._compareMinX=c,this._compareMinY=h,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),w.prune(),I.prune(),M.prune(),v.prune()}all(e){l(this._data,e)}search(e,t){let i=this._data;const n=this._toBBox;if(b(e,i))for(w.clear();i;){for(let r=0,s=i.children.length;r<s;r++){const s=i.children[r],o=i.leaf?n(s):s;b(e,o)&&(i.leaf?t(s):_(e,o)?l(s,t):w.push(s))}i=w.pop()}}collides(e){let t=this._data;const i=this._toBBox;if(!b(e,t))return!1;for(w.clear();t;){for(let n=0,r=t.children.length;n<r;n++){const r=t.children[n],s=t.leaf?i(r):r;if(b(e,s)){if(t.leaf||_(e,s))return!0;w.push(r)}}t=w.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,i=e.length;t<i;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new A([]),this}remove(e){if(!e)return this;let t,i=this._data,s=null,o=0,a=!1;const l=this._toBBox(e);for(M.clear(),v.clear();i||M.length>0;){if(i||(i=M.pop(),s=M.data[M.length-1],o=v.pop()??0,a=!0),i.leaf&&(t=(0,n.qh)(i.children,(0,r.zI)(e),i.children.length,i.indexHint),-1!==t))return i.children.splice(t,1),M.push(i),this._condense(M),this;a||i.leaf||!_(i,l)?s?(o++,i=s.children[o],a=!1):i=null:(M.push(i),v.push(o),o=0,s=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,i,n){const r=i-t+1;let s=this._maxEntries;if(r<=s){const n=new A(e.slice(t,i+1));return d(n,this._toBBox),n}n||(n=Math.ceil(Math.log(r)/Math.log(s)),s=Math.ceil(r/s**(n-1)));const o=new S([]);o.height=n;const a=Math.ceil(r/s),l=a*Math.ceil(Math.sqrt(s));T(e,t,i,l,this._compareMinX);for(let r=t;r<=i;r+=l){const t=Math.min(r+l-1,i);T(e,r,t,a,this._compareMinY);for(let i=r;i<=t;i+=a){const r=Math.min(i+a-1,t);o.children.push(this._build(e,i,r,n-1))}}return d(o,this._toBBox),o}_insert(e,t,i){const n=this._toBBox,r=i?e:n(e);M.clear();const s=function(e,t,i,n){for(;n.push(t),!0!==t.leaf&&n.length-1!==i;){let i,n=1/0,r=1/0;for(let s=0,o=t.children.length;s<o;s++){const o=t.children[s],a=y(o),l=f(e,o)-a;l<r?(r=l,n=a<n?a:n,i=o):l===r&&a<n&&(n=a,i=o)}t=i||t.children[0]}return t}(r,this._data,t,M);for(s.children.push(e),u(s,r);t>=0&&M.data[t].children.length>this._maxEntries;)this._split(M,t),t--;!function(e,t,i){for(let n=i;n>=0;n--)u(t.data[n],e)}(r,M,t)}_split(e,t){const i=e.data[t],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);const s=this._chooseSplitIndex(i,r,n);if(!s)return;const o=i.children.splice(s,i.children.length-s),a=i.leaf?new A(o):new S(o);a.height=i.height,d(i,this._toBBox),d(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,t){this._data=new S([e,t]),this._data.height=e.height+1,d(this._data,this._toBBox)}_chooseSplitIndex(e,t,i){let n,r,s;n=r=1/0;for(let o=t;o<=i-t;o++){const t=p(e,0,o,this._toBBox),a=p(e,o,i,this._toBBox),l=g(t,a),d=y(t)+y(a);l<n?(n=l,s=o,r=d<r?d:r):l===n&&d<r&&(r=d,s=o)}return s}_chooseSplitAxis(e,t,i){const n=e.leaf?this._compareMinX:c,r=e.leaf?this._compareMinY:h;this._allDistMargin(e,t,i,n)<this._allDistMargin(e,t,i,r)&&e.children.sort(n)}_allDistMargin(e,t,i,n){e.children.sort(n);const r=this._toBBox,s=p(e,0,t,r),o=p(e,i-t,i,r);let a=m(s)+m(o);for(let n=t;n<i-t;n++){const t=e.children[n];u(s,e.leaf?r(t):t),a+=m(s)}for(let n=i-t-1;n>=t;n--){const t=e.children[n];u(o,e.leaf?r(t):t),a+=m(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const i=e.data[t];if(0===i.children.length)if(t>0){const r=e.data[t-1],s=r.children;s.splice((0,n.qh)(s,i,s.length,r.indexHint),1)}else this.clear();else d(i,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let i=e;for(I.clear();i;){if(!0===i.leaf)for(const e of i.children)t((0,r.zI)(e));else I.pushArray(i.children);i=I.pop()??null}}function d(e,t){p(e,0,e.children.length,t,e)}function p(e,t,i,n,r){r||(r=new A([])),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let s,o=t;o<i;o++)s=e.children[o],u(r,e.leaf?n(s):s);return r}function u(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function c(e,t){return e.minX-t.minX}function h(e,t){return e.minY-t.minY}function y(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function m(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const i=Math.max(e.minX,t.minX),n=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,r-i)*Math.max(0,s-n)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function b(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function T(e,t,i,n,r){const s=[t,i];for(;s.length;){const t=s.pop(),i=s.pop();if(t-i<=n)continue;const a=i+Math.ceil((t-i)/n/2)*n;(0,o.q)(e,a,i,t,r),s.push(i,a,a,t)}}const w=new s.A,I=new s.A,M=new s.A,v=new s.A({deallocator:void 0});class E{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class x extends E{constructor(){super(...arguments),this.height=1,this.indexHint=new n.vW}}class A extends x{constructor(e){super(),this.children=e,this.leaf=!0}}class S extends x{constructor(e){super(),this.children=e,this.leaf=!1}}},77901:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(90237),r=i(25482),s=i(10107),o=(i(44208),i(53966),i(87811),i(40608));let a=class extends r.A{constructor(e){super(e),this.properties=null}};(0,n._)([(0,s.MZ)({json:{write:!0}})],a.prototype,"properties",void 0),a=(0,n._)([(0,o.$)("esri.rest.knowledgeGraph.GraphObject")],a)},80340:(e,t,i)=>{i.d(t,{P:()=>I});var n=i(90237),r=i(69622),s=i(49186),o=i(53966),a=i(91869),l=i(74887),d=i(39516),p=i(10107),u=(i(44208),i(87811),i(40608)),c=i(5443),h=i(39829),y=i(98988),m=i(21325),f=i(15375),g=i(69860),_=i(30504),b=i(8916),T=i(42538),w=i(61956);let I=class extends r.A{constructor(e){super(e),this._processingCacheUpdatesLookup=new Map,this.knowledgeGraph=null,this.inclusionModeDefinition={generateAllSublayers:!0,namedTypeDefinitions:new Map},this.entityTypeNames=new Set,this.relationshipTypeNames=new Set,this.geographicLookup=new Map,this.sublayerCaches=new Map,this.nodeConnectionsLookup=new Map,this.relationshipConnectionsLookup=new Map,this.memberIdTypeLookup=new Map;const t=new Map;e.knowledgeGraph.dataModel.entityTypes?.forEach((i=>{i.name&&(t.set(i.name,"entity"),this._processingCacheUpdatesLookup.set(i.name,[]),e.inclusionModeDefinition&&!e.inclusionModeDefinition?.generateAllSublayers||this.entityTypeNames.add(i.name),i.properties?.forEach((e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(i.name,{name:e.name??"",geometryType:e.geometryType})})))})),e.knowledgeGraph.dataModel.relationshipTypes?.forEach((i=>{i.name&&(t.set(i.name,"relationship"),this._processingCacheUpdatesLookup.set(i.name,[]),e.inclusionModeDefinition&&!e.inclusionModeDefinition?.generateAllSublayers||this.relationshipTypeNames.add(i.name),i.properties?.forEach((e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(i.name,{name:e.name??"",geometryType:e.geometryType})})))})),e.inclusionModeDefinition?.namedTypeDefinitions.forEach(((i,n)=>{if("entity"===t.get(n))this.entityTypeNames.add(n);else{if("relationship"!==t.get(n))return o.A.getLogger(this).warn(`A named type, ${n}, was in the inclusion list that wasn't in the data model and will be removed`),void e.inclusionModeDefinition?.namedTypeDefinitions.delete(n);this.relationshipTypeNames.add(n)}const r=new Map;i.members?.forEach((e=>{(0,a.tE)(this.memberIdTypeLookup,e.id,(()=>new Set)).add(n);const t=this.getById(e.id);t&&r.set(e.id,t)})),this.sublayerCaches.set(n,r)}))}addToLayer(e){e.forEach((({typeName:e,id:t})=>{if(!this.inclusionModeDefinition)throw new s.A("knowledge-graph:layer-data-manager","You cannot add to a layer's exclusion list if it was not created with an exclusion list originally");if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){const i=this.inclusionModeDefinition.namedTypeDefinitions.get(e);i.members||(i.members=new Map),i.members.set(t,{id:t}),(0,a.tE)(this.memberIdTypeLookup,t,(()=>new Set)).add(e)}}else{const i=new Map;i.set(t,{id:t}),this.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:i}),(0,a.tE)(this.memberIdTypeLookup,t,(()=>new Set)).add(e)}}))}getById(e){return g.A.getInstance().readFromStoreById(e)}async getData(e,t,i){if(t.objectType.name&&this.inclusionModeDefinition?.namedTypeDefinitions&&this.inclusionModeDefinition.namedTypeDefinitions.size>0&&!this.inclusionModeDefinition.namedTypeDefinitions.has(t.objectType.name))return[];let n;if(n=e||new w.A({where:"1=1",outFields:["*"]}),"link-chart"===t.parentCompositeLayer.type){const e=t.parentCompositeLayer,i=this._processingCacheUpdatesLookup.get(t.objectType.name??""),r=n.outFields;r&&1===r.length&&r[0]===f.dr&&"1=1"===n.where||await Promise.all(i??[]);const s=this.sublayerCaches.has(t.objectType.name??"")?Array.from(this.sublayerCaches.get(t.objectType.name)?.values()):[],o=[];return s.forEach((i=>{if(this.relationshipTypeNames.has(t.objectType.name)){i.geometry=e.relationshipLinkChartDiagramLookup.get(i.attributes[t.objectIdField]);const n=this.memberIdTypeLookup.get(i.attributes[f.Cz]),r=this.memberIdTypeLookup.get(i.attributes[f.KQ]),s=this._isEndEntitySpatial(n,i,f.Cz),o=this._isEndEntitySpatial(r,i,f.KQ);i.attributes[f.BL]=Number(s&&o)}else{i.geometry=e.entityLinkChartDiagramLookup.get(i.attributes[t.objectIdField]);const n=this.geographicLookup.get(t.objectType.name);n&&i.attributes[n.name]?i.attributes[f.BL]=1:i.attributes[f.BL]=0}i.attributes[f.T1]=i.geometry,o.push(i)})),o}return this.retrieveDataFromService(n,t,i)}async getConnectedRecordIds(e,t,i){const n=[];let r="";const s=this._getNamedTypeIdMapFromNodeIds(e);if(t&&0!==t?.length){for(const e of t)r=r+e+"|";r=r.slice(0,-1)}const o={},a=[];for(const[e,i]of s){const n=`${e}_ids`;o[n]=i,t&&0!==t?.length?a.push(`MATCH (n:${e}) WHERE id(n) IN $${n} WITH n MATCH (n)-[r:${r}]-(m) RETURN id(r), type(r), id(m), labels(m)[0]`):a.push(`MATCH (n:${e}) WHERE id(n) IN $${n} WITH n MATCH (n)-[r]-(m) RETURN id(r), type(r), id(m), labels(m)[0]`)}if(!a.length)return n;const l=a.join(" UNION "),d=(await(0,b.executeQueryStreaming)(this.knowledgeGraph,new T.A({openCypherQuery:l,bindParameters:o}),{signal:i?.signal})).resultRowsStream.getReader();for(;;){const{done:e,value:t}=await d.read();if(e)break;for(let e=0;e<t.length;e++){const i=t[e];n.push({id:i[0],typeName:i[1]}),n.push({id:i[2],typeName:i[3]})}}return n}async getRelationshipsBetweenNodes(e,t,i){const n=this._getNamedTypeIdMapFromNodeIds(e);if(0===n.size)return[];const r={relationshipExclusionIds:t,possibleConnectionEntityIds:e},s=[];for(const[e,t]of n.entries()){const i=`${e}_ids`;r[i]=t,s.push(`MATCH (n:${e}) WHERE id(n) IN $${i} WITH n MATCH (n)-[r]->(m) WHERE id(m) IN $possibleConnectionEntityIds AND NOT id(r) IN $relationshipExclusionIds RETURN id(r), type(r)`)}const o=s.join(" UNION "),a=[],l=(await(0,b.executeQueryStreaming)(this.knowledgeGraph,new T.A({openCypherQuery:o,bindParameters:r}),{signal:i?.signal})).resultRowsStream.getReader();for(;;){const{done:e,value:t}=await l.read();if(e)break;for(let e=0;e<t.length;e++){const i=t[e];a.push({id:i[0],typeName:i[1]})}}return a}async getRelationshipsFromNodes(e,t,i,n){const r=this._getNamedTypeIdMapFromNodeIds(e);if(0===r.size||0===t.length)return[];const s={relationshipExclusionIds:i,possibleConnectionEntityIds:t},o=[];for(const[e,t]of r.entries()){const i=`${e}_ids`;s[i]=t,o.push(`MATCH (n:${e}) WHERE id(n) IN $${i} WITH n MATCH (n)-[r]-(m) WHERE id(m) IN $possibleConnectionEntityIds AND NOT id(r) IN $relationshipExclusionIds RETURN id(r), type(r)`)}const a=o.join(" UNION "),l=new Map,d=(await(0,b.executeQueryStreaming)(this.knowledgeGraph,new T.A({openCypherQuery:a,bindParameters:s}),{signal:n?.signal})).resultRowsStream.getReader();for(;;){const{done:e,value:t}=await d.read();if(e)break;for(let e=0;e<t.length;e++){const i=t[e];let n=l.get(i[1]);n||(n=new Set,l.set(i[1],n)),n.add(i[0])}}const p=[];for(const[e,t]of l)for(const i of t)p.push({id:i,typeName:e});return p}async refreshCacheContent(e,t,i,n=!0,r){const o=g.A.getInstance(),d=[],p=new Map,u=new Map;this.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&u.set(e.name,e)})),this.knowledgeGraph.dataModel.relationshipTypes?.forEach((e=>{e.name&&u.set(e.name,e)})),e||this.inclusionModeDefinition?e?e.forEach((e=>{if(this.memberIdTypeLookup.has(e))for(const t of this.memberIdTypeLookup.get(e))p.has(t)?p.get(t)?.push(e):p.set(t,[e])})):this.inclusionModeDefinition?.namedTypeDefinitions?.forEach(((e,t)=>{e.useAllData?p.set(t,null):e.members&&e.members.forEach((e=>{p.has(t)&&null!==p.get(t)?p.get(t)?.push(e.id):p.set(t,[e.id])}))})):(this.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&p.set(e.name,null)})),this.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&p.set(e.name,null)})));for(const[e,l]of p){const p=new Set(l),c=new Promise(((d,c)=>{(async()=>{const d=new Set,c=[];let h,y="",m=!1;if(t||u.get(e)?.properties?.forEach((e=>{e.name&&d.add(e.name)})),i&&this.geographicLookup.has(e)){const t=this.geographicLookup.get(e)?.name;t&&d.add(t)}if(this.entityTypeNames.has(e))y=`MATCH (n:${e}) ${l?"WHERE id(n) IN $ids ":""}return ID(n)`,d.forEach((e=>{y+=`, n.${e}`,c.push(e)}));else{if(!this.relationshipTypeNames.has(e))throw new s.A("knowledge-graph:layer-data-manager",`The graph type of ${e} could not be determined. Was this type set in the KG data model and inclusion definition?`);m=!0,y=`MATCH ()-[n:${e}]->() ${l?"WHERE id(n) IN $ids ":""}return ID(n), id(startNode(n)), id(endNode(n))`,d.forEach((e=>{y+=`, n.${e}`,c.push(e)}))}h=new T.A(l?{openCypherQuery:y,bindParameters:{ids:l}}:{openCypherQuery:y});const g=(await(0,b.executeQueryStreaming)(this.knowledgeGraph,h,{signal:r?.signal})).resultRowsStream.getReader();for(;;){const{done:t,value:i}=await g.read();if(t)break;const r=[];for(let e=0;e<i.length;e++){const t=i[e];let n=0,s=0;const o={properties:{}};for(o.id=t[n],n++,s++,m&&(o.originId=t[n],n++,s++,o.destinationId=t[n],n++,s++,(0,a.tE)(this.nodeConnectionsLookup,o.originId,(()=>new Set)).add(o.id),(0,a.tE)(this.nodeConnectionsLookup,o.destinationId,(()=>new Set)).add(o.id),(0,a.tE)(this.relationshipConnectionsLookup,o.id,(()=>[o.originId,o.destinationId])));n<t.length;n++)o.properties[c[n-s]]=t[n];p.delete(o.id),r.push(o)}const s=o.writeToStore(r,f.dr,this.geographicLookup.get(e)?.name);this.sublayerCaches.has(e)||this.sublayerCaches.set(e,new Map),n&&!this.inclusionModeDefinition?.namedTypeDefinitions.has(e)&&this.inclusionModeDefinition?.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map}),n&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members&&(this.inclusionModeDefinition.namedTypeDefinitions.get(e).members=new Map);const l=this.sublayerCaches.get(e);s.forEach((t=>{l?.set(t.attributes[f.dr],t),n&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.has(t.attributes[f.dr])&&(this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.set(t.attributes[f.dr],{id:t.attributes[f.dr]}),(0,a.tE)(this.memberIdTypeLookup,t.attributes[f.dr],(()=>new Set)).add(e))}))}const _=this.inclusionModeDefinition?.namedTypeDefinitions.get(e);if(_)for(const e of p)_.members?.delete(e)})().then((()=>{d(null)})).catch((e=>{"AbortError"===e.name?d(null):c(e)}))}));d.push(c),this._processingCacheUpdatesLookup.get(e)?.push(c)}if(await Promise.all(d),r?.signal?.aborted)throw(0,l.NK)()}removeFromLayer(e){const t=new Set,i=new Set(e.map((e=>e.id)));for(const i of e)t.add(i.typeName),1===this.memberIdTypeLookup.get(i.id)?.size?this.memberIdTypeLookup.delete(i.id):this.memberIdTypeLookup.get(i.id)?.delete(i.typeName),this.inclusionModeDefinition?.namedTypeDefinitions.forEach(((e,t)=>{t===i.typeName&&e.members?.has(i.id)&&e.members.delete(i.id)}));t.forEach((e=>{this.sublayerCaches.get(e)?.forEach(((t,n)=>{i.has(n)&&this.sublayerCaches.get(e)?.delete(n)}))}))}async retrieveDataFromService(e,t,i){const n=g.A.getInstance(),r=new Set,o=[];let a,l="",p=[];const u="relationship"===t.graphType,w=this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData,I=t.parentCompositeLayer.sublayerIdsCache.get(t.objectType.name);let M=!w&&I?Array.from(I).sort():null;if(this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData)this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData&&null!=e.objectIds&&(M=e.objectIds);else if(null!=e.objectIds&&M&&M.length>0){const t=e.objectIds;e.objectIds=M.filter((e=>t.includes(e)))}else if(null!=e.objectIds)M=e.objectIds;else{if(this.inclusionModeDefinition?.namedTypeDefinitions.has(t.objectType.name)&&(!this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members||this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members?.size<1))return e.objectIds=[],[];e.objectIds=M}if(null!=e.outFields){const i=e.outFields;i.includes("*")?t.fields.forEach((e=>{r.add(e.name)})):i.forEach((e=>{e!==f.dr&&e!==t.geometryFieldName&&r.add(e)}))}if(null!=e.geometry){const i=e.geometry;let n;const p=t.parentCompositeLayer.dataManager.knowledgeGraph.serviceDefinition,f=p?.spatialReference,g=p?.serviceCapabilities?.geometryCapabilities;let b=g?.geometryMaxBoundingRectangleSizeX,w=g?.geometryMaxBoundingRectangleSizeY;if("point"===i.type){let e=i;e.spatialReference?.isWGS84||(await(0,y.initializeProjection)(e.spatialReference,m.KK),e=(0,y.project)(e,m.KK)),n=new c.A({spatialReference:m.KK,xmin:e.x-1e-4,ymin:e.y-1e-4,xmax:e.x+1e-4,ymax:e.y+1e-4})}else i?.extent?.spatialReference&&!i.spatialReference?.isWGS84?(await(0,y.initializeProjection)(i.extent.spatialReference,m.KK),n=(0,y.project)(i.extent,m.KK)):n=i.extent;if(b&&w&&f){if(4326!==f.wkid){const e=new c.A({spatialReference:f,xmax:b,ymax:w}),t=(0,y.project)(e,m.KK);b=t.xmax,w=t.ymax}if(n.xmax-n.xmin>b)throw new s.A("knowledge-graph:layer-data-manager",`Extent x bounds should be within ${b}° latitude, limit exceeded`);if(n.ymax-n.ymin>w)throw new s.A("knowledge-graph:layer-data-manager",`Extent y bounds should be within ${w}° longitude, limit exceeded`)}if(null!=e.where&&"1=1"!==e.where){const i=await(0,d.GP)(e.where.toUpperCase(),t.fieldsIndex);t.fields.forEach((e=>{i.fieldNames.includes(e.name)&&r.add(e.name)}))}l=u?`Match ()-[n:${t.objectType.name}]->() WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n), id(startNode(r)), id(endNode(r))`:`Match (n:${t.objectType.name}) WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n)`,t.geometryFieldName&&r.add(t.geometryFieldName),r.forEach((e=>{l+=`, n.${e}`,o.push(e)})),a=new T.A({openCypherQuery:l,bindParameters:{param_filter_geom:new h.A({rings:(0,_.Wq)(n)})}})}else{let i="";if(null!=e.where&&"1=1"!==e.where){const n=await(0,d.GP)(e.where,t.fieldsIndex);t.fields.forEach((e=>{n.fieldNames.includes(e.name)&&r.add(e.name)}));const s=new Set(["column-reference","string","number","binary-expression"]),o=new Set(["=","<","<=","<>",">",">=","AND","OR","LIKE"]);let a=!1;const l=e=>{if("column-reference"===e.type)return`n.${e.column}`;if("string"===e.type)return`'${e.value}'`;if("number"===e.type)return`${e.value}`;if("binary-expression"===e.type&&s.has(e.left.type)&&s.has(e.right.type)&&o.has(e.operator))return`${l(e.left)} ${e.operator} ${l(e.right)}`;if("binary-expression"===e.type&&"LIKE"===e.operator){let t="";if("function"===e.left.type&&"column-reference"===e.left.args.value[0].type)t+=`lower(n.${e.left.args.value[0].column})`;else{if("column-reference"!==e.left.type)return a=!0,"";t+=`lower(n.${e.left.column})`}if(t+=" CONTAINS (","string"!==e.right.type)return a=!0,"";{let i=e.right.value;"%"===i.charAt(0)&&(i=i.slice(1)),"%"===i.charAt(i.length-1)&&(i=i.slice(0,-1)),t+=`'${i.toLowerCase()}')`}return t}return a=!0,""};i=l(n.parseTree),a&&(i="")}let n="";n=u?`Match ()-[n:${t.objectType.name}]->()`:`Match (n:${t.objectType.name})`;let s=!1;M&&(s=!0,n+=" WHERE ID(n) IN $ids"),i&&(n+=s?" AND":" WHERE",n+=` ${i}`),n+=" return ID(n)",u&&(n+=", id(startNode(n)), id(endNode(n))"),e.returnGeometry&&t.geometryFieldName&&r.add(t.geometryFieldName),r.forEach((e=>{n+=`, n.${e}`,o.push(e)})),a=new T.A(M?{openCypherQuery:n,bindParameters:{ids:M}}:{openCypherQuery:n})}const v=(await(0,b.executeQueryStreaming)(t.parentCompositeLayer.dataManager.knowledgeGraph,a,i)).resultRowsStream.getReader();for(;;){const{done:e,value:i}=await v.read();if(e)break;const r=[];for(let e=0;e<i.length;e++){const t=i[e];let n=0,s=0;const a={properties:{}};for(a.id=t[n],n++,s++,u&&(a.originId=t[n],n++,s++,a.destinationId=t[n],n++,s++);n<t.length;n++)a.properties[o[n-s]]=t[n];r.push(a)}p=p.concat(n.writeToStore(r,f.dr,t.parentCompositeLayer.dataManager.geographicLookup.get(t.objectType.name)?.name))}return p}_isEndEntitySpatial(e,t,i){for(const n of e??[])if(this.entityTypeNames.has(n)){const e=this.geographicLookup.get(n),r=e&&this.sublayerCaches.get(n)?.get(t.attributes[i]);if(e&&r?.attributes[e.name])return!0}return!1}_getNamedTypeIdMapFromNodeIds(e){const t=new Map;return e.forEach((e=>{if(this.memberIdTypeLookup.has(e))for(const i of this.memberIdTypeLookup.get(e)){if(!this.entityTypeNames.has(i))return;t.has(i)?t.get(i)?.push(e):t.set(i,[e])}})),t}};(0,n._)([(0,p.MZ)()],I.prototype,"knowledgeGraph",void 0),(0,n._)([(0,p.MZ)()],I.prototype,"inclusionModeDefinition",void 0),(0,n._)([(0,p.MZ)()],I.prototype,"entityTypeNames",void 0),(0,n._)([(0,p.MZ)()],I.prototype,"relationshipTypeNames",void 0),(0,n._)([(0,p.MZ)()],I.prototype,"geographicLookup",void 0),(0,n._)([(0,p.MZ)()],I.prototype,"sublayerCaches",void 0),(0,n._)([(0,p.MZ)()],I.prototype,"nodeConnectionsLookup",void 0),(0,n._)([(0,p.MZ)()],I.prototype,"relationshipConnectionsLookup",void 0),(0,n._)([(0,p.MZ)()],I.prototype,"memberIdTypeLookup",void 0),I=(0,n._)([(0,u.$)("esri.layers.knowledgeGraph.KnowledgeGraphLayerDataManager")],I)},82935:(e,t,i)=>{i.d(t,{B:()=>h,e:()=>y});var n=i(90237),r=i(10107),s=(i(44208),i(53966),i(87811),i(36005)),o=i(40608),a=i(89317),l=i(30524),d=i(96184),p=i(73133),u=i(64272),c=i(26253);const h={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:a.K}}},y=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const n=i.timeOffset,r=p.j.fromJSON(i.timeOffsetUnits);return n&&r?new c.T({value:n,unit:r}):null}set timeInfo(e){(0,l.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n._)([(0,r.MZ)({type:u.T,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,n._)([(0,r.MZ)({type:c.T})],t.prototype,"timeOffset",void 0),(0,n._)([(0,s.w)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,n._)([(0,r.MZ)({value:null,type:d.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,n._)([(0,r.MZ)(h)],t.prototype,"useViewTime",void 0),t=(0,n._)([(0,o.$)("esri.layers.mixins.TemporalLayer")],t),t}},83221:(e,t,i)=>{i.d(t,{A:()=>y});var n=i(4576),r=i(49186),s=i(65529),o=i(53966),a=i(70328),l=i(19419),d=i(90708),p=i(6518),u=i(51441),c=i(37730);const h=(0,a.vt)();class y{constructor(e){this.geometryInfo=e,this._boundsStore=new p.F,this._featuresById=new Map,this._usedMemory=0,this.events=new s.A,this.featureAdapter=c.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach((t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,i,n,r]=this.fullBounds;return{xmin:t,ymin:i,xmax:n,ymax:r,spatialReference:(0,u.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map((e=>this._upsert(e)));return this._emitChanged(),t.filter(n.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const i of e){const e=this._boundsStore.get(i.objectId);e&&t((0,a.Jt)(h,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach((t=>e(t)))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,(e=>{t(this._featuresById.get(e))}))}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const i=this._featuresById.get(t);let n;if(i?(e.displayId=i.displayId,n=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);n=(0,d.jQ)(null!=n?n:(0,l.vt)(),e.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=n&&this._boundsStore.set(t,n),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const i=this._featuresById.get(t);if(!i)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0;const{geometry:n,attributes:s}=e;for(const e in s)i.attributes[e]=s[e];return n&&(i.geometry=n,this._boundsStore.set(t,(0,d.jQ)((0,l.vt)(),n,this.geometryInfo.hasZ,this.geometryInfo.hasM)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(i)??0,i}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},83960:(e,t,i)=>{i.d(t,{X_:()=>o,oW:()=>l,zx:()=>a});var n=i(34727),r=i(83047);const s=96;function o(e,t){const i=t||e.extent,n=e.width,o=(0,r.GA)(i?.spatialReference);return i&&n?i.width/n*o*r.dy*s:0}function a(e,t,i){return function(e,t){return 0===t||(0,n.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,n.Sp)(e,t)||e>t}(e,i)}function l(e,t){return(0,n.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},85342:(e,t,i)=>{i.d(t,{MY:()=>f,Td:()=>y,UT:()=>m,e$:()=>_,iW:()=>g,qN:()=>u});var n=i(68197),r=i(46499),s=i(73913),o=i(8916),a=i(40863),l=i(68249);const d={initializeLayersFromClientData:async(e,t,i)=>{if(t||(t=[...e.layers,...e.tables].map((e=>e.graphTypeName))),0===t?.length)return;const n=new Map;for(const i of t)n.set(i,p(e,i));const r=await(0,o.fetchClientDataAtKeys)(e.dataManager.knowledgeGraph,Array.from(n.values()),{requestOptions:{signal:i?.signal}});for(const t of[...e.layers,...e.tables]){const i=t.objectType.name;if(null==i)continue;const n=r.get(p(e,i));if(n){const e=JSON.parse(n);null===e||"object"!=typeof e||e.hasOwnProperty("showLabels")||(e.showLabels=!1),t.read(e,{origin:"service"})}}}},p=(e,t)=>"knowledge-graph"===e.type?`${t}/Map`:`${t}/LinkChart/LinkChartSubLayer`;async function u(e,t,i){return d.initializeLayersFromClientData(e,t,i)}const c=["#4a0932","#b31515","#18382e","#a64f1b","#102432","#8c213f","#ed9310","#2c6954","#144d59","#ffc730","#75351e","#454f4b","#78b1c2","#191921","#8f8f82","#9be0c0","#dbb658","#87b051","#11495c","#c43541","#9c5596","#44498b","#ad9d63","#86afb3","#5c98ca","#b0bfa2","#73241f","#b86b53","#d9d78c","#3e756d","#f260a1","#a0d17d","#c27c30","#eb82eb","#ffdf3c","#ffb259","#ab52b3","#3cccb4","#0095ba","#d92b30"],h="#8f8f82";function y(e){return e<0||e>=c.length?new n.A(h):new n.A(c[e])}function m(e){const t=e.toArray();return new a.A({data:{type:"CIMSymbolReference",symbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,style:"solid",width:.75,color:t},{type:"CIMVectorMarker",enable:!0,size:6,markerPlacement:{type:"CIMMarkerPlacementOnLine",angleToLine:!0,relativeTo:"LineMiddle"},frame:{xmin:-10,ymin:-5,xmax:0,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[-12,-3.47],[-12,3.6],[1.96,-.03],[-12,-3.47]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:t}]}}]}]}}})}function f(e){let t="ESRI__ID",i=4;for(const n of e)if(n.name){if("name"===n.name.toLowerCase()){t=n.name;break}n.name.toLowerCase().includes("name")?(t=n.name,i=2):"esriFieldTypeString"===n.fieldType&&i>3&&(t=n.name,i=3)}return t}function g(e,t,i){const n={color:[80,80,80],haloColor:[255,255,255],haloSize:.7,font:{size:10,weight:"normal"}},o=new r.A({labelExpressionInfo:new s.A({expression:"ESRI__ID"===i?`${t}`:`$feature.${i}`}),labelPlacement:"above-center",symbol:new l.A(n)}),a=new r.A({labelExpressionInfo:new s.A({expression:`'${t}' + IIf($feature.ESRI__AggregationCount>1, ' (' + $feature.ESRI__AggregationCount + ')', '')`}),labelPlacement:"center-along",labelPosition:"parallel",repeatLabel:!1,symbol:new l.A({...n,yoffset:"12px"})});return"entity"===e?[o]:[a]}function _(e,t,i){const n={color:[255,255,255],haloColor:[0,0,0],haloSize:.7,font:{size:10,weight:"bold"}},o="ESRI__ID"===i?`${e}`:`$feature.${i}`;return"point"===t?[new r.A({labelExpressionInfo:new s.A({expression:o}),labelPlacement:"above-center",symbol:new l.A(n)})]:"polyline"===t?[new r.A({labelExpressionInfo:new s.A({expression:o}),labelPlacement:"center-along",repeatLabel:!0,symbol:new l.A(n)})]:"polygon"===t?[new r.A({labelExpressionInfo:new s.A({expression:o}),labelPlacement:"always-horizontal",symbol:new l.A(n)})]:null}},96184:(e,t,i)=>{i.d(t,{A:()=>y});var n=i(90237),r=i(69540),s=i(25482),o=i(10107),a=(i(44208),i(53966),i(87811),i(36005)),l=i(40608),d=i(43937),p=i(64272),u=i(26253),c=i(56400);function h(e,t){return u.T.fromJSON({value:e,unit:t})}let y=class extends(r.A.ClonableMixin(s.A)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?p.T.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?h(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?h(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,n._)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,n._)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,n._)([(0,o.MZ)({type:p.T,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,n._)([(0,a.w)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,n._)([(0,d.K)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,n._)([(0,o.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,n._)([(0,o.MZ)({type:u.T,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,n._)([(0,a.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,n._)([(0,d.K)("interval")],y.prototype,"writeInterval",null),(0,n._)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,n._)([(0,o.MZ)((0,c.P6)("timeReference",!0))],y.prototype,"timeZone",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,n._)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),(0,n._)([(0,o.MZ)({type:[Date],json:{read:!1}})],y.prototype,"stops",void 0),y=(0,n._)([(0,l.$)("esri.layers.support.TimeInfo")],y)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8506],{6455:(e,t,i)=>{i.d(t,{FJ:()=>w,Dp:()=>M,KV:()=>_});var n=i(90237),r=i(93637),o=i(10107),s=(i(44208),i(53966),i(87811),i(40608)),l=i(89317),p=i(69540),a=i(5503),d=i(25482),u=i(43937),y=i(83960),c=i(13069);const h={write:{overridePolicy:(e,t,i)=>({enabled:!i||"scale"===i.filterMode})}};let m=class extends(p.A.ClonableMixin(d.A)){constructor(e){super(e),this.id=(0,c.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],m.prototype,"id",void 0),(0,n._)([(0,o.MZ)({type:Number,json:h})],m.prototype,"maxScale",void 0),(0,n._)([(0,o.MZ)({type:Number,json:h})],m.prototype,"minScale",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],m.prototype,"title",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),m=(0,n._)([(0,s.$)("esri.layers.support.DisplayFilter")],m);var f=i(41560);let v=class extends(p.A.ClonableMixin(d.A)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(a.A.ofType(m)),this.mode="manual"}writeFilters(e,t,i,n){const r=e.toArray();"scale"===this.mode&&r.sort(((e,t)=>{const i=(0,y.oW)(t.minScale,e.minScale),n=e.maxScale-t.maxScale;return 0===i?n:i})),t[i]=r.map((e=>e.toJSON(n)))}write(e,t){return super.write(e,(0,f.mW)(this,t))}};(0,n._)([(0,o.MZ)({type:String,json:{write:{overridePolicy:(e,t,i)=>({enabled:"manual"===i.filterMode,isRequired:!0})}}})],v.prototype,"activeFilterId",void 0),(0,n._)([(0,o.MZ)({type:a.A.ofType(m),nonNullable:!0,json:{write:!0}})],v.prototype,"filters",void 0),(0,n._)([(0,u.K)("filters")],v.prototype,"writeFilters",null),(0,n._)([(0,o.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],v.prototype,"mode",void 0),v=(0,n._)([(0,s.$)("esri.layers.support.DisplayFilterInfo")],v);const w=e=>{let t=class extends e{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,n._)([(0,o.MZ)(M)],t.prototype,"displayFilterEnabled",void 0),(0,n._)([(0,o.MZ)(_)],t.prototype,"displayFilterInfo",void 0),t=(0,n._)([(0,s.$)("esri.layers.mixins.DisplayFilteredLayer")],t),t},M={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:l.K,writer(e,t,i){(0,r.sM)(i,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},_={type:v,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:l.K},origins:{"web-scene":{write:!1,read:!1}}}}},17036:(e,t,i)=>{i.d(t,{p:()=>p});var n=i(44208),r=i(53966),o=i(20437),s=i(95466),l=i(30524);function p(){return{fields:{type:[o.A],value:null,set:function(e){if(e&&(0,n.A)("big-integer-warning-enabled")){const t=e.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(t.length){const e=t.map((e=>`'${e.name}'`)).join(", ");r.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return s.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const i=this.fieldsIndex?.has(t);i||r.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.DB)(this.fieldsIndex,e)}}}}},20816:(e,t,i)=>{i.d(t,{TA:()=>r,We:()=>l,Z3:()=>o,ZJ:()=>p,w5:()=>a});var n=i(78888);const r=(0,i(13069).vD)(),o=new Map,s=new Map;async function l(e,t,i){if(!e||!i)return!1;if(!t)return!0;const r=new URL(e).host;let s=o.get(r);if(!s){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");s=(await(0,n.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return s===t}async function p(e,t,n=!1){if(!e||!t)return!0;const o=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),l=s.get(o)?.entries();if(l)for(const[e,s]of l)if(s.name===t){const t=!s.stack?.hasForwardEdits();if(!t&&n){const[{deleteForwardEdits:t},{default:n}]=await Promise.all([i.e(2186).then(i.bind(i,32186)),i.e(2558).then(i.bind(i,32558))]),l=await t(o,e,new n({sessionId:r,moment:s.moment}));return l.success&&s.stack?.clearForwardEdits(),l.success}return t}return!0}function a(e,t){if(!e)return!1;const i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),n=s.get(i)?.entries();if(n)for(const[e,i]of n)if(i.name===t)return"edit"===i.lockType;return!1}new Map},26253:(e,t,i)=>{i.d(t,{T:()=>u});var n=i(90237),r=i(69540),o=i(25482),s=i(88930),l=i(10107),p=(i(44208),i(53966),i(87811),i(93223)),a=i(40608),d=i(73133);let u=class extends(r.A.ClonableMixin(o.A)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.t)(this.value,this.unit,"milliseconds")}};(0,n._)([(0,p.e)(d.j,{nonNullable:!0})],u.prototype,"unit",void 0),(0,n._)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,n._)([(0,a.$)("esri.time.TimeInterval")],u)},38141:(e,t,i)=>{i.d(t,{A:()=>ot});var n,r=i(90237),o=i(25482),s=i(4718),l=i(3483),p=i(10107),a=i(79901),d=i(36005),u=i(40608),y=i(43937);i(44208),i(53966),i(87811);let c=n=class extends o.A{constructor(e){super(e),this.expression=null,this.name=null,this.returnType="boolean",this.title=null}clone(){return new n({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"expression",void 0),(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,r._)([(0,p.MZ)({type:["boolean","date","number","string"],json:{write:!0}})],c.prototype,"returnType",void 0),(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),c=n=(0,r._)([(0,u.$)("esri.form.ExpressionInfo")],c);const h=c;let m=class extends o.A{constructor(e){super(e),this.description=null,this.label=null,this.type=null,this.visibilityExpression=null}};(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"description",void 0),(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"label",void 0),(0,r._)([(0,p.MZ)()],m.prototype,"type",void 0),(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"visibilityExpression",void 0),m=(0,r._)([(0,u.$)("esri.form.elements.Element")],m);const f=m;var v=i(69540);let w=class extends(v.A.ClonableMixin(o.A)){constructor(e){super(e),this.type=null}};(0,r._)([(0,p.MZ)()],w.prototype,"type",void 0),w=(0,r._)([(0,u.$)("esri.form.elements.inputs.attachments.Input")],w);const M=w;var _=i(56507);const g=["any","capture","upload"];let x=class extends M{constructor(e){super(e),this.type="audio",this.inputMethod="any",this.maxDuration=null}};(0,r._)([(0,p.MZ)({type:["audio"],readOnly:!0,json:{write:!0}})],x.prototype,"type",void 0),(0,r._)([(0,p.MZ)({type:g,json:{write:!0}})],x.prototype,"inputMethod",void 0),(0,r._)([(0,p.MZ)({type:Number,json:{write:!0}})],x.prototype,"maxDuration",void 0),x=(0,r._)([(0,u.$)("esri.form.elements.inputs.attachments.AudioInput")],x);const b=x;let Z=class extends M{constructor(e){super(e),this.type="document",this.maxFileSize=null}};(0,r._)([(0,p.MZ)({type:["document"],readOnly:!0,json:{write:!0}})],Z.prototype,"type",void 0),(0,r._)([(0,p.MZ)({type:Number,json:{write:!0}})],Z.prototype,"maxFileSize",void 0),Z=(0,r._)([(0,u.$)("esri.form.elements.inputs.attachments.DocumentInput")],Z);const I=Z;let j=class extends M{constructor(e){super(e),this.type="image",this.inputMethod="any",this.maxImageSize=null}};(0,r._)([(0,p.MZ)({type:["image"],readOnly:!0,json:{write:!0}})],j.prototype,"type",void 0),(0,r._)([(0,p.MZ)({type:g,json:{write:!0}})],j.prototype,"inputMethod",void 0),(0,r._)([(0,p.MZ)({type:Number,json:{write:!0}})],j.prototype,"maxImageSize",void 0),j=(0,r._)([(0,u.$)("esri.form.elements.inputs.attachments.ImageInput")],j);const F=j;let S=class extends M{constructor(e){super(e),this.type="signature",this.inputMethod="any"}};(0,r._)([(0,p.MZ)({type:["signature"],readOnly:!0,json:{write:!0}})],S.prototype,"type",void 0),(0,r._)([(0,p.MZ)({type:g,json:{write:!0}})],S.prototype,"inputMethod",void 0),S=(0,r._)([(0,u.$)("esri.form.elements.inputs.attachments.SignatureInput")],S);const E=S;let T=class extends M{constructor(e){super(e),this.type="video",this.inputMethod="any",this.maxDuration=null}};(0,r._)([(0,p.MZ)({type:["video"],readOnly:!0,json:{write:!0}})],T.prototype,"type",void 0),(0,r._)([(0,p.MZ)({type:g,json:{write:!0}})],T.prototype,"inputMethod",void 0),(0,r._)([(0,p.MZ)({type:Number,json:{write:!0}})],T.prototype,"maxDuration",void 0),T=(0,r._)([(0,u.$)("esri.form.elements.inputs.attachments.VideoInput")],T);const A=T;function O(e){return{nestableTypes:{base:M,key:"type",typeMap:{audio:b,document:I,image:F,signature:E,video:A}},allTypes:{base:M,key:"type",typeMap:{attachment:e,audio:b,document:I,image:F,signature:E,video:A}}}}let R=class extends M{constructor(e){super(e),this.type="attachment",this.attachmentAssociationType="exact",this.inputTypes=null}castInputs(e){return function(e,t){return e?e.map((e=>(0,_.aq)(t.nestableTypes,e))):null}(e,U)}readInputs(e,t){return function(e,t){if(!e)return null;const i=t.nestableTypes.typeMap;return e.filter((e=>i[e.type])).map((e=>i[e.type].fromJSON(e)))}(t.inputTypes,U)}writeInputs(e,t){t.inputTypes=function(e,t){if(!e)return null;const i=t.nestableTypes.typeMap;return e.filter((e=>i[e.type])).map((e=>e.toJSON()))}(e,U)}};(0,r._)([(0,p.MZ)({type:["attachment"],readOnly:!0,json:{write:!0}})],R.prototype,"type",void 0),(0,r._)([(0,p.MZ)({type:["any","exact","exactOrNone"],json:{write:!0}})],R.prototype,"attachmentAssociationType",void 0),(0,r._)([(0,p.MZ)({json:{write:{isRequired:!0}}})],R.prototype,"inputTypes",void 0),(0,r._)([(0,a.w)("inputTypes")],R.prototype,"castInputs",null),(0,r._)([(0,d.w)("inputTypes")],R.prototype,"readInputs",null),(0,r._)([(0,y.K)("inputTypes")],R.prototype,"writeInputs",null),R=(0,r._)([(0,u.$)("esri.form.elements.inputs.attachments.AttachmentInput")],R);const U=O(R);var N;const k=O(R);let D=N=class extends f{constructor(e){super(e),this.allowUserRename=!0,this.attachmentKeyword=null,this.displayFilename=!1,this.editableExpression=null,this.filenameExpression="{attachmentKeyword}_{now}",this.input=null,this.maxAttachmentCount=null,this.minAttachmentCount=null,this.type="attachment",this.useOriginalFilename=!0}clone(){return new N({allowUserRename:this.allowUserRename,attachmentKeyword:this.attachmentKeyword,description:this.description,displayFilename:this.displayFilename,editableExpression:this.editableExpression,filenameExpression:this.filenameExpression,input:this.input?.clone(),label:this.label,maxAttachmentCount:this.maxAttachmentCount,minAttachmentCount:this.minAttachmentCount,useOriginalFilename:this.useOriginalFilename,visibilityExpression:this.visibilityExpression})}};(0,r._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],D.prototype,"allowUserRename",void 0),(0,r._)([(0,p.MZ)({type:String,json:{write:{isRequired:!0}}})],D.prototype,"attachmentKeyword",void 0),(0,r._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],D.prototype,"displayFilename",void 0),(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],D.prototype,"editableExpression",void 0),(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],D.prototype,"filenameExpression",void 0),(0,r._)([(0,p.MZ)({types:k.allTypes,json:{read:{source:"inputType"},write:{target:"inputType",isRequired:!0}}})],D.prototype,"input",void 0),(0,r._)([(0,p.MZ)({type:Number,json:{write:!0}})],D.prototype,"maxAttachmentCount",void 0),(0,r._)([(0,p.MZ)({type:Number,json:{write:!0}})],D.prototype,"minAttachmentCount",void 0),(0,r._)([(0,p.MZ)({type:["attachment"],readOnly:!0,json:{read:!1,write:!0}})],D.prototype,"type",void 0),(0,r._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],D.prototype,"useOriginalFilename",void 0),D=N=(0,r._)([(0,u.$)("esri.form.elements.AttachmentElement")],D);const V=D;let C=class extends o.A{constructor(e){super(e),this.type=null}};(0,r._)([(0,p.MZ)()],C.prototype,"type",void 0),C=(0,r._)([(0,u.$)("esri.form.elements.inputs.Input")],C);const $=C;let B=class extends ${constructor(e){super(e),this.maxLength=null,this.minLength=0}};(0,r._)([(0,p.MZ)({type:Number,json:{write:!0}})],B.prototype,"maxLength",void 0),(0,r._)([(0,p.MZ)({type:Number,json:{write:!0}})],B.prototype,"minLength",void 0),B=(0,r._)([(0,u.$)("esri.form.elements.inputs.TextInput")],B);const L=B;var H;let q=H=class extends L{constructor(e){super(e),this.type="barcode-scanner"}clone(){return new H({maxLength:this.maxLength,minLength:this.minLength})}};(0,r._)([(0,p.MZ)({type:["barcode-scanner"],json:{read:!1,write:!0}})],q.prototype,"type",void 0),q=H=(0,r._)([(0,u.$)("esri.form.elements.inputs.BarcodeScannerInput")],q);const K=q;var P;let G=P=class extends ${constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="combo-box"}clone(){return new P({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],G.prototype,"noValueOptionLabel",void 0),(0,r._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],G.prototype,"showNoValueOption",void 0),(0,r._)([(0,p.MZ)({type:["combo-box"],json:{read:!1,write:!0}})],G.prototype,"type",void 0),G=P=(0,r._)([(0,u.$)("esri.form.elements.inputs.ComboBoxInput")],G);const W=G;var Q;function J(e){return null!=e?e:null}function z(e){return null!=e?e:null}let X=Q=class extends ${constructor(e){super(e),this.max=null,this.min=null,this.type="date-picker"}readMax(e,t){return J(t.max)}writeMax(e,t){t.max=z(e)}readMin(e,t){return J(t.min)}writeMin(e,t){t.min=z(e)}clone(){return new Q({max:this.max,min:this.min})}};(0,r._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],X.prototype,"max",void 0),(0,r._)([(0,d.w)("max")],X.prototype,"readMax",null),(0,r._)([(0,y.K)("max")],X.prototype,"writeMax",null),(0,r._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],X.prototype,"min",void 0),(0,r._)([(0,d.w)("min")],X.prototype,"readMin",null),(0,r._)([(0,y.K)("min")],X.prototype,"writeMin",null),(0,r._)([(0,p.MZ)({type:["date-picker"],json:{read:!1,write:!0}})],X.prototype,"type",void 0),X=Q=(0,r._)([(0,u.$)("esri.form.elements.inputs.DatePickerInput")],X);const Y=X;var ee;function te(e){return null!=e?e:null}function ie(e){return null!=e?e:null}let ne=ee=class extends ${constructor(e){super(e),this.includeTimeOffset=!0,this.max=null,this.min=null,this.timeResolution="minutes",this.type="datetimeoffset-picker"}readMax(e,t){return te(t.max)}writeMax(e,t){t.max=ie(e)}readMin(e,t){return te(t.min)}writeMin(e,t){t.min=ie(e)}readTimeResolution(e,t){return te(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=ie(e)}clone(){return new ee({includeTimeOffset:this.includeTimeOffset,max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,r._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],ne.prototype,"includeTimeOffset",void 0),(0,r._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],ne.prototype,"max",void 0),(0,r._)([(0,d.w)("max")],ne.prototype,"readMax",null),(0,r._)([(0,y.K)("max")],ne.prototype,"writeMax",null),(0,r._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],ne.prototype,"min",void 0),(0,r._)([(0,d.w)("min")],ne.prototype,"readMin",null),(0,r._)([(0,y.K)("min")],ne.prototype,"writeMin",null),(0,r._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],ne.prototype,"timeResolution",void 0),(0,r._)([(0,d.w)("timeResolution")],ne.prototype,"readTimeResolution",null),(0,r._)([(0,y.K)("timeResolution")],ne.prototype,"writeTimeResolution",null),(0,r._)([(0,p.MZ)({type:["datetimeoffset-picker"],json:{read:!1,write:!0}})],ne.prototype,"type",void 0),ne=ee=(0,r._)([(0,u.$)("esri.form.elements.inputs.DateTimeOffsetPickerInput")],ne);const re=ne;var oe;function se(e){return null!=e?new Date(e):null}function le(e){return e?e.getTime():null}let pe=oe=class extends ${constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,t){return se(t.max)}writeMax(e,t){t.max=le(e)}readMin(e,t){return se(t.min)}writeMin(e,t){t.min=le(e)}clone(){return new oe({includeTime:this.includeTime,max:this.max,min:this.min})}};(0,r._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],pe.prototype,"includeTime",void 0),(0,r._)([(0,p.MZ)({type:Date,json:{type:Number,write:!0}})],pe.prototype,"max",void 0),(0,r._)([(0,d.w)("max")],pe.prototype,"readMax",null),(0,r._)([(0,y.K)("max")],pe.prototype,"writeMax",null),(0,r._)([(0,p.MZ)({type:Date,json:{type:Number,write:!0}})],pe.prototype,"min",void 0),(0,r._)([(0,d.w)("min")],pe.prototype,"readMin",null),(0,r._)([(0,y.K)("min")],pe.prototype,"writeMin",null),(0,r._)([(0,p.MZ)({type:["datetime-picker"],json:{read:!1,write:!0}})],pe.prototype,"type",void 0),pe=oe=(0,r._)([(0,u.$)("esri.form.elements.inputs.DateTimePickerInput")],pe);const ae=pe;var de;let ue=de=class extends ${constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="radio-buttons"}clone(){return new de({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],ue.prototype,"noValueOptionLabel",void 0),(0,r._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],ue.prototype,"showNoValueOption",void 0),(0,r._)([(0,p.MZ)({type:["radio-buttons"],json:{read:!1,write:!0}})],ue.prototype,"type",void 0),ue=de=(0,r._)([(0,u.$)("esri.form.elements.inputs.RadioButtonsInput")],ue);const ye=ue;var ce;let he=ce=class extends ${constructor(e){super(e),this.offValue=null,this.onValue=null,this.type="switch"}clone(){return new ce({offValue:this.offValue,onValue:this.onValue})}};(0,r._)([(0,p.MZ)({type:[String,Number],json:{write:!0}})],he.prototype,"offValue",void 0),(0,r._)([(0,p.MZ)({type:[String,Number],json:{write:!0}})],he.prototype,"onValue",void 0),(0,r._)([(0,p.MZ)({type:["switch"],json:{read:!1,write:!0}})],he.prototype,"type",void 0),he=ce=(0,r._)([(0,u.$)("esri.form.elements.inputs.SwitchInput")],he);const me=he;var fe;let ve=fe=class extends L{constructor(e){super(e),this.type="text-area"}clone(){return new fe({maxLength:this.maxLength,minLength:this.minLength})}};(0,r._)([(0,p.MZ)({type:["text-area"],json:{read:!1,write:!0}})],ve.prototype,"type",void 0),ve=fe=(0,r._)([(0,u.$)("esri.form.elements.inputs.TextAreaInput")],ve);const we=ve;var Me;let _e=Me=class extends L{constructor(e){super(e),this.type="text-box"}clone(){return new Me({maxLength:this.maxLength,minLength:this.minLength})}};(0,r._)([(0,p.MZ)({type:["text-box"],json:{read:!1,write:!0}})],_e.prototype,"type",void 0),_e=Me=(0,r._)([(0,u.$)("esri.form.elements.inputs.TextBoxInput")],_e);const ge=_e;var xe;function be(e){return null!=e?e:null}function Ze(e){return null!=e?e:null}let Ie=xe=class extends ${constructor(e){super(e),this.max=null,this.min=null,this.timeResolution="minutes",this.type="time-picker"}readMax(e,t){return be(t.max)}writeMax(e,t){t.max=Ze(e)}readMin(e,t){return be(t.min)}writeMin(e,t){t.min=Ze(e)}readTimeResolution(e,t){return be(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=Ze(e)}clone(){return new xe({max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,r._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],Ie.prototype,"max",void 0),(0,r._)([(0,d.w)("max")],Ie.prototype,"readMax",null),(0,r._)([(0,y.K)("max")],Ie.prototype,"writeMax",null),(0,r._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],Ie.prototype,"min",void 0),(0,r._)([(0,d.w)("min")],Ie.prototype,"readMin",null),(0,r._)([(0,y.K)("min")],Ie.prototype,"writeMin",null),(0,r._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],Ie.prototype,"timeResolution",void 0),(0,r._)([(0,d.w)("timeResolution")],Ie.prototype,"readTimeResolution",null),(0,r._)([(0,y.K)("timeResolution")],Ie.prototype,"writeTimeResolution",null),(0,r._)([(0,p.MZ)({type:["time-picker"],json:{read:!1,write:!0}})],Ie.prototype,"type",void 0),Ie=xe=(0,r._)([(0,u.$)("esri.form.elements.inputs.TimePickerInput")],Ie);const je={base:$,key:"type",typeMap:{"barcode-scanner":K,"combo-box":W,"date-picker":Y,"datetime-picker":ae,"datetimeoffset-picker":re,"radio-buttons":ye,switch:me,"text-area":we,"text-box":ge,"time-picker":Ie}};var Fe,Se=i(80451);let Ee=Fe=class extends f{constructor(e){super(e),this.domain=null,this.editable=null,this.editableExpression=null,this.fieldName=null,this.hint=null,this.input=null,this.requiredExpression=null,this.type="field",this.valueExpression=null}clone(){return new Fe({description:this.description,domain:this.domain,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input,label:this.label,requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})}};(0,r._)([(0,p.MZ)({types:Se.gK,json:{read:{reader:Se.rS},write:!0}})],Ee.prototype,"domain",void 0),(0,r._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],Ee.prototype,"editable",void 0),(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],Ee.prototype,"editableExpression",void 0),(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],Ee.prototype,"fieldName",void 0),(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],Ee.prototype,"hint",void 0),(0,r._)([(0,p.MZ)({types:je,json:{read:{source:"inputType"},write:{target:"inputType"}}})],Ee.prototype,"input",void 0),(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],Ee.prototype,"requiredExpression",void 0),(0,r._)([(0,p.MZ)({type:String,json:{read:!1,write:!0}})],Ee.prototype,"type",void 0),(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],Ee.prototype,"valueExpression",void 0),Ee=Fe=(0,r._)([(0,u.$)("esri.form.elements.FieldElement")],Ee);const Te=Ee;var Ae,Oe=i(49852);let Re=Ae=class extends f{constructor(e){super(e),this.displayCount=null,this.displayType="list",this.editableExpression=null,this.orderByFields=null,this.relationshipId=null,this.type="relationship"}clone(){return new Ae({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editableExpression:this.editableExpression,label:this.label,orderByFields:(0,s.o8)(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};(0,r._)([(0,p.MZ)({type:Number,json:{write:!0}})],Re.prototype,"displayCount",void 0),(0,r._)([(0,p.MZ)({type:["list"],json:{write:!0}})],Re.prototype,"displayType",void 0),(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],Re.prototype,"editableExpression",void 0),(0,r._)([(0,p.MZ)({type:[Oe.A],json:{write:!0}})],Re.prototype,"orderByFields",void 0),(0,r._)([(0,p.MZ)({type:Number,json:{write:!0}})],Re.prototype,"relationshipId",void 0),(0,r._)([(0,p.MZ)({type:["relationship"],json:{read:!1,write:!0}})],Re.prototype,"type",void 0),Re=Ae=(0,r._)([(0,u.$)("esri.form.elements.RelationshipElement")],Re);const Ue=Re;var Ne;let ke=Ne=class extends f{constructor(e){super(e),this.text=null,this.textFormat="plain-text",this.type="text"}clone(){return new Ne({text:this.text,textFormat:this.textFormat,visibilityExpression:this.visibilityExpression})}};(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],ke.prototype,"text",void 0),(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],ke.prototype,"textFormat",void 0),(0,r._)([(0,p.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],ke.prototype,"type",void 0),ke=Ne=(0,r._)([(0,u.$)("esri.form.elements.TextElement")],ke);const De=ke;var Ve=i(83342);let Ce=class extends(v.A.ClonableMixin(f)){constructor(e){super(e),this.associationTypes=null,this.editableExpression=null,this.type="utilityNetworkAssociations"}};(0,r._)([(0,p.MZ)({type:[Ve.A],json:{write:{isRequired:!0}}})],Ce.prototype,"associationTypes",void 0),(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],Ce.prototype,"editableExpression",void 0),(0,r._)([(0,p.MZ)({type:["utilityNetworkAssociations"],json:{read:!1,write:!0}})],Ce.prototype,"type",void 0),Ce=(0,r._)([(0,u.$)("esri.form.elements.UtilityNetworkAssociationsElement")],Ce);const $e=Ce,Be=e=>"field"===e.type,Le=e=>"group"===e.type,He=e=>"text"===e.type;function qe(e){return{typesWithGroup:{base:f,key:"type",typeMap:{attachment:V,field:Te,group:e,relationship:Ue,text:De,utilityNetworkAssociations:$e}},typesWithoutGroup:{base:f,key:"type",typeMap:{attachment:V,field:Te,relationship:Ue,text:De,utilityNetworkAssociations:$e}}}}function Ke(e,t,i=!0){if(!e)return null;const n=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>n[e.type])).map((e=>n[e.type].fromJSON(e)))}function Pe(e,t,i=!0){if(!e)return null;const n=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>n[e.type])).map((e=>e.toJSON()))}function Ge(e,t,i=!0){return e?e.map((e=>(0,_.aq)(i?t.typesWithGroup:t.typesWithoutGroup,e))):null}var We;let Qe=We=class extends f{constructor(e){super(e),this.elements=null,this.initialState="expanded",this.type="group"}castElements(e){return Ge(e,Je,!1)}readElements(e,t){return Ke(t.formElements,Je,!1)}writeElements(e,t){t.formElements=Pe(e,Je,!1)}clone(){return new We({description:this.description,elements:(0,s.o8)(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,r._)([(0,p.MZ)({json:{write:!0}})],Qe.prototype,"elements",void 0),(0,r._)([(0,a.w)("elements")],Qe.prototype,"castElements",null),(0,r._)([(0,d.w)("elements",["formElements"])],Qe.prototype,"readElements",null),(0,r._)([(0,y.K)("elements")],Qe.prototype,"writeElements",null),(0,r._)([(0,p.MZ)({type:["collapsed","expanded"],json:{write:!0}})],Qe.prototype,"initialState",void 0),(0,r._)([(0,p.MZ)({type:String,json:{read:!1,write:!0}})],Qe.prototype,"type",void 0),Qe=We=(0,r._)([(0,u.$)("esri.form.elements.GroupElement")],Qe);const Je=qe(Qe),ze=Qe;var Xe,Ye=i(30524);const et=qe(ze);let tt=Xe=class extends o.A{constructor(e){super(e),this.description=null,this.elements=null,this.expressionInfos=null,this.preserveFieldValuesWhenHidden=!1,this.title=null}castElements(e){return Ge(e,et)}readElements(e,t){return Ke(t.formElements,et)}writeElements(e,t){t.formElements=Pe(e,et)}clone(){return new Xe({description:this.description,expressionInfos:(0,s.o8)(this.expressionInfos),elements:(0,s.o8)(this.elements),title:this.title,preserveFieldValuesWhenHidden:this.preserveFieldValuesWhenHidden})}async getFieldsUsed(e,t){const i=new Set,{description:n,elements:r,expressionInfos:o,title:s}=this;if(rt(i,e,n),rt(i,e,s),!r)return[];const l=function(e,t){if(!t||0===t.length)return[];const i=nt(e),n=[];for(const e of t)i.has(e.name)&&n.push(e.expression);return n}(r,o).map((t=>(0,Ye.Dx)(i,e,t)));await Promise.all(l);for(const n of r)it(i,{fieldsIndex:e,relationships:t},n);return Array.from(i).sort()}};function it(e,t,i){const{fieldsIndex:n}=t;if(!n||n.fields.length!==e.size)switch(rt(e,n,i.label),rt(e,n,i.description),i.type){case"field":(0,Ye.rq)(e,n,i.fieldName);break;case"group":i.elements.forEach((i=>it(e,t,i)));break;case"relationship":if(t.relationships){const r=t.relationships.find((e=>e.id===i.relationshipId));r&&(0,Ye.rq)(e,n,r.keyField)}(0,Ye._w)(e,n,i.orderByFields?.map((e=>e.field)));break;case"text":rt(e,n,i.text)}}function nt(e){const t=new Set;for(const i of e)if((0,l.kb)(t,i.visibilityExpression),!He(i))if(Le(i))(0,l.FB)(t,nt(i.elements));else if((0,l.kb)(t,i.editableExpression),Be(i)){const{requiredExpression:e,valueExpression:n}=i;(0,l.FB)(t,[e,n])}return t}function rt(e,t,i){(0,Ye._w)(e,t,(0,Ye.nw)(i))}(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],tt.prototype,"description",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],tt.prototype,"elements",void 0),(0,r._)([(0,a.w)("elements")],tt.prototype,"castElements",null),(0,r._)([(0,d.w)("elements",["formElements"])],tt.prototype,"readElements",null),(0,r._)([(0,y.K)("elements")],tt.prototype,"writeElements",null),(0,r._)([(0,p.MZ)({type:[h],json:{write:!0}})],tt.prototype,"expressionInfos",void 0),(0,r._)([(0,p.MZ)({type:Boolean,json:{default:!1,write:!0}})],tt.prototype,"preserveFieldValuesWhenHidden",void 0),(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],tt.prototype,"title",void 0),tt=Xe=(0,r._)([(0,u.$)("esri.form.FormTemplate")],tt);const ot=tt},47685:(e,t,i)=>{i.d(t,{Mk:()=>c,Zk:()=>u,w6:()=>f});var n=i(90237),r=i(65529),o=i(4718),s=i(74887),l=i(10107),p=(i(44208),i(53966),i(40608)),a=i(20816);const d=new r.A.EventEmitter;function u(e,t,i=null,n=!1){const r=(0,s.Tw)();return n=null==t||n,d.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:n,result:r.promise}),r}const y=Symbol();function c(e){return null!=e&&"object"==typeof e&&y in e}function h(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function m(e,t,i){const n=new URL(e).host,r=a.Z3.get(n),o=e=>!e||e===r;return o(t)&&o(i)||t===i}const f=e=>{var t;let i=class extends e{static{t=y}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:i,gdbVersion:n,mayReceiveServiceEdits:r,result:s}=e,l=t===this.url,p=null!=i&&null!=this.layerId&&i===this.layerId,a=h(this),d=h(this)&&m(t,n,this.gdbVersion);if(!l||a&&!d||!p&&!r)return;const u=s.then((e=>{if(this.lastEditsEventDate=new Date,p&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,o.o8)(e)),e;const i=e.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(i){const{adds:t,updates:n,deletes:r}=i.editedFeatures,s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],deletedFeatures:r?r.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],updatedFeatures:n?n.map((({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],editedFeatures:(0,o.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,o.o8)(e.historicMoment)};return this.emit("edits",s),s}const r={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,o.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,o.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,n,r.historicMoment)&&this.emit("edits",r),r})).then((e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,n,e.historicMoment)&&(this.historicMoment=e.historicMoment),e)));this.emit("apply-edits",{result:u})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:i,moment:n}=e,r=t===this.url,o=h(this),s=h(this)&&m(t,i,this.gdbVersion),l=h(this)&&!m(t,this.gdbVersion,null);r&&o&&s&&l&&"historicMoment"in this&&this.historicMoment!==n&&(this.historicMoment=n)},this.when().then((()=>{this.addHandles(function(e){return d.on("apply-edits",new WeakRef(e))}(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(function(e){return d.on("update-moment",new WeakRef(e))}(this._updateMomentHandler))}),(()=>{}))}_shouldUpdateHistoricMoment(e,t,i){return"historicMoment"in this&&this.historicMoment!==i&&(0,a.w5)(e,t)}};return(0,n._)([(0,l.MZ)()],i.prototype,"lastEditsEventDate",void 0),i=(0,n._)([(0,p.$)("esri.layers.mixins.EditBusLayer")],i),i}},54239:(e,t,i)=>{i.d(t,{A:()=>v});var n,r=i(90237),o=i(4576),s=i(66552),l=i(25482),p=i(83047),a=i(67076),d=i(10107),u=(i(44208),i(53966),i(36005)),y=i(40608),c=i(43937);const h=(0,s.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=h.jsonValues.slice();(0,o.Xy)(m,"orthometric");const f=(0,s.O)()({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 v=n=class extends l.A{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return h.write(e,t,i)}readHeightModel(e,t,i){return h.read(e)||(i?.messages&&i.messages.push(function(e,t){return new a.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return f.read(e)||(i?.messages&&i.messages.push(w(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,p.LA)(e)||f.read(e)||(i?.messages&&i.messages.push(w(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new n({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,p.k1)(t);return new n({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new n;return t.read(e,{origin:"web-scene"}),t}};function w(e,t){return new a.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,r._)([(0,d.MZ)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal",write:{isRequired:!0}}}}})],v.prototype,"heightModel",void 0),(0,r._)([(0,c.K)("web-scene","heightModel")],v.prototype,"writeHeightModel",null),(0,r._)([(0,u.w)(["web-scene","service"],"heightModel")],v.prototype,"readHeightModel",null),(0,r._)([(0,d.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:{writer:f.write,isRequired:!0}}}}})],v.prototype,"heightUnit",void 0),(0,r._)([(0,u.w)("web-scene","heightUnit")],v.prototype,"readHeightUnit",null),(0,r._)([(0,u.w)("service","heightUnit")],v.prototype,"readHeightUnitService",null),(0,r._)([(0,d.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],v.prototype,"vertCRS",void 0),(0,r._)([(0,u.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],v.prototype,"readVertCRS",null),v=n=(0,r._)([(0,y.$)("esri.geometry.HeightModelInfo")],v)},73133:(e,t,i)=>{i.d(t,{j:()=>n});const n=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},82935:(e,t,i)=>{i.d(t,{B:()=>c,e:()=>h});var n=i(90237),r=i(10107),o=(i(44208),i(53966),i(87811),i(36005)),s=i(40608),l=i(89317),p=i(30524),a=i(96184),d=i(73133),u=i(64272),y=i(26253);const c={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:l.K}}},h=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const n=i.timeOffset,r=d.j.fromJSON(i.timeOffsetUnits);return n&&r?new y.T({value:n,unit:r}):null}set timeInfo(e){(0,p.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n._)([(0,r.MZ)({type:u.T,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,n._)([(0,r.MZ)({type:y.T})],t.prototype,"timeOffset",void 0),(0,n._)([(0,o.w)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,n._)([(0,r.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,n._)([(0,r.MZ)(c)],t.prototype,"useViewTime",void 0),t=(0,n._)([(0,s.$)("esri.layers.mixins.TemporalLayer")],t),t}},83960:(e,t,i)=>{i.d(t,{X_:()=>s,oW:()=>p,zx:()=>l});var n=i(34727),r=i(83047);const o=96;function s(e,t){const i=t||e.extent,n=e.width,s=(0,r.GA)(i?.spatialReference);return i&&n?i.width/n*s*r.dy*o:0}function l(e,t,i){return function(e,t){return 0===t||(0,n.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,n.Sp)(e,t)||e>t}(e,i)}function p(e,t){return(0,n.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},87796:(e,t,i)=>{i.d(t,{j:()=>T});var n=i(90237),r=i(5503),o=i(4718),s=i(53966),l=i(10107),p=(i(44208),i(36005)),a=i(40608),d=i(43937),u=i(89317),y=i(5443),c=i(54239),h=i(16930),m=i(60694),f=i(10873),v=i(69540),w=i(25482),M=(i(87811),i(56400));let _=class extends(v.A.ClonableMixin(w.A)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,n._)([(0,l.MZ)()],_.prototype,"creatorField",void 0),(0,n._)([(0,l.MZ)()],_.prototype,"creationDateField",void 0),(0,n._)([(0,l.MZ)()],_.prototype,"editorField",void 0),(0,n._)([(0,l.MZ)()],_.prototype,"editDateField",void 0),(0,n._)([(0,l.MZ)()],_.prototype,"realm",void 0),(0,n._)([(0,l.MZ)((0,M.P6)("dateFieldsTimeReference",!0))],_.prototype,"timeZone",void 0),_=(0,n._)([(0,a.$)("esri.layers.support.EditFieldsInfo")],_);let g=class extends(v.A.ClonableMixin(w.A)){constructor(e){super(e)}};(0,n._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],g.prototype,"name",void 0),(0,n._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],g.prototype,"fields",void 0),(0,n._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],g.prototype,"isAscending",void 0),(0,n._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],g.prototype,"indexType",void 0),(0,n._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],g.prototype,"isUnique",void 0),(0,n._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],g.prototype,"description",void 0),g=(0,n._)([(0,a.$)("esri.layers.support.FeatureIndex")],g);var x=i(15426),b=i(83047);let Z=class extends(v.A.ClonableMixin(w.A)){constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};(0,n._)([(0,l.MZ)({type:String,json:{read:{source:"shapeAreaFieldName"}}})],Z.prototype,"shapeAreaField",void 0),(0,n._)([(0,l.MZ)({type:String,json:{read:{source:"shapeLengthFieldName"}}})],Z.prototype,"shapeLengthField",void 0),(0,n._)([(0,l.MZ)({type:String,json:{read:e=>b.dk.read(e)||b.Sk.read(e)}})],Z.prototype,"units",void 0),Z=(0,n._)([(0,a.$)("esri.layers.support.GeometryFieldsInfo")],Z);var I=i(37352),j=i(45067),F=i(22453),S=i(80451);let E=class extends(v.A.ClonableMixin(w.A)){constructor(e){super(e),this.code=null,this.defaultValues={},this.domains=null,this.name=null}readDomains(e){if(!e)return null;const t={};for(const i of Object.keys(e))t[i]=(0,S.rS)(e[i]);return t}writeDomains(e,t){if(!e)return;const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,n._)([(0,l.MZ)({type:Number,json:{write:!0}})],E.prototype,"code",void 0),(0,n._)([(0,l.MZ)({type:Object,json:{write:!0}})],E.prototype,"defaultValues",void 0),(0,n._)([(0,l.MZ)({json:{write:!0}})],E.prototype,"domains",void 0),(0,n._)([(0,p.w)("domains")],E.prototype,"readDomains",null),(0,n._)([(0,d.K)("domains")],E.prototype,"writeDomains",null),(0,n._)([(0,l.MZ)({type:String,json:{write:!0}})],E.prototype,"name",void 0),E=(0,n._)([(0,a.$)("esri.layers.support.Subtype")],E);const T=e=>{let t=class extends e{constructor(){super(...arguments),this.copyright=null,this.capabilities=null,this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.definitionExpression=null,this.displayField=null,this.editFieldsInfo=null,this.editingInfo=null,this.elevationInfo=null,this.fieldsIndex=null,this.floorInfo=null,this.fullExtent=null,this.gdbVersion=null,this.geometryFieldsInfo=null,this.geometryType=null,this.globalIdField=null,this.hasM=void 0,this.hasZ=void 0,this.heightModelInfo=null,this.historicMoment=null,this.indexes=new(r.A.ofType(g)),this.isTable=!1,this.layerId=void 0,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.preferredTimeZone=null,this.relationships=null,this.returnM=void 0,this.returnZ=void 0,this.serviceDefinitionExpression=null,this.serviceItemId=null,this.sourceJSON=null,this.spatialReference=h.A.WGS84,this.subtypeField=null,this.subtypes=null,this.trackIdField=null,this.uniqueIdFields=null,this.version=void 0}getFieldDomain(){throw new Error("Not implemented")}getField(e){return this.fieldsIndex.get(e)}get authenticationTriggerEvent(){if(!this.url)return null;const{capabilities:e}=this;if(e){const{query:t,operations:i,editing:n}=e;if(!t.supportsQueryByOthers||!t.supportsQueryByAnonymous)return"load";if(i.supportsEditing&&!(n.supportsUpdateByOthers&&n.supportsUpdateByAnonymous&&n.supportsDeleteByOthers&&n.supportsDeleteByAnonymous))return"load"}if((0,x.rQ)(this.serviceDefinitionExpression)||(0,x.rQ)(this.definitionExpression))return"load";if(this.userHasUpdateItemPrivileges){if((0,x.tG)(this))return"load";if(this.hasUpdateItemRestrictions)return e.operations.supportsQuery?"editing":"load"}if(this.userHasFullEditingPrivileges&&this.hasFullEditingRestrictions)return"editing";const t=this.editFieldsInfo;return(t?.creatorField||t?.editorField)&&e?.operations.supportsEditing?"editing":null}readCapabilitiesFromService(e,t){return(0,F.S)(t,this.url)}readEditingInfo(e,t){const{editingInfo:i}=t;return i?{lastEditDate:null!=i.lastEditDate?new Date(i.lastEditDate):null}:null}get effectiveCapabilities(){const e=this.capabilities;if(!e)return null;const t=(0,o.o8)(e),{operations:i,editing:n}=t;return(0,x.Pt)(this)?(this.userHasUpdateItemPrivileges&&(i.supportsQuery=!0),t):this.userHasUpdateItemPrivileges?(i.supportsAdd=i.supportsDelete=i.supportsEditing=i.supportsQuery=i.supportsUpdate=n.supportsDeleteByOthers=n.supportsGeometryUpdate=n.supportsUpdateByOthers=!0,t):(this.userHasFullEditingPrivileges&&i.supportsEditing&&(i.supportsAdd=i.supportsDelete=i.supportsUpdate=n.supportsGeometryUpdate=!0),t)}get effectiveEditingEnabled(){return!1}readGlobalIdFieldFromService(e,t){return(0,x.jD)(t)}get hasFullEditingRestrictions(){const e=this.capabilities;if(!e||(0,x.Pt)(this))return!1;const{operations:t,editing:i}=e;return t.supportsEditing&&!(t.supportsAdd&&t.supportsDelete&&t.supportsUpdate&&i.supportsGeometryUpdate)}get hasUpdateItemRestrictions(){const e=this.capabilities;if(!e)return!1;const{operations:t,editing:i}=e;return(0,x.Pt)(this)?!t.supportsQuery:!(t.supportsAdd&&t.supportsDelete&&t.supportsEditing&&t.supportsQuery&&t.supportsUpdate&&i.supportsDeleteByOthers&&i.supportsGeometryUpdate&&i.supportsUpdateByOthers)}readIsTableFromService(e,t){return"Table"===t.type}readMaxScale(e,t){return t.effectiveMaxScale||e||0}readMinScale(e,t){return t.effectiveMinScale||e||0}readObjectIdFieldFromService(e,t){return(0,x.Zm)(t)}readServiceDefinitionExpression(e,t){return t.definitionQuery||t.definitionExpression}readUniqueIdFields(e,t){return t.uniqueIdInfo?.OIDFieldContainsHashValue?t.uniqueIdInfo.fields:null}set url(e){if(null==e)return void this._set("url",e);const t=(0,m.HZ)({layer:this,url:e,nonStandardUrlAllowed:!0,logger:s.A.getLogger(this)});this._set("url",t.url),null!=t.layerId&&this._set("layerId",t.layerId)}writeUrl(e,t,i,n){(0,m.LS)(this,e,null,t,n)}readVersion(e,t){return(0,x.$4)(t)}};return(0,n._)([(0,l.MZ)({readOnly:!0})],t.prototype,"authenticationTriggerEvent",null),(0,n._)([(0,l.MZ)({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],t.prototype,"copyright",void 0),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1,origins:{service:{read:{source:["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","isDataBranchVersioned","isDataVersioned","maxRecordCount","maxRecordCountFactor","maxUniqueIDCount","ownershipBasedAccessControlForFeatures","standardMaxRecordCount","supportedQueryFormats","supportsAdvancedQueries","supportsApplyEditsWithGlobalIds","supportsAttachmentsByUploadId","supportsAttachmentsResizing","supportsCalculate","supportsCoordinatesQuantization","supportsExceedsLimitStatistics","supportsFieldDescriptionProperty","supportsQuantizationEditMode","supportsRollbackOnFailureParameter","supportsStatistics","supportsTruncate","supportsValidateSql","tileMaxRecordCount","useStandardizedQueries"]}}}}})],t.prototype,"capabilities",void 0),(0,n._)([(0,p.w)("service","capabilities")],t.prototype,"readCapabilitiesFromService",null),(0,n._)([(0,l.MZ)((0,M.P6)("dateFieldsTimeReference"))],t.prototype,"dateFieldsTimeZone",void 0),(0,n._)([(0,l.MZ)({type:Boolean})],t.prototype,"datesInUnknownTimezone",void 0),(0,n._)([(0,l.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],t.prototype,"definitionExpression",void 0),(0,n._)([(0,l.MZ)({type:String,json:{origins:{service:{read:{source:"displayField"}}}}})],t.prototype,"displayField",void 0),(0,n._)([(0,l.MZ)({readOnly:!0,type:_})],t.prototype,"editFieldsInfo",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],t.prototype,"editingInfo",void 0),(0,n._)([(0,p.w)("editingInfo")],t.prototype,"readEditingInfo",null),(0,n._)([(0,l.MZ)({readOnly:!0})],t.prototype,"effectiveCapabilities",null),(0,n._)([(0,l.MZ)()],t.prototype,"effectiveEditingEnabled",null),(0,n._)([(0,l.MZ)((()=>{const e=(0,o.o8)(f.Yj),t=e.json.origins;return t["web-map"]={read:!1,write:!1},t["portal-item"]={read:!1,write:!1},e})())],t.prototype,"elevationInfo",void 0),(0,n._)([(0,l.MZ)()],t.prototype,"fieldsIndex",void 0),(0,n._)([(0,l.MZ)({type:I.A,json:{name:"layerDefinition.floorInfo",write:{layerContainerTypes:u.K}}})],t.prototype,"floorInfo",void 0),(0,n._)([(0,l.MZ)({type:y.A,json:{origins:{service:{read:{source:"extent"}}}}})],t.prototype,"fullExtent",void 0),(0,n._)([(0,l.MZ)()],t.prototype,"gdbVersion",void 0),(0,n._)([(0,l.MZ)({readOnly:!0,type:Z,json:{read:{source:"geometryProperties"}}})],t.prototype,"geometryFieldsInfo",void 0),(0,n._)([(0,l.MZ)({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:x.iX.read}}}})],t.prototype,"geometryType",void 0),(0,n._)([(0,l.MZ)({type:String})],t.prototype,"globalIdField",void 0),(0,n._)([(0,p.w)("service","globalIdField",["globalIdField","fields"])],t.prototype,"readGlobalIdFieldFromService",null),(0,n._)([(0,l.MZ)({readOnly:!0})],t.prototype,"hasFullEditingRestrictions",null),(0,n._)([(0,l.MZ)({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasM",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],t.prototype,"hasUpdateItemRestrictions",null),(0,n._)([(0,l.MZ)({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasZ",void 0),(0,n._)([(0,l.MZ)({readOnly:!0,type:c.A})],t.prototype,"heightModelInfo",void 0),(0,n._)([(0,l.MZ)({type:Date})],t.prototype,"historicMoment",void 0),(0,n._)([(0,l.MZ)({type:r.A.ofType(g),readOnly:!0})],t.prototype,"indexes",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],t.prototype,"isTable",void 0),(0,n._)([(0,p.w)("service","isTable",["type"])],t.prototype,"readIsTableFromService",null),(0,n._)([(0,l.MZ)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],t.prototype,"layerId",void 0),(0,n._)([(0,l.MZ)(f.hG)],t.prototype,"maxScale",void 0),(0,n._)([(0,p.w)("service","maxScale",["maxScale","effectiveMaxScale"])],t.prototype,"readMaxScale",null),(0,n._)([(0,l.MZ)(f.hn)],t.prototype,"minScale",void 0),(0,n._)([(0,p.w)("service","minScale",["minScale","effectiveMinScale"])],t.prototype,"readMinScale",null),(0,n._)([(0,l.MZ)({type:String})],t.prototype,"objectIdField",void 0),(0,n._)([(0,p.w)("service","objectIdField",["objectIdField","fields"])],t.prototype,"readObjectIdFieldFromService",null),(0,n._)([(0,l.MZ)((0,M.P6)("preferredTimeReference"))],t.prototype,"preferredTimeZone",void 0),(0,n._)([(0,l.MZ)({type:[j.A],readOnly:!0})],t.prototype,"relationships",void 0),(0,n._)([(0,l.MZ)({type:Boolean})],t.prototype,"returnM",void 0),(0,n._)([(0,l.MZ)({type:Boolean})],t.prototype,"returnZ",void 0),(0,n._)([(0,l.MZ)({readOnly:!0,json:{write:!1}})],t.prototype,"serverGens",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],t.prototype,"serviceDefinitionExpression",void 0),(0,n._)([(0,p.w)("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],t.prototype,"readServiceDefinitionExpression",null),(0,n._)([(0,l.MZ)({type:String,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],t.prototype,"serviceItemId",void 0),(0,n._)([(0,l.MZ)()],t.prototype,"sourceJSON",void 0),(0,n._)([(0,l.MZ)({type:h.A,json:{origins:{service:{read:{source:"extent.spatialReference"}}}}})],t.prototype,"spatialReference",void 0),(0,n._)([(0,l.MZ)({type:String,readOnly:!0,json:{origins:{service:{read:!0}}}})],t.prototype,"subtypeField",void 0),(0,n._)([(0,l.MZ)({type:[E],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],t.prototype,"subtypes",void 0),(0,n._)([(0,l.MZ)({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],t.prototype,"trackIdField",void 0),(0,n._)([(0,l.MZ)({type:[String],readOnly:!0})],t.prototype,"uniqueIdFields",void 0),(0,n._)([(0,p.w)("service","uniqueIdFields",["uniqueIdInfo.OIDFieldContainsHashValue","uniqueIdInfo.fields"])],t.prototype,"readUniqueIdFields",null),(0,n._)([(0,l.MZ)(f.OZ)],t.prototype,"url",null),(0,n._)([(0,d.K)("url")],t.prototype,"writeUrl",null),(0,n._)([(0,l.MZ)({json:{origins:{service:{read:!0}},read:!1}})],t.prototype,"version",void 0),(0,n._)([(0,p.w)("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],t.prototype,"readVersion",null),t=(0,n._)([(0,a.$)("esri.layers.mixins.FeatureLayerBase")],t),t}},91908:(e,t,i)=>{i.d(t,{D:()=>o});var n=i(60694);const r=[];function o(e,t){if((0,n.Wo)(e.url??""))return!0;const{wkid:i}=t;for(const t of r){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}r.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=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),r.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}]),r.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}]),r.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}]),r.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}])},96184:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(90237),r=i(69540),o=i(25482),s=i(10107),l=(i(44208),i(53966),i(87811),i(36005)),p=i(40608),a=i(43937),d=i(64272),u=i(26253),y=i(56400);function c(e,t){return u.T.fromJSON({value:e,unit:t})}let h=class extends(r.A.ClonableMixin(o.A)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?d.T.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?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,n._)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,n._)([(0,s.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,n._)([(0,s.MZ)({type:d.T,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,n._)([(0,l.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,n._)([(0,a.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,n._)([(0,s.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,n._)([(0,s.MZ)({type:u.T,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,n._)([(0,l.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,n._)([(0,a.K)("interval")],h.prototype,"writeInterval",null),(0,n._)([(0,s.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,n._)([(0,s.MZ)((0,y.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,n._)([(0,s.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,n._)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,n._)([(0,s.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,n._)([(0,p.$)("esri.layers.support.TimeInfo")],h)}}]);
|