{"version":3,"sources":["webpack:///./node_modules/arcgis-js-api/layers/graphics/sources/support/clientSideDefaults.js","webpack:///./node_modules/arcgis-js-api/core/libs/rbush/rbush.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/sources/support/sourceUtils.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/data/FeatureStore.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/sources/geojson/GeoJSONSourceWorker.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/data/optimizedFeatureQueryEngineAdapter.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/data/BoundsStore.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/sources/geojson/geojson.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,2BAAsB,CAAC,2BAAuB,CAAC,2BAA0C,CAAC,mCAAE,sBAAsB,aAAa,sCAAsC,SAAS,uHAAuH,OAAO,UAAU,wLAAwL,iDAAiD,2CAA2C,MAAM,wBAAwB,iBAAiB,IAAI,yBAAyB,EAAE,gBAAgB,0EAA0E,EAAE,sBAAsB,kBAAkB,cAAc,SAAS,kBAAkB,MAAM,wBAAwB,kBAAkB,qCAAqC,wBAAwB,IAAI,6CAA6C,uBAAuB,GAAG;AAAA,oGAAE,C;;;;;;;ACxBniC;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,2BAA4B,CAAC,mCAAE,YAAY,aAAa,gBAAgB,0CAA0C,uKAAuK,kBAAkB,0BAA0B,YAAY,WAAW,0BAA0B,SAAS,gBAAgB,6BAA6B,sBAAsB,6DAA6D,cAAc,IAAI,u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,8BAA8B,qCAAqC,0DAA0D,0BAA0B,wBAAwB,oBAAoB,uCAAuC,sCAAsC,0BAA0B,4DAA4D,4BAA4B,0BAA0B,0BAA0B,qBAAqB,mBAAmB,GAAG,IAAI,cAAc,MAAM,EAAE,yBAAyB,mBAAmB,wBAAwB,IAAI,kFAAkF,gBAAgB,kFAAkF,gBAAgB,8CAA8C,SAAS,6BAA6B,WAAW,YAAY,WAAW,4CAA4C,sBAAsB,YAAY,mBAAmB,OAAO,EAAE,UAAU,sCAAsC,yCAAyC,mBAAmB,cAAc,EAAE,yBAAyB,mBAAmB,WAAW,aAAa;AAAA,oGAAE,C","file":"js/chunk-31276efb.fc7c2f20.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/has\",\"../../../../core/lang\",\"../../../../symbols/support/defaultsJSON\"],(function(e,t,r,n,i,o){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.createDefaultTemplate=t.createDefaultAttributesFunction=t.createDrawingInfo=void 0,t.createDrawingInfo=function(e){return{renderer:{type:\"simple\",symbol:\"esriGeometryPoint\"===e||\"esriGeometryMultipoint\"===e?o.defaultPointSymbolJSON:\"esriGeometryPolyline\"===e?o.defaultPolylineSymbolJSON:o.defaultPolygonSymbolJSON}}},t.createDefaultAttributesFunction=function(e,t){if(n(\"csp-restrictions\"))return function(){var n;return r.__assign(((n={})[t]=null,n),e)};try{var i=\"this.\"+t+\" = null;\";for(var o in e){i+=\"this\"+(o.indexOf(\".\")?'[\"'+o+'\"]':\".\"+o)+\" = \"+JSON.stringify(e[o])+\";\"}var u=new Function(i);return function(){return new u}}catch(n){return function(){var n;return r.__assign(((n={})[t]=null,n),e)}}},t.createDefaultTemplate=function(e){return void 0===e&&(e={}),[{name:\"New Feature\",description:\"\",prototype:{attributes:i.clone(e)}}]}}));","// 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([\"../quickselect/quickselect\"],(function(t){\"use strict\";function i(t,n){if(!(this instanceof i))return new i(t,n);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),n&&(\"function\"==typeof n?this.toBBox=n:this._initFormat(n)),this.clear()}function n(t,i,n){if(!n)return i.indexOf(t);for(var h=0;h=t.minX&&i.maxY>=t.minY}function u(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function f(i,n,h,a,e){for(var r,o=[n,h];o.length;)(h=o.pop())-(n=o.pop())<=a||(r=n+Math.ceil((h-n)/a/2)*a,t(i,r,n,h,e),o.push(n,r,r,h))}return i.prototype={all:function(){return this._all(this.data,[])},search:function(t){var i=this.data,n=[],h=this.toBBox;if(!m(t,i))return n;for(var a,e,r,o,s=[];i;){for(a=0,e=i.children.length;a=0&&r[i].children.length>this._maxEntries;)this._split(r,i),i--;this._adjustParentBBoxes(a,r,i)},_split:function(t,i){var n=t[i],a=n.children.length,e=this._minEntries;this._chooseSplitAxis(n,e,a);var r=this._chooseSplitIndex(n,e,a),o=u(n.children.splice(r,n.children.length-r));o.height=n.height,o.leaf=n.leaf,h(n,this.toBBox),h(o,this.toBBox),i?t[i-1].children.push(o):this._splitRoot(n,o)},_splitRoot:function(t,i){this.data=u([t,i]),this.data.height=t.height+1,this.data.leaf=!1,h(this.data,this.toBBox)},_chooseSplitIndex:function(t,i,n){var h,e,r,o,l,c,m,u,f,x,d,p,M,X;for(c=m=1/0,h=i;h<=n-i;h++)e=a(t,0,h,this.toBBox),r=a(t,h,n,this.toBBox),f=e,x=r,d=void 0,p=void 0,M=void 0,X=void 0,d=Math.max(f.minX,x.minX),p=Math.max(f.minY,x.minY),M=Math.min(f.maxX,x.maxX),X=Math.min(f.maxY,x.maxY),o=Math.max(0,M-d)*Math.max(0,X-p),l=s(e)+s(r),o=i;r--)o=t.children[r],e(m,t.leaf?s(o):o),u+=l(m);return u},_adjustParentBBoxes:function(t,i,n){for(var h=n;h>=0;h--)e(i[h],t)},_condense:function(t){for(var i,n=t.length-1;n>=0;n--)0===t[n].children.length?n>0?(i=t[n-1].children).splice(i.indexOf(t[n]),1):this.clear():h(t[n],this.toBBox)},_initFormat:function(t){var i=[\"return a\",\" - b\",\";\"];this.compareMinX=new Function(\"a\",\"b\",i.join(t[0])),this.compareMinY=new Function(\"a\",\"b\",i.join(t[1])),this.toBBox=new Function(\"a\",\"return {minX: a\"+t[0]+\", minY: a\"+t[1]+\", maxX: a\"+t[2]+\", maxY: a\"+t[3]+\"};\")}},i}));","// 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/support/spatialReferenceUtils\",\"../../../support/fieldUtils\",\"@dojo/framework/shim/Promise\"],(function(e,i,t,r,n){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.loadGeometryEngineForSimplify=i.loadGeometryEngine=i.simplify=i.mixAttributes=i.createFeatureEditSuccessResult=i.createFeatureEditErrorResult=void 0;var s=function(){this.code=null,this.description=null},o=function(e){this.error=new s,this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error.description=e};function a(e){return new o(e)}i.createFeatureEditErrorResult=a;var l=function(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e};i.createFeatureEditSuccessResult=function(e){return new l(e)};var u,d=new Set;function c(e,i){var t=i;return\"string\"==typeof i&&n.isNumericField(e)?t=parseFloat(i):null!=i&&n.isStringField(e)&&\"string\"!=typeof i&&(t=String(i)),n.sanitizeNullFieldValue(t)}function f(){return t.__awaiter(this,void 0,void 0,(function(){return t.__generator(this,(function(i){switch(i.label){case 0:return u?[2,u]:[4,new Promise((function(i,t){e([\"../../../../geometry/geometryEngineJSON\"],i,t)}))];case 1:return[2,u=i.sent()]}}))}))}i.mixAttributes=function(e,i,t,r,s,o){for(var l in void 0===s&&(s=!1),d.clear(),r){var u=e.get(l);if(u){var f=r[l],m=c(u,f);if(m!==f&&o&&o.push({name:\"invalid-value-type\",message:\"attribute value was converted to match the field type\",details:{field:u,originalValue:f,sanitizedValue:m}}),d.add(u.name),u&&(s||u.editable)){var g=n.validateFieldValue(u,m);if(g)return a(n.validationErrorToString(g,u,m));t[u.name]=m}}}for(var h=0,v=i;h0&&t.push({name:\"geojson-layer:unknown-field-types\",message:\"Some fields types couldn't be inferred from the features and were dropped\",details:{unknownFields:f.unknownFields}}),v&&(T=null,F.some((function(e){return e.name===v&&(T=e,!0)}))?(T.type=\"esriFieldTypeOID\",T.editable=!1,T.nullable=!1):F.unshift({alias:v,name:v,type:\"esriFieldTypeOID\",editable:!1,nullable:!1})),q=0,x=F;q5e4&&this._loadIndex()))},n}();i.BoundsStore=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/Error\",\"../../OptimizedFeature\",\"../../OptimizedGeometry\"],(function(e,r,t,n,o,a){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.createOptimizedFeatures=r.inferLayerProperties=r.validateGeoJSON=void 0;var i={LineString:\"esriGeometryPolyline\",MultiLineString:\"esriGeometryPolyline\",MultiPoint:\"esriGeometryMultipoint\",Point:\"esriGeometryPoint\",Polygon:\"esriGeometryPolygon\",MultiPolygon:\"esriGeometryPolygon\"};function u(e){var r,n,o;return t.__generator(this,(function(t){switch(t.label){case 0:switch(e.type){case\"Feature\":return[3,1];case\"FeatureCollection\":return[3,3]}return[3,7];case 1:return[4,e];case 2:return t.sent(),[3,7];case 3:r=0,n=e.features,t.label=4;case 4:return r=0;n--)g(e,r[n],t);e.lengths.push(r.length)}function g(e,r,t){var n=r[0],o=r[1],a=r[2];e.coords.push(n,o),t.hasZ&&e.coords.push(a||0)}function v(e){switch(typeof e){case\"string\":return\"esriFieldTypeString\";case\"number\":return\"esriFieldTypeDouble\";default:return\"unknown\"}}r.validateGeoJSON=function(e){if(!e)throw new n(\"geojson-layer:empty\",\"GeoJSON data is empty\");if(\"Feature\"!==e.type&&\"FeatureCollection\"!==e.type)throw new n(\"geojson-layer:unsupported-geojson-object\",\"missing or not supported GeoJSON object type\",{data:e});var r=e.crs;if(r){var t=\"string\"==typeof r?r:\"name\"===r.type?r.properties.name:null,o=new RegExp(\".*(CRS84H?|4326)$\",\"i\");if(!t||!o.test(t))throw new n(\"geojson-layer:unsupported-crs\",\"unsupported GeoJSON 'crs' member\",{crs:r})}},r.inferLayerProperties=function(e,r){void 0===r&&(r={});for(var n=u(e),o=[],a=new Set,s=new Set,l=!1,c=Number.NEGATIVE_INFINITY,f=null,d=!1,p=void 0,y=r.geometryType,g=void 0===y?null:y,h=!1,m=function(){var e,r,u=n.next(),y=u.value;if(u.done){var m=f&&1===f.length&&f[0]||null;if(m)for(var b=0,w=o;b2)return!0}}(j)}if(d||(d=null!=_)&&\"number\"===(p=typeof _)&&(f=Object.keys(S).filter((function(e){return S[e]===_}))),d&&\"number\"===p&&null!=_&&(c=Math.max(c,_),f.length>1?f=f.filter((function(e){return S[e]===_})):1===f.length&&(f=S[f[0]]===_?f:[])),!h&&S){var G=!0;for(var M in S)if(!a.has(M)){var O=S[M];if(null!=O){var N=v(O);\"unknown\"!==N?(s.delete(M),a.add(M),o.push({name:M,alias:M,type:N})):s.add(M)}else G=!1,s.add(M)}h=G}};;){var b=m();if(\"object\"==typeof b)return b.value}},r.createOptimizedFeatures=function(e,r){return function(e){for(var r=[];;){var t=e.next(),n=t.value;if(t.done)return r;r.push(n)}}(s(u(e),r))}}));"],"sourceRoot":""}