(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08a2b3cf"],{"0c9a":function(e,t,r){"use strict";r.d(t,"a",(function(){return _})),r.d(t,"b",(function(){return f}));var s=r("971e"),i=r("ce6d"),n=(r("c120"),r("b2b2")),a=r("901f"),o=r("4261"),u=r("8483"),c=r("f209");function d(e,t){return e<<16|t}function l(e){return(4294901760&e)>>>16}function h(e){return 65535&e}const f={getObjectId:e=>e.getObjectId(),getAttributes:e=>e.readAttributes(),getAttribute:(e,t)=>e.readAttribute(t),cloneWithGeometry:(e,t)=>e,getGeometry:e=>e.readHydratedGeometry(),getCentroid:(e,t)=>e.readCentroid()};class _ extends u["a"]{constructor(e,t,r){super(e,t),this.featureAdapter=f,this.events=new i["a"],this._featureSetsByInstance=new Map,this._objectIdToDisplayId=new Map,this._spatialIndexInvalid=!0,this._indexSearchCache=new s["a"](50),this._index=Object(a["a"])(9,e=>({minX:this._storage.getXMin(e),minY:this._storage.getYMin(e),maxX:this._storage.getXMax(e),maxY:this._storage.getYMax(e)})),this._storage=t,this.mode=r}get storage(){return this._storage}get storeStatistics(){let e=0,t=0,r=0;return this.forEach(s=>{const i=s.readGeometry();i&&(t+=i.isPoint?1:i.lengths.reduce((e,t)=>e+t,0),r+=i.isPoint?1:i.lengths.length,e+=1)}),{featureCount:e,vertexCount:t,ringCount:r}}hasInstance(e){return this._featureSetsByInstance.has(e)}onTileData(e,t){if(Object(n["j"])(t.addOrUpdate))return t;if(t.addOrUpdate.attachStorage(this._storage),"snapshot"===this.mode){const r=t.addOrUpdate.getCursor();for(;r.next();){const t=r.getDisplayId();this.setComputedAttributes(this._storage,r,t,e.scale)}return t}this._featureSetsByInstance.set(t.addOrUpdate.instance,t.addOrUpdate);const r=t.addOrUpdate.getCursor();for(;r.next();)this._insertFeature(r,e.scale);return this._spatialIndexInvalid=!0,this.events.emit("changed"),t}search(e){this._rebuildIndex();const t=e.id,r=this._indexSearchCache.find(e=>e.tileId===t);if(Object(n["k"])(r))return r.readers;const s=new Map,i=this._searchIndex(e.bounds),a=[];for(const n of i){const e=this._storage.getInstanceId(n),t=l(e),r=h(e);s.has(t)||s.set(t,[]),s.get(t).push(r)}return s.forEach((e,t)=>{const r=this._featureSetsByInstance.get(t);a.push(c["a"].from(r,e))}),this._indexSearchCache.enqueue({tileId:t,readers:a}),a}insert(e){const t=e.getCursor(),r=this._storage;for(;t.next();){var s;const e=d(t.instance,t.getIndex()),i=t.getObjectId(),n=null!=(s=this._objectIdToDisplayId.get(i))?s:this._storage.createDisplayId();t.setDisplayId(n),r.setInstanceId(n,e),this._objectIdToDisplayId.set(i,n)}this._featureSetsByInstance.set(e.instance,e),this._spatialIndexInvalid=!0}remove(e){const t=this._objectIdToDisplayId.get(e);if(!t)return;const r=this._storage.getInstanceId(t),s=h(r),i=l(r),n=this._featureSetsByInstance.get(i);this._objectIdToDisplayId.delete(e),this._storage.releaseDisplayId(t),n.removeAtIndex(s),n.isEmpty&&this._featureSetsByInstance.delete(i),this._spatialIndexInvalid=!0}forEach(e){this._objectIdToDisplayId.forEach(t=>{const r=this._storage.getInstanceId(t),s=this._lookupFeature(r);e(s)})}forEachUnsafe(e){this._objectIdToDisplayId.forEach(t=>{const r=this._storage.getInstanceId(t),s=l(r),i=h(r),n=this._getFeatureSet(s);n.setIndex(i),e(n)})}forEachInBounds(e,t){const r=this._searchIndex(e);for(const s of r){const e=this.lookupFeatureByDisplayId(s,this._storage);t(Object(n["t"])(e))}}forEachBounds(e,t,r){this._rebuildIndex();const s=[0,0,0,0];for(const i of e){if(!i.readGeometry())continue;const e=i.getDisplayId();s[0]=this._storage.getXMin(e),s[1]=this._storage.getYMin(e),s[2]=this._storage.getXMax(e),s[3]=this._storage.getYMax(e),t(Object(o["s"])(r,s))}}sweepFeatures(e,t,r){this._spatialIndexInvalid=!0,this._objectIdToDisplayId.forEach((s,i)=>{e.has(s)||(t.releaseDisplayId(s),r&&r.unsetAttributeData(s),this._objectIdToDisplayId.delete(i))}),this.events.emit("changed")}sweepFeatureSets(e){this._spatialIndexInvalid=!0,this._featureSetsByInstance.forEach((t,r)=>{e.has(r)||this._featureSetsByInstance.delete(r)})}lookupObjectId(e,t){const r=this.lookupFeatureByDisplayId(e,t);return Object(n["j"])(r)?null:r.getObjectId()}lookupDisplayId(e){return this._objectIdToDisplayId.get(e)}lookupFeatureByDisplayId(e,t){const r=t.getInstanceId(e);return this._lookupFeature(r)}lookupByDisplayIdUnsafe(e){const t=this._storage.getInstanceId(e),r=l(t),s=h(t),i=this._getFeatureSet(r);return i?(i.setIndex(s),i):null}_insertFeature(e,t){const r=this._storage,s=e.getObjectId(),i=d(e.instance,e.getIndex());r.getInstanceId(e.getDisplayId());let n=this._objectIdToDisplayId.get(s);n||(n=r.createDisplayId(),this._objectIdToDisplayId.set(s,n),this._spatialIndexInvalid=!0),e.setDisplayId(n),r.setInstanceId(n,i),this.setComputedAttributes(r,e,n,t)}_searchIndex(e){this._rebuildIndex();const t={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]};return this._index.search(t)}_rebuildIndex(){if(!this._spatialIndexInvalid)return;const e=[];"snapshot"===this.mode?this._featureSetsByInstance.forEach(t=>{const r=t.getCursor();for(;r.next();){const t=r.getDisplayId();this._storage.setBounds(t,r)&&e.push(t)}}):this._objectIdToDisplayId.forEach(t=>{const r=this._storage.getInstanceId(t);this._storage.setBounds(t,this._lookupFeature(r))&&e.push(t)}),this._index.clear(),this._index.load(e),this._indexSearchCache.clear(),this._spatialIndexInvalid=!1}_lookupFeature(e){const t=l(e),r=h(e),s=this._getFeatureSet(t);if(!s)return null;const i=s.getCursor();return i.setIndex(r),i}_getFeatureSet(e){return this._featureSetsByInstance.get(e)}}},"1eef":function(e,t,r){"use strict";r.d(t,"a",(function(){return _})),r.d(t,"b",(function(){return w})),r.d(t,"c",(function(){return I})),r.d(t,"d",(function(){return x})),r.d(t,"e",(function(){return S})),r.d(t,"f",(function(){return m}));var s=r("fa8a"),i=r("b2b2"),n=r("8048"),a=r("f8d4"),o=r("a9ab"),u=r("a8d5"),c=r("7f83"),d=(r("d97e"),r("6655")),l=r("8152"),h=r("1ec3");const f=new s["a"]({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),_=Object.freeze({}),p=new l["a"],g=new l["a"],y=new l["a"],b={esriGeometryPoint:d["n"],esriGeometryPolyline:d["p"],esriGeometryPolygon:d["o"],esriGeometryMultipoint:d["m"]};function m(e,t,r,s=e.hasZ,n=e.hasM){if(Object(i["j"])(t))return null;const a=e.hasZ&&s,o=e.hasM&&n;if(r){const i=Object(d["v"])(y,t,e.hasZ,e.hasM,"esriGeometryPoint",r,s,n);return Object(d["n"])(i,a,o)}return Object(d["n"])(t,a,o)}function I(e,t,r,s,n,a,o=t,u=r){const c=t&&o,l=r&&u,h=Object(i["k"])(s)?"coords"in s?s:s.geometry:null;if(Object(i["j"])(h))return null;if(n){let s=Object(d["r"])(g,h,t,r,e,n,o,u);return a&&(s=Object(d["v"])(y,s,c,l,e,a)),b[e](s,c,l)}if(a){const s=Object(d["v"])(y,h,t,r,e,a,o,u);return b[e](s,c,l)}return Object(d["y"])(p,h,t,r,o,u),b[e](p,c,l)}async function x(e,t,r){const{outFields:s,orderByFields:i,groupByFieldsForStatistics:n,outStatistics:a}=e;if(s)for(let o=0;oObject(h["b"])(t,c["b"]));return(await O())(o.spatialReference,o,r,a)}async function O(){return(await Promise.all([r.e("chunk-2d22cf8c"),r.e("chunk-180660b2")]).then(r.bind(null,"00ac"))).geodesicBuffer}function w(e){return e&&v in e?JSON.parse(JSON.stringify(e,F)):e}const v="_geVersion",F=(e,t)=>e!==v?t:void 0},"2a5b":function(e,t,r){"use strict";r.d(t,"a",(function(){return F})),r.d(t,"b",(function(){return v})),r.d(t,"c",(function(){return w}));var s=r("ce50"),i=r("2172"),n=r("f547");function a(e){return"mesh"===e?n["a"]:Object(n["c"])(e)}var o=r("a9ab"),u=r("7f83");function c(e,t){return e?t?4:3:t?3:2}function d(e,t,r,s){return h(e,t,r,s.coords[0],s.coords[1])}function l(e,t,r,s,i,n){const a=c(i,n),{coords:o,lengths:u}=s;if(!u)return!1;for(let c=0,d=0;c=a||h=a)&&e+(a-i)/(h-i)*(l-e)d(e,!1,!1,t))}if(Object(o["g"])(t)&&"esriGeometryMultipoint"===r){const r=Object(_["h"])(new p["a"],t,!1,!1);if("esriSpatialRelContains"===e)return Promise.resolve(e=>l(r,!1,!1,e,s,n))}if(Object(o["d"])(t)&&"esriGeometryPoint"===r&&("esriSpatialRelIntersects"===e||"esriSpatialRelContains"===e))return Promise.resolve(e=>Object(i["e"])(t,Object(y["c"])(r,s,n,e)));if(Object(o["d"])(t)&&"esriGeometryMultipoint"===r&&"esriSpatialRelContains"===e)return Promise.resolve(e=>Object(i["d"])(t,Object(y["c"])(r,s,n,e)));if(Object(o["d"])(t)&&"esriSpatialRelIntersects"===e){const e=a(r);return Promise.resolve(i=>e(t,Object(y["c"])(r,s,n,i)))}return O().then(i=>{const a=i[m[e]].bind(null,t.spatialReference,t);return e=>a(Object(y["c"])(r,s,n,e))})}async function v(e,t,r){const{spatialRel:i,geometry:n}=e;if(n){if(!x(i))throw new s["a"](b,"Unsupported query spatial relationship",{query:e});if(Object(u["l"])(n.spatialReference)&&Object(u["l"])(r)){if(!S(n))throw new s["a"](b,"Unsupported query geometry type",{query:e});if(!j(t))throw new s["a"](b,"Unsupported layer geometry type",{query:e});if(e.outSR)return Object(g["a"])(e.geometry&&e.geometry.spatialReference,e.outSR)}}}function F(e){if(Object(o["d"])(e))return!0;if(Object(o["g"])(e)){for(const t of e.rings){if(5!==t.length)return!1;if(t[0][0]!==t[1][0]||t[0][0]!==t[4][0]||t[2][0]!==t[3][0]||t[0][1]!==t[3][1]||t[0][1]!==t[4][1]||t[1][1]!==t[2][1])return!1}return!0}return!1}},"341c":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return m}));var s=r("ce50"),i=r("e92d"),n=r("b2b2"),a=r("9180"),o=r("28b1"),u=r("2a5b"),c=r("abb8"),d=r("1eef"),l=r("69dd"),h=r("0c9a");const f=i["a"].getLogger("esri.views.2d.layers.features.support.whereUtils"),_={getAttribute:(e,t)=>e.field(t)};async function p(e,t){const i=await r.e("chunk-2d0d03a7").then(r.bind(null,"66a2"));try{const r=i.WhereClause.create(e,t);if(!r.isStandardized){const e=new s["a"]("mapview - bad input","Unable to apply filter's definition expression, as expression is not standardized.",r);f.error(e)}return e=>{const t=e.readArcadeFeature();return r.testFeature(t,_)}}catch(n){return f.warn("mapview-bad-where-clause","Encountered an error when evaluating where clause",e),e=>!0}}const g=i["a"].getLogger("esri.views.2d.layers.features.controllers.FeatureFilter"),y=1,b=2;class m{constructor(e){this._geometryBounds=Object(a["l"])(),this._idToVisibility=new Map,this._serviceInfo=e}get hash(){return this._hash}check(e){return this._applyFilter(e)}clear(){const e=this._resetAllHiddenIds();return this.update(),{show:e,hide:[]}}invalidate(){this._idToVisibility.forEach((e,t)=>{this._idToVisibility.set(t,0)})}setKnownIds(e){for(const t of e)this._idToVisibility.set(t,y)}setTrue(e){const t=[],r=[],s=new Set(e);return this._idToVisibility.forEach((e,i)=>{const n=!!(this._idToVisibility.get(i)&y),a=s.has(i);!n&&a?t.push(i):n&&!a&&r.push(i),this._idToVisibility.set(i,a?y|b:0)}),{show:t,hide:r}}createQuery(){const{geometry:e,spatialRel:t,where:r,timeExtent:s,objectIds:i}=this;return l["a"].fromJSON({geometry:e,spatialRel:t,where:r,timeExtent:s,objectIds:i})}async update(e,t){this._hash=JSON.stringify(e);const r=await Object(d["e"])(e,null,t);await Promise.all([this._setGeometryFilter(r),this._setIdFilter(r),this._setAttributeFilter(r),this._setTimeFilter(r)])}async _setAttributeFilter(e){if(!e||!e.where)return this._clause=null,void(this.where=null);this._clause=await p(e.where,this._serviceInfo.fieldsIndex),this.where=e.where}_setIdFilter(e){this._idsToShow=e&&e.objectIds&&new Set(e.objectIds),this._idsToHide=e&&e.hiddenIds&&new Set(e.hiddenIds),this.objectIds=e&&e.objectIds}async _setGeometryFilter(e){if(!e||!e.geometry)return this._spatialQueryOperator=null,this.geometry=null,void(this.spatialRel=null);const t=e.geometry,r=e.spatialRel||"esriSpatialRelIntersects",s=await Object(u["c"])(r,t,this._serviceInfo.geometryType,this._serviceInfo.hasZ,this._serviceInfo.hasM);Object(o["a"])(this._geometryBounds,t),this._spatialQueryOperator=s,this.geometry=t,this.spatialRel=r}_setTimeFilter(e){if(this.timeExtent=this._timeOperator=null,e&&e.timeExtent)if(this._serviceInfo.timeInfo)this.timeExtent=e.timeExtent,this._timeOperator=Object(c["b"])(this._serviceInfo.timeInfo,e.timeExtent,h["b"]);else{const t=new s["a"]("feature-layer-view:time-filter-not-available","Unable to apply time filter, as layer doesn't have time metadata.",e.timeExtent);g.error(t)}}_applyFilter(e){return this._filterByGeometry(e)&&this._filterById(e)&&this._filterByTime(e)&&this._filterByExpression(e)}_filterByExpression(e){return!this.where||this._clause(e)}_filterById(e){return(!this._idsToHide||!this._idsToHide.size||!this._idsToHide.has(e.getObjectId()))&&(!this._idsToShow||!this._idsToShow.size||this._idsToShow.has(e.getObjectId()))}_filterByGeometry(e){if(!this.geometry)return!0;const t=e.readHydratedGeometry();return!!t&&this._spatialQueryOperator(t)}_filterByTime(e){return!Object(n["k"])(this._timeOperator)||this._timeOperator(e)}_resetAllHiddenIds(){const e=[];return this._idToVisibility.forEach((t,r)=>{t&y||(this._idToVisibility.set(r,y),e.push(r))}),e}}},8483:function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var s=r("c120"),i=r("b2b2"),n=r("0f1c"),a=r("82fa"),o=r("e92d");function u(e,t,r){e.referencesGeometry();const s=t.readArcadeFeature();try{return e.evaluate({...r,$feature:s})}catch(i){return o["a"].getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",i),null}}const c=Promise.resolve().then(r.bind(null,"ccac"));class d{constructor(e,t){this._canCacheExpressionValue=!1,this._sourceInfo=e,this._bitsets={computed:t.getBitset(t.createBitset())}}invalidate(){this._bitsets.computed.clear()}async updateSchema(e,t){const r=Object(n["a"])(this._schema,t);if(this._schema=t,!t||Object(i["j"])(r)||!Object(n["b"])(r,"attributes"))return;Object(s["a"])("esri-2d-update-debug")&&console.debug("Applying Update - Store:",r),this._bitsets.computed.clear(),e.targets[t.name]=!0;const a=t.attributes,o=[],u=[];for(const s in a){const e=a[s];switch(e.type){case"field":break;case"expression":o.push(this._createArcadeComputedField(e));break;case"label-expression":o.push(this._createLabelArcadeComputedField(e));break;case"statistic":u.push(e)}}this._computedFields=await Promise.all(o),this._canCacheExpressionValue=!this._computedFields.some(e=>"expression"===e.type&&e.expression.referencesScale()),this._statisticFields=u}setComputedAttributes(e,t,r,s){const i=this._bitsets.computed;if(!this._canCacheExpressionValue||!i.has(r)){i.set(r);for(const i of this._computedFields){const n=this._evaluateField(t,i,s);switch(i.resultType){case"numeric":e.setComputedNumericAtIndex(r,i.fieldIndex,n);break;case"string":e.setComputedStringAtIndex(r,i.fieldIndex,n)}}}}async _createArcadeComputedField(e){const t=this._sourceInfo.spatialReference,r=this._sourceInfo.fieldsIndex;return{...e,expression:await Object(a["d"])(e.valueExpression,t,r)}}async _createLabelArcadeComputedField(e){const t=this._sourceInfo.spatialReference,r=this._sourceInfo.fieldsIndex,{createLabelFunction:s}=await c,i=await s(e.label,r,t);return{...e,builder:i}}_evaluateField(e,t,r){switch(t.type){case"label-expression":{const r=e.readArcadeFeature();return t.builder.evaluate(r)||""}case"expression":{const{expression:s}=t;return u(s,e,{$view:{scale:r}})}}}}},"971e":function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var s=r("b2b2");class i{constructor(e){this.size=0,this._start=0,this.maxSize=e,this._buffer=new Array(e)}get entries(){return this._buffer}enqueue(e){if(this.size===this.maxSize){const t=this._buffer[this._start];return this._buffer[this._start]=e,this._start=(this._start+1)%this.maxSize,t}return this._buffer[(this._start+this.size++)%this.maxSize]=e,null}dequeue(){if(0===this.size)return null;const e=this._buffer[this._start];return this._buffer[this._start]=null,this.size--,this._start=(this._start+1)%this.maxSize,e}peek(){return 0===this.size?null:this._buffer[this._start]}find(e){if(0===this.size)return null;for(const t of this._buffer)if(Object(s["k"])(t)&&e(t))return t;return null}clear(e){let t=this.dequeue();for(;Object(s["k"])(t);)e&&e(t),t=this.dequeue()}}},abb8:function(e,t,r){"use strict";function s(e,t){if(!e)return null;const r=t.featureAdapter,{startTimeField:s,endTimeField:i}=e;let n=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;if(s&&i)t.forEach(e=>{const t=r.getAttribute(e,s),o=r.getAttribute(e,i);null==t||isNaN(t)||(n=Math.min(n,t)),null==o||isNaN(o)||(a=Math.max(a,o))});else{const e=s||i;t.forEach(t=>{const s=r.getAttribute(t,e);null==s||isNaN(s)||(n=Math.min(n,s),a=Math.max(a,s))})}return{start:n,end:a}}function i(e,t,r){if(!t||!e)return null;const{startTimeField:s,endTimeField:i}=e;if(!s&&!i)return null;const{start:u,end:c}=t;return null===u&&null===c?null:void 0===u&&void 0===c?o():s&&i?n(r,s,i,u,c):a(r,s||i,u,c)}function n(e,t,r,s,i){return null!=s&&null!=i?n=>{const a=e.getAttribute(n,t),o=e.getAttribute(n,r);return(null==a||a<=i)&&(null==o||o>=s)}:null!=s?t=>{const i=e.getAttribute(t,r);return null==i||i>=s}:null!=i?r=>{const s=e.getAttribute(r,t);return null==s||s<=i}:void 0}function a(e,t,r,s){return null!=r&&null!=s&&r===s?s=>e.getAttribute(s,t)===r:null!=r&&null!=s?i=>{const n=e.getAttribute(i,t);return n>=r&&n<=s}:null!=r?s=>e.getAttribute(s,t)>=r:null!=s?r=>e.getAttribute(r,t)<=s:void 0}function o(){return()=>!1}r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return i}))},f209:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var s=r("f0d0");class i extends s["a"]{constructor(e,t){super(s["a"].createInstance(),e.fullSchema()),this._currentIndex=-1,this._reader=e,this._indices=t}static from(e,t){return new i(e.copy(),t)}get hasNext(){return this._currentIndex+1