1"use strict";(globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]).push([[3099],{37781:(e,t,r)=>{r.d(t,{A:()=>i}) 2var s=r(86018),n=r(8282) 3class i{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new n.I,this._items=new Set}get length(){return(0,s.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return 4let e 5for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,s.gc)(this._observable),this._items.has(e)}pop(){if(0===this.length)return 6const e=this.peek() 7return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return 8const e=this.last() 9return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){const t=this.length 10return this._items.forEach((t=>{e(t)||this._items.delete(t)})),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,s.gc)(this._observable),yield*this._items}}},60725:(e,t,r)=>{r.d(t,{A:()=>i}) 11var s=r(86018),n=r(8282) 12class i{constructor(e){this._observable=new n.I,this._map=new Map(e)}get size(){return(0,s.gc)(this._observable),this._map.size}clear(){this._map.size>0&&(this._map.clear(),this._observable.notify())}delete(e){const t=this._map.delete(e) 13return t&&this._observable.notify(),t}entries(){return(0,s.gc)(this._observable),this._map.entries()}forEach(e,t){(0,s.gc)(this._observable),this._map.forEach(((r,s)=>e.call(t,r,s,this)),t)}get(e){return(0,s.gc)(this._observable),this._map.get(e)}has(e){return(0,s.gc)(this._observable),this._map.has(e)}keys(){return(0,s.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._observable.notify(),this}values(){return(0,s.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,s.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}}},85437:(e,t,r)=>{function s(){return[0,0]}function n(e){return[e[0],e[1]]}function i(e,t){return[e,t]}function a(e,t=[0,0]){const r=Math.min(2,e.length) 14for(let s=0;s<r;++s)t[s]=e[s] 15return t}function o(){return[0,0]}function l(){return i(1,1)}function u(){return i(1,0)}function c(){return i(0,1)}r.d(t,{Cw:()=>f,JP:()=>_,Ul:()=>o,Un:()=>d,ci:()=>a,fA:()=>i,o8:()=>n,uY:()=>h,vt:()=>s}) 16const h=[0,0],d=l(),f=u(),_=c() 17Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:f,UNIT_Y:_,ZEROS:h,clone:n,create:s,createView:function(e,t){return new Float64Array(e,t,2)},freeze:function(e,t){return[e,t]},fromArray:a,fromValues:i,ones:l,unitX:u,unitY:c,zeros:o},Symbol.toStringTag,{value:"Module"}))},13775:(e,t,r)=>{r.r(t),r.d(t,{add:()=>a,angle:()=>w,ceil:()=>c,copy:()=>n,cross:()=>S,dist:()=>V,distance:()=>E,div:()=>Z,divide:()=>u,dot:()=>R,equals:()=>k,exactEquals:()=>U,floor:()=>h,inverse:()=>I,len:()=>x,length:()=>v,lerp:()=>O,max:()=>f,min:()=>d,mul:()=>q,multiply:()=>l,negate:()=>A,normalize:()=>b,projectAndScale:()=>D,random:()=>y,rotate:()=>P,round:()=>_,scale:()=>p,scaleAndAdd:()=>m,set:()=>i,sqrDist:()=>z,sqrLen:()=>B,squaredDistance:()=>g,squaredLength:()=>T,str:()=>F,sub:()=>G,subtract:()=>o,transformMat2:()=>N,transformMat2d:()=>L,transformMat3:()=>M,transformMat4:()=>C,v:()=>Q}) 18var s=r(37770) 19function n(e,t){return e[0]=t[0],e[1]=t[1],e}function i(e,t,r){return e[0]=t,e[1]=r,e}function a(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function o(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function l(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function u(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function c(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e}function h(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e}function d(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function f(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}function _(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e}function p(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function m(e,t,r,s){return e[0]=t[0]+r[0]*s,e[1]=t[1]+r[1]*s,e}function E(e,t){const r=t[0]-e[0],s=t[1]-e[1] 20return Math.sqrt(r*r+s*s)}function g(e,t){const r=t[0]-e[0],s=t[1]-e[1] 21return r*r+s*s}function v(e){const t=e[0],r=e[1] 22return Math.sqrt(t*t+r*r)}function T(e){const t=e[0],r=e[1] 23return t*t+r*r}function A(e,t){return e[0]=-t[0],e[1]=-t[1],e}function I(e,t){return e[0]=1/t[0],e[1]=1/t[1],e}function b(e,t){const r=t[0],s=t[1] 24let n=r*r+s*s 25return n>0&&(n=1/Math.sqrt(n),e[0]=t[0]*n,e[1]=t[1]*n),e}function R(e,t){return e[0]*t[0]+e[1]*t[1]}function S(e,t,r){const s=t[0]*r[1]-t[1]*r[0] 26return e[0]=e[1]=0,e[2]=s,e}function O(e,t,r,s){const n=t[0],i=t[1] 27return e[0]=n+s*(r[0]-n),e[1]=i+s*(r[1]-i),e}
27function y(e,t=1){const r=2*(0,s.Ov)()*Math.PI 28return e[0]=Math.cos(r)*t,e[1]=Math.sin(r)*t,e}function N(e,t,r){const s=t[0],n=t[1] 29return e[0]=r[0]*s+r[2]*n,e[1]=r[1]*s+r[3]*n,e}function L(e,t,r){const s=t[0],n=t[1] 30return e[0]=r[0]*s+r[2]*n+r[4],e[1]=r[1]*s+r[3]*n+r[5],e}function M(e,t,r){const s=t[0],n=t[1] 31return e[0]=r[0]*s+r[3]*n+r[6],e[1]=r[1]*s+r[4]*n+r[7],e}function C(e,t,r){const s=t[0],n=t[1] 32return e[0]=r[0]*s+r[4]*n+r[12],e[1]=r[1]*s+r[5]*n+r[13],e}function P(e,t,r,s){const n=t[0]-r[0],i=t[1]-r[1],a=Math.sin(s),o=Math.cos(s) 33return e[0]=n*o-i*a+r[0],e[1]=n*a+i*o+r[1],e}function w(e,t){const r=e[0],s=e[1],n=t[0],i=t[1] 34let a=r*r+s*s 35a>0&&(a=1/Math.sqrt(a)) 36let o=n*n+i*i 37o>0&&(o=1/Math.sqrt(o)) 38const l=(r*n+s*i)*a*o 39return l>1?0:l<-1?Math.PI:Math.acos(l)}function F(e){return"vec2("+e[0]+", "+e[1]+")"}function U(e,t){return e[0]===t[0]&&e[1]===t[1]}function k(e,t){const r=e[0],n=e[1],i=t[0],a=t[1],o=(0,s.FD)() 40return Math.abs(r-i)<=o*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(n-a)<=o*Math.max(1,Math.abs(n),Math.abs(a))}function D(e,t,r,s,n){let i=t[0]-r[0],a=t[1]-r[1] 41const o=(s[0]*i+s[1]*a)*(n-1) 42return i=s[0]*o,a=s[1]*o,e[0]=t[0]+i,e[1]=t[1]+a,e}const x=v,G=o,q=l,Z=u,V=E,z=g,B=T,Q=Object.freeze(Object.defineProperty({__proto__:null,add:a,angle:w,ceil:c,copy:n,cross:S,dist:V,distance:E,div:Z,divide:u,dot:R,equals:k,exactEquals:U,floor:h,inverse:I,len:x,length:v,lerp:O,max:f,min:d,mul:q,multiply:l,negate:A,normalize:b,projectAndScale:D,random:y,rotate:P,round:_,scale:p,scaleAndAdd:m,set:i,sqrDist:z,sqrLen:B,squaredDistance:g,squaredLength:T,str:F,sub:G,subtract:o,transformMat2:N,transformMat2d:L,transformMat3:M,transformMat4:C},Symbol.toStringTag,{value:"Module"}))},99934:(e,t,r)=>{function s(e){let t,r,s=[],n=!1 43return function(...i){return n&&t===this&&function(e,t){if(e.length!==t.length)return!1 44for(let r=0;r<e.length;++r)if(e[r]!==t[r])return!1 45return!0}(i,s)||(r=e.apply(this,i),t=this,s=i,n=!0),r}}r.d(t,{B:()=>s})},91016:(e,t,r)=>{r.d(t,{v:()=>o}) 46var s=r(33600),n=r(86018),i=r(8282) 47class a{constructor(e,t){this._observable=new i.I,this._value=e,this._equalityFunction=t}get value(){return(0,n.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function o(e,t=s.equalsShallow){return new a(e,t)}},84293:(e,t,r)=>{r.d(t,{N:()=>a}) 48var s=r(37205),n=r(61851),i=r(12383) 49function a(e,t,r){if(null==t||null==r||r.vcsWkid||(0,i.aI)(t,r)||(0,n.xP)(t)||(0,n.xP)(r))return null 50const a=(0,s.G9)(t)/(0,s.G9)(r) 51if(1===a)return null 52switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,a) 53case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,a) 54case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,a) 55case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,a) 56case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,a) 57default:return null}}},22915:(e,t,r)=>{r.d(t,{T:()=>a}) 58var s=r(81814),n=r(91016),i=r(38660) 59class a{constructor(){this._tasks=new Array,this._runningTasks=(0,n.v)(0)}get length(){return this._tasks.length}get running(){return this._runningTasks.value>0}destroy(){this.cancelAll()}runTask(e){if(0===this.length)return i.G 60for(;!e.done&&this._process(e);)e.madeProgress()}push(e,t,r){return++this._runningTasks.value,new Promise(((s,n)=>this._tasks.push(new o(s,n,e,t,r)))).finally((()=>--this._runningTasks.value))}unshift(e,t,r){return++this._runningTasks.value,new Promise(((s,n)=>this._tasks.unshift(new o(s,n,e,t,r)))).finally((()=>--this._runningTasks.value))}_process(e){if(0===this._tasks.length)return!1 61const t=this._tasks.shift() 62try{const r=(0,s.isAborted)(t.signal) 63if(r&&!t.abortCallback)t.reject((0,s.createAbortError)()) 64else{const n=r?t.abortCallback?.((0,s.createAbortError)()):t.callback(e);(0,s.isPromiseLike)(n)?n.then(t.resolve,t.reject):t.resolve(n)}}catch(e){t.reject(e)}return!0}cancelAll(){const e=(0,s.createAbortError)() 65for(const t of this._tasks)if(t.abortCallback){const r=t.abortCallback(e) 66t.resolve(r)}else t.reject(e) 67this._tasks.length=0}}class o{constructor(e,t,r,s=void 0,n=void 0){this.resolve=e,this.reject=t,this.callback=r,this.signal=s,this.abortCallback=n}}},97906:(e,t,r)=>{r.d(t,{j:()=>i}) 68var s=r(37205),n=r(88520) 69const i={unknown:1,inches:(0,s.oU)(1,"meters","inches"),feet:(0,s.oU)(1,"meters","feet"),"us-feet":(0,s.oU)(1,"meters","us-feet"),yards:(0,s.oU)(1,"meters","yards"),miles:(0,s.oU)(1,"meters","miles"),"n
69autical-miles":(0,s.oU)(1,"meters","nautical-miles"),millimeters:(0,s.oU)(1,"meters","millimeters"),centimeters:(0,s.oU)(1,"meters","centimeters"),decimeters:(0,s.oU)(1,"meters","decimeters"),meters:(0,s.oU)(1,"meters","meters"),kilometers:(0,s.oU)(1,"meters","kilometers"),"decimal-degrees":1/(0,s.vl)(1,"meters",n.$O.radius)}},9366:(e,t,r)=>{r.d(t,{$7:()=>S,B:()=>R,Fo:()=>A,M7:()=>N,NN:()=>d,Q5:()=>I,Tq:()=>M,Up:()=>b,XF:()=>y,Ze:()=>E,bK:()=>o,bh:()=>h,id:()=>g,ky:()=>c,qt:()=>L,tW:()=>O,v9:()=>f,w7:()=>l,wF:()=>a,wS:()=>v,wz:()=>p,x:()=>_,xS:()=>T,ze:()=>u}) 70var s=r(37205),n=r(8605) 71function i(e){return e?L:M}function a(e,t){return t?.mode?t.mode:i(e).mode}function o(e,t){return null!=t?t:i(e)}function l(e,t){return a(null==e||(e.hasZ??!1),t)}function u(e,t){return o(null==e||(e.hasZ??!1),t)}function c(e){const t=m(e) 72return l(e.geometry,t)}function h(e){const t=m(e),r=l(e.geometry,t),s=null!=t&&"on-the-ground"!==r?N(t):0,n=t?.featureExpressionInfo 73return{mode:r,offset:s,featureExpressionInfo:n}}function d(e){return p(h(e))}function f(e){return p(e)||_(e)}function _(e){return"0"===e?.featureExpressionInfo?.expression}function p(e){if(!e)return!1 74if("on-the-ground"===e.mode)return!1 75const t=e?.featureExpressionInfo?e.featureExpressionInfo.expression:null 76return!(!t||"0"===t)}function m(e){return e.layer&&"elevationInfo"in e.layer?e.layer.elevationInfo:null}function E(e,t){if(!e?.offset)return 0 77const{offset:r,unit:n}=e 78if("decimal-degrees"===n)return 0 79const i="unknown"!==n&&n?n:"meters",a=(0,s.mq)(t) 80return a?(0,s.oU)(r,i,a):0}function g(e,t,r){if(!r?.mode)return 81const s=e.hasZ?e.z:0,n=E(r,e.spatialReference) 82switch(r.mode){case"absolute-height":return s-n 83case"on-the-ground":return 0 84case"relative-to-ground":return s-((t.elevationProvider.getElevation(e.x,e.y,s,e.spatialReference,"ground")??0)+n) 85case"relative-to-scene":return s-((t.elevationProvider.getElevation(e.x,e.y,s,e.spatialReference,"scene")??0)+n)}}function v(e,t,r,s=null){return A(e,t.x,t.y,t.hasZ?t.z:0,t.spatialReference,r,s)}function T(e,t,r,s,n=null){return A(e,t[0],t[1],t.length>2?t[2]:0,r,s,n)}function A(e,t,r,s,n,i,a=null){if(null==i)return 86const o=null!=a?a.mode:"absolute-height" 87if("on-the-ground"===o)return 0 88const{absoluteZ:l}=I(t,r,s,n,e,i) 89return function(e,t,r,s,n,i,a,o){const l=E(a,n) 90switch(o){case"absolute-height":return e-l 91case"relative-to-ground":return e-((i.elevationProvider.getElevation(t,r,s,n,"ground")??0)+l) 92case"relative-to-scene":return e-((i.elevationProvider.getElevation(t,r,s,n,"scene")??0)+l)}}(l,t,r,s,n,e,a,o)}function I(e,t,r,s,n,i){const a=E(i,s) 93switch(i.mode){case"absolute-height":return{absoluteZ:r+a,elevation:0} 94case"on-the-ground":{const r=n.elevationProvider.getElevation(e,t,0,s,"ground")??0 95return{absoluteZ:r,elevation:r}}case"relative-to-ground":{const i=n.elevationProvider.getElevation(e,t,r,s,"ground")??0 96return{absoluteZ:r+i+a,elevation:i}}case"relative-to-scene":{const i=n.elevationProvider.getElevation(e,t,r,s,"scene")??0 97return{absoluteZ:r+i+a,elevation:i}}}}function b(e,t){if(null==t)return!1 98const{mode:r}=t 99return null!=r&&("scene"===e&&"relative-to-scene"===r||"ground"===e&&"absolute-height"!==r)}function R(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function S(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function O(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function y(e,t){t&&e.warn(".elevationInfo=",t)}function N(e){return(e?.offset??0)*(0,n.Ao)(e?.unit)}const L={mode:"absolute-height",offset:0},M={mode:"on-the-ground",offset:null}},8605:(e,t,r)=>{r.d(t,{Ao:()=>a,KQ:()=>o,Tg:()=>i}) 100var s=r(21590),n=r(97906) 101function i(e){return!!e&&null!=n.j[e]}function a(e){return 1/(n.j[e]||1)}const o=function(){const e=Object.keys(n.j) 102return(0,s.TF)(e,"decimal-degrees"),e.sort(),e}()},64270:(e,t,r)=>{r.d(t,{J:()=>n}) 103var s=r(28828) 104class n{constructor(){this.id=(0,s.c)()}}},52070:(e,t,r)=>{var s 105r.d(t,{X:()=>s}),function(e){e[e.Layer=0]="Layer",e[e.Object=1]="Object",e[e.Mesh=2]="Mesh",e[e.Line=3]="Line",e[e.Point=4]="Point",e[e.Material=5]="Material",e[e.Texture=6]="Texture",e[e.COUNT=7]="COUNT"}(s||(s={}))},54531:(e,t,r)=>{r.d(t,{D:()=>n}) 106var s=r(60026) 107const n=new Map([[s.r.POSITION,0],[s.r.NORMAL,1],[s.r.NORMALCOMPRESSED,1],[s.r.UV0,2],[s.r.COLOR,3],[s.r.COLORFEATUREATTRIBUTE,3],[s.r.SIZE,4],[s.r.TANGENT,4],[s.r.CENTEROFFSETANDDISTANCE,5],[s.r.SYMBOLCOLOR,5],[s.r.FEATUREATTRIBUTE,6],[s.r.INSTANCEFEATUREATTRIBUTE,6],[s.r.INSTANCECOLOR,7],[s.r.OBJECTANDLAYERIDCOLOR,7],[s.r.INSTANCEOBJECTANDLAYERIDCOLOR,7],[s.r.ROTATION,8],[s.r.INSTANCEMODEL,8],[s.r.INSTANCEMODELNORMAL,12],[s.r.INSTANCEMODELORIGINHI,11],[s.r.INSTANCEMODELORIGINLO,15]])},49899:(e,t,r)=>{r.d(t,{im:()=>h,m$:()=>s,qA:()=>d}) 108var s,n,i=r(69460),a=r(64270),o=r(52070),l=r(54531),u=r(62094),c=r(67484) 109class h extends a.J{constructor(e,t){super(),this.type=o.X.Material,this.supportsEdges=!1,this._renderPri
109ority=0,this.vertexAttributeLocations=l.D,this._pp0=(0,i.fA)(0,0,1),this._pp1=(0,i.fA)(0,0,0),this._parameters=new t,(0,u.MB)(this._parameters,e),this.validateParameters(this._parameters)}get parameters(){return this._parameters}update(e){return!1}setParameters(e,t=!0){(0,u.MB)(this._parameters,e)&&(this.validateParameters(this._parameters),t&&this._parametersChanged())}validateParameters(e){}shouldRender(e){return this.visible&&this.isVisibleForOutput(e.output)&&(!this.parameters.isDecoration||e.bind.decorations)&&!!(this.parameters.renderOccluded&e.renderOccludedMask)}isVisibleForOutput(e){return!0}get renderPriority(){return this._renderPriority}set renderPriority(e){e!==this._renderPriority&&(this._renderPriority=e,this._parametersChanged())}_parametersChanged(){this.repository?.materialChanged(this)}queryRenderOccludedState(e){return this.visible&&this.parameters.renderOccluded===e}get hasEmissions(){return!1}intersectDraped(e,t,r,s,n,i){return this._pp0[0]=this._pp1[0]=s[0],this._pp0[1]=this._pp1[1]=s[1],this.intersect(e,t,r,this._pp0,this._pp1,n)}}(n=s||(s={}))[n.None=0]="None",n[n.Occlude=1]="Occlude",n[n.Transparent=2]="Transparent",n[n.OccludeAndTransparent=4]="OccludeAndTransparent",n[n.OccludeAndTransparentStencil=8]="OccludeAndTransparentStencil",n[n.Opaque=16]="Opaque" 110class d extends c.Y{constructor(){super(...arguments),this.renderOccluded=s.Occlude,this.isDecoration=!1}}},60026:(e,t,r)=>{var s 111function n(e){return e===s.POSITION}r.d(t,{b:()=>n,r:()=>s}),function(e){e.POSITION="position",e.NORMAL="normal",e.NORMALCOMPRESSED="normalCompressed",e.UV0="uv0",e.COLOR="color",e.SYMBOLCOLOR="symbolColor",e.SIZE="size",e.ROTATION="rotation",e.TANGENT="tangent",e.OFFSET="offset",e.PERSPECTIVEDIVIDE="perspectiveDivide",e.CENTEROFFSETANDDISTANCE="centerOffsetAndDistance",e.LENGTH="length",e.PREVPOSITION="prevPosition",e.NEXTPOSITION="nextPosition",e.SUBDIVISIONFACTOR="subdivisionFactor",e.COLORFEATUREATTRIBUTE="colorFeatureAttribute",e.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",e.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",e.DISTANCETOSTART="distanceToStart",e.UVMAPSPACE="uvMapSpace",e.BOUNDINGRECT="boundingRect",e.UVREGION="uvRegion",e.PROFILERIGHT="profileRight",e.PROFILEUP="profileUp",e.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",e.FEATUREVALUE="featureValue",e.INSTANCEMODELORIGINHI="instanceModelOriginHi",e.INSTANCEMODELORIGINLO="instanceModelOriginLo",e.INSTANCEMODEL="instanceModel",e.INSTANCEMODELNORMAL="instanceModelNormal",e.INSTANCECOLOR="instanceColor",e.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",e.LOCALTRANSFORM="localTransform",e.GLOBALTRANSFORM="globalTransform",e.BOUNDINGSPHERE="boundingSphere",e.MODELORIGIN="modelOrigin",e.MODELSCALEFACTORS="modelScaleFactors",e.FEATUREATTRIBUTE="featureAttribute",e.STATE="state",e.LODLEVEL="lodLevel",e.POSITION0="position0",e.POSITION1="position1",e.NORMAL2COMPRESSED="normal2Compressed",e.COMPONENTINDEX="componentIndex",e.VARIANTOFFSET="variantOffset",e.VARIANTSTROKE="variantStroke",e.VARIANTEXTENSION="variantExtension",e.SIDENESS="sideness",e.START="start",e.END="end",e.UP="up",e.START_UP="startUp",e.END_UP="endUp",e.EXTRUDE="extrude",e.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",e.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(s||(s={}))},1504:(e,t,r)=>{r.d(t,{M4:()=>l,MD:()=>d,cJ:()=>h,hs:()=>f,m0:()=>c,mt:()=>o}) 112var s=r(41889),n=r(614),i=r(61753),a=r(93789) 113function o(e,t){return new _(e,p,t)}function l(e,t){const{curvatureDependent:r,scaleStart:s,scaleFallOffRange:n}=p 114return new _(e,{curvatureDependent:{min:{curvature:r.min.curvature,tiltAngle:r.min.tiltAngle,scaleFallOffFactor:m.curvatureDependent.min.scaleFallOffFactor},max:{curvature:r.max.curvature,tiltAngle:r.max.tiltAngle,scaleFallOffFactor:m.curvatureDependent.max.scaleFallOffFactor}},scaleStart:s,scaleFallOffRange:n,minPixelSize:m.minPixelSize},t)}function u(e,t,r){const s=r.parameters 115return E.scale=Math.min(s.divisor/(t-s.offset),1),E.factor=function(e){return Math.abs(e*e*e)}(e),E}function c(e,t){return(0,s.Cc)(e*Math.max(t.scale,t.minScaleFactor),e,t.factor)}function h(e,t,r,s){s.scale=function(e,t,r){const s=u(e,t,r) 116return s.minScaleFactor=0,c(1,s)}(e,t,r),s.factor=0,s.minScaleFactor=r.minScaleFactor}function d(e,t,r=[0,0]){const s=Math.min(Math.max(t.scale,t.minScaleFactor),1) 117return r[0]=e[0]*s,r[1]=e[1]*s,r}function f(e,t,r,s){return c(e,u(t,r,s))}class _{get minScaleFactor(){return null!=this._fontHeight?Math.min(this._description.minPixelSize/this._fontHeight,1):0}constructor(e,t,r,s={camera:{distance:0,fovY:0},divisor:0,offset:0},n){this._viewingMode=e,this._description=t,this._ellipsoidRadius=r,this.parameters=s,this._fontHeight=n,this._viewingMode===a.RT.L
117ocal?(this._coverageCompensation=this._surfaceCoverageCompensationLocal,this._calculateCurvatureDependentParameters=this._calculateCurvatureDependentParametersLocal):(this._coverageCompensation=this._surfaceCoverageCompensationGlobal,this._calculateCurvatureDependentParameters=this._calculateCurvatureDependentParametersGlobal)}update(e){return!(this.parameters&&this.parameters.camera.fovY===e.fovY&&this.parameters.camera.distance===e.distance||(this._calculateParameters(e,this._ellipsoidRadius,this.parameters),0))}overrideFontHeight(e){return e!==this._fontHeight?new _(this._viewingMode,this._description,this._ellipsoidRadius,this.parameters,e):this}_calculateParameters(e,t,r){const{scaleStart:s,scaleFallOffRange:n}=this._description,{fovY:i,distance:a}=e,o=this._calculateCurvatureDependentParameters(e,t),l=this._coverageCompensation(e,t,o),{tiltAngle:u,scaleFallOffFactor:c}=o,h=Math.sin(u)*a,d=.5*Math.PI-u-i*(.5-s*l),f=h/Math.cos(d),_=d+i*n*l,p=(f-c*(h/Math.cos(_)))/(1-c) 118return r.camera.fovY=e.fovY,r.camera.distance=e.distance,r.offset=p,r.divisor=f-p,r}_calculateCurvatureDependentParametersLocal(e,t,r=g){return r.tiltAngle=this._description.curvatureDependent.min.tiltAngle,r.scaleFallOffFactor=this._description.curvatureDependent.min.scaleFallOffFactor,r}_calculateCurvatureDependentParametersGlobal(e,t,r=g){const n=this._description.curvatureDependent,i=1+e.distance/t,a=Math.sqrt(i*i-1),[o,l]=[n.min.curvature,n.max.curvature],u=(0,s.qE)((a-o)/(l-o),0,1),[c,h]=[n.min,n.max] 119return r.tiltAngle=(0,s.Cc)(c.tiltAngle,h.tiltAngle,u),r.scaleFallOffFactor=(0,s.Cc)(c.scaleFallOffFactor,h.scaleFallOffFactor,u),r}_surfaceCoverageCompensationLocal(e,t,r){return(0,n.c)(r.tiltAngle,e.fovY)}_surfaceCoverageCompensationGlobal(e,t,r){return(0,i.b)(v,t),(0,i.d)(v,r.tiltAngle,e.distance,e.fovY)}}const p={curvatureDependent:{min:{curvature:(0,s.kU)(10),tiltAngle:(0,s.kU)(12),scaleFallOffFactor:.5},max:{curvature:(0,s.kU)(70),tiltAngle:(0,s.kU)(40),scaleFallOffFactor:.8}},scaleStart:.3,scaleFallOffRange:.65,minPixelSize:0},m={curvatureDependent:{min:{scaleFallOffFactor:.7},max:{scaleFallOffFactor:.95}},minPixelSize:14},E={scale:0,factor:0,minScaleFactor:0},g={tiltAngle:0,scaleFallOffFactor:0},v=(0,i.c)()},62094:(e,t,r)=>{r.d(t,{MB:()=>o,Um:()=>l,kE:()=>a}) 120var s=r(21590),n=r(41889),i=r(1504) 121function a(e,t,r,s,a){let o=(r.screenLength||0)*e.pixelRatio 122null!=a&&(o=(0,i.hs)(o,s,t,a)) 123const l=o*Math.tan(.5*e.fovY)/(.5*e.fullHeight) 124return(0,n.qE)(l*t,r.minWorldLength||0,null!=r.maxWorldLength?r.maxWorldLength:1/0)}function o(e,t){let r=!1 125for(const n in t){const i=t[n] 126void 0!==i&&(Array.isArray(i)?Array.isArray(e[n])&&(0,s.aI)(i,e[n])||(e[n]=i.slice(),r=!0):e[n]!==i&&(r=!0,e[n]=i))}return r}const l={multiply:1,ignore:2,replace:3,tint:4}},22232:(e,t,r)=>{var s 127r.d(t,{M:()=>s}),function(e){e[e.ANIMATING=0]="ANIMATING",e[e.INTERACTING=1]="INTERACTING",e[e.IDLE=2]="IDLE"}(s||(s={}))},89319:(e,t,r)=>{r.d(t,{F:()=>c}),r(57250) 128var s=r(92874),n=r(81814),i=r(37781),a=r(60725),o=r(89638),l=r(91016) 129class u{constructor(e,t){this.item=e,this.controller=t,this.promise=null}}class c{constructor(e){this._schedule=null,this._task=null,this._deferreds=new a.A,this._controllers=new a.A,this._processingItems=new a.A,this._pausedSignal=(0,l.v)(!1),this.concurrency=1,e.concurrency&&(this.concurrency=e.concurrency),this._queue=new i.A(e.peeker),this.process=e.process 130const t=e.scheduler 131e.priority&&t&&(this._task=t.registerTask(e.priority,this))}destroy(){this.clear(),this._schedule=(0,s.xt)(this._schedule),this._task=(0,s.xt)(this._task)}get updating(){return!!this._task?.updating||this.running}get length(){return this._processingItems.size+this._queue.length}abort(e){const t=this._controllers.get(e) 132t&&t.abort()}clear(){this._queue.clear() 133const e=[] 134this._controllers.forEach((t=>e.push(t))),this._controllers.clear(),e.forEach((e=>e.abort())),this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach(((t,r)=>e(r)))}get(e){const t=this._deferreds.get(e) 135return t?t.promise:void 0}isOngoing(e){return this._processingItems.has(e)}has(e){return this._deferreds.has(e)}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,t){const r=this.get(e) 136if(r)return r 137const s=new AbortController 138let i=null 139t&&(i=(0,n.onAbort)(t,(()=>s.abort()))) 140const a=()=>{o.remove(),null!=i&&i.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()},o=(0,n.onAbortOrThrow)(s.signal,(()=>{const t=this._processingItems.get(e) 141t&&t.controller.abort(),a(),l.reject((0,n.createAbortError)())})),l=(0,n.createResolver)() 142return this._deferreds.set(e,l),this._controllers.set(e,s),l.promise.then(a,a),this._queue.push(e),this._scheduleNext(),l.promise}last(){return this._queue.last()}lastPromise(){const e=this.last() 143return e?this.get(e):null}peek(){return this._queue.peek()}popLast(){const e=this._queue.popLast() 144return e&&(this._deferreds.get(e)?.reject((0,n.createAbortError)()),this._removeItem(e)),e}reset(){const e=Array.from(this._processingItems.values()) 145this._processingItems.clear() 146for(const t of e)this._queue.push(t.item),t.controller.abort() 147this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){const e=[] 148for(;this._queue.length;)e.push(this._queue.pop()) 149return this.clear(),e}get running(){return!this._pausedSignal.value&&this._queue.length>0&&this._processingItems.size<this.concurrency}runTask(e){for(;!e.done&&this._queue.length>0&&this._processingItems.size<this.concurrency;)this._process(this._queue.pop()),e.madeProgress()}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.delete(e)}_scheduleNext(){this._task||this._pausedSignal.value||this._schedule||(this._schedule=(0,o.schedule)((()=>{this._schedule=null,this._next()})))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&(this._schedule.remove(),this._schedule=null)}_processResult(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(t))}_processError(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(t))}_canProcessFulfillment(e){return!!this._deferreds.get(e.item)&&this._processingItems.get(e.item)===e}_process(e){if(null==e)return 150let t 151const r=new AbortController,s=new u(e,r) 152this._processingItems.set(e,s) 153try{t=this.process(e,r.signal)}catch(e){this._processError(s,e)}(0,n.isPromiseLike)(t)?(s.promise=t,t.then((e=>this._processResult(s,e)),(e=>this._processError(s,e)))):this._processResult(s,t)}get test(){}}},50340:(e,t,r)=>{r.d(t,{Bb:()=>N,W6:()=>s,mj:()=>g,nu:()=>L}) 154var s,n,i=r(79893),a=(r(57250),r(12752)),o=r(92874),l=r(18734),u=r(53285),c=r(81814),h=r(87874),d=r(91016),f=r(99357),_=r(22915),p=r(40899),m=r(22232),E=r(38660) 155function g(){return new O.Scheduler}(n=s||(s={})).RESOURCE_CONTROLLER_IMMEDIATE="immediate",n.RESOURCE_CONTROLLER="schedule",n.SLIDE="slide",n.STREAM_DATA_LOADER="stream loader",n.ELEVATION_QUERY="elevation query",n.TERRAIN_SURFACE="terrain",n.SURFACE_GEOMETRY_UPDATES="surface geometry updates",n.LOD_RENDERER="LoD renderer",n.GRAPHICS_CORE="Graphics3D",n.I3S_CONTROLLER="I3S",n.POINT_CLOUD_LAYER="point cloud",n.FEATURE_TILE_FETCHER="feature fetcher",n.OVERLAY="overlay",n.STAGE="stage",n.GRAPHICS_DECONFLICTOR="graphics deconflictor",n.FILTER_VISIBILITY="Graphics3D filter visibility",n.SCALE_VISIBILITY="Graphics3D scale visibility",n.FRUSTUM_VISIBILITY="Graphics3D frustum visibility",n.POINT_OF_INTEREST_FREQUENT="POI frequent",n.POINT_OF_INTEREST_INFREQUENT="POI infrequent",n.LABELER="labeler",n.FEATURE_QUERY_ENGINE="feature query",n.FEATURE_TILE_TREE="feature tile tree",n.FEATURE_TILE_TREE_ACTIVE="fast feature tile tree",n.ELEVATION_ALIGNMENT="elevation alignment",n.ELEVATION_ALIGNMENT_SCENE="elevation alignment scene",n.TEXT_TEXTURE_ATLAS="text texture atlas",n.TEXTURE_UNLOAD="texture unload",n.LINE_OF_SIGHT_TOOL="line of sight tool",n.LINE_OF_SIGHT_TOOL_INTERACTIVE="interactive line of sight tool",n.ELEVATION_PROFILE="elevation profile",n.SNAPPING="snapping",n.SHADOW_ACCUMULATOR="shadow accumulator",n.CLOUDS_GENERATOR="clouds generator",n.MAPVIEW_FETCH_QUEUE="mapview fetch queue",n.MAPVIEW_LAYERVIEW_UPDATE="mapview layerview update",n.MAPVIEW_VECTOR_TILE_PARSING_QUEUE="mapview vector tile parsing queue",n[n.NONE=0]="NONE",
155n[n.TEST_PRIO=1]="TEST_PRIO" 156const v=new Map([[s.RESOURCE_CONTROLLER_IMMEDIATE,0],[s.RESOURCE_CONTROLLER,4],[s.SLIDE,0],[s.STREAM_DATA_LOADER,0],[s.ELEVATION_QUERY,0],[s.TERRAIN_SURFACE,1],[s.SURFACE_GEOMETRY_UPDATES,1],[s.LOD_RENDERER,2],[s.GRAPHICS_CORE,2],[s.I3S_CONTROLLER,2],[s.POINT_CLOUD_LAYER,2],[s.FEATURE_TILE_FETCHER,2],[s.CLOUDS_GENERATOR,2],[s.OVERLAY,4],[s.STAGE,4],[s.GRAPHICS_DECONFLICTOR,4],[s.FILTER_VISIBILITY,4],[s.SCALE_VISIBILITY,4],[s.FRUSTUM_VISIBILITY,4],[s.POINT_OF_INTEREST_FREQUENT,6],[s.POINT_OF_INTEREST_INFREQUENT,30],[s.LABELER,8],[s.FEATURE_QUERY_ENGINE,8],[s.FEATURE_TILE_TREE,16],[s.FEATURE_TILE_TREE_ACTIVE,0],[s.ELEVATION_ALIGNMENT,12],[s.ELEVATION_ALIGNMENT_SCENE,14],[s.TEXT_TEXTURE_ATLAS,12],[s.TEXTURE_UNLOAD,12],[s.LINE_OF_SIGHT_TOOL,16],[s.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[s.SNAPPING,0],[s.SHADOW_ACCUMULATOR,30],[s.MAPVIEW_FETCH_QUEUE,0],[s.MAPVIEW_LAYERVIEW_UPDATE,2],[s.MAPVIEW_VECTOR_TILE_PARSING_QUEUE,0]]) 157function T(e){return v.has(e)?v.get(e):"number"==typeof e?e:1}const A=(0,f.l5)(6.5),I=(0,f.l5)(1),b=(0,f.l5)(30),R=(0,f.l5)(1e3/30),S=(0,f.l5)(100) 158var O,y 159!function(e){e.Scheduler=class{get updating(){return this._updating.value}_updatingChanged(){this._updating.value=this._tasks.some((e=>e.needsUpdate))}constructor(){this._updating=(0,d.v)(!0),this._microTaskQueued=!1,this._frameNumber=0,this.performanceInfo={total:new l.A("total"),tasks:new Map},this._frameTaskTimes=new Map,this._budget=new r,this._state=m.M.INTERACTING,this._tasks=new u.A,this._runQueue=new u.A,this._load=0,this._idleStateCallbacks=new u.A,this._idleUpdatesStartFired=!1,this._forceTask=!1,this._debug=!1,this._debugHandle=(0,h.watch)((()=>p.A.SCHEDULER_LOG_SLOW_TASKS),(e=>this._debug=e),h.initial) 160for(const e of Object.keys(s))this.performanceInfo.tasks.set(s[e],new l.A(s[e]))}destroy(){this._tasks.toArray().forEach((e=>e.remove())),this._tasks.clear(),(0,o.xt)(this._debugHandle),this._microTaskQueued=!1,this._updatingChanged()}taskRunningChanged(e){this._updatingChanged(),e&&this._budget.remaining>0&&!this._microTaskQueued&&(this._microTaskQueued=!0,queueMicrotask((()=>{this._microTaskQueued&&(this._microTaskQueued=!1,this._budget.remaining>0&&this._schedule()&&this._runFrame())})))}registerTask(e,r){const s=new t(this,e,r) 161return this._tasks.push(s),this._updatingChanged(),this.performanceInfo.tasks.has(e)||this.performanceInfo.tasks.set(e,new l.A(e)),s}registerIdleStateCallbacks(e,t){const r={idleBegin:e,idleEnd:t} 162this._idleStateCallbacks.push(r),this.state===m.M.IDLE&&this._idleUpdatesStartFired&&r.idleBegin() 163const s=this 164return{remove:()=>this._removeIdleStateCallbacks(r),set idleBegin(e){s._idleUpdatesStartFired&&(r.idleEnd(),s._state===m.M.IDLE&&e()),r.idleBegin=e},set idleEnd(e){r.idleEnd=e}}}get load(){return this._load}set state(e){this._state!==e&&(this._state=e,this.state!==m.M.IDLE&&this._idleUpdatesStartFired&&(this._idleUpdatesStartFired=!1,this._idleStateCallbacks.forAll((e=>e.idleEnd()))))}get state(){return this._state}frame(e){this._startFrameTaskTimes() 165const t=this._updateBudget(e) 166if(t){const e=this._budget.now() 167this._runFrame(),this._recordFrameTaskTimes(this._budget.now()-e)}else this._recordFrameTaskTimes(0) 168return t}_updateBudget(e){this._test&&(this._test.usedBudget=0),++this._frameNumber 169let t=A,r=e.frameDuration,s=I 170switch(this.state){case m.M.IDLE:t=(0,f.l5)(0),r=(0,f.l5)(Math.max(S,e.frameDuration)),s=b 171break 172case m.M.INTERACTING:r=(0,f.l5)(Math.max(R,e.frameDuration)) 173case m.M.ANIMATING:}return r=(0,f.l5)(r-e.elapsedFrameTime-t),this.state!==m.M.IDLE&&r<I&&!this._forceTask?(this._forceTask=!0,!1):(r=(0,f.l5)(Math.max(r,s)),this._budget.reset(r,this.state),this._updateLoad(),this._schedule())}_runFrame(){switch(this._forceTask=!1,this._microTaskQueued=!1,this.state){case m.M.IDLE:this._idleUpdatesStartFired||(this._idleUpdatesStartFired=!0,this._idleStateCallbacks.forAll((e=>e.idleBegin()))),this._runIdle() 174break 175case m.M.INTERACTING:this._runInteracting() 176break 177default:this._runAnimating()}this._test&&(this._test.usedBudget=this._budget.elapsed)}stopFrame(){this._budget.reset((0,f.l5)(0),this._state),this._budget.madeProgress()}_removeIdleStateCallbacks(e){this._idleUpdatesStartFired&&e.idleEnd(),this._idleStateCallbacks.removeUnordered(e)}removeTask(e){this._tasks.removeUnordered(e),this._runQueue.removeUnordered(e),this._updatingChanged()}_updateTask(e){this._tasks.forAll((t=>{t.name===e&&t.setPriority(e)}))}_getState(e){if(this._runQueue.some((t=>t.name===e)))return y.SCHEDULED 178let t=y.IDLE 179return this._tasks.forAll((r=>{r.name===e&&r.needsUpdate&&(r.schedulePriority<=1?t=y.READY:t!==y.READY&&(t=y.WAITING))})),t}_getRuntime(e){let t=0 180return this._tasks.forAll((r=>{r.name===e&&(t+=r.runtime)})),t}_resetRuntimes(){this._tasks.forAll((e=>e.runtime=0))}_getRunning(){const e=new Map 181if(this._tasks.forAll((t=>{t.needsUpdate&&e.set(t.name,(e.get(t.name)||0)+1)})),0===e.size)return null 182let t="" 183return e.forEach(((e,r)=>{t+=e>1?` ${e}x ${r}`:` ${r}`})),t}_runIdle(){this._run()}_runInteracting(){this._run()}_runAnimating(){this._run()}_updateLoad(){const e=this._tasks.reduce(((e,t)=>t.needsUpdate?++e:e),0) 184this._load=.9*this._load+e*(1-.9)}_schedule(){for(this._runQueue.filterInPlace((e=>!!e.needsUpdate||(e.schedulePriority=e.basePriority,!1))),this._tasks.forAll((e=>{0===e.basePriority&&e.needsUpdate&&!this._runQueue.includes(e)&&e.blockFrame!==this._frameNumber&&this._runQueue.unshift(e)}));0===this._runQueue.length;){let e=!1,t=0 185if(this._tasks.forAll((r=>{r.needsUpdate&&0!==r.schedulePriority&&0!==r.basePriority&&r.blockFrame!==this._frameNumber&&(e=!0,t=Math.max(t,r.basePriority),1===r.schedulePriority?(r.schedulePriority=0,this._runQueue.push(r)):--r.schedulePriority)})),!e)return this._updatingChanged(),!1}return this._updatingChanged(),!0}_run(){do{for(;this._runQueue.length>0;){const t=this._budget.now(),r=this._runQueue.pop() 186this._budget.resetProgress() 187try{r.task.runTask(this._budget)===E.G&&(r.blockFrame=this._frameNumber)}catch(e){a.A.getLogger("esri.views.support.Scheduler").error(`Exception in task "${r.name}"`,e),r.blockFrame=this._frameNumber}!this._budget.hasProgressed&&r.blockFrame!==this._frameNumber&&r.needsUpdate&&(r.name,s.I3S_CONTROLLER,r.blockFrame=this._frameNumber),r.sc
187hedulePriority=r.basePriority 188const n=this._budget.now()-t 189if(r.runtime+=n,this._frameTaskTimes.set(r.priority,this._frameTaskTimes.get(r.priority)+n),this._budget.remaining<=0)return void this._updatingChanged()}}while(this._schedule()) 190this._updatingChanged()}_startFrameTaskTimes(){for(const e of Object.keys(s))this._frameTaskTimes.set(s[e],0)}_recordFrameTaskTimes(e){this._frameTaskTimes.forEach(((e,t)=>this.performanceInfo.tasks.get(t).push(e))),this.performanceInfo.total.push(e)}get test(){return this._test}} 191class t{get task(){return this._task.value}get updating(){return this._queue.running}constructor(e,t,r){this._scheduler=e,this.name=t,this.blockFrame=0,this.runtime=0,this._queue=new _.T,this._handles=new i.default,this._basePriority=T(t),this.schedulePriority=this._basePriority,this._task=(0,d.v)(null!=r?r:this._queue),this._handles.add((0,h.when)((()=>this.task.running),(t=>e.taskRunningChanged(t))))}remove(){this.processQueue(N),this._scheduler.removeTask(this),this.schedule=L.schedule,this.reschedule=L.reschedule,this._handles.destroy()}get basePriority(){return this._basePriority}setPriority(e){if(this.name===e)return 192this.name=e 193const t=T(e) 1940!==this._basePriority&&0===this.schedulePriority||(this.schedulePriority=t),this._basePriority=t}get priority(){return this.name}set priority(e){this.setPriority(e)}get needsUpdate(){return this.updating||this.task.running}schedule(e,t,r){return this._queue.push(e,t,r)}reschedule(e,t,r){return this._queue.unshift(e,t,r)}processQueue(e){return this._queue.runTask(e)}}class r{constructor(){this._begin="undefined"!=typeof performance?performance.now():0,this._budget=0,this._state=m.M.IDLE,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this.elapsed>=this._budget&&this._enabled,this._done}get state(){return this._state}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e,t){this._begin=this.now(),this._budget=e,this._state=t,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return this.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}}e.Budget=r}(O||(O={})),function(e){e.SCHEDULED="s",e.READY="r",e.WAITING="w",e.IDLE="i"}(y||(y={})) 195const N=(()=>{const e=new O.Budget 196return e.enabled=!1,e})(),L=new class{remove(){}processQueue(){}schedule(e,t,r){try{if((0,c.isAborted)(t)){const e=(0,c.createAbortError)() 197return r?Promise.resolve(r(e)):Promise.reject(e)}return(0,c.when)(e(N))}catch(e){return Promise.reject(e)}}reschedule(e,t,r){return this.schedule(e,t,r)}}},38660:(e,t,r)=>{r.d(t,{G:()=>s}) 198const s=Symbol("Yield")},40899:(e,t,r)=>{r.d(t,{A:()=>l}) 199var s=r(52067),n=r(34374),i=r(91937),a=(r(57250),r(12752),r(98389),r(40038)) 200let o=class extends n.default{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,s._)([(0,i.MZ)()],o.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,s._)([(0,i.MZ)()],o.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),o=(0,s._)([(0,a.$)("esri.views.support.debugFlags")],o) 201const l=new o},67484:(e,t,r)=>{r.d(t,{Y:()=>s,m:()=>n}) 202const s=class{},n=new s},5539:(e,t,r)=>{r.r(t),r.d(t,{default:()=>v}) 203var s=r(52067),n=r(64175),i=r(92879),a=r(18145),o=r(99934),l=r(87874),u=r(43007),c=r(91937),h=(r(57250),r(12752),r(98389),r(40038)),d=r(64395),f=r(86586),_=r(17213),p=r(37205) 204function m(e,t,r){return null==e?null:(0,p.oU)(e*t,"meters",r)}function E(e,t,r){return null==e?null:(0,p.oU)(e*t,"meters",r)}let g=class extends i.A.EventedAccessor{constructor(e){super(e),this.type=null,this.id=(0,u.lk)(),this.title=null,this.color=new n.default("#000000"),this.visible=!0,this._getSamplesMemoized=(0,o.B)(((e,t)=>function(e,t){if(null==e||null==t)return null 205const{samples:r,spatialReference:s}=e,{distance:n,elevation:i}=t,a=(0,p.GA)(s),o=(0,p.G9)(s),l=r.length,u=new Array(l) 206for(let c=0;c<l;++c){const e=r[c],t=e.sampledZ,s=e.coordinate 207u[c]={x:s[0],y:s[1],z:t,distance:m(e.distance,a,n),elevation:E(t,o,i)}}return u}(e,t))),this._getStatisticsMemoized=(0,o.B)(((e,t)=>function(e,t){if(null==e||null==t||null==e.statistics||null==e.spatialReference)return null 208const{distance:r,elevation:s}=t,{statistics:n,spatialReference:i}=e,a=(0,p.GA)(i),o=(0,p.G9)(i) 209return{maxDistance:m(n.maxDistance,a,r),minElevation:E(n.minElevation,o,s),maxElevation:E(n.maxElevation,o,s),avgElevation:E(n.avgElevation,o,s),elevationGain:E(n.elevationGain,o,s),elevationLoss:E(n.elevationLoss,o,s),maxPositiveSlope:n.maxPositiveSlope,maxNegativeSlope:n.maxNegativeSlope,avgPositiveSlope:n.avgPositiveSlope,avgNegativeSlope:n.avgNegativeSlope}}(e,t))),this.viewVisualizationEnabled=!0,this.result=null,this.effectiveUnits=null,this.numSamplesForPreview=30,this.numSamplesPerChunk=200,this.chartFillEnabled=!0,this.chartStrokeWidth=1.5,this.chartStrokeOffsetY=0,this._viewModel=null}get progress(){return null!=this.result&&this.visible?this.result.progress:0}get samples(){return this._getSamplesMemoized(this.result,this.effectiveUnits)}get statistics(){return this._getStatisticsMemoized(this.result,this.effectiveUnits)}get hoveredPoint(){const e=this._viewModel?.hoveredChartPosition 210return null!=e?this._getPoint(e):null}get available(){return!0}get hasZ(){const e=this.result 211return null!=e&&e.hasZ}get minDemResolution(){return(0,f.zj)().defaultDemResolution}queryElevation(){throw new Error("not implemented")}attach(e){return this._viewModel=e,(0,a.vE)([(0,l.watch)((()=>e.effectiveUnits),(e=>{this.effectiveUnits=e}),l.syncAndInitial),(0,l.watch)((()=>[e.input]),(()=>this._onChange()),l.sync)])}toggleVisibility(e){this.visible=void 0===e?!this.visible:e}
211_onChange(){this.emit("change")}_getPoint(e){const{samples:t,result:r}=this 212if(null==t||null==r)return null 213const s=t.length 214if(0===s)return null 215const n=t[s-1].distance,i=(0,_.qX)(t,e*n,(e=>e.distance)) 216if(null==i)return null 217const{x:a,y:o,z:l}=i 218return null==l?null:new d.default({x:a,y:o,z:l,spatialReference:r.spatialReference})}};(0,s._)([(0,c.MZ)({nonNullable:!0})],g.prototype,"id",void 0),(0,s._)([(0,c.MZ)({nonNullable:!0})],g.prototype,"title",void 0),(0,s._)([(0,c.MZ)({type:n.default,nonNullable:!0})],g.prototype,"color",void 0),(0,s._)([(0,c.MZ)({nonNullable:!0})],g.prototype,"visible",void 0),(0,s._)([(0,c.MZ)({readOnly:!0})],g.prototype,"progress",null),(0,s._)([(0,c.MZ)({readOnly:!0})],g.prototype,"samples",null),(0,s._)([(0,c.MZ)({readOnly:!0})],g.prototype,"statistics",null),(0,s._)([(0,c.MZ)()],g.prototype,"hoveredPoint",null),(0,s._)([(0,c.MZ)()],g.prototype,"viewVisualizationEnabled",void 0),(0,s._)([(0,c.MZ)()],g.prototype,"available",null),(0,s._)([(0,c.MZ)()],g.prototype,"result",void 0),(0,s._)([(0,c.MZ)()],g.prototype,"effectiveUnits",void 0),(0,s._)([(0,c.MZ)()],g.prototype,"numSamplesForPreview",void 0),(0,s._)([(0,c.MZ)()],g.prototype,"numSamplesPerChunk",void 0),(0,s._)([(0,c.MZ)()],g.prototype,"chartFillEnabled",void 0),(0,s._)([(0,c.MZ)()],g.prototype,"chartStrokeWidth",void 0),(0,s._)([(0,c.MZ)()],g.prototype,"chartStrokeOffsetY",void 0),(0,s._)([(0,c.MZ)({readOnly:!0})],g.prototype,"hasZ",null),(0,s._)([(0,c.MZ)({readOnly:!0})],g.prototype,"minDemResolution",null),(0,s._)([(0,c.MZ)()],g.prototype,"_viewModel",void 0),g=(0,s._)([(0,h.$)("esri.widgets.ElevationProfile.ElevationProfileLine")],g) 219const v=g},34187:(e,t,r)=>{r.d(t,{NG:()=>n,Q8:()=>i,mb:()=>a}) 220const s="ProfileGenerationError" 221var n 222!function(e){e.TooComplex="too-complex",e.InvalidGeometry="invalid-geometry",e.InvalidElevationInfo="invalid-elevation-info",e.ElevationQueryError="elevation-query-error"}(n||(n={})) 223class i extends Error{constructor(e){super("profile could not be generated",{cause:e}),this.type=s}}function a(e){return e.type===s}},86586:(e,t,r)=>{r.d(t,{Fc:()=>h,GJ:()=>n,WG:()=>d,o8:()=>s,zj:()=>c}) 224var s,n,i,a=r(37205),o=r(65739),l=r(49899);(i=s||(s={})).Disabled="disabled",i.Ready="ready",i.Creating="creating",i.Created="created",i.Selecting="selecting",i.Selected="selected",function(e){e.NoValidInput
224="no-valid-input",e.NoVisibleProfiles="no-visible-profiles",e.InvalidGeometry="invalid-geometry",e.TooComplex="too-complex",e.InvalidElevationInfo="invalid-elevation-info",e.UnknownError="unknown-error",e.RefinedButNoChartData="refined-but-no-chart-data",e.None="none"}(n||(n={})) 225let u={noDataValue:-5e5,defaultQueryOptions:()=>({noDataValue:u.noDataValue,demResolution:"auto",maximumAutoTileRequests:150,ignoreInvisibleLayers:!0}),updateThrottleMillis:100,delayAfterPreviewMillis:500,defaultDemResolution:(0,a.oU)(10,"centimeters","meters"),densificationMaxSamples:3e3,largeChartSamples:1e4,maxTotalSamples:1e5,maxChartRatio:300,minSlopeSampleDistance:10,formatPrecision:1,profileLinesStyle3D:{width:3,falloff:0,innerWidth:0,innerColor:(0,o.fA)(0,0,0,0),renderOccluded:l.m$.Opaque},profileLinesUpdateThrottleMillis:100,hoveredPointsStyle:{size:14,borderStyle:"solid",borderWidth:3,borderColor:"#ffffff",boxShadow:"0px 0px 0px 5px rgba(255,255,255,0.2)"}} 226function c(){return u}const h=" â ",d={progress:1,hasZ:!1,samples:[],statistics:null,spatialReference:null}},44834:(e,t,r)=>{r.d(t,{Ai:()=>_,Rg:()=>T,VJ:()=>N,yK:()=>v}) 227var s=r(41889),n=r(81814),i=r(37205),a=r(13775),o=r(95612),l=r(7449),u=r(15420),c=r(12220),h=r(1493),d=r(9366),f=r(34187) 228async function _(e,t,s,a,o,l,d){let _,E,g 229const v=e.spatialReference,T=v.isGeographic||v.isWebMercator 230let N=0 231if(!T){const{planarLength:t}=await r.e(62908).then(r.bind(r,40527));(0,n.throwIfAborted)(d),N=await t(e,"meters"),(0,n.throwIfAborted)(d)}const M=1/(0,i.GA)(a) 232if(T){await(0,u.initializeProjection)([{source:v,dest:a},{source:v,dest:c.default.WGS84}],d) 233const r=function(e){return(0,h.isSupported)(e.spatialReference)?e:(0,u.project)(e,c.default.WGS84)}(e) 234_=(0,h.geodesicLengths)([r],"meters")[0] 235const n=p(_,o) 236if(L(e,_,n)>l)throw new f.Q8(f.NG.TooComplex) 237const i=m(r,t,s);({densifiedPath:E,distances:g}=function(e,t,r){const{hasZ:s}=e 238return A(e,t,r,I,s?S:R)}(i,n,M)),E=(0,u.project)(E,a)}else{await(0,u.initializeProjection)([{source:v,dest:a}],d),_=N 239const r=p(_,o) 240if(L(e,_,r)>l)throw new f.Q8(f.NG.TooComplex) 241const i=m(e,t,s);({densifiedPath:E,distances:g}=function(e,t,r){const{hasZ:s}=e 242return A(e,t,r,b,s?y:O)}(i,r,M)),(0,n.throwIfAborted)(d),E=(0,u.project)(E,a)}return{densifiedPath:E,pathLength:_*M,distances:g}}function p(e,t){const r=e/t.densificationMaxSamples 243return Math.max(t.samplingDistance,r)}function m(e,t,r){if(null==t)return E(e) 244const s=e.spatialReference,n=t.mode,i=(0,d.Ze)(t,s) 245let a=null 246switch(r.type){case"2d":a=function({hasZ:e},t,r){return"absolute-height"===t?e?([e,t,s])=>[e,t,s+r]:([e,t])=>[e,t,r]:null}(e,n,i) 247break 248case"3d":a=function({spatialReference:e,hasZ:t},r,s,{elevationProvider:n}){const i=(t,r,s,i)=>n?.getElevation(t,r,s,e,i)??0 249switch(r){case"on-the-ground":return([e,t])=>[e,t,i(e,t,0,"ground")] 250case"absolute-height":return t?([e,t,r])=>[e,t,r+s]:([e,t])=>[e,t,s] 251case"relative-to-ground":return t?([e,t,r])=>[e,t,r+i(e,t,r,"ground")+s]:([e,t])=>[e,t,i(e,t,0,"ground")+s] 252case"relative-to-scene":return t?([e,t,r])=>[e,t,r+i(e,t,r,"scene")+s]:([e,t])=>[e,t,i(e,t,0,"scene")+s] 253default:return null}}(e,n,i,r)}return null==a?E(e):new l.default({hasZ:!0,hasM:!1,spatialReference:s,paths:g(e.paths,a)})}function E(e){return e.hasZ?new l.default({hasZ:!1,hasM:!1,spatialReference:e.spatialReference,paths:g(e.paths,(([e,t])=>[e,t]))}):e}function g(e,t){const r=e.length,s=new Array(r) 254for(let n=0;n<r;++n){const r=e[n],i=r.length,a=new Array(r.length) 255s[n]=a 256for(let e=0;e<i;++e)a[e]=t(r[e])}return s}function v(e){return T(e)&&e.paths.length>0&&e.paths.every((e=>e.length>=2))}function T(e){return null!=e&&"polyline"===e.type}function A(e,t,r,n,a){const{spatialReference:o,hasZ:u}=e,c={from:null,to:null,distance:0,azimuth:0,reverseAzimuth:0,spatialReference:o,metersPerSR:(0,i.GA)(o)},h=[],d=[] 257let f=0 258for(let i=0;i<e.paths.length;++i){const o=e.paths[i],l=new Array,u=new Array 259let _=0 260for(let e=1;e<o.length;++e){const i=o[e-1],h=o[e],d=n(c,i,h) 261let p 262for(p=_;p<d.distance&&!(0,s.Io)(p,d.distance);p+=t)l.push(a(d,p)),u.push((f+p)*r) 263_=p-d.distance,f+=d.distance,l.push(h),u.push(f*r)}h[i]=l,d[i]=u}return{densifiedPath:new l.default({spatialReference:o,hasZ:u,paths:h}),distances:d}}function I(e,t,r){return e.distance=0,(0,h.inverseGeodeticSolver)(e,t,r,e.spatialReference),e.from=t,e.to=r,e}function b(e,t,r){return e.from=t,e.to=r,e.distance=(0,a.distance)(r,t)*e.metersPerSR,e}function R({from:e,azimuth:t,spatialReference:r},s){return(0,h.directGeodeticSolver)([0,0],e,t,s,r)}function S({from:e,to:t,azimuth:r,distance:n,spatialReference:i},a){const o=a/n,l=[0,0,(0,s.Cc)(e[2],t[2],o)] 264return(0,h.directGeodeticSolver)(l,e,r,a,i),l}function O({from:e,to:t,distance:r},s){return(0,a.lerp)([0,0],e,t,s/r)}function y({from:e,to:t,distance:r},s){return(0,o.m)([0,0,0],e,t,s/r)}function N(e){return e.paths.reduce(((e,t)=>e+t.length),0)}function L(e,t,r){return N(e)+Math.floor(t/r)+Math.max(0,e.paths.reduce((e=>1+e),0)-1)}},17213:(e,t,r)=>{r.d(t,{LD:()=>v,qX:()=>S,uK:()=>m}) 265var s=r(21590),n=r(41889),i=r(81814),a=r(74024),o=r(75874),l=r(12383),u=r(89319),c=r(50340),h=r(86586),d=r(44834),f=r(34187),_=r(45183),p=r(34023) 266async function*m(e,t){const{view:r,geometry:s,elevationInfo:n,providers:a,options:o}=e,l=r.spatialReference 267if(!l||null==s||!(0,d.yK)(s))throw new f.Q8(f.NG.InvalidGeometry) 268const u=a.length 269if(0===u)return null 270const c=Math.round(o.maxTotalSamples/u) 271if((0,d.VJ)(s)>c)throw new f.Q8(f.NG.TooComplex) 272const _=await(0,d.Ai)(s,n,r,l,o,c,t) 273let p=0 274const m=new Array(u),g=new Array(u) 275for(let i=0;i<u;i++){const r=A(_) 276m[i]=r,p+=r.samples.length 277const s={...e,provider:a[i],result:r,densificationResult:_} 278g[i]=E(s,t)[Symbol.iterator]()}if(p>o.maxTotalSamples)throw new f.Q8(f.NG.TooComplex) 279const v=await Promise.all(g.map((e=>{const t=e.next() 280return!0===t.done?Promise.resolve(null):t.value})));(0,i.throwIfAborted)(t) 281for(let i=0;i<u;i++)m[i]=v[i] 282yield m,await(0,i.after)(e.delayAfterPreview??(0,h.zj)().delayAfterPreviewMillis,null,t.signal) 283const T=[] 284try{let e 285do{e=!1 286for(let t=0;t<u;t++){const r=g[t].next() 287!1===r.done&&(T.push({resultPromise:r.value,index:t}),e=!0)}}while(e)}finally{g.forEach((e=>e.return?.()))}for(const{resultPromise:h,index:d}of T)m[d]=await h,(0,i.throwIfAborted)(t),yield m 288for(const i of m)null!=i&&(i.progress=1) 289yield m}function*E(e,t){const{densificationResult:r}=e,n={...e,abortOptions:t,densificationResult:r},i=(0,p.s)(0,n.result.samples.length),a=i.slice(0,n.provider.numSamplesForPreview) 290yield g(n,a,!0) 291const o=(0,s.Ho)(i,n.provider.numSamplesPerChunk) 292for(const s of o)yield g(n,s,!1)}async function g({densificationResult:e,result:t,provider:r,queue:s,abortOptions:n,cache:o},l,u){const{densifiedPath:c,pathLength:d}=e,f=t.spatialReference,{samples:_}=t,p=[] 293for(let i=0;i<l.length;i++){const e=_[l[i]] 294p[i]=e.coordinate}try{return await s.push({geometry:new a.default({spatialReference:f,points:p,hasZ:c.hasZ}),provider:r,indices:l,preview:u,result:t,queryOptions:{...(0,h.zj)().defaultQueryOptions(),minDemResolution:u?Math.round(d/r.numSamplesForPreview):Math.round(d/_.length),c
294ache:o}},n),{...t}}catch(e){return(0,i.isAbortError)(e)?null:h.WG}}function v(e){return new u.F({priority:c.W6.ELEVATION_PROFILE,concurrency:1,scheduler:e,process:async e=>{(0,i.throwIfAborted)(e.queryOptions) 295try{await async function({geometry:e,provider:t,indices:r,preview:s,result:n,queryOptions:i}){if(0===r.length)return 296const a=(await async function(e,t,r){try{return await e.queryElevation(t,r)}catch(e){throw new f.Q8(f.NG.ElevationQueryError)}}(t,e,i)).geometry,{hasZ:o,points:l}=a,u=i.noDataValue,{samples:c}=n 297for(let h=0;h<r.length;h++){const e=c[r[h]] 298if(e.isHole)continue 299const t=o?l[h][2]:null 300null===t||t===u?e.sampledZ=null:(n.hasZ=!0,e.sampledZ=t),e.sampled=!0}(function(e){const t=e.length-1 301let r=0 302for(let s=1;s<=t;s++)(e[s].sampled||s===t)&&(T(e,r,s),r=s)})(c),n.progress=s?0:n.progress+r.length/c.length,n.statistics=(0,_.mW)(n.samples,n.spatialReference)}(e)}catch(e){(0,i.throwIfNotAbortError)(e)}}})}function T(e,t,r){if(r-t==1)return 303const s=e[t],i=s.sampledZ,a=e[r],o=a.sampledZ 304if(null==i||null==o){for(let s=t+1;
304s<r;s++)e[s].sampledZ=null 305return}const l=s.distance,u=a.distance-l 306for(let c=t+1;c<r;c++){const t=e[c],r=(t.distance-l)/u 307t.sampledZ=(0,n.Cc)(i,o,r)}}function A({densifiedPath:e,distances:t}){const r=e.spatialReference,s=(0,l.Vp)(r),n=e.paths,i=n.length,a=[] 308let u=null,c=0 309for(let l=0;l<i;l++){const e=n[l],r=e.length,i=t[l] 310for(let t=0;t<r;t++){const r=e[t],n=i[t] 311s&&(r[0]=(0,o.N6)(r[0],s.valid[0],s.valid[1])),u&&0===t&&I(a,u,r,c,n),a.push(b(r,n)),u=r,c=n}}return{progress:0,samples:a,hasZ:!1,statistics:null,spatialReference:r}}function I(e,t,r,s,n){e.push(R(t,s)),e.push(R(r,n))}function b(e,t){return{coordinate:e,distance:t,sampledZ:null,sampled:!1,isHole:!1}}function R(e,t){return{coordinate:e,distance:t,sampledZ:null,sampled:!0,isHole:!0}}function S(e,t,r){if(!e||0===e.length)return 312const s=e.length-1,n=e[0] 313if(t<=r(n))return n 314const i=e[s] 315if(t>=r(i))return i 316let a=0,o=0,l=s 317for(;a<l;){o=a+Math.floor((l-a)/2) 318const n=e[o],i=r(n) 319if(i===t)return n 320if(t<i){if(o>0){const s=e[o-1],a=r(s) 321if(t>a)return t-a>=i-t?n:s}l=o}else{if(o<s){const s=e[o+1],a=r(s) 322if(t<a)return t-i>=a-t?s:n}a=o+1}}return e[o]}},45183:(e,t,r)=>{r.d(t,{DM:()=>l,ch:()=>o,mW:()=>a}) 323var s=r(21590),n=r(37205),i=r(86586) 324function a(e,t){const r=e.length 325if(0===r)return null 326const s=e[0],a=s.sampledZ 327let o=a,l=a,h=0,f=0,_=null,p=null,m=null!=a?a:0,E=0,g=0,v=null!=a?1:0,T=0,A=0 328const I=(0,n.GA)(t),b=(0,n.G9)(t),R=(0,i.zj)().minSlopeSampleDistance/I,S=2*R,O=new d,y=new d,N=()=>{M(),O.copy(y),y.reset()},L=(e,t)=>{N(),e>0&&e-O.start<=S&&(e=O.start+R),y.restart(e,t)},M=()=>{if(O.isHole||y.isHole)return 329const e=y.avgElevation-O.avgElevation,t=y.start-O.start,r=e*b,s=t*I,i=(0,n.oU)(Math.atan2(r,s),"radians","degrees") 330i>0?(E+=i,_=c(_,i),T++):i<0&&(g-=i,p=c(p,-i),A++)} 331null!=s.sampledZ&&L(s.distance,s.sampledZ) 332for(let n=1;n<r;++n){const t=e[n-1],r=e[n],s=r.sampledZ 333if(null==s){y.isHole||N() 334continue}v++,m+=s,o=u(o,s),l=c(l,s),y.isHole||r.distance-y.start>=R?L(r.distance,s):y.insert(s) 335const i=t.sampledZ 336if(null!=i){const e=s-i 337e>0?h+=e:e<0&&(f-=e)}}return N(),0===v?null:{maxDistance:e[r-1].distance,minElevation:o,maxElevation:l,avgElevation:0===v?null:m/v,elevationGain:h,elevationLoss:f,maxPositiveSlope:_,maxNegativeSlope:p,avgPositiveSlope:0===T?null:E/T,avgNegativeSlope:0===A?null:g/A}}function o(e){const t=e.filter(s.Ru),r=t.length 338if(0===r)return null 339const n=t[0] 340if(1===r)return n 341let i=n.maxDistance,a=n.minElevation,o=n.maxElevation,l=n.maxPositiveSlope,h=n.maxNegativeSlope 342for(let s=1;s<t.length;++s){const e=t[s] 343i=c(i,e.maxDistance),a=u(a,e.minElevation),o=c(o,e.maxElevation),l=c(l,e.maxPositiveSlope),h=c(h,e.maxNegativeSlope)}return{maxDistance:i,minElevation:a,maxElevation:o,avgElevation:null,elevationGain:null,elevationLoss:null,maxPositiveSlope:l,maxNegativeSlope:h,avgPositiveSlope:null,avgNegativeSlope:null}}function l(e){let t=null,r=null,s=null 344for(const i of e){if(null==i)continue 345const{statistics:e,spatialReference:a}=i 346if(null==e)continue 347const o=(0,n.GA)(a) 348t=c(t,h(e.maxDistance,o)) 349const l=(0,n.G9)(a) 350s=u(s,h(e.minElevation,l)),r=c(r,h(e.maxElevation,l))}return{minDistance:0,maxDistance:t??0,minElevation:s??0,maxElevation:r??0}}function u(e,t){return null==t?e:null!=e?Math.min(e,t):t}function c(e,t){return null==t?e:null!=e?Math.max(e,t):t}function h(e,t){return null!=e&&null!=t?e*t:null}class d{constructor(){this._start=0,this._totalElevation=0,this._sampleCount=0}get avgElevation(){return this._totalElevation/this._sampleCount}get isHole(){return 0===this._sampleCount}get start(){return this._start}copy(e){this._start=e._start,this._sampleCount=e._sampleCount,this._totalElevation=e._totalElevation}reset(){this._start=0,this._sampleCount=0,this._totalElevation=0}restart(e,t){this._start=e,this._sampleCount=1,this._totalElevation=t}insert(e){++this._sampleCount,this._totalElevation+=e}}},34023:(e,t,r)=>{function s(e,t,r=[]){if(e>=t)return r 351if(r.push(e),t-e<2)return r 352const s=t-1 353r.push(s) 354const i=n(e+1,s) 355for(;;){const e=i.next() 356if(e.done)break 357r.push(e.value)}return r}function*n(e,t){if(e>=t)return 358const r=e+Math.floor((t-e)/2) 359yield r 360const s=n(e,r),i=n(r+1,t) 361for(;;){const e=s.next(),t=i.next() 362if(e.done&&t.done)break 363e.done||(yield e.value),t.done||(yield t.value)}}r.d(t,{s:()=>s})}}])
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.