@arcgis/core 5.2.0-next.139 → 5.2.0-next.140
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/arcgisGlobal.d.ts +10 -10
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{86d8ccb795611cd6d071.js → 00a600c71ceebe7bfeee.js} +1 -1
- package/assets/esri/core/workers/chunks/0193df3f9fb23633da87.js +1 -0
- package/assets/esri/core/workers/chunks/{3a0b19275751a3a73cd5.js → 07aa6d36f1006b6ab7ff.js} +1 -1
- package/assets/esri/core/workers/chunks/{a054da6cbd8ee4774a57.js → 1f3148cebee1961249a4.js} +1 -1
- package/assets/esri/core/workers/chunks/222af8522773c7dc80b1.js +1 -0
- package/assets/esri/core/workers/chunks/{a4d0df0177ac28e42219.js → 303fde8f3459dde16555.js} +1 -1
- package/assets/esri/core/workers/chunks/{51dd6df99dfe443df218.js → 350540770781b281c39a.js} +1 -1
- package/assets/esri/core/workers/chunks/{f5f4521119d2ce2465d7.js → 3b017b718ea2d4ed498f.js} +1 -1
- package/assets/esri/core/workers/chunks/{1bf5e4b56c32a853f200.js → 3e81dfc9d621ece038fe.js} +1 -1
- package/assets/esri/core/workers/chunks/{685cef5d2245450dc695.js → 4097edb2ad522dff50ce.js} +1 -1
- package/assets/esri/core/workers/chunks/{2398d1ee310bbbc1e20c.js → 4d82db661365daa513a6.js} +1 -1
- package/assets/esri/core/workers/chunks/{544a1326c12e71b33dd8.js → 641d196a554bd07f729e.js} +1 -1
- package/assets/esri/core/workers/chunks/{dce78ea26d078d9c4667.js → 798a63653f82c0e842c5.js} +1 -1
- package/assets/esri/core/workers/chunks/84fcbf7a1d04f01685d1.js +1 -0
- package/assets/esri/core/workers/chunks/{459d5dca9c915b13cfce.js → 8e511079918e2fd9261f.js} +1 -1
- package/assets/esri/core/workers/chunks/{0a8463fe687d3193dd8b.js → fc5a36e54929e03efa86.js} +1 -1
- package/assets/esri/libs/librust-parquet/pkg/parquet_bg.wasm +0 -0
- package/config.js +1 -1
- package/kernel.js +1 -1
- package/{layers/list/BasemapItemCollection.d.ts → layerList/BasemapLayerListModel.d.ts} +14 -14
- package/layerList/BasemapLayerListModel.js +2 -0
- package/{layers/list/CatalogItemCollection.d.ts → layerList/CatalogLayerListModel.d.ts} +15 -15
- package/layerList/CatalogLayerListModel.js +2 -0
- package/{layers/list → layerList}/Item.d.ts +22 -22
- package/layerList/Item.js +2 -0
- package/{layers/list → layerList}/ItemPanel.d.ts +3 -3
- package/layerList/ItemPanel.js +2 -0
- package/{layers/list/LayerItemCollection.d.ts → layerList/LayerListModel.d.ts} +16 -16
- package/layerList/LayerListModel.js +2 -0
- package/{layers/list → layerList}/TableItem.d.ts +11 -11
- package/layerList/TableItem.js +2 -0
- package/{layers/list → layerList}/TableItemPanel.d.ts +2 -2
- package/layerList/TableItemPanel.js +2 -0
- package/{layers/list/TableItemCollection.d.ts → layerList/TableListModel.d.ts} +15 -15
- package/layerList/TableListModel.js +2 -0
- package/{layers/list → layerList}/types.d.ts +29 -29
- package/layers/support/LabelExpressionInfo.d.ts +7 -1
- package/layers/support/LabelExpressionInfo.js +1 -1
- package/package.json +2 -2
- package/popup/{FeatureContent.d.ts → FeatureModel.d.ts} +11 -11
- package/popup/{FeatureContent.js → FeatureModel.js} +1 -1
- package/popup/{FeatureContentCollection.d.ts → FeaturesModel.d.ts} +62 -62
- package/popup/FeaturesModel.js +2 -0
- package/widgets/DirectionalPad/DirectionalPadViewModel.d.ts +2 -0
- package/widgets/DirectionalPad/types.d.ts +5 -1
- package/widgets/DirectionalPad.d.ts +1 -0
- package/widgets/Feature/FeatureViewModel.d.ts +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/Features/FeaturesViewModel.d.ts +2 -2
- package/widgets/Features/FeaturesViewModel.js +1 -1
- package/widgets/LayerList/LayerListViewModel.d.ts +4 -4
- package/widgets/LayerList/LayerListViewModel.js +1 -1
- package/widgets/LayerList/ListItem.d.ts +5 -5
- package/widgets/LayerList/ListItemPanel.d.ts +4 -4
- package/widgets/LayerList/types.d.ts +7 -7
- package/widgets/Popup/PopupViewModel.d.ts +1 -1
- package/widgets/Popup/PopupViewModel.js +1 -1
- package/widgets/support/SelectionList/FeatureItem.d.ts +9 -2
- package/assets/esri/core/workers/chunks/069bd90cbb7377e2e4bc.js +0 -1
- package/assets/esri/core/workers/chunks/f3214bccb039338acadf.js +0 -1
- package/assets/esri/core/workers/chunks/fd2cea0761587adaa6c9.js +0 -1
- package/layers/list/BasemapItemCollection.js +0 -2
- package/layers/list/CatalogItemCollection.js +0 -2
- package/layers/list/Item.js +0 -2
- package/layers/list/ItemPanel.js +0 -2
- package/layers/list/LayerItemCollection.js +0 -2
- package/layers/list/TableItem.js +0 -2
- package/layers/list/TableItemCollection.js +0 -2
- package/layers/list/TableItemPanel.js +0 -2
- package/popup/FeatureContentCollection.js +0 -2
- /package/{layers/list → layerList}/support/layerListUtils.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1560,3312,4500,6217],{52106(e,t,r){r.d(t,{A:()=>M});var i,l,o=r(32198),n=r(37838),s=r(69540),a=r(51447),u=r(25482),p=r(53966),c=r(36708),y=r(24326),d=r(91429),g=r(12195),f=r(65864),h=r(50498),m=r(55156),b=r(60950),v=r(54339),w=r(94128),x=r(33910);const S=Symbol("meshGeometryHandles");function C(e){if(null==e)return null;let t={};for(let r in e){let i=e[r];i&&(t[r]=i.toJSON())}return 0===Object.keys(t).length?null:t}let M=class extends((0,s.OU)(u.o)){static{i=w.Z}static{l=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,y.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new l({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,m.I)(this.origin);if(e)return(0,v.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){let e=(0,m.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:C(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,g.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let l={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(l.action=i),"attributes"===e&&(l.attributeName=i),this.layer.graphicChanged(l)}_watchMeshGeometryChanges(){this.removeHandles(S);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,c.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],S)}};(0,o.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,f.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],M.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,d.MZ)({value:null})],M.prototype,"attributes",null),(0,o.Cg)([(0,d.MZ)({value:null,types:h.yR,json:{read:f.rS}})],M.prototype,"geometry",null),(0,o.Cg)([(0,d.MZ)()],M.prototype,"distance",void 0),(0,o.Cg)([(0,d.MZ)({type:Boolean})],M.prototype,"isAggregate",void 0),(0,o.Cg)([(0,d.MZ)({clonable:!1})],M.prototype,"layer",void 0),(0,o.Cg)([(0,d.MZ)({clonable:"reference"})],M.prototype,"origin",void 0),(0,o.Cg)([(0,d.MZ)({type:n.A,value:null})],M.prototype,"popupTemplate",null),(0,o.Cg)([(0,d.MZ)({clonable:"reference"})],M.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,d.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],M.prototype,"statisticsAggregatedIds",void 0),(0,o.Cg)([(0,d.MZ)({value:null,types:x.Es})],M.prototype,"symbol",null),(0,o.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],M.prototype,"_version",void 0),(0,o.Cg)([(0,d.MZ)({type:Boolean,value:!0})],M.prototype,"visible",null),M=l=(0,o.Cg)([(0,d.$K)("esri.Graphic")],M)},19334(e,t,r){r.d(t,{e:()=>n});var i=r(54639),l=r(14112);class o{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(e){return this._geometry}toGxGeometry(e){return e.fromAccessorGeometry(this._geometry)}}function n(e){if(null==e)return null;switch(e.type){case"point":if((0,l.e6)(e))return null;break;case"polygon":if((0,l.Wq)(e))return null;break;case"polyline":if((0,l.IY)(e))return null;break;case"multipoint":if((0,l.DG)(e))return null;break;case"extent":if((0,l.As)(e))return null;break;default:return null}let t=i.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new o(e));return t.asAccessorGeometry(),t}},36983(e,t,r){r.d(t,{R:()=>u,p:()=>p});var i=r(54639),l=r(14112),o=r(16930),n=r(60408),s=r(65864);class a{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){let t=(0,s.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function u(e,t){if("object"!=typeof e||!e)return null;let r=t;if("spatialReference"in e&&(e.spatialReference instanceof o.A?r=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(r=new o.A,r.read(e.spatialReference))),null==r)throw Error("Spatial reference required");return(0,n.fT)(e)?p("point",e,r):(0,n.Rg)(e)?p("polyline",e,r):(0,n.Bi)(e)?p("polygon",e,r):(0,n.U9)(e)?p("multipoint",e,r):(0,n.ZC)(e)?p("extent",e,r):null}function p(e,t,r){if(null==t)return null;let o=!1,n=!1;switch(e){case"point":if((0,l.e6)(t))return null;o=void 0!==t.z,n=void 0!==t.m;break;case"polygon":if((0,l.Wq)(t))return null;o=!0===t.hasZ,n=!0===t.hasM;break;case"polyline":if((0,l.IY)(t))return null;o=!0===t.hasZ,n=!0===t.hasM;break;case"multipoint":if((0,l.DG)(t))return null;o=!0===t.hasZ,n=!0===t.hasM;break;case"extent":if((0,l.As)(t))return null;o=null!=t.zmin&&null!=t.zmax,n=null!=t.mmin&&null!=t.mmax;break;default:throw Error("Unsupported geometry type: "+t.type)}return i.R.of(e,r,o,n,new a(t))}},14112(e,t,r){function i(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function l(e){if(0===(e.curveRings??e.rings).length)return!0;for(let t of e.curveRings??e.rings)if(t.length>0)return!1;return!0}function o(e){if(0===(e.curvePaths??e.paths).length)return!0;for(let t of e.curvePaths??e.paths)if(t.length>0)return!1;return!0}function n(e){return 0===e.points.length}function s(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}r.d(t,{As:()=>s,DG:()=>n,IY:()=>o,Wq:()=>l,e6:()=>i})},6797(e,t,r){r.d(t,{Ui:()=>y});var i=r(69622),l=r(7762),o=r(88620);const n=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function s(e){return e instanceof i.A}function a(e){return e instanceof l.A?Object.keys(e.items):s(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof l.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function c(e,t){let r=e.diff;if(r&&"function"==typeof r)return r(e,t);let i=a(e),l=a(t);if(0===i.length&&0===l.length)return;if(!i.length||!l.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let o=l.filter(e=>!i.includes(e)),y=i.filter(e=>!l.includes(e)),d=i.filter(r=>l.includes(r)&&u(e,r)!==u(t,r)).concat(o,y).sort(),g=p(e);if(g&&n.has(g)&&d.length)return{type:"complete",oldValue:e,newValue:t};let f,h=s(e)&&s(t);for(let i of d){let l,o=u(e,i),n=u(t,i);if((h||"function"!=typeof o&&"function"!=typeof n)&&o!==n&&(null!=o||null!=n)){if(r&&r[i]&&"function"==typeof r[i])l=r[i]?.(o,n);else if(o instanceof Date&&n instanceof Date){if(o.getTime()===n.getTime())continue;l={type:"complete",oldValue:o,newValue:n}}else l="object"==typeof o&&"object"==typeof n&&p(o)===p(n)?c(o,n):{type:"complete",oldValue:o,newValue:n};null!=l&&(null==f?f={type:"partial",diff:{[i]:l}}:f.diff[i]=l)}}return f}function y(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:c(e,t)}},13069(e,t,r){r.d(t,{AG:()=>s,lk:()=>l,vD:()=>n,yS:()=>o});const i="randomUUID"in crypto;function l(){if(i)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${l().toUpperCase()}}`}function n(){return`{${l()}}`}function s(e){let t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},55156(e,t,r){r.d(t,{I:()=>l});const i=Symbol("idFieldsProviderSymbol");function l(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},54339(e,t,r){function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let r=[];for(let i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function l(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>l})},52136(e,t,r){var i=r(32198),l=r(91429);r.d(t,["p",0,e=>{let t=e,r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,i.Cg)([(0,l.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,l.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},32756(e,t,r){r.d(t,{Rr:()=>s});var i=r(32198),l=r(93637),o=r(91429),n=r(91880);function s(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let l=new n.A;return l.read(i,r),[l]}const a={type:[n.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:s},write:{writer:function(e,t,r,i){let o=e.find(e=>!!e.field);o&&(0,l.sM)(r,[o.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,o.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},28032(e,t,r){r.d(t,{A:()=>a});var i=r(32198),l=r(69540),o=r(25482),n=r(91429),s=r(56400);let a=class extends((0,l.OU)(o.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,n.MZ)()],a.prototype,"creatorField",void 0),(0,i.Cg)([(0,n.MZ)()],a.prototype,"creationDateField",void 0),(0,i.Cg)([(0,n.MZ)()],a.prototype,"editorField",void 0),(0,i.Cg)([(0,n.MZ)()],a.prototype,"editDateField",void 0),(0,i.Cg)([(0,n.MZ)()],a.prototype,"realm",void 0),(0,i.Cg)([(0,n.MZ)((0,s.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,i.Cg)([(0,n.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,r){r.d(t,{A:()=>u});var i=r(32198),l=r(69540),o=r(66552),n=r(25482),s=r(91429);const a=new o.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,l.OU)(n.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureTemplate")],u)},33143(e,t,r){r.d(t,{A:()=>c});var i=r(32198),l=r(69540),o=r(25482),n=r(91429),s=r(8631),a=r(29005),u=r(36005),p=r(43937);let c=class extends((0,l.OU)(o.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){let t={};for(let r of Object.keys(e))t[r]=(0,s.r)(e[r]);return t}writeDomains(e,t){let r={};for(let t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],c.prototype,"id",void 0),(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],c.prototype,"domains",void 0),(0,i.Cg)([(0,u.w)("domains")],c.prototype,"readDomains",null),(0,i.Cg)([(0,p.K)("domains")],c.prototype,"writeDomains",null),(0,i.Cg)([(0,n.MZ)({type:[a.A],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,i.Cg)([(0,n.$K)("esri.layers.support.FeatureType")],c)},46499(e,t,r){r.d(t,{A:()=>M});var i,l,o=r(32198),n=(r(44208),r(66552)),s=r(25482),a=r(4718),u=r(90629),p=r(91429),c=r(90360),y=r(73913),d=r(32730),g=r(77548),f=r(59868),h=r(73838),m=r(33910),b=r(36005),v=r(43937);const w=new n.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function x(e,t,r){return{enabled:!(0,g.TU)(r?.layer)}}function S(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function C(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let M=class extends s.o{static{i=d.vK}static{l=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),l=i[3],o=r(t[i[4]],i[5],i[6]);switch(l){case"AND":return e&&o;case"OR":return e||o}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=f.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,d.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,d.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&S(i))e=new y.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let l=e.toJSON(i);l.expression&&(t[r]=l)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,d.XJ)(this)}getLabelExpressionArcade(){return(0,d.BI)(this)}getLabelExpressionSingleField(){return(0,d.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new l({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,a.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],M.prototype,"name",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:x}}}}})],M.prototype,"allowOverrun",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:x}}}}})],M.prototype,"deconflictionStrategy",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&C(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],M.prototype,"labelExpression",void 0),(0,o.Cg)([(0,b.w)("labelExpression")],M.prototype,"readLabelExpression",null),(0,o.Cg)([(0,v.K)("labelExpression")],M.prototype,"writeLabelExpression",null),(0,o.Cg)([(0,p.MZ)({type:y.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return S(e)||C(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],M.prototype,"labelExpressionInfo",void 0),(0,o.Cg)([(0,v.K)("labelExpressionInfo")],M.prototype,"writeLabelExpressionInfo",null),(0,o.Cg)([(0,p.MZ)({type:w.apiValues,json:{type:w.jsonValues,read:w.read,write:w.write}})],M.prototype,"labelPlacement",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],M.prototype,"offsetDistance",void 0),(0,o.Cg)([(0,p.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],M.prototype,"labelPosition",void 0),(0,o.Cg)([(0,p.MZ)({type:Number})],M.prototype,"maxScale",void 0),(0,o.Cg)([(0,v.K)("maxScale")],M.prototype,"writeMaxScale",null),(0,o.Cg)([(0,p.MZ)({type:Number})],M.prototype,"minScale",void 0),(0,o.Cg)([(0,v.K)("minScale")],M.prototype,"writeMinScale",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:x}}}}})],M.prototype,"repeatLabel",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,cast:u.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:x}}}}})],M.prototype,"repeatLabelDistance",null),(0,o.Cg)([(0,p.MZ)({types:m.em,json:{types:m.em,origins:{"portal-item":{types:m.em,read:{reader:(0,c.C)({types:m.em})},default:null},"web-scene":{types:m.Rv,read:{reader:(0,c.C)({types:m.Rv})},write:h.oO,default:null}},write:h.oO,default:null}})],M.prototype,"symbol",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"useCodedValues",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],M.prototype,"where",void 0),M=l=(0,o.Cg)([(0,p.$K)("esri.layers.support.LabelClass")],M)},73913(e,t,r){r.d(t,{A:()=>p});var i,l=r(32198),o=r(25482),n=r(91429),s=r(32730),a=r(36005),u=r(43937);let p=class extends o.o{static{i=this}constructor(e){super(e),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,s.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,s.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({expression:this.expression,title:this.title,value:this.value})}};(0,l.Cg)([(0,n.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"expression",void 0),(0,l.Cg)([(0,a.w)("expression",["expression","value"])],p.prototype,"readExpression",null),(0,l.Cg)([(0,u.K)("expression")],p.prototype,"writeExpression",null),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"title",void 0),(0,l.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],p.prototype,"value",void 0),p=i=(0,l.Cg)([(0,n.$K)("esri.layers.support.LabelExpressionInfo")],p)},37352(e,t,r){r.d(t,{A:()=>a});var i,l=r(32198),o=r(7762),n=r(25482),s=r(91429);let a=i=class extends n.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,l.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,l.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,l.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=i=(0,l.Cg)([(0,s.$K)("esri.layers.support.LayerFloorInfo")],a)},91880(e,t,r){r.d(t,{A:()=>u});var i,l=r(32198),o=r(66552),n=r(25482),s=r(91429);const a=new o.J({asc:"ascending",desc:"descending"});let u=class extends n.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,l.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,l.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,l.Cg)([(0,s.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],u.prototype,"order",void 0),u=i=(0,l.Cg)([(0,s.$K)("esri.layers.support.OrderByInfo")],u)},45067(e,t,r){r.d(t,{A:()=>p});var i=r(32198),l=r(69540),o=r(66552),n=r(25482),s=r(91429);const a=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let p=class extends((0,l.OU)(n.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,s.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"cardinality",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"catalogID"}})],p.prototype,"catalogId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"composite",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyField",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:u.read,write:u.write}})],p.prototype,"role",void 0),p=(0,i.Cg)([(0,s.$K)("esri.layers.support.Relationship")],p)},41560(e,t,r){r.d(t,{Ch:()=>n,mW:()=>o});var i=r(34727),l=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function n(e,t,r){let o=function(e){if("manual"===u(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],p(r)),t[1]=Math.min(t[1],c(i));return t}(e);if(o&&((0,i.gg)(t,o[0])||(0,i.ZH)(r,o[1])))return"";let n=Array.from(s(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;let l=p(e.at(0)?.minScale),o=c(e.at(-1)?.maxScale);if((0,i.ZH)(l,t)||(0,i.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],l=e[t+1];if((0,i.ZH)(p(l.minScale),c(r.maxScale)))return!0}return!1}(n,t,r)?"1=1":n.map(e=>e.where||"1=1").reduce((e,t)=>(0,l.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*s(e,t,r){if("manual"===u(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,l){return e=p(e),r=p(r),t=c(t),!(!(0,i.Sp)(r,e)&&(l??r)>e||(0,i.Hx)(t,r)||void 0!==l&&(0,i.Sp)(l,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function p(e){return e||1/0}function c(e){return e||0}},32730(e,t,r){r.d(t,{BI:()=>c,D3:()=>u,XJ:()=>p,lc:()=>a,mX:()=>d,rU:()=>y,tH:()=>b,zA:()=>w});var i=r(799);const l=RegExp("__begin__","ig"),o=RegExp("__end__","ig"),n=RegExp("^__begin__","i"),s=RegExp("__end__$","i");function a(e){return e.replaceAll(RegExp("\\[","g"),"{").replaceAll(RegExp("\\]","g"),"}")}function u(e){return e.replaceAll(RegExp("\\{","g"),"[").replaceAll(RegExp("\\}","g"),"]")}function p(e){let t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=a(e.labelExpression),t.type="conventional"),t}function c(e){let t=p(e);if(!t)return null;switch(t.type){case"conventional":return d(t.expression);case"arcade":return t.expression}return null}function y(e){let t=p(e);if(!t)return null;switch(t.type){case"conventional":return function(e){return(e?.match(g))?.[1].trim()||null}(t.expression);case"arcade":return b(t.expression)}return null}function d(e){let t;return e?(t=(0,i.HC)(e,e=>'__begin__$feature["'+e+'"]__end__'),t=n.test(t)?t.replace(n,""):'"'+t,t=s.test(t)?t.replace(s,""):t+'"',t=t.replaceAll(l,'" + ').replaceAll(o,' + "')):t='""',t}const g=/^\s*\{([^}]+)\}\s*$/i,f=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,h=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,m=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function b(e){if(!e)return null;let t=f.exec(e)||h.exec(e);return t?t[1]||t[3]:(t=m.exec(e),t?t[2]:null)}const v=Symbol("LabelClassInstance");function w(e){return"object"==typeof e&&!!e&&v in e}r.d(t,["vK",0,v])},39383(e,t,r){r.d(t,{w:()=>a,z:()=>c});var i=r(49186),l=r(53966),o=r(46499);const n=()=>l.A.getLogger("esri.layers.support.labelingInfo"),s=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{let i=new o.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(s,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],p={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function c(e,t){let r=[];for(let l of e){let e=l.labelPlacement,o=p[t];if(!l.symbol)return n().warn("No ILabelClass symbol specified."),[];if(!o)return n().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(o.includes(e))r.push(l);else{let i=o[0];e&&n().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let s=l.clone();s.labelPlacement=i,r.push(s)}}return r}},22671(e,t,r){r.d(t,{A:()=>b});var i,l=r(32198),o=r(52106),n=r(66552),s=r(25482),a=r(4718),u=r(91429),p=r(16930),c=r(60408),y=r(65864),d=r(50498),g=r(20437),f=r(36005),h=r(43937);const m=new n.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=i=class extends s.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,o.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);let{features:l}=this;if(l)for(let e of l)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,y.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=p.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,l]}=e,o=this.features,n=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((l-e)/r));for(let e=0,t=o.length;e<t;e++)n?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,l],scale:[o,n]}=r,s=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;s=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*o+i,e=>l-e*n,s,a);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=p.A.fromJSON(t.spatialReference),l=[];for(let t=0;t<e.length;t++){let o=e[t],n=r.fromJSON(o),s=o.geometry?.spatialReference;null!=n.geometry&&!s&&(n.geometry.spatialReference=i);let a=o.aggregateGeometries,u=n.aggregateGeometries;if(a&&null!=u)for(let e in u){let t=u[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}l.push(n)}return l}_quantizePoints(e,t,r){let i,l,o=[];for(let n=0,s=e.length;n<s;n++){let s=e[n];if(n>0){let e=t(s[0]),n=r(s[1]);(e!==i||n!==l)&&(o.push([e-i,n-l]),i=e,l=n)}else i=t(s[0]),l=r(s[1]),o.push([i,l])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,c.Bi)(e)?e.rings:e.paths,l=[];for(let e=0,o=i.length;e<o;e++){let o=i[e],n=this._quantizePoints(o,t,r);n&&l.push(n)}return l.length>0?((0,c.Bi)(e)?e.rings=l:e.paths=l,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,l){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let o,n,s=(0,c.Bi)(e)?e.rings:e.paths;for(let e=0,i=s.length;e<i;e++){let i=s[e];for(let e=0,l=i.length;e<l;e++){let l=i[e];e>0?(o+=l[0],n+=l[1]):(o=l[0],n=l[1]),l[0]=t(o),l[1]=r(n)}}if(i&&l)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=l(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(l)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=l(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),l&&null!=e.mmax&&null!=e.mmin&&(e.mmax=l(e.mmax),e.mmin=l(e.mmin))}:"multipoint"===e?e=>{let o,n,s=e.points;for(let e=0,i=s.length;e<i;e++){let i=s[e];e>0?(o+=i[0],n+=i[1]):(o=i[0],n=i[1]),i[0]=t(o),i[1]=r(n)}if(i&&l)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2]),t[3]=l(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2])}else if(l)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=l(t[2])}}:null}};(0,l.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,l.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,l.Cg)([(0,u.MZ)({type:[o.A],json:{write:!0}})],b.prototype,"features",void 0),(0,l.Cg)([(0,f.w)("features")],b.prototype,"readFeatures",null),(0,l.Cg)([(0,u.MZ)({type:[g.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,l.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],b.prototype,"geometryType",void 0),(0,l.Cg)([(0,h.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,l.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,l.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,l.Cg)([(0,u.MZ)({types:d.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,l.Cg)([(0,f.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,l.Cg)([(0,u.MZ)({type:p.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,l.Cg)([(0,h.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,l.Cg)([(0,u.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=i=(0,l.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){var i=r(32198),l=r(66552),o=r(53966),n=r(91429),s=r(93223);const a=(0,l.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",p="field";r.d(t,["K",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&p||r&&u||null,t&&r&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===p||e===u)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,n.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,s.e)(a,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,n.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,a])},93470(e,t,r){const i=[252,146,31,255],l={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,l,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,o])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1560,6151],{52106(e,t,r){r.d(t,{A:()=>A});var i,l,n=r(32198),o=r(37838),s=r(69540),a=r(51447),u=r(25482),p=r(53966),c=r(36708),y=r(24326),f=r(91429),g=r(12195),h=r(65864),d=r(50498),m=r(55156),b=r(60950),w=r(54339),v=r(94128),x=r(33910);const S=Symbol("meshGeometryHandles");function C(e){if(null==e)return null;let t={};for(let r in e){let i=e[r];i&&(t[r]=i.toJSON())}return 0===Object.keys(t).length?null:t}let A=class extends((0,s.OU)(u.o)){static{i=v.Z}static{l=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,y.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new l({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,m.I)(this.origin);if(e)return(0,w.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,w.r)(this,t):null}getGlobalId(){let e=(0,m.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:C(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,g.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let l={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(l.action=i),"attributes"===e&&(l.attributeName=i),this.layer.graphicChanged(l)}_watchMeshGeometryChanges(){this.removeHandles(S);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,c.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],S)}};(0,n.Cg)([(0,f.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,h.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],A.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,f.MZ)({value:null})],A.prototype,"attributes",null),(0,n.Cg)([(0,f.MZ)({value:null,types:d.yR,json:{read:h.rS}})],A.prototype,"geometry",null),(0,n.Cg)([(0,f.MZ)()],A.prototype,"distance",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean})],A.prototype,"isAggregate",void 0),(0,n.Cg)([(0,f.MZ)({clonable:!1})],A.prototype,"layer",void 0),(0,n.Cg)([(0,f.MZ)({clonable:"reference"})],A.prototype,"origin",void 0),(0,n.Cg)([(0,f.MZ)({type:o.A,value:null})],A.prototype,"popupTemplate",null),(0,n.Cg)([(0,f.MZ)({clonable:"reference"})],A.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,f.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],A.prototype,"statisticsAggregatedIds",void 0),(0,n.Cg)([(0,f.MZ)({value:null,types:x.Es})],A.prototype,"symbol",null),(0,n.Cg)([(0,f.MZ)({clonable:!1,json:{read:!1,write:!1}})],A.prototype,"_version",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,value:!0})],A.prototype,"visible",null),A=l=(0,n.Cg)([(0,f.$K)("esri.Graphic")],A)},19334(e,t,r){r.d(t,{e:()=>o});var i=r(54639),l=r(14112);class n{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(e){return this._geometry}toGxGeometry(e){return e.fromAccessorGeometry(this._geometry)}}function o(e){if(null==e)return null;switch(e.type){case"point":if((0,l.e6)(e))return null;break;case"polygon":if((0,l.Wq)(e))return null;break;case"polyline":if((0,l.IY)(e))return null;break;case"multipoint":if((0,l.DG)(e))return null;break;case"extent":if((0,l.As)(e))return null;break;default:return null}let t=i.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new n(e));return t.asAccessorGeometry(),t}},36983(e,t,r){r.d(t,{R:()=>u,p:()=>p});var i=r(54639),l=r(14112),n=r(16930),o=r(60408),s=r(65864);class a{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){let t=(0,s.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function u(e,t){if("object"!=typeof e||!e)return null;let r=t;if("spatialReference"in e&&(e.spatialReference instanceof n.A?r=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(r=new n.A,r.read(e.spatialReference))),null==r)throw Error("Spatial reference required");return(0,o.fT)(e)?p("point",e,r):(0,o.Rg)(e)?p("polyline",e,r):(0,o.Bi)(e)?p("polygon",e,r):(0,o.U9)(e)?p("multipoint",e,r):(0,o.ZC)(e)?p("extent",e,r):null}function p(e,t,r){if(null==t)return null;let n=!1,o=!1;switch(e){case"point":if((0,l.e6)(t))return null;n=void 0!==t.z,o=void 0!==t.m;break;case"polygon":if((0,l.Wq)(t))return null;n=!0===t.hasZ,o=!0===t.hasM;break;case"polyline":if((0,l.IY)(t))return null;n=!0===t.hasZ,o=!0===t.hasM;break;case"multipoint":if((0,l.DG)(t))return null;n=!0===t.hasZ,o=!0===t.hasM;break;case"extent":if((0,l.As)(t))return null;n=null!=t.zmin&&null!=t.zmax,o=null!=t.mmin&&null!=t.mmax;break;default:throw Error("Unsupported geometry type: "+t.type)}return i.R.of(e,r,n,o,new a(t))}},14112(e,t,r){function i(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function l(e){if(0===(e.curveRings??e.rings).length)return!0;for(let t of e.curveRings??e.rings)if(t.length>0)return!1;return!0}function n(e){if(0===(e.curvePaths??e.paths).length)return!0;for(let t of e.curvePaths??e.paths)if(t.length>0)return!1;return!0}function o(e){return 0===e.points.length}function s(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}r.d(t,{As:()=>s,DG:()=>o,IY:()=>n,Wq:()=>l,e6:()=>i})},6797(e,t,r){r.d(t,{Ui:()=>y});var i=r(69622),l=r(7762),n=r(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function s(e){return e instanceof i.A}function a(e){return e instanceof l.A?Object.keys(e.items):s(e)?(0,n.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof l.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function c(e,t){let r=e.diff;if(r&&"function"==typeof r)return r(e,t);let i=a(e),l=a(t);if(0===i.length&&0===l.length)return;if(!i.length||!l.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let n=l.filter(e=>!i.includes(e)),y=i.filter(e=>!l.includes(e)),f=i.filter(r=>l.includes(r)&&u(e,r)!==u(t,r)).concat(n,y).sort(),g=p(e);if(g&&o.has(g)&&f.length)return{type:"complete",oldValue:e,newValue:t};let h,d=s(e)&&s(t);for(let i of f){let l,n=u(e,i),o=u(t,i);if((d||"function"!=typeof n&&"function"!=typeof o)&&n!==o&&(null!=n||null!=o)){if(r&&r[i]&&"function"==typeof r[i])l=r[i]?.(n,o);else if(n instanceof Date&&o instanceof Date){if(n.getTime()===o.getTime())continue;l={type:"complete",oldValue:n,newValue:o}}else l="object"==typeof n&&"object"==typeof o&&p(n)===p(o)?c(n,o):{type:"complete",oldValue:n,newValue:o};null!=l&&(null==h?h={type:"partial",diff:{[i]:l}}:h.diff[i]=l)}}return h}function y(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:c(e,t)}},58318(e,t,r){r.d(t,{C:()=>u,X:()=>a});var i=r(32198),l=r(7762),n=r(62885),o=(r(44208),r(53966),r(91429)),s=r(10107);let a=class extends l.A{constructor(e){super(e),this.addHandles([this.on("before-add",e=>{e.item??e.preventDefault()}),this.on("after-add",e=>this._own(e.item)),this.on("after-remove",e=>this._release(e.item))])}get owner(){return this._get("owner")}set owner(e){this.destroyed||e!==this._get("owner")&&(this._releaseAll(),this._set("owner",e),this._ownAll())}_ownAll(){for(let e of this.items)this._own(e)}_releaseAll(){for(let e of this.items)this._release(e)}_createNewInstance(e){return this.itemType?new(l.A.ofType(this.itemType.Type))(e):new l.A(e)}};function u(e,t){return{type:e,cast:n.H,set(r){let i=(0,n.V)(r,this._get(t),e);i&&!i.destroyed&&(i.owner=this),this._set(t,i)}}}(0,i.Cg)([(0,s.MZ)()],a.prototype,"owner",null),a=(0,i.Cg)([(0,o.$K)("esri.core.support.OwningCollection")],a)},13069(e,t,r){r.d(t,{AG:()=>s,lk:()=>l,vD:()=>o,yS:()=>n});const i="randomUUID"in crypto;function l(){if(i)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${l().toUpperCase()}}`}function o(){return`{${l()}}`}function s(e){let t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},55156(e,t,r){r.d(t,{I:()=>l});const i=Symbol("idFieldsProviderSymbol");function l(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},32756(e,t,r){r.d(t,{Rr:()=>s});var i=r(32198),l=r(93637),n=r(91429),o=r(91880);function s(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let l=new o.A;return l.read(i,r),[l]}const a={type:[o.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:s},write:{writer:function(e,t,r,i){let n=e.find(e=>!!e.field);n&&(0,l.sM)(r,[n.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,n.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},29005(e,t,r){r.d(t,{A:()=>u});var i=r(32198),l=r(69540),n=r(66552),o=r(25482),s=r(91429);const a=new n.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,l.OU)(o.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureTemplate")],u)},46499(e,t,r){r.d(t,{A:()=>A});var i,l,n=r(32198),o=(r(44208),r(66552)),s=r(25482),a=r(4718),u=r(90629),p=r(91429),c=r(90360),y=r(73913),f=r(32730),g=r(77548),h=r(59868),d=r(73838),m=r(33910),b=r(36005),w=r(43937);const v=new o.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function x(e,t,r){return{enabled:!(0,g.TU)(r?.layer)}}function S(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function C(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let A=class extends s.o{static{i=f.vK}static{l=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),l=i[3],n=r(t[i[4]],i[5],i[6]);switch(l){case"AND":return e&&n;case"OR":return e||n}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=h.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,f.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,f.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&S(i))e=new y.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let l=e.toJSON(i);l.expression&&(t[r]=l)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,f.XJ)(this)}getLabelExpressionArcade(){return(0,f.BI)(this)}getLabelExpressionSingleField(){return(0,f.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new l({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,a.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,n.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],A.prototype,"name",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:x}}}}})],A.prototype,"allowOverrun",void 0),(0,n.Cg)([(0,p.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:x}}}}})],A.prototype,"deconflictionStrategy",void 0),(0,n.Cg)([(0,p.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&C(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],A.prototype,"labelExpression",void 0),(0,n.Cg)([(0,b.w)("labelExpression")],A.prototype,"readLabelExpression",null),(0,n.Cg)([(0,w.K)("labelExpression")],A.prototype,"writeLabelExpression",null),(0,n.Cg)([(0,p.MZ)({type:y.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return S(e)||C(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],A.prototype,"labelExpressionInfo",void 0),(0,n.Cg)([(0,w.K)("labelExpressionInfo")],A.prototype,"writeLabelExpressionInfo",null),(0,n.Cg)([(0,p.MZ)({type:v.apiValues,json:{type:v.jsonValues,read:v.read,write:v.write}})],A.prototype,"labelPlacement",void 0),(0,n.Cg)([(0,p.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],A.prototype,"offsetDistance",void 0),(0,n.Cg)([(0,p.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],A.prototype,"labelPosition",void 0),(0,n.Cg)([(0,p.MZ)({type:Number})],A.prototype,"maxScale",void 0),(0,n.Cg)([(0,w.K)("maxScale")],A.prototype,"writeMaxScale",null),(0,n.Cg)([(0,p.MZ)({type:Number})],A.prototype,"minScale",void 0),(0,n.Cg)([(0,w.K)("minScale")],A.prototype,"writeMinScale",null),(0,n.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:x}}}}})],A.prototype,"repeatLabel",void 0),(0,n.Cg)([(0,p.MZ)({type:Number,cast:u.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:x}}}}})],A.prototype,"repeatLabelDistance",null),(0,n.Cg)([(0,p.MZ)({types:m.em,json:{types:m.em,origins:{"portal-item":{types:m.em,read:{reader:(0,c.C)({types:m.em})},default:null},"web-scene":{types:m.Rv,read:{reader:(0,c.C)({types:m.Rv})},write:d.oO,default:null}},write:d.oO,default:null}})],A.prototype,"symbol",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],A.prototype,"useCodedValues",void 0),(0,n.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],A.prototype,"where",void 0),A=l=(0,n.Cg)([(0,p.$K)("esri.layers.support.LabelClass")],A)},73913(e,t,r){r.d(t,{A:()=>p});var i,l=r(32198),n=r(25482),o=r(91429),s=r(32730),a=r(36005),u=r(43937);let p=class extends n.o{static{i=this}constructor(e){super(e),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,s.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,s.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({expression:this.expression,title:this.title,value:this.value})}};(0,l.Cg)([(0,o.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"expression",void 0),(0,l.Cg)([(0,a.w)("expression",["expression","value"])],p.prototype,"readExpression",null),(0,l.Cg)([(0,u.K)("expression")],p.prototype,"writeExpression",null),(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"title",void 0),(0,l.Cg)([(0,o.MZ)({json:{read:!1,write:!1}})],p.prototype,"value",void 0),p=i=(0,l.Cg)([(0,o.$K)("esri.layers.support.LabelExpressionInfo")],p)},91880(e,t,r){r.d(t,{A:()=>u});var i,l=r(32198),n=r(66552),o=r(25482),s=r(91429);const a=new n.J({asc:"ascending",desc:"descending"});let u=class extends o.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,l.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,l.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,l.Cg)([(0,s.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],u.prototype,"order",void 0),u=i=(0,l.Cg)([(0,s.$K)("esri.layers.support.OrderByInfo")],u)},41560(e,t,r){r.d(t,{Ch:()=>o,mW:()=>n});var i=r(34727),l=r(39516);function n(e,t){return{...t,filterMode:e.mode}}function o(e,t,r){let n=function(e){if("manual"===u(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],p(r)),t[1]=Math.min(t[1],c(i));return t}(e);if(n&&((0,i.gg)(t,n[0])||(0,i.ZH)(r,n[1])))return"";let o=Array.from(s(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;let l=p(e.at(0)?.minScale),n=c(e.at(-1)?.maxScale);if((0,i.ZH)(l,t)||(0,i.gg)(n,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],l=e[t+1];if((0,i.ZH)(p(l.minScale),c(r.maxScale)))return!0}return!1}(o,t,r)?"1=1":o.map(e=>e.where||"1=1").reduce((e,t)=>(0,l.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*s(e,t,r){if("manual"===u(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,l){return e=p(e),r=p(r),t=c(t),!(!(0,i.Sp)(r,e)&&(l??r)>e||(0,i.Hx)(t,r)||void 0!==l&&(0,i.Sp)(l,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function p(e){return e||1/0}function c(e){return e||0}},32730(e,t,r){r.d(t,{BI:()=>c,D3:()=>u,XJ:()=>p,lc:()=>a,mX:()=>f,rU:()=>y,tH:()=>b,zA:()=>v});var i=r(799);const l=RegExp("__begin__","ig"),n=RegExp("__end__","ig"),o=RegExp("^__begin__","i"),s=RegExp("__end__$","i");function a(e){return e.replaceAll(RegExp("\\[","g"),"{").replaceAll(RegExp("\\]","g"),"}")}function u(e){return e.replaceAll(RegExp("\\{","g"),"[").replaceAll(RegExp("\\}","g"),"]")}function p(e){let t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=a(e.labelExpression),t.type="conventional"),t}function c(e){let t=p(e);if(!t)return null;switch(t.type){case"conventional":return f(t.expression);case"arcade":return t.expression}return null}function y(e){let t=p(e);if(!t)return null;switch(t.type){case"conventional":return function(e){return(e?.match(g))?.[1].trim()||null}(t.expression);case"arcade":return b(t.expression)}return null}function f(e){let t;return e?(t=(0,i.HC)(e,e=>'__begin__$feature["'+e+'"]__end__'),t=o.test(t)?t.replace(o,""):'"'+t,t=s.test(t)?t.replace(s,""):t+'"',t=t.replaceAll(l,'" + ').replaceAll(n,' + "')):t='""',t}const g=/^\s*\{([^}]+)\}\s*$/i,h=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,d=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,m=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function b(e){if(!e)return null;let t=h.exec(e)||d.exec(e);return t?t[1]||t[3]:(t=m.exec(e),t?t[2]:null)}const w=Symbol("LabelClassInstance");function v(e){return"object"==typeof e&&!!e&&w in e}r.d(t,["vK",0,w])},39383(e,t,r){r.d(t,{w:()=>a,z:()=>c});var i=r(49186),l=r(53966),n=r(46499);const o=()=>l.A.getLogger("esri.layers.support.labelingInfo"),s=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{let i=new n.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(s,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],p={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function c(e,t){let r=[];for(let l of e){let e=l.labelPlacement,n=p[t];if(!l.symbol)return o().warn("No ILabelClass symbol specified."),[];if(!n)return o().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(n.includes(e))r.push(l);else{let i=n[0];e&&o().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let s=l.clone();s.labelPlacement=i,r.push(s)}}return r}},22671(e,t,r){r.d(t,{A:()=>b});var i,l=r(32198),n=r(52106),o=r(66552),s=r(25482),a=r(4718),u=r(91429),p=r(16930),c=r(60408),y=r(65864),f=r(50498),g=r(20437),h=r(36005),d=r(43937);const m=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=i=class extends s.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);let{features:l}=this;if(l)for(let e of l)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,y.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=p.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,l]}=e,n=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((l-e)/r));for(let e=0,t=n.length;e<t;e++)o?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,l],scale:[n,o]}=r,s=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;s=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*n+i,e=>l-e*o,s,a);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=p.A.fromJSON(t.spatialReference),l=[];for(let t=0;t<e.length;t++){let n=e[t],o=r.fromJSON(n),s=n.geometry?.spatialReference;null!=o.geometry&&!s&&(o.geometry.spatialReference=i);let a=n.aggregateGeometries,u=o.aggregateGeometries;if(a&&null!=u)for(let e in u){let t=u[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}l.push(o)}return l}_quantizePoints(e,t,r){let i,l,n=[];for(let o=0,s=e.length;o<s;o++){let s=e[o];if(o>0){let e=t(s[0]),o=r(s[1]);(e!==i||o!==l)&&(n.push([e-i,o-l]),i=e,l=o)}else i=t(s[0]),l=r(s[1]),n.push([i,l])}return n.length>0?n:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,c.Bi)(e)?e.rings:e.paths,l=[];for(let e=0,n=i.length;e<n;e++){let n=i[e],o=this._quantizePoints(n,t,r);o&&l.push(o)}return l.length>0?((0,c.Bi)(e)?e.rings=l:e.paths=l,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,l){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let n,o,s=(0,c.Bi)(e)?e.rings:e.paths;for(let e=0,i=s.length;e<i;e++){let i=s[e];for(let e=0,l=i.length;e<l;e++){let l=i[e];e>0?(n+=l[0],o+=l[1]):(n=l[0],o=l[1]),l[0]=t(n),l[1]=r(o)}}if(i&&l)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=l(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(l)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=l(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),l&&null!=e.mmax&&null!=e.mmin&&(e.mmax=l(e.mmax),e.mmin=l(e.mmin))}:"multipoint"===e?e=>{let n,o,s=e.points;for(let e=0,i=s.length;e<i;e++){let i=s[e];e>0?(n+=i[0],o+=i[1]):(n=i[0],o=i[1]),i[0]=t(n),i[1]=r(o)}if(i&&l)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2]),t[3]=l(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2])}else if(l)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=l(t[2])}}:null}};(0,l.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,l.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,l.Cg)([(0,u.MZ)({type:[n.A],json:{write:!0}})],b.prototype,"features",void 0),(0,l.Cg)([(0,h.w)("features")],b.prototype,"readFeatures",null),(0,l.Cg)([(0,u.MZ)({type:[g.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,l.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],b.prototype,"geometryType",void 0),(0,l.Cg)([(0,d.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,l.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,l.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,l.Cg)([(0,u.MZ)({types:f.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,l.Cg)([(0,h.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,l.Cg)([(0,u.MZ)({type:p.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,l.Cg)([(0,d.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,l.Cg)([(0,u.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=i=(0,l.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},98809(e,t,r){r.d(t,{Y:()=>u});var i=r(32198),l=r(52106),n=r(91429),o=r(78888),s=r(58318),a=r(7695);let u=class extends s.X{_own(e){e.layer&&"remove"in e.layer&&e.layer!==this.owner&&e.layer.remove(e),e.layer=this.owner}_release(e){e.layer===this.owner&&(e.layer=null)}};(0,i.Cg)([(0,a.u)({Type:l.A,ensureType:(0,o.dp)(l.A)})],u.prototype,"itemType",void 0),u=(0,i.Cg)([(0,n.$K)("esri.support.GraphicsCollection")],u)},93470(e,t,r){const i=[252,146,31,255],l={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,l,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,n])}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../core/Collection.js";import{EventedAccessor as n}from"../../core/Evented.js";import{watch as r,initial as i}from"../../core/reactiveUtils.js";import{property as a,subclass as o}from"../../core/accessorSupport/decorators.js";import s from"./Item.js";import{getItemLayers as c,findLayerListMode as l}from"./support/layerListUtils.js";const u={view:`view`,basemap:`basemap`,baseLayers:`base-layers`,referenceLayers:`reference-layers`,baseLayersListMode:`reference-layers-list-mode`,referenceLayersListMode:`base-layers-list-mode`,baseLayerViews:`base-layer-views`,referenceLayerViews:`reference-layer-views`,children:`children`},d=t.ofType(s);let f=class extends n{constructor(e){super(e),this.baseItemCreatedFunction=null,this.baseItems=new d,this.checkPublishStatusEnabled=!1,this.listModeDisabled=!1,this.referenceItemCreatedFunction=null,this.referenceItems=new d,this.view=null,this._compileBaseList=this._compileBaseList.bind(this),this._compileReferenceList=this._compileReferenceList.bind(this)}initialize(){this.addHandles([r(()=>[this.view?.map?.basemap,this.view?.ready===!0,this.view?.basemapView],()=>this._watchBasemapLayers(),i),r(()=>[this.baseItemCreatedFunction,this.checkPublishStatusEnabled,this.listModeDisabled],()=>this._baseItemCreatedFunctionChanged()),r(()=>[this.referenceItemCreatedFunction,this.checkPublishStatusEnabled,this.listModeDisabled],()=>this._referenceItemCreatedFunctionChanged())],u.view)}destroy(){this.view=null,this._removeAllBaseItems(),this._removeAllReferenceItems()}get basemapTitle(){return this.view?.map?.basemap?.title??null}set basemapTitle(e){this._override(`basemapTitle`,e)}get state(){return this.view?.ready?`ready`:this.view?`loading`:`disabled`}get totalBaseItems(){return this.baseItems.flatten(e=>e.children).length}get totalReferenceItems(){return this.referenceItems.flatten(e=>e.children).length}moveItem({targetItem:e,fromParentItem:t,toParentItem:n,from:r,to:i,newIndex:a}){let o=e?.layer;if(!o||o.type===`subtype-sublayer`||o.type===`sublayer`)return;let s=this.view?.map?.basemap,l=s?.baseLayers,u=s?.referenceLayers,d=t?c(t):r===`base`?l:u,f=n?c(n):i===`base`?l:u;if(!d||!f)return;let{baseItems:p,referenceItems:m}=this,h=r===`base`?p:m,g=i===`base`?p:m,_=t?.children||h,v=n?.children||g,y=f.length-a;e.parent=n||null,_.remove(e),d.remove(o),v.includes(e)||v.add(e,y),f.includes(o)||f.add(o,y),this._compileLists()}triggerAction(e,t){e&&!e.disabled&&this.emit(`trigger-action`,{action:e,item:t})}_baseItemCreatedFunctionChanged(){this._removeAllBaseItems(),this._compileLists()}_compileBaseList(){let{baseItems:e}=this,t=this.view?.map?.basemap?.baseLayers;this._compileItems({type:`base`,layers:t,items:e,key:u.baseLayersListMode,callback:this._compileBaseList})}_compileItems({layers:e,items:t,key:n,type:r,callback:i}){this._watchLayersListMode({layers:e,key:n,callback:i});let a=this._getViewableLayers(e);if(!a?.length){r===`base`?this._removeAllBaseItems():this._removeAllReferenceItems();return}this._createNewItems({type:r,items:t,layers:a}),this._removeItems({items:t,layers:a}),this._sortItems(t,a)}_compileLists(){this._compileReferenceList(),this._compileBaseList()}_compileReferenceList(){let{referenceItems:e}=this,t=this.view?.map?.basemap?.referenceLayers;this._compileItems({type:`reference`,layers:t,items:e,key:u.referenceLayersListMode,callback:this._compileReferenceList})}_createItem({layer:e,type:t}){let{view:n,baseItemCreatedFunction:r,referenceItemCreatedFunction:i,checkPublishStatusEnabled:a,listModeDisabled:o}=this;return new s({checkPublishStatusEnabled:a,layer:e,listItemCreatedFunction:t===`base`?r:i,listModeDisabled:o,view:n})}_createItemChangeHandles({items:e,key:t,callback:n}){this.removeHandles(t),n(),e&&this.addHandles(e.on(`change`,()=>n()),t)}_createNewItems({items:e,layers:t,type:n}){t?.forEach(t=>{e.some(e=>e.layer===t)||e.add(this._createItem({type:n,layer:t}))})}_getViewableLayers(e){return e?this.listModeDisabled?e:e.filter(e=>l(e)!==`hide`):void 0}_referenceItemCreatedFunctionChanged(){this._removeAllReferenceItems(),this._compileLists()}_removeAllBaseItems(){this.baseItems.drain(e=>{this.removeHandles(`${u.children}-${e.uid}`),e.destroy()})}_removeAllReferenceItems(){this.referenceItems.drain(e=>{this.removeHandles(`${u.children}-${e.uid}`),e.destroy()})}_removeItems({items:e,layers:t}){e&&e.forEach(n=>{n&&(t?.some(e=>n.layer===e)||(this.removeHandles(`${u.children}-${n.uid}`),e.remove(n),n.destroy()))})}_sortItems(e,t){e&&t&&e.sort((e,n)=>{let r=t.indexOf(e.layer),i=t.indexOf(n.layer);return r>i?-1:+(r<i)})}_watchBasemapLayers(){let{view:e}=this;if(this.removeHandles([u.baseLayers,u.referenceLayers,u.basemap,u.baseLayerViews,u.referenceLayerViews]),!e?.ready){this._removeAllBaseItems(),this._removeAllReferenceItems();return}this._compileLists(),this.addHandles([r(()=>this.view?.map?.basemap?.baseLayers,e=>this._createItemChangeHandles({items:e,key:u.baseLayers,callback:this._compileBaseList}),i),r(()=>this.view?.map?.basemap?.referenceLayers,e=>this._createItemChangeHandles({items:e,key:u.referenceLayers,callback:this._compileReferenceList}),i),r(()=>this.view?.basemapView?.baseLayerViews,e=>this._createItemChangeHandles({items:e,key:u.baseLayerViews,callback:this._compileBaseList}),i),r(()=>this.view?.basemapView?.referenceLayerViews,e=>this._createItemChangeHandles({items:e,key:u.referenceLayerViews,callback:this._compileReferenceList}),i)],u.basemap)}_watchLayersListMode({layers:e,key:t,callback:n}){this.removeHandles(t),e&&!this.listModeDisabled&&this.addHandles(r(()=>e.filter(e=>`listMode`in e).map(e=>e.listMode).toArray(),()=>n()),t)}};e([a()],f.prototype,`baseItemCreatedFunction`,void 0),e([a({type:d,readOnly:!0})],f.prototype,`baseItems`,void 0),e([a()],f.prototype,`basemapTitle`,null),e([a()],f.prototype,`checkPublishStatusEnabled`,void 0),e([a({nonNullable:!0})],f.prototype,`listModeDisabled`,void 0),e([a()],f.prototype,`referenceItemCreatedFunction`,void 0),e([a({type:d,readOnly:!0})],f.prototype,`referenceItems`,void 0),e([a({readOnly:!0})],f.prototype,`state`,null),e([a()],f.prototype,`totalBaseItems`,null),e([a()],f.prototype,`totalReferenceItems`,null),e([a()],f.prototype,`view`,void 0),f=e([o(`esri.layers.list.BasemapItemCollection`)],f);const p=f;export{p as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../core/Collection.js";import{EventedAccessor as n}from"../../core/Evented.js";import{watch as r,initial as i,on as a}from"../../core/reactiveUtils.js";import{property as o,subclass as s}from"../../core/accessorSupport/decorators.js";import c from"./Item.js";import{findLayerListMode as l}from"./support/layerListUtils.js";const u={layerListMode:`layer-list-mode`},d=t.ofType(c);let f=class extends n{constructor(e){super(e),this.catalogItems=new d,this.catalogLayer=null,this.checkPublishStatusEnabled=!1,this.listItemCreatedFunction=null,this.listModeDisabled=!1,this.view=null}initialize(){this.addHandles([r(()=>[this.catalogLayer?.loaded,this.view?.ready],()=>this._compileList(),i),a(()=>this.catalogLayer?.dynamicGroupLayer.layers,`change`,()=>this._compileList()),r(()=>[this.listItemCreatedFunction,this.checkPublishStatusEnabled,this.listModeDisabled],()=>this._recompileList())])}destroy(){this.view=null,this._removeAllItems()}get state(){let{view:e,catalogLayer:t}=this;return e?.ready&&t?.loaded?`ready`:e&&t?`loading`:`disabled`}get totalItems(){return this.catalogItems.flatten(e=>e.children).length}triggerAction(e,t){e&&!e.disabled&&this.emit(`trigger-action`,{action:e,item:t})}_compileList(){let{catalogLayer:e}=this;if(!e?.loaded)return;let t=e.dynamicGroupLayer.layers;this._watchLayersListMode(t);let n=this._getViewableLayers(t);if(!n?.length){this._removeAllItems();return}this._createNewItems(n),this._removeItems(n),this._sortItems(n)}_createItem(e){let{view:t,listItemCreatedFunction:n,checkPublishStatusEnabled:r,listModeDisabled:i}=this;return new c({checkPublishStatusEnabled:r,layer:e,listItemCreatedFunction:n,listModeDisabled:i,view:t})}_createNewItems(e){let{catalogItems:t}=this;e.forEach(e=>{t.some(t=>t.layer===e)||t.add(this._createItem(e))})}_getViewableLayers(e){return e?this.listModeDisabled?e:e.filter(e=>l(e)!==`hide`):void 0}_recompileList(){this._removeAllItems(),this._compileList()}_removeAllItems(){this.catalogItems.destroyAll()}_removeItems(e){let{catalogItems:t}=this,n=[];t.forEach(t=>{t&&e?.includes(t.layer)||n.push(t)}),t.destroyMany(n)}_sortItems(e){let{catalogItems:t}=this;t.sort((t,n)=>{let r=e.indexOf(t.layer),i=e.indexOf(n.layer);return r>i?-1:+(r<i)})}_watchLayersListMode(e){this.removeHandles(u.layerListMode),e&&!this.listModeDisabled&&this.addHandles(r(()=>e.filter(e=>`listMode`in e).map(e=>e.listMode).toArray(),()=>this._compileList()),u.layerListMode)}};e([o({type:d})],f.prototype,`catalogItems`,void 0),e([o()],f.prototype,`catalogLayer`,void 0),e([o()],f.prototype,`checkPublishStatusEnabled`,void 0),e([o()],f.prototype,`listItemCreatedFunction`,void 0),e([o({nonNullable:!0})],f.prototype,`listModeDisabled`,void 0),e([o({readOnly:!0})],f.prototype,`state`,null),e([o()],f.prototype,`totalItems`,null),e([o()],f.prototype,`view`,void 0),f=e([s(`esri.layers.list.CatalogItemCollection`)],f);const p=f;export{p as default};
|
package/layers/list/Item.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../core/Accessor.js";import{isSome as n}from"../../core/arrayUtils.js";import r from"../../core/Collection.js";import{IdentifiableMixin as i}from"../../core/Identifiable.js";import{watch as a,initial as o}from"../../core/reactiveUtils.js";import{property as s,cast as c,subclass as l}from"../../core/accessorSupport/decorators.js";import{ensureType as u}from"../../core/accessorSupport/ensureType.js";import{get as d}from"../../core/accessorSupport/get.js";import f from"./ItemPanel.js";import{isLayerOutsideScaleRange as p,findLayerVisibilityMode as m,findLayerListMode as h,canDisplayLayer as g,getNormalizedChildLayerProperty as _}from"./support/layerListUtils.js";import{telemetryDisplayPropertyNames as v}from"../support/telemetryDisplayUtils.js";import{trackInfoPartPropertyNames as y}from"../support/trackInfoUtils.js";import b from"../../support/actions/ActionBase.js";import x from"../../support/actions/ActionButton.js";import S from"../../support/actions/ActionToggle.js";var C;const w=r.ofType({key:`type`,defaultKeyValue:`button`,base:b,typeMap:{button:x,toggle:S}}),T=r.ofType(w);function E(e){return e?.type===`csv`||e?.type===`feature`||e?.type===`geojson`||e?.type===`ogc-feature`||e?.type===`stream`}function D(e){return e?.type===`video`}const O=`layer`,k=`child-list-mode`;let A=C=class extends i(t){constructor(e){super(e),this.actionsExpanded=!1,this.actionsSections=new T,this.checkPublishStatusEnabled=!1,this.children=new(r.ofType(C)),this.childrenSortable=!0,this.content={type:`layer`},this.expanded=!1,this.hidden=!1,this.layer=null,this.listItemCreatedFunction=null,this.listModeDisabled=!1,this.parent=null,this.view=null}initialize(){if(this.addHandles([a(()=>[this.layer,this.layer?.listMode,this.listModeDisabled],()=>this._watchLayerProperties(this.layer),o),a(()=>this.checkPublishStatusEnabled,e=>this._updateChildrenPublishing(e),o),a(()=>this.view,e=>this._updateChildrenView(e),o),a(()=>this.panel,e=>this._setItemOnPanel(e),o),a(()=>{let e=this.layer,t=E(e)?e.trackInfo:null;return[e,t,t?.enabled]},()=>this._compileTrackInfoChildren(),o),a(()=>{let e=this.layer;return[e,D(e)?e.telemetryDisplay:null]},()=>this._compileTelemetryDisplayChildren(),o)]),typeof this.listItemCreatedFunction==`function`){let e={item:this};this.listItemCreatedFunction.call(null,e)}}destroy(){this.panel?.destroy(),this.children.destroyAll(),this.view=null}get actionsOpen(){return this.actionsExpanded}set actionsOpen(e){this.actionsExpanded=e}get connectionStatus(){let{layerView:e,publishing:t}=this;if(!t&&e&&`connectionStatus`in e)return e.connectionStatus}get error(){return this.layer?.loadError}get incompatible(){let{layerView:e}=this;return e&&`spatialReferenceSupported`in e?!e.spatialReferenceSupported:!1}get layerView(){let{layer:e,view:t}=this;if(!e||!t||e.type===`sublayer`)return null;let n=e.type===`subtype-sublayer`?e.parent:e;return t.allLayerViews.find(e=>e.layer===n)??null}get open(){return this.expanded}set open(e){this.expanded=e}set panel(e){let t=this._get(`panel`);e!==t&&e&&t?.destroy(),this._set(`panel`,e)}castPanel(e){return this.expanded&&!e.hasOwnProperty(`open`)&&(e.open=!0),u(f,e)}get publishing(){let{layer:e,checkPublishStatusEnabled:t}=this;return!!(t&&e&&`publishingInfo`in e&&e.publishingInfo?.status===`publishing`)}get sortable(){return this.content.type!==`layer`||this.layer?.type===`knowledge-graph-sublayer`?!1:this._get(`sortable`)}set sortable(e){this._set(`sortable`,e)}get state(){return!this.layer||this.hidden||this.incompatible?`disabled`:this.updating?`loading`:`ready`}get title(){if(this.content.type!==`layer`)return this._get(`title`)||``;let e=d(this,`layer.layer`);return(!e||e&&d(this,`layer.layer.loaded`))&&d(this,`layer.title`)||d(this,`layer.attributes.title`)||``}set title(e){this._override(`title`,e)}get updating(){let{layerView:e,connectionStatus:t,layer:n,publishing:r}=this;return r||t?!1:e?e.updating:n?.loadStatus===`loading`||!1}get visible(){let{content:e,layer:t}=this;return e.type===`track-info`?this._getTrackPart(e.name)?.visible??!1:e.type===`telemetry-display`?D(t)&&t.telemetryDisplay?t.telemetryDisplay[e.name]:!1:!!t?.visible}set visible(e){let{content:t,layer:n}=this;if(t.type===`track-info`){let n=this._getTrackPart(t.name);n&&(n.visible=e);return}if(t.type===`telemetry-display`){D(n)&&n.telemetryDisplay&&(n.telemetryDisplay[t.name]=e);return}n&&(n.visible=e)}get visibleAtCurrentScale(){return this.layerView?.visibleAtCurrentScale??!p(this.layer,this.view?.scale)}get visibleAtCurrentTimeExtent(){return this.layerView?.visibleAtCurrentTimeExtent??!0}get visibilityMode(){return m(this.layer)}clone(){return new C({actionsExpanded:this.actionsExpanded,actionsSections:this.actionsSections.clone(),checkPublishStatusEnabled:this.checkPublishStatusEnabled,children:this.children.clone(),childrenSortable:this.childrenSortable,content:{...this.content},expanded:this.expanded,hidden:this.hidden,layer:this.layer,listItemCreatedFunction:this.listItemCreatedFunction,listModeDisabled:this.listModeDisabled,panel:this.panel,parent:this.parent,sortable:this.sortable,title:this.title,view:this.view,visible:this.visible})}toggleVisibility(e){if(!this.layer)return!1;let t=e??!this.visible;return this.visible=t,this.visible}_compileChildren(e){let t=this.listModeDisabled?e:e?.filter(e=>h(e)!==`hide`);if(!e?.length){this._destroyLayerChildren();return}this._createChildren(t),this._destroyChildren(t),this._sortChildren(t),this._watchChildLayerListMode(e)}_compileTelemetryDisplayChildren(){let e=this.layer,t=this.children.filter(e=>e.content.type===`telemetry-display`);if(this.content.type!==`layer`||!D(e)||!e.telemetryDisplay){this.children.destroyMany(t.toArray());return}t.some(t=>t.layer!==e)&&this.children.destroyMany(t.toArray());for(let t of v)this.children.some(e=>e.content.type===`telemetry-display`&&e.content.name===t)||this.children.add(new C({content:{type:`telemetry-display`,name:t},layer:e,listItemCreatedFunction:this.listItemCreatedFunction,parent:this}))}_compileTrackInfoChildren(){let e=this.layer,t=this.children.filter(e=>e.content.type===`track-info`);if(this.content.type!==`layer`||!E(e)||!e.trackInfo?.enabled){this.children.destroyMany(t.toArray());return}t.some(t=>t.layer!==e)&&this.children.destroyMany(t.toArray());for(let t of y)this.children.some(e=>e.content.type===`track-info`&&e.content.name===t)||this.children.add(new C({content:{type:`track-info`,name:t},layer:e,listItemCreatedFunction:this.listItemCreatedFunction,parent:this}))}_createChildItems(e,t){return e.reverse().map(e=>t||g(e)?new C({checkPublishStatusEnabled:this.checkPublishStatusEnabled,layer:e,listItemCreatedFunction:this.listItemCreatedFunction,listModeDisabled:this.listModeDisabled,parent:this,view:this.view}):null).filter(n)}_createChildren(e){let{listModeDisabled:t,children:n}=this,r=e.filter(e=>!n.some(t=>t.content.type===`layer`&&t.layer===e));n.addMany(this._createChildItems(r,t).toArray())}_destroyChildren(e){let{children:t}=this,n=t.filter(t=>t.content.type===`layer`&&!!t.layer&&!e.includes(t.layer));t.destroyMany(n.toArray())}_destroyLayerChildren(){this.removeHandles(k),this.children.destroyMany(this.children.filter(e=>e.content.type===`layer`).toArray())}_getTrackPart(e){let{layer:t}=this;return E(t)?t.trackInfo?.[e]??null:null}_initializeChildLayers(e){this._compileChildren(e),this._watchSublayerChanges(e)}_setItemOnPanel(e){e&&(e.listItem=this)}_sortChildren(e){this.children.sort((t,n)=>{let r=t.content.type!==`layer`,i=n.content.type!==`layer`;return r||i?r?i?t.content.type===`track-info`&&n.content.type===`track-info`?y.indexOf(t.content.name)-y.indexOf(n.content.name):t.content.type===`telemetry-display`&&n.content.type===`telemetry-display`?v.indexOf(t.content.name)-v.indexOf(n.content.name):t.content.type===`track-info`?-1:1:1:-1:e.indexOf(n.layer)-e.indexOf(t.layer)})}_updateChildrenPublishing(e){this.children?.forEach(t=>t.checkPublishStatusEnabled=e)}_updateChildrenView(e){let t=this.children;t&&t.forEach(t=>t.view=e)}_watchChildLayerListMode(e){this.removeHandles(k),this.listModeDisabled||this.addHandles(e.toArray().map(t=>a(()=>t.listMode,()=>this._compileChildren(e))),k)}_watchLayerProperties(e){if(this.removeHandles(O),this.removeHandles(k),!e||this.content.type!==`layer`)return;if((!this.listModeDisabled&&h(e))===`hide-children`){this._destroyLayerChildren();return}let t=_(e);t&&this.addHandles(a(()=>e[t],n=>{let r=n;e.hasOwnProperty(t)&&r&&this._initializeChildLayers(r)},o),O)}_watchSublayerChanges(e){e&&this.addHandles(e.on(`change`,()=>this._compileChildren(e)),O)}};e([s()],A.prototype,`actionsExpanded`,void 0),e([s()],A.prototype,`actionsOpen`,null),e([s({type:T})],A.prototype,`actionsSections`,void 0),e([s()],A.prototype,`checkPublishStatusEnabled`,void 0),e([s({type:r.ofType(C)})],A.prototype,`children`,void 0),e([s()],A.prototype,`childrenSortable`,void 0),e([s({readOnly:!0})],A.prototype,`connectionStatus`,null),e([s({nonNullable:!0})],A.prototype,`content`,void 0),e([s({readOnly:!0})],A.prototype,`error`,null),e([s()],A.prototype,`expanded`,void 0),e([s()],A.prototype,`hidden`,void 0),e([s({readOnly:!0})],A.prototype,`incompatible`,null),e([s()],A.prototype,`layer`,void 0),e([s({readOnly:!0})],A.prototype,`layerView`,null),e([s()],A.prototype,`listItemCreatedFunction`,void 0),e([s({nonNullable:!0})],A.prototype,`listModeDisabled`,void 0),e([s()],A.prototype,`open`,null),e([s({type:f})],A.prototype,`panel`,null),e([c(`panel`)],A.prototype,`castPanel`,null),e([s()],A.prototype,`parent`,void 0),e([s({readOnly:!0})],A.prototype,`publishing`,null),e([s({value:!0})],A.prototype,`sortable`,null),e([s({readOnly:!0})],A.prototype,`state`,null),e([s()],A.prototype,`title`,null),e([s({readOnly:!0})],A.prototype,`updating`,null),e([s()],A.prototype,`view`,void 0),e([s()],A.prototype,`visible`,null),e([s({readOnly:!0})],A.prototype,`visibleAtCurrentScale`,null),e([s({readOnly:!0})],A.prototype,`visibleAtCurrentTimeExtent`,null),e([s({readOnly:!0})],A.prototype,`visibilityMode`,null),A=C=e([l(`esri.layers.list.Item`)],A);const j=A;export{j as default};
|
package/layers/list/ItemPanel.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../core/Accessor.js";import{IdentifiableMixin as n}from"../../core/Identifiable.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";let a=class extends n(t){constructor(e){super(e),this.content=null,this.disabled=!1,this.flowEnabled=!1,this.icon=null,this.image=null,this.listItem=null,this.open=!1,this.title=``,this.visible=!0}};e([r()],a.prototype,`content`,void 0),e([r()],a.prototype,`disabled`,void 0),e([r()],a.prototype,`flowEnabled`,void 0),e([r()],a.prototype,`icon`,void 0),e([r()],a.prototype,`image`,void 0),e([r()],a.prototype,`listItem`,void 0),e([r()],a.prototype,`open`,void 0),e([r()],a.prototype,`title`,void 0),e([r()],a.prototype,`visible`,void 0),a=e([i(`esri.layers.list.ItemPanel`)],a);const o=a;export{o as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../core/Collection.js";import{EventedAccessor as n}from"../../core/Evented.js";import{watch as r,initial as i}from"../../core/reactiveUtils.js";import{property as a,subclass as o}from"../../core/accessorSupport/decorators.js";import s from"./Item.js";import{getItemLayers as c,findLayerListMode as l}from"./support/layerListUtils.js";import{isLinkChartView as u}from"../../linkChart/guards.js";const d={view:`view`,viewLayers:`view-layers`,mapLayers:`map-layers`,layerViews:`layer-views`,layerListMode:`layer-list-mode`},f=t.ofType(s);let p=class extends n{constructor(e){super(e),this.checkPublishStatusEnabled=!1,this.listItemCreatedFunction=null,this.listModeDisabled=!1,this.operationalItems=new f,this.view=null}initialize(){this.addHandles([r(()=>this.view?.ready===!0,()=>this._viewHandles(),i),r(()=>[this.listItemCreatedFunction,this.checkPublishStatusEnabled,this.listModeDisabled],()=>this._recompileList()),r(()=>u(this.view)?this.view.inGeographicLayout:null,()=>this._compileList())],d.view)}destroy(){this._removeAllItems(),this.view=null}get state(){let{view:e}=this;return e?.ready?`ready`:e?`loading`:`disabled`}get totalItems(){return this.operationalItems.flatten(e=>e.children).length}moveItem(e,t,n,r){let i=e?.layer;if(!i||e.content.type!==`layer`||i.type===`subtype-sublayer`||i.type===`sublayer`)return;let a=this.view?.map?.layers,o=t?c(t):a,s=n?c(n):a;if(!o||!s)return;let{operationalItems:l}=this,u=t?.children||l,d=n?.children||l,f=s.length-r;e.parent=n||null,u.remove(e),o.remove(i),d.includes(e)||d.add(e,f),s.includes(i)||s.add(i,f),this._compileList()}triggerAction(e,t){e&&!e.disabled&&this.emit(`trigger-action`,{action:e,item:t})}_compileList(){let e=this.view?.map?.layers,t=u(this.view)&&!this.view.inGeographicLayout?e?.filter(({type:e})=>e===`link-chart`):e;this._watchLayersListMode(t);let n=this._getViewableLayers(t);if(!n?.length){this._removeAllItems();return}this._createNewItems(n),this._removeItems(n),this._sortItems(n)}_createItem(e){let{view:t,listItemCreatedFunction:n,checkPublishStatusEnabled:r,listModeDisabled:i}=this;return new s({checkPublishStatusEnabled:r,layer:e,listItemCreatedFunction:n,listModeDisabled:i,view:t})}_createLayerViewHandles(e){this.removeHandles(d.layerViews),this._compileList(),e&&this.addHandles(e.on(`change`,()=>this._compileList()),d.layerViews)}_createMapLayerHandles(e){this.removeHandles(d.mapLayers),this._compileList(),e&&this.addHandles(e.on(`change`,()=>this._compileList()),d.mapLayers)}_createNewItems(e){let{operationalItems:t}=this;e.forEach(e=>{t.some(t=>t.layer===e)||t.add(this._createItem(e))})}_getViewableLayers(e){return e?this.listModeDisabled?e:e.filter(e=>l(e)!==`hide`):void 0}_recompileList(){this._removeAllItems(),this._compileList()}_removeAllItems(){this.operationalItems.destroyAll()}_removeItems(e){let{operationalItems:t}=this,n=[];t.forEach(t=>{t&&e&&e.includes(t.layer)||n.push(t)}),t.destroyMany(n)}_sortItems(e){let{operationalItems:t}=this;t.sort((t,n)=>{let r=e.indexOf(t.layer),i=e.indexOf(n.layer);return r>i?-1:+(r<i)})}_viewHandles(){let{view:e}=this;if(this.removeHandles([d.mapLayers,d.layerViews,d.viewLayers]),!e?.ready){this._removeAllItems();return}this.addHandles([r(()=>this.view?.map?.layers,e=>this._createMapLayerHandles(e),i),r(()=>this.view?.allLayerViews,e=>this._createLayerViewHandles(e),i)],d.viewLayers)}_watchLayersListMode(e){this.removeHandles(d.layerListMode),e&&!this.listModeDisabled&&this.addHandles(r(()=>e.filter(e=>`listMode`in e).map(e=>e.listMode).toArray(),()=>this._compileList()),d.layerListMode)}};e([a()],p.prototype,`checkPublishStatusEnabled`,void 0),e([a()],p.prototype,`listItemCreatedFunction`,void 0),e([a({nonNullable:!0})],p.prototype,`listModeDisabled`,void 0),e([a({type:f})],p.prototype,`operationalItems`,void 0),e([a({readOnly:!0})],p.prototype,`state`,null),e([a()],p.prototype,`totalItems`,null),e([a()],p.prototype,`view`,void 0),p=e([o(`esri.layers.list.LayerItemCollection`)],p);const m=p;export{m as default};
|
package/layers/list/TableItem.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../core/Accessor.js";import{isSome as n}from"../../core/arrayUtils.js";import r from"../../core/Collection.js";import{IdentifiableMixin as i}from"../../core/Identifiable.js";import{watch as a,initial as o}from"../../core/reactiveUtils.js";import{property as s,cast as c,subclass as l}from"../../core/accessorSupport/decorators.js";import{ensureType as u}from"../../core/accessorSupport/ensureType.js";import{get as d}from"../../core/accessorSupport/get.js";import f from"./TableItemPanel.js";import{findLayerListMode as p,canDisplayLayer as m,getNormalizedChildLayerProperty as h}from"./support/layerListUtils.js";import g from"../../support/actions/ActionBase.js";import _ from"../../support/actions/ActionButton.js";import v from"../../support/actions/ActionToggle.js";var y;const b=`layer`,x=`child-list-mode`,S=r.ofType({key:`type`,defaultKeyValue:`button`,base:g,typeMap:{button:_,toggle:v}}),C=r.ofType(S);let w=y=class extends i(t){constructor(e){super(e),this.actionsOpen=!1,this.actionsSections=new C,this.checkPublishStatusEnabled=!1,this.children=new(r.ofType(y)),this.hidden=!1,this.layer=null,this.listItemCreatedFunction=null,this.listModeDisabled=!1,this.open=!1,this.parent=null,this.sortable=!0}initialize(){if(this.addHandles([a(()=>[this.layer?.listMode,this.listModeDisabled],()=>this._watchLayerProperties(this.layer),o),a(()=>this.checkPublishStatusEnabled,e=>this._updateChildrenPublishing(e),o),a(()=>this.panel,e=>this._setItemOnPanel(e),o)]),typeof this.listItemCreatedFunction==`function`){let e={item:this};this.listItemCreatedFunction.call(null,e)}}destroy(){this.panel?.destroy(),this.children.destroyAll()}get error(){return this.layer?.loadError}set panel(e){let t=this._get(`panel`);e!==t&&e&&t?.destroy(),this._set(`panel`,e)}castPanel(e){return this.panel?.open&&!e.hasOwnProperty(`open`)&&(e.open=!0),u(f,e)}get publishing(){let{layer:e,checkPublishStatusEnabled:t}=this;return!!(t&&e&&`publishingInfo`in e&&e.publishingInfo?.status===`publishing`)}get title(){let e=d(this,`layer.layer`);return(!e||e&&d(this,`layer.layer.loaded`)?this.layer?.title:null)??``}set title(e){this._overrideIfSome(`title`,e)}clone(){return new y({actionsOpen:this.actionsOpen,actionsSections:this.actionsSections.clone(),checkPublishStatusEnabled:this.checkPublishStatusEnabled,children:this.children.clone(),hidden:this.hidden,layer:this.layer,listItemCreatedFunction:this.listItemCreatedFunction,listModeDisabled:this.listModeDisabled,open:this.open,panel:this.panel,parent:this.parent,sortable:this.sortable,title:this.title})}_compileChildren(e){let t=this.listModeDisabled?e:e?.filter(e=>p(e)!==`hide`);if(!e?.length){this._destroyAllChildren();return}this._createChildren(t),this._destroyChildren(t),this._sortChildren(t),this._watchChildLayerListMode(e)}_createChildItems(e,t){return e.reverse().map(e=>t||m(e)?new y({checkPublishStatusEnabled:this.checkPublishStatusEnabled,layer:e,listItemCreatedFunction:this.listItemCreatedFunction,listModeDisabled:this.listModeDisabled,parent:this}):null).filter(n)}_createChildren(e){let{listModeDisabled:t,children:n}=this,r=e.reverse().filter(e=>!n.some(t=>t.layer===e));n.addMany(this._createChildItems(r,t))}_destroyAllChildren(){this.removeHandles(x),this.children.destroyAll()}_destroyChildren(e){let{children:t}=this,n=t.filter(t=>!!t.layer&&!e.includes(t.layer));t.destroyMany(n)}_initializeChildLayers(e){this._compileChildren(e),this._watchSublayerChanges(e)}_setItemOnPanel(e){e&&(e.listItem=this)}_sortChildren(e){this.children.sort((t,n)=>e.indexOf(n.layer)-e.indexOf(t.layer))}_updateChildrenPublishing(e){this.children?.forEach(t=>t.checkPublishStatusEnabled=e)}_watchChildLayerListMode(e){this.removeHandles(x),this.listModeDisabled||this.addHandles(e.toArray().map(t=>a(()=>t.listMode,()=>this._compileChildren(e))),x)}_watchLayerProperties(e){if(this.removeHandles(b),this.removeHandles(x),!e)return;if(e.load().catch(()=>{}),(!this.listModeDisabled&&p(e))===`hide-children`){this.children.destroyAll();return}let t=h(e);t&&this.addHandles(a(()=>e[t],n=>{e.hasOwnProperty(t)&&this._initializeChildLayers(n)},o),b)}_watchSublayerChanges(e){e&&this.addHandles(e.on(`change`,()=>this._compileChildren(e)),b)}};e([s()],w.prototype,`actionsOpen`,void 0),e([s({type:C})],w.prototype,`actionsSections`,void 0),e([s()],w.prototype,`checkPublishStatusEnabled`,void 0),e([s({type:r.ofType(y)})],w.prototype,`children`,void 0),e([s({readOnly:!0})],w.prototype,`error`,null),e([s()],w.prototype,`hidden`,void 0),e([s()],w.prototype,`layer`,void 0),e([s()],w.prototype,`listItemCreatedFunction`,void 0),e([s({nonNullable:!0})],w.prototype,`listModeDisabled`,void 0),e([s()],w.prototype,`open`,void 0),e([s({type:f})],w.prototype,`panel`,null),e([c(`panel`)],w.prototype,`castPanel`,null),e([s()],w.prototype,`parent`,void 0),e([s({readOnly:!0})],w.prototype,`publishing`,null),e([s()],w.prototype,`sortable`,void 0),e([s()],w.prototype,`title`,null),w=y=e([l(`esri.layers.list.TableItem`)],w);const T=w;export{T as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../core/Collection.js";import{EventedAccessor as n}from"../../core/Evented.js";import{watch as r,initial as i}from"../../core/reactiveUtils.js";import{property as a,subclass as o}from"../../core/accessorSupport/decorators.js";import s from"./TableItem.js";import{findLayerListMode as c}from"./support/layerListUtils.js";const l={map:`map`,layerListMode:`layer-list-mode`},u=t.ofType(s);let d=class extends n{constructor(e){super(e),this.checkPublishStatusEnabled=!1,this.listItemCreatedFunction=null,this.listModeDisabled=!1,this.map=null,this.tableItems=new u}initialize(){this.addHandles([r(()=>[this.tables?.toArray(),this.map?.allTables.toArray()],()=>this._compileList(),i),r(()=>[this.map?.loaded,this.listItemCreatedFunction,this.checkPublishStatusEnabled,this.listModeDisabled],()=>this._recompileList())],l.map)}destroy(){this._removeAllItems(),this.map=null,this.tables=null}get state(){let{map:e,tables:t}=this;if(!e)return t?`ready`:`disabled`;let n=e.loadStatus;return typeof n==`string`?n===`loaded`?`ready`:n===`loading`?`loading`:`disabled`:`ready`}get tables(){return this.map?.allTables}set tables(e){this._overrideIfSome(`tables`,e)}get totalItems(){return this.tableItems.length}triggerAction(e,t){e&&!e.disabled&&this.emit(`trigger-action`,{action:e,item:t})}_compileList(){let{tables:e}=this;this._watchTablesListMode(e);let t=this._getViewableTables(e);if(!t?.length){this._removeAllItems();return}this._createNewItems(t),this._removeItems(t),this._sortItems(t)}_createNewItems(e){let{tableItems:t,listItemCreatedFunction:n,checkPublishStatusEnabled:r}=this;e.forEach(e=>{t.some(t=>t.layer===e)||t.add(new s({checkPublishStatusEnabled:r,layer:e,listItemCreatedFunction:n}))})}_getViewableTables(e){return e?this.listModeDisabled?e:e.filter(e=>c(e)!==`hide`):void 0}_recompileList(){this._removeAllItems(),this._compileList()}_removeAllItems(){this.tableItems.destroyAll()}_removeItems(e){let{tableItems:t}=this;t.forEach(n=>{n&&(e?.find(e=>n.layer===e)||(t.remove(n),n.destroy()))})}_sortItems(e){let{tableItems:t}=this;t.sort((t,n)=>{let r=e.indexOf(t.layer),i=e.indexOf(n.layer);return r>i?-1:+(r<i)})}_watchTablesListMode(e){this.removeHandles(l.layerListMode),e&&!this.listModeDisabled&&this.addHandles(r(()=>e.filter(e=>`listMode`in e).map(e=>e.listMode).toArray(),()=>this._compileList()),l.layerListMode)}};e([a()],d.prototype,`checkPublishStatusEnabled`,void 0),e([a()],d.prototype,`listItemCreatedFunction`,void 0),e([a({nonNullable:!0})],d.prototype,`listModeDisabled`,void 0),e([a()],d.prototype,`map`,void 0),e([a({readOnly:!0})],d.prototype,`state`,null),e([a({type:u,readOnly:!0})],d.prototype,`tableItems`,void 0),e([a()],d.prototype,`tables`,null),e([a()],d.prototype,`totalItems`,null),d=e([o(`esri.layers.list.TableItemCollection`)],d);const f=d;export{f as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../core/Accessor.js";import{IdentifiableMixin as n}from"../../core/Identifiable.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";let a=class extends n(t){constructor(e){super(e),this.content=null,this.disabled=!1,this.flowEnabled=!1,this.icon=null,this.image=null,this.listItem=null,this.open=!1,this.title=``,this.visible=!0}};e([r()],a.prototype,`content`,void 0),e([r()],a.prototype,`disabled`,void 0),e([r()],a.prototype,`flowEnabled`,void 0),e([r()],a.prototype,`icon`,void 0),e([r()],a.prototype,`image`,void 0),e([r()],a.prototype,`listItem`,void 0),e([r()],a.prototype,`open`,void 0),e([r()],a.prototype,`title`,void 0),e([r()],a.prototype,`visible`,void 0),a=e([i(`esri.layers.list.TableItemPanel`)],a);const o=a;export{o as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../core/Error.js";import{EventedAccessor as n}from"../core/Evented.js";import r from"../core/Logger.js";import{abortMaybe as i}from"../core/maybe.js";import{debounce as a,logOnError as o,isAbortError as s}from"../core/promiseUtils.js";import{watch as c,when as l}from"../core/reactiveUtils.js";import{property as u,subclass as d}from"../core/accessorSupport/decorators.js";import f from"../geometry/Point.js";import{project as p}from"../geometry/projectionUtils.js";import m from"../geometry/SpatialReference.js";import{geographicToWebMercator as h}from"../geometry/support/webMercatorUtils.js";import{getGraphicLayer as g}from"../graphic/graphicOriginUtils.js";import{fallbackObjectIDAttribute as _}from"../layers/LayerConstants.js";import{ActionsCollection as v,createDefaultActions as y}from"./actions.js";import{getSelectedTarget as b}from"./actionUtils.js";import x from"./FeatureContent.js";import S from"./support/FeatureAbilities.js";import{getDisplayedSymbol as C}from"../symbols/support/symbolUtils.js";import{system as w}from"../time/constants.js";import{highlightsSupported as T}from"../views/support/layerViewUtils.js";import{GoTo as E}from"../widgets/support/GoTo.js";let D=null;function O(e,t){switch(e){case`building-scene`:case`map-image`:case`tile`:case`imagery`:return!0;case`imagery-tile`:return t===`2d`;default:return!1}}let k=class extends E(n){constructor(e){super(e),this._centerAtLocationController=null,this._locationUpdateController=null,this._highlightPromises={"highlight-active-feature":null,"highlight-selected-feature":null},this._defaultFeatureAbilities=new S,this._activeFeatureStream=null,this._featureStreamHasYielded=!1,this.actions=new v,this.activeFeature=null,this.aggregatedFeaturesEnabled=!1,this.defaultPopupTemplateEnabled=!1,this.diagnostics=null,this.featurePage=null,this.featuresPerPage=20,this.featureMenuOpen=!1,this.featureItemAbilities=null,this.featureItems=[],this.heading=null,this.highlightEnabled=!0,this.includeDefaultActions=!0,this.open=!1,this.updateLocationEnabled=!1,this.view=null,this.zoomFactor=4,this._debouncedLocationUpdate=a(async()=>{this._cancelLocationUpdate();let e=new AbortController,{signal:t}=e;this._locationUpdateController=e,await this._locationUpdate({signal:t}).catch(()=>{}).finally(()=>{this._locationUpdateController===e&&(this._locationUpdateController=null)})})}initialize(){this.addHandles([c(()=>this.view?.scale,()=>{this.open&&o(this._debouncedLocationUpdate(),r.getLogger(this))}),c(()=>[this.highlightEnabled,this.selectedFeature,this.open,this.view],()=>this._highlightSelectedFeature()),c(()=>[this.highlightEnabled,this.activeFeature,this.open,this.view],()=>this._highlightActiveFeature()),c(()=>this.location,e=>this._locationChange(e)),c(()=>this.selectedFeature,e=>this._selectedFeatureChange(e)),c(()=>[this.selectedFeatureIndex,this.featureCount,this.featuresPerPage],()=>this._selectedFeatureIndexChange()),c(()=>[this.featurePage,this.selectedFeatureIndex,this.featureCount,this.featuresPerPage,this.featureItems],()=>this._setGraphicOnFeatureItems()),c(()=>this.featureItems,()=>this._featureItemsChange()),c(()=>[this.featureItemAbilities?.attachmentsContent,this.featureItemAbilities?.chartAnimation,this.featureItemAbilities?.customContent,this.featureItemAbilities?.expressionContent,this.featureItemAbilities?.fieldsContent,this.featureItemAbilities?.mediaContent,this.featureItemAbilities?.relationshipContent,this.featureItemAbilities?.textContent,this.featureItemAbilities?.utilityNetworkAssociationsContent,this.actions,this.includeDefaultActions,this.features,this.map,this.spatialReference,this.timeZone],()=>this._updateFeatureItems()),l(()=>!this.open,()=>this.aggregatedFeaturesEnabled=!1)])}destroy(){this._cancelLocationUpdate(),this._cancelCenterAtLocation(),this._cancelFeatureStream(),this.aggregatedFeaturesEnabled=!1,this.view=null,this.map=null,this.spatialReference=null,this.timeZone=null}get defaultActions(){let e=this._get(`defaultActions`)||new v;return e.removeAll(),e.addMany(this.selectedFeatureItem?.defaultActions.toArray()??y()),e}get active(){return this.open&&!this.waitingForResult}set content(e){this.featureStream=null,this._set(`diagnostics`,null),this.features=[],this._set(`content`,e)}get effectiveHeading(){return this.selectedFeatureItem?.heading??this.heading}get featureCount(){return this.features.length}set features(e){if(this._get(`features`)===e)return;let t=e||[];this._set(`features`,t),this._syncSelectedFeatureIndex(t)}get featureStream(){return this._get(`featureStream`)||null}set featureStream(e){this._setFeatureStream(e)}_setFeatureStream(e,t,n){this._set(`diagnostics`,n??null),this._get(`featureStream`)!==e&&(this._set(`featureStream`,e),this._cancelFeatureStream(),e&&(this._featureStreamHasYielded=!1,this._set(`pendingLocation`,t??null),this._activeFeatureStream=e,this._consumeFeatureStream(e,t).catch(()=>{})))}get initialDisplayMode(){return this._initialDisplayMode??(this.view?.focusRegionEnabled?`list`:`feature`)}set initialDisplayMode(e){this._initialDisplayMode=e,this._syncSelectedFeatureIndex(this.features)}set location(e){let t=e?.spatialReference?.isWGS84&&this.spatialReference?.isWebMercator?h(e):e;this._set(`location`,t)}get map(){return this.view?.map??null}set map(e){this._override(`map`,e)}get pendingLocation(){return this._get(`pendingLocation`)??null}get streamingFeatures(){return this._activeFeatureStream!=null}get selectedFeature(){return this.selectedFeatureIndex===-1?null:this.features[this.selectedFeatureIndex]??null}get selectedFeatureIndex(){let e=this._get(`selectedFeatureIndex`);return typeof e==`number`?e:-1}set selectedFeatureIndex(e){let{featureCount:t}=this;(isNaN(e)||e<0||!t)&&(e=-1),this.activeFeature=null,this._set(`selectedFeatureIndex`,e)}get selectedFeatureItem(){return this.featureItems[this.selectedFeatureIndex]||null}get spatialReference(){return this.view?.spatialReference??null}set spatialReference(e){this._override(`spatialReference`,e)}get state(){return this.view?this.view.ready?`ready`:`disabled`:this.map?`ready`:`disabled`}get timeZone(){return this.view?.timeZone??w}set timeZone(e){this._overrideIfSome(`timeZone`,e)}get waitingForContents(){return this.featureItems.some(e=>e.waitingForContent)}get waitingForResult(){return this.streamingFeatures&&!this._featureStreamHasYielded}zoomTo(e){return this.callGoTo(e)}clear(){this._cancelFeatureStream(),this._set(`diagnostics`,null),this.set({featureStream:null,features:[],content:null,heading:null,location:null,activeFeature:null})}openFeatureStream(e){this._setFeatureStream(e.featureStream,e.location??null,e.diagnostics),this.open=!0}async fetchFeatures(e,n){let{view:r}=this;if(!r||!e)throw new t(`fetch-features:invalid-screenpoint-or-view`,`Cannot fetch features without a screen point/screen area and view.`,{screenPoint:e,view:r});let i={},a=r.fetchPopupFeatures(e,{diagnostics:i,pointerType:n?.event?.pointerType,defaultPopupTemplateEnabled:this.defaultPopupTemplateEnabled,signal:n?.signal});this._setFeatureStream(a,void 0,i)}next(){this.selectedFeatureIndex=this._getRoundRobinIndex(this.selectedFeatureIndex+1,this.featureCount)}previous(){this.selectedFeatureIndex=this._getRoundRobinIndex(this.selectedFeatureIndex-1,this.featureCount)}_syncSelectedFeatureIndex(e){let{selectedFeatureIndex:t}=this,n=this._activeFeatureStream!=null&&e.length>0;if(this.initialDisplayMode===`list`){n||(this.selectedFeatureIndex=-1);return}if(n&&t===-1){this.selectedFeatureIndex=0;return}n&&t!==-1||(this.selectedFeatureIndex=e.length?0:-1)}_centerAtLocation(){let{view:e}=this,n=b(this);this._cancelCenterAtLocation();let i=new AbortController,{signal:a}=i;return this._centerAtLocationController=i,!n||!e?Promise.reject(new t(`center-at-location:invalid-target-or-view`,`Cannot center at a location without a target and view.`,{target:n,view:e})):this.callGoTo({target:{target:n,scale:e.scale},options:{signal:a}}).catch(e=>{s(e)||r.getLogger(this).error(e)})}_getRoundRobinIndex(e,t){return(e+t)%t}_locationChange(e){let{selectedFeature:t,updateLocationEnabled:n,view:r}=this;r&&!this._locationUpdateController&&n&&e&&(!t||t.geometry)&&this._centerAtLocation()}_selectedFeatureIndexChange(){this.selectedFeatureIndex!==-1&&(this.featurePage=this.featureCount>0?Math.floor(this.selectedFeatureIndex/this.featuresPerPage)+1:null)}_featureItemsChange(){this.featurePage=this.featureCount>0?1:null}_setGraphicOnFeatureItems(){let{features:e,featureCount:t,featurePage:n,featuresPerPage:r,featureItems:i}=this;if(n==null)return;let a=((n-1)*r+t)%t,o=Math.min(a+r,i.length);for(let t=a;t<o;t++){let n=i[t];n&&(n.graphic??=e[t])}}async _selectedFeatureChange(e){let{location:t,updateLocationEnabled:n,view:r}=this;if(this.aggregatedFeaturesEnabled=!1,!e||!r)return;let i=g(e)?.type;if((i===`map-image`||i===`imagery`||i===`imagery-tile`)&&(e.symbol=await C(e)),(n||!t)&&e.geometry){if(e.geometry.type===`point`){this.location=e.geometry;return}let{labelPointExecute:t}=await import(`../geometry/operators/labelPointOperator.js`);this.location=t(e.geometry);return}if(n&&!e.geometry){await this._centerAtLocation();let e=r.center?.clone();e&&(this.location=e)}}_waitingForResultChange(){!this.featureCount&&this.featureStream&&(this.open=!1)}_destroyFeatureItems(){this.featureItems.forEach(e=>e&&!e.destroyed&&e.destroy()),this._set(`featureItems`,[])}_updateFeatureItems(){let e=this.selectedFeature,t=this.features,n=this.featureItems,r=this.view,i=this.spatialReference,a=this.map,o=this.timeZone,s=this.location,c=this.actions,l=this.includeDefaultActions,u=this.featureItemAbilities??this._defaultFeatureAbilities;if(!t?.length){this._destroyFeatureItems();return}let d=[],f=new Map,p=new Set;n.forEach(e=>{let t=e?.graphic;e&&t&&f.set(t,e)}),t.forEach((t,m)=>{if(!t)return;let h=n[m];if(h&&!p.has(h)&&(h.graphic==null||h.graphic===t)){h.abilities=u,h.actions=c,h.includeDefaultActions=l,d[m]=h,p.add(h);return}let g=f.get(t);if(g&&!p.has(g)){g.abilities=u,g.actions=c,g.includeDefaultActions=l,d[m]=g,p.add(g);return}let _=new x({actions:c,abilities:u,defaultPopupTemplateEnabled:this.defaultPopupTemplateEnabled,includeDefaultActions:l,spatialReference:i,graphic:t===e?t:null,location:s,map:a,view:r,timeZone:o});d[m]=_,p.add(_)}),n.forEach(e=>{e&&!p.has(e)&&!e.destroyed&&e.destroy()}),this._set(`featureItems`,d)}_cancelCenterAtLocation(){this._centerAtLocationController=i(this._centerAtLocationController)}_cancelFeatureStream(){let e=this._activeFeatureStream;this._activeFeatureStream=null,this._set(`pendingLocation`,null),this._get(`featureStream`)===e&&this._set(`featureStream`,null),e?.return&&e.return(void 0).catch(()=>{})}async _locationUpdate(e){let{spatialReference:t}=this,n=this.selectedFeature,i=n?.geometry?.type,a=this.location;if(i&&i!==`mesh`&&t&&a&&n){if(i===`point`){let{labelPointExecute:t}=await import(`../geometry/operators/labelPointOperator.js`);if(e?.signal?.aborted||this.selectedFeature!==n||!n.geometry)return;this.location=t(n.geometry);return}try{let r=n.geometry,i=this._getHighlightLayer(n),o=n.getObjectId();if(!i||!this.view)return;if(o!=null){let n=this.view?.allLayerViews.find(e=>e.layer.uid===i.uid);if(!n||!(`queryFeatures`in n))return;let a=n.createQuery();a.outSpatialReference=t,a.objectIds=[o],a.returnGeometry=!0;let{features:s}=await n.queryFeatures(a,e);if(e?.signal?.aborted)return;r=s[0]?.geometry}if(!r||r.type===`mesh`)return;r=p(r,t),D??=await Promise.all([import(`../geometry/operators/intersectsOperator.js`),import(`../geometry/operators/proximityOperator.js`)]);let[{intersectsExecute:s},{proximityGetNearestCoordinate:c}]=D;if(!s(r,a)){let e=c(r,a).coordinate??a;this.selectedFeature===n&&(this.location=e)}}catch(e){s(e)||r.getLogger(this).error(e)}}}_cancelLocationUpdate(){this._locationUpdateController=i(this._locationUpdateController)}async _getLayerView(e,t){return await e.when(),e.whenLayerView(t)}_getHighlightLayer(e){let t=g(e),{layer:n}=e;return t&&`layer`in t&&t.layer?t.layer:t?.type===`map-notes`||t?.type===`sketch`||t?.type===`subtype-group`?t:n??t}_getHighlightLayerView(e,t){return t.type===`subtype-sublayer`&&t.parent&&this._mapIncludesLayer(t.parent)?this._getLayerView(e,t.parent):t&&this._mapIncludesLayer(t)?this._getLayerView(e,t):null}_getHighlightTarget(e,t,n){if(O(t.type,n))return e;let r=e.getObjectId();if(r!=null)return r;let i=t.type===`imagery`?void 0:`objectIdField`in t?t.objectIdField||_:null,a=e.attributes;return a&&i&&a[i]||e}_mapIncludesLayer(e){return!!this.map?.allLayers?.includes(e)}async _highlightFeature(e,t){this.removeHandles(e);let n=this[t];if(!n)return;let{highlightEnabled:r,view:i,open:a}=this;if(!i||!r||!a)return;let o=this._getHighlightLayer(n);if(!o)return;let s=this._getHighlightLayerView(i,o);if(!s)return;this._highlightPromises[e]=s;let c=await s;if(!c||!T(c)||this._highlightPromises[e]!==s||!this[t]||!this.highlightEnabled)return;let l=c.highlight(this._getHighlightTarget(n,o,i.type));this.addHandles(l,e)}async _highlightActiveFeature(){return this._highlightFeature(`highlight-active-feature`,`activeFeature`)}async _highlightSelectedFeature(){return this._highlightFeature(`highlight-selected-feature`,`selectedFeature`)}async _consumeFeatureStream(e,t){try{for await(let n of e){if(e!==this._activeFeatureStream)return;let r=!this._featureStreamHasYielded;r&&(this.features=[]),t!==void 0&&(this.location=t,t=void 0),this._set(`pendingLocation`,null),this._addFeature(n),r&&(this._featureStreamHasYielded=!0)}}finally{this._activeFeatureStream===e&&(this._featureStreamHasYielded||(this.features=[]),this._activeFeatureStream=null,this._set(`pendingLocation`,null),this._waitingForResultChange())}}_addFeature(e){let{features:t}=this;t.includes(e)||(this.features=t.concat(e))}};e([u()],k.prototype,`_initialDisplayMode`,void 0),e([u()],k.prototype,`_activeFeatureStream`,void 0),e([u()],k.prototype,`_featureStreamHasYielded`,void 0),e([u({type:v})],k.prototype,`actions`,void 0),e([u({type:v,readOnly:!0})],k.prototype,`defaultActions`,null),e([u({readOnly:!0})],k.prototype,`active`,null),e([u()],k.prototype,`activeFeature`,void 0),e([u()],k.prototype,`aggregatedFeaturesEnabled`,void 0),e([u({value:null})],k.prototype,`content`,null),e([u({type:Boolean})],k.prototype,`defaultPopupTemplateEnabled`,void 0),e([u({readOnly:!0})],k.prototype,`diagnostics`,void 0),e([u({readOnly:!0})],k.prototype,`effectiveHeading`,null),e([u({readOnly:!0})],k.prototype,`featureCount`,null),e([u()],k.prototype,`featurePage`,void 0),e([u({value:[]})],k.prototype,`features`,null),e([u()],k.prototype,`featureStream`,null),e([u()],k.prototype,`featuresPerPage`,void 0),e([u()],k.prototype,`featureMenuOpen`,void 0),e([u({type:S})],k.prototype,`featureItemAbilities`,void 0),e([u({readOnly:!0})],k.prototype,`featureItems`,void 0),e([u()],k.prototype,`heading`,void 0),e([u()],k.prototype,`highlightEnabled`,void 0),e([u()],k.prototype,`includeDefaultActions`,void 0),e([u()],k.prototype,`initialDisplayMode`,null),e([u({type:f})],k.prototype,`location`,null),e([u()],k.prototype,`map`,null),e([u()],k.prototype,`open`,void 0),e([u({readOnly:!0})],k.prototype,`pendingLocation`,null),e([u({readOnly:!0})],k.prototype,`streamingFeatures`,null),e([u({value:null,readOnly:!0})],k.prototype,`selectedFeature`,null),e([u({value:-1})],k.prototype,`selectedFeatureIndex`,null),e([u({readOnly:!0})],k.prototype,`selectedFeatureItem`,null),e([u({type:m})],k.prototype,`spatialReference`,null),e([u({readOnly:!0})],k.prototype,`state`,null),e([u()],k.prototype,`timeZone`,null),e([u()],k.prototype,`updateLocationEnabled`,void 0),e([u()],k.prototype,`view`,void 0),e([u({readOnly:!0})],k.prototype,`waitingForContents`,null),e([u({readOnly:!0})],k.prototype,`waitingForResult`,null),e([u()],k.prototype,`zoomFactor`,void 0),k=e([d(`esri.popup.FeatureContentCollection`)],k);const A=k;export{A as default};
|
|
File without changes
|