{"version":3,"sources":["webpack:///./node_modules/arcgis-js-api/views/3d/layers/graphics/Graphics3DFilterVisibility.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/graphics/Graphics3DFeatureLikeLayerView.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/graphics/QueryEngine.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/controllers/FeatureTileController3D.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/support/featureReference.js","webpack:///./node_modules/arcgis-js-api/views/3d/support/EventedSet.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/graphics/Graphics3DElevationAlignment.js","webpack:///./node_modules/arcgis-js-api/views/layers/support/FeatureFilter.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/support/FeatureTile.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/support/FeatureTileFetcher3DDebugger.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/support/projectExtentUtils.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/graphics/Graphics3DObjectStateSet.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/support/attributeUtils.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/FeatureLikeLayerView3D.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/graphics/Graphics3DObjectStates.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/support/FeatureTileFetcher3D.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/graphics/ExtentSet.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/graphics/Graphics3DFrustumVisibility.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,2BAAO,CAAC,2BAA2B,CAAC,2BAA0B,CAAC,2BAAyB,CAAC,2BAAwB,C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AS,CAAC,OAAS,CAAC,2BAAO,CAAC,2BAA2B,CAAC,2BAA0B,CAAC,2BAA6B,CAAC,2BAA6C,CAAC,2BAAgD,CAAC,2BAAyC,CAAC,2BAA4B,CAAC,mCAAE,8BAA8B,aAAa,wBAAwB,mBAAmB,aAAa,8CAA8C,8IAA8I,sDAAsD,WAAW,0EAA0E,6CAA6C,EAAE,iEAAiE,4CAA4C,sBAAsB,sCAAsC,sBAAsB,2DAA2D,kBAAkB,cAAc,kBAAkB,8CAA8C,iCAAiC,0HAA0H,uCAAuC,+DAA+D,uCAAuC,KAAK,gCAAgC,2HAA2H,kCAAkC,wCAAwC,mCAAmC,+DAA+D,mCAAmC,iBAAiB,8CAA8C,iDAAiD,4DAA4D,gBAAgB,+EAA+E,+BAA+B,qDAAqD,0KAA0K,+CAA+C,iDAAiD,iCAAiC,gCAAgC,4BAA4B,mCAAmC,KAAK,uDAAuD,8BAA8B,kEAAkE,+BAA+B,yCAAyC,gCAAgC,kCAAkC,sEAAsE,+BAA+B,2BAA2B,YAAY,6DAA6D,YAAY,8HAA8H,IAAI;AAAA,oGAAE,C","file":"js/chunk-375dd132.cfe259ca.js","sourcesContent":["// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../../core/Accessor\",\"../../../../core/Handles\",\"../../../../core/Logger\",\"../../../../core/maybe\",\"../../../../core/promiseUtils\",\"../../../../core/watchUtils\",\"../../../../core/accessorSupport/decorators\",\"./QueryEngine\",\"../../../layers/support/FeatureFilter\",\"../../../support/Scheduler\"],(function(e,t,i,r,n,s,o,u,a,l,h,c,y){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.Graphics3DFilterVisibility=void 0;var d=s.getLogger(\"esri.views.3d.layers.graphics.Graphics3DFilterVisibility\"),p=function(e){function t(){for(var t=[],i=0;i0},enumerable:!1,configurable:!0}),t.prototype.recomputeFilter=function(){var e=\"filter\"in this._layerView?this._layerView.filter:null,t=\"timeExtent\"in this._layerView?this._layerView.timeExtent:null;if(!t)return e;var i=o.isSome(e)?e.clone():new c;return i.timeExtent=i.timeExtent?i.timeExtent.intersection(t):t,i},t.prototype._needsUpdate=function(){return this._dirty&&!this._querying||null!=this._queryResult},t.prototype._update=function(e){var t=this;this.active?(!this._dirty||this._querying||e.done||(this._querying=!0,this.dirty=!1,this._queryEngine.executeQueryForIdSet(this.filter).then((function(e){t._queryResult=e,t._querying=!1})).catch((function(e){u.isAbortError(e)||(d.warn(\"FeatureFilter query failed: \"+e,{error:e}),t._queryResult=new Set,t._core.graphics3DGraphics.forEach((function(e){return t._queryResult.add(t._getFeatureId(e.graphic))})),t._querying=!1)})),e.madeProgress()),this._queryResult&&!e.done&&(this._core.modifyGraphics3DGraphicVisibilities((function(i){if(e.done)return!1;var r=t._queryResult.has(t._getFeatureId(i.graphic));return!!i.setVisibilityFlag(2,r,0)&&(e.madeProgress(),!0)})),e.done||(this._queryResult=null)),this.notifyChange(\"updating\")):this.clear()},t.prototype._getFeatureId=function(e){return null==e.objectId?e.attributes[this._objectIdField]:e.objectId},Object.defineProperty(t.prototype,\"dirty\",{set:function(e){this._dirty!==e&&(this._dirty=e,this.notifyChange(\"updating\"))},enumerable:!1,configurable:!0}),i.__decorate([l.property({readOnly:!0})],t.prototype,\"updating\",null),t=i.__decorate([l.subclass(\"esri.views.3d.layers.graphics.Graphics3DFilterVisibility\")],t)}(r);t.Graphics3DFilterVisibility=p}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../../Graphic\",\"../../../../core/Accessor\",\"../../../../core/compilerUtils\",\"../../../../core/Handles\",\"../../../../core/promiseUtils\",\"../../../../core/watchUtils\",\"../../../../core/accessorSupport/decorators\",\"../../../../core/accessorSupport/diffUtils\",\"../../../../geometry/support/webMercatorUtils\",\"../../../../tasks/support/Query\",\"./constants\",\"./Graphics3DCore\",\"./Graphics3DElevationAlignment\",\"./Graphics3DFilterVisibility\",\"./Graphics3DFrustumVisibility\",\"./Graphics3DObjectStates\",\"./Graphics3DScaleVisibility\",\"./graphicUtils\",\"../support/attributeUtils\",\"../../../support/WatchUpdatingTracking\"],(function(t,e,i,r,s,n,a,o,p,l,u,c,d,h,y,g,f,b,m,_,v,w,E){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var V=function(t){function e(e){var i=t.call(this,e)||this;return i._handles=new a,i.watchUpdatingTracking=new E.WatchUpdatingTracking,i.suspendResumeExtentMode=\"computed\",i.dataExtent=null,i.suspendResumeExtent=null,i}return i.__extends(e,t),Object.defineProperty(e.prototype,\"suspended\",{get:function(){return this.scaleVisibility&&this.scaleVisibility.suspended||this.frustumVisibility&&this.frustumVisibility.suspended},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"suspendInfo\",{get:function(){var t={};return this.scaleVisibility&&this.scaleVisibility.suspended&&(t.outsideScaleRange=!0),this.frustumVisibility&&this.frustumVisibility.suspended&&(t.outsideOfView=!0),t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"updating\",{get:function(){return!!(this.graphicsCore&&this.graphicsCore.updating||this.frustumVisibility&&this.frustumVisibility.updating||this.watchUpdatingTracking&&this.watchUpdatingTracking.updating)},enumerable:!1,configurable:!0}),e.prototype.normalizeCtorArgs=function(t){var e=t.frustumVisibilityEnabled?new b:null,i=t.scaleVisibilityEnabled?new _:null,r=(t.filterVisibilityEnabled||t.timeExtentVisibilityEnabled)&&\"multipatch\"!==t.layer.geometryType?new f.Graphics3DFilterVisibility:null,s=t.elevationAlignmentEnabled?new g.default:null;return{graphicsCore:new y.Graphics3DCore({owner:t.owner,layer:t.layer,preferredUpdatePolicy:t.preferredUpdatePolicy,elevationFeatureExpressionEnabled:t.elevationFeatureExpressionEnabled,graphicSymbolSupported:!1,hasZ:t.owner.hasZ,hasM:t.owner.hasM}),frustumVisibility:e,scaleVisibility:i,filterVisibility:r,elevationAlignment:s,updateClippingExtent:t.updateClippingExtent,suspendResumeExtentMode:t.suspendResumeExtentMode,dataExtent:t.dataExtent}},e.prototype.initialize=function(){var t=this;this.scaleVisibility&&this.watchUpdatingTracking.add(this.layer,\"scaleRangeId\",(function(){return t.scaleVisibility.layerMinMaxScaleChangeHandler()})),this.filterVisibility&&(this.watchUpdatingTracking.add(this.owner,\"filter\",(function(){return t.filterVisibility.filterChanged()})),this.watchUpdatingTracking.add(this.owner,\"timeExtent\",(function(){return t.filterVisibility.filterChanged()}))),this.elevationAlignment&&this.watchUpdatingTracking.add(this.layer,\"elevationInfo\",(function(e,i){u.diff(e,i)&&t.watchUpdatingTracking.addPromise(t.graphicsCore.elevationInfoChange())})),this.watchUpdatingTracking.add(this.layer,\"labelsVisible\",(function(){return t.graphicsCore.updateVisibilityInfo()})),this.watchUpdatingTracking.add(this.layer,\"labelingInfo\",(function(e,i){u.diff(e,i)&&t.graphicsCore.updateLabelingInfo()}))},e.prototype.setup=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e,r,s,n=this;return i.__generator(this,(function(i){switch(i.label){case 0:return this.frustumVisibility&&this.frustumVisibility.setup(this.owner),t=this.owner,e=this.owner.view.basemapTerrain,r=function(t,e,i){return n.graphicsCore.spatialIndex.queryGraphicUIDsInExtent(t,e,i)},this.scaleVisibility&&this.scaleVisibility.setup(t,this.layer,r,this.graphicsCore,e),this.filterVisibility&&(\"filter\"in t||\"timeExtent\"in t)&&this.filterVisibility.setup(t,this.graphicsCore),this.elevationAlignment&&(s=t.view.elevationProvider,this.elevationAlignment.setup(t,r,this.graphicsCore,s)),this._set(\"objectStates\",new m.Graphics3DObjectStates(this.graphicsCore)),this._set(\"labeling\",this.owner.view.labeler.addGraphicsOwner(this.graphicsCore,this.scaleVisibility)),this._set(\"deconfliction\",t.view.deconflictor.addGraphicsOwner(this.graphicsCore)),[4,o.logOnError(this.graphicsCore.setup({elevationAlignment:this.elevationAlignment,scaleVisibility:this.scaleVisibility,filterVisibility:this.filterVisibility,deconflictor:this.deconfliction,labeler:this.labeling,objectStates:this.objectStates}))];case 1:return i.sent(),this.watchUpdatingTracking.add(this.layer,\"renderer\",(function(t){return n.watchUpdatingTracking.addPromise(n.graphicsCore.rendererChange(t))})),this.watchUpdatingTracking.add(t,\"fullOpacity\",(function(){return n.graphicsCore.opacityChange()})),this.setupSuspendResumeExtent(),this.updateClippingExtent&&(this.watchUpdatingTracking.add(t.view,\"clippingArea\",(function(){return n._updateClippingExtent()})),this._updateClippingExtent()),this.graphicsCore.startCreateGraphics(),this.graphicsCore.labelsEnabled?[4,o.logOnError(this.graphicsCore.updateLabelingInfo())]:[3,3];case 2:i.sent(),i.label=3;case 3:return[2]}}))}))},e.prototype.destroy=function(){this._handles&&(this._handles.destroy(),this._handles=null);for(var t=0,e=[\"watchUpdatingTracking\",\"frustumVisibility\",\"scaleVisibility\",\"filterVisibility\",\"elevationAlignment\",\"objectStates\",\"graphicsCore\"];t0){if(t[0]instanceof r){var o=t;if(!e||!o[0].attributes||null===w.attributeLookup(o[0].attributes,e)){var p=o.map((function(t){return t.uid})),l=this.objectStates.acquireSet(0,null),u=l.set;a=l.handle;return this.objectStates.setUids(u,p),a}t=o.map((function(t){return w.attributeLookup(t.attributes,e)}))}if(\"number\"==typeof t[0]||\"string\"==typeof t[0]){var c=t,h=this.objectStates.acquireSet(0,e);u=h.set,a=h.handle;return this.objectStates.setObjectIds(u,c),a}}return C},e.prototype._updateClippingExtent=function(){var t=this.owner.view.clippingArea;this.graphicsCore.setClippingExtent(t,this.owner.view.spatialReference)&&(this.updateClippingExtent(t)||this.graphicsCore.recreateAllGraphics())},e.prototype.setupSuspendResumeExtent=function(){var t=this;(this.frustumVisibility||this.scaleVisibility)&&this._handles.add(p.init(this,\"suspendResumeExtentMode\",(function(){switch(t._handles.remove(x),t.suspendResumeExtentMode){case\"computed\":t._handles.add([p.init(t.graphicsCore,\"computedExtent\",(function(e){return t.updateSuspendResumeExtent(e)})),t.graphicsCore.watch(\"extentPadding\",(function(){return t.updateSuspendResumeExtent(t.graphicsCore.computedExtent)}))],x);break;case\"data\":t._handles.add([p.init(t,\"dataExtent\",(function(e){return t.updateSuspendResumeExtent(e)})),t.graphicsCore.watch(\"extentPadding\",(function(){return t.updateSuspendResumeExtent(t.dataExtent)}))],x);break;default:n.neverReached(t.suspendResumeExtentMode)}})))},e.prototype.updateSuspendResumeExtent=function(t){t?this.suspendResumeExtentChanged(this.extentToSuspendResumeRect(t,this.suspendResumeExtent)):this.suspendResumeExtentChanged(null)},e.prototype.extentToSuspendResumeRect=function(t,e){var i=this.owner.view.spatialReference;if(!t.spatialReference.equals(i)){if(!c.canProject(t,i))return;t=c.project(t,i)}return v.enlargeExtent(t,e,h.SUSPEND_RESUME_EXTENT_OPTIMISM,this.graphicsCore.extentPadding)},e.prototype.suspendResumeExtentChanged=function(t){this.frustumVisibility&&this.frustumVisibility.setExtent(t),this.scaleVisibility&&this.scaleVisibility.setExtent(t)},i.__decorate([l.property({aliasOf:\"graphicsCore.layer\"})],e.prototype,\"layer\",void 0),i.__decorate([l.property({aliasOf:\"graphicsCore.owner\"})],e.prototype,\"owner\",void 0),i.__decorate([l.property({constructOnly:!0})],e.prototype,\"updateClippingExtent\",void 0),i.__decorate([l.property({constructOnly:!0})],e.prototype,\"graphicsCore\",void 0),i.__decorate([l.property({constructOnly:!0})],e.prototype,\"scaleVisibility\",void 0),i.__decorate([l.property({constructOnly:!0})],e.prototype,\"filterVisibility\",void 0),i.__decorate([l.property({constructOnly:!0})],e.prototype,\"elevationAlignment\",void 0),i.__decorate([l.property({constructOnly:!0})],e.prototype,\"frustumVisibility\",void 0),i.__decorate([l.property({readOnly:!0})],e.prototype,\"deconfliction\",void 0),i.__decorate([l.property({readOnly:!0})],e.prototype,\"labeling\",void 0),i.__decorate([l.property({readOnly:!0})],e.prototype,\"objectStates\",void 0),i.__decorate([l.property({readOnly:!0})],e.prototype,\"watchUpdatingTracking\",void 0),i.__decorate([l.property()],e.prototype,\"suspendResumeExtentMode\",void 0),i.__decorate([l.property()],e.prototype,\"dataExtent\",void 0),i.__decorate([l.property({readOnly:!0,dependsOn:[\"scaleVisibility.suspended\",\"frustumVisibility.suspended\"]})],e.prototype,\"suspended\",null),i.__decorate([l.property({readOnly:!0,dependsOn:[\"scaleVisibility.suspended\",\"frustumVisibility.suspended\"]})],e.prototype,\"suspendInfo\",null),i.__decorate([l.property({readOnly:!0,dependsOn:[\"graphicsCore.updating\",\"frustumVisibility.updating\",\"watchUpdatingTracking.updating\"]})],e.prototype,\"updating\",null),e=i.__decorate([l.subclass(\"esri.views.3d.layers.graphics.Graphics3DFeatureLikeLayerView\")],e)}(s);e.default=V;var x=\"suspendResumeExtentMode\",C={remove:function(){},pause:function(){},resume:function(){}}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../../geometry\",\"../../../../core/Accessor\",\"../../../../core/maybe\",\"../../../../core/accessorSupport/decorators\",\"../../../../geometry/Extent\",\"../../../../layers/graphics/data/QueryEngine\",\"../../../../tasks/support/FeatureSet\",\"../../../../tasks/support/Query\"],(function(e,t,r,n,a,o,i,u,s,y,c){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.QueryEngine=void 0;var l=s.default,p=function(e){function t(t){var r=e.call(this,t)||this;return r._dataQueryEngineInstance=null,r}return r.__extends(t,e),Object.defineProperty(t.prototype,\"queryGeometryType\",{get:function(){switch(this.layer.geometryType){case\"multipoint\":case\"point\":case\"polygon\":case\"polyline\":return this.layer.geometryType;case\"mesh\":return\"polygon\";default:return}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"defaultQueryJSON\",{get:function(){return new c({outSpatialReference:this.spatialReference}).toJSON()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"dataQueryEngine\",{get:function(){return this.ensureDataQueryEngine()},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.clear()},t.prototype.clear=function(){return!!this._dataQueryEngineInstance&&(this._dataQueryEngineInstance.destroy(),this._dataQueryEngineInstance=null,!0)},t.prototype.executeQueryForIdSet=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(r){return[2,this.dataQueryEngine.executeQueryForIdSet(this._ensureQueryJSON(e),t)]}))}))},t.prototype.executeQueryForCount=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(r){return[2,this.dataQueryEngine.executeQueryForCount(this._ensureQueryJSON(e),t)]}))}))},t.prototype.executeQueryForExtent=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,a,o,i;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,this.dataQueryEngine.executeQueryForExtent(this._ensureQueryJSON(e),t)];case 1:return n=r.sent(),a=n.count,o=n.extent,i=u.fromJSON(o),[2,{count:a,extent:i}]}}))}))},t.prototype.executeQueryForIds=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(r){return[2,this.dataQueryEngine.executeQueryForIds(this._ensureQueryJSON(e),t)]}))}))},t.prototype.executeQueryForLatestObservations=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,a,o=this;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,this.dataQueryEngine.executeQueryForLatestObservations(this._ensureQueryJSON(e),t)];case 1:return n=r.sent(),(a=y.fromJSON(n)).features.forEach((function(e){e.layer=o.layer,e.sourceLayer=o.layer})),[2,a]}}))}))},t.prototype.executeQuery=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,a,o=this;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,this.dataQueryEngine.executeQuery(this._ensureQueryJSON(e),t)];case 1:return n=r.sent(),(a=y.fromJSON(n)).features.forEach((function(e){e.layer=o.layer,e.sourceLayer=o.layer})),[2,a]}}))}))},t.prototype._ensureQueryJSON=function(e){return o.isNone(e)?this.defaultQueryJSON:(\"outSpatialReference\"in e&&!e.outSpatialReference&&(e.outSpatialReference=this.spatialReference),e.toJSON())},t.prototype.ensureDataQueryEngine=function(){if(this._dataQueryEngineInstance)return this._dataQueryEngineInstance;var e=\"timeInfo\"in this.layer&&this.layer.timeInfo&&this.layer.timeInfo.toJSON()||null,t=this.layer.objectIdField,r=n.featureGeometryTypeKebabDictionary.toJSON(this.queryGeometryType),a=this.layer.fields.map((function(e){return e.toJSON()})),o=this.layerView.view.resourceController.scheduler,i=this.task,u=this.spatialReference.toJSON(),s=this.layerView.graphics3d.graphicsCore.featureStore,y=this.layerView,c=y.hasZ,p=y.hasM;return this._dataQueryEngineInstance=new l({hasZ:c,hasM:p,geometryType:r,fields:a,timeInfo:e,spatialReference:u,objectIdField:t,featureStore:s,scheduler:o,task:i}),this._dataQueryEngineInstance},r.__decorate([i.property({constructOnly:!0})],t.prototype,\"layerView\",void 0),r.__decorate([i.property({constructOnly:!0})],t.prototype,\"task\",void 0),r.__decorate([i.property({readOnly:!0,aliasOf:\"layerView.view.spatialReference\"})],t.prototype,\"spatialReference\",void 0),r.__decorate([i.property({readOnly:!0,aliasOf:\"layerView.layer\"})],t.prototype,\"layer\",void 0),r.__decorate([i.property({readOnly:!0,dependsOn:[\"layer.geometryType\"]})],t.prototype,\"queryGeometryType\",null),r.__decorate([i.property({readOnly:!0,dependsOn:[\"spatialReference\"]})],t.prototype,\"defaultQueryJSON\",null),t=r.__decorate([i.subclass(\"esri.views.3d.layers.graphics.QueryEngine\")],t)}(a);t.QueryEngine=p,t.default=p}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../core/Accessor\",\"../../../core/asyncUtils\",\"../../../core/Collection\",\"../../../core/compilerUtils\",\"../../../core/Error\",\"../../../core/Handles\",\"../../../core/lang\",\"../../../core/Logger\",\"../../../core/maybe\",\"../../../core/Promise\",\"../../../core/promiseUtils\",\"../../../core/watchUtils\",\"../../../core/accessorSupport/decorators\",\"../../support/arcgisLayerUrl\",\"../../../portal/support/geometryServiceUtils\",\"../../../tasks/support/StatisticDefinition\",\"../../../views/3d/layers/support/FeatureTileFetcher3D\",\"../../../views/3d/layers/support/FeatureTileFetcher3DDebugger\",\"../../../views/3d/support/debugFlags\",\"../../../views/support/WatchUpdatingTracking\"],(function(e,t,r,i,a,n,o,s,c,l,u,p,h,d,m,f,y,g,v,F,x,b,_){\"use strict\";var T=u.getLogger(\"esri.layers.graphics.controllers.FeatureTileController3D\"),E=function(e){function t(t){var r=e.call(this,t)||this;return r.type=\"feature-tile-3d\",r.watchUpdatingTracking=new _.WatchUpdatingTracking,r.serviceDataExtent=null,r.serviceDataCount=i.constants.NO_SERVICE_DATA_COUNT,r.vertexLimitExceeded=!1,r.displayFeatureLimit=null,r.suspended=!1,r.tileFetcher=null,r.handles=new c,r.fetchDataInfoPromise=null,r.fetchDataInfoAbortController=null,r.lifeCycleAbortController=d.createAbortController(),r}var i;return r.__extends(t,e),i=t,Object.defineProperty(t.prototype,\"extent\",{set:function(e){if(!e||e.spatialReference.equals(this.layerView.view.spatialReference)){var t=this._get(\"extent\");if(t!==e&&!(t&&e&&t.equals(e))){var r=e?e.clone():null;this._set(\"extent\",r)}}else T.error(\"#extent=\",\"extent needs to be in the same spatial reference as the view\")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"updating\",{get:function(){return!!(this.tileFetcher&&this.tileFetcher.updating||null!=this.fetchDataInfoPromise||\"tiles\"===this.mode&&this.layerView.view.featureTiles&&this.layerView.view.featureTiles.updating||this.watchUpdatingTracking&&this.watchUpdatingTracking.updating)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"updatingTotal\",{get:function(){return this.updating&&this.tileFetcher?this.tileFetcher.updatingTotal:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"updatingRemaining\",{get:function(){return this.updating&&this.tileFetcher?this.tileFetcher.updatingRemaining:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"expectedFeatureDiff\",{get:function(){return this.updating&&this.tileFetcher?this.tileFetcher.expectedFeatureDiff:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"memoryForUnusedFeatures\",{get:function(){return this.tileFetcher?this.tileFetcher.memoryForUnusedFeatures:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"maximumNumberOfFeaturesExceeded\",{get:function(){return!(!this.tileFetcher||!this.tileFetcher.maximumNumberOfFeaturesExceeded)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"filteredDataExtent\",{get:function(){return this.extent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"maximumNumberOfFeatures\",{get:function(){return this.displayFeatureLimit?this.displayFeatureLimit.maximumNumberOfFeatures:0},set:function(e){e!==this.maximumNumberOfFeatures&&(null==e?this._clearOverride(\"maximumNumberOfFeatures\"):this._override(\"maximumNumberOfFeatures\",e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"hasMaximumNumberOfFeaturesOverride\",{get:function(){return this._isOverridden(\"maximumNumberOfFeatures\")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"mode\",{get:function(){if(this.serviceDataCount===i.constants.NO_SERVICE_DATA_COUNT||this.vertexLimitExceeded)return\"tiles\";var e=this.layerView,t=e.layer,r=e.view,a=r&&r.featureTiles,n=a&&a.tilingScheme;if(t&&t.minScale&&this.serviceDataExtent&&n){var o=this.approximateExtentSizeAtScale(t.minScale,n);if((this.serviceDataExtent.width/o+this.serviceDataExtent.height/o)/2>i.constants.MAX_SNAPSHOT_MIN_SCALE_FACTOR)return\"tiles\"}return!this.maximumNumberOfFeatures||this.serviceDataCount<=this.maximumNumberOfFeatures?\"snapshot\":\"tiles\"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"maxTotalSnapshotVertices\",{get:function(){var e=this._get(\"maxTotalSnapshotVertices\")||0,t=\"snapshot\"===this.mode&&this.tileFetcher&&this.tileFetcher.totalVertices||0;return Math.max(e,t)},enumerable:!1,configurable:!0}),t.prototype.approximateExtentSizeAtScale=function(e,t){var r=this.layerView.view,i=Math.ceil((r.width/t.pixelSize+r.height/t.pixelSize)/2),a=t.levels[0];return i*((a.tileSize[0]/(a.scale/e)+a.tileSize[1]/(a.scale/e))/2)},Object.defineProperty(t.prototype,\"tileDescriptors\",{get:function(){return\"snapshot\"===this.mode?new n([{id:\"dummy-tile-full-extent\",lij:[0,0,0]}]):this.layerView.view.featureTiles?this.layerView.view.featureTiles.tiles:new n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"test\",{get:function(){return{fetchDataInfoPromise:this.fetchDataInfoPromise,tileFetcher:this.tileFetcher}},enumerable:!1,configurable:!0}),t.prototype.initialize=function(){var e=this;this.watchUpdatingTracking.add(this,\"vertexLimitInfo\",(function(){return e.watchUpdatingTracking.addPromise(e.updateVertexLimitExceeded(null,e.lifeCycleAbortController.signal))})),this.watchUpdatingTracking.add(this,\"mode\",(function(){return e.modeChanged()}),2),this.addResolvingPromise(d.resolve().then((function(){return e.verifyCapabilities()})).then((function(){return e.watchUpdatingTracking.addPromise(e.fetchServiceDataInfo())})).then((function(){return e.initializeTileFetcher()})))},t.prototype.verifyCapabilities=function(){var e=this.layerView.layer;if(!e.get(\"capabilities.operations.supportsQuery\"))throw new s(\"graphicscontroller:query-capability-required\",\"Service requires query capabilities to be used as a feature layer\",{layer:e})},t.prototype.destroy=function(){this.cancelFetchServiceDataInfo(),this.tileFetcher&&(this.tileFetcher.destroy(),this.tileFetcher=null),this.handles&&(this.handles.destroy(),this.handles=null),this.tilesHandle&&(this.tilesHandle.remove(),this.tilesHandle=null),this.lifeCycleAbortController&&(this.lifeCycleAbortController.abort(),this.lifeCycleAbortController=null),this.watchUpdatingTracking.destroy(),this._set(\"watchUpdatingTracking\",null)},t.prototype.suspend=function(){this.suspended||(this.suspended=!0,this.tileFetcher&&this.tileFetcher.suspend())},t.prototype.resume=function(){this.suspended&&(this.suspended=!1,this.tileFetcher&&this.tileFetcher.resume())},t.prototype.restart=function(){var e=this,t=function(){e.tileFetcher&&e.tileFetcher.restart()};this.watchUpdatingTracking.addPromise(this.fetchServiceDataInfo().then(t,t))},t.prototype.refetch=function(){var e=this,t=function(){e.tileFetcher&&e.tileFetcher.refetch()};this.watchUpdatingTracking.addPromise(this.fetchServiceDataInfo().then(t,t))},t.prototype.initializeTileFetcher=function(){var e=this,t=this.layerView.view;if(t){var r=m.whenOnce(t.featureTiles,\"tilingScheme\",this.lifeCycleAbortController.signal);this.watchUpdatingTracking.addPromise(r),r.then((function(){var r=e,i=r.layerView,a=r.tileDescriptors,n=i.layer;e.tileFetcher=new F.FeatureTileFetcher3D({context:e.context,filterExtent:e.filteredDataExtent,tileDescriptors:a,features:e.graphics}),e.suspended?e.tileFetcher.suspend():e.tileFetcher.resume();var o=e.layerView.view.resourceController;o&&(e.handles.add(o.memoryController.events.on(\"quality-changed\",(function(t){e.tileFetcher.memoryFactor=t}))),e.tileFetcher.memoryFactor=o.memoryController.memoryFactor);var s=\"polygon\"===e.context.geometryType?\"polygonLodFactor\":\"polyline\"===e.context.geometryType?\"polylineLodFactor\":null;s&&e.handles.add(m.init(e.layerView.view,\"qualitySettings.graphics3D.\"+s,(function(t){e.tileFetcher.lodFactor=t||1})));e.watchUpdatingTracking.add(n,\"createQueryVersion\",(function(){return e.dataFilterChanged()})),e.watchUpdatingTracking.add(i,\"availableFields\",(function(t,r){return e.availableFieldsChanged(r,t)})),e.watchUpdatingTracking.add(i,\"requiredFields\",(function(t,r){return e.requiredFieldsChanged(r,t)})),e.handles.add([n.on(\"apply-edits\",(function(t){return e.applyEdits(t)})),e.watch(\"filteredDataExtent\",(function(t){return e.tileFetcher.filterExtent=t}),!0),e.watch(\"tileDescriptors\",(function(t){return e.tileFetcher.tileDescriptors=t}),!0),m.init(e,\"maximumNumberOfFeatures\",(function(t){e.tileFetcher.maximumNumberOfFeatures=t,e.tileFetcher.useTileCount=e.serviceDataCount>t}),!0),m.init(e,\"serviceDataCount\",(function(t){return e.tileFetcher.useTileCount=t>e.maximumNumberOfFeatures}),!0),m.init(b,\"FEATURE_TILE_FETCH_SHOW_TILES\",(function(r){r&&e.tileFetcher&&!e.tileFetcher.debugger?(e.tileFetcher.debugger=new x.FeatureTileFetcher3DDebugger(e.tileFetcher,t.featureTiles.tilingScheme.toTileInfo(),t),e.tileFetcher.debugger.update()):!r&&e.tileFetcher&&e.tileFetcher.debugger&&(e.tileFetcher.debugger.destroy(),e.tileFetcher.debugger=null)}))]),e.supportsExceedsLimitQuery||e.watchUpdatingTracking.add(e,\"maxTotalSnapshotVertices\",(function(){return e.watchUpdatingTracking.addPromise(e.updateVertexLimitExceeded(null,e.lifeCycleAbortController.signal))}))})).catch((function(){}))}},t.prototype.modeChanged=function(){switch(this.mode){case\"tiles\":this.tilesHandle||(this.tilesHandle=this.layerView.view.featureTiles.addClient());break;default:T.warn(\"Unhandled feature layer mode \"+this.mode);case\"snapshot\":this.tilesHandle&&(this.tilesHandle.remove(),this.tilesHandle=null)}},t.prototype.dataFilterChanged=function(){this._set(\"maxTotalSnapshotVertices\",0),this.notifyChange(\"maxTotalSnapshotVertices\"),this.refetch()},t.prototype.applyEdits=function(e){var t=this;this.tileFetcher.applyEdits(e).then((function(e){e&&(e.deletedFeatures.length||e.updatedFeatures.length||e.addedFeatures.length)&&t.watchUpdatingTracking.addPromise(t.updateServiceDataExtent(t.lifeCycleAbortController.signal))}))},t.prototype.availableFieldsChanged=function(e,t){this.tileFetcher&&O(this.tileFetcher.availableFields,t)&&this.refetch()},t.prototype.requiredFieldsChanged=function(e,t){this.tileFetcher&&O(this.tileFetcher.availableFields,t)&&this.restart()},t.prototype.createVertexLimitExceededQuery=function(e){var t=this.layerView.layer,r=t.createQuery();return r.outStatistics=[new v({statisticType:\"exceedslimit\",maxVertexCount:e,outStatisticFieldName:\"exceedslimit\",maxPointCount:1e8,maxRecordCount:1e8})],t.capabilities.query.supportsCacheHint&&(r.cacheHint=!0),r},t.prototype.createDataInfoQuery=function(){var e=this.layerView.layer,t=e.createQuery();return t.outSpatialReference=this.layerView.view.spatialReference,e.capabilities.query.supportsCacheHint&&(t.cacheHint=!0),t},t.prototype.fullExtentIsAccurate=function(){var e=this.layerView.layer;if(e.definitionExpression)return!1;switch(e.type){case\"feature\":return y.isHostedAgolService(e.url);case\"csv\":case\"geojson\":case\"ogc-feature\":return!0;default:return void o.neverReached(e)}},t.prototype.updateServiceDataExtent=function(e){return r.__awaiter(this,void 0,void 0,(function(){var t;return r.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.tryUpdateServiceDataExtent(e)];case 1:return r.sent(),[3,3];case 2:return t=r.sent(),d.isAbortError(t)||this._set(\"serviceDataExtent\",l.clone(this.layerView.fullExtentInLocalViewSpatialReference)),[3,3];case 3:return[2]}}))}))},t.prototype.tryUpdateServiceDataExtent=function(e){return r.__awaiter(this,void 0,void 0,(function(){var t,a,n,o,s,c,u,p,h,d,m;return r.__generator(this,(function(r){switch(r.label){case 0:return t=this.layerView,a=t.layer,n=a.capabilities.query.supportsExtent,o=l.clone(t.fullExtentInLocalViewSpatialReference),s=a.fullExtent,c=this.fullExtentIsAccurate(),u=this.serviceDataCount,n&&u<=i.constants.MAX_FEATURE_COUNT_FOR_EXTENT&&(!o||!c)&&\"queryExtent\"in a?(p=this.createDataInfoQuery(),[4,a.queryExtent(p,{timeout:i.constants.QUERY_EXTENT_TIMEOUT,signal:e})]):[3,2];case 1:return h=r.sent(),this._set(\"serviceDataExtent\",h.extent),[3,6];case 2:return o?(this._set(\"serviceDataExtent\",o),[3,6]):[3,3];case 3:return s?(d=\"portalItem\"in a?a.portalItem:null,[4,g.projectGeometry(s,t.view.spatialReference,d,e)]):[3,5];case 4:return m=r.sent(),this._set(\"serviceDataExtent\",m),[3,6];case 5:this._set(\"serviceDataExtent\",null),r.label=6;case 6:return[2]}}))}))},t.prototype.updateServiceDataCount=function(e){return r.__awaiter(this,void 0,void 0,(function(){var t,n,o;return r.__generator(this,(function(r){switch(r.label){case 0:return\"queryFeatureCount\"in(t=this.layerView.layer)?[4,a.result(t.queryFeatureCount(this.createDataInfoQuery(),{timeout:i.constants.QUERY_STATISTICS_TIMEOUT,signal:e}))]:(o=i.constants.NO_SERVICE_DATA_COUNT,this._set(\"serviceDataCount\",o),[2]);case 1:if(!0===(n=r.sent()).ok)this._set(\"serviceDataCount\",n.value);else{if(d.isAbortError(n.error))throw n.error;o=i.constants.NO_SERVICE_DATA_COUNT,this._set(\"serviceDataCount\",o)}return[2]}}))}))},Object.defineProperty(t.prototype,\"vertexLimitInfo\",{get:function(){if(!this.displayFeatureLimit||!this.displayFeatureLimit.maximumSymbolComplexity)return null;var e=this.displayFeatureLimit,t=e.maximumSymbolComplexity,r=e.maximumTotalNumberOfPrimitives,i=t.primitivesPerCoordinate,a=t.primitivesPerFeature,n=this._get(\"vertexLimitInfo\");return p.isNone(n)||n.maximumTotalNumberOfPrimitives!==r||n.primitivesPerCoordinate!==i||n.primitivesPerFeature!==a?{primitivesPerCoordinate:i,primitivesPerFeature:a,maximumTotalNumberOfPrimitives:r}:n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"supportsExceedsLimitQuery\",{get:function(){var e=this.layerView.layer;return e.capabilities&&e.capabilities.operations&&e.capabilities.operations.supportsExceedsLimitStatistics},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"minimumNumberOfVerticesForGeometry\",{get:function(){var e=this.layerView.layer.geometryType;switch(e){case\"point\":case\"multipoint\":return 1;case\"polygon\":return 4;case\"polyline\":return 2;case\"multipatch\":case\"mesh\":return 3;default:return o.neverReached(e),0}},enumerable:!1,configurable:!0}),t.prototype.updateVertexLimitExceeded=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,o,s,c,l,u,h,m,f,y,g,v,F,x;return r.__generator(this,(function(r){switch(r.label){case 0:return n=p.isSome(this.vertexLimitInfo)&&this.vertexLimitInfo.primitivesPerFeature<=0,o=this.minimumNumberOfVerticesForGeometry>1,s=this.layerView.layer,c=this.supportsExceedsLimitQuery,p.isNone(this.vertexLimitInfo)||!n&&!o?(this._set(\"vertexLimitExceeded\",!1),[2]):(l=this.vertexLimitInfo,u=l.primitivesPerFeature,h=l.primitivesPerCoordinate,m=l.maximumTotalNumberOfPrimitives,0!==u&&p.isSome(e)?[4,e]:[3,2]);case 1:r.sent(),r.label=2;case 2:return f=this.serviceDataCount,g=f!==i.constants.NO_SERVICE_DATA_COUNT,y=g?Math.ceil((m-f*u)/(h||1)):Math.ceil(m/(h||1)),o&&(y=Math.min(y,w)),g&&this.minimumNumberOfVerticesForGeometry*f>y?(this._set(\"vertexLimitExceeded\",!0),[2]):c?[4,a.result(s.queryFeatures(this.createVertexLimitExceededQuery(y),{timeout:i.constants.QUERY_STATISTICS_TIMEOUT,signal:t}))]:(this._set(\"vertexLimitExceeded\",this.maxTotalSnapshotVertices>y),[2]);case 3:if(!1===(v=r.sent()).ok){if(d.isAbortError(v.error))throw v.error;return this._set(\"vertexLimitExceeded\",!1),[2]}return F=v.value,(x=F.features[0])&&x.attributes?this._set(\"vertexLimitExceeded\",!!x.attributes.exceedslimit):this._set(\"vertexLimitExceeded\",!1),[2]}}))}))},t.prototype.fetchServiceDataInfo=function(){return r.__awaiter(this,void 0,void 0,(function(){var e,t,i,a,n,o=this;return r.__generator(this,(function(r){return this.cancelFetchServiceDataInfo(),e=d.createAbortController(),t=e.signal,i=this.updateServiceDataCount(t),a=d.eachAlways([i,this.updateVertexLimitExceeded(i,t)]),n=a.then((function(){return o.updateServiceDataExtent(t)})).catch((function(e){d.isAbortError(e)||T.error(\"#fetchServiceDataInfo()\",e)})).then((function(){n===o.fetchDataInfoPromise&&(o.fetchDataInfoPromise=null,o.fetchDataInfoAbortController=null),e=null})),e&&(this.fetchDataInfoPromise=n),this.fetchDataInfoAbortController=e,[2,a.then((function(){}),(function(){}))]}))}))},t.prototype.cancelFetchServiceDataInfo=function(){var e=this.fetchDataInfoAbortController;e&&(this.fetchDataInfoAbortController=null,this.fetchDataInfoPromise=null,e.abort())},Object.defineProperty(t.prototype,\"debug\",{get:function(){return{storedFeatures:this.tileFetcher?this.tileFetcher.storedFeatures:0,totalFeatures:this.tileFetcher?this.tileFetcher.totalFeatures:0,totalVertices:this.tileFetcher?this.tileFetcher.totalVertices:0}},enumerable:!1,configurable:!0}),r.__decorate([f.property({readOnly:!0})],t.prototype,\"type\",void 0),r.__decorate([f.property({constructOnly:!0})],t.prototype,\"graphics\",void 0),r.__decorate([f.property({constructOnly:!0})],t.prototype,\"layerView\",void 0),r.__decorate([f.property({constructOnly:!0})],t.prototype,\"context\",void 0),r.__decorate([f.property()],t.prototype,\"extent\",null),r.__decorate([f.property({dependsOn:[\"tileFetcher.updating\",\"mode\",\"layerView.view.featureTiles.updating\",\"fetchDataInfoPromise\",\"watchUpdatingTracking.updating\"]})],t.prototype,\"updating\",null),r.__decorate([f.property({readOnly:!0})],t.prototype,\"watchUpdatingTracking\",void 0),r.__decorate([f.property({dependsOn:[\"updating\",\"tileFetcher.updatingTotal\"]})],t.prototype,\"updatingTotal\",null),r.__decorate([f.property({dependsOn:[\"updating\",\"tileFetcher.updatingRemaining\"]})],t.prototype,\"updatingRemaining\",null),r.__decorate([f.property({dependsOn:[\"updating\",\"tileFetcher.expectedFeatureDiff\"]})],t.prototype,\"expectedFeatureDiff\",null),r.__decorate([f.property({dependsOn:[\"tileFetcher.memoryForUnusedFeatures\"]})],t.prototype,\"memoryForUnusedFeatures\",null),r.__decorate([f.property({dependsOn:[\"tileFetcher.maximumNumberOfFeaturesExceeded\"]})],t.prototype,\"maximumNumberOfFeaturesExceeded\",null),r.__decorate([f.property({readOnly:!0})],t.prototype,\"serviceDataExtent\",void 0),r.__decorate([f.property({readOnly:!0})],t.prototype,\"serviceDataCount\",void 0),r.__decorate([f.property({readOnly:!0})],t.prototype,\"vertexLimitExceeded\",void 0),r.__decorate([f.property({readOnly:!0,dependsOn:[\"extent\"]})],t.prototype,\"filteredDataExtent\",null),r.__decorate([f.property()],t.prototype,\"displayFeatureLimit\",void 0),r.__decorate([f.property({type:Number,dependsOn:[\"displayFeatureLimit\"]})],t.prototype,\"maximumNumberOfFeatures\",null),r.__decorate([f.property({readOnly:!0,dependsOn:[\"serviceDataCount\",\"displayFeatureLimit\",\"maximumNumberOfFeatures\",\"vertexLimitExceeded\",\"serviceDataExtent\",\"layerView.layer.minScale\",\"layerView.view.featureTiles.tilingScheme\"]})],t.prototype,\"mode\",null),r.__decorate([f.property({readOnly:!0,dependsOn:[\"mode\",\"tileFetcher.totalVertices\"]})],t.prototype,\"maxTotalSnapshotVertices\",null),r.__decorate([f.property({readOnly:!0,dependsOn:[\"mode\"]})],t.prototype,\"tileDescriptors\",null),r.__decorate([f.property()],t.prototype,\"tileFetcher\",void 0),r.__decorate([f.property()],t.prototype,\"fetchDataInfoPromise\",void 0),r.__decorate([f.property({readOnly:!0,dependsOn:[\"displayFeatureLimit\"]})],t.prototype,\"vertexLimitInfo\",null),t=i=r.__decorate([f.subclass(\"esri.layers.graphics.controllers.FeatureTileController3D\")],t)}(h.EsriPromiseMixin(i)),w=5e6;function O(e,t){if(!t)return!1;for(var r=0,i=t;r0&&(this.refCount--,!this.isReferenced)?(o.newVersion=null,o):(o.newVersion=this._feature,o)},Object.defineProperty(e.prototype,\"feature\",{get:function(){return this._feature},enumerable:!1,configurable:!0}),e}();t.SingleFeatureReference=n;var o={oldVersion:null,newVersion:null}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../core/Evented\",\"../../../core/SetUtils\"],(function(e,t,r,n,i){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.EventedSet=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._set=new Set,t}return r.__extends(t,e),t.prototype.clear=function(){if(this._set.size>0){var e=this.toArray();this._set.clear(),this.emit(\"after-changes\",{type:2}),this.emit(\"change\",{added:[],removed:e})}},Object.defineProperty(t.prototype,\"length\",{get:function(){return this._set.size},enumerable:!1,configurable:!0}),t.prototype.addMany=function(e){if(0!==e.length){for(var t=0,r=e;t0&&(this.emit(\"after-changes\",{type:2}),this.emit(\"change\",{added:[],removed:t}))},t.prototype.toArray=function(){return i.valuesOfSet(this._set)},t.prototype.find=function(e){var t;return i.someSet(this._set,(function(r){return!!e(r)&&(t=r,!0)})),t},t.prototype.forEach=function(e){this._set.forEach((function(t){return e(t)}))},t}(n);t.EventedSet=o}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../../core/Accessor\",\"../../../../core/Evented\",\"../../../../core/Handles\",\"../../../../core/SetUtils\",\"../../../../core/accessorSupport/decorators\",\"./ExtentSet\",\"../../../support/Scheduler\"],(function(e,t,i,r,s,n,a,o,h,p){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dirtyExtents=new h.ExtentSet,t.globalDirty=!1,t.dirtyGraphicsSet=new Set,t.handles=new n,t.updateElevation=!1,t.layerView=null,t.graphicsCore=null,t.events=new s,t}return i.__extends(t,e),Object.defineProperty(t.prototype,\"updating\",{get:function(){return this.needsUpdate()},enumerable:!1,configurable:!0}),t.prototype.setup=function(e,t,i,r){var s=this;this.layerView=e,this.queryGraphicUIDsInExtent=t,this.graphicsCore=i,this.elevationProvider=r;var n=this.layerView.view.resourceController.scheduler;this.handles.add([r.on(\"elevation-change\",(function(e){return s._elevationChanged(e)})),this.layerView.watch(\"suspended\",(function(){return s.suspendedChange()})),n.registerTask(p.Task.ELEVATION_ALIGNMENT,(function(e){return s.update(e)}),(function(){return s.needsUpdate()}))])},t.prototype.destroy=function(){this.dirtyGraphicsSet=null,this.handles.destroy(),this.handles=null,this.layerView=null,this.graphicsCore=null,this.queryGraphicUIDsInExtent=null},t.prototype.clear=function(){this.dirtyGraphicsSet.clear(),this.notifyChange(\"updating\")},t.prototype.suspendedChange=function(){!0===this.layerView.suspended?this.updateElevation=!1:!1===this.layerView.suspended&&this.updateElevation&&(this.globalDirty=!0,this.notifyChange(\"updating\"))},t.prototype.elevationInfoChange=function(){this.globalDirty=!0,this.notifyChange(\"updating\")},t.prototype.needsUpdate=function(){return this.dirtyGraphicsSet&&this.dirtyGraphicsSet.size>0||this.dirtyExtents&&!this.dirtyExtents.empty||this.globalDirty},t.prototype.update=function(e){var t=this;for(this.globalDirty&&(this.markAllGraphicsElevationDirty(),this.globalDirty=!1,e.madeProgress()),e.run((function(){return t.dirtyExtents.merge(e)}));this.needsUpdate()&&!e.done;)this._updateDirtyGraphics(e),this._updateDirtyExtents(e);this.layerView.view.deconflictor.setDirty(),this.notifyChange(\"updating\")},t.prototype._updateDirtyGraphics=function(e){for(var t=this,i=this.layerView.view,r=this.graphicsCore.stageLayer.id,s=this.layerView.labeling,n=function(){var n=Math.min(o.dirtyGraphicsSet.size,100);a.someSet(o.dirtyGraphicsSet,(function(r){var s=t.graphicsCore.getGraphics3DGraphicById(r);return t.dirtyGraphicsSet.delete(r),s&&s.alignWithElevation(t.elevationProvider,i.renderCoordsHelper,t.graphicsCore.asyncUpdates),e.madeProgress(),--n<=0||e.done})),i._stage.processDirtyLayer(r),s&&s.processStageDirty()},o=this;this.dirtyGraphicsSet.size>0&&!e.done;)n()},t.prototype._updateDirtyExtents=function(e){for(var t=this;!this.dirtyExtents.empty&&this.dirtyGraphicsSet.size<100&&!e.done;){var i=this.dirtyExtents.pop(),r=this.elevationProvider.spatialReference;this.events.emit(\"invalidate-elevation\",{extent:i,spatialReference:r}),this.queryGraphicUIDsInExtent(i,r,(function(e){var i=t.graphicsCore.getGraphics3DGraphicById(e);i&&i.needsElevationUpdates()&&t.dirtyGraphicsSet.add(e)})),e.madeProgress()}},t.prototype.markAllGraphicsElevationDirty=function(){var e=this;this.dirtyExtents.clear(),this.dirtyGraphicsSet.clear(),this.graphicsCore.graphics3DGraphics.forEach((function(t,i){return e.dirtyGraphicsSet.add(i)}))},t.prototype._elevationChanged=function(e){if(\"scene\"!==e.context||this.graphicsCore.layer.elevationInfo&&\"relative-to-scene\"===this.graphicsCore.layer.elevationInfo.mode){var t=e.extent,i=e.spatialReference;if(this.layerView.suspended){if(!this.updateElevation){var r=this.graphicsCore.computedExtent;r&&t[2]>r.xmin&&t[0]r.ymin&&t[1]0}}}}})],t.prototype,\"distance\",void 0),r.__decorate([l.property({type:[Number],json:{write:!0}})],t.prototype,\"objectIds\",void 0),r.__decorate([l.property({type:String,json:{read:y.read,write:{writer:y.write,overridePolicy:function(e){return{enabled:e&&this.distance>0}}}}})],t.prototype,\"units\",void 0),r.__decorate([l.property({type:o,json:{write:!0}})],t.prototype,\"timeExtent\",void 0),r.__decorate([l.property({readOnly:!0})],t.prototype,\"enabled\",void 0),t=n=r.__decorate([l.subclass(\"esri.views.layers.support.FeatureFilter\")],t)}(s.JSONSupport)}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../../core/arrayUtils\",\"../../../../core/maybe\",\"../../../../geometry/support/aaBoundingRect\",\"../../../../layers/graphics/dehydratedFeatures\"],(function(e,t,i,r,s,u){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.FAILED_FEATURE_COUNT=t.FeatureTile=void 0;var n=new Set,a=function(){function e(e){this.descriptor=e,this.fetchStatus=0,this._features=null,this._numVertices=0,this._featureLimit=0,this.featuresMissing=!0,this._shuffled=!1,this._numFeatures=h,this._emptyFeatureRatio=0,this._estimatedSize=-1,this._estimatedUnusedSize=0,this._estimatedUnusedSizeDirty=!1,this._availableFields=n,this.displayingFeatures=null,this.alive=!0,this.filtered=!1}return Object.defineProperty(e.prototype,\"perTileMaximumNumberOfFeaturesExceeded\",{get:function(){return!this.filtered&&(this.featuresMissing||this.features&&this.featureLimit!==this.features.length)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"features\",{get:function(){return this._features},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"featureLimit\",{get:function(){return this._featureLimit},set:function(e){this._featureLimit!==e&&(this._featureLimit=e,this._estimatedUnusedSizeDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"availableFields\",{get:function(){return this._availableFields},enumerable:!1,configurable:!0}),e.prototype.setFeatures=function(e,t,i){this._availableFields=r.unwrapOr(i,n),this._features=e,this._shuffled=!1,this._estimatedSize=-1,this._estimatedUnusedSizeDirty=!0,e&&e.length>0?(this._emptyFeatureRatio=t/(e.length+t),this._numVertices=e.reduce((function(e,t){return e+u.numVertices(t.geometry)}),0)):(this._emptyFeatureRatio=0,this._numVertices=0)},Object.defineProperty(e.prototype,\"emptyFeatureRatio\",{get:function(){return this._emptyFeatureRatio},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"numFeatures\",{get:function(){return this.hasPreciseFeatureCount?this._numFeatures:this._features?this._features.length:0},set:function(e){this._numFeatures=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"hasPreciseFeatureCount\",{get:function(){return this._numFeatures>h},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"needsFeatureCount\",{get:function(){return this._numFeatures===h},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"numVertices\",{get:function(){return this._numVertices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"id\",{get:function(){return this.descriptor.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"estimatedSize\",{get:function(){return this.updateMemoryEstimates(),this._estimatedSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"estimatedUnusedSize\",{get:function(){return this._estimatedUnusedSize},enumerable:!1,configurable:!0}),e.prototype.updateMemoryEstimates=function(){if(this._estimatedSize<0){if(this._estimatedSize=0,this._estimatedUnusedSize=0,this._features)for(var e=0;e=this.featureLimit&&(this._estimatedUnusedSize+=t)}return!0}if(this._estimatedUnusedSizeDirty){if(this._estimatedUnusedSize=0,this._estimatedUnusedSizeDirty=!1,this._features)for(e=this.featureLimit;ee.length)return!1;for(var r=0;rthis._features.length&&(this.featureLimit=this._features.length,4===this.fetchStatus&&this._features.length>0&&(this.fetchStatus=1,r=!0)),!this._shuffled&&e<1&&this._shuffle(i);var s=Math.max(this.featureLimit,Math.ceil(t*this.numFeatures));this._features.length>s&&(this._features.length=s,this.featuresMissing=!0,5===this.fetchStatus&&(this.fetchStatus=4))}else this.featureLimit=0;return r},Object.defineProperty(e.prototype,\"cache\",{get:function(){return{availableFields:this._availableFields,features:this.features,numFeatures:this._numFeatures,emptyFeatureRatio:this._emptyFeatureRatio,fetchStatus:this.fetchStatus,featuresMissing:this.featuresMissing}},set:function(e){this.requestController=null,this._availableFields=e.availableFields,this._features=e.features,this._numFeatures=e.numFeatures,this._emptyFeatureRatio=e.emptyFeatureRatio,this.fetchStatus=e.fetchStatus,this.featuresMissing=e.featuresMissing,this._estimatedSize=-1,this._estimatedUnusedSizeDirty=!0},enumerable:!1,configurable:!0}),e}();t.FeatureTile=a;var h=-1;t.FAILED_FEATURE_COUNT=-2;var f=s.create()}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../../Graphic\",\"../../../../geometry/Polygon\",\"../../../../symbols/FillSymbol3DLayer\",\"../../../../symbols/PointSymbol3D\",\"../../../../symbols/PolygonSymbol3D\",\"../../../../symbols/TextSymbol3DLayer\",\"../../terrain/TilingScheme\"],(function(e,t,i,n,r,o,a,s,h){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.FeatureTileFetcher3DDebugger=void 0;var l=[[0,179,255],[117,62,128],[0,104,255],[215,189,166],[32,0,193],[98,162,206],[102,112,129],[52,125,0],[142,118,246],[138,83,0],[92,122,255],[122,55,83],[0,142,255],[81,40,179],[0,200,244],[13,24,127],[0,170,147],[19,58,241],[22,44,35]],c=function(){function e(e,t,i){this.loadingGraphics=new Map,this.loadedGraphics=new Map,this.pendingGraphics=new Map,this._enabled=!0,this.tileFetcher=e,this.view=i,this.tilingScheme=new h(t),this.loadedSymbols=l.map((function(e){return new a(new r({material:{color:[e[0],e[1],e[2],.6]},outline:{color:\"black\",size:1}}))})),this.loadingSymbols=[new a(new r({material:{color:[200,200,200,.4]},outline:{color:[30,30,30],size:1}}))],this.pendingSymbols=[new a(new r({material:{color:[100,100,100,.4]},outline:{color:[30,30,30],size:1}}))],this.dataExtentSymbol=new a(new r({material:{color:[0,0,0,0]},outline:{color:\"green\",size:4}}))}return e.prototype.destroy=function(){this.enabled=!1},Object.defineProperty(e.prototype,\"enabled\",{get:function(){return this._enabled},set:function(e){this._enabled=e,this.update()},enumerable:!1,configurable:!0}),e.prototype.update=function(){var e=this;this._enabled?(this.synchronizeMaps(this.loadingGraphics,{filter:function(e){return e.isFetching},symbols:this.loadingSymbols}),this.synchronizeMaps(this.loadedGraphics,{filter:function(e){return!e.isFetching},symbols:this.loadedSymbols}),this.synchronizeMaps(this.pendingGraphics,{filter:function(e){return!e.isFetching},symbols:this.pendingSymbols}),this.showDataExtent(this.tileFetcher.filterExtent)):(this.loadingGraphics.forEach((function(t){e.view.graphics.removeMany(t)})),this.loadingGraphics.clear(),this.loadedGraphics.forEach((function(t){e.view.graphics.removeMany(t)})),this.loadedGraphics.clear(),this.pendingGraphics.forEach((function(t){e.view.graphics.removeMany(t)})),this.pendingGraphics.clear(),this.dataExtentGraphic&&(this.view.graphics.remove(this.dataExtentGraphic),this.dataExtentGraphic=null))},e.prototype.showDataExtent=function(e){if(this.dataExtentGraphic&&(this.view.graphics.remove(this.dataExtentGraphic),this.dataExtentGraphic=null),e){var t=n.fromExtent(e);this.dataExtentGraphic=new i({geometry:t,symbol:this.dataExtentSymbol}),this.view.graphics.add(this.dataExtentGraphic)}},e.prototype.synchronizeMaps=function(e,t){var n=this,r=[];e.forEach((function(e,i){var o=n.tileFetcher.test.getFeatureTileById(i);o&&t.filter(o)||(n.view.graphics.removeMany(e),r.push(i))})),r.forEach((function(t){return e.delete(t)})),this.tileFetcher.test.forEachFeatureTile((function(r){if(t.filter(r)&&!e.has(r.id)){var a=r.descriptor.lij,h=a[0],l=a[1],c=a[2];n.tilingScheme.ensureMaxLod(h);var p=n.tilingScheme.getExtentGeometry(h,l,c),d=[new i({geometry:p,symbol:t.symbols[h%t.symbols.length]}),new i({geometry:p.center,symbol:new o({verticalOffset:{screenLength:40/.75},callout:{type:\"line\",color:\"white\",border:{color:\"black\"}},symbolLayers:[new s({text:h+\"/\"+l+\"/\"+c,halo:{color:\"white\",size:1/.75},material:{color:\"black\"},size:16})]})})];e.set(r.id,d),n.view.graphics.addMany(d)}}))},e}();t.FeatureTileFetcher3DDebugger=c,t.default=c}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../../core/promiseUtils\",\"../../../../geometry/support/webMercatorUtils\",\"../../../../portal/support/geometryServiceUtils\"],(function(e,t,r,o,l){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.toViewIfLocal=void 0,t.toViewIfLocal=function(e){var t=e.view.spatialReference,i=e.layer.fullExtent,n=i&&i.spatialReference;return n?n.equals(t)?r.resolve(i.clone()):o.canProject(n,t)?r.resolve(o.project(i,t)):e.view.state.isLocal?l.projectGeometry(i,t,e.layer.portalItem).then((function(t){return!e.destroyed&&t?t:void 0})).catch((function(){return null})):r.resolve(null):r.resolve(null)}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../webgl-engine/lib/Object3DStateSet\"],(function(t,e,i){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.Graphics3DObjectStateSet=void 0;var s=function(){function t(t,e){this.stateType=t,this.objectIdField=e,this.objectStateSet=new i.Object3DStateSet,this.ids=new Set,this.paused=!1}return t.prototype.hasGraphic=function(t){if(this.objectIdField){var e=t.graphic.attributes[this.objectIdField];return this.ids.has(e)}return this.ids.has(t.graphic.uid)},t}();e.Graphics3DObjectStateSet=s}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\"],(function(e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.attributeLookup=void 0,t.attributeLookup=function(e,t){for(var r=t.toLowerCase(),o=0,u=Object.keys(e);o0}))),this.setDirty()},t.prototype.destroy=function(){var e=this;this.handles&&(this.handles.destroy(),this.handles=null),this.featureTiles.forEach((function(t){e.cancelFetchTile(t),e.removeTile(t)})),this.featureTiles.clear(),this.displayingFeatureReferences.clear(),this.pendingEdits&&(this.pendingEdits.controller.abort(),this.pendingEdits=null)},Object.defineProperty(t.prototype,\"paused\",{get:function(){return this.suspended||!!this.pendingEdits},enumerable:!1,configurable:!0}),t.prototype.restart=function(){var e=this;this.featureTiles.forEach((function(t){e.cancelFetchTile(t),e.clearTile(t),e.resetFetchTile(t)})),o.isSome(this.context.memoryCache)&&this.context.memoryCache.clear(),this.setDirty()},t.prototype.refetch=function(){var e=this;this.featureTiles.forEach((function(t){e.cancelFetchTile(t),e.resetFetchTile(t)})),o.isSome(this.context.memoryCache)&&this.context.memoryCache.clear(),this.setDirty()},t.prototype.suspend=function(){this.suspended||(this.suspended=!0,this.pause(),this.setDirty())},t.prototype.resume=function(){this.suspended&&(this.suspended=!1,this.unpause())},t.prototype.pause=function(){var e=this;this.paused&&(this.featureTiles.forEach((function(t){return e.cancelFetchTile(t)})),this.updated())},t.prototype.unpause=function(){this.paused||(this.setDirty(),this.updated())},Object.defineProperty(t.prototype,\"availableFields\",{get:function(){var e=null;return this.featureTiles.forEach((function(t){t.displayingFeatures&&0!==t.displayingFeatures.length&&(o.isNone(e)?e=l.SetFromValues(s.keysOfSet(t.availableFields)):e.forEach((function(r){t.availableFields.has(r)||o.unwrap(e).delete(r)})))})),o.isSome(e)?e:new Set},enumerable:!1,configurable:!0}),t.prototype.applyEdits=function(e){var t=this;this.pendingEdits||(this.pendingEdits={edits:u.resolve(),count:0,controller:u.createAbortController()},this.pause()),this.pendingEdits.count++;var r=this.pendingEdits.edits.then((function(){return e.result.catch((function(e){if(u.isAbortError(e))throw e;return null})).then((function(e){return e?(t.applyEditsDeleteFeatures(e.deletedFeatures),t.applyEditsAddUpdateFeatures(e.addedFeatures,e.updatedFeatures,t.pendingEdits.controller.signal).then((function(){return e}))):e})).then((function(e){return 0==--t.pendingEdits.count&&(t.pendingEdits=null,o.isSome(t.context.memoryCache)&&t.context.memoryCache.clear(),t.unpause(),t.updated()),e}))}));return this.pendingEdits.edits=r,this.updated(),r},t.prototype.applyEditsDeleteFeatures=function(e){var t=this;if(0!==e.length){var r=new Set;e.forEach((function(e){return r.add(e.objectId)})),this.featureTiles.forEach((function(e){if(e.features){var i=e.features.filter((function(e){return!r.has(f.getObjectId(e,t.objectIdField))}));i.length!==e.features.length&&(e.setFeatures(i,0,e.availableFields),t.invalidateCounts())}}))}},t.prototype.applyEditsAddUpdateFeatures=function(e,t,i){return r.__awaiter(this,void 0,void 0,(function(){var s,n,a,o=this;return r.__generator(this,(function(r){switch(r.label){case 0:return s=[],n=new Set,e.forEach((function(e){return s.push(e.objectId)})),t.forEach((function(e){s.push(e.objectId),n.add(e.objectId)})),0===s.length?[2]:(a=[],this.featureTiles.forEach((function(e){var t=o.applyEditsAddUpdateTile(e,s,n,i);t&&a.push(t)})),[4,u.eachAlways(a)]);case 1:return r.sent(),[2]}}))}))},t.prototype.applyEditsAddUpdateTile=function(e,t,i,s){return r.__awaiter(this,void 0,void 0,(function(){var n,a,o,u,c,l,p,h=this;return r.__generator(this,(function(r){switch(r.label){case 0:return e.features?((n=this.createQuery(e)).resultType=void 0,n.cacheHint=!1,n.objectIds=t,[4,this.queryFeatures(n,s)]):[2];case 1:if(a=r.sent(),o=null,i.size>0&&(u=e.features.filter((function(e){return!i.has(f.getObjectId(e,h.objectIdField))}))).length!==e.features.length&&(o=u),a.features.length>0)for(o||(o=e.features.slice()),c=0,l=a.features;c=this.maximumNumberOfFeaturesExceededNext&&this.updateMaximumNumberOfFeaturesExceeded(),this._dirty&&this.constructed){this._dirty=!1;var r=this.getListOfTiles();if(this.markTilesNotAlive(r),e.run((function(){return t.addTiles(r,e)}))&&e.run((function(){return t.filterExtentTiles(r,e)}))&&e.run((function(){return t.removeTiles(r,e)}))&&!e.done){var i=this.sortTiles(r);e.run((function(){return t.displayTiles(i,e)}))&&e.run((function(){return t.fetchTiles(i,e)}))&&e.run((function(){return t.updateMemoryEstimates(i,e)}))||this.setDirty(),this.updated()}else this.setDirty()}},t.prototype.markTilesNotAlive=function(e){for(var t=0,r=e;t=0&&!t.done;r--){var i=e[r];i.alive||(this.removeTile(i),r!==e.length-1&&(e[r]=e[e.length-1]),e.pop(),t.madeProgress())}return t.hasProgressed},t.prototype.sortTiles=function(e){return e.sort((function(e,t){return e.descriptor.loadPriority-t.descriptor.loadPriority})),e},t.prototype.displayTiles=function(e,t){for(var r=this,i=this.updateRatio(e),s=function(e){if(!t.run((function(){return function(e){var t=r._fullRatio<1?i(e)*r._farRatio:1;return e.reduceFeatures(t,r.memoryFactor,r.objectIdField)&&r.setDirty(),r.showTile(e)}(e)})))return n.setDirty(),\"break\"},n=this,a=0,o=e;a0||!!this.pendingEdits;if(this._set(\"updating\",r),r){var i=0,s=0,n=0,a=0,o=0,u=0,c=this.displayingFeatureReferences.size/this.numDisplayingFeatureReferences;this.featureTiles.forEach((function(t){if(++n,t.isFetching&&t.hasPreciseFeatureCount){var r=e.maximumFeaturesForTile(t)*(1-t.emptyFeatureRatio),i=t.displayingFeatures?t.displayingFeatures.length*c:0;u+=r-i}t.needsFetching?++o:t.numFeatures>0&&(++a,s+=t.numFeatures)})),o+=t;var l=0;s?(i=s,l=Math.min(o*s/a,s)):(i=n,l=o),u=Math.min(this.maximumNumberOfFeatures-this.features.length,u),this._set(\"updatingTotal\",i),this._set(\"updatingRemaining\",l),this._set(\"expectedFeatureDiff\",u)}else this._set(\"updatingTotal\",0),this._set(\"updatingRemaining\",0),this._set(\"expectedFeatureDiff\",0);this.debugger&&this.debugger.update(),this.updating||(this.maximumNumberOfFeaturesExceededNext=this.maximumNumberOfFeaturesExceededNext||performance.now()+this.maximumNumberOfFeaturesExceededThrottle)},t.prototype.updateMaximumNumberOfFeaturesExceeded=function(){if(!this.updating){var e=!1;this.featureTiles.forEach((function(t){e=e||t.perTileMaximumNumberOfFeaturesExceeded})),this.maximumNumberOfFeaturesExceededNext=0,this._set(\"maximumNumberOfFeaturesExceeded\",e)}},t.prototype.updateRatio=function(e){for(var t=function(e){for(var t=0,r=0,i=e;r0&&s.alive&&(t=Math.max(t,s.descriptor.lij[0]))}return t}(e),r=function(e){return 1/(1<e&&this.featureTiles.forEach((function(e){if(e.featuresMissing){var t=r.maximumFeaturesForTile(e);e.features&&(e.features.length>=t||5===e.fetchStatus)||(r.cancelFetchTile(e),r.resetFetchTile(e))}})),this.setDirty())},t.prototype.addTile=function(e){var t=new F.FeatureTile(e);return this.featureTiles.set(t.id,t),this.resetFetchTile(t),this.referenceDisplayingFeaturesFromRelatedTiles(t),t},t.prototype.referenceDisplayingFeaturesFromRelatedTiles=function(e){var t=this,r=e.descriptor.resolution;this.featureTiles.forEach((function(i){if(i.displayingFeatures&&e!==i&&(!e.descriptor.lij||!i.descriptor.lij||v.tilesAreRelated(e.descriptor.lij,i.descriptor.lij))){e.displayingFeatures=e.displayingFeatures||[];for(var s=0,n=i.displayingFeatures;sy.MAX_MAX_RECORD_COUNT_FACTOR?[2,this.fetchPagedTile(e,t)]:((a=this.createQuery(e)).maxRecordCountFactor=Math.ceil(i/s),e.isRefetching&&e.features&&e.features.length>0&&(o=Math.ceil(e.features.length/(1-e.emptyFeatureRatio)/s),a.maxRecordCountFactor=Math.max(o+1,a.maxRecordCountFactor)),[4,this.queryFeatures(a,t)]));case 1:return u=r.sent(),c=u.features,l=u.exceededTransferLimit,p=u.fields,h=l?a.maxRecordCountFactor>=y.MAX_MAX_RECORD_COUNT_FACTOR?5:4:5,e.featuresMissing=c.length0&&this.context.capabilities.supportsMaxRecordCountFactor?(e.maxRecordCountFactor=Math.ceil(r/i),e.num=Math.min(e.maxRecordCountFactor*i,r)):e.num=Math.min(i),!0)},t.prototype.getEffectiveTileResolution=function(e){if(null==e.descriptor.resolution)return null;var t=1===this.context.viewingMode?this.context.tilingScheme.resolutionAtLevel(3):1/0;return Math.min(e.descriptor.resolution,t)/this.lodFactor},Object.defineProperty(t.prototype,\"supportsResolution\",{get:function(){return this.context.capabilities.supportsMultipleResolutions&&\"point\"!==this.context.geometryType},enumerable:!1,configurable:!0}),t.prototype.setResolutionParams=function(e,t){if(this.supportsResolution){var r=this.getEffectiveTileResolution(t);null!=r&&(this.context.capabilities.supportsQuantization?e.quantizationParameters=new m.default({mode:\"view\",originPosition:\"upper-left\",tolerance:r,extent:this.context.fullExtent}):\"polyline\"===this.context.geometryType&&(e.maxAllowableOffset=r))}},t.prototype._removeEmptyFeatures=function(e){for(var t=e.length,r=0;r0&&this.context.capabilities.supportsResultType?r:o.isSome(i)&&i>0?i:M},t.prototype.useTileQuery=function(e){return(!_(e)||!this.context.capabilities.supportsCacheHint)&&this.context.capabilities.supportsResultType},t.prototype._handleRequest=function(e,t,r,i){var s=this;e.fetchStatus=e.needsRefetching?3:2,e.requestController=r;var n=!1;t.then((function(t){e.requestController=null,e.fetchStatus=t})).catch((function(t){e.requestController===r&&(e.requestController=null,e.fetchStatus=4),u.isAbortError(t)?n=!0:i(t)})).then((function(){n||s.setDirty(),s.scheduleUpdated()}))},t.prototype.scheduleUpdated=function(){var e=this;this.handles&&!this.handles.has(\"scheduleUpdated\")&&this.handles.add(c.schedule((function(){e.handles.remove(\"scheduleUpdated\"),e.updated()})),\"scheduleUpdated\")},t.prototype.showTile=function(e){if(e.displayingFeatures&&!e.needsDisplayUpdate)return!1;var t=e.features;if(0===e.featureLimit||!t){var r=e.displayingFeatures&&e.displayingFeatures.length>0;return this.hideTileFeatures(e),e.displayingFeatures=[],r}var i=e.descriptor.resolution,s=this.changes.updates,n=this.changes.adds,a=Math.min(e.featureLimit,t.length);e.featureLimit=a;for(var o=0;o0&&(this.features.removeMany(e.removes),e.removes.length=0),e.adds.length>0&&(this.features.addMany(e.adds),e.adds.length=0);for(var t=this.changes.adds,r=this.changes.removes,i=Math.min(t.length,r.length),s=0;si&&this.features.addMany(0===s?t:t.slice(s)),r.length>i&&this.features.removeMany(0===s?r:r.slice(s)),t.length=0,r.length=0},t.prototype.clearTile=function(e){if(this.hideTile(e),e.features&&o.isSome(this.context.memoryCache)){var t=16+e.estimatedSize;this.context.memoryCache.put(e.id,e.cache,t)}e.setFeatures(null,0,null),this.invalidateCounts()},t.prototype.invalidateCounts=function(){this.notifyChange(\"totalVertices\"),this.notifyChange(\"totalFeatures\"),this.notifyChange(\"memoryForUnusedFeatures\")},t.prototype.getListOfTiles=function(){var e=new Array(this.featureTiles.size),t=0;return this.featureTiles.forEach((function(r){return e[t++]=r})),e},Object.defineProperty(t.prototype,\"storedFeatures\",{get:function(){return this.getListOfTiles().reduce((function(e,t){return e+(t.features?t.features.length:0)}),0)},enumerable:!1,configurable:!0}),t.prototype.maximumFeaturesForTile=function(e){var t=e.hasPreciseFeatureCount?e.numFeatures:1/0,r=e.hasPreciseFeatureCount?t:this.maximumNumberOfFeatures,i=this._fullRatio<1?this._farRatio:1;return Math.min(Math.ceil(r*i/(1-e.emptyFeatureRatio)),t)},Object.defineProperty(t.prototype,\"test\",{get:function(){var e=this;return{update:function(t){return e.update(t)},getFeatureTileById:function(t){return e.featureTiles.get(t)},forEachFeatureTile:function(t){return e.featureTiles.forEach(t)}}},enumerable:!1,configurable:!0}),r.__decorate([h.property({constructOnly:!0})],t.prototype,\"features\",void 0),r.__decorate([h.property()],t.prototype,\"tileDescriptors\",void 0),r.__decorate([h.property({value:1/0})],t.prototype,\"maximumNumberOfFeatures\",null),r.__decorate([h.property({value:1})],t.prototype,\"memoryFactor\",null),r.__decorate([h.property({value:1})],t.prototype,\"lodFactor\",null),r.__decorate([h.property({dependsOn:[\"context\"]})],t.prototype,\"useTileCount\",null),r.__decorate([h.property({readOnly:!0})],t.prototype,\"updating\",void 0),r.__decorate([h.property({readOnly:!0})],t.prototype,\"updatingTotal\",void 0),r.__decorate([h.property({readOnly:!0})],t.prototype,\"updatingRemaining\",void 0),r.__decorate([h.property({readOnly:!0})],t.prototype,\"expectedFeatureDiff\",void 0),r.__decorate([h.property({readOnly:!0})],t.prototype,\"memoryForUnusedFeatures\",null),r.__decorate([h.property({readOnly:!0})],t.prototype,\"maximumNumberOfFeaturesExceeded\",void 0),r.__decorate([h.property({constructOnly:!0})],t.prototype,\"maximumNumberOfFeaturesExceededThrottle\",void 0),r.__decorate([h.property({readOnly:!0})],t.prototype,\"totalVertices\",null),r.__decorate([h.property({readOnly:!0})],t.prototype,\"totalFeatures\",null),r.__decorate([h.property()],t.prototype,\"filterExtent\",null),r.__decorate([h.property({constructOnly:!0})],t.prototype,\"context\",void 0),t=r.__decorate([h.subclass(\"esri.views.3d.layers.support.FeatureTileFetcher3D\")],t)}(i);function _(e){return\"dummy-tile-full-extent\"===e.id}function E(e){switch(e.geometryType){case\"polyline\":return!0;case\"polygon\":return e.capabilities&&e.capabilities.query&&e.capabilities.query.supportsQuantization;default:return!1}}function R(e){return e.setFeatures([],0,null),e.featuresMissing=!1,4}function C(e){return o.isNone(e)?new Set:l.SetFromValues(e.map((function(e){return e.name})))}function O(e,t){if(o.isNone(e)||o.isNone(t))return C(t);for(var r=new Set,i=0,s=t;i=s[2])break;i.add(u)}i.forEach((function(o){if(s!==o)if(o[2]<=s[0])i.delete(o);else{var a=r.area(s),u=r.area(o),c=e.tempExtent;r.expand(s,o,c);var f=a+u;(r.area(c)-f)/f<.05&&(r.set(s,c),i.delete(o),n.remove(o),t.madeProgress())}})),i.add(s)},u=0;u