@arcgis/core 5.2.0-next.61 → 5.2.0-next.62
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.
- package/applications/Components/imageryUtils.d.ts +10 -0
- package/applications/Components/imageryUtils.js +1 -1
- package/arcgisGlobal.d.ts +2 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{3abc12d2407e4214963d.js → 13033178de9f637a2356.js} +1 -1
- package/assets/esri/core/workers/chunks/{d205edd949f3e6e24eb9.js → 147a89553188cc6aabf4.js} +1 -1
- package/assets/esri/core/workers/chunks/{3157f85bb319294878ca.js → 1b68b1b724ad30396723.js} +2 -2
- package/assets/esri/core/workers/chunks/{127b111ee53e4b9184f8.js → 4dcd4a052b40047a9230.js} +1 -1
- package/assets/esri/core/workers/chunks/{aaa66a04b882b0ba2961.js → 5600fc334d20c4f0c83d.js} +1 -1
- package/assets/esri/core/workers/chunks/{14c066c31fe37b7f6e63.js → 638ed1297efdb24f4711.js} +1 -1
- package/assets/esri/core/workers/chunks/{42692a4ce3fb364e321e.js → 763cbb6716e398436a6d.js} +1 -1
- package/assets/esri/core/workers/chunks/{d6aad815fc0ee8e24bb5.js → 7ce52b850dd785bfa33f.js} +1 -1
- package/assets/esri/core/workers/chunks/{81659d121ed732bda907.js → a12803108c3b12808698.js} +2 -2
- package/assets/esri/core/workers/chunks/{5527b2da4abe0faa98bb.js → a494abeb026d536d9fae.js} +1 -1
- package/assets/esri/core/workers/chunks/{498d29e8c8be4a12ba12.js → b958f87f23f984131d09.js} +1 -1
- package/assets/esri/core/workers/chunks/{4e2f3dd158a5228c87ba.js → c85ba0700eafdc8d6f9e.js} +1 -1
- package/assets/esri/core/workers/chunks/{edf87407dd20685c82ab.js → e287113777a94ded8de6.js} +1 -1
- package/assets/esri/core/workers/chunks/{a615a644086e98a90579.js → f4891345507df63cff3c.js} +2 -2
- package/assets/esri/core/workers/chunks/{4fb549f11e176fc2f24a.js → f7fa932ade85cb2847b6.js} +1 -1
- package/config.js +1 -1
- package/core/screenUtils.js +1 -1
- package/geometry/support/intersectsBase.js +1 -1
- package/interfaces.d.ts +14 -0
- package/kernel.js +1 -1
- package/package.json +3 -3
- package/popup/FeatureContent.d.ts +311 -0
- package/popup/FeatureContent.js +2 -0
- package/popup/FeatureContentCollection.d.ts +569 -0
- package/popup/FeatureContentCollection.js +2 -0
- package/support/revision.js +1 -1
- package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
- package/views/2d/layers/BaseLayerView2D.d.ts +2 -2
- package/views/2d/layers/BaseLayerViewGL2D.d.ts +2 -2
- package/views/2d/layers/graphics/GraphicStore.js +1 -1
- package/views/2d/support/hitTestUtils.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/MediaLayerView3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
- package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
- package/views/3d/state/controllers/ZoomStepControllerGlobal.js +1 -1
- package/views/3d/state/controllers/ZoomStepControllerLocal.js +1 -1
- package/views/3d/support/buffer/glUtil.js +1 -1
- package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatFadeTexture.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatOrderTexture.js +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +1 -1
- package/views/3d/webgl-engine/core/FBOCacheUsage.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +11 -11
- package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBuffer.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferFieldCreation.js +1 -1
- package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodResources.js +1 -1
- package/views/3d/webgl-engine/lib/screenPolygonTriangleIntersections.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/View2D.d.ts +2 -2
- package/views/interactive/snapping/featureSources/WorkerTileTreeDebugger.js +1 -1
- package/views/webgl/FramebufferObject.js +1 -1
- package/widgets/Legend/support/heatmapRampUtils.js +1 -1
- /package/assets/esri/core/workers/chunks/{81659d121ed732bda907.js.LICENSE.txt → a12803108c3b12808698.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6661],{48163(t,n,e){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function a(){return i(1,1)}function s(){return i(-1,-1)}function u(){return i(1,0)}function c(){return i(0,1)}e.d(n,{fA:()=>i,o8:()=>o,vt:()=>r});const f=a(),l=s(),h=u(),d=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:l,ONES:f,UNIT_X:h,UNIT_Y:d,ZEROS:[0,0],clone:o,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,negativeOnes:s,ones:a,unitX:u,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["IA",0,l,"Un",0,f])},51850(t,n,e){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function i(t,n,e){return[t,n,e]}function a(t,n,e){return[t,n,e]}function s(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function u(){return[0,0,0]}function c(){return i(1,1,1)}function f(){return i(1,0,0)}function l(){return i(0,1,0)}function h(){return i(0,0,1)}e.d(n,{CN:()=>a,S:()=>c,Ul:()=>u,ci:()=>s,fA:()=>i,o8:()=>o,vt:()=>r});const d=[0,0,0],m=c(),M=f(),g=l(),y=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:M,UNIT_Y:g,UNIT_Z:y,ZEROS:d,clone:o,create:r,freeze:a,fromArray:s,fromValues:i,ones:c,unitX:f,unitY:l,unitZ:h,zeros:u},Symbol.toStringTag,{value:"Module"})),e.d(n,["Cb",0,y,"Cw",0,M,"JP",0,g,"Un",0,m,"uY",0,d])},91829(t,n,e){function r(){return[0,0,0,0]}function o(t,n,e,r){return[t,n,e,r]}function i(t,n,e,r){return[t,n,e,r]}function a(){return o(1,1,1,1)}function s(){return o(1,0,0,0)}function u(){return o(0,1,0,0)}function c(){return o(0,0,1,0)}function f(){return o(0,0,0,1)}e.d(n,{CN:()=>i,_Y:()=>f,fA:()=>o,vt:()=>r});const l=[0,0,0,0],h=a(),d=s(),m=u(),M=c(),g=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:g,UNIT_X:d,UNIT_Y:m,UNIT_Z:M,ZEROS:l,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:i,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:o,ones:a,unitW:f,unitX:s,unitY:u,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,h,"uY",0,l])},34304(t,n,e){e.d(n,{DF:()=>u,FD:()=>o,ct:()=>c});let r=1e-6;function o(){return r}const i=Math.random,a=Math.PI/180,s=180/Math.PI;function u(t){return t*a}function c(t){return t*s}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:c,toRadian:u},Symbol.toStringTag,{value:"Module"})),e.d(n,["Ov",0,i])},37585(t,n,e){e.d(n,{C:()=>i,Cc:()=>_,Io:()=>g,LI:()=>d,Ln:()=>M,Om:()=>A,Re:()=>u,S8:()=>v,T9:()=>l,WQ:()=>s,aI:()=>U,e$:()=>S,hG:()=>y,hZ:()=>a,hs:()=>m,l0:()=>x,qE:()=>h,t2:()=>I,ze:()=>w});var r=e(34727),o=e(34304);function i(t,n){return t[0]=n[0],t[1]=n[1],t}function a(t,n,e){return t[0]=n,t[1]=e,t}function s(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t}function c(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t}function f(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t}function l(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t}function h(t,n,e,o){return t[0]=(0,r.qE)(n[0],e[0],o[0]),t[1]=(0,r.qE)(n[1],e[1],o[1]),t}function d(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t}function m(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t}function M(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t}function g(t,n){const e=n[0]-t[0],r=n[1]-t[1];return Math.sqrt(e*e+r*r)}function y(t,n){const e=n[0]-t[0],r=n[1]-t[1];return e*e+r*r}function p(t){const n=t[0],e=t[1];return Math.sqrt(n*n+e*e)}function b(t){const n=t[0],e=t[1];return n*n+e*e}function w(t,n){return t[0]=-n[0],t[1]=-n[1],t}function v(t,n){const e=n[0],r=n[1];let o=e*e+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=n[0]*o,t[1]=n[1]*o),t}function A(t,n){return t[0]*n[0]+t[1]*n[1]}function _(t,n,e,r){const o=n[0],i=n[1];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t}function x(t,n,e){const r=n[0],o=n[1];return t[0]=e[0]*r+e[2]*o+e[4],t[1]=e[1]*r+e[3]*o+e[5],t}function S(t,n,e,r){const o=n[0]-e[0],i=n[1]-e[1],a=Math.sin(r),s=Math.cos(r);return t[0]=o*s-i*a+e[0],t[1]=o*a+i*s+e[1],t}function I(t,n){return t[0]===n[0]&&t[1]===n[1]}function U(t,n){const e=t[0],r=t[1],i=n[0],a=n[1],s=(0,o.FD)();return Math.abs(e-i)<=s*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(r-a)<=s*Math.max(1,Math.abs(r),Math.abs(a))}const O=p,E=u,T=c,q=f,N=g,C=y,z=b;Object.freeze(Object.defineProperty({__proto__:null,add:s,angle:function(t,n){const e=t[0],r=t[1],o=n[0],i=n[1];let a=e*e+r*r;a>0&&(a=1/Math.sqrt(a));let s=o*o+i*i;s>0&&(s=1/Math.sqrt(s));const u=(e*o+r*i)*a*s;return u>1?0:u<-1?Math.PI:Math.acos(u)},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t},clamp:h,copy:i,cross:function(t,n,e){const r=n[0]*e[1]-n[1]*e[0];return t[0]=t[1]=0,t[2]=r,t},dist:N,distance:g,div:q,divide:f,dot:A,equals:U,exactEquals:I,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t},len:O,length:p,lerp:_,max:l,min:function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t},mul:T,multiply:c,negate:w,normalize:v,projectAndScale:function(t,n,e,r,o){let i=n[0]-e[0],a=n[1]-e[1];const s=(r[0]*i+r[1]*a)*(o-1);return i=r[0]*s,a=r[1]*s,t[0]=n[0]+i,t[1]=n[1]+a,t},random:function(t,n=1){const e=2*(0,o.Ov)()*Math.PI;return t[0]=Math.cos(e)*n,t[1]=Math.sin(e)*n,t},rotate:S,round:d,scale:m,scaleAndAdd:M,set:a,sqrDist:C,sqrLen:z,squaredDistance:y,squaredLength:b,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:E,subtract:u,transformMat2:function(t,n,e){const r=n[0],o=n[1];return t[0]=e[0]*r+e[2]*o,t[1]=e[1]*r+e[3]*o,t},transformMat2d:x,transformMat3:function(t,n,e){const r=n[0],o=n[1];return t[0]=e[0]*r+e[3]*o+e[6],t[1]=e[1]*r+e[4]*o+e[7],t},transformMat4:function(t,n,e){const r=n[0],o=n[1];return t[0]=e[0]*r+e[4]*o+e[12],t[1]=e[1]*r+e[5]*o+e[13],t}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Il",0,O,"jb",0,E,"xg",0,N])},35522(t,n,e){e.d(n,{$A:()=>S,Bw:()=>i,C:()=>a,Cc:()=>I,DI:()=>A,Io:()=>p,Ln:()=>y,Om:()=>x,Qr:()=>l,Re:()=>c,S8:()=>_,T9:()=>M,WQ:()=>u,Z0:()=>U,_S:()=>d,aI:()=>B,ei:()=>O,fw:()=>T,g7:()=>q,gL:()=>E,hG:()=>b,hZ:()=>s,hs:()=>g,jk:()=>m,lw:()=>f,m3:()=>w,oW:()=>L,t2:()=>z,tn:()=>h,ze:()=>v});var r=e(51850),o=e(34304);function i(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function s(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function u(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],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}function f(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function l(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function d(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(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}function M(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}function g(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function y(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}function p(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(e*e+r*r+o*o)}function b(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return e*e+r*r+o*o}function w(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function v(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function A(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function _(t,n){const e=n[0],r=n[1],o=n[2];let i=e*e+r*r+o*o;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i),t}function x(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function S(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],u=e[2];return t[0]=o*u-i*s,t[1]=i*a-r*u,t[2]=r*s-o*a,t}function I(t,n,e,r){const o=n[0],i=n[1],a=n[2];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t}function U(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12],t[1]=e[1]*r+e[5]*o+e[9]*i+e[13],t[2]=e[2]*r+e[6]*o+e[10]*i+e[14],t}function O(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0]+o*e[3]+i*e[6],t[1]=r*e[1]+o*e[4]+i*e[7],t[2]=r*e[2]+o*e[5]+i*e[8],t}function E(t,n,e){return T(t,n,e[0],e[1],e[2],e[3])}function T(t,n,e,r,o,i){const a=n[0],s=n[1],u=n[2],c=r*u-o*s,f=o*a-e*u,l=e*s-r*a,h=r*l-o*f,d=o*c-e*l,m=e*f-r*c,M=2*i;return t[0]=a+c*M+2*h,t[1]=s+f*M+2*d,t[2]=u+l*M+2*m,t}function q(t,n){_(N,t),_(C,n);const e=x(N,C);return e>1?0:e<-1?Math.PI:Math.acos(e)}const N=(0,r.vt)(),C=(0,r.vt)();function z(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function B(t,n){if(t===n)return!0;const e=t[0],r=t[1],i=t[2],a=n[0],s=n[1],u=n[2],c=(0,o.FD)();return Math.abs(e-a)<=c*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(r-s)<=c*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-u)<=c*Math.max(1,Math.abs(i),Math.abs(u))}function L(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],i=e[2]-n[2];let a=r*r+o*o+i*i;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=o*a,t[2]=i*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const P=c,V=f,R=l,j=p,W=b,D=i,F=w;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:u,angle:q,bezier:function(t,n,e,r,o,i){const a=1-i,s=a*a,u=i*i,c=s*a,f=3*i*s,l=3*u*a,h=u*i;return t[0]=n[0]*c+e[0]*f+r[0]*l+o[0]*h,t[1]=n[1]*c+e[1]*f+r[1]*l+o[1]*h,t[2]=n[2]*c+e[2]*f+r[2]*l+o[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:a,cross:S,crossAndNormalize:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],u=e[2],c=o*u-i*s,f=i*a-r*u,l=r*s-o*a,h=Math.sqrt(c*c+f*f+l*l);return t[0]=c/h,t[1]=f/h,t[2]=l/h,t},direction:L,dist:j,distance:p,div:R,divide:l,dot:x,equals:B,exactEquals:z,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,o,i){const a=i*i,s=a*(2*i-3)+1,u=a*(i-2)+i,c=a*(i-1),f=a*(3-2*i);return t[0]=n[0]*s+e[0]*u+r[0]*c+o[0]*f,t[1]=n[1]*s+e[1]*u+r[1]*c+o[1]*f,t[2]=n[2]*s+e[2]*u+r[2]*c+o[2]*f,t},inverse:A,len:D,length:i,lerp:I,max:M,min:m,mul:V,multiply:f,negate:v,normalize:_,random:function(t,n=1){const e=o.Ov,r=2*e()*Math.PI,i=2*e()-1,a=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=i*n,t},rotateX:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateY:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateZ:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],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},scale:g,scaleAndAdd:y,set:s,sign:d,sqrDist:W,sqrLen:F,squaredDistance:b,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:P,subtract:c,transformMat3:O,transformMat4:U,transformMat4Z:function(t,n){return n[2]*t[0]+n[6]*t[1]+n[10]*t[2]+n[14]},transformQuat:E,transformQuatValues:T},Symbol.toStringTag,{value:"Module"})),e.d(n,["Il",0,D,"jb",0,P,"lo",0,W,"uE",0,F,"xg",0,j])},78955(t,n,e){e.d(n,{Bw:()=>g,C:()=>o,Cc:()=>w,LI:()=>h,Om:()=>b,S8:()=>p,T9:()=>l,WQ:()=>a,Z0:()=>v,aI:()=>_,hG:()=>M,hZ:()=>i,hs:()=>d,jk:()=>f,m3:()=>y,t2:()=>A});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function i(t,n,e,r,o){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t}function a(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 u(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]=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}function l(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}function h(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}function d(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 m(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],i=n[3]-t[3];return Math.sqrt(e*e+r*r+o*o+i*i)}function M(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],i=n[3]-t[3];return e*e+r*r+o*o+i*i}function g(t){const n=t[0],e=t[1],r=t[2],o=t[3];return Math.sqrt(n*n+e*e+r*r+o*o)}function y(t){const n=t[0],e=t[1],r=t[2],o=t[3];return n*n+e*e+r*r+o*o}function p(t,n){const e=n[0],r=n[1],o=n[2],i=n[3];let a=e*e+r*r+o*o+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e*a,t[1]=r*a,t[2]=o*a,t[3]=i*a),t}function b(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function w(t,n,e,r){const o=n[0],i=n[1],a=n[2],s=n[3];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t[3]=s+r*(e[3]-s),t}function v(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*o+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*o+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*o+e[11]*i+e[15]*a,t}function A(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function _(t,n){const e=t[0],o=t[1],i=t[2],a=t[3],s=n[0],u=n[1],c=n[2],f=n[3],l=(0,r.FD)();return Math.abs(e-s)<=l*Math.max(1,Math.abs(e),Math.abs(s))&&Math.abs(o-u)<=l*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(i-c)<=l*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(a-f)<=l*Math.max(1,Math.abs(a),Math.abs(f))}const x=s,S=u,I=c,U=m,O=M,E=g,T=y;Object.freeze(Object.defineProperty({__proto__:null,add:a,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:o,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:U,distance:m,div:I,divide:c,dot:b,equals:_,exactEquals:A,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:E,length:g,lerp:w,max:l,min:f,mul:S,multiply:u,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:p,random:function(t,n=1){const e=r.Ov;let o,i,a,s,u,c;do{o=2*e()-1,i=2*e()-1,u=o*o+i*i}while(u>=1);do{a=2*e()-1,s=2*e()-1,c=a*a+s*s}while(c>=1);const f=Math.sqrt((1-u)/c);return t[0]=n*o,t[1]=n*i,t[2]=n*a*f,t[3]=n*s*f,t},round:h,scale:d,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:i,sqrDist:O,sqrLen:T,squaredDistance:M,squaredLength:y,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:x,subtract:s,transformMat4:v,transformQuat:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],u=e[2],c=e[3],f=c*r+s*i-u*o,l=c*o+u*r-a*i,h=c*i+a*o-s*r,d=-a*r-s*o-u*i;return t[0]=f*c+d*-a+l*-u-h*-s,t[1]=l*c+d*-s+h*-a-f*-u,t[2]=h*c+d*-u+f*-s-l*-a,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},97146(t,n,e){e.d(n,{Dg:()=>i,lC:()=>s,my:()=>a,tM:()=>l,uW:()=>o});var r=e(34275);function o(t){return i(t,!0)}function i(t,n){if(Array.isArray(t)){if(t.length<1024)return t}else if(t.length<1024)return Array.from(t);let e=!0,o=!0;return t.some((t,n)=>(e=e&&0===t,o=o&&t===n,!e&&!o)),e?function(t){if(1===t)return c;if(t<1024)return new Array(t).fill(0);if(t>d.length){const n=Math.max(2*d.length,t);d=new Uint8Array(n)}return new Uint8Array(d.buffer,0,t)}(t.length):o?l(t.length):(0,r.iu)(t)&&t.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?t:function(t,n){for(const e of t){if(e>=65536)return(0,r.iu)(t)?t:new Uint32Array(t);e>=256&&(n=!1)}return n?new Uint8Array(t):new Uint16Array(t)}(t,!n)}function a(t,n=t){return t<=1024?new Array(t):n<=65536?new Uint16Array(t):new Uint32Array(t)}function s(t,n,e){if(0===n.length)return t.slice();if(0===t.length)return n.slice();const r=a(t.length+n.length,e);for(let n=0;n<t.length;++n)r[n]=t[n];for(let e=0;e<n.length;++e)r[t.length+e]=n[e];return r}let u=h(131072);const c=[0],f=(()=>{const t=new Uint16Array(65536);for(let n=0;n<t.length;++n)t[n]=n;return t})();function l(t){return 1===t?c:t<1024?Array.from(new Uint16Array(f.buffer,0,t)):t<f.length?new Uint16Array(f.buffer,0,t):(t>u.length&&(u=h(Math.max(2*u.length,t))),new Uint32Array(u.buffer,0,t))}function h(t){const n=new Uint32Array(t);for(let t=0;t<n.length;t++)n[t]=t;return n}let d=new Uint8Array(65536)},10614(t,n,e){e.d(n,{Tz:()=>a,aT:()=>i});var r=e(34727),o=e(35522);function i(t,n,e,r,o,i=2,a=0){const u=1/(Math.abs(e)+Math.abs(r)+Math.abs(o)),c=e*u,f=r*u,l=o<=0?(c>=0?1:-1)*(1-Math.abs(f)):c,h=o<=0?(f>=0?1:-1)*(1-Math.abs(c)):f,d=n*i+a;t[d]=s(l),t[d+1]=s(h)}function a(t,n,e,r=2,i=0){const a=e*r+i,s=u(n[a]),c=u(n[a+1]),f=1-Math.abs(s)-Math.abs(c);return t[2]=f,f<0?(t[0]=(s>=0?1:-1)*(1-Math.abs(c)),t[1]=(c>=0?1:-1)*(1-Math.abs(s))):(t[0]=s,t[1]=c),(0,o.S8)(t,t)}function s(t){return(0,r.qE)(Math.round(32767*t),-32767,32767)}function u(t){return(0,r.qE)(t/32767,-1,1)}e(51850)},52728(t,n,e){e.d(n,{m:()=>g});var r=e(63907);class o{constructor(t){this.internalFormat=t,this.channelByteStride=4,this.dataType=r.ld.UNSIGNED_INT,this.elementArrayConstructor=Uint32Array,this.pixelFormat=a[t],this.channels=i[this.pixelFormat],this.byteStride=this.channelByteStride*this.channels}}const i={36244:1,33320:2,36249:4},a={[r.H0.R32UI]:36244,[r.H0.RG32UI]:33320,[r.H0.RGBA32UI]:36249},s=[new o(r.H0.RGBA32UI),new o(r.H0.RG32UI),new o(r.H0.R32UI)];function u(t){let n=1/0,e=null;for(const r of s){const o=r.byteStride,i=(o-t%o)%o;i<n&&(n=i,e=r)}return e??s[2]}var c=e(20498),f=e(13030),l=e(90239);class h{constructor(t,n,e){this.elementCount=t,this.elementType=n,this.bufferViewConstructor=e,this.byteSize=function(t){return(0,l.GJ)(t.ElementType)*t.ElementCount}(e)}}const d={u8:new h(1,"uint",f.SL),vec4u8:new h(4,"uint",f.XP),unorm8:new h(1,"float",f.dy),vec4unorm8:new h(4,"float",f.td),snorm16:new h(1,"float",f.Qy),vec2snorm16:new h(2,"float",f.ES),f16:new h(1,"float",c.SX?f.XW:f.Y$),vec4f16:new h(4,"float",c.SX?f.jz:f.Eq),f32:new h(1,"float",f.Y$),vec2f32:new h(2,"float",f.gH),vec3f32:new h(3,"float",f.xs),vec4f32:new h(4,"float",f.Eq),mat3f32:new h(9,"float",f.jZ)};class m{constructor(t,n,e,r){this._declaration=t,this._byteOffset=n,this._creationInfo=r,this._startTexel=Math.floor(n/e);const o=r.byteSize;this._numTexels=Math.ceil((n+o)/e)-this._startTexel,this._texelByteStride=e}get name(){return this._declaration.name}get fieldType(){return this._declaration.type}get byteOffset(){return this._byteOffset}get startTexel(){return this._startTexel}get numTexels(){return this._numTexels}get texelByteStride(){return this._texelByteStride}get elementType(){return this._creationInfo.elementType}get elementCount(){return this._creationInfo.elementCount}get byteSize(){return this._creationInfo.byteSize}get bufferViewConstructor(){return this._creationInfo.bufferViewConstructor}}class M{constructor(t,n,e,r=0){this.layout=t,this.byteOffset=r,this._bufferViews=new Map,this.buffer="number"==typeof n?new ArrayBuffer(n*t.byteStride):n,this.texelElementBuffer=new e(this.buffer,r);const o=this._bufferViews;for(const[t,n]of this.layout.fields)o.set(t,new n.bufferViewConstructor(this.buffer,r+n.byteOffset,this.layout.byteStride))}get stride(){return this.layout.byteStride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(t,n){const e=this._bufferViews.get(t);return null!=e&&e.elementCount===n.ElementCount&&e.elementType===n.ElementType?e:null}copyItem(t,n){const{buffer:e,layout:r,byteOffset:o}=this,i=new Uint8Array(e),a=r.byteStride,s=o+t*a,u=o+n*a;i.copyWithin(u,s,s+a)}get usedMemory(){return this.byteLength}}class g{constructor(t){this._fields=new Map;let n=0;const e=[];for(let r=0;r<t.length;++r){const o=t[r],{type:i}=o,a=d[i];e.push({declaration:o,byteOffset:n,creationInfo:a}),n+=a.byteSize}this.texelFormatInfo=u(n);const{texelByteStride:r}=this;n=Math.ceil(n/r)*r;const o=n,i=this._fields;for(const{declaration:t,byteOffset:n,creationInfo:o}of e)i.set(t.name,new m(t,n,r,o));this.byteStride=o,this.texelStride=Math.ceil(o/r)}get texelByteStride(){return this.texelFormatInfo.byteStride}get texelElementArrayConstructor(){return this.texelFormatInfo.elementArrayConstructor}get stride(){return this.byteStride}get fields(){return this._fields}createBuffer(t){return new M(this,t,this.texelElementArrayConstructor)}createView(t,n){return new M(this,t,this.texelElementArrayConstructor,n)}}},3055(t,n,e){var r=e(4431),o=e(1843),i=e(52728);const a=(0,o.BP)().vec3f("position").u16("componentIndex",{integer:!0}).freeze(),s=(0,o.BP)().vec2u8("sideness").freeze(),u=(0,r.U)(s),c=(0,o.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").u16("componentIndex",{integer:!0}).u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),f=(0,o.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").vec2i16("normal2Compressed").u16("componentIndex",{integer:!0}).u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),l=(0,r.U)(c,1),h=(0,r.U)(f,1);u.concat(l),u.concat(h),new i.m([{name:"color",type:"vec4unorm8"},{name:"lineWidth",type:"u8"},{name:"extensionLength",type:"u8"},{name:"materialType",type:"u8"},{name:"opacity",type:"unorm8"},{name:"elevationOffset",type:"f32"}]),e.d(n,["I$",0,a,"In",0,f,"gr",0,c])},93406(t,n,e){e.d(n,{K:()=>s});var r=e(34727),o=e(15142),i=e(35522),a=e(51850);function s(t,n,e){const r=t.vertices.position,o=t.vertices.componentIndex,a=m.position0,s=m.position1,f=m.faceNormal0,h=m.faceNormal1,{edges:d,normals:M}=c(t),g=d.length/4,y=n.allocate(g);let p=0;const b=g,A=e?.allocate(b);let x=0,S=0,I=0;l.length=0;for(let t=0;t<g;++t){const n=4*t;r.getVec(d.data[n],a),r.getVec(d.data[n+1],s);const e=l.pushNew();e.index=4*t,e.length=(0,i.Io)(a,s)}l.sort((t,n)=>n.length-t.length);const U=new Array,O=new Array;l.forAll(({length:t,index:c})=>{const l=d.data[c],g=d.data[c+1],b=d.data[c+2],E=d.data[c+3],T=-1===E;if(r.getVec(l,a),r.getVec(g,s),T){const t=3*b;(0,i.hZ)(f,M.data[t],M.data[t+1],M.data[t+2]),(0,i.C)(h,f),m.componentIndex=o.get(l),m.cosAngle=(0,i.Om)(f,h)}else{let t=3*b;if((0,i.hZ)(f,M.data[t],M.data[t+1],M.data[t+2]),t=3*E,(0,i.hZ)(h,M.data[t],M.data[t+1],M.data[t+2]),m.componentIndex=o.get(l),m.cosAngle=(0,i.Om)(f,h),function(t,n){return t.cosAngle>n}(m,v))return;m.cosAngle<-.9999&&(0,i.C)(h,f)}S+=t,I++,T||function(t,n){return t.cosAngle<n}(m,_)?(n.write(y,p++,m),U.push(t)):u(m,w)&&(A&&e&&e.write(A,x++,m),O.push(t))});const E=new Float32Array(U.reverse()),T=new Float32Array(O.reverse()),q=A&&e?{instancesData:A.slice(0,x),lodInfo:{lengths:T}}:void 0;return{regular:{instancesData:y.slice(0,p),lodInfo:{lengths:E}},silhouette:q,averageEdgeLength:S/I}}function u(t,n){const e=(0,r.XM)(t.cosAngle);return(0,i.oW)(g,t.position1,t.position0),e*((0,i.Om)((0,i.$A)(M,t.faceNormal0,t.faceNormal1),g)>0?-1:1)>n}function c(t){const n=t.faces.length/3,e=t.faces,r=t.neighbors,o=t.vertices.position;h.length=d.length=0;for(let t=0;t<n;t++){const n=3*t,a=r[n],s=r[n+1],u=r[n+2],c=e[n],f=e[n+1],l=e[n+2];o.getVec(c,y),o.getVec(f,p),o.getVec(l,b),(0,i.Re)(p,p,y),(0,i.Re)(b,b,y),(0,i.$A)(y,p,b),(0,i.S8)(y,y),d.pushArray(y),(-1===a||c<f)&&(h.push(c),h.push(f),h.push(t),h.push(a)),(-1===s||f<l)&&(h.push(f),h.push(l),h.push(t),h.push(s)),(-1===u||l<c)&&(h.push(l),h.push(c),h.push(t),h.push(u))}return{edges:h,normals:d}}class f{constructor(){this.index=0,this.length=0}}const l=new o.A({allocator:t=>t||new f,deallocator:null}),h=new o.A({deallocator:null}),d=new o.A({deallocator:null}),m=new class{constructor(){this.position0=(0,a.vt)(),this.position1=(0,a.vt)(),this.faceNormal0=(0,a.vt)(),this.faceNormal1=(0,a.vt)(),this.componentIndex=0,this.cosAngle=0}},M=(0,a.vt)(),g=(0,a.vt)(),y=(0,a.vt)(),p=(0,a.vt)(),b=(0,a.vt)(),w=(0,r.kU)(4),v=Math.cos(w),A=(0,r.kU)(35),_=Math.cos(A)},44801(t,n,e){e.d(n,{o6:()=>U,HY:()=>C,hx:()=>O,Jb:()=>N});var r=e(34727),o=e(97146);function i(t,n,e){const i=Array.isArray(t),f=i?t.length/n:t.byteLength/(4*n),l=i?t:new Uint32Array(t,0,f*n),h=e?.minReduction??0,d=e?.originalIndices||null,m=d?d.length:0,M=e?.componentOffsets||null;let g=0;if(M)for(let t=0;t<M.length-1;t++){const n=M[t+1]-M[t];n>g&&(g=n)}else g=f;const y=Math.floor(1.1*g)+1;(null==c||c.length<2*y)&&(c=new Uint32Array((0,r.cU)(2*y)));for(let t=0;t<2*y;t++)c[t]=0;let p=0;const b=!!M&&!!d,w=b?m:f;let v=(0,o.my)(f);const A=new Uint32Array(m),_=1.96;let x=0!==h?Math.ceil(4*_*_/(h*h)*h*(1-h)):w,S=1,I=M?M[1]:w;for(let t=0;t<w;t++){if(t===x){const n=1-p/t;if(n+_*Math.sqrt(n*(1-n)/t)<h)return null;x*=2}if(t===I){for(let t=0;t<2*y;t++)c[t]=0;if(d)for(let t=M[S-1];t<M[S];t++)A[t]=v[d[t]];I=M[++S]}const e=b?d[t]:t,r=e*n,o=u(l,r,n);let i=o%y,s=p;for(;0!==c[2*i+1];){if(c[2*i]===o){const t=c[2*i+1]-1;if(a(l,r,t*n,n)){s=v[t];break}}i++,i>=y&&(i-=y)}s===p&&(c[2*i]=o,c[2*i+1]=e+1,p++),v[e]=s}if(0!==h&&1-p/f<h)return null;if(b){for(let t=M[S-1];t<A.length;t++)A[t]=v[d[t]];v=(0,o.uW)(A)}const U=i?new Array(p):new Uint32Array(p*n);p=0;for(let t=0;t<w;t++)v[t]===p&&(s(l,(b?d[t]:t)*n,U,p*n,n),p++);if(d&&!b){const t=new Uint32Array(m);for(let n=0;n<t.length;n++)t[n]=v[d[n]];v=(0,o.uW)(t)}return{buffer:Array.isArray(U)?U:U.buffer,indices:v,uniqueCount:p}}function a(t,n,e,r){for(let o=0;o<r;o++)if(t[n+o]!==t[e+o])return!1;return!0}function s(t,n,e,r,o){for(let i=0;i<o;i++)e[r+i]=t[n+i]}function u(t,n,e){let r=0;for(let o=0;o<e;o++)r=t[n+o]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let c=null;function f(t,n,e){const r=n/3,o=new Uint32Array(e+1),i=new Uint32Array(e+1),a=(t,n)=>{t<n?o[t+1]++:i[n+1]++};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],o=t[3*n+2];a(e,r),a(r,o),a(o,e)}let s=0,u=0;for(let t=0;t<e;t++){const n=o[t+1],e=i[t+1];o[t+1]=s,i[t+1]=u,s+=n,u+=e}const c=new Uint32Array(6*r),f=o[e],l=(t,n,e)=>{if(t<n){const r=o[t+1]++;c[2*r]=n,c[2*r+1]=e}else{const r=i[n+1]++;c[2*f+2*r]=t,c[2*f+2*r+1]=e}};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],o=t[3*n+2];l(e,r,n),l(r,o,n),l(o,e,n)}const h=(t,n)=>{const e=2*t,r=n-t;for(let t=1;t<r;t++){const n=c[e+2*t],r=c[e+2*t+1];let o=t-1;for(;o>=0&&c[e+2*o]>n;o--)c[e+2*o+2]=c[e+2*o],c[e+2*o+3]=c[e+2*o+1];c[e+2*o+2]=n,c[e+2*o+3]=r}};for(let t=0;t<e;t++)h(o[t],o[t+1]),h(f+i[t],f+i[t+1]);const d=new Int32Array(3*r),m=(n,e)=>n===t[3*e]?0:n===t[3*e+1]?1:n===t[3*e+2]?2:-1,M=(t,n)=>{const e=m(t,n);d[3*n+e]=-1},g=(t,n,e,r)=>{const o=m(t,n);d[3*n+o]=r;const i=m(e,r);d[3*r+i]=n};for(let t=0;t<e;t++){let n=o[t];const e=o[t+1];let r=i[t];const a=i[t+1];for(;n<e&&r<a;){const e=c[2*n],o=c[2*f+2*r];e===o?(g(t,c[2*n+1],o,c[2*f+2*r+1]),n++,r++):e<o?(M(t,c[2*n+1]),n++):(M(o,c[2*f+2*r+1]),r++)}for(;n<e;)M(t,c[2*n+1]),n++;for(;r<a;)M(c[2*f+2*r],c[2*f+2*r+1]),r++}return d}var l=e(1843),h=e(3055),d=e(87811),m=e(35522),M=e(51850),g=e(10614);class y{updateSettings(t){this.settings=t,this._edgeHashFunction=t.reducedPrecision?A:v}write(t,n,e){S.seed=this._edgeHashFunction(e);const r=S.getIntRange(0,255),o=S.getIntRange(0,this.settings.variants-1),i=S.getFloat(),a=255*(.5*function(t){return Math.abs(t)**1.2*Math.sign(t)}(-(1-Math.min(i/.7,1))+Math.max(0,i-.7)/(1-.7))+.5);t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1),t.componentIndex.set(n,e.componentIndex),t.variantOffset.set(n,r),t.variantStroke.set(n,o),t.variantExtension.set(n,a)}}const p=new Float32Array(6),b=new Uint32Array(p.buffer),w=new Uint32Array(1);function v(t){return p[0]=t.position0[0],p[1]=t.position0[1],p[2]=t.position0[2],p[3]=t.position1[0],p[4]=t.position1[1],p[5]=t.position1[2],w[0]=31*(31*(31*(31*(31*(166811+b[0])+b[1])+b[2])+b[3])+b[4])+b[5],w[0]}function A(t){const n=p;n[0]=_(t.position0[0]),n[1]=_(t.position0[1]),n[2]=_(t.position0[2]),n[3]=_(t.position1[0]),n[4]=_(t.position1[1]),n[5]=_(t.position1[2]),w[0]=5381;for(let t=0;t<b.length;t++)w[0]=31*w[0]+b[t];return w[0]}function _(t){return Math.round(1e4*t)/1e4}const x=(0,M.vt)(),S=new d.A;var I=e(93406);function U(t){const n=O(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return T.updateSettings(t.writerSettings),q.updateSettings(t.writerSettings),(0,I.K)(n,T,q)}function O(t,n,e,r){if(n){const n=f(e,r,t.count);return new E(e,r,n,t)}const o=i(t.buffer,t.stride/4,{originalIndices:e}),a=f(o.indices,r,o.uniqueCount);return{faces:o.indices,facesLength:o.indices.length,neighbors:a,vertices:h.I$.createView(o.buffer)}}class E{constructor(t,n,e,r){this.faces=t,this.facesLength=n,this.neighbors=e,this.vertices=r}}const T=new class{constructor(){this._commonWriter=new y}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return h.gr.createBuffer(t)}write(t,n,e){this._commonWriter.write(t,n,e),(0,m.WQ)(x,e.faceNormal0,e.faceNormal1),(0,m.S8)(x,x);const{typedBuffer:r,typedBufferStride:o}=t.normalCompressed;(0,g.aT)(r,n,x[0],x[1],x[2],o)}},q=new class{constructor(){this._commonWriter=new y}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return h.In.createBuffer(t)}write(t,n,e){this._commonWriter.write(t,n,e);{const{typedBuffer:r,typedBufferStride:o}=t.normalCompressed;(0,g.aT)(r,n,e.faceNormal0[0],e.faceNormal0[1],e.faceNormal0[2],o)}{const{typedBuffer:r,typedBufferStride:o}=t.normal2Compressed;(0,g.aT)(r,n,e.faceNormal1[0],e.faceNormal1[1],e.faceNormal1[2],o)}}},N=(0,l.BP)().vec3f("position0").vec3f("position1"),C=(0,l.BP)().vec3f("position0").vec3f("position1").u16("componentIndex",{integer:!0})}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6661],{48163(t,n,e){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function a(){return i(1,1)}function s(){return i(-1,-1)}function u(){return i(1,0)}function c(){return i(0,1)}e.d(n,{fA:()=>i,o8:()=>o,vt:()=>r});const f=a(),l=s(),h=u(),d=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:l,ONES:f,UNIT_X:h,UNIT_Y:d,ZEROS:[0,0],clone:o,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,negativeOnes:s,ones:a,unitX:u,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["IA",0,l,"Un",0,f])},51850(t,n,e){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function i(t,n,e){return[t,n,e]}function a(t,n,e){return[t,n,e]}function s(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function u(){return[0,0,0]}function c(){return i(1,1,1)}function f(){return i(1,0,0)}function l(){return i(0,1,0)}function h(){return i(0,0,1)}e.d(n,{CN:()=>a,S:()=>c,Ul:()=>u,ci:()=>s,fA:()=>i,o8:()=>o,vt:()=>r});const d=[0,0,0],m=c(),M=f(),g=l(),y=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:M,UNIT_Y:g,UNIT_Z:y,ZEROS:d,clone:o,create:r,freeze:a,fromArray:s,fromValues:i,ones:c,unitX:f,unitY:l,unitZ:h,zeros:u},Symbol.toStringTag,{value:"Module"})),e.d(n,["Cb",0,y,"Cw",0,M,"JP",0,g,"Un",0,m,"uY",0,d])},91829(t,n,e){function r(){return[0,0,0,0]}function o(t,n,e,r){return[t,n,e,r]}function i(t,n,e,r){return[t,n,e,r]}function a(){return o(1,1,1,1)}function s(){return o(1,0,0,0)}function u(){return o(0,1,0,0)}function c(){return o(0,0,1,0)}function f(){return o(0,0,0,1)}e.d(n,{CN:()=>i,_Y:()=>f,fA:()=>o,vt:()=>r});const l=[0,0,0,0],h=a(),d=s(),m=u(),M=c(),g=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:g,UNIT_X:d,UNIT_Y:m,UNIT_Z:M,ZEROS:l,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:i,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:o,ones:a,unitW:f,unitX:s,unitY:u,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,h,"uY",0,l])},34304(t,n,e){e.d(n,{DF:()=>u,FD:()=>o,ct:()=>c});let r=1e-6;function o(){return r}const i=Math.random,a=Math.PI/180,s=180/Math.PI;function u(t){return t*a}function c(t){return t*s}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:c,toRadian:u},Symbol.toStringTag,{value:"Module"})),e.d(n,["Ov",0,i])},37585(t,n,e){e.d(n,{C:()=>i,Cc:()=>_,Io:()=>g,LI:()=>d,Ln:()=>M,Om:()=>A,Re:()=>u,S8:()=>v,T9:()=>l,WQ:()=>s,aI:()=>U,e$:()=>S,hG:()=>y,hZ:()=>a,hs:()=>m,l0:()=>x,qE:()=>h,t2:()=>I,ze:()=>w});var r=e(34727),o=e(34304);function i(t,n){return t[0]=n[0],t[1]=n[1],t}function a(t,n,e){return t[0]=n,t[1]=e,t}function s(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t}function c(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t}function f(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t}function l(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t}function h(t,n,e,o){return t[0]=(0,r.qE)(n[0],e[0],o[0]),t[1]=(0,r.qE)(n[1],e[1],o[1]),t}function d(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t}function m(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t}function M(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t}function g(t,n){const e=n[0]-t[0],r=n[1]-t[1];return Math.sqrt(e*e+r*r)}function y(t,n){const e=n[0]-t[0],r=n[1]-t[1];return e*e+r*r}function p(t){const n=t[0],e=t[1];return Math.sqrt(n*n+e*e)}function b(t){const n=t[0],e=t[1];return n*n+e*e}function w(t,n){return t[0]=-n[0],t[1]=-n[1],t}function v(t,n){const e=n[0],r=n[1];let o=e*e+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=n[0]*o,t[1]=n[1]*o),t}function A(t,n){return t[0]*n[0]+t[1]*n[1]}function _(t,n,e,r){const o=n[0],i=n[1];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t}function x(t,n,e){const r=n[0],o=n[1];return t[0]=e[0]*r+e[2]*o+e[4],t[1]=e[1]*r+e[3]*o+e[5],t}function S(t,n,e,r){const o=n[0]-e[0],i=n[1]-e[1],a=Math.sin(r),s=Math.cos(r);return t[0]=o*s-i*a+e[0],t[1]=o*a+i*s+e[1],t}function I(t,n){return t[0]===n[0]&&t[1]===n[1]}function U(t,n){const e=t[0],r=t[1],i=n[0],a=n[1],s=(0,o.FD)();return Math.abs(e-i)<=s*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(r-a)<=s*Math.max(1,Math.abs(r),Math.abs(a))}const O=p,E=u,T=c,q=f,N=g,C=y,z=b;Object.freeze(Object.defineProperty({__proto__:null,add:s,angle:function(t,n){const e=t[0],r=t[1],o=n[0],i=n[1];let a=e*e+r*r;a>0&&(a=1/Math.sqrt(a));let s=o*o+i*i;s>0&&(s=1/Math.sqrt(s));const u=(e*o+r*i)*a*s;return u>1?0:u<-1?Math.PI:Math.acos(u)},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t},clamp:h,copy:i,cross:function(t,n,e){const r=n[0]*e[1]-n[1]*e[0];return t[0]=t[1]=0,t[2]=r,t},dist:N,distance:g,div:q,divide:f,dot:A,equals:U,exactEquals:I,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t},len:O,length:p,lerp:_,max:l,min:function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t},mul:T,multiply:c,negate:w,normalize:v,projectAndScale:function(t,n,e,r,o){let i=n[0]-e[0],a=n[1]-e[1];const s=(r[0]*i+r[1]*a)*(o-1);return i=r[0]*s,a=r[1]*s,t[0]=n[0]+i,t[1]=n[1]+a,t},random:function(t,n=1){const e=2*(0,o.Ov)()*Math.PI;return t[0]=Math.cos(e)*n,t[1]=Math.sin(e)*n,t},rotate:S,round:d,scale:m,scaleAndAdd:M,set:a,sqrDist:C,sqrLen:z,squaredDistance:y,squaredLength:b,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:E,subtract:u,transformMat2:function(t,n,e){const r=n[0],o=n[1];return t[0]=e[0]*r+e[2]*o,t[1]=e[1]*r+e[3]*o,t},transformMat2d:x,transformMat3:function(t,n,e){const r=n[0],o=n[1];return t[0]=e[0]*r+e[3]*o+e[6],t[1]=e[1]*r+e[4]*o+e[7],t},transformMat4:function(t,n,e){const r=n[0],o=n[1];return t[0]=e[0]*r+e[4]*o+e[12],t[1]=e[1]*r+e[5]*o+e[13],t}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Il",0,O,"jb",0,E,"xg",0,N])},35522(t,n,e){e.d(n,{$A:()=>S,Bw:()=>i,C:()=>a,Cc:()=>I,DI:()=>A,Io:()=>p,Ln:()=>y,Om:()=>x,Qr:()=>l,Re:()=>c,S8:()=>_,T9:()=>M,WQ:()=>u,Z0:()=>U,_S:()=>d,aI:()=>B,ei:()=>O,fw:()=>T,g7:()=>q,gL:()=>E,hG:()=>b,hZ:()=>s,hs:()=>g,jk:()=>m,lw:()=>f,m3:()=>w,oW:()=>P,t2:()=>z,tn:()=>h,ze:()=>v});var r=e(51850),o=e(34304);function i(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function s(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function u(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],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}function f(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function l(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function d(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(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}function M(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}function g(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function y(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}function p(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(e*e+r*r+o*o)}function b(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return e*e+r*r+o*o}function w(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function v(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function A(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function _(t,n){const e=n[0],r=n[1],o=n[2];let i=e*e+r*r+o*o;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i),t}function x(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function S(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],u=e[2];return t[0]=o*u-i*s,t[1]=i*a-r*u,t[2]=r*s-o*a,t}function I(t,n,e,r){const o=n[0],i=n[1],a=n[2];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t}function U(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12],t[1]=e[1]*r+e[5]*o+e[9]*i+e[13],t[2]=e[2]*r+e[6]*o+e[10]*i+e[14],t}function O(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0]+o*e[3]+i*e[6],t[1]=r*e[1]+o*e[4]+i*e[7],t[2]=r*e[2]+o*e[5]+i*e[8],t}function E(t,n,e){return T(t,n,e[0],e[1],e[2],e[3])}function T(t,n,e,r,o,i){const a=n[0],s=n[1],u=n[2],c=r*u-o*s,f=o*a-e*u,l=e*s-r*a,h=r*l-o*f,d=o*c-e*l,m=e*f-r*c,M=2*i;return t[0]=a+c*M+2*h,t[1]=s+f*M+2*d,t[2]=u+l*M+2*m,t}function q(t,n){_(N,t),_(C,n);const e=x(N,C);return e>1?0:e<-1?Math.PI:Math.acos(e)}const N=(0,r.vt)(),C=(0,r.vt)();function z(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function B(t,n){if(t===n)return!0;const e=t[0],r=t[1],i=t[2],a=n[0],s=n[1],u=n[2],c=(0,o.FD)();return Math.abs(e-a)<=c*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(r-s)<=c*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-u)<=c*Math.max(1,Math.abs(i),Math.abs(u))}function P(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],i=e[2]-n[2];let a=r*r+o*o+i*i;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=o*a,t[2]=i*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const L=c,V=f,R=l,j=p,W=b,D=i,F=w;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:u,angle:q,bezier:function(t,n,e,r,o,i){const a=1-i,s=a*a,u=i*i,c=s*a,f=3*i*s,l=3*u*a,h=u*i;return t[0]=n[0]*c+e[0]*f+r[0]*l+o[0]*h,t[1]=n[1]*c+e[1]*f+r[1]*l+o[1]*h,t[2]=n[2]*c+e[2]*f+r[2]*l+o[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:a,cross:S,crossAndNormalize:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],u=e[2],c=o*u-i*s,f=i*a-r*u,l=r*s-o*a,h=Math.sqrt(c*c+f*f+l*l);return t[0]=c/h,t[1]=f/h,t[2]=l/h,t},direction:P,dist:j,distance:p,div:R,divide:l,dot:x,equals:B,exactEquals:z,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,o,i){const a=i*i,s=a*(2*i-3)+1,u=a*(i-2)+i,c=a*(i-1),f=a*(3-2*i);return t[0]=n[0]*s+e[0]*u+r[0]*c+o[0]*f,t[1]=n[1]*s+e[1]*u+r[1]*c+o[1]*f,t[2]=n[2]*s+e[2]*u+r[2]*c+o[2]*f,t},inverse:A,len:D,length:i,lerp:I,max:M,min:m,mul:V,multiply:f,negate:v,normalize:_,random:function(t,n=1){const e=o.Ov,r=2*e()*Math.PI,i=2*e()-1,a=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=i*n,t},rotateX:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateY:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateZ:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],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},scale:g,scaleAndAdd:y,set:s,sign:d,sqrDist:W,sqrLen:F,squaredDistance:b,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:L,subtract:c,transformMat3:O,transformMat4:U,transformMat4Z:function(t,n){return n[2]*t[0]+n[6]*t[1]+n[10]*t[2]+n[14]},transformQuat:E,transformQuatValues:T},Symbol.toStringTag,{value:"Module"})),e.d(n,["Il",0,D,"jb",0,L,"lo",0,W,"uE",0,F,"xg",0,j])},78955(t,n,e){e.d(n,{Bw:()=>g,C:()=>o,Cc:()=>w,LI:()=>h,Om:()=>b,S8:()=>p,T9:()=>l,WQ:()=>a,Z0:()=>v,aI:()=>_,hG:()=>M,hZ:()=>i,hs:()=>d,jk:()=>f,m3:()=>y,t2:()=>A});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function i(t,n,e,r,o){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t}function a(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 u(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]=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}function l(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}function h(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}function d(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 m(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],i=n[3]-t[3];return Math.sqrt(e*e+r*r+o*o+i*i)}function M(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],i=n[3]-t[3];return e*e+r*r+o*o+i*i}function g(t){const n=t[0],e=t[1],r=t[2],o=t[3];return Math.sqrt(n*n+e*e+r*r+o*o)}function y(t){const n=t[0],e=t[1],r=t[2],o=t[3];return n*n+e*e+r*r+o*o}function p(t,n){const e=n[0],r=n[1],o=n[2],i=n[3];let a=e*e+r*r+o*o+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e*a,t[1]=r*a,t[2]=o*a,t[3]=i*a),t}function b(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function w(t,n,e,r){const o=n[0],i=n[1],a=n[2],s=n[3];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t[3]=s+r*(e[3]-s),t}function v(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*o+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*o+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*o+e[11]*i+e[15]*a,t}function A(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function _(t,n){const e=t[0],o=t[1],i=t[2],a=t[3],s=n[0],u=n[1],c=n[2],f=n[3],l=(0,r.FD)();return Math.abs(e-s)<=l*Math.max(1,Math.abs(e),Math.abs(s))&&Math.abs(o-u)<=l*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(i-c)<=l*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(a-f)<=l*Math.max(1,Math.abs(a),Math.abs(f))}const x=s,S=u,I=c,U=m,O=M,E=g,T=y;Object.freeze(Object.defineProperty({__proto__:null,add:a,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:o,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:U,distance:m,div:I,divide:c,dot:b,equals:_,exactEquals:A,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:E,length:g,lerp:w,max:l,min:f,mul:S,multiply:u,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:p,random:function(t,n=1){const e=r.Ov;let o,i,a,s,u,c;do{o=2*e()-1,i=2*e()-1,u=o*o+i*i}while(u>=1);do{a=2*e()-1,s=2*e()-1,c=a*a+s*s}while(c>=1);const f=Math.sqrt((1-u)/c);return t[0]=n*o,t[1]=n*i,t[2]=n*a*f,t[3]=n*s*f,t},round:h,scale:d,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:i,sqrDist:O,sqrLen:T,squaredDistance:M,squaredLength:y,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:x,subtract:s,transformMat4:v,transformQuat:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],u=e[2],c=e[3],f=c*r+s*i-u*o,l=c*o+u*r-a*i,h=c*i+a*o-s*r,d=-a*r-s*o-u*i;return t[0]=f*c+d*-a+l*-u-h*-s,t[1]=l*c+d*-s+h*-a-f*-u,t[2]=h*c+d*-u+f*-s-l*-a,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},97146(t,n,e){e.d(n,{Dg:()=>i,lC:()=>s,my:()=>a,tM:()=>l,uW:()=>o});var r=e(34275);function o(t){return i(t,!0)}function i(t,n){if(Array.isArray(t)){if(t.length<1024)return t}else if(t.length<1024)return Array.from(t);let e=!0,o=!0;return t.some((t,n)=>(e=e&&0===t,o=o&&t===n,!e&&!o)),e?function(t){if(1===t)return c;if(t<1024)return new Array(t).fill(0);if(t>d.length){const n=Math.max(2*d.length,t);d=new Uint8Array(n)}return new Uint8Array(d.buffer,0,t)}(t.length):o?l(t.length):(0,r.iu)(t)&&t.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?t:function(t,n){for(const e of t){if(e>=65536)return(0,r.iu)(t)?t:new Uint32Array(t);e>=256&&(n=!1)}return n?new Uint8Array(t):new Uint16Array(t)}(t,!n)}function a(t,n=t){return t<=1024?new Array(t):n<=65536?new Uint16Array(t):new Uint32Array(t)}function s(t,n,e){if(0===n.length)return t.slice();if(0===t.length)return n.slice();const r=a(t.length+n.length,e);for(let n=0;n<t.length;++n)r[n]=t[n];for(let e=0;e<n.length;++e)r[t.length+e]=n[e];return r}let u=h(131072);const c=[0],f=(()=>{const t=new Uint16Array(65536);for(let n=0;n<t.length;++n)t[n]=n;return t})();function l(t){return 1===t?c:t<1024?Array.from(new Uint16Array(f.buffer,0,t)):t<f.length?new Uint16Array(f.buffer,0,t):(t>u.length&&(u=h(Math.max(2*u.length,t))),new Uint32Array(u.buffer,0,t))}function h(t){const n=new Uint32Array(t);for(let t=0;t<n.length;t++)n[t]=t;return n}let d=new Uint8Array(65536)},10614(t,n,e){e.d(n,{Tz:()=>a,aT:()=>i});var r=e(34727),o=e(35522);function i(t,n,e,r,o,i=2,a=0){const u=1/(Math.abs(e)+Math.abs(r)+Math.abs(o)),c=e*u,f=r*u,l=o<=0?(c>=0?1:-1)*(1-Math.abs(f)):c,h=o<=0?(f>=0?1:-1)*(1-Math.abs(c)):f,d=n*i+a;t[d]=s(l),t[d+1]=s(h)}function a(t,n,e,r=2,i=0){const a=e*r+i,s=u(n[a]),c=u(n[a+1]),f=1-Math.abs(s)-Math.abs(c);return t[2]=f,f<0?(t[0]=(s>=0?1:-1)*(1-Math.abs(c)),t[1]=(c>=0?1:-1)*(1-Math.abs(s))):(t[0]=s,t[1]=c),(0,o.S8)(t,t)}function s(t){return(0,r.qE)(Math.round(32767*t),-32767,32767)}function u(t){return(0,r.qE)(t/32767,-1,1)}e(51850)},52728(t,n,e){e.d(n,{m:()=>g});var r=e(63907);class o{constructor(t){this.internalFormat=t,this.channelByteStride=4,this.dataType=r.ld.UNSIGNED_INT,this.elementArrayConstructor=Uint32Array,this.pixelFormat=a[t],this.channels=i[this.pixelFormat],this.byteStride=this.channelByteStride*this.channels}}const i={36244:1,33320:2,36249:4},a={[r.H0.R32UI]:36244,[r.H0.RG32UI]:33320,[r.H0.RGBA32UI]:36249},s=[new o(r.H0.RGBA32UI),new o(r.H0.RG32UI),new o(r.H0.R32UI)];function u(t){let n=1/0,e=null;for(const r of s){const o=r.byteStride,i=(o-t%o)%o;i<n&&(n=i,e=r)}return e??s[2]}var c=e(20498),f=e(13030),l=e(90239);class h{constructor(t,n,e){this.elementCount=t,this.elementType=n,this.bufferViewConstructor=e,this.byteSize=function(t){return(0,l.GJ)(t.ElementType)*t.ElementCount}(e)}}const d={u8:new h(1,"uint",f.SL),u32:new h(1,"uint",f.P),vec4u8:new h(4,"uint",f.XP),unorm8:new h(1,"float",f.dy),vec4unorm8:new h(4,"float",f.td),snorm16:new h(1,"float",f.Qy),vec2snorm16:new h(2,"float",f.ES),f16:new h(1,"float",c.SX?f.XW:f.Y$),vec4f16:new h(4,"float",c.SX?f.jz:f.Eq),f32:new h(1,"float",f.Y$),vec2f32:new h(2,"float",f.gH),vec3f32:new h(3,"float",f.xs),vec4f32:new h(4,"float",f.Eq),mat3f32:new h(9,"float",f.jZ)};class m{constructor(t,n,e,r){this._declaration=t,this._byteOffset=n,this._creationInfo=r,this._startTexel=Math.floor(n/e);const o=r.byteSize;this._numTexels=Math.ceil((n+o)/e)-this._startTexel,this._texelByteStride=e}get name(){return this._declaration.name}get fieldType(){return this._declaration.type}get byteOffset(){return this._byteOffset}get startTexel(){return this._startTexel}get numTexels(){return this._numTexels}get texelByteStride(){return this._texelByteStride}get elementType(){return this._creationInfo.elementType}get elementCount(){return this._creationInfo.elementCount}get byteSize(){return this._creationInfo.byteSize}get bufferViewConstructor(){return this._creationInfo.bufferViewConstructor}}class M{constructor(t,n,e,r=0){this.layout=t,this.byteOffset=r,this._bufferViews=new Map,this.buffer="number"==typeof n?new ArrayBuffer(n*t.byteStride):n,this.texelElementBuffer=new e(this.buffer,r);const o=this._bufferViews;for(const[t,n]of this.layout.fields)o.set(t,new n.bufferViewConstructor(this.buffer,r+n.byteOffset,this.layout.byteStride))}get stride(){return this.layout.byteStride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(t,n){const e=this._bufferViews.get(t);return null!=e&&e.elementCount===n.ElementCount&&e.elementType===n.ElementType?e:null}copyItem(t,n){const{buffer:e,layout:r,byteOffset:o}=this,i=new Uint8Array(e),a=r.byteStride,s=o+t*a,u=o+n*a;i.copyWithin(u,s,s+a)}get usedMemory(){return this.byteLength}}class g{constructor(t){this._fields=new Map;let n=0;const e=[];for(let r=0;r<t.length;++r){const o=t[r],{type:i}=o,a=d[i];e.push({declaration:o,byteOffset:n,creationInfo:a}),n+=a.byteSize}this.texelFormatInfo=u(n);const{texelByteStride:r}=this;n=Math.ceil(n/r)*r;const o=n,i=this._fields;for(const{declaration:t,byteOffset:n,creationInfo:o}of e)i.set(t.name,new m(t,n,r,o));this.byteStride=o,this.texelStride=Math.ceil(o/r)}get texelByteStride(){return this.texelFormatInfo.byteStride}get texelElementArrayConstructor(){return this.texelFormatInfo.elementArrayConstructor}get stride(){return this.byteStride}get fields(){return this._fields}createBuffer(t){return new M(this,t,this.texelElementArrayConstructor)}createView(t,n){return new M(this,t,this.texelElementArrayConstructor,n)}}},3055(t,n,e){var r=e(4431),o=e(1843),i=e(52728);const a=(0,o.BP)().vec3f("position").u16("componentIndex",{integer:!0}).freeze(),s=(0,o.BP)().vec2u8("sideness").freeze(),u=(0,r.U)(s),c=(0,o.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").u16("componentIndex",{integer:!0}).u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),f=(0,o.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").vec2i16("normal2Compressed").u16("componentIndex",{integer:!0}).u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),l=(0,r.U)(c,1),h=(0,r.U)(f,1);u.concat(l),u.concat(h),new i.m([{name:"color",type:"vec4unorm8"},{name:"lineWidth",type:"u8"},{name:"extensionLength",type:"u8"},{name:"materialType",type:"u8"},{name:"opacity",type:"unorm8"},{name:"elevationOffset",type:"f32"}]),e.d(n,["I$",0,a,"In",0,f,"gr",0,c])},93406(t,n,e){e.d(n,{K:()=>s});var r=e(34727),o=e(15142),i=e(35522),a=e(51850);function s(t,n,e){const r=t.vertices.position,o=t.vertices.componentIndex,a=m.position0,s=m.position1,f=m.faceNormal0,h=m.faceNormal1,{edges:d,normals:M}=c(t),g=d.length/4,y=n.allocate(g);let p=0;const b=g,A=e?.allocate(b);let x=0,S=0,I=0;l.length=0;for(let t=0;t<g;++t){const n=4*t;r.getVec(d.data[n],a),r.getVec(d.data[n+1],s);const e=l.pushNew();e.index=4*t,e.length=(0,i.Io)(a,s)}l.sort((t,n)=>n.length-t.length);const U=new Array,O=new Array;l.forAll(({length:t,index:c})=>{const l=d.data[c],g=d.data[c+1],b=d.data[c+2],E=d.data[c+3],T=-1===E;if(r.getVec(l,a),r.getVec(g,s),T){const t=3*b;(0,i.hZ)(f,M.data[t],M.data[t+1],M.data[t+2]),(0,i.C)(h,f),m.componentIndex=o.get(l),m.cosAngle=(0,i.Om)(f,h)}else{let t=3*b;if((0,i.hZ)(f,M.data[t],M.data[t+1],M.data[t+2]),t=3*E,(0,i.hZ)(h,M.data[t],M.data[t+1],M.data[t+2]),m.componentIndex=o.get(l),m.cosAngle=(0,i.Om)(f,h),function(t,n){return t.cosAngle>n}(m,v))return;m.cosAngle<-.9999&&(0,i.C)(h,f)}S+=t,I++,T||function(t,n){return t.cosAngle<n}(m,_)?(n.write(y,p++,m),U.push(t)):u(m,w)&&(A&&e&&e.write(A,x++,m),O.push(t))});const E=new Float32Array(U.reverse()),T=new Float32Array(O.reverse()),q=A&&e?{instancesData:A.slice(0,x),lodInfo:{lengths:T}}:void 0;return{regular:{instancesData:y.slice(0,p),lodInfo:{lengths:E}},silhouette:q,averageEdgeLength:S/I}}function u(t,n){const e=(0,r.XM)(t.cosAngle);return(0,i.oW)(g,t.position1,t.position0),e*((0,i.Om)((0,i.$A)(M,t.faceNormal0,t.faceNormal1),g)>0?-1:1)>n}function c(t){const n=t.faces.length/3,e=t.faces,r=t.neighbors,o=t.vertices.position;h.length=d.length=0;for(let t=0;t<n;t++){const n=3*t,a=r[n],s=r[n+1],u=r[n+2],c=e[n],f=e[n+1],l=e[n+2];o.getVec(c,y),o.getVec(f,p),o.getVec(l,b),(0,i.Re)(p,p,y),(0,i.Re)(b,b,y),(0,i.$A)(y,p,b),(0,i.S8)(y,y),d.pushArray(y),(-1===a||c<f)&&(h.push(c),h.push(f),h.push(t),h.push(a)),(-1===s||f<l)&&(h.push(f),h.push(l),h.push(t),h.push(s)),(-1===u||l<c)&&(h.push(l),h.push(c),h.push(t),h.push(u))}return{edges:h,normals:d}}class f{constructor(){this.index=0,this.length=0}}const l=new o.A({allocator:t=>t||new f,deallocator:null}),h=new o.A({deallocator:null}),d=new o.A({deallocator:null}),m=new class{constructor(){this.position0=(0,a.vt)(),this.position1=(0,a.vt)(),this.faceNormal0=(0,a.vt)(),this.faceNormal1=(0,a.vt)(),this.componentIndex=0,this.cosAngle=0}},M=(0,a.vt)(),g=(0,a.vt)(),y=(0,a.vt)(),p=(0,a.vt)(),b=(0,a.vt)(),w=(0,r.kU)(4),v=Math.cos(w),A=(0,r.kU)(35),_=Math.cos(A)},44801(t,n,e){e.d(n,{o6:()=>U,HY:()=>C,hx:()=>O,Jb:()=>N});var r=e(34727),o=e(97146);function i(t,n,e){const i=Array.isArray(t),f=i?t.length/n:t.byteLength/(4*n),l=i?t:new Uint32Array(t,0,f*n),h=e?.minReduction??0,d=e?.originalIndices||null,m=d?d.length:0,M=e?.componentOffsets||null;let g=0;if(M)for(let t=0;t<M.length-1;t++){const n=M[t+1]-M[t];n>g&&(g=n)}else g=f;const y=Math.floor(1.1*g)+1;(null==c||c.length<2*y)&&(c=new Uint32Array((0,r.cU)(2*y)));for(let t=0;t<2*y;t++)c[t]=0;let p=0;const b=!!M&&!!d,w=b?m:f;let v=(0,o.my)(f);const A=new Uint32Array(m),_=1.96;let x=0!==h?Math.ceil(4*_*_/(h*h)*h*(1-h)):w,S=1,I=M?M[1]:w;for(let t=0;t<w;t++){if(t===x){const n=1-p/t;if(n+_*Math.sqrt(n*(1-n)/t)<h)return null;x*=2}if(t===I){for(let t=0;t<2*y;t++)c[t]=0;if(d)for(let t=M[S-1];t<M[S];t++)A[t]=v[d[t]];I=M[++S]}const e=b?d[t]:t,r=e*n,o=u(l,r,n);let i=o%y,s=p;for(;0!==c[2*i+1];){if(c[2*i]===o){const t=c[2*i+1]-1;if(a(l,r,t*n,n)){s=v[t];break}}i++,i>=y&&(i-=y)}s===p&&(c[2*i]=o,c[2*i+1]=e+1,p++),v[e]=s}if(0!==h&&1-p/f<h)return null;if(b){for(let t=M[S-1];t<A.length;t++)A[t]=v[d[t]];v=(0,o.uW)(A)}const U=i?new Array(p):new Uint32Array(p*n);p=0;for(let t=0;t<w;t++)v[t]===p&&(s(l,(b?d[t]:t)*n,U,p*n,n),p++);if(d&&!b){const t=new Uint32Array(m);for(let n=0;n<t.length;n++)t[n]=v[d[n]];v=(0,o.uW)(t)}return{buffer:Array.isArray(U)?U:U.buffer,indices:v,uniqueCount:p}}function a(t,n,e,r){for(let o=0;o<r;o++)if(t[n+o]!==t[e+o])return!1;return!0}function s(t,n,e,r,o){for(let i=0;i<o;i++)e[r+i]=t[n+i]}function u(t,n,e){let r=0;for(let o=0;o<e;o++)r=t[n+o]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let c=null;function f(t,n,e){const r=n/3,o=new Uint32Array(e+1),i=new Uint32Array(e+1),a=(t,n)=>{t<n?o[t+1]++:i[n+1]++};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],o=t[3*n+2];a(e,r),a(r,o),a(o,e)}let s=0,u=0;for(let t=0;t<e;t++){const n=o[t+1],e=i[t+1];o[t+1]=s,i[t+1]=u,s+=n,u+=e}const c=new Uint32Array(6*r),f=o[e],l=(t,n,e)=>{if(t<n){const r=o[t+1]++;c[2*r]=n,c[2*r+1]=e}else{const r=i[n+1]++;c[2*f+2*r]=t,c[2*f+2*r+1]=e}};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],o=t[3*n+2];l(e,r,n),l(r,o,n),l(o,e,n)}const h=(t,n)=>{const e=2*t,r=n-t;for(let t=1;t<r;t++){const n=c[e+2*t],r=c[e+2*t+1];let o=t-1;for(;o>=0&&c[e+2*o]>n;o--)c[e+2*o+2]=c[e+2*o],c[e+2*o+3]=c[e+2*o+1];c[e+2*o+2]=n,c[e+2*o+3]=r}};for(let t=0;t<e;t++)h(o[t],o[t+1]),h(f+i[t],f+i[t+1]);const d=new Int32Array(3*r),m=(n,e)=>n===t[3*e]?0:n===t[3*e+1]?1:n===t[3*e+2]?2:-1,M=(t,n)=>{const e=m(t,n);d[3*n+e]=-1},g=(t,n,e,r)=>{const o=m(t,n);d[3*n+o]=r;const i=m(e,r);d[3*r+i]=n};for(let t=0;t<e;t++){let n=o[t];const e=o[t+1];let r=i[t];const a=i[t+1];for(;n<e&&r<a;){const e=c[2*n],o=c[2*f+2*r];e===o?(g(t,c[2*n+1],o,c[2*f+2*r+1]),n++,r++):e<o?(M(t,c[2*n+1]),n++):(M(o,c[2*f+2*r+1]),r++)}for(;n<e;)M(t,c[2*n+1]),n++;for(;r<a;)M(c[2*f+2*r],c[2*f+2*r+1]),r++}return d}var l=e(1843),h=e(3055),d=e(87811),m=e(35522),M=e(51850),g=e(10614);class y{updateSettings(t){this.settings=t,this._edgeHashFunction=t.reducedPrecision?A:v}write(t,n,e){S.seed=this._edgeHashFunction(e);const r=S.getIntRange(0,255),o=S.getIntRange(0,this.settings.variants-1),i=S.getFloat(),a=255*(.5*function(t){return Math.abs(t)**1.2*Math.sign(t)}(-(1-Math.min(i/.7,1))+Math.max(0,i-.7)/(1-.7))+.5);t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1),t.componentIndex.set(n,e.componentIndex),t.variantOffset.set(n,r),t.variantStroke.set(n,o),t.variantExtension.set(n,a)}}const p=new Float32Array(6),b=new Uint32Array(p.buffer),w=new Uint32Array(1);function v(t){return p[0]=t.position0[0],p[1]=t.position0[1],p[2]=t.position0[2],p[3]=t.position1[0],p[4]=t.position1[1],p[5]=t.position1[2],w[0]=31*(31*(31*(31*(31*(166811+b[0])+b[1])+b[2])+b[3])+b[4])+b[5],w[0]}function A(t){const n=p;n[0]=_(t.position0[0]),n[1]=_(t.position0[1]),n[2]=_(t.position0[2]),n[3]=_(t.position1[0]),n[4]=_(t.position1[1]),n[5]=_(t.position1[2]),w[0]=5381;for(let t=0;t<b.length;t++)w[0]=31*w[0]+b[t];return w[0]}function _(t){return Math.round(1e4*t)/1e4}const x=(0,M.vt)(),S=new d.A;var I=e(93406);function U(t){const n=O(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return T.updateSettings(t.writerSettings),q.updateSettings(t.writerSettings),(0,I.K)(n,T,q)}function O(t,n,e,r){if(n){const n=f(e,r,t.count);return new E(e,r,n,t)}const o=i(t.buffer,t.stride/4,{originalIndices:e}),a=f(o.indices,r,o.uniqueCount);return{faces:o.indices,facesLength:o.indices.length,neighbors:a,vertices:h.I$.createView(o.buffer)}}class E{constructor(t,n,e,r){this.faces=t,this.facesLength=n,this.neighbors=e,this.vertices=r}}const T=new class{constructor(){this._commonWriter=new y}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return h.gr.createBuffer(t)}write(t,n,e){this._commonWriter.write(t,n,e),(0,m.WQ)(x,e.faceNormal0,e.faceNormal1),(0,m.S8)(x,x);const{typedBuffer:r,typedBufferStride:o}=t.normalCompressed;(0,g.aT)(r,n,x[0],x[1],x[2],o)}},q=new class{constructor(){this._commonWriter=new y}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return h.In.createBuffer(t)}write(t,n,e){this._commonWriter.write(t,n,e);{const{typedBuffer:r,typedBufferStride:o}=t.normalCompressed;(0,g.aT)(r,n,e.faceNormal0[0],e.faceNormal0[1],e.faceNormal0[2],o)}{const{typedBuffer:r,typedBufferStride:o}=t.normal2Compressed;(0,g.aT)(r,n,e.faceNormal1[0],e.faceNormal1[1],e.faceNormal1[2],o)}}},N=(0,l.BP)().vec3f("position0").vec3f("position1"),C=(0,l.BP)().vec3f("position0").vec3f("position1").u16("componentIndex",{integer:!0})}}]);
|
|
@@ -600,7 +600,7 @@ return vec4(col, opacity);
|
|
|
600
600
|
float screenToWorldRatio = perRenderPixelRatio * distanceToCamera * 0.5;
|
|
601
601
|
return getScreenMarkerSize(getLineWidth(${(0,o.If)(r,"pos")})) * screenToWorldRatio;
|
|
602
602
|
}
|
|
603
|
-
`))}},82094(e,t,i){const r=i(31821).H`vec4(0.0, 0.0, 2.0, 1.0)`;i.d(t,["Z",0,r])},66269(e,t,i){function r(e){e.vertex.code.add("#define noPerspectiveWrite(x, w) (x * w)")}function n(e){e.fragment.code.add("#define noPerspectiveRead(x) (x * gl_FragCoord.w)")}i.d(t,{F:()=>r,m:()=>n})},9273(e,t,i){i.d(t,{R:()=>n});var r=i(74333);class n extends r.n{constructor(e,t){super(e,"usampler2D",1,(i,r,n)=>i.bindTexture(e,t(r,n)))}}},78230(e,t,i){i.d(t,{x:()=>h});var r=i(93687),n=i(15142),s=i(35522),o=i(51850),a=i(82919),l=i(71351),c=i(94008),u=i(620);class h{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(e,t){this.objectToBoundingSphere=e,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new d,this._objectCount=0,t&&(void 0!==t.maximumObjectsPerNode&&(this._maximumObjectsPerNode=t.maximumObjectsPerNode),void 0!==t.maximumDepth&&(this._maximumDepth=t.maximumDepth))}destroy(){this._degenerateObjects.clear(),d.clearPool(),O[0]=null,D.prune(),V.prune()}add(e){const t=Array.from(e);this._grow(t);const i=d.acquire();for(const e of t)++this._objectCount,this._isDegenerate(e)?this._degenerateObjects.add(e):(i.init(this._root),this._add(e,i));d.release(i)}remove(e,t=null){this._objectCount-=e.length;const i=d.acquire();for(const r of e){const e=t??this.objectToBoundingSphere(r);T(e.radius)?(i.init(this._root),m(r,e,i)):this._degenerateObjects.delete(r)}d.release(i),this._shrink()}update(e,t){if(!T(t.radius)&&this._isDegenerate(e))return;const i=function(e){return O[0]=e,O}(e);this.remove(i,t),this.add(i)}forEachAlongRay(e,t,i){const r=(0,l.LV)(e,t);g(this._root,e=>{if(!function(e,t){return b(t.bounds.center,2*-t.halfSize,P),b(t.bounds.center,2*t.halfSize,I),(0,u.O_)(e.origin,e.direction,P,I)}(r,e))return!1;const t=e.node;return t.terminals.forAll(e=>{this._intersectsObject(r,e)&&i(e)}),null!==t.residents&&t.residents.forAll(e=>{this._intersectsObject(r,e)&&i(e)}),!0})}forEachAlongRayWithVerticalOffset(e,t,i,r){const n=(0,l.LV)(e,t);g(this._root,e=>{if(!function(e,t,i){return b(t.bounds.center,2*-t.halfSize,P),b(t.bounds.center,2*t.halfSize,I),i.applyToMinMax(P,I),(0,u.O_)(e.origin,e.direction,P,I)}(n,e,r))return!1;const t=e.node;return t.terminals.forAll(e=>{this._intersectsObjectWithOffset(n,e,r)&&i(e)}),null!==t.residents&&t.residents.forAll(e=>{this._intersectsObjectWithOffset(n,e,r)&&i(e)}),!0})}forEach(e){for(const t of this.values())e(t)}*values(){for(const e of this._nodeIteratorValues()){const t=e.node;yield*t.terminals,null!==t.residents&&(yield*t.residents)}yield*this.degenerateObjectValues()}forEachDegenerateObject(e){this._degenerateObjects.forEach(e)}*degenerateObjectValues(){yield*this._degenerateObjects.values()}findClosest(e,t,i,r=()=>!0,n=1/0){let o=1/0,l=1/0,c=null;const u=w(e,t),h=s=>{if(--n,!r(s))return;const u=this.objectToBoundingSphere(s);if(!(0,a.m7)(i,u))return;const h=C(e,t,u.center),d=h-u.radius,p=h+u.radius;d<o&&(o=d,l=p,c=s)};return f(this._root,r=>{if(n<=0||!(0,a.ZU)(i,r.bounds.center,2*r.bounds.radius))return!1;if((0,s.hs)(L,u,2*r.halfSize),(0,s.WQ)(L,L,r.bounds.center),C(e,t,L)>l)return!1;const o=r.node;return o.terminals.forAll(e=>h(e)),null!==o.residents&&o.residents.forAll(e=>h(e)),!0},e,t),c}forEachInDepthRange(e,t,i,r,n,o,l){let c=-1/0,u=1/0;const h={setRange:e=>{1===i?(c=Math.max(c,e.near),u=Math.min(u,e.far)):(c=Math.max(c,-e.far),u=Math.min(u,-e.near))}};h.setRange(r);const d=C(t,i,e),p=w(t,i),g=w(t,-i),m=e=>{if(!l(e))return;const r=this.objectToBoundingSphere(e),s=C(t,i,r.center)-d,p=s-r.radius,g=s+r.radius;p>u||g<c||!(0,a.m7)(o,r)||n(e,h)};f(this._root,e=>{if(!(0,a.ZU)(o,e.bounds.center,2*e.bounds.radius))return!1;if((0,s.hs)(L,p,2*e.halfSize),(0,s.WQ)(L,L,e.bounds.center),C(t,i,L)-d>u)return!1;if((0,s.hs)(L,g,2*e.halfSize),(0,s.WQ)(L,L,e.bounds.center),C(t,i,L)-d<c)return!1;const r=e.node;return r.terminals.forAll(e=>m(e)),null!==r.residents&&r.residents.forAll(e=>m(e)),!0},t,i)}forEachNode(e){g(this._root,t=>e(t.node,t.bounds,t.halfSize,t.depth))}forEachIntersectingFrustum(e,t,i=()=>!0){for(const r of this.intersectingFrustumValues(e,i))t(r)}*intersectingFrustumValues(e,t=()=>!0){for(const i of this._nodeIteratorValues(t=>(0,a.ZU)(e,t.bounds.center,2*t.bounds.radius))){const r=i.node;for(const i of r.terminals)t(i)&&(0,a.m7)(e,this.objectToBoundingSphere(i))&&(yield i);if(null!==r.residents)for(const i of r.residents)t(i)&&(0,a.m7)(e,this.objectToBoundingSphere(i))&&(yield i)}}*_nodeIteratorValues(e=()=>!0){yield*p(this._root,e)}forEachNeighbor(e,t){const i=t.radius,r=t.center,n=i=>{const r=this.objectToBoundingSphere(i);return!t.intersects(r)||e(i)};let o=!0;const a=e=>{o&&(o=n(e))};g(this._root,e=>{const t=2*e.bounds.radius,n=i+t;if((0,s.hG)(e.bounds.center,r)-n*n>0)return!1;const l=e.node;return l.terminals.forAll(a),o&&null!==l.residents&&l.residents.forAll(a),o}),o&&this.forEachDegenerateObject(a)}_intersectsObject(e,t){const i=this.objectToBoundingSphere(t);return!(i.radius>0)||i.intersectRay(e)}_intersectsObjectWithOffset(e,t,i){const r=this.objectToBoundingSphere(t);return!(r.radius>0)||i.applyToBoundingSphere(r).intersectRay(e)}_add(e,t){t.advanceTo(this.objectToBoundingSphere(e))?t.node.terminals.push(e):(t.node.residents.push(e),t.node.residents.length>this._maximumObjectsPerNode&&t.depth<this._maximumDepth&&this._split(t))}_split(e){const t=e.node.residents;e.node.residents=null;for(let i=0;i<t.length;i++){const r=d.acquire().init(e);this._add(t.at(i),r),d.release(r)}}_grow(e){if(S(e,e=>this.objectToBoundingSphere(e),F),T(F.radius)&&!this._fitsInsideTree(F))if(y(this._root.node))this._root.bounds.copyFrom(F),this._root.halfSize=1.25*this._root.bounds.radius,this._root.updateBoundsRadiusFromHalfSize();else{const e=this._rootBoundsForRootAsSubNode(F);this._placingRootViolatesMaxDepth(e)?this._rebuildTree(F,e):this._growRootAsSubNode(e),d.release(e)}}_rebuildTree(e,t){N.center=t.bounds.center,N.radius=t.halfSize,S([e,N],e=>e,z);const i=d.acquire().init(this._root);this._root.initFrom(null,z,z.radius),this._root.increaseHalfSize(1.25),g(i,e=>(this.add(e.node.terminals.data),null!==e.node.residents&&this.add(e.node.residents.data),!0)),d.release(i)}_placingRootViolatesMaxDepth(e){const t=Math.log(e.halfSize/this._root.halfSize)*Math.LOG2E;let i=0;return g(this._root,e=>(i=Math.max(i,e.depth),i+t<=this._maximumDepth)),i+t>this._maximumDepth}_rootBoundsForRootAsSubNode(e){const t=e.radius,i=e.center;let r=-1/0;const n=this._root.bounds.center,s=this._root.halfSize;for(let e=0;e<3;e++){const o=n[e]-s-(i[e]-t),a=i[e]+t-(n[e]+s),l=Math.max(0,Math.ceil(o/(2*s))),c=Math.max(0,Math.ceil(a/(2*s)))+1,u=2**Math.ceil(Math.log(l+c)*Math.LOG2E);r=Math.max(r,u),H[e].min=l,H[e].max=c}for(let e=0;e<3;e++){let t=H[e].min,i=H[e].max;const o=(r-(t+i))/2;t+=Math.ceil(o),i+=Math.floor(o);const a=n[e]-s-t*s*2;M.center[e]=a+(i+t)*s}const o=r*s;return M.radius=o*R,d.acquire().initFrom(null,M,o,0)}_growRootAsSubNode(e){const t=this._root.node;F.center=this._root.bounds.center,F.radius=this._root.halfSize,this._root.init(e),e.advanceTo(F,null,!0),e.node.children=t.children,e.node.residents=t.residents,e.node.terminals=t.terminals}_shrink(){for(;;){const e=this._findShrinkIndex();if(-1===e)break;this._root.advance(e),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let e=null;const t=this._root.node.children;let i=0,r=0;for(;r<t.length&&null==e;)i=r++,e=t[i];for(;r<t.length;)if(t[r++])return-1;return i}_isDegenerate(e){return!T(this.objectToBoundingSphere(e).radius)}_fitsInsideTree(e){const t=this._root.bounds,i=this._root.halfSize;return e.radius<=i&&e.center[0]>=t.center[0]-i&&e.center[0]<=t.center[0]+i&&e.center[1]>=t.center[1]-i&&e.center[1]<=t.center[1]+i&&e.center[2]>=t.center[2]-i&&e.center[2]<=t.center[2]+i}_nodeToJSON(e){const t=e.children.map(e=>e?this._nodeToJSON(e):null),i=e.residents?.map(e=>this.objectToBoundingSphere(e)),r=e.terminals?.map(e=>this.objectToBoundingSphere(e));return{children:t,residents:i,terminals:r}}}class d{constructor(){this.bounds=new c.iy,this.halfSize=0,this.initFrom(null,null,0,0)}init(e){return this.initFrom(e.node,e.bounds,e.halfSize,e.depth)}initFrom(e,t,i,r=this.depth){return this.node=null!=e?e:d.createEmptyNode(),t&&this.bounds.copyFrom(t),this.halfSize=i,this.depth=r,this}increaseHalfSize(e){this.halfSize*=e,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds.radius=this.halfSize*R}advance(e){let t=this.node.children[e];t||(t=d.createEmptyNode(),this.node.children[e]=t),this.node=t,this.halfSize/=2,this.depth++;const i=A[e];return this.bounds.center[0]+=i[0]*this.halfSize,this.bounds.center[1]+=i[1]*this.halfSize,this.bounds.center[2]+=i[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(e,t,i=!1){for(;;){if(this.isTerminalFor(e))return t?.(this,-1),!0;if(this.isLeaf()){if(!i)return t?.(this,-1),!1;this.node.residents=null}const r=this._childIndex(e);t?.(this,r),this.advance(r)}}isLeaf(){return null!=this.node.residents}isTerminalFor(e){return e.radius>this.halfSize/2}_childIndex(e){const t=this.bounds.center;return(t[0]<e.center[0]?1:0)+(t[1]<e.center[1]?2:0)+(t[2]<e.center[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new n.A({shrink:!0}),residents:new n.A({shrink:!0})}}static{this._pool=new r.A(()=>new d)}static acquire(){return d._pool.acquire()}static release(e){d._pool.release(e)}static clearPool(){d._pool.prune()}}function*p(e,t=()=>!0){const i=[d.acquire().init(e)];for(;0!==i.length;){const e=i.pop();if(t(e)){if(yield e,!e.isLeaf())for(let t=0;t<e.node.children.length;t++)e.node.children[t]&&i.push(d.acquire().init(e).advance(t));d.release(e)}}}function g(e,t){const i=p(e,t);for(const e of i);}function f(e,t,i,r=1){let n=d.acquire().init(e);const s=[n];for(function(e,t,i){if(!V.length)for(let e=0;e<8;++e)V.push({index:0,distance:0});for(let i=0;i<8;++i){const r=A[i];V.data[i].index=i,V.data[i].distance=C(e,t,r)}V.sort((e,t)=>e.distance-t.distance);for(let e=0;e<8;++e)i[e]=V.data[e].index}(i,r,W);0!==s.length;){if(n=s.pop(),t(n)&&!n.isLeaf())for(let e=7;e>=0;--e){const t=W[e];n.node.children[t]&&s.push(d.acquire().init(n).advance(t))}d.release(n)}}function m(e,t,i){D.clear();const r=i.advanceTo(t,(e,t)=>{D.push(e.node),D.push(t)})?i.node.terminals:i.node.residents;if(r.removeUnordered(e),0===r.length)for(let e=D.length-2;e>=0&&v(D.data[e],D.data[e+1]);e-=2);}function v(e,t){return t>=0&&(e.children[t]=null),!!y(e)&&(null===e.residents&&(e.residents=new n.A({shrink:!0})),!0)}function y(e){if(0!==e.terminals.length)return!1;if(null!==e.residents)return 0===e.residents.length;for(let t=0;t<e.children.length;t++)if(e.children[t])return!1;return!0}function x(e,t){e[0]=Math.min(e[0],t.center[0]-t.radius),e[1]=Math.min(e[1],t.center[1]-t.radius),e[2]=Math.min(e[2],t.center[2]-t.radius)}function _(e,t){e[0]=Math.max(e[0],t.center[0]+t.radius),e[1]=Math.max(e[1],t.center[1]+t.radius),e[2]=Math.max(e[2],t.center[2]+t.radius)}function b(e,t,i){i[0]=e[0]+t,i[1]=e[1]+t,i[2]=e[2]+t}function S(e,t,i){P[0]=1/0,P[1]=1/0,P[2]=1/0,I[0]=-1/0,I[1]=-1/0,I[2]=-1/0;for(const i of e){const e=t(i);T(e.radius)&&(x(P,e),_(I,e))}(0,s.Cc)(i.center,P,I,.5),i.radius=Math.max(I[0]-P[0],I[1]-P[1],I[2]-P[2])/2}function w(e,t){let i,r=1/0;for(let n=0;n<8;++n){const s=C(e,t,E[n]);s<r&&(r=s,i=E[n])}return i}function C(e,t,i){return t*(e[0]*i[0]+e[1]*i[1]+e[2]*i[2])}function T(e){return!isNaN(e)&&e!==-1/0&&e!==1/0&&e>0}const A=[(0,o.fA)(-1,-1,-1),(0,o.fA)(1,-1,-1),(0,o.fA)(-1,1,-1),(0,o.fA)(1,1,-1),(0,o.fA)(-1,-1,1),(0,o.fA)(1,-1,1),(0,o.fA)(-1,1,1),(0,o.fA)(1,1,1)],E=[(0,o.fA)(-1,-1,-1),(0,o.fA)(-1,-1,1),(0,o.fA)(-1,1,-1),(0,o.fA)(-1,1,1),(0,o.fA)(1,-1,-1),(0,o.fA)(1,-1,1),(0,o.fA)(1,1,-1),(0,o.fA)(1,1,1)],R=Math.sqrt(3),O=[null],M=new c.iy,L=(0,o.vt)(),P=(0,o.vt)(),I=(0,o.vt)(),D=new n.A,F=new c.iy,N=new c.iy,z=new c.iy,H=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],V=new n.A,W=[0,0,0,0,0,0,0,0]},52728(e,t,i){i.d(t,{m:()=>m});var r=i(63907);class n{constructor(e){this.internalFormat=e,this.channelByteStride=4,this.dataType=r.ld.UNSIGNED_INT,this.elementArrayConstructor=Uint32Array,this.pixelFormat=o[e],this.channels=s[this.pixelFormat],this.byteStride=this.channelByteStride*this.channels}}const s={36244:1,33320:2,36249:4},o={[r.H0.R32UI]:36244,[r.H0.RG32UI]:33320,[r.H0.RGBA32UI]:36249},a=[new n(r.H0.RGBA32UI),new n(r.H0.RG32UI),new n(r.H0.R32UI)];function l(e){let t=1/0,i=null;for(const r of a){const n=r.byteStride,s=(n-e%n)%n;s<t&&(t=s,i=r)}return i??a[2]}var c=i(20498),u=i(13030),h=i(90239);class d{constructor(e,t,i){this.elementCount=e,this.elementType=t,this.bufferViewConstructor=i,this.byteSize=function(e){return(0,h.GJ)(e.ElementType)*e.ElementCount}(i)}}const p={u8:new d(1,"uint",u.SL),vec4u8:new d(4,"uint",u.XP),unorm8:new d(1,"float",u.dy),vec4unorm8:new d(4,"float",u.td),snorm16:new d(1,"float",u.Qy),vec2snorm16:new d(2,"float",u.ES),f16:new d(1,"float",c.SX?u.XW:u.Y$),vec4f16:new d(4,"float",c.SX?u.jz:u.Eq),f32:new d(1,"float",u.Y$),vec2f32:new d(2,"float",u.gH),vec3f32:new d(3,"float",u.xs),vec4f32:new d(4,"float",u.Eq),mat3f32:new d(9,"float",u.jZ)};class g{constructor(e,t,i,r){this._declaration=e,this._byteOffset=t,this._creationInfo=r,this._startTexel=Math.floor(t/i);const n=r.byteSize;this._numTexels=Math.ceil((t+n)/i)-this._startTexel,this._texelByteStride=i}get name(){return this._declaration.name}get fieldType(){return this._declaration.type}get byteOffset(){return this._byteOffset}get startTexel(){return this._startTexel}get numTexels(){return this._numTexels}get texelByteStride(){return this._texelByteStride}get elementType(){return this._creationInfo.elementType}get elementCount(){return this._creationInfo.elementCount}get byteSize(){return this._creationInfo.byteSize}get bufferViewConstructor(){return this._creationInfo.bufferViewConstructor}}class f{constructor(e,t,i,r=0){this.layout=e,this.byteOffset=r,this._bufferViews=new Map,this.buffer="number"==typeof t?new ArrayBuffer(t*e.byteStride):t,this.texelElementBuffer=new i(this.buffer,r);const n=this._bufferViews;for(const[e,t]of this.layout.fields)n.set(e,new t.bufferViewConstructor(this.buffer,r+t.byteOffset,this.layout.byteStride))}get stride(){return this.layout.byteStride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(e,t){const i=this._bufferViews.get(e);return null!=i&&i.elementCount===t.ElementCount&&i.elementType===t.ElementType?i:null}copyItem(e,t){const{buffer:i,layout:r,byteOffset:n}=this,s=new Uint8Array(i),o=r.byteStride,a=n+e*o,l=n+t*o;s.copyWithin(l,a,a+o)}get usedMemory(){return this.byteLength}}class m{constructor(e){this._fields=new Map;let t=0;const i=[];for(let r=0;r<e.length;++r){const n=e[r],{type:s}=n,o=p[s];i.push({declaration:n,byteOffset:t,creationInfo:o}),t+=o.byteSize}this.texelFormatInfo=l(t);const{texelByteStride:r}=this;t=Math.ceil(t/r)*r;const n=t,s=this._fields;for(const{declaration:e,byteOffset:t,creationInfo:n}of i)s.set(e.name,new g(e,t,r,n));this.byteStride=n,this.texelStride=Math.ceil(n/r)}get texelByteStride(){return this.texelFormatInfo.byteStride}get texelElementArrayConstructor(){return this.texelFormatInfo.elementArrayConstructor}get stride(){return this.byteStride}get fields(){return this._fields}createBuffer(e){return new f(this,e,this.texelElementArrayConstructor)}createView(e,t){return new f(this,e,this.texelElementArrayConstructor,t)}}},96095(e,t,i){i.d(t,{sL:()=>r}),i(13069);function r(e){return null!=e&&"image"in e}},54073(e,t,i){i.d(t,{Q:()=>h});var r=i(37585),n=i(48163),s=i(78659);const o=(0,s.Kp)(1),a=(0,s.Kp)(1);var l=i(47286),c=i(20304),u=i(31821);function h(e,t){const{hasAnimation:i,animation:n}=t;if(!i)return;const{attributes:s,varyings:h,vertex:p,fragment:g}=e,f=t.timeStampsExpr??"timeStamps";null==t.timeStampsExpr&&s.add("timeStamps","vec4"),h.add("vTimeStamp","float"),h.add("vFirstTime","float"),h.add("vLastTime","float"),h.add("vTransitionType","float"),p.main.add(u.H`
|
|
603
|
+
`))}},82094(e,t,i){const r=i(31821).H`vec4(0.0, 0.0, 2.0, 1.0)`;i.d(t,["Z",0,r])},66269(e,t,i){function r(e){e.vertex.code.add("#define noPerspectiveWrite(x, w) (x * w)")}function n(e){e.fragment.code.add("#define noPerspectiveRead(x) (x * gl_FragCoord.w)")}i.d(t,{F:()=>r,m:()=>n})},9273(e,t,i){i.d(t,{R:()=>n});var r=i(74333);class n extends r.n{constructor(e,t){super(e,"usampler2D",1,(i,r,n)=>i.bindTexture(e,t(r,n)))}}},78230(e,t,i){i.d(t,{x:()=>h});var r=i(93687),n=i(15142),s=i(35522),o=i(51850),a=i(82919),l=i(71351),c=i(94008),u=i(620);class h{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(e,t){this.objectToBoundingSphere=e,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new d,this._objectCount=0,t&&(void 0!==t.maximumObjectsPerNode&&(this._maximumObjectsPerNode=t.maximumObjectsPerNode),void 0!==t.maximumDepth&&(this._maximumDepth=t.maximumDepth))}destroy(){this._degenerateObjects.clear(),d.clearPool(),O[0]=null,D.prune(),V.prune()}add(e){const t=Array.from(e);this._grow(t);const i=d.acquire();for(const e of t)++this._objectCount,this._isDegenerate(e)?this._degenerateObjects.add(e):(i.init(this._root),this._add(e,i));d.release(i)}remove(e,t=null){this._objectCount-=e.length;const i=d.acquire();for(const r of e){const e=t??this.objectToBoundingSphere(r);T(e.radius)?(i.init(this._root),m(r,e,i)):this._degenerateObjects.delete(r)}d.release(i),this._shrink()}update(e,t){if(!T(t.radius)&&this._isDegenerate(e))return;const i=function(e){return O[0]=e,O}(e);this.remove(i,t),this.add(i)}forEachAlongRay(e,t,i){const r=(0,l.LV)(e,t);g(this._root,e=>{if(!function(e,t){return b(t.bounds.center,2*-t.halfSize,P),b(t.bounds.center,2*t.halfSize,I),(0,u.O_)(e.origin,e.direction,P,I)}(r,e))return!1;const t=e.node;return t.terminals.forAll(e=>{this._intersectsObject(r,e)&&i(e)}),null!==t.residents&&t.residents.forAll(e=>{this._intersectsObject(r,e)&&i(e)}),!0})}forEachAlongRayWithVerticalOffset(e,t,i,r){const n=(0,l.LV)(e,t);g(this._root,e=>{if(!function(e,t,i){return b(t.bounds.center,2*-t.halfSize,P),b(t.bounds.center,2*t.halfSize,I),i.applyToMinMax(P,I),(0,u.O_)(e.origin,e.direction,P,I)}(n,e,r))return!1;const t=e.node;return t.terminals.forAll(e=>{this._intersectsObjectWithOffset(n,e,r)&&i(e)}),null!==t.residents&&t.residents.forAll(e=>{this._intersectsObjectWithOffset(n,e,r)&&i(e)}),!0})}forEach(e){for(const t of this.values())e(t)}*values(){for(const e of this._nodeIteratorValues()){const t=e.node;yield*t.terminals,null!==t.residents&&(yield*t.residents)}yield*this.degenerateObjectValues()}forEachDegenerateObject(e){this._degenerateObjects.forEach(e)}*degenerateObjectValues(){yield*this._degenerateObjects.values()}findClosest(e,t,i,r=()=>!0,n=1/0){let o=1/0,l=1/0,c=null;const u=w(e,t),h=s=>{if(--n,!r(s))return;const u=this.objectToBoundingSphere(s);if(!(0,a.m7)(i,u))return;const h=C(e,t,u.center),d=h-u.radius,p=h+u.radius;d<o&&(o=d,l=p,c=s)};return f(this._root,r=>{if(n<=0||!(0,a.ZU)(i,r.bounds.center,2*r.bounds.radius))return!1;if((0,s.hs)(L,u,2*r.halfSize),(0,s.WQ)(L,L,r.bounds.center),C(e,t,L)>l)return!1;const o=r.node;return o.terminals.forAll(e=>h(e)),null!==o.residents&&o.residents.forAll(e=>h(e)),!0},e,t),c}forEachInDepthRange(e,t,i,r,n,o,l){let c=-1/0,u=1/0;const h={setRange:e=>{1===i?(c=Math.max(c,e.near),u=Math.min(u,e.far)):(c=Math.max(c,-e.far),u=Math.min(u,-e.near))}};h.setRange(r);const d=C(t,i,e),p=w(t,i),g=w(t,-i),m=e=>{if(!l(e))return;const r=this.objectToBoundingSphere(e),s=C(t,i,r.center)-d,p=s-r.radius,g=s+r.radius;p>u||g<c||!(0,a.m7)(o,r)||n(e,h)};f(this._root,e=>{if(!(0,a.ZU)(o,e.bounds.center,2*e.bounds.radius))return!1;if((0,s.hs)(L,p,2*e.halfSize),(0,s.WQ)(L,L,e.bounds.center),C(t,i,L)-d>u)return!1;if((0,s.hs)(L,g,2*e.halfSize),(0,s.WQ)(L,L,e.bounds.center),C(t,i,L)-d<c)return!1;const r=e.node;return r.terminals.forAll(e=>m(e)),null!==r.residents&&r.residents.forAll(e=>m(e)),!0},t,i)}forEachNode(e){g(this._root,t=>e(t.node,t.bounds,t.halfSize,t.depth))}forEachIntersectingFrustum(e,t,i=()=>!0){for(const r of this.intersectingFrustumValues(e,i))t(r)}*intersectingFrustumValues(e,t=()=>!0){for(const i of this._nodeIteratorValues(t=>(0,a.ZU)(e,t.bounds.center,2*t.bounds.radius))){const r=i.node;for(const i of r.terminals)t(i)&&(0,a.m7)(e,this.objectToBoundingSphere(i))&&(yield i);if(null!==r.residents)for(const i of r.residents)t(i)&&(0,a.m7)(e,this.objectToBoundingSphere(i))&&(yield i)}}*_nodeIteratorValues(e=()=>!0){yield*p(this._root,e)}forEachNeighbor(e,t){const i=t.radius,r=t.center,n=i=>{const r=this.objectToBoundingSphere(i);return!t.intersects(r)||e(i)};let o=!0;const a=e=>{o&&(o=n(e))};g(this._root,e=>{const t=2*e.bounds.radius,n=i+t;if((0,s.hG)(e.bounds.center,r)-n*n>0)return!1;const l=e.node;return l.terminals.forAll(a),o&&null!==l.residents&&l.residents.forAll(a),o}),o&&this.forEachDegenerateObject(a)}_intersectsObject(e,t){const i=this.objectToBoundingSphere(t);return!(i.radius>0)||i.intersectRay(e)}_intersectsObjectWithOffset(e,t,i){const r=this.objectToBoundingSphere(t);return!(r.radius>0)||i.applyToBoundingSphere(r).intersectRay(e)}_add(e,t){t.advanceTo(this.objectToBoundingSphere(e))?t.node.terminals.push(e):(t.node.residents.push(e),t.node.residents.length>this._maximumObjectsPerNode&&t.depth<this._maximumDepth&&this._split(t))}_split(e){const t=e.node.residents;e.node.residents=null;for(let i=0;i<t.length;i++){const r=d.acquire().init(e);this._add(t.at(i),r),d.release(r)}}_grow(e){if(S(e,e=>this.objectToBoundingSphere(e),F),T(F.radius)&&!this._fitsInsideTree(F))if(y(this._root.node))this._root.bounds.copyFrom(F),this._root.halfSize=1.25*this._root.bounds.radius,this._root.updateBoundsRadiusFromHalfSize();else{const e=this._rootBoundsForRootAsSubNode(F);this._placingRootViolatesMaxDepth(e)?this._rebuildTree(F,e):this._growRootAsSubNode(e),d.release(e)}}_rebuildTree(e,t){N.center=t.bounds.center,N.radius=t.halfSize,S([e,N],e=>e,z);const i=d.acquire().init(this._root);this._root.initFrom(null,z,z.radius),this._root.increaseHalfSize(1.25),g(i,e=>(this.add(e.node.terminals.data),null!==e.node.residents&&this.add(e.node.residents.data),!0)),d.release(i)}_placingRootViolatesMaxDepth(e){const t=Math.log(e.halfSize/this._root.halfSize)*Math.LOG2E;let i=0;return g(this._root,e=>(i=Math.max(i,e.depth),i+t<=this._maximumDepth)),i+t>this._maximumDepth}_rootBoundsForRootAsSubNode(e){const t=e.radius,i=e.center;let r=-1/0;const n=this._root.bounds.center,s=this._root.halfSize;for(let e=0;e<3;e++){const o=n[e]-s-(i[e]-t),a=i[e]+t-(n[e]+s),l=Math.max(0,Math.ceil(o/(2*s))),c=Math.max(0,Math.ceil(a/(2*s)))+1,u=2**Math.ceil(Math.log(l+c)*Math.LOG2E);r=Math.max(r,u),H[e].min=l,H[e].max=c}for(let e=0;e<3;e++){let t=H[e].min,i=H[e].max;const o=(r-(t+i))/2;t+=Math.ceil(o),i+=Math.floor(o);const a=n[e]-s-t*s*2;M.center[e]=a+(i+t)*s}const o=r*s;return M.radius=o*R,d.acquire().initFrom(null,M,o,0)}_growRootAsSubNode(e){const t=this._root.node;F.center=this._root.bounds.center,F.radius=this._root.halfSize,this._root.init(e),e.advanceTo(F,null,!0),e.node.children=t.children,e.node.residents=t.residents,e.node.terminals=t.terminals}_shrink(){for(;;){const e=this._findShrinkIndex();if(-1===e)break;this._root.advance(e),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let e=null;const t=this._root.node.children;let i=0,r=0;for(;r<t.length&&null==e;)i=r++,e=t[i];for(;r<t.length;)if(t[r++])return-1;return i}_isDegenerate(e){return!T(this.objectToBoundingSphere(e).radius)}_fitsInsideTree(e){const t=this._root.bounds,i=this._root.halfSize;return e.radius<=i&&e.center[0]>=t.center[0]-i&&e.center[0]<=t.center[0]+i&&e.center[1]>=t.center[1]-i&&e.center[1]<=t.center[1]+i&&e.center[2]>=t.center[2]-i&&e.center[2]<=t.center[2]+i}_nodeToJSON(e){const t=e.children.map(e=>e?this._nodeToJSON(e):null),i=e.residents?.map(e=>this.objectToBoundingSphere(e)),r=e.terminals?.map(e=>this.objectToBoundingSphere(e));return{children:t,residents:i,terminals:r}}}class d{constructor(){this.bounds=new c.iy,this.halfSize=0,this.initFrom(null,null,0,0)}init(e){return this.initFrom(e.node,e.bounds,e.halfSize,e.depth)}initFrom(e,t,i,r=this.depth){return this.node=null!=e?e:d.createEmptyNode(),t&&this.bounds.copyFrom(t),this.halfSize=i,this.depth=r,this}increaseHalfSize(e){this.halfSize*=e,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds.radius=this.halfSize*R}advance(e){let t=this.node.children[e];t||(t=d.createEmptyNode(),this.node.children[e]=t),this.node=t,this.halfSize/=2,this.depth++;const i=A[e];return this.bounds.center[0]+=i[0]*this.halfSize,this.bounds.center[1]+=i[1]*this.halfSize,this.bounds.center[2]+=i[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(e,t,i=!1){for(;;){if(this.isTerminalFor(e))return t?.(this,-1),!0;if(this.isLeaf()){if(!i)return t?.(this,-1),!1;this.node.residents=null}const r=this._childIndex(e);t?.(this,r),this.advance(r)}}isLeaf(){return null!=this.node.residents}isTerminalFor(e){return e.radius>this.halfSize/2}_childIndex(e){const t=this.bounds.center;return(t[0]<e.center[0]?1:0)+(t[1]<e.center[1]?2:0)+(t[2]<e.center[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new n.A({shrink:!0}),residents:new n.A({shrink:!0})}}static{this._pool=new r.A(()=>new d)}static acquire(){return d._pool.acquire()}static release(e){d._pool.release(e)}static clearPool(){d._pool.prune()}}function*p(e,t=()=>!0){const i=[d.acquire().init(e)];for(;0!==i.length;){const e=i.pop();if(t(e)){if(yield e,!e.isLeaf())for(let t=0;t<e.node.children.length;t++)e.node.children[t]&&i.push(d.acquire().init(e).advance(t));d.release(e)}}}function g(e,t){const i=p(e,t);for(const e of i);}function f(e,t,i,r=1){let n=d.acquire().init(e);const s=[n];for(function(e,t,i){if(!V.length)for(let e=0;e<8;++e)V.push({index:0,distance:0});for(let i=0;i<8;++i){const r=A[i];V.data[i].index=i,V.data[i].distance=C(e,t,r)}V.sort((e,t)=>e.distance-t.distance);for(let e=0;e<8;++e)i[e]=V.data[e].index}(i,r,W);0!==s.length;){if(n=s.pop(),t(n)&&!n.isLeaf())for(let e=7;e>=0;--e){const t=W[e];n.node.children[t]&&s.push(d.acquire().init(n).advance(t))}d.release(n)}}function m(e,t,i){D.clear();const r=i.advanceTo(t,(e,t)=>{D.push(e.node),D.push(t)})?i.node.terminals:i.node.residents;if(r.removeUnordered(e),0===r.length)for(let e=D.length-2;e>=0&&v(D.data[e],D.data[e+1]);e-=2);}function v(e,t){return t>=0&&(e.children[t]=null),!!y(e)&&(null===e.residents&&(e.residents=new n.A({shrink:!0})),!0)}function y(e){if(0!==e.terminals.length)return!1;if(null!==e.residents)return 0===e.residents.length;for(let t=0;t<e.children.length;t++)if(e.children[t])return!1;return!0}function x(e,t){e[0]=Math.min(e[0],t.center[0]-t.radius),e[1]=Math.min(e[1],t.center[1]-t.radius),e[2]=Math.min(e[2],t.center[2]-t.radius)}function _(e,t){e[0]=Math.max(e[0],t.center[0]+t.radius),e[1]=Math.max(e[1],t.center[1]+t.radius),e[2]=Math.max(e[2],t.center[2]+t.radius)}function b(e,t,i){i[0]=e[0]+t,i[1]=e[1]+t,i[2]=e[2]+t}function S(e,t,i){P[0]=1/0,P[1]=1/0,P[2]=1/0,I[0]=-1/0,I[1]=-1/0,I[2]=-1/0;for(const i of e){const e=t(i);T(e.radius)&&(x(P,e),_(I,e))}(0,s.Cc)(i.center,P,I,.5),i.radius=Math.max(I[0]-P[0],I[1]-P[1],I[2]-P[2])/2}function w(e,t){let i,r=1/0;for(let n=0;n<8;++n){const s=C(e,t,E[n]);s<r&&(r=s,i=E[n])}return i}function C(e,t,i){return t*(e[0]*i[0]+e[1]*i[1]+e[2]*i[2])}function T(e){return!isNaN(e)&&e!==-1/0&&e!==1/0&&e>0}const A=[(0,o.fA)(-1,-1,-1),(0,o.fA)(1,-1,-1),(0,o.fA)(-1,1,-1),(0,o.fA)(1,1,-1),(0,o.fA)(-1,-1,1),(0,o.fA)(1,-1,1),(0,o.fA)(-1,1,1),(0,o.fA)(1,1,1)],E=[(0,o.fA)(-1,-1,-1),(0,o.fA)(-1,-1,1),(0,o.fA)(-1,1,-1),(0,o.fA)(-1,1,1),(0,o.fA)(1,-1,-1),(0,o.fA)(1,-1,1),(0,o.fA)(1,1,-1),(0,o.fA)(1,1,1)],R=Math.sqrt(3),O=[null],M=new c.iy,L=(0,o.vt)(),P=(0,o.vt)(),I=(0,o.vt)(),D=new n.A,F=new c.iy,N=new c.iy,z=new c.iy,H=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],V=new n.A,W=[0,0,0,0,0,0,0,0]},52728(e,t,i){i.d(t,{m:()=>m});var r=i(63907);class n{constructor(e){this.internalFormat=e,this.channelByteStride=4,this.dataType=r.ld.UNSIGNED_INT,this.elementArrayConstructor=Uint32Array,this.pixelFormat=o[e],this.channels=s[this.pixelFormat],this.byteStride=this.channelByteStride*this.channels}}const s={36244:1,33320:2,36249:4},o={[r.H0.R32UI]:36244,[r.H0.RG32UI]:33320,[r.H0.RGBA32UI]:36249},a=[new n(r.H0.RGBA32UI),new n(r.H0.RG32UI),new n(r.H0.R32UI)];function l(e){let t=1/0,i=null;for(const r of a){const n=r.byteStride,s=(n-e%n)%n;s<t&&(t=s,i=r)}return i??a[2]}var c=i(20498),u=i(13030),h=i(90239);class d{constructor(e,t,i){this.elementCount=e,this.elementType=t,this.bufferViewConstructor=i,this.byteSize=function(e){return(0,h.GJ)(e.ElementType)*e.ElementCount}(i)}}const p={u8:new d(1,"uint",u.SL),u32:new d(1,"uint",u.P),vec4u8:new d(4,"uint",u.XP),unorm8:new d(1,"float",u.dy),vec4unorm8:new d(4,"float",u.td),snorm16:new d(1,"float",u.Qy),vec2snorm16:new d(2,"float",u.ES),f16:new d(1,"float",c.SX?u.XW:u.Y$),vec4f16:new d(4,"float",c.SX?u.jz:u.Eq),f32:new d(1,"float",u.Y$),vec2f32:new d(2,"float",u.gH),vec3f32:new d(3,"float",u.xs),vec4f32:new d(4,"float",u.Eq),mat3f32:new d(9,"float",u.jZ)};class g{constructor(e,t,i,r){this._declaration=e,this._byteOffset=t,this._creationInfo=r,this._startTexel=Math.floor(t/i);const n=r.byteSize;this._numTexels=Math.ceil((t+n)/i)-this._startTexel,this._texelByteStride=i}get name(){return this._declaration.name}get fieldType(){return this._declaration.type}get byteOffset(){return this._byteOffset}get startTexel(){return this._startTexel}get numTexels(){return this._numTexels}get texelByteStride(){return this._texelByteStride}get elementType(){return this._creationInfo.elementType}get elementCount(){return this._creationInfo.elementCount}get byteSize(){return this._creationInfo.byteSize}get bufferViewConstructor(){return this._creationInfo.bufferViewConstructor}}class f{constructor(e,t,i,r=0){this.layout=e,this.byteOffset=r,this._bufferViews=new Map,this.buffer="number"==typeof t?new ArrayBuffer(t*e.byteStride):t,this.texelElementBuffer=new i(this.buffer,r);const n=this._bufferViews;for(const[e,t]of this.layout.fields)n.set(e,new t.bufferViewConstructor(this.buffer,r+t.byteOffset,this.layout.byteStride))}get stride(){return this.layout.byteStride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(e,t){const i=this._bufferViews.get(e);return null!=i&&i.elementCount===t.ElementCount&&i.elementType===t.ElementType?i:null}copyItem(e,t){const{buffer:i,layout:r,byteOffset:n}=this,s=new Uint8Array(i),o=r.byteStride,a=n+e*o,l=n+t*o;s.copyWithin(l,a,a+o)}get usedMemory(){return this.byteLength}}class m{constructor(e){this._fields=new Map;let t=0;const i=[];for(let r=0;r<e.length;++r){const n=e[r],{type:s}=n,o=p[s];i.push({declaration:n,byteOffset:t,creationInfo:o}),t+=o.byteSize}this.texelFormatInfo=l(t);const{texelByteStride:r}=this;t=Math.ceil(t/r)*r;const n=t,s=this._fields;for(const{declaration:e,byteOffset:t,creationInfo:n}of i)s.set(e.name,new g(e,t,r,n));this.byteStride=n,this.texelStride=Math.ceil(n/r)}get texelByteStride(){return this.texelFormatInfo.byteStride}get texelElementArrayConstructor(){return this.texelFormatInfo.elementArrayConstructor}get stride(){return this.byteStride}get fields(){return this._fields}createBuffer(e){return new f(this,e,this.texelElementArrayConstructor)}createView(e,t){return new f(this,e,this.texelElementArrayConstructor,t)}}},96095(e,t,i){i.d(t,{sL:()=>r}),i(13069);function r(e){return null!=e&&"image"in e}},54073(e,t,i){i.d(t,{Q:()=>h});var r=i(37585),n=i(48163),s=i(78659);const o=(0,s.Kp)(1),a=(0,s.Kp)(1);var l=i(47286),c=i(20304),u=i(31821);function h(e,t){const{hasAnimation:i,animation:n}=t;if(!i)return;const{attributes:s,varyings:h,vertex:p,fragment:g}=e,f=t.timeStampsExpr??"timeStamps";null==t.timeStampsExpr&&s.add("timeStamps","vec4"),h.add("vTimeStamp","float"),h.add("vFirstTime","float"),h.add("vLastTime","float"),h.add("vTransitionType","float"),p.main.add(u.H`
|
|
604
604
|
vec4 animatedLineTimeStamps = ${f};
|
|
605
605
|
vTimeStamp = animatedLineTimeStamps.x;
|
|
606
606
|
vFirstTime = animatedLineTimeStamps.y;
|
|
@@ -696,7 +696,7 @@ return exponent == nanExponent && mantissa != 0u;
|
|
|
696
696
|
}`)}function g(e){e.code.add(a.H`mediump int unpackInt1x16(highp uint bits) {
|
|
697
697
|
highp uint signExtendedBits = (bits & 0x8000u) != 0u ? (bits | 0xffff0000u) : bits;
|
|
698
698
|
return int(signExtendedBits);
|
|
699
|
-
}`)}function f(e,t){const{fieldType:i}=e;return`${(0,b[i])(function(e,t){const{byteOffset:i,byteSize:r}=e,n=t.channelByteStride,s=t.byteStride,o=Math.ceil(r/S),l=T[t.channels],c=new Array;for(let e=0;e<o;++e){const t=e*S,o=i+t,u=r-t,h=Math.min(u,S);let d=0;const p=new Array;for(;d<h;){const e=o+d,t=Math.floor(e/s),i=e%s,r=Math.floor(i/n),c=i%n,u=n-c,g=h-d,f=Math.min(u,g),m=a.H`texel${a.H.int(t)}${l[r]}`,v=4===f?"":a.H` & ${a.H.hexuint(C[f])}`,y=0===c?"":a.H` >> ${a.H.uint(w[c])}`,x=a.H`((${m}${y})${v})`,_=0===d?"":a.H` << ${a.H.uint(w[d])}`,b=a.H`(${x})${_}`;p.push(b),d+=f}c.push(a.H`(${p.join(" | ")})`)}return c}(e,t))}`}function m(e,t){const i=[];for(const t of e){const e=a.H`unpackFloat1x32(${t})`;i.push(e)}return i.join(t)}(0,n.Cg)([(0,l.W)()],h.prototype,"supportNaN",void 0);const v=e=>a.H`${e[0]}`,y=e=>{const t=e[0],i=a.H`uvec4(${a.H.uint(w[0])}, ${a.H.uint(w[1])}, ${a.H.uint(w[2])}, ${a.H.uint(w[3])})`,r=a.H`uvec4(${a.H.hexuint(C[1])})`;return a.H`((uvec4(${t}) >> ${i}) & ${r})`},x=e=>a.H`unpackFloat1x32(${e[0]})`,_=e=>a.H`vec4(${m(e,", ")})`,b={u8:v,unorm8:e=>a.H`(float(${v(e)})/${a.H.float(255)})`,vec4unorm8:e=>a.H`(vec4(${y(e)})/${a.H.float(255)})`,snorm16:e=>a.H`unpackSnorm2x16(${e[0]}).x`,vec2snorm16:e=>a.H`unpackSnorm2x16(${e[0]})`,f16:s.SX?e=>a.H`unpackHalf1x16(${e[0]})`:x,vec4f16:s.SX?e=>a.H`vec4(unpackHalf2x16NaNSupport(${e[0]}), unpackHalf2x16NaNSupport(${e[1]}))`:_,f32:x,vec4u8:y,vec2f32:e=>a.H`vec2(${m(e,", ")})`,vec3f32:e=>a.H`vec3(${m(e,", ")})`,vec4f32:_,mat3f32:e=>a.H`mat3(${m(e,",\n")})`},S=4,w=[0,8,16,24],C=[0,255,65535,16777215,4294967295],T={1:[a.H``],2:[a.H`.x`,a.H`.y`],4:[a.H`.x`,a.H`.y`,a.H`.z`,a.H`.w`]};var A=i(620),E=i(14113);const R=new h(!0),O=new h(!1);class M{constructor(e,t){this._shader=e,this._namespace=t,this._used=new Map}getItemSuffix(e){return 0===e?"":`${e<0?"Minus":"Plus"}${Math.abs(e)}`}getItemDataName(e=0){return`${this._namespace}ItemData${this.getItemSuffix(e)}`}getStructName(e=0){return`${this._namespace}TextureBackedBufferItemData${this.getItemSuffix(e)}`}getFetchName(e=0){return`${this._namespace}fetchTextureBackedBufferItemData${this.getItemSuffix(e)}`}getStrideName(){return`${this._namespace}tbbStride`}getTextureAttribute(e,t=0){const i=this._used,r=this.getItemDataName(t);let n=i.get(t);return null==n&&(n=new Set,i.set(t,n)),n.add(e),a.H`${r}.${e}`}generateVertexCode(e){const{_shader:t,_used:i}=this,r=new E.Cy(t.vertex);for(const t of i.keys())this._generateFetchFunction(t,r,e);return r.generateSource()}generateVertexMainCode(e){const{_shader:t,_used:i}=this,r=new E.Cy(t.vertex);for(const t of i.keys())this._generateFetchFunctionCall(t,r,e);return r.generateSource()}_generateFetchFunctionCall(e,t,i){const{itemIndexExpression:r}=i,n=this._used.get(e);if(null==n||0===n.size)return;const s=this.getItemDataName(e),o=this.getFetchName(e);t.add(a.H`${s} = ${o}(${r});`)}_getIndexOffset(e=0){return 0===e?a.H``:a.H`${e<0?"-":"+"}${a.H.uint(Math.abs(e))}`}_generateFetchFunction(e,t,i){const{bufferUniform:r,layout:n}=i,{texelFormatInfo:s}=n,o=this._used.get(e);if(null==o||0===o.size)return;const l=this.getStrideName(),u=this.getStructName(e),h=this.getItemDataName(e),d=this.getFetchName(e),p=this._getIndexOffset(e),g=new Array;for(const e of n.fields.values())o.has(e.name)&&g.push(e);if(0===g.length)return;const m=[];for(let e=0;e<n.texelStride;++e)m.push(!1);for(const e of g)for(let t=0;t<e.numTexels;++t)m[e.startTexel+t]=!0;t.add(a.H`
|
|
699
|
+
}`)}function f(e,t){const{fieldType:i}=e;return`${(0,b[i])(function(e,t){const{byteOffset:i,byteSize:r}=e,n=t.channelByteStride,s=t.byteStride,o=Math.ceil(r/S),l=T[t.channels],c=new Array;for(let e=0;e<o;++e){const t=e*S,o=i+t,u=r-t,h=Math.min(u,S);let d=0;const p=new Array;for(;d<h;){const e=o+d,t=Math.floor(e/s),i=e%s,r=Math.floor(i/n),c=i%n,u=n-c,g=h-d,f=Math.min(u,g),m=a.H`texel${a.H.int(t)}${l[r]}`,v=4===f?"":a.H` & ${a.H.hexuint(C[f])}`,y=0===c?"":a.H` >> ${a.H.uint(w[c])}`,x=a.H`((${m}${y})${v})`,_=0===d?"":a.H` << ${a.H.uint(w[d])}`,b=a.H`(${x})${_}`;p.push(b),d+=f}c.push(a.H`(${p.join(" | ")})`)}return c}(e,t))}`}function m(e,t){const i=[];for(const t of e){const e=a.H`unpackFloat1x32(${t})`;i.push(e)}return i.join(t)}(0,n.Cg)([(0,l.W)()],h.prototype,"supportNaN",void 0);const v=e=>a.H`${e[0]}`,y=e=>{const t=e[0],i=a.H`uvec4(${a.H.uint(w[0])}, ${a.H.uint(w[1])}, ${a.H.uint(w[2])}, ${a.H.uint(w[3])})`,r=a.H`uvec4(${a.H.hexuint(C[1])})`;return a.H`((uvec4(${t}) >> ${i}) & ${r})`},x=e=>a.H`unpackFloat1x32(${e[0]})`,_=e=>a.H`vec4(${m(e,", ")})`,b={u8:v,u32:e=>a.H`${e[0]}`,unorm8:e=>a.H`(float(${v(e)})/${a.H.float(255)})`,vec4unorm8:e=>a.H`(vec4(${y(e)})/${a.H.float(255)})`,snorm16:e=>a.H`unpackSnorm2x16(${e[0]}).x`,vec2snorm16:e=>a.H`unpackSnorm2x16(${e[0]})`,f16:s.SX?e=>a.H`unpackHalf1x16(${e[0]})`:x,vec4f16:s.SX?e=>a.H`vec4(unpackHalf2x16NaNSupport(${e[0]}), unpackHalf2x16NaNSupport(${e[1]}))`:_,f32:x,vec4u8:y,vec2f32:e=>a.H`vec2(${m(e,", ")})`,vec3f32:e=>a.H`vec3(${m(e,", ")})`,vec4f32:_,mat3f32:e=>a.H`mat3(${m(e,",\n")})`},S=4,w=[0,8,16,24],C=[0,255,65535,16777215,4294967295],T={1:[a.H``],2:[a.H`.x`,a.H`.y`],4:[a.H`.x`,a.H`.y`,a.H`.z`,a.H`.w`]};var A=i(620),E=i(14113);const R=new h(!0),O=new h(!1);class M{constructor(e,t){this._shader=e,this._namespace=t,this._used=new Map}getItemSuffix(e){return 0===e?"":`${e<0?"Minus":"Plus"}${Math.abs(e)}`}getItemDataName(e=0){return`${this._namespace}ItemData${this.getItemSuffix(e)}`}getStructName(e=0){return`${this._namespace}TextureBackedBufferItemData${this.getItemSuffix(e)}`}getFetchName(e=0){return`${this._namespace}fetchTextureBackedBufferItemData${this.getItemSuffix(e)}`}getStrideName(){return`${this._namespace}tbbStride`}getTextureAttribute(e,t=0){const i=this._used,r=this.getItemDataName(t);let n=i.get(t);return null==n&&(n=new Set,i.set(t,n)),n.add(e),a.H`${r}.${e}`}generateVertexCode(e){const{_shader:t,_used:i}=this,r=new E.Cy(t.vertex);for(const t of i.keys())this._generateFetchFunction(t,r,e);return r.generateSource()}generateVertexMainCode(e){const{_shader:t,_used:i}=this,r=new E.Cy(t.vertex);for(const t of i.keys())this._generateFetchFunctionCall(t,r,e);return r.generateSource()}_generateFetchFunctionCall(e,t,i){const{itemIndexExpression:r}=i,n=this._used.get(e);if(null==n||0===n.size)return;const s=this.getItemDataName(e),o=this.getFetchName(e);t.add(a.H`${s} = ${o}(${r});`)}_getIndexOffset(e=0){return 0===e?a.H``:a.H`${e<0?"-":"+"}${a.H.uint(Math.abs(e))}`}_generateFetchFunction(e,t,i){const{bufferUniform:r,layout:n}=i,{texelFormatInfo:s}=n,o=this._used.get(e);if(null==o||0===o.size)return;const l=this.getStrideName(),u=this.getStructName(e),h=this.getItemDataName(e),d=this.getFetchName(e),p=this._getIndexOffset(e),g=new Array;for(const e of n.fields.values())o.has(e.name)&&g.push(e);if(0===g.length)return;const m=[];for(let e=0;e<n.texelStride;++e)m.push(!1);for(const e of g)for(let t=0;t<e.numTexels;++t)m[e.startTexel+t]=!0;t.add(a.H`
|
|
700
700
|
struct ${u} {`);for(const e of g)t.add(a.H`\t${c(e)} ${e.name};`);t.add(a.H`};`),t.add(a.H`\n${u} ${d}( highp uint baseIndex ) {
|
|
701
701
|
${u} itemData;
|
|
702
702
|
highp uint index = (baseIndex${p}) * ${l};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[926,5349],{99719(e,t,n){n.d(t,{x:()=>r});class r{}},92400(e,t,n){n.d(t,{CU:()=>l,UQ:()=>o,fF:()=>i,o6:()=>s});var r=n(17676);class i{constructor(){}}function s(e,t,n){if(e instanceof i&&!(e instanceof l)){const r=new l;return r.fn=e,r.parameterEvaluator=n,r.context=t,r}return e}class o extends i{constructor(e,t){super(),this._name=t,this.fn=e}get debugName(){return null!=this._name?`<native>.${this._name}`:"<native>"}createFunction(e){return(...t)=>this.fn(e,{preparsed:!0,arguments:t})}call(e,t){return this.fn(e,t)}marshalledCall(e,t,n,o){return o(e,t,(t,a,u)=>{u=u.map(t=>t instanceof i&&!(t instanceof l)?s(t,e,o):t);const c=this.call(n,{args:u});return(0,r.$X)(c)?c.then(e=>s(e,n,o)):c})}}class l extends i{constructor(){super(...arguments),this.fn=null,this.context=null}get debugName(){return null!=this.fn.debugName?`<imported>.${this.fn.debugName}`:null}createFunction(e){return this.fn.createFunction(this.context)}call(e,t){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}marshalledCall(e,t,n){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}}},93818(e,t,n){n.d(t,{A:()=>r});class r{constructor(e=[]){this._elements=e}length(){return this._elements.length}get(e){return this._elements[e]}toArray(){return this.slice()}slice(e=0,t=this.length()){const n=[];for(let r=e;r<t;r++)n.push(this.get(r));return n}}},7335(e,t,n){n.d(t,{A:()=>s});var r=n(93818),i=n(7320);class s extends r.A{constructor(e,t,n,r,i){super(e),this._lazyPath=[],this._hasZ=!1,this._hasM=!1,this._hasZ=n,this._hasM=r,this._spRef=t,this._cacheId=i}get(e){if(void 0===this._lazyPath[e]){const t=this._elements[e];if(void 0===t)return;this._lazyPath[e]=new i.A(t,this._spRef,this._hasZ,this._hasM,this._cacheId,e)}return this._lazyPath[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()}}},7320(e,t,n){n.d(t,{A:()=>s});var r=n(93818),i=n(86738);class s extends r.A{constructor(e,t,n,r,i,s){super(e),this._lazyPt=[],this._hasZ=!1,this._hasM=!1,this._spRef=t,this._hasZ=n,this._hasM=r,this._cacheId=i,this._partId=s}get(e){if(void 0===this._lazyPt[e]){const t=this._elements[e];if(void 0===t)return;const n=new i.A(t[0],t[1],this._spRef);this._hasZ&&(n.z=t[2]),this._hasM&&(n.m=this._hasZ?t[3]:t[2]),n.cache._arcadeCacheId=this._cacheId.toString()+"-"+this._partId.toString()+"-"+e.toString(),this._lazyPt[e]=n}return this._lazyPt[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()+"-"+this._partId.toString()}}},6800(e,t,n){n.d(t,{G:()=>a,y:()=>o});var r=n(99719),i=n(78878),s=n(54218);function o(e){l=e}let l;function a(e){return null===e?null:(0,i.e)(e)?e.clone():(0,i.b)(e)?e:(0,i.f)(e)?e.clone():(0,i.g)(e)?e.toArray().map(e=>a(e)):(0,s.cy)(e)?e.map(e=>a(e)):(0,i.h)(e)?l.createFromArcadeFeature(e):(0,i.j)(e)||(0,i.k)(e)?e:(0,i.l)(e)||"esri.arcade.Attachment"===e?.declaredClass?e.deepClone():("esri.arcade.Portal"===e?.declaredClass||(0,i.m)(e)||e instanceof r.x||(0,i.i)(e),e)}},33325(e,t,n){n.d(t,{$P:()=>c,JB:()=>m,Lk:()=>f,Qi:()=>y,eB:()=>g,eg:()=>h,f0:()=>d,ke:()=>a,nE:()=>u,rX:()=>p});var r=n(66131),i=n(44729),s=n(15032),o=n(20437),l=n(92647);function a(e){return o.A.fromJSON(e.toJSON())}function u(e){return"toJSON"in e?e.toJSON():e}function c(e){return e instanceof Date}function f(e){return e instanceof l.c9}function p(e){return e instanceof r.lY}function d(e){return e instanceof i.n}function h(e){return e instanceof s.k}function y(e){return void 0===e?"":e=(e=(e=e.replace(/\/featureserver\/[0-9]*/i,"/FeatureServer")).replace(/\/mapserver\/[0-9]*/i,"/MapServer")).split("?")[0]}function m(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const n="boolean"==typeof t.cycles&&t.cycles,r=t.cmp&&(i=t.cmp,function(e){return function(t,n){const r={key:t,value:e[t]},s={key:n,value:e[n]};return i(r,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const l=s.push(t)-1,a=Object.keys(t).sort(r?.(t));for(o="",i=0;i<a.length;i++){const n=a[i],r=e(t[n]);r&&(o&&(o+=","),o+=JSON.stringify(n)+":"+r)}return s.splice(l,1),"{"+o+"}"}(e)}function g(e){switch(e.type){case"catalog-footprint":case"catalog":case"csv":case"feature":case"geojson":case"knowledge-graph-sublayer":case"oriented-imagery":case"parquet":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}n.d(t,["At",0,{"small-integer":"esriFieldTypeSmallInteger",integer:"esriFieldTypeInteger",long:"esriFieldTypeLong",single:"esriFieldTypeSingle",double:"esriFieldTypeDouble",string:"esriFieldTypeString",date:"esriFieldTypeDate","date-only":"esriFieldTypeDateOnly","time-only":"esriFieldTypeTimeOnly","timestamp-offset":"esriFieldTypeTimestampOffset",oid:"esriFieldTypeOID",geometry:"esriFieldTypeGeometry",blob:"esriFieldTypeBlob",raster:"esriFieldTypeRaster",guid:"esriFieldTypeGUID","global-id":"esriFieldTypeGlobalID",xml:"esriFieldTypeXML","big-integer":"esriFieldTypeBigInteger",esriFieldTypeSmallInteger:"esriFieldTypeSmallInteger",esriFieldTypeInteger:"esriFieldTypeInteger",esriFieldTypeLong:"esriFieldTypeLong",esriFieldTypeSingle:"esriFieldTypeSingle",esriFieldTypeDouble:"esriFieldTypeDouble",esriFieldTypeString:"esriFieldTypeString",esriFieldTypeDate:"esriFieldTypeDate",esriFieldTypeDateOnly:"esriFieldTypeDateOnly",esriFieldTypeTimeOnly:"esriFieldTypeTimeOnly",esriFieldTypeTimestampOffset:"esriFieldTypeTimestampOffset",esriFieldTypeOID:"esriFieldTypeOID",esriFieldTypeGeometry:"esriFieldTypeGeometry",esriFieldTypeBlob:"esriFieldTypeBlob",esriFieldTypeRaster:"esriFieldTypeRaster",esriFieldTypeGUID:"esriFieldTypeGUID",esriFieldTypeGlobalID:"esriFieldTypeGlobalID",esriFieldTypeXML:"esriFieldTypeXML",esriFieldTypeBigInteger:"esriFieldTypeBigInteger"},"ik",0,{point:"point",polygon:"polygon",polyline:"polyline",multipoint:"multipoint",extent:"extent",esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint",esriGeometryEnvelope:"extent",envelope:"extent"},"yT",0,{point:"esriGeometryPoint",polygon:"esriGeometryPolygon",polyline:"esriGeometryPolyline",multipoint:"esriGeometryMultipoint",extent:"esriGeometryEnvelope",esriGeometryPoint:"esriGeometryPoint",esriGeometryPolygon:"esriGeometryPolygon",esriGeometryPolyline:"esriGeometryPolyline",esriGeometryMultipoint:"esriGeometryMultipoint",esriGeometryEnvelope:"esriGeometryEnvelope",envelope:"esriGeometryEnvelope"}])},78878(e,t,n){n.d(t,{$:()=>Ge,B:()=>ee,C:()=>q,D:()=>$,E:()=>E,F:()=>L,G:()=>R,H:()=>Fe,I:()=>x,J:()=>ge,K:()=>Ce,L:()=>xe,M:()=>Ze,N:()=>me,O:()=>k,P:()=>te,Q:()=>Oe,R:()=>C,S:()=>J,T:()=>Ee,U:()=>ye,V:()=>se,W:()=>ne,X:()=>Ie,Y:()=>Le,Z:()=>je,_:()=>Ve,a:()=>Re,a0:()=>be,a1:()=>P,a3:()=>fe,a4:()=>Je,a5:()=>Pe,a6:()=>ve,a7:()=>Ae,a8:()=>Se,b:()=>_,c:()=>ue,d:()=>_e,e:()=>H,f:()=>G,g:()=>U,h:()=>j,i:()=>D,j:()=>Y,k:()=>V,l:()=>K,m:()=>B,n:()=>X,o:()=>W,q:()=>I,r:()=>he,s:()=>ce,t:()=>pe,u:()=>le,w:()=>ae,x:()=>De,y:()=>z});var r=n(66131),i=n(99719),s=n(85935),o=n(92400),l=n(93818),a=n(7335),u=n(7320),c=n(33325),f=n(14607),p=n(44729),d=n(15032),h=n(5443),y=n(91075),m=n(48526),g=n(86738),b=n(39829),A=n(82799),S=n(95108),v=n(65864),T=n(73444),N=n(54218),F=n(92647),w=n(94128);class C{constructor(e){this.value=e}}class x{constructor(e){this.value=e}}const Z={type:"VOID"},O=Symbol("BREAK"),M=Symbol("CONTINUE");function P(e,t,n){return""===t||null==t||t===n||t===n?e:e=e.split(t).join(n)}function D(e){return e instanceof o.fF}function R(e){return e instanceof i.x}function _(e){return!!((0,N.Kg)(e)||(0,N.Et)(e)||H(e)||W(e)||X(e)||(0,N.Lm)(e)||null===e||e===Z)}function k(e,t){return void 0===e?t:e}function J(e){return null==e?"":(0,N.cy)(e)||U(e)?"Array":H(e)?"Date":X(e)?"Time":W(e)?"DateOnly":(0,N.Kg)(e)?"String":(0,N.Lm)(e)?"Boolean":(0,N.Et)(e)?"Number":"esri.arcade.Attachment"===e?.declaredClass?"Attachment":"esri.arcade.Portal"===e?.declaredClass?"Portal":"esri.arcade.Dictionary"===e?.declaredClass?"Dictionary":B(e)?"KnowledgeGraph":e instanceof i.x?"Module":j(e)?"Feature":e instanceof g.A?"Point":e instanceof b.A?"Polygon":e instanceof A.A?"Polyline":e instanceof m.A?"Multipoint":e instanceof h.A?"Extent":D(e)?"Function":V(e)?"FeatureSet":Y(e)?"FeatureSetCollection":L(e)?"Voxel":E(e)?"Pixel":e===Z?"":"number"==typeof e&&isNaN(e)?"Number":"Unrecognized Type"}function I(e){return e===Z}function G(e){return e instanceof y.A}function j(e){return"esri.arcade.Feature"===e?.arcadeDeclaredClass}function L(e){return"esri.arcade.Voxel"===e?.arcadeDeclaredClass}function E(e){return"esri.arcade.Pixel"===e?.arcadeDeclaredClass}function V(e){return"esri.arcade.featureset.support.FeatureSet"===e?.declaredRootClass}function K(e){return"esri.arcade.Dictionary"===e?.declaredClass}function q(e){return"esri.arcade.Portal"===e?.declaredClass}function $(e){return"esri.arcade.Attachment"===e?.declaredClass}function z(e){return K(e)||j(e)||L(e)||E(e)}function Y(e){return"esri.arcade.featureSetCollection"===e?.declaredRootClass}function B(e){return"esri.rest.knowledgeGraph.KnowledgeGraph"===e?.declaredClass}function U(e){return e instanceof l.A}function H(e){return e instanceof r.lY}function W(e){return e instanceof p.n}function X(e){return e instanceof d.k}function Q(e){return null!=e&&"object"==typeof e}function ee(e,t,n,r){if(e.length<t||e.length>n)throw new s.D$("WrongNumberOfParameters",r)}function te(e){return null==e||I(e)||""===e}function ne(e){return e<0?-Math.round(-e):Math.round(e)}function re(e,t){return isNaN(e)||null==t||""===t?e.toString():(t=P(t,"‰",""),t=P(t,"¤",""),(0,f.GP)(e,{pattern:t}))}function ie(e,t){return null==t||""===t?e.toISOString(!0):e.toFormat(se(t),{locale:(0,T.JK)(),numberingSystem:"latn"})}function se(e,t=!1){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let n="";const r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|Z{1,5}|.)/g;for(const i of e.match(r)||[])switch(i){case"D":n+="d";break;case"DD":n+="dd";break;case"DDD":n+="o";break;case"d":n+="c";break;case"ddd":n+="ccc";break;case"dddd":n+="cccc";break;case"M":n+="L";break;case"MM":n+="LL";break;case"MMM":n+="LLL";break;case"MMMM":n+="LLLL";break;case"YY":n+="yy";break;case"Y":case"YYYY":n+="yyyy";break;case"Q":n+="q";break;case"Z":n+="Z";break;case"ZZ":n+="ZZ";break;case"ZZZ":n+="ZZZ";break;case"ZZZZ":n+=t?"[ZZZZ]":"ZZZZ";break;case"ZZZZZ":n+=t?"[ZZZZZ]":"ZZZZZ";break;case"S":n+="'S'";break;case"SS":n+="'SS'";break;case"SSS":n+="u";break;case"A":case"a":n+="a";break;case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":case"X":case"x":n+=i;break;default:i.length>=2&&i.startsWith("[")&&i.endsWith("]")?n+=`'${i.slice(1,-1)}'`:n+=`'${i}'`}return n}function oe(e,t,n){switch(n){case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}return!1}function le(e,t,n){if(null===e){if(null===t||t===Z)return oe(null,null,n);if((0,N.Et)(t))return oe(0,t,n);if((0,N.Kg)(t))return oe(0,he(t),n);if((0,N.Lm)(t))return oe(0,he(t),n);if(H(t))return oe(0,t.toNumber(),n);if(X(t))return oe(e,t.toNumber(),n);if(W(t))return oe(e,t.toNumber(),n)}if(e===Z){if(null===t||t===Z)return oe(null,null,n);if((0,N.Et)(t))return oe(0,t,n);if((0,N.Kg)(t))return oe(0,he(t),n);if((0,N.Lm)(t))return oe(0,he(t),n);if(H(t))return oe(0,t.toNumber(),n);if(X(t))return oe(e,t.toNumber(),n);if(W(t))return oe(e,t.toNumber(),n)}else if((0,N.Et)(e)){if((0,N.Et)(t))return oe(e,t,n);if((0,N.Lm)(t))return oe(e,he(t),n);if(null===t||t===Z)return oe(e,0,n);if((0,N.Kg)(t))return oe(e,he(t),n);if(H(t))return oe(e,t.toNumber(),n);if(X(t))return oe(e,t.toNumber(),n);if(W(t))return oe(e,t.toNumber(),n)}else if((0,N.Kg)(e)){if((0,N.Kg)(t))return oe(ce(e),ce(t),n);if(H(t))return oe(he(e),t.toNumber(),n);if(X(t))return oe(he(e),t.toNumber(),n);if(W(t))return oe(he(e),t.toNumber(),n);if((0,N.Et)(t))return oe(he(e),t,n);if(null===t||t===Z)return oe(he(e),0,n);if((0,N.Lm)(t))return oe(he(e),he(t),n)}else if(H(e)){if(H(t))return e.timeZone!==t.timeZone&&(e.isUnknownTimeZone?e=r.lY.arcadeDateAndZoneToArcadeDate(e,t.timeZone):t.isUnknownTimeZone&&(t=r.lY.arcadeDateAndZoneToArcadeDate(t,e.timeZone))),oe(e.toNumber(),t.toNumber(),n);if(null===t||t===Z)return oe(e.toNumber(),0,n);if((0,N.Et)(t))return oe(e.toNumber(),t,n);if((0,N.Lm)(t))return oe(e.toNumber(),he(t),n);if((0,N.Kg)(t))return oe(e.toNumber(),he(t),n);if(X(t))throw new s.D$("CannotCompareDateAndTime",null);if(W(t))return oe(e.toNumber(),t.toNumber(),n)}else if((0,N.Lm)(e)){if((0,N.Lm)(t))return oe(e,t,n);if((0,N.Et)(t))return oe(he(e),he(t),n);if(H(t))return oe(he(e),t.toNumber(),n);if(X(t))return oe(he(e),t.toNumber(),n);if(W(t))return oe(he(e),t.toNumber(),n);if(null===t||t===Z)return oe(he(e),0,n);if((0,N.Kg)(t))return oe(he(e),he(t),n)}else if(W(e)){if(H(t))return oe(e.toNumber(),t.toNumber(),n);if(null===t||t===Z)return oe(e.toNumber(),0,n);if((0,N.Et)(t))return oe(e.toNumber(),t,n);if((0,N.Lm)(t))return oe(e.toNumber(),he(t),n);if((0,N.Kg)(t))return oe(e.toNumber(),he(t),n);if(X(t))throw new s.D$("CannotCompareDateAndTime",null);if(W(t))return oe(e.toNumber(),t.toNumber(),n)}else if(X(e)){if(H(t))throw new s.D$("CannotCompareDateAndTime",null);if(null===t||t===Z)return oe(e.toNumber(),0,n);if((0,N.Et)(t))return oe(e.toNumber(),t,n);if((0,N.Lm)(t))return oe(e.toNumber(),he(t),n);if((0,N.Kg)(t))return oe(e.toNumber(),he(t),n);if(X(t))return oe(e.toNumber(),t.toNumber(),n);if(W(t))throw new s.D$("CannotCompareDateAndTime",null)}return!!ae(e,t)&&("<="===n||">="===n)}function ae(e,t){if(e===t)return!0;if(null===e&&t===Z||null===t&&e===Z)return!0;if(H(e)&&H(t))return e.equals(t);if(X(e)&&X(t))return e.equals(t);if(W(e)&&W(t))return e.equals(t);if(e instanceof a.A)return e.equalityTest(t);if(e instanceof u.A)return e.equalityTest(t);if(e instanceof g.A&&t instanceof g.A){const n=e.cache._arcadeCacheId,r=t.cache._arcadeCacheId;if(null!=n)return n===r}if(Q(e)&&Q(t)){if(e._arcadeCacheId===t._arcadeCacheId&&void 0!==e._arcadeCacheId&&null!==e._arcadeCacheId)return!0;if(e._underlyingGraphic===t._underlyingGraphic&&void 0!==e._underlyingGraphic&&null!==e._underlyingGraphic)return!0}return!1}function ue(e,{useNumbersForDates:t}){let n="";for(const r in e){""!==n&&(n+=",");const i=e[r];null==i?n+=JSON.stringify(r)+":null":(0,N.Lm)(i)||(0,N.Et)(i)||(0,N.Kg)(i)?n+=JSON.stringify(r)+":"+JSON.stringify(i):G(i)?n+=JSON.stringify(r)+":"+pe(i):X(i)||W(i)?n+=`${JSON.stringify(r)}:${JSON.stringify(i.toString())}`:U(i)||Array.isArray(i)?n+=JSON.stringify(r)+":"+pe(i,null,t):H(i)?n+=t?JSON.stringify(r)+":"+JSON.stringify(i.getTime()):JSON.stringify(r)+":"+i.stringify():null!==i&&"object"==typeof i&&"castToText"in i&&(n+=JSON.stringify(r)+":"+i.castToText(t))}return"{"+n+"}"}function ce(e,t){if((0,N.Kg)(e))return e;if(null===e)return"";if((0,N.Et)(e))return re(e,t);if((0,N.Lm)(e))return e.toString();if(H(e))return ie(e,t);if(X(e))return e.toFormat(t);if(W(e))return e.toFormat(t);if(e instanceof y.A)return JSON.stringify(e.toJSON());if((0,N.cy)(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=de(e[n]);return"["+t.join(",")+"]"}if(e instanceof l.A){const t=[];for(let n=0;n<e.length();n++)t[n]=de(e.get(n));return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText():D(e)?"object, Function":e===Z?"":R(e)?"object, Module":""}function fe(e){const t=[];if(e instanceof l.A){for(let n=0;n<e.length();n++)t[n]=he(e.get(n));return t}if(!(0,N.cy)(e))return null;for(let n=0;n<e.length;n++)t[n]=he(e[n]);return t}function pe(e,t,n=!1){if((0,N.Kg)(e))return e;if(null===e)return"";if((0,N.Et)(e))return re(e,t);if((0,N.Lm)(e))return e.toString();if(H(e))return ie(e,t);if(X(e))return e.toFormat(t);if(W(e))return e.toFormat(t);if(e instanceof y.A)return e instanceof h.A?'{"xmin":'+e.xmin.toString()+',"ymin":'+e.ymin.toString()+","+(e.hasZ?'"zmin":'+e.zmin.toString()+",":"")+(e.hasM?'"mmin":'+e.mmin.toString()+",":"")+'"xmax":'+e.xmax.toString()+',"ymax":'+e.ymax.toString()+","+(e.hasZ?'"zmax":'+e.zmax.toString()+",":"")+(e.hasM?'"mmax":'+e.mmax.toString()+",":"")+'"spatialReference":'+Ne(e.spatialReference)+"}":Ne(e.toJSON(),(e,t)=>e.key===t.key?0:"spatialReference"===e.key?1:"spatialReference"===t.key||e.key<t.key?-1:e.key>t.key?1:0);if((0,N.cy)(e)){const t=[];for(let r=0;r<e.length;r++)t[r]=de(e[r],n);return"["+t.join(",")+"]"}if(e instanceof l.A){const t=[];for(let r=0;r<e.length();r++)t[r]=de(e.get(r),n);return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText(n):D(e)?"object, Function":e===Z?"":R(e)?"object, Module":""}function de(e,t=!1){if(null===e)return"null";if((0,N.Lm)(e)||(0,N.Kg)(e))return JSON.stringify(e);if((0,N.Et)(e))return e.toString();if(e instanceof y.A)return pe(e,null,t);if(e instanceof l.A)return pe(e,null,t);if(Array.isArray(e))return pe(e,null,t);if(H(e))return t?JSON.stringify(e.getTime()):JSON.stringify(ie(e,""));if(X(e))return JSON.stringify(e.toString());if(W(e))return JSON.stringify(e.toString());if(null!==e&&"object"==typeof e){if("castToText"in e)return e.castToText(t)}else if(e===Z)return"null";return"null"}function he(e,t){return(0,N.Et)(e)?e:null===e||""===e?0:H(e)||W(e)||X(e)?NaN:(0,N.Lm)(e)?e?1:0:(0,N.cy)(e)||""===e||void 0===e?NaN:void 0!==t&&(0,N.Kg)(e)?(t=P(t,"‰",""),t=P(t,"¤",""),(0,f.qg)(e,{pattern:t})):e===Z?0:Number(e)}function ye(e,t){if(H(e))return e;if((0,N.Kg)(e)){const n=function(e,t){const n=/ (\d\d)/,i=(0,r.mT)(t);let s=F.c9.fromISO(e,{zone:i});return s.isValid||n.test(e)&&(e=e.replace(n,"T$1"),s=F.c9.fromISO(e,{zone:t}),s.isValid)?s:null}(e,t);if(n)return r.lY.dateTimeToArcadeDate(n)}return null}function me(e){return(0,N.Lm)(e)?e:(0,N.Kg)(e)?"true"===(e=e.toLowerCase()):!!(0,N.Et)(e)&&0!==e&&!isNaN(e)}function ge(e,t){return null==e?null:(null!==e.spatialReference&&void 0!==e.spatialReference||(e.spatialReference=t),e)}function be(e){if(null===e)return null;if(e instanceof g.A)return"NaN"===e.x||null===e.x||isNaN(e.x)?null:e;if(e instanceof b.A){if(0===(e.curveRings??e.rings).length)return null;for(const t of e.curveRings??e.rings)if(t.length>0)return e;return null}if(e instanceof A.A){if(0===(e.curvePaths??e.paths).length)return null;for(const t of e.curvePaths??e.paths)if(t.length>0)return e;return null}return e instanceof m.A?0===e.points.length?null:e:e instanceof h.A?"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)?null:e:null}function Ae(e,t){if(!e)return t;if(!e.domain)return t;let n=null,r=null;if(H(t))n=t.toNumber();else if(W(t))n=t.toString();else if(X(t))n=t.toStorageString();else if("string"===e.field.type||"esriFieldTypeString"===e.field.type)n=ce(t);else{if(null==t)return null;if(""===t)return t;n=he(t)}for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.code===n&&(r=i)}return null===r?ce(t):r.name}function Se(e,t){if(!e)return t;if(!e.domain)return t;let n=null;const r=ce(t);for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.name===r&&(n=i)}return null===n?t:n.code}function ve(e,t,n=null,r=null){if(!t)return null;if(!t.fields)return null;let i,o,l=null;for(let n=0;n<t.fields.length;n++){const r=t.fields[n];r.name.toLowerCase()===e.toString().toLowerCase()&&(l=r)}if(null===l)throw new s.D$("FieldNotFound",null,{key:e});let a=t.typeIdField,u="id",c=t.types;if(t.subtypeField&&(a=t.subtypeField,u="code",c=t.subtypes??[]),null===r&&n&&a)r=n.hasField(a)?n.field(a):null;else if(a&&null!==r){let e=!1;for(const t of c||[])if(r===t[u]){e=!0;break}if(!e)for(const t of c||[])if(r===t.name){r=t[u],e=!0;break}e||(r=null,n&&a&&(r=n.hasField(a)?n.field(a):null))}return null!=r&&c.some(e=>e[u]===r&&(i=e.domains?.[l.name],i&&"inherited"===i.type&&(i=Te(l.name,t),o=!0),!0)),o||i||(i=Te(e,t)),{field:l,domain:i}}function Te(e,t){let n;return t.fields.some(t=>(t.name.toLowerCase()===e.toLowerCase()&&(n=t.domain),!!n)),n}function Ne(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const n="boolean"==typeof t.cycles&&t.cycles,r=t.cmp&&(i=t.cmp,function(e){return function(t,n){const r={key:t,value:e[t]},s={key:n,value:e[n]};return i(r,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const l=s.push(t)-1,a=Object.keys(t).sort(r?.(t));for(o="",i=0;i<a.length;i++){const n=a[i],r=e(t[n]);r&&(o&&(o+=","),o+=JSON.stringify(n)+":"+r)}return s.splice(l,1),"{"+o+"}"}(e)}function Fe(e){if(null===e)return null;const t=[];for(const n of e)j(n)?t.push(n.geometry()):t.push(n);return t}function we(e,t){if(!(t instanceof g.A))throw new s.D$("InvalidParameter",null);e.push(t.hasZ?t.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])}function Ce(e,t){if((0,N.cy)(e)||U(e)){let n=!1,r=!1,i=[],o=t;if((0,N.cy)(e)){for(const t of e)we(i,t);i.length>0&&(o=e[0].spatialReference,n=e[0].hasZ,r=e[0].hasM)}else if(e instanceof u.A)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,o=e.get(0).spatialReference);else{if(!U(e))throw new s.D$("InvalidParameter",null);for(const t of e.toArray())we(i,t);i.length>0&&(o=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:((0,S.$3)(i)||(i=i.slice().reverse()),new b.A({rings:[i],spatialReference:o,hasZ:n,hasM:r}))}return e}function xe(e,t){if((0,N.cy)(e)||U(e)){let n=!1,r=!1,i=[],s=t;if((0,N.cy)(e)){for(const t of e)we(i,t);i.length>0&&(s=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof u.A)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,s=e.get(0).spatialReference);else if(U(e)){for(const t of e.toArray())we(i,t);i.length>0&&(s=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new A.A({paths:[i],spatialReference:s,hasZ:n,hasM:r})}return e}function Ze(e,t){if((0,N.cy)(e)||U(e)){let n=!1,r=!1,i=[],s=t;if((0,N.cy)(e)){for(const t of e)we(i,t);i.length>0&&(s=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof u.A)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,s=e.get(0).spatialReference);else if(U(e)){for(const t of e.toArray())we(i,t);i.length>0&&(s=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new m.A({points:i,spatialReference:s,hasZ:n,hasM:r})}return e}function Oe(e,t=!0){if(null==e)return[];if((0,N.cy)(e)){const n=[];for(const r of e){const e=ce(r);(t||""!==e)&&n.push(e)}return n}if(U(e)){const n=[];for(let r=0;r<e.length();r++){const i=ce(e.get(r));(t||""!==i)&&n.push(i)}return n}if(_(e)){const n=ce(e);if(t||""!==n)return[n]}return[]}let Me=0;function Pe(){return Me++,Me%100==0?(Me=0,new Promise(e=>{setTimeout(()=>{e()},0)})):Promise.resolve()}function De(e,t,n){switch(n){case"&":return e&t;case"|":return e|t;case"^":return e^t;case"<<":return e<<t;case">>":return e>>t;case">>>":return e>>>t}}function Re(e){return null==e?null:(0,N.Lm)(e)||(0,N.Et)(e)||(0,N.Kg)(e)?e:e instanceof y.A?e.toJSON():e instanceof l.A?e.toArray().map(e=>Re(e)):Array.isArray(e)?e.map(e=>Re(e)):(0,N.$P)(e)?e:H(e)?e.toJSDate():X(e)?e.toString():W(e)?e.toJSDate():"castAsJson"in e?e.castAsJson():null}async function _e(e,t=null){if(e instanceof l.A&&(e=e.toArray()),null==e)return null;if(_(e)||e instanceof y.A||(0,N.$P)(e)||H(e))return Re(e);if(Array.isArray(e)){const n=[],r=[];for(const i of e)if(null===i||_(i)||i instanceof y.A||(0,N.$P)(i)||H(i))r.push(Re(i));else{const e=r.push(null)-1;n.push(_e(i,t).then(t=>{r[e]=t}))}return n.length>0&&await Promise.all(n),r}return"castAsJsonAsync"in e?e.castAsJsonAsync(t):null}function ke(e){return Je(e)?e.parent:e}function Je(e){return e&&"declaredClass"in e&&"esri.layers.support.SubtypeSublayer"===e.declaredClass}function Ie(e,t,n){const r=ke(e.fullSchema());return null===r?null:r.fields?ve(t,r,e,n):null}function Ge(e){const t=ke(e.fullSchema());return null===t?null:t.fields?t.subtypeField?{subtypeField:t.subtypeField,subtypes:t.subtypes?t.subtypes.map(e=>({name:e.name,code:e.code})):[]}:t.typeIdField?{subtypeField:t.typeIdField,subtypes:t.types?t.types.map(e=>({name:e.name,code:e.id})):[]}:null:null}function je(e,t,n,r){const i=ke(e.fullSchema());if(null===i)return null;if(!i.fields)return null;const s=ve(t,i,e,r);if(void 0===n)try{n=e.field(t)}catch(e){return null}return Ae(s,n)}function Le(e,t,n,r){const i=ke(e.fullSchema());if(null===i)return null;if(!i.fields)return null;if(void 0===n){try{n=e.field(t)}catch(e){return null}return n}return Se(ve(t,i,e,r),n)}function Ee(e){return e?.timeZone??"system"}function Ve(e){const t=ke(e.fullSchema());if(null===t)return null;if(!t.fields)return null;const n=[];for(const e of t.fields)n.push((0,c.nE)(e));return{objectIdField:t.objectIdField,globalIdField:t.globalIdField??"",geometryType:void 0===c.yT[t.geometryType]?"":c.yT[t.geometryType],fields:n}}const Ke=Object.freeze(Object.defineProperty({__proto__:null,ImplicitResult:x,ReturnResult:C,absRound:ne,arcadeVersion:"1.36",autoCastArrayOfPointsToMultiPoint:Ze,autoCastArrayOfPointsToPolygon:Ce,autoCastArrayOfPointsToPolyline:xe,autoCastFeatureToGeometry:Fe,binaryOperator:De,breakResult:O,castAsJson:Re,castAsJsonAsync:_e,castRecordToText:ue,continueResult:M,defaultTimeZone:Ee,defaultUndefined:k,equalityTest:ae,featureDomainCodeLookup:Le,featureDomainValueLookup:je,featureFullDomain:Ie,featureSchema:Ve,featureSubtypes:Ge,fixNullGeometry:be,fixSpatialReference:ge,formatDate:ie,formatNumber:re,getDomain:ve,getDomainCode:Se,getDomainValue:Ae,getType:J,greaterThanLessThan:le,isArray:N.cy,isAttachment:$,isBoolean:N.Lm,isDate:H,isDateOnly:W,isDictionary:K,isDictionaryLike:z,isEmpty:te,isFeature:j,isFeatureSet:V,isFeatureSetCollection:Y,isFunctionParameter:D,isGeometry:G,isGraphic:w.D,isImmutableArray:U,isInteger:N.Fq,isJsDate:N.$P,isKnowledgeGraph:B,isModule:R,isNumber:N.Et,isObject:Q,isPixel:E,isPortal:q,isSimpleType:_,isString:N.Kg,isSubtypeGrouplayer:function(e){return e&&"declaredClass"in e&&"esri.layers.SubtypeGroupLayer"===e.declaredClass},isSubtypeSublayer:Je,isTime:X,isVoid:I,isVoxel:L,multiReplace:P,parseGeometryFromJson:function(e,t){const n=JSON.parse(e);return n&&!n.spatialReference&&(n.spatialReference=t),(0,v.rS)(n)},pcCheck:ee,stableStringify:Ne,standardiseDateFormat:se,tick:Pe,toBoolean:me,toDate:ye,toNumber:he,toNumberArray:fe,toString:ce,toStringArray:Oe,toStringExplicit:pe,voidOperation:Z},Symbol.toStringTag,{value:"Module"}));n.d(t,["A",0,M,"p",0,Ke,"v",0,Z,"z",0,O])},14607(e,t,n){n.d(t,{B:()=>u,GP:()=>l,qg:()=>c});var r=n(799),i=n(73444);const s={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],no:[","," "],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e=(0,i.JK)()){let t=(e=e.toLowerCase())in s;if(!t){const n=e.split("-");n.length>1&&n[0]in s&&(e=n[0],t=!0),t||(e="en")}const[n,r,o="#,##0.###"]=s[e];return{decimal:n,group:r,pattern:o}}function l(e,t){const n=o((t={...t}).locale);t.customs=n;const r=t.pattern||n.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,n){const r=(n=n||{}).customs.group,i=n.customs.decimal,s=t.split(";"),o=s[0];if((t=s[e<0?1:0]||"-"+o).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const l=a,u=o.match(l);if(!u)throw new Error("unable to find a number expression in pattern: "+t);return!1===n.fractional&&(n.places=0),t.replace(l,function(e,t,n){!0===(n=n||{}).places&&(n.places=0),n.places===1/0&&(n.places=6);const r=t.split("."),i="string"==typeof n.places&&n.places.indexOf(",");let s=n.places;i?s=n.places.slice(i+1):+s>=0||(s=(r[1]||[]).length),n.round<0||(e=Number(e.toFixed(Number(s))));const o=String(Math.abs(e)).split("."),l=o[1]||"";if(r[1]||n.places){i&&(n.places=n.places.slice(0,Math.max(0,i)));const e=void 0!==n.places?n.places:r[1]&&r[1].lastIndexOf("0")+1;+e>l.length&&(o[1]=l.padEnd(Number(e),"0")),+s<l.length&&(o[1]=l.slice(0,Math.max(0,Number(s))))}else o[1]&&o.pop();const a=r[0].replace(",","");let u=a.indexOf("0");-1!==u&&(u=a.length-u,u>o[0].length&&(o[0]=o[0].padStart(u,"0")),a.includes("#")||(o[0]=o[0].slice(-u)));let c,f,p=r[0].lastIndexOf(",");if(-1!==p){c=r[0].length-p-1;const e=r[0].slice(0,p);p=e.lastIndexOf(","),-1!==p&&(f=e.length-p-1)}const d=[];for(let e=o[0];e;){const t=e.length-c;d.push(t>0?e.slice(Math.max(0,t)):e),e=t>0?e.slice(0,t):"",f&&(c=f,f=void 0)}return o[0]=d.reverse().join(n.group||","),o.join(n.decimal||".")}(e,u[0],{decimal:i,group:r,places:n.places,round:n.round}))}(e,r,t)}const a=/[#0,]*[#0](?:\.0*#*)?/;function u(e){const t=o((e=e||{}).locale),n=e.pattern||t.pattern,i=t.group,s=t.decimal;let l=1;if(n.includes("%"))l/=100;else if(n.includes("‰"))l/=1e3;else if(n.includes("¤"))throw new Error("currency notation not supported");const u=n.split(";");1===u.length&&u.push("-"+u[0]);const c=p(u,t=>(t="(?:"+(0,r.Cj)(t,".")+")").replace(a,t=>{const n={signed:!1,separator:e.strict?i:[i,""],fractional:e.fractional,decimal:s,exponent:!1},r=t.split(".");let o=e.places;1===r.length&&1!==l&&(r[1]="###"),1===r.length||0===o?n.fractional=!1:(void 0===o&&(o=e.pattern?r[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(n.fractional=!0),!e.places&&+o<r[1].length&&(o+=","+r[1].length),n.places=o);const a=r[0].split(",");return a.length>1&&(n.groupSize=a.pop().length,a.length>1&&(n.groupSize2=a.pop().length)),"("+function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!String(e.places).startsWith("0")||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=f(e),n=p(e.fractional,t=>{let n="";return t&&0!==e.places&&(n="\\"+e.decimal,e.places===1/0?n="(?:"+n+"\\d+)?":n+="\\d{"+e.places+"}"),n},!0);let r=t+n;return n&&(r="(?:(?:"+r+")|(?:"+n+"))"),r+p(e.exponent,t=>t?"([eE]"+f({signed:e.eSigned})+")":"")}(n)+")"}),!0);return{regexp:c.replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:i,decimal:s,factor:l}}function c(e,t){const n=u(t),r=new RegExp("^"+n.regexp+"$").exec(e);if(!r)return NaN;let i=r[1];if(!r[1]){if(!r[2])return NaN;i=r[2],n.factor*=-1}return i=i.replaceAll(new RegExp("["+n.group+"\\s\\xa0]","g"),"").replace(n.decimal,"."),Number(i)*n.factor}function f(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",p(e.signed,e=>e?"[-+]":"",!0)+p(e.separator,t=>{if(!t)return"(?:\\d+)";" "===(t=(0,r.Cj)(t))?t="\\s":" "===t&&(t="\\s\\xa0");const n=e.groupSize,i=e.groupSize2;if(i){const e="(?:0|[1-9]\\d{0,"+(i-1)+"}(?:["+t+"]\\d{"+i+"})*["+t+"]\\d{"+n+"})";return n-i>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(n-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(n-1)+"}(?:["+t+"]\\d{"+n+"})*)"},!0)}const p=(e,t,n)=>{if(!Array.isArray(e))return t(e);const r=[];for(let n=0;n<e.length;n++)r.push(t(e[n]));return d(r.join("|"),Boolean(n))},d=(e,t)=>"("+(t?"?:":"")+e+")"},48526(e,t,n){n.d(t,{A:()=>m});var r,i=n(5482),s=n(4576),o=n(4718),l=n(91429),a=n(5443),u=n(91075),c=n(86738),f=n(16930),p=n(90634),d=n(47610),h=n(56993),y=n(43937);let m=r=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:n,hasZ:r,spatialReference:i}=e;switch(t??=[],t?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=f.A.WGS84,{...e,hasM:n,hasZ:r,points:t,spatialReference:i}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,p.ge)(this);return e?new a.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:n,hasZ:i}=this;return new r({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:n,hasZ:i})}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,n=e.spatialReference;return null!=t==(null!=n)&&!(null!=t&&null!=n&&!t.equals(n))&&(0,s.aI)(this.points,e.points,d.v6)}addPoint(e){return(0,h.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;const t=this.points[e],n={x:t[0],y:t[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(n.z=t[2],r=3),this.hasM&&(n.m=t[r]),new c.A(n)}removePoint(e){if(!this._validateInputs(e))return null;const t=new c.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,h.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,i.Cg)([(0,l.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,i.Cg)([(0,l.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,i.Cg)([(0,y.K)("points")],m.prototype,"writePoints",null),m=r=(0,i.Cg)([(0,l.$K)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,n){n.d(t,{A:()=>h});var r,i=n(5482),s=n(4718),o=n(91429),l=n(5443),a=n(91075),u=n(86738),c=n(16930),f=n(90634),p=n(56993),d=n(43937);let h=r=class extends a.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:n,hasZ:r,spatialReference:i}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=c.A.WGS84,{...e,hasM:n,hasZ:r,paths:t,spatialReference:i}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,s.o8)(e)}get extent(){const e=(0,f.Z3)(this),{spatialReference:t}=this;return e?new l.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,n=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const r=[];for(let t=0,n=e.length;t<n;t++)r[t]=e[t].toArray();t[n]=r}else t[n]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new r;return e.spatialReference=this.spatialReference,e.paths=(0,s.o8)(this.paths),e.curvePaths=(0,s.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;const n=this.paths[e][t],r=this.hasZ,i=this.hasM;return r&&!i?new u.A(n[0],n[1],n[2],void 0,this.spatialReference):i&&!r?new u.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&i?new u.A(n[0],n[1],n[2],n[3],this.spatialReference):new u.A(n[0],n[1],this.spatialReference)}insertPoint(e,t,n){return this._validateInputs(e,t,!0)?((0,p.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e].splice(t,0,n),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],n=this.spatialReference,r=t.map(e=>new u.A(e,n));return this.notifyChange("paths"),r}removePoint(e,t){if(!this._validateInputs(e,t))return null;const n=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(e,t,n){return this._validateInputs(e,t)?((0,p.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e][t]=n,this.notifyChange("paths"),this):this}_validateInputs(e,t,n=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const r=this.paths[e];if(n&&(t<0||t>r.length))return!1;if(!n&&(t<0||t>=r.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],h.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],h.prototype,"curvePaths",void 0),(0,i.Cg)([(0,d.K)("curvePaths")],h.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],h.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],h.prototype,"paths",void 0),(0,i.Cg)([(0,d.K)("paths")],h.prototype,"writePaths",null),h=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],h),h.prototype.toJSON.isDefaultToJSON=!0},60408(e,t,n){function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function i(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function l(e){return void 0!==e.rings||void 0!==e.curveRings}function a(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":l(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":i(e)?"esriGeometryMultipoint":null:null}function c(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function f(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}n.d(t,{$B:()=>u,Bi:()=>l,Pv:()=>c,Rg:()=>o,U9:()=>i,W0:()=>f,ZC:()=>r,fT:()=>s,uW:()=>a})},65864(e,t,n){n.d(t,{rS:()=>c,xD:()=>p});var r=n(5443),i=n(91075),s=n(48526),o=n(86738),l=n(39829),a=n(82799),u=n(60408);function c(e){return null==e?null:e instanceof i.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?a.A.fromJSON(e):(0,u.Bi)(e)?l.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?r.A.fromJSON(e):null}const f={esriGeometryPoint:o.A,esriGeometryPolyline:a.A,esriGeometryPolygon:l.A,esriGeometryEnvelope:r.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:l.A};function p(e){return e&&f[e]||null}},39357(e,t,n){n.d(t,{A:()=>l});var r,i=n(5482),s=n(25482),o=n(91429);let l=r=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],l.prototype,"code",void 0),l=r=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],l)},53177(e,t,n){n.d(t,{A:()=>c});var r,i=n(5482),s=n(4718),o=n(91429),l=n(39357),a=n(76357),u=n(93223);let c=class extends a.A{static{r=this}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 r({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,i.Cg)([(0,o.MZ)({type:[l.A],json:{write:{isRequired:!0}}})],c.prototype,"codedValues",void 0),(0,i.Cg)([(0,u.e)({codedValue:"coded-value"})],c.prototype,"type",void 0),c=r=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],c)},76357(e,t,n){n.d(t,{A:()=>u});var r=n(5482),i=n(66552),s=n(25482),o=n(91429),l=n(93223);const a=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,r.Cg)([(0,l.e)(a),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,r.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},20437(e,t,n){n.d(t,{A:()=>h});var r,i=n(5482),s=n(66552),o=n(25482),l=n(91429),a=n(56507),u=n(8631),c=n(98453),f=n(36005),p=n(93223);const d=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier",url:"url"});let h=class extends o.o{static{r=this}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?d.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.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],h.prototype,"alias",void 0),(0,i.Cg)([(0,l.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],h.prototype,"defaultValue",void 0),(0,i.Cg)([(0,l.MZ)()],h.prototype,"description",void 0),(0,i.Cg)([(0,f.w)("description")],h.prototype,"readDescription",null),(0,i.Cg)([(0,l.MZ)({types:u.g,json:{read:{reader:u.r},write:!0}})],h.prototype,"domain",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"editable",void 0),(0,i.Cg)([(0,l.MZ)({type:a.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],h.prototype,"length",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"nullable",void 0),(0,i.Cg)([(0,p.e)(c.m)],h.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)()],h.prototype,"valueType",void 0),(0,i.Cg)([(0,f.w)("valueType",["description"])],h.prototype,"readValueType",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{read:!1}})],h.prototype,"visible",void 0),h=r=(0,i.Cg)([(0,l.$K)("esri.layers.support.Field")],h)},41628(e,t,n){n.d(t,{A:()=>a});var r,i=n(5482),s=n(91429),o=n(76357),l=n(93223);let a=class extends o.A{static{r=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new r({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i.Cg)([(0,s.MZ)({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]},isRequired:!0}}})],a.prototype,"maxValue",void 0),(0,i.Cg)([(0,s.MZ)({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]},isRequired:!0}}})],a.prototype,"minValue",void 0),(0,i.Cg)([(0,l.e)({range:"range"})],a.prototype,"type",void 0),a=r=(0,i.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],a)},8631(e,t,n){n.d(t,{r:()=>p,g:()=>f});var r,i=n(53177),s=n(76357),o=n(5482),l=n(91429),a=n(93223);let u=class extends s.A{static{r=this}constructor(e){super(e),this.type="inherited"}clone(){return new r}};(0,o.Cg)([(0,a.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=r=(0,o.Cg)([(0,l.$K)("esri.layers.support.InheritedDomain")],u);var c=n(41628);const f={key:"type",base:s.A,typeMap:{range:c.A,"coded-value":i.A,inherited:u}};function p(e){if(!e?.type)return null;switch(e.type){case"range":return c.A.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},98453(e,t,n){const r=new(n(66552).J)({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"});n.d(t,["m",0,r])},2272(e,t,n){n.d(t,{Dl:()=>u,gf:()=>f,jV:()=>a,lF:()=>c});var r=n(92602),i=n(70333),s=n(4718),o=n(84952),l=n(926);function a(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function c(e,t,n){const r={};for(const i in e){if("declaredClass"===i)continue;const s=e[i];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))r[i]=s.map(e=>c(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(n?.[i]);r[i]=t?e:JSON.stringify(e)}else r[i]=t?s:JSON.stringify(s);else r[i]=s}return r}async function f(e,t,s){const o=function(e,t){return e?t&&(0,l.Qc)(e)?t:(0,l.getApiKey)(e)??i.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!i.id&&r.A.request.useIdentity&&await Promise.all([n.e(7632),n.e(7417),n.e(148)]).then(n.bind(n,50148));const a=await i.id.getCredential(e,s);return a?.token}},926(e,t,n){n.d(t,{Dd:()=>p,Jn:()=>d,Qc:()=>h,getApiKey:()=>c,getSessionToken:()=>f});var r=n(92602),i=n(11254),s=n(84952);const o=/^https?:\/\/(i?basemaps|basemapstyles)-api\.arcgis\.com\//i,l=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]),a=new Map;let u=null;function c(e){if(!h(e))return null;const t=t=>t instanceof RegExp?t.test(e):"string"==typeof t&&e.startsWith(t),n=r.A.apiKeys;if(Array.isArray(n.scopes))for(const e of n.scopes)if(Array.isArray(e.urls)){if(e.urls.some(t))return e.token}else if(t(e.urls))return e.token;return n.basemapStyles&&o.test(e)?n.basemapStyles:r.A.apiKey&&/^https?:\/\/.+\.arcgis\.com(\/|$)/i.test(e)?r.A.apiKey:null}async function f(e){if(!r.A.sessions?.basemap?.enabled||!o.test(e))return null;const t=c(e);if(!t)return null;u&&await u;const{styleFamily:n="arcgis",autoRefresh:s,duration:l=43200}=r.A.sessions.basemap,f=`${t}:${n}`,p=a.get(f);if(p&&(!s||p.endTime>Date.now()))return p.sessionToken;let d;u=(0,i.A)("https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/sessions/start",{cacheBust:!0,query:{durationSeconds:l,styleFamily:n,token:t}});try{d=(await u).data,d.endTime-=5e3,a.set(f,d)}finally{u=null}return d.sessionToken}function p(){return null!=r.A.apiKey||null!=r.A.apiKeys.basemapStyles}function d(e,t){return t?h(e):null!=c(e)}function h(e){const t=(0,s.$z)(e,!0);return!!t&&!l.has(t)&&!e.endsWith("/sharing/rest/generateToken")}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[926,5349],{99719(e,t,n){n.d(t,{x:()=>r});class r{}},92400(e,t,n){n.d(t,{CU:()=>l,UQ:()=>o,fF:()=>i,o6:()=>s});var r=n(17676);class i{constructor(){}}function s(e,t,n){if(e instanceof i&&!(e instanceof l)){const r=new l;return r.fn=e,r.parameterEvaluator=n,r.context=t,r}return e}class o extends i{constructor(e,t){super(),this._name=t,this.fn=e}get debugName(){return null!=this._name?`<native>.${this._name}`:"<native>"}createFunction(e){return(...t)=>this.fn(e,{preparsed:!0,arguments:t})}call(e,t){return this.fn(e,t)}marshalledCall(e,t,n,o){return o(e,t,(t,a,u)=>{u=u.map(t=>t instanceof i&&!(t instanceof l)?s(t,e,o):t);const c=this.call(n,{args:u});return(0,r.$X)(c)?c.then(e=>s(e,n,o)):c})}}class l extends i{constructor(){super(...arguments),this.fn=null,this.context=null}get debugName(){return null!=this.fn.debugName?`<imported>.${this.fn.debugName}`:null}createFunction(e){return this.fn.createFunction(this.context)}call(e,t){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}marshalledCall(e,t,n){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}}},93818(e,t,n){n.d(t,{A:()=>r});class r{constructor(e=[]){this._elements=e}length(){return this._elements.length}get(e){return this._elements[e]}toArray(){return this.slice()}slice(e=0,t=this.length()){const n=[];for(let r=e;r<t;r++)n.push(this.get(r));return n}}},7335(e,t,n){n.d(t,{A:()=>s});var r=n(93818),i=n(7320);class s extends r.A{constructor(e,t,n,r,i){super(e),this._lazyPath=[],this._hasZ=!1,this._hasM=!1,this._hasZ=n,this._hasM=r,this._spRef=t,this._cacheId=i}get(e){if(void 0===this._lazyPath[e]){const t=this._elements[e];if(void 0===t)return;this._lazyPath[e]=new i.A(t,this._spRef,this._hasZ,this._hasM,this._cacheId,e)}return this._lazyPath[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()}}},7320(e,t,n){n.d(t,{A:()=>s});var r=n(93818),i=n(86738);class s extends r.A{constructor(e,t,n,r,i,s){super(e),this._lazyPt=[],this._hasZ=!1,this._hasM=!1,this._spRef=t,this._hasZ=n,this._hasM=r,this._cacheId=i,this._partId=s}get(e){if(void 0===this._lazyPt[e]){const t=this._elements[e];if(void 0===t)return;const n=new i.A(t[0],t[1],this._spRef);this._hasZ&&(n.z=t[2]),this._hasM&&(n.m=this._hasZ?t[3]:t[2]),n.cache._arcadeCacheId=this._cacheId.toString()+"-"+this._partId.toString()+"-"+e.toString(),this._lazyPt[e]=n}return this._lazyPt[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()+"-"+this._partId.toString()}}},6800(e,t,n){n.d(t,{G:()=>a,y:()=>o});var r=n(99719),i=n(78878),s=n(54218);function o(e){l=e}let l;function a(e){return null===e?null:(0,i.e)(e)?e.clone():(0,i.b)(e)?e:(0,i.f)(e)?e.clone():(0,i.g)(e)?e.toArray().map(e=>a(e)):(0,s.cy)(e)?e.map(e=>a(e)):(0,i.h)(e)?l.createFromArcadeFeature(e):(0,i.j)(e)||(0,i.k)(e)?e:(0,i.l)(e)||"esri.arcade.Attachment"===e?.declaredClass?e.deepClone():("esri.arcade.Portal"===e?.declaredClass||(0,i.m)(e)||e instanceof r.x||(0,i.i)(e),e)}},33325(e,t,n){n.d(t,{$P:()=>c,JB:()=>m,Lk:()=>f,Qi:()=>y,eB:()=>g,eg:()=>h,f0:()=>d,ke:()=>a,nE:()=>u,rX:()=>p});var r=n(66131),i=n(44729),s=n(15032),o=n(20437),l=n(92647);function a(e){return o.A.fromJSON(e.toJSON())}function u(e){return"toJSON"in e?e.toJSON():e}function c(e){return e instanceof Date}function f(e){return e instanceof l.c9}function p(e){return e instanceof r.lY}function d(e){return e instanceof i.n}function h(e){return e instanceof s.k}function y(e){return void 0===e?"":e=(e=(e=e.replace(/\/featureserver\/[0-9]*/i,"/FeatureServer")).replace(/\/mapserver\/[0-9]*/i,"/MapServer")).split("?")[0]}function m(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const n="boolean"==typeof t.cycles&&t.cycles,r=t.cmp&&(i=t.cmp,function(e){return function(t,n){const r={key:t,value:e[t]},s={key:n,value:e[n]};return i(r,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const l=s.push(t)-1,a=Object.keys(t).sort(r?.(t));for(o="",i=0;i<a.length;i++){const n=a[i],r=e(t[n]);r&&(o&&(o+=","),o+=JSON.stringify(n)+":"+r)}return s.splice(l,1),"{"+o+"}"}(e)}function g(e){switch(e.type){case"catalog-footprint":case"catalog":case"csv":case"feature":case"geojson":case"knowledge-graph-sublayer":case"oriented-imagery":case"parquet":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}n.d(t,["At",0,{"small-integer":"esriFieldTypeSmallInteger",integer:"esriFieldTypeInteger",long:"esriFieldTypeLong",single:"esriFieldTypeSingle",double:"esriFieldTypeDouble",string:"esriFieldTypeString",date:"esriFieldTypeDate","date-only":"esriFieldTypeDateOnly","time-only":"esriFieldTypeTimeOnly","timestamp-offset":"esriFieldTypeTimestampOffset",oid:"esriFieldTypeOID",geometry:"esriFieldTypeGeometry",blob:"esriFieldTypeBlob",raster:"esriFieldTypeRaster",guid:"esriFieldTypeGUID","global-id":"esriFieldTypeGlobalID",xml:"esriFieldTypeXML","big-integer":"esriFieldTypeBigInteger",esriFieldTypeSmallInteger:"esriFieldTypeSmallInteger",esriFieldTypeInteger:"esriFieldTypeInteger",esriFieldTypeLong:"esriFieldTypeLong",esriFieldTypeSingle:"esriFieldTypeSingle",esriFieldTypeDouble:"esriFieldTypeDouble",esriFieldTypeString:"esriFieldTypeString",esriFieldTypeDate:"esriFieldTypeDate",esriFieldTypeDateOnly:"esriFieldTypeDateOnly",esriFieldTypeTimeOnly:"esriFieldTypeTimeOnly",esriFieldTypeTimestampOffset:"esriFieldTypeTimestampOffset",esriFieldTypeOID:"esriFieldTypeOID",esriFieldTypeGeometry:"esriFieldTypeGeometry",esriFieldTypeBlob:"esriFieldTypeBlob",esriFieldTypeRaster:"esriFieldTypeRaster",esriFieldTypeGUID:"esriFieldTypeGUID",esriFieldTypeGlobalID:"esriFieldTypeGlobalID",esriFieldTypeXML:"esriFieldTypeXML",esriFieldTypeBigInteger:"esriFieldTypeBigInteger"},"ik",0,{point:"point",polygon:"polygon",polyline:"polyline",multipoint:"multipoint",extent:"extent",esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint",esriGeometryEnvelope:"extent",envelope:"extent"},"yT",0,{point:"esriGeometryPoint",polygon:"esriGeometryPolygon",polyline:"esriGeometryPolyline",multipoint:"esriGeometryMultipoint",extent:"esriGeometryEnvelope",esriGeometryPoint:"esriGeometryPoint",esriGeometryPolygon:"esriGeometryPolygon",esriGeometryPolyline:"esriGeometryPolyline",esriGeometryMultipoint:"esriGeometryMultipoint",esriGeometryEnvelope:"esriGeometryEnvelope",envelope:"esriGeometryEnvelope"}])},78878(e,t,n){n.d(t,{$:()=>Ge,B:()=>ee,C:()=>q,D:()=>$,E:()=>E,F:()=>L,G:()=>R,H:()=>Fe,I:()=>x,J:()=>ge,K:()=>Ce,L:()=>xe,M:()=>Ze,N:()=>me,O:()=>k,P:()=>te,Q:()=>Oe,R:()=>C,S:()=>J,T:()=>Ee,U:()=>ye,V:()=>se,W:()=>ne,X:()=>Ie,Y:()=>Le,Z:()=>je,_:()=>Ve,a:()=>Re,a0:()=>be,a1:()=>P,a3:()=>fe,a4:()=>Je,a5:()=>Pe,a6:()=>ve,a7:()=>Ae,a8:()=>Se,b:()=>_,c:()=>ue,d:()=>_e,e:()=>H,f:()=>G,g:()=>U,h:()=>j,i:()=>D,j:()=>Y,k:()=>V,l:()=>K,m:()=>B,n:()=>X,o:()=>W,q:()=>I,r:()=>he,s:()=>ce,t:()=>pe,u:()=>le,w:()=>ae,x:()=>De,y:()=>z});var r=n(66131),i=n(99719),s=n(85935),o=n(92400),l=n(93818),a=n(7335),u=n(7320),c=n(33325),f=n(14607),p=n(44729),d=n(15032),h=n(5443),y=n(91075),m=n(48526),g=n(86738),b=n(39829),A=n(82799),S=n(95108),v=n(65864),T=n(73444),N=n(54218),F=n(92647),w=n(94128);class C{constructor(e){this.value=e}}class x{constructor(e){this.value=e}}const Z={type:"VOID"},O=Symbol("BREAK"),M=Symbol("CONTINUE");function P(e,t,n){return""===t||null==t||t===n||t===n?e:e=e.split(t).join(n)}function D(e){return e instanceof o.fF}function R(e){return e instanceof i.x}function _(e){return!!((0,N.Kg)(e)||(0,N.Et)(e)||H(e)||W(e)||X(e)||(0,N.Lm)(e)||null===e||e===Z)}function k(e,t){return void 0===e?t:e}function J(e){return null==e?"":(0,N.cy)(e)||U(e)?"Array":H(e)?"Date":X(e)?"Time":W(e)?"DateOnly":(0,N.Kg)(e)?"String":(0,N.Lm)(e)?"Boolean":(0,N.Et)(e)?"Number":"esri.arcade.Attachment"===e?.declaredClass?"Attachment":"esri.arcade.Portal"===e?.declaredClass?"Portal":"esri.arcade.Dictionary"===e?.declaredClass?"Dictionary":B(e)?"KnowledgeGraph":e instanceof i.x?"Module":j(e)?"Feature":e instanceof g.A?"Point":e instanceof b.A?"Polygon":e instanceof A.A?"Polyline":e instanceof m.A?"Multipoint":e instanceof h.A?"Extent":D(e)?"Function":V(e)?"FeatureSet":Y(e)?"FeatureSetCollection":L(e)?"Voxel":E(e)?"Pixel":e===Z?"":"number"==typeof e&&isNaN(e)?"Number":"Unrecognized Type"}function I(e){return e===Z}function G(e){return e instanceof y.A}function j(e){return"esri.arcade.Feature"===e?.arcadeDeclaredClass}function L(e){return"esri.arcade.Voxel"===e?.arcadeDeclaredClass}function E(e){return"esri.arcade.Pixel"===e?.arcadeDeclaredClass}function V(e){return"esri.arcade.featureset.support.FeatureSet"===e?.declaredRootClass}function K(e){return"esri.arcade.Dictionary"===e?.declaredClass}function q(e){return"esri.arcade.Portal"===e?.declaredClass}function $(e){return"esri.arcade.Attachment"===e?.declaredClass}function z(e){return K(e)||j(e)||L(e)||E(e)}function Y(e){return"esri.arcade.featureSetCollection"===e?.declaredRootClass}function B(e){return"esri.rest.knowledgeGraph.KnowledgeGraph"===e?.declaredClass}function U(e){return e instanceof l.A}function H(e){return e instanceof r.lY}function W(e){return e instanceof p.n}function X(e){return e instanceof d.k}function Q(e){return null!=e&&"object"==typeof e}function ee(e,t,n,r){if(e.length<t||e.length>n)throw new s.D$("WrongNumberOfParameters",r)}function te(e){return null==e||I(e)||""===e}function ne(e){return e<0?-Math.round(-e):Math.round(e)}function re(e,t){return isNaN(e)||null==t||""===t?e.toString():(t=P(t,"‰",""),t=P(t,"¤",""),(0,f.GP)(e,{pattern:t}))}function ie(e,t){return null==t||""===t?e.toISOString(!0):e.toFormat(se(t),{locale:(0,T.JK)(),numberingSystem:"latn"})}function se(e,t=!1){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let n="";const r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|Z{1,5}|.)/g;for(const i of e.match(r)||[])switch(i){case"D":n+="d";break;case"DD":n+="dd";break;case"DDD":n+="o";break;case"d":n+="c";break;case"ddd":n+="ccc";break;case"dddd":n+="cccc";break;case"M":n+="L";break;case"MM":n+="LL";break;case"MMM":n+="LLL";break;case"MMMM":n+="LLLL";break;case"YY":n+="yy";break;case"Y":case"YYYY":n+="yyyy";break;case"Q":n+="q";break;case"Z":n+="Z";break;case"ZZ":n+="ZZ";break;case"ZZZ":n+="ZZZ";break;case"ZZZZ":n+=t?"[ZZZZ]":"ZZZZ";break;case"ZZZZZ":n+=t?"[ZZZZZ]":"ZZZZZ";break;case"S":n+="'S'";break;case"SS":n+="'SS'";break;case"SSS":n+="u";break;case"A":case"a":n+="a";break;case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":case"X":case"x":n+=i;break;default:i.length>=2&&i.startsWith("[")&&i.endsWith("]")?n+=`'${i.slice(1,-1)}'`:n+=`'${i}'`}return n}function oe(e,t,n){switch(n){case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}return!1}function le(e,t,n){if(null===e){if(null===t||t===Z)return oe(null,null,n);if((0,N.Et)(t))return oe(0,t,n);if((0,N.Kg)(t))return oe(0,he(t),n);if((0,N.Lm)(t))return oe(0,he(t),n);if(H(t))return oe(0,t.toNumber(),n);if(X(t))return oe(e,t.toNumber(),n);if(W(t))return oe(e,t.toNumber(),n)}if(e===Z){if(null===t||t===Z)return oe(null,null,n);if((0,N.Et)(t))return oe(0,t,n);if((0,N.Kg)(t))return oe(0,he(t),n);if((0,N.Lm)(t))return oe(0,he(t),n);if(H(t))return oe(0,t.toNumber(),n);if(X(t))return oe(e,t.toNumber(),n);if(W(t))return oe(e,t.toNumber(),n)}else if((0,N.Et)(e)){if((0,N.Et)(t))return oe(e,t,n);if((0,N.Lm)(t))return oe(e,he(t),n);if(null===t||t===Z)return oe(e,0,n);if((0,N.Kg)(t))return oe(e,he(t),n);if(H(t))return oe(e,t.toNumber(),n);if(X(t))return oe(e,t.toNumber(),n);if(W(t))return oe(e,t.toNumber(),n)}else if((0,N.Kg)(e)){if((0,N.Kg)(t))return oe(ce(e),ce(t),n);if(H(t))return oe(he(e),t.toNumber(),n);if(X(t))return oe(he(e),t.toNumber(),n);if(W(t))return oe(he(e),t.toNumber(),n);if((0,N.Et)(t))return oe(he(e),t,n);if(null===t||t===Z)return oe(he(e),0,n);if((0,N.Lm)(t))return oe(he(e),he(t),n)}else if(H(e)){if(H(t))return e.timeZone!==t.timeZone&&(e.isUnknownTimeZone?e=r.lY.arcadeDateAndZoneToArcadeDate(e,t.timeZone):t.isUnknownTimeZone&&(t=r.lY.arcadeDateAndZoneToArcadeDate(t,e.timeZone))),oe(e.toNumber(),t.toNumber(),n);if(null===t||t===Z)return oe(e.toNumber(),0,n);if((0,N.Et)(t))return oe(e.toNumber(),t,n);if((0,N.Lm)(t))return oe(e.toNumber(),he(t),n);if((0,N.Kg)(t))return oe(e.toNumber(),he(t),n);if(X(t))throw new s.D$("CannotCompareDateAndTime",null);if(W(t))return oe(e.toNumber(),t.toNumber(),n)}else if((0,N.Lm)(e)){if((0,N.Lm)(t))return oe(e,t,n);if((0,N.Et)(t))return oe(he(e),he(t),n);if(H(t))return oe(he(e),t.toNumber(),n);if(X(t))return oe(he(e),t.toNumber(),n);if(W(t))return oe(he(e),t.toNumber(),n);if(null===t||t===Z)return oe(he(e),0,n);if((0,N.Kg)(t))return oe(he(e),he(t),n)}else if(W(e)){if(H(t))return oe(e.toNumber(),t.toNumber(),n);if(null===t||t===Z)return oe(e.toNumber(),0,n);if((0,N.Et)(t))return oe(e.toNumber(),t,n);if((0,N.Lm)(t))return oe(e.toNumber(),he(t),n);if((0,N.Kg)(t))return oe(e.toNumber(),he(t),n);if(X(t))throw new s.D$("CannotCompareDateAndTime",null);if(W(t))return oe(e.toNumber(),t.toNumber(),n)}else if(X(e)){if(H(t))throw new s.D$("CannotCompareDateAndTime",null);if(null===t||t===Z)return oe(e.toNumber(),0,n);if((0,N.Et)(t))return oe(e.toNumber(),t,n);if((0,N.Lm)(t))return oe(e.toNumber(),he(t),n);if((0,N.Kg)(t))return oe(e.toNumber(),he(t),n);if(X(t))return oe(e.toNumber(),t.toNumber(),n);if(W(t))throw new s.D$("CannotCompareDateAndTime",null)}return!!ae(e,t)&&("<="===n||">="===n)}function ae(e,t){if(e===t)return!0;if(null===e&&t===Z||null===t&&e===Z)return!0;if(H(e)&&H(t))return e.equals(t);if(X(e)&&X(t))return e.equals(t);if(W(e)&&W(t))return e.equals(t);if(e instanceof a.A)return e.equalityTest(t);if(e instanceof u.A)return e.equalityTest(t);if(e instanceof g.A&&t instanceof g.A){const n=e.cache._arcadeCacheId,r=t.cache._arcadeCacheId;if(null!=n)return n===r}if(Q(e)&&Q(t)){if(e._arcadeCacheId===t._arcadeCacheId&&void 0!==e._arcadeCacheId&&null!==e._arcadeCacheId)return!0;if(e._underlyingGraphic===t._underlyingGraphic&&void 0!==e._underlyingGraphic&&null!==e._underlyingGraphic)return!0}return!1}function ue(e,{useNumbersForDates:t}){let n="";for(const r in e){""!==n&&(n+=",");const i=e[r];null==i?n+=JSON.stringify(r)+":null":(0,N.Lm)(i)||(0,N.Et)(i)||(0,N.Kg)(i)?n+=JSON.stringify(r)+":"+JSON.stringify(i):G(i)?n+=JSON.stringify(r)+":"+pe(i):X(i)||W(i)?n+=`${JSON.stringify(r)}:${JSON.stringify(i.toString())}`:U(i)||Array.isArray(i)?n+=JSON.stringify(r)+":"+pe(i,null,t):H(i)?n+=t?JSON.stringify(r)+":"+JSON.stringify(i.getTime()):JSON.stringify(r)+":"+i.stringify():null!==i&&"object"==typeof i&&"castToText"in i&&(n+=JSON.stringify(r)+":"+i.castToText(t))}return"{"+n+"}"}function ce(e,t){if((0,N.Kg)(e))return e;if(null===e)return"";if((0,N.Et)(e))return re(e,t);if((0,N.Lm)(e))return e.toString();if(H(e))return ie(e,t);if(X(e))return e.toFormat(t);if(W(e))return e.toFormat(t);if(e instanceof y.A)return JSON.stringify(e.toJSON());if((0,N.cy)(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=de(e[n]);return"["+t.join(",")+"]"}if(e instanceof l.A){const t=[];for(let n=0;n<e.length();n++)t[n]=de(e.get(n));return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText():D(e)?"object, Function":e===Z?"":R(e)?"object, Module":""}function fe(e){const t=[];if(e instanceof l.A){for(let n=0;n<e.length();n++)t[n]=he(e.get(n));return t}if(!(0,N.cy)(e))return null;for(let n=0;n<e.length;n++)t[n]=he(e[n]);return t}function pe(e,t,n=!1){if((0,N.Kg)(e))return e;if(null===e)return"";if((0,N.Et)(e))return re(e,t);if((0,N.Lm)(e))return e.toString();if(H(e))return ie(e,t);if(X(e))return e.toFormat(t);if(W(e))return e.toFormat(t);if(e instanceof y.A)return e instanceof h.A?'{"xmin":'+e.xmin.toString()+',"ymin":'+e.ymin.toString()+","+(e.hasZ?'"zmin":'+e.zmin.toString()+",":"")+(e.hasM?'"mmin":'+e.mmin.toString()+",":"")+'"xmax":'+e.xmax.toString()+',"ymax":'+e.ymax.toString()+","+(e.hasZ?'"zmax":'+e.zmax.toString()+",":"")+(e.hasM?'"mmax":'+e.mmax.toString()+",":"")+'"spatialReference":'+Ne(e.spatialReference)+"}":Ne(e.toJSON(),(e,t)=>e.key===t.key?0:"spatialReference"===e.key?1:"spatialReference"===t.key||e.key<t.key?-1:e.key>t.key?1:0);if((0,N.cy)(e)){const t=[];for(let r=0;r<e.length;r++)t[r]=de(e[r],n);return"["+t.join(",")+"]"}if(e instanceof l.A){const t=[];for(let r=0;r<e.length();r++)t[r]=de(e.get(r),n);return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText(n):D(e)?"object, Function":e===Z?"":R(e)?"object, Module":""}function de(e,t=!1){if(null===e)return"null";if((0,N.Lm)(e)||(0,N.Kg)(e))return JSON.stringify(e);if((0,N.Et)(e))return e.toString();if(e instanceof y.A)return pe(e,null,t);if(e instanceof l.A)return pe(e,null,t);if(Array.isArray(e))return pe(e,null,t);if(H(e))return t?JSON.stringify(e.getTime()):JSON.stringify(ie(e,""));if(X(e))return JSON.stringify(e.toString());if(W(e))return JSON.stringify(e.toString());if(null!==e&&"object"==typeof e){if("castToText"in e)return e.castToText(t)}else if(e===Z)return"null";return"null"}function he(e,t){return(0,N.Et)(e)?e:null===e||""===e?0:H(e)||W(e)||X(e)?NaN:(0,N.Lm)(e)?e?1:0:(0,N.cy)(e)||""===e||void 0===e?NaN:void 0!==t&&(0,N.Kg)(e)?(t=P(t,"‰",""),t=P(t,"¤",""),(0,f.qg)(e,{pattern:t})):e===Z?0:Number(e)}function ye(e,t){if(H(e))return e;if((0,N.Kg)(e)){const n=function(e,t){const n=/ (\d\d)/,i=(0,r.mT)(t);let s=F.c9.fromISO(e,{zone:i});return s.isValid||n.test(e)&&(e=e.replace(n,"T$1"),s=F.c9.fromISO(e,{zone:t}),s.isValid)?s:null}(e,t);if(n)return r.lY.dateTimeToArcadeDate(n)}return null}function me(e){return(0,N.Lm)(e)?e:(0,N.Kg)(e)?"true"===(e=e.toLowerCase()):!!(0,N.Et)(e)&&0!==e&&!isNaN(e)}function ge(e,t){return null==e?null:(null!==e.spatialReference&&void 0!==e.spatialReference||(e.spatialReference=t),e)}function be(e){if(null===e)return null;if(e instanceof g.A)return"NaN"===e.x||null===e.x||isNaN(e.x)?null:e;if(e instanceof b.A){if(0===(e.curveRings??e.rings).length)return null;for(const t of e.curveRings??e.rings)if(t.length>0)return e;return null}if(e instanceof A.A){if(0===(e.curvePaths??e.paths).length)return null;for(const t of e.curvePaths??e.paths)if(t.length>0)return e;return null}return e instanceof m.A?0===e.points.length?null:e:e instanceof h.A?"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)?null:e:null}function Ae(e,t){if(!e)return t;if(!e.domain)return t;let n=null,r=null;if(H(t))n=t.toNumber();else if(W(t))n=t.toString();else if(X(t))n=t.toStorageString();else if("string"===e.field.type||"esriFieldTypeString"===e.field.type)n=ce(t);else{if(null==t)return null;if(""===t)return t;n=he(t)}for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.code===n&&(r=i)}return null===r?ce(t):r.name}function Se(e,t){if(!e)return t;if(!e.domain)return t;let n=null;const r=ce(t);for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.name===r&&(n=i)}return null===n?t:n.code}function ve(e,t,n=null,r=null){if(!t)return null;if(!t.fields)return null;let i,o,l=null;for(let n=0;n<t.fields.length;n++){const r=t.fields[n];r.name.toLowerCase()===e.toString().toLowerCase()&&(l=r)}if(null===l)throw new s.D$("FieldNotFound",null,{key:e});let a=t.typeIdField,u="id",c=t.types;if(t.subtypeField&&(a=t.subtypeField,u="code",c=t.subtypes??[]),null===r&&n&&a)r=n.hasField(a)?n.field(a):null;else if(a&&null!==r){let e=!1;for(const t of c||[])if(r===t[u]){e=!0;break}if(!e)for(const t of c||[])if(r===t.name){r=t[u],e=!0;break}e||(r=null,n&&a&&(r=n.hasField(a)?n.field(a):null))}return null!=r&&c.some(e=>e[u]===r&&(i=e.domains?.[l.name],i&&"inherited"===i.type&&(i=Te(l.name,t),o=!0),!0)),o||i||(i=Te(e,t)),{field:l,domain:i}}function Te(e,t){let n;return t.fields.some(t=>(t.name.toLowerCase()===e.toLowerCase()&&(n=t.domain),!!n)),n}function Ne(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const n="boolean"==typeof t.cycles&&t.cycles,r=t.cmp&&(i=t.cmp,function(e){return function(t,n){const r={key:t,value:e[t]},s={key:n,value:e[n]};return i(r,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const l=s.push(t)-1,a=Object.keys(t).sort(r?.(t));for(o="",i=0;i<a.length;i++){const n=a[i],r=e(t[n]);r&&(o&&(o+=","),o+=JSON.stringify(n)+":"+r)}return s.splice(l,1),"{"+o+"}"}(e)}function Fe(e){if(null===e)return null;const t=[];for(const n of e)j(n)?t.push(n.geometry()):t.push(n);return t}function we(e,t){if(!(t instanceof g.A))throw new s.D$("InvalidParameter",null);e.push(t.hasZ?t.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])}function Ce(e,t){if((0,N.cy)(e)||U(e)){let n=!1,r=!1,i=[],o=t;if((0,N.cy)(e)){for(const t of e)we(i,t);i.length>0&&(o=e[0].spatialReference,n=e[0].hasZ,r=e[0].hasM)}else if(e instanceof u.A)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,o=e.get(0).spatialReference);else{if(!U(e))throw new s.D$("InvalidParameter",null);for(const t of e.toArray())we(i,t);i.length>0&&(o=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:((0,S.$3)(i)||(i=i.slice().reverse()),new b.A({rings:[i],spatialReference:o,hasZ:n,hasM:r}))}return e}function xe(e,t){if((0,N.cy)(e)||U(e)){let n=!1,r=!1,i=[],s=t;if((0,N.cy)(e)){for(const t of e)we(i,t);i.length>0&&(s=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof u.A)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,s=e.get(0).spatialReference);else if(U(e)){for(const t of e.toArray())we(i,t);i.length>0&&(s=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new A.A({paths:[i],spatialReference:s,hasZ:n,hasM:r})}return e}function Ze(e,t){if((0,N.cy)(e)||U(e)){let n=!1,r=!1,i=[],s=t;if((0,N.cy)(e)){for(const t of e)we(i,t);i.length>0&&(s=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof u.A)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,s=e.get(0).spatialReference);else if(U(e)){for(const t of e.toArray())we(i,t);i.length>0&&(s=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new m.A({points:i,spatialReference:s,hasZ:n,hasM:r})}return e}function Oe(e,t=!0){if(null==e)return[];if((0,N.cy)(e)){const n=[];for(const r of e){const e=ce(r);(t||""!==e)&&n.push(e)}return n}if(U(e)){const n=[];for(let r=0;r<e.length();r++){const i=ce(e.get(r));(t||""!==i)&&n.push(i)}return n}if(_(e)){const n=ce(e);if(t||""!==n)return[n]}return[]}let Me=0;function Pe(){return Me++,Me%100==0?(Me=0,new Promise(e=>{setTimeout(()=>{e()},0)})):Promise.resolve()}function De(e,t,n){switch(n){case"&":return e&t;case"|":return e|t;case"^":return e^t;case"<<":return e<<t;case">>":return e>>t;case">>>":return e>>>t}}function Re(e){return null==e?null:(0,N.Lm)(e)||(0,N.Et)(e)||(0,N.Kg)(e)?e:e instanceof y.A?e.toJSON():e instanceof l.A?e.toArray().map(e=>Re(e)):Array.isArray(e)?e.map(e=>Re(e)):(0,N.$P)(e)?e:H(e)?e.toJSDate():X(e)?e.toString():W(e)?e.toJSDate():"castAsJson"in e?e.castAsJson():null}async function _e(e,t=null){if(e instanceof l.A&&(e=e.toArray()),null==e)return null;if(_(e)||e instanceof y.A||(0,N.$P)(e)||H(e))return Re(e);if(Array.isArray(e)){const n=[],r=[];for(const i of e)if(null===i||_(i)||i instanceof y.A||(0,N.$P)(i)||H(i))r.push(Re(i));else{const e=r.push(null)-1;n.push(_e(i,t).then(t=>{r[e]=t}))}return n.length>0&&await Promise.all(n),r}return"castAsJsonAsync"in e?e.castAsJsonAsync(t):null}function ke(e){return Je(e)?e.parent:e}function Je(e){return e&&"declaredClass"in e&&"esri.layers.support.SubtypeSublayer"===e.declaredClass}function Ie(e,t,n){const r=ke(e.fullSchema());return null===r?null:r.fields?ve(t,r,e,n):null}function Ge(e){const t=ke(e.fullSchema());return null===t?null:t.fields?t.subtypeField?{subtypeField:t.subtypeField,subtypes:t.subtypes?t.subtypes.map(e=>({name:e.name,code:e.code})):[]}:t.typeIdField?{subtypeField:t.typeIdField,subtypes:t.types?t.types.map(e=>({name:e.name,code:e.id})):[]}:null:null}function je(e,t,n,r){const i=ke(e.fullSchema());if(null===i)return null;if(!i.fields)return null;const s=ve(t,i,e,r);if(void 0===n)try{n=e.field(t)}catch(e){return null}return Ae(s,n)}function Le(e,t,n,r){const i=ke(e.fullSchema());if(null===i)return null;if(!i.fields)return null;if(void 0===n){try{n=e.field(t)}catch(e){return null}return n}return Se(ve(t,i,e,r),n)}function Ee(e){return e?.timeZone??"system"}function Ve(e){const t=ke(e.fullSchema());if(null===t)return null;if(!t.fields)return null;const n=[];for(const e of t.fields)n.push((0,c.nE)(e));return{objectIdField:t.objectIdField,globalIdField:t.globalIdField??"",geometryType:void 0===c.yT[t.geometryType]?"":c.yT[t.geometryType],fields:n}}const Ke=Object.freeze(Object.defineProperty({__proto__:null,ImplicitResult:x,ReturnResult:C,absRound:ne,arcadeVersion:"1.36",autoCastArrayOfPointsToMultiPoint:Ze,autoCastArrayOfPointsToPolygon:Ce,autoCastArrayOfPointsToPolyline:xe,autoCastFeatureToGeometry:Fe,binaryOperator:De,breakResult:O,castAsJson:Re,castAsJsonAsync:_e,castRecordToText:ue,continueResult:M,defaultTimeZone:Ee,defaultUndefined:k,equalityTest:ae,featureDomainCodeLookup:Le,featureDomainValueLookup:je,featureFullDomain:Ie,featureSchema:Ve,featureSubtypes:Ge,fixNullGeometry:be,fixSpatialReference:ge,formatDate:ie,formatNumber:re,getDomain:ve,getDomainCode:Se,getDomainValue:Ae,getType:J,greaterThanLessThan:le,isArray:N.cy,isAttachment:$,isBoolean:N.Lm,isDate:H,isDateOnly:W,isDictionary:K,isDictionaryLike:z,isEmpty:te,isFeature:j,isFeatureSet:V,isFeatureSetCollection:Y,isFunctionParameter:D,isGeometry:G,isGraphic:w.D,isImmutableArray:U,isInteger:N.Fq,isJsDate:N.$P,isKnowledgeGraph:B,isModule:R,isNumber:N.Et,isObject:Q,isPixel:E,isPortal:q,isSimpleType:_,isString:N.Kg,isSubtypeGrouplayer:function(e){return e&&"declaredClass"in e&&"esri.layers.SubtypeGroupLayer"===e.declaredClass},isSubtypeSublayer:Je,isTime:X,isVoid:I,isVoxel:L,multiReplace:P,parseGeometryFromJson:function(e,t){const n=JSON.parse(e);return n&&!n.spatialReference&&(n.spatialReference=t),(0,v.rS)(n)},pcCheck:ee,stableStringify:Ne,standardiseDateFormat:se,tick:Pe,toBoolean:me,toDate:ye,toNumber:he,toNumberArray:fe,toString:ce,toStringArray:Oe,toStringExplicit:pe,voidOperation:Z},Symbol.toStringTag,{value:"Module"}));n.d(t,["A",0,M,"p",0,Ke,"v",0,Z,"z",0,O])},14607(e,t,n){n.d(t,{B:()=>u,GP:()=>l,qg:()=>c});var r=n(799),i=n(73444);const s={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],no:[","," "],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e=(0,i.JK)()){let t=(e=e.toLowerCase())in s;if(!t){const n=e.split("-");n.length>1&&n[0]in s&&(e=n[0],t=!0),t||(e="en")}const[n,r,o="#,##0.###"]=s[e];return{decimal:n,group:r,pattern:o}}function l(e,t){const n=o((t={...t}).locale);t.customs=n;const r=t.pattern||n.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,n){const r=(n=n||{}).customs.group,i=n.customs.decimal,s=t.split(";"),o=s[0];if((t=s[e<0?1:0]||"-"+o).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const l=a,u=o.match(l);if(!u)throw new Error("unable to find a number expression in pattern: "+t);return!1===n.fractional&&(n.places=0),t.replace(l,function(e,t,n){!0===(n=n||{}).places&&(n.places=0),n.places===1/0&&(n.places=6);const r=t.split("."),i="string"==typeof n.places&&n.places.indexOf(",");let s=n.places;i?s=n.places.slice(i+1):+s>=0||(s=(r[1]||[]).length),n.round<0||(e=Number(e.toFixed(Number(s))));const o=String(Math.abs(e)).split("."),l=o[1]||"";if(r[1]||n.places){i&&(n.places=n.places.slice(0,Math.max(0,i)));const e=void 0!==n.places?n.places:r[1]&&r[1].lastIndexOf("0")+1;+e>l.length&&(o[1]=l.padEnd(Number(e),"0")),+s<l.length&&(o[1]=l.slice(0,Math.max(0,Number(s))))}else o[1]&&o.pop();const a=r[0].replace(",","");let u=a.indexOf("0");-1!==u&&(u=a.length-u,u>o[0].length&&(o[0]=o[0].padStart(u,"0")),a.includes("#")||(o[0]=o[0].slice(-u)));let c,f,p=r[0].lastIndexOf(",");if(-1!==p){c=r[0].length-p-1;const e=r[0].slice(0,p);p=e.lastIndexOf(","),-1!==p&&(f=e.length-p-1)}const d=[];for(let e=o[0];e;){const t=e.length-c;d.push(t>0?e.slice(Math.max(0,t)):e),e=t>0?e.slice(0,t):"",f&&(c=f,f=void 0)}return o[0]=d.reverse().join(n.group||","),o.join(n.decimal||".")}(e,u[0],{decimal:i,group:r,places:n.places,round:n.round}))}(e,r,t)}const a=/[#0,]*[#0](?:\.0*#*)?/;function u(e){const t=o((e=e||{}).locale),n=e.pattern||t.pattern,i=t.group,s=t.decimal;let l=1;if(n.includes("%"))l/=100;else if(n.includes("‰"))l/=1e3;else if(n.includes("¤"))throw new Error("currency notation not supported");const u=n.split(";");1===u.length&&u.push("-"+u[0]);const c=p(u,t=>(t="(?:"+(0,r.Cj)(t,".")+")").replace(a,t=>{const n={signed:!1,separator:e.strict?i:[i,""],fractional:e.fractional,decimal:s,exponent:!1},r=t.split(".");let o=e.places;1===r.length&&1!==l&&(r[1]="###"),1===r.length||0===o?n.fractional=!1:(void 0===o&&(o=e.pattern?r[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(n.fractional=!0),!e.places&&+o<r[1].length&&(o+=","+r[1].length),n.places=o);const a=r[0].split(",");return a.length>1&&(n.groupSize=a.pop().length,a.length>1&&(n.groupSize2=a.pop().length)),"("+function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!String(e.places).startsWith("0")||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=f(e),n=p(e.fractional,t=>{let n="";return t&&0!==e.places&&(n="\\"+e.decimal,e.places===1/0?n="(?:"+n+"\\d+)?":n+="\\d{"+e.places+"}"),n},!0);let r=t+n;return n&&(r="(?:(?:"+r+")|(?:"+n+"))"),r+p(e.exponent,t=>t?"([eE]"+f({signed:e.eSigned})+")":"")}(n)+")"}),!0);return{regexp:c.replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:i,decimal:s,factor:l}}function c(e,t){const n=u(t),r=new RegExp("^"+n.regexp+"$").exec(e);if(!r)return NaN;let i=r[1];if(!r[1]){if(!r[2])return NaN;i=r[2],n.factor*=-1}return i=i.replaceAll(new RegExp("["+n.group+"\\s\\xa0]","g"),"").replace(n.decimal,"."),Number(i)*n.factor}function f(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",p(e.signed,e=>e?"[-+]":"",!0)+p(e.separator,t=>{if(!t)return"(?:\\d+)";" "===(t=(0,r.Cj)(t))?t="\\s":" "===t&&(t="\\s\\xa0");const n=e.groupSize,i=e.groupSize2;if(i){const e="(?:0|[1-9]\\d{0,"+(i-1)+"}(?:["+t+"]\\d{"+i+"})*["+t+"]\\d{"+n+"})";return n-i>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(n-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(n-1)+"}(?:["+t+"]\\d{"+n+"})*)"},!0)}const p=(e,t,n)=>{if(!Array.isArray(e))return t(e);const r=[];for(let n=0;n<e.length;n++)r.push(t(e[n]));return d(r.join("|"),Boolean(n))},d=(e,t)=>"("+(t?"?:":"")+e+")"},48526(e,t,n){n.d(t,{A:()=>m});var r,i=n(5482),s=n(4576),o=n(4718),l=n(91429),a=n(5443),u=n(91075),c=n(86738),f=n(16930),p=n(90634),d=n(47610),h=n(56993),y=n(43937);let m=r=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:n,hasZ:r,spatialReference:i}=e;switch(t??=[],t?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=f.A.WGS84,{...e,hasM:n,hasZ:r,points:t,spatialReference:i}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,p.ge)(this);return e?new a.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:n,hasZ:i}=this;return new r({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:n,hasZ:i})}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,n=e.spatialReference;return null!=t==(null!=n)&&!(null!=t&&null!=n&&!t.equals(n))&&(0,s.aI)(this.points,e.points,d.v6)}addPoint(e){return(0,h.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;const t=this.points[e],n={x:t[0],y:t[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(n.z=t[2],r=3),this.hasM&&(n.m=t[r]),new c.A(n)}removePoint(e){if(!this._validateInputs(e))return null;const t=new c.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,h.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,i.Cg)([(0,l.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,i.Cg)([(0,l.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,i.Cg)([(0,y.K)("points")],m.prototype,"writePoints",null),m=r=(0,i.Cg)([(0,l.$K)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,n){n.d(t,{A:()=>h});var r,i=n(5482),s=n(4718),o=n(91429),l=n(5443),a=n(91075),u=n(86738),c=n(16930),f=n(90634),p=n(56993),d=n(43937);let h=r=class extends a.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:n,hasZ:r,spatialReference:i}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=c.A.WGS84,{...e,hasM:n,hasZ:r,paths:t,spatialReference:i}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,s.o8)(e)}get extent(){const e=(0,f.Z3)(this),{spatialReference:t}=this;return e?new l.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,n=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const r=[];for(let t=0,n=e.length;t<n;t++)r[t]=e[t].toArray();t[n]=r}else t[n]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new r;return e.spatialReference=this.spatialReference,e.paths=(0,s.o8)(this.paths),e.curvePaths=(0,s.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;const n=this.paths[e][t],r=this.hasZ,i=this.hasM;return r&&!i?new u.A(n[0],n[1],n[2],void 0,this.spatialReference):i&&!r?new u.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&i?new u.A(n[0],n[1],n[2],n[3],this.spatialReference):new u.A(n[0],n[1],this.spatialReference)}insertPoint(e,t,n){return this._validateInputs(e,t,!0)?((0,p.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e].splice(t,0,n),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],n=this.spatialReference,r=t.map(e=>new u.A(e,n));return this.notifyChange("paths"),r}removePoint(e,t){if(!this._validateInputs(e,t))return null;const n=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(e,t,n){return this._validateInputs(e,t)?((0,p.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e][t]=n,this.notifyChange("paths"),this):this}_validateInputs(e,t,n=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const r=this.paths[e];if(n&&(t<0||t>r.length))return!1;if(!n&&(t<0||t>=r.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],h.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],h.prototype,"curvePaths",void 0),(0,i.Cg)([(0,d.K)("curvePaths")],h.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],h.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],h.prototype,"paths",void 0),(0,i.Cg)([(0,d.K)("paths")],h.prototype,"writePaths",null),h=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],h),h.prototype.toJSON.isDefaultToJSON=!0},60408(e,t,n){function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function i(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function l(e){return void 0!==e.rings||void 0!==e.curveRings}function a(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":l(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":i(e)?"esriGeometryMultipoint":null:null}function c(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function f(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}n.d(t,{$B:()=>u,Bi:()=>l,Pv:()=>c,Rg:()=>o,U9:()=>i,W0:()=>f,ZC:()=>r,fT:()=>s,uW:()=>a})},65864(e,t,n){n.d(t,{rS:()=>c,xD:()=>p});var r=n(5443),i=n(91075),s=n(48526),o=n(86738),l=n(39829),a=n(82799),u=n(60408);function c(e){return null==e?null:e instanceof i.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?a.A.fromJSON(e):(0,u.Bi)(e)?l.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?r.A.fromJSON(e):null}const f={esriGeometryPoint:o.A,esriGeometryPolyline:a.A,esriGeometryPolygon:l.A,esriGeometryEnvelope:r.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:l.A};function p(e){return e&&f[e]||null}},39357(e,t,n){n.d(t,{A:()=>l});var r,i=n(5482),s=n(25482),o=n(91429);let l=r=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],l.prototype,"code",void 0),l=r=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],l)},53177(e,t,n){n.d(t,{A:()=>c});var r,i=n(5482),s=n(4718),o=n(91429),l=n(39357),a=n(76357),u=n(93223);let c=class extends a.A{static{r=this}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 r({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,i.Cg)([(0,o.MZ)({type:[l.A],json:{write:{isRequired:!0}}})],c.prototype,"codedValues",void 0),(0,i.Cg)([(0,u.e)({codedValue:"coded-value"})],c.prototype,"type",void 0),c=r=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],c)},76357(e,t,n){n.d(t,{A:()=>u});var r=n(5482),i=n(66552),s=n(25482),o=n(91429),l=n(93223);const a=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,r.Cg)([(0,l.e)(a),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,r.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},20437(e,t,n){n.d(t,{A:()=>h});var r,i=n(5482),s=n(66552),o=n(25482),l=n(91429),a=n(56507),u=n(8631),c=n(98453),f=n(36005),p=n(93223);const d=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier",url:"url"});let h=class extends o.o{static{r=this}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?d.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.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],h.prototype,"alias",void 0),(0,i.Cg)([(0,l.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],h.prototype,"defaultValue",void 0),(0,i.Cg)([(0,l.MZ)()],h.prototype,"description",void 0),(0,i.Cg)([(0,f.w)("description")],h.prototype,"readDescription",null),(0,i.Cg)([(0,l.MZ)({types:u.g,json:{read:{reader:u.r},write:!0}})],h.prototype,"domain",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"editable",void 0),(0,i.Cg)([(0,l.MZ)({type:a.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],h.prototype,"length",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"nullable",void 0),(0,i.Cg)([(0,p.e)(c.m)],h.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)()],h.prototype,"valueType",void 0),(0,i.Cg)([(0,f.w)("valueType",["description"])],h.prototype,"readValueType",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{read:!1}})],h.prototype,"visible",void 0),h=r=(0,i.Cg)([(0,l.$K)("esri.layers.support.Field")],h)},41628(e,t,n){n.d(t,{A:()=>a});var r,i=n(5482),s=n(91429),o=n(76357),l=n(93223);let a=class extends o.A{static{r=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new r({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i.Cg)([(0,s.MZ)({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]},isRequired:!0}}})],a.prototype,"maxValue",void 0),(0,i.Cg)([(0,s.MZ)({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]},isRequired:!0}}})],a.prototype,"minValue",void 0),(0,i.Cg)([(0,l.e)({range:"range"})],a.prototype,"type",void 0),a=r=(0,i.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],a)},8631(e,t,n){n.d(t,{r:()=>p,g:()=>f});var r,i=n(53177),s=n(76357),o=n(5482),l=n(91429),a=n(93223);let u=class extends s.A{static{r=this}constructor(e){super(e),this.type="inherited"}clone(){return new r}};(0,o.Cg)([(0,a.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=r=(0,o.Cg)([(0,l.$K)("esri.layers.support.InheritedDomain")],u);var c=n(41628);const f={key:"type",base:s.A,typeMap:{range:c.A,"coded-value":i.A,inherited:u}};function p(e){if(!e?.type)return null;switch(e.type){case"range":return c.A.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},98453(e,t,n){const r=new(n(66552).J)({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"});n.d(t,["m",0,r])},2272(e,t,n){n.d(t,{Dl:()=>u,gf:()=>f,jV:()=>a,lF:()=>c});var r=n(92602),i=n(70333),s=n(4718),o=n(84952),l=n(926);function a(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function c(e,t,n){const r={};for(const i in e){if("declaredClass"===i)continue;const s=e[i];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))r[i]=s.map(e=>c(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(n?.[i]);r[i]=t?e:JSON.stringify(e)}else r[i]=t?s:JSON.stringify(s);else r[i]=s}return r}async function f(e,t,s){const o=function(e,t){return e?t&&(0,l.Qc)(e)?t:(0,l.getApiKey)(e)??i.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!i.id&&r.A.request.useIdentity&&await Promise.all([n.e(7632),n.e(5394),n.e(148)]).then(n.bind(n,50148));const a=await i.id.getCredential(e,s);return a?.token}},926(e,t,n){n.d(t,{Dd:()=>p,Jn:()=>d,Qc:()=>h,getApiKey:()=>c,getSessionToken:()=>f});var r=n(92602),i=n(11254),s=n(84952);const o=/^https?:\/\/(i?basemaps|basemapstyles)-api\.arcgis\.com\//i,l=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]),a=new Map;let u=null;function c(e){if(!h(e))return null;const t=t=>t instanceof RegExp?t.test(e):"string"==typeof t&&e.startsWith(t),n=r.A.apiKeys;if(Array.isArray(n.scopes))for(const e of n.scopes)if(Array.isArray(e.urls)){if(e.urls.some(t))return e.token}else if(t(e.urls))return e.token;return n.basemapStyles&&o.test(e)?n.basemapStyles:r.A.apiKey&&/^https?:\/\/.+\.arcgis\.com(\/|$)/i.test(e)?r.A.apiKey:null}async function f(e){if(!r.A.sessions?.basemap?.enabled||!o.test(e))return null;const t=c(e);if(!t)return null;u&&await u;const{styleFamily:n="arcgis",autoRefresh:s,duration:l=43200}=r.A.sessions.basemap,f=`${t}:${n}`,p=a.get(f);if(p&&(!s||p.endTime>Date.now()))return p.sessionToken;let d;u=(0,i.A)("https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/sessions/start",{cacheBust:!0,query:{durationSeconds:l,styleFamily:n,token:t}});try{d=(await u).data,d.endTime-=5e3,a.set(f,d)}finally{u=null}return d.sessionToken}function p(){return null!=r.A.apiKey||null!=r.A.apiKeys.basemapStyles}function d(e,t){return t?h(e):null!=c(e)}function h(e){const t=(0,s.$z)(e,!0);return!!t&&!l.has(t)&&!e.endsWith("/sharing/rest/generateToken")}}}]);
|
package/config.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="5.2.0-next.
|
|
2
|
+
import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="5.2.0-next.62";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}s.defaultAssetsPath=s.assetsPath}export{s as default};
|
package/core/screenUtils.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import t from"../geometry/Polygon.js";const n=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,r="screenUtils.toPt: input not recognized!",i=96;function e(t){return t?t/72*i:0}function u(t){return t?72*t/i:0}function o(t){if("string"==typeof t){const i=t.match(n);if(i){const n=Number(i[1]),r=i[3]&&i[3].toLowerCase(),e=t.startsWith("-"),o="px"===r?u(n):n;return e?-o:o}return console.warn(r),null}return t}function c(t=0,n=0){return{x:t,y:n}}function
|
|
2
|
+
import t from"../geometry/Polygon.js";const n=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,r="screenUtils.toPt: input not recognized!",i=96;function e(t){return t?t/72*i:0}function u(t){return t?72*t/i:0}function o(t){if("string"==typeof t){const i=t.match(n);if(i){const n=Number(i[1]),r=i[3]&&i[3].toLowerCase(),e=t.startsWith("-"),o="px"===r?u(n):n;return e?-o:o}return console.warn(r),null}return t}function c(t=0,n=0){return{x:t,y:n}}function y(t=0,n=0,r=0,i=0){return{x:t,y:n,width:r,height:i}}function h(t){return t?c(t.x,t.y):null}function a(t=0,n=0){return[t,n]}function f(t=0,n=0){return{x:t,y:n}}function x(t=0,n=0){return m([t,n])}function s(t=0,n=0,r=0){return g([t,n,r])}function m(t){return t}function g(t){return t}function l(t){return t}function p(t,n){return n?(n.x=t[0],n.y=t[1],n):{x:t[0],y:t[1]}}function d(t,n){return n?(n[0]=t.x,n[1]=t.y,n.length>2&&(n[2]=0),n):[t.x,t.y]}function w(t,n){return t===n||null==t&&null==n||t?.x===n?.x&&t?.y===n?.y}function M(t,n){const r=t.x-n.x,i=t.y-n.y;return r*r+i*i}function A(t,n){return Math.sqrt(M(t,n))}function b(t){return"x"in t&&"y"in t&&"width"in t&&"height"in t&&!N(t)}function N(t){return Array.isArray(t)}function F(t){return!Array.isArray(t)&&"x"in t&&"y"in t&&!b(t)&&!N(t)}function P(t,n){return!(t.x+t.width<n.x||n.x+n.width<t.x||t.y+t.height<n.y||n.y+n.height<t.y)}function R(t){return t&&Number.isFinite(t.x)&&Number.isFinite(t.y)}function j(t){return t&&Number.isFinite(t.x)&&Number.isFinite(t.y)&&Number.isFinite(t.width)&&Number.isFinite(t.height)}function q(n,r){const{x:i,y:e,width:u,height:o}=r,y=n.toMap(c(i,e)),h=n.toMap(c(i+u,e)),a=n.toMap(c(i+u,e+o)),f=n.toMap(c(i,e+o));return new t({rings:[[y.toArray(),h.toArray(),a.toArray(),f.toArray(),y.toArray()]],spatialReference:y.spatialReference})}function z(t,n,r){const i=Math.max(0,t.x),e=Math.max(0,t.y),u=Math.min(n,t.x+t.width)-i,o=Math.min(r,t.y+t.height)-e;return{x:i,y:e,width:Math.max(0,u),height:Math.max(0,o)}}export{m as castRenderScreenPointArray,g as castRenderScreenPointArray3,l as castScreenPointArray,z as clipRectToView,h as cloneScreenPoint,f as createRenderScreenPoint,x as createRenderScreenPointArray,s as createRenderScreenPointArray3,c as createScreenPoint,a as createScreenPointArray,y as createScreenRect,F as isScreenPoint,N as isScreenPolygon,b as isScreenRect,R as isValidScreenPoint,j as isValidScreenRect,e as pt2px,u as px2pt,A as screenDistance,p as screenPointArrayToObject,w as screenPointEqual,d as screenPointObjectToArray,P as screenRectIntersects,q as screenRectToPolygon,M as squaredScreenDistance,o as toPt};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{extentContainsCoords2D as n,extentContainsPoint as t,ringsContainsCoords as e,extentContainsCoords3D as r}from"./contains.js";function o(n,e){return t(n,e)}function i(n,t){const e=n.hasZ&&t.hasZ;let r,o,i;if(n.xmin<=t.xmin){if(r=t.xmin,n.xmax<r)return!1}else if(r=n.xmin,t.xmax<r)return!1;if(n.ymin<=t.ymin){if(o=t.ymin,n.ymax<o)return!1}else if(o=n.ymin,t.ymax<o)return!1;if(e&&t.hasZ)if(n.zmin<=t.zmin){if(i=t.zmin,n.zmax<i)return!1}else if(i=n.zmin,t.zmax<i)return!1;return!0}function f(t,e){const{points:o,hasZ:i}=e,f=i?r:n;for(const n of o)if(f(t,n))return!0;return!1}const s=[0,0],c=[0,0],u=[0,0],m=[0,0],a=[s,c,u,m],l=[[u,s],[s,c],[c,m],[m,u]];function x(n,t){return h(n,t.rings)}function h(t,r){s[0]=t.xmin,s[1]=t.ymax,c[0]=t.xmax,c[1]=t.ymax,u[0]=t.xmin,u[1]=t.ymin,m[0]=t.xmax,m[1]=t.ymin;for(const n of a)if(e(r,n))return!0;for(const e of r){if(!e.length)continue;let r=e[0];if(n(t,r))return!0;for(let o=1;o<e.length;o++){const i=e[o];if(n(t,i)||g(r,i,l))return!0;r=i}}return!1}function y(t,e){s[0]=t.xmin,s[1]=t.ymax,c[0]=t.xmax,c[1]=t.ymax,u[0]=t.xmin,u[1]=t.ymin,m[0]=t.xmax,m[1]=t.ymin;const r=e.paths;for(const o of r){if(!r.length)continue;let e=o[0];if(n(t,e))return!0;for(let r=1;r<o.length;r++){const i=o[r];if(n(t,i)||g(e,i,l))return!0;e=i}}return!1}function g(n,t,e){for(let r=0;r<e.length;r++)if(p(n,t,e[r][0],e[r][1]))return!0;return!1}function p(n,t,e,r,o){const[i,f]=n,[s,c]=t,[u,m]=e,[a,l]=r,x=a-u,h=i-u,y=s-i,g=l-m,p=f-m,z=c-f,G=g*y-x*z;if(0===G)return!1;const M=(x*p-g*h)/G,P=(y*p-z*h)/G;return M>=0&&M<=1&&P>=0&&P<=1&&(o&&(o[0]=i+M*(s-i),o[1]=f+M*(c-f)),!0)}function z(n,t,e){for(const r of t){const t=r.length;for(let o=1;o<t;o++){const t=r[o-1],i=r[o];let f=(i[0]-t[0])*(i[0]-t[0])+(i[1]-t[1])*(i[1]-t[1]);if(0===f)continue;f=Math.sqrt(f);const s=((i[0]-t[0])*(n[1]-t[1])-(i[1]-t[1])*(n[0]-t[0]))/f;if(Math.abs(s)<e){const r=((i[0]-t[0])*(n[0]-t[0])+(i[1]-t[1])*(n[1]-t[1]))/f;if(r>-e&&r<f+e)return!0}}}return!1}function G(n){const t=1e-6,e=n[0],r=n[n.length-1];return Math.abs(e[0]-r[0])<=t&&Math.abs(e[1]-r[1])<=t}function M(n,t){let e=0;for(const r of t){const t=r.length;for(let o=1;o<t;o++){const t=r[o-1],i=r[o];if(t[1]>n[1]==i[1]>n[1])continue;(i[0]-t[0])*(n[1]-t[1])-(i[1]-t[1])*(n[0]-t[0])>0?e++:e--}}return 0!==e}function P(n,t){n.length>1&&!G(n)
|
|
2
|
+
import{extentContainsCoords2D as n,extentContainsPoint as t,ringsContainsCoords as e,extentContainsCoords3D as r}from"./contains.js";function o(n,e){return t(n,e)}function i(n,t){const e=n.hasZ&&t.hasZ;let r,o,i;if(n.xmin<=t.xmin){if(r=t.xmin,n.xmax<r)return!1}else if(r=n.xmin,t.xmax<r)return!1;if(n.ymin<=t.ymin){if(o=t.ymin,n.ymax<o)return!1}else if(o=n.ymin,t.ymax<o)return!1;if(e&&t.hasZ)if(n.zmin<=t.zmin){if(i=t.zmin,n.zmax<i)return!1}else if(i=n.zmin,t.zmax<i)return!1;return!0}function f(t,e){const{points:o,hasZ:i}=e,f=i?r:n;for(const n of o)if(f(t,n))return!0;return!1}const s=[0,0],c=[0,0],u=[0,0],m=[0,0],a=[s,c,u,m],l=[[u,s],[s,c],[c,m],[m,u]];function x(n,t){return h(n,t.rings)}function h(t,r){s[0]=t.xmin,s[1]=t.ymax,c[0]=t.xmax,c[1]=t.ymax,u[0]=t.xmin,u[1]=t.ymin,m[0]=t.xmax,m[1]=t.ymin;for(const n of a)if(e(r,n))return!0;for(const e of r){if(!e.length)continue;let r=e[0];if(n(t,r))return!0;for(let o=1;o<e.length;o++){const i=e[o];if(n(t,i)||g(r,i,l))return!0;r=i}}return!1}function y(t,e){s[0]=t.xmin,s[1]=t.ymax,c[0]=t.xmax,c[1]=t.ymax,u[0]=t.xmin,u[1]=t.ymin,m[0]=t.xmax,m[1]=t.ymin;const r=e.paths;for(const o of r){if(!r.length)continue;let e=o[0];if(n(t,e))return!0;for(let r=1;r<o.length;r++){const i=o[r];if(n(t,i)||g(e,i,l))return!0;e=i}}return!1}function g(n,t,e){for(let r=0;r<e.length;r++)if(p(n,t,e[r][0],e[r][1]))return!0;return!1}function p(n,t,e,r,o){const[i,f]=n,[s,c]=t,[u,m]=e,[a,l]=r,x=a-u,h=i-u,y=s-i,g=l-m,p=f-m,z=c-f,G=g*y-x*z;if(0===G)return!1;const M=(x*p-g*h)/G,P=(y*p-z*h)/G;return M>=0&&M<=1&&P>=0&&P<=1&&(o&&(o[0]=i+M*(s-i),o[1]=f+M*(c-f)),!0)}function z(n,t,e){for(const r of t){const t=r.length;for(let o=1;o<t;o++){const t=r[o-1],i=r[o];let f=(i[0]-t[0])*(i[0]-t[0])+(i[1]-t[1])*(i[1]-t[1]);if(0===f)continue;f=Math.sqrt(f);const s=((i[0]-t[0])*(n[1]-t[1])-(i[1]-t[1])*(n[0]-t[0]))/f;if(Math.abs(s)<e){const r=((i[0]-t[0])*(n[0]-t[0])+(i[1]-t[1])*(n[1]-t[1]))/f;if(r>-e&&r<f+e)return!0}}}return!1}function G(n){const t=1e-6,e=n[0],r=n[n.length-1];return Math.abs(e[0]-r[0])<=t&&Math.abs(e[1]-r[1])<=t}function M(n,t){let e=0;for(const r of t){const t=r.length;for(let o=1;o<t;o++){const t=r[o-1],i=r[o];if(t[1]>n[1]==i[1]>n[1])continue;(i[0]-t[0])*(n[1]-t[1])-(i[1]-t[1])*(n[0]-t[0])>0?e++:e--}}return 0!==e}function P(n,t){const e=n.length>1&&!G(n)?[...n,n[0]]:n;for(const r of t){if(r.some(n=>M(n,[e])))return!0;if(G(r))for(const n of e)if(M(n,t))return!0;for(let n=1;n<r.length;n++){const t=r[n-1],o=r[n];for(let n=0;n<e.length;n++){if(p(t,o,e[n],e[(n+1)%e.length]))return!0}}}return!1}function Z(n){switch(n){case"esriGeometryEnvelope":case"extent":return i;case"esriGeometryMultipoint":case"multipoint":return f;case"esriGeometryPoint":case"point":return o;case"esriGeometryMultiPatch":case"multipatch":case"esriGeometryPolygon":case"polygon":return x;case"esriGeometryPolyline":case"polyline":return y}}export{i as extentIntersectsExtent,f as extentIntersectsMultipoint,o as extentIntersectsPoint,x as extentIntersectsPolygon,y as extentIntersectsPolyline,Z as getFeatureExtentIntersector,z as nearLine,M as pointInPolygon,p as segmentIntersects,P as targetIntersectsPolygon};
|