@arcgis/core 5.2.0-next.85 → 5.2.0-next.87
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0993e51d3a9701ed2198.js +1 -0
- package/assets/esri/core/workers/chunks/114ba901fd319ce87dc6.js +1 -0
- package/assets/esri/core/workers/chunks/{3aeb934ebdab1d8c4608.js → 12a3b55195ce3244259d.js} +1 -1
- package/assets/esri/core/workers/chunks/{7c3d46201b11a45f79d0.js → 39c0a3eb6a870953d530.js} +74 -107
- package/assets/esri/core/workers/chunks/3b009c05eaec5a7048a8.js +1 -0
- package/assets/esri/core/workers/chunks/3b376318df4ff8519370.js +1 -0
- package/assets/esri/core/workers/chunks/{a0da026a06de379b8f39.js → 3de20165796fa4f76728.js} +1 -1
- package/assets/esri/core/workers/chunks/414093fa4957d17bf551.js +1 -0
- package/assets/esri/core/workers/chunks/{4ec306e5c11808b96e07.js → 48b31b8534e7bfe42976.js} +1 -1
- package/assets/esri/core/workers/chunks/48f6af09436723f2d861.js +1 -0
- package/assets/esri/core/workers/chunks/5536cee0dfc183584a9b.js +1 -0
- package/assets/esri/core/workers/chunks/6561c01c67db1f4c546e.js +1 -0
- package/assets/esri/core/workers/chunks/68705692335d57522030.js +1 -0
- package/assets/esri/core/workers/chunks/{ed5e9718c4dcad1156f7.js → 6f2a9259240769c7cd6e.js} +1 -1
- package/assets/esri/core/workers/chunks/7b2174b19d06c16715f0.js +1 -0
- package/assets/esri/core/workers/chunks/{b015b8c7a073dbc4a3ad.js → 820c530b8765ecb1f36e.js} +1 -1
- package/assets/esri/core/workers/chunks/830daaca32352da6eebe.js +1 -0
- package/assets/esri/core/workers/chunks/8c2921081ca3e7fd0385.js +1 -0
- package/assets/esri/core/workers/chunks/91496f5a9fd8ae197d3f.js +1 -0
- package/assets/esri/core/workers/chunks/9407db0584c730591161.js +1 -0
- package/assets/esri/core/workers/chunks/9658b46a7111cda53b0d.js +1 -0
- package/assets/esri/core/workers/chunks/974bcaf2a059b8cfb153.js +1 -0
- package/assets/esri/core/workers/chunks/9c7fc1c97125ea2a7b7e.js +1 -0
- package/assets/esri/core/workers/chunks/9ee6e8a6b9bfda758c21.js +1 -0
- package/assets/esri/core/workers/chunks/b3c518ca8679fbe16ece.js +1 -0
- package/assets/esri/core/workers/chunks/b61b7005edd9ced925e9.js +1 -0
- package/assets/esri/core/workers/chunks/bfdb332c155a39028c9d.js +1 -0
- package/assets/esri/core/workers/chunks/c1a7c475ce0c59ffa75a.js +1 -0
- package/assets/esri/core/workers/chunks/{3da39efc5f68f15c105f.js → c2b2942456f1b10d0e96.js} +1 -1
- package/assets/esri/core/workers/chunks/c5dc2743c7116d0bc0d8.js +1 -0
- package/assets/esri/core/workers/chunks/c68cc3b9c170b8de22dc.js +1 -0
- package/assets/esri/core/workers/chunks/d56603e1d0031f3c5f3b.js +1 -0
- package/assets/esri/core/workers/chunks/e474106292834633e7d4.js +1 -0
- package/assets/esri/core/workers/chunks/{d09491b340af3b779505.js → f988d5a6dcc15fe34797.js} +1 -1
- package/assets/esri/core/workers/chunks/fbd02e8277fe2252ecd2.js +1 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
- package/assets/esri/themes/base/widgets/_BuildingDisciplinesTree.scss +1 -1
- package/assets/esri/themes/base/widgets/_Daylight.scss +2 -2
- package/assets/esri/themes/base/widgets/_Editor.scss +1 -1
- package/assets/esri/themes/base/widgets/_Sketch.scss +1 -1
- package/assets/esri/themes/base/widgets/_SketchTooltipControls.scss +1 -1
- package/assets/esri/themes/base/widgets/_Slider.scss +1 -1
- package/assets/esri/themes/base/widgets/_SnappingControls.scss +1 -1
- package/assets/esri/themes/base/widgets/_TimezonePicker.scss +1 -1
- package/chunks/EmissionComposite.glsl.js +2 -2
- package/chunks/GlobalIllumination.glsl.js +69 -102
- package/chunks/RibbonLine.glsl.js +202 -141
- package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
- package/chunks/arcgis-knowledge-client-core.js +1 -1
- package/config.js +1 -1
- package/core/libs/gl-matrix-2/math/vec3.js +1 -1
- package/geometry/operators/projectOperator.d.ts +1 -1
- package/geometry/operators/shapePreservingProjectOperator.d.ts +15 -1
- package/geometry/operators/support/GeographicTransformation.d.ts +4 -3
- package/geometry/operators/support/GeographicTransformationStep.d.ts +2 -1
- package/geometry/operators/support/geographicTransformationUtils.d.ts +22 -15
- package/geometry/operators/types.d.ts +2 -1
- package/geometry/support/convexPolyhedron.js +2 -0
- package/geometry/support/frustum.js +1 -1
- package/kernel.js +1 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/support/mediaUtils.js +1 -1
- package/package.json +3 -3
- package/popup/FeatureContentCollection.js +1 -1
- package/support/actions/ActionBase.d.ts +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/polygonUtils.js +1 -1
- package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
- package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
- package/views/3d/state/utils/navigationUtils.js +1 -1
- package/views/3d/state/utils/ropePullUtils.js +2 -0
- package/views/3d/support/ElevationAgnosticVisibility.js +2 -0
- package/views/3d/support/engineContent/line.js +1 -1
- package/views/3d/support/sphericalTileUtils.js +2 -0
- package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatCovariance.glsl.js +9 -3
- package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatEvaluation.glsl.js +5 -8
- package/views/3d/webgl-engine/lib/Geometry.js +1 -1
- package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
- package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
- package/views/3d/webgl-engine/lib/Material.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/screenPolygonTriangleIntersections.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatPass.glsl.js +39 -51
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/popupAdapter.js +1 -1
- package/assets/esri/core/workers/chunks/05acc17cb66fa6c08845.js +0 -1
- package/assets/esri/core/workers/chunks/11224af8b037ccbf252c.js +0 -1
- package/assets/esri/core/workers/chunks/17a10916114754f1f216.js +0 -1
- package/assets/esri/core/workers/chunks/1b4e050a3884fc6fa6cf.js +0 -1
- package/assets/esri/core/workers/chunks/2f652b330a9978a68e83.js +0 -1
- package/assets/esri/core/workers/chunks/33d6ca59eeb88e739c81.js +0 -1
- package/assets/esri/core/workers/chunks/3cecf627827f5d9213a9.js +0 -1
- package/assets/esri/core/workers/chunks/40ec85b7813a396ee490.js +0 -1
- package/assets/esri/core/workers/chunks/4e94793aab42ebd251ca.js +0 -1
- package/assets/esri/core/workers/chunks/5903dceb172897e5675b.js +0 -1
- package/assets/esri/core/workers/chunks/5e5a05abcb41915802f6.js +0 -1
- package/assets/esri/core/workers/chunks/62f37d1075390a177ae9.js +0 -1
- package/assets/esri/core/workers/chunks/73cb944b87ffce33bb49.js +0 -1
- package/assets/esri/core/workers/chunks/86de2d1f13915ab7a51d.js +0 -1
- package/assets/esri/core/workers/chunks/9b5e890fb0ab29f3a3f1.js +0 -1
- package/assets/esri/core/workers/chunks/a183b77854f5b42c1a86.js +0 -1
- package/assets/esri/core/workers/chunks/ad29b77843a7d93d9f8a.js +0 -1
- package/assets/esri/core/workers/chunks/b812f817c465c64e8c63.js +0 -1
- package/assets/esri/core/workers/chunks/b94b36581842749863f0.js +0 -1
- package/assets/esri/core/workers/chunks/bc6e488f5fbd50f9f3d0.js +0 -1
- package/assets/esri/core/workers/chunks/c229325f41f10fe7f732.js +0 -1
- package/assets/esri/core/workers/chunks/ca6652c6304ad0e37e8f.js +0 -1
- package/assets/esri/core/workers/chunks/d4d2a0d882fef463e7bc.js +0 -1
- package/assets/esri/core/workers/chunks/da45d9576b8d66131623.js +0 -1
- package/assets/esri/core/workers/chunks/e76662562e03eef52ba4.js +0 -1
- package/assets/esri/core/workers/chunks/f1d0208c6b09c1c4b248.js +0 -1
- package/assets/esri/core/workers/chunks/f3680b71d496839de72c.js +0 -1
|
@@ -1,28 +1,20 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{set as a}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as e}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{RejectBySlicePass as i}from"../core/shaderLibrary/Slice.glsl.js";import{DepthConversion as n}from"../core/shaderLibrary/output/DepthConversion.glsl.js";import{positionOutsideClipSpace as
|
|
2
|
+
import{set as a}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as e}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{RejectBySlicePass as i}from"../core/shaderLibrary/Slice.glsl.js";import{DepthConversion as n}from"../core/shaderLibrary/output/DepthConversion.glsl.js";import{positionOutsideClipSpace as t}from"../core/shaderLibrary/shading/PositionOutsideClipSpace.js";import{GaussianSplatCovariance as r}from"../core/shaderLibrary/util/GaussianSplatCovariance.glsl.js";import{GaussianSplatEvaluation as o}from"../core/shaderLibrary/util/GaussianSplatEvaluation.glsl.js";import{GaussianSplatTextureFetch as s}from"../core/shaderLibrary/util/GaussianSplatTextureFetch.glsl.js";import{GaussianSplatUnpacking as c}from"../core/shaderLibrary/util/GaussianSplatUnpacking.glsl.js";import{QuaternionToRotationMatrix as l}from"../core/shaderLibrary/util/QuaternionToRotationMatrix.glsl.js";import{Float2BindUniform as u}from"../core/shaderModules/Float2BindUniform.js";import{Float2PassUniform as d}from"../core/shaderModules/Float2PassUniform.js";import{Float3PassUniform as p}from"../core/shaderModules/Float3PassUniform.js";import{FloatPassUniform as m}from"../core/shaderModules/FloatPassUniform.js";import{glsl as f,If as v}from"../core/shaderModules/glsl.js";import{Matrix4BindUniform as g}from"../core/shaderModules/Matrix4BindUniform.js";import{Texture2DUintPassUniform as x}from"../core/shaderModules/Texture2DUintPassUniform.js";function y(e,n){const{clippingEnabled:t,needsFragmentPosition:d}=n,{fragment:v,varyings:y,vertex:P}=e;y.add("gaussianCoordinates","vec2"),y.add("gaussianLogAlphaCutoff","float"),d&&y.add("fragmentPositionCameraRelative","vec3"),P.uniforms.add(new x("splatOrderTexture",a=>a.splatOrder),new x("splatAtlasTexture",a=>a.splatAtlas),new x("splatHeaderTexture",a=>a.splatHeader),new m("minSplatRadius",a=>a.minSplatRadius),new u("inverseScreenSize",({camera:e})=>a(L,1/e.fullWidth,1/e.fullHeight)),new g("proj",a=>a.camera.projectionMatrix),new g("view",a=>a.camera.viewMatrix),new u("nearFar",a=>a.camera.nearFar)),t&&(P.uniforms.add(new p("clipMin",a=>a.clipMinCameraRelative),new p("clipMax",a=>a.clipMaxCameraRelative)),d&&v.uniforms.add(new p("clipMin",a=>a.clipMinCameraRelative),new p("clipMax",a=>a.clipMaxCameraRelative))),P.include(c),P.include(s),P.include(l),P.include(r),P.include(o),P.include(i,n),v.include(o),d&&v.include(i,n),v.main.add(f`
|
|
3
3
|
${z(n)}
|
|
4
|
-
`)}function
|
|
5
|
-
float rayDepth = gaussianSplatRayDepth(
|
|
4
|
+
`)}function P(a,e){a.include(y,e),a.vertex.uniforms.add(new m("focalLength",a=>a.focalLength),new d("tanFov",a=>a.tanFov)),a.include(h),a.vertex.uniforms.add(new g("inverseProjectionMatrix",({camera:a})=>a.inverseProjectionMatrix)),a.fragment.include(n),a.fragment.code.add(f`float gaussianSplatDepth() {
|
|
5
|
+
float rayDepth = gaussianSplatRayDepth();
|
|
6
6
|
return delinearizeDepth(-rayDepth);
|
|
7
|
-
}`)}function
|
|
8
|
-
return
|
|
9
|
-
|
|
10
|
-
rayGaussianInverseCovarianceA.y * value.x + rayGaussianInverseCovarianceB.x * value.y + rayGaussianInverseCovarianceB.y * value.z,
|
|
11
|
-
rayGaussianInverseCovarianceA.z * value.x + rayGaussianInverseCovarianceB.y * value.y + rayGaussianInverseCovarianceB.z * value.z
|
|
12
|
-
);
|
|
13
|
-
}
|
|
14
|
-
float gaussianSplatRayDepth(vec3 rayWorld, vec3 gaussianCenter) {
|
|
15
|
-
vec3 inverseCovarianceRay = multiplyRayGaussianInverseCovariance(rayWorld);
|
|
16
|
-
return dot(gaussianCenter, inverseCovarianceRay) / dot(rayWorld, inverseCovarianceRay);
|
|
17
|
-
}`)}function h(a){a.uniforms.add(new g("splatFadingTexture",a=>a.splatFading)),a.code.add(p`float applyGaussianSplatFading(float opacity, uint gaussianIndex) {
|
|
7
|
+
}`)}function h(a){a.varyings.add("rayGaussianFactor","vec4"),a.fragment.code.add(f`float gaussianSplatRayDepth() {
|
|
8
|
+
return rayGaussianFactor.w / dot(rayGaussianFactor.xyz, rayGaussianFactor.xyz);
|
|
9
|
+
}`)}function R(a){a.uniforms.add(new x("splatFadingTexture",a=>a.splatFading)),a.code.add(f`float applyGaussianSplatFading(float opacity, uint gaussianIndex) {
|
|
18
10
|
uint pageIndex = fetchGaussianPageIndex(gaussianIndex);
|
|
19
11
|
uint fadingTextureWidth = uint(textureSize(splatFadingTexture, 0).x);
|
|
20
12
|
uint fadeX = pageIndex % fadingTextureWidth;
|
|
21
13
|
uint fadeY = pageIndex / fadingTextureWidth;
|
|
22
14
|
uint opacityModifier = texelFetch(splatFadingTexture, ivec2(fadeX, fadeY), 0).r;
|
|
23
15
|
return opacity * float(opacityModifier) / 255.0;
|
|
24
|
-
}`)}function
|
|
25
|
-
gl_Position = ${
|
|
16
|
+
}`)}function S(a,e){const{clippingEnabled:i,hasSlicePlane:n}=a;return f`
|
|
17
|
+
gl_Position = ${t};
|
|
26
18
|
|
|
27
19
|
if (opacity < ${e}) {
|
|
28
20
|
return;
|
|
@@ -30,14 +22,14 @@ return opacity * float(opacityModifier) / 255.0;
|
|
|
30
22
|
|
|
31
23
|
vec3 cameraRelativePosition = fetchGaussianCameraRelativePosition(gaussianIndex, packedGaussian);
|
|
32
24
|
|
|
33
|
-
${
|
|
25
|
+
${v(i,f`
|
|
34
26
|
if (cameraRelativePosition.x < clipMin.x || cameraRelativePosition.y < clipMin.y || cameraRelativePosition.z < clipMin.z ||
|
|
35
27
|
cameraRelativePosition.x > clipMax.x || cameraRelativePosition.y > clipMax.y || cameraRelativePosition.z > clipMax.z) {
|
|
36
28
|
return;
|
|
37
29
|
}
|
|
38
30
|
`)}
|
|
39
31
|
|
|
40
|
-
${
|
|
32
|
+
${v(n,f`
|
|
41
33
|
if (rejectBySlice(cameraRelativePosition)) {
|
|
42
34
|
return;
|
|
43
35
|
}
|
|
@@ -48,20 +40,15 @@ return opacity * float(opacityModifier) / 255.0;
|
|
|
48
40
|
if (viewPos.z > -nearFar.x || viewPos.z < -nearFar.y) {
|
|
49
41
|
return;
|
|
50
42
|
}
|
|
51
|
-
`}const
|
|
43
|
+
`}const C=f`vec3 covarianceA;
|
|
52
44
|
vec3 covarianceB;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
mat3 inverseCovariance = inverse(covarianceMatrix);
|
|
61
|
-
rayGaussianCenter = ${a};
|
|
62
|
-
rayGaussianInverseCovarianceA = vec3(inverseCovariance[0][0], inverseCovariance[0][1], inverseCovariance[0][2]);
|
|
63
|
-
rayGaussianInverseCovarianceB = vec3(inverseCovariance[1][1], inverseCovariance[1][2], inverseCovariance[2][2]);
|
|
64
|
-
`}function M(a,e){return p`
|
|
45
|
+
vec3 gaussianScale;
|
|
46
|
+
mat3 gaussianRotation;
|
|
47
|
+
computePackedGaussianCovariance3D(packedGaussian, covarianceA, covarianceB, gaussianScale, gaussianRotation);
|
|
48
|
+
float covariance3D[6] = float[6](covarianceA.x, covarianceA.y, covarianceA.z, covarianceB.x, covarianceB.y, covarianceB.z);`;function w(a){return f`
|
|
49
|
+
vec3 inverseGaussianScale = 1.0 / gaussianScale;
|
|
50
|
+
vec3 rayGaussianFactorCenter = (gaussianRotation * ${a}) * inverseGaussianScale;
|
|
51
|
+
`}function M(a,e){return f`
|
|
65
52
|
float determinant = computeGaussianCovarianceDeterminant(covariance2D);
|
|
66
53
|
if (determinant <= 0.0) {
|
|
67
54
|
return;
|
|
@@ -77,56 +64,57 @@ float covariance3D[6] = float[6](covarianceA.x, covarianceA.y, covarianceA.z, co
|
|
|
77
64
|
if (rejectGaussianByMinimumRadius(maxRadius, ${e}, minSplatRadius)) {
|
|
78
65
|
return;
|
|
79
66
|
}
|
|
80
|
-
`}const
|
|
67
|
+
`}const G=f`vec2 clipSpacePixelScale = 2.0 * inverseScreenSize;
|
|
81
68
|
if (rejectGaussianByScreenBounds(ndcPos.xy, screenRadii, clipSpacePixelScale)) {
|
|
82
69
|
return;
|
|
83
70
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
71
|
+
vec2 quadCorner = computeGaussianUnitQuadCorner(gl_VertexID);
|
|
72
|
+
vec2 offsetFromCenter = computeGaussianQuadOffset(covariance2D, eigenvalues, axisLengths, quadCorner);
|
|
73
|
+
gaussianCoordinates = computeGaussianCanonicalCoordinates(quadCorner, eigenvalues, axisLengths);`;function F(a,e){return f`
|
|
74
|
+
${S(a,f.float(e))}
|
|
87
75
|
|
|
88
|
-
${
|
|
89
|
-
${G("cameraRelativePosition")}
|
|
76
|
+
${C}
|
|
90
77
|
vec3 covariance2D = computeGaussianCovariance2D(viewPos.xyz, focalLength, tanFov, covariance3D, view);
|
|
91
78
|
float minimumRadiusOpacity = opacity;
|
|
92
79
|
float opacityScale = regularizeGaussianCovariance(covariance2D);
|
|
93
80
|
opacity *= opacityScale;
|
|
94
|
-
if (opacity < ${
|
|
81
|
+
if (opacity < ${f.float(e)}) {
|
|
95
82
|
return;
|
|
96
83
|
}
|
|
97
84
|
|
|
98
|
-
${M(`${
|
|
85
|
+
${M(`${f.float(Math.log(e))} - log(opacity)`,"minimumRadiusOpacity")}
|
|
99
86
|
|
|
100
87
|
${j(a)}
|
|
101
|
-
`}function j(a){return
|
|
88
|
+
`}function j(a){return f`
|
|
102
89
|
vec4 projPos = proj * viewPos;
|
|
103
90
|
float invW = 1.0 / (projPos.w + 1e-7);
|
|
104
91
|
vec3 ndcPos = projPos.xyz * invW;
|
|
105
|
-
${
|
|
92
|
+
${G}
|
|
93
|
+
${w("cameraRelativePosition")}
|
|
106
94
|
|
|
107
|
-
${
|
|
95
|
+
${v(a.needsFragmentPosition,f`
|
|
108
96
|
float viewSpacePixelScale = -viewPos.z / focalLength;
|
|
109
97
|
vec3 fragmentViewOffset = vec3(offsetFromCenter * viewSpacePixelScale, 0.0);
|
|
110
98
|
fragmentPositionCameraRelative = cameraRelativePosition + transpose(mat3(view)) * fragmentViewOffset;
|
|
111
99
|
`)}
|
|
112
100
|
|
|
113
101
|
vec2 quadClipPosition = ndcPos.xy + offsetFromCenter * clipSpacePixelScale - inverseScreenSize;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
102
|
+
vec3 rayViewPoint = (inverseProjectionMatrix * vec4(quadClipPosition, -1.0, 1.0)).xyz;
|
|
103
|
+
vec3 rayView = vec3(-rayViewPoint.xy / rayViewPoint.z, -1.0);
|
|
104
|
+
vec3 rayGaussianFactorRay = (gaussianRotation * (transpose(mat3(view)) * rayView)) * inverseGaussianScale;
|
|
105
|
+
rayGaussianFactor = vec4(rayGaussianFactorRay, dot(rayGaussianFactorCenter, rayGaussianFactorRay));
|
|
118
106
|
gl_Position = vec4(quadClipPosition, ndcPos.z, 1.0);
|
|
119
|
-
`}function z(a){const{clippingEnabled:e,needsFragmentPosition:i,hasSlicePlane:n}=a;return
|
|
120
|
-
${
|
|
107
|
+
`}function z(a){const{clippingEnabled:e,needsFragmentPosition:i,hasSlicePlane:n}=a;return f`
|
|
108
|
+
${v(i&&e,f`
|
|
121
109
|
if (fragmentPositionCameraRelative.x < clipMin.x || fragmentPositionCameraRelative.y < clipMin.y || fragmentPositionCameraRelative.z < clipMin.z ||
|
|
122
110
|
fragmentPositionCameraRelative.x > clipMax.x || fragmentPositionCameraRelative.y > clipMax.y || fragmentPositionCameraRelative.z > clipMax.z) {
|
|
123
111
|
discard;
|
|
124
112
|
}
|
|
125
113
|
`)}
|
|
126
|
-
${
|
|
114
|
+
${v(i&&n,f`if (rejectBySlice(fragmentPositionCameraRelative)) { discard; }`)}
|
|
127
115
|
|
|
128
|
-
float gaussianExponent = evaluateGaussianExponent(
|
|
116
|
+
float gaussianExponent = evaluateGaussianExponent(gaussianCoordinates);
|
|
129
117
|
if (gaussianExponent > 0.0 || gaussianExponent < gaussianLogAlphaCutoff) {
|
|
130
118
|
discard;
|
|
131
119
|
}
|
|
132
|
-
`}const
|
|
120
|
+
`}const L=e();export{R as GaussianSplatFading,y as GaussianSplatPass,P as GaussianSplatPerspectivePass,M as gaussianSplatComputeEllipse,G as gaussianSplatComputeQuad,S as gaussianSplatCullAndTransformVertex,F as gaussianSplatPerspectiveVertex,C as gaussianSplatUnpackCovariance3D};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import"../core/shaderLibrary/Slice.glsl.js";import"../core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js";import"../core/shaderLibrary/shading/LineStipple.glsl.js";import"../core/shaderLibrary/shading/MarkerSizing.glsl.js";import"../core/shaderLibrary/shading/PiUtils.glsl.js";import"../core/shaderLibrary/shading/PositionOutsideClipSpace.js";import"../core/shaderLibrary/util/ColorConversion.glsl.js";import"../core/shaderLibrary/util/NoPerspective.glsl.js";import"../core/shaderLibrary/util/View.glsl.js";import"../core/shaderModules/Float2BindUniform.js";import"../core/shaderModules/Float4BindUniform.js";import"../core/shaderModules/Float4PassUniform.js";import"../core/shaderModules/FloatBindUniform.js";import"../core/shaderModules/FloatPassUniform.js";import"../core/shaderModules/glsl.js";import"../core/shaderModules/Matrix4BindUniform.js";import"./alphaCutoff.glsl.js";import"./AnimatedLine.glsl.js";import"./OutputColorHighlightOLID.glsl.js";import"./RibbonLineTextureBuffer.glsl.js";import"../../../webgl/ShaderBuilder.js";export{b as build,
|
|
2
|
+
import"../core/shaderLibrary/Slice.glsl.js";import"../core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js";import"../core/shaderLibrary/shading/LineStipple.glsl.js";import"../core/shaderLibrary/shading/MarkerSizing.glsl.js";import"../core/shaderLibrary/shading/PiUtils.glsl.js";import"../core/shaderLibrary/shading/PositionOutsideClipSpace.js";import"../core/shaderLibrary/util/ColorConversion.glsl.js";import"../core/shaderLibrary/util/NoPerspective.glsl.js";import"../core/shaderLibrary/util/View.glsl.js";import"../core/shaderModules/Float2BindUniform.js";import"../core/shaderModules/Float4BindUniform.js";import"../core/shaderModules/Float4PassUniform.js";import"../core/shaderModules/FloatBindUniform.js";import"../core/shaderModules/FloatPassUniform.js";import"../core/shaderModules/glsl.js";import"../core/shaderModules/Matrix4BindUniform.js";import"./alphaCutoff.glsl.js";import"./AnimatedLine.glsl.js";import"./OutputColorHighlightOLID.glsl.js";import"./RibbonLineTextureBuffer.glsl.js";import"../../../webgl/ShaderBuilder.js";export{b as build,n as numRoundJoinSubdivisions}from"../../../../chunks/RibbonLine.glsl.js";
|
package/views/popupAdapter.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
const e="popup",n="manual";function
|
|
2
|
+
const e="popup",n="manual";function o(e){const{popupElement:n,popup:o}=e||{};return n??o??null}function t(e){return null!=e&&"open"in e&&"declaredClass"in e}function p(e){return!!e&&"arcgis-popup"===e.tagName.toLowerCase()&&"open"in e}function i(o,i,u){const[a,l,c]=i;if(u){const[n,o,i]=u;n&&t(o)&&(o.view=null,n.remove(o,e),o!==l&&l&&o.destroy()),n&&i&&p(i)&&(i.view=null,n.remove(i,e),i!==c&&c&&i.remove())}a&&t(l)&&(l.view=o,a.add(l,{key:e,position:n,internal:!0})),a&&c&&p(c)&&(c.view=o,a.add(c,{key:e,position:n,internal:!0}))}async function u(e,n){const{popup:o,popupElement:i}=e;t(o)?await c(e,o,null,n):i&&p(i)?await c(e,null,i,n):n?.defer(async()=>{await e.setupPopup();const{popup:o,popupElement:i}=e;t(o)&&!e.destroyed&&e.ready&&e.popupEnabled?await c(e,o,null,n):i&&p(i)&&await c(e,null,i,n)}).catch(()=>{})}function a(e,n){const{popup:o,popupElement:i}=e;if(t(o))return o.open(n);if(i&&p(i)){if(n){const{fetchFeatures:e,title:o,...t}=n;delete n.fetchFeatures,Object.assign(i,t),void 0!==o&&(i.heading=o)}i.open=!0}}function l(e,n){t(e)&&e.close(),n&&p(n)&&(n.visible=!1)}async function c(e,n,o,i){if(t(n)){const e=await n.viewModel.handleViewClick(i);return void(e?.promises?.length?n.open(e):n.visible&&n.close())}if(o&&p(o)){const n=e.fetchPopupFeatures(i.screenPoint,{pointerType:i.pointerType});n?(o.location=i.mapPoint??null,o.featureStream=n,o.open=!0):o.open&&(o.open=!1)}}export{i as addPopup,l as closePopup,t as isPopup,p as isPopupElement,a as openPopupWithOptions,u as openPopupWithViewClick,o as popupFromView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,4538],{73354(t,e,n){n.d(e,{a:()=>l,b:()=>a,c:()=>i,d:()=>o,e:()=>f,f:()=>c,l:()=>u,n:()=>m,t:()=>s}),n(44208);var r=n(72727);function i(t,e,n){s(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,n,i=3,s=i){const o=(0,r.k)(t.length,i,3),a=(0,r.k)(e.length,s,3),h=Math.min(o,a),u=n[0],c=n[1],l=n[2],f=n[4],m=n[5],d=n[6],p=n[8],y=n[9],g=n[10],M=n[12],_=n[13],x=n[14];let b=0,v=0;for(let n=0;n<h;n++){const n=e[b],r=e[b+1],o=e[b+2];t[v]=u*n+f*r+p*o+M,t[v+1]=c*n+m*r+y*o+_,t[v+2]=l*n+d*r+g*o+x,b+=s,v+=i}return t}function o(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,i=3,s=i){const o=(0,r.k)(t.length,i,3),a=(0,r.k)(e.length,s,3),h=Math.min(o,a),u=n[0],c=n[1],l=n[2],f=n[3],m=n[4],d=n[5],p=n[6],y=n[7],g=n[8];let M=0,_=0;for(let n=0;n<h;n++){const n=e[M],r=e[M+1],o=e[M+2];t[_]=u*n+f*r+p*o,t[_+1]=c*n+m*r+y*o,t[_+2]=l*n+d*r+g*o,M+=s,_+=i}}function h(t,e,n,r=3,i=r){const s=Math.min(t.length/r,e.length/i);let o=0,a=0;for(let h=0;h<s;h++)t[a]=n*e[o],t[a+1]=n*e[o+1],t[a+2]=n*e[o+2],o+=i,a+=r;return t}function u(t,e,n,r){c(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function c(t,e,n,r,i=3,s=i){const o=Math.min(t.length/i,e.length/s);let a=0,h=0;const u=1/2.2;for(let c=0;c<o;c++)t[h]=r*(n*e[a])**u,t[h+1]=r*(n*e[a+1])**u,t[h+2]=r*(n*e[a+2])**u,a+=s,h+=i}function l(t,e,n,i=3,s=i){const o=(0,r.k)(t.length,i,3),a=(0,r.k)(e.length,s,3),h=Math.min(o,a);let u=0,c=0;for(let r=0;r<h;r++)t[c]=e[u]+n[0],t[c+1]=e[u+1]+n[1],t[c+2]=e[u+2]+n[2],u+=s,c+=i;return t}function f(t,e){m(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function m(t,e,n=3,r=n){const i=Math.min(t.length/n,e.length/r);let s=0,o=0;for(let a=0;a<i;a++){const i=e[s],a=e[s+1],h=e[s+2],u=i*i+a*a+h*h;if(u>0){const e=1/Math.sqrt(u);t[o]=e*i,t[o+1]=e*a,t[o+2]=e*h}s+=r,o+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:m,normalizeView:f,scale:h,scaleView:function(t,e,n){h(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){const r=Math.min(t.count,e.count),i=t.typedBuffer,s=t.typedBufferStride,o=e.typedBuffer,a=e.typedBufferStride;let h=0,u=0;for(let t=0;t<r;t++)i[u]=o[h]>>n,i[u+1]=o[h+1]>>n,i[u+2]=o[h+2]>>n,h+=a,u+=s},transformMat3:a,transformMat3View:o,transformMat4:s,transformMat4View:i,translate:l},Symbol.toStringTag,{value:"Module"}))},69540(t,e,n){var r=n(32198),i=n(69622),s=(n(44208),n(4718)),o=(n(53966),n(97768)),a=n(88620),h=n(64108);const u=Symbol("ClonableMixin"),c=t=>{var e;const n=t;let i=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=u}clone(t){const e=(0,a.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const n=e.metadata,r=e.store,i={},h=new Map;for(const e in n){const o=n[e],a=r?.originOf(e),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const c=this[e];let l=null;if("function"==typeof u)l=u(c,t);else if("reference"===u)l=c;else if(l=(0,s.TU)(c,t),null!=c&&null==l)continue;0===a?h.set(e,l):i[e]=l}const u=new(0,Object.getPrototypeOf(this).constructor)(i);if(h.size){const t=(0,a.oY)(u)?.store;if(t)for(const[e,n]of h)t.set(e,n,0)}return u}};return i=(0,r.Cg)([(0,h.$)("esri.core.Clonable")],i),i},l=c(i.A);n.d(e,["OU",0,c,"Pw",0,l])},95488(t,e,n){n.d(e,{I:()=>i});var r=n(11406);class i extends r.T{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>i,vt:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,e,n,r,i,s,o,a,h,u,c,l,f,m,d,p){return[t,e,n,r,i,s,o,a,h,u,c,l,f,m,d,p]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,s])},51850(t,e,n){function r(){return[0,0,0]}function i(t){return[t[0],t[1],t[2]]}function s(t,e,n){return[t,e,n]}function o(t,e,n){return[t,e,n]}function a(t,e=[0,0,0]){const n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function h(){return s(1,1,1)}function u(){return s(1,0,0)}function c(){return s(0,1,0)}function l(){return s(0,0,1)}n.d(e,{CN:()=>o,ci:()=>a,fA:()=>s,o8:()=>i,vt:()=>r});const f=[0,0,0],m=h(),d=u(),p=c(),y=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:d,UNIT_Y:p,UNIT_Z:y,ZEROS:f,clone:i,create:r,freeze:o,fromArray:a,fromValues:s,ones:h,unitX:u,unitY:c,unitZ:l,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Cb",0,y,"Cw",0,d,"JP",0,p,"Un",0,m,"uY",0,f])},58083(t,e,n){n.d(e,{$0:()=>g,$h:()=>T,B8:()=>c,C:()=>s,D_:()=>a,N9:()=>_,O7:()=>w,Qw:()=>u,Tl:()=>f,X_:()=>R,e$:()=>d,eL:()=>p,hM:()=>M,hZ:()=>o,hs:()=>m,kN:()=>y,l:()=>A,lw:()=>l,mg:()=>h,o1:()=>S,sC:()=>v,t2:()=>O,t5:()=>C,tZ:()=>P,ut:()=>E});var r=n(51850),i=n(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function o(t,e,n,r,i,s,o,a,h,u,c,l,f,m,d,p,y){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=o,t[6]=a,t[7]=h,t[8]=u,t[9]=c,t[10]=l,t[11]=f,t[12]=m,t[13]=d,t[14]=p,t[15]=y,t}function a(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function h(t,e){if(t===e){const n=e[1],r=e[2],i=e[3],s=e[6],o=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=s,t[11]=e[14],t[12]=i,t[13]=o,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function u(t,e){return c(t,e)||a(t),t}function c(t,e){const n=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],h=e[6],u=e[7],c=e[8],l=e[9],f=e[10],m=e[11],d=e[12],p=e[13],y=e[14],g=e[15],M=n*a-r*o,_=n*h-i*o,x=n*u-s*o,b=r*h-i*a,v=r*u-s*a,R=i*u-s*h,A=c*p-l*d,S=c*y-f*d,w=c*g-m*d,T=l*y-f*p,C=l*g-m*p,I=f*g-m*y;let O=M*I-_*C+x*T+b*w-v*S+R*A;return O?(O=1/O,t[0]=(a*I-h*C+u*T)*O,t[1]=(i*C-r*I-s*T)*O,t[2]=(p*R-y*v+g*b)*O,t[3]=(f*v-l*R-m*b)*O,t[4]=(h*w-o*I-u*S)*O,t[5]=(n*I-i*w+s*S)*O,t[6]=(y*x-d*R-g*_)*O,t[7]=(c*R-f*x+m*_)*O,t[8]=(o*C-a*w+u*A)*O,t[9]=(r*w-n*C-s*A)*O,t[10]=(d*v-p*x+g*M)*O,t[11]=(l*x-c*v-m*M)*O,t[12]=(a*S-o*T-h*A)*O,t[13]=(n*T-r*S+i*A)*O,t[14]=(p*_-d*b-y*M)*O,t[15]=(c*b-l*_+f*M)*O,t):null}function l(t,e,n){const r=e[0],i=e[1],s=e[2],o=e[3],a=e[4],h=e[5],u=e[6],c=e[7],l=e[8],f=e[9],m=e[10],d=e[11],p=e[12],y=e[13],g=e[14],M=e[15];let _=n[0],x=n[1],b=n[2],v=n[3];return t[0]=_*r+x*a+b*l+v*p,t[1]=_*i+x*h+b*f+v*y,t[2]=_*s+x*u+b*m+v*g,t[3]=_*o+x*c+b*d+v*M,_=n[4],x=n[5],b=n[6],v=n[7],t[4]=_*r+x*a+b*l+v*p,t[5]=_*i+x*h+b*f+v*y,t[6]=_*s+x*u+b*m+v*g,t[7]=_*o+x*c+b*d+v*M,_=n[8],x=n[9],b=n[10],v=n[11],t[8]=_*r+x*a+b*l+v*p,t[9]=_*i+x*h+b*f+v*y,t[10]=_*s+x*u+b*m+v*g,t[11]=_*o+x*c+b*d+v*M,_=n[12],x=n[13],b=n[14],v=n[15],t[12]=_*r+x*a+b*l+v*p,t[13]=_*i+x*h+b*f+v*y,t[14]=_*s+x*u+b*m+v*g,t[15]=_*o+x*c+b*d+v*M,t}function f(t,e,n){const r=n[0],i=n[1],s=n[2];if(e===t)t[12]=e[0]*r+e[4]*i+e[8]*s+e[12],t[13]=e[1]*r+e[5]*i+e[9]*s+e[13],t[14]=e[2]*r+e[6]*i+e[10]*s+e[14],t[15]=e[3]*r+e[7]*i+e[11]*s+e[15];else{const n=e[0],o=e[1],a=e[2],h=e[3],u=e[4],c=e[5],l=e[6],f=e[7],m=e[8],d=e[9],p=e[10],y=e[11];t[0]=n,t[1]=o,t[2]=a,t[3]=h,t[4]=u,t[5]=c,t[6]=l,t[7]=f,t[8]=m,t[9]=d,t[10]=p,t[11]=y,t[12]=n*r+u*i+m*s+e[12],t[13]=o*r+c*i+d*s+e[13],t[14]=a*r+l*i+p*s+e[14],t[15]=h*r+f*i+y*s+e[15]}return t}function m(t,e,n){const r=n[0],i=n[1],s=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r){let o=r[0],a=r[1],h=r[2],u=Math.sqrt(o*o+a*a+h*h);if(u<=(0,i.FD)())return void s(t,e);u=1/u,o*=u,a*=u,h*=u;const c=Math.sin(n),l=Math.cos(n),f=1-l,m=e[0],d=e[1],p=e[2],y=e[3],g=e[4],M=e[5],_=e[6],x=e[7],b=e[8],v=e[9],R=e[10],A=e[11],S=o*o*f+l,w=a*o*f+h*c,T=h*o*f-a*c,C=o*a*f-h*c,I=a*a*f+l,O=h*a*f+o*c,E=o*h*f+a*c,P=a*h*f-o*c,N=h*h*f+l;t[0]=m*S+g*w+b*T,t[1]=d*S+M*w+v*T,t[2]=p*S+_*w+R*T,t[3]=y*S+x*w+A*T,t[4]=m*C+g*I+b*O,t[5]=d*C+M*I+v*O,t[6]=p*C+_*I+R*O,t[7]=y*C+x*I+A*O,t[8]=m*E+g*P+b*N,t[9]=d*E+M*P+v*N,t[10]=p*E+_*P+R*N,t[11]=y*E+x*P+A*N,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function p(t,e,n){const r=Math.sin(n),i=Math.cos(n),s=e[4],o=e[5],a=e[6],h=e[7],u=e[8],c=e[9],l=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=s*i+u*r,t[5]=o*i+c*r,t[6]=a*i+l*r,t[7]=h*i+f*r,t[8]=u*i-s*r,t[9]=c*i-o*r,t[10]=l*i-a*r,t[11]=f*i-h*r,t}function y(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function g(t,e,n){if(0===e)return a(t);let r=n[0],s=n[1],o=n[2],h=Math.sqrt(r*r+s*s+o*o);if(h<=(0,i.FD)())return null;h=1/h,r*=h,s*=h,o*=h;const u=Math.sin(e),c=Math.cos(e),l=1-c;return t[0]=r*r*l+c,t[1]=s*r*l+o*u,t[2]=o*r*l-s*u,t[3]=0,t[4]=r*s*l-o*u,t[5]=s*s*l+c,t[6]=o*s*l+r*u,t[7]=0,t[8]=r*o*l+s*u,t[9]=s*o*l-r*u,t[10]=o*o*l+c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function M(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function x(t,e,n){const r=e[0],i=e[1],s=e[2],o=e[3],a=r+r,h=i+i,u=s+s,c=r*a,l=r*h,f=r*u,m=i*h,d=i*u,p=s*u,y=o*a,g=o*h,M=o*u;return t[0]=1-(m+p),t[1]=l+M,t[2]=f-g,t[3]=0,t[4]=l-M,t[5]=1-(c+p),t[6]=d+y,t[7]=0,t[8]=f+g,t[9]=d-y,t[10]=1-(c+m),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const b=(0,r.vt)();function v(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function R(t,e){const n=e[0],r=e[1],i=e[2],s=e[4],o=e[5],a=e[6],h=e[8],u=e[9],c=e[10];return t[0]=Math.sqrt(n*n+r*r+i*i),t[1]=Math.sqrt(s*s+o*o+a*a),t[2]=Math.sqrt(h*h+u*u+c*c),t}function A(t,e){const n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function S(t,e,n,r){const i=e[0],s=e[1],o=e[2],a=e[3],h=i+i,u=s+s,c=o+o,l=i*h,f=i*u,m=i*c,d=s*u,p=s*c,y=o*c,g=a*h,M=a*u,_=a*c,x=r[0],b=r[1],v=r[2];return t[0]=(1-(d+y))*x,t[1]=(f+_)*x,t[2]=(m-M)*x,t[3]=0,t[4]=(f-_)*b,t[5]=(1-(l+y))*b,t[6]=(p+g)*b,t[7]=0,t[8]=(m+M)*v,t[9]=(p-g)*v,t[10]=(1-(l+d))*v,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function w(t,e,n,r,i){const s=e[0],o=e[1],a=e[2],h=e[3],u=s+s,c=o+o,l=a+a,f=s*u,m=s*c,d=s*l,p=o*c,y=o*l,g=a*l,M=h*u,_=h*c,x=h*l,b=r[0],v=r[1],R=r[2],A=i[0],S=i[1],w=i[2],T=(1-(p+g))*b,C=(m+x)*b,I=(d-_)*b,O=(m-x)*v,E=(1-(f+g))*v,P=(y+M)*v,N=(d+_)*R,L=(y-M)*R,D=(1-(f+p))*R;return t[0]=T,t[1]=C,t[2]=I,t[3]=0,t[4]=O,t[5]=E,t[6]=P,t[7]=0,t[8]=N,t[9]=L,t[10]=D,t[11]=0,t[12]=n[0]+A-(T*A+O*S+N*w),t[13]=n[1]+S-(C*A+E*S+L*w),t[14]=n[2]+w-(I*A+P*S+D*w),t[15]=1,t}function T(t,e,n,r,i,s,o){const a=1/(n-e),h=1/(i-r),u=1/(s-o);return t[0]=2*s*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*h,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(i+r)*h,t[10]=(o+s)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*s*2*u,t[15]=0,t}function C(t,e,n,r){const s=e[0],o=e[1],h=e[2];let u=s-n[0],c=o-n[1],l=h-n[2];const f=(0,i.FD)();if(Math.abs(u)<f&&Math.abs(c)<f&&Math.abs(l)<f)return void a(t);let m=1/Math.sqrt(u*u+c*c+l*l);u*=m,c*=m,l*=m;const d=r[0],p=r[1],y=r[2];let g=p*l-y*c,M=y*u-d*l,_=d*c-p*u;m=Math.sqrt(g*g+M*M+_*_),m?(m=1/m,g*=m,M*=m,_*=m):(g=0,M=0,_=0);let x=c*_-l*M,b=l*g-u*_,v=u*M-c*g;m=Math.sqrt(x*x+b*b+v*v),m?(m=1/m,x*=m,b*=m,v*=m):(x=0,b=0,v=0),t[0]=g,t[1]=x,t[2]=u,t[3]=0,t[4]=M,t[5]=b,t[6]=c,t[7]=0,t[8]=_,t[9]=v,t[10]=l,t[11]=0,t[12]=-(g*s+M*o+_*h),t[13]=-(x*s+b*o+v*h),t[14]=-(u*s+c*o+l*h),t[15]=1}function I(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function O(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function E(t){const e=(0,i.FD)(),n=t[0],r=t[1],s=t[2],o=t[4],a=t[5],h=t[6],u=t[8],c=t[9],l=t[10];return Math.abs(1-(n*n+o*o+u*u))<=e&&Math.abs(1-(r*r+a*a+c*c))<=e&&Math.abs(1-(s*s+h*h+l*l))<=e}function P(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const N=l,L=I;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){const n=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],h=e[6],u=e[7],c=e[8],l=e[9],f=e[10],m=e[11],d=e[12],p=e[13],y=e[14],g=e[15];return t[0]=a*(f*g-m*y)-l*(h*g-u*y)+p*(h*m-u*f),t[1]=-(r*(f*g-m*y)-l*(i*g-s*y)+p*(i*m-s*f)),t[2]=r*(h*g-u*y)-a*(i*g-s*y)+p*(i*u-s*h),t[3]=-(r*(h*m-u*f)-a*(i*m-s*f)+l*(i*u-s*h)),t[4]=-(o*(f*g-m*y)-c*(h*g-u*y)+d*(h*m-u*f)),t[5]=n*(f*g-m*y)-c*(i*g-s*y)+d*(i*m-s*f),t[6]=-(n*(h*g-u*y)-o*(i*g-s*y)+d*(i*u-s*h)),t[7]=n*(h*m-u*f)-o*(i*m-s*f)+c*(i*u-s*h),t[8]=o*(l*g-m*p)-c*(a*g-u*p)+d*(a*m-u*l),t[9]=-(n*(l*g-m*p)-c*(r*g-s*p)+d*(r*m-s*l)),t[10]=n*(a*g-u*p)-o*(r*g-s*p)+d*(r*u-s*a),t[11]=-(n*(a*m-u*l)-o*(r*m-s*l)+c*(r*u-s*a)),t[12]=-(o*(l*y-f*p)-c*(a*y-h*p)+d*(a*f-h*l)),t[13]=n*(l*y-f*p)-c*(r*y-i*p)+d*(r*f-i*l),t[14]=-(n*(a*y-h*p)-o*(r*y-i*p)+d*(r*h-i*a)),t[15]=n*(a*f-h*l)-o*(r*f-i*l)+c*(r*h-i*a),t},copy:s,determinant:function(t){const e=t[0],n=t[1],r=t[2],i=t[3],s=t[4],o=t[5],a=t[6],h=t[7],u=t[8],c=t[9],l=t[10],f=t[11],m=t[12],d=t[13],p=t[14],y=t[15];return(e*o-n*s)*(l*y-f*p)-(e*a-r*s)*(c*y-f*d)+(e*h-i*s)*(c*p-l*d)+(n*a-r*o)*(u*y-f*m)-(n*h-i*o)*(u*p-l*m)+(r*h-i*a)*(u*d-c*m)},equals:function(t,e){if(t===e)return!0;const n=t[0],r=t[1],s=t[2],o=t[3],a=t[4],h=t[5],u=t[6],c=t[7],l=t[8],f=t[9],m=t[10],d=t[11],p=t[12],y=t[13],g=t[14],M=t[15],_=e[0],x=e[1],b=e[2],v=e[3],R=e[4],A=e[5],S=e[6],w=e[7],T=e[8],C=e[9],I=e[10],O=e[11],E=e[12],P=e[13],N=e[14],L=e[15],D=(0,i.FD)();return Math.abs(n-_)<=D*Math.max(1,Math.abs(n),Math.abs(_))&&Math.abs(r-x)<=D*Math.max(1,Math.abs(r),Math.abs(x))&&Math.abs(s-b)<=D*Math.max(1,Math.abs(s),Math.abs(b))&&Math.abs(o-v)<=D*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(a-R)<=D*Math.max(1,Math.abs(a),Math.abs(R))&&Math.abs(h-A)<=D*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(u-S)<=D*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(c-w)<=D*Math.max(1,Math.abs(c),Math.abs(w))&&Math.abs(l-T)<=D*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(f-C)<=D*Math.max(1,Math.abs(f),Math.abs(C))&&Math.abs(m-I)<=D*Math.max(1,Math.abs(m),Math.abs(I))&&Math.abs(d-O)<=D*Math.max(1,Math.abs(d),Math.abs(O))&&Math.abs(p-E)<=D*Math.max(1,Math.abs(p),Math.abs(E))&&Math.abs(y-P)<=D*Math.max(1,Math.abs(y),Math.abs(P))&&Math.abs(g-N)<=D*Math.max(1,Math.abs(g),Math.abs(N))&&Math.abs(M-L)<=D*Math.max(1,Math.abs(M),Math.abs(L))},exactEquals:O,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const n=e[0],r=e[1],i=e[2],s=e[3],o=n+n,a=r+r,h=i+i,u=n*o,c=r*o,l=r*a,f=i*o,m=i*a,d=i*h,p=s*o,y=s*a,g=s*h;return t[0]=1-l-d,t[1]=c+g,t[2]=f-y,t[3]=0,t[4]=c-g,t[5]=1-u-d,t[6]=m+p,t[7]=0,t[8]=f+y,t[9]=m-p,t[10]=1-u-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=b,r=-e[0],i=-e[1],s=-e[2],o=e[3],a=e[4],h=e[5],u=e[6],c=e[7],l=r*r+i*i+s*s+o*o;return l>0?(n[0]=2*(a*o+c*r+h*s-u*i)/l,n[1]=2*(h*o+c*i+u*r-a*s)/l,n[2]=2*(u*o+c*s+a*i-h*r)/l):(n[0]=2*(a*o+c*r+h*s-u*i),n[1]=2*(h*o+c*i+u*r-a*s),n[2]=2*(u*o+c*s+a*i-h*r)),x(t,e,n),t},fromRotation:g,fromRotationTranslation:x,fromRotationTranslationScale:S,fromRotationTranslationScaleOrigin:w,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:y,fromXRotation:M,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:_,frustum:T,getRotation:A,getScale:R,getTranslation:v,hasIdentityRotation:P,identity:a,invert:c,invertOrIdentity:u,isOrthoNormal:E,lookAt:C,mul:N,multiply:l,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,i,s,o){const a=1/(e-n),h=1/(r-i),u=1/(s-o);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*h,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*a,t[13]=(i+r)*h,t[14]=(o+s)*u,t[15]=1,t},perspective:function(t,e,n,r,i){const s=1/Math.tan(e/2);let o;return t[0]=s/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const i=Math.tan(e.upDegrees*Math.PI/180),s=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),a=Math.tan(e.rightDegrees*Math.PI/180),h=2/(o+a),u=2/(i+s);return t[0]=h,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(o-a)*h*.5,t[9]=(i-s)*u*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:d,rotateX:p,rotateY:function(t,e,n){const r=Math.sin(n),i=Math.cos(n),s=e[0],o=e[1],a=e[2],h=e[3],u=e[8],c=e[9],l=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*i-u*r,t[1]=o*i-c*r,t[2]=a*i-l*r,t[3]=h*i-f*r,t[8]=s*r+u*i,t[9]=o*r+c*i,t[10]=a*r+l*i,t[11]=h*r+f*i,t},rotateZ:function(t,e,n){const r=Math.sin(n),i=Math.cos(n),s=e[0],o=e[1],a=e[2],h=e[3],u=e[4],c=e[5],l=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*i+u*r,t[1]=o*i+c*r,t[2]=a*i+l*r,t[3]=h*i+f*r,t[4]=u*i-s*r,t[5]=c*i-o*r,t[6]=l*i-a*r,t[7]=f*i-h*r,t},scale:m,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:L,subtract:I,targetTo:function(t,e,n,r){const i=e[0],s=e[1],o=e[2],a=r[0],h=r[1],u=r[2];let c=i-n[0],l=s-n[1],f=o-n[2],m=c*c+l*l+f*f;m>0&&(m=1/Math.sqrt(m),c*=m,l*=m,f*=m);let d=h*f-u*l,p=u*c-a*f,y=a*l-h*c;return m=d*d+p*p+y*y,m>0&&(m=1/Math.sqrt(m),d*=m,p*=m,y*=m),t[0]=d,t[1]=p,t[2]=y,t[3]=0,t[4]=l*y-f*p,t[5]=f*d-c*y,t[6]=c*p-l*d,t[7]=0,t[8]=c,t[9]=l,t[10]=f,t[11]=0,t[12]=i,t[13]=s,t[14]=o,t[15]=1,t},translate:f,transpose:h},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>S,Bw:()=>s,C:()=>o,Cc:()=>w,DI:()=>v,Io:()=>M,Ln:()=>g,Om:()=>A,Qr:()=>l,Re:()=>u,S8:()=>R,T9:()=>p,WQ:()=>h,Z0:()=>T,_S:()=>m,aI:()=>L,ei:()=>C,fw:()=>O,gL:()=>I,hG:()=>_,hZ:()=>a,hs:()=>y,jk:()=>d,lw:()=>c,m3:()=>x,oW:()=>D,t2:()=>N,tn:()=>f,ze:()=>b});var r=n(51850),i=n(34304);function s(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function h(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function p(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function _(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function x(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function b(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function v(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function R(t,e){const n=e[0],r=e[1],i=e[2];let s=n*n+r*r+i*i;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function S(t,e,n){const r=e[0],i=e[1],s=e[2],o=n[0],a=n[1],h=n[2];return t[0]=i*h-s*a,t[1]=s*o-r*h,t[2]=r*a-i*o,t}function w(t,e,n,r){const i=e[0],s=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=s+r*(n[1]-s),t[2]=o+r*(n[2]-o),t}function T(t,e,n){const r=e[0],i=e[1],s=e[2];return t[0]=n[0]*r+n[4]*i+n[8]*s+n[12],t[1]=n[1]*r+n[5]*i+n[9]*s+n[13],t[2]=n[2]*r+n[6]*i+n[10]*s+n[14],t}function C(t,e,n){const r=e[0],i=e[1],s=e[2];return t[0]=r*n[0]+i*n[3]+s*n[6],t[1]=r*n[1]+i*n[4]+s*n[7],t[2]=r*n[2]+i*n[5]+s*n[8],t}function I(t,e,n){return O(t,e,n[0],n[1],n[2],n[3])}function O(t,e,n,r,i,s){const o=e[0],a=e[1],h=e[2],u=r*h-i*a,c=i*o-n*h,l=n*a-r*o,f=r*l-i*c,m=i*u-n*l,d=n*c-r*u,p=2*s;return t[0]=o+u*p+2*f,t[1]=a+c*p+2*m,t[2]=h+l*p+2*d,t}const E=(0,r.vt)(),P=(0,r.vt)();function N(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function L(t,e){if(t===e)return!0;const n=t[0],r=t[1],s=t[2],o=e[0],a=e[1],h=e[2],u=(0,i.FD)();return Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(s-h)<=u*Math.max(1,Math.abs(s),Math.abs(h))}function D(t,e,n){const r=n[0]-e[0],i=n[1]-e[1],s=n[2]-e[2];let o=r*r+i*i+s*s;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=i*o,t[2]=s*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const G=u,B=c,U=l,F=M,Z=_,j=s,k=x;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:h,angle:function(t,e){R(E,t),R(P,e);const n=A(E,P);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,i,s){const o=1-s,a=o*o,h=s*s,u=a*o,c=3*s*a,l=3*h*o,f=h*s;return t[0]=e[0]*u+n[0]*c+r[0]*l+i[0]*f,t[1]=e[1]*u+n[1]*c+r[1]*l+i[1]*f,t[2]=e[2]*u+n[2]*c+r[2]*l+i[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:o,cross:S,crossAndNormalize:function(t,e,n){const r=e[0],i=e[1],s=e[2],o=n[0],a=n[1],h=n[2],u=i*h-s*a,c=s*o-r*h,l=r*a-i*o,f=Math.sqrt(u*u+c*c+l*l);return t[0]=u/f,t[1]=c/f,t[2]=l/f,t},direction:D,dist:F,distance:M,div:U,divide:l,dot:A,equals:L,exactEquals:N,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,i,s){const o=s*s,a=o*(2*s-3)+1,h=o*(s-2)+s,u=o*(s-1),c=o*(3-2*s);return t[0]=e[0]*a+n[0]*h+r[0]*u+i[0]*c,t[1]=e[1]*a+n[1]*h+r[1]*u+i[1]*c,t[2]=e[2]*a+n[2]*h+r[2]*u+i[2]*c,t},inverse:v,len:j,length:s,lerp:w,max:p,min:d,mul:B,multiply:c,negate:b,normalize:R,random:function(t,e=1){const n=i.Ov,r=2*n()*Math.PI,s=2*n()-1,o=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=s*e,t},rotateX:function(t,e,n,r){const i=[],s=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],s[0]=i[0],s[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),s[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},rotateY:function(t,e,n,r){const i=[],s=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],s[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),s[1]=i[1],s[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},rotateZ:function(t,e,n,r){const i=[],s=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],s[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),s[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),s[2]=i[2],t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:y,scaleAndAdd:g,set:a,sign:m,sqrDist:Z,sqrLen:k,squaredDistance:_,squaredLength:x,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:G,subtract:u,transformMat3:C,transformMat4:T,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:I,transformQuatValues:O},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,j,"jb",0,G,"lo",0,Z,"uE",0,k,"xg",0,F])},83027(t,e,n){const r=n(29953).ho;n.d(e,["h",0,r])},35982(t,e,n){n.d(e,{B:()=>c});var r=n(4576),i=n(71511),s=n(36563),o=n(53966),a=n(97768),h=n(17676),u=n(83027);class c{constructor(t,e,n,r,i={}){this._mainMethod=e,this._transferLists=n,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,u.h)(t,{...i,schedule:r}).then(t=>{null!=this._thread||this._destroyed?t.close():(this._thread=t,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(t=>{i.hasInitialize&&t.invoke("initialize",{}).catch(()=>{});for(const e of this._listeners)this._connectListenerToClient(e,t);this._onClientConnected(t)}))}),this._promise.catch(e=>o.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${t} worker: ${e}`))}on(t,e){const n=new l(t,e);return this._listeners.push(n),this._connectListener(n),(0,s.hA)(()=>{(0,r.TF)(this._listeners,n),n.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,a.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const t of this._listeners)t.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(t,e,n){return this.invokeMethod(this._mainMethod,t,e,n)}invokeMethod(t,e,n,r){if(this._thread){const i=this._transferLists[t],s=i?i(e):[];return this._thread.invoke(t,e,{transferList:s,signal:n,jobPriority:r})}return this._promise?this._promise.then(()=>((0,h.Te)(n),this.invokeMethod(t,e,n))):Promise.reject((0,h.NK)())}broadcast(t,e){return this._thread?Promise.all(this._thread.broadcast(e,t)).then(f):this._promise?this._promise.then(()=>this.broadcast(t,e)):Promise.reject((0,h.NK)())}get promise(){return this._promise}_onClientConnected(t){}_connectListener(t){this._thread&&t.add(this._thread.on(t.eventName,t.callback))}_connectListenerToClient(t,e){t.add(e.on(t.eventName,t.callback))}}class l{constructor(t,e){this.eventName=t,this.callback=e,this._handles=new i.A}add(t){this._handles.add(t)}destroy(){this._handles.destroy()}}function f(){}},48526(t,e,n){n.d(e,{A:()=>y});var r,i=n(32198),s=n(4576),o=n(4718),a=n(91429),h=n(5443),u=n(91075),c=n(86738),l=n(16930),f=n(90634),m=n(47610),d=n(56993),p=n(43937);let y=r=class extends u.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:n,hasZ:r,spatialReference:i}=t;switch(e??=[],e?.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??=l.A.WGS84,{...t,hasM:n,hasZ:r,points:e,spatialReference:i}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,f.ge)(this);return t?new h.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,o.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:n,hasZ:i}=this;return new r({points:(0,o.o8)(t),spatialReference:e.clone(),hasM:n,hasZ:i})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,n=t.spatialReference;return null!=e==(null!=n)&&!(null!=e&&null!=n&&!e.equals(n))&&(0,s.aI)(this.points,t.points,m.v6)}addPoint(t){return(0,d.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const e=this.points[t],n={x:e[0],y:e[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(n.z=e[2],r=3),this.hasM&&(n.m=e[r]),new c.A(n)}removePoint(t){if(!this._validateInputs(t))return null;const e=new c.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,d.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,i.Cg)([(0,p.K)("points")],y.prototype,"writePoints",null),y=r=(0,i.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},39829(t,e,n){n.d(e,{A:()=>R});var r,i=n(32198),s=n(4576),o=n(51447),a=n(4718),h=n(53966),u=n(91429),c=n(5443),l=n(91075),f=n(86738),m=n(16930),d=n(12359),p=n(94078),y=n(95108),g=n(90634),M=n(47610),_=n(28735),x=n(56993),b=n(43937);function v(t){return!Array.isArray(t[0])}let R=r=class extends l.A{static fromExtent(t){const e=t.clone().normalize(),{spatialReference:n}=t;let i=!1,s=!1;for(const t of e)t.hasZ&&(i=!0),t.hasM&&(s=!0);const o={rings:e.map(t=>{const e=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(i&&t.hasZ){const n=t.zmin+.5*(t.zmax-t.zmin);for(let t=0;t<e.length;t++)e[t].push(n)}if(s&&t.hasM){const n=t.mmin+.5*(t.mmax-t.mmin);for(let t=0;t<e.length;t++)e[t].push(n)}return e}),spatialReference:n};return i&&(o.hasZ=!0),s&&(o.hasM=!0),new r(o)}constructor(t){super(function(t){if(!t)return;let{rings:e,hasM:n,hasZ:r,spatialReference:i}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[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??=m.A.WGS84,{...t,hasM:n,hasZ:r,rings:e,spatialReference:i}}(t)),this.curveRings=void 0,this.rings=[],this.type="polygon"}get cache(){return this.commitProperty("curveRings"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("rings"),this.commitProperty("spatialReference"),{}}get centroid(){(0,o.Lx)(h.A.getLogger(this),"centroid",{replacement:"Please use centroidOperator.execute() instead.",version:"4.34",warnOnce:!0});const t=(0,d.Ve)(this);return t?f.A.fromJSON(t):null}writeCurveRings(t,e){e.curveRings=(0,a.o8)(t)}get extent(){const t=(0,g.v)(this),{spatialReference:e}=this;return t?new c.A({...t,spatialReference:e}):null}writeRings(t,e){e.rings=(0,a.o8)(this.rings)}addRing(t){if(!t)return;const e=this.rings,n=e.length;if(v(t)){const r=[];for(let e=0,n=t.length;e<n;e++)r[e]=t[e].toArray();e[n]=r}else e[n]=t.slice();return this.notifyChange("rings"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.rings=(0,a.o8)(this.rings),t.curveRings=(0,a.o8)(this.curveRings),t.hasZ=this.hasZ,t.hasM=this.hasM,t}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,n=t.spatialReference;if(null!=e!=(null!=n))return!1;if(null!=e&&null!=n&&!e.equals(n))return!1;if(this.rings.length!==t.rings.length)return!1;for(let e=0;e<this.rings.length;e++){const n=this.rings[e],r=t.rings[e];if(!(0,s.aI)(n,r,M.v6))return!1}return!0}contains(t){if(!t)return!1;const e=(0,_.Cv)(t,this.spatialReference);return(0,p.m3)(this,null!=e?e:t)}isClockwise(t){const e=v(t)?t.map(t=>this.hasZ?this.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y]):t;return(0,y.$3)(e)}getPoint(t,e){if(!this._validateInputs(t,e))return null;const n=this.rings[t][e],r=this.hasZ,i=this.hasM;return r&&!i?new f.A(n[0],n[1],n[2],void 0,this.spatialReference):i&&!r?new f.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&i?new f.A(n[0],n[1],n[2],n[3],this.spatialReference):new f.A(n[0],n[1],this.spatialReference)}insertPoint(t,e,n){return this._validateInputs(t,e,!0)?((0,x.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.rings[t].splice(e,0,n),this.notifyChange("rings"),this):this}removePoint(t,e){if(!this._validateInputs(t,e))return null;const n=new f.A(this.rings[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("rings"),n}removeRing(t){if(!this._validateInputs(t,null))return null;const e=this.rings.splice(t,1)[0],n=this.spatialReference,r=e.map(t=>new f.A(t,n));return this.notifyChange("rings"),r}setPoint(t,e,n){return this._validateInputs(t,e)?((0,x.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.rings[t][e]=n,this.notifyChange("rings"),this):this}_validateInputs(t,e,n=!1){if(null==t||t<0||t>=this.rings.length)return!1;if(null!=e){const r=this.rings[t];if(n&&(e<0||e>r.length))return!1;if(!n&&(e<0||e>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,u.MZ)({readOnly:!0})],R.prototype,"cache",null),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],R.prototype,"centroid",null),(0,i.Cg)([(0,u.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],R.prototype,"curveRings",void 0),(0,i.Cg)([(0,b.K)("curveRings")],R.prototype,"writeCurveRings",null),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],R.prototype,"extent",null),(0,i.Cg)([(0,u.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],R.prototype,"rings",void 0),(0,i.Cg)([(0,b.K)("rings")],R.prototype,"writeRings",null),R=r=(0,i.Cg)([(0,u.$K)("esri.geometry.Polygon")],R),R.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,n){n.d(e,{A:()=>d});var r,i=n(32198),s=n(4718),o=n(91429),a=n(5443),h=n(91075),u=n(86738),c=n(16930),l=n(90634),f=n(56993),m=n(43937);let d=r=class extends h.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:n,hasZ:r,spatialReference:i}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[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,{...t,hasM:n,hasZ:r,paths:e,spatialReference:i}}(t)),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(t,e){e.curvePaths=(0,s.o8)(t)}get extent(){const t=(0,l.Z3)(this),{spatialReference:e}=this;return t?new a.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,n=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const r=[];for(let e=0,n=t.length;e<n;e++)r[e]=t[e].toArray();e[n]=r}else e[n]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,s.o8)(this.paths),t.curvePaths=(0,s.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;const n=this.paths[t][e],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(t,e,n){return this._validateInputs(t,e,!0)?((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t].splice(e,0,n),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],n=this.spatialReference,r=e.map(t=>new u.A(t,n));return this.notifyChange("paths"),r}removePoint(t,e){if(!this._validateInputs(t,e))return null;const n=new u.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(t,e,n){return this._validateInputs(t,e)?((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t][e]=n,this.notifyChange("paths"),this):this}_validateInputs(t,e,n=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const r=this.paths[t];if(n&&(e<0||e>r.length))return!1;if(!n&&(e<0||e>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],d.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}}}})],d.prototype,"curvePaths",void 0),(0,i.Cg)([(0,m.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,i.Cg)([(0,m.K)("paths")],d.prototype,"writePaths",null),d=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},65806(t,e,n){n.d(e,{g:()=>o});var r=n(51850),i=n(99917),s=n(9762);function o(t,e,n,r){if((0,i.canProjectWithoutEngine)(t.spatialReference,n))return a[0]=t.x,a[1]=t.y,a[2]=t.z??0,(0,s.projectBuffer)(a,t.spatialReference,0,e,n,0);const o=(0,i.tryProject)(t,n,r);return!!o&&(e[0]=o.x,e[1]=o.y,e[2]=o.z??0,!0)}const a=(0,r.vt)()},27993(t,e,n){n.d(e,{F:()=>a});var r=n(99917),i=n(16930),s=n(9762),o=n(65806);function a(t,e,n,i){return!(null==e||null==i||t.length<2)&&((0,r.canProjectWithoutEngine)(e,i)?(0,s.projectBuffer)(t,e,0,n,i,0,1):(h.x=t[0],h.y=t[1],h.z=t[2],h.spatialReference=e,(0,o.g)(h,n,i)))}const h={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:i.A.WGS84,type:"point"}},4197(t,e,n){n.d(e,{Vj:()=>c,cj:()=>u,jh:()=>s,l5:()=>a,yH:()=>h});var r=n(34275),i=n(9093);function s(t){return t<=1024?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function a(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function h(t,e){if(0===e.length)return o(t);if(0===t.length)return o(e);const n=s(t.length+e.length);for(let e=0;e<t.length;++e)n[e]=t[e];for(let r=0;r<e.length;++r)n[t.length+r]=e[r];return n}function u(t){return[...t]}function c(t){const e=(0,i.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},95696(t,e,n){n.d(e,{A:()=>u});var r,i=n(32198),s=n(69540),o=n(25482),a=n(91429),h=n(93223);let u=class extends((0,s.OU)(o.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,i.Cg)([(0,h.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=r=(0,i.Cg)([(0,a.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u)},18251(t,e,n){n.d(e,{A:()=>u});var r=n(32198),i=n(69540),s=n(25482),o=n(91429),a=n(51850),h=n(93223);let u=class extends((0,i.OU)(s.o)){constructor(t){super(t),this.type="local",this.origin=(0,a.vt)()}};(0,r.Cg)([(0,h.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r.Cg)([(0,o.$K)("esri.geometry.support.MeshLocalVertexSpace")],u)},72727(t,e,n){function r(t,e,n){if(e<=0)return 0;const r=t-n;return r<0?0:Math.floor(r/e)+1}n.d(e,{k:()=>r}),n(53966)},90634(t,e,n){n.d(e,{HA:()=>c,JM:()=>l,Z3:()=>d,ge:()=>f,v:()=>m});var r=n(537);const i=[];function s(t,e,n,r){return{xmin:t,ymin:e,xmax:n,ymax:r}}function o(t,e,n,r,i,s){return{xmin:t,ymin:e,zmin:n,xmax:r,ymax:i,zmax:s}}function a(t,e,n,r,i,s){return{xmin:t,ymin:e,mmin:n,xmax:r,ymax:i,mmax:s}}function h(t,e,n,r,i,s,o,a){return{xmin:t,ymin:e,zmin:n,mmin:r,xmax:i,ymax:s,zmax:o,mmax:a}}function u(t,e=!1,n=!1){return e?n?h(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]):o(t[0],t[1],t[2],t[3],t[4],t[5]):n?a(t[0],t[1],t[2],t[3],t[4],t[5]):s(t[0],t[1],t[2],t[3])}function c(t){return t?function(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}(t)?t:function(t){return void 0!==t.x&&void 0!==t.y}(t)?function(t){const{x:e,y:n,z:r,m:i}=t,u=null!=i;return null!=r?u?h(e,n,r,i,e,n,r,i):o(e,n,r,e,n,r):u?a(e,n,i,e,n,i):s(e,n,e,n)}(t):function(t){return void 0!==t.rings}(t)?m(t):function(t){return void 0!==t.paths}(t)?d(t):function(t){return void 0!==t.points}(t)?f(t):null:null}function l(t,{xmin:e,ymin:n,zmin:r,mmin:i,xmax:s,ymax:o,zmax:a,mmax:h}){t.xmin=Math.min(t.xmin,e),t.xmax=Math.max(t.xmax,s),t.ymin=Math.min(t.ymin,n),t.ymax=Math.max(t.ymax,o),null!=t.zmin&&(t.zmin=Math.min(t.zmin,r),t.zmax=Math.max(t.zmax,a)),null!=t.mmin&&(t.mmin=Math.min(t.mmin,i),t.mmax=Math.max(t.mmax,h))}function f(t){const{hasZ:e,hasM:n,points:s}=t,o=(0,r.Pj)(i,s,e??!1,n??!1,e??!1,n??!1);return o?u(o,e,n):null}function m(t){const{hasZ:e,hasM:n,rings:s,curveRings:o}=t,a=(0,r.Yz)(i,o??s,e??!1,n??!1);return a?u(a,e,n):null}function d(t){const{hasZ:e,hasM:n,paths:s,curvePaths:o}=t,a=(0,r.Yz)(i,o??s,e??!1,n??!1);return a?u(a,e,n):null}},47610(t,e,n){function r([t,e,n,r],[i,s,o,a]){return t===i&&e===s&&(null==n&&null==o||n===o)&&(null==r&&null==a||r===a)}n.d(e,{v6:()=>r}),n(5443),n(83960)},60408(t,e,n){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function i(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function a(t){return void 0!==t.rings||void 0!==t.curveRings}function h(t){return"object"==typeof t&&"vertexAttributes"in t}function u(t){return t?s(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":i(t)?"esriGeometryMultipoint":null:null}function c(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function l(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}n.d(e,{$B:()=>u,Bi:()=>a,Pv:()=>c,Rg:()=>o,U9:()=>i,W0:()=>l,ZC:()=>r,fT:()=>s,uW:()=>h})},80754(t,e,n){n.d(e,{kS:()=>u,kd:()=>h});var r=n(82799),i=n(16930),s=n(60408),o=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function h(t,e){return Math.ceil((t-e)/(2*e))}function u(t,e){if((0,o.Ed)(t))for(const n of function(t){return(0,s.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,o.aO)(t)){const[n,r]=t.c;n[0]+=e,r[0]+=e;continue}if((0,o.FG)(t)){const[n,r]=t.a;n[0]+=e,r[0]+=e;continue}if((0,o.n1)(t)){const[n,r,i]=t.b;n[0]+=e,r[0]+=e,i[0]+=e;continue}t[0]+=e}for(const n of function(t){return(0,s.Bi)(t)?t.rings:t.paths}(t))for(const t of n)t[0]+=e;return t}n.d(e,["j7",0,a])},89056(t,e,n){n.d(e,{b3:()=>l,jZ:()=>c});var r=n(12195),i=n(19419),s=n(537),o=n(95108),a=n(60408),h=n(80754),u=n(21325);function c(t){return f(t,!0)}function l(t){return f(t,!1)}function f(t,e){if(null==t)return null;const n=t.spatialReference,i=(0,u.Vp)(n),o=(0,r.W)(t)?t.toJSON():t;if(!i)return o;const c=(0,u.K8)(n)?102100:4326,l=h.j7[c].maxX,f=h.j7[c].minX;if((0,a.fT)(o))return d(o,l,f);if((0,a.U9)(o))return o.points=o.points.map(t=>d(t,l,f)),o;if((0,a.ZC)(o))return m(o,i);if((0,a.Bi)(o)||(0,a.Rg)(o)){const t=(0,s.Rg)(x,o),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},r=(0,h.kd)(n.xmin,f)*(2*l),i=0===r?o:(0,h.kS)(o,r);return n.xmin+=r,n.xmax+=r,n.xmax>l?M(i,l,e):n.xmin<f?M(i,f,e):i}return o}function m(t,e){if(!e)return t;const n=function(t,e){const n=[],{ymin:r,ymax:i,xmin:s,xmax:o}=t,a=t.xmax-t.xmin,[h,u]=e.valid,{x:c,frameId:l}=p(t.xmin,e),{x:f,frameId:m}=p(t.xmax,e),d=c===f&&a>0;if(a>2*u){const t={xmin:s<o?c:f,ymin:r,xmax:u,ymax:i},e={xmin:h,ymin:r,xmax:s<o?f:c,ymax:i},a={xmin:0,ymin:r,xmax:u,ymax:i},d={xmin:h,ymin:r,xmax:0,ymax:i},p=[],g=[];y(t,a)&&p.push(l),y(t,d)&&g.push(l),y(e,a)&&p.push(m),y(e,d)&&g.push(m);for(let t=l+1;t<m;t++)p.push(t),g.push(t);n.push(new _(t,[l]),new _(e,[m]),new _(a,p),new _(d,g))}else c>f||d?n.push(new _({xmin:c,ymin:r,xmax:u,ymax:i},[l]),new _({xmin:h,ymin:r,xmax:f,ymax:i},[m])):n.push(new _({xmin:c,ymin:r,xmax:f,ymax:i},[l]));return n}(t,e).map(t=>t.extent);return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map(t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]])}}function d(t,e,n){if(Array.isArray(t)){const r=t[0];if(r>e){const n=(0,h.kd)(r,e);t[0]=r+n*(-2*e)}else if(r<n){const e=(0,h.kd)(r,n);t[0]=r+e*(-2*n)}}else{const r=t.x;if(r>e){const n=(0,h.kd)(r,e);t.x+=n*(-2*e)}else if(r<n){const e=(0,h.kd)(r,n);t.x+=e*(-2*n)}}return t}function p(t,e){const[n,r]=e.valid,i=2*r;let s,o=0;return t>r?(s=Math.ceil(Math.abs(t-r)/i),t-=s*i,o=s):t<n&&(s=Math.ceil(Math.abs(t-n)/i),t+=s*i,o=-s),{x:t,frameId:o}}function y(t,e){const{xmin:n,ymin:r,xmax:i,ymax:s}=e;return g(t,n,r)&&g(t,n,s)&&g(t,i,s)&&g(t,i,r)}function g(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function M(t,e,n=!0){const r=!(0,a.Rg)(t);if(r&&(0,o.m3)(t),n)return(new b).cut(t,e);const i=r?t.rings:t.paths,s=r?4:2,h=i.length,u=-2*e;for(let t=0;t<h;t++){const e=i[t];if(e&&e.length>=s){const t=[];for(const[n,...r]of e)t.push([n+u,...r]);i.push(t)}}return r?t.rings=i:t.paths=i,t}class _{constructor(t,e){this.extent=t,this.frameIds=e}}const x=(0,i.vt)();class b{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(const t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(const n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);const r=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=r;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t,this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide===-1){const n=this._intersect(this._prevPt,t);this._lineTo(n,0),this._prevSide=0,this._lineTo(t,e)}else this._lineTo(t,e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e){this._closed?(this._lineIn.push(v(t,e<=0?t[0]:this._xCut)),this._lineOut.push(v(t,e>=0?t[0]:this._xCut))):(e<=0&&this._lineIn.push(t.slice()),e>=0&&this._lineOut.push(t.slice()))}_lineTo(t,e){this._closed?(R(this._lineIn,t,e<=0?t[0]:this._xCut),R(this._lineOut,t,e>=0?t[0]:this._xCut)):e<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(t.slice())):e>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(t.slice())):this._prevSide<0?(this._lineIn.push(t.slice()),this._lineOut.push(t.slice())):this._prevSide>0&&(this._lineOut.push(t.slice()),this._lineIn.push(t.slice()))}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0]=t[e-2].slice(),t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const n=(this._xCut-t[0])/(e[0]-t[0]),r=[this._xCut,t[1]+n*(e[1]-t[1])],i=Math.min(t.length,e.length);for(let s=2;s<i;s++)r.push(t[s]+n*(e[s]-t[s]));return r}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function v(t,e){const n=t.slice();return n[0]=e,n}function R(t,e,n){const r=t.length;r>1&&t[r-1][0]===n&&t[r-2][0]===n?t[r-1]=v(e,n):t.push(v(e,n))}},83960(t,e,n){n.d(e,{X_:()=>s,oW:()=>a,zx:()=>o});var r=n(34727),i=n(86211);function s(t,e){const n=e||t.extent,r=t.width,s=(0,i.GA)(n?.spatialReference);return n&&r?n.width/r*s*39.37*96:0}function o(t,e,n){return function(t,e){return 0===e||(0,r.Sp)(t,e)||t<e}(t,e)&&function(t,e){return 0===e||(0,r.Sp)(t,e)||t>e}(t,n)}function a(t,e){return(0,r.Sp)(t,e)?0:(t||Number.POSITIVE_INFINITY)>(e||Number.POSITIVE_INFINITY)?1:-1}},56993(t,e,n){function r(t,e,n=!1){let{hasM:r,hasZ:i}=t;Array.isArray(e)?4!==e.length||r||i?3===e.length&&n&&!r?(i=!0,r=!1):3===e.length&&r&&i&&(r=!1,i=!1):(r=!0,i=!0):(i=!i&&e.hasZ&&(!r||e.hasM),r=!r&&e.hasM&&(!i||e.hasZ)),t.hasZ=i,t.hasM=r}n.d(e,{h:()=>r})},97770(t,e,n){n.d(e,{Ey:()=>P,F8:()=>E,J2:()=>T,Yq:()=>I,_m:()=>C,iS:()=>O,wj:()=>N});var r=n(66552),i=n(73444),s=n(98623),o=n(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},h={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},c={year:"numeric",month:"numeric",day:"numeric"},l={year:"numeric",month:"long",day:"numeric"},f={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},d={hour:"numeric",minute:"numeric"},p={...d,second:"numeric"},y={hourCycle:"h23"},g={...d,...y},M={...p,...y},_={"short-date":c,"short-date-short-time":{...c,...d},"short-date-short-time-24":{...c,...g},"short-date-long-time":{...c,...p},"short-date-long-time-24":{...c,...M},"short-date-le":c,"short-date-le-short-time":{...c,...d},"short-date-le-short-time-24":{...c,...g},"short-date-le-long-time":{...c,...p},"short-date-le-long-time-24":{...c,...M},"long-month-day-year":l,"long-month-day-year-short-time":{...l,...d},"long-month-day-year-short-time-24":{...l,...g},"long-month-day-year-long-time":{...l,...p},"long-month-day-year-long-time-24":{...l,...M},"day-short-month-year":f,"day-short-month-year-short-time":{...f,...d},"day-short-month-year-short-time-24":{...f,...g},"day-short-month-year-long-time":{...f,...p},"day-short-month-year-long-time-24":{...f,...M},"long-date":m,"long-date-short-time":{...m,...d},"long-date-short-time-24":{...m,...g},"long-date-long-time":{...m,...p},"long-date-long-time-24":{...m,...M},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":d,"long-time":p},x=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),b={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},v=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),R=v.find(({type:t})=>"month"===t)?.value.toLowerCase();function A(){const t=(0,i.lR)();return(t&&b[t])??(0,i.QC)()}"mart"!==R&&(b.bs="sr-Latn-CS");let S=new WeakMap;const w=_["short-date-short-time"];function T(t){return _[t]}function C(t){const{dateStyle:e,timeStyle:n,hour12:r,year:i,month:s}=t,o={};return e?o.dateStyle=e:i&&(o.year=i,o.month=s||void 0),n&&!o.year&&(o.timeStyle=n,o.hour12="auto"===r?void 0:"always"===r),o}function I(t,e=w){return function(t){let e=S.get(t);if(!e){const n=A(),r=N(t.timeZone??"system"),i={...t,timeZone:r};e=new Intl.DateTimeFormat(n,i),S.set(t,e)}return e}(e).format(t)}function O(t,e=w){return I(new Date(t),{...e,...u,...h})}function E(t,e=w){return I(new Date(`1970-01-01T${t}Z`),{...e,...u,...a})}function P(t,e=w){const n=o.c9.fromISO(t,{setZone:!0});if(!n.isValid)return t;if(e.timeZone)return I(n.toJSDate(),e);const r=0===n.offset?"UTC":e.timeZone,i={...e,timeZone:r};return n.toLocaleString(i,{locale:A()})}function N(t){switch(t){case"system":return s.N;case s.L:return"UTC";default:return t}}(0,i.Ml)(()=>{S=new WeakMap}),n.d(e,["_v",0,x])},73444(t,e,n){n.d(e,{JK:()=>h,Ml:()=>y,QC:()=>l,lR:()=>c,oQ:()=>d});var r=n(36563);let i;n(44208);const s=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){const t=o?.getAttribute("lang"),e=globalThis.navigator?.language;return s??t??e??"en"}function h(){return void 0===i&&(i=a()),i}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function c(t=h()){return f(t)?.language}function l(t=h()){const e=f(t);return e?.language&&e?.extlang?t.replace(`${e.language}-`,""):t}function f(t=h()){return u.exec(t)?.groups}const m=[];function d(t){return m.push(t),(0,r.hA)(()=>{m.splice(m.indexOf(t),1)})}new Map;const p=[];function y(t){return p.push(t),(0,r.hA)(()=>p.splice(p.indexOf(t),1))}function g(){const t=a();i!==t&&([...p].forEach(e=>e(t)),i=t,[...m].forEach(e=>e(t)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},98623(t,e,n){const r=Intl.DateTimeFormat().resolvedOptions().timeZone;n.d(e,["L",0,"unknown","N",0,r])},89606(t,e,n){n.d(e,{GN:()=>l,MU:()=>c,yf:()=>m});var r=n(35522),i=n(51850),s=n(10614),o=n(63907),a=n(74038);class h{constructor(t,e){this.data=t,this.indices=e}}class u{constructor(t,e,n,r,i){this.indices=t,this.packedNormals=e,this.appendedVertexToOriginal=n,this.outputVertexCount=r,this.appendedVertexCount=i}}function c(t,e,n,u,c){return!u||n.some(({name:t})=>"normal"===t||"normalCompressed"===t)?function(t,e,n,o){const a=new h(t.slice().buffer,e);if(!o)return a;const u=n[0].stride,c=a.data.byteLength/u;for(const t of n)if("normalCompressed"===t.name){const{offset:e}=t,n=new Int16Array(a.data),h=(0,i.vt)();for(let t=0;t<c;++t)(0,s.Tz)(h,n,t,u/2,e/2),(0,r.ei)(h,h,o),(0,s.aT)(n,t,h[0],h[1],h[2],u/2,e/2)}else if("normal"===t.name){const{offset:e}=t,n=new Float32Array(a.data),s=(0,i.vt)();for(let t=0;t<c;++t){const i=(t*u+e)/4;s[0]=n[i],s[1]=n[i+1],s[2]=n[i+2],(0,r.ei)(s,s,o),n[i]=s[0],n[i+1]=s[1],n[i+2]=s[2]}}return a}(t,e,n,c):function(t,e,n,r){const i=n[0].stride,s=i/4,h=new Float32Array(t.buffer,t.byteOffset,t.byteLength/4),u=t.byteLength/i,c=i+4;n.forEach(t=>t.stride=c),n.push(new a._("normalCompressed",2,o.pe.SHORT,i,c,!0));const m=l(e,h,s,r);return f(h,u,i,c,m)}(t,e,n,c)}function l(t,e,n,r){const i=t.length/3,s=e.length/n,{faceNormals:o,faceAreas:a,faceEdges:h,edgeFaces:u,vertexFaces:c,vertexFaceCountAndOffset:l}=function(t,e,n,r,i,s){const o=new Float32Array(3*i),a=new Float32Array(i),h=new Uint32Array(3*i),u=new Int32Array(3*i*2),c=3*i,l=new Uint32Array(c),f=new Uint32Array(2*n);for(let t=0;t<i;++t){const e=3*t;for(let t=0;t<3;++t)++f[2*r[e+t]]}{let t=0;for(let e=0;e<n;++e){const n=2*e;f[n+1]=t,t+=f[n]}for(let t=0;t<i;++t){const e=3*t;for(let n=0;n<3;++n)l[f[2*r[e+n]+1]++]=t}for(let t=0;t<n;++t)f[2*t+1]-=f[2*t]}let m=0;const d=new Uint32Array(2*c*2),p=new Uint32Array(2*n);for(let t=0;t<n;++t){const e=2*t,n=4*f[e+1];p[e]=n,p[e+1]=n}function y(t,e,n){const r=Math.min(t,e),i=Math.max(t,e),s=t<e?0:1,o=2*r,a=p[o],h=p[o+1];let c=-1;for(let t=a;t<h;t+=2)if(d[t]===i){c=d[t+1];break}return-1===c&&(c=m++,d[h]=i,d[h+1]=c,p[o+1]=h+2,u[2*c+(1-s)]=-1),u[2*c+s]=n,c}for(let n=0;n<r.length;n+=3){const i=r[n],u=i*e,c=t[u],l=t[u+1],f=t[u+2],m=r[n+1],d=m*e,p=t[d],g=t[d+1],M=t[d+2],_=r[n+2],x=_*e,b=c-p,v=l-g,R=f-M,A=c-t[x],S=l-t[x+1],w=f-t[x+2],T=v*w-R*S,C=R*A-b*w,I=b*S-v*A,O=Math.sqrt(T*T+C*C+I*I)||1,E=n/3;a[E]=.5*O;const P=1/O;if(s){const t=s[0]*T+s[3]*C+s[6]*I,e=s[1]*T+s[4]*C+s[7]*I,n=s[2]*T+s[5]*C+s[8]*I;o[3*E]=t*P,o[3*E+1]=e*P,o[3*E+2]=n*P}else o[3*E]=T*P,o[3*E+1]=C*P,o[3*E+2]=I*P;const N=y(i,m,E),L=y(m,_,E),D=y(_,i,E);h[3*E]=N,h[3*E+1]=L,h[3*E+2]=D}return{faceNormals:o,faceAreas:a,faceEdges:h,vertexFaces:l,vertexFaceCountAndOffset:f,edgeFaces:u}}(e,n,s,t,i,r);return function(t,e,n,r,i,s){const o=new Uint8Array(e),a=new Uint32Array(e),h=new Uint32Array(3*e);let u=0;const c=new Uint32Array(e);let l=0;for(let e=0;e<t.length;e+=3){const t=e/3;if(1===o[t])continue;o[t]=1;const f=n[3*t],m=n[3*t+1],d=n[3*t+2];for(l=0,c[l++]=t,h[0]=i[3*t],h[1]=i[3*t+1],h[2]=i[3*t+2],u=3,a[t]=t+1;u>0;){const e=h[--u];for(let r=0;r<2;++r){const y=s[2*e+r];if(-1===y||a[y]===t+1)continue;a[y]=t+1;const g=n[3*y],M=n[3*y+1],_=n[3*y+2];if(Math.abs(1-(f*g+m*M+d*_))<p){c[l++]=y,o[y]=1;for(let t=0;t<3;++t){const n=i[3*y+t];n!==e&&(h[u++]=n)}}}}if(l>1){let t=0,e=0,i=0,s=0;for(let o=0;o<l;++o){const a=c[o],h=r[a];t+=h,e+=n[3*a]*h,i+=n[3*a+1]*h,s+=n[3*a+2]*h}const o=Math.sqrt(e*e+i*i+s*s)||1;e/=o,i/=o,s/=o;for(let o=0;o<l;++o){const a=c[o];n[3*a]=e,n[3*a+1]=i,n[3*a+2]=s,r[a]=t}}}}(t,i,o,a,h,u),d(i,s,t,o,a,c,l)}function f(t,e,n,r,i){const s=n/4,o=r/4,a=i.outputVertexCount,u=new Float32Array(a*o),c=new Uint32Array(u.buffer),l=s,f=new Uint32Array(t.buffer,t.byteOffset,t.length);return function(t,e,n,r,i,s,o){for(let a=0;a<s;++a){const s=a*i,h=a*e;for(let e=0;e<i;++e)t[h+e]=r[s+e];t[h+n]=o[a]}}(c,o,l,f,s,e,i.packedNormals),m(c,o,l,f,s,e,a,i.appendedVertexToOriginal,i.packedNormals),new h(u.buffer,i.indices)}function m(t,e,n,r,i,s,o,a,h){for(let u=s;u<o;++u){const o=a[u-s]*i,c=u*e;for(let e=0;e<i;++e)t[c+e]=r[o+e];t[c+n]=h[u]}}function d(t,e,n,r,i,s,o){const a=3*t,h=new(a<256?Uint8Array:a<65536?Uint16Array:Uint32Array)(n);let c=e;const l=new(e<256?Uint8Array:e<65536?Uint16Array:Uint32Array)(a-e),f=new ArrayBuffer(4*a),m=new Int16Array(f),d=new Uint32Array(f);let p=0,g=0;const M=new Uint32Array(t);let _=0;const x=1-y;for(let t=0;t<e;++t){p=o[2*t+1],g=p+o[2*t];let n=t;for(;p<g;){{const t=s[--g],e=3*t,o=r[e],a=r[e+1],h=r[e+2];_=0,M[_++]=t;let u=p;for(;u<g;){const t=s[u],e=3*t;if(o*r[e]+a*r[e+1]+h*r[e+2]>x){M[_++]=t;const e=--g;if(u<e){s[u]=s[e];continue}}++u}let c=0,l=0,f=0;if(1===_)c=o,l=a,f=h;else{for(let t=0;t<_;++t){const e=M[t],n=i[e],s=3*e;c+=r[s]*n,l+=r[s+1]*n,f+=r[s+2]*n}const t=Math.sqrt(c*c+l*l+f*f)||1;c/=t,l/=t,f/=t}{const t=1/(Math.abs(c)+Math.abs(l)+Math.abs(f)),e=c*t,r=l*t;let i=e,s=r;f<=0&&(i=(e>=0?1:-1)*(1-Math.abs(r)),s=(r>=0?1:-1)*(1-Math.abs(e)));const o=2*n,a=Math.round(32767*i),h=Math.round(32767*s);m[o]=a<-32767?-32767:a>32767?32767:a,m[o+1]=h<-32767?-32767:h>32767?32767:h}}if(n!==t)for(let e=0;e<_;++e){const r=3*M[e];h[r]===t&&(h[r]=n),h[r+1]===t&&(h[r+1]=n),h[r+2]===t&&(h[r+2]=n)}if(p>=g)break;n=c++,l[n-e]=t}}return new u(h,d,l,c,c-e)}const p=.04,y=.8},94715(t,e,n){n.r(e),n.d(e,{destroyContext:()=>A,dracoDecompressPointCloudData:()=>M,filterObbsForModifications:()=>_,filterObbsForModificationsSync:()=>O,initialize:()=>N,interpretObbModificationResults:()=>I,process:()=>g,project:()=>v,setLegacySchema:()=>b,setModifications:()=>x,setModificationsSync:()=>T,test:()=>D,transformNormals:()=>R});var r=n(34727),i=n(77690),s=n(29242),o=n(58083),a=n(9093),h=n(16930),u=n(4197),c=n(95696),l=n(18251),f=n(73354),m=n(2741);let d;var p=n(89606),y=n(98697);async function g(t){w=await L();const e=[t.geometryBuffer];return{result:C(w,t,e),transferList:e}}async function M(t){w=await L();const e=[t.geometryBuffer],{geometryBuffer:n}=t,r=n.byteLength,i=w._malloc(r),s=new Uint8Array(w.HEAPU8.buffer,i,r);s.set(new Uint8Array(n));const o=w.dracoDecompressPointCloudData(i,s.byteLength);if(w._free(i),o.error.length>0)throw new Error(`i3s.wasm: ${o.error}`);const a=o.featureIds?.length>0?o.featureIds.slice():null,h=o.positions.slice();return a&&e.push(a.buffer),e.push(h.buffer),{result:{positions:h,featureIds:a},transferList:e}}async function _(t){await L(),O(t);const e={buffer:t.buffer};return{result:e,transferList:[e.buffer]}}async function x(t){await L(),T(t)}async function b(t){w=await L(),w.setLegacySchema(t.context,t.jsonSchema)}async function v(t){const{localMatrix:e,origin:r,positions:i,vertexSpace:s}=t,o=h.A.fromJSON(t.inSpatialReference),a=h.A.fromJSON(t.outSpatialReference),f=e?(0,u.Vj)(e):void 0,m=(0,u.cj)(r);let d;const[{projectBuffer:p},{initializeProjection:y}]=await Promise.all([Promise.resolve().then(n.bind(n,9762)),Promise.resolve().then(n.bind(n,99917))]);await y(o,a);const g=[0,0,0];if(!p(m,o,0,g,a,0))throw new Error("Failed to project");if("georeferenced"===s.type&&null==s.origin){if(d=new Float64Array(i.length),!p(i,o,0,d,a,0,d.length/3))throw new Error("Failed to project")}else{const t="georeferenced"===s.type?c.A.fromJSON(s):l.A.fromJSON(s),{projectMeshVertexPositions:e}=await Promise.all([n.e(6860),n.e(4406)]).then(n.bind(n,74594)),r=e({vertexAttributes:{position:i},transform:f?{localMatrix:f}:void 0,vertexSpace:t,spatialReference:o},a);if(!r)throw new Error("Failed to project");d=r}const M=d.length,[_,x,b]=g;for(let t=0;t<M;t+=3)d[t]-=_,d[t+1]-=x,d[t+2]-=b;return{result:{projected:d,original:i,projectedOrigin:g},transferList:[d.buffer,i.buffer]}}async function R({normalMatrix:t,normals:e}){const n=new Float32Array(e.length);return(0,f.b)(n,e,t),(0,r.or)(t)&&(0,f.n)(n,n),{result:{transformed:n,original:e},transferList:[n.buffer,e.buffer]}}function A(t){E(t)}let S,w;function T(t){if(!w)return;const e=t.modifications,n=w._malloc(8*e.length),r=new Float64Array(w.HEAPU8.buffer,n,e.length);for(let t=0;t<e.length;++t)r[t]=e[t];w.setModifications(t.context,n,e.length,t.isGeodetic),w._free(n)}function C(t,e,n){const{context:r,globalTrafo:h,geometryElevationOffset:u,mbs:c,obbData:l,layouts:f,needNormals:m,computeNormals:d,elevationOffset:g,planetRadiusInGlobalMode:M,geometryBuffer:_,geometryDescriptor:x,geometryData:b,indexToVertexProjector:v,vertexToRenderProjector:R,normalReferenceFrame:A}=e,S=t._malloc(_.byteLength),w=t._malloc(33*Float64Array.BYTES_PER_ELEMENT),T=new Uint8Array(t.HEAPU8.buffer,S,_.byteLength);T.set(new Uint8Array(_));const C=new Float64Array(t.HEAPU8.buffer,w,33);P(C,[NaN,NaN,NaN],0);let I=3;P(C,h,I),I+=16,P(C,c.center,I),I+=3,C[I++]=c.radius,l&&P(C,l,I++);const O={isDraco:!1,isLegacy:!1,color:f.some(t=>t.some(t=>"color"===t.name)),normal:m&&f.some(t=>t.some(t=>"normalCompressed"===t.name)),uv0:f.some(t=>t.some(t=>"uv0"===t.name)),uvRegion:f.some(t=>t.some(t=>"uvRegion"===t.name)),featureIndex:x.featureIndex},E=t.process(r,!!l,S,T.byteLength,x,O,w,g,v,R,A);if(t._free(w),t._free(S),E.error.length>0)throw new Error(`i3s.wasm: ${E.error}`);if(E.discarded)return null;const N=E.componentOffsets.length>0?E.componentOffsets.slice():null,L=E.featureIds.length>0?E.featureIds.slice():null,D=E.anchorIds.length>0?Array.from(E.anchorIds):null,G=E.anchors.length>0?Array.from(E.anchors):null,B=1===E.indicesType?new Uint16Array(E.indices.buffer,E.indices.byteOffset,E.indices.byteLength/2).slice():new Uint32Array(E.indices.buffer,E.indices.byteOffset,E.indices.byteLength/4).slice(),U=f[0].slice(),F=(0,i.z0)((0,s.vt)(),h),Z=(0,p.MU)(E.interleavedVertedData,B,U,d&&!O.normal,F),j=E.positions.slice(),k=function(t,e,n,r,i){const s=n?(0,a.o8)(n):(0,a.vt)();(0,o.lw)(s,e,s);const h=s[0],u=s[1],c=s[2],l=s[4],f=s[5],m=s[6],d=s[8],p=s[9],y=s[10],g=s[12],M=s[13],_=s[14];let x=1/0,b=-1/0;for(let e=0;e<t.length;e+=3){const n=t[e],s=t[e+1],o=t[e+2],a=n*c+s*m+o*y+_;let v=0;if(r>0){const t=n*h+s*l+o*d+g,e=n*u+s*f+o*p+M;v=Math.sqrt(t*t+e*e+a*a)-r}else v=a;v-=i,x=Math.min(x,v),b=Math.max(b,v)}return{minElevation:x,maxElevation:b}}(j,h,b?.geometries[0]?.transformation,M,u),{buffer:z,byteOffset:q,byteLength:H}=E.positionIndices,Y=1===E.positionIndicesType?new Uint16Array(z,q,H/2).slice():new Uint32Array(z,q,H/4).slice(),V=new y._b(U,Z.data,Z.indices,E.hasColors,E.hasModifications,{data:j,indices:Y});return L&&n.push(L.buffer),N&&n.push(N.buffer),n.push(Z.data),n.push(Z.indices.buffer),n.push(j.buffer),n.push(Y.buffer),new y.sQ(N,L,D,G,V,h,E.obb,k.minElevation,k.maxElevation)}function I(t){return 0===t?0:1===t?1:2===t?2:3}function O(t){if(!w)return;const{context:e,buffer:n}=t,r=w._malloc(n.byteLength),i=n.byteLength/Float64Array.BYTES_PER_ELEMENT,s=new Float64Array(w.HEAPU8.buffer,r,i),o=new Float64Array(n);s.set(o),w.filterOBBs(e,r,i),o.set(s),w._free(r)}function E(t){0===w?.destroy(t)&&(w=null,S=null,d=null)}function P(t,e,n){for(let r=0;r<e.length;++r)t[r+n]=e[r]}async function N(){w||await L()}async function L(){return w||(w=await(S??=(d??=(async()=>{const t=await n.e(2980).then(n.bind(n,82980));return await t.default({locateFile:t=>(0,m.s)(`esri/libs/i3s/${t}`)})})(),d))),w}const D={transform:(t,e)=>w&&C(w,t,e),destroy:E}},98697(t,e,n){n.d(e,{H1:()=>M,Ir:()=>p,_b:()=>l,sQ:()=>f});var r=n(53966),i=n(15142),s=n(51850),o=n(35982),a=n(39829),h=n(99917),u=n(27993),c=n(89056);class l{constructor(t,e,n,r,i,s){this.layout=t,this.interleavedVertexData=e,this.indices=n,this.hasColors=r,this.hasModifications=i,this.positionData=s}}class f{constructor(t,e,n,r,i,s,o,a,h){this.componentOffsets=t,this.featureIds=e,this.anchorIds=n,this.anchors=r,this.transformedGeometry=i,this.globalTrafo=s,this.obb=o,this.geometryMinElevation=a,this.geometryMaxElevation=h}}o.B;const m=new i.A({deallocator:null}),d=(0,s.vt)();function p(t,e,n,i=!1){m.clear();let s=1/0,o=1/0,u=-1/0,l=-1/0,f=!1;for(const t of e){const e="clip"===t.type?2:"mask"===t.type?1:0,d=t.geometry,p=d.spatialReference??n;if(p!==n&&!(0,h.canProjectWithoutEngine)(p,n)){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:d});continue}let M=d.rings;if(p!==n){const t=y(d.rings,p,n);if(null==t){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:d});continue}M=t}const _=M;if(i){const t=(0,c.jZ)(new a.A({rings:M,spatialReference:n}));null!=t&&(M=t.rings)}const x=1===_.length&&M.length>1?[...M.map(t=>[t]),_]:[M];if(x.some(t=>0===t.length||t.some(t=>t.length<3||t.some(t=>!g(t)))))r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:d});else{f||=1===e;for(const t of x){m.push(e),m.push(t.length);for(const e of t){m.push(e.length);for(const t of e){const e=t[2]??0;m.push(t[0]),m.push(t[1]),m.push(e),s=Math.min(s,t[0]),o=Math.min(o,t[1]),u=Math.max(u,t[0]),l=Math.max(l,t[1])}}}}}if(null!=t)if(f){const e=1e-4;m.push(2),m.push(2),m.push(4),m.push(s-e),m.push(o-e),m.push(0),m.push(u+e),m.push(o-e),m.push(0),m.push(u+e),m.push(l+e),m.push(0),m.push(s-e),m.push(l+e),m.push(0),m.push(4),m.push(t[0]),m.push(t[1]),m.push(0),m.push(t[2]),m.push(t[1]),m.push(0),m.push(t[2]),m.push(t[3]),m.push(0),m.push(t[0]),m.push(t[3]),m.push(0)}else m.push(1),m.push(1),m.push(4),m.push(t[0]),m.push(t[1]),m.push(0),m.push(t[2]),m.push(t[1]),m.push(0),m.push(t[2]),m.push(t[3]),m.push(0),m.push(t[0]),m.push(t[3]),m.push(0);m.push(3);const d=new Float64Array(m.length);for(let t=0;t<m.length;++t)d[t]=m.at(t);return d}function y(t,e,n){const r=[];for(const i of t){const t=[];for(const r of i){if(!(0,u.F)(r,e,d,n)||!g(d))return null;t.push([d[0],d[1],d[2]])}r.push(t)}return r}function g(t){return Number.isFinite(t[0])&&Number.isFinite(t[1])&&(null==t[2]||Number.isFinite(t[2]))}function M(t,e){let n=0;for(const r of e){const e=r.geometry,i=e.rings.length,s=e.rings.some(t=>t.length<3);if(0!==i&&!s){n+=1,n+=1;for(let r=0;r<e.rings.length;++r){const i=e.rings[r];n+=1;for(let s=0;s<i.length;++s){const i=[t[n+0],t[n+1],t[n+2]];n+=3,e.setPoint(r,s,i)}}}}}},10614(t,e,n){n.d(e,{Tz:()=>o,aT:()=>s});var r=n(34727),i=n(35522);function s(t,e,n,r,i,s=2,o=0){const h=1/(Math.abs(n)+Math.abs(r)+Math.abs(i)),u=n*h,c=r*h,l=i<=0?(u>=0?1:-1)*(1-Math.abs(c)):u,f=i<=0?(c>=0?1:-1)*(1-Math.abs(u)):c,m=e*s+o;t[m]=a(l),t[m+1]=a(f)}function o(t,e,n,r=2,s=0){const o=n*r+s,a=h(e[o]),u=h(e[o+1]),c=1-Math.abs(a)-Math.abs(u);return t[2]=c,c<0?(t[0]=(a>=0?1:-1)*(1-Math.abs(u)),t[1]=(u>=0?1:-1)*(1-Math.abs(a))):(t[0]=a,t[1]=u),(0,i.S8)(t,t)}function a(t){return(0,r.qE)(Math.round(32767*t),-32767,32767)}function h(t){return(0,r.qE)(t/32767,-1,1)}n(51850)},74038(t,e,n){n.d(e,{_:()=>r});class r{constructor(t,e,n,r,i,s=!1,o=0,a=!1){this.name=t,this.count=e,this.type=n,this.offset=r,this.stride=i,this.normalized=s,this.divisor=o,this.integer=a}}},63907(t,e,n){const r={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},i={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},s=Object.values(i),o={FLOAT:r.FLOAT,UNSIGNED_BYTE:r.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:r.BYTE,UNSIGNED_SHORT:r.UNSIGNED_SHORT,SHORT:r.SHORT,UNSIGNED_INT:r.UNSIGNED_INT,INT:r.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};n.d(e,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,i,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,s,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,o,"pe",0,r,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5186],{60999(e,t,r){r.d(t,{DZ:()=>f,Ke:()=>p,Tj:()=>c,UT:()=>g,aD:()=>y,jJ:()=>u});var n=r(32198),i=r(69622),s=r(97768),o=r(17676),a=r(10107),l=r(64108);function u(e,t,r){return(0,o.Lx)(e.map((e,n)=>t.apply(r,[e,n])))}async function c(e,t,r){return(await(0,o.Lx)(e.map((e,n)=>t.apply(r,[e,n])))).map(e=>e.value)}function h(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return h(await e)}catch(e){return d(e)}}async function f(e){try{return h(await e)}catch(e){return(0,o.QP)(e),d(e)}}function g(e,t){return new m(e,t)}let m=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=h(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,a.MZ)()],m.prototype,"value",null),(0,n.Cg)([(0,a.MZ)()],m.prototype,"error",null),(0,n.Cg)([(0,a.MZ)()],m.prototype,"finished",null),(0,n.Cg)([(0,a.MZ)()],m.prototype,"promise",void 0),(0,n.Cg)([(0,a.MZ)()],m.prototype,"_result",void 0),m=(0,n.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],m);class y{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,n.hk)(t)}}}},35522(e,t,r){r.d(t,{$A:()=>x,Bw:()=>s,C:()=>o,Cc:()=>I,DI:()=>b,Io:()=>M,Ln:()=>y,Om:()=>A,Qr:()=>h,Re:()=>u,S8:()=>_,T9:()=>g,WQ:()=>l,Z0:()=>C,_S:()=>p,aI:()=>T,ei:()=>E,fw:()=>P,gL:()=>R,hG:()=>v,hZ:()=>a,hs:()=>m,jk:()=>f,lw:()=>c,m3:()=>w,oW:()=>j,t2:()=>k,tn:()=>d,ze:()=>S});var n=r(51850),i=r(34304);function s(e){const t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function c(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function h(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function p(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function f(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function g(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function m(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function y(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e}function M(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(r*r+n*n+i*i)}function v(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return r*r+n*n+i*i}function w(e){const t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function S(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function b(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function _(e,t){const r=t[0],n=t[1],i=t[2];let s=r*r+n*n+i*i;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function A(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function x(e,t,r){const n=t[0],i=t[1],s=t[2],o=r[0],a=r[1],l=r[2];return e[0]=i*l-s*a,e[1]=s*o-n*l,e[2]=n*a-i*o,e}function I(e,t,r,n){const i=t[0],s=t[1],o=t[2];return e[0]=i+n*(r[0]-i),e[1]=s+n*(r[1]-s),e[2]=o+n*(r[2]-o),e}function C(e,t,r){const n=t[0],i=t[1],s=t[2];return e[0]=r[0]*n+r[4]*i+r[8]*s+r[12],e[1]=r[1]*n+r[5]*i+r[9]*s+r[13],e[2]=r[2]*n+r[6]*i+r[10]*s+r[14],e}function E(e,t,r){const n=t[0],i=t[1],s=t[2];return e[0]=n*r[0]+i*r[3]+s*r[6],e[1]=n*r[1]+i*r[4]+s*r[7],e[2]=n*r[2]+i*r[5]+s*r[8],e}function R(e,t,r){return P(e,t,r[0],r[1],r[2],r[3])}function P(e,t,r,n,i,s){const o=t[0],a=t[1],l=t[2],u=n*l-i*a,c=i*o-r*l,h=r*a-n*o,d=n*h-i*c,p=i*u-r*h,f=r*c-n*u,g=2*s;return e[0]=o+u*g+2*d,e[1]=a+c*g+2*p,e[2]=l+h*g+2*f,e}const U=(0,n.vt)(),L=(0,n.vt)();function k(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function T(e,t){if(e===t)return!0;const r=e[0],n=e[1],s=e[2],o=t[0],a=t[1],l=t[2],u=(0,i.FD)();return Math.abs(r-o)<=u*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-a)<=u*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function j(e,t,r){const n=r[0]-t[0],i=r[1]-t[1],s=r[2]-t[2];let o=n*n+i*i+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=n*o,e[1]=i*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const H=u,O=c,W=h,Z=M,$=v,G=s,V=w;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(e,t){_(U,e),_(L,t);const r=A(U,L);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(e,t,r,n,i,s){const o=1-s,a=o*o,l=s*s,u=a*o,c=3*s*a,h=3*l*o,d=l*s;return e[0]=t[0]*u+r[0]*c+n[0]*h+i[0]*d,e[1]=t[1]*u+r[1]*c+n[1]*h+i[1]*d,e[2]=t[2]*u+r[2]*c+n[2]*h+i[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:o,cross:x,crossAndNormalize:function(e,t,r){const n=t[0],i=t[1],s=t[2],o=r[0],a=r[1],l=r[2],u=i*l-s*a,c=s*o-n*l,h=n*a-i*o,d=Math.sqrt(u*u+c*c+h*h);return e[0]=u/d,e[1]=c/d,e[2]=h/d,e},direction:j,dist:Z,distance:M,div:W,divide:h,dot:A,equals:T,exactEquals:k,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,n,i,s){const o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,u=o*(s-1),c=o*(3-2*s);return e[0]=t[0]*a+r[0]*l+n[0]*u+i[0]*c,e[1]=t[1]*a+r[1]*l+n[1]*u+i[1]*c,e[2]=t[2]*a+r[2]*l+n[2]*u+i[2]*c,e},inverse:b,len:G,length:s,lerp:I,max:g,min:f,mul:O,multiply:c,negate:S,normalize:_,random:function(e,t=1){const r=i.Ov,n=2*r()*Math.PI,s=2*r()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(n)*o,e[1]=Math.sin(n)*o,e[2]=s*t,e},rotateX:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[0],s[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),s[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateY:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),s[1]=i[1],s[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateZ:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),s[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),s[2]=i[2],e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:m,scaleAndAdd:y,set:a,sign:p,sqrDist:$,sqrLen:V,squaredDistance:v,squaredLength:w,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:H,subtract:u,transformMat3:E,transformMat4:C,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:R,transformQuatValues:P},Symbol.toStringTag,{value:"Module"})),r.d(t,["Il",0,G,"jb",0,H,"lo",0,$,"uE",0,V,"xg",0,Z])},56512(e,t,r){function n(e){let t,r,n=[],i=!1;return function(...s){return i&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0}(s,n)||(r=e.apply(this,s),t=this,n=s,i=!0),r}}r.d(t,{B:()=>n})},54239(e,t,r){r.d(t,{A:()=>y});var n,i=r(32198),s=r(4576),o=r(66552),a=r(25482),l=r(86211),u=r(67076),c=r(91429),h=r(97348),d=r(43937),p=r(36005);const f=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),g=f.jsonValues.slice();(0,s.Xy)(g,"orthometric");const m=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let y=n=class extends a.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return f.write(e,t,r)}readHeightModel(e,t,r){return f.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return m.read(e)||(r?.messages&&r.messages.push(M(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.LA)(e)||m.read(e)||(r?.messages&&r.messages.push(M(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new n({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.k1)(t);return new n({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}static fromSpatialReference(e){const{latestVcsWkid:t,vcsWkid:r}=e;if(!r)return null;const i=(null!=t?h.B.get(t):null)??h.B.get(r);return i?new n({heightModel:0===i.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,l.LA)(i.unit.name),vertCRS:i.datum}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new n;return t.read(e,{origin:"web-scene"}),t}};function M(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,i.Cg)([(0,c.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g,default:"ellipsoidal",write:{isRequired:!0}}}}})],y.prototype,"heightModel",void 0),(0,i.Cg)([(0,d.K)("web-scene","heightModel")],y.prototype,"writeHeightModel",null),(0,i.Cg)([(0,p.w)(["web-scene","service"],"heightModel")],y.prototype,"readHeightModel",null),(0,i.Cg)([(0,c.MZ)({type:m.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m.jsonValues,write:{writer:m.write,isRequired:!0}}}}})],y.prototype,"heightUnit",void 0),(0,i.Cg)([(0,p.w)("web-scene","heightUnit")],y.prototype,"readHeightUnit",null),(0,i.Cg)([(0,p.w)("service","heightUnit")],y.prototype,"readHeightUnitService",null),(0,i.Cg)([(0,c.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],y.prototype,"vertCRS",void 0),(0,i.Cg)([(0,p.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],y.prototype,"readVertCRS",null),y=n=(0,i.Cg)([(0,c.$K)("esri.geometry.HeightModelInfo")],y)},18768(e,t,r){var n=r(32198),i=r(53966),s=r(91429),o=r(60694);r.d(t,["b",0,e=>{const t=e;let r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,o.Jf)(e,i.A.getLogger(this)))}};return(0,n.Cg)([(0,s.MZ)()],r.prototype,"title",null),(0,n.Cg)([(0,s.MZ)({type:String})],r.prototype,"url",null),r=(0,n.Cg)([(0,s.$K)("esri.layers.mixins.ArcGISService")],r),r}])},69208(e,t,r){var n=r(32198),i=r(91429);r.d(t,["d",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,n.Cg)([(0,i.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},8303(e,t,r){var n=r(32198),i=r(92602),s=r(70333),o=r(11254),a=r(60999),l=r(49186),u=r(36563),c=r(53966),h=r(97768),d=r(17676),p=r(84952),f=r(91429),g=r(77548),m=r(20655),y=r(80812),M=r(41318),v=r(10407),w=r(36005),S=r(43937);const b={credential:null,user:null};r.d(t,["A",0,e=>{const t=e;let _=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,h.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new y.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:n}=await r.e(1204).then(r.bind(r,41204));return(0,d.Te)(t),await n({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,d.zf)(e)||c.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:t}=await r.e(1204).then(r.bind(r,41204)),n=new AbortController,i=(0,u.rE)(n);return this.addHandles(i,"reloadFromPortal"),await t({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},{signal:n.signal})}catch(e){throw(0,d.zf)(e)||c.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,d.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const n=!s.id?.findCredential(this.url),i=e===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,n);let o,a;if(i)o=r.portal.url;else try{o=await(0,g.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!o||!(0,p.b8)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(i?await r.reload():(r=new y.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,d.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const r=(0,v.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=b.credential===t?b.user:await this._fetchEditingUser(e);return b.credential=t,b.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,i=m.A.getDefault();if(i&&i.loaded&&(0,p.S8)(i.restUrl)===(0,p.S8)(n))return i.user;const l=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,a.Ke)((0,o.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?M.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return r&&n&&!(0,p.ut)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,n.Cg)([(0,f.MZ)({type:y.default})],_.prototype,"portalItem",null),(0,n.Cg)([(0,w.w)("web-document","portalItem",["itemId"])],_.prototype,"readPortalItem",null),(0,n.Cg)([(0,S.K)("web-document","portalItem",{itemId:{type:String}})],_.prototype,"writePortalItem",null),(0,n.Cg)([(0,f.MZ)({clonable:!1})],_.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],_.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],_.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],_.prototype,"userHasUpdateItemPrivileges",void 0),_=(0,n.Cg)([(0,f.$K)("esri.layers.mixins.PortalLayer")],_),_}])},25036(e,t,r){var n=r(32198),i=r(91429);r.d(t,["j",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,n.Cg)([(0,i.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}])},88546(e,t,r){r.d(t,{_8:()=>m,uB:()=>y});var n=r(34727),i=r(35522),s=r(51850),o=r(73941),a=r(5443),l=r(54239),u=r(16930),c=r(9762);const h=new u.A({wkid:4326,vcsWkid:115700}),d=new a.A(-180,-90,180,90,h);function p(e,t){if(!Array.isArray(e)||e.length<t)return!1;for(const t of e)if("number"!=typeof t)return!1;return!0}const f=7645211,g={xmin:-180,ymin:-90,zmin:-450,xmax:180,ymax:90,zmax:8850};function m(e){return!(!(e.extensions?.ESRI_crs?.wkid||e.extensions?.ESRI_crs?.latestWkid||e.extensions?.ESRI_crs?.wkt)||!e.root?.extensions?.ESRI_crs?.boundingVolume?.box&&!e.root?.extensions?.ESRI_crs?.boundingVolume?.sphere)}function y(e,t=!1){let r=new u.A({wkid:4326,vcsWkid:115700}),l=e.root?.boundingVolume,h=!1,d=e?.root?.transform;if(t&&(e.extensions?.ESRI_crs?.wkid||e.extensions?.ESRI_crs?.latestWkid||e.extensions?.ESRI_crs?.wkt)&&(e.root?.extensions?.ESRI_crs?.boundingVolume?.box||e.root?.extensions?.ESRI_crs?.boundingVolume?.sphere))r=new u.A(e.extensions?.ESRI_crs),l=e.root?.extensions?.ESRI_crs?.boundingVolume,d=e.root?.transform,h=!0;else if(!l)return new a.A(-180,-90,180,90,r);if(l.box){const e=l?.box;if(e[3]>f&&e[7]>f&&e[11]>f)return new a.A({...g,spatialReference:r})}const m=(0,s.vt)();if(!h&&l.region&&p(l.region,6)){const e=l.region,t=(0,n.KJ)(e[0]),i=(0,n.KJ)(e[1]),s=e[4],o=(0,n.KJ)(e[2]),u=(0,n.KJ)(e[3]),c=e[5];return new a.A({xmin:t,ymin:i,zmin:s,xmax:o,ymax:u,zmax:c,spatialReference:r})}if(l.sphere&&p(l.sphere,4)){const e=l.sphere,t=(0,s.fA)(e[0],e[1],e[2]),n=e[3]/Math.sqrt(3),f=(0,s.vt)();(0,i.Re)(f,t,(0,s.fA)(n,n,n));const g=(0,s.vt)();if((0,i.WQ)(g,t,(0,s.fA)(n,n,n)),d&&p(d,16)){const e=d;(0,i.Z0)(m,f,e),(0,i.C)(f,m),(0,i.Z0)(m,g,e),(0,i.C)(g,m)}h||((0,c.projectBuffer)(f,o.Ro,0,f,u.A.WGS84,0),(0,c.projectBuffer)(g,o.Ro,0,g,u.A.WGS84,0));const y=(0,s.vt)(),M=(0,s.vt)();return(0,i.jk)(y,f,g),(0,i.T9)(M,f,g),new a.A({xmin:y[0],ymin:y[1],zmin:y[2],xmax:M[0],ymax:M[1],zmax:M[2],spatialReference:r})}if(l.box&&p(l.box,12)){const e=l.box,t=(0,s.fA)(e[0],e[1],e[2]),n=(0,s.fA)(e[3],e[4],e[5]),f=(0,s.fA)(e[6],e[7],e[8]),g=(0,s.fA)(e[9],e[10],e[11]),m=[];for(let e=0;e<8;++e)m.push((0,s.vt)());if((0,i.WQ)(m[0],t,n),(0,i.WQ)(m[0],m[0],f),(0,i.WQ)(m[0],m[0],g),(0,i.jb)(m[1],t,n),(0,i.WQ)(m[1],m[1],f),(0,i.WQ)(m[1],m[1],g),(0,i.WQ)(m[2],t,n),(0,i.jb)(m[2],m[2],f),(0,i.WQ)(m[2],m[2],g),(0,i.jb)(m[3],t,n),(0,i.jb)(m[3],m[3],f),(0,i.WQ)(m[3],m[3],g),(0,i.WQ)(m[4],t,n),(0,i.WQ)(m[4],m[4],f),(0,i.jb)(m[4],m[4],g),(0,i.jb)(m[5],t,n),(0,i.WQ)(m[5],m[5],f),(0,i.jb)(m[5],m[5],g),(0,i.WQ)(m[6],t,n),(0,i.jb)(m[6],m[6],f),(0,i.jb)(m[6],m[6],g),(0,i.jb)(m[7],t,n),(0,i.jb)(m[7],m[7],f),(0,i.jb)(m[7],m[7],g),d&&p(d,16)){const e=d;for(let t=0;t<8;++t)(0,i.Z0)(m[t],m[t],e)}const y=(0,s.fA)(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE),M=(0,s.fA)(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE);for(let e=0;e<8;++e)h||(0,c.projectBuffer)(m[e],o.Ro,0,m[e],u.A.WGS84,0),(0,i.jk)(M,M,m[e]),(0,i.T9)(y,y,m[e]);return new a.A({xmin:M[0],ymin:M[1],zmin:M[2],xmax:y[0],ymax:y[1],zmax:y[2],spatialReference:r})}return new a.A(-180,-90,180,90,r)}new Map([[5773,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM96_Geoid"})],[3855,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM2008_Geoid"})],[115700,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"WGS_1984"})],[115701,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"ETRS_1989"})],[6360,new l.A({heightModel:"gravity-related-height",heightUnit:"us-feet",vertCRS:"NAVD88_height_(ftUS)"})],[7837,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"DHHN2016_(height)"})],[5709,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"NAP"})]]),r.d(t,["Zx",0,h,"zq",0,d])},10407(e,t,r){r.d(t,{It:()=>p,LG:()=>o,OM:()=>u,Sm:()=>c,Y:()=>a,bK:()=>l,sQ:()=>h});var n=r(99917),i=r(16930),s=r(28735);function o(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,d.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function c(e,t,r){r?o(e,t):u(e,t)}async function h(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const r=i.A.WGS84;return await(0,n.initializeProjection)(t,r),(0,n.project)(e,r)}(r)}const d={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function p(e){const{portal:t,isOrgItem:r,itemControl:n}=e,i=t.user?.privileges;let s=!i||i.includes("features:user:edit"),o=!!r&&!!i?.includes("features:user:fullEdit");const a="update"===n||"admin"===n;return a?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:a}}}r.d(t,["mm",0,d])},24212(e,t,r){r.d(t,{$7:()=>l,B:()=>a,M7:()=>h,XF:()=>c,tW:()=>u,w7:()=>o});var n=r(56512),i=r(86211),s=r(16271);function o(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?d:p}(e).mode}(null==e||(e.hasZ??!1),t)}function a(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function l(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function u(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function c(e,t){t&&e.warn(".elevationInfo=",t)}function h(e){return(e?.offset??0)*(0,s.Ao)(e?.unit)}(0,n.B)((e,t,r)=>{if(!e)return 0;if("decimal-degrees"===t)return 0;const n="unknown"!==t&&t?t:"meters",s=(0,i.mq)(r);return s?(0,i.oU)(e,n,s):0});const d={mode:"absolute-height",offset:0},p={mode:"on-the-ground",offset:null}},78553(e,t,r){r.d(t,{D:()=>s,p:()=>i});var n=r(56507);function i(e){const t=(0,n.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function s(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9078],{32198(e,t,n){function r(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function i(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}n.d(t,{Cg:()=>r,hk:()=>o,mS:()=>i}),Object.create,Object.create;var s="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function o(e){function t(t){e.error=e.hasError?new s(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function i(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},9093(e,t,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>i,vt:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(e,t,n,r,i,s,o,a,u,l,c,h,p,f,d,g){return[e,t,n,r,i,s,o,a,u,l,c,h,p,f,d,g]}},Symbol.toStringTag,{value:"Module"})),n.d(t,["zK",0,s])},51850(e,t,n){function r(){return[0,0,0]}function i(e){return[e[0],e[1],e[2]]}function s(e,t,n){return[e,t,n]}function o(e,t,n){return[e,t,n]}function a(e,t=[0,0,0]){const n=Math.min(3,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t}function u(){return s(1,1,1)}function l(){return s(1,0,0)}function c(){return s(0,1,0)}function h(){return s(0,0,1)}n.d(t,{CN:()=>o,ci:()=>a,fA:()=>s,o8:()=>i,vt:()=>r});const p=[0,0,0],f=u(),d=l(),g=c(),y=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_X:d,UNIT_Y:g,UNIT_Z:y,ZEROS:p,clone:i,create:r,freeze:o,fromArray:a,fromValues:s,ones:u,unitX:l,unitY:c,unitZ:h,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(t,["Cb",0,y,"Cw",0,d,"JP",0,g,"Un",0,f,"uY",0,p])},35522(e,t,n){n.d(t,{$A:()=>T,Bw:()=>s,C:()=>o,Cc:()=>A,DI:()=>x,Io:()=>_,Ln:()=>m,Om:()=>S,Qr:()=>h,Re:()=>l,S8:()=>w,T9:()=>g,WQ:()=>u,Z0:()=>I,_S:()=>f,aI:()=>N,ei:()=>P,fw:()=>R,gL:()=>k,hG:()=>v,hZ:()=>a,hs:()=>y,jk:()=>d,lw:()=>c,m3:()=>b,oW:()=>F,t2:()=>Z,tn:()=>p,ze:()=>M});var r=n(51850),i=n(34304);function s(e){const t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function u(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function l(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function c(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function h(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function p(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function f(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function d(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function g(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function y(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function m(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function _(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}function v(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}function b(e){const t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function M(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function x(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function w(e,t){const n=t[0],r=t[1],i=t[2];let s=n*n+r*r+i*i;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function S(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function T(e,t,n){const r=t[0],i=t[1],s=t[2],o=n[0],a=n[1],u=n[2];return e[0]=i*u-s*a,e[1]=s*o-r*u,e[2]=r*a-i*o,e}function A(e,t,n,r){const i=t[0],s=t[1],o=t[2];return e[0]=i+r*(n[0]-i),e[1]=s+r*(n[1]-s),e[2]=o+r*(n[2]-o),e}function I(e,t,n){const r=t[0],i=t[1],s=t[2];return e[0]=n[0]*r+n[4]*i+n[8]*s+n[12],e[1]=n[1]*r+n[5]*i+n[9]*s+n[13],e[2]=n[2]*r+n[6]*i+n[10]*s+n[14],e}function P(e,t,n){const r=t[0],i=t[1],s=t[2];return e[0]=r*n[0]+i*n[3]+s*n[6],e[1]=r*n[1]+i*n[4]+s*n[7],e[2]=r*n[2]+i*n[5]+s*n[8],e}function k(e,t,n){return R(e,t,n[0],n[1],n[2],n[3])}function R(e,t,n,r,i,s){const o=t[0],a=t[1],u=t[2],l=r*u-i*a,c=i*o-n*u,h=n*a-r*o,p=r*h-i*c,f=i*l-n*h,d=n*c-r*l,g=2*s;return e[0]=o+l*g+2*p,e[1]=a+c*g+2*f,e[2]=u+h*g+2*d,e}const C=(0,r.vt)(),V=(0,r.vt)();function Z(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function N(e,t){if(e===t)return!0;const n=e[0],r=e[1],s=e[2],o=t[0],a=t[1],u=t[2],l=(0,i.FD)();return Math.abs(n-o)<=l*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=l*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(s-u)<=l*Math.max(1,Math.abs(s),Math.abs(u))}function F(e,t,n){const r=n[0]-t[0],i=n[1]-t[1],s=n[2]-t[2];let o=r*r+i*i+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=r*o,e[1]=i*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const O=l,q=c,G=h,E=_,D=v,j=s,z=b;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:u,angle:function(e,t){w(C,e),w(V,t);const n=S(C,V);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(e,t,n,r,i,s){const o=1-s,a=o*o,u=s*s,l=a*o,c=3*s*a,h=3*u*o,p=u*s;return e[0]=t[0]*l+n[0]*c+r[0]*h+i[0]*p,e[1]=t[1]*l+n[1]*c+r[1]*h+i[1]*p,e[2]=t[2]*l+n[2]*c+r[2]*h+i[2]*p,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:o,cross:T,crossAndNormalize:function(e,t,n){const r=t[0],i=t[1],s=t[2],o=n[0],a=n[1],u=n[2],l=i*u-s*a,c=s*o-r*u,h=r*a-i*o,p=Math.sqrt(l*l+c*c+h*h);return e[0]=l/p,e[1]=c/p,e[2]=h/p,e},direction:F,dist:E,distance:_,div:G,divide:h,dot:S,equals:N,exactEquals:Z,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,n,r,i,s){const o=s*s,a=o*(2*s-3)+1,u=o*(s-2)+s,l=o*(s-1),c=o*(3-2*s);return e[0]=t[0]*a+n[0]*u+r[0]*l+i[0]*c,e[1]=t[1]*a+n[1]*u+r[1]*l+i[1]*c,e[2]=t[2]*a+n[2]*u+r[2]*l+i[2]*c,e},inverse:x,len:j,length:s,lerp:A,max:g,min:d,mul:q,multiply:c,negate:M,normalize:w,random:function(e,t=1){const n=i.Ov,r=2*n()*Math.PI,s=2*n()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(r)*o,e[1]=Math.sin(r)*o,e[2]=s*t,e},rotateX:function(e,t,n,r){const i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[0],s[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),s[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateY:function(e,t,n,r){const i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),s[1]=i[1],s[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateZ:function(e,t,n,r){const i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),s[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),s[2]=i[2],e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:y,scaleAndAdd:m,set:a,sign:f,sqrDist:D,sqrLen:z,squaredDistance:v,squaredLength:b,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:O,subtract:l,transformMat3:P,transformMat4:I,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:k,transformQuatValues:R},Symbol.toStringTag,{value:"Module"})),n.d(t,["Il",0,j,"jb",0,O,"lo",0,D,"uE",0,z,"xg",0,E])},69397(e,t,n){n.d(t,{Qf:()=>a,Qh:()=>s,lM:()=>i});var r=n(34275);function i(e){if(!e)return 0;let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n],!1));return t}function s(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let n=c;for(let r=0;r<t;r++)n+=o(e[r]);return n}(e);let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?s(e):l;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+h:Array.isArray(t)?u(t,16):0:0),0)}function u(e,t){return c+e.length*t}const l=32,c=16,h=145},51624(e,t,n){n.d(t,{A:()=>l});var r=n(44208),i=n(69397),s=n(93687);const o=4294967296,a=new TextDecoder("utf-8"),u=(0,r.A)("safari")||(0,r.A)("ios")?6:(0,r.A)("ff")?12:32;class l{constructor(e,t,n=0,r=e?.byteLength??0){this._tag=0,this._dataType=99,this._init(e,t,n,r)}[Symbol.dispose](){this.release()}_init(e,t,n,r){this._data=e,this._dataView=t,this._pos=n,this._end=r}get usedMemory(){return 64+(0,i.Qf)(this._data)}asUnsafe(){return this}clone(){return new l(this._data,this._dataView,this._pos,this._end)}clonePooled(){return l.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(e,t,n=0,r=e?.byteLength??0){const i=l.pool.acquire();return i._init(e,t,n,r),i}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return e;throw new Error("Varint overflow")}getPackedEnd(){const e=this.getUInt32();return this._pos+e}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,n=e.getUint32(t,!0)+e.getUint32(t+4,!0)*o;return this._skip(8),n}getSFixed64(){const e=this._dataView,t=this._pos,n=e.getUint32(t,!0)+e.getInt32(t+4,!0)*o;return this._skip(8),n}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,n=this._toString(this._data,t,t+e);return this._skip(e),n}getBytes(){const e=this._getLength(),t=this._pos,n=this._toBytes(this._data,t,t+e);return this._skip(e),n}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,n,r){const i=this.getMessage(),s=e(i,t,n,r);return i.release(),s}processMessage(e){const t=this.getMessage(),n=e(t);return t.release(),n}getMessage(){const e=this._getLength(),t=l.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){l.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,n=0,r=0;if(this._end-t>=10)do{if(r=e[t++],n|=127&r,!(128&r))break;if(r=e[t++],n|=(127&r)<<7,!(128&r))break;if(r=e[t++],n|=(127&r)<<14,!(128&r))break;if(r=e[t++],n|=(127&r)<<21,!(128&r))break;if(r=e[t++],n+=268435456*(127&r),!(128&r))break;if(r=e[t++],n+=34359738368*(127&r),!(128&r))break;if(r=e[t++],n+=4398046511104*(127&r),!(128&r))break;if(r=e[t++],n+=562949953421312*(127&r),!(128&r))break;if(r=e[t++],n+=72057594037927940*(127&r),!(128&r))break;if(r=e[t++],n+=0x8000000000000000*(127&r),!(128&r))break;throw new Error("Varint too long!")}while(0);else{let i=1;for(;t!==this._end&&(r=e[t],128&r);)++t,n+=(127&r)*i,i*=128;if(t===this._end)throw new Error("Varint overrun!");++t,n+=r*i}return this._pos=t,n}_decodeSVarint(){const e=this._data;let t,n=0,r=0;const i=1&e[this._pos];if(r=e[this._pos++],n|=127&r,!(128&r))return i?-(n+1)/2:n/2;if(r=e[this._pos++],n|=(127&r)<<7,!(128&r))return i?-(n+1)/2:n/2;if(r=e[this._pos++],n|=(127&r)<<14,!(128&r))return i?-(n+1)/2:n/2;if(r=e[this._pos++],n|=(127&r)<<21,!(128&r))return i?-(n+1)/2:n/2;if(r=e[this._pos++],n+=268435456*(127&r),!(128&r))return i?-(n+1)/2:n/2;if(r=e[this._pos++],n+=34359738368*(127&r),!(128&r))return i?-(n+1)/2:n/2;if(r=e[this._pos++],n+=4398046511104*(127&r),!(128&r))return i?-(n+1)/2:n/2;if(t=BigInt(n),r=e[this._pos++],t+=0x2000000000000n*BigInt(127&r),!(128&r))return Number(i?-(t+1n)/2n:t/2n);if(r=e[this._pos++],t+=0x100000000000000n*BigInt(127&r),!(128&r))return Number(i?-(t+1n)/2n:t/2n);if(r=e[this._pos++],t+=0x8000000000000000n*BigInt(127&r),!(128&r))return Number(i?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,n){if((n=Math.min(this._end,n))-t>u){const r=e.subarray(t,n);return a.decode(r)}let r="",i="";for(let s=t;s<n;++s){const t=e[s];128&t?i+="%"+t.toString(16):(r+=decodeURIComponent(i)+String.fromCharCode(t),i="")}return i.length&&(r+=decodeURIComponent(i)),r}_toBytes(e,t,n){return n=Math.min(this._end,n),new Uint8Array(e.buffer,t,n-t)}static{this.pool=new s.A(()=>new l(null,null),void 0,e=>{e._data=null,e._dataView=null})}}},48526(e,t,n){n.d(t,{A:()=>y});var r,i=n(32198),s=n(4576),o=n(4718),a=n(91429),u=n(5443),l=n(91075),c=n(86738),h=n(16930),p=n(90634),f=n(47610),d=n(56993),g=n(43937);let y=r=class extends l.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??=h.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 u.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,f.v6)}addPoint(e){return(0,d.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,d.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,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,i.Cg)([(0,g.K)("points")],y.prototype,"writePoints",null),y=r=(0,i.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},39829(e,t,n){n.d(t,{A:()=>w});var r,i=n(32198),s=n(4576),o=n(51447),a=n(4718),u=n(53966),l=n(91429),c=n(5443),h=n(91075),p=n(86738),f=n(16930),d=n(12359),g=n(94078),y=n(95108),m=n(90634),_=n(47610),v=n(28735),b=n(56993),M=n(43937);function x(e){return!Array.isArray(e[0])}let w=r=class extends h.A{static fromExtent(e){const t=e.clone().normalize(),{spatialReference:n}=e;let i=!1,s=!1;for(const e of t)e.hasZ&&(i=!0),e.hasM&&(s=!0);const o={rings:t.map(e=>{const t=[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]];if(i&&e.hasZ){const n=e.zmin+.5*(e.zmax-e.zmin);for(let e=0;e<t.length;e++)t[e].push(n)}if(s&&e.hasM){const n=e.mmin+.5*(e.mmax-e.mmin);for(let e=0;e<t.length;e++)t[e].push(n)}return t}),spatialReference:n};return i&&(o.hasZ=!0),s&&(o.hasM=!0),new r(o)}constructor(e){super(function(e){if(!e)return;let{rings: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??=f.A.WGS84,{...e,hasM:n,hasZ:r,rings:t,spatialReference:i}}(e)),this.curveRings=void 0,this.rings=[],this.type="polygon"}get cache(){return this.commitProperty("curveRings"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("rings"),this.commitProperty("spatialReference"),{}}get centroid(){(0,o.Lx)(u.A.getLogger(this),"centroid",{replacement:"Please use centroidOperator.execute() instead.",version:"4.34",warnOnce:!0});const e=(0,d.Ve)(this);return e?p.A.fromJSON(e):null}writeCurveRings(e,t){t.curveRings=(0,a.o8)(e)}get extent(){const e=(0,m.v)(this),{spatialReference:t}=this;return e?new c.A({...e,spatialReference:t}):null}writeRings(e,t){t.rings=(0,a.o8)(this.rings)}addRing(e){if(!e)return;const t=this.rings,n=t.length;if(x(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("rings"),this}clone(){const e=new r;return e.spatialReference=this.spatialReference,e.rings=(0,a.o8)(this.rings),e.curveRings=(0,a.o8)(this.curveRings),e.hasZ=this.hasZ,e.hasM=this.hasM,e}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,n=e.spatialReference;if(null!=t!=(null!=n))return!1;if(null!=t&&null!=n&&!t.equals(n))return!1;if(this.rings.length!==e.rings.length)return!1;for(let t=0;t<this.rings.length;t++){const n=this.rings[t],r=e.rings[t];if(!(0,s.aI)(n,r,_.v6))return!1}return!0}contains(e){if(!e)return!1;const t=(0,v.Cv)(e,this.spatialReference);return(0,g.m3)(this,null!=t?t:e)}isClockwise(e){const t=x(e)?e.map(e=>this.hasZ?this.hasM?[e.x,e.y,e.z,e.m]:[e.x,e.y,e.z]:[e.x,e.y]):e;return(0,y.$3)(t)}getPoint(e,t){if(!this._validateInputs(e,t))return null;const n=this.rings[e][t],r=this.hasZ,i=this.hasM;return r&&!i?new p.A(n[0],n[1],n[2],void 0,this.spatialReference):i&&!r?new p.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&i?new p.A(n[0],n[1],n[2],n[3],this.spatialReference):new p.A(n[0],n[1],this.spatialReference)}insertPoint(e,t,n){return this._validateInputs(e,t,!0)?((0,b.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.rings[e].splice(t,0,n),this.notifyChange("rings"),this):this}removePoint(e,t){if(!this._validateInputs(e,t))return null;const n=new p.A(this.rings[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("rings"),n}removeRing(e){if(!this._validateInputs(e,null))return null;const t=this.rings.splice(e,1)[0],n=this.spatialReference,r=t.map(e=>new p.A(e,n));return this.notifyChange("rings"),r}setPoint(e,t,n){return this._validateInputs(e,t)?((0,b.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.rings[e][t]=n,this.notifyChange("rings"),this):this}_validateInputs(e,t,n=!1){if(null==e||e<0||e>=this.rings.length)return!1;if(null!=t){const r=this.rings[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,l.MZ)({readOnly:!0})],w.prototype,"cache",null),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],w.prototype,"centroid",null),(0,i.Cg)([(0,l.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],w.prototype,"curveRings",void 0),(0,i.Cg)([(0,M.K)("curveRings")],w.prototype,"writeCurveRings",null),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],w.prototype,"extent",null),(0,i.Cg)([(0,l.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],w.prototype,"rings",void 0),(0,i.Cg)([(0,M.K)("rings")],w.prototype,"writeRings",null),w=r=(0,i.Cg)([(0,l.$K)("esri.geometry.Polygon")],w),w.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,n){n.d(t,{A:()=>d});var r,i=n(32198),s=n(4718),o=n(91429),a=n(5443),u=n(91075),l=n(86738),c=n(16930),h=n(90634),p=n(56993),f=n(43937);let d=r=class extends u.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,h.Z3)(this),{spatialReference:t}=this;return e?new a.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 l.A(n[0],n[1],n[2],void 0,this.spatialReference):i&&!r?new l.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&i?new l.A(n[0],n[1],n[2],n[3],this.spatialReference):new l.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 l.A(e,n));return this.notifyChange("paths"),r}removePoint(e,t){if(!this._validateInputs(e,t))return null;const n=new l.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})],d.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}}}})],d.prototype,"curvePaths",void 0),(0,i.Cg)([(0,f.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,i.Cg)([(0,f.K)("paths")],d.prototype,"writePaths",null),d=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},4197(e,t,n){n.d(t,{Vj:()=>c,cj:()=>l,jh:()=>s,l5:()=>a,yH:()=>u});var r=n(34275),i=n(9093);function s(e){return e<=1024?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=1024?Array.from(e):new Float64Array(e)}function a(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function u(e,t){if(0===t.length)return o(e);if(0===e.length)return o(t);const n=s(e.length+t.length);for(let t=0;t<e.length;++t)n[t]=e[t];for(let r=0;r<t.length;++r)n[e.length+r]=t[r];return n}function l(e){return[...e]}function c(e){const t=(0,i.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},70328(e,t,n){n.d(t,{BI:()=>I,C:()=>o,DC:()=>p,Ej:()=>v,Ie:()=>T,Jt:()=>A,Lu:()=>M,Ne:()=>x,RF:()=>h,TF:()=>m,VL:()=>d,aI:()=>k,fA:()=>a,gE:()=>l,gX:()=>_,hZ:()=>S,iT:()=>f,is:()=>P,pg:()=>b,uJ:()=>y,vI:()=>w,vY:()=>u,vt:()=>s,w1:()=>c,yr:()=>g}),n(35522);var r=n(5443),i=(n(19419),n(4197));function s(e=C){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t){for(let n=0;n<6;n++)e[n]=t[n];return e}function a(e,t,n,r,i,o,a=s()){return a[0]=e,a[1]=t,a[2]=n,a[3]=r,a[4]=i,a[5]=o,a}function u(e,t=s()){return function(e,t,n,r=s()){return S(r,R),function(e,t,n=0,r=t.length/3){let i=e[0],s=e[1],o=e[2],a=e[3],u=e[4],l=e[5];for(let e=0;e<r;e++)i=Math.min(i,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),o=Math.min(o,t[n+3*e+2]),a=Math.max(a,t[n+3*e]),u=Math.max(u,t[n+3*e+1]),l=Math.max(l,t[n+3*e+2]);e[0]=i,e[1]=s,e[2]=o,e[3]=a,e[4]=u,e[5]=l}(r,e,t,n),r}(e,0,e.length/3,t)}function l(e,t=(0,i.jh)(24)){const[n,r,s,o,a,u]=e;return t[0]=n,t[1]=r,t[2]=s,t[3]=n,t[4]=r,t[5]=u,t[6]=n,t[7]=a,t[8]=s,t[9]=n,t[10]=a,t[11]=u,t[12]=o,t[13]=r,t[14]=s,t[15]=o,t[16]=r,t[17]=u,t[18]=o,t[19]=a,t[20]=s,t[21]=o,t[22]=a,t[23]=u,t}function c(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function h(e,t,n=e){n[0]=Math.min(e[0],t[0]),n[1]=Math.min(e[1],t[1]),n[2]=Math.min(e[2],t[2]),n[3]=Math.max(e[3],t[3]),n[4]=Math.max(e[4],t[4]),n[5]=Math.max(e[5],t[5])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,[t,n,r]){!function(e,t,n,r){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],n),e[2]=Math.min(e[2],r),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],n),e[5]=Math.max(e[5],r)}(e,t,n,r)}function d(e){return e[0]>=e[3]?0:e[3]-e[0]}function g(e){return e[1]>=e[4]?0:e[4]-e[1]}function y(e){return e[2]>=e[5]?0:e[5]-e[2]}function m(e){const t=d(e),n=y(e),r=g(e);return t*t+n*n+r*r}function _(e,t=[0,0,0]){return t[0]=e[0]+d(e)/2,t[1]=e[1]+g(e)/2,t[2]=e[2]+y(e)/2,t}function v(e,t=[0,0,0]){return t[0]=d(e),t[1]=g(e),t[2]=y(e),t}function b(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function M(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function x(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function w(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function S(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function T(e){return e?S(e,R):s(R)}function A(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function I(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function P(e){return 6===e.length}function k(e,t,n){if(null==e||null==t)return e===t;if(!P(e)||!P(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const R=[1/0,1/0,1/0,-1/0,-1/0,-1/0],C=[0,0,0,0,0,0];s(),n.d(t,["qv",0,R,"v_",0,C])},90634(e,t,n){n.d(t,{HA:()=>c,JM:()=>h,Z3:()=>d,ge:()=>p,v:()=>f});var r=n(537);const i=[];function s(e,t,n,r){return{xmin:e,ymin:t,xmax:n,ymax:r}}function o(e,t,n,r,i,s){return{xmin:e,ymin:t,zmin:n,xmax:r,ymax:i,zmax:s}}function a(e,t,n,r,i,s){return{xmin:e,ymin:t,mmin:n,xmax:r,ymax:i,mmax:s}}function u(e,t,n,r,i,s,o,a){return{xmin:e,ymin:t,zmin:n,mmin:r,xmax:i,ymax:s,zmax:o,mmax:a}}function l(e,t=!1,n=!1){return t?n?u(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]):o(e[0],e[1],e[2],e[3],e[4],e[5]):n?a(e[0],e[1],e[2],e[3],e[4],e[5]):s(e[0],e[1],e[2],e[3])}function c(e){return e?function(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}(e)?e:function(e){return void 0!==e.x&&void 0!==e.y}(e)?function(e){const{x:t,y:n,z:r,m:i}=e,l=null!=i;return null!=r?l?u(t,n,r,i,t,n,r,i):o(t,n,r,t,n,r):l?a(t,n,i,t,n,i):s(t,n,t,n)}(e):function(e){return void 0!==e.rings}(e)?f(e):function(e){return void 0!==e.paths}(e)?d(e):function(e){return void 0!==e.points}(e)?p(e):null:null}function h(e,{xmin:t,ymin:n,zmin:r,mmin:i,xmax:s,ymax:o,zmax:a,mmax:u}){e.xmin=Math.min(e.xmin,t),e.xmax=Math.max(e.xmax,s),e.ymin=Math.min(e.ymin,n),e.ymax=Math.max(e.ymax,o),null!=e.zmin&&(e.zmin=Math.min(e.zmin,r),e.zmax=Math.max(e.zmax,a)),null!=e.mmin&&(e.mmin=Math.min(e.mmin,i),e.mmax=Math.max(e.mmax,u))}function p(e){const{hasZ:t,hasM:n,points:s}=e,o=(0,r.Pj)(i,s,t??!1,n??!1,t??!1,n??!1);return o?l(o,t,n):null}function f(e){const{hasZ:t,hasM:n,rings:s,curveRings:o}=e,a=(0,r.Yz)(i,o??s,t??!1,n??!1);return a?l(a,t,n):null}function d(e){const{hasZ:t,hasM:n,paths:s,curvePaths:o}=e,a=(0,r.Yz)(i,o??s,t??!1,n??!1);return a?l(a,t,n):null}},47610(e,t,n){function r([e,t,n,r],[i,s,o,a]){return e===i&&t===s&&(null==n&&null==o||n===o)&&(null==r&&null==a||r===a)}n.d(t,{v6:()=>r}),n(5443),n(83960)},83960(e,t,n){n.d(t,{X_:()=>s,oW:()=>a,zx:()=>o});var r=n(34727),i=n(86211);function s(e,t){const n=t||e.extent,r=e.width,s=(0,i.GA)(n?.spatialReference);return n&&r?n.width/r*s*39.37*96:0}function o(e,t,n){return function(e,t){return 0===t||(0,r.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,r.Sp)(e,t)||e>t}(e,n)}function a(e,t){return(0,r.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},50498(e,t,n){var r=n(66552),i=n(5443),s=n(91075),o=n(48526),a=n(86738),u=n(39829),l=n(82799);const c=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),p={base:s.A,key:"type",typeMap:{extent:i.A,multipoint:o.A,point:a.A,polyline:l.A,polygon:u.A}},f=new r.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});n.d(t,["Ye",0,h,"gy",0,c,"iI",0,f,"yR",0,p])},56993(e,t,n){function r(e,t,n=!1){let{hasM:r,hasZ:i}=e;Array.isArray(t)?4!==t.length||r||i?3===t.length&&n&&!r?(i=!0,r=!1):3===t.length&&r&&i&&(r=!1,i=!1):(r=!0,i=!0):(i=!i&&t.hasZ&&(!r||t.hasM),r=!r&&t.hasM&&(!i||t.hasZ)),e.hasZ=i,e.hasM=r}n.d(t,{h:()=>r})},62815(e,t,n){n.d(t,{N:()=>a,d:()=>u});var r=n(86211),i=n(73941),s=n(21325),o=n(52006);function a(e,t,n){const r=u(t,n);if(1!==r)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,r);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const n of e.curvePaths)for(const e of n){const n=(0,o.yP)(e);n.length>2&&(n[2]*=t)}if(e.paths)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}}(e,r);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const n of e.curveRings)for(const e of n){const n=(0,o.yP)(e);n.length>2&&(n[2]*=t)}if(e.rings)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}}(e,r);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,r);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,r);default:return}}function u(e,t){return null==e||null==t||(0,s.aI)(e,t)||(0,i.xP)(e)||(0,i.xP)(t)?1:(0,r.G9)(e)/(0,r.G9)(t)}},39357(e,t,n){n.d(t,{A:()=>a});var r,i=n(32198),s=n(25482),o=n(91429);let a=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}}})],a.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=r=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},53177(e,t,n){n.d(t,{A:()=>c});var r,i=n(32198),s=n(4718),o=n(91429),a=n(39357),u=n(76357),l=n(93223);let c=class extends u.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:[a.A],json:{write:{isRequired:!0}}})],c.prototype,"codedValues",void 0),(0,i.Cg)([(0,l.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:()=>l});var r=n(32198),i=n(66552),s=n(25482),o=n(91429),a=n(93223);const u=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let l=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}})],l.prototype,"name",void 0),(0,r.Cg)([(0,a.e)(u),(0,o.MZ)({json:{write:{isRequired:!0}}})],l.prototype,"type",void 0),l=(0,r.Cg)([(0,o.$K)("esri.layers.support.Domain")],l)},20437(e,t,n){n.d(t,{A:()=>d});var r,i=n(32198),s=n(66552),o=n(25482),a=n(91429),u=n(56507),l=n(8631),c=n(98453),h=n(36005),p=n(93223);const f=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 d=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?f.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,a.MZ)({type:String,json:{write:!0}})],d.prototype,"alias",void 0),(0,i.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],d.prototype,"defaultValue",void 0),(0,i.Cg)([(0,a.MZ)()],d.prototype,"description",void 0),(0,i.Cg)([(0,h.w)("description")],d.prototype,"readDescription",null),(0,i.Cg)([(0,a.MZ)({types:l.g,json:{read:{reader:l.r},write:!0}})],d.prototype,"domain",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"editable",void 0),(0,i.Cg)([(0,a.MZ)({type:u.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],d.prototype,"length",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"nullable",void 0),(0,i.Cg)([(0,p.e)(c.m)],d.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)()],d.prototype,"valueType",void 0),(0,i.Cg)([(0,h.w)("valueType",["description"])],d.prototype,"readValueType",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],d.prototype,"visible",void 0),d=r=(0,i.Cg)([(0,a.$K)("esri.layers.support.Field")],d)},41628(e,t,n){n.d(t,{A:()=>u});var r,i=n(32198),s=n(91429),o=n(76357),a=n(93223);let u=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}}})],u.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}}})],u.prototype,"minValue",void 0),(0,i.Cg)([(0,a.e)({range:"range"})],u.prototype,"type",void 0),u=r=(0,i.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],u)},8631(e,t,n){n.d(t,{r:()=>p,g:()=>h});var r,i=n(53177),s=n(76357),o=n(32198),a=n(91429),u=n(93223);let l=class extends s.A{static{r=this}constructor(e){super(e),this.type="inherited"}clone(){return new r}};(0,o.Cg)([(0,u.e)({inherited:"inherited"})],l.prototype,"type",void 0),l=r=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],l);var c=n(41628);const h={key:"type",base:s.A,typeMap:{range:c.A,"coded-value":i.A,inherited:l}};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 l.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])},53655(e,t,n){n.d(t,{SH:()=>Z,ae:()=>P,cn:()=>g});var r=n(32198),i=n(49186),s=n(51624),o=n(50498);const a=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],u=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],l=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],c=["upperLeft","lowerLeft"];function h(e,t){const n=e.getEnum();return n<t.length?t[n]:void 0}function p(e,t){e.featureSet.geometryType=e.usesShortGeometryTypes?o.gy.fromJSON(t):t}function f(e,t=e.featureSet.geometryType){return e.usesShortGeometryTypes?o.gy.toJSON(t):t}function d(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function g(e){const t=e.asUnsafe(),n={type:u[0]};for(;t.next();)switch(t.tag()){case 1:n.name=t.getString();break;case 2:n.type=h(t,u);break;case 3:n.alias=t.getString();break;case 4:n.sqlType=h(t,l);break;case 5:default:t.skip();break;case 6:n.defaultValue=t.getString()}return n}function y(e){const t={},n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t.name=n.getString();break;case 2:t.isSystemMaintained=n.getBool();break;default:n.skip()}return t}let m=[];function _(e,t,n){let r=f(t),i=0;const s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:1===n?r=f(t,h(s,a)):s.skip();continue;case 2:for(const e=s.getPackedEnd();s.pos()<e;)m[i++]=s.getUInt32();continue;case 3:i>0?(m.length=i,null!=t.geometry(n,r,m)&&(m=[])):t.geometry(n,r,[]);for(const e=s.getPackedEnd();s.pos()<e;)t.coord(s.getSInt64());continue;default:s.skip()}}function v(e,t){const n=[],r=e.asUnsafe();for(;r.next();)if(3!==r.tag())r.skip();else for(const e=r.getPackedEnd();r.pos()<e;)n.push(r.getSInt64());t.centroid(n)}let b=[],M=[],x=[];function w(e,t){const n={stack:[],error:void 0,hasError:!1};try{let i=0;const s=m;let o=0;const a=e.asUnsafe(),u=(0,r.mS)(n,a.clonePooled().asUnsafe(),!1);for(;a.next();)switch(a.tag()){case 2:for(const l=a.getPackedEnd();a.pos()<l;)s[i++]=a.getUInt32();continue;case 3:if(!("curvedGeometry"in t))throw new Error(`Tried to parse curved geometry in a ${t.constructor.name}, which doesn't support them.`);a.processMessageWithArgs(S,o++);continue;case 4:{const c=a.getUInt32(),h=a.pos()+c;if(0===o||0===i||0===c){a.move(h);continue}s.length=i,x.length=M.length=o,t.curvedGeometry(f(t),s,M,x);const{hasZ:p,hasM:d}=t.featureSet,g=[],y=[0,0];function _(){for(let e=0;e<y.length;++e)g[e]=y[e],y[e]=a.getSInt64()}p&&y.push(0),d&&y.push(0);const v=[0,0],w=[0,0],T=v,A=v;let I=0;for(let P=0;P<i;++P){_(),g.fill(0),t.startCurvedPart(y);for(const k=I+s[P];I<k;++I){const R=M[I],C=x[I];switch(R){case 0:for(let V=0;V<C;++V)_(),y[0]+=g[0],y[1]+=g[1],t.lineSegment(g,y);continue;case 1:for(let Z=0;Z<C;++Z)_(),T[0]=a.getSInt64(),T[1]=a.getSInt64(),t.circularArcSegment(g,y,T);continue;case 2:for(let N=0;N<C;++N)_(),v[0]=a.getSInt64(),v[1]=a.getSInt64(),w[0]=a.getSInt64(),w[1]=a.getSInt64(),t.bezierSegment(g,y,v,w);continue;case 3:if(u.move(b[I]),u.getUInt32()<7*C)throw new Error("Not implemented: compressed full circle encoding");for(let F=0;F<C;++F){_(),A[0]=u.getDouble(),A[1]=u.getDouble();const O=u.getDouble(),q=u.getDouble(),G=u.getDouble(),E=u.getDouble(),D=u.getDouble();t.ellipticArcSegment(g,y,A,O,q,G,E,D)}continue}}t.finishCurvedPart(y)}continue}default:a.skip()}}catch(j){n.error=j,n.hasError=!0}finally{(0,r.hk)(n)}}function S(e,t){const n=e.asUnsafe();let r=0,i=0,s=0;for(;n.next();)switch(n.tag()){case 1:r=n.getEnum();continue;case 2:i=n.getUInt32();continue;case 3:s=n.pos(),n.skip();continue;default:n.skip()}if(3===r&&0===s)throw new Error("An elliptic arc segment set did not include a parameters array");M[t]=r,x[t]=i,b[t]=s}function T(e,t){t.feature();const n=t.featureSet.features.at(-1);let r=0;const{fields:i}=t.featureSet;for(;e.next();)switch(e.tag()){case 1:if(null==i)throw new Error("A Feature had attributes but the FeatureResult didn't include any fields");n.attributes[i[r++].name]=e.processMessage(d);continue;case 2:e.processMessageWithArgs(_,t,0);continue;case 4:e.processMessageWithArgs(v,t);continue;case 7:e.processMessageWithArgs(w,t);continue;case 11:n.distance=e.getDouble();continue;default:e.skip();continue}t.finishFeature?.()}function A(e){const t=[1,1,1,1],n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t[0]=n.getDouble();break;case 2:t[1]=n.getDouble();break;case 4:t[2]=n.getDouble();break;case 3:t[3]=n.getDouble();break;default:n.skip()}return t}function I(e){const t=[0,0,0,0],n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t[0]=n.getDouble();break;case 2:t[1]=n.getDouble();break;case 4:t[2]=n.getDouble();break;case 3:t[3]=n.getDouble();break;default:n.skip()}return t}function P(e){const t={originPosition:c[0]},n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t.originPosition=h(n,c);break;case 2:t.scale=n.processMessage(A);break;case 3:t.translate=n.processMessage(I);break;default:n.skip()}return t}function k(e){const t={},n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:t.shapeAreaFieldName=n.getString();break;case 2:t.shapeLengthFieldName=n.getString();break;case 3:t.units=n.getString();break;default:n.skip()}return t}function R(e){const t={};for(;e.next();)switch(e.tag()){case 1:t.wkid=e.getUInt32();break;case 5:t.wkt=e.getString();break;case 2:t.latestWkid=e.getUInt32();break;case 3:t.vcsWkid=e.getUInt32();break;case 4:t.latestVcsWkid=e.getUInt32();break;default:e.skip()}return t}function C(e,t){const n=e.asUnsafe();if(t.featureSet.features.length=0,"features"===t.parseOnly?.type){const e=t.parseOnly.indices.values();let r=0,i=e.next().value;for(;n.next();)15===n.tag()&&r++===i?(i=e.next().value,n.processMessageWithArgs(T,t)):n.skip();return}let r=!1;for("metadata"===t.parseOnly?.type&&(r=!0,t.parseOnly.featureCount=0),p(t,"esriGeometryPoint");n.next();)switch(n.tag()){case 1:t.idField(n.getString());continue;case 3:t.featureSet.globalIdFieldName=n.getString();continue;case 4:t.featureSet.geohashFieldName=n.getString();continue;case 5:t.featureSet.geometryProperties=n.processMessage(k);continue;case 7:p(t,h(n,a));continue;case 8:t.featureSet.spatialReference=n.processMessageWithArgs(R);continue;case 10:t.featureSet.hasZ=n.getBool();continue;case 11:t.featureSet.hasM=n.getBool();continue;case 12:t.featureSet.transform=n.processMessage(P);continue;case 9:t.featureSet.exceededTransferLimit=n.getBool();continue;case 13:t.featureSet.fields??=[],t.featureSet.fields.push(n.processMessage(g));continue;case 15:if(r){++t.parseOnly.featureCount,n.skip();continue}n.processMessageWithArgs(T,t);continue;case 2:t.idField(n.processMessage(y));continue;default:n.skip()}}function V(e,t,n){let r=-1;for(;e.next();)switch(e.tag()){case 4:r=e.pos(),e.skip();continue;case 1:e.processMessageWithArgs(C,t);continue;default:e.skip()}if(-1!==r){if(!t.queryGeometry()){const n=e.pos();e.move(r),e.processMessageWithArgs(_,t,1),e.move(n)}n.queryGeometryType=t.queryGeometryType(),n.queryGeometry=t.queryGeometry()}t.finish(),n.featureResult=t.featureSet}function Z(e,t){const n={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(n,{[Symbol.dispose](){m=[],b=[],M=[],x=[]}},!1);try{const n={stack:[],error:void 0,hasError:!1};try{const i=(0,r.mS)(n,s.A.constructPooled(new Uint8Array(e),new DataView(e)),!1);let o;for(;i.next();)2===i.tag()?(o={},i.processMessageWithArgs(V,t,o)):i.skip();return o}catch(e){n.error=e,n.hasError=!0}finally{(0,r.hk)(n)}}catch(e){throw new i.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}catch(e){n.error=e,n.hasError=!0}finally{(0,r.hk)(n)}}},63746(e,t,n){function r(e){return class{constructor(){for(const t of e)this[t]=null}}}function i(e,t=1){const{transform:n,hasZ:r,hasM:i}=e;if(null==n)return r&&1!==t?e=>{e[2]*=t}:null;const[s,o]=function(e,t,n,r){let{scale:i,translate:s,originPosition:o}=e;return"upperLeft"===o&&(i=i.map((e,t)=>1===t?-e:e)),t&&(i=i.map((e,t)=>2===t?e*r:e),s=s.map((e,t)=>2===t?e*r:e)),!t&&n&&(i=i.filter((e,t)=>2!==t),s=s.filter((e,t)=>2!==t)),[i,s]}(n,r,i,t),a=e.hasZ?3:2;return e=>{for(let t=0;t<e.length&&(t!==a||0!==e[t]);++t)e[t]=e[t]*s[t]+o[t]}}n.d(t,{M:()=>i,_:()=>r})},66208(e,t,n){n.d(t,{m:()=>i});var r=n(53655);function i(e,t){const{featureResult:n}=(0,r.SH)(e,t);return n}},39078(e,t,n){n.r(t),n.d(t,{default:()=>f});var r=n(24326),i=n(16930),s=n(62815),o=(n(70328),n(19419),n(50498),n(20437));n(44208),n(34727),n(21325);class a{constructor(e,t,n){this.uid=e,this.geometry=t,this.attributes=n,this.visible=!0,this.objectId=null,this.centroid=null}}class u{constructor(){this.exceededTransferLimit=!1,this.features=[],this.fields=[],this.hasM=!1,this.hasZ=!1,this.geometryType=null,this.objectIdFieldName=null,this.globalIdFieldName=null,this.geometryProperties=null,this.geohashFieldName=null,this.spatialReference=null,this.transform=null}}var l=n(63746);class c{constructor(e){this._options=e,this.featureSet=new u,this.usesShortGeometryTypes=!0,this._queryGeometryType=null,this._queryGeometry=null,this.parseOnly=null,this.missingAttributes=[],this._transformInPlace=null,this._attributesClass=null,this._previousX=0,this._previousY=0,this._point=null,this._lengths=null,this._vertex=[],this._part=null,this._parts=null,this._i=0,this._finishVertex=c._finishVertexNonPoint}queryGeometryType(){return this._queryGeometryType}queryGeometry(){return this._queryGeometry}idField(e){"string"==typeof e&&(this.featureSet.objectIdFieldName=e)}finish(){this._options.applyTransform&&(this.featureSet.transform=null);let{spatialReference:e,features:t,fields:n}=this.featureSet;if(!e||e instanceof i.A||(this.featureSet.spatialReference=e=i.A.fromJSON(e)),e)for(const{geometry:n}of t)n&&(n.spatialReference=e);n.forEach((e,t)=>{e instanceof o.A||(n[t]=o.A.fromJSON(e))})}_setVertexTransformer(){const{sourceSpatialReference:e}=this._options,{spatialReference:t,hasZ:n}=this.featureSet,r=n?(0,s.d)(e,t):1;this._transformInPlace??=(0,l.M)(this.featureSet,r)}feature(){this._attributesClass??=(0,l._)(this.featureSet.fields?.map(e=>e.name)??[]),this.featureSet.features.push(new a((0,r.c)(),null,new this._attributesClass)),this._options.applyTransform&&this._setVertexTransformer()}finishFeature(){const{maxStringAttributeLength:e,maxStringAttributeFields:t}=this._options,{attributes:n}=this.featureSet.features.at(-1),r=n[this.featureSet.objectIdFieldName];!function(e,t,n,r){if(t?.size&&null!=n&&e)for(const i in e){if(!t.has(i))continue;const s=e[i];"string"==typeof s&&s.length>n&&(r(i),e[i]="")}}(n,t,e,e=>{null!=r&&this.missingAttributes.push({objectId:r,attribute:e})})}_createPoint(){const{hasZ:e,hasM:t,spatialReference:n}=this.featureSet,r={type:"point",x:0,y:0,spatialReference:n,hasZ:e,hasM:t};return e&&(r.z=0),t&&(r.m=0),r}centroid(e){const{hasZ:t,hasM:n}=this.featureSet,r=this._createPoint();[r.x,r.y]=e,t&&(r.z=e[2]),n&&(r.m=e.at(-1)),this.featureSet.features.at(-1).centroid=r}geometry(e,t,n){this._previousX=this._previousY=0,this._lengths=n;let r,{spatialReference:i,hasZ:s,hasM:o}=this.featureSet;switch(s??=!1,o??=!1,this._vertex=[0,0],s&&this._vertex.push(0),o&&this._vertex.push(0),this._finishVertex=c._finishVertexNonPoint,t){case"esriGeometryPoint":this._point=this._createPoint(),r=this._point,this._finishVertex=s?o?c._finishVertexPointXYZM:c._finishVertexPointXYZ:o?c._finishVertexPointXYM:c._finishVertexPointXY;break;case"esriGeometryMultipoint":r={type:"multipoint",points:[],spatialReference:i,hasZ:s,hasM:o},this._part=r.points,this._parts=[];break;case"esriGeometryPolyline":r={type:"polyline",paths:[],spatialReference:i,hasZ:s,hasM:o},this._parts=r.paths,this._part=[];break;case"esriGeometryPolygon":r={type:"polygon",rings:[],spatialReference:i,hasZ:s,hasM:o},this._parts=r.rings,this._part=[]}1===e?(this._queryGeometry=r,this._queryGeometryType=t,this._options.applyTransform||this._setVertexTransformer()):this.featureSet.features.at(-1).geometry=r}coord(e){const t=this._vertex;t[this._i++]=e,this._i<t.length||(this._i=0,this._transformInPlace&&(t[0]+=this._previousX,t[1]+=this._previousY,[this._previousX,this._previousY]=t,this._transformInPlace(t)),this._finishVertex(this))}static _finishVertexPointXY({_point:e,_vertex:t}){[e.x,e.y]=t}static _finishVertexPointXYZ({_point:e,_vertex:t}){[e.x,e.y,e.z]=t}static _finishVertexPointXYM({_point:e,_vertex:t}){[e.x,e.y,e.m]=t}static _finishVertexPointXYZM({_point:e,_vertex:t}){[e.x,e.y,e.z,e.m]=t}static _finishVertexNonPoint(e){const{_part:t,_parts:n,_lengths:r,_vertex:i}=e;t.push([...i]),t.length<r[n.length]||(e._previousX=e._previousY=0,e._part=[],n.push(t))}}var h=n(66208);class p{_parseFeatureQuery(e){const t=new c(e.options),n=(0,h.m)(e.buffer,t),r={...n,spatialReference:n.spatialReference?.toJSON(),fields:n.fields?n.fields.map(e=>e.toJSON()):void 0,missingAttributes:t.missingAttributes};return Promise.resolve(r)}}function f(){return new p}}}]);
|