@arcgis/core 5.2.0-next.132 → 5.2.0-next.135

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/107f4bcf8e6c91a67010.js +1 -0
  3. package/assets/esri/core/workers/chunks/{081c9ccaa5884c730a91.js → 1688c4dcd36db992a9dc.js} +1 -1
  4. package/assets/esri/core/workers/chunks/3a6b8f9aabde7e138834.js +1 -0
  5. package/assets/esri/core/workers/chunks/9a76a43b0e929b423e88.js +1 -0
  6. package/assets/esri/core/workers/chunks/c3767cbe6ada1ba40c37.js +1 -0
  7. package/assets/esri/core/workers/chunks/{18d5bad86ea3ef3ec747.js → eba9e03c1c9aa55044a3.js} +120 -120
  8. package/assets/esri/core/workers/chunks/f6c8e5abe1d55ab5c7dd.js +1 -0
  9. package/chunks/GaussianSplat.glsl.js +24 -9
  10. package/chunks/LineMarker.glsl.js +23 -23
  11. package/chunks/RibbonLine.glsl.js +136 -99
  12. package/config.js +1 -1
  13. package/core/PooledArray.js +1 -1
  14. package/geometry/operators/affineTransformOperator.d.ts +4 -0
  15. package/geometry/operators/alphaShapeOperator.d.ts +10 -1
  16. package/geometry/operators/areaOperator.d.ts +3 -0
  17. package/geometry/operators/autoCompleteOperator.d.ts +3 -0
  18. package/geometry/operators/boundaryOperator.d.ts +4 -0
  19. package/geometry/operators/bufferOperator.d.ts +6 -0
  20. package/geometry/operators/centroidOperator.d.ts +3 -0
  21. package/geometry/operators/clipOperator.d.ts +4 -0
  22. package/geometry/operators/containsOperator.d.ts +4 -0
  23. package/geometry/operators/convexHullOperator.d.ts +6 -0
  24. package/geometry/operators/crossesOperator.d.ts +4 -0
  25. package/geometry/operators/cutOperator.d.ts +3 -0
  26. package/geometry/operators/densifyOperator.d.ts +5 -0
  27. package/geometry/operators/differenceOperator.d.ts +4 -0
  28. package/geometry/operators/disjointOperator.d.ts +4 -0
  29. package/geometry/operators/distanceOperator.d.ts +4 -0
  30. package/geometry/operators/equalsOperator.d.ts +4 -0
  31. package/geometry/operators/extendOperator.d.ts +4 -0
  32. package/geometry/operators/generalizeOperator.d.ts +5 -0
  33. package/geometry/operators/geodesicBufferOperator.d.ts +8 -0
  34. package/geometry/operators/geodesicProximityOperator.d.ts +9 -0
  35. package/geometry/operators/geodeticAreaOperator.d.ts +6 -0
  36. package/geometry/operators/geodeticDensifyOperator.d.ts +7 -0
  37. package/geometry/operators/geodeticDistanceOperator.d.ts +6 -0
  38. package/geometry/operators/geodeticLengthOperator.d.ts +6 -0
  39. package/geometry/operators/geodeticUtilsOperator.d.ts +7 -0
  40. package/geometry/operators/graphicBufferOperator.d.ts +4 -0
  41. package/geometry/operators/integrateOperator.d.ts +3 -0
  42. package/geometry/operators/intersectionOperator.d.ts +5 -0
  43. package/geometry/operators/intersectsOperator.d.ts +4 -0
  44. package/geometry/operators/isNearOperator.d.ts +4 -0
  45. package/geometry/operators/labelPointOperator.d.ts +4 -0
  46. package/geometry/operators/lengthOperator.d.ts +3 -0
  47. package/geometry/operators/linesToPolygonsOperator.d.ts +3 -0
  48. package/geometry/operators/locateBetweenOperator.d.ts +3 -0
  49. package/geometry/operators/minimumBoundingCircleOperator.d.ts +5 -0
  50. package/geometry/operators/multiPartToSinglePartOperator.d.ts +4 -0
  51. package/geometry/operators/offsetOperator.d.ts +5 -0
  52. package/geometry/operators/overlapsOperator.d.ts +4 -0
  53. package/geometry/operators/polygonOverlayOperator.d.ts +9 -1
  54. package/geometry/operators/polygonSlicerOperator.d.ts +7 -0
  55. package/geometry/operators/projectOperator.d.ts +6 -0
  56. package/geometry/operators/proximityOperator.d.ts +7 -0
  57. package/geometry/operators/relateOperator.d.ts +5 -0
  58. package/geometry/operators/reshapeOperator.d.ts +3 -0
  59. package/geometry/operators/shapePreservingProjectOperator.d.ts +7 -0
  60. package/geometry/operators/simplifyOGCOperator.d.ts +5 -0
  61. package/geometry/operators/simplifyOperator.d.ts +5 -0
  62. package/geometry/operators/support/GeographicTransformation.d.ts +2 -0
  63. package/geometry/operators/support/GeographicTransformationStep.d.ts +2 -0
  64. package/geometry/operators/support/Transformation.d.ts +6 -1
  65. package/geometry/operators/support/geographicTransformationUtils.d.ts +4 -0
  66. package/geometry/operators/symmetricDifferenceOperator.d.ts +4 -0
  67. package/geometry/operators/touchesOperator.d.ts +4 -0
  68. package/geometry/operators/types.d.ts +1 -0
  69. package/geometry/operators/unionOperator.d.ts +4 -0
  70. package/geometry/operators/withinOperator.d.ts +4 -0
  71. package/kernel.js +1 -1
  72. package/layers/GaussianSplatLayer.d.ts +0 -1
  73. package/layers/GeospatialPDFLayer.js +1 -1
  74. package/package.json +2 -2
  75. package/support/revision.js +1 -1
  76. package/symbols/LineSymbol3D.d.ts +0 -7
  77. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  78. package/views/2d/layers/GeospatialPDFLayerView2D.js +1 -1
  79. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  80. package/views/3d/interactive/placementTools/GroundNavigationPlacementTool3D.js +1 -1
  81. package/views/3d/layers/GeospatialPDFLayerView3D.js +1 -1
  82. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  83. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  84. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  85. package/views/3d/navigation/modes/GroundNavigationMode3D.js +1 -1
  86. package/views/3d/state/Constraints.js +1 -1
  87. package/views/3d/state/utils/OffsetCorrectionController.js +1 -1
  88. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  89. package/views/3d/state/utils/navigationUtils.js +1 -1
  90. package/views/3d/terrain/SphericalPatch.js +1 -1
  91. package/views/3d/webgl-engine/collections/Component/ComponentObjectElevationAgnosticBVH.js +1 -1
  92. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +23 -12
  93. package/views/3d/webgl-engine/core/shaderLibrary/shading/MarkerSizing.glsl.js +35 -25
  94. package/views/3d/webgl-engine/core/shaderLibrary/shading/readShadow.glsl.js +2 -2
  95. package/views/3d/webgl-engine/core/shaderLibrary/util/cameraUniforms.js +1 -1
  96. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  97. package/views/3d/webgl-engine/lib/GaussianSplatRenderer.js +1 -1
  98. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  99. package/views/3d/webgl-engine/lib/IntersectorResult.js +1 -1
  100. package/views/3d/webgl-engine/lib/LineMaterial.js +1 -1
  101. package/views/3d/webgl-engine/lib/PolygonIntersectionResults.js +1 -1
  102. package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
  103. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  104. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  105. package/views/3d/webgl-engine/lib/lodRendering/LodResources.js +1 -1
  106. package/views/3d/webgl-engine/lib/screenPolygonTriangleIntersections.js +1 -1
  107. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  108. package/views/3d/webgl-engine/materials/intersectWithPolygonOffset.js +1 -1
  109. package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
  110. package/views/3d/webgl-engine/shaders/GaussianSplatPass.glsl.js +4 -4
  111. package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +1 -1
  112. package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
  113. package/views/3d/webgl-engine/shaders/LineTechniqueConfiguration.js +1 -1
  114. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  115. package/views/support/PromiseQueue.js +1 -1
  116. package/views/support/Scheduler.js +1 -1
  117. package/widgets/BatchAttributeForm/ValueChangeTransaction.js +1 -1
  118. package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
  119. package/widgets/BatchAttributeForm/expressions/ExpressionsModel.js +1 -1
  120. package/widgets/BatchAttributeForm/inputs/InputBase.js +1 -1
  121. package/widgets/OrientedImageryViewer/OrientedImageryViewerVisibleElements.d.ts +148 -1
  122. package/assets/esri/core/workers/chunks/540f60e31b19d85e9371.js +0 -1
  123. package/assets/esri/core/workers/chunks/55a560fd872f7463b33d.js +0 -1
  124. package/assets/esri/core/workers/chunks/8048ce97ce22b32c454d.js +0 -1
  125. package/assets/esri/core/workers/chunks/b34305474a861aaf6ccb.js +0 -1
  126. package/assets/esri/core/workers/chunks/cf6f671823fa6c2a9a5e.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[433],{15142(t,e,n){n.d(e,{A:()=>l});var r=n(4576),i=n(21818);const s=(t,e,n,r)=>{let i=e,s=e;const a=n>>>1,h=t[i-1];for(;s<=a;){s=i<<1,s<n&&r(t[s-1],t[s])<0&&++s;const e=t[s-1];if(r(e,h)<=0)break;t[i-1]=e,i=s}t[i-1]=h},a=(t,e)=>t<e?-1:t>e?1:0;function h(t,e,n,r){void 0===e&&(e=0),void 0===n&&(n=t.length),void 0===r&&(r=a);for(let i=n>>>1;i>e;i--)s(t,i,n,r);const i=e+1;for(let a=n-1;a>e;a--){const n=t[e];t[e]=t[a],t[a]=n,s(t,i,a,r)}}function*o(t,e,n,r){void 0===e&&(e=0),void 0===n&&(n=t.length),void 0===r&&(r=a);for(let i=n>>>1;i>e;i--)s(t,i,n,r),yield;const i=e+1;for(let a=n-1;a>e;a--){const n=t[e];t[e]=t[a],t[a]=n,s(t,i,a,r),yield}}class l{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new r.vW,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),void 0!==t.deallocator&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>u(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){const e=new Array;for(let n=0;n<this._length;n++){const r=this.data[n];t(r)&&e.push(r)}return e}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,e){const n=this.data.indexOf(t,e);return-1!==n&&n<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let e=t;e<this._length;++e)this.data[e]=this._deallocator(this.data[e]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,e=t.length){for(let n=0;n<e;n++)this.data[this._length++]=t[n]}pushAll(t){for(const e of t)this.data[this._length++]=e}fill(t,e){for(let n=0;n<e;n++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));const t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,u(this)}pop(){if(0===this.length)return;const t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){const e=(0,r.qh)(this.data,(0,i.z)(t),this.length,this._hint);if(-1!==e)return this.data.splice(e,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex((0,r.qh)(this.data,(0,i.z)(t),this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,e=t.length,n){this.length=(0,r.mW)(this.data,t,this.length,e,this._hint,n),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,e){if(t>=this.length||e>=this.length||t===e)return;const n=this.data[t];this.data[t]=this.data[e],this.data[e]=n}sort(t){h(this.data,0,this.length,t)}iterableSort(t){return o(this.data,0,this.length,t)}some(t,e){for(let n=0;n<this.length;++n)if(t.call(e,this.data[n],n,this.data))return!0;return!1}find(t,e){const{data:n,length:r}=this;for(let i=0;i<r;++i)if(t.call(e,n[i]))return n[i]}filterInPlace(t,e){let n=0;for(let r=0;r<this._length;++r){const i=this.data[r];t.call(e,i,r,this.data)&&(this.data[r]=this.data[n],this.data[n]=i,n++)}if(this._deallocator)for(let t=n;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=n,this._shrink(),this}forAll(t,e){const{data:n,length:r}=this;for(let i=0;i<r;++i)t.call(e,n[i],i,n)}forEach(t,e){this.data.slice(0,this.length).forEach(t,e)}map(t,e){const n=new Array(this.length);for(let r=0;r<this.length;++r)n[r]=t.call(e,this.data[r],r,this.data);return n}reduce(t,e){let n=e;for(let e=0;e<this.length;++e)n=t(n,this.data[e],e,this.data);return n}has(t){const e=this.length,n=this.data;for(let r=0;r<e;++r)if(n[r]===t)return!0;return!1}*[Symbol.iterator](){const{data:t,length:e}=this;for(let n=0;n<e;++n)yield t[n]}}function u(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}},91829(t,e,n){function r(){return[0,0,0,0]}function i(t,e,n,r){return[t,e,n,r]}function s(){return i(1,1,1,1)}function a(){return i(1,0,0,0)}function h(){return i(0,1,0,0)}function o(){return i(0,0,1,0)}function l(){return i(0,0,0,1)}n.d(e,{_Y:()=>l,fA:()=>i,vt:()=>r});const u=[0,0,0,0],c=s(),d=a(),f=h(),_=o(),p=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_W:p,UNIT_X:d,UNIT_Y:f,UNIT_Z:_,ZEROS:u,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,e,n,r){return[t,e,n,r]},fromArray:function(t,e=[0,0,0,0]){const n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,ones:s,unitW:l,unitX:a,unitY:h,unitZ:o,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Un",0,c,"uY",0,u,"v7",0,p])},78955(t,e,n){n.d(e,{Bw:()=>E,C:()=>i,Cc:()=>T,LI:()=>d,Om:()=>S,S8:()=>R,T9:()=>c,WQ:()=>a,Z0:()=>I,aI:()=>m,hG:()=>p,hZ:()=>s,hs:()=>f,jk:()=>u,m3:()=>g,t2:()=>N});var r=n(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function s(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function a(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function o(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function u(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}function c(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}function d(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function f(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function _(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],s=e[3]-t[3];return Math.sqrt(n*n+r*r+i*i+s*s)}function p(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],s=e[3]-t[3];return n*n+r*r+i*i+s*s}function E(t){const e=t[0],n=t[1],r=t[2],i=t[3];return Math.sqrt(e*e+n*n+r*r+i*i)}function g(t){const e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}function R(t,e){const n=e[0],r=e[1],i=e[2],s=e[3];let a=n*n+r*r+i*i+s*s;return a>0&&(a=1/Math.sqrt(a),t[0]=n*a,t[1]=r*a,t[2]=i*a,t[3]=s*a),t}function S(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function T(t,e,n,r){const i=e[0],s=e[1],a=e[2],h=e[3];return t[0]=i+r*(n[0]-i),t[1]=s+r*(n[1]-s),t[2]=a+r*(n[2]-a),t[3]=h+r*(n[3]-h),t}function I(t,e,n){const r=e[0],i=e[1],s=e[2],a=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*s+n[12]*a,t[1]=n[1]*r+n[5]*i+n[9]*s+n[13]*a,t[2]=n[2]*r+n[6]*i+n[10]*s+n[14]*a,t[3]=n[3]*r+n[7]*i+n[11]*s+n[15]*a,t}function N(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function m(t,e){const n=t[0],i=t[1],s=t[2],a=t[3],h=e[0],o=e[1],l=e[2],u=e[3],c=(0,r.FD)();return Math.abs(n-h)<=c*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(i-o)<=c*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(s-l)<=c*Math.max(1,Math.abs(s),Math.abs(l))&&Math.abs(a-u)<=c*Math.max(1,Math.abs(a),Math.abs(u))}const G=h,A=o,M=l,y=_,O=p,U=E,b=g;Object.freeze(Object.defineProperty({__proto__:null,add:a,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:i,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:y,distance:_,div:M,divide:l,dot:S,equals:m,exactEquals:N,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:U,length:E,lerp:T,max:c,min:u,mul:A,multiply:o,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:R,random:function(t,e=1){const n=r.Ov;let i,s,a,h,o,l;do{i=2*n()-1,s=2*n()-1,o=i*i+s*s}while(o>=1);do{a=2*n()-1,h=2*n()-1,l=a*a+h*h}while(l>=1);const u=Math.sqrt((1-o)/l);return t[0]=e*i,t[1]=e*s,t[2]=e*a*u,t[3]=e*h*u,t},round:d,scale:f,scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},set:s,sqrDist:O,sqrLen:b,squaredDistance:p,squaredLength:g,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:G,subtract:h,transformMat4:I,transformQuat:function(t,e,n){const r=e[0],i=e[1],s=e[2],a=n[0],h=n[1],o=n[2],l=n[3],u=l*r+h*s-o*i,c=l*i+o*r-a*s,d=l*s+a*i-h*r,f=-a*r-h*i-o*s;return t[0]=u*l+f*-a+c*-o-d*-h,t[1]=c*l+f*-h+d*-a-u*-o,t[2]=d*l+f*-o+u*-h-c*-a,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},90239(t,e,n){function r(t){switch(t){case"u8":case"i8":return 1;case"u16":case"i16":case"f16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}n.d(e,{GJ:()=>r})},1843(t,e,n){n.d(e,{BP:()=>u,l5:()=>c});var r=n(13030),i=n(90239),s=n(4431),a=n(620),h=n(85079);class o{constructor(t,e,n=0){this.layout=t,this.byteOffset=n,this.buffer="number"==typeof e?new ArrayBuffer(e*t.stride):e;for(const e of t.fields.keys()){const r=t.fields.get(e);this[e]=new r.constructor(this.buffer,n+r.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(t,e){const n=this[t];return n&&n.elementCount===e.ElementCount&&n.elementType===e.ElementType?n:null}slice(t,e){return new o(this.layout,this.buffer.slice(t*this.stride,e*this.stride))}copyFrom(t,e=0,n=0,r=t.count){const i=this.stride,s=t.byteOffset+e*i,a=this.byteOffset+n*i,h=r*i;if(i%4==0&&s%4==0&&a%4==0){const e=new Uint32Array(t.buffer,s,h/4);new Uint32Array(this.buffer,a,h/4).set(e)}else{const e=new Uint8Array(t.buffer,s,h);new Uint8Array(this.buffer,a,h).set(e)}return this}get usedMemory(){return this.byteLength}dispose(){}}class l{constructor(t){this._stride=0,this._fields=new Map,t&&(this._stride=t.stride,t.fields.forEach(t=>this._fields.set(t[0],{...t[1],constructor:_(t[1].constructor)})))}freeze(){return this}get locations(){return(0,h.Xk)((0,s.U)(this))}vec2f16(t,e){return this._appendField(t,r.ZD,e),this}vec2f(t,e){return this._appendField(t,r.gH,e),this}vec2f64(t,e){return this._appendField(t,r.si,e),this}vec3f16(t,e){return this._appendField(t,r.EC,e),this}vec3f(t,e){return this._appendField(t,r.xs,e),this}vec3f64(t,e){return this._appendField(t,r.Xm,e),this}vec4f16(t,e){return this._appendField(t,r.jz,e),this}vec4f(t,e){return this._appendField(t,r.Eq,e),this}vec4f64(t,e){return this._appendField(t,r.Aj,e),this}mat3f(t,e){return this._appendField(t,r.jZ,e),this}mat3f64(t,e){return this._appendField(t,r.j0,e),this}mat4f(t,e){return this._appendField(t,r.Sx,e),this}mat4f64(t,e){return this._appendField(t,r.E$,e),this}vec4u8(t,e){return this._appendField(t,r.XP,e),this}f16(t,e){return this._appendField(t,r.XW,e),this}f32(t,e){return this._appendField(t,r.Y$,e),this}f64(t,e){return this._appendField(t,r.qB,e),this}u8(t,e){return this._appendField(t,r.SL,e),this}u16(t,e){return this._appendField(t,r.h,e),this}i8(t,e){return this._appendField(t,r.bf,e),this}vec2i8(t,e){return this._appendField(t,r.D6,e),this}vec2i16(t,e){return this._appendField(t,r.mJ,e),this}vec2u8(t,e){return this._appendField(t,r.LC,e),this}vec2u16(t,e){return this._appendField(t,r.Yi,e),this}vec4u16(t,e){return this._appendField(t,r.Uz,e),this}vec4i16(t,e){return this._appendField(t,r.E7,e),this}u32(t,e){return this._appendField(t,r.P,e),this}_appendField(t,e,n){this._fields.has(t)&&(0,a.vA)(!1,`${t} already added to vertex buffer layout`);const r=e.ElementCount*(0,i.GJ)(e.ElementType),s=this._stride;this._fields.set(t,{constructor:e,size:r,offset:s,optional:n}),this._alignFields()}_alignFields(){let t=0,e=1;this._fields.forEach(n=>{const r=(0,i.GJ)(n.constructor.ElementType);t=Math.floor((t+r-1)/r)*r,n.offset=t,t+=n.size,e=Math.max(e,r)}),t=Math.floor((t+e-1)/e)*e,this._stride=t}createBuffer(t){return new o(this,t)}createView(t,e){return new o(this,t,e)}clone(){const t=new l;return t._stride=this._stride,t._fields=new Map,this._fields.forEach((e,n)=>t._fields.set(n,e)),t}get stride(){return this._stride}get fields(){return this._fields}}function u(){return new l}class c{constructor(t){this.fields=new Array,t.fields.forEach((t,e)=>{const n={...t,constructor:f(t.constructor)};this.fields.push([e,n])}),this.stride=t.stride}}const d=[r.Y$,r.gH,r.xs,r.Eq,r.jZ,r.Sx,r.qB,r.si,r.Xm,r.Aj,r.j0,r.E$,r.SL,r.LC,r.eI,r.XP,r.h,r.Yi,r.nS,r.Uz,r.P,r.An,r.H$,r.ml,r.bf,r.D6,r.m8,r.TX,r.Qt,r.mJ,r.Vp,r.E7,r.My,r.UL,r.zD,r.Y4];function f(t){return`${t.ElementType}_${t.ElementCount}`}function _(t){return p.get(t)}const p=new Map;d.forEach(t=>p.set(f(t),t))},4431(t,e,n){n.d(e,{U:()=>s});var r=n(63907),i=n(74038);function s(t,e=0){const n=t.stride;return t.fields.entries().map(([t,s])=>{const a=s.constructor.ElementCount,h=function(t){switch(t){case"u8":return r.pe.UNSIGNED_BYTE;case"u16":return r.pe.UNSIGNED_SHORT;case"u32":return r.pe.UNSIGNED_INT;case"i8":return r.pe.BYTE;case"i16":return r.pe.SHORT;case"i32":return r.pe.INT;case"f16":return r.pe.HALF_FLOAT;case"f32":return r.pe.FLOAT;default:throw new Error("BufferType not supported in WebGL")}}(s.constructor.ElementType),o=s.offset,l=s.optional?.glNormalized??!1,u=s.optional?.integer??!1;return new i._(t,a,h,o,n,l,e,u)}).toArray()}},620(t,e,n){n.d(e,{O_:()=>s,vA:()=>i}),n(48163),n(78955),(0,n(91829).vt)();class r{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function i(t,e="Assertion"){if(!t){const t=new Error(e).stack;throw new r(`${e} at ${t}`)}}function s(t,e,n,r){let i,s=(n[0]-t[0])/e[0],a=(r[0]-t[0])/e[0];s>a&&(i=s,s=a,a=i);let h=(n[1]-t[1])/e[1],o=(r[1]-t[1])/e[1];if(h>o&&(i=h,h=o,o=i),s>o||h>a)return!1;h>s&&(s=h),o<a&&(a=o);let l=(n[2]-t[2])/e[2],u=(r[2]-t[2])/e[2];return l>u&&(i=l,l=u,u=i),!(s>u||l>a||(u<a&&(a=u),a<0))}},71936(t,e,n){n.r(e),n.d(e,{default:()=>o});var r=n(1843);function i(t,e){return e.push(t.buffer),{buffer:t.buffer,layout:new r.l5(t.layout)}}var s=n(99058),a=n(93406),h=n(44801);class o{async extract(t){const e=l(t),n=(0,h.o6)(e),r=[e.data.buffer];return{result:u(n,r),transferList:r}}async extractComponentsEdgeLocations(t){const e=l(t),n=(0,h.hx)(e.data,e.skipDeduplicate,e.indices,e.indicesLength),r=[];return{result:i((0,a.K)(n,d).regular.instancesData,r),transferList:r}}async extractEdgeLocations(t){const e=l(t),n=(0,h.hx)(e.data,e.skipDeduplicate,e.indices,e.indicesLength),r=[];return{result:i((0,a.K)(n,c).regular.instancesData,r),transferList:r}}}function l(t){return{data:s.I$.createView(t.dataBuffer),indices:"Uint32Array"===t.indicesType?new Uint32Array(t.indices):"Uint16Array"===t.indicesType?new Uint16Array(t.indices):"Uint8Array"===t.indicesType?new Uint8Array(t.indices):t.indices,indicesLength:t.indicesLength,writerSettings:t.writerSettings,skipDeduplicate:t.skipDeduplicate}}function u(t,e){return e.push(t.regular.lodInfo.lengths.buffer),e.push(t.silhouette.lodInfo.lengths.buffer),{regular:{instancesData:i(t.regular.instancesData,e),lodInfo:{lengths:t.regular.lodInfo.lengths.buffer}},silhouette:{instancesData:i(t.silhouette.instancesData,e),lodInfo:{lengths:t.silhouette.lodInfo.lengths.buffer}},averageEdgeLength:t.averageEdgeLength}}const c=new class{allocate(t){return h.Jb.createBuffer(t)}trim(t,e){return t.slice(0,e)}write(t,e,n){t.position0.setVec(e,n.position0),t.position1.setVec(e,n.position1)}},d=new class{allocate(t){return h.HY.createBuffer(t)}trim(t,e){return t.slice(0,e)}write(t,e,n){t.position0.setVec(e,n.position0),t.position1.setVec(e,n.position1),t.componentIndex.set(e,n.componentIndex)}}},85079(t,e,n){n.d(e,{Sk:()=>a,Xk:()=>i,_u:()=>s});var r=n(21818);function i(t){let e=0;return(0,r.z)(new Map(t.map(({name:t,count:n})=>{const r=[t,e];return 16===n?e+=4:9===n?e+=3:++e,r})))}function s(t){const e=new Map;let n=0;return t.forEach(t=>t.forEach(({name:t,count:r})=>{e.set(t,n),16===r?n+=4:9===r?n+=3:++n})),e}function a(t){return s(Array.from(t.values()).map(({layout:t})=>t))}},74038(t,e,n){n.d(e,{_:()=>r});class r{constructor(t,e,n,r,i,s=!1,a=0,h=!1){this.name=t,this.count=e,this.type=n,this.offset=r,this.stride=i,this.normalized=s,this.divisor=a,this.integer=h}}},63907(t,e,n){const r={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},i={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},s=Object.values(i),a={FLOAT:r.FLOAT,UNSIGNED_BYTE:r.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:r.BYTE,UNSIGNED_SHORT:r.UNSIGNED_SHORT,SHORT:r.SHORT,UNSIGNED_INT:r.UNSIGNED_INT,INT:r.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};n.d(e,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,i,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,s,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,a,"pe",0,r,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);