@arcgis/core 4.29.6 → 4.29.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{4984e2b79d862114d6a6.js → 1a8d56e01ddfec2257c3.js} +1 -1
  3. package/assets/esri/core/workers/chunks/{3afb525a131b6841276b.js → 1e4d779a884f13762601.js} +1 -1
  4. package/assets/esri/core/workers/chunks/{2447a4d5886aeb0ff72a.js → 205597cd91cb7ff3d2b4.js} +1 -1
  5. package/assets/esri/core/workers/chunks/{6c50daccd84ba5545bfe.js → 22ebdec0867e44d8d58c.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{da4616b02dd0c3dd3d5d.js → 321547d796a2ecd72ab4.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{6c3ae96ec90e9ed7dd50.js → 32be478638e9e643ea32.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{a61f337802ae963d7f65.js → 59f03847a9eb96e5f65c.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{7a98d2e026f63a581b1e.js → 5b08309b184f5d8345a0.js} +1 -1
  10. package/assets/esri/core/workers/chunks/631bda7b99a27f4453c1.js +1 -0
  11. package/assets/esri/core/workers/chunks/{c527692694688a5b3b07.js → 658a8ee9a4f24bc03f7f.js} +1 -1
  12. package/assets/esri/core/workers/chunks/99ac2a6a5be0604ee4c2.js +1 -0
  13. package/assets/esri/core/workers/chunks/{48db6e0bbb1a9c043193.js → b7a78246d25dc07f173d.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{60ab18c6a04d4b2f1d4c.js → bb05528d2ca12c57a031.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{5227f9eea6988aadad7f.js → cf0dc0ccbeaf9458de6e.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{f59b5ea05caca8a1a398.js → d40408be9bbcb0021d18.js} +1 -1
  17. package/assets/esri/core/workers/chunks/df6fbabbc74a408575fc.js +1 -0
  18. package/chunks/Laserlines.glsl.js +1 -1
  19. package/chunks/sphere.js +1 -1
  20. package/chunks/vec32.js +1 -1
  21. package/chunks/vec42.js +1 -1
  22. package/core/libs/gl-matrix-2/math/quat.js +1 -1
  23. package/core/libs/gl-matrix-2/math/vec3.js +1 -1
  24. package/core/libs/gl-matrix-2/math/vec4.js +1 -1
  25. package/geometry/support/sphere.js +1 -1
  26. package/interfaces.d.ts +8 -2
  27. package/kernel.js +1 -1
  28. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  29. package/layers/mixins/FeatureLayerBase.js +1 -1
  30. package/layers/orientedImagery/transformations/imageToGroundUtils.js +1 -1
  31. package/layers/support/SubtypeSublayer.js +1 -1
  32. package/layers/voxel/VoxelVolume.js +1 -1
  33. package/networks/UtilityNetwork.js +1 -1
  34. package/package.json +1 -1
  35. package/support/revision.js +1 -1
  36. package/views/2d/engine/webgl/mesh/MeshData.js +1 -1
  37. package/views/2d/engine/webgl/mesh/MultiTileMeshData.js +1 -1
  38. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  39. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  40. package/views/2d/layers/features/FeatureContainer.js +1 -1
  41. package/views/2d/layers/features/Processor.js +1 -1
  42. package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
  43. package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
  44. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  45. package/views/2d/layers/features/sources/strategies/chunks/OverrideChunk.js +1 -1
  46. package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
  47. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  48. package/views/2d/layers/features/support/FeatureSetReaderIndirect.js +1 -1
  49. package/views/2d/layers/features/support/GraphicsReader.js +1 -1
  50. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  51. package/views/3d/camera/constraintUtils/distance.js +1 -1
  52. package/views/3d/camera/constraintUtils/tilt.js +1 -1
  53. package/views/3d/layers/I3SMeshView3D.js +1 -1
  54. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  55. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  56. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  57. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  58. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  59. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  60. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  61. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  62. package/views/3d/layers/support/makeScheduleFunction.js +5 -0
  63. package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
  64. package/views/3d/state/controllers/global/PinchAndPanController.js +1 -1
  65. package/views/3d/state/controllers/global/ZoomController.js +1 -1
  66. package/views/3d/state/controllers/global/ZoomStepController.js +1 -1
  67. package/views/3d/state/controllers/momentum/ZoomSphericalMomentumController.js +1 -1
  68. package/views/3d/state/utils/navigationUtils.js +1 -1
  69. package/views/3d/support/geometryUtils/sphere.js +1 -1
  70. package/views/3d/terrain/OverlayManager.js +1 -1
  71. package/views/3d/terrain/PatchRenderData.js +1 -1
  72. package/views/3d/terrain/SphericalPatch.js +1 -1
  73. package/views/3d/terrain/TerrainSurface.js +1 -1
  74. package/views/3d/terrain/Tile.js +1 -1
  75. package/views/3d/webgl-engine/lib/Camera.js +1 -1
  76. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  77. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  78. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  79. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  80. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  81. package/views/3d/webgl-engine/lib/intersectorUtilsConversions.js +1 -1
  82. package/views/3d/webgl-engine/lib/lodRendering/InstanceOctree.js +1 -1
  83. package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
  84. package/views/interactive/sketch/constraints.js +1 -1
  85. package/views/interactive/snapping/featureSources/sceneLayerSource/sceneLayerSnappingUtils.js +1 -1
  86. package/views/support/geometry3dUtils.js +1 -1
  87. package/assets/esri/core/workers/chunks/a068f0c8c1c632e8b2cb.js +0 -1
  88. package/assets/esri/core/workers/chunks/a28b7d868346e13468bb.js +0 -1
  89. package/assets/esri/core/workers/chunks/ccd53b81c2688dd11584.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5316],{84752:(t,e,n)=>{n.d(e,{a:()=>O,c:()=>S,d:()=>g,f:()=>E,g:()=>b,i:()=>F,n:()=>B}),n(9456);var i=n(66360),o=n(53648),r=n(15008),s=n(98472),c=n(62484),u=n(74784),a=n(37008),h=n(47364),d=n(82315),l=n(90484),_=n(48880),f=n(20136);const m=g();function g(){return(0,a.Su)()}const T=u.e,p=u.e;function S(t,e){return(0,u.c)(e,t)}function O(t){return t[3]}function b(t){return t}function E(t,e,n,i){return(0,a.WK)(t,e,n,i)}function N(t,e,n){if(null==e)return!1;if(!M(t,e,R))return!1;let{t0:i,t1:o}=R;if((i<0||o<i&&o>0)&&(i=o),i<0)return!1;if(n){const{origin:t,direction:o}=e;n[0]=t[0]+o[0]*i,n[1]=t[1]+o[1]*i,n[2]=t[2]+o[2]*i}return!0}const R={t0:0,t1:0};function M(t,e,n){const{origin:i,direction:o}=e,r=A;r[0]=i[0]-t[0],r[1]=i[1]-t[1],r[2]=i[2]-t[2];const s=o[0]*o[0]+o[1]*o[1]+o[2]*o[2];if(0===s)return!1;const c=2*(o[0]*r[0]+o[1]*r[1]+o[2]*r[2]),u=c*c-4*s*(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]-t[3]*t[3]);if(u<0)return!1;const a=Math.sqrt(u);return n.t0=(-c-a)/(2*s),n.t1=(-c+a)/(2*s),!0}const A=(0,c.Su)();function F(t,e){return N(t,e,null)}function I(t,e,n){const i=f.Wq.get(),o=f.SW.get();(0,s.b)(i,e.origin,e.direction);const c=O(t);(0,s.b)(n,i,e.origin),(0,s.h)(n,n,1/(0,s.l)(n)*c);const u=j(t,e.origin),a=(0,_.i4)(e.origin,n);return(0,r.IT)(o,a+u,i),(0,s.e)(n,n,o),n}function x(t,e,n){const i=(0,s.f)(f.Wq.get(),e,t),o=(0,s.h)(f.Wq.get(),i,t[3]/(0,s.l)(i));return(0,s.g)(n,o,t)}function j(t,e){const n=(0,s.f)(f.Wq.get(),e,t),i=(0,s.l)(n),r=O(t),c=r+Math.abs(r-i);return(0,o.Uj)(r/c)}const P=(0,c.Su)();function w(t,e,n,i){const r=(0,s.f)(P,e,t);switch(n){case d.k.X:{const t=(0,o.Iv)(r,P)[2];return(0,s.s)(i,-Math.sin(t),Math.cos(t),0)}case d.k.Y:{const t=(0,o.Iv)(r,P),e=t[1],n=t[2],c=Math.sin(e);return(0,s.s)(i,-c*Math.cos(n),-c*Math.sin(n),Math.cos(e))}case d.k.Z:return(0,s.n)(i,r);default:return}}function v(t,e){const n=(0,s.f)(W,e,t);return(0,s.l)(n)-t[3]}function B(t,e){const n=(0,s.a)(t,e),i=O(t);return n<=i*i}const W=(0,c.Su)(),C=g();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:m,altitudeAt:v,angleToSilhouette:j,axisAt:w,clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,e,n){return N(t,e,n)?n:((0,l.CE)(e,t,n),x(t,n,n))},closestPointOnSilhouette:I,containsPoint:B,copy:S,create:g,distanceToSilhouette:function(t,e){const n=(0,s.f)(f.Wq.get(),e,t),i=(0,s.p)(n),o=t[3]*t[3];return Math.sqrt(Math.abs(i-o))},elevate:function(t,e,n){return t!==n&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),n[3]=t[3]+e,n},equals:p,exactEquals:T,fromCenterAndRadius:function(t,e){return(0,a.WK)(t[0],t[1],t[2],e)},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},fromValues:E,getCenter:b,getRadius:O,intersectLine:function(t,e,n){const i=(0,l.i_)(e,n);if(!M(t,i,R))return[];const{origin:o,direction:r}=i,{t0:u,t1:a}=R,d=e=>{const n=(0,c.Su)();return(0,s.r)(n,o,r,e),x(t,n,n)};return Math.abs(u-a)<(0,h.Au)()?[d(u)]:[d(u),d(a)]},intersectRay:N,intersectRayClosestSilhouette:function(t,e,n){if(N(t,e,n))return n;const i=I(t,e,f.Wq.get());return(0,s.g)(n,e.origin,(0,s.h)(f.Wq.get(),e.direction,(0,s.q)(e.origin,i)/(0,s.l)(e.direction))),n},intersectsRay:F,projectPoint:x,setAltitudeAt:function(t,e,n,i){const o=v(t,e),r=w(t,e,d.k.Z,W),c=(0,s.h)(W,r,n-o);return(0,s.g)(i,e,c)},setExtent:function(t,e,n){return i.c.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),t!==n&&S(t,n),n},tmpSphere:C,union:function(t,e,n=(0,a.Su)()){const i=(0,s.q)(t,e),o=t[3],r=e[3];return i+r<o?((0,u.c)(n,t),n):i+o<r?((0,u.c)(n,e),n):((0,s.m)(n,t,e,(i+r-o)/(2*i)),n[3]=(i+o+r)/2,n)},wrap:function(t){return t}},Symbol.toStringTag,{value:"Module"}))},52180:(t,e,n)=>{n.d(e,{o:()=>o});var i=n(52324);class o{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,i.o)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*r);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,r));t++)this._items.push(this._allocator())}}const r=1024},68612:(t,e,n)=>{function i(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,i,o,r,s,c,u){return[t,e,n,i,o,r,s,c,u]}n.d(e,{IJ:()=>r,Su:()=>i,WK:()=>o});const r=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:r,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:i,createView:function(t,e){return new Float64Array(t,e,9)},fromValues:o},Symbol.toStringTag,{value:"Module"}))},87104:(t,e,n)=>{function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{IJ:()=>r,Su:()=>i,ct:()=>o});const r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:r,clone:o,create:i,createView:function(t,e){return new Float64Array(t,e,16)},fromValues:function(t,e,n,i,o,r,s,c,u,a,h,d,l,_,f,m){return[t,e,n,i,o,r,s,c,u,a,h,d,l,_,f,m]}},Symbol.toStringTag,{value:"Module"}))},2620:(t,e,n)=>{function i(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{IJ:()=>r,Su:()=>i,ct:()=>o});const r=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:r,clone:o,create:i,createView:function(t,e){return new Float64Array(t,e,4)},fromValues:function(t,e,n,i){return[t,e,n,i]}},Symbol.toStringTag,{value:"Module"}))},82315:(t,e,n)=>{var i;n.d(e,{k:()=>i}),function(t){t[t.X=0]="X",t[t.Y=1]="Y",t[t.Z=2]="Z"}(i||(i={}))},24363:(t,e,n)=>{n.d(e,{C_:()=>h,Su:()=>u,i_:()=>a});var i=n(53648),o=n(52180),r=n(98472),s=n(62484),c=n(20136);function u(t){return t?{origin:(0,s.ct)(t.origin),vector:(0,s.ct)(t.vector)}:{origin:(0,s.Su)(),vector:(0,s.Su)()}}function a(t,e,n=u()){return(0,r.c)(n.origin,t),(0,r.f)(n.vector,e,t),n}function h(t,e,n){return function(t,e,n,o,s){const{vector:u,origin:a}=t,h=(0,r.f)(c.Wq.get(),e,a),d=(0,r.k)(u,h)/(0,r.p)(u);return(0,r.h)(s,u,(0,i.qk)(d,0,1)),(0,r.g)(s,s,t.origin)}(t,e,0,0,n)}(0,s.Su)(),(0,s.Su)(),new o.o((()=>u()))},58632:(t,e,n)=>{n.d(e,{Su:()=>r,XX:()=>c,Oq:()=>s}),n(53648);var i=n(98472),o=n(62484);function r(t=f){return[t[0],t[1],t[2],t[3]]}function s(t){return t}function c(t,e,n,o=0,s=Math.floor(n*(1/3)),f=Math.floor(n*(2/3))){if(n<3)return!1;e(a,o);let m=s,g=!1;for(;m<n-1&&!g;)e(h,m),m++,g=!(0,i.j)(a,h);if(!g)return!1;for(m=Math.max(m,f),g=!1;m<n&&!g;)e(d,m),m++,(0,i.f)(l,a,h),(0,i.n)(l,l),(0,i.f)(_,h,d),(0,i.n)(_,_),g=!(0,i.j)(a,d)&&!(0,i.j)(h,d)&&Math.abs((0,i.k)(l,_))<u;return g?(function(t,e,n,i=r()){const o=n[0]-e[0],s=n[1]-e[1],c=n[2]-e[2],u=t[0]-e[0],a=t[1]-e[1],h=t[2]-e[2],d=s*h-c*a,l=c*u-o*h,_=o*a-s*u,f=d*d+l*l+_*_,m=Math.abs(f-1)>1e-5&&f>1e-12?1/Math.sqrt(f):1;i[0]=d*m,i[1]=l*m,i[2]=_*m,i[3]=-(i[0]*t[0]+i[1]*t[1]+i[2]*t[2])}(a,h,d,t),!0):(0!==o||1!==s||2!==f)&&c(t,e,n,0,1,2)}n(74784),n(48880),n(20136),(0,o.Su)(),(0,o.Su)(),(0,o.Su)(),(0,o.Su)(),(0,o.Su)();const u=.99619469809,a=(0,o.Su)(),h=(0,o.Su)(),d=(0,o.Su)(),l=(0,o.Su)(),_=(0,o.Su)(),f=[0,0,1,0];var m,g;(g=m||(m={}))[g.NONE=0]="NONE",g[g.CLAMP=1]="CLAMP",g[g.INFINITE_MIN=4]="INFINITE_MIN",g[g.INFINITE_MAX=8]="INFINITE_MAX",m.INFINITE_MIN,m.INFINITE_MAX,m.INFINITE_MAX},90484:(t,e,n)=>{n.d(e,{CE:()=>h,Su:()=>s,em:()=>u,i_:()=>a}),n(92400);var i=n(52180),o=n(98472),r=n(62484);function s(t){return t?c((0,r.ct)(t.origin),(0,r.ct)(t.direction)):c((0,r.Su)(),(0,r.Su)())}function c(t,e){return{origin:t,direction:e}}function u(t,e){const n=d.get();return n.origin=t,n.direction=e,n}function a(t,e,n=s()){return(0,o.c)(n.origin,t),(0,o.f)(n.direction,e,t),n}function h(t,e,n){const i=(0,o.k)(t.direction,(0,o.f)(n,e,t.origin));return(0,o.g)(n,t.origin,(0,o.h)(n,t.direction,i)),n}n(20136);const d=new i.o((()=>s()))},48880:(t,e,n)=>{n.d(e,{i4:()=>s});var i=n(53648),o=n(98472),r=n(62484);function s(t,e){const n=(0,o.k)(t,e)/((0,o.l)(t)*(0,o.l)(e));return-(0,i.Uj)(n)}(0,r.Su)(),(0,r.Su)()},20136:(t,e,n)=>{n.d(e,{SW:()=>l,QX:()=>_,Wq:()=>d});var i=n(52324),o=n(68612),r=n(87104),s=n(2620),c=n(85256),u=n(62484),a=n(37008);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,i.o)((()=>this._reset())),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new h(c.Su)}static createVec3f64(){return new h(u.Su)}static createVec4f64(){return new h(a.Su)}static createMat3f64(){return new h(o.Su)}static createMat4f64(){return new h(r.Su)}static createQuatf64(){return new h(s.Su)}get test(){return{length:this._items.length}}}h.createVec2f64();const d=h.createVec3f64(),l=(h.createVec4f64(),h.createMat3f64(),h.createMat4f64()),_=h.createQuatf64()},45316:(t,e,n)=>{n.r(e),n.d(e,{default:()=>Q});var i,o,r=n(41948),s=n(10860),c=(n(66360),n(9456),n(72052),n(20744),n(12552)),u=n(98472),a=n(62484),h=n(24363),d=n(84752),l=n(69752),_=n(24680),f=n(52180),m=(n(15008),n(74784),n(37008)),g=n(90484);function T(t){return t?{ray:(0,g.Su)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,g.Su)(),c0:0,c1:Number.MAX_VALUE}}function p(t,e){for(let n=0;n<S;n++){const i=t[n];if(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]+i[3]>=e[3])return!1}return!0}new f.o((()=>T())),n(58632),n(20136),function(t){t[t.LEFT=0]="LEFT",t[t.RIGHT=1]="RIGHT",t[t.BOTTOM=2]="BOTTOM",t[t.TOP=3]="TOP",t[t.NEAR=4]="NEAR",t[t.FAR=5]="FAR"}(i||(i={})),function(t){t[t.NEAR_BOTTOM_LEFT=0]="NEAR_BOTTOM_LEFT",t[t.NEAR_BOTTOM_RIGHT=1]="NEAR_BOTTOM_RIGHT",t[t.NEAR_TOP_RIGHT=2]="NEAR_TOP_RIGHT",t[t.NEAR_TOP_LEFT=3]="NEAR_TOP_LEFT",t[t.FAR_BOTTOM_LEFT=4]="FAR_BOTTOM_LEFT",t[t.FAR_BOTTOM_RIGHT=5]="FAR_BOTTOM_RIGHT",t[t.FAR_TOP_RIGHT=6]="FAR_TOP_RIGHT",t[t.FAR_TOP_LEFT=7]="FAR_TOP_LEFT"}(o||(o={})),o.FAR_BOTTOM_RIGHT,o.NEAR_BOTTOM_RIGHT,o.NEAR_BOTTOM_LEFT,o.FAR_BOTTOM_LEFT,o.NEAR_BOTTOM_LEFT,o.NEAR_BOTTOM_RIGHT,o.NEAR_TOP_RIGHT,o.NEAR_TOP_LEFT,o.FAR_BOTTOM_RIGHT,o.FAR_BOTTOM_LEFT,o.FAR_TOP_LEFT,o.FAR_TOP_RIGHT,o.NEAR_BOTTOM_RIGHT,o.FAR_BOTTOM_RIGHT,o.FAR_TOP_RIGHT,o.NEAR_TOP_RIGHT,o.FAR_BOTTOM_LEFT,o.NEAR_BOTTOM_LEFT,o.NEAR_TOP_LEFT,o.FAR_TOP_LEFT,o.FAR_TOP_LEFT,o.NEAR_TOP_LEFT,o.NEAR_TOP_RIGHT,o.FAR_TOP_RIGHT;const S=6;(0,m.WK)(-1,-1,-1,1),(0,m.WK)(1,-1,-1,1),(0,m.WK)(1,1,-1,1),(0,m.WK)(-1,1,-1,1),(0,m.WK)(-1,-1,1,1),(0,m.WK)(1,-1,1,1),(0,m.WK)(1,1,1,1),(0,m.WK)(-1,1,1,1),new f.o(T),(0,a.Su)(),(0,a.Su)(),(0,a.Su)(),(0,a.Su)(),(0,a.Su)(),(0,a.Su)(),(0,a.Su)(),(0,a.Su)();var O,b,E=n(90736);class N{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,e){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new R,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}destroy(){this._degenerateObjects.clear(),R.clearPool(),W[0]=null,q.prune(),G.prune()}add(t,e=t.length){this._objectCount+=e,this._grow(t,e);const n=R.acquire();for(let i=0;i<e;i++){const e=t[i];this._isDegenerate(e)?this._degenerateObjects.add(e):(n.init(this._root),this._add(e,n))}R.release(n)}remove(t,e=null){this._objectCount-=t.length;const n=R.acquire();for(const i of t){const t=e??(0,d.c)(this.objectToBoundingSphere(i),K);P(t[3])?(n.init(this._root),this._remove(i,t,n)):this._degenerateObjects.delete(i)}R.release(n),this._shrink()}update(t,e){if(!P(e[3])&&this._isDegenerate(t))return;const n=function(t){return W[0]=t,W}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){const i=(0,g.em)(t,e);this._forEachNode(this._root,(t=>{if(!this._intersectsNode(i,t))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObject(i,t)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObject(i,t)&&n(t)})),!0}))}forEachAlongRayWithVerticalOffset(t,e,n,i){const o=(0,g.em)(t,e);this._forEachNode(this._root,(t=>{if(!this._intersectsNodeWithOffset(o,t,i))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObjectWithOffset(o,t,i)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObjectWithOffset(o,t,i)&&n(t)})),!0}))}forEach(t){this._forEachNode(this._root,(e=>{const n=e.node;return n.terminals.forAll(t),null!==n.residents&&n.residents.forAll(t),!0})),this._degenerateObjects.forEach(t)}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}findClosest(t,e,n,i=(()=>!0),o=1/0){let r=1/0,s=1/0,c=null;const a=x(t,e),h=u=>{if(--o,!i(u))return;const a=this.objectToBoundingSphere(u);if(!p(n,a))return;const h=j(t,e,(0,d.g)(a)),l=h-a[3],_=h+a[3];l<r&&(r=l,s=_,c=u)};return this._forEachNodeDepthOrdered(this._root,(i=>{if(o<=0||!p(n,i.bounds))return!1;if((0,u.h)(L,a,i.halfSize),(0,u.g)(L,L,(0,d.g)(i.bounds)),j(t,e,L)>s)return!1;const r=i.node;return r.terminals.forAll((t=>h(t))),null!==r.residents&&r.residents.forAll((t=>h(t))),!0}),t,e),c}forEachInDepthRange(t,e,n,i,o,r,s){let c=-1/0,a=1/0;const h={setRange:t=>{n===N.DepthOrder.FRONT_TO_BACK?(c=Math.max(c,t.near),a=Math.min(a,t.far)):(c=Math.max(c,-t.far),a=Math.min(a,-t.near))}};h.setRange(i);const l=j(e,n,t),_=x(e,n),f=x(e,-n),m=t=>{if(!s(t))return;const i=this.objectToBoundingSphere(t),u=(0,d.g)(i),_=j(e,n,u)-l,f=_-i[3],m=_+i[3];f>a||m<c||!p(r,i)||o(t,h)};this._forEachNodeDepthOrdered(this._root,(t=>{if(!p(r,t.bounds))return!1;if((0,u.h)(L,_,t.halfSize),(0,u.g)(L,L,(0,d.g)(t.bounds)),j(e,n,L)-l>a)return!1;if((0,u.h)(L,f,t.halfSize),(0,u.g)(L,L,(0,d.g)(t.bounds)),j(e,n,L)-l<c)return!1;const i=t.node;return i.terminals.forAll((t=>m(t))),null!==i.residents&&i.residents.forAll((t=>m(t))),!0}),e,n)}forEachNode(t){this._forEachNode(this._root,(e=>t(e.node,e.bounds,e.halfSize,e.depth)))}forEachNeighbor(t,e){const n=(0,d.a)(e),i=(0,d.g)(e),o=e=>{const o=this.objectToBoundingSphere(e),r=(0,d.a)(o),s=n+r;return!((0,u.a)((0,d.g)(o),i)-s*s<=0)||t(e)};let r=!0;const s=t=>{r&&(r=o(t))};this._forEachNode(this._root,(t=>{const e=(0,d.a)(t.bounds),o=n+e;if((0,u.a)((0,d.g)(t.bounds),i)-o*o>0)return!1;const c=t.node;return c.terminals.forAll(s),r&&null!==c.residents&&c.residents.forAll(s),r})),r&&this.forEachDegenerateObject(s)}_intersectsNode(t,e){return F((0,d.g)(e.bounds),2*-e.halfSize,y),F((0,d.g)(e.bounds),2*e.halfSize,z),(0,E.If)(t.origin,t.direction,y,z)}_intersectsNodeWithOffset(t,e,n){return F((0,d.g)(e.bounds),2*-e.halfSize,y),F((0,d.g)(e.bounds),2*e.halfSize,z),n.applyToMinMax(y,z),(0,E.If)(t.origin,t.direction,y,z)}_intersectsObject(t,e){const n=this.objectToBoundingSphere(e);return!(n[3]>0)||(0,d.i)(n,t)}_intersectsObjectWithOffset(t,e,n){const i=this.objectToBoundingSphere(e);return!(i[3]>0)||(0,d.i)(n.applyToBoundingSphere(i),t)}_forEachNode(t,e){let n=R.acquire().init(t);const i=[n];for(;0!==i.length;){if(n=i.pop(),e(n)&&!n.isLeaf())for(let t=0;t<n.node.children.length;t++)n.node.children[t]&&i.push(R.acquire().init(n).advance(t));R.release(n)}}_forEachNodeDepthOrdered(t,e,n,i=N.DepthOrder.FRONT_TO_BACK){let o=R.acquire().init(t);const r=[o];for(function(t,e,n){if(!G.length)for(let t=0;t<8;++t)G.push({index:0,distance:0});for(let n=0;n<8;++n){const i=w[n];G.data[n].index=n,G.data[n].distance=j(t,e,i)}G.sort(((t,e)=>t.distance-e.distance));for(let t=0;t<8;++t)n[t]=G.data[t].index}(n,i,X);0!==r.length;){if(o=r.pop(),e(o)&&!o.isLeaf())for(let t=7;t>=0;--t){const e=X[t];o.node.children[e]&&r.push(R.acquire().init(o).advance(e))}R.release(o)}}_remove(t,e,n){q.clear();const i=n.advanceTo(e,((t,e)=>{q.push(t.node),q.push(e)}))?n.node.terminals:n.node.residents;if(i.removeUnordered(t),0===i.length)for(let t=q.length-2;t>=0;t-=2){const e=q.data[t],n=q.data[t+1];if(!this._purge(e,n))break}}_nodeIsEmpty(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let e=0;e<t.children.length;e++)if(t.children[e])return!1;return!0}_purge(t,e){return e>=0&&(t.children[e]=null),!!this._nodeIsEmpty(t)&&(null===t.residents&&(t.residents=new _.c({shrink:!0})),!0)}_add(t,e){e.advanceTo(this.objectToBoundingSphere(t))?e.node.terminals.push(t):(e.node.residents.push(t),e.node.residents.length>this._maximumObjectsPerNode&&e.depth<this._maximumDepth&&this._split(e))}_split(t){const e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){const i=R.acquire().init(t);this._add(e.at(n),i),R.release(i)}}_grow(t,e){if(0!==e&&(I(t,e,(t=>this.objectToBoundingSphere(t)),D),P(D[3])&&!this._fitsInsideTree(D)))if(this._nodeIsEmpty(this._root.node))(0,d.c)(D,this._root.bounds),this._root.halfSize=1.25*this._root.bounds[3],this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(D);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(D,t):this._growRootAsSubNode(t),R.release(t)}}_rebuildTree(t,e){(0,u.c)((0,d.g)(H),(0,d.g)(e.bounds)),H[3]=e.halfSize,I([t,H],2,(t=>t),V);const n=R.acquire().init(this._root);this._root.initFrom(null,V,V[3]),this._root.increaseHalfSize(1.25),this._forEachNode(n,(t=>(this.add(t.node.terminals.data,t.node.terminals.length),null!==t.node.residents&&this.add(t.node.residents.data,t.node.residents.length),!0))),R.release(n)}_placingRootViolatesMaxDepth(t){const e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let n=0;return this._forEachNode(this._root,(t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth))),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const e=t[3],n=t;let i=-1/0;const o=this._root.bounds,r=this._root.halfSize;for(let t=0;t<3;t++){const s=o[t]-r-(n[t]-e),c=n[t]+e-(o[t]+r),u=Math.max(0,Math.ceil(s/(2*r))),a=Math.max(0,Math.ceil(c/(2*r)))+1,h=2**Math.ceil(Math.log(u+a)*Math.LOG2E);i=Math.max(i,h),k[t].min=u,k[t].max=a}for(let t=0;t<3;t++){let e=k[t].min,n=k[t].max;const s=(i-(e+n))/2;e+=Math.ceil(s),n+=Math.floor(s);const c=o[t]-r-e*r*2;C[t]=c+(n+e)*r}const s=i*r;return C[3]=s*B,R.acquire().initFrom(null,C,s,0)}_growRootAsSubNode(t){const e=this._root.node;(0,u.c)((0,d.g)(D),(0,d.g)(this._root.bounds)),D[3]=this._root.halfSize,this._root.init(t),t.advanceTo(D,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const e=this._root.node.children;let n=0,i=0;for(;i<e.length&&null==t;)n=i++,t=e[n];for(;i<e.length;)if(e[i++])return-1;return n}_isDegenerate(t){return!P(this.objectToBoundingSphere(t)[3])}_fitsInsideTree(t){const e=this._root.bounds,n=this._root.halfSize;return t[3]<=n&&t[0]>=e[0]-n&&t[0]<=e[0]+n&&t[1]>=e[1]-n&&t[1]<=e[1]+n&&t[2]>=e[2]-n&&t[2]<=e[2]+n}toJSON(){const{maximumDepth:t,maximumObjectsPerNode:e,_objectCount:n}=this,i=this._nodeToJSON(this._root.node);return{maximumDepth:t,maximumObjectsPerNode:e,objectCount:n,root:{bounds:this._root.bounds,halfSize:this._root.halfSize,depth:this._root.depth,node:i}}}_nodeToJSON(t){const e=t.children.map((t=>t?this._nodeToJSON(t):null)),n=t.residents?.map((t=>this.objectToBoundingSphere(t))),i=t.terminals?.map((t=>this.objectToBoundingSphere(t)));return{children:e,residents:n,terminals:i}}static fromJSON(t){const e=new N((t=>t),{maximumDepth:t.maximumDepth,maximumObjectsPerNode:t.maximumObjectsPerNode});return e._objectCount=t.objectCount,e._root.initFrom(t.root.node,t.root.bounds,t.root.halfSize,t.root.depth),e}}class R{constructor(){this.bounds=(0,d.d)(),this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,e,n,i=this.depth){return this.node=null!=t?t:R.createEmptyNode(),e&&(0,d.c)(e,this.bounds),this.halfSize=n,this.depth=i,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds[3]=this.halfSize*B}advance(t){let e=this.node.children[t];e||(e=R.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;const n=w[t];return this.bounds[0]+=n[0]*this.halfSize,this.bounds[1]+=n[1]*this.halfSize,this.bounds[2]+=n[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e&&e(this,-1),!0;if(this.isLeaf()){if(!n)return e&&e(this,-1),!1;this.node.residents=null}const i=this._childIndex(t);e&&e(this,i),this.advance(i)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t[3]>this.halfSize/2}_childIndex(t){const e=this.bounds;return(e[0]<t[0]?1:0)+(e[1]<t[1]?2:0)+(e[2]<t[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new _.c({shrink:!0}),residents:new _.c({shrink:!0})}}static acquire(){return R._pool.acquire()}static release(t){R._pool.release(t)}static clearPool(){R._pool.prune()}}function M(t,e){t[0]=Math.min(t[0],e[0]-e[3]),t[1]=Math.min(t[1],e[1]-e[3]),t[2]=Math.min(t[2],e[2]-e[3])}function A(t,e){t[0]=Math.max(t[0],e[0]+e[3]),t[1]=Math.max(t[1],e[1]+e[3]),t[2]=Math.max(t[2],e[2]+e[3])}function F(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function I(t,e,n,i){if(1===e){const e=n(t[0]);(0,d.c)(e,i)}else{y[0]=1/0,y[1]=1/0,y[2]=1/0,z[0]=-1/0,z[1]=-1/0,z[2]=-1/0;for(let i=0;i<e;i++){const e=n(t[i]);P(e[3])&&(M(y,e),A(z,e))}(0,u.m)((0,d.g)(i),y,z,.5),i[3]=Math.max(z[0]-y[0],z[1]-y[1],z[2]-y[2])/2}}function x(t,e){let n,i=1/0;for(let o=0;o<8;++o){const r=j(t,e,v[o]);r<i&&(i=r,n=v[o])}return n}function j(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function P(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}R._pool=new l.c(R),O=N||(N={}),(b=O.DepthOrder||(O.DepthOrder={}))[b.FRONT_TO_BACK=1]="FRONT_TO_BACK",b[b.BACK_TO_FRONT=-1]="BACK_TO_FRONT";const w=[(0,a.WK)(-1,-1,-1),(0,a.WK)(1,-1,-1),(0,a.WK)(-1,1,-1),(0,a.WK)(1,1,-1),(0,a.WK)(-1,-1,1),(0,a.WK)(1,-1,1),(0,a.WK)(-1,1,1),(0,a.WK)(1,1,1)],v=[(0,a.WK)(-1,-1,-1),(0,a.WK)(-1,-1,1),(0,a.WK)(-1,1,-1),(0,a.WK)(-1,1,1),(0,a.WK)(1,-1,-1),(0,a.WK)(1,-1,1),(0,a.WK)(1,1,-1),(0,a.WK)(1,1,1)],B=Math.sqrt(3),W=[null],C=(0,d.d)(),L=(0,a.Su)(),y=(0,a.Su)(),z=(0,a.Su)(),q=new _.c,K=(0,d.d)(),D=(0,d.d)(),H=(0,d.d)(),V=(0,d.d)(),k=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],G=new _.c,X=[0,0,0,0,0,0,0,0],J=N;var Y=n(75980);function U(t,e,n){const i=(0,d.d)(),o=(0,d.g)(i);return(0,u.r)(o,o,t,.5),(0,u.r)(o,o,e,.5),i[3]=(0,u.q)(o,t),(0,u.g)(o,o,n),i}let Z=class{constructor(){this._idToComponent=new Map,this._components=new J((t=>t.bounds)),this._edges=new J((t=>t.bounds)),this._tmpLineSegment=(0,h.Su)(),this._tmpP1=(0,a.Su)(),this._tmpP2=(0,a.Su)(),this._tmpP3=(0,a.Su)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,s.wp)(e),await this._ensureEdgeLocations(t,e);const n=[];return this._edges.forEachNeighbor((e=>(this._addCandidates(t,e,n),n.length<1e3)),t.bounds),{result:{candidates:n}}}async _ensureEdgeLocations(t,e){const n=[];if(this._components.forEachNeighbor((t=>{if(null==t.info){const{id:e,uid:i}=t;n.push({id:e,uid:i})}return!0}),t.bounds),!n.length)return;const i={components:n},o=await this.remoteClient.invoke("fetchAllEdgeLocations",i,e??{});for(const t of o.components)this._setFetchEdgeLocations(t)}async add(t){const e=new $(t.id,t.bounds);return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){const e=this._idToComponent.get(t.id);if(e){const t=[];this._edges.forEachNeighbor((n=>(n.component===e&&t.push(n),!0)),e.bounds),this._edges.remove(t),this._components.remove([e]),this._idToComponent.delete(e.id)}return{result:{}}}_setFetchEdgeLocations(t){const e=this._idToComponent.get(t.id);if(null==e||t.uid!==e.uid)return;const n=Y.or.createView(t.locations),i=new Array(n.count),o=(0,a.Su)(),r=(0,a.Su)();for(let s=0;s<n.count;s++){n.position0.getVec(s,o),n.position1.getVec(s,r);const c=U(o,r,t.origin),u=new tt(e,s,c);i[s]=u}this._edges.add(i);const{objectIds:s,origin:c}=t;e.info={locations:n,objectIds:s,origin:c}}_addCandidates(t,e,n){const{info:i}=e.component,{origin:o,objectIds:r}=i,s=i.locations,c=s.position0.getVec(e.index,this._tmpP1),a=s.position1.getVec(e.index,this._tmpP2);(0,u.g)(c,c,o),(0,u.g)(a,a,o);const h=r[s.componentIndex.get(e.index)];this._addEdgeCandidate(t,h,c,a,n),this._addVertexCandidate(t,h,c,n),this._addVertexCandidate(t,h,a,n)}_addEdgeCandidate(t,e,n,i,o){if(!t.returnEdge)return;const r=(0,d.g)(t.bounds),s=(0,h.i_)(n,i,this._tmpLineSegment),c=(0,h.C_)(s,r,this._tmpP3);(0,d.n)(t.bounds,c)&&o.push({type:"edge",objectId:e,target:(0,a.ct)(c),distance:(0,u.q)(r,c),start:(0,a.ct)(n),end:(0,a.ct)(i)})}_addVertexCandidate(t,e,n,i){if(!t.returnVertex||!(0,d.n)(t.bounds,n))return;const o=(0,d.g)(t.bounds);i.push({type:"vertex",objectId:e,target:(0,a.ct)(n),distance:(0,u.q)(o,n)})}};Z=(0,r._)([(0,c.c)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],Z);const Q=Z;class ${constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=++$.uid}}$.uid=0;class tt{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5316],{84752:(t,e,n)=>{n.d(e,{a:()=>S,b:()=>O,c:()=>g,f:()=>E,g:()=>b,j:()=>F,n:()=>B}),n(9456);var i=n(66360),o=n(53648),r=n(15008),s=n(98472),c=n(62484),u=n(74784),a=n(37008),h=n(47364),d=n(82315),l=n(90484),_=n(48880),f=n(20136);const m=g();function g(){return(0,a.Su)()}const T=u.e,p=u.e;function S(t,e){return(0,u.c)(e,t)}function O(t){return t[3]}function b(t){return t}function E(t,e,n,i){return(0,a.WK)(t,e,n,i)}function N(t,e,n){if(null==e)return!1;if(!M(t,e,R))return!1;let{t0:i,t1:o}=R;if((i<0||o<i&&o>0)&&(i=o),i<0)return!1;if(n){const{origin:t,direction:o}=e;n[0]=t[0]+o[0]*i,n[1]=t[1]+o[1]*i,n[2]=t[2]+o[2]*i}return!0}const R={t0:0,t1:0};function M(t,e,n){const{origin:i,direction:o}=e,r=A;r[0]=i[0]-t[0],r[1]=i[1]-t[1],r[2]=i[2]-t[2];const s=o[0]*o[0]+o[1]*o[1]+o[2]*o[2];if(0===s)return!1;const c=2*(o[0]*r[0]+o[1]*r[1]+o[2]*r[2]),u=c*c-4*s*(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]-t[3]*t[3]);if(u<0)return!1;const a=Math.sqrt(u);return n.t0=(-c-a)/(2*s),n.t1=(-c+a)/(2*s),!0}const A=(0,c.Su)();function F(t,e){return N(t,e,null)}function I(t,e,n){const i=f.Wq.get(),o=f.SW.get();(0,s.b)(i,e.origin,e.direction);const c=O(t);(0,s.b)(n,i,e.origin),(0,s.h)(n,n,1/(0,s.l)(n)*c);const u=x(t,e.origin),a=(0,_.i4)(e.origin,n);return(0,r.IT)(o,a+u,i),(0,s.e)(n,n,o),n}function j(t,e,n){const i=(0,s.f)(f.Wq.get(),e,t),o=(0,s.h)(f.Wq.get(),i,t[3]/(0,s.l)(i));return(0,s.g)(n,o,t)}function x(t,e){const n=(0,s.f)(f.Wq.get(),e,t),i=(0,s.l)(n),r=O(t),c=r+Math.abs(r-i);return(0,o.Uj)(r/c)}const P=(0,c.Su)();function w(t,e,n,i){const r=(0,s.f)(P,e,t);switch(n){case d.k.X:{const t=(0,o.Iv)(r,P)[2];return(0,s.s)(i,-Math.sin(t),Math.cos(t),0)}case d.k.Y:{const t=(0,o.Iv)(r,P),e=t[1],n=t[2],c=Math.sin(e);return(0,s.s)(i,-c*Math.cos(n),-c*Math.sin(n),Math.cos(e))}case d.k.Z:return(0,s.n)(i,r);default:return}}function v(t,e){const n=(0,s.f)(W,e,t);return(0,s.l)(n)-t[3]}function B(t,e){const n=(0,s.a)(t,e),i=O(t);return n<=i*i}const W=(0,c.Su)(),C=g();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:m,altitudeAt:v,angleToSilhouette:x,axisAt:w,clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,e,n){return N(t,e,n)?n:((0,l.CE)(e,t,n),j(t,n,n))},closestPointOnSilhouette:I,containsPoint:B,copy:S,create:g,distanceToSilhouette:function(t,e){const n=(0,s.f)(f.Wq.get(),e,t),i=(0,s.p)(n),o=t[3]*t[3];return Math.sqrt(Math.abs(i-o))},elevate:function(t,e,n){return t!==n&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),n[3]=t[3]+e,n},equals:p,exactEquals:T,fromCenterAndRadius:function(t,e){return(0,a.WK)(t[0],t[1],t[2],e)},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},fromValues:E,getCenter:b,getRadius:O,intersectLine:function(t,e,n){const i=(0,l.i_)(e,n);if(!M(t,i,R))return[];const{origin:o,direction:r}=i,{t0:u,t1:a}=R,d=e=>{const n=(0,c.Su)();return(0,s.r)(n,o,r,e),j(t,n,n)};return Math.abs(u-a)<(0,h.Au)()?[d(u)]:[d(u),d(a)]},intersectRay:N,intersectRayClosestSilhouette:function(t,e,n){if(N(t,e,n))return n;const i=I(t,e,f.Wq.get());return(0,s.g)(n,e.origin,(0,s.h)(f.Wq.get(),e.direction,(0,s.q)(e.origin,i)/(0,s.l)(e.direction))),n},intersectsRay:F,projectPoint:j,setAltitudeAt:function(t,e,n,i){const o=v(t,e),r=w(t,e,d.k.Z,W),c=(0,s.h)(W,r,n-o);return(0,s.g)(i,e,c)},setExtent:function(t,e,n){return i.c.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),t!==n&&S(t,n),n},tmpSphere:C,union:function(t,e,n=(0,a.Su)()){const i=(0,s.q)(t,e),o=t[3],r=e[3];return i+r<o?((0,u.c)(n,t),n):i+o<r?((0,u.c)(n,e),n):((0,s.m)(n,t,e,(i+r-o)/(2*i)),n[3]=(i+o+r)/2,n)},wrap:function(t){return t}},Symbol.toStringTag,{value:"Module"}))},52180:(t,e,n)=>{n.d(e,{o:()=>o});var i=n(52324);class o{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,i.o)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*r);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,r));t++)this._items.push(this._allocator())}}const r=1024},68612:(t,e,n)=>{function i(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,i,o,r,s,c,u){return[t,e,n,i,o,r,s,c,u]}n.d(e,{IJ:()=>r,Su:()=>i,WK:()=>o});const r=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:r,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:i,createView:function(t,e){return new Float64Array(t,e,9)},fromValues:o},Symbol.toStringTag,{value:"Module"}))},87104:(t,e,n)=>{function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{IJ:()=>r,Su:()=>i,ct:()=>o});const r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:r,clone:o,create:i,createView:function(t,e){return new Float64Array(t,e,16)},fromValues:function(t,e,n,i,o,r,s,c,u,a,h,d,l,_,f,m){return[t,e,n,i,o,r,s,c,u,a,h,d,l,_,f,m]}},Symbol.toStringTag,{value:"Module"}))},2620:(t,e,n)=>{function i(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{IJ:()=>r,Su:()=>i,ct:()=>o});const r=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:r,clone:o,create:i,createView:function(t,e){return new Float64Array(t,e,4)},fromValues:function(t,e,n,i){return[t,e,n,i]}},Symbol.toStringTag,{value:"Module"}))},82315:(t,e,n)=>{var i;n.d(e,{k:()=>i}),function(t){t[t.X=0]="X",t[t.Y=1]="Y",t[t.Z=2]="Z"}(i||(i={}))},24363:(t,e,n)=>{n.d(e,{C_:()=>h,Su:()=>u,i_:()=>a});var i=n(53648),o=n(52180),r=n(98472),s=n(62484),c=n(20136);function u(t){return t?{origin:(0,s.ct)(t.origin),vector:(0,s.ct)(t.vector)}:{origin:(0,s.Su)(),vector:(0,s.Su)()}}function a(t,e,n=u()){return(0,r.c)(n.origin,t),(0,r.f)(n.vector,e,t),n}function h(t,e,n){return function(t,e,n,o,s){const{vector:u,origin:a}=t,h=(0,r.f)(c.Wq.get(),e,a),d=(0,r.k)(u,h)/(0,r.p)(u);return(0,r.h)(s,u,(0,i.qk)(d,0,1)),(0,r.g)(s,s,t.origin)}(t,e,0,0,n)}(0,s.Su)(),(0,s.Su)(),new o.o((()=>u()))},58632:(t,e,n)=>{n.d(e,{Su:()=>r,XX:()=>c,Oq:()=>s}),n(53648);var i=n(98472),o=n(62484);function r(t=f){return[t[0],t[1],t[2],t[3]]}function s(t){return t}function c(t,e,n,o=0,s=Math.floor(n*(1/3)),f=Math.floor(n*(2/3))){if(n<3)return!1;e(a,o);let m=s,g=!1;for(;m<n-1&&!g;)e(h,m),m++,g=!(0,i.j)(a,h);if(!g)return!1;for(m=Math.max(m,f),g=!1;m<n&&!g;)e(d,m),m++,(0,i.f)(l,a,h),(0,i.n)(l,l),(0,i.f)(_,h,d),(0,i.n)(_,_),g=!(0,i.j)(a,d)&&!(0,i.j)(h,d)&&Math.abs((0,i.k)(l,_))<u;return g?(function(t,e,n,i=r()){const o=n[0]-e[0],s=n[1]-e[1],c=n[2]-e[2],u=t[0]-e[0],a=t[1]-e[1],h=t[2]-e[2],d=s*h-c*a,l=c*u-o*h,_=o*a-s*u,f=d*d+l*l+_*_,m=Math.abs(f-1)>1e-5&&f>1e-12?1/Math.sqrt(f):1;i[0]=d*m,i[1]=l*m,i[2]=_*m,i[3]=-(i[0]*t[0]+i[1]*t[1]+i[2]*t[2])}(a,h,d,t),!0):(0!==o||1!==s||2!==f)&&c(t,e,n,0,1,2)}n(74784),n(48880),n(20136),(0,o.Su)(),(0,o.Su)(),(0,o.Su)(),(0,o.Su)(),(0,o.Su)();const u=.99619469809,a=(0,o.Su)(),h=(0,o.Su)(),d=(0,o.Su)(),l=(0,o.Su)(),_=(0,o.Su)(),f=[0,0,1,0];var m,g;(g=m||(m={}))[g.NONE=0]="NONE",g[g.CLAMP=1]="CLAMP",g[g.INFINITE_MIN=4]="INFINITE_MIN",g[g.INFINITE_MAX=8]="INFINITE_MAX",m.INFINITE_MIN,m.INFINITE_MAX,m.INFINITE_MAX},90484:(t,e,n)=>{n.d(e,{CE:()=>h,Su:()=>s,em:()=>u,i_:()=>a}),n(92400);var i=n(52180),o=n(98472),r=n(62484);function s(t){return t?c((0,r.ct)(t.origin),(0,r.ct)(t.direction)):c((0,r.Su)(),(0,r.Su)())}function c(t,e){return{origin:t,direction:e}}function u(t,e){const n=d.get();return n.origin=t,n.direction=e,n}function a(t,e,n=s()){return(0,o.c)(n.origin,t),(0,o.f)(n.direction,e,t),n}function h(t,e,n){const i=(0,o.k)(t.direction,(0,o.f)(n,e,t.origin));return(0,o.g)(n,t.origin,(0,o.h)(n,t.direction,i)),n}n(20136);const d=new i.o((()=>s()))},48880:(t,e,n)=>{n.d(e,{i4:()=>s});var i=n(53648),o=n(98472),r=n(62484);function s(t,e){const n=(0,o.k)(t,e)/((0,o.l)(t)*(0,o.l)(e));return-(0,i.Uj)(n)}(0,r.Su)(),(0,r.Su)()},20136:(t,e,n)=>{n.d(e,{SW:()=>l,QX:()=>_,Wq:()=>d});var i=n(52324),o=n(68612),r=n(87104),s=n(2620),c=n(85256),u=n(62484),a=n(37008);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,i.o)((()=>this._reset())),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new h(c.Su)}static createVec3f64(){return new h(u.Su)}static createVec4f64(){return new h(a.Su)}static createMat3f64(){return new h(o.Su)}static createMat4f64(){return new h(r.Su)}static createQuatf64(){return new h(s.Su)}get test(){return{length:this._items.length}}}h.createVec2f64();const d=h.createVec3f64(),l=(h.createVec4f64(),h.createMat3f64(),h.createMat4f64()),_=h.createQuatf64()},45316:(t,e,n)=>{n.r(e),n.d(e,{default:()=>Q});var i,o,r=n(41948),s=n(10860),c=(n(66360),n(9456),n(72052),n(20744),n(12552)),u=n(98472),a=n(62484),h=n(24363),d=n(84752),l=n(69752),_=n(24680),f=n(52180),m=(n(15008),n(74784),n(37008)),g=n(90484);function T(t){return t?{ray:(0,g.Su)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,g.Su)(),c0:0,c1:Number.MAX_VALUE}}function p(t,e){for(let n=0;n<S;n++){const i=t[n];if(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]+i[3]>=e[3])return!1}return!0}new f.o((()=>T())),n(58632),n(20136),function(t){t[t.LEFT=0]="LEFT",t[t.RIGHT=1]="RIGHT",t[t.BOTTOM=2]="BOTTOM",t[t.TOP=3]="TOP",t[t.NEAR=4]="NEAR",t[t.FAR=5]="FAR"}(i||(i={})),function(t){t[t.NEAR_BOTTOM_LEFT=0]="NEAR_BOTTOM_LEFT",t[t.NEAR_BOTTOM_RIGHT=1]="NEAR_BOTTOM_RIGHT",t[t.NEAR_TOP_RIGHT=2]="NEAR_TOP_RIGHT",t[t.NEAR_TOP_LEFT=3]="NEAR_TOP_LEFT",t[t.FAR_BOTTOM_LEFT=4]="FAR_BOTTOM_LEFT",t[t.FAR_BOTTOM_RIGHT=5]="FAR_BOTTOM_RIGHT",t[t.FAR_TOP_RIGHT=6]="FAR_TOP_RIGHT",t[t.FAR_TOP_LEFT=7]="FAR_TOP_LEFT"}(o||(o={})),o.FAR_BOTTOM_RIGHT,o.NEAR_BOTTOM_RIGHT,o.NEAR_BOTTOM_LEFT,o.FAR_BOTTOM_LEFT,o.NEAR_BOTTOM_LEFT,o.NEAR_BOTTOM_RIGHT,o.NEAR_TOP_RIGHT,o.NEAR_TOP_LEFT,o.FAR_BOTTOM_RIGHT,o.FAR_BOTTOM_LEFT,o.FAR_TOP_LEFT,o.FAR_TOP_RIGHT,o.NEAR_BOTTOM_RIGHT,o.FAR_BOTTOM_RIGHT,o.FAR_TOP_RIGHT,o.NEAR_TOP_RIGHT,o.FAR_BOTTOM_LEFT,o.NEAR_BOTTOM_LEFT,o.NEAR_TOP_LEFT,o.FAR_TOP_LEFT,o.FAR_TOP_LEFT,o.NEAR_TOP_LEFT,o.NEAR_TOP_RIGHT,o.FAR_TOP_RIGHT;const S=6;(0,m.WK)(-1,-1,-1,1),(0,m.WK)(1,-1,-1,1),(0,m.WK)(1,1,-1,1),(0,m.WK)(-1,1,-1,1),(0,m.WK)(-1,-1,1,1),(0,m.WK)(1,-1,1,1),(0,m.WK)(1,1,1,1),(0,m.WK)(-1,1,1,1),new f.o(T),(0,a.Su)(),(0,a.Su)(),(0,a.Su)(),(0,a.Su)(),(0,a.Su)(),(0,a.Su)(),(0,a.Su)(),(0,a.Su)();var O,b,E=n(90736);class N{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,e){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new R,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}destroy(){this._degenerateObjects.clear(),R.clearPool(),W[0]=null,q.prune(),G.prune()}add(t,e=t.length){this._objectCount+=e,this._grow(t,e);const n=R.acquire();for(let i=0;i<e;i++){const e=t[i];this._isDegenerate(e)?this._degenerateObjects.add(e):(n.init(this._root),this._add(e,n))}R.release(n)}remove(t,e=null){this._objectCount-=t.length;const n=R.acquire();for(const i of t){const t=e??(0,d.a)(this.objectToBoundingSphere(i),K);P(t[3])?(n.init(this._root),this._remove(i,t,n)):this._degenerateObjects.delete(i)}R.release(n),this._shrink()}update(t,e){if(!P(e[3])&&this._isDegenerate(t))return;const n=function(t){return W[0]=t,W}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){const i=(0,g.em)(t,e);this._forEachNode(this._root,(t=>{if(!this._intersectsNode(i,t))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObject(i,t)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObject(i,t)&&n(t)})),!0}))}forEachAlongRayWithVerticalOffset(t,e,n,i){const o=(0,g.em)(t,e);this._forEachNode(this._root,(t=>{if(!this._intersectsNodeWithOffset(o,t,i))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObjectWithOffset(o,t,i)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObjectWithOffset(o,t,i)&&n(t)})),!0}))}forEach(t){this._forEachNode(this._root,(e=>{const n=e.node;return n.terminals.forAll(t),null!==n.residents&&n.residents.forAll(t),!0})),this._degenerateObjects.forEach(t)}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}findClosest(t,e,n,i=(()=>!0),o=1/0){let r=1/0,s=1/0,c=null;const a=j(t,e),h=u=>{if(--o,!i(u))return;const a=this.objectToBoundingSphere(u);if(!p(n,a))return;const h=x(t,e,(0,d.g)(a)),l=h-a[3],_=h+a[3];l<r&&(r=l,s=_,c=u)};return this._forEachNodeDepthOrdered(this._root,(i=>{if(o<=0||!p(n,i.bounds))return!1;if((0,u.h)(L,a,i.halfSize),(0,u.g)(L,L,(0,d.g)(i.bounds)),x(t,e,L)>s)return!1;const r=i.node;return r.terminals.forAll((t=>h(t))),null!==r.residents&&r.residents.forAll((t=>h(t))),!0}),t,e),c}forEachInDepthRange(t,e,n,i,o,r,s){let c=-1/0,a=1/0;const h={setRange:t=>{n===N.DepthOrder.FRONT_TO_BACK?(c=Math.max(c,t.near),a=Math.min(a,t.far)):(c=Math.max(c,-t.far),a=Math.min(a,-t.near))}};h.setRange(i);const l=x(e,n,t),_=j(e,n),f=j(e,-n),m=t=>{if(!s(t))return;const i=this.objectToBoundingSphere(t),u=(0,d.g)(i),_=x(e,n,u)-l,f=_-i[3],m=_+i[3];f>a||m<c||!p(r,i)||o(t,h)};this._forEachNodeDepthOrdered(this._root,(t=>{if(!p(r,t.bounds))return!1;if((0,u.h)(L,_,t.halfSize),(0,u.g)(L,L,(0,d.g)(t.bounds)),x(e,n,L)-l>a)return!1;if((0,u.h)(L,f,t.halfSize),(0,u.g)(L,L,(0,d.g)(t.bounds)),x(e,n,L)-l<c)return!1;const i=t.node;return i.terminals.forAll((t=>m(t))),null!==i.residents&&i.residents.forAll((t=>m(t))),!0}),e,n)}forEachNode(t){this._forEachNode(this._root,(e=>t(e.node,e.bounds,e.halfSize,e.depth)))}forEachNeighbor(t,e){const n=(0,d.b)(e),i=(0,d.g)(e),o=e=>{const o=this.objectToBoundingSphere(e),r=(0,d.b)(o),s=n+r;return!((0,u.a)((0,d.g)(o),i)-s*s<=0)||t(e)};let r=!0;const s=t=>{r&&(r=o(t))};this._forEachNode(this._root,(t=>{const e=(0,d.b)(t.bounds),o=n+e;if((0,u.a)((0,d.g)(t.bounds),i)-o*o>0)return!1;const c=t.node;return c.terminals.forAll(s),r&&null!==c.residents&&c.residents.forAll(s),r})),r&&this.forEachDegenerateObject(s)}_intersectsNode(t,e){return F((0,d.g)(e.bounds),2*-e.halfSize,y),F((0,d.g)(e.bounds),2*e.halfSize,z),(0,E.If)(t.origin,t.direction,y,z)}_intersectsNodeWithOffset(t,e,n){return F((0,d.g)(e.bounds),2*-e.halfSize,y),F((0,d.g)(e.bounds),2*e.halfSize,z),n.applyToMinMax(y,z),(0,E.If)(t.origin,t.direction,y,z)}_intersectsObject(t,e){const n=this.objectToBoundingSphere(e);return!(n[3]>0)||(0,d.j)(n,t)}_intersectsObjectWithOffset(t,e,n){const i=this.objectToBoundingSphere(e);return!(i[3]>0)||(0,d.j)(n.applyToBoundingSphere(i),t)}_forEachNode(t,e){let n=R.acquire().init(t);const i=[n];for(;0!==i.length;){if(n=i.pop(),e(n)&&!n.isLeaf())for(let t=0;t<n.node.children.length;t++)n.node.children[t]&&i.push(R.acquire().init(n).advance(t));R.release(n)}}_forEachNodeDepthOrdered(t,e,n,i=N.DepthOrder.FRONT_TO_BACK){let o=R.acquire().init(t);const r=[o];for(function(t,e,n){if(!G.length)for(let t=0;t<8;++t)G.push({index:0,distance:0});for(let n=0;n<8;++n){const i=w[n];G.data[n].index=n,G.data[n].distance=x(t,e,i)}G.sort(((t,e)=>t.distance-e.distance));for(let t=0;t<8;++t)n[t]=G.data[t].index}(n,i,X);0!==r.length;){if(o=r.pop(),e(o)&&!o.isLeaf())for(let t=7;t>=0;--t){const e=X[t];o.node.children[e]&&r.push(R.acquire().init(o).advance(e))}R.release(o)}}_remove(t,e,n){q.clear();const i=n.advanceTo(e,((t,e)=>{q.push(t.node),q.push(e)}))?n.node.terminals:n.node.residents;if(i.removeUnordered(t),0===i.length)for(let t=q.length-2;t>=0;t-=2){const e=q.data[t],n=q.data[t+1];if(!this._purge(e,n))break}}_nodeIsEmpty(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let e=0;e<t.children.length;e++)if(t.children[e])return!1;return!0}_purge(t,e){return e>=0&&(t.children[e]=null),!!this._nodeIsEmpty(t)&&(null===t.residents&&(t.residents=new _.c({shrink:!0})),!0)}_add(t,e){e.advanceTo(this.objectToBoundingSphere(t))?e.node.terminals.push(t):(e.node.residents.push(t),e.node.residents.length>this._maximumObjectsPerNode&&e.depth<this._maximumDepth&&this._split(e))}_split(t){const e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){const i=R.acquire().init(t);this._add(e.at(n),i),R.release(i)}}_grow(t,e){if(0!==e&&(I(t,e,(t=>this.objectToBoundingSphere(t)),D),P(D[3])&&!this._fitsInsideTree(D)))if(this._nodeIsEmpty(this._root.node))(0,d.a)(D,this._root.bounds),this._root.halfSize=1.25*this._root.bounds[3],this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(D);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(D,t):this._growRootAsSubNode(t),R.release(t)}}_rebuildTree(t,e){(0,u.c)((0,d.g)(H),(0,d.g)(e.bounds)),H[3]=e.halfSize,I([t,H],2,(t=>t),V);const n=R.acquire().init(this._root);this._root.initFrom(null,V,V[3]),this._root.increaseHalfSize(1.25),this._forEachNode(n,(t=>(this.add(t.node.terminals.data,t.node.terminals.length),null!==t.node.residents&&this.add(t.node.residents.data,t.node.residents.length),!0))),R.release(n)}_placingRootViolatesMaxDepth(t){const e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let n=0;return this._forEachNode(this._root,(t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth))),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const e=t[3],n=t;let i=-1/0;const o=this._root.bounds,r=this._root.halfSize;for(let t=0;t<3;t++){const s=o[t]-r-(n[t]-e),c=n[t]+e-(o[t]+r),u=Math.max(0,Math.ceil(s/(2*r))),a=Math.max(0,Math.ceil(c/(2*r)))+1,h=2**Math.ceil(Math.log(u+a)*Math.LOG2E);i=Math.max(i,h),k[t].min=u,k[t].max=a}for(let t=0;t<3;t++){let e=k[t].min,n=k[t].max;const s=(i-(e+n))/2;e+=Math.ceil(s),n+=Math.floor(s);const c=o[t]-r-e*r*2;C[t]=c+(n+e)*r}const s=i*r;return C[3]=s*B,R.acquire().initFrom(null,C,s,0)}_growRootAsSubNode(t){const e=this._root.node;(0,u.c)((0,d.g)(D),(0,d.g)(this._root.bounds)),D[3]=this._root.halfSize,this._root.init(t),t.advanceTo(D,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const e=this._root.node.children;let n=0,i=0;for(;i<e.length&&null==t;)n=i++,t=e[n];for(;i<e.length;)if(e[i++])return-1;return n}_isDegenerate(t){return!P(this.objectToBoundingSphere(t)[3])}_fitsInsideTree(t){const e=this._root.bounds,n=this._root.halfSize;return t[3]<=n&&t[0]>=e[0]-n&&t[0]<=e[0]+n&&t[1]>=e[1]-n&&t[1]<=e[1]+n&&t[2]>=e[2]-n&&t[2]<=e[2]+n}toJSON(){const{maximumDepth:t,maximumObjectsPerNode:e,_objectCount:n}=this,i=this._nodeToJSON(this._root.node);return{maximumDepth:t,maximumObjectsPerNode:e,objectCount:n,root:{bounds:this._root.bounds,halfSize:this._root.halfSize,depth:this._root.depth,node:i}}}_nodeToJSON(t){const e=t.children.map((t=>t?this._nodeToJSON(t):null)),n=t.residents?.map((t=>this.objectToBoundingSphere(t))),i=t.terminals?.map((t=>this.objectToBoundingSphere(t)));return{children:e,residents:n,terminals:i}}static fromJSON(t){const e=new N((t=>t),{maximumDepth:t.maximumDepth,maximumObjectsPerNode:t.maximumObjectsPerNode});return e._objectCount=t.objectCount,e._root.initFrom(t.root.node,t.root.bounds,t.root.halfSize,t.root.depth),e}}class R{constructor(){this.bounds=(0,d.c)(),this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,e,n,i=this.depth){return this.node=null!=t?t:R.createEmptyNode(),e&&(0,d.a)(e,this.bounds),this.halfSize=n,this.depth=i,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds[3]=this.halfSize*B}advance(t){let e=this.node.children[t];e||(e=R.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;const n=w[t];return this.bounds[0]+=n[0]*this.halfSize,this.bounds[1]+=n[1]*this.halfSize,this.bounds[2]+=n[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e&&e(this,-1),!0;if(this.isLeaf()){if(!n)return e&&e(this,-1),!1;this.node.residents=null}const i=this._childIndex(t);e&&e(this,i),this.advance(i)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t[3]>this.halfSize/2}_childIndex(t){const e=this.bounds;return(e[0]<t[0]?1:0)+(e[1]<t[1]?2:0)+(e[2]<t[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new _.c({shrink:!0}),residents:new _.c({shrink:!0})}}static acquire(){return R._pool.acquire()}static release(t){R._pool.release(t)}static clearPool(){R._pool.prune()}}function M(t,e){t[0]=Math.min(t[0],e[0]-e[3]),t[1]=Math.min(t[1],e[1]-e[3]),t[2]=Math.min(t[2],e[2]-e[3])}function A(t,e){t[0]=Math.max(t[0],e[0]+e[3]),t[1]=Math.max(t[1],e[1]+e[3]),t[2]=Math.max(t[2],e[2]+e[3])}function F(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function I(t,e,n,i){if(1===e){const e=n(t[0]);(0,d.a)(e,i)}else{y[0]=1/0,y[1]=1/0,y[2]=1/0,z[0]=-1/0,z[1]=-1/0,z[2]=-1/0;for(let i=0;i<e;i++){const e=n(t[i]);P(e[3])&&(M(y,e),A(z,e))}(0,u.m)((0,d.g)(i),y,z,.5),i[3]=Math.max(z[0]-y[0],z[1]-y[1],z[2]-y[2])/2}}function j(t,e){let n,i=1/0;for(let o=0;o<8;++o){const r=x(t,e,v[o]);r<i&&(i=r,n=v[o])}return n}function x(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function P(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}R._pool=new l.c(R),O=N||(N={}),(b=O.DepthOrder||(O.DepthOrder={}))[b.FRONT_TO_BACK=1]="FRONT_TO_BACK",b[b.BACK_TO_FRONT=-1]="BACK_TO_FRONT";const w=[(0,a.WK)(-1,-1,-1),(0,a.WK)(1,-1,-1),(0,a.WK)(-1,1,-1),(0,a.WK)(1,1,-1),(0,a.WK)(-1,-1,1),(0,a.WK)(1,-1,1),(0,a.WK)(-1,1,1),(0,a.WK)(1,1,1)],v=[(0,a.WK)(-1,-1,-1),(0,a.WK)(-1,-1,1),(0,a.WK)(-1,1,-1),(0,a.WK)(-1,1,1),(0,a.WK)(1,-1,-1),(0,a.WK)(1,-1,1),(0,a.WK)(1,1,-1),(0,a.WK)(1,1,1)],B=Math.sqrt(3),W=[null],C=(0,d.c)(),L=(0,a.Su)(),y=(0,a.Su)(),z=(0,a.Su)(),q=new _.c,K=(0,d.c)(),D=(0,d.c)(),H=(0,d.c)(),V=(0,d.c)(),k=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],G=new _.c,X=[0,0,0,0,0,0,0,0],J=N;var Y=n(75980);function U(t,e,n){const i=(0,d.c)(),o=(0,d.g)(i);return(0,u.r)(o,o,t,.5),(0,u.r)(o,o,e,.5),i[3]=(0,u.q)(o,t),(0,u.g)(o,o,n),i}let Z=class{constructor(){this._idToComponent=new Map,this._components=new J((t=>t.bounds)),this._edges=new J((t=>t.bounds)),this._tmpLineSegment=(0,h.Su)(),this._tmpP1=(0,a.Su)(),this._tmpP2=(0,a.Su)(),this._tmpP3=(0,a.Su)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,s.wp)(e),await this._ensureEdgeLocations(t,e);const n=[];return this._edges.forEachNeighbor((e=>(this._addCandidates(t,e,n),n.length<1e3)),t.bounds),{result:{candidates:n}}}async _ensureEdgeLocations(t,e){const n=[];if(this._components.forEachNeighbor((t=>{if(null==t.info){const{id:e,uid:i}=t;n.push({id:e,uid:i})}return!0}),t.bounds),!n.length)return;const i={components:n},o=await this.remoteClient.invoke("fetchAllEdgeLocations",i,e??{});for(const t of o.components)this._setFetchEdgeLocations(t)}async add(t){const e=new $(t.id,t.bounds);return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){const e=this._idToComponent.get(t.id);if(e){const t=[];this._edges.forEachNeighbor((n=>(n.component===e&&t.push(n),!0)),e.bounds),this._edges.remove(t),this._components.remove([e]),this._idToComponent.delete(e.id)}return{result:{}}}_setFetchEdgeLocations(t){const e=this._idToComponent.get(t.id);if(null==e||t.uid!==e.uid)return;const n=Y.or.createView(t.locations),i=new Array(n.count),o=(0,a.Su)(),r=(0,a.Su)();for(let s=0;s<n.count;s++){n.position0.getVec(s,o),n.position1.getVec(s,r);const c=U(o,r,t.origin),u=new tt(e,s,c);i[s]=u}this._edges.add(i);const{objectIds:s,origin:c}=t;e.info={locations:n,objectIds:s,origin:c}}_addCandidates(t,e,n){const{info:i}=e.component,{origin:o,objectIds:r}=i,s=i.locations,c=s.position0.getVec(e.index,this._tmpP1),a=s.position1.getVec(e.index,this._tmpP2);(0,u.g)(c,c,o),(0,u.g)(a,a,o);const h=r[s.componentIndex.get(e.index)];this._addEdgeCandidate(t,h,c,a,n),this._addVertexCandidate(t,h,c,n),this._addVertexCandidate(t,h,a,n)}_addEdgeCandidate(t,e,n,i,o){if(!t.returnEdge)return;const r=(0,d.g)(t.bounds),s=(0,h.i_)(n,i,this._tmpLineSegment),c=(0,h.C_)(s,r,this._tmpP3);(0,d.n)(t.bounds,c)&&o.push({type:"edge",objectId:e,target:(0,a.ct)(c),distance:(0,u.q)(r,c),start:(0,a.ct)(n),end:(0,a.ct)(i)})}_addVertexCandidate(t,e,n,i){if(!t.returnVertex||!(0,d.n)(t.bounds,n))return;const o=(0,d.g)(t.bounds);i.push({type:"vertex",objectId:e,target:(0,a.ct)(n),distance:(0,u.q)(o,n)})}};Z=(0,r._)([(0,c.c)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],Z);const Q=Z;class ${constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=++$.uid}}$.uid=0;class tt{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2208],{74784:(t,n,e)=>{e.d(n,{a:()=>y,c:()=>a,d:()=>f,e:()=>w,g:()=>i,h:()=>p,i:()=>d,j:()=>M,l:()=>m,n:()=>g,s:()=>u,t:()=>b});var r=e(47364);function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function u(t,n,e,r,a){return t[0]=n,t[1]=e,t[2]=r,t[3]=a,t}function i(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function o(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}function s(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t[3]=n[3]*e[3],t}function c(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t[3]=n[3]/e[3],t}function f(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t}function l(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2],u=n[3]-t[3];return Math.sqrt(e*e+r*r+a*a+u*u)}function h(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2],u=n[3]-t[3];return e*e+r*r+a*a+u*u}function d(t){const n=t[0],e=t[1],r=t[2],a=t[3];return Math.sqrt(n*n+e*e+r*r+a*a)}function M(t){const n=t[0],e=t[1],r=t[2],a=t[3];return n*n+e*e+r*r+a*a}function g(t,n){const e=n[0],r=n[1],a=n[2],u=n[3];let i=e*e+r*r+a*a+u*u;return i>0&&(i=1/Math.sqrt(i),t[0]=e*i,t[1]=r*i,t[2]=a*i,t[3]=u*i),t}function p(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function m(t,n,e,r){const a=n[0],u=n[1],i=n[2],o=n[3];return t[0]=a+r*(e[0]-a),t[1]=u+r*(e[1]-u),t[2]=i+r*(e[2]-i),t[3]=o+r*(e[3]-o),t}function b(t,n,e){const r=n[0],a=n[1],u=n[2],i=n[3];return t[0]=e[0]*r+e[4]*a+e[8]*u+e[12]*i,t[1]=e[1]*r+e[5]*a+e[9]*u+e[13]*i,t[2]=e[2]*r+e[6]*a+e[10]*u+e[14]*i,t[3]=e[3]*r+e[7]*a+e[11]*u+e[15]*i,t}function y(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function w(t,n){const e=t[0],a=t[1],u=t[2],i=t[3],o=n[0],s=n[1],c=n[2],f=n[3],l=(0,r.Au)();return Math.abs(e-o)<=l*Math.max(1,Math.abs(e),Math.abs(o))&&Math.abs(a-s)<=l*Math.max(1,Math.abs(a),Math.abs(s))&&Math.abs(u-c)<=l*Math.max(1,Math.abs(u),Math.abs(c))&&Math.abs(i-f)<=l*Math.max(1,Math.abs(i),Math.abs(f))}const x=o,I=s,L=c,D=l,_=h,q=d,v=M;Object.freeze(Object.defineProperty({__proto__:null,add:i,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:a,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:D,distance:l,div:L,divide:c,dot:p,equals:w,exactEquals:y,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:q,length:d,lerp:m,max:function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t},min:function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t},mul:I,multiply:s,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:g,random:function(t,n){const e=r.QR;let a,u,i,o,s,c;n=n||1;do{a=2*e()-1,u=2*e()-1,s=a*a+u*u}while(s>=1);do{i=2*e()-1,o=2*e()-1,c=i*i+o*o}while(c>=1);const f=Math.sqrt((1-s)/c);return t[0]=n*a,t[1]=n*u,t[2]=n*i*f,t[3]=n*o*f,t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t},scale:f,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t},set:u,sqrDist:_,sqrLen:v,squaredDistance:h,squaredLength:M,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:x,subtract:o,transformMat4:b,transformQuat:function(t,n,e){const r=n[0],a=n[1],u=n[2],i=e[0],o=e[1],s=e[2],c=e[3],f=c*r+o*u-s*a,l=c*a+s*r-i*u,h=c*u+i*a-o*r,d=-i*r-o*a-s*u;return t[0]=f*c+d*-i+l*-s-h*-o,t[1]=l*c+d*-o+h*-i-f*-s,t[2]=h*c+d*-s+f*-o-l*-i,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},37008:(t,n,e)=>{function r(){return[0,0,0,0]}function a(t,n,e,r){return[t,n,e,r]}function u(){return a(1,1,1,1)}function i(){return a(1,0,0,0)}function o(){return a(0,1,0,0)}function s(){return a(0,0,1,0)}function c(){return a(0,0,0,1)}e.d(n,{Su:()=>r,WK:()=>a});const f=u(),l=i(),h=o(),d=s(),M=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:M,UNIT_X:l,UNIT_Y:h,UNIT_Z:d,ZEROS:[0,0,0,0],clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,createView:function(t,n){return new Float64Array(t,n,4)},fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:a,ones:u,unitW:c,unitX:i,unitY:o,unitZ:s,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},98204:(t,n,e)=>{e.r(n),e.d(n,{default:()=>s});var r=e(72364);function a(t,n){return n.push(t.buffer),{buffer:t.buffer,layout:new r.U1(t.layout)}}var u=e(80036),i=e(79968),o=e(75980);class s{async extract(t){const n=c(t),e=(0,o.Aj)(n),r=[n.data.buffer];return{result:f(e,r),transferList:r}}async extractComponentsEdgeLocations(t){const n=c(t),e=(0,o.In)(n.data,n.skipDeduplicate,n.indices,n.indicesLength),r=[];return{result:a((0,i.k)(e,h,d).regular.instancesData,r),transferList:r}}async extractEdgeLocations(t){const n=c(t),e=(0,o.In)(n.data,n.skipDeduplicate,n.indices,n.indicesLength),r=[];return{result:a((0,i.k)(e,l,d).regular.instancesData,r),transferList:r}}}function c(t){return{data:u.If.createView(t.dataBuffer),indices:"Uint32Array"===t.indicesType?new Uint32Array(t.indices):"Uint16Array"===t.indicesType?new Uint16Array(t.indices):t.indices,indicesLength:t.indicesLength,writerSettings:t.writerSettings,skipDeduplicate:t.skipDeduplicate}}function f(t,n){return n.push(t.regular.lodInfo.lengths.buffer),n.push(t.silhouette.lodInfo.lengths.buffer),{regular:{instancesData:a(t.regular.instancesData,n),lodInfo:{lengths:t.regular.lodInfo.lengths.buffer}},silhouette:{instancesData:a(t.silhouette.instancesData,n),lodInfo:{lengths:t.silhouette.lodInfo.lengths.buffer}},averageEdgeLength:t.averageEdgeLength}}const l=new class{allocate(t){return o.qu.createBuffer(t)}trim(t,n){return t.slice(0,n)}write(t,n,e){t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1)}},h=new class{allocate(t){return o.or.createBuffer(t)}trim(t,n){return t.slice(0,n)}write(t,n,e){t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1),t.componentIndex.set(n,e.componentIndex)}},d={allocate:()=>null,write:()=>{},trim:()=>null}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2208],{74784:(t,n,e)=>{e.d(n,{a:()=>y,b:()=>f,c:()=>a,e:()=>w,f:()=>i,g:()=>p,i:()=>d,j:()=>M,l:()=>m,n:()=>g,s:()=>u,t:()=>b});var r=e(47364);function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function u(t,n,e,r,a){return t[0]=n,t[1]=e,t[2]=r,t[3]=a,t}function i(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function o(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}function s(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t[3]=n[3]*e[3],t}function c(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t[3]=n[3]/e[3],t}function f(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t}function l(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2],u=n[3]-t[3];return Math.sqrt(e*e+r*r+a*a+u*u)}function h(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2],u=n[3]-t[3];return e*e+r*r+a*a+u*u}function d(t){const n=t[0],e=t[1],r=t[2],a=t[3];return Math.sqrt(n*n+e*e+r*r+a*a)}function M(t){const n=t[0],e=t[1],r=t[2],a=t[3];return n*n+e*e+r*r+a*a}function g(t,n){const e=n[0],r=n[1],a=n[2],u=n[3];let i=e*e+r*r+a*a+u*u;return i>0&&(i=1/Math.sqrt(i),t[0]=e*i,t[1]=r*i,t[2]=a*i,t[3]=u*i),t}function p(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function m(t,n,e,r){const a=n[0],u=n[1],i=n[2],o=n[3];return t[0]=a+r*(e[0]-a),t[1]=u+r*(e[1]-u),t[2]=i+r*(e[2]-i),t[3]=o+r*(e[3]-o),t}function b(t,n,e){const r=n[0],a=n[1],u=n[2],i=n[3];return t[0]=e[0]*r+e[4]*a+e[8]*u+e[12]*i,t[1]=e[1]*r+e[5]*a+e[9]*u+e[13]*i,t[2]=e[2]*r+e[6]*a+e[10]*u+e[14]*i,t[3]=e[3]*r+e[7]*a+e[11]*u+e[15]*i,t}function y(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function w(t,n){const e=t[0],a=t[1],u=t[2],i=t[3],o=n[0],s=n[1],c=n[2],f=n[3],l=(0,r.Au)();return Math.abs(e-o)<=l*Math.max(1,Math.abs(e),Math.abs(o))&&Math.abs(a-s)<=l*Math.max(1,Math.abs(a),Math.abs(s))&&Math.abs(u-c)<=l*Math.max(1,Math.abs(u),Math.abs(c))&&Math.abs(i-f)<=l*Math.max(1,Math.abs(i),Math.abs(f))}const x=o,I=s,L=c,D=l,_=h,q=d,v=M;Object.freeze(Object.defineProperty({__proto__:null,add:i,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:a,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:D,distance:l,div:L,divide:c,dot:p,equals:w,exactEquals:y,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:q,length:d,lerp:m,max:function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t},min:function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t},mul:I,multiply:s,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:g,random:function(t,n){const e=r.QR;let a,u,i,o,s,c;n=n||1;do{a=2*e()-1,u=2*e()-1,s=a*a+u*u}while(s>=1);do{i=2*e()-1,o=2*e()-1,c=i*i+o*o}while(c>=1);const f=Math.sqrt((1-s)/c);return t[0]=n*a,t[1]=n*u,t[2]=n*i*f,t[3]=n*o*f,t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t},scale:f,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t},set:u,sqrDist:_,sqrLen:v,squaredDistance:h,squaredLength:M,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:x,subtract:o,transformMat4:b,transformQuat:function(t,n,e){const r=n[0],a=n[1],u=n[2],i=e[0],o=e[1],s=e[2],c=e[3],f=c*r+o*u-s*a,l=c*a+s*r-i*u,h=c*u+i*a-o*r,d=-i*r-o*a-s*u;return t[0]=f*c+d*-i+l*-s-h*-o,t[1]=l*c+d*-o+h*-i-f*-s,t[2]=h*c+d*-s+f*-o-l*-i,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},37008:(t,n,e)=>{function r(){return[0,0,0,0]}function a(t,n,e,r){return[t,n,e,r]}function u(){return a(1,1,1,1)}function i(){return a(1,0,0,0)}function o(){return a(0,1,0,0)}function s(){return a(0,0,1,0)}function c(){return a(0,0,0,1)}e.d(n,{Su:()=>r,WK:()=>a});const f=u(),l=i(),h=o(),d=s(),M=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:M,UNIT_X:l,UNIT_Y:h,UNIT_Z:d,ZEROS:[0,0,0,0],clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,createView:function(t,n){return new Float64Array(t,n,4)},fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:a,ones:u,unitW:c,unitX:i,unitY:o,unitZ:s,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},98204:(t,n,e)=>{e.r(n),e.d(n,{default:()=>s});var r=e(72364);function a(t,n){return n.push(t.buffer),{buffer:t.buffer,layout:new r.U1(t.layout)}}var u=e(80036),i=e(79968),o=e(75980);class s{async extract(t){const n=c(t),e=(0,o.Aj)(n),r=[n.data.buffer];return{result:f(e,r),transferList:r}}async extractComponentsEdgeLocations(t){const n=c(t),e=(0,o.In)(n.data,n.skipDeduplicate,n.indices,n.indicesLength),r=[];return{result:a((0,i.k)(e,h,d).regular.instancesData,r),transferList:r}}async extractEdgeLocations(t){const n=c(t),e=(0,o.In)(n.data,n.skipDeduplicate,n.indices,n.indicesLength),r=[];return{result:a((0,i.k)(e,l,d).regular.instancesData,r),transferList:r}}}function c(t){return{data:u.If.createView(t.dataBuffer),indices:"Uint32Array"===t.indicesType?new Uint32Array(t.indices):"Uint16Array"===t.indicesType?new Uint16Array(t.indices):t.indices,indicesLength:t.indicesLength,writerSettings:t.writerSettings,skipDeduplicate:t.skipDeduplicate}}function f(t,n){return n.push(t.regular.lodInfo.lengths.buffer),n.push(t.silhouette.lodInfo.lengths.buffer),{regular:{instancesData:a(t.regular.instancesData,n),lodInfo:{lengths:t.regular.lodInfo.lengths.buffer}},silhouette:{instancesData:a(t.silhouette.instancesData,n),lodInfo:{lengths:t.silhouette.lodInfo.lengths.buffer}},averageEdgeLength:t.averageEdgeLength}}const l=new class{allocate(t){return o.qu.createBuffer(t)}trim(t,n){return t.slice(0,n)}write(t,n,e){t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1)}},h=new class{allocate(t){return o.or.createBuffer(t)}trim(t,n){return t.slice(0,n)}write(t,n,e){t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1),t.componentIndex.set(n,e.componentIndex)}},d={allocate:()=>null,write:()=>{},trim:()=>null}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9420],{84752:(e,t,n)=>{n.d(t,{a:()=>v,c:()=>_,d:()=>m,f:()=>q,g:()=>T,i:()=>N,n:()=>j}),n(9456);var r=n(66360),i=n(53648),o=n(15008),s=n(98472),l=n(62484),u=n(74784),a=n(37008),c=n(47364),d=n(82315),p=n(90484),h=n(48880),y=n(20136);const g=m();function m(){return(0,a.Su)()}const f=u.e,S=u.e;function _(e,t){return(0,u.c)(t,e)}function v(e){return e[3]}function T(e){return e}function q(e,t,n,r){return(0,a.WK)(e,t,n,r)}function b(e,t,n){if(null==t)return!1;if(!I(e,t,E))return!1;let{t0:r,t1:i}=E;if((r<0||i<r&&i>0)&&(r=i),r<0)return!1;if(n){const{origin:e,direction:i}=t;n[0]=e[0]+i[0]*r,n[1]=e[1]+i[1]*r,n[2]=e[2]+i[2]*r}return!0}const E={t0:0,t1:0};function I(e,t,n){const{origin:r,direction:i}=t,o=w;o[0]=r[0]-e[0],o[1]=r[1]-e[1],o[2]=r[2]-e[2];const s=i[0]*i[0]+i[1]*i[1]+i[2]*i[2];if(0===s)return!1;const l=2*(i[0]*o[0]+i[1]*o[1]+i[2]*o[2]),u=l*l-4*s*(o[0]*o[0]+o[1]*o[1]+o[2]*o[2]-e[3]*e[3]);if(u<0)return!1;const a=Math.sqrt(u);return n.t0=(-l-a)/(2*s),n.t1=(-l+a)/(2*s),!0}const w=(0,l.Su)();function N(e,t){return b(e,t,null)}function V(e,t,n){const r=y.Wq.get(),i=y.SW.get();(0,s.b)(r,t.origin,t.direction);const l=v(e);(0,s.b)(n,r,t.origin),(0,s.h)(n,n,1/(0,s.l)(n)*l);const u=R(e,t.origin),a=(0,h.i4)(t.origin,n);return(0,o.IT)(i,a+u,r),(0,s.e)(n,n,i),n}function O(e,t,n){const r=(0,s.f)(y.Wq.get(),t,e),i=(0,s.h)(y.Wq.get(),r,e[3]/(0,s.l)(r));return(0,s.g)(n,i,e)}function R(e,t){const n=(0,s.f)(y.Wq.get(),t,e),r=(0,s.l)(n),o=v(e),l=o+Math.abs(o-r);return(0,i.Uj)(o/l)}const M=(0,l.Su)();function P(e,t,n,r){const o=(0,s.f)(M,t,e);switch(n){case d.k.X:{const e=(0,i.Iv)(o,M)[2];return(0,s.s)(r,-Math.sin(e),Math.cos(e),0)}case d.k.Y:{const e=(0,i.Iv)(o,M),t=e[1],n=e[2],l=Math.sin(t);return(0,s.s)(r,-l*Math.cos(n),-l*Math.sin(n),Math.cos(t))}case d.k.Z:return(0,s.n)(r,o);default:return}}function x(e,t){const n=(0,s.f)(C,t,e);return(0,s.l)(n)-e[3]}function j(e,t){const n=(0,s.a)(e,t),r=v(e);return n<=r*r}const C=(0,l.Su)(),D=m();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:g,altitudeAt:x,angleToSilhouette:R,axisAt:P,clear:function(e){e[0]=e[1]=e[2]=e[3]=0},closestPoint:function(e,t,n){return b(e,t,n)?n:((0,p.CE)(t,e,n),O(e,n,n))},closestPointOnSilhouette:V,containsPoint:j,copy:_,create:m,distanceToSilhouette:function(e,t){const n=(0,s.f)(y.Wq.get(),t,e),r=(0,s.p)(n),i=e[3]*e[3];return Math.sqrt(Math.abs(r-i))},elevate:function(e,t,n){return e!==n&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),n[3]=e[3]+t,n},equals:S,exactEquals:f,fromCenterAndRadius:function(e,t){return(0,a.WK)(e[0],e[1],e[2],t)},fromRadius:function(e,t){return e[0]=e[1]=e[2]=0,e[3]=t,e},fromValues:q,getCenter:T,getRadius:v,intersectLine:function(e,t,n){const r=(0,p.i_)(t,n);if(!I(e,r,E))return[];const{origin:i,direction:o}=r,{t0:u,t1:a}=E,d=t=>{const n=(0,l.Su)();return(0,s.r)(n,i,o,t),O(e,n,n)};return Math.abs(u-a)<(0,c.Au)()?[d(u)]:[d(u),d(a)]},intersectRay:b,intersectRayClosestSilhouette:function(e,t,n){if(b(e,t,n))return n;const r=V(e,t,y.Wq.get());return(0,s.g)(n,t.origin,(0,s.h)(y.Wq.get(),t.direction,(0,s.q)(t.origin,r)/(0,s.l)(t.direction))),n},intersectsRay:N,projectPoint:O,setAltitudeAt:function(e,t,n,r){const i=x(e,t),o=P(e,t,d.k.Z,C),l=(0,s.h)(C,o,n-i);return(0,s.g)(r,t,l)},setExtent:function(e,t,n){return r.c.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),e!==n&&_(e,n),n},tmpSphere:D,union:function(e,t,n=(0,a.Su)()){const r=(0,s.q)(e,t),i=e[3],o=t[3];return r+o<i?((0,u.c)(n,e),n):r+i<o?((0,u.c)(n,t),n):((0,s.m)(n,e,t,(r+o-i)/(2*r)),n[3]=(r+i+o)/2,n)},wrap:function(e){return e}},Symbol.toStringTag,{value:"Module"}))},52180:(e,t,n)=>{n.d(t,{o:()=>i});var r=n(52324);class i{constructor(e){this._allocator=e,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.o)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const e=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*o);this._items.length=Math.min(e,this._items.length),this._itemsPtr=0}_grow(){for(let e=0;e<Math.max(8,Math.min(this._items.length,o));e++)this._items.push(this._allocator())}}const o=1024},93184:(e,t,n)=>{n.d(t,{M:()=>s});var r=n(62484),i=n(60074),o=n(62880);function s(e,t,n,r){if((0,i.canProjectWithoutEngine)(e.spatialReference,n)){l[0]=e.x,l[1]=e.y;const i=e.z;return l[2]=i??r??0,(0,o.projectBuffer)(l,e.spatialReference,0,t,n,0,1)}const s=(0,i.tryProjectWithZConversion)(e,n);return!!s&&(t[0]=s?.x,t[1]=s?.y,t[2]=s?.z??r??0,!0)}const l=(0,r.Su)()},90484:(e,t,n)=>{n.d(t,{CE:()=>c,Su:()=>s,em:()=>u,i_:()=>a}),n(92400);var r=n(52180),i=n(98472),o=n(62484);function s(e){return e?l((0,o.ct)(e.origin),(0,o.ct)(e.direction)):l((0,o.Su)(),(0,o.Su)())}function l(e,t){return{origin:e,direction:t}}function u(e,t){const n=d.get();return n.origin=e,n.direction=t,n}function a(e,t,n=s()){return(0,i.c)(n.origin,e),(0,i.f)(n.direction,t,e),n}function c(e,t,n){const r=(0,i.k)(e.direction,(0,i.f)(n,t,e.origin));return(0,i.g)(n,e.origin,(0,i.h)(n,e.direction,r)),n}n(20136);const d=new r.o((()=>s()))},600:(e,t,n)=>{n.d(t,{c:()=>m});var r,i=n(41948),o=n(14628),s=n(40504),l=n(1580),u=n(53368),a=(n(72052),n(9456),n(9968)),c=n(33600),d=n(12552),p=n(89812),h=n(36408);const y=new o.O({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let g=r=class extends s.am{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?y.fromJSON(n.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],g.prototype,"alias",void 0),(0,i._)([(0,l.qq)({type:[String,Number],json:{write:{allowNull:!0}}})],g.prototype,"defaultValue",void 0),(0,i._)([(0,l.qq)()],g.prototype,"description",void 0),(0,i._)([(0,c.E)("description")],g.prototype,"readDescription",null),(0,i._)([(0,l.qq)({types:p.i2,json:{read:{reader:p.h4},write:!0}})],g.prototype,"domain",void 0),(0,i._)([(0,l.qq)({type:Boolean,json:{write:!0}})],g.prototype,"editable",void 0),(0,i._)([(0,l.qq)({type:u.Ab,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],g.prototype,"length",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],g.prototype,"name",void 0),(0,i._)([(0,l.qq)({type:Boolean,json:{write:!0}})],g.prototype,"nullable",void 0),(0,i._)([(0,a.G)(h.M)],g.prototype,"type",void 0),(0,i._)([(0,l.qq)()],g.prototype,"valueType",void 0),(0,i._)([(0,c.E)("valueType",["description"])],g.prototype,"readValueType",null),(0,i._)([(0,l.qq)({type:Boolean,json:{read:!1}})],g.prototype,"visible",void 0),g=r=(0,i._)([(0,d.c)("esri.layers.support.Field")],g);const m=g},89812:(e,t,n)=>{n.d(t,{h4:()=>E,i2:()=>b}),n(9456);var r,i=n(41948),o=n(62088),s=n(1580),l=(n(66360),n(9968)),u=n(12552),a=n(40504);n(72052);let c=r=class extends a.am{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,i._)([(0,s.qq)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,i._)([(0,s.qq)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=r=(0,i._)([(0,u.c)("esri.layers.support.CodedValue")],c);const d=new(n(14628).O)({inherited:"inherited",codedValue:"coded-value",range:"range"});let p=class extends a.am{constructor(e){super(e),this.name=null,this.type=null}};(0,i._)([(0,s.qq)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,i._)([(0,l.G)(d)],p.prototype,"type",void 0),p=(0,i._)([(0,u.c)("esri.layers.support.Domain")],p);const h=p;var y;let g=y=class extends h{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,o.ct)(this.codedValues),name:this.name})}};(0,i._)([(0,s.qq)({type:[c],json:{write:!0}})],g.prototype,"codedValues",void 0),(0,i._)([(0,l.G)({codedValue:"coded-value"})],g.prototype,"type",void 0),g=y=(0,i._)([(0,u.c)("esri.layers.support.CodedValueDomain")],g);const m=g;var f;n(20744);let S=f=class extends h{constructor(e){super(e),this.type="inherited"}clone(){return new f}};(0,i._)([(0,l.G)({inherited:"inherited"})],S.prototype,"type",void 0),S=f=(0,i._)([(0,u.c)("esri.layers.support.InheritedDomain")],S);const _=S;var v;let T=v=class extends h{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new v({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i._)([(0,s.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]}}}})],T.prototype,"maxValue",void 0),(0,i._)([(0,s.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]}}}})],T.prototype,"minValue",void 0),(0,i._)([(0,l.G)({range:"range"})],T.prototype,"type",void 0),T=v=(0,i._)([(0,u.c)("esri.layers.support.RangeDomain")],T);const q=T,b={key:"type",base:h,typeMap:{range:T,"coded-value":m,inherited:_}};function E(e){if(!e?.type)return null;switch(e.type){case"range":return q.fromJSON(e);case"codedValue":return m.fromJSON(e);case"inherited":return _.fromJSON(e)}return null}},36408:(e,t,n)=>{n.d(t,{M:()=>r});const r=new(n(14628).O)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},74776:(e,t,n)=>{n.d(t,{Et:()=>_,cx:()=>g}),n(60708);var r=n(2600),i=(n(92400),n(20744),n(9456),n(72008)),o=(n(15008),n(87104)),s=(n(98472),n(62484)),l=(n(60074),n(82448),n(56156));n(93184),l.c.WGS84;var u=n(83372),a=(n(84752),n(95776),n(16848));n(22080),n(51120),n(44728);var c,d=n(37008);!function(e){e[e.INVISIBLE=0]="INVISIBLE",e[e.TRANSPARENT=1]="TRANSPARENT",e[e.OPAQUE=2]="OPAQUE"}(c||(c={}));(0,d.WK)(0,0,0,.2),c.OPAQUE;(0,d.WK)(0,0,0,.2),c.OPAQUE,n(78720);var p,h,y=n(29244);async function g(e,t,n,i,o,s,l,u){const c=[];for(const r of t)if(r&&o.includes(r.name)){const t=`${e}/nodes/${n}/attributes/${r.key}/0`;c.push({url:t,storageInfo:r})}const d=await Promise.allSettled(c.map((e=>(0,r.c)(e.url,{responseType:"array-buffer",query:{...l,token:s},signal:u?.signal}).then((t=>(0,a.ii)(e.storageInfo,t.data)))))),p=[];for(const e of i){const t={};for(let n=0;n<d.length;n++){const r=d[n];if("fulfilled"===r.status){const i=r.value;t[c[n].storageInfo.name]=S(i,e)}}p.push(t)}return p}(0,u.Su)(),(h=p||(p={}))[h.OUTSIDE=0]="OUTSIDE",h[h.INTERSECTS_CENTER_OUTSIDE=1]="INTERSECTS_CENTER_OUTSIDE",h[h.INTERSECTS_CENTER_INSIDE=2]="INTERSECTS_CENTER_INSIDE",h[h.INSIDE=3]="INSIDE";const m=-32768,f=-(2**31);function S(e,t){if(!e)return null;const n=e[t];return(0,i.IT)(e)?n===m?null:n:(0,i.Mx)(e)?n===f?null:n:n!=n?null:n}function _(e){null!=e&&(e[3]=-1)}(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,u.Su)(),(0,u.Su)(),new y.Eb,(0,s.Su)(),new Array(72),(0,o.Su)()},78720:(e,t,n)=>{var r,i;n.d(t,{KQ:()=>r}),n(53648),(i=r||(r={}))[i.Multiply=1]="Multiply",i[i.Ignore=2]="Ignore",i[i.Replace=3]="Replace",i[i.Tint=4]="Tint"}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9420],{84752:(e,t,n)=>{n.d(t,{a:()=>_,b:()=>v,c:()=>m,f:()=>q,g:()=>T,j:()=>N,n:()=>j}),n(9456);var r=n(66360),i=n(53648),o=n(15008),s=n(98472),l=n(62484),u=n(74784),a=n(37008),c=n(47364),d=n(82315),p=n(90484),h=n(48880),y=n(20136);const g=m();function m(){return(0,a.Su)()}const f=u.e,S=u.e;function _(e,t){return(0,u.c)(t,e)}function v(e){return e[3]}function T(e){return e}function q(e,t,n,r){return(0,a.WK)(e,t,n,r)}function b(e,t,n){if(null==t)return!1;if(!I(e,t,E))return!1;let{t0:r,t1:i}=E;if((r<0||i<r&&i>0)&&(r=i),r<0)return!1;if(n){const{origin:e,direction:i}=t;n[0]=e[0]+i[0]*r,n[1]=e[1]+i[1]*r,n[2]=e[2]+i[2]*r}return!0}const E={t0:0,t1:0};function I(e,t,n){const{origin:r,direction:i}=t,o=w;o[0]=r[0]-e[0],o[1]=r[1]-e[1],o[2]=r[2]-e[2];const s=i[0]*i[0]+i[1]*i[1]+i[2]*i[2];if(0===s)return!1;const l=2*(i[0]*o[0]+i[1]*o[1]+i[2]*o[2]),u=l*l-4*s*(o[0]*o[0]+o[1]*o[1]+o[2]*o[2]-e[3]*e[3]);if(u<0)return!1;const a=Math.sqrt(u);return n.t0=(-l-a)/(2*s),n.t1=(-l+a)/(2*s),!0}const w=(0,l.Su)();function N(e,t){return b(e,t,null)}function V(e,t,n){const r=y.Wq.get(),i=y.SW.get();(0,s.b)(r,t.origin,t.direction);const l=v(e);(0,s.b)(n,r,t.origin),(0,s.h)(n,n,1/(0,s.l)(n)*l);const u=R(e,t.origin),a=(0,h.i4)(t.origin,n);return(0,o.IT)(i,a+u,r),(0,s.e)(n,n,i),n}function O(e,t,n){const r=(0,s.f)(y.Wq.get(),t,e),i=(0,s.h)(y.Wq.get(),r,e[3]/(0,s.l)(r));return(0,s.g)(n,i,e)}function R(e,t){const n=(0,s.f)(y.Wq.get(),t,e),r=(0,s.l)(n),o=v(e),l=o+Math.abs(o-r);return(0,i.Uj)(o/l)}const M=(0,l.Su)();function P(e,t,n,r){const o=(0,s.f)(M,t,e);switch(n){case d.k.X:{const e=(0,i.Iv)(o,M)[2];return(0,s.s)(r,-Math.sin(e),Math.cos(e),0)}case d.k.Y:{const e=(0,i.Iv)(o,M),t=e[1],n=e[2],l=Math.sin(t);return(0,s.s)(r,-l*Math.cos(n),-l*Math.sin(n),Math.cos(t))}case d.k.Z:return(0,s.n)(r,o);default:return}}function x(e,t){const n=(0,s.f)(C,t,e);return(0,s.l)(n)-e[3]}function j(e,t){const n=(0,s.a)(e,t),r=v(e);return n<=r*r}const C=(0,l.Su)(),D=m();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:g,altitudeAt:x,angleToSilhouette:R,axisAt:P,clear:function(e){e[0]=e[1]=e[2]=e[3]=0},closestPoint:function(e,t,n){return b(e,t,n)?n:((0,p.CE)(t,e,n),O(e,n,n))},closestPointOnSilhouette:V,containsPoint:j,copy:_,create:m,distanceToSilhouette:function(e,t){const n=(0,s.f)(y.Wq.get(),t,e),r=(0,s.p)(n),i=e[3]*e[3];return Math.sqrt(Math.abs(r-i))},elevate:function(e,t,n){return e!==n&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),n[3]=e[3]+t,n},equals:S,exactEquals:f,fromCenterAndRadius:function(e,t){return(0,a.WK)(e[0],e[1],e[2],t)},fromRadius:function(e,t){return e[0]=e[1]=e[2]=0,e[3]=t,e},fromValues:q,getCenter:T,getRadius:v,intersectLine:function(e,t,n){const r=(0,p.i_)(t,n);if(!I(e,r,E))return[];const{origin:i,direction:o}=r,{t0:u,t1:a}=E,d=t=>{const n=(0,l.Su)();return(0,s.r)(n,i,o,t),O(e,n,n)};return Math.abs(u-a)<(0,c.Au)()?[d(u)]:[d(u),d(a)]},intersectRay:b,intersectRayClosestSilhouette:function(e,t,n){if(b(e,t,n))return n;const r=V(e,t,y.Wq.get());return(0,s.g)(n,t.origin,(0,s.h)(y.Wq.get(),t.direction,(0,s.q)(t.origin,r)/(0,s.l)(t.direction))),n},intersectsRay:N,projectPoint:O,setAltitudeAt:function(e,t,n,r){const i=x(e,t),o=P(e,t,d.k.Z,C),l=(0,s.h)(C,o,n-i);return(0,s.g)(r,t,l)},setExtent:function(e,t,n){return r.c.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),e!==n&&_(e,n),n},tmpSphere:D,union:function(e,t,n=(0,a.Su)()){const r=(0,s.q)(e,t),i=e[3],o=t[3];return r+o<i?((0,u.c)(n,e),n):r+i<o?((0,u.c)(n,t),n):((0,s.m)(n,e,t,(r+o-i)/(2*r)),n[3]=(r+i+o)/2,n)},wrap:function(e){return e}},Symbol.toStringTag,{value:"Module"}))},52180:(e,t,n)=>{n.d(t,{o:()=>i});var r=n(52324);class i{constructor(e){this._allocator=e,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.o)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const e=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*o);this._items.length=Math.min(e,this._items.length),this._itemsPtr=0}_grow(){for(let e=0;e<Math.max(8,Math.min(this._items.length,o));e++)this._items.push(this._allocator())}}const o=1024},93184:(e,t,n)=>{n.d(t,{M:()=>s});var r=n(62484),i=n(60074),o=n(62880);function s(e,t,n,r){if((0,i.canProjectWithoutEngine)(e.spatialReference,n)){l[0]=e.x,l[1]=e.y;const i=e.z;return l[2]=i??r??0,(0,o.projectBuffer)(l,e.spatialReference,0,t,n,0,1)}const s=(0,i.tryProjectWithZConversion)(e,n);return!!s&&(t[0]=s?.x,t[1]=s?.y,t[2]=s?.z??r??0,!0)}const l=(0,r.Su)()},90484:(e,t,n)=>{n.d(t,{CE:()=>c,Su:()=>s,em:()=>u,i_:()=>a}),n(92400);var r=n(52180),i=n(98472),o=n(62484);function s(e){return e?l((0,o.ct)(e.origin),(0,o.ct)(e.direction)):l((0,o.Su)(),(0,o.Su)())}function l(e,t){return{origin:e,direction:t}}function u(e,t){const n=d.get();return n.origin=e,n.direction=t,n}function a(e,t,n=s()){return(0,i.c)(n.origin,e),(0,i.f)(n.direction,t,e),n}function c(e,t,n){const r=(0,i.k)(e.direction,(0,i.f)(n,t,e.origin));return(0,i.g)(n,e.origin,(0,i.h)(n,e.direction,r)),n}n(20136);const d=new r.o((()=>s()))},600:(e,t,n)=>{n.d(t,{c:()=>m});var r,i=n(41948),o=n(14628),s=n(40504),l=n(1580),u=n(53368),a=(n(72052),n(9456),n(9968)),c=n(33600),d=n(12552),p=n(89812),h=n(36408);const y=new o.O({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let g=r=class extends s.am{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?y.fromJSON(n.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],g.prototype,"alias",void 0),(0,i._)([(0,l.qq)({type:[String,Number],json:{write:{allowNull:!0}}})],g.prototype,"defaultValue",void 0),(0,i._)([(0,l.qq)()],g.prototype,"description",void 0),(0,i._)([(0,c.E)("description")],g.prototype,"readDescription",null),(0,i._)([(0,l.qq)({types:p.i2,json:{read:{reader:p.h4},write:!0}})],g.prototype,"domain",void 0),(0,i._)([(0,l.qq)({type:Boolean,json:{write:!0}})],g.prototype,"editable",void 0),(0,i._)([(0,l.qq)({type:u.Ab,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],g.prototype,"length",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],g.prototype,"name",void 0),(0,i._)([(0,l.qq)({type:Boolean,json:{write:!0}})],g.prototype,"nullable",void 0),(0,i._)([(0,a.G)(h.M)],g.prototype,"type",void 0),(0,i._)([(0,l.qq)()],g.prototype,"valueType",void 0),(0,i._)([(0,c.E)("valueType",["description"])],g.prototype,"readValueType",null),(0,i._)([(0,l.qq)({type:Boolean,json:{read:!1}})],g.prototype,"visible",void 0),g=r=(0,i._)([(0,d.c)("esri.layers.support.Field")],g);const m=g},89812:(e,t,n)=>{n.d(t,{h4:()=>E,i2:()=>b}),n(9456);var r,i=n(41948),o=n(62088),s=n(1580),l=(n(66360),n(9968)),u=n(12552),a=n(40504);n(72052);let c=r=class extends a.am{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,i._)([(0,s.qq)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,i._)([(0,s.qq)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=r=(0,i._)([(0,u.c)("esri.layers.support.CodedValue")],c);const d=new(n(14628).O)({inherited:"inherited",codedValue:"coded-value",range:"range"});let p=class extends a.am{constructor(e){super(e),this.name=null,this.type=null}};(0,i._)([(0,s.qq)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,i._)([(0,l.G)(d)],p.prototype,"type",void 0),p=(0,i._)([(0,u.c)("esri.layers.support.Domain")],p);const h=p;var y;let g=y=class extends h{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,o.ct)(this.codedValues),name:this.name})}};(0,i._)([(0,s.qq)({type:[c],json:{write:!0}})],g.prototype,"codedValues",void 0),(0,i._)([(0,l.G)({codedValue:"coded-value"})],g.prototype,"type",void 0),g=y=(0,i._)([(0,u.c)("esri.layers.support.CodedValueDomain")],g);const m=g;var f;n(20744);let S=f=class extends h{constructor(e){super(e),this.type="inherited"}clone(){return new f}};(0,i._)([(0,l.G)({inherited:"inherited"})],S.prototype,"type",void 0),S=f=(0,i._)([(0,u.c)("esri.layers.support.InheritedDomain")],S);const _=S;var v;let T=v=class extends h{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new v({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i._)([(0,s.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]}}}})],T.prototype,"maxValue",void 0),(0,i._)([(0,s.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]}}}})],T.prototype,"minValue",void 0),(0,i._)([(0,l.G)({range:"range"})],T.prototype,"type",void 0),T=v=(0,i._)([(0,u.c)("esri.layers.support.RangeDomain")],T);const q=T,b={key:"type",base:h,typeMap:{range:T,"coded-value":m,inherited:_}};function E(e){if(!e?.type)return null;switch(e.type){case"range":return q.fromJSON(e);case"codedValue":return m.fromJSON(e);case"inherited":return _.fromJSON(e)}return null}},36408:(e,t,n)=>{n.d(t,{M:()=>r});const r=new(n(14628).O)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},74776:(e,t,n)=>{n.d(t,{Et:()=>_,cx:()=>g}),n(60708);var r=n(2600),i=(n(92400),n(20744),n(9456),n(72008)),o=(n(15008),n(87104)),s=(n(98472),n(62484)),l=(n(60074),n(82448),n(56156));n(93184),l.c.WGS84;var u=n(83372),a=(n(84752),n(95776),n(16848));n(22080),n(51120),n(44728);var c,d=n(37008);!function(e){e[e.INVISIBLE=0]="INVISIBLE",e[e.TRANSPARENT=1]="TRANSPARENT",e[e.OPAQUE=2]="OPAQUE"}(c||(c={}));(0,d.WK)(0,0,0,.2),c.OPAQUE;(0,d.WK)(0,0,0,.2),c.OPAQUE,n(78720);var p,h,y=n(29244);async function g(e,t,n,i,o,s,l,u){const c=[];for(const r of t)if(r&&o.includes(r.name)){const t=`${e}/nodes/${n}/attributes/${r.key}/0`;c.push({url:t,storageInfo:r})}const d=await Promise.allSettled(c.map((e=>(0,r.c)(e.url,{responseType:"array-buffer",query:{...l,token:s},signal:u?.signal}).then((t=>(0,a.ii)(e.storageInfo,t.data)))))),p=[];for(const e of i){const t={};for(let n=0;n<d.length;n++){const r=d[n];if("fulfilled"===r.status){const i=r.value;t[c[n].storageInfo.name]=S(i,e)}}p.push(t)}return p}(0,u.Su)(),(h=p||(p={}))[h.OUTSIDE=0]="OUTSIDE",h[h.INTERSECTS_CENTER_OUTSIDE=1]="INTERSECTS_CENTER_OUTSIDE",h[h.INTERSECTS_CENTER_INSIDE=2]="INTERSECTS_CENTER_INSIDE",h[h.INSIDE=3]="INSIDE";const m=-32768,f=-(2**31);function S(e,t){if(!e)return null;const n=e[t];return(0,i.IT)(e)?n===m?null:n:(0,i.Mx)(e)?n===f?null:n:n!=n?null:n}function _(e){null!=e&&(e[3]=-1)}(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,u.Su)(),(0,u.Su)(),new y.Eb,(0,s.Su)(),new Array(72),(0,o.Su)()},78720:(e,t,n)=>{var r,i;n.d(t,{KQ:()=>r}),n(53648),(i=r||(r={}))[i.Multiply=1]="Multiply",i[i.Ignore=2]="Ignore",i[i.Replace=3]="Replace",i[i.Tint=4]="Tint"}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9896,8528],{44728:(t,r,e)=>{e.d(r,{c:()=>m});var n,o,i=e(46988),s=e(53648),a=e(53368);function l(t){return(0,s.qk)((0,a.Wu)(t),0,255)}function u(t,r,e){return t=Number(t),isNaN(t)?e:t<r?r:t>e?e:t}function c(t,r){const e=t.toString(16).padStart(2,"0");return r?e.substring(0,1):e}class h{static blendColors(t,r,e,n=new h){return n.r=Math.round(t.r+(r.r-t.r)*e),n.g=Math.round(t.g+(r.g-t.g)*e),n.b=Math.round(t.b+(r.b-t.b)*e),n.a=t.a+(r.a-t.a)*e,n._sanitize()}static fromRgb(t,r){const e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(e){const t=e[2].split(/\s*,\s*/),n=e[1];if("rgb"===n&&3===t.length||"rgba"===n&&4===t.length){const e=t[0];if("%"===e.charAt(e.length-1)){const e=t.map((t=>2.56*parseFloat(t)));return 4===t.length&&(e[3]=parseFloat(t[3])),h.fromArray(e,r)}return h.fromArray(t.map((t=>parseFloat(t))),r)}if("hsl"===n&&3===t.length||"hsla"===n&&4===t.length)return h.fromArray((0,i.ec)(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])),r)}return null}static fromHex(t,r=new h){if("#"!==t[0]||isNaN(Number(`0x${t.substring(1)}`)))return null;switch(t.length){case 4:case 5:{const e=parseInt(t.substring(1,2),16),n=parseInt(t.substring(2,3),16),o=parseInt(t.substring(3,4),16),i=5===t.length?15:parseInt(t.substring(4),16);return h.fromArray([e+16*e,n+16*n,o+16*o,(i+16*i)/255],r)}case 7:case 9:{const e=parseInt(t.substring(1,3),16),n=parseInt(t.substring(3,5),16),o=parseInt(t.substring(5,7),16),i=7===t.length?255:parseInt(t.substring(7),16);return h.fromArray([e,n,o,i/255],r)}default:return null}}static fromArray(t,r=new h){return r._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(r.a)&&(r.a=1),r._sanitize()}static fromString(t,r){const e=(0,i.kv)(t)?(0,i.SQ)(t):null;return e&&h.fromArray(e,r)||h.fromRgb(t,r)||h.fromHex(t,r)}static fromJSON(t){return null!=t?new h([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?h.fromString(t,this):Array.isArray(t)?h.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof h||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const r=t?.capitalize??!1,e=t?.digits??6,n=3===e||4===e,o=4===e||8===e,i=`#${c(this.r,n)}${c(this.g,n)}${c(this.b,n)}${o?c(Math.round(255*this.a),n):""}`;return r?i.toUpperCase():i}toCss(t=!1){const r=this.r+", "+this.g+", "+this.b;return t?`rgba(${r}, ${this.a})`:`rgb(${r})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=h.AlphaMode.ALWAYS){const r=l(this.r),e=l(this.g),n=l(this.b);return t===h.AlphaMode.ALWAYS||1!==this.a?[r,e,n,l(255*this.a)]:[r,e,n]}clone(){return new h(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(t,r,e,n){this.r=t,this.g=r,this.b=e,this.a=n}}h.prototype.declaredClass="esri.Color",n=h||(h={}),(o=n.AlphaMode||(n.AlphaMode={}))[o.ALWAYS=0]="ALWAYS",o[o.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const m=h},8528:(t,r,e)=>{e.d(r,{c:()=>n,g:()=>o});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},74784:(t,r,e)=>{e.d(r,{a:()=>M,c:()=>o,d:()=>c,e:()=>S,g:()=>s,h:()=>g,i:()=>f,j:()=>d,l:()=>y,n:()=>p,s:()=>i,t:()=>b});var n=e(47364);function o(t,r){return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t}function i(t,r,e,n,o){return t[0]=r,t[1]=e,t[2]=n,t[3]=o,t}function s(t,r,e){return t[0]=r[0]+e[0],t[1]=r[1]+e[1],t[2]=r[2]+e[2],t[3]=r[3]+e[3],t}function a(t,r,e){return t[0]=r[0]-e[0],t[1]=r[1]-e[1],t[2]=r[2]-e[2],t[3]=r[3]-e[3],t}function l(t,r,e){return t[0]=r[0]*e[0],t[1]=r[1]*e[1],t[2]=r[2]*e[2],t[3]=r[3]*e[3],t}function u(t,r,e){return t[0]=r[0]/e[0],t[1]=r[1]/e[1],t[2]=r[2]/e[2],t[3]=r[3]/e[3],t}function c(t,r,e){return t[0]=r[0]*e,t[1]=r[1]*e,t[2]=r[2]*e,t[3]=r[3]*e,t}function h(t,r){const e=r[0]-t[0],n=r[1]-t[1],o=r[2]-t[2],i=r[3]-t[3];return Math.sqrt(e*e+n*n+o*o+i*i)}function m(t,r){const e=r[0]-t[0],n=r[1]-t[1],o=r[2]-t[2],i=r[3]-t[3];return e*e+n*n+o*o+i*i}function f(t){const r=t[0],e=t[1],n=t[2],o=t[3];return Math.sqrt(r*r+e*e+n*n+o*o)}function d(t){const r=t[0],e=t[1],n=t[2],o=t[3];return r*r+e*e+n*n+o*o}function p(t,r){const e=r[0],n=r[1],o=r[2],i=r[3];let s=e*e+n*n+o*o+i*i;return s>0&&(s=1/Math.sqrt(s),t[0]=e*s,t[1]=n*s,t[2]=o*s,t[3]=i*s),t}function g(t,r){return t[0]*r[0]+t[1]*r[1]+t[2]*r[2]+t[3]*r[3]}function y(t,r,e,n){const o=r[0],i=r[1],s=r[2],a=r[3];return t[0]=o+n*(e[0]-o),t[1]=i+n*(e[1]-i),t[2]=s+n*(e[2]-s),t[3]=a+n*(e[3]-a),t}function b(t,r,e){const n=r[0],o=r[1],i=r[2],s=r[3];return t[0]=e[0]*n+e[4]*o+e[8]*i+e[12]*s,t[1]=e[1]*n+e[5]*o+e[9]*i+e[13]*s,t[2]=e[2]*n+e[6]*o+e[10]*i+e[14]*s,t[3]=e[3]*n+e[7]*o+e[11]*i+e[15]*s,t}function M(t,r){return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]&&t[3]===r[3]}function S(t,r){const e=t[0],o=t[1],i=t[2],s=t[3],a=r[0],l=r[1],u=r[2],c=r[3],h=(0,n.Au)();return Math.abs(e-a)<=h*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(o-l)<=h*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(i-u)<=h*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(s-c)<=h*Math.max(1,Math.abs(s),Math.abs(c))}const v=a,w=l,k=u,x=h,N=m,O=f,A=d;Object.freeze(Object.defineProperty({__proto__:null,add:s,ceil:function(t,r){return t[0]=Math.ceil(r[0]),t[1]=Math.ceil(r[1]),t[2]=Math.ceil(r[2]),t[3]=Math.ceil(r[3]),t},copy:o,copyVec3:function(t,r){return t[0]=r[0],t[1]=r[1],t[2]=r[2],t},dist:x,distance:h,div:k,divide:u,dot:g,equals:S,exactEquals:M,floor:function(t,r){return t[0]=Math.floor(r[0]),t[1]=Math.floor(r[1]),t[2]=Math.floor(r[2]),t[3]=Math.floor(r[3]),t},inverse:function(t,r){return t[0]=1/r[0],t[1]=1/r[1],t[2]=1/r[2],t[3]=1/r[3],t},len:O,length:f,lerp:y,max:function(t,r,e){return t[0]=Math.max(r[0],e[0]),t[1]=Math.max(r[1],e[1]),t[2]=Math.max(r[2],e[2]),t[3]=Math.max(r[3],e[3]),t},min:function(t,r,e){return t[0]=Math.min(r[0],e[0]),t[1]=Math.min(r[1],e[1]),t[2]=Math.min(r[2],e[2]),t[3]=Math.min(r[3],e[3]),t},mul:w,multiply:l,negate:function(t,r){return t[0]=-r[0],t[1]=-r[1],t[2]=-r[2],t[3]=-r[3],t},normalize:p,random:function(t,r){const e=n.QR;let o,i,s,a,l,u;r=r||1;do{o=2*e()-1,i=2*e()-1,l=o*o+i*i}while(l>=1);do{s=2*e()-1,a=2*e()-1,u=s*s+a*a}while(u>=1);const c=Math.sqrt((1-l)/u);return t[0]=r*o,t[1]=r*i,t[2]=r*s*c,t[3]=r*a*c,t},round:function(t,r){return t[0]=Math.round(r[0]),t[1]=Math.round(r[1]),t[2]=Math.round(r[2]),t[3]=Math.round(r[3]),t},scale:c,scaleAndAdd:function(t,r,e,n){return t[0]=r[0]+e[0]*n,t[1]=r[1]+e[1]*n,t[2]=r[2]+e[2]*n,t[3]=r[3]+e[3]*n,t},set:i,sqrDist:N,sqrLen:A,squaredDistance:m,squaredLength:d,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:v,subtract:a,transformMat4:b,transformQuat:function(t,r,e){const n=r[0],o=r[1],i=r[2],s=e[0],a=e[1],l=e[2],u=e[3],c=u*n+a*i-l*o,h=u*o+l*n-s*i,m=u*i+s*o-a*n,f=-s*n-a*o-l*i;return t[0]=c*u+f*-s+h*-l-m*-a,t[1]=h*u+f*-a+m*-s-c*-l,t[2]=m*u+f*-l+c*-a-h*-s,t[3]=r[3],t}},Symbol.toStringTag,{value:"Module"}))},46988:(t,r,e)=>{e.d(r,{SQ:()=>i,ec:()=>l,kv:()=>o,uO:()=>s,yU:()=>u});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function o(t){return!!n[t]||!!n[t.toLowerCase()]}function i(t){return n[t]??n[t.toLowerCase()]}function s(t){return[...i(t)]}function a(t,r,e){e<0&&++e,e>1&&--e;const n=6*e;return n<1?t+(r-t)*n:2*e<1?r:3*e<2?t+(r-t)*(2/3-e)*6:t}function l(t,r,e,n=1){const o=(t%360+360)%360/360,i=e<=.5?e*(r+1):e+r-e*r,s=2*e-i;return[Math.round(255*a(s,i,o+1/3)),Math.round(255*a(s,i,o)),Math.round(255*a(s,i,o-1/3)),n]}function u(t){const r=t.length>5,e=r?8:4,n=(1<<e)-1,o=r?1:17,i=r?9===t.length:5===t.length;let s=Number("0x"+t.substr(1));if(isNaN(s))return null;const a=[0,0,0,1];let l;return i&&(l=s&n,s>>=e,a[3]=o*l/255),l=s&n,s>>=e,a[2]=o*l,l=s&n,s>>=e,a[1]=o*l,l=s&n,s>>=e,a[0]=o*l,a}},9592:(t,r,e)=>{e.d(r,{n:()=>o});var n=e(50504);class o extends n.g{notify(){const t=this._observers;if(t&&t.length>0){const r=t.slice();for(const t of r)t.onInvalidated(),t.onCommitted()}}}},27576:(t,r,e)=>{function n(t){return"r"in t&&"g"in t&&"b"in t}function o(t){return"h"in t&&"s"in t&&"v"in t}function i(t){return"l"in t&&"a"in t&&"b"in t}function s(t){return"l"in t&&"c"in t&&"h"in t}e.d(r,{AE:()=>d,Ij:()=>y,SJ:()=>g,_X:()=>p,eQ:()=>n}),e(44728),e(74784),e(37008);const a=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],l=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function u(t,r){const e=[];let n,o;if(t[0].length!==r.length)throw new Error("dimensions do not match");const i=t.length,s=t[0].length;let a=0;for(n=0;n<i;n++){for(a=0,o=0;o<s;o++)a+=t[n][o]*r[o];e.push(a)}return e}function c(t){const r=[t.r/255,t.g/255,t.b/255].map((t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4)),e=u(a,r);return{x:100*e[0],y:100*e[1],z:100*e[2]}}function h(t){const r=u(l,[t.x/100,t.y/100,t.z/100]).map((t=>{const r=t<=.0031308?12.92*t:1.055*t**(1/2.4)-.055;return Math.min(1,Math.max(r,0))}));return{r:Math.round(255*r[0]),g:Math.round(255*r[1]),b:Math.round(255*r[2])}}function m(t){const r=[t.x/95.047,t.y/100,t.z/108.883].map((t=>t>(6/29)**3?t**(1/3):1/3*(29/6)**2*t+4/29));return{l:116*r[1]-16,a:500*(r[0]-r[1]),b:200*(r[1]-r[2])}}function f(t){const r=t.l,e=[(r+16)/116+t.a/500,(r+16)/116,(r+16)/116-t.b/200].map((t=>t>6/29?t**3:3*(6/29)**2*(t-4/29)));return{x:95.047*e[0],y:100*e[1],z:108.883*e[2]}}function d(t){return n(t)?t:s(t)?function(t){return h(f(function(t){const r=t.l,e=t.c,n=t.h;return{l:r,a:e*Math.cos(n),b:e*Math.sin(n)}}(t)))}(t):i(t)?function(t){return h(f(t))}(t):function(t){return"x"in t&&"y"in t&&"z"in t}(t)?h(t):o(t)?function(t){const r=(t.h+360)%360/60,e=t.s/100,n=t.v/100*255,o=n*e,i=o*(1-Math.abs(r%2-1));let s;switch(Math.floor(r)){case 0:s={r:o,g:i,b:0};break;case 1:s={r:i,g:o,b:0};break;case 2:s={r:0,g:o,b:i};break;case 3:s={r:0,g:i,b:o};break;case 4:s={r:i,g:0,b:o};break;case 5:case 6:s={r:o,g:0,b:i};break;default:s={r:0,g:0,b:0}}return s.r=Math.round(s.r+n-o),s.g=Math.round(s.g+n-o),s.b=Math.round(s.b+n-o),s}(t):t}function p(t){return o(t)?t:function(t){const r=t.r,e=t.g,n=t.b,o=Math.max(r,e,n),i=o-Math.min(r,e,n);let s=o,a=0===i?0:o===r?(e-n)/i%6:o===e?(n-r)/i+2:(r-e)/i+4,l=0===i?0:i/s;return a<0&&(a+=6),a*=60,l*=100,s*=100/255,{h:a,s:l,v:s}}(d(t))}function g(t){return i(t)?t:function(t){return m(c(t))}(d(t))}function y(t){return s(t)?t:function(t){return function(t){const r=t.l,e=t.a,n=t.b,o=Math.sqrt(e*e+n*n);let i=Math.atan2(n,e);return i=i>0?i:i+2*Math.PI,{l:r,c:o,h:i}}(m(c(t)))}(d(t))}var b,M;(M=b||(b={}))[M.Low=160]="Low",M[M.High=225]="High"},37008:(t,r,e)=>{function n(){return[0,0,0,0]}function o(t,r,e,n){return[t,r,e,n]}function i(){return o(1,1,1,1)}function s(){return o(1,0,0,0)}function a(){return o(0,1,0,0)}function l(){return o(0,0,1,0)}function u(){return o(0,0,0,1)}e.d(r,{Su:()=>n,WK:()=>o});const c=i(),h=s(),m=a(),f=l(),d=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_W:d,UNIT_X:h,UNIT_Y:m,UNIT_Z:f,ZEROS:[0,0,0,0],clone:function(t){return[t[0],t[1],t[2],t[3]]},create:n,createView:function(t,r){return new Float64Array(t,r,4)},fromArray:function(t,r=[0,0,0,0]){const e=Math.min(4,t.length);for(let n=0;n<e;++n)r[n]=t[n];return r},fromValues:o,ones:i,unitW:u,unitX:s,unitY:a,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},60708:(t,r,e)=>{e.d(r,{Su:()=>c});var n=e(53368),o=e(95247),i=e(50853),s=e(53004),a=e(67776),l=e(7488),u=e(48516);e(56156),e(97492),e(6704);const c={base:i.c,key:"type",typeMap:{extent:o.c,multipoint:s.c,point:a.c,polyline:u.c,polygon:l.c}};(0,n.S2)(c)},6704:(t,r,e)=>{e.d(r,{Ce:()=>p,Cs:()=>f,Ul:()=>u,_:()=>c,_x:()=>h,cZ:()=>m,h4:()=>d,uG:()=>y});var n=e(95247),o=e(50853),i=e(53004),s=e(67776),a=e(7488),l=e(48516);function u(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function c(t){return void 0!==t.points}function h(t){return void 0!==t.x&&void 0!==t.y}function m(t){return void 0!==t.paths}function f(t){return void 0!==t.rings}function d(t){return null==t?null:t instanceof o.c?t:h(t)?s.c.fromJSON(t):m(t)?l.c.fromJSON(t):f(t)?a.c.fromJSON(t):c(t)?i.c.fromJSON(t):u(t)?n.c.fromJSON(t):null}function p(t){return t?h(t)?"esriGeometryPoint":m(t)?"esriGeometryPolyline":f(t)?"esriGeometryPolygon":u(t)?"esriGeometryEnvelope":c(t)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:s.c,esriGeometryPolyline:l.c,esriGeometryPolygon:a.c,esriGeometryEnvelope:n.c,esriGeometryMultipoint:i.c};function y(t){return t&&g[t]||null}},97492:(t,r,e)=>{e.d(r,{U:()=>o,j:()=>i});var n=e(14628);const o=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),i=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},91496:(t,r,e)=>{e.r(r),e.d(r,{default:()=>g}),e(60708);var n=e(9976),o=e(66820),i=e(34084),s=e(26852),a=e(89004),l=e(25404),u=e(72116),c=e(32876),h=e(95280),m=e(61944),f=e(46320),d=e(95247),p=e(67776);class g{convertVectorFieldData(t){const r=o.c.fromJSON(t.pixelBlock),e=(0,c.Ws)(r,t.type);return Promise.resolve(null!=e?e.toJSON():null)}computeStatisticsHistograms(t){const r=o.c.fromJSON(t.pixelBlock),e=(0,u.SA)(r);return Promise.resolve(e)}async decode(t){const r=await(0,i.Y)(t.data,t.options);return r&&r.toJSON()}symbolize(t){t.pixelBlock=o.c.fromJSON(t.pixelBlock),t.extent=t.extent?d.c.fromJSON(t.extent):null;const r=this.symbolizer.symbolize(t);return Promise.resolve(null!=r?r.toJSON():null)}async updateSymbolizer(t){this.symbolizer=m.c.fromJSON(t.symbolizerJSON),t.histograms&&"rasterStretch"===this.symbolizer?.rendererJSON.type&&(this.symbolizer.rendererJSON.histograms=t.histograms)}async updateRasterFunction(t){this.rasterFunction=(0,a.Su)(t.rasterFunctionJSON)}async process(t){const r=this.rasterFunction.process({extent:d.c.fromJSON(t.extent),primaryPixelBlocks:t.primaryPixelBlocks.map((t=>null!=t?o.c.fromJSON(t):null)),primaryPixelSizes:t.primaryPixelSizes?.map((t=>null!=t?p.c.fromJSON(t):null)),primaryRasterIds:t.primaryRasterIds});return null!=r?r.toJSON():null}stretch(t){const r=this.symbolizer.simpleStretch(o.c.fromJSON(t.srcPixelBlock),t.stretchParams);return Promise.resolve(r?.toJSON())}estimateStatisticsHistograms(t){const r=(0,u.CW)(o.c.fromJSON(t.srcPixelBlock));return Promise.resolve(r)}split(t){const r=(0,s.SG)(o.c.fromJSON(t.srcPixelBlock),t.tileSize,t.maximumPyramidLevel??0,!1===t.useBilinear);return r&&r.forEach(((t,e)=>{r.set(e,t?.toJSON())})),Promise.resolve(r)}clipTile(t){const r=o.c.fromJSON(t.pixelBlock),e=(0,s.qM)({...t,pixelBlock:r});return Promise.resolve(e?.toJSON())}async mosaicAndTransform(t){const r=t.srcPixelBlocks.map((t=>t?new o.c(t):null)),e=(0,s.Gw)(r,t.srcMosaicSize,{blockWidths:t.blockWidths,alignmentInfo:t.alignmentInfo,clipOffset:t.clipOffset,clipSize:t.clipSize});let n,i=e;return t.coefs&&(i=(0,s.S0)(e,t.destDimension,t.coefs,t.sampleSpacing,t.interpolation)),t.projectDirections&&t.gcsGrid&&(n=(0,s.O8)(t.destDimension,t.gcsGrid),i=(0,c.UB)(i,t.isUV?"vector-uv":"vector-magdir",n)),{pixelBlock:i?.toJSON(),localNorthDirections:n}}async createFlowMesh(t,r){const e={data:new Float32Array(t.flowData.buffer),mask:new Uint8Array(t.flowData.maskBuffer),width:t.flowData.width,height:t.flowData.height},{vertexData:n,indexData:o}=await(0,f.__)(t.meshType,t.simulationSettings,e,r.signal);return{result:{vertexBuffer:n.buffer,indexBuffer:o.buffer},transferList:[n.buffer,o.buffer]}}async getProjectionOffsetGrid(t){const r=d.c.fromJSON(t.projectedExtent),e=d.c.fromJSON(t.srcBufferExtent);let o=null;t.datumTransformationSteps&&(o=new n.c({steps:t.datumTransformationSteps})),(t.includeGCSGrid||(0,l.S0)(r.spatialReference,e.spatialReference,o))&&await(0,l.AJ)();const i=t.rasterTransform?(0,h.O)(t.rasterTransform):null;return(0,l.iG)({...t,projectedExtent:r,srcBufferExtent:e,datumTransformation:o,rasterTransform:i})}}},21432:(t,r,e)=>{e.d(r,{c:()=>f});var n,o=e(41948),i=e(44728),s=e(62088),a=e(1580),l=e(53368),u=e(9968),c=e(12552),h=e(3712);let m=n=class extends h.c{constructor(t){super(t),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new n({fromColor:(0,s.ct)(this.fromColor),toColor:(0,s.ct)(this.toColor),algorithm:this.algorithm})}};(0,o._)([(0,u.G)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],m.prototype,"algorithm",void 0),(0,o._)([(0,a.qq)({type:i.c,json:{type:[l.Ab],write:!0}})],m.prototype,"fromColor",void 0),(0,o._)([(0,a.qq)({type:i.c,json:{type:[l.Ab],write:!0}})],m.prototype,"toColor",void 0),(0,o._)([(0,a.qq)({type:["algorithmic"]})],m.prototype,"type",void 0),m=n=(0,o._)([(0,c.c)("esri.rest.support.AlgorithmicColorRamp")],m);const f=m},3712:(t,r,e)=>{e.d(r,{c:()=>l});var n=e(41948),o=e(40504),i=e(1580),s=(e(9456),e(66360),e(72052),e(12552));let a=class extends o.am{constructor(t){super(t),this.type=null}};(0,n._)([(0,i.qq)({readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,n._)([(0,s.c)("esri.rest.support.ColorRamp")],a);const l=a},70516:(t,r,e)=>{e.d(r,{c:()=>h});var n,o=e(41948),i=e(62088),s=e(1580),a=(e(9456),e(66360),e(12552)),l=e(21432),u=e(3712);let c=n=class extends u.c{constructor(t){super(t),this.colorRamps=null,this.type="multipart"}clone(){return new n({colorRamps:(0,i.ct)(this.colorRamps)})}};(0,o._)([(0,s.qq)({type:[l.c],json:{write:!0}})],c.prototype,"colorRamps",void 0),(0,o._)([(0,s.qq)({type:["multipart"]})],c.prototype,"type",void 0),c=n=(0,o._)([(0,a.c)("esri.rest.support.MultipartColorRamp")],c);const h=c},55952:(t,r,e)=>{e.d(r,{h:()=>a,i:()=>s});var n=e(21432),o=e(3712),i=e(70516);const s={key:"type",base:o.c,typeMap:{algorithmic:n.c,multipart:i.c}};function a(t){return t?.type?"algorithmic"===t.type?n.c.fromJSON(t):"multipart"===t.type?i.c.fromJSON(t):null:null}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9896,8528],{44728:(t,r,e)=>{e.d(r,{c:()=>m});var n,o,i=e(46988),s=e(53648),a=e(53368);function l(t){return(0,s.qk)((0,a.Wu)(t),0,255)}function u(t,r,e){return t=Number(t),isNaN(t)?e:t<r?r:t>e?e:t}function c(t,r){const e=t.toString(16).padStart(2,"0");return r?e.substring(0,1):e}class h{static blendColors(t,r,e,n=new h){return n.r=Math.round(t.r+(r.r-t.r)*e),n.g=Math.round(t.g+(r.g-t.g)*e),n.b=Math.round(t.b+(r.b-t.b)*e),n.a=t.a+(r.a-t.a)*e,n._sanitize()}static fromRgb(t,r){const e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(e){const t=e[2].split(/\s*,\s*/),n=e[1];if("rgb"===n&&3===t.length||"rgba"===n&&4===t.length){const e=t[0];if("%"===e.charAt(e.length-1)){const e=t.map((t=>2.56*parseFloat(t)));return 4===t.length&&(e[3]=parseFloat(t[3])),h.fromArray(e,r)}return h.fromArray(t.map((t=>parseFloat(t))),r)}if("hsl"===n&&3===t.length||"hsla"===n&&4===t.length)return h.fromArray((0,i.ec)(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])),r)}return null}static fromHex(t,r=new h){if("#"!==t[0]||isNaN(Number(`0x${t.substring(1)}`)))return null;switch(t.length){case 4:case 5:{const e=parseInt(t.substring(1,2),16),n=parseInt(t.substring(2,3),16),o=parseInt(t.substring(3,4),16),i=5===t.length?15:parseInt(t.substring(4),16);return h.fromArray([e+16*e,n+16*n,o+16*o,(i+16*i)/255],r)}case 7:case 9:{const e=parseInt(t.substring(1,3),16),n=parseInt(t.substring(3,5),16),o=parseInt(t.substring(5,7),16),i=7===t.length?255:parseInt(t.substring(7),16);return h.fromArray([e,n,o,i/255],r)}default:return null}}static fromArray(t,r=new h){return r._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(r.a)&&(r.a=1),r._sanitize()}static fromString(t,r){const e=(0,i.kv)(t)?(0,i.SQ)(t):null;return e&&h.fromArray(e,r)||h.fromRgb(t,r)||h.fromHex(t,r)}static fromJSON(t){return null!=t?new h([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?h.fromString(t,this):Array.isArray(t)?h.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof h||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const r=t?.capitalize??!1,e=t?.digits??6,n=3===e||4===e,o=4===e||8===e,i=`#${c(this.r,n)}${c(this.g,n)}${c(this.b,n)}${o?c(Math.round(255*this.a),n):""}`;return r?i.toUpperCase():i}toCss(t=!1){const r=this.r+", "+this.g+", "+this.b;return t?`rgba(${r}, ${this.a})`:`rgb(${r})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=h.AlphaMode.ALWAYS){const r=l(this.r),e=l(this.g),n=l(this.b);return t===h.AlphaMode.ALWAYS||1!==this.a?[r,e,n,l(255*this.a)]:[r,e,n]}clone(){return new h(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(t,r,e,n){this.r=t,this.g=r,this.b=e,this.a=n}}h.prototype.declaredClass="esri.Color",n=h||(h={}),(o=n.AlphaMode||(n.AlphaMode={}))[o.ALWAYS=0]="ALWAYS",o[o.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const m=h},8528:(t,r,e)=>{e.d(r,{c:()=>n,g:()=>o});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},74784:(t,r,e)=>{e.d(r,{a:()=>M,b:()=>c,c:()=>o,e:()=>S,f:()=>s,g:()=>g,i:()=>f,j:()=>d,l:()=>y,n:()=>p,s:()=>i,t:()=>b});var n=e(47364);function o(t,r){return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t}function i(t,r,e,n,o){return t[0]=r,t[1]=e,t[2]=n,t[3]=o,t}function s(t,r,e){return t[0]=r[0]+e[0],t[1]=r[1]+e[1],t[2]=r[2]+e[2],t[3]=r[3]+e[3],t}function a(t,r,e){return t[0]=r[0]-e[0],t[1]=r[1]-e[1],t[2]=r[2]-e[2],t[3]=r[3]-e[3],t}function l(t,r,e){return t[0]=r[0]*e[0],t[1]=r[1]*e[1],t[2]=r[2]*e[2],t[3]=r[3]*e[3],t}function u(t,r,e){return t[0]=r[0]/e[0],t[1]=r[1]/e[1],t[2]=r[2]/e[2],t[3]=r[3]/e[3],t}function c(t,r,e){return t[0]=r[0]*e,t[1]=r[1]*e,t[2]=r[2]*e,t[3]=r[3]*e,t}function h(t,r){const e=r[0]-t[0],n=r[1]-t[1],o=r[2]-t[2],i=r[3]-t[3];return Math.sqrt(e*e+n*n+o*o+i*i)}function m(t,r){const e=r[0]-t[0],n=r[1]-t[1],o=r[2]-t[2],i=r[3]-t[3];return e*e+n*n+o*o+i*i}function f(t){const r=t[0],e=t[1],n=t[2],o=t[3];return Math.sqrt(r*r+e*e+n*n+o*o)}function d(t){const r=t[0],e=t[1],n=t[2],o=t[3];return r*r+e*e+n*n+o*o}function p(t,r){const e=r[0],n=r[1],o=r[2],i=r[3];let s=e*e+n*n+o*o+i*i;return s>0&&(s=1/Math.sqrt(s),t[0]=e*s,t[1]=n*s,t[2]=o*s,t[3]=i*s),t}function g(t,r){return t[0]*r[0]+t[1]*r[1]+t[2]*r[2]+t[3]*r[3]}function y(t,r,e,n){const o=r[0],i=r[1],s=r[2],a=r[3];return t[0]=o+n*(e[0]-o),t[1]=i+n*(e[1]-i),t[2]=s+n*(e[2]-s),t[3]=a+n*(e[3]-a),t}function b(t,r,e){const n=r[0],o=r[1],i=r[2],s=r[3];return t[0]=e[0]*n+e[4]*o+e[8]*i+e[12]*s,t[1]=e[1]*n+e[5]*o+e[9]*i+e[13]*s,t[2]=e[2]*n+e[6]*o+e[10]*i+e[14]*s,t[3]=e[3]*n+e[7]*o+e[11]*i+e[15]*s,t}function M(t,r){return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]&&t[3]===r[3]}function S(t,r){const e=t[0],o=t[1],i=t[2],s=t[3],a=r[0],l=r[1],u=r[2],c=r[3],h=(0,n.Au)();return Math.abs(e-a)<=h*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(o-l)<=h*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(i-u)<=h*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(s-c)<=h*Math.max(1,Math.abs(s),Math.abs(c))}const v=a,w=l,k=u,x=h,N=m,O=f,A=d;Object.freeze(Object.defineProperty({__proto__:null,add:s,ceil:function(t,r){return t[0]=Math.ceil(r[0]),t[1]=Math.ceil(r[1]),t[2]=Math.ceil(r[2]),t[3]=Math.ceil(r[3]),t},copy:o,copyVec3:function(t,r){return t[0]=r[0],t[1]=r[1],t[2]=r[2],t},dist:x,distance:h,div:k,divide:u,dot:g,equals:S,exactEquals:M,floor:function(t,r){return t[0]=Math.floor(r[0]),t[1]=Math.floor(r[1]),t[2]=Math.floor(r[2]),t[3]=Math.floor(r[3]),t},inverse:function(t,r){return t[0]=1/r[0],t[1]=1/r[1],t[2]=1/r[2],t[3]=1/r[3],t},len:O,length:f,lerp:y,max:function(t,r,e){return t[0]=Math.max(r[0],e[0]),t[1]=Math.max(r[1],e[1]),t[2]=Math.max(r[2],e[2]),t[3]=Math.max(r[3],e[3]),t},min:function(t,r,e){return t[0]=Math.min(r[0],e[0]),t[1]=Math.min(r[1],e[1]),t[2]=Math.min(r[2],e[2]),t[3]=Math.min(r[3],e[3]),t},mul:w,multiply:l,negate:function(t,r){return t[0]=-r[0],t[1]=-r[1],t[2]=-r[2],t[3]=-r[3],t},normalize:p,random:function(t,r){const e=n.QR;let o,i,s,a,l,u;r=r||1;do{o=2*e()-1,i=2*e()-1,l=o*o+i*i}while(l>=1);do{s=2*e()-1,a=2*e()-1,u=s*s+a*a}while(u>=1);const c=Math.sqrt((1-l)/u);return t[0]=r*o,t[1]=r*i,t[2]=r*s*c,t[3]=r*a*c,t},round:function(t,r){return t[0]=Math.round(r[0]),t[1]=Math.round(r[1]),t[2]=Math.round(r[2]),t[3]=Math.round(r[3]),t},scale:c,scaleAndAdd:function(t,r,e,n){return t[0]=r[0]+e[0]*n,t[1]=r[1]+e[1]*n,t[2]=r[2]+e[2]*n,t[3]=r[3]+e[3]*n,t},set:i,sqrDist:N,sqrLen:A,squaredDistance:m,squaredLength:d,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:v,subtract:a,transformMat4:b,transformQuat:function(t,r,e){const n=r[0],o=r[1],i=r[2],s=e[0],a=e[1],l=e[2],u=e[3],c=u*n+a*i-l*o,h=u*o+l*n-s*i,m=u*i+s*o-a*n,f=-s*n-a*o-l*i;return t[0]=c*u+f*-s+h*-l-m*-a,t[1]=h*u+f*-a+m*-s-c*-l,t[2]=m*u+f*-l+c*-a-h*-s,t[3]=r[3],t}},Symbol.toStringTag,{value:"Module"}))},46988:(t,r,e)=>{e.d(r,{SQ:()=>i,ec:()=>l,kv:()=>o,uO:()=>s,yU:()=>u});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function o(t){return!!n[t]||!!n[t.toLowerCase()]}function i(t){return n[t]??n[t.toLowerCase()]}function s(t){return[...i(t)]}function a(t,r,e){e<0&&++e,e>1&&--e;const n=6*e;return n<1?t+(r-t)*n:2*e<1?r:3*e<2?t+(r-t)*(2/3-e)*6:t}function l(t,r,e,n=1){const o=(t%360+360)%360/360,i=e<=.5?e*(r+1):e+r-e*r,s=2*e-i;return[Math.round(255*a(s,i,o+1/3)),Math.round(255*a(s,i,o)),Math.round(255*a(s,i,o-1/3)),n]}function u(t){const r=t.length>5,e=r?8:4,n=(1<<e)-1,o=r?1:17,i=r?9===t.length:5===t.length;let s=Number("0x"+t.substr(1));if(isNaN(s))return null;const a=[0,0,0,1];let l;return i&&(l=s&n,s>>=e,a[3]=o*l/255),l=s&n,s>>=e,a[2]=o*l,l=s&n,s>>=e,a[1]=o*l,l=s&n,s>>=e,a[0]=o*l,a}},9592:(t,r,e)=>{e.d(r,{n:()=>o});var n=e(50504);class o extends n.g{notify(){const t=this._observers;if(t&&t.length>0){const r=t.slice();for(const t of r)t.onInvalidated(),t.onCommitted()}}}},27576:(t,r,e)=>{function n(t){return"r"in t&&"g"in t&&"b"in t}function o(t){return"h"in t&&"s"in t&&"v"in t}function i(t){return"l"in t&&"a"in t&&"b"in t}function s(t){return"l"in t&&"c"in t&&"h"in t}e.d(r,{AE:()=>d,Ij:()=>y,SJ:()=>g,_X:()=>p,eQ:()=>n}),e(44728),e(74784),e(37008);const a=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],l=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function u(t,r){const e=[];let n,o;if(t[0].length!==r.length)throw new Error("dimensions do not match");const i=t.length,s=t[0].length;let a=0;for(n=0;n<i;n++){for(a=0,o=0;o<s;o++)a+=t[n][o]*r[o];e.push(a)}return e}function c(t){const r=[t.r/255,t.g/255,t.b/255].map((t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4)),e=u(a,r);return{x:100*e[0],y:100*e[1],z:100*e[2]}}function h(t){const r=u(l,[t.x/100,t.y/100,t.z/100]).map((t=>{const r=t<=.0031308?12.92*t:1.055*t**(1/2.4)-.055;return Math.min(1,Math.max(r,0))}));return{r:Math.round(255*r[0]),g:Math.round(255*r[1]),b:Math.round(255*r[2])}}function m(t){const r=[t.x/95.047,t.y/100,t.z/108.883].map((t=>t>(6/29)**3?t**(1/3):1/3*(29/6)**2*t+4/29));return{l:116*r[1]-16,a:500*(r[0]-r[1]),b:200*(r[1]-r[2])}}function f(t){const r=t.l,e=[(r+16)/116+t.a/500,(r+16)/116,(r+16)/116-t.b/200].map((t=>t>6/29?t**3:3*(6/29)**2*(t-4/29)));return{x:95.047*e[0],y:100*e[1],z:108.883*e[2]}}function d(t){return n(t)?t:s(t)?function(t){return h(f(function(t){const r=t.l,e=t.c,n=t.h;return{l:r,a:e*Math.cos(n),b:e*Math.sin(n)}}(t)))}(t):i(t)?function(t){return h(f(t))}(t):function(t){return"x"in t&&"y"in t&&"z"in t}(t)?h(t):o(t)?function(t){const r=(t.h+360)%360/60,e=t.s/100,n=t.v/100*255,o=n*e,i=o*(1-Math.abs(r%2-1));let s;switch(Math.floor(r)){case 0:s={r:o,g:i,b:0};break;case 1:s={r:i,g:o,b:0};break;case 2:s={r:0,g:o,b:i};break;case 3:s={r:0,g:i,b:o};break;case 4:s={r:i,g:0,b:o};break;case 5:case 6:s={r:o,g:0,b:i};break;default:s={r:0,g:0,b:0}}return s.r=Math.round(s.r+n-o),s.g=Math.round(s.g+n-o),s.b=Math.round(s.b+n-o),s}(t):t}function p(t){return o(t)?t:function(t){const r=t.r,e=t.g,n=t.b,o=Math.max(r,e,n),i=o-Math.min(r,e,n);let s=o,a=0===i?0:o===r?(e-n)/i%6:o===e?(n-r)/i+2:(r-e)/i+4,l=0===i?0:i/s;return a<0&&(a+=6),a*=60,l*=100,s*=100/255,{h:a,s:l,v:s}}(d(t))}function g(t){return i(t)?t:function(t){return m(c(t))}(d(t))}function y(t){return s(t)?t:function(t){return function(t){const r=t.l,e=t.a,n=t.b,o=Math.sqrt(e*e+n*n);let i=Math.atan2(n,e);return i=i>0?i:i+2*Math.PI,{l:r,c:o,h:i}}(m(c(t)))}(d(t))}var b,M;(M=b||(b={}))[M.Low=160]="Low",M[M.High=225]="High"},37008:(t,r,e)=>{function n(){return[0,0,0,0]}function o(t,r,e,n){return[t,r,e,n]}function i(){return o(1,1,1,1)}function s(){return o(1,0,0,0)}function a(){return o(0,1,0,0)}function l(){return o(0,0,1,0)}function u(){return o(0,0,0,1)}e.d(r,{Su:()=>n,WK:()=>o});const c=i(),h=s(),m=a(),f=l(),d=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_W:d,UNIT_X:h,UNIT_Y:m,UNIT_Z:f,ZEROS:[0,0,0,0],clone:function(t){return[t[0],t[1],t[2],t[3]]},create:n,createView:function(t,r){return new Float64Array(t,r,4)},fromArray:function(t,r=[0,0,0,0]){const e=Math.min(4,t.length);for(let n=0;n<e;++n)r[n]=t[n];return r},fromValues:o,ones:i,unitW:u,unitX:s,unitY:a,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},60708:(t,r,e)=>{e.d(r,{Su:()=>c});var n=e(53368),o=e(95247),i=e(50853),s=e(53004),a=e(67776),l=e(7488),u=e(48516);e(56156),e(97492),e(6704);const c={base:i.c,key:"type",typeMap:{extent:o.c,multipoint:s.c,point:a.c,polyline:u.c,polygon:l.c}};(0,n.S2)(c)},6704:(t,r,e)=>{e.d(r,{Ce:()=>p,Cs:()=>f,Ul:()=>u,_:()=>c,_x:()=>h,cZ:()=>m,h4:()=>d,uG:()=>y});var n=e(95247),o=e(50853),i=e(53004),s=e(67776),a=e(7488),l=e(48516);function u(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function c(t){return void 0!==t.points}function h(t){return void 0!==t.x&&void 0!==t.y}function m(t){return void 0!==t.paths}function f(t){return void 0!==t.rings}function d(t){return null==t?null:t instanceof o.c?t:h(t)?s.c.fromJSON(t):m(t)?l.c.fromJSON(t):f(t)?a.c.fromJSON(t):c(t)?i.c.fromJSON(t):u(t)?n.c.fromJSON(t):null}function p(t){return t?h(t)?"esriGeometryPoint":m(t)?"esriGeometryPolyline":f(t)?"esriGeometryPolygon":u(t)?"esriGeometryEnvelope":c(t)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:s.c,esriGeometryPolyline:l.c,esriGeometryPolygon:a.c,esriGeometryEnvelope:n.c,esriGeometryMultipoint:i.c};function y(t){return t&&g[t]||null}},97492:(t,r,e)=>{e.d(r,{U:()=>o,j:()=>i});var n=e(14628);const o=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),i=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},91496:(t,r,e)=>{e.r(r),e.d(r,{default:()=>g}),e(60708);var n=e(9976),o=e(66820),i=e(34084),s=e(26852),a=e(89004),l=e(25404),u=e(72116),c=e(32876),h=e(95280),m=e(61944),f=e(46320),d=e(95247),p=e(67776);class g{convertVectorFieldData(t){const r=o.c.fromJSON(t.pixelBlock),e=(0,c.Ws)(r,t.type);return Promise.resolve(null!=e?e.toJSON():null)}computeStatisticsHistograms(t){const r=o.c.fromJSON(t.pixelBlock),e=(0,u.SA)(r);return Promise.resolve(e)}async decode(t){const r=await(0,i.Y)(t.data,t.options);return r&&r.toJSON()}symbolize(t){t.pixelBlock=o.c.fromJSON(t.pixelBlock),t.extent=t.extent?d.c.fromJSON(t.extent):null;const r=this.symbolizer.symbolize(t);return Promise.resolve(null!=r?r.toJSON():null)}async updateSymbolizer(t){this.symbolizer=m.c.fromJSON(t.symbolizerJSON),t.histograms&&"rasterStretch"===this.symbolizer?.rendererJSON.type&&(this.symbolizer.rendererJSON.histograms=t.histograms)}async updateRasterFunction(t){this.rasterFunction=(0,a.Su)(t.rasterFunctionJSON)}async process(t){const r=this.rasterFunction.process({extent:d.c.fromJSON(t.extent),primaryPixelBlocks:t.primaryPixelBlocks.map((t=>null!=t?o.c.fromJSON(t):null)),primaryPixelSizes:t.primaryPixelSizes?.map((t=>null!=t?p.c.fromJSON(t):null)),primaryRasterIds:t.primaryRasterIds});return null!=r?r.toJSON():null}stretch(t){const r=this.symbolizer.simpleStretch(o.c.fromJSON(t.srcPixelBlock),t.stretchParams);return Promise.resolve(r?.toJSON())}estimateStatisticsHistograms(t){const r=(0,u.CW)(o.c.fromJSON(t.srcPixelBlock));return Promise.resolve(r)}split(t){const r=(0,s.SG)(o.c.fromJSON(t.srcPixelBlock),t.tileSize,t.maximumPyramidLevel??0,!1===t.useBilinear);return r&&r.forEach(((t,e)=>{r.set(e,t?.toJSON())})),Promise.resolve(r)}clipTile(t){const r=o.c.fromJSON(t.pixelBlock),e=(0,s.qM)({...t,pixelBlock:r});return Promise.resolve(e?.toJSON())}async mosaicAndTransform(t){const r=t.srcPixelBlocks.map((t=>t?new o.c(t):null)),e=(0,s.Gw)(r,t.srcMosaicSize,{blockWidths:t.blockWidths,alignmentInfo:t.alignmentInfo,clipOffset:t.clipOffset,clipSize:t.clipSize});let n,i=e;return t.coefs&&(i=(0,s.S0)(e,t.destDimension,t.coefs,t.sampleSpacing,t.interpolation)),t.projectDirections&&t.gcsGrid&&(n=(0,s.O8)(t.destDimension,t.gcsGrid),i=(0,c.UB)(i,t.isUV?"vector-uv":"vector-magdir",n)),{pixelBlock:i?.toJSON(),localNorthDirections:n}}async createFlowMesh(t,r){const e={data:new Float32Array(t.flowData.buffer),mask:new Uint8Array(t.flowData.maskBuffer),width:t.flowData.width,height:t.flowData.height},{vertexData:n,indexData:o}=await(0,f.__)(t.meshType,t.simulationSettings,e,r.signal);return{result:{vertexBuffer:n.buffer,indexBuffer:o.buffer},transferList:[n.buffer,o.buffer]}}async getProjectionOffsetGrid(t){const r=d.c.fromJSON(t.projectedExtent),e=d.c.fromJSON(t.srcBufferExtent);let o=null;t.datumTransformationSteps&&(o=new n.c({steps:t.datumTransformationSteps})),(t.includeGCSGrid||(0,l.S0)(r.spatialReference,e.spatialReference,o))&&await(0,l.AJ)();const i=t.rasterTransform?(0,h.O)(t.rasterTransform):null;return(0,l.iG)({...t,projectedExtent:r,srcBufferExtent:e,datumTransformation:o,rasterTransform:i})}}},21432:(t,r,e)=>{e.d(r,{c:()=>f});var n,o=e(41948),i=e(44728),s=e(62088),a=e(1580),l=e(53368),u=e(9968),c=e(12552),h=e(3712);let m=n=class extends h.c{constructor(t){super(t),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new n({fromColor:(0,s.ct)(this.fromColor),toColor:(0,s.ct)(this.toColor),algorithm:this.algorithm})}};(0,o._)([(0,u.G)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],m.prototype,"algorithm",void 0),(0,o._)([(0,a.qq)({type:i.c,json:{type:[l.Ab],write:!0}})],m.prototype,"fromColor",void 0),(0,o._)([(0,a.qq)({type:i.c,json:{type:[l.Ab],write:!0}})],m.prototype,"toColor",void 0),(0,o._)([(0,a.qq)({type:["algorithmic"]})],m.prototype,"type",void 0),m=n=(0,o._)([(0,c.c)("esri.rest.support.AlgorithmicColorRamp")],m);const f=m},3712:(t,r,e)=>{e.d(r,{c:()=>l});var n=e(41948),o=e(40504),i=e(1580),s=(e(9456),e(66360),e(72052),e(12552));let a=class extends o.am{constructor(t){super(t),this.type=null}};(0,n._)([(0,i.qq)({readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,n._)([(0,s.c)("esri.rest.support.ColorRamp")],a);const l=a},70516:(t,r,e)=>{e.d(r,{c:()=>h});var n,o=e(41948),i=e(62088),s=e(1580),a=(e(9456),e(66360),e(12552)),l=e(21432),u=e(3712);let c=n=class extends u.c{constructor(t){super(t),this.colorRamps=null,this.type="multipart"}clone(){return new n({colorRamps:(0,i.ct)(this.colorRamps)})}};(0,o._)([(0,s.qq)({type:[l.c],json:{write:!0}})],c.prototype,"colorRamps",void 0),(0,o._)([(0,s.qq)({type:["multipart"]})],c.prototype,"type",void 0),c=n=(0,o._)([(0,a.c)("esri.rest.support.MultipartColorRamp")],c);const h=c},55952:(t,r,e)=>{e.d(r,{h:()=>a,i:()=>s});var n=e(21432),o=e(3712),i=e(70516);const s={key:"type",base:o.c,typeMap:{algorithmic:n.c,multipart:i.c}};function a(t){return t?.type?"algorithmic"===t.type?n.c.fromJSON(t):"multipart"===t.type?i.c.fromJSON(t):null:null}}}]);