{"version":3,"sources":["webpack:///./node_modules/arcgis-js-api/core/libs/quickselect/quickselect.js","webpack:///./node_modules/arcgis-js-api/core/libs/rbush/PooledRBush.js","webpack:///./node_modules/arcgis-js-api/geometry/support/meshUtils/ElevationSamplerWorker.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,EAAE,mCAAE,WAAW,aAAa,kBAAkB,WAAW,iBAAiB,gBAAgB,sBAAsB,2BAA2B,uBAAuB,KAAK,IAAI,EAAE,YAAY,8KAA8K,aAAa,mBAAmB,mCAAmC,IAAI,EAAE,qBAAqB,YAAY,KAAK,KAAK,YAAY,KAAK,mEAAmE,+BAA+B;AAAA,oGAAE,C;;;;;;;ACxBvlB;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,2BAAkB,CAAC,2BAAa,CAAC,2BAAmB,CAAC,2BAA4B,CAAC,mCAAE,wBAAwB,aAAa,sCAAsC,SAAS,8BAA8B,iBAAiB,gBAAgB,gFAAgF,SAAS,wKAAwK,sCAAsC,qDAAqD,6BAA6B,uBAAuB,kCAAkC,8BAA8B,wBAAwB,EAAE,EAAE,gCAAgC,IAAI,KAAK,oCAAoC,sDAAsD,WAAW,kCAAkC,8BAA8B,oBAAoB,cAAc,EAAE,EAAE,gCAAgC,IAAI,KAAK,oCAAoC,WAAW,2BAA2B,WAAW,UAAU,SAAS,gCAAgC,2CAA2C,uBAAuB,gBAAgB,IAAI,sBAAsB,YAAY,wCAAwC,yFAAyF,KAAK,8BAA8B,gBAAgB,gBAAgB,+CAA+C,iBAAiB,YAAY,gCAAgC,kDAAkD,8BAA8B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a,8CAA8C,mDAAmD,0BAA0B,kBAAkB,cAAc,yBAAyB,gCAAgC,0BAA0B,kBAAkB,cAAc,yBAAyB,gCAAgC,0BAA0B,IAAI,YAAY;AAAA,oGAAE,C;;;;;;;ACxB95N;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,2BAAmB,CAAC,2BAAqB,CAAC,2BAAsC,CAAC,mCAAE,sBAAsB,aAAa,sCAAsC,SAAS,kCAAkC,iBAAiB,cAAc,6CAA6C,kDAAkD,YAAY,uCAAuC,gBAAgB,mJAAmJ,eAAe,4BAA4B,+BAA+B,oDAAoD,4DAA4D,GAAG,GAAG,2CAA2C,8DAA8D,uFAAuF,0BAA0B,mCAAmC,gDAAgD,wCAAwC,WAAW,6BAA6B,kBAAkB,mBAAmB,yDAAyD,oBAAoB,WAAW,KAAK,qBAAqB,mCAAmC,WAAW,uBAAuB,WAAW,4CAA4C,kBAAkB,mBAAmB,wCAAwC,yCAAyC,oDAAoD,eAAe,IAAI,WAAW,EAAE,oDAAoD,eAAe,IAAI,0CAA0C,yDAAyD,SAAS,oCAAoC,GAAG,GAAG,oBAAoB,OAAO,+NAA+N,uCAAuC;AAAA,oGAAE,C","file":"js/chunk-717d0b03.4dd64d50.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([],(function(){\"use strict\";function t(t,n,r){var o=t[n];t[n]=t[r],t[r]=o}function n(t,n){return tn?1:0}return function(r,o,f,a,i){!function n(r,o,f,a,i){for(;a>f;){if(a-f>600){var h=a-f+1,u=o-f+1,e=Math.log(h),M=.5*Math.exp(2*e/3),c=.5*Math.sqrt(e*M*(h-M)/h)*(u-h/2<0?-1:1),l=Math.max(f,Math.floor(o-u*M/h+c)),s=Math.min(a,Math.floor(o+(h-u)*M/h+c));n(r,o,l,s,i)}var v=r[o],g=f,m=a;for(t(r,f,o),i(r[a],v)>0&&t(r,f,a);g0;)m--}0===i(r[f],v)?t(r,f,m):(m++,t(r,m,a)),m<=o&&(f=m+1),o<=m&&(a=m-1)}}(r,o,f||0,a||r.length-1,i||n)}}));","// 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\",\"../../arrayUtils\",\"../../maybe\",\"../../PooledArray\",\"../quickselect/quickselect\"],(function(t,i,n,e,r,a,o){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.BBox=i.PooledRBush=void 0;var h=function(){function t(t,i){void 0===t&&(t=9),this.compareMinX=u,this.compareMinY=m,this.toBBox=function(t){return t},this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),i&&(\"function\"==typeof i?this.toBBox=i:this._initFormat(i)),this.clear()}return t.prototype.destroy=function(){this.clear(),_.prune(),B.prune(),M.prune(),X.prune()},t.prototype.all=function(t){this._all(this.data,t)},t.prototype.search=function(t,i){var n=this.data,e=this.toBBox;if(x(t,n))for(_.clear();n;){for(var r=0,a=n.children.length;r0;){if(a||(a=r.assumeNonNull(M.pop()),o=M.data[M.length-1],h=null!==(i=X.pop())&&void 0!==i?i:0,s=!0),a.leaf&&-1!==(n=e.indexOf(a.children,t,a.children.length,a.indexHint)))return a.children.splice(n,1),M.push(a),this._condense(M),this;s||a.leaf||!p(a,l)?o?(h++,a=o.children[h],s=!1):a=null:(M.push(a),X.push(h),h=0,o=a,a=a.children[0])}return this},t.prototype.toJSON=function(){return this.data},t.prototype.fromJSON=function(t){return this.data=t,this},t.prototype._all=function(t,i){var n,e=t;for(B.clear();e;){if(!0===e.leaf)for(var r=0,a=e.children;r=0&&M.data[i].children.length>this._maxEntries;)this._split(M,i),i--;this._adjustParentBBoxes(r,M,i)},t.prototype._split=function(t,i){var n=t.data[i],e=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,e);var a=this._chooseSplitIndex(n,r,e);if(a){var o=n.children.splice(a,n.children.length-a),h=n.leaf?new y(o):new w(o);h.height=n.height,s(n,this.toBBox),s(h,this.toBBox),i?t.data[i-1].children.push(h):this._splitRoot(n,h)}else console.log(\" Error: assertion failed at PooledRBush._split: no valid split index\")},t.prototype._splitRoot=function(t,i){this.data=new w([t,i]),this.data.height=t.height+1,s(this.data,this.toBBox)},t.prototype._chooseSplitIndex=function(t,i,n){var e,r,a,o,h,s,c,u,m=void 0;e=r=1/0;for(var d=i;d<=n-i;d++){var p=l(t,0,d,this.toBBox),x=l(t,d,n,this.toBBox),v=(a=p,o=x,h=void 0,s=void 0,c=void 0,u=void 0,h=Math.max(a.minX,o.minX),s=Math.max(a.minY,o.minY),c=Math.min(a.maxX,o.maxX),u=Math.min(a.maxY,o.maxY),Math.max(0,c-h)*Math.max(0,u-s)),_=f(p)+f(x);v=i;s--){u=t.children[s];c(o,t.leaf?r(u):u),h+=d(o)}return h},t.prototype._adjustParentBBoxes=function(t,i,n){for(var e=n;e>=0;e--)c(i.data[e],t)},t.prototype._condense=function(t){for(var i=t.length-1;i>=0;i--){var n=t.data[i];if(0===n.children.length)if(i>0){var r=t.data[i-1],a=r.children;a.splice(e.indexOf(a,n,a.length,r.indexHint),1)}else this.clear();else s(n,this.toBBox)}},t.prototype._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]+\"};\")},t}();function s(t,i){l(t,0,t.children.length,i,t)}function l(t,i,n,e,r){r||(r=new y([])),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(var a=i,o=void 0;a=t.minX&&i.maxY>=t.minY}function v(t,i,n,e,a){for(var h=[i,n];h.length;){var s=r.assumeNonNull(h.pop()),l=r.assumeNonNull(h.pop());if(!(s-l<=e)){var c=l+Math.ceil((s-l)/e/2)*e;o(t,c,l,s,a),h.push(l,c,c,s)}}}i.PooledRBush=h;var _=new a,B=new a,M=new a,X=new a({deallocator:void 0}),Y=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0};i.BBox=Y;var g=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.height=1,i.indexHint=new e.PositionHint,i}return n.__extends(i,t),i}(Y),y=function(t){function i(i){var n=t.call(this)||this;return n.children=i,n.leaf=!0,n}return n.__extends(i,t),i}(g),w=function(t){function i(i){var n=t.call(this)||this;return n.children=i,n.leaf=!1,n}return n.__extends(i,t),i}(g);i.default=h}));","// 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/maybe\",\"../../../core/libs/rbush/PooledRBush\"],(function(e,t,r,n,o,a){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.ElevationSamplerWorker=void 0;var i=function(){function e(){}return e.prototype.createIndex=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i,s,u;return r.__generator(this,(function(r){switch(r.label){case 0:return n=new Array,e.vertexAttributes&&e.vertexAttributes.position?(i=this.createMeshData(e),o.isSome(t)?[4,t.invoke(\"createIndexThread\",i,{transferList:n})]:[3,2]):[2,new a.default];case 1:return u=r.sent(),[3,3];case 2:u=this.createIndexThread(i).result,r.label=3;case 3:return s=u,[2,this.createPooledRBush().fromJSON(s)]}}))}))},e.prototype.createIndexThread=function(e){var t=new Float64Array(e.position),r=this.createPooledRBush();return e.components?this.createIndexComponentsThread(r,t,e.components.map((function(e){return new Uint32Array(e)}))):this.createIndexAllThread(r,t)},e.prototype.createIndexAllThread=function(e,t){for(var r=new Array(t.length/9),n=0,o=0;o