@arcgis/core 5.2.0-next.64 → 5.2.0-next.65
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/{bb95922cd4631d6f17fb.js → 04ac5ac6f592d8c34bbd.js} +1 -1
- package/assets/esri/core/workers/chunks/{0977f4d77c36175c2895.js → 3ddd717ea12d9823eee2.js} +1 -1
- package/assets/esri/core/workers/chunks/5adf16c034a590b5e9f5.js +1 -0
- package/assets/esri/core/workers/chunks/{57824ecc10b25e3ad794.js → 903e1cd8b76eff19ebdf.js} +1 -1
- package/assets/esri/core/workers/chunks/93c0a620a147cbf4a0ba.js +1 -0
- package/assets/esri/core/workers/chunks/9be6827e5756031a56c1.js +1 -0
- package/assets/esri/core/workers/chunks/a52c88e2d837b525ff6c.js +1 -0
- package/assets/esri/core/workers/chunks/{771ead806efbe9c91fdc.js → a5fdb02b1714e93fa69e.js} +1 -1
- package/assets/esri/core/workers/chunks/b4e5ee81b9eb171499a6.js +1 -0
- package/assets/esri/core/workers/chunks/bece22668622a9a6bfe2.js +1 -0
- package/assets/esri/core/workers/chunks/c02ae1d40c1fe95ae6c5.js +1 -0
- package/assets/esri/core/workers/chunks/d51c41c1944df0cbab3e.js +1 -0
- package/assets/esri/core/workers/chunks/d583bcea4d1a21da9147.js +1 -0
- package/assets/esri/core/workers/chunks/{ef27bf1d7941ae265ca4.js → d7267f429a051943187b.js} +1 -1
- package/assets/esri/core/workers/chunks/d9c78c2db04a06ee83ed.js +1 -0
- package/assets/esri/core/workers/chunks/{c1e45e24f5ef719a714c.js → dc7e4f7879debf557e46.js} +143 -95
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/chunks/Component.glsl.js +60 -62
- package/chunks/DefaultMaterial.glsl.js +27 -28
- package/chunks/GaussianSplat.glsl.js +7 -7
- package/chunks/GaussianSplatShadow.glsl.js +9 -9
- package/chunks/GlobalIllumination.glsl.js +35 -15
- package/chunks/Path.glsl.js +7 -6
- package/chunks/RealisticTree.glsl.js +22 -24
- package/chunks/SSAO.glsl.js +1 -1
- package/chunks/Terrain.glsl.js +3 -2
- package/chunks/Water.glsl.js +20 -11
- package/chunks/_commonjsHelpers.js +1 -1
- package/chunks/bundle2.js +1 -1
- package/config.js +1 -1
- package/kernel.js +1 -1
- package/layers/graphics/sources/ParquetSource.js +1 -1
- package/layers/graphics/sources/parquet/FileProvider.js +1 -1
- package/layers/graphics/sources/parquet/ParquetFileInfo.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/raster/datasets/EphemeralBlockCache.js +1 -1
- package/layers/raster/datasets/RawBlockCache.js +1 -1
- package/layers/support/KMLSublayer.js +1 -1
- package/layers/video/VideoController.js +1 -1
- package/libs/parquet/parquet.js +1 -1
- package/package.json +1 -1
- package/rest/support/Query.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/LabelSymbol3D.js +1 -1
- package/symbols/LineSymbol3D.js +1 -1
- package/symbols/MeshSymbol3D.js +1 -1
- package/symbols/PointSymbol3D.js +1 -1
- package/symbols/PolygonSymbol3D.js +1 -1
- package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
- package/views/3d/interactive/editingTools/transform/TransformTool3D.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/state/controllers/RotateController.js +1 -1
- package/views/3d/state/utils/navigationUtils.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +24 -16
- package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialExternalColor.glsl.js +25 -0
- package/views/3d/webgl-engine/lib/GaussianSplatRenderUtils.js +2 -0
- package/views/3d/webgl-engine/lib/GaussianSplatRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatPassParameters.js +2 -0
- package/views/3d/webgl-engine/shaders/GaussianSplatShadow.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatShadowTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
- package/widgets/BatchAttributeForm/expressions/ExpressionsModel.js +1 -1
- package/widgets/LayerList/ListItem.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/services/SuperimposeService.js +1 -1
- package/widgets/OrientedImageryViewer/services/TransformationService.js +1 -1
- package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/TableList/ListItem.js +1 -1
- package/assets/esri/core/workers/chunks/43b39abd49c4a8ce891f.js +0 -1
- package/assets/esri/core/workers/chunks/5dbd8ca7e7b8eb9a0bf7.js +0 -1
- package/assets/esri/core/workers/chunks/6123894e2ae9233cdf89.js +0 -1
- package/assets/esri/core/workers/chunks/6b536d03b4bef408035b.js +0 -1
- package/assets/esri/core/workers/chunks/6c98a64d92c9bca78203.js +0 -1
- package/assets/esri/core/workers/chunks/78b80da3bbc1b608fe83.js +0 -1
- package/assets/esri/core/workers/chunks/7d85048c6cd6ad84faf9.js +0 -1
- package/assets/esri/core/workers/chunks/9008090a5d8431ddfa22.js +0 -1
- package/assets/esri/core/workers/chunks/a2d8bc0efddd2e13b1ad.js +0 -1
- package/assets/esri/core/workers/chunks/c97451f75c23be979476.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{ReadDepthLastFrame as a}from"../views/3d/webgl-engine/core/shaderLibrary/output/ReadDepthLastFrame.glsl.js";import{Gamma as t}from"../views/3d/webgl-engine/core/shaderLibrary/shading/Gamma.glsl.js";import{addMainLightDirection as r}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js";import{ScreenSpaceRayMarching as
|
|
2
|
+
import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{ReadDepthLastFrame as a}from"../views/3d/webgl-engine/core/shaderLibrary/output/ReadDepthLastFrame.glsl.js";import{Gamma as t}from"../views/3d/webgl-engine/core/shaderLibrary/shading/Gamma.glsl.js";import{addMainLightDirection as r}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js";import{ScreenSpaceRayMarching as i}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js";import{CameraSpace as o}from"../views/3d/webgl-engine/core/shaderLibrary/util/CameraSpace.glsl.js";import{FloatBindUniform as l}from"../views/3d/webgl-engine/core/shaderModules/FloatBindUniform.js";import{FloatPassUniform as n}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as c,If as s}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Matrix4BindUniform as m}from"../views/3d/webgl-engine/core/shaderModules/Matrix4BindUniform.js";import{Texture2DBindUniform as h}from"../views/3d/webgl-engine/core/shaderModules/Texture2DBindUniform.js";import{Texture2DPassUniform as d}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{GlobalIlluminationColorQuantization as u}from"../views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationColorQuantization.glsl.js";import{floatBlendReductionFactor as p}from"../views/3d/webgl-engine/shaders/floatBlendScale.glsl.js";import{ColorAttachment1 as g,SizedPixelFormat as f}from"../views/webgl/enums.js";import{NoParameters as x}from"../views/webgl/NoParameters.js";import{ShaderBuilder as v}from"../views/webgl/ShaderBuilder.js";const y=.01,M=.008,b=.002,w=.5,S=.02,W=.1,F=.008,D=.3,R=.008,B=150,I=.095,j=.008,C=60,z=2,G=.0039,P=.25,O=.012,T=0,$=6,E=.15,L=25,V=.15,U=.5,H=1,N=1,k=16;class Q extends x{constructor(){super(...arguments),this.projScale=1,this.scaleGlobalIllumination=1,this.accumulatedFrames=0,this.temporalSampleFrame=0,this.rayMarchMinReach=V,this.rayMarchMaxReach=U,this.rayMarchWorldReach=L,this.rayMarchMinReachEmissionWeight=H,this.rayMarchMaxReachEmissionWeight=N,this.rayMarchMaxSteps=k,this.colorBleedWeight=E,this.highQualityIdleColorBlendStart=D}}function _(x){const D=new v,E=D.fragment;D.include(e),D.include(o),r(E),E.include(a),E.include(t),E.include(u),D.include(i,x),E.uniforms.add(new d("normalMap",e=>e.normalTexture),new d("depthMap",e=>e.depthTexture),new h("lastFrameColorTexture",e=>e.reprojection.lastFrameColor?.getTexture()),new h("lastFrameDepthTexture",e=>e.reprojection.lastFrameDepth?.attachment),new h("lastFrameGlobalIlluminationTexture",e=>e.globalIllumination?.getTexture()),new h("lastFrameGlobalIlluminationWeightTexture",e=>e.globalIllumination?.getTexture(g)),new m("reprojectionViewMatrix",e=>e.reprojection.viewMatrix),new m("view",e=>e.camera.viewMatrix),new n("accumulatedFrames",e=>e.accumulatedFrames),new n("temporalSampleFrame",e=>e.temporalSampleFrame),new n("scaleGlobalIllumination",e=>e.scaleGlobalIllumination)),E.uniforms.add(new n("rayMarchMinReach",e=>e.rayMarchMinReach),new n("rayMarchMaxReach",e=>e.rayMarchMaxReach),new n("rayMarchWorldReach",e=>e.rayMarchWorldReach),new n("rayMarchMinReachEmissionWeight",e=>e.rayMarchMinReachEmissionWeight),new n("rayMarchMaxReachEmissionWeight",e=>e.rayMarchMaxReachEmissionWeight),new n("rayMarchMaxSteps",e=>e.rayMarchMaxSteps),new n("colorBleedWeight",e=>e.colorBleedWeight),new n("highQualityIdleColorBlendStart",e=>e.highQualityIdleColorBlendStart));const{hasEmission:L,hasColor:V}=x;return L&&E.uniforms.add(new l("inputScale",e=>e.reprojection.lastFrameEmission?.attachment.descriptor.internalFormat===f.RGBA8?p:1),new h("lastFrameEmissionTexture",e=>e.reprojection.lastFrameEmission?.attachment)),E.code.add(c`
|
|
3
3
|
float computeIdleColorBlendWeight(float accumulatedFrames) {
|
|
4
4
|
float idleColorBlendProgress = clamp(
|
|
5
5
|
accumulatedFrames / ${c.float(B)},
|
|
@@ -20,8 +20,8 @@ import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/Scr
|
|
|
20
20
|
1.0
|
|
21
21
|
);
|
|
22
22
|
return mix(
|
|
23
|
-
${c.float(j)},
|
|
24
23
|
${c.float(I)},
|
|
24
|
+
${c.float(j)},
|
|
25
25
|
pow(idleOcclusionBlendProgress, ${c.float(z)})
|
|
26
26
|
);
|
|
27
27
|
}
|
|
@@ -77,7 +77,7 @@ import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/Scr
|
|
|
77
77
|
|
|
78
78
|
return value * 2.0 - 1.0;
|
|
79
79
|
}
|
|
80
|
-
`),
|
|
80
|
+
`),D.outputs.add("fragGlobalIllumination","vec4",0),D.outputs.add("fragWeight","vec2",1),E.main.add(c`
|
|
81
81
|
float depth = depthFromTexture(depthMap, uv);
|
|
82
82
|
|
|
83
83
|
// Early out if depth is out of range, such as in the sky
|
|
@@ -89,12 +89,17 @@ import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/Scr
|
|
|
89
89
|
|
|
90
90
|
// Get the normal of current fragment
|
|
91
91
|
ivec2 iuv = ivec2(uv * vec2(textureSize(normalMap, 0)));
|
|
92
|
+
|
|
92
93
|
vec4 normal4 = texelFetch(normalMap, iuv, 0);
|
|
93
|
-
|
|
94
|
+
|
|
95
|
+
// 0.0 alpha excludes the surface as a receiver (e.g. water)
|
|
96
|
+
if (normal4.a == 0.0) {
|
|
94
97
|
fragGlobalIllumination = vec4(0.0, 0.0, 0.0, 1.0);
|
|
95
98
|
fragWeight = vec2(0.0);
|
|
96
99
|
return;
|
|
97
100
|
}
|
|
101
|
+
|
|
102
|
+
float receiverOpacity = normal4.a;
|
|
98
103
|
vec3 normal = normalize(normal4.xyz * 2.0 - 1.0);
|
|
99
104
|
|
|
100
105
|
// Reconstruct view space position of current fragment
|
|
@@ -137,10 +142,10 @@ import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/Scr
|
|
|
137
142
|
steps = 1;
|
|
138
143
|
if (historyOcclusionBlendWeight > ${c.float(w)}) {
|
|
139
144
|
occlusionBlendWeight = ${c.float(W)};
|
|
140
|
-
colorBlendWeight = ${c.float(
|
|
145
|
+
colorBlendWeight = ${c.float(F)};
|
|
141
146
|
} else if (historyOcclusionBlendWeight > ${c.float(S)}) {
|
|
142
147
|
occlusionBlendWeight = historyOcclusionBlendWeight - 0.05;
|
|
143
|
-
colorBlendWeight = ${c.float(
|
|
148
|
+
colorBlendWeight = ${c.float(F)};
|
|
144
149
|
} else {
|
|
145
150
|
occlusionBlendWeight = isScaledGlobalIllumination ? ${c.float(M)} : idleOcclusionBlendWeight;
|
|
146
151
|
colorBlendWeight = isScaledGlobalIllumination ? ${c.float(b)} : idleColorBlendWeight;
|
|
@@ -157,9 +162,9 @@ import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/Scr
|
|
|
157
162
|
${s(V,c`
|
|
158
163
|
float colorBleedScale = mix(
|
|
159
164
|
1.0,
|
|
160
|
-
${c.float(
|
|
165
|
+
${c.float(T)},
|
|
161
166
|
smoothstep(
|
|
162
|
-
${c.float(
|
|
167
|
+
${c.float(O)},
|
|
163
168
|
highQualityIdleColorBlendStart,
|
|
164
169
|
colorBlendWeight
|
|
165
170
|
)
|
|
@@ -183,7 +188,15 @@ import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/Scr
|
|
|
183
188
|
rayMarchMaxSteps
|
|
184
189
|
);
|
|
185
190
|
|
|
191
|
+
float hitOpacity = 0.0;
|
|
186
192
|
if (hit.z > 0.0) {
|
|
193
|
+
ivec2 normalMapSize = textureSize(normalMap, 0);
|
|
194
|
+
ivec2 hitIuv = clamp(ivec2(hit.xy * vec2(normalMapSize)), ivec2(0), normalMapSize - ivec2(1));
|
|
195
|
+
float storedHitOpacity = texelFetch(normalMap, hitIuv, 0).a;
|
|
196
|
+
|
|
197
|
+
// 0.0 alpha excludes the surface as a receiver (e.g. water), but a valid ray hit still occludes as opaque
|
|
198
|
+
hitOpacity = storedHitOpacity == 0.0 ? 1.0 : storedHitOpacity;
|
|
199
|
+
|
|
187
200
|
${s(V,c`
|
|
188
201
|
// Emission and color bleed - Reproject the current receiver and sampled hit to estimate bounced color
|
|
189
202
|
vec3 receiverColor = texture(lastFrameColorTexture, reprojectedCoordinate.xy).rgb;
|
|
@@ -191,28 +204,35 @@ import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/Scr
|
|
|
191
204
|
vec2 hitReprojectedCoordinate = reprojectionCoordinate(hit);
|
|
192
205
|
vec3 sourceColor = texture(lastFrameColorTexture, hitReprojectedCoordinate).rgb;
|
|
193
206
|
vec3 sourceColorLinear = linearizeGamma(sourceColor);
|
|
194
|
-
vec3 sourceEmission = ${s(
|
|
207
|
+
vec3 sourceEmission = ${s(L,"texture(lastFrameEmissionTexture, hitReprojectedCoordinate).xyz * inputScale","vec3(0.0)")};
|
|
195
208
|
|
|
196
209
|
float emissionWeight = mix(
|
|
197
210
|
rayMarchMinReachEmissionWeight,
|
|
198
211
|
rayMarchMaxReachEmissionWeight,
|
|
199
212
|
(rayMarchScreenReach - rayMarchMinReach) / max(rayMarchMaxReach - rayMarchMinReach, 0.00001)
|
|
200
213
|
);
|
|
201
|
-
fragGlobalIllumination.rgb +=
|
|
214
|
+
fragGlobalIllumination.rgb += hitOpacity * (
|
|
215
|
+
(sourceColorLinear * colorBleedWeight * colorBleedScale) + sourceEmission * emissionWeight
|
|
216
|
+
) * stepSize;
|
|
202
217
|
`)}
|
|
203
|
-
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
if (hitOpacity < 1.0) {
|
|
204
221
|
// Occlusion - heuristic modulating sky intensity based on angle to main light
|
|
205
222
|
vec4 viewMainLightDirection = view * vec4(mainLightDirection, 0.0);
|
|
206
223
|
float skyModulation = pow(max(dot(rayDirection, viewMainLightDirection.xyz), 0.0), 3.0) * 5.5;
|
|
207
224
|
float skyFacingWeight = clamp(3.5 * dot(viewMainLightDirection.xyz, normal), 0.0, 1.0);
|
|
208
225
|
skyModulation = mix(1.0, skyModulation * 0.2 + 0.8, skyFacingWeight);
|
|
209
|
-
fragGlobalIllumination.a += skyModulation * stepSize;
|
|
226
|
+
fragGlobalIllumination.a += (1.0 - hitOpacity) * skyModulation * stepSize;
|
|
210
227
|
}
|
|
211
228
|
}
|
|
212
229
|
|
|
230
|
+
fragGlobalIllumination.rgb *= receiverOpacity;
|
|
231
|
+
fragGlobalIllumination.a = mix(1.0, fragGlobalIllumination.a, receiverOpacity);
|
|
232
|
+
|
|
213
233
|
// Rendering trick add noise to reduce accumulation artifacts
|
|
214
234
|
float accumulationDither = occlusionBlendWeight < 1.0
|
|
215
|
-
? randomDirectionSample.b * ${c.float(G)}
|
|
235
|
+
? receiverOpacity * randomDirectionSample.b * ${c.float(G)}
|
|
216
236
|
: 0.0;
|
|
217
237
|
|
|
218
238
|
${s(V,c`
|
|
@@ -230,5 +250,5 @@ import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/Scr
|
|
|
230
250
|
// Accumulate occlusion
|
|
231
251
|
fragGlobalIllumination.a = mix(lastFrameGlobalIllumination.a + accumulationDither, fragGlobalIllumination.a, occlusionBlendWeight);
|
|
232
252
|
|
|
233
|
-
fragWeight = vec2(occlusionBlendWeight, colorBlendWeight * ${c.float(
|
|
234
|
-
`),
|
|
253
|
+
fragWeight = vec2(occlusionBlendWeight, colorBlendWeight * ${c.float($)});
|
|
254
|
+
`),D}const q=Object.freeze(Object.defineProperty({__proto__:null,GlobalIlluminationPassParameters:Q,build:_,defaultColorBleedWeight:E,defaultRayMarchMaxReach:U,defaultRayMarchMaxReachEmissionWeight:N,defaultRayMarchMaxSteps:k,defaultRayMarchMinReach:V,defaultRayMarchMinReachEmissionWeight:H,defaultRayMarchWorldReach:L},Symbol.toStringTag,{value:"Module"}));export{Q as G,q as a,k as b,_ as c,U as d,E as e,N as f,V as g,H as h,L as i};
|
package/chunks/Path.glsl.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{addNearFar as e}from"../views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepthToWriteShadowMap.glsl.js";import{Offset as o}from"../views/3d/webgl-engine/core/shaderLibrary/Offset.glsl.js";import{isColor as r}from"../views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js";import{SliceDraw as a}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{Transform as i}from"../views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js";import{PathVertexPosition as d}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js";import{outputDepth as n}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputDepth.glsl.js";import{OutputHighlight as l}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js";import{EvaluateAmbientOcclusion as t}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientOcclusion.glsl.js";import{EvaluateSceneLighting as s,addAmbientBoostFactor as c,addLightingGlobalFactor as m}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import{addMainLightIntensity as g}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js";import{Normals as v}from"../views/3d/webgl-engine/core/shaderLibrary/shading/Normals.glsl.js";import{NormalUtils as u}from"../views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js";import{PhysicallyBasedRenderingParameters as p}from"../views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js";import{ReadShadowMapDrawFragment as b}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js";import{ColorConversion as w}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{addProjViewLocalOrigin as
|
|
2
|
+
import{addNearFar as e}from"../views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepthToWriteShadowMap.glsl.js";import{Offset as o}from"../views/3d/webgl-engine/core/shaderLibrary/Offset.glsl.js";import{isColor as r}from"../views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js";import{SliceDraw as a}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{Transform as i}from"../views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js";import{PathVertexPosition as d}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js";import{outputDepth as n}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputDepth.glsl.js";import{OutputHighlight as l}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js";import{EvaluateAmbientOcclusion as t}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientOcclusion.glsl.js";import{EvaluateSceneLighting as s,addAmbientBoostFactor as c,addLightingGlobalFactor as m}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import{addMainLightIntensity as g}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js";import{Normals as v}from"../views/3d/webgl-engine/core/shaderLibrary/shading/Normals.glsl.js";import{NormalUtils as u}from"../views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js";import{PhysicallyBasedRenderingParameters as p}from"../views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js";import{ReadShadowMapDrawFragment as b}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js";import{ColorConversion as w}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{addProjViewLocalOrigin as f,addCameraPosition as h,addViewNormal as y}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float3PassUniform as x}from"../views/3d/webgl-engine/core/shaderModules/Float3PassUniform.js";import{FloatPassUniform as L}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as j,If as P}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{SnowCover as V}from"../views/3d/webgl-engine/effects/snowcover/SnowCover.glsl.js";import{outputColorHighlightOLID as C}from"../views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js";import{ShaderBuilder as S}from"../views/webgl/ShaderBuilder.js";function O(O){const A=new S,{vertex:I,fragment:B,varyings:_}=A;f(I,O),_.add("vpos","vec3",{invariant:!0}),A.include(d,O);const{output:D,spherical:M,pbrMode:F,snowCover:k,offsetBackfaces:z}=O,E=11===D;switch((r(D)||E)&&(E?(A.varyings.add("objectAndLayerIdColorVarying","vec4"),A.vertex.code.add(j`void forwardObjectAndLayerIdColor() {
|
|
3
3
|
objectAndLayerIdColorVarying = getOlidColor();
|
|
4
4
|
}`),A.fragment.code.add(j`void outputObjectAndLayerIdColor() {
|
|
5
5
|
fragColor = objectAndLayerIdColorVarying;
|
|
6
|
-
}`)):(A.vertex.code.add(j`void forwardObjectAndLayerIdColor() {}`),A.fragment.code.add(j`void outputObjectAndLayerIdColor() {}`)),A.include(i),A.include(b,O),z&&(
|
|
6
|
+
}`)):(A.vertex.code.add(j`void forwardObjectAndLayerIdColor() {}`),A.fragment.code.add(j`void outputObjectAndLayerIdColor() {}`)),A.include(i),A.include(b,O),z&&(h(I,O),A.include(o)),_.add("vnormal","vec3"),_.add("vcolor","vec4"),I.main.add(j`
|
|
7
7
|
ExtrudedVertex extrudedVertex = evaluateVertex();
|
|
8
8
|
vpos = calculateVPos(extrudedVertex);
|
|
9
9
|
vnormal = normalize(localNormal(extrudedVertex));
|
|
@@ -12,7 +12,7 @@ fragColor = objectAndLayerIdColorVarying;
|
|
|
12
12
|
|
|
13
13
|
forwardObjectAndLayerIdColor();
|
|
14
14
|
vcolor = getColor();
|
|
15
|
-
forwardLinearDepthToReadShadowMap();`)),D){case 0:case 1:case 2:A.include(p,O),B.include(s,O),B.include(t,O),A.include(v,O),B.include(a,O),A.include(
|
|
15
|
+
forwardLinearDepthToReadShadowMap();`)),D){case 0:case 1:case 2:A.include(p,O),B.include(s,O),B.include(t,O),A.include(v,O),B.include(a,O),A.include(C,O),h(B,O),c(B),m(B),B.uniforms.add(I.uniforms.get("localOrigin"),new x("ambient",e=>e.ambient),new x("diffuse",e=>e.diffuse),new L("opacity",e=>e.opacity)),B.include(w),B.include(V,O),g(B),B.main.add(j`
|
|
16
16
|
discardBySlice(vpos);
|
|
17
17
|
|
|
18
18
|
shadingParams.viewDirection = normalize(vpos - cameraPosition);
|
|
@@ -44,13 +44,14 @@ gl_Position = transformPosition(proj, view, vpos);`),A.fragment.include(a,O),B.m
|
|
|
44
44
|
vpos = calculateVPos(extrudedVertex);
|
|
45
45
|
gl_Position = transformPositionWithDepth(proj, view, vpos, nearFar, depth);`),B.include(a,O),A.include(n,O),B.main.add(j`discardBySlice(vpos);
|
|
46
46
|
outputDepth(depth);`);break;case 11:A.fragment.include(a,O),B.main.add(j`discardBySlice(vpos);
|
|
47
|
-
outputObjectAndLayerIdColor();`);break;case 4:A.include(i),A.include(u,O),y(I),_.add("vnormal","vec3"),I.main.add(j`ExtrudedVertex extrudedVertex = evaluateVertex();
|
|
47
|
+
outputObjectAndLayerIdColor();`);break;case 4:A.include(i),A.include(u,O),y(I),_.add("vnormal","vec3"),_.add("vcolor","vec4"),I.main.add(j`ExtrudedVertex extrudedVertex = evaluateVertex();
|
|
48
48
|
vpos = calculateVPos(extrudedVertex);
|
|
49
49
|
vnormal = normalize((viewNormal * vec4(localNormal(extrudedVertex), 1.0)).xyz);
|
|
50
|
-
|
|
50
|
+
vcolor = getColor();
|
|
51
|
+
gl_Position = transformPosition(proj, view, vpos);`),A.fragment.include(a,O),B.uniforms.add(new L("opacity",e=>e.opacity)),B.main.add(j`discardBySlice(vpos);
|
|
51
52
|
vec3 normal = normalize(vnormal);
|
|
52
53
|
if (gl_FrontFacing == false) normal = -normal;
|
|
53
|
-
fragColor = vec4(vec3(0.5) + 0.5 * normal,
|
|
54
|
+
fragColor = vec4(vec3(0.5) + 0.5 * normal, vcolor.a * opacity);`);break;case 10:A.include(i),A.include(u,O),_.add("vnormal","vec3"),I.main.add(j`ExtrudedVertex extrudedVertex = evaluateVertex();
|
|
54
55
|
vpos = calculateVPos(extrudedVertex);
|
|
55
56
|
gl_Position = transformPosition(proj, view, vpos);`),A.fragment.include(a,O),A.include(l,O),B.main.add(j`discardBySlice(vpos);
|
|
56
57
|
calculateOcclusionAndOutputHighlight();`)}return A}const A=Object.freeze(Object.defineProperty({__proto__:null,build:O},Symbol.toStringTag,{value:"Module"}));export{A as P,O as b};
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{Offset as e}from"../views/3d/webgl-engine/core/shaderLibrary/Offset.glsl.js";import{isColor as
|
|
3
|
-
|
|
2
|
+
import{Offset as e}from"../views/3d/webgl-engine/core/shaderLibrary/Offset.glsl.js";import{isColor as i}from"../views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js";import{SliceDraw as r}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{Transform as o}from"../views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js";import{InstancedDoublePrecision as a}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js";import{NormalAttribute as l}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js";import{TextureCoordinateAttribute as t}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js";import{VerticalOffset as s}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/VerticalOffset.glsl.js";import{DefaultMaterialAuxiliaryPasses as n}from"../views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js";import{DefaultMaterialExternalColor as d}from"../views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialExternalColor.glsl.js";import{EvaluateAmbientOcclusion as c}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientOcclusion.glsl.js";import{EvaluateSceneLighting as g,addAmbientBoostFactor as m,addLightingGlobalFactor as v}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import{addMainLightDirection as b,addMainLightIntensity as u}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js";import{PhysicallyBasedRendering as w}from"../views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRendering.glsl.js";import{PhysicallyBasedRenderingParameters as f}from"../views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js";import{ReadShadowMapPassFragment as h,ReadShadowMapDrawFragment as p}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js";import{colorTextureUV as L,emissiveTextureUV as y}from"../views/3d/webgl-engine/core/shaderLibrary/shading/TextureTransformUV.glsl.js";import{VisualVariables as x}from"../views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js";import{DiscardOrAdjustAlphaPass as j}from"../views/3d/webgl-engine/core/shaderLibrary/util/DiscardOrAdjustAlpha.glsl.js";import{addProjViewLocalOrigin as C,addCameraPosition as O}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float3PassUniform as P}from"../views/3d/webgl-engine/core/shaderModules/Float3PassUniform.js";import{If as S,glsl as N}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Texture2DPassUniform as A}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{SnowCover as D}from"../views/3d/webgl-engine/effects/snowcover/SnowCover.glsl.js";import{outputColorHighlightOLID as M}from"../views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js";import{ShaderBuilder as T}from"../views/webgl/ShaderBuilder.js";function V(V){const F=new T,{attributes:R,vertex:$,fragment:B,varyings:I}=F,{output:E,offsetBackfaces:_,pbrMode:U,snowCover:k,spherical:z}=V,W=1===U||2===U;if(C($,V),R.add("position","vec3"),$.inputs.add("position",()=>"position"),I.add("vpos","vec3",{invariant:!0}),F.include(x,V),F.include(a,V),F.include(s,V),F.include(L,V),!i(E))return F.include(n,V),F;F.include(y,V),O(F.vertex,V),F.include(l,V),F.include(o),_&&F.include(e),I.add("vNormalWorld","vec3"),I.add("localvpos","vec3",{invariant:!0}),F.include(t,V),F.include(d,V),F.include(V.instancedDoublePrecision?h:p,V),$.main.add(N`
|
|
3
|
+
forwardDefaultMaterialExternalColor();
|
|
4
4
|
|
|
5
|
-
MaskedColor maskedColorExt =
|
|
6
|
-
applySymbolColor(applyVVColor(applyInstanceColor(createMaskedFromNaNColor(externalColor))));
|
|
7
|
-
|
|
8
|
-
vcolorExt = maskedColorExt.color;
|
|
9
|
-
forwardColorMixMode(maskedColorExt.mask);
|
|
10
|
-
|
|
11
|
-
bool alphaCut = opacityMixMode != ${D.int(k.ignore)} && vcolorExt.a < alphaCutoff;
|
|
12
5
|
vpos = getVertexInLocalOriginSpace();
|
|
13
6
|
|
|
14
7
|
localvpos = vpos - view[3].xyz;
|
|
@@ -21,12 +14,13 @@ import{Offset as e}from"../views/3d/webgl-engine/core/shaderLibrary/Offset.glsl.
|
|
|
21
14
|
forwardColorUV();
|
|
22
15
|
forwardEmissiveUV();
|
|
23
16
|
forwardLinearDepthToReadShadowMap();
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
|
|
18
|
+
gl_Position = shouldCullByOpacity() ? vec4(1e38, 1e38, 1e38, 1.0) :
|
|
19
|
+
${S(_,"offsetBackfacingClipPosition(basePosition, vpos, vNormalWorld, cameraPosition);","basePosition;")}
|
|
20
|
+
`);const{hasColorTexture:H,hasColorTextureTransform:G}=V;return B.include(g,V),B.include(c,V),F.include(j,V),B.include(r,V),F.include(M,V),O(B,V),b(B),m(B),v(B),B.uniforms.add($.uniforms.get("localOrigin"),$.uniforms.get("view"),new P("ambient",e=>e.ambient),new P("diffuse",e=>e.diffuse)),H&&B.uniforms.add(new A("tex",e=>e.texture)),F.include(f,V),B.include(w,V),B.include(D,V),u(B),B.main.add(N`
|
|
27
21
|
discardBySlice(vpos);
|
|
28
|
-
vec4 texColor = ${
|
|
29
|
-
${
|
|
22
|
+
vec4 texColor = ${H?`texture(tex, ${G?"colorUV":"vuv0"})`:" vec4(1.0)"};
|
|
23
|
+
${S(H,`${S(V.textureAlphaPremultiplied,"texColor.rgb /= texColor.a;")}\n discardOrAdjustAlpha(texColor);`)}
|
|
30
24
|
vec3 viewDirection = normalize(vpos - cameraPosition);
|
|
31
25
|
applyPBRFactors();
|
|
32
26
|
float ssao = evaluateAmbientOcclusionInverse();
|
|
@@ -36,16 +30,20 @@ import{Offset as e}from"../views/3d/webgl-engine/core/shaderLibrary/Offset.glsl.
|
|
|
36
30
|
vec3 additionalLight = ssao * mainLightIntensity * additionalAmbientScale * ambientBoostFactor * lightingGlobalFactor;
|
|
37
31
|
float shadow = readShadow(additionalAmbientScale, vpos);
|
|
38
32
|
vec3 matColor = max(ambient, diffuse);
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
vec3 albedo = mixExternalColor(
|
|
34
|
+
${S(V.hasVertexColors,"vColor.rgb * ")} matColor,
|
|
35
|
+
texColor.rgb,
|
|
36
|
+
vExternalColor.rgb,
|
|
37
|
+
colorMixMode
|
|
38
|
+
);
|
|
39
|
+
float opacity_ = getDefaultMaterialOpacity(texColor.a);
|
|
42
40
|
|
|
43
41
|
vec3 shadingNormal = normalize(vNormalWorld);
|
|
44
|
-
vec3 groundNormal = ${
|
|
42
|
+
vec3 groundNormal = ${z?"normalize(vpos + localOrigin)":"vec3(0.0, 0.0, 1.0)"};
|
|
45
43
|
|
|
46
|
-
${
|
|
44
|
+
${S(k,"vec3 faceNormal = screenDerivativeNormal(vpos);\n float snow = getRealisticTreeSnow(faceNormal, shadingNormal, groundNormal);\n albedo = mix(albedo, vec3(1), snow);")}
|
|
47
45
|
|
|
48
|
-
${
|
|
46
|
+
${N`albedo *= 1.2;
|
|
49
47
|
vec3 viewForward = vec3(view[0][2], view[1][2], view[2][2]);
|
|
50
48
|
float alignmentLightView = clamp(dot(viewForward, -mainLightDirection), 0.0, 1.0);
|
|
51
49
|
float transmittance = 1.0 - clamp(dot(viewForward, shadingNormal), 0.0, 1.0);
|
|
@@ -53,8 +51,8 @@ import{Offset as e}from"../views/3d/webgl-engine/core/shaderLibrary/Offset.glsl.
|
|
|
53
51
|
float backLightFactor = 0.5 * treeRadialFalloff * alignmentLightView * transmittance * (1.0 - shadow);
|
|
54
52
|
additionalLight += backLightFactor * mainLightIntensity;`}
|
|
55
53
|
|
|
56
|
-
${
|
|
57
|
-
${
|
|
58
|
-
vec3 shadedColor = evaluateSceneLightingPBR(shadingNormal, albedo, shadow, 1.0 - ssao, additionalLight, viewDirection, groundNormal, mrr, additionalAmbientIrradiance);`:
|
|
54
|
+
${W?N`float additionalAmbientIrradiance = additionalAmbientIrradianceFactor * mainLightIntensity[2];
|
|
55
|
+
${S(k,"mrr = applySnowToMRR(mrr, snow);")}
|
|
56
|
+
vec3 shadedColor = evaluateSceneLightingPBR(shadingNormal, albedo, shadow, 1.0 - ssao, additionalLight, viewDirection, groundNormal, mrr, additionalAmbientIrradiance);`:N`vec3 shadedColor = evaluateSceneLighting(shadingNormal, albedo, shadow, 1.0 - ssao, additionalLight);`}
|
|
59
57
|
vec4 finalColor = vec4(shadedColor, opacity_);
|
|
60
|
-
outputColorHighlightOLID(applySlice(finalColor, vpos), albedo ${
|
|
58
|
+
outputColorHighlightOLID(applySlice(finalColor, vpos), albedo ${S(k,", 1.0")});`),F}const F=Object.freeze(Object.defineProperty({__proto__:null,build:V},Symbol.toStringTag,{value:"Module"}));export{F as R,V as b};
|
package/chunks/SSAO.glsl.js
CHANGED
|
@@ -37,7 +37,7 @@ return fallOffFunction(vv, vn, 0.1);
|
|
|
37
37
|
// get the normal of current fragment
|
|
38
38
|
ivec2 iuv = ivec2(uv * vec2(textureSize(normalMap, 0)));
|
|
39
39
|
vec4 norm4 = texelFetch(normalMap, iuv, 0);
|
|
40
|
-
if(norm4.a
|
|
40
|
+
if (norm4.a == 0.0) {
|
|
41
41
|
fragOcclusion = 1.0;
|
|
42
42
|
return;
|
|
43
43
|
}
|
package/chunks/Terrain.glsl.js
CHANGED
|
@@ -65,12 +65,13 @@ return normalize(n);
|
|
|
65
65
|
${z(X,"setOverlayVTC(uv0);")}
|
|
66
66
|
gl_Position = transformPosition(proj, view, position);
|
|
67
67
|
vnormal = normalize((viewNormal * vec4(getNormal(), 1.0)).xyz);`),W.main.add($`
|
|
68
|
-
|
|
68
|
+
float opacity = 1.0;
|
|
69
|
+
${z(X,"\n opacity = getCombinedOverlayColor().a;\n if (opacity < alphaCutoff) discard;")}
|
|
69
70
|
vec3 normal = normalize(vnormal);
|
|
70
71
|
if (gl_FrontFacing == false) {
|
|
71
72
|
normal = -normal;
|
|
72
73
|
}
|
|
73
|
-
fragColor = vec4(vec3(0.5) + 0.5 * normal,
|
|
74
|
+
fragColor = vec4(vec3(0.5) + 0.5 * normal, opacity);`);break;case 10:G&&(a.include(L,o),a.include(u,o)),N.main.add($`
|
|
74
75
|
${z(G,"setOverlayVTC(uv0);")}
|
|
75
76
|
gl_Position = transformPosition(proj, view, position);`),a.include(v,o),W.main.add($`
|
|
76
77
|
${z(G,$`
|
package/chunks/Water.glsl.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import e from"../core/Error.js";import{isColor as o}from"../views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js";import{SliceDraw as r}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{Transform as i}from"../views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js";import{ObjectAndLayerIdColor as a}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js";import{OutputHighlight as t}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js";import{EvaluateAmbientLighting as n}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientLighting.glsl.js";import{addMainLightDirection as s,addMainLightIntensity as l}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js";import{NormalUtils as d}from"../views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js";import{ReadShadowMapDrawFragment as m}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js";import{WaterColor as c}from"../views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js";import{WaterDistortion as g}from"../views/3d/webgl-engine/core/shaderLibrary/shading/WaterDistortion.glsl.js";import{ColorConversion as v}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{addProjViewLocalOrigin as p,addCameraPosition as u}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float4PassUniform as w}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{FloatPassUniform as f}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as h}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{outputColorHighlightOLID as b}from"../views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js";import{ShaderBuilder as
|
|
3
|
-
if (waterColor.a < ${h.float(
|
|
2
|
+
import e from"../core/Error.js";import{isColor as o}from"../views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js";import{SliceDraw as r}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{Transform as i}from"../views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js";import{ObjectAndLayerIdColor as a}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js";import{OutputHighlight as t}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js";import{EvaluateAmbientLighting as n}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientLighting.glsl.js";import{addMainLightDirection as s,addMainLightIntensity as l}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js";import{NormalUtils as d}from"../views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js";import{ReadShadowMapDrawFragment as m}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js";import{WaterColor as c}from"../views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js";import{WaterDistortion as g}from"../views/3d/webgl-engine/core/shaderLibrary/shading/WaterDistortion.glsl.js";import{ColorConversion as v}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{addProjViewLocalOrigin as p,addCameraPosition as u}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float4PassUniform as w}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{FloatPassUniform as f}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as h}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{outputColorHighlightOLID as b}from"../views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js";import{ShaderBuilder as y}from"../views/webgl/ShaderBuilder.js";import{alphaCutoff as j}from"../webscene/support/AlphaCutoff.js";function C(C){const L=new y,{vertex:P,fragment:x,varyings:S}=L,{output:_,draped:O,receiveShadows:M}=C;p(P,C),L.include(i),L.attributes.add("position","vec3"),L.attributes.add("uv0","vec2");const D=new w("waterColor",e=>e.color);if(S.add("vpos","vec3",{invariant:!0}),P.uniforms.add(D),o(_)){if(O)return P.main.add(h`
|
|
3
|
+
if (waterColor.a < ${h.float(j)}) {
|
|
4
4
|
// Discard this vertex
|
|
5
5
|
gl_Position = vec4(1e38, 1e38, 1e38, 1.0);
|
|
6
6
|
return;
|
|
@@ -8,7 +8,7 @@ import e from"../core/Error.js";import{isColor as o}from"../views/3d/webgl-engin
|
|
|
8
8
|
|
|
9
9
|
vpos = position;
|
|
10
10
|
gl_Position = transformPosition(proj, view, vpos);`),x.uniforms.add(D),x.main.add(h`fragColor = waterColor;`),L;L.include(d,C),S.add("vuv","vec2"),S.add("vnormal","vec3"),S.add("vtbnMatrix","mat3"),P.main.add(h`
|
|
11
|
-
if (waterColor.a < ${h.float(
|
|
11
|
+
if (waterColor.a < ${h.float(j)}) {
|
|
12
12
|
// Discard this vertex
|
|
13
13
|
gl_Position = vec4(1e38, 1e38, 1e38, 1.0);
|
|
14
14
|
return;
|
|
@@ -36,7 +36,7 @@ import e from"../core/Error.js";import{isColor as o}from"../views/3d/webgl-engin
|
|
|
36
36
|
|
|
37
37
|
fragColor = delinearizeGamma(final);
|
|
38
38
|
outputColorHighlightOLID(applySlice(fragColor, vpos), final.rgb);`);break;case 4:L.include(d,C),L.include(g,C),x.include(r,C),S.add("vuv","vec2"),P.main.add(h`
|
|
39
|
-
if (waterColor.a < ${h.float(
|
|
39
|
+
if (waterColor.a < ${h.float(j)}) {
|
|
40
40
|
// Discard this vertex
|
|
41
41
|
gl_Position = vec4(1e38, 1e38, 1e38, 1.0);
|
|
42
42
|
return;
|
|
@@ -45,11 +45,20 @@ import e from"../core/Error.js";import{isColor as o}from"../views/3d/webgl-engin
|
|
|
45
45
|
vuv = uv0;
|
|
46
46
|
vpos = position;
|
|
47
47
|
|
|
48
|
-
gl_Position = transformPosition(proj, view, vpos);`),x.uniforms.add(new f("timeElapsed",({timeElapsed:e})=>e)).main.add(h`
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
gl_Position = transformPosition(proj, view, vpos);`),x.uniforms.add(new f("timeElapsed",({timeElapsed:e})=>e)).main.add(h`
|
|
49
|
+
discardBySlice(vpos);
|
|
50
|
+
|
|
51
|
+
// the created normal is in tangent space and foam
|
|
52
|
+
vec4 tangentNormalFoam = getSurfaceNormalAndFoam(vuv, timeElapsed);
|
|
53
|
+
tangentNormalFoam.xyz = normalize(tangentNormalFoam.xyz);
|
|
54
|
+
|
|
55
|
+
// Draped water is only rendered for overlay, writes foam and is not rendered for ambient illumination.
|
|
56
|
+
// Non-draped water opts out of ambient illumination by writing 0.0.
|
|
57
|
+
fragColor = vec4(
|
|
58
|
+
(tangentNormalFoam.xyz + vec3(1.0)) * 0.5,
|
|
59
|
+
${O?h`tangentNormalFoam.w`:h`0.0`}
|
|
60
|
+
);`);break;case 3:P.main.add(h`
|
|
61
|
+
if (waterColor.a < ${h.float(j)}) {
|
|
53
62
|
// Discard this vertex
|
|
54
63
|
gl_Position = vec4(1e38, 1e38, 1e38, 1.0);
|
|
55
64
|
return;
|
|
@@ -57,7 +66,7 @@ fragColor = vec4((tangentNormalFoam.xyz + vec3(1.0)) * 0.5, tangentNormalFoam.w)
|
|
|
57
66
|
|
|
58
67
|
vpos = position;
|
|
59
68
|
gl_Position = transformPosition(proj, view, vpos);`),x.include(r,C),x.main.add("discardBySlice(vpos);");break;case 10:L.include(t,C),P.main.add(h`
|
|
60
|
-
if (waterColor.a < ${h.float(
|
|
69
|
+
if (waterColor.a < ${h.float(j)}) {
|
|
61
70
|
// Discard this vertex
|
|
62
71
|
gl_Position = vec4(1e38, 1e38, 1e38, 1.0);
|
|
63
72
|
return;
|
|
@@ -66,7 +75,7 @@ fragColor = vec4((tangentNormalFoam.xyz + vec3(1.0)) * 0.5, tangentNormalFoam.w)
|
|
|
66
75
|
vpos = position;
|
|
67
76
|
gl_Position = transformPosition(proj, view, vpos);`),x.include(r,C),x.main.add(h`discardBySlice(vpos);
|
|
68
77
|
calculateOcclusionAndOutputHighlight();`);break;case 11:L.include(a,C),P.main.add(h`
|
|
69
|
-
if (waterColor.a < ${h.float(
|
|
78
|
+
if (waterColor.a < ${h.float(j)}) {
|
|
70
79
|
// Discard this vertex
|
|
71
80
|
gl_Position = vec4(1e38, 1e38, 1e38, 1.0);
|
|
72
81
|
return;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function
|
|
2
|
+
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}export{e as c,o as g};
|
package/chunks/bundle2.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
class e{static __wrap(t){t>>>=0;const _=Object.create(e.prototype);return _.__wbg_ptr=t,O.register(_,_.__wbg_ptr,_),_}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,O.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_columndescriptor_free(e,0)}compressedSize(){return ke.columndescriptor_compressedSize(this.__wbg_ptr)}compression(){let e,t;try{const _=ke.columndescriptor_compression(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{ke.__wbindgen_free(e,t,1)}}distinctCount(){const e=ke.columndescriptor_distinctCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}encodings(){return ke.columndescriptor_encodings(this.__wbg_ptr)}logicalType(){const e=ke.columndescriptor_logicalType(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],1*e[1],1)),t}maxValue(){return ke.columndescriptor_maxValue(this.__wbg_ptr)}minValue(){return ke.columndescriptor_minValue(this.__wbg_ptr)}name(){let e,t;try{const _=ke.columndescriptor_name(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{ke.__wbindgen_free(e,t,1)}}nullCount(){const e=ke.columndescriptor_nullCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}numValues(){return ke.columndescriptor_numValues(this.__wbg_ptr)}pageEncodings(){const e=ke.columndescriptor_pageEncodings(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ee(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],4*e[1],4)),t}physicalType(){const e=ke.columndescriptor_physicalType(this.__wbg_ptr);return k[e]}uncompressedSize(){return ke.columndescriptor_uncompressedSize(this.__wbg_ptr)}}Symbol.dispose&&(e.prototype[Symbol.dispose]=e.prototype.free);class t{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,T.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_columnid_free(e,0)}}Symbol.dispose&&(t.prototype[Symbol.dispose]=t.prototype.free);const _=Object.freeze({PBF:0,0:"PBF"});class r{static __wrap(e){e>>>=0;const t=Object.create(r.prototype);return t.__wbg_ptr=e,M.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,M.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_displayoptimizationxzbuilder_free(e,0)}addLevel(e){N(e,c);var t=e.__destroy_into_raw();ke.displayoptimizationxzbuilder_addLevel(this.__wbg_ptr,t)}static new(){const e=ke.displayoptimizationxzbuilder_new();return r.__wrap(e)}setCodeField(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationxzbuilder_setCodeField(this.__wbg_ptr,t,_)}setEncoding(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce,r=ke.displayoptimizationxzbuilder_setEncoding(this.__wbg_ptr,t,_);if(r[1])throw Fe(r[0])}setFullExtent(e){ke.displayoptimizationxzbuilder_setFullExtent(this.__wbg_ptr,e)}setGeometryType(e){ke.displayoptimizationxzbuilder_setGeometryType(this.__wbg_ptr,e)}setHasM(e){ke.displayoptimizationxzbuilder_setHasM(this.__wbg_ptr,e)}setHasZ(e){ke.displayoptimizationxzbuilder_setHasZ(this.__wbg_ptr,e)}setMaxLevel(e){ke.displayoptimizationxzbuilder_setMaxLevel(this.__wbg_ptr,e)}setSpatialReference(e,t){var _=we(t)?0:ze(t,ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce;const n=ke.displayoptimizationxzbuilder_setSpatialReference(this.__wbg_ptr,we(e)?4294967297:e>>>0,_,r);if(n[1])throw Fe(n[0])}}Symbol.dispose&&(r.prototype[Symbol.dispose]=r.prototype.free);class n{static __wrap(e){e>>>=0;const t=Object.create(n.prototype);return t.__wbg_ptr=e,P.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,P.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_displayoptimizationzbuilder_free(e,0)}static new(){const e=ke.displayoptimizationzbuilder_new();return n.__wrap(e)}setCodeField(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationzbuilder_setCodeField(this.__wbg_ptr,t,_)}setCooordinatePrecision(e){ke.displayoptimizationzbuilder_setCooordinatePrecision(this.__wbg_ptr,e)}setFullExtent(e){ke.displayoptimizationzbuilder_setFullExtent(this.__wbg_ptr,e)}setHasM(e){ke.displayoptimizationzbuilder_setHasM(this.__wbg_ptr,e)}setHasZ(e){ke.displayoptimizationzbuilder_setHasZ(this.__wbg_ptr,e)}setMColumn(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationzbuilder_setMColumn(this.__wbg_ptr,t,_)}setSpatialReference(e,t){var _=we(t)?0:ze(t,ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce;const n=ke.displayoptimizationzbuilder_setSpatialReference(this.__wbg_ptr,we(e)?4294967297:e>>>0,_,r);if(n[1])throw Fe(n[0])}setXColumn(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationzbuilder_setXColumn(this.__wbg_ptr,t,_)}setYColumn(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationzbuilder_setYColumn(this.__wbg_ptr,t,_)}setZColumn(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationzbuilder_setZColumn(this.__wbg_ptr,t,_)}}Symbol.dispose&&(n.prototype[Symbol.dispose]=n.prototype.free);class i{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,I.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_extent_free(e,0)}get xmax(){return ke.__wbg_get_extent_xmax(this.__wbg_ptr)}get xmin(){return ke.__wbg_get_extent_xmin(this.__wbg_ptr)}get ymax(){return ke.__wbg_get_extent_ymax(this.__wbg_ptr)}get ymin(){return ke.__wbg_get_extent_ymin(this.__wbg_ptr)}set xmax(e){ke.__wbg_set_extent_xmax(this.__wbg_ptr,e)}set xmin(e){ke.__wbg_set_extent_xmin(this.__wbg_ptr,e)}set ymax(e){ke.__wbg_set_extent_ymax(this.__wbg_ptr,e)}set ymin(e){ke.__wbg_set_extent_ymin(this.__wbg_ptr,e)}}Symbol.dispose&&(i.prototype[Symbol.dispose]=i.prototype.free);class s{static __wrap(e){e>>>=0;const t=Object.create(s.prototype);return t.__wbg_ptr=e,A.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,A.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_fieldmetadata_free(e,0)}get type(){const e=ke.fieldmetadata_esri_type(this.__wbg_ptr);return C[e]}get logicalType(){const e=ke.fieldmetadata_logical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],1*e[1],1)),t}get name(){let e,t;try{const _=ke.fieldmetadata_name(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{ke.__wbindgen_free(e,t,1)}}get physicalType(){const e=ke.fieldmetadata_physical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],1*e[1],1)),t}get is_nested(){return 0!==ke.__wbg_get_fieldmetadata_is_nested(this.__wbg_ptr)}set is_nested(e){ke.__wbg_set_fieldmetadata_is_nested(this.__wbg_ptr,e)}}Symbol.dispose&&(s.prototype[Symbol.dispose]=s.prototype.free);class o{static __wrap(e){e>>>=0;const t=Object.create(o.prototype);return t.__wbg_ptr=e,j.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,j.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_geometryfield_free(e,0)}static fromLocation(e,t,_,r){const n=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=Ce,s=ze(t,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=Ce,u=ke.geometryfield_fromLocation(n,i,s,a,_,r);if(u[2])throw Fe(u[1]);return o.__wrap(u[0])}static fromWkb(e,t,_){const r=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),n=Ce,i=ke.geometryfield_fromWkb(r,n,t,_);if(i[2])throw Fe(i[1]);return o.__wrap(i[0])}}Symbol.dispose&&(o.prototype[Symbol.dispose]=o.prototype.free);class a{static __wrap(e){e>>>=0;const t=Object.create(a.prototype);return t.__wbg_ptr=e,U.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_geometryinfo_free(e,0)}static new(){const e=ke.geometryinfo_new();if(e[2])throw Fe(e[1]);return a.__wrap(e[0])}setGeometry(e){N(e,o);var t=e.__destroy_into_raw();ke.geometryinfo_setGeometry(this.__wbg_ptr,t)}setOptmizationXZ(e){N(e,r);var t=e.__destroy_into_raw();const _=ke.geometryinfo_setOptmizationXZ(this.__wbg_ptr,t);if(_[1])throw Fe(_[0])}setOptmizationZ(e){N(e,n);var t=e.__destroy_into_raw();const _=ke.geometryinfo_setOptmizationZ(this.__wbg_ptr,t);if(_[1])throw Fe(_[0])}}Symbol.dispose&&(a.prototype[Symbol.dispose]=a.prototype.free);const u=Object.freeze({Point:0,0:"Point",Polygon:1,1:"Polygon",Polyline:2,2:"Polyline",Multipoint:3,3:"Multipoint"});class c{static __wrap(e){e>>>=0;const t=Object.create(c.prototype);return t.__wbg_ptr=e,L.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,L.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_multiscalegeometryfield_free(e,0)}get level(){return ke.__wbg_get_multiscalegeometryfield_level(this.__wbg_ptr)}get scale(){return ke.__wbg_get_multiscalegeometryfield_scale(this.__wbg_ptr)}has_field(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;return 0!==ke.multiscalegeometryfield_has_field(this.__wbg_ptr,t,_)}static new(e,t,_,r,n){const i=ze(_,ke.__wbindgen_malloc,ke.__wbindgen_realloc),s=Ce,o=he(r,ke.__wbindgen_malloc),a=Ce,u=he(n,ke.__wbindgen_malloc),l=Ce,g=ke.multiscalegeometryfield_new(e,t,i,s,o,a,u,l);return c.__wrap(g)}set level(e){ke.__wbg_set_multiscalegeometryfield_level(this.__wbg_ptr,e)}set scale(e){ke.__wbg_set_multiscalegeometryfield_scale(this.__wbg_ptr,e)}}Symbol.dispose&&(c.prototype[Symbol.dispose]=c.prototype.free);class l{static __wrap(e){e>>>=0;const t=Object.create(l.prototype);return t.__wbg_ptr=e,W.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,W.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_pageencodingdescriptor_free(e,0)}count(){return ke.pageencodingdescriptor_count(this.__wbg_ptr)}encoding(){let e,t;try{const _=ke.pageencodingdescriptor_encoding(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{ke.__wbindgen_free(e,t,1)}}pageType(){let e,t;try{const _=ke.pageencodingdescriptor_pageType(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{ke.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(l.prototype[Symbol.dispose]=l.prototype.free);class g{static __wrap(e){e>>>=0;const t=Object.create(g.prototype);return t.__wbg_ptr=e,E.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_parquetchunk_free(e,0)}boundsXMax(e){const t=ke.parquetchunk_boundsXMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsXMin(e){const t=ke.parquetchunk_boundsXMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMax(e){const t=ke.parquetchunk_boundsYMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMin(e){const t=ke.parquetchunk_boundsYMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}coordinateStride(){return ke.parquetchunk_coordinateStride(this.__wbg_ptr)>>>0}static deserialize(e){const t=ye(e,ke.__wbindgen_malloc),_=Ce,r=ke.parquetchunk_deserialize(t,_);return g.__wrap(r)}hasColumn(e){return 0!==ke.parquetchunk_hasColumn(this.__wbg_ptr,e)}hasM(){return 0!==ke.parquetchunk_hasM(this.__wbg_ptr)}hasZ(){return 0!==ke.parquetchunk_hasZ(this.__wbg_ptr)}insertPatch(e){N(e,b);var t=e.__destroy_into_raw();ke.parquetchunk_insertPatch(this.__wbg_ptr,t)}insertPatchBytes(e){const t=ye(e,ke.__wbindgen_malloc),_=Ce;ke.parquetchunk_insertPatchBytes(this.__wbg_ptr,t,_)}readAttribute(e,t){return ke.parquetchunk_readAttribute(this.__wbg_ptr,e,t)}readCoordsUnsafe(e){return ke.parquetchunk_readCoordsUnsafe(this.__wbg_ptr,e)}readIdsUnsafe(){return ke.parquetchunk_readIdsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(e){return ke.parquetchunk_readLengthsUnsafe(this.__wbg_ptr,e)}readPointCoordsQuantizedUnsafe(){return ke.parquetchunk_readPointCoordsQuantizedUnsafe(this.__wbg_ptr)}readPointCoordsUnsafe(){return ke.parquetchunk_readPointCoordsUnsafe(this.__wbg_ptr)}rowGroup(){return ke.parquetchunk_rowGroup(this.__wbg_ptr)>>>0}rowId(e){return ke.parquetchunk_rowId(this.__wbg_ptr,e)}serialize(){const e=ke.parquetchunk_serialize(this.__wbg_ptr);var t=_e(e[0],e[1]).slice();return ke.__wbindgen_free(e[0],1*e[1],1),t}size(){return ke.parquetchunk_size(this.__wbg_ptr)>>>0}transformGeometry(e,t,_,r,n,i){N(e,w);const s=ke.parquetchunk_transformGeometry(this.__wbg_ptr,e.__wbg_ptr,t,_,r,n,i);return 16777215===s?void 0:0!==s}}Symbol.dispose&&(g.prototype[Symbol.dispose]=g.prototype.free);class p{static __wrap(e){e>>>=0;const t=Object.create(p.prototype);return t.__wbg_ptr=e,G.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_parquetfile_free(e,0)}byteLength(){return ke.parquetfile_byteLength(this.__wbg_ptr)}compressionCodecs(){const e=ke.parquetfile_compressionCodecs(this.__wbg_ptr);var t=ee(e[0],e[1]).slice();return ke.__wbindgen_free(e[0],4*e[1],4),t}createChunkPatch(e,t,_,r){const n=fe(t,ke.__wbindgen_malloc),i=Ce,s=me(_,ke.__wbindgen_malloc),o=Ce;return ke.parquetfile_createChunkPatch(this.__wbg_ptr,e,n,i,s,o,we(r)?0:Q(r))}createdBy(){const e=ke.parquetfile_createdBy(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],1*e[1],1)),t}executeQuery(e,t,_){N(e,d);return ke.parquetfile_executeQuery(this.__wbg_ptr,e.__wbg_ptr,t,we(_)?0:Q(_))}fields(e){const t=ke.parquetfile_fields(this.__wbg_ptr,e);var _=ee(t[0],t[1]).slice();return ke.__wbindgen_free(t[0],4*t[1],4),_}static fromBinary(e,t){const _=ye(e,ke.__wbindgen_malloc),r=Ce;let n=0;we(t)||(N(t,a),n=t.__destroy_into_raw());return ke.parquetfile_fromBinary(_,r,n)}static fromUrl(e,t,_,r){const n=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=Ce;let s=0;we(r)||(N(r,a),s=r.__destroy_into_raw());return ke.parquetfile_fromUrl(n,i,t,_,s)}getColumnDescriptor(t){const _=ze(t,ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce,n=ke.parquetfile_getColumnDescriptor(this.__wbg_ptr,_,r);return e.__wrap(n)}getColumnDescriptors(){const e=ke.parquetfile_getColumnDescriptors(this.__wbg_ptr);var t=ee(e[0],e[1]).slice();return ke.__wbindgen_free(e[0],4*e[1],4),t}getColumnId(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce,r=ke.parquetfile_getColumnId(this.__wbg_ptr,t,_);return 4294967297===r?void 0:r}keyValueMetadata(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce,r=ke.parquetfile_keyValueMetadata(this.__wbg_ptr,t,_);let n;return 0!==r[0]&&(n=ue(r[0],r[1]).slice(),ke.__wbindgen_free(r[0],1*r[1],1)),n}keys(){const e=ke.parquetfile_keys(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ee(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],4*e[1],4)),t}numColumns(){return ke.parquetfile_numColumns(this.__wbg_ptr)>>>0}numFields(){return ke.parquetfile_numFields(this.__wbg_ptr)>>>0}numRows(){return ke.parquetfile_numRows(this.__wbg_ptr)>>>0}readAttribute(e,t,_){return ke.parquetfile_readAttribute(this.__wbg_ptr,e,t,_)}rowGroups(){const e=ke.parquetfile_rowGroups(this.__wbg_ptr);var t=ee(e[0],e[1]).slice();return ke.__wbindgen_free(e[0],4*e[1],4),t}updateChunkFields(e,t,_){N(e,g);const r=me(t,ke.__wbindgen_malloc),n=Ce;return ke.parquetfile_updateChunkFields(this.__wbg_ptr,e.__wbg_ptr,r,n,we(_)?0:Q(_))}version(){return ke.parquetfile_version(this.__wbg_ptr)}}Symbol.dispose&&(p.prototype[Symbol.dispose]=p.prototype.free);class b{static __wrap(e){e>>>=0;const t=Object.create(b.prototype);return t.__wbg_ptr=e,D.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_parquetpatchchunk_free(e,0)}static deserialize(e){const t=ye(e,ke.__wbindgen_malloc),_=Ce,r=ke.parquetpatchchunk_deserialize(t,_);return b.__wrap(r)}serialize(){const e=ke.parquetpatchchunk_serialize(this.__wbg_ptr);var t=_e(e[0],e[1]).slice();return ke.__wbindgen_free(e[0],1*e[1],1),t}}Symbol.dispose&&(b.prototype[Symbol.dispose]=b.prototype.free);class w{static __wrap(e){e>>>=0;const t=Object.create(w.prototype);return t.__wbg_ptr=e,Z.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_quantizedgeometrybuffer_free(e,0)}static new(){const e=ke.quantizedgeometrybuffer_new();return w.__wrap(e)}readCoordsUnsafe(){return ke.quantizedgeometrybuffer_readCoordsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(){return ke.quantizedgeometrybuffer_readLengthsUnsafe(this.__wbg_ptr)}}Symbol.dispose&&(w.prototype[Symbol.dispose]=w.prototype.free);class d{static __wrap(e){e>>>=0;const t=Object.create(d.prototype);return t.__wbg_ptr=e,B.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,B.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_query_free(e,0)}static new(){const e=ke.query_new();return d.__wrap(e)}setExtent(e){ke.query_setExtent(this.__wbg_ptr,e)}setIds(e){const t=fe(e,ke.__wbindgen_malloc),_=Ce;ke.query_setIds(this.__wbg_ptr,t,_)}setOutFields(e){const t=me(e,ke.__wbindgen_malloc),_=Ce;ke.query_setOutFields(this.__wbg_ptr,t,_)}setOutSpatialReference(e){const t=ke.query_setOutSpatialReference(this.__wbg_ptr,e);if(t[1])throw Fe(t[0])}setPostFilterCount(e){ke.query_setPostFilterCount(this.__wbg_ptr,e)}setPostFilterStart(e){ke.query_setPostFilterStart(this.__wbg_ptr,e)}setPreFilterCount(e){ke.query_setPreFilterCount(this.__wbg_ptr,e)}setPreFilterStart(e){ke.query_setPreFilterStart(this.__wbg_ptr,e)}setQuantizationTransform(e){ke.query_setQuantizationTransform(this.__wbg_ptr,e)}setReturnGeometry(e){ke.query_setReturnGeometry(this.__wbg_ptr,e)}setReturnM(e){ke.query_setReturnM(this.__wbg_ptr,e)}setReturnZ(e){ke.query_setReturnZ(this.__wbg_ptr,e)}setScale(e){ke.query_setScale(this.__wbg_ptr,e)}setWhere(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.query_setWhere(this.__wbg_ptr,t,_)}setWhereEvaluator(e){ke.query_setWhereEvaluator(this.__wbg_ptr,e)}setWhereFields(e){const t=me(e,ke.__wbindgen_malloc),_=Ce;ke.query_setWhereFields(this.__wbg_ptr,t,_)}}Symbol.dispose&&(d.prototype[Symbol.dispose]=d.prototype.free);class f{static __wrap(e){e>>>=0;const t=Object.create(f.prototype);return t.__wbg_ptr=e,X.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_querystream_free(e,0)}next(e){return ke.querystream_next(this.__wbg_ptr,we(e)?0:Q(e))}}Symbol.dispose&&(f.prototype[Symbol.dispose]=f.prototype.free);class y{static __wrap(e){e>>>=0;const t=Object.create(y.prototype);return t.__wbg_ptr=e,H.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_rangeproviderjs_free(e,0)}static new(e,t){const _=ke.rangeproviderjs_new(e,t);return y.__wrap(_)}static withFetch(){const e=ke.rangeproviderjs_withFetch();return y.__wrap(e)}}Symbol.dispose&&(y.prototype[Symbol.dispose]=y.prototype.free);class h{static __wrap(e){e>>>=0;const t=Object.create(h.prototype);return t.__wbg_ptr=e,V.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_rowgroup_free(e,0)}columnDescriptorForAttribute(t){const _=ze(t,ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce,n=ke.rowgroup_columnDescriptorForAttribute(this.__wbg_ptr,_,r);return e.__wrap(n)}}Symbol.dispose&&(h.prototype[Symbol.dispose]=h.prototype.free);class m{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_rowgroupid_free(e,0)}}function z(){ke.enableTracing()}function F(e,t,_,r,n){const i=ke.getXZCodeRanges(e,t,_,r,n);if(i[2])throw Fe(i[1]);return Fe(i[0])}function q(e,t,_,r,n,i,s){const o=ke.queryIntersectsXYStatistics(e,t,_,r,n,i,s);if(o[2])throw Fe(o[1]);return 0!==o[0]}function x(e,t,_,r,n,i,s){const o=ke.queryIntersectsXZStatistics(e,t,_,r,n,i,s);if(o[2])throw Fe(o[1]);return 0!==o[0]}function S(){const t={__proto__:null,__wbg___wbindgen_is_function_3baa9db1a987f47d:function(e){return"function"==typeof e},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(e){return void 0===e},__wbg___wbindgen_number_get_c7f42aed0525c451:function(e,t){const _="number"==typeof t?t:void 0;ne().setFloat64(e+8,we(_)?0:_,!0),ne().setInt32(e+0,!we(_),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(e,t){const _="string"==typeof t?t:void 0;var r=we(_)?0:ze(_,ke.__wbindgen_malloc,ke.__wbindgen_realloc),n=Ce;ne().setInt32(e+4,n,!0),ne().setInt32(e+0,r,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(e,t){throw new Error(ue(e,t))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(e){e._wbg_cb_unref()},__wbg_aborted_072e5543dce0fc05:function(e){return e.aborted},__wbg_apply_4c35bd236dda9c14:function(){return be(function(e,t,_){return e.apply(t,_)},arguments)},__wbg_call_86e39d65afc3d9db:function(){return be(function(e,t,_,r,n){return e.call(t,_,r,n)},arguments)},__wbg_call_a24592a6f349a97e:function(){return be(function(e,t,_){return e.call(t,_)},arguments)},__wbg_columndescriptor_new:function(t){return e.__wrap(t)},__wbg_error_a6fa202b58aa1cd3:function(e,t){let _,r;try{_=e,r=t,console.error(ue(e,t))}finally{ke.__wbindgen_free(_,r,1)}},__wbg_fieldmetadata_new:function(e){return s.__wrap(e)},__wbg_get_6011fa3a58f61074:function(){return be(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_get_unchecked_17f53dad852b9588:function(e,t){return e[t>>>0]},__wbg_length_3d4ecd04bd8d22f1:function(e){return e.length},__wbg_length_9f1775224cf1d815:function(e){return e.length},__wbg_new_0c7403db6e782f19:function(e){return new Uint8Array(e)},__wbg_new_227d7c05414eb861:function(){return new Error},__wbg_new_5e360d2ff7b9e1c3:function(e,t){return new Error(ue(e,t))},__wbg_new_682678e2f47e32bc:function(){return new Array},__wbg_new_8bc2b540bbfdbb81:function(e){return new Uint32Array(e)},__wbg_new_from_slice_158b7b5c2056cc2c:function(e,t){return new Int16Array(K(e,t))},__wbg_new_from_slice_3115b094b1002246:function(e,t){return new Float64Array(J(e,t))},__wbg_new_no_args_a5300b4b3ea60351:function(e,t){return new Function(ue(e,t))},__wbg_new_typed_323f37fd55ab048d:function(e,t){try{var _={a:e,b:t},r=(e,t)=>{const r=_.a;_.a=0;try{return R(r,_.b,e,t)}finally{_.a=r}};return new Promise(r)}finally{_.a=0}},__wbg_new_with_length_223c4ea248649e55:function(e){return new Array(e>>>0)},__wbg_pageencodingdescriptor_new:function(e){return l.__wrap(e)},__wbg_parquetchunk_new:function(e){return g.__wrap(e)},__wbg_parquetfile_new:function(e){return p.__wrap(e)},__wbg_parquetpatchchunk_new:function(e){return b.__wrap(e)},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(e,t,_){Uint8Array.prototype.set.call(_e(e,t),_)},__wbg_push_471a5b068a5295f6:function(e,t){return e.push(t)},__wbg_querystream_new:function(e){return f.__wrap(e)},__wbg_queueMicrotask_5d15a957e6aa920e:function(e){queueMicrotask(e)},__wbg_queueMicrotask_f8819e5ffc402f36:function(e){return e.queueMicrotask},__wbg_resolve_e6c466bc1052f16c:function(e){return Promise.resolve(e)},__wbg_rowgroup_new:function(e){return h.__wrap(e)},__wbg_set_3bf1de9fab0cd644:function(e,t,_){e[t>>>0]=_},__wbg_set_name_f49c6e6bbfc8a63b:function(e,t,_){e.name=ue(t,_)},__wbg_stack_3b0d974bbf31e44f:function(e,t){const _=ze(t.stack,ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce;ne().setInt32(e+4,r,!0),ne().setInt32(e+0,_,!0)},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){const e="undefined"==typeof global?null:global;return we(e)?0:Q(e)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){const e="undefined"==typeof globalThis?null:globalThis;return we(e)?0:Q(e)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){const e="undefined"==typeof self?null:self;return we(e)?0:Q(e)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){const e="undefined"==typeof window?null:window;return we(e)?0:Q(e)},__wbg_then_792e0c862b060889:function(e,t,_){return e.then(t,_)},__wbg_then_8e16ee11f05e4827:function(e,t){return e.then(t)},__wbg_valueOf_25e11684e38026ef:function(e){return e.valueOf()},__wbg_valueOf_91a54faf8ce0976a:function(e){return e.valueOf()},__wbindgen_cast_0000000000000001:function(e,t){return de(e,t,v)},__wbindgen_cast_0000000000000002:function(e){return e},__wbindgen_cast_0000000000000003:function(e){return e},__wbindgen_cast_0000000000000004:function(e,t){return J(e,t)},__wbindgen_cast_0000000000000005:function(e,t){return K(e,t)},__wbindgen_cast_0000000000000006:function(e,t){return te(e,t)},__wbindgen_cast_0000000000000007:function(e,t){return _e(e,t)},__wbindgen_cast_0000000000000008:function(e,t){return ue(e,t)},__wbindgen_cast_0000000000000009:function(e,t){var _=_e(e,t).slice();ke.__wbindgen_free(e,1*t,1);return _},__wbindgen_init_externref_table:function(){const e=ke.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}};return{__proto__:null,"./bundle_bg.js":t}}function v(e,t,_){const r=ke.wasm_bindgen__convert__closures_____invoke__h0f8118aa5481cebe(e,t,_);if(r[1])throw Fe(r[0])}function R(e,t,_,r){ke.wasm_bindgen__convert__closures_____invoke__h40273f30e88f7d49(e,t,_,r)}Symbol.dispose&&(m.prototype[Symbol.dispose]=m.prototype.free);const k=["boolean","int32","int64","int96","float","double","byte-array","fixed-byte-array"],C=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],O="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_columndescriptor_free(e>>>0,1)),T="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_columnid_free(e>>>0,1)),M="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_displayoptimizationxzbuilder_free(e>>>0,1)),P="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_displayoptimizationzbuilder_free(e>>>0,1)),I="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_extent_free(e>>>0,1)),A="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_fieldmetadata_free(e>>>0,1)),j="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_geometryfield_free(e>>>0,1)),U="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_geometryinfo_free(e>>>0,1)),L="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_multiscalegeometryfield_free(e>>>0,1)),W="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_pageencodingdescriptor_free(e>>>0,1)),E="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_parquetchunk_free(e>>>0,1)),G="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_parquetfile_free(e>>>0,1)),D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_parquetpatchchunk_free(e>>>0,1)),Z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_quantizedgeometrybuffer_free(e>>>0,1)),B="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_query_free(e>>>0,1)),X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_querystream_free(e>>>0,1)),H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_rangeproviderjs_free(e>>>0,1)),V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_rowgroup_free(e>>>0,1)),Y="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_rowgroupid_free(e>>>0,1));function Q(e){const t=ke.__externref_table_alloc();return ke.__wbindgen_externrefs.set(t,e),t}function N(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}const $="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbindgen_destroy_closure(e.a,e.b));function J(e,t){return e>>>=0,se().subarray(e/8,e/8+t)}function K(e,t){return e>>>=0,ae().subarray(e/2,e/2+t)}function ee(e,t){e>>>=0;const _=ne(),r=[];for(let n=e;n<e+4*t;n+=4)r.push(ke.__wbindgen_externrefs.get(_.getUint32(n,!0)));return ke.__externref_drop_slice(e,t),r}function te(e,t){return e>>>=0,le().subarray(e/4,e/4+t)}function _e(e,t){return e>>>=0,pe().subarray(e/1,e/1+t)}let re=null;function ne(){return(null===re||!0===re.buffer.detached||void 0===re.buffer.detached&&re.buffer!==ke.memory.buffer)&&(re=new DataView(ke.memory.buffer)),re}let ie=null;function se(){return null!==ie&&0!==ie.byteLength||(ie=new Float64Array(ke.memory.buffer)),ie}let oe=null;function ae(){return null!==oe&&0!==oe.byteLength||(oe=new Int16Array(ke.memory.buffer)),oe}function ue(e,t){return ve(e>>>=0,t)}let ce=null;function le(){return null!==ce&&0!==ce.byteLength||(ce=new Uint32Array(ke.memory.buffer)),ce}let ge=null;function pe(){return null!==ge&&0!==ge.byteLength||(ge=new Uint8Array(ke.memory.buffer)),ge}function be(e,t){try{return e.apply(this,t)}catch(_){const e=Q(_);ke.__wbindgen_exn_store(e)}}function we(e){return null==e}function de(e,t,_){const r={a:e,b:t,cnt:1},n=(...e)=>{r.cnt++;const t=r.a;r.a=0;try{return _(t,r.b,...e)}finally{r.a=t,n._wbg_cb_unref()}};return n._wbg_cb_unref=()=>{0===--r.cnt&&(ke.__wbindgen_destroy_closure(r.a,r.b),r.a=0,$.unregister(r))},$.register(n,r,r),n}function fe(e,t){const _=t(4*e.length,4)>>>0;return le().set(e,_/4),Ce=e.length,_}function ye(e,t){const _=t(1*e.length,1)>>>0;return pe().set(e,_/1),Ce=e.length,_}function he(e,t){const _=t(8*e.length,8)>>>0;return se().set(e,_/8),Ce=e.length,_}function me(e,t){const _=t(4*e.length,4)>>>0;for(let r=0;r<e.length;r++){const t=Q(e[r]);ne().setUint32(_+4*r,t,!0)}return Ce=e.length,_}function ze(e,t,_){if(void 0===_){const _=Re.encode(e),r=t(_.length,1)>>>0;return pe().subarray(r,r+_.length).set(_),Ce=_.length,r}let r=e.length,n=t(r,1)>>>0;const i=pe();let s=0;for(;s<r;s++){const t=e.charCodeAt(s);if(t>127)break;i[n+s]=t}if(s!==r){0!==s&&(e=e.slice(s)),n=_(n,r,r=s+3*e.length,1)>>>0;const t=pe().subarray(n+s,n+r);s+=Re.encodeInto(e,t).written,n=_(n,r,s,1)>>>0}return Ce=s,n}function Fe(e){const t=ke.__wbindgen_externrefs.get(e);return ke.__externref_table_dealloc(e),t}let qe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});qe.decode();const xe=2146435072;let Se=0;function ve(e,t){return Se+=t,Se>=xe&&(qe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),qe.decode(),Se=t),qe.decode(pe().subarray(e,e+t))}const Re=new TextEncoder;"encodeInto"in Re||(Re.encodeInto=function(e,t){const _=Re.encode(e);return t.set(_),{read:e.length,written:_.length}});let ke,Ce=0;function Oe(e,t){return ke=e.exports,re=null,ie=null,oe=null,ce=null,ge=null,ke.__wbindgen_start(),ke}async function Te(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(r){if(!(e.ok&&_(e.type))||"application/wasm"===e.headers.get("Content-Type"))throw r;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r)}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const _=await WebAssembly.instantiate(e,t);return _ instanceof WebAssembly.Instance?{instance:_,module:e}:_}function _(e){switch(e){case"basic":case"cors":case"default":return!0}return!1}}function Me(e){if(void 0!==ke)return ke;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=S();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));return Oe(new WebAssembly.Instance(e,t))}async function Pe(e){if(void 0!==ke)return ke;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead"));const t=S();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:_,module:r}=await Te(await e,t);return Oe(_)}export{e as ColumnDescriptor,t as ColumnId,_ as DisplayEncoding,r as DisplayOptimizationXZBuilder,n as DisplayOptimizationZBuilder,i as Extent,s as FieldMetadata,o as GeometryField,a as GeometryInfo,u as GeometryType,c as MultiscaleGeometryField,l as PageEncodingDescriptor,g as ParquetChunk,p as ParquetFile,b as ParquetPatchChunk,w as QuantizedGeometryBuffer,d as Query,f as QueryStream,y as RangeProviderJs,h as RowGroup,m as RowGroupId,Pe as default,z as enableTracing,F as getXZCodeRanges,Me as initSync,q as queryIntersectsXYStatistics,x as queryIntersectsXZStatistics};
|
|
2
|
+
class e{static __wrap(t){t>>>=0;const _=Object.create(e.prototype);return _.__wbg_ptr=t,O.register(_,_.__wbg_ptr,_),_}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,O.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_columndescriptor_free(e,0)}compressedSize(){return ke.columndescriptor_compressedSize(this.__wbg_ptr)}compression(){let e,t;try{const _=ke.columndescriptor_compression(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{ke.__wbindgen_free(e,t,1)}}distinctCount(){const e=ke.columndescriptor_distinctCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}encodings(){return ke.columndescriptor_encodings(this.__wbg_ptr)}logicalType(){const e=ke.columndescriptor_logicalType(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],1*e[1],1)),t}maxValue(){return ke.columndescriptor_maxValue(this.__wbg_ptr)}minValue(){return ke.columndescriptor_minValue(this.__wbg_ptr)}name(){let e,t;try{const _=ke.columndescriptor_name(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{ke.__wbindgen_free(e,t,1)}}nullCount(){const e=ke.columndescriptor_nullCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}numValues(){return ke.columndescriptor_numValues(this.__wbg_ptr)}pageEncodings(){const e=ke.columndescriptor_pageEncodings(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ee(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],4*e[1],4)),t}physicalType(){const e=ke.columndescriptor_physicalType(this.__wbg_ptr);return k[e]}uncompressedSize(){return ke.columndescriptor_uncompressedSize(this.__wbg_ptr)}}Symbol.dispose&&(e.prototype[Symbol.dispose]=e.prototype.free);class t{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,T.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_columnid_free(e,0)}}Symbol.dispose&&(t.prototype[Symbol.dispose]=t.prototype.free);const _=Object.freeze({PBF:0,0:"PBF"});class r{static __wrap(e){e>>>=0;const t=Object.create(r.prototype);return t.__wbg_ptr=e,I.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,I.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_displayoptimizationxzbuilder_free(e,0)}addLevel(e){N(e,c);var t=e.__destroy_into_raw();ke.displayoptimizationxzbuilder_addLevel(this.__wbg_ptr,t)}static new(){const e=ke.displayoptimizationxzbuilder_new();return r.__wrap(e)}setCodeField(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationxzbuilder_setCodeField(this.__wbg_ptr,t,_)}setEncoding(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce,r=ke.displayoptimizationxzbuilder_setEncoding(this.__wbg_ptr,t,_);if(r[1])throw Fe(r[0])}setFullExtent(e){ke.displayoptimizationxzbuilder_setFullExtent(this.__wbg_ptr,e)}setGeometryType(e){ke.displayoptimizationxzbuilder_setGeometryType(this.__wbg_ptr,e)}setHasM(e){ke.displayoptimizationxzbuilder_setHasM(this.__wbg_ptr,e)}setHasZ(e){ke.displayoptimizationxzbuilder_setHasZ(this.__wbg_ptr,e)}setMaxLevel(e){ke.displayoptimizationxzbuilder_setMaxLevel(this.__wbg_ptr,e)}setSpatialReference(e,t){var _=we(t)?0:ze(t,ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce;const n=ke.displayoptimizationxzbuilder_setSpatialReference(this.__wbg_ptr,we(e)?4294967297:e>>>0,_,r);if(n[1])throw Fe(n[0])}}Symbol.dispose&&(r.prototype[Symbol.dispose]=r.prototype.free);class n{static __wrap(e){e>>>=0;const t=Object.create(n.prototype);return t.__wbg_ptr=e,M.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,M.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_displayoptimizationzbuilder_free(e,0)}static new(){const e=ke.displayoptimizationzbuilder_new();return n.__wrap(e)}setCodeField(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationzbuilder_setCodeField(this.__wbg_ptr,t,_)}setCooordinatePrecision(e){ke.displayoptimizationzbuilder_setCooordinatePrecision(this.__wbg_ptr,e)}setFullExtent(e){ke.displayoptimizationzbuilder_setFullExtent(this.__wbg_ptr,e)}setHasM(e){ke.displayoptimizationzbuilder_setHasM(this.__wbg_ptr,e)}setHasZ(e){ke.displayoptimizationzbuilder_setHasZ(this.__wbg_ptr,e)}setMColumn(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationzbuilder_setMColumn(this.__wbg_ptr,t,_)}setSpatialReference(e,t){var _=we(t)?0:ze(t,ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce;const n=ke.displayoptimizationzbuilder_setSpatialReference(this.__wbg_ptr,we(e)?4294967297:e>>>0,_,r);if(n[1])throw Fe(n[0])}setXColumn(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationzbuilder_setXColumn(this.__wbg_ptr,t,_)}setYColumn(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationzbuilder_setYColumn(this.__wbg_ptr,t,_)}setZColumn(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.displayoptimizationzbuilder_setZColumn(this.__wbg_ptr,t,_)}}Symbol.dispose&&(n.prototype[Symbol.dispose]=n.prototype.free);class i{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,P.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_extent_free(e,0)}get xmax(){return ke.__wbg_get_extent_xmax(this.__wbg_ptr)}get xmin(){return ke.__wbg_get_extent_xmin(this.__wbg_ptr)}get ymax(){return ke.__wbg_get_extent_ymax(this.__wbg_ptr)}get ymin(){return ke.__wbg_get_extent_ymin(this.__wbg_ptr)}set xmax(e){ke.__wbg_set_extent_xmax(this.__wbg_ptr,e)}set xmin(e){ke.__wbg_set_extent_xmin(this.__wbg_ptr,e)}set ymax(e){ke.__wbg_set_extent_ymax(this.__wbg_ptr,e)}set ymin(e){ke.__wbg_set_extent_ymin(this.__wbg_ptr,e)}}Symbol.dispose&&(i.prototype[Symbol.dispose]=i.prototype.free);class s{static __wrap(e){e>>>=0;const t=Object.create(s.prototype);return t.__wbg_ptr=e,j.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,j.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_fieldmetadata_free(e,0)}get type(){const e=ke.fieldmetadata_esri_type(this.__wbg_ptr);return C[e]}get logicalType(){const e=ke.fieldmetadata_logical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],1*e[1],1)),t}get name(){let e,t;try{const _=ke.fieldmetadata_name(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{ke.__wbindgen_free(e,t,1)}}get physicalType(){const e=ke.fieldmetadata_physical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],1*e[1],1)),t}get is_nested(){return 0!==ke.__wbg_get_fieldmetadata_is_nested(this.__wbg_ptr)}set is_nested(e){ke.__wbg_set_fieldmetadata_is_nested(this.__wbg_ptr,e)}}Symbol.dispose&&(s.prototype[Symbol.dispose]=s.prototype.free);class o{static __wrap(e){e>>>=0;const t=Object.create(o.prototype);return t.__wbg_ptr=e,A.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,A.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_geometryfield_free(e,0)}static fromLocation(e,t,_,r){const n=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=Ce,s=ze(t,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=Ce,u=ke.geometryfield_fromLocation(n,i,s,a,_,r);if(u[2])throw Fe(u[1]);return o.__wrap(u[0])}static fromWkb(e,t,_){const r=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),n=Ce,i=ke.geometryfield_fromWkb(r,n,t,_);if(i[2])throw Fe(i[1]);return o.__wrap(i[0])}}Symbol.dispose&&(o.prototype[Symbol.dispose]=o.prototype.free);class a{static __wrap(e){e>>>=0;const t=Object.create(a.prototype);return t.__wbg_ptr=e,U.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_geometryinfo_free(e,0)}static new(){const e=ke.geometryinfo_new();if(e[2])throw Fe(e[1]);return a.__wrap(e[0])}setGeometry(e){N(e,o);var t=e.__destroy_into_raw();ke.geometryinfo_setGeometry(this.__wbg_ptr,t)}setOptmizationXZ(e){N(e,r);var t=e.__destroy_into_raw();const _=ke.geometryinfo_setOptmizationXZ(this.__wbg_ptr,t);if(_[1])throw Fe(_[0])}setOptmizationZ(e){N(e,n);var t=e.__destroy_into_raw();const _=ke.geometryinfo_setOptmizationZ(this.__wbg_ptr,t);if(_[1])throw Fe(_[0])}}Symbol.dispose&&(a.prototype[Symbol.dispose]=a.prototype.free);const u=Object.freeze({Point:0,0:"Point",Polygon:1,1:"Polygon",Polyline:2,2:"Polyline",Multipoint:3,3:"Multipoint"});class c{static __wrap(e){e>>>=0;const t=Object.create(c.prototype);return t.__wbg_ptr=e,L.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,L.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_multiscalegeometryfield_free(e,0)}get level(){return ke.__wbg_get_multiscalegeometryfield_level(this.__wbg_ptr)}get resolution(){return ke.__wbg_get_multiscalegeometryfield_resolution(this.__wbg_ptr)}has_field(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;return 0!==ke.multiscalegeometryfield_has_field(this.__wbg_ptr,t,_)}static new(e,t,_,r,n){const i=ze(_,ke.__wbindgen_malloc,ke.__wbindgen_realloc),s=Ce,o=he(r,ke.__wbindgen_malloc),a=Ce,u=he(n,ke.__wbindgen_malloc),l=Ce,g=ke.multiscalegeometryfield_new(e,t,i,s,o,a,u,l);return c.__wrap(g)}set level(e){ke.__wbg_set_multiscalegeometryfield_level(this.__wbg_ptr,e)}set resolution(e){ke.__wbg_set_multiscalegeometryfield_resolution(this.__wbg_ptr,e)}}Symbol.dispose&&(c.prototype[Symbol.dispose]=c.prototype.free);class l{static __wrap(e){e>>>=0;const t=Object.create(l.prototype);return t.__wbg_ptr=e,W.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,W.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_pageencodingdescriptor_free(e,0)}count(){return ke.pageencodingdescriptor_count(this.__wbg_ptr)}encoding(){let e,t;try{const _=ke.pageencodingdescriptor_encoding(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{ke.__wbindgen_free(e,t,1)}}pageType(){let e,t;try{const _=ke.pageencodingdescriptor_pageType(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{ke.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(l.prototype[Symbol.dispose]=l.prototype.free);class g{static __wrap(e){e>>>=0;const t=Object.create(g.prototype);return t.__wbg_ptr=e,E.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_parquetchunk_free(e,0)}boundsXMax(e){const t=ke.parquetchunk_boundsXMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsXMin(e){const t=ke.parquetchunk_boundsXMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMax(e){const t=ke.parquetchunk_boundsYMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMin(e){const t=ke.parquetchunk_boundsYMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}coordinateStride(){return ke.parquetchunk_coordinateStride(this.__wbg_ptr)>>>0}static deserialize(e){const t=ye(e,ke.__wbindgen_malloc),_=Ce,r=ke.parquetchunk_deserialize(t,_);return g.__wrap(r)}hasColumn(e){return 0!==ke.parquetchunk_hasColumn(this.__wbg_ptr,e)}hasM(){return 0!==ke.parquetchunk_hasM(this.__wbg_ptr)}hasZ(){return 0!==ke.parquetchunk_hasZ(this.__wbg_ptr)}insertPatch(e){N(e,b);var t=e.__destroy_into_raw();ke.parquetchunk_insertPatch(this.__wbg_ptr,t)}insertPatchBytes(e){const t=ye(e,ke.__wbindgen_malloc),_=Ce;ke.parquetchunk_insertPatchBytes(this.__wbg_ptr,t,_)}readAttribute(e,t){return ke.parquetchunk_readAttribute(this.__wbg_ptr,e,t)}readCoordsUnsafe(e){return ke.parquetchunk_readCoordsUnsafe(this.__wbg_ptr,e)}readIdsUnsafe(){return ke.parquetchunk_readIdsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(e){return ke.parquetchunk_readLengthsUnsafe(this.__wbg_ptr,e)}readPointCoordsQuantizedUnsafe(){return ke.parquetchunk_readPointCoordsQuantizedUnsafe(this.__wbg_ptr)}readPointCoordsUnsafe(){return ke.parquetchunk_readPointCoordsUnsafe(this.__wbg_ptr)}rowGroup(){return ke.parquetchunk_rowGroup(this.__wbg_ptr)>>>0}rowId(e){return ke.parquetchunk_rowId(this.__wbg_ptr,e)}serialize(){const e=ke.parquetchunk_serialize(this.__wbg_ptr);var t=_e(e[0],e[1]).slice();return ke.__wbindgen_free(e[0],1*e[1],1),t}size(){return ke.parquetchunk_size(this.__wbg_ptr)>>>0}transformGeometry(e,t,_,r,n,i){N(e,w);const s=ke.parquetchunk_transformGeometry(this.__wbg_ptr,e.__wbg_ptr,t,_,r,n,i);return 16777215===s?void 0:0!==s}}Symbol.dispose&&(g.prototype[Symbol.dispose]=g.prototype.free);class p{static __wrap(e){e>>>=0;const t=Object.create(p.prototype);return t.__wbg_ptr=e,G.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_parquetfile_free(e,0)}byteLength(){return ke.parquetfile_byteLength(this.__wbg_ptr)}columnIndex(e,t){return ke.parquetfile_columnIndex(this.__wbg_ptr,e,t)}compressionCodecs(){const e=ke.parquetfile_compressionCodecs(this.__wbg_ptr);var t=ee(e[0],e[1]).slice();return ke.__wbindgen_free(e[0],4*e[1],4),t}createChunkPatch(e,t,_,r){const n=fe(t,ke.__wbindgen_malloc),i=Ce,s=me(_,ke.__wbindgen_malloc),o=Ce;return ke.parquetfile_createChunkPatch(this.__wbg_ptr,e,n,i,s,o,we(r)?0:Q(r))}createdBy(){const e=ke.parquetfile_createdBy(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],1*e[1],1)),t}diagnosticsSnapshot(){const e=ke.parquetfile_diagnosticsSnapshot(this.__wbg_ptr);if(e[2])throw Fe(e[1]);return Fe(e[0])}executeQuery(e,t,_){N(e,d);return ke.parquetfile_executeQuery(this.__wbg_ptr,e.__wbg_ptr,t,we(_)?0:Q(_))}fields(e){const t=ke.parquetfile_fields(this.__wbg_ptr,e);var _=ee(t[0],t[1]).slice();return ke.__wbindgen_free(t[0],4*t[1],4),_}static fromBinary(e,t){const _=ye(e,ke.__wbindgen_malloc),r=Ce;let n=0;we(t)||(N(t,a),n=t.__destroy_into_raw());return ke.parquetfile_fromBinary(_,r,n)}static fromUrl(e,t,_,r){const n=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=Ce;let s=0;we(r)||(N(r,a),s=r.__destroy_into_raw());return ke.parquetfile_fromUrl(n,i,t,_,s)}getColumnDescriptor(t){const _=ze(t,ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce,n=ke.parquetfile_getColumnDescriptor(this.__wbg_ptr,_,r);return e.__wrap(n)}getColumnDescriptors(){const e=ke.parquetfile_getColumnDescriptors(this.__wbg_ptr);var t=ee(e[0],e[1]).slice();return ke.__wbindgen_free(e[0],4*e[1],4),t}getColumnId(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce,r=ke.parquetfile_getColumnId(this.__wbg_ptr,t,_);return 4294967297===r?void 0:r}keyValueMetadata(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce,r=ke.parquetfile_keyValueMetadata(this.__wbg_ptr,t,_);let n;return 0!==r[0]&&(n=ue(r[0],r[1]).slice(),ke.__wbindgen_free(r[0],1*r[1],1)),n}keys(){const e=ke.parquetfile_keys(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ee(e[0],e[1]).slice(),ke.__wbindgen_free(e[0],4*e[1],4)),t}numColumns(){return ke.parquetfile_numColumns(this.__wbg_ptr)>>>0}numFields(){return ke.parquetfile_numFields(this.__wbg_ptr)>>>0}numRows(){return ke.parquetfile_numRows(this.__wbg_ptr)>>>0}offsetIndex(e,t){return ke.parquetfile_offsetIndex(this.__wbg_ptr,e,t)}readAttribute(e,t,_){return ke.parquetfile_readAttribute(this.__wbg_ptr,e,t,_)}rowGroups(){const e=ke.parquetfile_rowGroups(this.__wbg_ptr);var t=ee(e[0],e[1]).slice();return ke.__wbindgen_free(e[0],4*e[1],4),t}updateChunkFields(e,t,_){N(e,g);const r=me(t,ke.__wbindgen_malloc),n=Ce;return ke.parquetfile_updateChunkFields(this.__wbg_ptr,e.__wbg_ptr,r,n,we(_)?0:Q(_))}version(){return ke.parquetfile_version(this.__wbg_ptr)}}Symbol.dispose&&(p.prototype[Symbol.dispose]=p.prototype.free);class b{static __wrap(e){e>>>=0;const t=Object.create(b.prototype);return t.__wbg_ptr=e,D.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_parquetpatchchunk_free(e,0)}static deserialize(e){const t=ye(e,ke.__wbindgen_malloc),_=Ce,r=ke.parquetpatchchunk_deserialize(t,_);return b.__wrap(r)}serialize(){const e=ke.parquetpatchchunk_serialize(this.__wbg_ptr);var t=_e(e[0],e[1]).slice();return ke.__wbindgen_free(e[0],1*e[1],1),t}}Symbol.dispose&&(b.prototype[Symbol.dispose]=b.prototype.free);class w{static __wrap(e){e>>>=0;const t=Object.create(w.prototype);return t.__wbg_ptr=e,Z.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_quantizedgeometrybuffer_free(e,0)}static new(){const e=ke.quantizedgeometrybuffer_new();return w.__wrap(e)}readCoordsUnsafe(){return ke.quantizedgeometrybuffer_readCoordsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(){return ke.quantizedgeometrybuffer_readLengthsUnsafe(this.__wbg_ptr)}}Symbol.dispose&&(w.prototype[Symbol.dispose]=w.prototype.free);class d{static __wrap(e){e>>>=0;const t=Object.create(d.prototype);return t.__wbg_ptr=e,B.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,B.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_query_free(e,0)}static new(){const e=ke.query_new();return d.__wrap(e)}setExtent(e){ke.query_setExtent(this.__wbg_ptr,e)}setIds(e){const t=fe(e,ke.__wbindgen_malloc),_=Ce;ke.query_setIds(this.__wbg_ptr,t,_)}setOutFields(e){const t=me(e,ke.__wbindgen_malloc),_=Ce;ke.query_setOutFields(this.__wbg_ptr,t,_)}setOutSpatialReference(e){const t=ke.query_setOutSpatialReference(this.__wbg_ptr,e);if(t[1])throw Fe(t[0])}setPostFilterCount(e){ke.query_setPostFilterCount(this.__wbg_ptr,e)}setPostFilterStart(e){ke.query_setPostFilterStart(this.__wbg_ptr,e)}setPreFilterCount(e){ke.query_setPreFilterCount(this.__wbg_ptr,e)}setPreFilterStart(e){ke.query_setPreFilterStart(this.__wbg_ptr,e)}setQuantizationTransform(e){ke.query_setQuantizationTransform(this.__wbg_ptr,e)}setReturnGeometry(e){ke.query_setReturnGeometry(this.__wbg_ptr,e)}setReturnM(e){ke.query_setReturnM(this.__wbg_ptr,e)}setReturnZ(e){ke.query_setReturnZ(this.__wbg_ptr,e)}setSourceResolution(e){ke.query_setSourceResolution(this.__wbg_ptr,e)}setWhere(e){const t=ze(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),_=Ce;ke.query_setWhere(this.__wbg_ptr,t,_)}setWhereEvaluator(e){ke.query_setWhereEvaluator(this.__wbg_ptr,e)}setWhereFields(e){const t=me(e,ke.__wbindgen_malloc),_=Ce;ke.query_setWhereFields(this.__wbg_ptr,t,_)}}Symbol.dispose&&(d.prototype[Symbol.dispose]=d.prototype.free);class f{static __wrap(e){e>>>=0;const t=Object.create(f.prototype);return t.__wbg_ptr=e,X.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_querystream_free(e,0)}next(e){return ke.querystream_next(this.__wbg_ptr,we(e)?0:Q(e))}}Symbol.dispose&&(f.prototype[Symbol.dispose]=f.prototype.free);class y{static __wrap(e){e>>>=0;const t=Object.create(y.prototype);return t.__wbg_ptr=e,H.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_rangeproviderjs_free(e,0)}static new(e,t){const _=ke.rangeproviderjs_new(e,t);return y.__wrap(_)}static withFetch(){const e=ke.rangeproviderjs_withFetch();return y.__wrap(e)}}Symbol.dispose&&(y.prototype[Symbol.dispose]=y.prototype.free);class h{static __wrap(e){e>>>=0;const t=Object.create(h.prototype);return t.__wbg_ptr=e,V.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_rowgroup_free(e,0)}columnDescriptorForAttribute(t){const _=ze(t,ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce,n=ke.rowgroup_columnDescriptorForAttribute(this.__wbg_ptr,_,r);return e.__wrap(n)}}Symbol.dispose&&(h.prototype[Symbol.dispose]=h.prototype.free);class m{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),e}free(){const e=this.__destroy_into_raw();ke.__wbg_rowgroupid_free(e,0)}}function z(){ke.enableTracing()}function F(e,t,_,r,n){const i=ke.getXZCodeRanges(e,t,_,r,n);if(i[2])throw Fe(i[1]);return Fe(i[0])}function q(e,t,_,r,n,i,s){const o=ke.queryIntersectsXYStatistics(e,t,_,r,n,i,s);if(o[2])throw Fe(o[1]);return 0!==o[0]}function x(e,t,_,r,n,i,s){const o=ke.queryIntersectsXZStatistics(e,t,_,r,n,i,s);if(o[2])throw Fe(o[1]);return 0!==o[0]}function S(){const t={__proto__:null,__wbg_String_8564e559799eccda:function(e,t){const _=ze(String(t),ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce;ne().setInt32(e+4,r,!0),ne().setInt32(e+0,_,!0)},__wbg___wbindgen_is_function_3baa9db1a987f47d:function(e){return"function"==typeof e},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(e){return void 0===e},__wbg___wbindgen_number_get_c7f42aed0525c451:function(e,t){const _="number"==typeof t?t:void 0;ne().setFloat64(e+8,we(_)?0:_,!0),ne().setInt32(e+0,!we(_),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(e,t){const _="string"==typeof t?t:void 0;var r=we(_)?0:ze(_,ke.__wbindgen_malloc,ke.__wbindgen_realloc),n=Ce;ne().setInt32(e+4,n,!0),ne().setInt32(e+0,r,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(e,t){throw new Error(ue(e,t))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(e){e._wbg_cb_unref()},__wbg_aborted_072e5543dce0fc05:function(e){return e.aborted},__wbg_apply_4c35bd236dda9c14:function(){return be(function(e,t,_){return e.apply(t,_)},arguments)},__wbg_call_86e39d65afc3d9db:function(){return be(function(e,t,_,r,n){return e.call(t,_,r,n)},arguments)},__wbg_call_a24592a6f349a97e:function(){return be(function(e,t,_){return e.call(t,_)},arguments)},__wbg_columndescriptor_new:function(t){return e.__wrap(t)},__wbg_error_a6fa202b58aa1cd3:function(e,t){let _,r;try{_=e,r=t,console.error(ue(e,t))}finally{ke.__wbindgen_free(_,r,1)}},__wbg_fieldmetadata_new:function(e){return s.__wrap(e)},__wbg_get_6011fa3a58f61074:function(){return be(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_get_unchecked_17f53dad852b9588:function(e,t){return e[t>>>0]},__wbg_length_3d4ecd04bd8d22f1:function(e){return e.length},__wbg_length_9f1775224cf1d815:function(e){return e.length},__wbg_new_0c7403db6e782f19:function(e){return new Uint8Array(e)},__wbg_new_227d7c05414eb861:function(){return new Error},__wbg_new_5e360d2ff7b9e1c3:function(e,t){return new Error(ue(e,t))},__wbg_new_682678e2f47e32bc:function(){return new Array},__wbg_new_8bc2b540bbfdbb81:function(e){return new Uint32Array(e)},__wbg_new_aa8d0fa9762c29bd:function(){return new Object},__wbg_new_from_slice_158b7b5c2056cc2c:function(e,t){return new Int16Array(K(e,t))},__wbg_new_from_slice_3115b094b1002246:function(e,t){return new Float64Array(J(e,t))},__wbg_new_no_args_a5300b4b3ea60351:function(e,t){return new Function(ue(e,t))},__wbg_new_typed_323f37fd55ab048d:function(e,t){try{var _={a:e,b:t},r=(e,t)=>{const r=_.a;_.a=0;try{return v(r,_.b,e,t)}finally{_.a=r}};return new Promise(r)}finally{_.a=0}},__wbg_new_with_length_223c4ea248649e55:function(e){return new Array(e>>>0)},__wbg_pageencodingdescriptor_new:function(e){return l.__wrap(e)},__wbg_parquetchunk_new:function(e){return g.__wrap(e)},__wbg_parquetfile_new:function(e){return p.__wrap(e)},__wbg_parquetpatchchunk_new:function(e){return b.__wrap(e)},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(e,t,_){Uint8Array.prototype.set.call(_e(e,t),_)},__wbg_push_471a5b068a5295f6:function(e,t){return e.push(t)},__wbg_querystream_new:function(e){return f.__wrap(e)},__wbg_queueMicrotask_5d15a957e6aa920e:function(e){queueMicrotask(e)},__wbg_queueMicrotask_f8819e5ffc402f36:function(e){return e.queueMicrotask},__wbg_resolve_e6c466bc1052f16c:function(e){return Promise.resolve(e)},__wbg_rowgroup_new:function(e){return h.__wrap(e)},__wbg_set_3bf1de9fab0cd644:function(e,t,_){e[t>>>0]=_},__wbg_set_6be42768c690e380:function(e,t,_){e[t]=_},__wbg_set_name_f49c6e6bbfc8a63b:function(e,t,_){e.name=ue(t,_)},__wbg_stack_3b0d974bbf31e44f:function(e,t){const _=ze(t.stack,ke.__wbindgen_malloc,ke.__wbindgen_realloc),r=Ce;ne().setInt32(e+4,r,!0),ne().setInt32(e+0,_,!0)},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){const e="undefined"==typeof global?null:global;return we(e)?0:Q(e)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){const e="undefined"==typeof globalThis?null:globalThis;return we(e)?0:Q(e)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){const e="undefined"==typeof self?null:self;return we(e)?0:Q(e)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){const e="undefined"==typeof window?null:window;return we(e)?0:Q(e)},__wbg_then_792e0c862b060889:function(e,t,_){return e.then(t,_)},__wbg_then_8e16ee11f05e4827:function(e,t){return e.then(t)},__wbg_valueOf_25e11684e38026ef:function(e){return e.valueOf()},__wbg_valueOf_91a54faf8ce0976a:function(e){return e.valueOf()},__wbindgen_cast_0000000000000001:function(e,t){return de(e,t,R)},__wbindgen_cast_0000000000000002:function(e){return e},__wbindgen_cast_0000000000000003:function(e){return e},__wbindgen_cast_0000000000000004:function(e,t){return J(e,t)},__wbindgen_cast_0000000000000005:function(e,t){return K(e,t)},__wbindgen_cast_0000000000000006:function(e,t){return te(e,t)},__wbindgen_cast_0000000000000007:function(e,t){return _e(e,t)},__wbindgen_cast_0000000000000008:function(e,t){return ue(e,t)},__wbindgen_cast_0000000000000009:function(e,t){var _=_e(e,t).slice();ke.__wbindgen_free(e,1*t,1);return _},__wbindgen_init_externref_table:function(){const e=ke.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}};return{__proto__:null,"./bundle_bg.js":t}}function R(e,t,_){const r=ke.wasm_bindgen__convert__closures_____invoke__h0f8118aa5481cebe(e,t,_);if(r[1])throw Fe(r[0])}function v(e,t,_,r){ke.wasm_bindgen__convert__closures_____invoke__h40273f30e88f7d49(e,t,_,r)}Symbol.dispose&&(m.prototype[Symbol.dispose]=m.prototype.free);const k=["boolean","int32","int64","int96","float","double","byte-array","fixed-byte-array"],C=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],O="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_columndescriptor_free(e>>>0,1)),T="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_columnid_free(e>>>0,1)),I="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_displayoptimizationxzbuilder_free(e>>>0,1)),M="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_displayoptimizationzbuilder_free(e>>>0,1)),P="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_extent_free(e>>>0,1)),j="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_fieldmetadata_free(e>>>0,1)),A="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_geometryfield_free(e>>>0,1)),U="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_geometryinfo_free(e>>>0,1)),L="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_multiscalegeometryfield_free(e>>>0,1)),W="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_pageencodingdescriptor_free(e>>>0,1)),E="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_parquetchunk_free(e>>>0,1)),G="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_parquetfile_free(e>>>0,1)),D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_parquetpatchchunk_free(e>>>0,1)),Z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_quantizedgeometrybuffer_free(e>>>0,1)),B="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_query_free(e>>>0,1)),X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_querystream_free(e>>>0,1)),H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_rangeproviderjs_free(e>>>0,1)),V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_rowgroup_free(e>>>0,1)),Y="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_rowgroupid_free(e>>>0,1));function Q(e){const t=ke.__externref_table_alloc();return ke.__wbindgen_externrefs.set(t,e),t}function N(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}const $="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbindgen_destroy_closure(e.a,e.b));function J(e,t){return e>>>=0,se().subarray(e/8,e/8+t)}function K(e,t){return e>>>=0,ae().subarray(e/2,e/2+t)}function ee(e,t){e>>>=0;const _=ne(),r=[];for(let n=e;n<e+4*t;n+=4)r.push(ke.__wbindgen_externrefs.get(_.getUint32(n,!0)));return ke.__externref_drop_slice(e,t),r}function te(e,t){return e>>>=0,le().subarray(e/4,e/4+t)}function _e(e,t){return e>>>=0,pe().subarray(e/1,e/1+t)}let re=null;function ne(){return(null===re||!0===re.buffer.detached||void 0===re.buffer.detached&&re.buffer!==ke.memory.buffer)&&(re=new DataView(ke.memory.buffer)),re}let ie=null;function se(){return null!==ie&&0!==ie.byteLength||(ie=new Float64Array(ke.memory.buffer)),ie}let oe=null;function ae(){return null!==oe&&0!==oe.byteLength||(oe=new Int16Array(ke.memory.buffer)),oe}function ue(e,t){return Re(e>>>=0,t)}let ce=null;function le(){return null!==ce&&0!==ce.byteLength||(ce=new Uint32Array(ke.memory.buffer)),ce}let ge=null;function pe(){return null!==ge&&0!==ge.byteLength||(ge=new Uint8Array(ke.memory.buffer)),ge}function be(e,t){try{return e.apply(this,t)}catch(_){const e=Q(_);ke.__wbindgen_exn_store(e)}}function we(e){return null==e}function de(e,t,_){const r={a:e,b:t,cnt:1},n=(...e)=>{r.cnt++;const t=r.a;r.a=0;try{return _(t,r.b,...e)}finally{r.a=t,n._wbg_cb_unref()}};return n._wbg_cb_unref=()=>{0===--r.cnt&&(ke.__wbindgen_destroy_closure(r.a,r.b),r.a=0,$.unregister(r))},$.register(n,r,r),n}function fe(e,t){const _=t(4*e.length,4)>>>0;return le().set(e,_/4),Ce=e.length,_}function ye(e,t){const _=t(1*e.length,1)>>>0;return pe().set(e,_/1),Ce=e.length,_}function he(e,t){const _=t(8*e.length,8)>>>0;return se().set(e,_/8),Ce=e.length,_}function me(e,t){const _=t(4*e.length,4)>>>0;for(let r=0;r<e.length;r++){const t=Q(e[r]);ne().setUint32(_+4*r,t,!0)}return Ce=e.length,_}function ze(e,t,_){if(void 0===_){const _=ve.encode(e),r=t(_.length,1)>>>0;return pe().subarray(r,r+_.length).set(_),Ce=_.length,r}let r=e.length,n=t(r,1)>>>0;const i=pe();let s=0;for(;s<r;s++){const t=e.charCodeAt(s);if(t>127)break;i[n+s]=t}if(s!==r){0!==s&&(e=e.slice(s)),n=_(n,r,r=s+3*e.length,1)>>>0;const t=pe().subarray(n+s,n+r);s+=ve.encodeInto(e,t).written,n=_(n,r,s,1)>>>0}return Ce=s,n}function Fe(e){const t=ke.__wbindgen_externrefs.get(e);return ke.__externref_table_dealloc(e),t}let qe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});qe.decode();const xe=2146435072;let Se=0;function Re(e,t){return Se+=t,Se>=xe&&(qe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),qe.decode(),Se=t),qe.decode(pe().subarray(e,e+t))}const ve=new TextEncoder;"encodeInto"in ve||(ve.encodeInto=function(e,t){const _=ve.encode(e);return t.set(_),{read:e.length,written:_.length}});let ke,Ce=0;function Oe(e,t){return ke=e.exports,re=null,ie=null,oe=null,ce=null,ge=null,ke.__wbindgen_start(),ke}async function Te(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(r){if(!(e.ok&&_(e.type))||"application/wasm"===e.headers.get("Content-Type"))throw r;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r)}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const _=await WebAssembly.instantiate(e,t);return _ instanceof WebAssembly.Instance?{instance:_,module:e}:_}function _(e){switch(e){case"basic":case"cors":case"default":return!0}return!1}}function Ie(e){if(void 0!==ke)return ke;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=S();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));return Oe(new WebAssembly.Instance(e,t))}async function Me(e){if(void 0!==ke)return ke;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead"));const t=S();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:_,module:r}=await Te(await e,t);return Oe(_)}export{e as ColumnDescriptor,t as ColumnId,_ as DisplayEncoding,r as DisplayOptimizationXZBuilder,n as DisplayOptimizationZBuilder,i as Extent,s as FieldMetadata,o as GeometryField,a as GeometryInfo,u as GeometryType,c as MultiscaleGeometryField,l as PageEncodingDescriptor,g as ParquetChunk,p as ParquetFile,b as ParquetPatchChunk,w as QuantizedGeometryBuffer,d as Query,f as QueryStream,y as RangeProviderJs,h as RowGroup,m as RowGroupId,Me as default,z as enableTracing,F as getXZCodeRanges,Ie as initSync,q as queryIntersectsXYStatistics,x as queryIntersectsXZStatistics};
|